html_url
stringlengths
48
51
title
stringlengths
5
268
comment
stringlengths
70
51.8k
body
stringlengths
0
29.8k
comment_length
int64
16
1.52k
text
stringlengths
164
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/321
ERROR:root:mwparserfromhell
It looks like it comes from `mwparserfromhell`. Would it be possible to get the bad `section` that causes this issue ? The `section` string is from `datasets/wikipedia.py:L548` ? You could just add a `try` statement and print the section if the line `section_text.append(section.strip_code().strip())` crashes. It will help us know if we have to fix it on our side or if it is a `mwparserfromhell` issue.
Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
65
ERROR:root:mwparserfromhell Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` It looks like it comes from `mwparserfromhell`. Would it be possible to get the bad `section` that causes this issue ? The `section` string is from `datasets/wikipedia.py:L548` ? You could just add a `try` statement and print the section if the line `section_text.append(section.strip_code().strip())` crashes. It will help us know if we have to fix it on our side or if it is a `mwparserfromhell` issue.
[ -0.2354941964149475, -0.13825485110282898, 0.05525406077504158, 0.5212746262550354, 0.06802138686180115, -0.0856209546327591, -0.13489526510238647, 0.30712294578552246, 0.20676645636558533, 0.2888489067554474, 0.34776005148887634, -0.0715625062584877, 0.059884700924158096, -0.4790310561656952, 0.05419065058231354, 0.062424082309007645, 0.24045687913894653, 0.17174434661865234, 0.014015620574355125, -0.1562187671661377, -0.05648180469870567, 0.18278227746486664, -0.31826692819595337, 0.4079269766807556, -0.2893718183040619, 0.13335752487182617, 0.18214021623134613, 0.045347969979047775, -0.08739377558231354, -0.5024517774581909, 0.16021952033042908, -0.33590441942214966, 0.13286848366260529, 0.2546607255935669, -0.00012773477646987885, -0.15487726032733917, 0.5309703946113586, -0.07023439556360245, -0.21223625540733337, -0.03697334975004196, -0.03045240230858326, -0.10570065677165985, -0.08958795666694641, -0.23323985934257507, 0.2424846738576889, 0.24333146214485168, 0.1983071118593216, -0.07131751626729965, 0.31084421277046204, 0.33530178666114807, 0.07619920372962952, 0.38693684339523315, 0.1124013364315033, 0.09677907824516296, 0.6936832666397095, 0.13776251673698425, 0.12520252168178558, 0.0944368839263916, 0.03843781352043152, -0.26443347334861755, 0.0345916710793972, 0.12561248242855072, -0.33632808923721313, -0.2502646744251251, -0.17786718904972076, -0.057680610567331314, 0.1472637802362442, -0.2539334297180176, 0.30596619844436646, 0.2866603136062622, 0.3650681972503662, -0.03816220164299011, 0.21117259562015533, -0.03080449253320694, -0.16377408802509308, 0.20197038352489471, 0.38745632767677307, 0.44301527738571167, -0.5954429507255554, 0.1332690715789795, 0.4793850779533386, -0.12778069078922272, -0.02044772356748581, 0.2640164792537689, -0.28327837586402893, 0.971657395362854, 0.12240241467952728, 0.23897705972194672, 0.17746031284332275, -0.056902799755334854, -0.2832571864128113, -0.10965213924646378, -0.06922934204339981, 0.15048441290855408, -0.10251425206661224, -0.01436913013458252, 0.006445764563977718, -0.13863486051559448, 0.05634235218167305, -0.5317040085792542, -0.4928176701068878, 0.14157474040985107, -0.06944151222705841, 0.1635712832212448, 0.5938708186149597, -0.2485043853521347, 0.22457164525985718, 0.042094919830560684, 0.029974814504384995, -0.006260734982788563, 0.038162920624017715, 0.11981092393398285, -0.05761334300041199, 0.020076418295502663, -0.35066115856170654, 0.1356576532125473, 0.23766466975212097, -0.3176872730255127, -0.21142761409282684, 0.15973524749279022, -0.11075545102357864, -0.10382401198148727, -0.06932466477155685, 0.5388107895851135, -0.06888270378112793, 0.3479127585887909, -0.041988685727119446, -0.08670546859502792, -0.18872301280498505, -0.493883341550827, 0.07549239695072174, 0.1780686229467392, -0.3806148171424866, 0.12496176362037659, -0.19303975999355316, 0.10500573366880417, 0.04494355618953705, 0.2112225741147995, -0.07762456685304642, -0.513702929019928, -0.20199765264987946, -0.16895681619644165, 0.0394032783806324, 0.1415690779685974, 0.2810628414154053, 0.3291313946247101, 0.244610995054245, -0.3599986135959625, -0.08711419999599457, 0.24074581265449524, -0.37690070271492004, -0.2545088231563568, -0.4904039204120636, -0.0008208791259676218, -0.0353640578687191, 0.2822313606739044, -0.5947404503822327, 0.050875551998615265, -0.012004274874925613, -0.05757971853017807, 0.12640927731990814, -0.1706039309501648, -0.16045807301998138, -0.05797475948929787, 0.19052375853061676, 0.4509282112121582, -0.07088986784219742, -0.11685112118721008, -0.17743262648582458, -0.2140936404466629, 0.20102863013744354, 0.22693611681461334, -0.18399038910865784, 0.5195740461349487, -0.4584500789642334, 0.45830005407333374, 0.3113250434398651, -0.2849513590335846, -0.05713507905602455, -0.09794599562883377, -0.14273571968078613, -0.09169787168502808, 0.04003852233290672, -0.16578532755374908, 0.13804636895656586, -0.1873326152563095, -0.2785455882549286, 0.07209227234125137, 0.0015592878917232156, 0.20395833253860474, -0.1975085288286209, -0.3238659203052521, 0.2573684751987457, 0.12390001863241196, 0.16975195705890656, -0.0927252471446991, 0.15611685812473297, 0.3895820379257202, 0.5115290284156799, -0.08131274580955505, -0.05715133994817734, 0.020880533382296562, 0.22281117737293243, 0.15395477414131165, -0.013247436843812466, -0.11784137040376663, -0.07524231821298599, 0.05097729340195656, 0.1157507374882698, 0.22667920589447021, -0.2539446949958801, -0.22279992699623108, -0.22155286371707916, 0.27938413619995117, 0.02493092231452465, 0.1636645793914795, 0.026455232873558998, 0.19393178820610046, -0.20004914700984955, 0.25644081830978394, -0.07531139999628067, -0.2795470654964447, -0.3256711959838867, 0.193556547164917, -0.040226321667432785, 0.22809842228889465, -0.019277552142739296, -0.11507076770067215, -0.21683284640312195, -0.11588046699762344, 0.5183762311935425, 0.09092708677053452, -0.1253853440284729, -0.005552964750677347, 0.2218342274427414, 0.19945719838142395, -0.3905208706855774, -0.19282491505146027, -0.07357782125473022, -0.46237388253211975, 0.007323808036744595, 0.28810641169548035, 0.01475942600518465, -0.08817392587661743, 0.30435633659362793, 0.16237427294254303, 0.3630259037017822, 0.14953450858592987, -0.14183196425437927, 0.10467187315225601, 0.11111944913864136, -0.05884680896997452, 0.3165009021759033, -0.1134982779622078, 0.32259035110473633, 0.4323554039001465, -0.088290274143219, -0.24564069509506226, 0.1771974116563797, -0.08210500329732895, 0.5798700451850891, -0.16132283210754395, 0.3835199475288391, 0.24824941158294678, -0.2514740526676178, -0.0573459267616272, 0.2625972628593445, -0.34264445304870605, 0.038819320499897, -0.0855650007724762, -0.17106880247592926, 0.26084139943122864, 0.11249113827943802, 0.09507188946008682, 0.4415658116340637, 0.18597330152988434, 0.04930197447538376, 0.033459022641181946, -0.2050510197877884, -0.07291572540998459, -0.3128662705421448, -0.08426565676927567, -0.5056684613227844, 0.2636982500553131, -0.4026719033718109, -0.020320137962698936, -0.30427056550979614, -0.05646534264087677, -0.4614547789096832, -0.05380422994494438, -0.3293024003505707, -0.1057727113366127, -0.15451593697071075, 0.23915347456932068, -0.18525661528110504, 0.04931259900331497, -0.09501679241657257, 0.21746361255645752, -0.09376838058233261, 0.4357784390449524, -0.1978890746831894, -0.4379400312900543, -0.4635024070739746, -0.18985436856746674, 0.5398998260498047, 0.2548500597476959, 0.052080415189266205, -0.13765093684196472, -0.26093608140945435, -0.22512705624103546, -0.10037172585725784, 0.4269750714302063, 0.12382999807596207, 0.012356345541775227, -0.026343509554862976, 0.29415076971054077, 0.14058944582939148, -0.39748257398605347, -0.021060660481452942, -0.26811665296554565, -0.04956844449043274, 0.07129322737455368, 0.06346752494573593, -0.08284450322389603, 0.1557229608297348, -0.05711312219500542, -0.38413992524147034, -0.09794773161411285, -0.25737327337265015, -0.15976956486701965, 0.16117128729820251, -0.40414944291114807, -0.11385800689458847, 0.18185605108737946, -0.41527873277664185, -0.2532137632369995, -0.1731044054031372, 0.0803443044424057, 0.08334237337112427, 0.0995667427778244, -0.13322234153747559, 0.22561073303222656, 0.02598537504673004, 0.023223936557769775, 0.06673948466777802, -0.4840840995311737, 0.38210999965667725, 0.1489904224872589, -0.06953074783086777, -0.22078244388103485, -0.059650979936122894, 0.21725109219551086, -0.1444765031337738, 0.15588977932929993, 0.06457795202732086, -0.15545654296875, -0.36199483275413513, -0.2255571335554123, 0.4314025938510895, -0.17061462998390198, 0.34859541058540344, 0.08842083066701889, 0.7554529309272766, -0.11211924999952316, 0.17908187210559845, 0.21855436265468597, -0.07674558460712433, -0.04682236537337303, 0.20998986065387726, -0.1366441696882248, 0.19607855379581451, 0.004136092960834503, -0.33868783712387085, 0.5686206221580505, -0.18338219821453094, -0.40303680300712585, -0.1962033063173294, -0.10506153106689453, -0.5596651434898376, -0.5058279633522034, 0.12227343022823334, 0.4351058900356293, 0.1982283741235733, -0.05933034420013428, 0.3139866590499878, -0.08330526202917099, -0.32765981554985046, 0.13979405164718628, 0.33052220940589905, -0.15926027297973633, -0.12496935576200485, -0.283772736787796, -0.09239520877599716, -0.06767240911722183, 0.08121130615472794, 0.17045587301254272, 0.4799148440361023, -0.02804892137646675, 0.036119841039180756, 0.009550458751618862, -0.04126770421862602, 0.5193567872047424, 0.27424901723861694, 0.36251509189605713, -0.010145753622055054, 0.17138172686100006, -0.050232019275426865, -0.3192237317562103, -0.1449989676475525, 0.07955682277679443, 0.4323595464229584, -0.040552329272031784, -0.4624992609024048, 0.08069543540477753, -0.017864622175693512, 0.10463989526033401, -0.16885647177696228, 0.009762007743120193, -0.12073429673910141, -0.1927434653043747, -0.26437613368034363, 0.32593750953674316, 0.12500789761543274, 0.08985062688589096, 0.18377897143363953, 0.1340368688106537, 0.2293272614479065, 0.13694418966770172, 0.05535459518432617, 0.08963757008314133, 0.12919999659061432, 0.017947010695934296, -0.23576274514198303, -0.1744028776884079, 0.20553714036941528, 0.19449718296527863, 0.22999471426010132, 0.672367513179779, -0.10573005676269531, 0.005119661334902048, 0.13535355031490326, 0.18142786622047424, 0.4497550427913666, 0.012188444845378399, 0.35559266805648804, 0.29670217633247375, 0.23264548182487488, -0.20240595936775208, 0.17966428399085999, 0.20872242748737335, -0.030425576493144035, -0.37457340955734253, 0.08204477280378342, 0.5366144776344299, -0.11982911825180054, -0.07006368786096573, 0.14489606022834778, -0.08489640802145004, -0.3131203353404999, 0.31409987807273865, 0.3210224211215973, 1.355976939201355, 0.1880858838558197, 0.06674150377511978, 0.11775057017803192, 0.04060620069503784, 0.8324746489524841, -0.5170827507972717, -0.10367771983146667, -0.3959556519985199, 0.0850277915596962, -0.13505586981773376, -0.05789009854197502, 0.13595765829086304, 0.04156183451414108, -0.2892323136329651, 0.30578747391700745, 0.11487342417240143, 0.8049691319465637, 0.15436755120754242, 0.2144240289926529, 0.13210555911064148, -0.027072587981820107, -0.2793477773666382, -0.05628114566206932, -0.3469499349594116, 0.2603119909763336, -0.3400983214378357, 0.11585833132266998, 0.16447612643241882, -0.3571956157684326, -0.7858266234397888, 0.16946613788604736, -0.16056643426418304, 0.12773871421813965, 0.04889672249555588, 0.005637457128614187, 0.20987997949123383, -0.1723468005657196, 0.08029097318649292, 0.30556944012641907, -0.2605268955230713, 0.4705590605735779, -0.12500962615013123, -0.23334519565105438, 0.06654930114746094, 0.09017284959554672, -0.13048675656318665, -0.11009623110294342, -0.19469080865383148, 0.38936418294906616, 0.032588861882686615, -0.2813830077648163, -0.22523801028728485, -0.0576399527490139, 0.3674291968345642, 0.009480230510234833, -0.40637215971946716, 0.033068712800741196, 0.22429992258548737, -0.1330426186323166, 0.02342757023870945, 0.0034671793691813946, -0.13971960544586182, -0.044703904539346695, 0.1933460235595703, -0.12995435297489166, -0.07933682948350906, 0.19539031386375427, -0.07743829488754272, -0.45648905634880066, 0.35848990082740784, 0.4071047306060791, -0.16135892271995544, -0.1280614286661148, -0.08840872347354889, -0.3836040198802948, -0.5540082454681396, -0.19972865283489227, -0.15115126967430115, -0.012899692170321941, -0.06899537891149521, 0.12370938807725906, 0.36961203813552856, -0.06930874288082123, -0.07825305312871933, -0.38250353932380676, 0.020622488111257553, 0.03971371799707413, -0.19700543582439423, -0.039380159229040146, -0.036567337810993195, 0.12315595895051956, -0.22335997223854065, 0.11753379553556442, -0.09844793379306793, -0.024483945220708847, -0.4243432283401489, 0.18595562875270844, 0.4281350076198578, 0.27438047528266907, -0.3331555724143982, -0.1590728759765625, -0.06662168353796005, 0.28996312618255615, 0.04784778133034706, 0.0016905666561797261, -0.1511014848947525, 0.28251588344573975, 0.26117560267448425, -0.10198590904474258, 0.20510335266590118, 0.009290549904108047, 0.3371179401874542, -0.06207774206995964, -0.06454841792583466, -0.024772172793745995, 0.0066656009294092655, 0.2926817834377289, 0.3140415549278259, 0.13979555666446686, -0.5953769087791443, 0.27018919587135315, 0.06475482136011124, 0.5508176684379578, 0.05699324607849121, 0.3407200872898102, 0.09931648522615433, 0.0030708727426826954, -0.16588936746120453, 0.24017232656478882, 0.18459346890449524, 0.24944737553596497, 0.0745815709233284, 0.16626769304275513, -0.13446404039859772, 0.11949585378170013, -0.17316094040870667, 0.19676412642002106, -0.28468549251556396, -0.1794304996728897, 0.5265514850616455, 0.05294428765773773, -0.1286945790052414, 0.0018365508876740932, 0.4313605725765228, -0.08539659529924393, -0.29114431142807007, 0.24471330642700195, -0.15680164098739624, -0.2636803388595581, 0.37403249740600586, 0.13540531694889069, 0.3472862243652344, 0.08615430444478989, 0.11398442834615707, 0.09741955995559692, -0.07081657648086548, 0.20935800671577454, -0.0196559838950634, -0.22258111834526062, 0.3959622383117676, 0.5164219737052917, 0.0391366146504879, 0.21923278272151947, 0.14542298018932343, 0.09875885397195816, -0.058323316276073456, -0.150276318192482, 0.20719929039478302, 0.658782422542572, 0.009075777605175972, 0.11815477907657623, -0.01623939722776413, 0.00036285343230701983, 0.11902516335248947, -0.16178902983665466, -0.47236567735671997, 0.221599742770195, -0.2770657539367676, -0.020843099802732468, -0.3840039074420929, -0.1041664183139801, -0.30062609910964966, 0.2633962631225586, 0.09935448318719864, -0.09731242060661316, -0.27572786808013916, 0.2871500849723816, -0.4027177393436432, 0.11545790731906891, -0.08657451719045639, 0.027919115498661995, 0.011255498975515366, -0.30688047409057617, 0.10570617020130157, -0.22018668055534363, 0.023019691929221153, -0.0036660032346844673, 0.1486099809408188, 0.46376994252204895, 0.5263075828552246, -0.244931161403656, -0.06904523074626923, 0.1363198608160019, 0.19986030459403992, -0.0509444884955883, 0.04710397496819496, 0.009056724607944489, 0.44177085161209106, 0.12171486020088196, 0.033291757106781006, -0.1301124095916748, -0.26721805334091187, 0.09092213958501816, -0.1036502942442894, -0.08549829572439194, -0.27361804246902466, -0.12429199367761612, -0.0035993033088743687, -0.27670717239379883, -0.011925602331757545, -0.2484143078327179, 0.22768738865852356, 0.1429172158241272, 0.21549369394779205, 0.1450827717781067, 0.018153361976146698, -0.03326776251196861, 0.0562596395611763, 0.21754373610019684, 0.3581022620201111, 0.3341633677482605, -0.20067209005355835, -0.5086641907691956, -0.726099967956543, 0.394866019487381, -0.34758368134498596, -0.30042412877082825, 0.19890998303890228, -0.09782308340072632, 0.13192498683929443, 0.4655018150806427, 0.1446801722049713, 0.210507333278656, -0.22155235707759857, 0.17115628719329834, -0.22060777246952057, -0.28629857301712036, 0.09096406400203705, 0.004000842571258545, -0.17307204008102417, -0.43090835213661194, 0.30136001110076904, -0.1249786987900734, -0.10849954187870026, -0.12390720099210739, -0.30518364906311035, -0.062298741191625595, -0.31060248613357544, 0.5700953006744385, 0.022432591766119003, 0.3696019947528839, -0.08371700346469879, -0.014917238615453243, -0.11990446597337723, -0.10478438436985016, 0.005030443891882896, -0.02788817137479782, -0.14313001930713654, 0.35424867272377014, 0.10514287650585175, 0.26775887608528137, -0.5126782655715942, 0.32207024097442627, 0.11844660341739655, 0.1490105539560318, -0.21591399610042572, -0.027439145371317863, -0.2320137619972229, 0.05370150879025459, 0.16112767159938812, 0.04579158499836922, 0.06877796351909637, 0.2690195143222809, -0.35089945793151855, -0.1207108423113823, 0.2304454743862152, -0.48414328694343567, -0.2777427136898041, -0.3321533799171448, 0.42678704857826233, -0.08946695923805237, -0.2710377871990204, -0.23656854033470154, -0.1027490422129631, 0.1876012682914734, 0.13102391362190247, -0.04902258887887001, -0.232020303606987, -0.17516903579235077, -0.07894083857536316, -0.02054530568420887, -0.0076950364746153355, 0.1971932053565979, -0.5537315607070923, 0.2444155514240265, -0.4019876718521118 ]
https://github.com/huggingface/datasets/issues/321
ERROR:root:mwparserfromhell
Hi, Thank you for you answer. I have try to print the bad section using `try` and `except`, but it is a bit weird as the error seems to appear 3 times for instance, but the two first error does not print anything (as if the function did not go in the `except` part). For the third one, I got that (I haven't display the entire text) : > error : ==== Parque nacional Cajas ==== > {{AP|Parque nacional Cajas}} > [[Archivo:Ecuador cajas national park.jpg|thumb|left|300px|Laguna del Cajas]] > El parque nacional Cajas está situado en los [[Cordillera de los Andes|Andes]], al sur del [[Ecuador]], en la provincia de [[Provincia de Azuay|Azuay]], a 33 > [[km]] al noroccidente de la ciudad de [[Cuenca (Ecuador)|Cuenca]]. Los accesos más comunes al parque inician todos en Cuenca: Desde allí, la vía Cuenca-Mol > leturo atraviesa en Control de [[Surocucho]] en poco más de 30 minutos de viaje; más adelante, esta misma carretera pasa a orillas de la laguna La Toreadora donde están el Centro Administrativo y de Información del parque. Siguiendo de largo hacia [[Molleturo]], por esta vía se conoce el sector norte del Cajas y se serpentea entre varias lagunas mayores y menores. > Para acceder al parque desde la costa, la vía Molleturo-Cuenca es también la mejor opción. How can I display the link instead of the text ? I suppose it will help you more
Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
234
ERROR:root:mwparserfromhell Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` Hi, Thank you for you answer. I have try to print the bad section using `try` and `except`, but it is a bit weird as the error seems to appear 3 times for instance, but the two first error does not print anything (as if the function did not go in the `except` part). For the third one, I got that (I haven't display the entire text) : > error : ==== Parque nacional Cajas ==== > {{AP|Parque nacional Cajas}} > [[Archivo:Ecuador cajas national park.jpg|thumb|left|300px|Laguna del Cajas]] > El parque nacional Cajas está situado en los [[Cordillera de los Andes|Andes]], al sur del [[Ecuador]], en la provincia de [[Provincia de Azuay|Azuay]], a 33 > [[km]] al noroccidente de la ciudad de [[Cuenca (Ecuador)|Cuenca]]. Los accesos más comunes al parque inician todos en Cuenca: Desde allí, la vía Cuenca-Mol > leturo atraviesa en Control de [[Surocucho]] en poco más de 30 minutos de viaje; más adelante, esta misma carretera pasa a orillas de la laguna La Toreadora donde están el Centro Administrativo y de Información del parque. Siguiendo de largo hacia [[Molleturo]], por esta vía se conoce el sector norte del Cajas y se serpentea entre varias lagunas mayores y menores. > Para acceder al parque desde la costa, la vía Molleturo-Cuenca es también la mejor opción. How can I display the link instead of the text ? I suppose it will help you more
[ -0.21938608586788177, -0.2222694605588913, 0.0420609749853611, 0.3609674274921417, 0.0011133046355098486, -0.057776860892772675, -0.24175450205802917, 0.20955322682857513, 0.30749449133872986, 0.1932075470685959, 0.34783217310905457, 0.01010232511907816, 0.004232395440340042, -0.4349834620952606, -0.09329992532730103, -0.02336765080690384, 0.29528889060020447, 0.19792023301124573, 0.04570229351520538, -0.20405632257461548, -0.00736665865406394, 0.18823015689849854, -0.43747401237487793, 0.32603344321250916, -0.1881963610649109, 0.11314099282026291, 0.15817898511886597, -0.1393154263496399, 0.014604298397898674, -0.3755427300930023, -0.007420695386826992, -0.31442737579345703, 0.09271465241909027, 0.3675207495689392, -0.00012742719263769686, -0.23713631927967072, 0.45859354734420776, -0.09678591042757034, -0.11382023245096207, -0.1958170086145401, -0.09124872088432312, -0.14596964418888092, -0.11450894176959991, -0.2957971394062042, 0.27066898345947266, 0.02217373624444008, 0.2623669505119324, -0.26418232917785645, 0.37278011441230774, 0.31151214241981506, 0.05848381295800209, 0.11521890014410019, 0.2354290634393692, 0.06525973230600357, 0.4728449583053589, 0.1147162914276123, 0.17199741303920746, -0.016830023378133774, 0.002863851375877857, -0.05669724568724632, 0.17470641434192657, 0.226607084274292, -0.35178032517433167, -0.28065982460975647, -0.14325235784053802, 0.01911911740899086, 0.3303053677082062, -0.39328551292419434, 0.4076824188232422, 0.17490720748901367, 0.334166556596756, -0.06309697031974792, 0.35281169414520264, -0.00913317408412695, -0.20084141194820404, 0.19680258631706238, 0.40431535243988037, 0.5426412224769592, -0.41971665620803833, 0.0692000761628151, 0.2718421220779419, -0.09638651460409164, -0.10639959573745728, 0.3659133315086365, -0.15457457304000854, 0.8306203484535217, 0.023302162066102028, 0.27874982357025146, 0.07192777097225189, -0.020849645137786865, -0.06377016007900238, -0.2760685384273529, -0.024061929434537888, 0.285209059715271, -0.04583035409450531, 0.06040459871292114, -0.1112741008400917, -0.12041272968053818, -0.03448347747325897, -0.5352157354354858, -0.3188855051994324, 0.016315273940563202, 0.05203604698181152, 0.25360846519470215, 0.5370829701423645, -0.1810668706893921, 0.1744212657213211, 0.0504518523812294, -0.14366298913955688, -0.03621182590723038, 0.0503573939204216, -0.014971527270972729, 0.012663545086979866, -0.0031580927316099405, -0.43113523721694946, 0.16124387085437775, 0.20760215818881989, -0.18558625876903534, -0.04317631945014, 0.34129834175109863, -0.20803800225257874, -0.038912154734134674, -0.10027504712343216, 0.422810435295105, -0.0640101507306099, 0.3921242654323578, 0.04329553619027138, -0.0033581447787582874, -0.11120811104774475, -0.47317373752593994, 0.011611999943852425, 0.37636393308639526, -0.39169612526893616, 0.13399644196033478, -0.26207470893859863, 0.21827614307403564, 0.12394098192453384, 0.237480029463768, -0.05756552889943123, -0.664743185043335, -0.16369414329528809, -0.31961801648139954, 0.08898186683654785, 0.07216077297925949, 0.2993113398551941, 0.4473593235015869, 0.22032266855239868, -0.3982047736644745, -0.011189098469913006, 0.24413816630840302, -0.3707469701766968, -0.10914609581232071, -0.51190584897995, 0.03270048648118973, -0.00722705340012908, 0.2863242030143738, -0.613017737865448, 0.07103525102138519, -0.06083051860332489, -0.20346644520759583, 0.15534554421901703, -0.13660861551761627, -0.09469481557607651, -0.04013139382004738, 0.13149504363536835, 0.28437623381614685, -0.18425317108631134, 0.10151565819978714, -0.16003628075122833, -0.1020817682147026, 0.4438629448413849, 0.1019091084599495, -0.07998419553041458, 0.6557812094688416, -0.46828463673591614, 0.6272982358932495, 0.20624494552612305, -0.33827781677246094, 0.11297512799501419, 0.09437788277864456, -0.029743120074272156, -0.1602766364812851, -0.017542308196425438, -0.22832849621772766, 0.16368770599365234, -0.07943164557218552, -0.38107335567474365, -0.016095351427793503, 0.020554324612021446, 0.2330000102519989, -0.1959822177886963, -0.22873733937740326, 0.1465274542570114, 0.019891930744051933, 0.19137245416641235, -0.08261832594871521, 0.1403738260269165, 0.4307593107223511, 0.46531447768211365, -0.1570243090391159, 0.03320144861936569, 0.0829630047082901, 0.12457801401615143, 0.23429912328720093, -0.12931352853775024, 0.022203363478183746, -0.05318237096071243, -0.0452171228826046, 0.07894058525562286, 0.1511831283569336, -0.28359606862068176, -0.04151757434010506, -0.22713208198547363, 0.21974003314971924, -0.0927402600646019, 0.08088618516921997, 0.06595417112112045, 0.16509853303432465, -0.14871519804000854, 0.3934493064880371, 0.0759454295039177, -0.2305079698562622, -0.22857169806957245, 0.11416292935609818, -0.07203220576047897, 0.2543574273586273, -0.19999322295188904, -0.18697091937065125, -0.3368492126464844, -0.10408718883991241, 0.5295459628105164, 0.020654946565628052, -0.12651483714580536, 0.1563125103712082, 0.2563989758491516, 0.12107878178358078, -0.4433184564113617, -0.19288913905620575, -0.040088288486003876, -0.507074773311615, 0.14195619523525238, 0.2667558789253235, 0.2609446942806244, -0.09809178113937378, 0.16882415115833282, 0.055103790014982224, 0.3346443772315979, 0.048199452459812164, -0.16432079672813416, 0.047128330916166306, 0.09512428939342499, 0.01967710256576538, 0.3859916031360626, -0.23090505599975586, 0.29759421944618225, 0.5082976222038269, -0.15378499031066895, -0.3612564206123352, 0.19454975426197052, -0.15084509551525116, 0.5056223273277283, -0.018544942140579224, 0.1731354296207428, 0.11719371378421783, -0.19680722057819366, -0.05987139418721199, 0.29995352029800415, -0.394796758890152, 0.06854560226202011, -0.09935987740755081, -0.14917579293251038, 0.43545424938201904, 0.25584399700164795, 0.07677288353443146, 0.4650767147541046, 0.21692363917827606, -0.059419773519039154, 0.10053227841854095, -0.2642534077167511, -0.023702939972281456, -0.20294272899627686, -0.2103263884782791, -0.3739580810070038, 0.23629993200302124, -0.28539904952049255, -0.010782787576317787, -0.2933441996574402, -0.03774536773562431, -0.3747028410434723, 0.13439640402793884, -0.31282874941825867, -0.13696074485778809, -0.07216951251029968, 0.2654462456703186, -0.2574842572212219, 0.10888037830591202, 0.016320720314979553, 0.08901083469390869, -0.08744972199201584, 0.3828769326210022, -0.3068619966506958, -0.28601309657096863, -0.4424816071987152, -0.17942339181900024, 0.48419129848480225, 0.2453591525554657, 0.08988484740257263, -0.1131184995174408, -0.034019794315099716, -0.2677024006843567, -0.1557064652442932, 0.44352635741233826, -0.10226929932832718, -0.04438969865441322, -0.03835367038846016, 0.2406127154827118, -0.00865321233868599, -0.37581247091293335, -0.0006712800241075456, -0.3829978108406067, -0.04584744572639465, 0.08858590573072433, 0.03539314493536949, -0.1559865027666092, 0.040686655789613724, -0.026983825489878654, -0.23937763273715973, -0.06891036033630371, -0.3220786154270172, -0.11888274550437927, 0.12218399345874786, -0.3866705894470215, 0.08277346193790436, 0.20168644189834595, -0.39917585253715515, -0.21271391212940216, -0.1958940625190735, 0.029410675168037415, 0.07836788892745972, 0.02081163227558136, -0.17797785997390747, 0.37859824299812317, 0.033809348940849304, 0.17183786630630493, -0.11268847435712814, -0.5451937913894653, 0.4099717140197754, 0.0750000849366188, -0.17718593776226044, -0.3284284174442291, 0.060792114585638046, 0.2713208496570587, -0.18990321457386017, 0.1288839876651764, 0.06280074268579483, -0.15092292428016663, -0.3709457814693451, -0.22822809219360352, 0.35102930665016174, -0.14031201601028442, 0.3559286594390869, 0.049637410789728165, 0.6082237362861633, -0.026560775935649872, 0.23322464525699615, 0.3531586825847626, -0.0431797057390213, 0.0447726733982563, 0.0899033471941948, -0.044581301510334015, 0.3161126673221588, 0.12385071069002151, -0.34871602058410645, 0.5429699420928955, -0.2769106924533844, -0.2745012640953064, -0.2182304412126541, -0.011459325440227985, -0.6698670387268066, -0.43835508823394775, 0.20534896850585938, 0.5381643176078796, 0.17441785335540771, -0.21527452766895294, 0.2217819094657898, -0.09326566010713577, -0.3328770101070404, -0.11351469159126282, 0.14455296099185944, -0.05766046792268753, -0.09417829662561417, -0.2348817139863968, -0.024978099390864372, -0.10070887953042984, 0.26607441902160645, 0.1573956310749054, 0.3585384488105774, -0.0458335354924202, 0.015484307892620564, 0.08257889002561569, 0.09378430247306824, 0.4519883990287781, 0.2045949250459671, 0.2119661420583725, -0.1028493344783783, 0.07416403293609619, -0.06308518350124359, -0.3478736877441406, -0.3351350724697113, -0.08633191138505936, 0.5785008072853088, -0.12388893216848373, -0.48157113790512085, -0.018839921802282333, -0.08020314574241638, 0.06550957262516022, -0.05751734972000122, -0.09267009794712067, -0.05098217353224754, -0.13906966149806976, -0.41484519839286804, 0.31354600191116333, 0.2891494929790497, 0.13600242137908936, 0.2378210723400116, 0.13199278712272644, 0.25268763303756714, 0.11431025713682175, -0.0005193333490751684, -0.019073721021413803, 0.10958955436944962, 0.032437730580568314, -0.3732856810092926, -0.15983501076698303, 0.15721280872821808, 0.09436185657978058, 0.12165917456150055, 0.5638349652290344, -0.19612236320972443, -0.011466892436146736, -0.04034338518977165, 0.28470200300216675, 0.43750473856925964, 0.07138007879257202, 0.12141074240207672, 0.35621365904808044, 0.33273524045944214, -0.03988607972860336, 0.2376553863286972, 0.22014151513576508, 0.008926084265112877, -0.3136923909187317, 0.12028016895055771, 0.35561642050743103, 0.1389288306236267, -0.07408024370670319, -0.0028919868636876345, 0.14563055336475372, -0.2708336412906647, 0.3193233013153076, 0.3195788562297821, 1.3723790645599365, 0.25247830152511597, -0.012291236780583858, 0.07015492022037506, 0.11585783958435059, 0.8574780821800232, -0.5321183204650879, -0.02479400485754013, -0.30119767785072327, 0.1800718754529953, -0.11567514389753342, 0.02214171551167965, 0.17938479781150818, 0.009346499107778072, -0.4308929145336151, 0.3299601376056671, 0.09153047204017639, 0.671650767326355, 0.13982722163200378, 0.09622154384851456, 0.32844293117523193, -0.0460926815867424, -0.09646019339561462, -0.022246968001127243, -0.27503544092178345, 0.0543852373957634, -0.37486013770103455, 0.03840332105755806, 0.20375706255435944, -0.49871155619621277, -0.6637935042381287, 0.15886621177196503, -0.14763973653316498, 0.07618945091962814, -0.048073723912239075, 0.02077154628932476, 0.3031444549560547, -0.05410480871796608, 0.10487505048513412, 0.3243846595287323, -0.20847316086292267, 0.2775375247001648, -0.09196442365646362, -0.28519168496131897, -0.16175556182861328, -0.03091440349817276, -0.15572942793369293, -0.11145635694265366, -0.21506254374980927, 0.49815329909324646, 0.000033860353141790256, -0.20027077198028564, -0.20032475888729095, 0.020661398768424988, 0.3636734187602997, 0.021987704560160637, -0.3902977705001831, 0.0601796917617321, 0.06968922168016434, -0.09990490227937698, -0.0018912324449047446, -0.08279354125261307, -0.12729068100452423, 0.009607565589249134, 0.2655424475669861, -0.1900431364774704, -0.0008515166700817645, 0.24477487802505493, -0.081512950360775, -0.46898120641708374, 0.352414071559906, 0.35400113463401794, -0.2234308123588562, -0.17344026267528534, -0.22125163674354553, -0.47350481152534485, -0.5677687525749207, -0.16660641133785248, -0.14677084982395172, 0.0511137880384922, -0.045668285340070724, 0.2104509025812149, 0.38310426473617554, -0.02266840636730194, 0.074748195707798, -0.3272094428539276, 0.11521243304014206, 0.019420437514781952, -0.35649606585502625, 0.0015362530248239636, -0.04342752322554588, 0.2575896680355072, -0.0683799609541893, 0.00015156187873799354, -0.10801097005605698, 0.07149438560009003, -0.5082103610038757, 0.20363202691078186, 0.2900799512863159, 0.22271955013275146, -0.3865596652030945, -0.1188449040055275, 0.004873562604188919, 0.3294779658317566, -0.09604590386152267, -0.019661353901028633, -0.07842187583446503, 0.2802026867866516, 0.4783467650413513, -0.16159597039222717, 0.0482015460729599, 0.1021147221326828, 0.2719174325466156, -0.1299031525850296, -0.10130228102207184, -0.15920215845108032, -0.034085892140865326, 0.3143938183784485, 0.17499129474163055, 0.2555945813655853, -0.5346779227256775, 0.10848341882228851, 0.10956606268882751, 0.6087109446525574, 0.03997374325990677, 0.30463042855262756, 0.19938009977340698, -0.036480776965618134, -0.18201254308223724, 0.18664750456809998, 0.3626477122306824, 0.3018641769886017, 0.03685476630926132, 0.04865754768252373, -0.11260313540697098, 0.11416927725076675, -0.22405090928077698, 0.19155703485012054, -0.3164016902446747, -0.26974332332611084, 0.5364502668380737, 0.10279284417629242, -0.1424027532339096, 0.20942406356334686, 0.5686340928077698, 0.17056843638420105, -0.2566484808921814, 0.20803113281726837, -0.05597059801220894, -0.38401293754577637, 0.42071688175201416, 0.16809630393981934, 0.38149580359458923, -0.008403818123042583, 0.0741003006696701, -0.028921794146299362, -0.25066861510276794, 0.26439395546913147, -0.010890080593526363, 0.007176638580858707, 0.23462003469467163, 0.4581385850906372, -0.13358666002750397, 0.09077978879213333, 0.13317032158374786, 0.18491230905056, -0.08697883784770966, -0.21929559111595154, 0.14294129610061646, 0.5942341089248657, 0.06617363542318344, -0.040924590080976486, -0.16328312456607819, -0.38282135128974915, 0.20216938853263855, -0.1307416409254074, -0.4244835674762726, 0.26496297121047974, -0.2229960709810257, 0.14158399403095245, -0.4221546947956085, -0.08250685036182404, -0.2875141501426697, 0.15611085295677185, 0.18956464529037476, -0.10852154344320297, -0.24051067233085632, 0.3406592905521393, -0.35343289375305176, 0.009075548499822617, -0.21952690184116364, -0.03452427312731743, -0.11567184329032898, -0.36185577511787415, 0.2184065878391266, -0.06041811779141426, -0.022762415930628777, -0.1466320902109146, 0.31518369913101196, 0.5144748687744141, 0.5036407113075256, -0.33210569620132446, 0.009695875458419323, -0.01253984309732914, 0.2140851467847824, 0.04019175469875336, 0.1396663635969162, 0.15443316102027893, 0.308373361825943, 0.09841924160718918, 0.04429897665977478, -0.1031992956995964, -0.14438700675964355, 0.24818775057792664, 0.035243064165115356, 0.08717211335897446, -0.39642366766929626, -0.04276001453399658, 0.2113647609949112, -0.29746949672698975, -0.062440719455480576, -0.4478716254234314, 0.15800441801548004, 0.14008532464504242, 0.05918211489915848, 0.14783711731433868, 0.03339286893606186, -0.025246094912290573, 0.019644644111394882, 0.1699490249156952, 0.3986818194389343, 0.3376193940639496, -0.28504589200019836, -0.49596598744392395, -0.5544902086257935, 0.4598614275455475, -0.30906254053115845, -0.21796852350234985, -0.005354595370590687, 0.02879830077290535, 0.12464090436697006, 0.4619225263595581, 0.10057087987661362, 0.13583706319332123, -0.37699875235557556, 0.3481937348842621, -0.21029545366764069, -0.020289933308959007, 0.2572200298309326, -0.03401896357536316, -0.05186523497104645, -0.1813146024942398, 0.23957522213459015, -0.21291792392730713, -0.05216857045888901, -0.10758654028177261, -0.11473697423934937, -0.2043808251619339, -0.18759839236736298, 0.5656715631484985, 0.18079544603824615, 0.3579048216342926, -0.10336603224277496, -0.0331890769302845, -0.07599397003650665, 0.1037638783454895, 0.013417739421129227, 0.00976178701967001, 0.12764374911785126, 0.17638549208641052, 0.01841527782380581, 0.2718158960342407, -0.42934975028038025, 0.24518424272537231, 0.08266671746969223, 0.13522498309612274, -0.31059637665748596, -0.04884988069534302, -0.20558810234069824, 0.11156218498945236, -0.10699724406003952, -0.053172577172517776, -0.0025399094447493553, 0.2643364667892456, -0.39473089575767517, -0.12867134809494019, 0.27915188670158386, -0.39821863174438477, -0.3795570433139801, -0.3196084201335907, 0.29292237758636475, -0.12394113838672638, -0.049782779067754745, -0.11906304955482483, 0.029518429189920425, 0.18058384954929352, 0.13517241179943085, -0.17625483870506287, -0.2394537627696991, -0.2590573728084564, -0.2007954716682434, 0.030158447101712227, -0.005295754410326481, 0.15393219888210297, -0.3781678378582001, 0.17788183689117432, -0.39502042531967163 ]
https://github.com/huggingface/datasets/issues/321
ERROR:root:mwparserfromhell
The error appears several times as Apache Beam retries to process examples up to 4 times irc. I just tried to run this text into `mwparserfromhell` but it worked without the issue. I used this code (from the `wikipedia.py` script): ```python import mwparserfromhell as parser import re import six raw_content = r"""==== Parque nacional Cajas ==== {{AP|Parque nacional Cajas}} [[Archivo:Ecuador cajas national park.jpg|thumb|left|300px|Laguna del Cajas]] El parque nacional Cajas está situado en los [[Cordillera de los Andes|Andes]], al sur del [[Ecuador]], en la provincia de [[Provincia de Azuay|Azuay]], a 33 [[km]] al noroccidente de la ciudad de [[Cuenca (Ecuador)|Cuenca]]. Los accesos más comunes al parque inician todos en Cuenca: Desde allí, la vía Cuenca-Mol leturo atraviesa en Control de [[Surocucho]] en poco más de 30 minutos de viaje; más adelante, esta misma carretera pasa a orillas de la laguna La Toreadora donde están el Centro Administrativo y de Información del parque. Siguiendo de largo hacia [[Molleturo]], por esta vía se conoce el sector norte del Cajas y se serpentea entre varias lagunas mayores y menores. """ wikicode = parser.parse(raw_content) # Filters for references, tables, and file/image links. re_rm_wikilink = re.compile("^(?:File|Image|Media):", flags=re.IGNORECASE | re.UNICODE) def rm_wikilink(obj): return bool(re_rm_wikilink.match(six.text_type(obj.title))) def rm_tag(obj): return six.text_type(obj.tag) in {"ref", "table"} def rm_template(obj): return obj.name.lower() in {"reflist", "notelist", "notelist-ua", "notelist-lr", "notelist-ur", "notelist-lg"} def try_remove_obj(obj, section): try: section.remove(obj) except ValueError: # For unknown reasons, objects are sometimes not found. pass section_text = [] for section in wikicode.get_sections(flat=True, include_lead=True, include_headings=True): for obj in section.ifilter_wikilinks(matches=rm_wikilink, recursive=True): try_remove_obj(obj, section) for obj in section.ifilter_templates(matches=rm_template, recursive=True): try_remove_obj(obj, section) for obj in section.ifilter_tags(matches=rm_tag, recursive=True): try_remove_obj(obj, section) section_text.append(section.strip_code().strip()) ```
Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
264
ERROR:root:mwparserfromhell Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` The error appears several times as Apache Beam retries to process examples up to 4 times irc. I just tried to run this text into `mwparserfromhell` but it worked without the issue. I used this code (from the `wikipedia.py` script): ```python import mwparserfromhell as parser import re import six raw_content = r"""==== Parque nacional Cajas ==== {{AP|Parque nacional Cajas}} [[Archivo:Ecuador cajas national park.jpg|thumb|left|300px|Laguna del Cajas]] El parque nacional Cajas está situado en los [[Cordillera de los Andes|Andes]], al sur del [[Ecuador]], en la provincia de [[Provincia de Azuay|Azuay]], a 33 [[km]] al noroccidente de la ciudad de [[Cuenca (Ecuador)|Cuenca]]. Los accesos más comunes al parque inician todos en Cuenca: Desde allí, la vía Cuenca-Mol leturo atraviesa en Control de [[Surocucho]] en poco más de 30 minutos de viaje; más adelante, esta misma carretera pasa a orillas de la laguna La Toreadora donde están el Centro Administrativo y de Información del parque. Siguiendo de largo hacia [[Molleturo]], por esta vía se conoce el sector norte del Cajas y se serpentea entre varias lagunas mayores y menores. """ wikicode = parser.parse(raw_content) # Filters for references, tables, and file/image links. re_rm_wikilink = re.compile("^(?:File|Image|Media):", flags=re.IGNORECASE | re.UNICODE) def rm_wikilink(obj): return bool(re_rm_wikilink.match(six.text_type(obj.title))) def rm_tag(obj): return six.text_type(obj.tag) in {"ref", "table"} def rm_template(obj): return obj.name.lower() in {"reflist", "notelist", "notelist-ua", "notelist-lr", "notelist-ur", "notelist-lg"} def try_remove_obj(obj, section): try: section.remove(obj) except ValueError: # For unknown reasons, objects are sometimes not found. pass section_text = [] for section in wikicode.get_sections(flat=True, include_lead=True, include_headings=True): for obj in section.ifilter_wikilinks(matches=rm_wikilink, recursive=True): try_remove_obj(obj, section) for obj in section.ifilter_templates(matches=rm_template, recursive=True): try_remove_obj(obj, section) for obj in section.ifilter_tags(matches=rm_tag, recursive=True): try_remove_obj(obj, section) section_text.append(section.strip_code().strip()) ```
[ -0.24391594529151917, -0.19704115390777588, 0.06708195805549622, 0.3134263753890991, 0.02715599536895752, -0.03122480772435665, -0.11951185762882233, 0.21098530292510986, 0.3312297761440277, 0.1418253481388092, 0.32294943928718567, 0.017042430117726326, 0.05120930075645447, -0.4928642213344574, -0.1744862049818039, -0.0037917159497737885, 0.26052767038345337, 0.12669391930103302, -0.05228715017437935, -0.20899805426597595, 0.007654501590877771, 0.14217092096805573, -0.43326616287231445, 0.2717128098011017, -0.25200873613357544, 0.13043184578418732, 0.09297645092010498, -0.010575479827821255, 0.03739643469452858, -0.4690479040145874, -0.04031212627887726, -0.22404615581035614, 0.16706718504428864, 0.2844327390193939, -0.00012670637806877494, -0.21080932021141052, 0.4160577654838562, -0.0950900986790657, -0.18317292630672455, -0.17165422439575195, 0.007188376039266586, -0.1880865842103958, -0.0442718081176281, -0.30144864320755005, 0.288455605506897, 0.018589023500680923, 0.2699131965637207, -0.2863647937774658, 0.36833104491233826, 0.22925952076911926, 0.045621588826179504, 0.19726485013961792, 0.2272142469882965, 0.02912486344575882, 0.45050477981567383, 0.0643215999007225, 0.16501231491565704, -0.05206868797540665, -0.04326532036066055, -0.09657704830169678, 0.054221320897340775, 0.2810037136077881, -0.35601991415023804, -0.10970471054315567, -0.1074371263384819, -0.033954061567783356, 0.3892696499824524, -0.28210458159446716, 0.40644916892051697, 0.09631387889385223, 0.3552185595035553, 0.01649261638522148, 0.25948625802993774, 0.015802083536982536, -0.07244230806827545, 0.275714248418808, 0.3752608299255371, 0.508848249912262, -0.38792404532432556, 0.06514552980661392, 0.3225109279155731, -0.01664380356669426, -0.07908891886472702, 0.24557892978191376, -0.07210716605186462, 0.7677217721939087, 0.12271531671285629, 0.3747817277908325, -0.025941556319594383, -0.0633263811469078, 0.0517117977142334, -0.3146010935306549, -0.01901695691049099, 0.3535815477371216, -0.10865291953086853, 0.1599092334508896, -0.15634842216968536, -0.08531694859266281, -0.0002931305789388716, -0.4934476315975189, -0.43677812814712524, 0.06143612787127495, 0.10880418121814728, 0.2573608458042145, 0.5199107527732849, -0.14115116000175476, 0.18637502193450928, -0.07185113430023193, -0.011421633884310722, -0.08826099336147308, -0.0732463002204895, 0.06596489250659943, -0.09334466606378555, -0.066289022564888, -0.33262816071510315, 0.10627418756484985, 0.14095787703990936, -0.042330387979745865, -0.05925224348902702, 0.2894514501094818, -0.36205971240997314, -0.07682455331087112, -0.20413663983345032, 0.43641000986099243, -0.03361932188272476, 0.5642696619033813, 0.22086873650550842, 0.05347374826669693, -0.12164939194917679, -0.6564369797706604, 0.04448621720075607, 0.19735759496688843, -0.3663569986820221, 0.16616053879261017, -0.2031688392162323, 0.2760706841945648, 0.1157173216342926, 0.19091416895389557, -0.0709449052810669, -0.6753614544868469, -0.14334498345851898, -0.14778463542461395, -0.11649924516677856, 0.07265150547027588, 0.38549166917800903, 0.4602941870689392, 0.29325583577156067, -0.3723101019859314, 0.005007067695260048, 0.31358882784843445, -0.36851492524147034, -0.09508052468299866, -0.3885688781738281, 0.04247331619262695, 0.07379879057407379, 0.18666401505470276, -0.49588263034820557, -0.053519535809755325, -0.0021894427482038736, -0.10711000859737396, 0.07665766775608063, -0.16382944583892822, -0.09276477992534637, -0.07170169800519943, -0.026634734123945236, 0.35406243801116943, -0.004544281400740147, 0.08717367053031921, -0.10425379127264023, 0.056297097355127335, 0.2985340356826782, 0.1747153103351593, -0.11920986324548721, 0.6493728160858154, -0.42473912239074707, 0.6064459085464478, 0.13752514123916626, -0.22362913191318512, 0.01763361692428589, 0.14435163140296936, 0.06576893478631973, -0.2023114264011383, 0.016535118222236633, -0.10920733213424683, 0.15946504473686218, -0.13356831669807434, -0.41150593757629395, 0.11580207943916321, 0.07249797135591507, 0.30519476532936096, -0.21482300758361816, -0.2910427451133728, 0.12558898329734802, 0.06553452461957932, 0.22115398943424225, -0.12846530973911285, 0.11200685799121857, 0.4881645143032074, 0.4339240789413452, -0.1908738762140274, 0.10173986852169037, 0.07627101987600327, 0.05871574580669403, 0.17646530270576477, 0.014702149666845798, 0.09421958774328232, -0.024031581357121468, -0.0028473790735006332, -0.05965489521622658, 0.34324055910110474, -0.20330871641635895, -0.05667067691683769, -0.2062644064426422, 0.28090766072273254, -0.1454797238111496, -0.011749635450541973, 0.062453966587781906, 0.1869610995054245, -0.23657917976379395, 0.4068620502948761, 0.0701659768819809, -0.14393717050552368, -0.17340271174907684, 0.14683768153190613, 0.01665564812719822, 0.26511314511299133, -0.2953379154205322, -0.146898090839386, -0.3140820264816284, -0.18597088754177094, 0.4367949068546295, 0.014746222645044327, -0.18538837134838104, 0.1461970955133438, 0.28814610838890076, 0.17214103043079376, -0.2892115116119385, -0.2493932694196701, 0.059573639184236526, -0.4366014003753662, 0.2464798539876938, 0.30748945474624634, 0.31464675068855286, -0.14872178435325623, 0.2846546471118927, 0.09548201411962509, 0.38920751214027405, 0.10077214986085892, -0.14506085216999054, 0.16434431076049805, 0.14662472903728485, -0.005032108630985022, 0.3946203887462616, -0.09115202724933624, 0.2289426177740097, 0.5108887553215027, -0.2737443447113037, -0.3508855402469635, 0.24934452772140503, -0.19870194792747498, 0.40505266189575195, -0.017529992386698723, 0.24436163902282715, 0.11159176379442215, -0.3060930371284485, -0.12006659060716629, 0.2761843204498291, -0.4623511731624603, 0.0935925543308258, -0.0911208987236023, -0.10704232007265091, 0.39110076427459717, 0.1414722055196762, 0.03167148679494858, 0.5108954906463623, 0.16683289408683777, -0.05319160223007202, 0.0966082215309143, -0.11329308152198792, -0.019411688670516014, -0.2840813398361206, -0.22900912165641785, -0.2573986351490021, 0.17944146692752838, -0.2868680953979492, 0.06226647272706032, -0.30537673830986023, 0.013766014017164707, -0.3138231337070465, 0.19554156064987183, -0.40673378109931946, -0.21651583909988403, -0.06510914862155914, 0.2800661325454712, -0.21102802455425262, 0.2325735092163086, 0.11818215996026993, 0.04519844427704811, 0.08764860779047012, 0.3888648748397827, -0.2219836562871933, -0.37627482414245605, -0.5698431134223938, -0.21660010516643524, 0.4963611662387848, 0.16415783762931824, 0.10213449597358704, 0.019972415640950203, -0.04130317643284798, -0.3580482006072998, -0.14273691177368164, 0.422823041677475, -0.058266185224056244, -0.12731705605983734, -0.07625283300876617, 0.24100607633590698, -0.15276698768138885, -0.34785252809524536, 0.059888917952775955, -0.4396456182003021, -0.09047088772058487, 0.11861076951026917, -0.006484096869826317, -0.15782850980758667, 0.02869233675301075, -0.08735427260398865, -0.15450546145439148, -0.05833800509572029, -0.3719155788421631, -0.25169581174850464, 0.03277770057320595, -0.27805328369140625, 0.07707897573709488, 0.1496901512145996, -0.3611341416835785, -0.2150789201259613, -0.27028968930244446, 0.08750154823064804, 0.111356221139431, 0.03497007489204407, -0.23262321949005127, 0.4163249135017395, -0.10568045824766159, 0.18104614317417145, 0.005980375688523054, -0.49487969279289246, 0.22499723732471466, 0.15876606106758118, -0.057244304567575455, -0.3003884255886078, 0.17432181537151337, 0.2831253409385681, -0.09498648345470428, 0.11047416180372238, 0.07690691947937012, -0.04832769185304642, -0.2259436398744583, -0.24234361946582794, 0.3762095272541046, -0.09729447215795517, 0.43444377183914185, 0.1302688866853714, 0.6834612488746643, 0.009808060713112354, 0.226182222366333, 0.3966529667377472, -0.042813971638679504, -0.08693180233240128, 0.03295746073126793, 0.005194734316319227, 0.24682316184043884, 0.0007931267027743161, -0.26694175601005554, 0.5544751882553101, -0.24289654195308685, -0.2323537915945053, -0.2343103438615799, 0.011268151924014091, -0.5420513153076172, -0.4312596619129181, 0.16564923524856567, 0.38782912492752075, 0.32332250475883484, -0.1296136975288391, 0.20523768663406372, -0.03312584012746811, -0.26786503195762634, -0.0671008825302124, 0.1627652794122696, -0.10863199830055237, -0.08259651809930801, -0.14478659629821777, 0.05981326848268509, -0.05891461297869682, 0.3201692998409271, 0.2619366943836212, 0.3989561200141907, 0.08277318626642227, 0.059188343584537506, 0.19926288723945618, 0.06848785281181335, 0.47335097193717957, 0.13634365797042847, 0.21323919296264648, -0.10319044440984726, 0.09984146803617477, -0.2521498501300812, -0.32877710461616516, -0.22640115022659302, -0.222965806722641, 0.49338871240615845, -0.22173728048801422, -0.4186544120311737, 0.08080485463142395, -0.08784174174070358, 0.08578474074602127, -0.07718195766210556, -0.09172111749649048, -0.017534097656607628, -0.2081461250782013, -0.5254969596862793, 0.22540831565856934, 0.19140839576721191, 0.10428935289382935, 0.28222694993019104, 0.22729355096817017, 0.12718476355075836, 0.03144560381770134, -0.03980863466858864, -0.045764874666929245, 0.12925384938716888, -0.05112188681960106, -0.2227945625782013, -0.2396640032529831, 0.16929613053798676, -0.000028429074518498965, 0.14987096190452576, 0.5779364109039307, -0.24086487293243408, -0.1187974065542221, 0.01998213306069374, 0.22974498569965363, 0.39950940012931824, 0.0831124484539032, 0.11783816665410995, 0.24527719616889954, 0.2716004550457001, -0.08091146498918533, 0.23537324368953705, 0.2509080469608307, -0.012440159916877747, -0.2929118275642395, 0.04660005867481232, 0.41173475980758667, 0.005535759963095188, -0.035713065415620804, -0.05812480300664902, 0.07188263535499573, -0.2986941337585449, 0.42528584599494934, 0.2390448898077011, 1.3299747705459595, 0.13979752361774445, 0.1313467025756836, 0.14086169004440308, 0.07785040885210037, 0.7298787832260132, -0.6040621399879456, -0.036534398794174194, -0.28748181462287903, 0.4025510549545288, -0.14264032244682312, 0.06225078925490379, 0.17196977138519287, 0.07757537811994553, -0.4282000660896301, 0.3375905752182007, 0.14012831449508667, 0.5520421266555786, 0.17294533550739288, 0.1936333030462265, 0.10283975303173065, -0.120729960501194, -0.02603006921708584, -0.021109234541654587, -0.3125188946723938, 0.07987315952777863, -0.29151394963264465, 0.030586251989006996, 0.22906552255153656, -0.49733662605285645, -0.6620997786521912, 0.17005661129951477, -0.07380187511444092, 0.33502182364463806, -0.14315474033355713, 0.04035954177379608, 0.3150540590286255, -0.10899870097637177, 0.0684928447008133, 0.2554066777229309, -0.10219334810972214, 0.36697375774383545, -0.1564943492412567, -0.325268030166626, -0.19417841732501984, 0.05015883967280388, -0.07157183438539505, -0.10064251720905304, -0.2304321974515915, 0.2871089577674866, 0.013123135082423687, -0.18329808115959167, -0.28517886996269226, 0.06353644281625748, 0.4719499945640564, 0.10429953783750534, -0.27704939246177673, 0.06526409089565277, -0.004619770683348179, -0.08386629074811935, -0.004112089518457651, -0.1452445536851883, -0.18518242239952087, -0.010415480472147465, 0.24680602550506592, -0.22413501143455505, 0.011385523714125156, 0.3839810788631439, -0.04656274989247322, -0.4790748357772827, 0.46702998876571655, 0.37684670090675354, -0.2421933263540268, -0.209969624876976, -0.12980559468269348, -0.5138652920722961, -0.6772117018699646, -0.05280433967709541, -0.12778501212596893, 0.08120870590209961, -0.04302637651562691, 0.24755701422691345, 0.2362622618675232, -0.05683022364974022, 0.02075938880443573, -0.3045705556869507, 0.2019403874874115, -0.058914508670568466, -0.42296406626701355, -0.07002706080675125, 0.011165052652359009, 0.2940680682659149, -0.012625523842871189, -0.03415217995643616, -0.08794614672660828, 0.11435262113809586, -0.30849653482437134, 0.2707251310348511, 0.2566699683666229, 0.09094402939081192, -0.36158487200737, 0.00939907692372799, 0.013560582883656025, 0.28614482283592224, -0.06974666565656662, -0.007109337951987982, -0.13280238211154938, 0.2703222930431366, 0.38271453976631165, -0.2338981330394745, 0.1011141687631607, -0.047562263906002045, 0.2174997329711914, -0.156630739569664, -0.03961830586194992, -0.07346047461032867, -0.13145920634269714, 0.2485075742006302, 0.2089187055826187, 0.25810688734054565, -0.44240543246269226, 0.12115287780761719, 0.07219400256872177, 0.5967163443565369, 0.1402491331100464, 0.1848922222852707, 0.21564994752407074, -0.006922632921487093, -0.2561202943325043, 0.21146288514137268, 0.3707142770290375, 0.13017070293426514, 0.1372704654932022, -0.10828357934951782, -0.1917613446712494, 0.06710424274206161, -0.13973751664161682, 0.15562894940376282, -0.3254967927932739, -0.28943508863449097, 0.5366222262382507, 0.08861850947141647, -0.1579332947731018, 0.20360149443149567, 0.4370485246181488, 0.11174488812685013, -0.28603312373161316, 0.18648700416088104, 0.08790746331214905, -0.40106284618377686, 0.2624221444129944, 0.1603424847126007, 0.3800898790359497, -0.050484031438827515, 0.08296387642621994, -0.09774450957775116, -0.1310415267944336, 0.19968841969966888, -0.13018670678138733, -0.096026211977005, 0.3383074700832367, 0.39120087027549744, -0.11818890273571014, 0.21436642110347748, 0.1854754090309143, 0.16391637921333313, -0.023962873965501785, -0.20192603766918182, 0.18849898874759674, 0.504779577255249, 0.10207527130842209, -0.025659915059804916, -0.09846470504999161, -0.2070857137441635, 0.1636529415845871, -0.09892884641885757, -0.46676087379455566, 0.309955358505249, -0.14473852515220642, 0.030256662517786026, -0.20936551690101624, -0.023161273449659348, -0.3640720844268799, 0.21600258350372314, 0.12755705416202545, -0.06290939450263977, -0.3295389711856842, 0.394178181886673, -0.3697269856929779, -0.10152582079172134, -0.24333123862743378, 0.005413608625531197, -0.10280237346887589, -0.34562939405441284, 0.15466956794261932, 0.03144475072622299, -0.060971613973379135, -0.07310593128204346, 0.19594496488571167, 0.5290170907974243, 0.4877009987831116, -0.5272613763809204, 0.07533460855484009, -0.06737995892763138, 0.29056328535079956, 0.0232841856777668, 0.05732915177941322, 0.1342729777097702, 0.3678494393825531, 0.07671602070331573, 0.00191205192822963, -0.09781437367200851, -0.3419978618621826, 0.2982866168022156, -0.04155036807060242, 0.039241671562194824, -0.3417462408542633, -0.05619529262185097, 0.25863388180732727, -0.2751145660877228, 0.03973069414496422, -0.5000794529914856, 0.1600375771522522, 0.168108731508255, 0.0802946537733078, 0.07846233248710632, -0.044097404927015305, -0.035315390676259995, -0.15719009935855865, 0.2149788737297058, 0.4869310259819031, 0.27155739068984985, -0.20937278866767883, -0.5163058638572693, -0.5368039608001709, 0.41301509737968445, -0.330284059047699, -0.2191953957080841, -0.015856677666306496, 0.09471774846315384, 0.15775685012340546, 0.40189188718795776, 0.12776826322078705, 0.03804943710565567, -0.3444060683250427, 0.3325323462486267, -0.2369222491979599, -0.14681725203990936, 0.32206296920776367, -0.07911364734172821, -0.07478253543376923, -0.31809619069099426, 0.15544550120830536, -0.15190356969833374, -0.05780251324176788, -0.13219866156578064, -0.10998662561178207, -0.058587003499269485, -0.2227228283882141, 0.5239768624305725, 0.1362692415714264, 0.40430814027786255, -0.005747302435338497, 0.015979690477252007, -0.17768415808677673, -0.030055921524763107, -0.021923737600445747, -0.0359041802585125, 0.038821157068014145, 0.19364438951015472, -0.06773509830236435, 0.17204491794109344, -0.4300881624221802, 0.2831493020057678, 0.05269802734255791, 0.1748313158750534, -0.3980613648891449, -0.031037090346217155, -0.2528929114341736, 0.28962573409080505, -0.23565292358398438, -0.080154187977314, 0.022283855825662613, 0.2795810103416443, -0.37362605333328247, -0.1903102546930313, 0.2450014352798462, -0.40766245126724243, -0.5217412114143372, -0.22197802364826202, 0.23116977512836456, -0.3900434970855713, 0.0034002596512436867, -0.18551304936408997, 0.002428351668640971, 0.2290036976337433, 0.1364833563566208, -0.27300891280174255, -0.24391859769821167, -0.07863491028547287, -0.24421535432338715, -0.005856028292328119, -0.04878520965576172, 0.11362593621015549, -0.3359305262565613, 0.1151106134057045, -0.4321378469467163 ]
https://github.com/huggingface/datasets/issues/321
ERROR:root:mwparserfromhell
Not sure why we're having this issue. Maybe could you get also the file that's causing that ?
Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
18
ERROR:root:mwparserfromhell Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` Not sure why we're having this issue. Maybe could you get also the file that's causing that ?
[ -0.24387340247631073, -0.15484435856342316, 0.09030316770076752, 0.4575008749961853, 0.12444889545440674, -0.05433904379606247, -0.11729692667722702, 0.20664682984352112, 0.3364436626434326, 0.30087190866470337, 0.2952863574028015, -0.0024947989732027054, 0.052223093807697296, -0.3813275992870331, -0.07671748101711273, -0.0030092508532106876, 0.3680458664894104, 0.19511786103248596, 0.044042374938726425, -0.24198634922504425, -0.05900020897388458, 0.20053786039352417, -0.34537622332572937, 0.30418145656585693, -0.31076571345329285, 0.05855647101998329, 0.141829714179039, -0.02472381666302681, -0.076436348259449, -0.3120388686656952, 0.02769164741039276, -0.2750107944011688, 0.16518047451972961, 0.3228822648525238, -0.00012734609481412917, -0.18571579456329346, 0.5115450024604797, -0.10405507683753967, -0.1468495875597, -0.2338777780532837, -0.0839671641588211, -0.15108563005924225, -0.03172026574611664, -0.30544373393058777, 0.31352347135543823, 0.06394747644662857, 0.2530776262283325, -0.23876498639583588, 0.26004558801651, 0.23022817075252533, 0.08246985077857971, 0.21990454196929932, 0.29527586698532104, -0.006982763763517141, 0.5136979222297668, 0.12198067456483841, 0.20475327968597412, -0.07103876024484634, -0.034143511205911636, -0.030315568670630455, 0.1266939342021942, 0.09698636084794998, -0.4162343442440033, -0.2447793036699295, -0.14445644617080688, -0.09353412687778473, 0.3075278699398041, -0.4182206690311432, 0.41215166449546814, 0.17473062872886658, 0.5269607305526733, -0.020268995314836502, 0.35011303424835205, 0.13363760709762573, -0.05023649334907532, 0.24152801930904388, 0.41627681255340576, 0.5217402577400208, -0.3993150591850281, 0.03402780741453171, 0.39006245136260986, -0.14695176482200623, -0.04246969521045685, 0.26518431305885315, -0.174200639128685, 0.8081725835800171, 0.032636579126119614, 0.3084392547607422, 0.05077780410647392, -0.018315033987164497, -0.08519472181797028, -0.33191704750061035, -0.07108763605356216, 0.2830992639064789, -0.13640910387039185, 0.03209764510393143, -0.17559194564819336, -0.07499868422746658, 0.026335492730140686, -0.5093849897384644, -0.46731990575790405, 0.0480019748210907, 0.01844891905784607, 0.24843858182430267, 0.45642030239105225, -0.1146918311715126, 0.18458670377731323, -0.013837148435413837, -0.008998648263514042, -0.1445985734462738, -0.053872447460889816, 0.01911166124045849, -0.2315293252468109, -0.012574468739330769, -0.4852997362613678, 0.07806288450956345, 0.09570708870887756, -0.17044971883296967, -0.04020233452320099, 0.2572528123855591, -0.2312714159488678, -0.09551263600587845, -0.15073397755622864, 0.4952980577945709, -0.061903294175863266, 0.3919486999511719, -0.04854679852724075, 0.0242671687155962, -0.13796982169151306, -0.6093873977661133, 0.012873002327978611, 0.19731250405311584, -0.35479673743247986, -0.01104770042002201, -0.16462893784046173, 0.22071784734725952, 0.13381028175354004, 0.3228275775909424, -0.04213869944214821, -0.4779707193374634, -0.026118328794836998, -0.29503658413887024, -0.14445047080516815, 0.054115790873765945, 0.4805477261543274, 0.45833390951156616, 0.19965201616287231, -0.36728253960609436, -0.056443385779857635, 0.40875500440597534, -0.4907049536705017, -0.1547197550535202, -0.5020551085472107, 0.03647970035672188, 0.023386577144265175, 0.1601274460554123, -0.5785999298095703, 0.025600982829928398, -0.06941978633403778, -0.15777719020843506, 0.05337567999958992, -0.22337636351585388, -0.15925243496894836, -0.137673020362854, 0.1006365492939949, 0.30551308393478394, -0.18458174169063568, 0.011036686599254608, -0.09798670560121536, -0.17480914294719696, 0.37273669242858887, 0.15099667012691498, -0.17199952900409698, 0.6597506999969482, -0.44920113682746887, 0.5568722486495972, 0.3406929075717926, -0.2888256013393402, -0.0907193198800087, 0.04628174006938934, -0.06447382271289825, -0.20668599009513855, 0.02667585015296936, -0.19098153710365295, 0.2845522463321686, -0.046743471175432205, -0.32654350996017456, 0.09599655121564865, 0.09158916026353836, 0.20538730919361115, -0.21473561227321625, -0.31041356921195984, 0.2907600998878479, 0.07472404837608337, 0.17161493003368378, -0.06633858382701874, 0.17190444469451904, 0.46533894538879395, 0.4322320520877838, -0.20571406185626984, 0.16025397181510925, 0.11525709927082062, 0.15966016054153442, 0.21816979348659515, -0.11319267749786377, 0.14177393913269043, 0.002072999719530344, -0.05454351380467415, 0.029755908995866776, 0.20593002438545227, -0.12558406591415405, -0.08301626890897751, -0.18170344829559326, 0.2146628201007843, -0.08890929073095322, 0.07871904224157333, 0.05391763150691986, 0.13255861401557922, -0.21255362033843994, 0.3692748546600342, 0.04768550023436546, -0.19676484167575836, -0.2540510594844818, 0.11092892289161682, 0.10389793664216995, 0.2972659170627594, -0.1605817675590515, -0.057182904332876205, -0.35080158710479736, -0.1678779125213623, 0.5068053007125854, -0.013374554924666882, -0.14437496662139893, 0.036210767924785614, 0.24801456928253174, 0.060192909091711044, -0.27256539463996887, -0.2072724848985672, -0.017565973103046417, -0.28717508912086487, 0.21050378680229187, 0.16997967660427094, 0.2152319997549057, -0.16550791263580322, 0.34156227111816406, 0.08857454359531403, 0.3862994909286499, 0.07120070606470108, -0.19603843986988068, 0.1259261667728424, 0.23893332481384277, 0.0077395085245370865, 0.4671161472797394, -0.07113721966743469, 0.2976309657096863, 0.41763824224472046, -0.09229550510644913, -0.2519224286079407, 0.12866924703121185, -0.12773440778255463, 0.5343977212905884, -0.06959747523069382, 0.19193090498447418, 0.2051507830619812, -0.343732088804245, -0.010774822905659676, 0.29659464955329895, -0.3911828100681305, 0.1748315840959549, -0.027696967124938965, -0.10482296347618103, 0.2737583518028259, 0.25307339429855347, 0.013561517931520939, 0.5135733485221863, 0.08790149539709091, 0.04187146946787834, 0.1194237470626831, -0.261066734790802, -0.02930881269276142, -0.27666226029396057, -0.14233863353729248, -0.2583797574043274, 0.20754767954349518, -0.2546709477901459, -0.10888805985450745, -0.26461291313171387, -0.021030819043517113, -0.36015212535858154, 0.12437847256660461, -0.3825916349887848, -0.08192771673202515, -0.16107484698295593, 0.2543991208076477, -0.12000798434019089, 0.12839187681674957, -0.010132269002497196, 0.11124128103256226, -0.03557654097676277, 0.2304621785879135, -0.21627938747406006, -0.2744899094104767, -0.5513039827346802, -0.15241000056266785, 0.5267804861068726, 0.11148733645677567, 0.0004288781201466918, -0.026153748854994774, 0.02055194228887558, -0.26604002714157104, -0.1641807109117508, 0.42101866006851196, -0.02979448437690735, -0.09148799628019333, -0.08535287529230118, 0.17953047156333923, -0.11812321096658707, -0.31709936261177063, 0.005115250591188669, -0.3451722264289856, -0.1308818757534027, 0.07493332773447037, 0.06845556944608688, -0.19050505757331848, 0.06678646802902222, -0.04303441569209099, -0.3454270362854004, -0.03019004315137863, -0.2688142657279968, -0.12283840030431747, 0.11985143274068832, -0.5135688185691833, -0.002947102067992091, 0.19318020343780518, -0.398551881313324, -0.1948121190071106, -0.2629191279411316, 0.06818774342536926, 0.13526517152786255, -0.010628670454025269, -0.24457809329032898, 0.4565597474575043, 0.008639021776616573, 0.19073355197906494, -0.029814301058650017, -0.6047424077987671, 0.3406957983970642, 0.11886566877365112, -0.07867904007434845, -0.2802818715572357, 0.09176899492740631, 0.3030139207839966, -0.14918218553066254, 0.16610191762447357, 0.03421084210276604, -0.08003656566143036, -0.25897663831710815, -0.3078548014163971, 0.3895876407623291, -0.09431423246860504, 0.4309287667274475, -0.0003137632738798857, 0.5969523191452026, -0.030841784551739693, 0.2419363409280777, 0.3254551887512207, -0.05903618782758713, -0.02569693885743618, -0.028412792831659317, -0.08219646662473679, 0.30891215801239014, 0.1155984103679657, -0.24475666880607605, 0.5990239977836609, -0.23075100779533386, -0.29926273226737976, -0.20099423825740814, -0.1291101723909378, -0.4419805705547333, -0.38919898867607117, 0.18406280875205994, 0.3259332776069641, 0.24091053009033203, -0.08115127682685852, 0.184096097946167, -0.09480149298906326, -0.3454446792602539, -0.0010842680931091309, 0.23666565120220184, -0.1298244595527649, -0.05299181863665581, -0.30192264914512634, 0.040888283401727676, -0.244485005736351, 0.2875693142414093, 0.15132369101047516, 0.4145074188709259, -0.0659276619553566, 0.09036094695329666, 0.13967549800872803, 0.11319537460803986, 0.6657513976097107, 0.18739038705825806, 0.20140354335308075, -0.05446166172623634, 0.11067879945039749, -0.20193664729595184, -0.34993335604667664, -0.2815024256706238, 0.02794514410197735, 0.48184525966644287, 0.011475170962512493, -0.44335487484931946, 0.01598847471177578, -0.10856311023235321, 0.07536589354276657, -0.0337475910782814, -0.05581464618444443, -0.12410639971494675, -0.17012347280979156, -0.4060514271259308, 0.22212518751621246, 0.09947528690099716, 0.2381233125925064, 0.2016286551952362, 0.1031920462846756, 0.06596148014068604, 0.0799526572227478, 0.01381622813642025, -0.14959345757961273, 0.18129834532737732, 0.1463811993598938, -0.26075178384780884, -0.19618552923202515, 0.2767338156700134, 0.06342137604951859, 0.08528435230255127, 0.5467898845672607, -0.23502667248249054, 0.03947132080793381, -0.10003870725631714, 0.28359729051589966, 0.3195464611053467, 0.06264001876115799, 0.28594210743904114, 0.12072288990020752, 0.2047336846590042, -0.09265665709972382, 0.3206845819950104, 0.2085362672805786, 0.05317169427871704, -0.39466193318367004, 0.02336478978395462, 0.28179284930229187, 0.01741735450923443, -0.04829464480280876, 0.1377713829278946, 0.055291417986154556, -0.25948747992515564, 0.3033362925052643, 0.19931010901927948, 1.3601081371307373, 0.2606368660926819, 0.060507625341415405, 0.11089488863945007, 0.0043980758637189865, 0.7963577508926392, -0.6298069953918457, -0.01892698183655739, -0.31280168890953064, 0.13279464840888977, -0.1389375478029251, -0.009708557277917862, 0.10007749497890472, 0.1444198340177536, -0.3683398962020874, 0.2792603075504303, 0.10702130198478699, 0.6044878959655762, 0.18500781059265137, 0.21067382395267487, 0.1967146396636963, -0.05658230930566788, -0.010823202319443226, -0.02224743366241455, -0.296278178691864, 0.17503291368484497, -0.3528538644313812, 0.045907001942396164, 0.06082525476813316, -0.39042219519615173, -0.5212917327880859, 0.1844303458929062, -0.14863000810146332, 0.20018450915813446, -0.006377811077982187, -0.05571334809064865, 0.3860977292060852, -0.07570525258779526, 0.12671789526939392, 0.3899018168449402, -0.17919082939624786, 0.3868415057659149, -0.11202193796634674, -0.30658096075057983, -0.028433553874492645, 0.09074282646179199, -0.20488564670085907, -0.14195089042186737, -0.31511977314949036, 0.38146165013313293, -0.08079072088003159, -0.2983231544494629, -0.3018423020839691, 0.0026334768626838923, 0.4286653995513916, 0.0016241039847955108, -0.40588316321372986, 0.06374622136354446, 0.13337764143943787, -0.025931937620043755, 0.03391554206609726, -0.13004331290721893, -0.11883671581745148, -0.028706278651952744, 0.3110332489013672, -0.24701979756355286, -0.03726508095860481, 0.36365702748298645, -0.07664614915847778, -0.4688623547554016, 0.510981559753418, 0.30102476477622986, -0.22087599337100983, -0.1478509157896042, -0.04447542503476143, -0.48494455218315125, -0.6720792651176453, -0.17981787025928497, -0.13616220653057098, 0.09115444123744965, -0.15924660861492157, 0.2470296174287796, 0.31082239747047424, -0.0055383723229169846, 0.12533992528915405, -0.33821335434913635, 0.07866603881120682, -0.031767431646585464, -0.4044039845466614, -0.09210500866174698, 0.15337201952934265, 0.16586405038833618, -0.04420259967446327, -0.08045154809951782, -0.0990912914276123, 0.08896426856517792, -0.31042423844337463, 0.17675501108169556, 0.40491950511932373, 0.16132016479969025, -0.2886880040168762, -0.028909577056765556, -0.007820534519851208, 0.2113424837589264, -0.016218647360801697, -0.03102022223174572, -0.12062200903892517, 0.2824004590511322, 0.3431392312049866, -0.10131020843982697, 0.1341456174850464, -0.040246203541755676, 0.1312255859375, -0.0630742758512497, -0.08405409753322601, -0.12436964362859726, -0.11893600970506668, 0.23114794492721558, 0.15611116588115692, 0.3033760190010071, -0.6175190806388855, 0.1567085087299347, 0.21223606169223785, 0.5182567834854126, 0.010177883319556713, 0.24136267602443695, 0.2124582976102829, -0.009696513414382935, -0.21738024055957794, 0.19851939380168915, 0.32537028193473816, 0.19107986986637115, 0.07402633875608444, -0.005687127821147442, -0.029286541044712067, 0.12162263691425323, -0.2189948558807373, 0.10842160880565643, -0.3840613067150116, -0.26784175634384155, 0.6546410918235779, 0.10487142205238342, -0.11999133974313736, 0.11652031540870667, 0.5963571667671204, 0.1986391544342041, -0.3658186197280884, 0.11730240285396576, 0.05385223776102066, -0.40709277987480164, 0.3382408916950226, 0.17662958800792694, 0.37149301171302795, 0.008865377865731716, 0.1212615817785263, 0.06262022256851196, -0.19216661155223846, 0.2916059195995331, 0.06218884140253067, -0.037034522742033005, 0.21246236562728882, 0.5630070567131042, -0.08892480283975601, 0.06858807057142258, 0.18664665520191193, 0.07570572942495346, -0.05323636531829834, -0.24766866862773895, 0.15535415709018707, 0.527080237865448, 0.08407632261514664, -0.10043289512395859, -0.11712862551212311, -0.03641219809651375, 0.1418987214565277, -0.17666184902191162, -0.4514763653278351, 0.2105676233768463, -0.3536438047885895, 0.08197729289531708, -0.376536101102829, -0.09533820301294327, -0.2704101800918579, 0.25137144327163696, 0.12254256010055542, -0.04083659127354622, -0.40081605315208435, 0.32576438784599304, -0.43857628107070923, -0.01001481618732214, 0.030656838789582253, 0.10957036167383194, -0.11274850368499756, -0.3423265814781189, 0.1936754286289215, -0.1967976838350296, 0.035459745675325394, -0.1107286661863327, 0.22378844022750854, 0.4590555429458618, 0.5882251262664795, -0.340290904045105, -0.05767202004790306, 0.1371680200099945, 0.2367716133594513, 0.018131073564291, 0.1504068672657013, 0.21211358904838562, 0.40061917901039124, 0.06056772917509079, 0.027456490322947502, -0.12698860466480255, -0.26614803075790405, 0.3369749188423157, 0.0030718825291842222, 0.052720267325639725, -0.33598417043685913, -0.10482758283615112, 0.12394103407859802, -0.2843916416168213, -0.08021267503499985, -0.5245043039321899, 0.2972153127193451, 0.1381942182779312, 0.1650843769311905, 0.08396043628454208, -0.11340425163507462, -0.02612435817718506, -0.12924882769584656, 0.18290454149246216, 0.33741140365600586, 0.23513086140155792, -0.2557026147842407, -0.592830240726471, -0.5923691987991333, 0.5155175924301147, -0.20852568745613098, -0.17196175456047058, -0.07314089685678482, 0.06014096364378929, 0.06233121454715729, 0.36245477199554443, 0.10182984173297882, 0.14380045235157013, -0.33064040541648865, 0.2046475112438202, -0.22974197566509247, -0.0936589390039444, 0.1909528225660324, -0.015770884230732918, -0.08497607707977295, -0.33830004930496216, 0.22909508645534515, -0.16222700476646423, -0.06982335448265076, -0.18290747702121735, -0.21456840634346008, -0.13646134734153748, -0.24130116403102875, 0.5710749626159668, 0.1211625412106514, 0.4785780608654022, -0.06563501805067062, 0.187214657664299, -0.06840650737285614, 0.01682494953274727, -0.08158168941736221, 0.03787706047296524, -0.019238384440541267, 0.14396946132183075, 0.042359936982393265, 0.31293821334838867, -0.3990129232406616, 0.33548736572265625, 0.13869474828243256, 0.22681701183319092, -0.3625316917896271, -0.03458983451128006, -0.3117885887622833, 0.08084263652563095, -0.03347063064575195, -0.05636178329586983, 0.02632083371281624, 0.15047301352024078, -0.3717039227485657, -0.04805207997560501, 0.17378129065036774, -0.47953924536705017, -0.38244205713272095, -0.2534625232219696, 0.242374986410141, -0.11367025226354599, -0.23967516422271729, -0.13746313750743866, 0.04307340830564499, 0.25642338395118713, 0.12809036672115326, -0.16105471551418304, -0.11423002183437347, -0.29877614974975586, -0.14952214062213898, -0.002170100575312972, 0.05355674773454666, 0.1717069000005722, -0.41445833444595337, 0.17504829168319702, -0.43451592326164246 ]
https://github.com/huggingface/datasets/issues/321
ERROR:root:mwparserfromhell
thanks for your answer. How can I know which file is causing the issue ? I am trying to load the spanish wikipedia data.
Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
24
ERROR:root:mwparserfromhell Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` thanks for your answer. How can I know which file is causing the issue ? I am trying to load the spanish wikipedia data.
[ -0.3805391788482666, -0.340487539768219, 0.05695942044258118, 0.6597750782966614, -0.023944471031427383, -0.13706429302692413, -0.22147609293460846, 0.3551197946071625, 0.3205150365829468, 0.23522785305976868, 0.39368879795074463, -0.047715961933135986, 0.027949417009949684, -0.45238155126571655, 0.10121860355138779, 0.14894622564315796, 0.4252942204475403, 0.1956283003091812, 0.15544572472572327, -0.2860965430736542, -0.14368006587028503, 0.33248671889305115, -0.252198725938797, 0.47650548815727234, -0.3799896240234375, 0.14685265719890594, 0.17038169503211975, 0.13428445160388947, -0.038824375718832016, -0.3340250551700592, 0.14672067761421204, -0.22870048880577087, 0.24948479235172272, 0.41082876920700073, -0.00012948588118888438, -0.13582810759544373, 0.47929632663726807, -0.21675677597522736, -0.07114984840154648, -0.24717505276203156, -0.17660973966121674, -0.10249926149845123, 0.05180886760354042, -0.2762681543827057, 0.36788061261177063, -0.04812173917889595, 0.40333056449890137, -0.21092450618743896, 0.2742958962917328, 0.3901073634624481, 0.0669516995549202, 0.21845775842666626, 0.16870953142642975, -0.013108962215483189, 0.5559423565864563, -0.003924451302736998, 0.2948896884918213, -0.013816170394420624, 0.05484945699572563, -0.04460408166050911, 0.009428457356989384, 0.09132566303014755, -0.41199633479118347, -0.1316959261894226, -0.08111866563558578, -0.1147460862994194, 0.3158605992794037, -0.381100594997406, 0.3990839123725891, 0.2864825427532196, 0.5265468955039978, 0.02444048598408699, 0.4537290334701538, 0.13209782540798187, -0.2025643140077591, 0.3474869430065155, 0.5818399786949158, 0.4023052453994751, -0.3517126739025116, -0.016566187143325806, 0.387860506772995, -0.008528183214366436, -0.01550725195556879, 0.23993654549121857, -0.3587419390678406, 0.7549965977668762, -0.023125942796468735, 0.3411199748516083, 0.10308030247688293, -0.020427532494068146, -0.18200238049030304, -0.23888030648231506, 0.031841378659009933, 0.2876216471195221, -0.16895198822021484, 0.009021110832691193, -0.0637507289648056, -0.13761934638023376, -0.07292576879262924, -0.482404500246048, -0.3953344225883484, 0.0936855599284172, 0.02081855572760105, 0.2795301079750061, 0.46002891659736633, -0.12797188758850098, 0.22689557075500488, -0.12814699113368988, 0.03612546995282173, -0.06545280665159225, -0.16186851263046265, 0.03302985802292824, -0.359004944562912, -0.1693919152021408, -0.31825074553489685, -0.055611371994018555, 0.15240511298179626, -0.2356119006872177, -0.10321379452943802, 0.24232172966003418, -0.24171610176563263, -0.24014273285865784, -0.01605842448771, 0.5928182601928711, 0.04600253328680992, 0.36126869916915894, -0.08837661892175674, -0.1704968363046646, -0.1643165647983551, -0.562662661075592, 0.021412396803498268, 0.19930210709571838, -0.32005155086517334, -0.03107084147632122, -0.1405969113111496, 0.1645069569349289, 0.12472561746835709, 0.28095725178718567, -0.11082848161458969, -0.5334952473640442, -0.029339123517274857, -0.30775219202041626, -0.05999625846743584, 0.1015641838312149, 0.34784457087516785, 0.3976210057735443, 0.2785720229148865, -0.43304067850112915, -0.12212096899747849, 0.27681881189346313, -0.5401119589805603, -0.19042697548866272, -0.36558735370635986, 0.007364039774984121, -0.08136243373155594, 0.21840575337409973, -0.5214793682098389, 0.035288214683532715, -0.15890370309352875, -0.31618645787239075, 0.08656378090381622, -0.2566930949687958, -0.07144059985876083, -0.13563157618045807, 0.09507786482572556, 0.3783811628818512, -0.1570708155632019, -0.0865364521741867, -0.11004083603620529, -0.2945408523082733, 0.24814008176326752, 0.0776856541633606, -0.15221522748470306, 0.5089018940925598, -0.39292001724243164, 0.4607175290584564, 0.40201640129089355, -0.38855549693107605, -0.07740603387355804, 0.0032982954289764166, -0.10516869276762009, -0.1443248987197876, 0.17046158015727997, -0.07708121836185455, 0.16417045891284943, -0.1816907823085785, -0.21039749681949615, 0.038152989000082016, 0.15813300013542175, 0.12026509642601013, -0.21801984310150146, -0.27954453229904175, 0.06813766062259674, 0.11301529407501221, 0.12436601519584656, -0.22366665303707123, 0.11091296374797821, 0.443234384059906, 0.2955292761325836, -0.02041737549006939, -0.014104840345680714, 0.13043826818466187, 0.13461920619010925, 0.16348013281822205, -0.050448279827833176, 0.027142923325300217, -0.003952520899474621, -0.07222352176904678, -0.054801393300294876, -0.08438531309366226, -0.2033378928899765, -0.024471411481499672, -0.19833098351955414, 0.1904842108488083, -0.13364756107330322, 0.13398867845535278, 0.02512405812740326, 0.2611246407032013, -0.2519671320915222, 0.2475956827402115, -0.1870204359292984, -0.15878355503082275, -0.24051710963249207, 0.1432475745677948, 0.059605930000543594, 0.18161015212535858, 0.029016148298978806, 0.00791993085294962, -0.1988389641046524, -0.25802284479141235, 0.5626891851425171, -0.10925281792879105, -0.16045600175857544, 0.09303086251020432, 0.2045791745185852, 0.23945976793766022, -0.12460146099328995, -0.09293287247419357, -0.1977771818637848, -0.2928375005722046, 0.12944422662258148, 0.13615167140960693, 0.13113707304000854, -0.034599848091602325, 0.35716843605041504, 0.021312549710273743, 0.2833704352378845, 0.005476724822074175, -0.15363192558288574, 0.029036613181233406, 0.17112763226032257, -0.035795848816633224, 0.5272092819213867, -0.09986534714698792, 0.35105660557746887, 0.46598944067955017, 0.052982401102781296, -0.08243536949157715, 0.04916038736701012, -0.1945207715034485, 0.7476956844329834, -0.16081689298152924, 0.18866804242134094, 0.2848615348339081, -0.3441036343574524, -0.04935074597597122, 0.21522152423858643, -0.24022692441940308, 0.19809909164905548, -0.011259532533586025, -0.12184981256723404, 0.13065078854560852, 0.17971433699131012, -0.006830655504018068, 0.5171737670898438, 0.09125418215990067, -0.07894008606672287, 0.1184268370270729, -0.3818054497241974, -0.045304007828235626, -0.36200228333473206, -0.12430451065301895, -0.3254980444908142, 0.24997736513614655, -0.2731669545173645, 0.07964292168617249, -0.2528131306171417, 0.021774355322122574, -0.5295093059539795, 0.09547942876815796, -0.38283973932266235, -0.03978685289621353, -0.06761594861745834, 0.21317538619041443, -0.012707562185823917, 0.042851462960243225, -0.06390054523944855, 0.19829078018665314, -0.12038647383451462, 0.15864437818527222, -0.18723651766777039, -0.2542201280593872, -0.5679864287376404, -0.16376899182796478, 0.6536368727684021, 0.18328426778316498, -0.043456949293613434, -0.24050022661685944, 0.016271347180008888, -0.15311288833618164, -0.11639611423015594, 0.4006672501564026, 0.0613887682557106, 0.0006478369468823075, -0.11087784171104431, 0.2774050235748291, -0.053772736340761185, -0.3318939805030823, 0.036152005195617676, -0.36732569336891174, -0.11348866671323776, 0.07656054943799973, 0.14524009823799133, -0.18880537152290344, 0.2144373506307602, -0.11242939531803131, -0.2642558515071869, -0.1026666909456253, -0.3206093907356262, -0.14889466762542725, 0.20245355367660522, -0.6096341609954834, -0.22094948589801788, 0.33826011419296265, -0.2790543735027313, -0.06576769798994064, -0.24180079996585846, -0.027333160862326622, 0.09939736872911453, 0.11113590002059937, -0.07806677371263504, 0.44127777218818665, 0.11039513349533081, 0.08498920500278473, 0.07414905726909637, -0.5340138077735901, 0.20135271549224854, 0.08201218396425247, -0.08470060676336288, -0.23226989805698395, -0.05176601558923721, 0.3450070321559906, -0.09149088710546494, 0.14311909675598145, -0.06923811882734299, -0.049427833408117294, -0.20284400880336761, -0.3041859269142151, 0.38477545976638794, -0.05652071163058281, 0.3137364983558655, -0.03745617717504501, 0.6825990676879883, 0.024097222834825516, 0.08738093078136444, 0.2980576157569885, -0.01601271517574787, -0.1377193182706833, 0.03203379735350609, -0.07591218501329422, 0.220061793923378, 0.1820504516363144, -0.27351564168930054, 0.7422610521316528, -0.17680802941322327, -0.23668994009494781, -0.17631332576274872, -0.11821559071540833, -0.604886531829834, -0.2558742165565491, 0.19365300238132477, 0.37648674845695496, 0.2533048987388611, -0.2265690416097641, 0.11472202092409134, -0.10122562199831009, -0.2793627083301544, -0.024651072919368744, 0.5404157042503357, -0.16349495947360992, -0.017395539209246635, -0.23036949336528778, 0.060767777264118195, 0.017309047281742096, 0.33301401138305664, 0.02789035253226757, 0.36452558636665344, -0.30097880959510803, 0.05848262459039688, 0.18518100678920746, -0.06644170731306076, 0.7375574111938477, 0.28129249811172485, 0.19523797929286957, -0.13913321495056152, 0.10791230201721191, -0.10957122594118118, -0.3150521516799927, -0.22844591736793518, 0.06642615795135498, 0.3795236647129059, 0.1186046302318573, -0.3667222261428833, -0.068122498691082, -0.07574332505464554, 0.1249096691608429, -0.06617799401283264, -0.04229828715324402, -0.10816653072834015, -0.1178235411643982, -0.26083943247795105, 0.19283561408519745, -0.040830083191394806, 0.13026748597621918, 0.28436216711997986, 0.157282754778862, 0.04703204706311226, 0.05884736031293869, 0.14618375897407532, 0.011059078387916088, 0.16527962684631348, 0.008765134029090405, -0.377204030752182, 0.01842743530869484, 0.3099296987056732, 0.1846913993358612, 0.1031489148736, 0.628896951675415, -0.17462071776390076, 0.07853955030441284, 0.0281989723443985, 0.10295066237449646, 0.4168381094932556, -0.011182672344148159, 0.26911240816116333, 0.027577800676226616, 0.1334402710199356, -0.061586689203977585, 0.24590113759040833, 0.31129392981529236, 0.10986429452896118, -0.5357346534729004, 0.0679987296462059, 0.5119997262954712, 0.08470982313156128, -0.1974276453256607, 0.17876343429088593, -0.1756364405155182, -0.22899088263511658, 0.15383794903755188, 0.2000305950641632, 1.449960708618164, 0.15241216123104095, 0.07451055198907852, 0.05754949152469635, -0.013034842908382416, 0.6243786215782166, -0.7486417889595032, -0.09164219349622726, -0.24289563298225403, 0.09127198159694672, -0.24305525422096252, -0.13005727529525757, 0.21651457250118256, 0.14150914549827576, -0.34551548957824707, 0.2901131510734558, 0.14401984214782715, 0.5426386594772339, 0.1806182712316513, 0.18911610543727875, 0.16025833785533905, 0.12304205447435379, -0.2093888819217682, -0.07008945941925049, -0.3668536841869354, 0.3385096788406372, -0.28589025139808655, 0.053171366453170776, -0.018716424703598022, -0.3675302565097809, -0.49114492535591125, -0.03800596296787262, -0.13584470748901367, 0.1349932998418808, -0.014702816493809223, -0.1296628713607788, 0.26235607266426086, 0.05903474986553192, 0.052873775362968445, 0.1975557804107666, -0.13323907554149628, 0.476096510887146, -0.03048720397055149, -0.17260894179344177, -0.08413145691156387, 0.0062045627273619175, -0.13616913557052612, -0.13840308785438538, -0.217702254652977, 0.407485693693161, -0.021368077024817467, -0.20469844341278076, -0.16164934635162354, 0.05724542215466499, 0.4449595808982849, 0.05965111032128334, -0.505822479724884, -0.0652870386838913, 0.08230256289243698, 0.042592309415340424, 0.026317201554775238, -0.0513271801173687, -0.014104337431490421, -0.14452095329761505, 0.1523769199848175, -0.24359843134880066, -0.04300786554813385, 0.2790703773498535, -0.11725179851055145, -0.45954516530036926, 0.4491495192050934, 0.08571488410234451, -0.17939196527004242, -0.09375657141208649, 0.08984456956386566, -0.4517306983470917, -0.58324134349823, -0.19653895497322083, -0.04961543157696724, -0.006353689823299646, -0.04697632044553757, 0.20735383033752441, 0.36863985657691956, -0.020753288641572, 0.06679175049066544, -0.40619155764579773, -0.012644436210393906, -0.0345609113574028, -0.23904283344745636, 0.01642799563705921, 0.09661157429218292, -0.03994249552488327, 0.03989185765385628, -0.013291500508785248, -0.07642731815576553, 0.13675476610660553, -0.3796561658382416, 0.1044776439666748, 0.4097525179386139, 0.3177155554294586, -0.2552179992198944, -0.1267584264278412, -0.05762866884469986, 0.09088419377803802, -0.06154941767454147, -0.013919026590883732, -0.09170010685920715, 0.30721625685691833, 0.2673511803150177, -0.1160513237118721, 0.1397963911294937, -0.1129712164402008, 0.30748701095581055, -0.04246026650071144, -0.14133533835411072, -0.08091025054454803, -0.07092232257127762, 0.15892747044563293, 0.15671324729919434, 0.0765150859951973, -0.6586520671844482, 0.20115238428115845, 0.1272815465927124, 0.4618552625179291, 0.1002865806221962, 0.24003733694553375, 0.031580157577991486, -0.07182072103023529, -0.2901144027709961, 0.28639867901802063, 0.2572478652000427, 0.13480791449546814, -0.02499731443822384, 0.08594430983066559, -0.014200505800545216, 0.10627724230289459, -0.34257251024246216, 0.18901869654655457, -0.420990526676178, -0.2592407166957855, 0.46552377939224243, 0.05061601847410202, -0.0343816801905632, 0.08725903183221817, 0.5667291283607483, 0.047315385192632675, -0.37608930468559265, 0.08757738769054413, 0.00931654591113329, -0.3272930979728699, 0.36728450655937195, 0.1612737476825714, 0.32698994874954224, 0.03700924292206764, 0.24898488819599152, 0.12750308215618134, -0.04274008423089981, 0.4304687976837158, 0.07371840626001358, -0.054431527853012085, 0.3077154755592346, 0.5992559194564819, -0.1523352563381195, 0.1409723460674286, 0.21592941880226135, 0.09218619018793106, -0.027493136003613472, -0.2794288098812103, 0.1667831689119339, 0.6952600479125977, 0.011262558400630951, -0.026695042848587036, -0.013464337214827538, 0.14416764676570892, 0.031475767493247986, -0.09187179803848267, -0.5693448185920715, 0.17236563563346863, -0.3039974868297577, -0.04187547788023949, -0.4359062910079956, -0.1733744591474533, -0.27180323004722595, 0.27129316329956055, 0.08467629551887512, 0.007535754237323999, -0.4959263503551483, 0.47452855110168457, -0.38625335693359375, 0.16597296297550201, -0.001613652566447854, -0.035297710448503494, -0.07689220458269119, -0.2510155439376831, 0.2767051160335541, -0.10094642639160156, 0.09001549333333969, 0.1785893440246582, 0.10787991434335709, 0.4518146812915802, 0.4608575403690338, -0.19816620647907257, -0.0717678964138031, 0.1464100331068039, 0.1992853879928589, -0.08066826313734055, 0.17155593633651733, 0.044415708631277084, 0.4488535225391388, 0.0613122396171093, 0.041193559765815735, -0.12057427316904068, -0.230689138174057, 0.16792605817317963, 0.03292031213641167, -0.0584571398794651, -0.3236365020275116, -0.25256210565567017, 0.12140829861164093, -0.3276173174381256, -0.043904032558202744, -0.40127038955688477, 0.2954167127609253, 0.08267606049776077, 0.3247378468513489, 0.0995694100856781, 0.012448767200112343, -0.05075276270508766, 0.016123579815030098, 0.08427384495735168, 0.2671216130256653, 0.24333803355693817, -0.19792325794696808, -0.6244457364082336, -0.7142553329467773, 0.51190584897995, -0.17517945170402527, -0.14377935230731964, 0.01199172530323267, -0.14303387701511383, 0.17337608337402344, 0.21215876936912537, 0.24621227383613586, 0.02375870570540428, -0.2725057899951935, 0.3092389404773712, -0.09161114692687988, -0.14334744215011597, 0.12179496884346008, 0.04823094978928566, -0.17142878472805023, -0.3135455548763275, 0.2311404049396515, -0.13294845819473267, -0.10060476511716843, -0.1388891041278839, -0.20521630346775055, -0.15085437893867493, -0.3039785623550415, 0.5101713538169861, 0.0416044145822525, 0.6107792854309082, -0.14156967401504517, 0.21253754198551178, 0.05721871182322502, 0.09024161845445633, -0.050257936120033264, 0.07780967652797699, -0.1217021718621254, 0.2651926577091217, -0.006484207231551409, 0.44338274002075195, -0.35229524970054626, 0.3404266834259033, 0.043197594583034515, 0.16447806358337402, -0.18726520240306854, -0.26758629083633423, -0.21497292816638947, 0.01452731341123581, 0.23573541641235352, 0.17509250342845917, 0.011604107916355133, 0.08112204819917679, -0.32167547941207886, 0.033271774649620056, 0.07843654602766037, -0.5061957836151123, -0.32361671328544617, -0.08282453566789627, 0.30310067534446716, -0.2015247792005539, -0.09868428856134415, -0.07662247866392136, -0.051572613418102264, 0.30965369939804077, 0.1090640127658844, -0.14570526778697968, -0.14728455245494843, -0.2215682864189148, -0.1554238349199295, 0.0013426091754809022, 0.01959298923611641, 0.22980231046676636, -0.4885842204093933, 0.24334442615509033, -0.4309992790222168 ]
https://github.com/huggingface/datasets/issues/321
ERROR:root:mwparserfromhell
Because of the way Apache Beam works we indeed don't have access to the file name at this point in the code. We'll have to use some tricks I think :p You can append `filepath` to `title` in `wikipedia.py:L512` for example. [[EDIT: it's L494 my bad]] Then just do `try:...except:` on the call of `_parse_and_clean_wikicode` L500 I guess. Thanks for diving into this ! I tried it myself but I run out of memory on my laptop As soon as we have the name of the file it should be easier to find what's wrong.
Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
95
ERROR:root:mwparserfromhell Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` Because of the way Apache Beam works we indeed don't have access to the file name at this point in the code. We'll have to use some tricks I think :p You can append `filepath` to `title` in `wikipedia.py:L512` for example. [[EDIT: it's L494 my bad]] Then just do `try:...except:` on the call of `_parse_and_clean_wikicode` L500 I guess. Thanks for diving into this ! I tried it myself but I run out of memory on my laptop As soon as we have the name of the file it should be easier to find what's wrong.
[ -0.12096267193555832, -0.07050792872905731, 0.056422047317028046, 0.3891805410385132, 0.10341381281614304, 0.01703157275915146, -0.12144499272108078, 0.35581451654434204, 0.2514156103134155, 0.26409509778022766, 0.21410474181175232, -0.06851906329393387, 0.04064353555440903, -0.44989168643951416, -0.0869595929980278, -0.07783921808004379, 0.3508557081222534, 0.12347771227359772, 0.05552879720926285, -0.17326036095619202, -0.16951966285705566, 0.1376485377550125, -0.2810785174369812, 0.41074931621551514, -0.18640905618667603, 0.11123552173376083, 0.0803808942437172, -0.02381470613181591, -0.07701880484819412, -0.3404313027858734, -0.146358460187912, -0.1689712107181549, 0.20265166461467743, 0.3334970772266388, -0.00012585666263476014, -0.18554028868675232, 0.5518956780433655, -0.144635871052742, -0.213781476020813, -0.1335812360048294, 0.00467677740380168, -0.26678958535194397, -0.05918831378221512, -0.369065523147583, 0.2201608121395111, -0.05414564162492752, 0.3302628993988037, -0.2550409138202667, 0.3609262704849243, 0.2255508303642273, 0.07797818630933762, 0.1390972137451172, 0.27758973836898804, 0.04081064835190773, 0.6543574333190918, 0.003443084890022874, 0.12901419401168823, -0.22421953082084656, -0.01365705020725727, -0.15258492529392242, -0.0030374217312783003, 0.2453577071428299, -0.2965686619281769, -0.1994429975748062, -0.06752555817365646, -0.1138775423169136, 0.2302032709121704, -0.2996582090854645, 0.3847328722476959, 0.1337914913892746, 0.5107128024101257, -0.1019752100110054, 0.18095754086971283, 0.06408070772886276, -0.11538001149892807, 0.25648507475852966, 0.34985947608947754, 0.4780460298061371, -0.4989575147628784, 0.060281891375780106, 0.4844410717487335, -0.1789781153202057, -0.1038612648844719, 0.29819655418395996, -0.007458604406565428, 0.7731338143348694, 0.13813750445842743, 0.33521798253059387, 0.018404079601168633, -0.06715859472751617, -0.1388237178325653, -0.28768450021743774, -0.0027429750189185143, 0.38923731446266174, -0.09846484661102295, 0.11769221723079681, -0.1336878538131714, -0.07980803400278091, 0.0004211837367620319, -0.4752695560455322, -0.35247957706451416, 0.09234392642974854, 0.06550291180610657, 0.25713449716567993, 0.3952142894268036, -0.08808847516775131, 0.2560528814792633, -0.10584022104740143, 0.0649590864777565, -0.003579049138352275, 0.031890444457530975, 0.009238856844604015, -0.15602824091911316, -0.12516891956329346, -0.5585857629776001, 0.15723401308059692, 0.16697977483272552, -0.06112813949584961, 0.08678418397903442, 0.21846114099025726, -0.1989930421113968, -0.09441890567541122, -0.14397430419921875, 0.5513178706169128, -0.036121219396591187, 0.5017173886299133, 0.10817359387874603, -0.019512586295604706, -0.209212064743042, -0.6590033173561096, 0.0726281926035881, 0.23873619735240936, -0.38379886746406555, 0.09405162185430527, -0.14628438651561737, 0.27063560485839844, 0.08171521872282028, 0.1626756340265274, -0.11014802008867264, -0.4127645790576935, -0.01777007058262825, -0.1296965330839157, -0.11069019883871078, 0.062314800918102264, 0.4266296625137329, 0.5009470582008362, 0.20246194303035736, -0.4213828146457672, 0.03247262164950371, 0.31856396794319153, -0.4508623778820038, -0.1133401170372963, -0.38652631640434265, 0.02190529555082321, -0.05495106428861618, 0.2963494658470154, -0.5117596983909607, -0.025737987831234932, -0.06119140237569809, -0.18052072823047638, 0.05795833095908165, -0.09742841869592667, -0.05029303580522537, -0.16845446825027466, 0.14002104103565216, 0.34383806586265564, -0.08687658607959747, 0.003044675337150693, -0.15164217352867126, -0.12712985277175903, 0.20690400898456573, 0.012518777512013912, -0.08788800239562988, 0.5803276300430298, -0.46322304010391235, 0.527859091758728, 0.4331433176994324, -0.41728171706199646, -0.044425755739212036, -0.050906840711832047, -0.06905855983495712, -0.18006880581378937, 0.15325398743152618, -0.24177367985248566, 0.20282912254333496, -0.16514497995376587, -0.4169228672981262, 0.1614946573972702, 0.09470933675765991, 0.15453346073627472, -0.23937521874904633, -0.2976195812225342, 0.13699892163276672, 0.06999222189188004, 0.11596149951219559, -0.05540423467755318, 0.2703322172164917, 0.5132499933242798, 0.5763168931007385, -0.20470663905143738, 0.20865969359874725, 0.12090706825256348, 0.010766951367259026, 0.17763176560401917, -0.0026647429913282394, 0.11111462116241455, 0.10034874081611633, -0.008073857054114342, -0.1155233085155487, 0.19045183062553406, -0.26013925671577454, -0.06369779258966446, -0.242349311709404, 0.18933100998401642, -0.20078980922698975, -0.04286029562354088, 0.07768137753009796, 0.23353710770606995, -0.28029119968414307, 0.3116143047809601, 0.06655185669660568, -0.20750564336776733, -0.20281387865543365, 0.13608388602733612, -0.07702560722827911, 0.11767087876796722, -0.13013675808906555, -0.04567042738199234, -0.3280332386493683, -0.11805637180805206, 0.5273602604866028, 0.011613820679485798, -0.161695659160614, 0.11494682729244232, 0.28329968452453613, 0.08743765205144882, -0.13256646692752838, -0.16914531588554382, -0.09896287322044373, -0.3816640377044678, 0.1865914911031723, 0.2674354910850525, 0.24122647941112518, -0.11061099171638489, 0.14454138278961182, 0.11565997451543808, 0.34465229511260986, 0.19227056205272675, -0.07927476614713669, 0.1298825889825821, 0.19430434703826904, 0.010688780806958675, 0.2934860587120056, -0.003079341957345605, 0.3046087920665741, 0.4990061819553375, -0.07064636796712875, -0.3424893617630005, 0.3292185962200165, -0.2922605872154236, 0.49653834104537964, -0.1130872443318367, 0.14921677112579346, 0.12617559731006622, -0.3448250889778137, 0.06662283837795258, 0.3503166139125824, -0.41128185391426086, -0.0033080170396715403, 0.015365827828645706, -0.1353275626897812, 0.19663570821285248, 0.31048333644866943, 0.05338849872350693, 0.37213754653930664, 0.20420274138450623, 0.018650131300091743, 0.030153943225741386, -0.17954401671886444, -0.085560142993927, -0.16124367713928223, -0.17829851806163788, -0.2557562589645386, 0.17656554281711578, -0.24246372282505035, -0.08523443341255188, -0.14520877599716187, -0.08678825199604034, -0.41741761565208435, 0.24484294652938843, -0.4018440842628479, -0.2548196017742157, -0.07837452739477158, 0.27207618951797485, -0.27205026149749756, 0.15082110464572906, 0.07408301532268524, 0.08927316218614578, 0.04607691988348961, 0.17158812284469604, -0.33095821738243103, -0.3067093789577484, -0.470295250415802, -0.16244003176689148, 0.5332536101341248, 0.13992638885974884, 0.05488989129662514, 0.038349177688360214, -0.0015609252732247114, -0.3136588931083679, -0.10012395679950714, 0.3807922601699829, 0.0008737003081478179, -0.09852289408445358, -0.14017829298973083, 0.2973886728286743, 0.06640475988388062, -0.30659136176109314, 0.03408631682395935, -0.30906277894973755, -0.05412149056792259, 0.15751594305038452, 0.22501152753829956, -0.01260174810886383, 0.11137792468070984, -0.09025757759809494, -0.34352102875709534, -0.16608291864395142, -0.17935223877429962, -0.08402085304260254, 0.1074526309967041, -0.3885611295700073, -0.0375838428735733, 0.16723260283470154, -0.273990273475647, -0.12621763348579407, -0.11906726658344269, 0.11501920968294144, 0.18190868198871613, -0.048788636922836304, -0.26808303594589233, 0.36794161796569824, -0.038990993052721024, 0.06916242092847824, 0.02138752117753029, -0.3876889944076538, 0.2129800170660019, 0.2526647746562958, -0.032775454223155975, -0.20180170238018036, 0.11487653851509094, 0.30686986446380615, -0.09764949232339859, 0.14948074519634247, -0.0055842227302491665, 0.0456266887485981, -0.2713431715965271, -0.34733152389526367, 0.5005393624305725, 0.05108397454023361, 0.2984986901283264, 0.13913099467754364, 0.7935025095939636, -0.09140753746032715, 0.41709592938423157, 0.38060662150382996, -0.05090785399079323, -0.0616210512816906, -0.00689558032900095, -0.06387192755937576, 0.23875616490840912, 0.01705394685268402, -0.22867819666862488, 0.5545762777328491, -0.16084200143814087, -0.1884119212627411, -0.3043029010295868, -0.03009743057191372, -0.5362464189529419, -0.45093098282814026, 0.16388648748397827, 0.3014621436595917, 0.12659421563148499, -0.03992871940135956, 0.24649612605571747, -0.13929517567157745, -0.3547830283641815, 0.11805792897939682, 0.2957468032836914, -0.1534212976694107, -0.06181962415575981, -0.04515497386455536, 0.08049791306257248, -0.21428744494915009, 0.3920483887195587, 0.11262962967157364, 0.4006478786468506, -0.030244043096899986, -0.06067138537764549, 0.13656176626682281, 0.04211556166410446, 0.6749558448791504, 0.11396648734807968, 0.2668797969818115, -0.04831867292523384, 0.15171153843402863, -0.2012030929327011, -0.3370485007762909, -0.24024660885334015, -0.12922118604183197, 0.41470104455947876, -0.05394338443875313, -0.4135914146900177, 0.005338717717677355, -0.14689324796199799, 0.0956115871667862, -0.16251789033412933, -0.029525119811296463, -0.12506870925426483, -0.18670226633548737, -0.48025208711624146, 0.11601961404085159, 0.15346860885620117, 0.2812903821468353, 0.22325989603996277, 0.24677783250808716, 0.1022338718175888, -0.02216060273349285, -0.006682761944830418, -0.026074210181832314, 0.11489459872245789, 0.041533343493938446, -0.39085933566093445, -0.14065462350845337, 0.34130170941352844, -0.10513421893119812, 0.06297148764133453, 0.506264328956604, -0.2861005663871765, 0.011438264511525631, -0.12813737988471985, 0.22773827612400055, 0.3643333315849304, 0.009366740472614765, 0.1643538624048233, 0.08917713910341263, 0.19182853400707245, -0.16675548255443573, 0.3696991205215454, 0.19911311566829681, -0.04134613648056984, -0.387744665145874, -0.01287437416613102, 0.47584232687950134, -0.007366363890469074, -0.12859109044075012, 0.1480601280927658, 0.08248980343341827, -0.30545175075531006, 0.46949541568756104, 0.15949684381484985, 1.4028260707855225, 0.0743103176355362, 0.10608673840761185, 0.05827254801988602, -0.023427879437804222, 0.7709754705429077, -0.8501480221748352, 0.010229896754026413, -0.3112952709197998, 0.13366290926933289, -0.14576907455921173, 0.0992768406867981, 0.24563370645046234, 0.18842439353466034, -0.17971694469451904, 0.4108477234840393, 0.20996403694152832, 0.5706482529640198, 0.16180051863193512, 0.27771297097206116, 0.15841907262802124, -0.1224529966711998, -0.1224459707736969, -0.037585750222206116, -0.33943116664886475, 0.26488789916038513, -0.28232714533805847, -0.001085252733901143, 0.00008266283111879602, -0.4254598021507263, -0.48242542147636414, 0.1702968031167984, -0.1744913011789322, 0.16458551585674286, -0.3101143538951874, -0.1270025223493576, 0.16804277896881104, 0.014791945926845074, 0.011114939115941525, 0.323819100856781, -0.1544262319803238, 0.42991557717323303, -0.22355058789253235, -0.23137657344341278, -0.09460154175758362, 0.1680576056241989, -0.022295551374554634, -0.1653200387954712, -0.1968090534210205, 0.4138615131378174, -0.06228335574269295, -0.3473207950592041, -0.1739187240600586, 0.019729871302843094, 0.5572713017463684, 0.026652952656149864, -0.3261721432209015, -0.06117201969027519, -0.002026272239163518, -0.08700834959745407, 0.04784821718931198, -0.1802942454814911, -0.3034155070781708, -0.1223318949341774, 0.18913650512695312, -0.1419880986213684, 0.07636994868516922, 0.36871451139450073, -0.15629565715789795, -0.5203351974487305, 0.5429056882858276, 0.3616914451122284, -0.18473972380161285, -0.12301084399223328, -0.020262470468878746, -0.32582980394363403, -0.6497552394866943, -0.21775715053081512, -0.07702522724866867, 0.02856331132352352, -0.16413728892803192, 0.19118352234363556, 0.25158631801605225, -0.038339484483003616, 0.05100804194808006, -0.393828809261322, 0.051792651414871216, -0.012760781683027744, -0.2740115225315094, -0.08350731432437897, 0.11598584055900574, 0.1871449500322342, -0.009262272156774998, -0.04473737254738808, -0.11616378277540207, -0.02259180322289467, -0.30628371238708496, 0.19242827594280243, 0.48264914751052856, 0.23265738785266876, -0.2700318992137909, -0.013720661401748657, 0.010552321560680866, 0.19743004441261292, -0.021830778568983078, -0.03444783017039299, -0.09086167067289352, 0.2667788863182068, 0.339340478181839, -0.03511159494519234, 0.13368263840675354, -0.1331586241722107, 0.19758005440235138, -0.1563783884048462, -0.1528540700674057, -0.1540416032075882, -0.04547389969229698, 0.29777956008911133, 0.3360818326473236, 0.28308963775634766, -0.5487614274024963, 0.21780219674110413, 0.1383376121520996, 0.6532797813415527, 0.005428242962807417, 0.19275465607643127, 0.15590587258338928, 0.05255872383713722, -0.2453494369983673, 0.09297578036785126, 0.26929348707199097, 0.16055403649806976, 0.10481135547161102, 0.06294702738523483, -0.1325596272945404, 0.09593906253576279, -0.12086707353591919, 0.1463811695575714, -0.3814379870891571, -0.28132787346839905, 0.6323451399803162, 0.07454602420330048, -0.1512732356786728, 0.1893346756696701, 0.6089376211166382, 0.04913085699081421, -0.28401461243629456, 0.1259596198797226, -0.1253482699394226, -0.2812296152114868, 0.21488533914089203, 0.16087232530117035, 0.25919342041015625, 0.014975989237427711, 0.13510587811470032, 0.09736131876707077, -0.08754155039787292, 0.2604697644710541, -0.032610971480607986, -0.06439462304115295, 0.26235735416412354, 0.6413191556930542, -0.24147039651870728, 0.17568282783031464, 0.1518557220697403, 0.10701277107000351, -0.11176268756389618, -0.2240462601184845, 0.23137618601322174, 0.5097435712814331, 0.11598865687847137, 0.066604845225811, -0.1439894139766693, 0.0434136837720871, 0.23885832726955414, -0.11327463388442993, -0.44333747029304504, 0.29721441864967346, -0.15414462983608246, 0.048597317188978195, -0.2984194755554199, -0.0929189920425415, -0.32101431488990784, 0.22612912952899933, 0.14804352819919586, -0.1404346227645874, -0.2817440629005432, 0.3320847749710083, -0.345384806394577, 0.07394594699144363, -0.0042845262214541435, 0.01883547008037567, 0.035163212567567825, -0.3815690875053406, 0.07409600168466568, -0.059379905462265015, 0.09985154867172241, 0.061639390885829926, 0.05159296467900276, 0.4012044370174408, 0.4144951105117798, -0.39871352910995483, -0.05378985032439232, 0.030558304861187935, 0.19615866243839264, 0.025729211047291756, 0.09141937643289566, 0.14729826152324677, 0.3724614679813385, 0.13653850555419922, 0.04113234952092171, -0.10638146102428436, -0.3492829501628876, 0.26042982935905457, -0.023352226242423058, -0.05468622222542763, -0.28949829936027527, -0.09831111133098602, 0.018980201333761215, -0.36979734897613525, -0.10282649099826813, -0.4696653187274933, 0.2777041494846344, 0.00039848731830716133, 0.19270573556423187, 0.08354422450065613, -0.03628557175397873, -0.034611284732818604, -0.0832948088645935, 0.08166846632957458, 0.3843725919723511, 0.17861711978912354, -0.28057846426963806, -0.5300996899604797, -0.6154991984367371, 0.39561063051223755, -0.22361668944358826, -0.29890012741088867, -0.06406240910291672, -0.02806609496474266, 0.10253502428531647, 0.26081839203834534, 0.05509800463914871, 0.08367235958576202, -0.24003703892230988, 0.36801832914352417, -0.22538481652736664, -0.2801787257194519, 0.1484101265668869, 0.11705486476421356, -0.11359991878271103, -0.31181439757347107, 0.21400035917758942, -0.03814875707030296, -0.08435831218957901, -0.09960011392831802, -0.2943399250507355, 0.03732846677303314, -0.40056341886520386, 0.4856729805469513, 0.03470703586935997, 0.38013309240341187, -0.07103805243968964, 0.11277242749929428, -0.1277601718902588, 0.07428693771362305, -0.12263836711645126, -0.010781584307551384, -0.1104753315448761, 0.20151999592781067, 0.03090164251625538, 0.21080249547958374, -0.47018593549728394, 0.386542946100235, -0.08253392577171326, 0.19902361929416656, -0.3401537835597992, -0.03967323526740074, -0.19967985153198242, 0.2241758406162262, -0.04659546911716461, -0.077884241938591, -0.05191129446029663, 0.2063353806734085, -0.4808901846408844, -0.10812260210514069, 0.22490116953849792, -0.5813333988189697, -0.47141480445861816, -0.04154548794031143, 0.3231406807899475, -0.3128697872161865, -0.06189711391925812, -0.23545709252357483, 0.035362713038921356, 0.18740282952785492, 0.24314314126968384, -0.14913062751293182, -0.17975828051567078, -0.2889463007450104, -0.13730290532112122, -0.008098883554339409, -0.10901744663715363, 0.23299963772296906, -0.341154545545578, 0.10055288672447205, -0.36348122358322144 ]
https://github.com/huggingface/datasets/issues/321
ERROR:root:mwparserfromhell
Thanks for your help. I tried to print the "title" of the document inside the` except (mwparserfromhell.parser.ParserError) as e`,the title displayed was : "Campeonato Mundial de futsal de la AMF 2015". (Wikipedia ES) Is it what you were looking for ?
Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
41
ERROR:root:mwparserfromhell Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` Thanks for your help. I tried to print the "title" of the document inside the` except (mwparserfromhell.parser.ParserError) as e`,the title displayed was : "Campeonato Mundial de futsal de la AMF 2015". (Wikipedia ES) Is it what you were looking for ?
[ -0.09824049472808838, -0.146012082695961, 0.05791480466723442, 0.45700737833976746, 0.03996801748871803, 0.0833483338356018, -0.24785228073596954, 0.19130855798721313, 0.33298739790916443, 0.29417774081230164, 0.2543105185031891, 0.1080053523182869, 0.09529795497655869, -0.34020599722862244, -0.1696409285068512, -0.0679546445608139, 0.35555151104927063, 0.12141760438680649, 0.16242346167564392, -0.24688081443309784, -0.05018504336476326, 0.17870111763477325, -0.34273144602775574, 0.38260194659233093, -0.16341640055179596, 0.16693426668643951, 0.12315520644187927, -0.1326596885919571, -0.14032846689224243, -0.2993069291114807, -0.020049721002578735, -0.2091214656829834, 0.15609045326709747, 0.3652329742908478, -0.00012790579057764262, -0.31931179761886597, 0.48680442571640015, -0.08477983623743057, -0.14866872131824493, -0.21899117529392242, 0.015291156247258186, -0.15223830938339233, -0.0410059429705143, -0.40440142154693604, 0.3248377740383148, 0.11539802700281143, 0.3341570794582367, -0.280992329120636, 0.12050053477287292, 0.21973958611488342, 0.06404604762792587, 0.10662111639976501, 0.3839103877544403, 0.07591789215803146, 0.48065295815467834, 0.07341257482767105, 0.20546984672546387, -0.06007953733205795, -0.016877347603440285, -0.05325606092810631, 0.14912539720535278, 0.20147034525871277, -0.36598268151283264, -0.18849250674247742, -0.1632111668586731, 0.0662541538476944, 0.2595537602901459, -0.4452032446861267, 0.41089555621147156, 0.1394706517457962, 0.6173774600028992, -0.11910329014062881, 0.2614588439464569, 0.165437713265419, -0.05808604508638382, 0.2580066919326782, 0.3013697862625122, 0.5481129288673401, -0.3672941327095032, -0.02532436139881611, 0.38778257369995117, -0.11348995566368103, -0.1369297057390213, 0.3051528036594391, -0.2432042509317398, 0.9164062142372131, 0.12523779273033142, 0.3172871768474579, 0.035912442952394485, 0.04807936027646065, -0.06625448912382126, -0.25131383538246155, -0.04936065524816513, 0.33407649397850037, 0.021480094641447067, -0.0258579570800066, -0.15118557214736938, -0.07841990888118744, 0.0011782159563153982, -0.6255260109901428, -0.4130975902080536, 0.029996007680892944, 0.12094936519861221, 0.3402906060218811, 0.4541507661342621, -0.24070067703723907, 0.2941509485244751, -0.0054476456716656685, -0.07711053639650345, -0.14972040057182312, 0.004659726284444332, -0.02584758773446083, -0.1439838409423828, 0.002651544287800789, -0.46914881467819214, -0.002937405137345195, 0.24612049758434296, -0.20481687784194946, 0.08656208962202072, 0.3560789227485657, -0.29493623971939087, -0.1116071566939354, -0.2578810751438141, 0.4341234862804413, -0.07179984450340271, 0.3773723840713501, 0.060610540211200714, -0.03673173487186432, -0.13950976729393005, -0.5028152465820312, -0.018046068027615547, 0.23537001013755798, -0.3238370418548584, 0.06982145458459854, -0.23903124034404755, 0.22646169364452362, 0.17224007844924927, 0.19661781191825867, -0.011001515202224255, -0.5448350310325623, -0.042809613049030304, -0.1836661994457245, -0.07190397381782532, 0.047285791486501694, 0.40676090121269226, 0.50071120262146, 0.2680577337741852, -0.4057278037071228, -0.052523672580718994, 0.39672449231147766, -0.37041717767715454, -0.02226177416741848, -0.5510874390602112, 0.047974634915590286, 0.04280765354633331, 0.18167637288570404, -0.5636153221130371, 0.023633738979697227, -0.06371168047189713, -0.167702317237854, 0.2126280665397644, -0.05187128484249115, -0.14555272459983826, -0.03101334720849991, 0.1125003769993782, 0.21955697238445282, -0.1851058155298233, 0.06158570945262909, -0.10123830288648605, -0.15751752257347107, 0.23706820607185364, -0.0327686108648777, -0.08646603673696518, 0.6368804574012756, -0.35057908296585083, 0.5782255530357361, 0.26526492834091187, -0.4091210663318634, -0.08828478306531906, 0.007162886206060648, -0.02757454663515091, -0.22220739722251892, 0.0340314581990242, -0.13931573927402496, 0.17055892944335938, 0.008536125533282757, -0.4780331552028656, -0.04401294142007828, 0.0305704977363348, 0.18126532435417175, -0.1381177008152008, -0.28466156125068665, 0.24031110107898712, 0.08366850763559341, 0.25432464480400085, -0.08258645981550217, 0.15284328162670135, 0.483868807554245, 0.6022039651870728, -0.15351399779319763, 0.14520376920700073, 0.05528438463807106, 0.06347040086984634, 0.21412937343120575, -0.0845402330160141, 0.07010622322559357, -0.003442383138462901, -0.01944396272301674, 0.08263349533081055, 0.19797785580158234, -0.1465429812669754, -0.13807424902915955, -0.13799647986888885, 0.2703554630279541, -0.1237422376871109, 0.023779937997460365, 0.023258227854967117, 0.2133958637714386, -0.19865445792675018, 0.3907473385334015, 0.08319266885519028, -0.2709236145019531, -0.27750226855278015, 0.09818466752767563, -0.01841435767710209, 0.19464512169361115, -0.12727594375610352, -0.03702772781252861, -0.37457025051116943, -0.19184888899326324, 0.40633630752563477, 0.12157391756772995, -0.15203271806240082, 0.023461295291781425, 0.24808494746685028, 0.12266901880502701, -0.26355278491973877, -0.24105961620807648, -0.1296415477991104, -0.4255695343017578, 0.1146235316991806, 0.27541249990463257, 0.2598392963409424, -0.12637513875961304, 0.1595701426267624, 0.08010964840650558, 0.28492623567581177, 0.08742813020944595, -0.1943705677986145, 0.06345340609550476, 0.12802636623382568, -0.0008984270971268415, 0.3822982907295227, -0.11339034140110016, 0.25366517901420593, 0.4015432894229889, -0.13220860064029694, -0.37647297978401184, 0.17883363366127014, -0.20943818986415863, 0.6232573986053467, -0.02976074628531933, 0.16182498633861542, 0.15059061348438263, -0.26789578795433044, 0.009572219103574753, 0.3111508786678314, -0.5253848433494568, 0.1216418668627739, -0.0011219785083085299, -0.12084371596574783, 0.3589930832386017, 0.3209596872329712, 0.028089258819818497, 0.4389224946498871, 0.27469897270202637, -0.05382474511861801, 0.07298646122217178, -0.20882196724414825, -0.04728084057569504, -0.25505319237709045, -0.0936591699719429, -0.24958711862564087, 0.13083934783935547, -0.24616332352161407, -0.053986888378858566, -0.16642946004867554, 0.04534592479467392, -0.32020410895347595, 0.04414745420217514, -0.40742576122283936, -0.19823752343654633, -0.1249893456697464, 0.4425378739833832, -0.18594391644001007, 0.1449587494134903, 0.007048995699733496, 0.040185268968343735, -0.04611838236451149, 0.3184620440006256, -0.2622785270214081, -0.3390573561191559, -0.4685192108154297, -0.161923348903656, 0.4164781868457794, 0.16190765798091888, 0.1300813853740692, -0.08165659010410309, 0.06477496773004532, -0.31075796484947205, -0.13375724852085114, 0.41584137082099915, -0.1041702926158905, -0.03748354688286781, -0.18439044058322906, 0.16310946643352509, -0.2027113437652588, -0.3040033280849457, 0.00829937681555748, -0.33506932854652405, -0.08697076886892319, 0.055457185953855515, 0.20228485763072968, -0.16504821181297302, 0.1563444584608078, -0.09125833958387375, -0.31949472427368164, -0.03051569312810898, -0.2652246654033661, -0.17578783631324768, 0.13098879158496857, -0.544091522693634, -0.10378853231668472, 0.22215458750724792, -0.19578562676906586, -0.15826785564422607, -0.24162806570529938, 0.05118676647543907, 0.13861043751239777, -0.027118317782878876, -0.19730505347251892, 0.4221193492412567, 0.08985690772533417, 0.12700746953487396, -0.13427886366844177, -0.5310717225074768, 0.3187633454799652, 0.28725242614746094, -0.207197904586792, -0.2658962905406952, 0.09538071602582932, 0.338001549243927, -0.12619906663894653, 0.13008077442646027, -0.020574668422341347, -0.020032916218042374, -0.3060706853866577, -0.2612018883228302, 0.3659537732601166, -0.06968805193901062, 0.35687318444252014, 0.005271153524518013, 0.561131477355957, 0.007797957863658667, 0.3498139977455139, 0.299806147813797, -0.05596513673663139, -0.12493008375167847, 0.047835566103458405, -0.10558149218559265, 0.2657906711101532, 0.12482809275388718, -0.23739106953144073, 0.7256162166595459, -0.2425282746553421, -0.27787232398986816, -0.21145273745059967, -0.10850086063146591, -0.49278220534324646, -0.3511238992214203, 0.1340617835521698, 0.42568546533584595, 0.21511302888393402, -0.15820246934890747, 0.2645694315433502, -0.04617026820778847, -0.3970322608947754, 0.040924374014139175, 0.2700926959514618, -0.14577150344848633, -0.07522193342447281, -0.22313366830348969, -0.00686125922948122, -0.2216731458902359, 0.27923306822776794, 0.16581043601036072, 0.26306259632110596, -0.04745342582464218, 0.037865959107875824, 0.09206461161375046, 0.1062747985124588, 0.7170777916908264, 0.07998254150152206, 0.28557583689689636, 0.00763404555618763, 0.10889586061239243, -0.08556748181581497, -0.3343633711338043, -0.32135599851608276, 0.03471149131655693, 0.4114471971988678, -0.08111065626144409, -0.3828400671482086, 0.011714802123606205, -0.11305418610572815, -0.027652477845549583, -0.07710269093513489, -0.15947747230529785, -0.06318358331918716, -0.07506570219993591, -0.48595383763313293, 0.29361316561698914, 0.10522432625293732, 0.1847798079252243, 0.21815450489521027, 0.11675829440355301, 0.06451687216758728, 0.1183747723698616, 0.04048096016049385, -0.08190326392650604, 0.06524008512496948, 0.1532294750213623, -0.32974979281425476, -0.10779694467782974, 0.3382187783718109, 0.11900874227285385, 0.08552049100399017, 0.46680769324302673, -0.2860802412033081, 0.046753741800785065, -0.22733797132968903, 0.35709792375564575, 0.3676082491874695, 0.13782258331775665, 0.1718909591436386, 0.28505805134773254, 0.18464304506778717, -0.20059730112552643, 0.2463533878326416, 0.21041825413703918, -0.010119619779288769, -0.4572694003582001, 0.04766003414988518, 0.4190877079963684, 0.0432882197201252, -0.1291736364364624, 0.08075430244207382, 0.1301434487104416, -0.3920389413833618, 0.22764627635478973, 0.30420106649398804, 1.374301791191101, 0.2290477156639099, 0.00005481242624227889, 0.018217796459794044, -0.02120479941368103, 0.7775992155075073, -0.5432028770446777, -0.04165995121002197, -0.4133487343788147, 0.22355064749717712, -0.26285117864608765, 0.07188605517148972, 0.17437081038951874, 0.1549931913614273, -0.41095873713493347, 0.3315272331237793, 0.11954522132873535, 0.6789616942405701, 0.20074784755706787, 0.23118075728416443, 0.3003857433795929, -0.06962671130895615, -0.04713510349392891, -0.05624861642718315, -0.29975759983062744, 0.16412679851055145, -0.33604690432548523, 0.004094060976058245, 0.07265914231538773, -0.4021904766559601, -0.5105238556861877, 0.14977304637432098, -0.1560829132795334, 0.13559590280056, -0.24009279906749725, -0.09243754297494888, 0.33941274881362915, 0.03038223832845688, 0.15302614867687225, 0.3946719169616699, -0.2360745519399643, 0.30844587087631226, -0.07907931506633759, -0.2827486991882324, -0.08460061252117157, 0.07598741352558136, -0.16626080870628357, -0.07624918222427368, -0.25733187794685364, 0.40241459012031555, 0.04041484743356705, -0.2437889128923416, -0.1297522932291031, -0.017381032928824425, 0.5050371885299683, -0.01797526516020298, -0.4633440673351288, -0.024340230971574783, 0.01355405431240797, -0.0968402624130249, 0.009935547597706318, -0.25257453322410583, -0.1889151781797409, -0.08008009940385818, 0.35763463377952576, -0.2762168049812317, 0.02397661656141281, 0.3802046477794647, -0.050861310213804245, -0.36089593172073364, 0.4053850471973419, 0.41417059302330017, -0.21107393503189087, -0.17292732000350952, -0.13887359201908112, -0.4548937976360321, -0.6205148100852966, -0.24527153372764587, 0.0036890506744384766, 0.07518796622753143, -0.09934502094984055, 0.22784008085727692, 0.26643306016921997, -0.002821119735017419, 0.06733464449644089, -0.37570950388908386, 0.13013441860675812, 0.0004426058440003544, -0.29973599314689636, -0.05415383726358414, 0.1505144238471985, 0.1440700739622116, -0.07728367298841476, 0.01089242659509182, -0.10242030769586563, 0.050126004964113235, -0.34579232335090637, 0.18440183997154236, 0.4043630063533783, 0.26607298851013184, -0.33348581194877625, -0.15598025918006897, -0.008240077644586563, 0.3081267178058624, -0.11100786924362183, -0.04379037767648697, -0.14296883344650269, 0.277411550283432, 0.4025513529777527, -0.11546827107667923, 0.114300936460495, -0.05690431594848633, 0.1281072497367859, -0.14388155937194824, -0.14546576142311096, -0.11521513015031815, -0.05078946053981781, 0.3200857639312744, 0.28642264008522034, 0.33639201521873474, -0.6627511978149414, 0.11767713725566864, 0.22168080508708954, 0.597922146320343, -0.0016474348958581686, 0.2584115266799927, 0.1601392775774002, 0.06296878308057785, -0.08356645703315735, 0.21122156083583832, 0.32958701252937317, 0.14438118040561676, 0.062354207038879395, 0.016249146312475204, -0.04637131839990616, 0.18830479681491852, -0.10923640429973602, 0.10766450315713882, -0.34377047419548035, -0.3186076283454895, 0.585905134677887, 0.07801806181669235, -0.13674461841583252, 0.07912473380565643, 0.5128096342086792, 0.05033422261476517, -0.2816811203956604, 0.13536444306373596, -0.019264355301856995, -0.30547112226486206, 0.14436179399490356, 0.16004987061023712, 0.3883189857006073, -0.008088711649179459, 0.09768230468034744, 0.04279694706201553, -0.21450966596603394, 0.3497295677661896, 0.033143870532512665, 0.11038743704557419, 0.25398728251457214, 0.41915711760520935, -0.009226427413523197, 0.03066178783774376, 0.18909165263175964, 0.21958202123641968, -0.1321520209312439, -0.11681113392114639, 0.15060195326805115, 0.4852171838283539, 0.1417030245065689, -0.03645170480012894, -0.14658352732658386, -0.2729979455471039, 0.2765251398086548, -0.10701006650924683, -0.4260046184062958, 0.2682330012321472, -0.20227748155593872, 0.05063112452626228, -0.27390143275260925, -0.11676172912120819, -0.1663043349981308, 0.293401300907135, 0.13809996843338013, -0.20001040399074554, -0.3435007631778717, 0.28513723611831665, -0.3189728856086731, -0.020351368933916092, -0.07664000988006592, -0.00630065007135272, -0.044921670109033585, -0.45505091547966003, 0.1171484962105751, -0.17949412763118744, 0.0901089459657669, -0.11993839591741562, 0.23480625450611115, 0.38471055030822754, 0.4226662516593933, -0.43578267097473145, 0.026330167427659035, -0.04640599712729454, 0.2207929790019989, 0.12110281735658646, 0.07871676981449127, 0.2410823553800583, 0.24353265762329102, 0.09523967653512955, 0.03502317890524864, -0.07255193591117859, -0.31413111090660095, 0.3812611997127533, -0.02957814186811447, 0.058446742594242096, -0.3081597685813904, 0.007967998273670673, 0.1974341720342636, -0.2284311205148697, -0.14964783191680908, -0.5025537014007568, 0.21571634709835052, 0.15537287294864655, 0.1363464891910553, 0.08662334084510803, 0.058567456901073456, -0.043172866106033325, -0.04269251599907875, 0.12410764396190643, 0.34791299700737, 0.28893938660621643, -0.2943771183490753, -0.4787544310092926, -0.5232977271080017, 0.48515233397483826, -0.14595840871334076, -0.16788609325885773, 0.02660958096385002, -0.09690865874290466, 0.143494114279747, 0.3562696874141693, 0.03532518446445465, 0.036506954580545425, -0.3478906750679016, 0.3106480538845062, -0.14911523461341858, -0.18096771836280823, 0.15369196236133575, 0.07748453319072723, -0.13197757303714752, -0.23655200004577637, 0.17630262672901154, -0.21742625534534454, -0.09638403356075287, -0.278642863035202, -0.12995222210884094, -0.1276366114616394, -0.16476032137870789, 0.5894802212715149, 0.020112929865717888, 0.48738566040992737, -0.14681527018547058, 0.1515870988368988, 0.11994461715221405, 0.11681079864501953, -0.08407796919345856, 0.16338562965393066, -0.024093305692076683, 0.1927320957183838, -0.02052634209394455, 0.1695743203163147, -0.3605146110057831, 0.24144574999809265, -0.02042023092508316, 0.21536651253700256, -0.41553032398223877, -0.09289480000734329, -0.17697736620903015, 0.027434390038251877, -0.09587764739990234, -0.029680779203772545, 0.012035718187689781, 0.23437471687793732, -0.37208160758018494, 0.00043264616397209466, 0.2789655923843384, -0.5013763308525085, -0.335574746131897, -0.1907169222831726, 0.26180070638656616, -0.14889588952064514, -0.17623256146907806, -0.21847254037857056, 0.04822157695889473, 0.2631864547729492, 0.18115869164466858, -0.21862158179283142, -0.14422345161437988, -0.23119483888149261, -0.1701049953699112, -0.04749111086130142, 0.003345179371535778, 0.12157375365495682, -0.4107505977153778, 0.06297167390584946, -0.428970605134964 ]
https://github.com/huggingface/datasets/issues/321
ERROR:root:mwparserfromhell
Thanks a lot @Shiro-LK ! I was able to reproduce the issue. It comes from [this table on wikipedia](https://es.wikipedia.org/wiki/Campeonato_Mundial_de_futsal_de_la_AMF_2015#Clasificados) that can't be parsed. The file in which the problem occurs comes from the wikipedia dumps, and it can be downloaded [here](https://dumps.wikimedia.org/eswiki/20200501/eswiki-20200501-pages-articles-multistream6.xml-p6424816p7924815.bz2) Parsing the file this way raises the parsing issue: ```python import mwparserfromhell as parser from tqdm.auto import tqdm import bz2 import six import logging import codecs import xml.etree.cElementTree as etree filepath = "path/to/eswiki-20200501-pages-articles-multistream6.xml-p6424816p7924815.bz2" def _extract_content(filepath): """Extracts article content from a single WikiMedia XML file.""" logging.info("generating examples from = %s", filepath) with open(filepath, "rb") as f: f = bz2.BZ2File(filename=f) if six.PY3: # Workaround due to: # https://github.com/tensorflow/tensorflow/issues/33563 utf_f = codecs.getreader("utf-8")(f) else: utf_f = f # To clear root, to free-up more memory than just `elem.clear()`. context = etree.iterparse(utf_f, events=("end",)) context = iter(context) unused_event, root = next(context) for unused_event, elem in tqdm(context, total=949087): if not elem.tag.endswith("page"): continue namespace = elem.tag[:-4] title = elem.find("./{0}title".format(namespace)).text ns = elem.find("./{0}ns".format(namespace)).text id_ = elem.find("./{0}id".format(namespace)).text # Filter pages that are not in the "main" namespace. if ns != "0": root.clear() continue raw_content = elem.find("./{0}revision/{0}text".format(namespace)).text root.clear() if "Campeonato Mundial de futsal de la AMF 2015" in title: yield (id_, title, raw_content) for id_, title, raw_content in _extract_content(filepath): wikicode = parser.parse(raw_content) ``` The copied the raw content that can't be parsed [here](https://pastebin.com/raw/ZbmevLyH). The minimal code to reproduce is: ```python import mwparserfromhell as parser import requests raw_content = requests.get("https://pastebin.com/raw/ZbmevLyH").content.decode("utf-8") wikicode = parser.parse(raw_content) ``` I will create an issue on mwparserfromhell's repo to see if we can fix that
Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')`
248
ERROR:root:mwparserfromhell Hi, I am trying to download some wikipedia data but I got this error for spanish "es" (but there are maybe some others languages which have the same error I haven't tried all of them ). `ERROR:root:mwparserfromhell ParseError: This is a bug and should be reported. Info: C tokenizer exited with non-empty token stack.` The code I have use was : `dataset = load_dataset('wikipedia', '20200501.es', beam_runner='DirectRunner')` Thanks a lot @Shiro-LK ! I was able to reproduce the issue. It comes from [this table on wikipedia](https://es.wikipedia.org/wiki/Campeonato_Mundial_de_futsal_de_la_AMF_2015#Clasificados) that can't be parsed. The file in which the problem occurs comes from the wikipedia dumps, and it can be downloaded [here](https://dumps.wikimedia.org/eswiki/20200501/eswiki-20200501-pages-articles-multistream6.xml-p6424816p7924815.bz2) Parsing the file this way raises the parsing issue: ```python import mwparserfromhell as parser from tqdm.auto import tqdm import bz2 import six import logging import codecs import xml.etree.cElementTree as etree filepath = "path/to/eswiki-20200501-pages-articles-multistream6.xml-p6424816p7924815.bz2" def _extract_content(filepath): """Extracts article content from a single WikiMedia XML file.""" logging.info("generating examples from = %s", filepath) with open(filepath, "rb") as f: f = bz2.BZ2File(filename=f) if six.PY3: # Workaround due to: # https://github.com/tensorflow/tensorflow/issues/33563 utf_f = codecs.getreader("utf-8")(f) else: utf_f = f # To clear root, to free-up more memory than just `elem.clear()`. context = etree.iterparse(utf_f, events=("end",)) context = iter(context) unused_event, root = next(context) for unused_event, elem in tqdm(context, total=949087): if not elem.tag.endswith("page"): continue namespace = elem.tag[:-4] title = elem.find("./{0}title".format(namespace)).text ns = elem.find("./{0}ns".format(namespace)).text id_ = elem.find("./{0}id".format(namespace)).text # Filter pages that are not in the "main" namespace. if ns != "0": root.clear() continue raw_content = elem.find("./{0}revision/{0}text".format(namespace)).text root.clear() if "Campeonato Mundial de futsal de la AMF 2015" in title: yield (id_, title, raw_content) for id_, title, raw_content in _extract_content(filepath): wikicode = parser.parse(raw_content) ``` The copied the raw content that can't be parsed [here](https://pastebin.com/raw/ZbmevLyH). The minimal code to reproduce is: ```python import mwparserfromhell as parser import requests raw_content = requests.get("https://pastebin.com/raw/ZbmevLyH").content.decode("utf-8") wikicode = parser.parse(raw_content) ``` I will create an issue on mwparserfromhell's repo to see if we can fix that
[ -0.1087389886379242, -0.26876887679100037, 0.058854520320892334, 0.3744998872280121, 0.06803163886070251, 0.05851121246814728, -0.0978480726480484, 0.407232403755188, 0.2762863039970398, 0.2615222632884979, 0.1648634374141693, 0.16331417858600616, 0.06970032304525375, -0.43008187413215637, -0.17073658108711243, -0.04268554225564003, 0.22128623723983765, 0.1182362362742424, 0.059008561074733734, -0.1014082208275795, -0.0859464481472969, 0.15871360898017883, -0.34762826561927795, 0.28241297602653503, -0.3269043564796448, 0.11481188237667084, 0.1520310789346695, -0.06561554968357086, -0.08894309401512146, -0.20034456253051758, -0.0028276334051042795, -0.20129519701004028, 0.23792718350887299, 0.47865885496139526, -0.0001259801647393033, -0.041269414126873016, 0.3049951493740082, -0.09365798532962799, 0.00996718741953373, -0.2359314262866974, 0.033659763634204865, -0.1631215661764145, -0.11595066636800766, -0.3689020276069641, 0.2481279969215393, 0.207184299826622, 0.19433827698230743, -0.1866435557603836, 0.4095415472984314, 0.24381029605865479, 0.054466716945171356, 0.16391833126544952, 0.2602110505104065, 0.09128499031066895, 0.5147400498390198, -0.05387961491942406, -0.0065107932314276695, 0.00790095143020153, 0.09300512820482254, -0.10259363055229187, 0.10229481756687164, 0.24389733374118805, -0.42066147923469543, -0.07171250879764557, -0.13775040209293365, 0.10387801378965378, 0.4466080665588379, -0.5326792597770691, 0.47915682196617126, 0.3168763220310211, 0.3135971426963806, -0.02269463799893856, 0.19832415878772736, 0.10353583097457886, -0.13768751919269562, 0.10461188852787018, 0.311514675617218, 0.5089531540870667, -0.48955920338630676, 0.09532646834850311, 0.44127941131591797, -0.06034649908542633, -0.20981842279434204, 0.2732832729816437, -0.33799728751182556, 0.8441174626350403, 0.053851399570703506, 0.19331099092960358, -0.025184588506817818, -0.0369245782494545, 0.01932857558131218, -0.22091065347194672, 0.14139018952846527, 0.37872374057769775, -0.05178697034716606, -0.009133326821029186, -0.034320101141929626, -0.39730772376060486, -0.021723967045545578, -0.6584094166755676, -0.35007810592651367, 0.18164725601673126, 0.05000457540154457, 0.2907330393791199, 0.3454234302043915, -0.337863028049469, 0.15257924795150757, 0.03526062145829201, 0.03217041492462158, 0.02924153581261635, -0.12716910243034363, 0.03678537905216217, -0.20314112305641174, -0.06741075962781906, -0.5065863728523254, 0.06229704990983009, 0.23971255123615265, -0.0703936517238617, -0.05327426642179489, 0.38910526037216187, -0.2007400244474411, 0.020777132362127304, -0.1578015834093094, 0.5316450595855713, -0.06916515529155731, 0.4129953384399414, 0.15430262684822083, 0.08519462496042252, -0.14685644209384918, -0.5985726118087769, 0.05266287922859192, 0.12287857383489609, -0.0397232249379158, 0.013453526422381401, -0.11450489610433578, 0.11655425280332565, 0.2161988765001297, 0.250425785779953, -0.032606177031993866, -0.5398547053337097, -0.05034290626645088, -0.3519895672798157, 0.05674479529261589, 0.1298067271709442, 0.4478539824485779, 0.3495011031627655, 0.21508364379405975, -0.41133788228034973, -0.021997619420289993, 0.4195789694786072, -0.43111351132392883, -0.1687888503074646, -0.4756810963153839, 0.05219486728310585, 0.03557213023304939, 0.1392175406217575, -0.5501323342323303, 0.115867480635643, 0.0992073342204094, -0.1055622398853302, -0.035838883370161057, -0.19666890799999237, -0.25806084275245667, -0.06328689306974411, 0.19141486287117004, 0.11817196756601334, -0.14227594435214996, 0.12672731280326843, -0.05996230989694595, 0.05715935304760933, 0.4125913977622986, 0.17932118475437164, -0.1630660444498062, 0.7019716501235962, -0.2670830488204956, 0.7228684425354004, 0.1745036244392395, -0.27368319034576416, -0.07193483412265778, 0.03379504010081291, 0.042830102145671844, 0.007124858908355236, -0.1001681312918663, -0.22171562910079956, 0.3694821000099182, -0.08163416385650635, -0.18426409363746643, 0.1109003946185112, -0.003875537309795618, 0.25987935066223145, -0.21990089118480682, -0.21373744308948517, 0.33846595883369446, 0.015582154504954815, 0.2996581196784973, -0.21944928169250488, 0.02188536711037159, 0.49704188108444214, 0.5048382878303528, -0.27367889881134033, 0.1297590732574463, 0.08268864452838898, 0.1501486599445343, 0.1439255028963089, -0.10939472913742065, -0.10136566311120987, -0.09069371223449707, 0.0045493412762880325, 0.06584711372852325, 0.32014700770378113, -0.2615007162094116, -0.1588970124721527, -0.12521801888942719, 0.23522880673408508, -0.20038655400276184, 0.05343976989388466, 0.088251493871212, -0.056875262409448624, -0.29280856251716614, 0.34784457087516785, -0.04865085706114769, -0.4844496548175812, -0.351745069026947, 0.17334312200546265, 0.1646929234266281, 0.29528507590293884, -0.21908195316791534, -0.07931529730558395, -0.33755365014076233, -0.09903248399496078, 0.4453214108943939, -0.0610535591840744, -0.05298943817615509, -0.056189440190792084, 0.28351229429244995, 0.11209337413311005, -0.39469048380851746, -0.14282172918319702, 0.05444345623254776, -0.27039143443107605, 0.011027412489056587, 0.2399194985628128, 0.2501269578933716, -0.14884324371814728, 0.230679452419281, 0.22867712378501892, 0.3325090706348419, 0.08250723034143448, -0.17617173492908478, 0.11447309702634811, 0.2624150812625885, 0.00935486052185297, 0.3972705006599426, -0.1282763034105301, 0.15555264055728912, 0.4382638931274414, -0.511770486831665, -0.33619239926338196, 0.08791714161634445, -0.05454012379050255, 0.5132365226745605, 0.05086639150977135, 0.22477906942367554, 0.0900135263800621, -0.18700559437274933, -0.04012870416045189, 0.22988185286521912, -0.321093887090683, 0.10839240998029709, -0.12201094627380371, 0.005768091417849064, 0.3593575954437256, 0.11244426667690277, 0.03584934398531914, 0.5103653073310852, 0.21139031648635864, 0.07219184935092926, 0.1669256091117859, -0.1320454627275467, 0.0987081229686737, -0.18851211667060852, -0.035233523696660995, -0.08125261962413788, 0.20751962065696716, -0.36981627345085144, 0.02774856798350811, -0.3147498369216919, 0.07860361039638519, -0.1918707937002182, -0.032363053411245346, -0.32203003764152527, -0.20891503989696503, -0.06294591724872589, 0.40963226556777954, -0.27188265323638916, 0.0419888012111187, -0.006462902761995792, -0.11802695691585541, 0.021587125957012177, 0.2971605658531189, -0.2370024472475052, -0.30155691504478455, -0.3740297257900238, -0.15839390456676483, 0.5779920816421509, 0.05351070314645767, -0.051250189542770386, -0.05166783556342125, -0.21618099510669708, -0.35149139165878296, -0.39767658710479736, 0.42860889434814453, -0.11344056576490402, 0.00600581057369709, -0.10025942325592041, 0.31804701685905457, -0.2111663669347763, -0.4990903437137604, 0.11484429985284805, -0.25893086194992065, -0.08329825848340988, 0.16712167859077454, 0.07927317172288895, -0.23072437942028046, 0.05193039029836655, -0.1746184527873993, -0.1400773972272873, -0.09658164530992508, -0.2825165092945099, -0.12978579103946686, 0.18237954378128052, -0.3487785756587982, -0.07085651904344559, 0.1796255111694336, -0.33425912261009216, -0.1362028270959854, -0.2476673275232315, 0.01838955469429493, 0.2872106730937958, -0.13294170796871185, -0.32370617985725403, 0.495624840259552, 0.026924647390842438, 0.3418359160423279, 0.05664879083633423, -0.40305668115615845, 0.22679154574871063, 0.23140530288219452, 0.025004960596561432, -0.17484642565250397, 0.04610744118690491, 0.21272748708724976, -0.08478730171918869, 0.18351034820079803, 0.05059238150715828, 0.09726476669311523, -0.33603155612945557, -0.1924431473016739, 0.28313273191452026, -0.09030149132013321, 0.513799786567688, 0.2595723867416382, 0.6778405904769897, -0.13127252459526062, 0.22779373824596405, 0.19737032055854797, -0.1405770182609558, -0.18992623686790466, 0.09494577348232269, -0.07613924890756607, 0.11434467881917953, -0.10036167502403259, -0.1714853048324585, 0.5857164859771729, -0.21737425029277802, -0.23466910421848297, -0.2378285527229309, -0.056801408529281616, -0.5688068270683289, -0.5239390730857849, 0.18283583223819733, 0.34036239981651306, 0.3761723041534424, 0.017500046640634537, 0.2138795256614685, -0.09207027405500412, -0.36853647232055664, -0.015546504408121109, 0.26189127564430237, -0.12444131076335907, -0.12311679869890213, -0.21951285004615784, -0.054556120187044144, -0.2247723489999771, 0.24506618082523346, 0.2223414033651352, 0.521392822265625, 0.12163300812244415, 0.03733468055725098, 0.1914776712656021, 0.08040844649076462, 0.4079054296016693, 0.1229575052857399, 0.2616466283798218, -0.05483429133892059, -0.15939004719257355, -0.35068461298942566, -0.25921565294265747, -0.37398743629455566, -0.00904321949928999, 0.5089584589004517, -0.033651407808065414, -0.392976313829422, -0.06885459274053574, -0.040544599294662476, -0.021974461153149605, -0.10079855471849442, 0.03738968446850777, -0.09037479013204575, -0.3582051396369934, -0.35505691170692444, 0.2206854224205017, 0.3207576274871826, 0.2599366009235382, 0.23186540603637695, 0.11075353622436523, 0.02022661827504635, 0.09407766908407211, 0.16799335181713104, 0.12956450879573822, 0.021896017715334892, 0.10685425251722336, -0.13355058431625366, -0.34711483120918274, 0.04634905979037285, 0.07719030976295471, 0.11252088844776154, 0.5233772397041321, -0.46554479002952576, -0.03422652557492256, -0.1587856560945511, 0.2762380838394165, 0.37103796005249023, -0.009257114492356777, 0.28740355372428894, 0.2022303342819214, 0.20216037333011627, -0.05595197528600693, 0.25514331459999084, 0.3362349569797516, 0.06272099912166595, -0.24582459032535553, 0.10517247766256332, 0.38957858085632324, -0.008027846924960613, -0.024140767753124237, -0.0015793161001056433, 0.07672584801912308, -0.26919907331466675, 0.18932387232780457, 0.3515011966228485, 1.2506071329116821, 0.26596954464912415, 0.016989193856716156, 0.27635762095451355, 0.04421226680278778, 0.6086796522140503, -0.646240234375, 0.10948506742715836, -0.2827799916267395, 0.06142381578683853, -0.20590521395206451, 0.1329859495162964, 0.09340158849954605, 0.1419588327407837, -0.2886451780796051, 0.20398789644241333, 0.10328918695449829, 0.5259094834327698, 0.27897244691848755, 0.180350199341774, 0.21756045520305634, -0.08302388340234756, -0.1529649794101715, -0.04142873361706734, -0.2636484205722809, 0.0002913857460953295, -0.2863670885562897, -0.021572314202785492, 0.09853636473417282, -0.3779265880584717, -0.47262299060821533, 0.17672529816627502, -0.35717904567718506, 0.2739379405975342, -0.03837648034095764, 0.010659660212695599, 0.3592595160007477, 0.009949248284101486, -0.035807278007268906, 0.3343279957771301, -0.1344674974679947, 0.23182149231433868, -0.16977040469646454, -0.3552463948726654, 0.01299722958356142, 0.033837057650089264, -0.013248296454548836, -0.21997833251953125, -0.23431509733200073, 0.45405203104019165, 0.01617862656712532, -0.23451261222362518, -0.11093728989362717, 0.09643549472093582, 0.26402008533477783, 0.11341282725334167, -0.4126059412956238, 0.0684167817234993, 0.002014858415350318, -0.04287806525826454, 0.023739146068692207, -0.22108151018619537, -0.308918833732605, 0.04558394476771355, 0.1914585530757904, -0.29896971583366394, 0.15112580358982086, 0.35348910093307495, -0.007973674684762955, -0.30899834632873535, 0.5539168119430542, 0.42148685455322266, -0.2652534544467926, -0.12008552998304367, -0.1469394713640213, -0.5995239019393921, -0.5139874815940857, -0.12962722778320312, -0.15178044140338898, 0.07531838864088058, -0.002799236448481679, 0.29870134592056274, 0.3360534906387329, -0.16017256677150726, -0.014523671008646488, -0.2696588337421417, 0.19624194502830505, -0.014420963823795319, -0.3134300410747528, -0.10974175482988358, 0.08296718448400497, 0.3819648325443268, -0.09908182919025421, 0.08594321459531784, -0.11873570084571838, 0.22754403948783875, -0.21631336212158203, 0.2235793173313141, 0.3537525534629822, 0.08806885033845901, -0.3263797461986542, -0.0284308809787035, -0.021976947784423828, 0.32975342869758606, -0.0077919019386172295, -0.03664498031139374, -0.23280923068523407, 0.24006108939647675, 0.32930871844291687, -0.07574933022260666, 0.13625171780586243, -0.02705407701432705, 0.002864215988665819, -0.11231445521116257, -0.03952166810631752, -0.04608440399169922, -0.05719573795795441, 0.36606231331825256, 0.23205210268497467, 0.37504613399505615, -0.5652003288269043, 0.10876000672578812, 0.13379207253456116, 0.5745213031768799, 0.02786681428551674, 0.22877982258796692, 0.2306113988161087, 0.006488782819360495, -0.17364650964736938, 0.14142930507659912, 0.09748763591051102, -0.029303910210728645, 0.34017714858055115, 0.006782598793506622, 0.006757751107215881, 0.1846041977405548, -0.24827639758586884, 0.22058279812335968, -0.2990243136882782, -0.2741921842098236, 0.5228123068809509, 0.0742761492729187, -0.21246999502182007, 0.08749080449342728, 0.4620799422264099, 0.10626334697008133, -0.25628989934921265, 0.22621549665927887, 0.03154384344816208, -0.2609505355358124, 0.18556846678256989, 0.18762919306755066, 0.28015732765197754, -0.12009469419717789, 0.20268303155899048, 0.016492852941155434, -0.25984862446784973, 0.3014812767505646, -0.12158779054880142, -0.07238579541444778, 0.2637164294719696, 0.33681654930114746, -0.04162617400288582, 0.05213186889886856, 0.09754273295402527, 0.09319242835044861, 0.07755186408758163, -0.1573626548051834, 0.024424653500318527, 0.421403169631958, -0.025688210502266884, -0.0009936391143128276, -0.1551656424999237, -0.20603182911872864, 0.2579577565193176, -0.07230345904827118, -0.44498082995414734, 0.36045369505882263, -0.2784139811992645, -0.003635960863903165, -0.25452345609664917, -0.10360174626111984, -0.23357637226581573, 0.1375904530286789, 0.16384248435497284, -0.01784162037074566, -0.367465615272522, 0.3523716330528259, -0.37446674704551697, 0.14559419453144073, -0.05294635891914368, 0.003199193626642227, -0.019785260781645775, -0.39901429414749146, 0.166881263256073, -0.02433193475008011, -0.039788875728845596, -0.14535871148109436, 0.13076744973659515, 0.49515506625175476, 0.5052854418754578, -0.4910770654678345, 0.0306380745023489, -0.03136713430285454, 0.22233189642429352, 0.034113530069589615, 0.11101477593183517, 0.24236465990543365, 0.4140428602695465, 0.1523619443178177, 0.02426164783537388, -0.11704802513122559, -0.36752715706825256, 0.3683357238769531, 0.1741415560245514, 0.10256104916334152, -0.24322456121444702, -0.04279136657714844, 0.14850303530693054, -0.1346631944179535, -0.18214894831180573, -0.37635383009910583, 0.146744504570961, 0.25021740794181824, 0.03448527306318283, 0.13111712038516998, 0.02363450825214386, -0.029009122401475906, -0.01900075003504753, 0.12559261918067932, 0.3132598102092743, 0.0382285937666893, -0.19583731889724731, -0.3837854266166687, -0.6240750551223755, 0.46085023880004883, -0.20403023064136505, -0.36619770526885986, 0.14764730632305145, 0.20495399832725525, 0.12406104058027267, 0.38532811403274536, 0.08209261298179626, -0.2400585561990738, -0.32100725173950195, 0.29785865545272827, -0.1986880600452423, -0.05574580281972885, 0.03744981065392494, -0.07877327501773834, -0.06855693459510803, -0.3496169447898865, 0.15868450701236725, -0.10431818664073944, -0.11142144352197647, -0.2411879152059555, -0.028007419779896736, -0.15530197322368622, -0.15150228142738342, 0.3971234858036041, 0.10634801536798477, 0.39479196071624756, -0.17075760662555695, 0.08381669968366623, -0.07414618879556656, 0.12129855155944824, -0.1070876494050026, 0.36082905530929565, 0.05441959947347641, 0.20733857154846191, 0.02874784544110298, 0.023359578102827072, -0.3573516309261322, 0.18849900364875793, -0.011684879660606384, 0.037980955094099045, -0.4710637331008911, 0.0426906943321228, -0.2221049815416336, 0.18873801827430725, 0.017725691199302673, 0.06374183297157288, -0.035414841026067734, 0.24577267467975616, -0.4298843443393707, -0.25229907035827637, 0.1784220188856125, -0.5421523451805115, -0.39522191882133484, -0.30521899461746216, 0.2859865725040436, -0.2357293665409088, 0.04010818898677826, -0.2903587818145752, -0.1132233738899231, 0.2577066123485565, 0.02026192657649517, -0.2819972634315491, -0.1080348789691925, -0.14238303899765015, -0.26901352405548096, -0.12814630568027496, -0.08447688817977905, 0.04113296791911125, -0.46898066997528076, -0.08422951400279999, -0.42503243684768677 ]
https://github.com/huggingface/datasets/issues/320
Blog Authorship Corpus, Non Matching Splits Sizes Error, nlp viewer
This dataset seems to have a decoding problem that results in inconsistencies in the number of generated examples. See #215. That's why we end up with a `NonMatchingSplitsSizesError `.
Selecting `blog_authorship_corpus` in the nlp viewer throws the following error: ``` NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] Traceback: File "/home/sasha/streamlit/lib/streamlit/ScriptRunner.py", line 322, in _run_script exec(code, module.__dict__) File "/home/sasha/nlp-viewer/run.py", line 172, in <module> dts, fail = get(str(option.id), str(conf_option.name) if conf_option else None) File "/home/sasha/streamlit/lib/streamlit/caching.py", line 591, in wrapped_func return get_or_create_cached_value() File "/home/sasha/streamlit/lib/streamlit/caching.py", line 575, in get_or_create_cached_value return_value = func(*args, **kwargs) File "/home/sasha/nlp-viewer/run.py", line 132, in get builder_instance.download_and_prepare() File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/builder.py", line 432, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/builder.py", line 488, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) ``` @srush @lhoestq
29
Blog Authorship Corpus, Non Matching Splits Sizes Error, nlp viewer Selecting `blog_authorship_corpus` in the nlp viewer throws the following error: ``` NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] Traceback: File "/home/sasha/streamlit/lib/streamlit/ScriptRunner.py", line 322, in _run_script exec(code, module.__dict__) File "/home/sasha/nlp-viewer/run.py", line 172, in <module> dts, fail = get(str(option.id), str(conf_option.name) if conf_option else None) File "/home/sasha/streamlit/lib/streamlit/caching.py", line 591, in wrapped_func return get_or_create_cached_value() File "/home/sasha/streamlit/lib/streamlit/caching.py", line 575, in get_or_create_cached_value return_value = func(*args, **kwargs) File "/home/sasha/nlp-viewer/run.py", line 132, in get builder_instance.download_and_prepare() File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/builder.py", line 432, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/builder.py", line 488, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/sasha/.local/share/virtualenvs/lib-ogGKnCK_/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) ``` @srush @lhoestq This dataset seems to have a decoding problem that results in inconsistencies in the number of generated examples. See #215. That's why we end up with a `NonMatchingSplitsSizesError `.
[ -0.2341371476650238, 0.17466330528259277, 0.052877027541399, 0.224213644862175, -0.05463132634758949, -0.027442798018455505, 0.0375436395406723, 0.5022204518318176, -0.2198071926832199, 0.19498062133789062, -0.08825462311506271, -0.0733065977692604, -0.06501470506191254, -0.021802140399813652, -0.14845581352710724, -0.2776802182197571, -0.2665167450904846, 0.33684423565864563, 0.004005331080406904, 0.05057031661272049, -0.13302555680274963, 0.39724668860435486, -0.2592675983905792, -0.02884730137884617, -0.05600956082344055, -0.09457679837942123, 0.11967581510543823, 0.09924089163541794, -0.1994389295578003, -0.28464430570602417, -0.03205796703696251, -0.227653369307518, 0.0017967860912904143, 0.2405468374490738, -0.00011832001473521814, -0.052131537348032, 0.3046363294124603, -0.2610531449317932, 0.1739029437303543, -0.22337645292282104, 0.08046617358922958, -0.09241751581430435, -0.15359465777873993, -0.23802918195724487, -0.0968991070985794, 0.14243702590465546, 0.2361234724521637, 0.053407322615385056, 0.20560483634471893, 0.4859834909439087, 0.18640638887882233, 0.21000656485557556, -0.01935766451060772, -0.08229847997426987, 0.031032467260956764, 0.06911054998636246, -0.27748116850852966, -0.11392028629779816, -0.06618153303861618, -0.35156452655792236, -0.102069191634655, 0.49202021956443787, -0.33695662021636963, 0.0684971809387207, 0.05901334062218666, -0.16675743460655212, 0.45079678297042847, -0.3006083071231842, 0.39667195081710815, 0.11319475620985031, 0.37072065472602844, -0.08089102804660797, 0.12842950224876404, -0.4112163484096527, -0.06087999790906906, 0.0957358330488205, 0.15108448266983032, 0.5192421078681946, -0.15503332018852234, -0.13992100954055786, -0.3092516362667084, 0.16472986340522766, -0.16080492734909058, -0.07766453921794891, 0.0328218936920166, 0.40276798605918884, 0.08672992140054703, 0.04052557423710823, 0.03176890313625336, -0.05718811973929405, 0.22191154956817627, -0.043450091034173965, -0.058886464685201645, 0.2149183750152588, -0.1624527871608734, -0.25322896242141724, 0.07671426236629486, 0.06387623399496078, 0.06676079332828522, 0.29607057571411133, 0.4302010238170624, -0.2747681438922882, 0.34399867057800293, -0.07743257284164429, 0.2365444153547287, 0.19865143299102783, -0.08943645656108856, 0.7137346863746643, -0.14695145189762115, 0.14818473160266876, 0.06431552767753601, 0.032758090645074844, 0.05727791041135788, -0.43480879068374634, -0.28259438276290894, 0.19444243609905243, -0.01286122016608715, -0.2423681914806366, -0.4029650390148163, 0.08943818509578705, -0.23522049188613892, 0.0019080708734691143, 0.04373054578900337, 0.3538177013397217, -0.138463094830513, 0.3725382685661316, -0.13214312493801117, 0.17018786072731018, -0.4958770275115967, -0.029940729960799217, -0.2553323805332184, 0.19973286986351013, -0.2340429276227951, -0.11520539969205856, 0.10648945719003677, -0.23413679003715515, 0.4890711307525635, -0.33745983242988586, 0.26250049471855164, -0.1843213587999344, 0.06679489463567734, -0.1719845086336136, -0.053293731063604355, 0.15532171726226807, 0.004641014616936445, -0.058357395231723785, 0.051119472831487656, -0.07627679407596588, -0.22328560054302216, 0.0823746919631958, 0.18804946541786194, -0.43311282992362976, 0.0729905292391777, 0.20126108825206757, -0.1427198350429535, -0.00858455989509821, 0.3555372953414917, 0.20013022422790527, 0.5317855477333069, -0.2940731346607208, -0.06162743642926216, -0.3155486583709717, -0.1892232894897461, -0.13236922025680542, -0.04782833904027939, 0.3900066912174225, 0.2923545837402344, -0.188268780708313, 0.04796353727579117, 0.20607729256153107, 0.6760654449462891, 0.2515401244163513, 0.29331153631210327, -0.09340858459472656, -0.07032077759504318, 0.5923349857330322, 0.29924967885017395, -0.3681667745113373, -0.3501456081867218, 0.3049790561199188, 0.08142755180597305, 0.11009849607944489, 0.45893096923828125, -0.0226859413087368, 0.36949554085731506, -0.2830115854740143, -0.16940130293369293, 0.3530232906341553, -0.3465041220188141, 0.24411697685718536, -0.37571802735328674, -0.18677552044391632, 0.14226622879505157, 0.04735780879855156, 0.5175167322158813, -0.28101491928100586, 0.07195215672254562, 0.4198395609855652, 0.24451416730880737, -0.09585805982351303, 0.1244923397898674, 0.032647695392370224, -0.3409702181816101, -0.04533436894416809, 0.13113796710968018, -0.17358316481113434, 0.05785985663533211, 0.06845109909772873, -0.5445128083229065, 0.09090807288885117, 0.31996339559555054, -0.07166872918605804, -0.46997371315956116, -0.26729634404182434, -0.012381981126964092, -0.14569438993930817, 0.07862511277198792, 0.0600820817053318, 0.21711069345474243, 0.016241488978266716, 0.03957012668251991, 0.015812668949365616, -0.022792212665081024, 0.12866845726966858, -0.4914090931415558, 0.19547706842422485, -0.41190725564956665, -0.2882962226867676, 0.4236944913864136, 0.4241116940975189, 0.16368716955184937, 0.10434727370738983, -0.09152399003505707, 0.2704003155231476, -0.30403316020965576, 0.5338999629020691, -0.23379652202129364, -0.11912337690591812, 0.20681267976760864, -0.19635798037052155, 0.23903030157089233, 0.2573572099208832, 0.03977125510573387, -0.19760432839393616, 0.1838834285736084, 0.22307810187339783, -0.2207980901002884, 0.09890467673540115, -0.060580410063266754, 0.032640401273965836, -0.06232501566410065, -0.21718157827854156, 0.1006932184100151, -0.45735254883766174, 0.6223397254943848, -0.014643855392932892, -0.36530452966690063, -0.03280683979392052, -0.2899560034275055, 0.11509503424167633, 0.24119393527507782, 0.2079053521156311, -0.025372274219989777, 0.03635377809405327, -0.14951612055301666, -0.05345775932073593, 0.0021607812959700823, 0.14828921854496002, 0.3844689428806305, 0.13266970217227936, 0.1690295785665512, 0.07480840384960175, -0.05153553932905197, -0.4746570289134979, 0.2813277542591095, -0.08641552180051804, 0.032334018498659134, 0.6150078773498535, 0.06905900686979294, 0.060059450566768646, -0.34897905588150024, 0.2118944227695465, 0.16598498821258545, 0.06982561945915222, -0.21406830847263336, -0.19296793639659882, -0.20776773989200592, -0.6258749961853027, -0.12617477774620056, -0.08944550901651382, -0.1052083745598793, -0.21063528954982758, 0.2958920896053314, 0.36217352747917175, -0.22835998237133026, 0.16975869238376617, -0.16693100333213806, 0.09539199620485306, -0.1257447898387909, 0.27005624771118164, 0.05922223627567291, -0.24293768405914307, -0.12077482044696808, 0.13398298621177673, 0.23802432417869568, 0.13846884667873383, 0.2744056284427643, -0.21086879074573517, -0.09060616791248322, 0.010529543273150921, -0.38872700929641724, -0.028720946982502937, -0.06317410618066788, -0.19517189264297485, 0.08044566959142685, -0.24567623436450958, 0.42629528045654297, -0.09867560118436813, 0.0760049894452095, -0.05354190990328789, -0.34607672691345215, 0.11995571851730347, 0.08066902309656143, 0.006533293053507805, -0.23805375397205353, -0.21552088856697083, -0.06290429085493088, -0.6166682839393616, -0.09156908094882965, 0.4423661231994629, 0.3254469335079193, 0.1410059928894043, -0.2032930999994278, -0.2182094305753708, -0.061207521706819534, 0.32527226209640503, -0.11649800837039948, 0.33353909850120544, 0.31016311049461365, -0.17657199501991272, -0.2433776557445526, -0.04590422660112381, -0.04286300763487816, 0.21999436616897583, -0.05980507284402847, -0.38796234130859375, 0.007303384132683277, -0.09938132762908936, -0.565563440322876, -0.08691008388996124, -0.15790623426437378, 0.4219518005847931, -0.02001572959125042, 0.018651146441698074, -0.046603407710790634, -0.0752863958477974, -0.059309907257556915, 0.23291544616222382, 0.4591048061847687, -0.23794224858283997, 0.27908316254615784, 0.24471132457256317, 0.4417749047279358, 0.6506690382957458, 0.2129514068365097, 0.057482559233903885, 0.22502295672893524, -0.13280579447746277, 0.11630355566740036, -0.11532170325517654, 0.8192629814147949, 0.13288483023643494, 0.01045557577162981, 0.5705661177635193, 0.05489969253540039, -0.30371901392936707, -0.11086345463991165, -0.11354658752679825, -0.189753919839859, -0.13299350440502167, 0.21267181634902954, -0.3850332498550415, 0.30223938822746277, 0.07844620198011398, 0.2738233208656311, -0.1990063637495041, -0.4706101417541504, -0.2083243727684021, 0.038073621690273285, 0.04733673855662346, 0.14689701795578003, 0.10818761587142944, 0.1974828541278839, -0.7274339199066162, 0.3355386555194855, 0.19948284327983856, -0.12154063582420349, -0.24274596571922302, -0.15550601482391357, 0.03178045526146889, -0.012624586932361126, 0.09506755322217941, -0.34794968366622925, -0.1723843514919281, -0.11015933007001877, 0.13786683976650238, -0.3510374128818512, -0.16158604621887207, 0.14324025809764862, 0.2933988869190216, 0.2112995982170105, 0.022388940677046776, -0.22872263193130493, 0.13699984550476074, 0.4354556202888489, -0.15944713354110718, -0.09510636329650879, -0.13166320323944092, -0.21108928322792053, -0.3161674737930298, -0.12808948755264282, 0.036900024861097336, 0.11889491230249405, 0.34833523631095886, 0.041990406811237335, -0.02434319444000721, 0.12671434879302979, -0.23767821490764618, 0.28307387232780457, 0.149104505777359, 0.1082175150513649, -0.050353847444057465, 0.0961502194404602, 0.14137928187847137, 0.20731154084205627, -0.0036893312353640795, 0.4415610134601593, 0.26527783274650574, -0.08428159356117249, -0.03974112123250961, -0.07082203030586243, -0.01912449300289154, 0.4573614299297333, 0.2647037208080292, 0.03308919817209244, -0.025468818843364716, 0.22427678108215332, -0.20588257908821106, -0.04686565697193146, 0.10158591717481613, -0.1914954036474228, -0.21391074359416962, -0.2648811638355255, 0.23916341364383698, 0.07085856795310974, 0.0038735654670745134, 0.0017737847520038486, -0.34945905208587646, -0.28078123927116394, 0.09608731418848038, 0.1922042816877365, 0.9271711111068726, 0.41094088554382324, -0.2112887054681778, 0.00630238838493824, -0.2388441115617752, 0.3870348036289215, -0.16617503762245178, 0.46932095289230347, -0.44356003403663635, -0.07929392158985138, -0.04387382045388222, -0.1080550104379654, 0.06062091886997223, -0.07723835855722427, -0.3219487965106964, 0.24580730497837067, 0.16259261965751648, 0.011275695636868477, -0.11459378153085709, 0.07121353596448898, -0.3671100437641144, -0.07815099507570267, 0.12061168998479843, 0.04608966037631035, -0.4622891843318939, 0.46622928977012634, 0.037444934248924255, -0.0012146428925916553, -0.05226739123463631, -0.16252367198467255, -0.5065690279006958, 0.3188246488571167, -0.24637819826602936, -0.1297195851802826, 0.11937341839075089, -0.33741527795791626, 0.28892868757247925, 0.3410147726535797, 0.2015179991722107, -0.20780491828918457, -0.08502932637929916, 0.2851286828517914, 0.044311247766017914, -0.23244161903858185, 0.14423292875289917, 0.23614904284477234, 0.19825592637062073, -0.25729110836982727, 0.06066363677382469, -0.02268153429031372, 0.03510887175798416, -0.06610774248838425, -0.19295693933963776, -0.06787083297967911, 0.2031804919242859, -0.1245059221982956, -0.168931245803833, -0.031893786042928696, -0.1866513043642044, -0.010347232222557068, 0.06589473783969879, -0.3126455843448639, -0.23565992712974548, 0.16322597861289978, -0.20364989340305328, -0.18212519586086273, -0.05146028846502304, 0.2283288985490799, 0.36860737204551697, 0.015529788099229336, 0.4415664076805115, 0.09836547821760178, -0.2256162464618683, -0.18477676808834076, -0.36936575174331665, -0.4083606004714966, -0.38031119108200073, 0.18821658194065094, -0.15732470154762268, -0.3453463912010193, 0.3613974153995514, 0.2624170482158661, 0.1682596057653427, 0.2915208637714386, -0.11401057988405228, -0.2506526708602905, 0.06129930913448334, 0.08309787511825562, -0.37080103158950806, 0.007302173413336277, -0.1438206434249878, 0.5562906265258789, 0.0027526579797267914, 0.42660269141197205, -0.23464341461658478, -0.10493998974561691, -0.4237535297870636, 0.3038514256477356, 0.09879092127084732, -0.3049308657646179, -0.21352800726890564, 0.12621735036373138, -0.004756643902510405, 0.3495810031890869, -0.2498692274093628, -0.09643105417490005, -0.08772605657577515, 0.15994243323802948, 0.1759064495563507, -0.0947132483124733, -0.09701799601316452, 0.12314382195472717, -0.2138718068599701, -0.0877322405576706, -0.01944507472217083, 0.03723917901515961, -0.02563205547630787, 0.04342437908053398, -0.2768423855304718, -0.14103935658931732, 0.03072051890194416, 0.20409999787807465, -0.37666165828704834, 0.28217190504074097, -0.1075310930609703, 0.24199460446834564, 0.10071773082017899, -0.09408893436193466, -0.1642555445432663, 0.037945255637168884, -0.028482606634497643, -0.07100468873977661, 0.2844104468822479, -0.03435896337032318, 0.16983938217163086, 0.25087296962738037, 0.14836816489696503, 0.21956010162830353, 0.10223393142223358, -0.15014521777629852, 0.08489397168159485, 0.17767386138439178, -0.4109087586402893, 0.13440126180648804, -0.12647689878940582, 0.11097001284360886, 0.05015656352043152, 0.2803548276424408, 0.15366089344024658, -0.04771140217781067, -0.12302646785974503, 0.2995511591434479, 0.26382121443748474, -0.2314501702785492, 0.2281983196735382, 0.2588666081428528, 0.10390877723693848, -0.0019342508167028427, 0.34970125555992126, -0.18867748975753784, 0.28354784846305847, -0.02653132751584053, 0.06139553710818291, 0.4275461435317993, 0.006078774109482765, 0.23998858034610748, 0.0765468180179596, -0.1597394347190857, -0.3672073483467102, 0.3541345000267029, 0.2138381451368332, 0.380234956741333, 0.10981167107820511, 0.401388555765152, -0.3140045404434204, -0.016199665144085884, -0.3187519609928131, 0.11519835144281387, -0.051793575286865234, 0.04643043875694275, -0.6466090083122253, -0.1458345353603363, -0.229615718126297, -0.09039901942014694, -0.028212346136569977, 0.3658728003501892, 0.2216518372297287, -0.03740248456597328, -0.2877688407897949, -0.3670088052749634, -0.035592399537563324, -0.014013840816915035, 0.3070976734161377, -0.3762361705303192, 0.2843186557292938, 0.16543158888816833, -0.03904233127832413, 0.1079905554652214, 0.7267914414405823, 0.5513200163841248, 0.24561217427253723, -0.26862651109695435, -0.3699727952480316, 0.08821161836385727, -0.05451667308807373, 0.09366794675588608, 0.38153988122940063, 0.337087482213974, 0.01621485874056816, 0.24376121163368225, 0.014537014067173004, -0.17594681680202484, 0.21819153428077698, 0.19122709333896637, -0.16706469655036926, 0.03721870109438896, 0.4260975420475006, -0.2845413386821747, -0.04900958389043808, -0.17148298025131226, -0.010554703883826733, -0.5934744477272034, 0.011411148123443127, 0.09975989162921906, -0.16362003982067108, 0.23515655100345612, -0.19105754792690277, 0.03956681862473488, 0.09596077352762222, 0.3803498446941376, 0.29554328322410583, -0.46189630031585693, -0.14537964761257172, -0.2333027571439743, -0.13042102754116058, 0.3442293405532837, -0.36239731311798096, -0.18692965805530548, -0.034396689385175705, 0.39303648471832275, -0.24020247161388397, 0.009620488621294498, 0.02072749100625515, 0.43498432636260986, 0.04598037526011467, 0.20903968811035156, -0.16404615342617035, 0.10657617449760437, -0.12002529948949814, -0.35613206028938293, 0.07618142664432526, -0.17052778601646423, 0.09346892684698105, -0.20031751692295074, 0.038278259336948395, 0.03616148233413696, 0.055677689611911774, 0.278798907995224, 0.3713512718677521, -0.2958138585090637, 0.29408496618270874, 0.2899467647075653, -0.059201955795288086, 0.05874219536781311, -0.146596297621727, -0.32784605026245117, -0.4173356890678406, 0.1447598785161972, 0.14390157163143158, 0.5233877301216125, -0.24401794373989105, 0.28750482201576233, -0.09433231502771378, 0.2279624491930008, -0.06776746362447739, 0.021341394633054733, -0.13857974112033844, -0.05848228558897972, -0.15808439254760742, 0.09575444459915161, 0.23693905770778656, 0.39300209283828735, 0.040531184524297714, -0.04696560651063919, -0.25439026951789856, -0.6759305000305176, 0.331141859292984, -0.21845205128192902, -0.185318723320961, 0.194303497672081, 0.06945717334747314, 0.27643197774887085, 0.06435675919055939, -0.6895740032196045, 0.09468728303909302, 0.050229474902153015, -0.07154365628957748, 0.22511884570121765, -0.0590318962931633, -0.09836217015981674, -0.3830571472644806, 0.017596229910850525, -0.41237837076187134, 0.27215373516082764, -0.28418800234794617, 0.23505865037441254, -0.029007896780967712 ]
https://github.com/huggingface/datasets/issues/319
Nested sequences with dicts
Oh yes, this is a backward compatibility feature with tensorflow_dataset in which a `Sequence` or `dict` is converted in a `dict` of `lists`, unfortunately it is not very intuitive, see here: https://github.com/huggingface/nlp/blob/master/src/nlp/features.py#L409 To avoid this behavior, you can just define the list in the feature with a simple list or a tuple (which is also simpler to write). In your case, the features could be as follow: ``` python ... features=nlp.Features({ "title": nlp.Value("string"), "vertexSet": [[{ "name": nlp.Value("string"), "sent_id": nlp.Value("int32"), "pos": nlp.features.Sequence(nlp.Value("int32")), "type": nlp.Value("string"), }]], ... }), ... ```
Am pretty much finished [adding a dataset](https://github.com/ghomasHudson/nlp/blob/DocRED/datasets/docred/docred.py) for [DocRED](https://github.com/thunlp/DocRED), but am getting an error when trying to add a nested `nlp.features.sequence(nlp.features.sequence({key:value,...}))`. The original data is in this format: ```python { 'title': "Title of wiki page", 'vertexSet': [ [ { 'name': "mention_name", 'sent_id': "mention in which sentence", 'pos': ["postion of mention in a sentence"], 'type': "NER_type"}, {another mention} ], [another entity] ] ... } ``` So to represent this I've attempted to write: ``` ... features=nlp.Features({ "title": nlp.Value("string"), "vertexSet": nlp.features.Sequence(nlp.features.Sequence({ "name": nlp.Value("string"), "sent_id": nlp.Value("int32"), "pos": nlp.features.Sequence(nlp.Value("int32")), "type": nlp.Value("string"), })), ... }), ... ``` This is giving me the error: ``` pyarrow.lib.ArrowTypeError: Could not convert [{'pos': [[0,2], [2,4], [3,5]], "type": ["ORG", "ORG", "ORG"], "name": ["Lark Force", "Lark Force", "Lark Force", "sent_id": [0, 3, 4]}..... with type list: was not a dict, tuple, or recognized null value for conversion to struct type ``` Do we expect the pyarrow stuff to break when doing this deeper nesting? I've checked that it still works when you do `nlp.features.Sequence(nlp.features.Sequence(nlp.Value("string"))` or `nlp.features.Sequence({key:value,...})` just not nested sequences with a dict. If it's not possible, I can always convert it to a shallower structure. I'd rather not change the DocRED authors' structure if I don't have to though.
88
Nested sequences with dicts Am pretty much finished [adding a dataset](https://github.com/ghomasHudson/nlp/blob/DocRED/datasets/docred/docred.py) for [DocRED](https://github.com/thunlp/DocRED), but am getting an error when trying to add a nested `nlp.features.sequence(nlp.features.sequence({key:value,...}))`. The original data is in this format: ```python { 'title': "Title of wiki page", 'vertexSet': [ [ { 'name': "mention_name", 'sent_id': "mention in which sentence", 'pos': ["postion of mention in a sentence"], 'type': "NER_type"}, {another mention} ], [another entity] ] ... } ``` So to represent this I've attempted to write: ``` ... features=nlp.Features({ "title": nlp.Value("string"), "vertexSet": nlp.features.Sequence(nlp.features.Sequence({ "name": nlp.Value("string"), "sent_id": nlp.Value("int32"), "pos": nlp.features.Sequence(nlp.Value("int32")), "type": nlp.Value("string"), })), ... }), ... ``` This is giving me the error: ``` pyarrow.lib.ArrowTypeError: Could not convert [{'pos': [[0,2], [2,4], [3,5]], "type": ["ORG", "ORG", "ORG"], "name": ["Lark Force", "Lark Force", "Lark Force", "sent_id": [0, 3, 4]}..... with type list: was not a dict, tuple, or recognized null value for conversion to struct type ``` Do we expect the pyarrow stuff to break when doing this deeper nesting? I've checked that it still works when you do `nlp.features.Sequence(nlp.features.Sequence(nlp.Value("string"))` or `nlp.features.Sequence({key:value,...})` just not nested sequences with a dict. If it's not possible, I can always convert it to a shallower structure. I'd rather not change the DocRED authors' structure if I don't have to though. Oh yes, this is a backward compatibility feature with tensorflow_dataset in which a `Sequence` or `dict` is converted in a `dict` of `lists`, unfortunately it is not very intuitive, see here: https://github.com/huggingface/nlp/blob/master/src/nlp/features.py#L409 To avoid this behavior, you can just define the list in the feature with a simple list or a tuple (which is also simpler to write). In your case, the features could be as follow: ``` python ... features=nlp.Features({ "title": nlp.Value("string"), "vertexSet": [[{ "name": nlp.Value("string"), "sent_id": nlp.Value("int32"), "pos": nlp.features.Sequence(nlp.Value("int32")), "type": nlp.Value("string"), }]], ... }), ... ```
[ 0.11176212131977081, 0.06674262136220932, -0.07140688598155975, -0.02101537212729454, -0.10916892439126968, -0.04101846367120743, 0.19878649711608887, 0.1697290688753128, -0.08717668801546097, -0.400412380695343, 0.2879686653614044, 0.3965302109718323, -0.08983390033245087, 0.20380502939224243, -0.06072438135743141, -0.2475787252187729, 0.34309121966362, 0.12896934151649475, 0.3750726580619812, 0.2590894401073456, -0.20450259745121002, 0.3637641966342926, -0.2815234363079071, 0.1494690179824829, -0.24816583096981049, -0.3701811134815216, -0.3637537956237793, 0.16042008996009827, -0.05953823775053024, -0.7306872606277466, 0.3275495767593384, 0.2191218137741089, 0.14507903158664703, 0.12764042615890503, -0.00011868731235153973, -0.0521874725818634, 0.5560509562492371, -0.07500343769788742, -0.154678612947464, -0.06947184354066849, 0.007484957575798035, -0.30739888548851013, 0.29666629433631897, -0.2497459501028061, 0.021584350615739822, -0.40882518887519836, -0.0574827566742897, -0.06132391095161438, 0.32712408900260925, 0.21509701013565063, 0.15447629988193512, 0.0688154548406601, 0.3399311304092407, 0.027111444622278214, 0.4079805612564087, 0.3201032280921936, -0.14077621698379517, 0.16631391644477844, 0.4056241810321808, -0.3216345012187958, 0.020934520289301872, -0.09789338707923889, -0.13531944155693054, -0.27773746848106384, 0.36066535115242004, 0.22689801454544067, 0.049136850982904434, -0.18413178622722626, -0.5392253994941711, -0.02231103740632534, 0.12288891524076462, -0.24567213654518127, -0.1384013593196869, -0.4200342893600464, 0.003653828287497163, -0.44053414463996887, -0.007978429086506367, -0.14070887863636017, -0.2733756899833679, -0.096398264169693, 0.24597693979740143, -0.2561306059360504, -0.2779061198234558, 0.39512863755226135, 0.1447320431470871, 0.2310720533132553, 0.11849581450223923, 0.09925932437181473, -0.1329667866230011, -0.4175083339214325, 0.13480372726917267, -0.2447817325592041, 0.027878155931830406, 0.1005081757903099, 0.009871525689959526, -0.18780992925167084, -0.026992274448275566, -0.1887376308441162, 0.18253913521766663, 0.015206016600131989, 0.19400276243686676, -0.07376323640346527, -0.023839056491851807, 0.043031565845012665, 0.34565865993499756, 0.1764029711484909, 0.010860491544008255, -0.171575665473938, -0.06673428416252136, 0.31156855821609497, 0.07907318323850632, 0.08705605566501617, -0.11880853772163391, 0.013293269090354443, -0.22463765740394592, 0.2144705206155777, 0.3883276879787445, 0.04196308180689812, -0.17507542669773102, 0.06247652322053909, -0.3113235533237457, 0.060451190918684006, -0.011960706673562527, 0.09201361984014511, 0.07000087201595306, 0.20330819487571716, 0.10664670169353485, 0.3950108587741852, 0.0666038915514946, 0.046286020427942276, -0.08070137351751328, 0.007730434648692608, -0.10413500666618347, 0.06578037142753601, -0.08922217041254044, 0.1868101805448532, 0.17131322622299194, -0.11152675747871399, 0.13407765328884125, -0.009343578480184078, -0.23808681964874268, -0.05477864295244217, 0.2477748543024063, -0.16157756745815277, -0.25852328538894653, 0.15316735208034515, 0.17023034393787384, -0.4171905517578125, -0.040900539606809616, 0.1030413880944252, -0.12276438623666763, -0.2476048320531845, -0.36333969235420227, 0.06230247765779495, -0.31662169098854065, -0.08549398928880692, -0.14101849496364594, 0.3202435076236725, 0.5429494976997375, -0.16324502229690552, -0.1814664602279663, -0.19929373264312744, -0.2664179801940918, -0.3964804410934448, -0.0749627873301506, 0.11412091553211212, -0.22132226824760437, 0.12710587680339813, -0.340287983417511, 0.164793461561203, 0.14235973358154297, 0.169109508395195, -0.059379998594522476, 0.3282703757286072, -0.25199922919273376, 0.7448478937149048, 0.24690420925617218, -0.1542535126209259, -0.05594050511717796, 0.14896094799041748, -0.03510497510433197, 0.13763312995433807, -0.055232126265764236, 0.0722644180059433, 0.18729540705680847, -0.3772202730178833, 0.21969227492809296, -0.002816783497110009, 0.042398758232593536, -0.35662204027175903, -0.18940508365631104, -0.016820918768644333, 0.4003439247608185, -0.22666311264038086, -0.3518342077732086, -0.18621525168418884, -0.11018434911966324, 0.14655153453350067, 0.12165465205907822, -0.15067149698734283, 0.2942144274711609, 0.32813888788223267, 0.09828298538923264, 0.030644193291664124, -0.022192101925611496, -0.18013916909694672, -0.6082833409309387, -0.0778392106294632, -0.45642614364624023, 0.26550427079200745, -0.5156537294387817, -0.13810603320598602, -0.29862454533576965, 0.2917179465293884, -0.29393595457077026, -0.0874444916844368, 0.16573385894298553, 0.045795198529958725, -0.08148877322673798, -0.11216513067483902, -0.04715298116207123, -0.29195332527160645, 0.14651328325271606, -0.004920057952404022, -0.25751176476478577, 0.48286136984825134, -0.09936828166246414, -0.3981582224369049, 0.3474787771701813, 0.6011687517166138, 0.2996062934398651, 0.010808802209794521, 0.2203303724527359, 0.08396495133638382, 0.06140124052762985, -0.2706187665462494, -0.21628327667713165, -0.15767903625965118, 0.16633357107639313, -0.565381646156311, -0.05508050322532654, 0.2663570046424866, -0.015745006501674652, -0.36643871665000916, -0.10523444414138794, 0.3159482181072235, -0.0346258282661438, 0.40777429938316345, -0.17333973944187164, 0.2705790102481842, -0.03487110882997513, 0.13746094703674316, -0.17085698246955872, -0.33303362131118774, -0.10484005510807037, 0.4203818738460541, -0.3121209740638733, -0.14430250227451324, -0.16926705837249756, 0.47934362292289734, 0.3534291684627533, 0.12255813181400299, 0.046127039939165115, 0.1554606556892395, -0.07942578941583633, -0.25595787167549133, 0.1802673190832138, -0.2929851710796356, 0.2055213749408722, 0.22461292147636414, 0.14536364376544952, 0.08072295784950256, -0.20612554252147675, -0.057239461690187454, 0.14402306079864502, -0.02371186390519142, 0.35022810101509094, 0.2081848531961441, 0.37140601873397827, -0.19972844421863556, -0.07407092303037643, -0.4108280837535858, -0.01808287762105465, 0.11002077907323837, -0.2863143980503082, 0.028012318536639214, -0.13822892308235168, -0.45614513754844666, -0.017968272790312767, -0.49065327644348145, -0.15960627794265747, -0.5329728722572327, -0.030523477122187614, 0.19395941495895386, -0.10031133145093918, 0.2125140279531479, 0.1825379729270935, -0.23480798304080963, 0.23441608250141144, -0.3206109404563904, -0.22406381368637085, -0.48819008469581604, -0.2442368119955063, 0.13112744688987732, 0.15155872702598572, 0.04881018027663231, 0.0672164112329483, 0.2802771329879761, -0.07386323809623718, -0.15616385638713837, -0.5505622029304504, 0.03042450174689293, -0.48661187291145325, 0.09574265033006668, 0.415568083524704, 0.24726086854934692, 0.129288449883461, -0.42273882031440735, 0.3008902668952942, 0.5386328101158142, -0.3785909116268158, -0.05005748197436333, -0.044227637350559235, -0.015310967341065407, -0.09045711904764175, -0.06814359128475189, -0.07465915381908417, -0.2739899754524231, 0.3004770278930664, 0.33600327372550964, 0.15567152202129364, 0.14523611962795258, -0.08393670618534088, 0.06322422623634338, 0.15607523918151855, -0.22992494702339172, 0.07306493818759918, 0.4016876518726349, 0.3970459997653961, -0.2707507610321045, -0.3289733827114105, 0.006612562108784914, -0.48442938923835754, 0.02957097999751568, -0.11770493537187576, -0.14825180172920227, 0.10777424275875092, 0.14828482270240784, 0.4257534146308899, 0.3425690829753876, -0.3354383409023285, 0.3598233163356781, 0.4960225224494934, -0.052243057638406754, -0.0866466835141182, -0.03413946554064751, 0.24977454543113708, 0.15862055122852325, 0.2001061886548996, 0.24615196883678436, 0.08825492113828659, 0.13811993598937988, 0.3682236671447754, 0.45008254051208496, -0.045531563460826874, 0.41033095121383667, -0.1635897308588028, -0.02446966990828514, -0.2582240104675293, 0.0070213451981544495, -0.3686869442462921, -0.1982267200946808, 0.05727772414684296, 0.0289594866335392, -0.12328772991895676, -0.3941151201725006, 0.08816048502922058, 0.046653494238853455, 0.24597106873989105, -0.13581162691116333, 0.11189566552639008, -0.5101598501205444, 0.2923167943954468, -0.1387947052717209, -0.3272836208343506, -0.0665573701262474, -0.4218161106109619, -0.07834648340940475, -0.17945082485675812, 0.07772786915302277, -0.023720454424619675, -0.32965242862701416, -0.08785980939865112, -0.4834100604057312, 0.21098336577415466, 0.39804792404174805, 0.19805647432804108, -0.053075872361660004, -0.10226805508136749, -0.10975879430770874, -0.22386713325977325, 0.18099942803382874, -0.10997220873832703, -0.18931517004966736, 0.48553574085235596, 0.11836559325456619, -0.42148739099502563, -0.03384673595428467, -0.08967141807079315, 0.17747893929481506, 0.091299869120121, 0.4397972822189331, -0.6211687326431274, 0.002022192580625415, 0.07137452811002731, 0.09220948815345764, -0.06770657747983932, -0.0742001086473465, -0.07351452112197876, -0.26399487257003784, -0.1719917207956314, 0.008207665756344795, 0.30257317423820496, 0.4619012773036957, 0.01217301469296217, -0.2804293632507324, -0.0899343267083168, -0.16198508441448212, 0.036251846700906754, -0.10583899170160294, 0.2589026987552643, -0.12458489090204239, -0.05142291262745857, 0.013486008159816265, 0.28226372599601746, 0.1386045515537262, 0.2392868548631668, 0.32204708456993103, 0.14256203174591064, -0.11946912109851837, -0.07974931597709656, 0.3786872625350952, 0.13635729253292084, 0.01715923100709915, 0.29749348759651184, 0.1562427431344986, -0.15464866161346436, -0.19926853477954865, -0.054286614060401917, 0.31014329195022583, -0.16846778988838196, -0.3162243366241455, -0.05628805235028267, 0.28435322642326355, 0.012522375211119652, -0.08016175776720047, -0.03888557106256485, 0.029412176460027695, -0.42317864298820496, 0.4896875023841858, 0.22763663530349731, 0.9587826728820801, 0.14334699511528015, 0.3334234058856964, 0.7011719942092896, 0.10090947151184082, 0.525680422782898, 0.12354762852191925, 0.027815498411655426, -0.3482504189014435, 0.33121466636657715, -0.09383080154657364, -0.19702859222888947, 0.0337517186999321, 0.1511797159910202, -0.3989124000072479, 0.20762617886066437, -0.04394105449318886, -0.009775019250810146, 0.09696357697248459, 0.07736003398895264, 0.4406331181526184, -0.03988129273056984, -0.19460994005203247, 0.03434661403298378, -0.04217112436890602, -0.06412041932344437, -0.029214421287178993, -0.5158136487007141, -0.4526408910751343, -0.1940000206232071, -0.12625524401664734, 0.07312183827161789, 0.00021944098989479244, 0.1277308166027069, 0.10205450654029846, -0.3356180489063263, 0.18024000525474548, 0.5281007885932922, -0.01878819242119789, -0.3472121059894562, -0.20473845303058624, -0.2765868306159973, 0.04607497528195381, -0.38230031728744507, 0.07962575554847717, -0.2330658733844757, 0.17021796107292175, -0.138992041349411, 0.05838705971837044, 0.06679867953062057, -0.10251852124929428, -0.11710720509290695, -0.12455665320158005, 0.12984976172447205, -0.21002483367919922, -0.2777288258075714, -0.2426903247833252, 0.2711505591869354, -0.2643267810344696, -0.005321300122886896, 0.06884527951478958, 0.0013983594253659248, -0.2149067372083664, 0.08824357390403748, 0.0066772885620594025, 0.20093199610710144, 0.10780838131904602, 0.16765040159225464, 0.39025864005088806, 0.24985066056251526, 0.6531684994697571, 0.35359978675842285, -0.2699030339717865, -0.03707602992653847, -0.20082052052021027, 0.13566333055496216, -0.2612203061580658, 0.2731472849845886, 0.009566141292452812, -0.10795103758573532, -0.18512468039989471, 0.5661988854408264, -0.03590678423643112, 0.3272189795970917, -0.029483916237950325, -0.27302950620651245, -0.4289378523826599, 0.34177467226982117, -0.337616890668869, 0.1372973769903183, -0.21050024032592773, 0.34178388118743896, -0.020043915137648582, -0.08668386936187744, -0.2319803088903427, -0.033897764980793, -0.26952677965164185, 0.2831496298313141, 0.07277586311101913, -0.24186545610427856, 0.1432744562625885, 0.16374056041240692, 0.11349211633205414, 0.1377163529396057, 0.00914094503968954, -0.11896160989999771, -0.09468024969100952, 0.14830172061920166, 0.24621188640594482, -0.014638164080679417, 0.1611180156469345, 0.1037161648273468, 0.007238901685923338, -0.09347818791866302, -0.16617271304130554, -0.2070731818675995, -0.09780307114124298, 0.2616792321205139, 0.25900548696517944, 0.060882318764925, -0.1613900512456894, 0.17214946448802948, -0.0749581977725029, 0.2543964684009552, -0.1327088475227356, 0.20221292972564697, -0.13597024977207184, -0.06581481546163559, 0.05591261759400368, 0.29711711406707764, -0.08773577213287354, -0.07802528142929077, 0.41860273480415344, -0.08177942037582397, -0.4433649480342865, -0.2719833254814148, 0.3999474346637726, 0.268114298582077, -0.10099804401397705, -0.08307818323373795, -0.11218021810054779, 0.07475969195365906, -0.37601253390312195, -0.007778833154588938, 0.2860892713069916, 0.03238235041499138, 0.020430659875273705, 0.21590927243232727, 0.3058032989501953, -0.04048823192715645, -0.2148522585630417, -0.0401834100484848, 0.006054349709302187, -0.01128427404910326, 0.029572783038020134, 0.09083425253629684, 0.1468588262796402, 0.06438814103603363, 0.19960559904575348, 0.006145002786070108, 0.3186853528022766, 0.3405151069164276, 0.22553794085979462, 0.07470756024122238, 0.7099603414535522, -0.020604554563760757, 0.4179549515247345, 0.062439631670713425, -0.09592202305793762, 0.23015928268432617, 0.8155215382575989, -0.0801273062825203, 0.2281215339899063, 0.2109822928905487, 0.40517428517341614, -0.15393248200416565, 0.22981497645378113, 0.44922909140586853, -0.06960289925336838, -0.20353637635707855, -0.1884586215019226, 0.011691995896399021, -0.21719972789287567, -0.4033900797367096, -0.20081306993961334, -0.2008015513420105, 0.16091349720954895, -0.08555177599191666, 0.31727972626686096, -0.3578869104385376, 0.6291173696517944, 0.2359282523393631, 0.15793929994106293, -0.06872943043708801, 0.39837080240249634, 0.2859934866428375, -0.12273410707712173, 0.12003857642412186, 0.3106318414211273, 0.5210931897163391, 0.23192627727985382, -0.49779725074768066, -0.020133497193455696, -0.1576004922389984, -0.3119957745075226, 0.04528167471289635, 0.15575633943080902, 0.10338887572288513, 0.17144204676151276, 0.427024245262146, 0.0027691482100635767, 0.003536639269441366, -0.006691102869808674, 0.30022749304771423, -0.10845132917165756, 0.25306418538093567, 0.5017456412315369, -0.2810676395893097, -0.36820846796035767, 0.16333957016468048, 0.028057647868990898, -0.20522311329841614, -0.108119897544384, 0.3654829263687134, 0.22884824872016907, 0.2794363796710968, 0.07714052498340607, 0.05926300585269928, -0.09336987137794495, 0.595962405204773, 0.10376103967428207, 0.30816271901130676, -0.15464527904987335, -0.23435132205486298, -0.3536602854728699, 0.0036339103244245052, -0.05651886388659477, -0.32162538170814514, 0.30732208490371704, -0.011177372187376022, 0.05892370641231537, 0.19841386377811432, -0.17917336523532867, 0.019347285851836205, -0.2994583547115326, 0.22041954100131989, -0.39733296632766724, 0.05021227151155472, 0.39117497205734253, 0.046745795756578445, -0.08370424807071686, 0.023023774847388268, 0.051060743629932404, 0.028628457337617874, -0.008693954907357693, -0.1330484300851822, -0.12296468019485474, -0.09376899898052216, 0.2239980250597, -0.04958100616931915, 0.255288302898407, 0.27419313788414, 0.07164524495601654, -0.15349961817264557, -0.15623174607753754, -0.2056283801794052, -0.0690804198384285, 0.6255397200584412, 0.08909977972507477, 0.4591797888278961, -0.21442654728889465, 0.2980731129646301, -0.07288839668035507, -0.06758540123701096, 0.0347636342048645, -0.031589869409799576, -0.39353033900260925, 0.3084964454174042, -0.2421962469816208, 0.2191547304391861, -0.0817306786775589, 0.09468250721693039, 0.016862163320183754, 0.25778713822364807, -0.24221742153167725, -0.4130553901195526, 0.3898535370826721, -0.11537525057792664, -0.24641555547714233, 0.46507808566093445, -0.14557084441184998, 0.42406317591667175, 0.03699609264731407, -0.14423565566539764, -0.20593084394931793, 0.4398936629295349, -0.10900375992059708, -0.34119588136672974, -0.1297617405653, -0.06775857508182526, -0.13854922354221344, -0.18108323216438293, 0.1994474232196808, -0.1636885404586792, -0.06514724344015121, -0.2459089308977127, -0.4080280661582947 ]
https://github.com/huggingface/datasets/issues/317
Adding a dataset with multiple subtasks
For one dataset you can have different configurations that each have their own `nlp.Features`. We imagine having one configuration per subtask for example. They are loaded with `nlp.load_dataset("my_dataset", "my_config")`. For example the `glue` dataset has many configurations. It is a bit different from your case though because each configuration is a dataset by itself (sst2, mnli). Another example is `wikipedia` that has one configuration per language.
I intent to add the datasets of the MT Quality Estimation shared tasks to `nlp`. However, they have different subtasks -- such as word-level, sentence-level and document-level quality estimation, each of which having different language pairs, and some of the data reused in different subtasks. For example, in [QE 2019,](http://www.statmt.org/wmt19/qe-task.html) we had the same English-Russian and English-German data for word-level and sentence-level QE. I suppose these datasets could have both their word and sentence-level labels inside `nlp.Features`; but what about other subtasks? Should they be considered a different dataset altogether? I read the discussion on #217 but the case of QE seems a lot simpler.
66
Adding a dataset with multiple subtasks I intent to add the datasets of the MT Quality Estimation shared tasks to `nlp`. However, they have different subtasks -- such as word-level, sentence-level and document-level quality estimation, each of which having different language pairs, and some of the data reused in different subtasks. For example, in [QE 2019,](http://www.statmt.org/wmt19/qe-task.html) we had the same English-Russian and English-German data for word-level and sentence-level QE. I suppose these datasets could have both their word and sentence-level labels inside `nlp.Features`; but what about other subtasks? Should they be considered a different dataset altogether? I read the discussion on #217 but the case of QE seems a lot simpler. For one dataset you can have different configurations that each have their own `nlp.Features`. We imagine having one configuration per subtask for example. They are loaded with `nlp.load_dataset("my_dataset", "my_config")`. For example the `glue` dataset has many configurations. It is a bit different from your case though because each configuration is a dataset by itself (sst2, mnli). Another example is `wikipedia` that has one configuration per language.
[ -0.07099571079015732, -0.18145330250263214, -0.0437028668820858, 0.3849152624607086, -0.21697570383548737, 0.09465950727462769, 0.35820886492729187, -0.1335345208644867, 0.12713932991027832, -0.15524700284004211, -0.28162145614624023, 0.14893098175525665, -0.15718238055706024, 0.680974543094635, 0.3387669622898102, -0.22827214002609253, 0.1595131903886795, -0.35347431898117065, -0.06523381918668747, -0.018869131803512573, -0.1657256931066513, 0.052326250821352005, -0.04850358888506889, -0.010485796257853508, -0.361602246761322, -0.233991339802742, -0.29406407475471497, -0.12222570925951004, 0.3124151825904846, -0.30023226141929626, 0.09821554273366928, 0.2476525902748108, -0.03276253119111061, 0.06598174571990967, -0.0001160392421297729, 0.12002041935920715, 0.030315373092889786, -0.10520289093255997, -0.35485732555389404, -0.11891411989927292, -0.234876349568367, -0.47126585245132446, -0.04687449708580971, -0.16618014872074127, 0.1921757459640503, -0.30591514706611633, 0.3483871817588806, -0.2273130714893341, 0.17081575095653534, 0.16543185710906982, 0.09615561366081238, 0.300425261259079, -0.34443479776382446, 0.18980063498020172, 0.14191380143165588, -0.14653053879737854, -0.08647019416093826, 0.14829570055007935, 0.15912698209285736, 0.12157046049833298, 0.10448872298002243, 0.0899098739027977, 0.1305585354566574, 0.15654870867729187, 0.3428240418434143, 0.04369381070137024, 0.25323206186294556, -0.30919063091278076, -0.19410791993141174, 0.3868046700954437, 0.5393715500831604, 0.04300250858068466, -0.4733112156391144, -0.4100717306137085, 0.06197191774845123, -0.10595947504043579, -0.01838660053908825, 0.3538922965526581, 0.06193911284208298, -0.2496781200170517, 0.21227401494979858, -0.08404146879911423, -0.09232758730649948, 0.20203369855880737, 0.1703466773033142, 0.49902161955833435, 0.05619528144598007, 0.242879718542099, -0.23657521605491638, -0.16114163398742676, -0.17206312716007233, -0.1442687064409256, -0.18450793623924255, -0.012314517982304096, -0.296213299036026, -0.0726037323474884, -0.09223613888025284, -0.4936169981956482, 0.2760325074195862, 0.04808077588677406, 0.3868001401424408, -0.01815173774957657, -0.03430114686489105, 0.38495689630508423, 0.577732264995575, -0.07199282944202423, 0.3023175895214081, -0.03655899688601494, -0.05050630867481232, -0.5055100917816162, -0.10484221577644348, -0.1112041100859642, -0.00392523966729641, 0.057834237813949585, -0.31770628690719604, -0.1836053431034088, 0.1430571973323822, 0.07736150920391083, -0.22938218712806702, -0.12813958525657654, -0.12914752960205078, -0.31752678751945496, -0.20341968536376953, -0.07261104881763458, 0.24716033041477203, 0.26541686058044434, -0.3013915419578552, 0.5123956203460693, 0.043233804404735565, 0.06023966893553734, -0.06641081720590591, -0.07790254801511765, -0.3201746344566345, 0.23677580058574677, 0.046330731362104416, 0.07161824405193329, 0.44740360975265503, -0.004476603586226702, -0.028468871489167213, -0.3521724045276642, 0.18821150064468384, -0.07907893508672714, -0.06916315108537674, -0.0300833061337471, 0.042779840528964996, 0.06560221314430237, -0.2253538966178894, 0.2875693738460541, -0.41455182433128357, 0.02010023221373558, -0.3364303708076477, -0.16669555008411407, 0.08987357467412949, 0.0010786803904920816, -0.183277890086174, -0.19883383810520172, -0.555036723613739, 0.636216938495636, 0.08194826543331146, -0.079884372651577, -0.020813366398215294, -0.14135798811912537, -0.27563032507896423, -0.16575933992862701, -0.3760380446910858, -0.10043978691101074, -0.29674655199050903, -0.48611101508140564, -0.014934728853404522, -0.1696501523256302, 0.01702708750963211, 0.3792365491390228, -0.20671865344047546, 0.49382612109184265, -0.09010498970746994, 0.38409045338630676, 0.5942389369010925, -0.20192739367485046, -0.08353612571954727, 0.3388233482837677, 0.12393949180841446, 0.04260659217834473, 0.2889140546321869, 0.43116822838783264, 0.23522630333900452, 0.022179726511240005, 0.004531115293502808, 0.34516966342926025, -0.1242872029542923, -0.15704822540283203, 0.0157905425876379, -0.14394240081310272, 0.4175114035606384, -0.008084859699010849, -0.010497252456843853, -0.24873515963554382, 0.12752820551395416, -0.04336116462945938, 0.15092100203037262, 0.06794234365224838, 0.13763608038425446, -0.12132513523101807, -0.13973990082740784, 0.3720223307609558, -0.0812830924987793, -0.2937517464160919, -0.30584481358528137, 0.17385607957839966, -0.19136735796928406, 0.11775023490190506, 0.5350755453109741, -0.18690146505832672, 0.09722664207220078, -0.2575560212135315, -0.16046801209449768, -0.4902060329914093, 0.091423399746418, 0.45305123925209045, -0.510991632938385, -0.3918744623661041, -0.4492606222629547, 0.17530600726604462, 0.12128793448209763, -0.12233410030603409, -0.15637096762657166, 0.2713686525821686, 0.16020318865776062, 0.025951793417334557, 0.12400080263614655, 0.39586561918258667, -0.05448930710554123, -0.006238984409719706, 0.0937289223074913, 0.08532914519309998, 0.20980173349380493, 0.23525509238243103, 0.26916930079460144, -0.12743106484413147, 0.1423424631357193, -0.00645441422238946, 0.09067148715257645, -0.12773270905017853, -0.02986990474164486, -0.21793673932552338, 0.2128392904996872, 0.2513679265975952, 0.19436265528202057, 0.3742975890636444, 0.03655125945806503, -0.09159695357084274, 0.24194903671741486, 0.08246227353811264, -0.35556739568710327, -0.2242482453584671, 0.13615790009498596, 0.021742356941103935, -0.06853015720844269, 0.10273690521717072, -0.20264387130737305, 0.23701529204845428, 0.33044466376304626, 0.11694534122943878, 0.1193806603550911, -0.13728563487529755, -0.13243956863880157, -0.1327698677778244, 0.12773427367210388, 0.32630980014801025, 0.4737482964992523, 0.18272413313388824, 0.36266377568244934, -0.020628906786441803, -0.015571392141282558, -0.10861795395612717, -0.0022714075166732073, 0.18442855775356293, 0.001573694753460586, 0.21316829323768616, -0.07691637426614761, -0.1609201729297638, -0.059005092829465866, 0.15981583297252655, 0.30980560183525085, -0.19485919177532196, -0.16202600300312042, 0.006378479767590761, -0.4035835266113281, -0.42564335465431213, -0.2943246066570282, 0.02316630817949772, -0.3156164884567261, -0.2660309076309204, 0.08972786366939545, -0.08034566789865494, -0.19059157371520996, 0.37429073452949524, 0.028585612773895264, 0.4266746938228607, -0.43847912549972534, 0.17274834215641022, 0.29191091656684875, -0.3651603162288666, -0.039186228066682816, 0.07529935240745544, 0.4533347487449646, 0.5177784562110901, 0.5196754336357117, 0.08196519315242767, -0.2692108154296875, -0.14957784116268158, -0.17664238810539246, 0.182742178440094, -0.3511614203453064, 0.644190788269043, -0.18986405432224274, -0.06355543434619904, 0.0654105693101883, -0.3773083984851837, 0.18398360908031464, 0.30568698048591614, -0.1688380092382431, -0.09972625225782394, -0.09916546940803528, -0.15155382454395294, -0.016697216778993607, -0.5070536136627197, -0.48719215393066406, -0.2386372834444046, 0.24699930846691132, -0.15935061872005463, 0.3552493751049042, 0.010928611271083355, -0.3600105941295624, -0.04459112137556076, -0.05102923512458801, 0.022551830857992172, -0.25228098034858704, -0.09906619042158127, -0.028114618733525276, -0.44576409459114075, -0.0753631591796875, 0.14581027626991272, -0.11003071069717407, 0.5756062269210815, 0.049291010946035385, -0.2368782013654709, -0.06097978353500366, 0.17622052133083344, -0.13571472465991974, 0.21015875041484833, 0.029239362105727196, 0.18213628232479095, -0.10605619102716446, 0.06362904608249664, -0.060803141444921494, -0.3764829635620117, 0.412204384803772, 0.48637571930885315, 0.19863027334213257, -0.05327760428190231, 0.06210900843143463, -0.21244826912879944, 0.43117645382881165, 0.6173298358917236, 0.26698896288871765, 0.13748344779014587, 0.015275196172297001, -0.015651138499379158, 0.13433440029621124, -0.17310936748981476, 0.5373427867889404, -0.152058407664299, -0.07418850809335709, 0.5096476674079895, 0.07712876796722412, -0.10019315034151077, -0.03491002693772316, -0.21841707825660706, -0.28706255555152893, -0.2746576964855194, 0.21589872241020203, -0.38213256001472473, 0.32794928550720215, -0.11125599592924118, -0.5277531743049622, -0.3999682068824768, 0.12230900675058365, -0.27453234791755676, 0.42772334814071655, 0.014690561220049858, 0.15394537150859833, -0.7118864059448242, -0.23982883989810944, -0.25048547983169556, 0.07744494080543518, 0.16256782412528992, 0.4083617627620697, -0.04588237777352333, 0.1651034951210022, -0.048811957240104675, 0.07526642084121704, -0.09322631359100342, -0.44280678033828735, -0.1155126541852951, 0.18163560330867767, 0.35346519947052, -0.29031434655189514, -0.19670319557189941, -0.13208341598510742, -0.07324283570051193, 0.3702428936958313, 0.2047516107559204, -0.37994030117988586, -0.07816103845834732, 0.03960423916578293, 0.07436263561248779, -0.20151756703853607, -0.25655490159988403, -0.16366754472255707, -0.07914034277200699, -0.1459161788225174, -0.07083750516176224, -0.15507344901561737, -0.09937495738267899, 0.10380809009075165, -0.05233069509267807, -0.023225611075758934, -0.17166513204574585, 0.1622256189584732, 0.1499478667974472, -0.01731102541089058, 0.1483180969953537, 0.1659754365682602, 0.03566710278391838, -0.007045370526611805, 0.20200558006763458, 0.6304759979248047, -0.18414252996444702, -0.028697682544589043, 0.047301553189754486, -0.24319146573543549, 0.5375522375106812, 0.08001608401536942, 0.13660870492458344, 0.30330464243888855, -0.08369825035333633, -0.353498250246048, -0.08292204886674881, 0.1730748862028122, 0.4156101942062378, 0.20729830861091614, -0.09309440106153488, -0.4728390872478485, 0.3493265211582184, 0.15291202068328857, -0.16371102631092072, 0.09366384893655777, -0.21412168443202972, -0.2796527147293091, 0.1748833954334259, 0.15634627640247345, 0.5925896763801575, 0.17064857482910156, 0.16015030443668365, 0.019666092470288277, 0.14273931086063385, 0.4723142385482788, -0.043267328292131424, 0.05077744275331497, 0.07045157998800278, 0.12620143592357635, 0.017640018835663795, -0.10342258214950562, 0.10138566792011261, 0.3143952786922455, -0.10515059530735016, 0.20271426439285278, 0.4885592758655548, 0.07388067245483398, -0.20549874007701874, 0.16520558297634125, 0.022402320057153702, -0.11192033439874649, 0.02457440085709095, 0.00514219468459487, -0.3381904065608978, -0.0644519105553627, -0.15802744030952454, -0.0954698920249939, 0.020237011834979057, 0.18885965645313263, -0.2974645793437958, -0.2856971323490143, -0.21643705666065216, -0.09071410447359085, -0.08838298171758652, 0.07414545863866806, 0.1049051284790039, -0.11231810599565506, 0.23295123875141144, -0.2949126362800598, 0.07577823102474213, -0.061064135283231735, -0.16012905538082123, -0.05803710222244263, -0.24135804176330566, -0.16264675557613373, 0.3596678674221039, -0.13284160196781158, -0.32881903648376465, -0.021393826231360435, 0.2124660313129425, -0.21411779522895813, -0.22377124428749084, 0.08441594243049622, 0.012809974141418934, 0.02424999326467514, 0.029885167255997658, 0.6271651983261108, -0.12765373289585114, -0.08098497986793518, 0.011536138132214546, 0.08100501447916031, -0.06636622548103333, 0.45479321479797363, -0.2411869466304779, 0.12811516225337982, -0.09839237481355667, -0.26855263113975525, 0.3955043852329254, -0.14304117858409882, 0.06153286620974541, -0.1615617871284485, 0.056022778153419495, -0.1229565292596817, 0.3657935857772827, -0.22342854738235474, 0.16699360311031342, -0.040663424879312515, 0.16723711788654327, -0.23485752940177917, -0.09836533665657043, 0.41915303468704224, 0.1744469404220581, 0.1659705489873886, -0.021405218169093132, -0.30908918380737305, -0.28142768144607544, 0.4315322935581207, -0.23808075487613678, 0.21823176741600037, -0.33611738681793213, 0.45609721541404724, 0.10059989988803864, 0.737518846988678, -0.20381058752536774, -0.058550719171762466, -0.05823853611946106, 0.30754926800727844, 0.6464052796363831, 0.12273138016462326, 0.014495222829282284, 0.17480915784835815, -0.13643310964107513, -0.13183724880218506, -0.25383007526397705, -0.04798569157719612, -0.2725461721420288, 0.15848419070243835, 0.452935129404068, -0.0597897507250309, 0.11852623522281647, -0.08370669931173325, 0.1968560516834259, -0.17432105541229248, 0.15404213964939117, -0.08648858964443207, -0.17040014266967773, 0.5633851885795593, 0.17757247388362885, 0.196330264210701, -0.09346434473991394, 0.4911976456642151, 0.10677861422300339, 0.14719422161579132, 0.14886997640132904, -0.00694819912314415, 0.03284792602062225, 0.05640455707907677, -0.10656696557998657, 0.03799856826663017, 0.061037126928567886, 0.3045608401298523, -0.19910231232643127, 0.04411739110946655, -0.00951988622546196, -0.07328804582357407, -0.004000806249678135, 0.4577012062072754, 0.10571587830781937, 0.17700247466564178, 0.05486367642879486, 0.032939597964286804, -0.20060788094997406, 0.13137204945087433, 0.22794848680496216, -0.03673677518963814, 0.1702222377061844, 0.24532893300056458, 0.374732106924057, 0.06277444958686829, 0.1034650132060051, -0.1887231320142746, -0.36891788244247437, -0.3820821940898895, 0.39476099610328674, 0.08122686296701431, 0.1540258675813675, 0.07479048520326614, 0.3632289171218872, 0.20619474351406097, 0.16359327733516693, 0.2591194808483124, 0.16669191420078278, 0.35711196064949036, 0.4458707273006439, -0.04546346887946129, 0.40742915868759155, 0.05979643762111664, -0.08665656298398972, 0.32712969183921814, 0.010058415122330189, 0.1574142873287201, 0.08930815756320953, 0.18169808387756348, -0.1257467418909073, -0.39562562108039856, -0.002783051924780011, 0.16566625237464905, -0.08276413381099701, -0.22446808218955994, -0.46350350975990295, -0.2103758007287979, -0.12924830615520477, -0.17950232326984406, -0.31591594219207764, -0.22409775853157043, 0.1001913845539093, 0.015941187739372253, 0.08364274352788925, -0.1032659113407135, -0.3410221040248871, 0.04062614589929581, -0.24160461127758026, -0.08817129582166672, 0.43837952613830566, -0.038434360176324844, -0.12429804354906082, 0.3325558304786682, 0.5182182192802429, -0.008541645482182503, -0.04342418909072876, -0.0947011262178421, 0.07897274196147919, 0.10351438075304031, 0.1742793470621109, 0.0017961362609639764, 0.06610772758722305, 0.14959965646266937, -0.46452128887176514, 0.42820191383361816, -0.07462083548307419, 0.04454386606812477, 0.3763592839241028, 0.059167712926864624, -0.37887993454933167, -0.5645080208778381, 0.37450963258743286, -0.07400946319103241, -0.10724044591188431, 0.05227014794945717, 0.18935038149356842, -0.45065054297447205, -0.3078385889530182, 0.39061230421066284, -0.027461934834718704, 0.1043381467461586, -0.21644222736358643, 0.042609743773937225, -0.15391531586647034, 0.5759128928184509, 0.14036664366722107, 0.12147088348865509, -0.18904803693294525, 0.06323494017124176, -0.7028478980064392, 0.09084869176149368, -0.21619094908237457, -0.012121946550905704, -0.03172143176198006, 0.08100075274705887, 0.19393077492713928, 0.4688180088996887, 0.1265929788351059, 0.21478171646595, -0.10427810251712799, -0.056641027331352234, -0.5983035564422607, -0.1369602233171463, 0.14843228459358215, 0.23209191858768463, 0.07382087409496307, 0.08754000067710876, -0.12036199122667313, -0.03825395554304123, -0.1451864093542099, 0.11988908052444458, -0.28398436307907104, 0.3616275489330292, 0.317685067653656, 0.41776981949806213, 0.025027090683579445, 0.6134979128837585, -0.026458004489541054, -0.09298276156187057, -0.10206591337919235, -0.26818788051605225, -0.310608446598053, -0.1143798977136612, -0.04345392435789108, 0.3557244837284088, -0.5675239562988281, 0.4912188649177551, 0.12287095189094543, -0.2394486367702484, -0.27122458815574646, -0.1315521001815796, 0.0020275095012038946, 0.24046988785266876, 0.08519385755062103, -0.1821264624595642, 0.20759490132331848, 0.5532333254814148, 0.04604169353842735, -0.12558366358280182, -0.007740710396319628, 0.01814490742981434, 0.1712379902601242, 0.07117404043674469, -0.18219316005706787, -0.18402056396007538, 0.23873530328273773, 0.07368209213018417, 0.32015955448150635, -0.4600190222263336, -0.09383691102266312, 0.43597403168678284, 0.1077984869480133, 0.11933992803096771, 0.14485323429107666, 0.12024162709712982, -0.4784870147705078, -0.2822836637496948, -0.21169060468673706, -0.07374454289674759, -0.20709669589996338, -0.09614918380975723, -0.3565065562725067 ]
https://github.com/huggingface/datasets/issues/315
[Question] Best way to batch a large dataset?
Update: I think I've found a solution. ```python output_types = {"input_ids": tf.int64, "token_type_ids": tf.int64, "attention_mask": tf.int64} def train_dataset_gen(): for i in range(len(train_dataset)): yield train_dataset[i] tf_dataset = tf.data.Dataset.from_generator(train_dataset_gen, output_types=output_types) ``` loads WikiText-2 in 20 ms, and WikiText-103 in 20 ms. It appears to be lazily loading via indexing train_dataset.
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets?
48
[Question] Best way to batch a large dataset? I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets? Update: I think I've found a solution. ```python output_types = {"input_ids": tf.int64, "token_type_ids": tf.int64, "attention_mask": tf.int64} def train_dataset_gen(): for i in range(len(train_dataset)): yield train_dataset[i] tf_dataset = tf.data.Dataset.from_generator(train_dataset_gen, output_types=output_types) ``` loads WikiText-2 in 20 ms, and WikiText-103 in 20 ms. It appears to be lazily loading via indexing train_dataset.
[ -0.3098403513431549, -0.3549025058746338, 0.04007013142108917, -0.13144110143184662, 0.04347912594676018, 0.17069244384765625, 0.545406699180603, 0.394595742225647, 0.1853833794593811, 0.07585082948207855, -0.010930435732007027, 0.09057170152664185, -0.045824985951185226, 0.1636856347322464, 0.14648066461086273, -0.3626333773136139, 0.016457589343190193, -0.2653382420539856, -0.026075594127178192, -0.14478838443756104, -0.2456078827381134, -0.29631030559539795, -0.34992751479148865, -0.22726574540138245, -0.31489869952201843, -0.29205140471458435, 0.02210233360528946, -0.178660050034523, 0.21462543308734894, -0.049013011157512665, 0.049041539430618286, 0.021640749648213387, 0.30009543895721436, 0.444857656955719, -0.00011566013563424349, -0.13261905312538147, 0.0600118413567543, -0.044534094631671906, -0.008880354464054108, 0.3237420916557312, -0.061236657202243805, -0.38815274834632874, -0.09791859239339828, -0.4061885178089142, 0.11056124418973923, 0.19236427545547485, 0.19394253194332123, -0.047250375151634216, 0.13588596880435944, -0.032512836158275604, 0.06321760267019272, 0.37276214361190796, -0.02476559206843376, 0.17228858172893524, 0.028884364292025566, -0.0639725774526596, 0.011857914738357067, 0.06099189817905426, 0.27958452701568604, -0.06970088183879852, -0.0007683641742914915, 0.3284050226211548, -0.1674046516418457, -0.015942459926009178, 0.29255732893943787, 0.23139561712741852, 0.12011311948299408, -0.6053040027618408, 0.031975697726011276, 0.372427374124527, 0.2989347279071808, 0.0038550090976059437, -0.27515366673469543, -0.6016528606414795, -0.12167365849018097, -0.26009881496429443, -0.2543846368789673, 0.277985543012619, -0.22824351489543915, -0.17848554253578186, -0.2848556339740753, -0.060750652104616165, -0.11166255176067352, 0.15172748267650604, -0.1742449402809143, 0.18979787826538086, 0.1561433970928192, 0.25138360261917114, 0.18000845611095428, -0.25915783643722534, 0.07230823487043381, -0.2944978177547455, 0.3919678032398224, 0.2885427474975586, -0.5199078321456909, -0.161050483584404, 0.15255405008792877, -0.2357095628976822, 0.06207035481929779, -0.26955488324165344, -0.08921447396278381, 0.007106923498213291, 0.09507863968610764, 0.04642326384782791, 0.18401403725147247, 0.2864987552165985, -0.1267036497592926, 0.0481853112578392, 0.1040562093257904, -0.2625123858451843, -0.24212227761745453, 0.3590072989463806, -0.10837475210428238, -0.2902850806713104, 0.04752177372574806, -0.1952095776796341, -0.3582230806350708, 0.1385158896446228, -0.00881473533809185, 0.03123575635254383, 0.06801183521747589, -0.06761318445205688, -0.031125042587518692, 0.1281125247478485, -0.2842444181442261, 0.07877562195062637, -0.14889656007289886, -0.13956882059574127, -0.380586177110672, 0.16667644679546356, -0.1485891193151474, 0.01749839447438717, -0.0054788473062217236, -0.016314033418893814, 0.13558854162693024, -0.1396760195493698, 0.1104084923863411, -0.18178002536296844, 0.0023551075719296932, 0.2069328874349594, -0.1126754954457283, -0.23203782737255096, 0.135482519865036, 0.23468822240829468, 0.057993922382593155, 0.241053506731987, 0.031283188611269, 0.15585573017597198, -0.20943421125411987, 0.37266966700553894, -0.30990293622016907, -0.33958014845848083, 0.19431394338607788, 0.06684459745883942, 0.016657087951898575, -0.3149910569190979, -0.5945531129837036, 0.3981277048587799, 0.3210080564022064, 0.09307774156332016, -0.07706128060817719, -0.2863112986087799, -0.1548875868320465, -0.24354863166809082, 0.1875339150428772, 0.21212255954742432, -0.42634880542755127, 0.15767095983028412, 0.40174567699432373, 0.329196572303772, 0.3743078410625458, 0.614740788936615, -0.25484776496887207, 0.44109416007995605, 0.17502182722091675, 0.11253980547189713, 0.10754243284463882, -0.2589999735355377, -0.2935234010219574, 0.4176081418991089, -0.22390031814575195, 0.09114881604909897, 0.028061704710125923, 0.27542608976364136, 0.2909401059150696, -0.2358400523662567, 0.46772775053977966, 0.5002925992012024, -0.10605141520500183, 0.3253600597381592, -0.21217438578605652, -0.2624131739139557, 0.12942031025886536, 0.16811411082744598, 0.1687634289264679, -0.10443657636642456, -0.22626414895057678, 0.21720248460769653, 0.2736007869243622, -0.16012558341026306, -0.13353294134140015, 0.014446902088820934, 0.0447469986975193, 0.04505479335784912, -0.2553611993789673, 0.08991997689008713, -0.5541226267814636, 0.2491142749786377, 0.10459452122449875, -0.07205704599618912, 0.29759034514427185, -0.3017670512199402, 0.2677595913410187, -0.08500605821609497, 0.02624450996518135, 0.24394617974758148, -0.06388575583696365, -0.11516024172306061, 0.207393616437912, -0.0009457123233005404, -0.204505056142807, -0.06943557411432266, -0.45423153042793274, 0.03350264951586723, -0.33972904086112976, -0.15070489048957825, 0.34225717186927795, 0.1017848551273346, -0.13040514290332794, 0.16107916831970215, -0.07115011662244797, -0.19750435650348663, 0.06391723453998566, 0.12129218876361847, -0.08295423537492752, -0.010952531360089779, -0.22086651623249054, 0.315073698759079, 0.2363263964653015, 0.330117404460907, 0.051627062261104584, -0.14597563445568085, 0.007590294815599918, -0.3100180923938751, -0.2521987557411194, 0.2785666882991791, -0.031787969172000885, 0.3897753357887268, 0.13793134689331055, -0.3446790277957916, -0.14783136546611786, 0.10223794728517532, 0.0575493723154068, 0.1419413685798645, 0.13987337052822113, 0.12660183012485504, 0.0635654479265213, 0.15172933042049408, -0.4028158187866211, 0.2708544135093689, 0.587833821773529, -0.11926949769258499, -0.06938808411359787, 0.23959268629550934, 0.059559449553489685, -0.169569194316864, -0.033815424889326096, -0.21775807440280914, 0.17166028916835785, 0.16191747784614563, 0.17905253171920776, -0.09990927577018738, 0.12429318577051163, -0.1298576146364212, 0.32239800691604614, 0.2120986431837082, 0.004855862352997065, 0.02219141460955143, 0.11641885340213776, 0.0722033903002739, 0.0016252308851107955, -0.09553908556699753, 0.13059388101100922, 0.3099614679813385, -0.12521980702877045, 0.004458172712475061, 0.19541873037815094, -0.10726458579301834, -0.1237383559346199, -0.026908662170171738, 0.015736518427729607, -0.31785720586776733, -0.13699845969676971, 0.24892355501651764, -0.11663743108510971, 0.03645458444952965, 0.1061018630862236, 0.3592687249183655, 0.12710292637348175, -0.3642115592956543, 0.1010778546333313, -0.11708793044090271, -0.2541911005973816, -0.016068607568740845, 0.15504109859466553, -0.009768555872142315, 0.18844722211360931, 0.08863133937120438, -0.11062977463006973, 0.01585698314011097, -0.13766874372959137, -0.05921164155006409, -0.4576968550682068, 0.07348833978176117, -0.10063379257917404, 0.33561697602272034, -0.22497789561748505, -0.4371751546859741, -0.002617304213345051, -0.06879514455795288, 0.25333353877067566, -0.26742854714393616, 0.00786916445940733, -0.05997281149029732, 0.16825158894062042, -0.2091829776763916, -0.39796963334083557, -0.2773376703262329, 0.16170021891593933, -0.08041811734437943, 0.1121000275015831, 0.3758202791213989, 0.08613166213035583, 0.06143563240766525, 0.19844798743724823, -0.11173908412456512, 0.06450677663087845, -0.3359973132610321, 0.2933344841003418, -0.11332085728645325, -0.2322179228067398, -0.2972748875617981, -0.056919049471616745, -0.054182473570108414, 0.35648342967033386, -0.5518574118614197, 0.17812027037143707, -0.36432188749313354, 0.19894224405288696, -0.005831270944327116, 0.562596321105957, -0.09436584264039993, -0.4863791763782501, -0.015356010757386684, 0.11361094564199448, 0.11119551956653595, 0.01324042771011591, 0.26537036895751953, 0.2140452116727829, 0.2785109281539917, 0.4317784309387207, 0.13376741111278534, 1.1682612895965576, 0.1721539944410324, -0.2398594468832016, -0.2142914980649948, -0.0006975637516006827, -0.026747679337859154, -0.34460920095443726, -0.2672063410282135, 0.3804668188095093, -0.06511107832193375, -0.1218409463763237, 0.2086469978094101, -0.16884472966194153, -0.29335811734199524, -0.03751904517412186, 0.12444552779197693, -0.11183733493089676, -0.28586816787719727, 0.42263609170913696, 0.09176433086395264, 0.24910284578800201, 0.13491281867027283, 0.08863739669322968, -0.49933484196662903, -0.3593021333217621, -0.05251369997859001, -0.21201279759407043, 0.4119943380355835, -0.1316409707069397, -0.2977100610733032, -0.136718288064003, -0.9755146503448486, 0.21768316626548767, 0.03096964955329895, 0.26737216114997864, 0.06919924169778824, -0.35081586241722107, 0.09280794858932495, 0.24251261353492737, 0.8538383841514587, -0.06931935995817184, -0.11682779341936111, -0.00463150255382061, -0.3046582043170929, -0.41526949405670166, 0.036352645605802536, -0.0984102338552475, 0.16871722042560577, 0.3588343560695648, 0.052106570452451706, -0.38088521361351013, -0.12106539309024811, 0.20531819760799408, 0.22320137917995453, -0.03707091137766838, -0.06275879591703415, -0.02380071021616459, -0.1611633151769638, 0.0037854891270399094, 0.19200028479099274, 0.10956167429685593, 0.19188372790813446, -0.15293779969215393, 0.07673919945955276, -0.11668557673692703, 0.3052941560745239, 0.16553878784179688, 0.12453101575374603, -0.06460067629814148, 0.6843847632408142, 0.2821181118488312, -0.004589542746543884, 0.027322912588715553, 0.21222242712974548, 0.031340599060058594, -0.22508229315280914, -0.07588495314121246, 0.0017630698857828975, 0.14972206950187683, 0.31837475299835205, 0.4158209562301636, 0.0518365204334259, -0.10185784846544266, -0.024469943717122078, 0.47591710090637207, -0.04457210749387741, 0.2652137279510498, 0.22571337223052979, 0.14802628755569458, -0.4993142783641815, -0.558079183101654, 0.682327926158905, 0.1741633415222168, 0.16442742943763733, 0.36661186814308167, -0.12836027145385742, -0.21077151596546173, 0.30205780267715454, 0.07867533713579178, 0.6478747129440308, -0.1737247109413147, 0.4172227084636688, 0.31465426087379456, 0.8153581023216248, 0.6308777332305908, -0.09869050979614258, 0.28938353061676025, -0.1265125721693039, -0.11746349185705185, 0.08058807998895645, -0.09408528357744217, -0.28301218152046204, 0.21022921800613403, 0.11972111463546753, 0.2607631981372833, -0.05776793882250786, 0.20221325755119324, -0.2976985573768616, 0.26786231994628906, 0.12155794352293015, -0.48882848024368286, -0.14901088178157806, 0.007863104343414307, -0.025055427104234695, 0.1897146850824356, -0.07386798411607742, 0.1231599897146225, 0.01159150805324316, 0.0521978922188282, -0.05868466943502426, -0.19830217957496643, -0.2293962836265564, 0.27103060483932495, -0.10330304503440857, -0.3641126751899719, -0.058112796396017075, 0.22462019324302673, 0.05541220307350159, 0.102974072098732, 0.05191380903124809, -0.13790911436080933, 0.0740506500005722, 0.06709831207990646, 0.24100007116794586, -0.27213409543037415, 0.40461716055870056, 0.07199373841285706, 0.09430870413780212, 0.09115256369113922, -0.015826962888240814, -0.26698434352874756, -0.36973607540130615, 0.10587810724973679, 0.1580180823802948, -0.095754474401474, -0.5968509912490845, 0.26843342185020447, -0.281364768743515, 0.05032213404774666, 0.0037911562249064445, -0.07319097220897675, -0.08497706800699234, 0.7211557030677795, -0.25734373927116394, -0.18432307243347168, 0.04964745417237282, 0.18478742241859436, 0.12497039139270782, -0.20624755322933197, 0.39218705892562866, 0.3405947983264923, -0.17576144635677338, 0.032253701239824295, 0.2664462924003601, 0.17982515692710876, -0.04687928035855293, 0.14887338876724243, 0.0724651888012886, 0.3175617754459381, 0.045093834400177, 0.43938592076301575, -0.14738954603672028, -0.14339156448841095, -0.18480516970157623, 0.05079716444015503, -0.3096584975719452, 0.2169213742017746, 0.17301294207572937, 0.244023859500885, 0.06642494350671768, 0.20085351169109344, 0.08331262320280075, 0.08566700667142868, -0.16937105357646942, 0.04683125764131546, 0.041539035737514496, 0.23223823308944702, -0.07826759666204453, 0.09800217300653458, 0.11464742571115494, 0.1879304051399231, -0.007133030332624912, 0.11725112795829773, -0.09326259046792984, -0.2555657923221588, 0.012203322723507881, 0.14957080781459808, 0.12009131908416748, -0.23211148381233215, 0.11481643468141556, -0.24946613609790802, -0.2574739456176758, -0.3281426727771759, 0.5115009546279907, 0.19161075353622437, -0.016907058656215668, -0.207760751247406, 0.06093166023492813, 0.13624265789985657, 0.09351956099271774, 0.23893947899341583, 0.011246171779930592, 0.13605064153671265, 0.2009705901145935, 0.19533498585224152, 0.09300737828016281, -0.0966629907488823, -0.2422022521495819, -0.09266684949398041, 0.21893957257270813, 0.04917639121413231, -0.05166232958436012, -0.25048530101776123, -0.30246400833129883, 0.07738897949457169, 0.19291473925113678, 0.3313831686973572, -0.11758769303560257, -0.2975836992263794, 0.2320123165845871, 0.09400396794080734, 0.061803627759218216, -0.024388832971453667, 0.18373632431030273, -0.06884092092514038, 0.1389097273349762, 0.32482588291168213, -0.0041174739599227905, 0.20212393999099731, -0.30897897481918335, -0.04328892379999161, 0.35522234439849854, -0.14687827229499817, 0.01964520663022995, 0.2772550880908966, 0.009076587855815887, -0.07087455689907074, 0.02986782416701317, 0.2787351906299591, 0.193820983171463, 0.1448669731616974, 0.3068631589412689, 0.3006328344345093, -0.013525543734431267, -0.019471144303679466, -0.1182338148355484, -0.4309398829936981, -0.21602801978588104, 0.21034136414527893, -0.23220476508140564, 0.4129004180431366, -0.09530714899301529, -0.0314263291656971, -0.18004001677036285, -0.2994450330734253, -0.07064275443553925, 0.2695069909095764, -0.16463030874729156, -0.19546979665756226, -0.2913828194141388, 0.05391138419508934, 0.3463343679904938, 0.3158676028251648, -0.129776269197464, -0.39055895805358887, -0.008900171145796776, 0.15376287698745728, 0.09233500808477402, -0.05727455019950867, 0.058533281087875366, -0.17113488912582397, 0.4078233242034912, 0.0008701111655682325, 0.03538454696536064, -0.23851841688156128, -0.10402364283800125, -0.35259196162223816, 0.18433980643749237, 0.2311057448387146, 0.24851766228675842, -0.1820407658815384, 0.25313347578048706, -0.002480249386280775, 0.1195366233587265, -0.09975925087928772, 0.11010700464248657, -0.03168913722038269, -0.08664709329605103, 0.35028907656669617, -0.002646174281835556, -0.05336015671491623, -0.0128748444840312, 0.10489083081483841, -0.10128022730350494, -0.20764432847499847, -0.10980451107025146, 0.22515204548835754, -0.13999003171920776, -0.12393912672996521, -0.0363583005964756, -0.39624735713005066, -0.10252021253108978, 0.40846630930900574, -0.3164229989051819, 0.052820686250925064, 0.061071380972862244, 0.046656977385282516, -0.5405780673027039, 0.7912293076515198, 0.2515077590942383, 0.31687602400779724, -0.4403223991394043, 0.19565288722515106, -0.24044804275035858, -0.21351799368858337, -0.2580782473087311, -0.020423196256160736, 0.09346549957990646, 0.3934060037136078, 0.016324901953339577, 0.25440776348114014, -0.31468334794044495, -0.2966713309288025, -0.30432629585266113, 0.2985682487487793, -0.1539192944765091, -0.03097720257937908, -0.5753908157348633, 0.22060328722000122, 0.03126541152596474, -0.3881160318851471, 0.3129315674304962, -0.16373059153556824, -0.12295018136501312, -0.26611432433128357, 0.1841341108083725, 0.3575292229652405, 0.20943918824195862, 0.21812951564788818, -0.005550707690417767, 0.18244165182113647, 0.1804746836423874, 0.03650360554456711, -0.15490257740020752, 0.19351163506507874, -0.21969114243984222, 0.1634928286075592, -0.006640993524342775, 0.3492398262023926, -0.0434846393764019, -0.21721677482128143, 0.012838914059102535, 0.03588167577981949, 0.21512028574943542, -0.1570640206336975, 0.19819095730781555, -0.2509368658065796, 0.05483773723244667, 0.053703851997852325, 0.42354705929756165, 0.6069497466087341, -0.21014779806137085, 0.11473634093999863, -0.3305140435695648, -0.25748327374458313, 0.4739018678665161, -0.7701926231384277, -0.36198750138282776, -0.3649834394454956, 0.003986834082752466, 0.08367177098989487, 0.21293026208877563, -0.18462544679641724, 0.034860122948884964, 0.2442561537027359, -0.1608203500509262, -0.3659534454345703, 0.27327945828437805, -0.14067916572093964, -0.09610885381698608, -0.08903724700212479, 0.183872252702713, -0.1871088147163391, -0.3062255084514618, -0.3018530011177063, -0.38976171612739563 ]
https://github.com/huggingface/datasets/issues/315
[Question] Best way to batch a large dataset?
Yes this is the current best solution. We should probably show it in the tutorial notebook. Note that this solution unfortunately doesn't allow to train on TPUs (yet). See #193
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets?
30
[Question] Best way to batch a large dataset? I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets? Yes this is the current best solution. We should probably show it in the tutorial notebook. Note that this solution unfortunately doesn't allow to train on TPUs (yet). See #193
[ -0.3098403513431549, -0.3549025058746338, 0.04007013142108917, -0.13144110143184662, 0.04347912594676018, 0.17069244384765625, 0.545406699180603, 0.394595742225647, 0.1853833794593811, 0.07585082948207855, -0.010930435732007027, 0.09057170152664185, -0.045824985951185226, 0.1636856347322464, 0.14648066461086273, -0.3626333773136139, 0.016457589343190193, -0.2653382420539856, -0.026075594127178192, -0.14478838443756104, -0.2456078827381134, -0.29631030559539795, -0.34992751479148865, -0.22726574540138245, -0.31489869952201843, -0.29205140471458435, 0.02210233360528946, -0.178660050034523, 0.21462543308734894, -0.049013011157512665, 0.049041539430618286, 0.021640749648213387, 0.30009543895721436, 0.444857656955719, -0.00011566013563424349, -0.13261905312538147, 0.0600118413567543, -0.044534094631671906, -0.008880354464054108, 0.3237420916557312, -0.061236657202243805, -0.38815274834632874, -0.09791859239339828, -0.4061885178089142, 0.11056124418973923, 0.19236427545547485, 0.19394253194332123, -0.047250375151634216, 0.13588596880435944, -0.032512836158275604, 0.06321760267019272, 0.37276214361190796, -0.02476559206843376, 0.17228858172893524, 0.028884364292025566, -0.0639725774526596, 0.011857914738357067, 0.06099189817905426, 0.27958452701568604, -0.06970088183879852, -0.0007683641742914915, 0.3284050226211548, -0.1674046516418457, -0.015942459926009178, 0.29255732893943787, 0.23139561712741852, 0.12011311948299408, -0.6053040027618408, 0.031975697726011276, 0.372427374124527, 0.2989347279071808, 0.0038550090976059437, -0.27515366673469543, -0.6016528606414795, -0.12167365849018097, -0.26009881496429443, -0.2543846368789673, 0.277985543012619, -0.22824351489543915, -0.17848554253578186, -0.2848556339740753, -0.060750652104616165, -0.11166255176067352, 0.15172748267650604, -0.1742449402809143, 0.18979787826538086, 0.1561433970928192, 0.25138360261917114, 0.18000845611095428, -0.25915783643722534, 0.07230823487043381, -0.2944978177547455, 0.3919678032398224, 0.2885427474975586, -0.5199078321456909, -0.161050483584404, 0.15255405008792877, -0.2357095628976822, 0.06207035481929779, -0.26955488324165344, -0.08921447396278381, 0.007106923498213291, 0.09507863968610764, 0.04642326384782791, 0.18401403725147247, 0.2864987552165985, -0.1267036497592926, 0.0481853112578392, 0.1040562093257904, -0.2625123858451843, -0.24212227761745453, 0.3590072989463806, -0.10837475210428238, -0.2902850806713104, 0.04752177372574806, -0.1952095776796341, -0.3582230806350708, 0.1385158896446228, -0.00881473533809185, 0.03123575635254383, 0.06801183521747589, -0.06761318445205688, -0.031125042587518692, 0.1281125247478485, -0.2842444181442261, 0.07877562195062637, -0.14889656007289886, -0.13956882059574127, -0.380586177110672, 0.16667644679546356, -0.1485891193151474, 0.01749839447438717, -0.0054788473062217236, -0.016314033418893814, 0.13558854162693024, -0.1396760195493698, 0.1104084923863411, -0.18178002536296844, 0.0023551075719296932, 0.2069328874349594, -0.1126754954457283, -0.23203782737255096, 0.135482519865036, 0.23468822240829468, 0.057993922382593155, 0.241053506731987, 0.031283188611269, 0.15585573017597198, -0.20943421125411987, 0.37266966700553894, -0.30990293622016907, -0.33958014845848083, 0.19431394338607788, 0.06684459745883942, 0.016657087951898575, -0.3149910569190979, -0.5945531129837036, 0.3981277048587799, 0.3210080564022064, 0.09307774156332016, -0.07706128060817719, -0.2863112986087799, -0.1548875868320465, -0.24354863166809082, 0.1875339150428772, 0.21212255954742432, -0.42634880542755127, 0.15767095983028412, 0.40174567699432373, 0.329196572303772, 0.3743078410625458, 0.614740788936615, -0.25484776496887207, 0.44109416007995605, 0.17502182722091675, 0.11253980547189713, 0.10754243284463882, -0.2589999735355377, -0.2935234010219574, 0.4176081418991089, -0.22390031814575195, 0.09114881604909897, 0.028061704710125923, 0.27542608976364136, 0.2909401059150696, -0.2358400523662567, 0.46772775053977966, 0.5002925992012024, -0.10605141520500183, 0.3253600597381592, -0.21217438578605652, -0.2624131739139557, 0.12942031025886536, 0.16811411082744598, 0.1687634289264679, -0.10443657636642456, -0.22626414895057678, 0.21720248460769653, 0.2736007869243622, -0.16012558341026306, -0.13353294134140015, 0.014446902088820934, 0.0447469986975193, 0.04505479335784912, -0.2553611993789673, 0.08991997689008713, -0.5541226267814636, 0.2491142749786377, 0.10459452122449875, -0.07205704599618912, 0.29759034514427185, -0.3017670512199402, 0.2677595913410187, -0.08500605821609497, 0.02624450996518135, 0.24394617974758148, -0.06388575583696365, -0.11516024172306061, 0.207393616437912, -0.0009457123233005404, -0.204505056142807, -0.06943557411432266, -0.45423153042793274, 0.03350264951586723, -0.33972904086112976, -0.15070489048957825, 0.34225717186927795, 0.1017848551273346, -0.13040514290332794, 0.16107916831970215, -0.07115011662244797, -0.19750435650348663, 0.06391723453998566, 0.12129218876361847, -0.08295423537492752, -0.010952531360089779, -0.22086651623249054, 0.315073698759079, 0.2363263964653015, 0.330117404460907, 0.051627062261104584, -0.14597563445568085, 0.007590294815599918, -0.3100180923938751, -0.2521987557411194, 0.2785666882991791, -0.031787969172000885, 0.3897753357887268, 0.13793134689331055, -0.3446790277957916, -0.14783136546611786, 0.10223794728517532, 0.0575493723154068, 0.1419413685798645, 0.13987337052822113, 0.12660183012485504, 0.0635654479265213, 0.15172933042049408, -0.4028158187866211, 0.2708544135093689, 0.587833821773529, -0.11926949769258499, -0.06938808411359787, 0.23959268629550934, 0.059559449553489685, -0.169569194316864, -0.033815424889326096, -0.21775807440280914, 0.17166028916835785, 0.16191747784614563, 0.17905253171920776, -0.09990927577018738, 0.12429318577051163, -0.1298576146364212, 0.32239800691604614, 0.2120986431837082, 0.004855862352997065, 0.02219141460955143, 0.11641885340213776, 0.0722033903002739, 0.0016252308851107955, -0.09553908556699753, 0.13059388101100922, 0.3099614679813385, -0.12521980702877045, 0.004458172712475061, 0.19541873037815094, -0.10726458579301834, -0.1237383559346199, -0.026908662170171738, 0.015736518427729607, -0.31785720586776733, -0.13699845969676971, 0.24892355501651764, -0.11663743108510971, 0.03645458444952965, 0.1061018630862236, 0.3592687249183655, 0.12710292637348175, -0.3642115592956543, 0.1010778546333313, -0.11708793044090271, -0.2541911005973816, -0.016068607568740845, 0.15504109859466553, -0.009768555872142315, 0.18844722211360931, 0.08863133937120438, -0.11062977463006973, 0.01585698314011097, -0.13766874372959137, -0.05921164155006409, -0.4576968550682068, 0.07348833978176117, -0.10063379257917404, 0.33561697602272034, -0.22497789561748505, -0.4371751546859741, -0.002617304213345051, -0.06879514455795288, 0.25333353877067566, -0.26742854714393616, 0.00786916445940733, -0.05997281149029732, 0.16825158894062042, -0.2091829776763916, -0.39796963334083557, -0.2773376703262329, 0.16170021891593933, -0.08041811734437943, 0.1121000275015831, 0.3758202791213989, 0.08613166213035583, 0.06143563240766525, 0.19844798743724823, -0.11173908412456512, 0.06450677663087845, -0.3359973132610321, 0.2933344841003418, -0.11332085728645325, -0.2322179228067398, -0.2972748875617981, -0.056919049471616745, -0.054182473570108414, 0.35648342967033386, -0.5518574118614197, 0.17812027037143707, -0.36432188749313354, 0.19894224405288696, -0.005831270944327116, 0.562596321105957, -0.09436584264039993, -0.4863791763782501, -0.015356010757386684, 0.11361094564199448, 0.11119551956653595, 0.01324042771011591, 0.26537036895751953, 0.2140452116727829, 0.2785109281539917, 0.4317784309387207, 0.13376741111278534, 1.1682612895965576, 0.1721539944410324, -0.2398594468832016, -0.2142914980649948, -0.0006975637516006827, -0.026747679337859154, -0.34460920095443726, -0.2672063410282135, 0.3804668188095093, -0.06511107832193375, -0.1218409463763237, 0.2086469978094101, -0.16884472966194153, -0.29335811734199524, -0.03751904517412186, 0.12444552779197693, -0.11183733493089676, -0.28586816787719727, 0.42263609170913696, 0.09176433086395264, 0.24910284578800201, 0.13491281867027283, 0.08863739669322968, -0.49933484196662903, -0.3593021333217621, -0.05251369997859001, -0.21201279759407043, 0.4119943380355835, -0.1316409707069397, -0.2977100610733032, -0.136718288064003, -0.9755146503448486, 0.21768316626548767, 0.03096964955329895, 0.26737216114997864, 0.06919924169778824, -0.35081586241722107, 0.09280794858932495, 0.24251261353492737, 0.8538383841514587, -0.06931935995817184, -0.11682779341936111, -0.00463150255382061, -0.3046582043170929, -0.41526949405670166, 0.036352645605802536, -0.0984102338552475, 0.16871722042560577, 0.3588343560695648, 0.052106570452451706, -0.38088521361351013, -0.12106539309024811, 0.20531819760799408, 0.22320137917995453, -0.03707091137766838, -0.06275879591703415, -0.02380071021616459, -0.1611633151769638, 0.0037854891270399094, 0.19200028479099274, 0.10956167429685593, 0.19188372790813446, -0.15293779969215393, 0.07673919945955276, -0.11668557673692703, 0.3052941560745239, 0.16553878784179688, 0.12453101575374603, -0.06460067629814148, 0.6843847632408142, 0.2821181118488312, -0.004589542746543884, 0.027322912588715553, 0.21222242712974548, 0.031340599060058594, -0.22508229315280914, -0.07588495314121246, 0.0017630698857828975, 0.14972206950187683, 0.31837475299835205, 0.4158209562301636, 0.0518365204334259, -0.10185784846544266, -0.024469943717122078, 0.47591710090637207, -0.04457210749387741, 0.2652137279510498, 0.22571337223052979, 0.14802628755569458, -0.4993142783641815, -0.558079183101654, 0.682327926158905, 0.1741633415222168, 0.16442742943763733, 0.36661186814308167, -0.12836027145385742, -0.21077151596546173, 0.30205780267715454, 0.07867533713579178, 0.6478747129440308, -0.1737247109413147, 0.4172227084636688, 0.31465426087379456, 0.8153581023216248, 0.6308777332305908, -0.09869050979614258, 0.28938353061676025, -0.1265125721693039, -0.11746349185705185, 0.08058807998895645, -0.09408528357744217, -0.28301218152046204, 0.21022921800613403, 0.11972111463546753, 0.2607631981372833, -0.05776793882250786, 0.20221325755119324, -0.2976985573768616, 0.26786231994628906, 0.12155794352293015, -0.48882848024368286, -0.14901088178157806, 0.007863104343414307, -0.025055427104234695, 0.1897146850824356, -0.07386798411607742, 0.1231599897146225, 0.01159150805324316, 0.0521978922188282, -0.05868466943502426, -0.19830217957496643, -0.2293962836265564, 0.27103060483932495, -0.10330304503440857, -0.3641126751899719, -0.058112796396017075, 0.22462019324302673, 0.05541220307350159, 0.102974072098732, 0.05191380903124809, -0.13790911436080933, 0.0740506500005722, 0.06709831207990646, 0.24100007116794586, -0.27213409543037415, 0.40461716055870056, 0.07199373841285706, 0.09430870413780212, 0.09115256369113922, -0.015826962888240814, -0.26698434352874756, -0.36973607540130615, 0.10587810724973679, 0.1580180823802948, -0.095754474401474, -0.5968509912490845, 0.26843342185020447, -0.281364768743515, 0.05032213404774666, 0.0037911562249064445, -0.07319097220897675, -0.08497706800699234, 0.7211557030677795, -0.25734373927116394, -0.18432307243347168, 0.04964745417237282, 0.18478742241859436, 0.12497039139270782, -0.20624755322933197, 0.39218705892562866, 0.3405947983264923, -0.17576144635677338, 0.032253701239824295, 0.2664462924003601, 0.17982515692710876, -0.04687928035855293, 0.14887338876724243, 0.0724651888012886, 0.3175617754459381, 0.045093834400177, 0.43938592076301575, -0.14738954603672028, -0.14339156448841095, -0.18480516970157623, 0.05079716444015503, -0.3096584975719452, 0.2169213742017746, 0.17301294207572937, 0.244023859500885, 0.06642494350671768, 0.20085351169109344, 0.08331262320280075, 0.08566700667142868, -0.16937105357646942, 0.04683125764131546, 0.041539035737514496, 0.23223823308944702, -0.07826759666204453, 0.09800217300653458, 0.11464742571115494, 0.1879304051399231, -0.007133030332624912, 0.11725112795829773, -0.09326259046792984, -0.2555657923221588, 0.012203322723507881, 0.14957080781459808, 0.12009131908416748, -0.23211148381233215, 0.11481643468141556, -0.24946613609790802, -0.2574739456176758, -0.3281426727771759, 0.5115009546279907, 0.19161075353622437, -0.016907058656215668, -0.207760751247406, 0.06093166023492813, 0.13624265789985657, 0.09351956099271774, 0.23893947899341583, 0.011246171779930592, 0.13605064153671265, 0.2009705901145935, 0.19533498585224152, 0.09300737828016281, -0.0966629907488823, -0.2422022521495819, -0.09266684949398041, 0.21893957257270813, 0.04917639121413231, -0.05166232958436012, -0.25048530101776123, -0.30246400833129883, 0.07738897949457169, 0.19291473925113678, 0.3313831686973572, -0.11758769303560257, -0.2975836992263794, 0.2320123165845871, 0.09400396794080734, 0.061803627759218216, -0.024388832971453667, 0.18373632431030273, -0.06884092092514038, 0.1389097273349762, 0.32482588291168213, -0.0041174739599227905, 0.20212393999099731, -0.30897897481918335, -0.04328892379999161, 0.35522234439849854, -0.14687827229499817, 0.01964520663022995, 0.2772550880908966, 0.009076587855815887, -0.07087455689907074, 0.02986782416701317, 0.2787351906299591, 0.193820983171463, 0.1448669731616974, 0.3068631589412689, 0.3006328344345093, -0.013525543734431267, -0.019471144303679466, -0.1182338148355484, -0.4309398829936981, -0.21602801978588104, 0.21034136414527893, -0.23220476508140564, 0.4129004180431366, -0.09530714899301529, -0.0314263291656971, -0.18004001677036285, -0.2994450330734253, -0.07064275443553925, 0.2695069909095764, -0.16463030874729156, -0.19546979665756226, -0.2913828194141388, 0.05391138419508934, 0.3463343679904938, 0.3158676028251648, -0.129776269197464, -0.39055895805358887, -0.008900171145796776, 0.15376287698745728, 0.09233500808477402, -0.05727455019950867, 0.058533281087875366, -0.17113488912582397, 0.4078233242034912, 0.0008701111655682325, 0.03538454696536064, -0.23851841688156128, -0.10402364283800125, -0.35259196162223816, 0.18433980643749237, 0.2311057448387146, 0.24851766228675842, -0.1820407658815384, 0.25313347578048706, -0.002480249386280775, 0.1195366233587265, -0.09975925087928772, 0.11010700464248657, -0.03168913722038269, -0.08664709329605103, 0.35028907656669617, -0.002646174281835556, -0.05336015671491623, -0.0128748444840312, 0.10489083081483841, -0.10128022730350494, -0.20764432847499847, -0.10980451107025146, 0.22515204548835754, -0.13999003171920776, -0.12393912672996521, -0.0363583005964756, -0.39624735713005066, -0.10252021253108978, 0.40846630930900574, -0.3164229989051819, 0.052820686250925064, 0.061071380972862244, 0.046656977385282516, -0.5405780673027039, 0.7912293076515198, 0.2515077590942383, 0.31687602400779724, -0.4403223991394043, 0.19565288722515106, -0.24044804275035858, -0.21351799368858337, -0.2580782473087311, -0.020423196256160736, 0.09346549957990646, 0.3934060037136078, 0.016324901953339577, 0.25440776348114014, -0.31468334794044495, -0.2966713309288025, -0.30432629585266113, 0.2985682487487793, -0.1539192944765091, -0.03097720257937908, -0.5753908157348633, 0.22060328722000122, 0.03126541152596474, -0.3881160318851471, 0.3129315674304962, -0.16373059153556824, -0.12295018136501312, -0.26611432433128357, 0.1841341108083725, 0.3575292229652405, 0.20943918824195862, 0.21812951564788818, -0.005550707690417767, 0.18244165182113647, 0.1804746836423874, 0.03650360554456711, -0.15490257740020752, 0.19351163506507874, -0.21969114243984222, 0.1634928286075592, -0.006640993524342775, 0.3492398262023926, -0.0434846393764019, -0.21721677482128143, 0.012838914059102535, 0.03588167577981949, 0.21512028574943542, -0.1570640206336975, 0.19819095730781555, -0.2509368658065796, 0.05483773723244667, 0.053703851997852325, 0.42354705929756165, 0.6069497466087341, -0.21014779806137085, 0.11473634093999863, -0.3305140435695648, -0.25748327374458313, 0.4739018678665161, -0.7701926231384277, -0.36198750138282776, -0.3649834394454956, 0.003986834082752466, 0.08367177098989487, 0.21293026208877563, -0.18462544679641724, 0.034860122948884964, 0.2442561537027359, -0.1608203500509262, -0.3659534454345703, 0.27327945828437805, -0.14067916572093964, -0.09610885381698608, -0.08903724700212479, 0.183872252702713, -0.1871088147163391, -0.3062255084514618, -0.3018530011177063, -0.38976171612739563 ]
https://github.com/huggingface/datasets/issues/315
[Question] Best way to batch a large dataset?
This approach still seems quite slow. When using TFRecords with a similar training loop, I get ~3.0-3.5 it/s on multi-node, multi-GPU training. I notice a pretty severe performance regression when scaling, with observed performance numbers. Since the allreduce step takes less than 100ms/it and I've achieved 80% scaling efficiency up to 64 GPUs, it must be the data pipeline. | Nodes | GPUs | Iterations/Second | | --- | --- | --- | | 1 | 2 | 2.01 | | 1 | 8 | 0.81 | | 2 | 16 | 0.37 | Here are performance metrics over 10k steps. The iteration speed appears to follow some sort of caching pattern. I would love to use `nlp` in my project, but a slowdown from 3.0 it/s to 0.3 it/s is too great to stomach. <img width="1361" alt="Screen Shot 2020-07-02 at 8 29 22 AM" src="https://user-images.githubusercontent.com/4564897/86378156-2f8d3900-bc3e-11ea-918b-c395c3df5377.png">
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets?
146
[Question] Best way to batch a large dataset? I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets? This approach still seems quite slow. When using TFRecords with a similar training loop, I get ~3.0-3.5 it/s on multi-node, multi-GPU training. I notice a pretty severe performance regression when scaling, with observed performance numbers. Since the allreduce step takes less than 100ms/it and I've achieved 80% scaling efficiency up to 64 GPUs, it must be the data pipeline. | Nodes | GPUs | Iterations/Second | | --- | --- | --- | | 1 | 2 | 2.01 | | 1 | 8 | 0.81 | | 2 | 16 | 0.37 | Here are performance metrics over 10k steps. The iteration speed appears to follow some sort of caching pattern. I would love to use `nlp` in my project, but a slowdown from 3.0 it/s to 0.3 it/s is too great to stomach. <img width="1361" alt="Screen Shot 2020-07-02 at 8 29 22 AM" src="https://user-images.githubusercontent.com/4564897/86378156-2f8d3900-bc3e-11ea-918b-c395c3df5377.png">
[ -0.3098403513431549, -0.3549025058746338, 0.04007013142108917, -0.13144110143184662, 0.04347912594676018, 0.17069244384765625, 0.545406699180603, 0.394595742225647, 0.1853833794593811, 0.07585082948207855, -0.010930435732007027, 0.09057170152664185, -0.045824985951185226, 0.1636856347322464, 0.14648066461086273, -0.3626333773136139, 0.016457589343190193, -0.2653382420539856, -0.026075594127178192, -0.14478838443756104, -0.2456078827381134, -0.29631030559539795, -0.34992751479148865, -0.22726574540138245, -0.31489869952201843, -0.29205140471458435, 0.02210233360528946, -0.178660050034523, 0.21462543308734894, -0.049013011157512665, 0.049041539430618286, 0.021640749648213387, 0.30009543895721436, 0.444857656955719, -0.00011566013563424349, -0.13261905312538147, 0.0600118413567543, -0.044534094631671906, -0.008880354464054108, 0.3237420916557312, -0.061236657202243805, -0.38815274834632874, -0.09791859239339828, -0.4061885178089142, 0.11056124418973923, 0.19236427545547485, 0.19394253194332123, -0.047250375151634216, 0.13588596880435944, -0.032512836158275604, 0.06321760267019272, 0.37276214361190796, -0.02476559206843376, 0.17228858172893524, 0.028884364292025566, -0.0639725774526596, 0.011857914738357067, 0.06099189817905426, 0.27958452701568604, -0.06970088183879852, -0.0007683641742914915, 0.3284050226211548, -0.1674046516418457, -0.015942459926009178, 0.29255732893943787, 0.23139561712741852, 0.12011311948299408, -0.6053040027618408, 0.031975697726011276, 0.372427374124527, 0.2989347279071808, 0.0038550090976059437, -0.27515366673469543, -0.6016528606414795, -0.12167365849018097, -0.26009881496429443, -0.2543846368789673, 0.277985543012619, -0.22824351489543915, -0.17848554253578186, -0.2848556339740753, -0.060750652104616165, -0.11166255176067352, 0.15172748267650604, -0.1742449402809143, 0.18979787826538086, 0.1561433970928192, 0.25138360261917114, 0.18000845611095428, -0.25915783643722534, 0.07230823487043381, -0.2944978177547455, 0.3919678032398224, 0.2885427474975586, -0.5199078321456909, -0.161050483584404, 0.15255405008792877, -0.2357095628976822, 0.06207035481929779, -0.26955488324165344, -0.08921447396278381, 0.007106923498213291, 0.09507863968610764, 0.04642326384782791, 0.18401403725147247, 0.2864987552165985, -0.1267036497592926, 0.0481853112578392, 0.1040562093257904, -0.2625123858451843, -0.24212227761745453, 0.3590072989463806, -0.10837475210428238, -0.2902850806713104, 0.04752177372574806, -0.1952095776796341, -0.3582230806350708, 0.1385158896446228, -0.00881473533809185, 0.03123575635254383, 0.06801183521747589, -0.06761318445205688, -0.031125042587518692, 0.1281125247478485, -0.2842444181442261, 0.07877562195062637, -0.14889656007289886, -0.13956882059574127, -0.380586177110672, 0.16667644679546356, -0.1485891193151474, 0.01749839447438717, -0.0054788473062217236, -0.016314033418893814, 0.13558854162693024, -0.1396760195493698, 0.1104084923863411, -0.18178002536296844, 0.0023551075719296932, 0.2069328874349594, -0.1126754954457283, -0.23203782737255096, 0.135482519865036, 0.23468822240829468, 0.057993922382593155, 0.241053506731987, 0.031283188611269, 0.15585573017597198, -0.20943421125411987, 0.37266966700553894, -0.30990293622016907, -0.33958014845848083, 0.19431394338607788, 0.06684459745883942, 0.016657087951898575, -0.3149910569190979, -0.5945531129837036, 0.3981277048587799, 0.3210080564022064, 0.09307774156332016, -0.07706128060817719, -0.2863112986087799, -0.1548875868320465, -0.24354863166809082, 0.1875339150428772, 0.21212255954742432, -0.42634880542755127, 0.15767095983028412, 0.40174567699432373, 0.329196572303772, 0.3743078410625458, 0.614740788936615, -0.25484776496887207, 0.44109416007995605, 0.17502182722091675, 0.11253980547189713, 0.10754243284463882, -0.2589999735355377, -0.2935234010219574, 0.4176081418991089, -0.22390031814575195, 0.09114881604909897, 0.028061704710125923, 0.27542608976364136, 0.2909401059150696, -0.2358400523662567, 0.46772775053977966, 0.5002925992012024, -0.10605141520500183, 0.3253600597381592, -0.21217438578605652, -0.2624131739139557, 0.12942031025886536, 0.16811411082744598, 0.1687634289264679, -0.10443657636642456, -0.22626414895057678, 0.21720248460769653, 0.2736007869243622, -0.16012558341026306, -0.13353294134140015, 0.014446902088820934, 0.0447469986975193, 0.04505479335784912, -0.2553611993789673, 0.08991997689008713, -0.5541226267814636, 0.2491142749786377, 0.10459452122449875, -0.07205704599618912, 0.29759034514427185, -0.3017670512199402, 0.2677595913410187, -0.08500605821609497, 0.02624450996518135, 0.24394617974758148, -0.06388575583696365, -0.11516024172306061, 0.207393616437912, -0.0009457123233005404, -0.204505056142807, -0.06943557411432266, -0.45423153042793274, 0.03350264951586723, -0.33972904086112976, -0.15070489048957825, 0.34225717186927795, 0.1017848551273346, -0.13040514290332794, 0.16107916831970215, -0.07115011662244797, -0.19750435650348663, 0.06391723453998566, 0.12129218876361847, -0.08295423537492752, -0.010952531360089779, -0.22086651623249054, 0.315073698759079, 0.2363263964653015, 0.330117404460907, 0.051627062261104584, -0.14597563445568085, 0.007590294815599918, -0.3100180923938751, -0.2521987557411194, 0.2785666882991791, -0.031787969172000885, 0.3897753357887268, 0.13793134689331055, -0.3446790277957916, -0.14783136546611786, 0.10223794728517532, 0.0575493723154068, 0.1419413685798645, 0.13987337052822113, 0.12660183012485504, 0.0635654479265213, 0.15172933042049408, -0.4028158187866211, 0.2708544135093689, 0.587833821773529, -0.11926949769258499, -0.06938808411359787, 0.23959268629550934, 0.059559449553489685, -0.169569194316864, -0.033815424889326096, -0.21775807440280914, 0.17166028916835785, 0.16191747784614563, 0.17905253171920776, -0.09990927577018738, 0.12429318577051163, -0.1298576146364212, 0.32239800691604614, 0.2120986431837082, 0.004855862352997065, 0.02219141460955143, 0.11641885340213776, 0.0722033903002739, 0.0016252308851107955, -0.09553908556699753, 0.13059388101100922, 0.3099614679813385, -0.12521980702877045, 0.004458172712475061, 0.19541873037815094, -0.10726458579301834, -0.1237383559346199, -0.026908662170171738, 0.015736518427729607, -0.31785720586776733, -0.13699845969676971, 0.24892355501651764, -0.11663743108510971, 0.03645458444952965, 0.1061018630862236, 0.3592687249183655, 0.12710292637348175, -0.3642115592956543, 0.1010778546333313, -0.11708793044090271, -0.2541911005973816, -0.016068607568740845, 0.15504109859466553, -0.009768555872142315, 0.18844722211360931, 0.08863133937120438, -0.11062977463006973, 0.01585698314011097, -0.13766874372959137, -0.05921164155006409, -0.4576968550682068, 0.07348833978176117, -0.10063379257917404, 0.33561697602272034, -0.22497789561748505, -0.4371751546859741, -0.002617304213345051, -0.06879514455795288, 0.25333353877067566, -0.26742854714393616, 0.00786916445940733, -0.05997281149029732, 0.16825158894062042, -0.2091829776763916, -0.39796963334083557, -0.2773376703262329, 0.16170021891593933, -0.08041811734437943, 0.1121000275015831, 0.3758202791213989, 0.08613166213035583, 0.06143563240766525, 0.19844798743724823, -0.11173908412456512, 0.06450677663087845, -0.3359973132610321, 0.2933344841003418, -0.11332085728645325, -0.2322179228067398, -0.2972748875617981, -0.056919049471616745, -0.054182473570108414, 0.35648342967033386, -0.5518574118614197, 0.17812027037143707, -0.36432188749313354, 0.19894224405288696, -0.005831270944327116, 0.562596321105957, -0.09436584264039993, -0.4863791763782501, -0.015356010757386684, 0.11361094564199448, 0.11119551956653595, 0.01324042771011591, 0.26537036895751953, 0.2140452116727829, 0.2785109281539917, 0.4317784309387207, 0.13376741111278534, 1.1682612895965576, 0.1721539944410324, -0.2398594468832016, -0.2142914980649948, -0.0006975637516006827, -0.026747679337859154, -0.34460920095443726, -0.2672063410282135, 0.3804668188095093, -0.06511107832193375, -0.1218409463763237, 0.2086469978094101, -0.16884472966194153, -0.29335811734199524, -0.03751904517412186, 0.12444552779197693, -0.11183733493089676, -0.28586816787719727, 0.42263609170913696, 0.09176433086395264, 0.24910284578800201, 0.13491281867027283, 0.08863739669322968, -0.49933484196662903, -0.3593021333217621, -0.05251369997859001, -0.21201279759407043, 0.4119943380355835, -0.1316409707069397, -0.2977100610733032, -0.136718288064003, -0.9755146503448486, 0.21768316626548767, 0.03096964955329895, 0.26737216114997864, 0.06919924169778824, -0.35081586241722107, 0.09280794858932495, 0.24251261353492737, 0.8538383841514587, -0.06931935995817184, -0.11682779341936111, -0.00463150255382061, -0.3046582043170929, -0.41526949405670166, 0.036352645605802536, -0.0984102338552475, 0.16871722042560577, 0.3588343560695648, 0.052106570452451706, -0.38088521361351013, -0.12106539309024811, 0.20531819760799408, 0.22320137917995453, -0.03707091137766838, -0.06275879591703415, -0.02380071021616459, -0.1611633151769638, 0.0037854891270399094, 0.19200028479099274, 0.10956167429685593, 0.19188372790813446, -0.15293779969215393, 0.07673919945955276, -0.11668557673692703, 0.3052941560745239, 0.16553878784179688, 0.12453101575374603, -0.06460067629814148, 0.6843847632408142, 0.2821181118488312, -0.004589542746543884, 0.027322912588715553, 0.21222242712974548, 0.031340599060058594, -0.22508229315280914, -0.07588495314121246, 0.0017630698857828975, 0.14972206950187683, 0.31837475299835205, 0.4158209562301636, 0.0518365204334259, -0.10185784846544266, -0.024469943717122078, 0.47591710090637207, -0.04457210749387741, 0.2652137279510498, 0.22571337223052979, 0.14802628755569458, -0.4993142783641815, -0.558079183101654, 0.682327926158905, 0.1741633415222168, 0.16442742943763733, 0.36661186814308167, -0.12836027145385742, -0.21077151596546173, 0.30205780267715454, 0.07867533713579178, 0.6478747129440308, -0.1737247109413147, 0.4172227084636688, 0.31465426087379456, 0.8153581023216248, 0.6308777332305908, -0.09869050979614258, 0.28938353061676025, -0.1265125721693039, -0.11746349185705185, 0.08058807998895645, -0.09408528357744217, -0.28301218152046204, 0.21022921800613403, 0.11972111463546753, 0.2607631981372833, -0.05776793882250786, 0.20221325755119324, -0.2976985573768616, 0.26786231994628906, 0.12155794352293015, -0.48882848024368286, -0.14901088178157806, 0.007863104343414307, -0.025055427104234695, 0.1897146850824356, -0.07386798411607742, 0.1231599897146225, 0.01159150805324316, 0.0521978922188282, -0.05868466943502426, -0.19830217957496643, -0.2293962836265564, 0.27103060483932495, -0.10330304503440857, -0.3641126751899719, -0.058112796396017075, 0.22462019324302673, 0.05541220307350159, 0.102974072098732, 0.05191380903124809, -0.13790911436080933, 0.0740506500005722, 0.06709831207990646, 0.24100007116794586, -0.27213409543037415, 0.40461716055870056, 0.07199373841285706, 0.09430870413780212, 0.09115256369113922, -0.015826962888240814, -0.26698434352874756, -0.36973607540130615, 0.10587810724973679, 0.1580180823802948, -0.095754474401474, -0.5968509912490845, 0.26843342185020447, -0.281364768743515, 0.05032213404774666, 0.0037911562249064445, -0.07319097220897675, -0.08497706800699234, 0.7211557030677795, -0.25734373927116394, -0.18432307243347168, 0.04964745417237282, 0.18478742241859436, 0.12497039139270782, -0.20624755322933197, 0.39218705892562866, 0.3405947983264923, -0.17576144635677338, 0.032253701239824295, 0.2664462924003601, 0.17982515692710876, -0.04687928035855293, 0.14887338876724243, 0.0724651888012886, 0.3175617754459381, 0.045093834400177, 0.43938592076301575, -0.14738954603672028, -0.14339156448841095, -0.18480516970157623, 0.05079716444015503, -0.3096584975719452, 0.2169213742017746, 0.17301294207572937, 0.244023859500885, 0.06642494350671768, 0.20085351169109344, 0.08331262320280075, 0.08566700667142868, -0.16937105357646942, 0.04683125764131546, 0.041539035737514496, 0.23223823308944702, -0.07826759666204453, 0.09800217300653458, 0.11464742571115494, 0.1879304051399231, -0.007133030332624912, 0.11725112795829773, -0.09326259046792984, -0.2555657923221588, 0.012203322723507881, 0.14957080781459808, 0.12009131908416748, -0.23211148381233215, 0.11481643468141556, -0.24946613609790802, -0.2574739456176758, -0.3281426727771759, 0.5115009546279907, 0.19161075353622437, -0.016907058656215668, -0.207760751247406, 0.06093166023492813, 0.13624265789985657, 0.09351956099271774, 0.23893947899341583, 0.011246171779930592, 0.13605064153671265, 0.2009705901145935, 0.19533498585224152, 0.09300737828016281, -0.0966629907488823, -0.2422022521495819, -0.09266684949398041, 0.21893957257270813, 0.04917639121413231, -0.05166232958436012, -0.25048530101776123, -0.30246400833129883, 0.07738897949457169, 0.19291473925113678, 0.3313831686973572, -0.11758769303560257, -0.2975836992263794, 0.2320123165845871, 0.09400396794080734, 0.061803627759218216, -0.024388832971453667, 0.18373632431030273, -0.06884092092514038, 0.1389097273349762, 0.32482588291168213, -0.0041174739599227905, 0.20212393999099731, -0.30897897481918335, -0.04328892379999161, 0.35522234439849854, -0.14687827229499817, 0.01964520663022995, 0.2772550880908966, 0.009076587855815887, -0.07087455689907074, 0.02986782416701317, 0.2787351906299591, 0.193820983171463, 0.1448669731616974, 0.3068631589412689, 0.3006328344345093, -0.013525543734431267, -0.019471144303679466, -0.1182338148355484, -0.4309398829936981, -0.21602801978588104, 0.21034136414527893, -0.23220476508140564, 0.4129004180431366, -0.09530714899301529, -0.0314263291656971, -0.18004001677036285, -0.2994450330734253, -0.07064275443553925, 0.2695069909095764, -0.16463030874729156, -0.19546979665756226, -0.2913828194141388, 0.05391138419508934, 0.3463343679904938, 0.3158676028251648, -0.129776269197464, -0.39055895805358887, -0.008900171145796776, 0.15376287698745728, 0.09233500808477402, -0.05727455019950867, 0.058533281087875366, -0.17113488912582397, 0.4078233242034912, 0.0008701111655682325, 0.03538454696536064, -0.23851841688156128, -0.10402364283800125, -0.35259196162223816, 0.18433980643749237, 0.2311057448387146, 0.24851766228675842, -0.1820407658815384, 0.25313347578048706, -0.002480249386280775, 0.1195366233587265, -0.09975925087928772, 0.11010700464248657, -0.03168913722038269, -0.08664709329605103, 0.35028907656669617, -0.002646174281835556, -0.05336015671491623, -0.0128748444840312, 0.10489083081483841, -0.10128022730350494, -0.20764432847499847, -0.10980451107025146, 0.22515204548835754, -0.13999003171920776, -0.12393912672996521, -0.0363583005964756, -0.39624735713005066, -0.10252021253108978, 0.40846630930900574, -0.3164229989051819, 0.052820686250925064, 0.061071380972862244, 0.046656977385282516, -0.5405780673027039, 0.7912293076515198, 0.2515077590942383, 0.31687602400779724, -0.4403223991394043, 0.19565288722515106, -0.24044804275035858, -0.21351799368858337, -0.2580782473087311, -0.020423196256160736, 0.09346549957990646, 0.3934060037136078, 0.016324901953339577, 0.25440776348114014, -0.31468334794044495, -0.2966713309288025, -0.30432629585266113, 0.2985682487487793, -0.1539192944765091, -0.03097720257937908, -0.5753908157348633, 0.22060328722000122, 0.03126541152596474, -0.3881160318851471, 0.3129315674304962, -0.16373059153556824, -0.12295018136501312, -0.26611432433128357, 0.1841341108083725, 0.3575292229652405, 0.20943918824195862, 0.21812951564788818, -0.005550707690417767, 0.18244165182113647, 0.1804746836423874, 0.03650360554456711, -0.15490257740020752, 0.19351163506507874, -0.21969114243984222, 0.1634928286075592, -0.006640993524342775, 0.3492398262023926, -0.0434846393764019, -0.21721677482128143, 0.012838914059102535, 0.03588167577981949, 0.21512028574943542, -0.1570640206336975, 0.19819095730781555, -0.2509368658065796, 0.05483773723244667, 0.053703851997852325, 0.42354705929756165, 0.6069497466087341, -0.21014779806137085, 0.11473634093999863, -0.3305140435695648, -0.25748327374458313, 0.4739018678665161, -0.7701926231384277, -0.36198750138282776, -0.3649834394454956, 0.003986834082752466, 0.08367177098989487, 0.21293026208877563, -0.18462544679641724, 0.034860122948884964, 0.2442561537027359, -0.1608203500509262, -0.3659534454345703, 0.27327945828437805, -0.14067916572093964, -0.09610885381698608, -0.08903724700212479, 0.183872252702713, -0.1871088147163391, -0.3062255084514618, -0.3018530011177063, -0.38976171612739563 ]
https://github.com/huggingface/datasets/issues/315
[Question] Best way to batch a large dataset?
An interesting alternative to investigate here would be to use the tf.io library which has some support for Arrow to TF conversion: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowDataset There are quite a few types supported, including lists so if the unsupported columns are dropped then we could maybe have a zero-copy mapping from Arrow to TensorFlow, including tokenized inputs and 1D tensors like the ones we mostly use in NLP: https://github.com/tensorflow/io/blob/322b3170c43ecac5c6af9e39dbd18fd747913e5a/tensorflow_io/arrow/python/ops/arrow_dataset_ops.py#L44-L72 Here is an introduction on Arrow to TF using tf.io: https://medium.com/tensorflow/tensorflow-with-apache-arrow-datasets-cdbcfe80a59f
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets?
77
[Question] Best way to batch a large dataset? I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets? An interesting alternative to investigate here would be to use the tf.io library which has some support for Arrow to TF conversion: https://www.tensorflow.org/io/api_docs/python/tfio/arrow/ArrowDataset There are quite a few types supported, including lists so if the unsupported columns are dropped then we could maybe have a zero-copy mapping from Arrow to TensorFlow, including tokenized inputs and 1D tensors like the ones we mostly use in NLP: https://github.com/tensorflow/io/blob/322b3170c43ecac5c6af9e39dbd18fd747913e5a/tensorflow_io/arrow/python/ops/arrow_dataset_ops.py#L44-L72 Here is an introduction on Arrow to TF using tf.io: https://medium.com/tensorflow/tensorflow-with-apache-arrow-datasets-cdbcfe80a59f
[ -0.3098403513431549, -0.3549025058746338, 0.04007013142108917, -0.13144110143184662, 0.04347912594676018, 0.17069244384765625, 0.545406699180603, 0.394595742225647, 0.1853833794593811, 0.07585082948207855, -0.010930435732007027, 0.09057170152664185, -0.045824985951185226, 0.1636856347322464, 0.14648066461086273, -0.3626333773136139, 0.016457589343190193, -0.2653382420539856, -0.026075594127178192, -0.14478838443756104, -0.2456078827381134, -0.29631030559539795, -0.34992751479148865, -0.22726574540138245, -0.31489869952201843, -0.29205140471458435, 0.02210233360528946, -0.178660050034523, 0.21462543308734894, -0.049013011157512665, 0.049041539430618286, 0.021640749648213387, 0.30009543895721436, 0.444857656955719, -0.00011566013563424349, -0.13261905312538147, 0.0600118413567543, -0.044534094631671906, -0.008880354464054108, 0.3237420916557312, -0.061236657202243805, -0.38815274834632874, -0.09791859239339828, -0.4061885178089142, 0.11056124418973923, 0.19236427545547485, 0.19394253194332123, -0.047250375151634216, 0.13588596880435944, -0.032512836158275604, 0.06321760267019272, 0.37276214361190796, -0.02476559206843376, 0.17228858172893524, 0.028884364292025566, -0.0639725774526596, 0.011857914738357067, 0.06099189817905426, 0.27958452701568604, -0.06970088183879852, -0.0007683641742914915, 0.3284050226211548, -0.1674046516418457, -0.015942459926009178, 0.29255732893943787, 0.23139561712741852, 0.12011311948299408, -0.6053040027618408, 0.031975697726011276, 0.372427374124527, 0.2989347279071808, 0.0038550090976059437, -0.27515366673469543, -0.6016528606414795, -0.12167365849018097, -0.26009881496429443, -0.2543846368789673, 0.277985543012619, -0.22824351489543915, -0.17848554253578186, -0.2848556339740753, -0.060750652104616165, -0.11166255176067352, 0.15172748267650604, -0.1742449402809143, 0.18979787826538086, 0.1561433970928192, 0.25138360261917114, 0.18000845611095428, -0.25915783643722534, 0.07230823487043381, -0.2944978177547455, 0.3919678032398224, 0.2885427474975586, -0.5199078321456909, -0.161050483584404, 0.15255405008792877, -0.2357095628976822, 0.06207035481929779, -0.26955488324165344, -0.08921447396278381, 0.007106923498213291, 0.09507863968610764, 0.04642326384782791, 0.18401403725147247, 0.2864987552165985, -0.1267036497592926, 0.0481853112578392, 0.1040562093257904, -0.2625123858451843, -0.24212227761745453, 0.3590072989463806, -0.10837475210428238, -0.2902850806713104, 0.04752177372574806, -0.1952095776796341, -0.3582230806350708, 0.1385158896446228, -0.00881473533809185, 0.03123575635254383, 0.06801183521747589, -0.06761318445205688, -0.031125042587518692, 0.1281125247478485, -0.2842444181442261, 0.07877562195062637, -0.14889656007289886, -0.13956882059574127, -0.380586177110672, 0.16667644679546356, -0.1485891193151474, 0.01749839447438717, -0.0054788473062217236, -0.016314033418893814, 0.13558854162693024, -0.1396760195493698, 0.1104084923863411, -0.18178002536296844, 0.0023551075719296932, 0.2069328874349594, -0.1126754954457283, -0.23203782737255096, 0.135482519865036, 0.23468822240829468, 0.057993922382593155, 0.241053506731987, 0.031283188611269, 0.15585573017597198, -0.20943421125411987, 0.37266966700553894, -0.30990293622016907, -0.33958014845848083, 0.19431394338607788, 0.06684459745883942, 0.016657087951898575, -0.3149910569190979, -0.5945531129837036, 0.3981277048587799, 0.3210080564022064, 0.09307774156332016, -0.07706128060817719, -0.2863112986087799, -0.1548875868320465, -0.24354863166809082, 0.1875339150428772, 0.21212255954742432, -0.42634880542755127, 0.15767095983028412, 0.40174567699432373, 0.329196572303772, 0.3743078410625458, 0.614740788936615, -0.25484776496887207, 0.44109416007995605, 0.17502182722091675, 0.11253980547189713, 0.10754243284463882, -0.2589999735355377, -0.2935234010219574, 0.4176081418991089, -0.22390031814575195, 0.09114881604909897, 0.028061704710125923, 0.27542608976364136, 0.2909401059150696, -0.2358400523662567, 0.46772775053977966, 0.5002925992012024, -0.10605141520500183, 0.3253600597381592, -0.21217438578605652, -0.2624131739139557, 0.12942031025886536, 0.16811411082744598, 0.1687634289264679, -0.10443657636642456, -0.22626414895057678, 0.21720248460769653, 0.2736007869243622, -0.16012558341026306, -0.13353294134140015, 0.014446902088820934, 0.0447469986975193, 0.04505479335784912, -0.2553611993789673, 0.08991997689008713, -0.5541226267814636, 0.2491142749786377, 0.10459452122449875, -0.07205704599618912, 0.29759034514427185, -0.3017670512199402, 0.2677595913410187, -0.08500605821609497, 0.02624450996518135, 0.24394617974758148, -0.06388575583696365, -0.11516024172306061, 0.207393616437912, -0.0009457123233005404, -0.204505056142807, -0.06943557411432266, -0.45423153042793274, 0.03350264951586723, -0.33972904086112976, -0.15070489048957825, 0.34225717186927795, 0.1017848551273346, -0.13040514290332794, 0.16107916831970215, -0.07115011662244797, -0.19750435650348663, 0.06391723453998566, 0.12129218876361847, -0.08295423537492752, -0.010952531360089779, -0.22086651623249054, 0.315073698759079, 0.2363263964653015, 0.330117404460907, 0.051627062261104584, -0.14597563445568085, 0.007590294815599918, -0.3100180923938751, -0.2521987557411194, 0.2785666882991791, -0.031787969172000885, 0.3897753357887268, 0.13793134689331055, -0.3446790277957916, -0.14783136546611786, 0.10223794728517532, 0.0575493723154068, 0.1419413685798645, 0.13987337052822113, 0.12660183012485504, 0.0635654479265213, 0.15172933042049408, -0.4028158187866211, 0.2708544135093689, 0.587833821773529, -0.11926949769258499, -0.06938808411359787, 0.23959268629550934, 0.059559449553489685, -0.169569194316864, -0.033815424889326096, -0.21775807440280914, 0.17166028916835785, 0.16191747784614563, 0.17905253171920776, -0.09990927577018738, 0.12429318577051163, -0.1298576146364212, 0.32239800691604614, 0.2120986431837082, 0.004855862352997065, 0.02219141460955143, 0.11641885340213776, 0.0722033903002739, 0.0016252308851107955, -0.09553908556699753, 0.13059388101100922, 0.3099614679813385, -0.12521980702877045, 0.004458172712475061, 0.19541873037815094, -0.10726458579301834, -0.1237383559346199, -0.026908662170171738, 0.015736518427729607, -0.31785720586776733, -0.13699845969676971, 0.24892355501651764, -0.11663743108510971, 0.03645458444952965, 0.1061018630862236, 0.3592687249183655, 0.12710292637348175, -0.3642115592956543, 0.1010778546333313, -0.11708793044090271, -0.2541911005973816, -0.016068607568740845, 0.15504109859466553, -0.009768555872142315, 0.18844722211360931, 0.08863133937120438, -0.11062977463006973, 0.01585698314011097, -0.13766874372959137, -0.05921164155006409, -0.4576968550682068, 0.07348833978176117, -0.10063379257917404, 0.33561697602272034, -0.22497789561748505, -0.4371751546859741, -0.002617304213345051, -0.06879514455795288, 0.25333353877067566, -0.26742854714393616, 0.00786916445940733, -0.05997281149029732, 0.16825158894062042, -0.2091829776763916, -0.39796963334083557, -0.2773376703262329, 0.16170021891593933, -0.08041811734437943, 0.1121000275015831, 0.3758202791213989, 0.08613166213035583, 0.06143563240766525, 0.19844798743724823, -0.11173908412456512, 0.06450677663087845, -0.3359973132610321, 0.2933344841003418, -0.11332085728645325, -0.2322179228067398, -0.2972748875617981, -0.056919049471616745, -0.054182473570108414, 0.35648342967033386, -0.5518574118614197, 0.17812027037143707, -0.36432188749313354, 0.19894224405288696, -0.005831270944327116, 0.562596321105957, -0.09436584264039993, -0.4863791763782501, -0.015356010757386684, 0.11361094564199448, 0.11119551956653595, 0.01324042771011591, 0.26537036895751953, 0.2140452116727829, 0.2785109281539917, 0.4317784309387207, 0.13376741111278534, 1.1682612895965576, 0.1721539944410324, -0.2398594468832016, -0.2142914980649948, -0.0006975637516006827, -0.026747679337859154, -0.34460920095443726, -0.2672063410282135, 0.3804668188095093, -0.06511107832193375, -0.1218409463763237, 0.2086469978094101, -0.16884472966194153, -0.29335811734199524, -0.03751904517412186, 0.12444552779197693, -0.11183733493089676, -0.28586816787719727, 0.42263609170913696, 0.09176433086395264, 0.24910284578800201, 0.13491281867027283, 0.08863739669322968, -0.49933484196662903, -0.3593021333217621, -0.05251369997859001, -0.21201279759407043, 0.4119943380355835, -0.1316409707069397, -0.2977100610733032, -0.136718288064003, -0.9755146503448486, 0.21768316626548767, 0.03096964955329895, 0.26737216114997864, 0.06919924169778824, -0.35081586241722107, 0.09280794858932495, 0.24251261353492737, 0.8538383841514587, -0.06931935995817184, -0.11682779341936111, -0.00463150255382061, -0.3046582043170929, -0.41526949405670166, 0.036352645605802536, -0.0984102338552475, 0.16871722042560577, 0.3588343560695648, 0.052106570452451706, -0.38088521361351013, -0.12106539309024811, 0.20531819760799408, 0.22320137917995453, -0.03707091137766838, -0.06275879591703415, -0.02380071021616459, -0.1611633151769638, 0.0037854891270399094, 0.19200028479099274, 0.10956167429685593, 0.19188372790813446, -0.15293779969215393, 0.07673919945955276, -0.11668557673692703, 0.3052941560745239, 0.16553878784179688, 0.12453101575374603, -0.06460067629814148, 0.6843847632408142, 0.2821181118488312, -0.004589542746543884, 0.027322912588715553, 0.21222242712974548, 0.031340599060058594, -0.22508229315280914, -0.07588495314121246, 0.0017630698857828975, 0.14972206950187683, 0.31837475299835205, 0.4158209562301636, 0.0518365204334259, -0.10185784846544266, -0.024469943717122078, 0.47591710090637207, -0.04457210749387741, 0.2652137279510498, 0.22571337223052979, 0.14802628755569458, -0.4993142783641815, -0.558079183101654, 0.682327926158905, 0.1741633415222168, 0.16442742943763733, 0.36661186814308167, -0.12836027145385742, -0.21077151596546173, 0.30205780267715454, 0.07867533713579178, 0.6478747129440308, -0.1737247109413147, 0.4172227084636688, 0.31465426087379456, 0.8153581023216248, 0.6308777332305908, -0.09869050979614258, 0.28938353061676025, -0.1265125721693039, -0.11746349185705185, 0.08058807998895645, -0.09408528357744217, -0.28301218152046204, 0.21022921800613403, 0.11972111463546753, 0.2607631981372833, -0.05776793882250786, 0.20221325755119324, -0.2976985573768616, 0.26786231994628906, 0.12155794352293015, -0.48882848024368286, -0.14901088178157806, 0.007863104343414307, -0.025055427104234695, 0.1897146850824356, -0.07386798411607742, 0.1231599897146225, 0.01159150805324316, 0.0521978922188282, -0.05868466943502426, -0.19830217957496643, -0.2293962836265564, 0.27103060483932495, -0.10330304503440857, -0.3641126751899719, -0.058112796396017075, 0.22462019324302673, 0.05541220307350159, 0.102974072098732, 0.05191380903124809, -0.13790911436080933, 0.0740506500005722, 0.06709831207990646, 0.24100007116794586, -0.27213409543037415, 0.40461716055870056, 0.07199373841285706, 0.09430870413780212, 0.09115256369113922, -0.015826962888240814, -0.26698434352874756, -0.36973607540130615, 0.10587810724973679, 0.1580180823802948, -0.095754474401474, -0.5968509912490845, 0.26843342185020447, -0.281364768743515, 0.05032213404774666, 0.0037911562249064445, -0.07319097220897675, -0.08497706800699234, 0.7211557030677795, -0.25734373927116394, -0.18432307243347168, 0.04964745417237282, 0.18478742241859436, 0.12497039139270782, -0.20624755322933197, 0.39218705892562866, 0.3405947983264923, -0.17576144635677338, 0.032253701239824295, 0.2664462924003601, 0.17982515692710876, -0.04687928035855293, 0.14887338876724243, 0.0724651888012886, 0.3175617754459381, 0.045093834400177, 0.43938592076301575, -0.14738954603672028, -0.14339156448841095, -0.18480516970157623, 0.05079716444015503, -0.3096584975719452, 0.2169213742017746, 0.17301294207572937, 0.244023859500885, 0.06642494350671768, 0.20085351169109344, 0.08331262320280075, 0.08566700667142868, -0.16937105357646942, 0.04683125764131546, 0.041539035737514496, 0.23223823308944702, -0.07826759666204453, 0.09800217300653458, 0.11464742571115494, 0.1879304051399231, -0.007133030332624912, 0.11725112795829773, -0.09326259046792984, -0.2555657923221588, 0.012203322723507881, 0.14957080781459808, 0.12009131908416748, -0.23211148381233215, 0.11481643468141556, -0.24946613609790802, -0.2574739456176758, -0.3281426727771759, 0.5115009546279907, 0.19161075353622437, -0.016907058656215668, -0.207760751247406, 0.06093166023492813, 0.13624265789985657, 0.09351956099271774, 0.23893947899341583, 0.011246171779930592, 0.13605064153671265, 0.2009705901145935, 0.19533498585224152, 0.09300737828016281, -0.0966629907488823, -0.2422022521495819, -0.09266684949398041, 0.21893957257270813, 0.04917639121413231, -0.05166232958436012, -0.25048530101776123, -0.30246400833129883, 0.07738897949457169, 0.19291473925113678, 0.3313831686973572, -0.11758769303560257, -0.2975836992263794, 0.2320123165845871, 0.09400396794080734, 0.061803627759218216, -0.024388832971453667, 0.18373632431030273, -0.06884092092514038, 0.1389097273349762, 0.32482588291168213, -0.0041174739599227905, 0.20212393999099731, -0.30897897481918335, -0.04328892379999161, 0.35522234439849854, -0.14687827229499817, 0.01964520663022995, 0.2772550880908966, 0.009076587855815887, -0.07087455689907074, 0.02986782416701317, 0.2787351906299591, 0.193820983171463, 0.1448669731616974, 0.3068631589412689, 0.3006328344345093, -0.013525543734431267, -0.019471144303679466, -0.1182338148355484, -0.4309398829936981, -0.21602801978588104, 0.21034136414527893, -0.23220476508140564, 0.4129004180431366, -0.09530714899301529, -0.0314263291656971, -0.18004001677036285, -0.2994450330734253, -0.07064275443553925, 0.2695069909095764, -0.16463030874729156, -0.19546979665756226, -0.2913828194141388, 0.05391138419508934, 0.3463343679904938, 0.3158676028251648, -0.129776269197464, -0.39055895805358887, -0.008900171145796776, 0.15376287698745728, 0.09233500808477402, -0.05727455019950867, 0.058533281087875366, -0.17113488912582397, 0.4078233242034912, 0.0008701111655682325, 0.03538454696536064, -0.23851841688156128, -0.10402364283800125, -0.35259196162223816, 0.18433980643749237, 0.2311057448387146, 0.24851766228675842, -0.1820407658815384, 0.25313347578048706, -0.002480249386280775, 0.1195366233587265, -0.09975925087928772, 0.11010700464248657, -0.03168913722038269, -0.08664709329605103, 0.35028907656669617, -0.002646174281835556, -0.05336015671491623, -0.0128748444840312, 0.10489083081483841, -0.10128022730350494, -0.20764432847499847, -0.10980451107025146, 0.22515204548835754, -0.13999003171920776, -0.12393912672996521, -0.0363583005964756, -0.39624735713005066, -0.10252021253108978, 0.40846630930900574, -0.3164229989051819, 0.052820686250925064, 0.061071380972862244, 0.046656977385282516, -0.5405780673027039, 0.7912293076515198, 0.2515077590942383, 0.31687602400779724, -0.4403223991394043, 0.19565288722515106, -0.24044804275035858, -0.21351799368858337, -0.2580782473087311, -0.020423196256160736, 0.09346549957990646, 0.3934060037136078, 0.016324901953339577, 0.25440776348114014, -0.31468334794044495, -0.2966713309288025, -0.30432629585266113, 0.2985682487487793, -0.1539192944765091, -0.03097720257937908, -0.5753908157348633, 0.22060328722000122, 0.03126541152596474, -0.3881160318851471, 0.3129315674304962, -0.16373059153556824, -0.12295018136501312, -0.26611432433128357, 0.1841341108083725, 0.3575292229652405, 0.20943918824195862, 0.21812951564788818, -0.005550707690417767, 0.18244165182113647, 0.1804746836423874, 0.03650360554456711, -0.15490257740020752, 0.19351163506507874, -0.21969114243984222, 0.1634928286075592, -0.006640993524342775, 0.3492398262023926, -0.0434846393764019, -0.21721677482128143, 0.012838914059102535, 0.03588167577981949, 0.21512028574943542, -0.1570640206336975, 0.19819095730781555, -0.2509368658065796, 0.05483773723244667, 0.053703851997852325, 0.42354705929756165, 0.6069497466087341, -0.21014779806137085, 0.11473634093999863, -0.3305140435695648, -0.25748327374458313, 0.4739018678665161, -0.7701926231384277, -0.36198750138282776, -0.3649834394454956, 0.003986834082752466, 0.08367177098989487, 0.21293026208877563, -0.18462544679641724, 0.034860122948884964, 0.2442561537027359, -0.1608203500509262, -0.3659534454345703, 0.27327945828437805, -0.14067916572093964, -0.09610885381698608, -0.08903724700212479, 0.183872252702713, -0.1871088147163391, -0.3062255084514618, -0.3018530011177063, -0.38976171612739563 ]
https://github.com/huggingface/datasets/issues/315
[Question] Best way to batch a large dataset?
Interesting. There's no support for strings, but it does enable int and floats so that would work for tokenized inputs. ArrowStreamDataset requires loading from a "record batch iterator", which can be instantiated from in-memory arrays as described here: https://arrow.apache.org/docs/python/ipc.html. But the nlp.Dataset stores its data as a `pyarrow.lib.Table`, and the underlying features are `pyarrow.lib.ChunkedArray`. I can't find any documentation about lazily creating a record batch iterator from a ChunkedArray or a Table. Have you had any success? I can't find [any uses](https://grep.app/search?q=ArrowDataset&filter[lang][0]=Python) of tfio.arrow.ArrowDataset on GitHub.
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets?
86
[Question] Best way to batch a large dataset? I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets? Interesting. There's no support for strings, but it does enable int and floats so that would work for tokenized inputs. ArrowStreamDataset requires loading from a "record batch iterator", which can be instantiated from in-memory arrays as described here: https://arrow.apache.org/docs/python/ipc.html. But the nlp.Dataset stores its data as a `pyarrow.lib.Table`, and the underlying features are `pyarrow.lib.ChunkedArray`. I can't find any documentation about lazily creating a record batch iterator from a ChunkedArray or a Table. Have you had any success? I can't find [any uses](https://grep.app/search?q=ArrowDataset&filter[lang][0]=Python) of tfio.arrow.ArrowDataset on GitHub.
[ -0.3098403513431549, -0.3549025058746338, 0.04007013142108917, -0.13144110143184662, 0.04347912594676018, 0.17069244384765625, 0.545406699180603, 0.394595742225647, 0.1853833794593811, 0.07585082948207855, -0.010930435732007027, 0.09057170152664185, -0.045824985951185226, 0.1636856347322464, 0.14648066461086273, -0.3626333773136139, 0.016457589343190193, -0.2653382420539856, -0.026075594127178192, -0.14478838443756104, -0.2456078827381134, -0.29631030559539795, -0.34992751479148865, -0.22726574540138245, -0.31489869952201843, -0.29205140471458435, 0.02210233360528946, -0.178660050034523, 0.21462543308734894, -0.049013011157512665, 0.049041539430618286, 0.021640749648213387, 0.30009543895721436, 0.444857656955719, -0.00011566013563424349, -0.13261905312538147, 0.0600118413567543, -0.044534094631671906, -0.008880354464054108, 0.3237420916557312, -0.061236657202243805, -0.38815274834632874, -0.09791859239339828, -0.4061885178089142, 0.11056124418973923, 0.19236427545547485, 0.19394253194332123, -0.047250375151634216, 0.13588596880435944, -0.032512836158275604, 0.06321760267019272, 0.37276214361190796, -0.02476559206843376, 0.17228858172893524, 0.028884364292025566, -0.0639725774526596, 0.011857914738357067, 0.06099189817905426, 0.27958452701568604, -0.06970088183879852, -0.0007683641742914915, 0.3284050226211548, -0.1674046516418457, -0.015942459926009178, 0.29255732893943787, 0.23139561712741852, 0.12011311948299408, -0.6053040027618408, 0.031975697726011276, 0.372427374124527, 0.2989347279071808, 0.0038550090976059437, -0.27515366673469543, -0.6016528606414795, -0.12167365849018097, -0.26009881496429443, -0.2543846368789673, 0.277985543012619, -0.22824351489543915, -0.17848554253578186, -0.2848556339740753, -0.060750652104616165, -0.11166255176067352, 0.15172748267650604, -0.1742449402809143, 0.18979787826538086, 0.1561433970928192, 0.25138360261917114, 0.18000845611095428, -0.25915783643722534, 0.07230823487043381, -0.2944978177547455, 0.3919678032398224, 0.2885427474975586, -0.5199078321456909, -0.161050483584404, 0.15255405008792877, -0.2357095628976822, 0.06207035481929779, -0.26955488324165344, -0.08921447396278381, 0.007106923498213291, 0.09507863968610764, 0.04642326384782791, 0.18401403725147247, 0.2864987552165985, -0.1267036497592926, 0.0481853112578392, 0.1040562093257904, -0.2625123858451843, -0.24212227761745453, 0.3590072989463806, -0.10837475210428238, -0.2902850806713104, 0.04752177372574806, -0.1952095776796341, -0.3582230806350708, 0.1385158896446228, -0.00881473533809185, 0.03123575635254383, 0.06801183521747589, -0.06761318445205688, -0.031125042587518692, 0.1281125247478485, -0.2842444181442261, 0.07877562195062637, -0.14889656007289886, -0.13956882059574127, -0.380586177110672, 0.16667644679546356, -0.1485891193151474, 0.01749839447438717, -0.0054788473062217236, -0.016314033418893814, 0.13558854162693024, -0.1396760195493698, 0.1104084923863411, -0.18178002536296844, 0.0023551075719296932, 0.2069328874349594, -0.1126754954457283, -0.23203782737255096, 0.135482519865036, 0.23468822240829468, 0.057993922382593155, 0.241053506731987, 0.031283188611269, 0.15585573017597198, -0.20943421125411987, 0.37266966700553894, -0.30990293622016907, -0.33958014845848083, 0.19431394338607788, 0.06684459745883942, 0.016657087951898575, -0.3149910569190979, -0.5945531129837036, 0.3981277048587799, 0.3210080564022064, 0.09307774156332016, -0.07706128060817719, -0.2863112986087799, -0.1548875868320465, -0.24354863166809082, 0.1875339150428772, 0.21212255954742432, -0.42634880542755127, 0.15767095983028412, 0.40174567699432373, 0.329196572303772, 0.3743078410625458, 0.614740788936615, -0.25484776496887207, 0.44109416007995605, 0.17502182722091675, 0.11253980547189713, 0.10754243284463882, -0.2589999735355377, -0.2935234010219574, 0.4176081418991089, -0.22390031814575195, 0.09114881604909897, 0.028061704710125923, 0.27542608976364136, 0.2909401059150696, -0.2358400523662567, 0.46772775053977966, 0.5002925992012024, -0.10605141520500183, 0.3253600597381592, -0.21217438578605652, -0.2624131739139557, 0.12942031025886536, 0.16811411082744598, 0.1687634289264679, -0.10443657636642456, -0.22626414895057678, 0.21720248460769653, 0.2736007869243622, -0.16012558341026306, -0.13353294134140015, 0.014446902088820934, 0.0447469986975193, 0.04505479335784912, -0.2553611993789673, 0.08991997689008713, -0.5541226267814636, 0.2491142749786377, 0.10459452122449875, -0.07205704599618912, 0.29759034514427185, -0.3017670512199402, 0.2677595913410187, -0.08500605821609497, 0.02624450996518135, 0.24394617974758148, -0.06388575583696365, -0.11516024172306061, 0.207393616437912, -0.0009457123233005404, -0.204505056142807, -0.06943557411432266, -0.45423153042793274, 0.03350264951586723, -0.33972904086112976, -0.15070489048957825, 0.34225717186927795, 0.1017848551273346, -0.13040514290332794, 0.16107916831970215, -0.07115011662244797, -0.19750435650348663, 0.06391723453998566, 0.12129218876361847, -0.08295423537492752, -0.010952531360089779, -0.22086651623249054, 0.315073698759079, 0.2363263964653015, 0.330117404460907, 0.051627062261104584, -0.14597563445568085, 0.007590294815599918, -0.3100180923938751, -0.2521987557411194, 0.2785666882991791, -0.031787969172000885, 0.3897753357887268, 0.13793134689331055, -0.3446790277957916, -0.14783136546611786, 0.10223794728517532, 0.0575493723154068, 0.1419413685798645, 0.13987337052822113, 0.12660183012485504, 0.0635654479265213, 0.15172933042049408, -0.4028158187866211, 0.2708544135093689, 0.587833821773529, -0.11926949769258499, -0.06938808411359787, 0.23959268629550934, 0.059559449553489685, -0.169569194316864, -0.033815424889326096, -0.21775807440280914, 0.17166028916835785, 0.16191747784614563, 0.17905253171920776, -0.09990927577018738, 0.12429318577051163, -0.1298576146364212, 0.32239800691604614, 0.2120986431837082, 0.004855862352997065, 0.02219141460955143, 0.11641885340213776, 0.0722033903002739, 0.0016252308851107955, -0.09553908556699753, 0.13059388101100922, 0.3099614679813385, -0.12521980702877045, 0.004458172712475061, 0.19541873037815094, -0.10726458579301834, -0.1237383559346199, -0.026908662170171738, 0.015736518427729607, -0.31785720586776733, -0.13699845969676971, 0.24892355501651764, -0.11663743108510971, 0.03645458444952965, 0.1061018630862236, 0.3592687249183655, 0.12710292637348175, -0.3642115592956543, 0.1010778546333313, -0.11708793044090271, -0.2541911005973816, -0.016068607568740845, 0.15504109859466553, -0.009768555872142315, 0.18844722211360931, 0.08863133937120438, -0.11062977463006973, 0.01585698314011097, -0.13766874372959137, -0.05921164155006409, -0.4576968550682068, 0.07348833978176117, -0.10063379257917404, 0.33561697602272034, -0.22497789561748505, -0.4371751546859741, -0.002617304213345051, -0.06879514455795288, 0.25333353877067566, -0.26742854714393616, 0.00786916445940733, -0.05997281149029732, 0.16825158894062042, -0.2091829776763916, -0.39796963334083557, -0.2773376703262329, 0.16170021891593933, -0.08041811734437943, 0.1121000275015831, 0.3758202791213989, 0.08613166213035583, 0.06143563240766525, 0.19844798743724823, -0.11173908412456512, 0.06450677663087845, -0.3359973132610321, 0.2933344841003418, -0.11332085728645325, -0.2322179228067398, -0.2972748875617981, -0.056919049471616745, -0.054182473570108414, 0.35648342967033386, -0.5518574118614197, 0.17812027037143707, -0.36432188749313354, 0.19894224405288696, -0.005831270944327116, 0.562596321105957, -0.09436584264039993, -0.4863791763782501, -0.015356010757386684, 0.11361094564199448, 0.11119551956653595, 0.01324042771011591, 0.26537036895751953, 0.2140452116727829, 0.2785109281539917, 0.4317784309387207, 0.13376741111278534, 1.1682612895965576, 0.1721539944410324, -0.2398594468832016, -0.2142914980649948, -0.0006975637516006827, -0.026747679337859154, -0.34460920095443726, -0.2672063410282135, 0.3804668188095093, -0.06511107832193375, -0.1218409463763237, 0.2086469978094101, -0.16884472966194153, -0.29335811734199524, -0.03751904517412186, 0.12444552779197693, -0.11183733493089676, -0.28586816787719727, 0.42263609170913696, 0.09176433086395264, 0.24910284578800201, 0.13491281867027283, 0.08863739669322968, -0.49933484196662903, -0.3593021333217621, -0.05251369997859001, -0.21201279759407043, 0.4119943380355835, -0.1316409707069397, -0.2977100610733032, -0.136718288064003, -0.9755146503448486, 0.21768316626548767, 0.03096964955329895, 0.26737216114997864, 0.06919924169778824, -0.35081586241722107, 0.09280794858932495, 0.24251261353492737, 0.8538383841514587, -0.06931935995817184, -0.11682779341936111, -0.00463150255382061, -0.3046582043170929, -0.41526949405670166, 0.036352645605802536, -0.0984102338552475, 0.16871722042560577, 0.3588343560695648, 0.052106570452451706, -0.38088521361351013, -0.12106539309024811, 0.20531819760799408, 0.22320137917995453, -0.03707091137766838, -0.06275879591703415, -0.02380071021616459, -0.1611633151769638, 0.0037854891270399094, 0.19200028479099274, 0.10956167429685593, 0.19188372790813446, -0.15293779969215393, 0.07673919945955276, -0.11668557673692703, 0.3052941560745239, 0.16553878784179688, 0.12453101575374603, -0.06460067629814148, 0.6843847632408142, 0.2821181118488312, -0.004589542746543884, 0.027322912588715553, 0.21222242712974548, 0.031340599060058594, -0.22508229315280914, -0.07588495314121246, 0.0017630698857828975, 0.14972206950187683, 0.31837475299835205, 0.4158209562301636, 0.0518365204334259, -0.10185784846544266, -0.024469943717122078, 0.47591710090637207, -0.04457210749387741, 0.2652137279510498, 0.22571337223052979, 0.14802628755569458, -0.4993142783641815, -0.558079183101654, 0.682327926158905, 0.1741633415222168, 0.16442742943763733, 0.36661186814308167, -0.12836027145385742, -0.21077151596546173, 0.30205780267715454, 0.07867533713579178, 0.6478747129440308, -0.1737247109413147, 0.4172227084636688, 0.31465426087379456, 0.8153581023216248, 0.6308777332305908, -0.09869050979614258, 0.28938353061676025, -0.1265125721693039, -0.11746349185705185, 0.08058807998895645, -0.09408528357744217, -0.28301218152046204, 0.21022921800613403, 0.11972111463546753, 0.2607631981372833, -0.05776793882250786, 0.20221325755119324, -0.2976985573768616, 0.26786231994628906, 0.12155794352293015, -0.48882848024368286, -0.14901088178157806, 0.007863104343414307, -0.025055427104234695, 0.1897146850824356, -0.07386798411607742, 0.1231599897146225, 0.01159150805324316, 0.0521978922188282, -0.05868466943502426, -0.19830217957496643, -0.2293962836265564, 0.27103060483932495, -0.10330304503440857, -0.3641126751899719, -0.058112796396017075, 0.22462019324302673, 0.05541220307350159, 0.102974072098732, 0.05191380903124809, -0.13790911436080933, 0.0740506500005722, 0.06709831207990646, 0.24100007116794586, -0.27213409543037415, 0.40461716055870056, 0.07199373841285706, 0.09430870413780212, 0.09115256369113922, -0.015826962888240814, -0.26698434352874756, -0.36973607540130615, 0.10587810724973679, 0.1580180823802948, -0.095754474401474, -0.5968509912490845, 0.26843342185020447, -0.281364768743515, 0.05032213404774666, 0.0037911562249064445, -0.07319097220897675, -0.08497706800699234, 0.7211557030677795, -0.25734373927116394, -0.18432307243347168, 0.04964745417237282, 0.18478742241859436, 0.12497039139270782, -0.20624755322933197, 0.39218705892562866, 0.3405947983264923, -0.17576144635677338, 0.032253701239824295, 0.2664462924003601, 0.17982515692710876, -0.04687928035855293, 0.14887338876724243, 0.0724651888012886, 0.3175617754459381, 0.045093834400177, 0.43938592076301575, -0.14738954603672028, -0.14339156448841095, -0.18480516970157623, 0.05079716444015503, -0.3096584975719452, 0.2169213742017746, 0.17301294207572937, 0.244023859500885, 0.06642494350671768, 0.20085351169109344, 0.08331262320280075, 0.08566700667142868, -0.16937105357646942, 0.04683125764131546, 0.041539035737514496, 0.23223823308944702, -0.07826759666204453, 0.09800217300653458, 0.11464742571115494, 0.1879304051399231, -0.007133030332624912, 0.11725112795829773, -0.09326259046792984, -0.2555657923221588, 0.012203322723507881, 0.14957080781459808, 0.12009131908416748, -0.23211148381233215, 0.11481643468141556, -0.24946613609790802, -0.2574739456176758, -0.3281426727771759, 0.5115009546279907, 0.19161075353622437, -0.016907058656215668, -0.207760751247406, 0.06093166023492813, 0.13624265789985657, 0.09351956099271774, 0.23893947899341583, 0.011246171779930592, 0.13605064153671265, 0.2009705901145935, 0.19533498585224152, 0.09300737828016281, -0.0966629907488823, -0.2422022521495819, -0.09266684949398041, 0.21893957257270813, 0.04917639121413231, -0.05166232958436012, -0.25048530101776123, -0.30246400833129883, 0.07738897949457169, 0.19291473925113678, 0.3313831686973572, -0.11758769303560257, -0.2975836992263794, 0.2320123165845871, 0.09400396794080734, 0.061803627759218216, -0.024388832971453667, 0.18373632431030273, -0.06884092092514038, 0.1389097273349762, 0.32482588291168213, -0.0041174739599227905, 0.20212393999099731, -0.30897897481918335, -0.04328892379999161, 0.35522234439849854, -0.14687827229499817, 0.01964520663022995, 0.2772550880908966, 0.009076587855815887, -0.07087455689907074, 0.02986782416701317, 0.2787351906299591, 0.193820983171463, 0.1448669731616974, 0.3068631589412689, 0.3006328344345093, -0.013525543734431267, -0.019471144303679466, -0.1182338148355484, -0.4309398829936981, -0.21602801978588104, 0.21034136414527893, -0.23220476508140564, 0.4129004180431366, -0.09530714899301529, -0.0314263291656971, -0.18004001677036285, -0.2994450330734253, -0.07064275443553925, 0.2695069909095764, -0.16463030874729156, -0.19546979665756226, -0.2913828194141388, 0.05391138419508934, 0.3463343679904938, 0.3158676028251648, -0.129776269197464, -0.39055895805358887, -0.008900171145796776, 0.15376287698745728, 0.09233500808477402, -0.05727455019950867, 0.058533281087875366, -0.17113488912582397, 0.4078233242034912, 0.0008701111655682325, 0.03538454696536064, -0.23851841688156128, -0.10402364283800125, -0.35259196162223816, 0.18433980643749237, 0.2311057448387146, 0.24851766228675842, -0.1820407658815384, 0.25313347578048706, -0.002480249386280775, 0.1195366233587265, -0.09975925087928772, 0.11010700464248657, -0.03168913722038269, -0.08664709329605103, 0.35028907656669617, -0.002646174281835556, -0.05336015671491623, -0.0128748444840312, 0.10489083081483841, -0.10128022730350494, -0.20764432847499847, -0.10980451107025146, 0.22515204548835754, -0.13999003171920776, -0.12393912672996521, -0.0363583005964756, -0.39624735713005066, -0.10252021253108978, 0.40846630930900574, -0.3164229989051819, 0.052820686250925064, 0.061071380972862244, 0.046656977385282516, -0.5405780673027039, 0.7912293076515198, 0.2515077590942383, 0.31687602400779724, -0.4403223991394043, 0.19565288722515106, -0.24044804275035858, -0.21351799368858337, -0.2580782473087311, -0.020423196256160736, 0.09346549957990646, 0.3934060037136078, 0.016324901953339577, 0.25440776348114014, -0.31468334794044495, -0.2966713309288025, -0.30432629585266113, 0.2985682487487793, -0.1539192944765091, -0.03097720257937908, -0.5753908157348633, 0.22060328722000122, 0.03126541152596474, -0.3881160318851471, 0.3129315674304962, -0.16373059153556824, -0.12295018136501312, -0.26611432433128357, 0.1841341108083725, 0.3575292229652405, 0.20943918824195862, 0.21812951564788818, -0.005550707690417767, 0.18244165182113647, 0.1804746836423874, 0.03650360554456711, -0.15490257740020752, 0.19351163506507874, -0.21969114243984222, 0.1634928286075592, -0.006640993524342775, 0.3492398262023926, -0.0434846393764019, -0.21721677482128143, 0.012838914059102535, 0.03588167577981949, 0.21512028574943542, -0.1570640206336975, 0.19819095730781555, -0.2509368658065796, 0.05483773723244667, 0.053703851997852325, 0.42354705929756165, 0.6069497466087341, -0.21014779806137085, 0.11473634093999863, -0.3305140435695648, -0.25748327374458313, 0.4739018678665161, -0.7701926231384277, -0.36198750138282776, -0.3649834394454956, 0.003986834082752466, 0.08367177098989487, 0.21293026208877563, -0.18462544679641724, 0.034860122948884964, 0.2442561537027359, -0.1608203500509262, -0.3659534454345703, 0.27327945828437805, -0.14067916572093964, -0.09610885381698608, -0.08903724700212479, 0.183872252702713, -0.1871088147163391, -0.3062255084514618, -0.3018530011177063, -0.38976171612739563 ]
https://github.com/huggingface/datasets/issues/315
[Question] Best way to batch a large dataset?
Also note that since #322 it is now possible to do ```python ids = [1, 10, 42, 100] batch = dataset[ids] ``` From my experience it is quite fast but it can take lots of memory for large batches (haven't played that much with it). Let me know if you think there could be a better way to implement it. (current code is [here](https://github.com/huggingface/nlp/blob/78628649962671b4aaa31a6b24e7275533416845/src/nlp/arrow_dataset.py#L463))
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets?
64
[Question] Best way to batch a large dataset? I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets? Also note that since #322 it is now possible to do ```python ids = [1, 10, 42, 100] batch = dataset[ids] ``` From my experience it is quite fast but it can take lots of memory for large batches (haven't played that much with it). Let me know if you think there could be a better way to implement it. (current code is [here](https://github.com/huggingface/nlp/blob/78628649962671b4aaa31a6b24e7275533416845/src/nlp/arrow_dataset.py#L463))
[ -0.3098403513431549, -0.3549025058746338, 0.04007013142108917, -0.13144110143184662, 0.04347912594676018, 0.17069244384765625, 0.545406699180603, 0.394595742225647, 0.1853833794593811, 0.07585082948207855, -0.010930435732007027, 0.09057170152664185, -0.045824985951185226, 0.1636856347322464, 0.14648066461086273, -0.3626333773136139, 0.016457589343190193, -0.2653382420539856, -0.026075594127178192, -0.14478838443756104, -0.2456078827381134, -0.29631030559539795, -0.34992751479148865, -0.22726574540138245, -0.31489869952201843, -0.29205140471458435, 0.02210233360528946, -0.178660050034523, 0.21462543308734894, -0.049013011157512665, 0.049041539430618286, 0.021640749648213387, 0.30009543895721436, 0.444857656955719, -0.00011566013563424349, -0.13261905312538147, 0.0600118413567543, -0.044534094631671906, -0.008880354464054108, 0.3237420916557312, -0.061236657202243805, -0.38815274834632874, -0.09791859239339828, -0.4061885178089142, 0.11056124418973923, 0.19236427545547485, 0.19394253194332123, -0.047250375151634216, 0.13588596880435944, -0.032512836158275604, 0.06321760267019272, 0.37276214361190796, -0.02476559206843376, 0.17228858172893524, 0.028884364292025566, -0.0639725774526596, 0.011857914738357067, 0.06099189817905426, 0.27958452701568604, -0.06970088183879852, -0.0007683641742914915, 0.3284050226211548, -0.1674046516418457, -0.015942459926009178, 0.29255732893943787, 0.23139561712741852, 0.12011311948299408, -0.6053040027618408, 0.031975697726011276, 0.372427374124527, 0.2989347279071808, 0.0038550090976059437, -0.27515366673469543, -0.6016528606414795, -0.12167365849018097, -0.26009881496429443, -0.2543846368789673, 0.277985543012619, -0.22824351489543915, -0.17848554253578186, -0.2848556339740753, -0.060750652104616165, -0.11166255176067352, 0.15172748267650604, -0.1742449402809143, 0.18979787826538086, 0.1561433970928192, 0.25138360261917114, 0.18000845611095428, -0.25915783643722534, 0.07230823487043381, -0.2944978177547455, 0.3919678032398224, 0.2885427474975586, -0.5199078321456909, -0.161050483584404, 0.15255405008792877, -0.2357095628976822, 0.06207035481929779, -0.26955488324165344, -0.08921447396278381, 0.007106923498213291, 0.09507863968610764, 0.04642326384782791, 0.18401403725147247, 0.2864987552165985, -0.1267036497592926, 0.0481853112578392, 0.1040562093257904, -0.2625123858451843, -0.24212227761745453, 0.3590072989463806, -0.10837475210428238, -0.2902850806713104, 0.04752177372574806, -0.1952095776796341, -0.3582230806350708, 0.1385158896446228, -0.00881473533809185, 0.03123575635254383, 0.06801183521747589, -0.06761318445205688, -0.031125042587518692, 0.1281125247478485, -0.2842444181442261, 0.07877562195062637, -0.14889656007289886, -0.13956882059574127, -0.380586177110672, 0.16667644679546356, -0.1485891193151474, 0.01749839447438717, -0.0054788473062217236, -0.016314033418893814, 0.13558854162693024, -0.1396760195493698, 0.1104084923863411, -0.18178002536296844, 0.0023551075719296932, 0.2069328874349594, -0.1126754954457283, -0.23203782737255096, 0.135482519865036, 0.23468822240829468, 0.057993922382593155, 0.241053506731987, 0.031283188611269, 0.15585573017597198, -0.20943421125411987, 0.37266966700553894, -0.30990293622016907, -0.33958014845848083, 0.19431394338607788, 0.06684459745883942, 0.016657087951898575, -0.3149910569190979, -0.5945531129837036, 0.3981277048587799, 0.3210080564022064, 0.09307774156332016, -0.07706128060817719, -0.2863112986087799, -0.1548875868320465, -0.24354863166809082, 0.1875339150428772, 0.21212255954742432, -0.42634880542755127, 0.15767095983028412, 0.40174567699432373, 0.329196572303772, 0.3743078410625458, 0.614740788936615, -0.25484776496887207, 0.44109416007995605, 0.17502182722091675, 0.11253980547189713, 0.10754243284463882, -0.2589999735355377, -0.2935234010219574, 0.4176081418991089, -0.22390031814575195, 0.09114881604909897, 0.028061704710125923, 0.27542608976364136, 0.2909401059150696, -0.2358400523662567, 0.46772775053977966, 0.5002925992012024, -0.10605141520500183, 0.3253600597381592, -0.21217438578605652, -0.2624131739139557, 0.12942031025886536, 0.16811411082744598, 0.1687634289264679, -0.10443657636642456, -0.22626414895057678, 0.21720248460769653, 0.2736007869243622, -0.16012558341026306, -0.13353294134140015, 0.014446902088820934, 0.0447469986975193, 0.04505479335784912, -0.2553611993789673, 0.08991997689008713, -0.5541226267814636, 0.2491142749786377, 0.10459452122449875, -0.07205704599618912, 0.29759034514427185, -0.3017670512199402, 0.2677595913410187, -0.08500605821609497, 0.02624450996518135, 0.24394617974758148, -0.06388575583696365, -0.11516024172306061, 0.207393616437912, -0.0009457123233005404, -0.204505056142807, -0.06943557411432266, -0.45423153042793274, 0.03350264951586723, -0.33972904086112976, -0.15070489048957825, 0.34225717186927795, 0.1017848551273346, -0.13040514290332794, 0.16107916831970215, -0.07115011662244797, -0.19750435650348663, 0.06391723453998566, 0.12129218876361847, -0.08295423537492752, -0.010952531360089779, -0.22086651623249054, 0.315073698759079, 0.2363263964653015, 0.330117404460907, 0.051627062261104584, -0.14597563445568085, 0.007590294815599918, -0.3100180923938751, -0.2521987557411194, 0.2785666882991791, -0.031787969172000885, 0.3897753357887268, 0.13793134689331055, -0.3446790277957916, -0.14783136546611786, 0.10223794728517532, 0.0575493723154068, 0.1419413685798645, 0.13987337052822113, 0.12660183012485504, 0.0635654479265213, 0.15172933042049408, -0.4028158187866211, 0.2708544135093689, 0.587833821773529, -0.11926949769258499, -0.06938808411359787, 0.23959268629550934, 0.059559449553489685, -0.169569194316864, -0.033815424889326096, -0.21775807440280914, 0.17166028916835785, 0.16191747784614563, 0.17905253171920776, -0.09990927577018738, 0.12429318577051163, -0.1298576146364212, 0.32239800691604614, 0.2120986431837082, 0.004855862352997065, 0.02219141460955143, 0.11641885340213776, 0.0722033903002739, 0.0016252308851107955, -0.09553908556699753, 0.13059388101100922, 0.3099614679813385, -0.12521980702877045, 0.004458172712475061, 0.19541873037815094, -0.10726458579301834, -0.1237383559346199, -0.026908662170171738, 0.015736518427729607, -0.31785720586776733, -0.13699845969676971, 0.24892355501651764, -0.11663743108510971, 0.03645458444952965, 0.1061018630862236, 0.3592687249183655, 0.12710292637348175, -0.3642115592956543, 0.1010778546333313, -0.11708793044090271, -0.2541911005973816, -0.016068607568740845, 0.15504109859466553, -0.009768555872142315, 0.18844722211360931, 0.08863133937120438, -0.11062977463006973, 0.01585698314011097, -0.13766874372959137, -0.05921164155006409, -0.4576968550682068, 0.07348833978176117, -0.10063379257917404, 0.33561697602272034, -0.22497789561748505, -0.4371751546859741, -0.002617304213345051, -0.06879514455795288, 0.25333353877067566, -0.26742854714393616, 0.00786916445940733, -0.05997281149029732, 0.16825158894062042, -0.2091829776763916, -0.39796963334083557, -0.2773376703262329, 0.16170021891593933, -0.08041811734437943, 0.1121000275015831, 0.3758202791213989, 0.08613166213035583, 0.06143563240766525, 0.19844798743724823, -0.11173908412456512, 0.06450677663087845, -0.3359973132610321, 0.2933344841003418, -0.11332085728645325, -0.2322179228067398, -0.2972748875617981, -0.056919049471616745, -0.054182473570108414, 0.35648342967033386, -0.5518574118614197, 0.17812027037143707, -0.36432188749313354, 0.19894224405288696, -0.005831270944327116, 0.562596321105957, -0.09436584264039993, -0.4863791763782501, -0.015356010757386684, 0.11361094564199448, 0.11119551956653595, 0.01324042771011591, 0.26537036895751953, 0.2140452116727829, 0.2785109281539917, 0.4317784309387207, 0.13376741111278534, 1.1682612895965576, 0.1721539944410324, -0.2398594468832016, -0.2142914980649948, -0.0006975637516006827, -0.026747679337859154, -0.34460920095443726, -0.2672063410282135, 0.3804668188095093, -0.06511107832193375, -0.1218409463763237, 0.2086469978094101, -0.16884472966194153, -0.29335811734199524, -0.03751904517412186, 0.12444552779197693, -0.11183733493089676, -0.28586816787719727, 0.42263609170913696, 0.09176433086395264, 0.24910284578800201, 0.13491281867027283, 0.08863739669322968, -0.49933484196662903, -0.3593021333217621, -0.05251369997859001, -0.21201279759407043, 0.4119943380355835, -0.1316409707069397, -0.2977100610733032, -0.136718288064003, -0.9755146503448486, 0.21768316626548767, 0.03096964955329895, 0.26737216114997864, 0.06919924169778824, -0.35081586241722107, 0.09280794858932495, 0.24251261353492737, 0.8538383841514587, -0.06931935995817184, -0.11682779341936111, -0.00463150255382061, -0.3046582043170929, -0.41526949405670166, 0.036352645605802536, -0.0984102338552475, 0.16871722042560577, 0.3588343560695648, 0.052106570452451706, -0.38088521361351013, -0.12106539309024811, 0.20531819760799408, 0.22320137917995453, -0.03707091137766838, -0.06275879591703415, -0.02380071021616459, -0.1611633151769638, 0.0037854891270399094, 0.19200028479099274, 0.10956167429685593, 0.19188372790813446, -0.15293779969215393, 0.07673919945955276, -0.11668557673692703, 0.3052941560745239, 0.16553878784179688, 0.12453101575374603, -0.06460067629814148, 0.6843847632408142, 0.2821181118488312, -0.004589542746543884, 0.027322912588715553, 0.21222242712974548, 0.031340599060058594, -0.22508229315280914, -0.07588495314121246, 0.0017630698857828975, 0.14972206950187683, 0.31837475299835205, 0.4158209562301636, 0.0518365204334259, -0.10185784846544266, -0.024469943717122078, 0.47591710090637207, -0.04457210749387741, 0.2652137279510498, 0.22571337223052979, 0.14802628755569458, -0.4993142783641815, -0.558079183101654, 0.682327926158905, 0.1741633415222168, 0.16442742943763733, 0.36661186814308167, -0.12836027145385742, -0.21077151596546173, 0.30205780267715454, 0.07867533713579178, 0.6478747129440308, -0.1737247109413147, 0.4172227084636688, 0.31465426087379456, 0.8153581023216248, 0.6308777332305908, -0.09869050979614258, 0.28938353061676025, -0.1265125721693039, -0.11746349185705185, 0.08058807998895645, -0.09408528357744217, -0.28301218152046204, 0.21022921800613403, 0.11972111463546753, 0.2607631981372833, -0.05776793882250786, 0.20221325755119324, -0.2976985573768616, 0.26786231994628906, 0.12155794352293015, -0.48882848024368286, -0.14901088178157806, 0.007863104343414307, -0.025055427104234695, 0.1897146850824356, -0.07386798411607742, 0.1231599897146225, 0.01159150805324316, 0.0521978922188282, -0.05868466943502426, -0.19830217957496643, -0.2293962836265564, 0.27103060483932495, -0.10330304503440857, -0.3641126751899719, -0.058112796396017075, 0.22462019324302673, 0.05541220307350159, 0.102974072098732, 0.05191380903124809, -0.13790911436080933, 0.0740506500005722, 0.06709831207990646, 0.24100007116794586, -0.27213409543037415, 0.40461716055870056, 0.07199373841285706, 0.09430870413780212, 0.09115256369113922, -0.015826962888240814, -0.26698434352874756, -0.36973607540130615, 0.10587810724973679, 0.1580180823802948, -0.095754474401474, -0.5968509912490845, 0.26843342185020447, -0.281364768743515, 0.05032213404774666, 0.0037911562249064445, -0.07319097220897675, -0.08497706800699234, 0.7211557030677795, -0.25734373927116394, -0.18432307243347168, 0.04964745417237282, 0.18478742241859436, 0.12497039139270782, -0.20624755322933197, 0.39218705892562866, 0.3405947983264923, -0.17576144635677338, 0.032253701239824295, 0.2664462924003601, 0.17982515692710876, -0.04687928035855293, 0.14887338876724243, 0.0724651888012886, 0.3175617754459381, 0.045093834400177, 0.43938592076301575, -0.14738954603672028, -0.14339156448841095, -0.18480516970157623, 0.05079716444015503, -0.3096584975719452, 0.2169213742017746, 0.17301294207572937, 0.244023859500885, 0.06642494350671768, 0.20085351169109344, 0.08331262320280075, 0.08566700667142868, -0.16937105357646942, 0.04683125764131546, 0.041539035737514496, 0.23223823308944702, -0.07826759666204453, 0.09800217300653458, 0.11464742571115494, 0.1879304051399231, -0.007133030332624912, 0.11725112795829773, -0.09326259046792984, -0.2555657923221588, 0.012203322723507881, 0.14957080781459808, 0.12009131908416748, -0.23211148381233215, 0.11481643468141556, -0.24946613609790802, -0.2574739456176758, -0.3281426727771759, 0.5115009546279907, 0.19161075353622437, -0.016907058656215668, -0.207760751247406, 0.06093166023492813, 0.13624265789985657, 0.09351956099271774, 0.23893947899341583, 0.011246171779930592, 0.13605064153671265, 0.2009705901145935, 0.19533498585224152, 0.09300737828016281, -0.0966629907488823, -0.2422022521495819, -0.09266684949398041, 0.21893957257270813, 0.04917639121413231, -0.05166232958436012, -0.25048530101776123, -0.30246400833129883, 0.07738897949457169, 0.19291473925113678, 0.3313831686973572, -0.11758769303560257, -0.2975836992263794, 0.2320123165845871, 0.09400396794080734, 0.061803627759218216, -0.024388832971453667, 0.18373632431030273, -0.06884092092514038, 0.1389097273349762, 0.32482588291168213, -0.0041174739599227905, 0.20212393999099731, -0.30897897481918335, -0.04328892379999161, 0.35522234439849854, -0.14687827229499817, 0.01964520663022995, 0.2772550880908966, 0.009076587855815887, -0.07087455689907074, 0.02986782416701317, 0.2787351906299591, 0.193820983171463, 0.1448669731616974, 0.3068631589412689, 0.3006328344345093, -0.013525543734431267, -0.019471144303679466, -0.1182338148355484, -0.4309398829936981, -0.21602801978588104, 0.21034136414527893, -0.23220476508140564, 0.4129004180431366, -0.09530714899301529, -0.0314263291656971, -0.18004001677036285, -0.2994450330734253, -0.07064275443553925, 0.2695069909095764, -0.16463030874729156, -0.19546979665756226, -0.2913828194141388, 0.05391138419508934, 0.3463343679904938, 0.3158676028251648, -0.129776269197464, -0.39055895805358887, -0.008900171145796776, 0.15376287698745728, 0.09233500808477402, -0.05727455019950867, 0.058533281087875366, -0.17113488912582397, 0.4078233242034912, 0.0008701111655682325, 0.03538454696536064, -0.23851841688156128, -0.10402364283800125, -0.35259196162223816, 0.18433980643749237, 0.2311057448387146, 0.24851766228675842, -0.1820407658815384, 0.25313347578048706, -0.002480249386280775, 0.1195366233587265, -0.09975925087928772, 0.11010700464248657, -0.03168913722038269, -0.08664709329605103, 0.35028907656669617, -0.002646174281835556, -0.05336015671491623, -0.0128748444840312, 0.10489083081483841, -0.10128022730350494, -0.20764432847499847, -0.10980451107025146, 0.22515204548835754, -0.13999003171920776, -0.12393912672996521, -0.0363583005964756, -0.39624735713005066, -0.10252021253108978, 0.40846630930900574, -0.3164229989051819, 0.052820686250925064, 0.061071380972862244, 0.046656977385282516, -0.5405780673027039, 0.7912293076515198, 0.2515077590942383, 0.31687602400779724, -0.4403223991394043, 0.19565288722515106, -0.24044804275035858, -0.21351799368858337, -0.2580782473087311, -0.020423196256160736, 0.09346549957990646, 0.3934060037136078, 0.016324901953339577, 0.25440776348114014, -0.31468334794044495, -0.2966713309288025, -0.30432629585266113, 0.2985682487487793, -0.1539192944765091, -0.03097720257937908, -0.5753908157348633, 0.22060328722000122, 0.03126541152596474, -0.3881160318851471, 0.3129315674304962, -0.16373059153556824, -0.12295018136501312, -0.26611432433128357, 0.1841341108083725, 0.3575292229652405, 0.20943918824195862, 0.21812951564788818, -0.005550707690417767, 0.18244165182113647, 0.1804746836423874, 0.03650360554456711, -0.15490257740020752, 0.19351163506507874, -0.21969114243984222, 0.1634928286075592, -0.006640993524342775, 0.3492398262023926, -0.0434846393764019, -0.21721677482128143, 0.012838914059102535, 0.03588167577981949, 0.21512028574943542, -0.1570640206336975, 0.19819095730781555, -0.2509368658065796, 0.05483773723244667, 0.053703851997852325, 0.42354705929756165, 0.6069497466087341, -0.21014779806137085, 0.11473634093999863, -0.3305140435695648, -0.25748327374458313, 0.4739018678665161, -0.7701926231384277, -0.36198750138282776, -0.3649834394454956, 0.003986834082752466, 0.08367177098989487, 0.21293026208877563, -0.18462544679641724, 0.034860122948884964, 0.2442561537027359, -0.1608203500509262, -0.3659534454345703, 0.27327945828437805, -0.14067916572093964, -0.09610885381698608, -0.08903724700212479, 0.183872252702713, -0.1871088147163391, -0.3062255084514618, -0.3018530011177063, -0.38976171612739563 ]
https://github.com/huggingface/datasets/issues/315
[Question] Best way to batch a large dataset?
Thanks @lhoestq! That format is much better to work with. I put together a benchmarking script. This doesn't measure the CPU-to-GPU efficiency, nor how it scales with multi-GPU multi-node training where many processes are making the same demands on the same dataset. But it does show some interesting results: ```python import nlp import numpy as np import tensorflow as tf import time dset = nlp.load_dataset("wikitext", "wikitext-2-raw-v1", split="train") dset = dset.filter(lambda ex: len(ex["text"]) > 0) bsz = 1024 n_batches = 100 def single_item_gen(): for i in range(len(dset)): yield dset[i] def sequential_batch_gen(): for i in range(0, len(dset), bsz): yield dset[i:i+bsz] def random_batch_gen(): for i in range(len(dset)): indices = list(np.random.randint(len(dset), size=(bsz,))) yield dset[indices] output_types = {"text": tf.string} single_item = tf.data.Dataset.from_generator(single_item_gen, output_types=output_types).batch(bsz) interleaved = tf.data.Dataset.range(10).interleave( lambda idx: tf.data.Dataset.from_generator(single_item_gen, output_types=output_types), cycle_length=10, ) sequential_batch = tf.data.Dataset.from_generator(sequential_batch_gen, output_types=output_types) random_batch = tf.data.Dataset.from_generator(random_batch_gen, output_types=output_types) def iterate(tf_dset): start = time.perf_counter() for i, batch in enumerate(tf_dset.take(n_batches)): pass elapsed = time.perf_counter() - start print(f"{tf_dset} took {elapsed:.3f} secs") iterate(single_item) iterate(interleaved) iterate(sequential_batch) iterate(random_batch) ``` Results: ``` <BatchDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 23.005 secs <InterleaveDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 0.135 secs <FlatMapDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 0.074 secs <FlatMapDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 0.550 secs ``` - Batching a generator which fetches a single item is terrible. - Interleaving performs well on a single process, but doesn't scale well to multi-GPU training. I believe the bottleneck here is in Arrow dataset locking or something similar. The numbers from the table above are with interleaving. - The sequential access dominates the random access (7x faster). Is there any way to bring random access times closer to sequential access? Maybe re-indexing the dataset after shuffling each pass over the data.
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets?
285
[Question] Best way to batch a large dataset? I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets? Thanks @lhoestq! That format is much better to work with. I put together a benchmarking script. This doesn't measure the CPU-to-GPU efficiency, nor how it scales with multi-GPU multi-node training where many processes are making the same demands on the same dataset. But it does show some interesting results: ```python import nlp import numpy as np import tensorflow as tf import time dset = nlp.load_dataset("wikitext", "wikitext-2-raw-v1", split="train") dset = dset.filter(lambda ex: len(ex["text"]) > 0) bsz = 1024 n_batches = 100 def single_item_gen(): for i in range(len(dset)): yield dset[i] def sequential_batch_gen(): for i in range(0, len(dset), bsz): yield dset[i:i+bsz] def random_batch_gen(): for i in range(len(dset)): indices = list(np.random.randint(len(dset), size=(bsz,))) yield dset[indices] output_types = {"text": tf.string} single_item = tf.data.Dataset.from_generator(single_item_gen, output_types=output_types).batch(bsz) interleaved = tf.data.Dataset.range(10).interleave( lambda idx: tf.data.Dataset.from_generator(single_item_gen, output_types=output_types), cycle_length=10, ) sequential_batch = tf.data.Dataset.from_generator(sequential_batch_gen, output_types=output_types) random_batch = tf.data.Dataset.from_generator(random_batch_gen, output_types=output_types) def iterate(tf_dset): start = time.perf_counter() for i, batch in enumerate(tf_dset.take(n_batches)): pass elapsed = time.perf_counter() - start print(f"{tf_dset} took {elapsed:.3f} secs") iterate(single_item) iterate(interleaved) iterate(sequential_batch) iterate(random_batch) ``` Results: ``` <BatchDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 23.005 secs <InterleaveDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 0.135 secs <FlatMapDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 0.074 secs <FlatMapDataset shapes: {text: <unknown>}, types: {text: tf.string}> took 0.550 secs ``` - Batching a generator which fetches a single item is terrible. - Interleaving performs well on a single process, but doesn't scale well to multi-GPU training. I believe the bottleneck here is in Arrow dataset locking or something similar. The numbers from the table above are with interleaving. - The sequential access dominates the random access (7x faster). Is there any way to bring random access times closer to sequential access? Maybe re-indexing the dataset after shuffling each pass over the data.
[ -0.3098403513431549, -0.3549025058746338, 0.04007013142108917, -0.13144110143184662, 0.04347912594676018, 0.17069244384765625, 0.545406699180603, 0.394595742225647, 0.1853833794593811, 0.07585082948207855, -0.010930435732007027, 0.09057170152664185, -0.045824985951185226, 0.1636856347322464, 0.14648066461086273, -0.3626333773136139, 0.016457589343190193, -0.2653382420539856, -0.026075594127178192, -0.14478838443756104, -0.2456078827381134, -0.29631030559539795, -0.34992751479148865, -0.22726574540138245, -0.31489869952201843, -0.29205140471458435, 0.02210233360528946, -0.178660050034523, 0.21462543308734894, -0.049013011157512665, 0.049041539430618286, 0.021640749648213387, 0.30009543895721436, 0.444857656955719, -0.00011566013563424349, -0.13261905312538147, 0.0600118413567543, -0.044534094631671906, -0.008880354464054108, 0.3237420916557312, -0.061236657202243805, -0.38815274834632874, -0.09791859239339828, -0.4061885178089142, 0.11056124418973923, 0.19236427545547485, 0.19394253194332123, -0.047250375151634216, 0.13588596880435944, -0.032512836158275604, 0.06321760267019272, 0.37276214361190796, -0.02476559206843376, 0.17228858172893524, 0.028884364292025566, -0.0639725774526596, 0.011857914738357067, 0.06099189817905426, 0.27958452701568604, -0.06970088183879852, -0.0007683641742914915, 0.3284050226211548, -0.1674046516418457, -0.015942459926009178, 0.29255732893943787, 0.23139561712741852, 0.12011311948299408, -0.6053040027618408, 0.031975697726011276, 0.372427374124527, 0.2989347279071808, 0.0038550090976059437, -0.27515366673469543, -0.6016528606414795, -0.12167365849018097, -0.26009881496429443, -0.2543846368789673, 0.277985543012619, -0.22824351489543915, -0.17848554253578186, -0.2848556339740753, -0.060750652104616165, -0.11166255176067352, 0.15172748267650604, -0.1742449402809143, 0.18979787826538086, 0.1561433970928192, 0.25138360261917114, 0.18000845611095428, -0.25915783643722534, 0.07230823487043381, -0.2944978177547455, 0.3919678032398224, 0.2885427474975586, -0.5199078321456909, -0.161050483584404, 0.15255405008792877, -0.2357095628976822, 0.06207035481929779, -0.26955488324165344, -0.08921447396278381, 0.007106923498213291, 0.09507863968610764, 0.04642326384782791, 0.18401403725147247, 0.2864987552165985, -0.1267036497592926, 0.0481853112578392, 0.1040562093257904, -0.2625123858451843, -0.24212227761745453, 0.3590072989463806, -0.10837475210428238, -0.2902850806713104, 0.04752177372574806, -0.1952095776796341, -0.3582230806350708, 0.1385158896446228, -0.00881473533809185, 0.03123575635254383, 0.06801183521747589, -0.06761318445205688, -0.031125042587518692, 0.1281125247478485, -0.2842444181442261, 0.07877562195062637, -0.14889656007289886, -0.13956882059574127, -0.380586177110672, 0.16667644679546356, -0.1485891193151474, 0.01749839447438717, -0.0054788473062217236, -0.016314033418893814, 0.13558854162693024, -0.1396760195493698, 0.1104084923863411, -0.18178002536296844, 0.0023551075719296932, 0.2069328874349594, -0.1126754954457283, -0.23203782737255096, 0.135482519865036, 0.23468822240829468, 0.057993922382593155, 0.241053506731987, 0.031283188611269, 0.15585573017597198, -0.20943421125411987, 0.37266966700553894, -0.30990293622016907, -0.33958014845848083, 0.19431394338607788, 0.06684459745883942, 0.016657087951898575, -0.3149910569190979, -0.5945531129837036, 0.3981277048587799, 0.3210080564022064, 0.09307774156332016, -0.07706128060817719, -0.2863112986087799, -0.1548875868320465, -0.24354863166809082, 0.1875339150428772, 0.21212255954742432, -0.42634880542755127, 0.15767095983028412, 0.40174567699432373, 0.329196572303772, 0.3743078410625458, 0.614740788936615, -0.25484776496887207, 0.44109416007995605, 0.17502182722091675, 0.11253980547189713, 0.10754243284463882, -0.2589999735355377, -0.2935234010219574, 0.4176081418991089, -0.22390031814575195, 0.09114881604909897, 0.028061704710125923, 0.27542608976364136, 0.2909401059150696, -0.2358400523662567, 0.46772775053977966, 0.5002925992012024, -0.10605141520500183, 0.3253600597381592, -0.21217438578605652, -0.2624131739139557, 0.12942031025886536, 0.16811411082744598, 0.1687634289264679, -0.10443657636642456, -0.22626414895057678, 0.21720248460769653, 0.2736007869243622, -0.16012558341026306, -0.13353294134140015, 0.014446902088820934, 0.0447469986975193, 0.04505479335784912, -0.2553611993789673, 0.08991997689008713, -0.5541226267814636, 0.2491142749786377, 0.10459452122449875, -0.07205704599618912, 0.29759034514427185, -0.3017670512199402, 0.2677595913410187, -0.08500605821609497, 0.02624450996518135, 0.24394617974758148, -0.06388575583696365, -0.11516024172306061, 0.207393616437912, -0.0009457123233005404, -0.204505056142807, -0.06943557411432266, -0.45423153042793274, 0.03350264951586723, -0.33972904086112976, -0.15070489048957825, 0.34225717186927795, 0.1017848551273346, -0.13040514290332794, 0.16107916831970215, -0.07115011662244797, -0.19750435650348663, 0.06391723453998566, 0.12129218876361847, -0.08295423537492752, -0.010952531360089779, -0.22086651623249054, 0.315073698759079, 0.2363263964653015, 0.330117404460907, 0.051627062261104584, -0.14597563445568085, 0.007590294815599918, -0.3100180923938751, -0.2521987557411194, 0.2785666882991791, -0.031787969172000885, 0.3897753357887268, 0.13793134689331055, -0.3446790277957916, -0.14783136546611786, 0.10223794728517532, 0.0575493723154068, 0.1419413685798645, 0.13987337052822113, 0.12660183012485504, 0.0635654479265213, 0.15172933042049408, -0.4028158187866211, 0.2708544135093689, 0.587833821773529, -0.11926949769258499, -0.06938808411359787, 0.23959268629550934, 0.059559449553489685, -0.169569194316864, -0.033815424889326096, -0.21775807440280914, 0.17166028916835785, 0.16191747784614563, 0.17905253171920776, -0.09990927577018738, 0.12429318577051163, -0.1298576146364212, 0.32239800691604614, 0.2120986431837082, 0.004855862352997065, 0.02219141460955143, 0.11641885340213776, 0.0722033903002739, 0.0016252308851107955, -0.09553908556699753, 0.13059388101100922, 0.3099614679813385, -0.12521980702877045, 0.004458172712475061, 0.19541873037815094, -0.10726458579301834, -0.1237383559346199, -0.026908662170171738, 0.015736518427729607, -0.31785720586776733, -0.13699845969676971, 0.24892355501651764, -0.11663743108510971, 0.03645458444952965, 0.1061018630862236, 0.3592687249183655, 0.12710292637348175, -0.3642115592956543, 0.1010778546333313, -0.11708793044090271, -0.2541911005973816, -0.016068607568740845, 0.15504109859466553, -0.009768555872142315, 0.18844722211360931, 0.08863133937120438, -0.11062977463006973, 0.01585698314011097, -0.13766874372959137, -0.05921164155006409, -0.4576968550682068, 0.07348833978176117, -0.10063379257917404, 0.33561697602272034, -0.22497789561748505, -0.4371751546859741, -0.002617304213345051, -0.06879514455795288, 0.25333353877067566, -0.26742854714393616, 0.00786916445940733, -0.05997281149029732, 0.16825158894062042, -0.2091829776763916, -0.39796963334083557, -0.2773376703262329, 0.16170021891593933, -0.08041811734437943, 0.1121000275015831, 0.3758202791213989, 0.08613166213035583, 0.06143563240766525, 0.19844798743724823, -0.11173908412456512, 0.06450677663087845, -0.3359973132610321, 0.2933344841003418, -0.11332085728645325, -0.2322179228067398, -0.2972748875617981, -0.056919049471616745, -0.054182473570108414, 0.35648342967033386, -0.5518574118614197, 0.17812027037143707, -0.36432188749313354, 0.19894224405288696, -0.005831270944327116, 0.562596321105957, -0.09436584264039993, -0.4863791763782501, -0.015356010757386684, 0.11361094564199448, 0.11119551956653595, 0.01324042771011591, 0.26537036895751953, 0.2140452116727829, 0.2785109281539917, 0.4317784309387207, 0.13376741111278534, 1.1682612895965576, 0.1721539944410324, -0.2398594468832016, -0.2142914980649948, -0.0006975637516006827, -0.026747679337859154, -0.34460920095443726, -0.2672063410282135, 0.3804668188095093, -0.06511107832193375, -0.1218409463763237, 0.2086469978094101, -0.16884472966194153, -0.29335811734199524, -0.03751904517412186, 0.12444552779197693, -0.11183733493089676, -0.28586816787719727, 0.42263609170913696, 0.09176433086395264, 0.24910284578800201, 0.13491281867027283, 0.08863739669322968, -0.49933484196662903, -0.3593021333217621, -0.05251369997859001, -0.21201279759407043, 0.4119943380355835, -0.1316409707069397, -0.2977100610733032, -0.136718288064003, -0.9755146503448486, 0.21768316626548767, 0.03096964955329895, 0.26737216114997864, 0.06919924169778824, -0.35081586241722107, 0.09280794858932495, 0.24251261353492737, 0.8538383841514587, -0.06931935995817184, -0.11682779341936111, -0.00463150255382061, -0.3046582043170929, -0.41526949405670166, 0.036352645605802536, -0.0984102338552475, 0.16871722042560577, 0.3588343560695648, 0.052106570452451706, -0.38088521361351013, -0.12106539309024811, 0.20531819760799408, 0.22320137917995453, -0.03707091137766838, -0.06275879591703415, -0.02380071021616459, -0.1611633151769638, 0.0037854891270399094, 0.19200028479099274, 0.10956167429685593, 0.19188372790813446, -0.15293779969215393, 0.07673919945955276, -0.11668557673692703, 0.3052941560745239, 0.16553878784179688, 0.12453101575374603, -0.06460067629814148, 0.6843847632408142, 0.2821181118488312, -0.004589542746543884, 0.027322912588715553, 0.21222242712974548, 0.031340599060058594, -0.22508229315280914, -0.07588495314121246, 0.0017630698857828975, 0.14972206950187683, 0.31837475299835205, 0.4158209562301636, 0.0518365204334259, -0.10185784846544266, -0.024469943717122078, 0.47591710090637207, -0.04457210749387741, 0.2652137279510498, 0.22571337223052979, 0.14802628755569458, -0.4993142783641815, -0.558079183101654, 0.682327926158905, 0.1741633415222168, 0.16442742943763733, 0.36661186814308167, -0.12836027145385742, -0.21077151596546173, 0.30205780267715454, 0.07867533713579178, 0.6478747129440308, -0.1737247109413147, 0.4172227084636688, 0.31465426087379456, 0.8153581023216248, 0.6308777332305908, -0.09869050979614258, 0.28938353061676025, -0.1265125721693039, -0.11746349185705185, 0.08058807998895645, -0.09408528357744217, -0.28301218152046204, 0.21022921800613403, 0.11972111463546753, 0.2607631981372833, -0.05776793882250786, 0.20221325755119324, -0.2976985573768616, 0.26786231994628906, 0.12155794352293015, -0.48882848024368286, -0.14901088178157806, 0.007863104343414307, -0.025055427104234695, 0.1897146850824356, -0.07386798411607742, 0.1231599897146225, 0.01159150805324316, 0.0521978922188282, -0.05868466943502426, -0.19830217957496643, -0.2293962836265564, 0.27103060483932495, -0.10330304503440857, -0.3641126751899719, -0.058112796396017075, 0.22462019324302673, 0.05541220307350159, 0.102974072098732, 0.05191380903124809, -0.13790911436080933, 0.0740506500005722, 0.06709831207990646, 0.24100007116794586, -0.27213409543037415, 0.40461716055870056, 0.07199373841285706, 0.09430870413780212, 0.09115256369113922, -0.015826962888240814, -0.26698434352874756, -0.36973607540130615, 0.10587810724973679, 0.1580180823802948, -0.095754474401474, -0.5968509912490845, 0.26843342185020447, -0.281364768743515, 0.05032213404774666, 0.0037911562249064445, -0.07319097220897675, -0.08497706800699234, 0.7211557030677795, -0.25734373927116394, -0.18432307243347168, 0.04964745417237282, 0.18478742241859436, 0.12497039139270782, -0.20624755322933197, 0.39218705892562866, 0.3405947983264923, -0.17576144635677338, 0.032253701239824295, 0.2664462924003601, 0.17982515692710876, -0.04687928035855293, 0.14887338876724243, 0.0724651888012886, 0.3175617754459381, 0.045093834400177, 0.43938592076301575, -0.14738954603672028, -0.14339156448841095, -0.18480516970157623, 0.05079716444015503, -0.3096584975719452, 0.2169213742017746, 0.17301294207572937, 0.244023859500885, 0.06642494350671768, 0.20085351169109344, 0.08331262320280075, 0.08566700667142868, -0.16937105357646942, 0.04683125764131546, 0.041539035737514496, 0.23223823308944702, -0.07826759666204453, 0.09800217300653458, 0.11464742571115494, 0.1879304051399231, -0.007133030332624912, 0.11725112795829773, -0.09326259046792984, -0.2555657923221588, 0.012203322723507881, 0.14957080781459808, 0.12009131908416748, -0.23211148381233215, 0.11481643468141556, -0.24946613609790802, -0.2574739456176758, -0.3281426727771759, 0.5115009546279907, 0.19161075353622437, -0.016907058656215668, -0.207760751247406, 0.06093166023492813, 0.13624265789985657, 0.09351956099271774, 0.23893947899341583, 0.011246171779930592, 0.13605064153671265, 0.2009705901145935, 0.19533498585224152, 0.09300737828016281, -0.0966629907488823, -0.2422022521495819, -0.09266684949398041, 0.21893957257270813, 0.04917639121413231, -0.05166232958436012, -0.25048530101776123, -0.30246400833129883, 0.07738897949457169, 0.19291473925113678, 0.3313831686973572, -0.11758769303560257, -0.2975836992263794, 0.2320123165845871, 0.09400396794080734, 0.061803627759218216, -0.024388832971453667, 0.18373632431030273, -0.06884092092514038, 0.1389097273349762, 0.32482588291168213, -0.0041174739599227905, 0.20212393999099731, -0.30897897481918335, -0.04328892379999161, 0.35522234439849854, -0.14687827229499817, 0.01964520663022995, 0.2772550880908966, 0.009076587855815887, -0.07087455689907074, 0.02986782416701317, 0.2787351906299591, 0.193820983171463, 0.1448669731616974, 0.3068631589412689, 0.3006328344345093, -0.013525543734431267, -0.019471144303679466, -0.1182338148355484, -0.4309398829936981, -0.21602801978588104, 0.21034136414527893, -0.23220476508140564, 0.4129004180431366, -0.09530714899301529, -0.0314263291656971, -0.18004001677036285, -0.2994450330734253, -0.07064275443553925, 0.2695069909095764, -0.16463030874729156, -0.19546979665756226, -0.2913828194141388, 0.05391138419508934, 0.3463343679904938, 0.3158676028251648, -0.129776269197464, -0.39055895805358887, -0.008900171145796776, 0.15376287698745728, 0.09233500808477402, -0.05727455019950867, 0.058533281087875366, -0.17113488912582397, 0.4078233242034912, 0.0008701111655682325, 0.03538454696536064, -0.23851841688156128, -0.10402364283800125, -0.35259196162223816, 0.18433980643749237, 0.2311057448387146, 0.24851766228675842, -0.1820407658815384, 0.25313347578048706, -0.002480249386280775, 0.1195366233587265, -0.09975925087928772, 0.11010700464248657, -0.03168913722038269, -0.08664709329605103, 0.35028907656669617, -0.002646174281835556, -0.05336015671491623, -0.0128748444840312, 0.10489083081483841, -0.10128022730350494, -0.20764432847499847, -0.10980451107025146, 0.22515204548835754, -0.13999003171920776, -0.12393912672996521, -0.0363583005964756, -0.39624735713005066, -0.10252021253108978, 0.40846630930900574, -0.3164229989051819, 0.052820686250925064, 0.061071380972862244, 0.046656977385282516, -0.5405780673027039, 0.7912293076515198, 0.2515077590942383, 0.31687602400779724, -0.4403223991394043, 0.19565288722515106, -0.24044804275035858, -0.21351799368858337, -0.2580782473087311, -0.020423196256160736, 0.09346549957990646, 0.3934060037136078, 0.016324901953339577, 0.25440776348114014, -0.31468334794044495, -0.2966713309288025, -0.30432629585266113, 0.2985682487487793, -0.1539192944765091, -0.03097720257937908, -0.5753908157348633, 0.22060328722000122, 0.03126541152596474, -0.3881160318851471, 0.3129315674304962, -0.16373059153556824, -0.12295018136501312, -0.26611432433128357, 0.1841341108083725, 0.3575292229652405, 0.20943918824195862, 0.21812951564788818, -0.005550707690417767, 0.18244165182113647, 0.1804746836423874, 0.03650360554456711, -0.15490257740020752, 0.19351163506507874, -0.21969114243984222, 0.1634928286075592, -0.006640993524342775, 0.3492398262023926, -0.0434846393764019, -0.21721677482128143, 0.012838914059102535, 0.03588167577981949, 0.21512028574943542, -0.1570640206336975, 0.19819095730781555, -0.2509368658065796, 0.05483773723244667, 0.053703851997852325, 0.42354705929756165, 0.6069497466087341, -0.21014779806137085, 0.11473634093999863, -0.3305140435695648, -0.25748327374458313, 0.4739018678665161, -0.7701926231384277, -0.36198750138282776, -0.3649834394454956, 0.003986834082752466, 0.08367177098989487, 0.21293026208877563, -0.18462544679641724, 0.034860122948884964, 0.2442561537027359, -0.1608203500509262, -0.3659534454345703, 0.27327945828437805, -0.14067916572093964, -0.09610885381698608, -0.08903724700212479, 0.183872252702713, -0.1871088147163391, -0.3062255084514618, -0.3018530011177063, -0.38976171612739563 ]
https://github.com/huggingface/datasets/issues/315
[Question] Best way to batch a large dataset?
Hey @jarednielsen Thanks for this very interesting analysis!! IMHO to read text data one should use `tf.data.TextLineDataset`. It would be interesting to compare what you have done with simply load with a `TextLineDataset` and see if there is a difference. A good example can be found here https://www.tensorflow.org/tutorials/load_data/text
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets?
48
[Question] Best way to batch a large dataset? I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets? Hey @jarednielsen Thanks for this very interesting analysis!! IMHO to read text data one should use `tf.data.TextLineDataset`. It would be interesting to compare what you have done with simply load with a `TextLineDataset` and see if there is a difference. A good example can be found here https://www.tensorflow.org/tutorials/load_data/text
[ -0.3098403513431549, -0.3549025058746338, 0.04007013142108917, -0.13144110143184662, 0.04347912594676018, 0.17069244384765625, 0.545406699180603, 0.394595742225647, 0.1853833794593811, 0.07585082948207855, -0.010930435732007027, 0.09057170152664185, -0.045824985951185226, 0.1636856347322464, 0.14648066461086273, -0.3626333773136139, 0.016457589343190193, -0.2653382420539856, -0.026075594127178192, -0.14478838443756104, -0.2456078827381134, -0.29631030559539795, -0.34992751479148865, -0.22726574540138245, -0.31489869952201843, -0.29205140471458435, 0.02210233360528946, -0.178660050034523, 0.21462543308734894, -0.049013011157512665, 0.049041539430618286, 0.021640749648213387, 0.30009543895721436, 0.444857656955719, -0.00011566013563424349, -0.13261905312538147, 0.0600118413567543, -0.044534094631671906, -0.008880354464054108, 0.3237420916557312, -0.061236657202243805, -0.38815274834632874, -0.09791859239339828, -0.4061885178089142, 0.11056124418973923, 0.19236427545547485, 0.19394253194332123, -0.047250375151634216, 0.13588596880435944, -0.032512836158275604, 0.06321760267019272, 0.37276214361190796, -0.02476559206843376, 0.17228858172893524, 0.028884364292025566, -0.0639725774526596, 0.011857914738357067, 0.06099189817905426, 0.27958452701568604, -0.06970088183879852, -0.0007683641742914915, 0.3284050226211548, -0.1674046516418457, -0.015942459926009178, 0.29255732893943787, 0.23139561712741852, 0.12011311948299408, -0.6053040027618408, 0.031975697726011276, 0.372427374124527, 0.2989347279071808, 0.0038550090976059437, -0.27515366673469543, -0.6016528606414795, -0.12167365849018097, -0.26009881496429443, -0.2543846368789673, 0.277985543012619, -0.22824351489543915, -0.17848554253578186, -0.2848556339740753, -0.060750652104616165, -0.11166255176067352, 0.15172748267650604, -0.1742449402809143, 0.18979787826538086, 0.1561433970928192, 0.25138360261917114, 0.18000845611095428, -0.25915783643722534, 0.07230823487043381, -0.2944978177547455, 0.3919678032398224, 0.2885427474975586, -0.5199078321456909, -0.161050483584404, 0.15255405008792877, -0.2357095628976822, 0.06207035481929779, -0.26955488324165344, -0.08921447396278381, 0.007106923498213291, 0.09507863968610764, 0.04642326384782791, 0.18401403725147247, 0.2864987552165985, -0.1267036497592926, 0.0481853112578392, 0.1040562093257904, -0.2625123858451843, -0.24212227761745453, 0.3590072989463806, -0.10837475210428238, -0.2902850806713104, 0.04752177372574806, -0.1952095776796341, -0.3582230806350708, 0.1385158896446228, -0.00881473533809185, 0.03123575635254383, 0.06801183521747589, -0.06761318445205688, -0.031125042587518692, 0.1281125247478485, -0.2842444181442261, 0.07877562195062637, -0.14889656007289886, -0.13956882059574127, -0.380586177110672, 0.16667644679546356, -0.1485891193151474, 0.01749839447438717, -0.0054788473062217236, -0.016314033418893814, 0.13558854162693024, -0.1396760195493698, 0.1104084923863411, -0.18178002536296844, 0.0023551075719296932, 0.2069328874349594, -0.1126754954457283, -0.23203782737255096, 0.135482519865036, 0.23468822240829468, 0.057993922382593155, 0.241053506731987, 0.031283188611269, 0.15585573017597198, -0.20943421125411987, 0.37266966700553894, -0.30990293622016907, -0.33958014845848083, 0.19431394338607788, 0.06684459745883942, 0.016657087951898575, -0.3149910569190979, -0.5945531129837036, 0.3981277048587799, 0.3210080564022064, 0.09307774156332016, -0.07706128060817719, -0.2863112986087799, -0.1548875868320465, -0.24354863166809082, 0.1875339150428772, 0.21212255954742432, -0.42634880542755127, 0.15767095983028412, 0.40174567699432373, 0.329196572303772, 0.3743078410625458, 0.614740788936615, -0.25484776496887207, 0.44109416007995605, 0.17502182722091675, 0.11253980547189713, 0.10754243284463882, -0.2589999735355377, -0.2935234010219574, 0.4176081418991089, -0.22390031814575195, 0.09114881604909897, 0.028061704710125923, 0.27542608976364136, 0.2909401059150696, -0.2358400523662567, 0.46772775053977966, 0.5002925992012024, -0.10605141520500183, 0.3253600597381592, -0.21217438578605652, -0.2624131739139557, 0.12942031025886536, 0.16811411082744598, 0.1687634289264679, -0.10443657636642456, -0.22626414895057678, 0.21720248460769653, 0.2736007869243622, -0.16012558341026306, -0.13353294134140015, 0.014446902088820934, 0.0447469986975193, 0.04505479335784912, -0.2553611993789673, 0.08991997689008713, -0.5541226267814636, 0.2491142749786377, 0.10459452122449875, -0.07205704599618912, 0.29759034514427185, -0.3017670512199402, 0.2677595913410187, -0.08500605821609497, 0.02624450996518135, 0.24394617974758148, -0.06388575583696365, -0.11516024172306061, 0.207393616437912, -0.0009457123233005404, -0.204505056142807, -0.06943557411432266, -0.45423153042793274, 0.03350264951586723, -0.33972904086112976, -0.15070489048957825, 0.34225717186927795, 0.1017848551273346, -0.13040514290332794, 0.16107916831970215, -0.07115011662244797, -0.19750435650348663, 0.06391723453998566, 0.12129218876361847, -0.08295423537492752, -0.010952531360089779, -0.22086651623249054, 0.315073698759079, 0.2363263964653015, 0.330117404460907, 0.051627062261104584, -0.14597563445568085, 0.007590294815599918, -0.3100180923938751, -0.2521987557411194, 0.2785666882991791, -0.031787969172000885, 0.3897753357887268, 0.13793134689331055, -0.3446790277957916, -0.14783136546611786, 0.10223794728517532, 0.0575493723154068, 0.1419413685798645, 0.13987337052822113, 0.12660183012485504, 0.0635654479265213, 0.15172933042049408, -0.4028158187866211, 0.2708544135093689, 0.587833821773529, -0.11926949769258499, -0.06938808411359787, 0.23959268629550934, 0.059559449553489685, -0.169569194316864, -0.033815424889326096, -0.21775807440280914, 0.17166028916835785, 0.16191747784614563, 0.17905253171920776, -0.09990927577018738, 0.12429318577051163, -0.1298576146364212, 0.32239800691604614, 0.2120986431837082, 0.004855862352997065, 0.02219141460955143, 0.11641885340213776, 0.0722033903002739, 0.0016252308851107955, -0.09553908556699753, 0.13059388101100922, 0.3099614679813385, -0.12521980702877045, 0.004458172712475061, 0.19541873037815094, -0.10726458579301834, -0.1237383559346199, -0.026908662170171738, 0.015736518427729607, -0.31785720586776733, -0.13699845969676971, 0.24892355501651764, -0.11663743108510971, 0.03645458444952965, 0.1061018630862236, 0.3592687249183655, 0.12710292637348175, -0.3642115592956543, 0.1010778546333313, -0.11708793044090271, -0.2541911005973816, -0.016068607568740845, 0.15504109859466553, -0.009768555872142315, 0.18844722211360931, 0.08863133937120438, -0.11062977463006973, 0.01585698314011097, -0.13766874372959137, -0.05921164155006409, -0.4576968550682068, 0.07348833978176117, -0.10063379257917404, 0.33561697602272034, -0.22497789561748505, -0.4371751546859741, -0.002617304213345051, -0.06879514455795288, 0.25333353877067566, -0.26742854714393616, 0.00786916445940733, -0.05997281149029732, 0.16825158894062042, -0.2091829776763916, -0.39796963334083557, -0.2773376703262329, 0.16170021891593933, -0.08041811734437943, 0.1121000275015831, 0.3758202791213989, 0.08613166213035583, 0.06143563240766525, 0.19844798743724823, -0.11173908412456512, 0.06450677663087845, -0.3359973132610321, 0.2933344841003418, -0.11332085728645325, -0.2322179228067398, -0.2972748875617981, -0.056919049471616745, -0.054182473570108414, 0.35648342967033386, -0.5518574118614197, 0.17812027037143707, -0.36432188749313354, 0.19894224405288696, -0.005831270944327116, 0.562596321105957, -0.09436584264039993, -0.4863791763782501, -0.015356010757386684, 0.11361094564199448, 0.11119551956653595, 0.01324042771011591, 0.26537036895751953, 0.2140452116727829, 0.2785109281539917, 0.4317784309387207, 0.13376741111278534, 1.1682612895965576, 0.1721539944410324, -0.2398594468832016, -0.2142914980649948, -0.0006975637516006827, -0.026747679337859154, -0.34460920095443726, -0.2672063410282135, 0.3804668188095093, -0.06511107832193375, -0.1218409463763237, 0.2086469978094101, -0.16884472966194153, -0.29335811734199524, -0.03751904517412186, 0.12444552779197693, -0.11183733493089676, -0.28586816787719727, 0.42263609170913696, 0.09176433086395264, 0.24910284578800201, 0.13491281867027283, 0.08863739669322968, -0.49933484196662903, -0.3593021333217621, -0.05251369997859001, -0.21201279759407043, 0.4119943380355835, -0.1316409707069397, -0.2977100610733032, -0.136718288064003, -0.9755146503448486, 0.21768316626548767, 0.03096964955329895, 0.26737216114997864, 0.06919924169778824, -0.35081586241722107, 0.09280794858932495, 0.24251261353492737, 0.8538383841514587, -0.06931935995817184, -0.11682779341936111, -0.00463150255382061, -0.3046582043170929, -0.41526949405670166, 0.036352645605802536, -0.0984102338552475, 0.16871722042560577, 0.3588343560695648, 0.052106570452451706, -0.38088521361351013, -0.12106539309024811, 0.20531819760799408, 0.22320137917995453, -0.03707091137766838, -0.06275879591703415, -0.02380071021616459, -0.1611633151769638, 0.0037854891270399094, 0.19200028479099274, 0.10956167429685593, 0.19188372790813446, -0.15293779969215393, 0.07673919945955276, -0.11668557673692703, 0.3052941560745239, 0.16553878784179688, 0.12453101575374603, -0.06460067629814148, 0.6843847632408142, 0.2821181118488312, -0.004589542746543884, 0.027322912588715553, 0.21222242712974548, 0.031340599060058594, -0.22508229315280914, -0.07588495314121246, 0.0017630698857828975, 0.14972206950187683, 0.31837475299835205, 0.4158209562301636, 0.0518365204334259, -0.10185784846544266, -0.024469943717122078, 0.47591710090637207, -0.04457210749387741, 0.2652137279510498, 0.22571337223052979, 0.14802628755569458, -0.4993142783641815, -0.558079183101654, 0.682327926158905, 0.1741633415222168, 0.16442742943763733, 0.36661186814308167, -0.12836027145385742, -0.21077151596546173, 0.30205780267715454, 0.07867533713579178, 0.6478747129440308, -0.1737247109413147, 0.4172227084636688, 0.31465426087379456, 0.8153581023216248, 0.6308777332305908, -0.09869050979614258, 0.28938353061676025, -0.1265125721693039, -0.11746349185705185, 0.08058807998895645, -0.09408528357744217, -0.28301218152046204, 0.21022921800613403, 0.11972111463546753, 0.2607631981372833, -0.05776793882250786, 0.20221325755119324, -0.2976985573768616, 0.26786231994628906, 0.12155794352293015, -0.48882848024368286, -0.14901088178157806, 0.007863104343414307, -0.025055427104234695, 0.1897146850824356, -0.07386798411607742, 0.1231599897146225, 0.01159150805324316, 0.0521978922188282, -0.05868466943502426, -0.19830217957496643, -0.2293962836265564, 0.27103060483932495, -0.10330304503440857, -0.3641126751899719, -0.058112796396017075, 0.22462019324302673, 0.05541220307350159, 0.102974072098732, 0.05191380903124809, -0.13790911436080933, 0.0740506500005722, 0.06709831207990646, 0.24100007116794586, -0.27213409543037415, 0.40461716055870056, 0.07199373841285706, 0.09430870413780212, 0.09115256369113922, -0.015826962888240814, -0.26698434352874756, -0.36973607540130615, 0.10587810724973679, 0.1580180823802948, -0.095754474401474, -0.5968509912490845, 0.26843342185020447, -0.281364768743515, 0.05032213404774666, 0.0037911562249064445, -0.07319097220897675, -0.08497706800699234, 0.7211557030677795, -0.25734373927116394, -0.18432307243347168, 0.04964745417237282, 0.18478742241859436, 0.12497039139270782, -0.20624755322933197, 0.39218705892562866, 0.3405947983264923, -0.17576144635677338, 0.032253701239824295, 0.2664462924003601, 0.17982515692710876, -0.04687928035855293, 0.14887338876724243, 0.0724651888012886, 0.3175617754459381, 0.045093834400177, 0.43938592076301575, -0.14738954603672028, -0.14339156448841095, -0.18480516970157623, 0.05079716444015503, -0.3096584975719452, 0.2169213742017746, 0.17301294207572937, 0.244023859500885, 0.06642494350671768, 0.20085351169109344, 0.08331262320280075, 0.08566700667142868, -0.16937105357646942, 0.04683125764131546, 0.041539035737514496, 0.23223823308944702, -0.07826759666204453, 0.09800217300653458, 0.11464742571115494, 0.1879304051399231, -0.007133030332624912, 0.11725112795829773, -0.09326259046792984, -0.2555657923221588, 0.012203322723507881, 0.14957080781459808, 0.12009131908416748, -0.23211148381233215, 0.11481643468141556, -0.24946613609790802, -0.2574739456176758, -0.3281426727771759, 0.5115009546279907, 0.19161075353622437, -0.016907058656215668, -0.207760751247406, 0.06093166023492813, 0.13624265789985657, 0.09351956099271774, 0.23893947899341583, 0.011246171779930592, 0.13605064153671265, 0.2009705901145935, 0.19533498585224152, 0.09300737828016281, -0.0966629907488823, -0.2422022521495819, -0.09266684949398041, 0.21893957257270813, 0.04917639121413231, -0.05166232958436012, -0.25048530101776123, -0.30246400833129883, 0.07738897949457169, 0.19291473925113678, 0.3313831686973572, -0.11758769303560257, -0.2975836992263794, 0.2320123165845871, 0.09400396794080734, 0.061803627759218216, -0.024388832971453667, 0.18373632431030273, -0.06884092092514038, 0.1389097273349762, 0.32482588291168213, -0.0041174739599227905, 0.20212393999099731, -0.30897897481918335, -0.04328892379999161, 0.35522234439849854, -0.14687827229499817, 0.01964520663022995, 0.2772550880908966, 0.009076587855815887, -0.07087455689907074, 0.02986782416701317, 0.2787351906299591, 0.193820983171463, 0.1448669731616974, 0.3068631589412689, 0.3006328344345093, -0.013525543734431267, -0.019471144303679466, -0.1182338148355484, -0.4309398829936981, -0.21602801978588104, 0.21034136414527893, -0.23220476508140564, 0.4129004180431366, -0.09530714899301529, -0.0314263291656971, -0.18004001677036285, -0.2994450330734253, -0.07064275443553925, 0.2695069909095764, -0.16463030874729156, -0.19546979665756226, -0.2913828194141388, 0.05391138419508934, 0.3463343679904938, 0.3158676028251648, -0.129776269197464, -0.39055895805358887, -0.008900171145796776, 0.15376287698745728, 0.09233500808477402, -0.05727455019950867, 0.058533281087875366, -0.17113488912582397, 0.4078233242034912, 0.0008701111655682325, 0.03538454696536064, -0.23851841688156128, -0.10402364283800125, -0.35259196162223816, 0.18433980643749237, 0.2311057448387146, 0.24851766228675842, -0.1820407658815384, 0.25313347578048706, -0.002480249386280775, 0.1195366233587265, -0.09975925087928772, 0.11010700464248657, -0.03168913722038269, -0.08664709329605103, 0.35028907656669617, -0.002646174281835556, -0.05336015671491623, -0.0128748444840312, 0.10489083081483841, -0.10128022730350494, -0.20764432847499847, -0.10980451107025146, 0.22515204548835754, -0.13999003171920776, -0.12393912672996521, -0.0363583005964756, -0.39624735713005066, -0.10252021253108978, 0.40846630930900574, -0.3164229989051819, 0.052820686250925064, 0.061071380972862244, 0.046656977385282516, -0.5405780673027039, 0.7912293076515198, 0.2515077590942383, 0.31687602400779724, -0.4403223991394043, 0.19565288722515106, -0.24044804275035858, -0.21351799368858337, -0.2580782473087311, -0.020423196256160736, 0.09346549957990646, 0.3934060037136078, 0.016324901953339577, 0.25440776348114014, -0.31468334794044495, -0.2966713309288025, -0.30432629585266113, 0.2985682487487793, -0.1539192944765091, -0.03097720257937908, -0.5753908157348633, 0.22060328722000122, 0.03126541152596474, -0.3881160318851471, 0.3129315674304962, -0.16373059153556824, -0.12295018136501312, -0.26611432433128357, 0.1841341108083725, 0.3575292229652405, 0.20943918824195862, 0.21812951564788818, -0.005550707690417767, 0.18244165182113647, 0.1804746836423874, 0.03650360554456711, -0.15490257740020752, 0.19351163506507874, -0.21969114243984222, 0.1634928286075592, -0.006640993524342775, 0.3492398262023926, -0.0434846393764019, -0.21721677482128143, 0.012838914059102535, 0.03588167577981949, 0.21512028574943542, -0.1570640206336975, 0.19819095730781555, -0.2509368658065796, 0.05483773723244667, 0.053703851997852325, 0.42354705929756165, 0.6069497466087341, -0.21014779806137085, 0.11473634093999863, -0.3305140435695648, -0.25748327374458313, 0.4739018678665161, -0.7701926231384277, -0.36198750138282776, -0.3649834394454956, 0.003986834082752466, 0.08367177098989487, 0.21293026208877563, -0.18462544679641724, 0.034860122948884964, 0.2442561537027359, -0.1608203500509262, -0.3659534454345703, 0.27327945828437805, -0.14067916572093964, -0.09610885381698608, -0.08903724700212479, 0.183872252702713, -0.1871088147163391, -0.3062255084514618, -0.3018530011177063, -0.38976171612739563 ]
https://github.com/huggingface/datasets/issues/315
[Question] Best way to batch a large dataset?
Thanks! I'm not actually loading in raw text data, that was just the synthetic data I created for this benchmark. A more realistic use case would be a dataset of tokenized examples, which would be a dict of lists of integers. TensorFlow's TextLineDataset greedily loads the dataset into the graph itself, which can lead to out-of-memory errors - one of the main reason I'm so drawn to the `nlp` library is its zero-copy no-RAM approach to dataset loading and mapping. It's quite helpful for running a preprocessing pipeline - a sample ELECTRA pipeline I've built is here: https://github.com/jarednielsen/deep-learning-models/blob/nlp/models/nlp/common/preprocess.py.
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets?
98
[Question] Best way to batch a large dataset? I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets? Thanks! I'm not actually loading in raw text data, that was just the synthetic data I created for this benchmark. A more realistic use case would be a dataset of tokenized examples, which would be a dict of lists of integers. TensorFlow's TextLineDataset greedily loads the dataset into the graph itself, which can lead to out-of-memory errors - one of the main reason I'm so drawn to the `nlp` library is its zero-copy no-RAM approach to dataset loading and mapping. It's quite helpful for running a preprocessing pipeline - a sample ELECTRA pipeline I've built is here: https://github.com/jarednielsen/deep-learning-models/blob/nlp/models/nlp/common/preprocess.py.
[ -0.3098403513431549, -0.3549025058746338, 0.04007013142108917, -0.13144110143184662, 0.04347912594676018, 0.17069244384765625, 0.545406699180603, 0.394595742225647, 0.1853833794593811, 0.07585082948207855, -0.010930435732007027, 0.09057170152664185, -0.045824985951185226, 0.1636856347322464, 0.14648066461086273, -0.3626333773136139, 0.016457589343190193, -0.2653382420539856, -0.026075594127178192, -0.14478838443756104, -0.2456078827381134, -0.29631030559539795, -0.34992751479148865, -0.22726574540138245, -0.31489869952201843, -0.29205140471458435, 0.02210233360528946, -0.178660050034523, 0.21462543308734894, -0.049013011157512665, 0.049041539430618286, 0.021640749648213387, 0.30009543895721436, 0.444857656955719, -0.00011566013563424349, -0.13261905312538147, 0.0600118413567543, -0.044534094631671906, -0.008880354464054108, 0.3237420916557312, -0.061236657202243805, -0.38815274834632874, -0.09791859239339828, -0.4061885178089142, 0.11056124418973923, 0.19236427545547485, 0.19394253194332123, -0.047250375151634216, 0.13588596880435944, -0.032512836158275604, 0.06321760267019272, 0.37276214361190796, -0.02476559206843376, 0.17228858172893524, 0.028884364292025566, -0.0639725774526596, 0.011857914738357067, 0.06099189817905426, 0.27958452701568604, -0.06970088183879852, -0.0007683641742914915, 0.3284050226211548, -0.1674046516418457, -0.015942459926009178, 0.29255732893943787, 0.23139561712741852, 0.12011311948299408, -0.6053040027618408, 0.031975697726011276, 0.372427374124527, 0.2989347279071808, 0.0038550090976059437, -0.27515366673469543, -0.6016528606414795, -0.12167365849018097, -0.26009881496429443, -0.2543846368789673, 0.277985543012619, -0.22824351489543915, -0.17848554253578186, -0.2848556339740753, -0.060750652104616165, -0.11166255176067352, 0.15172748267650604, -0.1742449402809143, 0.18979787826538086, 0.1561433970928192, 0.25138360261917114, 0.18000845611095428, -0.25915783643722534, 0.07230823487043381, -0.2944978177547455, 0.3919678032398224, 0.2885427474975586, -0.5199078321456909, -0.161050483584404, 0.15255405008792877, -0.2357095628976822, 0.06207035481929779, -0.26955488324165344, -0.08921447396278381, 0.007106923498213291, 0.09507863968610764, 0.04642326384782791, 0.18401403725147247, 0.2864987552165985, -0.1267036497592926, 0.0481853112578392, 0.1040562093257904, -0.2625123858451843, -0.24212227761745453, 0.3590072989463806, -0.10837475210428238, -0.2902850806713104, 0.04752177372574806, -0.1952095776796341, -0.3582230806350708, 0.1385158896446228, -0.00881473533809185, 0.03123575635254383, 0.06801183521747589, -0.06761318445205688, -0.031125042587518692, 0.1281125247478485, -0.2842444181442261, 0.07877562195062637, -0.14889656007289886, -0.13956882059574127, -0.380586177110672, 0.16667644679546356, -0.1485891193151474, 0.01749839447438717, -0.0054788473062217236, -0.016314033418893814, 0.13558854162693024, -0.1396760195493698, 0.1104084923863411, -0.18178002536296844, 0.0023551075719296932, 0.2069328874349594, -0.1126754954457283, -0.23203782737255096, 0.135482519865036, 0.23468822240829468, 0.057993922382593155, 0.241053506731987, 0.031283188611269, 0.15585573017597198, -0.20943421125411987, 0.37266966700553894, -0.30990293622016907, -0.33958014845848083, 0.19431394338607788, 0.06684459745883942, 0.016657087951898575, -0.3149910569190979, -0.5945531129837036, 0.3981277048587799, 0.3210080564022064, 0.09307774156332016, -0.07706128060817719, -0.2863112986087799, -0.1548875868320465, -0.24354863166809082, 0.1875339150428772, 0.21212255954742432, -0.42634880542755127, 0.15767095983028412, 0.40174567699432373, 0.329196572303772, 0.3743078410625458, 0.614740788936615, -0.25484776496887207, 0.44109416007995605, 0.17502182722091675, 0.11253980547189713, 0.10754243284463882, -0.2589999735355377, -0.2935234010219574, 0.4176081418991089, -0.22390031814575195, 0.09114881604909897, 0.028061704710125923, 0.27542608976364136, 0.2909401059150696, -0.2358400523662567, 0.46772775053977966, 0.5002925992012024, -0.10605141520500183, 0.3253600597381592, -0.21217438578605652, -0.2624131739139557, 0.12942031025886536, 0.16811411082744598, 0.1687634289264679, -0.10443657636642456, -0.22626414895057678, 0.21720248460769653, 0.2736007869243622, -0.16012558341026306, -0.13353294134140015, 0.014446902088820934, 0.0447469986975193, 0.04505479335784912, -0.2553611993789673, 0.08991997689008713, -0.5541226267814636, 0.2491142749786377, 0.10459452122449875, -0.07205704599618912, 0.29759034514427185, -0.3017670512199402, 0.2677595913410187, -0.08500605821609497, 0.02624450996518135, 0.24394617974758148, -0.06388575583696365, -0.11516024172306061, 0.207393616437912, -0.0009457123233005404, -0.204505056142807, -0.06943557411432266, -0.45423153042793274, 0.03350264951586723, -0.33972904086112976, -0.15070489048957825, 0.34225717186927795, 0.1017848551273346, -0.13040514290332794, 0.16107916831970215, -0.07115011662244797, -0.19750435650348663, 0.06391723453998566, 0.12129218876361847, -0.08295423537492752, -0.010952531360089779, -0.22086651623249054, 0.315073698759079, 0.2363263964653015, 0.330117404460907, 0.051627062261104584, -0.14597563445568085, 0.007590294815599918, -0.3100180923938751, -0.2521987557411194, 0.2785666882991791, -0.031787969172000885, 0.3897753357887268, 0.13793134689331055, -0.3446790277957916, -0.14783136546611786, 0.10223794728517532, 0.0575493723154068, 0.1419413685798645, 0.13987337052822113, 0.12660183012485504, 0.0635654479265213, 0.15172933042049408, -0.4028158187866211, 0.2708544135093689, 0.587833821773529, -0.11926949769258499, -0.06938808411359787, 0.23959268629550934, 0.059559449553489685, -0.169569194316864, -0.033815424889326096, -0.21775807440280914, 0.17166028916835785, 0.16191747784614563, 0.17905253171920776, -0.09990927577018738, 0.12429318577051163, -0.1298576146364212, 0.32239800691604614, 0.2120986431837082, 0.004855862352997065, 0.02219141460955143, 0.11641885340213776, 0.0722033903002739, 0.0016252308851107955, -0.09553908556699753, 0.13059388101100922, 0.3099614679813385, -0.12521980702877045, 0.004458172712475061, 0.19541873037815094, -0.10726458579301834, -0.1237383559346199, -0.026908662170171738, 0.015736518427729607, -0.31785720586776733, -0.13699845969676971, 0.24892355501651764, -0.11663743108510971, 0.03645458444952965, 0.1061018630862236, 0.3592687249183655, 0.12710292637348175, -0.3642115592956543, 0.1010778546333313, -0.11708793044090271, -0.2541911005973816, -0.016068607568740845, 0.15504109859466553, -0.009768555872142315, 0.18844722211360931, 0.08863133937120438, -0.11062977463006973, 0.01585698314011097, -0.13766874372959137, -0.05921164155006409, -0.4576968550682068, 0.07348833978176117, -0.10063379257917404, 0.33561697602272034, -0.22497789561748505, -0.4371751546859741, -0.002617304213345051, -0.06879514455795288, 0.25333353877067566, -0.26742854714393616, 0.00786916445940733, -0.05997281149029732, 0.16825158894062042, -0.2091829776763916, -0.39796963334083557, -0.2773376703262329, 0.16170021891593933, -0.08041811734437943, 0.1121000275015831, 0.3758202791213989, 0.08613166213035583, 0.06143563240766525, 0.19844798743724823, -0.11173908412456512, 0.06450677663087845, -0.3359973132610321, 0.2933344841003418, -0.11332085728645325, -0.2322179228067398, -0.2972748875617981, -0.056919049471616745, -0.054182473570108414, 0.35648342967033386, -0.5518574118614197, 0.17812027037143707, -0.36432188749313354, 0.19894224405288696, -0.005831270944327116, 0.562596321105957, -0.09436584264039993, -0.4863791763782501, -0.015356010757386684, 0.11361094564199448, 0.11119551956653595, 0.01324042771011591, 0.26537036895751953, 0.2140452116727829, 0.2785109281539917, 0.4317784309387207, 0.13376741111278534, 1.1682612895965576, 0.1721539944410324, -0.2398594468832016, -0.2142914980649948, -0.0006975637516006827, -0.026747679337859154, -0.34460920095443726, -0.2672063410282135, 0.3804668188095093, -0.06511107832193375, -0.1218409463763237, 0.2086469978094101, -0.16884472966194153, -0.29335811734199524, -0.03751904517412186, 0.12444552779197693, -0.11183733493089676, -0.28586816787719727, 0.42263609170913696, 0.09176433086395264, 0.24910284578800201, 0.13491281867027283, 0.08863739669322968, -0.49933484196662903, -0.3593021333217621, -0.05251369997859001, -0.21201279759407043, 0.4119943380355835, -0.1316409707069397, -0.2977100610733032, -0.136718288064003, -0.9755146503448486, 0.21768316626548767, 0.03096964955329895, 0.26737216114997864, 0.06919924169778824, -0.35081586241722107, 0.09280794858932495, 0.24251261353492737, 0.8538383841514587, -0.06931935995817184, -0.11682779341936111, -0.00463150255382061, -0.3046582043170929, -0.41526949405670166, 0.036352645605802536, -0.0984102338552475, 0.16871722042560577, 0.3588343560695648, 0.052106570452451706, -0.38088521361351013, -0.12106539309024811, 0.20531819760799408, 0.22320137917995453, -0.03707091137766838, -0.06275879591703415, -0.02380071021616459, -0.1611633151769638, 0.0037854891270399094, 0.19200028479099274, 0.10956167429685593, 0.19188372790813446, -0.15293779969215393, 0.07673919945955276, -0.11668557673692703, 0.3052941560745239, 0.16553878784179688, 0.12453101575374603, -0.06460067629814148, 0.6843847632408142, 0.2821181118488312, -0.004589542746543884, 0.027322912588715553, 0.21222242712974548, 0.031340599060058594, -0.22508229315280914, -0.07588495314121246, 0.0017630698857828975, 0.14972206950187683, 0.31837475299835205, 0.4158209562301636, 0.0518365204334259, -0.10185784846544266, -0.024469943717122078, 0.47591710090637207, -0.04457210749387741, 0.2652137279510498, 0.22571337223052979, 0.14802628755569458, -0.4993142783641815, -0.558079183101654, 0.682327926158905, 0.1741633415222168, 0.16442742943763733, 0.36661186814308167, -0.12836027145385742, -0.21077151596546173, 0.30205780267715454, 0.07867533713579178, 0.6478747129440308, -0.1737247109413147, 0.4172227084636688, 0.31465426087379456, 0.8153581023216248, 0.6308777332305908, -0.09869050979614258, 0.28938353061676025, -0.1265125721693039, -0.11746349185705185, 0.08058807998895645, -0.09408528357744217, -0.28301218152046204, 0.21022921800613403, 0.11972111463546753, 0.2607631981372833, -0.05776793882250786, 0.20221325755119324, -0.2976985573768616, 0.26786231994628906, 0.12155794352293015, -0.48882848024368286, -0.14901088178157806, 0.007863104343414307, -0.025055427104234695, 0.1897146850824356, -0.07386798411607742, 0.1231599897146225, 0.01159150805324316, 0.0521978922188282, -0.05868466943502426, -0.19830217957496643, -0.2293962836265564, 0.27103060483932495, -0.10330304503440857, -0.3641126751899719, -0.058112796396017075, 0.22462019324302673, 0.05541220307350159, 0.102974072098732, 0.05191380903124809, -0.13790911436080933, 0.0740506500005722, 0.06709831207990646, 0.24100007116794586, -0.27213409543037415, 0.40461716055870056, 0.07199373841285706, 0.09430870413780212, 0.09115256369113922, -0.015826962888240814, -0.26698434352874756, -0.36973607540130615, 0.10587810724973679, 0.1580180823802948, -0.095754474401474, -0.5968509912490845, 0.26843342185020447, -0.281364768743515, 0.05032213404774666, 0.0037911562249064445, -0.07319097220897675, -0.08497706800699234, 0.7211557030677795, -0.25734373927116394, -0.18432307243347168, 0.04964745417237282, 0.18478742241859436, 0.12497039139270782, -0.20624755322933197, 0.39218705892562866, 0.3405947983264923, -0.17576144635677338, 0.032253701239824295, 0.2664462924003601, 0.17982515692710876, -0.04687928035855293, 0.14887338876724243, 0.0724651888012886, 0.3175617754459381, 0.045093834400177, 0.43938592076301575, -0.14738954603672028, -0.14339156448841095, -0.18480516970157623, 0.05079716444015503, -0.3096584975719452, 0.2169213742017746, 0.17301294207572937, 0.244023859500885, 0.06642494350671768, 0.20085351169109344, 0.08331262320280075, 0.08566700667142868, -0.16937105357646942, 0.04683125764131546, 0.041539035737514496, 0.23223823308944702, -0.07826759666204453, 0.09800217300653458, 0.11464742571115494, 0.1879304051399231, -0.007133030332624912, 0.11725112795829773, -0.09326259046792984, -0.2555657923221588, 0.012203322723507881, 0.14957080781459808, 0.12009131908416748, -0.23211148381233215, 0.11481643468141556, -0.24946613609790802, -0.2574739456176758, -0.3281426727771759, 0.5115009546279907, 0.19161075353622437, -0.016907058656215668, -0.207760751247406, 0.06093166023492813, 0.13624265789985657, 0.09351956099271774, 0.23893947899341583, 0.011246171779930592, 0.13605064153671265, 0.2009705901145935, 0.19533498585224152, 0.09300737828016281, -0.0966629907488823, -0.2422022521495819, -0.09266684949398041, 0.21893957257270813, 0.04917639121413231, -0.05166232958436012, -0.25048530101776123, -0.30246400833129883, 0.07738897949457169, 0.19291473925113678, 0.3313831686973572, -0.11758769303560257, -0.2975836992263794, 0.2320123165845871, 0.09400396794080734, 0.061803627759218216, -0.024388832971453667, 0.18373632431030273, -0.06884092092514038, 0.1389097273349762, 0.32482588291168213, -0.0041174739599227905, 0.20212393999099731, -0.30897897481918335, -0.04328892379999161, 0.35522234439849854, -0.14687827229499817, 0.01964520663022995, 0.2772550880908966, 0.009076587855815887, -0.07087455689907074, 0.02986782416701317, 0.2787351906299591, 0.193820983171463, 0.1448669731616974, 0.3068631589412689, 0.3006328344345093, -0.013525543734431267, -0.019471144303679466, -0.1182338148355484, -0.4309398829936981, -0.21602801978588104, 0.21034136414527893, -0.23220476508140564, 0.4129004180431366, -0.09530714899301529, -0.0314263291656971, -0.18004001677036285, -0.2994450330734253, -0.07064275443553925, 0.2695069909095764, -0.16463030874729156, -0.19546979665756226, -0.2913828194141388, 0.05391138419508934, 0.3463343679904938, 0.3158676028251648, -0.129776269197464, -0.39055895805358887, -0.008900171145796776, 0.15376287698745728, 0.09233500808477402, -0.05727455019950867, 0.058533281087875366, -0.17113488912582397, 0.4078233242034912, 0.0008701111655682325, 0.03538454696536064, -0.23851841688156128, -0.10402364283800125, -0.35259196162223816, 0.18433980643749237, 0.2311057448387146, 0.24851766228675842, -0.1820407658815384, 0.25313347578048706, -0.002480249386280775, 0.1195366233587265, -0.09975925087928772, 0.11010700464248657, -0.03168913722038269, -0.08664709329605103, 0.35028907656669617, -0.002646174281835556, -0.05336015671491623, -0.0128748444840312, 0.10489083081483841, -0.10128022730350494, -0.20764432847499847, -0.10980451107025146, 0.22515204548835754, -0.13999003171920776, -0.12393912672996521, -0.0363583005964756, -0.39624735713005066, -0.10252021253108978, 0.40846630930900574, -0.3164229989051819, 0.052820686250925064, 0.061071380972862244, 0.046656977385282516, -0.5405780673027039, 0.7912293076515198, 0.2515077590942383, 0.31687602400779724, -0.4403223991394043, 0.19565288722515106, -0.24044804275035858, -0.21351799368858337, -0.2580782473087311, -0.020423196256160736, 0.09346549957990646, 0.3934060037136078, 0.016324901953339577, 0.25440776348114014, -0.31468334794044495, -0.2966713309288025, -0.30432629585266113, 0.2985682487487793, -0.1539192944765091, -0.03097720257937908, -0.5753908157348633, 0.22060328722000122, 0.03126541152596474, -0.3881160318851471, 0.3129315674304962, -0.16373059153556824, -0.12295018136501312, -0.26611432433128357, 0.1841341108083725, 0.3575292229652405, 0.20943918824195862, 0.21812951564788818, -0.005550707690417767, 0.18244165182113647, 0.1804746836423874, 0.03650360554456711, -0.15490257740020752, 0.19351163506507874, -0.21969114243984222, 0.1634928286075592, -0.006640993524342775, 0.3492398262023926, -0.0434846393764019, -0.21721677482128143, 0.012838914059102535, 0.03588167577981949, 0.21512028574943542, -0.1570640206336975, 0.19819095730781555, -0.2509368658065796, 0.05483773723244667, 0.053703851997852325, 0.42354705929756165, 0.6069497466087341, -0.21014779806137085, 0.11473634093999863, -0.3305140435695648, -0.25748327374458313, 0.4739018678665161, -0.7701926231384277, -0.36198750138282776, -0.3649834394454956, 0.003986834082752466, 0.08367177098989487, 0.21293026208877563, -0.18462544679641724, 0.034860122948884964, 0.2442561537027359, -0.1608203500509262, -0.3659534454345703, 0.27327945828437805, -0.14067916572093964, -0.09610885381698608, -0.08903724700212479, 0.183872252702713, -0.1871088147163391, -0.3062255084514618, -0.3018530011177063, -0.38976171612739563 ]
https://github.com/huggingface/datasets/issues/315
[Question] Best way to batch a large dataset?
Sorry, I think I badly expressed myself, my bad. What I suggested is to compare with the usual loading textual data in pure TF with `TextLineDataset` with `nlp`. I know it is not recommended with very large datasets to use it, but I was curious to see how it behaves compared to a processing with `nlp` on smaller datasets. BTW your script looks very interesting, thanks for sharing!!
I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets?
68
[Question] Best way to batch a large dataset? I'm training on large datasets such as Wikipedia and BookCorpus. Following the instructions in [the tutorial notebook](https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb), I see the following recommended for TensorFlow: ```python train_tf_dataset = train_tf_dataset.filter(remove_none_values, load_from_cache_file=False) columns = ['input_ids', 'token_type_ids', 'attention_mask', 'start_positions', 'end_positions'] train_tf_dataset.set_format(type='tensorflow', columns=columns) features = {x: train_tf_dataset[x].to_tensor(default_value=0, shape=[None, tokenizer.max_len]) for x in columns[:3]} labels = {"output_1": train_tf_dataset["start_positions"].to_tensor(default_value=0, shape=[None, 1])} labels["output_2"] = train_tf_dataset["end_positions"].to_tensor(default_value=0, shape=[None, 1]) ### Question about this last line ### tfdataset = tf.data.Dataset.from_tensor_slices((features, labels)).batch(8) ``` This code works for something like WikiText-2. However, scaling up to WikiText-103, the last line takes 5-10 minutes to run. I assume it is because tf.data.Dataset.from_tensor_slices() is pulling everything into memory, not lazily loading. This approach won't scale up to datasets 25x larger such as Wikipedia. So I tried manual batching using `dataset.select()`: ```python idxs = np.random.randint(len(dataset), size=bsz) batch = dataset.select(idxs).map(lambda example: {"input_ids": tokenizer(example["text"])}) tf_batch = tf.constant(batch["ids"], dtype=tf.int64) ``` This appears to create a new Apache Arrow dataset with every batch I grab, and then tries to cache it. The runtime of `dataset.select([0, 1])` appears to be much worse than `dataset[:2]`. So using `select()` doesn't seem to be performant enough for a training loop. Is there a performant scalable way to lazily load batches of nlp Datasets? Sorry, I think I badly expressed myself, my bad. What I suggested is to compare with the usual loading textual data in pure TF with `TextLineDataset` with `nlp`. I know it is not recommended with very large datasets to use it, but I was curious to see how it behaves compared to a processing with `nlp` on smaller datasets. BTW your script looks very interesting, thanks for sharing!!
[ -0.3098403513431549, -0.3549025058746338, 0.04007013142108917, -0.13144110143184662, 0.04347912594676018, 0.17069244384765625, 0.545406699180603, 0.394595742225647, 0.1853833794593811, 0.07585082948207855, -0.010930435732007027, 0.09057170152664185, -0.045824985951185226, 0.1636856347322464, 0.14648066461086273, -0.3626333773136139, 0.016457589343190193, -0.2653382420539856, -0.026075594127178192, -0.14478838443756104, -0.2456078827381134, -0.29631030559539795, -0.34992751479148865, -0.22726574540138245, -0.31489869952201843, -0.29205140471458435, 0.02210233360528946, -0.178660050034523, 0.21462543308734894, -0.049013011157512665, 0.049041539430618286, 0.021640749648213387, 0.30009543895721436, 0.444857656955719, -0.00011566013563424349, -0.13261905312538147, 0.0600118413567543, -0.044534094631671906, -0.008880354464054108, 0.3237420916557312, -0.061236657202243805, -0.38815274834632874, -0.09791859239339828, -0.4061885178089142, 0.11056124418973923, 0.19236427545547485, 0.19394253194332123, -0.047250375151634216, 0.13588596880435944, -0.032512836158275604, 0.06321760267019272, 0.37276214361190796, -0.02476559206843376, 0.17228858172893524, 0.028884364292025566, -0.0639725774526596, 0.011857914738357067, 0.06099189817905426, 0.27958452701568604, -0.06970088183879852, -0.0007683641742914915, 0.3284050226211548, -0.1674046516418457, -0.015942459926009178, 0.29255732893943787, 0.23139561712741852, 0.12011311948299408, -0.6053040027618408, 0.031975697726011276, 0.372427374124527, 0.2989347279071808, 0.0038550090976059437, -0.27515366673469543, -0.6016528606414795, -0.12167365849018097, -0.26009881496429443, -0.2543846368789673, 0.277985543012619, -0.22824351489543915, -0.17848554253578186, -0.2848556339740753, -0.060750652104616165, -0.11166255176067352, 0.15172748267650604, -0.1742449402809143, 0.18979787826538086, 0.1561433970928192, 0.25138360261917114, 0.18000845611095428, -0.25915783643722534, 0.07230823487043381, -0.2944978177547455, 0.3919678032398224, 0.2885427474975586, -0.5199078321456909, -0.161050483584404, 0.15255405008792877, -0.2357095628976822, 0.06207035481929779, -0.26955488324165344, -0.08921447396278381, 0.007106923498213291, 0.09507863968610764, 0.04642326384782791, 0.18401403725147247, 0.2864987552165985, -0.1267036497592926, 0.0481853112578392, 0.1040562093257904, -0.2625123858451843, -0.24212227761745453, 0.3590072989463806, -0.10837475210428238, -0.2902850806713104, 0.04752177372574806, -0.1952095776796341, -0.3582230806350708, 0.1385158896446228, -0.00881473533809185, 0.03123575635254383, 0.06801183521747589, -0.06761318445205688, -0.031125042587518692, 0.1281125247478485, -0.2842444181442261, 0.07877562195062637, -0.14889656007289886, -0.13956882059574127, -0.380586177110672, 0.16667644679546356, -0.1485891193151474, 0.01749839447438717, -0.0054788473062217236, -0.016314033418893814, 0.13558854162693024, -0.1396760195493698, 0.1104084923863411, -0.18178002536296844, 0.0023551075719296932, 0.2069328874349594, -0.1126754954457283, -0.23203782737255096, 0.135482519865036, 0.23468822240829468, 0.057993922382593155, 0.241053506731987, 0.031283188611269, 0.15585573017597198, -0.20943421125411987, 0.37266966700553894, -0.30990293622016907, -0.33958014845848083, 0.19431394338607788, 0.06684459745883942, 0.016657087951898575, -0.3149910569190979, -0.5945531129837036, 0.3981277048587799, 0.3210080564022064, 0.09307774156332016, -0.07706128060817719, -0.2863112986087799, -0.1548875868320465, -0.24354863166809082, 0.1875339150428772, 0.21212255954742432, -0.42634880542755127, 0.15767095983028412, 0.40174567699432373, 0.329196572303772, 0.3743078410625458, 0.614740788936615, -0.25484776496887207, 0.44109416007995605, 0.17502182722091675, 0.11253980547189713, 0.10754243284463882, -0.2589999735355377, -0.2935234010219574, 0.4176081418991089, -0.22390031814575195, 0.09114881604909897, 0.028061704710125923, 0.27542608976364136, 0.2909401059150696, -0.2358400523662567, 0.46772775053977966, 0.5002925992012024, -0.10605141520500183, 0.3253600597381592, -0.21217438578605652, -0.2624131739139557, 0.12942031025886536, 0.16811411082744598, 0.1687634289264679, -0.10443657636642456, -0.22626414895057678, 0.21720248460769653, 0.2736007869243622, -0.16012558341026306, -0.13353294134140015, 0.014446902088820934, 0.0447469986975193, 0.04505479335784912, -0.2553611993789673, 0.08991997689008713, -0.5541226267814636, 0.2491142749786377, 0.10459452122449875, -0.07205704599618912, 0.29759034514427185, -0.3017670512199402, 0.2677595913410187, -0.08500605821609497, 0.02624450996518135, 0.24394617974758148, -0.06388575583696365, -0.11516024172306061, 0.207393616437912, -0.0009457123233005404, -0.204505056142807, -0.06943557411432266, -0.45423153042793274, 0.03350264951586723, -0.33972904086112976, -0.15070489048957825, 0.34225717186927795, 0.1017848551273346, -0.13040514290332794, 0.16107916831970215, -0.07115011662244797, -0.19750435650348663, 0.06391723453998566, 0.12129218876361847, -0.08295423537492752, -0.010952531360089779, -0.22086651623249054, 0.315073698759079, 0.2363263964653015, 0.330117404460907, 0.051627062261104584, -0.14597563445568085, 0.007590294815599918, -0.3100180923938751, -0.2521987557411194, 0.2785666882991791, -0.031787969172000885, 0.3897753357887268, 0.13793134689331055, -0.3446790277957916, -0.14783136546611786, 0.10223794728517532, 0.0575493723154068, 0.1419413685798645, 0.13987337052822113, 0.12660183012485504, 0.0635654479265213, 0.15172933042049408, -0.4028158187866211, 0.2708544135093689, 0.587833821773529, -0.11926949769258499, -0.06938808411359787, 0.23959268629550934, 0.059559449553489685, -0.169569194316864, -0.033815424889326096, -0.21775807440280914, 0.17166028916835785, 0.16191747784614563, 0.17905253171920776, -0.09990927577018738, 0.12429318577051163, -0.1298576146364212, 0.32239800691604614, 0.2120986431837082, 0.004855862352997065, 0.02219141460955143, 0.11641885340213776, 0.0722033903002739, 0.0016252308851107955, -0.09553908556699753, 0.13059388101100922, 0.3099614679813385, -0.12521980702877045, 0.004458172712475061, 0.19541873037815094, -0.10726458579301834, -0.1237383559346199, -0.026908662170171738, 0.015736518427729607, -0.31785720586776733, -0.13699845969676971, 0.24892355501651764, -0.11663743108510971, 0.03645458444952965, 0.1061018630862236, 0.3592687249183655, 0.12710292637348175, -0.3642115592956543, 0.1010778546333313, -0.11708793044090271, -0.2541911005973816, -0.016068607568740845, 0.15504109859466553, -0.009768555872142315, 0.18844722211360931, 0.08863133937120438, -0.11062977463006973, 0.01585698314011097, -0.13766874372959137, -0.05921164155006409, -0.4576968550682068, 0.07348833978176117, -0.10063379257917404, 0.33561697602272034, -0.22497789561748505, -0.4371751546859741, -0.002617304213345051, -0.06879514455795288, 0.25333353877067566, -0.26742854714393616, 0.00786916445940733, -0.05997281149029732, 0.16825158894062042, -0.2091829776763916, -0.39796963334083557, -0.2773376703262329, 0.16170021891593933, -0.08041811734437943, 0.1121000275015831, 0.3758202791213989, 0.08613166213035583, 0.06143563240766525, 0.19844798743724823, -0.11173908412456512, 0.06450677663087845, -0.3359973132610321, 0.2933344841003418, -0.11332085728645325, -0.2322179228067398, -0.2972748875617981, -0.056919049471616745, -0.054182473570108414, 0.35648342967033386, -0.5518574118614197, 0.17812027037143707, -0.36432188749313354, 0.19894224405288696, -0.005831270944327116, 0.562596321105957, -0.09436584264039993, -0.4863791763782501, -0.015356010757386684, 0.11361094564199448, 0.11119551956653595, 0.01324042771011591, 0.26537036895751953, 0.2140452116727829, 0.2785109281539917, 0.4317784309387207, 0.13376741111278534, 1.1682612895965576, 0.1721539944410324, -0.2398594468832016, -0.2142914980649948, -0.0006975637516006827, -0.026747679337859154, -0.34460920095443726, -0.2672063410282135, 0.3804668188095093, -0.06511107832193375, -0.1218409463763237, 0.2086469978094101, -0.16884472966194153, -0.29335811734199524, -0.03751904517412186, 0.12444552779197693, -0.11183733493089676, -0.28586816787719727, 0.42263609170913696, 0.09176433086395264, 0.24910284578800201, 0.13491281867027283, 0.08863739669322968, -0.49933484196662903, -0.3593021333217621, -0.05251369997859001, -0.21201279759407043, 0.4119943380355835, -0.1316409707069397, -0.2977100610733032, -0.136718288064003, -0.9755146503448486, 0.21768316626548767, 0.03096964955329895, 0.26737216114997864, 0.06919924169778824, -0.35081586241722107, 0.09280794858932495, 0.24251261353492737, 0.8538383841514587, -0.06931935995817184, -0.11682779341936111, -0.00463150255382061, -0.3046582043170929, -0.41526949405670166, 0.036352645605802536, -0.0984102338552475, 0.16871722042560577, 0.3588343560695648, 0.052106570452451706, -0.38088521361351013, -0.12106539309024811, 0.20531819760799408, 0.22320137917995453, -0.03707091137766838, -0.06275879591703415, -0.02380071021616459, -0.1611633151769638, 0.0037854891270399094, 0.19200028479099274, 0.10956167429685593, 0.19188372790813446, -0.15293779969215393, 0.07673919945955276, -0.11668557673692703, 0.3052941560745239, 0.16553878784179688, 0.12453101575374603, -0.06460067629814148, 0.6843847632408142, 0.2821181118488312, -0.004589542746543884, 0.027322912588715553, 0.21222242712974548, 0.031340599060058594, -0.22508229315280914, -0.07588495314121246, 0.0017630698857828975, 0.14972206950187683, 0.31837475299835205, 0.4158209562301636, 0.0518365204334259, -0.10185784846544266, -0.024469943717122078, 0.47591710090637207, -0.04457210749387741, 0.2652137279510498, 0.22571337223052979, 0.14802628755569458, -0.4993142783641815, -0.558079183101654, 0.682327926158905, 0.1741633415222168, 0.16442742943763733, 0.36661186814308167, -0.12836027145385742, -0.21077151596546173, 0.30205780267715454, 0.07867533713579178, 0.6478747129440308, -0.1737247109413147, 0.4172227084636688, 0.31465426087379456, 0.8153581023216248, 0.6308777332305908, -0.09869050979614258, 0.28938353061676025, -0.1265125721693039, -0.11746349185705185, 0.08058807998895645, -0.09408528357744217, -0.28301218152046204, 0.21022921800613403, 0.11972111463546753, 0.2607631981372833, -0.05776793882250786, 0.20221325755119324, -0.2976985573768616, 0.26786231994628906, 0.12155794352293015, -0.48882848024368286, -0.14901088178157806, 0.007863104343414307, -0.025055427104234695, 0.1897146850824356, -0.07386798411607742, 0.1231599897146225, 0.01159150805324316, 0.0521978922188282, -0.05868466943502426, -0.19830217957496643, -0.2293962836265564, 0.27103060483932495, -0.10330304503440857, -0.3641126751899719, -0.058112796396017075, 0.22462019324302673, 0.05541220307350159, 0.102974072098732, 0.05191380903124809, -0.13790911436080933, 0.0740506500005722, 0.06709831207990646, 0.24100007116794586, -0.27213409543037415, 0.40461716055870056, 0.07199373841285706, 0.09430870413780212, 0.09115256369113922, -0.015826962888240814, -0.26698434352874756, -0.36973607540130615, 0.10587810724973679, 0.1580180823802948, -0.095754474401474, -0.5968509912490845, 0.26843342185020447, -0.281364768743515, 0.05032213404774666, 0.0037911562249064445, -0.07319097220897675, -0.08497706800699234, 0.7211557030677795, -0.25734373927116394, -0.18432307243347168, 0.04964745417237282, 0.18478742241859436, 0.12497039139270782, -0.20624755322933197, 0.39218705892562866, 0.3405947983264923, -0.17576144635677338, 0.032253701239824295, 0.2664462924003601, 0.17982515692710876, -0.04687928035855293, 0.14887338876724243, 0.0724651888012886, 0.3175617754459381, 0.045093834400177, 0.43938592076301575, -0.14738954603672028, -0.14339156448841095, -0.18480516970157623, 0.05079716444015503, -0.3096584975719452, 0.2169213742017746, 0.17301294207572937, 0.244023859500885, 0.06642494350671768, 0.20085351169109344, 0.08331262320280075, 0.08566700667142868, -0.16937105357646942, 0.04683125764131546, 0.041539035737514496, 0.23223823308944702, -0.07826759666204453, 0.09800217300653458, 0.11464742571115494, 0.1879304051399231, -0.007133030332624912, 0.11725112795829773, -0.09326259046792984, -0.2555657923221588, 0.012203322723507881, 0.14957080781459808, 0.12009131908416748, -0.23211148381233215, 0.11481643468141556, -0.24946613609790802, -0.2574739456176758, -0.3281426727771759, 0.5115009546279907, 0.19161075353622437, -0.016907058656215668, -0.207760751247406, 0.06093166023492813, 0.13624265789985657, 0.09351956099271774, 0.23893947899341583, 0.011246171779930592, 0.13605064153671265, 0.2009705901145935, 0.19533498585224152, 0.09300737828016281, -0.0966629907488823, -0.2422022521495819, -0.09266684949398041, 0.21893957257270813, 0.04917639121413231, -0.05166232958436012, -0.25048530101776123, -0.30246400833129883, 0.07738897949457169, 0.19291473925113678, 0.3313831686973572, -0.11758769303560257, -0.2975836992263794, 0.2320123165845871, 0.09400396794080734, 0.061803627759218216, -0.024388832971453667, 0.18373632431030273, -0.06884092092514038, 0.1389097273349762, 0.32482588291168213, -0.0041174739599227905, 0.20212393999099731, -0.30897897481918335, -0.04328892379999161, 0.35522234439849854, -0.14687827229499817, 0.01964520663022995, 0.2772550880908966, 0.009076587855815887, -0.07087455689907074, 0.02986782416701317, 0.2787351906299591, 0.193820983171463, 0.1448669731616974, 0.3068631589412689, 0.3006328344345093, -0.013525543734431267, -0.019471144303679466, -0.1182338148355484, -0.4309398829936981, -0.21602801978588104, 0.21034136414527893, -0.23220476508140564, 0.4129004180431366, -0.09530714899301529, -0.0314263291656971, -0.18004001677036285, -0.2994450330734253, -0.07064275443553925, 0.2695069909095764, -0.16463030874729156, -0.19546979665756226, -0.2913828194141388, 0.05391138419508934, 0.3463343679904938, 0.3158676028251648, -0.129776269197464, -0.39055895805358887, -0.008900171145796776, 0.15376287698745728, 0.09233500808477402, -0.05727455019950867, 0.058533281087875366, -0.17113488912582397, 0.4078233242034912, 0.0008701111655682325, 0.03538454696536064, -0.23851841688156128, -0.10402364283800125, -0.35259196162223816, 0.18433980643749237, 0.2311057448387146, 0.24851766228675842, -0.1820407658815384, 0.25313347578048706, -0.002480249386280775, 0.1195366233587265, -0.09975925087928772, 0.11010700464248657, -0.03168913722038269, -0.08664709329605103, 0.35028907656669617, -0.002646174281835556, -0.05336015671491623, -0.0128748444840312, 0.10489083081483841, -0.10128022730350494, -0.20764432847499847, -0.10980451107025146, 0.22515204548835754, -0.13999003171920776, -0.12393912672996521, -0.0363583005964756, -0.39624735713005066, -0.10252021253108978, 0.40846630930900574, -0.3164229989051819, 0.052820686250925064, 0.061071380972862244, 0.046656977385282516, -0.5405780673027039, 0.7912293076515198, 0.2515077590942383, 0.31687602400779724, -0.4403223991394043, 0.19565288722515106, -0.24044804275035858, -0.21351799368858337, -0.2580782473087311, -0.020423196256160736, 0.09346549957990646, 0.3934060037136078, 0.016324901953339577, 0.25440776348114014, -0.31468334794044495, -0.2966713309288025, -0.30432629585266113, 0.2985682487487793, -0.1539192944765091, -0.03097720257937908, -0.5753908157348633, 0.22060328722000122, 0.03126541152596474, -0.3881160318851471, 0.3129315674304962, -0.16373059153556824, -0.12295018136501312, -0.26611432433128357, 0.1841341108083725, 0.3575292229652405, 0.20943918824195862, 0.21812951564788818, -0.005550707690417767, 0.18244165182113647, 0.1804746836423874, 0.03650360554456711, -0.15490257740020752, 0.19351163506507874, -0.21969114243984222, 0.1634928286075592, -0.006640993524342775, 0.3492398262023926, -0.0434846393764019, -0.21721677482128143, 0.012838914059102535, 0.03588167577981949, 0.21512028574943542, -0.1570640206336975, 0.19819095730781555, -0.2509368658065796, 0.05483773723244667, 0.053703851997852325, 0.42354705929756165, 0.6069497466087341, -0.21014779806137085, 0.11473634093999863, -0.3305140435695648, -0.25748327374458313, 0.4739018678665161, -0.7701926231384277, -0.36198750138282776, -0.3649834394454956, 0.003986834082752466, 0.08367177098989487, 0.21293026208877563, -0.18462544679641724, 0.034860122948884964, 0.2442561537027359, -0.1608203500509262, -0.3659534454345703, 0.27327945828437805, -0.14067916572093964, -0.09610885381698608, -0.08903724700212479, 0.183872252702713, -0.1871088147163391, -0.3062255084514618, -0.3018530011177063, -0.38976171612739563 ]
https://github.com/huggingface/datasets/issues/312
[Feature request] Add `shard()` method to dataset
Hi Jared, Interesting, thanks for raising this question. You can also do that after loading with `dataset.select()` or `dataset.filter()` which let you keep only a specific subset of rows in a dataset. What is your use-case for sharding?
Currently, to shard a dataset into 10 pieces on different ranks, you can run ```python rank = 3 # for example size = 10 dataset = nlp.load_dataset('wikitext', 'wikitext-2-raw-v1', split=f"train[{rank*10}%:{(rank+1)*10}%]") ``` However, this breaks down if you have a number of ranks that doesn't divide cleanly into 100, such as 64 ranks. Is there interest in adding a method shard() that looks like this? ```python rank = 3 size = 64 dataset = nlp.load_dataset("wikitext", "wikitext-2-raw-v1", split="train").shard(rank=rank, size=size) ``` TensorFlow has a similar API: https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shard. I'd be happy to contribute this code.
38
[Feature request] Add `shard()` method to dataset Currently, to shard a dataset into 10 pieces on different ranks, you can run ```python rank = 3 # for example size = 10 dataset = nlp.load_dataset('wikitext', 'wikitext-2-raw-v1', split=f"train[{rank*10}%:{(rank+1)*10}%]") ``` However, this breaks down if you have a number of ranks that doesn't divide cleanly into 100, such as 64 ranks. Is there interest in adding a method shard() that looks like this? ```python rank = 3 size = 64 dataset = nlp.load_dataset("wikitext", "wikitext-2-raw-v1", split="train").shard(rank=rank, size=size) ``` TensorFlow has a similar API: https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shard. I'd be happy to contribute this code. Hi Jared, Interesting, thanks for raising this question. You can also do that after loading with `dataset.select()` or `dataset.filter()` which let you keep only a specific subset of rows in a dataset. What is your use-case for sharding?
[ -0.09021907299757004, 0.033544521778821945, -0.13852661848068237, -0.010493529960513115, -0.12532074749469757, -0.03916251286864281, 0.45831575989723206, 0.4131177067756653, -0.11074069142341614, 0.18661794066429138, 0.1924448162317276, 0.2701655626296997, -0.20456449687480927, 0.33234164118766785, 0.5994430184364319, -0.4415320158004761, -0.10181890428066254, 0.08527131378650665, 0.14987915754318237, 0.186881422996521, -0.06236134469509125, -0.0934397503733635, -0.05210372433066368, -0.37565284967422485, -0.07383810728788376, 0.0836317390203476, -0.10620565712451935, -0.21920843422412872, 0.24959701299667358, -0.20339705049991608, 0.19814933836460114, 0.012835496105253696, 0.17643532156944275, 0.10890407115221024, -0.00011932758934563026, -0.16190272569656372, 0.17325250804424286, 0.14185135066509247, -0.04076126962900162, -0.13415847718715668, -0.4363875985145569, -0.3930356800556183, -0.024860404431819916, -0.268524169921875, -0.076325923204422, 0.4600840210914612, 0.03768176957964897, 0.05049645155668259, 0.4158013164997101, 0.04527273029088974, 0.057458363473415375, 0.014458836056292057, 0.07067430019378662, 0.22108294069766998, 0.4204324185848236, 0.13984210789203644, -0.2779010832309723, 0.0068354676477611065, -0.025893907994031906, 0.2300112396478653, 0.17238618433475494, 0.18197263777256012, -0.007682537194341421, -0.19838273525238037, 0.15142643451690674, 0.14207705855369568, -0.2785286009311676, -0.1684783548116684, -0.0783311277627945, 0.4818462133407593, -0.2934042513370514, -0.08418126404285431, -0.3170885145664215, -0.4590064287185669, 0.26008984446525574, -0.7193076610565186, -0.32650357484817505, 0.25902530550956726, -0.21548685431480408, -0.1617245078086853, -0.1539442390203476, -0.2942083775997162, -0.24694198369979858, 0.08699386566877365, 0.11843995004892349, 0.20547457039356232, 0.10943510383367538, -0.006646263878792524, 0.25969943404197693, -0.07846000045537949, -0.1302299052476883, 0.04879211634397507, 0.20604939758777618, 0.12324844300746918, -0.6726328730583191, -0.3496165871620178, 0.15128584206104279, 0.3256617784500122, 0.28872838616371155, 0.12944675981998444, 0.08975524455308914, 0.32288306951522827, 0.1871468871831894, 0.07154719531536102, 0.021672671660780907, -0.12126075476408005, 0.27010485529899597, -0.0877683237195015, -0.05794847756624222, -0.2449846863746643, 0.2663823068141937, 0.09723088145256042, 0.23987850546836853, -0.23176318407058716, -0.07814781367778778, -0.11927983909845352, -0.15094396471977234, 0.08511435240507126, 0.034510254859924316, -0.26243215799331665, 0.3014734089374542, -0.20908179879188538, 0.27986159920692444, 0.03319144994020462, 0.2475590705871582, -0.22528903186321259, -0.36149540543556213, 0.05533835291862488, -0.11402636021375656, -0.26517122983932495, -0.05614197999238968, 0.030946139246225357, -0.15025506913661957, 0.1724988967180252, 0.04324031621217728, -0.28084614872932434, -0.2295229583978653, -0.09294597804546356, 0.2970180809497833, 0.11923539638519287, 0.09933439642190933, 0.10044718533754349, 0.11981328576803207, 0.18193353712558746, -0.33142080903053284, -0.40151599049568176, -0.0938129872083664, -0.055892299860715866, -0.3344354033470154, 0.08635121583938599, -0.48459315299987793, -0.35993674397468567, -0.1270352154970169, 0.049937520176172256, 0.03257709741592407, -0.17884646356105804, -0.6782973408699036, 0.5066890716552734, 0.14959485828876495, -0.1023566946387291, 0.031142495572566986, -0.16726326942443848, -0.7003090381622314, -0.21023961901664734, 0.3099251091480255, -0.04758438467979431, -0.13965676724910736, -0.15771616995334625, -0.7277148365974426, 0.15840160846710205, 0.1372094303369522, 0.0691286101937294, -0.09614066779613495, -0.004977641627192497, 0.11605443060398102, 0.7563390731811523, 0.9136992692947388, 0.14928306639194489, -0.3636249005794525, 0.28816619515419006, -0.07137230038642883, -0.2263801544904709, 0.10190073400735855, 0.28323137760162354, 0.3127044439315796, -0.06040738895535469, 0.11396067589521408, 0.32643383741378784, -0.22084198892116547, -0.1373617798089981, 0.0063822828233242035, -0.13728970289230347, 0.28470584750175476, 0.43712660670280457, 0.11759249120950699, -0.04392901808023453, 0.42595797777175903, -0.2272980660200119, 0.2227546125650406, -0.10660358518362045, -0.013788063079118729, -0.30906301736831665, 0.11726455390453339, 0.07238475233316422, -0.06674601882696152, -0.5428258776664734, -0.08492206782102585, 0.07709269970655441, 0.003750135190784931, -0.09329571574926376, -0.02239028736948967, -0.3046744167804718, 0.09485134482383728, -0.0015550287207588553, 0.1164727732539177, 0.1285894513130188, -0.043085552752017975, -0.2586107552051544, 0.0833006426692009, -0.15956275165081024, -0.3628673255443573, -0.42733272910118103, -0.4661526679992676, -0.001947035314515233, -0.3521488904953003, 0.4206297695636749, 0.3815576136112213, -0.20370037853717804, -0.09613687545061111, 0.4029864966869354, 0.01170413102954626, -0.23724079132080078, 0.2422441691160202, 0.2740432024002075, 0.08533897995948792, -0.11358150839805603, 0.05203741788864136, 0.33043012022972107, 0.17167513072490692, 0.17073726654052734, -0.28141161799430847, -0.02874556928873062, -0.22435103356838226, -0.0752129778265953, -0.04515927657485008, 0.4841744601726532, -0.4256819188594818, 0.4008711874485016, -0.10611303895711899, 0.006310035940259695, -0.01383201964199543, -0.09322657436132431, -0.1130579337477684, -0.18250752985477448, 0.07057542353868484, 0.20055341720581055, -0.13654690980911255, -0.28511783480644226, 0.061635199934244156, 0.19756822288036346, 0.530497133731842, -0.22339314222335815, 0.29511886835098267, 0.3810323178768158, 0.3891979157924652, 0.1083739623427391, 0.13873176276683807, 0.4842122495174408, 0.4051706790924072, 0.17746300995349884, 0.046375587582588196, 0.2085750252008438, 0.06841395795345306, -0.20035259425640106, 0.04882660508155823, 0.21361908316612244, -0.20743435621261597, 0.09623301029205322, 0.030072957277297974, 0.004094036761671305, -0.1740274578332901, -0.11032852530479431, -0.10590595752000809, 0.020382847636938095, -0.04596725478768349, -0.15077374875545502, -0.2782156765460968, 0.14700479805469513, -0.16934622824192047, 0.19821041822433472, -0.25311264395713806, 0.02150530181825161, 0.00745730847120285, -0.13648085296154022, -0.15254727005958557, 0.09693790227174759, 0.15126264095306396, 0.41961511969566345, -0.1436355859041214, 0.0009905319893732667, 0.09769458323717117, -0.06512804329395294, 0.2122158706188202, -0.012715483084321022, 0.1586863398551941, 0.07458805292844772, 0.5542148947715759, -0.05276999622583389, -0.10787548124790192, -0.19061720371246338, -0.4497658610343933, -0.03229105845093727, -0.27611997723579407, 0.28230020403862, 0.18095436692237854, 0.06856246292591095, -0.3565728962421417, -0.15031668543815613, -0.0005946260644122958, 0.014513359405100346, 0.03180508688092232, 0.11614948511123657, 0.18401579558849335, 0.32391542196273804, -0.06852323561906815, 0.07588992267847061, -0.11159706115722656, -0.17511877417564392, 0.34685271978378296, 0.14125975966453552, 0.1919834017753601, -0.2804494798183441, -0.04938202351331711, 0.19525817036628723, -0.035398680716753006, -0.10599331557750702, 0.11416143923997879, -0.3425089120864868, 0.24139471352100372, -0.3241921067237854, -0.1880902647972107, -0.15520375967025757, -0.0892995297908783, -0.034225888550281525, 0.6443935632705688, -0.13537904620170593, -0.028596678748726845, -0.02499622292816639, 0.18818840384483337, -0.07915236800909042, 0.014095920138061047, 0.4491420090198517, -0.1632232517004013, 0.15474282205104828, 0.21476347744464874, 0.16155150532722473, -0.026202932000160217, 0.025896063074469566, 0.06133904680609703, 0.31980839371681213, 0.7087907195091248, 0.3468719720840454, 0.8575089573860168, 0.08324823528528214, -0.061754219233989716, -0.10293228179216385, -0.12733040750026703, -0.15566572546958923, -0.08135100454092026, -0.14528965950012207, 0.21217486262321472, 0.05236327275633812, 0.10284505784511566, 0.23888172209262848, 0.08313494175672531, -0.13380207121372223, 0.07355208694934845, -0.5296797156333923, 0.06410970538854599, -0.3044587969779968, 0.256557822227478, -0.143881157040596, 0.49511680006980896, -0.2542153596878052, -0.12137363106012344, -0.009549793787300587, -0.3806798458099365, 0.009929829277098179, 0.15261666476726532, 0.2475753277540207, -0.20419393479824066, -0.3471149802207947, -0.3430950939655304, -0.23645342886447906, 0.2977696359157562, 0.40208354592323303, -0.027021048590540886, -0.0478706881403923, -0.03522490710020065, -0.08812654763460159, 0.19387593865394592, 0.3996638059616089, -0.314203143119812, 0.010429720394313335, -0.09939105063676834, -0.2552521824836731, -0.14777618646621704, 0.31646063923835754, 0.0915728285908699, -0.07332009077072144, -0.12869668006896973, -0.09114993363618851, -0.4403863847255707, 0.02241404540836811, 0.4155963957309723, 0.07757291942834854, -0.04314260184764862, -0.14725610613822937, -0.12893792986869812, 0.18353353440761566, 0.012325846590101719, -0.025303948670625687, -0.003403267590329051, -0.007658466696739197, 0.03447391465306282, -0.050345536321401596, -0.19795070588588715, -0.1843431442975998, 0.0883338674902916, -0.016794376075267792, -0.08803801983594894, 0.4143819212913513, 0.010363694280385971, -0.08085478842258453, -0.20355506241321564, -0.14489653706550598, -0.013128703460097313, 0.03457784652709961, -0.08989101648330688, -0.2419082075357437, 0.11916918307542801, 0.552759051322937, -0.07340128719806671, -0.13865599036216736, 0.2675367295742035, -0.03827110305428505, 0.419863224029541, -0.17966660857200623, -0.03939293697476387, 0.3280026614665985, -0.04873986542224884, -0.22131507098674774, -0.49904024600982666, 0.8817315101623535, -0.16768677532672882, -0.03120438940823078, 0.29082411527633667, 0.5615339279174805, -0.3180476427078247, 0.27625221014022827, 0.3689000606536865, 0.8417682647705078, -0.018597323447465897, 0.1977701038122177, -0.005353907123208046, 0.2951347529888153, 0.5957832932472229, -0.023992840200662613, 0.1693716049194336, -0.01811877451837063, -0.20973962545394897, -0.11495469510555267, -0.03170529007911682, 0.17445474863052368, 0.2964920997619629, 0.07740236073732376, 0.10004120320081711, -0.0626671090722084, 0.19964975118637085, -0.0005220829043537378, 0.2713552713394165, -0.09049272537231445, -0.20580041408538818, -0.17278431355953217, 0.07369329035282135, -0.06169284135103226, -0.5089702010154724, -0.1305481195449829, 0.06081699579954147, 0.3881460130214691, 0.16752396523952484, -0.21870878338813782, -0.19793641567230225, 0.15052258968353271, 0.3563311696052551, 0.03537166863679886, -0.6842533349990845, 0.2394344061613083, 0.1810002475976944, 0.10213343054056168, 0.0643516331911087, 0.05248380824923515, 0.16872264444828033, -0.336986780166626, 0.017816150560975075, 0.09219367802143097, -0.1664426177740097, 0.16321007907390594, -0.12824806571006775, -0.2016734927892685, -0.05581590533256531, 0.5025722980499268, -0.718515932559967, -0.5703020095825195, 0.3079192340373993, 0.08598052710294724, -0.033444516360759735, 0.035097770392894745, 0.2057156264781952, -0.05514370650053024, -0.06775305420160294, 0.1048271507024765, 0.08798990398645401, -0.23922185599803925, 0.16275915503501892, 0.050283536314964294, 0.15981633961200714, -0.049130018800497055, -0.010662336833775043, -0.049077633768320084, 0.289896160364151, 0.2006637305021286, -0.14720386266708374, -0.03747845068573952, -0.12136965245008469, 0.04826411232352257, -0.07728897035121918, 0.23242023587226868, -0.13162735104560852, -0.218299001455307, 0.4074471592903137, -0.07881386578083038, -0.2187260538339615, -0.06516951322555542, 0.011235556565225124, -0.1179828867316246, -0.3917020559310913, 0.09559343010187149, 0.05077723041176796, 0.1208881214261055, 0.160177543759346, -0.37323135137557983, 0.35242941975593567, -0.2587756812572479, 0.3208492696285248, -0.1767921894788742, 0.07860295474529266, 0.27648162841796875, 0.2889786958694458, 0.3563065528869629, 0.17608904838562012, -0.11934546381235123, 0.08954659104347229, -0.04829523339867592, 0.23968656361103058, -0.19328230619430542, -0.1602514088153839, -0.3207274079322815, 0.05993770435452461, 0.03134561702609062, 0.12892375886440277, -0.08888906985521317, -0.03394443914294243, -0.279755175113678, -0.0945420190691948, 0.13140788674354553, -0.09257670491933823, 0.031040534377098083, 0.36473435163497925, 0.5323243737220764, -0.09476370364427567, -0.03619944304227829, 0.07605691999197006, -0.09459418058395386, 0.21457765996456146, 0.04020870476961136, 0.3685859739780426, 0.07917605340480804, 0.2802959680557251, -0.12417183071374893, 0.14855243265628815, 0.18645325303077698, -0.29942384362220764, 0.3278995156288147, 0.03383508697152138, 0.015524753369390965, -0.07487768679857254, 0.40800991654396057, 0.18038661777973175, -0.11504937708377838, 0.014980213716626167, 0.08507908880710602, 0.1334756314754486, -0.14757516980171204, -0.07433672249317169, 0.3132948875427246, 0.27445006370544434, 0.035672951489686966, 0.20530928671360016, -0.2430117428302765, 0.16976159811019897, -0.1594989150762558, -0.24895817041397095, 0.10264170914888382, -0.6579887866973877, 0.18404324352741241, 0.2643783986568451, 0.04333210363984108, -0.18083012104034424, 0.01931067183613777, 0.12769603729248047, 0.01665256917476654, 0.18819089233875275, -0.16838102042675018, 0.8092702031135559, -0.18404805660247803, -0.12789827585220337, 0.18484853208065033, 0.0316966250538826, -0.2059449553489685, 0.5624416470527649, -0.03168177232146263, 0.10917675495147705, -0.028933510184288025, 0.32716700434684753, 0.25321656465530396, -0.029078420251607895, 0.07395244389772415, 0.2886967062950134, 0.21153883635997772, -0.07323382794857025, -0.12577281892299652, 0.04074595868587494, -0.2036048024892807, 0.054089341312646866, 0.21316690742969513, -0.1853099912405014, 0.29704663157463074, 0.3495042026042938, 0.23272158205509186, 0.18285860121250153, 0.25660383701324463, -0.011837205849587917, 0.41071122884750366, -0.26008808612823486, -0.47874870896339417, 0.02838234417140484, 0.09895285964012146, 0.16305537521839142, -0.13802532851696014, -0.11953199654817581, 0.07460028678178787, -0.03685767948627472, 0.15594063699245453, -0.22964046895503998, 0.14350849390029907, -0.1377500295639038, 0.15871527791023254, 0.04205021634697914, 0.32006484270095825, 0.1499038189649582, 0.022486312314867973, -0.04908401891589165, 0.18503797054290771, 0.13093164563179016, 0.019751034677028656, -0.9951918125152588, 0.4971163272857666, 0.07976366579532623, -0.38429364562034607, -0.246344193816185, 0.05873989313840866, 0.05088167265057564, -0.1601068079471588, 0.3139053285121918, -0.2779948115348816, -0.17117038369178772, -0.021956080570816994, 0.017433568835258484, -0.05458628013730049, 0.35638853907585144, -0.2912065386772156, 0.13534918427467346, -0.14703235030174255, -0.26131826639175415, -0.28694555163383484, -0.37778836488723755, 0.19083228707313538, -0.045854602009058, 0.2734178602695465, 0.12319257855415344, -0.15538020431995392, 0.3742068111896515, -0.3006044030189514, -0.7832523584365845, -0.39122211933135986, -0.08668409287929535, -0.05622328817844391, 0.10229871422052383, -0.43342387676239014, -0.06305362284183502, -0.015994105488061905, -0.18792083859443665, 0.05093640461564064, -0.1320958286523819, -0.1596628874540329, 0.05309874191880226, 0.13793855905532837, 0.11198366433382034, 0.03309665620326996, 0.09411244839429855, 0.04771611839532852, 0.2522909343242645, 0.054947491735219955, 0.18030062317848206, -0.012247240170836449, -0.0034878565929830074, -0.2898729145526886, 0.525407075881958, -0.1495327353477478, 0.2207566797733307, 0.010190789587795734, -0.26805099844932556, -0.16623999178409576, 0.28229039907455444, -0.09883394837379456, -0.14224214851856232, -0.052184149622917175, -0.09364413470029831, 0.1360422670841217, 0.08633771538734436, 0.1389867067337036, 0.47834014892578125, -0.22119945287704468, 0.11717639863491058, 0.21130366623401642, 0.010494835674762726, 0.16839289665222168, -0.679317057132721, -0.2071981281042099, -0.04066033288836479, 0.35527387261390686, 0.04233754798769951, -0.12638981640338898, -0.4131150245666504, -0.4194978177547455, 0.3656514883041382, -0.006235331762582064, 0.16001366078853607, 0.4764115810394287, 0.24686464667320251, -0.27287328243255615, 0.056102532893419266, -0.011411254294216633, -0.1101377010345459, -0.1423385888338089, 0.005188994109630585, -0.6049830317497253 ]
https://github.com/huggingface/datasets/issues/312
[Feature request] Add `shard()` method to dataset
Thanks for the pointer to those functions! It's still a little more verbose since you have to manually calculate which ids each rank would keep, but definitely works. My use case is multi-node, multi-GPU training and avoiding global batches of duplicate elements. I'm using horovod. You can shuffle indices, or set random seeds, but explicitly sharding the dataset up front is the safest and clearest way I've found to do so.
Currently, to shard a dataset into 10 pieces on different ranks, you can run ```python rank = 3 # for example size = 10 dataset = nlp.load_dataset('wikitext', 'wikitext-2-raw-v1', split=f"train[{rank*10}%:{(rank+1)*10}%]") ``` However, this breaks down if you have a number of ranks that doesn't divide cleanly into 100, such as 64 ranks. Is there interest in adding a method shard() that looks like this? ```python rank = 3 size = 64 dataset = nlp.load_dataset("wikitext", "wikitext-2-raw-v1", split="train").shard(rank=rank, size=size) ``` TensorFlow has a similar API: https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shard. I'd be happy to contribute this code.
71
[Feature request] Add `shard()` method to dataset Currently, to shard a dataset into 10 pieces on different ranks, you can run ```python rank = 3 # for example size = 10 dataset = nlp.load_dataset('wikitext', 'wikitext-2-raw-v1', split=f"train[{rank*10}%:{(rank+1)*10}%]") ``` However, this breaks down if you have a number of ranks that doesn't divide cleanly into 100, such as 64 ranks. Is there interest in adding a method shard() that looks like this? ```python rank = 3 size = 64 dataset = nlp.load_dataset("wikitext", "wikitext-2-raw-v1", split="train").shard(rank=rank, size=size) ``` TensorFlow has a similar API: https://www.tensorflow.org/api_docs/python/tf/data/Dataset#shard. I'd be happy to contribute this code. Thanks for the pointer to those functions! It's still a little more verbose since you have to manually calculate which ids each rank would keep, but definitely works. My use case is multi-node, multi-GPU training and avoiding global batches of duplicate elements. I'm using horovod. You can shuffle indices, or set random seeds, but explicitly sharding the dataset up front is the safest and clearest way I've found to do so.
[ -0.09040021151304245, 0.016252169385552406, -0.1279892921447754, -0.07298339903354645, -0.05889394134283066, -0.07297811657190323, 0.4991562068462372, 0.4099663496017456, -0.055477287620306015, 0.20991532504558563, 0.23607945442199707, 0.32115909457206726, -0.31431227922439575, 0.40035852789878845, 0.6131048202514648, -0.43361470103263855, -0.03229565545916557, 0.009386193938553333, 0.21557371318340302, 0.08773475885391235, -0.06566360592842102, -0.14018626511096954, -0.04003750905394554, -0.3743533194065094, -0.005203247535973787, 0.10193339735269547, -0.18085350096225739, -0.2872146964073181, 0.20499999821186066, -0.216339573264122, 0.16605572402477264, 0.058209896087646484, 0.1823759824037552, 0.16010546684265137, -0.0001183804270112887, -0.19144654273986816, 0.15885065495967865, 0.11808857321739197, 0.0012734937481582165, -0.13928142189979553, -0.4328417181968689, -0.4010116159915924, -0.034019410610198975, -0.2599124312400818, -0.011953355744481087, 0.4012714922428131, 0.06988763064146042, -0.012516295537352562, 0.39254677295684814, 0.0025389138609170914, 0.0516129732131958, -0.06071148067712784, 0.15445555746555328, 0.1872902661561966, 0.4036010205745697, 0.22146736085414886, -0.2822941839694977, -0.008945229463279247, -0.07868650555610657, 0.12541471421718597, 0.11366799473762512, 0.12171931564807892, -0.027573641389608383, -0.10820731520652771, 0.15574514865875244, 0.17655852437019348, -0.304738849401474, -0.15316152572631836, -0.19506840407848358, 0.47811779379844666, -0.3025988042354584, -0.15099218487739563, -0.41324883699417114, -0.3879085183143616, 0.2934774160385132, -0.7473742365837097, -0.3074727952480316, 0.2714196443557739, -0.24189260601997375, -0.27542564272880554, -0.23800531029701233, -0.2768072187900543, -0.20718738436698914, 0.07773728668689728, 0.22213870286941528, 0.2638654112815857, 0.16816264390945435, -0.017533481121063232, 0.33115074038505554, -0.04026228189468384, -0.09459371864795685, 0.07552396506071091, 0.20972296595573425, 0.11884717643260956, -0.6140282154083252, -0.38438180088996887, 0.12186452746391296, 0.33805590867996216, 0.34694698452949524, 0.11593291908502579, 0.13813567161560059, 0.2720664441585541, 0.17449195683002472, 0.030086616054177284, 0.03917335346341133, -0.09181620925664902, 0.22051098942756653, -0.07233033329248428, -0.09077085554599762, -0.2289365828037262, 0.2165079414844513, 0.11328240483999252, 0.2126707136631012, -0.278508722782135, -0.01425502821803093, 0.008166318759322166, -0.22908534109592438, 0.11695502698421478, 0.11371038109064102, -0.272807776927948, 0.244472473859787, -0.20837900042533875, 0.28253281116485596, -0.03208208084106445, 0.20959870517253876, -0.20823289453983307, -0.3277777433395386, 0.03496691957116127, -0.15316051244735718, -0.3048241436481476, -0.04777747020125389, 0.07216926664113998, -0.1881655752658844, 0.22568048536777496, -0.0001620611728867516, -0.23308399319648743, -0.2742011547088623, -0.06486404687166214, 0.4346821904182434, 0.1786162406206131, 0.08406472206115723, 0.2126346081495285, 0.13578340411186218, 0.08894193172454834, -0.25725075602531433, -0.37145376205444336, -0.03255532681941986, -0.041573990136384964, -0.35416364669799805, 0.04917405545711517, -0.5877320170402527, -0.3894830644130707, -0.12143029272556305, 0.03791044279932976, 0.06855091452598572, -0.17419098317623138, -0.6619849801063538, 0.4921066164970398, 0.09406094998121262, -0.1506497710943222, 0.036739449948072433, -0.18102756142616272, -0.6687304377555847, -0.21301108598709106, 0.30534207820892334, 0.002080278703942895, -0.06419789046049118, -0.1369178593158722, -0.7781392335891724, 0.17454183101654053, 0.13278202712535858, -0.00982122216373682, -0.09796971082687378, 0.003686213865876198, 0.06320498138666153, 0.689486026763916, 0.7901319265365601, 0.0799245536327362, -0.259321004152298, 0.24964803457260132, -0.04985777661204338, -0.26486384868621826, 0.09047339856624603, 0.3024190068244934, 0.2453378438949585, -0.08331558853387833, 0.0976918637752533, 0.3536028265953064, -0.24859195947647095, -0.07417505234479904, 0.00004350673407316208, -0.14810051023960114, 0.2624676823616028, 0.401924729347229, 0.16137179732322693, -0.09980510920286179, 0.44587647914886475, -0.23146973550319672, 0.23518110811710358, -0.06464944034814835, -0.04490838572382927, -0.19559098780155182, 0.18740078806877136, 0.04018675908446312, -0.11985297501087189, -0.48016229271888733, -0.021148765459656715, 0.06155584752559662, 0.018891576677560806, -0.006278080865740776, 0.00003072621620958671, -0.28936049342155457, 0.16098764538764954, -0.014813749119639397, 0.015560543164610863, 0.0897698700428009, -0.024887681007385254, -0.22941191494464874, 0.07180635631084442, -0.16655954718589783, -0.3250158131122589, -0.4209623336791992, -0.41539621353149414, -0.002658082637935877, -0.3153286576271057, 0.4252646565437317, 0.3351685106754303, -0.13145631551742554, -0.12511730194091797, 0.35016366839408875, 0.010608362033963203, -0.1990661919116974, 0.23249928653240204, 0.31443992257118225, 0.12395955622196198, -0.1851850301027298, 0.13843119144439697, 0.31855660676956177, 0.1622314155101776, 0.11509459465742111, -0.3427926003932953, 0.021770259365439415, -0.2812332212924957, -0.02015572413802147, -0.024947799742221832, 0.48348554968833923, -0.45365986227989197, 0.34468770027160645, -0.09482026845216751, 0.04139801487326622, -0.06749130040407181, -0.03228191286325455, -0.08210508525371552, -0.15489190816879272, 0.017099600285291672, 0.2470051646232605, -0.10219898819923401, -0.28810128569602966, 0.1100912019610405, 0.18036945164203644, 0.5856355428695679, -0.1634199619293213, 0.2819885313510895, 0.298892617225647, 0.4121261239051819, 0.1175747662782669, 0.10007783770561218, 0.49003344774246216, 0.35774555802345276, 0.18895010650157928, 0.054069891571998596, 0.18355382978916168, 0.007465505972504616, -0.1562802642583847, 0.01770588755607605, 0.1334729790687561, -0.13274233043193817, 0.08750717341899872, 0.06981917470693588, -0.049665145576000214, -0.14107725024223328, -0.17633473873138428, -0.004980101715773344, 0.011095566675066948, -0.07499390095472336, -0.22840963304042816, -0.23711107671260834, 0.29761382937431335, -0.2259354293346405, 0.12981006503105164, -0.31222835183143616, 0.01163515541702509, 0.04768220707774162, -0.15256917476654053, -0.14051009714603424, 0.14760908484458923, 0.20230990648269653, 0.39738455414772034, -0.09707321971654892, -0.04766356572508812, 0.21241730451583862, -0.06444034725427628, 0.16980931162834167, -0.012955759651958942, 0.21716541051864624, 0.05149083584547043, 0.5093238353729248, 0.03581475466489792, -0.07438863068819046, -0.2529284358024597, -0.48157718777656555, -0.05348803848028183, -0.2781824767589569, 0.2317032366991043, 0.15686704218387604, -0.03272867947816849, -0.4087722897529602, -0.13734915852546692, 0.028286539018154144, -0.14509621262550354, -0.07189563661813736, 0.14045177400112152, 0.15676800906658173, 0.2897752523422241, -0.07629523426294327, 0.09760193526744843, -0.1189655214548111, -0.12357576191425323, 0.31685173511505127, 0.13043728470802307, 0.2200106680393219, -0.2814022898674011, -0.010223086923360825, 0.10613139718770981, -0.02944990247488022, -0.10924441367387772, 0.18495529890060425, -0.31099337339401245, 0.23821289837360382, -0.35824868083000183, -0.1694326102733612, -0.24859650433063507, -0.12500914931297302, -0.06421468406915665, 0.7491728067398071, -0.04038231819868088, -0.06685682386159897, 0.010884275659918785, 0.1439594179391861, -0.10543816536664963, 0.031697776168584824, 0.5483801960945129, -0.057220395654439926, 0.13602592051029205, 0.20815345644950867, 0.26600775122642517, 0.03470371291041374, 0.0306905135512352, 0.09581564366817474, 0.29536426067352295, 0.6451736092567444, 0.3203069567680359, 0.8731663227081299, 0.09872089326381683, -0.03279133886098862, -0.0986940860748291, -0.19337989389896393, -0.13654319941997528, -0.029642928391695023, -0.12958012521266937, 0.1816161572933197, 0.03524981811642647, 0.02402886003255844, 0.20457570254802704, 0.04473040625452995, -0.1147906482219696, 0.020647965371608734, -0.3997085988521576, 0.0664210319519043, -0.2472129762172699, 0.19350644946098328, -0.09223698824644089, 0.49556267261505127, -0.3516767919063568, -0.1373451203107834, -0.11739227175712585, -0.4128206968307495, 0.02964293770492077, 0.05619790405035019, 0.24474158883094788, -0.19900086522102356, -0.4037172496318817, -0.3870333731174469, -0.21389387547969818, 0.2600156366825104, 0.46986714005470276, -0.08543466776609421, 0.0004033699806313962, -0.06504347175359726, -0.169882670044899, 0.17489126324653625, 0.32404279708862305, -0.347710520029068, -0.014920643530786037, -0.12519162893295288, -0.15576623380184174, -0.07630110532045364, 0.23192135989665985, 0.05417592078447342, -0.06693290919065475, -0.2182857245206833, -0.11528481543064117, -0.39817047119140625, 0.05401957035064697, 0.4199634790420532, 0.017878850921988487, -0.027956942096352577, -0.08524969965219498, -0.1949029266834259, 0.20194774866104126, 0.07813190668821335, -0.015911871567368507, 0.026629041880369186, 0.016803719103336334, -0.04776746779680252, -0.01874644309282303, -0.15113629400730133, -0.14460431039333344, 0.13393551111221313, -0.1123272180557251, -0.034781280905008316, 0.4088839590549469, 0.04234250262379646, -0.09519904851913452, -0.216292604804039, -0.14342671632766724, -0.022566838189959526, -0.06110825762152672, -0.10424554347991943, -0.3321191072463989, 0.04905596375465393, 0.5573016405105591, -0.07624053210020065, -0.11680366098880768, 0.2294699251651764, -0.1556236743927002, 0.47779014706611633, -0.1714918166399002, -0.07859182357788086, 0.29652631282806396, -0.10751573741436005, -0.2080221176147461, -0.5555889010429382, 0.8288853764533997, -0.124579519033432, 0.01662336103618145, 0.3937327265739441, 0.6424806118011475, -0.25836795568466187, 0.2959199547767639, 0.4128738343715668, 0.7760369181632996, -0.0605914406478405, 0.19502665102481842, -0.018350040540099144, 0.2824892997741699, 0.553962767124176, -0.010674495249986649, 0.2589055001735687, -0.029200328513979912, -0.24992893636226654, -0.13816407322883606, 0.011839952319860458, 0.13045147061347961, 0.3750289976596832, 0.08059617131948471, 0.1500474065542221, -0.004986478481441736, 0.2164105921983719, -0.10831961035728455, 0.2598167359828949, 0.03790759667754173, -0.22820109128952026, -0.05236593633890152, 0.09436674416065216, -0.05690959468483925, -0.4457852840423584, -0.1336331069469452, 0.03268640860915184, 0.37835493683815, 0.12656639516353607, -0.26688477396965027, -0.18200014531612396, 0.20779642462730408, 0.4457690119743347, 0.04313545674085617, -0.5865617394447327, 0.16459116339683533, 0.2436372935771942, 0.18727384507656097, 0.06451582908630371, 0.04999006167054176, 0.16147418320178986, -0.240011528134346, 0.039342015981674194, 0.04337361827492714, -0.1680685430765152, 0.1748080849647522, -0.05584000423550606, -0.2017081379890442, -0.13597780466079712, 0.5046854615211487, -0.7938539981842041, -0.6001187562942505, 0.2508290708065033, 0.08747021108865738, 0.040478430688381195, 0.1548406034708023, 0.25153928995132446, -0.0826454907655716, -0.06863478571176529, 0.10062185674905777, -0.0030941031873226166, -0.20715978741645813, 0.1797485649585724, 0.027452310547232628, 0.16588197648525238, 0.021100904792547226, 0.0017022682586684823, -0.06022335961461067, 0.2708495557308197, 0.2140355408191681, -0.18622492253780365, -0.024716515094041824, -0.12426574528217316, 0.051623132079839706, 0.023903965950012207, 0.21626998484134674, -0.10212442278862, -0.33564382791519165, 0.39761340618133545, 0.002581272041425109, -0.22331760823726654, -0.08062615990638733, 0.1447632908821106, -0.010424080304801464, -0.3164907991886139, 0.05916330963373184, 0.03513083979487419, 0.12298388034105301, 0.17193306982517242, -0.39313945174217224, 0.31103843450546265, -0.21842114627361298, 0.28829386830329895, -0.17756357789039612, 0.03381543979048729, 0.2850920855998993, 0.19579409062862396, 0.29856088757514954, 0.20796792209148407, -0.1609913855791092, 0.07868221402168274, -0.03599968180060387, 0.237199068069458, -0.12236197292804718, -0.12751223146915436, -0.26952093839645386, 0.06883101165294647, 0.02795260399580002, 0.22120001912117004, -0.037553876638412476, -0.09352578222751617, -0.3762472867965698, -0.18215395510196686, 0.06340242177248001, 0.0528714619576931, 0.013649792410433292, 0.3772663474082947, 0.5071153044700623, -0.09894493222236633, -0.0019496432505548, 0.052229173481464386, -0.04820181801915169, 0.20429262518882751, 0.06099842116236687, 0.34077945351600647, 0.14507664740085602, 0.2970130741596222, -0.08689113706350327, 0.19847719371318817, 0.21861852705478668, -0.30085158348083496, 0.3319806158542633, 0.04146789386868477, -0.033726368099451065, -0.041127920150756836, 0.4718819260597229, 0.07584161311388016, -0.0829889103770256, 0.04592286795377731, 0.07142297923564911, 0.1331995129585266, -0.22804754972457886, -0.11324815452098846, 0.2901127338409424, 0.29399609565734863, 0.0008627079660072923, 0.23360775411128998, -0.18205563724040985, 0.14474579691886902, -0.15692399442195892, -0.2128673642873764, 0.037684209644794464, -0.6488704681396484, 0.22755874693393707, 0.26154252886772156, 0.058247923851013184, -0.22444647550582886, 0.014898562803864479, 0.024729294702410698, 0.025193259119987488, 0.25913721323013306, -0.20550867915153503, 0.8164573311805725, -0.23797406256198883, -0.15723565220832825, 0.2347332239151001, 0.040979206562042236, -0.1476866453886032, 0.5167102217674255, 0.037782516330480576, 0.145015150308609, -0.016497613862156868, 0.3107825517654419, 0.15709640085697174, -0.07565475255250931, -0.001341304276138544, 0.26729196310043335, 0.23987969756126404, -0.015586034394800663, -0.13860121369361877, 0.0024056232068687677, -0.3002156615257263, 0.08063530176877975, 0.25429779291152954, -0.17140428721904755, 0.38038307428359985, 0.377769410610199, 0.31447833776474, 0.13010847568511963, 0.15672756731510162, 0.13481000065803528, 0.4964347779750824, -0.2856992781162262, -0.5428255796432495, 0.090389683842659, -0.012121940962970257, 0.20143938064575195, -0.11130819469690323, -0.12307468056678772, 0.12797732651233673, -0.0741177350282669, 0.15039634704589844, -0.1897890567779541, 0.1648394912481308, -0.06471338868141174, 0.08414261043071747, 0.04241170734167099, 0.34903082251548767, 0.09157294034957886, 0.0008261080365628004, -0.026821855455636978, 0.20642322301864624, 0.17594456672668457, 0.09863699972629547, -0.8560941815376282, 0.4871613085269928, 0.10967899113893509, -0.3625622093677521, -0.23555970191955566, 0.07896549254655838, -0.03305050730705261, -0.2587110698223114, 0.2877323031425476, -0.16541855037212372, -0.1679375022649765, -0.07517645508050919, 0.025164606049656868, -0.04370296001434326, 0.314137727022171, -0.24698469042778015, -0.016327355057001114, -0.11312606185674667, -0.3326270580291748, -0.3796078562736511, -0.3455860912799835, 0.16283221542835236, -0.007793623488396406, 0.23993083834648132, 0.1390845775604248, -0.09679251164197922, 0.2934940457344055, -0.2871803641319275, -0.7887299656867981, -0.3314749300479889, -0.042114030569791794, -0.10085229575634003, 0.05310874804854393, -0.47078123688697815, -0.11792842298746109, 0.015995001420378685, -0.17090652883052826, -0.010924400761723518, -0.08518519252538681, -0.14938955008983612, 0.06722843647003174, 0.18672700226306915, 0.07342097163200378, 0.020415646955370903, 0.005812285002321005, 0.009814641438424587, 0.26335573196411133, 0.003153800033032894, 0.15830285847187042, 0.04238288104534149, 0.07708969712257385, -0.3178179860115051, 0.5716701745986938, -0.19826488196849823, 0.21222826838493347, 0.021433141082525253, -0.2425091713666916, -0.2888360023498535, 0.247297465801239, -0.1003844365477562, -0.1212284117937088, -0.1928640753030777, -0.07190069556236267, 0.17757299542427063, 0.058677397668361664, 0.13523994386196136, 0.4553300738334656, -0.25739210844039917, 0.18841205537319183, 0.2233218103647232, -0.027631692588329315, 0.10074836760759354, -0.733300507068634, -0.190363347530365, -0.13615447282791138, 0.3577407896518707, -0.018162982538342476, -0.04028524458408356, -0.39529380202293396, -0.37228283286094666, 0.3207327127456665, 0.03829023614525795, 0.1953827291727066, 0.45630931854248047, 0.14429257810115814, -0.217914879322052, 0.0417599119246006, -0.01616431400179863, -0.10480955243110657, -0.10962476581335068, 0.06034496799111366, -0.5192133784294128 ]
https://github.com/huggingface/datasets/issues/302
Question - Sign Language Datasets
Even more complicating - As I see it, datasets can have "addons". For example, the WebNLG dataset is a dataset for data-to-text. However, a work of mine and other works enriched this dataset with text plans / underlying text structures. In that case, I see a need to load the dataset "WebNLG" with "plans" addon. Same for sign language - if there is a dataset of videos, one addon can be to run OpenPose, another to run ARKit4 pose estimation, and another to run PoseNet, or even just a video embedding addon. (which are expensive to run individually for everyone who wants to use these data) This is something I dabbled with my own implementation to a [research datasets library](https://github.com/AmitMY/meta-scholar/) and I love to get the discussion going on these topics.
An emerging field in NLP is SLP - sign language processing. I was wondering about adding datasets here, specifically because it's shaping up to be large and easily usable. The metrics for sign language to text translation are the same. So, what do you think about (me, or others) adding datasets here? An example dataset would be [RWTH-PHOENIX-Weather 2014 T](https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/) For every item in the dataset, the data object includes: 1. video_path - path to mp4 file 2. pose_path - a path to `.pose` file with human pose landmarks 3. openpose_path - a path to a `.json` file with human pose landmarks 4. gloss - string 5. text - string 6. video_metadata - height, width, frames, framerate ------ To make it a tad more complicated - what if sign language libraries add requirements to `nlp`? for example, sign language is commonly annotated using `ilex`, `eaf`, or `srt` files, which are all loadable as text, but there is no reason for the dataset to parse that file by itself, if libraries exist to do so.
131
Question - Sign Language Datasets An emerging field in NLP is SLP - sign language processing. I was wondering about adding datasets here, specifically because it's shaping up to be large and easily usable. The metrics for sign language to text translation are the same. So, what do you think about (me, or others) adding datasets here? An example dataset would be [RWTH-PHOENIX-Weather 2014 T](https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/) For every item in the dataset, the data object includes: 1. video_path - path to mp4 file 2. pose_path - a path to `.pose` file with human pose landmarks 3. openpose_path - a path to a `.json` file with human pose landmarks 4. gloss - string 5. text - string 6. video_metadata - height, width, frames, framerate ------ To make it a tad more complicated - what if sign language libraries add requirements to `nlp`? for example, sign language is commonly annotated using `ilex`, `eaf`, or `srt` files, which are all loadable as text, but there is no reason for the dataset to parse that file by itself, if libraries exist to do so. Even more complicating - As I see it, datasets can have "addons". For example, the WebNLG dataset is a dataset for data-to-text. However, a work of mine and other works enriched this dataset with text plans / underlying text structures. In that case, I see a need to load the dataset "WebNLG" with "plans" addon. Same for sign language - if there is a dataset of videos, one addon can be to run OpenPose, another to run ARKit4 pose estimation, and another to run PoseNet, or even just a video embedding addon. (which are expensive to run individually for everyone who wants to use these data) This is something I dabbled with my own implementation to a [research datasets library](https://github.com/AmitMY/meta-scholar/) and I love to get the discussion going on these topics.
[ -0.327766090631485, 0.4525657594203949, -0.07328395545482635, 0.012340458109974861, -0.07884073257446289, -0.0115340705960989, 0.22011037170886993, 0.2610003352165222, 0.20139645040035248, -0.36875680088996887, 0.08787982165813446, 0.2947927415370941, -0.39396369457244873, 0.283434122800827, 0.34498849511146545, -0.17655088007450104, -0.0004949235008098185, -0.06266511976718903, 0.008733839727938175, -0.09809935092926025, -0.2763954699039459, -0.19098296761512756, 0.053152188658714294, -0.007089459337294102, -0.3837488889694214, -0.33206161856651306, -0.1520048826932907, 0.05522868409752846, -0.07982137799263, -0.36704662442207336, -0.46540120244026184, 0.13386091589927673, 0.38115254044532776, -0.05737495794892311, -0.00010921217472059652, -0.2131737768650055, 0.08678414672613144, 0.13662417232990265, -0.29817885160446167, -0.11203867942094803, -0.12251845002174377, -0.636306881904602, -0.1847904771566391, -0.21974897384643555, 0.3014645278453827, -0.36717626452445984, 0.11779847741127014, -0.43871453404426575, 0.020409777760505676, 0.26503875851631165, 0.26572680473327637, 0.07349586486816406, -0.1763010025024414, 0.284544974565506, 0.10739459097385406, 0.2880246937274933, 0.05393499508500099, -0.31147700548171997, 0.3666422367095947, -0.004012596793472767, -0.1532110869884491, 0.2822238504886627, 0.08716724812984467, -0.5369472503662109, 0.28311261534690857, -0.08322309702634811, -0.1681205779314041, -0.0665770098567009, -0.06096822768449783, 0.05459590628743172, 0.36952051520347595, -0.38873547315597534, -0.5512009263038635, -0.6927580833435059, 0.31906867027282715, -0.041757043451070786, -0.1850505769252777, 0.31319743394851685, 0.24869737029075623, -0.04419408366084099, -0.2032424658536911, -0.6055936217308044, 0.07352478057146072, 0.20323152840137482, 0.0504947267472744, 0.3771209418773651, 0.10685144364833832, 0.08536351472139359, -0.05983556807041168, -0.058071643114089966, 0.102033331990242, -0.4142611026763916, 0.005912601947784424, 0.12477503716945648, -0.2750382721424103, -0.16849520802497864, 0.0074733830988407135, 0.10953343659639359, 0.21646526455879211, 0.1288280338048935, -0.0004108727443963289, 0.0027560549788177013, -0.33634522557258606, 0.04451493173837662, 0.37456730008125305, -0.03916625306010246, -0.028342552483081818, 0.14428970217704773, 0.1519373059272766, -0.2677289843559265, 0.4116017818450928, 0.06937147676944733, -0.00971419271081686, 0.006476050242781639, -0.23467665910720825, -0.2014702558517456, 0.11952272802591324, -0.03267811983823776, -0.16037201881408691, 0.04685717448592186, -0.19523431360721588, -0.2574145793914795, 0.12044982612133026, -0.07898106426000595, 0.0028641843236982822, 0.297883540391922, 0.019271744415163994, 0.34545257687568665, 0.19673603773117065, -0.16879525780677795, 0.01830681785941124, 0.18157760798931122, -0.3700401782989502, 0.24507568776607513, 0.38318097591400146, 0.05945966765284538, 0.050777867436409, 0.016631124541163445, -0.13975566625595093, 0.070638507604599, 0.30916064977645874, -0.053430456668138504, 0.09022901952266693, -0.2173832207918167, 0.0065714288502931595, 0.08541318029165268, -0.3741541802883148, -0.053016189485788345, -0.3044705092906952, 0.11985975503921509, 0.08166748285293579, -0.02361227385699749, 0.03846581652760506, 0.21772585809230804, -0.3923449218273163, -0.3972732126712799, -0.3264211118221283, 0.6124711036682129, 0.07171781361103058, -0.04221424460411072, 0.16498646140098572, -0.10422772914171219, -0.304897278547287, -0.03579360619187355, -0.21060004830360413, 0.4268849790096283, -0.3384499251842499, -0.16723285615444183, -0.12325577437877655, -0.06469085812568665, -0.27976590394973755, 0.21271663904190063, -0.23857024312019348, 0.18132129311561584, 0.0024050509091466665, 0.2150001972913742, 0.5056708455085754, -0.25692296028137207, -0.07567057013511658, 0.39996829628944397, -0.04591444879770279, -0.04780406132340431, 0.0169663205742836, 0.3778146207332611, 0.13293318450450897, -0.16630809009075165, -0.21450145542621613, 0.36919933557510376, -0.20470161736011505, -0.0959276333451271, -0.16282640397548676, -0.11645568162202835, 0.4206477105617523, 0.37980878353118896, 0.11315423995256424, -0.05185909569263458, 0.03572218120098114, 0.3774411380290985, 0.04352676123380661, -0.19644369184970856, 0.3942953646183014, -0.16037502884864807, -0.01767190918326378, -0.07535151392221451, -0.13992011547088623, -0.3019450008869171, -0.2899506986141205, 0.006283918395638466, 0.04558837041258812, 0.05743858590722084, 0.17553752660751343, -0.06289094686508179, 0.20707015693187714, 0.002997130621224642, 0.1741628497838974, 0.12037087976932526, 0.14088010787963867, 0.13559819757938385, -0.25240468978881836, -0.10827557742595673, -0.4150160551071167, 0.5105981230735779, -0.2547084093093872, -0.039275944232940674, -0.06135784462094307, 0.25253817439079285, 0.02463279664516449, 0.14125603437423706, 0.13429759442806244, 0.6351194381713867, -0.26996442675590515, 0.013525281101465225, 0.29187631607055664, -0.16008317470550537, -0.27635788917541504, 0.16210518777370453, 0.3680669963359833, 0.2745385766029358, 0.3609115183353424, -0.19779209792613983, 0.3337170481681824, -0.2925085723400116, 0.2045738846063614, -0.20856612920761108, -0.07540812343358994, 0.19006012380123138, 0.216956228017807, 0.11528985947370529, 0.13868902623653412, -0.07414204627275467, 0.08850900828838348, -0.05704812705516815, -0.2784792184829712, -0.04235347732901573, 0.2771928012371063, -0.0012595598818734288, 0.46232765913009644, 0.20141088962554932, -0.3186936676502228, 0.14952997863292694, 0.31335729360580444, -0.1303911954164505, -0.01336175948381424, 0.26364800333976746, -0.026887182146310806, -0.17148661613464355, -0.04053176939487457, 0.21530753374099731, 0.41459619998931885, 0.3478783071041107, 0.09279870241880417, 0.04690754413604736, -0.1673029363155365, -0.16036652028560638, 0.02639283426105976, 0.14484483003616333, -0.06116640940308571, 0.21208059787750244, 0.09079237282276154, 0.17683637142181396, -0.16885840892791748, -0.28714674711227417, 0.019702361896634102, -0.03834424912929535, -0.045626379549503326, 0.12168437242507935, 0.08111440390348434, -0.4516409635543823, -0.2804171144962311, 0.06582343578338623, -0.22142566740512848, -0.31730544567108154, 0.1547328382730484, -0.37176328897476196, -0.00850918609648943, 0.005065096542239189, -0.31084689497947693, 0.6126173734664917, -0.6380680799484253, -0.05999965965747833, -0.04292169585824013, -0.3297203779220581, -0.1528775691986084, 0.16916167736053467, 0.3665497303009033, 0.1522335261106491, 0.5014581084251404, 0.09290336072444916, 0.27224189043045044, -0.24421653151512146, -0.5257213711738586, -0.1177097037434578, -0.3639344871044159, -0.10254912823438644, -0.11849377304315567, -0.2681976556777954, 0.32487958669662476, -0.1772310882806778, -0.14127886295318604, 0.061334069818258286, -0.09010250866413116, -0.30702826380729675, -0.010255537927150726, -0.3610471785068512, -0.0657806321978569, -0.21391811966896057, -0.28011468052864075, -0.3550035059452057, 0.2222711741924286, 0.14722532033920288, -0.1143486425280571, -0.08255352824926376, -0.11714944988489151, 0.23020268976688385, -0.055916570127010345, 0.09735644608736038, -0.10915539413690567, 0.2215321958065033, 0.09667810797691345, 0.07370024174451828, -0.2337377965450287, 0.03555662930011749, -0.05998605862259865, 0.08565530925989151, 0.26198917627334595, -0.5661296844482422, 0.14495733380317688, -0.06937910616397858, 0.11105654388666153, -0.02268674224615097, -0.06084579974412918, 0.033021312206983566, 0.2816912531852722, -0.01821986585855484, -0.1531526744365692, -0.43426069617271423, 0.032330721616744995, 0.08225401490926743, 0.2794431149959564, -0.06374327838420868, 0.037120163440704346, -0.03882686421275139, 0.21415600180625916, 0.28311794996261597, -0.3406554162502289, 0.2703132927417755, 0.30392637848854065, 0.3658166825771332, 0.10948777198791504, -0.10961661487817764, 0.4175207018852234, 0.005568023305386305, 0.11202722042798996, 0.20094868540763855, 0.18555106222629547, -0.25468260049819946, -0.15137939155101776, 0.1681477576494217, -0.05290352553129196, 0.033262018114328384, 0.3392642140388489, -0.32598042488098145, 0.26817938685417175, 0.06945934146642685, -0.29366639256477356, -0.32405832409858704, -0.11897682398557663, -0.052772823721170425, 0.25303512811660767, 0.22210970520973206, 0.11113337427377701, -0.7394849061965942, 0.1310262382030487, -0.33908817172050476, 0.17666393518447876, 0.2675977647304535, 0.36004820466041565, -0.2742614150047302, 0.037904731929302216, -0.024567436426877975, -0.003453395562246442, -0.059603892266750336, -0.3821156919002533, -0.4413822889328003, -0.0014771278947591782, 0.13783696293830872, -0.19347909092903137, 0.2766517400741577, -0.07315098494291306, -0.020283913239836693, 0.23453719913959503, 0.28081971406936646, -0.16438451409339905, -0.09725401550531387, 0.1360969990491867, 0.3822792172431946, 0.01384000014513731, -0.36394473910331726, 0.21488407254219055, -0.15495803952217102, -0.15724821388721466, -0.25545617938041687, -0.11480848491191864, -0.18867157399654388, 0.19327779114246368, 0.02025202289223671, -0.16470907628536224, -0.15926583111286163, 0.3284505307674408, -0.07597965002059937, -0.3297520577907562, 0.17662730813026428, 0.19958968460559845, -0.18828248977661133, 0.3775123953819275, 0.026808209717273712, 0.4057420790195465, -0.15329748392105103, -0.2642551064491272, 0.03130875155329704, -0.14811944961547852, 0.5700644254684448, 0.32013195753097534, 0.07566315680742264, 0.2256230264902115, 0.023660719394683838, -0.2887452244758606, -0.3492984175682068, 0.2807311713695526, 0.24567554891109467, 0.31735295057296753, -0.3498890697956085, -0.5515735149383545, 0.4434369206428528, 0.19498436152935028, -0.08183135837316513, -0.06996779888868332, -0.14790290594100952, -0.2677097022533417, 0.20631007850170135, 0.05110708251595497, 0.7768350839614868, -0.1354140043258667, 0.33825206756591797, 0.0252800565212965, -0.455047607421875, 0.53154057264328, -0.14267706871032715, -0.16118896007537842, -0.025968464091420174, 0.16256648302078247, 0.013132845051586628, -0.07633726298809052, 0.025565722957253456, 0.29100435972213745, 0.1330583691596985, -0.014058386906981468, 0.21049290895462036, -0.15065209567546844, 0.09649256616830826, 0.782301127910614, -0.22086620330810547, -0.35754385590553284, -0.30734047293663025, 0.16965052485466003, -0.21329936385154724, -0.10543530434370041, -0.06839975714683533, -0.20089544355869293, -0.15483523905277252, 0.30813437700271606, -0.32937055826187134, -0.01278138067573309, 0.33295613527297974, -0.16266845166683197, -0.15926219522953033, -0.08144187927246094, 0.6952059268951416, 0.06788776814937592, 0.36312323808670044, -0.07602633535861969, -0.11237016320228577, -0.039728082716464996, -0.3975084722042084, 0.04181854799389839, 0.15059985220432281, 0.059732843190431595, 0.2984386682510376, -0.06340821832418442, -0.022011298686265945, 0.237218976020813, 0.1376473605632782, 0.022248266264796257, -0.43880730867385864, 0.03400387614965439, 0.30602511763572693, -0.15127252042293549, -0.07498268038034439, 0.588683545589447, -0.09401055425405502, 0.025753691792488098, 0.13718782365322113, 0.23331311345100403, 0.1604946255683899, 0.11720756441354752, 0.14137521386146545, -0.14446629583835602, -0.1640489101409912, 0.02874487265944481, -0.10755105316638947, -0.19008947908878326, 0.1852167695760727, 0.003588551189750433, -0.18001510202884674, -0.1428709477186203, 0.027700595557689667, -0.04182666167616844, -0.3136703372001648, -0.29852309823036194, 0.22796370089054108, -0.06655308604240417, -0.2161625325679779, -0.0897093191742897, 0.12528589367866516, -0.2783391773700714, 0.1514788568019867, -0.23204642534255981, -0.3384665548801422, 0.23098807036876678, -0.21371416747570038, 0.1870669424533844, -0.0068738991394639015, 0.29226040840148926, -0.16242678463459015, 0.1355937421321869, -0.3200896680355072, -0.16592584550380707, 0.06379832327365875, 0.1973966658115387, 0.36637958884239197, -0.0828697606921196, -0.25328508019447327, -0.10485411435365677, 0.06685198098421097, -0.22570382058620453, -0.14111804962158203, -0.15413349866867065, -0.001980352448299527, 0.11520659178495407, 0.40156978368759155, -0.23541107773780823, 0.005765931215137243, -0.15893708169460297, 0.02956574596464634, -0.10204743593931198, -0.14644663035869598, -0.03358110412955284, -0.24792063236236572, 0.323900431394577, -0.40417101979255676, -0.07528414577245712, -0.05304570868611336, 0.32443511486053467, 0.044613637030124664, 0.21835000813007355, 0.11030988395214081, 0.4018843173980713, 0.2877156436443329, 0.19192436337471008, -0.1951216161251068, 0.2794586420059204, 0.10168372839689255, 0.2987416386604309, 0.22391708195209503, -0.10981575399637222, 0.46861356496810913, 0.2652963697910309, 0.14522242546081543, 0.2806887626647949, -0.10260049253702164, -0.1588008552789688, 0.3392032980918884, 0.16660788655281067, -0.23671448230743408, 0.10888469964265823, 0.09884274005889893, 0.19008854031562805, 0.10520820319652557, 0.3454720079898834, 0.3633001744747162, 0.17015963792800903, -0.18713785707950592, -0.13436564803123474, 0.20544683933258057, -0.17051084339618683, -0.1407383382320404, -0.01696239598095417, 0.027636468410491943, 0.026455320417881012, 0.17862306535243988, 0.587797224521637, 0.01952117122709751, 0.21587948501110077, -0.11329033225774765, 0.5705667734146118, 0.16602660715579987, 0.29260942339897156, 0.2518780827522278, -0.15017645061016083, 0.19900035858154297, 0.3131931722164154, 0.19057130813598633, 0.09405148774385452, 0.09971673786640167, 0.3216199576854706, 0.09406527876853943, -0.15494218468666077, 0.27532923221588135, 0.29879891872406006, -0.12125233560800552, 0.06104710325598717, -0.17941850423812866, -0.1137370839715004, -0.2061053216457367, 0.030427688732743263, -0.25636136531829834, -0.23592497408390045, 0.24089761078357697, 0.06693277508020401, -0.047664985060691833, -0.4425087571144104, 0.3935590088367462, 0.00006504983321065083, 0.01778642274439335, -0.08880271762609482, 0.18225012719631195, -0.19030073285102844, -0.05592675507068634, 0.35643333196640015, 0.2742895781993866, 0.12482598423957825, 0.18404187262058258, -0.0299159474670887, 0.3358236253261566, -0.13165535032749176, 0.14480972290039062, -0.11638402938842773, 0.43673378229141235, 0.17133210599422455, -0.027259599417448044, 0.41999122500419617, 0.09013086557388306, -0.06354809552431107, 0.21654613316059113, -0.008266559801995754, -0.3266594409942627, -0.19000688195228577, 0.5533892512321472, 0.07430408895015717, -0.17846904695034027, -0.1753474622964859, -0.013800729997456074, -0.09823651611804962, -0.3667755722999573, 0.5476851463317871, -0.2209511697292328, 0.05809173360466957, -0.1955658495426178, 0.10268735885620117, -0.053768690675497055, 0.2913798391819, 0.34082940220832825, 0.2516343295574188, -0.08499517291784286, 0.12127874791622162, -0.48034849762916565, -0.05785625800490379, -0.021976573392748833, -0.18197594583034515, -0.273789644241333, -0.0833316370844841, 0.07230760902166367, 0.32522550225257874, -0.0984480008482933, 0.2862284779548645, -0.020115047693252563, -0.2694896161556244, -0.2070252150297165, -0.056277476251125336, 0.2990209460258484, 0.208694189786911, -0.06642670184373856, 0.07864189893007278, -0.19191798567771912, -0.012033367529511452, 0.030599694699048996, -0.317783385515213, -0.057242680341005325, -0.02072199620306492, 0.16445857286453247, 0.17148903012275696, 0.060346271842718124, 0.5298670530319214, -0.025094417855143547, 0.010119237005710602, -0.2049938142299652, -0.3195367753505707, -0.20655737817287445, 0.1681695431470871, -0.035723019391298294, 0.0005485377041622996, -0.3461439311504364, 0.3349311351776123, 0.008743592537939548, -0.010463657788932323, -0.02482597902417183, -0.10523328185081482, -0.26637786626815796, 0.16465014219284058, -0.2904593050479889, 0.18722854554653168, 0.11426961421966553, 0.37100791931152344, 0.1334942877292633, 0.008168471977114677, 0.029006019234657288, -0.006844177842140198, 0.11381128430366516, -0.004021521657705307, -0.09907523542642593, 0.33020761609077454, 0.03846960887312889, 0.32645276188850403, -0.002017390914261341, -0.6941642761230469, -0.2996273636817932, 0.41331565380096436, -0.2155337929725647, 0.1269996166229248, 0.1994936168193817, -0.08742586523294449, -0.3565053343772888, -0.20233801007270813, -0.021588528528809547, -0.27993521094322205, -0.14786504209041595, 0.23825505375862122, -0.21456952393054962 ]
https://github.com/huggingface/datasets/issues/302
Question - Sign Language Datasets
This is a really cool idea ! The example for data objects you gave for the RWTH-PHOENIX-Weather 2014 T dataset can totally fit inside the library. For your point about formats like `ilex`, `eaf`, or `srt`, it is possible to use any library in your dataset script. However most user probably won't need these libraries, as most datasets don't need them, and therefore it's unlikely that we will have them in the minimum requirements to use `nlp` (we want to keep it as light-weight as possible). If a user wants to load your dataset and doesn't have the libraries you need, an error is raised asking the user to install them. More generally, we plan to have something like a `requirements.txt` per dataset. This could also be a place for addons as you said. What do you think ?
An emerging field in NLP is SLP - sign language processing. I was wondering about adding datasets here, specifically because it's shaping up to be large and easily usable. The metrics for sign language to text translation are the same. So, what do you think about (me, or others) adding datasets here? An example dataset would be [RWTH-PHOENIX-Weather 2014 T](https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/) For every item in the dataset, the data object includes: 1. video_path - path to mp4 file 2. pose_path - a path to `.pose` file with human pose landmarks 3. openpose_path - a path to a `.json` file with human pose landmarks 4. gloss - string 5. text - string 6. video_metadata - height, width, frames, framerate ------ To make it a tad more complicated - what if sign language libraries add requirements to `nlp`? for example, sign language is commonly annotated using `ilex`, `eaf`, or `srt` files, which are all loadable as text, but there is no reason for the dataset to parse that file by itself, if libraries exist to do so.
139
Question - Sign Language Datasets An emerging field in NLP is SLP - sign language processing. I was wondering about adding datasets here, specifically because it's shaping up to be large and easily usable. The metrics for sign language to text translation are the same. So, what do you think about (me, or others) adding datasets here? An example dataset would be [RWTH-PHOENIX-Weather 2014 T](https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/) For every item in the dataset, the data object includes: 1. video_path - path to mp4 file 2. pose_path - a path to `.pose` file with human pose landmarks 3. openpose_path - a path to a `.json` file with human pose landmarks 4. gloss - string 5. text - string 6. video_metadata - height, width, frames, framerate ------ To make it a tad more complicated - what if sign language libraries add requirements to `nlp`? for example, sign language is commonly annotated using `ilex`, `eaf`, or `srt` files, which are all loadable as text, but there is no reason for the dataset to parse that file by itself, if libraries exist to do so. This is a really cool idea ! The example for data objects you gave for the RWTH-PHOENIX-Weather 2014 T dataset can totally fit inside the library. For your point about formats like `ilex`, `eaf`, or `srt`, it is possible to use any library in your dataset script. However most user probably won't need these libraries, as most datasets don't need them, and therefore it's unlikely that we will have them in the minimum requirements to use `nlp` (we want to keep it as light-weight as possible). If a user wants to load your dataset and doesn't have the libraries you need, an error is raised asking the user to install them. More generally, we plan to have something like a `requirements.txt` per dataset. This could also be a place for addons as you said. What do you think ?
[ -0.23924130201339722, 0.43220609426498413, -0.0678170770406723, 0.026453658938407898, -0.0018662939546629786, -0.02651732973754406, 0.21930259466171265, 0.3350124657154083, 0.25123831629753113, -0.2982076108455658, 0.07764774560928345, 0.22359904646873474, -0.36722686886787415, 0.3933981657028198, 0.3731899857521057, -0.17884057760238647, -0.14178624749183655, 0.1445281207561493, -0.04599320888519287, -0.0068760523572564125, -0.17934109270572662, -0.13834699988365173, 0.08431815356016159, 0.003277176758274436, -0.3872092068195343, -0.29462504386901855, -0.20223812758922577, 0.010300414636731148, -0.20749276876449585, -0.3936845660209656, -0.3563821017742157, 0.2389657199382782, 0.4327620565891266, -0.0413164347410202, -0.00011181793524883687, -0.19651439785957336, 0.0004834054852835834, -0.026412522420287132, -0.375936895608902, -0.21818912029266357, -0.1599295437335968, -0.6538224816322327, -0.0996583104133606, -0.2734125256538391, 0.2359742522239685, -0.4207749366760254, 0.19323603808879852, -0.4131365120410919, 0.02407483197748661, 0.31000834703445435, 0.25512999296188354, 0.20836561918258667, -0.146249458193779, 0.28167107701301575, 0.21710678935050964, 0.4220113754272461, -0.04849277064204216, -0.3106172978878021, 0.37964949011802673, 0.05358744040131569, -0.119709312915802, 0.1756715625524521, 0.15216168761253357, -0.5902647972106934, 0.37197035551071167, -0.04825205355882645, -0.214459627866745, -0.11579910665750504, -0.07887059450149536, 0.17586897313594818, 0.4622628092765808, -0.4509207606315613, -0.6121038794517517, -0.555601954460144, 0.24401409924030304, -0.1052369698882103, -0.2322891652584076, 0.45636823773384094, 0.16651420295238495, 0.0677279531955719, -0.22393541038036346, -0.5427980422973633, -0.06805461645126343, 0.2172314077615738, 0.17046025395393372, 0.43200358748435974, 0.13027741014957428, 0.028224729001522064, -0.1478252112865448, -0.036315906792879105, 0.08338535577058792, -0.40887174010276794, -0.054742828011512756, 0.07550261914730072, -0.15219099819660187, -0.2674987018108368, -0.044373709708452225, 0.3259715735912323, 0.2731185555458069, 0.17763970792293549, -0.011931934393942356, -0.01928982511162758, -0.38699987530708313, 0.09396162629127502, 0.3464575409889221, -0.02821044623851776, 0.11120526492595673, -0.020723611116409302, 0.11455271393060684, -0.3524116575717926, 0.4173044264316559, -0.042194705456495285, -0.11748331785202026, 0.08227705210447311, -0.2719348073005676, -0.11315785348415375, 0.13559459149837494, -0.024695632979273796, -0.0708162859082222, 0.033358749002218246, -0.037873025983572006, -0.17798219621181488, 0.13808965682983398, -0.07318578660488129, 0.0021022369619458914, 0.3331815004348755, 0.028869332745671272, 0.2900315225124359, 0.15257389843463898, -0.2059972882270813, 0.09052146226167679, 0.33862966299057007, -0.393027126789093, 0.22883720695972443, 0.38499531149864197, -0.07330037653446198, 0.16231636703014374, -0.0317893885076046, -0.03284020349383354, 0.03338542580604553, 0.3529454469680786, -0.11493296176195145, 0.17892304062843323, -0.17889709770679474, -0.019249947741627693, 0.019733397290110588, -0.3452149033546448, -0.14836947619915009, -0.3417447805404663, 0.04574006795883179, -0.013470068573951721, -0.024854350835084915, -0.0725102424621582, 0.1527012586593628, -0.3737698197364807, -0.36575421690940857, -0.3084928095340729, 0.47377893328666687, 0.016290316358208656, -0.13614577054977417, 0.1009615808725357, -0.22382722795009613, -0.32142674922943115, -0.07594919204711914, -0.2590920329093933, 0.5499832630157471, -0.4044003486633301, -0.13083940744400024, -0.08573124557733536, -0.06001635268330574, -0.28991830348968506, 0.1903127133846283, -0.26753419637680054, 0.2019139528274536, -0.06158038228750229, 0.12603160738945007, 0.5230684876441956, -0.3338766396045685, 0.05306568741798401, 0.49137648940086365, 0.052352096885442734, -0.0058547561056911945, 0.16323378682136536, 0.340849906206131, 0.24599477648735046, -0.29456207156181335, -0.3590260148048401, 0.3687419295310974, -0.22496093809604645, -0.07281264662742615, -0.09553408622741699, -0.1786119043827057, 0.41746070981025696, 0.2728400230407715, 0.04707486182451248, -0.05890403315424919, 0.00636150361970067, 0.3632199168205261, 0.03393136337399483, -0.21276313066482544, 0.3684435188770294, -0.1088632196187973, 0.00760542182251811, 0.01012757420539856, -0.0747038796544075, -0.2783150374889374, -0.31354132294654846, -0.013271835632622242, -0.019197236746549606, 0.08991479128599167, 0.2209041565656662, -0.1653004139661789, 0.11421119421720505, -0.05274404585361481, 0.19206573069095612, 0.07836302369832993, 0.10119619965553284, 0.10694291442632675, -0.22991198301315308, -0.130141943693161, -0.44603651762008667, 0.34607023000717163, -0.02950548380613327, -0.03114590421319008, -0.07711154222488403, 0.11652503162622452, 0.03450389951467514, 0.19588255882263184, 0.1797942966222763, 0.6314445734024048, -0.23890900611877441, -0.04380486160516739, 0.24265067279338837, 0.02835199423134327, -0.11188953369855881, 0.17526088654994965, 0.2202179729938507, 0.32960277795791626, 0.3699398934841156, -0.07041317224502563, 0.39019909501075745, -0.22601909935474396, 0.2912963032722473, -0.14207397401332855, -0.07084134221076965, 0.2859688103199005, 0.16604089736938477, 0.0717804953455925, 0.20959867537021637, -0.04425044357776642, 0.07859986275434494, -0.05453290417790413, -0.33886605501174927, -0.18127818405628204, 0.15920551121234894, -0.04056738689541817, 0.380935937166214, 0.21730394661426544, -0.3826068341732025, 0.09805142134428024, 0.4414025843143463, -0.03117246925830841, 0.03339492902159691, 0.24069760739803314, -0.004763802979141474, -0.1045905351638794, -0.03789843991398811, 0.1969146728515625, 0.448066383600235, 0.35965368151664734, -0.07679547369480133, 0.03280797228217125, -0.060568567365407944, -0.26239249110221863, 0.1412646770477295, 0.16700755059719086, -0.14437752962112427, 0.10627055913209915, -0.030021890997886658, 0.15402670204639435, -0.15100421011447906, -0.40895113348960876, -0.07203052192926407, -0.12735162675380707, -0.08167771250009537, 0.21211698651313782, -0.1215316653251648, -0.5161285400390625, -0.34764137864112854, 0.11488509923219681, -0.09872990846633911, -0.20642904937267303, 0.2614905834197998, -0.3910249173641205, 0.011318055912852287, 0.07682783156633377, -0.2987985610961914, 0.6431242823600769, -0.72394198179245, 0.011215835809707642, 0.016722628846764565, -0.3049182891845703, -0.2272377759218216, 0.14020627737045288, 0.4569425880908966, 0.16158460080623627, 0.5446457266807556, 0.04859625920653343, 0.24543321132659912, -0.24719837307929993, -0.4581664204597473, -0.058619603514671326, -0.3301422595977783, -0.057284191250801086, -0.07133534550666809, -0.147548109292984, 0.2797914743423462, -0.11514763534069061, -0.19599004089832306, 0.0035620382986962795, -0.04172215238213539, -0.2534702718257904, -0.06148986518383026, -0.3246535360813141, -0.19386494159698486, -0.2606075406074524, -0.25973278284072876, -0.33101800084114075, 0.1313387006521225, 0.17732058465480804, 0.030421392992138863, 0.026484616100788116, -0.08152350783348083, 0.17963992059230804, -0.10722951591014862, 0.09630703181028366, 0.008284940384328365, 0.10833824425935745, 0.1894974410533905, -0.05202657729387283, -0.3316071629524231, 0.08739379793405533, -0.022806741297245026, 0.14448969066143036, 0.3162434995174408, -0.4225606620311737, 0.06710097938776016, -0.06350846588611603, -0.07215835899114609, -0.008991428650915623, -0.0036784580443054438, 0.11861849576234818, 0.2058074027299881, 0.017942113801836967, -0.15308818221092224, -0.3764442205429077, 0.0828263908624649, -0.0834401547908783, 0.1790899783372879, 0.03887281194329262, 0.13810178637504578, -0.01039722841233015, 0.14126050472259521, 0.19290995597839355, -0.3087897002696991, 0.3499726951122284, 0.2729180157184601, 0.43985623121261597, 0.11962439864873886, -0.016253028064966202, 0.36992624402046204, 0.10091773420572281, 0.22198525071144104, 0.3352721929550171, 0.2073647528886795, -0.09740076959133148, -0.20052435994148254, 0.14870715141296387, -0.12878093123435974, 0.03929511085152626, 0.4502097964286804, -0.35020190477371216, 0.3220340609550476, 0.061231642961502075, -0.16015924513339996, -0.22317612171173096, -0.2075294554233551, -0.042139891535043716, 0.34623458981513977, 0.3087904751300812, 0.18749681115150452, -0.6915635466575623, 0.02810063399374485, -0.1986752450466156, 0.1414339542388916, 0.1980617493391037, 0.37192195653915405, -0.2181532233953476, 0.19712123274803162, -0.024720516055822372, 0.06497640162706375, -0.17257460951805115, -0.3487083315849304, -0.5127554535865784, -0.09924716502428055, 0.04869839921593666, -0.29505521059036255, 0.24543392658233643, -0.11078846454620361, -0.01768461987376213, 0.09936202317476273, 0.2490227222442627, -0.22875989973545074, -0.24611471593379974, 0.023490440100431442, 0.34722137451171875, -0.05219704657793045, -0.4224456250667572, 0.20011577010154724, -0.13701291382312775, -0.20338496565818787, -0.31959566473960876, -0.06628664582967758, -0.2527781128883362, 0.10402683168649673, 0.0779750719666481, -0.1703682541847229, -0.14111128449440002, 0.4347406327724457, -0.11843681335449219, -0.20262406766414642, 0.14153580367565155, 0.044818513095378876, -0.26200157403945923, 0.32388028502464294, 0.08315690606832504, 0.30490097403526306, -0.1074470728635788, -0.04295642673969269, 0.04509599506855011, -0.21956108510494232, 0.6228877305984497, 0.33408603072166443, 0.08120673894882202, 0.25020721554756165, -0.018295906484127045, -0.3800020217895508, -0.3088880479335785, 0.18872545659542084, 0.14859671890735626, 0.008277494460344315, -0.370319128036499, -0.663386344909668, 0.33674895763397217, 0.165156751871109, 0.005812430288642645, -0.07492559403181076, -0.04948140308260918, -0.3187720477581024, 0.32408881187438965, 0.1464221477508545, 0.8677605986595154, -0.13015156984329224, 0.3352991044521332, 0.006356497760862112, -0.48588404059410095, 0.596965491771698, -0.23431453108787537, -0.1293564736843109, -0.15310031175613403, 0.13663986325263977, -0.12045799940824509, -0.07733310014009476, 0.1317736655473709, 0.3119998276233673, 0.0009111640974879265, 0.07090049982070923, 0.18172910809516907, -0.11638260632753372, 0.08053406327962875, 0.8477876782417297, -0.38456758856773376, -0.46522513031959534, -0.3680841028690338, 0.1518683135509491, -0.22482508420944214, -0.13280273973941803, -0.1276875138282776, -0.24708622694015503, -0.11003004759550095, 0.15956687927246094, -0.3609999418258667, -0.07531324774026871, 0.334550142288208, -0.20683367550373077, -0.08739794045686722, -0.11785886436700821, 0.780383825302124, 0.14367014169692993, 0.3111170530319214, 0.08396496623754501, -0.12463106215000153, -0.0810202807188034, -0.4270601272583008, -0.011017680168151855, 0.1402978003025055, 0.07204551994800568, 0.32781147956848145, -0.10533013939857483, 0.05811726674437523, 0.2616513967514038, 0.10771964490413666, 0.07247959822416306, -0.3610970973968506, -0.0051489234901964664, 0.33756688237190247, -0.15435771644115448, -0.18174472451210022, 0.3534453809261322, -0.11845950037240982, 0.0354432687163353, 0.11113538593053818, 0.2420220673084259, 0.21341170370578766, 0.1371784806251526, 0.15664595365524292, -0.06939515471458435, -0.23075690865516663, -0.06526302546262741, -0.07055673748254776, -0.1846156269311905, 0.2672117054462433, 0.07542330771684647, -0.11974704265594482, -0.21362993121147156, 0.16333100199699402, -0.029477549716830254, -0.3949565887451172, -0.31767457723617554, 0.25995072722435, -0.023539835587143898, -0.25618475675582886, -0.08135093748569489, 0.0380740612745285, -0.18455128371715546, 0.15192396938800812, -0.3738640248775482, -0.21479026973247528, 0.23288579285144806, -0.19294488430023193, 0.1649009883403778, 0.022864436730742455, 0.20643606781959534, -0.18116334080696106, 0.15035971999168396, -0.3148275315761566, -0.20837005972862244, 0.1537429392337799, 0.26677483320236206, 0.33453747630119324, 0.0792364627122879, -0.2752801775932312, -0.11766929924488068, 0.022004269063472748, -0.09060679376125336, -0.15880346298217773, -0.1168166995048523, -0.1460379958152771, 0.13779997825622559, 0.3670162558555603, -0.24576789140701294, -0.02017422579228878, -0.10322734713554382, -0.13630540668964386, -0.11416351050138474, -0.18472421169281006, 0.023902852088212967, -0.3247131407260895, 0.37245509028434753, -0.3234480917453766, -0.01689939759671688, -0.14683859050273895, 0.20279815793037415, 0.044122353196144104, 0.32068201899528503, 0.3426314890384674, 0.3007251024246216, 0.17994025349617004, 0.09476026892662048, -0.2369462549686432, 0.3371215760707855, 0.17224843800067902, 0.3267548382282257, 0.1307586431503296, -0.01509693544358015, 0.49827849864959717, 0.2800494134426117, 0.08311174064874649, 0.28504058718681335, -0.006260718684643507, -0.09257630258798599, 0.4295138418674469, 0.1191856637597084, -0.11689423024654388, 0.15043483674526215, 0.1159248948097229, 0.17502132058143616, 0.025716029107570648, 0.49621111154556274, 0.3500531017780304, 0.14378918707370758, -0.06755411624908447, -0.1350017786026001, 0.08262796700000763, -0.06611505150794983, -0.06668061763048172, -0.14478549361228943, 0.07240085303783417, 0.04374578967690468, 0.0006447330815717578, 0.43991461396217346, 0.06957400590181351, 0.06638258695602417, -0.07985468208789825, 0.523102343082428, 0.2074705958366394, 0.2747342884540558, 0.1934809684753418, -0.20480360090732574, 0.10355450958013535, 0.2038637399673462, 0.3004034757614136, 0.11932065337896347, 0.1591387242078781, 0.3542211055755615, 0.12608958780765533, -0.11948932707309723, 0.17090673744678497, 0.21106471121311188, -0.08064934611320496, 0.11106257140636444, -0.20040251314640045, -0.07253003865480423, -0.21580390632152557, 0.062119223177433014, -0.23874005675315857, -0.1798119693994522, 0.09636827558279037, 0.1368218958377838, 0.006744774524122477, -0.38597631454467773, 0.4528259038925171, -0.040210213512182236, 0.009166627191007137, -0.1356380432844162, 0.305226594209671, -0.10144045948982239, 0.06598338484764099, 0.35491564869880676, 0.21006527543067932, 0.09907117486000061, 0.2855640947818756, 0.1362917274236679, 0.23550115525722504, -0.21027112007141113, 0.14387354254722595, -0.0006829645135439932, 0.4406958818435669, 0.23737289011478424, 0.212976336479187, 0.45362433791160583, 0.09136831015348434, 0.0018619289621710777, 0.12051035463809967, 0.05140112340450287, -0.42797282338142395, -0.22074702382087708, 0.5370098948478699, 0.251429945230484, -0.16852013766765594, -0.15818750858306885, 0.002970839384943247, -0.08600697666406631, -0.403535395860672, 0.5033174753189087, 0.015762902796268463, 0.04971672222018242, -0.2786104083061218, 0.083086758852005, 0.046386800706386566, 0.33768489956855774, 0.39663705229759216, 0.27806758880615234, -0.18497022986412048, 0.0493987612426281, -0.38380470871925354, -0.055998705327510834, -0.15252785384655, -0.2819632887840271, -0.2818738520145416, -0.12823225557804108, 0.09951754659414291, 0.34709370136260986, -0.1571500301361084, 0.3710309863090515, 0.01794680766761303, -0.3060078024864197, -0.23530413210391998, -0.10546304285526276, 0.24770300090312958, 0.28294292092323303, -0.11344923824071884, 0.056006237864494324, -0.22235876321792603, -0.08121476322412491, 0.023364640772342682, -0.4031127691268921, -0.00806530099362135, -0.0687292143702507, 0.1518028974533081, 0.1368701308965683, 0.024308154359459877, 0.570608377456665, 0.010629801079630852, 0.06802607327699661, -0.24282318353652954, -0.14646044373512268, -0.1731860339641571, 0.14919589459896088, 0.12186960130929947, 0.06712906062602997, -0.38640663027763367, 0.1353754848241806, -0.08850011229515076, 0.17952954769134521, -0.1564379781484604, -0.06570202857255936, -0.14796605706214905, 0.20392121374607086, -0.43168067932128906, 0.08307506889104843, 0.15965373814105988, 0.33157482743263245, 0.023645726963877678, 0.0015564168570563197, 0.022498300299048424, 0.017032189294695854, 0.11909089982509613, 0.004099283367395401, -0.09428001940250397, 0.3629522919654846, 0.05925570800900459, 0.2928442060947418, -0.010444097220897675, -0.6340751647949219, -0.19548974931240082, 0.31985965371131897, -0.03352372720837593, 0.1436675786972046, 0.16938693821430206, -0.09858833998441696, -0.2704075872898102, -0.1893446147441864, 0.010636284947395325, -0.2141198366880417, -0.14672024548053741, 0.12958838045597076, -0.1905372142791748 ]
https://github.com/huggingface/datasets/issues/302
Question - Sign Language Datasets
Thanks, Quentin, I think a `requirements.txt` per dataset will be a good thing. I will work on adding this dataset next week, and once we sort all of the kinks, I'll add more.
An emerging field in NLP is SLP - sign language processing. I was wondering about adding datasets here, specifically because it's shaping up to be large and easily usable. The metrics for sign language to text translation are the same. So, what do you think about (me, or others) adding datasets here? An example dataset would be [RWTH-PHOENIX-Weather 2014 T](https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/) For every item in the dataset, the data object includes: 1. video_path - path to mp4 file 2. pose_path - a path to `.pose` file with human pose landmarks 3. openpose_path - a path to a `.json` file with human pose landmarks 4. gloss - string 5. text - string 6. video_metadata - height, width, frames, framerate ------ To make it a tad more complicated - what if sign language libraries add requirements to `nlp`? for example, sign language is commonly annotated using `ilex`, `eaf`, or `srt` files, which are all loadable as text, but there is no reason for the dataset to parse that file by itself, if libraries exist to do so.
33
Question - Sign Language Datasets An emerging field in NLP is SLP - sign language processing. I was wondering about adding datasets here, specifically because it's shaping up to be large and easily usable. The metrics for sign language to text translation are the same. So, what do you think about (me, or others) adding datasets here? An example dataset would be [RWTH-PHOENIX-Weather 2014 T](https://www-i6.informatik.rwth-aachen.de/~koller/RWTH-PHOENIX-2014-T/) For every item in the dataset, the data object includes: 1. video_path - path to mp4 file 2. pose_path - a path to `.pose` file with human pose landmarks 3. openpose_path - a path to a `.json` file with human pose landmarks 4. gloss - string 5. text - string 6. video_metadata - height, width, frames, framerate ------ To make it a tad more complicated - what if sign language libraries add requirements to `nlp`? for example, sign language is commonly annotated using `ilex`, `eaf`, or `srt` files, which are all loadable as text, but there is no reason for the dataset to parse that file by itself, if libraries exist to do so. Thanks, Quentin, I think a `requirements.txt` per dataset will be a good thing. I will work on adding this dataset next week, and once we sort all of the kinks, I'll add more.
[ -0.19740094244480133, 0.4022527039051056, -0.07910928875207901, -0.005022880155593157, -0.07678984105587006, 0.043610282242298126, 0.11855468899011612, 0.25038909912109375, 0.2235918790102005, -0.32818856835365295, 0.17706619203090668, 0.22711648046970367, -0.4437551200389862, 0.26446008682250977, 0.34081560373306274, -0.1764734983444214, -0.08428039401769638, 0.08045505732297897, -0.023516038432717323, -0.09637774527072906, -0.2208424210548401, -0.09170778095722198, 0.09560000151395798, -0.05770124867558479, -0.4422941207885742, -0.3327751159667969, -0.17811733484268188, 0.07416697591543198, -0.20405113697052002, -0.37078291177749634, -0.4634329378604889, 0.15675847232341766, 0.4244997203350067, -0.15837553143501282, -0.00011447801807662472, -0.24690775573253632, 0.012398572638630867, -0.015204786323010921, -0.24231773614883423, -0.10233238339424133, -0.15771830081939697, -0.7473182678222656, -0.14942853152751923, -0.1643093228340149, 0.25293004512786865, -0.4430563449859619, 0.13768605887889862, -0.25732940435409546, 0.09757328778505325, 0.34615564346313477, 0.2374008744955063, 0.12113012373447418, -0.1563316136598587, 0.2964704632759094, 0.12270144373178482, 0.3389030396938324, -0.0006763219716958702, -0.3003678619861603, 0.3348724842071533, -0.02348746918141842, -0.21046142280101776, 0.2818760573863983, 0.19335511326789856, -0.5736477971076965, 0.27103790640830994, -0.06851738691329956, -0.20798559486865997, -0.06763089448213577, -0.06690891832113266, 0.07544578611850739, 0.3453676700592041, -0.3600131869316101, -0.49739232659339905, -0.746982753276825, 0.2285512238740921, -0.09282025694847107, -0.11265146732330322, 0.3469289541244507, 0.15503214299678802, -0.010782317258417606, -0.09980560839176178, -0.6777375340461731, 0.004527640528976917, 0.10901004821062088, 0.13957755267620087, 0.36643722653388977, 0.15973792970180511, -0.01401609182357788, 0.02138579450547695, -0.06011941656470299, 0.07807127386331558, -0.3396187126636505, -0.08970817178487778, 0.14681164920330048, -0.22796644270420074, -0.2546849548816681, 0.04568730667233467, 0.17959006130695343, 0.15822604298591614, 0.10558769851922989, -0.037768471986055374, -0.08720239996910095, -0.3492962718009949, 0.06521061807870865, 0.38262301683425903, -0.05246138945221901, 0.0003887100610882044, 0.06254544854164124, 0.028249261900782585, -0.3815045654773712, 0.37182798981666565, 0.006555513478815556, -0.03790488839149475, 0.008547918871045113, -0.18680573999881744, -0.11112470179796219, 0.10674320161342621, -0.03398686647415161, 0.023668428882956505, 0.12124978750944138, -0.16664506494998932, -0.21110978722572327, 0.07592906802892685, -0.09829637408256531, 0.07460636645555496, 0.3548748195171356, 0.040123261511325836, 0.277165949344635, 0.20931296050548553, -0.22900255024433136, 0.06855534017086029, 0.1722652167081833, -0.3457757830619812, 0.27881288528442383, 0.43812158703804016, 0.06690403819084167, 0.14235840737819672, 0.06031957268714905, -0.19896672666072845, 0.06186332553625107, 0.3503090739250183, -0.06281708925962448, 0.16137327253818512, -0.14474409818649292, 0.03858891502022743, 0.03657061606645584, -0.3883930444717407, -0.025943297892808914, -0.29253095388412476, 0.1191321536898613, 0.1366376131772995, -0.08047595620155334, -0.0388108529150486, 0.1629546731710434, -0.4021616280078888, -0.3853217661380768, -0.3291309177875519, 0.6202963590621948, 0.10073830187320709, -0.0582491010427475, 0.15969710052013397, -0.16846750676631927, -0.256083607673645, 0.014038270339369774, -0.2791423797607422, 0.42885643243789673, -0.28216269612312317, -0.10590007156133652, -0.12970034778118134, -0.06376855075359344, -0.26008424162864685, 0.24437279999256134, -0.24926842749118805, 0.21109041571617126, -0.027282502502202988, 0.27513694763183594, 0.5070663690567017, -0.23966413736343384, 0.020898684859275818, 0.47498080134391785, -0.07977626472711563, 0.0007161342655308545, 0.10555308312177658, 0.3611431419849396, 0.14355042576789856, -0.1722278743982315, -0.3293015658855438, 0.32348036766052246, -0.27847933769226074, -0.0933738648891449, -0.2011948525905609, -0.17717616260051727, 0.4429149627685547, 0.27421101927757263, 0.14694450795650482, -0.027589263394474983, -0.06635390222072601, 0.4060540795326233, 0.12702688574790955, -0.15666352212429047, 0.34016963839530945, -0.062458887696266174, 0.03527884930372238, 0.01360093429684639, -0.09273874014616013, -0.3162549138069153, -0.154740110039711, -0.030482053756713867, 0.012578381225466728, 0.1696050465106964, 0.20884230732917786, -0.12134861946105957, 0.20399326086044312, -0.10718262940645218, 0.2525421380996704, 0.09556372463703156, 0.11169110238552094, 0.03824077546596527, -0.1850866973400116, -0.11327497661113739, -0.3947126269340515, 0.4281034469604492, -0.27458107471466064, -0.047697313129901886, -0.011499556712806225, 0.07258706539869308, 0.029549872502684593, 0.16979660093784332, 0.13572324812412262, 0.588299036026001, -0.2614140808582306, 0.027380159124732018, 0.2882314622402191, -0.16696637868881226, -0.17252084612846375, 0.18445773422718048, 0.31495019793510437, 0.30895543098449707, 0.3211069405078888, -0.13853205740451813, 0.19992269575595856, -0.18848711252212524, 0.16151803731918335, -0.1845947951078415, -0.01756848767399788, 0.1953345090150833, 0.1894376128911972, 0.10946634411811829, 0.14559395611286163, -0.04654812067747116, 0.1012188047170639, -0.05674348026514053, -0.3234134018421173, -0.0316365510225296, 0.2800019681453705, -0.14449442923069, 0.34016868472099304, 0.21178479492664337, -0.37064674496650696, 0.12145060300827026, 0.3513515889644623, -0.05258982256054878, 0.01165479514747858, 0.2522886395454407, 0.08044030517339706, -0.14679670333862305, 0.006311024539172649, 0.21709439158439636, 0.43612462282180786, 0.35286474227905273, 0.015123618766665459, 0.08794144541025162, -0.12889716029167175, -0.24538329243659973, 0.056670691817998886, 0.1276615858078003, -0.10847821831703186, 0.19865280389785767, 0.071991465985775, 0.1995280683040619, -0.2864275276660919, -0.2640373706817627, -0.021147478371858597, -0.015411308966577053, 0.004608258605003357, 0.07396700978279114, 0.049952272325754166, -0.5297706127166748, -0.36538833379745483, 0.18662436306476593, -0.20115385949611664, -0.23407882452011108, 0.19682800769805908, -0.30853989720344543, 0.009153901599347591, 0.05809909477829933, -0.3039526641368866, 0.6582546830177307, -0.673119843006134, -0.040369294583797455, -0.03514217957854271, -0.3434547781944275, -0.16522002220153809, 0.14369608461856842, 0.3100823760032654, 0.11607708036899567, 0.42836013436317444, 0.06530462205410004, 0.29604512453079224, -0.2109532505273819, -0.5485617518424988, -0.17871466279029846, -0.31395578384399414, -0.19216547906398773, -0.10192892700433731, -0.14951671659946442, 0.37054070830345154, -0.16837650537490845, -0.2032722532749176, 0.07174533605575562, -0.12424210458993912, -0.3720763921737671, -0.014637057669460773, -0.32224562764167786, -0.13558189570903778, -0.17216064035892487, -0.2186245620250702, -0.3289656639099121, 0.2249586135149002, 0.10057692974805832, 0.00167918112128973, -0.021646682173013687, -0.16452673077583313, 0.20520919561386108, -0.18310332298278809, 0.060090720653533936, -0.003185891779139638, 0.17642763257026672, 0.10624921321868896, 0.07994082570075989, -0.30902281403541565, 0.07495879381895065, -0.1006586104631424, 0.1314847469329834, 0.2565287947654724, -0.5255863666534424, 0.12688815593719482, -0.1069989800453186, 0.06410644203424454, -0.06967722624540329, -0.10266775637865067, 0.12477385997772217, 0.2839753031730652, 0.024793043732643127, -0.15746629238128662, -0.4571682810783386, 0.06724439561367035, 0.12726768851280212, 0.34378036856651306, -0.1392299085855484, 0.0594513900578022, -0.002245908137410879, 0.2647855877876282, 0.24345763027668, -0.26428863406181335, 0.3422497510910034, 0.26531681418418884, 0.4194595515727997, 0.16896001994609833, -0.1761704385280609, 0.3868720829486847, 0.0630459189414978, 0.13716159760951996, 0.2577236294746399, 0.19273526966571808, -0.20394989848136902, -0.18080320954322815, 0.13924916088581085, -0.0761856660246849, 0.020494472235441208, 0.41472896933555603, -0.3725944459438324, 0.3546570837497711, 0.1537197381258011, -0.1958046406507492, -0.276685506105423, -0.17655570805072784, -0.1471787989139557, 0.33648863434791565, 0.3284611999988556, 0.17079757153987885, -0.6410794258117676, 0.036829832941293716, -0.31057167053222656, 0.046216513961553574, 0.27456316351890564, 0.43196722865104675, -0.31120046973228455, 0.0976146012544632, -0.05579378083348274, 0.036180589348077774, -0.10557790845632553, -0.41342782974243164, -0.4755863547325134, -0.12964238226413727, 0.1433911919593811, -0.19864140450954437, 0.24958547949790955, -0.039807453751564026, -0.020132042467594147, 0.3165597915649414, 0.2909579575061798, -0.10882700979709625, -0.09149766713380814, 0.02645743079483509, 0.3308041989803314, -0.029689112678170204, -0.4027979075908661, 0.1051177829504013, -0.19422844052314758, -0.09854806214570999, -0.17010147869586945, -0.06686297804117203, -0.18662165105342865, 0.20330218970775604, 0.10286802053451538, -0.13521163165569305, -0.22714318335056305, 0.3835306167602539, -0.07931937277317047, -0.34644097089767456, 0.19342996180057526, 0.1189391016960144, -0.24142228066921234, 0.3323134183883667, -0.026491690427064896, 0.35135531425476074, -0.16459880769252777, -0.2012978196144104, 0.02915012836456299, -0.21964770555496216, 0.6314371824264526, 0.3542378842830658, 0.085601806640625, 0.3629102110862732, 0.063255175948143, -0.3654575049877167, -0.3602577745914459, 0.3150699734687805, 0.23699697852134705, 0.19422569870948792, -0.3291451930999756, -0.5076610445976257, 0.40111666917800903, 0.1376359611749649, -0.036406323313713074, -0.0677829161286354, -0.14304037392139435, -0.28110671043395996, 0.24082879722118378, -0.008188502863049507, 0.7889882326126099, -0.14933614432811737, 0.24965313076972961, -0.07657754421234131, -0.5114427804946899, 0.6271570324897766, -0.16748370230197906, -0.08042802661657333, -0.014344347640872002, 0.18382792174816132, -0.019193226471543312, -0.08121287077665329, 0.1340787708759308, 0.3162004351615906, 0.2134096920490265, -0.04627613723278046, 0.2883569896221161, -0.07037901878356934, 0.10026487708091736, 0.8568930625915527, -0.3034604787826538, -0.3963679373264313, -0.36593368649482727, 0.12642036378383636, -0.24640963971614838, -0.02661127969622612, -0.06498973816633224, -0.2947366237640381, -0.1323821097612381, 0.12679371237754822, -0.4832513928413391, -0.06936855614185333, 0.38884323835372925, -0.23502418398857117, -0.15117216110229492, -0.07680775225162506, 0.717642605304718, 0.07720939815044403, 0.3300270736217499, 0.03146887198090553, -0.19528883695602417, 0.024129746481776237, -0.4325171709060669, -0.08638603240251541, 0.14717352390289307, 0.12194569408893585, 0.14038272202014923, -0.14542193710803986, 0.023473242297768593, 0.22626009583473206, 0.06845959275960922, -0.014514551497995853, -0.5050382018089294, 0.05227832496166229, 0.19508801400661469, -0.1231158971786499, -0.06892801076173782, 0.513816773891449, -0.0681852474808693, 0.02076573297381401, 0.1027640700340271, 0.18382613360881805, 0.1689915657043457, 0.09131219983100891, 0.15205168724060059, -0.037457872182130814, -0.21605972945690155, 0.042968664318323135, -0.07532557100057602, -0.2015743851661682, 0.2343839555978775, 0.033045873045921326, -0.055522371083498, -0.18408675491809845, 0.07510516047477722, -0.14975491166114807, -0.32435423135757446, -0.31046751141548157, 0.3003435730934143, -0.07594546675682068, -0.24338580667972565, -0.05680476501584053, 0.17332707345485687, -0.22640566527843475, 0.24748244881629944, -0.24299636483192444, -0.33149343729019165, 0.20824146270751953, -0.31189069151878357, 0.1174037978053093, -0.023222168907523155, 0.3572559058666229, -0.1480080485343933, 0.25786179304122925, -0.28049761056900024, -0.15461020171642303, 0.08826353400945663, 0.3105073571205139, 0.30995821952819824, -0.08457533270120621, -0.26859158277511597, -0.1762033998966217, 0.016196003183722496, -0.14892438054084778, -0.10561343282461166, -0.086690254509449, -0.03642835095524788, 0.1263318508863449, 0.4104902446269989, -0.16538529098033905, -0.041993532329797745, -0.13248181343078613, -0.05440599471330643, -0.04909097030758858, -0.2426360845565796, -0.07072515785694122, -0.27579015493392944, 0.41806358098983765, -0.3472612202167511, -0.06581462174654007, -0.1480032503604889, 0.17745664715766907, -0.045743782073259354, 0.28279373049736023, 0.2108151614665985, 0.3214331865310669, 0.31531310081481934, 0.2342090755701065, -0.1881677359342575, 0.29934102296829224, 0.060293082147836685, 0.18302106857299805, 0.1445750743150711, -0.04685055464506149, 0.44791778922080994, 0.2959775924682617, 0.14117832481861115, 0.2675279974937439, -0.013285161927342415, -0.1491367667913437, 0.3432060778141022, 0.13705770671367645, -0.25715869665145874, 0.18181641399860382, 0.08003552258014679, 0.251863569021225, 0.06291010230779648, 0.40560171008110046, 0.3765971064567566, 0.10174132138490677, -0.025252362713217735, -0.09591278433799744, 0.14649765193462372, -0.15283021330833435, -0.06249995529651642, -0.04979252070188522, 0.0969400480389595, -0.0138497119769454, 0.1129714846611023, 0.5702893733978271, 0.04130407050251961, 0.17164039611816406, -0.08988083899021149, 0.5023491382598877, 0.13052316009998322, 0.21564136445522308, 0.2177165150642395, -0.24260099232196808, 0.059822335839271545, 0.253435343503952, 0.23598329722881317, 0.0247114859521389, 0.08120937645435333, 0.43129971623420715, 0.07412444800138474, -0.18814370036125183, 0.19459189474582672, 0.22067062556743622, -0.20818352699279785, 0.11941245198249817, -0.09047897160053253, -0.12705698609352112, -0.15313340723514557, 0.03482289984822273, -0.12822742760181427, -0.23180262744426727, 0.1473715901374817, 0.08511988073587418, -0.018901782110333443, -0.5047826766967773, 0.3316524624824524, 0.013049127534031868, 0.08007069677114487, -0.08406398445367813, 0.2831830382347107, -0.17456667125225067, -0.09478628635406494, 0.44626086950302124, 0.21712422370910645, 0.0983695462346077, 0.23159566521644592, 0.06038491427898407, 0.3669409155845642, -0.2215576022863388, 0.12180748581886292, -0.062468744814395905, 0.510776937007904, 0.2789463698863983, 0.1489987075328827, 0.4225066900253296, 0.04461127147078514, -0.01982779987156391, 0.1922050416469574, 0.03854447230696678, -0.35319575667381287, -0.19633600115776062, 0.6884593367576599, 0.13493536412715912, -0.13587120175361633, -0.2045063078403473, -0.0006402855506166816, -0.04501352831721306, -0.3699128031730652, 0.4495590329170227, -0.07290425151586533, 0.03963432088494301, -0.2485649585723877, 0.06800361722707748, -0.0703243538737297, 0.31277626752853394, 0.39564749598503113, 0.30381396412849426, -0.13837888836860657, 0.06634744256734848, -0.480643630027771, -0.12933331727981567, -0.19266238808631897, -0.1880764365196228, -0.28002384305000305, -0.07143805921077728, 0.0998372957110405, 0.3237400949001312, -0.18765540421009064, 0.40498924255371094, 0.06944501399993896, -0.3457069993019104, -0.2288663536310196, -0.05236014351248741, 0.3079673647880554, 0.18606089055538177, -0.12233083695173264, 0.1142716109752655, -0.1667225956916809, 0.013004522770643234, 0.01835406757891178, -0.3734305202960968, -0.06548910588026047, -0.07637064158916473, 0.3184000551700592, 0.09783878922462463, 0.10626378655433655, 0.5531417727470398, -0.00796170812100172, 0.011462364345788956, -0.21547174453735352, -0.2639877200126648, -0.24832554161548615, 0.12838812172412872, 0.1017775684595108, 0.06747090816497803, -0.3718896508216858, 0.33229556679725647, -0.027088742703199387, 0.11039861291646957, -0.07589620351791382, -0.08411255478858948, -0.21964682638645172, 0.19998931884765625, -0.3208363652229309, 0.19738690555095673, 0.12384532392024994, 0.31815019249916077, 0.11431212723255157, 0.04780128598213196, -0.0739385262131691, -0.01786118373274803, 0.1678130030632019, -0.004086743574589491, -0.05249510705471039, 0.3718816936016083, 0.18767419457435608, 0.3953498303890228, -0.023264866322278976, -0.720107913017273, -0.3790507912635803, 0.38962921500205994, -0.14203207194805145, 0.1743505448102951, 0.191473126411438, -0.08301831036806107, -0.3334837853908539, -0.15277670323848724, -0.03220062702894211, -0.24289369583129883, -0.14349649846553802, 0.19090934097766876, -0.18250641226768494 ]
https://github.com/huggingface/datasets/issues/301
Setting cache_dir gives error on wikipedia download
Whoops didn't mean to close this one. I did some changes, could you try to run it from the master branch ?
First of all thank you for a super handy library! I'd like to download large files to a specific drive so I set `cache_dir=my_path`. This works fine with e.g. imdb and squad. But on wikipedia I get an error: ``` nlp.load_dataset('wikipedia', '20200501.de', split = 'train', cache_dir=my_path) ``` ``` OSError Traceback (most recent call last) <ipython-input-2-23551344d7bc> in <module> 1 import nlp ----> 2 nlp.load_dataset('wikipedia', '20200501.de', split = 'train', cache_dir=path) ~/anaconda3/envs/fastai2/lib/python3.7/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) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/anaconda3/envs/fastai2/lib/python3.7/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) 385 with utils.temporary_assignment(self, "_cache_dir", tmp_data_dir): 386 reader = ArrowReader(self._cache_dir, self.info) --> 387 reader.download_from_hf_gcs(self._cache_dir, self._relative_data_dir(with_version=True)) 388 downloaded_info = DatasetInfo.from_directory(self._cache_dir) 389 self.info.update(downloaded_info) ~/anaconda3/envs/fastai2/lib/python3.7/site-packages/nlp/arrow_reader.py in download_from_hf_gcs(self, cache_dir, relative_data_dir) 231 remote_dataset_info = os.path.join(remote_cache_dir, "dataset_info.json") 232 downloaded_dataset_info = cached_path(remote_dataset_info) --> 233 os.rename(downloaded_dataset_info, os.path.join(cache_dir, "dataset_info.json")) 234 if self._info is not None: 235 self._info.update(self._info.from_directory(cache_dir)) OSError: [Errno 18] Invalid cross-device link: '/home/local/NTU/nn/.cache/huggingface/datasets/025fa4fd4f04aaafc9e939260fbc8f0bb190ce14c61310c8ae1ddd1dcb31f88c.9637f367b6711a79ca478be55fe6989b8aea4941b7ef7adc67b89ff403020947' -> '/data/nn/nlp/wikipedia/20200501.de/1.0.0.incomplete/dataset_info.json' ```
22
Setting cache_dir gives error on wikipedia download First of all thank you for a super handy library! I'd like to download large files to a specific drive so I set `cache_dir=my_path`. This works fine with e.g. imdb and squad. But on wikipedia I get an error: ``` nlp.load_dataset('wikipedia', '20200501.de', split = 'train', cache_dir=my_path) ``` ``` OSError Traceback (most recent call last) <ipython-input-2-23551344d7bc> in <module> 1 import nlp ----> 2 nlp.load_dataset('wikipedia', '20200501.de', split = 'train', cache_dir=path) ~/anaconda3/envs/fastai2/lib/python3.7/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) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/anaconda3/envs/fastai2/lib/python3.7/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) 385 with utils.temporary_assignment(self, "_cache_dir", tmp_data_dir): 386 reader = ArrowReader(self._cache_dir, self.info) --> 387 reader.download_from_hf_gcs(self._cache_dir, self._relative_data_dir(with_version=True)) 388 downloaded_info = DatasetInfo.from_directory(self._cache_dir) 389 self.info.update(downloaded_info) ~/anaconda3/envs/fastai2/lib/python3.7/site-packages/nlp/arrow_reader.py in download_from_hf_gcs(self, cache_dir, relative_data_dir) 231 remote_dataset_info = os.path.join(remote_cache_dir, "dataset_info.json") 232 downloaded_dataset_info = cached_path(remote_dataset_info) --> 233 os.rename(downloaded_dataset_info, os.path.join(cache_dir, "dataset_info.json")) 234 if self._info is not None: 235 self._info.update(self._info.from_directory(cache_dir)) OSError: [Errno 18] Invalid cross-device link: '/home/local/NTU/nn/.cache/huggingface/datasets/025fa4fd4f04aaafc9e939260fbc8f0bb190ce14c61310c8ae1ddd1dcb31f88c.9637f367b6711a79ca478be55fe6989b8aea4941b7ef7adc67b89ff403020947' -> '/data/nn/nlp/wikipedia/20200501.de/1.0.0.incomplete/dataset_info.json' ``` Whoops didn't mean to close this one. I did some changes, could you try to run it from the master branch ?
[ -0.016413869336247444, 0.2276865541934967, -0.008926335722208023, 0.10926701873540878, 0.12234584242105484, 0.19993755221366882, 0.25578585267066956, 0.3317470848560333, 0.4485456347465515, -0.1023547500371933, -0.19036419689655304, 0.11786548048257828, 0.06666655093431473, -0.5188584923744202, 0.14065034687519073, -0.11021827161312103, 0.030000114813447, -0.0613127239048481, -0.02265114150941372, 0.05169394612312317, -0.27471980452537537, 0.2622627913951874, -0.04418187588453293, 0.05408995598554611, -0.2433815896511078, -0.10504645109176636, -0.072632797062397, 0.10746143013238907, 0.11366569250822067, -0.359662801027298, 0.4128052294254303, -0.02995283156633377, 0.27719584107398987, 0.4403321444988251, -0.00011742397327907383, -0.01526105310767889, 0.3624255359172821, -0.2030952274799347, -0.5579508543014526, -0.21635624766349792, -0.22460971772670746, -0.24185915291309357, 0.21057623624801636, -0.4761384427547455, 0.3626423478126526, 0.3921281099319458, 0.3601880669593811, -0.28841137886047363, -0.11544547975063324, 0.38038986921310425, 0.1888131946325302, -0.21331360936164856, -0.02414930798113346, 0.13253429532051086, 0.45766207575798035, 0.006449000909924507, -0.04604082927107811, 0.4196567237377167, -0.5581919550895691, -0.18240702152252197, -0.19788707792758942, 0.31906285881996155, -0.3348379135131836, 0.36106374859809875, 0.4996752440929413, 0.16896754503250122, 0.05516694113612175, -0.15767225623130798, 0.17405226826667786, -0.021713197231292725, 0.7087021470069885, -0.3186955749988556, -0.1667529195547104, -0.12986165285110474, -0.19166332483291626, -0.3419363796710968, 0.3887312412261963, 0.314292311668396, -0.21688087284564972, -0.13133463263511658, -0.07852011919021606, -0.18641752004623413, -0.20555126667022705, 0.5084338784217834, 0.03534772992134094, 0.2421809583902359, -0.01189033780246973, 0.10773377120494843, 0.31052789092063904, 0.15596531331539154, -0.015227616764605045, -0.18830914795398712, 0.028922272846102715, 0.26806750893592834, -0.09172850847244263, 0.04632912203669548, 0.016493774950504303, 0.1754598319530487, 0.04695279896259308, -0.1358775794506073, -0.036421872675418854, -0.15848752856254578, -0.01801009476184845, 0.20707841217517853, 0.26718491315841675, 0.4584437608718872, -0.27140191197395325, 0.07250824570655823, 0.3454953730106354, 0.2596304416656494, -0.17699548602104187, -0.011410120874643326, 0.21531745791435242, -0.20619332790374756, 0.049375876784324646, -0.08842860907316208, 0.1682378053665161, -0.19104830920696259, -0.07279378175735474, -0.013465171679854393, -0.12057387828826904, -0.2002832591533661, 0.0497526079416275, 0.3913381099700928, -0.11084342747926712, 0.07258863002061844, 0.0393969751894474, 0.3830535113811493, -0.2109770029783249, 0.3658890724182129, -0.08639325201511383, 0.1849440336227417, -0.05625494569540024, 0.3640349209308624, 0.39745089411735535, 0.1643986999988556, 0.28254589438438416, -0.29967108368873596, 0.010531664825975895, -0.10802213847637177, 0.02636820264160633, -0.3558080196380615, 0.0472794845700264, 0.21185563504695892, 0.14683622121810913, 0.5156886577606201, 0.21544671058654785, -0.13857817649841309, -0.33629143238067627, 0.19852469861507416, -0.38420751690864563, -0.409983366727829, 0.02022932656109333, 0.10661720484495163, -0.22284282743930817, -0.18021678924560547, -0.06740929186344147, -0.09133821725845337, 0.4154752492904663, -0.2722591161727905, 0.20223604142665863, 0.08812423050403595, -0.3097884953022003, -0.3220294117927551, 0.016557233408093452, 0.397373229265213, 0.08719795942306519, 0.031764883548021317, -0.18663540482521057, 0.4713357985019684, 0.2485882043838501, 0.497169554233551, -0.16580268740653992, 0.32171306014060974, -0.20381326973438263, 0.14774209260940552, 0.5421158671379089, -0.40871137380599976, -0.5469187498092651, 0.23165246844291687, 0.006427300162613392, -0.11506889015436172, 0.13681147992610931, 0.2783959209918976, 0.19178807735443115, -0.09246810525655746, 0.05882323533296585, 0.5033124685287476, 0.14405018091201782, 0.27624839544296265, -0.4132539629936218, -0.18852362036705017, 0.2845275104045868, -0.04272959753870964, -0.07079167664051056, 0.025784391909837723, -0.04644608497619629, 0.571990966796875, 0.13341116905212402, -0.02202525921165943, 0.07294763624668121, 0.3717223107814789, 0.008581383153796196, 0.08948912471532822, 0.04327211156487465, 0.18528755009174347, -0.2929481863975525, 0.08711890131235123, 0.0779811441898346, -0.0258020106703043, -0.1508043259382248, -0.05668898671865463, -0.20657160878181458, -0.2405160516500473, -0.1476680338382721, -0.36015185713768005, 0.10878913104534149, 0.08356387913227081, 0.4531359076499939, 0.18447928130626678, 0.09799602627754211, 0.04648532345890999, 0.14987850189208984, -0.027507536113262177, -0.12224467098712921, 0.24758324027061462, -0.3175865709781647, -0.05430728569626808, -0.27897560596466064, 0.06169503554701805, 0.06930847465991974, 0.1027570441365242, -0.31416836380958557, 0.20363518595695496, 0.12152596563100815, -0.18429431319236755, 0.06915628910064697, 0.034873414784669876, 0.09981334209442139, -0.15285903215408325, 0.20426727831363678, 0.4087335765361786, 0.15078924596309662, 0.07229572534561157, -0.44350066781044006, 0.00040947936940938234, -0.1792553961277008, 0.11779432743787766, -0.07727888226509094, 0.04837055876851082, 0.35362595319747925, 0.03179176151752472, 0.3313838541507721, -0.0596577487885952, 0.43910545110702515, 0.21699991822242737, 0.15325617790222168, -0.1297251433134079, 0.08154556900262833, -0.12994582951068878, 0.1299867331981659, 0.1706521362066269, 0.2419709414243698, 0.3518337607383728, -0.1239761933684349, -0.33932095766067505, -0.010879402048885822, 0.24689754843711853, 0.4208885431289673, 0.10964659601449966, 0.2762744128704071, -0.19046056270599365, -0.09322729706764221, -0.13602259755134583, 0.29233649373054504, -0.027751173824071884, 0.08625748008489609, -0.045363958925008774, 0.157740518450737, -0.03867710009217262, -0.06471271812915802, -0.13630779087543488, 0.006143494509160519, 0.41868624091148376, -0.2352321296930313, 0.22368896007537842, -0.02644178830087185, -0.5045301914215088, -0.13593006134033203, -0.12097199261188507, -0.2691150903701782, -0.37516456842422485, 0.015554659999907017, 0.5011122822761536, 0.1319025307893753, 0.04804088920354843, -0.25720885396003723, -0.030310774222016335, 0.14349490404129028, -0.4754091799259186, -0.020460300147533417, -0.3241176903247833, -0.14429154992103577, -0.08568064123392105, 0.3514273166656494, -0.12240815907716751, 0.05934508889913559, 0.04045797139406204, -0.09670015424489975, -0.45001742243766785, 0.0011220281012356281, -0.05972498655319214, 0.058508940041065216, -0.1251743584871292, -0.06320425122976303, 0.43818092346191406, -0.1269313097000122, -0.34282374382019043, 0.06283900141716003, -0.05274195596575737, 0.1600714772939682, 0.13987185060977936, 0.1020856574177742, 0.2967459559440613, -0.19137407839298248, -0.009145200252532959, -0.1177055835723877, -0.39374488592147827, 0.17961201071739197, 0.11782141774892807, 0.21932458877563477, 0.5895366668701172, -0.07777687162160873, 0.11911074817180634, 0.17468513548374176, 0.09490080922842026, -0.2395324856042862, -0.24282106757164001, 0.5289350748062134, -0.16705286502838135, -0.19495940208435059, -0.052502382546663284, -0.0015175187727436423, 0.04635734483599663, 0.1917167752981186, -0.7021471261978149, -0.14431855082511902, 0.00017071051115635782, 0.3861822485923767, 0.0606084018945694, 0.024765092879533768, 0.32328715920448303, -0.22176463901996613, 0.025941109284758568, 0.02108275704085827, -0.2541016936302185, 0.06530995666980743, 0.21541139483451843, 0.3576693534851074, -0.025815557688474655, 0.24749334156513214, 0.09258203208446503, 0.7005698084831238, -0.09845300763845444, 0.13672448694705963, 0.5910078287124634, 0.2630670666694641, 0.3123766779899597, -0.10811235755681992, -0.1415645182132721, 0.03397568315267563, -0.2543649673461914, -0.41276854276657104, 0.21695761382579803, 0.11304052174091339, -0.5909469127655029, -0.11572171002626419, 0.07740727812051773, -0.04751292243599892, -0.2686402499675751, 0.17148084938526154, -0.11324845254421234, 0.07477038353681564, -0.008788850158452988, 0.008580940775573254, -0.3124428987503052, -0.43717750906944275, 0.027365490794181824, 0.33864447474479675, 0.039105478674173355, 0.23085148632526398, 0.08255075663328171, -0.19850996136665344, -0.4888901710510254, 0.2085324376821518, 0.11874426901340485, 0.10587712377309799, -0.11610278487205505, -0.015306604094803333, 0.035053644329309464, 0.031642306596040726, 0.2744385898113251, 0.048911936581134796, 0.1794004738330841, -0.035677023231983185, 0.2467144876718521, -0.42964857816696167, -0.08892836421728134, 0.05980360880494118, 0.5444705486297607, 0.3421792984008789, 0.16696305572986603, -0.31418541073799133, 0.047256410121917725, 0.027811415493488312, 0.17553812265396118, -0.07615644484758377, -0.3364563584327698, -0.20552387833595276, -0.2697415053844452, -0.3697786033153534, -0.12101779133081436, -0.0007538266363553703, 0.029036745429039, 0.22872909903526306, 0.32664409279823303, 0.10511375963687897, 0.12885500490665436, -0.23289591073989868, -0.14330114424228668, 0.2951723635196686, 0.2628564238548279, -0.10474282503128052, 0.05275421217083931, 0.04727805405855179, -0.32896530628204346, 0.2599807679653168, -0.12445930391550064, -0.0068398392759263515, 0.08608695864677429, 0.10599270462989807, -0.2923344373703003, 0.058714959770441055, 0.09293442219495773, -0.1338731050491333, -0.045050472021102905, -0.19968993961811066, 0.06669017672538757, 0.19335073232650757, 0.1434360146522522, -0.14516553282737732, -0.1140735074877739, -0.34756138920783997, 0.7029225826263428, 0.023550307378172874, 0.11700534075498581, 0.43386369943618774, -0.10114848613739014, -0.3010016679763794, 0.18585969507694244, 0.11761651933193207, 0.7429120540618896, -0.07623441517353058, 0.46839073300361633, 0.17142413556575775, -0.08572942763566971, 0.7115091681480408, -0.31961590051651, 0.3685218393802643, -0.21884843707084656, 0.15060627460479736, 0.026021288707852364, -0.12301677465438843, -0.32936957478523254, -0.07142198830842972, -0.42673322558403015, 0.276970773935318, -0.016586393117904663, 0.0066240220330655575, -0.029911376535892487, 0.37364158034324646, -0.06401962041854858, -0.4104450047016144, -0.33340489864349365, 0.09719392657279968, -0.3908357620239258, 0.4360164701938629, -0.045333296060562134, 0.02078055590391159, -0.16530553996562958, -0.09807771444320679, -0.3404097259044647, 0.058702412992715836, -0.28883716464042664, 0.6166511178016663, -0.39214593172073364, -0.3520500659942627, -0.2892828583717346, 0.3093365430831909, 0.0379144623875618, -0.03055254928767681, -0.24291452765464783, -0.00715872785076499, -0.22458693385124207, -0.09483681619167328, 0.10907335579395294, -0.07166611403226852, 0.06745494902133942, -0.19583500921726227, 0.052008919417858124, -0.10567678511142731, -0.1442224234342575, -0.4680244028568268, 0.171176940202713, 0.09204908460378647, -0.0723896250128746, 0.15895122289657593, -0.39501282572746277, -0.05226999148726463, -0.24813075363636017, -0.009481716901063919, 0.08876549452543259, 0.08747151494026184, -0.0033826283179223537, -0.03487471863627434, -0.19816049933433533, -0.33734267950057983, 0.050610657781362534, 0.4414914548397064, -0.09779071062803268, -0.007695954293012619, 0.5240357518196106, -0.014790084213018417, -0.40553587675094604, -0.0018622135976329446, -0.13364821672439575, -0.7260409593582153, -0.24801506102085114, 0.017975900322198868, -0.2769368588924408, 0.1718018800020218, -0.41012606024742126, -0.27339568734169006, 0.21855206787586212, 0.14189529418945312, -0.01730934903025627, -0.4404852092266083, -0.30084308981895447, 0.07399151474237442, -0.3456287384033203, -0.021984145045280457, 0.14557504653930664, -0.3908926546573639, 0.33728548884391785, -0.015986759215593338, -0.18532374501228333, 0.036363791674375534, -0.19458556175231934, 0.05074632540345192, 0.3406374156475067, -0.17693239450454712, 0.19413825869560242, -0.06365277618169785, -0.00018494096002541482, -0.1336810141801834, 0.03471021354198456, -0.1682870090007782, -0.1124802678823471, 0.15424320101737976, 0.12873566150665283, -0.2547101080417633, -0.017470715567469597, -0.43008658289909363, 0.18384914100170135, -0.11784481257200241, -0.2559462785720825, 0.18824325501918793, -0.06935299187898636, 0.16108381748199463, 0.024028174579143524, 0.032859403640031815, -0.2047189623117447, 0.15652382373809814, -0.2831513285636902, 0.2583546042442322, 0.10936201363801956, 0.3405158519744873, 0.16001877188682556, 0.025988327339291573, -0.6841735243797302, -0.05029797926545143, -0.21136793494224548, 0.09810248762369156, 0.008451894856989384, -0.3884674608707428, 0.006138653960078955, 0.2412349432706833, -0.08072605729103088, 0.1798379123210907, -0.061038050800561905, -0.21790741384029388, 0.32694515585899353, 0.05058583989739418, 0.02004864066839218, 0.03222217783331871, 0.39120200276374817, -0.10066290944814682, -0.15353620052337646, 0.18295502662658691, 0.0332772471010685, -0.0852326825261116, 0.05598835647106171, 0.1523456573486328, 0.24912488460540771, -0.05878143385052681, 0.1242913082242012, 0.017892329022288322, -0.050479013472795486, 0.13448943197727203, 0.07266197353601456, 0.21493148803710938, 0.2057390958070755, 0.14940914511680603, 0.00415778299793601, 0.17108586430549622, 0.2343468964099884, -0.30781394243240356, -0.1340901404619217, -0.13034717738628387, -0.15431275963783264, -0.10207495838403702, 0.0668797418475151, 0.09824562072753906, 0.00009428666817257181, 0.20794658362865448, -0.2135244756937027, 0.14496921002864838, -0.0599694587290287, 0.11553839594125748, -0.09781228750944138, -0.06594067811965942, 0.06033431738615036, 0.02630087360739708, 0.13751089572906494, 0.10758379846811295, -0.1826425939798355, -0.16796816885471344, 0.2871865928173065, 0.3152046501636505, -0.18913418054580688, -0.22318856418132782, 0.4620457589626312, 0.17359235882759094, 0.0819258764386177, -0.1670200526714325, 0.1947748214006424, -0.05855541303753853, -0.14759331941604614, -0.11815820634365082, 0.15864792466163635, 0.5159633159637451, 0.4165540337562561, -0.41977107524871826, -0.0678827241063118, 0.02996065281331539, 0.09226632118225098, -0.03815267235040665, -0.06788963079452515, 0.20263426005840302, -0.09424806386232376, 0.29244616627693176, 0.03788645565509796, -0.07115885615348816, 0.23845362663269043, 0.18495863676071167, 0.05349880829453468, 0.15749628841876984, -0.0276703629642725, 0.09169439226388931, 0.043350666761398315, 0.014420474879443645, 0.1833706945180893, -0.3618435561656952, 0.28140363097190857, 0.13142311573028564, 0.06166410073637962, 0.0284161027520895, 0.1367621272802353, 0.020925212651491165, 0.18753580749034882, 0.54103022813797, 0.2292947620153427, 0.2683117985725403, -0.5026735663414001, 0.08787238597869873, -0.552556574344635, 0.2962692081928253, -0.361763596534729, -0.1734825223684311, -0.14761115610599518, 0.3638659715652466, -0.3391847312450409, 0.18393537402153015, 0.017515627667307854, -0.10176820307970047, 0.09942469745874405, 0.16353276371955872, -0.23899686336517334, -0.19564811885356903, -0.1113414317369461, 0.051891621202230453, -0.08038422465324402, -0.42285361886024475, 0.03481712564826012, 0.03220643475651741, 0.06736168265342712, -0.07691646367311478, -0.05760025233030319, 0.0864323303103447, 0.5537897944450378, 0.1799573004245758, -0.07725367695093155, 0.44165992736816406, 0.0061579179018735886, -0.20313335955142975, -0.35204270482063293, -0.03667918220162392, -0.13753822445869446, -0.21563012897968292, -0.07386311888694763, 0.2568705677986145, -0.3955134451389313, -0.09108105301856995, -0.49424898624420166, 0.7418960928916931, -0.1484314352273941, -0.03399505838751793, 0.2366790622472763, -0.2610361874103546, 0.008271975442767143, 0.26849278807640076, 0.19107279181480408, 0.046420563012361526, -0.17636540532112122, 0.35526353120803833, -0.48961156606674194, -0.2099744826555252, 0.337294340133667, -0.4862917363643646, -0.3294309377670288, 0.0979144424200058, 0.2620272636413574, 0.18557941913604736, 0.10445753484964371, -0.3378353714942932, 0.045195676386356354, 0.2677624821662903, 0.044468577951192856, -0.44067293405532837, -0.1964239776134491, -0.09748941659927368, 0.10889776051044464, -0.008824305608868599, 0.1406005620956421, 0.08232242614030838, -0.3042534291744232, -0.17035239934921265, -0.24228346347808838 ]
https://github.com/huggingface/datasets/issues/297
Error in Demo for Specific Datasets
Thanks for reporting these errors :) I can actually see two issues here. First, datasets like `natural_questions` require apache_beam to be processed. Right now the import is not at the right place so we have this error message. However, even the imports are fixed, the nlp viewer doesn't actually have the resources to process NQ right now so we'll have to wait until we have a version that we've already processed on our google storage (that's what we've done for wikipedia for example). Second, datasets like `newsroom` require manual downloads as we're not allowed to redistribute the data ourselves (if I'm not wrong). An error message should be displayed saying that we're not allowed to show the dataset. I can fix the first issue with the imports but for the second one I think we'll have to see with @srush to show a message for datasets that require manual downloads (it can be checked whether a dataset requires manual downloads if `dataset_builder_instance.manual_download_instructions is not None`).
Selecting `natural_questions` or `newsroom` dataset in the online demo results in an error similar to the following. ![image](https://user-images.githubusercontent.com/60150701/85347842-ac861900-b4ae-11ea-98c4-a53a00934783.png)
165
Error in Demo for Specific Datasets Selecting `natural_questions` or `newsroom` dataset in the online demo results in an error similar to the following. ![image](https://user-images.githubusercontent.com/60150701/85347842-ac861900-b4ae-11ea-98c4-a53a00934783.png) Thanks for reporting these errors :) I can actually see two issues here. First, datasets like `natural_questions` require apache_beam to be processed. Right now the import is not at the right place so we have this error message. However, even the imports are fixed, the nlp viewer doesn't actually have the resources to process NQ right now so we'll have to wait until we have a version that we've already processed on our google storage (that's what we've done for wikipedia for example). Second, datasets like `newsroom` require manual downloads as we're not allowed to redistribute the data ourselves (if I'm not wrong). An error message should be displayed saying that we're not allowed to show the dataset. I can fix the first issue with the imports but for the second one I think we'll have to see with @srush to show a message for datasets that require manual downloads (it can be checked whether a dataset requires manual downloads if `dataset_builder_instance.manual_download_instructions is not None`).
[ -0.1981073021888733, 0.4033777713775635, -0.03457436338067055, 0.09161709249019623, -0.060980770736932755, -0.04047101363539696, 0.26432254910469055, 0.3957088589668274, -0.020650256425142288, 0.11498004198074341, 0.0365377776324749, 0.12681803107261658, -0.14337961375713348, 0.17077235877513885, 0.19211742281913757, -0.4499633014202118, -0.0038803257048130035, 0.12495516240596771, -0.035556066781282425, -0.06931977719068527, -0.12045668810606003, 0.16535063087940216, -0.472540944814682, 0.2649039328098297, -0.017611989751458168, -0.2618619501590729, -0.038472630083560944, 0.03927377238869667, -0.39949148893356323, -0.4657360315322876, 0.08092771470546722, 0.19680173695087433, 0.1599263846874237, -0.0005182750173844397, -0.00011310289846733212, 0.03824000433087349, 0.483916699886322, -0.04831662029027939, -0.5484038591384888, -0.16969335079193115, -0.12862882018089294, -0.30203744769096375, 0.10215611755847931, -0.04305458441376686, 0.02622946910560131, -0.6082088947296143, 0.19225135445594788, -0.07852251082658768, 0.3578092157840729, 0.5196117162704468, 0.2201361358165741, 0.5076093077659607, 0.016103040426969528, -0.3282739818096161, 0.43934500217437744, 0.29428327083587646, -0.15183770656585693, 0.13522092998027802, 0.047790274024009705, -0.05100186914205551, -0.03646501153707504, 0.3086341917514801, 0.025701351463794708, 0.15278318524360657, -0.06026163324713707, -0.14215683937072754, -0.3206350803375244, -0.4986163079738617, -0.11975130438804626, 0.44593825936317444, 0.663360059261322, 0.07437177002429962, -0.18359795212745667, -0.19394955039024353, 0.14957298338413239, 0.04788057133555412, 0.06316260993480682, 0.43713808059692383, -0.2138035148382187, -0.01973012089729309, -0.3787340521812439, -0.27511513233184814, -0.24704504013061523, 0.44001537561416626, 0.08486709743738174, 0.09874701499938965, -0.026404131203889847, 0.2691405713558197, -0.05080069229006767, -0.18012923002243042, 0.1278463751077652, -0.058707743883132935, 0.0541461817920208, 0.0016127569833770394, -0.44550928473472595, -0.11124081909656525, -0.03117990680038929, 0.04059906676411629, 0.03728289529681206, 0.19457407295703888, 0.12947727739810944, -0.011735824868083, 0.03954286873340607, 0.2793649733066559, 0.2831093370914459, 0.3266352713108063, 0.31462758779525757, 0.387241393327713, 0.40345609188079834, 0.05307787284255028, 0.1779118776321411, 0.2051411271095276, -0.139293372631073, -0.3384782373905182, -0.5065166354179382, 0.03238512948155403, 0.3175579905509949, -0.25196847319602966, -0.5763881206512451, 0.2063847929239273, -0.2966662347316742, -0.009444504976272583, -0.05475471168756485, 0.31921571493148804, 0.09110457450151443, 0.023212384432554245, 0.17755736410617828, 0.4780528247356415, -0.21472612023353577, -0.7115914225578308, 0.03569193556904793, 0.33530130982398987, -0.2933804988861084, 0.1421971619129181, 0.2954666316509247, 0.37536880373954773, 0.19080279767513275, 0.017195455729961395, 0.15302512049674988, -0.034908927977085114, 0.31728482246398926, -0.008298314176499844, -0.09135967493057251, 0.2614535987377167, 0.11095806956291199, 0.14359579980373383, 0.019785482436418533, -0.044960130006074905, -0.10872172564268112, 0.13044020533561707, -0.017440758645534515, -0.422067791223526, -0.02185223251581192, 0.14349491894245148, -0.17966586351394653, 0.00013223470887169242, -0.15492059290409088, 0.3701181709766388, -0.1066480427980423, -0.24541492760181427, -0.09333448857069016, -0.19888390600681305, 0.07399844378232956, -0.062011152505874634, 0.06097814813256264, 0.4929051995277405, -0.35729464888572693, -0.014105193316936493, -0.2872873842716217, -0.07318348437547684, 0.16951590776443481, 0.3137454688549042, -0.3498004078865051, 0.2884298861026764, -0.3124474585056305, 0.03608838468790054, 0.6690334677696228, -0.26523149013519287, -0.13616742193698883, 0.38895183801651, 0.1521366834640503, -0.2095368206501007, -0.155626580119133, -0.08275992423295975, 0.13841034471988678, -0.16525746881961823, -0.331463098526001, 0.5041030645370483, -0.044560495764017105, 0.03156271204352379, -0.30192792415618896, -0.232423797249794, 0.40357425808906555, 0.44793900847435, 0.11554549634456635, 0.039160024374723434, 0.032392892986536026, 0.07546304911375046, 0.019848361611366272, 0.024790361523628235, 0.06142278015613556, 0.11028838157653809, 0.018291033804416656, -0.2559671700000763, -0.04605954512953758, 0.13625478744506836, -0.3674872815608978, 0.07758187502622604, -0.5094988942146301, 0.39449888467788696, 0.12080483883619308, -0.004110634792596102, -0.4444131851196289, -0.09596212208271027, -0.21768958866596222, -0.2749750018119812, 0.1779186874628067, 0.06474790722131729, 0.16313117742538452, 0.2521960139274597, 0.055400967597961426, 0.09354779869318008, -0.10574690252542496, 0.06576237827539444, -0.2442823052406311, 0.2586844265460968, -0.18129824101924896, -0.06169063225388527, 0.292075514793396, -0.13919523358345032, 0.39432334899902344, -0.0689120665192604, -0.15089274942874908, 0.39556360244750977, -0.17659924924373627, 0.23770774900913239, 0.2862996459007263, -0.1709463745355606, 0.2178444266319275, -0.503351092338562, 0.15844862163066864, 0.19455724954605103, -0.05327591672539711, 0.2152075320482254, -0.19128388166427612, 0.3722967505455017, 0.0492294579744339, 0.09868618845939636, 0.05387816205620766, 0.41478750109672546, 0.1812630593776703, -0.07801631838083267, -0.0885617658495903, -0.19922974705696106, 0.2647395730018616, 0.4113309681415558, 0.08347956091165543, -0.24494588375091553, -0.41665756702423096, 0.02496328577399254, 0.18111415207386017, -0.04826418682932854, 0.20140385627746582, 0.06230531260371208, 0.06792834401130676, -0.10105191916227341, 0.4000890851020813, 0.4113733768463135, 0.38273924589157104, 0.03180398792028427, 0.047577206045389175, 0.10441094636917114, -0.2516429126262665, -0.3253675401210785, 0.11449700593948364, 0.04143128544092178, 0.16461408138275146, 0.11453427374362946, 0.13520660996437073, 0.0400647409260273, -0.3648928999900818, 0.04718879237771034, 0.36120104789733887, 0.2409493625164032, -0.2400977611541748, -0.04403357207775116, -0.4294604957103729, -0.5175087451934814, -0.16846618056297302, 0.13020536303520203, -0.2568724751472473, -0.5409407615661621, 0.37949347496032715, 0.02114848420023918, -0.4098776578903198, 0.2334163784980774, 0.13670851290225983, 0.44184863567352295, -0.2019062042236328, 0.49639663100242615, -0.07612285763025284, -0.08335953950881958, -0.3440178334712982, 0.0976666808128357, 0.3494064509868622, 0.39733389019966125, 0.4992443025112152, -0.17474597692489624, -0.028065508231520653, -0.4055849015712738, -0.3387174606323242, 0.22340954840183258, 0.15965251624584198, 0.5951384902000427, -0.09448481351137161, 0.35120439529418945, -0.05526750162243843, -0.16464635729789734, 0.16195280849933624, -0.1427631974220276, -0.0991605669260025, 0.14410848915576935, -0.04819605499505997, -0.06266280263662338, -0.26454317569732666, -0.6977822780609131, -0.40905922651290894, -0.45995843410491943, -0.20288871228694916, -0.19792436063289642, 0.24380698800086975, 0.2336980253458023, -0.10973618179559708, -0.017572293058037758, 0.020550305023789406, -0.008395952172577381, -0.1718059480190277, -0.06894458830356598, 0.2719593942165375, -0.6593865156173706, -0.42824968695640564, 0.051717791706323624, 0.10686063021421432, 0.1274670511484146, 0.2793439030647278, -0.4582374095916748, 0.09105464071035385, -0.12348175048828125, -0.17709192633628845, 0.11608245968818665, -0.28552114963531494, 0.2548559606075287, -0.19535785913467407, -0.04407534375786781, -0.14619070291519165, -0.037363771349191666, 0.08142879605293274, 0.1666163057088852, 0.2665860950946808, -0.0415642149746418, 0.18222126364707947, 0.08578602224588394, 0.6566126346588135, 0.2117144912481308, 0.22545716166496277, 0.5008482933044434, 0.18874283134937286, 0.30198782682418823, 0.06331543624401093, 0.11524803936481476, 0.25095754861831665, -0.13927710056304932, 0.006359414663165808, 0.20928378403186798, -0.12213531881570816, -0.24259380996227264, -0.2959998846054077, 0.2020193487405777, -0.36647340655326843, -0.2441663295030594, 0.09564772993326187, -0.3765966296195984, 0.27362197637557983, 0.14944234490394592, -0.07453795522451401, 0.2203226536512375, -0.037257637828588486, -0.1145705059170723, 0.08149715512990952, 0.243889719247818, 0.15168063342571259, -0.5252460241317749, -0.017763402312994003, -0.20786459743976593, 0.14158940315246582, -0.2651929259300232, 0.6571933627128601, -0.3658408224582672, 0.0038031975273042917, 0.10370154678821564, 0.19374531507492065, 0.11753915250301361, -0.5748876333236694, -0.17734476923942566, 0.0385761484503746, 0.08636781573295593, -0.46627727150917053, -0.21957245469093323, -0.3589476943016052, 0.20498353242874146, 0.0694786012172699, 0.009079180657863617, -0.3030894994735718, -0.11690424382686615, 0.25419026613235474, 0.07203109562397003, -0.016757892444729805, -0.1788933277130127, 0.17673392593860626, 0.09785385429859161, -0.6125377416610718, -0.07652486860752106, -0.040311262011528015, -0.07417915016412735, -0.5367677211761475, 0.05630974844098091, -0.0627235695719719, 0.32568156719207764, 0.05408923700451851, 0.11250240355730057, 0.16141369938850403, 0.01827089674770832, -0.1359255611896515, 0.11897619068622589, 0.13136161863803864, 0.14719943702220917, 0.3836544156074524, 0.26239830255508423, -0.10015593469142914, 0.13860639929771423, 0.05360082536935806, -0.0071899788454174995, 0.6157605051994324, -0.06302475184202194, 0.011197102256119251, -0.2287759631872177, 0.09844943135976791, 0.0687742829322815, 0.25908133387565613, 0.18437689542770386, -0.48043179512023926, -0.13610027730464935, -0.18689583241939545, 0.38309741020202637, -0.13276492059230804, -0.24014362692832947, 0.012968017719686031, 0.005827835761010647, -0.035635802894830704, 0.23835882544517517, 0.24638523161411285, 1.004841923713684, -0.036688610911369324, -0.0580979622900486, 0.1096547394990921, -0.14803510904312134, 0.5812593698501587, -0.18905818462371826, 0.024384144693613052, -0.24519556760787964, -0.06134753301739693, 0.03280087932944298, -0.09355740994215012, 0.2910015285015106, 0.19776447117328644, -0.42158716917037964, 0.30421584844589233, 0.13784465193748474, 0.014951941557228565, -0.04486792907118797, 0.14839188754558563, -0.15593074262142181, 0.016965966671705246, -0.3573395013809204, 0.14503805339336395, -0.28274431824684143, 0.34981948137283325, -0.17276261746883392, -0.2722778916358948, -0.14991457760334015, -0.205636665225029, -0.419159859418869, 0.2725086808204651, 0.01862558349967003, 0.14894770085811615, -0.019265083596110344, -0.2983194589614868, 0.3597485423088074, 0.4683248698711395, 0.22725935280323029, 0.041165079921483994, -0.3872837424278259, 0.14799360930919647, -0.245241180062294, -0.1716940850019455, 0.04241310432553291, 0.06211429834365845, 0.3522128164768219, -0.17977534234523773, -0.17857171595096588, 0.12927702069282532, -0.17437104880809784, 0.0613238625228405, -0.5083679556846619, -0.1256972700357437, 0.3128819465637207, -0.02208567224442959, -0.08472276479005814, -0.16981609165668488, -0.11955856531858444, -0.166152223944664, 0.12249302864074707, 0.02562825009226799, -0.03177594393491745, -0.04185667261481285, 0.24215856194496155, -0.03081784024834633, 0.029304757714271545, 0.09251843392848969, 0.10955927520990372, 0.08046823740005493, 0.3666870892047882, 0.18186502158641815, -0.06378063559532166, -0.2809881865978241, 0.1819281131029129, 0.1314447969198227, -0.5027116537094116, 0.12477684020996094, -0.27197274565696716, -0.06596709042787552, 0.13074424862861633, 0.19525344669818878, -0.086015984416008, -0.05792731046676636, 0.09050475060939789, -0.5099042057991028, -0.058102160692214966, 0.19894254207611084, -0.3042753040790558, 0.1795780062675476, -0.15786112844944, -0.1306474506855011, 0.2191644310951233, 0.2721661329269409, -0.29211655259132385, -0.09750692546367645, -0.45322081446647644, 0.267907977104187, -0.030494999140501022, 0.12929849326610565, -0.24099798500537872, 0.0211092047393322, -0.10474321991205215, -0.10942190885543823, -0.33235010504722595, -0.10128836333751678, -0.049739718437194824, 0.16162247955799103, 0.3272654414176941, -0.1539127230644226, 0.1339704841375351, -0.1522316187620163, 0.1495538353919983, -0.013419163413345814, 0.0836758092045784, -0.1746893674135208, -0.11182110756635666, 0.2551414370536804, 0.049225665628910065, 0.11188427358865738, -0.01869192346930504, 0.19295714795589447, -0.004864910151809454, 0.1877949833869934, 0.18606890738010406, 0.10590320080518723, 0.2087070494890213, -0.15943925082683563, -0.44277146458625793, 0.03322906419634819, 0.059492696076631546, 0.21148374676704407, 0.12992636859416962, -0.2598474621772766, 0.32931214570999146, -0.10000959038734436, 0.2081316113471985, 0.2163572460412979, -0.3254665732383728, 0.05881703644990921, 0.2458352893590927, 0.1340455859899521, -0.2870177626609802, -0.017888294532895088, 0.07398015260696411, 0.10569874197244644, -0.15368247032165527, -0.06198577582836151, 0.41003963351249695, -0.036520957946777344, 0.19993619620800018, 0.06753787398338318, 0.08273694664239883, -0.08516310155391693, 0.3317165970802307, 0.30986204743385315, -0.2236451357603073, 0.09567166864871979, -0.08717099577188492, -0.025313260033726692, 0.042018625885248184, 0.07523377239704132, -0.17707699537277222, 0.5282193422317505, 0.21051840484142303, 0.17989297211170197, 0.43755367398262024, -0.3083561360836029, 0.11265547573566437, 0.4501844048500061, 0.2951726019382477, 0.17113356292247772, -0.03172904998064041, 0.1150985062122345, -0.11648491024971008, -0.2579782009124756, -0.317260205745697, 0.15337364375591278, -0.016242774203419685, 0.13175080716609955, -0.3802257776260376, -0.19473540782928467, -0.471154123544693, 0.0005563206505030394, -0.09242449700832367, -0.23559075593948364, 0.04713002219796181, 0.028131192550063133, -0.31898579001426697, -0.6951643228530884, 0.41201052069664, 0.1451246291399002, -0.040312349796295166, -0.20130008459091187, 0.2788972854614258, -0.08096706122159958, -0.12540650367736816, 0.2645360231399536, 0.46756547689437866, 0.33625638484954834, 0.4843827784061432, -0.18376140296459198, -0.06372304260730743, 0.036875780671834946, 0.06646601110696793, 0.1376529484987259, 0.08353663235902786, 0.2619529366493225, 0.03369417041540146, 0.476253479719162, 0.029066402465105057, -0.08782436698675156, 0.15576286613941193, 0.25472569465637207, -0.03855038434267044, -0.3124661445617676, 0.11967484652996063, -0.23258982598781586, -0.046338070183992386, -0.02398601546883583, -0.27678021788597107, -0.37215664982795715, 0.06650608032941818, 0.10474167764186859, 0.01647426187992096, 0.10639651864767075, -0.4064309000968933, 0.06415018439292908, -0.22640840709209442, 0.6622608304023743, 0.2785647213459015, 0.26480022072792053, -0.2889123260974884, -0.42036932706832886, -0.688260555267334, 0.16028828918933868, -0.05887921527028084, 0.08523186296224594, 0.28963035345077515, 0.09507770836353302, 0.18030919134616852, 0.36179569363594055, -0.1563689261674881, 0.20621398091316223, -0.1581946760416031, 0.22506707906723022, -0.548069417476654, -0.1541026383638382, -0.02567937783896923, 0.06638055294752121, -0.08992119133472443, -0.13672080636024475, 0.14773131906986237, -0.07817918062210083, -0.07486391812562943, 0.13857150077819824, -0.044730763882398605, 0.12644486129283905, -0.03386809304356575, 0.4230630397796631, 0.2661765217781067, 0.5350301265716553, -0.047093987464904785, -0.17775271832942963, -0.16978846490383148, -0.25895246863365173, -0.18551068007946014, 0.03117753192782402, -0.005857723765075207, 0.4107152819633484, 0.08445534855127335, 0.2602502107620239, -0.06812132149934769, -0.0036674749571830034, -0.02228580042719841, 0.20918218791484833, -0.197184756398201, -0.14685510098934174, 0.009443921037018299, 0.13407638669013977, 0.1453397274017334, -0.07311428338289261, -0.04831405356526375, 0.06921611726284027, -0.3202485740184784, -0.21298250555992126, 0.3976905047893524, -0.20186902582645416, -0.09359514713287354, 0.09021104127168655, 0.08438806235790253, 0.04182477295398712, -0.10341977328062057, -0.40779921412467957, -0.06464419513940811, 0.12816031277179718, -0.1711636185646057, 0.20173713564872742, 0.10486602038145065, 0.1690254658460617, -0.21659749746322632, 0.03303796797990799, 0.25524675846099854, 0.09996387362480164, -0.24828922748565674, 0.14866872131824493, -0.16186285018920898 ]
https://github.com/huggingface/datasets/issues/297
Error in Demo for Specific Datasets
We don't plan to host the source files of newsroom ourselves for now. You can still get the dataset if you follow the download instructions given by `dataset = load_dataset('newsroom')` though. The viewer also shows the instructions now. Closing this one. If you have other questions, feel free to re-open :)
Selecting `natural_questions` or `newsroom` dataset in the online demo results in an error similar to the following. ![image](https://user-images.githubusercontent.com/60150701/85347842-ac861900-b4ae-11ea-98c4-a53a00934783.png)
51
Error in Demo for Specific Datasets Selecting `natural_questions` or `newsroom` dataset in the online demo results in an error similar to the following. ![image](https://user-images.githubusercontent.com/60150701/85347842-ac861900-b4ae-11ea-98c4-a53a00934783.png) We don't plan to host the source files of newsroom ourselves for now. You can still get the dataset if you follow the download instructions given by `dataset = load_dataset('newsroom')` though. The viewer also shows the instructions now. Closing this one. If you have other questions, feel free to re-open :)
[ -0.3872510492801666, 0.31880876421928406, -0.16402354836463928, -0.021165452897548676, 0.01386982947587967, -0.0003126504016108811, 0.24411019682884216, 0.4248597025871277, -0.10584597289562225, 0.2502387762069702, 0.07646038383245468, 0.06626671552658081, -0.15477292239665985, 0.19899782538414001, 0.15765593945980072, -0.30583667755126953, 0.0341394878923893, 0.10672897100448608, 0.008038097061216831, 0.07687991857528687, 0.020898498594760895, 0.13809992372989655, -0.38022592663764954, 0.08078612387180328, 0.055566854774951935, 0.07056688517332077, -0.06121902912855148, 0.10057932138442993, -0.38537663221359253, -0.28244781494140625, 0.1910812258720398, 0.1865967959165573, 0.10666624456644058, 0.25803303718566895, -0.00009687823330750689, 0.10137298703193665, 0.3720097243785858, -0.07408914715051651, -0.3853498101234436, -0.24529024958610535, -0.11443478614091873, -0.11701146513223648, -0.1747407615184784, -0.07784996181726456, -0.3093830943107605, -0.39325186610221863, 0.1433224081993103, -0.13476809859275818, 0.3808897137641907, 0.5134059190750122, 0.345136821269989, 0.31971362233161926, 0.06417771428823471, -0.3982386589050293, 0.2445177137851715, 0.3347773849964142, -0.2866629362106323, 0.25513938069343567, 0.1351357400417328, -0.010374978184700012, 0.1773417443037033, 0.26955485343933105, 0.13106736540794373, 0.11857245862483978, -0.16599051654338837, -0.06584719568490982, -0.12248534709215164, -0.3944909870624542, 0.19219829142093658, 0.3081762492656708, 0.46081802248954773, 0.20949970185756683, -0.04061391204595566, 0.018214929848909378, 0.07344129681587219, 0.009702317416667938, 0.02953379973769188, 0.3768173158168793, -0.28347060084342957, 0.11237214505672455, -0.26131606101989746, -0.3204796016216278, -0.3009410798549652, 0.36290475726127625, 0.021559853106737137, 0.26229265332221985, -0.21829451620578766, 0.21148265898227692, -0.12044386565685272, -0.11183501780033112, 0.16943137347698212, 0.05978870764374733, -0.02769342251121998, -0.023176657035946846, -0.0868624672293663, -0.0712512657046318, 0.001109497039578855, -0.04491766542196274, 0.2504675090312958, 0.11486394703388214, -0.03228452801704407, -0.07908965647220612, 0.1651589274406433, 0.0767437219619751, 0.2547529339790344, 0.1350129246711731, 0.3106299638748169, 0.42361927032470703, 0.2886645495891571, 0.3024430274963379, -0.06351950764656067, 0.0966588482260704, -0.17472808063030243, -0.3139660656452179, -0.29294684529304504, 0.04582522064447403, 0.4366629719734192, -0.3682158887386322, -0.37179747223854065, 0.15407511591911316, -0.05053332820534706, 0.12733235955238342, -0.11395730078220367, 0.29868048429489136, 0.12180067598819733, 0.06316225230693817, 0.05737188458442688, 0.41534456610679626, -0.1190727949142456, -0.47045648097991943, -0.15394219756126404, 0.18741072714328766, -0.1911039501428604, 0.06574214994907379, 0.3246701955795288, 0.1526774913072586, 0.2951783537864685, 0.05764138698577881, 0.20794346928596497, -0.08804938197135925, 0.36447426676750183, 0.12676437199115753, 0.15167662501335144, 0.250345915555954, 0.11389727145433426, 0.05188552290201187, 0.03528444468975067, -0.07814151048660278, 0.03886445611715317, 0.24605359137058258, -0.02806245908141136, -0.4773593544960022, -0.15691891312599182, 0.3296293616294861, -0.07044325768947601, 0.001181580824777484, -0.039583031088113785, 0.26082006096839905, -0.054848212748765945, -0.12828229367733002, -0.14345231652259827, -0.08726353943347931, 0.14088432490825653, 0.042140357196331024, 0.2134597897529602, 0.22673295438289642, -0.40837445855140686, 0.29365241527557373, -0.11565404385328293, -0.025573967024683952, 0.17785678803920746, 0.008878376334905624, -0.41509413719177246, 0.22611816227436066, -0.30225956439971924, -0.020909510552883148, 0.44041305780410767, -0.35775941610336304, -0.21002712845802307, 0.09458707273006439, -0.013532727025449276, -0.26239627599716187, -0.23016485571861267, -0.19788400828838348, -0.016495922580361366, 0.0489153228700161, -0.1584022343158722, 0.32088789343833923, 0.007394690997898579, 0.14091674983501434, -0.24308620393276215, -0.13508526980876923, 0.25734737515449524, 0.35293152928352356, 0.014427009038627148, -0.017627079039812088, -0.07140286266803741, 0.049538932740688324, 0.1344289630651474, -0.10437563061714172, -0.021151185035705566, 0.19384345412254333, 0.1335442215204239, -0.23040251433849335, -0.045946523547172546, -0.0433565154671669, -0.24373655021190643, 0.05540468916296959, -0.13158243894577026, 0.3995978534221649, 0.12263413518667221, 0.04209006577730179, -0.4179423153400421, -0.037828393280506134, -0.2738245129585266, -0.519909143447876, 0.3302704691886902, 0.2020728439092636, 0.0733388140797615, 0.0772278681397438, -0.10830165445804596, -0.05499301850795746, -0.0550583153963089, -0.06314113736152649, -0.21990810334682465, 0.1707657426595688, -0.2846333980560303, -0.005670483689755201, 0.09670320898294449, -0.30656757950782776, 0.2832338213920593, -0.17267455160617828, -0.20594285428524017, 0.4193873107433319, -0.019836677238345146, 0.05754699558019638, 0.4182516038417816, -0.1971726417541504, 0.05259533226490021, -0.4988587200641632, -0.008073403500020504, 0.16528652608394623, -0.11556326597929001, 0.24966773390769958, -0.12854743003845215, 0.2141992449760437, 0.1445358246564865, -0.02368352748453617, -0.00952751561999321, 0.2160441279411316, 0.33463820815086365, -0.09742223471403122, 0.017704272642731667, -0.10070903599262238, 0.18117688596248627, 0.2839544713497162, 0.09240084886550903, -0.3739607632160187, -0.3749493956565857, 0.10013366490602493, 0.07938540726900101, -0.031919147819280624, 0.08612442761659622, 0.08889708667993546, -0.07450132071971893, -0.25987496972084045, 0.2304987609386444, 0.32782188057899475, 0.4170774221420288, 0.07742699980735779, 0.24844478070735931, 0.13004201650619507, -0.17208968102931976, -0.23190489411354065, 0.28173890709877014, -0.1592698097229004, 0.1291068196296692, 0.14293994009494781, 0.16442719101905823, -0.0998535081744194, -0.4131440818309784, 0.05571184679865837, 0.18645675480365753, 0.19601233303546906, -0.18863821029663086, -0.008992715738713741, -0.20100927352905273, -0.17556779086589813, 0.10713988542556763, 0.047627322375774384, -0.06593882292509079, -0.3055219352245331, 0.43214285373687744, 0.0323331318795681, -0.36554980278015137, 0.1023600772023201, -0.01792733743786812, 0.3619746267795563, -0.04568761959671974, 0.4299205541610718, -0.044413406401872635, -0.04636632651090622, -0.32818803191185, 0.24817466735839844, 0.15987934172153473, 0.18438923358917236, 0.35904765129089355, -0.2736920118331909, -0.20646430552005768, -0.4784516990184784, -0.27117326855659485, 0.287109911441803, 0.2367940992116928, 0.76456618309021, 0.012166820466518402, 0.4614916741847992, -0.11202820390462875, -0.12310896813869476, 0.2972160875797272, -0.16846738755702972, -0.06434410810470581, 0.06804083287715912, -0.06573639810085297, -0.26281678676605225, -0.27108535170555115, -0.6054617166519165, -0.2764245271682739, -0.25330305099487305, -0.0740087553858757, -0.034391891211271286, 0.08085819333791733, 0.34026387333869934, 0.018495740368962288, -0.0887746512889862, -0.007562743965536356, 0.03598993644118309, -0.4659328758716583, -0.4391840994358063, 0.16146908700466156, -0.7218427062034607, -0.4966347813606262, 0.025844762101769447, 0.21401390433311462, 0.2463018000125885, 0.0534701868891716, -0.3788910508155823, -0.06303545087575912, 0.06971774250268936, -0.05728375166654587, 0.09169042855501175, -0.16309542953968048, 0.21496042609214783, -0.29438433051109314, -0.24223922193050385, -0.2595789134502411, 0.07472404837608337, 0.1373460590839386, 0.09629815816879272, 0.18590371310710907, -0.20094551146030426, -0.07457078993320465, 0.06760136038064957, 0.6230894327163696, 0.08540976792573929, 0.09926741570234299, 0.372231662273407, -0.13273152709007263, 0.3359409272670746, -0.13864578306674957, -0.005021102726459503, 0.1669457107782364, -0.0674053207039833, -0.1498185247182846, 0.2395371049642563, 0.025945793837308884, -0.3132219910621643, -0.38524219393730164, 0.24055197834968567, -0.3015008866786957, -0.1989704668521881, -0.05389094352722168, -0.020872637629508972, 0.2608450949192047, 0.24068036675453186, -0.001687195268459618, 0.10400364547967911, -0.07460298389196396, 0.024388480931520462, 0.057033609598875046, 0.044571053236722946, 0.003195931436493993, -0.6048040986061096, 0.026720155030488968, -0.3515688180923462, 0.15912647545337677, -0.2577730417251587, 0.41190165281295776, -0.24070672690868378, -0.008532600477337837, 0.013882843777537346, -0.08647788316011429, 0.1769099086523056, -0.5102113485336304, -0.027669774368405342, 0.014935105107724667, 0.11099238693714142, -0.19242052733898163, -0.2355775386095047, -0.27454617619514465, 0.264119029045105, 0.07852337509393692, 0.18462000787258148, -0.14298707246780396, -0.12873369455337524, 0.2427588552236557, -0.013487122021615505, 0.020748747512698174, -0.08058176934719086, 0.0630602017045021, -0.09678707271814346, -0.39887937903404236, -0.09116194397211075, 0.0446014329791069, -0.04636932164430618, -0.3687054514884949, -0.11566272377967834, 0.07933761924505234, 0.3159843683242798, -0.08588504046201706, 0.1336701363325119, 0.20203882455825806, 0.04796518757939339, -0.011497212573885918, 0.26050519943237305, 0.06770740449428558, 0.1446571797132492, 0.3633374869823456, 0.22159186005592346, -0.08191979676485062, 0.19261902570724487, -0.1205546036362648, -0.04242826998233795, 0.5388203859329224, -0.1751195341348648, -0.2817956209182739, -0.10479411482810974, 0.1417997032403946, 0.008728516288101673, 0.34724822640419006, 0.2992345988750458, -0.31333228945732117, 0.020970381796360016, -0.23781710863113403, 0.19730575382709503, -0.1814100444316864, -0.16685029864311218, 0.13335002958774567, -0.16425180435180664, -0.03738240897655487, 0.006274362560361624, 0.1289384365081787, 0.8680383563041687, 0.1448332518339157, 0.041102681308984756, 0.17166969180107117, -0.10489659756422043, 0.23320803046226501, -0.14745041728019714, -0.004534603096544743, -0.2011488676071167, -0.27239012718200684, 0.04247530177235603, -0.0872676819562912, 0.1309131532907486, 0.17688027024269104, -0.21600936353206635, 0.16029037535190582, 0.03247205540537834, 0.08713551610708237, -0.15215742588043213, 0.09693901985883713, -0.0012677564518526196, 0.22950245440006256, -0.16763490438461304, 0.3235170245170593, -0.05647926777601242, 0.15176956355571747, -0.2461146116256714, -0.09187090396881104, -0.1434953361749649, -0.16288642585277557, -0.3564282953739166, 0.28985416889190674, -0.05166549235582352, 0.1543085128068924, 0.01123878639191389, -0.18031950294971466, -0.042925987392663956, 0.38145387172698975, 0.13133561611175537, 0.12403882294893265, -0.36734870076179504, 0.25981488823890686, -0.017244558781385422, -0.23128925263881683, 0.08381561189889908, 0.10567421466112137, 0.16000361740589142, -0.3114282786846161, -0.2772396206855774, 0.0913432165980339, -0.16300112009048462, -0.010980071499943733, -0.3528251349925995, -0.17686758935451508, 0.28596606850624084, -0.14016559720039368, -0.22971771657466888, -0.13819877803325653, -0.11623674631118774, -0.2525804936885834, 0.27904874086380005, -0.08385981619358063, -0.22370696067810059, -0.3463156223297119, 0.3273398280143738, -0.16934917867183685, -0.05769696086645126, 0.05630408972501755, 0.06395705044269562, 0.08822760730981827, 0.37012845277786255, 0.20619747042655945, -0.06217977777123451, -0.40525856614112854, 0.18423953652381897, 0.22913962602615356, -0.3934094309806824, 0.05962172895669937, -0.1618468463420868, -0.02138662151992321, 0.2566956877708435, 0.24765010178089142, -0.05336589366197586, -0.2109646052122116, 0.057869456708431244, -0.3806428611278534, -0.018286054953932762, -0.05953223630785942, -0.16100895404815674, 0.2897931933403015, -0.05000104755163193, -0.21121858060359955, 0.18303711712360382, 0.029549742117524147, -0.46413931250572205, -0.05850653722882271, -0.33931633830070496, 0.16480988264083862, -0.34028908610343933, 0.07721011340618134, -0.05207927152514458, -0.05207658186554909, 0.17250974476337433, -0.12196266651153564, -0.278565376996994, -0.36152446269989014, -0.05466225743293762, 0.09168090671300888, 0.25516343116760254, -0.25358515977859497, 0.021073082461953163, -0.13812865316867828, -0.13465344905853271, 0.14051055908203125, 0.14343473315238953, -0.23038116097450256, 0.01828598789870739, 0.0926131159067154, 0.020150532945990562, 0.02393982745707035, 0.08748084306716919, 0.10176515579223633, 0.09542940557003021, 0.3023667335510254, 0.04433966428041458, 0.11460382491350174, 0.0687188133597374, -0.23199975490570068, -0.3179428279399872, 0.005967604462057352, 0.08622917532920837, 0.4791337847709656, 0.11763426661491394, -0.26252615451812744, 0.2080424427986145, 0.012303176335990429, 0.19378599524497986, 0.24825038015842438, -0.46868088841438293, 0.2854805588722229, 0.14892645180225372, 0.38023054599761963, -0.25359031558036804, -0.10250173509120941, -0.07129652053117752, -0.002117232419550419, -0.04052388668060303, -0.16187050938606262, 0.27192291617393494, 0.03808673843741417, 0.17058853805065155, 0.1537540853023529, 0.026167282834649086, -0.04615040868520737, 0.262116402387619, 0.3201758563518524, -0.3798973560333252, 0.12224240601062775, -0.17087839543819427, -0.0001221745478687808, 0.03926456347107887, 0.2162192314863205, 0.0725901648402214, 0.4372929036617279, 0.33496955037117004, 0.20505987107753754, 0.30657851696014404, -0.13988734781742096, 0.12677879631519318, 0.2541254162788391, 0.1811511218547821, 0.2138209044933319, -0.036126356571912766, 0.026356898248195648, -0.2686800956726074, -0.16444383561611176, -0.28017738461494446, 0.11931974440813065, 0.04027582332491875, 0.017068615183234215, -0.2899402678012848, -0.29945749044418335, -0.2605130672454834, 0.039109162986278534, -0.12773540616035461, -0.11997973173856735, 0.00782433059066534, -0.06881933659315109, -0.18699002265930176, -0.3241327106952667, 0.33644846081733704, 0.15787099301815033, -0.03299902752041817, -0.11217153817415237, 0.377261757850647, 0.0438627190887928, -0.13664142787456512, 0.23843520879745483, 0.5030639171600342, 0.3806135654449463, 0.3672259449958801, -0.23982124030590057, -0.013041755184531212, 0.07304729521274567, -0.07885517925024033, 0.005191333591938019, 0.06793402135372162, 0.24013574421405792, -0.07565189152956009, 0.4011608958244324, 0.25930386781692505, -0.19294606149196625, 0.1742033213376999, 0.2846859097480774, 0.04875985160470009, -0.09094277769327164, -0.07255560159683228, -0.1908072829246521, 0.10580285638570786, -0.025252684950828552, -0.32716110348701477, -0.28076183795928955, 0.038627177476882935, 0.1342490166425705, -0.030022362247109413, 0.18848979473114014, -0.2734943628311157, 0.17094871401786804, -0.1840061992406845, 0.5951342582702637, 0.08790764957666397, 0.25178489089012146, -0.09254586696624756, -0.5342869162559509, -0.5470654368400574, 0.2486828863620758, -0.09674244374036789, -0.07468949258327484, 0.1531466692686081, -0.030512802302837372, 0.269627183675766, 0.2860680818557739, 0.051286522299051285, 0.07998883724212646, -0.14881351590156555, 0.2649138271808624, -0.5765098333358765, -0.01899169199168682, 0.099228136241436, 0.26780378818511963, 0.009132951498031616, -0.2319776862859726, 0.131776362657547, -0.10628434270620346, 0.09715887904167175, 0.32703667879104614, -0.020053919404745102, 0.06819925457239151, -0.07297768443822861, 0.4364086389541626, 0.06434892117977142, 0.36928847432136536, -0.23292076587677002, -0.27462464570999146, -0.20337514579296112, -0.1324525773525238, -0.198307603597641, 0.1044892966747284, 0.11429066956043243, 0.1928538978099823, 0.07953666895627975, 0.06595741957426071, 0.05169590935111046, -0.09229806810617447, 0.09492787718772888, 0.04068890959024429, -0.33760571479797363, -0.07710719108581543, 0.07682625204324722, 0.02177545055747032, 0.1538316011428833, -0.08042089641094208, -0.1722634881734848, -0.1288500875234604, -0.22119104862213135, -0.11580236256122589, 0.510681688785553, -0.04353431984782219, -0.21142205595970154, -0.0710553452372551, 0.007558898534625769, 0.08788609504699707, -0.09366253763437271, -0.3844064772129059, 0.048137959092855453, 0.1446215808391571, -0.052043210715055466, 0.09143015742301941, 0.1257631778717041, 0.18575835227966309, 0.016452394425868988, -0.02499680034816265, 0.5657550096511841, 0.16931380331516266, -0.2248266637325287, 0.003962150774896145, -0.12324625998735428 ]
https://github.com/huggingface/datasets/issues/296
snli -1 labels
@jxmorris12 , we use `-1` to label examples for which `gold label` is missing (`gold label = -` in the original dataset).
I'm trying to train a model on the SNLI dataset. Why does it have so many -1 labels? ``` import nlp from collections import Counter data = nlp.load_dataset('snli')['train'] print(Counter(data['label'])) Counter({0: 183416, 2: 183187, 1: 182764, -1: 785}) ```
22
snli -1 labels I'm trying to train a model on the SNLI dataset. Why does it have so many -1 labels? ``` import nlp from collections import Counter data = nlp.load_dataset('snli')['train'] print(Counter(data['label'])) Counter({0: 183416, 2: 183187, 1: 182764, -1: 785}) ``` @jxmorris12 , we use `-1` to label examples for which `gold label` is missing (`gold label = -` in the original dataset).
[ 0.4284363090991974, -0.32203617691993713, -0.07235006988048553, 0.23945392668247223, 0.2163771390914917, 0.146388441324234, 0.5796828269958496, 0.16553568840026855, 0.17036305367946625, 0.18553805351257324, -0.19042931497097015, 0.35288554430007935, -0.15023531019687653, 0.0844014510512352, 0.27373185753822327, 0.007783251814544201, 0.4201532006263733, 0.27410888671875, 0.35146135091781616, -0.45864710211753845, -0.17099995911121368, 0.13829119503498077, -0.1522456854581833, 0.312823086977005, -0.4414059519767761, 0.346114844083786, 0.000912888499442488, -0.38704368472099304, -0.018064554780721664, -0.7808858752250671, 0.17051054537296295, -0.0521242655813694, 0.24947793781757355, -0.20460425317287445, -0.000118489952001255, -0.282956063747406, 0.11125548183917999, 0.10014162957668304, -0.6039973497390747, -0.12913864850997925, -0.14780396223068237, -0.2091725766658783, 0.27007120847702026, -0.022631162777543068, -0.056176792830228806, -0.2235003113746643, 0.25704342126846313, 0.12134338170289993, -0.03771406412124634, 0.248665913939476, 0.12010358273983002, 0.007454171311110258, -0.3962404131889343, 0.22410474717617035, 0.26312705874443054, -0.24901367723941803, 0.06933926045894623, 0.023318959400057793, 0.010258075781166553, -0.16955682635307312, 0.41048115491867065, 0.4804103672504425, -0.12124275416135788, -0.16331815719604492, 0.15867871046066284, 0.07581847161054611, 0.2860768139362335, -0.3415984809398651, -0.006410679779946804, 0.224025160074234, 0.09168236702680588, -0.283952534198761, -0.2545429468154907, -0.34410372376441956, 0.20203378796577454, -0.25729069113731384, -0.23164434731006622, 0.1768645942211151, 0.36292341351509094, 0.012536957859992981, -0.1831653118133545, 0.013428010046482086, -0.10460581630468369, 0.11068768799304962, 0.22065369784832, 0.689981997013092, 0.1222345158457756, 0.2554950714111328, 0.39409270882606506, 0.2337830513715744, -0.23951506614685059, -0.07512427121400833, 0.0352584570646286, 0.409728467464447, -0.518524169921875, -0.2892339825630188, 0.02635801024734974, 0.037335798144340515, -0.036139003932476044, 0.19921714067459106, -0.01420582551509142, -0.13239900767803192, -0.11354876309633255, 0.049820270389318466, 0.0985604003071785, 0.03400218114256859, 0.38281381130218506, 0.23380662500858307, 0.00194238789845258, -0.21103817224502563, 0.27144116163253784, 0.03787987679243088, -0.28709614276885986, -0.05079561471939087, 0.4360058903694153, -0.08399616181850433, -0.2353135347366333, -0.11521664261817932, -0.14647814631462097, -0.028974397107958794, -0.48384472727775574, -0.016803061589598656, 0.16645339131355286, -0.2647244930267334, 0.19972024857997894, 0.2433994859457016, -0.2316463440656662, 0.05991746857762337, -0.1101183146238327, -0.48509252071380615, -0.14736656844615936, 0.02917681448161602, -0.12752947211265564, -0.09465251117944717, 0.08639410138130188, -0.19763541221618652, 0.17817723751068115, 0.02724798396229744, -0.3649917542934418, -0.09378505498170853, 0.3724908232688904, 0.10107657313346863, -0.050178393721580505, 0.3409382104873657, -0.3068785071372986, 0.6312387585639954, -0.061347343027591705, -0.14266982674598694, -0.08958084881305695, -0.15820804238319397, -0.22099651396274567, -0.31804782152175903, 0.020044300705194473, 0.16402898728847504, 0.04415423423051834, -0.23550182580947876, 0.06947605311870575, 0.12587912380695343, -0.011677894741296768, -0.1452895700931549, 0.12688250839710236, -0.26023200154304504, -0.08305990695953369, -0.02596944011747837, 0.06306245177984238, -0.0034210991580039263, -0.13050219416618347, -0.14613285660743713, -0.0012301673414185643, -0.2816199064254761, 0.3323381543159485, 0.4053995907306671, -0.07142678648233414, -0.10505737364292145, 0.07506188750267029, 0.06983451545238495, 0.48053857684135437, -0.37348124384880066, -0.37283647060394287, 0.1543431282043457, -0.25539007782936096, -0.48199978470802307, -0.030121291056275368, 0.6454000473022461, -0.184307262301445, -0.028885023668408394, 0.0026401698123663664, -0.17713932693004608, 0.0531977042555809, -0.13754938542842865, -0.37072065472602844, 0.08681538701057434, 0.504974365234375, 0.2264968603849411, -0.05128097906708717, -0.02587299235165119, -0.3803989887237549, 0.11615029722452164, 0.3642604351043701, -0.07194651663303375, 0.16277936100959778, 0.029946936294436455, 0.2692738473415375, 0.17296351492404938, 0.17089124023914337, 0.04422147199511528, -0.19666120409965515, 0.17850442230701447, -0.05783864110708237, 0.4421190023422241, 0.47273966670036316, 0.04122963175177574, -0.08828263729810715, -0.10187820345163345, -0.12166282534599304, -0.1106766015291214, 0.05367420241236687, 0.187027707695961, 0.20118528604507446, -0.06381020694971085, -0.13424673676490784, 0.06882022321224213, -0.1588870882987976, 0.12394417077302933, -0.3422488570213318, -0.020609918981790543, 0.058090418577194214, 0.08119891583919525, -0.1915920078754425, 0.24226537346839905, 0.3230990469455719, 0.16152380406856537, 0.12243246287107468, 0.08022677898406982, -0.1514076292514801, -0.2654777765274048, 0.23201726377010345, 0.399681031703949, 0.17412607371807098, -0.2977239489555359, 0.05309884622693062, 0.4022231698036194, 0.06530895084142685, -0.2728525400161743, -0.07116864621639252, 0.1225157082080841, -0.012123378925025463, 0.21923159062862396, -0.29004043340682983, 0.14576344192028046, 0.10625369846820831, 0.20038972795009613, -0.32092201709747314, -0.2441481202840805, 0.1283983588218689, -0.35599008202552795, 0.08736267685890198, 0.33059293031692505, -0.3314164876937866, 0.06432591378688812, 0.042400144040584564, -0.17311307787895203, -0.04588209465146065, 0.09961691498756409, -0.12291884422302246, -0.13101673126220703, 0.34079399704933167, 0.0693276971578598, 0.11921513825654984, 0.215751513838768, -0.06956703215837479, -0.009683371521532536, -0.598578691482544, -0.23975864052772522, 0.1104310154914856, 0.10058356821537018, -0.21638503670692444, -0.24156035482883453, 0.38262739777565, 0.061046671122312546, -0.2787593901157379, -0.5435172915458679, -0.294750452041626, 0.21735543012619019, -0.24281767010688782, 0.2016548067331314, -0.1393657624721527, -0.40475305914878845, -0.4046652615070343, -0.2777753174304962, -0.10122831910848618, -0.15193194150924683, 0.2774127423763275, -0.28947189450263977, 0.19860407710075378, 0.0449061244726181, 0.07574526965618134, 0.22326643764972687, -0.19362351298332214, 0.4343915581703186, -0.26998257637023926, -0.20433379709720612, -0.33948850631713867, -0.05699269846081734, -0.36402925848960876, 0.027795644477009773, 0.23828156292438507, -0.09087621420621872, -0.337866872549057, -0.009052381850779057, -0.23545260727405548, -0.09371669590473175, -0.1507396697998047, -0.099529929459095, 0.17838747799396515, -0.1449020951986313, -0.21056321263313293, 0.3857540488243103, 0.0033598518930375576, 0.15524262189865112, 0.017958126962184906, 0.1333083212375641, -0.2987651228904724, 0.1111503466963768, -0.38930320739746094, -0.13976725935935974, -0.053563836961984634, 0.2671802043914795, 0.15222544968128204, 0.0830080434679985, 0.14538779854774475, 0.4180039167404175, -0.10876605659723282, 0.05650981888175011, -0.12559805810451508, 0.3179321587085724, -0.13659662008285522, -0.3129754066467285, 0.0649636834859848, 0.24288567900657654, -0.024536512792110443, -0.03462442010641098, 0.1262347400188446, -0.030929280444979668, -0.3222072124481201, -0.40388235449790955, 0.08780986815690994, 0.1511193960905075, -0.17051592469215393, -0.021857850253582, 0.04039734974503517, -0.09443837404251099, 0.24828407168388367, 0.10873965919017792, -0.06426722556352615, 0.1175239160656929, 0.22059345245361328, -0.15932469069957733, 0.4910188913345337, -0.3128918409347534, 0.18557021021842957, -0.1263469159603119, -0.01932941935956478, 0.5070953965187073, -0.08164898306131363, 0.0644339919090271, 0.01943213865160942, -0.17547623813152313, -0.09441482275724411, 0.00389198143966496, 0.3216065466403961, 0.29235464334487915, -0.06558655202388763, 0.35404637455940247, -0.0613374225795269, -0.012218699790537357, 0.01310017704963684, 0.23145490884780884, 0.3084675669670105, 0.1359843909740448, -0.09614074975252151, -0.09068875759840012, -0.06440035253763199, -0.07721859216690063, -0.23301836848258972, -0.18295487761497498, 0.00672750873491168, -0.1595620959997177, -0.11795157939195633, -0.030778858810663223, 0.2115195244550705, -0.3535706698894501, -0.29333817958831787, -0.1993017941713333, -0.19758203625679016, 0.0419868640601635, 0.20098501443862915, 0.19042806327342987, 0.2532201409339905, 0.3469064235687256, 0.4513159990310669, 0.5280640721321106, -0.41172751784324646, 0.13607048988342285, 0.1708020716905594, 0.459835410118103, -0.3179304599761963, -0.17050547897815704, -0.3953026235103607, -0.2422584444284439, 0.5076139569282532, 0.34291523694992065, 0.035154763609170914, -0.28556227684020996, 0.4906053841114044, 0.11880222707986832, -0.1419801414012909, -0.1873476356267929, -0.37005001306533813, -0.15891875326633453, 0.14747413992881775, -0.12221502512693405, -0.06029259413480759, -0.0016444914508610964, -0.08892692625522614, 0.03278103470802307, 0.03899751603603363, -0.06674429774284363, 0.1790999323129654, 0.12498681247234344, -0.09247009456157684, 0.31675252318382263, -0.023619061335921288, 0.2637503445148468, 0.15024317800998688, -0.22141912579536438, 0.32278114557266235, -0.08093316107988358, -0.5003841519355774, -0.11042949557304382, -0.03611364588141441, 0.5688653588294983, -0.052808161824941635, 0.16314658522605896, -0.15160980820655823, -0.1663200706243515, 0.1289232075214386, -0.11464933305978775, 0.1187450960278511, 0.28646838665008545, 0.17084605991840363, -0.3608553111553192, -0.5239190459251404, 0.756754457950592, 0.12848228216171265, -0.23638872802257538, 0.033206433057785034, -0.22662752866744995, -0.24644829332828522, 0.2846197187900543, 0.3165578544139862, 0.827855110168457, -0.0867285206913948, 0.1937091052532196, 0.17113229632377625, -0.5426458120346069, 0.7377104163169861, -0.1458803415298462, -0.09431955218315125, -0.2976088225841522, 0.18724839389324188, 0.06833548843860626, 0.1426669806241989, -0.3443256616592407, 0.6471418142318726, 0.220301553606987, 0.3624389171600342, -0.053321707993745804, -0.15755444765090942, 0.23816974461078644, 0.030114922672510147, 0.5198013782501221, -0.14377394318580627, -0.2588644027709961, 0.07728012651205063, -0.09723302721977234, 0.06213477998971939, -0.2950023412704468, 0.04300035163760185, 0.16008462011814117, -0.018893809989094734, -0.008339328691363335, -0.3128892481327057, 0.3336390554904938, 0.010645552538335323, 0.24203035235404968, 0.030686544254422188, -0.23977796733379364, 0.3733068108558655, 0.6426193118095398, 0.12604372203350067, 0.015252132900059223, -0.098202183842659, 0.15157757699489594, 0.23967941105365753, -0.044046614319086075, 0.17183305323123932, 0.42698362469673157, -0.003946618642657995, -0.2366541624069214, -0.09855645149946213, 0.08617880195379257, 0.3245227038860321, -0.4428784251213074, -0.024927552789449692, -0.260994017124176, 0.2397553026676178, 0.18580251932144165, 0.08802641183137894, 0.1297469437122345, -0.22001342475414276, 0.12394040822982788, 0.20141388475894928, -0.2534957230091095, -0.13741934299468994, -0.06246255710721016, -0.3123231530189514, -0.19252756237983704, 0.2476591169834137, 0.16449707746505737, 0.1697167158126831, 0.10507144033908844, -0.09639272093772888, -0.06139899045228958, -0.1075514480471611, -0.044947583228349686, 0.1630549430847168, -0.43713828921318054, 0.14337503910064697, 0.18557225167751312, -0.05269400402903557, -0.17815722525119781, 0.29727235436439514, 0.049320053309202194, 0.028577715158462524, 0.1651865690946579, -0.044184908270835876, -0.40840834379196167, -0.25846120715141296, -0.233487069606781, 0.2323039472103119, 0.024026188999414444, 0.12253859639167786, 0.07786345481872559, -0.11577019095420837, -0.23265282809734344, -0.3047425448894501, -0.32863113284111023, 0.403794527053833, -0.06447168439626694, 0.11571472138166428, -0.37260231375694275, 0.23196814954280853, 0.16439831256866455, -0.14961662888526917, 0.06678260117769241, -0.1029147282242775, -0.11870820075273514, 0.1555551439523697, 0.13076339662075043, -0.06192931905388832, -0.06856702268123627, 0.2700778543949127, -0.11349684000015259, 0.06766899675130844, -0.04477020725607872, 0.15812398493289948, 0.2739681303501129, 0.825996994972229, -0.19831262528896332, -0.06518164277076721, 0.09306357055902481, -0.10752975195646286, 0.03446308895945549, -0.04901466518640518, 0.1830626130104065, -0.004762464202940464, 0.23883047699928284, -0.03631749004125595, -0.335884690284729, 0.03412456437945366, -0.3662404417991638, -0.09981310367584229, -0.02789885923266411, -0.3548504710197449, 0.5007497668266296, 0.3900424540042877, 0.17719312012195587, 0.13065756857395172, -0.15921083092689514, -0.1007736474275589, 0.3226486146450043, 0.16105209290981293, -0.01547134481370449, -0.14435571432113647, 0.3236387372016907, 0.2663084864616394, -0.13288503885269165, 0.17088471353054047, -0.009013285860419273, -0.21632404625415802, -0.07792144268751144, -0.16708819568157196, 0.0538468211889267, -0.41350820660591125, -0.00678357295691967, 0.31447672843933105, -0.05233028158545494, -0.0729260966181755, 0.2095656841993332, -0.1144014298915863, -0.052960775792598724, 0.42927056550979614, -0.0870918333530426, 0.359691321849823, 0.14967218041419983, 0.004443205427378416, -0.26100996136665344, 0.3264991343021393, -0.24332456290721893, 0.30399274826049805, -0.572104811668396, 0.143363356590271, -0.043260496109724045, 0.15831616520881653, -0.11235741525888443, -0.01176258735358715, 0.27002575993537903, 0.15382227301597595, -0.19343870878219604, -0.25394904613494873, -0.6602362990379333, 0.3764892518520355, -0.15800316631793976, 0.3186725974082947, -0.1989750862121582, 0.006609699223190546, 0.1375489979982376, 0.0733642503619194, 0.01625796966254711, -0.4448852241039276, -0.3440653383731842, 0.304015189409256, 0.42863112688064575, -0.18470491468906403, -0.06506257504224777, -0.08347281068563461, -0.06229577586054802, 0.03603794425725937, -0.2250070422887802, 0.1916493922472, 0.06944098323583603, 0.2670176327228546, -0.03612075746059418, -0.3936541974544525, -0.06367144733667374, -0.14850486814975739, 0.054136063903570175, 0.2923436462879181, 0.08508726954460144, 0.0918392762541771, -0.021029943600296974, -0.042133741080760956, 0.5177640914916992, -0.10643763095140457, 0.05947206914424896, -0.42414939403533936, 0.34401366114616394, -0.10120643675327301, -0.43974387645721436, -0.3080053925514221, 0.07085637003183365, -0.1951526254415512, 0.16184920072555542, 0.061350323259830475, 0.21989010274410248, 0.17382603883743286, -0.34444528818130493, 0.0481267124414444, -0.10168452560901642, 0.3673907220363617, 0.018078148365020752, -0.011942077428102493, -0.06360108405351639, -0.03801993653178215, -0.305379718542099, -0.09800932556390762, -0.10970811545848846, 0.018185723572969437, 0.1245700865983963, -0.027321310713887215, -0.41324126720428467, -0.035494547337293625, 0.029525626450777054, 0.37894999980926514, -0.01207407284528017, 0.057798516005277634, 0.026408005505800247, 0.05632523074746132, -0.2031366229057312, 0.13884390890598297, 0.05117177218198776, 0.19747522473335266, 0.04913349449634552, -0.21896018087863922, 0.012661359272897243, -0.028322001919150352, 0.18656247854232788, -0.13768382370471954, 0.3892339766025543, 0.17947371304035187, 0.004266555421054363, 0.390337198972702, 0.22847948968410492, 0.18998515605926514, -0.26036515831947327, 0.08868101984262466, -0.2987482249736786, 0.03852573409676552, -0.19589385390281677, 0.2179414927959442, -0.11114228516817093, 0.21625173091888428, 0.03932308778166771, -0.039480824023485184, 0.28727516531944275, -0.046500202268362045, -0.41999104619026184, 0.21908999979496002, -0.07559666037559509, 0.13244755566120148, -0.007036752533167601, 0.015901969745755196, 0.45992425084114075, -0.13286283612251282, -0.1711122989654541, -0.40887483954429626, 0.29254770278930664, -0.22539114952087402, -0.09675359725952148, 0.010683350265026093, 0.29125916957855225, 0.27615728974342346, -0.06524154543876648, -0.7549911141395569, -0.15094049274921417, 0.43030139803886414, 0.04971796274185181, -0.5622783303260803, 0.11530175805091858, 0.25817856192588806, 0.10885927826166153, 0.0058465516194701195, -0.055325496941804886, 0.2274072915315628, 0.3328621983528137, 0.40135329961776733, -0.4327884912490845 ]
https://github.com/huggingface/datasets/issues/296
snli -1 labels
Thanks @mariamabarham! so the original dataset is missing some labels? That is weird. Is standard practice just to discard those examples training/eval?
I'm trying to train a model on the SNLI dataset. Why does it have so many -1 labels? ``` import nlp from collections import Counter data = nlp.load_dataset('snli')['train'] print(Counter(data['label'])) Counter({0: 183416, 2: 183187, 1: 182764, -1: 785}) ```
22
snli -1 labels I'm trying to train a model on the SNLI dataset. Why does it have so many -1 labels? ``` import nlp from collections import Counter data = nlp.load_dataset('snli')['train'] print(Counter(data['label'])) Counter({0: 183416, 2: 183187, 1: 182764, -1: 785}) ``` Thanks @mariamabarham! so the original dataset is missing some labels? That is weird. Is standard practice just to discard those examples training/eval?
[ 0.37897953391075134, -0.23638877272605896, 0.0022033322602510452, 0.19780601561069489, 0.1676160842180252, 0.22788235545158386, 0.6327134966850281, 0.17202210426330566, 0.04842033609747887, 0.11039803177118301, -0.10792415589094162, 0.37467360496520996, -0.2219468653202057, 0.14969545602798462, 0.194236621260643, 0.12018710374832153, 0.33457210659980774, 0.32737037539482117, 0.3262067437171936, -0.4975580871105194, -0.16464011371135712, 0.13662001490592957, -0.10910122841596603, 0.26487550139427185, -0.4185906648635864, 0.23733465373516083, -0.1538485735654831, -0.342922568321228, 0.10450293123722076, -0.6462279558181763, 0.21992726624011993, -0.10231247544288635, 0.42179107666015625, -0.2809375524520874, -0.00012166707892902195, -0.2675626575946808, 0.05438520014286041, -0.017052361741662025, -0.5345315337181091, 0.013919711112976074, -0.07294774800539017, -0.1938706934452057, 0.29071784019470215, -0.10572880506515503, -0.07979777455329895, -0.19854022562503815, 0.2433379739522934, 0.00828578695654869, 0.07407957315444946, 0.2916977107524872, 0.12089845538139343, -0.007320230361074209, -0.4337936043739319, 0.3430738151073456, 0.3437733054161072, -0.22768616676330566, 0.06303773075342178, 0.08631698042154312, 0.020141631364822388, -0.07728946208953857, 0.4642215967178345, 0.43800532817840576, -0.11586127430200577, -0.2857223153114319, 0.17432689666748047, 0.1308353990316391, 0.4274493455886841, -0.38704147934913635, 0.0074045234359800816, 0.25461098551750183, 0.1439845860004425, -0.12915246188640594, -0.3260563611984253, -0.4347464442253113, 0.24930386245250702, -0.3112301230430603, -0.23609216511249542, 0.21969565749168396, 0.3017016649246216, 0.15113858878612518, -0.28292229771614075, -0.05166615918278694, -0.18891924619674683, 0.14142951369285583, 0.1295461505651474, 0.637417733669281, 0.11013448238372803, 0.178287535905838, 0.13658128678798676, 0.2269991636276245, -0.13424843549728394, -0.11056751757860184, -0.012063237838447094, 0.3769010007381439, -0.38866204023361206, -0.2018810510635376, 0.0016413484700024128, 0.025168156251311302, -0.08315052092075348, 0.23637573421001434, 0.05368954688310623, -0.08640113472938538, 0.07082764059305191, 0.06043640524148941, 0.18551379442214966, 0.14932215213775635, 0.46044790744781494, 0.3609254062175751, -0.006777788512408733, -0.20381025969982147, 0.23742665350437164, -0.01783432997763157, -0.4318781793117523, 0.07513266056776047, 0.28643321990966797, -0.1190735250711441, -0.15249736607074738, -0.2075912356376648, -0.16850659251213074, -0.008001741953194141, -0.5624999403953552, 0.05498022958636284, 0.08528310060501099, -0.12432713061571121, 0.07340699434280396, 0.29666292667388916, -0.23001164197921753, 0.10543176531791687, -0.15785105526447296, -0.6040852665901184, -0.12770414352416992, 0.13155272603034973, -0.17731282114982605, -0.207124263048172, 0.19950997829437256, -0.21296866238117218, 0.23791195452213287, -0.011701812036335468, -0.34590944647789, -0.06301205605268478, 0.46733129024505615, 0.057762034237384796, 0.1729014813899994, 0.3453715443611145, -0.13117782771587372, 0.5312722325325012, -0.06206003576517105, -0.13814003765583038, -0.0748060792684555, 0.02976992540061474, -0.2154981940984726, -0.33280080556869507, 0.1816052347421646, 0.17271508276462555, -0.1253916472196579, -0.15301400423049927, 0.04544483497738838, 0.14676977694034576, 0.08498024940490723, -0.2330767661333084, 0.05829557403922081, -0.349065363407135, 0.04291717708110809, -0.09430805593729019, 0.15685081481933594, 0.009879407472908497, -0.18079189956188202, -0.1234239935874939, 0.0030139500740915537, -0.17484696209430695, 0.3881753087043762, 0.4391436278820038, -0.08881474286317825, 0.0585123710334301, -0.0513509102165699, 0.08467170596122742, 0.5011439919471741, -0.2736697494983673, -0.26544925570487976, 0.11332430690526962, -0.10756424814462662, -0.2903262972831726, -0.11853589117527008, 0.5133686661720276, 0.010310226120054722, -0.022084660828113556, -0.026220479980111122, -0.05765047296881676, -0.04693891108036041, -0.19082951545715332, -0.40781712532043457, 0.043990835547447205, 0.5144605040550232, 0.15849627554416656, -0.10348708927631378, 0.13258634507656097, -0.4626445174217224, 0.11769465357065201, 0.3830081820487976, -0.17689165472984314, 0.18461687862873077, 0.11847291886806488, 0.20526692271232605, 0.15562847256660461, 0.07375779002904892, 0.07110956311225891, -0.24502193927764893, 0.20191165804862976, -0.09622255712747574, 0.25698450207710266, 0.5588257908821106, -0.12852787971496582, -0.036027692258358, -0.1826658546924591, -0.15301856398582458, -0.28609177470207214, 0.0586613230407238, 0.1514589488506317, 0.16417452692985535, -0.03859705105423927, -0.18274269998073578, 0.115831658244133, -0.29912617802619934, 0.08031118661165237, -0.4682605564594269, -0.02589322440326214, 0.11079589277505875, 0.0876259133219719, -0.15548676252365112, 0.268386572599411, 0.21602007746696472, 0.023261306807398796, 0.1758342683315277, 0.09779229760169983, -0.097643181681633, -0.21835720539093018, 0.11025373637676239, 0.24687667191028595, 0.06853526085615158, -0.2757851779460907, 0.09640543162822723, 0.4207381010055542, 0.010861434042453766, -0.2066677063703537, -0.20598958432674408, 0.26844674348831177, 0.007992819882929325, 0.22700847685337067, -0.10758514702320099, 0.08825428783893585, 0.07339111715555191, 0.07654092460870743, -0.34252747893333435, -0.15689073503017426, 0.1437411904335022, -0.3022577464580536, 0.134748637676239, 0.28164535760879517, -0.3767751455307007, 0.01818229816854, 0.033823441714048386, -0.1499394029378891, -0.04658796265721321, 0.13388307392597198, -0.14937104284763336, -0.15228143334388733, 0.3809714615345001, 0.011431878432631493, 0.16329480707645416, 0.2967982292175293, 0.11020579189062119, 0.007357585243880749, -0.4906769096851349, -0.17888383567333221, 0.23809300363063812, 0.14337438344955444, -0.24976634979248047, -0.18358305096626282, 0.3590719699859619, 0.144932821393013, -0.3770846724510193, -0.47805431485176086, -0.2569272816181183, 0.21298792958259583, -0.27781951427459717, 0.2787252962589264, -0.1515137106180191, -0.4487256407737732, -0.2847849726676941, -0.1748635470867157, -0.1372946798801422, -0.22568155825138092, 0.2676302492618561, -0.2786775231361389, 0.07919499278068542, 0.060309261083602905, 0.11532829701900482, 0.28105178475379944, -0.3082815706729889, 0.4000151455402374, -0.1465575098991394, -0.2746138572692871, -0.5887212157249451, -0.0012312282342463732, -0.4473211467266083, 0.07784713804721832, 0.2033812701702118, -0.1895957887172699, -0.40717121958732605, 0.010083244182169437, -0.2798159718513489, -0.04986707121133804, -0.016584817320108414, -0.051956936717033386, 0.15740810334682465, -0.027649173513054848, -0.2775496244430542, 0.32615774869918823, -0.0807923898100853, 0.11196357011795044, -0.012451344169676304, 0.04372154921293259, -0.17878450453281403, 0.13604949414730072, -0.4149355888366699, -0.2756355106830597, -0.046578310430049896, 0.18764786422252655, 0.24553647637367249, 0.15911677479743958, 0.11081832647323608, 0.4958164393901825, -0.09896057844161987, 0.019426379352808, -0.13185946643352509, 0.2323000729084015, -0.1400013566017151, -0.25378844141960144, 0.14102287590503693, 0.1477815955877304, -0.10400771349668503, -0.0014566507888957858, 0.0027142735198140144, -0.006684727035462856, -0.1398129165172577, -0.3399144411087036, 0.06743621081113815, 0.24945342540740967, -0.17038707435131073, -0.09085991978645325, 0.05150019749999046, 0.021941984072327614, 0.13298282027244568, 0.21892288327217102, -0.05860000476241112, 0.07187723368406296, 0.35120782256126404, -0.18908260762691498, 0.3821304142475128, -0.29826098680496216, 0.1768518090248108, -0.10047958791255951, 0.03707631304860115, 0.45770812034606934, -0.05185437202453613, -0.005830128211528063, -0.04743757098913193, -0.029182367026805878, 0.02319258451461792, 0.19065584242343903, 0.32728102803230286, 0.11975561082363129, -0.2978256940841675, 0.3343200981616974, 0.05459702014923096, 0.04057399928569794, -0.061386588960886, 0.281806617975235, 0.1798580437898636, -0.021822288632392883, -0.08165843039751053, -0.1425868272781372, 0.03087938018143177, 0.10000356286764145, -0.18865379691123962, -0.2083340585231781, 0.037570204585790634, -0.1164189800620079, -0.08895418047904968, 0.025618718937039375, 0.1456848382949829, -0.5623367428779602, -0.26457253098487854, -0.291038453578949, -0.09640438109636307, 0.026838280260562897, 0.23490546643733978, 0.270201712846756, 0.09196913987398148, 0.27876564860343933, 0.3079720139503479, 0.5773768424987793, -0.4541921019554138, 0.10105308145284653, 0.2169911414384842, 0.4372354745864868, -0.3506581783294678, -0.26707738637924194, -0.4310547709465027, -0.24279335141181946, 0.592448353767395, 0.1837879717350006, 0.06316877901554108, -0.17830614745616913, 0.44047749042510986, 0.21135671436786652, -0.16711726784706116, -0.009117459878325462, -0.3676315248012543, -0.28013360500335693, 0.1514921486377716, -0.22551818192005157, 0.0998726338148117, -0.23161685466766357, -0.1847836673259735, 0.03779476135969162, -0.029949938878417015, -0.038695767521858215, 0.2709367871284485, 0.17193390429019928, 0.06625888496637344, 0.208499014377594, 0.05248022824525833, 0.1953190416097641, 0.23767155408859253, -0.19297678768634796, 0.47535088658332825, -0.10046505928039551, -0.5855261087417603, -0.05824272334575653, -0.191586434841156, 0.6324009299278259, 0.05031103640794754, 0.16608735918998718, -0.2600190341472626, -0.2560628056526184, 0.02576659433543682, -0.04163375869393349, 0.1995997428894043, 0.32176673412323, 0.05998776853084564, -0.24063006043434143, -0.4686696529388428, 0.623540997505188, 0.16899162530899048, -0.23752619326114655, 0.07834381610155106, -0.44310110807418823, -0.335073322057724, 0.22479212284088135, 0.2869842052459717, 0.8856853246688843, 0.12620258331298828, 0.36618658900260925, 0.3354710340499878, -0.3373045027256012, 0.8705613613128662, -0.1879984587430954, 0.012724829837679863, -0.30581003427505493, 0.11859962344169617, 0.07003742456436157, 0.08234793692827225, -0.2279144674539566, 0.6563934683799744, 0.22386053204536438, 0.3990522027015686, -0.09816811233758926, -0.15518048405647278, 0.2914144992828369, 0.10504823178052902, 0.5124005675315857, -0.06647560745477676, -0.4091569483280182, 0.035026103258132935, 0.01521604135632515, 0.028725573793053627, -0.33840927481651306, 0.09990711510181427, 0.09556347876787186, -0.07263892143964767, 0.13506168127059937, -0.08361069858074188, 0.31463849544525146, 0.08523072302341461, 0.20307867228984833, 0.04096416383981705, -0.21028250455856323, 0.38416627049446106, 0.6445978879928589, 0.10137541592121124, 0.01589949056506157, -0.07584245502948761, 0.10294211655855179, 0.19863314926624298, -0.00997717585414648, 0.15619167685508728, 0.3324309289455414, -0.03767990320920944, -0.1238604336977005, -0.0617920383810997, -0.08712156116962433, 0.34064823389053345, -0.4597950279712677, -0.013241943903267384, -0.2539176940917969, 0.09863010793924332, 0.19668321311473846, 0.12011986970901489, 0.11160203069448471, -0.206735298037529, 0.09159436076879501, 0.21020908653736115, -0.25339823961257935, -0.13354279100894928, -0.08844809234142303, -0.2359195202589035, -0.20245788991451263, 0.28686457872390747, 0.24571992456912994, 0.12320856750011444, 0.250273734331131, -0.1167791411280632, 0.07696549594402313, -0.06726934760808945, 0.06561487913131714, 0.1356368213891983, -0.4576822519302368, 0.10382135212421417, 0.09519750624895096, -0.03798992931842804, -0.08269037306308746, 0.396237850189209, 0.152685284614563, 0.04664836823940277, 0.12682901322841644, -0.009704220108687878, -0.3443370759487152, -0.13379763066768646, -0.14814575016498566, 0.21087844669818878, 0.08223219960927963, 0.20095610618591309, 0.055829357355833054, -0.23241794109344482, -0.23613929748535156, -0.23935015499591827, -0.3015696406364441, 0.45749765634536743, 0.036684051156044006, 0.08519535511732101, -0.29452577233314514, 0.11025934666395187, 0.09990887343883514, -0.12459593266248703, 0.126204252243042, -0.11135408282279968, -0.09420307725667953, 0.1619901955127716, 0.10656806826591492, -0.05922943726181984, 0.009596343152225018, 0.3082391023635864, -0.22138337790966034, 0.10640320926904678, -0.15347321331501007, 0.0817430168390274, 0.21119698882102966, 0.7996437549591064, -0.3170276880264282, -0.009532105177640915, 0.0008488064049743116, -0.08024914562702179, -0.08868853747844696, -0.02541346102952957, 0.15480540692806244, 0.018429305404424667, 0.2977451682090759, -0.048509880900382996, -0.3181406557559967, -0.040938541293144226, -0.4460303485393524, -0.09159760922193527, -0.032710038125514984, -0.36586013436317444, 0.5111552476882935, 0.21651524305343628, 0.08758542686700821, 0.36265283823013306, -0.240074023604393, -0.12910844385623932, 0.3561386466026306, 0.17675620317459106, -0.14727112650871277, -0.10372595489025116, 0.27478834986686707, 0.11898605525493622, -0.2216215431690216, 0.2710150182247162, -0.011452347971498966, -0.11412345618009567, -0.014825855381786823, -0.17530393600463867, 0.0686899870634079, -0.39682117104530334, 0.004042697139084339, 0.3071712553501129, -0.14141936600208282, 0.030705805867910385, 0.07073014229536057, -0.06785371899604797, -0.012754754163324833, 0.35859566926956177, -0.08021251857280731, 0.350401908159256, 0.10297698527574539, 0.06368308514356613, -0.2606745958328247, 0.06313202530145645, -0.26401862502098083, 0.3453329801559448, -0.5192772150039673, 0.28978395462036133, -0.020826924592256546, 0.12851651012897491, -0.1185198575258255, -0.1662268191576004, 0.22121359407901764, 0.11086534708738327, -0.2267233282327652, -0.24588020145893097, -0.6276057958602905, 0.27414920926094055, -0.14370226860046387, 0.21107983589172363, -0.15007536113262177, 0.028396261855959892, 0.15617635846138, 0.12123078852891922, 0.029134873300790787, -0.4544227123260498, -0.30732500553131104, 0.18856075406074524, 0.42315059900283813, -0.146037295460701, -0.04799286276102066, -0.07897926867008209, -0.07878212630748749, 0.014900158159434795, -0.16474805772304535, 0.24164283275604248, 0.03918525576591492, 0.30863329768180847, -0.015748536214232445, -0.3157167136669159, -0.04131536930799484, -0.19690489768981934, 0.0004331552772782743, 0.378450870513916, 0.06294789165258408, 0.17169006168842316, -0.015363570302724838, -0.04192470759153366, 0.6420860290527344, -0.1040765717625618, -0.013765009120106697, -0.547520637512207, 0.43222156167030334, -0.04435174912214279, -0.47408655285835266, -0.2627462148666382, 0.00818860437721014, -0.20355981588363647, 0.16647319495677948, 0.11107742041349411, 0.2830697298049927, 0.12227749824523926, -0.1812734454870224, 0.036266665905714035, -0.2098817527294159, 0.3790421783924103, 0.1606834977865219, 0.027195973321795464, -0.1502494066953659, -0.0526471771299839, -0.37678390741348267, -0.01111418567597866, -0.2767833173274994, -0.07021079957485199, 0.2621847689151764, -0.04104090481996536, -0.35542944073677063, -0.03569158911705017, -0.1404941976070404, 0.2957127094268799, -0.0004412806301843375, -0.016113491728901863, -0.10045013576745987, -0.01705990545451641, -0.2887953519821167, 0.2746639847755432, 0.07900380343198776, 0.011628462933003902, 0.06865429878234863, -0.24503783881664276, -0.047418925911188126, 0.04848537594079971, 0.20228813588619232, -0.041374772787094116, 0.36975032091140747, 0.12136024981737137, 0.08222037553787231, 0.3480968773365021, 0.2035215049982071, 0.04093989357352257, -0.1323339194059372, 0.08101444691419601, -0.2230851799249649, 0.17898434400558472, -0.1970827430486679, 0.20605577528476715, -0.208886981010437, 0.21609625220298767, 0.009711403399705887, -0.1077621802687645, 0.4602600038051605, 0.11122502386569977, -0.5706875324249268, 0.38103821873664856, -0.1481636017560959, 0.2599344849586487, 0.10891310125589371, 0.15226909518241882, 0.2566177546977997, -0.3218111991882324, -0.3548787832260132, -0.2834208011627197, 0.34489068388938904, -0.40804213285446167, -0.12701186537742615, -0.16887769103050232, 0.3636051416397095, 0.19030609726905823, -0.07086135447025299, -0.7023308873176575, -0.16944709420204163, 0.574787437915802, -0.06463507562875748, -0.5643622875213623, 0.08759000897407532, 0.24182488024234772, -0.04987308755517006, 0.02937202714383602, -0.08776087313890457, 0.15848204493522644, 0.12317413836717606, 0.3682657480239868, -0.5045647025108337 ]
https://github.com/huggingface/datasets/issues/296
snli -1 labels
Yes the original dataset is missing some labels maybe @sleepinyourhat , @gangeli can correct me if I'm wrong For my personal opinion at least if you want your model to learn to predict no answer (-1) you can leave it their but otherwise you can discard them.
I'm trying to train a model on the SNLI dataset. Why does it have so many -1 labels? ``` import nlp from collections import Counter data = nlp.load_dataset('snli')['train'] print(Counter(data['label'])) Counter({0: 183416, 2: 183187, 1: 182764, -1: 785}) ```
47
snli -1 labels I'm trying to train a model on the SNLI dataset. Why does it have so many -1 labels? ``` import nlp from collections import Counter data = nlp.load_dataset('snli')['train'] print(Counter(data['label'])) Counter({0: 183416, 2: 183187, 1: 182764, -1: 785}) ``` Yes the original dataset is missing some labels maybe @sleepinyourhat , @gangeli can correct me if I'm wrong For my personal opinion at least if you want your model to learn to predict no answer (-1) you can leave it their but otherwise you can discard them.
[ 0.412067174911499, -0.2979552745819092, -0.022575795650482178, 0.21812216937541962, 0.1907145231962204, 0.20889496803283691, 0.5165289640426636, 0.15536217391490936, 0.18814323842525482, 0.18189243972301483, -0.1560337245464325, 0.3227594792842865, -0.2433936893939972, 0.17844180762767792, 0.23894880712032318, 0.060684531927108765, 0.3916952311992645, 0.32878348231315613, 0.3345847427845001, -0.5028907656669617, -0.2930358946323395, 0.06340017169713974, -0.17345046997070312, 0.3559277653694153, -0.453777015209198, 0.274711549282074, -0.0779212936758995, -0.31430143117904663, -0.05796840786933899, -0.6953613758087158, 0.23572254180908203, -0.09171705693006516, 0.3343624472618103, -0.1888730823993683, -0.00011943819845328107, -0.2986065745353699, 0.03209012746810913, -0.0003683684626594186, -0.4734792113304138, -0.07678423821926117, -0.19252488017082214, -0.250167578458786, 0.306270033121109, -0.15139465034008026, -0.1258654147386551, -0.21643902361392975, 0.19403967261314392, 0.06852911412715912, 0.036586515605449677, 0.31351932883262634, 0.11145394295454025, -0.03597057983279228, -0.42040929198265076, 0.31922128796577454, 0.3524693250656128, -0.205646812915802, 0.059345223009586334, 0.05031539499759674, -0.02998785674571991, -0.09586513042449951, 0.47622352838516235, 0.48959335684776306, -0.1497647613286972, -0.25771358609199524, 0.17881464958190918, 0.08833179622888565, 0.37788626551628113, -0.4707133173942566, 0.03887655958533287, 0.18148313462734222, 0.22182877361774445, -0.23974646627902985, -0.26646149158477783, -0.42410823702812195, 0.2933409512042999, -0.339140385389328, -0.17739418148994446, 0.18820616602897644, 0.3220190405845642, 0.05771857872605324, -0.18282051384449005, -0.12960068881511688, -0.08961854130029678, 0.13909602165222168, 0.15693514049053192, 0.7602540254592896, 0.14065608382225037, 0.238084614276886, 0.28968897461891174, 0.24942940473556519, -0.12650422751903534, -0.13248267769813538, 0.007853113114833832, 0.4254179894924164, -0.4600965976715088, -0.23750010132789612, -0.06902722269296646, 0.020621394738554955, -0.0608249269425869, 0.18920640647411346, -0.07393324375152588, -0.21070340275764465, -0.0627012848854065, -0.0006543644703924656, 0.17916695773601532, 0.03484395518898964, 0.40930989384651184, 0.366991251707077, -0.02775537222623825, -0.23074683547019958, 0.28788745403289795, -0.033375564962625504, -0.3174923062324524, 0.05336453393101692, 0.3976803719997406, -0.08202724903821945, -0.1803349107503891, -0.14354990422725677, -0.05712191015481949, 0.011618029326200485, -0.49934622645378113, 0.027471346780657768, 0.11463764309883118, -0.17530183494091034, 0.12982025742530823, 0.3081144690513611, -0.1446695774793625, 0.06426294893026352, -0.16551481187343597, -0.5688720345497131, -0.14104653894901276, 0.06965236365795135, -0.15434405207633972, -0.08871657401323318, 0.17150622606277466, -0.1474176049232483, 0.22523465752601624, 0.037958305329084396, -0.41951608657836914, -0.10140529274940491, 0.35980772972106934, -0.008805925957858562, 0.07239562273025513, 0.3655069172382355, -0.28055456280708313, 0.5722591280937195, -0.0470123216509819, -0.1811729073524475, -0.056751154363155365, -0.013101316057145596, -0.24386045336723328, -0.23726513981819153, 0.03397442400455475, 0.17563962936401367, -0.07299378514289856, -0.19551262259483337, 0.02290201187133789, 0.08382268995046616, 0.0013998554786667228, -0.2158326655626297, 0.1908331662416458, -0.306479811668396, -0.01596875675022602, -0.051163312047719955, 0.12759989500045776, 0.04893580824136734, -0.18825268745422363, -0.1532481461763382, -0.031197180971503258, -0.251091867685318, 0.37651118636131287, 0.3837750256061554, -0.008593345992267132, -0.009601021185517311, 0.02939785085618496, 0.056449055671691895, 0.48590701818466187, -0.29258307814598083, -0.36113783717155457, 0.12709571421146393, -0.13218499720096588, -0.3597754240036011, -0.06241147965192795, 0.6516441702842712, -0.10791203379631042, 0.038941241800785065, -0.011344000697135925, -0.23585966229438782, 0.06706669181585312, -0.14160193502902985, -0.38733118772506714, 0.01477464847266674, 0.4654179811477661, 0.27211323380470276, 0.02656596712768078, 0.03152695670723915, -0.5151118040084839, 0.0976451188325882, 0.33382686972618103, -0.07229822129011154, 0.237500861287117, 0.1364918202161789, 0.28282761573791504, 0.0465548038482666, 0.09209578484296799, 0.023843538016080856, -0.3373570442199707, 0.14596128463745117, -0.13826090097427368, 0.3534272313117981, 0.46475929021835327, -0.008607075549662113, -0.05769737809896469, -0.15005722641944885, -0.14641009271144867, -0.17855606973171234, 0.0540158636868, 0.1326821893453598, 0.09548552334308624, -0.007223902270197868, -0.19511297345161438, 0.08663772791624069, -0.24948838353157043, 0.09132041782140732, -0.3926182687282562, 0.015048199333250523, 0.11656232178211212, 0.10160943120718002, -0.07975362986326218, 0.2640577554702759, 0.27952128648757935, 0.12976481020450592, 0.13587811589241028, 0.0003685006231535226, -0.1316744089126587, -0.29798126220703125, 0.12325174361467361, 0.37003034353256226, 0.14343298971652985, -0.3118866980075836, 0.04999770224094391, 0.3983568251132965, 0.09203045070171356, -0.2388043850660324, -0.048408668488264084, 0.1889573484659195, -0.13474848866462708, 0.24454639852046967, -0.30071577429771423, 0.09920331835746765, 0.09710049629211426, 0.04033486545085907, -0.32377493381500244, -0.16824036836624146, 0.14575788378715515, -0.33252668380737305, 0.17933891713619232, 0.3762757182121277, -0.3238818943500519, 0.01906849816441536, 0.1378280371427536, -0.15288646519184113, -0.04619847983121872, 0.1275489330291748, -0.1776396632194519, -0.10515077412128448, 0.28494539856910706, 0.09558109194040298, 0.2118731290102005, 0.24634204804897308, -0.0961582288146019, 0.023163840174674988, -0.4363017976284027, -0.19024524092674255, 0.16169396042823792, 0.16754604876041412, -0.17876343429088593, -0.14619328081607819, 0.30875423550605774, 0.1443949043750763, -0.27469995617866516, -0.4500885009765625, -0.30607396364212036, 0.25107502937316895, -0.2683727741241455, 0.16342693567276, -0.14129173755645752, -0.5088823437690735, -0.2976737320423126, -0.245663121342659, -0.19448697566986084, -0.224361389875412, 0.2605401277542114, -0.3658294677734375, 0.13404487073421478, 0.05149519070982933, 0.01582946442067623, 0.22251881659030914, -0.23645782470703125, 0.35483723878860474, -0.3228274881839752, -0.2669396996498108, -0.38622114062309265, -0.04147684946656227, -0.37489813566207886, 0.045338936150074005, 0.2227778434753418, -0.19616977870464325, -0.39110174775123596, 0.0305591132491827, -0.15716639161109924, -0.07258178293704987, -0.12450449168682098, -0.1254420429468155, 0.1159210205078125, -0.013274230994284153, -0.25718972086906433, 0.3905099928379059, 0.014368249103426933, 0.13177205622196198, 0.009425017051398754, 0.017265910282731056, -0.2333175241947174, 0.1317775696516037, -0.3792225122451782, -0.25306272506713867, -0.1266164630651474, 0.24661602079868317, 0.10637824237346649, 0.0922701507806778, 0.13429886102676392, 0.401740163564682, -0.1403212547302246, 0.04625298082828522, -0.11535828560590744, 0.22296567261219025, -0.1725618690252304, -0.32509171962738037, 0.11195535212755203, 0.3089746832847595, -0.10827465355396271, 0.04924716800451279, 0.0864281952381134, 0.03893454000353813, -0.31063035130500793, -0.4128582775592804, 0.13070277869701385, 0.18526148796081543, -0.15540359914302826, -0.09664078056812286, -0.021869003772735596, -0.028447914868593216, 0.25818583369255066, 0.12514731287956238, -0.06090991571545601, 0.01540418341755867, 0.2919616401195526, -0.14036986231803894, 0.5043456554412842, -0.318820595741272, 0.18676866590976715, -0.22054021060466766, -0.03582433611154556, 0.5008663535118103, -0.07418311387300491, 0.052162088453769684, -0.00287638115696609, -0.07132313400506973, -0.09262534230947495, -0.005719607230275869, 0.31700101494789124, 0.2775489091873169, -0.1601705402135849, 0.3516402542591095, -0.046226464211940765, 0.04963860660791397, -0.07318728417158127, 0.1602066159248352, 0.18347187340259552, 0.11610192805528641, -0.038303475826978683, -0.11002828180789948, -0.05713817849755287, -0.02476106770336628, -0.22629697620868683, -0.18000991642475128, -0.0809917226433754, -0.16558252274990082, -0.05474678799510002, 0.07270905375480652, 0.18596138060092926, -0.47481968998908997, -0.33187276124954224, -0.24253004789352417, -0.1980275809764862, 0.04165193438529968, 0.1889449805021286, 0.16113226115703583, 0.23301497101783752, 0.3268893361091614, 0.44577908515930176, 0.46387922763824463, -0.3988006114959717, 0.04172464460134506, 0.18745513260364532, 0.46241387724876404, -0.3448837101459503, -0.13337385654449463, -0.37702369689941406, -0.24640648066997528, 0.5334621667861938, 0.2832223176956177, 0.008938223123550415, -0.3169465959072113, 0.47112801671028137, 0.21872927248477936, -0.21867460012435913, -0.16844259202480316, -0.4044206738471985, -0.1621641218662262, 0.18676596879959106, -0.1542462706565857, -0.006006200797855854, -0.11265219002962112, -0.10678870975971222, 0.026667147874832153, 0.07246048003435135, -0.017595523968338966, 0.18455348908901215, 0.1021755039691925, -0.02632508985698223, 0.22139568626880646, -0.06498122215270996, 0.20340031385421753, 0.2449343353509903, -0.19374017417430878, 0.451811283826828, -0.041084274649620056, -0.5115537047386169, -0.03359018266201019, -0.09071119874715805, 0.5892897844314575, -0.032584745436906815, 0.16089388728141785, -0.15522845089435577, -0.1838807910680771, 0.05989929661154747, -0.10856041312217712, 0.05050565302371979, 0.30035400390625, 0.08905220031738281, -0.3902946412563324, -0.43636906147003174, 0.722856879234314, 0.08156315982341766, -0.1719101369380951, 0.005936230067163706, -0.24867981672286987, -0.2880954146385193, 0.2744544744491577, 0.34582462906837463, 0.9324262738227844, -0.07126273214817047, 0.20726116001605988, 0.29287150502204895, -0.36469870805740356, 0.8622068762779236, -0.09751952439546585, -0.08979493379592896, -0.2266918420791626, 0.11354513466358185, 0.021935896947979927, 0.1276336908340454, -0.32453298568725586, 0.6223570704460144, 0.22749952971935272, 0.40537840127944946, -0.041842930018901825, -0.20471584796905518, 0.26404184103012085, 0.0660807266831398, 0.642203688621521, -0.05330357328057289, -0.4470772445201874, 0.03909510001540184, -0.13350364565849304, 0.12823615968227386, -0.2708441913127899, 0.07037952542304993, 0.10404644161462784, 0.009086117148399353, 0.04782157018780708, -0.19624939560890198, 0.30358049273490906, -0.02763461135327816, 0.21797381341457367, 0.07706435024738312, -0.17336465418338776, 0.42822152376174927, 0.6543005108833313, 0.11192672699689865, -0.02828202024102211, -0.12024703621864319, 0.08823607116937637, 0.17866350710391998, 0.033064428716897964, 0.24907253682613373, 0.28873589634895325, -0.02337430976331234, -0.20415784418582916, -0.06593972444534302, -0.0300762802362442, 0.31038331985473633, -0.41209298372268677, -0.046102892607450485, -0.1786431223154068, 0.1646091789007187, 0.13622038066387177, 0.07370937615633011, 0.15474529564380646, -0.2045823633670807, 0.10592939704656601, 0.16576920449733734, -0.13476669788360596, -0.12267859280109406, 0.00020585392485372722, -0.3513309061527252, -0.23873214423656464, 0.2964491844177246, 0.2478322982788086, 0.17471779882907867, 0.31375113129615784, -0.13126079738140106, -0.055410195142030716, -0.13257746398448944, 0.05156509205698967, 0.15218868851661682, -0.40575268864631653, 0.03363161161541939, 0.2777857482433319, 0.04192756861448288, -0.11350551247596741, 0.3011678159236908, 0.1136474683880806, -0.01916664093732834, 0.1740306168794632, -0.06119004264473915, -0.38746416568756104, -0.11789336800575256, -0.210326686501503, 0.14813299477100372, 0.09967362880706787, 0.12589365243911743, 0.10873065888881683, -0.10698108375072479, -0.2287210077047348, -0.2903219759464264, -0.38008204102516174, 0.353094220161438, 0.04649641737341881, 0.1237655058503151, -0.3487105071544647, 0.12567350268363953, 0.1340162456035614, -0.2506501376628876, 0.12342816591262817, -0.09795178472995758, -0.08344755321741104, 0.16210924088954926, 0.14715290069580078, -0.03781416639685631, -0.09731870144605637, 0.2508465051651001, -0.10848368704319, 0.0788036659359932, -0.1278069168329239, 0.11973189562559128, 0.28410428762435913, 0.9013699889183044, -0.2116038054227829, -0.1290845274925232, -0.07343524694442749, 0.00205697538331151, -0.05500027537345886, -0.11382602900266647, 0.16743488609790802, 0.0308064091950655, 0.3321894407272339, -0.03691825643181801, -0.40461716055870056, -0.0674339309334755, -0.41314205527305603, -0.07541665434837341, 0.029155712574720383, -0.36712324619293213, 0.5702586770057678, 0.3725833594799042, 0.07096955180168152, 0.21557939052581787, -0.21567632257938385, -0.13707824051380157, 0.3358874022960663, 0.1587321013212204, -0.1546141356229782, -0.0737888440489769, 0.31209084391593933, 0.23776313662528992, -0.20222581923007965, 0.16584354639053345, -0.11474236845970154, -0.24522164463996887, 0.02379491552710533, -0.13201695680618286, 0.09835659712553024, -0.46273812651634216, -0.002006818074733019, 0.2875800132751465, 0.021135007962584496, -0.03863590210676193, 0.16887278854846954, -0.06032013148069382, -0.08921390771865845, 0.3625584542751312, -0.0979539006948471, 0.28606459498405457, 0.13898606598377228, 0.0911918431520462, -0.2694694399833679, 0.21166615188121796, -0.2799438238143921, 0.39018070697784424, -0.6274666786193848, 0.09556668251752853, -0.03428542986512184, 0.16060930490493774, -0.06451811641454697, -0.07606209814548492, 0.3054055869579315, 0.19589662551879883, -0.20976899564266205, -0.19104257225990295, -0.7020378708839417, 0.31459593772888184, -0.1027282327413559, 0.19353236258029938, -0.20565257966518402, -0.04554439336061478, 0.1961165815591812, 0.15185829997062683, 0.009951340965926647, -0.40938833355903625, -0.33785101771354675, 0.3046700060367584, 0.41967886686325073, -0.14120958745479584, -0.0353095643222332, -0.04909859225153923, -0.042377881705760956, 0.039334241300821304, -0.12895765900611877, 0.1613069474697113, 0.09814903140068054, 0.288237065076828, -0.014103628695011139, -0.29826077818870544, -0.07619128376245499, -0.12932875752449036, 0.06363441050052643, 0.3996809422969818, 0.11835073679685593, 0.12230628728866577, -0.012567883357405663, -0.019114335998892784, 0.5593016743659973, -0.16126537322998047, 0.04041532054543495, -0.4187416434288025, 0.38361436128616333, -0.0556759275496006, -0.42989715933799744, -0.31605610251426697, -0.012161138467490673, -0.16649559140205383, 0.18038055300712585, 0.04939809441566467, 0.22561587393283844, 0.19699998199939728, -0.2624005079269409, 0.03643025457859039, -0.21234141290187836, 0.3262479305267334, 0.11400126665830612, -0.022119060158729553, -0.18661439418792725, 0.038924697786569595, -0.2679360508918762, -0.11434577405452728, -0.1252751350402832, -0.09900840371847153, 0.2258652150630951, -0.0921943411231041, -0.39237281680107117, -0.05366719886660576, -0.06158429756760597, 0.37324631214141846, -0.03541939705610275, 0.0634637400507927, -0.09168881922960281, 0.03901888057589531, -0.27570581436157227, 0.29176414012908936, 0.025966702029109, 0.14610221982002258, 0.07743457704782486, -0.1551797091960907, -0.0456007719039917, 0.08817537128925323, 0.24809595942497253, -0.03570486232638359, 0.43330854177474976, 0.08866757154464722, 0.06692148745059967, 0.4264250695705414, 0.18095532059669495, 0.10415497422218323, -0.10602535307407379, 0.07582508027553558, -0.2426319718360901, 0.08497843891382217, -0.09507019072771072, 0.23591279983520508, -0.11516864597797394, 0.2538590729236603, -0.004419158678501844, -0.11711928993463516, 0.21433007717132568, 0.04352666065096855, -0.5104150772094727, 0.2887328565120697, 0.06548850983381271, 0.16749997437000275, 0.015192757360637188, -0.01620074175298214, 0.36706674098968506, -0.1828431487083435, -0.27238330245018005, -0.27470797300338745, 0.3082427680492401, -0.23241305351257324, 0.014117632992565632, 0.03680908679962158, 0.3590262234210968, 0.22868195176124573, -0.08324847370386124, -0.7226814031600952, -0.15639549493789673, 0.5330834984779358, 0.05190664529800415, -0.5233266949653625, 0.07320162653923035, 0.20853573083877563, 0.11356455087661743, 0.022463299334049225, -0.04363083466887474, 0.19752420485019684, 0.2256670892238617, 0.3895883560180664, -0.4311519265174866 ]
https://github.com/huggingface/datasets/issues/294
Cannot load arxiv dataset on MacOS?
I couldn't replicate this issue on my macbook :/ Could you try to play with different encodings in `with open(path, encoding=...) as f` in scientific_papers.py:L108 ?
I am having trouble loading the `"arxiv"` config from the `"scientific_papers"` dataset on MacOS. When I try loading the dataset with: ```python arxiv = nlp.load_dataset("scientific_papers", "arxiv") ``` I get the following stack trace: ```bash JSONDecodeError Traceback (most recent call last) <ipython-input-2-8e00c55d5a59> in <module> ----> 1 arxiv = nlp.load_dataset("scientific_papers", "arxiv") ~/miniconda3/envs/t2t/lib/python3.7/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) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/miniconda3/envs/t2t/lib/python3.7/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) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 662 663 generator = self._generate_examples(**split_generator.gen_kwargs) --> 664 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False): 665 example = self.info.features.encode_example(record) 666 writer.write(example) ~/miniconda3/envs/t2t/lib/python3.7/site-packages/tqdm/std.py in __iter__(self) 1106 fp_write=getattr(self.fp, 'write', sys.stderr.write)) 1107 -> 1108 for obj in iterable: 1109 yield obj 1110 # Update and possibly print the progressbar. ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/datasets/scientific_papers/107a416c0e1958cb846f5934b5aae292f7884a5b27e86af3f3ef1a093e058bbc/scientific_papers.py in _generate_examples(self, path) 114 # "section_names": list[str], list of section names. 115 # "sections": list[list[str]], list of sections (list of paragraphs) --> 116 d = json.loads(line) 117 summary = "\n".join(d["abstract_text"]) 118 # In original paper, <S> and </S> are not used in vocab during training ~/miniconda3/envs/t2t/lib/python3.7/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 346 parse_int is None and parse_float is None and 347 parse_constant is None and object_pairs_hook is None and not kw): --> 348 return _default_decoder.decode(s) 349 if cls is None: 350 cls = JSONDecoder ~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in decode(self, s, _w) 335 336 """ --> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 338 end = _w(s, end).end() 339 if end != len(s): ~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in raw_decode(self, s, idx) 351 """ 352 try: --> 353 obj, end = self.scan_once(s, idx) 354 except StopIteration as err: 355 raise JSONDecodeError("Expecting value", s, err.value) from None JSONDecodeError: Unterminated string starting at: line 1 column 46983 (char 46982) 163502 examples [02:10, 2710.68 examples/s] ``` I am not sure how to trace back to the specific JSON file that has the "Unterminated string". Also, I do not get this error on colab so I suspect it may be MacOS specific. Copy pasting the relevant lines from `transformers-cli env` below: - Platform: Darwin-19.5.0-x86_64-i386-64bit - Python version: 3.7.5 - PyTorch version (GPU?): 1.5.0 (False) - Tensorflow version (GPU?): 2.2.0 (False) Any ideas?
26
Cannot load arxiv dataset on MacOS? I am having trouble loading the `"arxiv"` config from the `"scientific_papers"` dataset on MacOS. When I try loading the dataset with: ```python arxiv = nlp.load_dataset("scientific_papers", "arxiv") ``` I get the following stack trace: ```bash JSONDecodeError Traceback (most recent call last) <ipython-input-2-8e00c55d5a59> in <module> ----> 1 arxiv = nlp.load_dataset("scientific_papers", "arxiv") ~/miniconda3/envs/t2t/lib/python3.7/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) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/miniconda3/envs/t2t/lib/python3.7/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) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 662 663 generator = self._generate_examples(**split_generator.gen_kwargs) --> 664 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False): 665 example = self.info.features.encode_example(record) 666 writer.write(example) ~/miniconda3/envs/t2t/lib/python3.7/site-packages/tqdm/std.py in __iter__(self) 1106 fp_write=getattr(self.fp, 'write', sys.stderr.write)) 1107 -> 1108 for obj in iterable: 1109 yield obj 1110 # Update and possibly print the progressbar. ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/datasets/scientific_papers/107a416c0e1958cb846f5934b5aae292f7884a5b27e86af3f3ef1a093e058bbc/scientific_papers.py in _generate_examples(self, path) 114 # "section_names": list[str], list of section names. 115 # "sections": list[list[str]], list of sections (list of paragraphs) --> 116 d = json.loads(line) 117 summary = "\n".join(d["abstract_text"]) 118 # In original paper, <S> and </S> are not used in vocab during training ~/miniconda3/envs/t2t/lib/python3.7/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 346 parse_int is None and parse_float is None and 347 parse_constant is None and object_pairs_hook is None and not kw): --> 348 return _default_decoder.decode(s) 349 if cls is None: 350 cls = JSONDecoder ~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in decode(self, s, _w) 335 336 """ --> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 338 end = _w(s, end).end() 339 if end != len(s): ~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in raw_decode(self, s, idx) 351 """ 352 try: --> 353 obj, end = self.scan_once(s, idx) 354 except StopIteration as err: 355 raise JSONDecodeError("Expecting value", s, err.value) from None JSONDecodeError: Unterminated string starting at: line 1 column 46983 (char 46982) 163502 examples [02:10, 2710.68 examples/s] ``` I am not sure how to trace back to the specific JSON file that has the "Unterminated string". Also, I do not get this error on colab so I suspect it may be MacOS specific. Copy pasting the relevant lines from `transformers-cli env` below: - Platform: Darwin-19.5.0-x86_64-i386-64bit - Python version: 3.7.5 - PyTorch version (GPU?): 1.5.0 (False) - Tensorflow version (GPU?): 2.2.0 (False) Any ideas? I couldn't replicate this issue on my macbook :/ Could you try to play with different encodings in `with open(path, encoding=...) as f` in scientific_papers.py:L108 ?
[ -0.05814090371131897, 0.0877690464258194, -0.04190986976027489, 0.18866907060146332, 0.21789687871932983, 0.045469772070646286, -0.024187324568629265, 0.36161747574806213, 0.08156910538673401, -0.18188218772411346, -0.050524137914180756, 0.6910574436187744, -0.1919909566640854, -0.21391341090202332, -0.10823022574186325, 0.009492449462413788, -0.1276046335697174, 0.011454314924776554, 0.11468036472797394, -0.11108400672674179, -0.12306897342205048, 0.19933085143566132, -0.15732447803020477, -0.09930583089590073, 0.40909531712532043, 0.09582999348640442, 0.1364864706993103, 0.39574870467185974, -0.002753898501396179, -0.3556492328643799, 0.13499048352241516, 0.02409527450799942, 0.21715876460075378, 0.5375881195068359, -0.00011070339678553864, 0.27181321382522583, 0.3134254217147827, -0.09398935735225677, -0.2043014019727707, -0.5840536952018738, -0.41151484847068787, -0.30663764476776123, 0.13350555300712585, -0.213688462972641, -0.03607167303562164, -0.2607659697532654, 0.12421458214521408, -0.15391726791858673, 0.32883259654045105, 0.3756515383720398, 0.20792196691036224, 0.07985033839941025, 0.38301020860671997, 0.11644233763217926, -0.06707192212343216, -0.0231343824416399, 0.0021167800296097994, 0.46498313546180725, 0.04228385537862778, 0.1263248771429062, 0.1612231731414795, 0.14481036365032196, -0.1489691585302353, 0.11279862374067307, 0.20924466848373413, -0.02966548688709736, -0.10750353336334229, -0.14368782937526703, 0.03752249479293823, 0.13045714795589447, 0.27215665578842163, -0.09744856506586075, -0.24030494689941406, 0.056409671902656555, 0.22180716693401337, -0.10190623998641968, 0.29518166184425354, 0.43008315563201904, -0.1124936044216156, 0.0761575922369957, -0.3062991499900818, -0.349758505821228, -0.4034617245197296, 0.4736580550670624, -0.02189750038087368, -0.11155746877193451, -0.20071902871131897, 0.20338749885559082, 0.15959389507770538, -0.24159307777881622, 0.03689621761441231, 0.09394800662994385, 0.17075565457344055, 0.11694604903459549, -0.4864802062511444, 0.2469763159751892, 0.07967282831668854, -0.3753710091114044, 0.0753830298781395, -0.1501469910144806, -0.10378067195415497, -0.0815441906452179, -0.28297626972198486, 0.272894024848938, 0.11201488226652145, 0.018602553755044937, -0.1558188498020172, -0.001816020580008626, 0.05823025852441788, -0.0125895319506526, -0.1686112880706787, 0.0329582616686821, -0.35958680510520935, -0.15404078364372253, -0.36273735761642456, -0.38012051582336426, 0.2619626224040985, -0.32074689865112305, 0.062184493988752365, -0.02503623627126217, -0.025042669847607613, 0.016877055168151855, 0.023844584822654724, 0.2284129112958908, -0.054267752915620804, 0.14219844341278076, 0.17162396013736725, 0.42962121963500977, -0.34669479727745056, 0.17580227553844452, -0.050975900143384933, 0.07547564059495926, -0.10979869216680527, -0.29682233929634094, 0.20440490543842316, 0.0846933126449585, 0.16359761357307434, -0.022583669051527977, 0.0854109674692154, -0.20162881910800934, 0.12524427473545074, 0.13397474586963654, -0.10179396718740463, 0.48088979721069336, 0.32998979091644287, 0.05649837851524353, 0.2672579884529114, 0.03862297162413597, -0.12501303851604462, 0.22153329849243164, -0.4679539203643799, -0.122761070728302, -0.2679331600666046, 0.162654310464859, -0.1997467279434204, -0.1317337602376938, -0.16055013239383698, -0.14329378306865692, 0.13793310523033142, 0.23946915566921234, -0.36348220705986023, -0.22936631739139557, 0.00013408168160822242, -0.33330097794532776, 0.24883690476417542, 0.039209820330142975, -0.31334489583969116, 0.16130322217941284, -0.10561536252498627, 0.14759603142738342, 0.28346437215805054, 0.36524030566215515, -0.2056615650653839, 0.14260241389274597, -0.025551073253154755, -0.11357063800096512, 0.35900065302848816, -0.3276829123497009, -0.11957605928182602, 0.0364849790930748, -0.1393849402666092, 0.07626935839653015, -0.07434327155351639, 0.023116612806916237, -0.18387876451015472, 0.2579208314418793, 0.20406191051006317, 0.27111977338790894, 0.08263731747865677, 0.03041844815015793, -0.18050047755241394, -0.20094384253025055, 0.4589858949184418, 0.35238319635391235, -0.08574280887842178, 0.029466992244124413, -0.07057181000709534, -0.07236593961715698, 0.11355161666870117, -0.09911772608757019, -0.3065352141857147, 0.2054905742406845, 0.012770715169608593, 0.05979049950838089, 0.06962493062019348, 0.12583841383457184, 0.166461780667305, 0.09673251211643219, 0.23967541754245758, 0.29656893014907837, -0.21590827405452728, 0.3827723562717438, -0.3872416913509369, 0.09267265349626541, -0.031039822846651077, 0.07113026827573776, 0.06565523147583008, 0.043967921286821365, -0.09347687661647797, 0.19505201280117035, -0.18202057480812073, 0.2183665931224823, -0.38070839643478394, -0.03710112348198891, -0.884393036365509, 0.05607537925243378, -0.11706503480672836, 0.11073508113622665, 0.2100992053747177, 0.14025519788265228, -0.11917833238840103, -0.24003417789936066, -0.11652103811502457, 0.21397870779037476, 0.29407861828804016, -0.06993107497692108, 0.22796817123889923, 0.04207894206047058, 0.05837436765432358, -0.3201344609260559, 0.2476842999458313, 0.017178453505039215, 0.045468129217624664, 0.09804685413837433, -0.24006234109401703, 0.3954664170742035, 0.08486457169055939, 0.18532302975654602, 0.14780408143997192, 0.13192632794380188, 0.4758424758911133, -0.006014757789671421, -0.02758491225540638, -0.008976285345852375, 0.4516295790672302, 0.18057803809642792, -0.3402882516384125, -0.1420488953590393, -0.18555939197540283, -0.0007573477341793478, 0.0775008276104927, 0.15927369892597198, -0.08404666930437088, 0.3020504117012024, -0.10745492577552795, 0.060756195336580276, -0.11801257729530334, 0.029121890664100647, 0.34010234475135803, 0.17099928855895996, -0.3174932599067688, 0.03752131760120392, -0.2074112445116043, -0.06406959146261215, 0.15766441822052002, 0.004249480552971363, 0.0024911495856940746, -0.15622299909591675, 0.13022403419017792, 0.11905727535486221, -0.2286057025194168, -0.2915286719799042, -0.014925127848982811, 0.403652161359787, -0.33745548129081726, 0.062464311718940735, -0.35343730449676514, -0.260183721780777, -0.054271966218948364, -0.1631038933992386, -0.16000261902809143, -0.20464976131916046, -0.11035097390413284, 0.1549532562494278, 0.19716811180114746, 0.15693944692611694, -0.3404223918914795, -0.06874649226665497, 0.2280447632074356, -0.2127586454153061, 0.21781907975673676, -0.3201690912246704, -0.09057365357875824, 0.09150397777557373, 0.2567334473133087, 0.11535705626010895, 0.216878280043602, -0.07115211337804794, -0.19917015731334686, 0.19511480629444122, -0.3111150562763214, -0.06906353682279587, -0.2529276907444, 0.16224469244480133, -0.012773102149367332, 0.28293976187705994, 0.0663686990737915, -0.26453304290771484, 0.21239297091960907, 0.035251591354608536, -0.15870526432991028, 0.30225899815559387, 0.056969597935676575, -0.4054757058620453, -0.12616798281669617, -0.6859316825866699, -0.2402990162372589, -0.29652413725852966, 0.020735079422593117, 0.2632634937763214, 0.17071105539798737, 0.45188379287719727, 0.3053709864616394, 0.021537749096751213, 0.08881963044404984, 0.06292900443077087, -0.15816588699817657, -0.0866924375295639, 0.22770380973815918, -0.15107229351997375, -0.401175856590271, 0.1772230863571167, 0.20705260336399078, 0.5639325380325317, 0.1303524225950241, -0.4385870099067688, 0.15774215757846832, -0.10611391812562943, -0.07551892101764679, -0.2182873785495758, 0.10153936594724655, 0.06630246341228485, -0.210977241396904, -0.025753017514944077, 0.007954622618854046, -0.19149281084537506, -0.03013612888753414, 0.1466684192419052, 0.26305803656578064, 0.2407560497522354, 0.427897572517395, -0.268168181180954, 0.5905355215072632, 0.014263003133237362, -0.16091910004615784, 0.0694773942232132, -0.15895815193653107, 0.4026760756969452, -0.0031176493503153324, -0.5069510340690613, 0.21585212647914886, 0.28426292538642883, 0.017194107174873352, 0.17447680234909058, 0.03403102234005928, -0.2551560401916504, -0.1661706119775772, 0.23797008395195007, -0.3800160586833954, -0.2908550202846527, 0.19608095288276672, -0.26110175251960754, 0.07894759625196457, 0.04485424980521202, -0.05900613218545914, -0.08908896148204803, -0.1388104110956192, -0.1887182742357254, 0.43584075570106506, 0.06431856751441956, 0.03150128945708275, -0.4632994532585144, 0.050568386912345886, -0.342972993850708, 0.20747315883636475, -0.15875375270843506, 0.6160392761230469, -0.12195751816034317, -0.09990619122982025, 0.11056839674711227, -0.014026936143636703, 0.38198378682136536, 0.08129311352968216, 0.16612446308135986, 0.33757686614990234, -0.12394202500581741, -0.4966866075992584, -0.041407838463783264, 0.0024589779786765575, 0.44725164771080017, 0.47530314326286316, 0.15871277451515198, 0.0748981386423111, -0.11193161457777023, -0.18555082380771637, 0.1059320792555809, -0.09404423087835312, -0.2817321717739105, -0.3055528402328491, -0.3186790645122528, -0.26930585503578186, -0.4744173288345337, -0.17208360135555267, 0.23046892881393433, -0.09995090961456299, 0.16761049628257751, -0.1212368831038475, -0.21667252480983734, 0.1496957540512085, 0.3861214518547058, 0.039885248988866806, -0.08788318186998367, 0.15042048692703247, 0.2156401425600052, -0.11630438268184662, 0.13654929399490356, 0.36144790053367615, 0.10973751544952393, -0.7085857391357422, -0.046175822615623474, -0.06683246791362762, 0.15759828686714172, -0.2619445025920868, -0.16748720407485962, -0.17460255324840546, 0.07693815231323242, -0.13607336580753326, 0.0028720649424940348, 0.16608908772468567, 0.2037220001220703, 0.0454278364777565, -0.2044677883386612, -0.2929302453994751, 0.26326248049736023, -0.10856539011001587, 0.03423304855823517, 0.19201159477233887, -0.21351595222949982, -0.1601371020078659, 0.37818965315818787, -0.02102402038872242, 0.5590002536773682, -0.3097167909145355, 0.14125722646713257, 0.27619513869285583, 0.013915304094552994, 0.6699486374855042, -0.1115625873208046, 0.21044349670410156, -0.3174937963485718, -0.014190972782671452, -0.05656164139509201, -0.20073285698890686, 0.026438310742378235, 0.11239245533943176, -0.12164928019046783, 0.18026548624038696, -0.02423579804599285, -0.2814284861087799, 0.12919816374778748, 0.2311953455209732, 0.5022935271263123, -0.24463242292404175, -0.7192251682281494, 0.20236873626708984, -0.21775221824645996, 0.052268028259277344, 0.05177248641848564, -0.1352650672197342, -0.22485540807247162, 0.048974622040987015, -0.3124028146266937, 0.3894597589969635, 0.09013549238443375, 0.34956464171409607, 0.30822739005088806, -0.04682810977101326, 0.05550869554281235, 0.23091503977775574, 0.17503699660301208, 0.22789554297924042, -0.17040999233722687, 0.234110027551651, -0.008797767572104931, -0.2591129243373871, 0.24826034903526306, 0.10018890351057053, 0.18867483735084534, -0.16275134682655334, -0.2001492828130722, 0.13314668834209442, 0.08533234894275665, -0.523974597454071, 0.13864587247371674, 0.1783328503370285, -0.07202610373497009, 0.09921793639659882, -0.28296223282814026, 0.10971921682357788, 0.10711763054132462, 0.20754732191562653, 0.11732307076454163, 0.3670854866504669, 0.073680080473423, 0.34078454971313477, 0.007955977693200111, -0.4690265655517578, 0.14298686385154724, 0.2529999017715454, 0.17923685908317566, 0.00905524380505085, 0.3015260398387909, 0.14253170788288116, 0.04716561734676361, -0.1045873686671257, -0.17465387284755707, -0.46191680431365967, 0.010912363417446613, -0.1224684864282608, 0.3127571642398834, 0.22294384241104126, 0.15213680267333984, -0.1818501055240631, 0.04104071855545044, -0.22363978624343872, 0.09975965321063995, -0.8598701357841492, -0.13541103899478912, -0.05482833459973335, -0.4878777265548706, -0.0006451213848777115, 0.21669968962669373, -0.046996328979730606, -0.08471474051475525, -0.1913500428199768, -0.24978752434253693, 0.01976637728512287, -0.20321954786777496, -0.10998799651861191, 0.281956285238266, 0.06199800223112106, 0.12834985554218292, -0.22952976822853088, 0.12995898723602295, -0.40338602662086487, -0.10847590118646622, -0.19876620173454285, -0.0028029417153447866, 0.1285456418991089, 0.05298750847578049, -0.25737908482551575, -0.20843635499477386, -0.24599558115005493, -0.3299536108970642, 0.10250119119882584, -0.0409882552921772, -0.02015618607401848, -0.1540883630514145, 0.0581766776740551, -0.506923496723175, 0.01658896915614605, 0.11863637715578079, 0.35865893959999084, -0.11647409945726395, 0.2467459738254547, 0.2674185633659363, 0.2644314169883728, -0.175306037068367, -0.09090729057788849, -0.5406355857849121, -0.06691138446331024, -0.2757548987865448, 0.16379863023757935, 0.3702976703643799, -0.10896941274404526, 0.132483571767807, 0.0816415324807167, 0.05350164696574211, 0.5262338519096375, -0.17825695872306824, -0.046150341629981995, 0.12992705404758453, 0.14884014427661896, -0.2839469015598297, -0.13353000581264496, 0.3298017680644989, 0.30998125672340393, -0.2143109142780304, 0.20181073248386383, -0.022296100854873657, 0.022689109668135643, 0.1296837478876114, 0.03032255917787552, 0.5294105410575867, -0.24933065474033356, 0.08841229975223541, -0.15197859704494476, -0.24768197536468506, -0.09166641533374786, -0.21199217438697815, 0.2499309629201889, 0.2411660999059677, 0.372855007648468, -0.001411779667250812, 0.10809283703565598, 0.19088120758533478, -0.12381577491760254, -0.013418477959930897, -0.35449305176734924, -0.46468979120254517, 0.16359668970108032, 0.02332327887415886, 0.3950408697128296, 0.00796432700008154, 0.09288644790649414, 0.051995277404785156, -0.24559466540813446, -0.06572743505239487, 0.23702634871006012, 0.11939304322004318, -0.0006321917753666639, -0.20608842372894287, 0.04167882353067398, -0.03172682970762253, -0.18166425824165344, 0.037583451718091965, -0.11872730404138565, 0.08652278780937195, 0.3490440249443054, -0.3035862445831299, -0.7911367416381836, 0.2285948246717453, 0.0662601962685585, -0.10320693254470825, 0.0720452144742012, 0.3918702304363251, 0.023688245564699173, 0.043521564453840256, 0.3245852291584015, 0.10883176326751709, 0.5102601647377014, 0.41141894459724426, -0.04923408105969429, -0.04577319696545601, 0.02427259460091591, 0.11899858713150024, -0.08505997061729431, 0.32234376668930054, 0.03320073336362839, 0.3221088647842407, 0.27460601925849915, 0.11984921991825104, 0.05741497874259949, 0.28899312019348145, 0.16253678500652313, 0.07124621421098709, 0.022603735327720642, 0.06667352467775345, 0.10231450200080872, 0.2394503355026245, -0.2568705976009369, 0.07248644530773163, -0.33614403009414673, -0.11034886538982391, 0.2590261995792389, 0.20748743414878845, 0.11409585922956467, 0.03364251181483269, 0.058249980211257935, -0.13191518187522888, 0.7058612704277039, 0.5107813477516174, 0.37177401781082153, -0.14329245686531067, -0.060413990169763565, -0.5617271661758423, 0.16892506182193756, -0.22681047022342682, -0.2093268781900406, 0.10783427953720093, 0.1282418668270111, 0.4357295036315918, 0.19244569540023804, -0.02736721932888031, -0.1725473552942276, -0.4005466103553772, -0.02374391071498394, -0.34282293915748596, -0.2178269326686859, 0.007897121831774712, -0.11197426170110703, -0.13830077648162842, -0.018038736656308174, 0.0899634137749672, -0.18239173293113708, -0.0019595231860876083, 0.027018873021006584, 0.15782661736011505, -0.033266592770814896, 0.09149448573589325, 0.40420034527778625, 0.015184328891336918, 0.4290499687194824, -0.02705533057451248, -0.2645827531814575, -0.4509972333908081, -0.1991007775068283, -0.3306639790534973, 0.35170096158981323, 0.23522056639194489, 0.17624498903751373, -0.1694793552160263, 0.18722210824489594, -0.16852834820747375, 0.483817458152771, -0.05659081041812897, -0.5422760844230652, 0.1255190521478653, 0.07394196093082428, 0.09575597196817398, 0.14441125094890594, -0.010646190494298935, 0.053534407168626785, 0.004479722585529089, 0.5422229766845703, -0.24582862854003906, -0.137821763753891, 0.27031224966049194, -0.259565144777298, -0.3543884754180908, 0.2645857632160187, -0.13422997295856476, -0.3655936121940613, 0.3093405067920685, -0.537162184715271, 0.16548743844032288, 0.34196963906288147, -0.1092514619231224, -0.17104510962963104, -0.05043286830186844, 0.10095012933015823, -0.20602887868881226, -0.08584988862276077, 0.5699599385261536, -0.11934273689985275, -0.2334056794643402, -0.046961892396211624, 0.009048416279256344 ]
https://github.com/huggingface/datasets/issues/294
Cannot load arxiv dataset on MacOS?
I was able to track down the file causing the problem by adding the following to `scientific_papers.py` (starting at line 116): ```python from json import JSONDecodeError try: d = json.loads(line) summary = "\n".join(d["abstract_text"]) except JSONDecodeError: print(path, line) ``` For me it was at: `/Users/johngiorgi/.cache/huggingface/datasets/f87fd498c5003cbe253a2af422caa1e58f87a4fd74cb3e67350c635c8903b259/arxiv-dataset/train.txt` with `"article_id": "1407.3051"`. Not really 100% sure at the moment, but it looks like this specific substring from `"article_text"` may be causing the problem? ``` "after the missing - mass scale adjustment , the validity of the corrections was tested in the @xmath85 productions at 1.69 gev/@xmath1 . in fig . [", "fig : calibrations ] ( a ) , we show the missing - mass spectrum in the @xmath86 region in the @xmath87 reaction at 1.69 gev/@xmath1 . a fitting result with a lorentzian function for the @xmath86 ( dashed line ) and the three - body phas ``` perhaps because it appears to be truncated. I (think) I can recreate the problem by doing the following: ```python import json # A minimal example of the json file that causes the error invalid_json = '{"article_id": "1407.3051", "article_text": ["the missing - mass resolution was obtained to be 2.8 @xmath3 0.1 mev/@xmath4 ( fwhm ) , which corresponds to the missing - mass resolution of 3.2 @xmath3 0.2 mev/@xmath4 ( fwhm ) at the @xmath6 cusp region in the @xmath0 reaction .", "this resolution is at least by a factor of 2 better than the previous measurement with the same reaction ( 3.2@xmath595.5 mev/@xmath4 in @xmath84 ) @xcite .", "after the missing - mass scale adjustment , the validity of the corrections was tested in the @xmath85 productions at 1.69 gev/@xmath1 . in fig . [", "fig : calibrations ] ( a ) , we show the missing - mass spectrum in the @xmath86 region in the @xmath87 reaction at 1.69 gev/@xmath1 . a fitting result with a lorentzian function for the @xmath86 ( dashed line ) and the three - body phas' # The line of code from `scientific_papers.py` which appears to cause the error json.loads(invalid_json) ``` This is as far as I get before I am stumped.
I am having trouble loading the `"arxiv"` config from the `"scientific_papers"` dataset on MacOS. When I try loading the dataset with: ```python arxiv = nlp.load_dataset("scientific_papers", "arxiv") ``` I get the following stack trace: ```bash JSONDecodeError Traceback (most recent call last) <ipython-input-2-8e00c55d5a59> in <module> ----> 1 arxiv = nlp.load_dataset("scientific_papers", "arxiv") ~/miniconda3/envs/t2t/lib/python3.7/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) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/miniconda3/envs/t2t/lib/python3.7/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) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 662 663 generator = self._generate_examples(**split_generator.gen_kwargs) --> 664 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False): 665 example = self.info.features.encode_example(record) 666 writer.write(example) ~/miniconda3/envs/t2t/lib/python3.7/site-packages/tqdm/std.py in __iter__(self) 1106 fp_write=getattr(self.fp, 'write', sys.stderr.write)) 1107 -> 1108 for obj in iterable: 1109 yield obj 1110 # Update and possibly print the progressbar. ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/datasets/scientific_papers/107a416c0e1958cb846f5934b5aae292f7884a5b27e86af3f3ef1a093e058bbc/scientific_papers.py in _generate_examples(self, path) 114 # "section_names": list[str], list of section names. 115 # "sections": list[list[str]], list of sections (list of paragraphs) --> 116 d = json.loads(line) 117 summary = "\n".join(d["abstract_text"]) 118 # In original paper, <S> and </S> are not used in vocab during training ~/miniconda3/envs/t2t/lib/python3.7/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 346 parse_int is None and parse_float is None and 347 parse_constant is None and object_pairs_hook is None and not kw): --> 348 return _default_decoder.decode(s) 349 if cls is None: 350 cls = JSONDecoder ~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in decode(self, s, _w) 335 336 """ --> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 338 end = _w(s, end).end() 339 if end != len(s): ~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in raw_decode(self, s, idx) 351 """ 352 try: --> 353 obj, end = self.scan_once(s, idx) 354 except StopIteration as err: 355 raise JSONDecodeError("Expecting value", s, err.value) from None JSONDecodeError: Unterminated string starting at: line 1 column 46983 (char 46982) 163502 examples [02:10, 2710.68 examples/s] ``` I am not sure how to trace back to the specific JSON file that has the "Unterminated string". Also, I do not get this error on colab so I suspect it may be MacOS specific. Copy pasting the relevant lines from `transformers-cli env` below: - Platform: Darwin-19.5.0-x86_64-i386-64bit - Python version: 3.7.5 - PyTorch version (GPU?): 1.5.0 (False) - Tensorflow version (GPU?): 2.2.0 (False) Any ideas?
352
Cannot load arxiv dataset on MacOS? I am having trouble loading the `"arxiv"` config from the `"scientific_papers"` dataset on MacOS. When I try loading the dataset with: ```python arxiv = nlp.load_dataset("scientific_papers", "arxiv") ``` I get the following stack trace: ```bash JSONDecodeError Traceback (most recent call last) <ipython-input-2-8e00c55d5a59> in <module> ----> 1 arxiv = nlp.load_dataset("scientific_papers", "arxiv") ~/miniconda3/envs/t2t/lib/python3.7/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) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/miniconda3/envs/t2t/lib/python3.7/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) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 662 663 generator = self._generate_examples(**split_generator.gen_kwargs) --> 664 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False): 665 example = self.info.features.encode_example(record) 666 writer.write(example) ~/miniconda3/envs/t2t/lib/python3.7/site-packages/tqdm/std.py in __iter__(self) 1106 fp_write=getattr(self.fp, 'write', sys.stderr.write)) 1107 -> 1108 for obj in iterable: 1109 yield obj 1110 # Update and possibly print the progressbar. ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/datasets/scientific_papers/107a416c0e1958cb846f5934b5aae292f7884a5b27e86af3f3ef1a093e058bbc/scientific_papers.py in _generate_examples(self, path) 114 # "section_names": list[str], list of section names. 115 # "sections": list[list[str]], list of sections (list of paragraphs) --> 116 d = json.loads(line) 117 summary = "\n".join(d["abstract_text"]) 118 # In original paper, <S> and </S> are not used in vocab during training ~/miniconda3/envs/t2t/lib/python3.7/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 346 parse_int is None and parse_float is None and 347 parse_constant is None and object_pairs_hook is None and not kw): --> 348 return _default_decoder.decode(s) 349 if cls is None: 350 cls = JSONDecoder ~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in decode(self, s, _w) 335 336 """ --> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 338 end = _w(s, end).end() 339 if end != len(s): ~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in raw_decode(self, s, idx) 351 """ 352 try: --> 353 obj, end = self.scan_once(s, idx) 354 except StopIteration as err: 355 raise JSONDecodeError("Expecting value", s, err.value) from None JSONDecodeError: Unterminated string starting at: line 1 column 46983 (char 46982) 163502 examples [02:10, 2710.68 examples/s] ``` I am not sure how to trace back to the specific JSON file that has the "Unterminated string". Also, I do not get this error on colab so I suspect it may be MacOS specific. Copy pasting the relevant lines from `transformers-cli env` below: - Platform: Darwin-19.5.0-x86_64-i386-64bit - Python version: 3.7.5 - PyTorch version (GPU?): 1.5.0 (False) - Tensorflow version (GPU?): 2.2.0 (False) Any ideas? I was able to track down the file causing the problem by adding the following to `scientific_papers.py` (starting at line 116): ```python from json import JSONDecodeError try: d = json.loads(line) summary = "\n".join(d["abstract_text"]) except JSONDecodeError: print(path, line) ``` For me it was at: `/Users/johngiorgi/.cache/huggingface/datasets/f87fd498c5003cbe253a2af422caa1e58f87a4fd74cb3e67350c635c8903b259/arxiv-dataset/train.txt` with `"article_id": "1407.3051"`. Not really 100% sure at the moment, but it looks like this specific substring from `"article_text"` may be causing the problem? ``` "after the missing - mass scale adjustment , the validity of the corrections was tested in the @xmath85 productions at 1.69 gev/@xmath1 . in fig . [", "fig : calibrations ] ( a ) , we show the missing - mass spectrum in the @xmath86 region in the @xmath87 reaction at 1.69 gev/@xmath1 . a fitting result with a lorentzian function for the @xmath86 ( dashed line ) and the three - body phas ``` perhaps because it appears to be truncated. I (think) I can recreate the problem by doing the following: ```python import json # A minimal example of the json file that causes the error invalid_json = '{"article_id": "1407.3051", "article_text": ["the missing - mass resolution was obtained to be 2.8 @xmath3 0.1 mev/@xmath4 ( fwhm ) , which corresponds to the missing - mass resolution of 3.2 @xmath3 0.2 mev/@xmath4 ( fwhm ) at the @xmath6 cusp region in the @xmath0 reaction .", "this resolution is at least by a factor of 2 better than the previous measurement with the same reaction ( 3.2@xmath595.5 mev/@xmath4 in @xmath84 ) @xcite .", "after the missing - mass scale adjustment , the validity of the corrections was tested in the @xmath85 productions at 1.69 gev/@xmath1 . in fig . [", "fig : calibrations ] ( a ) , we show the missing - mass spectrum in the @xmath86 region in the @xmath87 reaction at 1.69 gev/@xmath1 . a fitting result with a lorentzian function for the @xmath86 ( dashed line ) and the three - body phas' # The line of code from `scientific_papers.py` which appears to cause the error json.loads(invalid_json) ``` This is as far as I get before I am stumped.
[ -0.05814090371131897, 0.0877690464258194, -0.04190986976027489, 0.18866907060146332, 0.21789687871932983, 0.045469772070646286, -0.024187324568629265, 0.36161747574806213, 0.08156910538673401, -0.18188218772411346, -0.050524137914180756, 0.6910574436187744, -0.1919909566640854, -0.21391341090202332, -0.10823022574186325, 0.009492449462413788, -0.1276046335697174, 0.011454314924776554, 0.11468036472797394, -0.11108400672674179, -0.12306897342205048, 0.19933085143566132, -0.15732447803020477, -0.09930583089590073, 0.40909531712532043, 0.09582999348640442, 0.1364864706993103, 0.39574870467185974, -0.002753898501396179, -0.3556492328643799, 0.13499048352241516, 0.02409527450799942, 0.21715876460075378, 0.5375881195068359, -0.00011070339678553864, 0.27181321382522583, 0.3134254217147827, -0.09398935735225677, -0.2043014019727707, -0.5840536952018738, -0.41151484847068787, -0.30663764476776123, 0.13350555300712585, -0.213688462972641, -0.03607167303562164, -0.2607659697532654, 0.12421458214521408, -0.15391726791858673, 0.32883259654045105, 0.3756515383720398, 0.20792196691036224, 0.07985033839941025, 0.38301020860671997, 0.11644233763217926, -0.06707192212343216, -0.0231343824416399, 0.0021167800296097994, 0.46498313546180725, 0.04228385537862778, 0.1263248771429062, 0.1612231731414795, 0.14481036365032196, -0.1489691585302353, 0.11279862374067307, 0.20924466848373413, -0.02966548688709736, -0.10750353336334229, -0.14368782937526703, 0.03752249479293823, 0.13045714795589447, 0.27215665578842163, -0.09744856506586075, -0.24030494689941406, 0.056409671902656555, 0.22180716693401337, -0.10190623998641968, 0.29518166184425354, 0.43008315563201904, -0.1124936044216156, 0.0761575922369957, -0.3062991499900818, -0.349758505821228, -0.4034617245197296, 0.4736580550670624, -0.02189750038087368, -0.11155746877193451, -0.20071902871131897, 0.20338749885559082, 0.15959389507770538, -0.24159307777881622, 0.03689621761441231, 0.09394800662994385, 0.17075565457344055, 0.11694604903459549, -0.4864802062511444, 0.2469763159751892, 0.07967282831668854, -0.3753710091114044, 0.0753830298781395, -0.1501469910144806, -0.10378067195415497, -0.0815441906452179, -0.28297626972198486, 0.272894024848938, 0.11201488226652145, 0.018602553755044937, -0.1558188498020172, -0.001816020580008626, 0.05823025852441788, -0.0125895319506526, -0.1686112880706787, 0.0329582616686821, -0.35958680510520935, -0.15404078364372253, -0.36273735761642456, -0.38012051582336426, 0.2619626224040985, -0.32074689865112305, 0.062184493988752365, -0.02503623627126217, -0.025042669847607613, 0.016877055168151855, 0.023844584822654724, 0.2284129112958908, -0.054267752915620804, 0.14219844341278076, 0.17162396013736725, 0.42962121963500977, -0.34669479727745056, 0.17580227553844452, -0.050975900143384933, 0.07547564059495926, -0.10979869216680527, -0.29682233929634094, 0.20440490543842316, 0.0846933126449585, 0.16359761357307434, -0.022583669051527977, 0.0854109674692154, -0.20162881910800934, 0.12524427473545074, 0.13397474586963654, -0.10179396718740463, 0.48088979721069336, 0.32998979091644287, 0.05649837851524353, 0.2672579884529114, 0.03862297162413597, -0.12501303851604462, 0.22153329849243164, -0.4679539203643799, -0.122761070728302, -0.2679331600666046, 0.162654310464859, -0.1997467279434204, -0.1317337602376938, -0.16055013239383698, -0.14329378306865692, 0.13793310523033142, 0.23946915566921234, -0.36348220705986023, -0.22936631739139557, 0.00013408168160822242, -0.33330097794532776, 0.24883690476417542, 0.039209820330142975, -0.31334489583969116, 0.16130322217941284, -0.10561536252498627, 0.14759603142738342, 0.28346437215805054, 0.36524030566215515, -0.2056615650653839, 0.14260241389274597, -0.025551073253154755, -0.11357063800096512, 0.35900065302848816, -0.3276829123497009, -0.11957605928182602, 0.0364849790930748, -0.1393849402666092, 0.07626935839653015, -0.07434327155351639, 0.023116612806916237, -0.18387876451015472, 0.2579208314418793, 0.20406191051006317, 0.27111977338790894, 0.08263731747865677, 0.03041844815015793, -0.18050047755241394, -0.20094384253025055, 0.4589858949184418, 0.35238319635391235, -0.08574280887842178, 0.029466992244124413, -0.07057181000709534, -0.07236593961715698, 0.11355161666870117, -0.09911772608757019, -0.3065352141857147, 0.2054905742406845, 0.012770715169608593, 0.05979049950838089, 0.06962493062019348, 0.12583841383457184, 0.166461780667305, 0.09673251211643219, 0.23967541754245758, 0.29656893014907837, -0.21590827405452728, 0.3827723562717438, -0.3872416913509369, 0.09267265349626541, -0.031039822846651077, 0.07113026827573776, 0.06565523147583008, 0.043967921286821365, -0.09347687661647797, 0.19505201280117035, -0.18202057480812073, 0.2183665931224823, -0.38070839643478394, -0.03710112348198891, -0.884393036365509, 0.05607537925243378, -0.11706503480672836, 0.11073508113622665, 0.2100992053747177, 0.14025519788265228, -0.11917833238840103, -0.24003417789936066, -0.11652103811502457, 0.21397870779037476, 0.29407861828804016, -0.06993107497692108, 0.22796817123889923, 0.04207894206047058, 0.05837436765432358, -0.3201344609260559, 0.2476842999458313, 0.017178453505039215, 0.045468129217624664, 0.09804685413837433, -0.24006234109401703, 0.3954664170742035, 0.08486457169055939, 0.18532302975654602, 0.14780408143997192, 0.13192632794380188, 0.4758424758911133, -0.006014757789671421, -0.02758491225540638, -0.008976285345852375, 0.4516295790672302, 0.18057803809642792, -0.3402882516384125, -0.1420488953590393, -0.18555939197540283, -0.0007573477341793478, 0.0775008276104927, 0.15927369892597198, -0.08404666930437088, 0.3020504117012024, -0.10745492577552795, 0.060756195336580276, -0.11801257729530334, 0.029121890664100647, 0.34010234475135803, 0.17099928855895996, -0.3174932599067688, 0.03752131760120392, -0.2074112445116043, -0.06406959146261215, 0.15766441822052002, 0.004249480552971363, 0.0024911495856940746, -0.15622299909591675, 0.13022403419017792, 0.11905727535486221, -0.2286057025194168, -0.2915286719799042, -0.014925127848982811, 0.403652161359787, -0.33745548129081726, 0.062464311718940735, -0.35343730449676514, -0.260183721780777, -0.054271966218948364, -0.1631038933992386, -0.16000261902809143, -0.20464976131916046, -0.11035097390413284, 0.1549532562494278, 0.19716811180114746, 0.15693944692611694, -0.3404223918914795, -0.06874649226665497, 0.2280447632074356, -0.2127586454153061, 0.21781907975673676, -0.3201690912246704, -0.09057365357875824, 0.09150397777557373, 0.2567334473133087, 0.11535705626010895, 0.216878280043602, -0.07115211337804794, -0.19917015731334686, 0.19511480629444122, -0.3111150562763214, -0.06906353682279587, -0.2529276907444, 0.16224469244480133, -0.012773102149367332, 0.28293976187705994, 0.0663686990737915, -0.26453304290771484, 0.21239297091960907, 0.035251591354608536, -0.15870526432991028, 0.30225899815559387, 0.056969597935676575, -0.4054757058620453, -0.12616798281669617, -0.6859316825866699, -0.2402990162372589, -0.29652413725852966, 0.020735079422593117, 0.2632634937763214, 0.17071105539798737, 0.45188379287719727, 0.3053709864616394, 0.021537749096751213, 0.08881963044404984, 0.06292900443077087, -0.15816588699817657, -0.0866924375295639, 0.22770380973815918, -0.15107229351997375, -0.401175856590271, 0.1772230863571167, 0.20705260336399078, 0.5639325380325317, 0.1303524225950241, -0.4385870099067688, 0.15774215757846832, -0.10611391812562943, -0.07551892101764679, -0.2182873785495758, 0.10153936594724655, 0.06630246341228485, -0.210977241396904, -0.025753017514944077, 0.007954622618854046, -0.19149281084537506, -0.03013612888753414, 0.1466684192419052, 0.26305803656578064, 0.2407560497522354, 0.427897572517395, -0.268168181180954, 0.5905355215072632, 0.014263003133237362, -0.16091910004615784, 0.0694773942232132, -0.15895815193653107, 0.4026760756969452, -0.0031176493503153324, -0.5069510340690613, 0.21585212647914886, 0.28426292538642883, 0.017194107174873352, 0.17447680234909058, 0.03403102234005928, -0.2551560401916504, -0.1661706119775772, 0.23797008395195007, -0.3800160586833954, -0.2908550202846527, 0.19608095288276672, -0.26110175251960754, 0.07894759625196457, 0.04485424980521202, -0.05900613218545914, -0.08908896148204803, -0.1388104110956192, -0.1887182742357254, 0.43584075570106506, 0.06431856751441956, 0.03150128945708275, -0.4632994532585144, 0.050568386912345886, -0.342972993850708, 0.20747315883636475, -0.15875375270843506, 0.6160392761230469, -0.12195751816034317, -0.09990619122982025, 0.11056839674711227, -0.014026936143636703, 0.38198378682136536, 0.08129311352968216, 0.16612446308135986, 0.33757686614990234, -0.12394202500581741, -0.4966866075992584, -0.041407838463783264, 0.0024589779786765575, 0.44725164771080017, 0.47530314326286316, 0.15871277451515198, 0.0748981386423111, -0.11193161457777023, -0.18555082380771637, 0.1059320792555809, -0.09404423087835312, -0.2817321717739105, -0.3055528402328491, -0.3186790645122528, -0.26930585503578186, -0.4744173288345337, -0.17208360135555267, 0.23046892881393433, -0.09995090961456299, 0.16761049628257751, -0.1212368831038475, -0.21667252480983734, 0.1496957540512085, 0.3861214518547058, 0.039885248988866806, -0.08788318186998367, 0.15042048692703247, 0.2156401425600052, -0.11630438268184662, 0.13654929399490356, 0.36144790053367615, 0.10973751544952393, -0.7085857391357422, -0.046175822615623474, -0.06683246791362762, 0.15759828686714172, -0.2619445025920868, -0.16748720407485962, -0.17460255324840546, 0.07693815231323242, -0.13607336580753326, 0.0028720649424940348, 0.16608908772468567, 0.2037220001220703, 0.0454278364777565, -0.2044677883386612, -0.2929302453994751, 0.26326248049736023, -0.10856539011001587, 0.03423304855823517, 0.19201159477233887, -0.21351595222949982, -0.1601371020078659, 0.37818965315818787, -0.02102402038872242, 0.5590002536773682, -0.3097167909145355, 0.14125722646713257, 0.27619513869285583, 0.013915304094552994, 0.6699486374855042, -0.1115625873208046, 0.21044349670410156, -0.3174937963485718, -0.014190972782671452, -0.05656164139509201, -0.20073285698890686, 0.026438310742378235, 0.11239245533943176, -0.12164928019046783, 0.18026548624038696, -0.02423579804599285, -0.2814284861087799, 0.12919816374778748, 0.2311953455209732, 0.5022935271263123, -0.24463242292404175, -0.7192251682281494, 0.20236873626708984, -0.21775221824645996, 0.052268028259277344, 0.05177248641848564, -0.1352650672197342, -0.22485540807247162, 0.048974622040987015, -0.3124028146266937, 0.3894597589969635, 0.09013549238443375, 0.34956464171409607, 0.30822739005088806, -0.04682810977101326, 0.05550869554281235, 0.23091503977775574, 0.17503699660301208, 0.22789554297924042, -0.17040999233722687, 0.234110027551651, -0.008797767572104931, -0.2591129243373871, 0.24826034903526306, 0.10018890351057053, 0.18867483735084534, -0.16275134682655334, -0.2001492828130722, 0.13314668834209442, 0.08533234894275665, -0.523974597454071, 0.13864587247371674, 0.1783328503370285, -0.07202610373497009, 0.09921793639659882, -0.28296223282814026, 0.10971921682357788, 0.10711763054132462, 0.20754732191562653, 0.11732307076454163, 0.3670854866504669, 0.073680080473423, 0.34078454971313477, 0.007955977693200111, -0.4690265655517578, 0.14298686385154724, 0.2529999017715454, 0.17923685908317566, 0.00905524380505085, 0.3015260398387909, 0.14253170788288116, 0.04716561734676361, -0.1045873686671257, -0.17465387284755707, -0.46191680431365967, 0.010912363417446613, -0.1224684864282608, 0.3127571642398834, 0.22294384241104126, 0.15213680267333984, -0.1818501055240631, 0.04104071855545044, -0.22363978624343872, 0.09975965321063995, -0.8598701357841492, -0.13541103899478912, -0.05482833459973335, -0.4878777265548706, -0.0006451213848777115, 0.21669968962669373, -0.046996328979730606, -0.08471474051475525, -0.1913500428199768, -0.24978752434253693, 0.01976637728512287, -0.20321954786777496, -0.10998799651861191, 0.281956285238266, 0.06199800223112106, 0.12834985554218292, -0.22952976822853088, 0.12995898723602295, -0.40338602662086487, -0.10847590118646622, -0.19876620173454285, -0.0028029417153447866, 0.1285456418991089, 0.05298750847578049, -0.25737908482551575, -0.20843635499477386, -0.24599558115005493, -0.3299536108970642, 0.10250119119882584, -0.0409882552921772, -0.02015618607401848, -0.1540883630514145, 0.0581766776740551, -0.506923496723175, 0.01658896915614605, 0.11863637715578079, 0.35865893959999084, -0.11647409945726395, 0.2467459738254547, 0.2674185633659363, 0.2644314169883728, -0.175306037068367, -0.09090729057788849, -0.5406355857849121, -0.06691138446331024, -0.2757548987865448, 0.16379863023757935, 0.3702976703643799, -0.10896941274404526, 0.132483571767807, 0.0816415324807167, 0.05350164696574211, 0.5262338519096375, -0.17825695872306824, -0.046150341629981995, 0.12992705404758453, 0.14884014427661896, -0.2839469015598297, -0.13353000581264496, 0.3298017680644989, 0.30998125672340393, -0.2143109142780304, 0.20181073248386383, -0.022296100854873657, 0.022689109668135643, 0.1296837478876114, 0.03032255917787552, 0.5294105410575867, -0.24933065474033356, 0.08841229975223541, -0.15197859704494476, -0.24768197536468506, -0.09166641533374786, -0.21199217438697815, 0.2499309629201889, 0.2411660999059677, 0.372855007648468, -0.001411779667250812, 0.10809283703565598, 0.19088120758533478, -0.12381577491760254, -0.013418477959930897, -0.35449305176734924, -0.46468979120254517, 0.16359668970108032, 0.02332327887415886, 0.3950408697128296, 0.00796432700008154, 0.09288644790649414, 0.051995277404785156, -0.24559466540813446, -0.06572743505239487, 0.23702634871006012, 0.11939304322004318, -0.0006321917753666639, -0.20608842372894287, 0.04167882353067398, -0.03172682970762253, -0.18166425824165344, 0.037583451718091965, -0.11872730404138565, 0.08652278780937195, 0.3490440249443054, -0.3035862445831299, -0.7911367416381836, 0.2285948246717453, 0.0662601962685585, -0.10320693254470825, 0.0720452144742012, 0.3918702304363251, 0.023688245564699173, 0.043521564453840256, 0.3245852291584015, 0.10883176326751709, 0.5102601647377014, 0.41141894459724426, -0.04923408105969429, -0.04577319696545601, 0.02427259460091591, 0.11899858713150024, -0.08505997061729431, 0.32234376668930054, 0.03320073336362839, 0.3221088647842407, 0.27460601925849915, 0.11984921991825104, 0.05741497874259949, 0.28899312019348145, 0.16253678500652313, 0.07124621421098709, 0.022603735327720642, 0.06667352467775345, 0.10231450200080872, 0.2394503355026245, -0.2568705976009369, 0.07248644530773163, -0.33614403009414673, -0.11034886538982391, 0.2590261995792389, 0.20748743414878845, 0.11409585922956467, 0.03364251181483269, 0.058249980211257935, -0.13191518187522888, 0.7058612704277039, 0.5107813477516174, 0.37177401781082153, -0.14329245686531067, -0.060413990169763565, -0.5617271661758423, 0.16892506182193756, -0.22681047022342682, -0.2093268781900406, 0.10783427953720093, 0.1282418668270111, 0.4357295036315918, 0.19244569540023804, -0.02736721932888031, -0.1725473552942276, -0.4005466103553772, -0.02374391071498394, -0.34282293915748596, -0.2178269326686859, 0.007897121831774712, -0.11197426170110703, -0.13830077648162842, -0.018038736656308174, 0.0899634137749672, -0.18239173293113708, -0.0019595231860876083, 0.027018873021006584, 0.15782661736011505, -0.033266592770814896, 0.09149448573589325, 0.40420034527778625, 0.015184328891336918, 0.4290499687194824, -0.02705533057451248, -0.2645827531814575, -0.4509972333908081, -0.1991007775068283, -0.3306639790534973, 0.35170096158981323, 0.23522056639194489, 0.17624498903751373, -0.1694793552160263, 0.18722210824489594, -0.16852834820747375, 0.483817458152771, -0.05659081041812897, -0.5422760844230652, 0.1255190521478653, 0.07394196093082428, 0.09575597196817398, 0.14441125094890594, -0.010646190494298935, 0.053534407168626785, 0.004479722585529089, 0.5422229766845703, -0.24582862854003906, -0.137821763753891, 0.27031224966049194, -0.259565144777298, -0.3543884754180908, 0.2645857632160187, -0.13422997295856476, -0.3655936121940613, 0.3093405067920685, -0.537162184715271, 0.16548743844032288, 0.34196963906288147, -0.1092514619231224, -0.17104510962963104, -0.05043286830186844, 0.10095012933015823, -0.20602887868881226, -0.08584988862276077, 0.5699599385261536, -0.11934273689985275, -0.2334056794643402, -0.046961892396211624, 0.009048416279256344 ]
https://github.com/huggingface/datasets/issues/294
Cannot load arxiv dataset on MacOS?
I just checked inside `train.txt` and this line isn't truncated for me (line 163577). Could you try to clear your cache and re-download the dataset ?
I am having trouble loading the `"arxiv"` config from the `"scientific_papers"` dataset on MacOS. When I try loading the dataset with: ```python arxiv = nlp.load_dataset("scientific_papers", "arxiv") ``` I get the following stack trace: ```bash JSONDecodeError Traceback (most recent call last) <ipython-input-2-8e00c55d5a59> in <module> ----> 1 arxiv = nlp.load_dataset("scientific_papers", "arxiv") ~/miniconda3/envs/t2t/lib/python3.7/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) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/miniconda3/envs/t2t/lib/python3.7/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) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 662 663 generator = self._generate_examples(**split_generator.gen_kwargs) --> 664 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False): 665 example = self.info.features.encode_example(record) 666 writer.write(example) ~/miniconda3/envs/t2t/lib/python3.7/site-packages/tqdm/std.py in __iter__(self) 1106 fp_write=getattr(self.fp, 'write', sys.stderr.write)) 1107 -> 1108 for obj in iterable: 1109 yield obj 1110 # Update and possibly print the progressbar. ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/datasets/scientific_papers/107a416c0e1958cb846f5934b5aae292f7884a5b27e86af3f3ef1a093e058bbc/scientific_papers.py in _generate_examples(self, path) 114 # "section_names": list[str], list of section names. 115 # "sections": list[list[str]], list of sections (list of paragraphs) --> 116 d = json.loads(line) 117 summary = "\n".join(d["abstract_text"]) 118 # In original paper, <S> and </S> are not used in vocab during training ~/miniconda3/envs/t2t/lib/python3.7/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 346 parse_int is None and parse_float is None and 347 parse_constant is None and object_pairs_hook is None and not kw): --> 348 return _default_decoder.decode(s) 349 if cls is None: 350 cls = JSONDecoder ~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in decode(self, s, _w) 335 336 """ --> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 338 end = _w(s, end).end() 339 if end != len(s): ~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in raw_decode(self, s, idx) 351 """ 352 try: --> 353 obj, end = self.scan_once(s, idx) 354 except StopIteration as err: 355 raise JSONDecodeError("Expecting value", s, err.value) from None JSONDecodeError: Unterminated string starting at: line 1 column 46983 (char 46982) 163502 examples [02:10, 2710.68 examples/s] ``` I am not sure how to trace back to the specific JSON file that has the "Unterminated string". Also, I do not get this error on colab so I suspect it may be MacOS specific. Copy pasting the relevant lines from `transformers-cli env` below: - Platform: Darwin-19.5.0-x86_64-i386-64bit - Python version: 3.7.5 - PyTorch version (GPU?): 1.5.0 (False) - Tensorflow version (GPU?): 2.2.0 (False) Any ideas?
26
Cannot load arxiv dataset on MacOS? I am having trouble loading the `"arxiv"` config from the `"scientific_papers"` dataset on MacOS. When I try loading the dataset with: ```python arxiv = nlp.load_dataset("scientific_papers", "arxiv") ``` I get the following stack trace: ```bash JSONDecodeError Traceback (most recent call last) <ipython-input-2-8e00c55d5a59> in <module> ----> 1 arxiv = nlp.load_dataset("scientific_papers", "arxiv") ~/miniconda3/envs/t2t/lib/python3.7/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) 522 download_mode=download_mode, 523 ignore_verifications=ignore_verifications, --> 524 save_infos=save_infos, 525 ) 526 ~/miniconda3/envs/t2t/lib/python3.7/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) 430 verify_infos = not save_infos and not ignore_verifications 431 self._download_and_prepare( --> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 433 ) 434 # Sync info ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 481 try: 482 # Prepare split will record examples associated to the split --> 483 self._prepare_split(split_generator, **prepare_split_kwargs) 484 except OSError: 485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or "")) ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _prepare_split(self, split_generator) 662 663 generator = self._generate_examples(**split_generator.gen_kwargs) --> 664 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False): 665 example = self.info.features.encode_example(record) 666 writer.write(example) ~/miniconda3/envs/t2t/lib/python3.7/site-packages/tqdm/std.py in __iter__(self) 1106 fp_write=getattr(self.fp, 'write', sys.stderr.write)) 1107 -> 1108 for obj in iterable: 1109 yield obj 1110 # Update and possibly print the progressbar. ~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/datasets/scientific_papers/107a416c0e1958cb846f5934b5aae292f7884a5b27e86af3f3ef1a093e058bbc/scientific_papers.py in _generate_examples(self, path) 114 # "section_names": list[str], list of section names. 115 # "sections": list[list[str]], list of sections (list of paragraphs) --> 116 d = json.loads(line) 117 summary = "\n".join(d["abstract_text"]) 118 # In original paper, <S> and </S> are not used in vocab during training ~/miniconda3/envs/t2t/lib/python3.7/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 346 parse_int is None and parse_float is None and 347 parse_constant is None and object_pairs_hook is None and not kw): --> 348 return _default_decoder.decode(s) 349 if cls is None: 350 cls = JSONDecoder ~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in decode(self, s, _w) 335 336 """ --> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 338 end = _w(s, end).end() 339 if end != len(s): ~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in raw_decode(self, s, idx) 351 """ 352 try: --> 353 obj, end = self.scan_once(s, idx) 354 except StopIteration as err: 355 raise JSONDecodeError("Expecting value", s, err.value) from None JSONDecodeError: Unterminated string starting at: line 1 column 46983 (char 46982) 163502 examples [02:10, 2710.68 examples/s] ``` I am not sure how to trace back to the specific JSON file that has the "Unterminated string". Also, I do not get this error on colab so I suspect it may be MacOS specific. Copy pasting the relevant lines from `transformers-cli env` below: - Platform: Darwin-19.5.0-x86_64-i386-64bit - Python version: 3.7.5 - PyTorch version (GPU?): 1.5.0 (False) - Tensorflow version (GPU?): 2.2.0 (False) Any ideas? I just checked inside `train.txt` and this line isn't truncated for me (line 163577). Could you try to clear your cache and re-download the dataset ?
[ -0.05814090371131897, 0.0877690464258194, -0.04190986976027489, 0.18866907060146332, 0.21789687871932983, 0.045469772070646286, -0.024187324568629265, 0.36161747574806213, 0.08156910538673401, -0.18188218772411346, -0.050524137914180756, 0.6910574436187744, -0.1919909566640854, -0.21391341090202332, -0.10823022574186325, 0.009492449462413788, -0.1276046335697174, 0.011454314924776554, 0.11468036472797394, -0.11108400672674179, -0.12306897342205048, 0.19933085143566132, -0.15732447803020477, -0.09930583089590073, 0.40909531712532043, 0.09582999348640442, 0.1364864706993103, 0.39574870467185974, -0.002753898501396179, -0.3556492328643799, 0.13499048352241516, 0.02409527450799942, 0.21715876460075378, 0.5375881195068359, -0.00011070339678553864, 0.27181321382522583, 0.3134254217147827, -0.09398935735225677, -0.2043014019727707, -0.5840536952018738, -0.41151484847068787, -0.30663764476776123, 0.13350555300712585, -0.213688462972641, -0.03607167303562164, -0.2607659697532654, 0.12421458214521408, -0.15391726791858673, 0.32883259654045105, 0.3756515383720398, 0.20792196691036224, 0.07985033839941025, 0.38301020860671997, 0.11644233763217926, -0.06707192212343216, -0.0231343824416399, 0.0021167800296097994, 0.46498313546180725, 0.04228385537862778, 0.1263248771429062, 0.1612231731414795, 0.14481036365032196, -0.1489691585302353, 0.11279862374067307, 0.20924466848373413, -0.02966548688709736, -0.10750353336334229, -0.14368782937526703, 0.03752249479293823, 0.13045714795589447, 0.27215665578842163, -0.09744856506586075, -0.24030494689941406, 0.056409671902656555, 0.22180716693401337, -0.10190623998641968, 0.29518166184425354, 0.43008315563201904, -0.1124936044216156, 0.0761575922369957, -0.3062991499900818, -0.349758505821228, -0.4034617245197296, 0.4736580550670624, -0.02189750038087368, -0.11155746877193451, -0.20071902871131897, 0.20338749885559082, 0.15959389507770538, -0.24159307777881622, 0.03689621761441231, 0.09394800662994385, 0.17075565457344055, 0.11694604903459549, -0.4864802062511444, 0.2469763159751892, 0.07967282831668854, -0.3753710091114044, 0.0753830298781395, -0.1501469910144806, -0.10378067195415497, -0.0815441906452179, -0.28297626972198486, 0.272894024848938, 0.11201488226652145, 0.018602553755044937, -0.1558188498020172, -0.001816020580008626, 0.05823025852441788, -0.0125895319506526, -0.1686112880706787, 0.0329582616686821, -0.35958680510520935, -0.15404078364372253, -0.36273735761642456, -0.38012051582336426, 0.2619626224040985, -0.32074689865112305, 0.062184493988752365, -0.02503623627126217, -0.025042669847607613, 0.016877055168151855, 0.023844584822654724, 0.2284129112958908, -0.054267752915620804, 0.14219844341278076, 0.17162396013736725, 0.42962121963500977, -0.34669479727745056, 0.17580227553844452, -0.050975900143384933, 0.07547564059495926, -0.10979869216680527, -0.29682233929634094, 0.20440490543842316, 0.0846933126449585, 0.16359761357307434, -0.022583669051527977, 0.0854109674692154, -0.20162881910800934, 0.12524427473545074, 0.13397474586963654, -0.10179396718740463, 0.48088979721069336, 0.32998979091644287, 0.05649837851524353, 0.2672579884529114, 0.03862297162413597, -0.12501303851604462, 0.22153329849243164, -0.4679539203643799, -0.122761070728302, -0.2679331600666046, 0.162654310464859, -0.1997467279434204, -0.1317337602376938, -0.16055013239383698, -0.14329378306865692, 0.13793310523033142, 0.23946915566921234, -0.36348220705986023, -0.22936631739139557, 0.00013408168160822242, -0.33330097794532776, 0.24883690476417542, 0.039209820330142975, -0.31334489583969116, 0.16130322217941284, -0.10561536252498627, 0.14759603142738342, 0.28346437215805054, 0.36524030566215515, -0.2056615650653839, 0.14260241389274597, -0.025551073253154755, -0.11357063800096512, 0.35900065302848816, -0.3276829123497009, -0.11957605928182602, 0.0364849790930748, -0.1393849402666092, 0.07626935839653015, -0.07434327155351639, 0.023116612806916237, -0.18387876451015472, 0.2579208314418793, 0.20406191051006317, 0.27111977338790894, 0.08263731747865677, 0.03041844815015793, -0.18050047755241394, -0.20094384253025055, 0.4589858949184418, 0.35238319635391235, -0.08574280887842178, 0.029466992244124413, -0.07057181000709534, -0.07236593961715698, 0.11355161666870117, -0.09911772608757019, -0.3065352141857147, 0.2054905742406845, 0.012770715169608593, 0.05979049950838089, 0.06962493062019348, 0.12583841383457184, 0.166461780667305, 0.09673251211643219, 0.23967541754245758, 0.29656893014907837, -0.21590827405452728, 0.3827723562717438, -0.3872416913509369, 0.09267265349626541, -0.031039822846651077, 0.07113026827573776, 0.06565523147583008, 0.043967921286821365, -0.09347687661647797, 0.19505201280117035, -0.18202057480812073, 0.2183665931224823, -0.38070839643478394, -0.03710112348198891, -0.884393036365509, 0.05607537925243378, -0.11706503480672836, 0.11073508113622665, 0.2100992053747177, 0.14025519788265228, -0.11917833238840103, -0.24003417789936066, -0.11652103811502457, 0.21397870779037476, 0.29407861828804016, -0.06993107497692108, 0.22796817123889923, 0.04207894206047058, 0.05837436765432358, -0.3201344609260559, 0.2476842999458313, 0.017178453505039215, 0.045468129217624664, 0.09804685413837433, -0.24006234109401703, 0.3954664170742035, 0.08486457169055939, 0.18532302975654602, 0.14780408143997192, 0.13192632794380188, 0.4758424758911133, -0.006014757789671421, -0.02758491225540638, -0.008976285345852375, 0.4516295790672302, 0.18057803809642792, -0.3402882516384125, -0.1420488953590393, -0.18555939197540283, -0.0007573477341793478, 0.0775008276104927, 0.15927369892597198, -0.08404666930437088, 0.3020504117012024, -0.10745492577552795, 0.060756195336580276, -0.11801257729530334, 0.029121890664100647, 0.34010234475135803, 0.17099928855895996, -0.3174932599067688, 0.03752131760120392, -0.2074112445116043, -0.06406959146261215, 0.15766441822052002, 0.004249480552971363, 0.0024911495856940746, -0.15622299909591675, 0.13022403419017792, 0.11905727535486221, -0.2286057025194168, -0.2915286719799042, -0.014925127848982811, 0.403652161359787, -0.33745548129081726, 0.062464311718940735, -0.35343730449676514, -0.260183721780777, -0.054271966218948364, -0.1631038933992386, -0.16000261902809143, -0.20464976131916046, -0.11035097390413284, 0.1549532562494278, 0.19716811180114746, 0.15693944692611694, -0.3404223918914795, -0.06874649226665497, 0.2280447632074356, -0.2127586454153061, 0.21781907975673676, -0.3201690912246704, -0.09057365357875824, 0.09150397777557373, 0.2567334473133087, 0.11535705626010895, 0.216878280043602, -0.07115211337804794, -0.19917015731334686, 0.19511480629444122, -0.3111150562763214, -0.06906353682279587, -0.2529276907444, 0.16224469244480133, -0.012773102149367332, 0.28293976187705994, 0.0663686990737915, -0.26453304290771484, 0.21239297091960907, 0.035251591354608536, -0.15870526432991028, 0.30225899815559387, 0.056969597935676575, -0.4054757058620453, -0.12616798281669617, -0.6859316825866699, -0.2402990162372589, -0.29652413725852966, 0.020735079422593117, 0.2632634937763214, 0.17071105539798737, 0.45188379287719727, 0.3053709864616394, 0.021537749096751213, 0.08881963044404984, 0.06292900443077087, -0.15816588699817657, -0.0866924375295639, 0.22770380973815918, -0.15107229351997375, -0.401175856590271, 0.1772230863571167, 0.20705260336399078, 0.5639325380325317, 0.1303524225950241, -0.4385870099067688, 0.15774215757846832, -0.10611391812562943, -0.07551892101764679, -0.2182873785495758, 0.10153936594724655, 0.06630246341228485, -0.210977241396904, -0.025753017514944077, 0.007954622618854046, -0.19149281084537506, -0.03013612888753414, 0.1466684192419052, 0.26305803656578064, 0.2407560497522354, 0.427897572517395, -0.268168181180954, 0.5905355215072632, 0.014263003133237362, -0.16091910004615784, 0.0694773942232132, -0.15895815193653107, 0.4026760756969452, -0.0031176493503153324, -0.5069510340690613, 0.21585212647914886, 0.28426292538642883, 0.017194107174873352, 0.17447680234909058, 0.03403102234005928, -0.2551560401916504, -0.1661706119775772, 0.23797008395195007, -0.3800160586833954, -0.2908550202846527, 0.19608095288276672, -0.26110175251960754, 0.07894759625196457, 0.04485424980521202, -0.05900613218545914, -0.08908896148204803, -0.1388104110956192, -0.1887182742357254, 0.43584075570106506, 0.06431856751441956, 0.03150128945708275, -0.4632994532585144, 0.050568386912345886, -0.342972993850708, 0.20747315883636475, -0.15875375270843506, 0.6160392761230469, -0.12195751816034317, -0.09990619122982025, 0.11056839674711227, -0.014026936143636703, 0.38198378682136536, 0.08129311352968216, 0.16612446308135986, 0.33757686614990234, -0.12394202500581741, -0.4966866075992584, -0.041407838463783264, 0.0024589779786765575, 0.44725164771080017, 0.47530314326286316, 0.15871277451515198, 0.0748981386423111, -0.11193161457777023, -0.18555082380771637, 0.1059320792555809, -0.09404423087835312, -0.2817321717739105, -0.3055528402328491, -0.3186790645122528, -0.26930585503578186, -0.4744173288345337, -0.17208360135555267, 0.23046892881393433, -0.09995090961456299, 0.16761049628257751, -0.1212368831038475, -0.21667252480983734, 0.1496957540512085, 0.3861214518547058, 0.039885248988866806, -0.08788318186998367, 0.15042048692703247, 0.2156401425600052, -0.11630438268184662, 0.13654929399490356, 0.36144790053367615, 0.10973751544952393, -0.7085857391357422, -0.046175822615623474, -0.06683246791362762, 0.15759828686714172, -0.2619445025920868, -0.16748720407485962, -0.17460255324840546, 0.07693815231323242, -0.13607336580753326, 0.0028720649424940348, 0.16608908772468567, 0.2037220001220703, 0.0454278364777565, -0.2044677883386612, -0.2929302453994751, 0.26326248049736023, -0.10856539011001587, 0.03423304855823517, 0.19201159477233887, -0.21351595222949982, -0.1601371020078659, 0.37818965315818787, -0.02102402038872242, 0.5590002536773682, -0.3097167909145355, 0.14125722646713257, 0.27619513869285583, 0.013915304094552994, 0.6699486374855042, -0.1115625873208046, 0.21044349670410156, -0.3174937963485718, -0.014190972782671452, -0.05656164139509201, -0.20073285698890686, 0.026438310742378235, 0.11239245533943176, -0.12164928019046783, 0.18026548624038696, -0.02423579804599285, -0.2814284861087799, 0.12919816374778748, 0.2311953455209732, 0.5022935271263123, -0.24463242292404175, -0.7192251682281494, 0.20236873626708984, -0.21775221824645996, 0.052268028259277344, 0.05177248641848564, -0.1352650672197342, -0.22485540807247162, 0.048974622040987015, -0.3124028146266937, 0.3894597589969635, 0.09013549238443375, 0.34956464171409607, 0.30822739005088806, -0.04682810977101326, 0.05550869554281235, 0.23091503977775574, 0.17503699660301208, 0.22789554297924042, -0.17040999233722687, 0.234110027551651, -0.008797767572104931, -0.2591129243373871, 0.24826034903526306, 0.10018890351057053, 0.18867483735084534, -0.16275134682655334, -0.2001492828130722, 0.13314668834209442, 0.08533234894275665, -0.523974597454071, 0.13864587247371674, 0.1783328503370285, -0.07202610373497009, 0.09921793639659882, -0.28296223282814026, 0.10971921682357788, 0.10711763054132462, 0.20754732191562653, 0.11732307076454163, 0.3670854866504669, 0.073680080473423, 0.34078454971313477, 0.007955977693200111, -0.4690265655517578, 0.14298686385154724, 0.2529999017715454, 0.17923685908317566, 0.00905524380505085, 0.3015260398387909, 0.14253170788288116, 0.04716561734676361, -0.1045873686671257, -0.17465387284755707, -0.46191680431365967, 0.010912363417446613, -0.1224684864282608, 0.3127571642398834, 0.22294384241104126, 0.15213680267333984, -0.1818501055240631, 0.04104071855545044, -0.22363978624343872, 0.09975965321063995, -0.8598701357841492, -0.13541103899478912, -0.05482833459973335, -0.4878777265548706, -0.0006451213848777115, 0.21669968962669373, -0.046996328979730606, -0.08471474051475525, -0.1913500428199768, -0.24978752434253693, 0.01976637728512287, -0.20321954786777496, -0.10998799651861191, 0.281956285238266, 0.06199800223112106, 0.12834985554218292, -0.22952976822853088, 0.12995898723602295, -0.40338602662086487, -0.10847590118646622, -0.19876620173454285, -0.0028029417153447866, 0.1285456418991089, 0.05298750847578049, -0.25737908482551575, -0.20843635499477386, -0.24599558115005493, -0.3299536108970642, 0.10250119119882584, -0.0409882552921772, -0.02015618607401848, -0.1540883630514145, 0.0581766776740551, -0.506923496723175, 0.01658896915614605, 0.11863637715578079, 0.35865893959999084, -0.11647409945726395, 0.2467459738254547, 0.2674185633659363, 0.2644314169883728, -0.175306037068367, -0.09090729057788849, -0.5406355857849121, -0.06691138446331024, -0.2757548987865448, 0.16379863023757935, 0.3702976703643799, -0.10896941274404526, 0.132483571767807, 0.0816415324807167, 0.05350164696574211, 0.5262338519096375, -0.17825695872306824, -0.046150341629981995, 0.12992705404758453, 0.14884014427661896, -0.2839469015598297, -0.13353000581264496, 0.3298017680644989, 0.30998125672340393, -0.2143109142780304, 0.20181073248386383, -0.022296100854873657, 0.022689109668135643, 0.1296837478876114, 0.03032255917787552, 0.5294105410575867, -0.24933065474033356, 0.08841229975223541, -0.15197859704494476, -0.24768197536468506, -0.09166641533374786, -0.21199217438697815, 0.2499309629201889, 0.2411660999059677, 0.372855007648468, -0.001411779667250812, 0.10809283703565598, 0.19088120758533478, -0.12381577491760254, -0.013418477959930897, -0.35449305176734924, -0.46468979120254517, 0.16359668970108032, 0.02332327887415886, 0.3950408697128296, 0.00796432700008154, 0.09288644790649414, 0.051995277404785156, -0.24559466540813446, -0.06572743505239487, 0.23702634871006012, 0.11939304322004318, -0.0006321917753666639, -0.20608842372894287, 0.04167882353067398, -0.03172682970762253, -0.18166425824165344, 0.037583451718091965, -0.11872730404138565, 0.08652278780937195, 0.3490440249443054, -0.3035862445831299, -0.7911367416381836, 0.2285948246717453, 0.0662601962685585, -0.10320693254470825, 0.0720452144742012, 0.3918702304363251, 0.023688245564699173, 0.043521564453840256, 0.3245852291584015, 0.10883176326751709, 0.5102601647377014, 0.41141894459724426, -0.04923408105969429, -0.04577319696545601, 0.02427259460091591, 0.11899858713150024, -0.08505997061729431, 0.32234376668930054, 0.03320073336362839, 0.3221088647842407, 0.27460601925849915, 0.11984921991825104, 0.05741497874259949, 0.28899312019348145, 0.16253678500652313, 0.07124621421098709, 0.022603735327720642, 0.06667352467775345, 0.10231450200080872, 0.2394503355026245, -0.2568705976009369, 0.07248644530773163, -0.33614403009414673, -0.11034886538982391, 0.2590261995792389, 0.20748743414878845, 0.11409585922956467, 0.03364251181483269, 0.058249980211257935, -0.13191518187522888, 0.7058612704277039, 0.5107813477516174, 0.37177401781082153, -0.14329245686531067, -0.060413990169763565, -0.5617271661758423, 0.16892506182193756, -0.22681047022342682, -0.2093268781900406, 0.10783427953720093, 0.1282418668270111, 0.4357295036315918, 0.19244569540023804, -0.02736721932888031, -0.1725473552942276, -0.4005466103553772, -0.02374391071498394, -0.34282293915748596, -0.2178269326686859, 0.007897121831774712, -0.11197426170110703, -0.13830077648162842, -0.018038736656308174, 0.0899634137749672, -0.18239173293113708, -0.0019595231860876083, 0.027018873021006584, 0.15782661736011505, -0.033266592770814896, 0.09149448573589325, 0.40420034527778625, 0.015184328891336918, 0.4290499687194824, -0.02705533057451248, -0.2645827531814575, -0.4509972333908081, -0.1991007775068283, -0.3306639790534973, 0.35170096158981323, 0.23522056639194489, 0.17624498903751373, -0.1694793552160263, 0.18722210824489594, -0.16852834820747375, 0.483817458152771, -0.05659081041812897, -0.5422760844230652, 0.1255190521478653, 0.07394196093082428, 0.09575597196817398, 0.14441125094890594, -0.010646190494298935, 0.053534407168626785, 0.004479722585529089, 0.5422229766845703, -0.24582862854003906, -0.137821763753891, 0.27031224966049194, -0.259565144777298, -0.3543884754180908, 0.2645857632160187, -0.13422997295856476, -0.3655936121940613, 0.3093405067920685, -0.537162184715271, 0.16548743844032288, 0.34196963906288147, -0.1092514619231224, -0.17104510962963104, -0.05043286830186844, 0.10095012933015823, -0.20602887868881226, -0.08584988862276077, 0.5699599385261536, -0.11934273689985275, -0.2334056794643402, -0.046961892396211624, 0.009048416279256344 ]
https://github.com/huggingface/datasets/issues/290
ConnectionError - Eli5 dataset download
It should ne fixed now, thanks for reporting this one :) It was an issue on our google storage. Let me now if you're still facing this issue.
Hi, I have a problem with downloading Eli5 dataset. When typing `nlp.load_dataset('eli5')`, I get ConnectionError: Couldn't reach https://storage.googleapis.com/huggingface-nlp/cache/datasets/eli5/LFQA_reddit/1.0.0/explain_like_im_five-train_eli5.arrow I would appreciate if you could help me with this issue.
28
ConnectionError - Eli5 dataset download Hi, I have a problem with downloading Eli5 dataset. When typing `nlp.load_dataset('eli5')`, I get ConnectionError: Couldn't reach https://storage.googleapis.com/huggingface-nlp/cache/datasets/eli5/LFQA_reddit/1.0.0/explain_like_im_five-train_eli5.arrow I would appreciate if you could help me with this issue. It should ne fixed now, thanks for reporting this one :) It was an issue on our google storage. Let me now if you're still facing this issue.
[ -0.24975916743278503, 0.08938395231962204, -0.07782433182001114, 0.3270987272262573, 0.20817448198795319, 0.0021226168610155582, 0.2745365798473358, 0.13816246390342712, 0.049143750220537186, 0.04059313237667084, -0.031689539551734924, 0.04929576814174652, 0.12689165771007538, 0.33280953764915466, 0.09711732715368271, -0.18825377523899078, -0.012896898202598095, 0.08560705929994583, -0.009513618424534798, 0.10711328685283661, -0.045784931629896164, 0.1713876873254776, -0.10189210623502731, 0.17260244488716125, -0.1952628195285797, 0.12303610891103745, -0.054277610033750534, -0.07669545710086823, -0.3689579367637634, -0.28351032733917236, 0.3438396453857422, 0.12487541139125824, 0.18020787835121155, -0.027557406574487686, -0.00011615790572250262, -0.07733765989542007, 0.28452691435813904, -0.0068009356036782265, -0.30155622959136963, -0.48854872584342957, -0.1385287642478943, -0.19943667948246002, 0.3694055676460266, -0.072276271879673, 0.20156803727149963, 0.16523513197898865, 0.43295884132385254, 0.10277549177408218, 0.48388898372650146, 0.16649042069911957, 0.18476472795009613, -0.03377607837319374, 0.3706134259700775, 0.09790997952222824, 0.06919831782579422, -0.352310448884964, 0.05009092763066292, 0.3374672532081604, -0.14071717858314514, -0.1857183277606964, 0.11421992629766464, 0.09216766804456711, 0.16644899547100067, 0.11011282354593277, 0.18217001855373383, 0.13093946874141693, -0.07190270721912384, -0.3520623743534088, 0.024204518646001816, 0.11670733243227005, 0.9977472424507141, -0.0397394560277462, -0.23932363092899323, 0.0057099247351288795, 0.14929871261119843, -0.4184674620628357, 0.5427042245864868, 0.27126428484916687, -0.14786536991596222, 0.05033351480960846, -0.3415909707546234, -0.39827531576156616, -0.35179194808006287, 0.3603951334953308, -0.03552442044019699, 0.06353616714477539, -0.08161229640245438, 0.14034759998321533, 0.09288232028484344, -0.08111968636512756, -0.10815690457820892, 0.14716513454914093, -0.23662926256656647, 0.2940261662006378, -0.3973177671432495, -0.0846187174320221, -0.2899482846260071, 0.1905508190393448, 0.2292870283126831, 0.3845520317554474, 0.08991040289402008, 0.05556022375822067, -0.12632347643375397, 0.13765427470207214, 0.3958085775375366, 0.2708767056465149, 0.1903693526983261, 0.07801546901464462, 0.1873907744884491, 0.17488129436969757, -0.004695086274296045, -0.09811488538980484, -0.1432071179151535, -0.056034594774246216, -0.11155760288238525, -0.22070583701133728, 0.08076006919145584, -0.3565365970134735, -0.32904523611068726, 0.09903664886951447, -0.46237120032310486, -0.182475745677948, -0.02684149704873562, 0.18230485916137695, -0.27287757396698, 0.012621222995221615, 0.05286895111203194, 0.3319448232650757, -0.10537785291671753, -0.23101308941841125, -0.16880638897418976, 0.01359931007027626, -0.21985967457294464, -0.02831505797803402, 0.1741315722465515, -0.19117353856563568, 0.46881482005119324, -0.2116233855485916, -0.15071184933185577, -0.12416744232177734, 0.10944849252700806, -0.12628981471061707, -0.5147405862808228, 0.07520105689764023, 0.22051265835762024, 0.09924904257059097, -0.05207838863134384, -0.27312812209129333, 0.010548887774348259, -0.12749619781970978, -0.22430530190467834, -0.196920707821846, -0.4014474153518677, 0.1562359482049942, -0.18029093742370605, -0.20929066836833954, -0.33402687311172485, 0.1914106160402298, -0.0650036409497261, -0.20150327682495117, -0.18948335945606232, 0.053663335740566254, -0.13267864286899567, -0.14890249073505402, 0.28168150782585144, 0.27821120619773865, 0.047650620341300964, -0.4040091335773468, -0.17967510223388672, -0.15283837914466858, 0.10772410780191422, 0.42099395394325256, -0.05976017192006111, -0.1324632465839386, -0.1739882081747055, 0.35153457522392273, 0.6295804381370544, -0.15927836298942566, -0.9718021750450134, 0.26651984453201294, -0.2599477767944336, -0.2456945776939392, -0.05101746693253517, 0.16132131218910217, 0.13802719116210938, 0.12878769636154175, 0.17310576140880585, 0.4931620657444, -0.10168236494064331, -0.08016025274991989, -0.164775088429451, -0.30462580919265747, 0.12371470779180527, 0.0984533429145813, 0.0070140166208148, 0.08282169699668884, 0.20470932126045227, 0.01177197229117155, 0.12115183472633362, 0.221916064620018, 0.10491538792848587, 0.18532729148864746, 0.27195411920547485, -0.08458173274993896, -0.18598048388957977, 0.07553865015506744, -0.5517847537994385, 0.13203872740268707, -0.2430148422718048, 0.23676030337810516, -0.3266127109527588, 0.1815018504858017, -0.13782073557376862, -0.02505781687796116, -0.08718115091323853, -0.019626041874289513, 0.05883125960826874, -0.2522032856941223, 0.0864872932434082, 0.3663792014122009, -0.012097160331904888, 0.48740726709365845, 0.0745210126042366, 0.24703054130077362, -0.3514164984226227, 0.5134069323539734, -0.2010790854692459, -0.08564265072345734, 0.15342122316360474, -0.14303307235240936, 0.002864999696612358, 0.015937440097332, -0.23615895211696625, 0.08543537557125092, -0.5183469653129578, 0.18100577592849731, 0.2617422044277191, 0.41707584261894226, 0.18436899781227112, -0.4226614832878113, 0.2094874083995819, -0.26816022396087646, 0.09408281743526459, 0.07690294831991196, 0.045784976333379745, 0.06140144541859627, 0.2973322868347168, 0.08593317866325378, -0.03689068928360939, 0.3502420485019684, 0.3250184655189514, -0.03222532570362091, 0.07452938705682755, -0.1063506007194519, 0.4227868914604187, 0.29467642307281494, 0.28271734714508057, -0.21027475595474243, -0.24367418885231018, 0.20491985976696014, 0.36487600207328796, 0.10896479338407516, 0.0341825932264328, 0.38221439719200134, -0.24217092990875244, -0.44250810146331787, -0.11415176093578339, -0.085402712225914, 0.38812556862831116, 0.05481461435556412, -0.0007227128953672945, 0.15309910476207733, 0.05201264098286629, -0.1004076898097992, 0.16077260673046112, 0.07382284104824066, 0.09988659620285034, 0.04795195162296295, 0.17331571877002716, 0.05226585641503334, -0.14894703030586243, -0.1117214635014534, 0.006889979355037212, 0.32331809401512146, -0.11165022850036621, 0.1294984519481659, -0.06829723715782166, -0.22032397985458374, 0.16533799469470978, -0.2381618767976761, -0.4337790012359619, -0.31473466753959656, 0.008576728403568268, 0.26933553814888, 0.10833509266376495, 0.07351597398519516, -0.027686765417456627, 0.06595111638307571, 0.2006315141916275, 0.009531829506158829, -0.041214123368263245, -0.2337367981672287, -0.31307968497276306, 0.0712064877152443, 0.3317568004131317, 0.10177318751811981, 0.16272588074207306, -0.1751338243484497, -0.06729071587324142, -0.4746848940849304, -0.20869389176368713, 0.07960162311792374, -0.12448082864284515, 0.4008781611919403, 0.0662376880645752, 0.5214604735374451, -0.19200098514556885, -0.10501832515001297, 0.19280169904232025, -0.17130854725837708, -0.19808876514434814, -0.028674103319644928, -0.013122961856424809, 0.1640206277370453, 0.1673433780670166, -0.252357542514801, -0.4018145203590393, -0.2180769145488739, 0.48858514428138733, 0.14701247215270996, 0.051038630306720734, -0.08982957899570465, 0.10644958168268204, 0.07711777091026306, 0.15049520134925842, -0.10094534605741501, -0.2762486934661865, -0.4101826250553131, 0.19206443428993225, -0.08368909358978271, -0.3182206451892853, 0.12956885993480682, 0.16089585423469543, 0.2064037173986435, 0.05755347013473511, -0.5428876280784607, -0.1649181991815567, -0.030797624960541725, 0.20129437744617462, 0.020249295979738235, -0.18859699368476868, 0.27063384652137756, -0.1079486608505249, 0.008533625863492489, 0.2917351722717285, -0.08219882845878601, 0.2879413664340973, 0.2989262640476227, 0.4235112965106964, 0.09925215691328049, 0.6737158298492432, -0.006791430525481701, 0.43940573930740356, 0.14975227415561676, -0.15615998208522797, 0.5129273533821106, 0.21771401166915894, 0.04709620401263237, -0.0618586428463459, -0.05260711908340454, 0.048191800713539124, -0.07846177369356155, 0.036763064563274384, 0.07758849114179611, -0.007358491886407137, -0.2609279751777649, -0.3035992980003357, -0.21352969110012054, -0.24060896039009094, -0.18183153867721558, -0.009404623880982399, -0.3316061198711395, -0.03164557367563248, 0.2277185469865799, -0.34775713086128235, -0.08157624304294586, -0.32815054059028625, -0.15389056503772736, 0.11374280601739883, 0.12559029459953308, 0.09887868911027908, -0.40164005756378174, -0.1648542732000351, -0.7408906817436218, 0.47986459732055664, -0.03667360544204712, 0.4076281487941742, -0.3573441505432129, 0.19848528504371643, 0.15327443182468414, -0.047502174973487854, 0.3783425986766815, -0.18770739436149597, -0.10757692158222198, -0.18085111677646637, 0.4171362519264221, -0.09906289726495743, -0.17394980788230896, 0.03279336914420128, 0.3198184370994568, 0.2112649530172348, 0.004858070518821478, -0.4678069055080414, -0.04185553267598152, 0.23672518134117126, -0.019120465964078903, -0.1713789701461792, -0.16970384120941162, -0.19117781519889832, -0.18129079043865204, -0.22505751252174377, -0.15085045993328094, -0.07159799337387085, 0.205339252948761, 0.06143035739660263, 0.0776098296046257, 0.09269820898771286, -0.05529037117958069, -0.10570614784955978, -0.26377829909324646, 0.12294694781303406, -0.08241061866283417, 0.23359285295009613, 0.33581164479255676, 0.08293481916189194, -0.06622113287448883, 0.7518084049224854, 0.07220388203859329, -0.3747422397136688, 0.21291793882846832, 0.0726345106959343, 0.050495486706495285, 0.043691325932741165, 0.10961159318685532, 0.21675549447536469, 0.2070123255252838, 0.3138193190097809, 0.11381036043167114, 0.0818905457854271, 0.3213292360305786, 0.14955148100852966, -0.22840304672718048, -0.3196689188480377, 0.5979222655296326, -0.07724575698375702, 0.02662883885204792, 0.3614582121372223, 0.02544785663485527, -0.052703697234392166, 0.13225141167640686, -0.16718840599060059, 0.9752012491226196, -0.06372722238302231, 0.08885090798139572, 0.2906128168106079, -0.036392614245414734, 0.549563467502594, -0.3213941752910614, 0.14222560822963715, -0.4006834328174591, -0.3116591274738312, -0.1080607920885086, -0.15065868198871613, -0.1514250785112381, 0.03885859251022339, -0.07068406045436859, 0.38904646039009094, -0.15696027874946594, -0.030770476907491684, 0.15147720277309418, 0.36119601130485535, -0.32574331760406494, 0.0010747266933321953, -0.40617087483406067, 0.12439841032028198, -0.11155864596366882, 0.4765821099281311, -0.17909352481365204, -0.17709477245807648, -0.1528216004371643, -0.3629813492298126, -0.4525061845779419, 0.2904270589351654, -0.11861336976289749, 0.2812657356262207, 0.18375909328460693, -0.214352548122406, 0.08216684311628342, 0.3698537051677704, 0.27884745597839355, -0.11346260458230972, -0.3012588620185852, 0.21390455961227417, -0.36418965458869934, -0.2792796194553375, 0.19098840653896332, 0.14208556711673737, 0.1644797921180725, -0.17113320529460907, -0.34580275416374207, 0.3303351402282715, 0.03008808009326458, -0.31502509117126465, 0.038394976407289505, -0.06300710141658783, -0.16501159965991974, -0.011163905262947083, -0.04914313554763794, -0.1779935359954834, -0.2788168787956238, 0.018960222601890564, 0.08542221784591675, 0.27858805656433105, 0.12998762726783752, -0.07477772980928421, 0.3183715343475342, -0.10614995658397675, -0.10945916175842285, 0.6303487420082092, -0.03671448305249214, -0.2569088637828827, 0.6961233615875244, 0.07159978896379471, -0.05231958255171776, -0.10273558646440506, -0.18063662946224213, -0.0620623454451561, -0.4142872989177704, -0.12035714089870453, -0.1896396428346634, 0.26820674538612366, -0.24036934971809387, 0.01386722270399332, 0.08328275382518768, 0.024538423866033554, 0.29882875084877014, -0.5705105066299438, -0.23399539291858673, 0.3107902407646179, -0.6751430630683899, 0.09125148504972458, -0.06195497512817383, -0.040534958243370056, 0.2073068767786026, 0.04651813581585884, -0.23350156843662262, 0.016836347058415413, -0.563058078289032, -0.10964438319206238, 0.4691392183303833, -0.317960262298584, 0.33906957507133484, 0.033077262341976166, 0.1282811164855957, 0.07091507315635681, -0.4158705472946167, -0.12326942384243011, 0.14046186208724976, 0.1342478096485138, 0.07446540892124176, -0.1471761018037796, -0.08917510509490967, -0.04941112548112869, -0.12036293745040894, 0.203783318400383, -0.08314331620931625, -0.08020606637001038, 0.00882398895919323, -0.04099515825510025, 0.03888817876577377, 0.05324213579297066, -0.17928344011306763, 0.18629808723926544, 0.05706632137298584, 0.40409401059150696, -0.066329225897789, 0.11072074621915817, -0.011727189645171165, 0.007330319844186306, -0.5277682542800903, -0.02336544170975685, -0.1421174556016922, -0.10286824405193329, 0.2993014454841614, -0.3585299849510193, -0.03191574662923813, -0.09337656199932098, -0.039817240089178085, 0.3959400951862335, -0.36069783568382263, 0.04506870359182358, 0.45363396406173706, 0.20475952327251434, -0.11504502594470978, -0.048942018300294876, 0.16180898249149323, -0.06571058928966522, -0.19152119755744934, -0.10489748418331146, 0.3560289442539215, -0.14253298938274384, 0.007494416553527117, 0.11648896336555481, 0.5072413682937622, -0.22874759137630463, 0.05391158163547516, -0.19039811193943024, -0.10980520397424698, 0.004094104282557964, 0.15790489315986633, 0.2635747194290161, 0.1804441660642624, 0.029962241649627686, -0.29741254448890686, -0.30583271384239197, -0.36944276094436646, 0.35818102955818176, -0.03276762738823891, -0.38691797852516174, -0.4250793159008026, 0.3791896402835846, -0.14244775474071503, 0.09451831877231598, 0.0651351660490036, 0.2678671181201935, 0.0183985847979784, 0.027820618823170662, -0.4035418629646301, 0.2810952961444855, 0.03723439946770668, -0.07728780806064606, 0.05903831496834755, -0.206024631857872, -0.2482365071773529, 0.15612046420574188, -0.050764407962560654, -0.22875827550888062, -0.008186956867575645, 0.25362473726272583, -0.12232959270477295, -0.332630455493927, 0.05956510826945305, 0.4721240699291229, 0.05577056482434273, -0.2593836486339569, 0.2974852919578552, -0.054521478712558746, -0.08407436311244965, 0.06436828523874283, 0.2882588505744934, 0.42914849519729614, 0.20778706669807434, -0.11136084794998169, 0.17136318981647491, 0.14562439918518066, -0.06806187331676483, 0.05898597463965416, 0.04044175148010254, 0.41936346888542175, -0.3132346272468567, 0.16628533601760864, 0.10873561352491379, -0.13227374851703644, 0.3147645890712738, -0.02746478281915188, 0.7163369655609131, -0.05032354220747948, -0.0370522066950798, -0.14351677894592285, -0.01211677398532629, -0.23586294054985046, -0.1394413411617279, -0.627419650554657, 0.1356130987405777, -0.044700007885694504, 0.07734030485153198, 0.11177778244018555, -0.21200084686279297, 0.03446480631828308, -0.2287582904100418, 0.5761770606040955, 0.5365757942199707, 0.45339974761009216, -0.20049519836902618, -0.24970242381095886, -0.4111523926258087, 0.1546655297279358, -0.07052697986364365, 0.13288366794586182, 0.08823073655366898, 0.30867674946784973, -0.1362999975681305, 0.18988466262817383, 0.10294940322637558, 0.4398312270641327, -0.1915183812379837, 0.0976923480629921, -0.4273044764995575, -0.11926306039094925, 0.2379491627216339, 0.31402158737182617, -0.12239864468574524, -0.03317461535334587, 0.14723217487335205, -0.25948065519332886, 0.02683490887284279, -0.25572243332862854, 0.12617114186286926, -0.1776331514120102, 0.23998162150382996, 0.42029067873954773, 0.255069375038147, 0.46534720063209534, 0.09304895251989365, -0.22248362004756927, -0.2390579730272293, -0.37548792362213135, -0.19188153743743896, -0.04374593868851662, 0.11290848255157471, 0.3058719038963318, -0.10668211430311203, 0.3847692310810089, -0.29157915711402893, 0.16419917345046997, -0.11915946751832962, 0.15464015305042267, -0.167275071144104, -0.1117936223745346, 0.18179376423358917, 0.1824830323457718, 0.005861486773937941, 0.058616556227207184, 0.08683179318904877, -0.06921662390232086, -0.34200790524482727, -0.0011574854142963886, 0.31779617071151733, -0.06576342135667801, 0.036411527544260025, 0.10981325060129166, 0.26013123989105225, 0.24801284074783325, -0.05848713964223862, -0.5286948084831238, 0.2906092405319214, 0.4041070342063904, -0.16637443006038666, -0.34939098358154297, 0.07962197065353394, 0.3144547939300537, 0.16725575923919678, -0.08844628185033798, 0.1378219574689865, -0.09061766415834427, -0.16784653067588806, 0.0019324192544445395, -0.1552887260913849 ]
https://github.com/huggingface/datasets/issues/288
Error at the first example in README: AttributeError: module 'dill' has no attribute '_dill'
It looks like the bug comes from `dill`. Which version of `dill` are you using ?
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:469: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:470: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:471: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:472: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:473: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:476: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6 return f(*args, **kwds) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`. from ._conv import register_converters as _register_converters Traceback (most recent call last): File "/Users/parasol_tree/Resource/019 - Github/AcademicEnglishToolkit /test.py", line 7, in <module> import nlp File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/__init__.py", line 27, in <module> from .arrow_dataset import Dataset File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/arrow_dataset.py", line 31, in <module> from nlp.utils.py_utils import dumps File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/__init__.py", line 20, in <module> from .download_manager import DownloadManager, GenerateMode File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/download_manager.py", line 25, in <module> from .py_utils import flatten_nested, map_nested, size_str File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 244, in <module> class Pickler(dill.Pickler): File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 247, in Pickler dispatch = dill._dill.MetaCatchingDict(dill.Pickler.dispatch.copy()) AttributeError: module 'dill' has no attribute '_dill'
16
Error at the first example in README: AttributeError: module 'dill' has no attribute '_dill' /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:469: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:470: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:471: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:472: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:473: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:476: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6 return f(*args, **kwds) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`. from ._conv import register_converters as _register_converters Traceback (most recent call last): File "/Users/parasol_tree/Resource/019 - Github/AcademicEnglishToolkit /test.py", line 7, in <module> import nlp File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/__init__.py", line 27, in <module> from .arrow_dataset import Dataset File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/arrow_dataset.py", line 31, in <module> from nlp.utils.py_utils import dumps File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/__init__.py", line 20, in <module> from .download_manager import DownloadManager, GenerateMode File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/download_manager.py", line 25, in <module> from .py_utils import flatten_nested, map_nested, size_str File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 244, in <module> class Pickler(dill.Pickler): File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 247, in Pickler dispatch = dill._dill.MetaCatchingDict(dill.Pickler.dispatch.copy()) AttributeError: module 'dill' has no attribute '_dill' It looks like the bug comes from `dill`. Which version of `dill` are you using ?
[ 0.07698304951190948, -0.4020940661430359, -0.1799212396144867, 0.0659826397895813, 0.1492691934108734, -0.0033463086001574993, 0.5573249459266663, 0.3920772075653076, -0.011485493741929531, 0.26729336380958557, -0.052443649619817734, 0.33477309346199036, -0.050594259053468704, -0.31200268864631653, 0.011162450537085533, -0.32917702198028564, 0.08354675769805908, 0.2736496329307556, -0.3709401786327362, -0.2723831534385681, -0.2335178554058075, 0.2800566554069519, -0.07766246050596237, 0.24849803745746613, -0.1481040120124817, -0.03494347631931305, 0.12143944203853607, 0.10596088320016861, 0.0675768181681633, -0.28865841031074524, 0.19657769799232483, -0.17455719411373138, 0.2275904417037964, 0.4768025875091553, -0.00010438693425385281, 0.13615895807743073, 0.3375535309314728, -0.03460906445980072, -0.13421867787837982, -0.35059311985969543, 0.47139084339141846, 0.05932262912392616, 0.3363771438598633, -0.35007938742637634, -0.05079091340303421, -0.2969655990600586, -0.09695788472890854, -0.30893537402153015, 0.44411006569862366, 0.4418494403362274, 0.30106988549232483, 0.10265272110700607, 0.24469473958015442, -0.1699155569076538, -0.02083578333258629, -0.029783306643366814, -0.0677933394908905, 0.3753474950790405, 0.13835179805755615, 0.14741703867912292, 0.3823759853839874, 0.3424665331840515, 0.16093137860298157, 0.0776083841919899, 0.3393227159976959, 0.03225760534405708, 0.6600615978240967, -0.4541982114315033, -0.07750116288661957, 0.2736721336841583, 0.18128809332847595, -0.11844329535961151, -0.32097986340522766, 0.1269800066947937, 0.006010121665894985, -0.24750150740146637, 0.061675895005464554, -0.06774721294641495, -0.24967804551124573, -0.032574571669101715, 0.4458368718624115, -0.044266048818826675, -0.17719902098178864, 0.19539541006088257, -0.01851029135286808, 0.1636369228363037, -0.04493085667490959, -0.05065402016043663, 0.027161188423633575, -0.33402538299560547, 0.3872077167034149, 0.09286514669656754, 0.44849976897239685, 0.09601061046123505, -0.07596103847026825, -0.12198544293642044, 0.06254665553569794, -0.6255770921707153, -0.2034100592136383, -0.2914334535598755, 0.07395128905773163, -0.012258334085345268, 0.11802319437265396, 0.2710880935192108, -0.16345711052417755, 0.06675602495670319, 0.1067277193069458, 0.16068924963474274, 0.33548104763031006, 0.07939432561397552, 0.3280113637447357, 0.1698736548423767, -0.30215299129486084, -0.12513844668865204, -0.1567845642566681, 0.0640961080789566, 0.3410717248916626, 0.09396400302648544, -0.5376567840576172, -0.0486493781208992, -0.19243717193603516, 0.047451093792915344, -0.005582048557698727, 0.2568106949329376, -0.03795149549841881, 0.1916802078485489, 0.4150511920452118, 0.11126736551523209, -0.2454228699207306, 0.004610822070389986, -0.2229355424642563, 0.3555656373500824, -0.07030734419822693, -0.20205768942832947, 0.058731287717819214, 0.15545424818992615, 0.3014606833457947, -0.09930962324142456, 0.13105405867099762, -0.08252263069152832, 0.1695730984210968, 0.014668256044387817, -0.03960857167840004, 0.15427693724632263, -0.29427626729011536, -0.045142244547605515, 0.26223912835121155, -0.18552403151988983, -0.2611551582813263, 0.09121715277433395, -0.23356376588344574, -0.009562596678733826, -0.45414823293685913, 0.3482019007205963, 0.2507959306240082, 0.11042477190494537, 0.2338385432958603, 0.030489560216665268, 0.10521820932626724, 0.04706280678510666, -0.10150960087776184, -0.24462226033210754, -0.10236239433288574, -0.33066460490226746, 0.2848880887031555, 0.15443840622901917, -0.058851610869169235, -0.15748441219329834, -0.14238491654396057, -0.03973669186234474, 0.12016020715236664, 0.220234215259552, -0.13517653942108154, -0.013513961806893349, 0.11746732890605927, -0.17192421853542328, 0.6146843433380127, -0.5745144486427307, 0.1056554764509201, -0.06110113859176636, 0.13710914552211761, -0.04822410270571709, -0.010827102698385715, -0.07861991226673126, 0.14182375371456146, -0.06172776222229004, 0.31987130641937256, 0.3495156466960907, 0.25150540471076965, -0.11045792698860168, -0.3646186292171478, 0.01227232813835144, 0.13004329800605774, 0.0910365954041481, 0.09657200425863266, 0.06350051611661911, -0.05236991122364998, -0.04806073009967804, 0.06474495679140091, -0.1598062515258789, 0.004075569566339254, 0.12344411760568619, 0.08758533746004105, -0.08677840977907181, 0.10082805156707764, -0.17192642390727997, -0.32303547859191895, -0.05698324367403984, -0.3147103786468506, 0.03437516838312149, -0.015241684392094612, -0.1913609802722931, -0.19831955432891846, 0.012763278558850288, 0.11912939697504044, -0.23375031352043152, 0.32200008630752563, 0.034838177263736725, -0.013012052513659, 0.16307570040225983, -0.23216190934181213, -0.032937802374362946, -0.15125007927417755, 0.1815328299999237, -0.1353040337562561, 0.16415759921073914, -0.4232265055179596, -0.2587808072566986, -0.16872377693653107, 0.353549063205719, 0.08731641620397568, -0.3229029178619385, -0.03989138454198837, 0.32104840874671936, -0.06600626558065414, -0.09631304442882538, -0.35608991980552673, -0.015159513801336288, 0.35641977190971375, -0.14737080037593842, 0.04400897026062012, 0.3544329106807709, 0.11944294720888138, -0.10679494589567184, 0.06604380160570145, 0.24427808821201324, 0.297599732875824, -0.02105185016989708, 0.2813410460948944, 0.19251833856105804, 0.03818501532077789, 0.1245422288775444, -0.0583590604364872, -0.18043252825737, 0.15598750114440918, 0.3096712827682495, 0.1182762086391449, -0.17865876853466034, -0.396952360868454, -0.027769338339567184, 0.21053729951381683, 0.002968895249068737, 0.2126069813966751, -0.030750274658203125, -0.07518815249204636, 0.12578994035720825, 0.15584754943847656, -0.07667452096939087, 0.18389099836349487, 0.009159531444311142, 0.13227885961532593, 0.07278010994195938, -0.20344455540180206, -0.1412036120891571, 0.1152334213256836, -0.02688039280474186, 0.3497850298881531, -0.07093545794487, -0.08731662482023239, 0.07851333916187286, -0.08443324267864227, -0.37827539443969727, 0.0566646046936512, 0.1657809019088745, -0.08290931582450867, 0.03782418742775917, -0.262752890586853, -0.022796086966991425, -0.09478268027305603, -0.22960802912712097, 0.1324966549873352, -0.14374060928821564, -0.014999699778854847, 0.17614662647247314, -0.17506489157676697, 0.2052597850561142, 0.18839725852012634, -0.056766409426927567, 0.0960678681731224, 0.3126204311847687, -0.2592220604419708, -0.07792822271585464, -0.16635197401046753, 0.15538552403450012, 0.03306905925273895, -0.08564187586307526, 0.19942744076251984, -0.27558469772338867, -0.12011440098285675, 0.1499003916978836, -0.45208367705345154, 0.05243508890271187, 0.014011294580996037, 0.11484593152999878, 0.2227618247270584, 0.2215285301208496, 0.0248775202780962, -0.34475770592689514, 0.21519921720027924, -0.33492588996887207, -0.025894254446029663, -0.09424567967653275, 0.05397724732756615, -0.09565190225839615, -0.4885925054550171, -0.6345111727714539, -0.309567391872406, -0.5386682152748108, 0.018934104591608047, 0.1400109976530075, 0.3738853633403778, 0.3208150267601013, 0.23707814514636993, 0.4575042426586151, 0.3019059896469116, 0.44526687264442444, 0.059010472148656845, 0.027096804231405258, 0.30702856183052063, -0.4646865129470825, -0.37876376509666443, -0.11513230949640274, -0.1516292244195938, 0.3044162094593048, -0.1614551693201065, -0.052405066788196564, -0.31774094700813293, -0.2742888927459717, 0.20446890592575073, -0.2654455900192261, -0.0834648460149765, 0.07806751132011414, 0.1683279126882553, -0.22344161570072174, -0.14726890623569489, 0.039806067943573, 0.19829832017421722, -0.08997157216072083, 0.050388459116220474, 0.13226813077926636, 0.4105214476585388, -0.13552528619766235, 0.6412839293479919, 0.15359210968017578, -0.5416251420974731, 0.13155409693717957, 0.09418010711669922, 0.17842860519886017, 0.1610790342092514, -0.07700151205062866, 0.06412016600370407, 0.10613957792520523, 0.30155184864997864, -0.06063373386859894, -0.1528748869895935, -0.2624873220920563, -0.24856482446193695, 0.055190593004226685, -0.2093646079301834, -0.09925180673599243, -0.190323606133461, -0.22223325073719025, 0.026647834107279778, -0.17043019831180573, 0.1294921487569809, -0.03028046526014805, 0.26696404814720154, 0.14049331843852997, 0.3743709325790405, -0.029914796352386475, 0.03093227557837963, -0.14466579258441925, -0.17214319109916687, -0.16813813149929047, 0.26893898844718933, 0.039158158004283905, 0.35093066096305847, 0.06937675923109055, -0.0899091586470604, 0.09542474895715714, 0.10213876515626907, 0.33877190947532654, -0.14164721965789795, -0.25481635332107544, 0.34347209334373474, -0.036933958530426025, -0.42666301131248474, -0.10194029659032822, -0.2980011999607086, -0.047973085194826126, 0.4439181983470917, 0.00995072815567255, -0.2568545639514923, -0.27164608240127563, 0.24550551176071167, -0.13020426034927368, -0.06763939559459686, 0.07218142598867416, -0.13392756879329681, -0.46094390749931335, -0.33730578422546387, -0.13929563760757446, 0.1958254724740982, 0.18347525596618652, -0.14350616931915283, -0.14980962872505188, 0.0016153318574652076, 0.010016324929893017, 0.05037045106291771, 0.1900881975889206, 0.2087099403142929, -0.12782807648181915, -0.14013947546482086, 0.03822743520140648, 0.2863093614578247, 0.32462409138679504, 0.08555709570646286, -0.3335409462451935, -0.25650399923324585, 0.17058946192264557, -0.06748650968074799, 0.1452694684267044, 0.02411470375955105, -0.1518261581659317, -0.05746685713529587, -0.4039548337459564, 0.03528014197945595, 0.3928392231464386, 0.23669449985027313, 0.47283560037612915, 0.23306654393672943, 0.04148675873875618, -0.3156411945819855, 0.27835312485694885, 0.1127396672964096, 0.016891486942768097, 0.3914879858493805, -0.1173032596707344, -0.1339910328388214, 0.10714181512594223, 0.2551790475845337, 0.7796507477760315, 0.1979433298110962, 0.07987723499536514, 0.39825594425201416, -0.1491084098815918, 0.2713771164417267, 0.02149156853556633, 0.12877778708934784, -0.20854343473911285, -0.10119657218456268, 0.03271285817027092, -0.09504188597202301, 0.29608163237571716, -0.16588644683361053, -0.47620218992233276, -0.00889852549880743, -0.3046587407588959, -0.08554533869028091, -0.010393809527158737, 0.251385897397995, 0.05120648443698883, 0.0007529809954576194, 0.08318346738815308, 0.19367480278015137, 0.14291098713874817, 0.1862865835428238, -0.21740004420280457, -0.19222554564476013, -0.160749614238739, -0.3412706255912781, -0.05187302455306053, 0.15318278968334198, -0.21826346218585968, 0.4361855387687683, 0.19552870094776154, -0.3141532838344574, 0.09287714958190918, 0.3123001158237457, 0.454285204410553, -0.19127456843852997, -0.13730192184448242, -0.0474201962351799, -0.13020728528499603, -0.04390258714556694, -0.1522323489189148, 0.18011599779129028, 0.5092203617095947, -0.28987812995910645, -0.13600994646549225, 0.26584097743034363, 0.004467292223125696, 0.2290174961090088, -0.4029324948787689, 0.014423531480133533, -0.20159903168678284, -0.006290947087109089, 0.20797589421272278, -0.052722711116075516, -0.5108951330184937, -0.12159287929534912, 0.2427588701248169, -0.01685585267841816, -0.33286982774734497, -0.029396314173936844, 0.11104974895715714, -0.2632744014263153, 0.06321964412927628, 0.07045038044452667, 0.3525017499923706, 0.13921982049942017, 0.34935396909713745, -0.036030810326337814, -0.2955440282821655, -0.26472121477127075, -0.27265316247940063, 0.0311370138078928, 0.01124851405620575, 0.32448872923851013, -0.2756332755088806, -0.32464632391929626, -0.059730179607868195, 0.211653470993042, -0.0009635163005441427, 0.2978004217147827, -0.2246958166360855, -0.16323427855968475, -0.1972978562116623, 0.1918153464794159, -0.1714807003736496, 0.3040001392364502, -0.3490901291370392, 0.422567218542099, 0.1137235090136528, -0.04307222738862038, -0.44195884466171265, 0.1668344885110855, -0.0368819385766983, 0.02001875452697277, -0.15815258026123047, -0.2147509902715683, 0.16766121983528137, 0.2444775402545929, 0.2284797579050064, 0.0694873034954071, -0.18884041905403137, -0.26058346033096313, -0.17047208547592163, 0.06985530257225037, -0.21164125204086304, -0.18176208436489105, 0.24041889607906342, 0.09998169541358948, -0.18441957235336304, 0.08633260428905487, -0.029288696125149727, -0.13208909332752228, -0.0019985008984804153, 0.558235228061676, 0.038734082132577896, 0.564473569393158, 0.38691580295562744, 0.008912247605621815, -0.10020748525857925, 0.13314388692378998, -0.13454577326774597, 0.02135079726576805, 0.059750061482191086, -0.22540445625782013, -0.34981411695480347, -0.13730446994304657, -0.1616203635931015, -0.14028990268707275, 0.2207789421081543, -0.1635543256998062, 0.0553809255361557, -0.26371535658836365, 0.12106870114803314, 0.3033825755119324, -0.344073623418808, 0.15444831550121307, 0.08660893142223358, 0.30136311054229736, -0.2628345787525177, 0.267972856760025, -0.07427363842725754, 0.0446527935564518, 0.21716846525669098, 0.24855168163776398, -0.11638715118169785, -0.017699699848890305, 0.07168123126029968, 0.0811026468873024, -0.09124913066625595, -0.288939893245697, 0.3252562880516052, 0.23269477486610413, -0.16523687541484833, 0.08739963918924332, 0.20998181402683258, -0.021730732172727585, 0.1657244861125946, 0.17539390921592712, -0.11326678842306137, 0.3435330390930176, -0.08947984874248505, -0.1929253190755844, 0.37506526708602905, 0.115963414311409, 0.20908412337303162, 0.20963163673877716, 0.15933245420455933, 0.22473081946372986, 0.0840810090303421, 0.16504621505737305, -0.1709303855895996, -0.08286060392856598, -0.05147760361433029, 0.13436736166477203, -0.32709479331970215, -0.10759711265563965, 0.03502893075346947, -0.16096879541873932, -0.15086208283901215, -0.4307509958744049, 0.09214898943901062, -0.07098110765218735, 0.1977214813232422, 0.04507555812597275, -0.18784783780574799, -0.3252616226673126, 0.12650029361248016, -0.06907784193754196, 0.3112427592277527, -0.08858650922775269, 0.19460666179656982, 0.3189258277416229, -0.10012560337781906, -0.37504202127456665, 0.33280131220817566, 0.3252207934856415, 0.5558350086212158, -0.24630574882030487, 0.06235754117369652, -0.02717912383377552, -0.25852781534194946, 0.13588067889213562, 0.006970559246838093, 0.1525977998971939, 0.009646525606513023, 0.26642659306526184, 0.18729494512081146, -0.284223347902298, 0.09371452033519745, 0.049120768904685974, -0.028331579640507698, -0.22251330316066742, 0.6059006452560425, -0.30910223722457886, 0.024186287075281143, -0.14197418093681335, -0.02501237951219082, -0.514005184173584, -0.18943753838539124, 0.13905048370361328, 0.00704675167798996, 0.027031509205698967, -0.2933400869369507, 0.12280315160751343, -0.11286988109350204, 0.3584936559200287, 0.003874349407851696, 0.3682335913181305, 0.029319647699594498, -0.004502803087234497, -0.3142125904560089, 0.30371004343032837, -0.11172758787870407, -0.030564308166503906, 0.10008211433887482, 0.07311994582414627, -0.209972083568573, 0.03249800577759743, 0.21575164794921875, -0.1540496051311493, 0.010349434800446033, 0.13311420381069183, -0.4652897119522095, -0.05194371938705444, -0.3202301263809204, -0.11838089674711227, 0.32707950472831726, -0.2909775674343109, 0.00028086864040233195, -0.2657405138015747, 0.1885833740234375, -0.34100016951560974, 0.08758426457643509, 0.08087015897035599, 0.43527424335479736, 0.17728491127490997, 0.17986992001533508, 0.3052111268043518, -0.04324151203036308, -0.3241821527481079, 0.1009189561009407, -0.18349654972553253, -0.21108980476856232, 0.24752812087535858, 0.23514842987060547, -0.06517113745212555, -0.1614931970834732, -0.4883187711238861, -0.2035171538591385, 0.5369012951850891, -0.004125463310629129, -0.270772784948349, -0.23055683076381683, 0.22513440251350403, 0.06293821334838867, -0.000981354620307684, 0.07477185875177383, 0.23143577575683594, -0.014073514379560947, 0.10761626809835434, -0.4403281509876251, -0.42131611704826355, 0.6965721845626831, -0.053116701543331146, -0.2233043909072876, -0.3283877670764923, 0.14280420541763306, 0.04779503867030144, 0.21800531446933746, -0.7143521904945374, -0.11810386180877686, 0.34353554248809814, -0.10297282040119171, -0.366305410861969, 0.21257284283638, 0.16378965973854065, -0.15592876076698303, -0.12147193402051926, 0.31155312061309814, 0.07703445851802826, -0.05439946427941322, -0.028304168954491615, -0.3904363512992859 ]
https://github.com/huggingface/datasets/issues/288
Error at the first example in README: AttributeError: module 'dill' has no attribute '_dill'
0.2.6 is three years old now, maybe try a more recent one, e.g. the current 0.3.2 if you can?
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:469: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:470: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:471: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:472: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:473: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:476: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6 return f(*args, **kwds) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`. from ._conv import register_converters as _register_converters Traceback (most recent call last): File "/Users/parasol_tree/Resource/019 - Github/AcademicEnglishToolkit /test.py", line 7, in <module> import nlp File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/__init__.py", line 27, in <module> from .arrow_dataset import Dataset File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/arrow_dataset.py", line 31, in <module> from nlp.utils.py_utils import dumps File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/__init__.py", line 20, in <module> from .download_manager import DownloadManager, GenerateMode File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/download_manager.py", line 25, in <module> from .py_utils import flatten_nested, map_nested, size_str File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 244, in <module> class Pickler(dill.Pickler): File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 247, in Pickler dispatch = dill._dill.MetaCatchingDict(dill.Pickler.dispatch.copy()) AttributeError: module 'dill' has no attribute '_dill'
19
Error at the first example in README: AttributeError: module 'dill' has no attribute '_dill' /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:469: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:470: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:471: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:472: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:473: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:476: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. np_resource = np.dtype([("resource", np.ubyte, 1)]) /Users/parasol_tree/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6 return f(*args, **kwds) /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`. from ._conv import register_converters as _register_converters Traceback (most recent call last): File "/Users/parasol_tree/Resource/019 - Github/AcademicEnglishToolkit /test.py", line 7, in <module> import nlp File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/__init__.py", line 27, in <module> from .arrow_dataset import Dataset File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/arrow_dataset.py", line 31, in <module> from nlp.utils.py_utils import dumps File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/__init__.py", line 20, in <module> from .download_manager import DownloadManager, GenerateMode File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/download_manager.py", line 25, in <module> from .py_utils import flatten_nested, map_nested, size_str File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 244, in <module> class Pickler(dill.Pickler): File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 247, in Pickler dispatch = dill._dill.MetaCatchingDict(dill.Pickler.dispatch.copy()) AttributeError: module 'dill' has no attribute '_dill' 0.2.6 is three years old now, maybe try a more recent one, e.g. the current 0.3.2 if you can?
[ 0.07698304951190948, -0.4020940661430359, -0.1799212396144867, 0.0659826397895813, 0.1492691934108734, -0.0033463086001574993, 0.5573249459266663, 0.3920772075653076, -0.011485493741929531, 0.26729336380958557, -0.052443649619817734, 0.33477309346199036, -0.050594259053468704, -0.31200268864631653, 0.011162450537085533, -0.32917702198028564, 0.08354675769805908, 0.2736496329307556, -0.3709401786327362, -0.2723831534385681, -0.2335178554058075, 0.2800566554069519, -0.07766246050596237, 0.24849803745746613, -0.1481040120124817, -0.03494347631931305, 0.12143944203853607, 0.10596088320016861, 0.0675768181681633, -0.28865841031074524, 0.19657769799232483, -0.17455719411373138, 0.2275904417037964, 0.4768025875091553, -0.00010438693425385281, 0.13615895807743073, 0.3375535309314728, -0.03460906445980072, -0.13421867787837982, -0.35059311985969543, 0.47139084339141846, 0.05932262912392616, 0.3363771438598633, -0.35007938742637634, -0.05079091340303421, -0.2969655990600586, -0.09695788472890854, -0.30893537402153015, 0.44411006569862366, 0.4418494403362274, 0.30106988549232483, 0.10265272110700607, 0.24469473958015442, -0.1699155569076538, -0.02083578333258629, -0.029783306643366814, -0.0677933394908905, 0.3753474950790405, 0.13835179805755615, 0.14741703867912292, 0.3823759853839874, 0.3424665331840515, 0.16093137860298157, 0.0776083841919899, 0.3393227159976959, 0.03225760534405708, 0.6600615978240967, -0.4541982114315033, -0.07750116288661957, 0.2736721336841583, 0.18128809332847595, -0.11844329535961151, -0.32097986340522766, 0.1269800066947937, 0.006010121665894985, -0.24750150740146637, 0.061675895005464554, -0.06774721294641495, -0.24967804551124573, -0.032574571669101715, 0.4458368718624115, -0.044266048818826675, -0.17719902098178864, 0.19539541006088257, -0.01851029135286808, 0.1636369228363037, -0.04493085667490959, -0.05065402016043663, 0.027161188423633575, -0.33402538299560547, 0.3872077167034149, 0.09286514669656754, 0.44849976897239685, 0.09601061046123505, -0.07596103847026825, -0.12198544293642044, 0.06254665553569794, -0.6255770921707153, -0.2034100592136383, -0.2914334535598755, 0.07395128905773163, -0.012258334085345268, 0.11802319437265396, 0.2710880935192108, -0.16345711052417755, 0.06675602495670319, 0.1067277193069458, 0.16068924963474274, 0.33548104763031006, 0.07939432561397552, 0.3280113637447357, 0.1698736548423767, -0.30215299129486084, -0.12513844668865204, -0.1567845642566681, 0.0640961080789566, 0.3410717248916626, 0.09396400302648544, -0.5376567840576172, -0.0486493781208992, -0.19243717193603516, 0.047451093792915344, -0.005582048557698727, 0.2568106949329376, -0.03795149549841881, 0.1916802078485489, 0.4150511920452118, 0.11126736551523209, -0.2454228699207306, 0.004610822070389986, -0.2229355424642563, 0.3555656373500824, -0.07030734419822693, -0.20205768942832947, 0.058731287717819214, 0.15545424818992615, 0.3014606833457947, -0.09930962324142456, 0.13105405867099762, -0.08252263069152832, 0.1695730984210968, 0.014668256044387817, -0.03960857167840004, 0.15427693724632263, -0.29427626729011536, -0.045142244547605515, 0.26223912835121155, -0.18552403151988983, -0.2611551582813263, 0.09121715277433395, -0.23356376588344574, -0.009562596678733826, -0.45414823293685913, 0.3482019007205963, 0.2507959306240082, 0.11042477190494537, 0.2338385432958603, 0.030489560216665268, 0.10521820932626724, 0.04706280678510666, -0.10150960087776184, -0.24462226033210754, -0.10236239433288574, -0.33066460490226746, 0.2848880887031555, 0.15443840622901917, -0.058851610869169235, -0.15748441219329834, -0.14238491654396057, -0.03973669186234474, 0.12016020715236664, 0.220234215259552, -0.13517653942108154, -0.013513961806893349, 0.11746732890605927, -0.17192421853542328, 0.6146843433380127, -0.5745144486427307, 0.1056554764509201, -0.06110113859176636, 0.13710914552211761, -0.04822410270571709, -0.010827102698385715, -0.07861991226673126, 0.14182375371456146, -0.06172776222229004, 0.31987130641937256, 0.3495156466960907, 0.25150540471076965, -0.11045792698860168, -0.3646186292171478, 0.01227232813835144, 0.13004329800605774, 0.0910365954041481, 0.09657200425863266, 0.06350051611661911, -0.05236991122364998, -0.04806073009967804, 0.06474495679140091, -0.1598062515258789, 0.004075569566339254, 0.12344411760568619, 0.08758533746004105, -0.08677840977907181, 0.10082805156707764, -0.17192642390727997, -0.32303547859191895, -0.05698324367403984, -0.3147103786468506, 0.03437516838312149, -0.015241684392094612, -0.1913609802722931, -0.19831955432891846, 0.012763278558850288, 0.11912939697504044, -0.23375031352043152, 0.32200008630752563, 0.034838177263736725, -0.013012052513659, 0.16307570040225983, -0.23216190934181213, -0.032937802374362946, -0.15125007927417755, 0.1815328299999237, -0.1353040337562561, 0.16415759921073914, -0.4232265055179596, -0.2587808072566986, -0.16872377693653107, 0.353549063205719, 0.08731641620397568, -0.3229029178619385, -0.03989138454198837, 0.32104840874671936, -0.06600626558065414, -0.09631304442882538, -0.35608991980552673, -0.015159513801336288, 0.35641977190971375, -0.14737080037593842, 0.04400897026062012, 0.3544329106807709, 0.11944294720888138, -0.10679494589567184, 0.06604380160570145, 0.24427808821201324, 0.297599732875824, -0.02105185016989708, 0.2813410460948944, 0.19251833856105804, 0.03818501532077789, 0.1245422288775444, -0.0583590604364872, -0.18043252825737, 0.15598750114440918, 0.3096712827682495, 0.1182762086391449, -0.17865876853466034, -0.396952360868454, -0.027769338339567184, 0.21053729951381683, 0.002968895249068737, 0.2126069813966751, -0.030750274658203125, -0.07518815249204636, 0.12578994035720825, 0.15584754943847656, -0.07667452096939087, 0.18389099836349487, 0.009159531444311142, 0.13227885961532593, 0.07278010994195938, -0.20344455540180206, -0.1412036120891571, 0.1152334213256836, -0.02688039280474186, 0.3497850298881531, -0.07093545794487, -0.08731662482023239, 0.07851333916187286, -0.08443324267864227, -0.37827539443969727, 0.0566646046936512, 0.1657809019088745, -0.08290931582450867, 0.03782418742775917, -0.262752890586853, -0.022796086966991425, -0.09478268027305603, -0.22960802912712097, 0.1324966549873352, -0.14374060928821564, -0.014999699778854847, 0.17614662647247314, -0.17506489157676697, 0.2052597850561142, 0.18839725852012634, -0.056766409426927567, 0.0960678681731224, 0.3126204311847687, -0.2592220604419708, -0.07792822271585464, -0.16635197401046753, 0.15538552403450012, 0.03306905925273895, -0.08564187586307526, 0.19942744076251984, -0.27558469772338867, -0.12011440098285675, 0.1499003916978836, -0.45208367705345154, 0.05243508890271187, 0.014011294580996037, 0.11484593152999878, 0.2227618247270584, 0.2215285301208496, 0.0248775202780962, -0.34475770592689514, 0.21519921720027924, -0.33492588996887207, -0.025894254446029663, -0.09424567967653275, 0.05397724732756615, -0.09565190225839615, -0.4885925054550171, -0.6345111727714539, -0.309567391872406, -0.5386682152748108, 0.018934104591608047, 0.1400109976530075, 0.3738853633403778, 0.3208150267601013, 0.23707814514636993, 0.4575042426586151, 0.3019059896469116, 0.44526687264442444, 0.059010472148656845, 0.027096804231405258, 0.30702856183052063, -0.4646865129470825, -0.37876376509666443, -0.11513230949640274, -0.1516292244195938, 0.3044162094593048, -0.1614551693201065, -0.052405066788196564, -0.31774094700813293, -0.2742888927459717, 0.20446890592575073, -0.2654455900192261, -0.0834648460149765, 0.07806751132011414, 0.1683279126882553, -0.22344161570072174, -0.14726890623569489, 0.039806067943573, 0.19829832017421722, -0.08997157216072083, 0.050388459116220474, 0.13226813077926636, 0.4105214476585388, -0.13552528619766235, 0.6412839293479919, 0.15359210968017578, -0.5416251420974731, 0.13155409693717957, 0.09418010711669922, 0.17842860519886017, 0.1610790342092514, -0.07700151205062866, 0.06412016600370407, 0.10613957792520523, 0.30155184864997864, -0.06063373386859894, -0.1528748869895935, -0.2624873220920563, -0.24856482446193695, 0.055190593004226685, -0.2093646079301834, -0.09925180673599243, -0.190323606133461, -0.22223325073719025, 0.026647834107279778, -0.17043019831180573, 0.1294921487569809, -0.03028046526014805, 0.26696404814720154, 0.14049331843852997, 0.3743709325790405, -0.029914796352386475, 0.03093227557837963, -0.14466579258441925, -0.17214319109916687, -0.16813813149929047, 0.26893898844718933, 0.039158158004283905, 0.35093066096305847, 0.06937675923109055, -0.0899091586470604, 0.09542474895715714, 0.10213876515626907, 0.33877190947532654, -0.14164721965789795, -0.25481635332107544, 0.34347209334373474, -0.036933958530426025, -0.42666301131248474, -0.10194029659032822, -0.2980011999607086, -0.047973085194826126, 0.4439181983470917, 0.00995072815567255, -0.2568545639514923, -0.27164608240127563, 0.24550551176071167, -0.13020426034927368, -0.06763939559459686, 0.07218142598867416, -0.13392756879329681, -0.46094390749931335, -0.33730578422546387, -0.13929563760757446, 0.1958254724740982, 0.18347525596618652, -0.14350616931915283, -0.14980962872505188, 0.0016153318574652076, 0.010016324929893017, 0.05037045106291771, 0.1900881975889206, 0.2087099403142929, -0.12782807648181915, -0.14013947546482086, 0.03822743520140648, 0.2863093614578247, 0.32462409138679504, 0.08555709570646286, -0.3335409462451935, -0.25650399923324585, 0.17058946192264557, -0.06748650968074799, 0.1452694684267044, 0.02411470375955105, -0.1518261581659317, -0.05746685713529587, -0.4039548337459564, 0.03528014197945595, 0.3928392231464386, 0.23669449985027313, 0.47283560037612915, 0.23306654393672943, 0.04148675873875618, -0.3156411945819855, 0.27835312485694885, 0.1127396672964096, 0.016891486942768097, 0.3914879858493805, -0.1173032596707344, -0.1339910328388214, 0.10714181512594223, 0.2551790475845337, 0.7796507477760315, 0.1979433298110962, 0.07987723499536514, 0.39825594425201416, -0.1491084098815918, 0.2713771164417267, 0.02149156853556633, 0.12877778708934784, -0.20854343473911285, -0.10119657218456268, 0.03271285817027092, -0.09504188597202301, 0.29608163237571716, -0.16588644683361053, -0.47620218992233276, -0.00889852549880743, -0.3046587407588959, -0.08554533869028091, -0.010393809527158737, 0.251385897397995, 0.05120648443698883, 0.0007529809954576194, 0.08318346738815308, 0.19367480278015137, 0.14291098713874817, 0.1862865835428238, -0.21740004420280457, -0.19222554564476013, -0.160749614238739, -0.3412706255912781, -0.05187302455306053, 0.15318278968334198, -0.21826346218585968, 0.4361855387687683, 0.19552870094776154, -0.3141532838344574, 0.09287714958190918, 0.3123001158237457, 0.454285204410553, -0.19127456843852997, -0.13730192184448242, -0.0474201962351799, -0.13020728528499603, -0.04390258714556694, -0.1522323489189148, 0.18011599779129028, 0.5092203617095947, -0.28987812995910645, -0.13600994646549225, 0.26584097743034363, 0.004467292223125696, 0.2290174961090088, -0.4029324948787689, 0.014423531480133533, -0.20159903168678284, -0.006290947087109089, 0.20797589421272278, -0.052722711116075516, -0.5108951330184937, -0.12159287929534912, 0.2427588701248169, -0.01685585267841816, -0.33286982774734497, -0.029396314173936844, 0.11104974895715714, -0.2632744014263153, 0.06321964412927628, 0.07045038044452667, 0.3525017499923706, 0.13921982049942017, 0.34935396909713745, -0.036030810326337814, -0.2955440282821655, -0.26472121477127075, -0.27265316247940063, 0.0311370138078928, 0.01124851405620575, 0.32448872923851013, -0.2756332755088806, -0.32464632391929626, -0.059730179607868195, 0.211653470993042, -0.0009635163005441427, 0.2978004217147827, -0.2246958166360855, -0.16323427855968475, -0.1972978562116623, 0.1918153464794159, -0.1714807003736496, 0.3040001392364502, -0.3490901291370392, 0.422567218542099, 0.1137235090136528, -0.04307222738862038, -0.44195884466171265, 0.1668344885110855, -0.0368819385766983, 0.02001875452697277, -0.15815258026123047, -0.2147509902715683, 0.16766121983528137, 0.2444775402545929, 0.2284797579050064, 0.0694873034954071, -0.18884041905403137, -0.26058346033096313, -0.17047208547592163, 0.06985530257225037, -0.21164125204086304, -0.18176208436489105, 0.24041889607906342, 0.09998169541358948, -0.18441957235336304, 0.08633260428905487, -0.029288696125149727, -0.13208909332752228, -0.0019985008984804153, 0.558235228061676, 0.038734082132577896, 0.564473569393158, 0.38691580295562744, 0.008912247605621815, -0.10020748525857925, 0.13314388692378998, -0.13454577326774597, 0.02135079726576805, 0.059750061482191086, -0.22540445625782013, -0.34981411695480347, -0.13730446994304657, -0.1616203635931015, -0.14028990268707275, 0.2207789421081543, -0.1635543256998062, 0.0553809255361557, -0.26371535658836365, 0.12106870114803314, 0.3033825755119324, -0.344073623418808, 0.15444831550121307, 0.08660893142223358, 0.30136311054229736, -0.2628345787525177, 0.267972856760025, -0.07427363842725754, 0.0446527935564518, 0.21716846525669098, 0.24855168163776398, -0.11638715118169785, -0.017699699848890305, 0.07168123126029968, 0.0811026468873024, -0.09124913066625595, -0.288939893245697, 0.3252562880516052, 0.23269477486610413, -0.16523687541484833, 0.08739963918924332, 0.20998181402683258, -0.021730732172727585, 0.1657244861125946, 0.17539390921592712, -0.11326678842306137, 0.3435330390930176, -0.08947984874248505, -0.1929253190755844, 0.37506526708602905, 0.115963414311409, 0.20908412337303162, 0.20963163673877716, 0.15933245420455933, 0.22473081946372986, 0.0840810090303421, 0.16504621505737305, -0.1709303855895996, -0.08286060392856598, -0.05147760361433029, 0.13436736166477203, -0.32709479331970215, -0.10759711265563965, 0.03502893075346947, -0.16096879541873932, -0.15086208283901215, -0.4307509958744049, 0.09214898943901062, -0.07098110765218735, 0.1977214813232422, 0.04507555812597275, -0.18784783780574799, -0.3252616226673126, 0.12650029361248016, -0.06907784193754196, 0.3112427592277527, -0.08858650922775269, 0.19460666179656982, 0.3189258277416229, -0.10012560337781906, -0.37504202127456665, 0.33280131220817566, 0.3252207934856415, 0.5558350086212158, -0.24630574882030487, 0.06235754117369652, -0.02717912383377552, -0.25852781534194946, 0.13588067889213562, 0.006970559246838093, 0.1525977998971939, 0.009646525606513023, 0.26642659306526184, 0.18729494512081146, -0.284223347902298, 0.09371452033519745, 0.049120768904685974, -0.028331579640507698, -0.22251330316066742, 0.6059006452560425, -0.30910223722457886, 0.024186287075281143, -0.14197418093681335, -0.02501237951219082, -0.514005184173584, -0.18943753838539124, 0.13905048370361328, 0.00704675167798996, 0.027031509205698967, -0.2933400869369507, 0.12280315160751343, -0.11286988109350204, 0.3584936559200287, 0.003874349407851696, 0.3682335913181305, 0.029319647699594498, -0.004502803087234497, -0.3142125904560089, 0.30371004343032837, -0.11172758787870407, -0.030564308166503906, 0.10008211433887482, 0.07311994582414627, -0.209972083568573, 0.03249800577759743, 0.21575164794921875, -0.1540496051311493, 0.010349434800446033, 0.13311420381069183, -0.4652897119522095, -0.05194371938705444, -0.3202301263809204, -0.11838089674711227, 0.32707950472831726, -0.2909775674343109, 0.00028086864040233195, -0.2657405138015747, 0.1885833740234375, -0.34100016951560974, 0.08758426457643509, 0.08087015897035599, 0.43527424335479736, 0.17728491127490997, 0.17986992001533508, 0.3052111268043518, -0.04324151203036308, -0.3241821527481079, 0.1009189561009407, -0.18349654972553253, -0.21108980476856232, 0.24752812087535858, 0.23514842987060547, -0.06517113745212555, -0.1614931970834732, -0.4883187711238861, -0.2035171538591385, 0.5369012951850891, -0.004125463310629129, -0.270772784948349, -0.23055683076381683, 0.22513440251350403, 0.06293821334838867, -0.000981354620307684, 0.07477185875177383, 0.23143577575683594, -0.014073514379560947, 0.10761626809835434, -0.4403281509876251, -0.42131611704826355, 0.6965721845626831, -0.053116701543331146, -0.2233043909072876, -0.3283877670764923, 0.14280420541763306, 0.04779503867030144, 0.21800531446933746, -0.7143521904945374, -0.11810386180877686, 0.34353554248809814, -0.10297282040119171, -0.366305410861969, 0.21257284283638, 0.16378965973854065, -0.15592876076698303, -0.12147193402051926, 0.31155312061309814, 0.07703445851802826, -0.05439946427941322, -0.028304168954491615, -0.3904363512992859 ]
https://github.com/huggingface/datasets/issues/281
Private/sensitive data
Hi @MFreidank, you should already be able to load a dataset from local sources, indeed. (ping @lhoestq and @jplu) We're also thinking about the ability to host private datasets on a hosted bucket with permission management, but that's further down the road.
Hi all, Thanks for this fantastic library, it makes it very easy to do prototyping for NLP projects interchangeably between TF/Pytorch. Unfortunately, there is data that cannot easily be shared publicly as it may contain sensitive information. Is there support/a plan to support such data with NLP, e.g. by reading it from local sources? Use case flow could look like this: use NLP to prototype an approach on similar, public data and apply the resulting prototype on sensitive/private data without the need to rethink data processing pipelines. Many thanks for your responses ahead of time and kind regards, MFreidank
42
Private/sensitive data Hi all, Thanks for this fantastic library, it makes it very easy to do prototyping for NLP projects interchangeably between TF/Pytorch. Unfortunately, there is data that cannot easily be shared publicly as it may contain sensitive information. Is there support/a plan to support such data with NLP, e.g. by reading it from local sources? Use case flow could look like this: use NLP to prototype an approach on similar, public data and apply the resulting prototype on sensitive/private data without the need to rethink data processing pipelines. Many thanks for your responses ahead of time and kind regards, MFreidank Hi @MFreidank, you should already be able to load a dataset from local sources, indeed. (ping @lhoestq and @jplu) We're also thinking about the ability to host private datasets on a hosted bucket with permission management, but that's further down the road.
[ -0.07074621319770813, 0.41258907318115234, -0.1550576090812683, 0.233695387840271, -0.3745618760585785, -0.31046777963638306, 0.1758050173521042, 0.2741081118583679, -0.18740268051624298, 0.08432624489068985, -0.0990348532795906, 0.2355116605758667, -0.17405040562152863, 0.41475313901901245, 0.15612347424030304, -0.14106246829032898, -0.17459829151630402, 0.3279695510864258, 0.02043629065155983, 0.12347787618637085, 0.2168065458536148, -0.003543431870639324, -0.13980624079704285, 0.18104057013988495, 0.0957493931055069, -0.08277656137943268, 0.07685820758342743, -0.07090349495410919, -0.005191085860133171, -0.23778362572193146, 0.19947406649589539, 0.26747697591781616, 0.356966495513916, 0.11032252013683319, -0.00011817555787274614, -0.061879754066467285, -0.00775505043566227, -0.09154479950666428, 0.10147152096033096, -0.3869081437587738, 0.09095380455255508, -0.3763202130794525, 0.11612541973590851, -0.0942874550819397, -0.601639449596405, -0.22376933693885803, 0.22332942485809326, -0.20567671954631805, 0.2856592535972595, -0.14142774045467377, 0.08981345593929291, 0.42852354049682617, -0.0426415279507637, 0.43344491720199585, 0.26794832944869995, 0.04255318641662598, -0.3776565492153168, -0.23143358528614044, 0.4403626024723053, 0.06607925146818161, -0.1837640106678009, 0.07955875247716904, -0.10583443939685822, 0.03702791780233383, 0.20910869538784027, -0.05356216058135033, -0.26361730694770813, -0.4229533076286316, -0.04179660975933075, 0.44769591093063354, 0.6776384115219116, -0.05532218515872955, -0.30273500084877014, -0.19766192138195038, 0.04974779859185219, -0.12273060530424118, 0.043794043362140656, 0.3050142526626587, -0.3012387454509735, 0.23117299377918243, -0.23479124903678894, -0.5339370369911194, -0.5878567099571228, 0.40058451890945435, 0.32508739829063416, 0.17259380221366882, -0.11474788188934326, 0.009718905203044415, -0.18342331051826477, -0.14676643908023834, 0.3118992745876312, 0.08408484607934952, 0.34607332944869995, 0.3613795340061188, 0.23149369657039642, -0.3157441020011902, -0.12350007146596909, -0.13074682652950287, 0.12639550864696503, 0.06001519411802292, 0.06277777999639511, 0.3807480037212372, -0.4343864321708679, 0.18695512413978577, 0.5641593933105469, -0.3314898908138275, -0.2732813358306885, 0.21276913583278656, 0.6141760945320129, -0.22645524144172668, 0.16248124837875366, 0.17312024533748627, -0.08663178235292435, 0.13383769989013672, -0.3697245419025421, -0.13651448488235474, 0.04592692852020264, -0.37748095393180847, -0.0641484186053276, 0.10296151041984558, -0.2001153528690338, 0.07729226350784302, 0.034518808126449585, 0.10051137208938599, 0.06062609702348709, 0.08260159194469452, 0.21943649649620056, -0.2596558928489685, 0.10024435073137283, -0.40086808800697327, 0.07367422431707382, -0.32961276173591614, -0.23051296174526215, 0.19071868062019348, 0.3585127294063568, 0.05251811817288399, 0.122739776968956, -0.1362954080104828, 0.16618956625461578, 0.09493296593427658, 0.18213102221488953, -0.0007121947128325701, 0.20641914010047913, 0.28371289372444153, -0.14963175356388092, -0.21350711584091187, -0.20833426713943481, -0.06812378019094467, -0.26541948318481445, 0.4042986333370209, -0.21822945773601532, -0.35892048478126526, -0.07294005155563354, -0.0733456164598465, -0.3603955805301666, 0.049768123775720596, 0.1830279529094696, 0.19234059751033783, -0.013297134079039097, -0.3578294813632965, 0.12330295890569687, 0.0540311336517334, -0.3091992437839508, -0.3107892870903015, 0.20444633066654205, 0.007935496047139168, -0.21543572843074799, 0.1870308518409729, 0.08019023388624191, -0.0899682566523552, 0.09076789766550064, 0.3384082019329071, -0.3551780879497528, -0.11716461181640625, 0.12380196154117584, 0.14386411011219025, 0.6366682648658752, -0.1484186351299286, -0.4632449150085449, 0.7736420631408691, 0.005081106908619404, -0.34999507665634155, -0.001033105654641986, 0.5067374110221863, 0.07972894608974457, -0.09770213067531586, -0.11440479010343552, 0.7414236664772034, 0.049431439489126205, 0.09382244944572449, -0.17055146396160126, -0.4520651400089264, 0.479966402053833, 0.37171199917793274, -0.00775120360776782, 0.04473166912794113, 0.2441883236169815, 0.36080995202064514, 0.284561425447464, -0.06109382584691048, 0.06696173548698425, -0.035117294639348984, 0.10619685053825378, 0.2022458165884018, -0.002893319120630622, -0.2733084559440613, 0.08349669724702835, -0.15552352368831635, -0.5438965559005737, 0.14995284378528595, 0.03363068029284477, -0.16799286007881165, 0.22886352241039276, -0.09965144842863083, 0.1972912698984146, -0.0412278026342392, 0.013614080846309662, -0.005066347308456898, -0.05855777487158775, -0.02379533089697361, -0.35767728090286255, -0.04813796281814575, -0.1494688242673874, -0.15342752635478973, -0.0364813357591629, 0.23511093854904175, 0.06540074944496155, -0.054739292711019516, 0.30411621928215027, 0.559176504611969, -0.013573228381574154, -0.10763070732355118, 0.18229159712791443, 0.15248079597949982, -0.18574181199073792, 0.24421751499176025, 0.07262848317623138, 0.580590546131134, 0.34322190284729004, -0.17575900256633759, 0.2598475217819214, 0.36664879322052, -0.034115809947252274, 0.1733645796775818, 0.09843327105045319, 0.7042983174324036, -0.2638031542301178, -0.1616843044757843, -0.03219692036509514, -0.14915573596954346, -0.004894689191132784, -0.1735788732767105, -0.35204342007637024, -0.03049079328775406, 0.010925949551165104, -0.26669204235076904, 0.13070394098758698, -0.03182371333241463, -0.5742005109786987, 0.22588393092155457, -0.10887038707733154, -0.0877470076084137, 0.3051648736000061, -0.026193449273705482, -0.027433156967163086, -0.06498023867607117, 0.1479400396347046, 0.2978619635105133, 0.3659074902534485, 0.1113847941160202, -0.17283762991428375, -0.07313033193349838, -0.11755385249853134, -0.141686350107193, -0.002014410449191928, -0.05932702496647835, 0.15234871208667755, 0.04910034313797951, 0.19651728868484497, 0.3548050820827484, -0.0670657828450203, 0.17883874475955963, -0.07302800565958023, 0.09431545436382294, -0.009576329961419106, 0.12145902216434479, -0.24237169325351715, -0.3815986216068268, 0.07225435227155685, -0.010774773545563221, -0.13104654848575592, 0.2822647988796234, 0.15543802082538605, 0.19992440938949585, -0.08225145936012268, -0.20935268700122833, -0.269205778837204, 0.486393541097641, -0.29746726155281067, -0.15752634406089783, -0.08365221321582794, -0.124020516872406, -0.09600317478179932, 0.047506242990493774, 0.32104894518852234, -0.03602306917309761, 0.35413098335266113, 0.414338618516922, 0.010744718834757805, -0.19432969391345978, -0.3171735405921936, 0.06479199230670929, 0.031657274812459946, 0.242778941988945, -0.0861499011516571, -0.04539281874895096, 0.08745638281106949, -0.2234257161617279, -0.07342522591352463, -0.4196181297302246, -0.006141678895801306, -0.28049319982528687, -0.2080235779285431, -0.02156352810561657, -0.2728866636753082, -0.11800016462802887, -0.5042939186096191, -0.17463769018650055, 0.39179402589797974, 0.017545010894536972, 0.4474540948867798, 0.09745794534683228, -0.277303546667099, 0.0967271625995636, 0.010926753282546997, -0.04923964664340019, -0.07194909453392029, -0.42334601283073425, 0.22781804203987122, -0.5833619236946106, -0.45793604850769043, -0.11601204425096512, -0.0033486371394246817, -0.040158290416002274, 0.20604220032691956, -0.6257670521736145, -0.037112023681402206, 0.1528889238834381, 0.2928295433521271, -0.03371841832995415, -0.2740911543369293, 0.24353988468647003, 0.024767568334937096, 0.07046370953321457, -0.16556306183338165, -0.13094983994960785, -0.2497611790895462, 0.024028444662690163, 0.22355228662490845, 0.3631480038166046, -0.30841997265815735, 0.4264256954193115, 0.37140849232673645, -0.03159810230135918, -0.10789752006530762, 0.34457239508628845, 0.2310938835144043, 0.1582888811826706, 0.27259859442710876, 0.042483579367399216, 0.15648153424263, -0.04834512248635292, -0.16513672471046448, 0.32184144854545593, 0.11502644419670105, -0.4717212915420532, -0.3430371582508087, -0.43605977296829224, -0.3518173396587372, -0.1752527803182602, 0.14193950593471527, 0.14846117794513702, 0.6546310782432556, 0.034540899097919464, -0.27659228444099426, -0.2643117308616638, -0.5170106887817383, -0.07062039524316788, -0.05975966155529022, 0.4708828032016754, 0.12225130945444107, -0.03377485275268555, -0.22771936655044556, -0.4081258773803711, -0.08944635093212128, 0.11263338476419449, 0.38847616314888, -0.19865617156028748, 0.32960256934165955, 0.29832491278648376, -0.014293939806520939, -0.02842349372804165, -0.10287849605083466, 0.18477660417556763, 0.07035711407661438, -0.12497657537460327, -0.09494054317474365, 0.3198772072792053, -0.11207137256860733, 0.34638211131095886, 0.1639571636915207, 0.3733927011489868, -0.1324218362569809, -0.4414403736591339, 0.18519054353237152, -0.08167631179094315, -0.23085817694664001, -0.19436685740947723, 0.15984931588172913, -0.05524248257279396, -0.10511045902967453, -0.08356527984142303, -0.15088900923728943, 0.09031913429498672, -0.11711730808019638, 0.12779195606708527, 0.08800571411848068, 0.3155848979949951, 0.21859031915664673, 0.049271196126937866, -0.12556280195713043, 0.2209620475769043, -0.07330387085676193, 0.23697078227996826, 0.3940107822418213, -0.2094956636428833, 0.24120979011058807, 0.3167015314102173, 0.11623558402061462, 0.05328388139605522, 0.04917435720562935, 0.44012150168418884, 0.48529794812202454, 0.10083606094121933, -0.02152039296925068, -0.050570663064718246, -0.1575634628534317, -0.28533750772476196, -0.04306581988930702, 0.04314562305808067, -0.3380025625228882, 0.12887796759605408, -0.1501501053571701, 0.47079238295555115, -0.15668390691280365, -0.16870422661304474, 0.06552639603614807, 0.0078116110526025295, -0.18113619089126587, 0.46848347783088684, 0.31608107686042786, 1.050485372543335, -0.3008875548839569, 0.4145287573337555, -0.01556245144456625, -0.058420706540346146, 0.5179592370986938, -0.4314320981502533, 0.021200988441705704, -0.1692841649055481, 0.18253609538078308, -0.1650940477848053, -0.017548708245158195, 0.10861200839281082, 0.04740371182560921, 0.1744164228439331, 0.1485571712255478, 0.3124348223209381, -0.16895553469657898, 0.056368276476860046, 0.3495241701602936, 0.3550995886325836, -0.27692052721977234, -0.41733768582344055, -0.008703586645424366, -0.22158920764923096, 0.23593910038471222, -0.003517480567097664, -0.5324000120162964, -0.060227565467357635, 0.26438453793525696, -0.20981977880001068, -0.07542355358600616, -0.1397765725851059, 0.0012059035943821073, 0.11346319317817688, -0.3987618684768677, 0.5135902166366577, 0.4438517093658447, 0.24989010393619537, 0.16266772150993347, -0.5347724556922913, -0.27946344017982483, -0.27124330401420593, -0.33801424503326416, 0.1475774496793747, 0.25291961431503296, 0.29253485798835754, -0.2589458227157593, -0.14388206601142883, 0.09599380940198898, 0.03656074404716492, -0.6549980044364929, -0.19461575150489807, 0.03889993950724602, 0.43390122056007385, -0.15149234235286713, -0.10141406953334808, 0.2259872406721115, -0.31711041927337646, 0.10880301147699356, 0.05516863614320755, 0.4022720456123352, -0.1132718026638031, -0.03047746792435646, 0.29821354150772095, -0.09445369988679886, 0.0758533626794815, 0.28887632489204407, 0.21160003542900085, -0.0030282544903457165, 0.21330688893795013, -0.0831058993935585, 0.04972139000892639, -0.059917520731687546, 0.3089551329612732, -0.12532192468643188, -0.12440681457519531, -0.2226339876651764, 0.2691507041454315, -0.15529349446296692, -0.19633643329143524, 0.32665205001831055, -0.02832414209842682, -0.2674148380756378, -0.20959624648094177, -0.5977566838264465, -0.20258018374443054, 0.33843740820884705, -0.1217571571469307, -0.06113152578473091, 0.024283764883875847, 0.45090174674987793, 0.030647750943899155, 0.16034691035747528, -0.1998889446258545, 0.2316725105047226, -0.20239399373531342, 0.20827153325080872, 0.286032497882843, -0.012291834689676762, -0.15751276910305023, 0.11341097950935364, -0.11093991994857788, 0.090779609978199, -0.19757436215877533, -0.07712086290121078, -0.12022091448307037, 0.2204320877790451, 0.324785053730011, -0.41464751958847046, -0.22244779765605927, -0.7372857928276062, -0.24967746436595917, 0.052129488438367844, 0.028632882982492447, 0.14340515434741974, 0.009585564956068993, 0.23504847288131714, -0.0954042375087738, 0.27456721663475037, -0.03994012624025345, 0.3295139968395233, 0.19335724413394928, 0.405754953622818, -0.13160592317581177, 0.32671815156936646, -0.009461184963583946, -0.13540220260620117, 0.01311397459357977, -0.05089451000094414, 0.28995829820632935, -0.057426538318395615, 0.6205944418907166, -0.11051130294799805, -0.044255632907152176, 0.027066778391599655, 0.14211861789226532, 0.018096696585416794, -0.06181030720472336, 0.33549964427948, 0.16487234830856323, -0.024212338030338287, -0.2641052305698395, -0.21324585378170013, -0.11394965648651123, 0.1806272566318512, -0.2042883038520813, -0.04696432128548622, 0.6455293297767639, 0.20423297584056854, 0.13323502242565155, -0.2595512866973877, -0.01754923351109028, -0.25353121757507324, -0.39219385385513306, 0.06169339269399643, -0.23495885729789734, -0.04076995328068733, -0.1246156245470047, 0.3356879949569702, 0.001650809426791966, 0.09950568526983261, 0.21405959129333496, 0.35177865624427795, 0.2666947841644287, 0.043691106140613556, 0.1604706197977066, -0.17092162370681763, -0.20234984159469604, -0.06621752679347992, 0.37860673666000366, 0.22481442987918854, -0.34831011295318604, 0.39781317114830017, 0.06788426637649536, 0.11448579281568527, 0.2501392960548401, 0.12667156755924225, 0.0771581381559372, -0.2194930762052536, -0.1399853229522705, -0.057131197303533554, 0.15118640661239624, -0.13836653530597687, -0.27141717076301575, -0.3089691996574402, 0.056351058185100555, 0.25874319672584534, 0.19642876088619232, -0.12029583752155304, -0.07495970278978348, 0.3919236660003662, 0.10097205638885498, -0.22368450462818146, 0.46807247400283813, -0.27892953157424927, 0.1513320952653885, 0.11756228655576706, 0.19438661634922028, -0.002596101490780711, 0.09405753761529922, -0.49879884719848633, 0.035772763192653656, -0.520550549030304, -0.05581226572394371, -0.017878953367471695, 0.3984949290752411, 0.34034815430641174, -0.11760414391756058, 0.33159568905830383, -0.11050090938806534, 0.0863521620631218, 0.17134174704551697, 0.05799471214413643, 0.14569076895713806, -0.20984730124473572, 0.4859401285648346, 0.07962082326412201, -0.4297902584075928, 0.07701000571250916, -0.17396530508995056, 0.1241072416305542, 0.11049158126115799, 0.4481090009212494, -0.1365605890750885, 0.09848558157682419, -0.15721997618675232, 0.032108861953020096, -0.14522887766361237, 0.35109543800354004, 0.21824121475219727, 0.5691320896148682, -0.0877605453133583, -0.20638291537761688, -0.3088740408420563, 0.4102731943130493, 0.1998162418603897, -0.08338185399770737, 0.061262309551239014, 0.14549362659454346, 0.35953208804130554, 0.60209059715271, -0.2580788731575012, -0.2385401427745819, 0.0807681679725647, -0.05949552729725838, 0.06567008793354034, 0.15432773530483246, -0.2401900291442871, 0.36855098605155945, -0.1283995509147644, -0.17148667573928833, 0.25820013880729675, -0.3168211579322815, -0.10800980776548386, -0.2567024827003479, 0.1452498733997345, -0.09997633099555969, 0.264689564704895, 0.4240330457687378, -0.04641498252749443, 0.07380492985248566, 0.005906516220420599, -0.10547980666160583, -0.18524619936943054, -0.05444557964801788, -0.039087578654289246, -0.11806943267583847, 0.18303866684436798, -0.07899466156959534, -0.3894798755645752, 0.07684443891048431, -0.13212302327156067, -0.08786103129386902, -0.3873867988586426, 0.2484510838985443, 0.2884964942932129, -0.15541912615299225, -0.38098570704460144, 0.10061576217412949, -0.014935756102204323, 0.37895897030830383, -0.19338595867156982, -0.24850310385227203, -0.13454808294773102, 0.15187978744506836, 0.22215870022773743, -0.7115592956542969, 0.05267712473869324, 0.1163979023694992, 0.1823834776878357, 0.11141562461853027, -0.14425885677337646, -0.4165101945400238, 0.0034096401650458574, 0.1030428558588028, 0.07603935152292252, -0.0012035391991958022, -0.09351610392332077, -0.027177024632692337, -0.14140239357948303, -0.16165582835674286, 0.3910859525203705, -0.11327202618122101, 0.010249223560094833, -0.3302139639854431, -0.37565192580223083 ]
https://github.com/huggingface/datasets/issues/281
Private/sensitive data
Hi @MFreidank, it is possible to load a dataset from your local storage, but only CSV/TSV and JSON are supported. To load a dataset in JSON format: ``` nlp.load_dataset(path="json", data_files={nlp.Split.TRAIN: ["path/to/train.json"], nlp.Split.TEST: ["path/to/test.json"]}) ``` For CSV/TSV datasets, you have to replace `json` by `csv`.
Hi all, Thanks for this fantastic library, it makes it very easy to do prototyping for NLP projects interchangeably between TF/Pytorch. Unfortunately, there is data that cannot easily be shared publicly as it may contain sensitive information. Is there support/a plan to support such data with NLP, e.g. by reading it from local sources? Use case flow could look like this: use NLP to prototype an approach on similar, public data and apply the resulting prototype on sensitive/private data without the need to rethink data processing pipelines. Many thanks for your responses ahead of time and kind regards, MFreidank
44
Private/sensitive data Hi all, Thanks for this fantastic library, it makes it very easy to do prototyping for NLP projects interchangeably between TF/Pytorch. Unfortunately, there is data that cannot easily be shared publicly as it may contain sensitive information. Is there support/a plan to support such data with NLP, e.g. by reading it from local sources? Use case flow could look like this: use NLP to prototype an approach on similar, public data and apply the resulting prototype on sensitive/private data without the need to rethink data processing pipelines. Many thanks for your responses ahead of time and kind regards, MFreidank Hi @MFreidank, it is possible to load a dataset from your local storage, but only CSV/TSV and JSON are supported. To load a dataset in JSON format: ``` nlp.load_dataset(path="json", data_files={nlp.Split.TRAIN: ["path/to/train.json"], nlp.Split.TEST: ["path/to/test.json"]}) ``` For CSV/TSV datasets, you have to replace `json` by `csv`.
[ -0.01666119322180748, 0.39930906891822815, -0.12448674440383911, 0.25485360622406006, -0.27396252751350403, -0.27529263496398926, 0.21818861365318298, 0.3080700933933258, -0.06903798133134842, 0.007815716788172722, -0.12333710491657257, 0.24154700338840485, -0.1098862811923027, 0.4313027560710907, 0.22610390186309814, -0.1605273187160492, -0.2306252419948578, 0.32906579971313477, 0.07516410201787949, 0.127813458442688, 0.17984183132648468, 0.010817208327353, -0.02771030366420746, 0.19783250987529755, 0.1053762212395668, -0.02241263911128044, 0.03913852572441101, -0.011053245514631271, 0.04930947721004486, -0.280799001455307, 0.21947121620178223, 0.146113321185112, 0.37114885449409485, 0.10421393811702728, -0.00011948650353588164, 0.054781824350357056, 0.004279119893908501, -0.17003890872001648, 0.014008895494043827, -0.5010936856269836, 0.11817880719900131, -0.45906102657318115, 0.21272727847099304, -0.13232529163360596, -0.5507673025131226, -0.3828503489494324, 0.19534142315387726, -0.2550381124019623, 0.4459574520587921, -0.013473703525960445, 0.09721750766038895, 0.3948136866092682, -0.023834899067878723, 0.4301287531852722, 0.15169601142406464, 0.15581324696540833, -0.2978108823299408, -0.15469074249267578, 0.32564061880111694, 0.05765627324581146, -0.14451047778129578, -0.02606927789747715, -0.0631827786564827, 0.1081877127289772, 0.16940316557884216, 0.0011478601954877377, -0.21962852776050568, -0.3277968168258667, -0.06281685084104538, 0.39936602115631104, 0.5945555567741394, -0.027526790276169777, -0.24955764412879944, -0.267037034034729, 0.03197772428393364, -0.19983577728271484, 0.0711241140961647, 0.4118875563144684, -0.28963422775268555, 0.22821447253227234, -0.33820316195487976, -0.4331629276275635, -0.5370649695396423, 0.40451228618621826, 0.34794187545776367, 0.07094400376081467, -0.09333497285842896, 0.08607055246829987, -0.16277150809764862, -0.1994021087884903, 0.1973811239004135, -0.002352566923946142, 0.39074403047561646, 0.30410969257354736, 0.17766518890857697, -0.3675433099269867, -0.13475969433784485, -0.3807201087474823, 0.09895705431699753, -0.00901871733367443, 0.020653557032346725, 0.3384736478328705, -0.3744041919708252, 0.2121003419160843, 0.5879605412483215, -0.23452721536159515, -0.22414574027061462, 0.21442337334156036, 0.4542488753795624, -0.2493964284658432, 0.04325186833739281, 0.08235456049442291, -0.05225765332579613, 0.11467450112104416, -0.40789225697517395, -0.10832970589399338, 0.05670648068189621, -0.3220864534378052, -0.07308783382177353, 0.03406286612153053, -0.2571913003921509, 0.04769562929868698, -0.04375021904706955, 0.17946094274520874, 0.06989074498414993, 0.10436513274908066, 0.2844662368297577, -0.18182888627052307, 0.11766280233860016, -0.3972916901111603, 0.06113484129309654, -0.25400829315185547, -0.14548359811306, 0.22000117599964142, 0.4175843894481659, 0.09415094554424286, 0.18390744924545288, -0.257700115442276, 0.10280448198318481, -0.02065718173980713, 0.14762961864471436, -0.10186305642127991, 0.24993447959423065, 0.24646838009357452, -0.03041979856789112, -0.26392990350723267, -0.09562724828720093, -0.1191149428486824, -0.32326844334602356, 0.3597043454647064, -0.2853339910507202, -0.36305710673332214, -0.11320142447948456, -0.060530003160238266, -0.4056689739227295, 0.09963826090097427, 0.1104561984539032, 0.19050194323062897, 0.025118745863437653, -0.31587979197502136, 0.02543863095343113, 0.02033182419836521, -0.3600459098815918, -0.2895980775356293, 0.21121525764465332, -0.04225660488009453, -0.25298985838890076, 0.08363310247659683, 0.07342394441366196, -0.10136482119560242, 0.06225999817252159, 0.38707655668258667, -0.39094454050064087, -0.08913068473339081, 0.06431105732917786, 0.24207384884357452, 0.6808615922927856, -0.08777894824743271, -0.37457042932510376, 0.8095402717590332, -0.08523198962211609, -0.3504338562488556, -0.01215131301432848, 0.4251956641674042, 0.11005758494138718, 0.0039033633656799793, -0.07410187274217606, 0.8450558185577393, 0.04807921126484871, 0.13011926412582397, -0.2199295312166214, -0.5326386094093323, 0.5446044206619263, 0.37697094678878784, -0.055648766458034515, 0.00643886299803853, 0.23600290715694427, 0.2765703499317169, 0.3048282265663147, -0.09532949328422546, 0.11235426366329193, 0.05929625406861305, 0.053881898522377014, 0.23070292174816132, -0.034853171557188034, -0.2128131240606308, -0.02939816191792488, -0.125292107462883, -0.44511842727661133, 0.017048180103302002, 0.023572232574224472, -0.14780007302761078, 0.17492443323135376, -0.09533214569091797, 0.10142069309949875, 0.01331829559057951, 0.04360237717628479, 0.07381927967071533, 0.02790379896759987, 0.04921197518706322, -0.26688164472579956, -0.09324456751346588, -0.1285632997751236, -0.18142345547676086, -0.09822049736976624, 0.33344897627830505, 0.06965791434049606, -0.06885144114494324, 0.32233089208602905, 0.5017091631889343, 0.001249126740731299, -0.11836864054203033, 0.1183098703622818, 0.14888156950473785, -0.12877671420574188, 0.31086528301239014, -0.025182068347930908, 0.5072878003120422, 0.24617372453212738, -0.1875600814819336, 0.20041586458683014, 0.3477644622325897, 0.009959850460290909, 0.14492923021316528, 0.007762926630675793, 0.7716162800788879, -0.28400516510009766, -0.10250715911388397, -0.04446302726864815, -0.13143618404865265, 0.07630714774131775, -0.19331024587154388, -0.28546884655952454, -0.07166160643100739, 0.01361064799129963, -0.2660614848136902, 0.14431476593017578, -0.038984786719083786, -0.5130639672279358, 0.148916095495224, 0.08066017180681229, -0.031647782772779465, 0.27205488085746765, 0.04707810655236244, -0.05269009992480278, -0.16819548606872559, 0.1684121936559677, 0.24647659063339233, 0.4391748905181885, 0.08233700692653656, -0.1612996757030487, -0.05114898085594177, -0.10215339809656143, -0.13141494989395142, -0.025014381855726242, -0.10199253261089325, 0.26863616704940796, 0.10202091187238693, 0.26946043968200684, 0.2681831121444702, -0.03586437925696373, 0.2545003890991211, -0.010303706862032413, 0.07453759759664536, -0.03353365883231163, 0.16708728671073914, -0.30166763067245483, -0.3807731568813324, -0.04987815394997597, -0.01349861640483141, -0.06966671347618103, 0.24533486366271973, 0.07427360117435455, 0.14911919832229614, -0.1015835776925087, -0.2358608841896057, -0.20409631729125977, 0.39443981647491455, -0.34798941016197205, -0.2545349895954132, -0.029971593990921974, -0.14846773445606232, -0.10177383571863174, 0.016280466690659523, 0.35726267099380493, 0.12277765572071075, 0.3335723578929901, 0.3912314474582672, -0.07780145108699799, -0.04468684270977974, -0.21032729744911194, 0.050437282770872116, 0.08046853542327881, 0.2831275463104248, -0.10115692019462585, 0.003876781091094017, 0.09026339650154114, -0.25368404388427734, 0.031910285353660583, -0.34466198086738586, -0.06555519998073578, -0.19267113506793976, -0.11883760243654251, -0.01750744692981243, -0.32316669821739197, -0.10839566588401794, -0.6310310959815979, -0.20553506910800934, 0.5200814604759216, 0.06380639225244522, 0.42137885093688965, 0.032219626009464264, -0.225056990981102, 0.12849915027618408, -0.023275155574083328, -0.0056155091151595116, -0.08609545975923538, -0.32068967819213867, 0.1609565019607544, -0.5506548285484314, -0.48488953709602356, -0.058053094893693924, -0.016475860029459, -0.06891947239637375, 0.1413363665342331, -0.6018840074539185, -0.016309816390275955, 0.11172786355018616, 0.23893028497695923, -0.0290665403008461, -0.3738020062446594, 0.3266044557094574, -0.0315827876329422, 0.10523892194032669, -0.13301531970500946, -0.18412864208221436, -0.1981927752494812, 0.09805658459663391, 0.16473998129367828, 0.3603864312171936, -0.17186257243156433, 0.4904504120349884, 0.48670682311058044, 0.03182505443692207, -0.2435641586780548, 0.3236866593360901, 0.14420130848884583, 0.14020732045173645, 0.2634190618991852, -0.025552162900567055, 0.08859384059906006, -0.11944099515676498, -0.1527336686849594, 0.32841894030570984, 0.018948854878544807, -0.39115193486213684, -0.3489375412464142, -0.36777856945991516, -0.39422982931137085, -0.23312927782535553, 0.16498667001724243, 0.14218594133853912, 0.6201727390289307, 0.04669525846838951, -0.26084133982658386, -0.27991268038749695, -0.5743584036827087, -0.18832352757453918, 0.0333733931183815, 0.4541783630847931, 0.17945508658885956, -0.21989303827285767, -0.3218366205692291, -0.34830284118652344, -0.05763251334428787, 0.12599517405033112, 0.5013282299041748, -0.17607000470161438, 0.23615816235542297, 0.26823627948760986, -0.06498007476329803, -0.08274894207715988, -0.06251505762338638, 0.18408165872097015, 0.12043281644582748, -0.2159569412469864, -0.17335574328899384, 0.27787384390830994, -0.11544861644506454, 0.29149293899536133, 0.15797299146652222, 0.4518985152244568, -0.12684817612171173, -0.434464693069458, 0.07403753697872162, -0.0018678070046007633, -0.2597168982028961, -0.16230377554893494, 0.08585662394762039, -0.0005461168475449085, -0.16808591783046722, -0.16179512441158295, -0.2033611536026001, 0.1895044445991516, -0.17801539599895477, 0.21980173885822296, 0.03692730888724327, 0.3316868841648102, 0.17515705525875092, 0.021388528868556023, -0.06221584975719452, 0.18429598212242126, -0.06513470411300659, 0.18519069254398346, 0.4601461589336395, -0.19891425967216492, 0.2502400875091553, 0.33503586053848267, 0.03309783712029457, 0.00616301316767931, 0.034322384744882584, 0.44247475266456604, 0.44675567746162415, 0.14275532960891724, 0.08311416208744049, -0.06380140781402588, -0.2052031010389328, -0.331394761800766, 0.03943881019949913, 0.026397498324513435, -0.3888712525367737, 0.24937626719474792, -0.1147729828953743, 0.42628616094589233, -0.1439492255449295, -0.11779941618442535, 0.019291142001748085, -0.1739879846572876, -0.20694352686405182, 0.4962053596973419, 0.31183192133903503, 0.9623215198516846, -0.27695024013519287, 0.4369776248931885, -0.0007591546163894236, -0.07967591285705566, 0.5795755982398987, -0.3859028220176697, 0.03537701442837715, -0.21797586977481842, 0.20228184759616852, -0.11167613416910172, -0.07959282398223877, 0.11026140302419662, 0.04711643606424332, 0.1516525149345398, 0.10285472124814987, 0.3529248535633087, -0.1564781814813614, 0.01879430189728737, 0.42419055104255676, 0.38278040289878845, -0.24764086306095123, -0.45842427015304565, -0.0183895044028759, -0.2846643328666687, 0.18450985848903656, 0.0521555170416832, -0.5859040021896362, -0.099352166056633, 0.19032686948776245, -0.22181017696857452, -0.026194937527179718, -0.09320597350597382, 0.10910717397928238, 0.12077213078737259, -0.37542545795440674, 0.4350091516971588, 0.45939990878105164, 0.14468517899513245, 0.15060316026210785, -0.49958524107933044, -0.3325144350528717, -0.3276659846305847, -0.30557945370674133, 0.14674676954746246, 0.20235252380371094, 0.2135428637266159, -0.18065868318080902, -0.11238066852092743, 0.08075200021266937, 0.03613230213522911, -0.6247407793998718, -0.14627934992313385, 0.04906120151281357, 0.3756272792816162, -0.13727740943431854, -0.21921062469482422, 0.16352200508117676, -0.3295562267303467, 0.12008310854434967, 0.055887043476104736, 0.34731364250183105, -0.0922018438577652, -0.07711891084909439, 0.30841556191444397, -0.1292668730020523, 0.09501239657402039, 0.3675631582736969, 0.17772579193115234, 0.045106932520866394, 0.30618005990982056, -0.08062253147363663, 0.06714767217636108, -0.07237397879362106, 0.4255789816379547, -0.15064845979213715, -0.10599376261234283, -0.24453872442245483, 0.2478547841310501, -0.13264192640781403, -0.19672203063964844, 0.332768052816391, -0.01781270280480385, -0.2137254923582077, -0.13648970425128937, -0.6354274749755859, -0.20368517935276031, 0.41106942296028137, -0.12021017074584961, -0.027987448498606682, 0.12538620829582214, 0.4923384487628937, -0.03415529057383537, 0.19644077122211456, -0.19202136993408203, 0.25867852568626404, -0.2582676112651825, 0.2504992187023163, 0.26319584250450134, -0.02444312535226345, -0.1339121162891388, 0.05714375153183937, -0.09819912910461426, 0.12212353199720383, -0.2253531813621521, -0.08482947945594788, -0.08733433485031128, 0.22441466152668, 0.3185936510562897, -0.3540011942386627, -0.3149122893810272, -0.764443576335907, -0.25448498129844666, 0.052877165377140045, -0.0703580304980278, 0.08331473916769028, -0.013587869703769684, 0.29566729068756104, -0.18384473025798798, 0.29901549220085144, -0.114143006503582, 0.25129178166389465, 0.061095912009477615, 0.4579069912433624, -0.20315209031105042, 0.30619633197784424, 0.034251902252435684, -0.053424302488565445, -0.16962884366512299, -0.07552249729633331, 0.29670649766921997, 0.017716579139232635, 0.5531836152076721, -0.10111865401268005, -0.05428266152739525, -0.0767907127737999, 0.117989681661129, 0.11212469637393951, -0.1626124083995819, 0.4437759816646576, 0.25621727108955383, -0.028037099167704582, -0.17090827226638794, -0.13441085815429688, 0.05056050047278404, 0.18872083723545074, -0.19456703960895538, -0.0385906919836998, 0.6310539841651917, 0.2019324004650116, 0.15444916486740112, -0.23505425453186035, 0.028264138847589493, -0.21318812668323517, -0.31820687651634216, 0.14991500973701477, -0.23676171898841858, -0.05616103485226631, -0.13696955144405365, 0.35654377937316895, 0.10275883227586746, 0.023053791373968124, 0.22358648478984833, 0.3232930898666382, 0.14927951991558075, 0.0956343337893486, 0.13137374818325043, -0.160781592130661, -0.14412888884544373, 0.0050665694288909435, 0.317852646112442, 0.26332446932792664, -0.3417273759841919, 0.47354286909103394, 0.016995152458548546, 0.09398549795150757, 0.19794462621212006, 0.15973396599292755, 0.0963841900229454, -0.17272399365901947, -0.22111022472381592, 0.009033547714352608, 0.016727522015571594, -0.07874437421560287, -0.22203007340431213, -0.3007407486438751, 0.009092298336327076, 0.27612096071243286, 0.17368337512016296, -0.10547050833702087, 0.02422948181629181, 0.41500934958457947, -0.008884932845830917, -0.22980207204818726, 0.4949309229850769, -0.2747688591480255, 0.1947169303894043, 0.13321146368980408, 0.10980145633220673, -0.01706722192466259, 0.13715295493602753, -0.47063013911247253, -0.038730721920728683, -0.4303734302520752, -0.07534743845462799, -0.031921710819005966, 0.42467036843299866, 0.3504909574985504, -0.14741151034832, 0.42880311608314514, -0.07363899797201157, 0.07250571995973587, 0.13426025211811066, 0.08079354465007782, 0.1512715071439743, -0.21413366496562958, 0.5109360218048096, 0.057175759226083755, -0.39167261123657227, 0.10184289515018463, -0.2378971427679062, 0.06556756049394608, 0.060869250446558, 0.3961157500743866, -0.011190874502062798, 0.18756361305713654, -0.15598630905151367, 0.022044073790311813, -0.1954657882452011, 0.3519826829433441, 0.14415036141872406, 0.4340549111366272, -0.021512506529688835, -0.18801598250865936, -0.3388274908065796, 0.32614433765411377, 0.1111399307847023, -0.14464260637760162, -0.02923854999244213, 0.23799145221710205, 0.3607318699359894, 0.566230833530426, -0.43030181527137756, -0.08955157548189163, 0.07916449010372162, -0.018634481355547905, 0.07888152450323105, 0.0707133412361145, -0.18034031987190247, 0.3250216245651245, -0.14650318026542664, -0.2175445258617401, 0.23013831675052643, -0.27847668528556824, -0.09561409801244736, -0.26709872484207153, 0.12642893195152283, -0.1632898449897766, 0.3355623483657837, 0.4106150269508362, -0.04699238762259483, 0.1489315629005432, -0.012030755169689655, -0.05277741700410843, -0.15929536521434784, -0.05944295600056648, -0.01921888254582882, -0.009469401091337204, 0.15415304899215698, 0.07983151823282242, -0.4466332197189331, 0.2208998054265976, -0.16816887259483337, -0.16169436275959015, -0.4171391725540161, 0.1572965383529663, 0.33958181738853455, -0.1699633002281189, -0.40200668573379517, 0.14479273557662964, 0.09511880576610565, 0.35824450850486755, -0.20508767664432526, -0.2601107358932495, -0.13586269319057465, 0.22579993307590485, 0.21834500133991241, -0.6892315149307251, 0.024470500648021698, 0.1786969006061554, 0.12607090175151825, 0.1074213832616806, -0.13446438312530518, -0.3104923963546753, -0.023372819647192955, 0.1823243945837021, 0.003911430947482586, 0.042208828032016754, -0.049076732248067856, 0.011735359206795692, -0.11201591044664383, -0.1942620873451233, 0.3277129828929901, -0.037101224064826965, -0.02719733491539955, -0.37191659212112427, -0.36692821979522705 ]
https://github.com/huggingface/datasets/issues/281
Private/sensitive data
Hi @julien-c @jplu, Thanks for sharing this solution with me, it helps, this is what I was looking for. If not already there and only missed by me, this could be a great addition in the docs. Closing my issue as resolved, thanks again.
Hi all, Thanks for this fantastic library, it makes it very easy to do prototyping for NLP projects interchangeably between TF/Pytorch. Unfortunately, there is data that cannot easily be shared publicly as it may contain sensitive information. Is there support/a plan to support such data with NLP, e.g. by reading it from local sources? Use case flow could look like this: use NLP to prototype an approach on similar, public data and apply the resulting prototype on sensitive/private data without the need to rethink data processing pipelines. Many thanks for your responses ahead of time and kind regards, MFreidank
44
Private/sensitive data Hi all, Thanks for this fantastic library, it makes it very easy to do prototyping for NLP projects interchangeably between TF/Pytorch. Unfortunately, there is data that cannot easily be shared publicly as it may contain sensitive information. Is there support/a plan to support such data with NLP, e.g. by reading it from local sources? Use case flow could look like this: use NLP to prototype an approach on similar, public data and apply the resulting prototype on sensitive/private data without the need to rethink data processing pipelines. Many thanks for your responses ahead of time and kind regards, MFreidank Hi @julien-c @jplu, Thanks for sharing this solution with me, it helps, this is what I was looking for. If not already there and only missed by me, this could be a great addition in the docs. Closing my issue as resolved, thanks again.
[ 0.025848930701613426, 0.382251501083374, -0.14741942286491394, 0.18580970168113708, -0.3208063840866089, -0.2908133566379547, 0.17590275406837463, 0.3123895227909088, -0.27860355377197266, 0.07938143610954285, -0.06257990747690201, 0.2926684617996216, -0.0952906459569931, 0.40648776292800903, 0.16315500438213348, -0.21602530777454376, -0.21217182278633118, 0.3283576965332031, 0.03996549919247627, 0.16072843968868256, 0.30449235439300537, 0.03050827980041504, -0.06680238991975784, 0.24389216303825378, 0.1339486986398697, -0.11411396414041519, 0.11441546678543091, -0.16503670811653137, 0.04759294167160988, -0.2738579511642456, 0.14514906704425812, 0.18252365291118622, 0.2605028450489044, 0.068190798163414, -0.00011851899034809321, -0.06301272660493851, 0.008069874718785286, -0.1219935193657875, 0.18052469193935394, -0.3296792209148407, 0.16983024775981903, -0.40105926990509033, 0.10109633207321167, -0.07598689198493958, -0.6062314510345459, -0.19204433262348175, 0.2262510359287262, -0.16149260103702545, 0.23302070796489716, -0.1536770612001419, 0.11259132623672485, 0.3779381811618805, 0.10146443545818329, 0.4482397437095642, 0.22354574501514435, 0.03624458611011505, -0.3435450494289398, -0.3351927101612091, 0.4353993535041809, 0.08314599096775055, -0.10787738859653473, 0.12736308574676514, -0.08489682525396347, -0.01663234271109104, 0.0692504271864891, -0.04957705736160278, -0.11093685030937195, -0.48974090814590454, 0.003260894911363721, 0.4364348351955414, 0.6228169202804565, -0.06771203130483627, -0.23187698423862457, -0.18264254927635193, 0.11057724058628082, -0.12962493300437927, 0.01497380156069994, 0.27530407905578613, -0.3189115822315216, 0.18093223869800568, -0.19300949573516846, -0.4642403721809387, -0.5439633727073669, 0.30494263768196106, 0.36717572808265686, 0.041055355221033096, -0.13377247750759125, 0.0076690721325576305, -0.18465864658355713, -0.21361781656742096, 0.17720699310302734, 0.06202533468604088, 0.39483073353767395, 0.27821794152259827, 0.30601561069488525, -0.41166356205940247, -0.10946307331323624, -0.2372368425130844, 0.11591199785470963, -0.04353522136807442, 0.0135562838986516, 0.3441677987575531, -0.42067965865135193, 0.1661999225616455, 0.44766607880592346, -0.30556735396385193, -0.2571881413459778, 0.21017178893089294, 0.6010372042655945, -0.2004004269838333, 0.10962626338005066, 0.15073633193969727, 0.016362573951482773, 0.10816066712141037, -0.37220826745033264, -0.11316059529781342, 0.0403444878757, -0.3706245422363281, -0.14591845870018005, 0.1406533569097519, -0.20362217724323273, 0.13351969420909882, 0.04045581445097923, 0.13390156626701355, 0.046241071075201035, 0.09962447732686996, 0.21972453594207764, -0.29554152488708496, 0.1329728364944458, -0.4402603805065155, 0.12080122530460358, -0.34116753935813904, -0.23466576635837555, 0.22660204768180847, 0.31045910716056824, 0.1657716929912567, 0.1307252198457718, -0.0847359299659729, 0.10263881087303162, 0.05193210393190384, 0.1602880209684372, -0.061195991933345795, 0.26535725593566895, 0.22815604507923126, -0.14295433461666107, -0.20570658147335052, -0.22077889740467072, -0.04442988336086273, -0.25506529211997986, 0.431093692779541, -0.26498833298683167, -0.32269957661628723, -0.04425211250782013, -0.062158361077308655, -0.3281317353248596, 0.043470192700624466, 0.3314887583255768, 0.22572384774684906, 0.07235219329595566, -0.3221590518951416, 0.15311959385871887, 0.0532119981944561, -0.32429438829421997, -0.33379316329956055, 0.1474684774875641, -0.11213833838701248, -0.12445151805877686, 0.16849707067012787, 0.1452999860048294, -0.08140698820352554, 0.1459774672985077, 0.30590739846229553, -0.3773402273654938, -0.21750208735466003, 0.10776744782924652, 0.1623142510652542, 0.7060902118682861, -0.09300829470157623, -0.463605672121048, 0.7872031331062317, -0.03509989753365517, -0.35845765471458435, 0.058800939470529556, 0.5080548524856567, 0.04483281821012497, -0.11441342532634735, -0.19895648956298828, 0.6941428184509277, 0.008913086727261543, 0.1344355344772339, -0.2006940096616745, -0.46805521845817566, 0.5286423563957214, 0.25067031383514404, -0.10924872010946274, 0.07148141413927078, 0.17066211998462677, 0.2525334060192108, 0.3444802165031433, -0.06047999486327171, 0.07768163830041885, 0.05652627348899841, 0.13006755709648132, 0.2442745715379715, 0.01654268242418766, -0.2678133547306061, 0.19444042444229126, -0.23787140846252441, -0.5962440371513367, 0.13793790340423584, 0.004452415741980076, -0.22707821428775787, 0.22112850844860077, -0.11973484605550766, 0.1918441206216812, -0.11304788291454315, 0.07041890174150467, 0.07282087951898575, -0.06375172734260559, 0.035992663353681564, -0.19661754369735718, -0.13040941953659058, -0.12175390869379044, -0.15473134815692902, 0.003904263721778989, 0.2122252732515335, 0.03129742667078972, -0.08970662951469421, 0.34917786717414856, 0.5928792357444763, 0.03008885122835636, -0.08076652139425278, 0.14765343070030212, 0.07509854435920715, -0.1631670743227005, 0.29069802165031433, 0.019502129405736923, 0.6055520176887512, 0.30232757329940796, -0.24512580037117004, 0.14311861991882324, 0.38718289136886597, -0.03192881867289543, 0.22010858356952667, 0.20579110085964203, 0.691146194934845, -0.1732669323682785, -0.20113125443458557, -0.03599878400564194, -0.09387654066085815, -0.05588134378194809, -0.24278022348880768, -0.3530627191066742, 0.00923318974673748, -0.0009061970631591976, -0.29906126856803894, 0.10237593203783035, -0.06318832188844681, -0.5435875654220581, 0.29885321855545044, 0.049447569996118546, -0.02855827473104, 0.30319666862487793, 0.005865408107638359, 0.006882434245198965, -0.032009419053792953, 0.13250227272510529, 0.22786545753479004, 0.2993924617767334, 0.10438572615385056, -0.18835042417049408, -0.07720175385475159, -0.20152544975280762, -0.11348406970500946, 0.0535622201859951, -0.08953380584716797, 0.241171196103096, 0.04129777103662491, 0.2565222680568695, 0.4144946336746216, 0.014173384755849838, 0.2222723364830017, -0.04231670871376991, 0.07571443915367126, 0.0019611648749560118, 0.15073101222515106, -0.2659514546394348, -0.42359012365341187, -0.04004340618848801, 0.029292479157447815, -0.11782151460647583, 0.26229262351989746, 0.1448420137166977, 0.17112034559249878, -0.07698896527290344, -0.17337095737457275, -0.20953401923179626, 0.3818923830986023, -0.32292160391807556, -0.15607930719852448, -0.06021137163043022, -0.11950142681598663, -0.08179879188537598, 0.0512838251888752, 0.2745813727378845, -0.06397541612386703, 0.3549932837486267, 0.4507520794868469, -0.007581830956041813, -0.19119209051132202, -0.4339693486690521, 0.01850479282438755, 0.050646115094423294, 0.2169719636440277, -0.07524961233139038, -0.07548563927412033, 0.12667690217494965, -0.23562248051166534, -0.09456311166286469, -0.4045511484146118, -0.043958116322755814, -0.21158620715141296, -0.17978498339653015, -0.018037017434835434, -0.3064560294151306, -0.0857308879494667, -0.4518188536167145, -0.1782672107219696, 0.4111142158508301, -0.11318051069974899, 0.48388829827308655, 0.1294625848531723, -0.3423333466053009, 0.07171724736690521, -0.02147027477622032, 0.11715135723352432, -0.08485905826091766, -0.2901400327682495, 0.1469908356666565, -0.5867853760719299, -0.4462216794490814, -0.14776869118213654, -0.021920284256339073, 0.05935410410165787, 0.16546837985515594, -0.603714108467102, -0.040083881467580795, 0.10733230412006378, 0.2574414908885956, -0.07115951180458069, -0.325762003660202, 0.3278181552886963, 0.08002221584320068, 0.04384307935833931, -0.20348845422267914, -0.15086229145526886, -0.2604583501815796, -0.046026766300201416, 0.22029057145118713, 0.3321339786052704, -0.29686662554740906, 0.5189400911331177, 0.3058699071407318, 0.06395561248064041, -0.17344091832637787, 0.29944342374801636, 0.21573461592197418, 0.09459270536899567, 0.36291489005088806, 0.033070262521505356, 0.10786724090576172, -0.055528804659843445, -0.02430090494453907, 0.26750895380973816, 0.01706930622458458, -0.49169063568115234, -0.2860349416732788, -0.45134493708610535, -0.3015531003475189, -0.21948328614234924, 0.163820281624794, 0.1265520602464676, 0.7068167328834534, 0.036744873970746994, -0.27156496047973633, -0.26087886095046997, -0.5439242124557495, -0.052899718284606934, 0.015836918726563454, 0.433777779340744, 0.14209574460983276, -0.02885212004184723, -0.36663559079170227, -0.36980003118515015, -0.09496565908193588, 0.1492101103067398, 0.4236324727535248, -0.2810705900192261, 0.3498120903968811, 0.2100924551486969, 0.003833953756839037, -0.14650382101535797, -0.11729489266872406, 0.20599736273288727, 0.08635089546442032, -0.15972183644771576, -0.06303667277097702, 0.3592987060546875, -0.14135876297950745, 0.3985803425312042, 0.17678062617778778, 0.3208020031452179, -0.1546977460384369, -0.45607998967170715, 0.17932601273059845, -0.11339448392391205, -0.1558443009853363, -0.15796153247356415, 0.19279398024082184, 0.014871501363813877, -0.09565341472625732, -0.07504526525735855, -0.16369906067848206, 0.0585436187684536, -0.21204227209091187, 0.15963634848594666, 0.10090793669223785, 0.3026942014694214, 0.21892453730106354, 0.0021817318629473448, -0.17074456810951233, 0.2089243233203888, -0.06172364950180054, 0.1306857019662857, 0.4106844365596771, -0.21670977771282196, 0.046680379658937454, 0.37897923588752747, 0.1262376755475998, 0.029786141589283943, 0.01428416557610035, 0.48600974678993225, 0.48204827308654785, 0.14250850677490234, 0.09664402157068253, -0.12117376923561096, -0.18334156274795532, -0.28155234456062317, -0.07235942035913467, 0.08428256958723068, -0.330374151468277, 0.219801127910614, -0.035743698477745056, 0.33972835540771484, -0.17577314376831055, -0.1982983648777008, 0.08994325995445251, -0.07550037652254105, -0.19886592030525208, 0.4128499925136566, 0.2725476622581482, 1.0386308431625366, -0.13736766576766968, 0.3834432363510132, -0.01969139091670513, -0.1977069079875946, 0.515466034412384, -0.2702787220478058, 0.0434940904378891, -0.19807900488376617, 0.23642155528068542, -0.11288756132125854, -0.04409105330705643, 0.12170549482107162, -0.062314726412296295, 0.03576221317052841, 0.13585007190704346, 0.3239838182926178, -0.29672351479530334, 0.0686846449971199, 0.33577874302864075, 0.39971432089805603, -0.2651272714138031, -0.3937952220439911, -0.024837234988808632, -0.2576267123222351, 0.2632715106010437, 0.03597471863031387, -0.6510299444198608, -0.09083609282970428, 0.266467809677124, -0.2422214299440384, -0.07490672916173935, -0.2591438889503479, -0.002697897842153907, 0.08725190162658691, -0.3631930351257324, 0.5744146108627319, 0.4063824713230133, 0.2704290747642517, 0.20252428948879242, -0.4936996400356293, -0.3203505575656891, -0.24355794489383698, -0.34204787015914917, 0.19349288940429688, 0.1921100616455078, 0.3104510009288788, -0.23762598633766174, -0.14744161069393158, 0.06901992112398148, 0.07323159277439117, -0.53952556848526, -0.23276254534721375, -0.045640334486961365, 0.44909340143203735, -0.17303086817264557, -0.028515229001641273, 0.18949078023433685, -0.3881251811981201, 0.07088468223810196, 0.07141967862844467, 0.35989561676979065, -0.18135486543178558, 0.0008806459954939783, 0.2582424581050873, -0.03910049423575401, 0.10799017548561096, 0.20641212165355682, 0.19713816046714783, 0.04759727790951729, 0.2663506865501404, -0.19168663024902344, 0.03371086344122887, -0.08517133444547653, 0.30728524923324585, -0.1627010554075241, -0.14389866590499878, -0.2423141747713089, 0.22422613203525543, -0.22330643236637115, -0.18701519072055817, 0.3021792471408844, -0.1381722241640091, -0.16809383034706116, -0.19989840686321259, -0.5592113733291626, -0.22772693634033203, 0.2929151654243469, -0.16144493222236633, -0.09622682631015778, -0.01829342357814312, 0.6015925407409668, 0.010629678145051003, 0.20081128180027008, -0.21291480958461761, 0.2726171016693115, -0.23260433971881866, 0.2589341700077057, 0.26859092712402344, -0.10048457980155945, -0.2009241282939911, 0.15223757922649384, -0.09641134738922119, 0.15592314302921295, -0.20942196249961853, -0.07532358914613724, -0.14713473618030548, 0.19753901660442352, 0.2788584530353546, -0.4151133894920349, -0.19198572635650635, -0.6648952960968018, -0.2572936713695526, 0.12073475122451782, -0.02608785219490528, 0.07009927928447723, 0.07715901732444763, 0.22838011384010315, -0.20032700896263123, 0.2988656461238861, 0.019267555326223373, 0.29215535521507263, 0.11981092393398285, 0.45127803087234497, -0.12378139793872833, 0.29363563656806946, -0.05242004990577698, -0.13773493468761444, -0.05345843359827995, -0.06985047459602356, 0.28500473499298096, -0.09466172009706497, 0.6047863960266113, -0.0483580157160759, -0.1324416697025299, 0.08570528030395508, 0.029893413186073303, -0.0660921260714531, -0.11311998218297958, 0.3623419404029846, 0.16693593561649323, -0.014274674467742443, -0.18241529166698456, -0.17858310043811798, -0.06315301358699799, 0.16172142326831818, -0.19254234433174133, -0.050102993845939636, 0.7015513777732849, 0.2607530653476715, 0.3034798502922058, -0.256543904542923, -0.02761434204876423, -0.34274953603744507, -0.32377713918685913, -0.01004710327833891, -0.22351740300655365, -0.036093756556510925, -0.11985421180725098, 0.3481207489967346, 0.02445499785244465, -0.04603468254208565, 0.24685992300510406, 0.35494279861450195, 0.2359413504600525, 0.006490897387266159, 0.2251615822315216, 0.02858881466090679, -0.22061754763126373, -0.05360995978116989, 0.30368858575820923, 0.2582820653915405, -0.36936986446380615, 0.43330004811286926, 0.0842207819223404, 0.12183471769094467, 0.3150327503681183, 0.1767141968011856, 0.0025230750907212496, -0.20236538350582123, -0.12964604794979095, 0.023299021646380424, 0.0620393231511116, -0.23287814855575562, -0.24340887367725372, -0.18386158347129822, 0.0827338844537735, 0.23357054591178894, 0.16296902298927307, -0.10653447359800339, -0.11869695782661438, 0.4715518653392792, 0.19821852445602417, -0.19518835842609406, 0.464773952960968, -0.30475354194641113, 0.17824400961399078, 0.11934369802474976, 0.22133132815361023, 0.024607982486486435, 0.045915547758340836, -0.5211937427520752, -0.04554162546992302, -0.4762409031391144, -0.0726613700389862, 0.016305193305015564, 0.3716425597667694, 0.3945472836494446, -0.18003888428211212, 0.32487747073173523, -0.12164265662431717, 0.0831218808889389, 0.09598999470472336, 0.11076415330171585, 0.09474611282348633, -0.1965453326702118, 0.4842380881309509, 0.05747348070144653, -0.41301262378692627, 0.06285679340362549, -0.1627616137266159, 0.13540808856487274, 0.17418791353702545, 0.4179726243019104, -0.10497955977916718, 0.08093451708555222, -0.172298401594162, 0.0453135184943676, -0.14309996366500854, 0.2850532829761505, 0.08290436118841171, 0.5021229386329651, -0.0567174106836319, -0.22113880515098572, -0.23733669519424438, 0.41162148118019104, 0.31909775733947754, -0.08139019459486008, 0.08700578659772873, 0.1805792599916458, 0.3197382986545563, 0.5312246084213257, -0.22441287338733673, -0.30755412578582764, 0.15142613649368286, -0.09811486303806305, 0.03877224400639534, 0.17473238706588745, -0.2453686147928238, 0.2914695143699646, -0.082288458943367, -0.11178338527679443, 0.260593444108963, -0.2142181545495987, -0.06406659632921219, -0.3192118704319, 0.18886512517929077, -0.18935981392860413, 0.3761967122554779, 0.39251282811164856, 0.011144544929265976, 0.08736158907413483, -0.05466238409280777, -0.1511518955230713, -0.10099980235099792, -0.00731443427503109, -0.033722568303346634, -0.07546529173851013, 0.19209961593151093, -0.07294207811355591, -0.37595710158348083, 0.026991957798600197, -0.16722315549850464, -0.12998388707637787, -0.36319229006767273, 0.21771284937858582, 0.35096895694732666, -0.13585960865020752, -0.3087919056415558, 0.13547950983047485, 0.011854267679154873, 0.3943215608596802, -0.2195739895105362, -0.1936655342578888, -0.1383877992630005, 0.08235431462526321, 0.193823903799057, -0.5943892598152161, 0.0494539812207222, 0.10759508609771729, 0.24108918011188507, 0.07906612753868103, -0.09957745671272278, -0.3960787355899811, -0.018521424382925034, 0.11313806474208832, 0.11504755169153214, -0.02188638038933277, -0.08092015981674194, -0.016544030979275703, -0.09301146864891052, -0.10346517711877823, 0.4703732430934906, -0.04705436900258064, 0.03892260044813156, -0.24273796379566193, -0.33595162630081177 ]
https://github.com/huggingface/datasets/issues/279
Dataset Preprocessing Cache with .map() function not working as expected
When you're processing a dataset with `.map`, it checks whether it has already done this computation using a hash based on the function and the input (using some fancy serialization with `dill`). If you found that it doesn't work as expected in some cases, let us know ! Given that, you can still force to re-process using `.map(my_func, load_from_cache_file=False)` if you want to. I am curious about the problem you have with splits. It makes me think about #160 that was an issue of version 0.1.0. What version of `nlp` are you running ? Could you give me more details ?
I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system. Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file. Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess. I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set. Thanks!
101
Dataset Preprocessing Cache with .map() function not working as expected I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system. Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file. Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess. I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set. Thanks! When you're processing a dataset with `.map`, it checks whether it has already done this computation using a hash based on the function and the input (using some fancy serialization with `dill`). If you found that it doesn't work as expected in some cases, let us know ! Given that, you can still force to re-process using `.map(my_func, load_from_cache_file=False)` if you want to. I am curious about the problem you have with splits. It makes me think about #160 that was an issue of version 0.1.0. What version of `nlp` are you running ? Could you give me more details ?
[ 0.006409975700080395, 0.1274482011795044, -0.017668260261416435, 0.07282713055610657, -0.014893405139446259, -0.017193658277392387, -0.007191928569227457, 0.28662967681884766, 0.28882119059562683, -0.09754016995429993, 0.27223658561706543, 0.4488561153411865, -0.031616128981113434, -0.09311769902706146, 0.05008562281727791, 0.12417306751012802, 0.12280956655740738, 0.30036574602127075, -0.033437035977840424, 0.13032254576683044, -0.36290472745895386, 0.14798720180988312, -0.3015805184841156, 0.11297770589590073, -0.3348105549812317, -0.27270185947418213, 0.017257031053304672, 0.09578730911016464, -0.018856653943657875, -0.3256308436393738, 0.2679964601993561, 0.3375692665576935, -0.10443800687789917, 0.38732174038887024, -0.00012122099724365398, -0.04193694517016411, 0.4864034354686737, -0.022295542061328888, -0.3611884117126465, -0.19473797082901, -0.27028146386146545, -0.24207624793052673, 0.19160792231559753, -0.10748433321714401, -0.003915220033377409, 0.12687070667743683, 0.09830732643604279, -0.8171737194061279, 0.3626425266265869, -0.11879165470600128, 0.12256038188934326, 0.042753666639328, -0.37788090109825134, 0.3451077938079834, 0.14099496603012085, 0.244893878698349, -0.1506151407957077, 0.015682632103562355, 0.24925661087036133, -0.3786742091178894, -0.1975916624069214, 0.2599432170391083, -0.18728627264499664, 0.09816562384366989, 0.18936844170093536, -0.0960441306233406, -0.15069104731082916, -0.5925685167312622, 0.24822671711444855, 0.09385646879673004, 0.383396178483963, -0.22222502529621124, -0.24843662977218628, -0.37329646944999695, -0.20665723085403442, -0.24355056881904602, 0.4230376183986664, 0.03968125954270363, 0.000004034676294395467, 0.12134243547916412, -0.8589964509010315, -0.24179638922214508, 0.19907325506210327, 0.05157025530934334, 0.3050824999809265, 0.1497199982404709, -0.10753937065601349, 0.14883285760879517, 0.2520409822463989, -0.043258100748062134, 0.19558954238891602, -0.38102075457572937, -0.11688019335269928, 0.5440419912338257, -0.27103933691978455, -0.015740318223834038, -0.11967890709638596, 0.3277147710323334, 0.09307511895895004, 0.08092296123504639, 0.12171107530593872, 0.3118826448917389, -0.12564626336097717, 0.1597677320241928, 0.4004632830619812, 0.41346919536590576, 0.2639720141887665, 0.13816732168197632, 0.13299643993377686, -0.26752498745918274, -0.14181379973888397, 0.0852213054895401, 0.2552710175514221, -0.24415835738182068, 0.024896223098039627, 0.18360424041748047, -0.08212625980377197, -0.28865939378738403, 0.16526181995868683, -0.20475223660469055, -0.3881455957889557, -0.30141332745552063, 0.046603184193372726, -0.034650884568691254, 0.06427136808633804, 0.3691853880882263, -0.06798040866851807, 0.02377053163945675, -0.3667444586753845, -0.23129571974277496, -0.0323534719645977, -0.18591859936714172, -0.4503093361854553, 0.29174867272377014, 0.4802573323249817, -0.022991197183728218, 0.14795878529548645, 0.08765561878681183, 0.007694873493164778, -0.2526014745235443, 0.35812488198280334, -0.3446441888809204, 0.5570874810218811, 0.07972180843353271, -0.15281212329864502, 0.21264904737472534, 0.00448228744789958, 0.22687716782093048, -0.18949493765830994, 0.24100245535373688, -0.358746737241745, -0.10224469006061554, 0.4592745304107666, -0.00006644050154136494, -0.2909378707408905, 0.25379881262779236, -0.09929564595222473, 0.3521663248538971, 0.4363534450531006, -0.47559741139411926, -0.012422098778188229, 0.06944642215967178, -0.41581982374191284, -0.22726750373840332, 0.2569481134414673, 0.4410950541496277, -0.1938145011663437, -0.11987735331058502, -0.2141164243221283, 0.017955927178263664, 0.35633209347724915, 0.12710605561733246, -0.19388382136821747, 0.20864959061145782, -0.1683630794286728, 0.29002222418785095, 0.3815329074859619, 0.1351914405822754, -0.4795572757720947, 0.4713781774044037, 0.22840377688407898, 0.22769218683242798, -0.3854053020477295, 0.037571344524621964, 0.0791008248925209, -0.12692759931087494, -0.17642419040203094, 0.3006061017513275, 0.06274041533470154, 0.04137507081031799, -0.27573493123054504, -0.3874903619289398, 0.39892396330833435, -0.16247743368148804, -0.05757680535316467, 0.44691556692123413, -0.13171851634979248, -0.2132028192281723, 0.07780757546424866, -0.08799593895673752, 0.2669749855995178, 0.0754678025841713, -0.17612285912036896, -0.12861111760139465, 0.0832730084657669, -0.17623132467269897, -0.4962340295314789, 0.2724438011646271, -0.3240988552570343, -0.22737136483192444, 0.10259296745061874, 0.004282278008759022, 0.15409235656261444, -0.1819060891866684, -0.11510414630174637, -0.1337404102087021, 0.019980287179350853, -0.09289996325969696, 0.2611239552497864, -0.12856757640838623, -0.16672414541244507, 0.48820534348487854, 0.25614863634109497, -0.10327163338661194, -0.2471446394920349, 0.00039545426261611283, 0.08742772787809372, -0.17196780443191528, -0.2900415360927582, 0.19598138332366943, 0.2051536738872528, -0.07531002163887024, -0.19126640260219574, 0.41127151250839233, 0.26730331778526306, 0.201996847987175, 0.003380223410204053, 0.014501282945275307, 0.12685315310955048, -0.000996776856482029, 0.058954477310180664, -0.035940513014793396, -0.037574402987957, -0.16155457496643066, -0.059396449476480484, 0.337689071893692, -0.1741303652524948, 0.3409545421600342, 0.002341901184991002, -0.010829000733792782, 0.11171924322843552, -0.13573378324508667, -0.028474906459450722, -0.3059621751308441, 0.06595093756914139, -0.04742118716239929, 0.48179247975349426, 0.03739673271775246, 0.07832586765289307, -0.03467738628387451, 0.29128536581993103, 0.13216130435466766, 0.012398885563015938, -0.04032677412033081, 0.00765127083286643, -0.2762726843357086, 0.10637935250997543, 0.23535335063934326, 0.3839118778705597, 0.021584995090961456, 0.3465099036693573, -0.0069524613209068775, -0.08780455589294434, -0.046600937843322754, -0.05628443509340286, 0.03931223973631859, 0.3893089294433594, -0.005982452537864447, 0.09336952865123749, 0.017892586067318916, -0.15839821100234985, 0.14637503027915955, 0.14445726573467255, -0.11717335879802704, -0.07464563101530075, 0.24541877210140228, -0.4893398582935333, -0.29455292224884033, 0.0313836894929409, -0.04022357985377312, -0.43568578362464905, -0.20970076322555542, 0.0017252715770155191, 0.14657503366470337, 0.0630534216761589, 0.280010849237442, -0.010184869170188904, 0.31382110714912415, -0.3168034255504608, -0.1929490566253662, -0.1992977112531662, -0.35075315833091736, -0.2457922399044037, -0.01105425413697958, 0.13491494953632355, -0.02639651857316494, 0.24722591042518616, 0.03273486718535423, -0.16744431853294373, -0.01044602133333683, -0.008220771327614784, 0.26683780550956726, 0.10253863036632538, -0.016748404130339622, -0.2774071991443634, -0.16066135466098785, -0.2169782817363739, 0.08768466860055923, -0.05500292405486107, -0.44428810477256775, -0.18322135508060455, -0.026912584900856018, 0.029726142063736916, 0.007562438491731882, -0.392072468996048, -0.0673004761338234, -0.0958922803401947, -0.07541843503713608, 0.09485003352165222, -0.2142598032951355, 0.20399895310401917, 0.0861300379037857, -0.08285151422023773, -0.0784941092133522, -0.09812934696674347, -0.2145887315273285, -0.36596861481666565, -0.24363040924072266, 0.16148555278778076, -0.15922316908836365, -0.16787885129451752, 0.08094241470098495, 0.05093810707330704, 0.16131514310836792, 0.7081977128982544, -0.24564169347286224, 0.08163850754499435, -0.05144508555531502, -0.1534801572561264, 0.07925330847501755, -0.00016109133139252663, 0.46739691495895386, 0.10110396146774292, 0.10885170847177505, -0.22403736412525177, -0.3684265613555908, 0.226966992020607, 0.17116548120975494, 0.24877434968948364, 0.4404621124267578, 0.024673035368323326, 0.10914985835552216, 0.8266456723213196, 0.40550094842910767, -0.1263308823108673, 0.27482080459594727, 0.2606126368045807, 0.2630577087402344, -0.2511502206325531, -0.006956781260669231, -0.10725080221891403, -0.41781556606292725, -0.021320292726159096, 0.2703513503074646, 0.014495975337922573, -0.7684546113014221, -0.21497541666030884, 0.30279114842414856, -0.32290899753570557, -0.23635640740394592, 0.052655648440122604, -0.5057758092880249, 0.5118839740753174, 0.1472558081150055, 0.05122390016913414, -0.2993227243423462, -0.2363724261522293, -0.12834148108959198, -0.16721771657466888, 0.728985607624054, 0.0014054147759452462, -0.4842480719089508, -0.022138603031635284, -0.3337203562259674, 0.21051213145256042, 0.13405556976795197, 0.5019217133522034, -0.3132719099521637, -0.09185787290334702, 0.07791601121425629, 0.15111634135246277, 0.48568493127822876, -0.41337576508522034, -0.013014204800128937, 0.08947300165891647, -0.1434793919324875, -0.03674892708659172, 0.14464643597602844, 0.2511831223964691, 0.6791266202926636, 0.37769612669944763, 0.1472015082836151, -0.027059584856033325, -0.21702399849891663, -0.3850434422492981, 0.0746961310505867, -0.09577250480651855, -0.35529467463493347, -0.07398175448179245, 0.2762768864631653, -0.26444345712661743, -0.20004090666770935, -0.0776650682091713, -0.2506614923477173, -0.160466268658638, -0.033691324293613434, -0.041776515543460846, 0.07360141724348068, 0.17746785283088684, 0.23504218459129333, 0.39980626106262207, -0.022842925041913986, -0.16727769374847412, 0.5847777128219604, 0.210585817694664, -0.3136131465435028, 0.43400830030441284, -0.2198309302330017, 0.231099933385849, 0.2186959683895111, -0.029140401631593704, 0.2093358188867569, 0.46559518575668335, -0.0588967390358448, -0.12104761600494385, 0.021338827908039093, -0.20668914914131165, -0.48333874344825745, -0.0316985659301281, 0.16944490373134613, -0.1293509304523468, -0.358157217502594, -0.38362574577331543, 0.33272209763526917, 0.334145724773407, -0.3819209933280945, 0.35498329997062683, -0.2618381977081299, -0.3019748032093048, 0.3253309726715088, 0.023950453847646713, 1.0048351287841797, -0.19488365948200226, -0.12483245134353638, -0.4032355546951294, 0.1095942035317421, 0.4291093349456787, -0.3195328414440155, 0.36898669600486755, -0.24419891834259033, -0.0008733771392144263, -0.05880727246403694, -0.12479770183563232, 0.2702734172344208, 0.7461395263671875, -0.11364943534135818, 0.3719307780265808, 0.10796284675598145, 0.06013356149196625, -0.009222384542226791, 0.10001042485237122, 0.2591954469680786, -0.3843866288661957, -0.023566171526908875, 0.07237257808446884, -0.1698034554719925, 0.06634796410799026, 0.06695667654275894, -0.04249202832579613, 0.007067433558404446, 0.1354987770318985, -0.10999514162540436, 0.18842701613903046, -0.14768515527248383, 0.07286100834608078, -0.1071484163403511, -0.039682429283857346, 0.3360195755958557, 0.14927048981189728, 0.1880941390991211, -0.007801370695233345, -0.22214974462985992, -0.05171245336532593, 0.31803640723228455, 0.20391878485679626, -0.10836903750896454, 0.1831476390361786, -0.04067003354430199, 0.002089613815769553, -0.12452761083841324, -0.25309741497039795, -0.22529159486293793, -0.31478920578956604, -0.053781960159540176, 0.062062330543994904, 0.16928955912590027, -0.1764383167028427, -0.1892225295305252, 0.26402807235717773, 0.14974083006381989, 0.13165108859539032, 0.06895818561315536, 0.12832477688789368, 0.11214850842952728, 0.382169634103775, -0.017357349395751953, -0.1874627321958542, 0.006448063999414444, 0.20968152582645416, -0.007049500476568937, -0.194886714220047, 0.17135606706142426, -0.071679025888443, -0.2365669459104538, -0.12360245734453201, -0.26101353764533997, -0.2897471487522125, -0.246113121509552, -0.09084431827068329, -0.08715905249118805, -0.08644694834947586, 0.03021254949271679, -0.23087096214294434, -0.05317191779613495, 0.19101624190807343, -0.19796113669872284, -0.2889895439147949, -0.11364275217056274, -0.06764120608568192, -0.27688735723495483, 0.21762420237064362, 0.13260824978351593, -0.1775796264410019, 0.17861326038837433, 0.5122466087341309, -0.16153289377689362, -0.07358723878860474, 0.11604081839323044, 0.30809321999549866, 0.18394899368286133, 0.0873083844780922, -0.166829451918602, -0.24345776438713074, -0.22753724455833435, 0.07588765025138855, -0.37679243087768555, -0.10499557107686996, 0.08643468469381332, 0.2187219113111496, 0.025657378137111664, -0.4668270945549011, -0.07375270873308182, -0.10028903931379318, 0.07878472656011581, -0.4276939034461975, -0.04280237480998039, -0.08305458724498749, -0.08920874446630478, 0.4422382712364197, 0.30843961238861084, 0.020779859274625778, -0.2366686761379242, 0.13844873011112213, -0.06561044603586197, 0.15514923632144928, 0.04685268923640251, 0.15830621123313904, 0.203446164727211, 0.0708768367767334, -0.25761598348617554, -0.15238122642040253, 0.06384957581758499, -0.0055508604273200035, 0.22880908846855164, -0.20151546597480774, 0.28544190526008606, 0.07845564931631088, 0.1884363740682602, 0.20132893323898315, 0.04899037256836891, -0.12465610355138779, 0.26702880859375, 0.023115169256925583, -0.03065877966582775, -0.23315133154392242, 0.8174631595611572, 0.23632435500621796, -0.047077979892492294, 0.2947334051132202, 0.3611828088760376, 0.14186523854732513, 0.2163408249616623, 0.010650429874658585, 0.3291220963001251, -0.4917743504047394, 0.2105628103017807, 0.21032565832138062, 0.18866987526416779, 0.1961786299943924, 0.22237981855869293, 0.13657411932945251, 0.02118466980755329, 0.19926553964614868, 0.43749719858169556, 0.29887527227401733, 0.3040633201599121, 0.4697701036930084, -0.049411188811063766, -0.5832751393318176, 0.052854910492897034, 0.4703787565231323, -0.05832371115684509, 0.36754313111305237, 0.0255619827657938, 0.22905389964580536, -0.13277684152126312, -0.4096177816390991, 0.008785558864474297, 0.18527571856975555, -0.03254125639796257, -0.1582813560962677, 0.08171158283948898, -0.0903603658080101, 0.039803922176361084, -0.011336649768054485, -0.14559254050254822, 0.13090826570987701, 0.8235419392585754, 0.05222834274172783, -0.02949945256114006, -0.08354286104440689, -0.058716993778944016, -0.05525023862719536, 0.34929582476615906, -0.05783610790967941, 0.16473504900932312, -0.43139880895614624, 0.08424733579158783, 0.06665661185979843, 0.3254651725292206, 0.008874230086803436, 0.36602088809013367, -0.3733349144458771, -0.0598595030605793, 0.04300414025783539, 0.014613918028771877, -0.24892781674861908, 0.5730592012405396, 0.20414996147155762, -0.2849012315273285, 0.19779832661151886, -0.057655218988657, 0.14152005314826965, -0.08842108398675919, 0.1105034351348877, 0.44400301575660706, -0.008536970242857933, 0.3120676875114441, 0.23482383787631989, -0.1558406502008438, 0.22597633302211761, 0.05432095006108284, -0.20923271775245667, 0.10872289538383484, 0.33016476035118103, -0.20414112508296967, 0.17643970251083374, -0.07175881415605545, 0.015824418514966965, 0.0650583878159523, 0.4250701665878296, 0.2880593240261078, 0.049975376576185226, -0.20273403823375702, -0.2592552602291107, -0.4917612075805664, -0.061821386218070984, -0.11751582473516464, 0.16780811548233032, 0.04692912846803665, -0.06593059748411179, -0.07301671802997589, 0.3085060715675354, -0.11962191015481949, -0.35444483160972595, 0.08945131301879883, 0.007595932576805353, -0.3419652581214905, 0.06482185423374176, -0.2347065806388855, 0.11872749030590057, -0.1004285216331482, -0.3049354553222656, 0.12477999180555344, 0.18614044785499573, -0.1550419181585312, 0.07889240980148315, -0.216486394405365, -0.008019393309950829, 0.48573166131973267, 0.20584139227867126, 0.5476556420326233, 0.14505577087402344, 0.06310971826314926, 0.06931314617395401, -0.3424021005630493, 0.034314196556806564, -0.04267984628677368, -0.07440557330846786, 0.05261358618736267, 0.20845036208629608, -0.5877811908721924, 0.24763517081737518, -0.23618465662002563, -0.1315246820449829, -0.10149149596691132, 0.19911940395832062, -0.21817398071289062, -0.277400404214859, -0.047554075717926025, 0.14295750856399536, 0.24319614470005035, 0.5879487991333008, -0.07436545193195343, 0.18855762481689453, -0.43465369939804077, 0.19659903645515442, 0.13311070203781128, -0.48083093762397766, -0.36720749735832214, 0.17183245718479156, 0.11149398982524872, -0.06218307092785835, -0.41341206431388855, -0.3246706426143646, -0.31022438406944275, 0.25679144263267517, -0.30810245871543884, 0.030607393011450768, 0.07504598051309586, -0.3588084578514099, -0.09286332130432129, -0.1293267011642456, 0.38223502039909363, 0.25471031665802, -0.2054177075624466, -0.049109362065792084, -0.2069123387336731 ]
https://github.com/huggingface/datasets/issues/279
Dataset Preprocessing Cache with .map() function not working as expected
Thanks, that's helpful! I was running 0.1.0, but since upgraded to 0.2.1. I can't reproduce the issue anymore as I've cleared the cache & everything now seems to be running fine since the upgrade. I've added some checks to my code, so if I do encounter it again I will reopen this issue.
I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system. Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file. Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess. I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set. Thanks!
53
Dataset Preprocessing Cache with .map() function not working as expected I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system. Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file. Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess. I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set. Thanks! Thanks, that's helpful! I was running 0.1.0, but since upgraded to 0.2.1. I can't reproduce the issue anymore as I've cleared the cache & everything now seems to be running fine since the upgrade. I've added some checks to my code, so if I do encounter it again I will reopen this issue.
[ -0.05952799692749977, 0.09044858068227768, -0.06866920739412308, 0.10039057582616806, 0.12072224915027618, 0.0799233540892601, 0.04323689267039299, 0.26247909665107727, 0.28545719385147095, 0.017795618623495102, 0.2515232563018799, 0.3141246736049652, 0.13796548545360565, -0.07564281672239304, -0.12311951816082001, 0.17928056418895721, 0.18901631236076355, 0.19804434478282928, -0.12831561267375946, 0.2175145298242569, -0.3310682475566864, 0.050762031227350235, -0.26094090938568115, 0.002275711391121149, -0.26566988229751587, -0.18275892734527588, 0.15622267127037048, 0.02522457018494606, -0.0041874367743730545, -0.26673606038093567, 0.2764957547187805, 0.3308144509792328, -0.15849973261356354, 0.5676485300064087, -0.00011873269249917939, 0.1042148768901825, 0.45986407995224, -0.07325906306505203, -0.23600900173187256, 0.005500622559338808, -0.3911936283111572, -0.04233649745583534, 0.1526717096567154, -0.039945051074028015, -0.03450160473585129, 0.11001873761415482, -0.0018393235513940454, -0.9861096739768982, 0.35879096388816833, -0.09717075526714325, 0.13504332304000854, -0.009758618660271168, -0.39997023344039917, 0.20264244079589844, 0.0671887919306755, 0.21500574052333832, -0.17968431115150452, 0.0030368263833224773, 0.42167574167251587, -0.1683775633573532, -0.14094670116901398, 0.18395142257213593, -0.20474377274513245, 0.22757196426391602, 0.22180414199829102, -0.12146903574466705, -0.06486165523529053, -0.6551269292831421, 0.45488807559013367, 0.08990756422281265, 0.4829879701137543, -0.2404881864786148, -0.33723461627960205, -0.18622396886348724, -0.20376388728618622, -0.10016444325447083, 0.4849655330181122, -0.02766200713813305, 0.06012117490172386, 0.2609476149082184, -0.8676722049713135, -0.2269797921180725, 0.10660754889249802, -0.10022368282079697, 0.18798953294754028, -0.038094062358140945, -0.19214369356632233, 0.12355298548936844, 0.13843241333961487, -0.032631609588861465, 0.30905839800834656, -0.4443033039569855, -0.12754519283771515, 0.42592698335647583, -0.20783919095993042, 0.10904460400342941, -0.1491021066904068, 0.2548014223575592, 0.13432300090789795, 0.05483074113726616, 0.11862979084253311, 0.4010964632034302, -0.05581505969166756, 0.12574918568134308, 0.27081143856048584, 0.3804580271244049, 0.19995148479938507, 0.053985826671123505, 0.2071964293718338, -0.28671354055404663, -0.18004150688648224, 0.04979933798313141, 0.20674172043800354, -0.2862972915172577, 0.1496957391500473, 0.0931982770562172, 0.02834077924489975, -0.37824878096580505, 0.13232742249965668, -0.16847528517246246, -0.3022683262825012, -0.26366546750068665, -0.03036673553287983, 0.07098952680826187, 0.04518255218863487, 0.32842910289764404, -0.12477949261665344, -0.0048170848749578, -0.2795681953430176, -0.1862279325723648, -0.031326230615377426, -0.2699475884437561, -0.3030240535736084, 0.3095785081386566, 0.3854759633541107, -0.17761099338531494, 0.11340959370136261, 0.20704565942287445, 0.11043466627597809, -0.3046364486217499, 0.40971213579177856, -0.3524381220340729, 0.6011021137237549, 0.1649870127439499, -0.17726856470108032, 0.25313815474510193, 0.0884697288274765, 0.33418428897857666, -0.09591497480869293, 0.34659498929977417, -0.4138704538345337, -0.07955680787563324, 0.5190354585647583, 0.012813178822398186, -0.25682178139686584, 0.29694512486457825, -0.14903989434242249, 0.20666442811489105, 0.3854330778121948, -0.33860597014427185, -0.040674466639757156, 0.0782061219215393, -0.3557201623916626, -0.23433475196361542, 0.31828850507736206, 0.4376453459262848, -0.34513992071151733, -0.024409037083387375, -0.04541812837123871, 0.03038383275270462, 0.314610093832016, -0.05089981108903885, -0.15410855412483215, 0.2512764036655426, -0.2133024036884308, 0.08423253893852234, 0.11313419044017792, 0.06641834229230881, -0.4564334452152252, 0.4595997631549835, 0.24083155393600464, 0.3241760730743408, -0.327629029750824, -0.031034668907523155, 0.060477010905742645, -0.05843222513794899, -0.25086355209350586, 0.09460293501615524, 0.09315897524356842, 0.046302251517772675, -0.14572261273860931, -0.35079774260520935, 0.25634270906448364, -0.20952631533145905, 0.004486652556806803, 0.5632539987564087, -0.1481964886188507, -0.46458253264427185, 0.03736462816596031, -0.15065698325634003, 0.27618321776390076, 0.17016154527664185, -0.10558769851922989, -0.08807684481143951, 0.08799422532320023, -0.13983790576457977, -0.3425430655479431, 0.379433810710907, -0.14247609674930573, -0.3455410897731781, 0.05062104016542435, -0.009350703097879887, 0.10302489995956421, -0.15865102410316467, -0.20775829255580902, -0.0500640906393528, 0.02353372424840927, -0.03392383083701134, 0.16576556861400604, -0.2036350965499878, -0.11530610918998718, 0.5470620393753052, 0.18918968737125397, -0.07939743250608444, -0.15102389454841614, -0.035081278532743454, 0.2097177803516388, -0.15024840831756592, -0.37314045429229736, -0.02457110770046711, 0.14707164466381073, -0.13567207753658295, -0.1894621104001999, 0.4257088005542755, 0.3730859160423279, 0.2214651256799698, -0.004820125177502632, 0.13518717885017395, 0.057556115090847015, 0.06193535029888153, 0.03669331222772598, -0.0725550577044487, 0.04982014745473862, -0.15910960733890533, -0.05141574144363403, 0.33448904752731323, -0.09114166349172592, 0.37324732542037964, -0.010010295547544956, -0.05445261672139168, 0.14950445294380188, -0.010227999649941921, -0.033626534044742584, -0.2775663733482361, -0.1447201669216156, -0.07740023732185364, 0.5285407304763794, 0.006747136823832989, 0.0939820185303688, -0.06365708261728287, 0.10635016858577728, 0.1443348079919815, -0.009743256494402885, -0.161442831158638, -0.08387324959039688, -0.17453788220882416, 0.08373580873012543, 0.15924161672592163, 0.3290300667285919, -0.006220508832484484, 0.34098365902900696, -0.057355232536792755, 0.004837047774344683, -0.027513496577739716, -0.09392773360013962, 0.08577296137809753, 0.41931119561195374, -0.004059366881847382, 0.02938139997422695, -0.011595047079026699, -0.08498801290988922, 0.17038623988628387, 0.12187325954437256, -0.20711132884025574, -0.18273445963859558, 0.20919251441955566, -0.41686293482780457, -0.05028880387544632, 0.13016492128372192, -0.018914690241217613, -0.2983779311180115, -0.1598958969116211, -0.04560738056898117, 0.16537541151046753, 0.09136464446783066, 0.2640129029750824, -0.058568667620420456, 0.2686867415904999, -0.19540935754776, -0.3422112464904785, -0.19869054853916168, -0.20568673312664032, -0.07325788587331772, 0.007953871972858906, 0.12568438053131104, -0.15416285395622253, 0.25106242299079895, -0.08870852738618851, -0.12576015293598175, -0.14575397968292236, 0.04051217809319496, 0.28855130076408386, 0.08543286472558975, 0.03569154068827629, -0.37063488364219666, -0.00897591095417738, -0.20448316633701324, 0.26173028349876404, -0.020856520161032677, -0.40143176913261414, -0.18303926289081573, -0.012171232141554356, 0.004940762184560299, -0.047340892255306244, -0.30081695318222046, -0.056737858802080154, 0.08248163014650345, -0.03155681490898132, 0.00046415525139309466, -0.2242865115404129, 0.09529633074998856, -0.012026582844555378, 0.06994178146123886, -0.07655827701091766, -0.008229630999267101, -0.15317122638225555, -0.36786168813705444, -0.4966883659362793, 0.2230876386165619, -0.18630893528461456, -0.1567220240831375, 0.2615585923194885, 0.2169645130634308, 0.19645358622074127, 0.7846163511276245, -0.21753759682178497, 0.019605513662099838, -0.13015985488891602, -0.06387636810541153, 0.05542093142867088, -0.021934794262051582, 0.4251805543899536, 0.18365640938282013, 0.08096878230571747, -0.2568444311618805, -0.3909485638141632, 0.16406863927841187, 0.09930592030286789, 0.09629525244235992, 0.4736775755882263, 0.047900617122650146, -0.011418895795941353, 0.9212650656700134, 0.2891286313533783, -0.06087334454059601, 0.2333858758211136, 0.1780748963356018, 0.35176342725753784, -0.31867679953575134, 0.06091989204287529, -0.17868506908416748, -0.4875293970108032, -0.1493472158908844, 0.11197489500045776, 0.037880152463912964, -0.5454314947128296, -0.20417211949825287, 0.39904358983039856, -0.28373783826828003, -0.14793050289154053, -0.06201552599668503, -0.40058398246765137, 0.5391528010368347, 0.05123107135295868, 0.18546274304389954, -0.24672165513038635, -0.10701944679021835, 0.0533125214278698, -0.16044741868972778, 0.7593104243278503, -0.07617194950580597, -0.4067288935184479, 0.027426447719335556, -0.34066739678382874, 0.3155035078525543, 0.10991637408733368, 0.36789873242378235, -0.2778317630290985, -0.10297392308712006, 0.06400258839130402, 0.14806559681892395, 0.4910816550254822, -0.4214983284473419, 0.04629235714673996, 0.05970392003655434, -0.3347882926464081, 0.04659811034798622, 0.07164064049720764, 0.21566663682460785, 0.6267980337142944, 0.1488242745399475, 0.08738923072814941, 0.053123775869607925, -0.191323921084404, -0.5050846338272095, 0.12657791376113892, -0.11797334998846054, -0.3258691430091858, -0.11465749889612198, 0.2298455387353897, -0.27081120014190674, -0.16995325684547424, -0.004658843390643597, -0.26633062958717346, -0.19300523400306702, -0.15600040555000305, -0.18284210562705994, 0.09821023792028427, 0.18062163889408112, 0.2443588525056839, 0.40608832240104675, -0.061761241406202316, -0.08406495302915573, 0.6687201857566833, 0.1799635887145996, 0.02472279965877533, 0.47764667868614197, -0.18667420744895935, 0.09950946271419525, 0.2201073169708252, -0.12495537847280502, 0.13279704749584198, 0.41300246119499207, -0.2108193039894104, -0.20214636623859406, 0.019639674574136734, -0.24659429490566254, -0.5624933838844299, 0.0012007355690002441, 0.18076053261756897, -0.03289790078997612, -0.37435662746429443, -0.46737733483314514, 0.22246728837490082, 0.3381887972354889, -0.4176739454269409, 0.42103344202041626, -0.17404797673225403, -0.28607726097106934, 0.20217177271842957, 0.07861163467168808, 0.8869548439979553, -0.3360159695148468, -0.21193374693393707, -0.44402873516082764, 0.10283097624778748, 0.01874799281358719, -0.2972930371761322, 0.3225610554218292, -0.16319607198238373, -0.20738501846790314, -0.12891080975532532, -0.19979389011859894, 0.37842857837677, 0.6281084418296814, -0.11031284183263779, 0.32749396562576294, -0.09224606305360794, 0.2576873004436493, -0.06043859198689461, -0.06989084929227829, 0.2925602197647095, -0.30847519636154175, 0.0903787687420845, 0.1228206530213356, -0.04324331134557724, -0.06396414339542389, 0.08246120065450668, 0.0709591805934906, -0.04374784603714943, 0.199980691075325, 0.0007835901342332363, 0.11297544091939926, -0.3217521011829376, 0.04095068201422691, -0.20486792922019958, 0.033920254558324814, 0.30398064851760864, 0.2136082500219345, 0.2289961725473404, 0.01652633026242256, -0.2403586506843567, 0.045554231852293015, 0.3730084002017975, 0.2545781433582306, -0.16776621341705322, 0.14423449337482452, -0.14648385345935822, 0.06637004017829895, -0.1275046169757843, -0.12300067394971848, -0.2934536337852478, -0.2894776165485382, -0.021495092660188675, 0.004472807981073856, 0.14856299757957458, -0.26276856660842896, -0.17256684601306915, 0.1919100433588028, 0.25429829955101013, 0.12641459703445435, 0.07893730700016022, 0.15255963802337646, 0.10949822515249252, 0.4262726604938507, -0.07859707623720169, -0.2673991620540619, -0.02450191229581833, 0.24249045550823212, -0.06461029499769211, -0.23312526941299438, 0.12042751163244247, -0.1018591895699501, -0.2137967348098755, -0.1323663741350174, -0.18074584007263184, -0.175225630402565, -0.11027749627828598, -0.04908103495836258, -0.14082910120487213, -0.08748192340135574, 0.0110824229195714, -0.2049192488193512, -0.015799187123775482, 0.07566597312688828, -0.1835896521806717, -0.20507949590682983, -0.18387575447559357, -0.11539489030838013, -0.16254855692386627, 0.30376070737838745, -0.026322780176997185, -0.31707972288131714, 0.15271717309951782, 0.3556813895702362, -0.18141131103038788, -0.10997455567121506, 0.23322245478630066, 0.19672411680221558, 0.040918152779340744, 0.28542205691337585, -0.05251534655690193, -0.2287798374891281, -0.17435818910598755, 0.04591648280620575, -0.36060407757759094, -0.09963494539260864, 0.19992002844810486, 0.22326022386550903, -0.12866543233394623, -0.46709999442100525, 0.011444678530097008, -0.11605673283338547, -0.002437273971736431, -0.47804883122444153, 0.15064409375190735, 0.10624056309461594, -0.060069452971220016, 0.2874806523323059, 0.32220259308815, 0.008649308234453201, -0.2631559371948242, 0.05685676634311676, -0.03809816762804985, 0.15410181879997253, 0.011371048167347908, 0.08452137559652328, 0.1962243914604187, 0.020219674333930016, -0.005764280445873737, -0.09552565217018127, 0.11706651747226715, -0.020294561982154846, 0.29222729802131653, -0.22070270776748657, 0.29753249883651733, 0.22768187522888184, 0.2156781256198883, 0.2388552725315094, -0.07294342666864395, -0.05087003856897354, 0.137716144323349, 0.09358186274766922, 0.031032513827085495, -0.25926926732063293, 0.7433463335037231, 0.24274300038814545, -0.04446686431765556, 0.33208075165748596, 0.36853381991386414, 0.14579613506793976, 0.2659342885017395, 0.06396586447954178, 0.30843958258628845, -0.45188990235328674, 0.22393783926963806, 0.21705548465251923, 0.1885976344347, 0.23545867204666138, 0.308700293302536, 0.2615499198436737, -0.1081758663058281, 0.32234853506088257, 0.43231406807899475, 0.3706764578819275, 0.3667145073413849, 0.47418126463890076, -0.1612982451915741, -0.6234041452407837, 0.16545544564723969, 0.3775995075702667, -0.28649353981018066, 0.2705133557319641, 0.015828292816877365, 0.004621087107807398, -0.07070738077163696, -0.4744415283203125, -0.12465862929821014, 0.020510390400886536, -0.058468177914619446, -0.15476462244987488, 0.24669602513313293, -0.18909186124801636, 0.19963271915912628, -0.05385654792189598, -0.0013485867530107498, 0.09717276692390442, 0.8700406551361084, -0.06799621134996414, 0.0033366393763571978, -0.03456735610961914, -0.08462835848331451, -0.13735206425189972, 0.3553047180175781, -0.018970590084791183, 0.09314463287591934, -0.41315412521362305, 0.032865870743989944, 0.15062512457370758, 0.27579790353775024, -0.029372721910476685, 0.3324168920516968, -0.33194631338119507, -0.007849384099245071, 0.0610654316842556, -0.009050026535987854, -0.20360004901885986, 0.5143906474113464, 0.016502365469932556, -0.2763308584690094, 0.181060791015625, -0.00449447613209486, 0.14361637830734253, -0.11808624118566513, -0.09254518151283264, 0.5848074555397034, -0.137187197804451, 0.15696674585342407, 0.1674058735370636, -0.11904796957969666, 0.259894460439682, -0.011829663068056107, -0.08296699076890945, 0.043707940727472305, 0.4165821969509125, -0.28566840291023254, 0.10088469833135605, 0.043297722935676575, 0.031041298061609268, 0.06951412558555603, 0.347819447517395, 0.3020904064178467, -0.0002092965878546238, -0.26230496168136597, -0.20437908172607422, -0.4773707389831543, -0.011913055554032326, -0.04181625321507454, 0.27826905250549316, 0.01372717134654522, -0.1041593924164772, 0.024409303441643715, 0.22272153198719025, 0.12664292752742767, -0.6021297574043274, 0.14702197909355164, 0.09904804825782776, -0.30597952008247375, 0.03245086967945099, -0.16317734122276306, 0.09561003744602203, -0.07241310924291611, -0.3027045428752899, 0.22401675581932068, 0.25145334005355835, -0.08952400088310242, 0.08510707318782806, -0.19307564198970795, 0.007912896573543549, 0.28542011976242065, 0.42475956678390503, 0.4317097067832947, 0.09102902561426163, 0.07024048268795013, 0.1292342096567154, -0.2891431748867035, 0.0006375530501827598, -0.006029983051121235, -0.03384343907237053, 0.00008852234168443829, 0.10676222294569016, -0.5476576685905457, 0.0628276914358139, -0.24755257368087769, -0.18333587050437927, 0.017474379390478134, 0.2171711027622223, -0.32358691096305847, -0.24889014661312103, -0.012249646708369255, 0.12046785652637482, 0.21197788417339325, 0.4282521605491638, -0.02755500189960003, 0.27458176016807556, -0.39042824506759644, 0.22308968007564545, 0.13948623836040497, -0.4148368537425995, -0.474749892950058, 0.07757014036178589, 0.0630943700671196, -0.16988450288772583, -0.4320862889289856, -0.282671183347702, -0.1736196130514145, 0.2840859591960907, -0.3131861388683319, -0.0337035171687603, 0.08274707943201065, -0.4859706461429596, -0.0049072615802288055, -0.14032293856143951, 0.4262043535709381, 0.19826023280620575, -0.08944892138242722, -0.17822648584842682, -0.158824622631073 ]
https://github.com/huggingface/datasets/issues/279
Dataset Preprocessing Cache with .map() function not working as expected
Just checking in, the cache sometimes still does not work when I make changes in my processing function in version `1.2.1`. The changes made to my data processing function only propagate to the dataset when I use `load_from_cache_file=False` or clear the cache. Is this a system-specific issue?
I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system. Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file. Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess. I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set. Thanks!
47
Dataset Preprocessing Cache with .map() function not working as expected I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system. Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file. Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess. I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set. Thanks! Just checking in, the cache sometimes still does not work when I make changes in my processing function in version `1.2.1`. The changes made to my data processing function only propagate to the dataset when I use `load_from_cache_file=False` or clear the cache. Is this a system-specific issue?
[ -0.042231395840644836, 0.0891583114862442, -0.08176812529563904, 0.09195511788129807, 0.042321138083934784, 0.06223531812429428, 0.02552925795316696, 0.20980514585971832, 0.3237963914871216, 0.028471091762185097, 0.30006250739097595, 0.26434656977653503, 0.17761971056461334, -0.08004272729158401, -0.1128162369132042, 0.18959316611289978, 0.18956702947616577, 0.20837776362895966, -0.07325732707977295, 0.18376819789409637, -0.30831435322761536, 0.05485876649618149, -0.22945129871368408, 0.03916141390800476, -0.2585258185863495, -0.20653553307056427, 0.143230140209198, 0.006047346163541079, 0.0013988781720399857, -0.25224781036376953, 0.297394335269928, 0.3328096866607666, -0.1282961666584015, 0.5881773233413696, -0.00011693024134729058, 0.08422791957855225, 0.45616358518600464, -0.050536081194877625, -0.23499196767807007, -0.009997589513659477, -0.379620760679245, -0.07021760940551758, 0.16023460030555725, -0.024358350783586502, -0.01013845857232809, 0.11621761322021484, 0.020147601142525673, -0.9627581834793091, 0.3745887577533722, -0.0856601819396019, 0.14807431399822235, 0.005918032024055719, -0.3695869743824005, 0.15309318900108337, 0.04921245947480202, 0.20582808554172516, -0.1800125539302826, 0.036517202854156494, 0.41698938608169556, -0.1854201853275299, -0.13932888209819794, 0.1435708850622177, -0.17689041793346405, 0.22466588020324707, 0.22470776736736298, -0.09709546715021133, -0.07453335076570511, -0.6531954407691956, 0.4681525230407715, 0.09297492355108261, 0.5025742650032043, -0.23823487758636475, -0.3564358651638031, -0.18861594796180725, -0.19985376298427582, -0.12840577960014343, 0.47363707423210144, -0.05211497098207474, 0.048024602234363556, 0.24724510312080383, -0.814988911151886, -0.24417442083358765, 0.13996222615242004, -0.06581790745258331, 0.15891894698143005, -0.06066889315843582, -0.2202189415693283, 0.10060124844312668, 0.17532560229301453, -0.033536408096551895, 0.2819593548774719, -0.4145134389400482, -0.09306458383798599, 0.4279220998287201, -0.21988192200660706, 0.08374609053134918, -0.1230279728770256, 0.25605449080467224, 0.08920475840568542, -0.006210880354046822, 0.14863938093185425, 0.41781294345855713, -0.03851427137851715, 0.1505214422941208, 0.2692394256591797, 0.3919087052345276, 0.18364626169204712, 0.02954060025513172, 0.22623145580291748, -0.30689340829849243, -0.18179994821548462, 0.022410161793231964, 0.21956247091293335, -0.3019466996192932, 0.16662435233592987, 0.051904987543821335, -0.04348890483379364, -0.3644345998764038, 0.1479138731956482, -0.1613023430109024, -0.27014026045799255, -0.2687099277973175, -0.024007875472307205, 0.0419544018805027, 0.06241247057914734, 0.3686456084251404, -0.15675953030586243, -0.05837626755237579, -0.28920814394950867, -0.15359479188919067, -0.056806933134794235, -0.2732102572917938, -0.33071815967559814, 0.3337659239768982, 0.372641384601593, -0.1995534896850586, 0.09670816361904144, 0.21275746822357178, 0.11947867274284363, -0.25565046072006226, 0.40232333540916443, -0.3718324303627014, 0.6122222542762756, 0.16730405390262604, -0.199626162648201, 0.31337204575538635, 0.08863440901041031, 0.32823312282562256, -0.1233409196138382, 0.3190574049949646, -0.42714887857437134, -0.07320291548967361, 0.5425624251365662, 0.042624834924936295, -0.23659929633140564, 0.2724856734275818, -0.15767166018486023, 0.18314208090305328, 0.3819372355937958, -0.3411976397037506, -0.01930401101708412, 0.055904828011989594, -0.36140429973602295, -0.24924607574939728, 0.3011449873447418, 0.4044574797153473, -0.3130491077899933, -0.006267455872148275, -0.09665238857269287, 0.008960632607340813, 0.27241578698158264, 0.0020195255056023598, -0.1514180302619934, 0.2569437623023987, -0.18907888233661652, 0.07408841699361801, 0.1797257512807846, 0.046238094568252563, -0.4824352264404297, 0.46190744638442993, 0.2666219472885132, 0.31592315435409546, -0.32009121775627136, -0.03448379784822464, 0.0754927322268486, -0.029252707958221436, -0.2274353951215744, 0.07332056760787964, 0.11262453347444534, 0.01842033863067627, -0.13653911650180817, -0.33545511960983276, 0.23870760202407837, -0.17278121411800385, 0.00988386943936348, 0.5577960014343262, -0.11663706600666046, -0.45337340235710144, -0.0055341036058962345, -0.1171773374080658, 0.26888325810432434, 0.18670688569545746, -0.12418102473020554, -0.08352965116500854, 0.11222658306360245, -0.11789438873529434, -0.2957797348499298, 0.38688912987709045, -0.16080021858215332, -0.3888336420059204, 0.0870990976691246, -0.0017749505350366235, 0.14892584085464478, -0.15080386400222778, -0.17088018357753754, -0.0603688545525074, 0.03417237102985382, -0.03985768184065819, 0.2085990309715271, -0.22141322493553162, -0.1505836844444275, 0.5996139049530029, 0.22883665561676025, -0.11190357059240341, -0.14412440359592438, -0.09066229313611984, 0.18796896934509277, -0.1929449886083603, -0.37656500935554504, -0.04206845536828041, 0.1240159273147583, -0.07171231508255005, -0.1828373670578003, 0.4112229645252228, 0.36446696519851685, 0.23175548017024994, -0.05719340592622757, 0.1484302133321762, 0.07762255519628525, 0.10538789629936218, 0.039512306451797485, -0.04384148120880127, 0.048165950924158096, -0.12594947218894958, -0.045710716396570206, 0.2844946086406708, -0.07565219700336456, 0.33321627974510193, 0.025585150346159935, -0.07850009202957153, 0.1512378603219986, -0.006895932834595442, -0.03271904215216637, -0.28838565945625305, -0.1371816247701645, -0.08562745898962021, 0.5550135970115662, 0.01933205872774124, 0.09989254921674728, -0.07987399399280548, 0.16449670493602753, 0.15882058441638947, -0.005759588908404112, -0.10983537137508392, -0.0765032172203064, -0.2225673645734787, 0.07858534157276154, 0.14217202365398407, 0.3094838857650757, -0.003141439286991954, 0.35055071115493774, -0.0958961471915245, -0.00819514412432909, -0.05344685539603233, -0.12733004987239838, 0.06423627585172653, 0.3782818019390106, -0.012825359590351582, 0.04471354931592941, 0.055471159517765045, -0.05883689969778061, 0.1394156813621521, 0.09541735798120499, -0.23675985634326935, -0.139180988073349, 0.21142560243606567, -0.4382849633693695, -0.10310997068881989, 0.12161021679639816, -0.003858379554003477, -0.2828511595726013, -0.1596030294895172, -0.04918713495135307, 0.1624261438846588, 0.07718399912118912, 0.26261237263679504, -0.04050692543387413, 0.30929601192474365, -0.2414817065000534, -0.3057515621185303, -0.21551461517810822, -0.19715085625648499, -0.11730881780385971, 0.025500914081931114, 0.06587054580450058, -0.17969875037670135, 0.2166004627943039, -0.07365661859512329, -0.12844963371753693, -0.15530993044376373, 0.06316036731004715, 0.28946343064308167, 0.16553305089473724, 0.049743831157684326, -0.3883126378059387, -0.0344400592148304, -0.2452545464038849, 0.25552594661712646, 0.00392120610922575, -0.4348164498806, -0.15218140184879303, -0.057138387113809586, 0.0033032961655408144, -0.07136804610490799, -0.3041383624076843, 0.005595168098807335, 0.0284590944647789, -0.06614390015602112, 0.007872729562222958, -0.21590028703212738, 0.09649202972650528, -0.05885423347353935, 0.06309889256954193, -0.08047140389680862, 0.0026186222676187754, -0.1112726479768753, -0.38950419425964355, -0.515604555606842, 0.23369866609573364, -0.217401385307312, -0.16436897218227386, 0.21389511227607727, 0.21715496480464935, 0.2134818434715271, 0.8205268979072571, -0.17312556505203247, 0.019402295351028442, -0.13118666410446167, -0.0523931160569191, 0.08172480016946793, 0.041198357939720154, 0.4442790448665619, 0.12783090770244598, 0.0468691848218441, -0.26901018619537354, -0.40395742654800415, 0.16872148215770721, 0.09760415554046631, 0.12096738815307617, 0.46206745505332947, 0.026151325553655624, -0.026269808411598206, 0.9281285405158997, 0.2807493209838867, -0.11062034964561462, 0.23996290564537048, 0.21952420473098755, 0.3571156859397888, -0.2936388850212097, 0.07741214334964752, -0.19299249351024628, -0.4637969434261322, -0.1529189646244049, 0.10664102435112, 0.03077046573162079, -0.5778456330299377, -0.23628394305706024, 0.34956735372543335, -0.291243314743042, -0.12496152520179749, -0.05576113611459732, -0.319929838180542, 0.5669845342636108, 0.04199141263961792, 0.165081188082695, -0.26239538192749023, -0.09146039932966232, 0.06530928611755371, -0.14801526069641113, 0.7365269064903259, -0.07873176038265228, -0.3571307957172394, -0.010197765193879604, -0.3159858286380768, 0.289716511964798, 0.0940382331609726, 0.3959238529205322, -0.26714953780174255, -0.1186768114566803, 0.013047679327428341, 0.10422412306070328, 0.46740537881851196, -0.40327849984169006, -0.008958549238741398, 0.07719224691390991, -0.3594948649406433, 0.08867784589529037, 0.07636041939258575, 0.24634455144405365, 0.6016661524772644, 0.13383768498897552, 0.08708255738019943, 0.08095954358577728, -0.1844833642244339, -0.547958493232727, 0.11276278644800186, -0.11541826277971268, -0.3176875114440918, -0.09390081465244293, 0.230058953166008, -0.23882529139518738, -0.17848682403564453, -0.025960706174373627, -0.260391503572464, -0.1423584222793579, -0.12171170115470886, -0.2099798023700714, 0.09346329420804977, 0.17321860790252686, 0.26434779167175293, 0.39280974864959717, -0.10454649478197098, -0.10352595895528793, 0.6716064214706421, 0.1652071624994278, 0.017262419685721397, 0.42911019921302795, -0.19819647073745728, 0.09517873823642731, 0.2537597119808197, -0.0903436467051506, 0.10817040503025055, 0.4060545563697815, -0.2222408503293991, -0.17413951456546783, 0.07731728255748749, -0.23061344027519226, -0.5374782085418701, -0.006893870420753956, 0.13471616804599762, -0.04796600341796875, -0.33380764722824097, -0.49148112535476685, 0.225288987159729, 0.3845278322696686, -0.4131152927875519, 0.42362481355667114, -0.21358542144298553, -0.25903263688087463, 0.216243714094162, 0.06640684604644775, 0.8740594387054443, -0.30669504404067993, -0.17550092935562134, -0.47665318846702576, 0.11666391789913177, 0.030403515323996544, -0.3100537955760956, 0.32365259528160095, -0.15576447546482086, -0.20190325379371643, -0.13105079531669617, -0.19798998534679413, 0.37751251459121704, 0.6080789566040039, -0.0753362700343132, 0.3647034764289856, -0.037857718765735626, 0.26509514451026917, -0.033452145755290985, -0.03609061241149902, 0.25369811058044434, -0.34182631969451904, 0.07205143570899963, 0.13620701432228088, 0.011028804816305637, -0.012182563543319702, 0.06115033105015755, 0.07951249927282333, -0.031327199190855026, 0.16830414533615112, -0.011120476759970188, 0.07248251885175705, -0.37728750705718994, 0.057392388582229614, -0.19061170518398285, 0.05221709981560707, 0.2531181275844574, 0.21590416133403778, 0.2627764642238617, 0.03249959275126457, -0.24491311609745026, 0.0404222197830677, 0.40437185764312744, 0.23838059604167938, -0.19430400431156158, 0.1301572620868683, -0.09483513981103897, 0.04160713404417038, -0.10572649538516998, -0.1037333533167839, -0.2594003677368164, -0.28512081503868103, -0.031062385067343712, 0.016956523060798645, 0.1296371966600418, -0.19284430146217346, -0.1775476187467575, 0.16502425074577332, 0.2473137229681015, 0.12641461193561554, 0.09478281438350677, 0.1902925819158554, 0.14770053327083588, 0.43582552671432495, -0.13449160754680634, -0.24793295562267303, -0.068375363945961, 0.25779110193252563, -0.07670410722494125, -0.27127891778945923, 0.09202485531568527, -0.13710704445838928, -0.24434040486812592, -0.13622337579727173, -0.23754125833511353, -0.2199593037366867, -0.08745524287223816, -0.05922389402985573, -0.13086508214473724, -0.13174614310264587, 0.017549345269799232, -0.2109551578760147, 0.008001057431101799, 0.08337054401636124, -0.17739415168762207, -0.22195108234882355, -0.13048025965690613, -0.10153274983167648, -0.1600717455148697, 0.28143027424812317, 0.013834400102496147, -0.39354807138442993, 0.1601388305425644, 0.31144675612449646, -0.19360888004302979, -0.12699227035045624, 0.26417070627212524, 0.1755342334508896, 0.08223673701286316, 0.2998536229133606, -0.06276432424783707, -0.229341059923172, -0.1649952381849289, 0.04611992835998535, -0.35889938473701477, -0.1267244964838028, 0.18887250125408173, 0.2124413251876831, -0.11740614473819733, -0.4723452925682068, 0.028111033141613007, -0.11684749275445938, 0.04735220596194267, -0.47473227977752686, 0.15658476948738098, 0.10657955706119537, -0.0406276136636734, 0.28955700993537903, 0.2889658212661743, 0.04023342952132225, -0.2808897793292999, 0.08167912811040878, -0.008399768732488155, 0.14878714084625244, 0.018826104700565338, 0.08198518306016922, 0.17469903826713562, 0.03040500544011593, -0.015974804759025574, -0.10045010596513748, 0.07115989923477173, -0.05033831670880318, 0.2550850510597229, -0.2207108736038208, 0.3024340569972992, 0.25574856996536255, 0.19178438186645508, 0.24086010456085205, -0.06531365215778351, -0.06528621166944504, 0.19117093086242676, 0.103721484541893, 0.06459178775548935, -0.24898818135261536, 0.6774765253067017, 0.21975888311862946, -0.052221063524484634, 0.3222689628601074, 0.3933655321598053, 0.1262735277414322, 0.25382694602012634, 0.04287683963775635, 0.3401601314544678, -0.4856707453727722, 0.2219838947057724, 0.17815688252449036, 0.2305351048707962, 0.2444687783718109, 0.31480440497398376, 0.30947446823120117, -0.12062487751245499, 0.33513280749320984, 0.403663694858551, 0.341126948595047, 0.40245291590690613, 0.48822692036628723, -0.16435495018959045, -0.6150525212287903, 0.2145671397447586, 0.39885056018829346, -0.2762083411216736, 0.26730698347091675, -0.03158210963010788, -0.062484294176101685, -0.06755237281322479, -0.4185522496700287, -0.09390012919902802, -0.012201492674648762, -0.055593088269233704, -0.16063867509365082, 0.262986958026886, -0.1779555231332779, 0.19471195340156555, -0.050901200622320175, 0.003111238358542323, 0.1350654661655426, 0.8500321507453918, -0.07478956133127213, -0.008171208202838898, 0.017297113314270973, -0.07930020242929459, -0.17562168836593628, 0.3416588306427002, 0.009419746696949005, 0.09988963603973389, -0.4530881345272064, 0.011473107151687145, 0.12112577259540558, 0.27900779247283936, -0.030284885317087173, 0.35662588477134705, -0.33176812529563904, -0.016894161701202393, 0.061029355973005295, -0.038029029965400696, -0.22700057923793793, 0.4959072172641754, 0.021473048254847527, -0.2843995988368988, 0.14957201480865479, 0.0257512666285038, 0.1173517107963562, -0.10889797657728195, -0.13919314742088318, 0.6097432971000671, -0.16347041726112366, 0.16190031170845032, 0.1676989048719406, -0.10083825141191483, 0.29362809658050537, 0.004168644547462463, -0.07983865588903427, 0.07457506656646729, 0.44696474075317383, -0.2630360424518585, 0.0946161076426506, -0.0006469960790127516, 0.04387766495347023, 0.09216076880693436, 0.34932002425193787, 0.31447532773017883, 0.0399232879281044, -0.22348563373088837, -0.16327723860740662, -0.48273229598999023, -0.017831875011324883, -0.05514043942093849, 0.2705826759338379, -0.013803869485855103, -0.08082257956266403, 0.015323608182370663, 0.2147798389196396, 0.12492328137159348, -0.5909252166748047, 0.12185747921466827, 0.07489637285470963, -0.25181591510772705, 0.060500338673591614, -0.19806945323944092, 0.10912980884313583, -0.04604419693350792, -0.3268638551235199, 0.2052772492170334, 0.16643789410591125, -0.06130159646272659, 0.0705629214644432, -0.21737198531627655, 0.03650648146867752, 0.2530452013015747, 0.4496687948703766, 0.44071146845817566, 0.05783167853951454, 0.05647144094109535, 0.11262226849794388, -0.2935214340686798, 0.005968617275357246, 0.00417869258671999, -0.0368725024163723, -0.03194103389978409, 0.07661053538322449, -0.5562334656715393, 0.05301602929830551, -0.2510073781013489, -0.18558643758296967, 0.004426636733114719, 0.20432497560977936, -0.24332523345947266, -0.2719518840312958, 0.028972160071134567, 0.050587210804224014, 0.2746572196483612, 0.45010635256767273, -0.03142395615577698, 0.2331928312778473, -0.4069158732891083, 0.2510462999343872, 0.0878070518374443, -0.44967979192733765, -0.395104318857193, 0.01399461179971695, 0.06113329157233238, -0.1779446005821228, -0.40099525451660156, -0.2629912793636322, -0.15463338792324066, 0.28520944714546204, -0.3229401409626007, -0.07843704521656036, 0.04271706938743591, -0.469224750995636, -0.003149904776364565, -0.15044932067394257, 0.46650242805480957, 0.20427237451076508, -0.10980776697397232, -0.17567890882492065, -0.1627427339553833 ]
https://github.com/huggingface/datasets/issues/279
Dataset Preprocessing Cache with .map() function not working as expected
Hi @sarahwie The data are reloaded from the cache if the hash of the function you provide is the same as a computation you've done before. The hash is computed by recursively looking at the python objects of the function you provide. If you think there's an issue, can you share the function you used or a google colab please ?
I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system. Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file. Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess. I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set. Thanks!
61
Dataset Preprocessing Cache with .map() function not working as expected I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system. Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file. Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess. I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set. Thanks! Hi @sarahwie The data are reloaded from the cache if the hash of the function you provide is the same as a computation you've done before. The hash is computed by recursively looking at the python objects of the function you provide. If you think there's an issue, can you share the function you used or a google colab please ?
[ 0.012609467841684818, 0.022676387801766396, -0.08359210938215256, 0.1109064370393753, 0.10393094271421432, 0.09357580542564392, 0.007125809323042631, 0.15889102220535278, 0.32624682784080505, -0.00699396338313818, 0.2460043579339981, 0.25857043266296387, 0.141965851187706, -0.04374731704592705, -0.09526089578866959, 0.19916290044784546, 0.16590306162834167, 0.1899382770061493, -0.017559491097927094, 0.1777574121952057, -0.3379138112068176, 0.06170278042554855, -0.2909170687198639, -0.0424196794629097, -0.294163316488266, -0.19838593900203705, 0.12611810863018036, 0.03431525453925133, -0.042841244488954544, -0.26304134726524353, 0.30113595724105835, 0.3228376805782318, -0.14332181215286255, 0.6143491864204407, -0.0001192959098261781, 0.04331560060381889, 0.3999328911304474, -0.09737017750740051, -0.19503936171531677, -0.04252783954143524, -0.3641999661922455, -0.04094807431101799, 0.18668733537197113, -0.07628195732831955, -0.07292003184556961, 0.1407179981470108, -0.03487017750740051, -1.0032603740692139, 0.403830349445343, -0.039583541452884674, 0.13290728628635406, 0.017149465158581734, -0.4026251435279846, 0.2707403004169464, 0.02186850644648075, 0.15241020917892456, -0.1357862502336502, 0.07115897536277771, 0.3388115465641022, -0.2379148304462433, -0.08768993616104126, 0.16955716907978058, -0.230665922164917, 0.2240428477525711, 0.2353818118572235, -0.06498545408248901, -0.13968555629253387, -0.7217978835105896, 0.3800291121006012, 0.05737848952412605, 0.5168450474739075, -0.2660503387451172, -0.37179532647132874, -0.18267236649990082, -0.22368985414505005, -0.1478833705186844, 0.4478946924209595, 0.015669187530875206, 0.04886250197887421, 0.20761935412883759, -0.8422004580497742, -0.18166635930538177, 0.14448463916778564, -0.05106673762202263, 0.179280623793602, 0.0006047158967703581, -0.18454156816005707, 0.10826177895069122, 0.1442219614982605, -0.0036389422602951527, 0.3374116122722626, -0.421664834022522, -0.05856374651193619, 0.48827940225601196, -0.24441896378993988, 0.06818244606256485, -0.15820196270942688, 0.3357009291648865, 0.07626610994338989, 0.05825415626168251, 0.14657530188560486, 0.3805176019668579, -0.07518364489078522, 0.13834543526172638, 0.2568167746067047, 0.3748098909854889, 0.13409142196178436, 0.08452461659908295, 0.20728904008865356, -0.3187161982059479, -0.23405449092388153, 0.020609380677342415, 0.2593967020511627, -0.2871662676334381, 0.28028738498687744, 0.05120931193232536, 0.016127444803714752, -0.3326466381549835, 0.15326061844825745, -0.15256942808628082, -0.3575713634490967, -0.3165357708930969, -0.028957346454262733, 0.10384783893823624, 0.013703089207410812, 0.28771671652793884, -0.1415005922317505, -0.039874568581581116, -0.2923082411289215, -0.05938979610800743, -0.03680194169282913, -0.24175691604614258, -0.3055942952632904, 0.29983797669410706, 0.3559490442276001, -0.2185661345720291, 0.157340407371521, 0.21917633712291718, 0.16408126056194305, -0.3253127336502075, 0.4204200506210327, -0.35916346311569214, 0.6152806282043457, 0.17651645839214325, -0.18646766245365143, 0.2618679404258728, 0.1314360648393631, 0.2853630781173706, -0.11622397601604462, 0.306848406791687, -0.4481901228427887, -0.09910247474908829, 0.5191602110862732, 0.026961185038089752, -0.27325478196144104, 0.2550119459629059, -0.1367582082748413, 0.1432127058506012, 0.4081961214542389, -0.27978941798210144, -0.0005554467788897455, 0.061521682888269424, -0.3477473855018616, -0.3059695065021515, 0.3221849799156189, 0.43915075063705444, -0.27391138672828674, -0.01652269996702671, -0.05497759208083153, 0.07935570180416107, 0.24683929979801178, 0.014458461664617062, -0.15705209970474243, 0.26509889960289, -0.21328204870224, 0.08846884220838547, 0.16391101479530334, 0.0004324755573179573, -0.46774813532829285, 0.3946530222892761, 0.3026476800441742, 0.3626725673675537, -0.3520168960094452, 0.043484579771757126, 0.029597455635666847, -0.06506499648094177, -0.16200770437717438, 0.15326230227947235, 0.09349828213453293, 0.03543063998222351, -0.12480790168046951, -0.2823023498058319, 0.27535977959632874, -0.19800880551338196, 0.0008326421957463026, 0.546674370765686, -0.13419340550899506, -0.49873998761177063, 0.026213057339191437, -0.13587649166584015, 0.17352552711963654, 0.17525309324264526, -0.08784735947847366, -0.07391964644193649, 0.13875356316566467, -0.14024077355861664, -0.3800905644893646, 0.37107279896736145, -0.15067140758037567, -0.30013275146484375, -0.049265410751104355, -0.010012021288275719, 0.08200761675834656, -0.11362051963806152, -0.20489601790905, -0.07437140494585037, 0.03899068012833595, -0.10650478303432465, 0.25337451696395874, -0.19039776921272278, -0.11629743129014969, 0.6129926443099976, 0.23052345216274261, -0.07501933723688126, -0.1576409935951233, -0.04536424204707146, 0.18192647397518158, -0.13825632631778717, -0.37601298093795776, -0.031753551214933395, 0.21874293684959412, -0.10274394601583481, -0.17630144953727722, 0.433142751455307, 0.3840717673301697, 0.1836770921945572, -0.05446643382310867, 0.1820136308670044, 0.07371532171964645, 0.05861113592982292, 0.10193681716918945, -0.01575435698032379, 0.11104606091976166, -0.18270465731620789, 0.004796716384589672, 0.35257038474082947, -0.11566761881113052, 0.330757200717926, 0.024287231266498566, -0.08836974948644638, 0.10982515662908554, -0.016141265630722046, -0.059333059936761856, -0.24159421026706696, -0.13048876821994781, -0.07399851083755493, 0.5344318747520447, 0.014976122416555882, 0.07606643438339233, -0.11011052131652832, 0.11478619277477264, 0.13519807159900665, 0.043605756014585495, -0.15152397751808167, -0.10552866756916046, -0.1825638711452484, 0.04950427636504173, 0.16131292283535004, 0.3329406678676605, -0.044555362313985825, 0.32125136256217957, -0.03958301618695259, 0.007379904855042696, -0.021832425147294998, -0.06971362233161926, 0.09584514051675797, 0.37456440925598145, -0.048412758857011795, 0.053895290940999985, 0.022397411987185478, -0.078518345952034, 0.18875129520893097, 0.08661966025829315, -0.2095687836408615, -0.1836448609828949, 0.2747175097465515, -0.3728380799293518, -0.07215751707553864, 0.12075983732938766, -0.14892910420894623, -0.3147016763687134, -0.19855448603630066, -0.0873122438788414, 0.1540364772081375, 0.148025780916214, 0.23857825994491577, -0.021144863218069077, 0.1770697385072708, -0.19632168114185333, -0.39620664715766907, -0.21088095009326935, -0.25099340081214905, -0.0241289883852005, 0.013031725771725178, 0.05822423845529556, -0.16284185647964478, 0.2691919803619385, -0.07931938022375107, -0.14025995135307312, -0.16211989521980286, 0.031683605164289474, 0.25211432576179504, 0.06294029206037521, 0.09750819951295853, -0.3867303431034088, -0.032396476715803146, -0.26332682371139526, 0.24801142513751984, -0.015013069845736027, -0.3994626998901367, -0.1009920984506607, -0.05135953426361084, 0.04633907228708267, -0.028935473412275314, -0.24536147713661194, -0.032577257603406906, -0.053397659212350845, 0.010763967409729958, -0.017133787274360657, -0.13490808010101318, 0.10153921693563461, 0.0019314601086080074, 0.0572788342833519, -0.14150716364383698, 0.044480547308921814, -0.1505846083164215, -0.3941086530685425, -0.5403401851654053, 0.2928721606731415, -0.17421011626720428, -0.11586383730173111, 0.3231080174446106, 0.144129678606987, 0.18095934391021729, 0.8046805262565613, -0.2107740193605423, -0.08868053555488586, -0.13956905901432037, -0.04635753482580185, 0.0705096498131752, 0.08548776060342789, 0.39928773045539856, 0.14132757484912872, 0.0925290659070015, -0.2513987720012665, -0.38566160202026367, 0.07273218780755997, 0.0985860675573349, 0.1149832159280777, 0.461281418800354, 0.030073091387748718, -0.08496229350566864, 0.9317187666893005, 0.28331997990608215, -0.09500184655189514, 0.26699772477149963, 0.17025761306285858, 0.3451187014579773, -0.2881958782672882, 0.07081657648086548, -0.23673564195632935, -0.4759669005870819, -0.18289172649383545, 0.10633784532546997, 0.08791810274124146, -0.5318130850791931, -0.2258448749780655, 0.38679787516593933, -0.39133816957473755, -0.15998470783233643, -0.06570778042078018, -0.39750295877456665, 0.5221551060676575, 0.07053422927856445, 0.15184195339679718, -0.28380605578422546, -0.12685774266719818, 0.02029716782271862, -0.16422738134860992, 0.7392294406890869, -0.09502003341913223, -0.30287471413612366, -0.0011112230131402612, -0.33804282546043396, 0.30379414558410645, 0.10555827617645264, 0.32779788970947266, -0.186599001288414, -0.1020379588007927, 0.03401337191462517, 0.13050386309623718, 0.49886760115623474, -0.4583158791065216, -0.002216268563643098, 0.049555737525224686, -0.3301028311252594, 0.08775486052036285, 0.07776132971048355, 0.21531473100185394, 0.6324644684791565, 0.08399803936481476, 0.06457547098398209, 0.06565270572900772, -0.13278917968273163, -0.4931653141975403, 0.1411963403224945, -0.12038057297468185, -0.32938599586486816, -0.14171461760997772, 0.13607721030712128, -0.24051111936569214, -0.1840699315071106, 0.022815203294157982, -0.30118659138679504, -0.10763019323348999, -0.08682569116353989, -0.20122435688972473, 0.12941570580005646, 0.21728135645389557, 0.24653260409832, 0.45487716794013977, -0.0538468137383461, -0.07477420568466187, 0.6173521280288696, 0.1336008757352829, -0.05640379339456558, 0.5255811214447021, -0.21115916967391968, 0.08767327666282654, 0.12183954566717148, -0.021375223994255066, 0.13043063879013062, 0.3328426480293274, -0.19822180271148682, -0.17874348163604736, 0.058359723538160324, -0.2208539992570877, -0.5552144646644592, -0.03144193813204765, 0.1663861721754074, 0.014575928449630737, -0.4451224207878113, -0.5543463826179504, 0.2807053327560425, 0.3444274961948395, -0.3840258717536926, 0.42446622252464294, -0.19378741085529327, -0.2579280734062195, 0.2693221867084503, 0.07669727504253387, 0.9050431847572327, -0.39990198612213135, -0.15794064104557037, -0.4110594093799591, 0.17137658596038818, 0.062480513006448746, -0.31203019618988037, 0.31490379571914673, -0.16493934392929077, -0.20675092935562134, -0.14016562700271606, -0.21704179048538208, 0.29494842886924744, 0.5736162662506104, -0.11269403249025345, 0.38967838883399963, -0.07856713980436325, 0.23838818073272705, -0.07192927598953247, -0.0379631482064724, 0.25747716426849365, -0.28426218032836914, 0.04689775034785271, 0.13347268104553223, -0.025585783645510674, -0.01820455677807331, 0.0485941544175148, 0.11203320324420929, -0.04806104302406311, 0.12830515205860138, -0.003654498839750886, 0.06864635646343231, -0.3537272810935974, 0.06654498726129532, -0.22216598689556122, -0.048065781593322754, 0.25161027908325195, 0.20763087272644043, 0.24897609651088715, 0.05587517097592354, -0.2269950807094574, 0.03648312762379646, 0.38702622056007385, 0.20332184433937073, -0.1639779806137085, 0.16353178024291992, -0.12154016643762589, 0.08564861863851547, -0.1350536197423935, -0.09167096018791199, -0.2422161102294922, -0.3425142765045166, -0.04377269372344017, 0.07180524617433548, 0.12471119314432144, -0.2651444673538208, -0.19702152907848358, 0.1820758879184723, 0.20074495673179626, 0.1349458545446396, 0.07918420433998108, 0.18696360290050507, 0.11483107507228851, 0.4786573648452759, -0.11055178195238113, -0.27487999200820923, -0.05398326739668846, 0.2129802703857422, 0.04907692223787308, -0.3119789659976959, 0.12496557831764221, -0.06758318841457367, -0.24604439735412598, -0.12267472594976425, -0.2822341024875641, -0.2911478579044342, -0.007623907178640366, -0.010620612651109695, -0.06717899441719055, -0.007606935687363148, -0.017369767650961876, -0.21600592136383057, -0.035117726773023605, 0.10809053480625153, -0.1765676736831665, -0.26735812425613403, -0.15276241302490234, -0.12977705895900726, -0.10805331915616989, 0.3174188733100891, 0.008523907512426376, -0.3597820997238159, 0.16880083084106445, 0.3486444354057312, -0.18276114761829376, -0.06187902018427849, 0.2007526010274887, 0.22324290871620178, 0.09663313627243042, 0.2734757661819458, 0.008916675113141537, -0.2346753627061844, -0.1388264298439026, 0.04787633195519447, -0.3410565257072449, -0.12041119486093521, 0.23244187235832214, 0.21940630674362183, -0.11287751793861389, -0.5000817775726318, 0.01731143705546856, -0.14198391139507294, 0.06403326243162155, -0.49667108058929443, 0.1426202803850174, 0.16599205136299133, -0.02781110443174839, 0.2998482584953308, 0.3571558892726898, -0.03194069489836693, -0.2766464650630951, 0.07059207558631897, -0.048976585268974304, 0.16476544737815857, 0.04911866411566734, 0.06317784637212753, 0.16806349158287048, 0.04755128547549248, 0.00948738120496273, -0.12913574278354645, 0.09047969430685043, -0.02079504169523716, 0.27819955348968506, -0.22811107337474823, 0.28250107169151306, 0.18245849013328552, 0.2479122430086136, 0.2677651643753052, -0.0781526193022728, -0.03375189006328583, 0.16968651115894318, 0.09217820316553116, 0.007498172577470541, -0.24003173410892487, 0.6981933116912842, 0.22289825975894928, -0.010882183909416199, 0.3533831536769867, 0.32654574513435364, 0.1854865998029709, 0.20356738567352295, 0.03932493180036545, 0.3794468939304352, -0.45537856221199036, 0.22985689342021942, 0.11598758399486542, 0.20000506937503815, 0.20709455013275146, 0.32836663722991943, 0.27653488516807556, -0.1325065940618515, 0.2599070072174072, 0.40387311577796936, 0.3374180793762207, 0.32350000739097595, 0.3901450037956238, -0.19102922081947327, -0.5856963396072388, 0.2203453630208969, 0.3824097514152527, -0.2621117830276489, 0.3146703243255615, 0.0561043806374073, -0.024989033117890358, -0.03809601068496704, -0.3837391436100006, -0.08460460603237152, 0.03548794612288475, -0.028753675520420074, -0.15297400951385498, 0.3428879380226135, -0.161992147564888, 0.24021396040916443, -0.04787337779998779, 0.020813046023249626, 0.017420979216694832, 0.8757126927375793, -0.035954952239990234, -0.0011874744668602943, 0.054496847093105316, -0.03593878820538521, -0.153192400932312, 0.38031044602394104, -0.021007612347602844, 0.02979918010532856, -0.39766925573349, 0.04717151075601578, 0.06924156099557877, 0.22904078662395477, 0.02887873724102974, 0.32944852113723755, -0.37631961703300476, 0.09592089802026749, 0.0928725153207779, -0.034687500447034836, -0.1654839962720871, 0.47806790471076965, 0.018127694725990295, -0.26415398716926575, 0.10798682272434235, 0.024618634954094887, 0.10392916202545166, -0.11043896526098251, -0.09602738916873932, 0.6095190644264221, -0.15412063896656036, 0.14310702681541443, 0.19089555740356445, -0.12615206837654114, 0.2218964546918869, 0.016583098098635674, -0.14468756318092346, 0.06330912560224533, 0.4511495530605316, -0.24220287799835205, 0.09369942545890808, 0.013743601739406586, 0.02753140591084957, 0.0701824203133583, 0.3833504915237427, 0.3801324963569641, 0.1401958167552948, -0.2852891683578491, -0.13698887825012207, -0.5016660094261169, -0.05053189769387245, -0.12710389494895935, 0.20023153722286224, -0.003790771821513772, -0.0853472352027893, 0.028794478625059128, 0.29673993587493896, 0.1420731395483017, -0.531486988067627, 0.08241980522871017, 0.09861736744642258, -0.24313859641551971, -0.027208693325519562, -0.2360905259847641, 0.08325397968292236, -0.052272945642471313, -0.3047013282775879, 0.1619846522808075, 0.13909085094928741, -0.06210411339998245, 0.04145270958542824, -0.18699517846107483, 0.043408069759607315, 0.25208476185798645, 0.4884816110134125, 0.4370417296886444, 0.1001734584569931, 0.06235211342573166, 0.13658937811851501, -0.23716334998607635, 0.0068934909068048, 0.016284052282571793, -0.023128563538193703, 0.004144734237343073, 0.08107249438762665, -0.5207996368408203, 0.03738719969987869, -0.2671988606452942, -0.16496966779232025, -0.011317177675664425, 0.14357824623584747, -0.21956901252269745, -0.287695974111557, 0.06595145910978317, 0.07064671069383621, 0.1852208375930786, 0.49342361092567444, -0.056048035621643066, 0.308230996131897, -0.36121153831481934, 0.20461536943912506, 0.1274629384279251, -0.44975242018699646, -0.4256587624549866, 0.08429709821939468, 0.046521615236997604, -0.25323817133903503, -0.3669763505458832, -0.34754833579063416, -0.08038166165351868, 0.29923489689826965, -0.3192403018474579, -0.07762636989355087, 0.09496219456195831, -0.434652179479599, -0.027276435866951942, -0.13888530433177948, 0.4334094822406769, 0.14472708106040955, -0.07487137615680695, -0.21555101871490479, -0.199441596865654 ]
https://github.com/huggingface/datasets/issues/278
MemoryError when loading German Wikipedia
Hi ! As you noticed, "big" datasets like Wikipedia require apache beam to be processed. However users usually don't have an apache beam runtime available (spark, dataflow, etc.) so our goal for this library is to also make available processed versions of these datasets, so that users can just download and use them right away. This is the case for english and french wikipedia right now: we've processed them ourselves and now they are available from our google storage. However we've not processed the german one (yet).
Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :) I'm trying to download the German Wikipedia dataset as follows: ``` wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train") ``` However, when I do so, I get the following error: ``` Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset save_infos=save_infos, File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')` ``` So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned. This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset? My nlp version is 0.2.1. Thank you!
87
MemoryError when loading German Wikipedia Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :) I'm trying to download the German Wikipedia dataset as follows: ``` wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train") ``` However, when I do so, I get the following error: ``` Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset save_infos=save_infos, File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')` ``` So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned. This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset? My nlp version is 0.2.1. Thank you! Hi ! As you noticed, "big" datasets like Wikipedia require apache beam to be processed. However users usually don't have an apache beam runtime available (spark, dataflow, etc.) so our goal for this library is to also make available processed versions of these datasets, so that users can just download and use them right away. This is the case for english and french wikipedia right now: we've processed them ourselves and now they are available from our google storage. However we've not processed the german one (yet).
[ -0.04793427512049675, 0.12618982791900635, 0.01823911815881729, 0.6689180731773376, 0.24453222751617432, 0.15575040876865387, 0.0049347360618412495, 0.20835690200328827, 0.3758639395236969, -0.05147729068994522, 0.26736196875572205, -0.3312879502773285, -0.17346249520778656, -0.3341790437698364, 0.22966934740543365, -0.48612791299819946, 0.09306759387254715, 0.05842745304107666, -0.09685829281806946, 0.02134900912642479, -0.2210388034582138, 0.2842625379562378, -0.2860860824584961, -0.1296742558479309, -0.24149967730045319, 0.0682763010263443, -0.060694534331560135, 0.0540069118142128, -0.1613464653491974, -0.4543806314468384, 0.1093900129199028, -0.25727635622024536, 0.11816756427288055, 0.18110251426696777, -0.00012172195420134813, 0.04003716632723808, 0.40139931440353394, -0.1707562804222107, -0.44416338205337524, 0.039255619049072266, -0.04547302424907684, -0.34079453349113464, 0.03673407807946205, -0.26067259907722473, 0.060982927680015564, -0.10650109499692917, 0.3253650963306427, -0.0828390046954155, 0.3636325001716614, 0.17929719388484955, 0.1830790638923645, 0.05839947983622551, 0.2596978545188904, -0.0829988345503807, 0.5757555961608887, 0.06039442494511604, 0.051787473261356354, 0.12043469399213791, -0.33719104528427124, -0.36692601442337036, -0.26669299602508545, 0.2971108555793762, 0.01685977540910244, 0.10160959511995316, 0.34289056062698364, -0.1183493435382843, 0.014594853855669498, -0.21514859795570374, 0.21466639637947083, -0.015584468841552734, 0.6984867453575134, -0.22253890335559845, 0.05440380051732063, -0.29872632026672363, -0.08197598159313202, 0.1372261494398117, 0.36996883153915405, 0.37682047486305237, -0.5374552011489868, -0.17521065473556519, -0.18167948722839355, -0.3489994704723358, -0.1634567528963089, 0.3382711708545685, 0.058069031685590744, 0.24271054565906525, -0.04609690234065056, 0.1656009554862976, 0.3660612404346466, -0.04746381565928459, -0.2768140733242035, -0.11192220449447632, -0.012181591242551804, 0.44622522592544556, -0.07023472338914871, 0.0682191327214241, -0.07997316867113113, -0.061932120472192764, 0.23511604964733124, -0.27922987937927246, -0.0940658450126648, -0.06149483472108841, 0.2538711130619049, 0.07732439786195755, 0.2765708267688751, 0.457038938999176, -0.1349073201417923, -0.19879445433616638, 0.16015060245990753, 0.18069598078727722, 0.0185493566095829, -0.16259802877902985, -0.03485286980867386, -0.16336499154567719, -0.07738547772169113, -0.025876104831695557, -0.1039634644985199, -0.046939145773649216, 0.02003474533557892, 0.13095723092556, -0.0963641032576561, -0.13396602869033813, -0.03216909244656563, 0.41890668869018555, -0.1397245079278946, 0.33823060989379883, 0.2956479787826538, 0.06871725618839264, -0.38477855920791626, -0.2950853109359741, -0.14935249090194702, 0.1582219898700714, -0.5230250954627991, 0.12379556894302368, 0.26629307866096497, 0.2771732807159424, 0.36130696535110474, -0.12290957570075989, -0.26837632060050964, 0.049833063036203384, 0.2657949924468994, -0.18319745361804962, -0.032375726848840714, 0.21564361453056335, 0.14843769371509552, 0.28868958353996277, 0.1391696333885193, -0.2281752973794937, 0.00019430437532719225, 0.061920166015625, -0.17707087099552155, -0.19407403469085693, 0.06925812363624573, 0.01768142357468605, -0.1571023017168045, 0.15428690612316132, -0.40317121148109436, 0.23671995103359222, 0.2888610363006592, -0.21285668015480042, -0.09760527312755585, -0.04226323589682579, -0.23210318386554718, -0.26150795817375183, 0.20986472070217133, 0.5494706630706787, -0.09142794460058212, -0.26897281408309937, -0.07590140402317047, -0.09879250824451447, 0.4090282917022705, 0.2375495284795761, -0.10521609336137772, 0.2960045635700226, -0.23157162964344025, 0.09871344268321991, 0.3416328728199005, -0.17392177879810333, -0.3319515287876129, 0.13097740709781647, 0.11024229973554611, 0.1638549268245697, 0.05625881254673004, 0.0016748018097132444, 0.011861530132591724, 0.19847525656223297, 0.19970844686031342, 0.34130892157554626, -0.03526071459054947, 0.2907260060310364, -0.2670721411705017, -0.2709885239601135, 0.2600756585597992, 0.008650019764900208, 0.3516747057437897, 0.05551527813076973, 0.09452040493488312, 0.8308192491531372, 0.2724248170852661, -0.06893252581357956, 0.33180513978004456, 0.5638170838356018, -0.2277192622423172, 0.05730939283967018, -0.011268734000623226, -0.06336934119462967, -0.24862566590309143, 0.19277161359786987, -0.30672773718833923, 0.3094542324542999, -0.021482136100530624, 0.13213331997394562, -0.16403047740459442, -0.09691452980041504, -0.05667500197887421, -0.36996209621429443, 0.08882921934127808, 0.16524654626846313, 0.11012633144855499, 0.21409757435321808, 0.13791552186012268, 0.2627287209033966, -0.011161448433995247, 0.022674620151519775, -0.693361759185791, 0.2087744027376175, -0.14176146686077118, -0.15219686925411224, -0.01093217357993126, 0.10963756591081619, 0.1333906501531601, 0.14382727444171906, -0.13231350481510162, 0.12147538363933563, 0.09903751313686371, -0.04699423536658287, 0.13622267544269562, -0.025001849979162216, 0.265900194644928, -0.18806706368923187, 0.4338080585002899, 0.05866854637861252, 0.16085094213485718, -0.15430425107479095, 0.046903740614652634, -0.21383868157863617, 0.07204589992761612, 0.2993030846118927, 0.08469543606042862, 0.034719936549663544, 0.16727249324321747, 0.15033867955207825, 0.1518823206424713, -0.16568084061145782, 0.40921324491500854, 0.080619215965271, 0.11142338812351227, -0.0011587985791265965, 0.026664214208722115, -0.4050891697406769, 0.4183509647846222, 0.1737968921661377, 0.14272712171077728, 0.261902391910553, -0.4456171691417694, -0.2904946208000183, 0.22474882006645203, -0.05746235325932503, 0.23431359231472015, 0.08118819445371628, 0.13385681807994843, 0.028996706008911133, 0.15939608216285706, 0.03791022300720215, 0.09362160414457321, 0.05890098214149475, 0.5227373242378235, 0.011513286270201206, 0.012552153319120407, -0.13416165113449097, -0.2134275585412979, 0.08087115734815598, 0.03129900246858597, 0.41698145866394043, -0.190216526389122, -0.03903000056743622, -0.0026986366137862206, -0.5402330160140991, -0.3053194582462311, 0.2616868317127228, -0.4882029592990875, -0.2883305549621582, -0.241362065076828, 0.28014397621154785, -0.06628739833831787, -0.013452156446874142, 0.06859660893678665, 0.19893953204154968, 0.108802929520607, -0.14944274723529816, -0.12989062070846558, -0.2826368808746338, -0.35215136408805847, -0.013216692954301834, 0.1780463308095932, 0.045792002230882645, 0.2574235796928406, 0.04749493673443794, -0.1293768435716629, -0.22526220977306366, -0.13908828794956207, 0.19317525625228882, 0.01939854770898819, 0.132352814078331, 0.08083794265985489, 0.6441943645477295, -0.09161869436502457, -0.15892727673053741, 0.312370628118515, -0.13450263440608978, -0.11235067993402481, 0.20584449172019958, 0.0021166305523365736, 0.18940766155719757, 0.023846976459026337, -0.03552234172821045, -0.12397217750549316, -0.4503406286239624, 0.16867446899414062, 0.16548092663288116, -0.02025221474468708, 0.34787416458129883, 0.12827128171920776, 0.0782882496714592, 0.17750434577465057, 0.1381354033946991, -0.19091565907001495, -0.05106781795620918, 0.24691380560398102, -0.33097198605537415, -0.30591294169425964, -0.07152082771062851, -0.16015839576721191, 0.22426064312458038, 0.4027504324913025, -0.698495626449585, 0.10614912956953049, -0.12761755287647247, -0.2190023809671402, 0.04909220710396767, 0.03725401684641838, 0.36839911341667175, -0.19165410101413727, -0.019381463527679443, -0.0021282220259308815, -0.06953472644090652, -0.033537283539772034, -0.21129027009010315, 0.6732006669044495, 0.18784359097480774, 0.3525748550891876, 0.2811797857284546, 0.919668436050415, 0.21025899052619934, 0.42031821608543396, 0.45925790071487427, 0.1845637857913971, 0.21182666718959808, -0.13920871913433075, -0.21654072403907776, 0.054272014647722244, -0.29584982991218567, -0.14695607125759125, 0.19300813972949982, 0.05399880185723305, -0.5334841012954712, -0.3363070785999298, -0.22295646369457245, -0.17357780039310455, -0.3317173719406128, 0.3225138783454895, -0.007296868599951267, 0.3478625416755676, -0.05778665468096733, -0.03294012323021889, -0.2737745940685272, -0.4534513056278229, 0.024415932595729828, 0.052549418061971664, 0.03614296764135361, 0.1982203722000122, -0.07064060121774673, 0.09258228540420532, -0.7637266516685486, 0.05214930325746536, 0.022450339049100876, 0.25257042050361633, -0.23398099839687347, -0.0375971719622612, -0.05336551368236542, -0.0019640340469777584, 0.6382452249526978, -0.12215349078178406, -0.10831344872713089, -0.0036729297135025263, -0.07280054688453674, -0.6327515244483948, -0.0034905788488686085, -0.014183522202074528, 0.019742779433727264, 0.2299296259880066, -0.009248243644833565, -0.4394514560699463, -0.017310233786702156, 0.14759820699691772, 0.2754667401313782, -0.3025970160961151, -0.09351500868797302, -0.3661647140979767, -0.11953200399875641, -0.5057446360588074, -0.12866361439228058, 0.06480946391820908, 0.22246146202087402, 0.3846004605293274, 0.31604892015457153, 0.09972185641527176, 0.08570291846990585, -0.012087603099644184, -0.06987578421831131, 0.25824782252311707, 0.12978115677833557, -0.13680163025856018, 0.2899032533168793, 0.08412624150514603, -0.24117855727672577, 0.3528221845626831, 0.050384145230054855, -0.25061050057411194, 0.0791514590382576, 0.14902561902999878, 0.11584710329771042, 0.2734070122241974, 0.09892786294221878, -0.12371561676263809, 0.16670061647891998, -0.05851360782980919, -0.42191970348358154, 0.2355530560016632, 0.28158411383628845, -0.1854797750711441, -0.3053145408630371, -0.511624276638031, 0.6158607006072998, 0.05597091466188431, 0.030451443046331406, 0.20863120257854462, 0.02239982597529888, -0.4127811789512634, 0.44134286046028137, 0.26830118894577026, 0.9731231927871704, -0.20404238998889923, 0.42499837279319763, 0.23177868127822876, 0.1344747394323349, 0.5237078070640564, -0.5167384743690491, 0.38315457105636597, -0.3056228756904602, 0.1268453747034073, -0.013337280601263046, -0.10856375098228455, 0.03648335859179497, 0.11471947282552719, 0.06540679186582565, 0.32536670565605164, 0.20793665945529938, 0.09614335000514984, -0.07739413529634476, 0.45882678031921387, -0.08006742596626282, -0.3420722186565399, -0.19557970762252808, 0.1220063865184784, -0.34487730264663696, 0.3898969292640686, -0.36450639367103577, 0.02170906588435173, 0.07767294347286224, -0.11058734357357025, -0.4916015863418579, 0.07951511442661285, -0.32508769631385803, 0.405594140291214, -0.32848048210144043, -0.13713692128658295, -0.14217063784599304, 0.31596264243125916, 0.05925770476460457, 0.1933969408273697, -0.24983984231948853, 0.2242748737335205, -0.3976946175098419, -0.235677570104599, 0.020828593522310257, 0.23375335335731506, 0.40875208377838135, -0.20691215991973877, -0.24383686482906342, 0.09800398349761963, -0.19044490158557892, -0.3769413232803345, -0.16764625906944275, -0.10644685477018356, 0.08835658431053162, -0.014652243815362453, -0.3172789514064789, -0.009053437039256096, -0.14136432111263275, 0.056081563234329224, 0.0824531763792038, 0.013701209798455238, -0.11961735039949417, -0.09041141718626022, 0.03063279017806053, -0.16258743405342102, 0.05373417213559151, 0.44527846574783325, 0.19932791590690613, -0.1737646609544754, 0.674877941608429, 0.3185999095439911, -0.27011656761169434, -0.058843594044446945, -0.14549171924591064, 0.026524236425757408, -0.39161592721939087, 0.08036041259765625, -0.12232033908367157, -0.03268925100564957, -0.23293963074684143, -0.015879837796092033, 0.26397475600242615, -0.1289006620645523, 0.25036120414733887, -0.3973310589790344, -0.4390518367290497, 0.32764700055122375, -0.13403761386871338, 0.18060161173343658, 0.26814302802085876, -0.303636372089386, 0.14833326637744904, -0.0007165683200582862, -0.17669665813446045, -0.03368617594242096, -0.2832542359828949, 0.19930225610733032, 0.3010996878147125, -0.15525759756565094, 0.07127584517002106, 0.1344740241765976, 0.028118645772337914, 0.14065004885196686, -0.16713106632232666, -0.12094190716743469, -0.021527374163269997, 0.17022155225276947, -0.021185094490647316, -0.15751142799854279, 0.00798911601305008, -0.4215225279331207, 0.13371942937374115, -0.31005001068115234, 0.09497389197349548, 0.09408223628997803, -0.02313135750591755, 0.30494603514671326, 0.16527248919010162, 0.058949150145053864, -0.09553591161966324, 0.45909544825553894, 0.004906677640974522, 0.48810842633247375, 0.19494391977787018, 0.14602705836296082, 0.2174537628889084, 0.00951362494379282, -0.5299926996231079, 0.059596192091703415, -0.1048063263297081, -0.0354551337659359, 0.12952882051467896, -0.17120811343193054, 0.015818659216165543, 0.18677668273448944, -0.04036172479391098, 0.10278239101171494, -0.11737792938947678, -0.04468417540192604, 0.20297376811504364, 0.13012678921222687, -0.12902159988880157, 0.12196077406406403, 0.3430010974407196, -0.03814186155796051, -0.2553500831127167, 0.1517666131258011, 0.11667320132255554, -0.021860264241695404, -0.04639703407883644, 0.13871265947818756, 0.3468562364578247, -0.08004232496023178, 0.08237466216087341, -0.1870737075805664, 0.02471097558736801, -0.042911939322948456, -0.13443034887313843, 0.2051118016242981, 0.1837245523929596, 0.40192604064941406, 0.002795626875013113, 0.14150108397006989, -0.16378316283226013, 0.07540392875671387, -0.1910851150751114, -0.328939825296402, 0.020315079018473625, 0.5687047243118286, -0.04699112847447395, 0.28436926007270813, -0.14462780952453613, 0.17800475656986237, 0.36120808124542236, -0.13690316677093506, -0.36710262298583984, 0.23132318258285522, -0.14479178190231323, 0.06172490492463112, -0.058048930019140244, -0.23646694421768188, -0.20972764492034912, 0.29068025946617126, 0.05285199359059334, -0.48371821641921997, 0.08078359067440033, 0.19289684295654297, -0.17191949486732483, -0.2963339388370514, 0.42014414072036743, 0.1663338541984558, -0.01927068829536438, -0.3831956684589386, 0.09907466918230057, 0.14486543834209442, -0.04473138600587845, -0.0872010886669159, 0.30977824330329895, 0.4060992896556854, 0.30719372630119324, -0.2704363763332367, 0.009355094283819199, -0.005944326985627413, -0.0063550653867423534, -0.24959924817085266, 0.2559787631034851, 0.4065108299255371, 0.3059678077697754, 0.1803966909646988, 0.0541907362639904, -0.10253911465406418, -0.3101825416088104, 0.3593682646751404, -0.06288811564445496, -0.1212562546133995, -0.01921088993549347, -0.2770348787307739, 0.035101503133773804, -0.22773943841457367, 0.049422603100538254, -0.5648449063301086, 0.10318047553300858, 0.20874786376953125, -0.13252104818820953, 0.11679685115814209, -0.0363968163728714, 0.0014874525368213654, -0.16575464606285095, 0.5369608998298645, 0.2511483430862427, 0.11229075491428375, -0.463784784078598, -0.3375474810600281, -0.510927677154541, 0.07808154076337814, -0.3646358549594879, 0.06499864161014557, -0.05532551556825638, 0.37318095564842224, -0.17176848649978638, 0.15667939186096191, -0.26685938239097595, 0.10987325012683868, -0.11338085681200027, 0.23890367150306702, -0.3001955449581146, -0.2587810456752777, 0.04700439050793648, 0.07872378826141357, -0.08048509061336517, -0.2608901560306549, 0.08748622983694077, -0.02748868241906166, -0.05485678091645241, -0.2284458875656128, -0.2025664895772934, 0.08811455965042114, 0.26463475823402405, 0.2633490562438965, 0.12228462845087051, 0.5243083238601685, 0.07498643547296524, -0.3782123625278473, -0.2976658046245575, -0.167306050658226, 0.04359028860926628, 0.006588764954358339, -0.0800362229347229, 0.5198347568511963, -0.2667165994644165, 0.15822333097457886, -0.4382745623588562, 0.47565531730651855, -0.17140761017799377, 0.1068444550037384, -0.36277294158935547, -0.15646694600582123, 0.034559715539216995, 0.2266116738319397, 0.2080155313014984, 0.18166379630565643, -0.09175591170787811, 0.07733568549156189, -0.253907710313797, -0.13095858693122864, 0.33519771695137024, -0.5924606323242188, -0.3291897773742676, 0.05241287499666214, -0.058367274701595306, -0.015294232405722141, -0.11526050418615341, -0.5271493196487427, 0.034352850168943405, 0.1688706874847412, 0.08817494660615921, -0.1708846390247345, -0.04184339568018913, -0.06303346902132034, -0.02288919873535633, -0.08436079323291779, 0.07172222435474396, -0.12094815820455551, -0.3793060779571533, 0.13732261955738068, -0.2624131143093109 ]
https://github.com/huggingface/datasets/issues/278
MemoryError when loading German Wikipedia
Hi @lhoestq Thank you for your quick reply. I thought this might be the case, that the processing was done for some languages and not for others. Is there any set timeline for when other languages (German, Italian) will be processed? Given enough memory, is it possible to process the data ourselves by specifying the `beam_runner`?
Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :) I'm trying to download the German Wikipedia dataset as follows: ``` wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train") ``` However, when I do so, I get the following error: ``` Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset save_infos=save_infos, File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')` ``` So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned. This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset? My nlp version is 0.2.1. Thank you!
56
MemoryError when loading German Wikipedia Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :) I'm trying to download the German Wikipedia dataset as follows: ``` wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train") ``` However, when I do so, I get the following error: ``` Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset save_infos=save_infos, File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')` ``` So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned. This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset? My nlp version is 0.2.1. Thank you! Hi @lhoestq Thank you for your quick reply. I thought this might be the case, that the processing was done for some languages and not for others. Is there any set timeline for when other languages (German, Italian) will be processed? Given enough memory, is it possible to process the data ourselves by specifying the `beam_runner`?
[ -0.04793427512049675, 0.12618982791900635, 0.01823911815881729, 0.6689180731773376, 0.24453222751617432, 0.15575040876865387, 0.0049347360618412495, 0.20835690200328827, 0.3758639395236969, -0.05147729068994522, 0.26736196875572205, -0.3312879502773285, -0.17346249520778656, -0.3341790437698364, 0.22966934740543365, -0.48612791299819946, 0.09306759387254715, 0.05842745304107666, -0.09685829281806946, 0.02134900912642479, -0.2210388034582138, 0.2842625379562378, -0.2860860824584961, -0.1296742558479309, -0.24149967730045319, 0.0682763010263443, -0.060694534331560135, 0.0540069118142128, -0.1613464653491974, -0.4543806314468384, 0.1093900129199028, -0.25727635622024536, 0.11816756427288055, 0.18110251426696777, -0.00012172195420134813, 0.04003716632723808, 0.40139931440353394, -0.1707562804222107, -0.44416338205337524, 0.039255619049072266, -0.04547302424907684, -0.34079453349113464, 0.03673407807946205, -0.26067259907722473, 0.060982927680015564, -0.10650109499692917, 0.3253650963306427, -0.0828390046954155, 0.3636325001716614, 0.17929719388484955, 0.1830790638923645, 0.05839947983622551, 0.2596978545188904, -0.0829988345503807, 0.5757555961608887, 0.06039442494511604, 0.051787473261356354, 0.12043469399213791, -0.33719104528427124, -0.36692601442337036, -0.26669299602508545, 0.2971108555793762, 0.01685977540910244, 0.10160959511995316, 0.34289056062698364, -0.1183493435382843, 0.014594853855669498, -0.21514859795570374, 0.21466639637947083, -0.015584468841552734, 0.6984867453575134, -0.22253890335559845, 0.05440380051732063, -0.29872632026672363, -0.08197598159313202, 0.1372261494398117, 0.36996883153915405, 0.37682047486305237, -0.5374552011489868, -0.17521065473556519, -0.18167948722839355, -0.3489994704723358, -0.1634567528963089, 0.3382711708545685, 0.058069031685590744, 0.24271054565906525, -0.04609690234065056, 0.1656009554862976, 0.3660612404346466, -0.04746381565928459, -0.2768140733242035, -0.11192220449447632, -0.012181591242551804, 0.44622522592544556, -0.07023472338914871, 0.0682191327214241, -0.07997316867113113, -0.061932120472192764, 0.23511604964733124, -0.27922987937927246, -0.0940658450126648, -0.06149483472108841, 0.2538711130619049, 0.07732439786195755, 0.2765708267688751, 0.457038938999176, -0.1349073201417923, -0.19879445433616638, 0.16015060245990753, 0.18069598078727722, 0.0185493566095829, -0.16259802877902985, -0.03485286980867386, -0.16336499154567719, -0.07738547772169113, -0.025876104831695557, -0.1039634644985199, -0.046939145773649216, 0.02003474533557892, 0.13095723092556, -0.0963641032576561, -0.13396602869033813, -0.03216909244656563, 0.41890668869018555, -0.1397245079278946, 0.33823060989379883, 0.2956479787826538, 0.06871725618839264, -0.38477855920791626, -0.2950853109359741, -0.14935249090194702, 0.1582219898700714, -0.5230250954627991, 0.12379556894302368, 0.26629307866096497, 0.2771732807159424, 0.36130696535110474, -0.12290957570075989, -0.26837632060050964, 0.049833063036203384, 0.2657949924468994, -0.18319745361804962, -0.032375726848840714, 0.21564361453056335, 0.14843769371509552, 0.28868958353996277, 0.1391696333885193, -0.2281752973794937, 0.00019430437532719225, 0.061920166015625, -0.17707087099552155, -0.19407403469085693, 0.06925812363624573, 0.01768142357468605, -0.1571023017168045, 0.15428690612316132, -0.40317121148109436, 0.23671995103359222, 0.2888610363006592, -0.21285668015480042, -0.09760527312755585, -0.04226323589682579, -0.23210318386554718, -0.26150795817375183, 0.20986472070217133, 0.5494706630706787, -0.09142794460058212, -0.26897281408309937, -0.07590140402317047, -0.09879250824451447, 0.4090282917022705, 0.2375495284795761, -0.10521609336137772, 0.2960045635700226, -0.23157162964344025, 0.09871344268321991, 0.3416328728199005, -0.17392177879810333, -0.3319515287876129, 0.13097740709781647, 0.11024229973554611, 0.1638549268245697, 0.05625881254673004, 0.0016748018097132444, 0.011861530132591724, 0.19847525656223297, 0.19970844686031342, 0.34130892157554626, -0.03526071459054947, 0.2907260060310364, -0.2670721411705017, -0.2709885239601135, 0.2600756585597992, 0.008650019764900208, 0.3516747057437897, 0.05551527813076973, 0.09452040493488312, 0.8308192491531372, 0.2724248170852661, -0.06893252581357956, 0.33180513978004456, 0.5638170838356018, -0.2277192622423172, 0.05730939283967018, -0.011268734000623226, -0.06336934119462967, -0.24862566590309143, 0.19277161359786987, -0.30672773718833923, 0.3094542324542999, -0.021482136100530624, 0.13213331997394562, -0.16403047740459442, -0.09691452980041504, -0.05667500197887421, -0.36996209621429443, 0.08882921934127808, 0.16524654626846313, 0.11012633144855499, 0.21409757435321808, 0.13791552186012268, 0.2627287209033966, -0.011161448433995247, 0.022674620151519775, -0.693361759185791, 0.2087744027376175, -0.14176146686077118, -0.15219686925411224, -0.01093217357993126, 0.10963756591081619, 0.1333906501531601, 0.14382727444171906, -0.13231350481510162, 0.12147538363933563, 0.09903751313686371, -0.04699423536658287, 0.13622267544269562, -0.025001849979162216, 0.265900194644928, -0.18806706368923187, 0.4338080585002899, 0.05866854637861252, 0.16085094213485718, -0.15430425107479095, 0.046903740614652634, -0.21383868157863617, 0.07204589992761612, 0.2993030846118927, 0.08469543606042862, 0.034719936549663544, 0.16727249324321747, 0.15033867955207825, 0.1518823206424713, -0.16568084061145782, 0.40921324491500854, 0.080619215965271, 0.11142338812351227, -0.0011587985791265965, 0.026664214208722115, -0.4050891697406769, 0.4183509647846222, 0.1737968921661377, 0.14272712171077728, 0.261902391910553, -0.4456171691417694, -0.2904946208000183, 0.22474882006645203, -0.05746235325932503, 0.23431359231472015, 0.08118819445371628, 0.13385681807994843, 0.028996706008911133, 0.15939608216285706, 0.03791022300720215, 0.09362160414457321, 0.05890098214149475, 0.5227373242378235, 0.011513286270201206, 0.012552153319120407, -0.13416165113449097, -0.2134275585412979, 0.08087115734815598, 0.03129900246858597, 0.41698145866394043, -0.190216526389122, -0.03903000056743622, -0.0026986366137862206, -0.5402330160140991, -0.3053194582462311, 0.2616868317127228, -0.4882029592990875, -0.2883305549621582, -0.241362065076828, 0.28014397621154785, -0.06628739833831787, -0.013452156446874142, 0.06859660893678665, 0.19893953204154968, 0.108802929520607, -0.14944274723529816, -0.12989062070846558, -0.2826368808746338, -0.35215136408805847, -0.013216692954301834, 0.1780463308095932, 0.045792002230882645, 0.2574235796928406, 0.04749493673443794, -0.1293768435716629, -0.22526220977306366, -0.13908828794956207, 0.19317525625228882, 0.01939854770898819, 0.132352814078331, 0.08083794265985489, 0.6441943645477295, -0.09161869436502457, -0.15892727673053741, 0.312370628118515, -0.13450263440608978, -0.11235067993402481, 0.20584449172019958, 0.0021166305523365736, 0.18940766155719757, 0.023846976459026337, -0.03552234172821045, -0.12397217750549316, -0.4503406286239624, 0.16867446899414062, 0.16548092663288116, -0.02025221474468708, 0.34787416458129883, 0.12827128171920776, 0.0782882496714592, 0.17750434577465057, 0.1381354033946991, -0.19091565907001495, -0.05106781795620918, 0.24691380560398102, -0.33097198605537415, -0.30591294169425964, -0.07152082771062851, -0.16015839576721191, 0.22426064312458038, 0.4027504324913025, -0.698495626449585, 0.10614912956953049, -0.12761755287647247, -0.2190023809671402, 0.04909220710396767, 0.03725401684641838, 0.36839911341667175, -0.19165410101413727, -0.019381463527679443, -0.0021282220259308815, -0.06953472644090652, -0.033537283539772034, -0.21129027009010315, 0.6732006669044495, 0.18784359097480774, 0.3525748550891876, 0.2811797857284546, 0.919668436050415, 0.21025899052619934, 0.42031821608543396, 0.45925790071487427, 0.1845637857913971, 0.21182666718959808, -0.13920871913433075, -0.21654072403907776, 0.054272014647722244, -0.29584982991218567, -0.14695607125759125, 0.19300813972949982, 0.05399880185723305, -0.5334841012954712, -0.3363070785999298, -0.22295646369457245, -0.17357780039310455, -0.3317173719406128, 0.3225138783454895, -0.007296868599951267, 0.3478625416755676, -0.05778665468096733, -0.03294012323021889, -0.2737745940685272, -0.4534513056278229, 0.024415932595729828, 0.052549418061971664, 0.03614296764135361, 0.1982203722000122, -0.07064060121774673, 0.09258228540420532, -0.7637266516685486, 0.05214930325746536, 0.022450339049100876, 0.25257042050361633, -0.23398099839687347, -0.0375971719622612, -0.05336551368236542, -0.0019640340469777584, 0.6382452249526978, -0.12215349078178406, -0.10831344872713089, -0.0036729297135025263, -0.07280054688453674, -0.6327515244483948, -0.0034905788488686085, -0.014183522202074528, 0.019742779433727264, 0.2299296259880066, -0.009248243644833565, -0.4394514560699463, -0.017310233786702156, 0.14759820699691772, 0.2754667401313782, -0.3025970160961151, -0.09351500868797302, -0.3661647140979767, -0.11953200399875641, -0.5057446360588074, -0.12866361439228058, 0.06480946391820908, 0.22246146202087402, 0.3846004605293274, 0.31604892015457153, 0.09972185641527176, 0.08570291846990585, -0.012087603099644184, -0.06987578421831131, 0.25824782252311707, 0.12978115677833557, -0.13680163025856018, 0.2899032533168793, 0.08412624150514603, -0.24117855727672577, 0.3528221845626831, 0.050384145230054855, -0.25061050057411194, 0.0791514590382576, 0.14902561902999878, 0.11584710329771042, 0.2734070122241974, 0.09892786294221878, -0.12371561676263809, 0.16670061647891998, -0.05851360782980919, -0.42191970348358154, 0.2355530560016632, 0.28158411383628845, -0.1854797750711441, -0.3053145408630371, -0.511624276638031, 0.6158607006072998, 0.05597091466188431, 0.030451443046331406, 0.20863120257854462, 0.02239982597529888, -0.4127811789512634, 0.44134286046028137, 0.26830118894577026, 0.9731231927871704, -0.20404238998889923, 0.42499837279319763, 0.23177868127822876, 0.1344747394323349, 0.5237078070640564, -0.5167384743690491, 0.38315457105636597, -0.3056228756904602, 0.1268453747034073, -0.013337280601263046, -0.10856375098228455, 0.03648335859179497, 0.11471947282552719, 0.06540679186582565, 0.32536670565605164, 0.20793665945529938, 0.09614335000514984, -0.07739413529634476, 0.45882678031921387, -0.08006742596626282, -0.3420722186565399, -0.19557970762252808, 0.1220063865184784, -0.34487730264663696, 0.3898969292640686, -0.36450639367103577, 0.02170906588435173, 0.07767294347286224, -0.11058734357357025, -0.4916015863418579, 0.07951511442661285, -0.32508769631385803, 0.405594140291214, -0.32848048210144043, -0.13713692128658295, -0.14217063784599304, 0.31596264243125916, 0.05925770476460457, 0.1933969408273697, -0.24983984231948853, 0.2242748737335205, -0.3976946175098419, -0.235677570104599, 0.020828593522310257, 0.23375335335731506, 0.40875208377838135, -0.20691215991973877, -0.24383686482906342, 0.09800398349761963, -0.19044490158557892, -0.3769413232803345, -0.16764625906944275, -0.10644685477018356, 0.08835658431053162, -0.014652243815362453, -0.3172789514064789, -0.009053437039256096, -0.14136432111263275, 0.056081563234329224, 0.0824531763792038, 0.013701209798455238, -0.11961735039949417, -0.09041141718626022, 0.03063279017806053, -0.16258743405342102, 0.05373417213559151, 0.44527846574783325, 0.19932791590690613, -0.1737646609544754, 0.674877941608429, 0.3185999095439911, -0.27011656761169434, -0.058843594044446945, -0.14549171924591064, 0.026524236425757408, -0.39161592721939087, 0.08036041259765625, -0.12232033908367157, -0.03268925100564957, -0.23293963074684143, -0.015879837796092033, 0.26397475600242615, -0.1289006620645523, 0.25036120414733887, -0.3973310589790344, -0.4390518367290497, 0.32764700055122375, -0.13403761386871338, 0.18060161173343658, 0.26814302802085876, -0.303636372089386, 0.14833326637744904, -0.0007165683200582862, -0.17669665813446045, -0.03368617594242096, -0.2832542359828949, 0.19930225610733032, 0.3010996878147125, -0.15525759756565094, 0.07127584517002106, 0.1344740241765976, 0.028118645772337914, 0.14065004885196686, -0.16713106632232666, -0.12094190716743469, -0.021527374163269997, 0.17022155225276947, -0.021185094490647316, -0.15751142799854279, 0.00798911601305008, -0.4215225279331207, 0.13371942937374115, -0.31005001068115234, 0.09497389197349548, 0.09408223628997803, -0.02313135750591755, 0.30494603514671326, 0.16527248919010162, 0.058949150145053864, -0.09553591161966324, 0.45909544825553894, 0.004906677640974522, 0.48810842633247375, 0.19494391977787018, 0.14602705836296082, 0.2174537628889084, 0.00951362494379282, -0.5299926996231079, 0.059596192091703415, -0.1048063263297081, -0.0354551337659359, 0.12952882051467896, -0.17120811343193054, 0.015818659216165543, 0.18677668273448944, -0.04036172479391098, 0.10278239101171494, -0.11737792938947678, -0.04468417540192604, 0.20297376811504364, 0.13012678921222687, -0.12902159988880157, 0.12196077406406403, 0.3430010974407196, -0.03814186155796051, -0.2553500831127167, 0.1517666131258011, 0.11667320132255554, -0.021860264241695404, -0.04639703407883644, 0.13871265947818756, 0.3468562364578247, -0.08004232496023178, 0.08237466216087341, -0.1870737075805664, 0.02471097558736801, -0.042911939322948456, -0.13443034887313843, 0.2051118016242981, 0.1837245523929596, 0.40192604064941406, 0.002795626875013113, 0.14150108397006989, -0.16378316283226013, 0.07540392875671387, -0.1910851150751114, -0.328939825296402, 0.020315079018473625, 0.5687047243118286, -0.04699112847447395, 0.28436926007270813, -0.14462780952453613, 0.17800475656986237, 0.36120808124542236, -0.13690316677093506, -0.36710262298583984, 0.23132318258285522, -0.14479178190231323, 0.06172490492463112, -0.058048930019140244, -0.23646694421768188, -0.20972764492034912, 0.29068025946617126, 0.05285199359059334, -0.48371821641921997, 0.08078359067440033, 0.19289684295654297, -0.17191949486732483, -0.2963339388370514, 0.42014414072036743, 0.1663338541984558, -0.01927068829536438, -0.3831956684589386, 0.09907466918230057, 0.14486543834209442, -0.04473138600587845, -0.0872010886669159, 0.30977824330329895, 0.4060992896556854, 0.30719372630119324, -0.2704363763332367, 0.009355094283819199, -0.005944326985627413, -0.0063550653867423534, -0.24959924817085266, 0.2559787631034851, 0.4065108299255371, 0.3059678077697754, 0.1803966909646988, 0.0541907362639904, -0.10253911465406418, -0.3101825416088104, 0.3593682646751404, -0.06288811564445496, -0.1212562546133995, -0.01921088993549347, -0.2770348787307739, 0.035101503133773804, -0.22773943841457367, 0.049422603100538254, -0.5648449063301086, 0.10318047553300858, 0.20874786376953125, -0.13252104818820953, 0.11679685115814209, -0.0363968163728714, 0.0014874525368213654, -0.16575464606285095, 0.5369608998298645, 0.2511483430862427, 0.11229075491428375, -0.463784784078598, -0.3375474810600281, -0.510927677154541, 0.07808154076337814, -0.3646358549594879, 0.06499864161014557, -0.05532551556825638, 0.37318095564842224, -0.17176848649978638, 0.15667939186096191, -0.26685938239097595, 0.10987325012683868, -0.11338085681200027, 0.23890367150306702, -0.3001955449581146, -0.2587810456752777, 0.04700439050793648, 0.07872378826141357, -0.08048509061336517, -0.2608901560306549, 0.08748622983694077, -0.02748868241906166, -0.05485678091645241, -0.2284458875656128, -0.2025664895772934, 0.08811455965042114, 0.26463475823402405, 0.2633490562438965, 0.12228462845087051, 0.5243083238601685, 0.07498643547296524, -0.3782123625278473, -0.2976658046245575, -0.167306050658226, 0.04359028860926628, 0.006588764954358339, -0.0800362229347229, 0.5198347568511963, -0.2667165994644165, 0.15822333097457886, -0.4382745623588562, 0.47565531730651855, -0.17140761017799377, 0.1068444550037384, -0.36277294158935547, -0.15646694600582123, 0.034559715539216995, 0.2266116738319397, 0.2080155313014984, 0.18166379630565643, -0.09175591170787811, 0.07733568549156189, -0.253907710313797, -0.13095858693122864, 0.33519771695137024, -0.5924606323242188, -0.3291897773742676, 0.05241287499666214, -0.058367274701595306, -0.015294232405722141, -0.11526050418615341, -0.5271493196487427, 0.034352850168943405, 0.1688706874847412, 0.08817494660615921, -0.1708846390247345, -0.04184339568018913, -0.06303346902132034, -0.02288919873535633, -0.08436079323291779, 0.07172222435474396, -0.12094815820455551, -0.3793060779571533, 0.13732261955738068, -0.2624131143093109 ]
https://github.com/huggingface/datasets/issues/278
MemoryError when loading German Wikipedia
Adding them is definitely in our short term objectives. I'll be working on this early next week :) Although if you have an apache beam runtime feel free to specify the beam runner. You can find more info [here](https://github.com/huggingface/nlp/blob/master/docs/beam_dataset.md) on how to make it work on Dataflow but you can adapt it for Spark or any other beam runtime (by changing the `runner`). However if you don't have a beam runtime and even if you have enough memory, I discourage you to use the `DirectRunner` on the german or italian wikipedia. According to Apache Beam documentation it was made for testing purposes and therefore it is memory-inefficient.
Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :) I'm trying to download the German Wikipedia dataset as follows: ``` wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train") ``` However, when I do so, I get the following error: ``` Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset save_infos=save_infos, File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')` ``` So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned. This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset? My nlp version is 0.2.1. Thank you!
107
MemoryError when loading German Wikipedia Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :) I'm trying to download the German Wikipedia dataset as follows: ``` wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train") ``` However, when I do so, I get the following error: ``` Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset save_infos=save_infos, File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')` ``` So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned. This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset? My nlp version is 0.2.1. Thank you! Adding them is definitely in our short term objectives. I'll be working on this early next week :) Although if you have an apache beam runtime feel free to specify the beam runner. You can find more info [here](https://github.com/huggingface/nlp/blob/master/docs/beam_dataset.md) on how to make it work on Dataflow but you can adapt it for Spark or any other beam runtime (by changing the `runner`). However if you don't have a beam runtime and even if you have enough memory, I discourage you to use the `DirectRunner` on the german or italian wikipedia. According to Apache Beam documentation it was made for testing purposes and therefore it is memory-inefficient.
[ -0.04793427512049675, 0.12618982791900635, 0.01823911815881729, 0.6689180731773376, 0.24453222751617432, 0.15575040876865387, 0.0049347360618412495, 0.20835690200328827, 0.3758639395236969, -0.05147729068994522, 0.26736196875572205, -0.3312879502773285, -0.17346249520778656, -0.3341790437698364, 0.22966934740543365, -0.48612791299819946, 0.09306759387254715, 0.05842745304107666, -0.09685829281806946, 0.02134900912642479, -0.2210388034582138, 0.2842625379562378, -0.2860860824584961, -0.1296742558479309, -0.24149967730045319, 0.0682763010263443, -0.060694534331560135, 0.0540069118142128, -0.1613464653491974, -0.4543806314468384, 0.1093900129199028, -0.25727635622024536, 0.11816756427288055, 0.18110251426696777, -0.00012172195420134813, 0.04003716632723808, 0.40139931440353394, -0.1707562804222107, -0.44416338205337524, 0.039255619049072266, -0.04547302424907684, -0.34079453349113464, 0.03673407807946205, -0.26067259907722473, 0.060982927680015564, -0.10650109499692917, 0.3253650963306427, -0.0828390046954155, 0.3636325001716614, 0.17929719388484955, 0.1830790638923645, 0.05839947983622551, 0.2596978545188904, -0.0829988345503807, 0.5757555961608887, 0.06039442494511604, 0.051787473261356354, 0.12043469399213791, -0.33719104528427124, -0.36692601442337036, -0.26669299602508545, 0.2971108555793762, 0.01685977540910244, 0.10160959511995316, 0.34289056062698364, -0.1183493435382843, 0.014594853855669498, -0.21514859795570374, 0.21466639637947083, -0.015584468841552734, 0.6984867453575134, -0.22253890335559845, 0.05440380051732063, -0.29872632026672363, -0.08197598159313202, 0.1372261494398117, 0.36996883153915405, 0.37682047486305237, -0.5374552011489868, -0.17521065473556519, -0.18167948722839355, -0.3489994704723358, -0.1634567528963089, 0.3382711708545685, 0.058069031685590744, 0.24271054565906525, -0.04609690234065056, 0.1656009554862976, 0.3660612404346466, -0.04746381565928459, -0.2768140733242035, -0.11192220449447632, -0.012181591242551804, 0.44622522592544556, -0.07023472338914871, 0.0682191327214241, -0.07997316867113113, -0.061932120472192764, 0.23511604964733124, -0.27922987937927246, -0.0940658450126648, -0.06149483472108841, 0.2538711130619049, 0.07732439786195755, 0.2765708267688751, 0.457038938999176, -0.1349073201417923, -0.19879445433616638, 0.16015060245990753, 0.18069598078727722, 0.0185493566095829, -0.16259802877902985, -0.03485286980867386, -0.16336499154567719, -0.07738547772169113, -0.025876104831695557, -0.1039634644985199, -0.046939145773649216, 0.02003474533557892, 0.13095723092556, -0.0963641032576561, -0.13396602869033813, -0.03216909244656563, 0.41890668869018555, -0.1397245079278946, 0.33823060989379883, 0.2956479787826538, 0.06871725618839264, -0.38477855920791626, -0.2950853109359741, -0.14935249090194702, 0.1582219898700714, -0.5230250954627991, 0.12379556894302368, 0.26629307866096497, 0.2771732807159424, 0.36130696535110474, -0.12290957570075989, -0.26837632060050964, 0.049833063036203384, 0.2657949924468994, -0.18319745361804962, -0.032375726848840714, 0.21564361453056335, 0.14843769371509552, 0.28868958353996277, 0.1391696333885193, -0.2281752973794937, 0.00019430437532719225, 0.061920166015625, -0.17707087099552155, -0.19407403469085693, 0.06925812363624573, 0.01768142357468605, -0.1571023017168045, 0.15428690612316132, -0.40317121148109436, 0.23671995103359222, 0.2888610363006592, -0.21285668015480042, -0.09760527312755585, -0.04226323589682579, -0.23210318386554718, -0.26150795817375183, 0.20986472070217133, 0.5494706630706787, -0.09142794460058212, -0.26897281408309937, -0.07590140402317047, -0.09879250824451447, 0.4090282917022705, 0.2375495284795761, -0.10521609336137772, 0.2960045635700226, -0.23157162964344025, 0.09871344268321991, 0.3416328728199005, -0.17392177879810333, -0.3319515287876129, 0.13097740709781647, 0.11024229973554611, 0.1638549268245697, 0.05625881254673004, 0.0016748018097132444, 0.011861530132591724, 0.19847525656223297, 0.19970844686031342, 0.34130892157554626, -0.03526071459054947, 0.2907260060310364, -0.2670721411705017, -0.2709885239601135, 0.2600756585597992, 0.008650019764900208, 0.3516747057437897, 0.05551527813076973, 0.09452040493488312, 0.8308192491531372, 0.2724248170852661, -0.06893252581357956, 0.33180513978004456, 0.5638170838356018, -0.2277192622423172, 0.05730939283967018, -0.011268734000623226, -0.06336934119462967, -0.24862566590309143, 0.19277161359786987, -0.30672773718833923, 0.3094542324542999, -0.021482136100530624, 0.13213331997394562, -0.16403047740459442, -0.09691452980041504, -0.05667500197887421, -0.36996209621429443, 0.08882921934127808, 0.16524654626846313, 0.11012633144855499, 0.21409757435321808, 0.13791552186012268, 0.2627287209033966, -0.011161448433995247, 0.022674620151519775, -0.693361759185791, 0.2087744027376175, -0.14176146686077118, -0.15219686925411224, -0.01093217357993126, 0.10963756591081619, 0.1333906501531601, 0.14382727444171906, -0.13231350481510162, 0.12147538363933563, 0.09903751313686371, -0.04699423536658287, 0.13622267544269562, -0.025001849979162216, 0.265900194644928, -0.18806706368923187, 0.4338080585002899, 0.05866854637861252, 0.16085094213485718, -0.15430425107479095, 0.046903740614652634, -0.21383868157863617, 0.07204589992761612, 0.2993030846118927, 0.08469543606042862, 0.034719936549663544, 0.16727249324321747, 0.15033867955207825, 0.1518823206424713, -0.16568084061145782, 0.40921324491500854, 0.080619215965271, 0.11142338812351227, -0.0011587985791265965, 0.026664214208722115, -0.4050891697406769, 0.4183509647846222, 0.1737968921661377, 0.14272712171077728, 0.261902391910553, -0.4456171691417694, -0.2904946208000183, 0.22474882006645203, -0.05746235325932503, 0.23431359231472015, 0.08118819445371628, 0.13385681807994843, 0.028996706008911133, 0.15939608216285706, 0.03791022300720215, 0.09362160414457321, 0.05890098214149475, 0.5227373242378235, 0.011513286270201206, 0.012552153319120407, -0.13416165113449097, -0.2134275585412979, 0.08087115734815598, 0.03129900246858597, 0.41698145866394043, -0.190216526389122, -0.03903000056743622, -0.0026986366137862206, -0.5402330160140991, -0.3053194582462311, 0.2616868317127228, -0.4882029592990875, -0.2883305549621582, -0.241362065076828, 0.28014397621154785, -0.06628739833831787, -0.013452156446874142, 0.06859660893678665, 0.19893953204154968, 0.108802929520607, -0.14944274723529816, -0.12989062070846558, -0.2826368808746338, -0.35215136408805847, -0.013216692954301834, 0.1780463308095932, 0.045792002230882645, 0.2574235796928406, 0.04749493673443794, -0.1293768435716629, -0.22526220977306366, -0.13908828794956207, 0.19317525625228882, 0.01939854770898819, 0.132352814078331, 0.08083794265985489, 0.6441943645477295, -0.09161869436502457, -0.15892727673053741, 0.312370628118515, -0.13450263440608978, -0.11235067993402481, 0.20584449172019958, 0.0021166305523365736, 0.18940766155719757, 0.023846976459026337, -0.03552234172821045, -0.12397217750549316, -0.4503406286239624, 0.16867446899414062, 0.16548092663288116, -0.02025221474468708, 0.34787416458129883, 0.12827128171920776, 0.0782882496714592, 0.17750434577465057, 0.1381354033946991, -0.19091565907001495, -0.05106781795620918, 0.24691380560398102, -0.33097198605537415, -0.30591294169425964, -0.07152082771062851, -0.16015839576721191, 0.22426064312458038, 0.4027504324913025, -0.698495626449585, 0.10614912956953049, -0.12761755287647247, -0.2190023809671402, 0.04909220710396767, 0.03725401684641838, 0.36839911341667175, -0.19165410101413727, -0.019381463527679443, -0.0021282220259308815, -0.06953472644090652, -0.033537283539772034, -0.21129027009010315, 0.6732006669044495, 0.18784359097480774, 0.3525748550891876, 0.2811797857284546, 0.919668436050415, 0.21025899052619934, 0.42031821608543396, 0.45925790071487427, 0.1845637857913971, 0.21182666718959808, -0.13920871913433075, -0.21654072403907776, 0.054272014647722244, -0.29584982991218567, -0.14695607125759125, 0.19300813972949982, 0.05399880185723305, -0.5334841012954712, -0.3363070785999298, -0.22295646369457245, -0.17357780039310455, -0.3317173719406128, 0.3225138783454895, -0.007296868599951267, 0.3478625416755676, -0.05778665468096733, -0.03294012323021889, -0.2737745940685272, -0.4534513056278229, 0.024415932595729828, 0.052549418061971664, 0.03614296764135361, 0.1982203722000122, -0.07064060121774673, 0.09258228540420532, -0.7637266516685486, 0.05214930325746536, 0.022450339049100876, 0.25257042050361633, -0.23398099839687347, -0.0375971719622612, -0.05336551368236542, -0.0019640340469777584, 0.6382452249526978, -0.12215349078178406, -0.10831344872713089, -0.0036729297135025263, -0.07280054688453674, -0.6327515244483948, -0.0034905788488686085, -0.014183522202074528, 0.019742779433727264, 0.2299296259880066, -0.009248243644833565, -0.4394514560699463, -0.017310233786702156, 0.14759820699691772, 0.2754667401313782, -0.3025970160961151, -0.09351500868797302, -0.3661647140979767, -0.11953200399875641, -0.5057446360588074, -0.12866361439228058, 0.06480946391820908, 0.22246146202087402, 0.3846004605293274, 0.31604892015457153, 0.09972185641527176, 0.08570291846990585, -0.012087603099644184, -0.06987578421831131, 0.25824782252311707, 0.12978115677833557, -0.13680163025856018, 0.2899032533168793, 0.08412624150514603, -0.24117855727672577, 0.3528221845626831, 0.050384145230054855, -0.25061050057411194, 0.0791514590382576, 0.14902561902999878, 0.11584710329771042, 0.2734070122241974, 0.09892786294221878, -0.12371561676263809, 0.16670061647891998, -0.05851360782980919, -0.42191970348358154, 0.2355530560016632, 0.28158411383628845, -0.1854797750711441, -0.3053145408630371, -0.511624276638031, 0.6158607006072998, 0.05597091466188431, 0.030451443046331406, 0.20863120257854462, 0.02239982597529888, -0.4127811789512634, 0.44134286046028137, 0.26830118894577026, 0.9731231927871704, -0.20404238998889923, 0.42499837279319763, 0.23177868127822876, 0.1344747394323349, 0.5237078070640564, -0.5167384743690491, 0.38315457105636597, -0.3056228756904602, 0.1268453747034073, -0.013337280601263046, -0.10856375098228455, 0.03648335859179497, 0.11471947282552719, 0.06540679186582565, 0.32536670565605164, 0.20793665945529938, 0.09614335000514984, -0.07739413529634476, 0.45882678031921387, -0.08006742596626282, -0.3420722186565399, -0.19557970762252808, 0.1220063865184784, -0.34487730264663696, 0.3898969292640686, -0.36450639367103577, 0.02170906588435173, 0.07767294347286224, -0.11058734357357025, -0.4916015863418579, 0.07951511442661285, -0.32508769631385803, 0.405594140291214, -0.32848048210144043, -0.13713692128658295, -0.14217063784599304, 0.31596264243125916, 0.05925770476460457, 0.1933969408273697, -0.24983984231948853, 0.2242748737335205, -0.3976946175098419, -0.235677570104599, 0.020828593522310257, 0.23375335335731506, 0.40875208377838135, -0.20691215991973877, -0.24383686482906342, 0.09800398349761963, -0.19044490158557892, -0.3769413232803345, -0.16764625906944275, -0.10644685477018356, 0.08835658431053162, -0.014652243815362453, -0.3172789514064789, -0.009053437039256096, -0.14136432111263275, 0.056081563234329224, 0.0824531763792038, 0.013701209798455238, -0.11961735039949417, -0.09041141718626022, 0.03063279017806053, -0.16258743405342102, 0.05373417213559151, 0.44527846574783325, 0.19932791590690613, -0.1737646609544754, 0.674877941608429, 0.3185999095439911, -0.27011656761169434, -0.058843594044446945, -0.14549171924591064, 0.026524236425757408, -0.39161592721939087, 0.08036041259765625, -0.12232033908367157, -0.03268925100564957, -0.23293963074684143, -0.015879837796092033, 0.26397475600242615, -0.1289006620645523, 0.25036120414733887, -0.3973310589790344, -0.4390518367290497, 0.32764700055122375, -0.13403761386871338, 0.18060161173343658, 0.26814302802085876, -0.303636372089386, 0.14833326637744904, -0.0007165683200582862, -0.17669665813446045, -0.03368617594242096, -0.2832542359828949, 0.19930225610733032, 0.3010996878147125, -0.15525759756565094, 0.07127584517002106, 0.1344740241765976, 0.028118645772337914, 0.14065004885196686, -0.16713106632232666, -0.12094190716743469, -0.021527374163269997, 0.17022155225276947, -0.021185094490647316, -0.15751142799854279, 0.00798911601305008, -0.4215225279331207, 0.13371942937374115, -0.31005001068115234, 0.09497389197349548, 0.09408223628997803, -0.02313135750591755, 0.30494603514671326, 0.16527248919010162, 0.058949150145053864, -0.09553591161966324, 0.45909544825553894, 0.004906677640974522, 0.48810842633247375, 0.19494391977787018, 0.14602705836296082, 0.2174537628889084, 0.00951362494379282, -0.5299926996231079, 0.059596192091703415, -0.1048063263297081, -0.0354551337659359, 0.12952882051467896, -0.17120811343193054, 0.015818659216165543, 0.18677668273448944, -0.04036172479391098, 0.10278239101171494, -0.11737792938947678, -0.04468417540192604, 0.20297376811504364, 0.13012678921222687, -0.12902159988880157, 0.12196077406406403, 0.3430010974407196, -0.03814186155796051, -0.2553500831127167, 0.1517666131258011, 0.11667320132255554, -0.021860264241695404, -0.04639703407883644, 0.13871265947818756, 0.3468562364578247, -0.08004232496023178, 0.08237466216087341, -0.1870737075805664, 0.02471097558736801, -0.042911939322948456, -0.13443034887313843, 0.2051118016242981, 0.1837245523929596, 0.40192604064941406, 0.002795626875013113, 0.14150108397006989, -0.16378316283226013, 0.07540392875671387, -0.1910851150751114, -0.328939825296402, 0.020315079018473625, 0.5687047243118286, -0.04699112847447395, 0.28436926007270813, -0.14462780952453613, 0.17800475656986237, 0.36120808124542236, -0.13690316677093506, -0.36710262298583984, 0.23132318258285522, -0.14479178190231323, 0.06172490492463112, -0.058048930019140244, -0.23646694421768188, -0.20972764492034912, 0.29068025946617126, 0.05285199359059334, -0.48371821641921997, 0.08078359067440033, 0.19289684295654297, -0.17191949486732483, -0.2963339388370514, 0.42014414072036743, 0.1663338541984558, -0.01927068829536438, -0.3831956684589386, 0.09907466918230057, 0.14486543834209442, -0.04473138600587845, -0.0872010886669159, 0.30977824330329895, 0.4060992896556854, 0.30719372630119324, -0.2704363763332367, 0.009355094283819199, -0.005944326985627413, -0.0063550653867423534, -0.24959924817085266, 0.2559787631034851, 0.4065108299255371, 0.3059678077697754, 0.1803966909646988, 0.0541907362639904, -0.10253911465406418, -0.3101825416088104, 0.3593682646751404, -0.06288811564445496, -0.1212562546133995, -0.01921088993549347, -0.2770348787307739, 0.035101503133773804, -0.22773943841457367, 0.049422603100538254, -0.5648449063301086, 0.10318047553300858, 0.20874786376953125, -0.13252104818820953, 0.11679685115814209, -0.0363968163728714, 0.0014874525368213654, -0.16575464606285095, 0.5369608998298645, 0.2511483430862427, 0.11229075491428375, -0.463784784078598, -0.3375474810600281, -0.510927677154541, 0.07808154076337814, -0.3646358549594879, 0.06499864161014557, -0.05532551556825638, 0.37318095564842224, -0.17176848649978638, 0.15667939186096191, -0.26685938239097595, 0.10987325012683868, -0.11338085681200027, 0.23890367150306702, -0.3001955449581146, -0.2587810456752777, 0.04700439050793648, 0.07872378826141357, -0.08048509061336517, -0.2608901560306549, 0.08748622983694077, -0.02748868241906166, -0.05485678091645241, -0.2284458875656128, -0.2025664895772934, 0.08811455965042114, 0.26463475823402405, 0.2633490562438965, 0.12228462845087051, 0.5243083238601685, 0.07498643547296524, -0.3782123625278473, -0.2976658046245575, -0.167306050658226, 0.04359028860926628, 0.006588764954358339, -0.0800362229347229, 0.5198347568511963, -0.2667165994644165, 0.15822333097457886, -0.4382745623588562, 0.47565531730651855, -0.17140761017799377, 0.1068444550037384, -0.36277294158935547, -0.15646694600582123, 0.034559715539216995, 0.2266116738319397, 0.2080155313014984, 0.18166379630565643, -0.09175591170787811, 0.07733568549156189, -0.253907710313797, -0.13095858693122864, 0.33519771695137024, -0.5924606323242188, -0.3291897773742676, 0.05241287499666214, -0.058367274701595306, -0.015294232405722141, -0.11526050418615341, -0.5271493196487427, 0.034352850168943405, 0.1688706874847412, 0.08817494660615921, -0.1708846390247345, -0.04184339568018913, -0.06303346902132034, -0.02288919873535633, -0.08436079323291779, 0.07172222435474396, -0.12094815820455551, -0.3793060779571533, 0.13732261955738068, -0.2624131143093109 ]
https://github.com/huggingface/datasets/issues/278
MemoryError when loading German Wikipedia
I added the German and the Italian Wikipedia to our google cloud storage: First update the `nlp` package to 0.3.0: ```bash pip install nlp --upgrade ``` and then ```python from nlp import load_dataset wiki_de = load_dataset("wikipedia", "20200501.de") wiki_it = load_dataset("wikipedia", "20200501.it") ``` The datasets are downloaded and directly ready to use (no processing).
Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :) I'm trying to download the German Wikipedia dataset as follows: ``` wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train") ``` However, when I do so, I get the following error: ``` Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset save_infos=save_infos, File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')` ``` So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned. This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset? My nlp version is 0.2.1. Thank you!
53
MemoryError when loading German Wikipedia Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :) I'm trying to download the German Wikipedia dataset as follows: ``` wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train") ``` However, when I do so, I get the following error: ``` Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset save_infos=save_infos, File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')` ``` So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned. This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset? My nlp version is 0.2.1. Thank you! I added the German and the Italian Wikipedia to our google cloud storage: First update the `nlp` package to 0.3.0: ```bash pip install nlp --upgrade ``` and then ```python from nlp import load_dataset wiki_de = load_dataset("wikipedia", "20200501.de") wiki_it = load_dataset("wikipedia", "20200501.it") ``` The datasets are downloaded and directly ready to use (no processing).
[ -0.04793427512049675, 0.12618982791900635, 0.01823911815881729, 0.6689180731773376, 0.24453222751617432, 0.15575040876865387, 0.0049347360618412495, 0.20835690200328827, 0.3758639395236969, -0.05147729068994522, 0.26736196875572205, -0.3312879502773285, -0.17346249520778656, -0.3341790437698364, 0.22966934740543365, -0.48612791299819946, 0.09306759387254715, 0.05842745304107666, -0.09685829281806946, 0.02134900912642479, -0.2210388034582138, 0.2842625379562378, -0.2860860824584961, -0.1296742558479309, -0.24149967730045319, 0.0682763010263443, -0.060694534331560135, 0.0540069118142128, -0.1613464653491974, -0.4543806314468384, 0.1093900129199028, -0.25727635622024536, 0.11816756427288055, 0.18110251426696777, -0.00012172195420134813, 0.04003716632723808, 0.40139931440353394, -0.1707562804222107, -0.44416338205337524, 0.039255619049072266, -0.04547302424907684, -0.34079453349113464, 0.03673407807946205, -0.26067259907722473, 0.060982927680015564, -0.10650109499692917, 0.3253650963306427, -0.0828390046954155, 0.3636325001716614, 0.17929719388484955, 0.1830790638923645, 0.05839947983622551, 0.2596978545188904, -0.0829988345503807, 0.5757555961608887, 0.06039442494511604, 0.051787473261356354, 0.12043469399213791, -0.33719104528427124, -0.36692601442337036, -0.26669299602508545, 0.2971108555793762, 0.01685977540910244, 0.10160959511995316, 0.34289056062698364, -0.1183493435382843, 0.014594853855669498, -0.21514859795570374, 0.21466639637947083, -0.015584468841552734, 0.6984867453575134, -0.22253890335559845, 0.05440380051732063, -0.29872632026672363, -0.08197598159313202, 0.1372261494398117, 0.36996883153915405, 0.37682047486305237, -0.5374552011489868, -0.17521065473556519, -0.18167948722839355, -0.3489994704723358, -0.1634567528963089, 0.3382711708545685, 0.058069031685590744, 0.24271054565906525, -0.04609690234065056, 0.1656009554862976, 0.3660612404346466, -0.04746381565928459, -0.2768140733242035, -0.11192220449447632, -0.012181591242551804, 0.44622522592544556, -0.07023472338914871, 0.0682191327214241, -0.07997316867113113, -0.061932120472192764, 0.23511604964733124, -0.27922987937927246, -0.0940658450126648, -0.06149483472108841, 0.2538711130619049, 0.07732439786195755, 0.2765708267688751, 0.457038938999176, -0.1349073201417923, -0.19879445433616638, 0.16015060245990753, 0.18069598078727722, 0.0185493566095829, -0.16259802877902985, -0.03485286980867386, -0.16336499154567719, -0.07738547772169113, -0.025876104831695557, -0.1039634644985199, -0.046939145773649216, 0.02003474533557892, 0.13095723092556, -0.0963641032576561, -0.13396602869033813, -0.03216909244656563, 0.41890668869018555, -0.1397245079278946, 0.33823060989379883, 0.2956479787826538, 0.06871725618839264, -0.38477855920791626, -0.2950853109359741, -0.14935249090194702, 0.1582219898700714, -0.5230250954627991, 0.12379556894302368, 0.26629307866096497, 0.2771732807159424, 0.36130696535110474, -0.12290957570075989, -0.26837632060050964, 0.049833063036203384, 0.2657949924468994, -0.18319745361804962, -0.032375726848840714, 0.21564361453056335, 0.14843769371509552, 0.28868958353996277, 0.1391696333885193, -0.2281752973794937, 0.00019430437532719225, 0.061920166015625, -0.17707087099552155, -0.19407403469085693, 0.06925812363624573, 0.01768142357468605, -0.1571023017168045, 0.15428690612316132, -0.40317121148109436, 0.23671995103359222, 0.2888610363006592, -0.21285668015480042, -0.09760527312755585, -0.04226323589682579, -0.23210318386554718, -0.26150795817375183, 0.20986472070217133, 0.5494706630706787, -0.09142794460058212, -0.26897281408309937, -0.07590140402317047, -0.09879250824451447, 0.4090282917022705, 0.2375495284795761, -0.10521609336137772, 0.2960045635700226, -0.23157162964344025, 0.09871344268321991, 0.3416328728199005, -0.17392177879810333, -0.3319515287876129, 0.13097740709781647, 0.11024229973554611, 0.1638549268245697, 0.05625881254673004, 0.0016748018097132444, 0.011861530132591724, 0.19847525656223297, 0.19970844686031342, 0.34130892157554626, -0.03526071459054947, 0.2907260060310364, -0.2670721411705017, -0.2709885239601135, 0.2600756585597992, 0.008650019764900208, 0.3516747057437897, 0.05551527813076973, 0.09452040493488312, 0.8308192491531372, 0.2724248170852661, -0.06893252581357956, 0.33180513978004456, 0.5638170838356018, -0.2277192622423172, 0.05730939283967018, -0.011268734000623226, -0.06336934119462967, -0.24862566590309143, 0.19277161359786987, -0.30672773718833923, 0.3094542324542999, -0.021482136100530624, 0.13213331997394562, -0.16403047740459442, -0.09691452980041504, -0.05667500197887421, -0.36996209621429443, 0.08882921934127808, 0.16524654626846313, 0.11012633144855499, 0.21409757435321808, 0.13791552186012268, 0.2627287209033966, -0.011161448433995247, 0.022674620151519775, -0.693361759185791, 0.2087744027376175, -0.14176146686077118, -0.15219686925411224, -0.01093217357993126, 0.10963756591081619, 0.1333906501531601, 0.14382727444171906, -0.13231350481510162, 0.12147538363933563, 0.09903751313686371, -0.04699423536658287, 0.13622267544269562, -0.025001849979162216, 0.265900194644928, -0.18806706368923187, 0.4338080585002899, 0.05866854637861252, 0.16085094213485718, -0.15430425107479095, 0.046903740614652634, -0.21383868157863617, 0.07204589992761612, 0.2993030846118927, 0.08469543606042862, 0.034719936549663544, 0.16727249324321747, 0.15033867955207825, 0.1518823206424713, -0.16568084061145782, 0.40921324491500854, 0.080619215965271, 0.11142338812351227, -0.0011587985791265965, 0.026664214208722115, -0.4050891697406769, 0.4183509647846222, 0.1737968921661377, 0.14272712171077728, 0.261902391910553, -0.4456171691417694, -0.2904946208000183, 0.22474882006645203, -0.05746235325932503, 0.23431359231472015, 0.08118819445371628, 0.13385681807994843, 0.028996706008911133, 0.15939608216285706, 0.03791022300720215, 0.09362160414457321, 0.05890098214149475, 0.5227373242378235, 0.011513286270201206, 0.012552153319120407, -0.13416165113449097, -0.2134275585412979, 0.08087115734815598, 0.03129900246858597, 0.41698145866394043, -0.190216526389122, -0.03903000056743622, -0.0026986366137862206, -0.5402330160140991, -0.3053194582462311, 0.2616868317127228, -0.4882029592990875, -0.2883305549621582, -0.241362065076828, 0.28014397621154785, -0.06628739833831787, -0.013452156446874142, 0.06859660893678665, 0.19893953204154968, 0.108802929520607, -0.14944274723529816, -0.12989062070846558, -0.2826368808746338, -0.35215136408805847, -0.013216692954301834, 0.1780463308095932, 0.045792002230882645, 0.2574235796928406, 0.04749493673443794, -0.1293768435716629, -0.22526220977306366, -0.13908828794956207, 0.19317525625228882, 0.01939854770898819, 0.132352814078331, 0.08083794265985489, 0.6441943645477295, -0.09161869436502457, -0.15892727673053741, 0.312370628118515, -0.13450263440608978, -0.11235067993402481, 0.20584449172019958, 0.0021166305523365736, 0.18940766155719757, 0.023846976459026337, -0.03552234172821045, -0.12397217750549316, -0.4503406286239624, 0.16867446899414062, 0.16548092663288116, -0.02025221474468708, 0.34787416458129883, 0.12827128171920776, 0.0782882496714592, 0.17750434577465057, 0.1381354033946991, -0.19091565907001495, -0.05106781795620918, 0.24691380560398102, -0.33097198605537415, -0.30591294169425964, -0.07152082771062851, -0.16015839576721191, 0.22426064312458038, 0.4027504324913025, -0.698495626449585, 0.10614912956953049, -0.12761755287647247, -0.2190023809671402, 0.04909220710396767, 0.03725401684641838, 0.36839911341667175, -0.19165410101413727, -0.019381463527679443, -0.0021282220259308815, -0.06953472644090652, -0.033537283539772034, -0.21129027009010315, 0.6732006669044495, 0.18784359097480774, 0.3525748550891876, 0.2811797857284546, 0.919668436050415, 0.21025899052619934, 0.42031821608543396, 0.45925790071487427, 0.1845637857913971, 0.21182666718959808, -0.13920871913433075, -0.21654072403907776, 0.054272014647722244, -0.29584982991218567, -0.14695607125759125, 0.19300813972949982, 0.05399880185723305, -0.5334841012954712, -0.3363070785999298, -0.22295646369457245, -0.17357780039310455, -0.3317173719406128, 0.3225138783454895, -0.007296868599951267, 0.3478625416755676, -0.05778665468096733, -0.03294012323021889, -0.2737745940685272, -0.4534513056278229, 0.024415932595729828, 0.052549418061971664, 0.03614296764135361, 0.1982203722000122, -0.07064060121774673, 0.09258228540420532, -0.7637266516685486, 0.05214930325746536, 0.022450339049100876, 0.25257042050361633, -0.23398099839687347, -0.0375971719622612, -0.05336551368236542, -0.0019640340469777584, 0.6382452249526978, -0.12215349078178406, -0.10831344872713089, -0.0036729297135025263, -0.07280054688453674, -0.6327515244483948, -0.0034905788488686085, -0.014183522202074528, 0.019742779433727264, 0.2299296259880066, -0.009248243644833565, -0.4394514560699463, -0.017310233786702156, 0.14759820699691772, 0.2754667401313782, -0.3025970160961151, -0.09351500868797302, -0.3661647140979767, -0.11953200399875641, -0.5057446360588074, -0.12866361439228058, 0.06480946391820908, 0.22246146202087402, 0.3846004605293274, 0.31604892015457153, 0.09972185641527176, 0.08570291846990585, -0.012087603099644184, -0.06987578421831131, 0.25824782252311707, 0.12978115677833557, -0.13680163025856018, 0.2899032533168793, 0.08412624150514603, -0.24117855727672577, 0.3528221845626831, 0.050384145230054855, -0.25061050057411194, 0.0791514590382576, 0.14902561902999878, 0.11584710329771042, 0.2734070122241974, 0.09892786294221878, -0.12371561676263809, 0.16670061647891998, -0.05851360782980919, -0.42191970348358154, 0.2355530560016632, 0.28158411383628845, -0.1854797750711441, -0.3053145408630371, -0.511624276638031, 0.6158607006072998, 0.05597091466188431, 0.030451443046331406, 0.20863120257854462, 0.02239982597529888, -0.4127811789512634, 0.44134286046028137, 0.26830118894577026, 0.9731231927871704, -0.20404238998889923, 0.42499837279319763, 0.23177868127822876, 0.1344747394323349, 0.5237078070640564, -0.5167384743690491, 0.38315457105636597, -0.3056228756904602, 0.1268453747034073, -0.013337280601263046, -0.10856375098228455, 0.03648335859179497, 0.11471947282552719, 0.06540679186582565, 0.32536670565605164, 0.20793665945529938, 0.09614335000514984, -0.07739413529634476, 0.45882678031921387, -0.08006742596626282, -0.3420722186565399, -0.19557970762252808, 0.1220063865184784, -0.34487730264663696, 0.3898969292640686, -0.36450639367103577, 0.02170906588435173, 0.07767294347286224, -0.11058734357357025, -0.4916015863418579, 0.07951511442661285, -0.32508769631385803, 0.405594140291214, -0.32848048210144043, -0.13713692128658295, -0.14217063784599304, 0.31596264243125916, 0.05925770476460457, 0.1933969408273697, -0.24983984231948853, 0.2242748737335205, -0.3976946175098419, -0.235677570104599, 0.020828593522310257, 0.23375335335731506, 0.40875208377838135, -0.20691215991973877, -0.24383686482906342, 0.09800398349761963, -0.19044490158557892, -0.3769413232803345, -0.16764625906944275, -0.10644685477018356, 0.08835658431053162, -0.014652243815362453, -0.3172789514064789, -0.009053437039256096, -0.14136432111263275, 0.056081563234329224, 0.0824531763792038, 0.013701209798455238, -0.11961735039949417, -0.09041141718626022, 0.03063279017806053, -0.16258743405342102, 0.05373417213559151, 0.44527846574783325, 0.19932791590690613, -0.1737646609544754, 0.674877941608429, 0.3185999095439911, -0.27011656761169434, -0.058843594044446945, -0.14549171924591064, 0.026524236425757408, -0.39161592721939087, 0.08036041259765625, -0.12232033908367157, -0.03268925100564957, -0.23293963074684143, -0.015879837796092033, 0.26397475600242615, -0.1289006620645523, 0.25036120414733887, -0.3973310589790344, -0.4390518367290497, 0.32764700055122375, -0.13403761386871338, 0.18060161173343658, 0.26814302802085876, -0.303636372089386, 0.14833326637744904, -0.0007165683200582862, -0.17669665813446045, -0.03368617594242096, -0.2832542359828949, 0.19930225610733032, 0.3010996878147125, -0.15525759756565094, 0.07127584517002106, 0.1344740241765976, 0.028118645772337914, 0.14065004885196686, -0.16713106632232666, -0.12094190716743469, -0.021527374163269997, 0.17022155225276947, -0.021185094490647316, -0.15751142799854279, 0.00798911601305008, -0.4215225279331207, 0.13371942937374115, -0.31005001068115234, 0.09497389197349548, 0.09408223628997803, -0.02313135750591755, 0.30494603514671326, 0.16527248919010162, 0.058949150145053864, -0.09553591161966324, 0.45909544825553894, 0.004906677640974522, 0.48810842633247375, 0.19494391977787018, 0.14602705836296082, 0.2174537628889084, 0.00951362494379282, -0.5299926996231079, 0.059596192091703415, -0.1048063263297081, -0.0354551337659359, 0.12952882051467896, -0.17120811343193054, 0.015818659216165543, 0.18677668273448944, -0.04036172479391098, 0.10278239101171494, -0.11737792938947678, -0.04468417540192604, 0.20297376811504364, 0.13012678921222687, -0.12902159988880157, 0.12196077406406403, 0.3430010974407196, -0.03814186155796051, -0.2553500831127167, 0.1517666131258011, 0.11667320132255554, -0.021860264241695404, -0.04639703407883644, 0.13871265947818756, 0.3468562364578247, -0.08004232496023178, 0.08237466216087341, -0.1870737075805664, 0.02471097558736801, -0.042911939322948456, -0.13443034887313843, 0.2051118016242981, 0.1837245523929596, 0.40192604064941406, 0.002795626875013113, 0.14150108397006989, -0.16378316283226013, 0.07540392875671387, -0.1910851150751114, -0.328939825296402, 0.020315079018473625, 0.5687047243118286, -0.04699112847447395, 0.28436926007270813, -0.14462780952453613, 0.17800475656986237, 0.36120808124542236, -0.13690316677093506, -0.36710262298583984, 0.23132318258285522, -0.14479178190231323, 0.06172490492463112, -0.058048930019140244, -0.23646694421768188, -0.20972764492034912, 0.29068025946617126, 0.05285199359059334, -0.48371821641921997, 0.08078359067440033, 0.19289684295654297, -0.17191949486732483, -0.2963339388370514, 0.42014414072036743, 0.1663338541984558, -0.01927068829536438, -0.3831956684589386, 0.09907466918230057, 0.14486543834209442, -0.04473138600587845, -0.0872010886669159, 0.30977824330329895, 0.4060992896556854, 0.30719372630119324, -0.2704363763332367, 0.009355094283819199, -0.005944326985627413, -0.0063550653867423534, -0.24959924817085266, 0.2559787631034851, 0.4065108299255371, 0.3059678077697754, 0.1803966909646988, 0.0541907362639904, -0.10253911465406418, -0.3101825416088104, 0.3593682646751404, -0.06288811564445496, -0.1212562546133995, -0.01921088993549347, -0.2770348787307739, 0.035101503133773804, -0.22773943841457367, 0.049422603100538254, -0.5648449063301086, 0.10318047553300858, 0.20874786376953125, -0.13252104818820953, 0.11679685115814209, -0.0363968163728714, 0.0014874525368213654, -0.16575464606285095, 0.5369608998298645, 0.2511483430862427, 0.11229075491428375, -0.463784784078598, -0.3375474810600281, -0.510927677154541, 0.07808154076337814, -0.3646358549594879, 0.06499864161014557, -0.05532551556825638, 0.37318095564842224, -0.17176848649978638, 0.15667939186096191, -0.26685938239097595, 0.10987325012683868, -0.11338085681200027, 0.23890367150306702, -0.3001955449581146, -0.2587810456752777, 0.04700439050793648, 0.07872378826141357, -0.08048509061336517, -0.2608901560306549, 0.08748622983694077, -0.02748868241906166, -0.05485678091645241, -0.2284458875656128, -0.2025664895772934, 0.08811455965042114, 0.26463475823402405, 0.2633490562438965, 0.12228462845087051, 0.5243083238601685, 0.07498643547296524, -0.3782123625278473, -0.2976658046245575, -0.167306050658226, 0.04359028860926628, 0.006588764954358339, -0.0800362229347229, 0.5198347568511963, -0.2667165994644165, 0.15822333097457886, -0.4382745623588562, 0.47565531730651855, -0.17140761017799377, 0.1068444550037384, -0.36277294158935547, -0.15646694600582123, 0.034559715539216995, 0.2266116738319397, 0.2080155313014984, 0.18166379630565643, -0.09175591170787811, 0.07733568549156189, -0.253907710313797, -0.13095858693122864, 0.33519771695137024, -0.5924606323242188, -0.3291897773742676, 0.05241287499666214, -0.058367274701595306, -0.015294232405722141, -0.11526050418615341, -0.5271493196487427, 0.034352850168943405, 0.1688706874847412, 0.08817494660615921, -0.1708846390247345, -0.04184339568018913, -0.06303346902132034, -0.02288919873535633, -0.08436079323291779, 0.07172222435474396, -0.12094815820455551, -0.3793060779571533, 0.13732261955738068, -0.2624131143093109 ]
https://github.com/huggingface/datasets/issues/278
MemoryError when loading German Wikipedia
Hi @lhoestq Wow, thanks so much, that's **really** incredible! I was considering looking at creating my own Beam Dataset, as per the doc you linked, but instead opted to process the data myself using `wikiextractor`. However, now that this is available, I'll definitely switch across and use it. Thanks so much for the incredible work, this really helps out our team considerably! Have a great (and well-deserved ;) weekend ahead! P.S. I'm not sure if I should close the issue here - if so I'm happy to do so.
Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :) I'm trying to download the German Wikipedia dataset as follows: ``` wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train") ``` However, when I do so, I get the following error: ``` Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset save_infos=save_infos, File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')` ``` So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned. This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset? My nlp version is 0.2.1. Thank you!
89
MemoryError when loading German Wikipedia Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :) I'm trying to download the German Wikipedia dataset as follows: ``` wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train") ``` However, when I do so, I get the following error: ``` Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0... Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset save_infos=save_infos, File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare "\n\t`{}`".format(usage_example) nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/ If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory). Example of usage: `load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')` ``` So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned. This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset? My nlp version is 0.2.1. Thank you! Hi @lhoestq Wow, thanks so much, that's **really** incredible! I was considering looking at creating my own Beam Dataset, as per the doc you linked, but instead opted to process the data myself using `wikiextractor`. However, now that this is available, I'll definitely switch across and use it. Thanks so much for the incredible work, this really helps out our team considerably! Have a great (and well-deserved ;) weekend ahead! P.S. I'm not sure if I should close the issue here - if so I'm happy to do so.
[ -0.04793427512049675, 0.12618982791900635, 0.01823911815881729, 0.6689180731773376, 0.24453222751617432, 0.15575040876865387, 0.0049347360618412495, 0.20835690200328827, 0.3758639395236969, -0.05147729068994522, 0.26736196875572205, -0.3312879502773285, -0.17346249520778656, -0.3341790437698364, 0.22966934740543365, -0.48612791299819946, 0.09306759387254715, 0.05842745304107666, -0.09685829281806946, 0.02134900912642479, -0.2210388034582138, 0.2842625379562378, -0.2860860824584961, -0.1296742558479309, -0.24149967730045319, 0.0682763010263443, -0.060694534331560135, 0.0540069118142128, -0.1613464653491974, -0.4543806314468384, 0.1093900129199028, -0.25727635622024536, 0.11816756427288055, 0.18110251426696777, -0.00012172195420134813, 0.04003716632723808, 0.40139931440353394, -0.1707562804222107, -0.44416338205337524, 0.039255619049072266, -0.04547302424907684, -0.34079453349113464, 0.03673407807946205, -0.26067259907722473, 0.060982927680015564, -0.10650109499692917, 0.3253650963306427, -0.0828390046954155, 0.3636325001716614, 0.17929719388484955, 0.1830790638923645, 0.05839947983622551, 0.2596978545188904, -0.0829988345503807, 0.5757555961608887, 0.06039442494511604, 0.051787473261356354, 0.12043469399213791, -0.33719104528427124, -0.36692601442337036, -0.26669299602508545, 0.2971108555793762, 0.01685977540910244, 0.10160959511995316, 0.34289056062698364, -0.1183493435382843, 0.014594853855669498, -0.21514859795570374, 0.21466639637947083, -0.015584468841552734, 0.6984867453575134, -0.22253890335559845, 0.05440380051732063, -0.29872632026672363, -0.08197598159313202, 0.1372261494398117, 0.36996883153915405, 0.37682047486305237, -0.5374552011489868, -0.17521065473556519, -0.18167948722839355, -0.3489994704723358, -0.1634567528963089, 0.3382711708545685, 0.058069031685590744, 0.24271054565906525, -0.04609690234065056, 0.1656009554862976, 0.3660612404346466, -0.04746381565928459, -0.2768140733242035, -0.11192220449447632, -0.012181591242551804, 0.44622522592544556, -0.07023472338914871, 0.0682191327214241, -0.07997316867113113, -0.061932120472192764, 0.23511604964733124, -0.27922987937927246, -0.0940658450126648, -0.06149483472108841, 0.2538711130619049, 0.07732439786195755, 0.2765708267688751, 0.457038938999176, -0.1349073201417923, -0.19879445433616638, 0.16015060245990753, 0.18069598078727722, 0.0185493566095829, -0.16259802877902985, -0.03485286980867386, -0.16336499154567719, -0.07738547772169113, -0.025876104831695557, -0.1039634644985199, -0.046939145773649216, 0.02003474533557892, 0.13095723092556, -0.0963641032576561, -0.13396602869033813, -0.03216909244656563, 0.41890668869018555, -0.1397245079278946, 0.33823060989379883, 0.2956479787826538, 0.06871725618839264, -0.38477855920791626, -0.2950853109359741, -0.14935249090194702, 0.1582219898700714, -0.5230250954627991, 0.12379556894302368, 0.26629307866096497, 0.2771732807159424, 0.36130696535110474, -0.12290957570075989, -0.26837632060050964, 0.049833063036203384, 0.2657949924468994, -0.18319745361804962, -0.032375726848840714, 0.21564361453056335, 0.14843769371509552, 0.28868958353996277, 0.1391696333885193, -0.2281752973794937, 0.00019430437532719225, 0.061920166015625, -0.17707087099552155, -0.19407403469085693, 0.06925812363624573, 0.01768142357468605, -0.1571023017168045, 0.15428690612316132, -0.40317121148109436, 0.23671995103359222, 0.2888610363006592, -0.21285668015480042, -0.09760527312755585, -0.04226323589682579, -0.23210318386554718, -0.26150795817375183, 0.20986472070217133, 0.5494706630706787, -0.09142794460058212, -0.26897281408309937, -0.07590140402317047, -0.09879250824451447, 0.4090282917022705, 0.2375495284795761, -0.10521609336137772, 0.2960045635700226, -0.23157162964344025, 0.09871344268321991, 0.3416328728199005, -0.17392177879810333, -0.3319515287876129, 0.13097740709781647, 0.11024229973554611, 0.1638549268245697, 0.05625881254673004, 0.0016748018097132444, 0.011861530132591724, 0.19847525656223297, 0.19970844686031342, 0.34130892157554626, -0.03526071459054947, 0.2907260060310364, -0.2670721411705017, -0.2709885239601135, 0.2600756585597992, 0.008650019764900208, 0.3516747057437897, 0.05551527813076973, 0.09452040493488312, 0.8308192491531372, 0.2724248170852661, -0.06893252581357956, 0.33180513978004456, 0.5638170838356018, -0.2277192622423172, 0.05730939283967018, -0.011268734000623226, -0.06336934119462967, -0.24862566590309143, 0.19277161359786987, -0.30672773718833923, 0.3094542324542999, -0.021482136100530624, 0.13213331997394562, -0.16403047740459442, -0.09691452980041504, -0.05667500197887421, -0.36996209621429443, 0.08882921934127808, 0.16524654626846313, 0.11012633144855499, 0.21409757435321808, 0.13791552186012268, 0.2627287209033966, -0.011161448433995247, 0.022674620151519775, -0.693361759185791, 0.2087744027376175, -0.14176146686077118, -0.15219686925411224, -0.01093217357993126, 0.10963756591081619, 0.1333906501531601, 0.14382727444171906, -0.13231350481510162, 0.12147538363933563, 0.09903751313686371, -0.04699423536658287, 0.13622267544269562, -0.025001849979162216, 0.265900194644928, -0.18806706368923187, 0.4338080585002899, 0.05866854637861252, 0.16085094213485718, -0.15430425107479095, 0.046903740614652634, -0.21383868157863617, 0.07204589992761612, 0.2993030846118927, 0.08469543606042862, 0.034719936549663544, 0.16727249324321747, 0.15033867955207825, 0.1518823206424713, -0.16568084061145782, 0.40921324491500854, 0.080619215965271, 0.11142338812351227, -0.0011587985791265965, 0.026664214208722115, -0.4050891697406769, 0.4183509647846222, 0.1737968921661377, 0.14272712171077728, 0.261902391910553, -0.4456171691417694, -0.2904946208000183, 0.22474882006645203, -0.05746235325932503, 0.23431359231472015, 0.08118819445371628, 0.13385681807994843, 0.028996706008911133, 0.15939608216285706, 0.03791022300720215, 0.09362160414457321, 0.05890098214149475, 0.5227373242378235, 0.011513286270201206, 0.012552153319120407, -0.13416165113449097, -0.2134275585412979, 0.08087115734815598, 0.03129900246858597, 0.41698145866394043, -0.190216526389122, -0.03903000056743622, -0.0026986366137862206, -0.5402330160140991, -0.3053194582462311, 0.2616868317127228, -0.4882029592990875, -0.2883305549621582, -0.241362065076828, 0.28014397621154785, -0.06628739833831787, -0.013452156446874142, 0.06859660893678665, 0.19893953204154968, 0.108802929520607, -0.14944274723529816, -0.12989062070846558, -0.2826368808746338, -0.35215136408805847, -0.013216692954301834, 0.1780463308095932, 0.045792002230882645, 0.2574235796928406, 0.04749493673443794, -0.1293768435716629, -0.22526220977306366, -0.13908828794956207, 0.19317525625228882, 0.01939854770898819, 0.132352814078331, 0.08083794265985489, 0.6441943645477295, -0.09161869436502457, -0.15892727673053741, 0.312370628118515, -0.13450263440608978, -0.11235067993402481, 0.20584449172019958, 0.0021166305523365736, 0.18940766155719757, 0.023846976459026337, -0.03552234172821045, -0.12397217750549316, -0.4503406286239624, 0.16867446899414062, 0.16548092663288116, -0.02025221474468708, 0.34787416458129883, 0.12827128171920776, 0.0782882496714592, 0.17750434577465057, 0.1381354033946991, -0.19091565907001495, -0.05106781795620918, 0.24691380560398102, -0.33097198605537415, -0.30591294169425964, -0.07152082771062851, -0.16015839576721191, 0.22426064312458038, 0.4027504324913025, -0.698495626449585, 0.10614912956953049, -0.12761755287647247, -0.2190023809671402, 0.04909220710396767, 0.03725401684641838, 0.36839911341667175, -0.19165410101413727, -0.019381463527679443, -0.0021282220259308815, -0.06953472644090652, -0.033537283539772034, -0.21129027009010315, 0.6732006669044495, 0.18784359097480774, 0.3525748550891876, 0.2811797857284546, 0.919668436050415, 0.21025899052619934, 0.42031821608543396, 0.45925790071487427, 0.1845637857913971, 0.21182666718959808, -0.13920871913433075, -0.21654072403907776, 0.054272014647722244, -0.29584982991218567, -0.14695607125759125, 0.19300813972949982, 0.05399880185723305, -0.5334841012954712, -0.3363070785999298, -0.22295646369457245, -0.17357780039310455, -0.3317173719406128, 0.3225138783454895, -0.007296868599951267, 0.3478625416755676, -0.05778665468096733, -0.03294012323021889, -0.2737745940685272, -0.4534513056278229, 0.024415932595729828, 0.052549418061971664, 0.03614296764135361, 0.1982203722000122, -0.07064060121774673, 0.09258228540420532, -0.7637266516685486, 0.05214930325746536, 0.022450339049100876, 0.25257042050361633, -0.23398099839687347, -0.0375971719622612, -0.05336551368236542, -0.0019640340469777584, 0.6382452249526978, -0.12215349078178406, -0.10831344872713089, -0.0036729297135025263, -0.07280054688453674, -0.6327515244483948, -0.0034905788488686085, -0.014183522202074528, 0.019742779433727264, 0.2299296259880066, -0.009248243644833565, -0.4394514560699463, -0.017310233786702156, 0.14759820699691772, 0.2754667401313782, -0.3025970160961151, -0.09351500868797302, -0.3661647140979767, -0.11953200399875641, -0.5057446360588074, -0.12866361439228058, 0.06480946391820908, 0.22246146202087402, 0.3846004605293274, 0.31604892015457153, 0.09972185641527176, 0.08570291846990585, -0.012087603099644184, -0.06987578421831131, 0.25824782252311707, 0.12978115677833557, -0.13680163025856018, 0.2899032533168793, 0.08412624150514603, -0.24117855727672577, 0.3528221845626831, 0.050384145230054855, -0.25061050057411194, 0.0791514590382576, 0.14902561902999878, 0.11584710329771042, 0.2734070122241974, 0.09892786294221878, -0.12371561676263809, 0.16670061647891998, -0.05851360782980919, -0.42191970348358154, 0.2355530560016632, 0.28158411383628845, -0.1854797750711441, -0.3053145408630371, -0.511624276638031, 0.6158607006072998, 0.05597091466188431, 0.030451443046331406, 0.20863120257854462, 0.02239982597529888, -0.4127811789512634, 0.44134286046028137, 0.26830118894577026, 0.9731231927871704, -0.20404238998889923, 0.42499837279319763, 0.23177868127822876, 0.1344747394323349, 0.5237078070640564, -0.5167384743690491, 0.38315457105636597, -0.3056228756904602, 0.1268453747034073, -0.013337280601263046, -0.10856375098228455, 0.03648335859179497, 0.11471947282552719, 0.06540679186582565, 0.32536670565605164, 0.20793665945529938, 0.09614335000514984, -0.07739413529634476, 0.45882678031921387, -0.08006742596626282, -0.3420722186565399, -0.19557970762252808, 0.1220063865184784, -0.34487730264663696, 0.3898969292640686, -0.36450639367103577, 0.02170906588435173, 0.07767294347286224, -0.11058734357357025, -0.4916015863418579, 0.07951511442661285, -0.32508769631385803, 0.405594140291214, -0.32848048210144043, -0.13713692128658295, -0.14217063784599304, 0.31596264243125916, 0.05925770476460457, 0.1933969408273697, -0.24983984231948853, 0.2242748737335205, -0.3976946175098419, -0.235677570104599, 0.020828593522310257, 0.23375335335731506, 0.40875208377838135, -0.20691215991973877, -0.24383686482906342, 0.09800398349761963, -0.19044490158557892, -0.3769413232803345, -0.16764625906944275, -0.10644685477018356, 0.08835658431053162, -0.014652243815362453, -0.3172789514064789, -0.009053437039256096, -0.14136432111263275, 0.056081563234329224, 0.0824531763792038, 0.013701209798455238, -0.11961735039949417, -0.09041141718626022, 0.03063279017806053, -0.16258743405342102, 0.05373417213559151, 0.44527846574783325, 0.19932791590690613, -0.1737646609544754, 0.674877941608429, 0.3185999095439911, -0.27011656761169434, -0.058843594044446945, -0.14549171924591064, 0.026524236425757408, -0.39161592721939087, 0.08036041259765625, -0.12232033908367157, -0.03268925100564957, -0.23293963074684143, -0.015879837796092033, 0.26397475600242615, -0.1289006620645523, 0.25036120414733887, -0.3973310589790344, -0.4390518367290497, 0.32764700055122375, -0.13403761386871338, 0.18060161173343658, 0.26814302802085876, -0.303636372089386, 0.14833326637744904, -0.0007165683200582862, -0.17669665813446045, -0.03368617594242096, -0.2832542359828949, 0.19930225610733032, 0.3010996878147125, -0.15525759756565094, 0.07127584517002106, 0.1344740241765976, 0.028118645772337914, 0.14065004885196686, -0.16713106632232666, -0.12094190716743469, -0.021527374163269997, 0.17022155225276947, -0.021185094490647316, -0.15751142799854279, 0.00798911601305008, -0.4215225279331207, 0.13371942937374115, -0.31005001068115234, 0.09497389197349548, 0.09408223628997803, -0.02313135750591755, 0.30494603514671326, 0.16527248919010162, 0.058949150145053864, -0.09553591161966324, 0.45909544825553894, 0.004906677640974522, 0.48810842633247375, 0.19494391977787018, 0.14602705836296082, 0.2174537628889084, 0.00951362494379282, -0.5299926996231079, 0.059596192091703415, -0.1048063263297081, -0.0354551337659359, 0.12952882051467896, -0.17120811343193054, 0.015818659216165543, 0.18677668273448944, -0.04036172479391098, 0.10278239101171494, -0.11737792938947678, -0.04468417540192604, 0.20297376811504364, 0.13012678921222687, -0.12902159988880157, 0.12196077406406403, 0.3430010974407196, -0.03814186155796051, -0.2553500831127167, 0.1517666131258011, 0.11667320132255554, -0.021860264241695404, -0.04639703407883644, 0.13871265947818756, 0.3468562364578247, -0.08004232496023178, 0.08237466216087341, -0.1870737075805664, 0.02471097558736801, -0.042911939322948456, -0.13443034887313843, 0.2051118016242981, 0.1837245523929596, 0.40192604064941406, 0.002795626875013113, 0.14150108397006989, -0.16378316283226013, 0.07540392875671387, -0.1910851150751114, -0.328939825296402, 0.020315079018473625, 0.5687047243118286, -0.04699112847447395, 0.28436926007270813, -0.14462780952453613, 0.17800475656986237, 0.36120808124542236, -0.13690316677093506, -0.36710262298583984, 0.23132318258285522, -0.14479178190231323, 0.06172490492463112, -0.058048930019140244, -0.23646694421768188, -0.20972764492034912, 0.29068025946617126, 0.05285199359059334, -0.48371821641921997, 0.08078359067440033, 0.19289684295654297, -0.17191949486732483, -0.2963339388370514, 0.42014414072036743, 0.1663338541984558, -0.01927068829536438, -0.3831956684589386, 0.09907466918230057, 0.14486543834209442, -0.04473138600587845, -0.0872010886669159, 0.30977824330329895, 0.4060992896556854, 0.30719372630119324, -0.2704363763332367, 0.009355094283819199, -0.005944326985627413, -0.0063550653867423534, -0.24959924817085266, 0.2559787631034851, 0.4065108299255371, 0.3059678077697754, 0.1803966909646988, 0.0541907362639904, -0.10253911465406418, -0.3101825416088104, 0.3593682646751404, -0.06288811564445496, -0.1212562546133995, -0.01921088993549347, -0.2770348787307739, 0.035101503133773804, -0.22773943841457367, 0.049422603100538254, -0.5648449063301086, 0.10318047553300858, 0.20874786376953125, -0.13252104818820953, 0.11679685115814209, -0.0363968163728714, 0.0014874525368213654, -0.16575464606285095, 0.5369608998298645, 0.2511483430862427, 0.11229075491428375, -0.463784784078598, -0.3375474810600281, -0.510927677154541, 0.07808154076337814, -0.3646358549594879, 0.06499864161014557, -0.05532551556825638, 0.37318095564842224, -0.17176848649978638, 0.15667939186096191, -0.26685938239097595, 0.10987325012683868, -0.11338085681200027, 0.23890367150306702, -0.3001955449581146, -0.2587810456752777, 0.04700439050793648, 0.07872378826141357, -0.08048509061336517, -0.2608901560306549, 0.08748622983694077, -0.02748868241906166, -0.05485678091645241, -0.2284458875656128, -0.2025664895772934, 0.08811455965042114, 0.26463475823402405, 0.2633490562438965, 0.12228462845087051, 0.5243083238601685, 0.07498643547296524, -0.3782123625278473, -0.2976658046245575, -0.167306050658226, 0.04359028860926628, 0.006588764954358339, -0.0800362229347229, 0.5198347568511963, -0.2667165994644165, 0.15822333097457886, -0.4382745623588562, 0.47565531730651855, -0.17140761017799377, 0.1068444550037384, -0.36277294158935547, -0.15646694600582123, 0.034559715539216995, 0.2266116738319397, 0.2080155313014984, 0.18166379630565643, -0.09175591170787811, 0.07733568549156189, -0.253907710313797, -0.13095858693122864, 0.33519771695137024, -0.5924606323242188, -0.3291897773742676, 0.05241287499666214, -0.058367274701595306, -0.015294232405722141, -0.11526050418615341, -0.5271493196487427, 0.034352850168943405, 0.1688706874847412, 0.08817494660615921, -0.1708846390247345, -0.04184339568018913, -0.06303346902132034, -0.02288919873535633, -0.08436079323291779, 0.07172222435474396, -0.12094815820455551, -0.3793060779571533, 0.13732261955738068, -0.2624131143093109 ]
https://github.com/huggingface/datasets/issues/277
Empty samples in glue/qqp
We are only wrapping the original dataset. Maybe try to ask on the GLUE mailing list or reach out to the original authors?
``` qqp = nlp.load_dataset('glue', 'qqp') print(qqp['train'][310121]) print(qqp['train'][362225]) ``` ``` {'question1': 'How can I create an Android app?', 'question2': '', 'label': 0, 'idx': 310137} {'question1': 'How can I develop android app?', 'question2': '', 'label': 0, 'idx': 362246} ``` Notice that question 2 is empty string. BTW, I have checked and these two are the only naughty ones in all splits of qqp.
23
Empty samples in glue/qqp ``` qqp = nlp.load_dataset('glue', 'qqp') print(qqp['train'][310121]) print(qqp['train'][362225]) ``` ``` {'question1': 'How can I create an Android app?', 'question2': '', 'label': 0, 'idx': 310137} {'question1': 'How can I develop android app?', 'question2': '', 'label': 0, 'idx': 362246} ``` Notice that question 2 is empty string. BTW, I have checked and these two are the only naughty ones in all splits of qqp. We are only wrapping the original dataset. Maybe try to ask on the GLUE mailing list or reach out to the original authors?
[ 0.3944285809993744, -0.22759506106376648, -0.1333639770746231, 0.17218704521656036, -0.009044141508638859, -0.18093067407608032, 0.3399791717529297, 0.49809128046035767, 0.301601767539978, 0.28761130571365356, -0.1628897488117218, 0.40133264660835266, -0.05137419328093529, 0.04152437299489975, 0.12119416147470474, -0.23212671279907227, -0.1426430195569992, 0.4839455783367157, -0.21105524897575378, -0.048681896179914474, -0.2900347411632538, 0.34977293014526367, -0.16072438657283783, 0.01457021851092577, -0.2572493553161621, -0.026711028069257736, -0.4356919229030609, 0.12509477138519287, -0.08387161791324615, -0.11413706094026566, -0.09536580741405487, 0.0882299467921257, -0.3356195092201233, 0.027513450011610985, -0.00010767493222374469, -0.19210635125637054, 0.20978179574012756, -0.06671969592571259, 0.09793546050786972, 0.020877692848443985, -0.18860650062561035, -0.16017286479473114, -0.019720224663615227, -0.33240368962287903, -0.10811156034469604, 0.060344867408275604, 0.0312082227319479, 0.00914692971855402, 0.3878852128982544, 0.28679242730140686, 0.2319389134645462, 0.18781396746635437, -0.053345195949077606, 0.0011455498170107603, 0.5737712383270264, -0.45231178402900696, 0.16638126969337463, 0.19409969449043274, 0.19045530259609222, -0.0723280981183052, 0.2012561857700348, 0.28504595160484314, -0.029192497953772545, -0.14133526384830475, -0.31179818511009216, 0.07360310107469559, -0.05499684438109398, -0.5886831879615784, 0.11005507409572601, 0.5429883003234863, -0.13682277500629425, 0.005411386955529451, -0.1368396133184433, -0.2885935306549072, 0.030814154073596, -0.12210464477539062, -0.08536269515752792, 0.28918978571891785, -0.10831709951162338, 0.18999697268009186, -0.09186194837093353, -0.18364891409873962, 0.09070387482643127, 0.11116683483123779, -0.17851856350898743, 0.3162374794483185, -0.026535946875810623, 0.0967656821012497, -0.06904731690883636, 0.00692859198898077, -0.3025732934474945, -0.043852049857378006, -0.2633659839630127, -0.05087652429938316, -0.005477763246744871, -0.12635862827301025, 0.026567215099930763, -0.15448586642742157, 0.014671367593109608, 0.055523596704006195, 0.023597612977027893, 0.07898981124162674, 0.3578369617462158, 0.19736571609973907, 0.060347218066453934, 0.1082855761051178, 0.474541038274765, 0.20590052008628845, -0.21360504627227783, -0.10277148336172104, -0.09282838553190231, -0.11922665685415268, -0.03448107838630676, 0.10584425926208496, -0.14633706212043762, -0.018144065514206886, 0.15276499092578888, 0.01987445168197155, -0.15972715616226196, -0.08522624522447586, -0.2839926779270172, 0.09330104291439056, -0.23678423464298248, 0.42149725556373596, 0.002028442220762372, 0.08887521177530289, 0.06640398502349854, 0.18706479668617249, -0.12523578107357025, -0.4068475365638733, -0.304888516664505, 0.14692555367946625, -0.01834186725318432, -0.2193647176027298, 0.050645798444747925, 0.09392295777797699, 0.33059415221214294, 0.004025942180305719, -0.33677032589912415, -0.06400679051876068, 0.18150214850902557, -0.12820425629615784, 0.2904043197631836, 0.3732573091983795, 0.12242273986339569, 0.04528528079390526, 0.04634822532534599, -0.17982769012451172, -0.0764913409948349, 0.30518001317977905, -0.22959254682064056, -0.049414701759815216, -0.24822643399238586, 0.2842923700809479, -0.2753048539161682, 0.2139476239681244, 0.3010474443435669, 0.26765725016593933, -0.0028212093748152256, 0.03128179907798767, 0.2452184408903122, -0.058405470103025436, 0.022455858066678047, -0.3709171712398529, 0.17699295282363892, 0.14937959611415863, -0.46843522787094116, -0.2842771112918854, -0.04023941606283188, -0.0014728595269843936, 0.0031718944665044546, 0.21631544828414917, -0.018490565940737724, 0.26718172430992126, -0.3092721104621887, 0.5628647208213806, 0.32249340415000916, -0.3252387046813965, -0.2990131378173828, 0.2551974654197693, -0.2539636194705963, -0.002070147078484297, 0.07153745740652084, -0.027346551418304443, 0.40850886702537537, 0.2399878203868866, 0.2770460247993469, 0.21807526051998138, -0.007984020747244358, -0.1678890883922577, -0.38468030095100403, -0.16503603756427765, 0.3145079016685486, -0.05289984494447708, -0.06598154455423355, 0.16392560303211212, -0.1122356653213501, -0.07193998247385025, 0.2754433751106262, 0.11924473941326141, 0.001778970006853342, 0.11930864304304123, 0.300259530544281, -0.23462581634521484, -0.016670238226652145, -0.08932776749134064, -0.27370867133140564, 0.08472925424575806, -0.52363121509552, 0.16331176459789276, 0.09106197953224182, -0.19315274059772491, -0.1754205971956253, -0.09318089485168457, 0.07212638854980469, -0.2961350679397583, 0.26240405440330505, -0.09422185271978378, 0.13096824288368225, -0.003955223597586155, -0.05918706953525543, 0.23724694550037384, 0.04411989450454712, 0.17584103345870972, -0.27825015783309937, 0.19132496416568756, 0.11083216220140457, 0.0012170313857495785, 0.13936661183834076, 0.6038908958435059, 0.17393869161605835, 0.02780253253877163, 0.3377895951271057, 0.38337889313697815, -0.1247401237487793, -0.012414046563208103, -0.062007542699575424, -0.4666875898838043, -0.06704336404800415, -0.2006087601184845, -0.03976482152938843, 0.12234389036893845, 0.08252211660146713, -0.06693877279758453, -0.02594965323805809, 0.5820211172103882, 0.27626127004623413, 0.13075359165668488, 0.026603875681757927, 0.15240368247032166, -0.39627784490585327, -0.44503483176231384, -0.16953088343143463, -0.3077692985534668, 0.1928263157606125, 0.16173027455806732, 0.3633175790309906, 0.25647518038749695, -0.17092688381671906, 0.3790636658668518, 0.573966383934021, -0.0692598894238472, 0.30765411257743835, -0.22470276057720184, -0.23812372982501984, -0.17904236912727356, 0.07018952816724777, 0.3703533709049225, 0.19973598420619965, 0.39889997243881226, 0.015567362308502197, -0.08363974839448929, 0.08342641592025757, -0.3214094340801239, 0.20730699598789215, 0.12395557016134262, -0.2294909507036209, 0.14941991865634918, 0.36247092485427856, -0.17017588019371033, -0.20125915110111237, 0.5741878747940063, 0.024312851950526237, -0.04941559582948685, -0.19208988547325134, -0.14922082424163818, -0.3281415104866028, -0.27903246879577637, -0.011315698735415936, -0.2292654663324356, -0.24549047648906708, -0.4493693709373474, 0.25250908732414246, -0.3933393657207489, -0.1659594625234604, 0.017214886844158173, 0.13104987144470215, 0.35143327713012695, -0.133737713098526, 0.0004684633167926222, -0.012864693067967892, -0.03706958144903183, -0.32574042677879333, 0.2296122908592224, -0.41755416989326477, 0.3865431845188141, 0.3919174075126648, -0.05755132809281349, -0.07354488223791122, 0.17456643283367157, -0.28080564737319946, 0.10780787467956543, -0.30914708971977234, 0.4351455867290497, 0.15589122474193573, 0.08208778500556946, -0.0727379098534584, -0.07757320255041122, 0.10933266580104828, -0.025962311774492264, -0.15176884829998016, -0.09083842486143112, 0.2362343668937683, 0.23256927728652954, -0.37106555700302124, -0.44330331683158875, -0.2700110673904419, -0.3494874835014343, 0.4619120955467224, -0.2531075179576874, 0.344871461391449, 0.002491585211828351, -0.1901853084564209, 0.23879212141036987, -0.3217245638370514, -0.28531739115715027, -0.16619497537612915, -0.14411881566047668, 0.22342267632484436, -0.2578464448451996, -0.29598814249038696, 0.05917133018374443, -0.24949918687343597, 0.14693590998649597, -0.18876978754997253, -0.3285132944583893, -0.32790884375572205, 0.07300648838281631, 0.05830283835530281, 0.30500346422195435, -0.05552096292376518, 0.1158127710223198, -0.23265117406845093, -0.1398024708032608, -0.1862352192401886, 0.004456774331629276, 0.43426015973091125, 0.001708181225694716, 0.004330552648752928, -0.03465573489665985, 0.21830859780311584, -0.041669078171253204, 0.28179123997688293, 0.12016013264656067, 0.42520177364349365, 0.16424575448036194, -0.06522602587938309, 0.3786024749279022, 0.035927530378103256, -0.04132861644029617, 0.17578555643558502, 0.2188127338886261, 0.06032916530966759, 0.3531431257724762, 0.09794900566339493, -0.06091391295194626, 0.06411662697792053, 0.08180641382932663, -0.4496345520019531, -0.14712528884410858, 0.12396243959665298, -0.07094008475542068, -0.09283236414194107, -0.004172828979790211, -0.07171045243740082, 0.025314204394817352, -0.0989009439945221, -0.2842522859573364, -0.126837819814682, 0.2005874663591385, -0.03877919912338257, -0.487881064414978, -0.1508973240852356, -0.4676200747489929, 0.3085104823112488, 0.03557288274168968, 0.25753337144851685, -0.08585038036108017, -0.13355574011802673, 0.20472563803195953, 0.008696923032402992, 0.6842467188835144, -0.21689748764038086, -0.23901738226413727, 0.2540595829486847, 0.1206730529665947, -0.2901620864868164, -0.023833248764276505, -0.5618226528167725, -0.10058362782001495, 0.32302770018577576, 0.07002484798431396, -0.41615718603134155, -0.06583672016859055, 0.06311793625354767, -0.0540166050195694, -0.20180387794971466, 0.07757234573364258, -0.2286899983882904, -0.16324767470359802, 0.021369153633713722, -0.17818506062030792, 0.15927442908287048, 0.3052091598510742, -0.2303265929222107, -0.09474968910217285, -0.020748095586895943, -0.1084984689950943, 0.2755565047264099, -0.06353677064180374, 0.4202825427055359, -0.17278137803077698, -0.1507948935031891, -0.10012973099946976, -0.025115016847848892, -0.5728301405906677, 0.29406803846359253, -0.29711318016052246, 0.3505963683128357, 0.16862592101097107, -0.3859309256076813, 0.613017737865448, 0.36988765001296997, 0.08288903534412384, 0.32583096623420715, -0.2908845841884613, 0.2322843223810196, 0.03010641410946846, -0.05565929040312767, 0.3734823763370514, -0.23575279116630554, -0.0026338326279073954, -0.09466910362243652, 0.20130948722362518, -0.11649639159440994, -0.11162161827087402, -0.0986713320016861, 0.15089966356754303, -0.1404084414243698, 0.4762071371078491, -0.06535710394382477, 0.8699268698692322, -0.10220208019018173, 0.028799621388316154, 0.36395394802093506, -0.29303234815597534, 0.729919970035553, 0.1254669427871704, 0.06369921565055847, -0.38118186593055725, -0.08555269241333008, 0.010671832598745823, 0.08654243499040604, -0.10033314675092697, 0.2762788236141205, -0.3786800801753998, 0.3030673861503601, -0.21924130618572235, -0.16928093135356903, 0.21312464773654938, 0.03345843404531479, 0.10232048481702805, 0.14878669381141663, -0.28391969203948975, 0.19111336767673492, -0.02903985232114792, 0.054991550743579865, 0.046912942081689835, -0.20984946191310883, -0.0838778167963028, -0.13983088731765747, -0.09755351394414902, 0.24785107374191284, -0.26762914657592773, -0.14094364643096924, 0.45645156502723694, -0.05698665231466293, -0.602369487285614, 0.08122622221708298, -0.01457347720861435, 0.3054862916469574, -0.011375155299901962, 0.12965141236782074, 0.1420900821685791, -0.07462111860513687, 0.35817310214042664, 0.2338321954011917, 0.26007530093193054, -0.04199358820915222, -0.1917482167482376, 0.21489636600017548, -0.14354833960533142, -0.231584370136261, -0.33840739727020264, 0.2367614507675171, 0.012848440557718277, -0.2314338982105255, -0.4329340159893036, -0.050671812146902084, 0.20145879685878754, -0.23517119884490967, 0.18257476389408112, -0.013425410725176334, -0.2096036970615387, -0.12156181037425995, 0.163318932056427, -0.3453216254711151, 0.005444630049169064, 0.15301461517810822, 0.17500606179237366, 0.2415866106748581, 0.46821632981300354, 0.09462979435920715, 0.06409412622451782, -0.38182777166366577, -0.11197274178266525, 0.3699917495250702, -0.21957996487617493, 0.2393677979707718, -0.046469949185848236, -0.1605185717344284, -0.016903387382626534, 0.13852880895137787, -0.05911612883210182, 0.034229837357997894, -0.16417954862117767, -0.3515659272670746, -0.044192902743816376, 0.41667917370796204, 0.0003626394900493324, 0.18780913949012756, -0.002064494416117668, -0.022774798795580864, 0.18796096742153168, 0.40296176075935364, -0.42513346672058105, 0.1461171954870224, -0.3965071737766266, 0.15167400240898132, -0.04157526418566704, -0.31347712874412537, 0.1091134324669838, 0.00590913649648428, 0.1896001398563385, -0.07120618969202042, -0.23080193996429443, -0.3434692323207855, -0.18954671919345856, 0.05228205397725105, -0.06762673705816269, 0.21471412479877472, -0.09183847904205322, 0.07503265142440796, 0.12013108283281326, 0.03603697568178177, 0.22406838834285736, -0.1922168731689453, 0.18649783730506897, 0.21537722647190094, 0.3040253221988678, 0.231684148311615, -0.2960226237773895, 0.18384939432144165, 0.04546991363167763, -0.030983807519078255, 0.02103402093052864, -0.15416930615901947, -0.18968133628368378, -0.08107209950685501, 0.18927665054798126, -0.03564734011888504, -0.004891955293715, -0.0027150227688252926, 0.05403570458292961, -0.15905684232711792, 0.05980643630027771, -0.28903165459632874, 0.15384377539157867, 0.09115082770586014, -0.26109910011291504, -0.0006665947730652988, -0.03652142360806465, 0.31499409675598145, -0.1158926710486412, 0.12560491263866425, 0.1385214626789093, 0.14089971780776978, 0.10901885479688644, 0.24866953492164612, 0.10672410577535629, -0.21856391429901123, 0.11038985848426819, 0.16778583824634552, 0.1849585324525833, -0.15111717581748962, -0.10756062716245651, 0.31531140208244324, 0.09487878531217575, -0.02575039677321911, 0.2668920159339905, 0.009215014986693859, -0.02058505080640316, -0.11605265736579895, 0.1357220858335495, 0.45132991671562195, 0.21038350462913513, 0.09455616027116776, 0.3860875964164734, 0.018843399360775948, -0.05400385707616806, 0.47140058875083923, 0.10026511549949646, 0.26754146814346313, -0.07988791167736053, 0.658287525177002, -0.14324259757995605, -0.21790148317813873, 0.08110884577035904, 0.34252452850341797, -0.16083212196826935, -0.22322843968868256, -0.015712261199951172, 0.0582658052444458, -0.597465991973877, -0.17746026813983917, 0.16420620679855347, -0.29756292700767517, 0.2071578949689865, 0.08256342262029648, -0.16526873409748077, -0.03916734829545021, -0.490611732006073, 0.0012094576377421618, 0.13943292200565338, -0.28602510690689087, 0.27836713194847107, -0.19062770903110504, 0.1866094172000885, 0.3655216693878174, 0.4616246819496155, 0.10542824119329453, 0.12446267157793045, -0.32387402653694153, -0.04249923676252365, -0.029882362112402916, -0.25190117955207825, -0.17125271260738373, 0.24335026741027832, 0.27420946955680847, 0.24740980565547943, 0.11316585540771484, 0.2691096067428589, -0.3204628527164459, 0.13596145808696747, 0.24780911207199097, 0.25348907709121704, -0.1750773936510086, 0.2754472494125366, -0.12742044031620026, -0.16556057333946228, -0.22030764818191528, -0.3327862024307251, -0.7666963338851929, 0.03592091053724289, -0.0018590475665405393, -0.15660488605499268, 0.11844906210899353, 0.04822598770260811, 0.13765136897563934, -0.25968390703201294, 0.1411227583885193, 0.14830833673477173, 0.09000600129365921, -0.234763503074646, -0.22633793950080872, -0.43322959542274475, 0.04576341435313225, -0.14794695377349854, -0.19336259365081787, 0.19029226899147034, 0.27004554867744446, -0.1034117192029953, -0.03571107238531113, -0.5100886225700378, 0.4358821511268616, -0.3994017541408539, -0.2590186595916748, -0.5443633198738098, 0.13561196625232697, -0.10302097350358963, 0.0729571059346199, 0.1266050934791565, -0.16279660165309906, 0.20997166633605957, 0.05961918085813522, 0.10077176243066788, 0.2535572648048401, -0.10367714613676071, 0.30594775080680847, 0.06928377598524094, 0.00934895034879446, 0.2776671350002289, 0.10502233356237411, -0.16153530776500702, -0.01119714230298996, -0.17020544409751892, -0.15511919558048248, -0.08929669857025146, -0.005465270020067692, 0.026108158752322197, 0.4342818856239319, 0.24791596829891205, 0.13111095130443573, 0.19500352442264557, 0.11774178594350815, 0.2375912368297577, 0.21820463240146637, -0.03096787817776203, 0.15260575711727142, -0.03429652377963066, 0.036025479435920715, 0.1560860425233841, 0.2993502914905548, 0.0029673746321350336, -0.09183791279792786, -0.05380304902791977, -0.18453678488731384, 0.39167916774749756, -0.5110173225402832, -0.04795188084244728, -0.07261179387569427, 0.4356441795825958, 0.24114838242530823, -0.13867828249931335, -0.6016251444816589, -0.4045550227165222, 0.31876516342163086, -0.1687052994966507, -0.09158424288034439, 0.23731885850429535, 0.1765245795249939, -0.015537859871983528, -0.05766575038433075, 0.10027159750461578, 0.2680635452270508, -0.15650112926959991, -0.021075697615742683, -0.2616679072380066 ]
https://github.com/huggingface/datasets/issues/277
Empty samples in glue/qqp
Tanks for the suggestion, I'll try to ask GLUE benchmark. I'll first close the issue, post the following up here afterwards, and reopen the issue if needed.
``` qqp = nlp.load_dataset('glue', 'qqp') print(qqp['train'][310121]) print(qqp['train'][362225]) ``` ``` {'question1': 'How can I create an Android app?', 'question2': '', 'label': 0, 'idx': 310137} {'question1': 'How can I develop android app?', 'question2': '', 'label': 0, 'idx': 362246} ``` Notice that question 2 is empty string. BTW, I have checked and these two are the only naughty ones in all splits of qqp.
27
Empty samples in glue/qqp ``` qqp = nlp.load_dataset('glue', 'qqp') print(qqp['train'][310121]) print(qqp['train'][362225]) ``` ``` {'question1': 'How can I create an Android app?', 'question2': '', 'label': 0, 'idx': 310137} {'question1': 'How can I develop android app?', 'question2': '', 'label': 0, 'idx': 362246} ``` Notice that question 2 is empty string. BTW, I have checked and these two are the only naughty ones in all splits of qqp. Tanks for the suggestion, I'll try to ask GLUE benchmark. I'll first close the issue, post the following up here afterwards, and reopen the issue if needed.
[ 0.2715727686882019, -0.2135789394378662, -0.0960005447268486, 0.2048926204442978, 0.03347473964095116, -0.2253737598657608, 0.26248446106910706, 0.5297273397445679, 0.25127139687538147, 0.3464788496494293, -0.1416853815317154, 0.3634181320667267, 0.01816532202064991, 0.017992699518799782, 0.09457442909479141, -0.21441826224327087, -0.12237109988927841, 0.47435805201530457, -0.22665932774543762, -0.016195422038435936, -0.2788560688495636, 0.2712191343307495, -0.20130151510238647, -0.052502695471048355, -0.21730677783489227, -0.02928597293794155, -0.26245179772377014, 0.08085678517818451, -0.09695222228765488, -0.21604260802268982, -0.16039124131202698, -0.007935341447591782, -0.47182556986808777, 0.11353043466806412, -0.00010816129361046478, -0.2366437017917633, 0.3038545548915863, 0.030131084844470024, -0.016530955210328102, 0.05877315625548363, -0.17608706653118134, -0.1438625305891037, -0.03161688894033432, -0.2702958881855011, -0.1310330629348755, 0.17107267677783966, 0.05636618658900261, -0.04147785156965256, 0.29091233015060425, 0.2894427180290222, 0.2498815506696701, 0.3229874074459076, -0.16775144636631012, 0.058502402156591415, 0.6316820383071899, -0.48349982500076294, 0.04953906312584877, 0.20308278501033783, 0.13301077485084534, -0.15085181593894958, -0.0022947608958929777, 0.3154923617839813, -0.07694189250469208, 0.005061472300440073, -0.27923691272735596, 0.0500553622841835, 0.03418896347284317, -0.3719378411769867, 0.12193818390369415, 0.6385515332221985, -0.2257310301065445, -0.010933197103440762, -0.130567267537117, -0.2927173376083374, 0.03471982106566429, -0.1861681491136551, -0.009598871693015099, 0.21884745359420776, -0.11216945201158524, 0.08428318798542023, -0.07665517181158066, -0.018250616267323494, 0.10957791656255722, 0.02136545442044735, -0.16052654385566711, 0.2946774661540985, 0.015083106234669685, 0.09940741211175919, 0.08317077159881592, -0.08429442346096039, -0.3671049475669861, -0.04960954189300537, -0.27790144085884094, -0.08063647896051407, -0.27373239398002625, -0.02919824980199337, 0.10333269834518433, -0.22235897183418274, 0.09155584126710892, 0.03838272765278816, 0.0451049841940403, 0.12167487293481827, 0.3454158902168274, 0.1836072951555252, 0.012911300174891949, 0.2131350189447403, 0.5253053903579712, 0.19973868131637573, -0.22580288350582123, 0.019470499828457832, -0.26154085993766785, 0.011985098011791706, 0.07028815895318985, 0.01632949709892273, 0.01825438253581524, 0.05258144065737724, 0.021435268223285675, -0.0071944864466786385, -0.18146294355392456, -0.05234064906835556, -0.2602762281894684, 0.05780252814292908, -0.21409863233566284, 0.3981829583644867, -0.035413406789302826, 0.08195094764232635, -0.02146441489458084, 0.18727731704711914, -0.2436060607433319, -0.4802749752998352, -0.2614174783229828, 0.13717913627624512, -0.04105763137340546, -0.14563493430614471, 0.09469365328550339, 0.13082154095172882, 0.3209364712238312, 0.05069088190793991, -0.2557220160961151, -0.04885772988200188, 0.3602684736251831, -0.2660951018333435, 0.25305888056755066, 0.28021684288978577, 0.20136712491512299, 0.10340685397386551, -0.007390384096652269, -0.12393980473279953, -0.08780824393033981, 0.23308329284191132, -0.030733514577150345, 0.01835942454636097, -0.09715089946985245, 0.30669692158699036, -0.11255531013011932, 0.18431513011455536, 0.18965333700180054, 0.29966050386428833, 0.025675028562545776, -0.015272271819412708, 0.11792662739753723, 0.005110268015414476, -0.07614988833665848, -0.3365875780582428, 0.07260336726903915, 0.19732843339443207, -0.3691128194332123, -0.23446141183376312, -0.03508448228240013, 0.12526455521583557, 0.1360250860452652, 0.24713383615016937, -0.01832953840494156, 0.17194131016731262, -0.2010871171951294, 0.4859285056591034, 0.17032451927661896, -0.49588844180107117, -0.31767454743385315, 0.34689071774482727, -0.24254389107227325, 0.038589224219322205, 0.1114358901977539, -0.009177742525935173, 0.43404051661491394, 0.22626876831054688, 0.3273110091686249, 0.30906903743743896, 0.05492383614182472, -0.07480421662330627, -0.5140239596366882, -0.1311771422624588, 0.3648437261581421, -0.037813130766153336, -0.11559518426656723, -0.05136014148592949, -0.20636038482189178, -0.057751137763261795, 0.1394088715314865, 0.18147136270999908, -0.026304230093955994, 0.133200004696846, 0.2710835933685303, -0.3873373568058014, -0.0003697568317875266, -0.14409737288951874, -0.29688921570777893, 0.18138520419597626, -0.5925252437591553, 0.1939084231853485, 0.21274012327194214, -0.20416612923145294, -0.11798688769340515, -0.042729634791612625, 0.03782499209046364, -0.22775499522686005, 0.2820470929145813, -0.1904689073562622, 0.11553194373846054, 0.06696604937314987, 0.03255234658718109, 0.18902932107448578, 0.019421162083745003, 0.14922459423542023, -0.15490391850471497, 0.12686780095100403, 0.03740128502249718, 0.011142152361571789, 0.1795770674943924, 0.44149142503738403, 0.2346167117357254, 0.11800586432218552, 0.19577409327030182, 0.3532409369945526, -0.05561891570687294, 0.025054018944501877, 0.03269612044095993, -0.422681599855423, -0.036821696907281876, -0.04648866504430771, -0.10705885291099548, 0.23042254149913788, 0.019571231678128242, -0.10142561048269272, -0.07609729468822479, 0.5049565434455872, 0.32208380103111267, 0.24736861884593964, 0.04459615796804428, 0.059621214866638184, -0.35281503200531006, -0.4345819354057312, -0.07007749378681183, -0.32708990573883057, 0.33538439869880676, 0.04097914323210716, 0.42987552285194397, 0.2962329387664795, -0.039499085396528244, 0.38538625836372375, 0.5666268467903137, -0.04768167808651924, 0.3834279775619507, -0.20049722492694855, -0.19233615696430206, -0.25097596645355225, 0.033168770372867584, 0.3896903991699219, 0.20124280452728271, 0.3364194631576538, 0.02723909169435501, -0.1449759602546692, -0.0013385353377088904, -0.2931686341762543, 0.2257126271724701, -0.0030839715618640184, -0.1504802703857422, 0.20938116312026978, 0.4381837248802185, -0.15805357694625854, -0.21937713027000427, 0.5158030986785889, 0.04323844239115715, -0.021262750029563904, -0.12482662498950958, -0.14865273237228394, -0.31473085284233093, -0.23750285804271698, 0.044657181948423386, -0.15954238176345825, -0.32074689865112305, -0.46172934770584106, 0.2919743061065674, -0.37847086787223816, -0.11896789819002151, 0.07362910360097885, 0.13372890651226044, 0.3025190830230713, -0.054963480681180954, -0.046330589801073074, 0.055566418915987015, 0.012743322178721428, -0.3448803126811981, 0.1689077466726303, -0.3408048152923584, 0.3934914767742157, 0.3623148202896118, -0.07537323236465454, -0.13506650924682617, 0.169096440076828, -0.32091280817985535, 0.06238463148474693, -0.13886192440986633, 0.5314763188362122, 0.12365942448377609, 0.06626857072114944, -0.06345164030790329, -0.01764686405658722, 0.16979214549064636, -0.1296929121017456, -0.172424778342247, -0.07883112132549286, 0.20044919848442078, 0.21599958837032318, -0.2482372373342514, -0.37283971905708313, -0.11284267902374268, -0.43257948756217957, 0.3055028021335602, -0.28459811210632324, 0.38496461510658264, 0.002765679033473134, -0.25378766655921936, 0.21535563468933105, -0.2340172678232193, -0.16887041926383972, -0.13563106954097748, -0.09484366327524185, 0.1708095818758011, -0.24985121190547943, -0.2468608021736145, -0.13707901537418365, -0.253833144903183, 0.10856323689222336, -0.20120996236801147, -0.32628133893013, -0.3508313298225403, -0.08110197633504868, 0.12882494926452637, 0.2127404361963272, -0.1251341998577118, 0.07603424042463303, -0.14899425208568573, -0.1821596771478653, -0.18023057281970978, -0.05391455814242363, 0.45007553696632385, 0.046683188527822495, 0.040091317147016525, 0.06502658873796463, 0.27933937311172485, 0.05985788255929947, 0.3947971761226654, 0.08126655966043472, 0.3368884027004242, 0.14559093117713928, -0.08325894176959991, 0.2390434741973877, -0.05018186569213867, -0.10909220576286316, 0.13358472287654877, 0.2538374364376068, 0.07056894898414612, 0.3102223873138428, 0.07826944440603256, -0.1035054549574852, 0.11883748322725296, 0.10346438735723495, -0.353641539812088, -0.16363713145256042, 0.16186022758483887, -0.14950288832187653, -0.04937620088458061, 0.05815601348876953, -0.012902160175144672, 0.011293337680399418, -0.09502268582582474, -0.21267834305763245, -0.23558151721954346, 0.1287618726491928, -0.12978871166706085, -0.4396401345729828, -0.09274939447641373, -0.5289293527603149, 0.2870887219905853, 0.10762844234704971, 0.26349687576293945, -0.1335853934288025, -0.0815223976969719, 0.1261909306049347, -0.017650678753852844, 0.6705352067947388, -0.284755676984787, -0.09520911425352097, 0.20893217623233795, 0.06586896628141403, -0.2937111556529999, 0.0069529046304523945, -0.5354694128036499, -0.09339199960231781, 0.422134131193161, 0.09084539115428925, -0.49927598237991333, 0.01951039955019951, 0.086778923869133, -0.017573192715644836, -0.18370993435382843, 0.0018163206987082958, -0.3305709660053253, -0.08267383277416229, 0.1090010330080986, -0.15736855566501617, 0.10657443851232529, 0.33882564306259155, -0.13723520934581757, -0.11579924821853638, -0.09575749188661575, -0.10019762068986893, 0.27979522943496704, -0.021626349538564682, 0.4361644387245178, -0.20248085260391235, 0.08198051154613495, -0.22509558498859406, -0.10144641250371933, -0.4868711233139038, 0.2278876155614853, -0.2688477337360382, 0.3672318160533905, 0.08763616532087326, -0.3222590684890747, 0.4701734483242035, 0.36312076449394226, 0.1049586832523346, 0.3797163963317871, -0.42113208770751953, 0.26065778732299805, 0.08949863910675049, -0.07864844799041748, 0.3746204078197479, -0.08581649512052536, -0.003610489424318075, -0.010716286487877369, 0.22403639554977417, -0.1287754476070404, -0.14245587587356567, -0.09258460253477097, 0.10490123182535172, -0.1471138447523117, 0.4613465666770935, -0.09700626134872437, 0.8855523467063904, -0.21997663378715515, 0.015916695818305016, 0.3063756823539734, -0.34625229239463806, 0.6145241856575012, 0.1481979787349701, 0.13100773096084595, -0.46158528327941895, -0.16537261009216309, 0.05202994868159294, 0.05371308699250221, -0.10756547749042511, 0.23945824801921844, -0.37540850043296814, 0.27907440066337585, -0.25477081537246704, -0.1699654906988144, 0.19225278496742249, 0.1166919693350792, 0.11066286265850067, 0.07040915638208389, -0.3522310256958008, 0.20067591965198517, -0.1097976490855217, 0.011176041327416897, 0.1191122755408287, -0.14645987749099731, -0.00046346444287337363, -0.12488361448049545, -0.10916002839803696, 0.15694080293178558, -0.27498993277549744, -0.051669493317604065, 0.4869023859500885, -0.01373292412608862, -0.5811048746109009, 0.0129619762301445, -0.1753714680671692, 0.34123319387435913, 0.05772651731967926, 0.1832607239484787, 0.15724685788154602, 0.015973832458257675, 0.44861388206481934, 0.1998184472322464, 0.18613849580287933, -0.08326705545186996, -0.2632916271686554, 0.16956834495067596, -0.1590091586112976, -0.23126786947250366, -0.30784186720848083, 0.24836061894893646, 0.06514636427164078, -0.19738101959228516, -0.4733292758464813, -0.12102703750133514, 0.16770219802856445, -0.2819991409778595, 0.19793106615543365, -0.1748458743095398, -0.21567924320697784, -0.12598273158073425, 0.23289820551872253, -0.3480008542537689, 0.018758414313197136, 0.22956256568431854, 0.13467977941036224, 0.3314613401889801, 0.406297504901886, 0.0644756555557251, 0.0338018573820591, -0.35554224252700806, 0.009297981858253479, 0.2861104905605316, -0.16679033637046814, 0.27714866399765015, -0.13477975130081177, -0.20534968376159668, 0.020119674503803253, 0.07664460688829422, 0.026866000145673752, 0.048369552940130234, -0.11192034929990768, -0.19959060847759247, 0.043388184159994125, 0.30286905169487, 0.03235490620136261, 0.10653986036777496, -0.003367024939507246, -0.18011273443698883, 0.13641634583473206, 0.5124997496604919, -0.41904038190841675, 0.06568216532468796, -0.4481357932090759, 0.17516398429870605, -0.04050254821777344, -0.3385765850543976, 0.06386969983577728, 0.05594603717327118, 0.23853783309459686, -0.0952182188630104, -0.22872474789619446, -0.35417744517326355, -0.22769731283187866, 0.04293768107891083, -0.15392334759235382, 0.22427403926849365, -0.11856850236654282, 0.08662153780460358, 0.021283691748976707, -0.07598011940717697, 0.18346533179283142, -0.16213592886924744, 0.11491601169109344, 0.13175474107265472, 0.19072751700878143, 0.18566398322582245, -0.23943708837032318, 0.21900448203086853, 0.00490757217630744, -0.05421646311879158, -0.046668969094753265, -0.1727118194103241, -0.04549933597445488, -0.09330025315284729, 0.11479658633470535, -0.11611279845237732, -0.06777330487966537, -0.006093531847000122, 0.035699982196092606, -0.20345436036586761, -0.0031627314165234566, -0.14654234051704407, 0.2589978575706482, 0.042458292096853256, -0.24575717747211456, -0.12359669059515, -0.14829273521900177, 0.3284454941749573, -0.14363521337509155, 0.03517327085137367, 0.12394197285175323, 0.031952086836099625, 0.23160000145435333, 0.21932749450206757, 0.05966669321060181, -0.19838692247867584, 0.19969861209392548, 0.15618900954723358, 0.2040756493806839, -0.21505488455295563, -0.1669161170721054, 0.14650531113147736, 0.15896442532539368, -0.05560673400759697, 0.3031104803085327, -0.08194193243980408, 0.033973004668951035, -0.044147755950689316, 0.22924523055553436, 0.4877112805843353, 0.23215067386627197, 0.07327580451965332, 0.3107292652130127, 0.14871184527873993, -0.03856448829174042, 0.6244723200798035, -0.0582803376019001, 0.2489006519317627, 0.0008564559975638986, 0.6918646097183228, -0.23705321550369263, -0.32019200921058655, 0.02446954883635044, 0.20909550786018372, -0.1568630486726761, -0.3546382486820221, 0.08195114135742188, 0.09825579822063446, -0.5680092573165894, -0.11504563689231873, 0.20390236377716064, -0.12099231779575348, 0.24694615602493286, 0.13006111979484558, -0.04053366184234619, -0.17890502512454987, -0.43213173747062683, 0.04889451339840889, 0.2448888123035431, -0.35716310143470764, 0.298153281211853, -0.12139590829610825, 0.262176513671875, 0.279662549495697, 0.39220064878463745, 0.17776083946228027, 0.21610954403877258, -0.3681350350379944, -0.07628427445888519, -0.06782620400190353, -0.14735354483127594, -0.20592832565307617, 0.20126008987426758, 0.21459153294563293, 0.16836079955101013, 0.22821864485740662, 0.24579979479312897, -0.35380470752716064, 0.07850423455238342, 0.2948918342590332, 0.13548174500465393, -0.18994642794132233, 0.28037917613983154, -0.1798209547996521, -0.03041836805641651, -0.2985873520374298, -0.18439438939094543, -0.7166975736618042, 0.025103598833084106, -0.036441512405872345, -0.21038085222244263, 0.13871242105960846, -0.02343570627272129, 0.1443624049425125, -0.24123899638652802, 0.23422466218471527, 0.08596332371234894, -0.00241538742557168, -0.32397350668907166, -0.0998619869351387, -0.4623679518699646, 0.1171020120382309, -0.1823502480983734, -0.2512117326259613, 0.15966902673244476, 0.35140639543533325, -0.2212238311767578, -0.009136530570685863, -0.3307330310344696, 0.3748609721660614, -0.38005530834198, -0.21986190974712372, -0.6355610489845276, 0.16694210469722748, -0.16120044887065887, -0.11456038057804108, 0.11356987059116364, -0.33209866285324097, 0.198360875248909, 0.08989152312278748, 0.10900986939668655, 0.2725338637828827, -0.14273102581501007, 0.37212443351745605, 0.17708547413349152, -0.013068229891359806, 0.26494571566581726, 0.24822968244552612, -0.1437913477420807, -0.11243394762277603, -0.06772755086421967, -0.1696070283651352, -0.05746924504637718, -0.07276567071676254, 0.07740979641675949, 0.4261719882488251, 0.25423312187194824, 0.07958415895700455, 0.17398309707641602, 0.30364087224006653, 0.30543580651283264, 0.11751822382211685, 0.0004173613851889968, 0.08380754292011261, 0.06422282755374908, 0.07320837676525116, 0.03699081391096115, 0.3366990089416504, 0.028032243251800537, -0.02769329771399498, -0.06123553216457367, -0.3449520170688629, 0.3664711117744446, -0.5037404298782349, -0.07374785840511322, -0.051607754081487656, 0.4491620361804962, 0.34058478474617004, -0.09829900413751602, -0.5108277797698975, -0.4513750970363617, 0.2980213761329651, -0.1225275844335556, -0.1465792953968048, 0.3283299505710602, 0.05302540957927704, 0.029550371691584587, -0.021166743710637093, -0.04434392973780632, 0.24745674431324005, -0.2251921445131302, 0.018570944666862488, -0.1794682741165161 ]
https://github.com/huggingface/datasets/issues/275
NonMatchingChecksumError when loading pubmed dataset
For some reason the files are not available for unauthenticated users right now (like the download service of this package). Instead of downloading the right files, it downloads the html of the error. According to the error it should be back again in 24h. ![image](https://user-images.githubusercontent.com/42851186/84751599-096c6580-afbd-11ea-97f3-ee4aef791711.png)
I get this error when i run `nlp.load_dataset('scientific_papers', 'pubmed', split = 'train[:50%]')`. The error is: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-2-7742dea167d0> in <module>() ----> 1 df = nlp.load_dataset('scientific_papers', 'pubmed', split = 'train[:50%]') 2 df = pd.DataFrame(df) 3 gc.collect() 3 frames /usr/local/lib/python3.6/dist-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 /usr/local/lib/python3.6/dist-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) 431 verify_infos = not save_infos and not ignore_verifications 432 self._download_and_prepare( --> 433 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 434 ) 435 # Sync info /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 468 # Checksums verification 469 if verify_infos: --> 470 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums()) 471 for split_generator in split_generators: 472 if str(split_generator.split_info.name).lower() == "all": /usr/local/lib/python3.6/dist-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://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download'] ``` I'm currently working on google colab. That is quite strange because yesterday it was fine.
45
NonMatchingChecksumError when loading pubmed dataset I get this error when i run `nlp.load_dataset('scientific_papers', 'pubmed', split = 'train[:50%]')`. The error is: ``` --------------------------------------------------------------------------- NonMatchingChecksumError Traceback (most recent call last) <ipython-input-2-7742dea167d0> in <module>() ----> 1 df = nlp.load_dataset('scientific_papers', 'pubmed', split = 'train[:50%]') 2 df = pd.DataFrame(df) 3 gc.collect() 3 frames /usr/local/lib/python3.6/dist-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 /usr/local/lib/python3.6/dist-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) 431 verify_infos = not save_infos and not ignore_verifications 432 self._download_and_prepare( --> 433 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 434 ) 435 # Sync info /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 468 # Checksums verification 469 if verify_infos: --> 470 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums()) 471 for split_generator in split_generators: 472 if str(split_generator.split_info.name).lower() == "all": /usr/local/lib/python3.6/dist-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://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download'] ``` I'm currently working on google colab. That is quite strange because yesterday it was fine. For some reason the files are not available for unauthenticated users right now (like the download service of this package). Instead of downloading the right files, it downloads the html of the error. According to the error it should be back again in 24h. ![image](https://user-images.githubusercontent.com/42851186/84751599-096c6580-afbd-11ea-97f3-ee4aef791711.png)
[ 0.0587569996714592, 0.13019277155399323, 0.03693480044603348, 0.024857373908162117, 0.2648715674877167, -0.013563308864831924, 0.2168024182319641, 0.5417695641517639, 0.23485299944877625, 0.10361489653587341, -0.13925373554229736, 0.3025203049182892, -0.13450504839420319, -0.46926066279411316, -0.1694726198911667, 0.03361217677593231, 0.018223930150270462, 0.2782473564147949, 0.08311482518911362, 0.017654243856668472, -0.2718372046947479, 0.3171764016151428, -0.20225302875041962, -0.06744866073131561, 0.18951992690563202, -0.1108572855591774, 0.13679789006710052, 0.21714890003204346, 0.04846746101975441, -0.394491046667099, 0.22323282063007355, 0.17930755019187927, 0.10682370513677597, 0.21875032782554626, -0.00011708812235156074, 0.1765800565481186, 0.3026966452598572, 0.014655429869890213, -0.24043773114681244, -0.3675602078437805, -0.30674856901168823, -0.5333054065704346, 0.20339781045913696, -0.31497448682785034, -0.09392989426851273, 0.08185330778360367, 0.09851717948913574, -0.06670241057872772, 0.1352667212486267, 0.27185627818107605, 0.18550515174865723, 0.4645369052886963, -0.01214682962745428, -0.03898011893033981, 0.2210695892572403, -0.07106885313987732, -0.11671943217515945, 0.44438958168029785, 0.24701865017414093, -0.20542068779468536, -0.4585716128349304, 0.28268715739250183, -0.22891490161418915, 0.47735193371772766, -0.04872347041964531, 0.005470827221870422, 0.43405061960220337, -0.25383448600769043, 0.12873966991901398, 0.31720930337905884, 0.12444925308227539, -0.1102624163031578, 0.040843620896339417, -0.24435076117515564, -0.061262406408786774, -0.10050599277019501, 0.332241952419281, 0.1642611175775528, -0.33934369683265686, -0.16424791514873505, -0.26724985241889954, 0.15482580661773682, -0.018442122265696526, 0.2772810161113739, 0.4512002170085907, 0.08240006864070892, 0.025993071496486664, 0.07795479148626328, 0.38853323459625244, -0.1400495320558548, 0.40813180804252625, -0.18918682634830475, 0.0559782013297081, 0.2718263268470764, -0.38566985726356506, -0.10505269467830658, -0.029902322217822075, 0.08300404995679855, 0.21925930678844452, 0.5085957646369934, 0.17396120727062225, -0.02067425660789013, 0.160103902220726, 0.17406676709651947, 0.2345791608095169, -0.0325503945350647, -0.20497258007526398, 0.31270697712898254, 0.24282267689704895, 0.2654268145561218, -0.08172968029975891, 0.13259856402873993, -0.12437667697668076, -0.27507996559143066, 0.4795856773853302, -0.1543898582458496, 0.1567378044128418, -0.3283802568912506, -0.18533778190612793, 0.25683584809303284, 0.12563122808933258, -0.037093766033649445, 0.15078024566173553, 0.37948837876319885, -0.00670227874070406, 0.2513446807861328, -0.046717319637537, -0.09008292853832245, -0.2285947948694229, -0.001752865849994123, -0.16195736825466156, 0.0788276270031929, -0.2954714596271515, 0.036440715193748474, 0.29130998253822327, -0.16165517270565033, 0.3400793671607971, -0.02619445137679577, 0.1431838572025299, -0.1925879567861557, 0.2771728038787842, -0.22583089768886566, -0.17031006515026093, 0.40022897720336914, 0.07895373553037643, 0.09375651925802231, 0.25992387533187866, -0.03614448010921478, -0.3035447895526886, 0.1710747331380844, -0.18803903460502625, -0.3761233389377594, -0.3543938994407654, 0.1679357886314392, -0.32835981249809265, -0.1124928668141365, 0.1948505938053131, -0.16554400324821472, 0.41855499148368835, -0.582231342792511, 0.019878249615430832, -0.3036312162876129, -0.2127436399459839, -0.14035888016223907, -0.0047654053196311, 0.13248108327388763, 0.3329314589500427, -0.06297781318426132, -0.0698208436369896, 0.05434398353099823, 0.5059977769851685, 0.3451896905899048, -0.20035269856452942, -0.07307673245668411, -0.1836935132741928, -0.004275359213352203, 0.6614876389503479, -0.10246491432189941, -0.501133918762207, 0.3050437867641449, 0.05778324604034424, 0.45030564069747925, -0.0333709679543972, 0.16733770072460175, -0.11887026578187943, -0.10189615935087204, 0.32788509130477905, 0.0811803862452507, 0.0006627623224630952, 0.2791231572628021, -0.38192713260650635, -0.13033795356750488, 0.5268667340278625, 0.2277279645204544, 0.18663287162780762, -0.006332388147711754, 0.06295721232891083, 0.22063466906547546, 0.1839752048254013, -0.08553557842969894, -0.030645912513136864, 0.27081385254859924, 0.018540482968091965, 0.06929349154233932, 0.058108676224946976, -0.22189292311668396, -0.3858192265033722, 0.2098037600517273, -0.38005366921424866, 0.2502175569534302, 0.08589976280927658, 0.02269482985138893, -0.3482511341571808, -0.33040136098861694, -0.21040287613868713, 0.022805972024798393, 0.0646703839302063, 0.33605918288230896, 0.19128979742527008, 0.02978130429983139, -0.13214623928070068, 0.20024439692497253, -0.31215494871139526, 0.03845876082777977, -0.5431315898895264, 0.2622196674346924, -0.21269887685775757, -0.18529477715492249, 0.16498711705207825, 0.1927381008863449, 0.0837610512971878, 0.028145750984549522, -0.24969889223575592, 0.3297187387943268, 0.08496126532554626, -0.004352882970124483, 0.041600946336984634, 0.08348596841096878, -0.0649431049823761, -0.09139200299978256, -0.003359248163178563, 0.45076799392700195, 0.04528428614139557, -0.00975340697914362, -0.225977823138237, 0.3569219410419464, -0.09161567687988281, 0.14008879661560059, 0.018097173422574997, 0.11193683743476868, 0.29277846217155457, -0.12066031247377396, -0.21994298696517944, -0.12930984795093536, 0.5966846346855164, 0.04193919152021408, -0.1533249467611313, 0.17370902001857758, -0.43260693550109863, -0.2955920100212097, 0.3696345090866089, -0.02563808672130108, 0.027119021862745285, 0.12841562926769257, 0.06686341762542725, -0.17375676333904266, -0.013439292088150978, 0.34234803915023804, 0.5028308033943176, 0.1839084029197693, -0.10457292199134827, 0.03426229953765869, -0.3598055839538574, -0.07767868787050247, -0.07587318122386932, 0.12115807831287384, 0.40277329087257385, 0.5767917633056641, 0.3505505919456482, 0.009755575098097324, -0.5195764303207397, -0.2499971091747284, 0.08926384150981903, 0.5005635023117065, -0.3145833909511566, -0.058886025100946426, -0.2020568996667862, -0.1500692367553711, -0.26692745089530945, -0.22942021489143372, -0.29968342185020447, -0.25021272897720337, -0.09032055735588074, 0.45684880018234253, 0.013585803098976612, 0.33136826753616333, -0.7557674050331116, 0.09482856839895248, -0.050943054258823395, -0.18142510950565338, -0.10372050851583481, -0.1316320151090622, -0.03418087214231491, -0.037244509905576706, 0.412169486284256, 0.07760356366634369, 0.4435417056083679, -0.09922217577695847, -0.1393861025571823, -0.2177257239818573, -0.22938047349452972, -0.0338992178440094, -0.07651638984680176, -0.023080026730895042, 0.2885391116142273, 0.03952919319272041, -0.14973212778568268, -0.34571170806884766, 0.3684002161026001, -0.2874165177345276, -0.1831313520669937, 0.2736910581588745, -0.06887321919202805, 0.047756001353263855, 0.08770344406366348, -0.255555123090744, -0.10062181949615479, -0.41793093085289, -0.09216833859682083, 0.21309585869312286, 0.15833301842212677, 0.37702929973602295, -0.18833212554454803, 0.1201431080698967, 0.07696707546710968, 0.3528822958469391, -0.24673382937908173, -0.3859330415725708, 0.399543821811676, -0.04467535763978958, -0.28284499049186707, -0.037304796278476715, -0.24643845856189728, 0.07277312129735947, 0.08610035479068756, -0.43586453795433044, -0.34772002696990967, -0.2699192464351654, -0.23237298429012299, -0.03316047415137291, -0.17303314805030823, 0.3908371031284332, 0.09429378807544708, -0.139483243227005, -0.0061368695460259914, -0.1883251816034317, 0.1998281031847, 0.07579249143600464, 0.3481651246547699, -0.15975067019462585, 0.29549938440322876, -0.13642431795597076, 0.5724864602088928, 0.41482406854629517, 0.05190843343734741, 0.09263575077056885, 0.032062187790870667, 0.3804648816585541, -0.12182269990444183, -0.3274930715560913, -0.08516699820756912, 0.01853787899017334, 0.1922076940536499, 0.11993411928415298, -0.09054575115442276, -0.2683865427970886, -0.07598216831684113, -0.10402888804674149, -0.1687830239534378, -0.27503982186317444, 0.1403001993894577, -0.3935474455356598, 0.3114084005355835, 0.22068829834461212, -0.0049181003123521805, -0.17499510943889618, -0.48172393441200256, -0.15338538587093353, 0.30810242891311646, -0.1542448103427887, -0.021761614829301834, -0.22811532020568848, 0.20594924688339233, -0.40591803193092346, 0.24460560083389282, 0.3321516811847687, 0.37925857305526733, -0.09653535485267639, -0.1378990113735199, 0.17449110746383667, -0.10740022361278534, 0.21121305227279663, -0.15681737661361694, 0.02293689176440239, 0.1802373081445694, -0.19326287508010864, -0.32915425300598145, -0.1285334676504135, -0.07087953388690948, 0.224667489528656, 0.1628466099500656, 0.38669097423553467, -0.18938542902469635, -0.225393146276474, 0.5273255705833435, -0.017177138477563858, -0.13914760947227478, -0.5009349584579468, -0.49649345874786377, -0.32884183526039124, -0.4223915636539459, -0.024421965703368187, -0.0691632404923439, 0.3058447539806366, -0.06025954708456993, -0.007052883040159941, 0.08798593282699585, 0.0077447122894227505, 0.24744486808776855, 0.04708365723490715, 0.14178656041622162, 0.2906074523925781, 0.28930914402008057, 0.07486023008823395, 0.22097912430763245, -0.04495752975344658, 0.4247758090496063, -0.26672717928886414, -0.2374444156885147, 0.0583171509206295, 0.023058714345097542, -0.16519227623939514, 0.06987105309963226, 0.10891251266002655, -0.054003097116947174, 0.35478276014328003, 0.06940322369337082, 0.16097527742385864, 0.014948821626603603, 0.3398008644580841, -0.13206706941127777, -0.48240840435028076, -0.3375610411167145, 0.20688602328300476, -0.003405506256967783, 0.000613364449236542, 0.14193974435329437, -0.14033563435077667, -0.014442957937717438, 0.18130332231521606, 0.07001156359910965, 0.9123483896255493, -0.05020900443196297, 0.2700967490673065, 0.15562941133975983, -0.12637461721897125, 0.4847860038280487, -0.19063235819339752, 0.31361493468284607, -0.4442598819732666, -0.34408557415008545, 0.033206142485141754, -0.2150556892156601, 0.001666648080572486, -0.08467432856559753, -0.03130523860454559, 0.4170593023300171, 0.3165464401245117, -0.08886922895908356, -0.02977544441819191, 0.23895873129367828, -0.041170138865709305, -0.17547428607940674, -0.316509485244751, 0.1362704038619995, -0.4005618691444397, 0.319438099861145, -0.151050865650177, -0.0020370238926261663, -0.0022303671576082706, -0.16608251631259918, -0.21453534066677094, 0.2455090582370758, 0.18387733399868011, 0.45140379667282104, 0.5331092476844788, -0.19798889756202698, -0.14533279836177826, 0.04268040880560875, 0.0731448084115982, -0.11077510565519333, -0.22801873087882996, 0.08417962491512299, 0.4728117287158966, -0.21303242444992065, -0.02764410898089409, 0.16777226328849792, 0.5750767588615417, -0.16118551790714264, -0.04883752018213272, -0.0175485759973526, -0.15862278640270233, -0.5636654496192932, 0.01652161031961441, -0.01440861914306879, 0.2287374883890152, -0.2249048501253128, -0.2408614307641983, -0.006058020517230034, -0.11773017048835754, -0.2581004202365875, 0.13442666828632355, 0.14283910393714905, -0.22202487289905548, 0.19953860342502594, 0.0958135649561882, -0.3081701397895813, 0.053559672087430954, 0.413139671087265, 0.1912597417831421, -0.22644425928592682, 0.4888491928577423, -0.04028783366084099, -0.3232172131538391, -0.19993364810943604, 0.0013784378534182906, -0.0778844878077507, -0.32430750131607056, 0.23540478944778442, -0.0050528692081570625, 0.2434718906879425, 0.19779732823371887, 0.4563697278499603, 0.15388493239879608, 0.16390810906887054, 0.06401146203279495, -0.42902061343193054, -0.34249117970466614, -0.09831581264734268, -0.05868244543671608, 0.34646016359329224, 0.19336189329624176, 0.02507830783724785, 0.028280023485422134, -0.014139479026198387, -0.2789711058139801, -0.03620439022779465, -0.6158048510551453, 0.08086469769477844, 0.1627991497516632, -0.17867086827754974, 0.09856311231851578, 0.08484895527362823, 0.10807708650827408, 0.062278538942337036, -0.11878985166549683, -0.21387428045272827, -0.20604641735553741, 0.16817958652973175, 0.13121242821216583, -0.11987705528736115, -0.09784705191850662, -0.13247357308864594, -0.15382981300354004, -0.1558459997177124, -0.2439975142478943, 0.16781790554523468, -0.06506067514419556, -0.010938931256532669, -0.13126066327095032, -0.07443617284297943, 0.22800998389720917, 0.14020387828350067, -0.41033220291137695, -0.11820889264345169, 0.08093947917222977, 0.009015434421598911, 0.02809499390423298, 0.08395334333181381, -0.0772588923573494, 0.07665159553289413, 0.31415408849716187, -0.26869189739227295, 0.2941836714744568, -0.32556816935539246, -0.13629119098186493, 0.06496980786323547, 0.3370262682437897, 0.21334907412528992, -0.40814873576164246, -0.0788642093539238, 0.2357679009437561, 0.16822323203086853, -0.5343016386032104, 0.011873414739966393, 0.3354955315589905, 0.10925840586423874, 0.018038375303149223, 0.11050930619239807, -0.1460668295621872, -0.3263038694858551, 0.37970030307769775, 0.15485192835330963, 0.2326480597257614, -0.641413688659668, -0.007243046071380377, 0.2353510856628418, 0.1024453341960907, -0.14251390099525452, 0.28177765011787415, 0.05233204364776611, 0.11280819773674011, -0.029143938794732094, -0.06500660628080368, 0.14648695290088654, -0.19579413533210754, 0.15314330160617828, -0.23318277299404144, -0.2960088551044464, 0.21897323429584503, 0.47956395149230957, 0.23770146071910858, 0.08647332340478897, 0.06585570424795151, 0.34207311272621155, -0.07130582630634308, 0.20494286715984344, -0.3094727396965027, 0.2302253246307373, -0.10543680936098099, -0.09366030246019363, 0.023986387997865677, -0.0296238474547863, -0.17092393338680267, 0.21048060059547424, -0.013371793553233147, 0.2012881636619568, 0.040911272168159485, 0.1333928406238556, -0.04454266279935837, -0.5335197448730469, 0.14465786516666412, 0.23603348433971405, -0.015614327043294907, -0.2741883099079132, 0.23561055958271027, 0.1141982302069664, -0.07366044819355011, 0.04239702224731445, 0.3567355275154114, 0.39952516555786133, 0.36309918761253357, -0.007846890948712826, -0.12930521368980408, 0.11558034271001816, 0.116857148706913, 0.13763754069805145, 0.6320474147796631, 0.3914761245250702, 0.2891380190849304, 0.366342157125473, 0.015223671682178974, -0.1995551437139511, 0.2551233172416687, -0.09978541731834412, -0.33545705676078796, 0.026399221271276474, 0.7012006044387817, 0.15000782907009125, -0.005063053220510483, -0.20528391003608704, 0.19082148373126984, -0.3925946354866028, -0.2459530383348465, -0.0374741367995739, 0.06768744438886642, 0.15588778257369995, -0.11567874252796173, 0.05636744573712349, -0.10695963352918625, 0.4185029864311218, 0.14459221065044403, -0.055076099932193756, -0.3177080452442169, -0.3510943055152893, -0.782340943813324, 0.414754718542099, -0.22224314510822296, -0.004538924898952246, 0.11117485165596008, 0.12392019480466843, -0.1260129064321518, 0.12135870009660721, 0.052752379328012466, 0.08295369893312454, -0.477480947971344, -0.1319563239812851, -0.02610149420797825, -0.020177381113171577, -0.11103825271129608, -0.40835604071617126, -0.046553049236536026, -0.18373623490333557, 0.028331981971859932, 0.10315483808517456, 0.02249803952872753, -0.023308059200644493, -0.05763586610555649, -0.18685215711593628, 0.45206257700920105, -0.086367167532444, 0.18592657148838043, 0.4873584806919098, 0.05341411009430885, -0.016193624585866928, -0.06143541634082794, -0.3204168975353241, -0.24960829317569733, 0.2517530024051666, 0.11229147762060165, 0.3334978520870209, -0.05136863514780998, 0.07830675691366196, -0.3139568567276001, 0.18824881315231323, -0.021477488800883293, -0.17341703176498413, -0.07351936399936676, -0.05970584228634834, -0.041505731642246246, 0.22707466781139374, -0.053587816655635834, 0.011546358466148376, 0.21792936325073242, 0.3108491599559784, -0.32527756690979004, -0.2350175976753235, 0.5604353547096252, -0.4640589654445648, -0.3845106065273285, 0.011447461321949959, 0.19404612481594086, -0.21399961411952972, -0.20467153191566467, -0.7420552968978882, 0.0417301170527935, 0.35193175077438354, 0.10893869400024414, -0.09042591601610184, 0.12551121413707733, -0.5100411772727966, 0.05486360937356949, 0.010107217356562614, -0.05205944925546646, 0.14990010857582092, -0.21299582719802856, -0.1807079166173935, -0.21114589273929596 ]
https://github.com/huggingface/datasets/issues/274
PG-19
Got around to this today, and so far so good, I'm able to download and load pg19 locally. However, I think there may be an issue with the dummy data, and testing in general. The problem lies in the fact that each book from pg19 actually resides as its own text file in a google cloud folder that denotes the split, where the book id is the name of the text file. https://console.cloud.google.com/storage/browser/deepmind-gutenberg/train/ I don't believe there's anywhere else (even in the supplied metadata), where the mapping of id -> split can be found. Therefore I end up making a network call `tf.io.gfile.listdir` to get all the files within each of the split directories. https://github.com/lucidrains/nlp/commit/adbacbd85decc80db2347d0882e7dab4faa6fd03#diff-cece8f166a85dd927caf574ba303d39bR78 Does this network call need to be eventually stubbed out for testing?
Hi, and thanks for all your open-sourced work, as always! I was wondering if you would be open to adding PG-19 to your collection of datasets. https://github.com/deepmind/pg19 It is often used for benchmarking long-range language modeling.
127
PG-19 Hi, and thanks for all your open-sourced work, as always! I was wondering if you would be open to adding PG-19 to your collection of datasets. https://github.com/deepmind/pg19 It is often used for benchmarking long-range language modeling. Got around to this today, and so far so good, I'm able to download and load pg19 locally. However, I think there may be an issue with the dummy data, and testing in general. The problem lies in the fact that each book from pg19 actually resides as its own text file in a google cloud folder that denotes the split, where the book id is the name of the text file. https://console.cloud.google.com/storage/browser/deepmind-gutenberg/train/ I don't believe there's anywhere else (even in the supplied metadata), where the mapping of id -> split can be found. Therefore I end up making a network call `tf.io.gfile.listdir` to get all the files within each of the split directories. https://github.com/lucidrains/nlp/commit/adbacbd85decc80db2347d0882e7dab4faa6fd03#diff-cece8f166a85dd927caf574ba303d39bR78 Does this network call need to be eventually stubbed out for testing?
[ -0.2726428210735321, 0.10239821672439575, -0.07613084465265274, 0.03897327557206154, -0.3389712870121002, -0.12711812555789948, 0.6120792627334595, 0.14190582931041718, 0.2338515669107437, 0.0364077128469944, 0.09452307969331741, -0.027551643550395966, -0.07654085755348206, 0.8012989163398743, 0.39663127064704895, -0.04433733597397804, 0.21177729964256287, 0.05873044952750206, 0.08764061331748962, -0.0332944355905056, -0.313323050737381, 0.30083194375038147, -0.08162741363048553, 0.008408162742853165, -0.5192536115646362, -0.4210980534553528, -0.21403498947620392, 0.13622239232063293, -0.056496914476156235, -0.0908726304769516, 0.023285338655114174, 0.3214835822582245, -0.06836376339197159, 0.7272160649299622, -0.00012029660138068721, 0.055045582354068756, 0.04572180658578873, -0.12409219890832901, -0.23834294080734253, -0.24501599371433258, -0.029781455174088478, 0.21539855003356934, -0.1817449927330017, -0.17276540398597717, -0.05625498667359352, 0.01250531617552042, -0.01566256769001484, -0.08837355673313141, 0.0534062460064888, 0.1536816507577896, 0.057776641100645065, 0.10690490901470184, -0.12648071348667145, 0.02499524876475334, 0.3883242607116699, 0.21690742671489716, -0.30775317549705505, 0.24215203523635864, 0.4530329406261444, -0.10506390035152435, 0.09347057342529297, 0.3744821846485138, 0.10027111321687698, -0.1324557512998581, 0.2871439456939697, 0.20101293921470642, 0.23145554959774017, -0.23656031489372253, -0.1251804083585739, 0.38538283109664917, 0.15420964360237122, -0.18490475416183472, -0.4427042007446289, -0.4211251437664032, -0.35952720046043396, -0.384686142206192, 0.18331725895404816, 0.05606735497713089, -0.17145980894565582, 0.13230885565280914, -0.0573672354221344, -0.5777277946472168, -0.057594653218984604, 0.009336587972939014, -0.24546267092227936, 0.6067346930503845, 0.1900550127029419, -0.00705632334575057, 0.35563695430755615, 0.051180824637413025, -0.34228500723838806, -0.29461291432380676, -0.042557183653116226, -0.3199814558029175, 0.21934936940670013, -0.23228909075260162, -0.053132154047489166, -0.1331910490989685, 0.05611422657966614, 0.17480790615081787, 0.2768690884113312, 0.15260367095470428, -0.1641700714826584, 0.15100760757923126, 0.39165738224983215, 0.20297181606292725, 0.2193077802658081, 0.3185262382030487, 0.419636607170105, 0.1732519418001175, 0.07143241167068481, 0.10752624273300171, -0.042462266981601715, -0.020619649440050125, -0.3254278898239136, -0.12539948523044586, 0.0022390540689229965, -0.24483443796634674, -0.052666038274765015, 0.009428795427083969, -0.10569736361503601, -0.03377790376543999, 0.19635410606861115, 0.15844972431659698, 0.28536859154701233, -0.013264832086861134, -0.04506006836891174, 0.21404355764389038, -0.33296632766723633, -0.4193006753921509, -0.06976468116044998, -0.016879748553037643, -0.16002586483955383, 0.36539584398269653, 0.3247300386428833, 0.07303013652563095, 0.027449337765574455, -0.21863298118114471, 0.00439428398385644, 0.04649226740002632, 0.18766506016254425, -0.281760036945343, 0.34722933173179626, 0.2262934446334839, -0.016525601968169212, -0.06296717375516891, -0.11086292564868927, -0.35621407628059387, -0.3561599850654602, 0.3167044520378113, 0.003206880297511816, -0.1998971700668335, 0.3542378544807434, 0.061093736439943314, -0.24827462434768677, -0.08608870208263397, -0.4490329325199127, 0.5363022089004517, -0.058683689683675766, -0.4931676983833313, 0.169960156083107, -0.17518094182014465, -0.5471001267433167, 0.08174191415309906, 0.0991438627243042, 0.3235035240650177, -0.5793898701667786, -0.21484966576099396, -0.10321905463933945, 0.10398868471384048, 0.08876167237758636, 0.37302371859550476, -0.19056430459022522, 0.08986353129148483, -0.16983594000339508, 0.9594696760177612, -0.09935755282640457, 0.1975429505109787, -0.16753457486629486, 0.28484249114990234, -0.32566648721694946, -0.009038778021931648, 0.021829180419445038, 0.04263456165790558, 0.11315711587667465, -0.20485912263393402, 0.08689562976360321, 0.294711709022522, 0.062034182250499725, -0.060058146715164185, -0.27603787183761597, -0.1112532988190651, 0.3911849558353424, 0.028965484350919724, -0.0009520179592072964, -0.47651854157447815, -0.15123283863067627, -0.26981908082962036, 0.17407731711864471, -0.23581098020076752, -0.1551564782857895, 0.030881261453032494, 0.3874010443687439, 0.037519365549087524, -0.009670993313193321, 0.33523088693618774, -0.4020664393901825, 0.2687510848045349, -0.012288982048630714, 0.17680126428604126, -0.1955323964357376, -0.21270893514156342, 0.04979659989476204, 0.18786342442035675, 0.03763635829091072, -0.13818301260471344, -0.0923653244972229, 0.20169410109519958, 0.060691218823194504, 0.18772175908088684, -0.04580467939376831, -0.4293639361858368, -0.3604775369167328, -0.03481739014387131, -0.34263935685157776, 0.1718733310699463, -0.028564104810357094, -0.0352945402264595, 0.04394038766622543, 0.0776204764842987, -0.09348314255475998, -0.27856266498565674, 0.028699085116386414, 0.27297720313072205, -0.0015408146427944303, 0.35092177987098694, 0.3272591829299927, 0.6057784557342529, 0.25874873995780945, -0.33105602860450745, 0.07901942729949951, 0.05079406127333641, -0.13626393675804138, -0.24290813505649567, -0.2827904522418976, 0.5357285737991333, -0.29185959696769714, 0.2532324194908142, 0.04084238409996033, -0.2861540913581848, -0.10220421850681305, -0.09175698459148407, -0.24356405436992645, 0.09727972000837326, 0.3314110040664673, -0.44707539677619934, 0.09339983761310577, 0.07283049821853638, -0.21395182609558105, 0.28925177454948425, 0.3497878909111023, -0.3756161630153656, 0.25375819206237793, 0.09150264412164688, 0.07303088158369064, -0.3983810842037201, 0.1558256894350052, -0.03367450460791588, 0.33242303133010864, 0.194306418299675, 0.30822890996932983, -0.1299706995487213, -0.00003423728048801422, -0.30807194113731384, 0.3471042513847351, 0.0973091572523117, -0.2300122082233429, 0.2968509793281555, -0.13939523696899414, -0.21483966708183289, -0.2560613453388214, 0.07618110626935959, 0.18251211941242218, 0.04465486854314804, -0.26244473457336426, 0.25805070996284485, 0.05243462696671486, -0.24767234921455383, -0.11752459406852722, -0.2869991362094879, -0.31773677468299866, -0.05459402874112129, 0.2922191023826599, -0.1741599291563034, -0.3121165931224823, 0.15482087433338165, 0.11756918579339981, 0.5219106674194336, -0.3469553589820862, -0.42837899923324585, -0.10553520917892456, -0.24664326012134552, -0.3328723907470703, 0.00044549553422257304, 0.6615576148033142, 0.15184469521045685, 0.27380993962287903, -0.06654707342386246, -0.2734890282154083, 0.01851758547127247, -0.3513026535511017, 0.20384636521339417, -0.21122869849205017, 0.3707548975944519, -0.18827028572559357, 0.14625512063503265, 0.12490980327129364, -0.19291047751903534, -0.09400719404220581, -0.7298648953437805, -0.14020253717899323, -0.165423184633255, 0.08745485544204712, -0.08372732996940613, -0.31103023886680603, -0.5655397176742554, -0.2192700207233429, -0.07602913677692413, 0.4412037134170532, 0.0793057456612587, 0.07646048814058304, 0.35702547430992126, 0.19043107330799103, 0.022289765998721123, 0.3863986134529114, -0.25528356432914734, -0.1555342823266983, -0.08337001502513885, 0.30253228545188904, 0.07705037295818329, -0.09850979596376419, 0.011152699589729309, -0.18823139369487762, 0.03944011777639389, 0.015148809179663658, -0.705918550491333, 0.30684754252433777, 0.29036691784858704, 0.2597411274909973, 0.09256797283887863, -0.383650004863739, 0.24977801740169525, -0.1992361694574356, -0.03310162574052811, 0.007221654057502747, -0.13477720320224762, 0.3519960343837738, 0.11038604378700256, 0.025062987580895424, 0.08067019283771515, -0.1839890480041504, 0.10302580147981644, 0.6840962767601013, -0.2482757270336151, 0.0036133814137429, 0.02135515958070755, 0.18164710700511932, -0.013138029724359512, -0.16980907320976257, -0.1296669989824295, -0.24484708905220032, -0.24657058715820312, -0.45850247144699097, 0.5736469030380249, -0.059314411133527756, -0.5932350754737854, -0.12987534701824188, -0.09800758957862854, 0.008137030526995659, -0.3383713662624359, 0.4411451518535614, 0.207164466381073, 0.34762895107269287, 0.023094527423381805, -0.12512175738811493, -0.1863764375448227, -0.19506798684597015, 0.05060959607362747, -0.22795546054840088, 0.22617903351783752, 0.046655911952257156, -0.1756548434495926, -0.1343161165714264, -0.35528096556663513, 0.3489295542240143, 0.2551194727420807, 0.17490272223949432, -0.36309319734573364, -0.0755881667137146, 0.02270982414484024, -0.22196900844573975, 0.33170291781425476, -0.1779334843158722, -0.00939960591495037, 0.26309579610824585, 0.0396292544901371, 0.29767677187919617, -0.03516082838177681, -0.3403718173503876, -0.056759051978588104, 0.5999398827552795, 0.5400307774543762, -0.2375161349773407, 0.10115937888622284, 0.09148015826940536, 0.12423460185527802, -0.11085683107376099, 0.2190762758255005, -0.12448471784591675, -0.15752650797367096, -0.053981248289346695, 0.14336638152599335, 0.16325324773788452, -0.14060266315937042, -0.261932373046875, 0.16163253784179688, 0.3779700696468353, 0.2200576215982437, 0.26346585154533386, 0.0431189090013504, 0.18487143516540527, -0.07373248785734177, 0.08359599858522415, 0.494853675365448, -0.05579296499490738, 0.3722932040691376, 0.566867470741272, 0.05743506923317909, 0.4507503807544708, 0.23353642225265503, -0.16804267466068268, 0.3974839150905609, 0.8063241839408875, 0.1405191421508789, 0.061119887977838516, 0.0795641541481018, 0.07675682753324509, -0.368674099445343, 0.16794882714748383, 0.3405250310897827, 0.031588364392519, -0.2728305459022522, -0.30242010951042175, 0.43114152550697327, 0.16697625815868378, -0.10419312119483948, 0.3814055025577545, -0.20486968755722046, -0.2611418068408966, 0.5249561071395874, -0.1667475402355194, 1.1697311401367188, 0.13682502508163452, 0.29934927821159363, 0.08099681884050369, 0.41911646723747253, 0.19005826115608215, -0.488421231508255, 0.14853893220424652, 0.018190402537584305, 0.03972911089658737, -0.1441790908575058, -0.13872238993644714, 0.047332942485809326, 0.15482108294963837, -0.31101036071777344, 0.11738541722297668, 0.3908542990684509, -0.02343330718576908, -0.029419569298624992, 0.38813886046409607, 0.12132328748703003, -0.08995088189840317, 0.22960497438907623, 0.03451162204146385, 0.1406179815530777, -0.027119286358356476, 0.04358299821615219, -0.29336777329444885, -0.4227815568447113, -0.10698461532592773, -0.26749029755592346, -0.07565701752901077, -0.3035302460193634, 0.06499296426773071, -0.10642261803150177, -0.3392092287540436, 0.1419108361005783, -0.020705409348011017, -0.271312415599823, 0.038825370371341705, -0.14737679064273834, 0.15149541199207306, -0.2022615522146225, 0.0859384536743164, 0.14814557135105133, -0.08725152909755707, 0.2579501271247864, 0.14090171456336975, -0.2104296088218689, -0.14714175462722778, -0.07716723531484604, -0.20184208452701569, -0.441701203584671, -0.30462220311164856, 0.0685095563530922, -0.15610207617282867, 0.17711234092712402, 0.23173421621322632, -0.2645568549633026, -0.1544073224067688, 0.09706161916255951, -0.019570045173168182, -0.27397146821022034, 0.01865815557539463, 0.010624700225889683, -0.23780760169029236, -0.24210886657238007, 0.22058798372745514, -0.19420652091503143, 0.3820822834968567, 0.41248974204063416, 0.3496236801147461, 0.08176260441541672, -0.2193911075592041, 0.2541915476322174, -0.17683018743991852, -0.25788941979408264, 0.14944756031036377, -0.055213067680597305, -0.13528761267662048, -0.3229968547821045, 0.457116961479187, 0.44449567794799805, -0.0257333442568779, -0.08926396071910858, -0.08309248089790344, 0.20626096427440643, 0.2840723693370819, 0.24988889694213867, 0.44378697872161865, -0.08976072818040848, -0.007929602637887001, -0.09504642337560654, 0.2125570923089981, -0.24109384417533875, 0.05427532643079758, -0.2605380117893219, 0.01884007267653942, -0.09556227922439575, -0.17356176674365997, 0.1620260626077652, -0.10368090867996216, -0.030338559299707413, 0.2714054584503174, 0.04786063730716705, -0.09932046383619308, -0.0023333183489739895, 0.21611440181732178, 0.0434175468981266, -0.04598246514797211, -0.032476507127285004, 0.09885639697313309, 0.16137565672397614, 0.01626400090754032, 0.028270211070775986, -0.094948410987854, 0.10343912243843079, -0.25278598070144653, 0.06377443671226501, 0.017148729413747787, -0.23647208511829376, 0.18096712231636047, 0.029947753995656967, 0.4296175539493561, -0.08236400783061981, 0.2004123032093048, -0.07349075376987457, -0.02539694868028164, 0.0024156204890459776, 0.20379668474197388, 0.04480941966176033, -0.023037202656269073, 0.13326126337051392, -0.150448277592659, 0.10106654465198517, -0.03395124897360802, 0.4799177050590515, 0.3069319427013397, -0.33843955397605896, 0.06593748182058334, -0.024123558774590492, 0.10520025342702866, -0.13859659433364868, -0.27681124210357666, 0.17256000638008118, -0.19984814524650574, 0.009590241126716137, 0.4495714008808136, 0.7169883251190186, 0.07630723714828491, -0.01250528171658516, -0.0289081409573555, -0.11710958182811737, 0.1782936453819275, 0.09389926493167877, 0.29326966404914856, -0.3195469379425049, 0.13398101925849915, 0.054050758481025696, 0.21507592499256134, 0.23834839463233948, -0.051931630820035934, 0.06294257938861847, -0.0008560532005503774, -0.08676986396312714, 0.2609272301197052, -0.24248193204402924, -0.44436460733413696, -0.19591927528381348, 0.18454565107822418, 0.1359017938375473, 0.3729003965854645, 0.009674112312495708, 0.7265560030937195, -0.5254344940185547, -0.13998396694660187, -0.16815580427646637, 0.11445030570030212, -0.12957267463207245, 0.052873849868774414, -0.4104499816894531, -0.25349703431129456, -0.740445613861084, 0.248605415225029, -0.03491639345884323, 0.034224823117256165, -0.20497891306877136, 0.22944018244743347, -0.16140152513980865, 0.1850544959306717, 0.1864519715309143, -0.4132697582244873, 0.2457103282213211, -0.3718051612377167, 0.3357542157173157, 0.17537717521190643, 0.0800139307975769, 0.17875392735004425, 0.20186205208301544, 0.250191330909729, -0.2673250436782837, -0.2864140570163727, 0.061286598443984985, -0.18969997763633728, -0.050823599100112915, -0.03771715611219406, 0.3149448335170746, 0.13425670564174652, -0.019860129803419113, 0.41707026958465576, 0.020116837695240974, -0.04885125160217285, 0.2668670415878296, 0.37334632873535156, 0.2590523064136505, -0.13695010542869568, 0.4088308811187744, -0.21470610797405243, -0.2509363889694214, -0.21898521482944489, -0.20407548546791077, -0.2603699862957001, 0.14234481751918793, 0.34177353978157043, -0.2362695187330246, 0.07391119748353958, -0.04585273936390877, 0.02265392243862152, -0.19437016546726227, 0.6136358976364136, 0.13495591282844543, 0.3015563189983368, -0.45370596647262573, -0.18685130774974823, -0.45649394392967224, 0.06264226883649826, -0.2675771415233612, 0.1378537118434906, 0.1533733755350113, 0.09832777082920074, 0.3756071627140045, 0.3372199237346649, -0.08962131291627884, 0.08608219772577286, -0.3630809783935547, 0.1857967972755432, -0.36471256613731384, 0.20505470037460327, -0.29187843203544617, 0.04239112138748169, 0.04486220329999924, -0.15484265983104706, 0.13354650139808655, -0.13258497416973114, -0.16128166019916534, 0.09111697971820831, -0.2634662091732025, 0.11952416598796844, 0.7089613676071167, 0.2730458080768585, -0.13855665922164917, 0.5048614740371704, 0.04496278613805771, 0.07104606181383133, 0.030808011069893837, -0.2031419575214386, -0.19387605786323547, 0.10185802727937698, -0.3042176067829132, 0.2639804184436798, -0.22789905965328217, -0.13102717697620392, -0.001057920278981328, -0.22715672850608826, -0.05901200324296951, -0.02048369124531746, -0.18817085027694702, -0.28768426179885864, -0.3768274188041687, -0.1003793403506279, 0.3555050790309906, 0.5817747116088867, -0.06896357238292694, -0.2167634218931198, -0.19725751876831055, 0.02183515951037407, 0.5056436657905579, 0.07838369160890579, -0.0010329285869374871, 0.016226056963205338, 0.06201285868883133, 0.6226606369018555, 0.10652198642492294, -0.41340628266334534, -0.10987991839647293, 0.21437408030033112, 0.18306416273117065, -0.15425071120262146, 0.0011519506806507707, 0.15770737826824188, -0.009702135808765888, -0.028474727645516396, 0.5589554309844971, 0.0301845483481884, -0.19190503656864166, 0.07093548774719238, -0.2202949821949005 ]
https://github.com/huggingface/datasets/issues/274
PG-19
Ohh nevermind, I think I can use `download_custom` here with `listdir` as the custom function. Ok, I'll keep trying to make the dummy data work!
Hi, and thanks for all your open-sourced work, as always! I was wondering if you would be open to adding PG-19 to your collection of datasets. https://github.com/deepmind/pg19 It is often used for benchmarking long-range language modeling.
25
PG-19 Hi, and thanks for all your open-sourced work, as always! I was wondering if you would be open to adding PG-19 to your collection of datasets. https://github.com/deepmind/pg19 It is often used for benchmarking long-range language modeling. Ohh nevermind, I think I can use `download_custom` here with `listdir` as the custom function. Ok, I'll keep trying to make the dummy data work!
[ -0.4496193528175354, -0.03256113454699516, -0.24153481423854828, 0.011326189152896404, 0.019667135551571846, -0.23637115955352783, 0.32533279061317444, 0.25547292828559875, 0.3786720931529999, 0.13758975267410278, -0.14073140919208527, 0.12346866726875305, -0.2844296991825104, 0.6086757779121399, 0.2480924129486084, -0.1724563091993332, 0.13202789425849915, 0.14125853776931763, 0.022988295182585716, -0.035968609154224396, -0.32785120606422424, 0.16211289167404175, 0.015688305720686913, -0.10666374117136002, 0.09940098971128464, -0.0518357940018177, -0.14558643102645874, 0.11187277734279633, -0.20362809300422668, -0.23971602320671082, 0.01958821527659893, 0.24893875420093536, 0.08734675496816635, 0.37375664710998535, -0.00009904240869218484, -0.14119623601436615, 0.1471237689256668, -0.17506444454193115, -0.16810040175914764, -0.17707966268062592, 0.00878109596669674, -0.15892523527145386, -0.3505606949329376, -0.07190439105033875, -0.2097426950931549, -0.1847793608903885, -0.07472781091928482, -0.21739661693572998, -0.025999125093221664, 0.17593412101268768, 0.33317697048187256, 0.16255220770835876, -0.0765995979309082, -0.19708894193172455, 0.3186586797237396, 0.2053198516368866, -0.30262574553489685, 0.10414382070302963, 0.535034716129303, 0.05754215642809868, 0.2266923040151596, 0.14728739857673645, -0.13924461603164673, -0.0871097669005394, 0.1038864478468895, 0.016398249194025993, 0.3358011841773987, -0.14567844569683075, -0.03258831426501274, 0.4370429813861847, 0.2743549346923828, -0.22263726592063904, -0.14066943526268005, -0.1740686446428299, -0.2891649305820465, -0.5619827508926392, -0.17799335718154907, 0.02586490847170353, -0.11503695696592331, 0.17474816739559174, 0.12535300850868225, -0.23637643456459045, -0.11890344321727753, 0.1020028293132782, -0.13718053698539734, 0.5368199348449707, 0.12390460819005966, -0.18563717603683472, 0.2636006772518158, -0.22586031258106232, -0.22719183564186096, -0.30831044912338257, -0.03345645219087601, -0.2204839289188385, 0.024958958849310875, -0.30717039108276367, 0.08112353086471558, -0.02638171799480915, 0.24977965652942657, 0.06120000779628754, 0.40357550978660583, 0.3741006553173065, -0.042234841734170914, -0.031919367611408234, 0.07855518162250519, 0.16759862005710602, -0.026160167530179024, 0.11106202006340027, 0.11657276004552841, 0.12753981351852417, 0.09288734942674637, 0.2510777711868286, -0.01987101323902607, 0.2266141176223755, -0.31013956665992737, 0.10709840804338455, -0.25004616379737854, -0.19844405353069305, -0.17382830381393433, 0.10369088500738144, 0.085361048579216, -0.004556526429951191, 0.10780077427625656, 0.30546411871910095, -0.008341820910573006, 0.09051946550607681, -0.2202177494764328, 0.13062715530395508, -0.1280265599489212, -0.43331706523895264, -0.14333410561084747, 0.1360117793083191, -0.18820104002952576, -0.060578446835279465, 0.24250444769859314, 0.20055605471134186, 0.05583026632666588, 0.06556287407875061, 0.22429491579532623, 0.22395041584968567, 0.4162145256996155, -0.39345279335975647, 0.26772457361221313, -0.023853961378335953, -0.013510392047464848, -0.23244330286979675, -0.02712174318730831, -0.2948930561542511, -0.4005904495716095, 0.12512408196926117, 0.1765998750925064, -0.09665536135435104, -0.051855336874723434, 0.28997159004211426, -0.2850765585899353, -0.22686463594436646, -0.13168491423130035, 0.690750002861023, -0.35210347175598145, -0.24084123969078064, -0.00024943682365119457, -0.09816284477710724, -0.3826606273651123, -0.16781571507453918, -0.06826365739107132, 0.22304974496364594, -0.7102312445640564, -0.0014369192067533731, -0.08816542476415634, 0.08764076232910156, 0.12219172716140747, 0.1479882299900055, -0.12217483669519424, -0.05697470158338547, -0.17860987782478333, 0.42854174971580505, -0.007387333549559116, 0.06345576047897339, -0.1386582851409912, 0.04797183722257614, -0.17623871564865112, -0.023859195411205292, 0.083036407828331, 0.24482111632823944, 0.26639479398727417, -0.170475572347641, -0.2056729942560196, 0.3559741675853729, 0.10173502564430237, -0.04718225076794624, -0.2808579206466675, -0.22308309376239777, 0.3721275329589844, 0.273296982049942, 0.02457551471889019, -0.37380117177963257, -0.020069057121872902, -0.1720563918352127, 0.21086707711219788, -0.35054779052734375, -0.19193877279758453, 0.13635067641735077, 0.3697650730609894, -0.09018375724554062, 0.027172651141881943, -0.11428488790988922, -0.3181372284889221, 0.22421513497829437, -0.1626105010509491, 0.2529931962490082, 0.1391371339559555, -0.01024309080094099, -0.18966451287269592, 0.20221982896327972, 0.14744895696640015, -0.09282977133989334, 0.2675624489784241, 0.30866605043411255, 0.045117586851119995, 0.14654208719730377, 0.004035957157611847, -0.1700764000415802, -0.08285865932703018, -0.21456828713417053, -0.04821625351905823, 0.16887860000133514, 0.044653791934251785, -0.08213871717453003, 0.07336457073688507, 0.003631923347711563, 0.05826985090970993, -0.048338476568460464, 0.0967121496796608, -0.010171236470341682, 0.05688555911183357, 0.1058744415640831, 0.30470454692840576, 0.4284171164035797, 0.11857876181602478, -0.1844041794538498, 0.2336856871843338, 0.35890519618988037, 0.04562986269593239, -0.1627831608057022, -0.1102418601512909, 0.7311080098152161, 0.021625326946377754, 0.0830850601196289, -0.017576435580849648, -0.09846498817205429, 0.16341309249401093, -0.012995515950024128, -0.03427853435277939, -0.06884009391069412, 0.6526175737380981, -0.042735740542411804, 0.21940860152244568, 0.05514504015445709, -0.23673199117183685, 0.32910239696502686, 0.2710438072681427, -0.3212999999523163, 0.3904018998146057, 0.16437961161136627, 0.021710935980081558, -0.325835645198822, 0.23713186383247375, 0.08658605813980103, 0.31536057591438293, 0.37868496775627136, 0.2012796550989151, -0.05511452630162239, -0.0395658053457737, -0.1276566982269287, 0.5137770771980286, -0.12407272309064865, -0.1921025812625885, 0.1431734710931778, 0.16662324965000153, -0.2695828974246979, -0.2591990530490875, -0.027448533102869987, -0.08196237683296204, 0.05179426819086075, 0.023128142580389977, 0.08825186640024185, -0.16530725359916687, -0.16849304735660553, 0.1481921225786209, -0.2837999761104584, -0.36777442693710327, -0.11337274312973022, 0.2064829021692276, -0.1017502173781395, -0.35631948709487915, 0.1745760142803192, 0.05030221864581108, 0.43899232149124146, -0.3019816279411316, -0.3839161694049835, -0.08204157650470734, -0.13430184125900269, -0.16649608314037323, 0.2428557276725769, 0.2744907736778259, 0.048918578773736954, 0.33001214265823364, -0.00910316314548254, 0.07316243648529053, -0.04303005337715149, -0.34797734022140503, 0.17181101441383362, -0.05936989560723305, 0.1950065940618515, 0.06254160404205322, 0.10530266910791397, 0.14942006766796112, -0.07894570380449295, 0.02782491222023964, -0.5253403186798096, -0.09801894426345825, -0.11366856098175049, -0.13267429172992706, 0.0018229945562779903, -0.244145467877388, -0.1484718918800354, -0.41978171467781067, -0.4171620309352875, 0.15122121572494507, 0.2760443687438965, 0.1007150411605835, 0.11917834728956223, 0.23996804654598236, 0.08590122312307358, 0.2548601031303406, -0.12752945721149445, -0.3787022531032562, -0.2274724692106247, 0.35529619455337524, -0.15805315971374512, -0.13724210858345032, -0.30943360924720764, -0.3070882558822632, 0.11155783385038376, 0.011998671106994152, -0.405285507440567, 0.12840448319911957, 0.17927120625972748, 0.29725873470306396, 0.021569425240159035, -0.23988023400306702, 0.3363254964351654, 0.09316935390233994, -0.17023691534996033, -0.16677767038345337, -0.19328473508358002, 0.14372727274894714, -0.12392625957727432, 0.0541556179523468, 0.025741977617144585, -0.14173075556755066, 0.1266508847475052, 0.6686888337135315, -0.31443631649017334, -0.1296616643667221, 0.3166138827800751, 0.21045559644699097, 0.11629673838615417, -0.130731463432312, -0.13261251151561737, -0.2857694625854492, -0.005099313333630562, -0.2197553813457489, 0.49922236800193787, -0.03305213898420334, -0.6249354481697083, -0.18222731351852417, -0.01184704527258873, 0.1265568733215332, 0.03618256375193596, 0.34414011240005493, 0.26901981234550476, 0.1792856603860855, 0.05257207527756691, -0.02579226903617382, -0.48496875166893005, -0.1925651878118515, 0.16238747537136078, -0.36921417713165283, -0.10430402308702469, -0.14462672173976898, -0.3234773874282837, 0.2503582239151001, -0.3776231110095978, 0.4971390962600708, 0.23450599610805511, -0.13974441587924957, -0.2826569676399231, -0.11465820670127869, -0.1458325833082199, -0.1570807546377182, 0.10016411542892456, -0.32645654678344727, -0.055434901267290115, 0.21933741867542267, -0.08011265844106674, 0.009402520954608917, 0.11205106228590012, -0.33851590752601624, -0.2300795614719391, 0.4436793923377991, 0.28354400396347046, -0.36005130410194397, 0.11661579459905624, 0.02196027711033821, 0.2847553491592407, -0.01764458231627941, 0.0540446974337101, -0.08348552882671356, -0.2652909755706787, -0.022180596366524696, 0.14553654193878174, 0.020941872149705887, -0.0475824773311615, 0.009708537720143795, 0.034879300743341446, 0.11635810136795044, 0.1714591383934021, 0.35157889127731323, 0.014124167151749134, 0.05548371002078056, 0.048780422657728195, 0.10674525797367096, -0.02339523658156395, -0.030520468950271606, 0.15367603302001953, 0.37484070658683777, -0.15455402433872223, -0.02655402012169361, 0.029690273106098175, -0.2578398585319519, 0.16938558220863342, 0.4453939199447632, 0.16845136880874634, 0.18752099573612213, -0.2678748667240143, 0.07853959500789642, -0.3695301413536072, -0.003959231078624725, 0.07492094486951828, 0.1194172203540802, -0.09367210417985916, -0.3885667026042938, 0.2877749800682068, 0.0360754169523716, -0.19673068821430206, 0.35969746112823486, -0.38177746534347534, -0.14037615060806274, 0.5071077942848206, 0.17153970897197723, 1.0697431564331055, 0.13824735581874847, 0.2277500182390213, 0.2690105736255646, -0.11231672763824463, 0.17693153023719788, -0.10136784613132477, 0.01410125195980072, -0.09035824984312057, -0.10908432304859161, -0.004030072130262852, -0.11640021950006485, 0.012545793317258358, 0.23084896802902222, -0.38142701983451843, 0.21438708901405334, 0.1874142587184906, -0.043395254760980606, 0.14303995668888092, 0.23987546563148499, 0.1523894965648651, -0.13144683837890625, -0.08729808032512665, 0.30383703112602234, 0.08884324133396149, -0.2356533706188202, -0.08984670788049698, -0.24454590678215027, -0.16786767542362213, 0.014743795618414879, -0.3042562007904053, 0.022269660606980324, -0.2616691291332245, -0.024637289345264435, -0.21434448659420013, -0.38729047775268555, -0.010474799200892448, 0.043758656829595566, -0.13702328503131866, 0.12695126235485077, -0.1129898726940155, 0.08242656290531158, -0.0416596494615078, 0.2649956941604614, 0.1730920523405075, -0.2701747715473175, 0.06557821482419968, -0.09696950763463974, -0.15053309500217438, 0.0545450896024704, 0.09003143012523651, -0.2973231077194214, -0.41592270135879517, -0.06746461242437363, 0.2315252274274826, -0.0399446114897728, 0.09126687794923782, 0.052636273205280304, -0.05331631004810333, -0.26088887453079224, 0.2784076929092407, 0.15914881229400635, -0.1142071932554245, -0.0011992343934252858, 0.011547856032848358, -0.11318997293710709, -0.3527474105358124, 0.0943337008357048, -0.03671790286898613, 0.11038537323474884, 0.21886947751045227, 0.27833491563796997, -0.16156896948814392, -0.3992875814437866, 0.23033533990383148, -0.40401142835617065, -0.25516414642333984, 0.2346501499414444, -0.16828696429729462, -0.44992876052856445, -0.29944249987602234, 0.18278005719184875, 0.3982260525226593, 0.0267380028963089, 0.036250144243240356, -0.14062470197677612, -0.13249938189983368, -0.026372641324996948, 0.1978900134563446, 0.20397301018238068, -0.2525266408920288, -0.2408902943134308, -0.12476923316717148, 0.030105475336313248, -0.5307036638259888, 0.04592588171362877, -0.2104521542787552, -0.10872052609920502, -0.1318976730108261, -0.19102920591831207, -0.0001305295154452324, 0.05293697491288185, 0.17014308273792267, 0.130268856883049, -0.36700719594955444, -0.336266428232193, -0.2466496378183365, 0.09479931741952896, -0.18985781073570251, 0.020323246717453003, 0.17460648715496063, 0.07297461479902267, 0.02545754238963127, 0.023537883535027504, -0.1450498402118683, 0.004744220525026321, 0.01427215151488781, 0.04407298192381859, 0.1607230007648468, -0.0179695226252079, -0.10783056914806366, 0.11824370175600052, 0.1625710278749466, 0.48229700326919556, 0.02840353362262249, 0.20594175159931183, 0.005524982698261738, -0.17508500814437866, 0.13491827249526978, 0.19154202938079834, 0.09708968549966812, -0.05271000787615776, 0.3109690248966217, 0.15186183154582977, -0.0850277692079544, 0.23784276843070984, 0.4349469542503357, 0.06670142710208893, -0.26148223876953125, 0.16746506094932556, 0.24048003554344177, 0.3586171865463257, -0.3505341708660126, -0.3663561940193176, 0.2699555456638336, -0.05710529536008835, 0.20113936066627502, 0.26349878311157227, 0.5090159773826599, 0.05599420145153999, 0.3693813681602478, -0.04327790066599846, -0.020840922370553017, 0.09141699969768524, -0.00395012553781271, 0.18690763413906097, -0.16547049582004547, 0.035019803792238235, 0.11755064129829407, 0.19319990277290344, 0.15324172377586365, 0.15453201532363892, 0.0882992371916771, 0.2996974289417267, -0.0034257927909493446, 0.13336847722530365, -0.03461841121315956, -0.2629006505012512, 0.21509557962417603, 0.31946685910224915, 0.07757756859064102, 0.4573177397251129, 0.21477800607681274, 0.4042338728904724, -0.3567394018173218, 0.011296405456960201, -0.28249818086624146, 0.11342567205429077, -0.0433538593351841, 0.030510040000081062, -0.09572557359933853, -0.2550138533115387, -0.6515782475471497, 0.1020769253373146, 0.0594383142888546, -0.1026330515742302, -0.021779321134090424, 0.10167794674634933, 0.18458707630634308, 0.06760068982839584, 0.018112637102603912, -0.16487696766853333, 0.14799995720386505, -0.34132373332977295, 0.19094803929328918, 0.3641982674598694, 0.07046078890562057, 0.16553254425525665, 0.2569618821144104, 0.19406192004680634, -0.03387448564171791, -0.44999417662620544, 0.00752015458419919, -0.2952575385570526, -0.027349058538675308, -0.40369707345962524, 0.2954622507095337, 0.17951838672161102, 0.08728897571563721, 0.5714366436004639, 0.213430717587471, -0.32865387201309204, 0.16668353974819183, 0.2962338626384735, -0.023502042517066002, -0.25222116708755493, 0.4653351306915283, 0.1142120286822319, -0.19699205458164215, -0.3033170700073242, -0.11753083765506744, -0.27486324310302734, 0.09195192903280258, 0.3361842930316925, -0.0773766040802002, 0.1398291289806366, -0.12191799283027649, 0.17880934476852417, -0.1884625256061554, 0.4774322807788849, 0.05185365304350853, 0.39418020844459534, -0.3209955096244812, -0.12592172622680664, -0.4690101444721222, 0.2998863458633423, -0.24836675822734833, 0.024125099182128906, -0.0713929682970047, 0.09258091449737549, 0.548586368560791, 0.4447723627090454, -0.057630814611911774, 0.2318602353334427, -0.21672500669956207, 0.25892922282218933, -0.5738069415092468, 0.2676149308681488, -0.011865435168147087, 0.08884195983409882, 0.144194558262825, -0.3371604382991791, -0.03355719521641731, 0.0031604059040546417, 0.2609308958053589, -0.13283905386924744, -0.31449607014656067, 0.05351025238633156, 0.38949933648109436, 0.4873793423175812, -0.0653240755200386, 0.3704751133918762, -0.27177780866622925, -0.21417173743247986, 0.1481597125530243, 0.004130122251808643, -0.087516650557518, 0.006609589327126741, 0.08123178035020828, 0.21709246933460236, -0.2944079339504242, -0.2309708595275879, 0.03867059946060181, 0.007021763361990452, 0.019876006990671158, 0.004748381674289703, -0.2540014088153839, -0.05740821361541748, -0.14791075885295868, -0.10702920705080032, -0.03978073596954346, 0.47930797934532166, -0.056837376207113266, -0.009118277579545975, -0.1438845992088318, 0.04604252427816391, 0.42397478222846985, 0.07319103181362152, -0.288441002368927, -0.05709481239318848, -0.02715625800192356, 0.243655264377594, 0.036444131284952164, -0.2875792384147644, 0.10554028302431107, 0.19280263781547546, 0.2369609922170639, -0.06719814985990524, 0.1631648987531662, -0.05425932630896568, 0.08807659149169922, -0.07869657129049301, 0.4497818648815155, 0.11182761937379837, -0.16345082223415375, -0.04986345395445824, -0.28401002287864685 ]
https://github.com/huggingface/datasets/issues/263
[Feature request] Support for external modality for language datasets
Thanks a lot, @aleSuglia for the very detailed and introductive feature request. It seems like we could build something pretty useful here indeed. One of the questions here is that Arrow doesn't have built-in support for generic "tensors" in records but there might be ways to do that in a clean way. We'll probably try to tackle this during the summer.
# Background In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data. # Language + Vision ## Use case Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset. Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features. For all these types of features, people use one of the following formats: 1. [HD5F](https://pypi.org/project/h5py/) 2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html) 3. [LMDB](https://lmdb.readthedocs.io/en/release/) ## Implementation considerations I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following: 1. Download dataset 2. Download images associated with the dataset 3. Write a script that generates the visual features for every image and store them in a specific file 4. Create a DataLoader that maps the visual features to the corresponding language example In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it. For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array. Looking forward to hearing your thoughts about it!
61
[Feature request] Support for external modality for language datasets # Background In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data. # Language + Vision ## Use case Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset. Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features. For all these types of features, people use one of the following formats: 1. [HD5F](https://pypi.org/project/h5py/) 2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html) 3. [LMDB](https://lmdb.readthedocs.io/en/release/) ## Implementation considerations I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following: 1. Download dataset 2. Download images associated with the dataset 3. Write a script that generates the visual features for every image and store them in a specific file 4. Create a DataLoader that maps the visual features to the corresponding language example In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it. For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array. Looking forward to hearing your thoughts about it! Thanks a lot, @aleSuglia for the very detailed and introductive feature request. It seems like we could build something pretty useful here indeed. One of the questions here is that Arrow doesn't have built-in support for generic "tensors" in records but there might be ways to do that in a clean way. We'll probably try to tackle this during the summer.
[ 0.000057335062592756, -0.14250022172927856, -0.10484325885772705, -0.11375923454761505, -0.02086443267762661, -0.27573004364967346, 0.3570462763309479, 0.16198933124542236, -0.17019514739513397, -0.11541043967008591, -0.10624029487371445, 0.37419697642326355, -0.2327694296836853, 0.0247862059623003, 0.22765766084194183, -0.16313816606998444, 0.11561087518930435, 0.020651061087846756, 0.17515620589256287, 0.03774222731590271, -0.08029604703187943, -0.18629911541938782, -0.0996892899274826, 0.015809006989002228, -0.15434448421001434, -0.006552880629897118, -0.23252809047698975, -0.06639564782381058, 0.017445562407374382, -0.15673185884952545, -0.41686126589775085, 0.1775115728378296, -0.006495947018265724, -0.05871245637536049, -0.00010538899368839338, 0.04106495901942253, 0.05086600035429001, -0.15447981655597687, -0.06360607594251633, -0.2922307252883911, -0.1718057096004486, -0.5856845378875732, -0.00518428161740303, -0.21386712789535522, 0.16897660493850708, -0.26110216975212097, 0.3033660650253296, -0.015454738400876522, 0.21995747089385986, 0.042448293417692184, 0.2338734120130539, 0.161965474486351, 0.057098180055618286, 0.31448379158973694, 0.17907898128032684, 0.7218418121337891, -0.17565025389194489, -0.026227952912449837, 0.3759557902812958, -0.1980060338973999, -0.17143107950687408, 0.5319557785987854, 0.07072699815034866, -0.17268803715705872, 0.10479635745286942, -0.15542210638523102, -0.07425466179847717, -0.18622666597366333, -0.1826821118593216, 0.26961877942085266, 0.5540596842765808, -0.0946793183684349, -0.3956737816333771, -0.27716949582099915, 0.10153611749410629, 0.21204398572444916, -0.1491226702928543, 0.4695764482021332, -0.08470464497804642, 0.2618878483772278, -0.1411740481853485, -0.4172474443912506, -0.22692765295505524, 0.4005020260810852, -0.010741088539361954, -0.11447335034608841, 0.11392739415168762, 0.1064261868596077, 0.1271231323480606, -0.13947534561157227, 0.24053429067134857, -0.0852414071559906, 0.19741685688495636, 0.1384703665971756, 0.11991780251264572, -0.14774395525455475, 0.09294053912162781, -0.0756630226969719, 0.10103746503591537, -0.1379876583814621, 0.014192512258887291, 0.165217787027359, -0.6861981153488159, 0.37200018763542175, 0.13847503066062927, -0.3171006441116333, -0.3466368317604065, 0.1551722288131714, 0.2985228896141052, -0.05795958265662193, -0.026865679770708084, -0.03786740452051163, 0.016913067549467087, 0.04408807307481766, -0.32684484124183655, 0.00009428920020582154, 0.10693494230508804, -0.015392174012959003, -0.09738080948591232, -0.29253873229026794, -0.24316498637199402, 0.05811227485537529, -0.026100415736436844, -0.07544048875570297, 0.23163259029388428, 0.2951602041721344, -0.010325917974114418, 0.2380755990743637, 0.005102277733385563, -0.6885833740234375, 0.0688786581158638, 0.08224178850650787, -0.45074307918548584, 0.11295711249113083, 0.019686125218868256, 0.576987624168396, 0.10568466782569885, 0.022471152245998383, 0.0795074924826622, -0.058927372097969055, 0.11541976779699326, -0.3274693191051483, 0.09448657184839249, 0.014610162936151028, -0.3158084750175476, -0.2822076678276062, -0.0010032616555690765, 0.2286929488182068, -0.1930287629365921, -0.0952015146613121, 0.0137522853910923, -0.20002105832099915, -0.1908561885356903, 0.12177527695894241, -0.07179059088230133, 0.039787448942661285, 0.31237679719924927, 0.9068837761878967, -0.3320867121219635, -0.4840669333934784, -0.037231460213661194, -0.03652598336338997, -0.3246374726295471, -0.153009295463562, -0.10833124816417694, 0.2535993456840515, -0.42064598202705383, -0.14578956365585327, 0.02145637571811676, -0.07829174399375916, -0.07302715629339218, 0.2533954679965973, -0.30217698216438293, -0.061936184763908386, 0.0733146220445633, -0.143929585814476, 0.42248696088790894, -0.29670795798301697, -0.21420562267303467, 0.19423335790634155, 0.04232393950223923, 0.25263112783432007, -0.04389001056551933, 0.39999741315841675, -0.018887057900428772, -0.13815021514892578, 0.12124067544937134, 0.711315393447876, -0.15096816420555115, 0.05194573104381561, -0.19383014738559723, -0.3600862920284271, 0.26589277386665344, 0.4229556918144226, 0.013050029054284096, -0.32058054208755493, 0.6397947669029236, -0.0006160865887068212, 0.10155666619539261, -0.2774524390697479, 0.12146112322807312, -0.19341152906417847, 0.293717622756958, -0.05628759041428566, -0.14273028075695038, -0.27559998631477356, -0.22721721231937408, 0.0019214614294469357, -0.2704660892486572, 0.2816791832447052, -0.1663464903831482, -0.0009558562887832522, 0.20897838473320007, -0.1393233835697174, 0.09564175456762314, 0.004168800078332424, 0.20372053980827332, 0.10114090144634247, -0.416917622089386, 0.2500484585762024, -0.09020788967609406, 0.025192346423864365, -0.09754301607608795, 0.038837846368551254, 0.18151548504829407, 0.25944238901138306, 0.01380185317248106, 0.1161566898226738, 0.09846033900976181, 0.5246052742004395, -0.22382543981075287, 0.03673645481467247, 0.032195430248975754, -0.0006300081149674952, 0.19920092821121216, 0.4802197217941284, -0.013226521201431751, 0.3972020745277405, 0.48091375827789307, -0.676246166229248, 0.34888890385627747, -0.16103698313236237, 0.24483942985534668, -0.1503300666809082, -0.04259403049945831, 0.2094169408082962, 0.24884048104286194, 0.08534600585699081, -0.0793132409453392, 0.06880927085876465, 0.08538880199193954, 0.047176070511341095, -0.33720511198043823, -0.16118621826171875, -0.055051468312740326, 0.19434958696365356, 0.00493220891803503, 0.037656791508197784, -0.38167908787727356, 0.14591827988624573, 0.5345169305801392, 0.2316180318593979, 0.17994537949562073, 0.1668640673160553, -0.20882368087768555, -0.3059067130088806, 0.2450825423002243, -0.2178821712732315, 0.07306045293807983, 0.2838119864463806, -0.22414420545101166, 0.06247900426387787, -0.21292644739151, 0.01689920946955681, 0.15207518637180328, 0.06433813273906708, 0.4003799855709076, 0.058144230395555496, 0.3798508942127228, 0.05604428052902222, -0.0656491294503212, -0.420152485370636, -0.022112973034381866, -0.2725446820259094, 0.17469938099384308, -0.009488334879279137, -0.18936538696289062, -0.6152865290641785, -0.18430876731872559, -0.0398297943174839, -0.4452587366104126, -0.0595039464533329, 0.0666307881474495, -0.28525617718696594, -0.17061515152454376, 0.07512401789426804, 0.00539984880015254, 0.37855151295661926, -0.36183956265449524, -0.09957021474838257, 0.1389789581298828, -0.2604553997516632, -0.15464714169502258, 0.08434530347585678, 0.4543460011482239, 0.06109648570418358, 0.24025371670722961, 0.2454441636800766, -0.04769605025649071, -0.1330876499414444, -0.43275874853134155, 0.2702726125717163, 0.057876791805028915, 0.18861307203769684, -0.0020112914498895407, -0.566367506980896, 0.09092457592487335, -0.0657486692070961, 0.2020866721868515, 0.0889277458190918, -0.004245708230882883, -0.06646228581666946, -0.04169391840696335, 0.12432932108640671, -0.2534281015396118, 0.09377005696296692, -0.492343008518219, -0.5119808912277222, 0.38410183787345886, -0.14364102482795715, 0.1656598448753357, 0.5681462287902832, 0.09953836351633072, -0.09538739919662476, -0.01726977340877056, 0.27121081948280334, 0.030044693499803543, 0.35573866963386536, -0.059646230190992355, -0.00017079783719964325, -0.18747904896736145, -0.28811371326446533, -0.2174287587404251, 0.11924504488706589, 0.34939438104629517, -0.3474397659301758, -0.32426053285598755, 0.09537973254919052, 0.15616892278194427, 0.03912096470594406, 0.0027885297313332558, 0.09059732407331467, 0.0016485597006976604, -0.005602523218840361, -0.038849636912345886, 0.0010587109718471766, -0.06858610361814499, 0.3693790137767792, 0.16960614919662476, 0.3322426378726959, 0.010456896387040615, 0.4449983537197113, 0.39844292402267456, -0.07358228415250778, -0.11300903558731079, 0.41049322485923767, 0.34180179238319397, 0.2031652182340622, -0.14582252502441406, -0.23186536133289337, 0.4618140161037445, -0.0998101606965065, -0.030407754704356194, 0.2845415771007538, -0.022318391129374504, -0.5936280488967896, -0.2309834063053131, -0.0808485597372055, -0.44454649090766907, -0.19343021512031555, 0.3490702211856842, -0.13693147897720337, 0.47245705127716064, 0.17477956414222717, -0.5142974853515625, -0.27790969610214233, -0.08629491180181503, 0.062266211956739426, 0.046765413135290146, 0.23081055283546448, 0.07125134766101837, -0.38006070256233215, -0.08878620713949203, 0.0941290631890297, 0.08369345217943192, 0.22389353811740875, 0.2547120749950409, -0.1767907738685608, -0.12743796408176422, 0.03431849554181099, 0.11261210590600967, 0.10101483762264252, -0.30758076906204224, -0.4294196367263794, 0.13116702437400818, 0.06978914886713028, -0.23177097737789154, -0.049864333122968674, -0.148851677775383, -0.005981393624097109, 0.18503329157829285, 0.24654369056224823, -0.0023719649761915207, -0.14173409342765808, -0.006456676404923201, 0.31722792983055115, 0.04069088026881218, -0.24388688802719116, 0.12231463938951492, 0.1655283272266388, -0.23723118007183075, -0.2288936972618103, -0.1311824917793274, 0.026688074693083763, 0.2431851029396057, 0.11057087033987045, 0.04402150958776474, -0.007771675940603018, 0.11666597425937653, 0.1760060340166092, -0.18601453304290771, 0.016281792894005775, -0.15354925394058228, -0.009497643448412418, 0.20169810950756073, -0.12320512533187866, 0.28990331292152405, 0.1724206656217575, -0.24645733833312988, -0.03424157574772835, -0.20413686335086823, 0.5062909126281738, 0.3987747132778168, 0.5554389953613281, 0.13408726453781128, -0.2353617548942566, -0.10005246847867966, -0.40590018033981323, 0.07845421880483627, 0.1703922003507614, -0.08798211067914963, 0.09282496571540833, -0.2557075023651123, 0.17793014645576477, -0.1484363079071045, -0.24349525570869446, -0.001654025400057435, 0.1146702840924263, -0.31921106576919556, 0.46267786622047424, 0.26785656809806824, 0.9083017110824585, 0.17393726110458374, 0.3773845434188843, 0.0632026419043541, -0.139299675822258, 0.4011538326740265, -0.5117282867431641, 0.19017989933490753, -0.24072480201721191, 0.03618026524782181, 0.02378241717815399, 0.05003288388252258, 0.0928928405046463, 0.1420453041791916, -0.0994795709848404, -0.08329889923334122, 0.6208555102348328, 0.11335839331150055, 0.1424342393875122, 0.23518690466880798, -0.04020414501428604, -0.5092383027076721, -0.059282854199409485, 0.13557901978492737, -0.17568255960941315, -0.22230280935764313, -0.14404425024986267, -0.34203511476516724, 0.0819416269659996, 0.2642243206501007, -0.2147078514099121, -0.0011321419151499867, -0.31605395674705505, 0.17083974182605743, 0.0972711369395256, 0.027449803426861763, 0.4782887101173401, 0.06529564410448074, 0.10304799675941467, -0.16767653822898865, 0.021500078961253166, -0.11214601993560791, 0.10283704102039337, 0.12899988889694214, -0.06453005969524384, -0.2993837594985962, 0.5649160742759705, -0.08502059429883957, -0.23677422106266022, 0.0830475389957428, 0.026579227298498154, -0.06789234280586243, -0.32878896594047546, -0.1408790946006775, 0.3525550365447998, 0.06926989555358887, -0.2042616754770279, 0.33836913108825684, 0.03363964706659317, 0.005678263958543539, 0.15857601165771484, 0.14956669509410858, -0.0072709848172962666, 0.25499245524406433, 0.09071078151464462, 0.09574214369058609, -0.04114694148302078, -0.1602446585893631, -0.17215433716773987, -0.06823433190584183, 0.002059327205643058, -0.03950369730591774, 0.026654373854398727, -0.20976658165454865, 0.4513891637325287, -0.16559389233589172, -0.06786033511161804, -0.21938934922218323, 0.16477707028388977, -0.19182328879833221, -0.19113746285438538, 0.04164876416325569, 0.11022810637950897, 0.01285755168646574, -0.05677618831396103, -0.3587936460971832, -0.022774038836359978, 0.40081271529197693, -0.4294159710407257, -0.058301907032728195, -0.05659822002053261, 0.15040019154548645, -0.013582880608737469, 0.4569167494773865, -0.3693554997444153, -0.06210068240761757, 0.22851267457008362, 0.24095846712589264, -0.07236385345458984, -0.33102577924728394, -0.1456674188375473, 0.08433138579130173, 0.14106406271457672, 0.16944025456905365, -0.275130957365036, -0.16777946054935455, -0.07563764601945877, 0.1569443941116333, 0.2780584394931793, 0.09474202245473862, -0.08447728306055069, -0.33653464913368225, -0.14364145696163177, -0.1429383009672165, -0.32423192262649536, -0.14539510011672974, -0.20796871185302734, 0.42228519916534424, -0.6543205976486206, 0.2695189416408539, 0.2933259606361389, 0.09659767895936966, -0.12450695782899857, 0.35235652327537537, 0.25502413511276245, 0.0950307697057724, 0.08719702064990997, 0.10928225517272949, -0.28757309913635254, 0.26590433716773987, -0.15450069308280945, 0.0013406591024249792, 0.3109217882156372, 0.40306398272514343, 0.1597547084093094, -0.06661177426576614, 0.1476004272699356, -0.17238283157348633, -0.2406177967786789, 0.015078102238476276, 0.36152783036231995, 0.2620093822479248, -0.20344103872776031, 0.08389316499233246, 0.5660725831985474, -0.16361375153064728, 0.18824845552444458, 0.14679987728595734, 0.8290467262268066, 0.21138882637023926, 0.15853720903396606, -0.3222101926803589, 0.03156530112028122, -0.14683914184570312, -0.08657626062631607, -0.045918505638837814, 0.18194517493247986, 0.07934379577636719, 0.06892110407352448, 0.28309130668640137, 0.48013556003570557, 0.38314300775527954, -0.34673041105270386, 0.14105623960494995, -0.07985404133796692, 0.1351422369480133, 0.5679849982261658, -0.09497207403182983, 0.2906672954559326, 0.12865455448627472, 0.13389545679092407, 0.19713100790977478, -0.3649287819862366, 0.15649063885211945, -0.0954354926943779, -0.09011854976415634, -0.024757660925388336, 0.2911926209926605, 0.15422815084457397, -0.0017623122548684478, -0.37245073914527893, -0.03930394724011421, -0.46419811248779297, 0.007182274479418993, -0.0693768784403801, 0.006461106240749359, 0.0373954102396965, 0.22874456644058228, 0.12941031157970428, -0.15672940015792847, 0.19978727400302887, 0.2505199611186981, 0.42165517807006836, -0.23811942338943481, 0.046904560178518295, 0.034218981862068176, 0.08216260373592377, 0.11365386098623276, 0.13887600600719452, -0.02558146044611931, 0.03803081810474396, -0.38683760166168213, -0.06029351055622101, -0.37899526953697205, -0.022344475612044334, -0.14588563144207, 0.043168723583221436, 0.14389784634113312, 0.3281208872795105, 0.35922008752822876, 0.07851474732160568, -0.1413397490978241, 0.04558705911040306, 0.054798830300569534, -0.2489263117313385, -0.3126659393310547, -0.09545306116342545, 0.17730218172073364, 0.03050382249057293, -0.023134101182222366, 0.03708590939640999, -0.2534481883049011, -0.40802133083343506, 0.4324474632740021, -0.10378631204366684, -0.0051231286488473415, -0.07829635590314865, 0.07439963519573212, -0.1761176735162735, -0.036730848252773285, 0.4093003571033478, 0.10285015404224396, 0.12965235114097595, -0.19556057453155518, -0.2923831641674042, -0.024753564968705177, 0.10403258353471756, -0.44621607661247253, -0.06454336643218994, 0.28293225169181824, 0.35475629568099976, 0.34759196639060974, -0.26406434178352356, 0.14053411781787872, 0.2678467929363251, -0.222752183675766, -0.1304282248020172, 0.17787542939186096, -0.10760572552680969, 0.2173902988433838, -0.12893323600292206, 0.04391796886920929, -0.08149626851081848, -0.13112711906433105, 0.08348485082387924, -0.4303362965583801, -0.13384202122688293, -0.0598372220993042, 0.28615596890449524, 0.39718231558799744, 0.17493927478790283, 0.004467450547963381, 0.03697853907942772, -0.307625949382782, -0.11685086041688919, -0.07472449541091919, -0.07885705679655075, -0.05538677051663399, -0.09850014746189117, 0.7773545980453491, -0.2862609922885895, 0.16906890273094177, -0.024455616250634193, 0.23678958415985107, -0.045065004378557205, -0.24279193580150604, -0.05080610141158104, 0.03194332867860794, -0.1385505348443985, -0.06908567249774933, 0.10783404856920242, 0.4174988865852356, 0.037569012492895126, -0.15753115713596344, -0.05314415693283081, -0.14852404594421387, -0.046227335929870605, -0.2435234785079956, -0.2073340266942978, 0.28688183426856995, 0.051574431359767914, -0.1594630628824234, 0.3107653856277466, -0.43799808621406555, -0.23906880617141724, 0.33726951479911804, 0.06926397234201431, 0.09162470698356628, 0.30002275109291077, 0.2653146982192993, -0.3702753186225891, -0.17167961597442627, -0.24945776164531708, -0.2490815669298172, -0.11871698498725891, -0.12531235814094543, -0.12937353551387787 ]
https://github.com/huggingface/datasets/issues/263
[Feature request] Support for external modality for language datasets
I was looking into Facebook MMF and apparently they decided to use LMDB to store additional features associated with every example: https://github.com/facebookresearch/mmf/blob/master/mmf/datasets/databases/features_database.py
# Background In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data. # Language + Vision ## Use case Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset. Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features. For all these types of features, people use one of the following formats: 1. [HD5F](https://pypi.org/project/h5py/) 2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html) 3. [LMDB](https://lmdb.readthedocs.io/en/release/) ## Implementation considerations I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following: 1. Download dataset 2. Download images associated with the dataset 3. Write a script that generates the visual features for every image and store them in a specific file 4. Create a DataLoader that maps the visual features to the corresponding language example In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it. For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array. Looking forward to hearing your thoughts about it!
22
[Feature request] Support for external modality for language datasets # Background In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data. # Language + Vision ## Use case Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset. Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features. For all these types of features, people use one of the following formats: 1. [HD5F](https://pypi.org/project/h5py/) 2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html) 3. [LMDB](https://lmdb.readthedocs.io/en/release/) ## Implementation considerations I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following: 1. Download dataset 2. Download images associated with the dataset 3. Write a script that generates the visual features for every image and store them in a specific file 4. Create a DataLoader that maps the visual features to the corresponding language example In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it. For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array. Looking forward to hearing your thoughts about it! I was looking into Facebook MMF and apparently they decided to use LMDB to store additional features associated with every example: https://github.com/facebookresearch/mmf/blob/master/mmf/datasets/databases/features_database.py
[ 0.000057335062592756, -0.14250022172927856, -0.10484325885772705, -0.11375923454761505, -0.02086443267762661, -0.27573004364967346, 0.3570462763309479, 0.16198933124542236, -0.17019514739513397, -0.11541043967008591, -0.10624029487371445, 0.37419697642326355, -0.2327694296836853, 0.0247862059623003, 0.22765766084194183, -0.16313816606998444, 0.11561087518930435, 0.020651061087846756, 0.17515620589256287, 0.03774222731590271, -0.08029604703187943, -0.18629911541938782, -0.0996892899274826, 0.015809006989002228, -0.15434448421001434, -0.006552880629897118, -0.23252809047698975, -0.06639564782381058, 0.017445562407374382, -0.15673185884952545, -0.41686126589775085, 0.1775115728378296, -0.006495947018265724, -0.05871245637536049, -0.00010538899368839338, 0.04106495901942253, 0.05086600035429001, -0.15447981655597687, -0.06360607594251633, -0.2922307252883911, -0.1718057096004486, -0.5856845378875732, -0.00518428161740303, -0.21386712789535522, 0.16897660493850708, -0.26110216975212097, 0.3033660650253296, -0.015454738400876522, 0.21995747089385986, 0.042448293417692184, 0.2338734120130539, 0.161965474486351, 0.057098180055618286, 0.31448379158973694, 0.17907898128032684, 0.7218418121337891, -0.17565025389194489, -0.026227952912449837, 0.3759557902812958, -0.1980060338973999, -0.17143107950687408, 0.5319557785987854, 0.07072699815034866, -0.17268803715705872, 0.10479635745286942, -0.15542210638523102, -0.07425466179847717, -0.18622666597366333, -0.1826821118593216, 0.26961877942085266, 0.5540596842765808, -0.0946793183684349, -0.3956737816333771, -0.27716949582099915, 0.10153611749410629, 0.21204398572444916, -0.1491226702928543, 0.4695764482021332, -0.08470464497804642, 0.2618878483772278, -0.1411740481853485, -0.4172474443912506, -0.22692765295505524, 0.4005020260810852, -0.010741088539361954, -0.11447335034608841, 0.11392739415168762, 0.1064261868596077, 0.1271231323480606, -0.13947534561157227, 0.24053429067134857, -0.0852414071559906, 0.19741685688495636, 0.1384703665971756, 0.11991780251264572, -0.14774395525455475, 0.09294053912162781, -0.0756630226969719, 0.10103746503591537, -0.1379876583814621, 0.014192512258887291, 0.165217787027359, -0.6861981153488159, 0.37200018763542175, 0.13847503066062927, -0.3171006441116333, -0.3466368317604065, 0.1551722288131714, 0.2985228896141052, -0.05795958265662193, -0.026865679770708084, -0.03786740452051163, 0.016913067549467087, 0.04408807307481766, -0.32684484124183655, 0.00009428920020582154, 0.10693494230508804, -0.015392174012959003, -0.09738080948591232, -0.29253873229026794, -0.24316498637199402, 0.05811227485537529, -0.026100415736436844, -0.07544048875570297, 0.23163259029388428, 0.2951602041721344, -0.010325917974114418, 0.2380755990743637, 0.005102277733385563, -0.6885833740234375, 0.0688786581158638, 0.08224178850650787, -0.45074307918548584, 0.11295711249113083, 0.019686125218868256, 0.576987624168396, 0.10568466782569885, 0.022471152245998383, 0.0795074924826622, -0.058927372097969055, 0.11541976779699326, -0.3274693191051483, 0.09448657184839249, 0.014610162936151028, -0.3158084750175476, -0.2822076678276062, -0.0010032616555690765, 0.2286929488182068, -0.1930287629365921, -0.0952015146613121, 0.0137522853910923, -0.20002105832099915, -0.1908561885356903, 0.12177527695894241, -0.07179059088230133, 0.039787448942661285, 0.31237679719924927, 0.9068837761878967, -0.3320867121219635, -0.4840669333934784, -0.037231460213661194, -0.03652598336338997, -0.3246374726295471, -0.153009295463562, -0.10833124816417694, 0.2535993456840515, -0.42064598202705383, -0.14578956365585327, 0.02145637571811676, -0.07829174399375916, -0.07302715629339218, 0.2533954679965973, -0.30217698216438293, -0.061936184763908386, 0.0733146220445633, -0.143929585814476, 0.42248696088790894, -0.29670795798301697, -0.21420562267303467, 0.19423335790634155, 0.04232393950223923, 0.25263112783432007, -0.04389001056551933, 0.39999741315841675, -0.018887057900428772, -0.13815021514892578, 0.12124067544937134, 0.711315393447876, -0.15096816420555115, 0.05194573104381561, -0.19383014738559723, -0.3600862920284271, 0.26589277386665344, 0.4229556918144226, 0.013050029054284096, -0.32058054208755493, 0.6397947669029236, -0.0006160865887068212, 0.10155666619539261, -0.2774524390697479, 0.12146112322807312, -0.19341152906417847, 0.293717622756958, -0.05628759041428566, -0.14273028075695038, -0.27559998631477356, -0.22721721231937408, 0.0019214614294469357, -0.2704660892486572, 0.2816791832447052, -0.1663464903831482, -0.0009558562887832522, 0.20897838473320007, -0.1393233835697174, 0.09564175456762314, 0.004168800078332424, 0.20372053980827332, 0.10114090144634247, -0.416917622089386, 0.2500484585762024, -0.09020788967609406, 0.025192346423864365, -0.09754301607608795, 0.038837846368551254, 0.18151548504829407, 0.25944238901138306, 0.01380185317248106, 0.1161566898226738, 0.09846033900976181, 0.5246052742004395, -0.22382543981075287, 0.03673645481467247, 0.032195430248975754, -0.0006300081149674952, 0.19920092821121216, 0.4802197217941284, -0.013226521201431751, 0.3972020745277405, 0.48091375827789307, -0.676246166229248, 0.34888890385627747, -0.16103698313236237, 0.24483942985534668, -0.1503300666809082, -0.04259403049945831, 0.2094169408082962, 0.24884048104286194, 0.08534600585699081, -0.0793132409453392, 0.06880927085876465, 0.08538880199193954, 0.047176070511341095, -0.33720511198043823, -0.16118621826171875, -0.055051468312740326, 0.19434958696365356, 0.00493220891803503, 0.037656791508197784, -0.38167908787727356, 0.14591827988624573, 0.5345169305801392, 0.2316180318593979, 0.17994537949562073, 0.1668640673160553, -0.20882368087768555, -0.3059067130088806, 0.2450825423002243, -0.2178821712732315, 0.07306045293807983, 0.2838119864463806, -0.22414420545101166, 0.06247900426387787, -0.21292644739151, 0.01689920946955681, 0.15207518637180328, 0.06433813273906708, 0.4003799855709076, 0.058144230395555496, 0.3798508942127228, 0.05604428052902222, -0.0656491294503212, -0.420152485370636, -0.022112973034381866, -0.2725446820259094, 0.17469938099384308, -0.009488334879279137, -0.18936538696289062, -0.6152865290641785, -0.18430876731872559, -0.0398297943174839, -0.4452587366104126, -0.0595039464533329, 0.0666307881474495, -0.28525617718696594, -0.17061515152454376, 0.07512401789426804, 0.00539984880015254, 0.37855151295661926, -0.36183956265449524, -0.09957021474838257, 0.1389789581298828, -0.2604553997516632, -0.15464714169502258, 0.08434530347585678, 0.4543460011482239, 0.06109648570418358, 0.24025371670722961, 0.2454441636800766, -0.04769605025649071, -0.1330876499414444, -0.43275874853134155, 0.2702726125717163, 0.057876791805028915, 0.18861307203769684, -0.0020112914498895407, -0.566367506980896, 0.09092457592487335, -0.0657486692070961, 0.2020866721868515, 0.0889277458190918, -0.004245708230882883, -0.06646228581666946, -0.04169391840696335, 0.12432932108640671, -0.2534281015396118, 0.09377005696296692, -0.492343008518219, -0.5119808912277222, 0.38410183787345886, -0.14364102482795715, 0.1656598448753357, 0.5681462287902832, 0.09953836351633072, -0.09538739919662476, -0.01726977340877056, 0.27121081948280334, 0.030044693499803543, 0.35573866963386536, -0.059646230190992355, -0.00017079783719964325, -0.18747904896736145, -0.28811371326446533, -0.2174287587404251, 0.11924504488706589, 0.34939438104629517, -0.3474397659301758, -0.32426053285598755, 0.09537973254919052, 0.15616892278194427, 0.03912096470594406, 0.0027885297313332558, 0.09059732407331467, 0.0016485597006976604, -0.005602523218840361, -0.038849636912345886, 0.0010587109718471766, -0.06858610361814499, 0.3693790137767792, 0.16960614919662476, 0.3322426378726959, 0.010456896387040615, 0.4449983537197113, 0.39844292402267456, -0.07358228415250778, -0.11300903558731079, 0.41049322485923767, 0.34180179238319397, 0.2031652182340622, -0.14582252502441406, -0.23186536133289337, 0.4618140161037445, -0.0998101606965065, -0.030407754704356194, 0.2845415771007538, -0.022318391129374504, -0.5936280488967896, -0.2309834063053131, -0.0808485597372055, -0.44454649090766907, -0.19343021512031555, 0.3490702211856842, -0.13693147897720337, 0.47245705127716064, 0.17477956414222717, -0.5142974853515625, -0.27790969610214233, -0.08629491180181503, 0.062266211956739426, 0.046765413135290146, 0.23081055283546448, 0.07125134766101837, -0.38006070256233215, -0.08878620713949203, 0.0941290631890297, 0.08369345217943192, 0.22389353811740875, 0.2547120749950409, -0.1767907738685608, -0.12743796408176422, 0.03431849554181099, 0.11261210590600967, 0.10101483762264252, -0.30758076906204224, -0.4294196367263794, 0.13116702437400818, 0.06978914886713028, -0.23177097737789154, -0.049864333122968674, -0.148851677775383, -0.005981393624097109, 0.18503329157829285, 0.24654369056224823, -0.0023719649761915207, -0.14173409342765808, -0.006456676404923201, 0.31722792983055115, 0.04069088026881218, -0.24388688802719116, 0.12231463938951492, 0.1655283272266388, -0.23723118007183075, -0.2288936972618103, -0.1311824917793274, 0.026688074693083763, 0.2431851029396057, 0.11057087033987045, 0.04402150958776474, -0.007771675940603018, 0.11666597425937653, 0.1760060340166092, -0.18601453304290771, 0.016281792894005775, -0.15354925394058228, -0.009497643448412418, 0.20169810950756073, -0.12320512533187866, 0.28990331292152405, 0.1724206656217575, -0.24645733833312988, -0.03424157574772835, -0.20413686335086823, 0.5062909126281738, 0.3987747132778168, 0.5554389953613281, 0.13408726453781128, -0.2353617548942566, -0.10005246847867966, -0.40590018033981323, 0.07845421880483627, 0.1703922003507614, -0.08798211067914963, 0.09282496571540833, -0.2557075023651123, 0.17793014645576477, -0.1484363079071045, -0.24349525570869446, -0.001654025400057435, 0.1146702840924263, -0.31921106576919556, 0.46267786622047424, 0.26785656809806824, 0.9083017110824585, 0.17393726110458374, 0.3773845434188843, 0.0632026419043541, -0.139299675822258, 0.4011538326740265, -0.5117282867431641, 0.19017989933490753, -0.24072480201721191, 0.03618026524782181, 0.02378241717815399, 0.05003288388252258, 0.0928928405046463, 0.1420453041791916, -0.0994795709848404, -0.08329889923334122, 0.6208555102348328, 0.11335839331150055, 0.1424342393875122, 0.23518690466880798, -0.04020414501428604, -0.5092383027076721, -0.059282854199409485, 0.13557901978492737, -0.17568255960941315, -0.22230280935764313, -0.14404425024986267, -0.34203511476516724, 0.0819416269659996, 0.2642243206501007, -0.2147078514099121, -0.0011321419151499867, -0.31605395674705505, 0.17083974182605743, 0.0972711369395256, 0.027449803426861763, 0.4782887101173401, 0.06529564410448074, 0.10304799675941467, -0.16767653822898865, 0.021500078961253166, -0.11214601993560791, 0.10283704102039337, 0.12899988889694214, -0.06453005969524384, -0.2993837594985962, 0.5649160742759705, -0.08502059429883957, -0.23677422106266022, 0.0830475389957428, 0.026579227298498154, -0.06789234280586243, -0.32878896594047546, -0.1408790946006775, 0.3525550365447998, 0.06926989555358887, -0.2042616754770279, 0.33836913108825684, 0.03363964706659317, 0.005678263958543539, 0.15857601165771484, 0.14956669509410858, -0.0072709848172962666, 0.25499245524406433, 0.09071078151464462, 0.09574214369058609, -0.04114694148302078, -0.1602446585893631, -0.17215433716773987, -0.06823433190584183, 0.002059327205643058, -0.03950369730591774, 0.026654373854398727, -0.20976658165454865, 0.4513891637325287, -0.16559389233589172, -0.06786033511161804, -0.21938934922218323, 0.16477707028388977, -0.19182328879833221, -0.19113746285438538, 0.04164876416325569, 0.11022810637950897, 0.01285755168646574, -0.05677618831396103, -0.3587936460971832, -0.022774038836359978, 0.40081271529197693, -0.4294159710407257, -0.058301907032728195, -0.05659822002053261, 0.15040019154548645, -0.013582880608737469, 0.4569167494773865, -0.3693554997444153, -0.06210068240761757, 0.22851267457008362, 0.24095846712589264, -0.07236385345458984, -0.33102577924728394, -0.1456674188375473, 0.08433138579130173, 0.14106406271457672, 0.16944025456905365, -0.275130957365036, -0.16777946054935455, -0.07563764601945877, 0.1569443941116333, 0.2780584394931793, 0.09474202245473862, -0.08447728306055069, -0.33653464913368225, -0.14364145696163177, -0.1429383009672165, -0.32423192262649536, -0.14539510011672974, -0.20796871185302734, 0.42228519916534424, -0.6543205976486206, 0.2695189416408539, 0.2933259606361389, 0.09659767895936966, -0.12450695782899857, 0.35235652327537537, 0.25502413511276245, 0.0950307697057724, 0.08719702064990997, 0.10928225517272949, -0.28757309913635254, 0.26590433716773987, -0.15450069308280945, 0.0013406591024249792, 0.3109217882156372, 0.40306398272514343, 0.1597547084093094, -0.06661177426576614, 0.1476004272699356, -0.17238283157348633, -0.2406177967786789, 0.015078102238476276, 0.36152783036231995, 0.2620093822479248, -0.20344103872776031, 0.08389316499233246, 0.5660725831985474, -0.16361375153064728, 0.18824845552444458, 0.14679987728595734, 0.8290467262268066, 0.21138882637023926, 0.15853720903396606, -0.3222101926803589, 0.03156530112028122, -0.14683914184570312, -0.08657626062631607, -0.045918505638837814, 0.18194517493247986, 0.07934379577636719, 0.06892110407352448, 0.28309130668640137, 0.48013556003570557, 0.38314300775527954, -0.34673041105270386, 0.14105623960494995, -0.07985404133796692, 0.1351422369480133, 0.5679849982261658, -0.09497207403182983, 0.2906672954559326, 0.12865455448627472, 0.13389545679092407, 0.19713100790977478, -0.3649287819862366, 0.15649063885211945, -0.0954354926943779, -0.09011854976415634, -0.024757660925388336, 0.2911926209926605, 0.15422815084457397, -0.0017623122548684478, -0.37245073914527893, -0.03930394724011421, -0.46419811248779297, 0.007182274479418993, -0.0693768784403801, 0.006461106240749359, 0.0373954102396965, 0.22874456644058228, 0.12941031157970428, -0.15672940015792847, 0.19978727400302887, 0.2505199611186981, 0.42165517807006836, -0.23811942338943481, 0.046904560178518295, 0.034218981862068176, 0.08216260373592377, 0.11365386098623276, 0.13887600600719452, -0.02558146044611931, 0.03803081810474396, -0.38683760166168213, -0.06029351055622101, -0.37899526953697205, -0.022344475612044334, -0.14588563144207, 0.043168723583221436, 0.14389784634113312, 0.3281208872795105, 0.35922008752822876, 0.07851474732160568, -0.1413397490978241, 0.04558705911040306, 0.054798830300569534, -0.2489263117313385, -0.3126659393310547, -0.09545306116342545, 0.17730218172073364, 0.03050382249057293, -0.023134101182222366, 0.03708590939640999, -0.2534481883049011, -0.40802133083343506, 0.4324474632740021, -0.10378631204366684, -0.0051231286488473415, -0.07829635590314865, 0.07439963519573212, -0.1761176735162735, -0.036730848252773285, 0.4093003571033478, 0.10285015404224396, 0.12965235114097595, -0.19556057453155518, -0.2923831641674042, -0.024753564968705177, 0.10403258353471756, -0.44621607661247253, -0.06454336643218994, 0.28293225169181824, 0.35475629568099976, 0.34759196639060974, -0.26406434178352356, 0.14053411781787872, 0.2678467929363251, -0.222752183675766, -0.1304282248020172, 0.17787542939186096, -0.10760572552680969, 0.2173902988433838, -0.12893323600292206, 0.04391796886920929, -0.08149626851081848, -0.13112711906433105, 0.08348485082387924, -0.4303362965583801, -0.13384202122688293, -0.0598372220993042, 0.28615596890449524, 0.39718231558799744, 0.17493927478790283, 0.004467450547963381, 0.03697853907942772, -0.307625949382782, -0.11685086041688919, -0.07472449541091919, -0.07885705679655075, -0.05538677051663399, -0.09850014746189117, 0.7773545980453491, -0.2862609922885895, 0.16906890273094177, -0.024455616250634193, 0.23678958415985107, -0.045065004378557205, -0.24279193580150604, -0.05080610141158104, 0.03194332867860794, -0.1385505348443985, -0.06908567249774933, 0.10783404856920242, 0.4174988865852356, 0.037569012492895126, -0.15753115713596344, -0.05314415693283081, -0.14852404594421387, -0.046227335929870605, -0.2435234785079956, -0.2073340266942978, 0.28688183426856995, 0.051574431359767914, -0.1594630628824234, 0.3107653856277466, -0.43799808621406555, -0.23906880617141724, 0.33726951479911804, 0.06926397234201431, 0.09162470698356628, 0.30002275109291077, 0.2653146982192993, -0.3702753186225891, -0.17167961597442627, -0.24945776164531708, -0.2490815669298172, -0.11871698498725891, -0.12531235814094543, -0.12937353551387787 ]
https://github.com/huggingface/datasets/issues/263
[Feature request] Support for external modality for language datasets
I saw the Mozilla common_voice dataset in model hub, which has mp3 audio recordings as part it. It's use predominantly maybe in ASR and TTS, but dataset is a Language + Voice Dataset similar to @aleSuglia's point about Language + Vision. https://huggingface.co/datasets/common_voice
# Background In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data. # Language + Vision ## Use case Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset. Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features. For all these types of features, people use one of the following formats: 1. [HD5F](https://pypi.org/project/h5py/) 2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html) 3. [LMDB](https://lmdb.readthedocs.io/en/release/) ## Implementation considerations I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following: 1. Download dataset 2. Download images associated with the dataset 3. Write a script that generates the visual features for every image and store them in a specific file 4. Create a DataLoader that maps the visual features to the corresponding language example In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it. For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array. Looking forward to hearing your thoughts about it!
42
[Feature request] Support for external modality for language datasets # Background In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data. # Language + Vision ## Use case Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset. Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features. For all these types of features, people use one of the following formats: 1. [HD5F](https://pypi.org/project/h5py/) 2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html) 3. [LMDB](https://lmdb.readthedocs.io/en/release/) ## Implementation considerations I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following: 1. Download dataset 2. Download images associated with the dataset 3. Write a script that generates the visual features for every image and store them in a specific file 4. Create a DataLoader that maps the visual features to the corresponding language example In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it. For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array. Looking forward to hearing your thoughts about it! I saw the Mozilla common_voice dataset in model hub, which has mp3 audio recordings as part it. It's use predominantly maybe in ASR and TTS, but dataset is a Language + Voice Dataset similar to @aleSuglia's point about Language + Vision. https://huggingface.co/datasets/common_voice
[ 0.000057335062592756, -0.14250022172927856, -0.10484325885772705, -0.11375923454761505, -0.02086443267762661, -0.27573004364967346, 0.3570462763309479, 0.16198933124542236, -0.17019514739513397, -0.11541043967008591, -0.10624029487371445, 0.37419697642326355, -0.2327694296836853, 0.0247862059623003, 0.22765766084194183, -0.16313816606998444, 0.11561087518930435, 0.020651061087846756, 0.17515620589256287, 0.03774222731590271, -0.08029604703187943, -0.18629911541938782, -0.0996892899274826, 0.015809006989002228, -0.15434448421001434, -0.006552880629897118, -0.23252809047698975, -0.06639564782381058, 0.017445562407374382, -0.15673185884952545, -0.41686126589775085, 0.1775115728378296, -0.006495947018265724, -0.05871245637536049, -0.00010538899368839338, 0.04106495901942253, 0.05086600035429001, -0.15447981655597687, -0.06360607594251633, -0.2922307252883911, -0.1718057096004486, -0.5856845378875732, -0.00518428161740303, -0.21386712789535522, 0.16897660493850708, -0.26110216975212097, 0.3033660650253296, -0.015454738400876522, 0.21995747089385986, 0.042448293417692184, 0.2338734120130539, 0.161965474486351, 0.057098180055618286, 0.31448379158973694, 0.17907898128032684, 0.7218418121337891, -0.17565025389194489, -0.026227952912449837, 0.3759557902812958, -0.1980060338973999, -0.17143107950687408, 0.5319557785987854, 0.07072699815034866, -0.17268803715705872, 0.10479635745286942, -0.15542210638523102, -0.07425466179847717, -0.18622666597366333, -0.1826821118593216, 0.26961877942085266, 0.5540596842765808, -0.0946793183684349, -0.3956737816333771, -0.27716949582099915, 0.10153611749410629, 0.21204398572444916, -0.1491226702928543, 0.4695764482021332, -0.08470464497804642, 0.2618878483772278, -0.1411740481853485, -0.4172474443912506, -0.22692765295505524, 0.4005020260810852, -0.010741088539361954, -0.11447335034608841, 0.11392739415168762, 0.1064261868596077, 0.1271231323480606, -0.13947534561157227, 0.24053429067134857, -0.0852414071559906, 0.19741685688495636, 0.1384703665971756, 0.11991780251264572, -0.14774395525455475, 0.09294053912162781, -0.0756630226969719, 0.10103746503591537, -0.1379876583814621, 0.014192512258887291, 0.165217787027359, -0.6861981153488159, 0.37200018763542175, 0.13847503066062927, -0.3171006441116333, -0.3466368317604065, 0.1551722288131714, 0.2985228896141052, -0.05795958265662193, -0.026865679770708084, -0.03786740452051163, 0.016913067549467087, 0.04408807307481766, -0.32684484124183655, 0.00009428920020582154, 0.10693494230508804, -0.015392174012959003, -0.09738080948591232, -0.29253873229026794, -0.24316498637199402, 0.05811227485537529, -0.026100415736436844, -0.07544048875570297, 0.23163259029388428, 0.2951602041721344, -0.010325917974114418, 0.2380755990743637, 0.005102277733385563, -0.6885833740234375, 0.0688786581158638, 0.08224178850650787, -0.45074307918548584, 0.11295711249113083, 0.019686125218868256, 0.576987624168396, 0.10568466782569885, 0.022471152245998383, 0.0795074924826622, -0.058927372097969055, 0.11541976779699326, -0.3274693191051483, 0.09448657184839249, 0.014610162936151028, -0.3158084750175476, -0.2822076678276062, -0.0010032616555690765, 0.2286929488182068, -0.1930287629365921, -0.0952015146613121, 0.0137522853910923, -0.20002105832099915, -0.1908561885356903, 0.12177527695894241, -0.07179059088230133, 0.039787448942661285, 0.31237679719924927, 0.9068837761878967, -0.3320867121219635, -0.4840669333934784, -0.037231460213661194, -0.03652598336338997, -0.3246374726295471, -0.153009295463562, -0.10833124816417694, 0.2535993456840515, -0.42064598202705383, -0.14578956365585327, 0.02145637571811676, -0.07829174399375916, -0.07302715629339218, 0.2533954679965973, -0.30217698216438293, -0.061936184763908386, 0.0733146220445633, -0.143929585814476, 0.42248696088790894, -0.29670795798301697, -0.21420562267303467, 0.19423335790634155, 0.04232393950223923, 0.25263112783432007, -0.04389001056551933, 0.39999741315841675, -0.018887057900428772, -0.13815021514892578, 0.12124067544937134, 0.711315393447876, -0.15096816420555115, 0.05194573104381561, -0.19383014738559723, -0.3600862920284271, 0.26589277386665344, 0.4229556918144226, 0.013050029054284096, -0.32058054208755493, 0.6397947669029236, -0.0006160865887068212, 0.10155666619539261, -0.2774524390697479, 0.12146112322807312, -0.19341152906417847, 0.293717622756958, -0.05628759041428566, -0.14273028075695038, -0.27559998631477356, -0.22721721231937408, 0.0019214614294469357, -0.2704660892486572, 0.2816791832447052, -0.1663464903831482, -0.0009558562887832522, 0.20897838473320007, -0.1393233835697174, 0.09564175456762314, 0.004168800078332424, 0.20372053980827332, 0.10114090144634247, -0.416917622089386, 0.2500484585762024, -0.09020788967609406, 0.025192346423864365, -0.09754301607608795, 0.038837846368551254, 0.18151548504829407, 0.25944238901138306, 0.01380185317248106, 0.1161566898226738, 0.09846033900976181, 0.5246052742004395, -0.22382543981075287, 0.03673645481467247, 0.032195430248975754, -0.0006300081149674952, 0.19920092821121216, 0.4802197217941284, -0.013226521201431751, 0.3972020745277405, 0.48091375827789307, -0.676246166229248, 0.34888890385627747, -0.16103698313236237, 0.24483942985534668, -0.1503300666809082, -0.04259403049945831, 0.2094169408082962, 0.24884048104286194, 0.08534600585699081, -0.0793132409453392, 0.06880927085876465, 0.08538880199193954, 0.047176070511341095, -0.33720511198043823, -0.16118621826171875, -0.055051468312740326, 0.19434958696365356, 0.00493220891803503, 0.037656791508197784, -0.38167908787727356, 0.14591827988624573, 0.5345169305801392, 0.2316180318593979, 0.17994537949562073, 0.1668640673160553, -0.20882368087768555, -0.3059067130088806, 0.2450825423002243, -0.2178821712732315, 0.07306045293807983, 0.2838119864463806, -0.22414420545101166, 0.06247900426387787, -0.21292644739151, 0.01689920946955681, 0.15207518637180328, 0.06433813273906708, 0.4003799855709076, 0.058144230395555496, 0.3798508942127228, 0.05604428052902222, -0.0656491294503212, -0.420152485370636, -0.022112973034381866, -0.2725446820259094, 0.17469938099384308, -0.009488334879279137, -0.18936538696289062, -0.6152865290641785, -0.18430876731872559, -0.0398297943174839, -0.4452587366104126, -0.0595039464533329, 0.0666307881474495, -0.28525617718696594, -0.17061515152454376, 0.07512401789426804, 0.00539984880015254, 0.37855151295661926, -0.36183956265449524, -0.09957021474838257, 0.1389789581298828, -0.2604553997516632, -0.15464714169502258, 0.08434530347585678, 0.4543460011482239, 0.06109648570418358, 0.24025371670722961, 0.2454441636800766, -0.04769605025649071, -0.1330876499414444, -0.43275874853134155, 0.2702726125717163, 0.057876791805028915, 0.18861307203769684, -0.0020112914498895407, -0.566367506980896, 0.09092457592487335, -0.0657486692070961, 0.2020866721868515, 0.0889277458190918, -0.004245708230882883, -0.06646228581666946, -0.04169391840696335, 0.12432932108640671, -0.2534281015396118, 0.09377005696296692, -0.492343008518219, -0.5119808912277222, 0.38410183787345886, -0.14364102482795715, 0.1656598448753357, 0.5681462287902832, 0.09953836351633072, -0.09538739919662476, -0.01726977340877056, 0.27121081948280334, 0.030044693499803543, 0.35573866963386536, -0.059646230190992355, -0.00017079783719964325, -0.18747904896736145, -0.28811371326446533, -0.2174287587404251, 0.11924504488706589, 0.34939438104629517, -0.3474397659301758, -0.32426053285598755, 0.09537973254919052, 0.15616892278194427, 0.03912096470594406, 0.0027885297313332558, 0.09059732407331467, 0.0016485597006976604, -0.005602523218840361, -0.038849636912345886, 0.0010587109718471766, -0.06858610361814499, 0.3693790137767792, 0.16960614919662476, 0.3322426378726959, 0.010456896387040615, 0.4449983537197113, 0.39844292402267456, -0.07358228415250778, -0.11300903558731079, 0.41049322485923767, 0.34180179238319397, 0.2031652182340622, -0.14582252502441406, -0.23186536133289337, 0.4618140161037445, -0.0998101606965065, -0.030407754704356194, 0.2845415771007538, -0.022318391129374504, -0.5936280488967896, -0.2309834063053131, -0.0808485597372055, -0.44454649090766907, -0.19343021512031555, 0.3490702211856842, -0.13693147897720337, 0.47245705127716064, 0.17477956414222717, -0.5142974853515625, -0.27790969610214233, -0.08629491180181503, 0.062266211956739426, 0.046765413135290146, 0.23081055283546448, 0.07125134766101837, -0.38006070256233215, -0.08878620713949203, 0.0941290631890297, 0.08369345217943192, 0.22389353811740875, 0.2547120749950409, -0.1767907738685608, -0.12743796408176422, 0.03431849554181099, 0.11261210590600967, 0.10101483762264252, -0.30758076906204224, -0.4294196367263794, 0.13116702437400818, 0.06978914886713028, -0.23177097737789154, -0.049864333122968674, -0.148851677775383, -0.005981393624097109, 0.18503329157829285, 0.24654369056224823, -0.0023719649761915207, -0.14173409342765808, -0.006456676404923201, 0.31722792983055115, 0.04069088026881218, -0.24388688802719116, 0.12231463938951492, 0.1655283272266388, -0.23723118007183075, -0.2288936972618103, -0.1311824917793274, 0.026688074693083763, 0.2431851029396057, 0.11057087033987045, 0.04402150958776474, -0.007771675940603018, 0.11666597425937653, 0.1760060340166092, -0.18601453304290771, 0.016281792894005775, -0.15354925394058228, -0.009497643448412418, 0.20169810950756073, -0.12320512533187866, 0.28990331292152405, 0.1724206656217575, -0.24645733833312988, -0.03424157574772835, -0.20413686335086823, 0.5062909126281738, 0.3987747132778168, 0.5554389953613281, 0.13408726453781128, -0.2353617548942566, -0.10005246847867966, -0.40590018033981323, 0.07845421880483627, 0.1703922003507614, -0.08798211067914963, 0.09282496571540833, -0.2557075023651123, 0.17793014645576477, -0.1484363079071045, -0.24349525570869446, -0.001654025400057435, 0.1146702840924263, -0.31921106576919556, 0.46267786622047424, 0.26785656809806824, 0.9083017110824585, 0.17393726110458374, 0.3773845434188843, 0.0632026419043541, -0.139299675822258, 0.4011538326740265, -0.5117282867431641, 0.19017989933490753, -0.24072480201721191, 0.03618026524782181, 0.02378241717815399, 0.05003288388252258, 0.0928928405046463, 0.1420453041791916, -0.0994795709848404, -0.08329889923334122, 0.6208555102348328, 0.11335839331150055, 0.1424342393875122, 0.23518690466880798, -0.04020414501428604, -0.5092383027076721, -0.059282854199409485, 0.13557901978492737, -0.17568255960941315, -0.22230280935764313, -0.14404425024986267, -0.34203511476516724, 0.0819416269659996, 0.2642243206501007, -0.2147078514099121, -0.0011321419151499867, -0.31605395674705505, 0.17083974182605743, 0.0972711369395256, 0.027449803426861763, 0.4782887101173401, 0.06529564410448074, 0.10304799675941467, -0.16767653822898865, 0.021500078961253166, -0.11214601993560791, 0.10283704102039337, 0.12899988889694214, -0.06453005969524384, -0.2993837594985962, 0.5649160742759705, -0.08502059429883957, -0.23677422106266022, 0.0830475389957428, 0.026579227298498154, -0.06789234280586243, -0.32878896594047546, -0.1408790946006775, 0.3525550365447998, 0.06926989555358887, -0.2042616754770279, 0.33836913108825684, 0.03363964706659317, 0.005678263958543539, 0.15857601165771484, 0.14956669509410858, -0.0072709848172962666, 0.25499245524406433, 0.09071078151464462, 0.09574214369058609, -0.04114694148302078, -0.1602446585893631, -0.17215433716773987, -0.06823433190584183, 0.002059327205643058, -0.03950369730591774, 0.026654373854398727, -0.20976658165454865, 0.4513891637325287, -0.16559389233589172, -0.06786033511161804, -0.21938934922218323, 0.16477707028388977, -0.19182328879833221, -0.19113746285438538, 0.04164876416325569, 0.11022810637950897, 0.01285755168646574, -0.05677618831396103, -0.3587936460971832, -0.022774038836359978, 0.40081271529197693, -0.4294159710407257, -0.058301907032728195, -0.05659822002053261, 0.15040019154548645, -0.013582880608737469, 0.4569167494773865, -0.3693554997444153, -0.06210068240761757, 0.22851267457008362, 0.24095846712589264, -0.07236385345458984, -0.33102577924728394, -0.1456674188375473, 0.08433138579130173, 0.14106406271457672, 0.16944025456905365, -0.275130957365036, -0.16777946054935455, -0.07563764601945877, 0.1569443941116333, 0.2780584394931793, 0.09474202245473862, -0.08447728306055069, -0.33653464913368225, -0.14364145696163177, -0.1429383009672165, -0.32423192262649536, -0.14539510011672974, -0.20796871185302734, 0.42228519916534424, -0.6543205976486206, 0.2695189416408539, 0.2933259606361389, 0.09659767895936966, -0.12450695782899857, 0.35235652327537537, 0.25502413511276245, 0.0950307697057724, 0.08719702064990997, 0.10928225517272949, -0.28757309913635254, 0.26590433716773987, -0.15450069308280945, 0.0013406591024249792, 0.3109217882156372, 0.40306398272514343, 0.1597547084093094, -0.06661177426576614, 0.1476004272699356, -0.17238283157348633, -0.2406177967786789, 0.015078102238476276, 0.36152783036231995, 0.2620093822479248, -0.20344103872776031, 0.08389316499233246, 0.5660725831985474, -0.16361375153064728, 0.18824845552444458, 0.14679987728595734, 0.8290467262268066, 0.21138882637023926, 0.15853720903396606, -0.3222101926803589, 0.03156530112028122, -0.14683914184570312, -0.08657626062631607, -0.045918505638837814, 0.18194517493247986, 0.07934379577636719, 0.06892110407352448, 0.28309130668640137, 0.48013556003570557, 0.38314300775527954, -0.34673041105270386, 0.14105623960494995, -0.07985404133796692, 0.1351422369480133, 0.5679849982261658, -0.09497207403182983, 0.2906672954559326, 0.12865455448627472, 0.13389545679092407, 0.19713100790977478, -0.3649287819862366, 0.15649063885211945, -0.0954354926943779, -0.09011854976415634, -0.024757660925388336, 0.2911926209926605, 0.15422815084457397, -0.0017623122548684478, -0.37245073914527893, -0.03930394724011421, -0.46419811248779297, 0.007182274479418993, -0.0693768784403801, 0.006461106240749359, 0.0373954102396965, 0.22874456644058228, 0.12941031157970428, -0.15672940015792847, 0.19978727400302887, 0.2505199611186981, 0.42165517807006836, -0.23811942338943481, 0.046904560178518295, 0.034218981862068176, 0.08216260373592377, 0.11365386098623276, 0.13887600600719452, -0.02558146044611931, 0.03803081810474396, -0.38683760166168213, -0.06029351055622101, -0.37899526953697205, -0.022344475612044334, -0.14588563144207, 0.043168723583221436, 0.14389784634113312, 0.3281208872795105, 0.35922008752822876, 0.07851474732160568, -0.1413397490978241, 0.04558705911040306, 0.054798830300569534, -0.2489263117313385, -0.3126659393310547, -0.09545306116342545, 0.17730218172073364, 0.03050382249057293, -0.023134101182222366, 0.03708590939640999, -0.2534481883049011, -0.40802133083343506, 0.4324474632740021, -0.10378631204366684, -0.0051231286488473415, -0.07829635590314865, 0.07439963519573212, -0.1761176735162735, -0.036730848252773285, 0.4093003571033478, 0.10285015404224396, 0.12965235114097595, -0.19556057453155518, -0.2923831641674042, -0.024753564968705177, 0.10403258353471756, -0.44621607661247253, -0.06454336643218994, 0.28293225169181824, 0.35475629568099976, 0.34759196639060974, -0.26406434178352356, 0.14053411781787872, 0.2678467929363251, -0.222752183675766, -0.1304282248020172, 0.17787542939186096, -0.10760572552680969, 0.2173902988433838, -0.12893323600292206, 0.04391796886920929, -0.08149626851081848, -0.13112711906433105, 0.08348485082387924, -0.4303362965583801, -0.13384202122688293, -0.0598372220993042, 0.28615596890449524, 0.39718231558799744, 0.17493927478790283, 0.004467450547963381, 0.03697853907942772, -0.307625949382782, -0.11685086041688919, -0.07472449541091919, -0.07885705679655075, -0.05538677051663399, -0.09850014746189117, 0.7773545980453491, -0.2862609922885895, 0.16906890273094177, -0.024455616250634193, 0.23678958415985107, -0.045065004378557205, -0.24279193580150604, -0.05080610141158104, 0.03194332867860794, -0.1385505348443985, -0.06908567249774933, 0.10783404856920242, 0.4174988865852356, 0.037569012492895126, -0.15753115713596344, -0.05314415693283081, -0.14852404594421387, -0.046227335929870605, -0.2435234785079956, -0.2073340266942978, 0.28688183426856995, 0.051574431359767914, -0.1594630628824234, 0.3107653856277466, -0.43799808621406555, -0.23906880617141724, 0.33726951479911804, 0.06926397234201431, 0.09162470698356628, 0.30002275109291077, 0.2653146982192993, -0.3702753186225891, -0.17167961597442627, -0.24945776164531708, -0.2490815669298172, -0.11871698498725891, -0.12531235814094543, -0.12937353551387787 ]
https://github.com/huggingface/datasets/issues/261
Downloading dataset error with pyarrow.lib.RecordBatch
When you install `nlp` for the first time on a Colab runtime, it updates the `pyarrow` library that was already on colab. This update shows this message on colab: ``` WARNING: The following packages were previously imported in this runtime: [pyarrow] You must restart the runtime in order to use newly installed versions. ``` You just have to restart the runtime and it should be fine. If you don't restart, then it breaks like in your message.
I am trying to download `sentiment140` and I have the following error ``` /usr/local/lib/python3.6/dist-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 /usr/local/lib/python3.6/dist-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 /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 472 try: 473 # Prepare split will record examples associated to the split --> 474 self._prepare_split(split_generator, **prepare_split_kwargs) 475 except OSError: 476 raise OSError("Cannot find data file. " + (self.MANUAL_DOWNLOAD_INSTRUCTIONS or "")) /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _prepare_split(self, split_generator) 652 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False): 653 example = self.info.features.encode_example(record) --> 654 writer.write(example) 655 num_examples, num_bytes = writer.finalize() 656 /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write(self, example, writer_batch_size) 143 self._build_writer(pa_table=pa.Table.from_pydict(example)) 144 if writer_batch_size is not None and len(self.current_rows) >= writer_batch_size: --> 145 self.write_on_file() 146 147 def write_batch( /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_on_file(self) 127 else: 128 # All good --> 129 self._write_array_on_file(pa_array) 130 self.current_rows = [] 131 /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in _write_array_on_file(self, pa_array) 96 def _write_array_on_file(self, pa_array): 97 """Write a PyArrow Array""" ---> 98 pa_batch = pa.RecordBatch.from_struct_array(pa_array) 99 self._num_bytes += pa_array.nbytes 100 self.pa_writer.write_batch(pa_batch) AttributeError: type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array' ``` I installed the last version and ran the following command: ```python import nlp sentiment140 = nlp.load_dataset('sentiment140', cache_dir='/content') ```
77
Downloading dataset error with pyarrow.lib.RecordBatch I am trying to download `sentiment140` and I have the following error ``` /usr/local/lib/python3.6/dist-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 /usr/local/lib/python3.6/dist-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 /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 472 try: 473 # Prepare split will record examples associated to the split --> 474 self._prepare_split(split_generator, **prepare_split_kwargs) 475 except OSError: 476 raise OSError("Cannot find data file. " + (self.MANUAL_DOWNLOAD_INSTRUCTIONS or "")) /usr/local/lib/python3.6/dist-packages/nlp/builder.py in _prepare_split(self, split_generator) 652 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False): 653 example = self.info.features.encode_example(record) --> 654 writer.write(example) 655 num_examples, num_bytes = writer.finalize() 656 /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write(self, example, writer_batch_size) 143 self._build_writer(pa_table=pa.Table.from_pydict(example)) 144 if writer_batch_size is not None and len(self.current_rows) >= writer_batch_size: --> 145 self.write_on_file() 146 147 def write_batch( /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_on_file(self) 127 else: 128 # All good --> 129 self._write_array_on_file(pa_array) 130 self.current_rows = [] 131 /usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in _write_array_on_file(self, pa_array) 96 def _write_array_on_file(self, pa_array): 97 """Write a PyArrow Array""" ---> 98 pa_batch = pa.RecordBatch.from_struct_array(pa_array) 99 self._num_bytes += pa_array.nbytes 100 self.pa_writer.write_batch(pa_batch) AttributeError: type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array' ``` I installed the last version and ran the following command: ```python import nlp sentiment140 = nlp.load_dataset('sentiment140', cache_dir='/content') ``` When you install `nlp` for the first time on a Colab runtime, it updates the `pyarrow` library that was already on colab. This update shows this message on colab: ``` WARNING: The following packages were previously imported in this runtime: [pyarrow] You must restart the runtime in order to use newly installed versions. ``` You just have to restart the runtime and it should be fine. If you don't restart, then it breaks like in your message.
[ -0.48920780420303345, 0.3927333652973175, -0.027126828208565712, 0.13677683472633362, 0.14856109023094177, 0.11732220649719238, 0.27043938636779785, 0.5356114506721497, 0.06116560101509094, -0.1925094872713089, -0.12850883603096008, -0.07269550114870071, -0.06045980751514435, 0.043556176126003265, 0.1996949166059494, -0.3966560959815979, -0.03506910800933838, 0.3276587426662445, 0.15104933083057404, 0.16372542083263397, -0.17248299717903137, 0.14923696219921112, -0.35935869812965393, 0.14447566866874695, -0.3186698257923126, -0.3128398358821869, -0.118332140147686, 0.10847342014312744, -0.38392239809036255, -0.4500908851623535, 0.33584216237068176, 0.05783235654234886, 0.39326077699661255, 0.26505929231643677, -0.00011744799121515825, 0.11161703616380692, 0.19057640433311462, -0.19770710170269012, -0.4337587058544159, -0.4006904065608978, -0.044171761721372604, -0.2302587479352951, 0.001539503107778728, -0.22278271615505219, 0.19085738062858582, -0.4440508782863617, 0.10074087977409363, 0.2061419039964676, 0.2961958050727844, 0.39374446868896484, 0.1861063838005066, 0.36950811743736267, 0.324990838766098, -0.16963814198970795, 0.4855349659919739, 0.194149911403656, -0.09957680106163025, 0.48990103602409363, 0.08046261221170425, -0.16946710646152496, -0.058759257197380066, 0.12253253161907196, -0.2555663585662842, 0.3563006818294525, -0.010296601802110672, 0.14731577038764954, 0.2881263196468353, -0.12100256234407425, 0.15993613004684448, 0.19333647191524506, 0.6528941988945007, -0.36354243755340576, -0.3038647472858429, 0.005465381778776646, 0.21099556982517242, -0.35211658477783203, 0.03749917075037956, 0.4439188838005066, -0.5277146100997925, 0.10566695034503937, -0.3487097918987274, -0.09626255184412003, -0.08070839941501617, 0.31845906376838684, -0.023747850209474564, -0.0340934582054615, -0.0054720314219594, 0.1258227825164795, 0.07786673307418823, 0.07930513471364975, 0.43590274453163147, 0.020799603313207626, -0.10233399271965027, 0.18005415797233582, -0.2871755361557007, 0.10981794446706772, -0.122194804251194, 0.2700812518596649, 0.2193375527858734, -0.05378230661153793, 0.13389891386032104, -0.16523277759552002, 0.2458825707435608, 0.11962418258190155, 0.18689487874507904, 0.28880980610847473, -0.14296995103359222, -0.2260620892047882, 0.08291824907064438, 0.09142943471670151, 0.1849023401737213, -0.08143948018550873, -0.08128395676612854, -0.32622969150543213, 0.29959362745285034, -0.010332814417779446, 0.267647922039032, -0.11574039608240128, -0.4714718163013458, -0.08964255452156067, -0.2914102077484131, -0.1754259467124939, 0.09083124995231628, 0.3734005093574524, -0.1583029329776764, -0.03751856088638306, 0.04794778674840927, 0.22709569334983826, -0.17740091681480408, -0.18542009592056274, -0.1569814532995224, 0.05675049126148224, -0.28407204151153564, -0.10207745432853699, 0.3571460545063019, 0.19621716439723969, 0.44317522644996643, 0.05732658505439758, -0.09201472252607346, 0.09069810807704926, 0.16813495755195618, -0.20381958782672882, 0.00995245948433876, 0.40293964743614197, 0.1610419899225235, -0.008135213516652584, 0.05793295055627823, -0.0021745949052274227, -0.08430688083171844, 0.22674770653247833, 0.03059961274266243, -0.3220888078212738, -0.1997629851102829, 0.12545950710773468, -0.2575143873691559, -0.09709470719099045, -0.2935257852077484, -0.12291468679904938, 0.06953205913305283, -0.2298915684223175, -0.16568396985530853, -0.2550080418586731, -0.013439605943858624, -0.3429096043109894, 0.28891539573669434, 0.19613447785377502, -0.5239380598068237, -0.06063035503029823, -0.25068148970603943, -0.18616892397403717, 0.3700198531150818, 0.12994666397571564, -0.3432069718837738, 0.5634212493896484, -0.23464976251125336, 0.30711978673934937, 0.6222027540206909, -0.2878483831882477, -0.7235477566719055, 0.27456116676330566, -0.186756893992424, -0.0905466377735138, 0.00176253414247185, 0.2890399396419525, 0.28612130880355835, -0.04637588560581207, 0.007355124689638615, 0.24261651933193207, -0.08954224735498428, 0.014512429013848305, -0.2099618762731552, -0.13548722863197327, 0.2433941513299942, 0.2387472242116928, -0.09775515645742416, 0.11145426332950592, 0.045519404113292694, 0.23030295968055725, 0.44037896394729614, 0.04535269737243652, 0.24133193492889404, 0.06033649668097496, 0.19274692237377167, -0.05624895542860031, -0.09807117283344269, -0.0956367775797844, -0.46474823355674744, 0.057583875954151154, -0.46378830075263977, -0.019891558215022087, -0.5254122614860535, -0.23770301043987274, -0.560711145401001, 0.07050079107284546, -0.3272237777709961, -0.03363829478621483, 0.09521150588989258, 0.06527157127857208, 0.1929219365119934, -0.010928727686405182, -0.041010532528162, 0.28271952271461487, 0.16165407001972198, 0.14527899026870728, 0.166736900806427, 0.33779242634773254, -0.2518799901008606, -0.45131316781044006, 0.22205612063407898, 0.22950205206871033, 0.2298683226108551, 0.011824489571154118, -0.0031035819556564093, 0.3668796122074127, -0.1924508959054947, -0.1402219980955124, -0.055509842932224274, -0.4057023525238037, 0.17358379065990448, -0.23174627125263214, 0.1499902755022049, -0.05211210250854492, 0.14243419468402863, 0.05765498802065849, 0.19177334010601044, 0.05001254007220268, -0.15578269958496094, -0.0402873195707798, 0.016780497506260872, 0.2500867247581482, 0.20907112956047058, -0.037902358919382095, 0.35186412930488586, 0.11673050373792648, 0.18620565533638, -0.03365924581885338, 0.38551077246665955, -0.12433895468711853, -0.064796082675457, -0.05991096422076225, 0.4924831986427307, -0.1291567087173462, 0.2608293294906616, 0.029229721054434776, -0.15641023218631744, -0.10481708496809006, 0.06985771656036377, -0.03983176499605179, 0.47772759199142456, 0.21221919357776642, 0.04846592992544174, 0.011449775658547878, -0.11630013585090637, -0.10071486234664917, 0.10457158088684082, 0.12278291583061218, 0.14948196709156036, 0.12621687352657318, 0.12273810058832169, -0.1358020007610321, -0.22302059829235077, -0.2798748016357422, 0.2818373739719391, 0.5004074573516846, -0.23726847767829895, -0.1715022176504135, -0.2075827419757843, -0.16844703257083893, -0.21636033058166504, -0.3563218116760254, -0.07269395142793655, -0.3209790885448456, 0.017965178936719894, 0.12790028750896454, 0.08459285646677017, 0.1943119913339615, -0.01902107708156109, -0.15910696983337402, 0.05223468691110611, -0.20810745656490326, -0.03985706344246864, -0.2335076779127121, -0.34179094433784485, 0.01473176572471857, 0.13012655079364777, 0.11674050986766815, 0.3635319173336029, -0.36421334743499756, 0.008044549264013767, -0.3366519808769226, -0.08634825050830841, 0.1599421203136444, -0.10550303012132645, 0.173945352435112, 0.34992292523384094, 0.563479483127594, -0.3219732940196991, -0.17883947491645813, 0.13709409534931183, -0.013437794521450996, -0.23222464323043823, 0.18214204907417297, -0.08344196528196335, 0.08989957720041275, -0.019161846488714218, -0.4091542661190033, -0.5689956545829773, -0.37644147872924805, 0.1992640197277069, -0.10538844764232635, 0.13561716675758362, 0.11782660335302353, 0.14524705708026886, 0.2287508249282837, -0.06644190847873688, 0.19763807952404022, -0.05141912400722504, -0.24294891953468323, 0.31383106112480164, -0.19900771975517273, -0.34228214621543884, 0.15892615914344788, -0.08463916182518005, 0.150579035282135, 0.30351412296295166, -0.5758482813835144, -0.05742717161774635, -0.032252244651317596, 0.5895150899887085, 0.11977295577526093, 0.03874919191002846, 0.35584017634391785, 0.02275821752846241, -0.0657011941075325, 0.009442396461963654, -0.054516151547431946, 0.036718618124723434, -0.29665860533714294, 0.4122072458267212, -0.08283982425928116, -0.054418064653873444, 0.006092705763876438, 0.8633520603179932, -0.009551582857966423, -0.06443807482719421, 0.34469202160835266, -0.14574973285198212, 0.08650179952383041, 0.020729953423142433, -0.2893953323364258, -0.017618222162127495, -0.13517484068870544, 0.24538345634937286, 0.166914165019989, -0.1340160220861435, -0.19064216315746307, -0.2510349154472351, -0.16370365023612976, -0.3817254602909088, -0.31900349259376526, -0.1672719120979309, 0.3672531843185425, 0.4683559834957123, 0.13463754951953888, 0.11672801524400711, 0.004107427317649126, -0.24496254324913025, 0.11113706976175308, 0.13380470871925354, -0.06933165341615677, 0.21520589292049408, -0.00871069636195898, -0.20162251591682434, -0.3252113461494446, 0.3502573072910309, 0.1555805802345276, 0.3106236755847931, -0.10719235986471176, 0.05702568590641022, 0.03288080915808678, -0.028216898441314697, 0.7746015191078186, 0.10836802423000336, 0.13242560625076294, -0.19347365200519562, 0.22642534971237183, -0.22810928523540497, -0.06884277611970901, -0.12397138774394989, 0.5027514696121216, 0.15995192527770996, 0.06059105694293976, -0.45017653703689575, -0.006993446033447981, 0.5193063020706177, 0.3487822115421295, -0.049077101051807404, -0.354265421628952, -0.2506871819496155, -0.4769189655780792, -0.20185084640979767, 0.010334939695894718, -0.0106585081666708, 0.2906794548034668, 0.055792905390262604, 0.11901780962944031, 0.12480747699737549, 0.13257715106010437, -0.008342733606696129, -0.025583695620298386, 0.2934415638446808, -0.051770929247140884, 0.10461265593767166, 0.1440153568983078, 0.2256678342819214, 0.22765874862670898, 0.38231605291366577, 0.029033392667770386, -0.3141408860683441, -0.008919566869735718, -0.16111795604228973, 0.039492808282375336, 0.16358798742294312, -0.11092215031385422, -0.10152508318424225, 0.27797144651412964, -0.05075002461671829, 0.03973548486828804, 0.16680969297885895, 0.414321631193161, -0.3867514729499817, -0.2249624878168106, -0.17813773453235626, 0.4710516333580017, 0.11227361112833023, 0.10210144519805908, -0.20867343246936798, 0.0267145037651062, 0.021577652543783188, 0.17186015844345093, -0.1007809042930603, 0.886863648891449, 0.010751686058938503, 0.26028692722320557, 0.580855667591095, -0.36650335788726807, 0.22767791152000427, -0.1868797242641449, 0.12048611044883728, -0.2928277552127838, -0.006436439696699381, -0.1172909140586853, -0.11761210113763809, -0.026348961517214775, 0.19642825424671173, -0.2615434527397156, 0.22001126408576965, -0.1568213850259781, -0.046859417110681534, 0.1609894186258316, 0.058977097272872925, -0.1602368950843811, -0.15132617950439453, -0.31594783067703247, 0.045575905591249466, -0.3485881984233856, 0.22276848554611206, -0.18176774680614471, -0.2723866403102875, -0.09107976406812668, -0.0686986893415451, -0.26955121755599976, 0.025184066966176033, -0.3381211757659912, 0.036459680646657944, 0.19158747792243958, -0.27304333448410034, -0.07936178892850876, 0.1309673935174942, 0.14979484677314758, 0.0633746013045311, -0.20678970217704773, 0.1740843504667282, 0.09714080393314362, -0.18935082852840424, 0.19459618628025055, 0.09825778007507324, 0.29226985573768616, -0.12352822721004486, -0.3940224051475525, 0.29474154114723206, -0.13240841031074524, 0.10249646008014679, -0.06471765041351318, -0.05420519411563873, 0.2522406280040741, -0.33721405267715454, -0.10611768066883087, -0.21111008524894714, -0.03212958201766014, -0.2772429883480072, 0.08726039528846741, 0.05194004997611046, -0.2426823526620865, 0.23577538132667542, -0.19994772970676422, -0.2372818887233734, -0.18148142099380493, 0.3651658892631531, -0.04215472936630249, -0.00431117182597518, 0.5533018708229065, 0.3192165791988373, -0.3143990635871887, -0.24411030113697052, -0.2828892171382904, -0.06291865557432175, -0.9106283187866211, 0.1967289000749588, 0.23734444379806519, 0.2654595971107483, -0.0982804000377655, 0.5354986190795898, 0.12930943071842194, -0.10341038554906845, 0.11702971905469894, -0.4300210475921631, -0.3058289587497711, 0.1651003509759903, 0.30790936946868896, 0.1183687373995781, 0.39513930678367615, 0.2511396110057831, 0.21111583709716797, -0.0703602135181427, -0.26070430874824524, -0.0741749033331871, -0.16782498359680176, 0.17733559012413025, -0.21261116862297058, -0.09438230097293854, 0.08208960294723511, 0.10415929555892944, 0.09972141683101654, 0.12108226120471954, -0.07119779288768768, -0.16384005546569824, -0.07920567691326141, 0.15965072810649872, -0.05937937647104263, -0.24331538379192352, 0.17055898904800415, -0.11616163700819016, -0.11386151611804962, 0.1257176250219345, 0.1328076422214508, 0.2116761952638626, 0.01660892367362976, 0.11399684846401215, 0.056795161217451096, -0.06839589774608612, -0.2562175393104553, 0.1302773654460907, -0.0985376238822937, 0.18059223890304565, 0.0665900856256485, 0.29274487495422363, -0.0802246630191803, -0.059701040387153625, -0.06881170719861984, -0.2073366343975067, 0.03620969131588936, -0.2590176463127136, 0.29244092106819153, -0.5262508392333984, -0.005149800330400467, -0.031585048884153366, 0.45305243134498596, 0.05917142331600189, -0.10127079486846924, -0.13705213367938995, 0.26823750138282776, 0.15234968066215515, -0.47673362493515015, 0.009680498391389847, 0.09317384660243988, 0.14186853170394897, -0.01081191934645176, 0.21865493059158325, -0.1074090227484703, -0.11575150489807129, -0.03133353218436241, 0.1795443296432495, 0.34521248936653137, -0.005291290581226349, -0.18989327549934387, 0.5471901297569275, -0.01444409228861332, 0.17631809413433075, 0.23274315893650055, 0.31726059317588806, 0.0170398261398077, 0.33299121260643005, -0.5497564077377319, 0.1368774175643921, -0.17893271148204803, 0.04634491354227066, -0.08187596499919891, -0.3255363404750824, 0.199022114276886, 0.3870963156223297, 0.09408308565616608, -0.09937690943479538, -0.15490734577178955, 0.633202850818634, 0.09304158389568329, 0.20312297344207764, -0.07617499679327011, 0.2235233336687088, -0.17462009191513062, 0.14398488402366638, -0.178545281291008, -0.15318502485752106, -0.20554010570049286, 0.0028449413366615772, -0.10265649110078812, -0.21156449615955353, 0.18800410628318787, 0.23449455201625824, -0.06531356275081635, -0.5137714743614197, 0.2927720844745636, 0.16844826936721802, -0.21324650943279266, -0.2507573068141937, 0.25956082344055176, 0.27520471811294556, -0.16261307895183563, 0.22502373158931732, 0.45636069774627686, 0.43245401978492737, 0.2736491858959198, -0.3166605830192566, -0.10963593423366547, -0.03872079774737358, -0.06933294236660004, -0.06255490332841873, 0.1097138524055481, 0.3515847623348236, 0.4193805456161499, 0.37583327293395996, 0.11254327744245529, -0.08242000639438629, 0.23613134026527405, 0.20100893080234528, -0.10009916126728058, 0.07340354472398758, 0.48800721764564514, -0.2408221960067749, -0.32821592688560486, -0.1292496919631958, -0.011095003224909306, -0.3646896481513977, 0.08409616351127625, 0.13754218816757202, 0.14159661531448364, 0.05545556917786598, -0.19485802948474884, 0.04361845925450325, -0.2801865339279175, 0.49299702048301697, 0.4946090281009674, 0.43329811096191406, -0.46488136053085327, 0.031110156327486038, -0.6018993854522705, 0.2212473601102829, -0.31575194001197815, -0.34984877705574036, 0.08533933758735657, 0.10896745324134827, -0.10488543659448624, 0.36073580384254456, 0.2757778465747833, 0.003931164741516113, -0.017948653548955917, 0.17348970472812653, -0.24041695892810822, -0.18574567139148712, 0.03779267147183418, 0.17272430658340454, -0.06356654316186905, -0.3967818319797516, 0.27333635091781616, -0.17530572414398193, -0.010003285482525826, -0.30562692880630493, -0.39991480112075806, 0.2437000423669815, 0.18939745426177979, 0.11431066691875458, -0.052798330783843994, 0.4787847697734833, 0.10114216059446335, -0.03483692929148674, -0.012419265694916248, 0.15262041985988617, -0.04529580846428871, 0.0007042649085633457, 0.12066700309515, 0.32909733057022095, -0.10678531974554062, 0.30488020181655884, -0.34484317898750305, 0.33870837092399597, 0.04872770980000496, 0.09681842476129532, -0.12379447370767593, -0.009946529753506184, -0.1182355135679245, -0.02956230752170086, 0.1471322923898697, -0.13873672485351562, -0.17169731855392456, 0.09176226705312729, -0.5352001786231995, -0.4105946719646454, 0.5157891511917114, -0.4964686632156372, -0.1994495540857315, 0.06379596143960953, 0.25718989968299866, -0.00011935608927160501, -0.2247726172208786, -0.5702171325683594, 0.2695102095603943, 0.306681364774704, 0.08650510013103485, -0.18993119895458221, 0.12506084144115448, -0.13418634235858917, 0.10827986896038055, 0.1559744030237198, 0.30936434864997864, -0.08180774748325348, -0.3986247181892395, -0.12571598589420319, -0.21069256961345673 ]
https://github.com/huggingface/datasets/issues/259
documentation missing how to split a dataset
this seems to work for my specific problem: `self.train_ds, self.test_ds, self.val_ds = map(_prepare_ds, ('train', 'test[:25%]+test[50%:75%]', 'test[75%:]'))`
I am trying to understand how to split a dataset ( as arrow_dataset). I know I can do something like this to access a split which is already in the original dataset : `ds_test = nlp.load_dataset('imdb, split='test') ` But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)? I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description: > See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information. But the guide seems to be missing. To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this: `ds_test = nlp.load_dataset('imdb, split='test'[:5000]) ` `ds_val = nlp.load_dataset('imdb, split='test'[5000:])` because the imdb test data is sorted by class (probably not a good idea anyway)
16
documentation missing how to split a dataset I am trying to understand how to split a dataset ( as arrow_dataset). I know I can do something like this to access a split which is already in the original dataset : `ds_test = nlp.load_dataset('imdb, split='test') ` But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)? I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description: > See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information. But the guide seems to be missing. To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this: `ds_test = nlp.load_dataset('imdb, split='test'[:5000]) ` `ds_val = nlp.load_dataset('imdb, split='test'[5000:])` because the imdb test data is sorted by class (probably not a good idea anyway) this seems to work for my specific problem: `self.train_ds, self.test_ds, self.val_ds = map(_prepare_ds, ('train', 'test[:25%]+test[50%:75%]', 'test[75%:]'))`
[ -0.01860329695045948, 0.0678197517991066, -0.06753368675708771, 0.17673876881599426, -0.003945660777390003, 0.1862957775592804, 0.4544260799884796, 0.3805294930934906, -0.08497391641139984, 0.00961785577237606, 0.15798087418079376, 0.2981632947921753, -0.1939590722322464, 0.11714692413806915, 0.19690340757369995, -0.37869712710380554, -0.11625222861766815, 0.21967878937721252, 0.22028425335884094, -0.020772434771060944, 0.2683161199092865, -0.08780955523252487, -0.3013998866081238, 0.1289384812116623, -0.3250904381275177, -0.4462779462337494, -0.16248904168605804, -0.056075941771268845, -0.24042780697345734, -0.2245018631219864, 0.23573929071426392, -0.24764931201934814, 0.022950416430830956, 0.2671961486339569, -0.00011698008893290535, 0.08588263392448425, 0.20455464720726013, -0.12312384694814682, -0.06245587021112442, -0.20402570068836212, -0.3563693165779114, -0.09652303904294968, 0.3687443435192108, -0.15157614648342133, -0.016900066286325455, -0.2895178198814392, 0.11565005034208298, -0.12467196583747864, 0.5587254166603088, 0.4705803692340851, 0.09777502715587616, 0.06059220805764198, 0.15095138549804688, 0.07479221373796463, -0.011689786799252033, 0.311874657869339, -0.10744009912014008, 0.07410524040460587, -0.17679770290851593, -0.11088691651821136, -0.13654829561710358, 0.07059776782989502, 0.17533789575099945, 0.2046463042497635, 0.04387512803077698, 0.010682770051062107, -0.3863062262535095, -0.44494742155075073, -0.1725611537694931, 0.5125131011009216, 0.5099632143974304, -0.3127262592315674, -0.31574544310569763, -0.3438544273376465, 0.0373559296131134, -0.21786460280418396, -0.10184093564748764, 0.5787157416343689, -0.12155218422412872, 0.10027401149272919, -0.14389343559741974, -0.19827987253665924, -0.3005862236022949, 0.16990947723388672, 0.035761550068855286, 0.39287352561950684, -0.09283638000488281, 0.09004160761833191, 0.25470802187919617, 0.26491308212280273, 0.21477775275707245, 0.04459470883011818, -0.007796106860041618, 0.3059448301792145, -0.2638329267501831, -0.28980985283851624, -0.1192454919219017, -0.42620089650154114, 0.12044823914766312, 0.2507856488227844, 0.13361217081546783, -0.06224079057574272, -0.1978512704372406, 0.17021140456199646, 0.4436987340450287, 0.23495827615261078, 0.17606571316719055, 0.49382323026657104, 0.0034350953064858913, -0.0556006096303463, 0.004059614147990942, -0.1536649614572525, -0.0026444008108228445, -0.2552219331264496, -0.004801425617188215, 0.11848049610853195, 0.14453351497650146, 0.09705386310815811, -0.2874816358089447, -0.327271044254303, -0.3107087314128876, -0.14245785772800446, 0.13995787501335144, 0.1261717975139618, 0.05062348023056984, -0.07497606426477432, -0.3134501278400421, 0.24432356655597687, -0.3853573501110077, -0.15056197345256805, -0.1096620261669159, 0.1972883641719818, -0.4032856225967407, 0.10874875634908676, 0.10177148133516312, 0.007763432338833809, 0.3967721164226532, -0.09830091148614883, 0.006802357267588377, -0.38005927205085754, 0.3235693573951721, -0.006088483612984419, 0.2312980443239212, 0.4229412078857422, 0.16663850843906403, 0.024441804736852646, 0.09215886145830154, 0.1239263117313385, -0.3356701135635376, -0.033138029277324677, -0.3759349584579468, -0.4590527415275574, -0.008535834960639477, 0.028856979683041573, -0.011236419901251793, 0.21264216303825378, -0.2117214947938919, 0.3877965807914734, 0.06553598493337631, -0.0392741858959198, 0.20406466722488403, 0.030932245776057243, -0.18640613555908203, -0.31860941648483276, 0.26201319694519043, -0.03555780276656151, -0.37654492259025574, -0.08409042656421661, -0.3531976044178009, -0.01051481906324625, -0.037544529885053635, 0.16687779128551483, -0.35959959030151367, 0.5219771862030029, -0.0765574499964714, 0.4839738607406616, 0.7543490529060364, -0.24175263941287994, -0.0982302576303482, 0.28664883971214294, 0.1120673269033432, -0.2819012999534607, -0.11413105577230453, -0.04691691696643829, 0.2763124406337738, 0.1434248983860016, -0.32792165875434875, 0.40148916840553284, -0.31334438920021057, -0.16275706887245178, 0.2922532260417938, -0.22284449636936188, 0.23790499567985535, -0.06285355985164642, -0.07858641445636749, -0.2706494629383087, 0.20403563976287842, 0.2698468267917633, 0.46874740719795227, 0.015190418809652328, 0.17628587782382965, 0.18044811487197876, 0.04687840864062309, 0.12267384678125381, -0.10348353534936905, -0.3599659204483032, -0.3674156665802002, -0.03638182953000069, 0.12090203911066055, -0.1167779192328453, 0.013649016618728638, -0.2652078866958618, -0.18703047931194305, -0.15210038423538208, 0.021210674196481705, -0.29050183296203613, 0.05007651075720787, -0.3772898316383362, 0.18677648901939392, -0.10278897732496262, -0.43935060501098633, 0.07196095585823059, -0.17442186176776886, 0.24003422260284424, -0.4450749158859253, 0.10220528393983841, 0.09193655848503113, -0.06680083274841309, 0.0983600839972496, 0.27596738934516907, -0.031930938363075256, -0.11381944268941879, 0.021503081545233727, 0.5539047122001648, 0.5597571134567261, -0.008686814457178116, -0.22205078601837158, 0.021694298833608627, 0.40296927094459534, -0.4507806897163391, 0.14249187707901, -0.0588943287730217, -0.036388006061315536, -0.002012596931308508, -0.44577983021736145, 0.36063358187675476, -0.333240807056427, 0.31460314989089966, 0.1735801249742508, 0.14517593383789062, 0.035445939749479294, -0.19155390560626984, -0.277009516954422, -0.029292525723576546, -0.26913389563560486, -0.3689301609992981, 0.21416807174682617, -0.028261777013540268, -0.15070733428001404, 0.05401484668254852, 0.44561484456062317, -0.201751708984375, 0.18504156172275543, -0.13726887106895447, 0.0644969567656517, -0.014751783572137356, 0.1648787260055542, 0.4185727834701538, 0.2900047302246094, -0.006122699938714504, 0.4006565809249878, -0.07904959470033646, -0.2734699249267578, -0.07566485553979874, 0.11545675247907639, 0.2213156819343567, 0.4420471489429474, -0.03293899446725845, -0.3973313868045807, -0.08685396611690521, -0.0056659565307199955, 0.03538442403078079, 0.172291100025177, 0.061574630439281464, -0.282600462436676, 0.11213229596614838, -0.36988282203674316, -0.11152943968772888, -0.4540901482105255, -0.2572493553161621, -0.08542870730161667, -0.23043708503246307, -0.1461108922958374, -0.15688146650791168, -0.030908454209566116, -0.024791371077299118, -0.15844260156154633, -0.07588545978069305, -0.15447381138801575, 0.14947889745235443, 0.39114245772361755, -0.2639916241168976, -0.16559292376041412, 0.03994794934988022, 0.11624651402235031, 0.595734179019928, 0.27618473768234253, 0.06916537880897522, -0.16880366206169128, 0.11827033758163452, -0.29011809825897217, 0.22026045620441437, -0.2356199026107788, 0.008545136079192162, 0.20443901419639587, 0.1658644676208496, 0.047842636704444885, -0.29531633853912354, -0.21436238288879395, -0.18573851883411407, -0.15272065997123718, -0.08755278587341309, 0.23345817625522614, 0.0979497954249382, -0.17646948993206024, -0.7052026987075806, -0.281089723110199, -0.19379283487796783, 0.2698374092578888, -0.2516149580478668, 0.22132496535778046, 0.21118611097335815, 0.1571696400642395, 0.37123146653175354, 0.10776088386774063, -0.09275683015584946, 0.18067561089992523, 0.2621365487575531, 0.024327391758561134, -0.4707918167114258, -0.20821835100650787, 0.2600363492965698, -0.028008831664919853, 0.21695567667484283, 0.029475556686520576, -0.1711164265871048, 0.1549680531024933, -0.18481865525245667, -0.06378284841775894, -0.07156620919704437, -0.021511321887373924, 0.26966750621795654, -0.1875339150428772, 0.23745697736740112, -0.16067706048488617, 0.11277500540018082, 0.1508794128894806, -0.07872870564460754, 0.18655706942081451, 0.02953663468360901, 0.3088378310203552, 0.2784065902233124, 0.7139965295791626, 0.26298466324806213, -0.10933217406272888, -0.2752413749694824, -0.1456860899925232, 0.09790206700563431, 0.11125665158033371, -0.07159881293773651, 0.0010457964381203055, -0.08922129124403, -0.14020375907421112, 0.03153332322835922, 0.22970792651176453, -0.24940013885498047, 0.05157474800944328, 0.04182666540145874, -0.38899239897727966, -0.44565701484680176, 0.33257099986076355, -0.4490881562232971, 0.24677133560180664, -0.06560561805963516, 0.045118313282728195, 0.08559656888246536, -0.04428417608141899, -0.3033314347267151, 0.1236492246389389, 0.24241980910301208, 0.02507786825299263, -0.3818575441837311, -0.07733549922704697, -0.20659294724464417, -0.10824023187160492, 0.11951552331447601, 0.1951921135187149, -0.12964920699596405, -0.015336412936449051, 0.2284475415945053, 0.26357781887054443, 0.27360770106315613, -0.1642373651266098, -0.09486306458711624, -0.11137271672487259, 0.11484987288713455, -0.350950688123703, 0.13599804043769836, -0.22492632269859314, 0.383152037858963, 0.062299974262714386, -0.054546281695365906, -0.3764475882053375, -0.4656878113746643, 0.45160165429115295, -0.059013232588768005, -0.1405363827943802, 0.133672833442688, -0.12436612695455551, -0.23351910710334778, 0.03564763069152832, 0.09203222393989563, 0.3854587972164154, -0.15819688141345978, -0.06390845030546188, 0.058764390647411346, -0.12798835337162018, -0.07622336596250534, 0.18287156522274017, -0.021405687555670738, 0.28967946767807007, 0.07412821799516678, -0.1320735365152359, 0.39655181765556335, 0.09846234321594238, -0.037627678364515305, 0.3037124574184418, -0.14420868456363678, -0.14239490032196045, 0.16430430114269257, -0.08013901114463806, 0.6287440061569214, 0.2862626612186432, 0.05457444489002228, 0.039162758737802505, -0.08323473483324051, -0.2181188315153122, -0.24843983352184296, 0.30923405289649963, 0.2322082370519638, -0.13572317361831665, -0.22327160835266113, -0.5992251634597778, 0.3932135999202728, 0.10758145153522491, -0.04067149758338928, 0.5002285242080688, 0.22755776345729828, -0.34822461009025574, 0.40416455268859863, 0.22374244034290314, 0.6722362637519836, 0.0973743423819542, 0.10019496083259583, 0.1406400501728058, -0.2443893551826477, 0.5452374815940857, -0.4555905759334564, 0.16622744500637054, -0.18402588367462158, -0.13895273208618164, -0.14026133716106415, -0.25848791003227234, 0.011902404949069023, 0.3969431519508362, 0.04395689442753792, 0.2609883248806, -0.10268139839172363, 0.003460826352238655, -0.16641366481781006, 0.37935730814933777, -0.10909704864025116, -0.07126246392726898, 0.03344547003507614, 0.04779481515288353, -0.144866943359375, -0.02848820574581623, 0.04708686098456383, -0.11839909851551056, -0.24467331171035767, 0.06455105543136597, -0.3849601745605469, -0.024767452850937843, -0.19154039025306702, 0.18074747920036316, -0.028959564864635468, -0.1621684581041336, 0.2941589951515198, 0.28156474232673645, 0.05049026757478714, -0.06855172663927078, -0.036941204220056534, 0.2560129463672638, -0.21466340124607086, -0.01734735444188118, -0.12568119168281555, -0.04431018605828285, 0.42629900574684143, 0.16207005083560944, -0.274421751499176, 0.03170925751328468, -0.18382200598716736, -0.11254725605249405, 0.08722523599863052, 0.3421584665775299, 0.17468073964118958, -0.3543887138366699, -0.10897422581911087, 0.14388753473758698, 0.014854077249765396, 0.03919282928109169, 0.05967050418257713, 0.02583254501223564, -0.2507348358631134, 0.18310417234897614, -0.018512671813368797, -0.18730932474136353, 0.08043747395277023, -0.15625646710395813, 0.09684621542692184, 0.12658968567848206, 0.34596192836761475, 0.04430808871984482, 0.01662016101181507, -0.23444314301013947, 0.3440571427345276, 0.5174094438552856, -0.3070369064807892, -0.04651758447289467, -0.40889397263526917, 0.14942903816699982, 0.08954398334026337, -0.17404326796531677, 0.03808966279029846, 0.33333563804626465, -0.3144912123680115, -0.4444493055343628, 0.027880340814590454, 0.34179753065109253, -0.1780242770910263, 0.34788385033607483, -0.24382251501083374, 0.11857201904058456, 0.07069806754589081, 0.4230951964855194, -0.16127599775791168, 0.19149821996688843, 0.1569700837135315, 0.3527006208896637, 0.04303034394979477, 0.10546086728572845, 0.24811536073684692, -0.1356278955936432, -0.08017873018980026, 0.07665732502937317, 0.09691090136766434, -0.1624697893857956, -0.14401480555534363, 0.15749141573905945, -0.07069277763366699, 0.03076377883553505, -0.2150484174489975, -0.2650291323661804, -0.21865534782409668, -0.04733063653111458, 0.004286975599825382, -0.09766671806573868, 0.18377625942230225, 0.4265226423740387, 0.30826061964035034, 0.16020481288433075, -0.2202935814857483, 0.07266494631767273, -0.07701850682497025, 0.34985044598579407, 0.07863699644804001, 0.2602563798427582, 0.143510103225708, 0.09982755780220032, -0.26082420349121094, -0.027992133051156998, 0.29796233773231506, -0.40333011746406555, -0.039421819150447845, 0.2067461907863617, 0.22813528776168823, -0.6105561256408691, 0.3794695734977722, 0.4685686528682709, 0.11273255944252014, 0.1652251034975052, 0.0898432806134224, 0.06358800083398819, 0.14680540561676025, 0.23767948150634766, 0.2606693208217621, 0.18591994047164917, -0.00995588768273592, 0.2944069802761078, 0.12091470509767532, 0.6356115937232971, -0.39715075492858887, -0.07452772557735443, 0.12078658491373062, 0.015104951336979866, 0.36352819204330444, 0.41760528087615967, -0.2986032962799072, -0.11512043327093124, 0.23976385593414307, -0.3498404920101166, 0.30018293857574463, 0.16398921608924866, 0.08710475265979767, 0.5904925465583801, 0.04764900356531143, 0.04701041057705879, 0.39915335178375244, -0.08683029562234879, -0.53188157081604, 0.05378423631191254, 0.10086534172296524, -0.08931967616081238, -0.0804375484585762, 0.5899489521980286, -0.06141050532460213, -0.2744287848472595, -0.04727305471897125, 0.14674513041973114, 0.07452839612960815, -0.020305635407567024, -0.4402685761451721, -0.0016304426826536655, -0.26779690384864807, -0.10466034710407257, 0.18563130497932434, -0.3094092607498169, 0.3539861738681793, 0.06242385134100914, 0.10024349391460419, -0.029944943264126778, 0.28931447863578796, 0.2652164399623871, 0.0779198557138443, -0.01674974150955677, 0.009803623892366886, -0.1636149138212204, -0.04561919346451759, -0.09232746064662933, 0.17611296474933624, 0.1490955799818039, -0.08622779697179794, -0.37441539764404297, 0.10671372711658478, 0.28826799988746643, -0.18116389214992523, 0.18445926904678345, 0.2109503298997879, -0.09573773294687271, 0.05812994763255119, 0.1442093551158905, 0.09980279207229614, -0.03594714775681496, -0.0017199538415297866, 0.1333235651254654, 0.06717505306005478, -0.4371820092201233, 0.4507317543029785, -0.1003255546092987, -0.18181630969047546, -0.11517295986413956, -0.0030974196270108223, -0.2519979178905487, -0.19639474153518677, 0.5572978854179382, -0.3428589701652527, 0.09526944905519485, -0.16597390174865723, 0.002531882608309388, -0.1193838119506836, 0.6049439907073975, 0.0485498383641243, 0.2872435450553894, -0.23063959181308746, -0.2353111058473587, -0.34840747714042664, -0.1724644899368286, -0.26167309284210205, -0.1431104838848114, 0.11644696444272995, 0.32524949312210083, -0.20031993091106415, 0.19761380553245544, -0.05239802598953247, 0.02237061969935894, 0.13385091722011566, 0.27883490920066833, -0.0556451715528965, -0.22805260121822357, -0.32002177834510803, 0.19413140416145325, -0.08338460326194763, -0.24655397236347198, -0.02966875396668911, -0.09172561764717102, -0.274473637342453, 0.1414143592119217, -0.10916019976139069, 0.5010821223258972, 0.47888049483299255, -0.07082615047693253, 0.1626957654953003, 0.470699280500412, 0.21417173743247986, 0.06188701093196869, -0.36315426230430603, 0.06310070306062698, -0.3223738968372345, 0.42414262890815735, -0.07200600951910019, 0.23870529234409332, -0.3206017315387726, 0.06453097611665726, -0.1823386698961258, 0.11542829126119614, 0.045650631189346313, -0.184098020195961, -0.23061782121658325, -0.05142584815621376, -0.3432809114456177, 0.1858370304107666, 0.8144027590751648, 0.45279738306999207, -0.3223569691181183, -0.006582275032997131, 0.1515844613313675, -0.12273111194372177, -0.07486344128847122, -0.42572394013404846, -0.12992070615291595, 0.18796369433403015, 0.1765194684267044, 0.43258652091026306, -0.08113792538642883, -0.7890353202819824, -0.23772500455379486, 0.2145492434501648, -0.24279995262622833, 0.05749983340501785, 0.07962454855442047, 0.36782902479171753, -0.13397876918315887, -0.03476431220769882, 0.4012281894683838, 0.13588815927505493, -0.30400124192237854, 0.07047192752361298, -0.32254236936569214 ]
https://github.com/huggingface/datasets/issues/259
documentation missing how to split a dataset
Currently you can indeed split a dataset using `ds_test = nlp.load_dataset('imdb, split='test[:5000]')` (works also with percentages). However right now we don't have a way to shuffle a dataset but we are thinking about it in the discussion in #166. Feel free to share your thoughts about it. One trick that you can do until we have a better solution is to shuffle and split the indices of your dataset: ```python import nlp from sklearn.model_selection import train_test_split imdb = nlp.load_dataset('imbd', split='test') test_indices, val_indices = train_test_split(range(len(imdb))) ``` and then to iterate each split: ```python for i in test_indices: example = imdb[i] ... ```
I am trying to understand how to split a dataset ( as arrow_dataset). I know I can do something like this to access a split which is already in the original dataset : `ds_test = nlp.load_dataset('imdb, split='test') ` But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)? I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description: > See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information. But the guide seems to be missing. To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this: `ds_test = nlp.load_dataset('imdb, split='test'[:5000]) ` `ds_val = nlp.load_dataset('imdb, split='test'[5000:])` because the imdb test data is sorted by class (probably not a good idea anyway)
101
documentation missing how to split a dataset I am trying to understand how to split a dataset ( as arrow_dataset). I know I can do something like this to access a split which is already in the original dataset : `ds_test = nlp.load_dataset('imdb, split='test') ` But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)? I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description: > See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information. But the guide seems to be missing. To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this: `ds_test = nlp.load_dataset('imdb, split='test'[:5000]) ` `ds_val = nlp.load_dataset('imdb, split='test'[5000:])` because the imdb test data is sorted by class (probably not a good idea anyway) Currently you can indeed split a dataset using `ds_test = nlp.load_dataset('imdb, split='test[:5000]')` (works also with percentages). However right now we don't have a way to shuffle a dataset but we are thinking about it in the discussion in #166. Feel free to share your thoughts about it. One trick that you can do until we have a better solution is to shuffle and split the indices of your dataset: ```python import nlp from sklearn.model_selection import train_test_split imdb = nlp.load_dataset('imbd', split='test') test_indices, val_indices = train_test_split(range(len(imdb))) ``` and then to iterate each split: ```python for i in test_indices: example = imdb[i] ... ```
[ 0.06009907275438309, 0.059202224016189575, -0.06156205013394356, 0.11397054046392441, -0.013391386717557907, 0.2231488674879074, 0.4341288208961487, 0.342345654964447, -0.08726129680871964, 0.09042403846979141, 0.11232900619506836, 0.32582587003707886, -0.2517760694026947, 0.1168583557009697, 0.1798708289861679, -0.36912965774536133, -0.06624021381139755, 0.1591634750366211, 0.24432581663131714, 0.030817734077572823, 0.22149237990379333, -0.15231187641620636, -0.3721361756324768, 0.07190310209989548, -0.29173603653907776, -0.45704594254493713, -0.24639493227005005, -0.05413707718253136, -0.2753705680370331, -0.23689623177051544, 0.17016878724098206, -0.0853739082813263, -0.006451313383877277, 0.29935893416404724, -0.00011711733532138169, -0.00069675367558375, 0.22161389887332916, -0.11507433652877808, -0.1520446389913559, -0.2749585211277008, -0.265964150428772, 0.0024030443746596575, 0.30486464500427246, -0.2019958645105362, 0.018709475174546242, -0.2679358720779419, 0.10415325313806534, -0.1138850748538971, 0.5253756642341614, 0.40250229835510254, 0.09737708419561386, -0.018744518980383873, 0.05933988466858864, 0.12936446070671082, 0.07494540512561798, 0.2772723436355591, -0.06506165117025375, 0.1716548651456833, -0.18230585753917694, -0.09564170986413956, -0.1351141631603241, 0.04886728897690773, 0.16107942163944244, 0.22620323300361633, 0.10254494100809097, 0.02398950792849064, -0.352903813123703, -0.45660626888275146, -0.17250293493270874, 0.509437084197998, 0.46984222531318665, -0.3314262926578522, -0.3592270314693451, -0.38612768054008484, 0.1277306079864502, -0.2642105221748352, -0.13123668730258942, 0.5653491616249084, -0.09737316519021988, -0.05509023368358612, -0.15455056726932526, -0.12978129088878632, -0.2560816705226898, 0.1392173171043396, 0.08537829667329788, 0.5397909879684448, -0.03236256167292595, 0.07690982520580292, 0.3139473497867584, 0.20437315106391907, 0.40186941623687744, -0.024770744144916534, -0.011732089333236217, 0.3584606647491455, -0.25612521171569824, -0.31210193037986755, -0.13031935691833496, -0.42341017723083496, 0.11904702335596085, 0.2578408122062683, 0.17167547345161438, -0.08561567962169647, -0.17894227802753448, 0.10597436130046844, 0.4475732445716858, 0.2421584129333496, 0.18644988536834717, 0.47353842854499817, 0.003686418291181326, 0.015850333496928215, 0.055002376437187195, -0.15196968615055084, -0.030426109209656715, -0.2850632071495056, -0.0540895015001297, 0.12595121562480927, 0.042341895401477814, 0.1031109094619751, -0.3341118097305298, -0.39424702525138855, -0.3149619400501251, -0.1922621876001358, 0.1769527792930603, 0.15305501222610474, 0.033044178038835526, -0.055172476917505264, -0.3120955228805542, 0.25188717246055603, -0.301895409822464, -0.004585219081491232, -0.12498080730438232, 0.19917666912078857, -0.402815580368042, 0.09094015508890152, 0.13776475191116333, 0.027253851294517517, 0.39331725239753723, -0.07447180896997452, 0.0851060077548027, -0.32336053252220154, 0.2844257354736328, 0.01354606356471777, 0.2084345817565918, 0.3916260898113251, 0.19600516557693481, 0.034170836210250854, 0.03795379772782326, 0.17216996848583221, -0.35726070404052734, 0.01065873447805643, -0.37622272968292236, -0.38633617758750916, 0.059066008776426315, 0.03592435270547867, -0.0429655946791172, 0.13750547170639038, -0.3059720993041992, 0.38506993651390076, 0.0028128705453127623, -0.08429786562919617, 0.18368284404277802, -0.03547010198235512, -0.18839631974697113, -0.3066428303718567, 0.2635633051395416, -0.04239649698138237, -0.301415354013443, -0.08503305166959763, -0.3118203282356262, 0.03487207368016243, 0.00922323577105999, 0.2253822237253189, -0.36134621500968933, 0.4354800581932068, -0.07879834622144699, 0.426636666059494, 0.7096789479255676, -0.16683810949325562, -0.08304842561483383, 0.13563969731330872, 0.07302580028772354, -0.24751627445220947, -0.05864224582910538, -0.02541038766503334, 0.2792956531047821, 0.08227921277284622, -0.2581395208835602, 0.47948476672172546, -0.33176758885383606, -0.06840807944536209, 0.2964521646499634, -0.25189998745918274, 0.30399566888809204, 0.0026508790906518698, -0.11293406039476395, -0.25377488136291504, 0.18648375570774078, 0.34164828062057495, 0.5174598097801208, 0.000292422017082572, 0.12405235320329666, 0.12213245034217834, 0.0347709059715271, 0.23333919048309326, -0.06848383694887161, -0.3601827025413513, -0.2926027774810791, -0.07240307331085205, 0.16962479054927826, -0.09011592715978622, 0.02935769408941269, -0.29040852189064026, -0.24477800726890564, -0.23009727895259857, 0.026718974113464355, -0.26597049832344055, 0.05622360482811928, -0.3088190257549286, 0.2587312161922455, -0.14219142496585846, -0.4538700580596924, -0.02283160388469696, -0.2623426616191864, 0.15787404775619507, -0.45560353994369507, 0.2260337620973587, 0.09709712862968445, -0.15135329961776733, 0.12351132184267044, 0.35154375433921814, -0.06762313097715378, -0.10018406808376312, -0.013902186416089535, 0.6143964529037476, 0.5653513669967651, -0.09559540450572968, -0.1702236533164978, 0.02942325733602047, 0.43213000893592834, -0.37139028310775757, 0.16432815790176392, -0.07342005521059036, 0.007384070660918951, 0.006760704331099987, -0.4206543564796448, 0.4240076541900635, -0.5293167233467102, 0.38250017166137695, 0.2183518409729004, 0.05541330948472023, 0.01612289622426033, -0.09533728659152985, -0.31663307547569275, 0.0221357773989439, -0.20150554180145264, -0.36759620904922485, 0.11824463307857513, -0.06441091001033783, -0.2069910615682602, 0.026012327522039413, 0.4118817448616028, -0.19969899952411652, 0.10810745507478714, -0.13601990044116974, 0.013238816522061825, -0.04035067558288574, 0.11190565675497055, 0.4428796172142029, 0.26465991139411926, 0.06288199871778488, 0.3699394464492798, -0.09811369329690933, -0.2832740843296051, -0.09415484964847565, 0.1123310849070549, 0.2549903392791748, 0.43643710017204285, 0.011018611490726471, -0.28430965542793274, -0.08640509098768234, -0.024016566574573517, -0.0805046409368515, 0.18778203427791595, 0.08373704552650452, -0.25611943006515503, 0.06383467465639114, -0.353681355714798, -0.15848326683044434, -0.46817442774772644, -0.3202151954174042, -0.05686125531792641, -0.2556045651435852, -0.12271673232316971, -0.033934324979782104, -0.05420056730508804, 0.008823405019938946, -0.1515863835811615, -0.03954600915312767, -0.1244678869843483, 0.18579939007759094, 0.3445300757884979, -0.31507086753845215, -0.1321648359298706, 0.032920513302087784, 0.13630011677742004, 0.6758503317832947, 0.3586135506629944, 0.03770403563976288, -0.16969457268714905, 0.1066732183098793, -0.22684651613235474, 0.19140011072158813, -0.18845325708389282, -0.0037767658941447735, 0.1433349847793579, 0.12773877382278442, -0.042531903833150864, -0.4658041000366211, -0.19377993047237396, -0.21292594075202942, -0.15234403312206268, 0.03678106144070625, 0.22463707625865936, 0.11643866449594498, -0.1551228016614914, -0.6601371765136719, -0.34316569566726685, -0.18102425336837769, 0.19332267343997955, -0.20737075805664062, 0.22687602043151855, 0.24387958645820618, 0.1859433501958847, 0.32747170329093933, 0.014622446149587631, -0.1173025444149971, 0.19149579107761383, 0.25564292073249817, 0.043560583144426346, -0.4491833746433258, -0.16715045273303986, 0.18767352402210236, -0.06652599573135376, 0.09794634580612183, 0.0923762172460556, -0.10886877775192261, 0.16333594918251038, -0.20559275150299072, -0.054957300424575806, -0.058287035673856735, 0.027939505875110626, 0.27600061893463135, -0.16865107417106628, 0.2373519390821457, -0.129988431930542, 0.12912416458129883, 0.12755705416202545, -0.003087303601205349, 0.2730181813240051, 0.008501805365085602, 0.32969504594802856, 0.24659578502178192, 0.7530812621116638, 0.23618070781230927, -0.08670444041490555, -0.2982815206050873, -0.1320105791091919, 0.05755162611603737, 0.022603468969464302, -0.0801633819937706, 0.12196560204029083, -0.0013237824896350503, -0.16967561841011047, 0.08687268942594528, 0.16649042069911957, -0.3392602205276489, 0.06560909748077393, 0.07365627586841583, -0.38669151067733765, -0.4350096881389618, 0.3419036865234375, -0.43806979060173035, 0.178255096077919, -0.06137685105204582, -0.017334220930933952, 0.022490423172712326, -0.09498447179794312, -0.3401079773902893, 0.09858191013336182, 0.2204698771238327, 0.03093568980693817, -0.4048060178756714, -0.20659612119197845, -0.2126455456018448, -0.15744329988956451, 0.1924208551645279, 0.2665267288684845, -0.026468342170119286, -0.021181408315896988, 0.26088523864746094, 0.2814456522464752, 0.2959352731704712, -0.15047705173492432, -0.05250171199440956, -0.03982867673039436, 0.12456178665161133, -0.32955804467201233, 0.06933336704969406, -0.3494671583175659, 0.36217761039733887, 0.10066782683134079, 0.025378884747624397, -0.3897857666015625, -0.40666431188583374, 0.4339584708213806, -0.0061202216893434525, -0.13574913144111633, 0.12987147271633148, -0.17023196816444397, -0.19859807193279266, -0.011147258803248405, 0.11986096203327179, 0.33988282084465027, -0.0983908474445343, -0.14003422856330872, 0.1323728859424591, -0.07185309380292892, -0.08284489065408707, 0.13599222898483276, 0.04860091209411621, 0.325457900762558, 0.21512538194656372, -0.11585767567157745, 0.4347854554653168, 0.022969011217355728, 0.0072502451948821545, 0.21266388893127441, -0.12155845761299133, -0.11246604472398758, 0.14882241189479828, -0.08209674060344696, 0.5192814469337463, 0.33486470580101013, 0.11671213805675507, 0.0019606351852416992, -0.08885324746370316, -0.17211495339870453, -0.2203490138053894, 0.2200639396905899, 0.19693267345428467, -0.16289982199668884, -0.23226279020309448, -0.784541130065918, 0.38250863552093506, 0.14931327104568481, -0.07872916013002396, 0.49425503611564636, 0.22275587916374207, -0.3529703915119171, 0.5404197573661804, 0.260069876909256, 0.7107946872711182, 0.02709396556019783, 0.10878413915634155, 0.24516227841377258, -0.21992938220500946, 0.5987616181373596, -0.3728722035884857, 0.1955489218235016, -0.2358037382364273, -0.23172704875469208, -0.050506144762039185, -0.24861061573028564, -0.04224425181746483, 0.38545840978622437, -0.01929844729602337, 0.30947282910346985, -0.09202203899621964, -0.12202886492013931, -0.24741235375404358, 0.4114220440387726, -0.2356864959001541, -0.0378548800945282, 0.06772688776254654, 0.02942626178264618, -0.16750021278858185, -0.06038970500230789, 0.10659464448690414, -0.07353567332029343, -0.27488282322883606, 0.11426214128732681, -0.37943947315216064, -0.034500446170568466, -0.14393652975559235, 0.1884540170431137, -0.14707684516906738, -0.15393052995204926, 0.23088449239730835, 0.15992236137390137, 0.09166058152914047, -0.06489978730678558, -0.019739767536520958, 0.2676509916782379, -0.09607862681150436, -0.028999123722314835, -0.09119158983230591, 0.014268463477492332, 0.47091445326805115, 0.2043624371290207, -0.2958538234233856, -0.03503906726837158, -0.08294617384672165, -0.18436096608638763, 0.0005775181925855577, 0.2810368835926056, 0.20538653433322906, -0.2860051989555359, -0.13917146623134613, 0.20517703890800476, 0.0327356792986393, 0.02555791847407818, 0.0658966675400734, -0.019837459549307823, -0.21882683038711548, 0.21004313230514526, -0.053985595703125, -0.1761048436164856, 0.07701492309570312, -0.14604416489601135, 0.08020918071269989, 0.1033799946308136, 0.367525190114975, 0.05142638087272644, 0.0021325370762497187, -0.20663541555404663, 0.3037537932395935, 0.43836477398872375, -0.2862944006919861, 0.049473412334918976, -0.38515326380729675, 0.14462649822235107, 0.0824587270617485, -0.1435527801513672, 0.09010804444551468, 0.40065810084342957, -0.31120699644088745, -0.46134403347969055, 0.09297259896993637, 0.43247947096824646, -0.03833217918872833, 0.3395062983036041, -0.2784980237483978, 0.15135206282138824, 0.0190415158867836, 0.31904613971710205, -0.18888072669506073, 0.18617190420627594, 0.18026742339134216, 0.4271772801876068, -0.0482405424118042, 0.09498202800750732, 0.12351096421480179, -0.1272827535867691, -0.06728089600801468, 0.03961043432354927, 0.10758931189775467, -0.17025846242904663, -0.151464581489563, 0.13831248879432678, -0.05588001012802124, 0.035523202270269394, -0.20464535057544708, -0.3283619284629822, -0.2501082718372345, -0.12947624921798706, -0.06132422015070915, -0.06784308701753616, 0.2068956345319748, 0.45333972573280334, 0.4532249867916107, 0.1227358728647232, -0.09720584005117416, 0.16519080102443695, -0.1471460610628128, 0.22503617405891418, 0.03594299033284187, 0.3269492983818054, 0.17991217970848083, 0.09982889890670776, -0.30325523018836975, -0.08182705193758011, 0.2034575641155243, -0.3801211714744568, -0.06861071288585663, 0.17894546687602997, 0.2668624818325043, -0.4711158573627472, 0.43184736371040344, 0.5926181077957153, 0.18063263595104218, 0.057729993015527725, 0.18179216980934143, 0.06982248276472092, 0.12195179611444473, 0.23703928291797638, 0.18802478909492493, 0.25610944628715515, 0.0035007502883672714, 0.3167124092578888, 0.0351862907409668, 0.47662293910980225, -0.43065062165260315, -0.07014065980911255, 0.13116446137428284, -0.06631258130073547, 0.366807758808136, 0.49853336811065674, -0.23655711114406586, -0.21820954978466034, 0.22212541103363037, -0.3801797032356262, 0.24524779617786407, 0.17802612483501434, 0.12863388657569885, 0.615035355091095, 0.08192865550518036, -0.012832474894821644, 0.34177571535110474, -0.05880414694547653, -0.4968165159225464, 0.17311525344848633, 0.09135236591100693, -0.02011318877339363, 0.0038303041364997625, 0.5978028774261475, -0.07840018719434738, -0.1626097559928894, -0.014351378194987774, 0.17052622139453888, 0.11518872529268265, -0.06373917311429977, -0.43694424629211426, -0.06144576147198677, -0.3473990857601166, -0.06094346567988396, 0.11262447386980057, -0.2696659564971924, 0.32366031408309937, 0.08725889027118683, 0.04000934585928917, -0.19547852873802185, 0.32907041907310486, 0.29060080647468567, 0.13569140434265137, -0.0851241797208786, -0.07892538607120514, -0.13413381576538086, -0.04418518766760826, 0.04194551706314087, 0.20853270590305328, 0.11137179285287857, -0.003313747001811862, -0.41207143664360046, 0.10050126910209656, 0.23961101472377777, -0.22060030698776245, 0.18486790359020233, 0.22301754355430603, 0.02694692090153694, 0.0634884461760521, 0.1378452181816101, 0.12301158905029297, -0.05885325372219086, -0.005931519903242588, 0.1754358857870102, 0.012287033721804619, -0.41121774911880493, 0.4289699196815491, -0.04607691243290901, -0.13505558669567108, -0.044596556574106216, 0.014430989511311054, -0.33576908707618713, -0.16443490982055664, 0.3247770667076111, -0.33928921818733215, 0.055593110620975494, -0.1636829376220703, 0.002770682331174612, -0.09656859934329987, 0.5712155699729919, 0.10233967751264572, 0.2575373649597168, -0.16598035395145416, -0.2422952800989151, -0.3547656238079071, -0.23544667661190033, -0.18375495076179504, -0.16355392336845398, 0.15178179740905762, 0.42012500762939453, -0.24219836294651031, 0.21163184940814972, -0.13461340963840485, 0.0761355608701706, 0.0454602874815464, 0.35581231117248535, -0.10699892789125443, -0.22011062502861023, -0.3341939449310303, 0.22128506004810333, -0.10734599083662033, -0.24159222841262817, -0.04876486212015152, -0.06508542597293854, -0.2900025546550751, 0.1640603095293045, -0.09778062254190445, 0.48974308371543884, 0.4773813784122467, -0.15499073266983032, 0.13316893577575684, 0.4795994460582733, 0.2026750147342682, 0.09958022832870483, -0.44112950563430786, -0.0005306864622980356, -0.4071694314479828, 0.37404772639274597, -0.0343126505613327, 0.2950654923915863, -0.3066810965538025, -0.00825539231300354, -0.15738308429718018, 0.17803733050823212, -0.02258235029876232, -0.24556133151054382, -0.36210015416145325, -0.041208744049072266, -0.32705846428871155, 0.2329271137714386, 0.637343168258667, 0.4534018337726593, -0.30583325028419495, 0.00391820352524519, 0.1617225855588913, -0.09409812092781067, -0.012662597000598907, -0.46188268065452576, -0.17610269784927368, 0.10947929322719574, 0.13716508448123932, 0.42544734477996826, -0.11045528948307037, -0.6365726590156555, -0.16916698217391968, 0.17600280046463013, -0.14364363253116608, 0.12490946799516678, 0.11798007041215897, 0.36176615953445435, -0.08889041841030121, -0.05115283653140068, 0.3349890410900116, 0.10079389810562134, -0.28681156039237976, -0.028494108468294144, -0.33891674876213074 ]
https://github.com/huggingface/datasets/issues/259
documentation missing how to split a dataset
I added a small guide [here](https://github.com/huggingface/nlp/tree/master/docs/splits.md) that explains how to split a dataset. It is very similar to the tensorflow datasets guide, as we kept the same logic.
I am trying to understand how to split a dataset ( as arrow_dataset). I know I can do something like this to access a split which is already in the original dataset : `ds_test = nlp.load_dataset('imdb, split='test') ` But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)? I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description: > See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information. But the guide seems to be missing. To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this: `ds_test = nlp.load_dataset('imdb, split='test'[:5000]) ` `ds_val = nlp.load_dataset('imdb, split='test'[5000:])` because the imdb test data is sorted by class (probably not a good idea anyway)
28
documentation missing how to split a dataset I am trying to understand how to split a dataset ( as arrow_dataset). I know I can do something like this to access a split which is already in the original dataset : `ds_test = nlp.load_dataset('imdb, split='test') ` But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)? I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description: > See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information. But the guide seems to be missing. To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this: `ds_test = nlp.load_dataset('imdb, split='test'[:5000]) ` `ds_val = nlp.load_dataset('imdb, split='test'[5000:])` because the imdb test data is sorted by class (probably not a good idea anyway) I added a small guide [here](https://github.com/huggingface/nlp/tree/master/docs/splits.md) that explains how to split a dataset. It is very similar to the tensorflow datasets guide, as we kept the same logic.
[ -0.010855733416974545, 0.10391601175069809, -0.07164087146520615, 0.17237181961536407, -0.00935334712266922, 0.17514826357364655, 0.41390401124954224, 0.3510568141937256, -0.1455843597650528, 0.021543452516198158, 0.18125662207603455, 0.2846691608428955, -0.14739830791950226, 0.11088211089372635, 0.18141359090805054, -0.38728630542755127, -0.11156066507101059, 0.2299458235502243, 0.26163697242736816, -0.04211539402604103, 0.2874656021595001, -0.05571587011218071, -0.2707216143608093, 0.10467829555273056, -0.3476290702819824, -0.46123310923576355, -0.197077676653862, -0.03716476634144783, -0.22528046369552612, -0.2295699566602707, 0.22839273512363434, -0.2733035385608673, 0.03859574720263481, 0.2595725357532501, -0.0001157782317022793, 0.06299920380115509, 0.24595259130001068, -0.10788553953170776, -0.1020549088716507, -0.20078682899475098, -0.36124536395072937, -0.08098708093166351, 0.4162449240684509, -0.13008104264736176, 0.008889289572834969, -0.24973729252815247, 0.16230683028697968, -0.1735195368528366, 0.5008521676063538, 0.45944610238075256, 0.0998944565653801, 0.03513257950544357, 0.18790002167224884, 0.0838824138045311, -0.008649776689708233, 0.3338412344455719, -0.11219736188650131, 0.07645617425441742, -0.11137361824512482, -0.07661733776330948, -0.1672825962305069, 0.04348516836762428, 0.18383759260177612, 0.2061331570148468, 0.0807436853647232, -0.027349168434739113, -0.3851655125617981, -0.46458742022514343, -0.14274804294109344, 0.5450024604797363, 0.6056332588195801, -0.33589521050453186, -0.2980390787124634, -0.30454346537590027, 0.04508857801556587, -0.17608115077018738, -0.12780751287937164, 0.6296443939208984, -0.1171366348862648, 0.08766083419322968, -0.1201944425702095, -0.23911818861961365, -0.3045324981212616, 0.15730009973049164, 0.022687533870339394, 0.38953399658203125, -0.10936702787876129, 0.05624091252684593, 0.1918928027153015, 0.24632003903388977, 0.2808931767940521, 0.04171013459563255, -0.012120882980525494, 0.26088783144950867, -0.17904050648212433, -0.243149071931839, -0.09092391282320023, -0.3770045042037964, 0.0993310958147049, 0.23428580164909363, 0.13217668235301971, -0.06478407979011536, -0.17419302463531494, 0.168228879570961, 0.4464680254459381, 0.17327673733234406, 0.24416303634643555, 0.4896543323993683, 0.03797414153814316, -0.0398646742105484, -0.0023185007739812136, -0.17060290277004242, -0.012431045062839985, -0.1979081630706787, -0.024787884205579758, 0.07103631645441055, 0.15378792583942413, 0.09011036157608032, -0.2858220934867859, -0.3360191583633423, -0.2909918427467346, -0.16204950213432312, 0.12427380681037903, 0.14034289121627808, 0.07502758502960205, -0.07264793664216995, -0.34556078910827637, 0.22316506505012512, -0.3875485062599182, -0.17677508294582367, -0.12359260022640228, 0.23558706045150757, -0.3899734616279602, 0.10468114167451859, 0.11199984699487686, 0.010703050531446934, 0.4004693925380707, -0.10864873230457306, 0.01913541927933693, -0.3715503513813019, 0.306961327791214, 0.041092731058597565, 0.2116014063358307, 0.423773854970932, 0.2138499766588211, 0.020228752866387367, 0.06178855150938034, 0.1171502023935318, -0.33362191915512085, -0.02210116572678089, -0.37956324219703674, -0.46289509534835815, -0.061620328575372696, 0.03968013450503349, -0.025028571486473083, 0.19056153297424316, -0.16040685772895813, 0.3714151680469513, 0.05124549940228462, -0.04800254851579666, 0.20136457681655884, 0.08199400454759598, -0.17472785711288452, -0.35749784111976624, 0.2417292594909668, 0.005339655559509993, -0.4272274672985077, -0.073100246489048, -0.3806420564651489, -0.03147832304239273, -0.05574393272399902, 0.14545725286006927, -0.37867143750190735, 0.507953941822052, -0.09993261098861694, 0.45728588104248047, 0.7189483642578125, -0.27833685278892517, -0.07060562819242477, 0.3035818636417389, 0.1537112295627594, -0.27557674050331116, -0.1114160567522049, -0.051856640726327896, 0.26117733120918274, 0.1561570018529892, -0.43731021881103516, 0.3556572496891022, -0.30760690569877625, -0.13068021833896637, 0.3071199953556061, -0.2115512490272522, 0.2188744693994522, -0.07688260078430176, -0.08400353789329529, -0.25236940383911133, 0.2786920666694641, 0.34319913387298584, 0.47872015833854675, 0.02705245651304722, 0.1831011176109314, 0.23426854610443115, 0.06575797498226166, 0.14689479768276215, -0.049003854393959045, -0.3427712321281433, -0.3662565350532532, -0.05249325931072235, 0.14187943935394287, -0.11802909523248672, -0.02595253475010395, -0.2883364260196686, -0.14907939732074738, -0.13507939875125885, 0.04922660067677498, -0.2921784520149231, 0.06407885253429413, -0.35323983430862427, 0.19587577879428864, -0.11913891136646271, -0.4262673854827881, 0.08736035227775574, -0.22956952452659607, 0.26605385541915894, -0.47642433643341064, 0.11535123735666275, 0.07138040661811829, -0.08158030360937119, 0.10574020445346832, 0.2592467665672302, -0.051060959696769714, -0.13670948147773743, 0.026624569669365883, 0.5864788889884949, 0.5731500387191772, 0.040446966886520386, -0.21188515424728394, 0.03198186680674553, 0.4351484179496765, -0.49452322721481323, 0.1646820306777954, -0.03570226952433586, -0.04062967002391815, 0.01973745785653591, -0.49181801080703735, 0.30891281366348267, -0.34237921237945557, 0.2918803095817566, 0.24414317309856415, 0.12468873709440231, 0.053476832807064056, -0.17090465128421783, -0.2978188693523407, -0.03497503697872162, -0.26544827222824097, -0.34221240878105164, 0.21621692180633545, -0.024849478155374527, -0.1540779173374176, 0.11240266263484955, 0.4354671835899353, -0.18892404437065125, 0.2056405246257782, -0.11167560517787933, 0.0765460953116417, -0.040639955550432205, 0.20764201879501343, 0.42786702513694763, 0.24964505434036255, 0.01746736466884613, 0.4108246862888336, -0.08893405646085739, -0.2685607671737671, -0.06610972434282303, 0.11270678043365479, 0.2360973209142685, 0.42926517128944397, -0.06785181164741516, -0.3976389467716217, -0.07748657464981079, -0.01876511238515377, 0.0069760289043188095, 0.14406511187553406, 0.06764581054449081, -0.2933168113231659, 0.10570159554481506, -0.3916167914867401, -0.14747098088264465, -0.4270646870136261, -0.2854636609554291, -0.08070699870586395, -0.26037880778312683, -0.16953763365745544, -0.14855417609214783, 0.01224819291383028, -0.04614455997943878, -0.16739973425865173, -0.07696077972650528, -0.17104388773441315, 0.17954368889331818, 0.3728761672973633, -0.25718575716018677, -0.1507110893726349, 0.060342270880937576, 0.1510511338710785, 0.6260817646980286, 0.25064021348953247, 0.020122719928622246, -0.15158571302890778, 0.06280899792909622, -0.3285258710384369, 0.2419971227645874, -0.20559635758399963, -0.015237567014992237, 0.21068009734153748, 0.18604528903961182, 0.014025205746293068, -0.3126124143600464, -0.266542911529541, -0.19002729654312134, -0.17237670719623566, -0.08175172656774521, 0.19550785422325134, 0.05471007898449898, -0.16280876100063324, -0.7155647277832031, -0.2830571234226227, -0.20169472694396973, 0.29246237874031067, -0.24033460021018982, 0.23975221812725067, 0.17481261491775513, 0.1396598368883133, 0.3556791841983795, 0.11541393399238586, -0.014623994007706642, 0.20106859505176544, 0.2305334061384201, 0.006178919225931168, -0.49057334661483765, -0.24064074456691742, 0.31719475984573364, -0.00996336992830038, 0.2275025099515915, 0.006226116791367531, -0.2001262903213501, 0.180793896317482, -0.20702046155929565, -0.06614567339420319, -0.055300142616033554, -0.008278695866465569, 0.26149505376815796, -0.15433862805366516, 0.24387452006340027, -0.17873765528202057, 0.12144029140472412, 0.0943632423877716, -0.1324969232082367, 0.19738872349262238, 0.0055297487415373325, 0.2760891616344452, 0.26789143681526184, 0.6091411709785461, 0.25508058071136475, -0.08768311142921448, -0.2653266191482544, -0.14003431797027588, 0.1400352120399475, 0.12631581723690033, -0.04117623344063759, 0.03606961667537689, -0.10347059369087219, -0.12278961390256882, 0.04870586097240448, 0.2632274031639099, -0.27937591075897217, 0.05875444784760475, 0.007395308464765549, -0.39545685052871704, -0.4270705282688141, 0.294431209564209, -0.4454827904701233, 0.22394715249538422, -0.05564804747700691, 0.03238818421959877, 0.10708463191986084, -0.07389909774065018, -0.3157721161842346, 0.17430442571640015, 0.23238374292850494, 0.04936424270272255, -0.32762640714645386, -0.0796373039484024, -0.18812789022922516, -0.14334514737129211, 0.13018427789211273, 0.18069356679916382, -0.12620602548122406, -0.009460712783038616, 0.21018902957439423, 0.2227451205253601, 0.2387935370206833, -0.16173557937145233, -0.07712551206350327, -0.11367883533239365, 0.12909725308418274, -0.34100979566574097, 0.1779455542564392, -0.24921061098575592, 0.4085025489330292, 0.06213603913784027, -0.10248657315969467, -0.3521374762058258, -0.45464926958084106, 0.420728862285614, -0.059448033571243286, -0.10695680975914001, 0.158454030752182, -0.1439817100763321, -0.252547949552536, 0.017216365784406662, 0.02316821925342083, 0.3640359342098236, -0.17855240404605865, -0.051458824425935745, 0.03912147134542465, -0.09440073370933533, -0.08462674915790558, 0.17015647888183594, -0.025551438331604004, 0.29404693841934204, 0.012692245654761791, -0.14915506541728973, 0.37546995282173157, 0.1125071570277214, 0.030352413654327393, 0.2963511049747467, -0.1479448527097702, -0.19082504510879517, 0.22484251856803894, -0.08473359048366547, 0.5996386408805847, 0.29112863540649414, 0.0861458033323288, 0.012928951531648636, -0.08896645158529282, -0.23828773200511932, -0.1926455944776535, 0.25590980052948, 0.18343064188957214, -0.10587726533412933, -0.19300775229930878, -0.6062168478965759, 0.35862863063812256, 0.10573670268058777, -0.03288688883185387, 0.5307192802429199, 0.2949862480163574, -0.3071543276309967, 0.36709800362586975, 0.19333809614181519, 0.651020884513855, 0.13688820600509644, 0.07593459635972977, 0.13570864498615265, -0.3133864402770996, 0.5474338531494141, -0.4472086429595947, 0.1698407679796219, -0.17818468809127808, -0.1392393708229065, -0.1614578664302826, -0.24074715375900269, 0.008485477417707443, 0.3903651833534241, 0.0030033444054424763, 0.26524272561073303, -0.12453042715787888, -0.03530081734061241, -0.14797049760818481, 0.4279197156429291, -0.1697593480348587, -0.05004815384745598, 0.05451998859643936, 0.04883217066526413, -0.15916545689105988, -0.031973086297512054, 0.03778012469410896, -0.10542678833007812, -0.22675345838069916, 0.10052597522735596, -0.42336204648017883, -0.011748891323804855, -0.12563107907772064, 0.20074810087680817, -0.06050257384777069, -0.16972768306732178, 0.30080828070640564, 0.30424320697784424, 0.07807328552007675, -0.08988472819328308, -0.08147705346345901, 0.2929384112358093, -0.21994084119796753, -0.07078328728675842, -0.11927272379398346, -0.004161689896136522, 0.42831385135650635, 0.1577153503894806, -0.2871344983577728, 0.018619174137711525, -0.19460716843605042, -0.11653491854667664, 0.09951158612966537, 0.3422716557979584, 0.18660028278827667, -0.28134527802467346, -0.055021949112415314, 0.15291434526443481, -0.013291016221046448, 0.030043579638004303, 0.06662940979003906, 0.04474463686347008, -0.20661936700344086, 0.15366093814373016, 0.02689920738339424, -0.19330444931983948, 0.03796757012605667, -0.1451350301504135, 0.09765470027923584, 0.1223960667848587, 0.3040717542171478, 0.10593992471694946, -0.04301890730857849, -0.22441668808460236, 0.3682892918586731, 0.49988314509391785, -0.26772087812423706, -0.06370485574007034, -0.425753653049469, 0.16016033291816711, 0.0921095535159111, -0.19460859894752502, 0.020668840035796165, 0.3484404683113098, -0.3426212668418884, -0.448545902967453, 0.0572173111140728, 0.3609345853328705, -0.19811752438545227, 0.30239132046699524, -0.24483561515808105, 0.057295363396406174, 0.10901615023612976, 0.3757449686527252, -0.16458937525749207, 0.22103002667427063, 0.17909979820251465, 0.3216917812824249, 0.07076959311962128, 0.10658079385757446, 0.22272272408008575, -0.16636474430561066, -0.08577921241521835, 0.027471132576465607, 0.14516425132751465, -0.15921439230442047, -0.13381870090961456, 0.1577707976102829, -0.11651988327503204, 0.033620793372392654, -0.21085578203201294, -0.25794076919555664, -0.21656011044979095, -0.029082050547003746, 0.01675083488225937, -0.08077110350131989, 0.15559741854667664, 0.40940186381340027, 0.2860700488090515, 0.12069424241781235, -0.2208319902420044, 0.03815149888396263, -0.06964780390262604, 0.3842618763446808, 0.041753705590963364, 0.2855737805366516, 0.13015934824943542, 0.08430533111095428, -0.22620974481105804, 0.01688229665160179, 0.2752987742424011, -0.37707751989364624, 0.004854510072618723, 0.24194738268852234, 0.23936812579631805, -0.6506143808364868, 0.38169029355049133, 0.40832874178886414, 0.12481153756380081, 0.18716813623905182, 0.07620728760957718, 0.059599004685878754, 0.16143423318862915, 0.16746217012405396, 0.21754586696624756, 0.21547603607177734, 0.001471564406529069, 0.30661192536354065, 0.1469426304101944, 0.58028244972229, -0.35495105385780334, -0.06541968882083893, 0.2021239995956421, 0.016342874616384506, 0.3350754380226135, 0.440996378660202, -0.2998603582382202, -0.12877410650253296, 0.24708548188209534, -0.3163166344165802, 0.2875593304634094, 0.2036585807800293, 0.07500392943620682, 0.6348122954368591, 0.06647244095802307, 0.03716220334172249, 0.4465915858745575, -0.05898628011345863, -0.5137967467308044, 0.019000442698597908, 0.09777799993753433, -0.10535944253206253, -0.08197294920682907, 0.5677701234817505, -0.03921479359269142, -0.24838697910308838, -0.04749784618616104, 0.12345866858959198, 0.0699603408575058, -0.006069852504879236, -0.42089101672172546, -0.0004839543835259974, -0.2475738525390625, -0.11701484024524689, 0.18215708434581757, -0.29997140169143677, 0.34036266803741455, 0.06998411566019058, 0.09292455017566681, -0.03932693228125572, 0.3636168837547302, 0.21262051165103912, 0.0740133747458458, -0.003426147624850273, 0.03286784887313843, -0.17113997042179108, -0.06524138152599335, -0.11634915322065353, 0.18262775242328644, 0.17647981643676758, -0.07687923312187195, -0.3350028693675995, 0.1181720718741417, 0.30571162700653076, -0.20091401040554047, 0.18479570746421814, 0.20097246766090393, -0.11963288486003876, 0.07352016866207123, 0.11324266344308853, 0.110382080078125, -0.03636045381426811, 0.010140514932572842, 0.18469707667827606, 0.07539959251880646, -0.41260120272636414, 0.3575335144996643, -0.14876334369182587, -0.19228486716747284, -0.1361563354730606, 0.009497391991317272, -0.2746707499027252, -0.18557508289813995, 0.5705316662788391, -0.3507176339626312, 0.06341688334941864, -0.17474041879177094, 0.011593739502131939, -0.09909963607788086, 0.5687588453292847, 0.07023759186267853, 0.3151826560497284, -0.16612665355205536, -0.28579947352409363, -0.34183719754219055, -0.15470074117183685, -0.273369163274765, -0.1908329278230667, 0.11863484233617783, 0.3484732508659363, -0.22032137215137482, 0.17137692868709564, -0.0750691294670105, 0.04492473974823952, 0.09843065589666367, 0.28848230838775635, -0.057217683643102646, -0.2439998984336853, -0.2553469240665436, 0.19811731576919556, -0.13027438521385193, -0.21693813800811768, 0.0023588354233652353, -0.11722315102815628, -0.25588303804397583, 0.12788020074367523, -0.12610188126564026, 0.5148496031761169, 0.4746752381324768, -0.11358579248189926, 0.13917353749275208, 0.47001317143440247, 0.1789061576128006, 0.007866297848522663, -0.36398857831954956, 0.06734997034072876, -0.28792765736579895, 0.4713399112224579, -0.0828113704919815, 0.1949864625930786, -0.32800737023353577, 0.044857244938611984, -0.1578529328107834, 0.14213302731513977, 0.03470687195658684, -0.13264191150665283, -0.28428372740745544, -0.03887701407074928, -0.35162895917892456, 0.2111668437719345, 0.7949637770652771, 0.43126869201660156, -0.3226010799407959, -0.0499274842441082, 0.15033553540706635, -0.12830369174480438, -0.09803742170333862, -0.3985469341278076, -0.09303479641675949, 0.16712337732315063, 0.15795272588729858, 0.40696629881858826, -0.09274384379386902, -0.760087251663208, -0.22481819987297058, 0.19736656546592712, -0.2541641592979431, -0.0030325022526085377, 0.034505512565374374, 0.37358686327934265, -0.10248713940382004, -0.06690884381532669, 0.40981951355934143, 0.1500534564256668, -0.31459569931030273, 0.0825318694114685, -0.30061864852905273 ]
https://github.com/huggingface/datasets/issues/259
documentation missing how to split a dataset
Thanks a lot, the new explanation is very helpful! About using train_test_split from sklearn: I stumbled across the [same error message as this user ](https://github.com/huggingface/nlp/issues/147 )and thought it can't be used at the moment in this context. Will check it out again. One of the problems is how to shuffle very large datasets, which don't fit into the memory. Well, one strategy could be shuffling data in sections. But in a case where the data is sorted by the labels you have to swap larger sections first.
I am trying to understand how to split a dataset ( as arrow_dataset). I know I can do something like this to access a split which is already in the original dataset : `ds_test = nlp.load_dataset('imdb, split='test') ` But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)? I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description: > See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information. But the guide seems to be missing. To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this: `ds_test = nlp.load_dataset('imdb, split='test'[:5000]) ` `ds_val = nlp.load_dataset('imdb, split='test'[5000:])` because the imdb test data is sorted by class (probably not a good idea anyway)
87
documentation missing how to split a dataset I am trying to understand how to split a dataset ( as arrow_dataset). I know I can do something like this to access a split which is already in the original dataset : `ds_test = nlp.load_dataset('imdb, split='test') ` But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)? I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description: > See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information. But the guide seems to be missing. To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this: `ds_test = nlp.load_dataset('imdb, split='test'[:5000]) ` `ds_val = nlp.load_dataset('imdb, split='test'[5000:])` because the imdb test data is sorted by class (probably not a good idea anyway) Thanks a lot, the new explanation is very helpful! About using train_test_split from sklearn: I stumbled across the [same error message as this user ](https://github.com/huggingface/nlp/issues/147 )and thought it can't be used at the moment in this context. Will check it out again. One of the problems is how to shuffle very large datasets, which don't fit into the memory. Well, one strategy could be shuffling data in sections. But in a case where the data is sorted by the labels you have to swap larger sections first.
[ 0.09331841766834259, -0.01801232621073723, -0.04407796263694763, 0.20460960268974304, 0.01855981908738613, 0.22938428819179535, 0.3818901479244232, 0.31006714701652527, -0.05234745144844055, 0.056058529764413834, 0.17316673696041107, 0.2897084653377533, -0.2534617781639099, 0.14297077059745789, 0.18269646167755127, -0.3846266269683838, -0.04094903916120529, 0.12388408184051514, 0.21326255798339844, 0.03404397889971733, 0.22808270156383514, -0.1566806584596634, -0.3243977129459381, 0.08330659568309784, -0.37877506017684937, -0.4607851505279541, -0.2420913726091385, 0.01133471168577671, -0.24630630016326904, -0.2269047647714615, 0.21153172850608826, -0.22302141785621643, 0.03255277872085571, 0.31777000427246094, -0.00011655381240416318, -0.015661075711250305, 0.25168296694755554, -0.1430501788854599, -0.14284518361091614, -0.16849809885025024, -0.3076053559780121, -0.06144958734512329, 0.29276546835899353, -0.196269229054451, 0.01649288274347782, -0.16572615504264832, 0.12860529124736786, -0.09317746758460999, 0.4861188530921936, 0.43587028980255127, 0.10815561562776566, -0.07512558996677399, 0.16646520793437958, 0.07563582062721252, 0.11324282735586166, 0.2819310128688812, -0.09770119935274124, 0.11791131645441055, -0.17264142632484436, -0.07621574401855469, -0.21152664721012115, 0.05354805290699005, 0.18237558007240295, 0.15667380392551422, 0.12568460404872894, -0.0841679722070694, -0.4509289860725403, -0.4550997316837311, -0.12960100173950195, 0.4934632182121277, 0.5426619648933411, -0.33394771814346313, -0.30452966690063477, -0.31510668992996216, 0.07164853811264038, -0.2239677906036377, -0.10044470429420471, 0.6579110026359558, -0.0995267927646637, 0.032645586878061295, -0.2173854261636734, -0.24420687556266785, -0.297971248626709, 0.13798628747463226, 0.044028591364622116, 0.41497114300727844, -0.07046536356210709, 0.06224840506911278, 0.3162669241428375, 0.21785925328731537, 0.2886413335800171, 0.05213479697704315, -0.054453495889902115, 0.29825031757354736, -0.2664629817008972, -0.30063796043395996, -0.15050116181373596, -0.37688541412353516, 0.187912717461586, 0.2897792458534241, 0.13688889145851135, -0.09675095230340958, -0.13700442016124725, 0.09684868901968002, 0.4555278718471527, 0.2691029906272888, 0.1787383258342743, 0.5023190975189209, -0.0326177142560482, 0.023678159341216087, -0.0066182962618768215, -0.1938536912202835, -0.12317977100610733, -0.26496919989585876, -0.08597570657730103, 0.05281468480825424, -0.010835129767656326, 0.04016554728150368, -0.27103158831596375, -0.3356516361236572, -0.36712169647216797, -0.11592625826597214, 0.11288052052259445, 0.21405206620693207, 0.054779015481472015, -0.08694437891244888, -0.3301882743835449, 0.22889968752861023, -0.3444640040397644, -0.0770399197936058, -0.147335484623909, 0.28905799984931946, -0.44305095076560974, 0.12140711396932602, 0.15004442632198334, 0.021120302379131317, 0.38252711296081543, -0.1478673219680786, 0.03325435146689415, -0.33632543683052063, 0.19044256210327148, -0.026132602244615555, 0.16685329377651215, 0.3849904537200928, 0.1337273269891739, 0.04648640379309654, 0.03438713029026985, 0.2436409294605255, -0.33239808678627014, 0.022199928760528564, -0.44312784075737, -0.46730002760887146, 0.10608704388141632, 0.01536092720925808, -0.074893519282341, 0.18246620893478394, -0.24128833413124084, 0.29496845602989197, 0.004921585787087679, -0.057735659182071686, 0.16393254697322845, 0.013581634499132633, -0.16461746394634247, -0.3053274154663086, 0.28063586354255676, -0.02708643674850464, -0.33634549379348755, -0.02583424374461174, -0.3241027891635895, 0.004952934570610523, 0.0451367050409317, 0.26348066329956055, -0.3417491316795349, 0.4615698456764221, -0.11729351431131363, 0.38665148615837097, 0.6255984306335449, -0.26659688353538513, -0.09275925159454346, 0.2199225127696991, 0.07376561313867569, -0.270879328250885, -0.06501735001802444, -0.06748327612876892, 0.30045628547668457, 0.09945781528949738, -0.30130043625831604, 0.4073324203491211, -0.2726258337497711, -0.10132808983325958, 0.19033940136432648, -0.27024251222610474, 0.26237624883651733, -0.012560633011162281, -0.1003313660621643, -0.2614186704158783, 0.25027257204055786, 0.4529339671134949, 0.42919325828552246, 0.045756250619888306, 0.1852956861257553, 0.22998514771461487, 0.04364844039082527, 0.17431151866912842, -0.10620826482772827, -0.2931702435016632, -0.341464102268219, -0.06248830258846283, 0.12571154534816742, -0.0733819231390953, 0.04980675131082535, -0.24404267966747284, -0.25456222891807556, -0.17272228002548218, 0.07643892616033554, -0.30395469069480896, 0.05008380115032196, -0.4049409329891205, 0.3367559015750885, -0.0929875373840332, -0.2854805588722229, 0.021039843559265137, -0.30299288034439087, 0.1937655806541443, -0.3741207420825958, 0.17804843187332153, 0.02878943830728531, -0.06636127829551697, 0.16894283890724182, 0.34353435039520264, -0.05265051871538162, -0.059301551431417465, 0.020559493452310562, 0.5714373588562012, 0.5855071544647217, -0.11784768849611282, -0.1375148892402649, 0.015659082680940628, 0.40431731939315796, -0.49503177404403687, 0.15445996820926666, -0.11349016427993774, -0.01538031455129385, 0.0020595770329236984, -0.5048496723175049, 0.28724226355552673, -0.44817420840263367, 0.3501090109348297, 0.25932642817497253, 0.11637434363365173, -0.004246503580361605, -0.16617892682552338, -0.20563749969005585, 0.018675124272704124, -0.18712905049324036, -0.3557150661945343, 0.18876689672470093, -0.03126928582787514, -0.16773292422294617, 0.021776815876364708, 0.5045214891433716, -0.2093382626771927, 0.06272538006305695, -0.11325009912252426, -0.004435108974575996, -0.06865069270133972, 0.18485428392887115, 0.37379327416419983, 0.1804284155368805, 0.07573120296001434, 0.36681437492370605, -0.10506506264209747, -0.2559286952018738, -0.059230394661426544, 0.051270704716444016, 0.23124776780605316, 0.470704585313797, -0.01246766559779644, -0.3037000000476837, -0.12056803703308105, 0.049135059118270874, -0.039538051933050156, 0.20806768536567688, 0.1352887898683548, -0.2522885501384735, 0.057765547186136246, -0.35206809639930725, -0.13496087491512299, -0.5467684268951416, -0.22394415736198425, -0.13222387433052063, -0.27805960178375244, -0.1199297159910202, -0.09838638454675674, -0.02125571109354496, -0.018530596047639847, -0.18625691533088684, 0.001215263968333602, -0.14776311814785004, 0.18173916637897491, 0.3582044243812561, -0.35151055455207825, -0.19673790037631989, 0.04761217162013054, 0.16678734123706818, 0.6737977266311646, 0.2871241271495819, 0.09110477566719055, -0.12306790053844452, 0.028722422197461128, -0.2473859041929245, 0.18659189343452454, -0.17357929050922394, -0.013963252305984497, 0.13367635011672974, 0.16736839711666107, -0.04903485253453255, -0.37446829676628113, -0.18654181063175201, -0.24793142080307007, -0.18759898841381073, 0.036571744829416275, 0.2715953290462494, 0.1522682011127472, -0.16943873465061188, -0.7023666501045227, -0.28425392508506775, -0.2441636472940445, 0.27589505910873413, -0.1915770024061203, 0.18251445889472961, 0.1525357961654663, 0.1924120932817459, 0.33745869994163513, -0.014865247532725334, -0.10659678280353546, 0.20257556438446045, 0.2754473090171814, 0.0045364024117589, -0.41939878463745117, -0.25632956624031067, 0.275409460067749, -0.020039279013872147, 0.13501586019992828, 0.09305740147829056, -0.19247318804264069, 0.25360044836997986, -0.23025204241275787, -0.1527380347251892, -0.030548997223377228, 0.00030864946893416345, 0.29787927865982056, -0.1919727921485901, 0.26872488856315613, -0.14987249672412872, 0.10615884512662888, 0.1293996274471283, -0.13586217164993286, 0.27648988366127014, -0.019510390236973763, 0.2527692914009094, 0.269793838262558, 0.7958998680114746, 0.24563199281692505, 0.02495969831943512, -0.3783942461013794, -0.08167671412229538, 0.12543240189552307, 0.058140430599451065, -0.016463596373796463, 0.16884465515613556, -0.09301115572452545, -0.18854951858520508, 0.0894002839922905, 0.2449335902929306, -0.2968892455101013, 0.05585196986794472, 0.03948811814188957, -0.31089794635772705, -0.4277213513851166, 0.3284144997596741, -0.3879106044769287, 0.18999993801116943, -0.11484185606241226, 0.0036375413183122873, 0.07479896396398544, -0.1614019274711609, -0.3007829189300537, 0.1252625286579132, 0.2318619042634964, 0.09324339032173157, -0.4762069582939148, -0.1768805980682373, -0.23146449029445648, -0.186151921749115, 0.16720032691955566, 0.24466672539710999, -0.08276384323835373, -0.07847470790147781, 0.21899095177650452, 0.2506454586982727, 0.2507939636707306, -0.09502380341291428, -0.03877434507012367, -0.036683738231658936, 0.15504670143127441, -0.28714483976364136, 0.11778195947408676, -0.3360718786716461, 0.298423171043396, 0.09746315330266953, -0.09038198739290237, -0.4383295178413391, -0.4115646183490753, 0.4284507930278778, -0.012499164789915085, -0.11285920441150665, 0.14446336030960083, -0.14085236191749573, -0.18218770623207092, -0.046223703771829605, 0.09680116176605225, 0.368691623210907, -0.0926734134554863, -0.19244620203971863, 0.16784563660621643, -0.06477812677621841, -0.031896647065877914, 0.136111781001091, -0.003485838882625103, 0.32590317726135254, 0.05833110213279724, -0.12473124265670776, 0.3844848871231079, 0.1558675467967987, 0.07515987008810043, 0.312538743019104, -0.13880647718906403, -0.1505507081747055, 0.18164192140102386, -0.08053631335496902, 0.5899171233177185, 0.32869747281074524, 0.13702285289764404, 0.02635255642235279, -0.09422393143177032, -0.20904754102230072, -0.2700946033000946, 0.3084837794303894, 0.10496264696121216, -0.17369391024112701, -0.31261390447616577, -0.6472588181495667, 0.3325084149837494, 0.1801179051399231, -0.04246467724442482, 0.4313409924507141, 0.260911762714386, -0.3862370252609253, 0.4432202875614166, 0.2118074893951416, 0.7920420169830322, 0.012737395241856575, 0.14754340052604675, 0.17563334107398987, -0.270580917596817, 0.6010882258415222, -0.41574904322624207, 0.21808423101902008, -0.23152725398540497, -0.17385311424732208, -0.04964626580476761, -0.26883840560913086, -0.03395998477935791, 0.4327777922153473, -0.006656220182776451, 0.2928551733493805, -0.06401047110557556, 0.011599484831094742, -0.26147234439849854, 0.43194371461868286, -0.09348588436841965, -0.06703251600265503, 0.07831672579050064, 0.04381775110960007, -0.13532839715480804, -0.010201659984886646, 0.04970613867044449, -0.07175547629594803, -0.2648785710334778, 0.10495492815971375, -0.3984522521495819, 0.04112767428159714, -0.10096210241317749, 0.17649054527282715, -0.12267181277275085, -0.14095303416252136, 0.3335611820220947, 0.17613179981708527, 0.025563349947333336, -0.0076104458421468735, -0.09461048990488052, 0.2742566466331482, -0.18840950727462769, -0.14894206821918488, -0.040704455226659775, 0.05720122158527374, 0.4263286590576172, 0.15376006066799164, -0.27956080436706543, 0.041129425168037415, -0.19634002447128296, -0.14615575969219208, -0.040378328412771225, 0.3116205632686615, 0.15426887571811676, -0.3274495005607605, -0.17012278735637665, 0.18625183403491974, 0.04582318291068077, -0.005372767802327871, 0.06349271535873413, -0.024748725816607475, -0.17715667188167572, 0.15705245733261108, -0.026998989284038544, -0.12441489100456238, 0.04412262886762619, -0.13269691169261932, 0.04760508984327316, 0.07935609668493271, 0.36460912227630615, 0.07177451252937317, -0.037121132016181946, -0.224720761179924, 0.2982897162437439, 0.45973172783851624, -0.3562624752521515, -0.007819361053407192, -0.37599489092826843, 0.14225608110427856, 0.10809444636106491, -0.12505628168582916, 0.11672899127006531, 0.3218551278114319, -0.21428249776363373, -0.4522640109062195, 0.004052091855555773, 0.477644681930542, -0.18178510665893555, 0.27964791655540466, -0.2963924705982208, 0.17024284601211548, -0.004110153764486313, 0.3981897532939911, -0.18848367035388947, 0.20167848467826843, 0.09946837276220322, 0.35577601194381714, 0.042250365018844604, 0.09186717122793198, 0.1398097574710846, -0.12596707046031952, -0.1074640303850174, 0.0369795560836792, 0.14035388827323914, -0.1437070369720459, -0.0898948609828949, 0.1539747565984726, -0.04611079394817352, 0.06167421117424965, -0.22604331374168396, -0.32563847303390503, -0.17452308535575867, -0.07235267758369446, 0.005328880622982979, -0.044433511793613434, 0.18319684267044067, 0.43268096446990967, 0.3581691384315491, 0.18343062698841095, -0.18961437046527863, 0.1988261491060257, -0.09629061073064804, 0.29027414321899414, 0.03510907664895058, 0.2474217265844345, 0.2076583057641983, 0.12593282759189606, -0.265509694814682, -0.00893067941069603, 0.23364800214767456, -0.33115285634994507, 0.00006182258948683739, 0.18743357062339783, 0.27260756492614746, -0.4687638282775879, 0.3732597231864929, 0.4829464554786682, 0.1707509458065033, 0.05433696508407593, 0.24561460316181183, 0.06583189964294434, 0.1364286243915558, 0.19679121673107147, 0.26030558347702026, 0.15902847051620483, -0.010203763842582703, 0.30611246824264526, 0.0887351930141449, 0.5125870108604431, -0.42268022894859314, -0.03173075616359711, 0.15964822471141815, 0.005354386754333973, 0.35063496232032776, 0.46536269783973694, -0.23535597324371338, -0.1776268035173416, 0.2543799877166748, -0.3389161229133606, 0.32597815990448, 0.21591269969940186, 0.16562283039093018, 0.6236851215362549, 0.04479469358921051, 0.06629778444766998, 0.35610848665237427, -0.13596653938293457, -0.5598909258842468, 0.1638806164264679, 0.08628673106431961, -0.050728898495435715, -0.2131100296974182, 0.607628583908081, -0.05917833000421524, -0.21036842465400696, -0.04596488177776337, 0.1484452337026596, 0.053534794598817825, 0.018405567854642868, -0.3480508625507355, -0.11280649900436401, -0.22028520703315735, -0.03550059348344803, 0.1682535707950592, -0.31673356890678406, 0.3955669403076172, 0.02335282228887081, 0.050686292350292206, -0.07781249284744263, 0.31855446100234985, 0.3223925530910492, 0.16124126315116882, -0.051693350076675415, -0.03849869593977928, -0.18337999284267426, -0.12029828876256943, 0.05491688847541809, 0.10423357784748077, 0.1393313705921173, -0.008013446815311909, -0.32889461517333984, 0.025801436975598335, 0.2802724540233612, -0.17537565529346466, 0.2165519744157791, 0.3208751082420349, 0.02613053470849991, -0.04677809402346611, 0.15684479475021362, 0.09373156726360321, -0.05060983821749687, -0.04794396832585335, 0.199244886636734, 0.010978336445987225, -0.3903980553150177, 0.3062102496623993, -0.05602520704269409, -0.1820002794265747, -0.08713381737470627, 0.02120741456747055, -0.2622388005256653, -0.12150596082210541, 0.34633880853652954, -0.2991253435611725, 0.07905061542987823, -0.16138726472854614, 0.0048942361027002335, -0.05721447989344597, 0.6285126805305481, 0.13396455347537994, 0.2206524759531021, -0.22744587063789368, -0.28800591826438904, -0.3233341574668884, -0.16009461879730225, -0.32858526706695557, -0.19750112295150757, 0.13906235992908478, 0.33642810583114624, -0.2651441991329193, 0.1710466593503952, -0.18043209612369537, 0.08042853325605392, 0.13381367921829224, 0.29414400458335876, -0.12289786338806152, -0.22381357848644257, -0.25817787647247314, 0.14294762909412384, -0.11188627034425735, -0.27862364053726196, 0.0020923439878970385, 0.014958526007831097, -0.29385027289390564, 0.191971093416214, -0.025743335485458374, 0.4331859052181244, 0.4787181615829468, -0.21020765602588654, 0.13810034096240997, 0.5317721962928772, 0.24466075003147125, 0.037365470081567764, -0.3966123163700104, 0.010309984907507896, -0.30662527680397034, 0.35140755772590637, -0.058364059776067734, 0.24318687617778778, -0.33069971203804016, 0.030847905203700066, -0.17172738909721375, 0.18544431030750275, 0.022396063432097435, -0.12885276973247528, -0.33400893211364746, -0.051649339497089386, -0.3499397337436676, 0.2240883708000183, 0.7802200317382812, 0.47242528200149536, -0.3136303126811981, -0.05463671684265137, 0.169692724943161, -0.09948167949914932, -0.08105461299419403, -0.41019174456596375, -0.17437386512756348, 0.1650429517030716, 0.13397502899169922, 0.3939224183559418, -0.14028078317642212, -0.7209001183509827, -0.16388483345508575, 0.16052821278572083, -0.10279835760593414, 0.09483089298009872, 0.0975644588470459, 0.26382437348365784, -0.12343037873506546, 0.0006557997548952699, 0.41919952630996704, 0.07783909887075424, -0.30939507484436035, 0.056699369102716446, -0.30028361082077026 ]
https://github.com/huggingface/datasets/issues/259
documentation missing how to split a dataset
We added a way to shuffle datasets (shuffle the indices and then reorder to make a new dataset). You can do `shuffled_dset = dataset.shuffle(seed=my_seed)`. It shuffles the whole dataset. There is also `dataset.train_test_split()` which if very handy (with the same signature as sklearn). Closing this issue as we added the docs for splits and tools to split datasets. Thanks again for your feedback !
I am trying to understand how to split a dataset ( as arrow_dataset). I know I can do something like this to access a split which is already in the original dataset : `ds_test = nlp.load_dataset('imdb, split='test') ` But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)? I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description: > See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information. But the guide seems to be missing. To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this: `ds_test = nlp.load_dataset('imdb, split='test'[:5000]) ` `ds_val = nlp.load_dataset('imdb, split='test'[5000:])` because the imdb test data is sorted by class (probably not a good idea anyway)
64
documentation missing how to split a dataset I am trying to understand how to split a dataset ( as arrow_dataset). I know I can do something like this to access a split which is already in the original dataset : `ds_test = nlp.load_dataset('imdb, split='test') ` But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)? I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description: > See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information. But the guide seems to be missing. To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this: `ds_test = nlp.load_dataset('imdb, split='test'[:5000]) ` `ds_val = nlp.load_dataset('imdb, split='test'[5000:])` because the imdb test data is sorted by class (probably not a good idea anyway) We added a way to shuffle datasets (shuffle the indices and then reorder to make a new dataset). You can do `shuffled_dset = dataset.shuffle(seed=my_seed)`. It shuffles the whole dataset. There is also `dataset.train_test_split()` which if very handy (with the same signature as sklearn). Closing this issue as we added the docs for splits and tools to split datasets. Thanks again for your feedback !
[ 0.04032161086797714, 0.028682712465524673, -0.05983380228281021, 0.16467401385307312, -0.03913889452815056, 0.20289035141468048, 0.41115087270736694, 0.3333025276660919, -0.08382654190063477, 0.04181884229183197, 0.1581258475780487, 0.3008447587490082, -0.19782347977161407, 0.15138091146945953, 0.1966465413570404, -0.3646209239959717, -0.05800532549619675, 0.19849850237369537, 0.22895799577236176, -0.0036904544103890657, 0.25620126724243164, -0.10712911933660507, -0.30442339181900024, 0.12092790752649307, -0.3231811821460724, -0.46185311675071716, -0.229588583111763, -0.03113947995007038, -0.27340370416641235, -0.19202060997486115, 0.20997101068496704, -0.18233533203601837, 0.03209173306822777, 0.3054244816303253, -0.00011610495130298659, -0.010880853980779648, 0.24656634032726288, -0.1087707057595253, -0.11473800241947174, -0.22363656759262085, -0.3785129189491272, -0.030364278703927994, 0.36818405985832214, -0.1375395506620407, 0.0056153289042413235, -0.25173214077949524, 0.12258946150541306, -0.17821194231510162, 0.5087326765060425, 0.44073382019996643, 0.11155960708856583, 0.003552271518856287, 0.17675350606441498, 0.10351621359586716, 0.04240330308675766, 0.3595416843891144, -0.10657002776861191, 0.09570813924074173, -0.1545082926750183, -0.10494890809059143, -0.12685465812683105, 0.04060206562280655, 0.16669093072414398, 0.19255226850509644, 0.1087987869977951, -0.035980138927698135, -0.36446595191955566, -0.490059494972229, -0.12549850344657898, 0.5456265211105347, 0.60051029920578, -0.33566761016845703, -0.33388131856918335, -0.27987998723983765, 0.07615512609481812, -0.22879044711589813, -0.12582194805145264, 0.6406732797622681, -0.11848101019859314, 0.029166392982006073, -0.14757674932479858, -0.2527890205383301, -0.28962868452072144, 0.13979418575763702, 0.04767003655433655, 0.4324973225593567, -0.08437338471412659, 0.058346305042505264, 0.2639944553375244, 0.22298534214496613, 0.31539592146873474, -0.0034204625990241766, -0.08135364949703217, 0.2925683856010437, -0.24249494075775146, -0.2924630045890808, -0.17155955731868744, -0.3974408209323883, 0.13248373568058014, 0.2986201345920563, 0.13614076375961304, -0.08381716161966324, -0.19492107629776, 0.13451270759105682, 0.4678725004196167, 0.20583473145961761, 0.23960720002651215, 0.47904837131500244, -0.0016800924204289913, -0.026334714144468307, 0.018089236691594124, -0.18623743951320648, -0.02082408219575882, -0.2293931394815445, -0.029344329610466957, 0.07501734793186188, 0.12169789522886276, 0.06604550778865814, -0.25642576813697815, -0.3403439521789551, -0.3157752454280853, -0.18481403589248657, 0.10665003955364227, 0.13250504434108734, 0.08282500505447388, -0.0800073891878128, -0.31984543800354004, 0.279264897108078, -0.35139650106430054, -0.1381857991218567, -0.1297212690114975, 0.21638715267181396, -0.41619500517845154, 0.1454455852508545, 0.11283320188522339, -0.003896184731274843, 0.3922373652458191, -0.08318302035331726, 0.020149340853095055, -0.375584214925766, 0.28468742966651917, 0.017129547894001007, 0.18918655812740326, 0.37796926498413086, 0.18095703423023224, 0.044061604887247086, 0.05984598770737648, 0.13182435929775238, -0.32880210876464844, -0.004824305418878794, -0.3971320390701294, -0.42488402128219604, -0.03210536763072014, 0.028271785005927086, -0.04149961099028587, 0.19020585715770721, -0.267234742641449, 0.3510202467441559, -0.0028940311167389154, -0.054686445742845535, 0.20169192552566528, 0.02771652862429619, -0.1759251058101654, -0.3253220021724701, 0.25098925828933716, 0.01488098781555891, -0.38576841354370117, -0.03916943073272705, -0.37690451741218567, -0.04019243270158768, -0.01849100925028324, 0.16504335403442383, -0.377442330121994, 0.4833279550075531, -0.11272706091403961, 0.4063951373100281, 0.6908683180809021, -0.19897465407848358, -0.034079380333423615, 0.23109126091003418, 0.12390721589326859, -0.26872071623802185, -0.11322278529405594, -0.05450572445988655, 0.3031635880470276, 0.11683544516563416, -0.4216468632221222, 0.3843093812465668, -0.3077020049095154, -0.1268479973077774, 0.283200204372406, -0.2548278570175171, 0.24401560425758362, -0.06546463072299957, -0.08254174888134003, -0.2543240189552307, 0.2538760006427765, 0.32070985436439514, 0.4920060336589813, 0.02802952006459236, 0.1801443248987198, 0.19091297686100006, 0.061657845973968506, 0.21790936589241028, -0.06643284857273102, -0.30250275135040283, -0.3309570550918579, -0.07930442690849304, 0.15601661801338196, -0.07121182978153229, 0.005827033426612616, -0.26461511850357056, -0.20661145448684692, -0.1726134866476059, 0.035184986889362335, -0.33874058723449707, 0.059470199048519135, -0.3565596044063568, 0.2210896909236908, -0.1259916126728058, -0.40236178040504456, 0.021791251376271248, -0.23595182597637177, 0.2421005368232727, -0.43504899740219116, 0.17476633191108704, 0.06471571326255798, -0.08167758584022522, 0.1286369115114212, 0.28141212463378906, -0.0714055672287941, -0.11383743584156036, -0.004346177913248539, 0.5958952903747559, 0.5878081321716309, -0.0264427587389946, -0.13469107449054718, 0.0432593859732151, 0.40559449791908264, -0.5084707140922546, 0.21291261911392212, -0.059984609484672546, 0.01600765995681286, 0.008107378147542477, -0.4583733379840851, 0.3185172975063324, -0.4548645615577698, 0.3451865017414093, 0.20450861752033234, 0.1280924528837204, 0.015454993583261967, -0.1400161236524582, -0.2886718809604645, 0.026416389271616936, -0.23690228164196014, -0.38427701592445374, 0.18044012784957886, -0.0482528954744339, -0.16476085782051086, 0.062356218695640564, 0.4256390929222107, -0.21522119641304016, 0.12373513728380203, -0.11507464945316315, 0.009507621638476849, -0.04332336410880089, 0.13877572119235992, 0.4403601586818695, 0.21068425476551056, 0.052676521241664886, 0.3590404689311981, -0.0993298813700676, -0.24843071401119232, -0.05966470018029213, 0.13574793934822083, 0.2258342057466507, 0.4377184212207794, -0.05570428445935249, -0.4013494849205017, -0.09798182547092438, 0.0026900460943579674, -0.0214842576533556, 0.16222944855690002, 0.08480382710695267, -0.2820228636264801, 0.07944902032613754, -0.3813346326351166, -0.14990079402923584, -0.5209009051322937, -0.27751490473747253, -0.10699760913848877, -0.26469793915748596, -0.16758300364017487, -0.09833987057209015, 0.0030451344791799784, -0.02653057686984539, -0.17902174592018127, -0.05681246146559715, -0.17165182530879974, 0.20673273503780365, 0.3574618697166443, -0.31444525718688965, -0.1490800380706787, 0.05074511840939522, 0.20324291288852692, 0.6589837074279785, 0.2827359735965729, 0.05394292250275612, -0.10182752460241318, 0.005201070569455624, -0.2792687714099884, 0.2223033756017685, -0.1885465681552887, -0.01036958210170269, 0.1580081582069397, 0.18674875795841217, 0.0028786163311451674, -0.3813953697681427, -0.25664618611335754, -0.24401263892650604, -0.17780841886997223, -0.018232550472021103, 0.20755797624588013, 0.09968007355928421, -0.1586858481168747, -0.7297608256340027, -0.2971607744693756, -0.18672062456607819, 0.24421809613704681, -0.2553653419017792, 0.2198874056339264, 0.201742023229599, 0.15176910161972046, 0.3269977569580078, 0.021453144028782845, -0.06577325612306595, 0.20235660672187805, 0.2355845421552658, -0.0004924921086058021, -0.4409201741218567, -0.19993500411510468, 0.310566246509552, -0.030849935486912727, 0.19857993721961975, 0.03157472610473633, -0.1794951856136322, 0.2157319039106369, -0.1878325492143631, -0.06762684136629105, -0.05776500329375267, -0.005910368636250496, 0.2933513820171356, -0.14673635363578796, 0.25939783453941345, -0.15763185918331146, 0.08947602659463882, 0.11739882826805115, -0.1268904060125351, 0.2416573464870453, 0.025677641853690147, 0.30072590708732605, 0.2090369462966919, 0.7162436842918396, 0.21692004799842834, -0.04961195960640907, -0.30788230895996094, -0.11982208490371704, 0.12274536490440369, 0.08320014923810959, -0.06935646384954453, 0.060177844017744064, -0.056551091372966766, -0.12304652482271194, 0.05713162198662758, 0.22249725461006165, -0.3131631910800934, 0.04924382269382477, 0.01980055496096611, -0.3851719796657562, -0.4363873600959778, 0.2914070188999176, -0.4392450451850891, 0.18465402722358704, -0.08337170630693436, 0.015539154410362244, 0.09900487214326859, -0.08828767389059067, -0.33879634737968445, 0.17838837206363678, 0.25239062309265137, 0.06755038350820541, -0.3932364881038666, -0.1368219256401062, -0.17243225872516632, -0.16029565036296844, 0.13636377453804016, 0.22373488545417786, -0.08130307495594025, -0.010578546673059464, 0.20969603955745697, 0.264386922121048, 0.28604307770729065, -0.14419500529766083, -0.08684199303388596, -0.06860734522342682, 0.15270863473415375, -0.3193497359752655, 0.10822895914316177, -0.2728939950466156, 0.37313392758369446, 0.04784179478883743, -0.0624200813472271, -0.3523029088973999, -0.4623902440071106, 0.4459834396839142, -0.022501181811094284, -0.10897693783044815, 0.1317497342824936, -0.12187852710485458, -0.20836424827575684, 0.0165912676602602, 0.07180564850568771, 0.31530678272247314, -0.15713460743427277, -0.13445284962654114, 0.11000783741474152, -0.08137088268995285, -0.05635777860879898, 0.15612493455410004, -0.022292256355285645, 0.3218560516834259, 0.0912838727235794, -0.1056618019938469, 0.39785200357437134, 0.09259574115276337, 0.020418725907802582, 0.2542870044708252, -0.13030119240283966, -0.17568500339984894, 0.1556493639945984, -0.12783928215503693, 0.5831707715988159, 0.2837544083595276, 0.12742169201374054, 0.039048559963703156, -0.1054624393582344, -0.21308168768882751, -0.2523539364337921, 0.2407674938440323, 0.20485053956508636, -0.1252407282590866, -0.2370988130569458, -0.6877887845039368, 0.34603726863861084, 0.12995094060897827, -0.04631902277469635, 0.5394687056541443, 0.2873896658420563, -0.3330206274986267, 0.42257046699523926, 0.20159824192523956, 0.7477275133132935, 0.0762854665517807, 0.07329387217760086, 0.17544957995414734, -0.3295333981513977, 0.5686728358268738, -0.3917843997478485, 0.1484682410955429, -0.20931974053382874, -0.1846495270729065, -0.12174858152866364, -0.2601589858531952, -0.002402394311502576, 0.37963181734085083, -0.02065402828156948, 0.3090943694114685, -0.12201888859272003, -0.038831260055303574, -0.18526969850063324, 0.4369947910308838, -0.157867893576622, -0.038632832467556, 0.11717518419027328, 0.04970814287662506, -0.170185849070549, -0.03154156729578972, 0.06861551105976105, -0.09705943614244461, -0.23836620151996613, 0.0897885337471962, -0.4137590527534485, -0.003986148629337549, -0.09363473951816559, 0.17431630194187164, -0.11657626181840897, -0.12858375906944275, 0.3310357332229614, 0.20149332284927368, 0.07695012539625168, -0.04699964448809624, -0.08624732494354248, 0.264433354139328, -0.15505829453468323, -0.08023469895124435, -0.11832453310489655, 0.007897750474512577, 0.42446649074554443, 0.17772331833839417, -0.3372209370136261, -0.0016752611845731735, -0.14748387038707733, -0.140435129404068, 0.03170561417937279, 0.31006431579589844, 0.20730440318584442, -0.30792978405952454, -0.05977120250463486, 0.20926858484745026, 0.01768866367638111, 0.03009517304599285, 0.07010691612958908, 0.03239823505282402, -0.18817558884620667, 0.20461951196193695, -0.005717928055673838, -0.16750530898571014, 0.03801198676228523, -0.1753721386194229, 0.061903804540634155, 0.12149307131767273, 0.3558526635169983, 0.06765078008174896, -0.0374215692281723, -0.23571988940238953, 0.3150266110897064, 0.43898463249206543, -0.3237159252166748, -0.027406316250562668, -0.4423144459724426, 0.18740002810955048, 0.12536433339118958, -0.20002371072769165, 0.055618543177843094, 0.3773561716079712, -0.28827986121177673, -0.4561295807361603, 0.0860731229186058, 0.38666731119155884, -0.17158760130405426, 0.31588074564933777, -0.26767000555992126, 0.09841302037239075, 0.05521025508642197, 0.38801684975624084, -0.18367686867713928, 0.2403482347726822, 0.20493796467781067, 0.3693642318248749, 0.06575129181146622, 0.09621262550354004, 0.19039440155029297, -0.16573217511177063, -0.08428619801998138, 0.0015349293826147914, 0.1375172734260559, -0.15802597999572754, -0.12334660440683365, 0.15133029222488403, -0.09740806370973587, 0.01740938052535057, -0.1899465024471283, -0.29512855410575867, -0.23185057938098907, -0.05452905222773552, -0.03320339694619179, -0.06778179854154587, 0.1707523763179779, 0.40921008586883545, 0.37387019395828247, 0.13425390422344208, -0.2121088057756424, 0.12073515355587006, -0.08661231398582458, 0.32350239157676697, 0.030281372368335724, 0.2924143671989441, 0.15572114288806915, 0.07963134348392487, -0.26414206624031067, 0.004311676137149334, 0.25128039717674255, -0.38337013125419617, 0.0201571062207222, 0.22846412658691406, 0.24739162623882294, -0.5429638624191284, 0.402904212474823, 0.4616822302341461, 0.15104757249355316, 0.1251658797264099, 0.16137389838695526, 0.07373783737421036, 0.16382859647274017, 0.19374823570251465, 0.22261042892932892, 0.23137108981609344, -0.025392165407538414, 0.28962868452072144, 0.08568960428237915, 0.5033316016197205, -0.39933931827545166, -0.06613921374082565, 0.18732351064682007, -0.025237543508410454, 0.39621779322624207, 0.43889474868774414, -0.27883535623550415, -0.16009831428527832, 0.26306915283203125, -0.3144688904285431, 0.2578747272491455, 0.15247203409671783, 0.09744091331958771, 0.595857560634613, 0.0711132362484932, 0.01408300455659628, 0.43748220801353455, -0.048614826053380966, -0.5118052363395691, 0.12021884322166443, 0.08198608458042145, -0.10598219186067581, -0.0782758817076683, 0.6175236105918884, -0.05257699638605118, -0.20818109810352325, -0.04922007769346237, 0.1359013468027115, 0.09032076597213745, 0.017596665769815445, -0.4294459819793701, -0.05283987894654274, -0.26673761010169983, -0.08939025551080704, 0.15850776433944702, -0.2950606942176819, 0.32041773200035095, 0.07350800931453705, 0.07175976037979126, -0.07714477926492691, 0.35611918568611145, 0.28114113211631775, 0.10605806112289429, -0.03465009853243828, -0.04615568369626999, -0.13544081151485443, -0.09427005797624588, -0.009774119593203068, 0.22053541243076324, 0.15718695521354675, -0.04359479248523712, -0.35758861899375916, 0.10804793983697891, 0.29325178265571594, -0.1990910768508911, 0.24992819130420685, 0.23949985206127167, -0.06114574149250984, 0.0016484404914081097, 0.13251063227653503, 0.11824358254671097, -0.023855336010456085, -0.015528589487075806, 0.17638461291790009, 0.061580829322338104, -0.41816645860671997, 0.34361255168914795, -0.0968581959605217, -0.14697636663913727, -0.11981269717216492, 0.02433195523917675, -0.2717854380607605, -0.14484988152980804, 0.4898410439491272, -0.29373863339424133, 0.04989086464047432, -0.17401793599128723, 0.011580957099795341, -0.07375960052013397, 0.5757769346237183, 0.10351747274398804, 0.2875744700431824, -0.18912163376808167, -0.2778646647930145, -0.3347233533859253, -0.1771015226840973, -0.24440672993659973, -0.16438303887844086, 0.11530453711748123, 0.3453467786312103, -0.19904887676239014, 0.17235326766967773, -0.09624606370925903, 0.055365148931741714, 0.12450991570949554, 0.31760331988334656, -0.07206127792596817, -0.2481212019920349, -0.26123514771461487, 0.19507984817028046, -0.11447157710790634, -0.23095585405826569, -0.00033619138412177563, -0.07479027658700943, -0.2715565264225006, 0.1687702238559723, -0.06199115514755249, 0.5020118355751038, 0.4536442160606384, -0.17450043559074402, 0.11708668619394302, 0.5048569440841675, 0.21035055816173553, 0.041302021592855453, -0.37596243619918823, 0.05233399197459221, -0.33603230118751526, 0.41538769006729126, -0.054098039865493774, 0.22031326591968536, -0.31312090158462524, 0.019466523081064224, -0.18057399988174438, 0.15909019112586975, -0.0025379254948347807, -0.15743090212345123, -0.3457919955253601, -0.06791281700134277, -0.3383205533027649, 0.1855577826499939, 0.7595590353012085, 0.42158418893814087, -0.3276265561580658, -0.03235059231519699, 0.1678059697151184, -0.09361167252063751, -0.07497534155845642, -0.3846348822116852, -0.12076728790998459, 0.11813352257013321, 0.15828680992126465, 0.38578131794929504, -0.08686719834804535, -0.7019301056861877, -0.18412736058235168, 0.18196018040180206, -0.18547937273979187, 0.08952321112155914, 0.09270592778921127, 0.357992023229599, -0.09053000807762146, -0.045503582805395126, 0.39203357696533203, 0.14286206662654877, -0.2787573039531708, 0.0489715114235878, -0.29140743613243103 ]
https://github.com/huggingface/datasets/issues/258
Why is dataset after tokenization far more larger than the orginal one ?
Hi ! This is because `.map` added the new column `input_ids` to the dataset, and so all the other columns were kept. Therefore the dataset size increased a lot. If you want to only keep the `input_ids` column, you can stash the other ones by specifying `remove_columns=["title", "text"]` in the arguments of `.map`
I tokenize wiki dataset by `map` and cache the results. ``` def tokenize_tfm(example): example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text'])) return example wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train'] wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow") ``` and when I see their size ``` ls -l --block-size=M 17460M wikipedia-train.arrow 47511M tokenized_wiki.arrow ``` The tokenized one is over 2x size of original one. Is there something I did wrong ?
53
Why is dataset after tokenization far more larger than the orginal one ? I tokenize wiki dataset by `map` and cache the results. ``` def tokenize_tfm(example): example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text'])) return example wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train'] wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow") ``` and when I see their size ``` ls -l --block-size=M 17460M wikipedia-train.arrow 47511M tokenized_wiki.arrow ``` The tokenized one is over 2x size of original one. Is there something I did wrong ? Hi ! This is because `.map` added the new column `input_ids` to the dataset, and so all the other columns were kept. Therefore the dataset size increased a lot. If you want to only keep the `input_ids` column, you can stash the other ones by specifying `remove_columns=["title", "text"]` in the arguments of `.map`
[ -0.059119511395692825, -0.0847911685705185, 0.051376909017562866, 0.08934849500656128, 0.0501224510371685, 0.061709608882665634, 0.3212461471557617, 0.41818881034851074, -0.04780895635485649, -0.09947514533996582, -0.10500580072402954, 0.29056087136268616, 0.07891775667667389, -0.14244231581687927, 0.22023391723632812, -0.08854831755161285, 0.33975496888160706, 0.027373185381293297, 0.17828194797039032, -0.20898300409317017, -0.007720456458628178, 0.004556936677545309, -0.15893083810806274, 0.040878426283597946, -0.4096503257751465, -0.06494559347629547, -0.19326110184192657, -0.11585941165685654, -0.37638455629348755, -0.45427000522613525, 0.017773693427443504, 0.11248467862606049, 0.45157143473625183, 0.2357398122549057, -0.00012702742242254317, -0.30086562037467957, 0.01543723326176405, -0.0012037995038554072, 0.011203539557754993, 0.35859882831573486, 0.19096150994300842, -0.5831571221351624, -0.12455512583255768, -0.25491511821746826, 0.26530221104621887, -0.5587725639343262, -0.29600340127944946, 0.22782430052757263, -0.010379442945122719, -0.11841586232185364, 0.09640325605869293, -0.14086005091667175, -0.0603276863694191, 0.42771804332733154, 0.09496540576219559, 0.025830823928117752, -0.08704622089862823, -0.236140638589859, -0.14812816679477692, -0.24969610571861267, -0.019383421167731285, 0.20226113498210907, -0.04803524166345596, -0.24934150278568268, 0.3461991548538208, -0.03341173753142357, -0.17995762825012207, -0.02258070558309555, 0.3381361663341522, 0.22315046191215515, 0.3686371147632599, -0.09173081815242767, 0.07642030715942383, -0.26638486981391907, -0.15127074718475342, -0.1332913190126419, -0.15262632071971893, 0.1295679658651352, 0.3435027003288269, -0.06652606278657913, -0.39928561449050903, -0.08628292381763458, 0.20937053859233856, 0.23396368324756622, -0.2337770164012909, 0.5117802619934082, 0.03492020070552826, 0.22417299449443817, -0.2702217102050781, -0.1453222930431366, -0.10400460660457611, -0.18281595408916473, -0.1459910124540329, 0.45628947019577026, -0.360428124666214, -0.3879570960998535, 0.08032858371734619, -0.07795730978250504, 0.43373191356658936, -0.26861771941185, -0.38367760181427, 0.028689416125416756, -0.006412274669855833, -0.20137760043144226, 0.14446765184402466, 0.5048398971557617, -0.2656994163990021, 0.4378584921360016, -0.09575336426496506, -0.12296432256698608, -0.45965802669525146, -0.1897004246711731, 0.04711706191301346, 0.17094609141349792, 0.23458951711654663, -0.29915446043014526, -0.2995206415653229, -0.03883122652769089, 0.27626192569732666, 0.2337455451488495, -0.4753178060054779, 0.05764857679605484, -0.1413368433713913, 0.3265320360660553, -0.12757188081741333, 0.3444325029850006, -0.3865054249763489, 0.1868571937084198, -0.13302424550056458, 0.01534972619265318, -0.1350690871477127, -0.18003667891025543, 0.098973847925663, 0.17257088422775269, -0.2482743263244629, 0.23823603987693787, 0.3281417787075043, 0.12043116241693497, -0.14697621762752533, -0.0860266163945198, 0.4267897307872772, -0.17270755767822266, 0.39364975690841675, 0.14427833259105682, 0.11970356106758118, 0.34756800532341003, -0.04413054138422012, -0.12564556300640106, -0.19792447984218597, 0.1588638871908188, -0.5327584743499756, -0.19502681493759155, -0.05608031153678894, 0.021750472486019135, 0.005869769025593996, -0.02635370008647442, -0.36281290650367737, 0.37489938735961914, 0.4107339382171631, -0.06625210493803024, 0.17581304907798767, -0.30056068301200867, -0.3777947425842285, -0.21447783708572388, -0.013327746652066708, -0.07812473922967911, -0.108525350689888, -0.0072017027996480465, 0.2633263170719147, 0.3220471143722534, 0.3666019141674042, 0.6014493107795715, -0.2251371443271637, 0.5065835118293762, -0.24515613913536072, 0.3823334872722626, 0.40536707639694214, -0.3021143972873688, -0.7379574179649353, 0.32079434394836426, 0.15917401015758514, 0.2684873640537262, -0.16128872334957123, -0.01884477771818638, 0.5017417669296265, 0.09207065403461456, 0.052784040570259094, 0.26010051369667053, -0.050284743309020996, 0.12133906781673431, -0.3101271390914917, -0.1889878511428833, 0.35509368777275085, -0.5069996118545532, 0.19823478162288666, 0.05771235376596451, 0.03668387606739998, 0.4232873022556305, 0.41013017296791077, 0.0688467025756836, 0.2923916280269623, 0.23463569581508636, -0.022850675508379936, 0.08898628503084183, 0.2690241038799286, 0.07330041378736496, 0.09403976052999496, -0.08586608618497849, -0.08047669380903244, -0.110784150660038, 0.19960401952266693, -0.4010842442512512, -0.19319094717502594, -0.06629693508148193, -0.09751632809638977, -0.3066633343696594, 0.004855039529502392, -0.10042703151702881, 0.11778233200311661, -0.0441289097070694, 0.2117988020181656, 0.10142629593610764, -0.0825837254524231, 0.09123194962739944, 0.0964544340968132, 0.15638962388038635, 0.11612098664045334, 0.18236245214939117, -0.26177671551704407, 0.2670947313308716, 0.18193700909614563, -0.0376797579228878, -0.21081364154815674, 0.09187132120132446, 0.10519351065158844, 0.03651123866438866, 0.15220893919467926, 0.390608012676239, 0.1717032492160797, 0.0953812301158905, 0.46082037687301636, -0.03809444606304169, 0.011727842502295971, -0.1451401561498642, 0.15430021286010742, 0.33069702982902527, 0.3767088055610657, 0.11662625521421432, 0.013811329379677773, -0.24629221856594086, 0.18226101994514465, 0.01908399537205696, 0.13453248143196106, -0.2554035782814026, -0.20804919302463531, 0.21563516557216644, -0.01921224594116211, 0.02406373806297779, 0.11250077188014984, 0.3427211046218872, 0.4778449237346649, -0.1071346253156662, -0.13532428443431854, 0.12465691566467285, -0.6855461001396179, -0.5055297613143921, 0.15784524381160736, 0.053100910037755966, 0.24582543969154358, 0.09888840466737747, 0.29332926869392395, 0.027764948084950447, 0.19589117169380188, 0.11157695204019547, 0.18519194424152374, -0.06813885271549225, -0.009855357930064201, 0.17791986465454102, 0.45782044529914856, 0.12719835340976715, -0.2502455711364746, 0.2510232925415039, 0.02229914255440235, 0.4215031862258911, -0.09490852057933807, 0.1341172307729721, -0.21858522295951843, -0.050642747431993484, 0.013700108975172043, -0.0659857913851738, -0.19648903608322144, -0.4311215579509735, -0.0915188267827034, -0.03148331493139267, 0.3101440668106079, -0.16400159895420074, -0.10094117373228073, 0.0141445342451334, 0.12986837327480316, 0.1178557351231575, 0.130728617310524, -0.048139285296201706, -0.3677671551704407, -0.043739452958106995, -0.0823240652680397, -0.09464222937822342, 0.26720064878463745, 0.13293683528900146, -0.06954418122768402, -0.41357117891311646, -0.7815629243850708, 0.06334766000509262, -0.1783963143825531, 0.06645992398262024, -0.045736584812402725, 0.007566302549093962, -0.48515623807907104, 0.16964976489543915, -0.027793098241090775, 0.02674281597137451, -0.1989867389202118, -0.052346937358379364, -0.34822186827659607, 0.12791287899017334, 0.15934769809246063, -0.025175565853714943, -0.01634339801967144, 0.07509148865938187, -0.03678470849990845, 0.0466039665043354, 0.06857676059007645, 0.03801010549068451, -0.2096305787563324, -0.10176261514425278, -0.05538780242204666, -0.15679584443569183, -0.5051305890083313, -0.2839394509792328, 0.2793956995010376, -0.14031465351581573, -0.23298336565494537, -0.03171452134847641, -0.17853455245494843, 0.1400172859430313, 0.08782683312892914, -0.5514487624168396, 0.15839283168315887, -0.21242788434028625, 0.19166035950183868, -0.26028573513031006, 0.017265815287828445, 0.1755647212266922, -0.1336279809474945, 0.07332546263933182, 0.004524326417595148, 0.009566708467900753, -0.3130404055118561, 0.16302479803562164, 0.45659977197647095, -0.07779218256473541, 0.4733355641365051, 0.25864189863204956, 0.8525638580322266, 0.015796583145856857, 0.0328105166554451, 0.21354493498802185, -0.27849194407463074, 0.14360307157039642, -0.2989119589328766, -0.12927386164665222, 0.16177606582641602, -0.174136221408844, 0.18075233697891235, 0.43052151799201965, 0.17389000952243805, -0.11812996864318848, 0.6388397812843323, -0.288789302110672, 0.10471250861883163, -0.09596553444862366, 0.2121330052614212, -0.22368760406970978, 0.26412877440452576, 0.23356539011001587, -0.16420885920524597, -0.636350691318512, -0.5240100622177124, 0.0157370213419199, 0.1268445998430252, -0.06156288459897041, 0.133112370967865, -0.782891035079956, -0.06536214798688889, -0.6774393320083618, 0.2748369872570038, 0.0982658639550209, 0.27370521426200867, 0.3563116490840912, 0.04079357162117958, 0.11432383954524994, 0.04313211888074875, 0.5410210490226746, -0.14186543226242065, -0.2233978658914566, -0.08547776937484741, -0.023105381056666374, -0.2765069901943207, -0.20002393424510956, -0.0021078777499496937, 0.2203003615140915, 0.4453182816505432, 0.675416111946106, 0.022268204018473625, -0.1887311339378357, -0.03479332476854324, 0.5779745578765869, -0.16473689675331116, -0.058012813329696655, -0.3751467764377594, -0.049884747713804245, -0.3190494179725647, 0.017375964671373367, -0.23421737551689148, 0.2088269740343094, 0.014280236326158047, -0.26638051867485046, -0.20428737998008728, -0.25492560863494873, -0.09576430171728134, 0.11313243955373764, 0.30517566204071045, 0.34002238512039185, 0.06019612029194832, -0.2264736145734787, 0.23531889915466309, 0.007680914364755154, -0.04527156054973602, 0.1082850769162178, 0.06937955319881439, -0.14581342041492462, 0.06272345781326294, 0.32063066959381104, 0.09082890301942825, 0.018807427957654, 0.5403695106506348, -0.33010414242744446, 0.14533191919326782, -0.08386655896902084, 0.4072858691215515, 0.3613954186439514, 0.11808031797409058, -0.45151010155677795, -0.31818488240242004, 0.18577158451080322, 0.16503958404064178, -0.06916317343711853, 0.3194538950920105, 0.08456918597221375, -0.1370803713798523, 0.460278183221817, 0.0660703033208847, 0.9790540933609009, -0.10605508834123611, 0.28666844964027405, 0.00008898653322830796, -0.003614364191889763, 0.32138341665267944, -0.5782903432846069, 0.039605315774679184, -0.243626207113266, 0.1978447288274765, 0.03674443066120148, 0.07390247285366058, -0.026067912578582764, 0.18417106568813324, 0.030751310288906097, 0.05589398369193077, 0.013466089963912964, 0.4594782292842865, -0.3787740170955658, 0.4584658741950989, 0.1293191909790039, -0.07897375524044037, 0.07714342325925827, 0.01613340899348259, -0.10079987347126007, -0.262088805437088, -0.17633305490016937, 0.20341433584690094, -0.1437985599040985, -0.29425469040870667, -0.02457970753312111, -0.2759605646133423, -0.013633307069540024, 0.37812507152557373, -0.0393587201833725, -0.24653354287147522, 0.024282589554786682, 0.078806072473526, 0.12353357672691345, 0.47104430198669434, 0.01963275671005249, 0.15719804167747498, 0.01737203635275364, 0.2313857227563858, 0.20039042830467224, -0.19124123454093933, -0.017861580476164818, 0.041143644601106644, -0.23711107671260834, -0.061440128833055496, -0.03818146884441376, -0.3024939298629761, -0.3547360897064209, 0.15590699017047882, 0.5879483819007874, -0.376247376203537, -0.10717381536960602, 0.07623890787363052, -0.08698457479476929, -0.1380646824836731, 0.036946844309568405, -0.1718326359987259, 0.0611567497253418, 0.2732658386230469, 0.282173752784729, -0.4257615804672241, -0.07564014196395874, 0.36957237124443054, 0.3958674967288971, 0.07058367133140564, 0.7585434317588806, -0.2851182222366333, -0.10893507301807404, -0.03366781026124954, 0.2628873288631439, 0.15755751729011536, 0.15217913687229156, -0.258804053068161, -0.09599123150110245, 0.13000689446926117, 0.04613471031188965, 0.023439155891537666, -0.1975010633468628, -0.00543392077088356, -0.2912543714046478, -0.20119303464889526, -0.5601055026054382, 0.031235836446285248, -0.3721832036972046, 0.18799400329589844, 0.27163052558898926, 0.17450708150863647, -0.3227253258228302, 0.5348675847053528, -0.13824501633644104, 0.075198695063591, 0.17268404364585876, 0.17980419099330902, -0.19673678278923035, 0.028332294896245003, -0.09268936514854431, -0.03231583908200264, -0.056952688843011856, 0.15574771165847778, 0.08882778137922287, -0.13873600959777832, -0.3546197712421417, 0.1914496123790741, 0.28202828764915466, -0.1457914412021637, -0.06355991959571838, 0.0200259480625391, -0.1527111828327179, -0.37706685066223145, 0.2815599739551544, -0.04162921383976936, 0.11197160929441452, 0.10020264238119125, 0.2932284474372864, -0.266846239566803, -0.06899479776620865, -0.02810593880712986, 0.1956402063369751, -0.0062507339753210545, 0.09285052865743637, 0.17380936443805695, 0.28286856412887573, -0.07996746897697449, -0.4542540907859802, 0.07022568583488464, 0.2185206115245819, 0.028732040897011757, 0.42319247126579285, 0.14606700837612152, 0.10630670934915543, 0.07024017721414566, -0.25059428811073303, 0.16186465322971344, 0.06352107971906662, -0.41216832399368286, 0.3658711016178131, 0.009376544505357742, -0.060158539563417435, -0.12420538067817688, 0.3208640515804291, -0.12238048017024994, -0.13527393341064453, 0.004824738949537277, 0.44690003991127014, 0.23529592156410217, -0.41041800379753113, -0.06779060512781143, 0.40931686758995056, -0.19093219935894012, -0.04467686265707016, 0.2629775106906891, -0.07583019137382507, 0.07852333784103394, 0.29267191886901855, 0.0625883936882019, 0.04271649941802025, 0.3937370479106903, 0.3723279535770416, 0.2766473591327667, 0.3065337836742401, 0.07832839339971542, 0.025758907198905945, -0.29419705271720886, -0.13978762924671173, 0.3273918330669403, -0.1583976298570633, 0.09058520942926407, 0.11753687262535095, 0.07445675134658813, 0.5569461584091187, -0.3510773479938507, 0.0387105830013752, 0.4113403856754303, -0.3115714192390442, -0.22218739986419678, -0.0707545205950737, -0.033811312168836594, 0.08181841671466827, 0.10929275304079056, -0.1141340509057045, -0.2129829078912735, -0.09529552608728409, -0.12766441702842712, -0.20527079701423645, -0.2059241384267807, 0.16255252063274384, 0.13987213373184204, 0.128905788064003, -0.23990805447101593, 0.017810344696044922, -0.3468581438064575, 0.11774089932441711, -0.15735185146331787, 0.11329442262649536, 0.2794465124607086, 0.21934832632541656, -0.04729484021663666, -0.021196860820055008, 0.14541080594062805, 0.04779307544231415, -0.011661142110824585, 0.07663717865943909, 0.1730535328388214, -0.41054007411003113, -0.08476373553276062, -0.09953581541776657, -0.057794034481048584, -0.3521794080734253, 0.3204968273639679, -0.08876776695251465, 0.07768511027097702, 0.17812120914459229, -0.06604758650064468, -0.25642406940460205, -0.10467807948589325, 0.1899694949388504, -0.3707854151725769, 0.11652697622776031, 0.35875746607780457, 0.03465250879526138, 0.3313945531845093, -0.38415029644966125, 0.02684607356786728, -0.3230532705783844, 0.38207992911338806, 0.5605054497718811, -0.3645082712173462, -0.26220232248306274, -0.28136131167411804, -0.20820952951908112, 0.23005904257297516, -0.4183403253555298, -0.00994980987161398, -0.17285113036632538, 0.2826250195503235, -0.12166231125593185, -0.33472833037376404, -0.0016160141676664352, -0.11503251641988754, -0.07742273807525635, 0.12133572995662689, -0.01673898845911026, -0.017167018726468086, -0.3584658205509186, 0.15422794222831726, -0.20322343707084656, -0.0423571802675724, 0.2969510853290558, 0.17754380404949188, -0.1146414652466774, -0.14535266160964966, 0.0886181965470314, -0.014299909584224224, -0.0489375926554203, 0.3547165095806122, 0.2388480305671692, 0.3356856405735016, -0.06481356918811798, 0.2596982419490814, 0.018422823399305344, 0.03760259225964546, -0.11066984385251999, 0.21438920497894287, -0.2533371150493622, 0.03718738630414009, 0.10521973669528961, -0.023991968482732773, 0.2082185298204422, 0.015259366482496262, 0.06501343846321106, -0.22314275801181793, -0.1852750927209854, 0.16009852290153503, -0.11264828592538834, 0.03296026587486267, -0.12471000105142593, 0.5538578629493713, 0.05682754144072533, 0.22750335931777954, 0.000859005784150213, -0.24337632954120636, 0.2034359872341156, -0.55070561170578, -0.21118685603141785, -0.21413210034370422, 0.00354471942409873, 0.2549590766429901, -0.2977738678455353, -0.31301021575927734, -0.07921828329563141, 0.5161020755767822, -0.010720299556851387, -0.03689870238304138, 0.23896801471710205, 0.0862855464220047, 0.18690235912799835, -0.14391812682151794, 0.32119178771972656, -0.22820976376533508, 0.008853313513100147, 0.060895275324583054, -0.04039106145501137 ]
https://github.com/huggingface/datasets/issues/258
Why is dataset after tokenization far more larger than the orginal one ?
Hi ! Thanks for your reply. But since size of `input_ids` < size of `text`, I am wondering why size of `input_ids` + `text` > 2x the size of `text` 🤔
I tokenize wiki dataset by `map` and cache the results. ``` def tokenize_tfm(example): example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text'])) return example wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train'] wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow") ``` and when I see their size ``` ls -l --block-size=M 17460M wikipedia-train.arrow 47511M tokenized_wiki.arrow ``` The tokenized one is over 2x size of original one. Is there something I did wrong ?
31
Why is dataset after tokenization far more larger than the orginal one ? I tokenize wiki dataset by `map` and cache the results. ``` def tokenize_tfm(example): example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text'])) return example wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train'] wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow") ``` and when I see their size ``` ls -l --block-size=M 17460M wikipedia-train.arrow 47511M tokenized_wiki.arrow ``` The tokenized one is over 2x size of original one. Is there something I did wrong ? Hi ! Thanks for your reply. But since size of `input_ids` < size of `text`, I am wondering why size of `input_ids` + `text` > 2x the size of `text` 🤔
[ -0.05326931178569794, -0.20863664150238037, 0.017832573503255844, 0.19117771089076996, 0.01438309159129858, 0.008745657280087471, 0.23980090022087097, 0.3740536570549011, -0.11492238193750381, -0.01381154078990221, -0.08017392456531525, 0.18066942691802979, 0.14083270728588104, -0.11297139525413513, 0.19782455265522003, -0.10907386988401413, 0.2893790900707245, -0.011823036707937717, 0.17266133427619934, -0.19848370552062988, 0.0641959086060524, 0.012349984608590603, -0.20447085797786713, 0.026559436693787575, -0.40991732478141785, -0.011964185163378716, -0.14313837885856628, -0.123451828956604, -0.4040333330631256, -0.5144374966621399, -0.05269492790102959, 0.08115052431821823, 0.38159629702568054, 0.2726805806159973, -0.0001266949693672359, -0.3327268362045288, 0.0753404051065445, 0.011636116541922092, -0.012365872040390968, 0.26773691177368164, 0.16763271391391754, -0.5629209280014038, -0.16141954064369202, -0.25321337580680847, 0.2919102609157562, -0.5190222859382629, -0.20933373272418976, 0.33819201588630676, 0.041958849877119064, -0.15536096692085266, 0.08470194786787033, -0.13419991731643677, 0.033729102462530136, 0.41064906120300293, 0.14613722264766693, 0.0947890430688858, -0.04455044865608215, -0.1931762993335724, -0.12520548701286316, -0.18618714809417725, -0.014872997999191284, 0.1704452782869339, 0.08462265878915787, -0.21875175833702087, 0.3521585762500763, -0.07896687090396881, -0.183790385723114, -0.04403122514486313, 0.22508789598941803, 0.20200590789318085, 0.37809306383132935, -0.12139932066202164, 0.017900343984365463, -0.27203330397605896, -0.16476969420909882, -0.06602126359939575, -0.17578750848770142, 0.18078568577766418, 0.2901874780654907, -0.031965695321559906, -0.39199602603912354, -0.050546690821647644, 0.1163598969578743, 0.23943683505058289, -0.1916063278913498, 0.5306621193885803, 0.03733568638563156, 0.17462433874607086, -0.2876829206943512, -0.17114189267158508, -0.07721027731895447, -0.23159998655319214, -0.16406340897083282, 0.462870717048645, -0.33474430441856384, -0.35712337493896484, 0.0454472079873085, -0.055378105491399765, 0.5117001533508301, -0.30041414499282837, -0.30795416235923767, -0.017954884096980095, -0.03000953048467636, -0.13497312366962433, 0.10175567865371704, 0.5036153197288513, -0.3205173909664154, 0.4058419167995453, -0.14635628461837769, -0.06891123205423355, -0.5243212580680847, -0.18012277781963348, 0.05817311629652977, 0.09739391505718231, 0.124725341796875, -0.2626880705356598, -0.3689332604408264, -0.06546822190284729, 0.22462892532348633, 0.2283160388469696, -0.5162185430526733, 0.0501696839928627, -0.04624174162745476, 0.3531331717967987, -0.18779218196868896, 0.3985990285873413, -0.3270297944545746, 0.21141615509986877, -0.13615262508392334, 0.04256203770637512, -0.11616867780685425, -0.13553844392299652, 0.09621711820363998, 0.15382535755634308, -0.23410998284816742, 0.198196142911911, 0.3465767800807953, 0.09364829957485199, 0.01468900591135025, -0.09685413539409637, 0.4784105718135834, -0.20838426053524017, 0.36299580335617065, 0.12199391424655914, 0.14084239304065704, 0.30565527081489563, -0.09019674360752106, -0.09577716886997223, -0.12010818719863892, 0.14095473289489746, -0.501238226890564, -0.16902035474777222, 0.011677113361656666, 0.03995862230658531, 0.04636113718152046, -0.02601020410656929, -0.3790273368358612, 0.3396326005458832, 0.445038765668869, -0.04859285056591034, 0.24750767648220062, -0.2733226716518402, -0.3672400712966919, -0.17750345170497894, 0.015388141386210918, -0.08096857368946075, -0.06500118970870972, -0.01240621693432331, 0.3479381799697876, 0.2410300076007843, 0.3492319881916046, 0.6582416892051697, -0.23030178248882294, 0.5145467519760132, -0.2676452696323395, 0.500450074672699, 0.46325987577438354, -0.4106018841266632, -0.7795951962471008, 0.3592059314250946, 0.21772268414497375, 0.19099153578281403, -0.09057597070932388, -0.06226725876331329, 0.4403330385684967, 0.17096836864948273, 0.150364950299263, 0.2609790563583374, -0.0067488024942576885, 0.08912274986505508, -0.4096232056617737, -0.1871407926082611, 0.3767552375793457, -0.5307530760765076, 0.21353532373905182, -0.00004884655572823249, 0.04880695044994354, 0.46169671416282654, 0.4493003189563751, 0.06905478984117508, 0.2840156853199005, 0.26045578718185425, -0.05614732205867767, 0.031882841140031815, 0.2822740972042084, 0.022658877074718475, 0.24659594893455505, -0.05566270276904106, -0.27502819895744324, -0.06778468936681747, 0.2460782527923584, -0.39166155457496643, -0.21387775242328644, 0.005228459369391203, -0.13893145322799683, -0.2794293463230133, 0.023417692631483078, -0.09323599934577942, 0.10232185572385788, -0.03831882029771805, 0.23169729113578796, 0.11003856360912323, -0.14329631626605988, 0.09355311095714569, 0.1334497481584549, 0.16457808017730713, 0.040201302617788315, 0.15889370441436768, -0.29894664883613586, 0.2747718095779419, 0.15093852579593658, 0.03816837817430496, -0.28964516520500183, 0.05617295205593109, 0.11204024404287338, 0.007936949841678143, 0.1598922312259674, 0.30295345187187195, 0.2006726711988449, 0.020967623218894005, 0.39901870489120483, 0.05197174847126007, 0.055300258100032806, -0.15162873268127441, 0.19535866379737854, 0.2741393744945526, 0.40938013792037964, 0.06393200159072876, 0.08304135501384735, -0.2988690137863159, 0.18383386731147766, 0.01641567051410675, 0.14657296240329742, -0.2107119858264923, -0.14862419664859772, 0.24596650898456573, 0.09252917021512985, 0.0446779690682888, 0.08473193645477295, 0.32879146933555603, 0.4958304464817047, -0.09700164198875427, -0.0951327383518219, 0.09257915616035461, -0.6602834463119507, -0.5403521656990051, 0.14899621903896332, -0.04970831051468849, 0.2239423245191574, 0.09999952465295792, 0.34723326563835144, 0.019930696114897728, 0.22986532747745514, 0.09709718078374863, 0.20534317195415497, -0.08589566498994827, 0.01857244223356247, 0.25593987107276917, 0.5013882517814636, 0.15280555188655853, -0.2660231292247772, 0.20251426100730896, -0.0429476760327816, 0.3088427186012268, -0.11249230802059174, 0.08505555242300034, -0.13355498015880585, -0.1435679942369461, -0.0023195308167487383, -0.03949091210961342, -0.19666984677314758, -0.4011037349700928, -0.09010361135005951, -0.07314486801624298, 0.3624987304210663, -0.202596515417099, -0.04692121595144272, 0.0116720637306571, 0.15434780716896057, 0.17032626271247864, 0.08429478108882904, 0.05608806014060974, -0.3676501214504242, -0.05931684002280235, -0.09912462532520294, -0.06199679151177406, 0.2375110685825348, 0.1665259748697281, -0.0645677000284195, -0.34583330154418945, -0.8534323573112488, 0.08256810903549194, -0.08412066102027893, 0.07087631523609161, -0.037562720477581024, -0.04241567477583885, -0.45490846037864685, 0.1427479088306427, -0.033759720623493195, 0.08442899584770203, -0.28556138277053833, -0.15273815393447876, -0.30640730261802673, 0.11083418130874634, 0.0838661640882492, 0.03271278366446495, -0.0781295895576477, -0.00546133192256093, 0.028835665434598923, 0.06393258273601532, 0.041234951466321945, 0.033153507858514786, -0.23439320921897888, -0.005521833430975676, -0.02956623025238514, -0.04940903186798096, -0.49379023909568787, -0.23493444919586182, 0.26145800948143005, -0.18648530542850494, -0.287146657705307, -0.13790564239025116, -0.21276570856571198, 0.16745209693908691, 0.12354104965925217, -0.5751293301582336, 0.1784173995256424, -0.20781609416007996, 0.19145002961158752, -0.2898379862308502, 0.04197118058800697, 0.07119310647249222, -0.13051602244377136, 0.04127625748515129, -0.0655645802617073, 0.06275058537721634, -0.3446030914783478, 0.13738374412059784, 0.5308552384376526, -0.10191112756729126, 0.4415524899959564, 0.3388986587524414, 0.9411719441413879, 0.07107643038034439, 0.05974099412560463, 0.2623284161090851, -0.21298468112945557, 0.10007841140031815, -0.2972135841846466, -0.11260852217674255, 0.18117450177669525, -0.08571936935186386, 0.1975201666355133, 0.44805651903152466, 0.1431238353252411, -0.1449810117483139, 0.6234245300292969, -0.4005109369754791, 0.034617431461811066, -0.048764489591121674, 0.12758192420005798, -0.21853680908679962, 0.2929037809371948, 0.2064034342765808, -0.1997147649526596, -0.5666325092315674, -0.49090492725372314, -0.025202065706253052, 0.15088678896427155, -0.08974536508321762, 0.17949290573596954, -0.6895114183425903, -0.10211623460054398, -0.679804801940918, 0.2289961874485016, 0.19071786105632782, 0.22689194977283478, 0.2893173396587372, 0.12283752113580704, 0.09867192804813385, -0.00004639064354705624, 0.5573991537094116, -0.09543915092945099, -0.1696854680776596, -0.1001952514052391, -0.08933144062757492, -0.21871140599250793, -0.15747946500778198, 0.04600298032164574, 0.19132910668849945, 0.4865821897983551, 0.6134020090103149, -0.03694343939423561, -0.20329058170318604, -0.07582114636898041, 0.5636321902275085, -0.1356339007616043, -0.09072289615869522, -0.339131623506546, -0.005642023403197527, -0.3226276636123657, -0.0101702231913805, -0.14415614306926727, 0.22907061874866486, -0.010587818920612335, -0.32737165689468384, -0.28767454624176025, -0.22290782630443573, -0.14036230742931366, 0.08093764632940292, 0.33599478006362915, 0.2816731333732605, 0.04255067929625511, -0.29740992188453674, 0.23044586181640625, 0.06290489435195923, -0.0645943358540535, 0.1954265832901001, 0.015280273742973804, -0.17702876031398773, 0.08287801593542099, 0.2911252975463867, 0.09389831870794296, -0.01479045208543539, 0.5646326541900635, -0.27614712715148926, 0.13827675580978394, -0.05335564166307449, 0.47503960132598877, 0.32003578543663025, 0.13913202285766602, -0.48492270708084106, -0.2804904878139496, 0.23389145731925964, 0.10955595970153809, -0.05102812126278877, 0.20236635208129883, 0.05031358823180199, -0.18621069192886353, 0.38877594470977783, 0.028144847601652145, 1.0094181299209595, -0.05592581629753113, 0.3413277566432953, -0.015067195519804955, 0.03418178856372833, 0.23087061941623688, -0.5023803114891052, 0.03936031833291054, -0.2651951014995575, 0.2472633719444275, 0.03677699342370033, -0.020033271983265877, -0.13461707532405853, 0.21808648109436035, 0.011437270790338516, 0.04845663160085678, 0.022508148103952408, 0.3262207508087158, -0.3503056466579437, 0.5328892469406128, 0.0784154012799263, -0.011507946066558361, 0.044058576226234436, 0.0034808178897947073, -0.09421161562204361, -0.19453710317611694, -0.22121310234069824, 0.13402636349201202, -0.15913105010986328, -0.285248339176178, -0.0846322551369667, -0.19293440878391266, -0.11190071702003479, 0.4539334774017334, -0.03698473051190376, -0.2596118748188019, 0.044556476175785065, 0.09518672525882721, 0.08014171570539474, 0.5051611661911011, -0.003987787291407585, 0.1667691320180893, -0.06453903764486313, 0.1965014785528183, 0.20818424224853516, -0.1267438530921936, 0.0821603462100029, -0.0444021038711071, -0.24103020131587982, -0.07912594079971313, -0.01795133203268051, -0.2659713327884674, -0.3112940192222595, 0.2222389280796051, 0.4669782519340515, -0.36202898621559143, -0.13445329666137695, 0.13785909116268158, -0.17791388928890228, -0.10515408217906952, 0.04369316250085831, -0.14803172647953033, 0.019448962062597275, 0.18704107403755188, 0.33363911509513855, -0.47344228625297546, -0.0733131617307663, 0.3393532335758209, 0.3918026089668274, 0.06282410025596619, 0.7738112807273865, -0.3206630349159241, -0.13908232748508453, -0.02176421321928501, 0.24826207756996155, 0.08135323971509933, 0.12821133434772491, -0.191543847322464, -0.09267288446426392, 0.1157946065068245, -0.009256350807845592, 0.002390946028754115, -0.1650204062461853, -0.02611757628619671, -0.2974680960178375, -0.23089969158172607, -0.5808985233306885, 0.03908652439713478, -0.4215114116668701, 0.23899154365062714, 0.29483339190483093, 0.22633256018161774, -0.2764216363430023, 0.4198247492313385, -0.14292308688163757, 0.07621573656797409, 0.08431052416563034, 0.14677399396896362, -0.3328532874584198, -0.021070828661322594, -0.13390591740608215, 0.11986104398965836, -0.06710628420114517, 0.14277422428131104, 0.03208139166235924, -0.14778751134872437, -0.3229168653488159, 0.18288640677928925, 0.33240482211112976, -0.16048485040664673, -0.0970514714717865, 0.010317889042198658, -0.13277307152748108, -0.3221012353897095, 0.2611090838909149, -0.059933003038167953, 0.11925289779901505, 0.14993172883987427, 0.3006536364555359, -0.16753526031970978, -0.06557735055685043, 0.053856849670410156, 0.2275737226009369, 0.09843259304761887, 0.10346105694770813, 0.17027989029884338, 0.2892487943172455, -0.09209787845611572, -0.5138882994651794, 0.04837944731116295, 0.3064837157726288, 0.044245943427085876, 0.3689003586769104, 0.16667039692401886, 0.07998356223106384, 0.0112887779250741, -0.20199403166770935, 0.10306493192911148, 0.04121115803718567, -0.3377058506011963, 0.3317941427230835, 0.0025520746130496264, -0.06455747038125992, -0.051705487072467804, 0.255134254693985, -0.24530506134033203, -0.13780280947685242, -0.05388689041137695, 0.46832987666130066, 0.2841569185256958, -0.40589267015457153, -0.08853165060281754, 0.31158164143562317, -0.2014084756374359, -0.07778386771678925, 0.15216591954231262, -0.006110063754022121, 0.06565941870212555, 0.21320924162864685, 0.09858085960149765, 0.12295498698949814, 0.3483351469039917, 0.374796599149704, 0.30713701248168945, 0.2125931680202484, 0.057387977838516235, 0.14751717448234558, -0.19725994765758514, -0.24209463596343994, 0.3180951476097107, -0.11582750827074051, 0.11366520822048187, 0.07949591428041458, 0.046980950981378555, 0.569866955280304, -0.3263920247554779, 0.0916750580072403, 0.3821570873260498, -0.27957871556282043, -0.2462017685174942, -0.03925323486328125, -0.0029503884725272655, 0.029073404148221016, 0.06110545992851257, -0.04868970811367035, -0.14768654108047485, -0.22082121670246124, -0.03437109291553497, -0.18838274478912354, -0.19187641143798828, 0.29295825958251953, 0.2847609221935272, 0.1494753062725067, -0.2995000183582306, 0.04082145169377327, -0.2890622019767761, 0.1501983255147934, -0.19445429742336273, 0.2535018026828766, 0.329270601272583, 0.26249873638153076, -0.17548200488090515, -0.060823410749435425, 0.12307388335466385, 0.07062441110610962, -0.08771024644374847, 0.05326666682958603, 0.22753646969795227, -0.40913721919059753, -0.03222033008933067, -0.11015168577432632, -0.06639575958251953, -0.30876442790031433, 0.33659783005714417, -0.2456374168395996, 0.02715344913303852, 0.15500958263874054, -0.11660055816173553, -0.27357345819473267, -0.12331120669841766, 0.211990624666214, -0.5336230993270874, 0.12187333405017853, 0.40873655676841736, 0.012875016778707504, 0.35195717215538025, -0.3962768018245697, 0.030635489150881767, -0.3564012050628662, 0.42195260524749756, 0.584730863571167, -0.1407598853111267, -0.22088296711444855, -0.21872176229953766, -0.11225757002830505, 0.26416197419166565, -0.31317564845085144, 0.05524669960141182, -0.20111583173274994, 0.33032265305519104, -0.2282009720802307, -0.36786264181137085, 0.06400065124034882, -0.14042598009109497, -0.07279910892248154, 0.1040830910205841, -0.04346080869436264, -0.041573744267225266, -0.3713259994983673, 0.10058774799108505, -0.1629936397075653, -0.05387463420629501, 0.21027325093746185, 0.02392083965241909, -0.12340415269136429, -0.13363711535930634, 0.14041781425476074, 0.024197617545723915, 0.015528522431850433, 0.3350541889667511, 0.25557008385658264, 0.36145445704460144, -0.13832512497901917, 0.2697928547859192, 0.13203401863574982, -0.05608980730175972, -0.06951496005058289, 0.2591327130794525, -0.24245768785476685, 0.014212310314178467, 0.1162443533539772, -0.07696790248155594, 0.2797967493534088, -0.01985836587846279, 0.06249956786632538, -0.28200799226760864, -0.09781976789236069, 0.129729226231575, -0.1783953160047531, -0.005088426638394594, -0.1276916265487671, 0.5228878855705261, 0.041859157383441925, 0.1902502328157425, 0.020648522302508354, -0.25211015343666077, 0.22566090524196625, -0.489798367023468, -0.1273147463798523, -0.24831260740756989, -0.044154487550258636, 0.27937382459640503, -0.2569740116596222, -0.3915027976036072, -0.07386499643325806, 0.5597872138023376, 0.10513833165168762, -0.09787189960479736, 0.2520550787448883, 0.1454870104789734, 0.16534164547920227, -0.17395375669002533, 0.31625795364379883, -0.22407598793506622, 0.04365609958767891, 0.11748021095991135, -0.033569466322660446 ]
https://github.com/huggingface/datasets/issues/258
Why is dataset after tokenization far more larger than the orginal one ?
Hard to tell... This is probably related to the way apache arrow compresses lists of integers, that may be different from the compression of strings.
I tokenize wiki dataset by `map` and cache the results. ``` def tokenize_tfm(example): example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text'])) return example wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train'] wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow") ``` and when I see their size ``` ls -l --block-size=M 17460M wikipedia-train.arrow 47511M tokenized_wiki.arrow ``` The tokenized one is over 2x size of original one. Is there something I did wrong ?
25
Why is dataset after tokenization far more larger than the orginal one ? I tokenize wiki dataset by `map` and cache the results. ``` def tokenize_tfm(example): example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text'])) return example wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train'] wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow") ``` and when I see their size ``` ls -l --block-size=M 17460M wikipedia-train.arrow 47511M tokenized_wiki.arrow ``` The tokenized one is over 2x size of original one. Is there something I did wrong ? Hard to tell... This is probably related to the way apache arrow compresses lists of integers, that may be different from the compression of strings.
[ -0.11238884180784225, -0.11934562772512436, 0.011290159076452255, 0.202745720744133, -0.00432415958493948, -0.08417957276105881, 0.25018110871315, 0.4384356737136841, -0.16868290305137634, -0.07945165038108826, -0.018409494310617447, 0.1791730523109436, 0.12678740918636322, -0.4135741591453552, 0.2721519470214844, -0.08150161802768707, 0.2910655736923218, -0.02463131584227085, 0.07197023183107376, -0.19687558710575104, 0.034756649285554886, 0.0416623055934906, -0.13580261170864105, 0.0729798823595047, -0.4001582860946655, -0.04499112814664841, -0.12996256351470947, -0.07194656878709793, -0.2361069619655609, -0.5674788355827332, -0.07457370311021805, 0.012131843715906143, 0.4288650155067444, 0.21151380240917206, -0.00012896195403300226, -0.27991482615470886, 0.14519713819026947, 0.04758412018418312, -0.12981411814689636, 0.29284995794296265, 0.2264067530632019, -0.6245271563529968, -0.09858889877796173, -0.18129082024097443, 0.2950388789176941, -0.6420501470565796, -0.22691097855567932, 0.08217114955186844, 0.18488401174545288, -0.13531427085399628, 0.08482653647661209, -0.09381584078073502, -0.10724290460348129, 0.39423590898513794, 0.1767110526561737, 0.12888126075267792, -0.08183746039867401, -0.2256767749786377, -0.18743450939655304, -0.17470547556877136, -0.050889719277620316, 0.16270820796489716, 0.06343775242567062, -0.14710308611392975, 0.30647963285446167, -0.0714230015873909, -0.2241659164428711, 0.06346852332353592, 0.2754489779472351, 0.2621808648109436, 0.4169595539569855, -0.015647923573851585, -0.005996771156787872, -0.23013587296009064, -0.2018088847398758, -0.038913413882255554, -0.09311550855636597, 0.2346336394548416, 0.2906149923801422, -0.017524929717183113, -0.274198442697525, 0.026341132819652557, 0.094759002327919, 0.19758421182632446, -0.22988854348659515, 0.44505956768989563, 0.04016287997364998, 0.21792888641357422, -0.2753770649433136, -0.15453878045082092, -0.05867147073149681, -0.21450601518154144, -0.179838165640831, 0.43226388096809387, -0.19286543130874634, -0.26211628317832947, -0.051530059427022934, -0.2579561173915863, 0.46009984612464905, -0.07624161243438721, -0.1475306749343872, 0.1732753962278366, -0.04155734181404114, -0.25591930747032166, 0.04241139814257622, 0.4979795813560486, -0.1888275146484375, 0.40860381722450256, -0.07886402308940887, -0.016327669844031334, -0.4559740126132965, -0.14773400127887726, -0.014138289727270603, 0.08400983363389969, 0.19180504977703094, -0.18388289213180542, -0.4125383794307709, -0.07391127943992615, 0.2471047043800354, 0.25685033202171326, -0.5777152180671692, 0.01056207250803709, -0.15314443409442902, 0.2712472975254059, -0.1933002769947052, 0.40418651700019836, -0.2657766342163086, 0.22528144717216492, -0.1282549947500229, 0.007667175959795713, -0.06053213030099869, -0.3740162253379822, 0.09740975499153137, 0.25645411014556885, -0.23812776803970337, 0.18245181441307068, 0.36050736904144287, 0.06975249201059341, -0.004230129532516003, -0.0986466184258461, 0.5601623058319092, -0.17234694957733154, 0.37145015597343445, 0.10057489573955536, 0.09550126641988754, 0.35525545477867126, 0.005198966711759567, 0.005940560717135668, -0.11799632012844086, 0.16847482323646545, -0.45938247442245483, -0.12196240574121475, 0.024771109223365784, -0.02499053254723549, 0.04219377413392067, 0.059816259890794754, -0.2653067708015442, 0.288968563079834, 0.35265517234802246, 0.0013091539731249213, 0.20101338624954224, -0.258587121963501, -0.26726096868515015, -0.21028287708759308, -0.015736952424049377, -0.1517859697341919, -0.1470721811056137, 0.0005062208510935307, 0.2672635614871979, 0.4102359712123871, 0.320097953081131, 0.6782891750335693, -0.3026677072048187, 0.3560176491737366, -0.2469850331544876, 0.4818015694618225, 0.43563199043273926, -0.2668088972568512, -0.7089950442314148, 0.36413514614105225, 0.3064747750759125, 0.13555525243282318, -0.1135169044137001, -0.11155811697244644, 0.45559757947921753, 0.1529846489429474, 0.06372333317995071, 0.3180859386920929, 0.0895829126238823, 0.053188081830739975, -0.3666685223579407, -0.13033300638198853, 0.2926567494869232, -0.5646036267280579, 0.10386909544467926, -0.03133498132228851, 0.11210854351520538, 0.3461742401123047, 0.4183447062969208, 0.05857133865356445, 0.3294254243373871, 0.3610939681529999, -0.12274456024169922, -0.027573896571993828, 0.36816519498825073, 0.06964252889156342, 0.28049466013908386, -0.14163170754909515, -0.3820171654224396, -0.058090776205062866, 0.0012402478605508804, -0.33464011549949646, -0.21333777904510498, 0.0741385743021965, -0.026293497532606125, -0.23584285378456116, -0.021443825215101242, -0.041772108525037766, 0.06215643510222435, 0.022287117317318916, 0.2409440129995346, 0.07592066377401352, -0.0031602990347892046, 0.1322755664587021, 0.12772423028945923, 0.1355971395969391, 0.14461731910705566, 0.20248842239379883, -0.24236205220222473, 0.19481858611106873, 0.12120485305786133, -0.02060798555612564, -0.2502894997596741, 0.044386737048625946, 0.09822216629981995, -0.06881647557020187, 0.25377097725868225, 0.20875531435012817, 0.293729692697525, -0.0704597532749176, 0.5168302655220032, 0.2028338611125946, 0.022697385400533676, -0.12592388689517975, 0.12287905067205429, 0.4375642240047455, 0.4034949243068695, 0.1817864328622818, 0.040966734290122986, -0.1742822527885437, 0.19050906598567963, 0.1196637749671936, 0.028065642341971397, -0.20072758197784424, -0.2002357393503189, 0.33228829503059387, 0.195218026638031, 0.08209501951932907, 0.13258837163448334, 0.33069929480552673, 0.3930946886539459, -0.22067417204380035, -0.04461963474750519, 0.12691949307918549, -0.7217390537261963, -0.5281836986541748, 0.17523498833179474, -0.12433872371912003, 0.12786132097244263, 0.07703576236963272, 0.34782639145851135, -0.09486361593008041, 0.1967039555311203, 0.1062639057636261, 0.2983814775943756, -0.0800253227353096, 0.13229963183403015, 0.16779521107673645, 0.41403210163116455, 0.09811574965715408, -0.2518463134765625, 0.10625072568655014, -0.01785021834075451, 0.20407602190971375, -0.05525999516248703, 0.16634589433670044, -0.2365822196006775, -0.005216970108449459, -0.09085125476121902, -0.1407174915075302, -0.4034091532230377, -0.4084806442260742, -0.06564245373010635, -0.17080307006835938, 0.2646421194076538, -0.16357503831386566, -0.09704232960939407, 0.032557595521211624, 0.28918564319610596, 0.13977743685245514, 0.07468807697296143, 0.07657866925001144, -0.47378048300743103, -0.08969593048095703, -0.07976467162370682, -0.1329772025346756, 0.22115620970726013, 0.21874168515205383, -0.05999293550848961, -0.43267080187797546, -0.7699638605117798, 0.1413440853357315, -0.04974675551056862, 0.009264444932341576, -0.02130671590566635, -0.05066769942641258, -0.4660761058330536, 0.16761519014835358, 0.018614016473293304, 0.056121475994586945, -0.2046418935060501, -0.07092731446027756, -0.25411906838417053, 0.16412293910980225, 0.1320962756872177, 0.011977039277553558, 0.07093172520399094, 0.058537229895591736, 0.007405934389680624, 0.15636347234249115, 0.06090323254466057, 0.15623824298381805, -0.12969575822353363, -0.05506511032581329, -0.006598501466214657, -0.19618083536624908, -0.4393118917942047, -0.18221797049045563, 0.3604343831539154, -0.2064555138349533, -0.3408966660499573, -0.1987120658159256, -0.2136017233133316, 0.18343773484230042, 0.22037415206432343, -0.5550182461738586, 0.3347569406032562, -0.20444072782993317, 0.1652970314025879, -0.3110949695110321, -0.01244126446545124, 0.09151333570480347, -0.050984498113393784, -0.009837697260081768, -0.033542558550834656, 0.11196355521678925, -0.3022398054599762, 0.019332095980644226, 0.6221040487289429, -0.012838884256780148, 0.41154342889785767, 0.2607514262199402, 1.0486243963241577, -0.022900676354765892, 0.1311086267232895, 0.24798829853534698, -0.2006753832101822, -0.003906980622559786, -0.25872355699539185, 0.04231094568967819, 0.061159174889326096, -0.15474237501621246, 0.1754126399755478, 0.4836205244064331, 0.2739487886428833, -0.1684340238571167, 0.6691884398460388, -0.2770116627216339, 0.04234771803021431, -0.11789605021476746, 0.2433495670557022, -0.3538161516189575, 0.2527455985546112, 0.22532954812049866, -0.13770133256912231, -0.603797197341919, -0.435067743062973, 0.0791638121008873, -0.007893884554505348, -0.03528047353029251, 0.10695002973079681, -0.6138986349105835, 0.0649232268333435, -0.7611916661262512, 0.33994558453559875, 0.05831719562411308, 0.2443968802690506, 0.3503580689430237, -0.037392161786556244, 0.08865271508693695, 0.010469545610249043, 0.41962382197380066, -0.03639327362179756, -0.20475617051124573, -0.12323689460754395, -0.0005620532901957631, -0.46408945322036743, -0.13369415700435638, -0.012882925570011139, 0.12188885360956192, 0.30969637632369995, 0.5771067142486572, -0.08246415108442307, -0.24651463329792023, -0.19930145144462585, 0.5381540656089783, -0.153235524892807, 0.048848554491996765, -0.3741464614868164, -0.06718485057353973, -0.3274959325790405, -0.05264097452163696, -0.16334490478038788, 0.27042242884635925, -0.006816776469349861, -0.32053059339523315, -0.31820330023765564, -0.3208775222301483, -0.1378481388092041, -0.005196067970246077, 0.41262662410736084, 0.17112047970294952, -0.06148059293627739, -0.2433643639087677, 0.365864634513855, 0.0413619764149189, -0.07285827398300171, 0.3268846869468689, -0.040582530200481415, -0.09464263170957565, 0.014399181120097637, 0.25701770186424255, 0.1378464251756668, -0.030817387625575066, 0.4664030373096466, -0.195416659116745, 0.11280794441699982, -0.014232771471142769, 0.39223480224609375, 0.2835197448730469, 0.14535851776599884, -0.4813140034675598, -0.2578439712524414, 0.2884395718574524, 0.19524316489696503, -0.036128029227256775, 0.35872384905815125, -0.08957651257514954, -0.12821145355701447, 0.47653913497924805, 0.2143426388502121, 1.0645099878311157, -0.11152885109186172, 0.39965540170669556, -0.017052531242370605, -0.015462702140212059, 0.17064505815505981, -0.5571749806404114, 0.05370929092168808, -0.2833387851715088, 0.29382285475730896, 0.012675030156970024, 0.03170415759086609, -0.03742997348308563, 0.3189370632171631, 0.08328992873430252, -0.008817429654300213, 0.014456987380981445, 0.29329338669776917, -0.3422163724899292, 0.423513263463974, -0.0014366786926984787, -0.07549756020307541, 0.0006072734831832349, -0.009998689405620098, -0.0705036073923111, -0.1627052128314972, -0.17906606197357178, 0.09286073595285416, -0.22791655361652374, -0.31243371963500977, -0.036594875156879425, -0.15969590842723846, -0.09729516506195068, 0.39519038796424866, -0.015033666044473648, -0.3361240029335022, 0.007635521702468395, 0.018850266933441162, 0.012641440145671368, 0.37871602177619934, 0.0008670375100336969, 0.1569335162639618, -0.1339183896780014, 0.2694786787033081, 0.16501682996749878, -0.22936242818832397, 0.02452966570854187, 0.005040292162448168, -0.1588834673166275, -0.11810018122196198, -0.054505158215761185, -0.3009823262691498, -0.17614831030368805, 0.20570336282253265, 0.5047764182090759, -0.3452014923095703, 0.03275742009282112, 0.08740267157554626, -0.25089067220687866, -0.11337856948375702, 0.019335003569722176, -0.16555140912532806, 0.063443623483181, 0.09029357880353928, 0.442269504070282, -0.39273616671562195, -0.039551131427288055, 0.3326488435268402, 0.3317209482192993, 0.02687724120914936, 0.746121346950531, -0.26366904377937317, -0.13106241822242737, -0.0517042838037014, 0.29819318652153015, 0.16010123491287231, -0.019589949399232864, -0.1013849601149559, -0.189533993601799, 0.03777123987674713, -0.020609557628631592, 0.05486004799604416, -0.16414308547973633, 0.026520056650042534, -0.3682691156864166, -0.17948393523693085, -0.5608600974082947, 0.05336932837963104, -0.4516376554965973, 0.22382262349128723, 0.14083926379680634, 0.019911669194698334, -0.2691282331943512, 0.31490767002105713, -0.0987987294793129, 0.07318079471588135, 0.26847997307777405, 0.16893573105335236, -0.5337043404579163, -0.046927183866500854, -0.0677846223115921, 0.19738741219043732, -0.07386091351509094, 0.21522045135498047, 0.09421580284833908, -0.10974056273698807, -0.29694533348083496, 0.19105473160743713, 0.2100258320569992, -0.23781216144561768, -0.0930812731385231, 0.04625387489795685, -0.06685230135917664, -0.42753034830093384, 0.15658855438232422, -0.18131853640079498, 0.10882837325334549, -0.02239515632390976, 0.44023242592811584, -0.16514939069747925, -0.13763929903507233, 0.04454304650425911, 0.17238618433475494, 0.1813739389181137, 0.0975106805562973, 0.1896466761827469, 0.2859797477722168, -0.08793667703866959, -0.5068227648735046, 0.03644515573978424, 0.29515764117240906, 0.0342000350356102, 0.4252806007862091, 0.10275242477655411, -0.007354531437158585, 0.0630364716053009, -0.16090622544288635, 0.1571948081254959, 0.07944242656230927, -0.4598766267299652, 0.2521471083164215, -0.004413589835166931, -0.07563614845275879, -0.08856673538684845, 0.13119937479496002, -0.20737427473068237, -0.2714795172214508, -0.06023267284035683, 0.42273610830307007, 0.21316754817962646, -0.3525822162628174, -0.14773380756378174, 0.3129838705062866, -0.22615446150302887, -0.026944603770971298, 0.21111853420734406, 0.10315363109111786, 0.08944399654865265, 0.31926876306533813, -0.07474393397569656, 0.17829746007919312, 0.3176259994506836, 0.31044328212738037, 0.30525463819503784, 0.46383869647979736, 0.04810738563537598, 0.040528204292058945, -0.17799213528633118, -0.20767338573932648, 0.3831959366798401, -0.024065079167485237, 0.13755545020103455, 0.1992511749267578, 0.17872795462608337, 0.5734671354293823, -0.3003478944301605, -0.014181631617248058, 0.30120939016342163, -0.21913740038871765, -0.2593933641910553, -0.11383633315563202, -0.014999646693468094, 0.05671216547489166, 0.03227080777287483, -0.05179203301668167, -0.17271970212459564, -0.11939001828432083, 0.0002402855025138706, -0.07666526734828949, -0.25630226731300354, 0.263426274061203, 0.23162712156772614, 0.12739834189414978, -0.20748426020145416, 0.010599750094115734, -0.2688126862049103, 0.17091991007328033, -0.12404046207666397, 0.20043547451496124, 0.35249096155166626, 0.13649028539657593, -0.18792536854743958, -0.02572481520473957, 0.08137580752372742, 0.11561819911003113, -0.08428923785686493, 0.06697708368301392, 0.2507990598678589, -0.43662136793136597, -0.052875544875860214, -0.12236909568309784, -0.013523528352379799, -0.3929217755794525, 0.2501862645149231, -0.23408514261245728, 0.0914526879787445, 0.13315938413143158, -0.15894149243831635, -0.2784508764743805, -0.16426143050193787, 0.13041290640830994, -0.3757236897945404, 0.1307721585035324, 0.42615368962287903, -0.006274689920246601, 0.29644691944122314, -0.37346065044403076, -0.002455347217619419, -0.4488926827907562, 0.38811466097831726, 0.5730138421058655, -0.22114574909210205, -0.14717982709407806, -0.2637924551963806, -0.02943262830376625, 0.27141979336738586, -0.3679637908935547, 0.02734318934381008, -0.15362007915973663, 0.3586547374725342, -0.13162340223789215, -0.2930261790752411, 0.16904707252979279, -0.09834502637386322, -0.020915741100907326, 0.15743699669837952, -0.10027748346328735, 0.004404222127050161, -0.1687355935573578, 0.25402042269706726, -0.23253874480724335, -0.10184277594089508, 0.2121310532093048, 0.13383269309997559, -0.1443416327238083, -0.12488838285207748, -0.032014716416597366, 0.12016347795724869, 0.06695736944675446, 0.4428335130214691, 0.3170435428619385, 0.23944595456123352, -0.058151841163635254, 0.1545061320066452, 0.0355004221200943, 0.009113851934671402, 0.06971047818660736, 0.3531409204006195, -0.22028516232967377, -0.03451095148921013, 0.10500453412532806, 0.007259967736899853, 0.18617132306098938, 0.06119127944111824, 0.06734514981508255, -0.20351265370845795, -0.2058463990688324, 0.049439094960689545, -0.2224152535200119, -0.030552929267287254, -0.21144245564937592, 0.5169644951820374, 0.08884717524051666, 0.16199429333209991, -0.008801580406725407, -0.30117708444595337, 0.15389305353164673, -0.5309004187583923, -0.1846344918012619, -0.1154266893863678, -0.020089570432901382, 0.28488579392433167, -0.19326938688755035, -0.3655533492565155, -0.1028582751750946, 0.5226110219955444, 0.07693787664175034, -0.07047545909881592, 0.04712671786546707, 0.12599648535251617, 0.17742836475372314, -0.2241216003894806, 0.42047587037086487, -0.26452869176864624, 0.04592174291610718, 0.027982190251350403, -0.07341645658016205 ]
https://github.com/huggingface/datasets/issues/258
Why is dataset after tokenization far more larger than the orginal one ?
Thanks for your point. 😀, It might be answer. Since this is hard to know, I'll close this issue. But if somebody knows more details, please comment below ~ 😁
I tokenize wiki dataset by `map` and cache the results. ``` def tokenize_tfm(example): example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text'])) return example wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train'] wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow") ``` and when I see their size ``` ls -l --block-size=M 17460M wikipedia-train.arrow 47511M tokenized_wiki.arrow ``` The tokenized one is over 2x size of original one. Is there something I did wrong ?
30
Why is dataset after tokenization far more larger than the orginal one ? I tokenize wiki dataset by `map` and cache the results. ``` def tokenize_tfm(example): example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text'])) return example wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train'] wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow") ``` and when I see their size ``` ls -l --block-size=M 17460M wikipedia-train.arrow 47511M tokenized_wiki.arrow ``` The tokenized one is over 2x size of original one. Is there something I did wrong ? Thanks for your point. 😀, It might be answer. Since this is hard to know, I'll close this issue. But if somebody knows more details, please comment below ~ 😁
[ -0.07269108295440674, -0.16651912033557892, 0.03377331793308258, 0.16053009033203125, -0.013517136685550213, -0.03793670982122421, 0.2875693738460541, 0.38287150859832764, -0.09261230379343033, -0.05337908864021301, -0.107325978577137, 0.19670632481575012, 0.08289173990488052, -0.16333672404289246, 0.2538657784461975, -0.09170399606227875, 0.31835687160491943, 0.005669707432389259, 0.1641954630613327, -0.24626611173152924, 0.0687173530459404, -0.0034690273460000753, -0.16300921142101288, 0.08090642094612122, -0.4438728094100952, -0.04094449430704117, -0.1405429244041443, -0.08895115554332733, -0.3230457305908203, -0.48770493268966675, 0.05445415899157524, 0.09045381098985672, 0.44694405794143677, 0.2833978533744812, -0.00012806725862901658, -0.31168332695961, 0.0528842993080616, 0.014643222093582153, 0.039763130247592926, 0.2755562961101532, 0.1965554654598236, -0.5918028950691223, -0.10922542214393616, -0.2343677431344986, 0.2229941040277481, -0.5260522365570068, -0.22258736193180084, 0.28660959005355835, 0.06343430280685425, -0.12166953086853027, 0.08499427139759064, -0.15386927127838135, -0.02443569153547287, 0.4318530559539795, 0.10891635715961456, 0.05610816925764084, -0.06490443646907806, -0.1524222046136856, -0.1710948348045349, -0.21753612160682678, 0.018257243558764458, 0.18566876649856567, 0.033762622624635696, -0.20182949304580688, 0.3348083794116974, -0.09028454124927521, -0.1766476333141327, -0.022714821621775627, 0.21693509817123413, 0.231210395693779, 0.3756919801235199, -0.06552130728960037, 0.03662395849823952, -0.24373996257781982, -0.1951199769973755, -0.06473741680383682, -0.15029864013195038, 0.20630531013011932, 0.3383837938308716, -0.05086953565478325, -0.4059690535068512, -0.010920115746557713, 0.11912351846694946, 0.21046176552772522, -0.2516646981239319, 0.539263904094696, 0.04598598927259445, 0.19125504791736603, -0.31628409028053284, -0.1431555598974228, -0.09205631166696548, -0.20718033611774445, -0.133335679769516, 0.4413745403289795, -0.3257778286933899, -0.36503952741622925, 0.04267876595258713, -0.07337488234043121, 0.4625692069530487, -0.2051342874765396, -0.3422222435474396, 0.07487627863883972, -0.04279525578022003, -0.20196296274662018, 0.0850391834974289, 0.495780885219574, -0.2846674621105194, 0.42259377241134644, -0.0632857158780098, -0.04807395860552788, -0.5810624361038208, -0.14357012510299683, 0.010380512103438377, 0.10315815359354019, 0.1577078402042389, -0.24451762437820435, -0.4083051383495331, -0.13126836717128754, 0.24243314564228058, 0.21824829280376434, -0.5596011877059937, 0.06093694642186165, -0.0911242663860321, 0.35515278577804565, -0.23587286472320557, 0.3478894829750061, -0.3164411783218384, 0.16953611373901367, -0.15480712056159973, 0.05105406045913696, -0.10694936662912369, -0.19148357212543488, 0.07590801268815994, 0.17840459942817688, -0.2429095059633255, 0.19465254247188568, 0.3395062983036041, 0.050040584057569504, -0.04521516337990761, -0.11400403827428818, 0.49134573340415955, -0.19749276340007782, 0.3377676010131836, 0.10623113811016083, 0.11371465027332306, 0.2876218855381012, -0.056181300431489944, -0.07677784562110901, -0.15264734625816345, 0.1096389889717102, -0.48032984137535095, -0.16494135558605194, 0.021757449954748154, 0.01574060134589672, -0.012823706492781639, -0.016628669574856758, -0.38451963663101196, 0.3187751770019531, 0.37291640043258667, -0.0135450204834342, 0.17544886469841003, -0.2576168477535248, -0.3746814429759979, -0.18835832178592682, 0.0029016609769314528, -0.13878877460956573, -0.05373638868331909, -0.017046554014086723, 0.32740843296051025, 0.26381543278694153, 0.39021116495132446, 0.649669349193573, -0.25202706456184387, 0.5214616656303406, -0.28129008412361145, 0.4189811944961548, 0.4458961486816406, -0.40952107310295105, -0.7466176748275757, 0.3305453658103943, 0.23252741992473602, 0.21595463156700134, -0.16961078345775604, -0.10101471096277237, 0.4551364779472351, 0.1278776228427887, 0.07427123188972473, 0.30664318799972534, 0.043365251272916794, 0.12882596254348755, -0.38779422640800476, -0.18895478546619415, 0.39308926463127136, -0.4821767210960388, 0.23459026217460632, 0.04101021587848663, 0.07403028011322021, 0.45210161805152893, 0.42460447549819946, 0.11163504421710968, 0.25167420506477356, 0.25370118021965027, -0.002256333827972412, 0.0424162782728672, 0.3129783868789673, 0.01774461381137371, 0.21829406917095184, -0.06058561056852341, -0.30317583680152893, -0.04544350132346153, 0.210211843252182, -0.3845497667789459, -0.1622489094734192, -0.01626862958073616, -0.1313684731721878, -0.3390319049358368, 0.007726578041911125, -0.10167700052261353, 0.15280672907829285, 0.0177978053689003, 0.2814909815788269, 0.06046443432569504, -0.08134759217500687, 0.08353886008262634, 0.1748134195804596, 0.21532151103019714, 0.08705048263072968, 0.20728345215320587, -0.2524551749229431, 0.26692453026771545, 0.16364753246307373, -0.003098828950896859, -0.2674348056316376, 0.038618844002485275, 0.08811977505683899, 0.03199275583028793, 0.20416134595870972, 0.2901292145252228, 0.20438513159751892, -0.019181696698069572, 0.43992310762405396, 0.09065929800271988, 0.01960618421435356, -0.1277061253786087, 0.16469615697860718, 0.3998299241065979, 0.41837623715400696, 0.05560756102204323, 0.060792021453380585, -0.26805979013442993, 0.18886476755142212, 0.022560063749551773, 0.15577426552772522, -0.2136954367160797, -0.13847897946834564, 0.25032684206962585, 0.06918410956859589, 0.04044853150844574, 0.08319815248250961, 0.33964136242866516, 0.4841015934944153, -0.13331010937690735, -0.07970364391803741, 0.12168526649475098, -0.6560311913490295, -0.5411945581436157, 0.19862310588359833, -0.06234414502978325, 0.163515105843544, 0.09019214659929276, 0.3118588328361511, 0.01500147394835949, 0.2528754770755768, 0.13632427155971527, 0.201654314994812, -0.1087837666273117, 0.06372272968292236, 0.205641970038414, 0.48704296350479126, 0.11587292701005936, -0.24426059424877167, 0.18122977018356323, -0.0427483431994915, 0.33631816506385803, -0.042473454028367996, 0.09072277694940567, -0.19332484900951385, -0.09873232990503311, -0.05185803398489952, -0.03707421198487282, -0.278771311044693, -0.3823387324810028, -0.11474835872650146, -0.06114908307790756, 0.3703645169734955, -0.14812052249908447, -0.05321616306900978, 0.015110258013010025, 0.11421319842338562, 0.17712098360061646, 0.13223618268966675, 0.03677010163664818, -0.42593666911125183, -0.06623721867799759, -0.0845857635140419, -0.06180446967482567, 0.2719154357910156, 0.14136846363544464, -0.05141495168209076, -0.4133569896221161, -0.8184746503829956, 0.08474436402320862, -0.04842987656593323, 0.06959594786167145, -0.02856042981147766, -0.04963795468211174, -0.4696211516857147, 0.17749494314193726, -0.011236008256673813, 0.04171400144696236, -0.2167789191007614, -0.1301220953464508, -0.36630043387413025, 0.20114782452583313, 0.15515899658203125, 0.03654739260673523, -0.10277390480041504, 0.05291536822915077, 0.0019790257792919874, 0.08639679849147797, 0.05239144712686539, 0.027868220582604408, -0.2423264980316162, -0.0767749696969986, -0.04370056465268135, -0.12854303419589996, -0.46910959482192993, -0.2726513147354126, 0.25725236535072327, -0.18445298075675964, -0.27432477474212646, -0.11496230959892273, -0.186767116189003, 0.17542268335819244, 0.10729575157165527, -0.5669478178024292, 0.23611164093017578, -0.18208451569080353, 0.18826602399349213, -0.25800999999046326, -0.06546951085329056, 0.10834027826786041, -0.13167457282543182, 0.06685288995504379, -0.026135670021176338, 0.07762084901332855, -0.335371196269989, 0.07285881787538528, 0.5143270492553711, -0.05410430580377579, 0.4642397463321686, 0.2792014479637146, 0.9787616729736328, 0.02834397554397583, 0.03379806503653526, 0.22154992818832397, -0.24287444353103638, 0.025330087170004845, -0.2796730697154999, -0.08838123083114624, 0.2139553427696228, -0.10284318774938583, 0.18997973203659058, 0.49137288331985474, 0.1769777238368988, -0.15031501650810242, 0.5999453067779541, -0.40780192613601685, 0.019406072795391083, -0.09211454540491104, 0.1283283531665802, -0.24464429914951324, 0.2750115990638733, 0.21088284254074097, -0.20892202854156494, -0.5871838927268982, -0.5047993659973145, 0.006857318803668022, 0.1920873373746872, -0.05355924740433693, 0.18379832804203033, -0.7017817497253418, -0.04726370424032211, -0.6418158411979675, 0.24497929215431213, 0.1216788962483406, 0.20358136296272278, 0.33313050866127014, 0.11061388999223709, 0.0969286635518074, 0.002803580602630973, 0.5349242091178894, -0.08996348083019257, -0.12341880798339844, -0.13035742938518524, -0.08319827914237976, -0.2667238414287567, -0.2034887820482254, 0.05026682838797569, 0.20798902213573456, 0.42211610078811646, 0.6396843791007996, -0.01817435584962368, -0.24088920652866364, -0.13249273598194122, 0.5823594331741333, -0.15146157145500183, -0.03663342818617821, -0.3615650534629822, 0.009744232520461082, -0.3141714334487915, 0.023152165114879608, -0.22939461469650269, 0.20830179750919342, -0.039500895887613297, -0.3119889795780182, -0.2788807451725006, -0.2269023060798645, -0.13326798379421234, 0.09342622011899948, 0.35691243410110474, 0.2507151663303375, 0.05037615820765495, -0.2593683898448944, 0.26538896560668945, 0.12227872759103775, -0.0939076766371727, 0.18295009434223175, 0.044723886996507645, -0.1494617462158203, 0.11095139384269714, 0.29139381647109985, 0.1125296875834465, -0.021857252344489098, 0.522507905960083, -0.27033087611198425, 0.13540494441986084, -0.040176648646593094, 0.43628352880477905, 0.29507943987846375, 0.1874898076057434, -0.48973020911216736, -0.27305448055267334, 0.21503540873527527, 0.1590602695941925, -0.05256007984280586, 0.2352222055196762, -0.0011442028917372227, -0.1771451085805893, 0.419763445854187, 0.07528539001941681, 1.0324597358703613, -0.08168144524097443, 0.34041088819503784, -0.0063025509007275105, 0.04150594398379326, 0.2976214289665222, -0.5319023132324219, 0.04931236058473587, -0.2820633351802826, 0.2580891251564026, 0.026202797889709473, 0.024056384339928627, -0.13062047958374023, 0.25230348110198975, 0.054371315985918045, 0.071609266102314, 0.04178430512547493, 0.3470291495323181, -0.3743636906147003, 0.5021027326583862, 0.14549027383327484, -0.03482108935713768, -0.007635034155100584, -0.008856954984366894, -0.149313822388649, -0.1716514527797699, -0.2195962369441986, 0.1203317940235138, -0.15084794163703918, -0.25449424982070923, -0.01157308742403984, -0.21797069907188416, -0.060083549469709396, 0.4255664348602295, -0.016385579481720924, -0.28382381796836853, 0.026874929666519165, 0.06573827564716339, 0.07740353792905807, 0.4879695475101471, -0.008989301510155201, 0.18614770472049713, -0.04990364611148834, 0.2513027489185333, 0.20684048533439636, -0.1604180783033371, 0.058146484196186066, -0.06260709464550018, -0.2437388002872467, -0.13746044039726257, -0.025948433205485344, -0.27792173624038696, -0.2813147306442261, 0.1817307323217392, 0.45923760533332825, -0.3054683804512024, -0.09201095998287201, 0.10782888531684875, -0.1723334938287735, -0.12593838572502136, 0.0388394258916378, -0.14798884093761444, 0.04210979864001274, 0.2073058784008026, 0.3386695683002472, -0.4318106174468994, -0.061214953660964966, 0.3661261200904846, 0.3979155421257019, 0.06290898472070694, 0.7458979487419128, -0.2787286937236786, -0.12605582177639008, -0.05456174165010452, 0.27087730169296265, 0.07438898086547852, 0.11989645659923553, -0.19028142094612122, -0.09994129091501236, 0.16312043368816376, 0.02085224539041519, 0.06997175514698029, -0.19126863777637482, -0.03216874226927757, -0.2584812343120575, -0.21951845288276672, -0.5605757236480713, 0.04624784737825394, -0.4587099850177765, 0.2077326774597168, 0.23988693952560425, 0.24754099547863007, -0.2975122332572937, 0.3902418613433838, -0.12942272424697876, 0.12522968649864197, 0.09799086302518845, 0.1446114033460617, -0.39161252975463867, -0.0055654277093708515, -0.11230994015932083, 0.09538056701421738, -0.08358462899923325, 0.16556210815906525, 0.06778670102357864, -0.1269429326057434, -0.32808247208595276, 0.1974896341562271, 0.2874697744846344, -0.17866571247577667, -0.04336995258927345, 0.047779060900211334, -0.14998270571231842, -0.3028780221939087, 0.248517245054245, -0.060795918107032776, 0.15759339928627014, 0.07634744793176651, 0.3379110097885132, -0.21882157027721405, -0.10006914287805557, -0.0007015572628006339, 0.21621480584144592, 0.06462829560041428, 0.08485665917396545, 0.1430528163909912, 0.26706740260124207, -0.08986018598079681, -0.4806744456291199, 0.008266797289252281, 0.25035592913627625, 0.08062965422868729, 0.3912355303764343, 0.1591603308916092, 0.041077956557273865, 0.0603681281208992, -0.20622409880161285, 0.11703208088874817, 0.050466910004615784, -0.38487476110458374, 0.37465155124664307, -0.006026844959706068, -0.05515608936548233, -0.04403699189424515, 0.2743839919567108, -0.26539596915245056, -0.18598149716854095, -0.05955905094742775, 0.4661209285259247, 0.29510045051574707, -0.40410351753234863, -0.09198570996522903, 0.36614423990249634, -0.22416459023952484, -0.06418970972299576, 0.09712205827236176, -0.009846296161413193, 0.09346729516983032, 0.2680351734161377, 0.05487366393208504, 0.11331629008054733, 0.36950597167015076, 0.3923884630203247, 0.2883473038673401, 0.26034054160118103, 0.077794149518013, 0.10326944291591644, -0.2553909420967102, -0.2653571367263794, 0.31033802032470703, -0.15311568975448608, 0.08998014777898788, 0.0528869554400444, 0.10004298388957977, 0.5368422269821167, -0.354166716337204, 0.0480194166302681, 0.41342222690582275, -0.2640722692012787, -0.23323218524456024, -0.06277570128440857, -0.023408209905028343, 0.06824607402086258, 0.09587494283914566, -0.07185414433479309, -0.15399982035160065, -0.23464152216911316, -0.03701801970601082, -0.18332315981388092, -0.19524528086185455, 0.19805437326431274, 0.2319135069847107, 0.19820308685302734, -0.23593828082084656, 0.016951385885477066, -0.31755974888801575, 0.1271291971206665, -0.2200942486524582, 0.20206788182258606, 0.3063051104545593, 0.22416749596595764, -0.14654098451137543, -0.07885026186704636, 0.11303497105836868, 0.10727494955062866, -0.05006249248981476, 0.07205363363027573, 0.2317844182252884, -0.48807790875434875, -0.041565388441085815, -0.11642658710479736, -0.05177744850516319, -0.3074435889720917, 0.3058529794216156, -0.19777782261371613, 0.04813532903790474, 0.12422051280736923, -0.10567992180585861, -0.2300594300031662, -0.16488386690616608, 0.21803133189678192, -0.43994268774986267, 0.13302280008792877, 0.3766919672489166, 0.061716388911008835, 0.3358033299446106, -0.4036955237388611, 0.01988186687231064, -0.3701345920562744, 0.39908745884895325, 0.5262001752853394, -0.12096626311540604, -0.21545740962028503, -0.26463812589645386, -0.11088021099567413, 0.2902739346027374, -0.35859671235084534, 0.05059042200446129, -0.18125951290130615, 0.26336750388145447, -0.19185103476047516, -0.36117425560951233, 0.025248125195503235, -0.07904348522424698, -0.00802622176706791, 0.13928163051605225, -0.04239848256111145, -0.03420231118798256, -0.41208285093307495, 0.10875233262777328, -0.1911477893590927, -0.07484683394432068, 0.20830224454402924, 0.06542050093412399, -0.13040514290332794, -0.11320531368255615, 0.0713810920715332, 0.019046345725655556, 0.03720681369304657, 0.3966080844402313, 0.26084819436073303, 0.36345431208610535, -0.08939234912395477, 0.249994158744812, 0.1179170235991478, -0.012681246735155582, -0.06520449370145798, 0.2503349781036377, -0.26639553904533386, 0.0027406455483287573, 0.1508229672908783, -0.027798542752861977, 0.21092833578586578, 0.01453670859336853, 0.1021500751376152, -0.23042455315589905, -0.12753015756607056, 0.06396174430847168, -0.1374921202659607, -0.03613723814487457, -0.12387555837631226, 0.5886522531509399, 0.048727672547101974, 0.17675122618675232, -0.02597861737012863, -0.21673202514648438, 0.19249816238880157, -0.5318945050239563, -0.119451142847538, -0.2614593207836151, -0.0022513307631015778, 0.2452489733695984, -0.2696591317653656, -0.3578726351261139, -0.07671152800321579, 0.5602195858955383, 0.07363253831863403, -0.024723047390580177, 0.18556919693946838, 0.17730383574962616, 0.18055249750614166, -0.14978046715259552, 0.3128385841846466, -0.27670207619667053, 0.03375047445297241, 0.06838610768318176, -0.023037880659103394 ]
https://github.com/huggingface/datasets/issues/257
Tokenizer pickling issue fix not landed in `nlp` yet?
Yes, the new release of tokenizers solves this and should be out soon. In the meantime, you can install it with `pip install tokenizers==0.8.0-dev2`
Unless I recreate an arrow_dataset from my loaded nlp dataset myself (which I think does not use the cache by default), I get the following error when applying the map function: ``` dataset = nlp.load_dataset('cos_e') tokenizer = GPT2TokenizerFast.from_pretrained('gpt2', cache_dir=cache_dir) for split in dataset.keys(): dataset[split].map(lambda x: some_function(x, tokenizer)) ``` ``` 06/09/2020 10:09:19 - INFO - nlp.builder - Constructing Dataset for split train[:10], from /home/sarahw/.cache/huggingface/datasets/cos_e/default/0.0.1 Traceback (most recent call last): File "generation/input_to_label_and_rationale.py", line 390, in <module> main() File "generation/input_to_label_and_rationale.py", line 263, in main dataset[split] = dataset[split].map(lambda x: input_to_explanation_plus_label(x, tokenizer, max_length, datasource=data_args.task_name, wt5=(model_class=='t5'), expl_only=model_args.rationale_only), batched=False) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 522, in map cache_file_name = self._get_cache_file_path(function, cache_kwargs) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 381, in _get_cache_file_path function_bytes = dumps(function) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 257, in dumps dump(obj, file) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 250, in dump Pickler(file).dump(obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 445, in dump StockPickler.dump(self, obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 485, in dump self.save(obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1410, in save_function pickler.save_reduce(_create_function, (obj.__code__, File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1147, in save_cell pickler.save_reduce(_create_cell, (f,), obj=obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 884, in save_tuple save(element) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save self.save_reduce(obj=obj, *rv) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce save(state) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict StockPickler.save_dict(pickler, obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict self._batch_setitems(obj.items()) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems save(v) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save self.save_reduce(obj=obj, *rv) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce save(state) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict StockPickler.save_dict(pickler, obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict self._batch_setitems(obj.items()) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems save(v) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 576, in save rv = reduce(self.proto) TypeError: cannot pickle 'Tokenizer' object ``` Fix seems to be in the tokenizers [`0.8.0.dev1 pre-release`](https://github.com/huggingface/tokenizers/issues/87), which I can't install with any package managers.
24
Tokenizer pickling issue fix not landed in `nlp` yet? Unless I recreate an arrow_dataset from my loaded nlp dataset myself (which I think does not use the cache by default), I get the following error when applying the map function: ``` dataset = nlp.load_dataset('cos_e') tokenizer = GPT2TokenizerFast.from_pretrained('gpt2', cache_dir=cache_dir) for split in dataset.keys(): dataset[split].map(lambda x: some_function(x, tokenizer)) ``` ``` 06/09/2020 10:09:19 - INFO - nlp.builder - Constructing Dataset for split train[:10], from /home/sarahw/.cache/huggingface/datasets/cos_e/default/0.0.1 Traceback (most recent call last): File "generation/input_to_label_and_rationale.py", line 390, in <module> main() File "generation/input_to_label_and_rationale.py", line 263, in main dataset[split] = dataset[split].map(lambda x: input_to_explanation_plus_label(x, tokenizer, max_length, datasource=data_args.task_name, wt5=(model_class=='t5'), expl_only=model_args.rationale_only), batched=False) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 522, in map cache_file_name = self._get_cache_file_path(function, cache_kwargs) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 381, in _get_cache_file_path function_bytes = dumps(function) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 257, in dumps dump(obj, file) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 250, in dump Pickler(file).dump(obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 445, in dump StockPickler.dump(self, obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 485, in dump self.save(obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1410, in save_function pickler.save_reduce(_create_function, (obj.__code__, File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1147, in save_cell pickler.save_reduce(_create_cell, (f,), obj=obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 884, in save_tuple save(element) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save self.save_reduce(obj=obj, *rv) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce save(state) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict StockPickler.save_dict(pickler, obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict self._batch_setitems(obj.items()) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems save(v) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save self.save_reduce(obj=obj, *rv) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce save(state) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict StockPickler.save_dict(pickler, obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict self._batch_setitems(obj.items()) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems save(v) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 576, in save rv = reduce(self.proto) TypeError: cannot pickle 'Tokenizer' object ``` Fix seems to be in the tokenizers [`0.8.0.dev1 pre-release`](https://github.com/huggingface/tokenizers/issues/87), which I can't install with any package managers. Yes, the new release of tokenizers solves this and should be out soon. In the meantime, you can install it with `pip install tokenizers==0.8.0-dev2`
[ 0.009911766275763512, 0.1761876791715622, 0.0797634944319725, 0.03321941941976547, -0.018764236941933632, -0.09835225343704224, -0.043976977467536926, 0.3858543038368225, 0.23286229372024536, -0.17839621007442474, 0.15334448218345642, 0.7815694212913513, -0.18905846774578094, -0.2719968855381012, 0.05663476511836052, -0.15590588748455048, 0.006841748952865601, 0.11283054947853088, 0.3384629189968109, 0.01790703274309635, -0.2215675711631775, 0.36634361743927, -0.20355455577373505, 0.29775625467300415, -0.4966282844543457, -0.21667544543743134, 0.20677538216114044, -0.047220971435308456, -0.12316901236772537, -0.5728650689125061, 0.18703939020633698, -0.07400461286306381, -0.13193856179714203, 0.06161870062351227, -0.00011744163202820346, -0.14955848455429077, 0.3925051987171173, 0.027064600959420204, -0.14823584258556366, -0.23680897057056427, 0.1705566942691803, -0.09398539364337921, 0.13261227309703827, -0.023270148783922195, -0.029541706666350365, -0.07699117064476013, 0.10836619883775711, -0.10980715602636337, 0.3249572515487671, -0.03442232683300972, 0.19127702713012695, 0.3061879277229309, 0.13825723528862, 0.010818785056471825, 0.09691677242517471, -0.15521854162216187, -0.1684090942144394, -0.0005966337630525231, 0.09011965990066528, -0.2653208076953888, -0.2927822470664978, 0.47386786341667175, 0.008657088503241539, -0.05826261639595032, 0.06942363828420639, 0.021325644105672836, -0.1785934418439865, -0.07572009414434433, 0.09370642155408859, -0.027107298374176025, 0.09554558247327805, -0.1859520524740219, -0.044574666768312454, -0.44171732664108276, -0.12900486588478088, -0.45500656962394714, 0.18273907899856567, -0.14791831374168396, -0.23841507732868195, -0.04409511387348175, -0.009039857424795628, -0.38845789432525635, 0.1388707160949707, 0.3053472638130188, 0.12892864644527435, 0.6000416278839111, -0.05727918818593025, 0.2780376374721527, 0.28198108077049255, -0.08804052323102951, -0.2382815182209015, 0.15676994621753693, -0.18787835538387299, 0.43565261363983154, -0.34436458349227905, -0.11780998110771179, 0.22057008743286133, 0.05353795737028122, -0.0640307292342186, 0.39757782220840454, -0.0016298196278512478, 0.24292312562465668, -0.12060672789812088, 0.16440437734127045, 0.04771692678332329, 0.459107369184494, 0.30474478006362915, 0.5499494671821594, 0.01052568294107914, -0.39809125661849976, -0.03758529946208, -0.0503837987780571, -0.07537054270505905, -0.2622777819633484, 0.031823836266994476, 0.05095263570547104, -0.11718136817216873, -0.10476785898208618, -0.1330922394990921, 0.060889746993780136, -0.2686988115310669, 0.06473677605390549, 0.2208593785762787, 0.19584861397743225, 0.13529449701309204, 0.15045033395290375, -0.13207687437534332, 0.17244133353233337, -0.18776315450668335, -0.1661205142736435, -0.2481427937746048, 0.07978541404008865, -0.31500735878944397, 0.1819624900817871, 0.09730539470911026, 0.2771175503730774, 0.4803226888179779, -0.1688135415315628, -0.05875220149755478, 0.06284698843955994, 0.1248936802148819, -0.009232294745743275, 0.23225116729736328, 0.07257476449012756, -0.14736148715019226, 0.32906079292297363, 0.31269708275794983, -0.1413334757089615, -0.2816561162471771, -0.051630232483148575, -0.27343276143074036, -0.36264967918395996, -0.11526220291852951, 0.12547579407691956, -0.06226475536823273, -0.13849464058876038, -0.271987646818161, 0.2420283704996109, 0.4594835042953491, -0.18899032473564148, 0.11018336564302444, -0.19901159405708313, -0.32648754119873047, -0.2962647080421448, 0.030712654814124107, 0.2880881130695343, 0.048427361994981766, -0.37903067469596863, -0.19732025265693665, 0.1527024358510971, 0.43668919801712036, 0.5128078460693359, -0.3213970363140106, 0.1518734246492386, -0.2618013024330139, 0.8142929077148438, 0.5736559629440308, -0.25082501769065857, -0.4575698971748352, 0.035864003002643585, -0.18986909091472626, 0.0828072726726532, -0.24724285304546356, -0.08292097598314285, -0.011943496763706207, -0.14294542372226715, 0.17918696999549866, 0.2489398568868637, -0.008139294572174549, 0.007634209003299475, -0.3845755457878113, -0.04298602417111397, 0.361070454120636, -0.04021061584353447, 0.13590149581432343, -0.11010187864303589, -0.22312046587467194, 0.013850348070263863, 0.0019652938935905695, -0.015099234879016876, 0.3447347581386566, -0.07404810190200806, 0.11379537731409073, -0.17386329174041748, 0.07570680230855942, 0.041116002947092056, -0.3737533688545227, 0.1523696482181549, -0.2930888235569, 0.15114031732082367, -0.2010425180196762, 0.021356817334890366, -0.12877750396728516, 0.04449714347720146, -0.33988943696022034, -0.23302824795246124, 0.128467857837677, 0.004651184659451246, 0.19840778410434723, 0.034429535269737244, -0.014597359113395214, -0.06104474142193794, 0.06276119500398636, 0.15490996837615967, -0.13033320009708405, -0.05654410272836685, -0.046776674687862396, -0.2752355933189392, -0.29915621876716614, 0.1600327491760254, 0.2399737536907196, -0.025426743552088737, -0.2603601813316345, 0.2941334843635559, 0.00703151011839509, 0.048664748668670654, -0.12077517062425613, -0.06057220324873924, 0.09702910482883453, -0.1387101411819458, -0.11031535267829895, 0.12425393611192703, -0.019869288429617882, -0.25199413299560547, 0.31832602620124817, 0.3542828857898712, 0.18840833008289337, 0.0600372850894928, -0.28683000802993774, 0.2985999286174774, 0.061098434031009674, -0.017383616417646408, 0.1314127892255783, -0.2714954614639282, 0.06667342782020569, -0.12505896389484406, 0.29385557770729065, -0.12012049555778503, -0.021707937121391296, 0.355284184217453, 0.32174795866012573, 0.31911495327949524, 0.060161687433719635, 0.11061723530292511, -0.2048504799604416, -0.2746069133281708, 0.09482396394014359, 0.12427536398172379, 0.1567913293838501, 0.18599843978881836, 0.04236774146556854, -0.058703526854515076, -0.1060369536280632, -0.08836474269628525, 0.13407103717327118, 0.012187428772449493, 0.06867887079715729, 0.15963461995124817, 0.06015900522470474, 0.11714329570531845, -0.3626598119735718, 0.0093215461820364, 0.10926103591918945, 0.3128890097141266, -0.11231566220521927, -0.0685734823346138, -0.3171986937522888, -0.09657792001962662, 0.18618395924568176, -0.3486098349094391, -0.24346637725830078, -0.453867644071579, 0.13185933232307434, 0.1396830528974533, -0.12046273797750473, 0.4497218132019043, -0.18037238717079163, 0.2464590221643448, 0.02911045402288437, -0.09016606956720352, -0.31709614396095276, -0.5001768469810486, -0.3929177522659302, -0.002068521687760949, 0.10869276523590088, -0.06565143913030624, 0.19884367287158966, 0.17002159357070923, 0.0388033501803875, -0.0799688994884491, -0.3938220143318176, 0.22453610599040985, -0.1287582963705063, 0.048669856041669846, 0.2407984733581543, -0.20670101046562195, -0.4435544013977051, -0.31159707903862, 0.17952559888362885, -0.34777766466140747, -0.3655570447444916, -0.1269761025905609, 0.04430976137518883, -0.11614872515201569, -0.15670259296894073, -0.04878900572657585, -0.18340589106082916, -0.2831900119781494, 0.27697283029556274, 0.024691151455044746, 0.18116480112075806, 0.4258761703968048, -0.3476056158542633, 0.05340448021888733, -0.30796369910240173, -0.12469962984323502, -0.5135579705238342, 0.09018006175756454, 0.3106083273887634, -0.32009372115135193, -0.138734370470047, -0.17292653024196625, -0.15813878178596497, 0.34024691581726074, 0.04106774553656578, -0.19394542276859283, 0.1122734546661377, -0.08586578071117401, 0.16101635992527008, -0.10779814422130585, -0.06236925348639488, 0.4786885976791382, 0.09708620607852936, -0.0032035717740654945, -0.18296051025390625, -0.16469073295593262, 0.4114794135093689, -0.06806870549917221, 0.3304803967475891, 0.08736769109964371, 0.10527398437261581, 0.2931068241596222, 0.8183512687683105, 0.20562070608139038, -0.10437096655368805, 0.4881404936313629, 0.2336607575416565, 0.0024522871244698763, -0.20409083366394043, -0.2489946335554123, 0.10886983573436737, -0.021735310554504395, 0.3350546658039093, 0.05009206756949425, 0.008599700406193733, -0.4172486662864685, 0.12043774127960205, 0.15182994306087494, -0.15421199798583984, -0.2865459620952606, 0.18523375689983368, -0.3836118280887604, 0.13475602865219116, 0.1777048259973526, 0.04425854608416557, -0.5306251645088196, -0.13457819819450378, 0.11720072478055954, -0.25686532258987427, 0.39326125383377075, 0.08267475664615631, -0.5393276214599609, 0.05163125693798065, -0.733731746673584, 0.2864339053630829, 0.2413739114999771, 0.39541107416152954, -0.19885295629501343, -0.17362041771411896, 0.0418541394174099, 0.07487164437770844, 0.3452202379703522, -0.1550500988960266, -0.055280812084674835, 0.1675942838191986, 0.06943477690219879, -0.1352934092283249, 0.1023075208067894, 0.2772549092769623, 0.5168840885162354, 0.45414862036705017, 0.39206698536872864, -0.3881204426288605, -0.25622063875198364, -0.1675945371389389, -0.1744464486837387, -0.018657032400369644, 0.036590415984392166, 0.029322518035769463, 0.11371330916881561, -0.1721305549144745, 0.1507241576910019, 0.2761486768722534, 0.3388308882713318, 0.3948657810688019, 0.17621631920337677, -0.11653245240449905, -0.12748318910598755, -0.1879197508096695, 0.13666890561580658, 0.36158353090286255, 0.03266614302992821, 0.04741678759455681, 0.21893015503883362, 0.11869332939386368, -0.2655071020126343, 0.1644703447818756, 0.250942200422287, -0.11180412769317627, 0.16112008690834045, 0.28357043862342834, 0.12172849476337433, 0.27629354596138, 0.035271670669317245, 0.46694260835647583, -0.4396466612815857, 0.20554815232753754, 0.11181297898292542, 0.40232470631599426, 0.06568992137908936, -0.053507305681705475, -0.2024739384651184, -0.0851316899061203, 0.32677268981933594, 0.12510541081428528, -0.21785594522953033, 0.5619800686836243, -0.030540116131305695, -0.343418687582016, 0.4547913670539856, 0.10107164084911346, 0.8719285130500793, 0.27255696058273315, 0.20116129517555237, 0.23683398962020874, 0.05637012794613838, 0.6379824876785278, 0.03707444667816162, 0.14599935710430145, -0.3191588521003723, 0.36650967597961426, 0.03573957085609436, -0.03795981407165527, -0.12783414125442505, 0.09608044475317001, -0.04991241917014122, 0.2048887014389038, 0.23945577442646027, 0.20106405019760132, 0.248294398188591, 0.11101685464382172, -0.0012671384029090405, -0.35419026017189026, 0.1831115037202835, 0.0841662734746933, -0.37972941994667053, 0.36355629563331604, 0.04326508194208145, -0.14761480689048767, -0.02832004986703396, -0.3495350480079651, -0.268756628036499, 0.11712485551834106, -0.4619830548763275, 0.39097264409065247, 0.43135207891464233, -0.2079496830701828, 0.1729608178138733, -0.14051935076713562, 0.17857232689857483, -0.06800005584955215, -0.12569983303546906, 0.37176135182380676, 0.28187423944473267, -0.05783020332455635, 0.03172028064727783, -0.13060520589351654, 0.27976304292678833, 0.03044210746884346, 0.0019757645204663277, -0.10162176936864853, -0.14831045269966125, -0.4747529625892639, -0.4060356616973877, 0.026036566123366356, 0.17965009808540344, 0.11155924946069717, -0.21012862026691437, 0.13397055864334106, -0.01886814646422863, -0.24504902958869934, 0.08942179381847382, 0.10318583250045776, -0.17431651055812836, -0.031313639134168625, 0.10778330266475677, -0.13057257235050201, 0.08922015875577927, 0.2922828197479248, -0.20331980288028717, -0.18270500004291534, 0.5570833086967468, -0.19182291626930237, -0.181535542011261, -0.1592898964881897, -0.1746973991394043, 0.23148220777511597, -0.46457788348197937, 0.10097426921129227, -0.0894123762845993, -0.12167608737945557, 0.041082728654146194, 0.33082377910614014, 0.18773013353347778, 0.17358903586864471, 0.07088306546211243, -0.2569064199924469, -0.2817663252353668, 0.16321904957294464, -0.5082812309265137, 0.06361756473779678, 0.00040743203135207295, 0.3584064543247223, -0.2887224555015564, 0.390494704246521, -0.26252707839012146, 0.09431260079145432, -0.0914551392197609, 0.09051139652729034, -0.05649223551154137, -0.3398315906524658, -0.0600879080593586, 0.008368156850337982, -0.00685096625238657, 0.4153744876384735, -0.25015783309936523, -0.16479939222335815, -0.23396295309066772, 0.1227044016122818, 0.3353521525859833, -0.32564619183540344, -0.04769652709364891, 0.24043700098991394, 0.07123258709907532, -0.14163507521152496, -0.05117882415652275, -0.03441300243139267, -0.09871160984039307, 0.1077834814786911, 0.09028024226427078, 0.0484992153942585, 0.24480727314949036, 0.17203573882579803, 0.000004234479092701804, 0.01160848792642355, 0.1033727303147316, 0.3003520369529724, -0.056695032864809036, 0.04998264089226723, 0.009672114625573158, 0.05495510622859001, -0.05470171198248863, -0.10611490905284882, 0.10379958897829056, -0.4290776550769806, -0.27676743268966675, -0.1523224413394928, 0.05145353451371193, 0.08422116935253143, -0.009016028605401516, -0.40862175822257996, 0.5563297867774963, 0.1777573972940445, -0.1644628494977951, -0.07306461781263351, 0.41876542568206787, 0.23043151199817657, 0.05824704095721245, 0.06152043491601944, 0.2833520770072937, -0.09697124361991882, 0.08293352276086807, 0.021381542086601257, 0.49933335185050964, -0.40744322538375854, 0.19615229964256287, -0.007525205612182617, -0.05386390537023544, 0.038978833705186844, 0.5023404955863953, 0.10222181677818298, 0.2201758176088333, 0.031536687165498734, -0.06836182624101639, 0.30544519424438477, 0.09963285177946091, 0.23935820162296295, -0.1012042909860611, -0.39595434069633484, -0.3370904326438904, 0.3917887806892395, -0.04883601516485214, 0.22348862886428833, 0.022382700815796852, 0.531040370464325, -0.022108713164925575, -0.42057445645332336, 0.14573773741722107, 0.5340762734413147, -0.34414246678352356, -0.3428347706794739, -0.4735886752605438, 0.00729865487664938, -0.35032448172569275, 0.02351905032992363, -0.026537509635090828, -0.04130298271775246, 0.007149660959839821, -0.07907334715127945, -0.1581784188747406, -0.3293398320674896, -0.23597155511379242, 0.05745473876595497, 0.2912585437297821, -0.24715061485767365, 0.4018816351890564, -0.46888867020606995, -0.21708112955093384, -0.2654466927051544, 0.19908182322978973, 0.29483407735824585, 0.24473685026168823, -0.41608771681785583, -0.22379669547080994, 0.011963967233896255, 0.12716056406497955, -0.12253857403993607, 0.3143151104450226, 0.24124883115291595, -0.3868144154548645, 0.14211076498031616, -0.0401090644299984, -0.11037397384643555, 0.031061040237545967, 0.13896985352039337, 0.2229580134153366, 0.327942818403244, 0.16591958701610565, -0.15134693682193756, -0.07004352658987045, -0.051429633051157, 0.07747561484575272, -0.2236931025981903, 0.13349175453186035, 0.022825833410024643, 0.04229939356446266, 0.1793937236070633, -0.32483211159706116, 0.08635004609823227, 0.10883824527263641, 0.4186907410621643, 0.3605180084705353, -0.2678302526473999, -0.40158611536026, -0.42700472474098206, -0.39726632833480835, 0.1965406835079193, -0.05414507910609245, -0.047371722757816315, -0.04059191793203354, 0.058616913855075836, 0.04444059357047081, -0.020000264048576355, -0.1949569433927536, 0.4008176922798157, 0.13667993247509003, 0.17456303536891937, -0.3776070475578308, 0.4529929459095001, 0.09525036066770554, -0.07812052965164185, 0.2346620410680771, -0.30719295144081116, 0.014845986850559711, 0.10009244084358215, 0.056665778160095215, -0.15137310326099396, -0.12513746321201324, -0.0407404750585556, 0.20701278746128082, 0.2774702310562134, 0.33225390315055847, 0.2022203803062439, 0.06408841162919998, 0.18390017747879028, -0.3896696865558624, -0.39341452717781067, -0.2413274496793747, -0.10816436260938644, -0.18652410805225372, 0.43140286207199097, -0.029627792537212372, 0.23325927555561066, -0.4199027717113495, 0.012597046792507172, -0.02927379496395588, 0.0756550282239914, -0.17471404373645782, 0.3251663148403168, -0.28448614478111267, 0.26318731904029846, -0.05177638307213783, 0.36425650119781494, -0.015290253795683384, 0.43932077288627625, -0.41979414224624634, -0.43483564257621765, 0.5731075406074524, -0.7418984770774841, -0.22339537739753723, 0.23296375572681427, 0.007688512094318867, 0.5054776668548584, -0.3683009147644043, -0.1933443397283554, -0.25314342975616455, 0.2136693149805069, -0.04100785776972771, -0.24649012088775635, 0.05061246454715729, -0.045193564146757126, -0.09691564738750458, -0.04278610646724701, 0.6299055218696594, 0.12385910004377365, -0.1319497972726822, 0.14684243500232697, -0.1718580275774002 ]
https://github.com/huggingface/datasets/issues/257
Tokenizer pickling issue fix not landed in `nlp` yet?
If others run into this issue, a quick fix is to use python 3.6 instead of 3.7+. Serialization differences between the 3rd party `dataclasses` package for 3.6 and the built in `dataclasses` in 3.7+ cause the issue. Probably a dumb fix, but it works for me.
Unless I recreate an arrow_dataset from my loaded nlp dataset myself (which I think does not use the cache by default), I get the following error when applying the map function: ``` dataset = nlp.load_dataset('cos_e') tokenizer = GPT2TokenizerFast.from_pretrained('gpt2', cache_dir=cache_dir) for split in dataset.keys(): dataset[split].map(lambda x: some_function(x, tokenizer)) ``` ``` 06/09/2020 10:09:19 - INFO - nlp.builder - Constructing Dataset for split train[:10], from /home/sarahw/.cache/huggingface/datasets/cos_e/default/0.0.1 Traceback (most recent call last): File "generation/input_to_label_and_rationale.py", line 390, in <module> main() File "generation/input_to_label_and_rationale.py", line 263, in main dataset[split] = dataset[split].map(lambda x: input_to_explanation_plus_label(x, tokenizer, max_length, datasource=data_args.task_name, wt5=(model_class=='t5'), expl_only=model_args.rationale_only), batched=False) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 522, in map cache_file_name = self._get_cache_file_path(function, cache_kwargs) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 381, in _get_cache_file_path function_bytes = dumps(function) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 257, in dumps dump(obj, file) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 250, in dump Pickler(file).dump(obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 445, in dump StockPickler.dump(self, obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 485, in dump self.save(obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1410, in save_function pickler.save_reduce(_create_function, (obj.__code__, File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1147, in save_cell pickler.save_reduce(_create_cell, (f,), obj=obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 884, in save_tuple save(element) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save self.save_reduce(obj=obj, *rv) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce save(state) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict StockPickler.save_dict(pickler, obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict self._batch_setitems(obj.items()) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems save(v) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save self.save_reduce(obj=obj, *rv) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce save(state) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict StockPickler.save_dict(pickler, obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict self._batch_setitems(obj.items()) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems save(v) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 576, in save rv = reduce(self.proto) TypeError: cannot pickle 'Tokenizer' object ``` Fix seems to be in the tokenizers [`0.8.0.dev1 pre-release`](https://github.com/huggingface/tokenizers/issues/87), which I can't install with any package managers.
46
Tokenizer pickling issue fix not landed in `nlp` yet? Unless I recreate an arrow_dataset from my loaded nlp dataset myself (which I think does not use the cache by default), I get the following error when applying the map function: ``` dataset = nlp.load_dataset('cos_e') tokenizer = GPT2TokenizerFast.from_pretrained('gpt2', cache_dir=cache_dir) for split in dataset.keys(): dataset[split].map(lambda x: some_function(x, tokenizer)) ``` ``` 06/09/2020 10:09:19 - INFO - nlp.builder - Constructing Dataset for split train[:10], from /home/sarahw/.cache/huggingface/datasets/cos_e/default/0.0.1 Traceback (most recent call last): File "generation/input_to_label_and_rationale.py", line 390, in <module> main() File "generation/input_to_label_and_rationale.py", line 263, in main dataset[split] = dataset[split].map(lambda x: input_to_explanation_plus_label(x, tokenizer, max_length, datasource=data_args.task_name, wt5=(model_class=='t5'), expl_only=model_args.rationale_only), batched=False) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 522, in map cache_file_name = self._get_cache_file_path(function, cache_kwargs) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 381, in _get_cache_file_path function_bytes = dumps(function) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 257, in dumps dump(obj, file) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 250, in dump Pickler(file).dump(obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 445, in dump StockPickler.dump(self, obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 485, in dump self.save(obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1410, in save_function pickler.save_reduce(_create_function, (obj.__code__, File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple save(element) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1147, in save_cell pickler.save_reduce(_create_cell, (f,), obj=obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce save(args) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 884, in save_tuple save(element) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save self.save_reduce(obj=obj, *rv) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce save(state) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict StockPickler.save_dict(pickler, obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict self._batch_setitems(obj.items()) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems save(v) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save self.save_reduce(obj=obj, *rv) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce save(state) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save f(self, obj) # Call unbound method with explicit self File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict StockPickler.save_dict(pickler, obj) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict self._batch_setitems(obj.items()) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems save(v) File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 576, in save rv = reduce(self.proto) TypeError: cannot pickle 'Tokenizer' object ``` Fix seems to be in the tokenizers [`0.8.0.dev1 pre-release`](https://github.com/huggingface/tokenizers/issues/87), which I can't install with any package managers. If others run into this issue, a quick fix is to use python 3.6 instead of 3.7+. Serialization differences between the 3rd party `dataclasses` package for 3.6 and the built in `dataclasses` in 3.7+ cause the issue. Probably a dumb fix, but it works for me.
[ 0.009911766275763512, 0.1761876791715622, 0.0797634944319725, 0.03321941941976547, -0.018764236941933632, -0.09835225343704224, -0.043976977467536926, 0.3858543038368225, 0.23286229372024536, -0.17839621007442474, 0.15334448218345642, 0.7815694212913513, -0.18905846774578094, -0.2719968855381012, 0.05663476511836052, -0.15590588748455048, 0.006841748952865601, 0.11283054947853088, 0.3384629189968109, 0.01790703274309635, -0.2215675711631775, 0.36634361743927, -0.20355455577373505, 0.29775625467300415, -0.4966282844543457, -0.21667544543743134, 0.20677538216114044, -0.047220971435308456, -0.12316901236772537, -0.5728650689125061, 0.18703939020633698, -0.07400461286306381, -0.13193856179714203, 0.06161870062351227, -0.00011744163202820346, -0.14955848455429077, 0.3925051987171173, 0.027064600959420204, -0.14823584258556366, -0.23680897057056427, 0.1705566942691803, -0.09398539364337921, 0.13261227309703827, -0.023270148783922195, -0.029541706666350365, -0.07699117064476013, 0.10836619883775711, -0.10980715602636337, 0.3249572515487671, -0.03442232683300972, 0.19127702713012695, 0.3061879277229309, 0.13825723528862, 0.010818785056471825, 0.09691677242517471, -0.15521854162216187, -0.1684090942144394, -0.0005966337630525231, 0.09011965990066528, -0.2653208076953888, -0.2927822470664978, 0.47386786341667175, 0.008657088503241539, -0.05826261639595032, 0.06942363828420639, 0.021325644105672836, -0.1785934418439865, -0.07572009414434433, 0.09370642155408859, -0.027107298374176025, 0.09554558247327805, -0.1859520524740219, -0.044574666768312454, -0.44171732664108276, -0.12900486588478088, -0.45500656962394714, 0.18273907899856567, -0.14791831374168396, -0.23841507732868195, -0.04409511387348175, -0.009039857424795628, -0.38845789432525635, 0.1388707160949707, 0.3053472638130188, 0.12892864644527435, 0.6000416278839111, -0.05727918818593025, 0.2780376374721527, 0.28198108077049255, -0.08804052323102951, -0.2382815182209015, 0.15676994621753693, -0.18787835538387299, 0.43565261363983154, -0.34436458349227905, -0.11780998110771179, 0.22057008743286133, 0.05353795737028122, -0.0640307292342186, 0.39757782220840454, -0.0016298196278512478, 0.24292312562465668, -0.12060672789812088, 0.16440437734127045, 0.04771692678332329, 0.459107369184494, 0.30474478006362915, 0.5499494671821594, 0.01052568294107914, -0.39809125661849976, -0.03758529946208, -0.0503837987780571, -0.07537054270505905, -0.2622777819633484, 0.031823836266994476, 0.05095263570547104, -0.11718136817216873, -0.10476785898208618, -0.1330922394990921, 0.060889746993780136, -0.2686988115310669, 0.06473677605390549, 0.2208593785762787, 0.19584861397743225, 0.13529449701309204, 0.15045033395290375, -0.13207687437534332, 0.17244133353233337, -0.18776315450668335, -0.1661205142736435, -0.2481427937746048, 0.07978541404008865, -0.31500735878944397, 0.1819624900817871, 0.09730539470911026, 0.2771175503730774, 0.4803226888179779, -0.1688135415315628, -0.05875220149755478, 0.06284698843955994, 0.1248936802148819, -0.009232294745743275, 0.23225116729736328, 0.07257476449012756, -0.14736148715019226, 0.32906079292297363, 0.31269708275794983, -0.1413334757089615, -0.2816561162471771, -0.051630232483148575, -0.27343276143074036, -0.36264967918395996, -0.11526220291852951, 0.12547579407691956, -0.06226475536823273, -0.13849464058876038, -0.271987646818161, 0.2420283704996109, 0.4594835042953491, -0.18899032473564148, 0.11018336564302444, -0.19901159405708313, -0.32648754119873047, -0.2962647080421448, 0.030712654814124107, 0.2880881130695343, 0.048427361994981766, -0.37903067469596863, -0.19732025265693665, 0.1527024358510971, 0.43668919801712036, 0.5128078460693359, -0.3213970363140106, 0.1518734246492386, -0.2618013024330139, 0.8142929077148438, 0.5736559629440308, -0.25082501769065857, -0.4575698971748352, 0.035864003002643585, -0.18986909091472626, 0.0828072726726532, -0.24724285304546356, -0.08292097598314285, -0.011943496763706207, -0.14294542372226715, 0.17918696999549866, 0.2489398568868637, -0.008139294572174549, 0.007634209003299475, -0.3845755457878113, -0.04298602417111397, 0.361070454120636, -0.04021061584353447, 0.13590149581432343, -0.11010187864303589, -0.22312046587467194, 0.013850348070263863, 0.0019652938935905695, -0.015099234879016876, 0.3447347581386566, -0.07404810190200806, 0.11379537731409073, -0.17386329174041748, 0.07570680230855942, 0.041116002947092056, -0.3737533688545227, 0.1523696482181549, -0.2930888235569, 0.15114031732082367, -0.2010425180196762, 0.021356817334890366, -0.12877750396728516, 0.04449714347720146, -0.33988943696022034, -0.23302824795246124, 0.128467857837677, 0.004651184659451246, 0.19840778410434723, 0.034429535269737244, -0.014597359113395214, -0.06104474142193794, 0.06276119500398636, 0.15490996837615967, -0.13033320009708405, -0.05654410272836685, -0.046776674687862396, -0.2752355933189392, -0.29915621876716614, 0.1600327491760254, 0.2399737536907196, -0.025426743552088737, -0.2603601813316345, 0.2941334843635559, 0.00703151011839509, 0.048664748668670654, -0.12077517062425613, -0.06057220324873924, 0.09702910482883453, -0.1387101411819458, -0.11031535267829895, 0.12425393611192703, -0.019869288429617882, -0.25199413299560547, 0.31832602620124817, 0.3542828857898712, 0.18840833008289337, 0.0600372850894928, -0.28683000802993774, 0.2985999286174774, 0.061098434031009674, -0.017383616417646408, 0.1314127892255783, -0.2714954614639282, 0.06667342782020569, -0.12505896389484406, 0.29385557770729065, -0.12012049555778503, -0.021707937121391296, 0.355284184217453, 0.32174795866012573, 0.31911495327949524, 0.060161687433719635, 0.11061723530292511, -0.2048504799604416, -0.2746069133281708, 0.09482396394014359, 0.12427536398172379, 0.1567913293838501, 0.18599843978881836, 0.04236774146556854, -0.058703526854515076, -0.1060369536280632, -0.08836474269628525, 0.13407103717327118, 0.012187428772449493, 0.06867887079715729, 0.15963461995124817, 0.06015900522470474, 0.11714329570531845, -0.3626598119735718, 0.0093215461820364, 0.10926103591918945, 0.3128890097141266, -0.11231566220521927, -0.0685734823346138, -0.3171986937522888, -0.09657792001962662, 0.18618395924568176, -0.3486098349094391, -0.24346637725830078, -0.453867644071579, 0.13185933232307434, 0.1396830528974533, -0.12046273797750473, 0.4497218132019043, -0.18037238717079163, 0.2464590221643448, 0.02911045402288437, -0.09016606956720352, -0.31709614396095276, -0.5001768469810486, -0.3929177522659302, -0.002068521687760949, 0.10869276523590088, -0.06565143913030624, 0.19884367287158966, 0.17002159357070923, 0.0388033501803875, -0.0799688994884491, -0.3938220143318176, 0.22453610599040985, -0.1287582963705063, 0.048669856041669846, 0.2407984733581543, -0.20670101046562195, -0.4435544013977051, -0.31159707903862, 0.17952559888362885, -0.34777766466140747, -0.3655570447444916, -0.1269761025905609, 0.04430976137518883, -0.11614872515201569, -0.15670259296894073, -0.04878900572657585, -0.18340589106082916, -0.2831900119781494, 0.27697283029556274, 0.024691151455044746, 0.18116480112075806, 0.4258761703968048, -0.3476056158542633, 0.05340448021888733, -0.30796369910240173, -0.12469962984323502, -0.5135579705238342, 0.09018006175756454, 0.3106083273887634, -0.32009372115135193, -0.138734370470047, -0.17292653024196625, -0.15813878178596497, 0.34024691581726074, 0.04106774553656578, -0.19394542276859283, 0.1122734546661377, -0.08586578071117401, 0.16101635992527008, -0.10779814422130585, -0.06236925348639488, 0.4786885976791382, 0.09708620607852936, -0.0032035717740654945, -0.18296051025390625, -0.16469073295593262, 0.4114794135093689, -0.06806870549917221, 0.3304803967475891, 0.08736769109964371, 0.10527398437261581, 0.2931068241596222, 0.8183512687683105, 0.20562070608139038, -0.10437096655368805, 0.4881404936313629, 0.2336607575416565, 0.0024522871244698763, -0.20409083366394043, -0.2489946335554123, 0.10886983573436737, -0.021735310554504395, 0.3350546658039093, 0.05009206756949425, 0.008599700406193733, -0.4172486662864685, 0.12043774127960205, 0.15182994306087494, -0.15421199798583984, -0.2865459620952606, 0.18523375689983368, -0.3836118280887604, 0.13475602865219116, 0.1777048259973526, 0.04425854608416557, -0.5306251645088196, -0.13457819819450378, 0.11720072478055954, -0.25686532258987427, 0.39326125383377075, 0.08267475664615631, -0.5393276214599609, 0.05163125693798065, -0.733731746673584, 0.2864339053630829, 0.2413739114999771, 0.39541107416152954, -0.19885295629501343, -0.17362041771411896, 0.0418541394174099, 0.07487164437770844, 0.3452202379703522, -0.1550500988960266, -0.055280812084674835, 0.1675942838191986, 0.06943477690219879, -0.1352934092283249, 0.1023075208067894, 0.2772549092769623, 0.5168840885162354, 0.45414862036705017, 0.39206698536872864, -0.3881204426288605, -0.25622063875198364, -0.1675945371389389, -0.1744464486837387, -0.018657032400369644, 0.036590415984392166, 0.029322518035769463, 0.11371330916881561, -0.1721305549144745, 0.1507241576910019, 0.2761486768722534, 0.3388308882713318, 0.3948657810688019, 0.17621631920337677, -0.11653245240449905, -0.12748318910598755, -0.1879197508096695, 0.13666890561580658, 0.36158353090286255, 0.03266614302992821, 0.04741678759455681, 0.21893015503883362, 0.11869332939386368, -0.2655071020126343, 0.1644703447818756, 0.250942200422287, -0.11180412769317627, 0.16112008690834045, 0.28357043862342834, 0.12172849476337433, 0.27629354596138, 0.035271670669317245, 0.46694260835647583, -0.4396466612815857, 0.20554815232753754, 0.11181297898292542, 0.40232470631599426, 0.06568992137908936, -0.053507305681705475, -0.2024739384651184, -0.0851316899061203, 0.32677268981933594, 0.12510541081428528, -0.21785594522953033, 0.5619800686836243, -0.030540116131305695, -0.343418687582016, 0.4547913670539856, 0.10107164084911346, 0.8719285130500793, 0.27255696058273315, 0.20116129517555237, 0.23683398962020874, 0.05637012794613838, 0.6379824876785278, 0.03707444667816162, 0.14599935710430145, -0.3191588521003723, 0.36650967597961426, 0.03573957085609436, -0.03795981407165527, -0.12783414125442505, 0.09608044475317001, -0.04991241917014122, 0.2048887014389038, 0.23945577442646027, 0.20106405019760132, 0.248294398188591, 0.11101685464382172, -0.0012671384029090405, -0.35419026017189026, 0.1831115037202835, 0.0841662734746933, -0.37972941994667053, 0.36355629563331604, 0.04326508194208145, -0.14761480689048767, -0.02832004986703396, -0.3495350480079651, -0.268756628036499, 0.11712485551834106, -0.4619830548763275, 0.39097264409065247, 0.43135207891464233, -0.2079496830701828, 0.1729608178138733, -0.14051935076713562, 0.17857232689857483, -0.06800005584955215, -0.12569983303546906, 0.37176135182380676, 0.28187423944473267, -0.05783020332455635, 0.03172028064727783, -0.13060520589351654, 0.27976304292678833, 0.03044210746884346, 0.0019757645204663277, -0.10162176936864853, -0.14831045269966125, -0.4747529625892639, -0.4060356616973877, 0.026036566123366356, 0.17965009808540344, 0.11155924946069717, -0.21012862026691437, 0.13397055864334106, -0.01886814646422863, -0.24504902958869934, 0.08942179381847382, 0.10318583250045776, -0.17431651055812836, -0.031313639134168625, 0.10778330266475677, -0.13057257235050201, 0.08922015875577927, 0.2922828197479248, -0.20331980288028717, -0.18270500004291534, 0.5570833086967468, -0.19182291626930237, -0.181535542011261, -0.1592898964881897, -0.1746973991394043, 0.23148220777511597, -0.46457788348197937, 0.10097426921129227, -0.0894123762845993, -0.12167608737945557, 0.041082728654146194, 0.33082377910614014, 0.18773013353347778, 0.17358903586864471, 0.07088306546211243, -0.2569064199924469, -0.2817663252353668, 0.16321904957294464, -0.5082812309265137, 0.06361756473779678, 0.00040743203135207295, 0.3584064543247223, -0.2887224555015564, 0.390494704246521, -0.26252707839012146, 0.09431260079145432, -0.0914551392197609, 0.09051139652729034, -0.05649223551154137, -0.3398315906524658, -0.0600879080593586, 0.008368156850337982, -0.00685096625238657, 0.4153744876384735, -0.25015783309936523, -0.16479939222335815, -0.23396295309066772, 0.1227044016122818, 0.3353521525859833, -0.32564619183540344, -0.04769652709364891, 0.24043700098991394, 0.07123258709907532, -0.14163507521152496, -0.05117882415652275, -0.03441300243139267, -0.09871160984039307, 0.1077834814786911, 0.09028024226427078, 0.0484992153942585, 0.24480727314949036, 0.17203573882579803, 0.000004234479092701804, 0.01160848792642355, 0.1033727303147316, 0.3003520369529724, -0.056695032864809036, 0.04998264089226723, 0.009672114625573158, 0.05495510622859001, -0.05470171198248863, -0.10611490905284882, 0.10379958897829056, -0.4290776550769806, -0.27676743268966675, -0.1523224413394928, 0.05145353451371193, 0.08422116935253143, -0.009016028605401516, -0.40862175822257996, 0.5563297867774963, 0.1777573972940445, -0.1644628494977951, -0.07306461781263351, 0.41876542568206787, 0.23043151199817657, 0.05824704095721245, 0.06152043491601944, 0.2833520770072937, -0.09697124361991882, 0.08293352276086807, 0.021381542086601257, 0.49933335185050964, -0.40744322538375854, 0.19615229964256287, -0.007525205612182617, -0.05386390537023544, 0.038978833705186844, 0.5023404955863953, 0.10222181677818298, 0.2201758176088333, 0.031536687165498734, -0.06836182624101639, 0.30544519424438477, 0.09963285177946091, 0.23935820162296295, -0.1012042909860611, -0.39595434069633484, -0.3370904326438904, 0.3917887806892395, -0.04883601516485214, 0.22348862886428833, 0.022382700815796852, 0.531040370464325, -0.022108713164925575, -0.42057445645332336, 0.14573773741722107, 0.5340762734413147, -0.34414246678352356, -0.3428347706794739, -0.4735886752605438, 0.00729865487664938, -0.35032448172569275, 0.02351905032992363, -0.026537509635090828, -0.04130298271775246, 0.007149660959839821, -0.07907334715127945, -0.1581784188747406, -0.3293398320674896, -0.23597155511379242, 0.05745473876595497, 0.2912585437297821, -0.24715061485767365, 0.4018816351890564, -0.46888867020606995, -0.21708112955093384, -0.2654466927051544, 0.19908182322978973, 0.29483407735824585, 0.24473685026168823, -0.41608771681785583, -0.22379669547080994, 0.011963967233896255, 0.12716056406497955, -0.12253857403993607, 0.3143151104450226, 0.24124883115291595, -0.3868144154548645, 0.14211076498031616, -0.0401090644299984, -0.11037397384643555, 0.031061040237545967, 0.13896985352039337, 0.2229580134153366, 0.327942818403244, 0.16591958701610565, -0.15134693682193756, -0.07004352658987045, -0.051429633051157, 0.07747561484575272, -0.2236931025981903, 0.13349175453186035, 0.022825833410024643, 0.04229939356446266, 0.1793937236070633, -0.32483211159706116, 0.08635004609823227, 0.10883824527263641, 0.4186907410621643, 0.3605180084705353, -0.2678302526473999, -0.40158611536026, -0.42700472474098206, -0.39726632833480835, 0.1965406835079193, -0.05414507910609245, -0.047371722757816315, -0.04059191793203354, 0.058616913855075836, 0.04444059357047081, -0.020000264048576355, -0.1949569433927536, 0.4008176922798157, 0.13667993247509003, 0.17456303536891937, -0.3776070475578308, 0.4529929459095001, 0.09525036066770554, -0.07812052965164185, 0.2346620410680771, -0.30719295144081116, 0.014845986850559711, 0.10009244084358215, 0.056665778160095215, -0.15137310326099396, -0.12513746321201324, -0.0407404750585556, 0.20701278746128082, 0.2774702310562134, 0.33225390315055847, 0.2022203803062439, 0.06408841162919998, 0.18390017747879028, -0.3896696865558624, -0.39341452717781067, -0.2413274496793747, -0.10816436260938644, -0.18652410805225372, 0.43140286207199097, -0.029627792537212372, 0.23325927555561066, -0.4199027717113495, 0.012597046792507172, -0.02927379496395588, 0.0756550282239914, -0.17471404373645782, 0.3251663148403168, -0.28448614478111267, 0.26318731904029846, -0.05177638307213783, 0.36425650119781494, -0.015290253795683384, 0.43932077288627625, -0.41979414224624634, -0.43483564257621765, 0.5731075406074524, -0.7418984770774841, -0.22339537739753723, 0.23296375572681427, 0.007688512094318867, 0.5054776668548584, -0.3683009147644043, -0.1933443397283554, -0.25314342975616455, 0.2136693149805069, -0.04100785776972771, -0.24649012088775635, 0.05061246454715729, -0.045193564146757126, -0.09691564738750458, -0.04278610646724701, 0.6299055218696594, 0.12385910004377365, -0.1319497972726822, 0.14684243500232697, -0.1718580275774002 ]
https://github.com/huggingface/datasets/issues/256
[Feature request] Add a feature to dataset
Do you have an example of what you would like to do? (you can just add a field in the output of the unction you give to map and this will add this field in the output table)
Is there a straightforward way to add a field to the arrow_dataset, prior to performing map?
38
[Feature request] Add a feature to dataset Is there a straightforward way to add a field to the arrow_dataset, prior to performing map? Do you have an example of what you would like to do? (you can just add a field in the output of the unction you give to map and this will add this field in the output table)
[ -0.32301032543182373, -0.12566998600959778, -0.12979558110237122, -0.3137853741645813, 0.05238702520728111, 0.19275778532028198, 0.03158218041062355, 0.08298204094171524, 0.18523286283016205, 0.0769859328866005, 0.6435582041740417, 0.7557856440544128, -0.0890212208032608, 0.40954163670539856, 0.24462337791919708, 0.03261404484510422, 0.028265712782740593, 0.2254813015460968, 0.014326105825603008, 0.02993292547762394, -0.3113275468349457, -0.3316052556037903, 0.04404185712337494, -0.14167030155658722, -0.26108869910240173, -0.10558538138866425, 0.09172360599040985, -0.2881229817867279, -0.26725825667381287, -0.4562530219554901, -0.07569950819015503, 0.0525781512260437, -0.00764540396630764, -0.2505631148815155, -0.00011566058674361557, -0.2479669153690338, 0.17165504395961761, 0.04295854642987251, -0.10686253011226654, -0.0999152734875679, -0.6523425579071045, -0.46455901861190796, 0.23346494138240814, -0.14119666814804077, -0.03079499490559101, -0.09863930195569992, 0.0351916179060936, -0.3240501284599304, -0.062319912016391754, -0.09793881326913834, 0.21189472079277039, -0.12660714983940125, 0.18476557731628418, -0.05031917244195938, 0.25210392475128174, 0.48348289728164673, -0.3692203760147095, -0.2472532093524933, 0.03249846026301384, 0.06744248420000076, 0.1742892861366272, 0.33343884348869324, 0.29094985127449036, -0.24798807501792908, 0.41523268818855286, 0.10510239005088806, 0.0374164804816246, -0.1611279547214508, -0.090244822204113, 0.11849426478147507, 0.7849730849266052, -0.275490939617157, -0.28207725286483765, 0.004975123330950737, 0.12086223810911179, -0.3142985999584198, -0.00335387559607625, -0.08357805758714676, 0.14032812416553497, 0.021211499348282814, 0.20736250281333923, -0.5489999651908875, -0.06742215156555176, 0.1288881003856659, 0.1251961588859558, 0.3817360997200012, 0.06204543635249138, 0.11592044681310654, -0.11732138693332672, -0.15886905789375305, 0.017290771007537842, -0.027565492317080498, -0.20139336585998535, 0.5192960500717163, -0.22264796495437622, -0.28034961223602295, 0.22947555780410767, -0.3392001688480377, 0.039239171892404556, 0.18318910896778107, 0.18487580120563507, 0.017474239692091942, -0.32537418603897095, 0.17470744252204895, 0.13227130472660065, -0.028103990480303764, 0.20364290475845337, 0.1825895756483078, 0.0067137363366782665, -0.43206530809402466, -0.040663011372089386, -0.36515188217163086, 0.2856074273586273, -0.09943189471960068, 0.2918943464756012, 0.04747016727924347, 0.4299739897251129, -0.14702877402305603, 0.20401862263679504, -0.1468968689441681, 0.1710052341222763, -0.03749048709869385, 0.005303697660565376, 0.08828708529472351, 0.2963472902774811, -0.10052504390478134, -0.036840420216321945, 0.2756740152835846, 0.3390977680683136, 0.040442828088998795, -0.0502534918487072, -0.3233456015586853, 0.07568159699440002, 0.3453168570995331, 0.027161264792084694, 0.20460063219070435, 0.11693446338176727, -0.02361140213906765, -0.07656268030405045, 0.05355549231171608, 0.2732861340045929, -0.03732862323522568, 0.267354279756546, 0.21967856585979462, -0.15470640361309052, 0.13502156734466553, -0.007507568225264549, 0.4994905889034271, -0.26319167017936707, 0.3902088403701782, -0.13045957684516907, -0.2942381203174591, -0.11275219917297363, 0.1767224669456482, 0.0951569676399231, -0.32139191031455994, -0.29721125960350037, 0.3748577833175659, -0.08899492770433426, -0.16987262666225433, 0.2799263894557953, 0.33271339535713196, -0.2485426962375641, -0.303745299577713, -0.06813475489616394, 0.14087368547916412, -0.19924484193325043, 0.018789879977703094, -0.4218512177467346, -0.07454388588666916, -0.22383542358875275, -0.4167448580265045, -0.15499959886074066, 0.31069448590278625, 0.00013206512085162103, 0.34534502029418945, 0.8380860090255737, 0.052307918667793274, -0.11645986884832382, 0.14946861565113068, -0.43841037154197693, -0.10041637718677521, -0.21824656426906586, 0.5195286870002747, 0.22254212200641632, 0.16406500339508057, -0.09571664780378342, 0.3228784203529358, -0.24405625462532043, -0.07221242785453796, 0.0837465152144432, -0.03192581981420517, 0.1864677220582962, 0.07978177070617676, -0.1155344769358635, 0.07232332229614258, 0.35473108291625977, -0.3399243652820587, -0.07577504962682724, 0.22871330380439758, 0.15480142831802368, 0.062421273440122604, 0.6634560823440552, -0.19033558666706085, -0.14944307506084442, -0.25416916608810425, -0.37941762804985046, 0.04462621361017227, 0.018305068835616112, -0.232730433344841, -0.07795512676239014, -0.36385801434516907, 0.13582076132297516, 0.393148273229599, -0.04654933139681816, 0.19422662258148193, 0.03888596221804619, -0.29107755422592163, -0.2459312230348587, -0.12712222337722778, -0.24294593930244446, -0.2864038646221161, -0.05380142852663994, 0.021813901141285896, 0.060255106538534164, -0.0607900433242321, 0.17657192051410675, -0.0910034030675888, -0.36591216921806335, 0.10238534212112427, 0.040897831320762634, 0.08841637521982193, -0.21224582195281982, 0.2533628046512604, 0.16853713989257812, 0.23394669592380524, 0.5139034390449524, 0.22324691712856293, 0.051107387989759445, -0.25049394369125366, 0.012636974453926086, 0.12779220938682556, -0.09994521737098694, -0.22338946163654327, -0.18533538281917572, 0.22133983671665192, 0.07010354101657867, 0.14392824470996857, -0.20152512192726135, 0.17729735374450684, 0.2823130786418915, 0.0923546776175499, -0.09558165073394775, -0.1467551440000534, -0.33777451515197754, -0.08456826955080032, -0.09949585050344467, -0.12597216665744781, -0.028134554624557495, 0.27526596188545227, 0.326628178358078, -0.036525625735521317, 0.07844855636358261, 0.2283453345298767, -0.16949927806854248, 0.11580147594213486, 0.31579211354255676, -0.19050931930541992, 0.3854660093784332, 0.2556679844856262, -0.02226162515580654, -0.01768079213798046, -0.021128766238689423, 0.08073388040065765, 0.24073049426078796, -0.13787336647510529, 0.27071020007133484, -0.01658622920513153, 0.3332597017288208, -0.06788534671068192, -0.05277816206216812, -0.05666208639740944, 0.11897104978561401, 0.09977150708436966, -0.044887542724609375, -0.29611068964004517, 0.11918991804122925, 0.09213023632764816, -0.004259890411049128, -0.06341768801212311, -0.17336079478263855, -0.351820707321167, 0.23315756022930145, -0.05141891911625862, -0.20887573063373566, 0.14756712317466736, -0.3344331383705139, 0.2592223882675171, 0.029576214030385017, -0.3412538170814514, -0.052210573107004166, -0.20544591546058655, 0.2089969664812088, 0.05291133001446724, -0.09200013428926468, -0.1556432694196701, 0.5642309784889221, 0.5620843768119812, 0.3921135663986206, -0.5298604965209961, -0.48430952429771423, -0.014124754816293716, 0.08184191584587097, -0.165971040725708, 0.024325912818312645, 0.01060751173645258, -0.2986762523651123, -0.21590936183929443, 0.05156011879444122, 0.07902736961841583, -0.2116861790418625, -0.1431373953819275, -0.12340550869703293, -0.09024582803249359, -0.097693532705307, -0.16583818197250366, -0.010663087479770184, -0.3048558235168457, 0.4907073974609375, 0.0869380533695221, 0.13834793865680695, -0.018754897639155388, 0.1312551200389862, -0.06781309843063354, -0.16831156611442566, -0.34203535318374634, -0.16108280420303345, 0.1426558792591095, 0.3432579040527344, -0.4180550277233124, 0.055848151445388794, 0.2637421488761902, -0.13182282447814941, -0.0202900692820549, 0.43146270513534546, -0.26495131850242615, 0.09274551272392273, -0.0009444496245123446, 0.6025668382644653, -0.1807418167591095, -0.023151010274887085, 0.5678802728652954, 0.27968794107437134, -0.04518720507621765, -0.053039055317640305, -0.1038932278752327, 0.1486024707555771, 0.48607540130615234, 0.20475593209266663, -0.04864657297730446, 0.3489849269390106, -0.2798682451248169, 0.6352140307426453, -0.20097127556800842, -0.014774404466152191, 0.22489938139915466, -0.21064263582229614, 0.17442111670970917, -0.17102880775928497, 0.06277110427618027, -0.2686363756656647, 0.029555749148130417, -0.23210258781909943, -0.1637755185365677, 0.019074615091085434, -0.22148363292217255, 0.024632174521684647, 0.007815673016011715, 0.010609396733343601, -0.05507334694266319, 0.18679848313331604, -0.6059000492095947, 0.5232607126235962, -0.1445963978767395, -0.17368154227733612, -0.5607346296310425, -0.009855153039097786, 0.015952156856656075, -0.14419029653072357, 0.46543121337890625, -0.4178937077522278, -0.46120378375053406, -0.21740294992923737, -0.38718289136886597, 0.18705828487873077, 0.08089043945074081, -0.07359372824430466, -0.21958215534687042, -0.18955257534980774, -0.14421811699867249, 0.228720024228096, 0.35130855441093445, -0.6429322957992554, -0.16470162570476532, -0.14237384498119354, 0.21227312088012695, -0.09740732610225677, 0.05929958075284958, 0.17403604090213776, 0.3619410991668701, -0.21749310195446014, 0.5275083184242249, -0.2049199938774109, 0.24443775415420532, 0.3806367516517639, -0.09481429308652878, -0.20390008389949799, -0.09966579079627991, 0.02441243827342987, -0.0027059854473918676, -0.04462451487779617, 0.08977965265512466, -0.0682215541601181, -0.21145617961883545, 0.30429354310035706, -0.44841092824935913, -0.27408263087272644, 0.07580530643463135, -0.17226600646972656, 0.1226087212562561, 0.24901995062828064, 0.23604744672775269, 0.2840409576892853, 0.014225882478058338, 0.01963791623711586, -0.025928694754838943, 0.3448981046676636, 0.025977516546845436, -0.18317706882953644, -0.1373799592256546, -0.428392231464386, 0.730702817440033, 0.15984243154525757, 0.07839176058769226, 0.7191224098205566, -0.06681215018033981, -0.11801902204751968, -0.37656447291374207, -0.09427613019943237, 0.28843262791633606, -0.18747521936893463, -0.08569688349962234, -0.29080522060394287, 0.5907081961631775, -0.05304736644029617, -0.07410949468612671, 0.6676123142242432, 0.08844585716724396, -0.220676451921463, 0.5987032651901245, 0.2209467589855194, 0.952530026435852, -0.1935121715068817, -0.14174498617649078, -0.05804203450679779, -0.25040850043296814, 0.21438367664813995, -0.17269448935985565, -0.08335055410861969, -0.15773887932300568, -0.28972798585891724, -0.08914327621459961, -0.11881007254123688, 0.09139120578765869, 0.36188411712646484, -0.2552141845226288, -0.29740414023399353, -0.11486727744340897, 0.4763513505458832, -0.07309850305318832, 0.17063544690608978, 0.240048348903656, -0.28087082505226135, 0.11826785653829575, 0.08720656484365463, -0.02255992963910103, -0.10195436328649521, -0.24901048839092255, -0.22411887347698212, 0.07248059660196304, -0.2220403105020523, -0.1071743369102478, -0.14134180545806885, -0.3563652038574219, -0.02495002932846546, -0.12817086279392242, -0.01105415727943182, 0.12941722571849823, -0.10549719631671906, -0.046638038009405136, 0.04328598454594612, -0.07831233739852905, 0.26174068450927734, 0.3378773331642151, 0.3220251202583313, -0.03899140655994415, -0.007521255407482386, -0.008356526494026184, -0.06790269911289215, -0.18643724918365479, 0.3520045578479767, -0.2488492727279663, -0.4843159317970276, -0.13395987451076508, -0.0075569357722997665, -0.02208632230758667, -0.23106426000595093, -0.38931000232696533, 0.19509215652942657, -0.1880645453929901, -0.08043547719717026, 0.11919012665748596, 0.05649464204907417, -0.05986131355166435, 0.21808451414108276, 0.33784371614456177, -0.05729314312338829, 0.08129268139600754, -0.03875529393553734, -0.11287254095077515, 0.04400043189525604, 0.20997871458530426, -0.23395492136478424, -0.07439842820167542, -0.1285291314125061, 0.056418582797050476, 0.33405861258506775, -0.4564085006713867, -0.16278637945652008, 0.20215575397014618, 0.03252652660012245, -0.14768445491790771, 0.20819921791553497, -0.17216823995113373, 0.4044399559497833, -0.2823362946510315, -0.03092728927731514, -0.3442200720310211, 0.19316622614860535, -0.07702479511499405, 0.29688572883605957, -0.24077825248241425, -0.11000631004571915, -0.14865341782569885, 0.41552767157554626, -0.2784256041049957, -0.2237745076417923, 0.32040467858314514, 0.3578747808933258, 0.00011097620154032484, 0.4909787178039551, 0.06589620560407639, -0.27637505531311035, 0.13710616528987885, -0.05230087414383888, -0.03678096830844879, -0.1670791506767273, 0.12411130964756012, 0.1868126094341278, 0.0657421126961708, -0.20536373555660248, -0.2564499080181122, -0.27933788299560547, -0.13189321756362915, -0.14343735575675964, -0.14246246218681335, -0.22374682128429413, -0.23777440190315247, -0.1527937799692154, 0.034130580723285675, 0.18996886909008026, -0.15066978335380554, 0.19632361829280853, 0.14094319939613342, 0.19330911338329315, -0.09901294112205505, 0.1034792810678482, -0.06585732847452164, 0.09529605507850647, 0.13806384801864624, 0.04591727629303932, 0.014825396239757538, -0.061208177357912064, 0.22451746463775635, 0.07379157841205597, 0.004650110844522715, -0.027212010696530342, 0.25371426343917847, -0.1963350623846054, -0.14776593446731567, 0.24092400074005127, 0.029695728793740273, 0.24074888229370117, -0.21753138303756714, 0.12101209163665771, 0.4524829387664795, -0.0625464916229248, 0.14847958087921143, 0.14802268147468567, 0.29696890711784363, 0.43237319588661194, 0.01502207200974226, 0.09625645726919174, -0.3143242299556732, -0.31725162267684937, 0.1561303734779358, 0.4448060095310211, 0.13583379983901978, 0.09621412307024002, 0.2541837692260742, 0.36008766293525696, 0.18062527477741241, 0.24444638192653656, 0.14130018651485443, 0.22948312759399414, 0.4651007652282715, -0.2577503025531769, 0.2078319787979126, -0.33140113949775696, 0.27172595262527466, -0.0367855504155159, 0.1530897617340088, 0.013453459367156029, 0.5024026036262512, -0.0964636579155922, 0.1339128613471985, -0.23140132427215576, 0.04208596050739288, 0.03955664858222008, -0.16674451529979706, 0.1457151174545288, 0.14097999036312103, -0.11016435921192169, 0.013368716463446617, -0.15927045047283173, 0.1053880900144577, -0.08722927421331406, 0.3674432337284088, -0.0022110736463218927, 0.3381567597389221, 0.27333906292915344, 0.47028401494026184, 0.2463742345571518, 0.21390049159526825, -0.11488953232765198, -0.12128555774688721, -0.40953055024147034, -0.07484710961580276, 0.04796868562698364, 0.2244109809398651, -0.1902327537536621, 0.21986915171146393, -0.2684759795665741, 0.6971405744552612, -0.0221115592867136, -0.2750879228115082, 0.06471579521894455, 0.09962844848632812, 0.20453640818595886, 0.0011913133785128593, -0.07830946147441864, 0.15924367308616638, -0.025654030963778496, 0.17311760783195496, 0.04044611006975174, 0.24467670917510986, -0.15403613448143005, 0.1421145349740982, 0.2685216963291168, -0.5370787978172302, -0.03970722854137421, 0.0850880816578865, 0.21157489717006683, -0.30559706687927246, 0.3663334846496582, -0.04443906620144844, -0.12619885802268982, -0.12287764996290207, 0.05036062002182007, -0.1525101363658905, 0.13848096132278442, 0.22177287936210632, 0.041250620037317276, -0.264484167098999, -0.1519632339477539, -0.38769081234931946, 0.016558725386857986, -0.07006864249706268, -0.15635527670383453, 0.3834625482559204, 0.04035297408699989, 0.28110167384147644, 0.08014046400785446, 0.360490620136261, -0.47435739636421204, 0.09031739830970764, 0.18195846676826477, 0.0026805116795003414, -0.21827815473079681, 0.035539254546165466, 0.10784517228603363, -0.17950081825256348, 0.09571368992328644, 0.08290029317140579, 0.3081103563308716, 0.004347226582467556, -0.2374214380979538, -0.2536134123802185, -0.07985137403011322, 0.0157358068972826, 0.5547652244567871, -0.24454228579998016, 0.2568749487400055, -0.2621217370033264, 0.21611040830612183, 0.018889695405960083, -0.26262325048446655, -0.20594772696495056, 0.11629491299390793, -0.060068920254707336, 0.22138965129852295, 0.11595959961414337, -0.09374237060546875, -0.36250707507133484, -0.08978507667779922, -0.3467421233654022, -0.28692033886909485, -0.2397894710302353, 0.25588253140449524, -0.14160209894180298, -0.06300535053014755, 0.013602683320641518, -0.083583764731884, 0.013817663304507732, 0.14786046743392944, 0.08458743244409561, -0.0859040841460228, 0.1457950621843338, 0.12017523497343063, -0.07498189061880112, 0.1234494224190712, 0.13086935877799988, 0.2448740452528, 0.10801579058170319, -0.610040009021759, -0.2564034163951874, 0.4132261276245117, -0.1011885553598404, 0.35084211826324463, 0.3517690598964691, -0.08469924330711365, 0.21254317462444305, -0.190078005194664, 0.5408405065536499, -0.3125441372394562, 0.314143568277359, -0.39815229177474976, -0.30600595474243164 ]
https://github.com/huggingface/datasets/issues/256
[Feature request] Add a feature to dataset
Given another source of data loaded in, I want to pre-add it to the dataset so that it aligns with the indices of the arrow dataset prior to performing map. E.g. ``` new_info = list of length dataset['train'] dataset['train'] = dataset['train'].map(lambda x: some_function(x, new_info[index of x])) def some_function(x, new_info_x): # adds new_info[index of x] as a field to x x['new_info'] = new_info_x return x ``` I was thinking to instead create a new field in the arrow dataset so that instance x contains all the necessary information when map function is applied (since I don't have index information to pass to map function).
Is there a straightforward way to add a field to the arrow_dataset, prior to performing map?
103
[Feature request] Add a feature to dataset Is there a straightforward way to add a field to the arrow_dataset, prior to performing map? Given another source of data loaded in, I want to pre-add it to the dataset so that it aligns with the indices of the arrow dataset prior to performing map. E.g. ``` new_info = list of length dataset['train'] dataset['train'] = dataset['train'].map(lambda x: some_function(x, new_info[index of x])) def some_function(x, new_info_x): # adds new_info[index of x] as a field to x x['new_info'] = new_info_x return x ``` I was thinking to instead create a new field in the arrow dataset so that instance x contains all the necessary information when map function is applied (since I don't have index information to pass to map function).
[ -0.2954556345939636, 0.04804987460374832, -0.06860866397619247, -0.18945543467998505, 0.05623176321387291, 0.256127268075943, 0.08070983737707138, 0.11000294238328934, 0.19616176187992096, -0.020773546770215034, 0.43143585324287415, 0.5331406593322754, -0.10510313510894775, 0.21243326365947723, 0.1332813948392868, 0.06564509123563766, -0.040039658546447754, 0.34225404262542725, -0.024669840931892395, 0.05260423943400383, -0.25688302516937256, -0.362775057554245, 0.012160321697592735, -0.2262430042028427, -0.2012324333190918, -0.053102217614650726, 0.09253454953432083, -0.20654018223285675, -0.04998423531651497, -0.4349794089794159, 0.06971113383769989, 0.054787345230579376, -0.06116380915045738, -0.07750686258077621, -0.00012185194646008313, -0.008279419504106045, 0.22867919504642487, -0.01818121038377285, -0.022022729739546776, -0.0886157900094986, -0.6228858828544617, -0.4504072964191437, 0.14038248360157013, -0.14621080458164215, -0.11619561165571213, -0.28148508071899414, 0.06432260572910309, -0.4899311065673828, -0.030401749536395073, 0.11766652017831802, 0.1175912395119667, -0.03391096740961075, 0.30838674306869507, 0.03277015686035156, 0.34438246488571167, 0.21786265075206757, -0.20830115675926208, -0.2057970017194748, -0.05569564551115036, -0.00512661412358284, 0.24421724677085876, 0.18939603865146637, 0.16785928606987, -0.3340604603290558, 0.4431709349155426, 0.15538664162158966, -0.024954456835985184, -0.24538756906986237, -0.32942017912864685, 0.08959972858428955, 0.635752260684967, -0.48093464970588684, -0.44583144783973694, -0.2342635691165924, 0.3120890259742737, -0.29011473059654236, 0.06074432283639908, -0.13333916664123535, 0.21045643091201782, -0.01644180342555046, 0.28048843145370483, -0.38965725898742676, 0.0144421411678195, 0.2269134372472763, 0.06193777546286583, 0.47667908668518066, 0.1661749929189682, 0.09683456271886826, -0.14526624977588654, -0.13353289663791656, 0.1443166434764862, -0.3300929367542267, -0.06665079295635223, 0.5027746558189392, -0.24179351329803467, -0.21392254531383514, -0.024485459551215172, -0.4381338655948639, -0.0016755851684138179, 0.16434668004512787, 0.14356617629528046, 0.02068714238703251, -0.23615986108779907, 0.10205172002315521, 0.2505214810371399, 0.15086579322814941, -0.011964390054345131, 0.24776211380958557, -0.12251008301973343, -0.453370600938797, -0.0715748593211174, -0.20390571653842926, 0.36904624104499817, -0.1363203376531601, 0.327273428440094, -0.010966933332383633, 0.33304348587989807, 0.157052680850029, 0.14186988770961761, 0.027892300859093666, -0.05645284801721573, -0.0701024979352951, 0.08543529361486435, -0.04425230622291565, 0.19404399394989014, -0.04919279366731644, -0.11297351866960526, 0.41100817918777466, 0.2865208387374878, 0.21742357313632965, -0.049589116126298904, -0.2126171588897705, 0.15126895904541016, 0.24832382798194885, -0.07674712687730789, 0.06510647386312485, 0.21828995645046234, 0.05678378418087959, 0.10740003734827042, 0.25711771845817566, 0.3620678186416626, -0.04835785925388336, 0.17963898181915283, 0.2562599778175354, -0.13081194460391998, 0.11768179386854172, -0.022375281900167465, 0.2681907117366791, -0.28872284293174744, 0.43016985058784485, -0.16664117574691772, -0.3181443512439728, -0.018065661191940308, 0.07984241098165512, 0.026792438700795174, -0.3733135461807251, -0.3221891522407532, 0.5601468682289124, 0.05316135659813881, -0.32589319348335266, 0.30068695545196533, 0.07653605937957764, -0.4147171676158905, -0.31554314494132996, 0.04788659140467644, 0.20206941664218903, -0.044732365757226944, -0.048143740743398666, -0.3672373294830322, -0.05819731205701828, -0.289431631565094, -0.35913747549057007, -0.1361573189496994, 0.13738037645816803, -0.06811770051717758, 0.36180856823921204, 0.7887746095657349, -0.12643104791641235, -0.3442749083042145, 0.04523235931992531, -0.3030264973640442, 0.15711484849452972, -0.3750823736190796, 0.556277334690094, -0.13874316215515137, 0.15086893737316132, 0.0626029521226883, 0.5208091139793396, -0.28765466809272766, -0.05489964410662651, 0.14330066740512848, 0.025133952498435974, 0.09285522252321243, 0.18535290658473969, -0.10415300726890564, 0.08625345677137375, 0.2928875684738159, -0.3613356053829193, -0.12550927698612213, 0.22932662069797516, 0.0787176862359047, 0.25017932057380676, 0.28675606846809387, -0.1407821774482727, -0.22653914988040924, -0.38207751512527466, -0.45589014887809753, 0.1355389654636383, 0.16135181486606598, -0.1518818438053131, -0.002272080397233367, -0.24030184745788574, 0.05197712779045105, 0.38423264026641846, -0.02914487011730671, 0.10293743014335632, -0.03540085628628731, -0.13795724511146545, -0.12752102315425873, -0.11520887911319733, -0.1917721927165985, -0.08804502338171005, 0.02341262623667717, 0.12668724358081818, -0.081543929874897, -0.01560901664197445, 0.2958846688270569, -0.10389935970306396, -0.45342719554901123, 0.17451782524585724, -0.08100879192352295, 0.13168147206306458, -0.2303144931793213, 0.28821009397506714, 0.2810448408126831, 0.3076572120189667, 0.3753383755683899, 0.359666645526886, 0.12027284502983093, -0.2022276073694229, -0.049243442714214325, 0.2572801113128662, -0.029328512027859688, -0.15268981456756592, -0.15355506539344788, 0.5156171917915344, 0.10864793509244919, 0.22386102378368378, -0.23374995589256287, 0.0411442406475544, 0.1870008111000061, 0.10002870857715607, -0.25042182207107544, -0.10376264154911041, -0.38281410932540894, 0.02852720022201538, 0.09362940490245819, 0.002460414543747902, -0.03577617183327675, 0.20420098304748535, 0.06993662565946579, -0.024018090218305588, 0.16000190377235413, 0.20193658769130707, -0.22764454782009125, 0.10791315138339996, 0.0774969607591629, -0.06241364777088165, 0.32906028628349304, 0.22270619869232178, 0.012617341242730618, 0.04264877364039421, 0.10928965359926224, 0.1602097600698471, 0.19159750640392303, -0.07387211173772812, 0.3904677927494049, 0.13538262248039246, 0.3821552097797394, 0.1553182750940323, 0.09207120537757874, 0.05182655155658722, -0.028552904725074768, 0.08554192632436752, -0.17347532510757446, -0.12338074296712875, 0.19315677881240845, 0.151226207613945, -0.19079427421092987, -0.07273203879594803, -0.13094201683998108, -0.2570092976093292, -0.04220912232995033, 0.028350139036774635, -0.20326092839241028, 0.0837608352303505, -0.36698678135871887, 0.1900506168603897, 0.16667945683002472, -0.6432446837425232, 0.0507388636469841, -0.08939018845558167, 0.2384159117937088, -0.003656612476333976, -0.01640304923057556, -0.1745573729276657, 0.3104877471923828, 0.7045739889144897, 0.3526603877544403, -0.4002377986907959, -0.5986950993537903, -0.1394599974155426, 0.03262536600232124, 0.06101592257618904, -0.05643913894891739, -0.13568182289600372, -0.21874010562896729, -0.27603763341903687, 0.052964020520448685, 0.09786004573106766, -0.12571866810321808, -0.2376387119293213, -0.07661733031272888, 0.0012325877323746681, -0.005781580228358507, -0.011828413233160973, -0.22959841787815094, -0.25441083312034607, 0.38188090920448303, 0.22829049825668335, 0.003764609107747674, 0.025177115574479103, 0.1335633248090744, -0.17415356636047363, 0.09611029922962189, -0.3459213972091675, -0.067742258310318, 0.0082766804844141, 0.4669155180454254, -0.29175564646720886, 0.2223028689622879, -0.056528493762016296, -0.42820098996162415, -0.1681380718946457, 0.5416520833969116, -0.28587985038757324, 0.03355316445231438, -0.06858111172914505, 0.444235622882843, -0.0054776291362941265, 0.04155277833342552, 0.4493017792701721, 0.13076047599315643, 0.1019132137298584, -0.039739444851875305, -0.16873104870319366, 0.01957068033516407, 0.3857582211494446, 0.13713984191417694, 0.02654309757053852, 0.25262224674224854, -0.40782222151756287, 0.8244690895080566, -0.09646192193031311, -0.0982210710644722, 0.21357712149620056, -0.30153316259384155, 0.2136489301919937, -0.19886168837547302, -0.03919285535812378, -0.35400351881980896, 0.11872055381536484, -0.23929131031036377, -0.11377677321434021, -0.13786958158016205, -0.3384615182876587, 0.011531569063663483, -0.10345364362001419, -0.07150473445653915, -0.11369214951992035, 0.27760589122772217, -0.7096521854400635, 0.5136855244636536, -0.11672180891036987, -0.16270983219146729, -0.557187020778656, -0.010529150255024433, -0.13447418808937073, -0.2577786445617676, 0.2695598304271698, -0.3588864803314209, -0.2897852957248688, -0.1367044746875763, -0.33905497193336487, 0.159976527094841, 0.32898223400115967, 0.0109243830665946, 0.06942980736494064, -0.2846184968948364, -0.20185256004333496, 0.12558306753635406, 0.10079285502433777, -0.7038962244987488, -0.3776725232601166, -0.06033770740032196, 0.13507628440856934, -0.3127747178077698, 0.03219522908329964, 0.2692120373249054, 0.39599236845970154, -0.2950229346752167, 0.33278530836105347, -0.09700679779052734, 0.26714134216308594, 0.20797215402126312, -0.051915381103754044, -0.187024787068367, 0.04549835994839668, -0.04064026102423668, 0.10941877961158752, -0.03259608522057533, 0.13954855501651764, -0.07816163450479507, -0.20294883847236633, 0.4935391843318939, -0.2078266590833664, -0.5050933361053467, 0.2532684803009033, 0.009910079650580883, 0.16360251605510712, 0.3125104606151581, 0.3241730332374573, 0.30943039059638977, 0.12048689275979996, -0.17882730066776276, 0.06440430134534836, 0.41805198788642883, -0.11419032514095306, -0.22285038232803345, -0.31802186369895935, -0.12682823836803436, 0.6585423946380615, 0.021799609065055847, 0.09644543379545212, 0.43332168459892273, -0.10493732243776321, -0.1404343843460083, -0.441745787858963, 0.051324114203453064, 0.45648327469825745, -0.09330268949270248, -0.15567316114902496, -0.5510119199752808, 0.6145583391189575, -0.0646323710680008, -0.0433356836438179, 0.5349656343460083, 0.20637330412864685, -0.159888356924057, 0.5062618255615234, 0.2650848627090454, 0.7346943616867065, -0.020422032102942467, 0.03015086054801941, 0.19334857165813446, -0.08943373709917068, 0.16311544179916382, -0.08510985225439072, -0.020058393478393555, -0.1575653851032257, -0.43081170320510864, -0.003891800995916128, -0.15197481215000153, -0.11660198122262955, 0.3548959195613861, -0.045291803777217865, -0.29734155535697937, -0.1605762094259262, 0.3114289343357086, -0.15065984427928925, 0.1867838054895401, 0.07807694375514984, -0.24342763423919678, 0.05077990144491196, 0.056832730770111084, 0.1301891803741455, -0.05252339318394661, -0.16616219282150269, -0.12707199156284332, -0.21412217617034912, -0.10482995212078094, -0.19636207818984985, 0.0009948455262929201, -0.3412139415740967, 0.1004752665758133, -0.23867134749889374, -0.08429684489965439, 0.18196998536586761, 0.1106557622551918, 0.05887770280241966, -0.057705722749233246, 0.011399611830711365, 0.3690604567527771, 0.36243414878845215, 0.3142385482788086, 0.0789666399359703, -0.0832294151186943, 0.021989986300468445, 0.12612482905387878, -0.11394871771335602, 0.33944860100746155, -0.1307380348443985, -0.5961123704910278, -0.19446460902690887, 0.06594283878803253, -0.12548086047172546, -0.19748514890670776, -0.3827863037586212, 0.2993815243244171, -0.06938436627388, -0.02674007974565029, 0.04898238554596901, -0.007394146174192429, -0.03173847123980522, 0.18843813240528107, 0.09829514473676682, -0.20523899793624878, 0.03617733716964722, 0.03877007216215134, 0.00229447428137064, 0.2070852369070053, 0.46871286630630493, -0.3493293225765228, 0.05314100533723831, 0.02498120628297329, 0.0986461266875267, 0.40682435035705566, -0.16343456506729126, -0.1159844696521759, -0.007876408286392689, -0.06297475844621658, -0.10932394862174988, 0.1393963247537613, -0.16832494735717773, 0.2923594117164612, -0.1629248857498169, -0.15952983498573303, -0.38640257716178894, 0.2419731467962265, 0.028938038274645805, 0.42875415086746216, -0.04438230022788048, -0.12346631288528442, -0.38967201113700867, 0.43893542885780334, -0.19000880420207977, -0.3230791389942169, 0.3609901964664459, 0.18557476997375488, 0.23307573795318604, 0.4451937675476074, 0.3107374608516693, -0.34015581011772156, 0.058280643075704575, -0.1498090624809265, 0.12304714322090149, -0.1135331243276596, 0.01665280945599079, 0.15902753174304962, 0.045339565724134445, -0.23916442692279816, -0.24311932921409607, -0.39710795879364014, -0.03812187537550926, -0.3407488167285919, -0.16648174822330475, -0.074739471077919, -0.11299945414066315, -0.14360639452934265, 0.13044676184654236, 0.14072135090827942, -0.19497868418693542, 0.18967431783676147, 0.07701422274112701, 0.05303594470024109, 0.006244590971618891, 0.23682887852191925, -0.1569788157939911, 0.12549348175525665, 0.11313681304454803, 0.06505177915096283, 0.2635500133037567, -0.0008804730605334044, 0.16801418364048004, 0.01282431185245514, 0.12158102542161942, 0.3147470951080322, 0.3299046456813812, 0.03647128865122795, -0.19276535511016846, 0.22882454097270966, -0.09192105382680893, 0.11209017038345337, -0.2940257787704468, 0.06712270528078079, 0.3260784149169922, -0.19718985259532928, 0.1943189799785614, 0.20659059286117554, 0.20972879230976105, 0.6998460292816162, -0.28049302101135254, 0.0025724354200065136, -0.36985713243484497, -0.19451689720153809, 0.21734769642353058, 0.47855350375175476, 0.22565440833568573, -0.12845323979854584, 0.2805364727973938, 0.5443065762519836, 0.37764352560043335, 0.3105352818965912, 0.16976727545261383, 0.28466928005218506, 0.2513505816459656, -0.38042551279067993, 0.08951367437839508, -0.38869398832321167, 0.29423701763153076, -0.017557179555296898, 0.2701074779033661, 0.054699480533599854, 0.5864539742469788, -0.01857553794980049, 0.10988791286945343, -0.3700769543647766, 0.02147611789405346, 0.22357584536075592, -0.10242529213428497, -0.03757239505648613, 0.37062689661979675, -0.07384959608316422, -0.026333807036280632, -0.25148651003837585, 0.12836460769176483, -0.1546095907688141, 0.26083284616470337, 0.029945306479930878, 0.3402259647846222, 0.1871614307165146, 0.4017396569252014, 0.28829139471054077, 0.2756875455379486, -0.12405411154031754, -0.09713614732027054, -0.45296069979667664, -0.19254280626773834, 0.04922637715935707, 0.2918073534965515, -0.11117186397314072, 0.06180625036358833, -0.3906151354312897, 0.49111121892929077, 0.07299656420946121, -0.228067547082901, -0.00580331077799201, -0.1085142120718956, 0.1091514527797699, -0.10930068790912628, -0.01603088714182377, 0.10795432329177856, -0.04055764526128769, 0.10229779779911041, 0.06667645275592804, 0.23670871555805206, -0.17014837265014648, 0.1763889640569687, 0.28179842233657837, -0.22249208390712738, 0.038245514035224915, 0.12614579498767853, 0.20499113202095032, -0.30522292852401733, 0.3017691671848297, -0.07096817344427109, -0.011132938787341118, -0.016095375642180443, 0.015035467222332954, 0.04766833037137985, 0.12267693877220154, 0.18947643041610718, 0.08890145272016525, -0.19113875925540924, -0.035549595952034, -0.5502500534057617, 0.011776787228882313, -0.02976924180984497, -0.13081510365009308, 0.2801951766014099, 0.05374820902943611, 0.29173746705055237, -0.02451493591070175, 0.23991860449314117, -0.44589969515800476, 0.024129198864102364, 0.08056332916021347, 0.034003693610429764, -0.169706791639328, -0.3878960907459259, -0.06587482243776321, 0.052557919174432755, 0.06643490493297577, -0.11162559688091278, 0.29871800541877747, -0.026848934590816498, -0.13480857014656067, -0.33005163073539734, -0.10460062325000763, -0.02296278066933155, 0.4856199324131012, -0.29913443326950073, 0.25289151072502136, -0.38349848985671997, 0.22975599765777588, -0.04804961383342743, -0.41509899497032166, -0.469964861869812, 0.31280946731567383, -0.2131817638874054, 0.2614045739173889, -0.12660852074623108, -0.06085210666060448, -0.186771422624588, -0.17112763226032257, -0.24569188058376312, -0.5278003811836243, -0.2825759947299957, 0.16863344609737396, -0.3479962944984436, 0.15485192835330963, -0.0018806977896019816, 0.17253202199935913, 0.08497254550457001, 0.32822874188423157, 0.2667158544063568, -0.07908844947814941, 0.24113301932811737, 0.058479566127061844, 0.15235525369644165, -0.004625433590263128, -0.1585962325334549, 0.20980355143547058, 0.22155679762363434, -0.48397496342658997, -0.07093594968318939, 0.4147852063179016, -0.09011123329401016, 0.2609640955924988, 0.12886470556259155, 0.013631030917167664, 0.1482883095741272, -0.2505510151386261, 0.4501882791519165, -0.3410741984844208, 0.29280033707618713, -0.2522798478603363, -0.09464358538389206 ]
https://github.com/huggingface/datasets/issues/256
[Feature request] Add a feature to dataset
This is what I have so far: ``` import pyarrow as pa from nlp.arrow_dataset import Dataset aug_dataset = dataset['train'][:] aug_dataset['new_info'] = new_info #reformat as arrow-table schema = dataset['train'].schema # this line doesn't work: schema.append(pa.field('new_info', pa.int32())) table = pa.Table.from_pydict( aug_dataset, schema=schema ) dataset['train'] = Dataset(table) ```
Is there a straightforward way to add a field to the arrow_dataset, prior to performing map?
45
[Feature request] Add a feature to dataset Is there a straightforward way to add a field to the arrow_dataset, prior to performing map? This is what I have so far: ``` import pyarrow as pa from nlp.arrow_dataset import Dataset aug_dataset = dataset['train'][:] aug_dataset['new_info'] = new_info #reformat as arrow-table schema = dataset['train'].schema # this line doesn't work: schema.append(pa.field('new_info', pa.int32())) table = pa.Table.from_pydict( aug_dataset, schema=schema ) dataset['train'] = Dataset(table) ```
[ -0.1585640162229538, 0.12183141708374023, -0.019914427772164345, -0.23797686398029327, 0.11595173180103302, 0.24591778218746185, 0.05583895742893219, 0.23582389950752258, -0.05676401033997536, -0.026944395154714584, 0.5227225422859192, 0.7792690396308899, -0.11489410698413849, 0.2621578276157379, 0.4461780786514282, 0.018078889697790146, 0.0926247090101242, 0.33161330223083496, 0.06321634352207184, 0.05303125083446503, -0.2023165225982666, -0.5101901888847351, -0.015450550243258476, -0.10478762537240982, -0.2550477981567383, 0.06405192613601685, -0.07270663231611252, -0.2698790431022644, -0.19696997106075287, -0.6185673475265503, 0.05524788051843643, -0.005297061987221241, 0.04881122708320618, -0.2824994623661041, -0.00012575110304169357, -0.09902568906545639, 0.12382426112890244, 0.09376218914985657, -0.14928309619426727, 0.0070878672413527966, -0.18201322853565216, -0.5508111119270325, 0.34773191809654236, -0.25052979588508606, -0.027784226462244987, -0.36419928073883057, 0.07550207525491714, 0.009284709580242634, -0.0952075645327568, 0.05794992670416832, 0.09978535026311874, 0.09396684169769287, 0.28767356276512146, 0.10711456835269928, 0.36236903071403503, 0.27982598543167114, -0.3339947462081909, -0.04289506748318672, -0.022063469514250755, -0.21518339216709137, 0.16901861131191254, 0.1127571165561676, 0.12656256556510925, -0.2649109661579132, 0.39527398347854614, 0.24035800993442535, 0.0384080596268177, -0.0723288357257843, -0.22713226079940796, -0.10691110044717789, 0.6156904697418213, -0.6202868819236755, -0.3876194655895233, -0.2214723378419876, 0.30828776955604553, -0.49067121744155884, -0.06145871430635452, 0.04483180493116379, 0.10504624992609024, 0.04377499595284462, 0.34119001030921936, -0.48583903908729553, -0.1245170533657074, 0.3369029462337494, 0.15795834362506866, 0.5274527668952942, 0.3024938106536865, 0.1550375521183014, -0.13680195808410645, 0.027953743934631348, 0.13942983746528625, 0.0006353173521347344, -0.09889701008796692, 0.5474143624305725, -0.19164256751537323, -0.3288540840148926, 0.16039808094501495, -0.3275589346885681, 0.06376343220472336, 0.22596505284309387, 0.07232564687728882, -0.025828691199421883, -0.1592738926410675, 0.1315603405237198, 0.22631600499153137, 0.03331143036484718, -0.024890968576073647, 0.23055167496204376, -0.05313742905855179, -0.40146109461784363, 0.06751574575901031, -0.19417770206928253, 0.1835130900144577, -0.02403523400425911, 0.527088463306427, -0.09943384677171707, 0.5241093635559082, 0.09161878377199173, 0.2641541063785553, -0.12291964888572693, -0.0796191468834877, 0.02893286757171154, 0.0015676608309149742, 0.13885094225406647, 0.19107477366924286, -0.047642968595027924, -0.18431776762008667, 0.44632256031036377, 0.2602832317352295, 0.022913813591003418, -0.058569151908159256, -0.11584220826625824, 0.12103977799415588, 0.2123056799173355, 0.053764574229717255, 0.1982225477695465, 0.128533735871315, -0.009936824440956116, -0.021550213918089867, 0.13862545788288116, 0.17772610485553741, -0.0943024680018425, 0.17931169271469116, 0.3338982164859772, -0.044751640409231186, 0.07005070894956589, -0.015123330987989902, 0.20968854427337646, -0.26493847370147705, 0.4940432906150818, -0.04270138591527939, -0.33548709750175476, -0.18271227180957794, 0.07921812683343887, -0.07608827203512192, -0.3811965882778168, -0.38969600200653076, 0.281035840511322, 0.1529291719198227, -0.20521201193332672, 0.32105907797813416, 0.1022728830575943, -0.20743979513645172, -0.3183971345424652, 0.01410231925547123, 0.005057950969785452, 0.020592018961906433, -0.07319716364145279, -0.20814239978790283, -0.10687363892793655, -0.25478434562683105, -0.31431177258491516, -0.24013008177280426, 0.3415873944759369, 0.026547769084572792, 0.31686529517173767, 0.98269122838974, -0.09471964091062546, -0.31025341153144836, -0.004401146434247494, -0.2885473966598511, -0.1376723349094391, -0.2810828685760498, 0.5194313526153564, -0.00045872744522057474, 0.19117353856563568, -0.11881812661886215, 0.43864092230796814, -0.2460007518529892, 0.062433890998363495, 0.13398383557796478, -0.062234316021203995, 0.39550772309303284, 0.2214665710926056, -0.0669107660651207, 0.05658376216888428, 0.2403137981891632, -0.18985459208488464, 0.07850760966539383, 0.17494980990886688, 0.14173205196857452, -0.023439550772309303, 0.581365704536438, -0.14802801609039307, -0.15876498818397522, -0.3559049367904663, -0.510358989238739, 0.048198360949754715, 0.06147965043783188, -0.049839217215776443, -0.26680201292037964, -0.3365257978439331, 0.13794773817062378, 0.41082531213760376, -0.21857212483882904, 0.08282266557216644, -0.03374510258436203, -0.2657913863658905, 0.03135416656732559, -0.03906288370490074, -0.3062024414539337, -0.28012147545814514, 0.08271924406290054, 0.2396753430366516, 0.07051234692335129, 0.11319245398044586, 0.15329399704933167, -0.2490609586238861, -0.3930211663246155, 0.2864997684955597, 0.024167362600564957, 0.13504546880722046, -0.11266577243804932, 0.2159663885831833, 0.2123829573392868, 0.19002072513103485, 0.2170921415090561, 0.2195715755224228, 0.07736587524414062, -0.21739068627357483, -0.008111226372420788, 0.024139612913131714, -0.0064253779128193855, -0.1075875386595726, -0.07679703086614609, 0.25262245535850525, 0.11839337646961212, 0.15080319344997406, -0.05511319264769554, 0.1701212078332901, 0.2972312569618225, 0.1012449637055397, -0.1686335951089859, -0.036154184490442276, -0.3948584794998169, 0.08251234143972397, 0.013298128731548786, -0.020506495609879494, -0.1242796927690506, 0.17151647806167603, 0.31905397772789, -0.14972136914730072, 0.12844322621822357, 0.19389186799526215, -0.20116418600082397, 0.016229506582021713, 0.2585248649120331, -0.17997050285339355, 0.2840506136417389, 0.22471149265766144, -0.007128622382879257, 0.17359404265880585, -0.14914226531982422, 0.17779697477817535, 0.15074309706687927, -0.008272641338407993, 0.3791618347167969, 0.08276703208684921, 0.49188393354415894, 0.06266041100025177, 0.04098659008741379, -0.016479823738336563, 0.13259893655776978, 0.27422070503234863, -0.12779410183429718, -0.21259349584579468, 0.1566525399684906, -0.06562119722366333, -0.112795889377594, -0.26641255617141724, -0.14766354858875275, -0.30672958493232727, 0.07486540824174881, 0.08029143512248993, -0.07187941670417786, 0.06584689021110535, -0.45384904742240906, -0.033109765499830246, 0.042424798011779785, -0.6114928722381592, 0.03387293219566345, -0.2173404097557068, 0.19863781332969666, -0.042018987238407135, 0.0002148204221157357, -0.02238643355667591, 0.4436039328575134, 0.5154747366905212, 0.3509567677974701, -0.44842860102653503, -0.5637550950050354, -0.026012804359197617, -0.06252047419548035, -0.05686520040035248, 0.007270712871104479, -0.0334598533809185, -0.1215723305940628, -0.24439272284507751, 0.15785978734493256, 0.052099309861660004, -0.17049448192119598, -0.0017592879012227058, -0.1390077918767929, -0.07466217130422592, -0.17795470356941223, -0.1160605251789093, -0.2536521255970001, -0.20014120638370514, 0.4121737480163574, 0.31102457642555237, 0.166098490357399, 0.10232952237129211, 0.06474243104457855, -0.03939249366521835, -0.10455522686243057, -0.27170681953430176, 0.04655124247074127, 0.2692855894565582, 0.3771938681602478, -0.2905595302581787, -0.07008731365203857, 0.12235037237405777, -0.35894739627838135, -0.01336718164384365, 0.3452506363391876, -0.2681255340576172, -0.10456304252147675, -0.13152632117271423, 0.654430627822876, -0.18099503219127655, 0.06111062690615654, 0.4917137622833252, 0.18007603287696838, 0.12596623599529266, 0.06454873085021973, -0.05752803012728691, 0.058176640421152115, 0.47515711188316345, 0.053693320602178574, -0.19743448495864868, 0.3545253872871399, -0.16389891505241394, 0.6824052929878235, -0.2674228549003601, -0.032455310225486755, 0.2890658676624298, -0.45218756794929504, 0.12435086816549301, -0.1754644364118576, -0.05181507393717766, -0.37540432810783386, -0.04024551063776016, -0.19113373756408691, -0.19868285953998566, -0.059207964688539505, -0.2571844160556793, -0.026964692398905754, -0.07670212537050247, -0.03467055410146713, -0.14327716827392578, 0.2570270597934723, -0.6129855513572693, 0.47674107551574707, -0.02343650534749031, -0.16368383169174194, -0.5934671759605408, -0.0892285406589508, -0.16046197712421417, -0.10271506011486053, 0.16458292305469513, -0.29886484146118164, -0.4919734597206116, -0.4300163984298706, -0.3920711278915405, 0.019491346552968025, 0.19570162892341614, 0.16555075347423553, 0.037729810923337936, -0.2686159908771515, -0.031110193580389023, 0.07758407294750214, 0.24063833057880402, -0.35993435978889465, -0.168904647231102, 0.02841148152947426, 0.28407418727874756, -0.28315386176109314, -0.05341443791985512, 0.14231249690055847, 0.2584649920463562, -0.20298780500888824, 0.376568078994751, -0.24874623119831085, 0.15613596141338348, 0.48849812150001526, 0.046010080724954605, -0.1258968710899353, 0.03595413267612457, -0.21192528307437897, -0.1457536667585373, -0.1295853853225708, -0.010205289348959923, -0.10285454988479614, -0.10489877313375473, 0.2832595705986023, -0.1269049346446991, -0.3473353087902069, 0.05218525975942612, -0.0832887515425682, 0.20797201991081238, 0.18581070005893707, 0.15459096431732178, 0.35816308856010437, -0.15834832191467285, -0.037782251834869385, -0.01890690252184868, 0.4107249081134796, 0.03694674000144005, -0.36778318881988525, -0.2743690609931946, -0.26123908162117004, 0.8111658096313477, -0.05337398499250412, 0.04211657494306564, 0.6886085867881775, -0.25107914209365845, -0.08837679773569107, -0.3154602348804474, 0.0237926933914423, 0.3955512046813965, -0.22137212753295898, -0.2090986967086792, -0.4495909810066223, 0.6590728163719177, -0.060804855078458786, 0.0022969702258706093, 0.2921188473701477, 0.17649653553962708, -0.20200952887535095, 0.6029341220855713, 0.028951698914170265, 0.7561172842979431, -0.16065041720867157, 0.15962587296962738, 0.3366750180721283, -0.20070888102054596, 0.28062549233436584, -0.11726599186658859, -0.06488852947950363, -0.30311283469200134, -0.14779657125473022, -0.039473339915275574, -0.22228720784187317, 0.08632294833660126, 0.18382366001605988, -0.11417173594236374, -0.15443313121795654, -0.10096782445907593, 0.39156925678253174, -0.029187345877289772, 0.33549898862838745, 0.055373258888721466, -0.21203795075416565, -0.15365193784236908, -0.015315268188714981, -0.1098569929599762, -0.1193845272064209, -0.1678934544324875, -0.1553378403186798, -0.28728044033050537, -0.27756574749946594, -0.11468122899532318, -0.04278109595179558, -0.26013773679733276, 0.03985314816236496, -0.025316020473837852, -0.1899041384458542, 0.06469392031431198, 0.059583377093076706, -0.06658847630023956, -0.11982076615095139, -0.002089467830955982, 0.24608029425144196, 0.22790537774562836, 0.23593537509441376, 0.10825615376234055, 0.018383976072072983, 0.102018341422081, -0.030978193506598473, -0.24484100937843323, 0.29573920369148254, -0.16050636768341064, -0.5123879313468933, -0.03579515218734741, 0.015374692156910896, 0.10526289790868759, -0.23303672671318054, -0.3621774911880493, 0.14114117622375488, -0.1420350968837738, -0.11774426698684692, 0.04394971579313278, 0.038361676037311554, -0.0065556056797504425, 0.1905522346496582, 0.2257852703332901, -0.11663223803043365, 0.04576302692294121, 0.00294970883987844, -0.03801934793591499, 0.1824086457490921, 0.4506617486476898, -0.2103739082813263, -0.003963340073823929, 0.0047602578997612, 0.041555311530828476, 0.2939315438270569, -0.48685741424560547, -0.25833019614219666, 0.27631837129592896, 0.15034358203411102, -0.1729433834552765, 0.10778811573982239, -0.27817919850349426, 0.26932257413864136, -0.23988232016563416, -0.08993667364120483, -0.3913895785808563, 0.31008151173591614, 0.07208625972270966, 0.2564846873283386, 0.09135465323925018, 0.3130815923213959, -0.24481208622455597, 0.28520697355270386, -0.15283948183059692, -0.21535290777683258, 0.3948771059513092, 0.31188222765922546, -0.018279748037457466, 0.3555018901824951, 0.06666981428861618, -0.3369532823562622, 0.10577093809843063, -0.07933005690574646, 0.1960591971874237, -0.11483568698167801, 0.03339221328496933, 0.19066350162029266, 0.13417962193489075, -0.2545536160469055, -0.2706393897533417, -0.3031243085861206, -0.027735542505979538, -0.18333978950977325, -0.13022516667842865, -0.2740218937397003, -0.21453313529491425, 0.1525447964668274, 0.2862395644187927, 0.2720693051815033, -0.14309558272361755, 0.1244453564286232, 0.028288008645176888, 0.11056812852621078, -0.040976546704769135, 0.23311568796634674, -0.2132413685321808, 0.202962264418602, -0.006632352247834206, 0.00556508032605052, -0.05142289027571678, -0.14761270582675934, 0.303879976272583, -0.13429929316043854, 0.08422190696001053, -0.1251688450574875, 0.29009687900543213, -0.022113313898444176, -0.1756536066532135, 0.23964902758598328, 0.17069058120250702, 0.12197939306497574, -0.38733312487602234, 0.17350806295871735, 0.37580016255378723, -0.21743053197860718, 0.15063093602657318, 0.22362728416919708, 0.19726355373859406, 0.6157664060592651, -0.27231884002685547, 0.022101406008005142, -0.19723448157310486, -0.13296502828598022, 0.07011839002370834, 0.6301003694534302, 0.08388157188892365, -0.0011545740999281406, 0.18732233345508575, 0.459473192691803, 0.08961943536996841, 0.27040454745292664, 0.13087117671966553, 0.25272801518440247, 0.3327938914299011, -0.4072866439819336, 0.19035376608371735, -0.27552056312561035, 0.03960689529776573, -0.042499132454395294, 0.31211504340171814, -0.11318519711494446, 0.3751172721385956, 0.23978754878044128, 0.40419256687164307, -0.1717340499162674, 0.12882637977600098, 0.19296179711818695, -0.021271368488669395, 0.057484351098537445, 0.2609858512878418, 0.015400489792227745, 0.01520721334964037, -0.198108971118927, -0.04709213972091675, -0.33497482538223267, 0.023803789168596268, 0.031752485781908035, 0.19608063995838165, 0.12628941237926483, 0.6106851696968079, 0.3089277148246765, 0.15002533793449402, -0.11028827726840973, -0.10664595663547516, -0.39617159962654114, -0.18407778441905975, -0.19288603961467743, 0.08074135333299637, 0.02829097770154476, 0.15307466685771942, -0.3865979015827179, 0.5614279508590698, -0.06928331404924393, -0.23056860268115997, 0.08210292458534241, 0.009992280974984169, 0.24774757027626038, 0.19524706900119781, -0.11868250370025635, 0.08150701224803925, -0.00829801894724369, 0.09474918991327286, 0.14387615025043488, 0.18825873732566833, -0.20915600657463074, 0.462490439414978, 0.2958875298500061, -0.6133111119270325, 0.020360847935080528, 0.14280347526073456, 0.0756606012582779, -0.19683201611042023, 0.32148903608322144, 0.16618612408638, -0.055599723011255264, -0.2438008189201355, -0.00706664752215147, 0.013825466856360435, 0.1596841961145401, 0.29414182901382446, 0.28481045365333557, -0.16666913032531738, -0.08294641971588135, -0.5021365880966187, -0.013131195679306984, -0.1394726037979126, -0.23699797689914703, 0.4343600869178772, 0.059833455830812454, 0.16779667139053345, 0.05578465387225151, 0.27529388666152954, -0.20919708907604218, 0.0686090886592865, 0.1043538823723793, 0.12135051935911179, -0.24911172688007355, -0.2200094610452652, 0.15547552704811096, -0.14985233545303345, -0.047301650047302246, -0.0012168243993073702, 0.11408702284097672, -0.07107653468847275, -0.3338572084903717, -0.1559707522392273, 0.04471071437001228, 0.1117580235004425, 0.48484182357788086, -0.31773149967193604, 0.43254655599594116, -0.07349192351102829, 0.2076077163219452, -0.16442975401878357, -0.3024151623249054, -0.3349880874156952, 0.17365360260009766, -0.1974709928035736, 0.1441144347190857, 0.10213161259889603, -0.02773188427090645, -0.26010993123054504, -0.11214587092399597, -0.3994651138782501, -0.4051249325275421, -0.16752053797245026, 0.29987579584121704, -0.05238378047943115, 0.11328835040330887, -0.09259580075740814, -0.11970445513725281, -0.061627473682165146, 0.26050716638565063, 0.010366168804466724, -0.13408181071281433, 0.20295533537864685, -0.06307952105998993, 0.018717804923653603, 0.1050201803445816, 0.08107683807611465, 0.08594019711017609, -0.02362549863755703, -0.5783274173736572, -0.18106608092784882, 0.4227900207042694, -0.06856197863817215, 0.21022120118141174, 0.3711642920970917, 0.06598898768424988, 0.2114471048116684, -0.21805277466773987, 0.6425333619117737, -0.49583864212036133, 0.285946786403656, -0.44400328397750854, -0.2989969253540039 ]
https://github.com/huggingface/datasets/issues/256
[Feature request] Add a feature to dataset
Maybe you can use `with_indices`? ```python new_info = list of length dataset['train'] def some_function(indice, x): # adds new_info[index of x] as a field to x x['new_info'] = new_info_x[indice] return x dataset['train'] = dataset['train'].map(some_function, with_indices=True) ```
Is there a straightforward way to add a field to the arrow_dataset, prior to performing map?
35
[Feature request] Add a feature to dataset Is there a straightforward way to add a field to the arrow_dataset, prior to performing map? Maybe you can use `with_indices`? ```python new_info = list of length dataset['train'] def some_function(indice, x): # adds new_info[index of x] as a field to x x['new_info'] = new_info_x[indice] return x dataset['train'] = dataset['train'].map(some_function, with_indices=True) ```
[ -0.1078244149684906, -0.09503662586212158, -0.12450139969587326, -0.15144796669483185, 0.18715614080429077, 0.30071771144866943, 0.18383438885211945, 0.25584930181503296, 0.32104361057281494, 0.15874069929122925, 0.5283858180046082, 0.6252443790435791, -0.23471392691135406, 0.3278806507587433, 0.18763335049152374, -0.0533757321536541, 0.014195817522704601, 0.22495728731155396, 0.08466688543558121, 0.061388563364744186, -0.3617739677429199, -0.45333215594291687, -0.0069542573764920235, -0.19572746753692627, -0.18811969459056854, -0.0918976292014122, 0.09725131094455719, -0.3355698883533478, -0.13132214546203613, -0.542975902557373, -0.03019631840288639, -0.11675307154655457, -0.09235702455043793, 0.052403774112463, -0.00011864180851262063, -0.04220240190625191, 0.22121261060237885, 0.13399705290794373, -0.055813029408454895, -0.1594058871269226, -0.5856688618659973, -0.5728530883789062, 0.18259015679359436, -0.33502480387687683, -0.0429508313536644, -0.22906681895256042, 0.059348370879888535, -0.4260804355144501, -0.18033044040203094, 0.057260558009147644, 0.16376428306102753, -0.06798243522644043, 0.23376096785068512, -0.03600143641233444, 0.4558517336845398, 0.15368688106536865, -0.3162892460823059, -0.20174197852611542, 0.0060715703293681145, 0.00414127204567194, 0.2546452581882477, 0.2826143801212311, 0.12684109807014465, -0.3548516631126404, 0.39189454913139343, 0.14017117023468018, 0.15555241703987122, -0.23561497032642365, -0.2917855978012085, 0.08046269416809082, 0.5871171951293945, -0.2631476819515228, -0.40457430481910706, -0.07981269061565399, 0.26467955112457275, -0.4920732378959656, -0.0741473138332367, -0.14042621850967407, 0.1963738352060318, -0.0694495216012001, 0.2091943323612213, -0.43327951431274414, 0.014271708205342293, 0.2940421402454376, 0.2138630747795105, 0.5456332564353943, 0.11433465778827667, 0.09206540882587433, -0.042327649891376495, -0.16449680924415588, 0.07411161065101624, -0.06184883415699005, -0.008135216310620308, 0.47733694314956665, -0.20431958138942719, -0.2738356292247772, 0.12721532583236694, -0.45879894495010376, 0.044262662529945374, 0.11551687866449356, -0.04193151369690895, -0.056599657982587814, -0.17576439678668976, 0.16065055131912231, 0.15011703968048096, 0.10764751583337784, 0.005229908972978592, 0.26772138476371765, -0.10153798758983612, -0.358012318611145, -0.044341493397951126, -0.2704429030418396, 0.2254667580127716, -0.06495929509401321, 0.34454238414764404, 0.04793674871325493, 0.27503669261932373, 0.09163988381624222, 0.10365062952041626, 0.012058825232088566, -0.16639767587184906, -0.12385211139917374, 0.08398553729057312, 0.12303578853607178, 0.23447364568710327, 0.0054365526884794235, -0.12297976016998291, 0.3372640907764435, 0.3458980917930603, 0.3112016022205353, -0.10744281113147736, -0.21263204514980316, 0.15473517775535583, 0.13930116593837738, -0.07659495621919632, 0.08563730865716934, 0.18231967091560364, -0.0269808117300272, 0.1582474708557129, 0.10241524130105972, 0.22722630202770233, -0.18289798498153687, 0.26069530844688416, 0.21108990907669067, -0.1837570071220398, 0.20895744860172272, 0.051825325936079025, 0.11678745597600937, -0.3144632577896118, 0.3690933585166931, -0.282433420419693, -0.3489379584789276, -0.08264195919036865, 0.15238597989082336, 0.1272735297679901, -0.34466010332107544, -0.19757449626922607, 0.4396516680717468, 0.03706517443060875, -0.18947908282279968, 0.3492398262023926, 0.2072194367647171, -0.4341924488544464, -0.3129717707633972, -0.027672715485095978, 0.14559732377529144, 0.012093168683350086, -0.044806092977523804, -0.2212398201227188, 0.0928499698638916, -0.2608795464038849, -0.21460279822349548, -0.19814789295196533, 0.20574752986431122, -0.06801724433898926, 0.35349681973457336, 0.8596604466438293, -0.10931669920682907, -0.3311023414134979, 0.14190708100795746, -0.30394163727760315, -0.05117009952664375, -0.13902795314788818, 0.5475513935089111, 0.10056770592927933, 0.017881719395518303, 0.07484450191259384, 0.2675636112689972, -0.13412044942378998, -0.08106445521116257, 0.08019851893186569, -0.0713019147515297, 0.3110404908657074, 0.07570668309926987, -0.13749802112579346, 0.08273091912269592, 0.21402017772197723, -0.43473145365715027, 0.010431535542011261, 0.1827218234539032, 0.03535166382789612, 0.1471177339553833, 0.4865827262401581, -0.06227751076221466, -0.1392461359500885, -0.4023258686065674, -0.31506794691085815, 0.0850115716457367, 0.2560742497444153, -0.1315561681985855, -0.05649207904934883, -0.3838043808937073, 0.04119053855538368, 0.3376159965991974, -0.0930953398346901, 0.19204740226268768, 0.018098264932632446, -0.25800129771232605, -0.27710193395614624, -0.11425497382879257, -0.3849005103111267, -0.220265194773674, 0.002568688942119479, 0.03402188792824745, 0.042967021465301514, -0.038332920521497726, 0.25499027967453003, -0.06940743327140808, -0.4769134819507599, 0.17995396256446838, 0.013504656963050365, 0.06661965698003769, -0.20327699184417725, 0.1755383312702179, 0.22847142815589905, 0.027920054271817207, 0.3076648712158203, 0.3209229111671448, 0.1065981388092041, -0.21988140046596527, -0.08064255118370056, 0.27857935428619385, -0.01085517555475235, -0.13450776040554047, -0.11628345400094986, 0.26524314284324646, -0.009051082655787468, 0.270410418510437, -0.17314518988132477, 0.0539243146777153, 0.19701550900936127, 0.09343376755714417, -0.23762691020965576, -0.19930391013622284, -0.3792417347431183, 0.004247783217579126, -0.10104085505008698, -0.12898552417755127, -0.03706343472003937, 0.08358997106552124, 0.3455303907394409, -0.10417486727237701, 0.1496625393629074, 0.16541452705860138, -0.1737336814403534, 0.2314668744802475, 0.04431728646159172, -0.22118544578552246, 0.2762587368488312, 0.25379809737205505, -0.01672258973121643, 0.03874729201197624, 0.0860508531332016, 0.18444037437438965, 0.2718241810798645, -0.007290406618267298, 0.21788166463375092, 0.04036618769168854, 0.3167010247707367, 0.07693024724721909, 0.04689989238977432, -0.18509529531002045, 0.066485196352005, 0.13589440286159515, -0.145765021443367, -0.18152761459350586, 0.18904177844524384, -0.013939449563622475, -0.07008729875087738, -0.19629810750484467, -0.1267542839050293, -0.2679457664489746, 0.02773919515311718, -0.003864934202283621, -0.1771867275238037, 0.19430424273014069, -0.3962598145008087, 0.09610569477081299, 0.2864941358566284, -0.622765839099884, 0.09142785519361496, -0.09023267775774002, 0.29197627305984497, 0.02251727692782879, -0.023435231298208237, -0.15010415017604828, 0.37811169028282166, 0.5751973986625671, 0.31629374623298645, -0.35729265213012695, -0.425648033618927, -0.10765688121318817, 0.0035940040834248066, 0.0003381712595000863, -0.06024555489420891, 0.040925562381744385, -0.30328369140625, -0.29622846841812134, 0.06069234758615494, 0.1335870772600174, -0.134625643491745, -0.20707161724567413, 0.002651061164215207, 0.06641098856925964, -0.053891755640506744, -0.12747855484485626, -0.14594604074954987, -0.353282630443573, 0.42661479115486145, 0.19541355967521667, 0.14052225649356842, 0.061118245124816895, 0.19544954597949982, -0.0433339960873127, 0.07803761214017868, -0.272558331489563, -0.11933755874633789, 0.05274728313088417, 0.41068583726882935, -0.1730511635541916, 0.10698653757572174, 0.03512240946292877, -0.4268290102481842, -0.22572603821754456, 0.3809038996696472, -0.2895033359527588, -0.0058318208903074265, -0.1255996823310852, 0.5389928817749023, -0.13417953252792358, 0.3405480980873108, 0.485068142414093, 0.22279758751392365, 0.029460350051522255, 0.021035753190517426, -0.19615650177001953, 0.021907635033130646, 0.4201478958129883, 0.1148669496178627, 0.02386942319571972, 0.3983842730522156, -0.26142117381095886, 0.6585185527801514, 0.03167175129055977, -0.032382670789957047, 0.20639607310295105, -0.3531016409397125, 0.1559414118528366, -0.28165504336357117, -0.22521506249904633, -0.3181137442588806, -0.003316090442240238, -0.2853693962097168, -0.27817824482917786, -0.1155596524477005, -0.30262085795402527, 0.13441741466522217, -0.0703781470656395, 0.045207198709249496, -0.03131604939699173, 0.3276205360889435, -0.6335792541503906, 0.42300501465797424, -0.1774739772081375, -0.08645319938659668, -0.5579726099967957, -0.02812771685421467, -0.05671171844005585, -0.17178989946842194, 0.3356384336948395, -0.4589649736881256, -0.3039740324020386, -0.30268651247024536, -0.37319284677505493, 0.09120088070631027, 0.3420959413051605, 0.03029792010784149, 0.030382832512259483, -0.24657438695430756, -0.19401158392429352, 0.21992585062980652, 0.3768095076084137, -0.6040036678314209, -0.37287113070487976, 0.07225204259157181, 0.18964868783950806, -0.20595434308052063, 0.1057899221777916, 0.13498713076114655, 0.3845050632953644, -0.2128743827342987, 0.6205476522445679, -0.15306413173675537, 0.2649080157279968, 0.3790742754936218, 0.03361237794160843, -0.13780735433101654, -0.07590825110673904, -0.09623702615499496, 0.08342348039150238, -0.027892477810382843, 0.18274810910224915, -0.031094303354620934, -0.15286722779273987, 0.3558153510093689, -0.31061169505119324, -0.3990320861339569, 0.04455545172095299, -0.027653099969029427, 0.029153307899832726, 0.2408655434846878, 0.3204190731048584, 0.2974688708782196, 0.03641923889517784, -0.06029627099633217, -0.15779514610767365, 0.38974529504776, -0.12093167006969452, -0.20562507212162018, -0.2824404537677765, -0.1346026211977005, 0.7198042273521423, 0.13173019886016846, 0.12657685577869415, 0.675986647605896, -0.1625966876745224, -0.009566156193614006, -0.44399914145469666, -0.10296376049518585, 0.5182795524597168, -0.12298591434955597, -0.22451251745224, -0.5432347655296326, 0.6463307738304138, -0.004804323427379131, -0.028294697403907776, 0.5440323352813721, 0.25314080715179443, -0.13545197248458862, 0.5383806228637695, 0.117823027074337, 0.8973997831344604, -0.13866876065731049, 0.04283249378204346, 0.12145013362169266, -0.07174155116081238, 0.2672674357891083, -0.10205650329589844, 0.02577575296163559, -0.16645796597003937, -0.4732200503349304, -0.00565531337633729, -0.1722017079591751, -0.049439944326877594, 0.21971914172172546, -0.1759851723909378, -0.07354522496461868, -0.2605411112308502, 0.45279937982559204, -0.11419183760881424, 0.11354391276836395, 0.0445239394903183, -0.18081940710544586, 0.006224079988896847, 0.05872071534395218, 0.15786677598953247, -0.1414964497089386, -0.1113811731338501, -0.21460112929344177, -0.15426433086395264, -0.16474966704845428, -0.10840872675180435, -0.07963026314973831, -0.38265538215637207, 0.22154825925827026, -0.23016522824764252, -0.18397843837738037, 0.17916901409626007, -0.11378926783800125, -0.014621869660913944, 0.04452887177467346, 0.019647926092147827, 0.17107626795768738, 0.46105942130088806, 0.3057662546634674, 0.08220795542001724, -0.05105952173471451, 0.05502021685242653, 0.11929625272750854, -0.24213431775569916, 0.3804895281791687, -0.13335606455802917, -0.6124715805053711, -0.11940062791109085, 0.13560360670089722, -0.031510915607213974, -0.3286572992801666, -0.41655465960502625, 0.31461912393569946, -0.11657867580652237, -0.09958384931087494, 0.097547248005867, 0.05068974941968918, -0.16806435585021973, 0.2601741552352905, 0.25283557176589966, -0.10141493380069733, 0.07540249079465866, 0.08318041265010834, -0.03911275789141655, 0.21924307942390442, 0.395048588514328, -0.36131998896598816, -0.08344520628452301, -0.05955972895026207, 0.13187836110591888, 0.4349038600921631, -0.13643218576908112, -0.11470814794301987, 0.01258615218102932, 0.02734384685754776, -0.22944745421409607, 0.08169632405042648, -0.2032323032617569, 0.44457998871803284, -0.3331824243068695, -0.12998390197753906, -0.5196355581283569, 0.37453123927116394, 0.03927092254161835, 0.25124993920326233, -0.2702792286872864, -0.06735672056674957, -0.39127612113952637, 0.19432741403579712, -0.24370327591896057, -0.09802787750959396, 0.29780313372612, 0.272898405790329, 0.11469145864248276, 0.3928793966770172, 0.25776126980781555, -0.2183401733636856, 0.15424373745918274, -0.08650503307580948, 0.062284648418426514, -0.2051125466823578, -0.02924973890185356, 0.13380120694637299, 0.029896141961216927, -0.24345405399799347, -0.24044418334960938, -0.38569024205207825, -0.05833514779806137, -0.26346078515052795, -0.2187701314687729, -0.038851894438266754, -0.14610320329666138, 0.01602436788380146, 0.07783365994691849, 0.10177160054445267, -0.0719110369682312, 0.1752557009458542, 0.041701607406139374, 0.13981327414512634, 0.03119739703834057, 0.14634107053279877, -0.11060801893472672, 0.18953931331634521, 0.019301312044262886, 0.024217700585722923, 0.05647822469472885, -0.049092620611190796, 0.31637880206108093, -0.09125880151987076, 0.11301670223474503, 0.2513696551322937, 0.30213844776153564, 0.048237770795822144, -0.2788461148738861, 0.28147387504577637, 0.050821397453546524, 0.21317845582962036, -0.3302415907382965, -0.0028985331300646067, 0.3826180696487427, -0.06308937817811966, 0.28835710883140564, 0.21525534987449646, 0.12683995068073273, 0.47748661041259766, -0.19028396904468536, -0.08661339432001114, -0.37257876992225647, -0.19182279706001282, 0.15188772976398468, 0.5361399054527283, 0.2544223964214325, -0.19718651473522186, 0.1784895956516266, 0.4863782525062561, 0.31341567635536194, 0.4343242347240448, 0.2641364634037018, 0.2552044093608856, 0.4459422826766968, -0.2635875940322876, 0.12865526974201202, -0.22624820470809937, 0.2911536693572998, -0.017859352752566338, 0.12147489935159683, -0.016997601836919785, 0.5025035738945007, -0.06561193615198135, 0.11539209634065628, -0.1599331945180893, 0.14410021901130676, 0.08186889439821243, -0.04788999259471893, -0.03957829251885414, 0.4195743501186371, 0.011025458574295044, -0.06045396253466606, -0.26546046137809753, 0.02669067680835724, -0.21860584616661072, 0.18476615846157074, 0.0014634981052950025, 0.34794121980667114, 0.19774989783763885, 0.4370710849761963, 0.3695477545261383, 0.43131938576698303, -0.13437820971012115, -0.19090694189071655, -0.28548237681388855, -0.07315920293331146, -0.14572766423225403, 0.24913407862186432, -0.055134620517492294, 0.09631924331188202, -0.37944501638412476, 0.5683106780052185, -0.045650117099285126, -0.2661443054676056, -0.005539373029023409, -0.014286596328020096, 0.14349988102912903, 0.0050986409187316895, -0.13831254839897156, 0.11909252405166626, -0.09623587876558304, 0.26584288477897644, 0.009952022694051266, 0.2420337200164795, -0.27718961238861084, 0.15423355996608734, 0.2391844093799591, -0.4078323543071747, -0.12459282577037811, 0.026088152080774307, 0.15422803163528442, -0.19145746529102325, 0.48529431223869324, 0.007621296681463718, -0.013768079690635204, -0.021427199244499207, 0.050380200147628784, -0.07386349141597748, 0.028606170788407326, 0.22435687482357025, 0.09719695150852203, -0.25348618626594543, 0.021725090220570564, -0.313969224691391, 0.01837819255888462, -0.06399057805538177, -0.05597706139087677, 0.32107216119766235, 0.10840750485658646, 0.2041655033826828, -0.0006590232951566577, 0.25461867451667786, -0.450643926858902, 0.10942308604717255, 0.231843501329422, 0.0801694393157959, -0.2506471872329712, -0.2650771141052246, 0.08355110883712769, 0.027951540425419807, 0.025448953732848167, -0.08696778118610382, 0.12552008032798767, 0.040484122931957245, -0.2018338441848755, -0.23397910594940186, -0.1614363193511963, 0.029567312449216843, 0.5203280448913574, -0.22103598713874817, 0.2648942172527313, -0.25818002223968506, 0.12992754578590393, -0.054779283702373505, -0.288407564163208, -0.3066641688346863, 0.2825360596179962, -0.030852021649479866, 0.15206392109394073, -0.04009980708360672, -0.06604286283254623, -0.24539192020893097, -0.0955057218670845, -0.32519304752349854, -0.5171812772750854, -0.23708920180797577, 0.198263481259346, -0.21439577639102936, 0.007814356125891209, -0.1609615683555603, 0.09793191403150558, -0.06720045208930969, 0.24129600822925568, 0.29471760988235474, -0.08452853560447693, 0.28291061520576477, 0.0013377831783145666, -0.017346186563372612, 0.022087542340159416, 0.03246426209807396, 0.22646760940551758, 0.16706393659114838, -0.4723057448863983, -0.2758603096008301, 0.42746710777282715, -0.07081343233585358, 0.04584232717752457, 0.1943085640668869, 0.0271457452327013, 0.26291587948799133, -0.14147470891475677, 0.45394018292427063, -0.3408811688423157, 0.3687357008457184, -0.3093944489955902, -0.2806951105594635 ]
https://github.com/huggingface/datasets/issues/254
[Feature request] Be able to remove a specific sample of the dataset
Oh yes you can now do that with the `dataset.filter()` method that was added in #214
As mentioned in #117, it's currently not possible to remove a sample of the dataset. But it is a important use case : After applying some preprocessing, some samples might be empty for example. We should be able to remove these samples from the dataset, or at least mark them as `removed` so when iterating the dataset, we don't iterate these samples. I think it should be a feature. What do you think ? --- Any work-around in the meantime ?
16
[Feature request] Be able to remove a specific sample of the dataset As mentioned in #117, it's currently not possible to remove a sample of the dataset. But it is a important use case : After applying some preprocessing, some samples might be empty for example. We should be able to remove these samples from the dataset, or at least mark them as `removed` so when iterating the dataset, we don't iterate these samples. I think it should be a feature. What do you think ? --- Any work-around in the meantime ? Oh yes you can now do that with the `dataset.filter()` method that was added in #214
[ 0.15247125923633575, -0.06869066506624222, -0.14696523547172546, -0.2211093306541443, -0.30814194679260254, 0.04516679793596268, 0.2210412472486496, 0.30834561586380005, -0.0878344252705574, 0.3214428424835205, 0.15475285053253174, 0.3221747577190399, -0.18453910946846008, 0.20332008600234985, -0.07251940667629242, -0.07253403961658478, -0.1344352513551712, 0.20645545423030853, -0.04168715700507164, 0.10553734004497528, -0.15164388716220856, -0.09283115714788437, -0.1631125956773758, 0.036466628313064575, 0.00013905364903621376, -0.15900923311710358, 0.1928134560585022, -0.34386909008026123, -0.23199579119682312, -0.263773113489151, 0.2420497089624405, 0.5169219970703125, 0.07834158837795258, -0.1050744503736496, -0.0001050023129209876, -0.1977977603673935, 0.2854299545288086, 0.025228796526789665, -0.32004594802856445, 0.04273533448576927, -0.2964932918548584, -0.004287215415388346, 0.09996639937162399, -0.02534373290836811, 0.05831857770681381, -0.02850363403558731, -0.12375417351722717, -0.17155952751636505, 0.018393218517303467, 0.29119035601615906, 0.3215630054473877, 0.23546481132507324, -0.37383466958999634, -0.0379893034696579, 0.1803830862045288, 0.6441889405250549, -0.24913658201694489, -0.19395919144153595, 0.43278852105140686, -0.13875120878219604, 0.05431003123521805, 0.4814007878303528, -0.1351955235004425, 0.0658714771270752, 0.21648263931274414, -0.21312519907951355, -0.17434458434581757, -0.593527615070343, 0.11514995247125626, 0.3580578565597534, 0.7855479121208191, -0.14815205335617065, -0.15148909389972687, -0.06955785304307938, -0.07389423996210098, -0.22122463583946228, -0.20486825704574585, 0.07939562946557999, -0.4128400683403015, 0.29995274543762207, -0.3055991232395172, -0.2568865120410919, -0.13694313168525696, -0.05621900036931038, 0.018855340778827667, 0.05796053633093834, 0.025300391018390656, 0.030197488144040108, 0.2365381121635437, 0.1984407603740692, 0.31148436665534973, 0.16108082234859467, 0.040072862058877945, 0.26518791913986206, -0.179747074842453, -0.3887880742549896, -0.011525209061801434, -0.2442958950996399, 0.43769150972366333, 0.3863367438316345, 0.06655572354793549, 0.004987228661775589, 0.038514915853738785, 0.09948961436748505, 0.5406304001808167, -0.027565931901335716, 0.34642431139945984, -0.029067697003483772, 0.1584668606519699, -0.039401404559612274, 0.14273333549499512, -0.04182209447026253, 0.4167376458644867, 0.02536860853433609, 0.05896123871207237, 0.11281789839267731, 0.46885889768600464, -0.23802882432937622, -0.43636372685432434, 0.06379686295986176, -0.22821621596813202, -0.10351179540157318, -0.17434172332286835, 0.017910026013851166, 0.4964863359928131, -0.12123242020606995, -0.2533372640609741, -0.02542100101709366, -0.22520668804645538, -0.42023569345474243, -0.098812036216259, 0.11546992510557175, -0.10273091495037079, -0.2801540493965149, 0.15785877406597137, -0.04884510114789009, 0.3315293490886688, -0.10671861469745636, 0.14422732591629028, 0.020320279523730278, 0.37136760354042053, -0.09950820356607437, 0.4219813048839569, 0.3568210005760193, -0.28717726469039917, -0.06215961277484894, -0.10544181615114212, 0.16765360534191132, -0.2552565634250641, 0.44636988639831543, -0.00016648750170134008, -0.2190553992986679, -0.2839271128177643, 0.19908033311367035, 0.09799115359783173, -0.10390635579824448, -0.003237822325900197, 0.33595725893974304, -0.28228679299354553, 0.15485486388206482, 0.10225377976894379, -0.061040665954351425, -0.162877157330513, -0.010247175581753254, -0.11155952513217926, 0.204134002327919, -0.40113958716392517, 0.0656781792640686, -0.34491807222366333, -0.3245486617088318, 0.1461317390203476, -0.09181223809719086, -0.3562161922454834, 0.17579787969589233, -0.19459234178066254, 0.25147169828414917, 0.2005862444639206, -0.044377028942108154, -0.23767024278640747, 0.36385419964790344, -0.08641774207353592, 0.09281757473945618, -0.2469605803489685, 0.1849028766155243, 0.10595370829105377, -0.14914147555828094, -0.3297971189022064, 0.04775748401880264, -0.15879954397678375, -0.19685253500938416, -0.03131446987390518, -0.3938302993774414, 0.3564232885837555, -0.07550074905157089, 0.31616541743278503, 0.22201403975486755, 0.2586922347545624, -0.176161527633667, 0.34096625447273254, 0.08201703429222107, 0.1753765493631363, 0.10094957798719406, 0.6998940706253052, -0.18351419270038605, 0.004001286346465349, -0.31514015793800354, -0.28127917647361755, -0.051626741886138916, -0.13881273567676544, -0.12762877345085144, 0.19394373893737793, -0.5064941048622131, -0.01452056784182787, -0.04483675956726074, -0.0656432956457138, -0.24651913344860077, 0.07821864634752274, -0.2371264398097992, 0.03407362475991249, -0.3830649256706238, -0.5653282999992371, 0.014514758251607418, -0.2014605849981308, 0.002071678638458252, -0.13193786144256592, -0.1468445211648941, 0.23931238055229187, 0.11317766457796097, 0.14520390331745148, 0.1961670219898224, 0.065799780189991, -0.06609007716178894, -0.089032381772995, 0.2003374844789505, 0.278439998626709, -0.2950913608074188, -0.08464577794075012, 0.03591150790452957, 0.09922696650028229, -0.16693714261054993, -0.011225437745451927, 0.13641956448554993, -0.03300980105996132, 0.10667318105697632, -0.24761421978473663, 0.374372661113739, -0.2114715278148651, 0.299442857503891, -0.16554628312587738, 0.07406221330165863, 0.2526145875453949, -0.23435670137405396, -0.12350557744503021, -0.17970390617847443, -0.029926933348178864, 0.027166057378053665, -0.021090330556035042, -0.17401491105556488, -0.29607540369033813, 0.11433404684066772, -0.05259537324309349, 0.15039442479610443, -0.067528136074543, 0.28285717964172363, 0.11353036016225815, -0.12670981884002686, 0.16031797230243683, 0.17151334881782532, 0.3910120725631714, 0.15523049235343933, -0.0733548253774643, -0.024597736075520515, 0.45575177669525146, 0.03828837722539902, 0.1078898087143898, 0.18329019844532013, -0.13432715833187103, -0.01999323070049286, -0.04288645461201668, -0.08447350561618805, -0.37887316942214966, -0.05677908658981323, -0.02833539992570877, 0.08681954443454742, -0.01683400385081768, -0.055122822523117065, -0.20230817794799805, -0.5482847690582275, 0.07572946697473526, 0.19052545726299286, -0.1402408331632614, -0.13961926102638245, 0.27622827887535095, 0.16739822924137115, -0.2793140411376953, 0.23970651626586914, -0.0718526765704155, 0.6686885356903076, -0.31212058663368225, 0.3265022933483124, 0.027735142037272453, -0.01081869937479496, 0.057496730238199234, 0.2458638697862625, -0.16570433974266052, 0.37217068672180176, 0.6059101819992065, 0.2086494415998459, -0.16102321445941925, -0.497404009103775, -0.26899659633636475, 0.18128061294555664, 0.01889808103442192, 0.24957166612148285, 0.28590717911720276, 0.10402277112007141, 0.012929823249578476, 0.043763238936662674, -0.3359829783439636, -0.20384278893470764, -0.30557337403297424, -0.30221036076545715, 0.05538531765341759, 0.3313925266265869, -0.2298617959022522, -0.07973652333021164, -0.2824409604072571, -0.20691879093647003, 0.10348773747682571, -0.0693599060177803, 0.22199487686157227, 0.04093872755765915, -0.2276330292224884, -0.11302898824214935, -0.15591196715831757, -0.2918018102645874, -0.24315087497234344, -0.44992080330848694, -0.28089120984077454, -0.2144707888364792, -0.23961088061332703, 0.04522647336125374, 0.28543713688850403, 0.030910048633813858, 0.15763331949710846, -0.14079861342906952, -0.35386964678764343, -0.019396914169192314, 0.26197636127471924, -0.071036696434021, -0.07387664169073105, 0.14761538803577423, 0.059918973594903946, -0.0654502883553505, -0.0256448183208704, -0.14643654227256775, 0.0759127214550972, 0.1596875637769699, 0.006143643520772457, 0.1668524444103241, 0.1987113356590271, 0.056145258247852325, 0.6262667775154114, 0.14652524888515472, 0.07187818735837936, 0.29465603828430176, 0.09827755391597748, 0.25439131259918213, -0.1454629898071289, -0.2613231837749481, 0.1503065526485443, 0.02774680219590664, -0.17628034949302673, 0.3424510657787323, -0.17527027428150177, -0.3346106708049774, 0.1341100037097931, -0.09567875415086746, 0.027436591684818268, -0.21737928688526154, 0.09905913472175598, 0.002767975442111492, 0.2048645317554474, 0.10396017879247665, -0.04694307595491409, -0.13341490924358368, -0.11006154865026474, -0.05124206840991974, -0.023183394223451614, 0.5291541218757629, -0.10405333340167999, -0.7140021324157715, -0.08836889266967773, -0.391791433095932, 0.11260125041007996, 0.1015191301703453, 0.1368480920791626, -0.015585007146000862, 0.06944553554058075, 0.08839824795722961, 0.323775053024292, 0.49417755007743835, -0.12657150626182556, -0.10960885882377625, 0.09955526143312454, -0.1879325807094574, 0.2218271642923355, 0.06909160315990448, 0.12239956110715866, 0.5511655211448669, -0.06330624967813492, -0.05561794340610504, -0.05655140057206154, -0.3648306727409363, 0.5033463835716248, 0.43311160802841187, -0.27010995149612427, -0.07433906197547913, 0.13397647440433502, -0.45396262407302856, -0.1623755693435669, 0.18741974234580994, 0.3584507405757904, -0.01778912916779518, 0.10468524694442749, -0.21196728944778442, 0.01472767535597086, -0.20319227874279022, 0.2260521799325943, -0.1402357816696167, 0.09246818721294403, 0.16951672732830048, 0.09728603810071945, -0.03373454138636589, 0.04439137503504753, 0.33599355816841125, 0.1440194994211197, -0.23375755548477173, -0.1483154594898224, -0.050298094749450684, -0.48311668634414673, 0.5759850740432739, 0.4025343656539917, 0.06612839549779892, 0.48065677285194397, -0.16112825274467468, 0.10671060532331467, -0.14301131665706635, 0.03510008007287979, -0.07897339016199112, -0.359443336725235, -0.29989898204803467, -0.3773578703403473, 0.14520826935768127, -0.2390550822019577, -0.13542978465557098, 0.5034407377243042, 0.06632844358682632, -0.3376882076263428, 0.2600625455379486, 0.12797518074512482, 0.8335617184638977, 0.210150808095932, -0.16587509214878082, -0.31974318623542786, 0.36679500341415405, 0.44454413652420044, -0.06614338606595993, 0.148173525929451, -0.15171115100383759, -0.465095192193985, -0.0986902043223381, 0.0911610946059227, 0.2458021342754364, 0.1708967238664627, 0.30363109707832336, 0.1425018459558487, -0.333136647939682, 0.23829776048660278, 0.09685628861188889, 0.20404265820980072, 0.2044794261455536, 0.08664048463106155, 0.2796418070793152, 0.14445438981056213, -0.15371911227703094, 0.13642454147338867, -0.014668973162770271, 0.014742336235940456, 0.45682263374328613, -0.1832941770553589, -0.08785184472799301, -0.27677008509635925, -0.23192596435546875, 0.1737445890903473, -0.16774338483810425, -0.22517409920692444, 0.037039343267679214, -0.041289377957582474, 0.22465236485004425, -0.16241414844989777, -0.007251025643199682, 0.26161089539527893, 0.4305468797683716, 0.2613459825515747, -0.18218563497066498, 0.08929326385259628, 0.06743287295103073, -0.2170286774635315, -0.1740204244852066, 0.19983118772506714, -0.08822710067033768, -0.6302385330200195, 0.04511875659227371, -0.03708014264702797, 0.13949882984161377, -0.2621920704841614, -0.17782829701900482, 0.07976606488227844, 0.1998768001794815, -0.2662314772605896, 0.1791369915008545, 0.41972628235816956, -0.15943242609500885, 0.32916736602783203, 0.1419418305158615, -0.11083831638097763, -0.1311240941286087, -0.19657202064990997, 0.24859702587127686, -0.2229696810245514, 0.2435825914144516, -0.16651000082492828, -0.2172173708677292, -0.3615175485610962, 0.09784611314535141, 0.04207673668861389, -0.2994478940963745, 0.33115071058273315, -0.15712185204029083, 0.12121991813182831, -0.07682359963655472, 0.31861770153045654, -0.26237690448760986, -0.07797446846961975, -0.14588427543640137, -0.11703026294708252, -0.10968469828367233, -0.12496733665466309, -0.2324272096157074, 0.2765316963195801, -0.31720468401908875, 0.07091938704252243, -0.29928070306777954, 0.09492750465869904, -0.35202181339263916, 0.013193810358643532, 0.2019292414188385, 0.33091527223587036, 0.2108595222234726, 0.41986724734306335, -0.16435082256793976, -0.13817401230335236, -0.025409916415810585, 0.09089414030313492, 0.10136237740516663, -0.2763555347919464, -0.2395838350057602, 0.12835738062858582, -0.15293379127979279, -0.2567759156227112, 0.07819707691669464, 0.18440881371498108, -0.2350839525461197, 0.011489314027130604, 0.2410908341407776, 0.08124703913927078, 0.20361553132534027, 0.36968496441841125, 0.21261659264564514, -0.31433814764022827, -0.14658956229686737, 0.20539610087871552, 0.1115216463804245, 0.09026554971933365, 0.037310048937797546, 0.17503991723060608, 0.10161080211400986, -0.0006023469613865018, -0.013576479628682137, 0.08517539501190186, -0.058053988963365555, -0.036802761256694794, -0.1707373708486557, 0.15921913087368011, 0.1380585879087448, 0.19066019356250763, 0.11466766148805618, 0.06743666529655457, -0.20139604806900024, 0.08745774626731873, 0.22944606840610504, 0.30019110441207886, -0.37573346495628357, 0.047715526074171066, 0.21901637315750122, -0.037288159132003784, 0.04800345003604889, 0.11764993518590927, 0.33796194195747375, 0.2758149802684784, 0.19446104764938354, -0.1427137702703476, 0.14667807519435883, -0.04335891827940941, 0.1966167539358139, 0.5363405346870422, 0.07790669798851013, -0.09129306674003601, 0.20901167392730713, 0.2249440997838974, 0.08971340209245682, 0.24294891953468323, -0.23686392605304718, 0.7157305479049683, 0.44752490520477295, 0.11865006387233734, 0.044916726648807526, -0.39070019125938416, 0.3061622977256775, 0.3439212143421173, -0.08166556060314178, 0.032626211643218994, 0.3975997567176819, 0.054934967309236526, -0.021674754098057747, -0.3226870596408844, -0.17906950414180756, 0.25381648540496826, 0.009351076558232307, -0.03729533031582832, -0.23587143421173096, -0.15257765352725983, 0.05261426419019699, 0.2089952677488327, -0.02671012654900551, -0.11314167827367783, 0.2701878547668457, -0.13516095280647278, -0.0969175174832344, -0.0530758835375309, 0.21122859418392181, -0.3297097980976105, 0.27649393677711487, -0.12268120795488358, -0.560858428478241, -0.34462106227874756, -0.06734564900398254, 0.3321216404438019, 0.3554743528366089, -0.29084572196006775, -0.1042800098657608, 0.10988514870405197, -0.10221574455499649, -0.360723078250885, 0.005353123415261507, -0.28862881660461426, 0.17039820551872253, -0.0004718714626505971, 0.1374024599790573, 0.1133875623345375, 0.09339763969182968, -0.06881400942802429, 0.03512153401970863, 0.38269081711769104, 0.10452358424663544, -0.7485454678535461, 0.07542646676301956, 0.3133433759212494, -0.1835145652294159, 0.022479809820652008, -0.057336919009685516, 0.34562045335769653, -0.0509050190448761, 0.4373701810836792, -0.021235747262835503, 0.16521872580051422, 0.019916806370019913, 0.1434660702943802, -0.4360470473766327, -0.038612354546785355, 0.0742473155260086, -0.23860539495944977, -0.32695814967155457, -0.1742449551820755, -0.5445414781570435, -0.052662111818790436, -0.0885605439543724, 0.09180817008018494, 0.5256837010383606, -0.0007517515914514661, 0.055198878049850464, 0.26350387930870056, -0.04821589216589928, -0.2776603698730469, 0.10351625829935074, 0.04000703617930412, -0.39057493209838867, 0.041805166751146317, -0.11880726367235184, 0.3993770480155945, 0.11242721974849701, -0.35435861349105835, 0.016486598178744316, -0.2146889716386795, 0.05139916390180588, -0.23784580826759338, -0.2160310298204422, 0.4501124620437622, 0.26998502016067505, 0.3934662938117981, 0.07972019165754318, -0.09021585434675217, -0.012564849108457565, -0.14074558019638062, -0.14958032965660095, 0.008123809471726418, -0.2722078263759613, 0.007036611903458834, 0.11928242444992065, 0.23221296072006226, 0.06870635598897934, 0.3768317997455597, -0.21696895360946655, 0.33068034052848816, -0.2001122385263443, 0.15200962126255035, -0.35592687129974365, -0.02005375362932682, -0.03778032958507538, 0.008259661495685577, 0.26592007279396057, 0.1712702363729477, -0.15451686084270477, 0.09603916108608246, -0.3604625165462494, -0.03381624072790146, 0.28701791167259216, -0.45511382818222046, -0.2992478311061859, -0.1718948781490326, 0.3613576292991638, 0.1554853618144989, -0.5626267790794373, -0.3370780050754547, -0.07432878017425537, 0.27592840790748596, -0.17158456146717072, 0.224470853805542, 0.3413216173648834, -0.1381215900182724, 0.015497957356274128, 0.1342683583498001, 0.2255506068468094, 0.3296637237071991, 0.010961882770061493, -0.04395411163568497, -0.20933763682842255 ]
https://github.com/huggingface/datasets/issues/252
NonMatchingSplitsSizesError error when reading the IMDB dataset
I just tried on my side and I didn't encounter your problem. Apparently the script doesn't generate all the examples on your side. Can you provide the version of `nlp` you're using ? Can you try to clear your cache and re-run the code ?
Hi! I am trying to load the `imdb` dataset with this line: `dataset = nlp.load_dataset('imdb', data_dir='/A/PATH', cache_dir='/A/PATH')` but I am getting the following error: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/load.py", line 517, in load_dataset save_infos=save_infos, File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 363, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 421, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=5929447, num_examples=4537, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}] ``` Am I overlooking something? Thanks!
45
NonMatchingSplitsSizesError error when reading the IMDB dataset Hi! I am trying to load the `imdb` dataset with this line: `dataset = nlp.load_dataset('imdb', data_dir='/A/PATH', cache_dir='/A/PATH')` but I am getting the following error: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/load.py", line 517, in load_dataset save_infos=save_infos, File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 363, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 421, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=5929447, num_examples=4537, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}] ``` Am I overlooking something? Thanks! I just tried on my side and I didn't encounter your problem. Apparently the script doesn't generate all the examples on your side. Can you provide the version of `nlp` you're using ? Can you try to clear your cache and re-run the code ?
[ -0.5058616399765015, -0.1288101077079773, 0.018225111067295074, 0.3497682511806488, 0.14970475435256958, 0.20425544679164886, 0.04649150371551514, 0.4214465320110321, 0.23764587938785553, 0.0744064524769783, -0.1168227270245552, 0.1823248714208603, -0.261381059885025, -0.10192293673753738, -0.15735359489917755, 0.0979989767074585, -0.11061815917491913, 0.21006979048252106, 0.07444237917661667, 0.06530740112066269, -0.402810662984848, 0.2740866243839264, -0.38298800587654114, -0.07002145797014236, -0.39139324426651, -0.13322830200195312, 0.14591635763645172, 0.15154525637626648, 0.19135846197605133, -0.38426730036735535, 0.34816622734069824, 0.01094397995620966, 0.15339818596839905, 0.16258326172828674, -0.0001161558466264978, 0.010485749691724777, 0.6431309580802917, -0.28725242614746094, -0.27715983986854553, -0.27866682410240173, -0.2890475392341614, -0.2956995964050293, 0.29983821511268616, -0.35568055510520935, -0.09214339405298233, -0.006996212527155876, 0.33322760462760925, -0.46664923429489136, 0.10930389910936356, 0.1632334440946579, 0.1778460443019867, 0.14517506957054138, -0.11867295950651169, 0.19795149564743042, 0.022769149392843246, -0.11543525010347366, -0.10673889517784119, 0.07675022631883621, -0.024576375260949135, -0.07225549966096878, -0.11632949858903885, 0.23091109097003937, -0.4465891718864441, 0.16891376674175262, 0.3901180326938629, 0.17549777030944824, 0.33320412039756775, -0.27650120854377747, 0.07517445832490921, 0.20439738035202026, 0.5286697745323181, -0.17592297494411469, -0.2950548827648163, -0.39494141936302185, 0.028566282242536545, -0.2426874041557312, 0.16411557793617249, 0.3492821753025055, -0.2348974645137787, -0.0012557728914543986, -0.3458952009677887, 0.024299217388033867, -0.22278302907943726, 0.16897355020046234, 0.3957202732563019, 0.10430499911308289, 0.11116804927587509, 0.07972873747348785, 0.28578248620033264, -0.058101121336221695, 0.4545832872390747, -0.08506258577108383, 0.14595727622509003, 0.14440418779850006, -0.27104470133781433, -0.0759878009557724, -0.21710656583309174, 0.27463483810424805, 0.008275623433291912, 0.3213573694229126, 0.19679686427116394, 0.05168146640062332, 0.14360149204730988, 0.31098121404647827, 0.2449316680431366, 0.017076797783374786, 0.14312852919101715, 0.3343559503555298, 0.049804769456386566, 0.15742115676403046, -0.12611398100852966, -0.03626961633563042, 0.08530562371015549, -0.0314570851624012, 0.08145171403884888, 0.15716557204723358, 0.26868584752082825, -0.2099476009607315, -0.5460671186447144, -0.0010154539486393332, -0.2332894504070282, -0.16518905758857727, 0.09599056094884872, 0.2754747271537781, -0.15367913246154785, 0.331939697265625, 0.042252544313669205, 0.1424368917942047, -0.34922054409980774, -0.12168277055025101, -0.23689863085746765, 0.17275017499923706, -0.20333023369312286, 0.07712958008050919, 0.31587910652160645, 0.10439889878034592, 0.4351961016654968, -0.198621928691864, -0.11535385996103287, -0.04209071025252342, 0.42123425006866455, -0.1903638243675232, -0.07459454238414764, 0.22260966897010803, 0.19707724452018738, 0.16234682500362396, 0.08705969154834747, -0.05072983726859093, -0.3188583254814148, 0.18133103847503662, 0.002808335702866316, -0.3774324059486389, 0.015083192847669125, 0.17903633415699005, -0.1909027397632599, -0.08627460151910782, -0.03475445881485939, 0.11344066262245178, 0.13027030229568481, -0.4634087085723877, -0.205453559756279, -0.10737556219100952, -0.2702176570892334, -0.12326668947935104, -0.01652156002819538, 0.5770247578620911, 0.033828794956207275, -0.063733771443367, -0.14413303136825562, 0.008088381960988045, 0.5104398727416992, 0.38604608178138733, -0.05088452622294426, -0.16705173254013062, -0.3651433289051056, 0.3389674425125122, 0.22719749808311462, -0.4194651246070862, -0.4263269305229187, 0.48374345898628235, 0.006436939351260662, 0.2578955590724945, 0.3255821466445923, 0.40542805194854736, 0.12047901004552841, -0.03258955478668213, 0.05214174464344978, 0.42401862144470215, -0.13176894187927246, -0.014283784665167332, -0.28745949268341064, -0.29504409432411194, 0.6005900502204895, 0.14942362904548645, 0.06876452267169952, -0.04363645985722542, 0.018751291558146477, 0.46655943989753723, 0.3268424868583679, -0.001648068311624229, -0.01088875811547041, 0.16495643556118011, -0.24784395098686218, 0.32264626026153564, -0.17363016307353973, -0.17615899443626404, -0.5091280341148376, 0.07417920231819153, -0.11290912330150604, 0.09082947671413422, -0.17630425095558167, -0.17812640964984894, -0.08824408799409866, -0.3431605398654938, -0.23587754368782043, 0.002842373913154006, 0.10642411559820175, 0.25046101212501526, -0.06043991446495056, 0.13977445662021637, -0.1747397780418396, 0.548671543598175, 0.002362775383517146, 0.08294223994016647, -0.8483412265777588, 0.32391422986984253, -0.17331139743328094, -0.26761531829833984, 0.3004832863807678, 0.29649409651756287, 0.28260380029678345, -0.15306714177131653, -0.11416502296924591, 0.38941842317581177, 0.09103495627641678, 0.317404568195343, -0.16694782674312592, -0.03195281699299812, 0.29273292422294617, -0.3631340563297272, 0.14231836795806885, 0.27244964241981506, 0.1341879516839981, -0.11098460853099823, -0.03921457752585411, 0.28990086913108826, -0.330035537481308, 0.2139117568731308, 0.07908973842859268, 0.06293438374996185, 0.16034449636936188, -0.14501699805259705, -0.07456985116004944, -0.43258628249168396, 0.45346593856811523, 0.1690416783094406, -0.07186102122068405, 0.062217723578214645, -0.3637712895870209, -0.12391866743564606, 0.45984646677970886, 0.1139732375741005, 0.016815777868032455, 0.04694452881813049, -0.05134917050600052, -0.166758731007576, 0.15039056539535522, 0.19136744737625122, 0.2858825623989105, 0.3570713400840759, -0.11386340111494064, 0.0858263298869133, -0.0941612645983696, -0.18244107067584991, 0.1085900217294693, 0.15418559312820435, 0.26791179180145264, 0.33022332191467285, -0.116761714220047, -0.056368011981248856, -0.40070217847824097, -0.24563711881637573, 0.016141671687364578, 0.3377130925655365, -0.2668759524822235, -0.15787909924983978, -0.4097845256328583, -0.4801175594329834, -0.05684191361069679, -0.08438938856124878, -0.1401238888502121, -0.4054647386074066, -0.11674658209085464, 0.5066673755645752, 0.0902772843837738, 0.2009696364402771, -0.38603317737579346, -0.05657322332262993, -0.03842679783701897, -0.14503370225429535, -0.15850797295570374, -0.3335529863834381, -0.07117226719856262, -0.045794982463121414, 0.39115792512893677, 0.22970359027385712, 0.3629732131958008, -0.41761067509651184, -0.09488023072481155, 0.06533678621053696, 0.054071247577667236, -0.15775427222251892, -0.08008982241153717, 0.07565739750862122, 0.06884484738111496, 0.07905049622058868, 0.1566690355539322, -0.3845469355583191, 0.28425586223602295, -0.27417129278182983, -0.07604861259460449, 0.19505184888839722, 0.1936429888010025, 0.041928309947252274, 0.035389967262744904, -0.36085060238838196, -0.38797008991241455, -0.43971380591392517, 0.019114693626761436, 0.2849375307559967, 0.10200906544923782, 0.1651659607887268, -0.008908321149647236, 0.022369462996721268, 0.054622940719127655, 0.17856954038143158, -0.12420801818370819, 0.02524101734161377, 0.3226627707481384, -0.029078612104058266, -0.11723741888999939, 0.056346070021390915, 0.05499795451760292, 0.1520998179912567, -0.022355379536747932, -0.43820732831954956, -0.1349187046289444, -0.14882047474384308, 0.1116718128323555, -0.09015222638845444, -0.201187402009964, 0.3662033975124359, 0.13442069292068481, -0.022054782137274742, -0.02816506288945675, -0.2943354845046997, 0.01675725355744362, 0.0694209560751915, 0.283718466758728, -0.014131980016827583, 0.5791605710983276, -0.06438598781824112, 0.3804611265659332, 0.4987342357635498, 0.04556409642100334, 0.2685539424419403, -0.19427166879177094, 0.23928701877593994, -0.07486831396818161, -0.39638257026672363, 0.04300623759627342, -0.06591222435235977, -0.09030992537736893, 0.10268939286470413, -0.20373643934726715, -0.28341078758239746, -0.24746552109718323, -0.3123927712440491, -0.4928133487701416, -0.2052924931049347, -0.04197799786925316, -0.3690473735332489, 0.06717164814472198, 0.11420819163322449, 0.1570945829153061, -0.1367003172636032, -0.47861382365226746, -0.002998929237946868, 0.17202319204807281, 0.2018541842699051, 0.04542712867259979, 0.0023711961694061756, 0.11249231547117233, -0.4285702109336853, 0.41041404008865356, 0.08919265121221542, 0.48090678453445435, -0.12759506702423096, 0.00041402914212085307, 0.10623769462108612, -0.03964879363775253, 0.521578848361969, -0.34768185019493103, 0.11479339003562927, 0.07725685089826584, -0.11838517338037491, -0.6588269472122192, 0.08736657351255417, -0.13857804238796234, 0.3216617703437805, 0.47805148363113403, 0.3114853501319885, -0.23110347986221313, -0.1851462423801422, 0.19537845253944397, 0.1498497724533081, -0.12070520222187042, -0.23557491600513458, -0.20585396885871887, -0.1715177744626999, -0.4106167256832123, -0.17136694490909576, -0.04747958108782768, 0.2916363775730133, 0.1333785057067871, -0.06958014518022537, 0.05028017982840538, -0.1940114051103592, 0.31459981203079224, 0.060562435537576675, 0.2779490649700165, 0.1074613630771637, 0.25392916798591614, 0.30600908398628235, 0.31583908200263977, 0.11119208484888077, 0.4503251612186432, -0.014343964867293835, 0.046165868639945984, -0.07414518296718597, -0.10895156115293503, 0.11592880636453629, 0.1714697927236557, 0.08840833604335785, -0.13649997115135193, -0.0308317132294178, -0.06223529577255249, -0.17010736465454102, -0.10185092687606812, 0.3103112280368805, -0.07304850220680237, -0.18008358776569366, -0.5892114043235779, 0.4753004312515259, 0.22448883950710297, 0.06447375565767288, -0.052106134593486786, 0.05236837640404701, -0.24500291049480438, 0.44381001591682434, 0.1461973488330841, 0.7782350182533264, 0.23157070577144623, 0.10153310745954514, 0.02332923375070095, 0.017487188801169395, 0.553023636341095, -0.09263043105602264, 0.4083081781864166, -0.48353850841522217, -0.1268623322248459, -0.06918483227491379, -0.14241954684257507, 0.028257429599761963, -0.003495566314086318, -0.26026448607444763, 0.48728564381599426, -0.12779325246810913, -0.39517825841903687, -0.2352571189403534, 0.4670632481575012, -0.37402719259262085, -0.06870004534721375, -0.052218616008758545, 0.11086677014827728, -0.23586757481098175, 0.2975418269634247, 0.09007991850376129, -0.1718616485595703, -0.047992777079343796, -0.060389962047338486, -0.3981962203979492, 0.2106192708015442, -0.21927325427532196, 0.29227378964424133, -0.23186129331588745, -0.15821436047554016, -0.04134315624833107, 0.15401889383792877, 0.11756882071495056, -0.2576337456703186, -0.24675698578357697, -0.17269714176654816, -0.02431868575513363, -0.24386633932590485, 0.031645987182855606, 0.1261454075574875, 0.39649415016174316, -0.1396341323852539, -0.11366183310747147, 0.019617877900600433, 0.07920041680335999, -0.23061761260032654, 0.2163144052028656, -0.19969171285629272, 0.02471020072698593, -0.16470012068748474, -0.5514364838600159, -0.029141496866941452, -0.17712709307670593, -0.1453780233860016, 0.09008888900279999, -0.0960811898112297, -0.18411648273468018, 0.07291419059038162, 0.06232545152306557, -0.28905442357063293, -0.06277137249708176, 0.5095922350883484, 0.18227484822273254, 0.10066662728786469, 0.4814754128456116, 0.008604343049228191, -0.2807365953922272, -0.2713317275047302, 0.104477159678936, -0.13354776799678802, -0.44085076451301575, 0.13959437608718872, -0.01308349147439003, 0.29149654507637024, 0.23849040269851685, 0.07681286334991455, 0.29629334807395935, 0.11486321687698364, -0.07309317588806152, -0.46914005279541016, -0.28071027994155884, 0.15273475646972656, -0.20835305750370026, 0.3305927813053131, -0.11062011122703552, 0.24013124406337738, 0.03889162093400955, 0.07922060787677765, -0.26346251368522644, -0.019083060324192047, -0.31927162408828735, 0.1041334792971611, 0.25879791378974915, -0.22273336350917816, 0.06520644575357437, 0.1140521690249443, 0.11876468360424042, 0.08913258463144302, -0.10066398233175278, -0.13672931492328644, -0.04415416717529297, 0.14903734624385834, 0.06984230130910873, -0.24569518864154816, -0.30870315432548523, -0.11426934599876404, -0.18540294468402863, -0.11465051025152206, -0.3026449680328369, 0.29234766960144043, -0.09454772621393204, 0.5159422755241394, -0.025602014735341072, -0.1894531399011612, -0.014908524230122566, 0.2085004299879074, -0.3110043406486511, 0.33278459310531616, -0.16510772705078125, 0.19613121449947357, 0.07027766853570938, 0.09524765610694885, -0.031940389424562454, -0.078532375395298, -0.057397469878196716, 0.017867719754576683, 0.27452152967453003, -0.28783291578292847, 0.033060699701309204, 0.23505298793315887, 0.17434200644493103, 0.49635034799575806, -0.04236540198326111, -0.2141539454460144, 0.006215892732143402, 0.16510792076587677, -0.44465285539627075, 0.11293760687112808, 0.5683697462081909, 0.02821921743452549, -0.017523083835840225, 0.2885957658290863, 0.201692134141922, -0.02698521874845028, -0.07953723520040512, 0.04915417358279228, 0.5171206593513489, -0.30170607566833496, 0.13687583804130554, 0.14697064459323883, 0.04299724102020264, -0.12275175005197525, 0.16442354023456573, 0.21189793944358826, 0.34364551305770874, 0.5141329765319824, -0.19191065430641174, 0.30205366015434265, -0.2119121104478836, 0.19079844653606415, -0.304691344499588, -0.3163408637046814, -0.11834968626499176, 0.2924261689186096, 0.015543775632977486, 0.18330946564674377, -0.0010104592656716704, 0.21477220952510834, -0.20411387085914612, 0.12571482360363007, -0.22978533804416656, 0.13506828248500824, -0.16725695133209229, -0.032533712685108185, -0.13844475150108337, -0.09183775633573532, -0.310410737991333, -0.019423892721533775, -0.009829354472458363, 0.12131262570619583, 0.16993671655654907, 0.2625785768032074, 0.034845877438783646, -0.33292466402053833, 0.06705647706985474, 0.06070833280682564, 0.19770114123821259, -0.34149864315986633, 0.1506223827600479, 0.042754579335451126, 0.1671668142080307, 0.1254008561372757, 0.5256478190422058, 0.5326802730560303, 0.3818291127681732, -0.49764636158943176, 0.10001048445701599, 0.07873440533876419, -0.07441453635692596, 0.005149367731064558, 0.4151678681373596, 0.24170899391174316, 0.12784838676452637, 0.3802854120731354, 0.06875532120466232, -0.0718311071395874, 0.32950547337532043, 0.08493965119123459, -0.061801813542842865, -0.050110261887311935, 0.46062618494033813, -0.11140869557857513, 0.08408168703317642, -0.26166653633117676, 0.09434989839792252, -0.38215842843055725, -0.2704971134662628, 0.3131415545940399, -0.2778037190437317, 0.20219963788986206, 0.06264927238225937, 0.041865404695272446, -0.30129513144493103, 0.44370749592781067, 0.32396385073661804, -0.014916733838617802, -0.393187016248703, -0.045175135135650635, -0.6925989985466003, 0.1487029641866684, -0.17574752867221832, -0.11781816184520721, 0.053002603352069855, 0.388667494058609, -0.2979038655757904, 0.0005522047867998481, -0.062253840267658234, 0.5312163233757019, -0.13506628572940826, 0.1048276349902153, -0.11336548626422882, -0.2026955783367157, -0.15233278274536133, -0.17489492893218994, -0.11979558318853378, -0.2434457689523697, 0.040549229830503464, -0.3162584900856018, 0.04632948338985443, -0.15815317630767822, -0.07246089726686478, 0.008553344756364822, 0.6363350749015808, 0.030106768012046814, 0.32280299067497253, 0.6062829494476318, -0.15318606793880463, -0.047107063233852386, -0.1705654412508011, -0.3430221378803253, -0.27379798889160156, 0.09749996662139893, 0.3371982276439667, 0.40556949377059937, -0.30821681022644043, 0.30001547932624817, -0.27147847414016724, 0.29240474104881287, -0.10043912380933762, -0.1348370909690857, -0.2340816855430603, 0.03849804401397705, -0.17717182636260986, 0.07956236600875854, -0.1113492026925087, 0.19574126601219177, 0.10678473860025406, 0.26460951566696167, -0.29573169350624084, -0.19542063772678375, 0.680666983127594, -0.24252742528915405, -0.1901586949825287, 0.002095592673867941, 0.13622835278511047, 0.15337277948856354, -0.03697754442691803, -0.39615046977996826, 0.023958802223205566, 0.380426824092865, -0.054275888949632645, -0.03326606750488281, 0.10674916952848434, -0.03008202463388443, -0.20039868354797363, -0.06963502615690231, -0.23875007033348083, 0.3049541413784027, -0.2876027524471283, 0.11369845271110535, -0.10271995514631271 ]
https://github.com/huggingface/datasets/issues/252
NonMatchingSplitsSizesError error when reading the IMDB dataset
Hi ! The cache is at ~/.cache/huggingface You can just delete this folder if needed :)
Hi! I am trying to load the `imdb` dataset with this line: `dataset = nlp.load_dataset('imdb', data_dir='/A/PATH', cache_dir='/A/PATH')` but I am getting the following error: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/load.py", line 517, in load_dataset save_infos=save_infos, File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 363, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 421, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=5929447, num_examples=4537, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}] ``` Am I overlooking something? Thanks!
16
NonMatchingSplitsSizesError error when reading the IMDB dataset Hi! I am trying to load the `imdb` dataset with this line: `dataset = nlp.load_dataset('imdb', data_dir='/A/PATH', cache_dir='/A/PATH')` but I am getting the following error: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/load.py", line 517, in load_dataset save_infos=save_infos, File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 363, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 421, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=5929447, num_examples=4537, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}] ``` Am I overlooking something? Thanks! Hi ! The cache is at ~/.cache/huggingface You can just delete this folder if needed :)
[ -0.5058616399765015, -0.1288101077079773, 0.018225111067295074, 0.3497682511806488, 0.14970475435256958, 0.20425544679164886, 0.04649150371551514, 0.4214465320110321, 0.23764587938785553, 0.0744064524769783, -0.1168227270245552, 0.1823248714208603, -0.261381059885025, -0.10192293673753738, -0.15735359489917755, 0.0979989767074585, -0.11061815917491913, 0.21006979048252106, 0.07444237917661667, 0.06530740112066269, -0.402810662984848, 0.2740866243839264, -0.38298800587654114, -0.07002145797014236, -0.39139324426651, -0.13322830200195312, 0.14591635763645172, 0.15154525637626648, 0.19135846197605133, -0.38426730036735535, 0.34816622734069824, 0.01094397995620966, 0.15339818596839905, 0.16258326172828674, -0.0001161558466264978, 0.010485749691724777, 0.6431309580802917, -0.28725242614746094, -0.27715983986854553, -0.27866682410240173, -0.2890475392341614, -0.2956995964050293, 0.29983821511268616, -0.35568055510520935, -0.09214339405298233, -0.006996212527155876, 0.33322760462760925, -0.46664923429489136, 0.10930389910936356, 0.1632334440946579, 0.1778460443019867, 0.14517506957054138, -0.11867295950651169, 0.19795149564743042, 0.022769149392843246, -0.11543525010347366, -0.10673889517784119, 0.07675022631883621, -0.024576375260949135, -0.07225549966096878, -0.11632949858903885, 0.23091109097003937, -0.4465891718864441, 0.16891376674175262, 0.3901180326938629, 0.17549777030944824, 0.33320412039756775, -0.27650120854377747, 0.07517445832490921, 0.20439738035202026, 0.5286697745323181, -0.17592297494411469, -0.2950548827648163, -0.39494141936302185, 0.028566282242536545, -0.2426874041557312, 0.16411557793617249, 0.3492821753025055, -0.2348974645137787, -0.0012557728914543986, -0.3458952009677887, 0.024299217388033867, -0.22278302907943726, 0.16897355020046234, 0.3957202732563019, 0.10430499911308289, 0.11116804927587509, 0.07972873747348785, 0.28578248620033264, -0.058101121336221695, 0.4545832872390747, -0.08506258577108383, 0.14595727622509003, 0.14440418779850006, -0.27104470133781433, -0.0759878009557724, -0.21710656583309174, 0.27463483810424805, 0.008275623433291912, 0.3213573694229126, 0.19679686427116394, 0.05168146640062332, 0.14360149204730988, 0.31098121404647827, 0.2449316680431366, 0.017076797783374786, 0.14312852919101715, 0.3343559503555298, 0.049804769456386566, 0.15742115676403046, -0.12611398100852966, -0.03626961633563042, 0.08530562371015549, -0.0314570851624012, 0.08145171403884888, 0.15716557204723358, 0.26868584752082825, -0.2099476009607315, -0.5460671186447144, -0.0010154539486393332, -0.2332894504070282, -0.16518905758857727, 0.09599056094884872, 0.2754747271537781, -0.15367913246154785, 0.331939697265625, 0.042252544313669205, 0.1424368917942047, -0.34922054409980774, -0.12168277055025101, -0.23689863085746765, 0.17275017499923706, -0.20333023369312286, 0.07712958008050919, 0.31587910652160645, 0.10439889878034592, 0.4351961016654968, -0.198621928691864, -0.11535385996103287, -0.04209071025252342, 0.42123425006866455, -0.1903638243675232, -0.07459454238414764, 0.22260966897010803, 0.19707724452018738, 0.16234682500362396, 0.08705969154834747, -0.05072983726859093, -0.3188583254814148, 0.18133103847503662, 0.002808335702866316, -0.3774324059486389, 0.015083192847669125, 0.17903633415699005, -0.1909027397632599, -0.08627460151910782, -0.03475445881485939, 0.11344066262245178, 0.13027030229568481, -0.4634087085723877, -0.205453559756279, -0.10737556219100952, -0.2702176570892334, -0.12326668947935104, -0.01652156002819538, 0.5770247578620911, 0.033828794956207275, -0.063733771443367, -0.14413303136825562, 0.008088381960988045, 0.5104398727416992, 0.38604608178138733, -0.05088452622294426, -0.16705173254013062, -0.3651433289051056, 0.3389674425125122, 0.22719749808311462, -0.4194651246070862, -0.4263269305229187, 0.48374345898628235, 0.006436939351260662, 0.2578955590724945, 0.3255821466445923, 0.40542805194854736, 0.12047901004552841, -0.03258955478668213, 0.05214174464344978, 0.42401862144470215, -0.13176894187927246, -0.014283784665167332, -0.28745949268341064, -0.29504409432411194, 0.6005900502204895, 0.14942362904548645, 0.06876452267169952, -0.04363645985722542, 0.018751291558146477, 0.46655943989753723, 0.3268424868583679, -0.001648068311624229, -0.01088875811547041, 0.16495643556118011, -0.24784395098686218, 0.32264626026153564, -0.17363016307353973, -0.17615899443626404, -0.5091280341148376, 0.07417920231819153, -0.11290912330150604, 0.09082947671413422, -0.17630425095558167, -0.17812640964984894, -0.08824408799409866, -0.3431605398654938, -0.23587754368782043, 0.002842373913154006, 0.10642411559820175, 0.25046101212501526, -0.06043991446495056, 0.13977445662021637, -0.1747397780418396, 0.548671543598175, 0.002362775383517146, 0.08294223994016647, -0.8483412265777588, 0.32391422986984253, -0.17331139743328094, -0.26761531829833984, 0.3004832863807678, 0.29649409651756287, 0.28260380029678345, -0.15306714177131653, -0.11416502296924591, 0.38941842317581177, 0.09103495627641678, 0.317404568195343, -0.16694782674312592, -0.03195281699299812, 0.29273292422294617, -0.3631340563297272, 0.14231836795806885, 0.27244964241981506, 0.1341879516839981, -0.11098460853099823, -0.03921457752585411, 0.28990086913108826, -0.330035537481308, 0.2139117568731308, 0.07908973842859268, 0.06293438374996185, 0.16034449636936188, -0.14501699805259705, -0.07456985116004944, -0.43258628249168396, 0.45346593856811523, 0.1690416783094406, -0.07186102122068405, 0.062217723578214645, -0.3637712895870209, -0.12391866743564606, 0.45984646677970886, 0.1139732375741005, 0.016815777868032455, 0.04694452881813049, -0.05134917050600052, -0.166758731007576, 0.15039056539535522, 0.19136744737625122, 0.2858825623989105, 0.3570713400840759, -0.11386340111494064, 0.0858263298869133, -0.0941612645983696, -0.18244107067584991, 0.1085900217294693, 0.15418559312820435, 0.26791179180145264, 0.33022332191467285, -0.116761714220047, -0.056368011981248856, -0.40070217847824097, -0.24563711881637573, 0.016141671687364578, 0.3377130925655365, -0.2668759524822235, -0.15787909924983978, -0.4097845256328583, -0.4801175594329834, -0.05684191361069679, -0.08438938856124878, -0.1401238888502121, -0.4054647386074066, -0.11674658209085464, 0.5066673755645752, 0.0902772843837738, 0.2009696364402771, -0.38603317737579346, -0.05657322332262993, -0.03842679783701897, -0.14503370225429535, -0.15850797295570374, -0.3335529863834381, -0.07117226719856262, -0.045794982463121414, 0.39115792512893677, 0.22970359027385712, 0.3629732131958008, -0.41761067509651184, -0.09488023072481155, 0.06533678621053696, 0.054071247577667236, -0.15775427222251892, -0.08008982241153717, 0.07565739750862122, 0.06884484738111496, 0.07905049622058868, 0.1566690355539322, -0.3845469355583191, 0.28425586223602295, -0.27417129278182983, -0.07604861259460449, 0.19505184888839722, 0.1936429888010025, 0.041928309947252274, 0.035389967262744904, -0.36085060238838196, -0.38797008991241455, -0.43971380591392517, 0.019114693626761436, 0.2849375307559967, 0.10200906544923782, 0.1651659607887268, -0.008908321149647236, 0.022369462996721268, 0.054622940719127655, 0.17856954038143158, -0.12420801818370819, 0.02524101734161377, 0.3226627707481384, -0.029078612104058266, -0.11723741888999939, 0.056346070021390915, 0.05499795451760292, 0.1520998179912567, -0.022355379536747932, -0.43820732831954956, -0.1349187046289444, -0.14882047474384308, 0.1116718128323555, -0.09015222638845444, -0.201187402009964, 0.3662033975124359, 0.13442069292068481, -0.022054782137274742, -0.02816506288945675, -0.2943354845046997, 0.01675725355744362, 0.0694209560751915, 0.283718466758728, -0.014131980016827583, 0.5791605710983276, -0.06438598781824112, 0.3804611265659332, 0.4987342357635498, 0.04556409642100334, 0.2685539424419403, -0.19427166879177094, 0.23928701877593994, -0.07486831396818161, -0.39638257026672363, 0.04300623759627342, -0.06591222435235977, -0.09030992537736893, 0.10268939286470413, -0.20373643934726715, -0.28341078758239746, -0.24746552109718323, -0.3123927712440491, -0.4928133487701416, -0.2052924931049347, -0.04197799786925316, -0.3690473735332489, 0.06717164814472198, 0.11420819163322449, 0.1570945829153061, -0.1367003172636032, -0.47861382365226746, -0.002998929237946868, 0.17202319204807281, 0.2018541842699051, 0.04542712867259979, 0.0023711961694061756, 0.11249231547117233, -0.4285702109336853, 0.41041404008865356, 0.08919265121221542, 0.48090678453445435, -0.12759506702423096, 0.00041402914212085307, 0.10623769462108612, -0.03964879363775253, 0.521578848361969, -0.34768185019493103, 0.11479339003562927, 0.07725685089826584, -0.11838517338037491, -0.6588269472122192, 0.08736657351255417, -0.13857804238796234, 0.3216617703437805, 0.47805148363113403, 0.3114853501319885, -0.23110347986221313, -0.1851462423801422, 0.19537845253944397, 0.1498497724533081, -0.12070520222187042, -0.23557491600513458, -0.20585396885871887, -0.1715177744626999, -0.4106167256832123, -0.17136694490909576, -0.04747958108782768, 0.2916363775730133, 0.1333785057067871, -0.06958014518022537, 0.05028017982840538, -0.1940114051103592, 0.31459981203079224, 0.060562435537576675, 0.2779490649700165, 0.1074613630771637, 0.25392916798591614, 0.30600908398628235, 0.31583908200263977, 0.11119208484888077, 0.4503251612186432, -0.014343964867293835, 0.046165868639945984, -0.07414518296718597, -0.10895156115293503, 0.11592880636453629, 0.1714697927236557, 0.08840833604335785, -0.13649997115135193, -0.0308317132294178, -0.06223529577255249, -0.17010736465454102, -0.10185092687606812, 0.3103112280368805, -0.07304850220680237, -0.18008358776569366, -0.5892114043235779, 0.4753004312515259, 0.22448883950710297, 0.06447375565767288, -0.052106134593486786, 0.05236837640404701, -0.24500291049480438, 0.44381001591682434, 0.1461973488330841, 0.7782350182533264, 0.23157070577144623, 0.10153310745954514, 0.02332923375070095, 0.017487188801169395, 0.553023636341095, -0.09263043105602264, 0.4083081781864166, -0.48353850841522217, -0.1268623322248459, -0.06918483227491379, -0.14241954684257507, 0.028257429599761963, -0.003495566314086318, -0.26026448607444763, 0.48728564381599426, -0.12779325246810913, -0.39517825841903687, -0.2352571189403534, 0.4670632481575012, -0.37402719259262085, -0.06870004534721375, -0.052218616008758545, 0.11086677014827728, -0.23586757481098175, 0.2975418269634247, 0.09007991850376129, -0.1718616485595703, -0.047992777079343796, -0.060389962047338486, -0.3981962203979492, 0.2106192708015442, -0.21927325427532196, 0.29227378964424133, -0.23186129331588745, -0.15821436047554016, -0.04134315624833107, 0.15401889383792877, 0.11756882071495056, -0.2576337456703186, -0.24675698578357697, -0.17269714176654816, -0.02431868575513363, -0.24386633932590485, 0.031645987182855606, 0.1261454075574875, 0.39649415016174316, -0.1396341323852539, -0.11366183310747147, 0.019617877900600433, 0.07920041680335999, -0.23061761260032654, 0.2163144052028656, -0.19969171285629272, 0.02471020072698593, -0.16470012068748474, -0.5514364838600159, -0.029141496866941452, -0.17712709307670593, -0.1453780233860016, 0.09008888900279999, -0.0960811898112297, -0.18411648273468018, 0.07291419059038162, 0.06232545152306557, -0.28905442357063293, -0.06277137249708176, 0.5095922350883484, 0.18227484822273254, 0.10066662728786469, 0.4814754128456116, 0.008604343049228191, -0.2807365953922272, -0.2713317275047302, 0.104477159678936, -0.13354776799678802, -0.44085076451301575, 0.13959437608718872, -0.01308349147439003, 0.29149654507637024, 0.23849040269851685, 0.07681286334991455, 0.29629334807395935, 0.11486321687698364, -0.07309317588806152, -0.46914005279541016, -0.28071027994155884, 0.15273475646972656, -0.20835305750370026, 0.3305927813053131, -0.11062011122703552, 0.24013124406337738, 0.03889162093400955, 0.07922060787677765, -0.26346251368522644, -0.019083060324192047, -0.31927162408828735, 0.1041334792971611, 0.25879791378974915, -0.22273336350917816, 0.06520644575357437, 0.1140521690249443, 0.11876468360424042, 0.08913258463144302, -0.10066398233175278, -0.13672931492328644, -0.04415416717529297, 0.14903734624385834, 0.06984230130910873, -0.24569518864154816, -0.30870315432548523, -0.11426934599876404, -0.18540294468402863, -0.11465051025152206, -0.3026449680328369, 0.29234766960144043, -0.09454772621393204, 0.5159422755241394, -0.025602014735341072, -0.1894531399011612, -0.014908524230122566, 0.2085004299879074, -0.3110043406486511, 0.33278459310531616, -0.16510772705078125, 0.19613121449947357, 0.07027766853570938, 0.09524765610694885, -0.031940389424562454, -0.078532375395298, -0.057397469878196716, 0.017867719754576683, 0.27452152967453003, -0.28783291578292847, 0.033060699701309204, 0.23505298793315887, 0.17434200644493103, 0.49635034799575806, -0.04236540198326111, -0.2141539454460144, 0.006215892732143402, 0.16510792076587677, -0.44465285539627075, 0.11293760687112808, 0.5683697462081909, 0.02821921743452549, -0.017523083835840225, 0.2885957658290863, 0.201692134141922, -0.02698521874845028, -0.07953723520040512, 0.04915417358279228, 0.5171206593513489, -0.30170607566833496, 0.13687583804130554, 0.14697064459323883, 0.04299724102020264, -0.12275175005197525, 0.16442354023456573, 0.21189793944358826, 0.34364551305770874, 0.5141329765319824, -0.19191065430641174, 0.30205366015434265, -0.2119121104478836, 0.19079844653606415, -0.304691344499588, -0.3163408637046814, -0.11834968626499176, 0.2924261689186096, 0.015543775632977486, 0.18330946564674377, -0.0010104592656716704, 0.21477220952510834, -0.20411387085914612, 0.12571482360363007, -0.22978533804416656, 0.13506828248500824, -0.16725695133209229, -0.032533712685108185, -0.13844475150108337, -0.09183775633573532, -0.310410737991333, -0.019423892721533775, -0.009829354472458363, 0.12131262570619583, 0.16993671655654907, 0.2625785768032074, 0.034845877438783646, -0.33292466402053833, 0.06705647706985474, 0.06070833280682564, 0.19770114123821259, -0.34149864315986633, 0.1506223827600479, 0.042754579335451126, 0.1671668142080307, 0.1254008561372757, 0.5256478190422058, 0.5326802730560303, 0.3818291127681732, -0.49764636158943176, 0.10001048445701599, 0.07873440533876419, -0.07441453635692596, 0.005149367731064558, 0.4151678681373596, 0.24170899391174316, 0.12784838676452637, 0.3802854120731354, 0.06875532120466232, -0.0718311071395874, 0.32950547337532043, 0.08493965119123459, -0.061801813542842865, -0.050110261887311935, 0.46062618494033813, -0.11140869557857513, 0.08408168703317642, -0.26166653633117676, 0.09434989839792252, -0.38215842843055725, -0.2704971134662628, 0.3131415545940399, -0.2778037190437317, 0.20219963788986206, 0.06264927238225937, 0.041865404695272446, -0.30129513144493103, 0.44370749592781067, 0.32396385073661804, -0.014916733838617802, -0.393187016248703, -0.045175135135650635, -0.6925989985466003, 0.1487029641866684, -0.17574752867221832, -0.11781816184520721, 0.053002603352069855, 0.388667494058609, -0.2979038655757904, 0.0005522047867998481, -0.062253840267658234, 0.5312163233757019, -0.13506628572940826, 0.1048276349902153, -0.11336548626422882, -0.2026955783367157, -0.15233278274536133, -0.17489492893218994, -0.11979558318853378, -0.2434457689523697, 0.040549229830503464, -0.3162584900856018, 0.04632948338985443, -0.15815317630767822, -0.07246089726686478, 0.008553344756364822, 0.6363350749015808, 0.030106768012046814, 0.32280299067497253, 0.6062829494476318, -0.15318606793880463, -0.047107063233852386, -0.1705654412508011, -0.3430221378803253, -0.27379798889160156, 0.09749996662139893, 0.3371982276439667, 0.40556949377059937, -0.30821681022644043, 0.30001547932624817, -0.27147847414016724, 0.29240474104881287, -0.10043912380933762, -0.1348370909690857, -0.2340816855430603, 0.03849804401397705, -0.17717182636260986, 0.07956236600875854, -0.1113492026925087, 0.19574126601219177, 0.10678473860025406, 0.26460951566696167, -0.29573169350624084, -0.19542063772678375, 0.680666983127594, -0.24252742528915405, -0.1901586949825287, 0.002095592673867941, 0.13622835278511047, 0.15337277948856354, -0.03697754442691803, -0.39615046977996826, 0.023958802223205566, 0.380426824092865, -0.054275888949632645, -0.03326606750488281, 0.10674916952848434, -0.03008202463388443, -0.20039868354797363, -0.06963502615690231, -0.23875007033348083, 0.3049541413784027, -0.2876027524471283, 0.11369845271110535, -0.10271995514631271 ]
https://github.com/huggingface/datasets/issues/249
[Dataset created] some critical small issues when I was creating a dataset
Alright I think I fixed all the problems you mentioned. Thanks again, that will be useful for many people. There is still more work needed for point 7. but we plan to have some nice docs soon.
Hi, I successfully created a dataset and has made a pr #248. But I have encountered several problems when I was creating it, and those should be easy to fix. 1. Not found dataset_info.json should be fixed by #241 , eager to wait it be merged. 2. Forced to install `apach_beam` If we should install it, then it might be better to include it in the pakcage dependency or specified in `CONTRIBUTING.md` ``` Traceback (most recent call last): File "nlp-cli", line 10, in <module> from nlp.commands.run_beam import RunBeamCommand File "/home/yisiang/nlp/src/nlp/commands/run_beam.py", line 6, in <module> import apache_beam as beam ModuleNotFoundError: No module named 'apache_beam' ``` 3. `cached_dir` is `None` ``` File "/home/yisiang/nlp/src/nlp/datasets/bookscorpus/aea0bd5142d26df645a8fce23d6110bb95ecb81772bb2a1f29012e329191962c/bookscorpus.py", line 88, in _split_generators downloaded_path_or_paths = dl_manager.download_custom(_GDRIVE_FILE_ID, download_file_from_google_drive) File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 128, in download_custom downloaded_path_or_paths = map_nested(url_to_downloaded_path, url_or_urls) File "/home/yisiang/nlp/src/nlp/utils/py_utils.py", line 172, in map_nested return function(data_struct) File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 126, in url_to_downloaded_path return os.path.join(self._download_config.cache_dir, hash_url_to_filename(url)) File "/home/yisiang/miniconda3/envs/nlppr/lib/python3.7/posixpath.py", line 80, in join a = os.fspath(a) ``` This is because this line https://github.com/huggingface/nlp/blob/2e0a8639a79b1abc848cff5c669094d40bba0f63/src/nlp/commands/test.py#L30-L32 And I add `--cache_dir="...."` to `python nlp-cli test datasets/<your-dataset-folder> --save_infos --all_configs` in the doc, finally I could pass this error. But it seems to ignore my arg and use `/home/yisiang/.cache/huggingface/datasets/bookscorpus/plain_text/1.0.0` as cahe_dir 4. There is no `pytest` So maybe in the doc we should specify a step to install pytest 5. Not enough capacity in my `/tmp` When run test for dummy data, I don't know why it ask me for 5.6g to download something, ``` def download_and_prepare ... if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root): raise IOError( "Not enough disk space. Needed: {} (download: {}, generated: {})".format( utils.size_str(self.info.size_in_bytes or 0), utils.size_str(self.info.download_size or 0), > utils.size_str(self.info.dataset_size or 0), ) ) E OSError: Not enough disk space. Needed: 5.62 GiB (download: 1.10 GiB, generated: 4.52 GiB) ``` I add a `processed_temp_dir="some/dir"; raw_temp_dir="another/dir"` to 71, and the test passed https://github.com/huggingface/nlp/blob/a67a6c422dece904b65d18af65f0e024e839dbe8/tests/test_dataset_common.py#L70-L72 I suggest we can create tmp dir under the `/home/user/tmp` but not `/tmp`, because take our lab server for example, everyone use `/tmp` thus it has not much capacity. Or at least we can improve error message, so the user know is what directory has no space and how many has it lefted. Or we could do both. 6. name of datasets I was surprised by the dataset name `books_corpus`, and didn't know it is from `class BooksCorpus(nlp.GeneratorBasedBuilder)` . I change it to `Bookscorpus` afterwards. I think this point shold be also on the doc. 7. More thorough doc to how to create `dataset.py` I believe there will be. **Feel free to close this issue** if you think these are solved.
37
[Dataset created] some critical small issues when I was creating a dataset Hi, I successfully created a dataset and has made a pr #248. But I have encountered several problems when I was creating it, and those should be easy to fix. 1. Not found dataset_info.json should be fixed by #241 , eager to wait it be merged. 2. Forced to install `apach_beam` If we should install it, then it might be better to include it in the pakcage dependency or specified in `CONTRIBUTING.md` ``` Traceback (most recent call last): File "nlp-cli", line 10, in <module> from nlp.commands.run_beam import RunBeamCommand File "/home/yisiang/nlp/src/nlp/commands/run_beam.py", line 6, in <module> import apache_beam as beam ModuleNotFoundError: No module named 'apache_beam' ``` 3. `cached_dir` is `None` ``` File "/home/yisiang/nlp/src/nlp/datasets/bookscorpus/aea0bd5142d26df645a8fce23d6110bb95ecb81772bb2a1f29012e329191962c/bookscorpus.py", line 88, in _split_generators downloaded_path_or_paths = dl_manager.download_custom(_GDRIVE_FILE_ID, download_file_from_google_drive) File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 128, in download_custom downloaded_path_or_paths = map_nested(url_to_downloaded_path, url_or_urls) File "/home/yisiang/nlp/src/nlp/utils/py_utils.py", line 172, in map_nested return function(data_struct) File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 126, in url_to_downloaded_path return os.path.join(self._download_config.cache_dir, hash_url_to_filename(url)) File "/home/yisiang/miniconda3/envs/nlppr/lib/python3.7/posixpath.py", line 80, in join a = os.fspath(a) ``` This is because this line https://github.com/huggingface/nlp/blob/2e0a8639a79b1abc848cff5c669094d40bba0f63/src/nlp/commands/test.py#L30-L32 And I add `--cache_dir="...."` to `python nlp-cli test datasets/<your-dataset-folder> --save_infos --all_configs` in the doc, finally I could pass this error. But it seems to ignore my arg and use `/home/yisiang/.cache/huggingface/datasets/bookscorpus/plain_text/1.0.0` as cahe_dir 4. There is no `pytest` So maybe in the doc we should specify a step to install pytest 5. Not enough capacity in my `/tmp` When run test for dummy data, I don't know why it ask me for 5.6g to download something, ``` def download_and_prepare ... if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root): raise IOError( "Not enough disk space. Needed: {} (download: {}, generated: {})".format( utils.size_str(self.info.size_in_bytes or 0), utils.size_str(self.info.download_size or 0), > utils.size_str(self.info.dataset_size or 0), ) ) E OSError: Not enough disk space. Needed: 5.62 GiB (download: 1.10 GiB, generated: 4.52 GiB) ``` I add a `processed_temp_dir="some/dir"; raw_temp_dir="another/dir"` to 71, and the test passed https://github.com/huggingface/nlp/blob/a67a6c422dece904b65d18af65f0e024e839dbe8/tests/test_dataset_common.py#L70-L72 I suggest we can create tmp dir under the `/home/user/tmp` but not `/tmp`, because take our lab server for example, everyone use `/tmp` thus it has not much capacity. Or at least we can improve error message, so the user know is what directory has no space and how many has it lefted. Or we could do both. 6. name of datasets I was surprised by the dataset name `books_corpus`, and didn't know it is from `class BooksCorpus(nlp.GeneratorBasedBuilder)` . I change it to `Bookscorpus` afterwards. I think this point shold be also on the doc. 7. More thorough doc to how to create `dataset.py` I believe there will be. **Feel free to close this issue** if you think these are solved. Alright I think I fixed all the problems you mentioned. Thanks again, that will be useful for many people. There is still more work needed for point 7. but we plan to have some nice docs soon.
[ -0.216579869389534, -0.016485409811139107, -0.12069719284772873, 0.35101234912872314, 0.2939456105232239, -0.02385486289858818, 0.08669041842222214, 0.4066433310508728, -0.19985412061214447, 0.021646756678819656, 0.22105170786380768, 0.20121292769908905, -0.23070664703845978, -0.008300978690385818, 0.11137528717517853, -0.199880450963974, 0.25772592425346375, 0.3090713620185852, 0.21963386237621307, -0.19520649313926697, -0.44480910897254944, 0.16689853370189667, -0.02027367241680622, 0.07947730273008347, -0.18549804389476776, -0.3484351336956024, 0.001261199708096683, 0.3041495084762573, -0.2766919434070587, -0.3347339332103729, 0.04290742799639702, -0.02169680781662464, 0.06142600625753403, 0.17914879322052002, -0.00011480376997496933, -0.16648922860622406, 0.38164010643959045, -0.12867435812950134, -0.4447019696235657, -0.0524820052087307, -0.2777293622493744, -0.5376022458076477, 0.11462383717298508, -0.3695812225341797, 0.11700721830129623, -0.47661030292510986, -0.20998266339302063, -0.22514022886753082, 0.5323173999786377, 0.35922887921333313, 0.23350408673286438, 0.26303595304489136, 0.23065505921840668, -0.0752435103058815, 0.34096571803092957, 0.0986783429980278, -0.2740066945552826, -0.09093184024095535, 0.08401606976985931, 0.1914566457271576, 0.07316940277814865, 0.13206002116203308, 0.14267311990261078, -0.11036156862974167, 0.41378122568130493, -0.164157435297966, -0.028322352096438408, -0.5333048701286316, -0.0329069122672081, -0.04506091773509979, 0.4773080348968506, -0.3531981110572815, -0.3011015057563782, -0.3424129784107208, 0.16124269366264343, -0.13955777883529663, 0.2388930767774582, 0.43220028281211853, -0.15446145832538605, -0.11362621933221817, -0.1933753788471222, -0.1405058354139328, -0.2878139019012451, 0.18132226169109344, 0.4124363958835602, 0.08534816652536392, 0.1599861979484558, 0.05045848712325096, -0.002754696412011981, -0.1099821925163269, 0.1672932654619217, -0.3342152237892151, -0.07499457895755768, 0.35522645711898804, -0.19915087521076202, -0.1965244710445404, -0.044368743896484375, 0.03137348219752312, 0.0599539652466774, 0.23172351717948914, -0.24609240889549255, 0.004456744994968176, -0.01184648647904396, 0.001915222266688943, 0.1471184492111206, 0.19135093688964844, 0.1334291249513626, 0.06528230756521225, 0.1037486344575882, -0.03922344744205475, 0.2899760901927948, 0.05084585025906563, -0.002380877500399947, 0.04067052900791168, -0.18650619685649872, 0.05195734277367592, -0.004037020727992058, -0.06701979041099548, -0.023956086486577988, 0.1387752890586853, -0.37346649169921875, -0.25004997849464417, 0.04233359545469284, 0.21878688037395477, 0.13104094564914703, 0.20032693445682526, -0.06771613657474518, 0.2659159004688263, -0.2425880879163742, -0.22122003138065338, -0.08900857716798782, 0.17859014868736267, -0.3464142680168152, -0.008723665960133076, 0.40412378311157227, 0.3678690195083618, 0.32855063676834106, -0.0558726042509079, -0.15685832500457764, 0.08042939752340317, 0.3698013126850128, -0.17256377637386322, -0.16495226323604584, 0.3664531111717224, 0.11630884557962418, 0.3178187906742096, -0.22829397022724152, -0.006545159500092268, -0.18321602046489716, 0.07335597276687622, 0.0013035497395321727, -0.24342812597751617, -0.0742867961525917, 0.22571887075901031, -0.37861526012420654, 0.35599613189697266, 0.009503649547696114, 0.08509113639593124, 0.1143023818731308, -0.26160573959350586, -0.10594737529754639, 0.0004169026215095073, -0.04018562659621239, -0.3765692412853241, 0.22220897674560547, 0.3557880222797394, -0.2729787230491638, -0.1173568069934845, -0.23923712968826294, -0.43224430084228516, -0.172145277261734, 0.014352675527334213, -0.10997042059898376, 0.4447324275970459, -0.18863239884376526, 0.059048786759376526, 0.5762625932693481, -0.17363224923610687, -0.38625049591064453, -0.0011028514709323645, 0.03781641274690628, -0.16118906438350677, 0.1443193554878235, 0.09668301790952682, 0.03971127048134804, -0.28142449259757996, -0.3508948087692261, 0.3981652557849884, -0.060834962874650955, 0.08639714121818542, -0.320701539516449, -0.0957881286740303, 0.17196297645568848, 0.2355937957763672, -0.009894969873130322, 0.0999973937869072, 0.24887871742248535, 0.23561352491378784, -0.018362337723374367, -0.14808054268360138, 0.2485680878162384, 0.32265183329582214, 0.3735434412956238, -0.3224754333496094, 0.08438040316104889, 0.0609976202249527, -0.49091821908950806, 0.005899743176996708, -0.47451066970825195, 0.0989299863576889, -0.12335997819900513, 0.004431739915162325, -0.2629867196083069, -0.09008903056383133, -0.06471023708581924, -0.30865782499313354, 0.1512107253074646, -0.07899266481399536, 0.19190582633018494, -0.10692548006772995, -0.34201642870903015, 0.5311257839202881, -0.18937639892101288, 0.06884820014238358, -0.5045067071914673, 0.21865662932395935, -0.16548535227775574, -0.12189654260873795, 0.3162863254547119, 0.5913733839988708, 0.18593829870224, -0.12979756295681, -0.15710926055908203, 0.37614142894744873, -0.007289139088243246, 0.10021507740020752, 0.1314663589000702, 0.10882248729467392, 0.33483052253723145, -0.14765992760658264, 0.3715440630912781, -0.28931286931037903, 0.10898026823997498, -0.2142602652311325, -0.36198291182518005, 0.25757136940956116, -0.09456972032785416, 0.19034750759601593, 0.21095651388168335, -0.004095844924449921, 0.24786797165870667, -0.09052693098783493, 0.03912854194641113, -0.12223964184522629, 0.2752207815647125, 0.2415907084941864, 0.3407290577888489, 0.210595965385437, 0.19737166166305542, 0.2309558093547821, 0.29594865441322327, -0.0584612600505352, -0.15814699232578278, 0.208407461643219, -0.04778191074728966, -0.16693300008773804, 0.2196251004934311, 0.45658743381500244, 0.5612214207649231, 0.2158057987689972, -0.38151246309280396, 0.16130362451076508, 0.09729035943746567, -0.17909720540046692, 0.13018111884593964, 0.20571036636829376, 0.2672246992588043, 0.03889382630586624, 0.2177976816892624, 0.08330050110816956, 0.0917639210820198, -0.012623471207916737, 0.08953269571065903, 0.33890587091445923, -0.1725989133119583, -0.15635788440704346, -0.03191421926021576, -0.32606685161590576, -0.17016032338142395, 0.33115485310554504, -0.28172653913497925, -0.3784971535205841, -0.00040572555735707283, -0.16978925466537476, -0.02290709689259529, 0.29188141226768494, 0.21621614694595337, 0.2618057131767273, -0.18836480379104614, 0.09763753414154053, -0.37572938203811646, -0.3888495862483978, -0.17205309867858887, 0.11144445091485977, 0.12186592072248459, 0.32951563596725464, 0.5941362977027893, -0.015419630333781242, 0.1233995333313942, -0.16696855425834656, -0.10629884153604507, 0.07040104269981384, -0.043496452271938324, 0.19078534841537476, 0.007904171012341976, 0.20608122646808624, -0.051607709378004074, -0.2771473526954651, 0.1803608536720276, -0.08720988780260086, -0.26096194982528687, -0.01342436671257019, -0.14766721427440643, -0.07189003378152847, -0.06799023598432541, -0.5194204449653625, -0.42501407861709595, -0.21480891108512878, 0.13278551399707794, 0.31000614166259766, 0.18283985555171967, -0.08413472771644592, 0.14123013615608215, -0.018151797354221344, -0.001971314661204815, -0.06155136600136757, 0.006666306406259537, 0.019467325881123543, 0.20242629945278168, -0.2755374312400818, -0.46299949288368225, 0.01726132445037365, -0.23236005008220673, 0.14789938926696777, 0.15142305195331573, -0.35619449615478516, -0.08580365031957626, -0.10027853399515152, 0.20350360870361328, 0.04860646277666092, 0.27675536274909973, 0.32691192626953125, 0.141950324177742, 0.03590046241879463, -0.17444680631160736, -0.3353272080421448, 0.10888251662254333, -0.1908494532108307, 0.596819281578064, -0.0052996063604950905, 0.19314435124397278, -0.3918648660182953, 0.8372851014137268, 0.4679628908634186, -0.13227498531341553, 0.20199066400527954, 0.06455031037330627, 0.2530495822429657, -0.033325351774692535, -0.21555745601654053, 0.5519693493843079, 0.1865869015455246, 0.13398335874080658, -0.008695550262928009, 0.146512970328331, -0.20783661305904388, -0.288602352142334, 0.17195284366607666, -0.7883492112159729, -0.10101385414600372, -0.1152339056134224, -0.13208848237991333, 0.27299532294273376, 0.0884634405374527, -0.07578132301568985, -0.09280421584844589, -0.1519213616847992, 0.021183589473366737, 0.01901360973715782, 0.12560372054576874, -0.04084690287709236, -0.2778854966163635, -0.1165960282087326, -0.16610485315322876, 0.16098783910274506, -0.10690555721521378, 0.216668963432312, -0.08798559755086899, 0.005395243875682354, 0.07568132877349854, -0.012185990810394287, 0.650809109210968, -0.4458160400390625, -0.2502536475658417, 0.14289116859436035, 0.40555521845817566, -0.3814197778701782, 0.10120849311351776, -0.14556916058063507, 0.15856699645519257, 0.10666929930448532, 0.2751346528530121, -0.42586803436279297, -0.0385761596262455, 0.1401398777961731, 0.36978426575660706, -0.16054502129554749, -0.17719031870365143, -0.09752866625785828, -0.25221332907676697, -0.22503814101219177, -0.34249913692474365, -0.6088352203369141, 0.12312477827072144, 0.04200097918510437, 0.28458714485168457, 0.0299567561596632, -0.0380929559469223, 0.061632849276065826, 0.13067707419395447, 0.4030519723892212, -0.14724741876125336, 0.2574325501918793, 0.02969110757112503, 0.18816408514976501, 0.2162955105304718, 0.30453017354011536, -0.08672082424163818, -0.07208515703678131, 0.04615309461951256, -0.11099039018154144, 0.3767858147621155, 0.21774037182331085, -0.0714942067861557, -0.20432360470294952, -0.08840590715408325, 0.08222214132547379, 0.04220853000879288, 0.013413344509899616, 0.1663268804550171, -0.21519529819488525, -0.2809145152568817, -0.32561641931533813, 0.41027945280075073, 0.1630634069442749, -0.07944723218679428, 0.19980688393115997, -0.12936550378799438, -0.014904674142599106, 0.5705703496932983, 0.1807837039232254, 1.164191722869873, 0.016215451061725616, -0.14892993867397308, 0.3272436261177063, -0.3185846507549286, 0.7361058592796326, -0.9293339848518372, 0.0379289835691452, -0.42587488889694214, 0.21471361815929413, 0.12358251959085464, -0.22807568311691284, 0.21446140110492706, 0.08307517319917679, -0.1261206418275833, 0.18802931904792786, 0.1353079378604889, 0.10120967030525208, -0.1147562637925148, 0.6493273377418518, -0.039822403341531754, -0.45924147963523865, -0.5051490664482117, 0.10287654399871826, -0.28912460803985596, 0.07602404803037643, -0.19445477426052094, -0.1979292631149292, -0.33222222328186035, -0.20972836017608643, -0.18911528587341309, 0.14024776220321655, -0.12208166718482971, 0.10482945293188095, 0.0821540430188179, -0.5340116024017334, 0.11893948912620544, 0.1871010810136795, 0.44417524337768555, 0.06934010237455368, -0.2172706574201584, 0.35042035579681396, 0.03560394421219826, 0.012237152084708214, 0.1434166431427002, 0.15614402294158936, 0.19425012171268463, -0.22305652499198914, 0.018499823287129402, 0.1097247377038002, -0.316689670085907, 0.19069091975688934, -0.2579827606678009, -0.2314600944519043, 0.26561325788497925, -0.1680586189031601, -0.014196576550602913, 0.1864640861749649, -0.17958669364452362, -0.18645577132701874, 0.17892594635486603, 0.05223418027162552, 0.02307240478694439, 0.22072537243366241, -0.008088759146630764, -0.025474457070231438, -0.2591036558151245, 0.18501944839954376, 0.25512710213661194, -0.4933573305606842, 0.2920074760913849, 0.014366570860147476, -0.1413038820028305, -0.3368189036846161, 0.33931711316108704, -0.021714793518185616, -0.5498061180114746, -0.047110553830862045, 0.15496301651000977, -0.17323987185955048, -0.12250452488660812, -0.06462503224611282, 0.12887276709079742, 0.16557829082012177, 0.18283197283744812, -0.3124123215675354, -0.38147711753845215, 0.2685788869857788, -0.14783215522766113, 0.14925391972064972, -0.31258857250213623, -0.053350262343883514, 0.13076891005039215, 0.205939382314682, -0.30759644508361816, -0.2742980420589447, -0.08506645262241364, 0.11118793487548828, 0.0690172016620636, -0.0001544584520161152, -0.13109362125396729, -0.350312203168869, 0.10763844847679138, -0.10608960688114166, -0.33472785353660583, -0.17597870528697968, 0.028970105573534966, 0.15211085975170135, 0.0870242491364479, -0.1402987837791443, -0.13828925788402557, -0.08909913152456284, -0.02055271901190281, -0.1737527847290039, -0.0808134526014328, -0.2732885777950287, -0.0885641872882843, 0.017412593588232994, 0.16788984835147858, 0.11533807218074799, -0.23747749626636505, -0.026261748746037483, -0.08536603301763535, 0.2476075142621994, 0.08343122154474258, -0.1069345623254776, 0.12691012024879456, -0.02970149554312229, -0.2137429565191269, -0.11611025035381317, 0.009991337545216084, 0.16416864097118378, 0.18888723850250244, -0.17898930609226227, 0.032850977033376694, 0.06281176209449768, 0.33575132489204407, 0.22117879986763, -0.28550562262535095, -0.003906908445060253, 0.25878337025642395, 0.15996645390987396, -0.30511775612831116, 0.13550974428653717, 0.5688176155090332, 0.11621711403131485, -0.19264258444309235, 0.15132048726081848, 0.12911638617515564, -0.058676574379205704, -0.055620063096284866, 0.13727547228336334, 0.5175213813781738, -0.17220856249332428, 0.31152233481407166, 0.21806171536445618, 0.03187607601284981, 0.011281712912023067, 0.035240232944488525, 0.17268365621566772, 0.04700525477528572, 0.6041731238365173, -0.09633302688598633, 0.5378548502922058, 0.2766197919845581, 0.17158836126327515, -0.01795860007405281, -0.2979871332645416, 0.051623646169900894, 0.08350937813520432, 0.0514029785990715, -0.06470945477485657, 0.05569130927324295, 0.475015252828598, 0.05232807993888855, -0.2881976068019867, -0.19496771693229675, 0.08890983462333679, -0.09535141289234161, 0.4037157893180847, -0.1788720190525055, -0.21176669001579285, -0.09866847097873688, -0.17450663447380066, 0.017908712849020958, -0.19831900298595428, 0.3648061752319336, 0.18550416827201843, -0.12409503757953644, -0.17786236107349396, 0.4243934154510498, 0.07729339599609375, 0.22278620302677155, -0.028725765645503998, 0.24809947609901428, 0.014133909717202187, -0.09708830714225769, -0.14752773940563202, 0.29298603534698486, 0.3658086657524109, 0.4779541492462158, -0.18984168767929077, 0.06216181069612503, 0.23089957237243652, -0.08863291144371033, 0.07799800485372543, 0.4141314625740051, 0.39608317613601685, 0.171004980802536, 0.11786758899688721, 0.13629977405071259, -0.13131766021251678, -0.04076778516173363, 0.28025612235069275, 0.09614717215299606, -0.031660355627536774, 0.18777762353420258, -0.23657841980457306, -0.4242996573448181, -0.08513570576906204, -0.041472792625427246, -0.32122042775154114, -0.10037136822938919, 0.04865601286292076, 0.24688409268856049, 0.0312168151140213, -0.2885245680809021, 0.062097322195768356, -0.18069981038570404, 0.5545120239257812, 0.1599997729063034, 0.09341893345117569, -0.4730510115623474, -0.33955439925193787, -0.6459326148033142, -0.11856478452682495, -0.2552901804447174, 0.01876249723136425, -0.05525709688663483, 0.017051855102181435, 0.0001140405292971991, 0.29677730798721313, 0.11373899132013321, 0.5873932838439941, -0.045604605227708817, -0.03237335383892059, -0.5817580819129944, -0.05945846810936928, 0.0666518285870552, 0.03103424422442913, -0.16272646188735962, -0.050941914319992065, 0.11582431197166443, -0.0994463860988617, 0.020472940057516098, -0.03831375762820244, -0.38487136363983154, 0.3540809452533722, 0.2101806402206421, 0.36708828806877136, 0.23555544018745422, 0.346151739358902, -0.07352425158023834, -0.0712914988398552, -0.0996781438589096, -0.24405764043331146, 0.11772100627422333, 0.2783289849758148, 0.042776547372341156, 0.19066454470157623, -0.04081389680504799, 0.14757181704044342, -0.46160387992858887, -0.0035810591652989388, -0.15046721696853638, 0.2950775623321533, -0.19723396003246307, 0.07024382799863815, -0.05665699392557144, 0.21863366663455963, 0.15412087738513947, -0.11128978431224823, -0.11312884837388992, 0.2915027439594269, -0.403421014547348, -0.10973935574293137, 0.46483543515205383, -0.1177220568060875, -0.045741137117147446, 0.28799718618392944, 0.29584264755249023, -0.17531464993953705, -0.057157911360263824, -0.5936276912689209, -0.01580909825861454, 0.35344451665878296, -0.27116239070892334, -0.014872643165290356, 0.07990382611751556, -0.15441307425498962, -0.1725815385580063, 0.03434661030769348, 0.12759727239608765, -0.1552855670452118, -0.1353524625301361, 0.18120773136615753, 0.06277850270271301 ]
https://github.com/huggingface/datasets/issues/246
What is the best way to cache a dataset?
Everything is already cached by default in 🤗nlp (in particular dataset loading and all the “map()” operations) so I don’t think you need to do any specific caching in streamlit. Tell us if you feel like it’s not the case. On Sat, 6 Jun 2020 at 13:02, Fabrizio Milo <notifications@github.com> wrote: > For example if I want to use streamlit with a nlp dataset: > > @st.cache > def load_data(): > return nlp.load_dataset('squad') > > This code raises the error "uncachable object" > > Right now I just fixed with a constant for my specific case: > > @st.cache(hash_funcs={pyarrow.lib.Buffer: lambda b: 0}) > > But I was curious to know what is the best way in general > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/nlp/issues/246>, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABYDIHKAKO7CWGX2QY55UXLRVIO3ZANCNFSM4NV333RQ> > . >
For example if I want to use streamlit with a nlp dataset: ``` @st.cache def load_data(): return nlp.load_dataset('squad') ``` This code raises the error "uncachable object" Right now I just fixed with a constant for my specific case: ``` @st.cache(hash_funcs={pyarrow.lib.Buffer: lambda b: 0}) ``` But I was curious to know what is the best way in general
151
What is the best way to cache a dataset? For example if I want to use streamlit with a nlp dataset: ``` @st.cache def load_data(): return nlp.load_dataset('squad') ``` This code raises the error "uncachable object" Right now I just fixed with a constant for my specific case: ``` @st.cache(hash_funcs={pyarrow.lib.Buffer: lambda b: 0}) ``` But I was curious to know what is the best way in general Everything is already cached by default in 🤗nlp (in particular dataset loading and all the “map()” operations) so I don’t think you need to do any specific caching in streamlit. Tell us if you feel like it’s not the case. On Sat, 6 Jun 2020 at 13:02, Fabrizio Milo <notifications@github.com> wrote: > For example if I want to use streamlit with a nlp dataset: > > @st.cache > def load_data(): > return nlp.load_dataset('squad') > > This code raises the error "uncachable object" > > Right now I just fixed with a constant for my specific case: > > @st.cache(hash_funcs={pyarrow.lib.Buffer: lambda b: 0}) > > But I was curious to know what is the best way in general > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/nlp/issues/246>, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABYDIHKAKO7CWGX2QY55UXLRVIO3ZANCNFSM4NV333RQ> > . >
[ -0.07914257049560547, -0.0054430244490504265, 0.04336480423808098, 0.0309615395963192, 0.3594614863395691, -0.11144106090068817, -0.006647581700235605, 0.11713939905166626, 0.06864386051893234, 0.1308162659406662, 0.15775281190872192, 0.036762043833732605, -0.18263660371303558, 0.12470675259828568, 0.49156609177589417, -0.09635960310697556, 0.029152801260352135, 0.12171076983213425, -0.08228840678930283, 0.09331566840410233, -0.11592119932174683, -0.2149103730916977, -0.06493309885263443, -0.1643325388431549, -0.29099589586257935, -0.12106440216302872, -0.12079577893018723, 0.0799470916390419, 0.03114836849272251, -0.2001820206642151, 0.3986591398715973, 0.1918174922466278, 0.13692869246006012, -0.013521354645490646, -0.00011791341239586473, -0.017908496782183647, 0.34973958134651184, -0.29587963223457336, -0.3403170108795166, -0.20648381114006042, -0.34787407517433167, -0.3250797986984253, 0.13562612235546112, -0.028909388929605484, -0.31640392541885376, -0.11959753930568695, 0.26265349984169006, -0.44090864062309265, 0.44504132866859436, 0.18553265929222107, 0.11022970080375671, -0.013128915801644325, 0.1342875361442566, 0.3962055444717407, 0.05256173387169838, -0.10166208446025848, -0.1999523937702179, -0.11106309294700623, 0.08364257961511612, 0.008216499350965023, 0.046317096799612045, 0.24449071288108826, -0.10638490319252014, -0.031243475154042244, 0.6360675692558289, -0.05064326152205467, -0.4649532437324524, -0.2141304314136505, -0.08441776037216187, 0.19572655856609344, 0.6592327356338501, -0.25751617550849915, -0.5362498760223389, -0.3742956817150116, 0.021673111245036125, -0.4770924746990204, 0.18693757057189941, 0.17482948303222656, -0.058969903737306595, 0.2702479362487793, -0.4797569513320923, -0.3037988245487213, 0.044082775712013245, 0.1916120946407318, 0.269320011138916, 0.025283316150307655, -0.020784063264727592, 0.16677942872047424, 0.016176998615264893, -0.1872115135192871, 0.17194552719593048, -0.0714351087808609, -0.12037180364131927, 0.21916614472866058, -0.30668333172798157, 0.11906765401363373, 0.015552554279565811, 0.2072259783744812, 0.12553352117538452, 0.14930792152881622, 0.5070606470108032, 0.23521234095096588, 0.12814642488956451, 0.07647783309221268, -0.018727870658040047, 0.4619317352771759, 0.007862512953579426, -0.06266289949417114, 0.10224597901105881, -0.1494990885257721, -0.22853350639343262, -0.17560482025146484, 0.17214423418045044, 0.23493637144565582, 0.2839818298816681, 0.1700589954853058, 0.08650252968072891, -0.38027137517929077, 0.1799585074186325, -0.108185775578022, -0.2296738475561142, -0.22144527733325958, 0.12307418137788773, 0.3695175349712372, -0.12524667382240295, 0.29581066966056824, -0.25602689385414124, 0.032161325216293335, -0.10353671759366989, -0.3668440282344818, -0.1925477385520935, 0.008249593898653984, -0.052177127450704575, 0.3953484296798706, 0.19421428442001343, -0.4876003563404083, 0.13449960947036743, -0.04389965906739235, -0.07593219727277756, -0.012757550925016403, 0.2849007546901703, -0.1794956922531128, 0.26178550720214844, 0.18588362634181976, -0.005322422832250595, 0.012310215272009373, -0.051455382257699966, -0.05015559494495392, -0.21501171588897705, 0.21341517567634583, -0.1483268439769745, -0.7214871048927307, 0.2737377882003784, 0.056557852774858475, -0.48415884375572205, -0.1595444232225418, -0.3712063729763031, 0.5935312509536743, 0.2733151316642761, -0.015645772218704224, 0.11794382333755493, 0.0013979569775983691, -0.18249300122261047, -0.3100678622722626, 0.2377762794494629, 0.29725638031959534, -0.002303157467395067, -0.13328653573989868, 0.16392089426517487, 0.08473500609397888, 0.2712295353412628, 0.22017529606819153, -0.3504530191421509, 0.07537146657705307, 0.06945102661848068, -0.17820532619953156, 0.6408798694610596, -0.1535962074995041, -0.5387375354766846, -0.01922032982110977, 0.2734832167625427, 0.24406906962394714, 0.10728701204061508, 0.3159652352333069, 0.015173465944826603, -0.060735899955034256, -0.06618310511112213, 0.41880130767822266, -0.16444113850593567, -0.01353828888386488, -0.31206321716308594, -0.4285169541835785, 0.556118369102478, 0.05918450653553009, 0.011229037307202816, 0.06355302780866623, 0.054188322275877, 0.5534825921058655, -0.1423947960138321, -0.1568029820919037, 0.05727556720376015, 0.42451608180999756, -0.07280971854925156, -0.1383218914270401, -0.07481366395950317, -0.19537679851055145, -0.7898908257484436, 0.14331896603107452, -0.10945464670658112, -0.09454251080751419, -0.06700069457292557, -0.23575687408447266, 0.44084662199020386, -0.15684477984905243, -0.02686932310461998, -0.125595822930336, -0.012604043819010258, 0.029776152223348618, 0.5305262804031372, -0.13196611404418945, -0.46642225980758667, 0.5715909004211426, 0.1120162233710289, 0.1440640538930893, -0.35608935356140137, -0.12068645656108856, 0.06727885454893112, -0.3497927188873291, 0.10397624224424362, 0.27000391483306885, 0.160133957862854, -0.1713486909866333, -0.16263262927532196, 0.19479124248027802, -0.2408106029033661, 0.3363528251647949, -0.12400452047586441, 0.3826127052307129, 0.08670029044151306, -0.1623906046152115, 0.04803888872265816, 0.11885951459407806, -0.03557313233613968, 0.05175061523914337, -0.006992705632001162, 0.24905923008918762, 0.07209394872188568, 0.0005585345206782222, 0.09506230056285858, -0.24667946994304657, 0.04464488849043846, -0.048199061304330826, -0.08359336107969284, 0.0030473251827061176, 0.48134830594062805, -0.19325125217437744, 0.4335249960422516, 0.38453543186187744, -0.2530936896800995, 0.3596148192882538, 0.6983610391616821, 0.0457335039973259, 0.21781940758228302, 0.14189480245113373, 0.08751464635133743, -0.5609426498413086, 0.25648319721221924, -0.19575978815555573, 0.11062666028738022, 0.17822539806365967, 0.3006594479084015, -0.0745081678032875, 0.03629329055547714, -0.10510215163230896, 0.17545968294143677, -0.10841306298971176, 0.025779366493225098, -0.2941848039627075, 0.3341447114944458, 0.035603851079940796, -0.08226396143436432, 0.157663032412529, 0.06330669671297073, 0.2589777708053589, -0.09235993772745132, -0.05681762844324112, -0.3436986207962036, -0.3930532932281494, 0.012711714021861553, -0.1565709412097931, -0.49624666571617126, -0.09806641191244125, -0.04862688481807709, 0.1884431093931198, 0.058371562510728836, 0.040181901305913925, -0.3619214594364166, 0.26493552327156067, -0.27499115467071533, -0.3841179311275482, -0.3828630745410919, -0.16505450010299683, -0.3346538543701172, -0.054599691182374954, 0.1334368735551834, -0.3610696494579315, 0.2618539333343506, 0.16983520984649658, 0.0411343015730381, -0.10506623983383179, -0.2228541076183319, -0.031131772324442863, 0.12556585669517517, 0.22018276154994965, -0.13704480230808258, 0.12044402211904526, -0.06604164093732834, -0.0860450491309166, 0.2279861867427826, -0.375220388174057, -0.10635227710008621, -0.049533650279045105, -0.047789935022592545, 0.2464320808649063, -0.07402742654085159, -0.17658604681491852, -0.4447842538356781, -0.2995258867740631, 0.21550914645195007, 0.024121278896927834, 0.019564189016819, 0.007149258628487587, -0.22228014469146729, -0.01653825119137764, 0.030845988541841507, 0.0575091615319252, -0.2335248589515686, -0.5710596442222595, 0.3007078170776367, 0.12042952328920364, -0.33066096901893616, -0.17249304056167603, -0.09107541292905807, -0.04977641999721527, 0.3589240610599518, -0.4684200882911682, -0.17630122601985931, -0.16308146715164185, 0.05981731042265892, 0.1335158497095108, -0.39325541257858276, 0.39179620146751404, -0.09550483524799347, 0.024695711210370064, 0.0015861762221902609, -0.3434220850467682, -0.030146775767207146, 0.06869450211524963, 0.46745336055755615, 0.31091511249542236, 0.1002320945262909, 0.36900120973587036, 0.6891121864318848, 0.13364529609680176, 0.02585604228079319, 0.43068715929985046, 0.26535794138908386, 0.30635571479797363, -0.14255136251449585, -0.2282550036907196, 0.3457769453525543, -0.1200142651796341, -0.028258908540010452, -0.03420831635594368, 0.2829245328903198, -0.1994737833738327, -0.27146443724632263, -0.019601590931415558, -0.2883557379245758, -0.18584312498569489, 0.29420310258865356, -0.3300021290779114, 0.15741802752017975, 0.31393179297447205, -0.017791680991649628, -0.159654438495636, -0.5740087628364563, -0.03127128630876541, 0.2470722794532776, 0.279008150100708, 0.4540111720561981, -0.540001630783081, -0.1497489959001541, -0.6193516254425049, 0.5108367800712585, 0.10881710052490234, 0.27136656641960144, -0.2866218686103821, 0.030233081430196762, 0.010311657562851906, -0.3334999978542328, 0.16138692200183868, -0.07279358804225922, -0.27898815274238586, -0.10651405155658722, -0.13539159297943115, -0.16624774038791656, 0.043187275528907776, 0.2015494853258133, 0.3970448970794678, 0.005510371178388596, 0.059056349098682404, -0.2887252867221832, -0.19801463186740875, -0.16783693432807922, 0.09473206102848053, -0.21602091193199158, 0.04998469352722168, -0.15663963556289673, -0.29465654492378235, -0.17534059286117554, 0.02662513218820095, -0.3478456735610962, 0.04475052282214165, 0.05743756145238876, 0.08069144189357758, -0.1845286786556244, 0.27399200201034546, 0.08410939574241638, -0.17476582527160645, 0.19753319025039673, 0.09909241646528244, 0.1353951394557953, 0.27456212043762207, 0.1315344125032425, -0.19071704149246216, 0.4376656413078308, 0.0030057220719754696, -0.11529786884784698, -0.27829509973526, 0.25515100359916687, 0.2479109913110733, 0.11653906106948853, -0.18419413268566132, 0.2385432869195938, 0.3922939896583557, -0.18522675335407257, -0.30709052085876465, 0.21622781455516815, -0.1751146912574768, 0.1118568405508995, -0.2902913987636566, -0.7748066782951355, 0.37106797099113464, 0.17726512253284454, -0.006860622204840183, 0.4467769265174866, -0.33811044692993164, -0.22206903994083405, 0.21099290251731873, 0.2604377567768097, 1.0849562883377075, -0.24216040968894958, 0.3112490177154541, -0.004806104581803083, 0.019626958295702934, 0.6438980102539062, -0.24340176582336426, 0.24111029505729675, -0.17574644088745117, -0.24397048354148865, -0.025497959926724434, -0.14190620183944702, 0.0019549557473510504, -0.0349227711558342, -0.08018314838409424, 0.5324954986572266, 0.3090101182460785, 0.09175087511539459, 0.04063194617629051, 0.22571058571338654, -0.12184755504131317, -0.2654397487640381, -0.6026579737663269, 0.13119591772556305, -0.5431949496269226, 0.1662697046995163, -0.08905278146266937, -0.02083134837448597, 0.19790150225162506, -0.20854808390140533, -0.10693572461605072, -0.009903859347105026, -0.5662983655929565, -0.022929130122065544, -0.027667945250868797, -0.339478075504303, -0.4411357641220093, 0.18826019763946533, 0.0372430793941021, -0.17790481448173523, -0.07329265028238297, 0.003506888635456562, -0.055898141115903854, 0.12711553275585175, 0.09731714427471161, 0.1275642216205597, 0.48727482557296753, -0.03711520507931709, 0.03527205064892769, 0.022714227437973022, -0.07152432203292847, -0.5310296416282654, -0.07684417068958282, -0.14203323423862457, 0.08754997700452805, 0.055352408438920975, -0.12871553003787994, 0.2509486973285675, -0.02075132727622986, -0.03142901137471199, 0.05658838152885437, 0.3216859698295593, -0.0008598665008321404, 0.0704570934176445, 0.05118482932448387, -0.1460161656141281, -0.016730064526200294, 0.3425775468349457, 0.030094485729932785, -0.2030131071805954, 0.3337711691856384, -0.10361941158771515, -0.15353412926197052, -0.016478220000863075, 0.05576955899596214, -0.027833323925733566, 0.0011401681695133448, -0.07712261378765106, -0.2109157145023346, -0.01367946621030569, -0.1393119990825653, 0.16724373400211334, 0.11110308021306992, -0.22541360557079315, -0.10484582185745239, -0.2211010605096817, -0.6179190874099731, 0.33911481499671936, 0.16852737963199615, 0.10299646854400635, 0.303768515586853, -0.0936095342040062, 0.03792142495512962, 0.3011041581630707, -0.24049623310565948, -0.22884786128997803, -0.14205043017864227, 0.20127244293689728, 0.22919872403144836, -0.16867521405220032, 0.3836628496646881, -0.11696534603834152, -0.09063086658716202, -0.02903631515800953, -0.36703184247016907, -0.20137490332126617, -0.06059139594435692, 0.15169548988342285, 0.17761239409446716, -0.3068908452987671, -0.42920082807540894, -0.19459274411201477, 0.31831008195877075, -0.268345445394516, 0.033592890948057175, 0.2106247991323471, 0.03524006903171539, 0.14168569445610046, -0.1328347623348236, 0.07792665809392929, -0.14012227952480316, 0.0989077240228653, 0.11960580199956894, 0.1859520673751831, -0.08012963086366653, 0.2155866026878357, -0.008647625334560871, 0.1103687733411789, 0.006619175896048546, -0.12068625539541245, 0.2880963087081909, 0.18178944289684296, 0.15284483134746552, -0.34598004817962646, 0.0909101665019989, -0.025872111320495605, 0.14171534776687622, -0.04276653006672859, -0.13296030461788177, 0.2724701464176178, 0.2716388702392578, 0.04208480939269066, -0.025203615427017212, 0.07081935554742813, 0.19470219314098358, 0.16547024250030518, -0.10979199409484863, 0.21654604375362396, 0.15466932952404022, 0.17390140891075134, 0.081931471824646, -0.06818502396345139, 0.6233018040657043, -0.4634338319301605, -0.061029765754938126, -0.34580209851264954, -0.011176378466188908, -0.1796019822359085, 0.3205385208129883, 0.39766833186149597, 0.029405318200588226, 0.4939378798007965, 0.15479658544063568, 0.28781428933143616, 0.3103058934211731, 0.17739872634410858, -0.11196929216384888, -0.2488226592540741, -0.08783463388681412, 0.5038478374481201, 0.13727158308029175, 0.38593703508377075, 0.0950913280248642, 0.3510250151157379, 0.1113976389169693, -0.4690271019935608, 0.33318498730659485, 0.2070392221212387, -0.047094639390707016, -0.24590614438056946, 0.007309592328965664, 0.18105073273181915, 0.0721583142876625, 0.11409444361925125, 0.11877722293138504, -0.15829049050807953, 0.39631545543670654, 0.19786468148231506, 0.2835298478603363, -0.290371835231781, 0.1538344919681549, 0.4110332727432251, 0.23815450072288513, -0.05646991729736328, 0.6531964540481567, 0.022359423339366913, -0.1039649099111557, 0.10264500230550766, 0.29624050855636597, 0.2218843698501587, 0.027081070467829704, -0.24861712753772736, 0.34931185841560364, 0.05680631101131439, -0.019457487389445305, -0.40215417742729187, 0.3465341627597809, 0.17067740857601166, -0.011762426234781742, 0.19785234332084656, 0.0572635680437088, -0.005411534104496241, 0.42231258749961853, -0.04545021429657936, 0.1003611832857132, -0.17071418464183807, 0.37912169098854065, 0.23295024037361145, -0.14783087372779846, 0.006883072201162577, 0.21157562732696533, -0.19290906190872192, 0.08956330269575119, 0.328535258769989, -0.015654675662517548, 0.20735357701778412, -0.15555216372013092, 0.06045133247971535, 0.21840724349021912, 0.4291932284832001, 0.24906891584396362, 0.382117360830307, -0.16179043054580688, 0.15744736790657043, -0.5565522909164429, -0.021078437566757202, 0.00883094035089016, 0.186197429895401, 0.0010193107882514596, 0.2689853310585022, 0.08288633078336716, 0.25677964091300964, -0.0606357716023922, 0.16989633440971375, 0.2654249668121338, -0.10538880527019501, -0.29545047879219055, -0.1335502415895462, -0.001777180121280253, 0.25442367792129517, 0.05943287909030914, -0.24198976159095764, 0.24423542618751526, 0.014312054961919785, -0.08045049011707306, -0.2680761516094208, -0.16146239638328552, 0.11662406474351883, 0.24801337718963623, 0.24337488412857056, 0.3024020493030548, 0.20822633802890778, 0.06503695249557495, 0.039611149579286575, -0.21749548614025116, -0.1397910863161087, -0.2429807484149933, 0.051418740302324295, -0.288268506526947, 0.08406241983175278, -0.4057178795337677, 0.08797086775302887, -0.32549694180488586, 0.13946081697940826, -0.0682578757405281, -0.17873460054397583, -0.09084243327379227, -0.07741822302341461, -0.06236889213323593, -0.02140292525291443, -0.06983808428049088, 0.5901699066162109, -0.0621926486492157, -0.0410890132188797, -0.3418334722518921, 0.07700907438993454, 0.4359879791736603, -0.4491088390350342, 0.09844677150249481, 0.05085661634802818, 0.09313168376684189, 0.6444483399391174, -0.22570301592350006, -0.665241539478302, 0.011179562658071518, 0.31368544697761536, -0.2641386091709137, -0.03762850537896156, 0.15061751008033752, -0.04273229092359543, 0.152615487575531, -0.15119338035583496, 0.14686183631420135, -0.08753129839897156, -0.19629229605197906, 0.14621949195861816, -0.05820713937282562 ]
https://github.com/huggingface/datasets/issues/245
SST-2 test labels are all -1
Yes, this is because the test sets for glue are hidden so the labels are not publicly available. You can read the glue paper for more details. On Sat, 6 Jun 2020 at 18:16, Jack Morris <notifications@github.com> wrote: > this also happened to me with nlp.load_datasets('glue', 'mnli') > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/nlp/issues/245#issuecomment-640083980>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABYDIHMVQD2EDX2HTZUXG5DRVJTWRANCNFSM4NVG3AKQ> > . >
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1. ``` >>> import nlp >>> glue = nlp.load_dataset('glue', 'sst2') >>> glue {'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)} >>> list(l['label'] for l in glue['test']) [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] ```
82
SST-2 test labels are all -1 I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1. ``` >>> import nlp >>> glue = nlp.load_dataset('glue', 'sst2') >>> glue {'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)} >>> list(l['label'] for l in glue['test']) [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] ``` Yes, this is because the test sets for glue are hidden so the labels are not publicly available. You can read the glue paper for more details. On Sat, 6 Jun 2020 at 18:16, Jack Morris <notifications@github.com> wrote: > this also happened to me with nlp.load_datasets('glue', 'mnli') > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/huggingface/nlp/issues/245#issuecomment-640083980>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABYDIHMVQD2EDX2HTZUXG5DRVJTWRANCNFSM4NVG3AKQ> > . >
[ 0.3236769437789917, -0.36125344038009644, -0.0937504693865776, 0.17786209285259247, -0.0011136684333905578, 0.10074945539236069, 0.3361843526363373, 0.44995492696762085, 0.5752964615821838, 0.014867013320326805, -0.12565450370311737, 0.13467836380004883, -0.1473742127418518, 0.27732163667678833, 0.3333797752857208, -0.053047582507133484, 0.10838036239147186, 0.31975048780441284, -0.16760124266147614, -0.25683000683784485, -0.03263835608959198, 0.38257867097854614, -0.14461320638656616, 0.19946545362472534, -0.28053387999534607, 0.24851639568805695, 0.001721641281619668, -0.09634099900722504, -0.03161931410431862, -0.5869408249855042, 0.20443375408649445, 0.20650124549865723, 0.21466319262981415, 0.041023723781108856, -0.0001139118685387075, 0.043876927345991135, 0.1996445208787918, -0.13507598638534546, -0.2542116940021515, -0.12165837734937668, -0.1056760922074318, -0.2028762251138687, 0.04586144909262657, -0.10591481626033783, -0.33675137162208557, 0.15860410034656525, 0.0468209870159626, 0.007083714008331299, 0.1640627682209015, 0.15194353461265564, 0.17462971806526184, -0.041337575763463974, 0.0038408737163990736, 0.0002423987170914188, 0.09865259379148483, -0.3579418957233429, 0.007024348247796297, 0.04189831018447876, -0.04498930275440216, -0.1923680454492569, 0.285055011510849, 0.442539781332016, 0.16352276504039764, 0.3538922071456909, 0.08915657550096512, -0.1086176261305809, 0.2901032865047455, -0.24144740402698517, 0.057044535875320435, 0.10712696611881256, 0.15783290565013885, -0.15712085366249084, -0.24079108238220215, -0.11643821001052856, -0.05656171590089798, 0.10065731406211853, -0.005957157351076603, 0.02762320265173912, 0.21763697266578674, 0.29366713762283325, -0.019367307424545288, -0.09277704358100891, -0.16660168766975403, 0.08752434700727463, 0.0444381982088089, 0.5951554179191589, 0.05255754292011261, 0.132329523563385, 0.36679092049598694, 0.08864642679691315, -0.4231604337692261, 0.2890287935733795, -0.27835115790367126, 0.17419233918190002, -0.572379469871521, -0.18345683813095093, 0.19603918492794037, -0.002869453513994813, -0.21506595611572266, 0.10167307406663895, 0.025422101840376854, 0.027583910152316093, 0.3623884320259094, -0.05170734226703644, -0.01841701939702034, 0.32787567377090454, 0.5321332216262817, 0.3578609824180603, 0.027929458767175674, -0.1615816354751587, 0.043375205248594284, 0.16716915369033813, -0.32545217871665955, -0.25360924005508423, 0.05579063668847084, 0.20358990132808685, 0.07160685956478119, -0.3534899353981018, -0.3213396370410919, -0.0689651295542717, -0.3975774347782135, 0.1182754710316658, 0.10451042652130127, 0.013810385018587112, 0.27481141686439514, 0.028539737686514854, -0.12523649632930756, -0.005990567617118359, -0.11779426783323288, -0.38688427209854126, -0.256375253200531, 0.13177327811717987, -0.17771479487419128, 0.01841181516647339, 0.404435932636261, 0.16017788648605347, 0.16646379232406616, -0.29214486479759216, -0.3622276484966278, -0.042282041162252426, 0.1334696263074875, -0.04349379241466522, 0.18527767062187195, 0.3485695421695709, -0.2840799391269684, 0.3784767687320709, 0.24288906157016754, -0.5122998952865601, -0.14108560979366302, -0.27263084053993225, -0.029239363968372345, -0.07268907129764557, 0.06737210601568222, 0.14270082116127014, -0.3055771291255951, -0.06546884030103683, -0.0006729998858645558, 0.34674087166786194, -0.04100032150745392, 0.12588414549827576, 0.04871614649891853, -0.23691929876804352, 0.0019330934155732393, 0.25379279255867004, 0.22849956154823303, 0.24465663731098175, -0.45920270681381226, -0.09783817827701569, 0.31456872820854187, -0.017924770712852478, -0.16900332272052765, 0.1724623441696167, 0.21617643535137177, 0.14936597645282745, -0.060265976935625076, 0.2051677107810974, 0.3542279303073883, -0.30272573232650757, -0.33421412110328674, 0.10458997637033463, -0.28814974427223206, -0.49943631887435913, 0.03234092891216278, 0.060902807861566544, -0.0006798231042921543, 0.10404470562934875, -0.042171187698841095, -0.3407532572746277, 0.12075476348400116, 0.03561966121196747, -0.5237576365470886, 0.2544218599796295, 0.5446701645851135, -0.016373686492443085, -0.02542823925614357, -0.12888634204864502, -0.3430946469306946, 0.19785566627979279, 0.14037707448005676, 0.054471347481012344, 0.036712005734443665, 0.1544160097837448, 0.17454223334789276, -0.12684154510498047, 0.08580400794744492, -0.09543515741825104, -0.1772249937057495, 0.19450253248214722, 0.013030908070504665, 0.3939722180366516, 0.5494515895843506, 0.06488402932882309, -0.3999766409397125, -0.2042219489812851, 0.03571333363652229, -0.2271704524755478, 0.1765034943819046, 0.42787569761276245, 0.3945479691028595, -0.047024767845869064, 0.07510045170783997, -0.011027175933122635, 0.28155070543289185, 0.00961578730493784, -0.21091005206108093, 0.2346251904964447, 0.08188167959451675, -0.2415734827518463, 0.07868682593107224, 0.2926477789878845, 0.28934866189956665, -0.09177540987730026, 0.032261304557323456, 0.2211170494556427, -0.20145586133003235, -0.0546029731631279, 0.08865443617105484, 0.29562661051750183, -0.08880238980054855, -0.4509789049625397, -0.2570941746234894, 0.5002957582473755, -0.039548203349113464, -0.02086889185011387, -0.07503226399421692, 0.0755232572555542, -0.05294431373476982, 0.15842293202877045, -0.11409223079681396, 0.15477807819843292, -0.037726256996393204, -0.05912965536117554, -0.4671591520309448, -0.052928999066352844, 0.22411836683750153, -0.43858036398887634, -0.007665133569389582, 0.13175450265407562, -0.046288080513477325, 0.3177291452884674, 0.22819547355175018, 0.16151642799377441, 0.09794747829437256, -0.2021487057209015, -0.20776012539863586, -0.09145280718803406, 0.2668095827102661, 0.29076874256134033, -0.019216366112232208, 0.19565486907958984, 0.0562126599252224, -0.23100128769874573, -0.5293566584587097, -0.039803702384233475, 0.013005869463086128, -0.09802080690860748, -0.22998084127902985, -0.1332419365644455, 0.33717110753059387, -0.33504438400268555, -0.19458530843257904, 0.20707091689109802, -0.06920451670885086, 0.3786223828792572, -0.6263083219528198, -0.06222328916192055, -0.11877096444368362, -0.12420909851789474, -0.2760348916053772, -0.05202296003699303, 0.010321950539946556, -0.2586914300918579, 0.3558688163757324, 0.04935794323682785, 0.08481521904468536, 0.08254721015691757, -0.0007390716928057373, 0.16189326345920563, -0.14972823858261108, 0.204310342669487, -0.3001510202884674, -0.12423413246870041, -0.2505882680416107, -0.00016632142069283873, -0.22512663900852203, 0.3416084051132202, 0.031404849141836166, -0.1615673154592514, -0.47070980072021484, 0.20105421543121338, -0.3075321316719055, -0.05090963840484619, -0.31167367100715637, 0.193003311753273, 0.2237745225429535, 0.15178769826889038, -0.20707368850708008, 0.13810358941555023, 0.10404612123966217, -0.10741416364908218, -0.1088031530380249, 0.11961499601602554, 0.03148311749100685, 0.06556545197963715, -0.46396541595458984, -0.43908533453941345, -0.013932688161730766, 0.04091672971844673, 0.40105435252189636, 0.06592149287462234, -0.12235087156295776, 0.049697138369083405, -0.24709907174110413, -0.12648868560791016, -0.17555560171604156, 0.16636840999126434, -0.18759538233280182, -0.25544536113739014, 0.2479197084903717, 0.11192555725574493, -0.3266983926296234, -0.2127225399017334, 0.08012745529413223, 0.07626749575138092, -0.7130563259124756, -0.20004840195178986, -0.11349185556173325, -0.14745131134986877, -0.05904802307486534, 0.08652332425117493, -0.11033042520284653, 0.19841043651103973, 0.10983213782310486, -0.029258400201797485, -0.15767745673656464, -0.38244128227233887, 0.6548929214477539, 0.30791082978248596, 0.09668951481580734, -0.40281111001968384, 0.07456992566585541, 0.05198395252227783, 0.17514541745185852, 0.16730496287345886, -0.16686566174030304, -0.006051470525562763, -0.10989923030138016, -0.04088357836008072, 0.1531365066766739, -0.32985034584999084, 0.4263610243797302, 0.23925405740737915, 0.07831589877605438, 0.2785065174102783, 0.00042193153058178723, 0.048124928027391434, -0.029270896688103676, 0.49049174785614014, -0.1470152884721756, 0.04515242204070091, -0.23982930183410645, -0.1143430694937706, -0.15328145027160645, 0.030299637466669083, 0.010627650655806065, -0.2077554315328598, -0.12809665501117706, 0.14922432601451874, -0.16171923279762268, -0.03725871816277504, 0.27529069781303406, -0.7325527667999268, -0.0751449465751648, -0.09447259455919266, -0.028463896363973618, 0.04528409242630005, 0.4404407739639282, -0.10819799453020096, -0.11886099725961685, 0.1701606661081314, -0.008202237077057362, 0.6488147974014282, 0.06172560527920723, 0.4940750002861023, 0.3102579116821289, 0.19854450225830078, -0.3425167500972748, -0.3801373839378357, -0.4393661320209503, -0.17255248129367828, 0.5286619663238525, 0.15605442225933075, -0.2542397081851959, -0.28723573684692383, 0.21373064815998077, -0.10232779383659363, -0.19476118683815002, 0.09638472646474838, -0.420390248298645, -0.23837216198444366, 0.3322471082210541, -0.037344224750995636, 0.16446200013160706, 0.059560343623161316, -0.001673916238360107, 0.07826933264732361, 0.2368902862071991, -0.46082067489624023, 0.4027179479598999, 0.357806921005249, 0.12857793271541595, 0.35036274790763855, 0.02437189407646656, 0.3749040961265564, 0.11767177283763885, -0.4649381935596466, 0.23649786412715912, -0.156197190284729, -0.046192899346351624, 0.17196278274059296, -0.2602120339870453, 0.3416874408721924, -0.06599191576242447, -0.10732235759496689, -0.04898690804839134, -0.3839329779148102, 0.2862158715724945, -0.3703196048736572, 0.30199816823005676, 0.3484680652618408, 0.24248556792736053, 0.020128663629293442, -0.15553121268749237, 0.12221962213516235, -0.11809832602739334, -0.2628389596939087, -0.2113482505083084, -0.016153890639543533, -0.4556926488876343, 0.08491985499858856, -0.21041017770767212, 0.6448172926902771, 0.04535143822431564, 0.0006922032916918397, 0.10229914635419846, -0.34347450733184814, 0.5957662463188171, -0.1162123829126358, 0.13951745629310608, -0.2881874144077301, -0.08220303058624268, 0.0693964958190918, 0.06554319709539413, -0.15029017627239227, 0.4253511428833008, -0.15432775020599365, 0.42215755581855774, 0.1851940006017685, 0.007249599322676659, 0.036744892597198486, 0.1472466140985489, 0.5044360160827637, 0.1358221173286438, -0.2058902382850647, 0.1806865930557251, -0.227803573012352, 0.13816772401332855, -0.10229205340147018, -0.020023316144943237, 0.11156031489372253, -0.2711080312728882, -0.20803993940353394, -0.14581520855426788, -0.3024890720844269, -0.0870201513171196, 0.42410048842430115, 0.10370299965143204, -0.1666996330022812, 0.036885131150484085, 0.5649839043617249, 0.23046578466892242, -0.2195446938276291, -0.0636170357465744, 0.16688619554042816, 0.33945611119270325, 0.09629499912261963, 0.20728740096092224, 0.31981462240219116, 0.0012473862152546644, -0.23087488114833832, -0.016640568152070045, 0.08016343414783478, 0.17380845546722412, -0.3481498062610626, -0.10174190253019333, -0.046893779188394547, -0.12306785583496094, 0.2246159315109253, 0.28752249479293823, 0.1345016360282898, -0.2777552008628845, 0.14777609705924988, 0.042110513895750046, -0.482346773147583, 0.08805521577596664, 0.18621471524238586, -0.44669604301452637, 0.1284509301185608, 0.41104447841644287, -0.3931845724582672, 0.3199152946472168, 0.28903719782829285, -0.0767018124461174, -0.008669071830809116, -0.26833316683769226, 0.08293019980192184, 0.020792802795767784, -0.5002562999725342, 0.15103650093078613, 0.06824260205030441, -0.31271272897720337, -0.061799515038728714, 0.3585749566555023, 0.3742307126522064, -0.045723434537649155, -0.04591970145702362, 0.049566201865673065, -0.126606747508049, -0.03153615444898605, -0.052550822496414185, 0.29492413997650146, -0.09919526427984238, 0.2035389393568039, -0.0005556299583986402, 0.24771861732006073, -0.313847154378891, -0.1842353790998459, -0.36278706789016724, 0.1797093152999878, -0.0074263266287744045, -0.008049662224948406, -0.22068654000759125, -0.08024910092353821, 0.20637376606464386, -0.20195822417736053, -0.07713647186756134, -0.2378772795200348, 0.04907603561878204, 0.10978668183088303, -0.0619540773332119, 0.047542497515678406, -0.24244026839733124, 0.07746109366416931, 0.04003291204571724, 0.010938732884824276, -0.06157444044947624, 0.06705891340970993, 0.0970124825835228, 0.8924073576927185, 0.10893657803535461, -0.03452485054731369, 0.12641386687755585, -0.047205206006765366, -0.09084100276231766, -0.1398906111717224, -0.035314884036779404, 0.22051654756069183, 0.2597258687019348, 0.07087576389312744, -0.2479424923658371, 0.10922575742006302, -0.4701382517814636, 0.06705989688634872, -0.10033863037824631, -0.3349018394947052, 0.17072691023349762, -0.11029071360826492, 0.24509838223457336, -0.0020981619600206614, -0.056502509862184525, -0.07533791661262512, 0.1967262476682663, 0.2744040787220001, -0.14405952394008636, 0.29913797974586487, 0.3024626672267914, 0.1285298764705658, 0.20637568831443787, 0.27660566568374634, -0.08614088594913483, -0.0918448343873024, 0.04461647942662239, 0.1708592027425766, 0.25332051515579224, -0.15568190813064575, 0.014833576045930386, 0.2354181408882141, -0.37783244252204895, -0.13941773772239685, 0.2338898479938507, -0.5454509258270264, -0.25998538732528687, -0.0635320246219635, 0.35906147956848145, 0.47308382391929626, 0.2442905604839325, 0.2248540073633194, -0.11749666929244995, 0.5504235029220581, -0.10056505352258682, 0.11489911377429962, -0.1903003454208374, 0.15680843591690063, -0.026905106380581856, 0.4228309988975525, -0.22543436288833618, -0.28968170285224915, -0.14281858503818512, 0.07419490814208984, 0.01234168279916048, -0.4227364659309387, -0.36474236845970154, 0.07755865156650543, -0.27781540155410767, 0.09376965463161469, 0.027242856100201607, -0.06893499940633774, 0.4262218773365021, -0.01563047617673874, 0.029314499348402023, -0.36240601539611816, -0.6591200828552246, 0.08273105323314667, 0.24549682438373566, -0.03082001395523548, 0.35645776987075806, 0.01353516522794962, -0.023416513577103615, 0.08269395679235458, 0.48508596420288086, -0.021708162501454353, -0.15393714606761932, -0.13774919509887695, -0.29478421807289124, -0.19909724593162537, -0.1798347383737564, -0.19977378845214844, 0.11430671811103821, -0.0689535066485405, -0.20472604036331177, 0.2256322056055069, 0.13329380750656128, -0.03386787697672844, 0.481589138507843, -0.30655762553215027, -0.13529016077518463, -0.198516383767128, 0.47358205914497375, 0.053332529962062836, -0.08433876931667328, -0.04198852926492691, 0.004211546387523413, -0.26060906052589417, -0.17261022329330444, 0.010212781839072704, -0.06900633126497269, 0.26928141713142395, -0.3107890784740448, 0.0877804234623909, 0.08726014941930771, 0.4814494252204895, -0.2841918468475342, 0.13342556357383728, -0.15048432350158691, 0.1581677496433258, -0.1848752349615097, -0.1463608592748642, -0.036306753754615784, -0.16399908065795898, -0.1206066682934761, -0.05896001681685448, 0.1612272709608078, -0.07762620598077774, 0.05039281025528908, 0.3595694601535797, -0.11823903024196625, -0.06551525741815567, -0.34884077310562134, 0.34651774168014526, 0.06192454695701599, 0.36269137263298035, 0.23910881578922272, -0.12598620355129242, 0.13562239706516266, 0.11258178949356079, 0.08265521377325058, 0.10623190551996231, 0.16612546145915985, -0.09636033326387405, 0.27698031067848206, 0.19938376545906067, 0.08972760289907455, 0.49743983149528503, 0.05676296725869179, 0.17370863258838654, -0.2943830192089081, -0.33704063296318054, -0.36085042357444763, -0.10455361008644104, -0.29919224977493286, 0.40716424584388733, -0.0568980798125267, 0.005760271567851305, 0.10979535430669785, -0.12080230563879013, 0.1738741099834442, 0.3284973204135895, -0.23322448134422302, 0.14248110353946686, -0.06964561343193054, -0.021369915455579758, -0.011361010372638702, -0.15444062650203705, 0.15083613991737366, -0.06890153884887695, -0.15474046766757965, -0.5150070190429688, 0.6079292893409729, -0.17488989233970642, -0.1297062188386917, -0.07439366728067398, 0.3857114315032959, 0.32967710494995117, -0.1316089779138565, -0.588060200214386, -0.22726671397686005, 0.496027410030365, 0.19417224824428558, -0.4108330309391022, 0.33431515097618103, 0.13902877271175385, 0.2144576907157898, 0.09442729502916336, -0.08707515150308609, 0.30294397473335266, 0.04614280164241791, -0.0372205413877964, -0.2824229896068573 ]
https://github.com/huggingface/datasets/issues/245
SST-2 test labels are all -1
It should be in the datasets card (the README.md and on the hub) in my opinion. What do you think @yjernite?
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1. ``` >>> import nlp >>> glue = nlp.load_dataset('glue', 'sst2') >>> glue {'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)} >>> list(l['label'] for l in glue['test']) [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] ```
21
SST-2 test labels are all -1 I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1. ``` >>> import nlp >>> glue = nlp.load_dataset('glue', 'sst2') >>> glue {'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)} >>> list(l['label'] for l in glue['test']) [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] ``` It should be in the datasets card (the README.md and on the hub) in my opinion. What do you think @yjernite?
[ 0.3236769437789917, -0.36125344038009644, -0.0937504693865776, 0.17786209285259247, -0.0011136684333905578, 0.10074945539236069, 0.3361843526363373, 0.44995492696762085, 0.5752964615821838, 0.014867013320326805, -0.12565450370311737, 0.13467836380004883, -0.1473742127418518, 0.27732163667678833, 0.3333797752857208, -0.053047582507133484, 0.10838036239147186, 0.31975048780441284, -0.16760124266147614, -0.25683000683784485, -0.03263835608959198, 0.38257867097854614, -0.14461320638656616, 0.19946545362472534, -0.28053387999534607, 0.24851639568805695, 0.001721641281619668, -0.09634099900722504, -0.03161931410431862, -0.5869408249855042, 0.20443375408649445, 0.20650124549865723, 0.21466319262981415, 0.041023723781108856, -0.0001139118685387075, 0.043876927345991135, 0.1996445208787918, -0.13507598638534546, -0.2542116940021515, -0.12165837734937668, -0.1056760922074318, -0.2028762251138687, 0.04586144909262657, -0.10591481626033783, -0.33675137162208557, 0.15860410034656525, 0.0468209870159626, 0.007083714008331299, 0.1640627682209015, 0.15194353461265564, 0.17462971806526184, -0.041337575763463974, 0.0038408737163990736, 0.0002423987170914188, 0.09865259379148483, -0.3579418957233429, 0.007024348247796297, 0.04189831018447876, -0.04498930275440216, -0.1923680454492569, 0.285055011510849, 0.442539781332016, 0.16352276504039764, 0.3538922071456909, 0.08915657550096512, -0.1086176261305809, 0.2901032865047455, -0.24144740402698517, 0.057044535875320435, 0.10712696611881256, 0.15783290565013885, -0.15712085366249084, -0.24079108238220215, -0.11643821001052856, -0.05656171590089798, 0.10065731406211853, -0.005957157351076603, 0.02762320265173912, 0.21763697266578674, 0.29366713762283325, -0.019367307424545288, -0.09277704358100891, -0.16660168766975403, 0.08752434700727463, 0.0444381982088089, 0.5951554179191589, 0.05255754292011261, 0.132329523563385, 0.36679092049598694, 0.08864642679691315, -0.4231604337692261, 0.2890287935733795, -0.27835115790367126, 0.17419233918190002, -0.572379469871521, -0.18345683813095093, 0.19603918492794037, -0.002869453513994813, -0.21506595611572266, 0.10167307406663895, 0.025422101840376854, 0.027583910152316093, 0.3623884320259094, -0.05170734226703644, -0.01841701939702034, 0.32787567377090454, 0.5321332216262817, 0.3578609824180603, 0.027929458767175674, -0.1615816354751587, 0.043375205248594284, 0.16716915369033813, -0.32545217871665955, -0.25360924005508423, 0.05579063668847084, 0.20358990132808685, 0.07160685956478119, -0.3534899353981018, -0.3213396370410919, -0.0689651295542717, -0.3975774347782135, 0.1182754710316658, 0.10451042652130127, 0.013810385018587112, 0.27481141686439514, 0.028539737686514854, -0.12523649632930756, -0.005990567617118359, -0.11779426783323288, -0.38688427209854126, -0.256375253200531, 0.13177327811717987, -0.17771479487419128, 0.01841181516647339, 0.404435932636261, 0.16017788648605347, 0.16646379232406616, -0.29214486479759216, -0.3622276484966278, -0.042282041162252426, 0.1334696263074875, -0.04349379241466522, 0.18527767062187195, 0.3485695421695709, -0.2840799391269684, 0.3784767687320709, 0.24288906157016754, -0.5122998952865601, -0.14108560979366302, -0.27263084053993225, -0.029239363968372345, -0.07268907129764557, 0.06737210601568222, 0.14270082116127014, -0.3055771291255951, -0.06546884030103683, -0.0006729998858645558, 0.34674087166786194, -0.04100032150745392, 0.12588414549827576, 0.04871614649891853, -0.23691929876804352, 0.0019330934155732393, 0.25379279255867004, 0.22849956154823303, 0.24465663731098175, -0.45920270681381226, -0.09783817827701569, 0.31456872820854187, -0.017924770712852478, -0.16900332272052765, 0.1724623441696167, 0.21617643535137177, 0.14936597645282745, -0.060265976935625076, 0.2051677107810974, 0.3542279303073883, -0.30272573232650757, -0.33421412110328674, 0.10458997637033463, -0.28814974427223206, -0.49943631887435913, 0.03234092891216278, 0.060902807861566544, -0.0006798231042921543, 0.10404470562934875, -0.042171187698841095, -0.3407532572746277, 0.12075476348400116, 0.03561966121196747, -0.5237576365470886, 0.2544218599796295, 0.5446701645851135, -0.016373686492443085, -0.02542823925614357, -0.12888634204864502, -0.3430946469306946, 0.19785566627979279, 0.14037707448005676, 0.054471347481012344, 0.036712005734443665, 0.1544160097837448, 0.17454223334789276, -0.12684154510498047, 0.08580400794744492, -0.09543515741825104, -0.1772249937057495, 0.19450253248214722, 0.013030908070504665, 0.3939722180366516, 0.5494515895843506, 0.06488402932882309, -0.3999766409397125, -0.2042219489812851, 0.03571333363652229, -0.2271704524755478, 0.1765034943819046, 0.42787569761276245, 0.3945479691028595, -0.047024767845869064, 0.07510045170783997, -0.011027175933122635, 0.28155070543289185, 0.00961578730493784, -0.21091005206108093, 0.2346251904964447, 0.08188167959451675, -0.2415734827518463, 0.07868682593107224, 0.2926477789878845, 0.28934866189956665, -0.09177540987730026, 0.032261304557323456, 0.2211170494556427, -0.20145586133003235, -0.0546029731631279, 0.08865443617105484, 0.29562661051750183, -0.08880238980054855, -0.4509789049625397, -0.2570941746234894, 0.5002957582473755, -0.039548203349113464, -0.02086889185011387, -0.07503226399421692, 0.0755232572555542, -0.05294431373476982, 0.15842293202877045, -0.11409223079681396, 0.15477807819843292, -0.037726256996393204, -0.05912965536117554, -0.4671591520309448, -0.052928999066352844, 0.22411836683750153, -0.43858036398887634, -0.007665133569389582, 0.13175450265407562, -0.046288080513477325, 0.3177291452884674, 0.22819547355175018, 0.16151642799377441, 0.09794747829437256, -0.2021487057209015, -0.20776012539863586, -0.09145280718803406, 0.2668095827102661, 0.29076874256134033, -0.019216366112232208, 0.19565486907958984, 0.0562126599252224, -0.23100128769874573, -0.5293566584587097, -0.039803702384233475, 0.013005869463086128, -0.09802080690860748, -0.22998084127902985, -0.1332419365644455, 0.33717110753059387, -0.33504438400268555, -0.19458530843257904, 0.20707091689109802, -0.06920451670885086, 0.3786223828792572, -0.6263083219528198, -0.06222328916192055, -0.11877096444368362, -0.12420909851789474, -0.2760348916053772, -0.05202296003699303, 0.010321950539946556, -0.2586914300918579, 0.3558688163757324, 0.04935794323682785, 0.08481521904468536, 0.08254721015691757, -0.0007390716928057373, 0.16189326345920563, -0.14972823858261108, 0.204310342669487, -0.3001510202884674, -0.12423413246870041, -0.2505882680416107, -0.00016632142069283873, -0.22512663900852203, 0.3416084051132202, 0.031404849141836166, -0.1615673154592514, -0.47070980072021484, 0.20105421543121338, -0.3075321316719055, -0.05090963840484619, -0.31167367100715637, 0.193003311753273, 0.2237745225429535, 0.15178769826889038, -0.20707368850708008, 0.13810358941555023, 0.10404612123966217, -0.10741416364908218, -0.1088031530380249, 0.11961499601602554, 0.03148311749100685, 0.06556545197963715, -0.46396541595458984, -0.43908533453941345, -0.013932688161730766, 0.04091672971844673, 0.40105435252189636, 0.06592149287462234, -0.12235087156295776, 0.049697138369083405, -0.24709907174110413, -0.12648868560791016, -0.17555560171604156, 0.16636840999126434, -0.18759538233280182, -0.25544536113739014, 0.2479197084903717, 0.11192555725574493, -0.3266983926296234, -0.2127225399017334, 0.08012745529413223, 0.07626749575138092, -0.7130563259124756, -0.20004840195178986, -0.11349185556173325, -0.14745131134986877, -0.05904802307486534, 0.08652332425117493, -0.11033042520284653, 0.19841043651103973, 0.10983213782310486, -0.029258400201797485, -0.15767745673656464, -0.38244128227233887, 0.6548929214477539, 0.30791082978248596, 0.09668951481580734, -0.40281111001968384, 0.07456992566585541, 0.05198395252227783, 0.17514541745185852, 0.16730496287345886, -0.16686566174030304, -0.006051470525562763, -0.10989923030138016, -0.04088357836008072, 0.1531365066766739, -0.32985034584999084, 0.4263610243797302, 0.23925405740737915, 0.07831589877605438, 0.2785065174102783, 0.00042193153058178723, 0.048124928027391434, -0.029270896688103676, 0.49049174785614014, -0.1470152884721756, 0.04515242204070091, -0.23982930183410645, -0.1143430694937706, -0.15328145027160645, 0.030299637466669083, 0.010627650655806065, -0.2077554315328598, -0.12809665501117706, 0.14922432601451874, -0.16171923279762268, -0.03725871816277504, 0.27529069781303406, -0.7325527667999268, -0.0751449465751648, -0.09447259455919266, -0.028463896363973618, 0.04528409242630005, 0.4404407739639282, -0.10819799453020096, -0.11886099725961685, 0.1701606661081314, -0.008202237077057362, 0.6488147974014282, 0.06172560527920723, 0.4940750002861023, 0.3102579116821289, 0.19854450225830078, -0.3425167500972748, -0.3801373839378357, -0.4393661320209503, -0.17255248129367828, 0.5286619663238525, 0.15605442225933075, -0.2542397081851959, -0.28723573684692383, 0.21373064815998077, -0.10232779383659363, -0.19476118683815002, 0.09638472646474838, -0.420390248298645, -0.23837216198444366, 0.3322471082210541, -0.037344224750995636, 0.16446200013160706, 0.059560343623161316, -0.001673916238360107, 0.07826933264732361, 0.2368902862071991, -0.46082067489624023, 0.4027179479598999, 0.357806921005249, 0.12857793271541595, 0.35036274790763855, 0.02437189407646656, 0.3749040961265564, 0.11767177283763885, -0.4649381935596466, 0.23649786412715912, -0.156197190284729, -0.046192899346351624, 0.17196278274059296, -0.2602120339870453, 0.3416874408721924, -0.06599191576242447, -0.10732235759496689, -0.04898690804839134, -0.3839329779148102, 0.2862158715724945, -0.3703196048736572, 0.30199816823005676, 0.3484680652618408, 0.24248556792736053, 0.020128663629293442, -0.15553121268749237, 0.12221962213516235, -0.11809832602739334, -0.2628389596939087, -0.2113482505083084, -0.016153890639543533, -0.4556926488876343, 0.08491985499858856, -0.21041017770767212, 0.6448172926902771, 0.04535143822431564, 0.0006922032916918397, 0.10229914635419846, -0.34347450733184814, 0.5957662463188171, -0.1162123829126358, 0.13951745629310608, -0.2881874144077301, -0.08220303058624268, 0.0693964958190918, 0.06554319709539413, -0.15029017627239227, 0.4253511428833008, -0.15432775020599365, 0.42215755581855774, 0.1851940006017685, 0.007249599322676659, 0.036744892597198486, 0.1472466140985489, 0.5044360160827637, 0.1358221173286438, -0.2058902382850647, 0.1806865930557251, -0.227803573012352, 0.13816772401332855, -0.10229205340147018, -0.020023316144943237, 0.11156031489372253, -0.2711080312728882, -0.20803993940353394, -0.14581520855426788, -0.3024890720844269, -0.0870201513171196, 0.42410048842430115, 0.10370299965143204, -0.1666996330022812, 0.036885131150484085, 0.5649839043617249, 0.23046578466892242, -0.2195446938276291, -0.0636170357465744, 0.16688619554042816, 0.33945611119270325, 0.09629499912261963, 0.20728740096092224, 0.31981462240219116, 0.0012473862152546644, -0.23087488114833832, -0.016640568152070045, 0.08016343414783478, 0.17380845546722412, -0.3481498062610626, -0.10174190253019333, -0.046893779188394547, -0.12306785583496094, 0.2246159315109253, 0.28752249479293823, 0.1345016360282898, -0.2777552008628845, 0.14777609705924988, 0.042110513895750046, -0.482346773147583, 0.08805521577596664, 0.18621471524238586, -0.44669604301452637, 0.1284509301185608, 0.41104447841644287, -0.3931845724582672, 0.3199152946472168, 0.28903719782829285, -0.0767018124461174, -0.008669071830809116, -0.26833316683769226, 0.08293019980192184, 0.020792802795767784, -0.5002562999725342, 0.15103650093078613, 0.06824260205030441, -0.31271272897720337, -0.061799515038728714, 0.3585749566555023, 0.3742307126522064, -0.045723434537649155, -0.04591970145702362, 0.049566201865673065, -0.126606747508049, -0.03153615444898605, -0.052550822496414185, 0.29492413997650146, -0.09919526427984238, 0.2035389393568039, -0.0005556299583986402, 0.24771861732006073, -0.313847154378891, -0.1842353790998459, -0.36278706789016724, 0.1797093152999878, -0.0074263266287744045, -0.008049662224948406, -0.22068654000759125, -0.08024910092353821, 0.20637376606464386, -0.20195822417736053, -0.07713647186756134, -0.2378772795200348, 0.04907603561878204, 0.10978668183088303, -0.0619540773332119, 0.047542497515678406, -0.24244026839733124, 0.07746109366416931, 0.04003291204571724, 0.010938732884824276, -0.06157444044947624, 0.06705891340970993, 0.0970124825835228, 0.8924073576927185, 0.10893657803535461, -0.03452485054731369, 0.12641386687755585, -0.047205206006765366, -0.09084100276231766, -0.1398906111717224, -0.035314884036779404, 0.22051654756069183, 0.2597258687019348, 0.07087576389312744, -0.2479424923658371, 0.10922575742006302, -0.4701382517814636, 0.06705989688634872, -0.10033863037824631, -0.3349018394947052, 0.17072691023349762, -0.11029071360826492, 0.24509838223457336, -0.0020981619600206614, -0.056502509862184525, -0.07533791661262512, 0.1967262476682663, 0.2744040787220001, -0.14405952394008636, 0.29913797974586487, 0.3024626672267914, 0.1285298764705658, 0.20637568831443787, 0.27660566568374634, -0.08614088594913483, -0.0918448343873024, 0.04461647942662239, 0.1708592027425766, 0.25332051515579224, -0.15568190813064575, 0.014833576045930386, 0.2354181408882141, -0.37783244252204895, -0.13941773772239685, 0.2338898479938507, -0.5454509258270264, -0.25998538732528687, -0.0635320246219635, 0.35906147956848145, 0.47308382391929626, 0.2442905604839325, 0.2248540073633194, -0.11749666929244995, 0.5504235029220581, -0.10056505352258682, 0.11489911377429962, -0.1903003454208374, 0.15680843591690063, -0.026905106380581856, 0.4228309988975525, -0.22543436288833618, -0.28968170285224915, -0.14281858503818512, 0.07419490814208984, 0.01234168279916048, -0.4227364659309387, -0.36474236845970154, 0.07755865156650543, -0.27781540155410767, 0.09376965463161469, 0.027242856100201607, -0.06893499940633774, 0.4262218773365021, -0.01563047617673874, 0.029314499348402023, -0.36240601539611816, -0.6591200828552246, 0.08273105323314667, 0.24549682438373566, -0.03082001395523548, 0.35645776987075806, 0.01353516522794962, -0.023416513577103615, 0.08269395679235458, 0.48508596420288086, -0.021708162501454353, -0.15393714606761932, -0.13774919509887695, -0.29478421807289124, -0.19909724593162537, -0.1798347383737564, -0.19977378845214844, 0.11430671811103821, -0.0689535066485405, -0.20472604036331177, 0.2256322056055069, 0.13329380750656128, -0.03386787697672844, 0.481589138507843, -0.30655762553215027, -0.13529016077518463, -0.198516383767128, 0.47358205914497375, 0.053332529962062836, -0.08433876931667328, -0.04198852926492691, 0.004211546387523413, -0.26060906052589417, -0.17261022329330444, 0.010212781839072704, -0.06900633126497269, 0.26928141713142395, -0.3107890784740448, 0.0877804234623909, 0.08726014941930771, 0.4814494252204895, -0.2841918468475342, 0.13342556357383728, -0.15048432350158691, 0.1581677496433258, -0.1848752349615097, -0.1463608592748642, -0.036306753754615784, -0.16399908065795898, -0.1206066682934761, -0.05896001681685448, 0.1612272709608078, -0.07762620598077774, 0.05039281025528908, 0.3595694601535797, -0.11823903024196625, -0.06551525741815567, -0.34884077310562134, 0.34651774168014526, 0.06192454695701599, 0.36269137263298035, 0.23910881578922272, -0.12598620355129242, 0.13562239706516266, 0.11258178949356079, 0.08265521377325058, 0.10623190551996231, 0.16612546145915985, -0.09636033326387405, 0.27698031067848206, 0.19938376545906067, 0.08972760289907455, 0.49743983149528503, 0.05676296725869179, 0.17370863258838654, -0.2943830192089081, -0.33704063296318054, -0.36085042357444763, -0.10455361008644104, -0.29919224977493286, 0.40716424584388733, -0.0568980798125267, 0.005760271567851305, 0.10979535430669785, -0.12080230563879013, 0.1738741099834442, 0.3284973204135895, -0.23322448134422302, 0.14248110353946686, -0.06964561343193054, -0.021369915455579758, -0.011361010372638702, -0.15444062650203705, 0.15083613991737366, -0.06890153884887695, -0.15474046766757965, -0.5150070190429688, 0.6079292893409729, -0.17488989233970642, -0.1297062188386917, -0.07439366728067398, 0.3857114315032959, 0.32967710494995117, -0.1316089779138565, -0.588060200214386, -0.22726671397686005, 0.496027410030365, 0.19417224824428558, -0.4108330309391022, 0.33431515097618103, 0.13902877271175385, 0.2144576907157898, 0.09442729502916336, -0.08707515150308609, 0.30294397473335266, 0.04614280164241791, -0.0372205413877964, -0.2824229896068573 ]
https://github.com/huggingface/datasets/issues/245
SST-2 test labels are all -1
I checked both before I got to looking at issues, so that would be fine as well. Some additional thoughts on this: Is there a specific reason why the "test" split even has a "label" column if it isn't tagged. Shouldn't there just not be any. Seems more transparent
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1. ``` >>> import nlp >>> glue = nlp.load_dataset('glue', 'sst2') >>> glue {'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)} >>> list(l['label'] for l in glue['test']) [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] ```
49
SST-2 test labels are all -1 I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1. ``` >>> import nlp >>> glue = nlp.load_dataset('glue', 'sst2') >>> glue {'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)} >>> list(l['label'] for l in glue['test']) [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] ``` I checked both before I got to looking at issues, so that would be fine as well. Some additional thoughts on this: Is there a specific reason why the "test" split even has a "label" column if it isn't tagged. Shouldn't there just not be any. Seems more transparent
[ 0.3236769437789917, -0.36125344038009644, -0.0937504693865776, 0.17786209285259247, -0.0011136684333905578, 0.10074945539236069, 0.3361843526363373, 0.44995492696762085, 0.5752964615821838, 0.014867013320326805, -0.12565450370311737, 0.13467836380004883, -0.1473742127418518, 0.27732163667678833, 0.3333797752857208, -0.053047582507133484, 0.10838036239147186, 0.31975048780441284, -0.16760124266147614, -0.25683000683784485, -0.03263835608959198, 0.38257867097854614, -0.14461320638656616, 0.19946545362472534, -0.28053387999534607, 0.24851639568805695, 0.001721641281619668, -0.09634099900722504, -0.03161931410431862, -0.5869408249855042, 0.20443375408649445, 0.20650124549865723, 0.21466319262981415, 0.041023723781108856, -0.0001139118685387075, 0.043876927345991135, 0.1996445208787918, -0.13507598638534546, -0.2542116940021515, -0.12165837734937668, -0.1056760922074318, -0.2028762251138687, 0.04586144909262657, -0.10591481626033783, -0.33675137162208557, 0.15860410034656525, 0.0468209870159626, 0.007083714008331299, 0.1640627682209015, 0.15194353461265564, 0.17462971806526184, -0.041337575763463974, 0.0038408737163990736, 0.0002423987170914188, 0.09865259379148483, -0.3579418957233429, 0.007024348247796297, 0.04189831018447876, -0.04498930275440216, -0.1923680454492569, 0.285055011510849, 0.442539781332016, 0.16352276504039764, 0.3538922071456909, 0.08915657550096512, -0.1086176261305809, 0.2901032865047455, -0.24144740402698517, 0.057044535875320435, 0.10712696611881256, 0.15783290565013885, -0.15712085366249084, -0.24079108238220215, -0.11643821001052856, -0.05656171590089798, 0.10065731406211853, -0.005957157351076603, 0.02762320265173912, 0.21763697266578674, 0.29366713762283325, -0.019367307424545288, -0.09277704358100891, -0.16660168766975403, 0.08752434700727463, 0.0444381982088089, 0.5951554179191589, 0.05255754292011261, 0.132329523563385, 0.36679092049598694, 0.08864642679691315, -0.4231604337692261, 0.2890287935733795, -0.27835115790367126, 0.17419233918190002, -0.572379469871521, -0.18345683813095093, 0.19603918492794037, -0.002869453513994813, -0.21506595611572266, 0.10167307406663895, 0.025422101840376854, 0.027583910152316093, 0.3623884320259094, -0.05170734226703644, -0.01841701939702034, 0.32787567377090454, 0.5321332216262817, 0.3578609824180603, 0.027929458767175674, -0.1615816354751587, 0.043375205248594284, 0.16716915369033813, -0.32545217871665955, -0.25360924005508423, 0.05579063668847084, 0.20358990132808685, 0.07160685956478119, -0.3534899353981018, -0.3213396370410919, -0.0689651295542717, -0.3975774347782135, 0.1182754710316658, 0.10451042652130127, 0.013810385018587112, 0.27481141686439514, 0.028539737686514854, -0.12523649632930756, -0.005990567617118359, -0.11779426783323288, -0.38688427209854126, -0.256375253200531, 0.13177327811717987, -0.17771479487419128, 0.01841181516647339, 0.404435932636261, 0.16017788648605347, 0.16646379232406616, -0.29214486479759216, -0.3622276484966278, -0.042282041162252426, 0.1334696263074875, -0.04349379241466522, 0.18527767062187195, 0.3485695421695709, -0.2840799391269684, 0.3784767687320709, 0.24288906157016754, -0.5122998952865601, -0.14108560979366302, -0.27263084053993225, -0.029239363968372345, -0.07268907129764557, 0.06737210601568222, 0.14270082116127014, -0.3055771291255951, -0.06546884030103683, -0.0006729998858645558, 0.34674087166786194, -0.04100032150745392, 0.12588414549827576, 0.04871614649891853, -0.23691929876804352, 0.0019330934155732393, 0.25379279255867004, 0.22849956154823303, 0.24465663731098175, -0.45920270681381226, -0.09783817827701569, 0.31456872820854187, -0.017924770712852478, -0.16900332272052765, 0.1724623441696167, 0.21617643535137177, 0.14936597645282745, -0.060265976935625076, 0.2051677107810974, 0.3542279303073883, -0.30272573232650757, -0.33421412110328674, 0.10458997637033463, -0.28814974427223206, -0.49943631887435913, 0.03234092891216278, 0.060902807861566544, -0.0006798231042921543, 0.10404470562934875, -0.042171187698841095, -0.3407532572746277, 0.12075476348400116, 0.03561966121196747, -0.5237576365470886, 0.2544218599796295, 0.5446701645851135, -0.016373686492443085, -0.02542823925614357, -0.12888634204864502, -0.3430946469306946, 0.19785566627979279, 0.14037707448005676, 0.054471347481012344, 0.036712005734443665, 0.1544160097837448, 0.17454223334789276, -0.12684154510498047, 0.08580400794744492, -0.09543515741825104, -0.1772249937057495, 0.19450253248214722, 0.013030908070504665, 0.3939722180366516, 0.5494515895843506, 0.06488402932882309, -0.3999766409397125, -0.2042219489812851, 0.03571333363652229, -0.2271704524755478, 0.1765034943819046, 0.42787569761276245, 0.3945479691028595, -0.047024767845869064, 0.07510045170783997, -0.011027175933122635, 0.28155070543289185, 0.00961578730493784, -0.21091005206108093, 0.2346251904964447, 0.08188167959451675, -0.2415734827518463, 0.07868682593107224, 0.2926477789878845, 0.28934866189956665, -0.09177540987730026, 0.032261304557323456, 0.2211170494556427, -0.20145586133003235, -0.0546029731631279, 0.08865443617105484, 0.29562661051750183, -0.08880238980054855, -0.4509789049625397, -0.2570941746234894, 0.5002957582473755, -0.039548203349113464, -0.02086889185011387, -0.07503226399421692, 0.0755232572555542, -0.05294431373476982, 0.15842293202877045, -0.11409223079681396, 0.15477807819843292, -0.037726256996393204, -0.05912965536117554, -0.4671591520309448, -0.052928999066352844, 0.22411836683750153, -0.43858036398887634, -0.007665133569389582, 0.13175450265407562, -0.046288080513477325, 0.3177291452884674, 0.22819547355175018, 0.16151642799377441, 0.09794747829437256, -0.2021487057209015, -0.20776012539863586, -0.09145280718803406, 0.2668095827102661, 0.29076874256134033, -0.019216366112232208, 0.19565486907958984, 0.0562126599252224, -0.23100128769874573, -0.5293566584587097, -0.039803702384233475, 0.013005869463086128, -0.09802080690860748, -0.22998084127902985, -0.1332419365644455, 0.33717110753059387, -0.33504438400268555, -0.19458530843257904, 0.20707091689109802, -0.06920451670885086, 0.3786223828792572, -0.6263083219528198, -0.06222328916192055, -0.11877096444368362, -0.12420909851789474, -0.2760348916053772, -0.05202296003699303, 0.010321950539946556, -0.2586914300918579, 0.3558688163757324, 0.04935794323682785, 0.08481521904468536, 0.08254721015691757, -0.0007390716928057373, 0.16189326345920563, -0.14972823858261108, 0.204310342669487, -0.3001510202884674, -0.12423413246870041, -0.2505882680416107, -0.00016632142069283873, -0.22512663900852203, 0.3416084051132202, 0.031404849141836166, -0.1615673154592514, -0.47070980072021484, 0.20105421543121338, -0.3075321316719055, -0.05090963840484619, -0.31167367100715637, 0.193003311753273, 0.2237745225429535, 0.15178769826889038, -0.20707368850708008, 0.13810358941555023, 0.10404612123966217, -0.10741416364908218, -0.1088031530380249, 0.11961499601602554, 0.03148311749100685, 0.06556545197963715, -0.46396541595458984, -0.43908533453941345, -0.013932688161730766, 0.04091672971844673, 0.40105435252189636, 0.06592149287462234, -0.12235087156295776, 0.049697138369083405, -0.24709907174110413, -0.12648868560791016, -0.17555560171604156, 0.16636840999126434, -0.18759538233280182, -0.25544536113739014, 0.2479197084903717, 0.11192555725574493, -0.3266983926296234, -0.2127225399017334, 0.08012745529413223, 0.07626749575138092, -0.7130563259124756, -0.20004840195178986, -0.11349185556173325, -0.14745131134986877, -0.05904802307486534, 0.08652332425117493, -0.11033042520284653, 0.19841043651103973, 0.10983213782310486, -0.029258400201797485, -0.15767745673656464, -0.38244128227233887, 0.6548929214477539, 0.30791082978248596, 0.09668951481580734, -0.40281111001968384, 0.07456992566585541, 0.05198395252227783, 0.17514541745185852, 0.16730496287345886, -0.16686566174030304, -0.006051470525562763, -0.10989923030138016, -0.04088357836008072, 0.1531365066766739, -0.32985034584999084, 0.4263610243797302, 0.23925405740737915, 0.07831589877605438, 0.2785065174102783, 0.00042193153058178723, 0.048124928027391434, -0.029270896688103676, 0.49049174785614014, -0.1470152884721756, 0.04515242204070091, -0.23982930183410645, -0.1143430694937706, -0.15328145027160645, 0.030299637466669083, 0.010627650655806065, -0.2077554315328598, -0.12809665501117706, 0.14922432601451874, -0.16171923279762268, -0.03725871816277504, 0.27529069781303406, -0.7325527667999268, -0.0751449465751648, -0.09447259455919266, -0.028463896363973618, 0.04528409242630005, 0.4404407739639282, -0.10819799453020096, -0.11886099725961685, 0.1701606661081314, -0.008202237077057362, 0.6488147974014282, 0.06172560527920723, 0.4940750002861023, 0.3102579116821289, 0.19854450225830078, -0.3425167500972748, -0.3801373839378357, -0.4393661320209503, -0.17255248129367828, 0.5286619663238525, 0.15605442225933075, -0.2542397081851959, -0.28723573684692383, 0.21373064815998077, -0.10232779383659363, -0.19476118683815002, 0.09638472646474838, -0.420390248298645, -0.23837216198444366, 0.3322471082210541, -0.037344224750995636, 0.16446200013160706, 0.059560343623161316, -0.001673916238360107, 0.07826933264732361, 0.2368902862071991, -0.46082067489624023, 0.4027179479598999, 0.357806921005249, 0.12857793271541595, 0.35036274790763855, 0.02437189407646656, 0.3749040961265564, 0.11767177283763885, -0.4649381935596466, 0.23649786412715912, -0.156197190284729, -0.046192899346351624, 0.17196278274059296, -0.2602120339870453, 0.3416874408721924, -0.06599191576242447, -0.10732235759496689, -0.04898690804839134, -0.3839329779148102, 0.2862158715724945, -0.3703196048736572, 0.30199816823005676, 0.3484680652618408, 0.24248556792736053, 0.020128663629293442, -0.15553121268749237, 0.12221962213516235, -0.11809832602739334, -0.2628389596939087, -0.2113482505083084, -0.016153890639543533, -0.4556926488876343, 0.08491985499858856, -0.21041017770767212, 0.6448172926902771, 0.04535143822431564, 0.0006922032916918397, 0.10229914635419846, -0.34347450733184814, 0.5957662463188171, -0.1162123829126358, 0.13951745629310608, -0.2881874144077301, -0.08220303058624268, 0.0693964958190918, 0.06554319709539413, -0.15029017627239227, 0.4253511428833008, -0.15432775020599365, 0.42215755581855774, 0.1851940006017685, 0.007249599322676659, 0.036744892597198486, 0.1472466140985489, 0.5044360160827637, 0.1358221173286438, -0.2058902382850647, 0.1806865930557251, -0.227803573012352, 0.13816772401332855, -0.10229205340147018, -0.020023316144943237, 0.11156031489372253, -0.2711080312728882, -0.20803993940353394, -0.14581520855426788, -0.3024890720844269, -0.0870201513171196, 0.42410048842430115, 0.10370299965143204, -0.1666996330022812, 0.036885131150484085, 0.5649839043617249, 0.23046578466892242, -0.2195446938276291, -0.0636170357465744, 0.16688619554042816, 0.33945611119270325, 0.09629499912261963, 0.20728740096092224, 0.31981462240219116, 0.0012473862152546644, -0.23087488114833832, -0.016640568152070045, 0.08016343414783478, 0.17380845546722412, -0.3481498062610626, -0.10174190253019333, -0.046893779188394547, -0.12306785583496094, 0.2246159315109253, 0.28752249479293823, 0.1345016360282898, -0.2777552008628845, 0.14777609705924988, 0.042110513895750046, -0.482346773147583, 0.08805521577596664, 0.18621471524238586, -0.44669604301452637, 0.1284509301185608, 0.41104447841644287, -0.3931845724582672, 0.3199152946472168, 0.28903719782829285, -0.0767018124461174, -0.008669071830809116, -0.26833316683769226, 0.08293019980192184, 0.020792802795767784, -0.5002562999725342, 0.15103650093078613, 0.06824260205030441, -0.31271272897720337, -0.061799515038728714, 0.3585749566555023, 0.3742307126522064, -0.045723434537649155, -0.04591970145702362, 0.049566201865673065, -0.126606747508049, -0.03153615444898605, -0.052550822496414185, 0.29492413997650146, -0.09919526427984238, 0.2035389393568039, -0.0005556299583986402, 0.24771861732006073, -0.313847154378891, -0.1842353790998459, -0.36278706789016724, 0.1797093152999878, -0.0074263266287744045, -0.008049662224948406, -0.22068654000759125, -0.08024910092353821, 0.20637376606464386, -0.20195822417736053, -0.07713647186756134, -0.2378772795200348, 0.04907603561878204, 0.10978668183088303, -0.0619540773332119, 0.047542497515678406, -0.24244026839733124, 0.07746109366416931, 0.04003291204571724, 0.010938732884824276, -0.06157444044947624, 0.06705891340970993, 0.0970124825835228, 0.8924073576927185, 0.10893657803535461, -0.03452485054731369, 0.12641386687755585, -0.047205206006765366, -0.09084100276231766, -0.1398906111717224, -0.035314884036779404, 0.22051654756069183, 0.2597258687019348, 0.07087576389312744, -0.2479424923658371, 0.10922575742006302, -0.4701382517814636, 0.06705989688634872, -0.10033863037824631, -0.3349018394947052, 0.17072691023349762, -0.11029071360826492, 0.24509838223457336, -0.0020981619600206614, -0.056502509862184525, -0.07533791661262512, 0.1967262476682663, 0.2744040787220001, -0.14405952394008636, 0.29913797974586487, 0.3024626672267914, 0.1285298764705658, 0.20637568831443787, 0.27660566568374634, -0.08614088594913483, -0.0918448343873024, 0.04461647942662239, 0.1708592027425766, 0.25332051515579224, -0.15568190813064575, 0.014833576045930386, 0.2354181408882141, -0.37783244252204895, -0.13941773772239685, 0.2338898479938507, -0.5454509258270264, -0.25998538732528687, -0.0635320246219635, 0.35906147956848145, 0.47308382391929626, 0.2442905604839325, 0.2248540073633194, -0.11749666929244995, 0.5504235029220581, -0.10056505352258682, 0.11489911377429962, -0.1903003454208374, 0.15680843591690063, -0.026905106380581856, 0.4228309988975525, -0.22543436288833618, -0.28968170285224915, -0.14281858503818512, 0.07419490814208984, 0.01234168279916048, -0.4227364659309387, -0.36474236845970154, 0.07755865156650543, -0.27781540155410767, 0.09376965463161469, 0.027242856100201607, -0.06893499940633774, 0.4262218773365021, -0.01563047617673874, 0.029314499348402023, -0.36240601539611816, -0.6591200828552246, 0.08273105323314667, 0.24549682438373566, -0.03082001395523548, 0.35645776987075806, 0.01353516522794962, -0.023416513577103615, 0.08269395679235458, 0.48508596420288086, -0.021708162501454353, -0.15393714606761932, -0.13774919509887695, -0.29478421807289124, -0.19909724593162537, -0.1798347383737564, -0.19977378845214844, 0.11430671811103821, -0.0689535066485405, -0.20472604036331177, 0.2256322056055069, 0.13329380750656128, -0.03386787697672844, 0.481589138507843, -0.30655762553215027, -0.13529016077518463, -0.198516383767128, 0.47358205914497375, 0.053332529962062836, -0.08433876931667328, -0.04198852926492691, 0.004211546387523413, -0.26060906052589417, -0.17261022329330444, 0.010212781839072704, -0.06900633126497269, 0.26928141713142395, -0.3107890784740448, 0.0877804234623909, 0.08726014941930771, 0.4814494252204895, -0.2841918468475342, 0.13342556357383728, -0.15048432350158691, 0.1581677496433258, -0.1848752349615097, -0.1463608592748642, -0.036306753754615784, -0.16399908065795898, -0.1206066682934761, -0.05896001681685448, 0.1612272709608078, -0.07762620598077774, 0.05039281025528908, 0.3595694601535797, -0.11823903024196625, -0.06551525741815567, -0.34884077310562134, 0.34651774168014526, 0.06192454695701599, 0.36269137263298035, 0.23910881578922272, -0.12598620355129242, 0.13562239706516266, 0.11258178949356079, 0.08265521377325058, 0.10623190551996231, 0.16612546145915985, -0.09636033326387405, 0.27698031067848206, 0.19938376545906067, 0.08972760289907455, 0.49743983149528503, 0.05676296725869179, 0.17370863258838654, -0.2943830192089081, -0.33704063296318054, -0.36085042357444763, -0.10455361008644104, -0.29919224977493286, 0.40716424584388733, -0.0568980798125267, 0.005760271567851305, 0.10979535430669785, -0.12080230563879013, 0.1738741099834442, 0.3284973204135895, -0.23322448134422302, 0.14248110353946686, -0.06964561343193054, -0.021369915455579758, -0.011361010372638702, -0.15444062650203705, 0.15083613991737366, -0.06890153884887695, -0.15474046766757965, -0.5150070190429688, 0.6079292893409729, -0.17488989233970642, -0.1297062188386917, -0.07439366728067398, 0.3857114315032959, 0.32967710494995117, -0.1316089779138565, -0.588060200214386, -0.22726671397686005, 0.496027410030365, 0.19417224824428558, -0.4108330309391022, 0.33431515097618103, 0.13902877271175385, 0.2144576907157898, 0.09442729502916336, -0.08707515150308609, 0.30294397473335266, 0.04614280164241791, -0.0372205413877964, -0.2824229896068573 ]
https://github.com/huggingface/datasets/issues/245
SST-2 test labels are all -1
I'm a little confused with the data size. `sst2` dataset is referenced to `Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank` and the link of the dataset in the paper is https://nlp.stanford.edu/sentiment/index.html which is often shown in GLUE/SST2 reference. From the original data, the standard train/dev/test splits split is 6920/872/1821 for binary classification. Why in GLUE/SST2 the train/dev/test split is 67,349/872/1,821 ?
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1. ``` >>> import nlp >>> glue = nlp.load_dataset('glue', 'sst2') >>> glue {'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)} >>> list(l['label'] for l in glue['test']) [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] ```
64
SST-2 test labels are all -1 I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1. ``` >>> import nlp >>> glue = nlp.load_dataset('glue', 'sst2') >>> glue {'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)} >>> list(l['label'] for l in glue['test']) [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] ``` I'm a little confused with the data size. `sst2` dataset is referenced to `Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank` and the link of the dataset in the paper is https://nlp.stanford.edu/sentiment/index.html which is often shown in GLUE/SST2 reference. From the original data, the standard train/dev/test splits split is 6920/872/1821 for binary classification. Why in GLUE/SST2 the train/dev/test split is 67,349/872/1,821 ?
[ 0.3236769437789917, -0.36125344038009644, -0.0937504693865776, 0.17786209285259247, -0.0011136684333905578, 0.10074945539236069, 0.3361843526363373, 0.44995492696762085, 0.5752964615821838, 0.014867013320326805, -0.12565450370311737, 0.13467836380004883, -0.1473742127418518, 0.27732163667678833, 0.3333797752857208, -0.053047582507133484, 0.10838036239147186, 0.31975048780441284, -0.16760124266147614, -0.25683000683784485, -0.03263835608959198, 0.38257867097854614, -0.14461320638656616, 0.19946545362472534, -0.28053387999534607, 0.24851639568805695, 0.001721641281619668, -0.09634099900722504, -0.03161931410431862, -0.5869408249855042, 0.20443375408649445, 0.20650124549865723, 0.21466319262981415, 0.041023723781108856, -0.0001139118685387075, 0.043876927345991135, 0.1996445208787918, -0.13507598638534546, -0.2542116940021515, -0.12165837734937668, -0.1056760922074318, -0.2028762251138687, 0.04586144909262657, -0.10591481626033783, -0.33675137162208557, 0.15860410034656525, 0.0468209870159626, 0.007083714008331299, 0.1640627682209015, 0.15194353461265564, 0.17462971806526184, -0.041337575763463974, 0.0038408737163990736, 0.0002423987170914188, 0.09865259379148483, -0.3579418957233429, 0.007024348247796297, 0.04189831018447876, -0.04498930275440216, -0.1923680454492569, 0.285055011510849, 0.442539781332016, 0.16352276504039764, 0.3538922071456909, 0.08915657550096512, -0.1086176261305809, 0.2901032865047455, -0.24144740402698517, 0.057044535875320435, 0.10712696611881256, 0.15783290565013885, -0.15712085366249084, -0.24079108238220215, -0.11643821001052856, -0.05656171590089798, 0.10065731406211853, -0.005957157351076603, 0.02762320265173912, 0.21763697266578674, 0.29366713762283325, -0.019367307424545288, -0.09277704358100891, -0.16660168766975403, 0.08752434700727463, 0.0444381982088089, 0.5951554179191589, 0.05255754292011261, 0.132329523563385, 0.36679092049598694, 0.08864642679691315, -0.4231604337692261, 0.2890287935733795, -0.27835115790367126, 0.17419233918190002, -0.572379469871521, -0.18345683813095093, 0.19603918492794037, -0.002869453513994813, -0.21506595611572266, 0.10167307406663895, 0.025422101840376854, 0.027583910152316093, 0.3623884320259094, -0.05170734226703644, -0.01841701939702034, 0.32787567377090454, 0.5321332216262817, 0.3578609824180603, 0.027929458767175674, -0.1615816354751587, 0.043375205248594284, 0.16716915369033813, -0.32545217871665955, -0.25360924005508423, 0.05579063668847084, 0.20358990132808685, 0.07160685956478119, -0.3534899353981018, -0.3213396370410919, -0.0689651295542717, -0.3975774347782135, 0.1182754710316658, 0.10451042652130127, 0.013810385018587112, 0.27481141686439514, 0.028539737686514854, -0.12523649632930756, -0.005990567617118359, -0.11779426783323288, -0.38688427209854126, -0.256375253200531, 0.13177327811717987, -0.17771479487419128, 0.01841181516647339, 0.404435932636261, 0.16017788648605347, 0.16646379232406616, -0.29214486479759216, -0.3622276484966278, -0.042282041162252426, 0.1334696263074875, -0.04349379241466522, 0.18527767062187195, 0.3485695421695709, -0.2840799391269684, 0.3784767687320709, 0.24288906157016754, -0.5122998952865601, -0.14108560979366302, -0.27263084053993225, -0.029239363968372345, -0.07268907129764557, 0.06737210601568222, 0.14270082116127014, -0.3055771291255951, -0.06546884030103683, -0.0006729998858645558, 0.34674087166786194, -0.04100032150745392, 0.12588414549827576, 0.04871614649891853, -0.23691929876804352, 0.0019330934155732393, 0.25379279255867004, 0.22849956154823303, 0.24465663731098175, -0.45920270681381226, -0.09783817827701569, 0.31456872820854187, -0.017924770712852478, -0.16900332272052765, 0.1724623441696167, 0.21617643535137177, 0.14936597645282745, -0.060265976935625076, 0.2051677107810974, 0.3542279303073883, -0.30272573232650757, -0.33421412110328674, 0.10458997637033463, -0.28814974427223206, -0.49943631887435913, 0.03234092891216278, 0.060902807861566544, -0.0006798231042921543, 0.10404470562934875, -0.042171187698841095, -0.3407532572746277, 0.12075476348400116, 0.03561966121196747, -0.5237576365470886, 0.2544218599796295, 0.5446701645851135, -0.016373686492443085, -0.02542823925614357, -0.12888634204864502, -0.3430946469306946, 0.19785566627979279, 0.14037707448005676, 0.054471347481012344, 0.036712005734443665, 0.1544160097837448, 0.17454223334789276, -0.12684154510498047, 0.08580400794744492, -0.09543515741825104, -0.1772249937057495, 0.19450253248214722, 0.013030908070504665, 0.3939722180366516, 0.5494515895843506, 0.06488402932882309, -0.3999766409397125, -0.2042219489812851, 0.03571333363652229, -0.2271704524755478, 0.1765034943819046, 0.42787569761276245, 0.3945479691028595, -0.047024767845869064, 0.07510045170783997, -0.011027175933122635, 0.28155070543289185, 0.00961578730493784, -0.21091005206108093, 0.2346251904964447, 0.08188167959451675, -0.2415734827518463, 0.07868682593107224, 0.2926477789878845, 0.28934866189956665, -0.09177540987730026, 0.032261304557323456, 0.2211170494556427, -0.20145586133003235, -0.0546029731631279, 0.08865443617105484, 0.29562661051750183, -0.08880238980054855, -0.4509789049625397, -0.2570941746234894, 0.5002957582473755, -0.039548203349113464, -0.02086889185011387, -0.07503226399421692, 0.0755232572555542, -0.05294431373476982, 0.15842293202877045, -0.11409223079681396, 0.15477807819843292, -0.037726256996393204, -0.05912965536117554, -0.4671591520309448, -0.052928999066352844, 0.22411836683750153, -0.43858036398887634, -0.007665133569389582, 0.13175450265407562, -0.046288080513477325, 0.3177291452884674, 0.22819547355175018, 0.16151642799377441, 0.09794747829437256, -0.2021487057209015, -0.20776012539863586, -0.09145280718803406, 0.2668095827102661, 0.29076874256134033, -0.019216366112232208, 0.19565486907958984, 0.0562126599252224, -0.23100128769874573, -0.5293566584587097, -0.039803702384233475, 0.013005869463086128, -0.09802080690860748, -0.22998084127902985, -0.1332419365644455, 0.33717110753059387, -0.33504438400268555, -0.19458530843257904, 0.20707091689109802, -0.06920451670885086, 0.3786223828792572, -0.6263083219528198, -0.06222328916192055, -0.11877096444368362, -0.12420909851789474, -0.2760348916053772, -0.05202296003699303, 0.010321950539946556, -0.2586914300918579, 0.3558688163757324, 0.04935794323682785, 0.08481521904468536, 0.08254721015691757, -0.0007390716928057373, 0.16189326345920563, -0.14972823858261108, 0.204310342669487, -0.3001510202884674, -0.12423413246870041, -0.2505882680416107, -0.00016632142069283873, -0.22512663900852203, 0.3416084051132202, 0.031404849141836166, -0.1615673154592514, -0.47070980072021484, 0.20105421543121338, -0.3075321316719055, -0.05090963840484619, -0.31167367100715637, 0.193003311753273, 0.2237745225429535, 0.15178769826889038, -0.20707368850708008, 0.13810358941555023, 0.10404612123966217, -0.10741416364908218, -0.1088031530380249, 0.11961499601602554, 0.03148311749100685, 0.06556545197963715, -0.46396541595458984, -0.43908533453941345, -0.013932688161730766, 0.04091672971844673, 0.40105435252189636, 0.06592149287462234, -0.12235087156295776, 0.049697138369083405, -0.24709907174110413, -0.12648868560791016, -0.17555560171604156, 0.16636840999126434, -0.18759538233280182, -0.25544536113739014, 0.2479197084903717, 0.11192555725574493, -0.3266983926296234, -0.2127225399017334, 0.08012745529413223, 0.07626749575138092, -0.7130563259124756, -0.20004840195178986, -0.11349185556173325, -0.14745131134986877, -0.05904802307486534, 0.08652332425117493, -0.11033042520284653, 0.19841043651103973, 0.10983213782310486, -0.029258400201797485, -0.15767745673656464, -0.38244128227233887, 0.6548929214477539, 0.30791082978248596, 0.09668951481580734, -0.40281111001968384, 0.07456992566585541, 0.05198395252227783, 0.17514541745185852, 0.16730496287345886, -0.16686566174030304, -0.006051470525562763, -0.10989923030138016, -0.04088357836008072, 0.1531365066766739, -0.32985034584999084, 0.4263610243797302, 0.23925405740737915, 0.07831589877605438, 0.2785065174102783, 0.00042193153058178723, 0.048124928027391434, -0.029270896688103676, 0.49049174785614014, -0.1470152884721756, 0.04515242204070091, -0.23982930183410645, -0.1143430694937706, -0.15328145027160645, 0.030299637466669083, 0.010627650655806065, -0.2077554315328598, -0.12809665501117706, 0.14922432601451874, -0.16171923279762268, -0.03725871816277504, 0.27529069781303406, -0.7325527667999268, -0.0751449465751648, -0.09447259455919266, -0.028463896363973618, 0.04528409242630005, 0.4404407739639282, -0.10819799453020096, -0.11886099725961685, 0.1701606661081314, -0.008202237077057362, 0.6488147974014282, 0.06172560527920723, 0.4940750002861023, 0.3102579116821289, 0.19854450225830078, -0.3425167500972748, -0.3801373839378357, -0.4393661320209503, -0.17255248129367828, 0.5286619663238525, 0.15605442225933075, -0.2542397081851959, -0.28723573684692383, 0.21373064815998077, -0.10232779383659363, -0.19476118683815002, 0.09638472646474838, -0.420390248298645, -0.23837216198444366, 0.3322471082210541, -0.037344224750995636, 0.16446200013160706, 0.059560343623161316, -0.001673916238360107, 0.07826933264732361, 0.2368902862071991, -0.46082067489624023, 0.4027179479598999, 0.357806921005249, 0.12857793271541595, 0.35036274790763855, 0.02437189407646656, 0.3749040961265564, 0.11767177283763885, -0.4649381935596466, 0.23649786412715912, -0.156197190284729, -0.046192899346351624, 0.17196278274059296, -0.2602120339870453, 0.3416874408721924, -0.06599191576242447, -0.10732235759496689, -0.04898690804839134, -0.3839329779148102, 0.2862158715724945, -0.3703196048736572, 0.30199816823005676, 0.3484680652618408, 0.24248556792736053, 0.020128663629293442, -0.15553121268749237, 0.12221962213516235, -0.11809832602739334, -0.2628389596939087, -0.2113482505083084, -0.016153890639543533, -0.4556926488876343, 0.08491985499858856, -0.21041017770767212, 0.6448172926902771, 0.04535143822431564, 0.0006922032916918397, 0.10229914635419846, -0.34347450733184814, 0.5957662463188171, -0.1162123829126358, 0.13951745629310608, -0.2881874144077301, -0.08220303058624268, 0.0693964958190918, 0.06554319709539413, -0.15029017627239227, 0.4253511428833008, -0.15432775020599365, 0.42215755581855774, 0.1851940006017685, 0.007249599322676659, 0.036744892597198486, 0.1472466140985489, 0.5044360160827637, 0.1358221173286438, -0.2058902382850647, 0.1806865930557251, -0.227803573012352, 0.13816772401332855, -0.10229205340147018, -0.020023316144943237, 0.11156031489372253, -0.2711080312728882, -0.20803993940353394, -0.14581520855426788, -0.3024890720844269, -0.0870201513171196, 0.42410048842430115, 0.10370299965143204, -0.1666996330022812, 0.036885131150484085, 0.5649839043617249, 0.23046578466892242, -0.2195446938276291, -0.0636170357465744, 0.16688619554042816, 0.33945611119270325, 0.09629499912261963, 0.20728740096092224, 0.31981462240219116, 0.0012473862152546644, -0.23087488114833832, -0.016640568152070045, 0.08016343414783478, 0.17380845546722412, -0.3481498062610626, -0.10174190253019333, -0.046893779188394547, -0.12306785583496094, 0.2246159315109253, 0.28752249479293823, 0.1345016360282898, -0.2777552008628845, 0.14777609705924988, 0.042110513895750046, -0.482346773147583, 0.08805521577596664, 0.18621471524238586, -0.44669604301452637, 0.1284509301185608, 0.41104447841644287, -0.3931845724582672, 0.3199152946472168, 0.28903719782829285, -0.0767018124461174, -0.008669071830809116, -0.26833316683769226, 0.08293019980192184, 0.020792802795767784, -0.5002562999725342, 0.15103650093078613, 0.06824260205030441, -0.31271272897720337, -0.061799515038728714, 0.3585749566555023, 0.3742307126522064, -0.045723434537649155, -0.04591970145702362, 0.049566201865673065, -0.126606747508049, -0.03153615444898605, -0.052550822496414185, 0.29492413997650146, -0.09919526427984238, 0.2035389393568039, -0.0005556299583986402, 0.24771861732006073, -0.313847154378891, -0.1842353790998459, -0.36278706789016724, 0.1797093152999878, -0.0074263266287744045, -0.008049662224948406, -0.22068654000759125, -0.08024910092353821, 0.20637376606464386, -0.20195822417736053, -0.07713647186756134, -0.2378772795200348, 0.04907603561878204, 0.10978668183088303, -0.0619540773332119, 0.047542497515678406, -0.24244026839733124, 0.07746109366416931, 0.04003291204571724, 0.010938732884824276, -0.06157444044947624, 0.06705891340970993, 0.0970124825835228, 0.8924073576927185, 0.10893657803535461, -0.03452485054731369, 0.12641386687755585, -0.047205206006765366, -0.09084100276231766, -0.1398906111717224, -0.035314884036779404, 0.22051654756069183, 0.2597258687019348, 0.07087576389312744, -0.2479424923658371, 0.10922575742006302, -0.4701382517814636, 0.06705989688634872, -0.10033863037824631, -0.3349018394947052, 0.17072691023349762, -0.11029071360826492, 0.24509838223457336, -0.0020981619600206614, -0.056502509862184525, -0.07533791661262512, 0.1967262476682663, 0.2744040787220001, -0.14405952394008636, 0.29913797974586487, 0.3024626672267914, 0.1285298764705658, 0.20637568831443787, 0.27660566568374634, -0.08614088594913483, -0.0918448343873024, 0.04461647942662239, 0.1708592027425766, 0.25332051515579224, -0.15568190813064575, 0.014833576045930386, 0.2354181408882141, -0.37783244252204895, -0.13941773772239685, 0.2338898479938507, -0.5454509258270264, -0.25998538732528687, -0.0635320246219635, 0.35906147956848145, 0.47308382391929626, 0.2442905604839325, 0.2248540073633194, -0.11749666929244995, 0.5504235029220581, -0.10056505352258682, 0.11489911377429962, -0.1903003454208374, 0.15680843591690063, -0.026905106380581856, 0.4228309988975525, -0.22543436288833618, -0.28968170285224915, -0.14281858503818512, 0.07419490814208984, 0.01234168279916048, -0.4227364659309387, -0.36474236845970154, 0.07755865156650543, -0.27781540155410767, 0.09376965463161469, 0.027242856100201607, -0.06893499940633774, 0.4262218773365021, -0.01563047617673874, 0.029314499348402023, -0.36240601539611816, -0.6591200828552246, 0.08273105323314667, 0.24549682438373566, -0.03082001395523548, 0.35645776987075806, 0.01353516522794962, -0.023416513577103615, 0.08269395679235458, 0.48508596420288086, -0.021708162501454353, -0.15393714606761932, -0.13774919509887695, -0.29478421807289124, -0.19909724593162537, -0.1798347383737564, -0.19977378845214844, 0.11430671811103821, -0.0689535066485405, -0.20472604036331177, 0.2256322056055069, 0.13329380750656128, -0.03386787697672844, 0.481589138507843, -0.30655762553215027, -0.13529016077518463, -0.198516383767128, 0.47358205914497375, 0.053332529962062836, -0.08433876931667328, -0.04198852926492691, 0.004211546387523413, -0.26060906052589417, -0.17261022329330444, 0.010212781839072704, -0.06900633126497269, 0.26928141713142395, -0.3107890784740448, 0.0877804234623909, 0.08726014941930771, 0.4814494252204895, -0.2841918468475342, 0.13342556357383728, -0.15048432350158691, 0.1581677496433258, -0.1848752349615097, -0.1463608592748642, -0.036306753754615784, -0.16399908065795898, -0.1206066682934761, -0.05896001681685448, 0.1612272709608078, -0.07762620598077774, 0.05039281025528908, 0.3595694601535797, -0.11823903024196625, -0.06551525741815567, -0.34884077310562134, 0.34651774168014526, 0.06192454695701599, 0.36269137263298035, 0.23910881578922272, -0.12598620355129242, 0.13562239706516266, 0.11258178949356079, 0.08265521377325058, 0.10623190551996231, 0.16612546145915985, -0.09636033326387405, 0.27698031067848206, 0.19938376545906067, 0.08972760289907455, 0.49743983149528503, 0.05676296725869179, 0.17370863258838654, -0.2943830192089081, -0.33704063296318054, -0.36085042357444763, -0.10455361008644104, -0.29919224977493286, 0.40716424584388733, -0.0568980798125267, 0.005760271567851305, 0.10979535430669785, -0.12080230563879013, 0.1738741099834442, 0.3284973204135895, -0.23322448134422302, 0.14248110353946686, -0.06964561343193054, -0.021369915455579758, -0.011361010372638702, -0.15444062650203705, 0.15083613991737366, -0.06890153884887695, -0.15474046766757965, -0.5150070190429688, 0.6079292893409729, -0.17488989233970642, -0.1297062188386917, -0.07439366728067398, 0.3857114315032959, 0.32967710494995117, -0.1316089779138565, -0.588060200214386, -0.22726671397686005, 0.496027410030365, 0.19417224824428558, -0.4108330309391022, 0.33431515097618103, 0.13902877271175385, 0.2144576907157898, 0.09442729502916336, -0.08707515150308609, 0.30294397473335266, 0.04614280164241791, -0.0372205413877964, -0.2824229896068573 ]
https://github.com/huggingface/datasets/issues/245
SST-2 test labels are all -1
> I'm a little confused with the data size. > `sst2` dataset is referenced to `Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank` and the link of the dataset in the paper is https://nlp.stanford.edu/sentiment/index.html which is often shown in GLUE/SST2 reference. > From the original data, the standard train/dev/test splits split is 6920/872/1821 for binary classification. > Why in GLUE/SST2 the train/dev/test split is 67,349/872/1,821 ? Have you figured out this problem? AFAIK, the original sst-2 dataset is totally different from the GLUE/sst-2. Do you think so?
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1. ``` >>> import nlp >>> glue = nlp.load_dataset('glue', 'sst2') >>> glue {'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)} >>> list(l['label'] for l in glue['test']) [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] ```
89
SST-2 test labels are all -1 I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1. ``` >>> import nlp >>> glue = nlp.load_dataset('glue', 'sst2') >>> glue {'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)} >>> list(l['label'] for l in glue['test']) [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] ``` > I'm a little confused with the data size. > `sst2` dataset is referenced to `Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank` and the link of the dataset in the paper is https://nlp.stanford.edu/sentiment/index.html which is often shown in GLUE/SST2 reference. > From the original data, the standard train/dev/test splits split is 6920/872/1821 for binary classification. > Why in GLUE/SST2 the train/dev/test split is 67,349/872/1,821 ? Have you figured out this problem? AFAIK, the original sst-2 dataset is totally different from the GLUE/sst-2. Do you think so?
[ 0.3236769437789917, -0.36125344038009644, -0.0937504693865776, 0.17786209285259247, -0.0011136684333905578, 0.10074945539236069, 0.3361843526363373, 0.44995492696762085, 0.5752964615821838, 0.014867013320326805, -0.12565450370311737, 0.13467836380004883, -0.1473742127418518, 0.27732163667678833, 0.3333797752857208, -0.053047582507133484, 0.10838036239147186, 0.31975048780441284, -0.16760124266147614, -0.25683000683784485, -0.03263835608959198, 0.38257867097854614, -0.14461320638656616, 0.19946545362472534, -0.28053387999534607, 0.24851639568805695, 0.001721641281619668, -0.09634099900722504, -0.03161931410431862, -0.5869408249855042, 0.20443375408649445, 0.20650124549865723, 0.21466319262981415, 0.041023723781108856, -0.0001139118685387075, 0.043876927345991135, 0.1996445208787918, -0.13507598638534546, -0.2542116940021515, -0.12165837734937668, -0.1056760922074318, -0.2028762251138687, 0.04586144909262657, -0.10591481626033783, -0.33675137162208557, 0.15860410034656525, 0.0468209870159626, 0.007083714008331299, 0.1640627682209015, 0.15194353461265564, 0.17462971806526184, -0.041337575763463974, 0.0038408737163990736, 0.0002423987170914188, 0.09865259379148483, -0.3579418957233429, 0.007024348247796297, 0.04189831018447876, -0.04498930275440216, -0.1923680454492569, 0.285055011510849, 0.442539781332016, 0.16352276504039764, 0.3538922071456909, 0.08915657550096512, -0.1086176261305809, 0.2901032865047455, -0.24144740402698517, 0.057044535875320435, 0.10712696611881256, 0.15783290565013885, -0.15712085366249084, -0.24079108238220215, -0.11643821001052856, -0.05656171590089798, 0.10065731406211853, -0.005957157351076603, 0.02762320265173912, 0.21763697266578674, 0.29366713762283325, -0.019367307424545288, -0.09277704358100891, -0.16660168766975403, 0.08752434700727463, 0.0444381982088089, 0.5951554179191589, 0.05255754292011261, 0.132329523563385, 0.36679092049598694, 0.08864642679691315, -0.4231604337692261, 0.2890287935733795, -0.27835115790367126, 0.17419233918190002, -0.572379469871521, -0.18345683813095093, 0.19603918492794037, -0.002869453513994813, -0.21506595611572266, 0.10167307406663895, 0.025422101840376854, 0.027583910152316093, 0.3623884320259094, -0.05170734226703644, -0.01841701939702034, 0.32787567377090454, 0.5321332216262817, 0.3578609824180603, 0.027929458767175674, -0.1615816354751587, 0.043375205248594284, 0.16716915369033813, -0.32545217871665955, -0.25360924005508423, 0.05579063668847084, 0.20358990132808685, 0.07160685956478119, -0.3534899353981018, -0.3213396370410919, -0.0689651295542717, -0.3975774347782135, 0.1182754710316658, 0.10451042652130127, 0.013810385018587112, 0.27481141686439514, 0.028539737686514854, -0.12523649632930756, -0.005990567617118359, -0.11779426783323288, -0.38688427209854126, -0.256375253200531, 0.13177327811717987, -0.17771479487419128, 0.01841181516647339, 0.404435932636261, 0.16017788648605347, 0.16646379232406616, -0.29214486479759216, -0.3622276484966278, -0.042282041162252426, 0.1334696263074875, -0.04349379241466522, 0.18527767062187195, 0.3485695421695709, -0.2840799391269684, 0.3784767687320709, 0.24288906157016754, -0.5122998952865601, -0.14108560979366302, -0.27263084053993225, -0.029239363968372345, -0.07268907129764557, 0.06737210601568222, 0.14270082116127014, -0.3055771291255951, -0.06546884030103683, -0.0006729998858645558, 0.34674087166786194, -0.04100032150745392, 0.12588414549827576, 0.04871614649891853, -0.23691929876804352, 0.0019330934155732393, 0.25379279255867004, 0.22849956154823303, 0.24465663731098175, -0.45920270681381226, -0.09783817827701569, 0.31456872820854187, -0.017924770712852478, -0.16900332272052765, 0.1724623441696167, 0.21617643535137177, 0.14936597645282745, -0.060265976935625076, 0.2051677107810974, 0.3542279303073883, -0.30272573232650757, -0.33421412110328674, 0.10458997637033463, -0.28814974427223206, -0.49943631887435913, 0.03234092891216278, 0.060902807861566544, -0.0006798231042921543, 0.10404470562934875, -0.042171187698841095, -0.3407532572746277, 0.12075476348400116, 0.03561966121196747, -0.5237576365470886, 0.2544218599796295, 0.5446701645851135, -0.016373686492443085, -0.02542823925614357, -0.12888634204864502, -0.3430946469306946, 0.19785566627979279, 0.14037707448005676, 0.054471347481012344, 0.036712005734443665, 0.1544160097837448, 0.17454223334789276, -0.12684154510498047, 0.08580400794744492, -0.09543515741825104, -0.1772249937057495, 0.19450253248214722, 0.013030908070504665, 0.3939722180366516, 0.5494515895843506, 0.06488402932882309, -0.3999766409397125, -0.2042219489812851, 0.03571333363652229, -0.2271704524755478, 0.1765034943819046, 0.42787569761276245, 0.3945479691028595, -0.047024767845869064, 0.07510045170783997, -0.011027175933122635, 0.28155070543289185, 0.00961578730493784, -0.21091005206108093, 0.2346251904964447, 0.08188167959451675, -0.2415734827518463, 0.07868682593107224, 0.2926477789878845, 0.28934866189956665, -0.09177540987730026, 0.032261304557323456, 0.2211170494556427, -0.20145586133003235, -0.0546029731631279, 0.08865443617105484, 0.29562661051750183, -0.08880238980054855, -0.4509789049625397, -0.2570941746234894, 0.5002957582473755, -0.039548203349113464, -0.02086889185011387, -0.07503226399421692, 0.0755232572555542, -0.05294431373476982, 0.15842293202877045, -0.11409223079681396, 0.15477807819843292, -0.037726256996393204, -0.05912965536117554, -0.4671591520309448, -0.052928999066352844, 0.22411836683750153, -0.43858036398887634, -0.007665133569389582, 0.13175450265407562, -0.046288080513477325, 0.3177291452884674, 0.22819547355175018, 0.16151642799377441, 0.09794747829437256, -0.2021487057209015, -0.20776012539863586, -0.09145280718803406, 0.2668095827102661, 0.29076874256134033, -0.019216366112232208, 0.19565486907958984, 0.0562126599252224, -0.23100128769874573, -0.5293566584587097, -0.039803702384233475, 0.013005869463086128, -0.09802080690860748, -0.22998084127902985, -0.1332419365644455, 0.33717110753059387, -0.33504438400268555, -0.19458530843257904, 0.20707091689109802, -0.06920451670885086, 0.3786223828792572, -0.6263083219528198, -0.06222328916192055, -0.11877096444368362, -0.12420909851789474, -0.2760348916053772, -0.05202296003699303, 0.010321950539946556, -0.2586914300918579, 0.3558688163757324, 0.04935794323682785, 0.08481521904468536, 0.08254721015691757, -0.0007390716928057373, 0.16189326345920563, -0.14972823858261108, 0.204310342669487, -0.3001510202884674, -0.12423413246870041, -0.2505882680416107, -0.00016632142069283873, -0.22512663900852203, 0.3416084051132202, 0.031404849141836166, -0.1615673154592514, -0.47070980072021484, 0.20105421543121338, -0.3075321316719055, -0.05090963840484619, -0.31167367100715637, 0.193003311753273, 0.2237745225429535, 0.15178769826889038, -0.20707368850708008, 0.13810358941555023, 0.10404612123966217, -0.10741416364908218, -0.1088031530380249, 0.11961499601602554, 0.03148311749100685, 0.06556545197963715, -0.46396541595458984, -0.43908533453941345, -0.013932688161730766, 0.04091672971844673, 0.40105435252189636, 0.06592149287462234, -0.12235087156295776, 0.049697138369083405, -0.24709907174110413, -0.12648868560791016, -0.17555560171604156, 0.16636840999126434, -0.18759538233280182, -0.25544536113739014, 0.2479197084903717, 0.11192555725574493, -0.3266983926296234, -0.2127225399017334, 0.08012745529413223, 0.07626749575138092, -0.7130563259124756, -0.20004840195178986, -0.11349185556173325, -0.14745131134986877, -0.05904802307486534, 0.08652332425117493, -0.11033042520284653, 0.19841043651103973, 0.10983213782310486, -0.029258400201797485, -0.15767745673656464, -0.38244128227233887, 0.6548929214477539, 0.30791082978248596, 0.09668951481580734, -0.40281111001968384, 0.07456992566585541, 0.05198395252227783, 0.17514541745185852, 0.16730496287345886, -0.16686566174030304, -0.006051470525562763, -0.10989923030138016, -0.04088357836008072, 0.1531365066766739, -0.32985034584999084, 0.4263610243797302, 0.23925405740737915, 0.07831589877605438, 0.2785065174102783, 0.00042193153058178723, 0.048124928027391434, -0.029270896688103676, 0.49049174785614014, -0.1470152884721756, 0.04515242204070091, -0.23982930183410645, -0.1143430694937706, -0.15328145027160645, 0.030299637466669083, 0.010627650655806065, -0.2077554315328598, -0.12809665501117706, 0.14922432601451874, -0.16171923279762268, -0.03725871816277504, 0.27529069781303406, -0.7325527667999268, -0.0751449465751648, -0.09447259455919266, -0.028463896363973618, 0.04528409242630005, 0.4404407739639282, -0.10819799453020096, -0.11886099725961685, 0.1701606661081314, -0.008202237077057362, 0.6488147974014282, 0.06172560527920723, 0.4940750002861023, 0.3102579116821289, 0.19854450225830078, -0.3425167500972748, -0.3801373839378357, -0.4393661320209503, -0.17255248129367828, 0.5286619663238525, 0.15605442225933075, -0.2542397081851959, -0.28723573684692383, 0.21373064815998077, -0.10232779383659363, -0.19476118683815002, 0.09638472646474838, -0.420390248298645, -0.23837216198444366, 0.3322471082210541, -0.037344224750995636, 0.16446200013160706, 0.059560343623161316, -0.001673916238360107, 0.07826933264732361, 0.2368902862071991, -0.46082067489624023, 0.4027179479598999, 0.357806921005249, 0.12857793271541595, 0.35036274790763855, 0.02437189407646656, 0.3749040961265564, 0.11767177283763885, -0.4649381935596466, 0.23649786412715912, -0.156197190284729, -0.046192899346351624, 0.17196278274059296, -0.2602120339870453, 0.3416874408721924, -0.06599191576242447, -0.10732235759496689, -0.04898690804839134, -0.3839329779148102, 0.2862158715724945, -0.3703196048736572, 0.30199816823005676, 0.3484680652618408, 0.24248556792736053, 0.020128663629293442, -0.15553121268749237, 0.12221962213516235, -0.11809832602739334, -0.2628389596939087, -0.2113482505083084, -0.016153890639543533, -0.4556926488876343, 0.08491985499858856, -0.21041017770767212, 0.6448172926902771, 0.04535143822431564, 0.0006922032916918397, 0.10229914635419846, -0.34347450733184814, 0.5957662463188171, -0.1162123829126358, 0.13951745629310608, -0.2881874144077301, -0.08220303058624268, 0.0693964958190918, 0.06554319709539413, -0.15029017627239227, 0.4253511428833008, -0.15432775020599365, 0.42215755581855774, 0.1851940006017685, 0.007249599322676659, 0.036744892597198486, 0.1472466140985489, 0.5044360160827637, 0.1358221173286438, -0.2058902382850647, 0.1806865930557251, -0.227803573012352, 0.13816772401332855, -0.10229205340147018, -0.020023316144943237, 0.11156031489372253, -0.2711080312728882, -0.20803993940353394, -0.14581520855426788, -0.3024890720844269, -0.0870201513171196, 0.42410048842430115, 0.10370299965143204, -0.1666996330022812, 0.036885131150484085, 0.5649839043617249, 0.23046578466892242, -0.2195446938276291, -0.0636170357465744, 0.16688619554042816, 0.33945611119270325, 0.09629499912261963, 0.20728740096092224, 0.31981462240219116, 0.0012473862152546644, -0.23087488114833832, -0.016640568152070045, 0.08016343414783478, 0.17380845546722412, -0.3481498062610626, -0.10174190253019333, -0.046893779188394547, -0.12306785583496094, 0.2246159315109253, 0.28752249479293823, 0.1345016360282898, -0.2777552008628845, 0.14777609705924988, 0.042110513895750046, -0.482346773147583, 0.08805521577596664, 0.18621471524238586, -0.44669604301452637, 0.1284509301185608, 0.41104447841644287, -0.3931845724582672, 0.3199152946472168, 0.28903719782829285, -0.0767018124461174, -0.008669071830809116, -0.26833316683769226, 0.08293019980192184, 0.020792802795767784, -0.5002562999725342, 0.15103650093078613, 0.06824260205030441, -0.31271272897720337, -0.061799515038728714, 0.3585749566555023, 0.3742307126522064, -0.045723434537649155, -0.04591970145702362, 0.049566201865673065, -0.126606747508049, -0.03153615444898605, -0.052550822496414185, 0.29492413997650146, -0.09919526427984238, 0.2035389393568039, -0.0005556299583986402, 0.24771861732006073, -0.313847154378891, -0.1842353790998459, -0.36278706789016724, 0.1797093152999878, -0.0074263266287744045, -0.008049662224948406, -0.22068654000759125, -0.08024910092353821, 0.20637376606464386, -0.20195822417736053, -0.07713647186756134, -0.2378772795200348, 0.04907603561878204, 0.10978668183088303, -0.0619540773332119, 0.047542497515678406, -0.24244026839733124, 0.07746109366416931, 0.04003291204571724, 0.010938732884824276, -0.06157444044947624, 0.06705891340970993, 0.0970124825835228, 0.8924073576927185, 0.10893657803535461, -0.03452485054731369, 0.12641386687755585, -0.047205206006765366, -0.09084100276231766, -0.1398906111717224, -0.035314884036779404, 0.22051654756069183, 0.2597258687019348, 0.07087576389312744, -0.2479424923658371, 0.10922575742006302, -0.4701382517814636, 0.06705989688634872, -0.10033863037824631, -0.3349018394947052, 0.17072691023349762, -0.11029071360826492, 0.24509838223457336, -0.0020981619600206614, -0.056502509862184525, -0.07533791661262512, 0.1967262476682663, 0.2744040787220001, -0.14405952394008636, 0.29913797974586487, 0.3024626672267914, 0.1285298764705658, 0.20637568831443787, 0.27660566568374634, -0.08614088594913483, -0.0918448343873024, 0.04461647942662239, 0.1708592027425766, 0.25332051515579224, -0.15568190813064575, 0.014833576045930386, 0.2354181408882141, -0.37783244252204895, -0.13941773772239685, 0.2338898479938507, -0.5454509258270264, -0.25998538732528687, -0.0635320246219635, 0.35906147956848145, 0.47308382391929626, 0.2442905604839325, 0.2248540073633194, -0.11749666929244995, 0.5504235029220581, -0.10056505352258682, 0.11489911377429962, -0.1903003454208374, 0.15680843591690063, -0.026905106380581856, 0.4228309988975525, -0.22543436288833618, -0.28968170285224915, -0.14281858503818512, 0.07419490814208984, 0.01234168279916048, -0.4227364659309387, -0.36474236845970154, 0.07755865156650543, -0.27781540155410767, 0.09376965463161469, 0.027242856100201607, -0.06893499940633774, 0.4262218773365021, -0.01563047617673874, 0.029314499348402023, -0.36240601539611816, -0.6591200828552246, 0.08273105323314667, 0.24549682438373566, -0.03082001395523548, 0.35645776987075806, 0.01353516522794962, -0.023416513577103615, 0.08269395679235458, 0.48508596420288086, -0.021708162501454353, -0.15393714606761932, -0.13774919509887695, -0.29478421807289124, -0.19909724593162537, -0.1798347383737564, -0.19977378845214844, 0.11430671811103821, -0.0689535066485405, -0.20472604036331177, 0.2256322056055069, 0.13329380750656128, -0.03386787697672844, 0.481589138507843, -0.30655762553215027, -0.13529016077518463, -0.198516383767128, 0.47358205914497375, 0.053332529962062836, -0.08433876931667328, -0.04198852926492691, 0.004211546387523413, -0.26060906052589417, -0.17261022329330444, 0.010212781839072704, -0.06900633126497269, 0.26928141713142395, -0.3107890784740448, 0.0877804234623909, 0.08726014941930771, 0.4814494252204895, -0.2841918468475342, 0.13342556357383728, -0.15048432350158691, 0.1581677496433258, -0.1848752349615097, -0.1463608592748642, -0.036306753754615784, -0.16399908065795898, -0.1206066682934761, -0.05896001681685448, 0.1612272709608078, -0.07762620598077774, 0.05039281025528908, 0.3595694601535797, -0.11823903024196625, -0.06551525741815567, -0.34884077310562134, 0.34651774168014526, 0.06192454695701599, 0.36269137263298035, 0.23910881578922272, -0.12598620355129242, 0.13562239706516266, 0.11258178949356079, 0.08265521377325058, 0.10623190551996231, 0.16612546145915985, -0.09636033326387405, 0.27698031067848206, 0.19938376545906067, 0.08972760289907455, 0.49743983149528503, 0.05676296725869179, 0.17370863258838654, -0.2943830192089081, -0.33704063296318054, -0.36085042357444763, -0.10455361008644104, -0.29919224977493286, 0.40716424584388733, -0.0568980798125267, 0.005760271567851305, 0.10979535430669785, -0.12080230563879013, 0.1738741099834442, 0.3284973204135895, -0.23322448134422302, 0.14248110353946686, -0.06964561343193054, -0.021369915455579758, -0.011361010372638702, -0.15444062650203705, 0.15083613991737366, -0.06890153884887695, -0.15474046766757965, -0.5150070190429688, 0.6079292893409729, -0.17488989233970642, -0.1297062188386917, -0.07439366728067398, 0.3857114315032959, 0.32967710494995117, -0.1316089779138565, -0.588060200214386, -0.22726671397686005, 0.496027410030365, 0.19417224824428558, -0.4108330309391022, 0.33431515097618103, 0.13902877271175385, 0.2144576907157898, 0.09442729502916336, -0.08707515150308609, 0.30294397473335266, 0.04614280164241791, -0.0372205413877964, -0.2824229896068573 ]
https://github.com/huggingface/datasets/issues/245
SST-2 test labels are all -1
@yc1999 Sorry, I didn't solve this conflict. In the end, I just use a local data file provided by the previous work I followed(for consistent comparison), not use `datasets` package. Related information: https://github.com/thunlp/OpenAttack/issues/146#issuecomment-766323571
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1. ``` >>> import nlp >>> glue = nlp.load_dataset('glue', 'sst2') >>> glue {'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)} >>> list(l['label'] for l in glue['test']) [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] ```
33
SST-2 test labels are all -1 I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1. ``` >>> import nlp >>> glue = nlp.load_dataset('glue', 'sst2') >>> glue {'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)} >>> list(l['label'] for l in glue['test']) [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] ``` @yc1999 Sorry, I didn't solve this conflict. In the end, I just use a local data file provided by the previous work I followed(for consistent comparison), not use `datasets` package. Related information: https://github.com/thunlp/OpenAttack/issues/146#issuecomment-766323571
[ 0.3236769437789917, -0.36125344038009644, -0.0937504693865776, 0.17786209285259247, -0.0011136684333905578, 0.10074945539236069, 0.3361843526363373, 0.44995492696762085, 0.5752964615821838, 0.014867013320326805, -0.12565450370311737, 0.13467836380004883, -0.1473742127418518, 0.27732163667678833, 0.3333797752857208, -0.053047582507133484, 0.10838036239147186, 0.31975048780441284, -0.16760124266147614, -0.25683000683784485, -0.03263835608959198, 0.38257867097854614, -0.14461320638656616, 0.19946545362472534, -0.28053387999534607, 0.24851639568805695, 0.001721641281619668, -0.09634099900722504, -0.03161931410431862, -0.5869408249855042, 0.20443375408649445, 0.20650124549865723, 0.21466319262981415, 0.041023723781108856, -0.0001139118685387075, 0.043876927345991135, 0.1996445208787918, -0.13507598638534546, -0.2542116940021515, -0.12165837734937668, -0.1056760922074318, -0.2028762251138687, 0.04586144909262657, -0.10591481626033783, -0.33675137162208557, 0.15860410034656525, 0.0468209870159626, 0.007083714008331299, 0.1640627682209015, 0.15194353461265564, 0.17462971806526184, -0.041337575763463974, 0.0038408737163990736, 0.0002423987170914188, 0.09865259379148483, -0.3579418957233429, 0.007024348247796297, 0.04189831018447876, -0.04498930275440216, -0.1923680454492569, 0.285055011510849, 0.442539781332016, 0.16352276504039764, 0.3538922071456909, 0.08915657550096512, -0.1086176261305809, 0.2901032865047455, -0.24144740402698517, 0.057044535875320435, 0.10712696611881256, 0.15783290565013885, -0.15712085366249084, -0.24079108238220215, -0.11643821001052856, -0.05656171590089798, 0.10065731406211853, -0.005957157351076603, 0.02762320265173912, 0.21763697266578674, 0.29366713762283325, -0.019367307424545288, -0.09277704358100891, -0.16660168766975403, 0.08752434700727463, 0.0444381982088089, 0.5951554179191589, 0.05255754292011261, 0.132329523563385, 0.36679092049598694, 0.08864642679691315, -0.4231604337692261, 0.2890287935733795, -0.27835115790367126, 0.17419233918190002, -0.572379469871521, -0.18345683813095093, 0.19603918492794037, -0.002869453513994813, -0.21506595611572266, 0.10167307406663895, 0.025422101840376854, 0.027583910152316093, 0.3623884320259094, -0.05170734226703644, -0.01841701939702034, 0.32787567377090454, 0.5321332216262817, 0.3578609824180603, 0.027929458767175674, -0.1615816354751587, 0.043375205248594284, 0.16716915369033813, -0.32545217871665955, -0.25360924005508423, 0.05579063668847084, 0.20358990132808685, 0.07160685956478119, -0.3534899353981018, -0.3213396370410919, -0.0689651295542717, -0.3975774347782135, 0.1182754710316658, 0.10451042652130127, 0.013810385018587112, 0.27481141686439514, 0.028539737686514854, -0.12523649632930756, -0.005990567617118359, -0.11779426783323288, -0.38688427209854126, -0.256375253200531, 0.13177327811717987, -0.17771479487419128, 0.01841181516647339, 0.404435932636261, 0.16017788648605347, 0.16646379232406616, -0.29214486479759216, -0.3622276484966278, -0.042282041162252426, 0.1334696263074875, -0.04349379241466522, 0.18527767062187195, 0.3485695421695709, -0.2840799391269684, 0.3784767687320709, 0.24288906157016754, -0.5122998952865601, -0.14108560979366302, -0.27263084053993225, -0.029239363968372345, -0.07268907129764557, 0.06737210601568222, 0.14270082116127014, -0.3055771291255951, -0.06546884030103683, -0.0006729998858645558, 0.34674087166786194, -0.04100032150745392, 0.12588414549827576, 0.04871614649891853, -0.23691929876804352, 0.0019330934155732393, 0.25379279255867004, 0.22849956154823303, 0.24465663731098175, -0.45920270681381226, -0.09783817827701569, 0.31456872820854187, -0.017924770712852478, -0.16900332272052765, 0.1724623441696167, 0.21617643535137177, 0.14936597645282745, -0.060265976935625076, 0.2051677107810974, 0.3542279303073883, -0.30272573232650757, -0.33421412110328674, 0.10458997637033463, -0.28814974427223206, -0.49943631887435913, 0.03234092891216278, 0.060902807861566544, -0.0006798231042921543, 0.10404470562934875, -0.042171187698841095, -0.3407532572746277, 0.12075476348400116, 0.03561966121196747, -0.5237576365470886, 0.2544218599796295, 0.5446701645851135, -0.016373686492443085, -0.02542823925614357, -0.12888634204864502, -0.3430946469306946, 0.19785566627979279, 0.14037707448005676, 0.054471347481012344, 0.036712005734443665, 0.1544160097837448, 0.17454223334789276, -0.12684154510498047, 0.08580400794744492, -0.09543515741825104, -0.1772249937057495, 0.19450253248214722, 0.013030908070504665, 0.3939722180366516, 0.5494515895843506, 0.06488402932882309, -0.3999766409397125, -0.2042219489812851, 0.03571333363652229, -0.2271704524755478, 0.1765034943819046, 0.42787569761276245, 0.3945479691028595, -0.047024767845869064, 0.07510045170783997, -0.011027175933122635, 0.28155070543289185, 0.00961578730493784, -0.21091005206108093, 0.2346251904964447, 0.08188167959451675, -0.2415734827518463, 0.07868682593107224, 0.2926477789878845, 0.28934866189956665, -0.09177540987730026, 0.032261304557323456, 0.2211170494556427, -0.20145586133003235, -0.0546029731631279, 0.08865443617105484, 0.29562661051750183, -0.08880238980054855, -0.4509789049625397, -0.2570941746234894, 0.5002957582473755, -0.039548203349113464, -0.02086889185011387, -0.07503226399421692, 0.0755232572555542, -0.05294431373476982, 0.15842293202877045, -0.11409223079681396, 0.15477807819843292, -0.037726256996393204, -0.05912965536117554, -0.4671591520309448, -0.052928999066352844, 0.22411836683750153, -0.43858036398887634, -0.007665133569389582, 0.13175450265407562, -0.046288080513477325, 0.3177291452884674, 0.22819547355175018, 0.16151642799377441, 0.09794747829437256, -0.2021487057209015, -0.20776012539863586, -0.09145280718803406, 0.2668095827102661, 0.29076874256134033, -0.019216366112232208, 0.19565486907958984, 0.0562126599252224, -0.23100128769874573, -0.5293566584587097, -0.039803702384233475, 0.013005869463086128, -0.09802080690860748, -0.22998084127902985, -0.1332419365644455, 0.33717110753059387, -0.33504438400268555, -0.19458530843257904, 0.20707091689109802, -0.06920451670885086, 0.3786223828792572, -0.6263083219528198, -0.06222328916192055, -0.11877096444368362, -0.12420909851789474, -0.2760348916053772, -0.05202296003699303, 0.010321950539946556, -0.2586914300918579, 0.3558688163757324, 0.04935794323682785, 0.08481521904468536, 0.08254721015691757, -0.0007390716928057373, 0.16189326345920563, -0.14972823858261108, 0.204310342669487, -0.3001510202884674, -0.12423413246870041, -0.2505882680416107, -0.00016632142069283873, -0.22512663900852203, 0.3416084051132202, 0.031404849141836166, -0.1615673154592514, -0.47070980072021484, 0.20105421543121338, -0.3075321316719055, -0.05090963840484619, -0.31167367100715637, 0.193003311753273, 0.2237745225429535, 0.15178769826889038, -0.20707368850708008, 0.13810358941555023, 0.10404612123966217, -0.10741416364908218, -0.1088031530380249, 0.11961499601602554, 0.03148311749100685, 0.06556545197963715, -0.46396541595458984, -0.43908533453941345, -0.013932688161730766, 0.04091672971844673, 0.40105435252189636, 0.06592149287462234, -0.12235087156295776, 0.049697138369083405, -0.24709907174110413, -0.12648868560791016, -0.17555560171604156, 0.16636840999126434, -0.18759538233280182, -0.25544536113739014, 0.2479197084903717, 0.11192555725574493, -0.3266983926296234, -0.2127225399017334, 0.08012745529413223, 0.07626749575138092, -0.7130563259124756, -0.20004840195178986, -0.11349185556173325, -0.14745131134986877, -0.05904802307486534, 0.08652332425117493, -0.11033042520284653, 0.19841043651103973, 0.10983213782310486, -0.029258400201797485, -0.15767745673656464, -0.38244128227233887, 0.6548929214477539, 0.30791082978248596, 0.09668951481580734, -0.40281111001968384, 0.07456992566585541, 0.05198395252227783, 0.17514541745185852, 0.16730496287345886, -0.16686566174030304, -0.006051470525562763, -0.10989923030138016, -0.04088357836008072, 0.1531365066766739, -0.32985034584999084, 0.4263610243797302, 0.23925405740737915, 0.07831589877605438, 0.2785065174102783, 0.00042193153058178723, 0.048124928027391434, -0.029270896688103676, 0.49049174785614014, -0.1470152884721756, 0.04515242204070091, -0.23982930183410645, -0.1143430694937706, -0.15328145027160645, 0.030299637466669083, 0.010627650655806065, -0.2077554315328598, -0.12809665501117706, 0.14922432601451874, -0.16171923279762268, -0.03725871816277504, 0.27529069781303406, -0.7325527667999268, -0.0751449465751648, -0.09447259455919266, -0.028463896363973618, 0.04528409242630005, 0.4404407739639282, -0.10819799453020096, -0.11886099725961685, 0.1701606661081314, -0.008202237077057362, 0.6488147974014282, 0.06172560527920723, 0.4940750002861023, 0.3102579116821289, 0.19854450225830078, -0.3425167500972748, -0.3801373839378357, -0.4393661320209503, -0.17255248129367828, 0.5286619663238525, 0.15605442225933075, -0.2542397081851959, -0.28723573684692383, 0.21373064815998077, -0.10232779383659363, -0.19476118683815002, 0.09638472646474838, -0.420390248298645, -0.23837216198444366, 0.3322471082210541, -0.037344224750995636, 0.16446200013160706, 0.059560343623161316, -0.001673916238360107, 0.07826933264732361, 0.2368902862071991, -0.46082067489624023, 0.4027179479598999, 0.357806921005249, 0.12857793271541595, 0.35036274790763855, 0.02437189407646656, 0.3749040961265564, 0.11767177283763885, -0.4649381935596466, 0.23649786412715912, -0.156197190284729, -0.046192899346351624, 0.17196278274059296, -0.2602120339870453, 0.3416874408721924, -0.06599191576242447, -0.10732235759496689, -0.04898690804839134, -0.3839329779148102, 0.2862158715724945, -0.3703196048736572, 0.30199816823005676, 0.3484680652618408, 0.24248556792736053, 0.020128663629293442, -0.15553121268749237, 0.12221962213516235, -0.11809832602739334, -0.2628389596939087, -0.2113482505083084, -0.016153890639543533, -0.4556926488876343, 0.08491985499858856, -0.21041017770767212, 0.6448172926902771, 0.04535143822431564, 0.0006922032916918397, 0.10229914635419846, -0.34347450733184814, 0.5957662463188171, -0.1162123829126358, 0.13951745629310608, -0.2881874144077301, -0.08220303058624268, 0.0693964958190918, 0.06554319709539413, -0.15029017627239227, 0.4253511428833008, -0.15432775020599365, 0.42215755581855774, 0.1851940006017685, 0.007249599322676659, 0.036744892597198486, 0.1472466140985489, 0.5044360160827637, 0.1358221173286438, -0.2058902382850647, 0.1806865930557251, -0.227803573012352, 0.13816772401332855, -0.10229205340147018, -0.020023316144943237, 0.11156031489372253, -0.2711080312728882, -0.20803993940353394, -0.14581520855426788, -0.3024890720844269, -0.0870201513171196, 0.42410048842430115, 0.10370299965143204, -0.1666996330022812, 0.036885131150484085, 0.5649839043617249, 0.23046578466892242, -0.2195446938276291, -0.0636170357465744, 0.16688619554042816, 0.33945611119270325, 0.09629499912261963, 0.20728740096092224, 0.31981462240219116, 0.0012473862152546644, -0.23087488114833832, -0.016640568152070045, 0.08016343414783478, 0.17380845546722412, -0.3481498062610626, -0.10174190253019333, -0.046893779188394547, -0.12306785583496094, 0.2246159315109253, 0.28752249479293823, 0.1345016360282898, -0.2777552008628845, 0.14777609705924988, 0.042110513895750046, -0.482346773147583, 0.08805521577596664, 0.18621471524238586, -0.44669604301452637, 0.1284509301185608, 0.41104447841644287, -0.3931845724582672, 0.3199152946472168, 0.28903719782829285, -0.0767018124461174, -0.008669071830809116, -0.26833316683769226, 0.08293019980192184, 0.020792802795767784, -0.5002562999725342, 0.15103650093078613, 0.06824260205030441, -0.31271272897720337, -0.061799515038728714, 0.3585749566555023, 0.3742307126522064, -0.045723434537649155, -0.04591970145702362, 0.049566201865673065, -0.126606747508049, -0.03153615444898605, -0.052550822496414185, 0.29492413997650146, -0.09919526427984238, 0.2035389393568039, -0.0005556299583986402, 0.24771861732006073, -0.313847154378891, -0.1842353790998459, -0.36278706789016724, 0.1797093152999878, -0.0074263266287744045, -0.008049662224948406, -0.22068654000759125, -0.08024910092353821, 0.20637376606464386, -0.20195822417736053, -0.07713647186756134, -0.2378772795200348, 0.04907603561878204, 0.10978668183088303, -0.0619540773332119, 0.047542497515678406, -0.24244026839733124, 0.07746109366416931, 0.04003291204571724, 0.010938732884824276, -0.06157444044947624, 0.06705891340970993, 0.0970124825835228, 0.8924073576927185, 0.10893657803535461, -0.03452485054731369, 0.12641386687755585, -0.047205206006765366, -0.09084100276231766, -0.1398906111717224, -0.035314884036779404, 0.22051654756069183, 0.2597258687019348, 0.07087576389312744, -0.2479424923658371, 0.10922575742006302, -0.4701382517814636, 0.06705989688634872, -0.10033863037824631, -0.3349018394947052, 0.17072691023349762, -0.11029071360826492, 0.24509838223457336, -0.0020981619600206614, -0.056502509862184525, -0.07533791661262512, 0.1967262476682663, 0.2744040787220001, -0.14405952394008636, 0.29913797974586487, 0.3024626672267914, 0.1285298764705658, 0.20637568831443787, 0.27660566568374634, -0.08614088594913483, -0.0918448343873024, 0.04461647942662239, 0.1708592027425766, 0.25332051515579224, -0.15568190813064575, 0.014833576045930386, 0.2354181408882141, -0.37783244252204895, -0.13941773772239685, 0.2338898479938507, -0.5454509258270264, -0.25998538732528687, -0.0635320246219635, 0.35906147956848145, 0.47308382391929626, 0.2442905604839325, 0.2248540073633194, -0.11749666929244995, 0.5504235029220581, -0.10056505352258682, 0.11489911377429962, -0.1903003454208374, 0.15680843591690063, -0.026905106380581856, 0.4228309988975525, -0.22543436288833618, -0.28968170285224915, -0.14281858503818512, 0.07419490814208984, 0.01234168279916048, -0.4227364659309387, -0.36474236845970154, 0.07755865156650543, -0.27781540155410767, 0.09376965463161469, 0.027242856100201607, -0.06893499940633774, 0.4262218773365021, -0.01563047617673874, 0.029314499348402023, -0.36240601539611816, -0.6591200828552246, 0.08273105323314667, 0.24549682438373566, -0.03082001395523548, 0.35645776987075806, 0.01353516522794962, -0.023416513577103615, 0.08269395679235458, 0.48508596420288086, -0.021708162501454353, -0.15393714606761932, -0.13774919509887695, -0.29478421807289124, -0.19909724593162537, -0.1798347383737564, -0.19977378845214844, 0.11430671811103821, -0.0689535066485405, -0.20472604036331177, 0.2256322056055069, 0.13329380750656128, -0.03386787697672844, 0.481589138507843, -0.30655762553215027, -0.13529016077518463, -0.198516383767128, 0.47358205914497375, 0.053332529962062836, -0.08433876931667328, -0.04198852926492691, 0.004211546387523413, -0.26060906052589417, -0.17261022329330444, 0.010212781839072704, -0.06900633126497269, 0.26928141713142395, -0.3107890784740448, 0.0877804234623909, 0.08726014941930771, 0.4814494252204895, -0.2841918468475342, 0.13342556357383728, -0.15048432350158691, 0.1581677496433258, -0.1848752349615097, -0.1463608592748642, -0.036306753754615784, -0.16399908065795898, -0.1206066682934761, -0.05896001681685448, 0.1612272709608078, -0.07762620598077774, 0.05039281025528908, 0.3595694601535797, -0.11823903024196625, -0.06551525741815567, -0.34884077310562134, 0.34651774168014526, 0.06192454695701599, 0.36269137263298035, 0.23910881578922272, -0.12598620355129242, 0.13562239706516266, 0.11258178949356079, 0.08265521377325058, 0.10623190551996231, 0.16612546145915985, -0.09636033326387405, 0.27698031067848206, 0.19938376545906067, 0.08972760289907455, 0.49743983149528503, 0.05676296725869179, 0.17370863258838654, -0.2943830192089081, -0.33704063296318054, -0.36085042357444763, -0.10455361008644104, -0.29919224977493286, 0.40716424584388733, -0.0568980798125267, 0.005760271567851305, 0.10979535430669785, -0.12080230563879013, 0.1738741099834442, 0.3284973204135895, -0.23322448134422302, 0.14248110353946686, -0.06964561343193054, -0.021369915455579758, -0.011361010372638702, -0.15444062650203705, 0.15083613991737366, -0.06890153884887695, -0.15474046766757965, -0.5150070190429688, 0.6079292893409729, -0.17488989233970642, -0.1297062188386917, -0.07439366728067398, 0.3857114315032959, 0.32967710494995117, -0.1316089779138565, -0.588060200214386, -0.22726671397686005, 0.496027410030365, 0.19417224824428558, -0.4108330309391022, 0.33431515097618103, 0.13902877271175385, 0.2144576907157898, 0.09442729502916336, -0.08707515150308609, 0.30294397473335266, 0.04614280164241791, -0.0372205413877964, -0.2824229896068573 ]
https://github.com/huggingface/datasets/issues/242
UnicodeDecodeError when downloading GLUE-MNLI
It should be good now, thanks for noticing and fixing it ! I would say that it was because you are on windows but not 100% sure
When I run ```python dataset = nlp.load_dataset('glue', 'mnli') ``` I get an encoding error (could it be because I'm using Windows?) : ```python # Lots of error log lines later... ~\Miniconda3\envs\nlp\lib\site-packages\tqdm\std.py in __iter__(self) 1128 try: -> 1129 for obj in iterable: 1130 yield obj ~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\glue\5256cc2368cf84497abef1f1a5f66648522d5854b225162148cb8fc78a5a91cc\glue.py in _generate_examples(self, data_file, split, mrpc_files) 529 --> 530 for n, row in enumerate(reader): 531 if is_cola_non_test: ~\Miniconda3\envs\nlp\lib\csv.py in __next__(self) 110 self.fieldnames --> 111 row = next(self.reader) 112 self.line_num = self.reader.line_num ~\Miniconda3\envs\nlp\lib\encodings\cp1252.py in decode(self, input, final) 22 def decode(self, input, final=False): ---> 23 return codecs.charmap_decode(input,self.errors,decoding_table)[0] 24 UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 6744: character maps to <undefined> ``` Anyway this can be solved by specifying to decode in UTF when reading the csv file. I am proposing a PR if that's okay.
27
UnicodeDecodeError when downloading GLUE-MNLI When I run ```python dataset = nlp.load_dataset('glue', 'mnli') ``` I get an encoding error (could it be because I'm using Windows?) : ```python # Lots of error log lines later... ~\Miniconda3\envs\nlp\lib\site-packages\tqdm\std.py in __iter__(self) 1128 try: -> 1129 for obj in iterable: 1130 yield obj ~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\glue\5256cc2368cf84497abef1f1a5f66648522d5854b225162148cb8fc78a5a91cc\glue.py in _generate_examples(self, data_file, split, mrpc_files) 529 --> 530 for n, row in enumerate(reader): 531 if is_cola_non_test: ~\Miniconda3\envs\nlp\lib\csv.py in __next__(self) 110 self.fieldnames --> 111 row = next(self.reader) 112 self.line_num = self.reader.line_num ~\Miniconda3\envs\nlp\lib\encodings\cp1252.py in decode(self, input, final) 22 def decode(self, input, final=False): ---> 23 return codecs.charmap_decode(input,self.errors,decoding_table)[0] 24 UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 6744: character maps to <undefined> ``` Anyway this can be solved by specifying to decode in UTF when reading the csv file. I am proposing a PR if that's okay. It should be good now, thanks for noticing and fixing it ! I would say that it was because you are on windows but not 100% sure
[ 0.0960775762796402, -0.03137781471014023, -0.0775824785232544, 0.26406097412109375, 0.4257138669490814, -0.07900074124336243, -0.08543717861175537, 0.15145058929920197, 0.08581555634737015, 0.17578767240047455, 0.1594247668981552, 0.11346831172704697, -0.024907784536480904, -0.19148226082324982, 0.15886545181274414, -0.20885303616523743, 0.19392596185207367, 0.1727612018585205, -0.15495166182518005, -0.015184974297881126, -0.28600287437438965, 0.3500206172466278, 0.024488070979714394, 0.15659824013710022, -0.1144627183675766, -0.1852874904870987, -0.23074647784233093, 0.2669428586959839, -0.3331376314163208, -0.5159598588943481, -0.09309418499469757, -0.14117568731307983, 0.40583866834640503, -0.3424743115901947, -0.00010933079465758055, -0.07211479544639587, 0.3982739746570587, -0.1664467453956604, 0.054783932864665985, 0.11661536991596222, -0.015473646111786366, -0.33436599373817444, -0.17601607739925385, -0.24869632720947266, 0.3781099319458008, 0.3489082157611847, 0.07319065183401108, -0.32126864790916443, 0.024205848574638367, 0.265987366437912, 0.23782511055469513, 0.24776065349578857, 0.17812836170196533, 0.29542118310928345, 0.24418294429779053, -0.39067599177360535, -0.028495140373706818, 0.3495042622089386, 0.26385051012039185, -0.23853810131549835, 0.13456515967845917, 0.2473398894071579, -0.26120615005493164, 0.14233218133449554, -0.2731606364250183, 0.35875752568244934, 0.16235433518886566, -0.5745047330856323, -0.07329142093658447, 0.13750429451465607, -0.08252313733100891, -0.21084550023078918, -0.23247291147708893, -0.021466117352247238, 0.3149493932723999, -0.3452880084514618, 0.4538145065307617, 0.3430706858634949, -0.13913355767726898, 0.20289582014083862, 0.23957200348377228, -0.00550978584215045, 0.13211262226104736, 0.25914305448532104, 0.019059281796216965, 0.17141170799732208, -0.1949966847896576, -0.03386371210217476, 0.31587862968444824, -0.29770028591156006, -0.2757936120033264, -0.14276623725891113, -0.17715680599212646, 0.07203211635351181, -0.03561367467045784, -0.08120442181825638, -0.28427496552467346, 0.1435832679271698, 0.0846673846244812, -0.013463078998029232, 0.0946582481265068, -0.05734295770525932, 0.08996308594942093, 0.11085392534732819, 0.02082788571715355, 0.24171018600463867, -0.1470823884010315, -0.00042176441638730466, 0.42326676845550537, 0.10885989665985107, 0.3318253457546234, 0.01817299611866474, -0.18345864117145538, -0.29160958528518677, -0.16493619978427887, 0.2708427906036377, 0.2871670722961426, -0.06480447947978973, -0.3927215039730072, 0.08097095787525177, -0.10124222934246063, 0.06559175997972488, -0.2223988175392151, 0.07617680728435516, -0.18084360659122467, 0.20430877804756165, -0.1888335943222046, 0.3469960391521454, -0.2571711540222168, -0.35193708539009094, 0.014991178177297115, 0.3389761745929718, -0.1232423409819603, -0.02855214662849903, 0.19558152556419373, -0.028384452685713768, -0.0404227040708065, -0.06022873893380165, -0.15891361236572266, 0.02559121511876583, -0.24340899288654327, -0.08014628291130066, 0.05788577347993851, 0.2219349443912506, 0.11366588622331619, 0.18838098645210266, 0.09872440248727798, -0.6630218625068665, -0.23514455556869507, 0.05864095687866211, -0.14152148365974426, 0.044822387397289276, -0.15688729286193848, 0.153563991189003, -0.26864221692085266, -0.1982615441083908, -0.004966235253959894, -0.052148278802633286, 0.0420173816382885, 0.11564658582210541, 0.08025962859392166, -0.031869057565927505, 0.03760180249810219, -0.33391979336738586, 0.15398046374320984, 0.4237534999847412, -0.30735528469085693, 0.08815526962280273, 0.03435400500893593, -0.26267027854919434, 0.2700498700141907, 0.3727380037307739, 0.29507189989089966, -0.19702894985675812, -0.27106571197509766, 0.5628247857093811, 0.29697173833847046, -0.45102453231811523, -0.5493006110191345, 0.5310096144676208, -0.17517389357089996, -0.016425713896751404, 0.08717239648103714, 0.15768925845623016, 0.23525233566761017, 0.10921462625265121, 0.1837356835603714, 0.5050606727600098, -0.08011890947818756, 0.09823150932788849, -0.36594048142433167, -0.46183910965919495, 0.3761812746524811, 0.06762947887182236, -0.29855212569236755, -0.07299180328845978, 0.15564687550067902, -0.4404206871986389, 0.22563573718070984, 0.028715629130601883, 0.23879650235176086, 0.1448228657245636, 0.22140690684318542, -0.1668156087398529, -0.0042063589207828045, -0.13054554164409637, -0.16857491433620453, 0.007993803359568119, -0.10551901161670685, 0.25925150513648987, -0.657152533531189, -0.2187517285346985, -0.04679878056049347, -0.1435096561908722, -0.252524733543396, -0.10950644314289093, 0.18559220433235168, 0.07440916448831558, 0.3862217664718628, 0.2373245358467102, -0.1318560391664505, 0.5412453413009644, 0.03611612319946289, 0.1005549281835556, -0.25054529309272766, 0.38680317997932434, -0.13733281195163727, -0.22595596313476562, 0.06241923198103905, 0.3521328866481781, 0.14984029531478882, -0.11489273607730865, -0.021961640566587448, 0.29454538226127625, -0.1449633091688156, 0.04587765783071518, 0.15622831881046295, -0.09293363988399506, 0.3510420024394989, -0.3313711881637573, 0.1879146248102188, 0.28393787145614624, 0.20871958136558533, 0.011668386869132519, 0.40559932589530945, 0.2408418208360672, 0.07734110951423645, 0.23597197234630585, 0.18076474964618683, 0.2210741937160492, 0.2278280407190323, 0.02441495656967163, -0.2061997503042221, -0.4619484543800354, 0.26849913597106934, 0.033174414187669754, 0.1258944422006607, -0.0679655522108078, -0.23847484588623047, -0.05892859399318695, 0.647517204284668, -0.13615430891513824, 0.13654078543186188, -0.018666265532374382, -0.3090721666812897, 0.32965293526649475, -0.1149340271949768, 0.28587982058525085, 0.41028493642807007, -0.028452562168240547, -0.10261227190494537, 0.20411694049835205, 0.07722125202417374, -0.10808474570512772, 0.0749538242816925, -0.0833185538649559, -0.14472223818302155, -0.03376849740743637, -0.2238408476114273, 0.08573221415281296, -0.23101277649402618, 0.012782352045178413, -0.08084747195243835, 0.22514967620372772, -0.16223803162574768, -0.17880459129810333, -0.5618278980255127, -0.47075241804122925, -0.20298266410827637, -0.21179398894309998, -0.5013455748558044, -0.21584062278270721, -0.13239255547523499, -0.24134191870689392, -0.023419592529535294, -0.03383782133460045, -0.1416567713022232, -0.13578437268733978, -0.08208386600017548, -0.19614289700984955, 0.10376381129026413, -0.14614324271678925, -0.4340037405490875, 0.11213114857673645, 0.3220786452293396, 0.12119962275028229, 0.18147364258766174, -0.3321775197982788, 0.3115793764591217, -0.19616584479808807, -0.055311642587184906, 0.10366223752498627, -0.1345856785774231, 0.24022310972213745, 0.09636695683002472, -0.012690985575318336, 0.2656971514225006, -0.25913771986961365, 0.2570517957210541, -0.07767646014690399, -0.13772276043891907, 0.12003236263990402, 0.18955349922180176, -0.4034390449523926, -0.09659713506698608, -0.1397155374288559, -0.7030836939811707, -0.2230282872915268, 0.061533235013484955, -0.1293293982744217, 0.013376186601817608, -0.1952487826347351, -0.23667508363723755, 0.11218997836112976, -0.14537537097930908, -0.030458584427833557, -0.14518706500530243, -0.0018228002591058612, 0.5186718702316284, -0.16278713941574097, -0.45222488045692444, 0.15558475255966187, -0.19127710163593292, -0.033165618777275085, -0.1888067126274109, -0.3169984221458435, 0.03776963800191879, -0.42470449209213257, -0.0206881333142519, 0.11688794195652008, 0.19116759300231934, 0.16161410510540009, -0.1768023520708084, 0.11681204289197922, 0.10306621342897415, -0.11067690700292587, -0.21660655736923218, 0.2738521099090576, 0.27814409136772156, 0.1500491201877594, 0.1878761649131775, 0.13566505908966064, 0.009065704420208931, 0.19349774718284607, 0.04913552105426788, 0.5423482060432434, -0.21356262266635895, 0.3014673590660095, 0.31079286336898804, -0.09276103228330612, 0.006523968186229467, -0.19775769114494324, 0.2089512199163437, 0.1855599284172058, 0.016628582030534744, -0.29933005571365356, -0.16785068809986115, 0.26939719915390015, -0.3353399932384491, -0.33811959624290466, 0.05091378465294838, -0.038756273686885834, -0.05625603348016739, 0.08221843093633652, -0.05500473827123642, 0.13783329725265503, -0.2853703796863556, 0.1453658640384674, 0.46594342589378357, -0.21767479181289673, 0.16470882296562195, -0.14233389496803284, -0.6985323429107666, -0.3042915165424347, 0.15655279159545898, 0.3822276294231415, 0.6439922451972961, -0.06999114155769348, -0.015152310021221638, 0.1850126087665558, -0.18843550980091095, 0.40233954787254333, -0.48892393708229065, -0.15867681801319122, 0.21945323050022125, 0.41562792658805847, 0.11417297273874283, -0.1248086541891098, -0.4630337655544281, -0.08999879658222198, 0.31639164686203003, 0.10487239062786102, -0.01078377477824688, 0.01177352573722601, 0.11320741474628448, 0.17226482927799225, -0.09744566679000854, -0.11951185762882233, -0.4737187623977661, -0.46005070209503174, -0.2901911437511444, 0.024404503405094147, 0.06291806697845459, 0.3556578755378723, 0.20493704080581665, 0.2504352629184723, -0.019310789182782173, -0.13135674595832825, 0.027361923828721046, 0.16372257471084595, 0.1467251181602478, -0.03840136528015137, 0.011271472088992596, -0.17450986802577972, 0.21395298838615417, -0.199960857629776, 0.49321839213371277, 0.123847596347332, -0.10257089138031006, 0.05273924395442009, -0.4481795132160187, 0.4238172173500061, 0.1645689457654953, -0.051215000450611115, -0.07257980853319168, 0.06449655443429947, 0.13998928666114807, -0.23246152698993683, -0.07162215560674667, 0.43076640367507935, 0.08138849586248398, -0.28892919421195984, 0.05547467991709709, 0.30267614126205444, 0.18563705682754517, 0.2076050490140915, -0.05271884799003601, 0.16989640891551971, -0.09226375073194504, 0.006046824622899294, -0.03356281295418739, 0.8596189022064209, 0.13930654525756836, 0.04824059084057808, 0.0805300623178482, -0.48871397972106934, 0.4115583300590515, -0.07282057404518127, 0.07824011147022247, -0.23328548669815063, -0.26928216218948364, -0.0748390182852745, 0.2021312266588211, 0.5368658900260925, 0.017887676134705544, -0.4103855788707733, 0.21232102811336517, 0.25946322083473206, 0.17330732941627502, 0.22731360793113708, 0.41006696224212646, -0.41286957263946533, -0.3461410403251648, -0.2607559263706207, 0.14674848318099976, -0.05092968791723251, 0.15753783285617828, -0.002541802590712905, -0.18086498975753784, 0.15108853578567505, -0.1643083095550537, -0.37969109416007996, 0.14817945659160614, -0.5830647349357605, -0.10590945929288864, -0.11594991385936737, -0.05055626481771469, 0.027600901201367378, -0.03253375366330147, 0.4301753640174866, 0.07881426811218262, 0.14622199535369873, 0.02877628803253174, 0.5023574233055115, -0.13479526340961456, 0.26344913244247437, 0.06491594761610031, 0.0293691735714674, -0.16923972964286804, -0.2536669969558716, 0.050320010632276535, 0.10352818667888641, 0.09317280352115631, 0.045743752270936966, 0.030972857028245926, -0.16556395590305328, -0.009998515248298645, -0.17818588018417358, -0.059779901057481766, 0.1339133232831955, 0.19692596793174744, 0.13731516897678375, 0.053902313113212585, -0.16220708191394806, 0.21585454046726227, -0.05047224089503288, -0.2069849967956543, -0.11498577892780304, 0.09628965705633163, -0.0865575447678566, -0.338764488697052, -0.00004437185634742491, -0.08951977640390396, -0.3144168257713318, -0.17731450498104095, -0.049866657704114914, -0.29486754536628723, -0.1095598042011261, -0.24908146262168884, 0.09477653354406357, -0.0037870740052312613, -0.1460077315568924, 0.009966137818992138, 0.20507720112800598, -0.017566954717040062, 0.056715454906225204, -0.6207981705665588, -0.2790296673774719, 0.2701207995414734, 0.1170194074511528, -0.05110329017043114, 0.025099001824855804, 0.04355969280004501, 0.12526023387908936, -0.21932300925254822, -0.2847449779510498, 0.10456247627735138, -0.048023875802755356, 0.009142166934907436, 0.5306365489959717, -0.0797177404165268, 0.14519566297531128, 0.1064324900507927, 0.12818217277526855, 0.36853939294815063, -0.010017489083111286, -0.18604706227779388, -0.07284057140350342, 0.07237916439771652, 0.07004867494106293, -0.2626487612724304, 0.206520676612854, -0.14369457960128784, 0.009092921391129494, -0.001901706913486123, 0.10961983352899551, -0.042061612010002136, -0.078652024269104, 0.20500044524669647, -0.12442464381456375, 0.11314903199672699, -0.019208503887057304, 0.21280606091022491, -0.3043264150619507, 0.5440451502799988, 0.19881373643875122, 0.1885216385126114, -0.11736848950386047, 0.17261622846126556, 0.12180182337760925, -0.1342395693063736, -0.30077412724494934, 0.020139524713158607, 0.19695858657360077, -0.3434208929538727, 0.06762261688709259, 0.004234091844409704, 0.1457539200782776, 0.4197664260864258, -0.13850253820419312, -0.1265949010848999, 0.5794143080711365, 0.2061557173728943, -0.13759084045886993, 0.1366758942604065, 0.2641608417034149, -0.08641770482063293, 0.0020647989585995674, 0.24701924622058868, 0.28738853335380554, 0.141055628657341, 0.25851649045944214, -0.07540595531463623, 0.6104860305786133, -0.0110169043764472, -0.012119113467633724, 0.19573500752449036, 0.03420218452811241, 0.13932962715625763, -0.013900537975132465, 0.06413426995277405, -0.03792235255241394, 0.2962029278278351, -0.31296026706695557, 0.014259553514420986, 0.3813517987728119, 0.25220543146133423, -0.16196958720684052, -0.14295074343681335, 0.005067591089755297, 0.06381635367870331, -0.06137198582291603, 0.3057817220687866, 0.2115381360054016, 0.4559723138809204, -0.14304219186306, -0.1331111192703247, -0.0036835961509495974, 0.22210164368152618, -0.024474160745739937, 0.03299308195710182, 0.09958595782518387, 0.12237068265676498, -0.5756683349609375, 0.20163141191005707, 0.02974671497941017, -0.1971902847290039, 0.2701059579849243, 0.2281946837902069, -0.07450572401285172, -0.39438292384147644, -0.199198916554451, 0.01985856518149376, 0.1872204691171646, -0.33328354358673096, 0.250133216381073, 0.1700826734304428, 0.14096802473068237, -0.020706739276647568, -0.0072003197856247425, 0.5386070013046265, 0.4117138683795929, -0.41774308681488037, 0.06788291037082672, -0.25411808490753174, 0.0018235781462863088, 0.0017787687247619033, 0.1928379088640213, 0.36740443110466003, 0.34360477328300476, 0.18353316187858582, 0.1475745141506195, -0.09708984941244125, -0.1252163201570511, 0.08209574967622757, 0.06589989364147186, 0.1669124811887741, 0.26218077540397644, -0.12371259182691574, 0.22542724013328552, -0.4461049437522888, -0.1413816511631012, -0.6944618821144104, -0.007802749518305063, 0.20119677484035492, -0.1833673119544983, 0.20144546031951904, -0.10614120215177536, 0.08253417909145355, 0.08946635574102402, 0.284318208694458, 0.4724918007850647, 0.16242848336696625, -0.14314310252666473, -0.18142427504062653, -0.7731503248214722, 0.1070471704006195, -0.2013547718524933, -0.3078994154930115, -0.14619097113609314, 0.06860339641571045, -0.17061233520507812, 0.3500734269618988, 0.06150485575199127, 0.7089376449584961, -0.09088519960641861, 0.034772783517837524, -0.1442367136478424, -0.04009280726313591, 0.07910439372062683, -0.07475625723600388, -0.037070613354444504, -0.3391440212726593, 0.1330929845571518, -0.06519771367311478, 0.0161500945687294, -0.10798412561416626, -0.15411636233329773, -0.35098591446876526, 0.0500369593501091, 0.24327881634235382, 0.3958933651447296, 0.6262516975402832, -0.15792781114578247, -0.08461552113294601, -0.3797345757484436, -0.08116701990365982, -0.19521832466125488, 0.22091089189052582, -0.05061548575758934, -0.03092983365058899, -0.08457116782665253, 0.1616852581501007, -0.5174285173416138, 0.20824368298053741, 0.04109447821974754, 0.23995308578014374, -0.04593139514327049, 0.09102000296115875, 0.2638618052005768, 0.03510997071862221, 0.05312689021229744, 0.17807109653949738, -0.08145236223936081, 0.15013331174850464, 0.0537896603345871, -0.3257543742656708, 0.1363997757434845, -0.16207337379455566, -0.24246834218502045, 0.19623775780200958, 0.28755611181259155, 0.23239532113075256, 0.09413394331932068, -0.335471510887146, -0.08600687235593796, 0.07477778196334839, -0.16682472825050354, -0.250637948513031, 0.30786046385765076, -0.07068192213773727, -0.2163030058145523, -0.03885359689593315, 0.10735463351011276, 0.070081926882267, -0.24263206124305725, 0.1463136523962021, -0.3746825158596039 ]
https://github.com/huggingface/datasets/issues/242
UnicodeDecodeError when downloading GLUE-MNLI
On Windows Python supports Unicode almost everywhere, but one of the notable exceptions is open() where it uses the locale encoding schema. So platform independent python scripts would always set the encoding='utf-8' in calls to open explicitly. In the meantime: since Python 3.7 Windows users can set the default encoding for everything including open() to Unicode by setting this environment variable: set PYTHONUTF8=1 (details can be found in [PEP 540](https://www.python.org/dev/peps/pep-0540/)) For me this fixed the problem described by the OP.
When I run ```python dataset = nlp.load_dataset('glue', 'mnli') ``` I get an encoding error (could it be because I'm using Windows?) : ```python # Lots of error log lines later... ~\Miniconda3\envs\nlp\lib\site-packages\tqdm\std.py in __iter__(self) 1128 try: -> 1129 for obj in iterable: 1130 yield obj ~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\glue\5256cc2368cf84497abef1f1a5f66648522d5854b225162148cb8fc78a5a91cc\glue.py in _generate_examples(self, data_file, split, mrpc_files) 529 --> 530 for n, row in enumerate(reader): 531 if is_cola_non_test: ~\Miniconda3\envs\nlp\lib\csv.py in __next__(self) 110 self.fieldnames --> 111 row = next(self.reader) 112 self.line_num = self.reader.line_num ~\Miniconda3\envs\nlp\lib\encodings\cp1252.py in decode(self, input, final) 22 def decode(self, input, final=False): ---> 23 return codecs.charmap_decode(input,self.errors,decoding_table)[0] 24 UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 6744: character maps to <undefined> ``` Anyway this can be solved by specifying to decode in UTF when reading the csv file. I am proposing a PR if that's okay.
80
UnicodeDecodeError when downloading GLUE-MNLI When I run ```python dataset = nlp.load_dataset('glue', 'mnli') ``` I get an encoding error (could it be because I'm using Windows?) : ```python # Lots of error log lines later... ~\Miniconda3\envs\nlp\lib\site-packages\tqdm\std.py in __iter__(self) 1128 try: -> 1129 for obj in iterable: 1130 yield obj ~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\glue\5256cc2368cf84497abef1f1a5f66648522d5854b225162148cb8fc78a5a91cc\glue.py in _generate_examples(self, data_file, split, mrpc_files) 529 --> 530 for n, row in enumerate(reader): 531 if is_cola_non_test: ~\Miniconda3\envs\nlp\lib\csv.py in __next__(self) 110 self.fieldnames --> 111 row = next(self.reader) 112 self.line_num = self.reader.line_num ~\Miniconda3\envs\nlp\lib\encodings\cp1252.py in decode(self, input, final) 22 def decode(self, input, final=False): ---> 23 return codecs.charmap_decode(input,self.errors,decoding_table)[0] 24 UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 6744: character maps to <undefined> ``` Anyway this can be solved by specifying to decode in UTF when reading the csv file. I am proposing a PR if that's okay. On Windows Python supports Unicode almost everywhere, but one of the notable exceptions is open() where it uses the locale encoding schema. So platform independent python scripts would always set the encoding='utf-8' in calls to open explicitly. In the meantime: since Python 3.7 Windows users can set the default encoding for everything including open() to Unicode by setting this environment variable: set PYTHONUTF8=1 (details can be found in [PEP 540](https://www.python.org/dev/peps/pep-0540/)) For me this fixed the problem described by the OP.
[ 0.06596556305885315, 0.0692809522151947, -0.0075028701685369015, 0.14659938216209412, 0.4890400171279907, -0.13624103367328644, -0.005773112643510103, 0.07956148684024811, 0.05745308846235275, 0.3163621723651886, 0.15498386323451996, 0.12631505727767944, -0.06716315448284149, -0.17417725920677185, 0.077712282538414, -0.29716768860816956, 0.1926773637533188, 0.20517569780349731, -0.04928096756339073, -0.03394496440887451, -0.43677452206611633, 0.39713960886001587, 0.07370826601982117, 0.2630501687526703, -0.021935056895017624, -0.08675502985715866, -0.15293067693710327, 0.2397747039794922, -0.3016107380390167, -0.5756046175956726, -0.12371055781841278, -0.1266356259584427, 0.3628612458705902, -0.26855629682540894, -0.00011571259528864175, -0.01220046915113926, 0.3200546205043793, -0.2603190839290619, 0.13760989904403687, 0.1711813360452652, 0.028887296095490456, -0.29480457305908203, -0.15161773562431335, -0.17748387157917023, 0.35088545083999634, 0.2826942801475525, 0.16084644198417664, -0.4594707787036896, -0.12640604376792908, 0.28556200861930847, 0.1487494707107544, 0.3086083233356476, 0.14809902012348175, 0.4098854959011078, 0.10597530752420425, -0.37542054057121277, -0.10380572080612183, 0.35547786951065063, 0.2898300588130951, -0.286103755235672, -0.12150762230157852, 0.18851330876350403, -0.2729700207710266, 0.08025252819061279, -0.30738362669944763, 0.3867281675338745, 0.15437325835227966, -0.589497983455658, -0.11912738531827927, 0.07876456528902054, -0.10836692899465561, -0.27374887466430664, -0.3448261618614197, -0.11081379652023315, 0.16247722506523132, -0.3434241712093353, 0.3828714191913605, 0.38131949305534363, -0.19834041595458984, 0.375918447971344, 0.32339996099472046, 0.027124527841806412, 0.12974360585212708, 0.17889176309108734, -0.11494177579879761, 0.3030940294265747, -0.04841802641749382, 0.005220204126089811, 0.3293926417827606, -0.17606765031814575, -0.21788865327835083, -0.0927068367600441, -0.028195617720484734, -0.0783480778336525, -0.007780980784446001, -0.02757926657795906, -0.17305819690227509, 0.08976827561855316, 0.0650099515914917, 0.024376744404435158, 0.13493679463863373, 0.016054578125476837, -0.03775931894779205, 0.1903323233127594, -0.0071631246246397495, 0.15370844304561615, -0.1960659772157669, 0.11052720993757248, 0.5007563829421997, 0.005431219004094601, 0.39201611280441284, 0.08568941801786423, -0.09160765260457993, -0.33368605375289917, -0.14815258979797363, 0.3762512803077698, 0.3734871745109558, 0.048830095678567886, -0.32706332206726074, 0.12451153993606567, -0.09322056174278259, 0.08089407533407211, -0.2683212161064148, -0.01883026212453842, -0.13057076930999756, 0.4093027412891388, -0.18845704197883606, 0.3444759249687195, -0.41281306743621826, -0.30858609080314636, 0.06231997534632683, 0.26549288630485535, -0.05761249363422394, -0.021678311750292778, 0.1953626275062561, -0.006377118173986673, -0.04892366752028465, -0.06477836519479752, -0.06683765351772308, 0.09141691774129868, -0.1626489758491516, -0.10586515814065933, 0.15049871802330017, 0.21321368217468262, 0.11116629838943481, 0.07662481814622879, 0.16058512032032013, -0.7501699328422546, -0.3676736056804657, 0.13202621042728424, -0.11368358135223389, -0.032739486545324326, -0.16248033940792084, 0.0419723279774189, -0.2905905246734619, -0.26832905411720276, 0.043208733201026917, 0.08936315774917603, -0.012850823812186718, 0.05838053300976753, 0.14237037301063538, -0.06582390516996384, -0.12564700841903687, -0.28857091069221497, 0.191212996840477, 0.512086033821106, -0.2714206278324127, 0.11977802217006683, 0.2272905856370926, -0.2887927293777466, 0.1852329671382904, 0.3578079640865326, 0.24168847501277924, -0.3323734700679779, -0.19234704971313477, 0.4748019278049469, 0.24837613105773926, -0.5571576356887817, -0.5454273819923401, 0.42577314376831055, -0.12350243330001831, -0.03896681219339371, 0.1891019642353058, -0.014495372772216797, 0.1878451406955719, 0.02919194847345352, 0.15255622565746307, 0.5387169122695923, -0.19745463132858276, 0.19255110621452332, -0.2940201759338379, -0.49474260210990906, 0.3141418397426605, 0.14263218641281128, -0.17361995577812195, -0.08229249715805054, 0.12914681434631348, -0.4585205614566803, 0.17232823371887207, -0.11129459738731384, 0.2787627875804901, 0.02826731652021408, 0.331939697265625, -0.21118980646133423, 0.03807660564780235, -0.09157081693410873, -0.041545916348695755, -0.011097417213022709, -0.02371387928724289, 0.212142676115036, -0.6939575672149658, -0.26282334327697754, 0.07375584542751312, -0.12024105340242386, -0.21305249631404877, -0.05977744609117508, 0.07056242227554321, 0.13115786015987396, 0.3312770128250122, 0.3530179560184479, -0.25604820251464844, 0.44441214203834534, 0.02911088429391384, 0.05963459238409996, -0.18609768152236938, 0.2995326817035675, -0.03321734443306923, -0.18522541224956512, -0.032802000641822815, 0.4689342975616455, 0.027845609933137894, -0.11686249077320099, -0.013039417564868927, 0.29949426651000977, 0.007141460664570332, 0.08742804080247879, 0.09967923164367676, 0.03509202599525452, 0.44629570841789246, -0.28422603011131287, 0.13988937437534332, 0.43770894408226013, 0.14055123925209045, 0.1681511253118515, 0.29215583205223083, 0.4354318380355835, 0.04503488168120384, 0.14077380299568176, 0.21761322021484375, 0.1677333116531372, 0.20797045528888702, 0.08859079331159592, -0.41422590613365173, -0.48249584436416626, 0.13219790160655975, 0.0846031904220581, 0.20979423820972443, -0.0038137263618409634, -0.3643810451030731, -0.1360853910446167, 0.77564537525177, -0.14777891337871552, 0.16501931846141815, 0.07730244100093842, -0.10303949564695358, 0.34320318698883057, -0.11691291630268097, 0.21652697026729584, 0.4581330120563507, -0.0990951657295227, -0.060024600476026535, 0.26319846510887146, 0.0864502415060997, -0.08633359521627426, 0.06015888974070549, -0.002135210670530796, -0.2038656622171402, 0.03362686559557915, -0.18103842437267303, 0.060292840003967285, -0.2386878877878189, -0.0007922172662802041, -0.07269514352083206, 0.13444183766841888, -0.1566101461648941, 0.018895883113145828, -0.5958064794540405, -0.3180299699306488, -0.2905769944190979, -0.15697740018367767, -0.37283217906951904, -0.17783275246620178, -0.08260457962751389, -0.2205182909965515, -0.15350770950317383, -0.00985823106020689, -0.380683571100235, -0.058335963636636734, -0.16454589366912842, -0.3551079034805298, 0.2879946529865265, -0.15195056796073914, -0.3765113651752472, 0.04586321488022804, 0.29718801379203796, -0.07450368255376816, 0.05274210125207901, -0.391245037317276, 0.21988308429718018, -0.11617282032966614, -0.1598164439201355, 0.10455390065908432, -0.01261208951473236, 0.13502182066440582, 0.07287482172250748, -0.2613958716392517, 0.13423451781272888, -0.32894882559776306, 0.2606322765350342, -0.10184553265571594, -0.050746139138936996, 0.05796307325363159, 0.1840217262506485, -0.33691656589508057, -0.0888143852353096, -0.04773429036140442, -0.6349598169326782, -0.26218968629837036, 0.10858369618654251, -0.21646277606487274, -0.029640374705195427, -0.3215067386627197, -0.2497013956308365, -0.03218764439225197, -0.08244094997644424, -0.0988866537809372, -0.048478007316589355, -0.040888071060180664, 0.48047035932540894, -0.21169333159923553, -0.3819882869720459, 0.12539103627204895, -0.26140308380126953, -0.09493887424468994, -0.008432663045823574, -0.25963476300239563, -0.12060873955488205, -0.41507595777511597, 0.06790013611316681, 0.0816442221403122, 0.2113177627325058, 0.18883755803108215, -0.06624597311019897, 0.1889105588197708, 0.02852608822286129, -0.21332871913909912, -0.20139619708061218, 0.3152658939361572, 0.12870420515537262, 0.19945962727069855, 0.16979056596755981, 0.2229827344417572, -0.13162074983119965, 0.17205409705638885, 0.15817934274673462, 0.5512165427207947, -0.20447856187820435, 0.38490933179855347, 0.2994396388530731, 0.0794234499335289, 0.0352446511387825, -0.16225740313529968, 0.1220693364739418, 0.25170081853866577, 0.08815854042768478, -0.3062874376773834, -0.16598473489284515, 0.20798300206661224, -0.34732410311698914, -0.5740137696266174, 0.1600889265537262, -0.11924826353788376, 0.035902705043554306, -0.051987435668706894, 0.041447561234235764, 0.11850741505622864, -0.16472873091697693, 0.15011195838451385, 0.46509218215942383, -0.08521796017885208, 0.26896047592163086, -0.028831593692302704, -0.5663642883300781, -0.3229431211948395, 0.011827254667878151, 0.3666900098323822, 0.7510470151901245, -0.03677894175052643, -0.058035481721162796, 0.13670136034488678, -0.2418794184923172, 0.2690560519695282, -0.45556992292404175, -0.1715729981660843, 0.07084470242261887, 0.3321162462234497, 0.04978169873356819, -0.08531846851110458, -0.3413790762424469, -0.09957429766654968, 0.09290283918380737, 0.017955688759684563, 0.0016850808169692755, -0.004817580804228783, 0.04947273060679436, 0.15624165534973145, -0.04991428181529045, 0.0009694829932413995, -0.4999702572822571, -0.5834293365478516, -0.2735544741153717, 0.03564843535423279, 0.17986898124217987, 0.20006145536899567, 0.24407680332660675, 0.3113577663898468, -0.09078972041606903, -0.13108882308006287, 0.12079319357872009, 0.13930782675743103, 0.08242618292570114, -0.11104121804237366, -0.07695829123258591, -0.21786536276340485, 0.09862231463193893, -0.13958284258842468, 0.5598424673080444, 0.11881264299154282, -0.3939179480075836, 0.08080419152975082, -0.39137718081474304, 0.4750376045703888, 0.22057455778121948, -0.04822501167654991, -0.15263721346855164, 0.02959732711315155, 0.05468725040555, -0.32512736320495605, -0.10332723706960678, 0.3757905662059784, 0.10711854696273804, -0.31140661239624023, -0.042333200573921204, 0.2519546449184418, 0.1587756723165512, 0.19819609820842743, 0.0016090304125100374, 0.2698320746421814, -0.08528073132038116, 0.1210038959980011, 0.1067470833659172, 0.7687663435935974, 0.11353828012943268, 0.09853658825159073, 0.14861087501049042, -0.4876008629798889, 0.3208141028881073, -0.008652363903820515, 0.08975788205862045, -0.17351390421390533, -0.2528038024902344, -0.11899673938751221, 0.23381975293159485, 0.5631158947944641, -0.07957462221384048, -0.34196385741233826, 0.19240866601467133, 0.3476180136203766, 0.10653071105480194, 0.3265293538570404, 0.394489049911499, -0.5686739683151245, -0.3911685347557068, -0.36753490567207336, 0.037581782788038254, 0.025379179045557976, 0.12020604312419891, 0.04900028929114342, -0.19874943792819977, 0.1520530879497528, -0.21517707407474518, -0.35688847303390503, 0.02659863419830799, -0.561429500579834, -0.06911005079746246, -0.1016760990023613, -0.1371915340423584, 0.08281992375850677, 0.12399491667747498, 0.5200182199478149, 0.042765356600284576, 0.1907685101032257, -0.03253233805298805, 0.4909975230693817, -0.08638741821050644, 0.28429660201072693, -0.005327652674168348, -0.02083616703748703, -0.0911150872707367, -0.24476851522922516, 0.030483851209282875, 0.12656955420970917, 0.01510441955178976, 0.04853737726807594, 0.021335361525416374, -0.13587069511413574, 0.07949939370155334, -0.1674150824546814, -0.21601903438568115, 0.07476288080215454, 0.3042263090610504, 0.05336624011397362, -0.031026247888803482, -0.0037373085506260395, 0.19651450216770172, -0.1772780865430832, -0.2435430884361267, -0.05394188314676285, -0.05637650936841965, -0.2146797925233841, -0.37885549664497375, -0.06939609348773956, -0.18190310895442963, -0.26666122674942017, -0.05699329078197479, 0.0404924638569355, -0.23939329385757446, -0.008552259765565395, -0.2823263704776764, 0.03700484707951546, -0.08032378554344177, -0.13168887794017792, -0.04846302047371864, 0.14407341182231903, -0.0317690409719944, 0.07222948223352432, -0.6231851577758789, -0.24283795058727264, 0.3059757649898529, 0.10474105179309845, -0.14493624866008759, 0.11050893366336823, 0.13055917620658875, 0.0126918600872159, -0.3582843244075775, -0.19653142988681793, 0.13186733424663544, 0.06097305193543434, -0.0028748956974595785, 0.4972388744354248, -0.0034720380790531635, 0.09573034942150116, 0.12361321598291397, 0.0042773704044520855, 0.37769243121147156, 0.011891770176589489, -0.05825198069214821, -0.18051749467849731, 0.1287735551595688, 0.08751658350229263, -0.2672637104988098, 0.31878143548965454, -0.1304059773683548, 0.00470718601718545, -0.1004951074719429, 0.16127747297286987, 0.17796054482460022, -0.2146267145872116, 0.28108343482017517, -0.12747107446193695, 0.2242739498615265, -0.0038691875524818897, 0.12453217804431915, -0.18656955659389496, 0.6320704817771912, 0.22639404237270355, 0.2795949876308441, -0.10153602808713913, 0.24691036343574524, 0.23190651834011078, -0.024961480870842934, -0.24583539366722107, 0.09196403622627258, 0.12800279259681702, -0.22202706336975098, 0.10555881261825562, -0.057925328612327576, 0.126182422041893, 0.3847445845603943, -0.11868751794099808, -0.12199658155441284, 0.5793876051902771, 0.09306187182664871, -0.05751083791255951, 0.1211385577917099, 0.2755744457244873, -0.06880102306604385, 0.026489993557333946, 0.3882039785385132, 0.4089776873588562, 0.17655152082443237, 0.24062108993530273, -0.1253902167081833, 0.5952462553977966, 0.0011204199399799109, 0.1183709055185318, 0.36231619119644165, -0.04728640615940094, 0.18799912929534912, -0.07083455473184586, 0.01425151340663433, 0.06846582144498825, 0.25166329741477966, -0.3138507902622223, -0.0044324048794806, 0.3850509822368622, 0.2570829391479492, -0.20020143687725067, -0.20423078536987305, 0.011569148860871792, -0.1148199811577797, -0.02023596316576004, 0.31926342844963074, 0.2976195514202118, 0.3538496792316437, -0.21452808380126953, -0.025005292147397995, -0.004770328290760517, 0.24877896904945374, 0.04579704627394676, -0.09790085256099701, 0.17635582387447357, 0.1071157306432724, -0.5134836435317993, 0.2841790020465851, -0.046038880944252014, -0.17741239070892334, 0.35431066155433655, 0.2523791790008545, 0.08536294847726822, -0.24630732834339142, -0.14915914833545685, -0.0464264452457428, 0.3513020873069763, -0.299599289894104, 0.19494114816188812, 0.297938734292984, 0.11315663158893585, 0.027372518554329872, -0.11218464374542236, 0.5564966797828674, 0.35548916459083557, -0.47299104928970337, 0.11468831449747086, -0.346069872379303, 0.09187322854995728, 0.000027180800316273235, 0.11664057523012161, 0.328403502702713, 0.40902000665664673, 0.18224148452281952, 0.07900332659482956, 0.04787038639187813, -0.1397513896226883, 0.07072540372610092, 0.044209472835063934, 0.10398173332214355, 0.37874677777290344, 0.014495108276605606, 0.3178902864456177, -0.27248942852020264, -0.10723677277565002, -0.4920470416545868, -0.021880017593503, 0.19370704889297485, -0.09319985657930374, 0.1854054480791092, 0.016115834936499596, 0.01809055358171463, 0.2927778661251068, 0.12424015253782272, 0.3251206576824188, 0.19012442231178284, 0.005342705640941858, -0.1124478131532669, -0.7355494499206543, 0.1676694005727768, -0.057799577713012695, -0.41952043771743774, -0.11058937013149261, -0.09164009243249893, -0.09296504408121109, 0.423507958650589, -0.18732276558876038, 0.7202268838882446, 0.014637645334005356, 0.06413885205984116, -0.04721127077937126, -0.1410224735736847, 0.1466665267944336, -0.0634540393948555, -0.07974118739366531, -0.37954631447792053, 0.03561347350478172, -0.0526416189968586, -0.043156661093235016, -0.1462213695049286, -0.0894530713558197, -0.458620548248291, -0.008464565500617027, 0.1716288924217224, 0.5348659753799438, 0.6343559622764587, -0.2648262679576874, -0.05159510299563408, -0.34334877133369446, -0.02175174653530121, -0.33862027525901794, 0.2185107171535492, -0.10613534599542618, 0.001000986318103969, -0.26357781887054443, -0.017987212166190147, -0.4536591172218323, 0.2437254786491394, 0.07081728428602219, 0.2721256911754608, 0.04455311968922615, 0.1515185683965683, 0.22064019739627838, -0.053691715002059937, 0.02638203091919422, 0.32072713971138, -0.06571462750434875, 0.1566605567932129, 0.15683738887310028, -0.33247873187065125, 0.1384955495595932, -0.20538859069347382, -0.20749646425247192, 0.14610514044761658, 0.21877285838127136, 0.16763800382614136, 0.12322551757097244, -0.37702101469039917, 0.033798106014728546, -0.018949801102280617, -0.1387716829776764, -0.3186843693256378, 0.2775362730026245, -0.09343699365854263, -0.30464407801628113, -0.1472952663898468, 0.22299431264400482, 0.0477055124938488, -0.2741554379463196, 0.1133408173918724, -0.4106858968734741 ]
https://github.com/huggingface/datasets/issues/240
Deterministic dataset loading
I think using `sorted(glob.glob())` would actually solve this problem. Can you think of other reasons why dataset loading might not be deterministic? @mariamabarham @yjernite @lhoestq @thomwolf . I can do a sweep through the dataset scripts and fix the glob.glob() if you guys are ok with it
When calling: ```python import nlp dataset = nlp.load_dataset("trivia_qa", split="validation[:1%]") ``` the resulting dataset is not deterministic over different google colabs. After talking to @thomwolf, I suspect the reason to be the use of `glob.glob` in line: https://github.com/huggingface/nlp/blob/2e0a8639a79b1abc848cff5c669094d40bba0f63/datasets/trivia_qa/trivia_qa.py#L180 which seems to return an ordering of files that depends on the filesystem: https://stackoverflow.com/questions/6773584/how-is-pythons-glob-glob-ordered I think we should go through all the dataset scripts and make sure to have deterministic behavior. A simple solution for `glob.glob()` would be to just replace it with `sorted(glob.glob())` to have everything sorted by name. What do you think @lhoestq?
47
Deterministic dataset loading When calling: ```python import nlp dataset = nlp.load_dataset("trivia_qa", split="validation[:1%]") ``` the resulting dataset is not deterministic over different google colabs. After talking to @thomwolf, I suspect the reason to be the use of `glob.glob` in line: https://github.com/huggingface/nlp/blob/2e0a8639a79b1abc848cff5c669094d40bba0f63/datasets/trivia_qa/trivia_qa.py#L180 which seems to return an ordering of files that depends on the filesystem: https://stackoverflow.com/questions/6773584/how-is-pythons-glob-glob-ordered I think we should go through all the dataset scripts and make sure to have deterministic behavior. A simple solution for `glob.glob()` would be to just replace it with `sorted(glob.glob())` to have everything sorted by name. What do you think @lhoestq? I think using `sorted(glob.glob())` would actually solve this problem. Can you think of other reasons why dataset loading might not be deterministic? @mariamabarham @yjernite @lhoestq @thomwolf . I can do a sweep through the dataset scripts and fix the glob.glob() if you guys are ok with it
[ 0.12789835035800934, 0.06803488731384277, 0.01816319301724434, 0.16125646233558655, 0.14942049980163574, -0.09384425729513168, 0.2877911329269409, 0.07379557937383652, 0.20830638706684113, -0.057463500648736954, 0.10429210215806961, 0.3704170286655426, -0.15249019861221313, 0.11149147152900696, -0.012711863033473492, -0.0483887605369091, -0.02602684684097767, 0.17643515765666962, -0.05848541855812073, -0.18720097839832306, -0.3069527745246887, 0.07847383618354797, -0.45765411853790283, -0.36906787753105164, -0.264519065618515, 0.08991914242506027, -0.09915163367986679, 0.13413876295089722, -0.08303738385438919, -0.4587275981903076, 0.15707790851593018, 0.5054248571395874, 0.16285750269889832, 0.18232297897338867, -0.00011504536087159067, -0.2656956613063812, 0.4034861624240875, -0.10312625020742416, -0.44383230805397034, -0.3913384974002838, -0.39457711577415466, -0.030479060485959053, 0.13799504935741425, -0.0177150871604681, -0.27747640013694763, 0.026426151394844055, 0.3882412314414978, -0.26733317971229553, 0.2669373154640198, 0.04184281826019287, 0.17288903892040253, -0.12490236014127731, 0.003079916350543499, 0.13873709738254547, 0.010472980327904224, 0.06959185749292374, -0.02282947301864624, 0.45246779918670654, 0.1382262259721756, -0.2738259434700012, -0.06894494593143463, 0.10721531510353088, 0.031256452202796936, 0.10483013838529587, 0.48225072026252747, 0.12794896960258484, -0.2176276296377182, -0.40051352977752686, -0.10749904066324234, 0.24439403414726257, 0.5826348662376404, -0.1721653789281845, -0.2514909505844116, -0.3525470197200775, 0.2645472586154938, -0.1000303253531456, 0.12447155267000198, 0.380508691072464, -0.13450905680656433, -0.09593215584754944, -0.0022375714033842087, 0.16711126267910004, -0.1371523141860962, 0.07108672708272934, 0.08564602583646774, 0.5879833698272705, -0.013878156431019306, 0.02566387504339218, 0.0793040320277214, 0.26843735575675964, 0.2062186896800995, -0.2505572438240051, -0.06963188201189041, 0.14748311042785645, -0.3169851303100586, -0.11941846460103989, 0.16328755021095276, 0.5273427963256836, 0.09311690926551819, 0.18719053268432617, 0.22676557302474976, 0.06748020648956299, -0.15240782499313354, 0.008962488733232021, 0.39672353863716125, 0.5014609098434448, 0.01295305136591196, 0.08890356868505478, 0.33930161595344543, 0.010245165787637234, -0.14010991156101227, 0.2734241485595703, -0.060456402599811554, -0.31833919882774353, 0.1536528766155243, 0.09681852906942368, 0.14907024800777435, -0.23966462910175323, -0.44630882143974304, -0.28191015124320984, -0.2935081720352173, -0.04257559776306152, 0.025523988530039787, 0.24488426744937897, -0.30413487553596497, 0.1373264193534851, -0.20991039276123047, 0.1781621277332306, -0.11226443946361542, -0.06672533601522446, -0.04424718767404556, -0.11899060755968094, -0.3672458231449127, 0.15537327527999878, 0.17796486616134644, 0.07100223749876022, 0.1543089896440506, 0.26296448707580566, -0.22305603325366974, -0.09332329034805298, 0.031871747225522995, -0.33387088775634766, 0.03400854393839836, -0.012516427785158157, 0.10989256203174591, -0.08348686993122101, -0.21222397685050964, -0.09923730045557022, -0.36352428793907166, 0.10933369398117065, -0.2231634557247162, -0.10212554037570953, -0.11641805619001389, 0.13944987952709198, -0.3203217387199402, -0.1417475789785385, -0.4392813742160797, 0.34631189703941345, 0.06612788885831833, -0.08564160019159317, -0.1390952318906784, -0.2519536018371582, -0.3000764548778534, -0.35981065034866333, -0.14374980330467224, 0.564333975315094, -0.3339563310146332, 0.08831615000963211, -0.07750660181045532, 0.27937933802604675, 0.3261716961860657, 0.3118194043636322, -0.04331204667687416, 0.2612886428833008, -0.27118873596191406, -0.03484930843114853, 0.09159336239099503, -0.07655780762434006, -0.14798741042613983, 0.15606935322284698, -0.20977053046226501, 0.3643490672111511, -0.005924838595092297, 0.2887926697731018, 0.026955287903547287, -0.2857646346092224, 0.21222519874572754, 0.5817519426345825, 0.11252474039793015, 0.14555035531520844, -0.22289644181728363, -0.11607091128826141, 0.16065049171447754, 0.13416045904159546, -0.15292514860630035, 0.2557579278945923, -0.07974949479103088, -0.1022741049528122, 0.23646549880504608, 0.05878164991736412, -0.37616631388664246, 0.06547094881534576, 0.4298815429210663, 0.05662674456834793, -0.005900759715586901, 0.09191388636827469, -0.8025330901145935, 0.2653381824493408, -0.13567836582660675, 0.21970482170581818, -0.1007082611322403, -0.17107778787612915, -0.05981564521789551, -0.19293113052845, -0.3671400845050812, 0.043226346373558044, 0.10956625640392303, 0.3891427218914032, 0.27215510606765747, 0.2649306356906891, 0.1429009735584259, 0.5052407383918762, 0.022642595693469048, -0.1303788423538208, -0.40896934270858765, 0.4076075255870819, -0.05800163745880127, -0.1394967883825302, 0.300955206155777, 0.23228809237480164, 0.010630468837916851, -0.25687894225120544, -0.10995375365018845, 0.3478700816631317, 0.19225557148456573, 0.14909815788269043, 0.14226797223091125, -0.006386248394846916, 0.07905754446983337, 0.0635889321565628, 0.22845250368118286, 0.2303832471370697, -0.03064972162246704, -0.1422770768404007, -0.02376440353691578, 0.4832136034965515, -0.14083397388458252, 0.24325518310070038, 0.10688121616840363, -0.09188250452280045, 0.05768541246652603, 0.056152187287807465, -0.009857822209596634, -0.1848980337381363, 0.28721654415130615, 0.22416238486766815, 0.39847052097320557, 0.48911309242248535, -0.6162043809890747, 0.26853328943252563, 0.6741501092910767, 0.11728734523057938, 0.05457156524062157, 0.042246412485837936, 0.1281602382659912, -0.292338490486145, 0.24354322254657745, 0.31094104051589966, 0.5828957557678223, 0.1728074699640274, -0.12159450352191925, -0.048712823539972305, -0.13230979442596436, -0.25663241744041443, 0.008225743658840656, -0.049705881625413895, 0.23103143274784088, 0.06837014853954315, 0.3204987645149231, 0.27185550332069397, -0.22423388063907623, -0.11447972804307938, -0.11838019639253616, 0.03554887697100639, -0.1283753663301468, 0.17326386272907257, -0.24314942955970764, -0.31853342056274414, -0.35505205392837524, -0.09981822967529297, -0.330540269613266, -0.2406730055809021, 0.07259460538625717, 0.21840566396713257, 0.057144004851579666, -0.12663908302783966, 0.1862884908914566, 0.2984221875667572, -0.06907547265291214, -0.45958033204078674, -0.18096663057804108, -0.045052967965602875, -0.37602242827415466, -0.032173749059438705, 0.433727890253067, 0.25273847579956055, 0.4821341335773468, -0.13459260761737823, -0.20568202435970306, 0.14167432487010956, -0.2974397540092468, -0.13052557408809662, -0.30355510115623474, 0.33357763290405273, -0.08232152462005615, -0.0986534133553505, -0.02428176999092102, -0.08649095147848129, 0.011955572292208672, -0.009167035110294819, -0.03246282413601875, 0.00952374842017889, 0.06952424347400665, 0.002109363442286849, -0.04886705428361893, -0.34148648381233215, -0.28315338492393494, -0.14405986666679382, 0.08791141211986542, 0.2736332416534424, 0.13327835500240326, 0.3045845627784729, -0.079274021089077, -0.24785901606082916, 0.1371484249830246, 0.04496188834309578, -0.08069708943367004, -0.08782429993152618, 0.3428192734718323, -0.16083519160747528, -0.2361777275800705, -0.35031837224960327, -0.11388874053955078, -0.07062047719955444, 0.10050664842128754, -0.33239981532096863, -0.2848382890224457, -0.36241596937179565, 0.01004498265683651, -0.07570145279169083, -0.28654932975769043, 0.36449748277664185, 0.07750310748815536, 0.0695837140083313, 0.18889567255973816, -0.004141571465879679, 0.19653280079364777, 0.29209935665130615, 0.3772512674331665, 0.18176434934139252, 0.018390096724033356, -0.03392203152179718, 0.48459917306900024, -0.012619853019714355, -0.41455549001693726, 0.20607273280620575, 0.1587866097688675, 0.3422951102256775, -0.4762474000453949, -0.06830189377069473, 0.2320455014705658, 0.19107183814048767, -0.10547703504562378, 0.5191329121589661, -0.04053269699215889, -0.044740915298461914, -0.11590004712343216, 0.342336505651474, -0.20251703262329102, -0.22993075847625732, 0.03644752502441406, -0.23571771383285522, -0.22543023526668549, 0.10374976694583893, 0.0921148881316185, 0.053459007292985916, -0.36301514506340027, -0.2038317620754242, 0.14841505885124207, 0.18672233819961548, 0.06844048947095871, 0.2117999941110611, 0.049944378435611725, -0.5956822633743286, 0.10554370284080505, 0.013453018851578236, 0.053821105509996414, 0.025020763278007507, -0.07656778395175934, 0.2728620767593384, -0.02414535917341709, 0.24141806364059448, -0.024872517213225365, 0.21684549748897552, -0.00571250356733799, 0.08499691635370255, 0.08628187328577042, -0.31255948543548584, -0.29672539234161377, 0.0863681510090828, 0.18976439535617828, 0.20329992473125458, -0.4483339190483093, -0.11497800797224045, 0.025938119739294052, 0.14939206838607788, 0.007736251689493656, -0.5178690552711487, -0.5376976132392883, 0.01750124804675579, 0.16575606167316437, -0.18614400923252106, -0.036014750599861145, 0.1354912668466568, -0.5030946731567383, -0.1736021190881729, -0.017603065818548203, -0.21947365999221802, 0.2178477942943573, 0.23942501842975616, 0.2116108238697052, 0.06995417177677155, 0.06522932648658752, 0.08449822664260864, 0.16721631586551666, 0.20789232850074768, 0.34943413734436035, -0.0006081171450205147, -0.22741590440273285, -0.19796179234981537, -0.11079692840576172, 0.017690910026431084, 0.27276623249053955, -0.09006152302026749, -0.21789804100990295, -0.6402571201324463, 0.057564232498407364, -0.24213287234306335, 0.2026737779378891, 0.21560707688331604, -0.11611570417881012, -0.5116723775863647, -0.4302200973033905, 0.5949910879135132, 0.12571091949939728, -0.2779104709625244, 0.4554829001426697, -0.04011966660618782, -0.47836238145828247, 0.4830445647239685, 0.21970999240875244, 0.7067087888717651, -0.2930574417114258, 0.04725009948015213, 0.29379403591156006, 0.0922694206237793, 0.535089373588562, 0.16951370239257812, 0.3881171643733978, -0.5430070161819458, -0.2523650825023651, 0.020654384046792984, -0.08755901455879211, -0.07993298023939133, 0.3004677891731262, -0.4050036668777466, 0.5030624270439148, -0.025599602609872818, 0.15385864675045013, 0.042166583240032196, 0.5493948459625244, -0.09575533866882324, -0.05772829428315163, -0.3514423370361328, 0.06979496031999588, -0.19422647356987, 0.4118391275405884, -0.20533958077430725, -0.15898054838180542, 0.05300804600119591, 0.10065939277410507, -0.11761057376861572, 0.3257846236228943, -0.3543219268321991, -0.07403627783060074, -0.07025694102048874, -0.21413469314575195, 0.10646230727434158, 0.45084381103515625, 0.07952652126550674, 0.2360019087791443, -0.14523945748806, 0.05265485495328903, 0.08450513333082199, 0.11271201819181442, 0.10704629868268967, -0.20862503349781036, 0.37680304050445557, 0.20336462557315826, 0.0071975234895944595, -0.3862649202346802, 0.12449068576097488, -0.3595883846282959, -0.4590846598148346, 0.12551723420619965, -0.1770806461572647, 0.2942017614841461, -0.2412128895521164, 0.18948455154895782, 0.02868117205798626, 0.0004606217553373426, 0.12556736171245575, 0.02051331102848053, 0.1814471185207367, 0.3807779550552368, -0.02026008628308773, -0.4196609556674957, -0.03345154598355293, 0.16621950268745422, 0.0007936782785691321, 0.2514377236366272, 0.36384907364845276, -0.0406990684568882, -0.03578149899840355, -0.24256566166877747, -0.2162795513868332, -0.4363141357898712, -0.11387859284877777, 0.29434433579444885, 0.092098169028759, 0.17395631968975067, 0.11550796031951904, 0.24730221927165985, 0.057025372982025146, 0.052581340074539185, 0.08016759902238846, -0.488574743270874, 0.1931038647890091, -0.02877933718264103, -0.13976748287677765, 0.13698790967464447, -0.0747048631310463, 0.23657925426959991, 0.06570810824632645, 0.05166973918676376, -0.29571571946144104, -0.16755712032318115, -0.11781230568885803, -0.025816114619374275, -0.16185767948627472, -0.12591224908828735, 0.04135330021381378, 0.08271490782499313, 0.07512778788805008, -0.08218728750944138, -0.035324495285749435, -0.18889081478118896, 0.10417047142982483, 0.12739908695220947, 0.07882894575595856, 0.18925990164279938, -0.1316523551940918, -0.45766741037368774, -0.1448698788881302, -0.3531973361968994, 0.11292348802089691, 0.04598087817430496, 0.07414106279611588, 0.0992610827088356, 0.29130908846855164, 0.31272974610328674, 0.18480242788791656, 0.26874369382858276, -0.44187894463539124, -0.009345967322587967, 0.16262392699718475, 0.12643587589263916, 0.06363572925329208, 0.16829344630241394, -0.233718603849411, -0.04215399548411369, 0.0580381378531456, 0.2631937861442566, -0.05121106281876564, -0.19489504396915436, 0.0028900650795549154, -0.13890473544597626, 0.18379029631614685, 0.6173473596572876, 0.015210072509944439, -0.5521916747093201, 0.15069344639778137, 0.15565378963947296, -0.2441452145576477, 0.21165317296981812, -0.054729197174310684, 0.4376528859138489, -0.01048276387155056, 0.2724591791629791, 0.2875729501247406, 0.1769687384366989, -0.1432027518749237, -0.017197607085108757, 0.3120468556880951, 0.05534813553094864, 0.37015488743782043, 0.07855335623025894, 0.12383574992418289, 0.03755754604935646, 0.1584044098854065, -0.10392692685127258, -0.16509467363357544, 0.213720440864563, -0.016312822699546814, 0.31387564539909363, -0.17961595952510834, -0.0992458239197731, 0.13611088693141937, -0.15025795996189117, -0.03854930400848389, 0.8459667563438416, -0.01613532565534115, 0.16084305942058563, 0.32277610898017883, 0.3865441679954529, -0.3852497637271881, -0.12796856462955475, -0.44798073172569275, -0.129256471991539, -0.04151732474565506, -0.06600873172283173, -0.043492790311574936, 0.021512864157557487, -0.18416078388690948, 0.14295266568660736, -0.13115693628787994, -0.11422743648290634, -0.027445901185274124, 0.12467185407876968, -0.16555248200893402, -0.5515326261520386, 0.40797340869903564, -0.03897726535797119, 0.37587881088256836, -0.09090889245271683, 0.22647805511951447, -0.21930332481861115, 0.09742017090320587, 0.11956776678562164, 0.08587665110826492, 0.17305511236190796, 0.7899263501167297, -0.36346107721328735, -0.21632586419582367, -0.16526389122009277, 0.0856737419962883, -0.08641485124826431, 0.27286550402641296, -0.01512332633137703, -0.1341237723827362, 0.4716494679450989, 0.0751955583691597, -0.07717879861593246, 0.2771452069282532, 0.3830428123474121, 0.0813138410449028, -0.06716237217187881, 0.48099285364151, 0.05377229303121567, 0.023943020030856133, -0.04305882379412651, 0.24627141654491425, -0.35545068979263306, -0.15717731416225433, -0.07620235532522202, 0.018897194415330887, -0.15880507230758667, -0.2214759886264801, 0.06298314034938812, -0.09467156231403351, 0.4574962258338928, 0.2913876473903656, 0.23966041207313538, -0.354217529296875, -0.23833072185516357, -0.6219892501831055, 0.17198655009269714, 0.06919559091329575, -0.023501109331846237, -0.23157371580600739, 0.362477570772171, -0.38143402338027954, -0.008728204295039177, -0.42019468545913696, 0.3539232313632965, -0.09659504890441895, 0.038113877177238464, -0.5740285515785217, 0.0038932072930037975, -0.5121837258338928, -0.21964851021766663, -0.0817791074514389, -0.4147524833679199, -0.053451452404260635, -0.3010081946849823, -0.06599947065114975, -0.041164614260196686, 0.3028206527233124, 0.08586917072534561, 0.4274733364582062, 0.3033767342567444, 0.10916131734848022, 0.35284191370010376, 0.05523727089166641, -0.07557811588048935, -0.34621936082839966, -0.09922677278518677, -0.3638627529144287, 0.2536388337612152, 0.10998126119375229, 0.1332288682460785, 0.0013371669920161366, 0.33801892399787903, -0.18647132813930511, 0.44350793957710266, 0.025188088417053223, 0.19686360657215118, -0.3721696734428406, -0.20783284306526184, -0.14902949333190918, 0.0654221698641777, -0.11958244442939758, 0.10910823941230774, 0.05821589380502701, 0.0485963448882103, -0.2353590875864029, -0.16287697851657867, 0.4360441565513611, -0.14769771695137024, -0.21438059210777283, -0.06880780309438705, 0.27429842948913574, 0.1284196376800537, -0.25268951058387756, -0.43344932794570923, 0.06096723675727844, 0.2695484161376953, -0.005993806291371584, 0.14710326492786407, 0.3941015303134918, -0.006193757522851229, 0.14050765335559845, -0.19483943283557892, 0.049696724861860275, -0.13015414774417877, -0.2397855967283249, -0.09459452331066132, -0.22265616059303284 ]
https://github.com/huggingface/datasets/issues/240
Deterministic dataset loading
I'm pretty sure it would solve the problem too. The only other dataset that is not deterministic right now is `blog_authorship_corpus` (see #215) but this is a problem related to string encodings.
When calling: ```python import nlp dataset = nlp.load_dataset("trivia_qa", split="validation[:1%]") ``` the resulting dataset is not deterministic over different google colabs. After talking to @thomwolf, I suspect the reason to be the use of `glob.glob` in line: https://github.com/huggingface/nlp/blob/2e0a8639a79b1abc848cff5c669094d40bba0f63/datasets/trivia_qa/trivia_qa.py#L180 which seems to return an ordering of files that depends on the filesystem: https://stackoverflow.com/questions/6773584/how-is-pythons-glob-glob-ordered I think we should go through all the dataset scripts and make sure to have deterministic behavior. A simple solution for `glob.glob()` would be to just replace it with `sorted(glob.glob())` to have everything sorted by name. What do you think @lhoestq?
32
Deterministic dataset loading When calling: ```python import nlp dataset = nlp.load_dataset("trivia_qa", split="validation[:1%]") ``` the resulting dataset is not deterministic over different google colabs. After talking to @thomwolf, I suspect the reason to be the use of `glob.glob` in line: https://github.com/huggingface/nlp/blob/2e0a8639a79b1abc848cff5c669094d40bba0f63/datasets/trivia_qa/trivia_qa.py#L180 which seems to return an ordering of files that depends on the filesystem: https://stackoverflow.com/questions/6773584/how-is-pythons-glob-glob-ordered I think we should go through all the dataset scripts and make sure to have deterministic behavior. A simple solution for `glob.glob()` would be to just replace it with `sorted(glob.glob())` to have everything sorted by name. What do you think @lhoestq? I'm pretty sure it would solve the problem too. The only other dataset that is not deterministic right now is `blog_authorship_corpus` (see #215) but this is a problem related to string encodings.
[ 0.11379385739564896, 0.1788545846939087, 0.018952539190649986, 0.1695961207151413, 0.1481841802597046, -0.06933770328760147, 0.2104986310005188, 0.11594631522893906, 0.16639618575572968, 0.003602587850764394, 0.12946604192256927, 0.38100728392601013, -0.1616070717573166, 0.10549845546483994, -0.04211568832397461, -0.0011642476310953498, -0.011005657725036144, 0.1828363835811615, 0.02340337075293064, -0.21692003309726715, -0.3032740652561188, 0.09481734037399292, -0.49228841066360474, -0.4265713691711426, -0.26381078362464905, 0.050532035529613495, -0.049449365586042404, 0.0728168934583664, -0.08217943459749222, -0.4266442656517029, 0.08840413391590118, 0.5214288234710693, 0.12974385917186737, 0.2086428701877594, -0.00011583462764974684, -0.2780812978744507, 0.3429805338382721, -0.1384105235338211, -0.4034912884235382, -0.45848867297172546, -0.42352616786956787, 0.0029787623789161444, 0.08928381651639938, -0.017120083793997765, -0.2904823124408722, 0.11056160181760788, 0.47176894545555115, -0.26517772674560547, 0.2556126117706299, 0.16044411063194275, 0.17069755494594574, -0.13255853950977325, -0.006910127587616444, 0.16139306128025055, 0.008453761227428913, 0.11360685527324677, -0.07889170944690704, 0.36573728919029236, 0.05994878709316254, -0.23728905618190765, -0.10263189673423767, 0.12624654173851013, -0.012330951169133186, 0.0853775143623352, 0.41084155440330505, 0.12941846251487732, -0.20255973935127258, -0.4190254509449005, -0.04824505001306534, 0.2851993143558502, 0.5857833027839661, -0.1489487886428833, -0.28842952847480774, -0.3177907168865204, 0.27061423659324646, -0.06861979514360428, 0.16447414457798004, 0.4762827754020691, -0.18378153443336487, -0.07727161794900894, 0.009502643719315529, 0.21651792526245117, -0.1672362983226776, 0.1256326138973236, 0.055095311254262924, 0.5633864402770996, 0.020568404346704483, -0.04643012210726738, 0.04032142087817192, 0.19767442345619202, 0.2665306031703949, -0.2073192000389099, -0.014918110333383083, 0.10456637293100357, -0.29462307691574097, -0.13310906291007996, 0.13274087011814117, 0.4168831408023834, 0.14233197271823883, 0.18876858055591583, 0.18841677904129028, 0.12478387355804443, -0.14091525971889496, 0.027752647176384926, 0.3660636246204376, 0.4443126320838928, 0.04693133756518364, 0.08828414976596832, 0.4415365159511566, 0.0005817801575176418, -0.14010316133499146, 0.2631992995738983, -0.0451807826757431, -0.24479497969150543, 0.1352216750383377, 0.09173879772424698, 0.18280135095119476, -0.24483831226825714, -0.4639566242694855, -0.20881067216396332, -0.28683164715766907, -0.047272030264139175, -0.07362613826990128, 0.23721227049827576, -0.2772254943847656, 0.1708793193101883, -0.2723609209060669, 0.23965027928352356, -0.09439707547426224, -0.06687059998512268, -0.051329560577869415, -0.14786456525325775, -0.3596413731575012, 0.1718275249004364, 0.17158353328704834, 0.043301112949848175, 0.15750473737716675, 0.23338660597801208, -0.23060117661952972, -0.131346195936203, 0.06312263756990433, -0.3846163749694824, 0.07070297002792358, -0.05325346067547798, 0.12675581872463226, -0.06794610619544983, -0.20075500011444092, -0.2258473038673401, -0.3948824405670166, 0.07321761548519135, -0.1875874251127243, -0.04159967601299286, -0.08119167387485504, 0.12692703306674957, -0.30068036913871765, -0.1601511389017105, -0.37782683968544006, 0.41544070839881897, 0.10396929085254669, -0.03998992592096329, -0.12125840038061142, -0.22154784202575684, -0.32282596826553345, -0.30817681550979614, -0.20479054749011993, 0.5929171442985535, -0.25095492601394653, 0.13471633195877075, -0.01442641206085682, 0.33538705110549927, 0.3446999788284302, 0.3423047363758087, 0.09490300714969635, 0.18372726440429688, -0.20548860728740692, 0.031585708260536194, 0.09781969338655472, -0.13028961420059204, -0.11564004421234131, 0.1216483786702156, -0.13050022721290588, 0.31743893027305603, -0.003631065133959055, 0.24522429704666138, 0.07085840404033661, -0.29528871178627014, 0.13270433247089386, 0.5699859857559204, 0.0917886346578598, 0.16612403094768524, -0.20988088846206665, -0.12399860471487045, 0.1535026580095291, 0.08691826462745667, -0.07332468777894974, 0.24377551674842834, -0.02637944184243679, -0.06938561052083969, 0.19956320524215698, 0.0381738506257534, -0.35440924763679504, 0.11357233673334122, 0.44178447127342224, 0.025976652279496193, 0.01740233600139618, 0.0321623831987381, -0.6761285066604614, 0.20365191996097565, -0.0810309499502182, 0.2807788550853729, -0.13864895701408386, -0.1894451528787613, -0.031261540949344635, -0.217709481716156, -0.351121187210083, 0.018044771626591682, 0.1251593828201294, 0.461076021194458, 0.2965365946292877, 0.33133482933044434, 0.11297694593667984, 0.4452205002307892, 0.02777232602238655, -0.15774616599082947, -0.47016218304634094, 0.34229952096939087, -0.06479637324810028, -0.16054783761501312, 0.2936728596687317, 0.26502755284309387, -0.011513852514326572, -0.20746925473213196, -0.08900708705186844, 0.30129924416542053, 0.20347513258457184, 0.14669592678546906, 0.19649967551231384, -0.004754494875669479, 0.05718599632382393, -0.0478249192237854, 0.12565629184246063, 0.33278554677963257, -0.07415208965539932, -0.09177553653717041, -0.043715592473745346, 0.4265555143356323, -0.10519426316022873, 0.24555368721485138, 0.06030820682644844, -0.06336880475282669, 0.14090688526630402, 0.010124140419065952, 0.03380625322461128, -0.25656694173812866, 0.31411534547805786, 0.18846112489700317, 0.4168974757194519, 0.4318351447582245, -0.6472992300987244, 0.25320449471473694, 0.6687129735946655, 0.1311240792274475, 0.13379022479057312, 0.04708591848611832, 0.10586448758840561, -0.26049163937568665, 0.1974291056394577, 0.3241914212703705, 0.4786663055419922, 0.17111065983772278, -0.08000785857439041, -0.07539052516222, -0.13652729988098145, -0.31839749217033386, 0.010921205393970013, -0.05123472213745117, 0.18632180988788605, 0.11051325500011444, 0.38850128650665283, 0.2145441621541977, -0.3057563602924347, -0.07537596672773361, -0.09780459105968475, 0.015089105814695358, -0.1057906448841095, 0.17744824290275574, -0.32004186511039734, -0.2972354590892792, -0.3805834949016571, -0.07747994363307953, -0.354339599609375, -0.23222845792770386, 0.12335868924856186, 0.2657914459705353, 0.0365583673119545, -0.07076461613178253, 0.1533040851354599, 0.27847498655319214, -0.04488343000411987, -0.44757869839668274, -0.20643876492977142, -0.08436785638332367, -0.3556397259235382, -0.04007585719227791, 0.4606665074825287, 0.24197164177894592, 0.47478991746902466, -0.19622257351875305, -0.20926642417907715, 0.06628421694040298, -0.3068493902683258, -0.0887669250369072, -0.3029896020889282, 0.36681807041168213, -0.09317687898874283, -0.1227111890912056, -0.030036868527531624, -0.06842709332704544, -0.004123772494494915, 0.03556327521800995, -0.08859538286924362, 0.11383882164955139, 0.028828220441937447, -0.035206135362386703, -0.011494503356516361, -0.3158373236656189, -0.23809808492660522, -0.16397744417190552, 0.11473071575164795, 0.31208425760269165, 0.18281139433383942, 0.3057498633861542, -0.09691184759140015, -0.3069819509983063, 0.11507782340049744, 0.09789173305034637, -0.09680429100990295, -0.039140455424785614, 0.41574010252952576, -0.18580752611160278, -0.23013927042484283, -0.33224278688430786, -0.15928329527378082, -0.10929520428180695, 0.11760024726390839, -0.29035308957099915, -0.2713468372821808, -0.39095884561538696, 0.05726073309779167, -0.02905384823679924, -0.3220251500606537, 0.41013067960739136, 0.06309467554092407, 0.052479930222034454, 0.13031257688999176, 0.000994085450656712, 0.20093286037445068, 0.29249274730682373, 0.3757019340991974, 0.1786862164735794, -0.00035971959005109966, 0.017693424597382545, 0.4301036298274994, 0.09234800189733505, -0.3738051652908325, 0.22872813045978546, 0.13664983212947845, 0.31639325618743896, -0.436856210231781, -0.02898428961634636, 0.2667538821697235, 0.26250171661376953, -0.08199746906757355, 0.5508415102958679, -0.016409050673246384, -0.07001300901174545, -0.09534084796905518, 0.27304506301879883, -0.2342890202999115, -0.216280996799469, 0.025557978078722954, -0.2762469947338104, -0.1469482034444809, 0.12631887197494507, 0.14955052733421326, 0.08502093702554703, -0.4424998164176941, -0.2343568503856659, 0.12432534247636795, 0.1346525400876999, 0.06921657919883728, 0.26027002930641174, 0.0762336477637291, -0.677492082118988, 0.12836040556430817, 0.004722010809928179, 0.11812935769557953, 0.014970674179494381, -0.08967854827642441, 0.2548971176147461, -0.03828655928373337, 0.19863347709178925, -0.10412723571062088, 0.16073302924633026, -0.06852669268846512, 0.11130301654338837, 0.062202777713537216, -0.23321984708309174, -0.3385123908519745, 0.019940901547670364, 0.12854522466659546, 0.22122003138065338, -0.43351924419403076, -0.09375353902578354, 0.002925385255366564, 0.13440005481243134, 0.028258658945560455, -0.4729935824871063, -0.5182263255119324, -0.043060846626758575, 0.20436982810497284, -0.13219887018203735, -0.042318496853113174, 0.10510062426328659, -0.40836501121520996, -0.1732179820537567, -0.04168578237295151, -0.23626963794231415, 0.31669628620147705, 0.30831989645957947, 0.23213599622249603, 0.02483011968433857, 0.02488129585981369, 0.06789971888065338, 0.09191146492958069, 0.228107288479805, 0.31876903772354126, 0.007566981948912144, -0.29029127955436707, -0.19192592799663544, -0.1961439698934555, 0.022884350270032883, 0.273242324590683, -0.06385023891925812, -0.15827402472496033, -0.6268541216850281, 0.045140590518713, -0.28553318977355957, 0.20332780480384827, 0.21781691908836365, -0.09050196409225464, -0.47626304626464844, -0.3762299716472626, 0.559168815612793, 0.12710130214691162, -0.23292863368988037, 0.3657144010066986, -0.0431957021355629, -0.48907679319381714, 0.5494601726531982, 0.3100154995918274, 0.7622919678688049, -0.2927524745464325, 0.03007173165678978, 0.23636935651302338, 0.0642995536327362, 0.5886322855949402, 0.1454041600227356, 0.42017194628715515, -0.5156995058059692, -0.2689725160598755, -0.028116023167967796, -0.04442678764462471, -0.11504624038934708, 0.2856414318084717, -0.4419345259666443, 0.47608131170272827, 0.01406217273324728, 0.1571819931268692, 0.01874394156038761, 0.5202624797821045, -0.16113872826099396, -0.057636506855487823, -0.3130171298980713, 0.09544380009174347, -0.20469802618026733, 0.3586156964302063, -0.1418951153755188, -0.12247096002101898, 0.07692737877368927, 0.09465441852807999, -0.16011428833007812, 0.3148656189441681, -0.3392431437969208, -0.04668031632900238, 0.04138358309864998, -0.27785012125968933, 0.07198737561702728, 0.41865283250808716, 0.1913328468799591, 0.23186053335666656, -0.16486556828022003, 0.05273411050438881, 0.1818181425333023, 0.09413059055805206, 0.13072335720062256, -0.240759938955307, 0.4110294580459595, 0.21036720275878906, 0.03688552975654602, -0.3947611451148987, 0.19934901595115662, -0.3416978716850281, -0.491068571805954, 0.09181003272533417, -0.24263335764408112, 0.326485276222229, -0.20107193291187286, 0.14210668206214905, 0.01149002369493246, -0.02620049938559532, 0.12757529318332672, -0.046831220388412476, 0.2489813268184662, 0.3928258419036865, -0.012045534327626228, -0.4347583055496216, -0.027420764788985252, 0.13086514174938202, 0.026886792853474617, 0.28422537446022034, 0.36054152250289917, -0.033177562057971954, -0.06605609506368637, -0.26532572507858276, -0.17218945920467377, -0.5158194303512573, -0.0947563499212265, 0.2979692220687866, 0.03572025150060654, 0.11082468926906586, 0.1081378385424614, 0.281221479177475, -0.03838327154517174, 0.010208092629909515, 0.0610172338783741, -0.47039899230003357, 0.21520447731018066, -0.0067405104637146, -0.06765519827604294, 0.0968683660030365, -0.09512105584144592, 0.27976053953170776, -0.0007643934222869575, 0.09798029810190201, -0.2943919599056244, -0.21692387759685516, -0.1794060319662094, 0.043816521763801575, -0.14726561307907104, -0.0650525689125061, 0.049781039357185364, 0.06324822455644608, 0.052572399377822876, -0.028461797162890434, -0.016356004402041435, -0.19104672968387604, 0.03601108491420746, 0.12801441550254822, 0.07515202462673187, 0.18783746659755707, -0.11149869114160538, -0.40708088874816895, -0.18924903869628906, -0.44327735900878906, 0.03956611454486847, 0.08884493261575699, 0.029298905283212662, 0.15439783036708832, 0.1824590265750885, 0.2711309492588043, 0.19317807257175446, 0.16989293694496155, -0.45262452960014343, -0.0365556925535202, 0.14585468173027039, 0.1609908491373062, 0.07739224284887314, 0.1830897480249405, -0.24892546236515045, -0.012200227938592434, 0.07747242599725723, 0.20768603682518005, -0.06409963220357895, -0.21602073311805725, -0.04018545150756836, -0.060909856110811234, 0.14011113345623016, 0.6141608357429504, 0.04224260151386261, -0.5872520804405212, 0.1972772181034088, 0.15556609630584717, -0.28322699666023254, 0.19960783421993256, -0.09180337190628052, 0.41793692111968994, 0.025082964450120926, 0.2798299193382263, 0.269087553024292, 0.08119545131921768, -0.11955933272838593, -0.0003816336393356323, 0.30484193563461304, -0.041998300701379776, 0.34197667241096497, 0.03645215556025505, 0.21215321123600006, 0.038688335567712784, 0.1549910008907318, -0.17111322283744812, -0.1503053456544876, 0.22968325018882751, 0.06488591432571411, 0.2850762903690338, -0.1867239773273468, -0.15707045793533325, 0.15218816697597504, -0.09781792759895325, 0.04136725142598152, 0.7915152907371521, -0.007006720174103975, 0.21068276464939117, 0.3884538412094116, 0.44529250264167786, -0.3818199336528778, -0.0955146923661232, -0.5060694217681885, -0.13139373064041138, -0.035357486456632614, -0.09416264295578003, -0.10144073516130447, 0.006801674608141184, -0.12481363117694855, 0.0856868326663971, -0.08186060190200806, -0.05897139385342598, 0.017478028312325478, 0.1732759028673172, -0.17360995709896088, -0.6126015186309814, 0.4208391606807709, -0.0890992060303688, 0.39698341488838196, -0.12267149984836578, 0.2771205008029938, -0.2097458690404892, 0.04110053554177284, 0.11428555101156235, 0.1573394238948822, 0.1676444262266159, 0.7388735413551331, -0.3403816521167755, -0.19363246858119965, -0.2682727575302124, 0.06406241655349731, -0.05717707425355911, 0.2944563627243042, -0.012330165132880211, -0.08725757896900177, 0.46127933263778687, 0.06939230859279633, -0.06574766337871552, 0.2757765054702759, 0.412350058555603, 0.0846700519323349, -0.038226887583732605, 0.4324905574321747, 0.10083815455436707, 0.029452554881572723, -0.027844814583659172, 0.14071989059448242, -0.3330123722553253, -0.1036376953125, -0.023359352722764015, 0.0021102982573211193, -0.12464093416929245, -0.27787506580352783, 0.05767451226711273, -0.04927105829119682, 0.4179219901561737, 0.28825539350509644, 0.19793476164340973, -0.2882436513900757, -0.2099870890378952, -0.573244035243988, 0.24515847861766815, -0.022960705682635307, -0.01788455620408058, -0.2719832956790924, 0.3699615001678467, -0.31697025895118713, -0.004687958862632513, -0.47000449895858765, 0.34478121995925903, -0.13758717477321625, 0.08389291912317276, -0.5932187438011169, -0.01896335557103157, -0.5143900513648987, -0.22276006639003754, -0.08780790120363235, -0.41620761156082153, -0.03302619978785515, -0.2758480906486511, -0.06263040751218796, 0.009584089741110802, 0.3021494448184967, 0.05746437609195709, 0.4434826076030731, 0.2620719075202942, 0.17335090041160583, 0.36903515458106995, -0.04310925304889679, -0.024048984050750732, -0.3146224617958069, -0.032263804227113724, -0.4741530120372772, 0.23222562670707703, 0.10998237133026123, 0.16361957788467407, -0.045135192573070526, 0.32104796171188354, -0.1569153219461441, 0.5310442447662354, -0.00423857755959034, 0.1621018648147583, -0.35880574584007263, -0.14239802956581116, -0.16092002391815186, 0.07543270289897919, -0.13203711807727814, 0.1183779239654541, 0.0437261201441288, 0.0036475511733442545, -0.2547437250614166, -0.28213369846343994, 0.3977830410003662, -0.23989617824554443, -0.2634277939796448, -0.11078222841024399, 0.2522282898426056, 0.16576017439365387, -0.2589734196662903, -0.48412853479385376, 0.06080115586519241, 0.22510270774364471, 0.031652532517910004, 0.12194018810987473, 0.33861044049263, 0.022022850811481476, 0.1309373527765274, -0.20101004838943481, 0.12154506146907806, -0.06637105345726013, -0.32709676027297974, -0.12180115282535553, -0.23555025458335876 ]
https://github.com/huggingface/datasets/issues/239
[Creating new dataset] Not found dataset_info.json
@lhoestq - this seems to happen quite often (already the 2nd issue). Can we maybe delete this automatically?
Hi, I am trying to create Toronto Book Corpus. #131 I ran `~/nlp % python nlp-cli test datasets/bookcorpus --save_infos --all_configs` but this doesn't create `dataset_info.json` and try to use it ``` INFO:nlp.load:Checking datasets/bookcorpus/bookcorpus.py for additional imports. INFO:filelock:Lock 139795325778640 acquired on datasets/bookcorpus/bookcorpus.py.lock INFO:nlp.load:Found main folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus INFO:nlp.load:Found specific version folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9 INFO:nlp.load:Found script file from datasets/bookcorpus/bookcorpus.py to /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.py INFO:nlp.load:Couldn't find dataset infos file at datasets/bookcorpus/dataset_infos.json INFO:nlp.load:Found metadata file for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.json INFO:filelock:Lock 139795325778640 released on datasets/bookcorpus/bookcorpus.py.lock INFO:nlp.builder:Overwrite dataset info from restored data version. INFO:nlp.info:Loading Dataset info from /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0 Traceback (most recent call last): File "nlp-cli", line 37, in <module> service.run() File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/commands/test.py", line 78, in run builders.append(builder_cls(name=config.name, data_dir=self._data_dir)) File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 610, in __init__ super(GeneratorBasedBuilder, self).__init__(*args, **kwargs) File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 152, in __init__ self.info = DatasetInfo.from_directory(self._cache_dir) File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/info.py", line 157, in from_directory with open(os.path.join(dataset_info_dir, DATASET_INFO_FILENAME), "r") as f: FileNotFoundError: [Errno 2] No such file or directory: '/home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/dataset_info.json' ``` btw, `ls /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/` show me nothing is in the directory. I have also pushed the script to my fork [bookcorpus.py](https://github.com/richardyy1188/nlp/blob/bookcorpusdev/datasets/bookcorpus/bookcorpus.py).
18
[Creating new dataset] Not found dataset_info.json Hi, I am trying to create Toronto Book Corpus. #131 I ran `~/nlp % python nlp-cli test datasets/bookcorpus --save_infos --all_configs` but this doesn't create `dataset_info.json` and try to use it ``` INFO:nlp.load:Checking datasets/bookcorpus/bookcorpus.py for additional imports. INFO:filelock:Lock 139795325778640 acquired on datasets/bookcorpus/bookcorpus.py.lock INFO:nlp.load:Found main folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus INFO:nlp.load:Found specific version folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9 INFO:nlp.load:Found script file from datasets/bookcorpus/bookcorpus.py to /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.py INFO:nlp.load:Couldn't find dataset infos file at datasets/bookcorpus/dataset_infos.json INFO:nlp.load:Found metadata file for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.json INFO:filelock:Lock 139795325778640 released on datasets/bookcorpus/bookcorpus.py.lock INFO:nlp.builder:Overwrite dataset info from restored data version. INFO:nlp.info:Loading Dataset info from /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0 Traceback (most recent call last): File "nlp-cli", line 37, in <module> service.run() File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/commands/test.py", line 78, in run builders.append(builder_cls(name=config.name, data_dir=self._data_dir)) File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 610, in __init__ super(GeneratorBasedBuilder, self).__init__(*args, **kwargs) File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 152, in __init__ self.info = DatasetInfo.from_directory(self._cache_dir) File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/info.py", line 157, in from_directory with open(os.path.join(dataset_info_dir, DATASET_INFO_FILENAME), "r") as f: FileNotFoundError: [Errno 2] No such file or directory: '/home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/dataset_info.json' ``` btw, `ls /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/` show me nothing is in the directory. I have also pushed the script to my fork [bookcorpus.py](https://github.com/richardyy1188/nlp/blob/bookcorpusdev/datasets/bookcorpus/bookcorpus.py). @lhoestq - this seems to happen quite often (already the 2nd issue). Can we maybe delete this automatically?
[ -0.1165066808462143, 0.12425003945827484, -0.08600348234176636, 0.057063739746809006, 0.017675330862402916, 0.146691232919693, 0.1669219732284546, 0.309463769197464, -0.20071378350257874, 0.02181624434888363, 0.06028890237212181, 0.5790073275566101, -0.09350904077291489, 0.08411622047424316, 0.2967384457588196, -0.06326823681592941, 0.07989407330751419, 0.35474953055381775, 0.43980416655540466, -0.17095568776130676, -0.30418869853019714, 0.33386555314064026, -0.08771343529224396, 0.013870672322809696, -0.3389923870563507, -0.13993871212005615, -0.19874633848667145, 0.15173587203025818, -0.36890125274658203, -0.2440761774778366, 0.486727774143219, -0.07338842749595642, 0.10366187989711761, 0.5475571751594543, -0.00011407749116187915, 0.01021268218755722, 0.3725016415119171, -0.15201838314533234, -0.4637056887149811, -0.5580251812934875, -0.009793359786272049, -0.40277859568595886, 0.11497402936220169, -0.3410843312740326, -0.12306197732686996, -0.3242848813533783, 0.20140305161476135, -0.13952888548374176, -0.1161307543516159, 0.45088261365890503, 0.17983727157115936, 0.06183263659477234, 0.1842111200094223, -0.08671882003545761, 0.00012536828580778092, 0.2762146592140198, -0.24014045298099518, 0.20989397168159485, 0.5791468024253845, -0.031257063150405884, 0.2688179314136505, -0.0465218722820282, -0.06592674553394318, -0.2932344973087311, 0.25912341475486755, 0.15986360609531403, 0.015618640929460526, -0.4965943694114685, 0.02616330236196518, 0.07965251058340073, 0.7736669778823853, -0.5069000720977783, -0.34755486249923706, 0.0792134702205658, 0.1948913335800171, 0.08152248710393906, 0.026132749393582344, 0.3870612680912018, -0.0036240951158106327, -0.14681775867938995, -0.49098044633865356, -0.38367849588394165, -0.1394314020872116, 0.35411834716796875, 0.21877293288707733, 0.24535201489925385, -0.03379536792635918, 0.04224743694067001, -0.016015134751796722, -0.053568143397569656, -0.13028806447982788, -0.185969740152359, -0.12865856289863586, 0.25328952074050903, -0.0536673404276371, -0.5121895670890808, 0.16871662437915802, -0.0076864538714289665, -0.08953659236431122, 0.061127953231334686, -0.03262357413768768, -0.27464109659194946, -0.28656256198883057, 0.18327689170837402, 0.20465409755706787, -0.11063544452190399, 0.27965885400772095, 0.07973075658082962, 0.07748343050479889, 0.055837783962488174, 0.07856881618499756, -0.06780091673135757, -0.03356620669364929, 0.015615779906511307, -0.1277632713317871, -0.09943198412656784, 0.3245653212070465, -0.07417792826890945, 0.07186094671487808, 0.0012806868180632591, -0.1981692761182785, -0.13331162929534912, 0.11727087199687958, 0.29368317127227783, -0.07195775955915451, -0.28001299500465393, -0.02514978125691414, 0.20711416006088257, -0.41142016649246216, -0.01166057214140892, -0.1645236760377884, 0.49445751309394836, -0.20560166239738464, -0.026228824630379677, 0.3875790238380432, 0.10167023539543152, 0.3338850438594818, -0.013087129220366478, -0.3687388002872467, -0.15569274127483368, 0.39184650778770447, -0.2121744155883789, -0.1790122240781784, 0.2289539873600006, 0.116046242415905, 0.11397777497768402, -0.037862274795770645, -0.36688774824142456, -0.3832913935184479, 0.19166433811187744, -0.23506076633930206, -0.34814831614494324, -0.28387293219566345, 0.19339007139205933, 0.06136857718229294, -0.23428453505039215, -0.314606636762619, 0.2751878499984741, 0.30977490544319153, -0.34352073073387146, 0.06339671462774277, 0.07586350291967392, -0.13430120050907135, -0.23051322996616364, -0.09996886551380157, 0.3998722732067108, -0.48367947340011597, -0.072199247777462, -0.3215022087097168, -0.009419111534953117, 0.1910141408443451, -0.03528176620602608, -0.2096753716468811, 0.5171998143196106, -0.13384777307510376, 0.11128516495227814, 0.5153879523277283, -0.18933238089084625, -0.18746134638786316, 0.2695929706096649, -0.19403021037578583, -0.2928600013256073, 0.07255593687295914, 0.25072991847991943, -0.041414935141801834, -0.16878639161586761, 0.13270901143550873, 0.09178606420755386, -0.12619176506996155, 0.04947390407323837, 0.08353815972805023, -0.006045040208846331, 0.05104034021496773, 0.11938092112541199, -0.23835280537605286, 0.10864423960447311, 0.13550707697868347, 0.25907453894615173, 0.0978018268942833, -0.0312269888818264, 0.17799155414104462, 0.4847255051136017, 0.3885304927825928, -0.005946872290223837, -0.022813735529780388, -0.0708327367901802, -0.33621451258659363, -0.08187179267406464, -0.2370007187128067, 0.4043167531490326, 0.033766187727451324, -0.0027962117455899715, -0.4716336727142334, -0.19266782701015472, 0.03348105028271675, -0.11761447787284851, 0.08502431958913803, 0.016210710629820824, 0.397845059633255, 0.10037985444068909, -0.2538130283355713, 0.07752428948879242, -0.17115595936775208, 0.06652279943227768, -0.8675044775009155, 0.34719595313072205, -0.2013235241174698, -0.20943784713745117, 0.24705374240875244, 0.23108188807964325, -0.01762172393500805, -0.14729692041873932, 0.15028542280197144, 0.22656874358654022, -0.1452416330575943, 0.3361057937145233, 0.22270862758159637, 0.12884210050106049, 0.2885345220565796, -0.20380856096744537, 0.14635668694972992, 0.04937639459967613, 0.1962345838546753, -0.02172156795859337, -0.08311359584331512, 0.05355566740036011, 0.14341388642787933, -0.05503041669726372, 0.16171793639659882, -0.04391320049762726, 0.14021293818950653, -0.17860828340053558, 0.07698720693588257, -0.24211694300174713, 0.17556221783161163, 0.07551103085279465, 0.13160766661167145, 0.048625268042087555, -0.07722677290439606, 0.23074841499328613, 0.3067062199115753, 0.053100936114788055, 0.043188825249671936, 0.15799471735954285, 0.03988109529018402, -0.09149584919214249, -0.1635778695344925, 0.2864358723163605, 0.43378978967666626, 0.1305437982082367, -0.1725737303495407, -0.04459773749113083, -0.10544013231992722, -0.23387329280376434, 0.17621316015720367, -0.14458663761615753, 0.18157003819942474, 0.055375974625349045, 0.20645740628242493, -0.09188253432512283, -0.1981734037399292, -0.45030662417411804, 0.2582753300666809, 0.2915617525577545, 0.012533003464341164, 0.23301920294761658, -0.048360150307416916, -0.2889660596847534, -0.10235711187124252, -0.21999724209308624, -0.027930378913879395, -0.10974528640508652, 0.04495157301425934, 0.21489784121513367, 0.21191422641277313, -0.1206708773970604, -0.1959015280008316, 0.18914154171943665, -0.0882783830165863, -0.3575139343738556, -0.08856125921010971, -0.25647878646850586, -0.18699000775814056, 0.1057349443435669, 0.03482475504279137, 0.14010001718997955, 0.2495243400335312, -0.18439176678657532, 0.010568415746092796, -0.16604605317115784, -0.2570819556713104, 0.018080545589327812, -0.15953190624713898, 0.19502784311771393, 0.17406272888183594, 0.05979262292385101, -0.2608330249786377, -0.4254717230796814, 0.07756563276052475, -0.011626248247921467, -0.4032613933086395, 0.0009182576322928071, -0.17337003350257874, -0.12209747731685638, -0.04074857383966446, -0.7119974493980408, -0.32513904571533203, -0.21316109597682953, -0.015592937357723713, 0.16318099200725555, 0.19772662222385406, 0.41301828622817993, -0.07574549317359924, 0.1082073524594307, 0.17231819033622742, 0.23164863884449005, -0.06923402100801468, -0.36342841386795044, 0.39431944489479065, -0.5005178451538086, -0.284250944852829, 0.1889237016439438, -0.4618220627307892, 0.23753459751605988, -0.17418301105499268, -0.5138139128684998, 0.0168081633746624, -0.2980985939502716, 0.005920839495956898, 0.13436740636825562, 0.23399464786052704, 0.4963955879211426, -0.027937546372413635, -0.05390601605176926, -0.10333113372325897, -0.45800355076789856, 0.022857261821627617, 0.42395687103271484, 0.6483790874481201, -0.09557896107435226, 0.17668721079826355, -0.43665507435798645, 0.13951073586940765, 0.38066136837005615, -0.022997383028268814, 0.4596586227416992, -0.06421402841806412, 0.284216970205307, -0.28907209634780884, -0.37762200832366943, 0.20217174291610718, 0.28460296988487244, -0.0968417376279831, 0.19153885543346405, 0.08896543085575104, -0.1900496780872345, -0.18134473264217377, -0.12971597909927368, -0.4387226104736328, -0.0670413225889206, -0.16066983342170715, -0.015446463599801064, 0.2671152949333191, 0.08936909586191177, -0.06376723200082779, -0.14562520384788513, -0.2757139503955841, -0.22359086573123932, 0.47275498509407043, 0.197409525513649, 0.12087250500917435, -0.2766306698322296, -0.061207640916109085, -0.30730724334716797, -0.03779546916484833, 0.023885192349553108, 0.29377710819244385, -0.2029542475938797, 0.2554224729537964, 0.06292019039392471, -0.012339534237980843, 0.5490012764930725, -0.2908588647842407, -0.20555175840854645, 0.2633002996444702, -0.05804210528731346, -0.22411450743675232, 0.18051359057426453, -0.10403349250555038, 0.6076476573944092, 0.24335356056690216, 0.5753422379493713, -0.31156548857688904, 0.2990724742412567, 0.1214509978890419, 0.37018391489982605, -0.23179885745048523, -0.2861902117729187, -0.19550125300884247, -0.4630240201950073, -0.13890482485294342, -0.3091445863246918, -0.33634552359580994, 0.47525498270988464, 0.23033080995082855, 0.17040179669857025, 0.31160151958465576, -0.1196059063076973, 0.2841053307056427, 0.11535485833883286, 0.25763797760009766, 0.23350398242473602, 0.42463985085487366, -0.10522842407226562, -0.06710546463727951, 0.36698243021965027, 0.6004717350006104, 0.20311035215854645, -0.09567326307296753, 0.12841999530792236, -0.03640357404947281, 0.3953668773174286, -0.013246739283204079, 0.26692596077919006, -0.10981941968202591, 0.02109421044588089, -0.21841275691986084, -0.11553158611059189, -0.02341005578637123, -0.01939665898680687, -0.2241465300321579, -0.6888646483421326, -0.3939306139945984, 0.2423805594444275, -0.010685544461011887, 0.30029720067977905, 0.2865820825099945, 0.14248113334178925, -0.22004301846027374, 0.47148627042770386, -0.21347558498382568, 0.8308828473091125, -0.05265549197793007, -0.027970364317297935, 0.04540926218032837, 0.15106628835201263, 0.703414261341095, -0.514280378818512, 0.41265058517456055, -0.38910314440727234, -0.02690853737294674, 0.051578328013420105, -0.175800159573555, 0.17506380379199982, 0.4178824722766876, -0.432526558637619, 0.1930052936077118, -0.0822674036026001, -0.11858409643173218, -0.1702669858932495, 0.4646315276622772, -0.12328126281499863, -0.3681623339653015, -0.3878656029701233, 0.12439023703336716, -0.15596188604831696, 0.38852453231811523, -0.0936819389462471, -0.01732580177485943, -0.5373468995094299, -0.02376747690141201, -0.21049757301807404, -0.022060737013816833, 0.31865641474723816, 0.24980615079402924, 0.5425416827201843, -0.39588603377342224, 0.16806142032146454, 0.1537737101316452, 0.5115236043930054, 0.32337167859077454, -0.21308311820030212, -0.043141525238752365, -0.008564276620745659, -0.41504380106925964, 0.08617410808801651, 0.02331739291548729, 0.32594001293182373, 0.0027127128560096025, -0.24869371950626373, 0.15543805062770844, -0.09102323651313782, -0.053070321679115295, -0.09715481102466583, -0.1465337574481964, -0.24172958731651306, -0.2759900391101837, -0.3625268340110779, 0.25870025157928467, -0.16885404288768768, -0.14154577255249023, 0.0788363441824913, 0.29711592197418213, -0.13539183139801025, 0.11851567775011063, 0.020256973803043365, -0.1812778264284134, -0.22068993747234344, 0.2320658564567566, 0.3509169816970825, -0.17117758095264435, 0.459307998418808, 0.2199607491493225, -0.0807434469461441, -0.2345268577337265, 0.10708928108215332, 0.12530580163002014, -0.12980130314826965, 0.2112327665090561, 0.3616858124732971, 0.15047229826450348, 0.2839151620864868, 0.3608107566833496, -0.16636352241039276, 0.1632489413022995, 0.07301373779773712, -0.3863007724285126, -0.4366529583930969, 0.24695752561092377, 0.02442772500216961, 0.09015461057424545, 0.13847877085208893, 0.3877495229244232, 0.2723519504070282, 0.035062216222286224, -0.26488196849823, -0.045566923916339874, -0.36969128251075745, 0.26377999782562256, 0.2491612434387207, 0.0605018325150013, -0.21608516573905945, -0.057570721954107285, 0.05101491138339043, -0.20330004394054413, -0.029042594134807587, -0.15440814197063446, -0.22161312401294708, 0.15202641487121582, 0.1260635107755661, 0.015447616577148438, -0.12458014488220215, -0.22966709733009338, -0.23324689269065857, -0.019939757883548737, -0.26050761342048645, 0.1780530959367752, 0.10190968215465546, 0.15461847186088562, 0.09359776973724365, -0.3269786834716797, -0.10735625773668289, -0.014843693003058434, -0.06195342540740967, 0.38624507188796997, 0.08435267210006714, 0.04523346200585365, 0.11616643518209457, 0.042538393288850784, -0.4028134346008301, 0.0701119601726532, -0.15169329941272736, 0.08376214653253555, 0.14908641576766968, -0.15714488923549652, 0.2667427361011505, 0.021798228845000267, 0.10998331755399704, 0.34660592675209045, -0.13597363233566284, 0.14051754772663116, 0.2605538070201874, 0.11154524981975555, -0.16209110617637634, -0.04408056661486626, 0.32794612646102905, 0.04348015785217285, -0.012226800434291363, 0.3146599233150482, -0.13310489058494568, 0.13106966018676758, -0.1478777974843979, 0.18498791754245758, 0.3246777057647705, -0.06314756721258163, 0.2577344477176666, 0.13641010224819183, 0.0012923725880682468, -0.09770169854164124, 0.25944432616233826, 0.18815267086029053, -0.08532194048166275, 0.18237808346748352, 0.045088812708854675, 0.3973942995071411, 0.30235180258750916, 0.28611862659454346, 0.21092699468135834, -0.22499950230121613, 0.05044650286436081, -0.20212405920028687, 0.25073298811912537, -0.041926052421331406, 0.08260221779346466, 0.21872511506080627, -0.19586826860904694, 0.30180782079696655, -0.17804104089736938, 0.10303839296102524, -0.32084885239601135, -0.06560025364160538, -0.11257030069828033, -0.26747116446495056, 0.2546587884426117, -0.08748061954975128, 0.029256051406264305, -0.10721778124570847, -0.15491372346878052, -0.05317867919802666, -0.0556119903922081, -0.3274427056312561, 0.41589081287384033, -0.014811506494879723, 0.02092673070728779, -0.10051345080137253, 0.3173045516014099, -0.16874581575393677, -0.12283192574977875, -0.12241169810295105, 0.34476178884506226, 0.30761322379112244, 0.346965491771698, 0.13811098039150238, 0.2645438611507416, -0.07761800289154053, -0.1906181424856186, 0.11390841752290726, 0.4997579753398895, 0.45840632915496826, -0.10555968433618546, 0.025127602741122246, 0.05902829021215439, -0.02446502260863781, 0.13379649817943573, 0.5156471133232117, 0.03815034031867981, 0.1663970947265625, 0.44952717423439026, -0.11991024017333984, -0.12360431253910065, -0.25661739706993103, 0.299698144197464, -0.4078591763973236, -0.1276351660490036, 0.5206469297409058, 0.040347058326005936, -0.009024547412991524, -0.3289634883403778, 0.0792628675699234, -0.04677293822169304, 0.29387277364730835, 0.3701542019844055, 0.12014267593622208, -0.26257842779159546, -0.24848149716854095, -0.3296501636505127, -0.062406670302152634, -0.1111392006278038, -0.16207711398601532, -0.2252211570739746, 0.36316561698913574, 0.02614518813788891, 0.18046008050441742, -0.36288270354270935, 0.28943824768066406, -0.14855611324310303, 0.07487617433071136, -0.14089824259281158, -0.3381900489330292, -0.15416379272937775, 0.1900702267885208, -0.08194971829652786, -0.08714448660612106, -0.01849837601184845, -0.2756529152393341, -0.011309449560940266, -0.43276023864746094, -0.21586301922798157, 0.2175656408071518, 0.3473260998725891, 0.10093319416046143, 0.07363896071910858, 0.37652158737182617, -0.2977445125579834, -0.18720819056034088, -0.19394992291927338, -0.22783586382865906, -0.09512003511190414, 0.27850213646888733, 0.2827718257904053, 0.3774262070655823, -0.3015463054180145, 0.3614298403263092, -0.14139340817928314, 0.09885425865650177, -0.030948102474212646, 0.11747400462627411, -0.09106148034334183, 0.012101314961910248, -0.29160863161087036, -0.09359487146139145, 0.0717778280377388, 0.2724190056324005, 0.0033910907804965973, 0.320264995098114, -0.09971468150615692, -0.44917502999305725, 0.4673531651496887, -0.2092687487602234, -0.18863163888454437, -0.02794843725860119, 0.02736983634531498, -0.2985513210296631, -0.25510263442993164, -0.24643059074878693, 0.07022601366043091, 0.35536712408065796, -0.2813263237476349, 0.01821635104715824, 0.0918259248137474, -0.19161558151245117, 0.047814927995204926, -0.026989934965968132, 0.17802518606185913, 0.1036384254693985, 0.008864670991897583, -0.11351379752159119, 0.04193819314241409 ]
https://github.com/huggingface/datasets/issues/239
[Creating new dataset] Not found dataset_info.json
Hi, I rebase my local copy to `fix-empty-cache-dir`, and try to run again `python nlp-cli test datasets/bookcorpus --save_infos --all_configs`. I got this, ``` Traceback (most recent call last): File "nlp-cli", line 10, in <module> from nlp.commands.run_beam import RunBeamCommand File "/home/yisiang/nlp/src/nlp/commands/run_beam.py", line 6, in <module> import apache_beam as beam ModuleNotFoundError: No module named 'apache_beam' ``` And after I installed it. I got this ``` File "/home/yisiang/nlp/src/nlp/datasets/bookcorpus/aea0bd5142d26df645a8fce23d6110bb95ecb81772bb2a1f29012e329191962c/bookcorpus.py", line 88, in _split_generators downloaded_path_or_paths = dl_manager.download_custom(_GDRIVE_FILE_ID, download_file_from_google_drive) File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 128, in download_custom downloaded_path_or_paths = map_nested(url_to_downloaded_path, url_or_urls) File "/home/yisiang/nlp/src/nlp/utils/py_utils.py", line 172, in map_nested return function(data_struct) File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 126, in url_to_downloaded_path return os.path.join(self._download_config.cache_dir, hash_url_to_filename(url)) File "/home/yisiang/miniconda3/envs/nlppr/lib/python3.7/posixpath.py", line 80, in join a = os.fspath(a) ``` The problem is when I print `self._download_config.cache_dir` using pdb, it is `None`. Did I miss something ? Or can you provide a workaround first so I can keep testing my script ?
Hi, I am trying to create Toronto Book Corpus. #131 I ran `~/nlp % python nlp-cli test datasets/bookcorpus --save_infos --all_configs` but this doesn't create `dataset_info.json` and try to use it ``` INFO:nlp.load:Checking datasets/bookcorpus/bookcorpus.py for additional imports. INFO:filelock:Lock 139795325778640 acquired on datasets/bookcorpus/bookcorpus.py.lock INFO:nlp.load:Found main folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus INFO:nlp.load:Found specific version folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9 INFO:nlp.load:Found script file from datasets/bookcorpus/bookcorpus.py to /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.py INFO:nlp.load:Couldn't find dataset infos file at datasets/bookcorpus/dataset_infos.json INFO:nlp.load:Found metadata file for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.json INFO:filelock:Lock 139795325778640 released on datasets/bookcorpus/bookcorpus.py.lock INFO:nlp.builder:Overwrite dataset info from restored data version. INFO:nlp.info:Loading Dataset info from /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0 Traceback (most recent call last): File "nlp-cli", line 37, in <module> service.run() File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/commands/test.py", line 78, in run builders.append(builder_cls(name=config.name, data_dir=self._data_dir)) File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 610, in __init__ super(GeneratorBasedBuilder, self).__init__(*args, **kwargs) File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 152, in __init__ self.info = DatasetInfo.from_directory(self._cache_dir) File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/info.py", line 157, in from_directory with open(os.path.join(dataset_info_dir, DATASET_INFO_FILENAME), "r") as f: FileNotFoundError: [Errno 2] No such file or directory: '/home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/dataset_info.json' ``` btw, `ls /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/` show me nothing is in the directory. I have also pushed the script to my fork [bookcorpus.py](https://github.com/richardyy1188/nlp/blob/bookcorpusdev/datasets/bookcorpus/bookcorpus.py).
142
[Creating new dataset] Not found dataset_info.json Hi, I am trying to create Toronto Book Corpus. #131 I ran `~/nlp % python nlp-cli test datasets/bookcorpus --save_infos --all_configs` but this doesn't create `dataset_info.json` and try to use it ``` INFO:nlp.load:Checking datasets/bookcorpus/bookcorpus.py for additional imports. INFO:filelock:Lock 139795325778640 acquired on datasets/bookcorpus/bookcorpus.py.lock INFO:nlp.load:Found main folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus INFO:nlp.load:Found specific version folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9 INFO:nlp.load:Found script file from datasets/bookcorpus/bookcorpus.py to /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.py INFO:nlp.load:Couldn't find dataset infos file at datasets/bookcorpus/dataset_infos.json INFO:nlp.load:Found metadata file for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.json INFO:filelock:Lock 139795325778640 released on datasets/bookcorpus/bookcorpus.py.lock INFO:nlp.builder:Overwrite dataset info from restored data version. INFO:nlp.info:Loading Dataset info from /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0 Traceback (most recent call last): File "nlp-cli", line 37, in <module> service.run() File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/commands/test.py", line 78, in run builders.append(builder_cls(name=config.name, data_dir=self._data_dir)) File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 610, in __init__ super(GeneratorBasedBuilder, self).__init__(*args, **kwargs) File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 152, in __init__ self.info = DatasetInfo.from_directory(self._cache_dir) File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/info.py", line 157, in from_directory with open(os.path.join(dataset_info_dir, DATASET_INFO_FILENAME), "r") as f: FileNotFoundError: [Errno 2] No such file or directory: '/home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/dataset_info.json' ``` btw, `ls /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/` show me nothing is in the directory. I have also pushed the script to my fork [bookcorpus.py](https://github.com/richardyy1188/nlp/blob/bookcorpusdev/datasets/bookcorpus/bookcorpus.py). Hi, I rebase my local copy to `fix-empty-cache-dir`, and try to run again `python nlp-cli test datasets/bookcorpus --save_infos --all_configs`. I got this, ``` Traceback (most recent call last): File "nlp-cli", line 10, in <module> from nlp.commands.run_beam import RunBeamCommand File "/home/yisiang/nlp/src/nlp/commands/run_beam.py", line 6, in <module> import apache_beam as beam ModuleNotFoundError: No module named 'apache_beam' ``` And after I installed it. I got this ``` File "/home/yisiang/nlp/src/nlp/datasets/bookcorpus/aea0bd5142d26df645a8fce23d6110bb95ecb81772bb2a1f29012e329191962c/bookcorpus.py", line 88, in _split_generators downloaded_path_or_paths = dl_manager.download_custom(_GDRIVE_FILE_ID, download_file_from_google_drive) File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 128, in download_custom downloaded_path_or_paths = map_nested(url_to_downloaded_path, url_or_urls) File "/home/yisiang/nlp/src/nlp/utils/py_utils.py", line 172, in map_nested return function(data_struct) File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 126, in url_to_downloaded_path return os.path.join(self._download_config.cache_dir, hash_url_to_filename(url)) File "/home/yisiang/miniconda3/envs/nlppr/lib/python3.7/posixpath.py", line 80, in join a = os.fspath(a) ``` The problem is when I print `self._download_config.cache_dir` using pdb, it is `None`. Did I miss something ? Or can you provide a workaround first so I can keep testing my script ?
[ -0.1165066808462143, 0.12425003945827484, -0.08600348234176636, 0.057063739746809006, 0.017675330862402916, 0.146691232919693, 0.1669219732284546, 0.309463769197464, -0.20071378350257874, 0.02181624434888363, 0.06028890237212181, 0.5790073275566101, -0.09350904077291489, 0.08411622047424316, 0.2967384457588196, -0.06326823681592941, 0.07989407330751419, 0.35474953055381775, 0.43980416655540466, -0.17095568776130676, -0.30418869853019714, 0.33386555314064026, -0.08771343529224396, 0.013870672322809696, -0.3389923870563507, -0.13993871212005615, -0.19874633848667145, 0.15173587203025818, -0.36890125274658203, -0.2440761774778366, 0.486727774143219, -0.07338842749595642, 0.10366187989711761, 0.5475571751594543, -0.00011407749116187915, 0.01021268218755722, 0.3725016415119171, -0.15201838314533234, -0.4637056887149811, -0.5580251812934875, -0.009793359786272049, -0.40277859568595886, 0.11497402936220169, -0.3410843312740326, -0.12306197732686996, -0.3242848813533783, 0.20140305161476135, -0.13952888548374176, -0.1161307543516159, 0.45088261365890503, 0.17983727157115936, 0.06183263659477234, 0.1842111200094223, -0.08671882003545761, 0.00012536828580778092, 0.2762146592140198, -0.24014045298099518, 0.20989397168159485, 0.5791468024253845, -0.031257063150405884, 0.2688179314136505, -0.0465218722820282, -0.06592674553394318, -0.2932344973087311, 0.25912341475486755, 0.15986360609531403, 0.015618640929460526, -0.4965943694114685, 0.02616330236196518, 0.07965251058340073, 0.7736669778823853, -0.5069000720977783, -0.34755486249923706, 0.0792134702205658, 0.1948913335800171, 0.08152248710393906, 0.026132749393582344, 0.3870612680912018, -0.0036240951158106327, -0.14681775867938995, -0.49098044633865356, -0.38367849588394165, -0.1394314020872116, 0.35411834716796875, 0.21877293288707733, 0.24535201489925385, -0.03379536792635918, 0.04224743694067001, -0.016015134751796722, -0.053568143397569656, -0.13028806447982788, -0.185969740152359, -0.12865856289863586, 0.25328952074050903, -0.0536673404276371, -0.5121895670890808, 0.16871662437915802, -0.0076864538714289665, -0.08953659236431122, 0.061127953231334686, -0.03262357413768768, -0.27464109659194946, -0.28656256198883057, 0.18327689170837402, 0.20465409755706787, -0.11063544452190399, 0.27965885400772095, 0.07973075658082962, 0.07748343050479889, 0.055837783962488174, 0.07856881618499756, -0.06780091673135757, -0.03356620669364929, 0.015615779906511307, -0.1277632713317871, -0.09943198412656784, 0.3245653212070465, -0.07417792826890945, 0.07186094671487808, 0.0012806868180632591, -0.1981692761182785, -0.13331162929534912, 0.11727087199687958, 0.29368317127227783, -0.07195775955915451, -0.28001299500465393, -0.02514978125691414, 0.20711416006088257, -0.41142016649246216, -0.01166057214140892, -0.1645236760377884, 0.49445751309394836, -0.20560166239738464, -0.026228824630379677, 0.3875790238380432, 0.10167023539543152, 0.3338850438594818, -0.013087129220366478, -0.3687388002872467, -0.15569274127483368, 0.39184650778770447, -0.2121744155883789, -0.1790122240781784, 0.2289539873600006, 0.116046242415905, 0.11397777497768402, -0.037862274795770645, -0.36688774824142456, -0.3832913935184479, 0.19166433811187744, -0.23506076633930206, -0.34814831614494324, -0.28387293219566345, 0.19339007139205933, 0.06136857718229294, -0.23428453505039215, -0.314606636762619, 0.2751878499984741, 0.30977490544319153, -0.34352073073387146, 0.06339671462774277, 0.07586350291967392, -0.13430120050907135, -0.23051322996616364, -0.09996886551380157, 0.3998722732067108, -0.48367947340011597, -0.072199247777462, -0.3215022087097168, -0.009419111534953117, 0.1910141408443451, -0.03528176620602608, -0.2096753716468811, 0.5171998143196106, -0.13384777307510376, 0.11128516495227814, 0.5153879523277283, -0.18933238089084625, -0.18746134638786316, 0.2695929706096649, -0.19403021037578583, -0.2928600013256073, 0.07255593687295914, 0.25072991847991943, -0.041414935141801834, -0.16878639161586761, 0.13270901143550873, 0.09178606420755386, -0.12619176506996155, 0.04947390407323837, 0.08353815972805023, -0.006045040208846331, 0.05104034021496773, 0.11938092112541199, -0.23835280537605286, 0.10864423960447311, 0.13550707697868347, 0.25907453894615173, 0.0978018268942833, -0.0312269888818264, 0.17799155414104462, 0.4847255051136017, 0.3885304927825928, -0.005946872290223837, -0.022813735529780388, -0.0708327367901802, -0.33621451258659363, -0.08187179267406464, -0.2370007187128067, 0.4043167531490326, 0.033766187727451324, -0.0027962117455899715, -0.4716336727142334, -0.19266782701015472, 0.03348105028271675, -0.11761447787284851, 0.08502431958913803, 0.016210710629820824, 0.397845059633255, 0.10037985444068909, -0.2538130283355713, 0.07752428948879242, -0.17115595936775208, 0.06652279943227768, -0.8675044775009155, 0.34719595313072205, -0.2013235241174698, -0.20943784713745117, 0.24705374240875244, 0.23108188807964325, -0.01762172393500805, -0.14729692041873932, 0.15028542280197144, 0.22656874358654022, -0.1452416330575943, 0.3361057937145233, 0.22270862758159637, 0.12884210050106049, 0.2885345220565796, -0.20380856096744537, 0.14635668694972992, 0.04937639459967613, 0.1962345838546753, -0.02172156795859337, -0.08311359584331512, 0.05355566740036011, 0.14341388642787933, -0.05503041669726372, 0.16171793639659882, -0.04391320049762726, 0.14021293818950653, -0.17860828340053558, 0.07698720693588257, -0.24211694300174713, 0.17556221783161163, 0.07551103085279465, 0.13160766661167145, 0.048625268042087555, -0.07722677290439606, 0.23074841499328613, 0.3067062199115753, 0.053100936114788055, 0.043188825249671936, 0.15799471735954285, 0.03988109529018402, -0.09149584919214249, -0.1635778695344925, 0.2864358723163605, 0.43378978967666626, 0.1305437982082367, -0.1725737303495407, -0.04459773749113083, -0.10544013231992722, -0.23387329280376434, 0.17621316015720367, -0.14458663761615753, 0.18157003819942474, 0.055375974625349045, 0.20645740628242493, -0.09188253432512283, -0.1981734037399292, -0.45030662417411804, 0.2582753300666809, 0.2915617525577545, 0.012533003464341164, 0.23301920294761658, -0.048360150307416916, -0.2889660596847534, -0.10235711187124252, -0.21999724209308624, -0.027930378913879395, -0.10974528640508652, 0.04495157301425934, 0.21489784121513367, 0.21191422641277313, -0.1206708773970604, -0.1959015280008316, 0.18914154171943665, -0.0882783830165863, -0.3575139343738556, -0.08856125921010971, -0.25647878646850586, -0.18699000775814056, 0.1057349443435669, 0.03482475504279137, 0.14010001718997955, 0.2495243400335312, -0.18439176678657532, 0.010568415746092796, -0.16604605317115784, -0.2570819556713104, 0.018080545589327812, -0.15953190624713898, 0.19502784311771393, 0.17406272888183594, 0.05979262292385101, -0.2608330249786377, -0.4254717230796814, 0.07756563276052475, -0.011626248247921467, -0.4032613933086395, 0.0009182576322928071, -0.17337003350257874, -0.12209747731685638, -0.04074857383966446, -0.7119974493980408, -0.32513904571533203, -0.21316109597682953, -0.015592937357723713, 0.16318099200725555, 0.19772662222385406, 0.41301828622817993, -0.07574549317359924, 0.1082073524594307, 0.17231819033622742, 0.23164863884449005, -0.06923402100801468, -0.36342841386795044, 0.39431944489479065, -0.5005178451538086, -0.284250944852829, 0.1889237016439438, -0.4618220627307892, 0.23753459751605988, -0.17418301105499268, -0.5138139128684998, 0.0168081633746624, -0.2980985939502716, 0.005920839495956898, 0.13436740636825562, 0.23399464786052704, 0.4963955879211426, -0.027937546372413635, -0.05390601605176926, -0.10333113372325897, -0.45800355076789856, 0.022857261821627617, 0.42395687103271484, 0.6483790874481201, -0.09557896107435226, 0.17668721079826355, -0.43665507435798645, 0.13951073586940765, 0.38066136837005615, -0.022997383028268814, 0.4596586227416992, -0.06421402841806412, 0.284216970205307, -0.28907209634780884, -0.37762200832366943, 0.20217174291610718, 0.28460296988487244, -0.0968417376279831, 0.19153885543346405, 0.08896543085575104, -0.1900496780872345, -0.18134473264217377, -0.12971597909927368, -0.4387226104736328, -0.0670413225889206, -0.16066983342170715, -0.015446463599801064, 0.2671152949333191, 0.08936909586191177, -0.06376723200082779, -0.14562520384788513, -0.2757139503955841, -0.22359086573123932, 0.47275498509407043, 0.197409525513649, 0.12087250500917435, -0.2766306698322296, -0.061207640916109085, -0.30730724334716797, -0.03779546916484833, 0.023885192349553108, 0.29377710819244385, -0.2029542475938797, 0.2554224729537964, 0.06292019039392471, -0.012339534237980843, 0.5490012764930725, -0.2908588647842407, -0.20555175840854645, 0.2633002996444702, -0.05804210528731346, -0.22411450743675232, 0.18051359057426453, -0.10403349250555038, 0.6076476573944092, 0.24335356056690216, 0.5753422379493713, -0.31156548857688904, 0.2990724742412567, 0.1214509978890419, 0.37018391489982605, -0.23179885745048523, -0.2861902117729187, -0.19550125300884247, -0.4630240201950073, -0.13890482485294342, -0.3091445863246918, -0.33634552359580994, 0.47525498270988464, 0.23033080995082855, 0.17040179669857025, 0.31160151958465576, -0.1196059063076973, 0.2841053307056427, 0.11535485833883286, 0.25763797760009766, 0.23350398242473602, 0.42463985085487366, -0.10522842407226562, -0.06710546463727951, 0.36698243021965027, 0.6004717350006104, 0.20311035215854645, -0.09567326307296753, 0.12841999530792236, -0.03640357404947281, 0.3953668773174286, -0.013246739283204079, 0.26692596077919006, -0.10981941968202591, 0.02109421044588089, -0.21841275691986084, -0.11553158611059189, -0.02341005578637123, -0.01939665898680687, -0.2241465300321579, -0.6888646483421326, -0.3939306139945984, 0.2423805594444275, -0.010685544461011887, 0.30029720067977905, 0.2865820825099945, 0.14248113334178925, -0.22004301846027374, 0.47148627042770386, -0.21347558498382568, 0.8308828473091125, -0.05265549197793007, -0.027970364317297935, 0.04540926218032837, 0.15106628835201263, 0.703414261341095, -0.514280378818512, 0.41265058517456055, -0.38910314440727234, -0.02690853737294674, 0.051578328013420105, -0.175800159573555, 0.17506380379199982, 0.4178824722766876, -0.432526558637619, 0.1930052936077118, -0.0822674036026001, -0.11858409643173218, -0.1702669858932495, 0.4646315276622772, -0.12328126281499863, -0.3681623339653015, -0.3878656029701233, 0.12439023703336716, -0.15596188604831696, 0.38852453231811523, -0.0936819389462471, -0.01732580177485943, -0.5373468995094299, -0.02376747690141201, -0.21049757301807404, -0.022060737013816833, 0.31865641474723816, 0.24980615079402924, 0.5425416827201843, -0.39588603377342224, 0.16806142032146454, 0.1537737101316452, 0.5115236043930054, 0.32337167859077454, -0.21308311820030212, -0.043141525238752365, -0.008564276620745659, -0.41504380106925964, 0.08617410808801651, 0.02331739291548729, 0.32594001293182373, 0.0027127128560096025, -0.24869371950626373, 0.15543805062770844, -0.09102323651313782, -0.053070321679115295, -0.09715481102466583, -0.1465337574481964, -0.24172958731651306, -0.2759900391101837, -0.3625268340110779, 0.25870025157928467, -0.16885404288768768, -0.14154577255249023, 0.0788363441824913, 0.29711592197418213, -0.13539183139801025, 0.11851567775011063, 0.020256973803043365, -0.1812778264284134, -0.22068993747234344, 0.2320658564567566, 0.3509169816970825, -0.17117758095264435, 0.459307998418808, 0.2199607491493225, -0.0807434469461441, -0.2345268577337265, 0.10708928108215332, 0.12530580163002014, -0.12980130314826965, 0.2112327665090561, 0.3616858124732971, 0.15047229826450348, 0.2839151620864868, 0.3608107566833496, -0.16636352241039276, 0.1632489413022995, 0.07301373779773712, -0.3863007724285126, -0.4366529583930969, 0.24695752561092377, 0.02442772500216961, 0.09015461057424545, 0.13847877085208893, 0.3877495229244232, 0.2723519504070282, 0.035062216222286224, -0.26488196849823, -0.045566923916339874, -0.36969128251075745, 0.26377999782562256, 0.2491612434387207, 0.0605018325150013, -0.21608516573905945, -0.057570721954107285, 0.05101491138339043, -0.20330004394054413, -0.029042594134807587, -0.15440814197063446, -0.22161312401294708, 0.15202641487121582, 0.1260635107755661, 0.015447616577148438, -0.12458014488220215, -0.22966709733009338, -0.23324689269065857, -0.019939757883548737, -0.26050761342048645, 0.1780530959367752, 0.10190968215465546, 0.15461847186088562, 0.09359776973724365, -0.3269786834716797, -0.10735625773668289, -0.014843693003058434, -0.06195342540740967, 0.38624507188796997, 0.08435267210006714, 0.04523346200585365, 0.11616643518209457, 0.042538393288850784, -0.4028134346008301, 0.0701119601726532, -0.15169329941272736, 0.08376214653253555, 0.14908641576766968, -0.15714488923549652, 0.2667427361011505, 0.021798228845000267, 0.10998331755399704, 0.34660592675209045, -0.13597363233566284, 0.14051754772663116, 0.2605538070201874, 0.11154524981975555, -0.16209110617637634, -0.04408056661486626, 0.32794612646102905, 0.04348015785217285, -0.012226800434291363, 0.3146599233150482, -0.13310489058494568, 0.13106966018676758, -0.1478777974843979, 0.18498791754245758, 0.3246777057647705, -0.06314756721258163, 0.2577344477176666, 0.13641010224819183, 0.0012923725880682468, -0.09770169854164124, 0.25944432616233826, 0.18815267086029053, -0.08532194048166275, 0.18237808346748352, 0.045088812708854675, 0.3973942995071411, 0.30235180258750916, 0.28611862659454346, 0.21092699468135834, -0.22499950230121613, 0.05044650286436081, -0.20212405920028687, 0.25073298811912537, -0.041926052421331406, 0.08260221779346466, 0.21872511506080627, -0.19586826860904694, 0.30180782079696655, -0.17804104089736938, 0.10303839296102524, -0.32084885239601135, -0.06560025364160538, -0.11257030069828033, -0.26747116446495056, 0.2546587884426117, -0.08748061954975128, 0.029256051406264305, -0.10721778124570847, -0.15491372346878052, -0.05317867919802666, -0.0556119903922081, -0.3274427056312561, 0.41589081287384033, -0.014811506494879723, 0.02092673070728779, -0.10051345080137253, 0.3173045516014099, -0.16874581575393677, -0.12283192574977875, -0.12241169810295105, 0.34476178884506226, 0.30761322379112244, 0.346965491771698, 0.13811098039150238, 0.2645438611507416, -0.07761800289154053, -0.1906181424856186, 0.11390841752290726, 0.4997579753398895, 0.45840632915496826, -0.10555968433618546, 0.025127602741122246, 0.05902829021215439, -0.02446502260863781, 0.13379649817943573, 0.5156471133232117, 0.03815034031867981, 0.1663970947265625, 0.44952717423439026, -0.11991024017333984, -0.12360431253910065, -0.25661739706993103, 0.299698144197464, -0.4078591763973236, -0.1276351660490036, 0.5206469297409058, 0.040347058326005936, -0.009024547412991524, -0.3289634883403778, 0.0792628675699234, -0.04677293822169304, 0.29387277364730835, 0.3701542019844055, 0.12014267593622208, -0.26257842779159546, -0.24848149716854095, -0.3296501636505127, -0.062406670302152634, -0.1111392006278038, -0.16207711398601532, -0.2252211570739746, 0.36316561698913574, 0.02614518813788891, 0.18046008050441742, -0.36288270354270935, 0.28943824768066406, -0.14855611324310303, 0.07487617433071136, -0.14089824259281158, -0.3381900489330292, -0.15416379272937775, 0.1900702267885208, -0.08194971829652786, -0.08714448660612106, -0.01849837601184845, -0.2756529152393341, -0.011309449560940266, -0.43276023864746094, -0.21586301922798157, 0.2175656408071518, 0.3473260998725891, 0.10093319416046143, 0.07363896071910858, 0.37652158737182617, -0.2977445125579834, -0.18720819056034088, -0.19394992291927338, -0.22783586382865906, -0.09512003511190414, 0.27850213646888733, 0.2827718257904053, 0.3774262070655823, -0.3015463054180145, 0.3614298403263092, -0.14139340817928314, 0.09885425865650177, -0.030948102474212646, 0.11747400462627411, -0.09106148034334183, 0.012101314961910248, -0.29160863161087036, -0.09359487146139145, 0.0717778280377388, 0.2724190056324005, 0.0033910907804965973, 0.320264995098114, -0.09971468150615692, -0.44917502999305725, 0.4673531651496887, -0.2092687487602234, -0.18863163888454437, -0.02794843725860119, 0.02736983634531498, -0.2985513210296631, -0.25510263442993164, -0.24643059074878693, 0.07022601366043091, 0.35536712408065796, -0.2813263237476349, 0.01821635104715824, 0.0918259248137474, -0.19161558151245117, 0.047814927995204926, -0.026989934965968132, 0.17802518606185913, 0.1036384254693985, 0.008864670991897583, -0.11351379752159119, 0.04193819314241409 ]
https://github.com/huggingface/datasets/issues/238
[Metric] Bertscore : Warning : Empty candidate sentence; Setting recall to be 0.
This print statement comes from the official implementation of bert_score (see [here](https://github.com/Tiiiger/bert_score/blob/master/bert_score/utils.py#L343)). The warning shows up only if the attention mask outputs no candidate. Right now we want to only use official code for metrics to have fair evaluations, so I'm not sure we can do anything about it. Maybe you can try to create an issue on their [repo](https://github.com/Tiiiger/bert_score) ?
When running BERT-Score, I'm meeting this warning : > Warning: Empty candidate sentence; Setting recall to be 0. Code : ``` import nlp metric = nlp.load_metric("bertscore") scores = metric.compute(["swag", "swags"], ["swags", "totally something different"], lang="en", device=0) ``` --- **What am I doing wrong / How can I hide this warning ?**
61
[Metric] Bertscore : Warning : Empty candidate sentence; Setting recall to be 0. When running BERT-Score, I'm meeting this warning : > Warning: Empty candidate sentence; Setting recall to be 0. Code : ``` import nlp metric = nlp.load_metric("bertscore") scores = metric.compute(["swag", "swags"], ["swags", "totally something different"], lang="en", device=0) ``` --- **What am I doing wrong / How can I hide this warning ?** This print statement comes from the official implementation of bert_score (see [here](https://github.com/Tiiiger/bert_score/blob/master/bert_score/utils.py#L343)). The warning shows up only if the attention mask outputs no candidate. Right now we want to only use official code for metrics to have fair evaluations, so I'm not sure we can do anything about it. Maybe you can try to create an issue on their [repo](https://github.com/Tiiiger/bert_score) ?
[ 0.21720826625823975, -0.135275736451149, 0.14042699337005615, 0.16189944744110107, 0.17440533638000488, 0.06719116121530533, -0.030321486294269562, 0.26454958319664, 0.43676093220710754, 0.38249868154525757, 0.4003346562385559, 0.12437249720096588, -0.25700053572654724, -0.4931713044643402, -0.19989845156669617, -0.13574279844760895, 0.06771980226039886, 0.45222485065460205, 0.5661277770996094, -0.2519272565841675, -0.2824743688106537, -0.0953282043337822, -0.36593443155288696, 0.2246672660112381, -0.2690204679965973, 0.05526084080338478, 0.02213902398943901, -0.262654185295105, -0.18086279928684235, -0.5885032415390015, 0.1738509088754654, -0.18839269876480103, -0.23312869668006897, 0.23774227499961853, -0.00012839816918130964, -0.2515503466129303, 0.41556650400161743, -0.08370167762041092, 0.25237950682640076, -0.431039035320282, -0.41886135935783386, -0.13713255524635315, 0.23613514006137848, -0.23898127675056458, 0.01873229816555977, 0.20300111174583435, 0.15170715749263763, -0.1645323634147644, 0.06861729919910431, 0.18617099523544312, 0.012134971097111702, 0.29367733001708984, -0.10588738322257996, -0.06110610067844391, 0.0227682963013649, -0.13133831322193146, -0.027575548738241196, 0.04138735681772232, -0.19263489544391632, -0.2139676958322525, -0.049575142562389374, 0.5230769515037537, -0.39526814222335815, 0.12015611678361893, 0.6345876455307007, 0.09058526903390884, 0.23154692351818085, -0.2104473114013672, 0.014782953076064587, 0.27372151613235474, -0.12098611146211624, -0.11754946410655975, -0.027836166322231293, -0.07351149618625641, 0.3021913170814514, -0.34314972162246704, 0.18524014949798584, 0.0706934779882431, -0.014290768653154373, -0.21163290739059448, -0.3099202811717987, -0.23575414717197418, -0.2747385799884796, -0.04520725831389427, -0.04724252223968506, 0.3264421820640564, 0.07715874165296555, -0.06478945165872574, 0.285643070936203, -0.14467792212963104, -0.09321388602256775, -0.18928518891334534, -0.1289050430059433, 0.19410809874534607, -0.08561013638973236, -0.2921290099620819, 0.1814129501581192, -0.3983612358570099, 0.24138616025447845, -0.48228710889816284, 0.13002049922943115, -0.16159330308437347, 0.012532335706055164, 0.020525939762592316, 0.26351410150527954, 0.4210567772388458, 0.292951375246048, 0.21045687794685364, -0.26322436332702637, 0.1833082139492035, 0.18790927529335022, -0.030386341735720634, 0.13825391232967377, 0.19800254702568054, 0.4277036488056183, 0.21829336881637573, -0.0025748673360794783, -0.30605876445770264, -0.378777414560318, 0.36670827865600586, -0.6508228778839111, -0.15543565154075623, 0.17796608805656433, 0.09617878496646881, -0.19080644845962524, 0.1977977454662323, -0.12019512802362442, 0.15263471007347107, -0.29937028884887695, -0.22512111067771912, -0.24214674532413483, 0.1063050702214241, -0.2950395345687866, -0.010945926420390606, 0.1267605572938919, 0.16873544454574585, 0.2033836841583252, -0.0032161243725568056, 0.469149112701416, 0.14475470781326294, -0.003000765573233366, -0.41757747530937195, 0.36531126499176025, 0.28707602620124817, 0.0016986343543976545, -0.07931085675954819, 0.36709365248680115, -0.14234764873981476, -0.11156170070171356, 0.40287861227989197, -0.13672970235347748, -0.1410662829875946, 0.14874987304210663, 0.04095783457159996, -0.5017947554588318, -0.010037281550467014, -0.12011133879423141, 0.4336758553981781, -0.1826021522283554, 0.04532676562666893, 0.11144668608903885, -0.08207477629184723, -0.16787150502204895, -0.07206478714942932, 0.39504387974739075, 0.6641332507133484, -0.031152775511145592, -0.15087752044200897, 0.03429964557290077, 0.15367360413074493, 0.20910371840000153, -0.022477880120277405, 0.12606334686279297, 0.2954159080982208, 0.02102627046406269, 0.2190597653388977, 0.1616792231798172, -0.54075688123703, -0.08255311101675034, -0.11912880092859268, -0.08885584771633148, -0.045251913368701935, -0.03992854058742523, -0.012578340247273445, -0.14459556341171265, -0.07708481699228287, 0.15685002505779266, -0.4318300485610962, -0.08282221108675003, 0.0029677716083824635, -0.35944199562072754, -0.20307153463363647, 0.24268768727779388, -0.2542194426059723, 0.1952989399433136, 0.12293469905853271, -0.371589720249176, 0.6814708113670349, -0.06561018526554108, -0.03771686926484108, 0.028672955930233, -0.2180282324552536, 0.27387163043022156, -0.0218698401004076, -0.17361551523208618, 0.07164536416530609, 0.13279393315315247, -0.018218915909528732, -0.4321432411670685, 0.12999023497104645, 0.29068005084991455, -0.266561359167099, -0.20600183308124542, -0.1474107801914215, -0.21998542547225952, -0.19806624948978424, 0.012501776218414307, -0.2633135914802551, 0.009122735820710659, 0.1802120804786682, -0.2141343504190445, -0.2851106822490692, -0.17545011639595032, 0.08871243894100189, 0.1457495391368866, -0.14548002183437347, 0.1112031638622284, -0.1030416265130043, 0.07960966974496841, 0.4481421113014221, 0.4937632083892822, 0.3303021192550659, 0.016116328537464142, 0.2067020833492279, 0.010452061891555786, -0.13259701430797577, 0.03502562642097473, 0.053959306329488754, 0.17249462008476257, -0.43147358298301697, 0.1335953325033188, 0.18340012431144714, -0.025970838963985443, 0.09592793881893158, -0.13453935086727142, 0.03906092047691345, 0.0892210528254509, 0.2943093776702881, -0.2372470200061798, -0.12048963457345963, -0.35906097292900085, -0.07625294476747513, 0.15675568580627441, -0.2641414999961853, -0.02158782072365284, 0.05547109246253967, -0.05854786932468414, -0.0392434187233448, -0.13430103659629822, -0.27031806111335754, 0.22942854464054108, 0.2274954468011856, 0.16676700115203857, 0.08865352720022202, 0.06643327325582504, -0.20243173837661743, -0.047328729182481766, -0.483143150806427, 0.23713846504688263, 0.17029647529125214, -0.04706042632460594, 0.08297115564346313, -0.27286556363105774, -0.14483803510665894, 0.053109727799892426, 0.4124593436717987, -0.20576676726341248, -0.04805224761366844, -0.006830355618149042, 0.04760688170790672, 0.09825356304645538, 0.0562812015414238, -0.09622687846422195, 0.2895219326019287, -0.33352237939834595, 0.08283649384975433, 0.04709469899535179, -0.19011016190052032, -0.16286899149417877, 0.03261887654662132, -0.3311600387096405, -0.07701091468334198, 0.2044580578804016, -0.18966764211654663, -0.06714683771133423, 0.154546856880188, -0.03886978328227997, 0.29401931166648865, -0.04482756182551384, -0.029598534107208252, -0.13415013253688812, -0.08877985179424286, -0.2249082326889038, -0.02499096840620041, -0.30715975165367126, 0.28179243206977844, 0.1091587096452713, -0.1889469176530838, -0.13185037672519684, 0.16483306884765625, -0.17325912415981293, 0.17265266180038452, -0.2086055725812912, -0.002817477798089385, 0.02467050589621067, -0.023197999224066734, -0.5214913487434387, 0.09408799558877945, 0.15559713542461395, -0.11032594740390778, 0.03985956311225891, 0.061458051204681396, 0.10273203998804092, 0.338735967874527, -0.27066904306411743, -0.3621062636375427, 0.2669711709022522, 0.03264251723885536, 0.01215431559830904, -0.09663671255111694, 0.13886098563671112, -0.02623670920729637, 0.08837439119815826, 0.3146153688430786, -0.266376793384552, -0.2583743929862976, -0.17628361284732819, -0.28777414560317993, 0.27032244205474854, 0.01031800452619791, -0.10036502778530121, 0.3193667232990265, -0.1577475219964981, 0.12302194535732269, -0.49593764543533325, -0.3708247244358063, -0.6145663261413574, 0.18393687903881073, -0.4545835554599762, -0.15912257134914398, -0.0006665408727712929, 0.11899808049201965, -0.07649172097444534, 0.003376554697751999, -0.08857037872076035, 0.07328854501247406, 0.24264845252037048, -0.40847647190093994, 0.4219227731227875, -0.25832274556159973, -0.2140689641237259, -0.10206558555364609, 0.4282720386981964, 0.38614392280578613, 0.22283720970153809, -0.029498791322112083, 0.15570560097694397, 0.33107882738113403, -0.03014875389635563, -0.02439647540450096, 0.1702742874622345, 0.550682544708252, -0.014458861202001572, 0.12744587659835815, -0.2651355266571045, 0.14736230671405792, -0.027989061549305916, -0.1648581326007843, 0.01462969183921814, -0.28975802659988403, 0.0721382424235344, 0.09702881425619125, 0.26345035433769226, -0.020043939352035522, 0.12034965306520462, 0.011450516059994698, -0.3101596236228943, -0.11343071609735489, 0.06941461563110352, 0.549842894077301, 0.010072990320622921, 0.11184826493263245, -0.3050130009651184, -0.3805798888206482, 0.17554113268852234, 0.14606575667858124, 0.21115899085998535, -0.1778201460838318, 0.05927161127328873, 0.1955939531326294, 0.29415014386177063, 0.4730263948440552, -0.12436635047197342, 0.16178937256336212, 0.3088496923446655, 0.20173285901546478, 0.24597801268100739, 0.16906346380710602, -0.3690791130065918, -0.4282013177871704, 0.10558591783046722, -0.1016467958688736, -0.4301857352256775, -0.1570996791124344, 0.39827072620391846, -0.08553745597600937, -0.18569275736808777, -0.14267949759960175, -0.6614430546760559, 0.19826121628284454, 0.19894184172153473, 0.4220896363258362, 0.09530021995306015, 0.4285653531551361, 0.20117391645908356, 0.26416921615600586, 0.09672296047210693, -0.011139401234686375, 0.3545056879520416, 0.05938011780381203, 0.21952521800994873, 0.09096484631299973, -0.04813282564282417, 0.40851840376853943, -0.19146335124969482, 0.22223374247550964, 0.05902787297964096, -0.10556821525096893, -0.5071746706962585, 0.09683399647474289, 0.09931580722332001, 0.5091096758842468, 0.12250947207212448, 0.28019970655441284, 0.0754743441939354, -0.2258041948080063, 0.28716665506362915, -0.2117871642112732, 0.3690882921218872, 0.2239636778831482, -0.11886392533779144, 0.11578711122274399, -0.14643388986587524, 0.2851332426071167, 0.1957734227180481, 0.04805455356836319, -0.31509146094322205, 0.43768852949142456, 0.01445482112467289, 0.1409291923046112, 0.4275515675544739, 0.9575663208961487, 0.07306069135665894, 0.04362468048930168, 0.2549076974391937, -0.032642874866724014, 0.7441517114639282, -0.21485593914985657, 0.08979292213916779, -0.06835128366947174, 0.21483789384365082, 0.022926783189177513, -0.002236828440800309, 0.0607360415160656, -0.04395843297243118, -0.21711553633213043, 0.6109157204627991, -0.173309788107872, -0.11760378628969193, 0.024689439684152603, -0.02709309756755829, 0.10401485115289688, -0.16345694661140442, -0.08123473823070526, -0.07236343622207642, -0.05229616165161133, 0.22826509177684784, -0.01079405378550291, -0.05511785298585892, 0.23779933154582977, -0.20941294729709625, -0.2974386215209961, -0.0019063670188188553, 0.026966670528054237, -0.526780903339386, 0.14646263420581818, -0.2675231397151947, 0.36079859733581543, 0.03210236504673958, 0.46352189779281616, 0.41841015219688416, -0.18074695765972137, 0.10511632263660431, -0.15274368226528168, -0.006737706251442432, -0.14569009840488434, 0.24803827702999115, 0.0990758165717125, -0.020511697977781296, -0.5675650238990784, 0.3666435480117798, -0.24065463244915009, 0.19315825402736664, -0.10599453002214432, -0.14595597982406616, 0.5476582646369934, -0.03665517270565033, 0.10459806770086288, 0.05696314573287964, 0.39167848229408264, 0.07116425782442093, 0.05389520525932312, 0.07446310669183731, -0.019363081082701683, -0.15149608254432678, 0.09091520309448242, -0.5053489208221436, 0.16305841505527496, 0.09837080538272858, 0.20543192327022552, -0.4433356821537018, 0.39069825410842896, -0.4139958322048187, 0.07976820319890976, -0.0992843434214592, -0.060958992689847946, 0.2084016650915146, -0.13743536174297333, 0.0007631864282302558, 0.36733314394950867, -0.08686807006597519, 0.07700521498918533, 0.44774919748306274, 0.1302054226398468, 0.2307729423046112, -0.03810795396566391, 0.06822657585144043, -0.12081301212310791, 0.23977212607860565, -0.29808762669563293, -0.16757766902446747, 0.03730500862002373, 0.3075714111328125, 0.33014145493507385, -0.014356860890984535, -0.1338280886411667, -0.19419847428798676, -0.5053746104240417, 0.15809029340744019, -0.4343179762363434, 0.15748119354248047, 0.2092004418373108, -0.13374339044094086, -0.17195290327072144, 0.10557900369167328, -0.23207905888557434, -0.013411462306976318, -0.14554308354854584, 0.23515057563781738, 0.0384775847196579, 0.18238377571105957, -0.23042690753936768, -0.059902552515268326, 0.16588044166564941, -0.0532420314848423, -0.1679230034351349, 0.1551947295665741, 0.09452717006206512, 0.545892596244812, -0.06375755369663239, 0.4176982641220093, -0.28636717796325684, -0.2815249562263489, 0.23753324151039124, 0.22738051414489746, -0.1116873100399971, -0.09166465699672699, 0.05896406248211861, -0.08631225675344467, 0.1568608433008194, 0.07994438707828522, 0.12329594790935516, 0.12096536159515381, -0.01721009984612465, 0.18093164265155792, 0.19521772861480713, -0.06115308403968811, -0.3473814129829407, -0.21226391196250916, 0.022534936666488647, -0.39778631925582886, 0.2605220377445221, 0.05957437679171562, -0.2505081295967102, 0.053490959107875824, -0.17548297345638275, 0.6088401079177856, 0.029005197808146477, 0.23864534497261047, -0.1407233327627182, -0.019469764083623886, 0.28785446286201477, 0.18510866165161133, 0.15939019620418549, -0.2071872502565384, 0.010495900176465511, 0.1525927037000656, -0.274783730506897, 0.03430867940187454, 0.3500220775604248, -0.003298702882602811, 0.20547564327716827, 0.316089391708374, 0.19439716637134552, 0.5569958090782166, -0.34458157420158386, 0.19174569845199585, -0.39110875129699707, 0.036738429218530655, -0.45992961525917053, 0.3406831920146942, 0.17214640974998474, 0.08621559292078018, -0.017071669921278954, 0.3387986123561859, -0.1774633377790451, -0.16927313804626465, 0.13066500425338745, -0.20185518264770508, 0.016558948904275894, 0.15368862450122833, -0.3063332140445709, 0.05596128851175308, -0.016245288774371147, -0.0321236178278923, 0.32993924617767334, 0.031006893143057823, -0.02248702198266983, -0.08655263483524323, -0.17185290157794952, 0.28520187735557556, -0.27073970437049866, 0.522837221622467, 0.3205714523792267, -0.034074265509843826, -0.0056124115362763405, 0.09219415485858917, -0.00783252902328968, 0.3110414743423462, 0.7324507832527161, 0.03610505908727646, 0.18166422843933105, 0.1303395926952362, -0.3069491982460022, -0.11715397238731384, -0.00293022976256907, 0.031573161482810974, 0.14525920152664185, 0.4266272783279419, -0.20964230597019196, -0.09888007491827011, -0.1129489615559578, -0.022370848804712296, 0.39307358860969543, -0.07005935162305832, 0.1703612059354782, -0.17088212072849274, 0.5136826038360596, 0.3483600914478302, 0.12149394303560257, -0.16428516805171967, -0.05702636390924454, -0.4837380647659302, 0.4891716539859772, -0.15863695740699768, 0.18536359071731567, -0.10415489971637726, -0.2171953171491623, -0.00225088675506413, 0.06892520189285278, 0.1474962681531906, 0.22316187620162964, -0.3148418068885803, -0.6887146234512329, 0.07003363221883774, -0.8960811495780945, 0.26028791069984436, -0.05604054406285286, 0.12098769098520279, 0.2514040470123291, 0.03395457565784454, -0.4636757969856262, 0.2557693421840668, -0.22053641080856323, 0.1959705948829651, -0.2555963099002838, -0.2598947286605835, -0.2125658094882965, 0.0627962127327919, -0.059400774538517, -0.19813969731330872, 0.05035246163606644, 0.20902690291404724, 0.10862741619348526, -0.2327682226896286, -0.09535664319992065, 0.2643111050128937, -0.13592952489852905, -0.013214324600994587, 0.9460544586181641, 0.03358347341418266, 0.286344438791275, 0.3399702310562134, 0.055416930466890335, -0.02822820656001568, 0.15829697251319885, 0.36546969413757324, -0.13598479330539703, -0.16169260442256927, 0.05979309603571892, 0.128450408577919, -0.39443135261535645, 0.1675124317407608, -0.08594920486211777, 0.44454461336135864, 0.08250962942838669, -0.24523071944713593, -0.45012161135673523, 0.27838000655174255, -0.038834262639284134, 0.14938227832317352, -0.2521255910396576, -0.12940014898777008, 0.09984619915485382, 0.12449818104505539, -0.30446210503578186, -0.014317646622657776, 0.36232614517211914, -0.511416494846344, -0.12458894401788712, -0.30229446291923523, 0.3139731287956238, 0.09409962594509125, -0.3380865752696991, -1.1964466571807861, -0.05825125053524971, 0.20869536697864532, 0.31924718618392944, -0.29331091046333313, -0.17053620517253876, -0.4087941646575928, 0.029031213372945786, -0.09392362833023071, 0.2171408087015152, 0.09208983927965164, 0.04591582342982292, 0.3510315418243408, -0.4274110496044159 ]
https://github.com/huggingface/datasets/issues/237
Can't download MultiNLI
Thanks! I thought I had to use the same code displayed in the live viewer: ```python !pip install nlp from nlp import load_dataset dataset = load_dataset('multi_nli', 'plain_text') ``` Your suggestion works, even if then I got a different issue (#242).
When I try to download MultiNLI with ```python dataset = load_dataset('multi_nli') ``` I get this long error: ```python --------------------------------------------------------------------------- OSError Traceback (most recent call last) <ipython-input-13-3b11f6be4cb9> in <module> 1 # Load a dataset and print the first examples in the training set 2 # nli_dataset = nlp.load_dataset('multi_nli') ----> 3 dataset = load_dataset('multi_nli') 4 # nli_dataset = nlp.load_dataset('multi_nli', split='validation_matched[:10%]') 5 # print(nli_dataset['train'][0]) ~\Miniconda3\envs\nlp\lib\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) 514 515 # Download and prepare data --> 516 builder_instance.download_and_prepare( 517 download_config=download_config, 518 download_mode=download_mode, ~\Miniconda3\envs\nlp\lib\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) 417 with utils.temporary_assignment(self, "_cache_dir", tmp_data_dir): 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 ) ~\Miniconda3\envs\nlp\lib\site-packages\nlp\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 455 split_dict = SplitDict(dataset_name=self.name) 456 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 457 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 458 # Checksums verification 459 if verify_infos: ~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\multi_nli\60774175381b9f3f1e6ae1028229e3cdb270d50379f45b9f2c01008f50f09e6b\multi_nli.py in _split_generators(self, dl_manager) 99 def _split_generators(self, dl_manager): 100 --> 101 downloaded_dir = dl_manager.download_and_extract( 102 "http://storage.googleapis.com/tfds-data/downloads/multi_nli/multinli_1.0.zip" 103 ) ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in download_and_extract(self, url_or_urls) 214 extracted_path(s): `str`, extracted paths of given URL(s). 215 """ --> 216 return self.extract(self.download(url_or_urls)) 217 218 def get_recorded_sizes_checksums(self): ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in extract(self, path_or_paths) 194 path_or_paths. 195 """ --> 196 return map_nested( 197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 198 ) ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\py_utils.py in map_nested(function, data_struct, dict_only, map_tuple) 168 return tuple(mapped) 169 # Singleton --> 170 return function(data_struct) 171 172 ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in <lambda>(path) 195 """ 196 return map_nested( --> 197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 198 ) 199 ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 231 if is_zipfile(output_path): 232 with ZipFile(output_path, "r") as zip_file: --> 233 zip_file.extractall(output_path_extracted) 234 zip_file.close() 235 elif tarfile.is_tarfile(output_path): ~\Miniconda3\envs\nlp\lib\zipfile.py in extractall(self, path, members, pwd) 1644 1645 for zipinfo in members: -> 1646 self._extract_member(zipinfo, path, pwd) 1647 1648 @classmethod ~\Miniconda3\envs\nlp\lib\zipfile.py in _extract_member(self, member, targetpath, pwd) 1698 1699 with self.open(member, pwd=pwd) as source, \ -> 1700 open(targetpath, "wb") as target: 1701 shutil.copyfileobj(source, target) 1702 OSError: [Errno 22] Invalid argument: 'C:\\Users\\Python\\.cache\\huggingface\\datasets\\3e12413b8ec69f22dfcfd54a79d1ba9e7aac2e18e334bbb6b81cca64fd16bffc\\multinli_1.0\\Icon\r' ```
40
Can't download MultiNLI When I try to download MultiNLI with ```python dataset = load_dataset('multi_nli') ``` I get this long error: ```python --------------------------------------------------------------------------- OSError Traceback (most recent call last) <ipython-input-13-3b11f6be4cb9> in <module> 1 # Load a dataset and print the first examples in the training set 2 # nli_dataset = nlp.load_dataset('multi_nli') ----> 3 dataset = load_dataset('multi_nli') 4 # nli_dataset = nlp.load_dataset('multi_nli', split='validation_matched[:10%]') 5 # print(nli_dataset['train'][0]) ~\Miniconda3\envs\nlp\lib\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) 514 515 # Download and prepare data --> 516 builder_instance.download_and_prepare( 517 download_config=download_config, 518 download_mode=download_mode, ~\Miniconda3\envs\nlp\lib\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) 417 with utils.temporary_assignment(self, "_cache_dir", tmp_data_dir): 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 ) ~\Miniconda3\envs\nlp\lib\site-packages\nlp\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 455 split_dict = SplitDict(dataset_name=self.name) 456 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 457 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 458 # Checksums verification 459 if verify_infos: ~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\multi_nli\60774175381b9f3f1e6ae1028229e3cdb270d50379f45b9f2c01008f50f09e6b\multi_nli.py in _split_generators(self, dl_manager) 99 def _split_generators(self, dl_manager): 100 --> 101 downloaded_dir = dl_manager.download_and_extract( 102 "http://storage.googleapis.com/tfds-data/downloads/multi_nli/multinli_1.0.zip" 103 ) ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in download_and_extract(self, url_or_urls) 214 extracted_path(s): `str`, extracted paths of given URL(s). 215 """ --> 216 return self.extract(self.download(url_or_urls)) 217 218 def get_recorded_sizes_checksums(self): ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in extract(self, path_or_paths) 194 path_or_paths. 195 """ --> 196 return map_nested( 197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 198 ) ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\py_utils.py in map_nested(function, data_struct, dict_only, map_tuple) 168 return tuple(mapped) 169 # Singleton --> 170 return function(data_struct) 171 172 ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in <lambda>(path) 195 """ 196 return map_nested( --> 197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 198 ) 199 ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 231 if is_zipfile(output_path): 232 with ZipFile(output_path, "r") as zip_file: --> 233 zip_file.extractall(output_path_extracted) 234 zip_file.close() 235 elif tarfile.is_tarfile(output_path): ~\Miniconda3\envs\nlp\lib\zipfile.py in extractall(self, path, members, pwd) 1644 1645 for zipinfo in members: -> 1646 self._extract_member(zipinfo, path, pwd) 1647 1648 @classmethod ~\Miniconda3\envs\nlp\lib\zipfile.py in _extract_member(self, member, targetpath, pwd) 1698 1699 with self.open(member, pwd=pwd) as source, \ -> 1700 open(targetpath, "wb") as target: 1701 shutil.copyfileobj(source, target) 1702 OSError: [Errno 22] Invalid argument: 'C:\\Users\\Python\\.cache\\huggingface\\datasets\\3e12413b8ec69f22dfcfd54a79d1ba9e7aac2e18e334bbb6b81cca64fd16bffc\\multinli_1.0\\Icon\r' ``` Thanks! I thought I had to use the same code displayed in the live viewer: ```python !pip install nlp from nlp import load_dataset dataset = load_dataset('multi_nli', 'plain_text') ``` Your suggestion works, even if then I got a different issue (#242).
[ -0.08402598649263382, -0.022191694006323814, -0.07268693298101425, 0.04233929142355919, 0.19818374514579773, 0.06649192422628403, 0.4571824073791504, 0.08013812452554703, 0.1033792570233345, 0.08837525546550751, -0.16412515938282013, 0.2453233152627945, -0.1955302208662033, -0.08169730007648468, -0.06151336058974266, -0.27902376651763916, -0.03297087177634239, -0.06759793311357498, 0.02870474010705948, 0.1370830088853836, -0.21844297647476196, 0.13710980117321014, -0.21224288642406464, 0.21034802496433258, -0.18342015147209167, -0.15587332844734192, -0.20344075560569763, 0.23280036449432373, -0.3381268382072449, -0.36099520325660706, 0.18646571040153503, -0.1097056046128273, 0.24803248047828674, 0.01568053849041462, -0.00010717275290517136, 0.10856501758098602, 0.1779891401529312, -0.06570911407470703, -0.4063575565814972, -0.15576255321502686, -0.1127583310008049, -0.31715071201324463, 0.16040371358394623, -0.39091956615448, 0.3036189079284668, 0.3498131036758423, 0.04432997852563858, 0.045605212450027466, 0.11746975034475327, 0.4848160445690155, 0.2677161693572998, 0.4489551782608032, 0.36334848403930664, -0.07207289338111877, -0.04706209525465965, -0.20575307309627533, 0.012758122757077217, 0.37783390283584595, -0.10258516669273376, -0.17611314356327057, 0.090940922498703, 0.07363677769899368, -0.14862476289272308, 0.32257354259490967, -0.19375215470790863, -0.005293505731970072, 0.3084740936756134, -0.2554347515106201, -0.07744549959897995, 0.25744208693504333, 0.03294408693909645, 0.08301951736211777, -0.3229755163192749, 0.024158498272299767, 0.26956188678741455, -0.36274266242980957, 0.09996552765369415, 0.43507397174835205, -0.3351379632949829, -0.09220916032791138, -0.2465996891260147, -0.16574832797050476, -0.1589849293231964, 0.3905082941055298, -0.3112713098526001, 0.5100569128990173, 0.1047360748052597, 0.10575217753648758, 0.43421465158462524, -0.20320002734661102, -0.2787927985191345, -0.053084902465343475, 0.04596751183271408, 0.19603942334651947, -0.3286786675453186, 0.01897292397916317, -0.030164383351802826, -0.2324976921081543, 0.1584400236606598, 0.1301027089357376, -0.023443737998604774, -0.2342740297317505, -0.19085972011089325, 0.2034367024898529, 0.04834265634417534, 0.06421072781085968, -0.2885977029800415, 0.12499681860208511, 0.1028151586651802, 0.22912269830703735, 0.22896984219551086, 0.039217185229063034, -0.11887621879577637, -0.0918314978480339, -0.11672203242778778, 0.08612316846847534, 0.2541344463825226, 0.09224855154752731, -0.45950847864151, -0.199417382478714, -0.5215694904327393, -0.019995780661702156, 0.2925753891468048, 0.14654786884784698, -0.11265561729669571, 0.34015053510665894, 0.17328371107578278, 0.3975914418697357, -0.2035052627325058, -0.33436840772628784, -0.13727237284183502, 0.16713836789131165, -0.12311401963233948, -0.041910089552402496, 0.4352341592311859, -0.059522002935409546, 0.3110085129737854, -0.015945374965667725, -0.08545644581317902, -0.09518598765134811, 0.1114434003829956, -0.09508707374334335, -0.31102779507637024, 0.2561812102794647, 0.17043817043304443, 0.0722099021077156, 0.1697932779788971, -0.1313995122909546, -0.0520508848130703, 0.005872493144124746, -0.3391167223453522, -0.431247353553772, -0.3035270869731903, 0.2793095111846924, 0.09683501720428467, -0.1050024926662445, 0.1401997059583664, -0.400765061378479, 0.21240206062793732, -0.0330314114689827, -0.06387823075056076, -0.29449817538261414, -0.09886245429515839, -0.229562908411026, 0.2593610882759094, 0.2700579762458801, 0.1803039014339447, -0.0016136697959154844, -0.3492773175239563, -0.16569596529006958, 0.253325492143631, 0.546646773815155, -0.2035304307937622, 0.1508478969335556, -0.18046972155570984, 0.03481554612517357, 0.5982276797294617, -0.4164569079875946, -0.09771331399679184, 0.22240868210792542, -0.33464187383651733, 0.04438674449920654, 0.007630303967744112, 0.17985029518604279, 0.06427112966775894, 0.10571219027042389, 0.3237130641937256, 0.5148918628692627, -0.17978990077972412, 0.07943879067897797, -0.18947143852710724, -0.25256019830703735, 0.18896189332008362, 0.377663791179657, 0.05214109271764755, 0.07108120620250702, -0.12936340272426605, 0.47295457124710083, 0.4586097300052643, 0.005411853548139334, 0.06879492104053497, 0.08226975053548813, 0.14546918869018555, -0.09017075598239899, -0.32684072852134705, -0.03324989229440689, -0.3870309591293335, 0.12790723145008087, 0.03956683352589607, 0.10327277332544327, -0.026721429079771042, 0.08823825418949127, -0.10366044193506241, 0.04945048317313194, -0.19201824069023132, -0.12529318034648895, 0.1495802402496338, 0.20344729721546173, 0.091927669942379, 0.024226024746894836, 0.023437347263097763, 0.5169650912284851, -0.03080645017325878, 0.13072259724140167, -0.4853760302066803, 0.24790413677692413, -0.3664749264717102, -0.04308842867612839, 0.026625938713550568, 0.021789105609059334, -0.06374724209308624, 0.04763061925768852, -0.09675028920173645, 0.30467334389686584, -0.03968494385480881, -0.42345473170280457, -0.1047511100769043, -0.10427732765674591, 0.11548298597335815, -0.11447593569755554, 0.13060903549194336, 0.3364741802215576, 0.06668748706579208, -0.049995798617601395, -0.3063912093639374, 0.33378222584724426, 0.030765142291784286, 0.0900290310382843, -0.0031024999916553497, 0.3673844635486603, 0.30187392234802246, -0.020218627527356148, -0.03725523501634598, -0.1680348962545395, 0.33377960324287415, 0.037274446338415146, 0.04853310063481331, -0.22524650394916534, -0.31696537137031555, -0.16648000478744507, 0.301168292760849, 0.0414903350174427, 0.030545266345143318, 0.042151641100645065, 0.18877895176410675, 0.04921528697013855, -0.11622381210327148, 0.004849557764828205, 0.46699902415275574, 0.08540746569633484, 0.10949735343456268, -0.022692566737532616, -0.18930499255657196, -0.2992955148220062, 0.06442616134881973, -0.0190872885286808, 0.20575091242790222, -0.059155791997909546, 0.13096743822097778, -0.10995648801326752, -0.040130678564310074, -0.4957754909992218, 0.28540199995040894, 0.4715660512447357, -0.2018336057662964, 0.06350665539503098, -0.34738531708717346, -0.5306872725486755, -0.23372028768062592, -0.2072548121213913, -0.3806077837944031, -0.3395347595214844, -0.16524472832679749, 0.4490947425365448, 0.08724850416183472, 0.02022884227335453, -0.016367318108677864, -0.2310706079006195, 0.27137476205825806, -0.03954921290278435, 0.20371194183826447, -0.0712692067027092, -0.277278333902359, 0.15111736953258514, 0.3364778161048889, -0.021461525931954384, 0.25275230407714844, -0.10023566335439682, -0.1733544021844864, -0.26810401678085327, 0.015854714438319206, -0.2235611379146576, 0.09388388693332672, -0.26435527205467224, 0.2511916160583496, 0.3671225905418396, 0.046039726585149765, -0.2325371950864792, 0.2155635505914688, -0.01895107701420784, -0.1420430839061737, 0.32799530029296875, 0.006150375586003065, 0.09732867777347565, -0.1499352753162384, -0.30683621764183044, -0.3677203059196472, -0.459653377532959, 0.21241652965545654, -0.05588774383068085, 0.21250976622104645, 0.3740655779838562, 0.045510537922382355, 0.19765184819698334, 0.03390195220708847, -0.13301202654838562, 0.03633933141827583, 0.04785100743174553, 0.15722154080867767, -0.18953630328178406, -0.30111390352249146, -0.07816235721111298, 0.20414064824581146, 0.21321551501750946, 0.0037157973274588585, -0.3780253231525421, -0.025708775967359543, 0.030842015519738197, 0.2746252119541168, -0.19093361496925354, -0.04381512105464935, 0.2122444361448288, -0.34536904096603394, -0.041161272674798965, 0.21667173504829407, 0.04302589222788811, 0.08033507317304611, 0.21866102516651154, 0.45158639550209045, -0.14153286814689636, 0.5075709223747253, 0.048484671860933304, 0.3951180875301361, 0.2567918002605438, -0.019463513046503067, 0.372538298368454, -0.021026194095611572, -0.06965180486440659, 0.021603906527161598, -0.40248486399650574, -0.00677459454163909, -0.12186507880687714, 0.15624795854091644, -0.028096899390220642, -0.10814917087554932, -0.34823131561279297, -0.17430421710014343, 0.09584638476371765, 0.10263016819953918, -0.20526139438152313, 0.09995435923337936, -0.24396100640296936, 0.02690127119421959, 0.01056811772286892, -0.09341000020503998, -0.03576391562819481, -0.17128731310367584, -0.33534812927246094, 0.32954686880111694, -0.2056184560060501, -0.007514019496738911, -0.06466414034366608, -0.16376926004886627, -0.2538139224052429, 0.038105376064777374, 0.17867285013198853, 0.5281775593757629, 0.03131745755672455, 0.11330674588680267, 0.15177004039287567, -0.057921793311834335, 0.3662664592266083, 0.04317755997180939, 0.11232906579971313, 0.31039851903915405, 0.16554440557956696, -0.5614233016967773, -0.3184337019920349, -0.39138737320899963, 0.2710348963737488, 0.7224535346031189, 0.22563403844833374, -0.13292767107486725, -0.0833359956741333, 0.3776693344116211, 0.13778801262378693, -0.09112052619457245, -0.17005300521850586, -0.37104421854019165, -0.32177042961120605, -0.457553893327713, 0.05405633524060249, -0.06567168235778809, 0.3394955098628998, 0.10823627561330795, 0.26551365852355957, 0.12299055606126785, 0.001991370227187872, -0.13144445419311523, -0.09602925926446915, -0.16691884398460388, 0.2519845962524414, 0.12031945586204529, -0.2048623412847519, 0.11008855700492859, -0.012151652947068214, 0.549267590045929, -0.05373532325029373, -0.21998527646064758, 0.23303574323654175, -0.041735295206308365, 0.017732840031385422, 0.04703978821635246, 0.16859817504882812, 0.11726122349500656, 0.09612560272216797, 0.19552044570446014, 0.31625697016716003, 0.1779072880744934, 0.2874186933040619, -0.2669258713722229, -0.2842015326023102, -0.22032639384269714, 0.4090633690357208, 0.06504465639591217, 0.19391131401062012, 0.24376562237739563, -0.5065386891365051, 0.0695200115442276, -0.038530196994543076, 0.14288845658302307, 0.5448474884033203, -0.16018976271152496, 0.20569072663784027, 0.36976251006126404, -0.1422557681798935, 0.49981802701950073, -0.33426403999328613, 0.1792706847190857, -0.19360338151454926, 0.23061949014663696, 0.08422665297985077, 0.027097133919596672, -0.03355874493718147, 0.16266031563282013, -0.22062042355537415, 0.1645323783159256, 0.12993411719799042, -0.055314868688583374, 0.18154041469097137, 0.532036542892456, 0.009405802004039288, -0.34164080023765564, -0.22745753824710846, 0.20656301081180573, -0.16394300758838654, 0.31536388397216797, -0.09486129879951477, -0.07713263481855392, 0.1090773344039917, -0.16552558541297913, -0.3335941433906555, 0.28149837255477905, -0.08341983705759048, 0.5441381335258484, -0.07002726197242737, -0.05367531627416611, -0.0654042512178421, 0.22002878785133362, 0.07941294461488724, -0.13874943554401398, -0.05445127934217453, -0.09175412356853485, -0.0884905457496643, -0.274774968624115, -0.13513869047164917, 0.02277415804564953, 0.2547703683376312, -0.3102385997772217, -0.3599827289581299, 0.20842286944389343, 0.043487366288900375, -0.27683040499687195, 0.13000978529453278, 0.2966112792491913, -0.1079697534441948, 0.11719411611557007, 0.07997959852218628, -0.060416195541620255, 0.10194775462150574, -0.09148181974887848, 0.1378287672996521, 0.1844528615474701, -0.272341251373291, 0.03840777650475502, -0.07254984229803085, -0.12654554843902588, 0.030276121571660042, 0.5448256134986877, 0.07951176166534424, 0.014668050222098827, 0.43825098872184753, 0.26376789808273315, 0.048756327480077744, -0.33311596512794495, 0.12422516942024231, -0.2090219408273697, -0.21657590568065643, -0.0329982154071331, 0.03891317918896675, 0.2234707474708557, 0.059257734566926956, 0.10320024937391281, 0.14492404460906982, 0.1771899163722992, 0.15251895785331726, -0.6146881580352783, -0.4120771884918213, -0.050767138600349426, -0.11351750046014786, -0.10179721564054489, -0.0972694382071495, 0.20154418051242828, 0.2837578356266022, 0.036450427025556564, -0.29311758279800415, 0.02957073785364628, -0.3940642476081848, 0.0747050940990448, 0.4434458315372467, -0.29558461904525757, -0.009802696295082569, 0.2064349204301834, 0.2212137132883072, -0.19654342532157898, -0.14492833614349365, -0.24741750955581665, -0.026847830042243004, 0.06838029623031616, 0.016964450478553772, -0.19805298745632172, 0.15768657624721527, -0.35120734572410583, -0.2484959214925766, 0.1924414038658142, -0.07229214161634445, 0.03838722035288811, 0.07087693363428116, 0.12218191474676132, -0.16020816564559937, 0.16789613664150238, -0.08345017582178116, 0.014652285724878311, -0.2705082297325134, 0.0771087035536766, 0.11173012107610703, 0.31723037362098694, 0.21723920106887817, -0.004561665002256632, -0.6347713470458984, -0.17394480109214783, -0.24527500569820404, -0.0842614620923996, 0.09532318264245987, -0.35595688223838806, -0.014028070494532585, -0.2292231172323227, 0.061665263026952744, 0.22969961166381836, -0.1112765371799469, 0.04356517642736435, 0.36442652344703674, 0.2506195306777954, -0.15715739130973816, -0.013790926896035671, 0.2758881449699402, 0.02771817333996296, 0.009881160221993923, 0.23982074856758118, -0.10482582449913025, -0.0761379823088646, 0.15756623446941376, 0.07760526239871979, 0.10168025642633438, 0.09764665365219116, -0.009248901158571243, 0.30737608671188354, -0.1990078091621399, -0.053832437843084335, 0.03650524839758873, -0.004383668303489685, 0.278419554233551, 0.3134986460208893, -0.2719894051551819, 0.2696484625339508, -0.07016945630311966, 0.05118299648165703, 0.1469721794128418, -0.20849913358688354, -0.31382426619529724, -0.014102600514888763, -0.24583569169044495, -0.029513908550143242, -0.15945589542388916, 0.3483741879463196, -0.30621421337127686, -0.2602592408657074, -0.3952552378177643, 0.527289867401123, -0.1780477911233902, 0.05312807485461235, -0.3437133729457855, -0.0936102569103241, -0.27327996492385864, 0.18696780502796173, 0.050593748688697815, 0.07760977745056152, 0.4932878017425537, 0.3244493007659912, -0.15094280242919922, -0.5531564354896545, -0.18600206077098846, 0.2678643465042114, 0.01566394604742527, -0.35005223751068115, 0.2893451154232025, 0.4177258610725403, -0.2784990966320038, -0.009165721014142036, 0.09575968235731125, 0.521470844745636, 0.2982960641384125, 0.17874029278755188, 0.10023178160190582, -0.04729704558849335, -0.03253643214702606, -0.02540549822151661, -0.05735580250620842, 0.4776994287967682, 0.21050778031349182, 0.38307011127471924, 0.0977296456694603, -0.221957266330719, 0.17007724940776825, 0.09212379902601242, -0.1050591915845871, -0.10364903509616852, 0.4112374186515808, -0.02189987152814865, 0.009777160361409187, -0.2397836446762085, 0.06705678999423981, -0.5321541428565979, 0.08143357187509537, 0.026707610115408897, 0.13209566473960876, 0.14712528884410858, 0.04539648815989494, 0.050708699971437454, 0.009732458740472794, 0.5457183718681335, 0.3034779131412506, 0.2115042805671692, -0.29450586438179016, -0.2823821008205414, -0.6838548183441162, 0.0972861647605896, -0.5811131000518799, -0.10109870135784149, -0.04636875540018082, 0.23086221516132355, -0.20033057034015656, 0.21887321770191193, 0.034193962812423706, 0.03454125300049782, 0.18187850713729858, 0.2735231816768646, -0.3600364029407501, -0.08478115499019623, 0.21785041689872742, -0.01897861436009407, 0.03384314477443695, -0.34335923194885254, 0.06985095143318176, -0.29056981205940247, 0.0890478864312172, -0.20073248445987701, -0.07836271077394485, 0.1026037335395813, 0.28207293152809143, 0.003819416044279933, 0.12707725167274475, 0.49727126955986023, 0.19281673431396484, -0.35244786739349365, -0.2249489426612854, 0.20275823771953583, -0.16100585460662842, 0.013192431069910526, 0.2036268562078476, 0.4022218585014343, -0.10290995985269547, 0.14341486990451813, -0.3461366593837738, 0.5090777277946472, -0.12394357472658157, -0.17005375027656555, -0.07957196980714798, 0.05447322502732277, 0.05632873997092247, 0.11478602141141891, 0.2220110148191452, 0.03505957871675491, -0.02536638267338276, 0.03940080851316452, -0.39405983686447144, -0.21150259673595428, 0.3609005808830261, -0.09750699996948242, -0.26557961106300354, -0.18048974871635437, 0.22695304453372955, -0.3209320306777954, 0.28803256154060364, -0.5555563569068909, 0.12516240775585175, 0.29695191979408264, -0.0823289081454277, -0.5224142074584961, 0.1200474202632904, 0.12428796291351318, -0.1698409616947174, -0.007211017422378063, 0.0002063434076262638, 0.08076600730419159, -0.4523904323577881, 0.23109693825244904, -0.11049633473157883 ]
https://github.com/huggingface/datasets/issues/237
Can't download MultiNLI
Glad it helps ! Though I am not one of hf team, but maybe you should close this issue first.
When I try to download MultiNLI with ```python dataset = load_dataset('multi_nli') ``` I get this long error: ```python --------------------------------------------------------------------------- OSError Traceback (most recent call last) <ipython-input-13-3b11f6be4cb9> in <module> 1 # Load a dataset and print the first examples in the training set 2 # nli_dataset = nlp.load_dataset('multi_nli') ----> 3 dataset = load_dataset('multi_nli') 4 # nli_dataset = nlp.load_dataset('multi_nli', split='validation_matched[:10%]') 5 # print(nli_dataset['train'][0]) ~\Miniconda3\envs\nlp\lib\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) 514 515 # Download and prepare data --> 516 builder_instance.download_and_prepare( 517 download_config=download_config, 518 download_mode=download_mode, ~\Miniconda3\envs\nlp\lib\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) 417 with utils.temporary_assignment(self, "_cache_dir", tmp_data_dir): 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 ) ~\Miniconda3\envs\nlp\lib\site-packages\nlp\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 455 split_dict = SplitDict(dataset_name=self.name) 456 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 457 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 458 # Checksums verification 459 if verify_infos: ~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\multi_nli\60774175381b9f3f1e6ae1028229e3cdb270d50379f45b9f2c01008f50f09e6b\multi_nli.py in _split_generators(self, dl_manager) 99 def _split_generators(self, dl_manager): 100 --> 101 downloaded_dir = dl_manager.download_and_extract( 102 "http://storage.googleapis.com/tfds-data/downloads/multi_nli/multinli_1.0.zip" 103 ) ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in download_and_extract(self, url_or_urls) 214 extracted_path(s): `str`, extracted paths of given URL(s). 215 """ --> 216 return self.extract(self.download(url_or_urls)) 217 218 def get_recorded_sizes_checksums(self): ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in extract(self, path_or_paths) 194 path_or_paths. 195 """ --> 196 return map_nested( 197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 198 ) ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\py_utils.py in map_nested(function, data_struct, dict_only, map_tuple) 168 return tuple(mapped) 169 # Singleton --> 170 return function(data_struct) 171 172 ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in <lambda>(path) 195 """ 196 return map_nested( --> 197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 198 ) 199 ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 231 if is_zipfile(output_path): 232 with ZipFile(output_path, "r") as zip_file: --> 233 zip_file.extractall(output_path_extracted) 234 zip_file.close() 235 elif tarfile.is_tarfile(output_path): ~\Miniconda3\envs\nlp\lib\zipfile.py in extractall(self, path, members, pwd) 1644 1645 for zipinfo in members: -> 1646 self._extract_member(zipinfo, path, pwd) 1647 1648 @classmethod ~\Miniconda3\envs\nlp\lib\zipfile.py in _extract_member(self, member, targetpath, pwd) 1698 1699 with self.open(member, pwd=pwd) as source, \ -> 1700 open(targetpath, "wb") as target: 1701 shutil.copyfileobj(source, target) 1702 OSError: [Errno 22] Invalid argument: 'C:\\Users\\Python\\.cache\\huggingface\\datasets\\3e12413b8ec69f22dfcfd54a79d1ba9e7aac2e18e334bbb6b81cca64fd16bffc\\multinli_1.0\\Icon\r' ```
20
Can't download MultiNLI When I try to download MultiNLI with ```python dataset = load_dataset('multi_nli') ``` I get this long error: ```python --------------------------------------------------------------------------- OSError Traceback (most recent call last) <ipython-input-13-3b11f6be4cb9> in <module> 1 # Load a dataset and print the first examples in the training set 2 # nli_dataset = nlp.load_dataset('multi_nli') ----> 3 dataset = load_dataset('multi_nli') 4 # nli_dataset = nlp.load_dataset('multi_nli', split='validation_matched[:10%]') 5 # print(nli_dataset['train'][0]) ~\Miniconda3\envs\nlp\lib\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) 514 515 # Download and prepare data --> 516 builder_instance.download_and_prepare( 517 download_config=download_config, 518 download_mode=download_mode, ~\Miniconda3\envs\nlp\lib\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) 417 with utils.temporary_assignment(self, "_cache_dir", tmp_data_dir): 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 ) ~\Miniconda3\envs\nlp\lib\site-packages\nlp\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 455 split_dict = SplitDict(dataset_name=self.name) 456 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 457 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 458 # Checksums verification 459 if verify_infos: ~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\multi_nli\60774175381b9f3f1e6ae1028229e3cdb270d50379f45b9f2c01008f50f09e6b\multi_nli.py in _split_generators(self, dl_manager) 99 def _split_generators(self, dl_manager): 100 --> 101 downloaded_dir = dl_manager.download_and_extract( 102 "http://storage.googleapis.com/tfds-data/downloads/multi_nli/multinli_1.0.zip" 103 ) ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in download_and_extract(self, url_or_urls) 214 extracted_path(s): `str`, extracted paths of given URL(s). 215 """ --> 216 return self.extract(self.download(url_or_urls)) 217 218 def get_recorded_sizes_checksums(self): ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in extract(self, path_or_paths) 194 path_or_paths. 195 """ --> 196 return map_nested( 197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 198 ) ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\py_utils.py in map_nested(function, data_struct, dict_only, map_tuple) 168 return tuple(mapped) 169 # Singleton --> 170 return function(data_struct) 171 172 ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in <lambda>(path) 195 """ 196 return map_nested( --> 197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths, 198 ) 199 ~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs) 231 if is_zipfile(output_path): 232 with ZipFile(output_path, "r") as zip_file: --> 233 zip_file.extractall(output_path_extracted) 234 zip_file.close() 235 elif tarfile.is_tarfile(output_path): ~\Miniconda3\envs\nlp\lib\zipfile.py in extractall(self, path, members, pwd) 1644 1645 for zipinfo in members: -> 1646 self._extract_member(zipinfo, path, pwd) 1647 1648 @classmethod ~\Miniconda3\envs\nlp\lib\zipfile.py in _extract_member(self, member, targetpath, pwd) 1698 1699 with self.open(member, pwd=pwd) as source, \ -> 1700 open(targetpath, "wb") as target: 1701 shutil.copyfileobj(source, target) 1702 OSError: [Errno 22] Invalid argument: 'C:\\Users\\Python\\.cache\\huggingface\\datasets\\3e12413b8ec69f22dfcfd54a79d1ba9e7aac2e18e334bbb6b81cca64fd16bffc\\multinli_1.0\\Icon\r' ``` Glad it helps ! Though I am not one of hf team, but maybe you should close this issue first.
[ -0.08402598649263382, -0.022191694006323814, -0.07268693298101425, 0.04233929142355919, 0.19818374514579773, 0.06649192422628403, 0.4571824073791504, 0.08013812452554703, 0.1033792570233345, 0.08837525546550751, -0.16412515938282013, 0.2453233152627945, -0.1955302208662033, -0.08169730007648468, -0.06151336058974266, -0.27902376651763916, -0.03297087177634239, -0.06759793311357498, 0.02870474010705948, 0.1370830088853836, -0.21844297647476196, 0.13710980117321014, -0.21224288642406464, 0.21034802496433258, -0.18342015147209167, -0.15587332844734192, -0.20344075560569763, 0.23280036449432373, -0.3381268382072449, -0.36099520325660706, 0.18646571040153503, -0.1097056046128273, 0.24803248047828674, 0.01568053849041462, -0.00010717275290517136, 0.10856501758098602, 0.1779891401529312, -0.06570911407470703, -0.4063575565814972, -0.15576255321502686, -0.1127583310008049, -0.31715071201324463, 0.16040371358394623, -0.39091956615448, 0.3036189079284668, 0.3498131036758423, 0.04432997852563858, 0.045605212450027466, 0.11746975034475327, 0.4848160445690155, 0.2677161693572998, 0.4489551782608032, 0.36334848403930664, -0.07207289338111877, -0.04706209525465965, -0.20575307309627533, 0.012758122757077217, 0.37783390283584595, -0.10258516669273376, -0.17611314356327057, 0.090940922498703, 0.07363677769899368, -0.14862476289272308, 0.32257354259490967, -0.19375215470790863, -0.005293505731970072, 0.3084740936756134, -0.2554347515106201, -0.07744549959897995, 0.25744208693504333, 0.03294408693909645, 0.08301951736211777, -0.3229755163192749, 0.024158498272299767, 0.26956188678741455, -0.36274266242980957, 0.09996552765369415, 0.43507397174835205, -0.3351379632949829, -0.09220916032791138, -0.2465996891260147, -0.16574832797050476, -0.1589849293231964, 0.3905082941055298, -0.3112713098526001, 0.5100569128990173, 0.1047360748052597, 0.10575217753648758, 0.43421465158462524, -0.20320002734661102, -0.2787927985191345, -0.053084902465343475, 0.04596751183271408, 0.19603942334651947, -0.3286786675453186, 0.01897292397916317, -0.030164383351802826, -0.2324976921081543, 0.1584400236606598, 0.1301027089357376, -0.023443737998604774, -0.2342740297317505, -0.19085972011089325, 0.2034367024898529, 0.04834265634417534, 0.06421072781085968, -0.2885977029800415, 0.12499681860208511, 0.1028151586651802, 0.22912269830703735, 0.22896984219551086, 0.039217185229063034, -0.11887621879577637, -0.0918314978480339, -0.11672203242778778, 0.08612316846847534, 0.2541344463825226, 0.09224855154752731, -0.45950847864151, -0.199417382478714, -0.5215694904327393, -0.019995780661702156, 0.2925753891468048, 0.14654786884784698, -0.11265561729669571, 0.34015053510665894, 0.17328371107578278, 0.3975914418697357, -0.2035052627325058, -0.33436840772628784, -0.13727237284183502, 0.16713836789131165, -0.12311401963233948, -0.041910089552402496, 0.4352341592311859, -0.059522002935409546, 0.3110085129737854, -0.015945374965667725, -0.08545644581317902, -0.09518598765134811, 0.1114434003829956, -0.09508707374334335, -0.31102779507637024, 0.2561812102794647, 0.17043817043304443, 0.0722099021077156, 0.1697932779788971, -0.1313995122909546, -0.0520508848130703, 0.005872493144124746, -0.3391167223453522, -0.431247353553772, -0.3035270869731903, 0.2793095111846924, 0.09683501720428467, -0.1050024926662445, 0.1401997059583664, -0.400765061378479, 0.21240206062793732, -0.0330314114689827, -0.06387823075056076, -0.29449817538261414, -0.09886245429515839, -0.229562908411026, 0.2593610882759094, 0.2700579762458801, 0.1803039014339447, -0.0016136697959154844, -0.3492773175239563, -0.16569596529006958, 0.253325492143631, 0.546646773815155, -0.2035304307937622, 0.1508478969335556, -0.18046972155570984, 0.03481554612517357, 0.5982276797294617, -0.4164569079875946, -0.09771331399679184, 0.22240868210792542, -0.33464187383651733, 0.04438674449920654, 0.007630303967744112, 0.17985029518604279, 0.06427112966775894, 0.10571219027042389, 0.3237130641937256, 0.5148918628692627, -0.17978990077972412, 0.07943879067897797, -0.18947143852710724, -0.25256019830703735, 0.18896189332008362, 0.377663791179657, 0.05214109271764755, 0.07108120620250702, -0.12936340272426605, 0.47295457124710083, 0.4586097300052643, 0.005411853548139334, 0.06879492104053497, 0.08226975053548813, 0.14546918869018555, -0.09017075598239899, -0.32684072852134705, -0.03324989229440689, -0.3870309591293335, 0.12790723145008087, 0.03956683352589607, 0.10327277332544327, -0.026721429079771042, 0.08823825418949127, -0.10366044193506241, 0.04945048317313194, -0.19201824069023132, -0.12529318034648895, 0.1495802402496338, 0.20344729721546173, 0.091927669942379, 0.024226024746894836, 0.023437347263097763, 0.5169650912284851, -0.03080645017325878, 0.13072259724140167, -0.4853760302066803, 0.24790413677692413, -0.3664749264717102, -0.04308842867612839, 0.026625938713550568, 0.021789105609059334, -0.06374724209308624, 0.04763061925768852, -0.09675028920173645, 0.30467334389686584, -0.03968494385480881, -0.42345473170280457, -0.1047511100769043, -0.10427732765674591, 0.11548298597335815, -0.11447593569755554, 0.13060903549194336, 0.3364741802215576, 0.06668748706579208, -0.049995798617601395, -0.3063912093639374, 0.33378222584724426, 0.030765142291784286, 0.0900290310382843, -0.0031024999916553497, 0.3673844635486603, 0.30187392234802246, -0.020218627527356148, -0.03725523501634598, -0.1680348962545395, 0.33377960324287415, 0.037274446338415146, 0.04853310063481331, -0.22524650394916534, -0.31696537137031555, -0.16648000478744507, 0.301168292760849, 0.0414903350174427, 0.030545266345143318, 0.042151641100645065, 0.18877895176410675, 0.04921528697013855, -0.11622381210327148, 0.004849557764828205, 0.46699902415275574, 0.08540746569633484, 0.10949735343456268, -0.022692566737532616, -0.18930499255657196, -0.2992955148220062, 0.06442616134881973, -0.0190872885286808, 0.20575091242790222, -0.059155791997909546, 0.13096743822097778, -0.10995648801326752, -0.040130678564310074, -0.4957754909992218, 0.28540199995040894, 0.4715660512447357, -0.2018336057662964, 0.06350665539503098, -0.34738531708717346, -0.5306872725486755, -0.23372028768062592, -0.2072548121213913, -0.3806077837944031, -0.3395347595214844, -0.16524472832679749, 0.4490947425365448, 0.08724850416183472, 0.02022884227335453, -0.016367318108677864, -0.2310706079006195, 0.27137476205825806, -0.03954921290278435, 0.20371194183826447, -0.0712692067027092, -0.277278333902359, 0.15111736953258514, 0.3364778161048889, -0.021461525931954384, 0.25275230407714844, -0.10023566335439682, -0.1733544021844864, -0.26810401678085327, 0.015854714438319206, -0.2235611379146576, 0.09388388693332672, -0.26435527205467224, 0.2511916160583496, 0.3671225905418396, 0.046039726585149765, -0.2325371950864792, 0.2155635505914688, -0.01895107701420784, -0.1420430839061737, 0.32799530029296875, 0.006150375586003065, 0.09732867777347565, -0.1499352753162384, -0.30683621764183044, -0.3677203059196472, -0.459653377532959, 0.21241652965545654, -0.05588774383068085, 0.21250976622104645, 0.3740655779838562, 0.045510537922382355, 0.19765184819698334, 0.03390195220708847, -0.13301202654838562, 0.03633933141827583, 0.04785100743174553, 0.15722154080867767, -0.18953630328178406, -0.30111390352249146, -0.07816235721111298, 0.20414064824581146, 0.21321551501750946, 0.0037157973274588585, -0.3780253231525421, -0.025708775967359543, 0.030842015519738197, 0.2746252119541168, -0.19093361496925354, -0.04381512105464935, 0.2122444361448288, -0.34536904096603394, -0.041161272674798965, 0.21667173504829407, 0.04302589222788811, 0.08033507317304611, 0.21866102516651154, 0.45158639550209045, -0.14153286814689636, 0.5075709223747253, 0.048484671860933304, 0.3951180875301361, 0.2567918002605438, -0.019463513046503067, 0.372538298368454, -0.021026194095611572, -0.06965180486440659, 0.021603906527161598, -0.40248486399650574, -0.00677459454163909, -0.12186507880687714, 0.15624795854091644, -0.028096899390220642, -0.10814917087554932, -0.34823131561279297, -0.17430421710014343, 0.09584638476371765, 0.10263016819953918, -0.20526139438152313, 0.09995435923337936, -0.24396100640296936, 0.02690127119421959, 0.01056811772286892, -0.09341000020503998, -0.03576391562819481, -0.17128731310367584, -0.33534812927246094, 0.32954686880111694, -0.2056184560060501, -0.007514019496738911, -0.06466414034366608, -0.16376926004886627, -0.2538139224052429, 0.038105376064777374, 0.17867285013198853, 0.5281775593757629, 0.03131745755672455, 0.11330674588680267, 0.15177004039287567, -0.057921793311834335, 0.3662664592266083, 0.04317755997180939, 0.11232906579971313, 0.31039851903915405, 0.16554440557956696, -0.5614233016967773, -0.3184337019920349, -0.39138737320899963, 0.2710348963737488, 0.7224535346031189, 0.22563403844833374, -0.13292767107486725, -0.0833359956741333, 0.3776693344116211, 0.13778801262378693, -0.09112052619457245, -0.17005300521850586, -0.37104421854019165, -0.32177042961120605, -0.457553893327713, 0.05405633524060249, -0.06567168235778809, 0.3394955098628998, 0.10823627561330795, 0.26551365852355957, 0.12299055606126785, 0.001991370227187872, -0.13144445419311523, -0.09602925926446915, -0.16691884398460388, 0.2519845962524414, 0.12031945586204529, -0.2048623412847519, 0.11008855700492859, -0.012151652947068214, 0.549267590045929, -0.05373532325029373, -0.21998527646064758, 0.23303574323654175, -0.041735295206308365, 0.017732840031385422, 0.04703978821635246, 0.16859817504882812, 0.11726122349500656, 0.09612560272216797, 0.19552044570446014, 0.31625697016716003, 0.1779072880744934, 0.2874186933040619, -0.2669258713722229, -0.2842015326023102, -0.22032639384269714, 0.4090633690357208, 0.06504465639591217, 0.19391131401062012, 0.24376562237739563, -0.5065386891365051, 0.0695200115442276, -0.038530196994543076, 0.14288845658302307, 0.5448474884033203, -0.16018976271152496, 0.20569072663784027, 0.36976251006126404, -0.1422557681798935, 0.49981802701950073, -0.33426403999328613, 0.1792706847190857, -0.19360338151454926, 0.23061949014663696, 0.08422665297985077, 0.027097133919596672, -0.03355874493718147, 0.16266031563282013, -0.22062042355537415, 0.1645323783159256, 0.12993411719799042, -0.055314868688583374, 0.18154041469097137, 0.532036542892456, 0.009405802004039288, -0.34164080023765564, -0.22745753824710846, 0.20656301081180573, -0.16394300758838654, 0.31536388397216797, -0.09486129879951477, -0.07713263481855392, 0.1090773344039917, -0.16552558541297913, -0.3335941433906555, 0.28149837255477905, -0.08341983705759048, 0.5441381335258484, -0.07002726197242737, -0.05367531627416611, -0.0654042512178421, 0.22002878785133362, 0.07941294461488724, -0.13874943554401398, -0.05445127934217453, -0.09175412356853485, -0.0884905457496643, -0.274774968624115, -0.13513869047164917, 0.02277415804564953, 0.2547703683376312, -0.3102385997772217, -0.3599827289581299, 0.20842286944389343, 0.043487366288900375, -0.27683040499687195, 0.13000978529453278, 0.2966112792491913, -0.1079697534441948, 0.11719411611557007, 0.07997959852218628, -0.060416195541620255, 0.10194775462150574, -0.09148181974887848, 0.1378287672996521, 0.1844528615474701, -0.272341251373291, 0.03840777650475502, -0.07254984229803085, -0.12654554843902588, 0.030276121571660042, 0.5448256134986877, 0.07951176166534424, 0.014668050222098827, 0.43825098872184753, 0.26376789808273315, 0.048756327480077744, -0.33311596512794495, 0.12422516942024231, -0.2090219408273697, -0.21657590568065643, -0.0329982154071331, 0.03891317918896675, 0.2234707474708557, 0.059257734566926956, 0.10320024937391281, 0.14492404460906982, 0.1771899163722992, 0.15251895785331726, -0.6146881580352783, -0.4120771884918213, -0.050767138600349426, -0.11351750046014786, -0.10179721564054489, -0.0972694382071495, 0.20154418051242828, 0.2837578356266022, 0.036450427025556564, -0.29311758279800415, 0.02957073785364628, -0.3940642476081848, 0.0747050940990448, 0.4434458315372467, -0.29558461904525757, -0.009802696295082569, 0.2064349204301834, 0.2212137132883072, -0.19654342532157898, -0.14492833614349365, -0.24741750955581665, -0.026847830042243004, 0.06838029623031616, 0.016964450478553772, -0.19805298745632172, 0.15768657624721527, -0.35120734572410583, -0.2484959214925766, 0.1924414038658142, -0.07229214161634445, 0.03838722035288811, 0.07087693363428116, 0.12218191474676132, -0.16020816564559937, 0.16789613664150238, -0.08345017582178116, 0.014652285724878311, -0.2705082297325134, 0.0771087035536766, 0.11173012107610703, 0.31723037362098694, 0.21723920106887817, -0.004561665002256632, -0.6347713470458984, -0.17394480109214783, -0.24527500569820404, -0.0842614620923996, 0.09532318264245987, -0.35595688223838806, -0.014028070494532585, -0.2292231172323227, 0.061665263026952744, 0.22969961166381836, -0.1112765371799469, 0.04356517642736435, 0.36442652344703674, 0.2506195306777954, -0.15715739130973816, -0.013790926896035671, 0.2758881449699402, 0.02771817333996296, 0.009881160221993923, 0.23982074856758118, -0.10482582449913025, -0.0761379823088646, 0.15756623446941376, 0.07760526239871979, 0.10168025642633438, 0.09764665365219116, -0.009248901158571243, 0.30737608671188354, -0.1990078091621399, -0.053832437843084335, 0.03650524839758873, -0.004383668303489685, 0.278419554233551, 0.3134986460208893, -0.2719894051551819, 0.2696484625339508, -0.07016945630311966, 0.05118299648165703, 0.1469721794128418, -0.20849913358688354, -0.31382426619529724, -0.014102600514888763, -0.24583569169044495, -0.029513908550143242, -0.15945589542388916, 0.3483741879463196, -0.30621421337127686, -0.2602592408657074, -0.3952552378177643, 0.527289867401123, -0.1780477911233902, 0.05312807485461235, -0.3437133729457855, -0.0936102569103241, -0.27327996492385864, 0.18696780502796173, 0.050593748688697815, 0.07760977745056152, 0.4932878017425537, 0.3244493007659912, -0.15094280242919922, -0.5531564354896545, -0.18600206077098846, 0.2678643465042114, 0.01566394604742527, -0.35005223751068115, 0.2893451154232025, 0.4177258610725403, -0.2784990966320038, -0.009165721014142036, 0.09575968235731125, 0.521470844745636, 0.2982960641384125, 0.17874029278755188, 0.10023178160190582, -0.04729704558849335, -0.03253643214702606, -0.02540549822151661, -0.05735580250620842, 0.4776994287967682, 0.21050778031349182, 0.38307011127471924, 0.0977296456694603, -0.221957266330719, 0.17007724940776825, 0.09212379902601242, -0.1050591915845871, -0.10364903509616852, 0.4112374186515808, -0.02189987152814865, 0.009777160361409187, -0.2397836446762085, 0.06705678999423981, -0.5321541428565979, 0.08143357187509537, 0.026707610115408897, 0.13209566473960876, 0.14712528884410858, 0.04539648815989494, 0.050708699971437454, 0.009732458740472794, 0.5457183718681335, 0.3034779131412506, 0.2115042805671692, -0.29450586438179016, -0.2823821008205414, -0.6838548183441162, 0.0972861647605896, -0.5811131000518799, -0.10109870135784149, -0.04636875540018082, 0.23086221516132355, -0.20033057034015656, 0.21887321770191193, 0.034193962812423706, 0.03454125300049782, 0.18187850713729858, 0.2735231816768646, -0.3600364029407501, -0.08478115499019623, 0.21785041689872742, -0.01897861436009407, 0.03384314477443695, -0.34335923194885254, 0.06985095143318176, -0.29056981205940247, 0.0890478864312172, -0.20073248445987701, -0.07836271077394485, 0.1026037335395813, 0.28207293152809143, 0.003819416044279933, 0.12707725167274475, 0.49727126955986023, 0.19281673431396484, -0.35244786739349365, -0.2249489426612854, 0.20275823771953583, -0.16100585460662842, 0.013192431069910526, 0.2036268562078476, 0.4022218585014343, -0.10290995985269547, 0.14341486990451813, -0.3461366593837738, 0.5090777277946472, -0.12394357472658157, -0.17005375027656555, -0.07957196980714798, 0.05447322502732277, 0.05632873997092247, 0.11478602141141891, 0.2220110148191452, 0.03505957871675491, -0.02536638267338276, 0.03940080851316452, -0.39405983686447144, -0.21150259673595428, 0.3609005808830261, -0.09750699996948242, -0.26557961106300354, -0.18048974871635437, 0.22695304453372955, -0.3209320306777954, 0.28803256154060364, -0.5555563569068909, 0.12516240775585175, 0.29695191979408264, -0.0823289081454277, -0.5224142074584961, 0.1200474202632904, 0.12428796291351318, -0.1698409616947174, -0.007211017422378063, 0.0002063434076262638, 0.08076600730419159, -0.4523904323577881, 0.23109693825244904, -0.11049633473157883 ]
https://github.com/huggingface/datasets/issues/234
Huggingface NLP, Uploading custom dataset
What do you mean 'custom' ? You may want to elaborate on it when ask a question. Anyway, there are two things you may interested `nlp.Dataset.from_file` and `load_dataset(..., cache_dir=)`
Hello, Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp. Thank you!
29
Huggingface NLP, Uploading custom dataset Hello, Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp. Thank you! What do you mean 'custom' ? You may want to elaborate on it when ask a question. Anyway, there are two things you may interested `nlp.Dataset.from_file` and `load_dataset(..., cache_dir=)`
[ 0.2511937618255615, -0.18680277466773987, 0.05262885242700577, 0.08167792111635208, -0.010631870478391647, 0.09125593304634094, 0.30547767877578735, -0.03919772431254387, 0.12936533987522125, -0.14881077408790588, -0.268949031829834, 0.19393964111804962, -0.060502514243125916, 0.2208997905254364, 0.549804151058197, -0.006288095843046904, -0.06923138350248337, 0.20221363008022308, -0.05701465159654617, -0.10582828521728516, -0.18565398454666138, 0.22076116502285004, -0.13702699542045593, 0.1703864485025406, -0.12144792824983597, -0.02254580706357956, -0.06619634479284286, 0.5867705941200256, -0.14263467490673065, -0.4699000418186188, 0.33833104372024536, 0.1335826963186264, 0.2301873415708542, 0.3451365828514099, -0.00011740773334167898, -0.24251967668533325, 0.08668993413448334, -0.25883543491363525, -0.27613210678100586, -0.2854755222797394, 0.1859976053237915, -0.5186659693717957, 0.29832834005355835, -0.33818578720092773, -0.01342401560395956, 0.0814296081662178, 0.29439011216163635, -0.12601587176322937, 0.5597589612007141, 0.06129170581698418, 0.101152703166008, 0.2022673636674881, -0.2472449690103531, 0.07984711229801178, -0.1332528293132782, 0.19417600333690643, 0.027757346630096436, 0.10694063454866409, 0.3506951630115509, -0.2971968948841095, -0.030400138348340988, -0.09053052961826324, 0.11015566438436508, -0.08725791424512863, 0.5247398018836975, 0.19061745703220367, -0.2882426083087921, -0.12822221219539642, -0.16928139328956604, 0.2119092047214508, 0.4062784016132355, -0.3414674997329712, -0.17412902414798737, -0.3976271450519562, 0.11346805840730667, -0.17957641184329987, 0.25338900089263916, 0.1868116706609726, -0.2927100956439972, 0.018950089812278748, -0.2960910201072693, -0.12775744497776031, -0.26048392057418823, 0.1948351114988327, 0.3770102262496948, 0.03124234825372696, -0.15058374404907227, 0.11210514605045319, 0.2019890993833542, -0.2020060122013092, -0.23761625587940216, 0.0816827341914177, 0.148427814245224, 0.6347585320472717, -0.34982505440711975, -0.22184494137763977, -0.18094055354595184, 0.17088337242603302, 0.2634722590446472, 0.03138230741024017, 0.3042983114719391, -0.019049664959311485, -0.1780896633863449, 0.07344631850719452, 0.3316241502761841, 0.062152981758117676, 0.4791778028011322, -0.1950473040342331, -0.08322769403457642, -0.060264524072408676, -0.09062666445970535, -0.027898717671632767, -0.38070881366729736, 0.061016056686639786, -0.13432280719280243, -0.22064922749996185, 0.02717621996998787, -0.18327778577804565, 0.10382074117660522, -0.3341502845287323, 0.32564130425453186, -0.1706351935863495, 0.10458219051361084, 0.2052089124917984, -0.041378751397132874, -0.2097407728433609, -0.08401782810688019, 0.03381322696805, -0.07524994015693665, -0.25284436345100403, -0.03280825540423393, -0.039782337844371796, -0.17268796265125275, 0.09845542907714844, 0.34429919719696045, -0.23360058665275574, 0.429572731256485, -0.08073997497558594, 0.06001316010951996, 0.02335730753839016, -0.06948918104171753, 0.12546905875205994, -0.21327757835388184, -0.2606162428855896, 0.2250983864068985, -0.08941654860973358, 0.1706477701663971, -0.3729163110256195, -0.18357788026332855, -0.00883827731013298, -0.22097454965114594, -0.04548416659235954, -0.31627026200294495, 0.05114974454045296, -0.21372385323047638, -0.41070300340652466, -0.21107783913612366, 0.4020385146141052, -0.10216112434864044, -0.24334804713726044, -0.04819975793361664, 0.23075294494628906, -0.1970532238483429, -0.09704465419054031, 0.07521101832389832, 0.24379600584506989, -0.4955694079399109, -0.312112957239151, 0.16052936017513275, -0.179918110370636, -0.11822319030761719, 0.2004852443933487, -0.26545998454093933, 0.03575156256556511, -0.17901618778705597, 0.24510157108306885, 0.6685572266578674, -0.3615257441997528, -0.2545461058616638, 0.12915222346782684, -0.33755043148994446, 0.05039159953594208, -0.05110766738653183, 0.2312561720609665, 0.2727700471878052, -0.026181109249591827, 0.11953579634428024, 0.7563429474830627, 0.03043772280216217, -0.045767080038785934, -0.014619062654674053, 0.01281700562685728, 0.19135376811027527, 0.08804634213447571, -0.3754504919052124, 0.19402223825454712, 0.15280288457870483, 0.16382499039173126, 0.16486679017543793, -0.020003845915198326, -0.14105224609375, -0.01156817190349102, -0.08746408671140671, 0.3733658492565155, -0.011961694806814194, 0.09379827231168747, -0.7424091100692749, 0.250795841217041, -0.32279127836227417, 0.026595698669552803, 0.3197610676288605, -0.05729181692004204, -0.5034215450286865, -0.15676483511924744, -0.1250694990158081, 0.1394387185573578, 0.0035268000792711973, 0.12848085165023804, 0.11616379767656326, -0.15004251897335052, -0.3917633593082428, 0.47880643606185913, -0.29691410064697266, 0.25986599922180176, -0.4144134223461151, 0.02796225994825363, 0.25134217739105225, -0.0867769718170166, 0.057843565940856934, 0.34522828459739685, 0.1667342633008957, -0.09235640615224838, 0.08540418744087219, 0.3543490171432495, -0.1966002732515335, 0.31609535217285156, 0.38581782579421997, -0.07989281415939331, -0.011925524100661278, 0.05903948098421097, 0.24745482206344604, -0.18684139847755432, 0.10454855859279633, -0.2373165637254715, -0.3755524158477783, 0.20339135825634003, -0.1266901046037674, 0.11381813883781433, 0.058687955141067505, -0.22126848995685577, 0.09943418204784393, -0.05098685249686241, -0.2495698183774948, 0.02286458946764469, 0.13932445645332336, 0.18468956649303436, 0.5775018930435181, 0.0293778907507658, -0.12295357137918472, -0.0937986969947815, 0.5493201017379761, -0.06944486498832703, 0.09780718386173248, 0.23144753277301788, -0.09451877325773239, -0.2399568259716034, 0.12456272542476654, -0.17738591134548187, 0.2780829668045044, 0.23193137347698212, -0.07778669893741608, 0.0474088229238987, -0.15717272460460663, 0.04601678252220154, -0.06323286890983582, -0.05983176827430725, -0.07554010301828384, -0.24135266244411469, 0.24601010978221893, -0.1520586609840393, -0.41410601139068604, 0.1202450543642044, -0.08437037467956543, -0.08878963440656662, -0.1791381686925888, 0.032784294337034225, 0.02585105411708355, -0.3187445104122162, -0.25789427757263184, -0.26062363386154175, -0.5657706260681152, 0.10988973081111908, -0.3193967044353485, -0.16999928653240204, 0.5434672236442566, -0.04263316094875336, 0.08944756537675858, 0.6790085434913635, -0.1581474095582962, -0.1685848832130432, 0.11333785951137543, -0.059793345630168915, -0.2973838448524475, -0.03805853798985481, 0.1349499523639679, 0.25626885890960693, 0.45795392990112305, -0.009197887033224106, 0.16602230072021484, 0.12558713555335999, -0.22809675335884094, 0.08643501251935959, -0.14824435114860535, 0.23355825245380402, 0.1508989781141281, 0.19805432856082916, -0.12742121517658234, -0.057205889374017715, 0.05234978348016739, -0.13856717944145203, -0.17902374267578125, -0.24043571949005127, 0.0019237375818192959, 0.24375636875629425, -0.037264104932546616, -0.13209261000156403, -0.49515143036842346, -0.2063329815864563, 0.5470715165138245, 0.3637993633747101, 0.1008571982383728, 0.24500511586666107, -0.3379797041416168, 0.43631863594055176, -0.201339989900589, -0.029894135892391205, -0.243127703666687, -0.5314006805419922, 0.1110536977648735, -0.2212740182876587, -0.18704535067081451, 0.10945701599121094, 0.04110961779952049, 0.11783193796873093, -0.2680111229419708, -0.2026875764131546, -0.2860257625579834, 0.2530052959918976, -0.021473318338394165, -0.053117282688617706, 0.06862432509660721, 0.1988118290901184, -0.32254141569137573, 0.11685436218976974, -0.09868006408214569, -0.3786766827106476, 0.19312065839767456, 0.3867782652378082, 0.24450524151325226, 0.22834762930870056, 0.13129477202892303, -0.015844929963350296, 0.6685087084770203, 0.027527907863259315, -0.105677030980587, 0.38606610894203186, -0.00573374517261982, 0.22161026298999786, 0.01894511841237545, -0.44550347328186035, 0.09687250107526779, 0.2294548749923706, 0.23099768161773682, 0.4019133746623993, 0.23499464988708496, 0.06012089550495148, -0.2935669720172882, 0.004524559248238802, -0.17966328561306, 0.1343785524368286, -0.10143208503723145, 0.25868988037109375, -0.05572221428155899, 0.14421063661575317, -0.1377086490392685, -0.5438346266746521, -0.299122154712677, -0.2503631114959717, 0.19444051384925842, 0.15761199593544006, 0.2664291262626648, -0.741515040397644, 0.082077257335186, -0.4755267798900604, 0.22808542847633362, 0.042512793093919754, 0.1476496458053589, -0.004253651946783066, -0.008555533364415169, 0.20614975690841675, 0.1683981716632843, 0.5750072002410889, 0.2543756365776062, -0.1479310393333435, -0.05841130018234253, 0.09461501240730286, -0.4649524986743927, 0.30179092288017273, 0.14238381385803223, 0.3281335234642029, 0.3223804235458374, 0.525714099407196, -0.2388923168182373, -0.24506816267967224, 0.1613655984401703, 0.010956402868032455, -0.357976496219635, -0.34288254380226135, -0.3559776842594147, -0.10836423933506012, -0.014248357154428959, -0.10779000073671341, -0.1859329789876938, 0.15852774679660797, 0.17609456181526184, 0.0644015446305275, 0.1274663507938385, 0.026516349986195564, 0.07253213226795197, 0.20336918532848358, -0.033653680235147476, 0.46353960037231445, -0.18958337604999542, 0.394645631313324, 0.259038507938385, -0.5374863147735596, 0.6323099732398987, -0.42855268716812134, -0.33771073818206787, -0.16614894568920135, -0.00274662091396749, 0.5326380133628845, 0.2596340477466583, 0.4100417196750641, 0.11357743293046951, -0.1531110256910324, -0.11274819076061249, -0.27995383739471436, 0.20604455471038818, 0.2188234180212021, -0.08878540992736816, -0.17243540287017822, -0.41153085231781006, 0.6642169952392578, -0.12536922097206116, -0.01421161275357008, 0.1717298924922943, 0.19198450446128845, -0.2211807817220688, 0.09170614928007126, -0.15316157042980194, 0.954110324382782, -0.3873252272605896, 0.3526076078414917, 0.11970562487840652, -0.00999970082193613, 0.771221399307251, -0.18179301917552948, -0.16259194910526276, -0.36577174067497253, 0.02916891500353813, -0.0812455415725708, -0.0940428376197815, 0.21807846426963806, 0.6166022419929504, -0.14231815934181213, 0.3255704641342163, 0.17679725587368011, -0.09277108311653137, 0.10795477777719498, 0.48752766847610474, 0.18434736132621765, -0.5538485646247864, -0.7102073431015015, 0.06035131588578224, -0.3340831696987152, 0.20497068762779236, -0.16552168130874634, -0.0905333086848259, 0.03481166809797287, -0.20155739784240723, 0.06625977158546448, 0.0148894302546978, -0.20541712641716003, -0.29795923829078674, 0.33459946513175964, -0.3240867257118225, 0.041494328528642654, 0.5139361619949341, 0.15722480416297913, -0.0310505423694849, -0.008866112679243088, -0.006347425282001495, -0.09182796627283096, -0.030101539567112923, -0.2045823484659195, 0.3019349277019501, 0.25180330872535706, -0.11729580163955688, -0.031770870089530945, 0.022239018231630325, 0.11663690209388733, -0.21175560355186462, -0.2835068106651306, 0.23799030482769012, 0.199623242020607, -0.30223438143730164, -0.5194170475006104, -0.002324681729078293, 0.21108287572860718, 0.0864509791135788, 0.02393105998635292, 0.20176802575588226, -0.07063329964876175, -0.11390072852373123, 0.4379001259803772, -0.04184842109680176, 0.12888208031654358, 0.4388931691646576, -0.35534051060676575, -0.47148728370666504, 0.41886597871780396, 0.22820791602134705, 0.11880835890769958, 0.001989413518458605, 0.16962027549743652, 0.07910466194152832, -0.1307051032781601, -0.16766653954982758, 0.4686759412288666, -0.013888909481465816, -0.07966870069503784, 0.17239713668823242, 0.16188062727451324, -0.14815126359462738, 0.12804614007472992, -0.19390243291854858, -0.3550582528114319, 0.10703105479478836, -0.0264733899384737, -0.03478498384356499, 0.46840912103652954, -0.03691861033439636, 0.23164090514183044, 0.2830179035663605, -0.1894061416387558, 0.16141770780086517, -0.2517116367816925, 0.13760080933570862, 0.5653260946273804, -0.17130614817142487, 0.012841083109378815, 0.1365106999874115, 0.0181447584182024, 0.05783010646700859, -0.1279689371585846, -0.12722733616828918, -0.2523895800113678, 0.19877180457115173, 0.15508988499641418, -0.10448732227087021, -0.12226808816194534, -0.18353013694286346, -0.07821216434240341, -0.11624613404273987, 0.01861387863755226, 0.14674396812915802, 0.12449834495782852, 0.37031713128089905, 0.07197742164134979, 0.22261016070842743, -0.0038902240339666605, 0.029005546122789383, 0.14881891012191772, 0.20564866065979004, 0.13843047618865967, -0.04021785780787468, -0.17970594763755798, 0.03342317417263985, -0.24606472253799438, 0.22190769016742706, 0.5597805976867676, 0.08942659944295883, 0.08146299421787262, -0.08000139147043228, 0.09240283817052841, -0.07620611041784286, 0.0349494144320488, 0.13038131594657898, -0.1792876422405243, 0.14317049086093903, 0.2328599989414215, 0.05748453736305237, -0.1401289701461792, -0.1264336258172989, 0.6219964027404785, -0.10618384182453156, -0.06477390229701996, 0.25043949484825134, -0.13102687895298004, 0.29225942492485046, -0.1190728098154068, -0.21399430930614471, 0.4340813159942627, 0.15132303535938263, -0.12026587873697281, -0.134346604347229, -0.22512218356132507, -0.24153593182563782, 0.27511081099510193, 0.36980241537094116, 0.12391770631074905, 0.06801813095808029, -0.17435221374034882, 0.13090276718139648, -0.2866811156272888, 0.13940444588661194, 0.3228425979614258, -0.4448070824146271, -0.12809671461582184, 0.34350690245628357, 0.2870289385318756, 0.5161547660827637, -0.2524104714393616, 0.9262966513633728, -0.20937344431877136, -0.1474725604057312, -0.08282364904880524, 0.11014342308044434, 0.12064474076032639, -0.14019165933132172, -0.18657873570919037, -0.020241491496562958, -0.1250215619802475, -0.07591168582439423, -0.20391033589839935, -0.4526916742324829, -0.21748773753643036, -0.12416435033082962, 0.16285483539104462, -0.060128770768642426, -0.2560819983482361, 0.2250678837299347, -0.08954417705535889, -0.08974623680114746, 0.23541627824306488, -0.08403084427118301, 0.23721837997436523, 0.49167051911354065, 0.1220003291964531, -0.12696467339992523, 0.2095474749803543, 0.06390611082315445, 0.1398540437221527, -0.017569513991475105, 0.044017963111400604, 0.007454144302755594, 0.07874120026826859, 0.013279563747346401, 0.06040641665458679, 0.11713507026433945, 0.04650835692882538, -0.04964354261755943, -0.018523698672652245, 0.17799097299575806, -0.018203163519501686, -0.4296703338623047, 0.17415404319763184, -0.19356659054756165, -0.13364940881729126, -0.46573877334594727, 0.25273218750953674, -0.5220646858215332, -0.1287759691476822, 0.06206651031970978, 0.256920725107193, 0.09894248098134995, -0.2657577395439148, 0.029851244762539864, -0.21851329505443573, 0.5074790120124817, 0.21223439276218414, 0.03208078071475029, 0.0951518639922142, -0.234048530459404, -0.5880167484283447, 0.1993698924779892, 0.16457897424697876, -0.27122196555137634, 0.018988171592354774, 0.06461207568645477, -0.04010362550616264, 0.19942831993103027, -0.09023745357990265, -0.051904600113630295, -0.15301357209682465, -0.0805526077747345, -0.2661842107772827, -0.26015469431877136, -0.10913097858428955, 0.26024478673934937, 0.055683452636003494, 0.028598634526133537, -0.08167165517807007, 0.20176313817501068, -0.18710170686244965, -0.13376761972904205, 0.058980461210012436, -0.011731632985174656, -0.012500005774199963, 0.11309465765953064, -0.2479584962129593, 0.3801173269748688, 0.13108105957508087, 0.016237808391451836, 0.12624967098236084, 0.0024319542571902275, -0.2638445496559143, 0.05473833903670311, -0.07138281315565109, 0.30614063143730164, -0.20069845020771027, 0.05200743302702904, -0.155365988612175, 0.1286509484052658, -0.0889892578125, -0.15102988481521606, -0.1771155595779419, -0.11246062070131302, -0.10704651474952698, -0.037211887538433075, 0.1936529278755188, 0.5496386885643005, -0.06957726925611496, 0.19621415436267853, -0.08951210230588913, 0.18128721415996552, 0.4863632023334503, -0.4867599904537201, -0.09125076979398727, 0.1694682240486145, 0.21917159855365753, 0.11145692318677902, -0.3302905559539795, -0.42943987250328064, 0.15020282566547394, 0.365363210439682, 0.0011046068975701928, 0.06914548575878143, 0.414971262216568, -0.48034968972206116, -0.029513897374272346, -0.0905226469039917, -0.01665438525378704, 0.28017371892929077, 0.1656370908021927, 0.08428081125020981, -0.07443362474441528 ]
https://github.com/huggingface/datasets/issues/234
Huggingface NLP, Uploading custom dataset
To load a dataset you need to have a script that defines the format of the examples, the splits and the way to generate examples. As your dataset has the same format of squad, you can just copy the squad script (see the [datasets](https://github.com/huggingface/nlp/tree/master/datasets) forlder) and just replace the url to load the data to your local or remote path. Then what you can do is `load_dataset(<path/to/your/script>)`
Hello, Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp. Thank you!
67
Huggingface NLP, Uploading custom dataset Hello, Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp. Thank you! To load a dataset you need to have a script that defines the format of the examples, the splits and the way to generate examples. As your dataset has the same format of squad, you can just copy the squad script (see the [datasets](https://github.com/huggingface/nlp/tree/master/datasets) forlder) and just replace the url to load the data to your local or remote path. Then what you can do is `load_dataset(<path/to/your/script>)`
[ 0.1632612943649292, -0.2137283980846405, 0.06531189382076263, 0.16295355558395386, -0.06249050050973892, 0.0928252786397934, 0.2512156665325165, -0.04306706413626671, 0.14747276902198792, -0.14725184440612793, -0.2029956728219986, 0.18710486590862274, -0.1082480326294899, 0.3745343089103699, 0.6062442660331726, -0.07163576036691666, -0.11528965830802917, 0.17533357441425323, -0.05153556540608406, -0.0377064011991024, -0.1981055587530136, 0.25601625442504883, -0.12575586140155792, 0.20883163809776306, -0.15719005465507507, 0.064579077064991, -0.12926505506038666, 0.6166018843650818, -0.04322723671793938, -0.46532535552978516, 0.45857173204421997, 0.16447889804840088, 0.3075282573699951, 0.39236631989479065, -0.00011831417941721156, -0.23410671949386597, 0.13206273317337036, -0.26587241888046265, -0.25852519273757935, -0.43515002727508545, 0.11572982370853424, -0.4135121703147888, 0.35766831040382385, -0.2580886781215668, -0.0757841244339943, 0.1012229472398758, 0.25670069456100464, -0.07171370834112167, 0.523012638092041, 0.08411357551813126, 0.07940077781677246, 0.1752886325120926, -0.19734346866607666, 0.006930341478437185, -0.0799252837896347, 0.2747306227684021, 0.11854233592748642, 0.25473296642303467, 0.40283432602882385, -0.3193990886211395, -0.010998248122632504, -0.1588708907365799, 0.07885635644197464, -0.07656518369913101, 0.5086480975151062, 0.13938766717910767, -0.38387995958328247, -0.10769762843847275, -0.18602651357650757, 0.26056164503097534, 0.44186893105506897, -0.4110243320465088, -0.16385242342948914, -0.3494066596031189, 0.11573032289743423, -0.08194039762020111, 0.2004317045211792, 0.24703501164913177, -0.23331865668296814, -0.000774871907196939, -0.3248099386692047, -0.08140809088945389, -0.2789479196071625, 0.26529666781425476, 0.4247465431690216, -0.028235074132680893, -0.17577524483203888, 0.13227254152297974, 0.14658762514591217, -0.18426772952079773, -0.22983558475971222, 0.04103083536028862, 0.1278057098388672, 0.5799487233161926, -0.26582375168800354, -0.2267964631319046, -0.1616683006286621, 0.19542762637138367, 0.30898943543434143, 0.07298755645751953, 0.26699501276016235, 0.008544019423425198, -0.23983530700206757, 0.08319267630577087, 0.3722083866596222, 0.05666195973753929, 0.4918213188648224, -0.16845926642417908, -0.13711810111999512, 0.019394729286432266, -0.11305485665798187, -0.027967244386672974, -0.44326451420783997, 0.04358810558915138, -0.24435032904148102, -0.20977066457271576, 0.053598277270793915, -0.2177802473306656, 0.045606765896081924, -0.30997899174690247, 0.287074476480484, -0.14718718826770782, 0.10018797218799591, 0.22488650679588318, -0.006534873973578215, -0.1765420138835907, -0.04195269197225571, 0.13134987652301788, -0.0876825824379921, -0.24248526990413666, 0.015461437404155731, -0.025996342301368713, -0.150213822722435, 0.18160980939865112, 0.3011450469493866, -0.16263504326343536, 0.47799602150917053, -0.11165144294500351, 0.003214728320017457, -0.0790121927857399, -0.07859303802251816, 0.2046211212873459, -0.27472370862960815, -0.22805365920066833, 0.2984570860862732, -0.11991165578365326, 0.27670279145240784, -0.24474136531352997, -0.1950596272945404, -0.01619946025311947, -0.19808106124401093, -0.09980839490890503, -0.26044270396232605, 0.029850684106349945, -0.2414761185646057, -0.429025799036026, -0.30824363231658936, 0.41734397411346436, -0.18800511956214905, -0.2443474531173706, -0.06525792926549911, 0.22109398245811462, -0.26279008388519287, -0.10887670516967773, 0.14350658655166626, 0.32038256525993347, -0.517024040222168, -0.34340664744377136, 0.15137988328933716, -0.08548834174871445, -0.16925711929798126, 0.14773650467395782, -0.3176535964012146, 0.152489572763443, -0.20475807785987854, 0.2217378318309784, 0.5584903955459595, -0.2829342186450958, -0.12329339981079102, 0.2048126757144928, -0.3473905920982361, -0.05996251106262207, -0.062330953776836395, 0.21365861594676971, 0.24724407494068146, -0.018247179687023163, 0.030617911368608475, 0.6990081667900085, 0.04606416076421738, -0.04945944994688034, 0.044330012053251266, -0.05560535565018654, 0.11617179214954376, 0.12398473173379898, -0.4393502175807953, 0.2005513310432434, 0.1385042816400528, 0.1559719741344452, 0.12808702886104584, -0.006327431183308363, -0.16632598638534546, 0.014678982086479664, -0.04241838678717613, 0.388962984085083, -0.018627751618623734, 0.0057165054604411125, -0.6861989498138428, 0.24283012747764587, -0.31020763516426086, -0.11798659712076187, 0.35374927520751953, -0.07474791258573532, -0.5600336194038391, -0.1199532002210617, -0.052174266427755356, 0.14236360788345337, -0.031013047322630882, 0.07152405381202698, 0.2351922243833542, -0.1559375822544098, -0.419975221157074, 0.36589300632476807, -0.26541489362716675, 0.22196319699287415, -0.44220539927482605, 0.07150698453187943, 0.29925286769866943, -0.1190316453576088, 0.17114701867103577, 0.3448590338230133, 0.18592943251132965, -0.1832345575094223, 0.13240158557891846, 0.40430155396461487, -0.08981285244226456, 0.3038015365600586, 0.34363338351249695, -0.11675602942705154, -0.04572008550167084, 0.018000395968556404, 0.2573494017124176, -0.07227659225463867, 0.16223347187042236, -0.23562230169773102, -0.3941667079925537, 0.24697203934192657, -0.16628241539001465, 0.19555717706680298, 0.08559742569923401, -0.14042170345783234, 0.07530466467142105, -0.107656329870224, -0.28797197341918945, 0.030881717801094055, 0.12613242864608765, 0.1642037034034729, 0.5432066321372986, 0.0151493139564991, -0.07429284602403641, -0.13753727078437805, 0.4589146077632904, -0.16215837001800537, 0.0483381487429142, 0.27577945590019226, -0.2151990532875061, -0.1649656593799591, 0.0967518538236618, -0.11399886012077332, 0.310078889131546, 0.21747788786888123, -0.1915285736322403, 0.12095219641923904, -0.15468621253967285, 0.01679387129843235, -0.07760605216026306, 0.0096651092171669, -0.0724225640296936, -0.2934225797653198, 0.02898329682648182, -0.16824442148208618, -0.3165304362773895, 0.007310054264962673, -0.08372018486261368, -0.05273927003145218, -0.2797638773918152, 0.08461851626634598, -0.023807747289538383, -0.3330250680446625, -0.33260536193847656, -0.308946818113327, -0.4092160165309906, 0.11759461462497711, -0.37577831745147705, -0.08988106995820999, 0.5219324827194214, -0.06749307364225388, 0.07894706726074219, 0.5729545950889587, -0.19674429297447205, -0.14011867344379425, 0.14926473796367645, -0.12344379723072052, -0.33715730905532837, -0.0581829734146595, 0.217543825507164, 0.38722243905067444, 0.4830296039581299, -0.09627041965723038, 0.16980957984924316, 0.1431276947259903, -0.15509887039661407, 0.07612378150224686, -0.11705724149942398, 0.1787736713886261, 0.22817501425743103, 0.2039535790681839, -0.11202283203601837, -0.09225025773048401, 0.06992603093385696, -0.14413082599639893, -0.09470441937446594, -0.21469652652740479, 0.006522092968225479, 0.14879561960697174, -0.06929866969585419, -0.20266269147396088, -0.39260420203208923, -0.20460255444049835, 0.5442579984664917, 0.3179158568382263, 0.09456677734851837, 0.14861959218978882, -0.20049387216567993, 0.533494234085083, -0.2726587653160095, -0.09559765458106995, -0.15342187881469727, -0.5053132176399231, 0.04332667589187622, -0.1828356683254242, -0.23921430110931396, 0.17315775156021118, -0.002385108731687069, 0.08039349317550659, -0.2721158266067505, -0.21416497230529785, -0.30958083271980286, 0.16588716208934784, -0.12431513518095016, 0.01111656054854393, 0.06369449198246002, 0.1931689977645874, -0.3519288897514343, 0.142319917678833, -0.08009655028581619, -0.37167346477508545, 0.17278333008289337, 0.3058594763278961, 0.12594854831695557, 0.30538439750671387, 0.2932284474372864, -0.08386939018964767, 0.5675317049026489, 0.12912648916244507, -0.17148034274578094, 0.3443670868873596, -0.04026705399155617, 0.1789766103029251, 0.06799252331256866, -0.35601314902305603, 0.03802163153886795, 0.17957964539527893, 0.22006814181804657, 0.4753513038158417, 0.26605427265167236, 0.18119078874588013, -0.2931442856788635, -0.07267642766237259, -0.16380584239959717, 0.09776948392391205, -0.04927366226911545, 0.11757276207208633, -0.036034904420375824, 0.06425648182630539, -0.1507178694009781, -0.4546358585357666, -0.2977871596813202, -0.25109314918518066, 0.25597167015075684, 0.17129790782928467, 0.2918238937854767, -0.6364766955375671, 0.07136539369821548, -0.36454713344573975, 0.26038748025894165, 0.02047056145966053, 0.14054948091506958, 0.006777771282941103, 0.03541937842965126, 0.21483777463436127, 0.17906521260738373, 0.4744751751422882, 0.2818931043148041, -0.12754163146018982, -0.08299299329519272, 0.014543983153998852, -0.5307663679122925, 0.28004419803619385, 0.09369023889303207, 0.3389350473880768, 0.3042065501213074, 0.5084877014160156, -0.25090476870536804, -0.22832129895687103, 0.1943618506193161, 0.049124825745821, -0.3041258156299591, -0.3914262354373932, -0.2928215563297272, -0.10528742522001266, -0.15624459087848663, -0.14473643898963928, -0.15887053310871124, 0.0910777598619461, 0.12527510523796082, 0.07374343276023865, 0.1021084189414978, -0.06542294472455978, 0.10059263557195663, 0.12420275062322617, 0.025987787172198296, 0.43033331632614136, -0.20999720692634583, 0.3520070016384125, 0.24236151576042175, -0.5084124803543091, 0.6294355392456055, -0.27647921442985535, -0.3367932438850403, -0.2020919919013977, -0.0018832050263881683, 0.5229843854904175, 0.09896360337734222, 0.37659376859664917, 0.07718026638031006, -0.07112352550029755, -0.12964285910129547, -0.3097151517868042, 0.23323597013950348, 0.13512539863586426, -0.09116251021623611, -0.12057344615459442, -0.44872409105300903, 0.694614052772522, -0.10617700219154358, 0.015946846455335617, 0.07893010973930359, 0.16301476955413818, -0.1994716376066208, 0.13256904482841492, -0.18685369193553925, 0.7473622560501099, -0.3751450777053833, 0.39025840163230896, 0.13024534285068512, 0.0035091203171759844, 0.7170401215553284, -0.09506745636463165, -0.2441703826189041, -0.3508581817150116, 0.10995455831289291, -0.1457485556602478, -0.11183863878250122, 0.1543857306241989, 0.6320893168449402, -0.20974880456924438, 0.3886801302433014, 0.10370748490095139, -0.002997905947268009, 0.14807580411434174, 0.5094799399375916, 0.15458427369594574, -0.5113890171051025, -0.6902394890785217, 0.05672215670347214, -0.29976412653923035, 0.2571175992488861, -0.11797448247671127, -0.09644082188606262, -0.017441662028431892, -0.20259973406791687, -0.015773426741361618, 0.059310197830200195, -0.22451214492321014, -0.3230774402618408, 0.22935360670089722, -0.27824535965919495, 0.16244593262672424, 0.5821115374565125, 0.12423894554376602, -0.025937093421816826, -0.09180339425802231, -0.05314554274082184, -0.17755013704299927, -0.09155382961034775, -0.19871197640895844, 0.23407626152038574, 0.20427154004573822, -0.04266875237226486, -0.016722194850444794, -0.019192703068256378, 0.19432245194911957, -0.10673367232084274, -0.2794770896434784, 0.219761922955513, 0.1290065050125122, -0.3557668626308441, -0.6285946369171143, -0.02168620377779007, 0.19410723447799683, 0.09406524151563644, -0.01100076176226139, 0.23769934475421906, -0.06376060843467712, -0.1185450330376625, 0.4086725413799286, -0.043562646955251694, 0.10402753949165344, 0.39028507471084595, -0.3402020037174225, -0.395682692527771, 0.4708952009677887, 0.2909400165081024, 0.22216427326202393, 0.002817433327436447, 0.2171224057674408, 0.2111021876335144, -0.21193762123584747, -0.14505401253700256, 0.5018596053123474, 0.07193505764007568, 0.017212193459272385, 0.16966019570827484, 0.14556029438972473, -0.1444823145866394, 0.16084541380405426, -0.26074105501174927, -0.36152586340904236, 0.12321975082159042, 0.023434730246663094, 0.0229998417198658, 0.41833025217056274, 0.03865543752908707, 0.24114343523979187, 0.22139647603034973, -0.14266614615917206, 0.19204172492027283, -0.18994902074337006, 0.0788203552365303, 0.5557518005371094, -0.0537673644721508, 0.010327601805329323, 0.12894383072853088, -0.023226307705044746, 0.055593810975551605, -0.02898205630481243, -0.0895431712269783, -0.2642662823200226, 0.21327164769172668, 0.18990838527679443, -0.1070600152015686, -0.14782403409481049, -0.18727435171604156, -0.03413207456469536, -0.11362263560295105, -0.012284751050174236, 0.11210475116968155, 0.13203895092010498, 0.3177058696746826, 0.06299722194671631, 0.21327735483646393, -0.05237026885151863, 0.06454268097877502, 0.049233272671699524, 0.2295674979686737, 0.1381440907716751, -0.049198079854249954, -0.060791656374931335, 0.018743278458714485, -0.3008628785610199, 0.22917963564395905, 0.6159534454345703, 0.04216768220067024, 0.05429768189787865, -0.04866239055991173, 0.10308881849050522, -0.1313529759645462, 0.09905318170785904, 0.16448725759983063, -0.11996381729841232, 0.1464226394891739, 0.3028818666934967, 0.01817678101360798, -0.10554248839616776, 0.029366375878453255, 0.5654892921447754, -0.08959879726171494, -0.08291392028331757, 0.22933948040008545, -0.16960987448692322, 0.3017837703227997, -0.17734026908874512, -0.20497749745845795, 0.38125187158584595, 0.2803020477294922, -0.0552138052880764, -0.11865755170583725, -0.15816083550453186, -0.24888260662555695, 0.14530420303344727, 0.351539671421051, 0.14398525655269623, -0.08572165668010712, -0.2017531841993332, 0.21222040057182312, -0.33048781752586365, 0.14399142563343048, 0.395112007856369, -0.44312238693237305, -0.19522340595722198, 0.3206197917461395, 0.3337935507297516, 0.45311790704727173, -0.30407604575157166, 0.9252217411994934, -0.22914506494998932, -0.09722074121236801, -0.14219845831394196, 0.11823418736457825, 0.15550227463245392, -0.17791645228862762, -0.21839356422424316, 0.05113688483834267, -0.06418907642364502, -0.08021621406078339, -0.1675030142068863, -0.4903072714805603, -0.20196837186813354, -0.13635161519050598, 0.12418846040964127, -0.11704877018928528, -0.23638847470283508, 0.24890485405921936, -0.18510004878044128, -0.07985944300889969, 0.21283987164497375, -0.033862970769405365, 0.257538378238678, 0.5040977001190186, 0.08443553745746613, -0.0476292185485363, 0.19654428958892822, 0.0119718536734581, 0.17206448316574097, -0.03355515003204346, 0.07781587541103363, 0.05947206914424896, 0.06235414743423462, -0.062002114951610565, 0.11888686567544937, 0.1364646553993225, 0.0433427058160305, -0.004625657107681036, -0.0681399554014206, 0.15303608775138855, -0.0025297703687101603, -0.4499540328979492, 0.2142452448606491, -0.20778165757656097, -0.08220211416482925, -0.48685339093208313, 0.2683151066303253, -0.5577455759048462, -0.13331110775470734, 0.04422255605459213, 0.2668985426425934, 0.09385684132575989, -0.22317466139793396, 0.012700101360678673, -0.2235446572303772, 0.5138811469078064, 0.1905682533979416, 0.1077863872051239, 0.032413333654403687, -0.27082860469818115, -0.5493531823158264, 0.12317107617855072, 0.09535922855138779, -0.32978910207748413, 0.0239413995295763, -0.00938436109572649, -0.09095737338066101, 0.17946751415729523, -0.21855750679969788, -0.06680461019277573, -0.20225748419761658, -0.026250142604112625, -0.19424588978290558, -0.31716805696487427, -0.19571229815483093, 0.35537242889404297, 0.05703531578183174, 0.08779170364141464, -0.1557130068540573, 0.1583600491285324, -0.22109606862068176, -0.13772159814834595, 0.1367906928062439, -0.004367996007204056, -0.08020634204149246, -0.021577132865786552, -0.2114245444536209, 0.4362393021583557, 0.14454925060272217, 0.11899137496948242, 0.008804062381386757, -0.0007139227818697691, -0.2326340526342392, 0.09279478341341019, -0.09735392034053802, 0.27496621012687683, -0.2632640302181244, 0.06230653449892998, -0.1764579564332962, 0.060219939798116684, -0.09631559252738953, -0.1251281499862671, -0.08287529647350311, -0.06680426746606827, -0.17805218696594238, -0.006145205814391375, 0.23773841559886932, 0.5563533902168274, -0.10588748008012772, 0.23053568601608276, 0.03344244509935379, 0.15369729697704315, 0.4228227138519287, -0.46477746963500977, -0.0668630301952362, 0.21595869958400726, 0.22182287275791168, -0.009812520816922188, -0.3232254683971405, -0.4180399179458618, 0.20031417906284332, 0.3468029499053955, 0.04228581488132477, 0.13560889661312103, 0.41169273853302, -0.36179858446121216, -0.055130649358034134, -0.07707561552524567, 0.08785262703895569, 0.2676621079444885, 0.13410213589668274, 0.08728837221860886, -0.10152047127485275 ]
https://github.com/huggingface/datasets/issues/234
Huggingface NLP, Uploading custom dataset
Also if you want to upload your script, you should be able to use the `nlp-cli`. Unfortunately the upload feature was not shipped in the latest version 0.2.0. so right now you can either clone the repo to use it or wait for the next release. We will add some docs to explain how to upload datasets.
Hello, Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp. Thank you!
57
Huggingface NLP, Uploading custom dataset Hello, Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp. Thank you! Also if you want to upload your script, you should be able to use the `nlp-cli`. Unfortunately the upload feature was not shipped in the latest version 0.2.0. so right now you can either clone the repo to use it or wait for the next release. We will add some docs to explain how to upload datasets.
[ 0.17646722495555878, -0.14044609665870667, 0.08491948246955872, -0.018280833959579468, -0.07171452045440674, 0.0758032500743866, 0.3437075614929199, -0.03492995724081993, 0.1954907476902008, -0.08000198751688004, -0.20744478702545166, 0.2885678708553314, -0.055338937789201736, 0.31747865676879883, 0.6837016344070435, -0.008231171406805515, -0.1109834834933281, 0.22706328332424164, -0.11070094257593155, -0.07272502779960632, -0.1884523332118988, 0.24829888343811035, -0.15156754851341248, 0.14278845489025116, -0.09049797803163528, 0.03273531049489975, -0.13684332370758057, 0.5879561305046082, -0.03475765511393547, -0.4627840220928192, 0.3801752030849457, 0.18507616221904755, 0.27056801319122314, 0.2915581464767456, -0.00011991957580903545, -0.3151117265224457, 0.21961675584316254, -0.22838908433914185, -0.19920721650123596, -0.3886294662952423, 0.22902517020702362, -0.49958354234695435, 0.3296045660972595, -0.2545452117919922, 0.02291017211973667, 0.0480303056538105, 0.34627965092658997, -0.04693468660116196, 0.4474572241306305, 0.11200480908155441, 0.06824860721826553, 0.23576869070529938, -0.2086898386478424, 0.016588546335697174, -0.12611110508441925, 0.20234884321689606, 0.03649158030748367, 0.0982229933142662, 0.47450754046440125, -0.3767588436603546, -0.020459560677409172, -0.22928881645202637, 0.11504459381103516, -0.22555144131183624, 0.5860814452171326, 0.16504758596420288, -0.29937297105789185, -0.17189526557922363, -0.14956390857696533, 0.26306113600730896, 0.42059069871902466, -0.38515985012054443, -0.15772053599357605, -0.35617560148239136, 0.16024582087993622, -0.09329009056091309, 0.24202664196491241, 0.21689139306545258, -0.19881939888000488, -0.04087622091174126, -0.3009018301963806, -0.08359070867300034, -0.3048926889896393, 0.23690710961818695, 0.43490493297576904, 0.07357804477214813, -0.07486917823553085, 0.12352832406759262, 0.25850820541381836, -0.25150051712989807, -0.167540043592453, 0.12066520750522614, 0.09021706879138947, 0.6502209305763245, -0.284898966550827, -0.3007368743419647, -0.18031539022922516, 0.15863390266895294, 0.34655871987342834, 0.0871051773428917, 0.23400819301605225, -0.037952128797769547, -0.2315879911184311, 0.06325296312570572, 0.4135231077671051, 0.07228796929121017, 0.5410385131835938, -0.20672892034053802, -0.1094597727060318, -0.07465651631355286, -0.007132292725145817, -0.03877541422843933, -0.34368380904197693, 0.06668751686811447, -0.21019600331783295, -0.20719455182552338, -0.003997642081230879, -0.2105838656425476, 0.08842354267835617, -0.3016291558742523, 0.39651525020599365, -0.20215685665607452, 0.03371718153357506, 0.23376904428005219, -0.02627933956682682, -0.19907860457897186, -0.006627955473959446, 0.16395977139472961, -0.02407044731080532, -0.28335997462272644, 0.027740269899368286, 0.02903599478304386, -0.1441705971956253, 0.12921905517578125, 0.30831584334373474, -0.11916353553533554, 0.4292011260986328, -0.14623098075389862, 0.11517933756113052, 0.03441765531897545, -0.18534144759178162, 0.20043618977069855, -0.2792140543460846, -0.21166019141674042, 0.2990444004535675, -0.1502888947725296, 0.1245240792632103, -0.31653085350990295, -0.1780051738023758, 0.05668448284268379, -0.11736173927783966, -0.02228095754981041, -0.3355041444301605, -0.0008658955921418965, -0.15766359865665436, -0.5109565258026123, -0.21104010939598083, 0.405832439661026, -0.204493448138237, -0.2549583315849304, -0.0943484678864479, 0.14545369148254395, -0.2338825911283493, -0.09564405679702759, 0.08039183169603348, 0.23958845436573029, -0.5089071393013, -0.31443992257118225, 0.13476355373859406, -0.05573013052344322, -0.09099145978689194, 0.12362616509199142, -0.22575339674949646, 0.011354038491845131, -0.13733701407909393, 0.26487305760383606, 0.6306743025779724, -0.36352136731147766, -0.17081302404403687, 0.16602544486522675, -0.2847294211387634, -0.012698913924396038, -0.07833187282085419, 0.2403733879327774, 0.2574867010116577, -0.04333305358886719, -0.0072622220031917095, 0.7859998345375061, 0.020399967208504677, -0.030374571681022644, 0.019957412034273148, -0.0455247201025486, 0.1873828023672104, 0.1366533786058426, -0.3432527482509613, 0.20711541175842285, 0.16151852905750275, 0.11164882779121399, 0.19579948484897614, 0.01616905815899372, -0.16043339669704437, -0.03869432583451271, -0.07260610908269882, 0.3785207271575928, 0.016535399481654167, 0.03755858540534973, -0.6924945712089539, 0.20666687190532684, -0.41881096363067627, -0.014901009388267994, 0.35996711254119873, -0.052797842770814896, -0.5092005729675293, -0.11824867129325867, -0.00012611581769306213, 0.17533642053604126, -0.03502405807375908, 0.08832714706659317, 0.14143286645412445, -0.1319972276687622, -0.46861502528190613, 0.420087993144989, -0.2656466066837311, 0.21593888103961945, -0.38399049639701843, 0.09863770753145218, 0.2503138780593872, -0.1872025430202484, 0.18510667979717255, 0.3410760462284088, 0.17773039638996124, -0.1337013989686966, 0.10101025551557541, 0.36268800497055054, -0.19582323729991913, 0.29497030377388, 0.41557228565216064, -0.08861089497804642, -0.05294544994831085, 0.08553775399923325, 0.2579500675201416, -0.11008458584547043, 0.042970236390829086, -0.27111178636550903, -0.39200475811958313, 0.20966973900794983, -0.11772985011339188, 0.1833416074514389, 0.038243602961301804, -0.13591672480106354, 0.06670340895652771, -0.12947949767112732, -0.301899790763855, 0.05939893797039986, 0.09138260036706924, 0.13989602029323578, 0.5469383001327515, -0.08448460698127747, -0.11833229660987854, -0.04949729144573212, 0.5501149892807007, -0.11400087922811508, 0.07796041667461395, 0.25121551752090454, -0.10554665327072144, -0.14686474204063416, 0.12600460648536682, -0.19088777899742126, 0.2596578299999237, 0.22837534546852112, -0.22714704275131226, 0.07373645901679993, -0.20616738498210907, 0.04595275968313217, -0.08462278544902802, -0.11731937527656555, -0.05271013081073761, -0.26956260204315186, 0.17402443289756775, -0.1882401406764984, -0.4044700562953949, 0.08697067201137543, -0.1470431089401245, -0.06930958479642868, -0.2084822654724121, 0.01532962266355753, 0.002215281594544649, -0.323893278837204, -0.22590374946594238, -0.2658858299255371, -0.49109500646591187, 0.05262008309364319, -0.3498064875602722, -0.106277234852314, 0.529596745967865, -0.05207220837473869, 0.15739184617996216, 0.6836386919021606, -0.14989927411079407, -0.06607121229171753, 0.07184229791164398, -0.02698173187673092, -0.2955065071582794, -0.05981966108083725, 0.14935240149497986, 0.2859889268875122, 0.40510156750679016, -0.04934870824217796, 0.19536587595939636, 0.1278509497642517, -0.2362929880619049, 0.07498197257518768, -0.16106195747852325, 0.1566876620054245, 0.1923016607761383, 0.18003204464912415, -0.09953871369361877, -0.07370784878730774, 0.04708141088485718, -0.195522278547287, -0.14397284388542175, -0.19436556100845337, 0.01375036220997572, 0.051858894526958466, -0.11143635958433151, -0.16014041006565094, -0.4644371569156647, -0.20909887552261353, 0.5759682059288025, 0.4488879442214966, 0.13236430287361145, 0.18349525332450867, -0.23225103318691254, 0.47054317593574524, -0.2687542736530304, -0.09736163169145584, -0.13508844375610352, -0.4322133958339691, 0.13802367448806763, -0.23099976778030396, -0.26513999700546265, 0.20417442917823792, 0.08503160625696182, 0.07297772914171219, -0.36943647265434265, -0.18066492676734924, -0.2982809841632843, 0.23050269484519958, -0.06450788676738739, 0.014479154720902443, 0.08362574130296707, 0.22016263008117676, -0.30170145630836487, 0.16907845437526703, -0.11467226594686508, -0.400532066822052, 0.19274619221687317, 0.41777074337005615, 0.21123455464839935, 0.3016081154346466, 0.19858594238758087, -0.12167946994304657, 0.49306008219718933, 0.09624749422073364, -0.16695360839366913, 0.3587189018726349, -0.051083847880363464, 0.21816793084144592, 0.03899635374546051, -0.4225403070449829, 0.06702137738466263, 0.27811330556869507, 0.2694312632083893, 0.4079965054988861, 0.19092172384262085, 0.06481370329856873, -0.3097715377807617, -0.0376848503947258, -0.03744940832257271, 0.14918003976345062, -0.09806530177593231, 0.25440555810928345, -0.12425121665000916, 0.07800349593162537, -0.11707577109336853, -0.5316737294197083, -0.3109460175037384, -0.19868479669094086, 0.20320788025856018, 0.2260255068540573, 0.26440414786338806, -0.706258237361908, 0.08572174608707428, -0.513996422290802, 0.21984195709228516, -0.014594968408346176, 0.11830554157495499, -0.033757083117961884, 0.004515674896538258, 0.16518425941467285, 0.1520134061574936, 0.5225434899330139, 0.1951165497303009, -0.19387009739875793, -0.039844486862421036, 0.10119390487670898, -0.5167873501777649, 0.2903282940387726, 0.0574817880988121, 0.2678429186344147, 0.3412593901157379, 0.45256850123405457, -0.17916063964366913, -0.19648964703083038, 0.2660776376724243, -0.01285665575414896, -0.3577563166618347, -0.43036356568336487, -0.3104017674922943, -0.10453442484140396, -0.11242018640041351, -0.16670088469982147, -0.1923719048500061, 0.1397876739501953, 0.1549271047115326, -0.016903193667531013, 0.15461139380931854, -0.06443796306848526, 0.09797417372465134, 0.1727817952632904, -0.029972149059176445, 0.5414875149726868, -0.20673151314258575, 0.3115103840827942, 0.2032039910554886, -0.49543532729148865, 0.5356370210647583, -0.3347654342651367, -0.34038394689559937, -0.18914784491062164, -0.06642717123031616, 0.6380001902580261, 0.18678691983222961, 0.41271349787712097, 0.07166089862585068, -0.17011047899723053, -0.13244976103305817, -0.20605123043060303, 0.15229743719100952, 0.1808270364999771, -0.08185601979494095, -0.06207004562020302, -0.3783702850341797, 0.6578391790390015, -0.14843817055225372, 0.015241234563291073, 0.1428593099117279, 0.13147875666618347, -0.20739851891994476, 0.167887881398201, -0.17566315829753876, 0.9181856513023376, -0.4013734757900238, 0.30450761318206787, 0.06582687050104141, -0.0023997449316084385, 0.6905844211578369, -0.12637653946876526, -0.15758031606674194, -0.4469195008277893, 0.031815800815820694, -0.12453551590442657, -0.1117076575756073, 0.15621472895145416, 0.6060437560081482, -0.29041630029678345, 0.3330257534980774, 0.10226305574178696, -0.1566513329744339, 0.08574540168046951, 0.5474111437797546, 0.1954798400402069, -0.552177369594574, -0.6150873899459839, 0.050782233476638794, -0.27130964398384094, 0.2174416333436966, -0.12250305712223053, -0.14447066187858582, 0.017699863761663437, -0.15260067582130432, 0.02093295007944107, 0.15391254425048828, -0.14134056866168976, -0.37871062755584717, 0.33843696117401123, -0.17111293971538544, 0.12888461351394653, 0.5490391850471497, 0.17901648581027985, 0.02111021801829338, -0.014078216627240181, -0.02787180244922638, -0.1363566517829895, -0.09822346270084381, -0.20088432729244232, 0.3473670780658722, 0.21844834089279175, -0.10026351362466812, -0.08787534385919571, 0.0284428633749485, 0.1698329597711563, -0.20469017326831818, -0.2876242399215698, 0.21397176384925842, 0.17740875482559204, -0.31183600425720215, -0.5614945292472839, 0.06107478588819504, 0.1731773465871811, 0.11749599874019623, -0.002451961161568761, 0.2749667465686798, -0.026865676045417786, -0.0674513578414917, 0.4489811062812805, 0.03273621201515198, 0.12775258719921112, 0.36428749561309814, -0.3437953591346741, -0.47465795278549194, 0.3770824670791626, 0.34552985429763794, 0.18677163124084473, 0.02834654599428177, 0.10174190998077393, 0.1265091896057129, -0.12534138560295105, -0.15239834785461426, 0.46365368366241455, -0.0035679226275533438, -0.08247939497232437, 0.2397332787513733, 0.09790144860744476, -0.11809197068214417, 0.09511159360408783, -0.1770332157611847, -0.40446457266807556, 0.07996082305908203, 0.03426152095198631, -0.0030442362185567617, 0.44009771943092346, 0.029263895004987717, 0.23412081599235535, 0.2732700705528259, -0.1530267298221588, 0.0812956690788269, -0.20514518022537231, 0.10957767814397812, 0.642236590385437, -0.11817474663257599, 0.015841228887438774, 0.12959180772304535, -0.039051126688718796, 0.002629127586260438, -0.07991795241832733, -0.05906425416469574, -0.2287062257528305, 0.20006664097309113, 0.22071680426597595, -0.06376887112855911, -0.19220489263534546, -0.22227080166339874, -0.10119043290615082, -0.1705959439277649, -0.02011723443865776, 0.12909948825836182, 0.03932841494679451, 0.3361457586288452, 0.14205758273601532, 0.1637382209300995, 0.05622595548629761, 0.006902614142745733, 0.140944242477417, 0.22138135135173798, 0.08761630952358246, -0.014738859608769417, -0.12369813770055771, 0.038800198584795, -0.2033962905406952, 0.23366916179656982, 0.5907530188560486, 0.121175117790699, 0.10969178378582001, -0.06944277137517929, 0.056830283254384995, -0.12753647565841675, 0.011658797040581703, 0.0961742252111435, -0.1826566904783249, 0.19297662377357483, 0.22574201226234436, 0.009845231659710407, -0.13600611686706543, -0.031072983518242836, 0.6075595021247864, -0.00047383623314090073, -0.10093490034341812, 0.27806419134140015, -0.16592687368392944, 0.20912431180477142, -0.045069076120853424, -0.17108985781669617, 0.4275471866130829, 0.14246825873851776, -0.1523720771074295, -0.1849142611026764, -0.24273665249347687, -0.2652878761291504, 0.2519280016422272, 0.3314613401889801, 0.1331576257944107, -0.028207547962665558, -0.21606086194515228, 0.15812887251377106, -0.2844082713127136, 0.072905994951725, 0.355631023645401, -0.35622382164001465, -0.1422441601753235, 0.3530154824256897, 0.3848423361778259, 0.49204373359680176, -0.181312695145607, 0.924627959728241, -0.16086269915103912, -0.1758287400007248, -0.13731373846530914, 0.1474548876285553, 0.10820679366588593, -0.11519651114940643, -0.2877686023712158, 0.030165204778313637, -0.07291339337825775, -0.12022292613983154, -0.1534537672996521, -0.45753201842308044, -0.1800718754529953, -0.12112748622894287, 0.1582862138748169, -0.01906825229525566, -0.2579401135444641, 0.22069957852363586, -0.08391030132770538, -0.05150310695171356, 0.20334333181381226, -0.1597408950328827, 0.30063557624816895, 0.44413504004478455, 0.1342649906873703, -0.06689326465129852, 0.30138301849365234, 0.13330404460430145, 0.22550104558467865, -0.0017810846911743283, 0.036703404039144516, 0.14650364220142365, 0.08348061889410019, -0.03562761843204498, 0.13136860728263855, 0.08633839339017868, 0.01329267118126154, -0.013952543027698994, -0.08098074048757553, 0.16866467893123627, 0.02393338829278946, -0.3790719211101532, 0.20585505664348602, -0.14662601053714752, -0.1522456705570221, -0.5125371813774109, 0.25951313972473145, -0.5331435203552246, -0.190972238779068, 0.05407001078128815, 0.2861722409725189, 0.0584588386118412, -0.3261234164237976, 0.014925184659659863, -0.2337179332971573, 0.4653110206127167, 0.22234995663166046, 0.017187664285302162, 0.09722615033388138, -0.27382245659828186, -0.4709037244319916, 0.19583164155483246, 0.14038057625293732, -0.2856000065803528, 0.006215618923306465, 0.06370577961206436, -0.08303532749414444, 0.1276964396238327, -0.018934858962893486, -0.11041533201932907, -0.15458403527736664, -0.1286306381225586, -0.2602013945579529, -0.2290128618478775, -0.11742560565471649, 0.25239792466163635, 0.08273249119520187, 0.1446988880634308, -0.11544359475374222, 0.14315727353096008, -0.20019270479679108, -0.13660258054733276, 0.1237984150648117, -0.017677880823612213, -0.024525361135601997, 0.10671930760145187, -0.2734106779098511, 0.4452269971370697, 0.13415993750095367, 0.04384388029575348, 0.09751874953508377, -0.03145121783018112, -0.2656061053276062, 0.0596044659614563, -0.12176460772752762, 0.24349930882453918, -0.198308527469635, 0.08611049503087997, -0.1347762793302536, 0.09997951984405518, -0.146771639585495, -0.15715603530406952, -0.10599802434444427, -0.08119551837444305, -0.16914638876914978, 0.000523815571796149, 0.17260879278182983, 0.4137922525405884, -0.07056857645511627, 0.17745018005371094, -0.04481961950659752, 0.18754471838474274, 0.46891871094703674, -0.41955575346946716, -0.12464135140180588, 0.15516571700572968, 0.15192468464374542, -0.06559238582849503, -0.31301623582839966, -0.4497193396091461, 0.13875478506088257, 0.22846554219722748, 0.05157434567809105, 0.09158359467983246, 0.4112345278263092, -0.5065762400627136, -0.04044819250702858, -0.10211490094661713, -0.03951431065797806, 0.3436337411403656, 0.0974312424659729, -0.006092416122555733, -0.07712429761886597 ]
https://github.com/huggingface/datasets/issues/234
Huggingface NLP, Uploading custom dataset
Since the latest release 0.2.1 you can use ```bash nlp-cli upload_dataset <path/to/dataset> ``` where `<path/to/dataset>` is a path to a folder containing your script (ex: `squad.py`). This will upload the script under your namespace on our S3. Optionally the folder can also contain `dataset_infos.json` generated using ```bash nlp-cli test <path/to/dataset> --all_configs --save_infos ``` Then you should be able to do ```python nlp.load_dataset("my_namespace/dataset_name") ```
Hello, Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp. Thank you!
63
Huggingface NLP, Uploading custom dataset Hello, Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp. Thank you! Since the latest release 0.2.1 you can use ```bash nlp-cli upload_dataset <path/to/dataset> ``` where `<path/to/dataset>` is a path to a folder containing your script (ex: `squad.py`). This will upload the script under your namespace on our S3. Optionally the folder can also contain `dataset_infos.json` generated using ```bash nlp-cli test <path/to/dataset> --all_configs --save_infos ``` Then you should be able to do ```python nlp.load_dataset("my_namespace/dataset_name") ```
[ 0.2800405025482178, -0.22688893973827362, 0.12016213685274124, 0.11589770019054413, -0.06247665733098984, -0.011173696257174015, 0.29930898547172546, -0.03620464727282524, 0.08475782722234726, -0.09561631083488464, -0.2538753151893616, 0.3167451024055481, -0.07992328703403473, 0.3306141793727875, 0.5891801118850708, 0.12801367044448853, 0.0025305668823421, 0.20431049168109894, -0.001219726400449872, -0.058797989040613174, -0.26726728677749634, 0.37348493933677673, -0.1716809719800949, 0.11104517430067062, -0.04108736664056778, 0.19172489643096924, -0.10793159157037735, 0.5931820273399353, -0.06794589012861252, -0.6077474355697632, 0.4877365231513977, 0.19383318722248077, 0.3708677291870117, 0.4090651571750641, -0.00012339437671471387, -0.3133191764354706, 0.2694946229457855, -0.23169758915901184, -0.3273879587650299, -0.33748510479927063, 0.12491406500339508, -0.4609065651893616, 0.3682495057582855, -0.23264987766742706, -0.06764727830886841, 0.12876634299755096, 0.2350025773048401, -0.0852794498205185, 0.4762735366821289, 0.08236988633871078, 0.01597082056105137, 0.2765757143497467, -0.37854158878326416, 0.05095307528972626, 0.02509891800582409, 0.2565004229545593, 0.009583204053342342, 0.08974453806877136, 0.4341783821582794, -0.3698427677154541, 0.09351922571659088, -0.038506511598825455, 0.04293452203273773, -0.13255855441093445, 0.6434708833694458, 0.1918412446975708, -0.3280699849128723, -0.13214680552482605, -0.23903797566890717, 0.23976154625415802, 0.3419501483440399, -0.42342469096183777, -0.32563984394073486, -0.4911605715751648, 0.13157500326633453, -0.15634940564632416, 0.24537405371665955, 0.06972145289182663, -0.17126604914665222, -0.06486456841230392, -0.3384974002838135, -0.13900908827781677, -0.3118114173412323, 0.2429279088973999, 0.2955792248249054, 0.22809480130672455, -0.22060538828372955, 0.15832489728927612, 0.23519085347652435, -0.2058347761631012, -0.08868847042322159, 0.10071546584367752, 0.10647805035114288, 0.5646871328353882, -0.3737163245677948, -0.2899186313152313, -0.11654624342918396, 0.1007397323846817, 0.2578740417957306, 0.13445228338241577, 0.17701739072799683, -0.035965777933597565, -0.12339551746845245, 0.09136688709259033, 0.3903140425682068, -0.001464384375140071, 0.5357538461685181, -0.1598767340183258, -0.08518398553133011, 0.025178328156471252, 0.05509500950574875, -0.08502703160047531, -0.4656985402107239, -0.013429483398795128, -0.2789915204048157, -0.20539143681526184, 0.16227611899375916, -0.203716441988945, 0.08752680569887161, -0.23110651969909668, 0.3427422046661377, -0.10163471102714539, 0.1443825662136078, 0.22770965099334717, -0.03532760217785835, -0.12915995717048645, -0.020522642880678177, 0.1601540893316269, -0.07326415181159973, -0.19874480366706848, 0.05908340960741043, -0.049143578857183456, -0.18319571018218994, 0.09380506724119186, 0.332732230424881, -0.09044814854860306, 0.4279944598674774, -0.14873337745666504, 0.13110147416591644, -0.010218678042292595, -0.1246863529086113, 0.24250052869319916, -0.18018729984760284, -0.12581469118595123, 0.28807663917541504, -0.018998077139258385, 0.11539912223815918, -0.31178802251815796, -0.22955814003944397, -0.05229348689317703, -0.15299205482006073, -0.061670396476984024, -0.3780480921268463, -0.026893120259046555, -0.3280335068702698, -0.49071529507637024, -0.2676517963409424, 0.2743676006793976, -0.1532912254333496, -0.23388659954071045, -0.030335640534758568, 0.1520071029663086, -0.26744598150253296, -0.1086118295788765, 0.18392333388328552, 0.29698267579078674, -0.42669814825057983, -0.302162230014801, 0.04203537851572037, -0.012394566088914871, -0.10560905933380127, 0.13872084021568298, -0.2472095787525177, -0.05426335334777832, -0.15707950294017792, 0.2555837333202362, 0.5747659802436829, -0.48370909690856934, -0.13884003460407257, 0.2292330414056778, -0.2719876766204834, 0.01319930050522089, 0.06393903493881226, 0.24635197222232819, 0.174787238240242, 0.010458136908710003, -0.06256772577762604, 0.749136745929718, 0.03477151691913605, -0.06528691202402115, 0.07933823764324188, -0.020167415961623192, 0.15665096044540405, 0.1346312314271927, -0.3383796513080597, 0.15313361585140228, 0.09221862256526947, 0.1980261653661728, 0.1743176132440567, -0.09805240482091904, -0.07396693527698517, 0.03419293090701103, 0.11237722635269165, 0.4171503782272339, 0.0026156411040574312, 0.03738745301961899, -0.6957998871803284, 0.28702425956726074, -0.28568920493125916, -0.002606433117762208, 0.29080867767333984, -0.0849645733833313, -0.4383995831012726, -0.11230460554361343, -0.10521052777767181, 0.1792890727519989, -0.08189117163419724, 0.16968469321727753, 0.23800279200077057, -0.196453258395195, -0.4215334355831146, 0.3596045970916748, -0.12289337068796158, 0.2609521448612213, -0.4864850640296936, 0.044427599757909775, 0.2445632964372635, -0.17973951995372772, 0.11385800689458847, 0.3458591103553772, 0.214930921792984, -0.15126442909240723, 0.197011336684227, 0.35140666365623474, -0.10655298084020615, 0.3253585696220398, 0.3652244806289673, 0.01499223057180643, -0.05110121890902519, 0.1266390085220337, 0.24545800685882568, -0.1220531091094017, 0.0721832886338234, -0.13804368674755096, -0.3422391712665558, 0.3357030153274536, -0.16492176055908203, 0.24531550705432892, -0.0025175437331199646, -0.14623260498046875, 0.0532507598400116, -0.08916857838630676, -0.4279448091983795, -0.002703440608456731, 0.03522108122706413, 0.11982821673154831, 0.39819270372390747, -0.01351199671626091, -0.07691294699907303, -0.09738748520612717, 0.6103429198265076, -0.10325415432453156, 0.03767795488238335, 0.2313653826713562, -0.10375212132930756, -0.19619551301002502, 0.1441420018672943, -0.0011314230505377054, 0.3079434335231781, 0.1700054258108139, -0.18863935768604279, 0.04649227857589722, -0.08740368485450745, 0.07124307751655579, -0.03343066945672035, 0.00017183645104523748, 0.01662018708884716, -0.2834664583206177, 0.20291030406951904, -0.14894245564937592, -0.3170859217643738, 0.058137472718954086, -0.07949099689722061, -0.1055353656411171, -0.2577173113822937, 0.13300906121730804, 0.0025693364441394806, -0.3521052896976471, -0.2281143069267273, -0.3058690130710602, -0.4979850947856903, 0.08253158628940582, -0.3920721113681793, -0.08140086382627487, 0.5837753415107727, -0.06717491894960403, 0.13211773335933685, 0.5852787494659424, -0.15607142448425293, -0.19869263470172882, 0.07284735888242722, -0.01841789484024048, -0.2793131172657013, -0.12371235340833664, 0.059583406895399094, 0.18152810633182526, 0.3396264314651489, -0.07619582116603851, 0.19564448297023773, 0.08061069995164871, -0.283653199672699, 0.07866840809583664, -0.19906465709209442, 0.18724796175956726, 0.3521505296230316, 0.11347296833992004, -0.13292951881885529, 0.00832525733858347, 0.10633052885532379, -0.1537938266992569, -0.11829490959644318, -0.07441569119691849, 0.0029160676058381796, 0.07503296434879303, -0.12075898796319962, -0.08567463606595993, -0.33399781584739685, -0.14054957032203674, 0.5175920724868774, 0.3240983486175537, 0.11710182577371597, 0.19432352483272552, -0.21627312898635864, 0.4645293653011322, -0.308376282453537, -0.008929889649152756, -0.13561972975730896, -0.5117291212081909, 0.032069142907857895, -0.14159329235553741, -0.1379128247499466, 0.17673854529857635, 0.11912919580936432, 0.121416375041008, -0.35180044174194336, -0.19299043715000153, -0.4288126826286316, 0.2198190987110138, 0.021519476547837257, 0.03498360142111778, 0.12493213266134262, 0.22291810810565948, -0.22140143811702728, 0.19177263975143433, -0.1415397673845291, -0.4419384300708771, 0.07362162321805954, 0.4186241030693054, 0.23341314494609833, 0.2650018334388733, 0.245714008808136, -0.020860731601715088, 0.5214273929595947, 0.1515868753194809, -0.18956102430820465, 0.39771386981010437, -0.04355701431632042, 0.20108386874198914, 0.13131165504455566, -0.3892539441585541, 0.060491837561130524, 0.2669021487236023, 0.24026481807231903, 0.36724334955215454, 0.17530404031276703, 0.14850087463855743, -0.2690672278404236, 0.07156829535961151, -0.13034236431121826, 0.17850467562675476, -0.1290690004825592, 0.23227311670780182, -0.043135933578014374, 0.045335426926612854, -0.14909417927265167, -0.4444138705730438, -0.2447851598262787, -0.18724310398101807, 0.24591317772865295, 0.24745522439479828, 0.30238622426986694, -0.6653095483779907, -0.088760145008564, -0.48300638794898987, 0.1967623084783554, -0.09480898827314377, 0.14883297681808472, 0.07119996100664139, 0.045565348118543625, 0.16871377825737, 0.05449410900473595, 0.6477311849594116, 0.07249801605939865, -0.189410001039505, -0.053866803646087646, 0.013294783420860767, -0.65581876039505, 0.24969661235809326, 0.06324450671672821, 0.26188719272613525, 0.3039630949497223, 0.5747793316841125, -0.18605726957321167, -0.290887713432312, 0.15416453778743744, -0.03024918958544731, -0.3178246021270752, -0.3237399458885193, -0.37653976678848267, -0.14855748414993286, -0.14103306829929352, -0.2114432156085968, -0.17808595299720764, 0.14674268662929535, 0.2263944000005722, 0.047594401985406876, 0.12169764190912247, 0.024902448058128357, 0.057824455201625824, 0.2943679094314575, -0.058411214500665665, 0.5272745490074158, -0.13760951161384583, 0.2554579973220825, 0.16545367240905762, -0.3756706416606903, 0.6000044345855713, -0.2558777928352356, -0.4437698423862457, -0.15654443204402924, 0.11671816557645798, 0.6394876837730408, 0.19682542979717255, 0.3234351873397827, 0.14901131391525269, -0.09358850866556168, -0.10954020917415619, -0.33841845393180847, 0.13362224400043488, 0.24349556863307953, -0.043151695281267166, 0.06639576703310013, -0.3870311975479126, 0.5882585048675537, -0.10434824973344803, -0.034467894583940506, -0.10320043563842773, 0.20371344685554504, -0.22247134149074554, 0.1742633432149887, -0.1180257499217987, 0.892542839050293, -0.4042232036590576, 0.39915600419044495, 0.19491037726402283, -0.008339877240359783, 0.7712128758430481, -0.07109115272760391, -0.1952490359544754, -0.4421929717063904, 0.2296811193227768, -0.1013709232211113, -0.10517445206642151, 0.13289690017700195, 0.4739495515823364, -0.23398004472255707, 0.361296683549881, 0.13415904343128204, -0.19846835732460022, 0.060313012450933456, 0.5681430697441101, 0.20757073163986206, -0.5780226588249207, -0.6750754117965698, 0.019689496606588364, -0.32625702023506165, 0.28488245606422424, -0.1095486655831337, -0.08889557421207428, -0.04817800223827362, -0.15421123802661896, 0.04464850574731827, 0.11386976391077042, -0.04319202899932861, -0.4616304934024811, 0.3202894926071167, -0.3091624975204468, 0.15718668699264526, 0.5623401999473572, 0.20444239675998688, 0.04613237455487251, -0.0031006503850221634, -0.028661338612437248, -0.09351220726966858, -0.10510598868131638, -0.19757863879203796, 0.19080054759979248, 0.08552534133195877, -0.09972935169935226, -0.07414977997541428, -0.06598153710365295, 0.24649864435195923, -0.1773230880498886, -0.13601434230804443, 0.21079017221927643, 0.12824951112270355, -0.30422285199165344, -0.5435214638710022, -0.02278350479900837, 0.1489756852388382, 0.09474386274814606, -0.022178877145051956, 0.2583082616329193, -0.10682465136051178, -0.1202172189950943, 0.305486261844635, -0.03127375245094299, 0.15519320964813232, 0.4183869957923889, -0.3858991265296936, -0.36370205879211426, 0.3382478952407837, 0.3833320438861847, 0.20174284279346466, 0.01579839363694191, 0.09013628959655762, 0.09293604642152786, -0.09880879521369934, -0.1292106658220291, 0.497490793466568, -0.10880447179079056, 0.0067566209472715855, 0.10917185246944427, 0.17959633469581604, -0.18277382850646973, 0.11140785366296768, -0.19404496252536774, -0.23641113936901093, 0.08535134792327881, 0.03327286243438721, 0.02335957996547222, 0.43628278374671936, -0.13797958195209503, 0.15521933138370514, 0.09488551318645477, -0.12141139805316925, 0.10921673476696014, -0.20492546260356903, 0.1828266680240631, 0.4841092824935913, -0.19276738166809082, 0.060560062527656555, 0.07248151302337646, -0.061208341270685196, -0.05920777469873428, -0.06547854840755463, -0.053895603865385056, -0.2560448944568634, 0.22777633368968964, 0.2528780400753021, -0.09924022853374481, -0.11356639117002487, -0.20438584685325623, -0.14388535916805267, -0.20038263499736786, 0.028883900493383408, 0.15655553340911865, 0.1449349969625473, 0.3754054009914398, -0.005571210291236639, 0.07534214109182358, 0.0791371613740921, 0.030110005289316177, 0.10337880253791809, 0.13224251568317413, 0.07794555276632309, 0.09889501333236694, -0.07017583400011063, 0.021039245650172234, -0.20545656979084015, 0.2262929528951645, 0.5412861108779907, 0.11874213814735413, 0.0873253121972084, -0.16803285479545593, 0.017701955512166023, -0.10149223357439041, 0.15154895186424255, 0.1994531899690628, -0.17980147898197174, 0.07972429692745209, 0.1812310814857483, -0.008395028300583363, -0.05125720426440239, -0.134038507938385, 0.4174160659313202, -0.021749962121248245, -0.05972190201282501, 0.35592496395111084, -0.17280906438827515, 0.299113929271698, -0.140550896525383, -0.16694562137126923, 0.4358363449573517, 0.28236904740333557, -0.12057968229055405, -0.159635990858078, -0.19515278935432434, -0.23293441534042358, 0.2651916444301605, 0.3151317536830902, 0.048266585916280746, 0.02404146082699299, -0.2267838716506958, 0.1274556666612625, -0.2008686363697052, 0.1938610076904297, 0.30031800270080566, -0.3114253580570221, -0.13483405113220215, 0.24872981011867523, 0.3220221698284149, 0.4606931209564209, -0.25120553374290466, 0.8900495171546936, -0.2082510143518448, -0.13270027935504913, -0.16701462864875793, 0.17012161016464233, 0.131444051861763, -0.2742999494075775, -0.29924386739730835, 0.0876147672533989, -0.026514744386076927, -0.07217641174793243, -0.16988444328308105, -0.5302124619483948, -0.20902523398399353, -0.08663360029459, 0.21202999353408813, -0.09657774865627289, -0.2525303363800049, 0.23648414015769958, -0.11750279366970062, -0.10240712761878967, 0.22977785766124725, -0.1354077309370041, 0.2758539319038391, 0.3882063925266266, 0.09754165261983871, 0.05089619755744934, 0.2564311921596527, 0.03382702171802521, 0.20853067934513092, 0.0011938452953472733, 0.02483392134308815, 0.04244152829051018, -0.0014727064408361912, -0.09368714690208435, 0.2220131754875183, 0.041209012269973755, -0.006753541063517332, 0.013494213111698627, -0.1261174976825714, 0.08290045708417892, -0.03293865546584129, -0.3117896020412445, 0.22231435775756836, -0.20632585883140564, -0.08749837428331375, -0.44654226303100586, 0.41526928544044495, -0.6194021701812744, -0.13291819393634796, 0.2620140612125397, 0.3689609169960022, 0.10955336689949036, -0.2574586272239685, -0.0046854885295033455, -0.22741560637950897, 0.48478013277053833, 0.1143014132976532, 0.0827309861779213, 0.05587415769696236, -0.18724976480007172, -0.46740975975990295, 0.13308463990688324, 0.06944730877876282, -0.36389589309692383, 0.046530794352293015, 0.15304796397686005, -0.15592914819717407, 0.08245789259672165, -0.10722464323043823, -0.05013704299926758, -0.16732709109783173, 0.02089538425207138, -0.21432754397392273, -0.19702255725860596, -0.11900646239519119, 0.24081826210021973, 0.12044215947389603, 0.07520493119955063, -0.1501963585615158, 0.09257194399833679, -0.2727144658565521, -0.13404157757759094, 0.14921925961971283, 0.06373733282089233, 0.001424951828084886, 0.20920823514461517, -0.25944793224334717, 0.4553113579750061, 0.09309330582618713, -0.0523209385573864, -0.03752879425883293, -0.07080669701099396, -0.3093707263469696, 0.10263656824827194, -0.23823770880699158, 0.25468599796295166, -0.21112078428268433, 0.18254216015338898, -0.24702417850494385, 0.049608923494815826, -0.05566051974892616, -0.2157362848520279, -0.009198558516800404, -0.0050398213788867, -0.21007519960403442, 0.0972384363412857, 0.1297479271888733, 0.40952450037002563, -0.02721582166850567, 0.20138674974441528, -0.14163394272327423, 0.0713425874710083, 0.4824336767196655, -0.5757662057876587, -0.09965448081493378, 0.18039892613887787, 0.23155477643013, -0.10074611753225327, -0.41906413435935974, -0.5331844091415405, 0.21772414445877075, 0.258007287979126, 0.07074813544750214, -0.004404747858643532, 0.3593480885028839, -0.4332226514816284, -0.06310857087373734, -0.1109694093465805, -0.02926618978381157, 0.29621079564094543, 0.0780341699719429, 0.04357273504137993, -0.08950233459472656 ]
https://github.com/huggingface/datasets/issues/233
Fail to download c4 english corpus
Hello ! Thanks for noticing this bug, let me fix that. Also for information, as specified in the changelog of the latest release, C4 currently needs to have a runtime for apache beam to work on. Apache beam is used to process this very big dataset and it can work on dataflow, spark, flink, apex, etc. You can find more info on beam datasets [here](https://github.com/huggingface/nlp/blob/master/docs/beam_dataset.md). Our goal in the future is to make available an already-processed version of C4 (as we do for wikipedia for example) so that users without apache beam runtimes can load it.
i run following code to download c4 English corpus. ``` dataset = nlp.load_dataset('c4', 'en', beam_runner='DirectRunner' , data_dir='/mypath') ``` and i met failure as follows ``` Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/adam/.cache/huggingface/datasets/c4/en/2.3.0... Traceback (most recent call last): File "download_corpus.py", line 38, in <module> , data_dir='/home/adam/data/corpus/en/c4') File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset save_infos=save_infos, File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 420, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 816, in _download_and_prepare dl_manager, verify_infos=False, pipeline=pipeline, File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 457, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/datasets/c4/f545de9f63300d8d02a6795e2eb34e140c47e62a803f572ac5599e170ee66ecc/c4.py", line 175, in _split_generators dl_manager.download_checksums(_CHECKSUMS_URL) AttributeError: 'DownloadManager' object has no attribute 'download_checksums ``` can i get any advice?
96
Fail to download c4 english corpus i run following code to download c4 English corpus. ``` dataset = nlp.load_dataset('c4', 'en', beam_runner='DirectRunner' , data_dir='/mypath') ``` and i met failure as follows ``` Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/adam/.cache/huggingface/datasets/c4/en/2.3.0... Traceback (most recent call last): File "download_corpus.py", line 38, in <module> , data_dir='/home/adam/data/corpus/en/c4') File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset save_infos=save_infos, File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 420, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 816, in _download_and_prepare dl_manager, verify_infos=False, pipeline=pipeline, File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 457, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/datasets/c4/f545de9f63300d8d02a6795e2eb34e140c47e62a803f572ac5599e170ee66ecc/c4.py", line 175, in _split_generators dl_manager.download_checksums(_CHECKSUMS_URL) AttributeError: 'DownloadManager' object has no attribute 'download_checksums ``` can i get any advice? Hello ! Thanks for noticing this bug, let me fix that. Also for information, as specified in the changelog of the latest release, C4 currently needs to have a runtime for apache beam to work on. Apache beam is used to process this very big dataset and it can work on dataflow, spark, flink, apex, etc. You can find more info on beam datasets [here](https://github.com/huggingface/nlp/blob/master/docs/beam_dataset.md). Our goal in the future is to make available an already-processed version of C4 (as we do for wikipedia for example) so that users without apache beam runtimes can load it.
[ 0.011553661897778511, 0.09108465909957886, -0.05564424768090248, 0.29022395610809326, 0.14863020181655884, 0.16529744863510132, -0.06323686242103577, 0.3174014687538147, -0.11661396920681, 0.03942945599555969, -0.15431523323059082, 0.008751380257308483, 0.026757895946502686, 0.08450079709291458, 0.1310361921787262, -0.5472642779350281, -0.22359682619571686, 0.15271466970443726, -0.1312202662229538, -0.14125372469425201, -0.04234325885772705, 0.4258197844028473, -0.11378776282072067, -0.17473632097244263, -0.06000424921512604, -0.13748599588871002, -0.19747233390808105, -0.055069759488105774, -0.2063422054052353, -0.5448319315910339, 0.4454168975353241, 0.0049819136038422585, 0.18939131498336792, 0.34701159596443176, -0.00010940981155727059, -0.01785217970609665, 0.41022562980651855, -0.12080955505371094, -0.24889041483402252, -0.3994743824005127, 0.17930281162261963, -0.32142776250839233, -0.09998121857643127, -0.3226764500141144, -0.22828522324562073, -0.13052603602409363, 0.16689829528331757, -0.22700738906860352, 0.04316186159849167, 0.3165641725063324, 0.2735980153083801, -0.025514274835586548, 0.2802661955356598, -0.13305076956748962, -0.18314708769321442, -0.24020257592201233, -0.09089773893356323, 0.23933778703212738, 0.16672775149345398, 0.2533949017524719, -0.09512797743082047, 0.1529466062784195, 0.05027620121836662, 0.01341476384550333, -0.1094028428196907, -0.22099797427654266, 0.04897129163146019, -0.27206194400787354, 0.33564653992652893, 0.05530327558517456, 0.7832084894180298, -0.28178671002388, -0.16184179484844208, 0.1612849086523056, 0.2839292883872986, -0.21231454610824585, 0.22038879990577698, 0.4282419681549072, -0.13925285637378693, 0.0007200007676146924, -0.32490968704223633, -0.09991484880447388, -0.18179042637348175, 0.20378214120864868, 0.02098270319402218, 0.008732561022043228, -0.08046568185091019, -0.010057712905108929, 0.21736930310726166, 0.1014784425497055, 0.07938200235366821, -0.0789976716041565, -0.2777699828147888, 0.2961804270744324, -0.28324413299560547, 0.020596321672201157, -0.14629843831062317, 0.5204564332962036, 0.025379914790391922, -0.36212992668151855, -0.13540048897266388, -0.10544860363006592, 0.07566697150468826, 0.027680182829499245, -0.05333765968680382, 0.3394516706466675, 0.10876915603876114, 0.028519650921225548, 0.07979917526245117, 0.13018549978733063, 0.07434173673391342, -0.04996687173843384, -0.1396476775407791, -0.22278539836406708, -0.2987942695617676, 0.2747345268726349, -0.12344937771558762, -0.3272606432437897, -0.15215888619422913, 0.0012156245065853, -0.20873044431209564, -0.03460147976875305, -0.09959418326616287, 0.4414268434047699, -0.1579023003578186, 0.1526205688714981, 0.08801507204771042, 0.1817052662372589, -0.1947116255760193, -0.36601340770721436, -0.14901000261306763, 0.2008829414844513, -0.46862080693244934, -0.32053184509277344, 0.2491358369588852, -0.3165852129459381, 0.4326321482658386, -0.08860329538583755, 0.10732430219650269, -0.10228808224201202, -0.1421983689069748, -0.22252428531646729, -0.2582617700099945, 0.18804483115673065, 0.06787750869989395, 0.26513904333114624, 0.012080559507012367, -0.03282853215932846, -0.007650095969438553, -0.24501818418502808, -0.1295100301504135, -0.19092793762683868, -0.0725264847278595, 0.17847765982151031, -0.01035254541784525, -0.13389372825622559, -0.5229310989379883, 0.049975551664829254, 0.1910485029220581, 0.03806326165795326, -0.0024337295908480883, -0.20787183940410614, -0.2315002977848053, -0.20859839022159576, 0.11716926842927933, 0.5448191165924072, -0.018813027068972588, 0.028378726914525032, -0.04356662184000015, -0.01195666752755642, 0.49969571828842163, 0.37207645177841187, -0.09973911941051483, 0.17216813564300537, -0.20958620309829712, 0.14264635741710663, 0.16642804443836212, -0.5432878136634827, -0.22140486538410187, 0.2418850064277649, -0.04924891144037247, 0.0903548151254654, 0.03292296454310417, -0.4252801537513733, 0.20099711418151855, -0.1309155821800232, 0.11172918230295181, 0.27592769265174866, 0.0992456004023552, 0.12656109035015106, -0.24118532240390778, -0.12675894796848297, 0.24730081856250763, 0.10466121882200241, 0.16901761293411255, -0.10204519331455231, 0.2604559063911438, 0.18707886338233948, 0.2613472640514374, -0.12082540988922119, 0.3596661388874054, 0.2470409870147705, -0.2625229060649872, -0.30720558762550354, 0.10502219200134277, 0.1985936015844345, -0.3305432200431824, 0.20660050213336945, -0.224548801779747, 0.2911965250968933, 0.05326320230960846, -0.021893208846449852, -0.32562053203582764, -0.20640841126441956, -0.24103666841983795, -0.20117628574371338, 0.17742012441158295, -0.04290931299328804, 0.32807090878486633, 0.16727891564369202, 0.11972123384475708, 0.3532952070236206, -0.30633097887039185, -0.10966168344020844, -0.10674021393060684, 0.10266982018947601, -0.2434280812740326, -0.07219044119119644, 0.32417404651641846, 0.24245432019233704, 0.26533862948417664, -0.1568370908498764, -0.13989345729351044, 0.07293371856212616, -0.14702974259853363, 0.41556423902511597, -0.11655987799167633, -0.12037422508001328, 0.3694630265235901, -0.3810006082057953, 0.40821269154548645, 0.3177170157432556, 0.06451459228992462, -0.07451338320970535, 0.30472812056541443, -0.24469660222530365, 0.05164613202214241, 0.007779413368552923, 0.08690774440765381, -0.1271294355392456, 0.33176979422569275, -0.09151473641395569, 0.17783792316913605, -0.03593450412154198, 0.532970666885376, -0.09439806640148163, 0.25456172227859497, -0.15274469554424286, -0.19702008366584778, 0.027611343190073967, 0.42649349570274353, 0.08075908571481705, -0.11451494693756104, 0.1710074543952942, -0.12888440489768982, -0.1758294701576233, 0.2758093476295471, 0.11890363693237305, 0.11022797226905823, 0.16510041058063507, 0.17313405871391296, 0.13116538524627686, 0.13358107209205627, -0.2187911719083786, 0.2529250979423523, -0.21582987904548645, 0.171828493475914, 0.3353058695793152, 0.16610932350158691, -0.002951317932456732, -0.43208763003349304, -0.028696978464722633, 0.21439900994300842, 0.1778082251548767, -0.06852638721466064, -0.099737249314785, -0.24677646160125732, -0.40813586115837097, -0.31347835063934326, -0.11854373663663864, 0.03713250532746315, 0.01724647358059883, -0.19682539999485016, 0.11412105709314346, -0.040704742074012756, -0.0076265959069132805, -0.2748717963695526, -0.3112749755382538, -0.19947712123394012, -0.2850930392742157, -0.17256568372249603, 0.005930251907557249, -0.4090847969055176, 0.1231616660952568, 0.14126476645469666, 0.059434521943330765, 0.35670003294944763, -0.3356066346168518, -0.08273760229349136, -0.22347445785999298, -0.07055414468050003, 0.2513357400894165, -0.06519783288240433, -0.15453602373600006, 0.022168485447764397, 0.20069803297519684, -0.22271735966205597, -0.1932855099439621, 0.015568266622722149, -0.12744435667991638, -0.1874832957983017, 0.014690929092466831, -0.2334837168455124, -0.15572021901607513, -0.15952734649181366, -0.6133765578269958, -0.47461938858032227, -0.48644155263900757, 0.059994861483573914, -0.1413521021604538, 0.19657450914382935, 0.39358124136924744, -0.20145325362682343, 0.16573810577392578, 0.13731810450553894, 0.1436544805765152, -0.20284822583198547, -0.026271799579262733, 0.11786209791898727, -0.3232530653476715, -0.45436930656433105, 0.11731822788715363, 0.023860804736614227, 0.41506704688072205, 0.16472220420837402, -0.30463993549346924, 0.3316362798213959, -0.032270900905132294, 0.12915293872356415, 0.09137997031211853, 0.14185936748981476, 0.49418339133262634, -0.0997108668088913, -0.002217075787484646, 0.029207156971096992, 0.11091909557580948, -0.006735574919730425, 0.22922217845916748, 0.4109457731246948, -0.2725360691547394, 0.15089207887649536, 0.16940580308437347, 0.3010316491127014, 0.39882031083106995, -0.23261411488056183, 0.6556064486503601, 0.32999294996261597, 0.1660475730895996, -0.07856099307537079, -0.22316007316112518, 0.4240542948246002, -0.02420262061059475, 0.05045248940587044, 0.39433953166007996, -0.16810819506645203, -0.5607061386108398, -0.11067624390125275, -0.416059285402298, -0.40698733925819397, -0.06559883058071136, -0.005862634163349867, 0.11797937005758286, 0.4066353440284729, 0.04121658205986023, 0.1797281950712204, 0.2586696743965149, -0.2891935408115387, 0.1588020920753479, 0.2221118062734604, 0.030702786520123482, 0.296225905418396, -0.0844784677028656, -0.13709968328475952, -0.713388979434967, 0.3157612681388855, 0.28924062848091125, 0.16818101704120636, -0.1471833884716034, 0.3811468482017517, 0.013209432363510132, -0.19391830265522003, 0.5401843786239624, -0.21462738513946533, 0.1172226145863533, 0.03856581449508667, 0.039467763155698776, -0.08228907734155655, 0.010347428731620312, 0.06700987368822098, 0.117646723985672, 0.422392338514328, 0.05895169824361801, -0.48400697112083435, -0.08813303709030151, -0.021805282682180405, 0.47672387957572937, 0.17085446417331696, -0.21849985420703888, -0.0499945729970932, -0.5328354239463806, -0.2335805594921112, 0.007856624200940132, 0.01804962195456028, 0.36885279417037964, -0.023413073271512985, -0.007778453640639782, 0.17834830284118652, 0.07187874615192413, 0.18671470880508423, 0.14257904887199402, 0.28001973032951355, 0.2922773063182831, 0.20065000653266907, 0.3297080099582672, 0.004378524608910084, 0.19219522178173065, 0.31830862164497375, -0.14868000149726868, 0.1402452439069748, -0.05302505940198898, 0.11649245768785477, 0.1367504596710205, 0.20459330081939697, 0.03013254515826702, -0.06275168806314468, -0.14156395196914673, -0.19799752533435822, 0.14650875329971313, 0.08352576196193695, 0.09638811647891998, 0.12574371695518494, -0.570375382900238, -0.38825830817222595, 0.27962741255760193, -0.3202507197856903, 0.15958143770694733, 0.15448129177093506, 0.30578118562698364, -0.3391076922416687, 0.25593245029449463, 0.07954607903957367, 0.7368470430374146, -0.040268704295158386, 0.07664331048727036, 0.028607245534658432, 0.07719883322715759, 0.2957967221736908, -0.33938464522361755, 0.17917893826961517, -0.24314026534557343, 0.11969905346632004, -0.0036813265178352594, 0.07773401588201523, -0.020391592755913734, 0.13655737042427063, -0.3911971151828766, 0.5633791089057922, 0.07773389667272568, -0.04482721909880638, 0.06428182870149612, 0.37384292483329773, -0.14197154343128204, -0.3766850233078003, -0.4003911316394806, 0.18190646171569824, -0.31791654229164124, 0.33057814836502075, -0.20887872576713562, -0.08868289738893509, 0.10623513162136078, -0.1021086648106575, -0.3304603099822998, 0.41570448875427246, -0.2829909324645996, 0.02536342479288578, -0.09548616409301758, -0.18039605021476746, 0.4980289340019226, 0.2474800944328308, 0.3305485248565674, 0.37445634603500366, -0.2370949387550354, 0.12063205242156982, 0.10322188585996628, -0.5300794839859009, 0.24470487236976624, 0.021627405658364296, 0.054735783487558365, -0.34007638692855835, -0.21754655241966248, 0.09308868646621704, -0.041183069348335266, -0.052540067583322525, 0.2623298764228821, -0.14253541827201843, -0.33368366956710815, 0.010511108674108982, -0.35495543479919434, 0.26264214515686035, -0.0046566869132220745, 0.03924984112381935, 0.12762637436389923, -0.08342679589986801, -0.17889603972434998, 0.11126828193664551, 0.1640383005142212, -0.21929241716861725, -0.09325605630874634, 0.3113943040370941, 0.1225602850317955, -0.3694091737270355, 0.47010746598243713, 0.2693340480327606, -0.24350859224796295, -0.19013327360153198, -0.6724624633789062, -0.2965882122516632, -0.3600967824459076, -0.008136792108416557, -0.0068631479516625404, 0.036296114325523376, -0.14320485293865204, 0.36694931983947754, -0.028917353600263596, -0.007344265002757311, 0.22492718696594238, -0.3883950114250183, -0.2859404683113098, 0.06967347860336304, -0.15974494814872742, 0.02857544645667076, 0.23872919380664825, 0.28289079666137695, 0.19142642617225647, 0.11299900710582733, -0.270911306142807, -0.04517956078052521, -0.37413159012794495, 0.07345512509346008, 0.2913357615470886, -0.10154338926076889, 0.3328818082809448, 0.11200205981731415, 0.10917001217603683, 0.2557429373264313, -0.25209635496139526, -0.209044948220253, -0.11032967269420624, 0.08477615565061569, 0.15797699987888336, 0.08173822611570358, 0.3228660821914673, -0.3832598924636841, -0.14949475228786469, -0.028481867164373398, 0.12609487771987915, 0.3018393814563751, -0.033936791121959686, 0.12603338062763214, 0.24066974222660065, 0.0628545731306076, -0.08676400780677795, 0.14244934916496277, 0.11671986430883408, 0.09449991583824158, -0.021136272698640823, 0.14237262308597565, 0.06792045384645462, -0.08107243478298187, -0.143630251288414, -0.014486165717244148, 0.11095019429922104, 0.049967050552368164, 0.15437142550945282, -0.036877378821372986, 0.10275093466043472, -0.005485357716679573, -0.04549406096339226, 0.007428979966789484, -0.02345200441777706, -0.035800378769636154, 0.30458277463912964, 0.20666128396987915, -0.2701687812805176, 0.17608065903186798, -0.018422754481434822, 0.17215774953365326, 0.004592115990817547, 0.013946861028671265, 0.32610660791397095, -0.29987072944641113, 0.19545277953147888, 0.09732852131128311, 0.35909533500671387, -0.13008570671081543, -0.15505194664001465, -0.028224661946296692, 0.06127512827515602, 0.04152785614132881, 0.22455325722694397, -0.14635682106018066, 0.00869812536984682, 0.13488896191120148, -0.08931276947259903, -0.01167807262390852, 0.27344587445259094, 0.2953782081604004, -0.06546103209257126, -0.21158713102340698, 0.007216296158730984, 0.30115532875061035, 0.29554587602615356, 0.22885280847549438, 0.11974615603685379, 0.19592079520225525, 0.17329686880111694, -0.20004911720752716, -0.32755163311958313, 0.3751677870750427, -0.07891703397035599, 0.03933069854974747, -0.19251930713653564, -0.21869312226772308, -0.08184538036584854, 0.13606040179729462, -0.18722616136074066, -0.06594279408454895, 0.1962611824274063, 0.21847905218601227, -0.2186945080757141, -0.4077441692352295, -0.04353271424770355, 0.016044579446315765, 0.1576141119003296, -0.2169870287179947, 0.49915534257888794, 0.2705332040786743, -0.0546603724360466, -0.16325189173221588, 0.3140857517719269, 0.4485446810722351, 0.20072564482688904, -0.12844952940940857, 0.09777586162090302, 0.12251979112625122, -0.010440761223435402, -0.036438342183828354, 0.4297574460506439, 0.345233678817749, 0.11359104514122009, 0.2829175591468811, 0.10922480374574661, -0.22057034075260162, -0.09852924942970276, 0.09332321584224701, -0.05672194063663483, 0.12509043514728546, 0.4512259364128113, 0.004476950503885746, 0.07499133795499802, -0.3351686894893646, 0.04853856563568115, -0.4805064797401428, 0.43050533533096313, 0.49336767196655273, -0.19419148564338684, -0.012612631544470787, -0.10424789786338806, 0.08645517379045486, 0.09255839884281158, 0.32883983850479126, 0.27446797490119934, 0.4959401488304138, -0.41771838068962097, -0.3438931405544281, -0.3343038558959961, 0.18633458018302917, -0.29574859142303467, 0.17978422343730927, -0.25193890929222107, 0.05943410098552704, 0.1434573084115982, 0.10078195482492447, -0.12724940478801727, 0.3666923940181732, 0.18580909073352814, 0.22374534606933594, -0.1296079456806183, 0.11506598442792892, -0.16300849616527557, 0.007101696450263262, -0.0068414160050451756, -0.4851981997489929, -0.1454271525144577, -0.07270505279302597, 0.06646901369094849, -0.2589693069458008, 0.08463361114263535, 0.04418259114027023, -0.15183012187480927, 0.13502173125743866, 0.027905741706490517, 0.6574349403381348, -0.23934002220630646, -0.19509434700012207, -0.2961316704750061, -0.2016223669052124, -0.1850348263978958, -0.028659509494900703, 0.09899348020553589, 0.35261720418930054, 0.06631570309400558, 0.1508641242980957, -0.15671277046203613, 0.4380100667476654, 0.1698620468378067, 0.34537237882614136, -0.1365317851305008, 0.10780969262123108, -0.3517179787158966, -0.12050862610340118, 0.04667675122618675, 0.5064763426780701, 0.02186567895114422, -0.1784386783838272, -0.2926492393016815, -0.5317479372024536, 0.5479220747947693, -0.8124216198921204, -0.2576378881931305, 0.07841791957616806, 0.09572107344865799, -0.011472456157207489, -0.2659354507923126, -0.526742696762085, 0.255278617143631, 0.09849082678556442, -0.07824129611253738, -0.3275490701198578, 0.11571670323610306, -0.09428242594003677, -0.0646759569644928, -0.052635107189416885, 0.3443562984466553, 0.18938615918159485, -0.2799617350101471, -0.19547466933727264, -0.31563854217529297 ]
https://github.com/huggingface/datasets/issues/233
Fail to download c4 english corpus
@lhoestq I am facing `IsADirectoryError` while downloading with this command. Can you pls look into it & help me. I'm using version 0.4.0 of `nlp`. ``` dataset = load_dataset("c4", 'en', data_dir='.', beam_runner='DirectRunner') ``` Here's the complete stack trace. ``` Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, post-processed: Unknown sizetotal: Unknown size) to /home/devops/.cache/huggingface/datasets/c4/en/2.3.0/096df5a27756d51957c959a2499453e60a08154971fceb017bbb29f54b11bef7... --------------------------------------------------------------------------- IsADirectoryError Traceback (most recent call last) <ipython-input-11-f622e6705e03> in <module> ----> 1 dataset = load_dataset("c4", 'en', data_dir='.', beam_runner='DirectRunner') /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 547 # Download and prepare data 548 builder_instance.download_and_prepare( --> 549 download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications, 550 ) 551 /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 461 if not downloaded_from_gcs: 462 self._download_and_prepare( --> 463 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 464 ) 465 # Sync info /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 964 pipeline = beam_utils.BeamPipeline(runner=beam_runner, options=beam_options,) 965 super(BeamBasedBuilder, self)._download_and_prepare( --> 966 dl_manager, verify_infos=False, pipeline=pipeline, 967 ) # TODO handle verify_infos in beam datasets 968 # Run pipeline /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 516 split_dict = SplitDict(dataset_name=self.name) 517 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 518 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 519 # Checksums verification 520 if verify_infos: /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/datasets/c4/096df5a27756d51957c959a2499453e60a08154971fceb017bbb29f54b11bef7/c4.py in _split_generators(self, dl_manager, pipeline) 187 if self.config.realnewslike: 188 files_to_download["realnews_domains"] = _REALNEWS_DOMAINS_URL --> 189 file_paths = dl_manager.download_and_extract(files_to_download) 190 191 if self.config.webtextlike: /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in download_and_extract(self, url_or_urls) 218 extracted_path(s): `str`, extracted paths of given URL(s). 219 """ --> 220 return self.extract(self.download(url_or_urls)) 221 222 def get_recorded_sizes_checksums(self): /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in download(self, url_or_urls) 156 lambda url: cached_path(url, download_config=self._download_config,), url_or_urls, 157 ) --> 158 self._record_sizes_checksums(url_or_urls, downloaded_path_or_paths) 159 return downloaded_path_or_paths 160 /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in _record_sizes_checksums(self, url_or_urls, downloaded_path_or_paths) 106 flattened_downloaded_path_or_paths = flatten_nested(downloaded_path_or_paths) 107 for url, path in zip(flattened_urls_or_urls, flattened_downloaded_path_or_paths): --> 108 self._recorded_sizes_checksums[url] = get_size_checksum_dict(path) 109 110 def download_custom(self, url_or_urls, custom_download): /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/info_utils.py in get_size_checksum_dict(path) 77 """Compute the file size and the sha256 checksum of a file""" 78 m = sha256() ---> 79 with open(path, "rb") as f: 80 for chunk in iter(lambda: f.read(1 << 20), b""): 81 m.update(chunk) IsADirectoryError: [Errno 21] Is a directory: '/' ``` Can anyone please try to see what I am doing wrong or is this a bug?
i run following code to download c4 English corpus. ``` dataset = nlp.load_dataset('c4', 'en', beam_runner='DirectRunner' , data_dir='/mypath') ``` and i met failure as follows ``` Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/adam/.cache/huggingface/datasets/c4/en/2.3.0... Traceback (most recent call last): File "download_corpus.py", line 38, in <module> , data_dir='/home/adam/data/corpus/en/c4') File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset save_infos=save_infos, File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 420, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 816, in _download_and_prepare dl_manager, verify_infos=False, pipeline=pipeline, File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 457, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/datasets/c4/f545de9f63300d8d02a6795e2eb34e140c47e62a803f572ac5599e170ee66ecc/c4.py", line 175, in _split_generators dl_manager.download_checksums(_CHECKSUMS_URL) AttributeError: 'DownloadManager' object has no attribute 'download_checksums ``` can i get any advice?
341
Fail to download c4 english corpus i run following code to download c4 English corpus. ``` dataset = nlp.load_dataset('c4', 'en', beam_runner='DirectRunner' , data_dir='/mypath') ``` and i met failure as follows ``` Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/adam/.cache/huggingface/datasets/c4/en/2.3.0... Traceback (most recent call last): File "download_corpus.py", line 38, in <module> , data_dir='/home/adam/data/corpus/en/c4') File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset save_infos=save_infos, File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 420, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 816, in _download_and_prepare dl_manager, verify_infos=False, pipeline=pipeline, File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 457, in _download_and_prepare split_generators = self._split_generators(dl_manager, **split_generators_kwargs) File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/datasets/c4/f545de9f63300d8d02a6795e2eb34e140c47e62a803f572ac5599e170ee66ecc/c4.py", line 175, in _split_generators dl_manager.download_checksums(_CHECKSUMS_URL) AttributeError: 'DownloadManager' object has no attribute 'download_checksums ``` can i get any advice? @lhoestq I am facing `IsADirectoryError` while downloading with this command. Can you pls look into it & help me. I'm using version 0.4.0 of `nlp`. ``` dataset = load_dataset("c4", 'en', data_dir='.', beam_runner='DirectRunner') ``` Here's the complete stack trace. ``` Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, post-processed: Unknown sizetotal: Unknown size) to /home/devops/.cache/huggingface/datasets/c4/en/2.3.0/096df5a27756d51957c959a2499453e60a08154971fceb017bbb29f54b11bef7... --------------------------------------------------------------------------- IsADirectoryError Traceback (most recent call last) <ipython-input-11-f622e6705e03> in <module> ----> 1 dataset = load_dataset("c4", 'en', data_dir='.', beam_runner='DirectRunner') /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs) 547 # Download and prepare data 548 builder_instance.download_and_prepare( --> 549 download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications, 550 ) 551 /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs) 461 if not downloaded_from_gcs: 462 self._download_and_prepare( --> 463 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 464 ) 465 # Sync info /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos) 964 pipeline = beam_utils.BeamPipeline(runner=beam_runner, options=beam_options,) 965 super(BeamBasedBuilder, self)._download_and_prepare( --> 966 dl_manager, verify_infos=False, pipeline=pipeline, 967 ) # TODO handle verify_infos in beam datasets 968 # Run pipeline /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 516 split_dict = SplitDict(dataset_name=self.name) 517 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 518 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 519 # Checksums verification 520 if verify_infos: /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/datasets/c4/096df5a27756d51957c959a2499453e60a08154971fceb017bbb29f54b11bef7/c4.py in _split_generators(self, dl_manager, pipeline) 187 if self.config.realnewslike: 188 files_to_download["realnews_domains"] = _REALNEWS_DOMAINS_URL --> 189 file_paths = dl_manager.download_and_extract(files_to_download) 190 191 if self.config.webtextlike: /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in download_and_extract(self, url_or_urls) 218 extracted_path(s): `str`, extracted paths of given URL(s). 219 """ --> 220 return self.extract(self.download(url_or_urls)) 221 222 def get_recorded_sizes_checksums(self): /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in download(self, url_or_urls) 156 lambda url: cached_path(url, download_config=self._download_config,), url_or_urls, 157 ) --> 158 self._record_sizes_checksums(url_or_urls, downloaded_path_or_paths) 159 return downloaded_path_or_paths 160 /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in _record_sizes_checksums(self, url_or_urls, downloaded_path_or_paths) 106 flattened_downloaded_path_or_paths = flatten_nested(downloaded_path_or_paths) 107 for url, path in zip(flattened_urls_or_urls, flattened_downloaded_path_or_paths): --> 108 self._recorded_sizes_checksums[url] = get_size_checksum_dict(path) 109 110 def download_custom(self, url_or_urls, custom_download): /data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/info_utils.py in get_size_checksum_dict(path) 77 """Compute the file size and the sha256 checksum of a file""" 78 m = sha256() ---> 79 with open(path, "rb") as f: 80 for chunk in iter(lambda: f.read(1 << 20), b""): 81 m.update(chunk) IsADirectoryError: [Errno 21] Is a directory: '/' ``` Can anyone please try to see what I am doing wrong or is this a bug?
[ 0.011553661897778511, 0.09108465909957886, -0.05564424768090248, 0.29022395610809326, 0.14863020181655884, 0.16529744863510132, -0.06323686242103577, 0.3174014687538147, -0.11661396920681, 0.03942945599555969, -0.15431523323059082, 0.008751380257308483, 0.026757895946502686, 0.08450079709291458, 0.1310361921787262, -0.5472642779350281, -0.22359682619571686, 0.15271466970443726, -0.1312202662229538, -0.14125372469425201, -0.04234325885772705, 0.4258197844028473, -0.11378776282072067, -0.17473632097244263, -0.06000424921512604, -0.13748599588871002, -0.19747233390808105, -0.055069759488105774, -0.2063422054052353, -0.5448319315910339, 0.4454168975353241, 0.0049819136038422585, 0.18939131498336792, 0.34701159596443176, -0.00010940981155727059, -0.01785217970609665, 0.41022562980651855, -0.12080955505371094, -0.24889041483402252, -0.3994743824005127, 0.17930281162261963, -0.32142776250839233, -0.09998121857643127, -0.3226764500141144, -0.22828522324562073, -0.13052603602409363, 0.16689829528331757, -0.22700738906860352, 0.04316186159849167, 0.3165641725063324, 0.2735980153083801, -0.025514274835586548, 0.2802661955356598, -0.13305076956748962, -0.18314708769321442, -0.24020257592201233, -0.09089773893356323, 0.23933778703212738, 0.16672775149345398, 0.2533949017524719, -0.09512797743082047, 0.1529466062784195, 0.05027620121836662, 0.01341476384550333, -0.1094028428196907, -0.22099797427654266, 0.04897129163146019, -0.27206194400787354, 0.33564653992652893, 0.05530327558517456, 0.7832084894180298, -0.28178671002388, -0.16184179484844208, 0.1612849086523056, 0.2839292883872986, -0.21231454610824585, 0.22038879990577698, 0.4282419681549072, -0.13925285637378693, 0.0007200007676146924, -0.32490968704223633, -0.09991484880447388, -0.18179042637348175, 0.20378214120864868, 0.02098270319402218, 0.008732561022043228, -0.08046568185091019, -0.010057712905108929, 0.21736930310726166, 0.1014784425497055, 0.07938200235366821, -0.0789976716041565, -0.2777699828147888, 0.2961804270744324, -0.28324413299560547, 0.020596321672201157, -0.14629843831062317, 0.5204564332962036, 0.025379914790391922, -0.36212992668151855, -0.13540048897266388, -0.10544860363006592, 0.07566697150468826, 0.027680182829499245, -0.05333765968680382, 0.3394516706466675, 0.10876915603876114, 0.028519650921225548, 0.07979917526245117, 0.13018549978733063, 0.07434173673391342, -0.04996687173843384, -0.1396476775407791, -0.22278539836406708, -0.2987942695617676, 0.2747345268726349, -0.12344937771558762, -0.3272606432437897, -0.15215888619422913, 0.0012156245065853, -0.20873044431209564, -0.03460147976875305, -0.09959418326616287, 0.4414268434047699, -0.1579023003578186, 0.1526205688714981, 0.08801507204771042, 0.1817052662372589, -0.1947116255760193, -0.36601340770721436, -0.14901000261306763, 0.2008829414844513, -0.46862080693244934, -0.32053184509277344, 0.2491358369588852, -0.3165852129459381, 0.4326321482658386, -0.08860329538583755, 0.10732430219650269, -0.10228808224201202, -0.1421983689069748, -0.22252428531646729, -0.2582617700099945, 0.18804483115673065, 0.06787750869989395, 0.26513904333114624, 0.012080559507012367, -0.03282853215932846, -0.007650095969438553, -0.24501818418502808, -0.1295100301504135, -0.19092793762683868, -0.0725264847278595, 0.17847765982151031, -0.01035254541784525, -0.13389372825622559, -0.5229310989379883, 0.049975551664829254, 0.1910485029220581, 0.03806326165795326, -0.0024337295908480883, -0.20787183940410614, -0.2315002977848053, -0.20859839022159576, 0.11716926842927933, 0.5448191165924072, -0.018813027068972588, 0.028378726914525032, -0.04356662184000015, -0.01195666752755642, 0.49969571828842163, 0.37207645177841187, -0.09973911941051483, 0.17216813564300537, -0.20958620309829712, 0.14264635741710663, 0.16642804443836212, -0.5432878136634827, -0.22140486538410187, 0.2418850064277649, -0.04924891144037247, 0.0903548151254654, 0.03292296454310417, -0.4252801537513733, 0.20099711418151855, -0.1309155821800232, 0.11172918230295181, 0.27592769265174866, 0.0992456004023552, 0.12656109035015106, -0.24118532240390778, -0.12675894796848297, 0.24730081856250763, 0.10466121882200241, 0.16901761293411255, -0.10204519331455231, 0.2604559063911438, 0.18707886338233948, 0.2613472640514374, -0.12082540988922119, 0.3596661388874054, 0.2470409870147705, -0.2625229060649872, -0.30720558762550354, 0.10502219200134277, 0.1985936015844345, -0.3305432200431824, 0.20660050213336945, -0.224548801779747, 0.2911965250968933, 0.05326320230960846, -0.021893208846449852, -0.32562053203582764, -0.20640841126441956, -0.24103666841983795, -0.20117628574371338, 0.17742012441158295, -0.04290931299328804, 0.32807090878486633, 0.16727891564369202, 0.11972123384475708, 0.3532952070236206, -0.30633097887039185, -0.10966168344020844, -0.10674021393060684, 0.10266982018947601, -0.2434280812740326, -0.07219044119119644, 0.32417404651641846, 0.24245432019233704, 0.26533862948417664, -0.1568370908498764, -0.13989345729351044, 0.07293371856212616, -0.14702974259853363, 0.41556423902511597, -0.11655987799167633, -0.12037422508001328, 0.3694630265235901, -0.3810006082057953, 0.40821269154548645, 0.3177170157432556, 0.06451459228992462, -0.07451338320970535, 0.30472812056541443, -0.24469660222530365, 0.05164613202214241, 0.007779413368552923, 0.08690774440765381, -0.1271294355392456, 0.33176979422569275, -0.09151473641395569, 0.17783792316913605, -0.03593450412154198, 0.532970666885376, -0.09439806640148163, 0.25456172227859497, -0.15274469554424286, -0.19702008366584778, 0.027611343190073967, 0.42649349570274353, 0.08075908571481705, -0.11451494693756104, 0.1710074543952942, -0.12888440489768982, -0.1758294701576233, 0.2758093476295471, 0.11890363693237305, 0.11022797226905823, 0.16510041058063507, 0.17313405871391296, 0.13116538524627686, 0.13358107209205627, -0.2187911719083786, 0.2529250979423523, -0.21582987904548645, 0.171828493475914, 0.3353058695793152, 0.16610932350158691, -0.002951317932456732, -0.43208763003349304, -0.028696978464722633, 0.21439900994300842, 0.1778082251548767, -0.06852638721466064, -0.099737249314785, -0.24677646160125732, -0.40813586115837097, -0.31347835063934326, -0.11854373663663864, 0.03713250532746315, 0.01724647358059883, -0.19682539999485016, 0.11412105709314346, -0.040704742074012756, -0.0076265959069132805, -0.2748717963695526, -0.3112749755382538, -0.19947712123394012, -0.2850930392742157, -0.17256568372249603, 0.005930251907557249, -0.4090847969055176, 0.1231616660952568, 0.14126476645469666, 0.059434521943330765, 0.35670003294944763, -0.3356066346168518, -0.08273760229349136, -0.22347445785999298, -0.07055414468050003, 0.2513357400894165, -0.06519783288240433, -0.15453602373600006, 0.022168485447764397, 0.20069803297519684, -0.22271735966205597, -0.1932855099439621, 0.015568266622722149, -0.12744435667991638, -0.1874832957983017, 0.014690929092466831, -0.2334837168455124, -0.15572021901607513, -0.15952734649181366, -0.6133765578269958, -0.47461938858032227, -0.48644155263900757, 0.059994861483573914, -0.1413521021604538, 0.19657450914382935, 0.39358124136924744, -0.20145325362682343, 0.16573810577392578, 0.13731810450553894, 0.1436544805765152, -0.20284822583198547, -0.026271799579262733, 0.11786209791898727, -0.3232530653476715, -0.45436930656433105, 0.11731822788715363, 0.023860804736614227, 0.41506704688072205, 0.16472220420837402, -0.30463993549346924, 0.3316362798213959, -0.032270900905132294, 0.12915293872356415, 0.09137997031211853, 0.14185936748981476, 0.49418339133262634, -0.0997108668088913, -0.002217075787484646, 0.029207156971096992, 0.11091909557580948, -0.006735574919730425, 0.22922217845916748, 0.4109457731246948, -0.2725360691547394, 0.15089207887649536, 0.16940580308437347, 0.3010316491127014, 0.39882031083106995, -0.23261411488056183, 0.6556064486503601, 0.32999294996261597, 0.1660475730895996, -0.07856099307537079, -0.22316007316112518, 0.4240542948246002, -0.02420262061059475, 0.05045248940587044, 0.39433953166007996, -0.16810819506645203, -0.5607061386108398, -0.11067624390125275, -0.416059285402298, -0.40698733925819397, -0.06559883058071136, -0.005862634163349867, 0.11797937005758286, 0.4066353440284729, 0.04121658205986023, 0.1797281950712204, 0.2586696743965149, -0.2891935408115387, 0.1588020920753479, 0.2221118062734604, 0.030702786520123482, 0.296225905418396, -0.0844784677028656, -0.13709968328475952, -0.713388979434967, 0.3157612681388855, 0.28924062848091125, 0.16818101704120636, -0.1471833884716034, 0.3811468482017517, 0.013209432363510132, -0.19391830265522003, 0.5401843786239624, -0.21462738513946533, 0.1172226145863533, 0.03856581449508667, 0.039467763155698776, -0.08228907734155655, 0.010347428731620312, 0.06700987368822098, 0.117646723985672, 0.422392338514328, 0.05895169824361801, -0.48400697112083435, -0.08813303709030151, -0.021805282682180405, 0.47672387957572937, 0.17085446417331696, -0.21849985420703888, -0.0499945729970932, -0.5328354239463806, -0.2335805594921112, 0.007856624200940132, 0.01804962195456028, 0.36885279417037964, -0.023413073271512985, -0.007778453640639782, 0.17834830284118652, 0.07187874615192413, 0.18671470880508423, 0.14257904887199402, 0.28001973032951355, 0.2922773063182831, 0.20065000653266907, 0.3297080099582672, 0.004378524608910084, 0.19219522178173065, 0.31830862164497375, -0.14868000149726868, 0.1402452439069748, -0.05302505940198898, 0.11649245768785477, 0.1367504596710205, 0.20459330081939697, 0.03013254515826702, -0.06275168806314468, -0.14156395196914673, -0.19799752533435822, 0.14650875329971313, 0.08352576196193695, 0.09638811647891998, 0.12574371695518494, -0.570375382900238, -0.38825830817222595, 0.27962741255760193, -0.3202507197856903, 0.15958143770694733, 0.15448129177093506, 0.30578118562698364, -0.3391076922416687, 0.25593245029449463, 0.07954607903957367, 0.7368470430374146, -0.040268704295158386, 0.07664331048727036, 0.028607245534658432, 0.07719883322715759, 0.2957967221736908, -0.33938464522361755, 0.17917893826961517, -0.24314026534557343, 0.11969905346632004, -0.0036813265178352594, 0.07773401588201523, -0.020391592755913734, 0.13655737042427063, -0.3911971151828766, 0.5633791089057922, 0.07773389667272568, -0.04482721909880638, 0.06428182870149612, 0.37384292483329773, -0.14197154343128204, -0.3766850233078003, -0.4003911316394806, 0.18190646171569824, -0.31791654229164124, 0.33057814836502075, -0.20887872576713562, -0.08868289738893509, 0.10623513162136078, -0.1021086648106575, -0.3304603099822998, 0.41570448875427246, -0.2829909324645996, 0.02536342479288578, -0.09548616409301758, -0.18039605021476746, 0.4980289340019226, 0.2474800944328308, 0.3305485248565674, 0.37445634603500366, -0.2370949387550354, 0.12063205242156982, 0.10322188585996628, -0.5300794839859009, 0.24470487236976624, 0.021627405658364296, 0.054735783487558365, -0.34007638692855835, -0.21754655241966248, 0.09308868646621704, -0.041183069348335266, -0.052540067583322525, 0.2623298764228821, -0.14253541827201843, -0.33368366956710815, 0.010511108674108982, -0.35495543479919434, 0.26264214515686035, -0.0046566869132220745, 0.03924984112381935, 0.12762637436389923, -0.08342679589986801, -0.17889603972434998, 0.11126828193664551, 0.1640383005142212, -0.21929241716861725, -0.09325605630874634, 0.3113943040370941, 0.1225602850317955, -0.3694091737270355, 0.47010746598243713, 0.2693340480327606, -0.24350859224796295, -0.19013327360153198, -0.6724624633789062, -0.2965882122516632, -0.3600967824459076, -0.008136792108416557, -0.0068631479516625404, 0.036296114325523376, -0.14320485293865204, 0.36694931983947754, -0.028917353600263596, -0.007344265002757311, 0.22492718696594238, -0.3883950114250183, -0.2859404683113098, 0.06967347860336304, -0.15974494814872742, 0.02857544645667076, 0.23872919380664825, 0.28289079666137695, 0.19142642617225647, 0.11299900710582733, -0.270911306142807, -0.04517956078052521, -0.37413159012794495, 0.07345512509346008, 0.2913357615470886, -0.10154338926076889, 0.3328818082809448, 0.11200205981731415, 0.10917001217603683, 0.2557429373264313, -0.25209635496139526, -0.209044948220253, -0.11032967269420624, 0.08477615565061569, 0.15797699987888336, 0.08173822611570358, 0.3228660821914673, -0.3832598924636841, -0.14949475228786469, -0.028481867164373398, 0.12609487771987915, 0.3018393814563751, -0.033936791121959686, 0.12603338062763214, 0.24066974222660065, 0.0628545731306076, -0.08676400780677795, 0.14244934916496277, 0.11671986430883408, 0.09449991583824158, -0.021136272698640823, 0.14237262308597565, 0.06792045384645462, -0.08107243478298187, -0.143630251288414, -0.014486165717244148, 0.11095019429922104, 0.049967050552368164, 0.15437142550945282, -0.036877378821372986, 0.10275093466043472, -0.005485357716679573, -0.04549406096339226, 0.007428979966789484, -0.02345200441777706, -0.035800378769636154, 0.30458277463912964, 0.20666128396987915, -0.2701687812805176, 0.17608065903186798, -0.018422754481434822, 0.17215774953365326, 0.004592115990817547, 0.013946861028671265, 0.32610660791397095, -0.29987072944641113, 0.19545277953147888, 0.09732852131128311, 0.35909533500671387, -0.13008570671081543, -0.15505194664001465, -0.028224661946296692, 0.06127512827515602, 0.04152785614132881, 0.22455325722694397, -0.14635682106018066, 0.00869812536984682, 0.13488896191120148, -0.08931276947259903, -0.01167807262390852, 0.27344587445259094, 0.2953782081604004, -0.06546103209257126, -0.21158713102340698, 0.007216296158730984, 0.30115532875061035, 0.29554587602615356, 0.22885280847549438, 0.11974615603685379, 0.19592079520225525, 0.17329686880111694, -0.20004911720752716, -0.32755163311958313, 0.3751677870750427, -0.07891703397035599, 0.03933069854974747, -0.19251930713653564, -0.21869312226772308, -0.08184538036584854, 0.13606040179729462, -0.18722616136074066, -0.06594279408454895, 0.1962611824274063, 0.21847905218601227, -0.2186945080757141, -0.4077441692352295, -0.04353271424770355, 0.016044579446315765, 0.1576141119003296, -0.2169870287179947, 0.49915534257888794, 0.2705332040786743, -0.0546603724360466, -0.16325189173221588, 0.3140857517719269, 0.4485446810722351, 0.20072564482688904, -0.12844952940940857, 0.09777586162090302, 0.12251979112625122, -0.010440761223435402, -0.036438342183828354, 0.4297574460506439, 0.345233678817749, 0.11359104514122009, 0.2829175591468811, 0.10922480374574661, -0.22057034075260162, -0.09852924942970276, 0.09332321584224701, -0.05672194063663483, 0.12509043514728546, 0.4512259364128113, 0.004476950503885746, 0.07499133795499802, -0.3351686894893646, 0.04853856563568115, -0.4805064797401428, 0.43050533533096313, 0.49336767196655273, -0.19419148564338684, -0.012612631544470787, -0.10424789786338806, 0.08645517379045486, 0.09255839884281158, 0.32883983850479126, 0.27446797490119934, 0.4959401488304138, -0.41771838068962097, -0.3438931405544281, -0.3343038558959961, 0.18633458018302917, -0.29574859142303467, 0.17978422343730927, -0.25193890929222107, 0.05943410098552704, 0.1434573084115982, 0.10078195482492447, -0.12724940478801727, 0.3666923940181732, 0.18580909073352814, 0.22374534606933594, -0.1296079456806183, 0.11506598442792892, -0.16300849616527557, 0.007101696450263262, -0.0068414160050451756, -0.4851981997489929, -0.1454271525144577, -0.07270505279302597, 0.06646901369094849, -0.2589693069458008, 0.08463361114263535, 0.04418259114027023, -0.15183012187480927, 0.13502173125743866, 0.027905741706490517, 0.6574349403381348, -0.23934002220630646, -0.19509434700012207, -0.2961316704750061, -0.2016223669052124, -0.1850348263978958, -0.028659509494900703, 0.09899348020553589, 0.35261720418930054, 0.06631570309400558, 0.1508641242980957, -0.15671277046203613, 0.4380100667476654, 0.1698620468378067, 0.34537237882614136, -0.1365317851305008, 0.10780969262123108, -0.3517179787158966, -0.12050862610340118, 0.04667675122618675, 0.5064763426780701, 0.02186567895114422, -0.1784386783838272, -0.2926492393016815, -0.5317479372024536, 0.5479220747947693, -0.8124216198921204, -0.2576378881931305, 0.07841791957616806, 0.09572107344865799, -0.011472456157207489, -0.2659354507923126, -0.526742696762085, 0.255278617143631, 0.09849082678556442, -0.07824129611253738, -0.3275490701198578, 0.11571670323610306, -0.09428242594003677, -0.0646759569644928, -0.052635107189416885, 0.3443562984466553, 0.18938615918159485, -0.2799617350101471, -0.19547466933727264, -0.31563854217529297 ]