html_url
stringlengths 48
51
| title
stringlengths 5
268
| comments
stringlengths 70
51.8k
| body
stringlengths 0
29.8k
| comment_length
int64 16
1.52k
| text
stringlengths 164
54.1k
| embeddings
sequence |
---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/435 | ImportWarning for pyarrow 1.0.0 | This was fixed in #434
We'll do a release later this week to include this fix.
Thanks for reporting | The following PR raised ImportWarning at `pyarrow ==1.0.0` https://github.com/huggingface/nlp/pull/265/files | 19 | ImportWarning for pyarrow 1.0.0
The following PR raised ImportWarning at `pyarrow ==1.0.0` https://github.com/huggingface/nlp/pull/265/files
This was fixed in #434
We'll do a release later this week to include this fix.
Thanks for reporting | [
-0.08307576179504395,
-0.1102309599518776,
-0.08677288889884949,
-0.13964015245437622,
0.24311867356300354,
-0.2674662172794342,
0.33662158250808716,
0.3281989097595215,
-0.10447405278682709,
0.16092291474342346,
-0.04599067568778992,
0.21845564246177673,
-0.11118253320455551,
0.06283394992351532,
0.027580104768276215,
-0.2568039000034332,
0.09777063876390457,
0.23599110543727875,
0.005641095340251923,
-0.01694568246603012,
0.000462900847196579,
0.291273295879364,
-0.19472786784172058,
0.3622002601623535,
-0.23955313861370087,
0.02700680121779442,
0.0885712206363678,
0.12426480650901794,
-0.27903228998184204,
-0.5286543965339661,
0.19335755705833435,
-0.16319049894809723,
-0.07320469617843628,
-0.004034116864204407,
-0.00010106386616826057,
0.1438983678817749,
0.41793835163116455,
0.1709834188222885,
0.16104698181152344,
-0.018863961100578308,
0.4765137732028961,
-0.3481641113758087,
0.31622040271759033,
0.0011411309242248535,
-0.21272704005241394,
-0.38747790455818176,
0.20128218829631805,
0.673988938331604,
0.2996216416358948,
0.053193818777799606,
0.3520936965942383,
0.5651537179946899,
0.30679479241371155,
0.21260567009449005,
0.39884260296821594,
-0.17212417721748352,
-0.05756857991218567,
0.2334618717432022,
0.09912709146738052,
-0.44532859325408936,
-0.22113284468650818,
0.10635685920715332,
-0.024403482675552368,
-0.09820769727230072,
0.014799974858760834,
-0.04806269332766533,
0.04874701797962189,
-0.10124094784259796,
-0.25333064794540405,
0.03156150132417679,
-0.12687119841575623,
-0.25483086705207825,
-0.11187393218278885,
-0.07827534526586533,
0.06063099205493927,
-0.4917186498641968,
0.25993573665618896,
0.2389288991689682,
-0.06394742429256439,
0.21546399593353271,
0.09594796597957611,
0.03264494612812996,
-0.17156054079532623,
0.13902108371257782,
0.08034065365791321,
0.5061998963356018,
0.032000571489334106,
-0.036581143736839294,
0.14152346551418304,
-0.12131160497665405,
-0.010536660440266132,
0.18067479133605957,
-0.06568042933940887,
-0.015071517787873745,
-0.055566515773534775,
-0.05177127942442894,
0.24172702431678772,
0.2598070800304413,
0.12693747878074646,
-0.1598723828792572,
-0.05395250767469406,
0.16683915257453918,
0.1308995634317398,
0.2279285490512848,
0.06294518709182739,
0.02827328070998192,
0.10082267224788666,
-0.303464412689209,
0.39839059114456177,
0.07914818823337555,
0.1498909890651703,
0.09879329800605774,
0.15991897881031036,
-0.3288704752922058,
0.05729788914322853,
-0.0595715194940567,
0.23229806125164032,
-0.15893584489822388,
-0.1830836683511734,
-0.1484583616256714,
-0.2489202320575714,
0.009677138179540634,
-0.09966427087783813,
0.2695368528366089,
-0.09730902314186096,
-0.019608721137046814,
0.09864497184753418,
0.26224005222320557,
-0.3504638671875,
-0.23327817022800446,
-0.25483351945877075,
0.06580384075641632,
-0.32515183091163635,
-0.09976515918970108,
0.1824343353509903,
-0.06334477663040161,
0.3893652856349945,
0.29990777373313904,
-0.01978970319032669,
0.13125203549861908,
-0.029319612309336662,
0.22581130266189575,
-0.006486333906650543,
0.22674135863780975,
0.004919309169054031,
-0.02798525243997574,
-0.046787943691015244,
-0.11390852928161621,
-0.06600985676050186,
0.07415854930877686,
0.056860074400901794,
-0.130145862698555,
-0.3839266002178192,
0.3116227984428406,
-0.20908144116401672,
-0.104519322514534,
0.028263837099075317,
0.051306113600730896,
0.12867386639118195,
-0.054870881140232086,
-0.011707894504070282,
-0.14568093419075012,
0.03930340334773064,
-0.10205487161874771,
-0.06989447772502899,
0.07305052876472473,
-0.1338864415884018,
-0.19446493685245514,
0.20429182052612305,
-0.4161699712276459,
0.2749916911125183,
0.3692954182624817,
-0.29702505469322205,
-0.07890882343053818,
-0.2009679228067398,
0.3247889280319214,
-0.02356385439634323,
-0.09669457376003265,
-0.18882009387016296,
0.02357635088264942,
-0.26683351397514343,
-0.03482702374458313,
0.07549384981393814,
-0.12176630645990372,
-0.20406962931156158,
0.07215059548616409,
0.0707327350974083,
0.39193063974380493,
0.12857381999492645,
0.2569901645183563,
-0.48706886172294617,
-0.25036561489105225,
0.15346106886863708,
0.003328360617160797,
-0.07070696353912354,
-0.24642685055732727,
-0.04041270166635513,
-0.1909307986497879,
0.3194948732852936,
-0.13725289702415466,
-0.03492394834756851,
0.04685400426387787,
0.06721272319555283,
0.06902580708265305,
-0.09616924822330475,
0.036653757095336914,
-0.1779848337173462,
0.021493256092071533,
-0.36161431670188904,
0.3930594325065613,
-0.14528417587280273,
-0.3226925730705261,
-0.078610360622406,
0.03590849041938782,
-0.15448427200317383,
-0.15567246079444885,
0.3084648549556732,
-0.05896115303039551,
-0.021510479971766472,
0.23131056129932404,
0.06030060723423958,
-0.16989420354366302,
-0.005838450044393539,
0.12544825673103333,
0.05185287818312645,
0.1411389410495758,
-0.38148927688598633,
-0.39119988679885864,
0.1973906308412552,
-0.011260680854320526,
0.14131301641464233,
0.0031074401922523975,
0.11312960833311081,
0.08957001566886902,
-0.19983099400997162,
0.3266763687133789,
-0.3180725574493408,
-0.05018891394138336,
0.1342686414718628,
-0.3729342818260193,
0.023428920656442642,
0.06518924236297607,
-0.17656207084655762,
-0.014842525124549866,
0.2517153024673462,
0.47276008129119873,
0.2811136543750763,
-0.14025947451591492,
-0.0036965832114219666,
-0.13842032849788666,
0.14024387300014496,
-0.12338869273662567,
0.09424839913845062,
-0.01796879991889,
0.05675361305475235,
0.1691511869430542,
0.061151277273893356,
-0.11070516705513,
-0.3336116075515747,
0.032867431640625,
0.3761788606643677,
0.03799870237708092,
0.19583472609519958,
0.006967213004827499,
-0.02811145782470703,
-0.13881707191467285,
0.23786556720733643,
-0.46691611409187317,
-0.015759244561195374,
0.27539023756980896,
0.020004160702228546,
0.2059600055217743,
-0.2243601530790329,
-0.41250336170196533,
0.04819022864103317,
0.060732752084732056,
-0.0026749861426651478,
0.1401379257440567,
0.41119295358657837,
-0.22799097001552582,
-0.777708113193512,
0.23537111282348633,
-0.08129435032606125,
0.00952188577502966,
-0.2907804250717163,
0.06646546721458435,
-0.29391539096832275,
-0.3391764461994171,
-0.07557496428489685,
-0.20500622689723969,
-0.35895782709121704,
-0.09814408421516418,
0.31008195877075195,
0.17550186812877655,
-0.2631776034832001,
0.31516537070274353,
0.3475990891456604,
-0.06424783170223236,
-0.07567906379699707,
-0.12023935467004776,
-0.11547912657260895,
-0.20510466396808624,
-0.2663136124610901,
0.1959461122751236,
0.06247035413980484,
0.04582750052213669,
0.16997624933719635,
-0.11398351192474365,
-0.06645816564559937,
0.012990333139896393,
-0.5971782803535461,
0.0656021311879158,
-0.21219377219676971,
0.12071485072374344,
0.19330735504627228,
0.11670182645320892,
-0.015575334429740906,
-0.2416057586669922,
0.22963127493858337,
-0.3196704387664795,
-0.4370691776275635,
-0.05985729768872261,
-0.15931493043899536,
0.10282615572214127,
-0.3726230263710022,
-0.15481406450271606,
-0.19046716392040253,
-0.31480672955513,
0.1847972869873047,
0.055941689759492874,
0.01616514101624489,
0.3104846179485321,
0.16408389806747437,
0.093373604118824,
-0.31759703159332275,
0.04697690159082413,
-0.024412432685494423,
-0.15497790277004242,
0.16934236884117126,
-0.22494110465049744,
-0.4008028209209442,
0.03340615704655647,
0.010663345456123352,
0.09757226705551147,
-0.31472593545913696,
-0.4104325771331787,
-0.31813740730285645,
-0.040393292903900146,
0.5853019952774048,
0.3685544431209564,
-0.07700610160827637,
0.28994834423065186,
0.1316106766462326,
-0.29708895087242126,
-0.05238284543156624,
-0.3068108856678009,
0.03303583711385727,
-0.18842148780822754,
0.02313431352376938,
-0.16921460628509521,
0.08826000988483429,
-0.0709628164768219,
0.6686912178993225,
-0.37556466460227966,
-0.12220042943954468,
0.5347419381141663,
-0.04926140606403351,
0.35750719904899597,
0.016933970153331757,
-0.016253456473350525,
0.06151280179619789,
0.06712158769369125,
0.2661391496658325,
0.1894720494747162,
-0.10995227843523026,
-0.4191841185092926,
-0.04548167809844017,
-0.4166478216648102,
-0.03615747392177582,
-0.22573892772197723,
-0.005376102402806282,
0.562857449054718,
-0.01406800001859665,
0.16471897065639496,
0.012068219482898712,
0.017396993935108185,
-0.2695157527923584,
0.2594314515590668,
0.0008520260453224182,
-0.1660766303539276,
-0.060648731887340546,
-0.12890870869159698,
-0.06384281814098358,
-0.31012269854545593,
0.057014528661966324,
0.23506510257720947,
-0.05708920955657959,
-0.024571985006332397,
-0.2583797872066498,
0.1342054009437561,
-0.10568058490753174,
0.40050339698791504,
0.2934621274471283,
0.16656440496444702,
0.21353977918624878,
0.07015285640954971,
-0.20364238321781158,
-0.17049087584018707,
-0.1556847095489502,
-0.021195583045482635,
0.38357120752334595,
0.05286063253879547,
-0.43895792961120605,
-0.17544254660606384,
0.3004764914512634,
0.28200966119766235,
0.0027457699179649353,
-0.015314999967813492,
-0.5284618139266968,
-0.21852359175682068,
-0.16316410899162292,
0.12464357912540436,
0.09851882606744766,
0.23085249960422516,
-0.183267742395401,
0.062419723719358444,
0.03809501975774765,
-0.11953467130661011,
-0.1824253350496292,
0.37105271220207214,
0.030995719134807587,
-0.13675658404827118,
-0.007447965443134308,
-0.08815351128578186,
-0.0357661172747612,
-0.057918377220630646,
0.3514460027217865,
0.04640790447592735,
-0.26051589846611023,
-0.12233167141675949,
0.22316573560237885,
0.05232341215014458,
0.17100918292999268,
0.005761969834566116,
0.19163131713867188,
-0.12438049912452698,
0.02815008908510208,
0.11987541615962982,
0.13905318081378937,
0.34975364804267883,
-0.03504842147231102,
0.2092646360397339,
0.2415168285369873,
0.3253236413002014,
-0.0578264519572258,
0.06410109996795654,
-0.033983275294303894,
0.23010452091693878,
-0.1437181681394577,
0.2209855020046234,
0.045165590941905975,
0.8207980394363403,
0.03303537517786026,
0.2702246308326721,
0.626153826713562,
-0.23622366786003113,
0.32509055733680725,
0.11724318563938141,
0.20002777874469757,
-0.3581175208091736,
0.00330489594489336,
0.26008686423301697,
-0.022862166166305542,
0.08475160598754883,
-0.11780934035778046,
0.018181782215833664,
0.028780566528439522,
0.11126561462879181,
-0.009280219674110413,
0.02485554851591587,
0.17817799746990204,
0.12078692764043808,
-0.012758124619722366,
-0.38651424646377563,
0.18476593494415283,
-0.009846039116382599,
0.2434544712305069,
-0.17259320616722107,
-0.3018134832382202,
0.2809738516807556,
-0.34565824270248413,
0.004491209983825684,
0.3744015097618103,
0.01781979762017727,
0.10272805392742157,
0.2606959342956543,
-0.2044040858745575,
-0.11828331649303436,
0.08586214482784271,
-0.016632959246635437,
-0.09522867202758789,
-0.11010466516017914,
0.3050875961780548,
0.072700634598732,
-0.25838732719421387,
-0.14428091049194336,
0.3166055977344513,
0.05602774769067764,
-0.24286222457885742,
-0.3549964427947998,
0.20141348242759705,
0.04693542420864105,
-0.02374676987528801,
-0.16755321621894836,
0.03150369971990585,
-0.015252426266670227,
-0.04136698320508003,
0.14999793469905853,
-0.04676148295402527,
0.10183899104595184,
-0.20626789331436157,
0.25746557116508484,
0.05576732009649277,
-0.021987194195389748,
-0.0316198393702507,
0.2130376398563385,
-0.17930272221565247,
-0.26444822549819946,
0.42023298144340515,
-0.10429448634386063,
0.06948191672563553,
0.33855384588241577,
0.3837929368019104,
-0.3116825222969055,
-0.2122027575969696,
-0.22779670357704163,
0.06192301586270332,
-0.57096928358078,
-0.007539286278188229,
0.2905117869377136,
-0.11692468076944351,
0.05153854191303253,
0.31122496724128723,
-0.01899039000272751,
-0.0013942644000053406,
0.05556575581431389,
-0.03047226369380951,
-0.11319124698638916,
0.1001550629734993,
-0.05738179758191109,
-0.016594666987657547,
0.4399379789829254,
0.43645647168159485,
0.14728346467018127,
-0.10395662486553192,
-0.41132962703704834,
0.06733235716819763,
-0.11255078762769699,
0.1381012201309204,
-0.2909933030605316,
-0.2318255603313446,
0.2360011637210846,
0.129011332988739,
0.2740168869495392,
0.0868186205625534,
-0.11107682436704636,
-0.33849623799324036,
-0.13229380548000336,
0.0018455684185028076,
-0.00488165020942688,
-0.07170991599559784,
0.1792272925376892,
0.22558926045894623,
0.08202757686376572,
0.12440255284309387,
0.30968907475471497,
-0.029508862644433975,
-0.15038879215717316,
0.28982093930244446,
0.14251811802387238,
0.03530947118997574,
0.14658284187316895,
-0.2073168009519577,
-0.14824673533439636,
0.2773075997829437,
0.1130542978644371,
-0.02862370014190674,
-0.1440720409154892,
0.026836790144443512,
0.2978822588920593,
-0.06214220076799393,
-0.11099635064601898,
0.17891156673431396,
0.13441699743270874,
-0.22989900410175323,
-0.3243173062801361,
-0.2257210910320282,
0.25010135769844055,
0.14451226592063904,
-0.2257966548204422,
-0.17278793454170227,
0.38195323944091797,
0.34309622645378113,
-0.49434328079223633,
-0.09078214317560196,
-0.03165261447429657,
0.13632382452487946,
0.08021789789199829,
0.035016611218452454,
-0.019927553832530975,
-0.09529775381088257,
0.196744903922081,
0.3701377809047699,
0.1514437347650528,
0.02235228568315506,
-0.22847191989421844,
0.0744994729757309,
-0.29800498485565186,
-0.12117163836956024,
0.4549672305583954,
0.14979895949363708,
0.24901032447814941,
0.024707552045583725,
-0.12158144265413284,
0.059812694787979126,
-0.29833900928497314,
0.17507027089595795,
-0.1613067090511322,
-0.1363922357559204,
-0.11715675890445709,
0.37931448221206665,
0.2954327464103699,
-0.1782369613647461,
0.18234026432037354,
0.4003167152404785,
0.2745025157928467,
-0.13605354726314545,
-0.05157838761806488,
0.605924129486084,
-0.184661865234375,
-0.0462750568985939,
-0.062254346907138824,
0.12437962740659714,
0.03859157860279083,
0.23326748609542847,
-0.03192314878106117,
0.049147430807352066,
0.20328950881958008,
0.06853019446134567,
-0.18216495215892792,
-0.35821443796157837,
0.010354682803153992,
0.08032351732254028,
0.21480533480644226,
-0.022547993808984756,
0.2984035313129425,
0.2142089307308197,
-0.19256362318992615,
-0.1964108645915985,
0.29846814274787903,
0.4337424039840698,
0.18355537950992584,
-0.05435996875166893,
-0.16055698692798615,
-0.20270568132400513,
0.032856546342372894,
-0.20842739939689636,
0.17026273906230927,
0.22158600389957428,
0.5038285851478577,
0.15465867519378662,
0.19079622626304626,
-0.3705565631389618,
0.03324044495820999,
0.16915413737297058,
-0.02470232918858528,
0.06291413307189941,
0.06388406455516815,
-0.02977103739976883,
-0.2653670012950897,
-0.3680838942527771,
-0.15423056483268738,
-0.38258785009384155,
0.26478976011276245,
0.09803900122642517,
0.26493725180625916,
-0.015040953643620014,
-0.4861195683479309,
0.14171940088272095,
0.18460100889205933,
0.6637270450592041,
0.20696525275707245,
0.2684611976146698,
-0.10883861780166626,
-0.09988821297883987,
-0.43463221192359924,
0.311491996049881,
-0.3065352737903595,
0.04218010604381561,
-0.05226972699165344,
0.021455397829413414,
-0.10136378556489944,
0.22825826704502106,
0.00456150621175766,
0.07578139752149582,
-0.09980499744415283,
-0.23230665922164917,
-0.3131771981716156,
0.317243367433548,
0.08761800825595856,
-0.26024407148361206,
0.10488618910312653,
-0.1456598937511444,
0.2333253175020218,
-0.4985126852989197,
0.25983962416648865,
-0.2432786077260971,
-0.009071722626686096,
-0.18881414830684662,
0.31205087900161743,
0.22287283837795258,
0.12769721448421478,
0.1513318121433258,
-0.013322977349162102,
-0.06283225864171982,
-0.14174747467041016,
-0.3774046301841736,
-0.24694521725177765,
0.14447999000549316,
-0.00852656364440918,
0.16544665396213531,
0.06907662004232407,
-0.11877413094043732,
-0.20459899306297302,
0.42956918478012085,
-0.004078928381204605,
0.07801574468612671,
0.1664200723171234,
0.25787198543548584,
0.11757778376340866,
-0.0706562027335167,
-0.2239866554737091,
0.051848914474248886,
0.020097844302654266,
-0.2055509388446808,
-0.4341716170310974,
-0.5926015377044678,
0.3476406931877136,
-0.4550382196903229,
0.05701904371380806,
0.06460561603307724,
0.1482395976781845,
0.1230560839176178,
-0.3943465054035187,
-0.47165796160697937,
0.30425405502319336,
0.10116862505674362,
0.19490912556648254,
-0.2898896038532257,
0.18866698443889618,
0.0005851825699210167,
-0.08152297139167786,
-0.05912543833255768,
0.11336752772331238,
0.23149433732032776,
-0.22647972404956818,
0.08931609988212585,
-0.17145100235939026
] |
https://github.com/huggingface/datasets/issues/435 | ImportWarning for pyarrow 1.0.0 | I dont know if the fix was made but the problem is still present :
Instaled with pip : NLP 0.3.0 // pyarrow 1.0.0
OS : archlinux with kernel zen 5.8.5 | The following PR raised ImportWarning at `pyarrow ==1.0.0` https://github.com/huggingface/nlp/pull/265/files | 31 | ImportWarning for pyarrow 1.0.0
The following PR raised ImportWarning at `pyarrow ==1.0.0` https://github.com/huggingface/nlp/pull/265/files
I dont know if the fix was made but the problem is still present :
Instaled with pip : NLP 0.3.0 // pyarrow 1.0.0
OS : archlinux with kernel zen 5.8.5 | [
-0.1463135927915573,
-0.08252312242984772,
-0.04976488649845123,
-0.08211414515972137,
0.15667128562927246,
-0.21917724609375,
0.11781047284603119,
0.41890662908554077,
-0.25025343894958496,
0.12906712293624878,
0.07649241387844086,
0.28078582882881165,
-0.20306460559368134,
-0.11709918081760406,
0.06094951182603836,
-0.1767270714044571,
0.12942129373550415,
0.2613930404186249,
-0.043257616460323334,
-0.011817671358585358,
-0.11813192814588547,
0.37940701842308044,
-0.35793960094451904,
0.44107890129089355,
-0.17414656281471252,
0.008025845512747765,
0.18473133444786072,
0.10682317614555359,
-0.27454519271850586,
-0.717674970626831,
0.3703356981277466,
-0.2556542456150055,
0.11873574554920197,
-0.14531782269477844,
-0.0001122297762776725,
0.10987032949924469,
0.4844830632209778,
0.1264277696609497,
0.20483560860157013,
-0.28691762685775757,
0.39342397451400757,
-0.7273046374320984,
0.321892112493515,
-0.09298145025968552,
-0.0015569068491458893,
-0.34266194701194763,
0.2967848479747772,
0.7822844982147217,
0.39966481924057007,
0.17587128281593323,
0.21563977003097534,
0.5306105613708496,
0.3595182001590729,
0.3860239088535309,
0.33814385533332825,
-0.23136283457279205,
-0.06789889186620712,
0.2951609790325165,
0.053192656487226486,
-0.5167246460914612,
-0.04438737779855728,
0.15093137323856354,
-0.18117663264274597,
-0.11926998198032379,
0.01690952107310295,
-0.15570464730262756,
0.29614779353141785,
-0.26038244366645813,
-0.38141077756881714,
0.08686354011297226,
-0.20230594277381897,
-0.24438872933387756,
-0.19004234671592712,
-0.096514031291008,
0.20095445215702057,
-0.44927436113357544,
0.3753639757633209,
0.2514260411262512,
-0.09266361594200134,
0.263877272605896,
0.10204920172691345,
0.14376434683799744,
-0.20708052814006805,
0.2501842975616455,
0.16161923110485077,
0.7215542793273926,
0.17723460495471954,
0.1274005025625229,
0.17931777238845825,
-0.09065306931734085,
0.253327876329422,
0.15644918382167816,
-0.16776533424854279,
0.24138842523097992,
-0.09136153757572174,
-0.12017862498760223,
0.10222940891981125,
0.39620280265808105,
0.04922368377447128,
-0.1726314276456833,
-0.10694854706525803,
-0.03383052349090576,
0.2005794197320938,
0.1612655222415924,
0.1280684769153595,
-0.02609805017709732,
0.20302388072013855,
-0.23246608674526215,
0.2462064027786255,
0.15907426178455353,
0.14450938999652863,
0.07290562987327576,
-0.025189068168401718,
-0.38793066143989563,
0.14516592025756836,
-0.06616435199975967,
0.370758056640625,
-0.19803474843502045,
-0.25380486249923706,
-0.26392683386802673,
-0.3639075458049774,
0.019596310332417488,
-0.02194732055068016,
0.1275431513786316,
-0.11622001975774765,
0.1894853413105011,
0.05785307288169861,
0.19391632080078125,
-0.3054688274860382,
-0.18740038573741913,
-0.04253983870148659,
0.11297681927680969,
-0.35204842686653137,
-0.013547778129577637,
0.08328093588352203,
-0.12247799336910248,
0.497956782579422,
0.22464098036289215,
-0.15181471407413483,
0.0297388955950737,
0.07912474125623703,
0.10717150568962097,
0.03686026111245155,
0.26149025559425354,
-0.0684238001704216,
-0.017973003908991814,
0.0009731538593769073,
-0.08202556520700455,
-0.2350454032421112,
0.26387569308280945,
-0.013377062976360321,
-0.2735423445701599,
-0.46034005284309387,
0.20244552195072174,
-0.3389331102371216,
-0.12792541086673737,
0.18615534901618958,
0.06156390905380249,
0.17767414450645447,
-0.3524859547615051,
0.041945282369852066,
-0.38995200395584106,
0.12608902156352997,
0.013642232865095139,
-0.12447843700647354,
-0.04134899377822876,
-0.007040645927190781,
-0.1972954124212265,
-0.032097090035676956,
-0.42233380675315857,
0.39236634969711304,
0.36989477276802063,
-0.32517966628074646,
-0.02235908806324005,
-0.09786222875118256,
0.227903351187706,
0.2245873510837555,
-0.3489605784416199,
-0.3137606680393219,
0.05636373534798622,
-0.19939161837100983,
-0.11434636265039444,
0.24629387259483337,
-0.027254633605480194,
-0.1828136295080185,
-0.019140373915433884,
-0.040966786444187164,
0.3157663941383362,
0.08235716074705124,
0.1319958120584488,
-0.48625481128692627,
-0.25677505135536194,
0.1407623440027237,
-0.022390039637684822,
0.02371755987405777,
-0.15701135993003845,
-0.0441809818148613,
-0.04454202204942703,
0.34315168857574463,
-0.0166790671646595,
0.03396394103765488,
-0.01410716027021408,
0.01751665025949478,
0.11120632290840149,
-0.11989147961139679,
0.07799399644136429,
-0.013468258082866669,
-0.02267945371568203,
-0.5015805959701538,
0.368353933095932,
-0.19193868339061737,
-0.3551445007324219,
-0.10084006935358047,
-0.0070902276784181595,
-0.04473130777478218,
-0.10069219768047333,
0.1612117439508438,
-0.1429767906665802,
0.07151462137699127,
0.2534147799015045,
-0.006757665425539017,
-0.32599249482154846,
-0.025591468438506126,
0.10060746222734451,
0.0014614546671509743,
0.11086831986904144,
-0.36914217472076416,
-0.507037878036499,
0.028635725378990173,
0.20586168766021729,
0.20181259512901306,
0.11197740584611893,
0.09819498658180237,
-0.030325524508953094,
-0.3082159161567688,
0.28590747714042664,
-0.4791698753833771,
-0.1952313929796219,
0.11722765117883682,
-0.47695794701576233,
0.043651241809129715,
-0.014215856790542603,
-0.1687174290418625,
0.1005290076136589,
0.43609437346458435,
0.44999760389328003,
0.19650298357009888,
-0.0531034842133522,
-0.14988785982131958,
-0.054580576717853546,
0.14065270125865936,
-0.16405323147773743,
0.02596265636384487,
-0.0036243870854377747,
0.14699989557266235,
0.19470201432704926,
0.10014121234416962,
-0.010952869430184364,
-0.12981322407722473,
-0.12075493484735489,
0.39678987860679626,
0.06221086159348488,
0.055340349674224854,
0.030192967504262924,
0.012404002249240875,
-0.11788318306207657,
0.33874645829200745,
-0.35474008321762085,
0.0835559070110321,
0.30392447113990784,
-0.0718047022819519,
0.3368053734302521,
-0.18030649423599243,
-0.29058074951171875,
0.1546371877193451,
0.16772642731666565,
0.08243726193904877,
0.2134036421775818,
0.4092850387096405,
-0.1627025157213211,
-0.6508201360702515,
0.1368493139743805,
-0.06870406866073608,
0.15759585797786713,
-0.19141121208667755,
0.0635443776845932,
-0.2776794135570526,
-0.40181493759155273,
-0.18635155260562897,
-0.29300621151924133,
-0.33647850155830383,
-0.10615728795528412,
0.16844317317008972,
0.34113165736198425,
-0.07111464440822601,
0.32803231477737427,
0.33845630288124084,
-0.17547093331813812,
-0.24441689252853394,
-0.04817570000886917,
-0.1508708894252777,
-0.2504647970199585,
-0.37521955370903015,
0.06708280742168427,
0.20004528760910034,
0.1900671422481537,
0.16156844794750214,
-0.14503130316734314,
-0.22012169659137726,
0.0846724733710289,
-0.49073365330696106,
0.00757937878370285,
-0.24829594790935516,
0.19811300933361053,
0.19546812772750854,
-0.00946805626153946,
-0.12593230605125427,
-0.2910664975643158,
0.15336613357067108,
-0.3169592320919037,
-0.37137627601623535,
-0.1456781029701233,
-0.34502890706062317,
0.20035099983215332,
-0.30355891585350037,
-0.03708411008119583,
-0.4336916208267212,
-0.27298450469970703,
0.18493418395519257,
0.08836811780929565,
0.07821046561002731,
0.32213684916496277,
0.09230902045965195,
0.15174272656440735,
-0.2781137228012085,
-0.1642434298992157,
0.12563955783843994,
-0.06984953582286835,
0.19683462381362915,
-0.036219194531440735,
-0.22000570595264435,
0.1404716521501541,
-0.026115067303180695,
0.10262415558099747,
-0.230470672249794,
-0.4257999658584595,
-0.2739187777042389,
-0.028199253603816032,
0.6165578961372375,
0.24065032601356506,
-0.10698066651821136,
0.43140777945518494,
0.07985393702983856,
-0.15544480085372925,
0.015634775161743164,
-0.10812060534954071,
-0.019561253488063812,
-0.21965858340263367,
0.1145349070429802,
-0.013499375432729721,
0.16430509090423584,
0.028432879596948624,
0.7524278163909912,
-0.20219816267490387,
-0.0865357369184494,
0.5082695484161377,
-0.04274913668632507,
0.2506537139415741,
0.15850909054279327,
0.011621003970503807,
-0.07519030570983887,
0.24296332895755768,
0.15515750646591187,
0.01647394895553589,
-0.11867246776819229,
-0.31673774123191833,
0.10065896809101105,
-0.4192099869251251,
0.008110631257295609,
-0.07880768179893494,
-0.003751574084162712,
0.4223540425300598,
0.10174703598022461,
0.2647041976451874,
-0.10919378697872162,
-0.05164626985788345,
-0.41518518328666687,
0.18224087357521057,
0.13365419209003448,
-0.1440276801586151,
-0.004065165761858225,
-0.06609705090522766,
-0.3085956573486328,
-0.4389861822128296,
0.015116795897483826,
0.3585350215435028,
-0.0007140692323446274,
0.015640903264284134,
-0.13331446051597595,
0.28482580184936523,
-0.0649414211511612,
0.24608121812343597,
0.14472264051437378,
0.08270837366580963,
0.23157736659049988,
0.16171792149543762,
-0.24956490099430084,
-0.1933175027370453,
-0.11359407007694244,
-0.030791938304901123,
0.4878688156604767,
0.03402184695005417,
-0.31582316756248474,
-0.1914648860692978,
0.6278873682022095,
0.2776317596435547,
0.007830839604139328,
-0.15954376757144928,
-0.5531592965126038,
-0.3403337001800537,
-0.09450318664312363,
0.13572894036769867,
0.059588685631752014,
0.22822433710098267,
-0.08561605215072632,
0.14255644381046295,
-0.023329367861151695,
0.11384548991918564,
-0.24027462303638458,
0.27191421389579773,
0.030583344399929047,
-0.14174307882785797,
-0.08021420985460281,
-0.15515108406543732,
-0.2209053337574005,
0.004570256918668747,
0.26990807056427,
0.22858770191669464,
-0.2923700511455536,
-0.29407957196235657,
0.3749374449253082,
0.04009716212749481,
0.08916731178760529,
0.07625991851091385,
0.1906946450471878,
-0.13890314102172852,
0.027994781732559204,
0.1909879744052887,
0.010769665241241455,
0.3302236497402191,
0.009562497027218342,
0.20527847111225128,
0.20499244332313538,
0.3583037853240967,
0.07590752840042114,
0.020305290818214417,
0.11601518839597702,
0.06303678452968597,
-0.3131757080554962,
0.18937955796718597,
0.1192532479763031,
0.7727362513542175,
0.046887628734111786,
0.27681106328964233,
0.7808110117912292,
0.038121141493320465,
0.38216647505760193,
0.25577592849731445,
0.14067493379116058,
-0.31870120763778687,
0.06568124145269394,
0.1776505708694458,
-0.005766026675701141,
0.16087675094604492,
-0.10354359447956085,
-0.08716775476932526,
0.1506626307964325,
0.3170356750488281,
-0.10861118137836456,
0.1454940289258957,
0.17819470167160034,
-0.1200658306479454,
0.013112787157297134,
-0.45513662695884705,
0.0432027205824852,
-0.07286639511585236,
0.34113767743110657,
-0.17381352186203003,
-0.30980944633483887,
0.26176586747169495,
-0.24209804832935333,
-0.06314855813980103,
0.2948921322822571,
0.07290256768465042,
0.1800822615623474,
0.1867472380399704,
-0.09796634316444397,
-0.01696293242275715,
0.22307969629764557,
-0.00470346212387085,
-0.16083787381649017,
-0.02435646392405033,
0.22523300349712372,
0.07776215672492981,
-0.3879626989364624,
-0.0755184218287468,
0.3331823945045471,
0.05397234112024307,
-0.27304425835609436,
-0.38422122597694397,
0.11627829074859619,
0.00476662814617157,
0.02265182137489319,
-0.05306391417980194,
-0.009461097419261932,
0.04676271602511406,
0.09045271575450897,
0.0458836667239666,
-0.06030796468257904,
0.05284491553902626,
-0.12393732368946075,
0.17231889069080353,
-0.008558474481105804,
-0.07097174972295761,
-0.02104908972978592,
0.053756579756736755,
-0.37237122654914856,
-0.10130766034126282,
0.39566680788993835,
0.017361797392368317,
0.08255670219659805,
0.5533760786056519,
0.1342071294784546,
-0.1725980043411255,
-0.16856274008750916,
0.08882079273462296,
-0.12049341201782227,
-0.5595659613609314,
-0.06490818411111832,
0.39159008860588074,
0.005368411540985107,
0.0524308942258358,
0.3142744302749634,
0.17299574613571167,
0.0728258565068245,
-0.14096415042877197,
-0.15776273608207703,
-0.1599024534225464,
0.23119758069515228,
-0.030348557978868484,
-0.22180379927158356,
0.3306165933609009,
0.43561798334121704,
0.1888480931520462,
-0.24541616439819336,
-0.2971187233924866,
0.024344654753804207,
-0.13341698050498962,
0.22125990688800812,
-0.24712824821472168,
-0.10504112392663956,
0.0576600655913353,
0.08808940649032593,
0.11661423742771149,
0.035803623497486115,
-0.05574952811002731,
-0.23652228713035583,
-0.18903625011444092,
0.0993034765124321,
0.08744510263204575,
-0.17119061946868896,
0.032906901091337204,
0.14433352649211884,
0.1743556708097458,
0.12582048773765564,
-0.025264859199523926,
0.026315487921237946,
-0.07805795967578888,
0.35053694248199463,
0.15152175724506378,
0.1835596263408661,
-0.08832298219203949,
-0.04336610436439514,
-0.3393915295600891,
0.2155546396970749,
0.07555480301380157,
0.17423424124717712,
0.05594698712229729,
0.08062669634819031,
0.10382682085037231,
-0.223594069480896,
-0.13624350726604462,
0.046538643538951874,
0.06848122924566269,
-0.20911909639835358,
-0.3051455616950989,
-0.12131794542074203,
0.15999503433704376,
0.22683581709861755,
-0.2400154173374176,
-0.2193305492401123,
0.3959599733352661,
0.23510803282260895,
-0.3919549882411957,
0.025628140196204185,
-0.05907965824007988,
0.07321160286664963,
-0.11733263731002808,
-0.03128720074892044,
0.04472510889172554,
-0.21965721249580383,
0.2954947352409363,
0.2880699336528778,
0.14277441799640656,
-0.11839793622493744,
-0.11739371716976166,
0.20029610395431519,
-0.0627438873052597,
-0.036954719573259354,
0.4063515067100525,
0.046790286898612976,
0.3146166205406189,
-0.11460533738136292,
-0.12961873412132263,
0.2657228708267212,
-0.2911001145839691,
0.2943759262561798,
-0.34253424406051636,
-0.1696184128522873,
-0.22829590737819672,
0.3689379096031189,
0.24356308579444885,
-0.24195298552513123,
0.2854418456554413,
0.3730122148990631,
0.25428858399391174,
-0.11983325332403183,
0.035805314779281616,
0.6180188655853271,
-0.14890384674072266,
-0.12169668078422546,
-0.2572515606880188,
0.2055370807647705,
0.06190526485443115,
0.25561007857322693,
0.021298587322235107,
0.1901600956916809,
0.2496863305568695,
0.20222683250904083,
-0.25797247886657715,
-0.35246580839157104,
-0.051988162100315094,
0.3320549428462982,
0.20056000351905823,
-0.13076840341091156,
0.255277156829834,
0.1283193677663803,
-0.192466139793396,
-0.2567722797393799,
0.453080415725708,
0.6163254976272583,
0.2657212018966675,
0.10320228338241577,
-0.22096556425094604,
-0.2673630118370056,
0.07525762915611267,
-0.18730312585830688,
0.2475881725549698,
0.2774345278739929,
0.7746660113334656,
-0.010769376531243324,
0.09448076784610748,
-0.28119295835494995,
-0.0117214135825634,
0.15501686930656433,
-0.2454233169555664,
-0.014271262101829052,
-0.015977725386619568,
0.05520857870578766,
-0.3199709951877594,
-0.22739186882972717,
0.11109462380409241,
-0.3247711956501007,
0.39305785298347473,
0.09140843152999878,
0.3334454298019409,
-0.0036910641938447952,
-0.44678357243537903,
0.06859353929758072,
0.09602592885494232,
0.48245903849601746,
0.2509268522262573,
0.13222052156925201,
-0.2348383069038391,
-0.17131641507148743,
-0.5863730311393738,
0.23887166380882263,
-0.42932453751564026,
-0.06943710148334503,
0.1120380088686943,
-0.10984960943460464,
-0.3579773008823395,
0.2536032795906067,
-0.12136504054069519,
0.15745465457439423,
-0.11950282007455826,
-0.2146398425102234,
-0.18706603348255157,
0.30279111862182617,
0.2191268503665924,
-0.23421931266784668,
-0.0289157647639513,
-0.25435036420822144,
0.2548312842845917,
-0.5901123285293579,
0.08147973567247391,
-0.23192857205867767,
-0.03426608443260193,
-0.0690835639834404,
0.5230576395988464,
0.1959623396396637,
0.19450324773788452,
0.3007862865924835,
0.08615744858980179,
0.1274980753660202,
-0.1984213888645172,
-0.3919107913970947,
-0.3851023316383362,
0.2205193042755127,
-0.07965897023677826,
0.15767452120780945,
-0.14546902477741241,
-0.08244620263576508,
-0.2672024965286255,
0.43862399458885193,
-0.1976340115070343,
0.03266749903559685,
0.27483007311820984,
0.1524992287158966,
0.04484809935092926,
0.07655065506696701,
-0.14383840560913086,
-0.014223933219909668,
0.09465917199850082,
-0.19707606732845306,
-0.5314705967903137,
-0.4598422348499298,
0.20829623937606812,
-0.5019975900650024,
0.05285179242491722,
0.020666174590587616,
0.23187944293022156,
0.12145019322633743,
-0.4393998980522156,
-0.4035779535770416,
0.1622241735458374,
0.2716170847415924,
0.22007393836975098,
-0.16768772900104523,
0.24313707649707794,
0.19530898332595825,
0.02469860389828682,
-0.012545421719551086,
-0.14467117190361023,
0.12019607424736023,
-0.3154442310333252,
0.1479802280664444,
-0.2379942238330841
] |
https://github.com/huggingface/datasets/issues/433 | How to reuse functionality of a (generic) dataset? | Hi @ArneBinder, we have a few "generic" datasets which are intended to load data files with a predefined format:
- csv: https://github.com/huggingface/nlp/tree/master/datasets/csv
- json: https://github.com/huggingface/nlp/tree/master/datasets/json
- text: https://github.com/huggingface/nlp/tree/master/datasets/text
You can find more details about this way to load datasets here in the documentation: https://huggingface.co/nlp/loading_datasets.html#from-local-files
Maybe your brat loading script could be shared in a similar fashion? | I have written a generic dataset for corpora created with the Brat annotation tool ([specification](https://brat.nlplab.org/standoff.html), [dataset code](https://github.com/ArneBinder/nlp/blob/brat/datasets/brat/brat.py)). Now I wonder how to use that to create specific dataset instances. What's the recommended way to reuse formats and loading functionality for datasets with a common format?
In my case, it took a bit of time to create the Brat dataset and I think others would appreciate to not have to think about that again. Also, I assume there are other formats (e.g. conll) that are widely used, so having this would really ease dataset onboarding and adoption of the library. | 56 | How to reuse functionality of a (generic) dataset?
I have written a generic dataset for corpora created with the Brat annotation tool ([specification](https://brat.nlplab.org/standoff.html), [dataset code](https://github.com/ArneBinder/nlp/blob/brat/datasets/brat/brat.py)). Now I wonder how to use that to create specific dataset instances. What's the recommended way to reuse formats and loading functionality for datasets with a common format?
In my case, it took a bit of time to create the Brat dataset and I think others would appreciate to not have to think about that again. Also, I assume there are other formats (e.g. conll) that are widely used, so having this would really ease dataset onboarding and adoption of the library.
Hi @ArneBinder, we have a few "generic" datasets which are intended to load data files with a predefined format:
- csv: https://github.com/huggingface/nlp/tree/master/datasets/csv
- json: https://github.com/huggingface/nlp/tree/master/datasets/json
- text: https://github.com/huggingface/nlp/tree/master/datasets/text
You can find more details about this way to load datasets here in the documentation: https://huggingface.co/nlp/loading_datasets.html#from-local-files
Maybe your brat loading script could be shared in a similar fashion? | [
-0.16599495708942413,
-0.19047501683235168,
0.11394299566745758,
0.38088858127593994,
0.21837157011032104,
-0.004778183996677399,
0.18851058185100555,
0.11226725578308105,
-0.1110890805721283,
-0.21326880156993866,
-0.1955660730600357,
0.28855201601982117,
-0.039795417338609695,
0.5394517779350281,
0.19263149797916412,
-0.13461172580718994,
-0.21173566579818726,
0.21866178512573242,
-0.11622877418994904,
-0.026285242289304733,
0.03940883278846741,
-0.19431619346141815,
0.06868313252925873,
-0.11595053970813751,
-0.37026384472846985,
0.131892591714859,
-0.2384287714958191,
-0.017926499247550964,
0.25922855734825134,
-0.23462767899036407,
0.5442938208580017,
0.3445177674293518,
0.45950281620025635,
0.25234895944595337,
-0.00012519613665062934,
0.03301607817411423,
-0.039184994995594025,
-0.14482833445072174,
-0.29244744777679443,
-0.12559311091899872,
-0.21343541145324707,
-0.22338896989822388,
0.08980283886194229,
-0.24378302693367004,
-0.32223424315452576,
-0.3877207040786743,
0.1589093953371048,
-0.5658189058303833,
0.45745956897735596,
-0.09784504026174545,
0.030662430450320244,
-0.080668605864048,
-0.20104509592056274,
-0.10277746617794037,
-0.12744563817977905,
0.399533212184906,
-0.004882745444774628,
0.40215885639190674,
0.6236603260040283,
0.3071169853210449,
0.114258773624897,
0.01861642114818096,
0.1892261505126953,
0.09230443835258484,
0.29610371589660645,
-0.1304032951593399,
-0.03211553394794464,
0.037383243441581726,
0.03519200533628464,
0.37314167618751526,
0.9288985133171082,
-0.38710084557533264,
-0.057318590581417084,
-0.10395048558712006,
-0.0022314973175525665,
-0.2916264235973358,
-0.2740897834300995,
0.1782117336988449,
0.17065319418907166,
0.1169879138469696,
-0.28532108664512634,
-0.34645938873291016,
-0.29748618602752686,
0.12132114171981812,
0.29557371139526367,
0.024734631180763245,
-0.0860801413655281,
0.2227662205696106,
-0.20298175513744354,
-0.0876893624663353,
0.002840336412191391,
-0.24094870686531067,
-0.15466156601905823,
0.04819749668240547,
0.12506653368473053,
-0.12669339776039124,
-0.4318881630897522,
0.12427805364131927,
0.3226203918457031,
0.43858569860458374,
0.3070443868637085,
0.2488364279270172,
-0.34757155179977417,
0.054390404373407364,
0.43373072147369385,
0.07278743386268616,
0.3920849859714508,
0.27551591396331787,
0.08987528830766678,
0.21741722524166107,
-0.4256955683231354,
-0.16050314903259277,
-0.4732806086540222,
0.40963634848594666,
0.282802015542984,
-0.04784010350704193,
0.025860603898763657,
-0.24131841957569122,
-0.005771387368440628,
-0.05537950247526169,
-0.31466999650001526,
-0.17108602821826935,
0.22007325291633606,
0.07878122478723526,
-0.12681949138641357,
0.19432294368743896,
-0.07608988881111145,
0.254078209400177,
-0.060547806322574615,
-0.33722880482673645,
0.007238074671477079,
0.03850172087550163,
-0.33244723081588745,
0.17061829566955566,
0.32771730422973633,
-0.4035727381706238,
0.20550104975700378,
0.30746808648109436,
-0.14984557032585144,
-0.11529852449893951,
0.3684358298778534,
0.1104317456483841,
-0.28155577182769775,
-0.509132981300354,
-0.15930770337581635,
0.09367821365594864,
0.2187216579914093,
0.15013305842876434,
-0.3380342721939087,
0.03354960307478905,
-0.12402769178152084,
-0.3322887420654297,
-0.13012459874153137,
0.0158544834703207,
-0.2962241768836975,
0.03134864196181297,
-0.10646576434373856,
0.4295429587364197,
-0.0012111663818359375,
-0.35598236322402954,
-0.21097970008850098,
-0.10439912974834442,
-0.29143795371055603,
-0.06807924807071686,
0.1657024621963501,
0.25905871391296387,
-0.5212161540985107,
-0.12868976593017578,
-0.11514265090227127,
0.0005078744143247604,
0.4149297773838043,
0.24992342293262482,
-0.41696226596832275,
0.21721211075782776,
-0.12380589544773102,
-0.18360552191734314,
0.45533397793769836,
-0.07979540526866913,
-0.010838968679308891,
-0.12291929125785828,
0.20099176466464996,
0.16298291087150574,
0.08261719346046448,
0.0667768120765686,
0.1893795132637024,
-0.24760253727436066,
-0.34427011013031006,
0.5017469525337219,
0.10475191473960876,
-0.24573230743408203,
-0.07677209377288818,
-0.21225765347480774,
0.11834999918937683,
0.03983665630221367,
-0.23081021010875702,
0.13012927770614624,
0.0850553885102272,
0.2706218361854553,
0.020123865455389023,
-0.24455568194389343,
0.11472359299659729,
-0.13402771949768066,
0.02102096937596798,
0.3941360116004944,
0.10710110515356064,
-0.24272647500038147,
-0.5016248822212219,
0.1725223958492279,
-0.34412315487861633,
-0.27799633145332336,
0.5025935769081116,
-0.5051969289779663,
-0.37563714385032654,
-0.2438971996307373,
-0.14941729605197906,
-0.02312222123146057,
0.011769011616706848,
0.5268940925598145,
0.10758213698863983,
-0.079383984208107,
-0.10466369986534119,
0.11273340880870819,
-0.11624479293823242,
-0.020603273063898087,
-0.09465089440345764,
0.2827683091163635,
0.13378313183784485,
0.032741729170084,
0.08084997534751892,
0.5369933843612671,
0.039151936769485474,
-0.05223311856389046,
0.16951000690460205,
0.2841658294200897,
0.1377078890800476,
0.17230668663978577,
0.08901788294315338,
0.11356095224618912,
0.12533460557460785,
0.12432441115379333,
0.41573503613471985,
-0.06233929470181465,
0.3338621258735657,
-0.14368075132369995,
-0.4933604896068573,
0.2344052791595459,
0.0853983610868454,
0.0032410472631454468,
0.09422813355922699,
-0.09903496503829956,
0.12699022889137268,
-0.11948855221271515,
-0.16381734609603882,
-0.11604949831962585,
-0.1618511825799942,
0.16686303913593292,
-0.04906180873513222,
0.33707311749458313,
-0.31860747933387756,
-0.05876927822828293,
0.23349632322788239,
-0.16766689717769623,
0.21270498633384705,
-0.12482968717813492,
-0.17896780371665955,
-0.11506878584623337,
0.37555235624313354,
-0.16962970793247223,
0.08149255812168121,
0.05105514079332352,
0.2505187690258026,
-0.009339330717921257,
-0.07317353039979935,
0.059673868119716644,
0.2454489767551422,
-0.1996549814939499,
0.19396889209747314,
-0.20380952954292297,
0.12295301258563995,
0.07256980240345001,
0.04029175639152527,
-0.05329161137342453,
0.2882683575153351,
0.03535185754299164,
-0.10955693572759628,
0.17360623180866241,
-0.7263832092285156,
-0.29554909467697144,
-0.36417946219444275,
0.030819106847047806,
0.02209639921784401,
0.03434891253709793,
-0.2832489609718323,
0.05230574309825897,
0.129351407289505,
0.1510516256093979,
0.10382644832134247,
0.521967351436615,
-0.3055051267147064,
-0.08181753009557724,
0.05441135913133621,
-0.32738420367240906,
-0.3867364525794983,
0.013374555855989456,
0.45937323570251465,
0.3856516182422638,
0.48696428537368774,
-0.020383303984999657,
0.07977566123008728,
-0.42135265469551086,
-0.22472694516181946,
0.20085830986499786,
0.22267268598079681,
-0.07481453567743301,
0.17452040314674377,
0.016682766377925873,
-0.3718520402908325,
-0.28647536039352417,
0.19825834035873413,
0.1177976131439209,
0.216082364320755,
-0.10235034674406052,
-0.48042061924934387,
0.164037823677063,
-0.17671528458595276,
-0.04174988716840744,
-0.07909207046031952,
-0.20076008141040802,
0.285194456577301,
-0.005826815962791443,
-0.030238762497901917,
0.37051868438720703,
-0.2798818051815033,
0.20288506150245667,
-0.11043846607208252,
0.28729528188705444,
-0.239732027053833,
-0.24744513630867004,
0.26289430260658264,
-0.14475150406360626,
-0.14902886748313904,
-0.14190718531608582,
-0.33198481798171997,
0.15676075220108032,
0.5356478691101074,
-0.24688151478767395,
-0.393258273601532,
-0.10057537257671356,
-0.21456477046012878,
0.2922901511192322,
0.2270689606666565,
0.08910760283470154,
0.008877892047166824,
0.16338029503822327,
-0.0381372831761837,
-0.11594919860363007,
0.24373289942741394,
-0.08338692784309387,
0.16441094875335693,
0.45089831948280334,
0.04242650046944618,
0.2240002155303955,
0.3212420344352722,
0.21811725199222565,
-0.4716590344905853,
0.4767281711101532,
-0.10400345176458359,
0.42643246054649353,
0.03220297396183014,
0.049423664808273315,
0.24937501549720764,
-0.09989559650421143,
0.11824409663677216,
0.22403821349143982,
0.019833242520689964,
0.1488361358642578,
-0.14245237410068512,
0.08322262763977051,
-0.06747713685035706,
-0.4802442789077759,
0.1267700046300888,
-0.2630290687084198,
0.5065644979476929,
0.20040978491306305,
-0.16664275527000427,
-0.28212666511535645,
0.011812271550297737,
0.20481468737125397,
0.11156454682350159,
0.15186931192874908,
0.11141428351402283,
-0.39225760102272034,
0.11459087580442429,
0.17443466186523438,
0.5108851194381714,
0.0906025767326355,
0.02785259485244751,
0.21188639104366302,
0.00013763085007667542,
-0.005502708256244659,
0.06444061547517776,
-0.010715991258621216,
-0.25850996375083923,
0.06176210939884186,
0.01705029234290123,
-0.23409360647201538,
-0.31299570202827454,
0.005186740309000015,
-0.14821071922779083,
0.21566742658615112,
0.061383794993162155,
0.09373123198747635,
-0.5858942866325378,
-0.11343451589345932,
0.3056800663471222,
0.4081915616989136,
-0.10276471078395844,
0.15593013167381287,
0.24475891888141632,
-0.08407148718833923,
-0.34235960245132446,
-0.12070634216070175,
-0.22209672629833221,
0.10915915668010712,
0.0774841234087944,
0.10686135292053223,
-0.4060516357421875,
0.1789984107017517,
0.3230229318141937,
0.14360173046588898,
0.5515432357788086,
0.1673402637243271,
0.10250315070152283,
0.14226698875427246,
0.06296806037425995,
0.12545661628246307,
0.5182175040245056,
-0.27434149384498596,
-0.48754578828811646,
-0.11233269423246384,
0.05273239687085152,
0.3552325367927551,
0.13350901007652283,
0.2686713635921478,
-0.2644346058368683,
-0.2075328379869461,
-0.3050483465194702,
-0.24659651517868042,
0.28150102496147156,
-0.021446356549859047,
-0.008953912183642387,
-0.4367780089378357,
-1.0036545991897583,
0.17732661962509155,
0.23417536914348602,
-0.022163748741149902,
0.19600626826286316,
0.04429582133889198,
-0.05616282671689987,
0.08397135138511658,
0.1482163667678833,
0.8185903429985046,
-0.23422469198703766,
0.2623121738433838,
0.2913031578063965,
0.29998666048049927,
0.6729316115379333,
-0.15923172235488892,
-0.23362116515636444,
-0.31550633907318115,
0.07766448706388474,
0.012422258034348488,
-0.05489068105816841,
0.4027075171470642,
0.2620362341403961,
-0.1770494282245636,
0.3238629698753357,
0.23287652432918549,
0.41491618752479553,
0.04721494019031525,
0.206234872341156,
-0.42156317830085754,
-0.26400721073150635,
0.000739075243473053,
-0.02666514925658703,
-0.3107631206512451,
-0.022258996963500977,
-0.2223701775074005,
0.13190679252147675,
0.17689767479896545,
0.10927018523216248,
-0.28934115171432495,
-0.06797724217176437,
-0.2111089676618576,
0.015395952388644218,
-0.1433979868888855,
-0.4598436951637268,
0.4378582239151001,
0.4143344461917877,
0.26069700717926025,
0.2978546917438507,
-0.12508562207221985,
0.03519357368350029,
-0.13675060868263245,
-0.0574595145881176,
-0.2723393440246582,
0.059876494109630585,
0.21516916155815125,
0.1179761216044426,
-0.04621618986129761,
0.12319527566432953,
0.36750686168670654,
0.15010780096054077,
-0.19399301707744598,
-0.20788942277431488,
0.3192482590675354,
-0.347146600484848,
-0.2080499231815338,
0.11361584812402725,
0.011693336069583893,
-0.00004798173904418945,
-0.03545133024454117,
0.21707086265087128,
-0.058596909046173096,
0.03659268468618393,
-0.07997958362102509,
0.05063106119632721,
-0.011811856180429459,
-0.2164817750453949,
0.2862480878829956,
-0.24482817947864532,
0.3801535665988922,
0.053438711911439896,
0.09602624177932739,
-0.12397629022598267,
0.15428900718688965,
0.20045161247253418,
-0.35355284810066223,
-0.047287605702877045,
0.04814751073718071,
-0.20108143985271454,
0.12576064467430115,
0.24551984667778015,
-0.11044977605342865,
0.041625671088695526,
0.10671916604042053,
-0.27098995447158813,
-0.06219132989645004,
0.2552553713321686,
0.084793321788311,
0.39133507013320923,
0.03351885825395584,
-0.011419558897614479,
-0.23393450677394867,
-0.07638648897409439,
-0.17166104912757874,
0.2520008683204651,
0.2532106041908264,
0.2020977884531021,
-0.07556845992803574,
0.0658913105726242,
-0.08735644072294235,
-0.043743062764406204,
-0.03598160669207573,
0.11916501820087433,
-0.10458625108003616,
-0.03198815509676933,
-0.5068334341049194,
0.22024139761924744,
-0.020826000720262527,
-0.1808733195066452,
-0.06647833436727524,
-0.3200276494026184,
0.07483263313770294,
-0.44037821888923645,
0.17691068351268768,
0.04938333481550217,
-0.07204002141952515,
0.21946734189987183,
0.56476891040802,
0.05701952427625656,
-0.20973336696624756,
0.0016649216413497925,
0.1266690045595169,
0.4100189805030823,
0.3731321096420288,
0.08522474765777588,
-0.14603263139724731,
-0.11676841974258423,
0.0035766155924648046,
0.2336931824684143,
0.8808074593544006,
-0.042556047439575195,
0.2894621193408966,
0.1379091739654541,
0.06675456464290619,
0.1670597493648529,
0.36052584648132324,
0.4735853970050812,
-0.0906047597527504,
0.23890753090381622,
0.3097986876964569,
0.0023917164653539658,
-0.08278409391641617,
0.09480038285255432,
0.16943447291851044,
-0.089006707072258,
-0.13276030123233795,
0.35365861654281616,
0.18406285345554352,
0.20662394165992737,
-0.15263523161411285,
-0.3317941725254059,
0.1710803061723709,
0.05032975599169731,
0.44260603189468384,
0.27763432264328003,
0.012995045632123947,
-0.37711456418037415,
-0.03324034810066223,
0.38946691155433655,
0.2786751091480255,
-0.44819825887680054,
0.23740774393081665,
0.20647349953651428,
0.059775080531835556,
0.25432461500167847,
0.39619165658950806,
-0.5807129740715027,
-0.01080772653222084,
0.3840746283531189,
0.23699310421943665,
0.3525378406047821,
-0.09826652705669403,
0.29821041226387024,
0.10656886547803879,
0.02880641259253025,
-0.07409495115280151,
0.13535639643669128,
-0.024305500090122223,
-0.18850557506084442,
-0.22557955980300903,
-0.30661818385124207,
-0.2714517116546631,
0.005142517387866974,
-0.28446558117866516,
-0.03925926983356476,
-0.24307352304458618,
-0.005569636821746826,
0.09137985110282898,
-0.4289429485797882,
0.08852269500494003,
0.12821075320243835,
0.11098139733076096,
-0.027296017855405807,
0.17623914778232574,
0.26434001326560974,
-0.2772350013256073,
0.3040176331996918,
0.346922367811203,
0.15743832290172577,
0.001345515251159668,
-0.07842101156711578,
0.20379483699798584,
-0.20441515743732452,
0.13936708867549896,
-0.17199881374835968,
0.08421166241168976,
0.17829599976539612,
-0.3458363711833954,
0.2469339817762375,
-0.017918352037668228,
0.0593673512339592,
-0.08088052272796631,
-0.09425273537635803,
-0.22528915107250214,
-0.5750336647033691,
0.48382896184921265,
0.24679364264011383,
-0.17666953802108765,
0.19535303115844727,
0.13667254149913788,
-0.2376329004764557,
-0.4150581657886505,
0.33145004510879517,
0.3181430399417877,
-0.012796100229024887,
-0.17893268167972565,
-0.0029141865670681,
0.16676616668701172,
0.2657194435596466,
0.1069086492061615,
-0.10332302004098892,
-0.007626560516655445,
-0.3208790421485901,
-0.7505287528038025,
0.20088306069374084,
-0.15509653091430664,
-0.5893999338150024,
0.21481750905513763,
-0.1606939285993576,
0.2775498032569885,
0.1601589024066925,
-0.26836103200912476,
-0.005094542168080807,
0.11152448505163193,
-0.17543302476406097,
-0.13350807130336761,
-0.512163519859314,
-0.015177063643932343,
-0.03636568784713745,
-0.15689677000045776,
-0.36663585901260376,
-0.07446467876434326,
0.014649600721895695,
-0.13923925161361694,
-0.025369971990585327,
-0.167261004447937,
0.1073855459690094,
-0.4111950099468231,
0.07960915565490723,
0.08112124353647232,
0.31326669454574585,
0.21240532398223877,
-0.10553628206253052,
-0.2097654640674591,
0.07142166048288345,
0.020107105374336243,
0.34086552262306213,
-0.10468252003192902,
0.09429211914539337,
-0.5658504366874695,
-0.059827495366334915,
-0.2669113874435425,
-0.12381897866725922,
0.08611184358596802,
0.1740017682313919,
-0.12592798471450806,
-0.027449047192931175,
-0.3547942042350769,
-0.10464908927679062,
0.3244485557079315,
0.6672964692115784,
-0.2203669548034668,
0.03891324996948242,
-0.08828020840883255,
0.23423825204372406,
0.3661124110221863,
-0.21473565697669983,
-0.36552178859710693,
-0.19023855030536652,
0.07046712934970856,
-0.2707989513874054,
0.047245752066373825,
-0.35621315240859985,
0.12229756265878677,
0.2829146683216095,
-0.031133577227592468,
-0.10607926547527313,
-0.0718565434217453,
0.19539596140384674,
-0.18440186977386475,
-0.1983390897512436,
0.45959895849227905,
0.10700450092554092,
-0.12658953666687012,
-0.013008557260036469,
-0.13453049957752228
] |
https://github.com/huggingface/datasets/issues/433 | How to reuse functionality of a (generic) dataset? | > Maybe your brat loading script could be shared in a similar fashion?
@thomwolf that was also my first idea and I think I will tackle that in the next days. I separated the code and created a real abstract class `AbstractBrat` to allow to inherit from that (I've just seen that the dataset_loader loads the first non abstract class), now `Brat` is very similar in its functionality to https://github.com/huggingface/nlp/tree/master/datasets/text but inherits from `AbstractBrat`.
However, it is still not clear to me how to add a specific dataset (as explained in https://huggingface.co/nlp/add_dataset.html) to your repo that uses this format/abstract class, i.e. re-using the `features` entry of the `DatasetInfo` object and `_generate_examples()`. Again, by doing so, the only remaining entries/functions to define would be `_DESCRIPTION`, `_CITATION`, `homepage` and `_URL` (which is all copy-paste stuff) and `_split_generators()`.
In a lack of better ideas, I tried sth like below, but of course it does not work outside `nlp` (`AbstractBrat` is currently defined in [datasets/brat.py](https://github.com/ArneBinder/nlp/blob/5e81fb8710546ee7be3353a7f02a3045e9a8351e/datasets/brat/brat.py)):
```python
from __future__ import absolute_import, division, print_function
import os
import nlp
from datasets.brat.brat import AbstractBrat
_CITATION = """
@inproceedings{lauscher2018b,
title = {An argument-annotated corpus of scientific publications},
booktitle = {Proceedings of the 5th Workshop on Mining Argumentation},
publisher = {Association for Computational Linguistics},
author = {Lauscher, Anne and Glava\v{s}, Goran and Ponzetto, Simone Paolo},
address = {Brussels, Belgium},
year = {2018},
pages = {40–46}
}
"""
_DESCRIPTION = """\
This dataset is an extension of the Dr. Inventor corpus (Fisas et al., 2015, 2016) with an annotation layer containing
fine-grained argumentative components and relations. It is the first argument-annotated corpus of scientific
publications (in English), which allows for joint analyses of argumentation and other rhetorical dimensions of
scientific writing.
"""
_URL = "http://data.dws.informatik.uni-mannheim.de/sci-arg/compiled_corpus.zip"
class Sciarg(AbstractBrat):
VERSION = nlp.Version("1.0.0")
def _info(self):
brat_features = super()._info().features
return nlp.DatasetInfo(
# This is the description that will appear on the datasets page.
description=_DESCRIPTION,
# nlp.features.FeatureConnectors
features=brat_features,
# If there's a common (input, target) tuple from the features,
# specify them here. They'll be used if as_supervised=True in
# builder.as_dataset.
#supervised_keys=None,
# Homepage of the dataset for documentation
homepage="https://github.com/anlausch/ArguminSci",
citation=_CITATION,
)
def _split_generators(self, dl_manager):
"""Returns SplitGenerators."""
# TODO: Downloads the data and defines the splits
# dl_manager is a nlp.download.DownloadManager that can be used to
# download and extract URLs
dl_dir = dl_manager.download_and_extract(_URL)
data_dir = os.path.join(dl_dir, "compiled_corpus")
print(f'data_dir: {data_dir}')
return [
nlp.SplitGenerator(
name=nlp.Split.TRAIN,
# These kwargs will be passed to _generate_examples
gen_kwargs={
"directory": data_dir,
},
),
]
```
Nevertheless, many thanks for tackling the dataset accessibility problem with this great library! | I have written a generic dataset for corpora created with the Brat annotation tool ([specification](https://brat.nlplab.org/standoff.html), [dataset code](https://github.com/ArneBinder/nlp/blob/brat/datasets/brat/brat.py)). Now I wonder how to use that to create specific dataset instances. What's the recommended way to reuse formats and loading functionality for datasets with a common format?
In my case, it took a bit of time to create the Brat dataset and I think others would appreciate to not have to think about that again. Also, I assume there are other formats (e.g. conll) that are widely used, so having this would really ease dataset onboarding and adoption of the library. | 416 | How to reuse functionality of a (generic) dataset?
I have written a generic dataset for corpora created with the Brat annotation tool ([specification](https://brat.nlplab.org/standoff.html), [dataset code](https://github.com/ArneBinder/nlp/blob/brat/datasets/brat/brat.py)). Now I wonder how to use that to create specific dataset instances. What's the recommended way to reuse formats and loading functionality for datasets with a common format?
In my case, it took a bit of time to create the Brat dataset and I think others would appreciate to not have to think about that again. Also, I assume there are other formats (e.g. conll) that are widely used, so having this would really ease dataset onboarding and adoption of the library.
> Maybe your brat loading script could be shared in a similar fashion?
@thomwolf that was also my first idea and I think I will tackle that in the next days. I separated the code and created a real abstract class `AbstractBrat` to allow to inherit from that (I've just seen that the dataset_loader loads the first non abstract class), now `Brat` is very similar in its functionality to https://github.com/huggingface/nlp/tree/master/datasets/text but inherits from `AbstractBrat`.
However, it is still not clear to me how to add a specific dataset (as explained in https://huggingface.co/nlp/add_dataset.html) to your repo that uses this format/abstract class, i.e. re-using the `features` entry of the `DatasetInfo` object and `_generate_examples()`. Again, by doing so, the only remaining entries/functions to define would be `_DESCRIPTION`, `_CITATION`, `homepage` and `_URL` (which is all copy-paste stuff) and `_split_generators()`.
In a lack of better ideas, I tried sth like below, but of course it does not work outside `nlp` (`AbstractBrat` is currently defined in [datasets/brat.py](https://github.com/ArneBinder/nlp/blob/5e81fb8710546ee7be3353a7f02a3045e9a8351e/datasets/brat/brat.py)):
```python
from __future__ import absolute_import, division, print_function
import os
import nlp
from datasets.brat.brat import AbstractBrat
_CITATION = """
@inproceedings{lauscher2018b,
title = {An argument-annotated corpus of scientific publications},
booktitle = {Proceedings of the 5th Workshop on Mining Argumentation},
publisher = {Association for Computational Linguistics},
author = {Lauscher, Anne and Glava\v{s}, Goran and Ponzetto, Simone Paolo},
address = {Brussels, Belgium},
year = {2018},
pages = {40–46}
}
"""
_DESCRIPTION = """\
This dataset is an extension of the Dr. Inventor corpus (Fisas et al., 2015, 2016) with an annotation layer containing
fine-grained argumentative components and relations. It is the first argument-annotated corpus of scientific
publications (in English), which allows for joint analyses of argumentation and other rhetorical dimensions of
scientific writing.
"""
_URL = "http://data.dws.informatik.uni-mannheim.de/sci-arg/compiled_corpus.zip"
class Sciarg(AbstractBrat):
VERSION = nlp.Version("1.0.0")
def _info(self):
brat_features = super()._info().features
return nlp.DatasetInfo(
# This is the description that will appear on the datasets page.
description=_DESCRIPTION,
# nlp.features.FeatureConnectors
features=brat_features,
# If there's a common (input, target) tuple from the features,
# specify them here. They'll be used if as_supervised=True in
# builder.as_dataset.
#supervised_keys=None,
# Homepage of the dataset for documentation
homepage="https://github.com/anlausch/ArguminSci",
citation=_CITATION,
)
def _split_generators(self, dl_manager):
"""Returns SplitGenerators."""
# TODO: Downloads the data and defines the splits
# dl_manager is a nlp.download.DownloadManager that can be used to
# download and extract URLs
dl_dir = dl_manager.download_and_extract(_URL)
data_dir = os.path.join(dl_dir, "compiled_corpus")
print(f'data_dir: {data_dir}')
return [
nlp.SplitGenerator(
name=nlp.Split.TRAIN,
# These kwargs will be passed to _generate_examples
gen_kwargs={
"directory": data_dir,
},
),
]
```
Nevertheless, many thanks for tackling the dataset accessibility problem with this great library! | [
-0.05277577415108681,
-0.0183878093957901,
0.1475318968296051,
0.4042402505874634,
0.2143370360136032,
-0.037315983325242996,
0.13150601089000702,
0.10714781284332275,
-0.20230171084403992,
-0.23726938664913177,
-0.19186700880527496,
0.40558934211730957,
-0.06352147459983826,
0.5268571972846985,
0.42494916915893555,
-0.2587219774723053,
-0.19759348034858704,
0.1804036945104599,
0.0004198923707008362,
-0.09351798892021179,
-0.0021073073148727417,
-0.1374591737985611,
0.13697421550750732,
-0.09391467273235321,
-0.2226293385028839,
0.1669854372739792,
-0.2874791920185089,
-0.032390616834163666,
0.11071331053972244,
-0.2528283894062042,
0.531370222568512,
0.3521876037120819,
0.46834227442741394,
0.2782878875732422,
-0.00012507651990745217,
0.017928488552570343,
-0.08334659039974213,
-0.10716141015291214,
-0.2715187966823578,
-0.16620482504367828,
-0.20189473032951355,
-0.2514970898628235,
0.06978239864110947,
-0.2622412443161011,
-0.333869606256485,
-0.2891654968261719,
0.08324362337589264,
-0.4201810359954834,
0.4280592203140259,
0.01422394160181284,
0.012890782207250595,
-0.1331838071346283,
-0.13332487642765045,
-0.12840941548347473,
0.028225988149642944,
0.4498726725578308,
-0.10068769007921219,
0.34568658471107483,
0.5528983473777771,
0.2936883568763733,
0.12929029762744904,
0.02839706465601921,
0.16094054281711578,
0.10653969645500183,
0.3837425410747528,
-0.05841206759214401,
-0.07056204229593277,
-0.03894852101802826,
0.018995456397533417,
0.2638925611972809,
0.8025801181793213,
-0.41082239151000977,
-0.08721029758453369,
-0.17297938466072083,
0.024767786264419556,
-0.4295547306537628,
-0.257329523563385,
0.05998261272907257,
0.16249841451644897,
0.08519425988197327,
-0.3099946677684784,
-0.360708087682724,
-0.38347113132476807,
0.27098262310028076,
0.3352561891078949,
0.039656851440668106,
-0.05665481835603714,
0.2215607762336731,
-0.15152722597122192,
-0.029804222285747528,
-0.030186142772436142,
-0.19711193442344666,
-0.15866465866565704,
0.11097932606935501,
0.17120306193828583,
-0.1918715387582779,
-0.30478397011756897,
0.023015156388282776,
0.4192991852760315,
0.49188411235809326,
0.14514794945716858,
0.2081780731678009,
-0.3522253930568695,
-0.021329030394554138,
0.4007326662540436,
0.12592734396457672,
0.2779959738254547,
0.36522552371025085,
0.04273742437362671,
0.1957390159368515,
-0.3644954562187195,
-0.170382559299469,
-0.4490543603897095,
0.5557586550712585,
0.23515094816684723,
-0.14517390727996826,
0.06880764663219452,
-0.23940755426883698,
0.14073258638381958,
-0.10550037771463394,
-0.3880716860294342,
-0.13881389796733856,
0.22008046507835388,
0.04732341319322586,
0.022438373416662216,
0.09217559546232224,
0.055579207837581635,
0.29784101247787476,
-0.011463828384876251,
-0.27263733744621277,
-0.004947960376739502,
0.0923362672328949,
-0.4189282953739166,
0.266470730304718,
0.3285474181175232,
-0.31030526757240295,
0.1651712954044342,
0.34411317110061646,
-0.08104094862937927,
-0.17081737518310547,
0.3620080351829529,
0.13493843376636505,
-0.31557175517082214,
-0.4831865429878235,
-0.2336723506450653,
0.20068304240703583,
0.24841177463531494,
0.2031092792749405,
-0.2982761561870575,
-0.04378628730773926,
-0.01557157188653946,
-0.3951830267906189,
-0.182211235165596,
0.012125076726078987,
-0.3710011839866638,
-0.08007356524467468,
-0.2152235507965088,
0.42850354313850403,
-0.004348285496234894,
-0.3384579122066498,
-0.19763892889022827,
-0.023247286677360535,
-0.3284016251564026,
-0.0783783569931984,
0.1933833807706833,
0.2733837068080902,
-0.3810245990753174,
-0.17183279991149902,
-0.2532706558704376,
0.005971793085336685,
0.43542706966400146,
0.1614469289779663,
-0.4003017544746399,
0.28754672408103943,
-0.1048995852470398,
-0.12921291589736938,
0.4984533488750458,
-0.03342503681778908,
-0.02098746784031391,
-0.05893365293741226,
0.18580757081508636,
0.17976714670658112,
0.04164868965744972,
0.07607437670230865,
0.25361424684524536,
-0.1743205338716507,
-0.37453505396842957,
0.5141630172729492,
0.08622302114963531,
-0.2672062814235687,
-0.037379126995801926,
-0.19525201618671417,
0.12791424989700317,
0.08978205919265747,
-0.17021410167217255,
0.16098758578300476,
-0.03143236041069031,
0.2894899547100067,
-0.01775193214416504,
-0.21484094858169556,
0.12000273913145065,
-0.1749356985092163,
0.14737802743911743,
0.3941196799278259,
0.1085902750492096,
-0.3249789774417877,
-0.42257556319236755,
0.191367506980896,
-0.2947516143321991,
-0.048047006130218506,
0.44720762968063354,
-0.4088855981826782,
-0.42648881673812866,
-0.18435224890708923,
-0.16452762484550476,
-0.18490250408649445,
0.007696464657783508,
0.5292383432388306,
0.09935706853866577,
-0.16958405077457428,
-0.16432465612888336,
0.11894521862268448,
-0.11815595626831055,
-0.01685999147593975,
-0.10559166967868805,
0.25382646918296814,
0.06435419619083405,
0.04358203336596489,
0.014084670692682266,
0.5441194772720337,
0.11635641753673553,
-0.07545920461416245,
0.15647035837173462,
0.12068843841552734,
0.037099651992321014,
0.08267440646886826,
0.1455656886100769,
0.10178067535161972,
0.11784674972295761,
0.11473007500171661,
0.40782448649406433,
0.008895005099475384,
0.3467358350753784,
-0.16888613998889923,
-0.4644249379634857,
0.13404901325702667,
0.23375250399112701,
0.03267727047204971,
0.061245501041412354,
-0.11393367499113083,
0.17010948061943054,
-0.18439631164073944,
-0.06123502552509308,
-0.11800247430801392,
-0.07617543637752533,
0.25104907155036926,
-0.08768868446350098,
0.3345286250114441,
-0.29149627685546875,
0.14176855981349945,
0.14106634259223938,
-0.23460344970226288,
0.15247659385204315,
0.004516333341598511,
-0.22248166799545288,
-0.17693549394607544,
0.3832336962223053,
0.07585789263248444,
0.16442334651947021,
0.0378476120531559,
0.24313539266586304,
0.0694829672574997,
-0.11000027507543564,
0.04443866387009621,
0.21124091744422913,
-0.16738590598106384,
0.18499410152435303,
-0.23792117834091187,
0.11981427669525146,
0.16960051655769348,
0.08003296703100204,
-0.04127021133899689,
0.3497787415981293,
0.14140065014362335,
-0.1712508201599121,
0.2018592208623886,
-0.6481917500495911,
-0.30092328786849976,
-0.3514772355556488,
-0.04370402172207832,
0.01397857815027237,
0.05452737957239151,
-0.19467873871326447,
0.046787261962890625,
0.13071881234645844,
0.1342972368001938,
0.11311310529708862,
0.48151612281799316,
-0.3766597807407379,
-0.12162128835916519,
0.08018501102924347,
-0.2995166480541229,
-0.3330666124820709,
0.006318066269159317,
0.4122457206249237,
0.3769211173057556,
0.5545412302017212,
0.08703833818435669,
0.029054634273052216,
-0.498623251914978,
-0.28394949436187744,
0.20146605372428894,
0.09056301414966583,
-0.03976437449455261,
0.13270506262779236,
-0.048512816429138184,
-0.3301457166671753,
-0.30421680212020874,
0.1590522974729538,
0.09618005156517029,
0.1809401661157608,
-0.060080889612436295,
-0.49927303194999695,
0.12114271521568298,
-0.18762809038162231,
-0.12244235724210739,
-0.15089969336986542,
-0.199262335896492,
0.2833753228187561,
0.05986278876662254,
0.0701042115688324,
0.3311735987663269,
-0.37697553634643555,
0.2394535392522812,
-0.04505737125873566,
0.21341973543167114,
-0.3368491530418396,
-0.10468468070030212,
0.29012706875801086,
-0.14678014814853668,
-0.18521727621555328,
-0.06468644738197327,
-0.33283162117004395,
0.1002841368317604,
0.5816026329994202,
-0.18992255628108978,
-0.43330904841423035,
-0.07092656195163727,
-0.1931764781475067,
0.33521178364753723,
0.20237506926059723,
0.1774219274520874,
-0.03027534671127796,
0.14824798703193665,
-0.024656416848301888,
-0.22927424311637878,
0.3347111642360687,
-0.0698234885931015,
0.21514879167079926,
0.31798821687698364,
0.13644732534885406,
0.14777885377407074,
0.4958410859107971,
0.1994635909795761,
-0.3975554406642914,
0.4418989419937134,
-0.07556065171957016,
0.2939325273036957,
0.09199299663305283,
-0.02757927030324936,
0.24892941117286682,
-0.12030670046806335,
0.0949382334947586,
0.19316264986991882,
0.0448024682700634,
0.025068368762731552,
-0.02833348698914051,
0.009234830737113953,
-0.0035296380519866943,
-0.4363784193992615,
0.19964416325092316,
-0.15173442661762238,
0.5237361788749695,
0.13817675411701202,
-0.23558083176612854,
-0.379105806350708,
0.04961398243904114,
0.19346733391284943,
0.13374198973178864,
0.07387667894363403,
0.16435882449150085,
-0.49705082178115845,
0.07581079006195068,
0.14062833786010742,
0.4142270088195801,
0.0856039822101593,
-0.022596001625061035,
0.17820414900779724,
0.03157170116901398,
0.09148409962654114,
0.09267044812440872,
-0.04813438653945923,
-0.29609614610671997,
0.007522329688072205,
0.12447868287563324,
-0.34748411178588867,
-0.2607429325580597,
0.05649913474917412,
-0.11450088024139404,
0.1813008040189743,
0.1208544373512268,
-0.008593253791332245,
-0.6265869140625,
-0.08597664535045624,
0.49119532108306885,
0.3378351330757141,
-0.11739884316921234,
0.022537320852279663,
0.3983529508113861,
-0.16196024417877197,
-0.44265246391296387,
-0.14787566661834717,
-0.16742241382598877,
0.09007583558559418,
0.1807968020439148,
0.12001131474971771,
-0.32843759655952454,
0.22975385189056396,
0.3346859812736511,
0.12290117144584656,
0.4285553991794586,
0.21789385378360748,
0.08595642447471619,
0.09955891966819763,
0.006595466285943985,
0.04190730303525925,
0.45216983556747437,
-0.2863282859325409,
-0.4647586941719055,
-0.12306059151887894,
0.043988537043333054,
0.2652987837791443,
0.16089436411857605,
0.3431626856327057,
-0.08932589739561081,
-0.22272491455078125,
-0.5019606351852417,
-0.214517280459404,
0.21093478798866272,
-0.04187434911727905,
-0.054985713213682175,
-0.3572913408279419,
-1.0777636766433716,
0.3356919288635254,
0.18096420168876648,
-0.09710485488176346,
0.17610310018062592,
0.13289418816566467,
-0.13495755195617676,
0.12479516863822937,
0.029526211321353912,
0.9321961998939514,
-0.17726092040538788,
0.2380489557981491,
0.36619898676872253,
0.2965847849845886,
0.7135201692581177,
-0.14194515347480774,
-0.2076857089996338,
-0.3434435725212097,
0.2142762988805771,
0.04966334253549576,
-0.059582795947790146,
0.29619359970092773,
0.2053493857383728,
-0.15600423514842987,
0.2518337666988373,
0.20365609228610992,
0.42912429571151733,
0.12842269241809845,
0.22300365567207336,
-0.2504250705242157,
-0.3115473985671997,
-0.132267564535141,
0.011567972600460052,
-0.32068008184432983,
0.03761466592550278,
-0.173848956823349,
-0.003934716805815697,
0.017044808715581894,
0.15631453692913055,
-0.44135671854019165,
0.01367991790175438,
-0.2030913233757019,
0.019174382090568542,
-0.09730538725852966,
-0.4997600317001343,
0.4716835618019104,
0.1864800900220871,
0.30572932958602905,
0.20795466005802155,
-0.18517127633094788,
0.039543334394693375,
-0.20622742176055908,
-0.08012621849775314,
-0.20036983489990234,
0.0007410161197185516,
0.24395382404327393,
0.010617058724164963,
-0.029810942709445953,
0.09815899282693863,
0.38090890645980835,
-0.021284641698002815,
-0.1528528332710266,
-0.24967409670352936,
0.39484333992004395,
-0.35854971408843994,
-0.2738023102283478,
0.27337735891342163,
0.018645409494638443,
-0.08117435872554779,
-0.024221621453762054,
0.31563109159469604,
-0.17835794389247894,
-0.07473327964544296,
-0.19930611550807953,
0.1323683112859726,
-0.01188376173377037,
-0.33285456895828247,
0.31877806782722473,
-0.2915680408477783,
0.3401270806789398,
0.12811492383480072,
0.11227844655513763,
-0.059323884546756744,
0.02845820039510727,
0.27571892738342285,
-0.40382111072540283,
-0.12673941254615784,
0.10866493731737137,
-0.23640166223049164,
0.0819719061255455,
0.17656584084033966,
-0.10157839953899384,
0.08402648568153381,
0.036007288843393326,
-0.26251405477523804,
-0.1277981996536255,
0.15536770224571228,
0.003001425415277481,
0.35327622294425964,
0.04575569927692413,
-0.010078905150294304,
-0.17740122973918915,
0.04359585791826248,
-0.17356309294700623,
0.1767265349626541,
0.16015243530273438,
0.1843799203634262,
0.20372149348258972,
0.05767843499779701,
-0.10158334672451019,
-0.10939949750900269,
-0.07875895500183105,
0.070126011967659,
-0.14799858629703522,
-0.00976032204926014,
-0.5596268773078918,
0.21321861445903778,
0.05718979239463806,
-0.12961404025554657,
-0.03719563037157059,
-0.26456257700920105,
0.12837280333042145,
-0.34827935695648193,
0.2246418446302414,
-0.029361413791775703,
-0.04609566926956177,
0.15977108478546143,
0.5605435967445374,
-0.012761466205120087,
-0.29150235652923584,
0.009755119681358337,
0.13208544254302979,
0.4077625274658203,
0.4412091374397278,
0.06121973320841789,
-0.10387413948774338,
-0.1245039701461792,
-0.02714160457253456,
0.20847120881080627,
0.7594009041786194,
0.07025220990180969,
0.3213886618614197,
0.13916565477848053,
0.11811704933643341,
0.21129830181598663,
0.18489880859851837,
0.45579391717910767,
-0.0918230265378952,
0.27796390652656555,
0.20867368578910828,
-0.007170222699642181,
-0.08957256376743317,
0.160956010222435,
0.2544291317462921,
-0.18138468265533447,
-0.15001513063907623,
0.375049352645874,
0.17494098842144012,
0.2845793664455414,
-0.14899112284183502,
-0.26457685232162476,
0.20974630117416382,
0.027486704289913177,
0.39040908217430115,
0.19392511248588562,
-0.0120406374335289,
-0.2825765907764435,
-0.041224367916584015,
0.40002357959747314,
0.2880561649799347,
-0.4512825608253479,
0.22340574860572815,
0.2511092722415924,
0.18729329109191895,
0.1809881180524826,
0.5107918977737427,
-0.4333369731903076,
-0.04054703190922737,
0.41040894389152527,
0.360626220703125,
0.2895865738391876,
-0.08490851521492004,
0.28713226318359375,
0.12327317148447037,
0.06525761634111404,
0.0793490782380104,
0.22524407505989075,
0.09827762842178345,
-0.07021801173686981,
-0.23903700709342957,
-0.24903956055641174,
-0.32121533155441284,
-0.055816538631916046,
-0.3482559621334076,
-0.16665557026863098,
-0.14578047394752502,
-0.05251966416835785,
-0.034150630235672,
-0.42286840081214905,
0.05821613222360611,
0.15035191178321838,
-0.03188811242580414,
-0.03373540937900543,
0.18518170714378357,
0.12674564123153687,
-0.36338692903518677,
0.22551362216472626,
0.39719992876052856,
0.10976167023181915,
0.015224922448396683,
-0.006631841883063316,
0.2950596809387207,
-0.14891092479228973,
0.16321182250976562,
-0.13756586611270905,
0.021686555817723274,
0.17223025858402252,
-0.25958144664764404,
0.13580314815044403,
-0.0716032013297081,
0.055716514587402344,
-0.18946462869644165,
-0.012652579694986343,
-0.18542824685573578,
-0.43775391578674316,
0.6592113375663757,
0.23420517146587372,
-0.21068671345710754,
0.10655742138624191,
0.21380531787872314,
-0.15989316999912262,
-0.34995293617248535,
0.4518500864505768,
0.36533793807029724,
-0.034741416573524475,
-0.22071807086467743,
-0.0010922644287347794,
0.19044098258018494,
0.21386905014514923,
0.07751458138227463,
-0.10511700063943863,
-0.08657408505678177,
-0.2625454068183899,
-0.7192502021789551,
0.2276402711868286,
-0.17335627973079681,
-0.6922203898429871,
0.2622714638710022,
-0.1413426399230957,
0.34195488691329956,
0.10141313076019287,
-0.293986976146698,
-0.03489304706454277,
0.05521382391452789,
-0.23138976097106934,
-0.1737840324640274,
-0.4438754618167877,
0.025859147310256958,
0.051515139639377594,
-0.10293726623058319,
-0.24710029363632202,
-0.0737910121679306,
0.07143016904592514,
-0.1363355964422226,
0.035309113562107086,
-0.1981964111328125,
0.11845959722995758,
-0.47535547614097595,
0.112887442111969,
0.13320980966091156,
0.26945868134498596,
0.18839263916015625,
-0.06590054929256439,
-0.24413591623306274,
0.05537547171115875,
-0.13522812724113464,
0.2859675884246826,
-0.1012534499168396,
0.04796735197305679,
-0.5305743217468262,
0.006874453276395798,
-0.2922244966030121,
-0.17010147869586945,
-0.007945004850625992,
0.07040572911500931,
-0.13265012204647064,
0.10368157923221588,
-0.3454543948173523,
-0.05998266860842705,
0.36039575934410095,
0.5799033045768738,
-0.23216530680656433,
0.0223559457808733,
-0.15164881944656372,
0.19397474825382233,
0.32614898681640625,
-0.2340165227651596,
-0.41630104184150696,
-0.062206726521253586,
0.043280258774757385,
-0.2508486211299896,
0.031581390649080276,
-0.5333892703056335,
0.033817075192928314,
0.263150691986084,
-0.020952504128217697,
-0.10018862783908844,
-0.029917042702436447,
0.2262389063835144,
-0.20826546847820282,
-0.16141152381896973,
0.44234001636505127,
0.07936936616897583,
-0.07374318689107895,
0.010791737586259842,
-0.16598308086395264
] |
https://github.com/huggingface/datasets/issues/426 | [FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter | Yes, that would be nice. We could take a look at what tensorflow `tf.data` does under the hood for instance. | It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together? | 20 | [FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter
It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together?
Yes, that would be nice. We could take a look at what tensorflow `tf.data` does under the hood for instance. | [
-0.2759450078010559,
-0.2842458486557007,
-0.2022302746772766,
-0.1166614443063736,
-0.2691856026649475,
0.10101316124200821,
0.2325940579175949,
0.3550623953342438,
-0.016504179686307907,
0.06166934221982956,
-0.14451435208320618,
0.33245277404785156,
-0.13535061478614807,
0.4115585386753082,
0.013081477954983711,
-0.2661808729171753,
0.01758144050836563,
0.10324838012456894,
-0.12816864252090454,
0.10989046096801758,
0.07626663148403168,
-0.06554615497589111,
-0.11530781537294388,
-0.09268465638160706,
-0.13229763507843018,
-0.10245492309331894,
-0.09757165610790253,
-0.2020665407180786,
0.18253108859062195,
-0.0591968297958374,
0.08191929012537003,
0.43625691533088684,
-0.1955324411392212,
0.32096031308174133,
-0.00010351857054047287,
-0.03305279091000557,
0.023035135120153427,
0.14118248224258423,
0.05547748878598213,
0.19510000944137573,
-0.24072691798210144,
-0.34963420033454895,
0.015476204454898834,
-0.2446851134300232,
0.11410889774560928,
0.14492985606193542,
0.2296796441078186,
-0.25204387307167053,
0.15109854936599731,
-0.14827001094818115,
0.16500431299209595,
0.3244565725326538,
-0.10134151577949524,
0.35490912199020386,
-0.1160893514752388,
0.2881213426589966,
-0.13325637578964233,
-0.2739548683166504,
0.43003132939338684,
-0.16586241126060486,
-0.19330474734306335,
0.4834125339984894,
-0.20489564538002014,
0.18410511314868927,
0.1868392527103424,
-0.06592413783073425,
0.07732845097780228,
-0.4097803235054016,
-0.18180599808692932,
0.4087255001068115,
-0.06758839637041092,
-0.2307179868221283,
-0.4504493772983551,
-0.2789039611816406,
-0.12640748918056488,
-0.407010942697525,
-0.2271306812763214,
0.08587366342544556,
-0.20992346107959747,
-0.023310910910367966,
-0.4120800197124481,
-0.3114111125469208,
0.19978344440460205,
-0.08125299215316772,
0.16165663301944733,
0.3613925874233246,
0.2724670469760895,
0.13113360106945038,
0.19193704426288605,
-0.1969311684370041,
-0.05646654590964317,
-0.2537743151187897,
0.31104734539985657,
0.006675342563539743,
-0.6924260854721069,
-0.18429334461688995,
0.01671268790960312,
-0.28677189350128174,
-0.03928065299987793,
-0.07068969309329987,
0.15345877408981323,
0.3635827302932739,
0.0018451940268278122,
0.27567219734191895,
0.009638240560889244,
-0.3759276866912842,
0.06305883824825287,
-0.01253302488476038,
0.13329386711120605,
-0.41870149970054626,
-0.2308540642261505,
0.29322001338005066,
0.1267777532339096,
-0.08347810804843903,
-0.2717575132846832,
0.047401174902915955,
-0.0980953723192215,
0.26262348890304565,
0.04921509325504303,
-0.4000428318977356,
0.08907919377088547,
-0.19157001376152039,
0.1827961951494217,
-0.03644764423370361,
-0.0701012909412384,
0.3581649661064148,
-0.16252519190311432,
-0.24836231768131256,
-0.1925841122865677,
-0.1561344414949417,
-0.07636252045631409,
-0.0069033317267894745,
0.06263017654418945,
0.1361534148454666,
0.15718697011470795,
0.12194070219993591,
-0.1967087686061859,
0.047960858792066574,
0.13933232426643372,
0.30479076504707336,
0.32257288694381714,
-0.12546589970588684,
0.039248887449502945,
0.17078308761119843,
-0.13733330368995667,
-0.10199164599180222,
-0.14540322124958038,
0.0859721302986145,
-0.32197991013526917,
-0.044781021773815155,
-0.3592568337917328,
-0.2022036463022232,
-0.07830100506544113,
0.1522815227508545,
0.15805572271347046,
-0.08345663547515869,
-0.23922443389892578,
0.7270874977111816,
0.12217481434345245,
-0.013926487416028976,
-0.3829067349433899,
-0.11735697090625763,
-0.5056700110435486,
-0.22129319608211517,
0.3403019607067108,
-0.007170721888542175,
-0.09253888577222824,
-0.02443920075893402,
-0.21030162274837494,
-0.03645641729235649,
0.20229628682136536,
0.34313055872917175,
-0.16504795849323273,
0.20297521352767944,
-0.01611148938536644,
0.4196084141731262,
0.5856346487998962,
-0.1346530318260193,
0.1360911726951599,
0.37727221846580505,
-0.17533260583877563,
0.05190823972225189,
0.2391437590122223,
0.18406781554222107,
0.15065333247184753,
-0.1263086199760437,
0.16015958786010742,
0.48925745487213135,
-0.3131014108657837,
0.25839751958847046,
0.05685216560959816,
-0.22142933309078217,
0.1675427109003067,
0.16373175382614136,
0.06583751738071442,
0.0036610886454582214,
-0.1034320667386055,
-0.32040923833847046,
0.31902414560317993,
-0.3128888010978699,
0.05692141503095627,
0.04833582788705826,
-0.10538993775844574,
-0.03485557436943054,
-0.12590444087982178,
-0.3479115962982178,
-0.3173053562641144,
0.10933881253004074,
0.08657734096050262,
-0.06700879335403442,
0.1533922702074051,
-0.37144577503204346,
0.4874788522720337,
0.12219377607107162,
0.17557363212108612,
0.23964335024356842,
0.18018874526023865,
0.2371762990951538,
0.08780226111412048,
-0.2353845089673996,
-0.28517723083496094,
0.10881093144416809,
-0.13837364315986633,
-0.14279696345329285,
-0.106113001704216,
0.24675966799259186,
0.28574785590171814,
-0.1014980897307396,
-0.02143115922808647,
0.13317027688026428,
-0.15474393963813782,
-0.12686008214950562,
0.15781241655349731,
-0.022740192711353302,
-0.07295692712068558,
0.36691027879714966,
0.49540162086486816,
0.5253913402557373,
0.18018479645252228,
0.1083613932132721,
-0.13010722398757935,
-0.20871983468532562,
-0.1430886685848236,
-0.20541414618492126,
-0.14462807774543762,
0.4666013717651367,
-0.06685717403888702,
0.36194103956222534,
0.16258864104747772,
-0.014663840644061565,
0.2380339801311493,
0.05492086336016655,
-0.07700476795434952,
0.23333483934402466,
0.07340263575315475,
-0.10576453804969788,
-0.03970889747142792,
0.18771892786026,
-0.44256502389907837,
0.326350599527359,
0.5805595517158508,
0.10857535898685455,
-0.03624136745929718,
0.1326855570077896,
0.23283067345619202,
-0.010291896760463715,
0.11810193955898285,
0.1348208785057068,
0.16477282345294952,
0.19193096458911896,
0.1233762726187706,
-0.09267853945493698,
-0.014028011821210384,
0.007535262033343315,
0.1509765088558197,
0.2267988920211792,
0.29759183526039124,
0.07327695190906525,
0.0710352212190628,
-0.1913866251707077,
-0.11671431362628937,
-0.3844873607158661,
0.24228471517562866,
0.033624134957790375,
0.022234532982110977,
-0.0753336027264595,
-0.2187241017818451,
-0.08396546542644501,
0.02002163603901863,
0.15647552907466888,
-0.10848690569400787,
-0.2796202600002289,
0.03757919371128082,
0.21103769540786743,
-0.17239464819431305,
0.16399560868740082,
0.15172326564788818,
0.12165980786085129,
-0.07952652871608734,
-0.04443064332008362,
-0.17311528325080872,
-0.11280041188001633,
0.11540314555168152,
0.078086718916893,
0.3604661822319031,
0.20933496952056885,
0.41503793001174927,
0.22971467673778534,
0.1016194149851799,
-0.30859819054603577,
-0.30131667852401733,
-0.06057296693325043,
-0.23260624706745148,
0.07069167494773865,
-0.019726373255252838,
0.01401221752166748,
-0.20786884427070618,
-0.4240691661834717,
0.1349763423204422,
0.12339864671230316,
-0.1107926219701767,
-0.14946375787258148,
0.05580318346619606,
0.0630633682012558,
-0.0742373913526535,
-0.20532074570655823,
-0.5143830180168152,
-0.43763554096221924,
0.36695337295532227,
-0.32444459199905396,
0.3497666120529175,
-0.19919699430465698,
0.024094771593809128,
-0.009649517014622688,
-0.17411279678344727,
0.08378078043460846,
0.1551629900932312,
-0.41784051060676575,
0.11653529107570648,
-0.07669571787118912,
-0.116912841796875,
-0.3409136235713959,
-0.03338715806603432,
0.07159736752510071,
0.46414804458618164,
-0.21371115744113922,
-0.05857361853122711,
-0.2273506075143814,
0.14934231340885162,
0.1650560349225998,
-0.08180767297744751,
0.10734833031892776,
-0.01588945835828781,
-0.11213783174753189,
0.0774199590086937,
-0.16446226835250854,
0.05168956145644188,
-0.0614810585975647,
-0.29597407579421997,
0.25790274143218994,
0.36126598715782166,
0.12350049614906311,
0.7081289291381836,
0.1143639087677002,
-0.23188252747058868,
-0.04082849621772766,
0.072738416492939,
-0.26884394884109497,
0.20384074747562408,
-0.494834840297699,
-0.07088039815425873,
-0.16883260011672974,
0.10851146280765533,
0.09316208213567734,
-0.10847342014312744,
-0.4197063148021698,
-0.034333981573581696,
0.21272577345371246,
-0.1820167899131775,
-0.17308995127677917,
0.28907889127731323,
-0.301626056432724,
0.3059796094894409,
0.04044583812355995,
-0.28217601776123047,
-0.42905694246292114,
0.07588154822587967,
-0.15357057750225067,
0.00013154000043869019,
0.2750866711139679,
-0.18267714977264404,
-0.39425453543663025,
-0.21494771540164948,
-0.4903290271759033,
0.3338412940502167,
0.1873449981212616,
0.10521796345710754,
-0.01754702627658844,
0.02726532518863678,
-0.053417593240737915,
-0.15338732302188873,
0.579554557800293,
-0.36850419640541077,
-0.2850635051727295,
0.2537965476512909,
-0.4896869659423828,
-0.019686192274093628,
0.2228049486875534,
-0.025972308591008186,
0.41663801670074463,
0.3337056636810303,
0.4109072983264923,
-0.2376558482646942,
-0.4871220290660858,
0.15589264035224915,
0.02194952964782715,
-0.07201270759105682,
0.026681259274482727,
-0.025353413075208664,
-0.0449182391166687,
-0.11768268793821335,
-0.00976918637752533,
-0.06589964032173157,
-0.02805955521762371,
-0.01875988021492958,
-0.18685437738895416,
-0.1646324098110199,
0.05367690324783325,
0.33665627241134644,
0.02158220112323761,
-0.14567780494689941,
0.3455348014831543,
0.29211556911468506,
-0.2915530204772949,
0.11417309939861298,
-0.08748150616884232,
-0.10142248868942261,
-0.18535123765468597,
-0.12975935637950897,
-0.03132165968418121,
-0.03686463460326195,
0.5222086906433105,
0.09309306740760803,
0.15358418226242065,
0.39201050996780396,
-0.10964556038379669,
0.42568665742874146,
-0.24883809685707092,
0.16633480787277222,
0.3916361331939697,
0.25797319412231445,
-0.27994030714035034,
-0.3690029978752136,
0.22463631629943848,
0.2787815034389496,
0.020580492913722992,
0.5443373322486877,
-0.29624712467193604,
-0.020333867520093918,
0.20757153630256653,
0.08248595148324966,
0.5658171772956848,
-0.38104814291000366,
0.02084437757730484,
-0.27613070607185364,
0.1997946947813034,
0.432056725025177,
-0.4796615242958069,
0.19673499464988708,
0.06663702428340912,
-0.31535089015960693,
0.06373099237680435,
-0.005826480686664581,
0.1173136979341507,
0.4264534115791321,
-0.19518229365348816,
0.07366842776536942,
0.31781864166259766,
-0.03640393540263176,
-0.08255185931921005,
0.4622347354888916,
0.27711716294288635,
-0.3780421316623688,
-0.0919995978474617,
0.10737992823123932,
-0.07451024651527405,
-0.3487042486667633,
0.06420717388391495,
-0.2750179171562195,
0.16034966707229614,
0.3369331955909729,
-0.31235772371292114,
-0.10061007738113403,
-0.03292689472436905,
0.4128583073616028,
-0.2716253101825714,
-0.03568163141608238,
-0.09807761013507843,
0.1445019543170929,
-0.06219188868999481,
-0.05152273550629616,
-0.08870694786310196,
0.03669900447130203,
-0.14064669609069824,
0.31959256529808044,
-0.2093706578016281,
-0.30969783663749695,
0.23032556474208832,
-0.12140282243490219,
-0.18935781717300415,
0.002627253532409668,
0.1380225270986557,
-0.5908486247062683,
-0.1397266834974289,
0.09341339766979218,
0.09455949068069458,
0.4548114836215973,
0.11223509907722473,
0.3758341372013092,
-0.3117882311344147,
-0.07551054656505585,
0.14180205762386322,
0.2096756398677826,
-0.1527111977338791,
0.56640625,
0.06698682904243469,
-0.13767680525779724,
0.054328083992004395,
0.038853343576192856,
0.3187231719493866,
0.038662396371364594,
0.27067333459854126,
0.15413367748260498,
-0.13780897855758667,
-0.27288952469825745,
-0.10658158361911774,
-0.2155006229877472,
0.08488214761018753,
0.27802300453186035,
-0.15319415926933289,
-0.19192200899124146,
0.10200322419404984,
-0.15204980969429016,
-0.15951071679592133,
0.11643984913825989,
-0.29002150893211365,
-0.15236733853816986,
-0.10318820178508759,
0.09986857324838638,
-0.11880609393119812,
0.21558105945587158,
-0.07947773486375809,
0.17917868494987488,
-0.05374603718519211,
0.5050330758094788,
-0.3481149673461914,
-0.13495539128780365,
-0.16472244262695312,
0.198150634765625,
0.33973896503448486,
0.02211970090866089,
-0.06132543087005615,
0.22106744349002838,
0.17819717526435852,
0.1315309703350067,
-0.18267610669136047,
-0.31127259135246277,
0.17955420911312103,
0.05973954498767853,
-0.13201302289962769,
0.057890571653842926,
0.1754208505153656,
0.15221288800239563,
-0.379161536693573,
-0.36117780208587646,
0.014517579227685928,
-0.09044194966554642,
-0.028688766062259674,
0.07970520108938217,
0.14711308479309082,
-0.21128270030021667,
0.2349594682455063,
-0.05540584772825241,
0.13106952607631683,
-0.019343502819538116,
-0.13855578005313873,
0.3766928017139435,
0.1650502234697342,
-0.15146659314632416,
0.15220074355602264,
-0.09716225415468216,
0.11881323158740997,
-0.17420658469200134,
0.2069414258003235,
0.06353642046451569,
-0.2430644929409027,
-0.09120871126651764,
0.2783660292625427,
0.35149046778678894,
0.139075368642807,
0.23027749359607697,
0.057181671261787415,
0.17350344359874725,
-0.1607593148946762,
-0.1503111869096756,
0.5617015957832336,
0.0002526184543967247,
0.34414246678352356,
-0.08693703263998032,
0.11125531792640686,
0.485291063785553,
0.10472643375396729,
-0.06869495660066605,
-0.12323237210512161,
-0.34257787466049194,
0.09757332503795624,
0.00016487017273902893,
0.23615990579128265,
-0.039969269186258316,
-0.10336039215326309,
0.027640918269753456,
0.1377202421426773,
0.11111810803413391,
0.07761768996715546,
0.7436554431915283,
-0.1332685947418213,
0.14661400020122528,
0.23586279153823853,
-0.21851015090942383,
0.15542207658290863,
0.15089192986488342,
0.07065964490175247,
0.28496578335762024,
0.10424508154392242,
0.08362443000078201,
0.11575888842344284,
-0.5258513689041138,
-0.16221696138381958,
0.6554823517799377,
-0.051786527037620544,
-0.33509308099746704,
-0.05954814702272415,
-0.0637187659740448,
-0.055397480726242065,
0.07723894715309143,
0.18908046185970306,
0.10396361351013184,
0.5785477161407471,
0.06316381692886353,
0.4233323931694031,
0.02171112224459648,
0.1380326896905899,
-0.17561134696006775,
0.3721531927585602,
-0.051932670176029205,
-0.16001802682876587,
0.14399927854537964,
-0.21311980485916138,
-0.23138681054115295,
0.32235628366470337,
0.11828161776065826,
0.2578315734863281,
-0.06061095371842384,
0.34211528301239014,
-0.25790953636169434,
-0.036384351551532745,
-0.23798000812530518,
0.234089657664299,
-0.021660886704921722,
0.019926033914089203,
0.4125620722770691,
0.12308299541473389,
-0.14531604945659637,
-0.263503760099411,
-0.045185890048742294,
0.09622688591480255,
-0.4112083315849304,
0.08776373416185379,
0.13377395272254944,
-0.16022628545761108,
0.014000091701745987,
0.002057790756225586,
-0.397723913192749,
-0.279814749956131,
0.7091531753540039,
-0.5511265397071838,
-0.03352079167962074,
0.012438738718628883,
0.12369899451732635,
-0.21537572145462036,
0.6456465721130371,
0.08275391161441803,
0.3928980231285095,
0.005626905709505081,
-0.16449880599975586,
-0.41792580485343933,
-0.2629409432411194,
-0.06635533273220062,
0.11596600711345673,
0.12309989333152771,
0.49173933267593384,
0.21833264827728271,
0.31762683391571045,
0.0032260194420814514,
-0.46191707253456116,
0.024365410208702087,
0.08114507049322128,
-0.45272865891456604,
0.1186484694480896,
-0.37041324377059937,
-0.06228680908679962,
0.17526711523532867,
-0.33420321345329285,
0.26757392287254333,
0.11064463108778,
0.12725895643234253,
-0.2127431184053421,
0.13286451995372772,
0.49381697177886963,
0.15213167667388916,
0.012598678469657898,
0.009824723936617374,
0.3086358308792114,
-0.3062480390071869,
0.007104078307747841,
-0.1148117333650589,
0.09621676802635193,
-0.19076427817344666,
0.003296680748462677,
-0.043302614241838455,
0.3226059675216675,
-0.2178199142217636,
0.05979093909263611,
-0.054596930742263794,
0.10389386117458344,
-0.10822620242834091,
-0.178422212600708,
0.15695904195308685,
0.011396825313568115,
0.16660156846046448,
0.1770828515291214,
-0.015179256908595562,
0.34874093532562256,
-0.006288260221481323,
0.095362588763237,
-0.10453303158283234,
-0.08236920088529587,
0.24200990796089172,
-0.45552217960357666,
-0.2231687605381012,
-0.28312480449676514,
0.06697206199169159,
-0.034916698932647705,
0.4219543933868408,
-0.3687784671783447,
-0.3382132947444916,
0.2574603259563446,
-0.08740770816802979,
-0.0455554760992527,
0.5557900071144104,
0.001617882400751114,
-0.24528105556964874,
-0.1554078906774521,
-0.2612408995628357,
-0.009433235973119736,
-0.3534398078918457,
-0.14837154746055603,
-0.2303103506565094
] |
https://github.com/huggingface/datasets/issues/426 | [FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter | So `tf.data.Dataset.map()` returns a `ParallelMapDataset` if `num_parallel_calls is not None` [link](https://github.com/tensorflow/tensorflow/blob/2b96f3662bd776e277f86997659e61046b56c315/tensorflow/python/data/ops/dataset_ops.py#L1623).
There, `num_parallel_calls` is turned into a tensor and and fed to `gen_dataset_ops.parallel_map_dataset` where it looks like tensorflow takes over.
We could start with something simple like a thread or process pool that `imap`s over some shards.
| It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together? | 47 | [FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter
It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together?
So `tf.data.Dataset.map()` returns a `ParallelMapDataset` if `num_parallel_calls is not None` [link](https://github.com/tensorflow/tensorflow/blob/2b96f3662bd776e277f86997659e61046b56c315/tensorflow/python/data/ops/dataset_ops.py#L1623).
There, `num_parallel_calls` is turned into a tensor and and fed to `gen_dataset_ops.parallel_map_dataset` where it looks like tensorflow takes over.
We could start with something simple like a thread or process pool that `imap`s over some shards.
| [
-0.39594799280166626,
-0.35890519618988037,
-0.1633281409740448,
-0.10432016849517822,
-0.28035491704940796,
0.13152676820755005,
0.2860787510871887,
0.2982308566570282,
0.023387137800455093,
0.05506053566932678,
-0.1639016717672348,
0.3279615044593811,
-0.09400972723960876,
0.3442825376987457,
-0.11410148441791534,
-0.1108684092760086,
-0.050691910088062286,
0.055911920964717865,
-0.02234487235546112,
0.06904567778110504,
-0.07009831070899963,
-0.03514792025089264,
-0.11026871204376221,
-0.2142750471830368,
-0.10996801406145096,
-0.10818862169981003,
-0.03030260279774666,
-0.12129136174917221,
0.23247867822647095,
-0.024566669017076492,
0.1026778519153595,
0.46131792664527893,
-0.268880158662796,
0.3424684405326843,
-0.0001032941072480753,
0.041828155517578125,
-0.03000851720571518,
0.08687420934438705,
0.09926475584506989,
0.1611693799495697,
-0.212083101272583,
-0.28107672929763794,
-0.051121070981025696,
-0.2975960969924927,
0.06982164829969406,
0.13152636587619781,
0.203703835606575,
-0.27999886870384216,
0.20394384860992432,
-0.12030970305204391,
0.14407919347286224,
0.4225911796092987,
-0.023960132151842117,
0.2986970543861389,
-0.23564857244491577,
0.15691214799880981,
-0.1393171101808548,
-0.16242578625679016,
0.34277403354644775,
-0.20625823736190796,
-0.12681221961975098,
0.48843836784362793,
-0.25932157039642334,
0.2763182818889618,
0.12305322289466858,
-0.043089210987091064,
0.022626977413892746,
-0.4618026912212372,
-0.19201016426086426,
0.3221644461154938,
-0.16078799962997437,
-0.1975749135017395,
-0.46458494663238525,
-0.35514992475509644,
-0.1647726148366928,
-0.36111339926719666,
-0.19933536648750305,
0.05829918384552002,
-0.21818290650844574,
-0.01674775779247284,
-0.35326042771339417,
-0.21855950355529785,
0.10697764158248901,
-0.13908417522907257,
0.017680935561656952,
0.3166695237159729,
0.3593291938304901,
0.15426579117774963,
0.22298398613929749,
-0.16109640896320343,
-0.10568130016326904,
-0.17646236717700958,
0.3239942789077759,
0.1019221842288971,
-0.7124089002609253,
-0.21537929773330688,
0.03156622126698494,
-0.34846439957618713,
-0.08710761368274689,
-0.09172920137643814,
0.07137108594179153,
0.3659607768058777,
0.02065904438495636,
0.29577040672302246,
-0.03126492351293564,
-0.41603994369506836,
0.046820640563964844,
0.04435401409864426,
0.10934321582317352,
-0.41341570019721985,
-0.1735180914402008,
0.2978520095348358,
0.09148485213518143,
-0.08638137578964233,
-0.209625706076622,
0.04680834338068962,
-0.0589461475610733,
0.26897841691970825,
-0.014642192982137203,
-0.3458245098590851,
0.056917496025562286,
-0.11129020899534225,
0.13203607499599457,
-0.037931427359580994,
-0.06666643172502518,
0.2931637167930603,
-0.07310198992490768,
-0.29850488901138306,
-0.36263805627822876,
-0.07115018367767334,
-0.12184127420186996,
-0.018844343721866608,
-0.006802164018154144,
0.1827818602323532,
0.17651228606700897,
0.17312993109226227,
-0.2708669602870941,
0.01470127608627081,
0.1303199827671051,
0.3093433380126953,
0.34302932024002075,
-0.18828988075256348,
-0.03626937419176102,
0.23790769279003143,
-0.15227624773979187,
-0.13484139740467072,
-0.01871154084801674,
0.10122248530387878,
-0.24873244762420654,
-0.021621882915496826,
-0.3682630658149719,
-0.25098171830177307,
0.0032866690307855606,
0.16184699535369873,
0.0316619873046875,
-0.12133841216564178,
-0.24772286415100098,
0.6351503729820251,
0.173330619931221,
0.05398080125451088,
-0.443755567073822,
-0.10529682040214539,
-0.6214125752449036,
-0.20675329864025116,
0.34303754568099976,
0.08387717604637146,
-0.14774265885353088,
0.005699574947357178,
-0.11971748620271683,
-0.05737080052495003,
0.16284728050231934,
0.3418937027454376,
-0.0894843339920044,
0.07963539659976959,
0.003842601552605629,
0.478018581867218,
0.36858129501342773,
-0.15206164121627808,
0.0209946446120739,
0.30775532126426697,
-0.21159011125564575,
0.06379279494285583,
0.20980076491832733,
0.19106878340244293,
0.2824660539627075,
-0.20523735880851746,
0.18041177093982697,
0.5076918005943298,
-0.2538856267929077,
0.27807843685150146,
-0.05170685797929764,
-0.20026153326034546,
-0.02446889877319336,
0.32390686869621277,
0.1461585909128189,
-0.02612309157848358,
-0.12424386292695999,
-0.3164178133010864,
0.33253052830696106,
-0.18008488416671753,
0.04459550976753235,
0.08157625794410706,
0.033472366631031036,
0.0663515105843544,
-0.09547469764947891,
-0.3216054439544678,
-0.3459463119506836,
0.24227246642112732,
0.14382301270961761,
0.08254493772983551,
0.09482483565807343,
-0.34577494859695435,
0.42372724413871765,
0.10980712622404099,
0.1453586369752884,
0.2596763074398041,
0.2118765413761139,
0.11206525564193726,
-0.00736132450401783,
-0.26296913623809814,
-0.2826952040195465,
0.24087633192539215,
-0.20676134526729584,
-0.1024322509765625,
-0.1578768491744995,
0.33241674304008484,
0.25230032205581665,
-0.15476952493190765,
-0.11251126974821091,
0.10808522999286652,
-0.09614724665880203,
-0.148108571767807,
0.15526530146598816,
0.042134638875722885,
0.007130354177206755,
0.4032179117202759,
0.398529589176178,
0.5866162180900574,
0.214230015873909,
0.17647844552993774,
-0.11875728517770767,
-0.24878855049610138,
-0.14478883147239685,
-0.18255674839019775,
-0.08065230399370193,
0.4537772536277771,
0.01776743493974209,
0.4275169372558594,
0.15429630875587463,
0.0031855572015047073,
0.1733977347612381,
0.010594066232442856,
-0.02759990468621254,
0.23792779445648193,
0.10781688988208771,
-0.12304584681987762,
-0.06270170211791992,
0.19274578988552094,
-0.2868267893791199,
0.3883128762245178,
0.5061119794845581,
0.11745105683803558,
-0.11388523131608963,
0.08055519312620163,
0.22769537568092346,
0.02408076450228691,
0.0678068995475769,
0.2511102259159088,
0.24526771903038025,
0.1791772097349167,
0.1480737030506134,
-0.0011037345975637436,
-0.07172119617462158,
0.019503161311149597,
0.12896503508090973,
0.27486830949783325,
0.31909793615341187,
-0.02080657333135605,
0.06974319368600845,
-0.18687129020690918,
-0.12359033524990082,
-0.42004281282424927,
0.29978159070014954,
0.11241721361875534,
0.048312436789274216,
-0.057549260556697845,
-0.10749390721321106,
0.12696561217308044,
0.016272634267807007,
0.13758251070976257,
-0.07277306914329529,
-0.30413854122161865,
0.018180135637521744,
0.36672261357307434,
-0.06631100177764893,
0.13690462708473206,
0.19250649213790894,
0.04637683928012848,
-0.08030121773481369,
-0.11214103549718857,
-0.1769382655620575,
-0.24406838417053223,
0.20808887481689453,
0.08853121101856232,
0.373958021402359,
0.19004102051258087,
0.43173056840896606,
0.17477300763130188,
-0.002174191176891327,
-0.1536821573972702,
-0.2592746913433075,
-0.05430977791547775,
-0.28635549545288086,
-0.01916884444653988,
-0.03167228400707245,
0.11410847306251526,
-0.22287705540657043,
-0.30588310956954956,
0.17245154082775116,
0.004610816016793251,
-0.06884055584669113,
-0.1139104962348938,
-0.012707012705504894,
0.08935300260782242,
-0.04773556441068649,
-0.25033560395240784,
-0.5684008598327637,
-0.40922337770462036,
0.32664990425109863,
-0.23243801295757294,
0.3775835633277893,
-0.05470065772533417,
0.036139532923698425,
-0.0018445153255015612,
-0.10802023857831955,
-0.005989536643028259,
0.08417285233736038,
-0.27968233823776245,
0.10813826322555542,
-0.03426200523972511,
-0.1321183741092682,
-0.25445830821990967,
-0.024661891162395477,
0.07966912537813187,
0.5135448575019836,
-0.16191934049129486,
-0.1321907341480255,
-0.22445492446422577,
0.11937963962554932,
0.1274673193693161,
-0.07577534019947052,
0.19376488029956818,
0.023846933618187904,
-0.11343380808830261,
0.061944372951984406,
-0.004956146702170372,
0.12775877118110657,
-0.07989595830440521,
-0.3843889832496643,
0.22874847054481506,
0.36101314425468445,
0.19522956013679504,
0.7414987087249756,
0.189039945602417,
-0.3178257346153259,
-0.09586496651172638,
0.029084740206599236,
-0.2857879400253296,
0.1605224907398224,
-0.4328320026397705,
-0.08146636933088303,
-0.07682754099369049,
0.04750038683414459,
0.046065185219049454,
-0.1417330503463745,
-0.4039618670940399,
-0.06713581830263138,
0.19641409814357758,
-0.21616056561470032,
-0.25355032086372375,
0.25362223386764526,
-0.15751589834690094,
0.2934395372867584,
0.030912306159734726,
-0.24563151597976685,
-0.462483286857605,
0.03707871958613396,
-0.16106060147285461,
0.0008603110909461975,
0.3101629912853241,
-0.2374068796634674,
-0.30368947982788086,
-0.10449588298797607,
-0.5077470541000366,
0.3355197310447693,
0.07792256772518158,
0.1264089047908783,
0.04122650995850563,
-0.021639594808220863,
0.020404361188411713,
-0.15833769738674164,
0.6184374094009399,
-0.32202091813087463,
-0.25530368089675903,
0.2162015289068222,
-0.4241088628768921,
-0.1754310578107834,
0.18108101189136505,
-0.04497151076793671,
0.348090261220932,
0.31887802481651306,
0.4349926710128784,
-0.3314707279205322,
-0.45671796798706055,
0.12553998827934265,
-0.02809029258787632,
-0.09775581955909729,
-0.06106191128492355,
-0.11444810032844543,
-0.07431180775165558,
-0.1976049244403839,
0.04870181530714035,
-0.004486570134758949,
-0.045344602316617966,
-0.009250449948012829,
-0.13803809881210327,
-0.15293766558170319,
0.018939275294542313,
0.28573596477508545,
0.1053517609834671,
-0.10776648670434952,
0.29797855019569397,
0.38807225227355957,
-0.16024689376354218,
-0.08590446412563324,
0.032402150332927704,
-0.02306900918483734,
-0.08514656126499176,
-0.16263717412948608,
-0.05772733688354492,
0.05240960791707039,
0.40325629711151123,
0.05327492952346802,
0.15441611409187317,
0.25744712352752686,
-0.13860422372817993,
0.44070398807525635,
-0.24651828408241272,
0.14145499467849731,
0.26747798919677734,
0.280644029378891,
-0.21675971150398254,
-0.4176127314567566,
0.22836723923683167,
0.2824580669403076,
0.03567521274089813,
0.5328619480133057,
-0.25362372398376465,
0.00687792431563139,
0.30229640007019043,
0.10988442599773407,
0.5154481530189514,
-0.48574960231781006,
-0.03729844465851784,
-0.2026866376399994,
0.3226897120475769,
0.39307349920272827,
-0.5588088035583496,
0.2324303388595581,
-0.029380321502685547,
-0.3676806092262268,
0.08223427087068558,
-0.04161285609006882,
0.11304028332233429,
0.4261125326156616,
-0.10323378443717957,
0.05779212340712547,
0.34668445587158203,
-0.0036737173795700073,
-0.07816632837057114,
0.34552547335624695,
0.2027907520532608,
-0.3903522193431854,
-0.035228431224823,
0.13110138475894928,
-0.020605988800525665,
-0.2782936096191406,
0.0426180325448513,
-0.15418511629104614,
0.16440941393375397,
0.31330204010009766,
-0.3648086190223694,
-0.11994406580924988,
-0.10138256102800369,
0.3564152717590332,
-0.26058223843574524,
0.015446536242961884,
-0.11930820345878601,
0.13402482867240906,
-0.07765509188175201,
-0.04521411284804344,
-0.06826049089431763,
0.0828443169593811,
-0.07097034901380539,
0.25569403171539307,
-0.06393707543611526,
-0.3214077055454254,
0.2498634159564972,
-0.12514980137348175,
-0.25171175599098206,
-0.06535159796476364,
0.1504540592432022,
-0.4629356265068054,
-0.15727341175079346,
0.09205517172813416,
0.10184872150421143,
0.4866563081741333,
0.11138027906417847,
0.4011414051055908,
-0.31419628858566284,
-0.03298494219779968,
0.14621326327323914,
0.12907394766807556,
-0.18243476748466492,
0.6450850367546082,
-0.14329762756824493,
-0.14515091478824615,
0.05702715739607811,
0.11644012480974197,
0.38429325819015503,
-0.04621892049908638,
0.21325089037418365,
0.15160858631134033,
-0.1438690423965454,
-0.2672666609287262,
-0.1400873214006424,
-0.1376992166042328,
0.0716613158583641,
0.21397288143634796,
-0.11587733775377274,
-0.18282459676265717,
0.1562100648880005,
-0.22691205143928528,
-0.18323534727096558,
0.16157953441143036,
-0.31056612730026245,
-0.2790355682373047,
-0.11833681911230087,
0.1062585860490799,
-0.05227620527148247,
0.23759058117866516,
-0.08727063238620758,
0.18049271404743195,
-0.08684802800416946,
0.4261009395122528,
-0.37058162689208984,
-0.021444078534841537,
-0.1634516566991806,
0.1651088148355484,
0.3253675401210785,
-0.02462635189294815,
0.015283978544175625,
0.14704649150371552,
0.1758808195590973,
0.19756801426410675,
-0.198069766163826,
-0.30650633573532104,
0.15625037252902985,
0.04775702953338623,
-0.12288064509630203,
0.014831386506557465,
0.18093609809875488,
0.08752796798944473,
-0.44227904081344604,
-0.377424418926239,
0.10156330466270447,
-0.008637107908725739,
-0.0991133600473404,
0.0038011353462934494,
0.36277052760124207,
-0.0334005132317543,
0.14551956951618195,
-0.005868252366781235,
0.06340805441141129,
-0.0765865296125412,
-0.12441861629486084,
0.34100669622421265,
0.19389113783836365,
-0.11760003864765167,
0.1448967307806015,
-0.11721426993608475,
0.1600017100572586,
-0.11598362773656845,
0.24349024891853333,
0.044868603348731995,
-0.26004984974861145,
-0.0980302020907402,
0.4227243661880493,
0.3529418706893921,
0.22676122188568115,
0.09674116224050522,
0.07209347188472748,
0.22893930971622467,
-0.17389385402202606,
-0.11638495326042175,
0.651226818561554,
0.01669798605144024,
0.4703912138938904,
-0.015764988958835602,
0.08511671423912048,
0.5125302672386169,
-0.03652464598417282,
0.0038916412740945816,
0.0008234260603785515,
-0.3297492265701294,
0.07687439024448395,
-0.06887917220592499,
0.215485081076622,
-0.10737457871437073,
-0.054069459438323975,
-0.0920076072216034,
0.145746111869812,
0.14219880104064941,
-0.017803028225898743,
0.845295250415802,
-0.13183507323265076,
0.054204657673835754,
0.1747167706489563,
-0.26613378524780273,
0.10452224314212799,
0.12426014244556427,
0.07839439809322357,
0.326467901468277,
0.05459783598780632,
0.07711809873580933,
0.08855869621038437,
-0.4675461947917938,
-0.16528883576393127,
0.6315931081771851,
-0.07642637193202972,
-0.24111700057983398,
-0.0466100312769413,
-0.026271313428878784,
-0.0856410562992096,
-0.010362936183810234,
0.2047717124223709,
0.06208787113428116,
0.597996711730957,
0.08511170744895935,
0.4313574433326721,
0.06767501682043076,
-0.017910458147525787,
-0.09406056255102158,
0.38158345222473145,
-0.09178677201271057,
-0.14649353921413422,
0.18080931901931763,
-0.20791849493980408,
-0.2164742648601532,
0.23285670578479767,
0.10202924907207489,
0.18162286281585693,
-0.06675323843955994,
0.45362672209739685,
-0.23254744708538055,
-0.009597649797797203,
-0.24298284947872162,
0.24013201892375946,
-0.15554159879684448,
0.11961036920547485,
0.34488415718078613,
0.11267109215259552,
-0.1828778237104416,
-0.3477281630039215,
-0.08739984035491943,
0.018353724852204323,
-0.2619008719921112,
0.15967988967895508,
0.0909973531961441,
-0.26788532733917236,
0.022400924935936928,
0.06592805683612823,
-0.32292094826698303,
-0.2946969270706177,
0.599860668182373,
-0.5497961640357971,
-0.06027425825595856,
0.07827552407979965,
0.13139408826828003,
-0.23611590266227722,
0.6309192776679993,
0.04592500999569893,
0.39572733640670776,
-0.03250925987958908,
-0.09843431413173676,
-0.4964113235473633,
-0.14138537645339966,
-0.1640995889902115,
0.06147848814725876,
0.09781186282634735,
0.4516776204109192,
0.22575852274894714,
0.3760365843772888,
0.003735177218914032,
-0.37370842695236206,
0.009311548434197903,
0.17768752574920654,
-0.45793071389198303,
0.10844843089580536,
-0.41925323009490967,
-0.2052958458662033,
0.19981881976127625,
-0.3315635025501251,
0.24845626950263977,
0.06719929724931717,
0.11896822601556778,
-0.1650654375553131,
0.11831046640872955,
0.5072966814041138,
0.007178105413913727,
0.06850055605173111,
0.006912529468536377,
0.3343532681465149,
-0.24958935379981995,
0.02704612724483013,
-0.167787104845047,
0.12006597220897675,
-0.27089807391166687,
0.011997077614068985,
-0.03570527955889702,
0.3253626525402069,
-0.15582528710365295,
-0.10593940317630768,
-0.06966203451156616,
-0.004154082387685776,
-0.11985031515359879,
-0.21383731067180634,
0.08234358578920364,
0.01794872246682644,
0.17027729749679565,
0.2766762971878052,
-0.10189760476350784,
0.44295769929885864,
0.06408083438873291,
0.12118837237358093,
-0.11469466984272003,
-0.12873660027980804,
0.3002871870994568,
-0.4690984785556793,
-0.24098871648311615,
-0.3412497043609619,
0.07182539999485016,
-0.17410746216773987,
0.3793017268180847,
-0.3779059648513794,
-0.2622276544570923,
0.2299673855304718,
-0.08290251344442368,
-0.08098983764648438,
0.5007375478744507,
0.13113176822662354,
-0.3234911262989044,
-0.1377526968717575,
-0.2630755305290222,
-0.04669387638568878,
-0.31119590997695923,
-0.08744081854820251,
-0.16571877896785736
] |
https://github.com/huggingface/datasets/issues/426 | [FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter | Multiprocessing was added in #552 . You can set the number of processes with `.map(..., num_proc=...)`. It also works for `filter`
Closing this one, but feel free to reo-open if you have other questions | It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together? | 34 | [FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter
It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together?
Multiprocessing was added in #552 . You can set the number of processes with `.map(..., num_proc=...)`. It also works for `filter`
Closing this one, but feel free to reo-open if you have other questions | [
-0.31180912256240845,
-0.20808042585849762,
-0.17793230712413788,
-0.17304669320583344,
-0.34365034103393555,
-0.11131708323955536,
0.1971551477909088,
0.2835273742675781,
0.03925768658518791,
0.07929794490337372,
-0.07674509286880493,
0.3925560712814331,
-0.05090491473674774,
0.35081717371940613,
-0.040817804634571075,
-0.16574890911579132,
0.07918105274438858,
0.13079939782619476,
-0.11498965322971344,
0.06480187922716141,
-0.06831885874271393,
0.05583716183900833,
-0.16731202602386475,
-0.07109880447387695,
-0.1849103420972824,
-0.13211286067962646,
-0.14065448939800262,
-0.01669933646917343,
0.06625314056873322,
-0.2419360876083374,
0.03186565637588501,
0.4328879714012146,
-0.17550456523895264,
0.07039659470319748,
-0.00009809882612898946,
-0.2013363540172577,
0.2006983608007431,
0.17781385779380798,
-0.1014167070388794,
0.3299800753593445,
-0.2782137095928192,
-0.4332960247993469,
0.03836962580680847,
-0.24761253595352173,
0.149122953414917,
0.2048671841621399,
0.2674974203109741,
-0.2454681098461151,
0.19226959347724915,
-0.18128333985805511,
0.2317156344652176,
0.20431607961654663,
-0.115180604159832,
0.2320508062839508,
-0.10504946857690811,
0.18079718947410583,
-0.09229758381843567,
-0.27464544773101807,
0.37288907170295715,
-0.16939079761505127,
-0.33222565054893494,
0.5420417189598083,
-0.24297188222408295,
0.1591806709766388,
0.13803106546401978,
-0.08978459239006042,
0.13106949627399445,
-0.3727108836174011,
-0.11799033731222153,
0.25997844338417053,
-0.05391442030668259,
-0.13539180159568787,
-0.3391510844230652,
-0.27347782254219055,
-0.20564024150371552,
-0.4567808210849762,
-0.21214112639427185,
0.08968080580234528,
-0.20254331827163696,
-0.11866791546344757,
-0.3784824311733246,
-0.2798655927181244,
0.26430195569992065,
-0.19410733878612518,
0.23180237412452698,
0.3839836120605469,
0.22918801009655,
0.06884737312793732,
0.17879939079284668,
-0.2928031086921692,
-0.1345086544752121,
-0.2245156466960907,
0.09036482870578766,
0.00940285250544548,
-0.5751149654388428,
-0.13058346509933472,
0.09208816289901733,
0.07423824816942215,
0.07725473493337631,
0.039453621953725815,
0.08628001809120178,
0.34193989634513855,
0.17569994926452637,
0.2525445818901062,
0.034118786454200745,
-0.34200724959373474,
0.2699638307094574,
-0.04827364906668663,
0.09755979478359222,
-0.2677499055862427,
-0.20286667346954346,
0.30064982175827026,
0.17569071054458618,
-0.11668848991394043,
-0.18955779075622559,
0.06903915107250214,
-0.08177279680967331,
0.1161874383687973,
0.053116150200366974,
-0.3807055354118347,
0.1933639943599701,
-0.17856881022453308,
0.11732114851474762,
0.12444569170475006,
0.01752636954188347,
0.28645074367523193,
-0.22578462958335876,
-0.21211685240268707,
-0.26770272850990295,
-0.2029416263103485,
-0.15252138674259186,
0.007456210441887379,
-0.06091509759426117,
0.08463319391012192,
0.14583377540111542,
0.23188146948814392,
-0.032923050224781036,
0.08723483234643936,
0.06805276870727539,
0.3604515492916107,
0.25508347153663635,
-0.08515611290931702,
0.0856151133775711,
0.1747235506772995,
-0.04975464195013046,
-0.10488422960042953,
-0.18602895736694336,
0.005004778504371643,
-0.33728718757629395,
-0.0475945770740509,
-0.21842128038406372,
-0.09545423090457916,
-0.026066286489367485,
0.21722649037837982,
0.12907764315605164,
-0.031236618757247925,
-0.17675471305847168,
0.5951274037361145,
0.011326596140861511,
-0.14511500298976898,
-0.38268494606018066,
-0.06070425361394882,
-0.3916884958744049,
-0.23387391865253448,
0.2800227105617523,
0.10818491876125336,
0.04726497456431389,
0.040640898048877716,
-0.2878504991531372,
-0.028380371630191803,
0.3236940801143646,
0.2599790692329407,
-0.14319486916065216,
-0.014988504350185394,
-0.043638065457344055,
0.5232226252555847,
0.5169826745986938,
-0.02682710811495781,
0.05300138145685196,
0.4043428897857666,
-0.13246673345565796,
-0.055330540984869,
0.28624483942985535,
0.22779355943202972,
0.22586968541145325,
-0.06350109726190567,
0.04824560880661011,
0.5034410953521729,
-0.2482093870639801,
0.29106083512306213,
-0.09094495326280594,
-0.10397256910800934,
0.09812480211257935,
0.10331861674785614,
0.027224106714129448,
0.03126803785562515,
0.027978986501693726,
-0.2089792937040329,
0.41577231884002686,
-0.23041316866874695,
0.17091554403305054,
0.021493200212717056,
-0.057712677866220474,
-0.1529524028301239,
-0.12219893932342529,
-0.301199734210968,
-0.28430038690567017,
0.09867004305124283,
-0.17949743568897247,
-0.007939815521240234,
0.1824820339679718,
-0.3726179599761963,
0.3392183184623718,
0.11650974303483963,
0.09805010259151459,
0.13064076006412506,
0.27332592010498047,
0.3272750973701477,
0.073117196559906,
-0.3091559410095215,
-0.15739375352859497,
0.169681116938591,
0.017495689913630486,
-0.1916557103395462,
-0.12075036764144897,
0.2065017968416214,
0.09378822147846222,
-0.15174542367458344,
0.16741132736206055,
0.10590866208076477,
0.049689047038555145,
-0.034613341093063354,
0.19245821237564087,
0.016988437622785568,
-0.04596081003546715,
0.3286036252975464,
0.6206995248794556,
0.2523433268070221,
0.1050928458571434,
0.17444847524166107,
-0.00919930450618267,
-0.13139811158180237,
-0.010349750518798828,
-0.12949663400650024,
-0.1501307487487793,
0.49557924270629883,
0.042268022894859314,
0.37631067633628845,
0.22617389261722565,
0.07796008139848709,
0.2708156704902649,
-0.04746440425515175,
-0.08961408585309982,
0.16306740045547485,
0.16361741721630096,
-0.021211612969636917,
-0.11455780267715454,
0.26523223519325256,
-0.427834689617157,
0.3981325328350067,
0.49630624055862427,
0.1293104887008667,
-0.042588770389556885,
0.08808451890945435,
0.25109583139419556,
-0.14944875240325928,
0.188910573720932,
0.14422255754470825,
0.21221968531608582,
0.29624107480049133,
0.18685756623744965,
-0.14146912097930908,
-0.10816193372011185,
-0.03511954843997955,
0.1874665766954422,
0.1344645917415619,
0.23699110746383667,
0.07469290494918823,
0.10961883515119553,
-0.2849854826927185,
-0.21900507807731628,
-0.38902747631073,
0.16565369069576263,
-0.06170839071273804,
0.08153979480266571,
-0.08099056780338287,
-0.2183191031217575,
-0.155760258436203,
-0.03165769204497337,
0.21919582784175873,
-0.219159334897995,
-0.33720409870147705,
0.10163133591413498,
0.16401271522045135,
-0.22361689805984497,
0.19871953129768372,
0.1181524246931076,
0.16232383251190186,
-0.18388047814369202,
0.1328248381614685,
-0.1803705394268036,
-0.11766978353261948,
-0.007628817111253738,
0.1361314207315445,
0.30378541350364685,
0.3785470426082611,
0.46649911999702454,
0.18686001002788544,
0.07074111700057983,
-0.3563062250614166,
-0.18309339880943298,
-0.059596702456474304,
-0.15244905650615692,
0.09218695014715195,
-0.025097571313381195,
-0.03866124153137207,
-0.2330758273601532,
-0.390651136636734,
0.15926587581634521,
0.04928175359964371,
-0.15214432775974274,
-0.13262610137462616,
0.016596879810094833,
-0.03526755049824715,
-0.05127241834998131,
-0.2436923384666443,
-0.4269725978374481,
-0.42753463983535767,
0.35866957902908325,
-0.18083281815052032,
0.3601452708244324,
-0.33180439472198486,
-0.07437261193990707,
-0.03036029264330864,
-0.24774658679962158,
0.07954258471727371,
0.08812598884105682,
-0.28296440839767456,
0.08574911206960678,
-0.0766463503241539,
-0.19642479717731476,
-0.29261231422424316,
-0.09881238639354706,
0.042691800743341446,
0.3463364839553833,
-0.08477649837732315,
-0.0028072725981473923,
-0.2195993810892105,
0.15388008952140808,
0.26124364137649536,
-0.058814212679862976,
0.16578827798366547,
0.05103497952222824,
-0.22152869403362274,
0.11237528175115585,
-0.24121110141277313,
0.15038910508155823,
-0.13207611441612244,
-0.1409626007080078,
0.14404015243053436,
0.303394079208374,
-0.01527913473546505,
0.531575620174408,
0.1151203066110611,
-0.1121068149805069,
0.02155427634716034,
0.10985749959945679,
-0.18576689064502716,
0.17432811856269836,
-0.44033730030059814,
0.00020350748673081398,
-0.1181219220161438,
0.03276357427239418,
0.13109993934631348,
-0.11729664355516434,
-0.5028038620948792,
-0.02726873755455017,
0.0582263208925724,
-0.19815534353256226,
-0.1705223172903061,
0.2018118053674698,
-0.19893291592597961,
0.2783459424972534,
0.08017995953559875,
-0.3016016185283661,
-0.3575442433357239,
0.07432962208986282,
-0.2680959701538086,
-0.02703290432691574,
0.2139936089515686,
-0.1887502670288086,
-0.47727593779563904,
-0.1842854917049408,
-0.546843945980072,
0.3180507719516754,
0.13745205104351044,
0.11324331909418106,
-0.05436400696635246,
-0.0037839822471141815,
-0.05917353928089142,
-0.17515349388122559,
0.47368335723876953,
-0.30199700593948364,
-0.1694517582654953,
0.29560136795043945,
-0.3368088901042938,
0.03151576220989227,
0.21253575384616852,
-0.07062704861164093,
0.4595477879047394,
0.46838775277137756,
0.2617394030094147,
-0.33239293098449707,
-0.3635455071926117,
0.16683481633663177,
0.06840330362319946,
-0.0942506343126297,
0.020264003425836563,
-0.12934444844722748,
-0.06941312551498413,
-0.2078358680009842,
0.11281999945640564,
-0.08659951388835907,
0.1333027333021164,
-0.0364210307598114,
-0.1267881840467453,
-0.13072964549064636,
0.007930237799882889,
0.3029809594154358,
0.08265182375907898,
-0.03281240910291672,
0.2658090591430664,
0.23775780200958252,
-0.34883931279182434,
0.22704385221004486,
-0.15229631960391998,
-0.01997184008359909,
-0.18435660004615784,
0.134445920586586,
-0.06265324354171753,
-0.06927476078271866,
0.5562537908554077,
0.250216007232666,
0.18348121643066406,
0.31053823232650757,
-0.07539045810699463,
0.4139237403869629,
-0.15326109528541565,
0.011447364464402199,
0.3346480429172516,
0.15990713238716125,
-0.20390848815441132,
-0.22294196486473083,
0.2769014835357666,
0.26945194602012634,
-0.12536583840847015,
0.38237619400024414,
-0.24211002886295319,
-0.07111161947250366,
0.2561420202255249,
0.12500068545341492,
0.6941608190536499,
-0.254799485206604,
0.04514584317803383,
-0.25149571895599365,
0.14510700106620789,
0.32487815618515015,
-0.2804262936115265,
0.21949772536754608,
-0.05861908569931984,
-0.18636289238929749,
0.14323005080223083,
0.01922306790947914,
0.19099891185760498,
0.4685850739479065,
-0.265611857175827,
0.1729699969291687,
0.2839282751083374,
-0.17429183423519135,
-0.0782829150557518,
0.4526761472225189,
0.14737056195735931,
-0.409493088722229,
-0.1683618724346161,
0.16090987622737885,
-0.04781387746334076,
-0.3570648431777954,
0.038035210222005844,
-0.29775816202163696,
0.18695984780788422,
0.17041100561618805,
-0.3053106665611267,
-0.016286473721265793,
0.134939044713974,
0.37028539180755615,
-0.26351064443588257,
-0.010327756404876709,
-0.22824059426784515,
0.08044999837875366,
-0.16402369737625122,
0.028227634727954865,
0.013841946609318256,
0.11218434572219849,
-0.13298088312149048,
0.24834702908992767,
-0.17284242808818817,
-0.2532653212547302,
0.19582685828208923,
-0.25327548384666443,
-0.180816188454628,
-0.033478088676929474,
0.06692085415124893,
-0.5287503004074097,
-0.14466316998004913,
0.15387772023677826,
0.09375376999378204,
0.38998815417289734,
0.03030804917216301,
0.3620775640010834,
-0.4090331196784973,
-0.18282604217529297,
0.19328130781650543,
0.23135335743427277,
-0.22004404664039612,
0.5411831736564636,
0.15862064063549042,
-0.10134641826152802,
-0.003401026129722595,
0.08322440832853317,
0.28915518522262573,
0.006169266998767853,
0.2480875849723816,
0.06553006172180176,
-0.20691266655921936,
-0.3257483243942261,
-0.20691373944282532,
-0.22690919041633606,
0.053373903036117554,
0.3017611503601074,
-0.13788433372974396,
-0.21424850821495056,
0.061209313571453094,
-0.12858085334300995,
-0.12593476474285126,
0.136589914560318,
-0.21727502346038818,
-0.18879061937332153,
-0.14223326742649078,
0.09681233018636703,
-0.23314149677753448,
0.1975516527891159,
-0.0019942931830883026,
0.05190771073102951,
0.03665953874588013,
0.4807845950126648,
-0.43443307280540466,
-0.12753382325172424,
-0.31877601146698,
0.2330355942249298,
0.27375131845474243,
-0.04720500111579895,
-0.18614476919174194,
0.2489391714334488,
0.23555800318717957,
0.1225072368979454,
-0.1975659430027008,
-0.35291483998298645,
0.21409635245800018,
0.038699835538864136,
-0.15224942564964294,
0.06883554905653,
0.07611632347106934,
0.1387799233198166,
-0.31819668412208557,
-0.30290165543556213,
-0.1315651834011078,
-0.18980151414871216,
-0.07963061332702637,
0.07646656036376953,
0.22175124287605286,
-0.25930869579315186,
0.3350774645805359,
0.021441660821437836,
0.08406422287225723,
-0.1367722898721695,
-0.2212950736284256,
0.34796398878097534,
0.1634102612733841,
-0.22237250208854675,
0.23424865305423737,
-0.08718652278184891,
0.0017214491963386536,
-0.13127225637435913,
0.26632294058799744,
0.040794581174850464,
-0.2608647644519806,
-0.019350681453943253,
0.37146541476249695,
0.3568585216999054,
0.23907338082790375,
0.1567327380180359,
0.09422095119953156,
0.2489311546087265,
-0.3249037563800812,
-0.16936978697776794,
0.5596205592155457,
-0.03390746936202049,
0.33835816383361816,
-0.15672749280929565,
0.21891435980796814,
0.24029383063316345,
0.08322431892156601,
0.047228217124938965,
-0.08509912341833115,
-0.3423672914505005,
-0.022366436198353767,
-0.0906851589679718,
0.3015962243080139,
-0.07772612571716309,
0.11497583240270615,
0.12277983129024506,
0.18773290514945984,
0.17688661813735962,
-0.016961999237537384,
0.7731493711471558,
-0.05366508662700653,
0.2881838381290436,
0.1529937982559204,
-0.12935301661491394,
0.16693662106990814,
0.19242781400680542,
0.07116423547267914,
0.19933447241783142,
0.1327948272228241,
0.15432333946228027,
0.037275392562150955,
-0.4504740834236145,
-0.21498166024684906,
0.6825037002563477,
-0.15054330229759216,
-0.323541522026062,
-0.09154626727104187,
-0.1169138103723526,
-0.16023868322372437,
0.09446501731872559,
0.12781304121017456,
0.17653995752334595,
0.6568737030029297,
0.01506292074918747,
0.3660639524459839,
-0.07144919782876968,
0.16607633233070374,
-0.15782126784324646,
0.3040831387042999,
-0.2052639275789261,
-0.2164440006017685,
0.14202654361724854,
-0.18921035528182983,
-0.06551674008369446,
0.35632559657096863,
0.24882814288139343,
0.28482353687286377,
-0.1441098302602768,
0.27260223031044006,
-0.29566818475723267,
-0.05943628400564194,
-0.3789011538028717,
0.2486138641834259,
0.014597445726394653,
0.04570493474602699,
0.45209139585494995,
0.15371018648147583,
-0.20739354193210602,
-0.2555697560310364,
0.052930742502212524,
0.01084938831627369,
-0.23080357909202576,
0.19992749392986298,
0.15418574213981628,
-0.19070899486541748,
-0.061172641813755035,
0.05794436112046242,
-0.49015480279922485,
-0.25927621126174927,
0.5490933060646057,
-0.4322652816772461,
-0.019617469981312752,
-0.1755620539188385,
0.15285956859588623,
-0.20012199878692627,
0.6736971139907837,
0.0027888938784599304,
0.3433558940887451,
-0.026459943503141403,
-0.25500813126564026,
-0.5719372630119324,
-0.3019404113292694,
-0.0900588184595108,
-0.0563809871673584,
0.18245697021484375,
0.5611231327056885,
0.1624622941017151,
0.27249157428741455,
-0.1371915191411972,
-0.2531251609325409,
-0.07214778661727905,
0.05833905190229416,
-0.41925591230392456,
0.2377564162015915,
-0.12380585074424744,
-0.07895153760910034,
0.15404297411441803,
-0.322090208530426,
0.31573396921157837,
0.016088202595710754,
0.20289841294288635,
-0.09456758946180344,
0.026144057512283325,
0.49068158864974976,
0.19405265152454376,
-0.1569819152355194,
0.14602649211883545,
0.3112103343009949,
-0.3373524248600006,
-0.0026021767407655716,
-0.1494635045528412,
0.10653411597013474,
-0.16622106730937958,
-0.09496422857046127,
0.0439925342798233,
0.3311823308467865,
-0.16196028888225555,
0.256804883480072,
-0.044105008244514465,
0.21646328270435333,
-0.2096712440252304,
-0.04306750372052193,
0.18071182072162628,
0.02991139329969883,
0.14887258410453796,
0.2463066130876541,
-0.14018504321575165,
0.27373799681663513,
-0.007809169590473175,
0.03374172002077103,
-0.14305734634399414,
-0.21259626746177673,
0.24097566306591034,
-0.39516976475715637,
-0.24289122223854065,
-0.34730449318885803,
0.2190297245979309,
0.04085257649421692,
0.32732558250427246,
-0.24652820825576782,
-0.3446033000946045,
0.21228916943073273,
-0.034867025911808014,
-0.0191139318048954,
0.4801189601421356,
-0.13468515872955322,
-0.28613775968551636,
-0.1634637415409088,
-0.29623886942863464,
0.04627352952957153,
-0.2897835373878479,
-0.16702055931091309,
-0.28161388635635376
] |
https://github.com/huggingface/datasets/issues/426 | [FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter | @lhoestq Great feature implemented! Do you have plans to add it to official tutorials [Processing data in a Dataset](https://huggingface.co/docs/datasets/processing.html?highlight=save#augmenting-the-dataset)? It took me sometime to find this parallel processing api. | It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together? | 29 | [FEATURE REQUEST] Multiprocessing with for dataset.map, dataset.filter
It would be nice to be able to speed up `dataset.map` or `dataset.filter`. Perhaps this is as easy as sharding the dataset sending each shard to a process/thread/dask pool and using the new `nlp.concatenate_dataset()` function to join them all together?
@lhoestq Great feature implemented! Do you have plans to add it to official tutorials [Processing data in a Dataset](https://huggingface.co/docs/datasets/processing.html?highlight=save#augmenting-the-dataset)? It took me sometime to find this parallel processing api. | [
-0.260876327753067,
-0.4052208960056305,
-0.1671195924282074,
0.024264812469482422,
-0.3476995825767517,
0.10837904363870621,
0.09586949646472931,
0.10010935366153717,
0.009775612503290176,
0.07798170298337936,
-0.12978820502758026,
0.2687847316265106,
0.02880452200770378,
0.5679565072059631,
0.03521895408630371,
-0.3084893226623535,
0.07579703629016876,
0.126046821475029,
-0.047758251428604126,
0.1972438544034958,
0.01976367086172104,
0.15983974933624268,
-0.2788153886795044,
-0.12523263692855835,
-0.24529089033603668,
-0.16340817511081696,
-0.19110329449176788,
-0.01965194195508957,
-0.05949763208627701,
-0.15034648776054382,
0.04616725444793701,
0.487173855304718,
-0.2316056191921234,
0.23612862825393677,
-0.00010790780652314425,
-0.20297463238239288,
0.15033158659934998,
0.229871928691864,
-0.053766921162605286,
0.2007024586200714,
-0.19346579909324646,
-0.4777650833129883,
-0.014705628156661987,
-0.07633715867996216,
0.059220366179943085,
0.11958194524049759,
0.17781008780002594,
-0.26913148164749146,
0.19042959809303284,
-0.37261271476745605,
0.12446174025535583,
0.3582201898097992,
-0.05452631041407585,
0.2704075276851654,
-0.20980238914489746,
0.4646006226539612,
-0.07393055409193039,
-0.19201026856899261,
0.4698047637939453,
-0.14419607818126678,
-0.19066214561462402,
0.5513608455657959,
-0.2167665660381317,
0.14672133326530457,
0.20115408301353455,
-0.0467660017311573,
-0.1824129819869995,
-0.44957634806632996,
-0.15063044428825378,
0.35382014513015747,
-0.024054668843746185,
-0.13829699158668518,
-0.503716766834259,
-0.45089414715766907,
-0.13390497863292694,
-0.40863996744155884,
-0.17068594694137573,
0.11095359921455383,
-0.19540341198444366,
0.03099946677684784,
-0.488488107919693,
-0.36457905173301697,
0.27956831455230713,
-0.18786419928073883,
0.2982880175113678,
0.21118803322315216,
0.004194208420813084,
0.09641894698143005,
0.2584792375564575,
-0.19326508045196533,
-0.2565290629863739,
-0.27721238136291504,
0.1194256842136383,
0.03377336263656616,
-0.6784651875495911,
-0.060389626771211624,
-0.00656089186668396,
0.1300584077835083,
0.1923830807209015,
0.129011869430542,
0.10125616937875748,
0.3147672414779663,
-0.022961391136050224,
0.22534185647964478,
0.1074017733335495,
-0.3512951135635376,
0.17503340542316437,
-0.11528927087783813,
0.1311008632183075,
-0.19044016301631927,
-0.02981400676071644,
0.20257532596588135,
0.21382761001586914,
-0.05181723088026047,
-0.4135623574256897,
0.029281428083777428,
0.027736511081457138,
0.10041560232639313,
0.07463265210390091,
-0.3755647540092468,
0.18564894795417786,
-0.29914188385009766,
0.14104144275188446,
0.04199444502592087,
-0.00958641991019249,
0.33973097801208496,
-0.14180779457092285,
-0.13328401744365692,
-0.23400546610355377,
-0.23821128904819489,
-0.09717049449682236,
-0.05162467435002327,
-0.033197786659002304,
0.27810266613960266,
0.12049978971481323,
0.044281862676143646,
-0.05068248510360718,
0.14772818982601166,
0.143982395529747,
0.2672163248062134,
0.20750387012958527,
-0.12425526976585388,
0.06952608376741409,
0.18338964879512787,
-0.07269161194562912,
-0.03839598968625069,
-0.11696577072143555,
0.2222469300031662,
-0.2571868896484375,
-0.09597038477659225,
-0.2205815613269806,
-0.20751619338989258,
-0.1869586557149887,
0.07734818756580353,
0.10482582449913025,
-0.1092589795589447,
-0.47877100110054016,
0.7779139876365662,
0.07130896300077438,
-0.011500801891088486,
-0.2945772409439087,
0.02274894341826439,
-0.5353255271911621,
-0.18172495067119598,
0.34166502952575684,
0.12842048704624176,
-0.0485655851662159,
-0.036540742963552475,
-0.2228347361087799,
-0.10784423351287842,
0.2403545081615448,
0.4414246678352356,
-0.20170165598392487,
0.1292136013507843,
-0.17854398488998413,
0.48366057872772217,
0.514218270778656,
-0.12952515482902527,
0.08300092071294785,
0.3742533028125763,
-0.1477961242198944,
0.07080470025539398,
0.31427568197250366,
0.19002914428710938,
0.20826281607151031,
0.02761399745941162,
0.14447271823883057,
0.5401509404182434,
-0.19802320003509521,
0.223097026348114,
0.00595521554350853,
-0.18978184461593628,
0.22617118060588837,
0.16229964792728424,
-0.15246479213237762,
0.08584810048341751,
-0.07611092180013657,
-0.5189328193664551,
0.48664164543151855,
-0.2974568009376526,
0.15626028180122375,
0.05890179052948952,
-0.13139569759368896,
0.09266030788421631,
-0.0669747069478035,
-0.32717379927635193,
-0.35985153913497925,
0.06885445863008499,
-0.04177864268422127,
-0.04910854995250702,
0.08304718881845474,
-0.3939547538757324,
0.41556626558303833,
0.09817161411046982,
0.02685648947954178,
0.00865856558084488,
0.10695809125900269,
0.18124549090862274,
0.1519804298877716,
-0.2360934466123581,
-0.3061075806617737,
0.3358490467071533,
-0.07996763288974762,
-0.01236589252948761,
-0.3526894748210907,
0.2138342559337616,
0.25085529685020447,
-0.055325500667095184,
0.04190436005592346,
0.12120640277862549,
-0.05146092176437378,
-0.1264786273241043,
0.142765074968338,
-0.003184240311384201,
-0.049305740743875504,
0.25501853227615356,
0.655081033706665,
0.26540279388427734,
0.2627618610858917,
0.07855652272701263,
0.023095404729247093,
-0.2753274738788605,
0.03824688494205475,
-0.21530508995056152,
-0.16839736700057983,
0.5540850162506104,
-0.04102398827672005,
0.402304083108902,
0.09175561368465424,
-0.013163091614842415,
0.23495975136756897,
0.07330122590065002,
-0.07017591595649719,
0.21059852838516235,
0.15266907215118408,
-0.08113256096839905,
0.0270828939974308,
0.14318881928920746,
-0.4629766345024109,
0.34152644872665405,
0.44022250175476074,
0.0058711133897304535,
-0.2078661322593689,
0.0840371772646904,
0.1872197389602661,
-0.11107748746871948,
0.19678813219070435,
0.02382070943713188,
0.18814903497695923,
0.18847444653511047,
0.050334908068180084,
-0.04544251412153244,
0.10284826904535294,
-0.06637237966060638,
0.11767333000898361,
0.32051461935043335,
0.21684792637825012,
-0.0265251025557518,
0.16707468032836914,
-0.23632557690143585,
-0.28278282284736633,
-0.2901483476161957,
0.1736861914396286,
-0.10771025717258453,
0.019660580903291702,
-0.06152764707803726,
-0.18522022664546967,
-0.19124144315719604,
-0.04619458690285683,
0.04788732901215553,
-0.3056800067424774,
-0.3041766285896301,
-0.08128046989440918,
0.3092374801635742,
-0.05187202990055084,
0.07619810849428177,
0.22129009664058685,
0.21300682425498962,
-0.1976548284292221,
-0.008133763447403908,
-0.28180044889450073,
0.012489968910813332,
0.12855301797389984,
0.03139229118824005,
0.3022118806838989,
0.3320910632610321,
0.4555436074733734,
0.12329500168561935,
0.0910324677824974,
-0.4455692768096924,
-0.2040766179561615,
-0.0179644376039505,
-0.2767614722251892,
0.13668547570705414,
0.12262202799320221,
0.12018027901649475,
-0.1607811152935028,
-0.2790885269641876,
0.1972426474094391,
0.10888086259365082,
-0.21220792829990387,
-0.2680942416191101,
0.060880135744810104,
-0.024981696158647537,
-0.024112677201628685,
-0.1490214765071869,
-0.479573518037796,
-0.33439162373542786,
0.594211220741272,
-0.2876608669757843,
0.22768843173980713,
-0.33080723881721497,
-0.119330495595932,
-0.0027462798170745373,
-0.3504946827888489,
0.06652827560901642,
0.01905108615756035,
-0.47189590334892273,
0.02088228240609169,
0.011857470497488976,
-0.11374872922897339,
-0.2490854412317276,
-0.019860180094838142,
-0.06454044580459595,
0.23783205449581146,
-0.0836322233080864,
-0.10059993714094162,
-0.35888275504112244,
0.2384418249130249,
0.2121088057756424,
0.09817944467067719,
0.27783310413360596,
-0.07961267977952957,
-0.07055730372667313,
0.13386023044586182,
-0.48005765676498413,
0.0397939570248127,
-0.0009138509631156921,
-0.16053327918052673,
0.26321807503700256,
0.36091578006744385,
0.0008577331900596619,
0.7097068428993225,
0.23044198751449585,
-0.04740303382277489,
0.13507547974586487,
0.12800417840480804,
-0.16661031544208527,
0.056813571602106094,
-0.5510416030883789,
-0.035117559134960175,
-0.16229194402694702,
0.07030623406171799,
0.024874918162822723,
-0.0346963107585907,
-0.24920319020748138,
-0.09008863568305969,
0.01626967266201973,
-0.3376837372779846,
-0.0910869687795639,
0.08674655854701996,
-0.04715458303689957,
0.23084384202957153,
0.07602542638778687,
-0.3100883960723877,
-0.2607216238975525,
0.054156266152858734,
-0.20187045633792877,
0.1385478377342224,
0.34857290983200073,
-0.1705934703350067,
-0.5018061995506287,
-0.13230471312999725,
-0.637437641620636,
0.4433450698852539,
0.24806079268455505,
0.039876822382211685,
0.008630339056253433,
0.06634373962879181,
0.13119465112686157,
-0.19644783437252045,
0.7243830561637878,
-0.25577786564826965,
-0.3600911498069763,
0.22711509466171265,
-0.5849371552467346,
0.08722994476556778,
0.19748938083648682,
0.07061466574668884,
0.40892401337623596,
0.43235307931900024,
0.4398614466190338,
-0.3128744661808014,
-0.4502796232700348,
0.2078809291124344,
0.10225025564432144,
-0.06412652879953384,
-0.010884132236242294,
-0.15863217413425446,
-0.07439025491476059,
-0.2673551142215729,
0.10518430173397064,
-0.04299376159906387,
0.07704970985651016,
0.0950402021408081,
-0.04558783024549484,
-0.07072282582521439,
0.018345046788454056,
0.19131341576576233,
-0.016174279153347015,
-0.06983571499586105,
0.242173969745636,
0.299871027469635,
-0.0922841727733612,
0.0946187749505043,
-0.06918202340602875,
0.15996700525283813,
-0.12372289597988129,
-0.19600510597229004,
-0.07253222912549973,
-0.03381478786468506,
0.6675153374671936,
0.24533429741859436,
0.22986750304698944,
0.3670387268066406,
0.0978979542851448,
0.38566553592681885,
-0.4025580883026123,
0.025354549288749695,
0.4367719888687134,
0.22923536598682404,
-0.3920319080352783,
-0.30549779534339905,
0.3532455861568451,
0.3055293560028076,
-0.01695641130208969,
0.5018377304077148,
-0.014423809945583344,
0.004128582775592804,
0.1329772174358368,
-0.01427653431892395,
0.7471272349357605,
-0.32580941915512085,
0.13323666155338287,
-0.3017100691795349,
0.04639875888824463,
0.38421502709388733,
-0.31197649240493774,
0.20140956342220306,
-0.10738272219896317,
-0.23718729615211487,
0.04423936456441879,
0.012799102813005447,
0.300108939409256,
0.2647266983985901,
-0.12615182995796204,
0.31285360455513,
0.2669259309768677,
-0.09074276685714722,
-0.12108105421066284,
0.464155912399292,
0.16619540750980377,
-0.4408358633518219,
-0.24534589052200317,
0.07306349277496338,
-0.029326245188713074,
-0.17367123067378998,
0.04854714125394821,
-0.29388225078582764,
0.20224624872207642,
0.1478756070137024,
-0.3816896080970764,
-0.09094024449586868,
-0.08112122118473053,
0.26814979314804077,
-0.13406327366828918,
-0.12422661483287811,
-0.04414823651313782,
0.061248864978551865,
-0.048449546098709106,
-0.055664923042058945,
-0.05689084529876709,
0.034033454954624176,
-0.24745166301727295,
0.23476824164390564,
-0.24759149551391602,
-0.25618818402290344,
0.10873493552207947,
-0.1369175910949707,
-0.1850031018257141,
-0.12278535217046738,
0.12354694306850433,
-0.5898900628089905,
-0.2854611873626709,
0.20595389604568481,
0.004939962178468704,
0.2578458786010742,
-0.018939072266221046,
0.3219515085220337,
-0.15040069818496704,
-0.16497977077960968,
0.06699402630329132,
0.3953620195388794,
-0.18209050595760345,
0.4212399423122406,
0.10832692682743073,
-0.10378995537757874,
-0.0464998222887516,
0.11547358334064484,
0.16585230827331543,
-0.17086227238178253,
0.1820625364780426,
0.1965959370136261,
-0.18346159160137177,
-0.20097148418426514,
-0.15374040603637695,
-0.1337403804063797,
0.046658992767333984,
0.24913784861564636,
-0.004617300815880299,
-0.09089025855064392,
0.009366622194647789,
0.031244009733200073,
-0.12580335140228271,
-0.06459040194749832,
-0.14875325560569763,
-0.3159016966819763,
-0.1274639070034027,
0.10003577172756195,
-0.2690616250038147,
0.13804613053798676,
0.0921470895409584,
0.08710229396820068,
0.08868826925754547,
0.5282366275787354,
-0.2911812961101532,
0.03230191767215729,
-0.06001618504524231,
0.13118836283683777,
0.4815719723701477,
-0.02072969079017639,
-0.02861107513308525,
0.22528629004955292,
0.11070099472999573,
0.1718190759420395,
-0.21505220234394073,
-0.25308915972709656,
0.2104918658733368,
0.09223035722970963,
-0.08674833178520203,
0.03804656118154526,
0.09126229584217072,
0.15599234402179718,
-0.2978246808052063,
-0.356559693813324,
0.022543352097272873,
-0.0821361392736435,
0.01938198134303093,
0.0203433558344841,
0.16839554905891418,
-0.2722148001194,
0.18225905299186707,
0.032092802226543427,
0.1487872451543808,
-0.08594577014446259,
-0.16205079853534698,
0.25060850381851196,
0.0997244268655777,
-0.16016098856925964,
0.18330039083957672,
-0.04291393607854843,
0.31445977091789246,
-0.2085181176662445,
0.20270541310310364,
-0.010751008987426758,
-0.29465237259864807,
-0.07233378291130066,
0.4625978469848633,
0.3377591073513031,
0.28702041506767273,
0.26204392313957214,
0.07707636058330536,
0.11315245926380157,
-0.22610720992088318,
-0.14192542433738708,
0.6985282897949219,
0.027723152190446854,
0.23453667759895325,
-0.028705067932605743,
0.2569650709629059,
0.5741377472877502,
0.021092750132083893,
-0.048877350986003876,
-0.0279533788561821,
-0.264093279838562,
0.08176440000534058,
-0.2153846025466919,
0.2547766864299774,
-0.02060030773282051,
0.21077348291873932,
0.2571154236793518,
0.14071673154830933,
0.13339750468730927,
-0.04006338119506836,
0.7664591073989868,
-0.12304846197366714,
0.29141515493392944,
0.17564457654953003,
-0.33771491050720215,
0.2382444441318512,
0.1596975028514862,
0.13089759647846222,
0.1412184238433838,
0.06038154661655426,
0.3576046824455261,
-0.02419673651456833,
-0.5762876868247986,
-0.22083772718906403,
0.7770318984985352,
-0.09920947998762131,
-0.2864764928817749,
0.1479819416999817,
-0.07641253620386124,
-0.009332992136478424,
0.13941144943237305,
0.15873531997203827,
0.0367024801671505,
0.8322877883911133,
-0.1424621343612671,
0.3206213712692261,
-0.18600669503211975,
0.05008301883935928,
-0.06968896090984344,
0.3375323712825775,
-0.09121078997850418,
-0.19963553547859192,
0.060338057577610016,
-0.15614406764507294,
-0.13572067022323608,
0.47733813524246216,
0.24782153964042664,
0.13398252427577972,
-0.09340178966522217,
0.2575247883796692,
-0.4307616055011749,
0.03049713559448719,
-0.1887446939945221,
0.3448914885520935,
-0.16048049926757812,
0.02387712150812149,
0.45079025626182556,
0.056161969900131226,
-0.11086683720350266,
-0.28681230545043945,
-0.09317725896835327,
0.14092014729976654,
-0.4509791433811188,
0.16365568339824677,
-0.13767103850841522,
-0.10649596154689789,
-0.12121535837650299,
0.023301884531974792,
-0.4255388379096985,
-0.17504239082336426,
0.6109217405319214,
-0.5048499703407288,
-0.11795811355113983,
-0.05764302611351013,
0.0909232348203659,
-0.15989921987056732,
0.5806361436843872,
0.30982598662376404,
0.2996731996536255,
-0.05028841644525528,
-0.19277474284172058,
-0.5379374623298645,
-0.4539738595485687,
-0.016678277403116226,
0.0847630649805069,
0.12837839126586914,
0.44047465920448303,
0.23647606372833252,
0.35708653926849365,
0.045130886137485504,
-0.321749746799469,
0.08707167208194733,
0.08730185031890869,
-0.38876059651374817,
0.23698477447032928,
-0.1745334267616272,
-0.15426670014858246,
0.16266092658042908,
-0.21016815304756165,
0.3319191336631775,
0.07082834839820862,
0.012204434722661972,
-0.17520831525325775,
0.25322747230529785,
0.25492215156555176,
-0.0906018316745758,
-0.11705201864242554,
0.2109995037317276,
0.3175000548362732,
-0.2899770140647888,
-0.023889929056167603,
-0.08142854273319244,
0.06248752027750015,
-0.19377018511295319,
0.07047715038061142,
-0.02151745930314064,
0.42097026109695435,
-0.2175208181142807,
0.10945107042789459,
-0.05966753140091896,
0.2623104453086853,
-0.11405640840530396,
-0.09235405921936035,
0.06592269986867905,
0.10227897018194199,
0.045120321214199066,
0.12898880243301392,
-0.004511751234531403,
0.32545650005340576,
0.03585278242826462,
0.08319172263145447,
-0.15442778170108795,
-0.09351734817028046,
0.28181254863739014,
-0.4838240146636963,
-0.2623058259487152,
-0.3023214340209961,
0.08092285692691803,
0.18151846528053284,
0.2234053909778595,
-0.5047800540924072,
-0.2906191349029541,
0.18537376821041107,
0.00376741960644722,
-0.002537120133638382,
0.6374950408935547,
-0.13427472114562988,
-0.3422389626502991,
-0.17192234098911285,
-0.1800527274608612,
0.030383171513676643,
-0.3091045022010803,
-0.033545248210430145,
-0.1872972548007965
] |
https://github.com/huggingface/datasets/issues/425 | Correct data structure for PAN-X task in XTREME dataset? | Hi @lhoestq
I made the proposed changes to the `xtreme.py` script. I noticed that I also need to change the schema in the `dataset_infos.json` file. More specifically the `"features"` part of the PAN-X.LANG dataset:
```json
"features":{
"word":{
"dtype":"string",
"id":null,
"_type":"Value"
},
"ner_tag":{
"dtype":"string",
"id":null,
"_type":"Value"
},
"lang":{
"dtype":"string",
"id":null,
"_type":"Value"
}
}
```
To fit the code above the fields `"word"`, `"ner_tag"`, and `"lang"` would become `"words"`, `ner_tags"` and `"langs"`. In addition the `dtype` should be changed from `"string"` to `"list"`.
I made this changes but when trying to test this locally with `dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data')` I face the issue that the `dataset_info.json` file is always overwritten by a downloaded version with the old settings, which then throws an error because the schema does not match. This makes it hard to test the changes locally. Do you have any suggestions on how to deal with that?
| Hi 🤗 team!
## Description of the problem
Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows:
```python
from nlp import load_dataset
# AmazonPhotos.zip is located in data/
dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data')
dataset_train = dataset['train']
```
However, I am not sure that `load_dataset()` is returning the correct data structure for NER.
Currently, every row in `dataset_train` is of the form
```python
{'word': str, 'ner_tag': str, 'lang': str}
```
but I think we actually want something like
```python
{'words': List[str], 'ner_tags': List[str], 'langs': List[str]}
```
so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples.
Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages.
## Proposed solution
Replace
```python
with open(filepath) as f:
data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
for id_, row in enumerate(data):
if row:
lang, word = row[0].split(":")[0], row[0].split(":")[1]
tag = row[1]
yield id_, {"word": word, "ner_tag": tag, "lang": lang}
```
from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like
```python
guid_index = 1
with open(filepath, encoding="utf-8") as f:
words = []
ner_tags = []
langs = []
for line in f:
if line.startswith("-DOCSTART-") or line == "" or line == "\n":
if words:
yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs}
guid_index += 1
words = []
ner_tags = []
else:
# pan-x data is tab separated
splits = line.split("\t")
# strip out en: prefix
langs.append(splits[0][:2])
words.append(splits[0][3:])
if len(splits) > 1:
labels.append(splits[-1].replace("\n", ""))
else:
# examples have no label in test set
labels.append("O")
```
If you agree, me or @lvwerra would be happy to implement this and create a PR. | 148 | Correct data structure for PAN-X task in XTREME dataset?
Hi 🤗 team!
## Description of the problem
Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows:
```python
from nlp import load_dataset
# AmazonPhotos.zip is located in data/
dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data')
dataset_train = dataset['train']
```
However, I am not sure that `load_dataset()` is returning the correct data structure for NER.
Currently, every row in `dataset_train` is of the form
```python
{'word': str, 'ner_tag': str, 'lang': str}
```
but I think we actually want something like
```python
{'words': List[str], 'ner_tags': List[str], 'langs': List[str]}
```
so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples.
Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages.
## Proposed solution
Replace
```python
with open(filepath) as f:
data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
for id_, row in enumerate(data):
if row:
lang, word = row[0].split(":")[0], row[0].split(":")[1]
tag = row[1]
yield id_, {"word": word, "ner_tag": tag, "lang": lang}
```
from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like
```python
guid_index = 1
with open(filepath, encoding="utf-8") as f:
words = []
ner_tags = []
langs = []
for line in f:
if line.startswith("-DOCSTART-") or line == "" or line == "\n":
if words:
yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs}
guid_index += 1
words = []
ner_tags = []
else:
# pan-x data is tab separated
splits = line.split("\t")
# strip out en: prefix
langs.append(splits[0][:2])
words.append(splits[0][3:])
if len(splits) > 1:
labels.append(splits[-1].replace("\n", ""))
else:
# examples have no label in test set
labels.append("O")
```
If you agree, me or @lvwerra would be happy to implement this and create a PR.
Hi @lhoestq
I made the proposed changes to the `xtreme.py` script. I noticed that I also need to change the schema in the `dataset_infos.json` file. More specifically the `"features"` part of the PAN-X.LANG dataset:
```json
"features":{
"word":{
"dtype":"string",
"id":null,
"_type":"Value"
},
"ner_tag":{
"dtype":"string",
"id":null,
"_type":"Value"
},
"lang":{
"dtype":"string",
"id":null,
"_type":"Value"
}
}
```
To fit the code above the fields `"word"`, `"ner_tag"`, and `"lang"` would become `"words"`, `ner_tags"` and `"langs"`. In addition the `dtype` should be changed from `"string"` to `"list"`.
I made this changes but when trying to test this locally with `dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data')` I face the issue that the `dataset_info.json` file is always overwritten by a downloaded version with the old settings, which then throws an error because the schema does not match. This makes it hard to test the changes locally. Do you have any suggestions on how to deal with that?
| [
-0.04464271664619446,
-0.1960519701242447,
-0.02139195241034031,
0.37166136503219604,
0.03904012590646744,
-0.27633076906204224,
-0.02063750848174095,
0.1579519808292389,
-0.07178055495023727,
-0.06624241173267365,
-0.16135312616825104,
0.26270681619644165,
0.00142755638808012,
0.16808269917964935,
0.4264345169067383,
-0.14670290052890778,
0.04844242334365845,
-0.06990551948547363,
0.2786857485771179,
-0.052614375948905945,
-0.10909321159124374,
0.1506105214357376,
-0.32537445425987244,
0.054469995200634,
-0.34978798031806946,
0.08372768014669418,
-0.06782156974077225,
0.34623953700065613,
-0.2758390009403229,
-0.49336913228034973,
0.5901548266410828,
0.06104302406311035,
0.3375478982925415,
0.3253476023674011,
-0.0001185823421110399,
0.007394328713417053,
0.049149759113788605,
-0.29767951369285583,
0.06300017237663269,
-0.5153083801269531,
-0.21160519123077393,
-0.6882328391075134,
-0.07075060158967972,
-0.1863521933555603,
-0.24942466616630554,
-0.06915049254894257,
0.23590941727161407,
0.16131557524204254,
0.32868772745132446,
0.4041304588317871,
0.06675556302070618,
0.11867228150367737,
-0.011228244751691818,
0.16462373733520508,
0.4069054126739502,
0.3912608027458191,
-0.29841095209121704,
-0.05547158792614937,
0.5836411714553833,
0.15009410679340363,
-0.20072370767593384,
0.22613638639450073,
0.0665779709815979,
-0.09574086964130402,
0.21683219075202942,
0.31174883246421814,
0.11062145233154297,
-0.4583885371685028,
-0.20303478837013245,
0.2828921675682068,
0.23043543100357056,
-0.25538405776023865,
-0.2035071849822998,
-0.2779304087162018,
-0.05728369951248169,
-0.2900471091270447,
-0.028027810156345367,
0.3609631657600403,
-0.08088468015193939,
-0.009099278599023819,
0.2543642222881317,
-0.0029826685786247253,
-0.11148172616958618,
0.2031378298997879,
-0.010520011186599731,
0.4096223711967468,
-0.013463684357702732,
-0.10751784592866898,
-0.13960672914981842,
-0.11620797216892242,
0.701856255531311,
-0.010426267981529236,
0.1576862633228302,
0.11971083283424377,
-0.6041287779808044,
0.08037960529327393,
-0.13632291555404663,
-0.2818925976753235,
0.16630521416664124,
-0.04843749850988388,
0.20986545085906982,
0.15891525149345398,
0.14852482080459595,
0.014587141573429108,
0.3213750123977661,
0.20039565861225128,
0.2381373941898346,
0.031010303646326065,
-0.13071280717849731,
0.07348093390464783,
0.0858030617237091,
-0.09635833650827408,
-0.3183751106262207,
0.06530439853668213,
0.23683352768421173,
-0.02280653640627861,
0.28890693187713623,
-0.19623704254627228,
-0.368023544549942,
-0.01999141275882721,
-0.12843096256256104,
0.07258015125989914,
0.14147862792015076,
0.06118037551641464,
0.008060240186750889,
0.5874364972114563,
-0.07428833842277527,
0.17870855331420898,
-0.2538335621356964,
0.029141712933778763,
-0.14730004966259003,
0.16940994560718536,
-0.624359130859375,
-0.10618693381547928,
0.25825774669647217,
0.09196081757545471,
0.1970396190881729,
-0.006403282284736633,
0.12181995809078217,
-0.3322499096393585,
0.17588141560554504,
-0.2791439890861511,
0.26510968804359436,
-0.015867363661527634,
0.24573856592178345,
-0.12957213819026947,
-0.3093239963054657,
-0.009520024061203003,
-0.1647401601076126,
0.21943768858909607,
-0.7123695611953735,
-0.02457350865006447,
0.04509495943784714,
0.07545928657054901,
-0.21419395506381989,
0.14357399940490723,
-0.5043221116065979,
0.03225913643836975,
0.06304440647363663,
0.21816867589950562,
0.10690417140722275,
-0.3306131958961487,
-0.2142907977104187,
-0.0720486119389534,
0.08307014405727386,
0.1326560378074646,
-0.12915048003196716,
0.0973816066980362,
0.06310081481933594,
0.0002563726156949997,
0.10419753193855286,
0.21627996861934662,
-0.010966595262289047,
0.28418222069740295,
-0.18863455951213837,
0.5723387002944946,
0.41958218812942505,
-0.8037276268005371,
-0.3378545045852661,
0.08750918507575989,
-0.16561442613601685,
0.0018314458429813385,
-0.07771462947130203,
0.2999710142612457,
0.2168302685022354,
-0.10970831662416458,
0.2860373854637146,
0.4717786908149719,
-0.06015489995479584,
0.11296439915895462,
-0.10558316856622696,
0.2662768065929413,
-0.11809329688549042,
0.3215995728969574,
0.04209784418344498,
-0.26852890849113464,
-0.15946242213249207,
0.07514216005802155,
0.1948617398738861,
-0.11582836508750916,
0.08708562701940536,
0.4314538240432739,
0.08927341550588608,
-0.051384299993515015,
-0.050623711198568344,
0.03832472115755081,
-0.7624895572662354,
0.11410077661275864,
-0.4289604723453522,
0.37934401631355286,
0.010656766593456268,
-0.06719522178173065,
-0.1728428602218628,
-0.05107640475034714,
-0.29626232385635376,
-0.1906539797782898,
0.10716113448143005,
-0.12099955976009369,
-0.12378060817718506,
-0.3034513294696808,
-0.07628465443849564,
0.397414892911911,
-0.22609849274158478,
0.07376278936862946,
-0.5780189037322998,
0.34078356623649597,
0.11800407618284225,
-0.06648484617471695,
-0.012310583144426346,
0.4472557306289673,
0.1922498345375061,
-0.04829728975892067,
0.16845959424972534,
0.22092187404632568,
0.21488985419273376,
-0.1571745127439499,
-0.06123403459787369,
-0.0020266324281692505,
0.1334933191537857,
-0.5777861475944519,
0.06592755764722824,
0.22310002148151398,
-0.0014224816113710403,
-0.21430474519729614,
-0.12435512989759445,
0.5517564415931702,
0.18477018177509308,
0.20728400349617004,
0.028973184525966644,
0.07074965536594391,
0.21222327649593353,
-0.17136165499687195,
-0.23443351686000824,
-0.10390429198741913,
0.15454867482185364,
0.12331785261631012,
0.030547212809324265,
0.09956598281860352,
-0.5023411512374878,
0.02001155912876129,
0.3077203631401062,
0.02743048593401909,
0.1898186355829239,
0.20472759008407593,
-0.15310901403427124,
-0.0791655033826828,
0.03745677322149277,
0.3701200783252716,
0.359086811542511,
0.0914270356297493,
0.109885573387146,
0.1304074078798294,
-0.03294137492775917,
0.07248856872320175,
-0.0358838215470314,
0.06175382435321808,
0.1510181725025177,
0.21196547150611877,
0.17851611971855164,
-0.08419488370418549,
-0.08589637279510498,
-0.21915003657341003,
0.03217826038599014,
0.15216347575187683,
-0.3295000195503235,
0.07806990295648575,
0.03682161867618561,
-0.45026537775993347,
-0.14737486839294434,
0.04417257010936737,
-0.13615694642066956,
-0.3193354904651642,
-0.037922024726867676,
-0.057156097143888474,
0.238774836063385,
0.08406711369752884,
-0.474686861038208,
-0.21508686244487762,
-0.1986013948917389,
-0.34062856435775757,
-0.058314248919487,
0.07429326325654984,
-0.13823923468589783,
-0.02675413340330124,
0.2119734138250351,
0.5459085702896118,
-0.03127172589302063,
-0.43531492352485657,
0.39016032218933105,
-0.3872423768043518,
-0.20231196284294128,
0.30165642499923706,
-0.2638213634490967,
0.31215837597846985,
0.21715426445007324,
-0.10408544540405273,
-0.4046028256416321,
0.19591648876667023,
0.1874925047159195,
-0.3214799761772156,
-0.31412604451179504,
0.31686192750930786,
-0.1772637665271759,
-0.0916750431060791,
-0.026443663984537125,
-0.4063463807106018,
-0.5237724184989929,
-0.20548728108406067,
0.011994007974863052,
0.22303129732608795,
0.31624388694763184,
0.2151380181312561,
-0.25966617465019226,
-0.1451510637998581,
-0.13218092918395996,
-0.19551116228103638,
0.006959614809602499,
-0.572614312171936,
0.45684242248535156,
-0.24419434368610382,
-0.2051527202129364,
-0.08598031103610992,
-0.2658787965774536,
0.47131994366645813,
0.3780287504196167,
-0.06849359720945358,
-0.03754010796546936,
0.1413385421037674,
0.03518238291144371,
0.17770928144454956,
-0.062219418585300446,
0.29641205072402954,
-0.21413566172122955,
0.04570542275905609,
-0.027789507061243057,
-0.008123191073536873,
0.07852537930011749,
0.32014456391334534,
0.23043733835220337,
-0.026517946273088455,
-0.2571674883365631,
0.11034753918647766,
0.06357800960540771,
0.15529051423072815,
0.04633408784866333,
0.4367932677268982,
0.005378231406211853,
0.11456843465566635,
0.08478374034166336,
0.02240804024040699,
-0.16403049230575562,
0.060146018862724304,
0.23326949775218964,
-0.0009896308183670044,
0.2357875406742096,
-0.15477249026298523,
-0.07209770381450653,
0.12637120485305786,
-0.13299895823001862,
-0.21512025594711304,
0.5398619771003723,
-0.1397540271282196,
0.4105234146118164,
-0.1709616631269455,
0.02681668847799301,
-0.061432573944330215,
-0.45806968212127686,
-0.25713011622428894,
0.08615047484636307,
0.17971529066562653,
0.15540531277656555,
-0.6861756443977356,
0.3985413908958435,
-0.3888287842273712,
-0.020633533596992493,
0.17285126447677612,
0.5378323197364807,
0.21202577650547028,
0.08040609955787659,
0.1571730226278305,
-0.03739926218986511,
0.3112250566482544,
-0.2897285521030426,
-0.14624322950839996,
0.10926094651222229,
0.10011476278305054,
-0.3250238001346588,
-0.04307328909635544,
-0.25088104605674744,
0.02653084322810173,
0.4807165861129761,
0.4030666947364807,
-0.30203479528427124,
-0.4488570988178253,
-0.014215469360351562,
0.04743534326553345,
-0.2095993310213089,
-0.19778335094451904,
-0.2662707269191742,
-0.45051926374435425,
-0.09220190346240997,
-0.09107781201601028,
0.5540916919708252,
-0.01196756586432457,
0.28598952293395996,
0.0289192833006382,
-0.2357483059167862,
0.26541614532470703,
0.330189973115921,
-0.03711447864770889,
0.5644023418426514,
-0.23958195745944977,
0.005737554281949997,
-0.06575591117143631,
-0.08433018624782562,
0.29014745354652405,
0.48032522201538086,
-0.1859402060508728,
-0.15045349299907684,
0.1800042986869812,
-0.22384551167488098,
0.4223891794681549,
0.16637954115867615,
0.1885031759738922,
0.01889626681804657,
-0.29500812292099,
-0.0011857002973556519,
-0.1358921229839325,
0.13620227575302124,
0.3885798156261444,
-0.10829757899045944,
-0.4188075363636017,
-0.36532512307167053,
0.17683622241020203,
0.30887776613235474,
0.10559824109077454,
-0.23104408383369446,
-0.17216096818447113,
-0.26177674531936646,
-0.14155778288841248,
0.46636849641799927,
1.0166804790496826,
0.03018501028418541,
0.43357038497924805,
0.1726905107498169,
0.08972634375095367,
0.06072811037302017,
-0.44448673725128174,
0.2049940675497055,
-0.3482043743133545,
-0.32858794927597046,
-0.20364540815353394,
-0.25741440057754517,
-0.06209059804677963,
0.20261523127555847,
0.03191164508461952,
0.662602961063385,
0.22569076716899872,
-0.044790204614400864,
0.02295135334134102,
0.21597033739089966,
0.009368048049509525,
-0.386739581823349,
-0.37452441453933716,
0.004031706601381302,
-0.2863351106643677,
0.014986533671617508,
-0.15357747673988342,
-0.20838326215744019,
-0.05914842337369919,
0.1994757056236267,
0.1399664729833603,
0.2819459140300751,
0.09344664216041565,
-0.18290582299232483,
0.42392733693122864,
-0.5605937242507935,
-0.053347375243902206,
0.242873415350914,
0.07730409502983093,
-0.3221905827522278,
0.0031525790691375732,
0.23612280189990997,
0.40504199266433716,
0.10099668800830841,
0.3913232684135437,
-0.3321993052959442,
0.26010259985923767,
0.04982784390449524,
0.1221904382109642,
-0.24286028742790222,
0.15816043317317963,
-0.037263043224811554,
-0.41743192076683044,
0.0479724258184433,
-0.1750258505344391,
-0.2749730348587036,
-0.20879948139190674,
0.02693774551153183,
-0.14437010884284973,
-0.049738820642232895,
0.0549408458173275,
0.259435772895813,
-0.09028758853673935,
0.14810168743133545,
0.11329236626625061,
-0.25920605659484863,
0.1990923285484314,
0.08319070190191269,
0.29767483472824097,
-0.3125307559967041,
0.03761077672243118,
0.24821259081363678,
0.015134867280721664,
-0.0992361307144165,
0.18058153986930847,
0.4821500778198242,
-0.6173614263534546,
0.03374781832098961,
-0.24344956874847412,
-0.013798177242279053,
-0.01630086451768875,
0.18511709570884705,
0.0020544342696666718,
-0.26249897480010986,
0.16277506947517395,
-0.28285735845565796,
-0.3409927785396576,
0.3751989006996155,
0.11637803912162781,
0.27829134464263916,
-0.19798490405082703,
0.00982572603970766,
0.15099337697029114,
-0.2200438231229782,
-0.23904985189437866,
0.1753162443637848,
-0.17947137355804443,
0.19612371921539307,
-0.11576512455940247,
-0.09629125148057938,
0.08040311932563782,
-0.09420126676559448,
-0.02496989816427231,
0.2664702534675598,
-0.1458442509174347,
-0.05785387009382248,
0.017934098839759827,
0.12439140677452087,
0.13275250792503357,
-0.1157706081867218,
0.12489099055528641,
0.12000428140163422,
-0.05154094472527504,
-0.13733723759651184,
-0.1135682463645935,
0.18000167608261108,
0.022834021598100662,
0.23035410046577454,
-0.2976279556751251,
0.03927406296133995,
-0.12316618114709854,
0.23105865716934204,
0.18953807651996613,
0.120205357670784,
0.06575058400630951,
0.20725134015083313,
-0.05111878737807274,
0.02486599236726761,
-0.5182067155838013,
0.20642638206481934,
0.19672659039497375,
0.3688437044620514,
0.2152005434036255,
-0.15535664558410645,
0.10563814640045166,
-0.0322781577706337,
0.14986827969551086,
0.3083646595478058,
-0.2699720859527588,
-0.005844349041581154,
0.24190446734428406,
0.14836734533309937,
-0.15884436666965485,
-0.004972888622432947,
0.3671054244041443,
0.007890831679105759,
0.008068453520536423,
0.47907280921936035,
0.3525030016899109,
0.13681592047214508,
-0.1463463306427002,
0.06332699209451675,
0.23557473719120026,
-0.25352710485458374,
0.06761221587657928,
0.40521273016929626,
-0.005103282630443573,
0.13945753872394562,
0.5995874404907227,
0.03328801691532135,
-0.1143292561173439,
0.6000960469245911,
0.3011859059333801,
0.7809869050979614,
0.19956010580062866,
0.17875510454177856,
-0.0658111646771431,
-0.10446444153785706,
-0.4129893481731415,
0.25482919812202454,
0.1273956596851349,
0.17695295810699463,
0.03835275396704674,
0.14328762888908386,
0.14535696804523468,
-0.1860472708940506,
-0.09647722542285919,
0.11349990963935852,
-0.3404925465583801,
0.022929750382900238,
-0.3317875564098358,
-0.2342434525489807,
-0.12177427113056183,
-0.11770030856132507,
-0.17227379977703094,
0.03673819452524185,
0.06148860976099968,
0.13393905758857727,
-0.007461808621883392,
-0.06121242791414261,
0.08235365152359009,
0.2852357029914856,
0.047824203968048096,
-0.1977073848247528,
0.5288457870483398,
0.033901773393154144,
-0.04695729911327362,
-0.15871205925941467,
0.2742469608783722,
0.25314855575561523,
0.23150287568569183,
-0.051973361521959305,
-0.10700343549251556,
0.33872684836387634,
-0.11022821068763733,
-0.0296933650970459,
0.10047410428524017,
0.20050647854804993,
0.25491589307785034,
0.18043342232704163,
0.06518203020095825,
-0.004352319985628128,
0.3010016083717346,
0.06953603029251099,
-0.19286584854125977,
0.2435857653617859,
0.2801603674888611,
0.18614499270915985,
-0.28904563188552856,
-0.12946154177188873,
-0.22410231828689575,
-0.33889615535736084,
-0.16420963406562805,
0.3142125606536865,
-0.1428404152393341,
0.2404816448688507,
-0.13081541657447815,
0.05084565281867981,
0.042049143463373184,
0.19686734676361084,
0.1187223345041275,
0.11401593685150146,
-0.4945988059043884,
-0.08852329105138779,
-0.7457129955291748,
0.20055323839187622,
-0.3096914291381836,
-0.28265705704689026,
0.23556987941265106,
0.026604944840073586,
-0.04746194928884506,
0.3022996187210083,
-0.23467497527599335,
0.22896641492843628,
0.06854803115129471,
0.33479830622673035,
-0.6064156889915466,
0.06857944279909134,
0.23178240656852722,
0.35899820923805237,
0.05319131165742874,
-0.12498141825199127,
-0.2764682173728943,
0.21865303814411163,
-0.07028914988040924,
-0.07275992631912231,
-0.06854408979415894,
-0.1896737515926361,
-0.05582650005817413,
0.2673405110836029,
-0.21242347359657288,
0.15677662193775177,
-0.07460644841194153,
-0.1744624823331833,
-0.2747456431388855,
-0.05970994755625725,
-0.16448548436164856,
0.02105608582496643,
0.1005389392375946,
0.31677621603012085,
0.003346632234752178,
0.15478689968585968,
-0.391507089138031,
-0.2984791100025177,
0.013277072459459305,
0.08274872601032257,
-0.3641843795776367,
0.43281036615371704,
-0.2321622371673584,
0.14379477500915527,
0.03772285580635071,
0.2259722352027893,
0.07463201880455017,
-0.003320652060210705,
-0.15939228236675262,
-0.44558510184288025,
0.26130276918411255,
0.26990145444869995,
-0.19865652918815613,
-0.11950220167636871,
0.004335194826126099,
0.10739356279373169,
0.1258697509765625,
-0.44796523451805115,
0.13640910387039185,
0.17997044324874878,
-0.0451219379901886,
-0.09457521140575409,
0.08399656414985657,
-0.023716434836387634,
-0.07817785441875458,
-0.13010559976100922,
0.12380419671535492,
-0.02628353238105774,
-0.1145850270986557,
-0.20401307940483093,
-0.15853148698806763
] |
https://github.com/huggingface/datasets/issues/425 | Correct data structure for PAN-X task in XTREME dataset? | Hi !
You have to point to your local script.
First clone the repo and then:
```python
dataset = load_dataset("./datasets/xtreme", "PAN-X.en")
```
The "xtreme" directory contains "xtreme.py".
You also have to change the features definition in the `_info` method. You could use:
```python
features = nlp.Features({
"words": [nlp.Value("string")],
"ner_tags": [nlp.Value("string")],
"langs": [nlp.Value("string")],
})
```
Hope this helps !
Let me know if you have other questions. | Hi 🤗 team!
## Description of the problem
Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows:
```python
from nlp import load_dataset
# AmazonPhotos.zip is located in data/
dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data')
dataset_train = dataset['train']
```
However, I am not sure that `load_dataset()` is returning the correct data structure for NER.
Currently, every row in `dataset_train` is of the form
```python
{'word': str, 'ner_tag': str, 'lang': str}
```
but I think we actually want something like
```python
{'words': List[str], 'ner_tags': List[str], 'langs': List[str]}
```
so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples.
Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages.
## Proposed solution
Replace
```python
with open(filepath) as f:
data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
for id_, row in enumerate(data):
if row:
lang, word = row[0].split(":")[0], row[0].split(":")[1]
tag = row[1]
yield id_, {"word": word, "ner_tag": tag, "lang": lang}
```
from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like
```python
guid_index = 1
with open(filepath, encoding="utf-8") as f:
words = []
ner_tags = []
langs = []
for line in f:
if line.startswith("-DOCSTART-") or line == "" or line == "\n":
if words:
yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs}
guid_index += 1
words = []
ner_tags = []
else:
# pan-x data is tab separated
splits = line.split("\t")
# strip out en: prefix
langs.append(splits[0][:2])
words.append(splits[0][3:])
if len(splits) > 1:
labels.append(splits[-1].replace("\n", ""))
else:
# examples have no label in test set
labels.append("O")
```
If you agree, me or @lvwerra would be happy to implement this and create a PR. | 66 | Correct data structure for PAN-X task in XTREME dataset?
Hi 🤗 team!
## Description of the problem
Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows:
```python
from nlp import load_dataset
# AmazonPhotos.zip is located in data/
dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data')
dataset_train = dataset['train']
```
However, I am not sure that `load_dataset()` is returning the correct data structure for NER.
Currently, every row in `dataset_train` is of the form
```python
{'word': str, 'ner_tag': str, 'lang': str}
```
but I think we actually want something like
```python
{'words': List[str], 'ner_tags': List[str], 'langs': List[str]}
```
so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples.
Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages.
## Proposed solution
Replace
```python
with open(filepath) as f:
data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
for id_, row in enumerate(data):
if row:
lang, word = row[0].split(":")[0], row[0].split(":")[1]
tag = row[1]
yield id_, {"word": word, "ner_tag": tag, "lang": lang}
```
from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like
```python
guid_index = 1
with open(filepath, encoding="utf-8") as f:
words = []
ner_tags = []
langs = []
for line in f:
if line.startswith("-DOCSTART-") or line == "" or line == "\n":
if words:
yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs}
guid_index += 1
words = []
ner_tags = []
else:
# pan-x data is tab separated
splits = line.split("\t")
# strip out en: prefix
langs.append(splits[0][:2])
words.append(splits[0][3:])
if len(splits) > 1:
labels.append(splits[-1].replace("\n", ""))
else:
# examples have no label in test set
labels.append("O")
```
If you agree, me or @lvwerra would be happy to implement this and create a PR.
Hi !
You have to point to your local script.
First clone the repo and then:
```python
dataset = load_dataset("./datasets/xtreme", "PAN-X.en")
```
The "xtreme" directory contains "xtreme.py".
You also have to change the features definition in the `_info` method. You could use:
```python
features = nlp.Features({
"words": [nlp.Value("string")],
"ner_tags": [nlp.Value("string")],
"langs": [nlp.Value("string")],
})
```
Hope this helps !
Let me know if you have other questions. | [
-0.04464271664619446,
-0.1960519701242447,
-0.02139195241034031,
0.37166136503219604,
0.03904012590646744,
-0.27633076906204224,
-0.02063750848174095,
0.1579519808292389,
-0.07178055495023727,
-0.06624241173267365,
-0.16135312616825104,
0.26270681619644165,
0.00142755638808012,
0.16808269917964935,
0.4264345169067383,
-0.14670290052890778,
0.04844242334365845,
-0.06990551948547363,
0.2786857485771179,
-0.052614375948905945,
-0.10909321159124374,
0.1506105214357376,
-0.32537445425987244,
0.054469995200634,
-0.34978798031806946,
0.08372768014669418,
-0.06782156974077225,
0.34623953700065613,
-0.2758390009403229,
-0.49336913228034973,
0.5901548266410828,
0.06104302406311035,
0.3375478982925415,
0.3253476023674011,
-0.0001185823421110399,
0.007394328713417053,
0.049149759113788605,
-0.29767951369285583,
0.06300017237663269,
-0.5153083801269531,
-0.21160519123077393,
-0.6882328391075134,
-0.07075060158967972,
-0.1863521933555603,
-0.24942466616630554,
-0.06915049254894257,
0.23590941727161407,
0.16131557524204254,
0.32868772745132446,
0.4041304588317871,
0.06675556302070618,
0.11867228150367737,
-0.011228244751691818,
0.16462373733520508,
0.4069054126739502,
0.3912608027458191,
-0.29841095209121704,
-0.05547158792614937,
0.5836411714553833,
0.15009410679340363,
-0.20072370767593384,
0.22613638639450073,
0.0665779709815979,
-0.09574086964130402,
0.21683219075202942,
0.31174883246421814,
0.11062145233154297,
-0.4583885371685028,
-0.20303478837013245,
0.2828921675682068,
0.23043543100357056,
-0.25538405776023865,
-0.2035071849822998,
-0.2779304087162018,
-0.05728369951248169,
-0.2900471091270447,
-0.028027810156345367,
0.3609631657600403,
-0.08088468015193939,
-0.009099278599023819,
0.2543642222881317,
-0.0029826685786247253,
-0.11148172616958618,
0.2031378298997879,
-0.010520011186599731,
0.4096223711967468,
-0.013463684357702732,
-0.10751784592866898,
-0.13960672914981842,
-0.11620797216892242,
0.701856255531311,
-0.010426267981529236,
0.1576862633228302,
0.11971083283424377,
-0.6041287779808044,
0.08037960529327393,
-0.13632291555404663,
-0.2818925976753235,
0.16630521416664124,
-0.04843749850988388,
0.20986545085906982,
0.15891525149345398,
0.14852482080459595,
0.014587141573429108,
0.3213750123977661,
0.20039565861225128,
0.2381373941898346,
0.031010303646326065,
-0.13071280717849731,
0.07348093390464783,
0.0858030617237091,
-0.09635833650827408,
-0.3183751106262207,
0.06530439853668213,
0.23683352768421173,
-0.02280653640627861,
0.28890693187713623,
-0.19623704254627228,
-0.368023544549942,
-0.01999141275882721,
-0.12843096256256104,
0.07258015125989914,
0.14147862792015076,
0.06118037551641464,
0.008060240186750889,
0.5874364972114563,
-0.07428833842277527,
0.17870855331420898,
-0.2538335621356964,
0.029141712933778763,
-0.14730004966259003,
0.16940994560718536,
-0.624359130859375,
-0.10618693381547928,
0.25825774669647217,
0.09196081757545471,
0.1970396190881729,
-0.006403282284736633,
0.12181995809078217,
-0.3322499096393585,
0.17588141560554504,
-0.2791439890861511,
0.26510968804359436,
-0.015867363661527634,
0.24573856592178345,
-0.12957213819026947,
-0.3093239963054657,
-0.009520024061203003,
-0.1647401601076126,
0.21943768858909607,
-0.7123695611953735,
-0.02457350865006447,
0.04509495943784714,
0.07545928657054901,
-0.21419395506381989,
0.14357399940490723,
-0.5043221116065979,
0.03225913643836975,
0.06304440647363663,
0.21816867589950562,
0.10690417140722275,
-0.3306131958961487,
-0.2142907977104187,
-0.0720486119389534,
0.08307014405727386,
0.1326560378074646,
-0.12915048003196716,
0.0973816066980362,
0.06310081481933594,
0.0002563726156949997,
0.10419753193855286,
0.21627996861934662,
-0.010966595262289047,
0.28418222069740295,
-0.18863455951213837,
0.5723387002944946,
0.41958218812942505,
-0.8037276268005371,
-0.3378545045852661,
0.08750918507575989,
-0.16561442613601685,
0.0018314458429813385,
-0.07771462947130203,
0.2999710142612457,
0.2168302685022354,
-0.10970831662416458,
0.2860373854637146,
0.4717786908149719,
-0.06015489995479584,
0.11296439915895462,
-0.10558316856622696,
0.2662768065929413,
-0.11809329688549042,
0.3215995728969574,
0.04209784418344498,
-0.26852890849113464,
-0.15946242213249207,
0.07514216005802155,
0.1948617398738861,
-0.11582836508750916,
0.08708562701940536,
0.4314538240432739,
0.08927341550588608,
-0.051384299993515015,
-0.050623711198568344,
0.03832472115755081,
-0.7624895572662354,
0.11410077661275864,
-0.4289604723453522,
0.37934401631355286,
0.010656766593456268,
-0.06719522178173065,
-0.1728428602218628,
-0.05107640475034714,
-0.29626232385635376,
-0.1906539797782898,
0.10716113448143005,
-0.12099955976009369,
-0.12378060817718506,
-0.3034513294696808,
-0.07628465443849564,
0.397414892911911,
-0.22609849274158478,
0.07376278936862946,
-0.5780189037322998,
0.34078356623649597,
0.11800407618284225,
-0.06648484617471695,
-0.012310583144426346,
0.4472557306289673,
0.1922498345375061,
-0.04829728975892067,
0.16845959424972534,
0.22092187404632568,
0.21488985419273376,
-0.1571745127439499,
-0.06123403459787369,
-0.0020266324281692505,
0.1334933191537857,
-0.5777861475944519,
0.06592755764722824,
0.22310002148151398,
-0.0014224816113710403,
-0.21430474519729614,
-0.12435512989759445,
0.5517564415931702,
0.18477018177509308,
0.20728400349617004,
0.028973184525966644,
0.07074965536594391,
0.21222327649593353,
-0.17136165499687195,
-0.23443351686000824,
-0.10390429198741913,
0.15454867482185364,
0.12331785261631012,
0.030547212809324265,
0.09956598281860352,
-0.5023411512374878,
0.02001155912876129,
0.3077203631401062,
0.02743048593401909,
0.1898186355829239,
0.20472759008407593,
-0.15310901403427124,
-0.0791655033826828,
0.03745677322149277,
0.3701200783252716,
0.359086811542511,
0.0914270356297493,
0.109885573387146,
0.1304074078798294,
-0.03294137492775917,
0.07248856872320175,
-0.0358838215470314,
0.06175382435321808,
0.1510181725025177,
0.21196547150611877,
0.17851611971855164,
-0.08419488370418549,
-0.08589637279510498,
-0.21915003657341003,
0.03217826038599014,
0.15216347575187683,
-0.3295000195503235,
0.07806990295648575,
0.03682161867618561,
-0.45026537775993347,
-0.14737486839294434,
0.04417257010936737,
-0.13615694642066956,
-0.3193354904651642,
-0.037922024726867676,
-0.057156097143888474,
0.238774836063385,
0.08406711369752884,
-0.474686861038208,
-0.21508686244487762,
-0.1986013948917389,
-0.34062856435775757,
-0.058314248919487,
0.07429326325654984,
-0.13823923468589783,
-0.02675413340330124,
0.2119734138250351,
0.5459085702896118,
-0.03127172589302063,
-0.43531492352485657,
0.39016032218933105,
-0.3872423768043518,
-0.20231196284294128,
0.30165642499923706,
-0.2638213634490967,
0.31215837597846985,
0.21715426445007324,
-0.10408544540405273,
-0.4046028256416321,
0.19591648876667023,
0.1874925047159195,
-0.3214799761772156,
-0.31412604451179504,
0.31686192750930786,
-0.1772637665271759,
-0.0916750431060791,
-0.026443663984537125,
-0.4063463807106018,
-0.5237724184989929,
-0.20548728108406067,
0.011994007974863052,
0.22303129732608795,
0.31624388694763184,
0.2151380181312561,
-0.25966617465019226,
-0.1451510637998581,
-0.13218092918395996,
-0.19551116228103638,
0.006959614809602499,
-0.572614312171936,
0.45684242248535156,
-0.24419434368610382,
-0.2051527202129364,
-0.08598031103610992,
-0.2658787965774536,
0.47131994366645813,
0.3780287504196167,
-0.06849359720945358,
-0.03754010796546936,
0.1413385421037674,
0.03518238291144371,
0.17770928144454956,
-0.062219418585300446,
0.29641205072402954,
-0.21413566172122955,
0.04570542275905609,
-0.027789507061243057,
-0.008123191073536873,
0.07852537930011749,
0.32014456391334534,
0.23043733835220337,
-0.026517946273088455,
-0.2571674883365631,
0.11034753918647766,
0.06357800960540771,
0.15529051423072815,
0.04633408784866333,
0.4367932677268982,
0.005378231406211853,
0.11456843465566635,
0.08478374034166336,
0.02240804024040699,
-0.16403049230575562,
0.060146018862724304,
0.23326949775218964,
-0.0009896308183670044,
0.2357875406742096,
-0.15477249026298523,
-0.07209770381450653,
0.12637120485305786,
-0.13299895823001862,
-0.21512025594711304,
0.5398619771003723,
-0.1397540271282196,
0.4105234146118164,
-0.1709616631269455,
0.02681668847799301,
-0.061432573944330215,
-0.45806968212127686,
-0.25713011622428894,
0.08615047484636307,
0.17971529066562653,
0.15540531277656555,
-0.6861756443977356,
0.3985413908958435,
-0.3888287842273712,
-0.020633533596992493,
0.17285126447677612,
0.5378323197364807,
0.21202577650547028,
0.08040609955787659,
0.1571730226278305,
-0.03739926218986511,
0.3112250566482544,
-0.2897285521030426,
-0.14624322950839996,
0.10926094651222229,
0.10011476278305054,
-0.3250238001346588,
-0.04307328909635544,
-0.25088104605674744,
0.02653084322810173,
0.4807165861129761,
0.4030666947364807,
-0.30203479528427124,
-0.4488570988178253,
-0.014215469360351562,
0.04743534326553345,
-0.2095993310213089,
-0.19778335094451904,
-0.2662707269191742,
-0.45051926374435425,
-0.09220190346240997,
-0.09107781201601028,
0.5540916919708252,
-0.01196756586432457,
0.28598952293395996,
0.0289192833006382,
-0.2357483059167862,
0.26541614532470703,
0.330189973115921,
-0.03711447864770889,
0.5644023418426514,
-0.23958195745944977,
0.005737554281949997,
-0.06575591117143631,
-0.08433018624782562,
0.29014745354652405,
0.48032522201538086,
-0.1859402060508728,
-0.15045349299907684,
0.1800042986869812,
-0.22384551167488098,
0.4223891794681549,
0.16637954115867615,
0.1885031759738922,
0.01889626681804657,
-0.29500812292099,
-0.0011857002973556519,
-0.1358921229839325,
0.13620227575302124,
0.3885798156261444,
-0.10829757899045944,
-0.4188075363636017,
-0.36532512307167053,
0.17683622241020203,
0.30887776613235474,
0.10559824109077454,
-0.23104408383369446,
-0.17216096818447113,
-0.26177674531936646,
-0.14155778288841248,
0.46636849641799927,
1.0166804790496826,
0.03018501028418541,
0.43357038497924805,
0.1726905107498169,
0.08972634375095367,
0.06072811037302017,
-0.44448673725128174,
0.2049940675497055,
-0.3482043743133545,
-0.32858794927597046,
-0.20364540815353394,
-0.25741440057754517,
-0.06209059804677963,
0.20261523127555847,
0.03191164508461952,
0.662602961063385,
0.22569076716899872,
-0.044790204614400864,
0.02295135334134102,
0.21597033739089966,
0.009368048049509525,
-0.386739581823349,
-0.37452441453933716,
0.004031706601381302,
-0.2863351106643677,
0.014986533671617508,
-0.15357747673988342,
-0.20838326215744019,
-0.05914842337369919,
0.1994757056236267,
0.1399664729833603,
0.2819459140300751,
0.09344664216041565,
-0.18290582299232483,
0.42392733693122864,
-0.5605937242507935,
-0.053347375243902206,
0.242873415350914,
0.07730409502983093,
-0.3221905827522278,
0.0031525790691375732,
0.23612280189990997,
0.40504199266433716,
0.10099668800830841,
0.3913232684135437,
-0.3321993052959442,
0.26010259985923767,
0.04982784390449524,
0.1221904382109642,
-0.24286028742790222,
0.15816043317317963,
-0.037263043224811554,
-0.41743192076683044,
0.0479724258184433,
-0.1750258505344391,
-0.2749730348587036,
-0.20879948139190674,
0.02693774551153183,
-0.14437010884284973,
-0.049738820642232895,
0.0549408458173275,
0.259435772895813,
-0.09028758853673935,
0.14810168743133545,
0.11329236626625061,
-0.25920605659484863,
0.1990923285484314,
0.08319070190191269,
0.29767483472824097,
-0.3125307559967041,
0.03761077672243118,
0.24821259081363678,
0.015134867280721664,
-0.0992361307144165,
0.18058153986930847,
0.4821500778198242,
-0.6173614263534546,
0.03374781832098961,
-0.24344956874847412,
-0.013798177242279053,
-0.01630086451768875,
0.18511709570884705,
0.0020544342696666718,
-0.26249897480010986,
0.16277506947517395,
-0.28285735845565796,
-0.3409927785396576,
0.3751989006996155,
0.11637803912162781,
0.27829134464263916,
-0.19798490405082703,
0.00982572603970766,
0.15099337697029114,
-0.2200438231229782,
-0.23904985189437866,
0.1753162443637848,
-0.17947137355804443,
0.19612371921539307,
-0.11576512455940247,
-0.09629125148057938,
0.08040311932563782,
-0.09420126676559448,
-0.02496989816427231,
0.2664702534675598,
-0.1458442509174347,
-0.05785387009382248,
0.017934098839759827,
0.12439140677452087,
0.13275250792503357,
-0.1157706081867218,
0.12489099055528641,
0.12000428140163422,
-0.05154094472527504,
-0.13733723759651184,
-0.1135682463645935,
0.18000167608261108,
0.022834021598100662,
0.23035410046577454,
-0.2976279556751251,
0.03927406296133995,
-0.12316618114709854,
0.23105865716934204,
0.18953807651996613,
0.120205357670784,
0.06575058400630951,
0.20725134015083313,
-0.05111878737807274,
0.02486599236726761,
-0.5182067155838013,
0.20642638206481934,
0.19672659039497375,
0.3688437044620514,
0.2152005434036255,
-0.15535664558410645,
0.10563814640045166,
-0.0322781577706337,
0.14986827969551086,
0.3083646595478058,
-0.2699720859527588,
-0.005844349041581154,
0.24190446734428406,
0.14836734533309937,
-0.15884436666965485,
-0.004972888622432947,
0.3671054244041443,
0.007890831679105759,
0.008068453520536423,
0.47907280921936035,
0.3525030016899109,
0.13681592047214508,
-0.1463463306427002,
0.06332699209451675,
0.23557473719120026,
-0.25352710485458374,
0.06761221587657928,
0.40521273016929626,
-0.005103282630443573,
0.13945753872394562,
0.5995874404907227,
0.03328801691532135,
-0.1143292561173439,
0.6000960469245911,
0.3011859059333801,
0.7809869050979614,
0.19956010580062866,
0.17875510454177856,
-0.0658111646771431,
-0.10446444153785706,
-0.4129893481731415,
0.25482919812202454,
0.1273956596851349,
0.17695295810699463,
0.03835275396704674,
0.14328762888908386,
0.14535696804523468,
-0.1860472708940506,
-0.09647722542285919,
0.11349990963935852,
-0.3404925465583801,
0.022929750382900238,
-0.3317875564098358,
-0.2342434525489807,
-0.12177427113056183,
-0.11770030856132507,
-0.17227379977703094,
0.03673819452524185,
0.06148860976099968,
0.13393905758857727,
-0.007461808621883392,
-0.06121242791414261,
0.08235365152359009,
0.2852357029914856,
0.047824203968048096,
-0.1977073848247528,
0.5288457870483398,
0.033901773393154144,
-0.04695729911327362,
-0.15871205925941467,
0.2742469608783722,
0.25314855575561523,
0.23150287568569183,
-0.051973361521959305,
-0.10700343549251556,
0.33872684836387634,
-0.11022821068763733,
-0.0296933650970459,
0.10047410428524017,
0.20050647854804993,
0.25491589307785034,
0.18043342232704163,
0.06518203020095825,
-0.004352319985628128,
0.3010016083717346,
0.06953603029251099,
-0.19286584854125977,
0.2435857653617859,
0.2801603674888611,
0.18614499270915985,
-0.28904563188552856,
-0.12946154177188873,
-0.22410231828689575,
-0.33889615535736084,
-0.16420963406562805,
0.3142125606536865,
-0.1428404152393341,
0.2404816448688507,
-0.13081541657447815,
0.05084565281867981,
0.042049143463373184,
0.19686734676361084,
0.1187223345041275,
0.11401593685150146,
-0.4945988059043884,
-0.08852329105138779,
-0.7457129955291748,
0.20055323839187622,
-0.3096914291381836,
-0.28265705704689026,
0.23556987941265106,
0.026604944840073586,
-0.04746194928884506,
0.3022996187210083,
-0.23467497527599335,
0.22896641492843628,
0.06854803115129471,
0.33479830622673035,
-0.6064156889915466,
0.06857944279909134,
0.23178240656852722,
0.35899820923805237,
0.05319131165742874,
-0.12498141825199127,
-0.2764682173728943,
0.21865303814411163,
-0.07028914988040924,
-0.07275992631912231,
-0.06854408979415894,
-0.1896737515926361,
-0.05582650005817413,
0.2673405110836029,
-0.21242347359657288,
0.15677662193775177,
-0.07460644841194153,
-0.1744624823331833,
-0.2747456431388855,
-0.05970994755625725,
-0.16448548436164856,
0.02105608582496643,
0.1005389392375946,
0.31677621603012085,
0.003346632234752178,
0.15478689968585968,
-0.391507089138031,
-0.2984791100025177,
0.013277072459459305,
0.08274872601032257,
-0.3641843795776367,
0.43281036615371704,
-0.2321622371673584,
0.14379477500915527,
0.03772285580635071,
0.2259722352027893,
0.07463201880455017,
-0.003320652060210705,
-0.15939228236675262,
-0.44558510184288025,
0.26130276918411255,
0.26990145444869995,
-0.19865652918815613,
-0.11950220167636871,
0.004335194826126099,
0.10739356279373169,
0.1258697509765625,
-0.44796523451805115,
0.13640910387039185,
0.17997044324874878,
-0.0451219379901886,
-0.09457521140575409,
0.08399656414985657,
-0.023716434836387634,
-0.07817785441875458,
-0.13010559976100922,
0.12380419671535492,
-0.02628353238105774,
-0.1145850270986557,
-0.20401307940483093,
-0.15853148698806763
] |
https://github.com/huggingface/datasets/issues/425 | Correct data structure for PAN-X task in XTREME dataset? | Thanks, I am making progress. I got a new error `NonMatchingSplitsSizesError ` (see traceback below), which I suspect is due to the fact that number of rows in the dataset changed (one row per word --> one row per sentence) as well as the number of bytes due to the slightly updated data structure.
```python
NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=1756492, num_examples=80536, dataset_name='xtreme'), 'recorded': SplitInfo(name='validation', num_bytes=1837109, num_examples=10000, dataset_name='xtreme')}, {'expected': SplitInfo(name='test', num_bytes=1752572, num_examples=80326, dataset_name='xtreme'), 'recorded': SplitInfo(name='test', num_bytes=1833214, num_examples=10000, dataset_name='xtreme')}, {'expected': SplitInfo(name='train', num_bytes=3496832, num_examples=160394, dataset_name='xtreme'), 'recorded': SplitInfo(name='train', num_bytes=3658428, num_examples=20000, dataset_name='xtreme')}]
```
I can fix the error by replacing the values in the `datasets_infos.json` file, which I tested for English. However, to update this for all 40 datasets manually is slightly painful. Is there a better way to update the expected values for all datasets? | Hi 🤗 team!
## Description of the problem
Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows:
```python
from nlp import load_dataset
# AmazonPhotos.zip is located in data/
dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data')
dataset_train = dataset['train']
```
However, I am not sure that `load_dataset()` is returning the correct data structure for NER.
Currently, every row in `dataset_train` is of the form
```python
{'word': str, 'ner_tag': str, 'lang': str}
```
but I think we actually want something like
```python
{'words': List[str], 'ner_tags': List[str], 'langs': List[str]}
```
so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples.
Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages.
## Proposed solution
Replace
```python
with open(filepath) as f:
data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
for id_, row in enumerate(data):
if row:
lang, word = row[0].split(":")[0], row[0].split(":")[1]
tag = row[1]
yield id_, {"word": word, "ner_tag": tag, "lang": lang}
```
from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like
```python
guid_index = 1
with open(filepath, encoding="utf-8") as f:
words = []
ner_tags = []
langs = []
for line in f:
if line.startswith("-DOCSTART-") or line == "" or line == "\n":
if words:
yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs}
guid_index += 1
words = []
ner_tags = []
else:
# pan-x data is tab separated
splits = line.split("\t")
# strip out en: prefix
langs.append(splits[0][:2])
words.append(splits[0][3:])
if len(splits) > 1:
labels.append(splits[-1].replace("\n", ""))
else:
# examples have no label in test set
labels.append("O")
```
If you agree, me or @lvwerra would be happy to implement this and create a PR. | 130 | Correct data structure for PAN-X task in XTREME dataset?
Hi 🤗 team!
## Description of the problem
Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows:
```python
from nlp import load_dataset
# AmazonPhotos.zip is located in data/
dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data')
dataset_train = dataset['train']
```
However, I am not sure that `load_dataset()` is returning the correct data structure for NER.
Currently, every row in `dataset_train` is of the form
```python
{'word': str, 'ner_tag': str, 'lang': str}
```
but I think we actually want something like
```python
{'words': List[str], 'ner_tags': List[str], 'langs': List[str]}
```
so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples.
Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages.
## Proposed solution
Replace
```python
with open(filepath) as f:
data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
for id_, row in enumerate(data):
if row:
lang, word = row[0].split(":")[0], row[0].split(":")[1]
tag = row[1]
yield id_, {"word": word, "ner_tag": tag, "lang": lang}
```
from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like
```python
guid_index = 1
with open(filepath, encoding="utf-8") as f:
words = []
ner_tags = []
langs = []
for line in f:
if line.startswith("-DOCSTART-") or line == "" or line == "\n":
if words:
yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs}
guid_index += 1
words = []
ner_tags = []
else:
# pan-x data is tab separated
splits = line.split("\t")
# strip out en: prefix
langs.append(splits[0][:2])
words.append(splits[0][3:])
if len(splits) > 1:
labels.append(splits[-1].replace("\n", ""))
else:
# examples have no label in test set
labels.append("O")
```
If you agree, me or @lvwerra would be happy to implement this and create a PR.
Thanks, I am making progress. I got a new error `NonMatchingSplitsSizesError ` (see traceback below), which I suspect is due to the fact that number of rows in the dataset changed (one row per word --> one row per sentence) as well as the number of bytes due to the slightly updated data structure.
```python
NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=1756492, num_examples=80536, dataset_name='xtreme'), 'recorded': SplitInfo(name='validation', num_bytes=1837109, num_examples=10000, dataset_name='xtreme')}, {'expected': SplitInfo(name='test', num_bytes=1752572, num_examples=80326, dataset_name='xtreme'), 'recorded': SplitInfo(name='test', num_bytes=1833214, num_examples=10000, dataset_name='xtreme')}, {'expected': SplitInfo(name='train', num_bytes=3496832, num_examples=160394, dataset_name='xtreme'), 'recorded': SplitInfo(name='train', num_bytes=3658428, num_examples=20000, dataset_name='xtreme')}]
```
I can fix the error by replacing the values in the `datasets_infos.json` file, which I tested for English. However, to update this for all 40 datasets manually is slightly painful. Is there a better way to update the expected values for all datasets? | [
-0.04464271664619446,
-0.1960519701242447,
-0.02139195241034031,
0.37166136503219604,
0.03904012590646744,
-0.27633076906204224,
-0.02063750848174095,
0.1579519808292389,
-0.07178055495023727,
-0.06624241173267365,
-0.16135312616825104,
0.26270681619644165,
0.00142755638808012,
0.16808269917964935,
0.4264345169067383,
-0.14670290052890778,
0.04844242334365845,
-0.06990551948547363,
0.2786857485771179,
-0.052614375948905945,
-0.10909321159124374,
0.1506105214357376,
-0.32537445425987244,
0.054469995200634,
-0.34978798031806946,
0.08372768014669418,
-0.06782156974077225,
0.34623953700065613,
-0.2758390009403229,
-0.49336913228034973,
0.5901548266410828,
0.06104302406311035,
0.3375478982925415,
0.3253476023674011,
-0.0001185823421110399,
0.007394328713417053,
0.049149759113788605,
-0.29767951369285583,
0.06300017237663269,
-0.5153083801269531,
-0.21160519123077393,
-0.6882328391075134,
-0.07075060158967972,
-0.1863521933555603,
-0.24942466616630554,
-0.06915049254894257,
0.23590941727161407,
0.16131557524204254,
0.32868772745132446,
0.4041304588317871,
0.06675556302070618,
0.11867228150367737,
-0.011228244751691818,
0.16462373733520508,
0.4069054126739502,
0.3912608027458191,
-0.29841095209121704,
-0.05547158792614937,
0.5836411714553833,
0.15009410679340363,
-0.20072370767593384,
0.22613638639450073,
0.0665779709815979,
-0.09574086964130402,
0.21683219075202942,
0.31174883246421814,
0.11062145233154297,
-0.4583885371685028,
-0.20303478837013245,
0.2828921675682068,
0.23043543100357056,
-0.25538405776023865,
-0.2035071849822998,
-0.2779304087162018,
-0.05728369951248169,
-0.2900471091270447,
-0.028027810156345367,
0.3609631657600403,
-0.08088468015193939,
-0.009099278599023819,
0.2543642222881317,
-0.0029826685786247253,
-0.11148172616958618,
0.2031378298997879,
-0.010520011186599731,
0.4096223711967468,
-0.013463684357702732,
-0.10751784592866898,
-0.13960672914981842,
-0.11620797216892242,
0.701856255531311,
-0.010426267981529236,
0.1576862633228302,
0.11971083283424377,
-0.6041287779808044,
0.08037960529327393,
-0.13632291555404663,
-0.2818925976753235,
0.16630521416664124,
-0.04843749850988388,
0.20986545085906982,
0.15891525149345398,
0.14852482080459595,
0.014587141573429108,
0.3213750123977661,
0.20039565861225128,
0.2381373941898346,
0.031010303646326065,
-0.13071280717849731,
0.07348093390464783,
0.0858030617237091,
-0.09635833650827408,
-0.3183751106262207,
0.06530439853668213,
0.23683352768421173,
-0.02280653640627861,
0.28890693187713623,
-0.19623704254627228,
-0.368023544549942,
-0.01999141275882721,
-0.12843096256256104,
0.07258015125989914,
0.14147862792015076,
0.06118037551641464,
0.008060240186750889,
0.5874364972114563,
-0.07428833842277527,
0.17870855331420898,
-0.2538335621356964,
0.029141712933778763,
-0.14730004966259003,
0.16940994560718536,
-0.624359130859375,
-0.10618693381547928,
0.25825774669647217,
0.09196081757545471,
0.1970396190881729,
-0.006403282284736633,
0.12181995809078217,
-0.3322499096393585,
0.17588141560554504,
-0.2791439890861511,
0.26510968804359436,
-0.015867363661527634,
0.24573856592178345,
-0.12957213819026947,
-0.3093239963054657,
-0.009520024061203003,
-0.1647401601076126,
0.21943768858909607,
-0.7123695611953735,
-0.02457350865006447,
0.04509495943784714,
0.07545928657054901,
-0.21419395506381989,
0.14357399940490723,
-0.5043221116065979,
0.03225913643836975,
0.06304440647363663,
0.21816867589950562,
0.10690417140722275,
-0.3306131958961487,
-0.2142907977104187,
-0.0720486119389534,
0.08307014405727386,
0.1326560378074646,
-0.12915048003196716,
0.0973816066980362,
0.06310081481933594,
0.0002563726156949997,
0.10419753193855286,
0.21627996861934662,
-0.010966595262289047,
0.28418222069740295,
-0.18863455951213837,
0.5723387002944946,
0.41958218812942505,
-0.8037276268005371,
-0.3378545045852661,
0.08750918507575989,
-0.16561442613601685,
0.0018314458429813385,
-0.07771462947130203,
0.2999710142612457,
0.2168302685022354,
-0.10970831662416458,
0.2860373854637146,
0.4717786908149719,
-0.06015489995479584,
0.11296439915895462,
-0.10558316856622696,
0.2662768065929413,
-0.11809329688549042,
0.3215995728969574,
0.04209784418344498,
-0.26852890849113464,
-0.15946242213249207,
0.07514216005802155,
0.1948617398738861,
-0.11582836508750916,
0.08708562701940536,
0.4314538240432739,
0.08927341550588608,
-0.051384299993515015,
-0.050623711198568344,
0.03832472115755081,
-0.7624895572662354,
0.11410077661275864,
-0.4289604723453522,
0.37934401631355286,
0.010656766593456268,
-0.06719522178173065,
-0.1728428602218628,
-0.05107640475034714,
-0.29626232385635376,
-0.1906539797782898,
0.10716113448143005,
-0.12099955976009369,
-0.12378060817718506,
-0.3034513294696808,
-0.07628465443849564,
0.397414892911911,
-0.22609849274158478,
0.07376278936862946,
-0.5780189037322998,
0.34078356623649597,
0.11800407618284225,
-0.06648484617471695,
-0.012310583144426346,
0.4472557306289673,
0.1922498345375061,
-0.04829728975892067,
0.16845959424972534,
0.22092187404632568,
0.21488985419273376,
-0.1571745127439499,
-0.06123403459787369,
-0.0020266324281692505,
0.1334933191537857,
-0.5777861475944519,
0.06592755764722824,
0.22310002148151398,
-0.0014224816113710403,
-0.21430474519729614,
-0.12435512989759445,
0.5517564415931702,
0.18477018177509308,
0.20728400349617004,
0.028973184525966644,
0.07074965536594391,
0.21222327649593353,
-0.17136165499687195,
-0.23443351686000824,
-0.10390429198741913,
0.15454867482185364,
0.12331785261631012,
0.030547212809324265,
0.09956598281860352,
-0.5023411512374878,
0.02001155912876129,
0.3077203631401062,
0.02743048593401909,
0.1898186355829239,
0.20472759008407593,
-0.15310901403427124,
-0.0791655033826828,
0.03745677322149277,
0.3701200783252716,
0.359086811542511,
0.0914270356297493,
0.109885573387146,
0.1304074078798294,
-0.03294137492775917,
0.07248856872320175,
-0.0358838215470314,
0.06175382435321808,
0.1510181725025177,
0.21196547150611877,
0.17851611971855164,
-0.08419488370418549,
-0.08589637279510498,
-0.21915003657341003,
0.03217826038599014,
0.15216347575187683,
-0.3295000195503235,
0.07806990295648575,
0.03682161867618561,
-0.45026537775993347,
-0.14737486839294434,
0.04417257010936737,
-0.13615694642066956,
-0.3193354904651642,
-0.037922024726867676,
-0.057156097143888474,
0.238774836063385,
0.08406711369752884,
-0.474686861038208,
-0.21508686244487762,
-0.1986013948917389,
-0.34062856435775757,
-0.058314248919487,
0.07429326325654984,
-0.13823923468589783,
-0.02675413340330124,
0.2119734138250351,
0.5459085702896118,
-0.03127172589302063,
-0.43531492352485657,
0.39016032218933105,
-0.3872423768043518,
-0.20231196284294128,
0.30165642499923706,
-0.2638213634490967,
0.31215837597846985,
0.21715426445007324,
-0.10408544540405273,
-0.4046028256416321,
0.19591648876667023,
0.1874925047159195,
-0.3214799761772156,
-0.31412604451179504,
0.31686192750930786,
-0.1772637665271759,
-0.0916750431060791,
-0.026443663984537125,
-0.4063463807106018,
-0.5237724184989929,
-0.20548728108406067,
0.011994007974863052,
0.22303129732608795,
0.31624388694763184,
0.2151380181312561,
-0.25966617465019226,
-0.1451510637998581,
-0.13218092918395996,
-0.19551116228103638,
0.006959614809602499,
-0.572614312171936,
0.45684242248535156,
-0.24419434368610382,
-0.2051527202129364,
-0.08598031103610992,
-0.2658787965774536,
0.47131994366645813,
0.3780287504196167,
-0.06849359720945358,
-0.03754010796546936,
0.1413385421037674,
0.03518238291144371,
0.17770928144454956,
-0.062219418585300446,
0.29641205072402954,
-0.21413566172122955,
0.04570542275905609,
-0.027789507061243057,
-0.008123191073536873,
0.07852537930011749,
0.32014456391334534,
0.23043733835220337,
-0.026517946273088455,
-0.2571674883365631,
0.11034753918647766,
0.06357800960540771,
0.15529051423072815,
0.04633408784866333,
0.4367932677268982,
0.005378231406211853,
0.11456843465566635,
0.08478374034166336,
0.02240804024040699,
-0.16403049230575562,
0.060146018862724304,
0.23326949775218964,
-0.0009896308183670044,
0.2357875406742096,
-0.15477249026298523,
-0.07209770381450653,
0.12637120485305786,
-0.13299895823001862,
-0.21512025594711304,
0.5398619771003723,
-0.1397540271282196,
0.4105234146118164,
-0.1709616631269455,
0.02681668847799301,
-0.061432573944330215,
-0.45806968212127686,
-0.25713011622428894,
0.08615047484636307,
0.17971529066562653,
0.15540531277656555,
-0.6861756443977356,
0.3985413908958435,
-0.3888287842273712,
-0.020633533596992493,
0.17285126447677612,
0.5378323197364807,
0.21202577650547028,
0.08040609955787659,
0.1571730226278305,
-0.03739926218986511,
0.3112250566482544,
-0.2897285521030426,
-0.14624322950839996,
0.10926094651222229,
0.10011476278305054,
-0.3250238001346588,
-0.04307328909635544,
-0.25088104605674744,
0.02653084322810173,
0.4807165861129761,
0.4030666947364807,
-0.30203479528427124,
-0.4488570988178253,
-0.014215469360351562,
0.04743534326553345,
-0.2095993310213089,
-0.19778335094451904,
-0.2662707269191742,
-0.45051926374435425,
-0.09220190346240997,
-0.09107781201601028,
0.5540916919708252,
-0.01196756586432457,
0.28598952293395996,
0.0289192833006382,
-0.2357483059167862,
0.26541614532470703,
0.330189973115921,
-0.03711447864770889,
0.5644023418426514,
-0.23958195745944977,
0.005737554281949997,
-0.06575591117143631,
-0.08433018624782562,
0.29014745354652405,
0.48032522201538086,
-0.1859402060508728,
-0.15045349299907684,
0.1800042986869812,
-0.22384551167488098,
0.4223891794681549,
0.16637954115867615,
0.1885031759738922,
0.01889626681804657,
-0.29500812292099,
-0.0011857002973556519,
-0.1358921229839325,
0.13620227575302124,
0.3885798156261444,
-0.10829757899045944,
-0.4188075363636017,
-0.36532512307167053,
0.17683622241020203,
0.30887776613235474,
0.10559824109077454,
-0.23104408383369446,
-0.17216096818447113,
-0.26177674531936646,
-0.14155778288841248,
0.46636849641799927,
1.0166804790496826,
0.03018501028418541,
0.43357038497924805,
0.1726905107498169,
0.08972634375095367,
0.06072811037302017,
-0.44448673725128174,
0.2049940675497055,
-0.3482043743133545,
-0.32858794927597046,
-0.20364540815353394,
-0.25741440057754517,
-0.06209059804677963,
0.20261523127555847,
0.03191164508461952,
0.662602961063385,
0.22569076716899872,
-0.044790204614400864,
0.02295135334134102,
0.21597033739089966,
0.009368048049509525,
-0.386739581823349,
-0.37452441453933716,
0.004031706601381302,
-0.2863351106643677,
0.014986533671617508,
-0.15357747673988342,
-0.20838326215744019,
-0.05914842337369919,
0.1994757056236267,
0.1399664729833603,
0.2819459140300751,
0.09344664216041565,
-0.18290582299232483,
0.42392733693122864,
-0.5605937242507935,
-0.053347375243902206,
0.242873415350914,
0.07730409502983093,
-0.3221905827522278,
0.0031525790691375732,
0.23612280189990997,
0.40504199266433716,
0.10099668800830841,
0.3913232684135437,
-0.3321993052959442,
0.26010259985923767,
0.04982784390449524,
0.1221904382109642,
-0.24286028742790222,
0.15816043317317963,
-0.037263043224811554,
-0.41743192076683044,
0.0479724258184433,
-0.1750258505344391,
-0.2749730348587036,
-0.20879948139190674,
0.02693774551153183,
-0.14437010884284973,
-0.049738820642232895,
0.0549408458173275,
0.259435772895813,
-0.09028758853673935,
0.14810168743133545,
0.11329236626625061,
-0.25920605659484863,
0.1990923285484314,
0.08319070190191269,
0.29767483472824097,
-0.3125307559967041,
0.03761077672243118,
0.24821259081363678,
0.015134867280721664,
-0.0992361307144165,
0.18058153986930847,
0.4821500778198242,
-0.6173614263534546,
0.03374781832098961,
-0.24344956874847412,
-0.013798177242279053,
-0.01630086451768875,
0.18511709570884705,
0.0020544342696666718,
-0.26249897480010986,
0.16277506947517395,
-0.28285735845565796,
-0.3409927785396576,
0.3751989006996155,
0.11637803912162781,
0.27829134464263916,
-0.19798490405082703,
0.00982572603970766,
0.15099337697029114,
-0.2200438231229782,
-0.23904985189437866,
0.1753162443637848,
-0.17947137355804443,
0.19612371921539307,
-0.11576512455940247,
-0.09629125148057938,
0.08040311932563782,
-0.09420126676559448,
-0.02496989816427231,
0.2664702534675598,
-0.1458442509174347,
-0.05785387009382248,
0.017934098839759827,
0.12439140677452087,
0.13275250792503357,
-0.1157706081867218,
0.12489099055528641,
0.12000428140163422,
-0.05154094472527504,
-0.13733723759651184,
-0.1135682463645935,
0.18000167608261108,
0.022834021598100662,
0.23035410046577454,
-0.2976279556751251,
0.03927406296133995,
-0.12316618114709854,
0.23105865716934204,
0.18953807651996613,
0.120205357670784,
0.06575058400630951,
0.20725134015083313,
-0.05111878737807274,
0.02486599236726761,
-0.5182067155838013,
0.20642638206481934,
0.19672659039497375,
0.3688437044620514,
0.2152005434036255,
-0.15535664558410645,
0.10563814640045166,
-0.0322781577706337,
0.14986827969551086,
0.3083646595478058,
-0.2699720859527588,
-0.005844349041581154,
0.24190446734428406,
0.14836734533309937,
-0.15884436666965485,
-0.004972888622432947,
0.3671054244041443,
0.007890831679105759,
0.008068453520536423,
0.47907280921936035,
0.3525030016899109,
0.13681592047214508,
-0.1463463306427002,
0.06332699209451675,
0.23557473719120026,
-0.25352710485458374,
0.06761221587657928,
0.40521273016929626,
-0.005103282630443573,
0.13945753872394562,
0.5995874404907227,
0.03328801691532135,
-0.1143292561173439,
0.6000960469245911,
0.3011859059333801,
0.7809869050979614,
0.19956010580062866,
0.17875510454177856,
-0.0658111646771431,
-0.10446444153785706,
-0.4129893481731415,
0.25482919812202454,
0.1273956596851349,
0.17695295810699463,
0.03835275396704674,
0.14328762888908386,
0.14535696804523468,
-0.1860472708940506,
-0.09647722542285919,
0.11349990963935852,
-0.3404925465583801,
0.022929750382900238,
-0.3317875564098358,
-0.2342434525489807,
-0.12177427113056183,
-0.11770030856132507,
-0.17227379977703094,
0.03673819452524185,
0.06148860976099968,
0.13393905758857727,
-0.007461808621883392,
-0.06121242791414261,
0.08235365152359009,
0.2852357029914856,
0.047824203968048096,
-0.1977073848247528,
0.5288457870483398,
0.033901773393154144,
-0.04695729911327362,
-0.15871205925941467,
0.2742469608783722,
0.25314855575561523,
0.23150287568569183,
-0.051973361521959305,
-0.10700343549251556,
0.33872684836387634,
-0.11022821068763733,
-0.0296933650970459,
0.10047410428524017,
0.20050647854804993,
0.25491589307785034,
0.18043342232704163,
0.06518203020095825,
-0.004352319985628128,
0.3010016083717346,
0.06953603029251099,
-0.19286584854125977,
0.2435857653617859,
0.2801603674888611,
0.18614499270915985,
-0.28904563188552856,
-0.12946154177188873,
-0.22410231828689575,
-0.33889615535736084,
-0.16420963406562805,
0.3142125606536865,
-0.1428404152393341,
0.2404816448688507,
-0.13081541657447815,
0.05084565281867981,
0.042049143463373184,
0.19686734676361084,
0.1187223345041275,
0.11401593685150146,
-0.4945988059043884,
-0.08852329105138779,
-0.7457129955291748,
0.20055323839187622,
-0.3096914291381836,
-0.28265705704689026,
0.23556987941265106,
0.026604944840073586,
-0.04746194928884506,
0.3022996187210083,
-0.23467497527599335,
0.22896641492843628,
0.06854803115129471,
0.33479830622673035,
-0.6064156889915466,
0.06857944279909134,
0.23178240656852722,
0.35899820923805237,
0.05319131165742874,
-0.12498141825199127,
-0.2764682173728943,
0.21865303814411163,
-0.07028914988040924,
-0.07275992631912231,
-0.06854408979415894,
-0.1896737515926361,
-0.05582650005817413,
0.2673405110836029,
-0.21242347359657288,
0.15677662193775177,
-0.07460644841194153,
-0.1744624823331833,
-0.2747456431388855,
-0.05970994755625725,
-0.16448548436164856,
0.02105608582496643,
0.1005389392375946,
0.31677621603012085,
0.003346632234752178,
0.15478689968585968,
-0.391507089138031,
-0.2984791100025177,
0.013277072459459305,
0.08274872601032257,
-0.3641843795776367,
0.43281036615371704,
-0.2321622371673584,
0.14379477500915527,
0.03772285580635071,
0.2259722352027893,
0.07463201880455017,
-0.003320652060210705,
-0.15939228236675262,
-0.44558510184288025,
0.26130276918411255,
0.26990145444869995,
-0.19865652918815613,
-0.11950220167636871,
0.004335194826126099,
0.10739356279373169,
0.1258697509765625,
-0.44796523451805115,
0.13640910387039185,
0.17997044324874878,
-0.0451219379901886,
-0.09457521140575409,
0.08399656414985657,
-0.023716434836387634,
-0.07817785441875458,
-0.13010559976100922,
0.12380419671535492,
-0.02628353238105774,
-0.1145850270986557,
-0.20401307940483093,
-0.15853148698806763
] |
https://github.com/huggingface/datasets/issues/425 | Correct data structure for PAN-X task in XTREME dataset? | One more thing about features. I mentioned
```python
features = nlp.Features({
"words": [nlp.Value("string")],
"ner_tags": [nlp.Value("string")],
"langs": [nlp.Value("string")],
})
```
but it's actually not consistent with the way we write datasets. Something like this is simpler to read and more consistent with the way we define datasets:
```python
features = nlp.Features({
"words": nlp.Sequence(nlp.Value("string")),
"ner_tags": nlp.Sequence(nlp.Value("string")),
"langs": nlp.Sequence(nlp.Value("string")),
})
```
Sorry about that | Hi 🤗 team!
## Description of the problem
Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows:
```python
from nlp import load_dataset
# AmazonPhotos.zip is located in data/
dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data')
dataset_train = dataset['train']
```
However, I am not sure that `load_dataset()` is returning the correct data structure for NER.
Currently, every row in `dataset_train` is of the form
```python
{'word': str, 'ner_tag': str, 'lang': str}
```
but I think we actually want something like
```python
{'words': List[str], 'ner_tags': List[str], 'langs': List[str]}
```
so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples.
Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages.
## Proposed solution
Replace
```python
with open(filepath) as f:
data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
for id_, row in enumerate(data):
if row:
lang, word = row[0].split(":")[0], row[0].split(":")[1]
tag = row[1]
yield id_, {"word": word, "ner_tag": tag, "lang": lang}
```
from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like
```python
guid_index = 1
with open(filepath, encoding="utf-8") as f:
words = []
ner_tags = []
langs = []
for line in f:
if line.startswith("-DOCSTART-") or line == "" or line == "\n":
if words:
yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs}
guid_index += 1
words = []
ner_tags = []
else:
# pan-x data is tab separated
splits = line.split("\t")
# strip out en: prefix
langs.append(splits[0][:2])
words.append(splits[0][3:])
if len(splits) > 1:
labels.append(splits[-1].replace("\n", ""))
else:
# examples have no label in test set
labels.append("O")
```
If you agree, me or @lvwerra would be happy to implement this and create a PR. | 61 | Correct data structure for PAN-X task in XTREME dataset?
Hi 🤗 team!
## Description of the problem
Thanks to the fix from #416 I am now able to load the NER task in the XTREME dataset as follows:
```python
from nlp import load_dataset
# AmazonPhotos.zip is located in data/
dataset = load_dataset("xtreme", "PAN-X.en", data_dir='./data')
dataset_train = dataset['train']
```
However, I am not sure that `load_dataset()` is returning the correct data structure for NER.
Currently, every row in `dataset_train` is of the form
```python
{'word': str, 'ner_tag': str, 'lang': str}
```
but I think we actually want something like
```python
{'words': List[str], 'ner_tags': List[str], 'langs': List[str]}
```
so that each row corresponds to a _sequence_ of words associated with each example. With the current data structure I do not think it is possible to transform `dataset_train` into a form suitable for training because we do not know the boundaries between examples.
Indeed, [this line](https://github.com/google-research/xtreme/blob/522434d1aece34131d997a97ce7e9242a51a688a/third_party/utils_tag.py#L58) in the XTREME repo, processes the texts as lists of sentences, tags, and languages.
## Proposed solution
Replace
```python
with open(filepath) as f:
data = csv.reader(f, delimiter="\t", quoting=csv.QUOTE_NONE)
for id_, row in enumerate(data):
if row:
lang, word = row[0].split(":")[0], row[0].split(":")[1]
tag = row[1]
yield id_, {"word": word, "ner_tag": tag, "lang": lang}
```
from [these lines](https://github.com/huggingface/nlp/blob/ce7d3a1d630b78fe27188d1706f3ea980e8eec43/datasets/xtreme/xtreme.py#L881-L887) of the `_generate_examples()` function with something like
```python
guid_index = 1
with open(filepath, encoding="utf-8") as f:
words = []
ner_tags = []
langs = []
for line in f:
if line.startswith("-DOCSTART-") or line == "" or line == "\n":
if words:
yield guid_index, {"words": words, "ner_tags": ner_tags, "langs": langs}
guid_index += 1
words = []
ner_tags = []
else:
# pan-x data is tab separated
splits = line.split("\t")
# strip out en: prefix
langs.append(splits[0][:2])
words.append(splits[0][3:])
if len(splits) > 1:
labels.append(splits[-1].replace("\n", ""))
else:
# examples have no label in test set
labels.append("O")
```
If you agree, me or @lvwerra would be happy to implement this and create a PR.
One more thing about features. I mentioned
```python
features = nlp.Features({
"words": [nlp.Value("string")],
"ner_tags": [nlp.Value("string")],
"langs": [nlp.Value("string")],
})
```
but it's actually not consistent with the way we write datasets. Something like this is simpler to read and more consistent with the way we define datasets:
```python
features = nlp.Features({
"words": nlp.Sequence(nlp.Value("string")),
"ner_tags": nlp.Sequence(nlp.Value("string")),
"langs": nlp.Sequence(nlp.Value("string")),
})
```
Sorry about that | [
-0.04464271664619446,
-0.1960519701242447,
-0.02139195241034031,
0.37166136503219604,
0.03904012590646744,
-0.27633076906204224,
-0.02063750848174095,
0.1579519808292389,
-0.07178055495023727,
-0.06624241173267365,
-0.16135312616825104,
0.26270681619644165,
0.00142755638808012,
0.16808269917964935,
0.4264345169067383,
-0.14670290052890778,
0.04844242334365845,
-0.06990551948547363,
0.2786857485771179,
-0.052614375948905945,
-0.10909321159124374,
0.1506105214357376,
-0.32537445425987244,
0.054469995200634,
-0.34978798031806946,
0.08372768014669418,
-0.06782156974077225,
0.34623953700065613,
-0.2758390009403229,
-0.49336913228034973,
0.5901548266410828,
0.06104302406311035,
0.3375478982925415,
0.3253476023674011,
-0.0001185823421110399,
0.007394328713417053,
0.049149759113788605,
-0.29767951369285583,
0.06300017237663269,
-0.5153083801269531,
-0.21160519123077393,
-0.6882328391075134,
-0.07075060158967972,
-0.1863521933555603,
-0.24942466616630554,
-0.06915049254894257,
0.23590941727161407,
0.16131557524204254,
0.32868772745132446,
0.4041304588317871,
0.06675556302070618,
0.11867228150367737,
-0.011228244751691818,
0.16462373733520508,
0.4069054126739502,
0.3912608027458191,
-0.29841095209121704,
-0.05547158792614937,
0.5836411714553833,
0.15009410679340363,
-0.20072370767593384,
0.22613638639450073,
0.0665779709815979,
-0.09574086964130402,
0.21683219075202942,
0.31174883246421814,
0.11062145233154297,
-0.4583885371685028,
-0.20303478837013245,
0.2828921675682068,
0.23043543100357056,
-0.25538405776023865,
-0.2035071849822998,
-0.2779304087162018,
-0.05728369951248169,
-0.2900471091270447,
-0.028027810156345367,
0.3609631657600403,
-0.08088468015193939,
-0.009099278599023819,
0.2543642222881317,
-0.0029826685786247253,
-0.11148172616958618,
0.2031378298997879,
-0.010520011186599731,
0.4096223711967468,
-0.013463684357702732,
-0.10751784592866898,
-0.13960672914981842,
-0.11620797216892242,
0.701856255531311,
-0.010426267981529236,
0.1576862633228302,
0.11971083283424377,
-0.6041287779808044,
0.08037960529327393,
-0.13632291555404663,
-0.2818925976753235,
0.16630521416664124,
-0.04843749850988388,
0.20986545085906982,
0.15891525149345398,
0.14852482080459595,
0.014587141573429108,
0.3213750123977661,
0.20039565861225128,
0.2381373941898346,
0.031010303646326065,
-0.13071280717849731,
0.07348093390464783,
0.0858030617237091,
-0.09635833650827408,
-0.3183751106262207,
0.06530439853668213,
0.23683352768421173,
-0.02280653640627861,
0.28890693187713623,
-0.19623704254627228,
-0.368023544549942,
-0.01999141275882721,
-0.12843096256256104,
0.07258015125989914,
0.14147862792015076,
0.06118037551641464,
0.008060240186750889,
0.5874364972114563,
-0.07428833842277527,
0.17870855331420898,
-0.2538335621356964,
0.029141712933778763,
-0.14730004966259003,
0.16940994560718536,
-0.624359130859375,
-0.10618693381547928,
0.25825774669647217,
0.09196081757545471,
0.1970396190881729,
-0.006403282284736633,
0.12181995809078217,
-0.3322499096393585,
0.17588141560554504,
-0.2791439890861511,
0.26510968804359436,
-0.015867363661527634,
0.24573856592178345,
-0.12957213819026947,
-0.3093239963054657,
-0.009520024061203003,
-0.1647401601076126,
0.21943768858909607,
-0.7123695611953735,
-0.02457350865006447,
0.04509495943784714,
0.07545928657054901,
-0.21419395506381989,
0.14357399940490723,
-0.5043221116065979,
0.03225913643836975,
0.06304440647363663,
0.21816867589950562,
0.10690417140722275,
-0.3306131958961487,
-0.2142907977104187,
-0.0720486119389534,
0.08307014405727386,
0.1326560378074646,
-0.12915048003196716,
0.0973816066980362,
0.06310081481933594,
0.0002563726156949997,
0.10419753193855286,
0.21627996861934662,
-0.010966595262289047,
0.28418222069740295,
-0.18863455951213837,
0.5723387002944946,
0.41958218812942505,
-0.8037276268005371,
-0.3378545045852661,
0.08750918507575989,
-0.16561442613601685,
0.0018314458429813385,
-0.07771462947130203,
0.2999710142612457,
0.2168302685022354,
-0.10970831662416458,
0.2860373854637146,
0.4717786908149719,
-0.06015489995479584,
0.11296439915895462,
-0.10558316856622696,
0.2662768065929413,
-0.11809329688549042,
0.3215995728969574,
0.04209784418344498,
-0.26852890849113464,
-0.15946242213249207,
0.07514216005802155,
0.1948617398738861,
-0.11582836508750916,
0.08708562701940536,
0.4314538240432739,
0.08927341550588608,
-0.051384299993515015,
-0.050623711198568344,
0.03832472115755081,
-0.7624895572662354,
0.11410077661275864,
-0.4289604723453522,
0.37934401631355286,
0.010656766593456268,
-0.06719522178173065,
-0.1728428602218628,
-0.05107640475034714,
-0.29626232385635376,
-0.1906539797782898,
0.10716113448143005,
-0.12099955976009369,
-0.12378060817718506,
-0.3034513294696808,
-0.07628465443849564,
0.397414892911911,
-0.22609849274158478,
0.07376278936862946,
-0.5780189037322998,
0.34078356623649597,
0.11800407618284225,
-0.06648484617471695,
-0.012310583144426346,
0.4472557306289673,
0.1922498345375061,
-0.04829728975892067,
0.16845959424972534,
0.22092187404632568,
0.21488985419273376,
-0.1571745127439499,
-0.06123403459787369,
-0.0020266324281692505,
0.1334933191537857,
-0.5777861475944519,
0.06592755764722824,
0.22310002148151398,
-0.0014224816113710403,
-0.21430474519729614,
-0.12435512989759445,
0.5517564415931702,
0.18477018177509308,
0.20728400349617004,
0.028973184525966644,
0.07074965536594391,
0.21222327649593353,
-0.17136165499687195,
-0.23443351686000824,
-0.10390429198741913,
0.15454867482185364,
0.12331785261631012,
0.030547212809324265,
0.09956598281860352,
-0.5023411512374878,
0.02001155912876129,
0.3077203631401062,
0.02743048593401909,
0.1898186355829239,
0.20472759008407593,
-0.15310901403427124,
-0.0791655033826828,
0.03745677322149277,
0.3701200783252716,
0.359086811542511,
0.0914270356297493,
0.109885573387146,
0.1304074078798294,
-0.03294137492775917,
0.07248856872320175,
-0.0358838215470314,
0.06175382435321808,
0.1510181725025177,
0.21196547150611877,
0.17851611971855164,
-0.08419488370418549,
-0.08589637279510498,
-0.21915003657341003,
0.03217826038599014,
0.15216347575187683,
-0.3295000195503235,
0.07806990295648575,
0.03682161867618561,
-0.45026537775993347,
-0.14737486839294434,
0.04417257010936737,
-0.13615694642066956,
-0.3193354904651642,
-0.037922024726867676,
-0.057156097143888474,
0.238774836063385,
0.08406711369752884,
-0.474686861038208,
-0.21508686244487762,
-0.1986013948917389,
-0.34062856435775757,
-0.058314248919487,
0.07429326325654984,
-0.13823923468589783,
-0.02675413340330124,
0.2119734138250351,
0.5459085702896118,
-0.03127172589302063,
-0.43531492352485657,
0.39016032218933105,
-0.3872423768043518,
-0.20231196284294128,
0.30165642499923706,
-0.2638213634490967,
0.31215837597846985,
0.21715426445007324,
-0.10408544540405273,
-0.4046028256416321,
0.19591648876667023,
0.1874925047159195,
-0.3214799761772156,
-0.31412604451179504,
0.31686192750930786,
-0.1772637665271759,
-0.0916750431060791,
-0.026443663984537125,
-0.4063463807106018,
-0.5237724184989929,
-0.20548728108406067,
0.011994007974863052,
0.22303129732608795,
0.31624388694763184,
0.2151380181312561,
-0.25966617465019226,
-0.1451510637998581,
-0.13218092918395996,
-0.19551116228103638,
0.006959614809602499,
-0.572614312171936,
0.45684242248535156,
-0.24419434368610382,
-0.2051527202129364,
-0.08598031103610992,
-0.2658787965774536,
0.47131994366645813,
0.3780287504196167,
-0.06849359720945358,
-0.03754010796546936,
0.1413385421037674,
0.03518238291144371,
0.17770928144454956,
-0.062219418585300446,
0.29641205072402954,
-0.21413566172122955,
0.04570542275905609,
-0.027789507061243057,
-0.008123191073536873,
0.07852537930011749,
0.32014456391334534,
0.23043733835220337,
-0.026517946273088455,
-0.2571674883365631,
0.11034753918647766,
0.06357800960540771,
0.15529051423072815,
0.04633408784866333,
0.4367932677268982,
0.005378231406211853,
0.11456843465566635,
0.08478374034166336,
0.02240804024040699,
-0.16403049230575562,
0.060146018862724304,
0.23326949775218964,
-0.0009896308183670044,
0.2357875406742096,
-0.15477249026298523,
-0.07209770381450653,
0.12637120485305786,
-0.13299895823001862,
-0.21512025594711304,
0.5398619771003723,
-0.1397540271282196,
0.4105234146118164,
-0.1709616631269455,
0.02681668847799301,
-0.061432573944330215,
-0.45806968212127686,
-0.25713011622428894,
0.08615047484636307,
0.17971529066562653,
0.15540531277656555,
-0.6861756443977356,
0.3985413908958435,
-0.3888287842273712,
-0.020633533596992493,
0.17285126447677612,
0.5378323197364807,
0.21202577650547028,
0.08040609955787659,
0.1571730226278305,
-0.03739926218986511,
0.3112250566482544,
-0.2897285521030426,
-0.14624322950839996,
0.10926094651222229,
0.10011476278305054,
-0.3250238001346588,
-0.04307328909635544,
-0.25088104605674744,
0.02653084322810173,
0.4807165861129761,
0.4030666947364807,
-0.30203479528427124,
-0.4488570988178253,
-0.014215469360351562,
0.04743534326553345,
-0.2095993310213089,
-0.19778335094451904,
-0.2662707269191742,
-0.45051926374435425,
-0.09220190346240997,
-0.09107781201601028,
0.5540916919708252,
-0.01196756586432457,
0.28598952293395996,
0.0289192833006382,
-0.2357483059167862,
0.26541614532470703,
0.330189973115921,
-0.03711447864770889,
0.5644023418426514,
-0.23958195745944977,
0.005737554281949997,
-0.06575591117143631,
-0.08433018624782562,
0.29014745354652405,
0.48032522201538086,
-0.1859402060508728,
-0.15045349299907684,
0.1800042986869812,
-0.22384551167488098,
0.4223891794681549,
0.16637954115867615,
0.1885031759738922,
0.01889626681804657,
-0.29500812292099,
-0.0011857002973556519,
-0.1358921229839325,
0.13620227575302124,
0.3885798156261444,
-0.10829757899045944,
-0.4188075363636017,
-0.36532512307167053,
0.17683622241020203,
0.30887776613235474,
0.10559824109077454,
-0.23104408383369446,
-0.17216096818447113,
-0.26177674531936646,
-0.14155778288841248,
0.46636849641799927,
1.0166804790496826,
0.03018501028418541,
0.43357038497924805,
0.1726905107498169,
0.08972634375095367,
0.06072811037302017,
-0.44448673725128174,
0.2049940675497055,
-0.3482043743133545,
-0.32858794927597046,
-0.20364540815353394,
-0.25741440057754517,
-0.06209059804677963,
0.20261523127555847,
0.03191164508461952,
0.662602961063385,
0.22569076716899872,
-0.044790204614400864,
0.02295135334134102,
0.21597033739089966,
0.009368048049509525,
-0.386739581823349,
-0.37452441453933716,
0.004031706601381302,
-0.2863351106643677,
0.014986533671617508,
-0.15357747673988342,
-0.20838326215744019,
-0.05914842337369919,
0.1994757056236267,
0.1399664729833603,
0.2819459140300751,
0.09344664216041565,
-0.18290582299232483,
0.42392733693122864,
-0.5605937242507935,
-0.053347375243902206,
0.242873415350914,
0.07730409502983093,
-0.3221905827522278,
0.0031525790691375732,
0.23612280189990997,
0.40504199266433716,
0.10099668800830841,
0.3913232684135437,
-0.3321993052959442,
0.26010259985923767,
0.04982784390449524,
0.1221904382109642,
-0.24286028742790222,
0.15816043317317963,
-0.037263043224811554,
-0.41743192076683044,
0.0479724258184433,
-0.1750258505344391,
-0.2749730348587036,
-0.20879948139190674,
0.02693774551153183,
-0.14437010884284973,
-0.049738820642232895,
0.0549408458173275,
0.259435772895813,
-0.09028758853673935,
0.14810168743133545,
0.11329236626625061,
-0.25920605659484863,
0.1990923285484314,
0.08319070190191269,
0.29767483472824097,
-0.3125307559967041,
0.03761077672243118,
0.24821259081363678,
0.015134867280721664,
-0.0992361307144165,
0.18058153986930847,
0.4821500778198242,
-0.6173614263534546,
0.03374781832098961,
-0.24344956874847412,
-0.013798177242279053,
-0.01630086451768875,
0.18511709570884705,
0.0020544342696666718,
-0.26249897480010986,
0.16277506947517395,
-0.28285735845565796,
-0.3409927785396576,
0.3751989006996155,
0.11637803912162781,
0.27829134464263916,
-0.19798490405082703,
0.00982572603970766,
0.15099337697029114,
-0.2200438231229782,
-0.23904985189437866,
0.1753162443637848,
-0.17947137355804443,
0.19612371921539307,
-0.11576512455940247,
-0.09629125148057938,
0.08040311932563782,
-0.09420126676559448,
-0.02496989816427231,
0.2664702534675598,
-0.1458442509174347,
-0.05785387009382248,
0.017934098839759827,
0.12439140677452087,
0.13275250792503357,
-0.1157706081867218,
0.12489099055528641,
0.12000428140163422,
-0.05154094472527504,
-0.13733723759651184,
-0.1135682463645935,
0.18000167608261108,
0.022834021598100662,
0.23035410046577454,
-0.2976279556751251,
0.03927406296133995,
-0.12316618114709854,
0.23105865716934204,
0.18953807651996613,
0.120205357670784,
0.06575058400630951,
0.20725134015083313,
-0.05111878737807274,
0.02486599236726761,
-0.5182067155838013,
0.20642638206481934,
0.19672659039497375,
0.3688437044620514,
0.2152005434036255,
-0.15535664558410645,
0.10563814640045166,
-0.0322781577706337,
0.14986827969551086,
0.3083646595478058,
-0.2699720859527588,
-0.005844349041581154,
0.24190446734428406,
0.14836734533309937,
-0.15884436666965485,
-0.004972888622432947,
0.3671054244041443,
0.007890831679105759,
0.008068453520536423,
0.47907280921936035,
0.3525030016899109,
0.13681592047214508,
-0.1463463306427002,
0.06332699209451675,
0.23557473719120026,
-0.25352710485458374,
0.06761221587657928,
0.40521273016929626,
-0.005103282630443573,
0.13945753872394562,
0.5995874404907227,
0.03328801691532135,
-0.1143292561173439,
0.6000960469245911,
0.3011859059333801,
0.7809869050979614,
0.19956010580062866,
0.17875510454177856,
-0.0658111646771431,
-0.10446444153785706,
-0.4129893481731415,
0.25482919812202454,
0.1273956596851349,
0.17695295810699463,
0.03835275396704674,
0.14328762888908386,
0.14535696804523468,
-0.1860472708940506,
-0.09647722542285919,
0.11349990963935852,
-0.3404925465583801,
0.022929750382900238,
-0.3317875564098358,
-0.2342434525489807,
-0.12177427113056183,
-0.11770030856132507,
-0.17227379977703094,
0.03673819452524185,
0.06148860976099968,
0.13393905758857727,
-0.007461808621883392,
-0.06121242791414261,
0.08235365152359009,
0.2852357029914856,
0.047824203968048096,
-0.1977073848247528,
0.5288457870483398,
0.033901773393154144,
-0.04695729911327362,
-0.15871205925941467,
0.2742469608783722,
0.25314855575561523,
0.23150287568569183,
-0.051973361521959305,
-0.10700343549251556,
0.33872684836387634,
-0.11022821068763733,
-0.0296933650970459,
0.10047410428524017,
0.20050647854804993,
0.25491589307785034,
0.18043342232704163,
0.06518203020095825,
-0.004352319985628128,
0.3010016083717346,
0.06953603029251099,
-0.19286584854125977,
0.2435857653617859,
0.2801603674888611,
0.18614499270915985,
-0.28904563188552856,
-0.12946154177188873,
-0.22410231828689575,
-0.33889615535736084,
-0.16420963406562805,
0.3142125606536865,
-0.1428404152393341,
0.2404816448688507,
-0.13081541657447815,
0.05084565281867981,
0.042049143463373184,
0.19686734676361084,
0.1187223345041275,
0.11401593685150146,
-0.4945988059043884,
-0.08852329105138779,
-0.7457129955291748,
0.20055323839187622,
-0.3096914291381836,
-0.28265705704689026,
0.23556987941265106,
0.026604944840073586,
-0.04746194928884506,
0.3022996187210083,
-0.23467497527599335,
0.22896641492843628,
0.06854803115129471,
0.33479830622673035,
-0.6064156889915466,
0.06857944279909134,
0.23178240656852722,
0.35899820923805237,
0.05319131165742874,
-0.12498141825199127,
-0.2764682173728943,
0.21865303814411163,
-0.07028914988040924,
-0.07275992631912231,
-0.06854408979415894,
-0.1896737515926361,
-0.05582650005817413,
0.2673405110836029,
-0.21242347359657288,
0.15677662193775177,
-0.07460644841194153,
-0.1744624823331833,
-0.2747456431388855,
-0.05970994755625725,
-0.16448548436164856,
0.02105608582496643,
0.1005389392375946,
0.31677621603012085,
0.003346632234752178,
0.15478689968585968,
-0.391507089138031,
-0.2984791100025177,
0.013277072459459305,
0.08274872601032257,
-0.3641843795776367,
0.43281036615371704,
-0.2321622371673584,
0.14379477500915527,
0.03772285580635071,
0.2259722352027893,
0.07463201880455017,
-0.003320652060210705,
-0.15939228236675262,
-0.44558510184288025,
0.26130276918411255,
0.26990145444869995,
-0.19865652918815613,
-0.11950220167636871,
0.004335194826126099,
0.10739356279373169,
0.1258697509765625,
-0.44796523451805115,
0.13640910387039185,
0.17997044324874878,
-0.0451219379901886,
-0.09457521140575409,
0.08399656414985657,
-0.023716434836387634,
-0.07817785441875458,
-0.13010559976100922,
0.12380419671535492,
-0.02628353238105774,
-0.1145850270986557,
-0.20401307940483093,
-0.15853148698806763
] |
https://github.com/huggingface/datasets/issues/418 | Addition of google drive links to dl_manager | I think the problem is the way you wrote your urls. Try the following structure to see `https://drive.google.com/uc?export=download&id=your_file_id` .
@lhoestq | Hello there, I followed the template to create a download script of my own, which works fine for me, although I had to shun the dl_manager because it was downloading nothing from the drive links and instead use gdown.
This is the script for me:
```python
class EmoConfig(nlp.BuilderConfig):
"""BuilderConfig for SQUAD."""
def __init__(self, **kwargs):
"""BuilderConfig for EmoContext.
Args:
**kwargs: keyword arguments forwarded to super.
"""
super(EmoConfig, self).__init__(**kwargs)
_TEST_URL = "https://drive.google.com/file/d/1Hn5ytHSSoGOC4sjm3wYy0Dh0oY_oXBbb/view?usp=sharing"
_TRAIN_URL = "https://drive.google.com/file/d/12Uz59TYg_NtxOy7SXraYeXPMRT7oaO7X/view?usp=sharing"
class EmoDataset(nlp.GeneratorBasedBuilder):
""" SemEval-2019 Task 3: EmoContext Contextual Emotion Detection in Text. Version 1.0.0 """
VERSION = nlp.Version("1.0.0")
force = False
def _info(self):
return nlp.DatasetInfo(
description=_DESCRIPTION,
features=nlp.Features(
{
"text": nlp.Value("string"),
"label": nlp.features.ClassLabel(names=["others", "happy", "sad", "angry"]),
}
),
supervised_keys=None,
homepage="https://www.aclweb.org/anthology/S19-2005/",
citation=_CITATION,
)
def _get_drive_url(self, url):
base_url = 'https://drive.google.com/uc?id='
split_url = url.split('/')
return base_url + split_url[5]
def _split_generators(self, dl_manager):
"""Returns SplitGenerators."""
if(not os.path.exists("emo-train.json") or self.force):
gdown.download(self._get_drive_url(_TRAIN_URL), "emo-train.json", quiet = True)
if(not os.path.exists("emo-test.json") or self.force):
gdown.download(self._get_drive_url(_TEST_URL), "emo-test.json", quiet = True)
return [
nlp.SplitGenerator(
name=nlp.Split.TRAIN,
gen_kwargs={
"filepath": "emo-train.json",
"split": "train",
},
),
nlp.SplitGenerator(
name=nlp.Split.TEST,
gen_kwargs={"filepath": "emo-test.json", "split": "test"},
),
]
def _generate_examples(self, filepath, split):
""" Yields examples. """
with open(filepath, 'rb') as f:
data = json.load(f)
for id_, text, label in zip(data["text"].keys(), data["text"].values(), data["Label"].values()):
yield id_, {
"text": text,
"label": label,
}
```
Can someone help me in adding gdrive links to be used with default dl_manager or adding gdown as another dl_manager, because I'd like to add this dataset to nlp's official database. | 20 | Addition of google drive links to dl_manager
Hello there, I followed the template to create a download script of my own, which works fine for me, although I had to shun the dl_manager because it was downloading nothing from the drive links and instead use gdown.
This is the script for me:
```python
class EmoConfig(nlp.BuilderConfig):
"""BuilderConfig for SQUAD."""
def __init__(self, **kwargs):
"""BuilderConfig for EmoContext.
Args:
**kwargs: keyword arguments forwarded to super.
"""
super(EmoConfig, self).__init__(**kwargs)
_TEST_URL = "https://drive.google.com/file/d/1Hn5ytHSSoGOC4sjm3wYy0Dh0oY_oXBbb/view?usp=sharing"
_TRAIN_URL = "https://drive.google.com/file/d/12Uz59TYg_NtxOy7SXraYeXPMRT7oaO7X/view?usp=sharing"
class EmoDataset(nlp.GeneratorBasedBuilder):
""" SemEval-2019 Task 3: EmoContext Contextual Emotion Detection in Text. Version 1.0.0 """
VERSION = nlp.Version("1.0.0")
force = False
def _info(self):
return nlp.DatasetInfo(
description=_DESCRIPTION,
features=nlp.Features(
{
"text": nlp.Value("string"),
"label": nlp.features.ClassLabel(names=["others", "happy", "sad", "angry"]),
}
),
supervised_keys=None,
homepage="https://www.aclweb.org/anthology/S19-2005/",
citation=_CITATION,
)
def _get_drive_url(self, url):
base_url = 'https://drive.google.com/uc?id='
split_url = url.split('/')
return base_url + split_url[5]
def _split_generators(self, dl_manager):
"""Returns SplitGenerators."""
if(not os.path.exists("emo-train.json") or self.force):
gdown.download(self._get_drive_url(_TRAIN_URL), "emo-train.json", quiet = True)
if(not os.path.exists("emo-test.json") or self.force):
gdown.download(self._get_drive_url(_TEST_URL), "emo-test.json", quiet = True)
return [
nlp.SplitGenerator(
name=nlp.Split.TRAIN,
gen_kwargs={
"filepath": "emo-train.json",
"split": "train",
},
),
nlp.SplitGenerator(
name=nlp.Split.TEST,
gen_kwargs={"filepath": "emo-test.json", "split": "test"},
),
]
def _generate_examples(self, filepath, split):
""" Yields examples. """
with open(filepath, 'rb') as f:
data = json.load(f)
for id_, text, label in zip(data["text"].keys(), data["text"].values(), data["Label"].values()):
yield id_, {
"text": text,
"label": label,
}
```
Can someone help me in adding gdrive links to be used with default dl_manager or adding gdown as another dl_manager, because I'd like to add this dataset to nlp's official database.
I think the problem is the way you wrote your urls. Try the following structure to see `https://drive.google.com/uc?export=download&id=your_file_id` .
@lhoestq | [
-0.0986938327550888,
0.05165711045265198,
-0.13091997802257538,
-0.05589684844017029,
0.06394003331661224,
-0.0953548327088356,
0.3679337799549103,
0.22080984711647034,
0.20629148185253143,
0.22497829794883728,
-0.07506585866212845,
0.3655777871608734,
-0.2819617986679077,
0.14167752861976624,
0.14772482216358185,
0.11733189970254898,
-0.22435078024864197,
0.20253285765647888,
0.27563416957855225,
-0.16394372284412384,
-0.27513349056243896,
0.32780691981315613,
-0.03187933936715126,
-0.008126616477966309,
0.05023100599646568,
0.050559431314468384,
-0.13912220299243927,
0.19806811213493347,
-0.11889583617448807,
-0.29995420575141907,
-0.41973817348480225,
0.16710452735424042,
0.16023993492126465,
-0.09745674580335617,
-0.00010426565131638199,
-0.14807745814323425,
0.22256802022457123,
-0.20845332741737366,
-0.40872254967689514,
-0.293667197227478,
0.2981954514980316,
-0.1724264919757843,
0.10730814188718796,
-0.26513993740081787,
-0.004575641825795174,
-0.09832483530044556,
0.204119011759758,
0.13540443778038025,
0.2655153274536133,
0.30323436856269836,
0.27170053124427795,
0.07904976606369019,
0.11347104609012604,
0.029893016442656517,
0.3312549293041229,
-0.03548905998468399,
-0.06828062236309052,
0.3527141511440277,
0.33446645736694336,
-0.3054531216621399,
-0.16186749935150146,
0.28838682174682617,
-0.005472190678119659,
-0.010992273688316345,
0.21951305866241455,
0.1113421842455864,
0.5780618190765381,
-0.3311687409877777,
0.10661400109529495,
0.03274913877248764,
0.023619525134563446,
-0.04132380336523056,
-0.08505141735076904,
-0.28421351313591003,
0.08381404727697372,
-0.28745731711387634,
0.27665257453918457,
0.14956596493721008,
-0.23348383605480194,
-0.054356563836336136,
-0.12947843968868256,
-0.025504233315587044,
-0.015470035374164581,
0.054059386253356934,
-0.08892625570297241,
0.41385459899902344,
-0.03893894702196121,
-0.2830839455127716,
0.38612493872642517,
-0.038152970373630524,
-0.09715704619884491,
-0.15326273441314697,
-0.03946896269917488,
0.0766022726893425,
-0.03747742995619774,
-0.2887786626815796,
0.15674787759780884,
0.046640925109386444,
0.09379839152097702,
0.24899189174175262,
0.046064648777246475,
0.03289207071065903,
0.23562416434288025,
0.07529329508543015,
0.16302724182605743,
0.44595909118652344,
-0.00031391531229019165,
0.04006621986627579,
0.3538972735404968,
0.41765153408050537,
0.16089779138565063,
0.15011730790138245,
-0.12023317068815231,
-0.1861618310213089,
-0.14165082573890686,
0.14086097478866577,
-0.15757808089256287,
0.0906018316745758,
-0.4310431480407715,
-0.1330982893705368,
-0.37323322892189026,
0.007338605355471373,
-0.03436215594410896,
0.4378289580345154,
-0.04874889925122261,
-0.13966289162635803,
0.24411390721797943,
0.2374010980129242,
-0.042372748255729675,
0.09001713246107101,
-0.12547846138477325,
0.2556152939796448,
-0.21680907905101776,
-0.052022673189640045,
0.3310381770133972,
0.07708092033863068,
0.42122384905815125,
-0.2571604549884796,
-0.12134027481079102,
-0.22413302958011627,
0.13889428973197937,
0.08599615097045898,
-0.013925306499004364,
-0.06411254405975342,
0.4167032241821289,
0.01552211306989193,
-0.15332551300525665,
-0.41582202911376953,
-0.07122496515512466,
0.03881145268678665,
0.03470766544342041,
-0.03710688650608063,
-0.17407624423503876,
0.3355267643928528,
-0.08622898906469345,
-0.09424616396427155,
-0.0037769079208374023,
0.22714771330356598,
-0.15021571516990662,
0.04360168054699898,
0.08587618172168732,
0.3182874321937561,
-0.08277752995491028,
-0.0009884893661364913,
0.1685219705104828,
0.2986227869987488,
-0.09494412690401077,
-0.2877132296562195,
-0.18399229645729065,
0.16736768186092377,
-0.11325449496507645,
-0.06327109038829803,
-0.04493097588419914,
0.24556872248649597,
-0.3793998658657074,
0.24192102253437042,
0.3043498992919922,
-0.28963813185691833,
-0.20502831041812897,
0.21484529972076416,
-0.3752196431159973,
-0.17490410804748535,
0.0302705317735672,
0.014300535432994366,
0.41080421209335327,
-0.004255393985658884,
-0.14323003590106964,
0.48279130458831787,
0.07717099785804749,
0.24286621809005737,
-0.3040136396884918,
-0.4660179018974304,
-0.18291281163692474,
0.20750278234481812,
0.15166428685188293,
-0.11844619363546371,
0.10884067416191101,
-0.08774416148662567,
0.3002724051475525,
-0.15627485513687134,
0.18655988574028015,
0.10289213061332703,
0.0824301689863205,
0.09620232880115509,
0.09026598930358887,
0.12775585055351257,
-0.45530611276626587,
-0.024584153667092323,
-0.1491122543811798,
0.24003949761390686,
-0.3181629180908203,
-0.16543620824813843,
-0.22851255536079407,
-0.18236085772514343,
-0.20870424807071686,
-0.3032345473766327,
0.2976224422454834,
0.21817713975906372,
0.05891552194952965,
0.2489137500524521,
0.07916732132434845,
-0.07833805680274963,
0.16629116237163544,
0.13523641228675842,
0.048304490745067596,
0.33084219694137573,
-0.3822072446346283,
-0.11544492840766907,
0.1777772605419159,
0.05338411033153534,
0.16276946663856506,
-0.009796175174415112,
0.017779339104890823,
0.20222994685173035,
-0.23383505642414093,
0.45602530241012573,
0.034299951046705246,
-0.01848846673965454,
0.26438108086586,
-0.001895613968372345,
0.3286043405532837,
0.3785984516143799,
0.12536939978599548,
-0.042321257293224335,
-0.1335398256778717,
0.3993210792541504,
0.2978723645210266,
0.1315344274044037,
0.19843973219394684,
0.1492624282836914,
-0.03458129242062569,
-0.30922213196754456,
-0.036615192890167236,
-0.17500394582748413,
0.10603088140487671,
0.4917028546333313,
0.38121533393859863,
-0.11718910932540894,
-0.17985595762729645,
0.22685974836349487,
0.3522850573062897,
-0.04310353845357895,
0.2884168326854706,
0.07977916300296783,
-0.3493874669075012,
-0.15528815984725952,
-0.11724914610385895,
0.3525716960430145,
0.16296450793743134,
0.2543208599090576,
0.17127279937267303,
0.04933606833219528,
-0.00800891499966383,
-0.30644747614860535,
0.3992132544517517,
0.06556082516908646,
0.10622534155845642,
0.35542699694633484,
0.1122550219297409,
-0.12416262179613113,
-0.3668973743915558,
-0.007818656042218208,
-0.003090009093284607,
-0.05193360149860382,
-0.280971884727478,
-0.03597598150372505,
-0.20211069285869598,
-0.1673552691936493,
-0.040417663753032684,
0.11890880018472672,
-0.04538482055068016,
-0.1994865983724594,
0.24157139658927917,
0.28511062264442444,
-0.27773410081863403,
0.1271892786026001,
0.1675783395767212,
0.34356561303138733,
-0.07041827589273453,
-0.051740385591983795,
-0.1093197613954544,
0.01562885195016861,
-0.33139702677726746,
0.19074749946594238,
0.27920621633529663,
0.08477757126092911,
0.1668626219034195,
0.035354167222976685,
0.0824093297123909,
-0.4212256968021393,
-0.19667860865592957,
0.24050788581371307,
-0.14672933518886566,
0.03966039419174194,
0.10825590044260025,
-0.09118139743804932,
-0.04782607778906822,
-0.3472120463848114,
0.05037528648972511,
-0.20661050081253052,
-0.20288434624671936,
-0.3251742124557495,
0.15945880115032196,
0.06294901669025421,
-0.4881840646266937,
-0.39876946806907654,
-0.2369149774312973,
-0.3800828754901886,
0.16773971915245056,
0.15980741381645203,
0.1823008805513382,
0.12465626746416092,
-0.054826151579618454,
0.18005599081516266,
0.2231401950120926,
-0.1606072336435318,
-0.14767210185527802,
0.27755019068717957,
0.4198617935180664,
-0.40959495306015015,
-0.31906455755233765,
0.043912071734666824,
-0.32320934534072876,
0.013384174555540085,
-0.2990265488624573,
-0.2501080632209778,
-0.43836191296577454,
0.15373185276985168,
-0.17779859900474548,
-0.08453404903411865,
-0.00267939455807209,
0.2986179292201996,
0.18735964596271515,
-0.2003101259469986,
0.02658909559249878,
-0.11106905341148376,
0.20705477893352509,
0.08829867839813232,
0.38477203249931335,
-0.1615372598171234,
0.40672239661216736,
0.11748594045639038,
0.25662803649902344,
-0.26918619871139526,
0.033536285161972046,
0.3619188964366913,
-0.05067267268896103,
0.17019321024417877,
0.15920305252075195,
-0.08635102957487106,
0.13635709881782532,
0.04094713181257248,
-0.09443465620279312,
0.533663272857666,
-0.08547107130289078,
-0.4864988625049591,
-0.18266691267490387,
0.05321752652525902,
-0.2736866772174835,
-0.26792198419570923,
-0.108955979347229,
0.2660413086414337,
-0.19568344950675964,
0.011589650064706802,
0.214954674243927,
0.005221826955676079,
-0.06083915755152702,
0.20591741800308228,
0.21969014406204224,
-0.07721642404794693,
-0.12061572074890137,
0.11858373880386353,
0.10426722466945648,
-0.3951476216316223,
0.11174830794334412,
0.10438243299722672,
-0.40412262082099915,
0.10744118690490723,
-0.22561267018318176,
0.20364171266555786,
-0.3195441961288452,
0.3587408661842346,
-0.12096109241247177,
0.266265869140625,
-0.014370137825608253,
0.2164382040500641,
0.10930105298757553,
-0.09933740645647049,
-0.29880574345588684,
-0.3211808502674103,
0.4507465064525604,
-0.04787550866603851,
-0.2656048536300659,
-0.14416390657424927,
0.33849188685417175,
-0.25894585251808167,
0.032386664301157,
-0.09629742056131363,
-0.01911427453160286,
-0.5297085642814636,
-0.5422533750534058,
0.07724013924598694,
0.12609326839447021,
0.09797511249780655,
-0.18700607120990753,
-0.16395658254623413,
0.27043673396110535,
-0.20997175574302673,
-0.11222775280475616,
0.059670474380254745,
0.18278825283050537,
0.14112664759159088,
-0.04690488055348396,
0.2014976590871811,
0.4859786331653595,
-0.08635231107473373,
0.05024302378296852,
0.08871345221996307,
0.13509750366210938,
0.35846009850502014,
-0.2915496826171875,
-0.012051939964294434,
0.4303935170173645,
0.04238221049308777,
-0.14499026536941528,
-0.33781036734580994,
0.13120010495185852,
-0.005020850338041782,
0.02620883285999298,
0.35233041644096375,
-0.00769684137776494,
0.3189746141433716,
-0.12856729328632355,
0.37181493639945984,
-0.1149386465549469,
-0.14957112073898315,
-0.11332337558269501,
0.1379418522119522,
-0.4891570806503296,
0.20236358046531677,
0.24947980046272278,
1.0095975399017334,
0.18289019167423248,
0.18415933847427368,
0.377017080783844,
-0.18287663161754608,
0.22442616522312164,
-0.20480522513389587,
0.24204520881175995,
-0.2759135365486145,
0.2594015300273895,
0.02705644629895687,
0.1235545426607132,
-0.2554798126220703,
0.28570958971977234,
-0.34852129220962524,
0.2226647436618805,
0.19183321297168732,
-0.05509250983595848,
0.039740607142448425,
0.5254424810409546,
-0.41476455330848694,
-0.3550732135772705,
-0.08400782942771912,
0.2253386676311493,
0.2074785977602005,
0.33369210362434387,
-0.02240615338087082,
-0.32625043392181396,
0.023025687783956528,
-0.368998646736145,
-0.12004073709249496,
0.2228105068206787,
-0.6562039256095886,
0.08114132285118103,
-0.4205811023712158,
-0.20546531677246094,
0.07149939239025116,
0.12164147198200226,
0.1825941503047943,
0.10026179254055023,
-0.06405790150165558,
0.28069841861724854,
0.045133307576179504,
-0.04643801972270012,
-0.00504593551158905,
-0.11703609675168991,
0.2287953794002533,
-0.2543821632862091,
-0.20081639289855957,
-0.052955858409404755,
0.15077903866767883,
-0.2844569981098175,
0.049414485692977905,
-0.025314219295978546,
-0.2893364429473877,
0.16326548159122467,
0.0008371821604669094,
0.08880209177732468,
-0.40704017877578735,
-0.17011843621730804,
0.21576590836048126,
-0.2228652983903885,
-0.006303741596639156,
-0.04202384501695633,
0.07535643130540848,
-0.16575774550437927,
-0.1717538684606552,
0.41143128275871277,
-0.19205242395401,
-0.32575148344039917,
0.5842949151992798,
0.06437237560749054,
-0.15042629837989807,
-0.3654358386993408,
-0.21400508284568787,
0.015011637471616268,
-0.1508515179157257,
0.11020101606845856,
-0.11286555230617523,
-0.25621455907821655,
-0.014630992896854877,
0.5000477433204651,
-0.001231260597705841,
0.2679029703140259,
0.0265195332467556,
-0.08714170753955841,
-0.09918199479579926,
0.2623229920864105,
-0.13460443913936615,
0.29852357506752014,
-0.0751180425286293,
0.08205521106719971,
0.18698710203170776,
-0.14571385085582733,
-0.4634035527706146,
0.07907668501138687,
-0.17125451564788818,
-0.14057056605815887,
0.12507417798042297,
-0.29873257875442505,
0.3095196485519409,
0.17042528092861176,
0.27336668968200684,
0.2205563485622406,
-0.07725659757852554,
-0.2663617432117462,
-0.03043382614850998,
0.0700642392039299,
0.04730109125375748,
-0.10063305497169495,
0.012366496957838535,
-0.11151058226823807,
-0.21850955486297607,
0.12631738185882568,
0.2010798156261444,
-0.1831623613834381,
0.08333814889192581,
-0.10322145372629166,
-0.2481861263513565,
0.09767031669616699,
0.2554205060005188,
-0.18508380651474,
-0.09760180115699768,
0.42070841789245605,
0.016686299815773964,
0.10759513080120087,
0.007806090638041496,
0.0033923760056495667,
0.043122489005327225,
0.1411648839712143,
0.05645119771361351,
0.33877187967300415,
0.2962441146373749,
0.06722404062747955,
-0.5515546798706055,
0.06194405257701874,
0.26379504799842834,
0.07853817194700241,
-0.2515679895877838,
-0.11560896784067154,
0.22283121943473816,
0.355610191822052,
-0.25941821932792664,
0.17321833968162537,
-0.16230908036231995,
-0.4482314884662628,
0.3617488443851471,
0.2996291220188141,
0.19873112440109253,
0.06725230813026428,
0.04757670685648918,
0.1538337767124176,
0.4046257436275482,
-0.07478774338960648,
-0.09284013509750366,
-0.052526962012052536,
-0.12249305844306946,
0.13392819464206696,
0.18508277833461761,
0.06740503758192062,
0.32578152418136597,
-0.16162940859794617,
-0.18715062737464905,
0.008799659088253975,
0.023578494787216187,
0.2640458047389984,
0.21662664413452148,
0.05193605646491051,
0.03836758807301521,
0.08146428316831589,
-0.2451705038547516,
0.09618569910526276,
-0.06733746826648712,
0.22006741166114807,
-0.3234986960887909,
0.02401687391102314,
-0.340977281332016,
0.41611379384994507,
-0.06181039661169052,
-0.008547835052013397,
-0.25166815519332886,
-0.32604557275772095,
-0.6693028211593628,
0.19294165074825287,
0.04504752531647682,
-0.1420234888792038,
-0.40671631693840027,
0.10912196338176727,
-0.04366007447242737,
0.048874713480472565,
-0.23544323444366455,
-0.09591139107942581,
0.33246394991874695,
-0.4127461016178131,
0.14867213368415833,
0.014996141195297241,
0.12239773571491241,
-0.19830584526062012,
0.3227459192276001,
0.2554565668106079,
0.21595922112464905,
-0.3102444112300873,
-0.20354774594306946,
-0.07942427694797516,
-0.0601549968123436,
-0.14421716332435608,
0.037107888609170914,
0.3265763223171234,
-0.16945824027061462,
0.15005375444889069,
0.2160777598619461,
-0.38535255193710327,
-0.05778810754418373,
0.28349950909614563,
-0.22256611287593842,
0.252681165933609,
0.16240131855010986,
0.271872878074646,
0.013558447360992432,
-0.38721367716789246,
-0.30668339133262634,
-0.5732120275497437,
-0.1348937302827835,
-0.25072774291038513,
-0.10088913142681122,
0.24073612689971924,
-0.31012243032455444,
0.1533886194229126,
0.11740601062774658,
0.18029120564460754,
0.30675652623176575,
-0.0013963393867015839,
-0.11004633456468582,
-0.2357509434223175,
-0.4394382834434509,
0.055381763726472855,
0.2680013179779053,
-0.1324968934059143,
-0.21931368112564087,
0.404655784368515,
-0.011978544294834137,
-0.02101859822869301,
0.009386815130710602,
0.5449472665786743,
0.2535094916820526,
0.07107818126678467,
-0.1868598610162735,
0.17593972384929657,
0.1250477433204651,
0.11453048139810562,
0.08189013600349426,
-0.1827901005744934,
-0.11597108840942383,
-0.2869526445865631,
0.21485930681228638,
-0.13423991203308105,
0.16132809221744537,
-0.31329742074012756,
0.003748912364244461,
0.41268599033355713,
-0.24596428871154785,
0.2662286162376404,
-0.28622135519981384,
-0.15344685316085815,
-0.1860751062631607,
0.2085225135087967,
-0.295243501663208,
-0.3550873398780823,
0.24073362350463867,
0.19496595859527588,
0.07007922977209091,
0.06696721911430359,
-0.26918625831604004,
0.2615850567817688,
0.0445123016834259,
0.0049213869497179985,
-0.19112451374530792,
0.1149073913693428,
-0.062337975949048996,
0.09782028943300247,
0.03151863440871239,
0.20531809329986572,
-0.12497358024120331,
0.048288315534591675,
-0.4952872395515442,
-0.5152060389518738,
0.16102175414562225,
-0.05245313048362732,
-0.08688312768936157,
-0.067609503865242,
0.39681801199913025,
0.2529710829257965,
0.15932078659534454,
-0.2931995391845703,
0.12561017274856567,
-0.008349481038749218,
0.18230006098747253,
-0.17034880816936493,
0.13732758164405823,
0.13820475339889526,
-0.13519108295440674,
-0.07159489393234253,
-0.20120173692703247,
0.31383201479911804,
0.008085595443844795,
-0.2065834403038025,
-0.34806185960769653
] |
https://github.com/huggingface/datasets/issues/418 | Addition of google drive links to dl_manager | Oh sorry, I think `_get_drive_url` is doing that.
Have you tried to use `dl_manager.download_and_extract(_get_drive_url(_TRAIN_URL)`? it should work with google drive links.
| Hello there, I followed the template to create a download script of my own, which works fine for me, although I had to shun the dl_manager because it was downloading nothing from the drive links and instead use gdown.
This is the script for me:
```python
class EmoConfig(nlp.BuilderConfig):
"""BuilderConfig for SQUAD."""
def __init__(self, **kwargs):
"""BuilderConfig for EmoContext.
Args:
**kwargs: keyword arguments forwarded to super.
"""
super(EmoConfig, self).__init__(**kwargs)
_TEST_URL = "https://drive.google.com/file/d/1Hn5ytHSSoGOC4sjm3wYy0Dh0oY_oXBbb/view?usp=sharing"
_TRAIN_URL = "https://drive.google.com/file/d/12Uz59TYg_NtxOy7SXraYeXPMRT7oaO7X/view?usp=sharing"
class EmoDataset(nlp.GeneratorBasedBuilder):
""" SemEval-2019 Task 3: EmoContext Contextual Emotion Detection in Text. Version 1.0.0 """
VERSION = nlp.Version("1.0.0")
force = False
def _info(self):
return nlp.DatasetInfo(
description=_DESCRIPTION,
features=nlp.Features(
{
"text": nlp.Value("string"),
"label": nlp.features.ClassLabel(names=["others", "happy", "sad", "angry"]),
}
),
supervised_keys=None,
homepage="https://www.aclweb.org/anthology/S19-2005/",
citation=_CITATION,
)
def _get_drive_url(self, url):
base_url = 'https://drive.google.com/uc?id='
split_url = url.split('/')
return base_url + split_url[5]
def _split_generators(self, dl_manager):
"""Returns SplitGenerators."""
if(not os.path.exists("emo-train.json") or self.force):
gdown.download(self._get_drive_url(_TRAIN_URL), "emo-train.json", quiet = True)
if(not os.path.exists("emo-test.json") or self.force):
gdown.download(self._get_drive_url(_TEST_URL), "emo-test.json", quiet = True)
return [
nlp.SplitGenerator(
name=nlp.Split.TRAIN,
gen_kwargs={
"filepath": "emo-train.json",
"split": "train",
},
),
nlp.SplitGenerator(
name=nlp.Split.TEST,
gen_kwargs={"filepath": "emo-test.json", "split": "test"},
),
]
def _generate_examples(self, filepath, split):
""" Yields examples. """
with open(filepath, 'rb') as f:
data = json.load(f)
for id_, text, label in zip(data["text"].keys(), data["text"].values(), data["Label"].values()):
yield id_, {
"text": text,
"label": label,
}
```
Can someone help me in adding gdrive links to be used with default dl_manager or adding gdown as another dl_manager, because I'd like to add this dataset to nlp's official database. | 21 | Addition of google drive links to dl_manager
Hello there, I followed the template to create a download script of my own, which works fine for me, although I had to shun the dl_manager because it was downloading nothing from the drive links and instead use gdown.
This is the script for me:
```python
class EmoConfig(nlp.BuilderConfig):
"""BuilderConfig for SQUAD."""
def __init__(self, **kwargs):
"""BuilderConfig for EmoContext.
Args:
**kwargs: keyword arguments forwarded to super.
"""
super(EmoConfig, self).__init__(**kwargs)
_TEST_URL = "https://drive.google.com/file/d/1Hn5ytHSSoGOC4sjm3wYy0Dh0oY_oXBbb/view?usp=sharing"
_TRAIN_URL = "https://drive.google.com/file/d/12Uz59TYg_NtxOy7SXraYeXPMRT7oaO7X/view?usp=sharing"
class EmoDataset(nlp.GeneratorBasedBuilder):
""" SemEval-2019 Task 3: EmoContext Contextual Emotion Detection in Text. Version 1.0.0 """
VERSION = nlp.Version("1.0.0")
force = False
def _info(self):
return nlp.DatasetInfo(
description=_DESCRIPTION,
features=nlp.Features(
{
"text": nlp.Value("string"),
"label": nlp.features.ClassLabel(names=["others", "happy", "sad", "angry"]),
}
),
supervised_keys=None,
homepage="https://www.aclweb.org/anthology/S19-2005/",
citation=_CITATION,
)
def _get_drive_url(self, url):
base_url = 'https://drive.google.com/uc?id='
split_url = url.split('/')
return base_url + split_url[5]
def _split_generators(self, dl_manager):
"""Returns SplitGenerators."""
if(not os.path.exists("emo-train.json") or self.force):
gdown.download(self._get_drive_url(_TRAIN_URL), "emo-train.json", quiet = True)
if(not os.path.exists("emo-test.json") or self.force):
gdown.download(self._get_drive_url(_TEST_URL), "emo-test.json", quiet = True)
return [
nlp.SplitGenerator(
name=nlp.Split.TRAIN,
gen_kwargs={
"filepath": "emo-train.json",
"split": "train",
},
),
nlp.SplitGenerator(
name=nlp.Split.TEST,
gen_kwargs={"filepath": "emo-test.json", "split": "test"},
),
]
def _generate_examples(self, filepath, split):
""" Yields examples. """
with open(filepath, 'rb') as f:
data = json.load(f)
for id_, text, label in zip(data["text"].keys(), data["text"].values(), data["Label"].values()):
yield id_, {
"text": text,
"label": label,
}
```
Can someone help me in adding gdrive links to be used with default dl_manager or adding gdown as another dl_manager, because I'd like to add this dataset to nlp's official database.
Oh sorry, I think `_get_drive_url` is doing that.
Have you tried to use `dl_manager.download_and_extract(_get_drive_url(_TRAIN_URL)`? it should work with google drive links.
| [
-0.0986938327550888,
0.05165711045265198,
-0.13091997802257538,
-0.05589684844017029,
0.06394003331661224,
-0.0953548327088356,
0.3679337799549103,
0.22080984711647034,
0.20629148185253143,
0.22497829794883728,
-0.07506585866212845,
0.3655777871608734,
-0.2819617986679077,
0.14167752861976624,
0.14772482216358185,
0.11733189970254898,
-0.22435078024864197,
0.20253285765647888,
0.27563416957855225,
-0.16394372284412384,
-0.27513349056243896,
0.32780691981315613,
-0.03187933936715126,
-0.008126616477966309,
0.05023100599646568,
0.050559431314468384,
-0.13912220299243927,
0.19806811213493347,
-0.11889583617448807,
-0.29995420575141907,
-0.41973817348480225,
0.16710452735424042,
0.16023993492126465,
-0.09745674580335617,
-0.00010426565131638199,
-0.14807745814323425,
0.22256802022457123,
-0.20845332741737366,
-0.40872254967689514,
-0.293667197227478,
0.2981954514980316,
-0.1724264919757843,
0.10730814188718796,
-0.26513993740081787,
-0.004575641825795174,
-0.09832483530044556,
0.204119011759758,
0.13540443778038025,
0.2655153274536133,
0.30323436856269836,
0.27170053124427795,
0.07904976606369019,
0.11347104609012604,
0.029893016442656517,
0.3312549293041229,
-0.03548905998468399,
-0.06828062236309052,
0.3527141511440277,
0.33446645736694336,
-0.3054531216621399,
-0.16186749935150146,
0.28838682174682617,
-0.005472190678119659,
-0.010992273688316345,
0.21951305866241455,
0.1113421842455864,
0.5780618190765381,
-0.3311687409877777,
0.10661400109529495,
0.03274913877248764,
0.023619525134563446,
-0.04132380336523056,
-0.08505141735076904,
-0.28421351313591003,
0.08381404727697372,
-0.28745731711387634,
0.27665257453918457,
0.14956596493721008,
-0.23348383605480194,
-0.054356563836336136,
-0.12947843968868256,
-0.025504233315587044,
-0.015470035374164581,
0.054059386253356934,
-0.08892625570297241,
0.41385459899902344,
-0.03893894702196121,
-0.2830839455127716,
0.38612493872642517,
-0.038152970373630524,
-0.09715704619884491,
-0.15326273441314697,
-0.03946896269917488,
0.0766022726893425,
-0.03747742995619774,
-0.2887786626815796,
0.15674787759780884,
0.046640925109386444,
0.09379839152097702,
0.24899189174175262,
0.046064648777246475,
0.03289207071065903,
0.23562416434288025,
0.07529329508543015,
0.16302724182605743,
0.44595909118652344,
-0.00031391531229019165,
0.04006621986627579,
0.3538972735404968,
0.41765153408050537,
0.16089779138565063,
0.15011730790138245,
-0.12023317068815231,
-0.1861618310213089,
-0.14165082573890686,
0.14086097478866577,
-0.15757808089256287,
0.0906018316745758,
-0.4310431480407715,
-0.1330982893705368,
-0.37323322892189026,
0.007338605355471373,
-0.03436215594410896,
0.4378289580345154,
-0.04874889925122261,
-0.13966289162635803,
0.24411390721797943,
0.2374010980129242,
-0.042372748255729675,
0.09001713246107101,
-0.12547846138477325,
0.2556152939796448,
-0.21680907905101776,
-0.052022673189640045,
0.3310381770133972,
0.07708092033863068,
0.42122384905815125,
-0.2571604549884796,
-0.12134027481079102,
-0.22413302958011627,
0.13889428973197937,
0.08599615097045898,
-0.013925306499004364,
-0.06411254405975342,
0.4167032241821289,
0.01552211306989193,
-0.15332551300525665,
-0.41582202911376953,
-0.07122496515512466,
0.03881145268678665,
0.03470766544342041,
-0.03710688650608063,
-0.17407624423503876,
0.3355267643928528,
-0.08622898906469345,
-0.09424616396427155,
-0.0037769079208374023,
0.22714771330356598,
-0.15021571516990662,
0.04360168054699898,
0.08587618172168732,
0.3182874321937561,
-0.08277752995491028,
-0.0009884893661364913,
0.1685219705104828,
0.2986227869987488,
-0.09494412690401077,
-0.2877132296562195,
-0.18399229645729065,
0.16736768186092377,
-0.11325449496507645,
-0.06327109038829803,
-0.04493097588419914,
0.24556872248649597,
-0.3793998658657074,
0.24192102253437042,
0.3043498992919922,
-0.28963813185691833,
-0.20502831041812897,
0.21484529972076416,
-0.3752196431159973,
-0.17490410804748535,
0.0302705317735672,
0.014300535432994366,
0.41080421209335327,
-0.004255393985658884,
-0.14323003590106964,
0.48279130458831787,
0.07717099785804749,
0.24286621809005737,
-0.3040136396884918,
-0.4660179018974304,
-0.18291281163692474,
0.20750278234481812,
0.15166428685188293,
-0.11844619363546371,
0.10884067416191101,
-0.08774416148662567,
0.3002724051475525,
-0.15627485513687134,
0.18655988574028015,
0.10289213061332703,
0.0824301689863205,
0.09620232880115509,
0.09026598930358887,
0.12775585055351257,
-0.45530611276626587,
-0.024584153667092323,
-0.1491122543811798,
0.24003949761390686,
-0.3181629180908203,
-0.16543620824813843,
-0.22851255536079407,
-0.18236085772514343,
-0.20870424807071686,
-0.3032345473766327,
0.2976224422454834,
0.21817713975906372,
0.05891552194952965,
0.2489137500524521,
0.07916732132434845,
-0.07833805680274963,
0.16629116237163544,
0.13523641228675842,
0.048304490745067596,
0.33084219694137573,
-0.3822072446346283,
-0.11544492840766907,
0.1777772605419159,
0.05338411033153534,
0.16276946663856506,
-0.009796175174415112,
0.017779339104890823,
0.20222994685173035,
-0.23383505642414093,
0.45602530241012573,
0.034299951046705246,
-0.01848846673965454,
0.26438108086586,
-0.001895613968372345,
0.3286043405532837,
0.3785984516143799,
0.12536939978599548,
-0.042321257293224335,
-0.1335398256778717,
0.3993210792541504,
0.2978723645210266,
0.1315344274044037,
0.19843973219394684,
0.1492624282836914,
-0.03458129242062569,
-0.30922213196754456,
-0.036615192890167236,
-0.17500394582748413,
0.10603088140487671,
0.4917028546333313,
0.38121533393859863,
-0.11718910932540894,
-0.17985595762729645,
0.22685974836349487,
0.3522850573062897,
-0.04310353845357895,
0.2884168326854706,
0.07977916300296783,
-0.3493874669075012,
-0.15528815984725952,
-0.11724914610385895,
0.3525716960430145,
0.16296450793743134,
0.2543208599090576,
0.17127279937267303,
0.04933606833219528,
-0.00800891499966383,
-0.30644747614860535,
0.3992132544517517,
0.06556082516908646,
0.10622534155845642,
0.35542699694633484,
0.1122550219297409,
-0.12416262179613113,
-0.3668973743915558,
-0.007818656042218208,
-0.003090009093284607,
-0.05193360149860382,
-0.280971884727478,
-0.03597598150372505,
-0.20211069285869598,
-0.1673552691936493,
-0.040417663753032684,
0.11890880018472672,
-0.04538482055068016,
-0.1994865983724594,
0.24157139658927917,
0.28511062264442444,
-0.27773410081863403,
0.1271892786026001,
0.1675783395767212,
0.34356561303138733,
-0.07041827589273453,
-0.051740385591983795,
-0.1093197613954544,
0.01562885195016861,
-0.33139702677726746,
0.19074749946594238,
0.27920621633529663,
0.08477757126092911,
0.1668626219034195,
0.035354167222976685,
0.0824093297123909,
-0.4212256968021393,
-0.19667860865592957,
0.24050788581371307,
-0.14672933518886566,
0.03966039419174194,
0.10825590044260025,
-0.09118139743804932,
-0.04782607778906822,
-0.3472120463848114,
0.05037528648972511,
-0.20661050081253052,
-0.20288434624671936,
-0.3251742124557495,
0.15945880115032196,
0.06294901669025421,
-0.4881840646266937,
-0.39876946806907654,
-0.2369149774312973,
-0.3800828754901886,
0.16773971915245056,
0.15980741381645203,
0.1823008805513382,
0.12465626746416092,
-0.054826151579618454,
0.18005599081516266,
0.2231401950120926,
-0.1606072336435318,
-0.14767210185527802,
0.27755019068717957,
0.4198617935180664,
-0.40959495306015015,
-0.31906455755233765,
0.043912071734666824,
-0.32320934534072876,
0.013384174555540085,
-0.2990265488624573,
-0.2501080632209778,
-0.43836191296577454,
0.15373185276985168,
-0.17779859900474548,
-0.08453404903411865,
-0.00267939455807209,
0.2986179292201996,
0.18735964596271515,
-0.2003101259469986,
0.02658909559249878,
-0.11106905341148376,
0.20705477893352509,
0.08829867839813232,
0.38477203249931335,
-0.1615372598171234,
0.40672239661216736,
0.11748594045639038,
0.25662803649902344,
-0.26918619871139526,
0.033536285161972046,
0.3619188964366913,
-0.05067267268896103,
0.17019321024417877,
0.15920305252075195,
-0.08635102957487106,
0.13635709881782532,
0.04094713181257248,
-0.09443465620279312,
0.533663272857666,
-0.08547107130289078,
-0.4864988625049591,
-0.18266691267490387,
0.05321752652525902,
-0.2736866772174835,
-0.26792198419570923,
-0.108955979347229,
0.2660413086414337,
-0.19568344950675964,
0.011589650064706802,
0.214954674243927,
0.005221826955676079,
-0.06083915755152702,
0.20591741800308228,
0.21969014406204224,
-0.07721642404794693,
-0.12061572074890137,
0.11858373880386353,
0.10426722466945648,
-0.3951476216316223,
0.11174830794334412,
0.10438243299722672,
-0.40412262082099915,
0.10744118690490723,
-0.22561267018318176,
0.20364171266555786,
-0.3195441961288452,
0.3587408661842346,
-0.12096109241247177,
0.266265869140625,
-0.014370137825608253,
0.2164382040500641,
0.10930105298757553,
-0.09933740645647049,
-0.29880574345588684,
-0.3211808502674103,
0.4507465064525604,
-0.04787550866603851,
-0.2656048536300659,
-0.14416390657424927,
0.33849188685417175,
-0.25894585251808167,
0.032386664301157,
-0.09629742056131363,
-0.01911427453160286,
-0.5297085642814636,
-0.5422533750534058,
0.07724013924598694,
0.12609326839447021,
0.09797511249780655,
-0.18700607120990753,
-0.16395658254623413,
0.27043673396110535,
-0.20997175574302673,
-0.11222775280475616,
0.059670474380254745,
0.18278825283050537,
0.14112664759159088,
-0.04690488055348396,
0.2014976590871811,
0.4859786331653595,
-0.08635231107473373,
0.05024302378296852,
0.08871345221996307,
0.13509750366210938,
0.35846009850502014,
-0.2915496826171875,
-0.012051939964294434,
0.4303935170173645,
0.04238221049308777,
-0.14499026536941528,
-0.33781036734580994,
0.13120010495185852,
-0.005020850338041782,
0.02620883285999298,
0.35233041644096375,
-0.00769684137776494,
0.3189746141433716,
-0.12856729328632355,
0.37181493639945984,
-0.1149386465549469,
-0.14957112073898315,
-0.11332337558269501,
0.1379418522119522,
-0.4891570806503296,
0.20236358046531677,
0.24947980046272278,
1.0095975399017334,
0.18289019167423248,
0.18415933847427368,
0.377017080783844,
-0.18287663161754608,
0.22442616522312164,
-0.20480522513389587,
0.24204520881175995,
-0.2759135365486145,
0.2594015300273895,
0.02705644629895687,
0.1235545426607132,
-0.2554798126220703,
0.28570958971977234,
-0.34852129220962524,
0.2226647436618805,
0.19183321297168732,
-0.05509250983595848,
0.039740607142448425,
0.5254424810409546,
-0.41476455330848694,
-0.3550732135772705,
-0.08400782942771912,
0.2253386676311493,
0.2074785977602005,
0.33369210362434387,
-0.02240615338087082,
-0.32625043392181396,
0.023025687783956528,
-0.368998646736145,
-0.12004073709249496,
0.2228105068206787,
-0.6562039256095886,
0.08114132285118103,
-0.4205811023712158,
-0.20546531677246094,
0.07149939239025116,
0.12164147198200226,
0.1825941503047943,
0.10026179254055023,
-0.06405790150165558,
0.28069841861724854,
0.045133307576179504,
-0.04643801972270012,
-0.00504593551158905,
-0.11703609675168991,
0.2287953794002533,
-0.2543821632862091,
-0.20081639289855957,
-0.052955858409404755,
0.15077903866767883,
-0.2844569981098175,
0.049414485692977905,
-0.025314219295978546,
-0.2893364429473877,
0.16326548159122467,
0.0008371821604669094,
0.08880209177732468,
-0.40704017877578735,
-0.17011843621730804,
0.21576590836048126,
-0.2228652983903885,
-0.006303741596639156,
-0.04202384501695633,
0.07535643130540848,
-0.16575774550437927,
-0.1717538684606552,
0.41143128275871277,
-0.19205242395401,
-0.32575148344039917,
0.5842949151992798,
0.06437237560749054,
-0.15042629837989807,
-0.3654358386993408,
-0.21400508284568787,
0.015011637471616268,
-0.1508515179157257,
0.11020101606845856,
-0.11286555230617523,
-0.25621455907821655,
-0.014630992896854877,
0.5000477433204651,
-0.001231260597705841,
0.2679029703140259,
0.0265195332467556,
-0.08714170753955841,
-0.09918199479579926,
0.2623229920864105,
-0.13460443913936615,
0.29852357506752014,
-0.0751180425286293,
0.08205521106719971,
0.18698710203170776,
-0.14571385085582733,
-0.4634035527706146,
0.07907668501138687,
-0.17125451564788818,
-0.14057056605815887,
0.12507417798042297,
-0.29873257875442505,
0.3095196485519409,
0.17042528092861176,
0.27336668968200684,
0.2205563485622406,
-0.07725659757852554,
-0.2663617432117462,
-0.03043382614850998,
0.0700642392039299,
0.04730109125375748,
-0.10063305497169495,
0.012366496957838535,
-0.11151058226823807,
-0.21850955486297607,
0.12631738185882568,
0.2010798156261444,
-0.1831623613834381,
0.08333814889192581,
-0.10322145372629166,
-0.2481861263513565,
0.09767031669616699,
0.2554205060005188,
-0.18508380651474,
-0.09760180115699768,
0.42070841789245605,
0.016686299815773964,
0.10759513080120087,
0.007806090638041496,
0.0033923760056495667,
0.043122489005327225,
0.1411648839712143,
0.05645119771361351,
0.33877187967300415,
0.2962441146373749,
0.06722404062747955,
-0.5515546798706055,
0.06194405257701874,
0.26379504799842834,
0.07853817194700241,
-0.2515679895877838,
-0.11560896784067154,
0.22283121943473816,
0.355610191822052,
-0.25941821932792664,
0.17321833968162537,
-0.16230908036231995,
-0.4482314884662628,
0.3617488443851471,
0.2996291220188141,
0.19873112440109253,
0.06725230813026428,
0.04757670685648918,
0.1538337767124176,
0.4046257436275482,
-0.07478774338960648,
-0.09284013509750366,
-0.052526962012052536,
-0.12249305844306946,
0.13392819464206696,
0.18508277833461761,
0.06740503758192062,
0.32578152418136597,
-0.16162940859794617,
-0.18715062737464905,
0.008799659088253975,
0.023578494787216187,
0.2640458047389984,
0.21662664413452148,
0.05193605646491051,
0.03836758807301521,
0.08146428316831589,
-0.2451705038547516,
0.09618569910526276,
-0.06733746826648712,
0.22006741166114807,
-0.3234986960887909,
0.02401687391102314,
-0.340977281332016,
0.41611379384994507,
-0.06181039661169052,
-0.008547835052013397,
-0.25166815519332886,
-0.32604557275772095,
-0.6693028211593628,
0.19294165074825287,
0.04504752531647682,
-0.1420234888792038,
-0.40671631693840027,
0.10912196338176727,
-0.04366007447242737,
0.048874713480472565,
-0.23544323444366455,
-0.09591139107942581,
0.33246394991874695,
-0.4127461016178131,
0.14867213368415833,
0.014996141195297241,
0.12239773571491241,
-0.19830584526062012,
0.3227459192276001,
0.2554565668106079,
0.21595922112464905,
-0.3102444112300873,
-0.20354774594306946,
-0.07942427694797516,
-0.0601549968123436,
-0.14421716332435608,
0.037107888609170914,
0.3265763223171234,
-0.16945824027061462,
0.15005375444889069,
0.2160777598619461,
-0.38535255193710327,
-0.05778810754418373,
0.28349950909614563,
-0.22256611287593842,
0.252681165933609,
0.16240131855010986,
0.271872878074646,
0.013558447360992432,
-0.38721367716789246,
-0.30668339133262634,
-0.5732120275497437,
-0.1348937302827835,
-0.25072774291038513,
-0.10088913142681122,
0.24073612689971924,
-0.31012243032455444,
0.1533886194229126,
0.11740601062774658,
0.18029120564460754,
0.30675652623176575,
-0.0013963393867015839,
-0.11004633456468582,
-0.2357509434223175,
-0.4394382834434509,
0.055381763726472855,
0.2680013179779053,
-0.1324968934059143,
-0.21931368112564087,
0.404655784368515,
-0.011978544294834137,
-0.02101859822869301,
0.009386815130710602,
0.5449472665786743,
0.2535094916820526,
0.07107818126678467,
-0.1868598610162735,
0.17593972384929657,
0.1250477433204651,
0.11453048139810562,
0.08189013600349426,
-0.1827901005744934,
-0.11597108840942383,
-0.2869526445865631,
0.21485930681228638,
-0.13423991203308105,
0.16132809221744537,
-0.31329742074012756,
0.003748912364244461,
0.41268599033355713,
-0.24596428871154785,
0.2662286162376404,
-0.28622135519981384,
-0.15344685316085815,
-0.1860751062631607,
0.2085225135087967,
-0.295243501663208,
-0.3550873398780823,
0.24073362350463867,
0.19496595859527588,
0.07007922977209091,
0.06696721911430359,
-0.26918625831604004,
0.2615850567817688,
0.0445123016834259,
0.0049213869497179985,
-0.19112451374530792,
0.1149073913693428,
-0.062337975949048996,
0.09782028943300247,
0.03151863440871239,
0.20531809329986572,
-0.12497358024120331,
0.048288315534591675,
-0.4952872395515442,
-0.5152060389518738,
0.16102175414562225,
-0.05245313048362732,
-0.08688312768936157,
-0.067609503865242,
0.39681801199913025,
0.2529710829257965,
0.15932078659534454,
-0.2931995391845703,
0.12561017274856567,
-0.008349481038749218,
0.18230006098747253,
-0.17034880816936493,
0.13732758164405823,
0.13820475339889526,
-0.13519108295440674,
-0.07159489393234253,
-0.20120173692703247,
0.31383201479911804,
0.008085595443844795,
-0.2065834403038025,
-0.34806185960769653
] |
https://github.com/huggingface/datasets/issues/414 | from_dict delete? | `from_dict` was added in #350 that was unfortunately not included in the 0.3.0 release. It's going to be included in the next release that will be out pretty soon though.
Right now if you want to use `from_dict` you have to install the package from the master branch
```
pip install git+https://github.com/huggingface/nlp.git
``` | AttributeError: type object 'Dataset' has no attribute 'from_dict' | 53 | from_dict delete?
AttributeError: type object 'Dataset' has no attribute 'from_dict'
`from_dict` was added in #350 that was unfortunately not included in the 0.3.0 release. It's going to be included in the next release that will be out pretty soon though.
Right now if you want to use `from_dict` you have to install the package from the master branch
```
pip install git+https://github.com/huggingface/nlp.git
``` | [
-0.11688946187496185,
-0.2096911072731018,
-0.11670272052288055,
0.04655667394399643,
0.16202789545059204,
-0.18883568048477173,
0.09435684978961945,
0.3141222298145294,
0.03775680065155029,
0.14038190245628357,
0.053977176547050476,
0.5944420695304871,
-0.10694286227226257,
0.29201844334602356,
-0.042658619582653046,
-0.16497835516929626,
-0.06884395331144333,
0.320003867149353,
-0.31284430623054504,
-0.04618757218122482,
0.011078625917434692,
0.37319546937942505,
-0.1320791393518448,
0.25494176149368286,
0.12055854499340057,
-0.1711762547492981,
0.03036496229469776,
0.14309526979923248,
-0.14184869825839996,
-0.331137478351593,
0.2542821168899536,
0.04547624662518501,
-0.13636763393878937,
0.15779456496238708,
-0.00009920298907672986,
-0.04312683641910553,
0.3241799473762512,
-0.07088824361562729,
-0.26613667607307434,
-0.3808971047401428,
-0.12924730777740479,
-0.17845436930656433,
0.3302333354949951,
-0.10571551322937012,
-0.2622193992137909,
0.14830096065998077,
0.028604047372937202,
-0.008377611637115479,
0.3838486671447754,
0.38842442631721497,
0.368519127368927,
0.15779320895671844,
0.16767430305480957,
-0.12563350796699524,
0.18619278073310852,
0.18692973256111145,
-0.06607112288475037,
-0.09688477218151093,
0.05391602963209152,
-0.1805325299501419,
0.3063403367996216,
0.2829715311527252,
-0.16446569561958313,
-0.09611767530441284,
0.1874169111251831,
-0.024360839277505875,
0.02423182502388954,
-0.14169253408908844,
0.03001045435667038,
0.1506766676902771,
0.2641408443450928,
-0.38069427013397217,
-0.1140289157629013,
-0.301545113325119,
-0.024286381900310516,
-0.38301101326942444,
0.02370711788535118,
-0.05317210406064987,
-0.15756873786449432,
0.13010524213314056,
-0.05276133492588997,
-0.4518624544143677,
-0.18533653020858765,
0.3525788187980652,
0.19323015213012695,
0.06897304207086563,
-0.11270592361688614,
0.06550975143909454,
0.2613551616668701,
-0.054037705063819885,
-0.37679895758628845,
0.2988932430744171,
-0.19513502717018127,
0.14166101813316345,
-0.02804262563586235,
-0.20183759927749634,
0.3356457054615021,
-0.052485592663288116,
-0.0726940780878067,
0.1180981695652008,
-0.012950330041348934,
-0.018890101462602615,
-0.009921539574861526,
0.27463221549987793,
0.4173324406147003,
0.19299748539924622,
0.37509095668792725,
0.22584015130996704,
0.19765962660312653,
0.000520318397320807,
-0.06706562638282776,
-0.07054710388183594,
0.10846799612045288,
0.007958930917084217,
-0.15428419411182404,
-0.08378522843122482,
0.2740112543106079,
-0.10183572769165039,
-0.28014352917671204,
-0.2536675035953522,
0.15472090244293213,
0.1114790141582489,
0.04962221533060074,
0.31618732213974,
0.028512276709079742,
0.20455363392829895,
0.023410245776176453,
0.16259224712848663,
-0.35594117641448975,
-0.03187190741300583,
-0.24426475167274475,
0.32730528712272644,
-0.13987508416175842,
-0.4790828227996826,
0.06624697148799896,
0.17371608316898346,
0.3600257933139801,
-0.11257660388946533,
0.03981196507811546,
0.260919451713562,
0.009047864004969597,
0.03656022623181343,
0.07564607262611389,
0.2162601500749588,
-0.09764602780342102,
-0.15824484825134277,
0.21988172829151154,
-0.5354817509651184,
-0.27403920888900757,
0.1050388365983963,
-0.22550073266029358,
-0.28521543741226196,
-0.4506238102912903,
0.3046717047691345,
0.08042516559362411,
-0.29316362738609314,
-0.3293569087982178,
0.18428538739681244,
0.13598261773586273,
-0.2164468765258789,
-0.10593067854642868,
-0.1513110250234604,
-0.019224904477596283,
-0.16116665303707123,
-0.007445460185408592,
0.1157199889421463,
-0.23537200689315796,
-0.209139883518219,
-0.2025366872549057,
-0.30655404925346375,
0.2619757354259491,
0.31395453214645386,
-0.24468351900577545,
0.2455075979232788,
-0.12268859148025513,
0.10579204559326172,
0.5160623788833618,
-0.572424054145813,
-0.23124563694000244,
0.20544125139713287,
-0.049039725214242935,
-0.1142270639538765,
-0.16840243339538574,
-0.017951734364032745,
0.18190541863441467,
-0.08908956497907639,
-0.009935326874256134,
0.3474218249320984,
0.18607260286808014,
0.14318887889385223,
-0.1495320051908493,
-0.12220757454633713,
-0.028366513550281525,
-0.0966637134552002,
-0.07592815160751343,
0.0703812688589096,
0.168497234582901,
0.1468963474035263,
0.20254036784172058,
-0.09452250599861145,
0.009313112124800682,
0.1962147206068039,
0.5006925463676453,
0.05561850965023041,
-0.09355194866657257,
-0.4382086992263794,
-0.03231097012758255,
-0.13944771885871887,
-0.1978674679994583,
0.35332629084587097,
-0.31882721185684204,
-0.11769631505012512,
-0.25252828001976013,
0.09978082776069641,
-0.2223493903875351,
-0.15722467005252838,
0.3052581250667572,
0.05869537591934204,
0.14327289164066315,
0.07590131461620331,
-0.3448251187801361,
0.1163829118013382,
0.060594119131565094,
0.045113567262887955,
-0.24405841529369354,
-0.021884191781282425,
-0.3494744598865509,
-0.24402296543121338,
0.0595741868019104,
0.46243730187416077,
0.01090095192193985,
-0.05297398939728737,
0.01950589008629322,
0.3652353286743164,
-0.09270978718996048,
0.05466349795460701,
0.10787170380353928,
-0.18405531346797943,
0.056094393134117126,
-0.23184730112552643,
-0.02726328931748867,
0.06373962759971619,
0.08348933607339859,
0.13361379504203796,
-0.10646479576826096,
0.1729998141527176,
0.20407649874687195,
-0.027930788695812225,
0.25420433282852173,
0.15923722088336945,
0.3644241690635681,
-0.251411497592926,
0.10466744005680084,
-0.3587052524089813,
0.21916109323501587,
-0.049363765865564346,
-0.07154161483049393,
-0.17746327817440033,
-0.4236357510089874,
0.04521702229976654,
0.6067510843276978,
0.15503475069999695,
0.21328967809677124,
0.0952787920832634,
-0.006847746670246124,
-0.17884260416030884,
-0.051461659371852875,
0.09497286379337311,
0.1725856214761734,
0.24997930228710175,
-0.14001330733299255,
0.04408673197031021,
-0.02336929738521576,
-0.07114517688751221,
0.3133591413497925,
-0.11022338271141052,
0.1291949599981308,
0.11594197154045105,
0.1464596390724182,
-0.12209247797727585,
-0.4732961058616638,
-0.09908346831798553,
-0.27191832661628723,
0.31240835785865784,
-0.12022291123867035,
0.23248709738254547,
-0.3833059072494507,
-0.511945903301239,
0.02983054518699646,
-0.20203420519828796,
-0.3217610716819763,
-0.34161561727523804,
0.2300843596458435,
0.10389328002929688,
-0.08628758043050766,
0.19168321788311005,
0.17463406920433044,
0.04120315611362457,
0.0341084823012352,
-0.10910854488611221,
-0.04482552409172058,
-0.38862720131874084,
-0.2937377989292145,
0.20785316824913025,
-0.046473510563373566,
0.18561270833015442,
0.34539100527763367,
-0.09279462695121765,
-0.13462597131729126,
-0.06532435119152069,
-0.45126739144325256,
0.13396963477134705,
-0.19821083545684814,
0.4171161949634552,
0.49882546067237854,
0.045873772352933884,
-0.15862025320529938,
-0.11848940700292587,
0.2855284810066223,
-0.5542434453964233,
-0.24181011319160461,
0.1625320166349411,
-0.04305395483970642,
0.0001879851333796978,
-0.2799879014492035,
-0.2784695625305176,
-0.26988881826400757,
-0.44292983412742615,
0.3062043786048889,
0.2609972059726715,
0.23382897675037384,
0.33367663621902466,
-0.08878374099731445,
0.18306651711463928,
-0.19767342507839203,
0.3888370394706726,
-0.17678116261959076,
-0.174470916390419,
-0.03363931551575661,
-0.23094551265239716,
-0.4337508976459503,
0.006330098956823349,
0.10902252793312073,
0.3247973620891571,
-0.24398837983608246,
-0.3170570731163025,
-0.26505404710769653,
0.048790790140628815,
0.10927450656890869,
0.02243640646338463,
0.1758803129196167,
0.2571716904640198,
0.18974633514881134,
-0.22511307895183563,
-0.2148873209953308,
-0.07855202257633209,
0.22497951984405518,
0.20173734426498413,
0.1111912950873375,
-0.04161026328802109,
0.21931040287017822,
0.15201126039028168,
0.3629116415977478,
-0.04903276264667511,
0.1733381599187851,
0.32888656854629517,
-0.12338825315237045,
0.4986991882324219,
-0.1633700430393219,
-0.39370420575141907,
-0.024487653747200966,
0.21374985575675964,
0.10913901031017303,
0.1704997569322586,
-0.02090909332036972,
-0.23367731273174286,
-0.24585331976413727,
0.03559889271855354,
-0.21091365814208984,
-0.2162310630083084,
-0.030753834173083305,
-0.20949718356132507,
-0.008988402783870697,
0.06706857681274414,
-0.08694743365049362,
-0.2360556572675705,
-0.12145859003067017,
-0.031725309789180756,
-0.09943054616451263,
-0.11774014681577682,
-0.16088540852069855,
-0.527444064617157,
-0.3798381984233856,
-0.4278232455253601,
0.24652177095413208,
-0.06926781684160233,
0.11954587697982788,
-0.13716842234134674,
-0.17686757445335388,
0.09991743415594101,
-0.12886762619018555,
0.3627331852912903,
-0.0043351296335458755,
-0.1355549544095993,
0.14127297699451447,
0.04772698134183884,
-0.370472252368927,
0.21488113701343536,
-0.29647067189216614,
0.2145402431488037,
0.4119860827922821,
0.08346667885780334,
-0.4349452257156372,
-0.27983108162879944,
0.3200950622558594,
-0.039096225053071976,
-0.12023620307445526,
0.16182614862918854,
-0.29394036531448364,
-0.36362016201019287,
-0.5449578166007996,
-0.12997275590896606,
0.07311956584453583,
0.33673325181007385,
0.18823745846748352,
0.13353897631168365,
0.005583551712334156,
-0.11856682598590851,
0.02293795347213745,
0.018741890788078308,
0.25226959586143494,
-0.2153330296278,
-0.369797021150589,
-0.22913992404937744,
0.25771626830101013,
0.02175973728299141,
0.418009877204895,
-0.10418471693992615,
-0.23626384139060974,
-0.29906541109085083,
-0.003622473683208227,
0.42009344696998596,
-0.011296942830085754,
0.08814071118831635,
0.24313846230506897,
-0.12298808991909027,
0.2615298628807068,
0.1734340935945511,
0.07780423760414124,
0.2646643817424774,
-0.030004050582647324,
0.0469723604619503,
-0.24182139337062836,
0.15611480176448822,
-0.05620535835623741,
0.006501629948616028,
0.03028784692287445,
0.09224061667919159,
-0.2980344295501709,
0.362490713596344,
-0.17370104789733887,
0.8276708722114563,
0.15412381291389465,
0.1495206207036972,
0.16271355748176575,
0.02002766728401184,
0.6298739314079285,
0.14599989354610443,
0.30142736434936523,
-0.230577751994133,
0.25455135107040405,
0.03710407018661499,
-0.048094481229782104,
0.23378285765647888,
0.09676222503185272,
-0.2803463637828827,
0.36226320266723633,
0.0007969960570335388,
0.0417940728366375,
-0.13653333485126495,
0.1986432671546936,
0.09124378859996796,
-0.025284934788942337,
-0.3467201590538025,
0.24151712656021118,
-0.12342211604118347,
0.17063084244728088,
-0.03527020663022995,
-0.18650217354297638,
0.13073383271694183,
-0.2843436598777771,
-0.188314288854599,
0.16501477360725403,
0.03550221771001816,
0.3320160508155823,
0.23417192697525024,
-0.35742461681365967,
-0.11968006193637848,
0.2072727084159851,
0.12313851714134216,
0.04643431305885315,
-0.14164990186691284,
0.19344739615917206,
-0.15047219395637512,
-0.1314363032579422,
0.05811468884348869,
0.37910082936286926,
0.40592265129089355,
-0.3037533760070801,
-0.31278255581855774,
0.13559184968471527,
0.0106384651735425,
-0.40712684392929077,
0.20549237728118896,
0.01243680715560913,
-0.035840049386024475,
0.0005651894025504589,
-0.06267321109771729,
0.10610643029212952,
0.0027784891426563263,
-0.261128693819046,
0.24799561500549316,
0.2681894302368164,
-0.29714271426200867,
0.1301717907190323,
0.02778930589556694,
-0.1332823634147644,
-0.059779804199934006,
-0.0008438602089881897,
0.12866519391536713,
0.0012188144028186798,
0.4648873805999756,
0.10234028100967407,
-0.1767461597919464,
-0.41186752915382385,
-0.27132147550582886,
-0.1673770397901535,
-0.2263268232345581,
0.38196927309036255,
0.22743113338947296,
-0.1809467077255249,
0.1564965397119522,
0.43249863386154175,
-0.1519448459148407,
0.046501487493515015,
-0.21638792753219604,
-0.24704699218273163,
-0.1826234608888626,
0.15930742025375366,
-0.04762240871787071,
0.08626069873571396,
0.17569652199745178,
0.18564476072788239,
0.11674445867538452,
0.030904535204172134,
-0.45744210481643677,
0.05549143999814987,
-0.3008752167224884,
0.1754252314567566,
0.4310324490070343,
-0.22186610102653503,
0.1155422106385231,
-0.05341452360153198,
0.2771426737308502,
-0.17125527560710907,
-0.16082634031772614,
-0.385538786649704,
-0.07677793502807617,
0.07387906312942505,
-0.07630979269742966,
-0.03847312182188034,
0.01686476171016693,
-0.06550553441047668,
-0.14149104058742523,
-0.05364837497472763,
0.12241317331790924,
-0.09864695370197296,
-0.04472965747117996,
0.5866772532463074,
0.09552429616451263,
-0.028180062770843506,
0.37294673919677734,
-0.0531998947262764,
0.024678587913513184,
0.16889627277851105,
-0.10141531378030777,
0.15028324723243713,
-0.09219904989004135,
-0.1458044946193695,
-0.0007068754057399929,
0.04616772010922432,
0.03179578855633736,
0.19708064198493958,
0.22887066006660461,
-0.2906331419944763,
-0.0921969935297966,
0.03928976505994797,
0.4682256281375885,
-0.03932281583547592,
-0.07853284478187561,
0.04753335565328598,
0.36974042654037476,
0.31865671277046204,
-0.4926091134548187,
0.05498943105340004,
0.2415745109319687,
-0.07947780191898346,
0.096262127161026,
0.1426691859960556,
0.07074210047721863,
0.09159724414348602,
0.007359787821769714,
0.11958185583353043,
0.2814492881298065,
-0.3491169810295105,
0.08573850989341736,
0.2375693917274475,
-0.2161262333393097,
-0.16726340353488922,
0.1247377023100853,
0.24518530070781708,
0.3118290305137634,
0.6150815486907959,
-0.041234247386455536,
0.1317598521709442,
0.1235014945268631,
0.07186608016490936,
0.17530399560928345,
-0.096165731549263,
0.27237001061439514,
0.14976544678211212,
0.16681115329265594,
0.05267544090747833,
0.14359068870544434,
0.32944729924201965,
-0.2138657569885254,
-0.01791618950664997,
-0.079561747610569,
0.6706985831260681,
-0.13449272513389587,
-0.15356120467185974,
-0.22350771725177765,
0.0610387846827507,
0.1749209761619568,
-0.14382344484329224,
0.13363716006278992,
-0.030589908361434937,
0.0905565544962883,
0.13582447171211243,
0.051351211965084076,
-0.4324581027030945,
0.3161310851573944,
-0.18095913529396057,
0.17576716840267181,
-0.0775604322552681,
0.0436396561563015,
-0.034344688057899475,
-0.020154081284999847,
-0.15338045358657837,
0.3481295704841614,
0.45250287652015686,
0.1537194550037384,
-0.29762002825737,
-0.04021580144762993,
-0.17110347747802734,
-0.2158660888671875,
-0.16859327256679535,
0.38002774119377136,
0.18222975730895996,
0.48046058416366577,
0.11640726029872894,
0.21835732460021973,
-0.20054444670677185,
-0.12312670052051544,
0.17831504344940186,
0.09049379825592041,
-0.15553975105285645,
0.5753050446510315,
0.05319192633032799,
-0.34241917729377747,
-0.1728660613298416,
0.03833574429154396,
-0.41502100229263306,
0.06616444885730743,
0.2942947447299957,
0.09532637894153595,
0.18881654739379883,
-0.3335586488246918,
0.17457814514636993,
0.15636242926120758,
0.39469924569129944,
0.3342244625091553,
0.23829391598701477,
0.18701493740081787,
-0.18417330086231232,
-0.4572905898094177,
0.0788855254650116,
-0.07890492677688599,
-0.2765888273715973,
-0.007492009550333023,
0.3077086806297302,
-0.009180523455142975,
0.21073117852210999,
-0.08312900364398956,
-0.0004257990512996912,
-0.06177893280982971,
-0.4295380711555481,
-0.23380127549171448,
0.036269109696149826,
-0.10008984804153442,
-0.055654801428318024,
0.16712002456188202,
-0.21006959676742554,
-0.11620192229747772,
0.027012549340724945,
0.1769954264163971,
-0.11858522891998291,
0.17666547000408173,
-0.009819086641073227,
-0.051238976418972015,
-0.13827413320541382,
0.29847395420074463,
0.15975457429885864,
-0.11686114221811295,
-0.12584777176380157,
0.1876400113105774,
-0.36092129349708557,
-0.374449759721756,
0.101926788687706,
-0.07300533354282379,
0.3420499861240387,
-0.16214817762374878,
0.1303638517856598,
-0.16034682095050812,
0.1503836065530777,
0.04803229868412018,
0.021119333803653717,
-0.22240859270095825,
0.13997526466846466,
0.17459899187088013,
-0.13141894340515137,
-0.14323563873767853,
0.1130640059709549,
-0.10719525814056396,
0.0569358766078949,
-0.2670483887195587,
-0.3180975914001465,
0.46158966422080994,
-0.3228892982006073,
-0.4482121169567108,
-0.057657111436128616,
0.19112055003643036,
-0.06515755504369736,
-0.34523674845695496,
-0.45517921447753906,
0.13871163129806519,
0.259766161441803,
0.0705321729183197,
-0.07926596701145172,
0.4142347574234009,
-0.2969503104686737,
0.03668462857604027,
0.1778428852558136,
0.4717925786972046,
0.2032422423362732,
-0.13713793456554413,
0.07964709401130676,
-0.16019128262996674
] |
https://github.com/huggingface/datasets/issues/414 | from_dict delete? | > `from_dict` was added in #350 that was unfortunately not included in the 0.3.0 release. It's going to be included in the next release that will be out pretty soon though.
> Right now if you want to use `from_dict` you have to install the package from the master branch
>
> ```
> pip install git+https://github.com/huggingface/nlp.git
> ```
OK, thank you.
| AttributeError: type object 'Dataset' has no attribute 'from_dict' | 62 | from_dict delete?
AttributeError: type object 'Dataset' has no attribute 'from_dict'
> `from_dict` was added in #350 that was unfortunately not included in the 0.3.0 release. It's going to be included in the next release that will be out pretty soon though.
> Right now if you want to use `from_dict` you have to install the package from the master branch
>
> ```
> pip install git+https://github.com/huggingface/nlp.git
> ```
OK, thank you.
| [
-0.07471885532140732,
-0.25162070989608765,
-0.11553436517715454,
0.0879223495721817,
0.18377718329429626,
-0.17871122062206268,
0.09087195992469788,
0.2998170554637909,
0.03160569444298744,
0.13190844655036926,
0.05100909620523453,
0.5649480223655701,
-0.10443390905857086,
0.29663535952568054,
-0.04717771336436272,
-0.2244531810283661,
-0.042634136974811554,
0.2933092415332794,
-0.33045271039009094,
-0.05172516778111458,
0.04046810418367386,
0.3629772663116455,
-0.1296854168176651,
0.27413409948349,
0.12527526915073395,
-0.19017523527145386,
0.0015237648040056229,
0.15268778800964355,
-0.134059339761734,
-0.31761226058006287,
0.2797698676586151,
0.026805344969034195,
-0.10140124708414078,
0.1761733442544937,
-0.00009855224925559014,
-0.07370069622993469,
0.3171120285987854,
-0.0745508149266243,
-0.26241350173950195,
-0.3476298451423645,
-0.15049126744270325,
-0.15895047783851624,
0.29756471514701843,
-0.11990995705127716,
-0.23881959915161133,
0.13871461153030396,
0.004563199356198311,
0.018630966544151306,
0.3920910358428955,
0.3837103843688965,
0.37491944432258606,
0.12493814527988434,
0.19294863939285278,
-0.12141743302345276,
0.16397418081760406,
0.18668366968631744,
-0.080738864839077,
-0.08622997999191284,
0.0554477758705616,
-0.19009916484355927,
0.3049737513065338,
0.29131168127059937,
-0.14886236190795898,
-0.11170360445976257,
0.1986546814441681,
-0.046251080930233,
0.02240869402885437,
-0.1591620296239853,
0.038937896490097046,
0.14282360672950745,
0.3123071789741516,
-0.3866826295852661,
-0.10583064705133438,
-0.2720886170864105,
-0.020536646246910095,
-0.35800474882125854,
0.011102914810180664,
-0.0354100838303566,
-0.12744629383087158,
0.14450086653232574,
-0.03957038000226021,
-0.4792865514755249,
-0.2171790897846222,
0.3515555262565613,
0.2264176607131958,
0.038225844502449036,
-0.12364055216312408,
0.05323681980371475,
0.2304847091436386,
-0.06376134604215622,
-0.38694119453430176,
0.2951689064502716,
-0.19513028860092163,
0.15866081416606903,
-0.04467461630702019,
-0.2178732454776764,
0.32639241218566895,
-0.06385282427072525,
-0.052557263523340225,
0.082508385181427,
0.0046474384143948555,
-0.022126615047454834,
-0.028121475130319595,
0.2544955909252167,
0.4578903317451477,
0.24757073819637299,
0.3936290740966797,
0.22120362520217896,
0.1548517793416977,
0.02508133463561535,
-0.08608987182378769,
-0.048933349549770355,
0.08430209010839462,
0.0313618965446949,
-0.1318335384130478,
-0.06858694553375244,
0.281574010848999,
-0.11335450410842896,
-0.27686911821365356,
-0.20642779767513275,
0.12096593528985977,
0.11062823235988617,
0.02826239913702011,
0.3377591669559479,
0.008651857264339924,
0.22319641709327698,
0.03606279939413071,
0.15167135000228882,
-0.36848101019859314,
-0.06707531958818436,
-0.23483403027057648,
0.35884061455726624,
-0.16952405869960785,
-0.4797997772693634,
0.04348841682076454,
0.17532624304294586,
0.35148218274116516,
-0.10704575479030609,
0.0640285313129425,
0.2143957018852234,
-0.005742693319916725,
0.05310138687491417,
0.0964135006070137,
0.18293868005275726,
-0.09293366223573685,
-0.15608647465705872,
0.2100341022014618,
-0.5214312076568604,
-0.25219613313674927,
0.12987512350082397,
-0.22387173771858215,
-0.298752099275589,
-0.45624014735221863,
0.29905965924263,
0.08990329504013062,
-0.27950677275657654,
-0.3280284106731415,
0.19722361862659454,
0.1388174593448639,
-0.16680891811847687,
-0.08274877816438675,
-0.1410975158214569,
-0.004468601197004318,
-0.14802676439285278,
-0.024339785799384117,
0.11409406363964081,
-0.24220438301563263,
-0.1710827648639679,
-0.17289485037326813,
-0.3147648870944977,
0.25964823365211487,
0.3290223479270935,
-0.2628428339958191,
0.22503140568733215,
-0.11825049668550491,
0.116387277841568,
0.47970160841941833,
-0.5727300047874451,
-0.1921098232269287,
0.2145446240901947,
-0.05976617708802223,
-0.10255751013755798,
-0.17597481608390808,
-0.027562007308006287,
0.1942092329263687,
-0.109425850212574,
-0.03829432278871536,
0.31945037841796875,
0.18176895380020142,
0.1489364355802536,
-0.2012801170349121,
-0.09793489426374435,
-0.009358376264572144,
-0.10988116264343262,
-0.07553963363170624,
0.05227038636803627,
0.1559682935476303,
0.17094293236732483,
0.23741450905799866,
-0.08586478233337402,
0.02251134067773819,
0.254688024520874,
0.47770389914512634,
0.07475593686103821,
-0.08629057556390762,
-0.43686121702194214,
-0.029493913054466248,
-0.1539904773235321,
-0.1910114288330078,
0.38392916321754456,
-0.25846099853515625,
-0.12557712197303772,
-0.2810032069683075,
0.10698998719453812,
-0.198751762509346,
-0.17127545177936554,
0.310285359621048,
0.03643735498189926,
0.12876957654953003,
0.04469175264239311,
-0.34844475984573364,
0.11584653705358505,
0.02924037165939808,
0.02924054116010666,
-0.2396177500486374,
-0.02240918017923832,
-0.36697256565093994,
-0.2318975031375885,
0.10109394788742065,
0.4514656066894531,
0.01694091036915779,
-0.057009559124708176,
0.02987278811633587,
0.3622138202190399,
-0.10761505365371704,
0.06025249511003494,
0.12949495017528534,
-0.17585794627666473,
0.061225950717926025,
-0.25309842824935913,
-0.03316015005111694,
0.057321514934301376,
0.08731315284967422,
0.1328568458557129,
-0.0833977535367012,
0.1473473310470581,
0.19436606764793396,
-0.04758191853761673,
0.23735950887203217,
0.1458623707294464,
0.35613664984703064,
-0.25808006525039673,
0.09342911839485168,
-0.31716784834861755,
0.22631406784057617,
-0.0559445284307003,
-0.12032653391361237,
-0.17075897753238678,
-0.45708170533180237,
0.07283589988946915,
0.6142230033874512,
0.11814567446708679,
0.20279109477996826,
0.11002636700868607,
-0.010491162538528442,
-0.20334464311599731,
-0.0465201660990715,
0.12750861048698425,
0.15989425778388977,
0.23933589458465576,
-0.14421012997627258,
0.04024873301386833,
-0.016073301434516907,
-0.04243554174900055,
0.3344416320323944,
-0.09530027210712433,
0.14906582236289978,
0.09819719195365906,
0.12956558167934418,
-0.10514750331640244,
-0.45266085863113403,
-0.10298582911491394,
-0.26597750186920166,
0.30867481231689453,
-0.13000057637691498,
0.21370163559913635,
-0.341368168592453,
-0.5405292510986328,
0.008028697222471237,
-0.2147611379623413,
-0.35531777143478394,
-0.3191392123699188,
0.23290470242500305,
0.07947497069835663,
-0.11584663391113281,
0.1832078993320465,
0.15573397278785706,
0.06989477574825287,
0.036897897720336914,
-0.08813026547431946,
-0.05064468830823898,
-0.3942844569683075,
-0.3033122420310974,
0.2088559865951538,
-0.030275698751211166,
0.21846459805965424,
0.33490413427352905,
-0.09231396019458771,
-0.1171325072646141,
-0.0730043351650238,
-0.42719215154647827,
0.1169191524386406,
-0.21328647434711456,
0.4308360815048218,
0.4775032103061676,
0.10045256465673447,
-0.16772238910198212,
-0.12496936321258545,
0.27486830949783325,
-0.5327466130256653,
-0.2540535628795624,
0.15805110335350037,
-0.015488984063267708,
-0.004885988309979439,
-0.27590322494506836,
-0.2948983907699585,
-0.24449993669986725,
-0.46424657106399536,
0.30066564679145813,
0.24625028669834137,
0.2239496409893036,
0.31382787227630615,
-0.09871497750282288,
0.16146016120910645,
-0.1947260946035385,
0.42157748341560364,
-0.19357630610466003,
-0.19165362417697906,
-0.040468040853738785,
-0.21860544383525848,
-0.4552697241306305,
0.02045520767569542,
0.13776230812072754,
0.3500981628894806,
-0.2896839380264282,
-0.31449270248413086,
-0.22519350051879883,
0.058029212057590485,
0.08702869713306427,
-0.0012441687285900116,
0.18821100890636444,
0.24216575920581818,
0.22061800956726074,
-0.21639908850193024,
-0.2033873200416565,
-0.10301271080970764,
0.222853422164917,
0.20191040635108948,
0.10728462785482407,
-0.04298252612352371,
0.2035517394542694,
0.14237473905086517,
0.3852214813232422,
-0.03430170938372612,
0.19852635264396667,
0.3196970820426941,
-0.06754816323518753,
0.46615052223205566,
-0.1550479233264923,
-0.40700197219848633,
-0.009127659723162651,
0.17550259828567505,
0.10234636068344116,
0.19163036346435547,
-0.007786540314555168,
-0.24192146956920624,
-0.251798152923584,
-0.004700982943177223,
-0.22840756177902222,
-0.2309153974056244,
0.0008256249129772186,
-0.23847484588623047,
0.0005100741982460022,
0.06528902053833008,
-0.11433969438076019,
-0.22598733007907867,
-0.10495410859584808,
-0.005071535706520081,
-0.10006245970726013,
-0.09127000719308853,
-0.14909863471984863,
-0.5165432095527649,
-0.3555942475795746,
-0.4211887717247009,
0.21034836769104004,
-0.0652921199798584,
0.14191274344921112,
-0.14394989609718323,
-0.17875176668167114,
0.10197264701128006,
-0.11253679543733597,
0.35134005546569824,
0.03082381933927536,
-0.13194096088409424,
0.1510489583015442,
0.053249187767505646,
-0.3147051930427551,
0.2232508510351181,
-0.29766836762428284,
0.19938181340694427,
0.38504064083099365,
0.04791482165455818,
-0.45329487323760986,
-0.27995142340660095,
0.2857566773891449,
-0.028510214760899544,
-0.1267184466123581,
0.1414327770471573,
-0.292006254196167,
-0.32945555448532104,
-0.5601937770843506,
-0.11468403786420822,
0.10400287061929703,
0.34590214490890503,
0.16091980040073395,
0.14142689108848572,
0.02739449217915535,
-0.1401558816432953,
0.03791573643684387,
-0.009029287844896317,
0.26661521196365356,
-0.20803990960121155,
-0.37483322620391846,
-0.24921181797981262,
0.2636890411376953,
0.01847229339182377,
0.4048207402229309,
-0.12580972909927368,
-0.2229822874069214,
-0.31173980236053467,
-0.030758265405893326,
0.42739179730415344,
-0.012826487421989441,
0.10023986548185349,
0.2510436475276947,
-0.12360019981861115,
0.27836209535598755,
0.13141627609729767,
0.03242799639701843,
0.2652910649776459,
-0.018458791077136993,
0.04341886192560196,
-0.2153189778327942,
0.13762012124061584,
-0.07958418130874634,
0.006577938795089722,
0.0342802032828331,
0.10681229829788208,
-0.3075438439846039,
0.3447082042694092,
-0.16065272688865662,
0.875785768032074,
0.15663714706897736,
0.14821918308734894,
0.1443023830652237,
0.006009414792060852,
0.6237421631813049,
0.15749281644821167,
0.30934059619903564,
-0.23598265647888184,
0.21988926827907562,
0.0453440323472023,
-0.023352868854999542,
0.21134766936302185,
0.093901626765728,
-0.2781500518321991,
0.3415938913822174,
-0.01105588674545288,
0.012548454105854034,
-0.14420057833194733,
0.20611447095870972,
0.08482670038938522,
-0.019567128270864487,
-0.431561142206192,
0.23686552047729492,
-0.10039637982845306,
0.14284467697143555,
-0.0665392279624939,
-0.21863938868045807,
0.12128414213657379,
-0.27252197265625,
-0.18702250719070435,
0.14110389351844788,
0.047734953463077545,
0.2928527593612671,
0.2638768255710602,
-0.3232085108757019,
-0.10180354118347168,
0.22944308817386627,
0.13220907747745514,
0.02150018699467182,
-0.16221784055233002,
0.16849352419376373,
-0.16761812567710876,
-0.14059138298034668,
0.06385491043329239,
0.3672299385070801,
0.45789697766304016,
-0.3215274512767792,
-0.30999037623405457,
0.13298645615577698,
-0.012823371216654778,
-0.3776732087135315,
0.17065614461898804,
0.01704467087984085,
-0.0479896143078804,
-0.01792288012802601,
-0.09113454818725586,
0.10278739035129547,
-0.01727551966905594,
-0.2291882485151291,
0.24809865653514862,
0.29379013180732727,
-0.30369818210601807,
0.11946509778499603,
0.058655429631471634,
-0.1238427609205246,
-0.043916407972574234,
-0.009820953011512756,
0.1302974820137024,
0.0020782239735126495,
0.47631096839904785,
0.13539385795593262,
-0.2008342295885086,
-0.4135894775390625,
-0.255391925573349,
-0.14052018523216248,
-0.24207425117492676,
0.3765791654586792,
0.20401515066623688,
-0.16968265175819397,
0.1431547850370407,
0.44422847032546997,
-0.11122085154056549,
0.05744245648384094,
-0.19938194751739502,
-0.24843356013298035,
-0.20250414311885834,
0.1892823576927185,
-0.06555403769016266,
0.07822522521018982,
0.14254355430603027,
0.1986285001039505,
0.1594911515712738,
0.060059353709220886,
-0.4667700231075287,
0.048420265316963196,
-0.3432685136795044,
0.18156538903713226,
0.4437229037284851,
-0.20990025997161865,
0.10122213512659073,
-0.023576155304908752,
0.2671225965023041,
-0.17460836470127106,
-0.15389683842658997,
-0.37554749846458435,
-0.07323627173900604,
0.07313399016857147,
-0.07964477688074112,
-0.028262341395020485,
0.029346894472837448,
-0.0664711594581604,
-0.13793577253818512,
-0.023247577250003815,
0.09331434965133667,
-0.10771362483501434,
-0.03352309763431549,
0.593474805355072,
0.09096595644950867,
-0.007124543190002441,
0.3224600553512573,
-0.0606764480471611,
0.04158737137913704,
0.20169037580490112,
-0.09308517724275589,
0.1157100722193718,
-0.0881635919213295,
-0.15593066811561584,
-0.0023577280808240175,
0.06224726140499115,
0.01998046040534973,
0.183356374502182,
0.2383449673652649,
-0.2874491810798645,
-0.0894555151462555,
0.04696672409772873,
0.4964929521083832,
-0.059452787041664124,
-0.10098463296890259,
0.07099887728691101,
0.3826434314250946,
0.3303329646587372,
-0.5057239532470703,
0.08314378559589386,
0.2515084743499756,
-0.11815053969621658,
0.05891751870512962,
0.1303807646036148,
0.05472831055521965,
0.09083302319049835,
0.02864418551325798,
0.13211259245872498,
0.24796153604984283,
-0.36755722761154175,
0.07194025814533234,
0.20216988027095795,
-0.26961931586265564,
-0.1480327844619751,
0.12639601528644562,
0.23489348590373993,
0.3072802424430847,
0.6015737056732178,
-0.030652999877929688,
0.14607657492160797,
0.13628634810447693,
0.09025617688894272,
0.18959929049015045,
-0.036128219217061996,
0.26440638303756714,
0.1784328669309616,
0.17733462154865265,
0.04308485984802246,
0.11738597601652145,
0.36151647567749023,
-0.19471979141235352,
-0.050371378660202026,
-0.0662267729640007,
0.6730322241783142,
-0.1513729691505432,
-0.1384246051311493,
-0.2244415134191513,
0.02976604551076889,
0.16385839879512787,
-0.16665610671043396,
0.11552879214286804,
-0.02657197415828705,
0.1167311742901802,
0.1477528214454651,
0.04044489935040474,
-0.43945634365081787,
0.2877225875854492,
-0.16176298260688782,
0.19609403610229492,
-0.09428918361663818,
0.04436855763196945,
-0.027190640568733215,
-0.01811419427394867,
-0.16530685126781464,
0.3592183589935303,
0.45516616106033325,
0.16749995946884155,
-0.2915838956832886,
-0.05345142260193825,
-0.1397535353899002,
-0.21164676547050476,
-0.1342041790485382,
0.40582147240638733,
0.21263402700424194,
0.46101588010787964,
0.13472828269004822,
0.20657581090927124,
-0.192611426115036,
-0.10799333453178406,
0.1983431726694107,
0.08533000946044922,
-0.1661790907382965,
0.553600013256073,
0.030668001621961594,
-0.36052143573760986,
-0.21234889328479767,
0.0388970822095871,
-0.42579612135887146,
0.08372712135314941,
0.2968180179595947,
0.0673174262046814,
0.20453065633773804,
-0.35678040981292725,
0.1773058921098709,
0.17809849977493286,
0.4015873372554779,
0.3509911596775055,
0.255021333694458,
0.1661321073770523,
-0.18104958534240723,
-0.44965752959251404,
0.08417044579982758,
-0.05078834667801857,
-0.24189895391464233,
-0.020643092691898346,
0.30069899559020996,
0.00025872141122817993,
0.22121931612491608,
-0.08654262125492096,
-0.008486920967698097,
-0.0446576364338398,
-0.3914656937122345,
-0.24863895773887634,
0.04682990163564682,
-0.08836852014064789,
-0.030839527025818825,
0.17171388864517212,
-0.18246552348136902,
-0.12353062629699707,
0.02781045436859131,
0.16627755761146545,
-0.10784649848937988,
0.1905747354030609,
-0.007086614146828651,
-0.032207928597927094,
-0.17308667302131653,
0.2991681694984436,
0.13249169290065765,
-0.11775769293308258,
-0.1633814424276352,
0.19627313315868378,
-0.369671493768692,
-0.34760090708732605,
0.10612092912197113,
-0.046208705753088,
0.33582043647766113,
-0.15564101934432983,
0.13643069565296173,
-0.16302143037319183,
0.1335614025592804,
0.035646528005599976,
0.03324626386165619,
-0.25348415970802307,
0.12121521681547165,
0.17456474900245667,
-0.16330906748771667,
-0.12083254754543304,
0.12732458114624023,
-0.113186776638031,
0.05017846077680588,
-0.29026156663894653,
-0.30753448605537415,
0.44952404499053955,
-0.33356863260269165,
-0.45926138758659363,
-0.06009773164987564,
0.20767194032669067,
-0.06308896094560623,
-0.3752245008945465,
-0.48535510897636414,
0.14199361205101013,
0.24108439683914185,
0.08443757146596909,
-0.07687535881996155,
0.42142319679260254,
-0.31274405121803284,
0.06322811543941498,
0.18300211429595947,
0.4975374639034271,
0.22215914726257324,
-0.09712007641792297,
0.08856919407844543,
-0.16333578526973724
] |
https://github.com/huggingface/datasets/issues/413 | Is there a way to download only NQ dev? | Unfortunately it's not possible to download only the dev set of NQ.
I think we could add a way to download only the test set by adding a custom configuration to the processing script though. | Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)?
As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data.
I tried
```
dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner")
```
But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading?
Thanks! | 35 | Is there a way to download only NQ dev?
Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)?
As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data.
I tried
```
dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner")
```
But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading?
Thanks!
Unfortunately it's not possible to download only the dev set of NQ.
I think we could add a way to download only the test set by adding a custom configuration to the processing script though. | [
-0.43141716718673706,
0.17720836400985718,
-0.11297199130058289,
0.11462248861789703,
-0.10702323913574219,
-0.0347270742058754,
-0.2576386034488678,
0.7160263657569885,
-0.032957371324300766,
0.3145226836204529,
-0.2831304967403412,
0.015157118439674377,
-0.22056402266025543,
0.6092382669448853,
0.47449344396591187,
-0.09877587854862213,
-0.11577775329351425,
0.4419940412044525,
-0.07996711134910583,
0.05189844220876694,
-0.1738964319229126,
0.2375747561454773,
-0.05118943005800247,
0.1008472591638565,
0.30445292592048645,
-0.2877170145511627,
0.15913718938827515,
-0.03061196208000183,
-0.3407661020755768,
-0.28897735476493835,
0.022300930693745613,
0.2152755856513977,
0.17467255890369415,
-0.3234871029853821,
-0.00012473230890464038,
-0.06383185088634491,
-0.01785481721162796,
-0.13166235387325287,
-0.13181917369365692,
0.123935267329216,
-0.1069379672408104,
-0.13386502861976624,
0.09317224472761154,
0.011332288384437561,
-0.0697072446346283,
-0.27816054224967957,
0.21352273225784302,
-0.08610768616199493,
0.358204185962677,
0.44547387957572937,
0.020418740808963776,
0.14054279029369354,
-0.25294792652130127,
0.15268833935260773,
-0.06445371359586716,
-0.28228652477264404,
-0.08922916650772095,
0.015646159648895264,
0.14982634782791138,
0.13543185591697693,
0.12198857963085175,
0.14073795080184937,
0.21573160588741302,
0.206638365983963,
0.005410030484199524,
-0.017190024256706238,
0.34922054409980774,
-0.7237769365310669,
-0.0792931541800499,
0.7125211358070374,
0.1285497546195984,
0.16236741840839386,
-0.17262184619903564,
-0.17672199010849,
0.12470860034227371,
-0.4916461706161499,
-0.042381346225738525,
0.5084108114242554,
-0.5656160712242126,
-0.002775873988866806,
-0.6391004920005798,
-0.5820968747138977,
-0.17276494204998016,
0.11604630947113037,
-0.05375538021326065,
-0.03376644104719162,
0.08018016815185547,
0.05383425951004028,
0.2881833016872406,
0.19551080465316772,
0.09658530354499817,
0.1249815821647644,
-0.15016944706439972,
0.13461658358573914,
-0.2485608011484146,
-0.42487943172454834,
-0.29505282640457153,
-0.15883329510688782,
0.2999625504016876,
0.0453278049826622,
-0.07103215903043747,
0.028663156554102898,
0.07237029075622559,
-0.10545534640550613,
0.4089212119579315,
0.10765404999256134,
0.28415510058403015,
0.2317724972963333,
0.05046864598989487,
0.021155891939997673,
0.0802837610244751,
0.16520968079566956,
-0.007686241529881954,
-0.07589159160852432,
-0.6195672154426575,
0.012415013276040554,
-0.018041254952549934,
-0.43164530396461487,
0.0045182835310697556,
-0.1753549873828888,
-0.15915249288082123,
-0.11186069995164871,
-0.1868521124124527,
0.19900618493556976,
0.040979791432619095,
0.07662414014339447,
-0.29712575674057007,
0.29751741886138916,
-0.27824610471725464,
-0.8463839292526245,
-0.15886127948760986,
0.0120070930570364,
0.04532233253121376,
0.13913100957870483,
0.3189244568347931,
0.16165664792060852,
0.21130909025669098,
-0.2638460397720337,
0.0016603469848632812,
-0.01891269162297249,
0.39867109060287476,
-0.007411707658320665,
0.030292846262454987,
0.39642882347106934,
0.0998833030462265,
0.15149587392807007,
-0.13892266154289246,
0.3128345012664795,
-0.43877553939819336,
0.22376886010169983,
-0.031921401619911194,
-0.35375046730041504,
0.23787236213684082,
0.04447384923696518,
-0.08159910142421722,
0.09028533101081848,
-0.0688423290848732,
0.27794426679611206,
-0.05112486332654953,
-0.14657340943813324,
-0.09530157595872879,
-0.1845458745956421,
-0.25400036573410034,
-0.051064688712358475,
0.37001287937164307,
-0.05476672947406769,
-0.31729409098625183,
-0.21801936626434326,
-0.050376538187265396,
-0.18735601007938385,
0.20571035146713257,
0.3892887532711029,
-0.1953088492155075,
0.27492964267730713,
-0.12825585901737213,
0.04190453886985779,
0.6039464473724365,
0.06341972947120667,
-0.1607678383588791,
0.44520851969718933,
-0.09582414478063583,
-0.3545050323009491,
-0.08867710083723068,
0.25403451919555664,
0.19824394583702087,
-0.010619159787893295,
-0.3353331685066223,
0.7256406545639038,
-0.18324218690395355,
-0.2423427850008011,
-0.0794682502746582,
-0.5672933459281921,
0.2943879961967468,
0.10721383988857269,
0.23346704244613647,
0.15476709604263306,
-0.1318538784980774,
-0.1644459068775177,
0.22800880670547485,
0.04814527556300163,
-0.02189502865076065,
0.01956288516521454,
-0.07710897922515869,
-0.44347667694091797,
-0.19487793743610382,
-0.1264064908027649,
-0.42739567160606384,
0.21920791268348694,
-0.6686825752258301,
-0.2727110683917999,
0.43370121717453003,
-0.07416381686925888,
-0.08565385639667511,
-0.21609480679035187,
0.22764547169208527,
-0.37657907605171204,
-0.0897454172372818,
-0.08976219594478607,
0.23281285166740417,
0.13455329835414886,
-0.3531806468963623,
-0.07757336646318436,
-0.08448057621717453,
0.12008918076753616,
-0.14855748414993286,
-0.18855205178260803,
0.19476079940795898,
0.16355468332767487,
0.31369030475616455,
-0.0682024285197258,
-0.14226257801055908,
0.029350940138101578,
0.11743485182523727,
0.18405982851982117,
-0.06535109132528305,
0.06793104857206345,
0.19010800123214722,
-0.003538474440574646,
0.02620014362037182,
-0.06363001465797424,
-0.08514504879713058,
0.07056169211864471,
-0.20347252488136292,
0.06017006188631058,
-0.17326197028160095,
0.4890034794807434,
-0.25018414855003357,
0.23876169323921204,
-0.024358263239264488,
0.07120823860168457,
0.11508503556251526,
-0.19531574845314026,
0.042203642427921295,
-0.10124720633029938,
0.2621367871761322,
0.07949268072843552,
0.0874665379524231,
-0.07810478657484055,
-0.13923045992851257,
0.05967741087079048,
0.3397408425807953,
-0.19958950579166412,
-0.12908396124839783,
-0.09711409360170364,
-0.06547128409147263,
-0.10624654591083527,
0.20735736191272736,
0.3562299311161041,
0.29537683725357056,
0.13935819268226624,
0.5149037837982178,
0.07710566371679306,
0.14949746429920197,
-0.2519960105419159,
0.14388173818588257,
0.02869410067796707,
-0.20335085690021515,
-0.061133816838264465,
-0.09691625833511353,
-0.13299694657325745,
-0.22849974036216736,
0.5298208594322205,
0.18843677639961243,
-0.04378382861614227,
-0.072128526866436,
-0.10562215000391006,
-0.4070436954498291,
-0.13698925077915192,
-0.0033698631450533867,
-0.0215587355196476,
-0.15911510586738586,
-0.1997394859790802,
0.3900642991065979,
-0.17504456639289856,
-0.2246311753988266,
0.17171579599380493,
0.13623996078968048,
0.46257466077804565,
-0.15687447786331177,
-0.2329501062631607,
0.16392093896865845,
0.043277639895677567,
-0.09028282016515732,
0.08864012360572815,
0.08599042892456055,
0.3979056477546692,
0.4500081539154053,
-0.10037300735712051,
-0.1956564337015152,
0.04053037613630295,
0.08623967319726944,
0.06506308913230896,
0.23006317019462585,
0.48143714666366577,
-0.022495724260807037,
0.4113830327987671,
-0.012760573998093605,
0.14478711783885956,
-0.392800509929657,
-0.11072280257940292,
-0.2695806920528412,
-0.10978706181049347,
0.2999335527420044,
0.38560307025909424,
-0.20250855386257172,
-0.7505494356155396,
-0.20442062616348267,
-0.26555758714675903,
0.19112993776798248,
0.007809024304151535,
0.2178957760334015,
-0.13020355999469757,
-0.22375589609146118,
-0.07237615436315536,
-0.4191214442253113,
-0.02998889423906803,
-0.054657112807035446,
-0.027256611734628677,
0.2050243616104126,
-0.17966459691524506,
-0.10892605781555176,
0.11905363202095032,
-0.005497254431247711,
0.3167383074760437,
0.2234026938676834,
-0.6580187082290649,
0.3405664563179016,
-0.04115498065948486,
0.17391100525856018,
-0.041628845036029816,
-0.13397809863090515,
0.4145452380180359,
-0.4879593551158905,
0.03442077338695526,
0.21193766593933105,
0.21599255502223969,
0.08939823508262634,
0.09186281263828278,
0.15385524928569794,
-0.09293767064809799,
0.32253459095954895,
0.05038401857018471,
0.9196416139602661,
0.08446978032588959,
0.286299467086792,
-0.07740671932697296,
0.028765078634023666,
0.2585727572441101,
-0.10738448053598404,
0.311917245388031,
0.2791599929332733,
0.19783808290958405,
-0.21465982496738434,
0.2588626742362976,
0.024154996499419212,
-0.1635821908712387,
-0.16063833236694336,
-0.048174016177654266,
-0.08503228425979614,
-0.1581909954547882,
0.14324869215488434,
-0.04314275085926056,
0.1371501386165619,
0.23636311292648315,
0.10825685411691666,
0.28433823585510254,
-0.19661706686019897,
-0.07217323780059814,
-0.08450447022914886,
0.24680060148239136,
0.09812752157449722,
-0.5428903698921204,
-0.08517459779977798,
-0.24777230620384216,
0.005731403827667236,
-0.10686317086219788,
0.18003176152706146,
-0.14529989659786224,
-0.058572858572006226,
0.17858153581619263,
0.10148263722658157,
0.6295844316482544,
0.004830636084079742,
-0.13565342128276825,
-0.029293537139892578,
-0.3415817320346832,
-0.11980157345533371,
-0.04772700369358063,
-0.05079014599323273,
-0.2233601212501526,
0.15441127121448517,
-0.16493116319179535,
-0.2447294294834137,
0.028370464220643044,
0.07344941794872284,
0.42580440640449524,
-0.2620770037174225,
0.16350775957107544,
0.06262418627738953,
0.07560095191001892,
-0.13205918669700623,
0.3050743639469147,
-0.05688142031431198,
-0.015106160193681717,
-0.25901779532432556,
-0.1273944079875946,
-0.231846883893013,
-0.10116341710090637,
0.2034730166196823,
0.14483322203159332,
0.14290180802345276,
0.05126604065299034,
0.2887454628944397,
0.0686538815498352,
-0.2530810534954071,
-0.3048669993877411,
0.1492016613483429,
0.06736072897911072,
0.047408998012542725,
-0.11935190111398697,
0.007832313887774944,
0.2520499527454376,
0.37511807680130005,
-0.18276579678058624,
-0.23672783374786377,
0.027421843260526657,
0.05505247414112091,
-0.009060612879693508,
0.4180622100830078,
-0.01860448159277439,
-0.38341468572616577,
-0.14813600480556488,
-0.17369450628757477,
0.3704396188259125,
0.2203921377658844,
-0.201836958527565,
0.24060171842575073,
0.026436123996973038,
0.027872389182448387,
-0.18643559515476227,
0.2639506459236145,
0.8607457876205444,
-0.2654825448989868,
0.21493463218212128,
0.16462916135787964,
-0.3632868528366089,
0.825619637966156,
-0.334928035736084,
0.11623910814523697,
-0.19724120199680328,
-0.15315735340118408,
-0.10656305402517319,
-0.2051381766796112,
-0.11022254079580307,
0.27928465604782104,
0.016419801861047745,
0.48655009269714355,
0.11760985851287842,
-0.07186070084571838,
0.05473816394805908,
0.045239269733428955,
0.14440496265888214,
0.07589851319789886,
0.017245585098862648,
-0.04167138785123825,
-0.3121596574783325,
0.10529513657093048,
-0.042983800172805786,
-0.030219897627830505,
0.16884253919124603,
0.008627958595752716,
-0.0195344015955925,
0.08527147024869919,
-0.12316059321165085,
-0.23282025754451752,
-0.17847982048988342,
-0.16006672382354736,
-0.09355774521827698,
0.634536862373352,
0.15036119520664215,
0.20266591012477875,
-0.3431526720523834,
0.223953977227211,
-0.11671312898397446,
0.006588863208889961,
0.13941769301891327,
0.13154517114162445,
-0.1487898975610733,
-0.25361940264701843,
0.07746132463216782,
0.1407606303691864,
-0.18527264893054962,
0.1381828635931015,
-0.35261473059654236,
0.24458009004592896,
0.14566846191883087,
-0.17888160049915314,
-0.15810558199882507,
-0.050005048513412476,
0.27166813611984253,
-0.01195036806166172,
0.029389195144176483,
0.11757786571979523,
-0.2636389434337616,
0.06586119532585144,
0.17052561044692993,
-0.3241093158721924,
-0.1111440509557724,
0.1945013403892517,
0.4288100600242615,
-0.16999998688697815,
0.3327627182006836,
-0.14090846478939056,
0.01364653930068016,
-0.30635377764701843,
-0.017214883118867874,
0.002265738323330879,
-0.35333147644996643,
0.20714516937732697,
-0.14681319892406464,
-0.17268973588943481,
-0.07956267893314362,
0.2791503667831421,
-0.02072492241859436,
-0.13074266910552979,
0.07040739059448242,
-0.19949190318584442,
-0.032944485545158386,
0.21636280417442322,
-0.3628818094730377,
0.37883174419403076,
0.13547047972679138,
-0.2997676730155945,
-0.16346704959869385,
0.6286059617996216,
-0.1036684662103653,
0.032200418412685394,
-0.09443685412406921,
0.2511240839958191,
-0.3191685378551483,
0.2514475882053375,
0.03286748751997948,
0.1078876256942749,
-0.15011990070343018,
-0.05402268469333649,
-0.3074715733528137,
-0.07368293404579163,
-0.020496156066656113,
0.1999010145664215,
-0.05620478838682175,
0.18954715132713318,
0.36529335379600525,
0.0124279223382473,
-0.157903790473938,
0.09461472183465958,
0.08299054205417633,
-0.4526720941066742,
0.24689185619354248,
0.211149200797081,
0.5735398530960083,
0.1258855164051056,
-0.5383158922195435,
0.43974846601486206,
-0.17805755138397217,
0.42975038290023804,
-0.031020520254969597,
0.2363821268081665,
0.0711551383137703,
-0.20824041962623596,
-0.4042152464389801,
-0.14882880449295044,
0.2778959572315216,
-0.055930353701114655,
-0.13062414526939392,
0.11222929507493973,
-0.0010715685784816742,
-0.346371054649353,
0.13916651904582977,
0.7270388603210449,
-0.14684312045574188,
0.08611413836479187,
0.3228088617324829,
0.07822906970977783,
-0.048498138785362244,
-0.013145905919373035,
0.20043611526489258,
-0.035686954855918884,
-0.24991004168987274,
0.3352941572666168,
0.06424184143543243,
-0.26859164237976074,
0.4162905216217041,
-0.046042826026678085,
-0.1537013202905655,
-0.1983640193939209,
0.01614053174853325,
0.5277782678604126,
-0.22103790938854218,
-0.276615172624588,
-0.16278620064258575,
0.10337229073047638,
0.0404641330242157,
0.20246082544326782,
-0.28555387258529663,
0.2845877408981323,
0.40571144223213196,
0.19137747585773468,
0.03367339447140694,
-0.1473395675420761,
-0.3288441300392151,
0.4491599202156067,
0.11614271998405457,
0.08897796273231506,
-0.020723894238471985,
0.2700831890106201,
0.14147403836250305,
-0.298155277967453,
-0.30127301812171936,
0.21447400748729706,
0.20347189903259277,
-0.02856099046766758,
-0.2557726502418518,
-0.007110707461833954,
-0.12210848927497864,
0.3441334068775177,
-0.005876883864402771,
-0.45943284034729004,
-0.0845608115196228,
0.29824548959732056,
-0.18215365707874298,
-0.06934478878974915,
0.3256302773952484,
-0.032584719359874725,
-0.12844392657279968,
-0.25295698642730713,
0.16987267136573792,
-0.17500008642673492,
0.14046567678451538,
0.4270239770412445,
0.015474668703973293,
-0.23075762391090393,
-0.12067066133022308,
-0.4186614453792572,
-0.16680268943309784,
0.3144170939922333,
0.16809909045696259,
-0.15498124063014984,
0.15494166314601898,
0.21399520337581635,
0.5466288924217224,
0.40485891699790955,
-0.014750251546502113,
0.04288867861032486,
0.1710374802350998,
0.089162677526474,
0.18247652053833008,
-0.40492764115333557,
0.44964954257011414,
0.22695645689964294,
0.20727470517158508,
-0.12108589708805084,
-0.054149262607097626,
-0.28801754117012024,
0.06115720793604851,
-0.3377895653247833,
-0.23572005331516266,
0.04046672582626343,
0.19493161141872406,
-0.0027504395693540573,
-0.5021932721138,
0.5036777257919312,
0.04890644922852516,
0.26145684719085693,
-0.3123841881752014,
-0.15677426755428314,
-0.24235142767429352,
-0.033842749893665314,
-0.09236153960227966,
0.1479976624250412,
0.05213906988501549,
0.2573346197605133,
0.09680408984422684,
0.5066360235214233,
-0.4359945058822632,
0.2668399214744568,
-0.3112768530845642,
0.2950911521911621,
-0.28620046377182007,
-0.12776610255241394,
-0.3360530138015747,
0.4263562560081482,
0.00009567849338054657,
-0.21760249137878418,
0.4132010340690613,
-0.3228468596935272,
-0.2708882689476013,
0.6675407886505127,
-0.14534340798854828,
0.37491676211357117,
0.253848135471344,
0.2959195077419281,
0.2553868889808655,
0.1831931471824646,
0.04936856031417847,
-0.10622994601726532,
-0.09900476038455963,
0.06721949577331543,
-0.36489200592041016,
-0.09098594635725021,
-0.04939325526356697,
0.13065211474895477,
-0.2727125287055969,
0.5207656025886536,
0.01343786995857954,
0.17826983332633972,
-0.06946735084056854,
0.315121591091156,
0.12133985012769699,
-0.23953650891780853,
0.06848122924566269,
0.35222327709198,
0.4145168364048004,
0.33705681562423706,
-0.24789971113204956,
-0.26403340697288513,
-0.2773192524909973,
0.08656591176986694,
0.49223417043685913,
-0.05289352685213089,
0.08048006892204285,
0.04537961259484291,
0.21912652254104614,
0.30041277408599854,
-0.14770443737506866,
-0.34658753871917725,
-0.02075953036546707,
0.2700823247432709,
-0.34740063548088074,
0.010017070919275284,
0.3292180299758911,
0.19285960495471954,
-0.20005741715431213,
-0.12346501648426056,
0.22325916588306427,
0.24612101912498474,
-0.21741221845149994,
-0.2893904447555542,
-0.39390671253204346
] |
https://github.com/huggingface/datasets/issues/413 | Is there a way to download only NQ dev? | Ok, got it. I think this could be a valuable feature - especially for large datasets like NQ, but potentially also others.
For us, it will in this case make the difference of using the library or keeping the old downloads of the raw dev datasets.
However, I don't know if that fits into your plans with the library and can also understand if you don't want to support this. | Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)?
As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data.
I tried
```
dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner")
```
But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading?
Thanks! | 70 | Is there a way to download only NQ dev?
Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)?
As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data.
I tried
```
dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner")
```
But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading?
Thanks!
Ok, got it. I think this could be a valuable feature - especially for large datasets like NQ, but potentially also others.
For us, it will in this case make the difference of using the library or keeping the old downloads of the raw dev datasets.
However, I don't know if that fits into your plans with the library and can also understand if you don't want to support this. | [
-0.38376814126968384,
0.21080783009529114,
-0.09517168998718262,
0.10442370176315308,
-0.09206445515155792,
-0.09077095985412598,
-0.22576765716075897,
0.6605114340782166,
-0.04186762124300003,
0.2795560956001282,
-0.33255574107170105,
0.06468401104211807,
-0.26075324416160583,
0.5805529356002808,
0.42009907960891724,
-0.16128438711166382,
-0.11435944586992264,
0.44307002425193787,
-0.0725366473197937,
0.03209406137466431,
-0.14584526419639587,
0.23554588854312897,
-0.08525528758764267,
0.08455419540405273,
0.3158815801143646,
-0.2681666314601898,
0.16130106151103973,
0.0003767944872379303,
-0.4130050241947174,
-0.2256510853767395,
0.10464929044246674,
0.23187647759914398,
0.27370724081993103,
-0.3151414394378662,
-0.00012479779252316803,
-0.17675423622131348,
-0.04924146085977554,
-0.10769727826118469,
-0.10483378171920776,
0.029061056673526764,
-0.03166233003139496,
-0.1345096230506897,
0.14484083652496338,
-0.014608234167098999,
-0.06617413461208344,
-0.2787027060985565,
0.18022224307060242,
-0.08779790997505188,
0.28284114599227905,
0.3137023150920868,
0.034750692546367645,
0.057581543922424316,
-0.17858119308948517,
0.17442142963409424,
0.04548468068242073,
-0.15722790360450745,
-0.14960822463035583,
0.07105313986539841,
0.24096311628818512,
0.17397458851337433,
0.13714586198329926,
0.16288436949253082,
0.1711564064025879,
0.1461562067270279,
0.10413272678852081,
-0.008416256867349148,
0.29024791717529297,
-0.6779156923294067,
-0.1346672773361206,
0.7349894046783447,
0.2752509117126465,
0.11956468969583511,
-0.14532402157783508,
-0.17514705657958984,
0.12117009609937668,
-0.4858594834804535,
-0.10156317800283432,
0.5020639896392822,
-0.5056436061859131,
0.005868900567293167,
-0.5925875902175903,
-0.5954381227493286,
-0.22894833981990814,
0.19649918377399445,
-0.015453636646270752,
-0.07864226400852203,
0.07638178020715714,
0.08080518990755081,
0.3439539670944214,
0.19328337907791138,
0.15541517734527588,
0.12685982882976532,
-0.11997920274734497,
0.13051551580429077,
-0.2635023593902588,
-0.454286128282547,
-0.31518468260765076,
-0.10787852853536606,
0.2948121726512909,
0.10536511987447739,
-0.13060621917247772,
0.03116963803768158,
0.03039359301328659,
-0.10635919123888016,
0.5197595357894897,
0.04787853732705116,
0.24578744173049927,
0.23746363818645477,
0.12655368447303772,
0.03722820058465004,
0.09753435850143433,
0.12589867413043976,
-0.022298045456409454,
-0.02199607715010643,
-0.643149197101593,
-0.061106808483600616,
-0.056139715015888214,
-0.4703979790210724,
0.10247664898633957,
-0.21259845793247223,
-0.18481099605560303,
-0.07413069903850555,
-0.07658244669437408,
0.21191102266311646,
0.03755141422152519,
0.06745591014623642,
-0.24543996155261993,
0.2834022045135498,
-0.266113817691803,
-0.7744129300117493,
-0.1252470165491104,
-0.007906358689069748,
-0.06795196235179901,
0.06196865439414978,
0.33753591775894165,
0.08440230786800385,
0.14902551472187042,
-0.18500228226184845,
0.007381327450275421,
0.026367999613285065,
0.33355915546417236,
-0.01661859080195427,
-0.009726390242576599,
0.36127105355262756,
0.00337064266204834,
0.16384127736091614,
-0.16325971484184265,
0.25856339931488037,
-0.47587570548057556,
0.24903598427772522,
-0.0942889079451561,
-0.3748090863227844,
0.08776319772005081,
0.024296734482049942,
-0.043055880814790726,
0.05589640513062477,
-0.08282389491796494,
0.27867892384529114,
-0.07650882750749588,
-0.23456397652626038,
-0.04447304457426071,
-0.17472121119499207,
-0.22333885729312897,
-0.06687544286251068,
0.28558239340782166,
-0.07807917892932892,
-0.25227001309394836,
-0.1871509701013565,
-0.07461415976285934,
-0.1785930097103119,
0.21087010204792023,
0.36801302433013916,
-0.2529712915420532,
0.15839731693267822,
-0.11551795899868011,
0.02183668315410614,
0.658026933670044,
0.07899962365627289,
-0.23373952507972717,
0.49083346128463745,
-0.052650805562734604,
-0.31380271911621094,
-0.1015426442027092,
0.3563978374004364,
0.18393975496292114,
-0.05893930420279503,
-0.3391222357749939,
0.7834394574165344,
-0.13798020780086517,
-0.25033214688301086,
-0.07841309159994125,
-0.5916567444801331,
0.3074530363082886,
0.178309828042984,
0.22057276964187622,
0.1342015266418457,
-0.049558646976947784,
-0.12027836591005325,
0.2245156168937683,
0.03003094531595707,
0.011263284832239151,
-0.00881100445985794,
0.012379087507724762,
-0.3818095326423645,
-0.17117466032505035,
-0.15303535759449005,
-0.4459680914878845,
0.18465477228164673,
-0.6536513566970825,
-0.19456222653388977,
0.4189761281013489,
-0.08657129108905792,
0.007397925481200218,
-0.23410016298294067,
0.2203126847743988,
-0.41218653321266174,
-0.11986465752124786,
-0.17909714579582214,
0.18353521823883057,
0.16846448183059692,
-0.3527587056159973,
-0.11952622979879379,
-0.14148806035518646,
0.1672486960887909,
-0.18173231184482574,
-0.12166489660739899,
0.18362487852573395,
0.2101254016160965,
0.22291997075080872,
-0.0013611987233161926,
-0.15466168522834778,
0.060196779668331146,
0.12646935880184174,
0.14643539488315582,
-0.156962051987648,
0.07484956085681915,
0.13805490732192993,
0.06022384762763977,
0.14683710038661957,
-0.06213484704494476,
-0.010638931766152382,
0.027823692187666893,
-0.15942277014255524,
0.035975657403469086,
-0.18416208028793335,
0.4670122265815735,
-0.29410073161125183,
0.22730091214179993,
-0.0432114414870739,
0.042775772511959076,
0.06777915358543396,
-0.19877982139587402,
0.07021193951368332,
-0.031456358730793,
0.29936718940734863,
0.07511217892169952,
0.08936642110347748,
-0.06842084974050522,
-0.15160676836967468,
0.09159903973340988,
0.3092694878578186,
-0.18391704559326172,
-0.17738130688667297,
-0.03657164424657822,
-0.07422023266553879,
-0.07073214650154114,
0.23807647824287415,
0.4090532660484314,
0.3239275813102722,
0.14571814239025116,
0.5053699612617493,
0.04641619697213173,
0.15501177310943604,
-0.24613209068775177,
0.12225411832332611,
-0.001636117696762085,
-0.2593737542629242,
-0.07849831134080887,
-0.10568538308143616,
-0.06836137920618057,
-0.26442694664001465,
0.4836118519306183,
0.12114667147397995,
-0.05166907608509064,
-0.01089160144329071,
-0.09186650067567825,
-0.4039865732192993,
-0.19540053606033325,
-0.005984625779092312,
-0.06681742519140244,
-0.21759098768234253,
-0.138527050614357,
0.3773459196090698,
-0.1401185840368271,
-0.18598659336566925,
0.14194941520690918,
0.20799988508224487,
0.4611383378505707,
-0.228557288646698,
-0.33331483602523804,
0.12948545813560486,
0.06488832086324692,
-0.08235503733158112,
0.08761566877365112,
0.12100832164287567,
0.32321324944496155,
0.43681207299232483,
-0.014864243566989899,
-0.11112935841083527,
-0.022029420360922813,
-0.031247444450855255,
0.03106430359184742,
0.210592582821846,
0.45115453004837036,
0.0031826719641685486,
0.35743796825408936,
-0.02078433334827423,
0.103965625166893,
-0.37316954135894775,
-0.20483990013599396,
-0.2044689953327179,
-0.13326498866081238,
0.3195645809173584,
0.3701704740524292,
-0.2776893973350525,
-0.7098518013954163,
-0.2263512760400772,
-0.29265737533569336,
0.20921723544597626,
0.0054039545357227325,
0.1874396651983261,
-0.025835465639829636,
-0.2257736474275589,
-0.07126433402299881,
-0.346326619386673,
-0.030254492536187172,
-0.05382673814892769,
-0.0661439523100853,
0.23064863681793213,
-0.1736420840024948,
-0.0774058997631073,
0.14234404265880585,
0.009330838918685913,
0.27863776683807373,
0.24407094717025757,
-0.7312851548194885,
0.3878256380558014,
-0.014922047033905983,
0.1793181449174881,
0.012404635548591614,
-0.031670935451984406,
0.39068466424942017,
-0.4956603944301605,
0.04619103670120239,
0.22265583276748657,
0.18015488982200623,
0.04736106097698212,
0.14631381630897522,
0.26421383023262024,
-0.05056212097406387,
0.2984299957752228,
0.004214435815811157,
0.9026041030883789,
-0.021901559084653854,
0.2770236134529114,
-0.027903199195861816,
0.11596239358186722,
0.31327587366104126,
-0.11794104427099228,
0.29585063457489014,
0.3645726144313812,
0.1598808318376541,
-0.2335764616727829,
0.2932388484477997,
0.12394165247678757,
-0.25895383954048157,
-0.21445386111736298,
-0.0696268230676651,
-0.056702446192502975,
-0.12731629610061646,
0.1541203409433365,
-0.009760890156030655,
0.04219210147857666,
0.21849775314331055,
0.07201219350099564,
0.3293578326702118,
-0.19149774312973022,
-0.09619203209877014,
0.032257065176963806,
0.26238733530044556,
0.09221561253070831,
-0.5549849271774292,
-0.06914948672056198,
-0.25532516837120056,
-0.004599213600158691,
-0.09895418584346771,
0.03176188841462135,
-0.12043961137533188,
-0.00826849415898323,
0.23185986280441284,
0.16834738850593567,
0.5909474492073059,
0.06145515292882919,
-0.24266596138477325,
-0.08832862973213196,
-0.3295902609825134,
-0.022791896015405655,
-0.029451284557580948,
0.052441757172346115,
-0.18578775227069855,
0.08472511172294617,
-0.16251517832279205,
-0.2776075005531311,
-0.0038192379288375378,
0.10672977566719055,
0.37439751625061035,
-0.1717575490474701,
0.06833979487419128,
0.13193294405937195,
0.0820218101143837,
-0.15530256927013397,
0.2775476276874542,
-0.07118670642375946,
0.016129549592733383,
-0.2766101062297821,
-0.1321994811296463,
-0.1908855140209198,
-0.0520368292927742,
0.20104806125164032,
0.061187732964754105,
0.1420809030532837,
0.04504253342747688,
0.2517434060573578,
0.04565254971385002,
-0.1849995255470276,
-0.25965020060539246,
0.21267962455749512,
0.0181572325527668,
0.0519399419426918,
-0.0969632938504219,
0.03265105560421944,
0.22346128523349762,
0.3854709267616272,
-0.15902693569660187,
-0.18184497952461243,
-0.008986864238977432,
0.03725181147456169,
-0.01706835627555847,
0.3170149326324463,
-0.005307268351316452,
-0.39978957176208496,
-0.22671806812286377,
-0.22699442505836487,
0.44948434829711914,
0.16347211599349976,
-0.141341894865036,
0.3220732808113098,
0.06557165831327438,
0.04997365176677704,
-0.2421560436487198,
0.268582284450531,
0.9881715178489685,
-0.2815473675727844,
0.25483524799346924,
0.12802419066429138,
-0.4641486406326294,
0.9363818168640137,
-0.3721266984939575,
0.09347108751535416,
-0.2408134788274765,
-0.126150444149971,
-0.1237548366189003,
-0.18515253067016602,
-0.0779530480504036,
0.2559371590614319,
0.03021949902176857,
0.4426487386226654,
0.16115114092826843,
-0.05133739486336708,
0.0561254546046257,
0.05603404343128204,
0.15205682814121246,
0.04395713657140732,
-0.0281064473092556,
-0.04434926062822342,
-0.2746138572692871,
0.11114153265953064,
-0.05412101373076439,
-0.10219983756542206,
0.15297654271125793,
-0.000627811998128891,
-0.01872238516807556,
0.044430240988731384,
-0.012726624496281147,
-0.2662274241447449,
-0.06237957999110222,
-0.21859672665596008,
0.014378152787685394,
0.6153014898300171,
0.12691980600357056,
0.17624065279960632,
-0.38006553053855896,
0.2230014055967331,
-0.1217522844672203,
0.01536872424185276,
0.1590142697095871,
0.10441391915082932,
-0.14016616344451904,
-0.20978716015815735,
0.12962648272514343,
0.08713973313570023,
-0.22260621190071106,
0.05137253552675247,
-0.38739073276519775,
0.27170681953430176,
0.2484145164489746,
-0.16532163321971893,
-0.10951593518257141,
-0.03475845605134964,
0.2807542681694031,
-0.007118985056877136,
0.027663733810186386,
0.1707443743944168,
-0.20039038360118866,
0.006211496889591217,
0.12129636108875275,
-0.2966056168079376,
-0.17841310799121857,
0.21706026792526245,
0.4410697817802429,
-0.2956870496273041,
0.23113352060317993,
-0.14475196599960327,
-0.04064711555838585,
-0.2397845983505249,
0.010483525693416595,
-0.029926016926765442,
-0.40083643794059753,
0.13582339882850647,
-0.11067011207342148,
-0.18302324414253235,
-0.024585774168372154,
0.27509942650794983,
-0.09945839643478394,
-0.0941784605383873,
0.07733538746833801,
-0.21170002222061157,
-0.07177221775054932,
0.2115342915058136,
-0.4958399832248688,
0.39221853017807007,
0.16117927432060242,
-0.34406548738479614,
-0.08004104346036911,
0.5380377173423767,
-0.08751438558101654,
0.11438234895467758,
-0.03271639719605446,
0.23921813070774078,
-0.33013615012168884,
0.23760581016540527,
-0.03354385495185852,
0.0713956356048584,
-0.17800474166870117,
-0.02154453843832016,
-0.31897008419036865,
-0.044727932661771774,
-0.08305294811725616,
0.22085431218147278,
-0.02009180188179016,
0.17323361337184906,
0.29793956875801086,
-0.05267585068941116,
-0.18397021293640137,
0.10122037678956985,
0.10391983389854431,
-0.38892537355422974,
0.24018816649913788,
0.15749530494213104,
0.5783491134643555,
0.1097840815782547,
-0.5913119912147522,
0.5145002603530884,
-0.16770467162132263,
0.4666439890861511,
0.04726118966937065,
0.15126122534275055,
-0.012768825516104698,
-0.2139866203069687,
-0.4592823386192322,
-0.12761694192886353,
0.28906774520874023,
-0.07644440233707428,
-0.0014030151069164276,
0.1141815185546875,
0.06534558534622192,
-0.27806466817855835,
0.22555650770664215,
0.753422200679779,
-0.13397769629955292,
0.06208573281764984,
0.36737579107284546,
0.06493033468723297,
-0.009342238306999207,
-0.057175010442733765,
0.08908040821552277,
-0.013878402300179005,
-0.2894073724746704,
0.31292763352394104,
0.057532813400030136,
-0.3034367263317108,
0.4116073250770569,
-0.11162296682596207,
-0.09437650442123413,
-0.1530000865459442,
0.0425371490418911,
0.5735346674919128,
-0.2732238471508026,
-0.32623758912086487,
-0.13947196304798126,
0.1508864164352417,
0.022197380661964417,
0.2271663248538971,
-0.3691066801548004,
0.21775774657726288,
0.4459449350833893,
0.2370322048664093,
0.0058740973472595215,
-0.13448207080364227,
-0.32525259256362915,
0.5056003928184509,
0.2182750552892685,
0.04067258536815643,
-0.06967565417289734,
0.3011365234851837,
0.15728725492954254,
-0.2912786900997162,
-0.19808785617351532,
0.2419244796037674,
0.1974516212940216,
0.016667956486344337,
-0.20285363495349884,
-0.04968109726905823,
-0.18268324434757233,
0.3123769462108612,
-0.10107196867465973,
-0.4574669599533081,
-0.13913072645664215,
0.3240174651145935,
-0.12361615896224976,
-0.15699048340320587,
0.33072125911712646,
-0.04196254909038544,
-0.10212888568639755,
-0.25568529963493347,
0.17956258356571198,
-0.177001491189003,
0.0958302766084671,
0.464085191488266,
-0.04593634605407715,
-0.25962212681770325,
-0.02578958496451378,
-0.3653521239757538,
-0.2095387876033783,
0.2498316615819931,
0.20348535478115082,
-0.10961543023586273,
0.15573090314865112,
0.2807764410972595,
0.5663045048713684,
0.39423975348472595,
-0.04723477363586426,
0.032470040023326874,
0.28812259435653687,
0.0807330384850502,
0.20346608757972717,
-0.462166965007782,
0.4283204972743988,
0.22408822178840637,
0.2149144411087036,
-0.09706719219684601,
-0.06315421313047409,
-0.20139989256858826,
-0.016356822103261948,
-0.37484824657440186,
-0.2838503420352936,
0.012309316545724869,
0.14592693746089935,
-0.01120081078261137,
-0.47725826501846313,
0.5015837550163269,
0.10125920921564102,
0.2848774492740631,
-0.3360569179058075,
-0.1893148273229599,
-0.2721225917339325,
-0.026117078959941864,
-0.06784430146217346,
0.22511589527130127,
0.060258690267801285,
0.22845996916294098,
0.1323879212141037,
0.5546501874923706,
-0.4826957583427429,
0.24118706583976746,
-0.24266104400157928,
0.2789437174797058,
-0.2555553615093231,
-0.10027666389942169,
-0.30281704664230347,
0.409262478351593,
-0.006901176646351814,
-0.19170966744422913,
0.3745426833629608,
-0.33088281750679016,
-0.29556804895401,
0.6019464135169983,
-0.10759922862052917,
0.3654637038707733,
0.2640296518802643,
0.3025880455970764,
0.21526944637298584,
0.1133129820227623,
0.11214599758386612,
-0.16226071119308472,
-0.0897882729768753,
0.029114894568920135,
-0.3479008376598358,
-0.11574835330247879,
-0.044138018041849136,
0.15113158524036407,
-0.291808158159256,
0.5623226165771484,
-0.030791128054261208,
0.18984954059123993,
-0.03889227285981178,
0.3846494257450104,
0.030290210619568825,
-0.2880817651748657,
0.048830993473529816,
0.35432901978492737,
0.34044426679611206,
0.35595861077308655,
-0.20899710059165955,
-0.29187312722206116,
-0.2775610685348511,
0.10475973039865494,
0.4886987507343292,
-0.04193316772580147,
0.11184024810791016,
0.14542049169540405,
0.18294066190719604,
0.3227469027042389,
-0.11104782670736313,
-0.41892489790916443,
-0.02839057147502899,
0.26604747772216797,
-0.3359089493751526,
0.06080802157521248,
0.32845035195350647,
0.17266802489757538,
-0.2116769701242447,
-0.13201135396957397,
0.1879141926765442,
0.26397666335105896,
-0.15897685289382935,
-0.19819647073745728,
-0.40460526943206787
] |
https://github.com/huggingface/datasets/issues/413 | Is there a way to download only NQ dev? | I don't think we could force this behavior generally since the dataset script authors are free to organize the file download as they want (sometimes the mapping between split and files can be very much nontrivial) but we can add an additional configuration for Natural Question indeed as @lhoestq indicate. | Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)?
As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data.
I tried
```
dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner")
```
But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading?
Thanks! | 50 | Is there a way to download only NQ dev?
Maybe I missed that in the docs, but is there a way to only download the dev set of natural questions (~1 GB)?
As we want to benchmark QA models on different datasets, I would like to avoid downloading the 41GB of training data.
I tried
```
dataset = nlp.load_dataset('natural_questions', split="validation", beam_runner="DirectRunner")
```
But this still triggered a big download of presumably the whole dataset. Is there any way of doing this or are splits / slicing options only available after downloading?
Thanks!
I don't think we could force this behavior generally since the dataset script authors are free to organize the file download as they want (sometimes the mapping between split and files can be very much nontrivial) but we can add an additional configuration for Natural Question indeed as @lhoestq indicate. | [
-0.4887264668941498,
0.20523226261138916,
-0.09393593668937683,
0.1260942816734314,
-0.0418890044093132,
-0.10875627398490906,
-0.22859512269496918,
0.6617500185966492,
0.007649540901184082,
0.26699018478393555,
-0.27146783471107483,
0.044538289308547974,
-0.20828090608119965,
0.5945593118667603,
0.44446858763694763,
-0.06466612964868546,
-0.12714216113090515,
0.4709186255931854,
-0.13610784709453583,
-0.006954394280910492,
-0.1744409203529358,
0.15642820298671722,
-0.04274928197264671,
0.039918202906847,
0.2861554026603699,
-0.24353420734405518,
0.18146353960037231,
0.004128061234951019,
-0.356736958026886,
-0.2835056483745575,
0.08663354814052582,
0.275702565908432,
0.2166977822780609,
-0.3432946503162384,
-0.00012686206900980324,
-0.10546550154685974,
0.0004294291138648987,
-0.1328519880771637,
-0.21472075581550598,
0.0927823930978775,
-0.072405606508255,
-0.15838193893432617,
0.16093257069587708,
0.01090247929096222,
-0.08431465178728104,
-0.33488526940345764,
0.2662493586540222,
-0.16320255398750305,
0.37742501497268677,
0.4012566804885864,
-0.0041164010763168335,
0.05484393984079361,
-0.22727790474891663,
0.1745748072862625,
0.01755204051733017,
-0.1025494635105133,
-0.15524378418922424,
0.055836018174886703,
0.190091073513031,
0.07636971026659012,
0.039382465183734894,
0.09632310271263123,
0.24456408619880676,
0.21815001964569092,
0.11716922372579575,
-0.00011792965233325958,
0.3439486622810364,
-0.7146772146224976,
-0.14678966999053955,
0.7247011661529541,
0.25754114985466003,
0.08351114392280579,
-0.12203847616910934,
-0.24184921383857727,
0.1380847543478012,
-0.4262850880622864,
-0.04252723604440689,
0.4883493483066559,
-0.6017988920211792,
0.02793963812291622,
-0.5949158668518066,
-0.5436314940452576,
-0.19212213158607483,
0.21895624697208405,
-0.027262676507234573,
-0.060662686824798584,
0.04578419029712677,
0.055419936776161194,
0.26807624101638794,
0.14333853125572205,
0.15595513582229614,
0.07054971903562546,
-0.06101055070757866,
0.1489272564649582,
-0.19998790323734283,
-0.4450477659702301,
-0.2982940077781677,
-0.09948290139436722,
0.3308861553668976,
0.11282537132501602,
-0.02950328215956688,
0.046254537999629974,
0.001122516579926014,
-0.08760533481836319,
0.49690982699394226,
0.07458999752998352,
0.23534226417541504,
0.2745424807071686,
0.11462894082069397,
0.11126503348350525,
0.08984117209911346,
0.13890933990478516,
0.02435222640633583,
-0.06880082935094833,
-0.6210032105445862,
0.0036770589649677277,
0.07708766311407089,
-0.35948067903518677,
-0.030611323192715645,
-0.2182726263999939,
-0.07736529409885406,
-0.10100415349006653,
-0.1445734202861786,
0.18836909532546997,
0.062461767345666885,
0.0796574205160141,
-0.34897899627685547,
0.32378149032592773,
-0.2918669283390045,
-0.7594255805015564,
-0.1419377475976944,
-0.030981283634901047,
-0.03222531080245972,
0.13054904341697693,
0.4035455882549286,
0.1777426153421402,
0.16234315931797028,
-0.15462316572666168,
-0.008177407085895538,
0.022877097129821777,
0.3501374125480652,
-0.04478598013520241,
0.05216272547841072,
0.3954909145832062,
0.07082568109035492,
0.11984384804964066,
-0.09919743239879608,
0.2762247323989868,
-0.4767388701438904,
0.2121438980102539,
-0.08146395534276962,
-0.3039796054363251,
0.20001466572284698,
0.031273387372493744,
-0.061173196882009506,
0.06190868467092514,
-0.08244980126619339,
0.2958783209323883,
-0.021802812814712524,
-0.261738121509552,
-0.07801400870084763,
-0.18498322367668152,
-0.2660314440727234,
-0.019463498145341873,
0.2815353572368622,
0.05215197801589966,
-0.28769558668136597,
-0.1943800151348114,
-0.042655233293771744,
-0.19538038969039917,
0.24094343185424805,
0.3353291451931,
-0.222153902053833,
0.22082430124282837,
-0.1777200847864151,
0.07270532846450806,
0.6215860843658447,
0.04083504155278206,
-0.21532735228538513,
0.5189725160598755,
-0.12525923550128937,
-0.25804704427719116,
0.009942837059497833,
0.2915630340576172,
0.2015533149242401,
-0.0975811779499054,
-0.3081541359424591,
0.7577162981033325,
-0.13818804919719696,
-0.20855723321437836,
-0.04687316343188286,
-0.5798709988594055,
0.21783491969108582,
0.13115034997463226,
0.16776210069656372,
0.1886201649904251,
-0.021845988929271698,
-0.17703647911548615,
0.23026257753372192,
0.07604089379310608,
0.021076276898384094,
-0.0027037449181079865,
-0.09272637963294983,
-0.4067583680152893,
-0.2314431220293045,
-0.1624528169631958,
-0.586648166179657,
0.19412988424301147,
-0.5578181743621826,
-0.28354412317276,
0.38480669260025024,
-0.13718488812446594,
-0.02031511813402176,
-0.25992363691329956,
0.15404736995697021,
-0.3446824848651886,
-0.10267786681652069,
-0.04580804705619812,
0.15266560018062592,
0.1315486580133438,
-0.3660285770893097,
-0.06223516911268234,
-0.060410525649785995,
0.22070440649986267,
-0.13137264549732208,
-0.17698968946933746,
0.226077601313591,
0.18803001940250397,
0.2558659315109253,
-0.07255270332098007,
-0.10995060950517654,
0.046779096126556396,
0.15136271715164185,
0.17340992391109467,
-0.026258809491991997,
0.09367138147354126,
0.20822888612747192,
-0.00018468499183654785,
0.05925735831260681,
-0.01960347592830658,
-0.029916534200310707,
0.09189598262310028,
-0.2208605855703354,
0.004964686930179596,
-0.25661948323249817,
0.4621090292930603,
-0.2703954577445984,
0.23826810717582703,
-0.031036026775836945,
0.02200176753103733,
0.1374267041683197,
-0.23408746719360352,
0.023477790877223015,
-0.1472923457622528,
0.24135874211788177,
0.12380547821521759,
0.1553199291229248,
-0.0022993311285972595,
-0.13337093591690063,
0.08550204336643219,
0.4147881269454956,
-0.21113623678684235,
-0.11270416527986526,
-0.013723429292440414,
-0.055762387812137604,
-0.09847777336835861,
0.1594364196062088,
0.4292444586753845,
0.3710598349571228,
0.1735149770975113,
0.5662350654602051,
0.04832693934440613,
0.14304539561271667,
-0.3168492317199707,
0.11121583729982376,
-0.01178855448961258,
-0.2532923221588135,
0.03802426904439926,
-0.11881496757268906,
-0.1213262602686882,
-0.2932131290435791,
0.4736107289791107,
0.15290595591068268,
-0.06826816499233246,
-0.09722156822681427,
-0.14104412496089935,
-0.40169557929039,
-0.15072877705097198,
-0.07152479887008667,
0.024220380932092667,
-0.15662114322185516,
-0.20053717494010925,
0.36913973093032837,
-0.12951849400997162,
-0.2382727712392807,
0.17086927592754364,
0.12900935113430023,
0.4911538362503052,
-0.20716248452663422,
-0.32138845324516296,
0.10329724848270416,
0.08763334900140762,
-0.07757272571325302,
0.06066383793950081,
0.15471762418746948,
0.3283352255821228,
0.4007340967655182,
-0.11201100796461105,
-0.16414853930473328,
0.014115091413259506,
0.10654538124799728,
0.05875611677765846,
0.2443150132894516,
0.4849344789981842,
-0.06010317802429199,
0.4556986093521118,
0.05521173030138016,
0.12882335484027863,
-0.4062312841415405,
-0.047339070588350296,
-0.24281631410121918,
-0.11480830609798431,
0.29740452766418457,
0.39795035123825073,
-0.2779555916786194,
-0.7279382348060608,
-0.19251221418380737,
-0.31078165769577026,
0.19715523719787598,
0.03620200976729393,
0.16607126593589783,
-0.02098935842514038,
-0.18015459179878235,
-0.16895057260990143,
-0.4117172360420227,
0.03027230128645897,
-0.04246756061911583,
-0.05584194138646126,
0.24957047402858734,
-0.1656605452299118,
-0.08188861608505249,
0.09859071671962738,
-0.00022065266966819763,
0.1828828901052475,
0.30648159980773926,
-0.7142479419708252,
0.3078976273536682,
-0.08370860666036606,
0.1705636978149414,
-0.062196798622608185,
-0.06927119195461273,
0.42847946286201477,
-0.47041794657707214,
0.02723095752298832,
0.20992043614387512,
0.2742375135421753,
0.11536205559968948,
0.03214016184210777,
0.13455000519752502,
-0.04402965307235718,
0.3096979856491089,
0.038546640425920486,
0.8778749704360962,
0.08455239236354828,
0.2853829264640808,
0.00538114458322525,
0.08231613039970398,
0.3701722323894501,
-0.11148352175951004,
0.34477606415748596,
0.3482345938682556,
0.1952170431613922,
-0.19442379474639893,
0.32634714245796204,
0.0774824395775795,
-0.1878175139427185,
-0.15260033309459686,
-0.010181624442338943,
-0.06751230359077454,
-0.18573498725891113,
0.19856715202331543,
-0.05887454003095627,
0.0681106448173523,
0.22736510634422302,
0.10452107340097427,
0.2960307002067566,
-0.17684578895568848,
-0.13668890297412872,
0.02785947173833847,
0.24566051363945007,
0.12181373685598373,
-0.5731313228607178,
-0.008217253722250462,
-0.2568283975124359,
-0.02316516637802124,
-0.11844062060117722,
0.09144277125597,
-0.20681804418563843,
-0.0856490209698677,
0.2234114408493042,
0.20784543454647064,
0.6067390441894531,
0.0300903357565403,
-0.11003221571445465,
-0.11664989590644836,
-0.2653921842575073,
-0.04573167860507965,
-0.04471362754702568,
0.01030198484659195,
-0.17168205976486206,
0.10646390914916992,
-0.04704342037439346,
-0.288446843624115,
-0.002444236306473613,
0.07867693156003952,
0.3771257996559143,
-0.16410061717033386,
0.08014293760061264,
0.14518283307552338,
0.0664270669221878,
-0.1432058960199356,
0.27438339591026306,
0.022219913080334663,
-0.05825258791446686,
-0.2841440737247467,
-0.17468996345996857,
-0.21786494553089142,
-0.07642733305692673,
0.1868622601032257,
0.07682138681411743,
0.08335433900356293,
0.07665309309959412,
0.2259196639060974,
0.07862041145563126,
-0.205581933259964,
-0.204672709107399,
0.2767512798309326,
-0.0017920099198818207,
-0.09849715232849121,
-0.13953480124473572,
-0.02812463790178299,
0.1536058634519577,
0.4546089768409729,
-0.19220659136772156,
-0.2828112840652466,
-0.016730941832065582,
0.08934304118156433,
-0.022337939590215683,
0.4292803108692169,
0.03981407731771469,
-0.4462186396121979,
-0.21012109518051147,
-0.2589489817619324,
0.37324240803718567,
0.19459787011146545,
-0.20554041862487793,
0.21449777483940125,
0.0013382434844970703,
-0.028261257335543633,
-0.24728794395923615,
0.2591450810432434,
0.9118396639823914,
-0.23268349468708038,
0.26717016100883484,
0.14728575944900513,
-0.37790215015411377,
0.822144627571106,
-0.42444831132888794,
0.07802516967058182,
-0.17481251060962677,
-0.1513875275850296,
-0.13845252990722656,
-0.20455528795719147,
-0.10359921306371689,
0.3686380982398987,
0.03928029164671898,
0.47705313563346863,
0.08915290236473083,
-0.014478310942649841,
0.07208111882209778,
0.06884890794754028,
0.09403219074010849,
0.03311191126704216,
0.061082858592271805,
-0.06438714265823364,
-0.32213902473449707,
0.10720120370388031,
-0.021354366093873978,
-0.0748220756649971,
0.18518570065498352,
-0.0554802268743515,
-0.02908424288034439,
0.05745997279882431,
-0.1575430929660797,
-0.28272706270217896,
-0.20143811404705048,
-0.23881281912326813,
-0.041556812822818756,
0.7085378766059875,
0.13107281923294067,
0.140322744846344,
-0.3597531318664551,
0.2176436334848404,
-0.13326331973075867,
0.06539660692214966,
0.07041852176189423,
0.05256013944745064,
-0.1054481565952301,
-0.16836518049240112,
0.14066898822784424,
0.01203129068017006,
-0.16349808871746063,
0.13788780570030212,
-0.38867127895355225,
0.2521442174911499,
0.15313467383384705,
-0.21981695294380188,
-0.12753444910049438,
-0.12290053069591522,
0.329539030790329,
-0.004690244793891907,
0.009553992189466953,
0.09613243490457535,
-0.16931845247745514,
0.013012725859880447,
0.14826984703540802,
-0.32367539405822754,
-0.138008713722229,
0.25225239992141724,
0.38616684079170227,
-0.22822250425815582,
0.30952948331832886,
-0.19061532616615295,
-0.050405554473400116,
-0.29352670907974243,
0.032229967415332794,
-0.007193880155682564,
-0.372509628534317,
0.1485249549150467,
-0.04614020138978958,
-0.19848953187465668,
-0.056062519550323486,
0.20994292199611664,
-0.07735833525657654,
-0.12132153660058975,
0.08208873867988586,
-0.1997181475162506,
-0.024431420490145683,
0.19568085670471191,
-0.4095671772956848,
0.4032942056655884,
0.19597947597503662,
-0.32305872440338135,
-0.11458505690097809,
0.5872233510017395,
-0.08532121777534485,
0.03327938914299011,
0.016955113038420677,
0.2204609215259552,
-0.2670641243457794,
0.282304972410202,
0.029355818405747414,
0.10788008570671082,
-0.1735435277223587,
-0.09706880152225494,
-0.2927984297275543,
-0.055104028433561325,
-0.023579582571983337,
0.21119163930416107,
-0.04216744750738144,
0.15566104650497437,
0.282437801361084,
-0.07815983146429062,
-0.15797781944274902,
0.0044936444610357285,
0.10345731675624847,
-0.4241889417171478,
0.24486012756824493,
0.19579850137233734,
0.596869945526123,
0.214834064245224,
-0.44981521368026733,
0.4909950792789459,
-0.20029833912849426,
0.44677895307540894,
-0.012262746691703796,
0.17215634882450104,
0.01152293011546135,
-0.19017836451530457,
-0.4182383716106415,
-0.104305200278759,
0.3986247181892395,
0.03690505027770996,
-0.12611228227615356,
0.08974862098693848,
0.04163321480154991,
-0.31170836091041565,
0.152830570936203,
0.7208673357963562,
-0.16707763075828552,
0.02773691527545452,
0.30302098393440247,
0.07332809269428253,
-0.011628281325101852,
-0.08673086017370224,
0.20755217969417572,
-0.03282873332500458,
-0.217564195394516,
0.32945555448532104,
-0.006804186850786209,
-0.29576605558395386,
0.41661494970321655,
-0.06366637349128723,
-0.09695445001125336,
-0.11668917536735535,
0.02632972039282322,
0.5689671039581299,
-0.2224670648574829,
-0.28025344014167786,
-0.15252834558486938,
0.1486293524503708,
0.043191514909267426,
0.345172643661499,
-0.3122246265411377,
0.24791091680526733,
0.4005112946033478,
0.20871837437152863,
-0.0269351527094841,
-0.24414145946502686,
-0.2748733162879944,
0.5230003595352173,
0.11043054610490799,
0.03366667032241821,
-0.00031066685914993286,
0.24383628368377686,
0.1401626467704773,
-0.24168634414672852,
-0.3140130341053009,
0.13847026228904724,
0.19269874691963196,
0.0025465330109000206,
-0.20522440969944,
-0.028044790029525757,
-0.09560401737689972,
0.32129785418510437,
-0.11872811615467072,
-0.42511481046676636,
-0.13087649643421173,
0.30257269740104675,
-0.16115660965442657,
-0.08120110630989075,
0.37394434213638306,
-0.07128426432609558,
-0.13488849997520447,
-0.2602093815803528,
0.18980476260185242,
-0.18483884632587433,
0.17203930020332336,
0.4114938974380493,
-0.04625784605741501,
-0.22668391466140747,
-0.04556974023580551,
-0.36242175102233887,
-0.21696755290031433,
0.2848593592643738,
0.17282110452651978,
-0.23726457357406616,
0.1584550142288208,
0.20723861455917358,
0.5742632150650024,
0.42488330602645874,
-0.01929735392332077,
0.04645887017250061,
0.2571295201778412,
0.11050926148891449,
0.10291728377342224,
-0.4459001421928406,
0.41968780755996704,
0.21573860943317413,
0.2236369252204895,
-0.07750143110752106,
-0.07799423485994339,
-0.26161256432533264,
-0.01335774827748537,
-0.3012208640575409,
-0.2348339855670929,
0.060570210218429565,
0.11346922069787979,
-0.017812153324484825,
-0.4746330678462982,
0.46370550990104675,
0.047307394444942474,
0.17859715223312378,
-0.31770259141921997,
-0.15255823731422424,
-0.2793528139591217,
-0.02106880396604538,
-0.13260924816131592,
0.14126472175121307,
-0.011448053643107414,
0.20953910052776337,
0.12402568757534027,
0.5167965888977051,
-0.49973875284194946,
0.21419990062713623,
-0.22744838893413544,
0.363653302192688,
-0.233395516872406,
-0.16725637018680573,
-0.3186061382293701,
0.44817090034484863,
0.007924210280179977,
-0.2858371436595917,
0.3640497028827667,
-0.2809886038303375,
-0.2817651033401489,
0.6151067614555359,
-0.07632217556238174,
0.35831692814826965,
0.20112591981887817,
0.26341497898101807,
0.24813295900821686,
0.19293098151683807,
0.06720766425132751,
-0.11275717616081238,
-0.09850333631038666,
0.10258070379495621,
-0.4266872704029083,
-0.11899536103010178,
-0.0869918167591095,
0.10524146258831024,
-0.36758163571357727,
0.5479365587234497,
0.01556740514934063,
0.10999029874801636,
-0.09314669668674469,
0.4020735025405884,
0.07516644150018692,
-0.2500087022781372,
0.08309634774923325,
0.3318130671977997,
0.36810120940208435,
0.33397188782691956,
-0.19865161180496216,
-0.3193086087703705,
-0.20466601848602295,
0.03016713447868824,
0.4539536237716675,
0.025094687938690186,
0.08544021844863892,
0.06984607130289078,
0.2511938810348511,
0.2723044753074646,
-0.07052545249462128,
-0.2877122759819031,
0.015435680747032166,
0.24938249588012695,
-0.3803717792034149,
0.04412979260087013,
0.38943302631378174,
0.1632058024406433,
-0.21417146921157837,
-0.1160929799079895,
0.22652217745780945,
0.3127981424331665,
-0.21677754819393158,
-0.2701514959335327,
-0.41537702083587646
] |
https://github.com/huggingface/datasets/issues/412 | Unable to load XTREME dataset from disk | Hi @lewtun, you have to provide the full path to the downloaded file for example `/home/lewtum/..` | Hi 🤗 team!
## Description of the problem
Following the [docs](https://huggingface.co/nlp/loading_datasets.html?highlight=xtreme#manually-downloading-files) I'm trying to load the `PAN-X.fr` dataset from the [XTREME](https://github.com/google-research/xtreme) benchmark.
I have manually downloaded the `AmazonPhotos.zip` file from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) and am running into a `FileNotFoundError` when I point to the location of the dataset.
As far as I can tell, the problem is that `AmazonPhotos.zip` decompresses to `panx_dataset` and `load_dataset()` is not looking in the correct path:
```
# path where load_dataset is looking for fr.tar.gz
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/
# path where it actually exists
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/panx_dataset/
```
## Steps to reproduce the problem
1. Manually download the XTREME benchmark from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1)
2. Run the following code snippet
```python
from nlp import load_dataset
# AmazonPhotos.zip is in the root of the folder
dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
```
3. Here is the stack trace
```
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-4-26786bb5fa93> in <module>
----> 1 dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
/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)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
/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)
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
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
464 split_dict = SplitDict(dataset_name=self.name)
465 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 466 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
467 # Checksums verification
468 if verify_infos:
/usr/local/lib/python3.6/dist-packages/nlp/datasets/xtreme/b8c2ed3583a7a7ac60b503576dfed3271ac86757628897e945bd329c43b8a746/xtreme.py in _split_generators(self, dl_manager)
725 panx_dl_dir = dl_manager.extract(panx_path)
726 lang = self.config.name.split(".")[1]
--> 727 lang_folder = dl_manager.extract(os.path.join(panx_dl_dir, lang + ".tar.gz"))
728 return [
729 nlp.SplitGenerator(
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in extract(self, path_or_paths)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_tuple)
170 return tuple(mapped)
171 # Singleton
--> 172 return function(data_struct)
173
174
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in <lambda>(path)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
203 elif urlparse(url_or_filename).scheme == "":
204 # File, but it doesn't exist.
--> 205 raise FileNotFoundError("Local file {} doesn't exist".format(url_or_filename))
206 else:
207 # Something unknown
FileNotFoundError: Local file /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/fr.tar.gz doesn't exist
```
## OS and hardware
```
- `nlp` version: 0.3.0
- Platform: Linux-4.15.0-72-generic-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyTorch version (GPU?): 1.4.0 (True)
- Tensorflow version (GPU?): 2.1.0 (True)
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
``` | 16 | Unable to load XTREME dataset from disk
Hi 🤗 team!
## Description of the problem
Following the [docs](https://huggingface.co/nlp/loading_datasets.html?highlight=xtreme#manually-downloading-files) I'm trying to load the `PAN-X.fr` dataset from the [XTREME](https://github.com/google-research/xtreme) benchmark.
I have manually downloaded the `AmazonPhotos.zip` file from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) and am running into a `FileNotFoundError` when I point to the location of the dataset.
As far as I can tell, the problem is that `AmazonPhotos.zip` decompresses to `panx_dataset` and `load_dataset()` is not looking in the correct path:
```
# path where load_dataset is looking for fr.tar.gz
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/
# path where it actually exists
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/panx_dataset/
```
## Steps to reproduce the problem
1. Manually download the XTREME benchmark from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1)
2. Run the following code snippet
```python
from nlp import load_dataset
# AmazonPhotos.zip is in the root of the folder
dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
```
3. Here is the stack trace
```
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-4-26786bb5fa93> in <module>
----> 1 dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
/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)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
/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)
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
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
464 split_dict = SplitDict(dataset_name=self.name)
465 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 466 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
467 # Checksums verification
468 if verify_infos:
/usr/local/lib/python3.6/dist-packages/nlp/datasets/xtreme/b8c2ed3583a7a7ac60b503576dfed3271ac86757628897e945bd329c43b8a746/xtreme.py in _split_generators(self, dl_manager)
725 panx_dl_dir = dl_manager.extract(panx_path)
726 lang = self.config.name.split(".")[1]
--> 727 lang_folder = dl_manager.extract(os.path.join(panx_dl_dir, lang + ".tar.gz"))
728 return [
729 nlp.SplitGenerator(
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in extract(self, path_or_paths)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_tuple)
170 return tuple(mapped)
171 # Singleton
--> 172 return function(data_struct)
173
174
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in <lambda>(path)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
203 elif urlparse(url_or_filename).scheme == "":
204 # File, but it doesn't exist.
--> 205 raise FileNotFoundError("Local file {} doesn't exist".format(url_or_filename))
206 else:
207 # Something unknown
FileNotFoundError: Local file /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/fr.tar.gz doesn't exist
```
## OS and hardware
```
- `nlp` version: 0.3.0
- Platform: Linux-4.15.0-72-generic-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyTorch version (GPU?): 1.4.0 (True)
- Tensorflow version (GPU?): 2.1.0 (True)
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
Hi @lewtun, you have to provide the full path to the downloaded file for example `/home/lewtum/..` | [
-0.2940952777862549,
-0.383517861366272,
-0.00217372365295887,
0.6607134938240051,
0.14834463596343994,
0.12387915700674057,
-0.17308883368968964,
0.1085539311170578,
0.1807117760181427,
0.0440966859459877,
-0.1427532583475113,
-0.00034507003147155046,
0.13833560049533844,
-0.029191311448812485,
0.16312193870544434,
-0.13893632590770721,
-0.005091473460197449,
-0.10926389694213867,
-0.04557424783706665,
0.0021929293870925903,
-0.33347490429878235,
0.38261666893959045,
-0.12323233485221863,
-0.015835687518119812,
-0.3343704342842102,
0.01526944525539875,
0.052525006234645844,
0.6103966236114502,
-0.22044400870800018,
-0.04907545447349548,
0.4548058807849884,
-0.13804180920124054,
0.41930320858955383,
0.716667652130127,
-0.00012068087380612269,
0.03627219796180725,
0.1372581571340561,
-0.18045155704021454,
-0.1188206821680069,
-0.5258263945579529,
-0.3079933226108551,
-0.13045719265937805,
-0.05789574980735779,
-0.12726864218711853,
-0.0723707526922226,
0.00139631237834692,
0.13070107996463776,
-0.5407083034515381,
0.4081200361251831,
0.10792391747236252,
0.105806864798069,
0.2785443365573883,
0.05261385068297386,
-0.07740029692649841,
0.22054550051689148,
0.16301891207695007,
-0.32615599036216736,
0.009836992248892784,
0.3490774929523468,
0.1568451076745987,
0.08900941163301468,
0.3036375343799591,
0.0028807315975427628,
0.04164914786815643,
0.4682086110115051,
-0.025537613779306412,
0.16320988535881042,
-0.285840779542923,
0.0740048736333847,
0.30273202061653137,
0.5413934588432312,
-0.17661070823669434,
-0.45512691140174866,
-0.1600835621356964,
-0.08777952194213867,
-0.2420940101146698,
0.35714617371559143,
0.2817618250846863,
-0.14291837811470032,
-0.004444330930709839,
-0.29094019532203674,
-0.19553478062152863,
-0.1650933027267456,
0.16105136275291443,
-0.06677926331758499,
0.16237188875675201,
-0.2162117213010788,
0.002034217119216919,
0.374141126871109,
0.045092079788446426,
0.2139795422554016,
-0.06313327699899673,
-0.10904094576835632,
0.11569786071777344,
-0.2318338304758072,
0.2371390461921692,
-0.14041459560394287,
-0.03139611333608627,
0.23789075016975403,
0.1972266137599945,
0.023154359310865402,
0.18336442112922668,
-0.020007994025945663,
0.15905827283859253,
0.22425125539302826,
0.2844464182853699,
0.24085953831672668,
-0.07524433732032776,
0.01278701052069664,
0.18078364431858063,
0.006231363862752914,
-0.19931533932685852,
-0.15594321489334106,
-0.20164932310581207,
-0.13806390762329102,
-0.09382035583257675,
0.11763665080070496,
-0.3426389992237091,
-0.5313273072242737,
-0.07015430927276611,
-0.09447778761386871,
0.010748788714408875,
0.235674649477005,
0.2389829158782959,
0.09938028454780579,
0.007656265050172806,
0.08231830596923828,
0.3665463328361511,
-0.3185618817806244,
-0.0045808604918420315,
-0.20311564207077026,
0.20443929731845856,
-0.388656884431839,
0.2901449203491211,
0.16030952334403992,
-0.08145733177661896,
0.3730151057243347,
-0.11436527967453003,
0.32601457834243774,
-0.3670960068702698,
0.04246074706315994,
-0.06470657140016556,
-0.03823574632406235,
0.08228537440299988,
0.23622047901153564,
0.16142430901527405,
0.10860675573348999,
-0.006718840450048447,
-0.11877859383821487,
0.14366285502910614,
-0.40557533502578735,
-0.12714314460754395,
-0.07954483479261398,
0.03333611041307449,
-0.4040100574493408,
0.01824374310672283,
-0.6510802507400513,
-0.16833318769931793,
-0.27029064297676086,
0.03322454169392586,
-0.025217361748218536,
0.04184180498123169,
-0.1289663463830948,
-0.07620865851640701,
0.2826346755027771,
0.48704254627227783,
-0.18085692822933197,
-0.03521312028169632,
-0.209054097533226,
-0.1099223643541336,
0.08131921291351318,
0.15743231773376465,
-0.23717442154884338,
0.08770602196455002,
-0.44718289375305176,
0.3432365655899048,
0.26038092374801636,
-0.6826913952827454,
-0.29034993052482605,
0.32645395398139954,
-0.2940927743911743,
0.24178771674633026,
0.08077796548604965,
0.06210663169622421,
-0.21419192850589752,
-0.08567477017641068,
0.17384329438209534,
0.17709115147590637,
0.13799047470092773,
-0.09980170428752899,
-0.2131125032901764,
-0.16815683245658875,
-0.1904788762331009,
0.33219391107559204,
-0.013252828270196915,
-0.08989440649747849,
0.11145444214344025,
-0.018651079386472702,
0.10930930078029633,
-0.13748568296432495,
-0.12677818536758423,
0.5887781381607056,
0.07426457852125168,
-0.040152281522750854,
-0.18890897929668427,
0.060748085379600525,
-0.691290557384491,
0.315778911113739,
-0.26303982734680176,
-0.23664602637290955,
-0.08977657556533813,
0.10724353790283203,
-0.3324472904205322,
-0.09075063467025757,
-0.342175155878067,
-0.17736342549324036,
-0.03209372237324715,
0.14239756762981415,
-0.003950761631131172,
-0.1507626175880432,
-0.2373906522989273,
0.3739418387413025,
0.03380465507507324,
0.10042348504066467,
-0.5817273855209351,
0.2664703130722046,
0.18917125463485718,
-0.03668949007987976,
-0.008081100881099701,
0.029506519436836243,
0.24494010210037231,
-0.30187174677848816,
0.011071603745222092,
0.5150933861732483,
0.015789275988936424,
0.3034428656101227,
0.34143632650375366,
0.06788242608308792,
0.21833552420139313,
-0.474691778421402,
0.17063719034194946,
0.12616808712482452,
-0.05022529885172844,
-0.0008380785584449768,
-0.35325899720191956,
0.47185778617858887,
-0.19586601853370667,
-0.03601352125406265,
-0.07293423265218735,
-0.15648870170116425,
0.1472141444683075,
-0.11021611094474792,
-0.11814016103744507,
-0.10237210243940353,
0.3790087401866913,
0.19717909395694733,
0.2383923977613449,
-0.16361004114151,
-0.11515074968338013,
-0.1355726420879364,
-0.07877469062805176,
0.01917155459523201,
0.001240469515323639,
0.031922902911901474,
-0.26283904910087585,
0.11231433600187302,
-0.034936271607875824,
0.40339645743370056,
0.415117084980011,
0.15246394276618958,
0.023350674659013748,
-0.02732866443693638,
-0.041436340659856796,
-0.07648947089910507,
0.03186694532632828,
0.011048443615436554,
0.10943273454904556,
0.16492009162902832,
-0.3268110752105713,
-0.05431963875889778,
-0.36686351895332336,
-0.10840100049972534,
0.10832198709249496,
0.09499816596508026,
-0.35447797179222107,
0.02585657872259617,
-0.17411501705646515,
-0.38957080245018005,
-0.10250087082386017,
0.15973138809204102,
-0.21198201179504395,
-0.297492653131485,
-0.12243019044399261,
0.5138399004936218,
0.2439618706703186,
-0.03323657810688019,
-0.32287049293518066,
0.055156558752059937,
-0.1608923226594925,
-0.5349493622779846,
-0.22960613667964935,
0.2254982441663742,
-0.02984866499900818,
-0.037925973534584045,
0.39406055212020874,
0.17755155265331268,
0.06346935033798218,
-0.3751942217350006,
0.43787938356399536,
-0.5723704695701599,
-0.1013900488615036,
0.15361987054347992,
-0.17764464020729065,
0.4700741469860077,
-0.12343338131904602,
0.17391648888587952,
-0.4125462770462036,
0.07374519109725952,
0.26227033138275146,
-0.14359886944293976,
-0.07257600128650665,
-0.010824847035109997,
0.05826568230986595,
-0.17177124321460724,
0.10299913585186005,
-0.15504354238510132,
-0.08348741382360458,
-0.22855828702449799,
-0.06051991879940033,
0.026968572288751602,
0.003947541117668152,
0.14304137229919434,
0.01217359583824873,
0.052641235291957855,
0.002111296635121107,
-0.2169024646282196,
-0.2150433510541916,
-0.9191769361495972,
0.48212888836860657,
-0.1535043865442276,
-0.28485825657844543,
0.371545672416687,
0.173071026802063,
0.2463560700416565,
0.2914629578590393,
-0.4455311894416809,
-0.17484422028064728,
0.10034247487783432,
0.1766919195652008,
0.07965444028377533,
0.028543556109070778,
0.2198375016450882,
-0.20395590364933014,
0.07813805341720581,
-0.1340859830379486,
-0.30674493312835693,
-0.07130587846040726,
0.18570604920387268,
0.6754618287086487,
-0.09100925922393799,
0.015538014471530914,
0.030508872121572495,
0.48124033212661743,
0.08225719630718231,
0.21683762967586517,
0.4140937626361847,
-0.10537882894277573,
0.3446893095970154,
-0.08478166908025742,
-0.1683695912361145,
-0.20165930688381195,
-0.12537842988967896,
0.03460071235895157,
0.038846008479595184,
0.319781631231308,
0.10899970680475235,
-0.28266018629074097,
0.2524099349975586,
-0.3590713441371918,
-0.24997621774673462,
0.07911022752523422,
0.15070408582687378,
0.14391237497329712,
-0.027168789878487587,
0.29440218210220337,
-0.1495237797498703,
-0.14233079552650452,
0.047216713428497314,
0.3464933931827545,
0.4332346022129059,
0.20162566006183624,
-0.33571121096611023,
0.28216931223869324,
-0.2268449366092682,
0.4784913659095764,
0.07362394779920578,
0.17186813056468964,
-0.09290994703769684,
0.04142337292432785,
0.19558969140052795,
-0.08779430389404297,
0.3791082501411438,
-0.08124443143606186,
0.15484938025474548,
0.009051572531461716,
-0.37388789653778076,
-0.32681000232696533,
0.023585360497236252,
0.04028986766934395,
0.15631736814975739,
-0.01538139209151268,
0.5480807423591614,
-0.2565804719924927,
-0.31506526470184326,
-0.20974820852279663,
0.13904859125614166,
-0.07422639429569244,
-0.1340295672416687,
-0.27351635694503784,
-0.5143994688987732,
-0.07183884084224701,
-0.29559096693992615,
0.1968686580657959,
0.2673872113227844,
0.31725192070007324,
0.2283359318971634,
-0.10423523187637329,
-0.04284004867076874,
0.3793020248413086,
0.004214128479361534,
0.652935266494751,
-0.1743398755788803,
0.03549247607588768,
0.42523106932640076,
-0.11782428622245789,
0.2531477212905884,
0.6561620235443115,
0.11082130670547485,
-0.1297163963317871,
0.26633310317993164,
-0.05171646550297737,
-0.12951397895812988,
0.32734590768814087,
0.0207965150475502,
-0.3362398147583008,
-0.052603013813495636,
-0.0299212783575058,
-0.13729745149612427,
0.010417947545647621,
0.32011866569519043,
-0.03676122799515724,
-0.167083278298378,
-0.0699450746178627,
0.5326877236366272,
0.2755143344402313,
0.16868539154529572,
0.30961960554122925,
0.09793530404567719,
-0.15163765847682953,
-0.23301948606967926,
0.18752339482307434,
1.0363696813583374,
-0.1817588210105896,
0.13487592339515686,
0.23657599091529846,
0.14354589581489563,
-0.029545841738581657,
-0.25700563192367554,
0.3308090567588806,
-0.2593771815299988,
-0.39658883213996887,
-0.25396665930747986,
-0.14133727550506592,
0.24864476919174194,
0.09211227297782898,
0.3186843693256378,
0.2940900921821594,
0.14416445791721344,
0.010918144136667252,
0.04235009104013443,
-0.01921924389898777,
-0.2817929983139038,
-0.3109997808933258,
-0.5007683038711548,
0.06260761618614197,
-0.04109504073858261,
0.5804387331008911,
-0.1612381935119629,
-0.1279444843530655,
-0.18903638422489166,
-0.030287131667137146,
-0.03705846890807152,
0.3009277880191803,
-0.23470439016819,
0.1349930763244629,
-0.044240791350603104,
-0.49342262744903564,
-0.1455712765455246,
0.44561752676963806,
0.08575043082237244,
-0.2637134790420532,
-0.2606281340122223,
0.3505086898803711,
-0.07311875373125076,
-0.19286894798278809,
0.01797536015510559,
-0.10910800099372864,
-0.1411276012659073,
-0.15127862989902496,
0.13498440384864807,
-0.08414380997419357,
-0.14231924712657928,
-0.35683196783065796,
-0.27012374997138977,
-0.06699681282043457,
-0.27996742725372314,
-0.045484185218811035,
-0.26465898752212524,
0.05238185450434685,
0.04304466024041176,
-0.020229695364832878,
0.04396853595972061,
0.15057384967803955,
-0.11828023940324783,
0.02647934854030609,
0.11949335038661957,
-0.43093642592430115,
-0.027901574969291687,
0.5984718799591064,
-0.3182871341705322,
-0.21648171544075012,
0.2697499990463257,
0.1841868907213211,
0.04735790938138962,
-0.13907140493392944,
0.3956477642059326,
0.37429097294807434,
-0.5853357315063477,
0.017213214188814163,
-0.13103558123111725,
0.20623047649860382,
0.09364957362413406,
0.28696197271347046,
0.4050014019012451,
-0.405505895614624,
0.22945167124271393,
-0.4906131625175476,
-0.022133229300379753,
0.37665826082229614,
-0.030695293098688126,
0.28284838795661926,
-0.02574458345770836,
-0.2261561006307602,
0.131886288523674,
-0.3666858375072479,
-0.22439223527908325,
0.39640265703201294,
-0.030992455780506134,
-0.051342129707336426,
0.27654093503952026,
0.10922008752822876,
0.528856635093689,
0.06099766120314598,
0.0577789768576622,
0.21887530386447906,
-0.2673535943031311,
-0.04220905900001526,
0.07026880979537964,
0.1751423329114914,
0.03115355223417282,
-0.18658602237701416,
0.01880771294236183,
-0.14554500579833984,
-0.08651569485664368,
-0.024734873324632645,
0.1848335862159729,
0.3872484862804413,
0.030788615345954895,
-0.14748001098632812,
-0.10982923209667206,
0.16634760797023773,
-0.47092700004577637,
0.1061931848526001,
0.1898028552532196,
0.49242931604385376,
0.021268628537654877,
-0.023613177239894867,
-0.0951867625117302,
-0.08877988159656525,
-0.32380709052085876,
-0.0843958929181099,
0.28941670060157776,
0.2882053852081299,
0.3363099992275238,
-0.36052197217941284,
0.3339120149612427,
0.18498429656028748,
0.22670966386795044,
0.36623507738113403,
-0.2820642590522766,
0.11081920564174652,
0.03159203380346298,
0.12503884732723236,
-0.026920823380351067,
-0.11273524165153503,
0.10835006833076477,
-0.08160191774368286,
-0.10202345997095108,
0.38890329003334045,
0.19933214783668518,
0.2852798402309418,
0.206814244389534,
-0.02221805416047573,
0.7002962231636047,
-0.04790710657835007,
0.22965161502361298,
0.4015389382839203,
-0.0840393453836441,
0.14039279520511627,
0.2540929913520813,
0.3396311402320862,
0.11655481159687042,
0.40726369619369507,
-0.2131439447402954,
0.5100001096725464,
-0.07043210417032242,
0.4083871841430664,
-0.38913777470588684,
-0.4278741180896759,
-0.225972518324852,
0.2799413800239563,
0.17639540135860443,
0.18061141669750214,
-0.2744506001472473,
0.2971874475479126,
-0.49491816759109497,
-0.01474836841225624,
-0.420529305934906,
0.15461494028568268,
-0.06688902527093887,
0.0183825995773077,
-0.263599693775177,
-0.37217816710472107,
-0.1487559825181961,
0.048796605318784714,
-0.1414865255355835,
-0.15301741659641266,
-0.03988651931285858,
0.07943610846996307,
-0.04562099277973175,
0.08262793719768524,
-0.1365239918231964,
0.2178894579410553,
-0.049419574439525604,
-0.17005212604999542,
0.4847484827041626,
0.07236351817846298,
-0.014322198927402496,
0.21670210361480713,
0.20186872780323029,
0.18447233736515045,
0.06987669318914413,
-0.10044942796230316,
-0.11658798158168793,
0.20178252458572388,
-0.04673558473587036,
0.14672714471817017,
0.09841907769441605,
-0.019898362457752228,
0.04051944240927696,
0.2966161370277405,
0.16196231544017792,
-0.05738839507102966,
0.1973590850830078,
-0.07399614155292511,
0.30937644839286804,
-0.046078160405159,
0.02770569920539856,
-0.40949350595474243,
0.15801554918289185,
-0.15108820796012878,
-0.21761292219161987,
-0.10510656237602234,
-0.16550682485103607,
0.09248831868171692,
-0.1326872855424881,
0.00626727007329464,
0.24565739929676056,
0.01795346289873123,
0.0025495290756225586,
0.2727976143360138,
0.4918941259384155,
-0.26443132758140564,
-0.5227891206741333,
-0.2552605867385864,
-0.7857867479324341,
0.15712910890579224,
-0.03276075795292854,
-0.23474553227424622,
0.045614589005708694,
0.16287191212177277,
-0.06560593098402023,
0.215009868144989,
0.3023926019668579,
-0.08052713423967361,
0.3330075740814209,
0.30208760499954224,
-0.2846808135509491,
-0.03184623643755913,
0.21751055121421814,
0.09619194269180298,
-0.05528499186038971,
-0.2977226972579956,
-0.009798329323530197,
0.1965624839067459,
-0.07209828495979309,
-0.0004327688366174698,
0.0005195513367652893,
-0.30384451150894165,
-0.2595990300178528,
0.34663712978363037,
-0.12836256623268127,
0.23551148176193237,
0.006928715854883194,
-0.3553106188774109,
-0.2619476318359375,
-0.2585625648498535,
0.10818423330783844,
0.08175793290138245,
0.09719283133745193,
0.4771685302257538,
-0.087629035115242,
0.12166395783424377,
-0.5112358927726746,
0.2954389154911041,
0.142530620098114,
-0.0016414154088124633,
-0.3504883646965027,
0.10026152431964874,
-0.2921202778816223,
0.05132031440734863,
0.28853580355644226,
0.3758068382740021,
0.0382818728685379,
0.3379184305667877,
-0.14137674868106842,
-0.18742388486862183,
0.47193020582199097,
0.005781463347375393,
-0.14038357138633728,
0.29020342230796814,
0.06007436662912369,
0.23427575826644897,
-0.14330129325389862,
-0.3426618278026581,
0.25602012872695923,
0.08228486031293869,
0.024347243830561638,
-0.005571654066443443,
-0.01575528457760811,
-0.2069304883480072,
-0.19930973649024963,
0.14981979131698608,
0.23564152419567108,
0.108083575963974,
-0.16975010931491852,
0.15471859276294708,
0.048286713659763336
] |
https://github.com/huggingface/datasets/issues/412 | Unable to load XTREME dataset from disk | I was able to repro. Opening a PR to fix that.
Thanks for reporting this issue ! | Hi 🤗 team!
## Description of the problem
Following the [docs](https://huggingface.co/nlp/loading_datasets.html?highlight=xtreme#manually-downloading-files) I'm trying to load the `PAN-X.fr` dataset from the [XTREME](https://github.com/google-research/xtreme) benchmark.
I have manually downloaded the `AmazonPhotos.zip` file from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) and am running into a `FileNotFoundError` when I point to the location of the dataset.
As far as I can tell, the problem is that `AmazonPhotos.zip` decompresses to `panx_dataset` and `load_dataset()` is not looking in the correct path:
```
# path where load_dataset is looking for fr.tar.gz
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/
# path where it actually exists
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/panx_dataset/
```
## Steps to reproduce the problem
1. Manually download the XTREME benchmark from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1)
2. Run the following code snippet
```python
from nlp import load_dataset
# AmazonPhotos.zip is in the root of the folder
dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
```
3. Here is the stack trace
```
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-4-26786bb5fa93> in <module>
----> 1 dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
/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)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
/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)
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
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
464 split_dict = SplitDict(dataset_name=self.name)
465 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 466 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
467 # Checksums verification
468 if verify_infos:
/usr/local/lib/python3.6/dist-packages/nlp/datasets/xtreme/b8c2ed3583a7a7ac60b503576dfed3271ac86757628897e945bd329c43b8a746/xtreme.py in _split_generators(self, dl_manager)
725 panx_dl_dir = dl_manager.extract(panx_path)
726 lang = self.config.name.split(".")[1]
--> 727 lang_folder = dl_manager.extract(os.path.join(panx_dl_dir, lang + ".tar.gz"))
728 return [
729 nlp.SplitGenerator(
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in extract(self, path_or_paths)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_tuple)
170 return tuple(mapped)
171 # Singleton
--> 172 return function(data_struct)
173
174
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in <lambda>(path)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
203 elif urlparse(url_or_filename).scheme == "":
204 # File, but it doesn't exist.
--> 205 raise FileNotFoundError("Local file {} doesn't exist".format(url_or_filename))
206 else:
207 # Something unknown
FileNotFoundError: Local file /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/fr.tar.gz doesn't exist
```
## OS and hardware
```
- `nlp` version: 0.3.0
- Platform: Linux-4.15.0-72-generic-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyTorch version (GPU?): 1.4.0 (True)
- Tensorflow version (GPU?): 2.1.0 (True)
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
``` | 17 | Unable to load XTREME dataset from disk
Hi 🤗 team!
## Description of the problem
Following the [docs](https://huggingface.co/nlp/loading_datasets.html?highlight=xtreme#manually-downloading-files) I'm trying to load the `PAN-X.fr` dataset from the [XTREME](https://github.com/google-research/xtreme) benchmark.
I have manually downloaded the `AmazonPhotos.zip` file from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1) and am running into a `FileNotFoundError` when I point to the location of the dataset.
As far as I can tell, the problem is that `AmazonPhotos.zip` decompresses to `panx_dataset` and `load_dataset()` is not looking in the correct path:
```
# path where load_dataset is looking for fr.tar.gz
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/
# path where it actually exists
/root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/panx_dataset/
```
## Steps to reproduce the problem
1. Manually download the XTREME benchmark from [here](https://www.amazon.com/clouddrive/share/d3KGCRCIYwhKJF0H3eWA26hjg2ZCRhjpEQtDL70FSBN?_encoding=UTF8&%2AVersion%2A=1&%2Aentries%2A=0&mgh=1)
2. Run the following code snippet
```python
from nlp import load_dataset
# AmazonPhotos.zip is in the root of the folder
dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
```
3. Here is the stack trace
```
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-4-26786bb5fa93> in <module>
----> 1 dataset = load_dataset("xtreme", "PAN-X.fr", data_dir='./')
/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)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
/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)
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
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
464 split_dict = SplitDict(dataset_name=self.name)
465 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 466 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
467 # Checksums verification
468 if verify_infos:
/usr/local/lib/python3.6/dist-packages/nlp/datasets/xtreme/b8c2ed3583a7a7ac60b503576dfed3271ac86757628897e945bd329c43b8a746/xtreme.py in _split_generators(self, dl_manager)
725 panx_dl_dir = dl_manager.extract(panx_path)
726 lang = self.config.name.split(".")[1]
--> 727 lang_folder = dl_manager.extract(os.path.join(panx_dl_dir, lang + ".tar.gz"))
728 return [
729 nlp.SplitGenerator(
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in extract(self, path_or_paths)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/py_utils.py in map_nested(function, data_struct, dict_only, map_tuple)
170 return tuple(mapped)
171 # Singleton
--> 172 return function(data_struct)
173
174
/usr/local/lib/python3.6/dist-packages/nlp/utils/download_manager.py in <lambda>(path)
196 """
197 return map_nested(
--> 198 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
199 )
200
/usr/local/lib/python3.6/dist-packages/nlp/utils/file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
203 elif urlparse(url_or_filename).scheme == "":
204 # File, but it doesn't exist.
--> 205 raise FileNotFoundError("Local file {} doesn't exist".format(url_or_filename))
206 else:
207 # Something unknown
FileNotFoundError: Local file /root/.cache/huggingface/datasets/9b8c4f1578e45cb2539332c79738beb3b54afbcd842b079cabfd79e3ed6704f6/fr.tar.gz doesn't exist
```
## OS and hardware
```
- `nlp` version: 0.3.0
- Platform: Linux-4.15.0-72-generic-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.6.9
- PyTorch version (GPU?): 1.4.0 (True)
- Tensorflow version (GPU?): 2.1.0 (True)
- Using GPU in script?: <fill in>
- Using distributed or parallel set-up in script?: <fill in>
```
I was able to repro. Opening a PR to fix that.
Thanks for reporting this issue ! | [
-0.2940952777862549,
-0.383517861366272,
-0.00217372365295887,
0.6607134938240051,
0.14834463596343994,
0.12387915700674057,
-0.17308883368968964,
0.1085539311170578,
0.1807117760181427,
0.0440966859459877,
-0.1427532583475113,
-0.00034507003147155046,
0.13833560049533844,
-0.029191311448812485,
0.16312193870544434,
-0.13893632590770721,
-0.005091473460197449,
-0.10926389694213867,
-0.04557424783706665,
0.0021929293870925903,
-0.33347490429878235,
0.38261666893959045,
-0.12323233485221863,
-0.015835687518119812,
-0.3343704342842102,
0.01526944525539875,
0.052525006234645844,
0.6103966236114502,
-0.22044400870800018,
-0.04907545447349548,
0.4548058807849884,
-0.13804180920124054,
0.41930320858955383,
0.716667652130127,
-0.00012068087380612269,
0.03627219796180725,
0.1372581571340561,
-0.18045155704021454,
-0.1188206821680069,
-0.5258263945579529,
-0.3079933226108551,
-0.13045719265937805,
-0.05789574980735779,
-0.12726864218711853,
-0.0723707526922226,
0.00139631237834692,
0.13070107996463776,
-0.5407083034515381,
0.4081200361251831,
0.10792391747236252,
0.105806864798069,
0.2785443365573883,
0.05261385068297386,
-0.07740029692649841,
0.22054550051689148,
0.16301891207695007,
-0.32615599036216736,
0.009836992248892784,
0.3490774929523468,
0.1568451076745987,
0.08900941163301468,
0.3036375343799591,
0.0028807315975427628,
0.04164914786815643,
0.4682086110115051,
-0.025537613779306412,
0.16320988535881042,
-0.285840779542923,
0.0740048736333847,
0.30273202061653137,
0.5413934588432312,
-0.17661070823669434,
-0.45512691140174866,
-0.1600835621356964,
-0.08777952194213867,
-0.2420940101146698,
0.35714617371559143,
0.2817618250846863,
-0.14291837811470032,
-0.004444330930709839,
-0.29094019532203674,
-0.19553478062152863,
-0.1650933027267456,
0.16105136275291443,
-0.06677926331758499,
0.16237188875675201,
-0.2162117213010788,
0.002034217119216919,
0.374141126871109,
0.045092079788446426,
0.2139795422554016,
-0.06313327699899673,
-0.10904094576835632,
0.11569786071777344,
-0.2318338304758072,
0.2371390461921692,
-0.14041459560394287,
-0.03139611333608627,
0.23789075016975403,
0.1972266137599945,
0.023154359310865402,
0.18336442112922668,
-0.020007994025945663,
0.15905827283859253,
0.22425125539302826,
0.2844464182853699,
0.24085953831672668,
-0.07524433732032776,
0.01278701052069664,
0.18078364431858063,
0.006231363862752914,
-0.19931533932685852,
-0.15594321489334106,
-0.20164932310581207,
-0.13806390762329102,
-0.09382035583257675,
0.11763665080070496,
-0.3426389992237091,
-0.5313273072242737,
-0.07015430927276611,
-0.09447778761386871,
0.010748788714408875,
0.235674649477005,
0.2389829158782959,
0.09938028454780579,
0.007656265050172806,
0.08231830596923828,
0.3665463328361511,
-0.3185618817806244,
-0.0045808604918420315,
-0.20311564207077026,
0.20443929731845856,
-0.388656884431839,
0.2901449203491211,
0.16030952334403992,
-0.08145733177661896,
0.3730151057243347,
-0.11436527967453003,
0.32601457834243774,
-0.3670960068702698,
0.04246074706315994,
-0.06470657140016556,
-0.03823574632406235,
0.08228537440299988,
0.23622047901153564,
0.16142430901527405,
0.10860675573348999,
-0.006718840450048447,
-0.11877859383821487,
0.14366285502910614,
-0.40557533502578735,
-0.12714314460754395,
-0.07954483479261398,
0.03333611041307449,
-0.4040100574493408,
0.01824374310672283,
-0.6510802507400513,
-0.16833318769931793,
-0.27029064297676086,
0.03322454169392586,
-0.025217361748218536,
0.04184180498123169,
-0.1289663463830948,
-0.07620865851640701,
0.2826346755027771,
0.48704254627227783,
-0.18085692822933197,
-0.03521312028169632,
-0.209054097533226,
-0.1099223643541336,
0.08131921291351318,
0.15743231773376465,
-0.23717442154884338,
0.08770602196455002,
-0.44718289375305176,
0.3432365655899048,
0.26038092374801636,
-0.6826913952827454,
-0.29034993052482605,
0.32645395398139954,
-0.2940927743911743,
0.24178771674633026,
0.08077796548604965,
0.06210663169622421,
-0.21419192850589752,
-0.08567477017641068,
0.17384329438209534,
0.17709115147590637,
0.13799047470092773,
-0.09980170428752899,
-0.2131125032901764,
-0.16815683245658875,
-0.1904788762331009,
0.33219391107559204,
-0.013252828270196915,
-0.08989440649747849,
0.11145444214344025,
-0.018651079386472702,
0.10930930078029633,
-0.13748568296432495,
-0.12677818536758423,
0.5887781381607056,
0.07426457852125168,
-0.040152281522750854,
-0.18890897929668427,
0.060748085379600525,
-0.691290557384491,
0.315778911113739,
-0.26303982734680176,
-0.23664602637290955,
-0.08977657556533813,
0.10724353790283203,
-0.3324472904205322,
-0.09075063467025757,
-0.342175155878067,
-0.17736342549324036,
-0.03209372237324715,
0.14239756762981415,
-0.003950761631131172,
-0.1507626175880432,
-0.2373906522989273,
0.3739418387413025,
0.03380465507507324,
0.10042348504066467,
-0.5817273855209351,
0.2664703130722046,
0.18917125463485718,
-0.03668949007987976,
-0.008081100881099701,
0.029506519436836243,
0.24494010210037231,
-0.30187174677848816,
0.011071603745222092,
0.5150933861732483,
0.015789275988936424,
0.3034428656101227,
0.34143632650375366,
0.06788242608308792,
0.21833552420139313,
-0.474691778421402,
0.17063719034194946,
0.12616808712482452,
-0.05022529885172844,
-0.0008380785584449768,
-0.35325899720191956,
0.47185778617858887,
-0.19586601853370667,
-0.03601352125406265,
-0.07293423265218735,
-0.15648870170116425,
0.1472141444683075,
-0.11021611094474792,
-0.11814016103744507,
-0.10237210243940353,
0.3790087401866913,
0.19717909395694733,
0.2383923977613449,
-0.16361004114151,
-0.11515074968338013,
-0.1355726420879364,
-0.07877469062805176,
0.01917155459523201,
0.001240469515323639,
0.031922902911901474,
-0.26283904910087585,
0.11231433600187302,
-0.034936271607875824,
0.40339645743370056,
0.415117084980011,
0.15246394276618958,
0.023350674659013748,
-0.02732866443693638,
-0.041436340659856796,
-0.07648947089910507,
0.03186694532632828,
0.011048443615436554,
0.10943273454904556,
0.16492009162902832,
-0.3268110752105713,
-0.05431963875889778,
-0.36686351895332336,
-0.10840100049972534,
0.10832198709249496,
0.09499816596508026,
-0.35447797179222107,
0.02585657872259617,
-0.17411501705646515,
-0.38957080245018005,
-0.10250087082386017,
0.15973138809204102,
-0.21198201179504395,
-0.297492653131485,
-0.12243019044399261,
0.5138399004936218,
0.2439618706703186,
-0.03323657810688019,
-0.32287049293518066,
0.055156558752059937,
-0.1608923226594925,
-0.5349493622779846,
-0.22960613667964935,
0.2254982441663742,
-0.02984866499900818,
-0.037925973534584045,
0.39406055212020874,
0.17755155265331268,
0.06346935033798218,
-0.3751942217350006,
0.43787938356399536,
-0.5723704695701599,
-0.1013900488615036,
0.15361987054347992,
-0.17764464020729065,
0.4700741469860077,
-0.12343338131904602,
0.17391648888587952,
-0.4125462770462036,
0.07374519109725952,
0.26227033138275146,
-0.14359886944293976,
-0.07257600128650665,
-0.010824847035109997,
0.05826568230986595,
-0.17177124321460724,
0.10299913585186005,
-0.15504354238510132,
-0.08348741382360458,
-0.22855828702449799,
-0.06051991879940033,
0.026968572288751602,
0.003947541117668152,
0.14304137229919434,
0.01217359583824873,
0.052641235291957855,
0.002111296635121107,
-0.2169024646282196,
-0.2150433510541916,
-0.9191769361495972,
0.48212888836860657,
-0.1535043865442276,
-0.28485825657844543,
0.371545672416687,
0.173071026802063,
0.2463560700416565,
0.2914629578590393,
-0.4455311894416809,
-0.17484422028064728,
0.10034247487783432,
0.1766919195652008,
0.07965444028377533,
0.028543556109070778,
0.2198375016450882,
-0.20395590364933014,
0.07813805341720581,
-0.1340859830379486,
-0.30674493312835693,
-0.07130587846040726,
0.18570604920387268,
0.6754618287086487,
-0.09100925922393799,
0.015538014471530914,
0.030508872121572495,
0.48124033212661743,
0.08225719630718231,
0.21683762967586517,
0.4140937626361847,
-0.10537882894277573,
0.3446893095970154,
-0.08478166908025742,
-0.1683695912361145,
-0.20165930688381195,
-0.12537842988967896,
0.03460071235895157,
0.038846008479595184,
0.319781631231308,
0.10899970680475235,
-0.28266018629074097,
0.2524099349975586,
-0.3590713441371918,
-0.24997621774673462,
0.07911022752523422,
0.15070408582687378,
0.14391237497329712,
-0.027168789878487587,
0.29440218210220337,
-0.1495237797498703,
-0.14233079552650452,
0.047216713428497314,
0.3464933931827545,
0.4332346022129059,
0.20162566006183624,
-0.33571121096611023,
0.28216931223869324,
-0.2268449366092682,
0.4784913659095764,
0.07362394779920578,
0.17186813056468964,
-0.09290994703769684,
0.04142337292432785,
0.19558969140052795,
-0.08779430389404297,
0.3791082501411438,
-0.08124443143606186,
0.15484938025474548,
0.009051572531461716,
-0.37388789653778076,
-0.32681000232696533,
0.023585360497236252,
0.04028986766934395,
0.15631736814975739,
-0.01538139209151268,
0.5480807423591614,
-0.2565804719924927,
-0.31506526470184326,
-0.20974820852279663,
0.13904859125614166,
-0.07422639429569244,
-0.1340295672416687,
-0.27351635694503784,
-0.5143994688987732,
-0.07183884084224701,
-0.29559096693992615,
0.1968686580657959,
0.2673872113227844,
0.31725192070007324,
0.2283359318971634,
-0.10423523187637329,
-0.04284004867076874,
0.3793020248413086,
0.004214128479361534,
0.652935266494751,
-0.1743398755788803,
0.03549247607588768,
0.42523106932640076,
-0.11782428622245789,
0.2531477212905884,
0.6561620235443115,
0.11082130670547485,
-0.1297163963317871,
0.26633310317993164,
-0.05171646550297737,
-0.12951397895812988,
0.32734590768814087,
0.0207965150475502,
-0.3362398147583008,
-0.052603013813495636,
-0.0299212783575058,
-0.13729745149612427,
0.010417947545647621,
0.32011866569519043,
-0.03676122799515724,
-0.167083278298378,
-0.0699450746178627,
0.5326877236366272,
0.2755143344402313,
0.16868539154529572,
0.30961960554122925,
0.09793530404567719,
-0.15163765847682953,
-0.23301948606967926,
0.18752339482307434,
1.0363696813583374,
-0.1817588210105896,
0.13487592339515686,
0.23657599091529846,
0.14354589581489563,
-0.029545841738581657,
-0.25700563192367554,
0.3308090567588806,
-0.2593771815299988,
-0.39658883213996887,
-0.25396665930747986,
-0.14133727550506592,
0.24864476919174194,
0.09211227297782898,
0.3186843693256378,
0.2940900921821594,
0.14416445791721344,
0.010918144136667252,
0.04235009104013443,
-0.01921924389898777,
-0.2817929983139038,
-0.3109997808933258,
-0.5007683038711548,
0.06260761618614197,
-0.04109504073858261,
0.5804387331008911,
-0.1612381935119629,
-0.1279444843530655,
-0.18903638422489166,
-0.030287131667137146,
-0.03705846890807152,
0.3009277880191803,
-0.23470439016819,
0.1349930763244629,
-0.044240791350603104,
-0.49342262744903564,
-0.1455712765455246,
0.44561752676963806,
0.08575043082237244,
-0.2637134790420532,
-0.2606281340122223,
0.3505086898803711,
-0.07311875373125076,
-0.19286894798278809,
0.01797536015510559,
-0.10910800099372864,
-0.1411276012659073,
-0.15127862989902496,
0.13498440384864807,
-0.08414380997419357,
-0.14231924712657928,
-0.35683196783065796,
-0.27012374997138977,
-0.06699681282043457,
-0.27996742725372314,
-0.045484185218811035,
-0.26465898752212524,
0.05238185450434685,
0.04304466024041176,
-0.020229695364832878,
0.04396853595972061,
0.15057384967803955,
-0.11828023940324783,
0.02647934854030609,
0.11949335038661957,
-0.43093642592430115,
-0.027901574969291687,
0.5984718799591064,
-0.3182871341705322,
-0.21648171544075012,
0.2697499990463257,
0.1841868907213211,
0.04735790938138962,
-0.13907140493392944,
0.3956477642059326,
0.37429097294807434,
-0.5853357315063477,
0.017213214188814163,
-0.13103558123111725,
0.20623047649860382,
0.09364957362413406,
0.28696197271347046,
0.4050014019012451,
-0.405505895614624,
0.22945167124271393,
-0.4906131625175476,
-0.022133229300379753,
0.37665826082229614,
-0.030695293098688126,
0.28284838795661926,
-0.02574458345770836,
-0.2261561006307602,
0.131886288523674,
-0.3666858375072479,
-0.22439223527908325,
0.39640265703201294,
-0.030992455780506134,
-0.051342129707336426,
0.27654093503952026,
0.10922008752822876,
0.528856635093689,
0.06099766120314598,
0.0577789768576622,
0.21887530386447906,
-0.2673535943031311,
-0.04220905900001526,
0.07026880979537964,
0.1751423329114914,
0.03115355223417282,
-0.18658602237701416,
0.01880771294236183,
-0.14554500579833984,
-0.08651569485664368,
-0.024734873324632645,
0.1848335862159729,
0.3872484862804413,
0.030788615345954895,
-0.14748001098632812,
-0.10982923209667206,
0.16634760797023773,
-0.47092700004577637,
0.1061931848526001,
0.1898028552532196,
0.49242931604385376,
0.021268628537654877,
-0.023613177239894867,
-0.0951867625117302,
-0.08877988159656525,
-0.32380709052085876,
-0.0843958929181099,
0.28941670060157776,
0.2882053852081299,
0.3363099992275238,
-0.36052197217941284,
0.3339120149612427,
0.18498429656028748,
0.22670966386795044,
0.36623507738113403,
-0.2820642590522766,
0.11081920564174652,
0.03159203380346298,
0.12503884732723236,
-0.026920823380351067,
-0.11273524165153503,
0.10835006833076477,
-0.08160191774368286,
-0.10202345997095108,
0.38890329003334045,
0.19933214783668518,
0.2852798402309418,
0.206814244389534,
-0.02221805416047573,
0.7002962231636047,
-0.04790710657835007,
0.22965161502361298,
0.4015389382839203,
-0.0840393453836441,
0.14039279520511627,
0.2540929913520813,
0.3396311402320862,
0.11655481159687042,
0.40726369619369507,
-0.2131439447402954,
0.5100001096725464,
-0.07043210417032242,
0.4083871841430664,
-0.38913777470588684,
-0.4278741180896759,
-0.225972518324852,
0.2799413800239563,
0.17639540135860443,
0.18061141669750214,
-0.2744506001472473,
0.2971874475479126,
-0.49491816759109497,
-0.01474836841225624,
-0.420529305934906,
0.15461494028568268,
-0.06688902527093887,
0.0183825995773077,
-0.263599693775177,
-0.37217816710472107,
-0.1487559825181961,
0.048796605318784714,
-0.1414865255355835,
-0.15301741659641266,
-0.03988651931285858,
0.07943610846996307,
-0.04562099277973175,
0.08262793719768524,
-0.1365239918231964,
0.2178894579410553,
-0.049419574439525604,
-0.17005212604999542,
0.4847484827041626,
0.07236351817846298,
-0.014322198927402496,
0.21670210361480713,
0.20186872780323029,
0.18447233736515045,
0.06987669318914413,
-0.10044942796230316,
-0.11658798158168793,
0.20178252458572388,
-0.04673558473587036,
0.14672714471817017,
0.09841907769441605,
-0.019898362457752228,
0.04051944240927696,
0.2966161370277405,
0.16196231544017792,
-0.05738839507102966,
0.1973590850830078,
-0.07399614155292511,
0.30937644839286804,
-0.046078160405159,
0.02770569920539856,
-0.40949350595474243,
0.15801554918289185,
-0.15108820796012878,
-0.21761292219161987,
-0.10510656237602234,
-0.16550682485103607,
0.09248831868171692,
-0.1326872855424881,
0.00626727007329464,
0.24565739929676056,
0.01795346289873123,
0.0025495290756225586,
0.2727976143360138,
0.4918941259384155,
-0.26443132758140564,
-0.5227891206741333,
-0.2552605867385864,
-0.7857867479324341,
0.15712910890579224,
-0.03276075795292854,
-0.23474553227424622,
0.045614589005708694,
0.16287191212177277,
-0.06560593098402023,
0.215009868144989,
0.3023926019668579,
-0.08052713423967361,
0.3330075740814209,
0.30208760499954224,
-0.2846808135509491,
-0.03184623643755913,
0.21751055121421814,
0.09619194269180298,
-0.05528499186038971,
-0.2977226972579956,
-0.009798329323530197,
0.1965624839067459,
-0.07209828495979309,
-0.0004327688366174698,
0.0005195513367652893,
-0.30384451150894165,
-0.2595990300178528,
0.34663712978363037,
-0.12836256623268127,
0.23551148176193237,
0.006928715854883194,
-0.3553106188774109,
-0.2619476318359375,
-0.2585625648498535,
0.10818423330783844,
0.08175793290138245,
0.09719283133745193,
0.4771685302257538,
-0.087629035115242,
0.12166395783424377,
-0.5112358927726746,
0.2954389154911041,
0.142530620098114,
-0.0016414154088124633,
-0.3504883646965027,
0.10026152431964874,
-0.2921202778816223,
0.05132031440734863,
0.28853580355644226,
0.3758068382740021,
0.0382818728685379,
0.3379184305667877,
-0.14137674868106842,
-0.18742388486862183,
0.47193020582199097,
0.005781463347375393,
-0.14038357138633728,
0.29020342230796814,
0.06007436662912369,
0.23427575826644897,
-0.14330129325389862,
-0.3426618278026581,
0.25602012872695923,
0.08228486031293869,
0.024347243830561638,
-0.005571654066443443,
-0.01575528457760811,
-0.2069304883480072,
-0.19930973649024963,
0.14981979131698608,
0.23564152419567108,
0.108083575963974,
-0.16975010931491852,
0.15471859276294708,
0.048286713659763336
] |
https://github.com/huggingface/datasets/issues/407 | MissingBeamOptions for Wikipedia 20200501.en | Fixed. Could you try again @mitchellgordon95 ?
It was due a file not being updated on S3.
We need to make sure all the datasets scripts get updated properly @julien-c | There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available):
```
nlp.load_dataset('wikipedia', "20200501.en", split='train')
```
And now, having pulled master, I get:
```
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd...
Traceback (most recent call last):
File "scripts/download.py", line 11, in <module>
fire.Fire(download_pretrain)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire
target=component.__name__)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "scripts/download.py", line 6, in download_pretrain
nlp.load_dataset('wikipedia', "20200501.en", split='train')
File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset
save_infos=save_infos,
File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, 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, S
park, 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.en', beam_runner='DirectRunner')`
``` | 30 | MissingBeamOptions for Wikipedia 20200501.en
There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available):
```
nlp.load_dataset('wikipedia', "20200501.en", split='train')
```
And now, having pulled master, I get:
```
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd...
Traceback (most recent call last):
File "scripts/download.py", line 11, in <module>
fire.Fire(download_pretrain)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire
target=component.__name__)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "scripts/download.py", line 6, in download_pretrain
nlp.load_dataset('wikipedia', "20200501.en", split='train')
File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset
save_infos=save_infos,
File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, 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, S
park, 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.en', beam_runner='DirectRunner')`
```
Fixed. Could you try again @mitchellgordon95 ?
It was due a file not being updated on S3.
We need to make sure all the datasets scripts get updated properly @julien-c | [
0.0666157603263855,
0.12667594850063324,
-0.02051224187016487,
-0.05423295497894287,
0.199618861079216,
0.15268704295158386,
0.1799740195274353,
0.3656729757785797,
-0.022209087386727333,
-0.08142633736133575,
0.14893512427806854,
0.2753816843032837,
-0.09172665327787399,
-0.16842246055603027,
0.24347248673439026,
-0.30586376786231995,
0.14550313353538513,
0.1239020973443985,
-0.3501994013786316,
-0.12868288159370422,
-0.0025926828384399414,
0.41259023547172546,
-0.21142828464508057,
-0.17825500667095184,
-0.5298829078674316,
0.06315382570028305,
-0.13151976466178894,
0.14280512928962708,
-0.0437915101647377,
-0.24998776614665985,
0.27792149782180786,
0.05930277332663536,
-0.08272373676300049,
0.12223896384239197,
-0.00011430802987888455,
0.07761125266551971,
0.6222483515739441,
-0.22390590608119965,
-0.5686730742454529,
0.011977165937423706,
0.13000094890594482,
-0.33365264534950256,
0.3843439221382141,
-0.25509873032569885,
-0.2759362757205963,
-0.11812957376241684,
0.11411834508180618,
-0.058530326932668686,
0.39380598068237305,
-0.01093596126884222,
0.21362538635730743,
0.23605576157569885,
0.297298401594162,
-0.12914156913757324,
0.6020240187644958,
0.06741520762443542,
-0.16625630855560303,
0.07933691143989563,
-0.16387449204921722,
-0.056476689875125885,
-0.27104076743125916,
0.47979459166526794,
0.13871712982654572,
-0.13700054585933685,
0.5526372194290161,
-0.2816210985183716,
0.022621415555477142,
-0.2574205696582794,
0.017453862354159355,
0.1826511025428772,
0.4940165579319,
-0.022984221577644348,
-0.10636746138334274,
-0.3746708035469055,
0.04460474103689194,
0.17873060703277588,
0.2480822205543518,
0.017208732664585114,
-0.15328963100910187,
-0.06720858812332153,
0.051210034638643265,
-0.22957982122898102,
-0.033292751759290695,
0.28875139355659485,
-0.0673934742808342,
0.4202924072742462,
-0.02890642359852791,
0.02147098258137703,
0.16685403883457184,
0.049622807651758194,
-0.31337234377861023,
0.036518458276987076,
0.09821435809135437,
0.23501591384410858,
-0.21651296317577362,
0.06369762122631073,
0.28688400983810425,
0.27052631974220276,
0.062014319002628326,
0.16959404945373535,
-0.27940046787261963,
0.1912723183631897,
0.020430181175470352,
-0.047091707587242126,
0.21989338099956512,
0.24082310497760773,
-0.041865698993206024,
-0.3533203899860382,
0.25167328119277954,
0.3364218473434448,
-0.0628027692437172,
0.1384645402431488,
0.1992911547422409,
-0.13873663544654846,
-0.27135583758354187,
0.13340246677398682,
0.009117070585489273,
-0.171702578663826,
0.10722740739583969,
0.05340878292918205,
-0.27779442071914673,
-0.1483333557844162,
-0.23782366514205933,
0.31988903880119324,
-0.025774624198675156,
0.40862274169921875,
0.2018832117319107,
0.1185925155878067,
-0.2835618555545807,
-0.2737644910812378,
-0.19572517275810242,
0.021234236657619476,
-0.47790250182151794,
0.025882070884108543,
0.3871362507343292,
-0.20970553159713745,
0.5165671706199646,
0.07585527747869492,
-0.03628600388765335,
0.05929242819547653,
-0.030197981745004654,
0.26442521810531616,
-0.07258366793394089,
0.1810254454612732,
0.12122587859630585,
0.2927807569503784,
0.2036844789981842,
0.019942745566368103,
-0.05308643355965614,
-0.32944393157958984,
0.07048428058624268,
-0.27638790011405945,
-0.2597139775753021,
0.167716845870018,
-0.31198787689208984,
0.15478947758674622,
0.04750702157616615,
0.18722744286060333,
-0.025387920439243317,
-0.18220281600952148,
-0.09672714024782181,
-0.12297053635120392,
-0.058292001485824585,
-0.14827390015125275,
0.5051089525222778,
0.4033135771751404,
0.029887940734624863,
-0.3304649889469147,
-0.062176208943128586,
0.10411548614501953,
-0.1011982336640358,
0.011720813810825348,
-0.15648207068443298,
0.5247728824615479,
-0.2857878804206848,
-0.15018871426582336,
0.2243133783340454,
0.051968518644571304,
-0.211226686835289,
0.1486307680606842,
-0.012657545506954193,
0.2708984315395355,
0.09758857637643814,
-0.052835531532764435,
-0.06728105247020721,
0.05180036276578903,
0.09197543561458588,
0.21845997869968414,
0.11319418996572495,
0.05293995141983032,
-0.3270508348941803,
-0.08778820931911469,
-0.007687374949455261,
0.07954835891723633,
0.35053861141204834,
-0.05055474489927292,
0.0635947585105896,
0.5883679986000061,
0.2980863153934479,
-0.1387823522090912,
0.2244141697883606,
0.4500529170036316,
-0.28894251585006714,
0.13684654235839844,
0.24537238478660583,
-0.059861864894628525,
-0.4651873707771301,
0.12080099433660507,
-0.14018315076828003,
0.4367896318435669,
-0.18319334089756012,
-0.002214491367340088,
-0.3467145562171936,
-0.13671435415744781,
-0.19681669771671295,
-0.5165303349494934,
0.20651324093341827,
0.20344695448875427,
-0.01857634447515011,
0.30464765429496765,
0.025430720299482346,
0.11620296537876129,
-0.04044170305132866,
0.05688844993710518,
-0.7796520590782166,
0.21452760696411133,
-0.31155872344970703,
-0.14111897349357605,
-0.01922939345240593,
0.30816522240638733,
0.11504562944173813,
-0.19354018568992615,
-0.12849578261375427,
0.22342270612716675,
-0.07892410457134247,
0.134190171957016,
0.014886796474456787,
-0.055087536573410034,
0.24042703211307526,
-0.32110103964805603,
0.09848317503929138,
0.31225842237472534,
-0.04630577191710472,
-0.12724082171916962,
-0.3034785985946655,
0.2799142599105835,
0.01822282001376152,
0.32264435291290283,
0.03340320289134979,
0.09193238615989685,
0.15483646094799042,
0.07258348166942596,
-0.23313337564468384,
-0.20265325903892517,
0.3785170316696167,
0.21760602295398712,
0.1366422325372696,
-0.023524953052401543,
0.11496280133724213,
0.004568241536617279,
0.17190223932266235,
0.06607957184314728,
0.011260252445936203,
-0.080915667116642,
-0.45100247859954834,
-0.2482416033744812,
0.3509312570095062,
-0.08578915894031525,
0.08168523013591766,
0.2645472586154938,
0.05249495059251785,
-0.016956551000475883,
-0.12286869436502457,
-0.20957818627357483,
0.19748781621456146,
0.1140875369310379,
0.3243005573749542,
0.08764618635177612,
0.14054301381111145,
0.19754460453987122,
-0.38152506947517395,
0.1906592696905136,
-0.1774681657552719,
0.0871339663863182,
-0.2838538587093353,
-0.09798715263605118,
-0.35406002402305603,
-0.45146122574806213,
-0.10524207353591919,
0.24881061911582947,
-0.39741262793540955,
-0.5874935984611511,
-0.056958653032779694,
0.18909955024719238,
-0.16337449848651886,
0.30572962760925293,
-0.029364202171564102,
-0.13036589324474335,
0.07419327646493912,
0.01979118213057518,
-0.3342629373073578,
-0.3922385573387146,
-0.20006772875785828,
0.08615186810493469,
0.10436016321182251,
-0.002149563282728195,
0.29014480113983154,
-0.0029741618782281876,
-0.027191687375307083,
-0.4731692373752594,
-0.5758975744247437,
0.3161933124065399,
-0.28385210037231445,
0.19026796519756317,
0.17792904376983643,
0.08815783262252808,
-0.22568722069263458,
-0.05873403325676918,
0.40694811940193176,
-0.1701163351535797,
-0.15046736598014832,
-0.01616045832633972,
-0.1277899295091629,
0.10100560635328293,
-0.1923411786556244,
-0.22173810005187988,
0.09537564218044281,
-0.3692918121814728,
0.015344128012657166,
0.0921725481748581,
-0.1812785267829895,
0.4691087007522583,
-0.10024932026863098,
-0.006287403870373964,
0.10052663832902908,
0.17226770520210266,
-0.24487991631031036,
0.08357448875904083,
0.34165987372398376,
-0.300398051738739,
-0.4568089246749878,
0.029568005353212357,
-0.17355284094810486,
0.05717124417424202,
0.3189312219619751,
-0.4997882843017578,
-0.04967721924185753,
0.09412267804145813,
0.0024686045944690704,
-0.13542680442333221,
0.0942458063364029,
0.5044301748275757,
0.011422133073210716,
-0.01686105877161026,
-0.2326323688030243,
-0.1519104540348053,
-0.14951834082603455,
-0.31484881043434143,
0.42698490619659424,
-0.19236868619918823,
0.3235906958580017,
-0.0036710798740386963,
1.0987775325775146,
-0.032661907374858856,
0.06560337543487549,
0.4224386513233185,
0.09330400824546814,
0.45210015773773193,
-0.275951087474823,
-0.2967289686203003,
0.23235629498958588,
-0.14866489171981812,
0.30133455991744995,
0.39189988374710083,
-0.014732912182807922,
-0.20506621897220612,
-0.36537131667137146,
0.009142987430095673,
-0.20908507704734802,
-0.3228648006916046,
0.09011059999465942,
-0.31934964656829834,
0.2913953363895416,
0.1660906821489334,
0.233596533536911,
-0.0019367178902029991,
-0.1577160358428955,
0.24411076307296753,
0.17091956734657288,
0.20703652501106262,
0.06955260783433914,
0.13792802393436432,
-0.05609280616044998,
-0.4986758232116699,
0.040960200130939484,
0.018963253125548363,
-0.0030061453580856323,
0.03895087167620659,
-0.13712604343891144,
0.20203706622123718,
0.04538576304912567,
0.5689497590065002,
-0.197740837931633,
-0.026344574987888336,
0.2490573227405548,
0.0347798690199852,
-0.7107811570167542,
-0.027566783130168915,
-0.05507418513298035,
0.1947842240333557,
0.28621816635131836,
0.17843487858772278,
-0.3835536241531372,
-0.2234925478696823,
0.31258341670036316,
0.061099354177713394,
-0.04698343947529793,
-0.02617485821247101,
-0.2916187644004822,
0.006637483835220337,
-0.42076513171195984,
-0.1309031844139099,
-0.15496760606765747,
0.14559635519981384,
0.07744259387254715,
0.16873107850551605,
0.08941434323787689,
0.028799250721931458,
-0.13350802659988403,
0.10535092651844025,
0.2781827449798584,
0.25022435188293457,
-0.11148560047149658,
0.14095990359783173,
0.6523587703704834,
-0.3377569019794464,
0.26288098096847534,
0.1982283890247345,
0.04554975405335426,
0.2173914611339569,
-0.040063343942165375,
-0.059036530554294586,
0.39873525500297546,
0.028937451541423798,
-0.04876308888196945,
-0.20305266976356506,
0.009422481060028076,
0.09405386447906494,
0.22913797199726105,
0.35067132115364075,
-0.2690444886684418,
-0.1362767219543457,
-0.27368441224098206,
0.523655891418457,
-0.017669346183538437,
-0.01137087494134903,
0.06929407268762589,
0.06701328605413437,
-0.33653709292411804,
0.34610772132873535,
0.24151837825775146,
0.7413393259048462,
0.03802787885069847,
0.39531832933425903,
0.20779237151145935,
0.302787721157074,
0.8601713180541992,
-0.3698049783706665,
0.18975122272968292,
-0.17427493631839752,
0.2201990783214569,
0.04168694466352463,
0.0354326106607914,
-0.19204285740852356,
-0.131045863032341,
-0.0968429446220398,
0.3844059705734253,
0.3848445415496826,
0.4188901484012604,
0.07600060105323792,
0.29991281032562256,
0.07616449147462845,
-0.3209705948829651,
-0.19505318999290466,
0.1271081417798996,
-0.20761708915233612,
0.586581826210022,
-0.37657034397125244,
-0.1308690458536148,
-0.2108006775379181,
-0.11665280908346176,
-0.25054866075515747,
0.18855175375938416,
-0.2747054100036621,
0.5069431066513062,
-0.17828799784183502,
-0.5959970355033875,
0.02124840021133423,
0.11277653276920319,
0.14744696021080017,
0.08831058442592621,
-0.4008163809776306,
0.36849743127822876,
-0.19408926367759705,
-0.23625831305980682,
-0.10856231302022934,
0.20971478521823883,
0.4952661395072937,
-0.17084991931915283,
-0.06167883425951004,
-0.06107216328382492,
-0.241667240858078,
-0.2755624055862427,
-0.29496943950653076,
-0.061304971575737,
0.0028360821306705475,
0.10486900806427002,
-0.08245287835597992,
0.10372479259967804,
-0.014028685167431831,
-0.25724878907203674,
0.14875219762325287,
-0.11449077725410461,
0.03741693124175072,
-0.1460701823234558,
0.10244506597518921,
-0.10430790483951569,
-0.07039777934551239,
0.49939703941345215,
-0.002098366618156433,
-0.12898413836956024,
0.5953384637832642,
0.34262990951538086,
-0.11988013237714767,
-0.11467273533344269,
-0.09025713801383972,
-0.13938374817371368,
-0.47222572565078735,
-0.12965638935565948,
0.012480390258133411,
-0.053001582622528076,
-0.05213264748454094,
0.24472078680992126,
0.18441161513328552,
-0.16262337565422058,
0.07808658480644226,
-0.19434480369091034,
-0.2954612374305725,
0.2547382116317749,
-0.34947142004966736,
-0.042039018124341965,
0.13901886343955994,
0.10136687755584717,
0.3333050608634949,
0.014815934002399445,
-0.29645663499832153,
-0.2154645174741745,
0.054028041660785675,
0.20080877840518951,
0.3083439767360687,
-0.11868824809789658,
-0.05005430802702904,
-0.12764838337898254,
0.12124434113502502,
0.021271243691444397,
-0.1894858330488205,
-0.23024070262908936,
-0.031567759811878204,
0.1042666807770729,
0.046716686338186264,
0.08656778931617737,
-0.07817688584327698,
0.11140918731689453,
-0.03712981194257736,
-0.25353604555130005,
0.052871670573949814,
-0.22818294167518616,
0.1240537166595459,
0.18231557309627533,
0.11915799975395203,
0.17635266482830048,
-0.12095285952091217,
0.015098568052053452,
0.048274073749780655,
0.14237475395202637,
0.05326319858431816,
0.012956470251083374,
0.22157953679561615,
-0.011794239282608032,
-0.16906395554542542,
0.10427471250295639,
-0.18549980223178864,
0.2854597270488739,
0.29269370436668396,
-0.07731710374355316,
-0.2990322411060333,
-0.027036618441343307,
0.2942740321159363,
-0.032608114182949066,
-0.052861105650663376,
-0.04857456684112549,
0.010359115898609161,
0.19061288237571716,
-0.2196090817451477,
0.2674604058265686,
0.527988076210022,
0.11437215656042099,
0.055378507822752,
-0.07021316140890121,
0.3743455410003662,
-0.024659927934408188,
0.3387497067451477,
0.1726609170436859,
0.12175268679857254,
-0.1183096319437027,
0.24264216423034668,
0.21661469340324402,
0.35108619928359985,
0.056690823286771774,
0.02391413412988186,
-0.03071006014943123,
0.2304624617099762,
0.23972207307815552,
0.12880831956863403,
0.27862873673439026,
-0.08822842687368393,
0.0975489616394043,
0.030913684517145157,
-0.06298382580280304,
0.16391274333000183,
0.33403557538986206,
0.18038681149482727,
0.14405226707458496,
-0.12919408082962036,
0.5687989592552185,
0.1001940444111824,
-0.3893401622772217,
-0.2345823347568512,
0.24023175239562988,
-0.11699634045362473,
0.07403135299682617,
-0.31728386878967285,
-0.1861777901649475,
-0.23919405043125153,
0.15746480226516724,
-0.1074405312538147,
-0.12326614558696747,
-0.050429731607437134,
0.21565558016300201,
-0.19008339941501617,
-0.4732016623020172,
0.21016940474510193,
-0.03633842617273331,
0.3338368237018585,
-0.07308247685432434,
0.17064066231250763,
-0.0616362988948822,
-0.27757692337036133,
-0.07984620332717896,
0.28773507475852966,
0.2786320149898529,
0.10541664063930511,
-0.39099225401878357,
-0.12188658863306046,
0.15569394826889038,
-0.06407512724399567,
-0.15276475250720978,
0.08428388833999634,
0.26063060760498047,
-0.10130338370800018,
0.2616640329360962,
0.09725324809551239,
-0.274093896150589,
-0.12203674018383026,
0.0980752557516098,
-0.05502226576209068,
-0.12360024452209473,
0.013010695576667786,
-0.3181716501712799,
-0.19825834035873413,
-0.12009434401988983,
0.006536670029163361,
-0.4909355044364929,
0.16106903553009033,
-0.008207106962800026,
0.1992529183626175,
-0.05411982163786888,
-0.2968485355377197,
0.08566582202911377,
-0.13684630393981934,
0.597378134727478,
0.3424447774887085,
0.11179940402507782,
-0.1470000296831131,
-0.5365691184997559,
-0.5853415727615356,
0.2090299427509308,
-0.0629919022321701,
-0.04865700751543045,
0.07404320687055588,
0.19424201548099518,
0.2390596866607666,
0.16428054869174957,
0.0021004676818847656,
-0.17929527163505554,
0.08896065503358841,
-0.06625984609127045,
-0.464761883020401,
-0.06455028057098389,
-0.19048787653446198,
-0.258903831243515,
-0.12463223934173584,
0.024100691080093384,
-0.0880487859249115,
0.10577721148729324,
0.048800088465213776,
-0.019923135638237,
-0.26405781507492065,
0.061663348227739334,
-0.06827486306428909,
0.2982195317745209,
-0.05190408229827881,
0.3681994378566742,
-0.10127128660678864,
-0.220356285572052,
-0.29017186164855957,
-0.15610265731811523,
-0.04629845544695854,
0.3026440143585205,
-0.19343800842761993,
0.5210280418395996,
-0.008360371924936771,
-0.10020533204078674,
-0.3288210928440094,
0.690527081489563,
0.17339064180850983,
0.11755669116973877,
-0.3923225700855255,
0.023907756432890892,
-0.3116733431816101,
0.16229845583438873,
0.091018445789814,
0.3411857783794403,
-0.2714782953262329,
0.17413575947284698,
-0.46680378913879395,
-0.4499908685684204,
0.24987126886844635,
-0.45507290959358215,
-0.0926976352930069,
-0.00418470473960042,
0.11533906310796738,
-0.004739865660667419,
-0.057100504636764526,
-0.5571914911270142,
0.03359726816415787,
0.16372063755989075,
0.05430971086025238,
-0.09074952453374863,
0.10950922966003418,
-0.045588474720716476,
-0.12089352309703827,
-0.10418541729450226,
-0.17841312289237976,
0.1156887337565422,
-0.1695554256439209,
-0.08987568318843842,
-0.21513962745666504
] |
https://github.com/huggingface/datasets/issues/407 | MissingBeamOptions for Wikipedia 20200501.en | I found the same issue with almost any language other than English. (For English, it works). Will someone need to update the file on S3 again? | There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available):
```
nlp.load_dataset('wikipedia', "20200501.en", split='train')
```
And now, having pulled master, I get:
```
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd...
Traceback (most recent call last):
File "scripts/download.py", line 11, in <module>
fire.Fire(download_pretrain)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire
target=component.__name__)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "scripts/download.py", line 6, in download_pretrain
nlp.load_dataset('wikipedia', "20200501.en", split='train')
File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset
save_infos=save_infos,
File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, 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, S
park, 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.en', beam_runner='DirectRunner')`
``` | 26 | MissingBeamOptions for Wikipedia 20200501.en
There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available):
```
nlp.load_dataset('wikipedia', "20200501.en", split='train')
```
And now, having pulled master, I get:
```
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd...
Traceback (most recent call last):
File "scripts/download.py", line 11, in <module>
fire.Fire(download_pretrain)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire
target=component.__name__)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "scripts/download.py", line 6, in download_pretrain
nlp.load_dataset('wikipedia', "20200501.en", split='train')
File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset
save_infos=save_infos,
File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, 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, S
park, 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.en', beam_runner='DirectRunner')`
```
I found the same issue with almost any language other than English. (For English, it works). Will someone need to update the file on S3 again? | [
0.0666157603263855,
0.12667594850063324,
-0.02051224187016487,
-0.05423295497894287,
0.199618861079216,
0.15268704295158386,
0.1799740195274353,
0.3656729757785797,
-0.022209087386727333,
-0.08142633736133575,
0.14893512427806854,
0.2753816843032837,
-0.09172665327787399,
-0.16842246055603027,
0.24347248673439026,
-0.30586376786231995,
0.14550313353538513,
0.1239020973443985,
-0.3501994013786316,
-0.12868288159370422,
-0.0025926828384399414,
0.41259023547172546,
-0.21142828464508057,
-0.17825500667095184,
-0.5298829078674316,
0.06315382570028305,
-0.13151976466178894,
0.14280512928962708,
-0.0437915101647377,
-0.24998776614665985,
0.27792149782180786,
0.05930277332663536,
-0.08272373676300049,
0.12223896384239197,
-0.00011430802987888455,
0.07761125266551971,
0.6222483515739441,
-0.22390590608119965,
-0.5686730742454529,
0.011977165937423706,
0.13000094890594482,
-0.33365264534950256,
0.3843439221382141,
-0.25509873032569885,
-0.2759362757205963,
-0.11812957376241684,
0.11411834508180618,
-0.058530326932668686,
0.39380598068237305,
-0.01093596126884222,
0.21362538635730743,
0.23605576157569885,
0.297298401594162,
-0.12914156913757324,
0.6020240187644958,
0.06741520762443542,
-0.16625630855560303,
0.07933691143989563,
-0.16387449204921722,
-0.056476689875125885,
-0.27104076743125916,
0.47979459166526794,
0.13871712982654572,
-0.13700054585933685,
0.5526372194290161,
-0.2816210985183716,
0.022621415555477142,
-0.2574205696582794,
0.017453862354159355,
0.1826511025428772,
0.4940165579319,
-0.022984221577644348,
-0.10636746138334274,
-0.3746708035469055,
0.04460474103689194,
0.17873060703277588,
0.2480822205543518,
0.017208732664585114,
-0.15328963100910187,
-0.06720858812332153,
0.051210034638643265,
-0.22957982122898102,
-0.033292751759290695,
0.28875139355659485,
-0.0673934742808342,
0.4202924072742462,
-0.02890642359852791,
0.02147098258137703,
0.16685403883457184,
0.049622807651758194,
-0.31337234377861023,
0.036518458276987076,
0.09821435809135437,
0.23501591384410858,
-0.21651296317577362,
0.06369762122631073,
0.28688400983810425,
0.27052631974220276,
0.062014319002628326,
0.16959404945373535,
-0.27940046787261963,
0.1912723183631897,
0.020430181175470352,
-0.047091707587242126,
0.21989338099956512,
0.24082310497760773,
-0.041865698993206024,
-0.3533203899860382,
0.25167328119277954,
0.3364218473434448,
-0.0628027692437172,
0.1384645402431488,
0.1992911547422409,
-0.13873663544654846,
-0.27135583758354187,
0.13340246677398682,
0.009117070585489273,
-0.171702578663826,
0.10722740739583969,
0.05340878292918205,
-0.27779442071914673,
-0.1483333557844162,
-0.23782366514205933,
0.31988903880119324,
-0.025774624198675156,
0.40862274169921875,
0.2018832117319107,
0.1185925155878067,
-0.2835618555545807,
-0.2737644910812378,
-0.19572517275810242,
0.021234236657619476,
-0.47790250182151794,
0.025882070884108543,
0.3871362507343292,
-0.20970553159713745,
0.5165671706199646,
0.07585527747869492,
-0.03628600388765335,
0.05929242819547653,
-0.030197981745004654,
0.26442521810531616,
-0.07258366793394089,
0.1810254454612732,
0.12122587859630585,
0.2927807569503784,
0.2036844789981842,
0.019942745566368103,
-0.05308643355965614,
-0.32944393157958984,
0.07048428058624268,
-0.27638790011405945,
-0.2597139775753021,
0.167716845870018,
-0.31198787689208984,
0.15478947758674622,
0.04750702157616615,
0.18722744286060333,
-0.025387920439243317,
-0.18220281600952148,
-0.09672714024782181,
-0.12297053635120392,
-0.058292001485824585,
-0.14827390015125275,
0.5051089525222778,
0.4033135771751404,
0.029887940734624863,
-0.3304649889469147,
-0.062176208943128586,
0.10411548614501953,
-0.1011982336640358,
0.011720813810825348,
-0.15648207068443298,
0.5247728824615479,
-0.2857878804206848,
-0.15018871426582336,
0.2243133783340454,
0.051968518644571304,
-0.211226686835289,
0.1486307680606842,
-0.012657545506954193,
0.2708984315395355,
0.09758857637643814,
-0.052835531532764435,
-0.06728105247020721,
0.05180036276578903,
0.09197543561458588,
0.21845997869968414,
0.11319418996572495,
0.05293995141983032,
-0.3270508348941803,
-0.08778820931911469,
-0.007687374949455261,
0.07954835891723633,
0.35053861141204834,
-0.05055474489927292,
0.0635947585105896,
0.5883679986000061,
0.2980863153934479,
-0.1387823522090912,
0.2244141697883606,
0.4500529170036316,
-0.28894251585006714,
0.13684654235839844,
0.24537238478660583,
-0.059861864894628525,
-0.4651873707771301,
0.12080099433660507,
-0.14018315076828003,
0.4367896318435669,
-0.18319334089756012,
-0.002214491367340088,
-0.3467145562171936,
-0.13671435415744781,
-0.19681669771671295,
-0.5165303349494934,
0.20651324093341827,
0.20344695448875427,
-0.01857634447515011,
0.30464765429496765,
0.025430720299482346,
0.11620296537876129,
-0.04044170305132866,
0.05688844993710518,
-0.7796520590782166,
0.21452760696411133,
-0.31155872344970703,
-0.14111897349357605,
-0.01922939345240593,
0.30816522240638733,
0.11504562944173813,
-0.19354018568992615,
-0.12849578261375427,
0.22342270612716675,
-0.07892410457134247,
0.134190171957016,
0.014886796474456787,
-0.055087536573410034,
0.24042703211307526,
-0.32110103964805603,
0.09848317503929138,
0.31225842237472534,
-0.04630577191710472,
-0.12724082171916962,
-0.3034785985946655,
0.2799142599105835,
0.01822282001376152,
0.32264435291290283,
0.03340320289134979,
0.09193238615989685,
0.15483646094799042,
0.07258348166942596,
-0.23313337564468384,
-0.20265325903892517,
0.3785170316696167,
0.21760602295398712,
0.1366422325372696,
-0.023524953052401543,
0.11496280133724213,
0.004568241536617279,
0.17190223932266235,
0.06607957184314728,
0.011260252445936203,
-0.080915667116642,
-0.45100247859954834,
-0.2482416033744812,
0.3509312570095062,
-0.08578915894031525,
0.08168523013591766,
0.2645472586154938,
0.05249495059251785,
-0.016956551000475883,
-0.12286869436502457,
-0.20957818627357483,
0.19748781621456146,
0.1140875369310379,
0.3243005573749542,
0.08764618635177612,
0.14054301381111145,
0.19754460453987122,
-0.38152506947517395,
0.1906592696905136,
-0.1774681657552719,
0.0871339663863182,
-0.2838538587093353,
-0.09798715263605118,
-0.35406002402305603,
-0.45146122574806213,
-0.10524207353591919,
0.24881061911582947,
-0.39741262793540955,
-0.5874935984611511,
-0.056958653032779694,
0.18909955024719238,
-0.16337449848651886,
0.30572962760925293,
-0.029364202171564102,
-0.13036589324474335,
0.07419327646493912,
0.01979118213057518,
-0.3342629373073578,
-0.3922385573387146,
-0.20006772875785828,
0.08615186810493469,
0.10436016321182251,
-0.002149563282728195,
0.29014480113983154,
-0.0029741618782281876,
-0.027191687375307083,
-0.4731692373752594,
-0.5758975744247437,
0.3161933124065399,
-0.28385210037231445,
0.19026796519756317,
0.17792904376983643,
0.08815783262252808,
-0.22568722069263458,
-0.05873403325676918,
0.40694811940193176,
-0.1701163351535797,
-0.15046736598014832,
-0.01616045832633972,
-0.1277899295091629,
0.10100560635328293,
-0.1923411786556244,
-0.22173810005187988,
0.09537564218044281,
-0.3692918121814728,
0.015344128012657166,
0.0921725481748581,
-0.1812785267829895,
0.4691087007522583,
-0.10024932026863098,
-0.006287403870373964,
0.10052663832902908,
0.17226770520210266,
-0.24487991631031036,
0.08357448875904083,
0.34165987372398376,
-0.300398051738739,
-0.4568089246749878,
0.029568005353212357,
-0.17355284094810486,
0.05717124417424202,
0.3189312219619751,
-0.4997882843017578,
-0.04967721924185753,
0.09412267804145813,
0.0024686045944690704,
-0.13542680442333221,
0.0942458063364029,
0.5044301748275757,
0.011422133073210716,
-0.01686105877161026,
-0.2326323688030243,
-0.1519104540348053,
-0.14951834082603455,
-0.31484881043434143,
0.42698490619659424,
-0.19236868619918823,
0.3235906958580017,
-0.0036710798740386963,
1.0987775325775146,
-0.032661907374858856,
0.06560337543487549,
0.4224386513233185,
0.09330400824546814,
0.45210015773773193,
-0.275951087474823,
-0.2967289686203003,
0.23235629498958588,
-0.14866489171981812,
0.30133455991744995,
0.39189988374710083,
-0.014732912182807922,
-0.20506621897220612,
-0.36537131667137146,
0.009142987430095673,
-0.20908507704734802,
-0.3228648006916046,
0.09011059999465942,
-0.31934964656829834,
0.2913953363895416,
0.1660906821489334,
0.233596533536911,
-0.0019367178902029991,
-0.1577160358428955,
0.24411076307296753,
0.17091956734657288,
0.20703652501106262,
0.06955260783433914,
0.13792802393436432,
-0.05609280616044998,
-0.4986758232116699,
0.040960200130939484,
0.018963253125548363,
-0.0030061453580856323,
0.03895087167620659,
-0.13712604343891144,
0.20203706622123718,
0.04538576304912567,
0.5689497590065002,
-0.197740837931633,
-0.026344574987888336,
0.2490573227405548,
0.0347798690199852,
-0.7107811570167542,
-0.027566783130168915,
-0.05507418513298035,
0.1947842240333557,
0.28621816635131836,
0.17843487858772278,
-0.3835536241531372,
-0.2234925478696823,
0.31258341670036316,
0.061099354177713394,
-0.04698343947529793,
-0.02617485821247101,
-0.2916187644004822,
0.006637483835220337,
-0.42076513171195984,
-0.1309031844139099,
-0.15496760606765747,
0.14559635519981384,
0.07744259387254715,
0.16873107850551605,
0.08941434323787689,
0.028799250721931458,
-0.13350802659988403,
0.10535092651844025,
0.2781827449798584,
0.25022435188293457,
-0.11148560047149658,
0.14095990359783173,
0.6523587703704834,
-0.3377569019794464,
0.26288098096847534,
0.1982283890247345,
0.04554975405335426,
0.2173914611339569,
-0.040063343942165375,
-0.059036530554294586,
0.39873525500297546,
0.028937451541423798,
-0.04876308888196945,
-0.20305266976356506,
0.009422481060028076,
0.09405386447906494,
0.22913797199726105,
0.35067132115364075,
-0.2690444886684418,
-0.1362767219543457,
-0.27368441224098206,
0.523655891418457,
-0.017669346183538437,
-0.01137087494134903,
0.06929407268762589,
0.06701328605413437,
-0.33653709292411804,
0.34610772132873535,
0.24151837825775146,
0.7413393259048462,
0.03802787885069847,
0.39531832933425903,
0.20779237151145935,
0.302787721157074,
0.8601713180541992,
-0.3698049783706665,
0.18975122272968292,
-0.17427493631839752,
0.2201990783214569,
0.04168694466352463,
0.0354326106607914,
-0.19204285740852356,
-0.131045863032341,
-0.0968429446220398,
0.3844059705734253,
0.3848445415496826,
0.4188901484012604,
0.07600060105323792,
0.29991281032562256,
0.07616449147462845,
-0.3209705948829651,
-0.19505318999290466,
0.1271081417798996,
-0.20761708915233612,
0.586581826210022,
-0.37657034397125244,
-0.1308690458536148,
-0.2108006775379181,
-0.11665280908346176,
-0.25054866075515747,
0.18855175375938416,
-0.2747054100036621,
0.5069431066513062,
-0.17828799784183502,
-0.5959970355033875,
0.02124840021133423,
0.11277653276920319,
0.14744696021080017,
0.08831058442592621,
-0.4008163809776306,
0.36849743127822876,
-0.19408926367759705,
-0.23625831305980682,
-0.10856231302022934,
0.20971478521823883,
0.4952661395072937,
-0.17084991931915283,
-0.06167883425951004,
-0.06107216328382492,
-0.241667240858078,
-0.2755624055862427,
-0.29496943950653076,
-0.061304971575737,
0.0028360821306705475,
0.10486900806427002,
-0.08245287835597992,
0.10372479259967804,
-0.014028685167431831,
-0.25724878907203674,
0.14875219762325287,
-0.11449077725410461,
0.03741693124175072,
-0.1460701823234558,
0.10244506597518921,
-0.10430790483951569,
-0.07039777934551239,
0.49939703941345215,
-0.002098366618156433,
-0.12898413836956024,
0.5953384637832642,
0.34262990951538086,
-0.11988013237714767,
-0.11467273533344269,
-0.09025713801383972,
-0.13938374817371368,
-0.47222572565078735,
-0.12965638935565948,
0.012480390258133411,
-0.053001582622528076,
-0.05213264748454094,
0.24472078680992126,
0.18441161513328552,
-0.16262337565422058,
0.07808658480644226,
-0.19434480369091034,
-0.2954612374305725,
0.2547382116317749,
-0.34947142004966736,
-0.042039018124341965,
0.13901886343955994,
0.10136687755584717,
0.3333050608634949,
0.014815934002399445,
-0.29645663499832153,
-0.2154645174741745,
0.054028041660785675,
0.20080877840518951,
0.3083439767360687,
-0.11868824809789658,
-0.05005430802702904,
-0.12764838337898254,
0.12124434113502502,
0.021271243691444397,
-0.1894858330488205,
-0.23024070262908936,
-0.031567759811878204,
0.1042666807770729,
0.046716686338186264,
0.08656778931617737,
-0.07817688584327698,
0.11140918731689453,
-0.03712981194257736,
-0.25353604555130005,
0.052871670573949814,
-0.22818294167518616,
0.1240537166595459,
0.18231557309627533,
0.11915799975395203,
0.17635266482830048,
-0.12095285952091217,
0.015098568052053452,
0.048274073749780655,
0.14237475395202637,
0.05326319858431816,
0.012956470251083374,
0.22157953679561615,
-0.011794239282608032,
-0.16906395554542542,
0.10427471250295639,
-0.18549980223178864,
0.2854597270488739,
0.29269370436668396,
-0.07731710374355316,
-0.2990322411060333,
-0.027036618441343307,
0.2942740321159363,
-0.032608114182949066,
-0.052861105650663376,
-0.04857456684112549,
0.010359115898609161,
0.19061288237571716,
-0.2196090817451477,
0.2674604058265686,
0.527988076210022,
0.11437215656042099,
0.055378507822752,
-0.07021316140890121,
0.3743455410003662,
-0.024659927934408188,
0.3387497067451477,
0.1726609170436859,
0.12175268679857254,
-0.1183096319437027,
0.24264216423034668,
0.21661469340324402,
0.35108619928359985,
0.056690823286771774,
0.02391413412988186,
-0.03071006014943123,
0.2304624617099762,
0.23972207307815552,
0.12880831956863403,
0.27862873673439026,
-0.08822842687368393,
0.0975489616394043,
0.030913684517145157,
-0.06298382580280304,
0.16391274333000183,
0.33403557538986206,
0.18038681149482727,
0.14405226707458496,
-0.12919408082962036,
0.5687989592552185,
0.1001940444111824,
-0.3893401622772217,
-0.2345823347568512,
0.24023175239562988,
-0.11699634045362473,
0.07403135299682617,
-0.31728386878967285,
-0.1861777901649475,
-0.23919405043125153,
0.15746480226516724,
-0.1074405312538147,
-0.12326614558696747,
-0.050429731607437134,
0.21565558016300201,
-0.19008339941501617,
-0.4732016623020172,
0.21016940474510193,
-0.03633842617273331,
0.3338368237018585,
-0.07308247685432434,
0.17064066231250763,
-0.0616362988948822,
-0.27757692337036133,
-0.07984620332717896,
0.28773507475852966,
0.2786320149898529,
0.10541664063930511,
-0.39099225401878357,
-0.12188658863306046,
0.15569394826889038,
-0.06407512724399567,
-0.15276475250720978,
0.08428388833999634,
0.26063060760498047,
-0.10130338370800018,
0.2616640329360962,
0.09725324809551239,
-0.274093896150589,
-0.12203674018383026,
0.0980752557516098,
-0.05502226576209068,
-0.12360024452209473,
0.013010695576667786,
-0.3181716501712799,
-0.19825834035873413,
-0.12009434401988983,
0.006536670029163361,
-0.4909355044364929,
0.16106903553009033,
-0.008207106962800026,
0.1992529183626175,
-0.05411982163786888,
-0.2968485355377197,
0.08566582202911377,
-0.13684630393981934,
0.597378134727478,
0.3424447774887085,
0.11179940402507782,
-0.1470000296831131,
-0.5365691184997559,
-0.5853415727615356,
0.2090299427509308,
-0.0629919022321701,
-0.04865700751543045,
0.07404320687055588,
0.19424201548099518,
0.2390596866607666,
0.16428054869174957,
0.0021004676818847656,
-0.17929527163505554,
0.08896065503358841,
-0.06625984609127045,
-0.464761883020401,
-0.06455028057098389,
-0.19048787653446198,
-0.258903831243515,
-0.12463223934173584,
0.024100691080093384,
-0.0880487859249115,
0.10577721148729324,
0.048800088465213776,
-0.019923135638237,
-0.26405781507492065,
0.061663348227739334,
-0.06827486306428909,
0.2982195317745209,
-0.05190408229827881,
0.3681994378566742,
-0.10127128660678864,
-0.220356285572052,
-0.29017186164855957,
-0.15610265731811523,
-0.04629845544695854,
0.3026440143585205,
-0.19343800842761993,
0.5210280418395996,
-0.008360371924936771,
-0.10020533204078674,
-0.3288210928440094,
0.690527081489563,
0.17339064180850983,
0.11755669116973877,
-0.3923225700855255,
0.023907756432890892,
-0.3116733431816101,
0.16229845583438873,
0.091018445789814,
0.3411857783794403,
-0.2714782953262329,
0.17413575947284698,
-0.46680378913879395,
-0.4499908685684204,
0.24987126886844635,
-0.45507290959358215,
-0.0926976352930069,
-0.00418470473960042,
0.11533906310796738,
-0.004739865660667419,
-0.057100504636764526,
-0.5571914911270142,
0.03359726816415787,
0.16372063755989075,
0.05430971086025238,
-0.09074952453374863,
0.10950922966003418,
-0.045588474720716476,
-0.12089352309703827,
-0.10418541729450226,
-0.17841312289237976,
0.1156887337565422,
-0.1695554256439209,
-0.08987568318843842,
-0.21513962745666504
] |
https://github.com/huggingface/datasets/issues/407 | MissingBeamOptions for Wikipedia 20200501.en | This is because only some languages are already preprocessed (en, de, fr, it) and stored on our google storage.
We plan to have a systematic way to preprocess more wikipedia languages in the future.
For the other languages you have to process them on your side using apache beam. That's why the lib asks for a Beam runner. | There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available):
```
nlp.load_dataset('wikipedia', "20200501.en", split='train')
```
And now, having pulled master, I get:
```
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd...
Traceback (most recent call last):
File "scripts/download.py", line 11, in <module>
fire.Fire(download_pretrain)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire
target=component.__name__)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "scripts/download.py", line 6, in download_pretrain
nlp.load_dataset('wikipedia', "20200501.en", split='train')
File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset
save_infos=save_infos,
File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, 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, S
park, 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.en', beam_runner='DirectRunner')`
``` | 58 | MissingBeamOptions for Wikipedia 20200501.en
There may or may not be a regression for the pre-processed Wikipedia dataset. This was working fine 10 commits ago (without having Apache Beam available):
```
nlp.load_dataset('wikipedia', "20200501.en", split='train')
```
And now, having pulled master, I get:
```
Downloading and preparing dataset wikipedia/20200501.en (download: 16.99 GiB, generated: 17.07 GiB, total: 34.06 GiB) to /home/hltcoe/mgordon/.cache/huggingface/datasets/wikipedia/20200501.en/1.0.0/76b0b2747b679bb0ee7a1621e50e5a6378477add0c662668a324a5bc07d516dd...
Traceback (most recent call last):
File "scripts/download.py", line 11, in <module>
fire.Fire(download_pretrain)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire
target=component.__name__)
File "/home/hltcoe/mgordon/.conda/envs/huggingface/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "scripts/download.py", line 6, in download_pretrain
nlp.load_dataset('wikipedia', "20200501.en", split='train')
File "/exp/mgordon/nlp/src/nlp/load.py", line 534, in load_dataset
save_infos=save_infos,
File "/exp/mgordon/nlp/src/nlp/builder.py", line 460, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/exp/mgordon/nlp/src/nlp/builder.py", line 870, 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, S
park, 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.en', beam_runner='DirectRunner')`
```
This is because only some languages are already preprocessed (en, de, fr, it) and stored on our google storage.
We plan to have a systematic way to preprocess more wikipedia languages in the future.
For the other languages you have to process them on your side using apache beam. That's why the lib asks for a Beam runner. | [
0.0666157603263855,
0.12667594850063324,
-0.02051224187016487,
-0.05423295497894287,
0.199618861079216,
0.15268704295158386,
0.1799740195274353,
0.3656729757785797,
-0.022209087386727333,
-0.08142633736133575,
0.14893512427806854,
0.2753816843032837,
-0.09172665327787399,
-0.16842246055603027,
0.24347248673439026,
-0.30586376786231995,
0.14550313353538513,
0.1239020973443985,
-0.3501994013786316,
-0.12868288159370422,
-0.0025926828384399414,
0.41259023547172546,
-0.21142828464508057,
-0.17825500667095184,
-0.5298829078674316,
0.06315382570028305,
-0.13151976466178894,
0.14280512928962708,
-0.0437915101647377,
-0.24998776614665985,
0.27792149782180786,
0.05930277332663536,
-0.08272373676300049,
0.12223896384239197,
-0.00011430802987888455,
0.07761125266551971,
0.6222483515739441,
-0.22390590608119965,
-0.5686730742454529,
0.011977165937423706,
0.13000094890594482,
-0.33365264534950256,
0.3843439221382141,
-0.25509873032569885,
-0.2759362757205963,
-0.11812957376241684,
0.11411834508180618,
-0.058530326932668686,
0.39380598068237305,
-0.01093596126884222,
0.21362538635730743,
0.23605576157569885,
0.297298401594162,
-0.12914156913757324,
0.6020240187644958,
0.06741520762443542,
-0.16625630855560303,
0.07933691143989563,
-0.16387449204921722,
-0.056476689875125885,
-0.27104076743125916,
0.47979459166526794,
0.13871712982654572,
-0.13700054585933685,
0.5526372194290161,
-0.2816210985183716,
0.022621415555477142,
-0.2574205696582794,
0.017453862354159355,
0.1826511025428772,
0.4940165579319,
-0.022984221577644348,
-0.10636746138334274,
-0.3746708035469055,
0.04460474103689194,
0.17873060703277588,
0.2480822205543518,
0.017208732664585114,
-0.15328963100910187,
-0.06720858812332153,
0.051210034638643265,
-0.22957982122898102,
-0.033292751759290695,
0.28875139355659485,
-0.0673934742808342,
0.4202924072742462,
-0.02890642359852791,
0.02147098258137703,
0.16685403883457184,
0.049622807651758194,
-0.31337234377861023,
0.036518458276987076,
0.09821435809135437,
0.23501591384410858,
-0.21651296317577362,
0.06369762122631073,
0.28688400983810425,
0.27052631974220276,
0.062014319002628326,
0.16959404945373535,
-0.27940046787261963,
0.1912723183631897,
0.020430181175470352,
-0.047091707587242126,
0.21989338099956512,
0.24082310497760773,
-0.041865698993206024,
-0.3533203899860382,
0.25167328119277954,
0.3364218473434448,
-0.0628027692437172,
0.1384645402431488,
0.1992911547422409,
-0.13873663544654846,
-0.27135583758354187,
0.13340246677398682,
0.009117070585489273,
-0.171702578663826,
0.10722740739583969,
0.05340878292918205,
-0.27779442071914673,
-0.1483333557844162,
-0.23782366514205933,
0.31988903880119324,
-0.025774624198675156,
0.40862274169921875,
0.2018832117319107,
0.1185925155878067,
-0.2835618555545807,
-0.2737644910812378,
-0.19572517275810242,
0.021234236657619476,
-0.47790250182151794,
0.025882070884108543,
0.3871362507343292,
-0.20970553159713745,
0.5165671706199646,
0.07585527747869492,
-0.03628600388765335,
0.05929242819547653,
-0.030197981745004654,
0.26442521810531616,
-0.07258366793394089,
0.1810254454612732,
0.12122587859630585,
0.2927807569503784,
0.2036844789981842,
0.019942745566368103,
-0.05308643355965614,
-0.32944393157958984,
0.07048428058624268,
-0.27638790011405945,
-0.2597139775753021,
0.167716845870018,
-0.31198787689208984,
0.15478947758674622,
0.04750702157616615,
0.18722744286060333,
-0.025387920439243317,
-0.18220281600952148,
-0.09672714024782181,
-0.12297053635120392,
-0.058292001485824585,
-0.14827390015125275,
0.5051089525222778,
0.4033135771751404,
0.029887940734624863,
-0.3304649889469147,
-0.062176208943128586,
0.10411548614501953,
-0.1011982336640358,
0.011720813810825348,
-0.15648207068443298,
0.5247728824615479,
-0.2857878804206848,
-0.15018871426582336,
0.2243133783340454,
0.051968518644571304,
-0.211226686835289,
0.1486307680606842,
-0.012657545506954193,
0.2708984315395355,
0.09758857637643814,
-0.052835531532764435,
-0.06728105247020721,
0.05180036276578903,
0.09197543561458588,
0.21845997869968414,
0.11319418996572495,
0.05293995141983032,
-0.3270508348941803,
-0.08778820931911469,
-0.007687374949455261,
0.07954835891723633,
0.35053861141204834,
-0.05055474489927292,
0.0635947585105896,
0.5883679986000061,
0.2980863153934479,
-0.1387823522090912,
0.2244141697883606,
0.4500529170036316,
-0.28894251585006714,
0.13684654235839844,
0.24537238478660583,
-0.059861864894628525,
-0.4651873707771301,
0.12080099433660507,
-0.14018315076828003,
0.4367896318435669,
-0.18319334089756012,
-0.002214491367340088,
-0.3467145562171936,
-0.13671435415744781,
-0.19681669771671295,
-0.5165303349494934,
0.20651324093341827,
0.20344695448875427,
-0.01857634447515011,
0.30464765429496765,
0.025430720299482346,
0.11620296537876129,
-0.04044170305132866,
0.05688844993710518,
-0.7796520590782166,
0.21452760696411133,
-0.31155872344970703,
-0.14111897349357605,
-0.01922939345240593,
0.30816522240638733,
0.11504562944173813,
-0.19354018568992615,
-0.12849578261375427,
0.22342270612716675,
-0.07892410457134247,
0.134190171957016,
0.014886796474456787,
-0.055087536573410034,
0.24042703211307526,
-0.32110103964805603,
0.09848317503929138,
0.31225842237472534,
-0.04630577191710472,
-0.12724082171916962,
-0.3034785985946655,
0.2799142599105835,
0.01822282001376152,
0.32264435291290283,
0.03340320289134979,
0.09193238615989685,
0.15483646094799042,
0.07258348166942596,
-0.23313337564468384,
-0.20265325903892517,
0.3785170316696167,
0.21760602295398712,
0.1366422325372696,
-0.023524953052401543,
0.11496280133724213,
0.004568241536617279,
0.17190223932266235,
0.06607957184314728,
0.011260252445936203,
-0.080915667116642,
-0.45100247859954834,
-0.2482416033744812,
0.3509312570095062,
-0.08578915894031525,
0.08168523013591766,
0.2645472586154938,
0.05249495059251785,
-0.016956551000475883,
-0.12286869436502457,
-0.20957818627357483,
0.19748781621456146,
0.1140875369310379,
0.3243005573749542,
0.08764618635177612,
0.14054301381111145,
0.19754460453987122,
-0.38152506947517395,
0.1906592696905136,
-0.1774681657552719,
0.0871339663863182,
-0.2838538587093353,
-0.09798715263605118,
-0.35406002402305603,
-0.45146122574806213,
-0.10524207353591919,
0.24881061911582947,
-0.39741262793540955,
-0.5874935984611511,
-0.056958653032779694,
0.18909955024719238,
-0.16337449848651886,
0.30572962760925293,
-0.029364202171564102,
-0.13036589324474335,
0.07419327646493912,
0.01979118213057518,
-0.3342629373073578,
-0.3922385573387146,
-0.20006772875785828,
0.08615186810493469,
0.10436016321182251,
-0.002149563282728195,
0.29014480113983154,
-0.0029741618782281876,
-0.027191687375307083,
-0.4731692373752594,
-0.5758975744247437,
0.3161933124065399,
-0.28385210037231445,
0.19026796519756317,
0.17792904376983643,
0.08815783262252808,
-0.22568722069263458,
-0.05873403325676918,
0.40694811940193176,
-0.1701163351535797,
-0.15046736598014832,
-0.01616045832633972,
-0.1277899295091629,
0.10100560635328293,
-0.1923411786556244,
-0.22173810005187988,
0.09537564218044281,
-0.3692918121814728,
0.015344128012657166,
0.0921725481748581,
-0.1812785267829895,
0.4691087007522583,
-0.10024932026863098,
-0.006287403870373964,
0.10052663832902908,
0.17226770520210266,
-0.24487991631031036,
0.08357448875904083,
0.34165987372398376,
-0.300398051738739,
-0.4568089246749878,
0.029568005353212357,
-0.17355284094810486,
0.05717124417424202,
0.3189312219619751,
-0.4997882843017578,
-0.04967721924185753,
0.09412267804145813,
0.0024686045944690704,
-0.13542680442333221,
0.0942458063364029,
0.5044301748275757,
0.011422133073210716,
-0.01686105877161026,
-0.2326323688030243,
-0.1519104540348053,
-0.14951834082603455,
-0.31484881043434143,
0.42698490619659424,
-0.19236868619918823,
0.3235906958580017,
-0.0036710798740386963,
1.0987775325775146,
-0.032661907374858856,
0.06560337543487549,
0.4224386513233185,
0.09330400824546814,
0.45210015773773193,
-0.275951087474823,
-0.2967289686203003,
0.23235629498958588,
-0.14866489171981812,
0.30133455991744995,
0.39189988374710083,
-0.014732912182807922,
-0.20506621897220612,
-0.36537131667137146,
0.009142987430095673,
-0.20908507704734802,
-0.3228648006916046,
0.09011059999465942,
-0.31934964656829834,
0.2913953363895416,
0.1660906821489334,
0.233596533536911,
-0.0019367178902029991,
-0.1577160358428955,
0.24411076307296753,
0.17091956734657288,
0.20703652501106262,
0.06955260783433914,
0.13792802393436432,
-0.05609280616044998,
-0.4986758232116699,
0.040960200130939484,
0.018963253125548363,
-0.0030061453580856323,
0.03895087167620659,
-0.13712604343891144,
0.20203706622123718,
0.04538576304912567,
0.5689497590065002,
-0.197740837931633,
-0.026344574987888336,
0.2490573227405548,
0.0347798690199852,
-0.7107811570167542,
-0.027566783130168915,
-0.05507418513298035,
0.1947842240333557,
0.28621816635131836,
0.17843487858772278,
-0.3835536241531372,
-0.2234925478696823,
0.31258341670036316,
0.061099354177713394,
-0.04698343947529793,
-0.02617485821247101,
-0.2916187644004822,
0.006637483835220337,
-0.42076513171195984,
-0.1309031844139099,
-0.15496760606765747,
0.14559635519981384,
0.07744259387254715,
0.16873107850551605,
0.08941434323787689,
0.028799250721931458,
-0.13350802659988403,
0.10535092651844025,
0.2781827449798584,
0.25022435188293457,
-0.11148560047149658,
0.14095990359783173,
0.6523587703704834,
-0.3377569019794464,
0.26288098096847534,
0.1982283890247345,
0.04554975405335426,
0.2173914611339569,
-0.040063343942165375,
-0.059036530554294586,
0.39873525500297546,
0.028937451541423798,
-0.04876308888196945,
-0.20305266976356506,
0.009422481060028076,
0.09405386447906494,
0.22913797199726105,
0.35067132115364075,
-0.2690444886684418,
-0.1362767219543457,
-0.27368441224098206,
0.523655891418457,
-0.017669346183538437,
-0.01137087494134903,
0.06929407268762589,
0.06701328605413437,
-0.33653709292411804,
0.34610772132873535,
0.24151837825775146,
0.7413393259048462,
0.03802787885069847,
0.39531832933425903,
0.20779237151145935,
0.302787721157074,
0.8601713180541992,
-0.3698049783706665,
0.18975122272968292,
-0.17427493631839752,
0.2201990783214569,
0.04168694466352463,
0.0354326106607914,
-0.19204285740852356,
-0.131045863032341,
-0.0968429446220398,
0.3844059705734253,
0.3848445415496826,
0.4188901484012604,
0.07600060105323792,
0.29991281032562256,
0.07616449147462845,
-0.3209705948829651,
-0.19505318999290466,
0.1271081417798996,
-0.20761708915233612,
0.586581826210022,
-0.37657034397125244,
-0.1308690458536148,
-0.2108006775379181,
-0.11665280908346176,
-0.25054866075515747,
0.18855175375938416,
-0.2747054100036621,
0.5069431066513062,
-0.17828799784183502,
-0.5959970355033875,
0.02124840021133423,
0.11277653276920319,
0.14744696021080017,
0.08831058442592621,
-0.4008163809776306,
0.36849743127822876,
-0.19408926367759705,
-0.23625831305980682,
-0.10856231302022934,
0.20971478521823883,
0.4952661395072937,
-0.17084991931915283,
-0.06167883425951004,
-0.06107216328382492,
-0.241667240858078,
-0.2755624055862427,
-0.29496943950653076,
-0.061304971575737,
0.0028360821306705475,
0.10486900806427002,
-0.08245287835597992,
0.10372479259967804,
-0.014028685167431831,
-0.25724878907203674,
0.14875219762325287,
-0.11449077725410461,
0.03741693124175072,
-0.1460701823234558,
0.10244506597518921,
-0.10430790483951569,
-0.07039777934551239,
0.49939703941345215,
-0.002098366618156433,
-0.12898413836956024,
0.5953384637832642,
0.34262990951538086,
-0.11988013237714767,
-0.11467273533344269,
-0.09025713801383972,
-0.13938374817371368,
-0.47222572565078735,
-0.12965638935565948,
0.012480390258133411,
-0.053001582622528076,
-0.05213264748454094,
0.24472078680992126,
0.18441161513328552,
-0.16262337565422058,
0.07808658480644226,
-0.19434480369091034,
-0.2954612374305725,
0.2547382116317749,
-0.34947142004966736,
-0.042039018124341965,
0.13901886343955994,
0.10136687755584717,
0.3333050608634949,
0.014815934002399445,
-0.29645663499832153,
-0.2154645174741745,
0.054028041660785675,
0.20080877840518951,
0.3083439767360687,
-0.11868824809789658,
-0.05005430802702904,
-0.12764838337898254,
0.12124434113502502,
0.021271243691444397,
-0.1894858330488205,
-0.23024070262908936,
-0.031567759811878204,
0.1042666807770729,
0.046716686338186264,
0.08656778931617737,
-0.07817688584327698,
0.11140918731689453,
-0.03712981194257736,
-0.25353604555130005,
0.052871670573949814,
-0.22818294167518616,
0.1240537166595459,
0.18231557309627533,
0.11915799975395203,
0.17635266482830048,
-0.12095285952091217,
0.015098568052053452,
0.048274073749780655,
0.14237475395202637,
0.05326319858431816,
0.012956470251083374,
0.22157953679561615,
-0.011794239282608032,
-0.16906395554542542,
0.10427471250295639,
-0.18549980223178864,
0.2854597270488739,
0.29269370436668396,
-0.07731710374355316,
-0.2990322411060333,
-0.027036618441343307,
0.2942740321159363,
-0.032608114182949066,
-0.052861105650663376,
-0.04857456684112549,
0.010359115898609161,
0.19061288237571716,
-0.2196090817451477,
0.2674604058265686,
0.527988076210022,
0.11437215656042099,
0.055378507822752,
-0.07021316140890121,
0.3743455410003662,
-0.024659927934408188,
0.3387497067451477,
0.1726609170436859,
0.12175268679857254,
-0.1183096319437027,
0.24264216423034668,
0.21661469340324402,
0.35108619928359985,
0.056690823286771774,
0.02391413412988186,
-0.03071006014943123,
0.2304624617099762,
0.23972207307815552,
0.12880831956863403,
0.27862873673439026,
-0.08822842687368393,
0.0975489616394043,
0.030913684517145157,
-0.06298382580280304,
0.16391274333000183,
0.33403557538986206,
0.18038681149482727,
0.14405226707458496,
-0.12919408082962036,
0.5687989592552185,
0.1001940444111824,
-0.3893401622772217,
-0.2345823347568512,
0.24023175239562988,
-0.11699634045362473,
0.07403135299682617,
-0.31728386878967285,
-0.1861777901649475,
-0.23919405043125153,
0.15746480226516724,
-0.1074405312538147,
-0.12326614558696747,
-0.050429731607437134,
0.21565558016300201,
-0.19008339941501617,
-0.4732016623020172,
0.21016940474510193,
-0.03633842617273331,
0.3338368237018585,
-0.07308247685432434,
0.17064066231250763,
-0.0616362988948822,
-0.27757692337036133,
-0.07984620332717896,
0.28773507475852966,
0.2786320149898529,
0.10541664063930511,
-0.39099225401878357,
-0.12188658863306046,
0.15569394826889038,
-0.06407512724399567,
-0.15276475250720978,
0.08428388833999634,
0.26063060760498047,
-0.10130338370800018,
0.2616640329360962,
0.09725324809551239,
-0.274093896150589,
-0.12203674018383026,
0.0980752557516098,
-0.05502226576209068,
-0.12360024452209473,
0.013010695576667786,
-0.3181716501712799,
-0.19825834035873413,
-0.12009434401988983,
0.006536670029163361,
-0.4909355044364929,
0.16106903553009033,
-0.008207106962800026,
0.1992529183626175,
-0.05411982163786888,
-0.2968485355377197,
0.08566582202911377,
-0.13684630393981934,
0.597378134727478,
0.3424447774887085,
0.11179940402507782,
-0.1470000296831131,
-0.5365691184997559,
-0.5853415727615356,
0.2090299427509308,
-0.0629919022321701,
-0.04865700751543045,
0.07404320687055588,
0.19424201548099518,
0.2390596866607666,
0.16428054869174957,
0.0021004676818847656,
-0.17929527163505554,
0.08896065503358841,
-0.06625984609127045,
-0.464761883020401,
-0.06455028057098389,
-0.19048787653446198,
-0.258903831243515,
-0.12463223934173584,
0.024100691080093384,
-0.0880487859249115,
0.10577721148729324,
0.048800088465213776,
-0.019923135638237,
-0.26405781507492065,
0.061663348227739334,
-0.06827486306428909,
0.2982195317745209,
-0.05190408229827881,
0.3681994378566742,
-0.10127128660678864,
-0.220356285572052,
-0.29017186164855957,
-0.15610265731811523,
-0.04629845544695854,
0.3026440143585205,
-0.19343800842761993,
0.5210280418395996,
-0.008360371924936771,
-0.10020533204078674,
-0.3288210928440094,
0.690527081489563,
0.17339064180850983,
0.11755669116973877,
-0.3923225700855255,
0.023907756432890892,
-0.3116733431816101,
0.16229845583438873,
0.091018445789814,
0.3411857783794403,
-0.2714782953262329,
0.17413575947284698,
-0.46680378913879395,
-0.4499908685684204,
0.24987126886844635,
-0.45507290959358215,
-0.0926976352930069,
-0.00418470473960042,
0.11533906310796738,
-0.004739865660667419,
-0.057100504636764526,
-0.5571914911270142,
0.03359726816415787,
0.16372063755989075,
0.05430971086025238,
-0.09074952453374863,
0.10950922966003418,
-0.045588474720716476,
-0.12089352309703827,
-0.10418541729450226,
-0.17841312289237976,
0.1156887337565422,
-0.1695554256439209,
-0.08987568318843842,
-0.21513962745666504
] |
https://github.com/huggingface/datasets/issues/406 | Faster Shuffling? | I think the slowness here probably come from the fact that we are copying from and to python.
@lhoestq for all the `select`-based methods I think we should stay in Arrow format and update the writer so that it can accept Arrow tables or batches as well. What do you think? | Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.) | 51 | Faster Shuffling?
Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.)
I think the slowness here probably come from the fact that we are copying from and to python.
@lhoestq for all the `select`-based methods I think we should stay in Arrow format and update the writer so that it can accept Arrow tables or batches as well. What do you think? | [
-0.1038486510515213,
0.0485299676656723,
-0.03246058523654938,
-0.12386848032474518,
-0.07871048152446747,
-0.139320969581604,
0.11683769524097443,
0.5494189262390137,
-0.2944585680961609,
0.08318287134170532,
-0.015448063611984253,
0.5307008028030396,
-0.13364878296852112,
-0.26115670800209045,
0.1678621470928192,
-0.09260378777980804,
0.060632336884737015,
-0.07314600050449371,
-0.25662127137184143,
-0.09112748503684998,
-0.10026232153177261,
-0.3960590064525604,
-0.21078059077262878,
-0.2046838253736496,
-0.00743101816624403,
-0.24361687898635864,
-0.23690520226955414,
0.11802143603563309,
-0.18448425829410553,
0.08459857106208801,
-0.19340261816978455,
0.23161274194717407,
-0.12379346042871475,
0.24561375379562378,
-0.00011484537390060723,
-0.18554413318634033,
0.07731778919696808,
0.13370877504348755,
-0.32807061076164246,
0.15748809278011322,
0.4777601659297943,
-0.0623350515961647,
-0.10906928032636642,
-0.20446422696113586,
0.16245916485786438,
-0.3435184061527252,
0.11615181714296341,
-0.07582241296768188,
-0.08991295099258423,
-0.03750970587134361,
0.13142716884613037,
0.3801163136959076,
-0.19889582693576813,
0.22042779624462128,
0.48175331950187683,
0.21349357068538666,
-0.35807716846466064,
0.3437613844871521,
0.39566996693611145,
-0.0749688521027565,
-0.14648839831352234,
0.2646940052509308,
-0.18782112002372742,
-0.03949715569615364,
0.20726278424263,
0.13425827026367188,
0.12855178117752075,
0.32304009795188904,
0.1072729229927063,
0.37266576290130615,
0.3013322353363037,
-0.20002031326293945,
-0.3548535406589508,
-0.28747278451919556,
0.20355580747127533,
-0.030812187120318413,
0.07917861640453339,
0.28572043776512146,
-0.28084540367126465,
-0.18769840896129608,
-0.12404464930295944,
0.10416018962860107,
0.23302105069160461,
-0.23027168214321136,
0.32012251019477844,
0.4178139567375183,
0.2373138815164566,
-0.09983106702566147,
0.6690919995307922,
-0.09531480073928833,
0.5340385437011719,
-0.1793564110994339,
0.07010340690612793,
0.4054661989212036,
-0.28783077001571655,
-0.28923678398132324,
-0.19909191131591797,
-0.08829044550657272,
-0.13594630360603333,
0.18035626411437988,
0.6696794629096985,
0.2038078010082245,
0.20099714398384094,
-0.054300904273986816,
0.082189179956913,
-0.015930484980344772,
-0.3168692886829376,
0.15699157118797302,
-0.09501580893993378,
0.08423720300197601,
0.25747451186180115,
0.09189517796039581,
-0.0717739462852478,
-0.30076026916503906,
-0.04482250288128853,
-0.2145741879940033,
-0.4414110779762268,
0.10365942120552063,
0.03235074132680893,
-0.2918609380722046,
-0.09601294994354248,
-0.06794601678848267,
0.012575573287904263,
0.2145962417125702,
-0.17452766001224518,
0.25483766198158264,
-0.06501001864671707,
-0.10675247013568878,
-0.15315167605876923,
0.052899476140737534,
-0.03970128297805786,
0.10250341892242432,
-0.07590220868587494,
0.0010083392262458801,
0.019383981823921204,
0.3855780065059662,
-0.25666916370391846,
0.07151193171739578,
0.1983615607023239,
0.3333362638950348,
0.03903243690729141,
-0.13710525631904602,
0.08120036870241165,
0.11646497249603271,
-0.12959277629852295,
-0.16260173916816711,
-0.10904151201248169,
0.05635026842355728,
-0.32825353741645813,
0.3956875205039978,
-0.02828911691904068,
-0.14977779984474182,
0.13973990082740784,
0.15680162608623505,
0.2815755605697632,
-0.28441163897514343,
-0.470671147108078,
-0.07426181435585022,
0.003281041979789734,
-0.032905638217926025,
0.0783742293715477,
-0.10771672427654266,
0.12940318882465363,
-0.14610908925533295,
0.006992533802986145,
-0.20682956278324127,
-0.031383320689201355,
0.11867280304431915,
0.018133142963051796,
0.5336562395095825,
0.4336853623390198,
0.6766952872276306,
-0.08356520533561707,
0.0888088047504425,
0.13139687478542328,
-0.03256651386618614,
0.7245679497718811,
0.1752949208021164,
-0.1763676106929779,
0.030356718227267265,
-0.07774096727371216,
0.07237062603235245,
0.4168796241283417,
0.1878635734319687,
0.049996186047792435,
-0.14467114210128784,
0.45569831132888794,
0.28588640689849854,
0.0005496479570865631,
0.2795185148715973,
-0.546266496181488,
-0.1266951709985733,
0.23730428516864777,
0.4326198697090149,
-0.4991603195667267,
-0.31791752576828003,
-0.010627873241901398,
-0.32047489285469055,
0.3234395384788513,
-0.20637208223342896,
-0.11092199385166168,
0.051992930471897125,
-0.028023432940244675,
0.08889304846525192,
-0.1518576443195343,
0.07104385644197464,
-0.19893917441368103,
-0.057110745459795,
-0.029155412688851357,
-0.0216977596282959,
0.24268776178359985,
-0.35577893257141113,
0.19911843538284302,
-0.17321519553661346,
0.11946938931941986,
0.1699107140302658,
-0.002422584220767021,
-0.20692458748817444,
0.39864957332611084,
-0.10005472600460052,
-0.07989335060119629,
-0.016100553795695305,
-0.25698021054267883,
0.0842135027050972,
-0.16890454292297363,
-0.11169611662626266,
0.04518914967775345,
-0.21436896920204163,
0.15801729261875153,
0.37180331349372864,
-0.2997276186943054,
0.04967622831463814,
0.10271575301885605,
0.21427130699157715,
-0.07665286958217621,
-0.12327846884727478,
0.0910351574420929,
0.19820760190486908,
-0.06377081573009491,
0.2575589716434479,
0.1842210441827774,
-0.1660938709974289,
0.15149427950382233,
-0.034502871334552765,
-0.32894182205200195,
0.5347304344177246,
-0.4930257499217987,
0.3141443133354187,
0.19858701527118683,
-0.2543622851371765,
-0.14082343876361847,
0.29900798201560974,
-0.09735818207263947,
0.42590582370758057,
0.646696150302887,
0.11169147491455078,
0.11359646916389465,
0.40008649230003357,
-0.33826741576194763,
0.09983793646097183,
0.5146846175193787,
-0.03206983581185341,
-0.15102756023406982,
0.10144101083278656,
0.08682375401258469,
-0.1578635275363922,
-0.1339074820280075,
0.0724571943283081,
0.2643631100654602,
0.2578003704547882,
0.1068163588643074,
-0.02206522412598133,
-0.06514866650104523,
-0.23134730756282806,
0.21507158875465393,
-0.0015313029289245605,
0.09619652479887009,
-0.14398133754730225,
0.10757749527692795,
-0.013751816935837269,
-0.1625155657529831,
-0.1773950457572937,
0.019707513973116875,
0.16395539045333862,
0.07676978409290314,
0.0736195296049118,
-0.06295275688171387,
-0.12400243431329727,
-0.18180377781391144,
-0.03651771321892738,
-0.04094722494482994,
-0.13409949839115143,
0.17596136033535004,
0.23944109678268433,
-0.2295587956905365,
-0.27098730206489563,
-0.10230103135108948,
0.2744613587856293,
-0.14864084124565125,
-0.1649526208639145,
-0.18736249208450317,
0.0778135433793068,
-0.11820829659700394,
0.05184781178832054,
0.23635166883468628,
0.28943368792533875,
0.35927435755729675,
0.06218650937080383,
-0.23679813742637634,
0.05182689428329468,
0.03151537477970123,
-0.23658332228660583,
0.024728402495384216,
-0.28239089250564575,
-0.05126272141933441,
-0.18438221514225006,
-0.3590666651725769,
-0.3232366442680359,
0.0791553258895874,
-0.1600935459136963,
-0.10071395337581635,
0.36069318652153015,
0.21800893545150757,
-0.22464066743850708,
-0.12314729392528534,
-0.07072048634290695,
-0.1353548914194107,
-0.364165723323822,
0.29477331042289734,
-0.0735342800617218,
0.15616163611412048,
-0.028066132217645645,
-0.15409862995147705,
-0.07475003600120544,
-0.4670972228050232,
-0.02915884368121624,
0.17794792354106903,
-0.1603422313928604,
0.2665258049964905,
0.07572388648986816,
-0.18763862550258636,
-0.45545709133148193,
-0.030902614817023277,
-0.045595694333314896,
0.43980318307876587,
-0.05042916163802147,
0.15850777924060822,
-0.4090268611907959,
-0.018544210121035576,
-0.06910347193479538,
0.24175292253494263,
0.4783864915370941,
-0.10122900456190109,
-0.11372585594654083,
0.33434733748435974,
0.19000834226608276,
-0.007276177406311035,
0.2815835475921631,
0.09399259835481644,
0.08733510971069336,
0.14531341195106506,
0.19172972440719604,
0.5485802888870239,
-0.008988632820546627,
0.40242549777030945,
-0.16788557171821594,
0.12517189979553223,
-0.026361044496297836,
-0.3092460036277771,
0.01916463114321232,
0.15458208322525024,
-0.014890670776367188,
-0.22021229565143585,
0.28605902194976807,
-0.13228529691696167,
-0.21670587360858917,
-0.1457938551902771,
0.4429788291454315,
0.09780310839414597,
-0.30712634325027466,
0.5698947906494141,
-0.243990957736969,
0.01149497926235199,
0.026276763528585434,
0.24269318580627441,
-0.11463335156440735,
-0.18291199207305908,
0.03937355428934097,
-0.07352443039417267,
-0.07365124672651291,
-0.030638013035058975,
-0.6124546527862549,
-0.15224188566207886,
-0.8054009675979614,
0.21659882366657257,
0.20301823318004608,
0.36970192193984985,
0.2696365714073181,
-0.32068750262260437,
0.43733739852905273,
-0.13145311176776886,
0.26839810609817505,
0.1939319670200348,
-0.3236963748931885,
0.26402243971824646,
-0.14013299345970154,
-0.45689085125923157,
-0.08404301106929779,
-0.3802318572998047,
-0.40312039852142334,
0.1451115608215332,
0.18132343888282776,
-0.35817763209342957,
-0.042772505432367325,
-0.015332754701375961,
-0.05651093274354935,
-0.017065290361642838,
0.012958095408976078,
-0.3901500999927521,
-0.23444750905036926,
0.0323265865445137,
0.25963258743286133,
-0.04613626375794411,
0.02543223835527897,
-0.05656681954860687,
0.2224271148443222,
0.15895453095436096,
0.0007255617529153824,
0.1433291882276535,
-0.10428686439990997,
-0.05405748635530472,
-0.05408117547631264,
0.15840619802474976,
0.16580738127231598,
0.06212218105792999,
-0.0909934863448143,
0.00221242755651474,
0.12316545844078064,
0.04167676717042923,
-0.15763601660728455,
-0.18935130536556244,
0.45935502648353577,
0.38674625754356384,
0.2079530954360962,
0.21296556293964386,
-0.024183496832847595,
0.32186660170555115,
-0.0059939781203866005,
-0.5208618640899658,
0.13080567121505737,
-0.295431524515152,
-0.10133906453847885,
-0.7717422842979431,
0.2592330574989319,
0.254367858171463,
0.1491476148366928,
0.22816206514835358,
-0.19633160531520844,
0.24707640707492828,
0.4275338053703308,
0.14100663363933563,
1.0107340812683105,
-0.3745572566986084,
0.49482834339141846,
0.302647203207016,
-0.21271899342536926,
0.0632099136710167,
-0.12885499000549316,
0.3773987293243408,
-0.17115618288516998,
-0.14089220762252808,
0.21824242174625397,
-0.1835121363401413,
0.002882547676563263,
0.046927791088819504,
-0.03766065835952759,
0.20101186633110046,
-0.00237109512090683,
-0.32391291856765747,
-0.3013599216938019,
-0.037096694111824036,
-0.4331662952899933,
-0.38658466935157776,
-0.16199977695941925,
0.0026142895221710205,
-0.03217260539531708,
-0.15970677137374878,
0.14176669716835022,
0.08124534785747528,
-0.46429136395454407,
0.11386854946613312,
-0.125108003616333,
-0.012902934104204178,
0.04880774766206741,
-0.006455607712268829,
0.20499195158481598,
-0.2861236333847046,
-0.06173260509967804,
-0.13866694271564484,
-0.12466330826282501,
0.1100132167339325,
0.18063512444496155,
0.1125105619430542,
0.2573268413543701,
0.3945135176181793,
0.3727916181087494,
-0.283570259809494,
0.28774306178092957,
-0.0632588192820549,
0.2500333786010742,
0.05619937181472778,
-0.00848119705915451,
-0.7355349659919739,
-0.30185097455978394,
0.08604396879673004,
0.5681177973747253,
-0.028694314882159233,
-0.14096786081790924,
0.23910357058048248,
-0.3686724901199341,
-0.09587287157773972,
0.10143075883388519,
0.05738456919789314,
0.10539231449365616,
0.4705403745174408,
0.13201671838760376,
-0.1886124610900879,
-0.011009395122528076,
0.28019046783447266,
0.10600904375314713,
0.1396576464176178,
0.3078072667121887,
0.0161026231944561,
-0.4802680015563965,
-0.22162505984306335,
0.1815701723098755,
0.041574738919734955,
-0.3499685525894165,
0.25907737016677856,
0.015689119696617126,
-0.0785723626613617,
0.12821169197559357,
0.28761813044548035,
-0.029578059911727905,
-0.05917016416788101,
-0.300186425447464,
-0.014993052929639816,
0.10739855468273163,
0.46695488691329956,
0.5261852741241455,
0.009929507970809937,
0.005060512572526932,
0.337923139333725,
-0.3852912485599518,
-0.15065065026283264,
-0.2425631582736969,
-0.18536917865276337,
0.0913316011428833,
0.12235258519649506,
-0.1389979124069214,
-0.28778043389320374,
-0.19264084100723267,
0.15052157640457153,
0.13074339926242828,
0.14841708540916443,
0.03299073874950409,
-0.19076433777809143,
0.07022318243980408,
0.034122124314308167,
0.027660224586725235,
-0.014018155634403229,
0.04777877777814865,
-0.3899274468421936,
-0.3449156880378723,
-0.23921582102775574,
-0.27365946769714355,
0.0012200064957141876,
-0.00835651159286499,
-0.27129411697387695,
0.20889613032341003,
0.13242989778518677,
-0.07760739326477051,
0.524964451789856,
-0.4731843173503876,
-0.2732440233230591,
-0.22085045278072357,
-0.006398607045412064,
-0.019097456708550453,
-0.0999411940574646,
-0.1110328882932663,
0.12368695437908173,
0.0560276173055172,
0.005403386428952217,
0.26634711027145386,
-0.1399294137954712,
0.05745377019047737,
-0.10296349227428436,
0.19432438910007477,
0.6351500153541565,
0.2898969352245331,
-0.44094225764274597,
0.4520813226699829,
0.1157829761505127,
-0.11291984468698502,
-0.23330740630626678,
-0.3544186055660248,
0.2145787477493286,
-0.004531163722276688,
0.102564737200737,
-0.27180132269859314,
-0.11246082186698914,
-0.32863718271255493,
-0.05948999151587486,
-0.1369463950395584,
-0.42067092657089233,
-0.23167097568511963,
0.3065515160560608,
0.3698609173297882,
-0.25230225920677185,
0.18014773726463318,
-0.004058964550495148,
-0.046777479350566864,
0.12942950427532196,
0.22708851099014282,
0.407735675573349,
0.6244723200798035,
0.3014627993106842,
-0.3874133825302124,
-0.11069740355014801,
-0.004011716693639755,
0.43788185715675354,
0.1801590621471405,
0.3086167871952057,
0.34066128730773926,
0.13451474905014038,
0.006603490095585585,
0.0796888992190361,
-0.021977979689836502,
-0.09283782541751862,
-0.03707980364561081,
0.0731729120016098,
0.07251445204019547,
-0.09472067654132843,
-0.21812847256660461,
0.20425179600715637,
-0.31949129700660706,
0.3458901643753052,
0.22643394768238068,
0.10362590104341507,
0.4627440571784973,
-0.393000990152359,
0.14526650309562683,
-0.22504636645317078,
0.44747215509414673,
-0.31342437863349915,
-0.16122877597808838,
-0.037499576807022095,
0.10319027304649353,
0.25385037064552307,
0.06627026200294495,
-0.07254794239997864,
0.2728683352470398,
-0.07904841005802155,
0.0622297041118145,
-0.508703351020813,
-0.014966803602874279,
-0.10642946511507034,
0.21637102961540222,
0.44504234194755554,
-0.08542856574058533,
0.279548704624176,
0.012232271954417229,
-0.1925520896911621,
-0.1656649261713028,
-0.09806066751480103,
-0.0690087080001831,
-0.1779291182756424,
0.16123570501804352,
0.20848163962364197,
-0.433599054813385,
-0.044525548815727234,
0.15022608637809753,
-0.25262078642845154,
-0.09614832699298859,
-0.5036633014678955,
-0.21495814621448517,
-0.10918180644512177,
0.023864034563302994,
0.055128708481788635,
0.19012844562530518,
0.6890674829483032,
0.42449167370796204,
-0.0805729404091835,
0.10325255244970322,
-0.27264583110809326,
-0.2619591951370239,
-0.3324976861476898,
-0.27984827756881714,
-0.009763868525624275,
0.23604686558246613,
0.48412561416625977,
0.24552476406097412,
0.271417498588562,
-0.04759681224822998,
0.15128396451473236,
-0.3728958070278168,
0.35686683654785156,
-0.14094480872154236,
0.2074206918478012,
0.16535276174545288,
-0.06301475316286087,
-0.21246594190597534,
-0.6004896759986877,
0.21048273146152496,
0.1409491002559662,
-0.0027433037757873535,
-0.07079318165779114,
0.0825919657945633,
0.2068641483783722,
0.3266086280345917,
-0.16946743428707123,
-0.03749360889196396,
-0.1736765205860138,
0.21706801652908325,
-0.20593354105949402,
-0.19061356782913208,
0.18586039543151855,
-0.022793086245656013,
0.01938823238015175,
0.07425558567047119,
0.12043723464012146,
0.06340114027261734,
0.007834751158952713,
0.13067613542079926,
0.5503000020980835,
-0.24065499007701874,
0.17330414056777954,
-0.26458078622817993,
0.05415137857198715,
0.21098792552947998,
0.2993125319480896,
-0.15807820856571198,
0.1426505446434021,
-0.048865869641304016,
-0.1984003335237503,
-0.2610493302345276,
0.00392347015440464,
0.39096570014953613,
-0.1595078408718109,
-0.2572922706604004,
-0.12660858035087585,
0.17813993990421295,
0.20043659210205078,
0.31410062313079834,
0.0848383679986,
-0.271945983171463,
-0.042042169719934464,
-0.002839338034391403,
0.32956311106681824,
0.26994964480400085,
-0.11659745872020721,
-0.061649251729249954,
-0.15463626384735107,
0.320080041885376,
-0.45247748494148254,
0.08766625821590424,
-0.23338747024536133,
-0.3020485043525696
] |
https://github.com/huggingface/datasets/issues/406 | Faster Shuffling? | > @lhoestq for all the `select`-based methods I think we should stay in Arrow format and update the writer so that it can accept Arrow tables or batches as well. What do you think?
I just tried with `writer.write_table` with tables of 1000 elements and it's slower that the solution in #405
On my side (select 10 000 examples):
- Original implementation: 12s
- Batched solution: 100ms
- solution using arrow tables: 350ms
I'll try with arrays and record batches to see if we can make it work. | Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.) | 88 | Faster Shuffling?
Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.)
> @lhoestq for all the `select`-based methods I think we should stay in Arrow format and update the writer so that it can accept Arrow tables or batches as well. What do you think?
I just tried with `writer.write_table` with tables of 1000 elements and it's slower that the solution in #405
On my side (select 10 000 examples):
- Original implementation: 12s
- Batched solution: 100ms
- solution using arrow tables: 350ms
I'll try with arrays and record batches to see if we can make it work. | [
-0.1645016372203827,
0.11813947558403015,
-0.0444609560072422,
-0.10497406125068665,
-0.08144184947013855,
-0.17317113280296326,
0.14772450923919678,
0.5459224581718445,
-0.23468312621116638,
0.06246296688914299,
-0.00008284137584269047,
0.5998942852020264,
-0.19479972124099731,
-0.22840169072151184,
0.2151889204978943,
-0.061212070286273956,
0.04766358062624931,
-0.0043829381465911865,
-0.282235711812973,
-0.04389882832765579,
-0.05621965229511261,
-0.41375720500946045,
-0.19948822259902954,
-0.1997065395116806,
-0.025771023705601692,
-0.2938668429851532,
-0.18785658478736877,
0.06976726651191711,
-0.1976442039012909,
0.07572338730096817,
-0.21733857691287994,
0.28118613362312317,
-0.052154384553432465,
0.25841712951660156,
-0.00011222035391256213,
-0.1701219528913498,
0.042504750192165375,
0.10373148322105408,
-0.31384527683258057,
0.1286941021680832,
0.3800336718559265,
-0.05211803317070007,
-0.1779630035161972,
-0.2150929570198059,
0.19089317321777344,
-0.3175550103187561,
0.15692654252052307,
-0.07846321165561676,
-0.13302560150623322,
-0.06412501633167267,
0.1537112146615982,
0.26567697525024414,
-0.15890459716320038,
0.2145543247461319,
0.5277478694915771,
0.24440793693065643,
-0.36380189657211304,
0.27250581979751587,
0.3779158890247345,
-0.12757492065429688,
-0.25583240389823914,
0.26001617312431335,
-0.15409114956855774,
-0.05056964233517647,
0.21408221125602722,
0.14193741977214813,
0.0656324028968811,
0.3851957321166992,
0.09774534404277802,
0.3810899257659912,
0.29666057229042053,
-0.19602811336517334,
-0.2890029847621918,
-0.25537538528442383,
0.17196083068847656,
-0.03694486245512962,
0.09811747819185257,
0.2776356041431427,
-0.2760345935821533,
-0.21664834022521973,
-0.17130045592784882,
0.09305699169635773,
0.20214730501174927,
-0.2257491797208786,
0.36821335554122925,
0.359519362449646,
0.18954312801361084,
-0.09791498631238937,
0.6719357371330261,
-0.12422268092632294,
0.5510308742523193,
-0.12629958987236023,
-0.004799641668796539,
0.40451356768608093,
-0.3214244246482849,
-0.3182564675807953,
-0.233739972114563,
-0.12059732526540756,
-0.046858303248882294,
0.1339874565601349,
0.690841019153595,
0.2351152002811432,
0.24408724904060364,
-0.03308967500925064,
0.02947443723678589,
0.0050699133425951,
-0.1881672739982605,
0.07869256287813187,
-0.1245698481798172,
0.14908450841903687,
0.25442928075790405,
0.11710470169782639,
-0.07661941647529602,
-0.30609437823295593,
-0.11845989525318146,
-0.2209761142730713,
-0.5335657596588135,
0.13608618080615997,
0.08554736524820328,
-0.2906821370124817,
-0.03085523284971714,
-0.07278747856616974,
0.019144698977470398,
0.21760785579681396,
-0.11345971375703812,
0.263650119304657,
-0.039084792137145996,
-0.18404892086982727,
-0.07678660750389099,
-0.02961677312850952,
-0.02131618745625019,
0.039533376693725586,
-0.13935256004333496,
0.04020054265856743,
0.11733020842075348,
0.4005279541015625,
-0.25640732049942017,
0.07050657272338867,
0.10314424335956573,
0.3123987019062042,
0.023626824840903282,
-0.1334686428308487,
0.09559370577335358,
0.009147167205810547,
-0.14627453684806824,
-0.20229479670524597,
-0.1624472588300705,
0.07484714686870575,
-0.2686474919319153,
0.40479347109794617,
0.008406631648540497,
-0.13144822418689728,
0.1649593710899353,
0.16824494302272797,
0.29206544160842896,
-0.256548672914505,
-0.5357551574707031,
0.028209036216139793,
0.015080422163009644,
-0.06021829694509506,
0.06546664983034134,
-0.023868001997470856,
0.06736163794994354,
-0.1401834636926651,
0.024453317746520042,
-0.2616640329360962,
-0.00004995614290237427,
0.1502283364534378,
-0.006719880737364292,
0.5517870783805847,
0.40127989649772644,
0.6005735993385315,
-0.06617752462625504,
0.09189406782388687,
0.15280787646770477,
-0.014736182987689972,
0.6540026068687439,
0.246709942817688,
-0.2185642272233963,
0.0435645654797554,
-0.04821661114692688,
-0.026214826852083206,
0.38947057723999023,
0.20756962895393372,
0.14556428790092468,
-0.11482474952936172,
0.4333433508872986,
0.23686987161636353,
-0.0020236317068338394,
0.3048754632472992,
-0.5437983274459839,
-0.18042589724063873,
0.25481322407722473,
0.4310244917869568,
-0.5073710680007935,
-0.39551055431365967,
0.04359911009669304,
-0.31577950716018677,
0.3072640895843506,
-0.19298049807548523,
-0.0006522382609546185,
0.04813791438937187,
-0.0866355448961258,
0.08192211389541626,
-0.1807377189397812,
0.05008137226104736,
-0.21627870202064514,
-0.0749923586845398,
-0.09664592891931534,
-0.012154899537563324,
0.28776007890701294,
-0.34272801876068115,
0.2107425332069397,
-0.2337409257888794,
0.20789897441864014,
0.19070512056350708,
0.021344680339097977,
-0.22415196895599365,
0.33851295709609985,
-0.17491796612739563,
-0.11151278018951416,
-0.07181108742952347,
-0.28857657313346863,
0.04253198206424713,
-0.1818866729736328,
-0.13390424847602844,
0.04934348911046982,
-0.20683526992797852,
0.14093652367591858,
0.3582645058631897,
-0.3306204676628113,
0.057180341333150864,
0.1285647749900818,
0.22768676280975342,
-0.12157073616981506,
-0.20042841136455536,
0.10788576304912567,
0.18386605381965637,
-0.07226146012544632,
0.2219087779521942,
0.10933302342891693,
-0.23689250648021698,
0.15980754792690277,
-0.024070005863904953,
-0.34390825033187866,
0.528779149055481,
-0.4670102894306183,
0.30602389574050903,
0.15083380043506622,
-0.2817952036857605,
-0.19832533597946167,
0.3005364239215851,
-0.03649596869945526,
0.41616690158843994,
0.6197941303253174,
0.07032005488872528,
-0.008537836372852325,
0.3828408420085907,
-0.2867332100868225,
0.11100515723228455,
0.4442736804485321,
0.035482797771692276,
-0.08743364363908768,
0.07636494934558868,
0.11519517004489899,
-0.143449068069458,
-0.14491161704063416,
0.028983939439058304,
0.22011014819145203,
0.2666475176811218,
0.06633021682500839,
-0.06584788858890533,
-0.05879034847021103,
-0.2190835177898407,
0.18542203307151794,
-0.05407439172267914,
0.10816623270511627,
-0.11614889651536942,
0.12547734379768372,
-0.0036934958770871162,
-0.1517491638660431,
-0.15325193107128143,
0.11248592287302017,
0.15172666311264038,
0.13174095749855042,
0.02664029411971569,
-0.09314623475074768,
-0.1624271720647812,
-0.11873847246170044,
-0.01482419203966856,
-0.04797529801726341,
-0.008570699952542782,
0.2399173229932785,
0.23915773630142212,
-0.2472819685935974,
-0.2346792072057724,
-0.03685004636645317,
0.3515048921108246,
-0.1599135845899582,
-0.043069250881671906,
-0.18562635779380798,
0.04277557134628296,
-0.0941629633307457,
0.09184083342552185,
0.22912801802158356,
0.27412065863609314,
0.3628982603549957,
0.09879880398511887,
-0.2361452579498291,
0.04639853537082672,
0.020085006952285767,
-0.2806491553783417,
0.03756950795650482,
-0.28016242384910583,
-0.05063503980636597,
-0.18149961531162262,
-0.40173274278640747,
-0.2940496504306793,
0.04845792427659035,
-0.21368758380413055,
-0.12095046043395996,
0.3594202995300293,
0.22135894000530243,
-0.19242538511753082,
-0.16470500826835632,
-0.14124277234077454,
-0.027190489694476128,
-0.41960757970809937,
0.3166358470916748,
-0.10182401537895203,
0.22292670607566833,
-0.07845703512430191,
-0.12161709368228912,
-0.07033301144838333,
-0.5059903264045715,
-0.025483356788754463,
0.19915705919265747,
-0.1796484887599945,
0.2476862668991089,
0.0956987664103508,
-0.18813323974609375,
-0.43132928013801575,
-0.03671736270189285,
-0.0820130705833435,
0.4609697461128235,
-0.05598845332860947,
0.2647235095500946,
-0.32759714126586914,
-0.0486321859061718,
-0.08815115690231323,
0.16407282650470734,
0.4675890803337097,
-0.12309848517179489,
-0.13212577998638153,
0.290636271238327,
0.18782664835453033,
0.09323486685752869,
0.24864080548286438,
0.14844143390655518,
0.107899971306324,
0.15831643342971802,
0.25777357816696167,
0.47584080696105957,
-0.013260106556117535,
0.35374605655670166,
-0.18064868450164795,
0.181161567568779,
-0.06292875111103058,
-0.3044179081916809,
0.0902213454246521,
0.17611847817897797,
-0.010492473840713501,
-0.13282686471939087,
0.31458941102027893,
-0.13034537434577942,
-0.23582866787910461,
-0.1519671380519867,
0.4087896943092346,
0.14061784744262695,
-0.2767404019832611,
0.6161749362945557,
-0.2175600826740265,
0.06697414815425873,
0.013095062226057053,
0.19894900918006897,
-0.07293947041034698,
-0.25818780064582825,
0.03466886654496193,
-0.07719455659389496,
-0.003563322126865387,
0.015766846016049385,
-0.6201174855232239,
-0.10379613935947418,
-0.7348021268844604,
0.19458214938640594,
0.2546137869358063,
0.4203137457370758,
0.2630217969417572,
-0.27318552136421204,
0.4100109934806824,
-0.1316813826560974,
0.24547390639781952,
0.1847006380558014,
-0.3379395604133606,
0.20781658589839935,
-0.03340379148721695,
-0.3991733193397522,
-0.03829573467373848,
-0.3553338944911957,
-0.3880004286766052,
0.0934058427810669,
0.21875189244747162,
-0.3698851466178894,
-0.015168271027505398,
-0.06485285609960556,
-0.09636363387107849,
-0.020888976752758026,
-0.02131558395922184,
-0.3431767225265503,
-0.1563173234462738,
0.02472243271768093,
0.3189603388309479,
-0.04194615036249161,
0.06361914426088333,
-0.03653392195701599,
0.20758648216724396,
0.18544484674930573,
0.0052050091326236725,
0.09255708754062653,
-0.11260610818862915,
-0.018958168104290962,
-0.044540438801050186,
0.1609748750925064,
0.14490710198879242,
0.0884866788983345,
-0.001681208610534668,
-0.06760599464178085,
0.15657706558704376,
0.13074472546577454,
-0.07751639932394028,
-0.2168569713830948,
0.4103648364543915,
0.35443082451820374,
0.21328459680080414,
0.28648635745048523,
0.031882550567388535,
0.2609131932258606,
-0.004494738765060902,
-0.46094682812690735,
0.0524827316403389,
-0.33687981963157654,
-0.11119884252548218,
-0.7022072672843933,
0.22072693705558777,
0.2098456770181656,
0.12914830446243286,
0.2435232549905777,
-0.19229568541049957,
0.19434213638305664,
0.3991001844406128,
0.17936119437217712,
0.9543702602386475,
-0.34255725145339966,
0.43950915336608887,
0.20055347681045532,
-0.2498931735754013,
0.04216514900326729,
-0.17188414931297302,
0.43397682905197144,
-0.1869431436061859,
-0.14281721413135529,
0.2209911048412323,
-0.16025884449481964,
-0.003896743059158325,
0.17496660351753235,
0.010383296757936478,
0.14083907008171082,
0.05458301305770874,
-0.2724599242210388,
-0.2982913553714752,
-0.07692452520132065,
-0.3973245322704315,
-0.40004971623420715,
-0.08126070350408554,
0.007990743964910507,
-0.09127026796340942,
-0.26163968443870544,
0.1299058496952057,
0.03972814977169037,
-0.4066438376903534,
0.13744178414344788,
-0.12833277881145477,
-0.03391091153025627,
0.02526405081152916,
-0.018780402839183807,
0.23130080103874207,
-0.2472967952489853,
-0.011832020245492458,
-0.13894174993038177,
-0.16547001898288727,
0.11753694713115692,
0.17827105522155762,
0.08767107129096985,
0.27323219180107117,
0.34765559434890747,
0.3208281099796295,
-0.2797985374927521,
0.2450404316186905,
-0.038629766553640366,
0.2470974624156952,
0.026927229017019272,
-0.00942289549857378,
-0.739814281463623,
-0.2770697772502899,
0.08141030371189117,
0.5765283703804016,
-0.046243924647569656,
-0.041252002120018005,
0.22886452078819275,
-0.36777380108833313,
-0.08741213381290436,
0.12260128557682037,
0.023457832634449005,
0.1255798637866974,
0.43177637457847595,
0.1474372148513794,
-0.17110103368759155,
-0.003244612365961075,
0.3074454069137573,
0.10083115100860596,
0.1374729573726654,
0.21424123644828796,
0.05120332911610603,
-0.498279333114624,
-0.27632713317871094,
0.1729944944381714,
0.05609623342752457,
-0.42369669675827026,
0.2555828094482422,
0.03469197079539299,
-0.09983061999082565,
0.19837430119514465,
0.2802026867866516,
-0.04443323612213135,
-0.07016140967607498,
-0.23477156460285187,
-0.04221244901418686,
0.07784400880336761,
0.48231279850006104,
0.43760818243026733,
-0.009276974946260452,
0.043451935052871704,
0.27736398577690125,
-0.409894198179245,
-0.10126863420009613,
-0.2635428309440613,
-0.17069213092327118,
0.10311298817396164,
0.19171614944934845,
-0.15709467232227325,
-0.24858185648918152,
-0.23145459592342377,
0.12177436053752899,
0.10951244831085205,
0.18563739955425262,
0.009959911927580833,
-0.22042956948280334,
0.06522345542907715,
0.026853442192077637,
0.06927399337291718,
-0.012405971065163612,
-0.04421967267990112,
-0.40565842390060425,
-0.4026627540588379,
-0.2240932285785675,
-0.25563952326774597,
-0.058100730180740356,
-0.018628880381584167,
-0.29519277811050415,
0.1893862783908844,
0.15266340970993042,
-0.14542141556739807,
0.5044117569923401,
-0.4405691921710968,
-0.2880328297615051,
-0.2536030411720276,
-0.03905554860830307,
-0.020436568185687065,
-0.10003950446844101,
-0.12372719496488571,
0.13223779201507568,
0.0891379788517952,
-0.009800519794225693,
0.2713644504547119,
-0.14506599307060242,
0.03268509730696678,
-0.05425645411014557,
0.1430613398551941,
0.5390293598175049,
0.2918039560317993,
-0.4942598044872284,
0.4230974018573761,
0.13871891796588898,
-0.06855781376361847,
-0.20511914789676666,
-0.4018734097480774,
0.2666891813278198,
0.015881996601819992,
0.07364954054355621,
-0.21125851571559906,
-0.22868035733699799,
-0.3007596731185913,
-0.0467095710337162,
-0.1985912322998047,
-0.4065411686897278,
-0.2695237696170807,
0.3000281751155853,
0.3499613404273987,
-0.28103768825531006,
0.15489685535430908,
-0.02092287316918373,
-0.02630450576543808,
0.12677232921123505,
0.26937833428382874,
0.3928060531616211,
0.7060081362724304,
0.3252287805080414,
-0.4333920180797577,
-0.08915172517299652,
-0.05499504134058952,
0.4373282492160797,
0.24195945262908936,
0.2988146245479584,
0.3137165904045105,
0.17321428656578064,
0.05102754011750221,
0.07509712129831314,
0.04859279841184616,
-0.1860368251800537,
-0.05487143248319626,
0.08301042020320892,
-0.012910347431898117,
-0.14323118329048157,
-0.2376493364572525,
0.18426981568336487,
-0.315250962972641,
0.3856137990951538,
0.18624275922775269,
0.07947830110788345,
0.42949849367141724,
-0.44281017780303955,
0.1762869954109192,
-0.08074071258306503,
0.4567207992076874,
-0.2809704542160034,
-0.06468315422534943,
-0.04321925342082977,
0.10534220933914185,
0.3080558180809021,
0.09015718847513199,
-0.17980390787124634,
0.27044278383255005,
-0.051999304443597794,
0.07882519066333771,
-0.48743167519569397,
0.02171333320438862,
-0.10577046871185303,
0.23211094737052917,
0.493317574262619,
-0.14538602530956268,
0.25717881321907043,
0.02644840069115162,
-0.19357427954673767,
-0.1281031370162964,
-0.06671042740345001,
-0.03816667199134827,
-0.0670606791973114,
0.06327085196971893,
0.2352295070886612,
-0.42571860551834106,
0.028172874823212624,
0.14500749111175537,
-0.2164345383644104,
-0.09083279967308044,
-0.4721766412258148,
-0.24135412275791168,
-0.09591639041900635,
-0.03373713418841362,
0.06942322105169296,
0.1823054403066635,
0.6906648278236389,
0.3652186095714569,
-0.13648492097854614,
0.10336191952228546,
-0.3405781388282776,
-0.1763213872909546,
-0.3086303174495697,
-0.22023162245750427,
0.06918033957481384,
0.23126323521137238,
0.45501622557640076,
0.2721424698829651,
0.22781966626644135,
-0.06829379498958588,
0.13934440910816193,
-0.36661842465400696,
0.39844760298728943,
-0.18068723380565643,
0.28564903140068054,
0.21908526122570038,
-0.02906741015613079,
-0.18110869824886322,
-0.6279545426368713,
0.2281729131937027,
0.17175856232643127,
0.013129658997058868,
-0.04959055036306381,
0.10541421175003052,
0.17741842567920685,
0.34261441230773926,
-0.21936145424842834,
-0.028270041570067406,
-0.22091761231422424,
0.2068750262260437,
-0.14635926485061646,
-0.22189313173294067,
0.148095041513443,
-0.04416298493742943,
-0.0158984437584877,
0.16304172575473785,
0.13581962883472443,
0.07468757778406143,
0.03217262774705887,
0.17456473410129547,
0.4784034192562103,
-0.26357948780059814,
0.2802175283432007,
-0.2502789795398712,
0.001743389293551445,
0.16439029574394226,
0.276826947927475,
-0.17530138790607452,
0.11200759559869766,
-0.0119548961520195,
-0.3054998815059662,
-0.24771733582019806,
-0.007318388670682907,
0.3155238628387451,
-0.14593800902366638,
-0.2534736692905426,
-0.07853629440069199,
0.1924697458744049,
0.28319498896598816,
0.3042113482952118,
0.023190192878246307,
-0.3225082755088806,
-0.05371278151869774,
0.029833270236849785,
0.33155524730682373,
0.24891985952854156,
-0.19830889999866486,
-0.04021427035331726,
-0.14521485567092896,
0.31504589319229126,
-0.42082828283309937,
0.11106778681278229,
-0.2892528176307678,
-0.3250940442085266
] |
https://github.com/huggingface/datasets/issues/406 | Faster Shuffling? | I tried using `.take` from pyarrow recordbatches but it doesn't improve the speed that much:
```python
import nlp
import numpy as np
dset = nlp.Dataset.from_file("dummy_test_select.arrow") # dummy dataset with 100000 examples like {"a": "h"*512}
indices = np.random.randint(0, 100_000, 1000_000)
```
```python
%%time
batch_size = 10_000
writer = ArrowWriter(schema=dset.schema, path="dummy_path",
writer_batch_size=1000, disable_nullable=False)
for i in tqdm(range(0, len(indices), batch_size)):
table = pa.concat_tables(dset._data.slice(int(i), 1) for i in indices[i : min(len(indices), i + batch_size)])
batch = table.to_pydict()
writer.write_batch(batch)
writer.finalize()
# 9.12s
```
```python
%%time
batch_size = 10_000
writer = ArrowWriter(schema=dset.schema, path="dummy_path",
writer_batch_size=1000, disable_nullable=False)
for i in tqdm(range(0, len(indices), batch_size)):
batch_indices = indices[i : min(len(indices), i + batch_size)]
# First, extract only the indices that we need with a mask
mask = [False] * len(dset)
for k in batch_indices:
mask[k] = True
t_batch = dset._data.filter(pa.array(mask))
# Second, build the list of indices for the filtered table, and taking care of duplicates
rev_positions = {}
duplicates = 0
for i, j in enumerate(sorted(batch_indices)):
if j in rev_positions:
duplicates += 1
else:
rev_positions[j] = i - duplicates
rev_map = [rev_positions[j] for j in batch_indices]
# Third, use `.take` from the combined recordbatch
t_combined = t_batch.combine_chunks() # load in memory
recordbatch = t_combined.to_batches()[0]
table = pa.Table.from_arrays(
[recordbatch[c].take(pa.array(rev_map)) for c in range(len(dset._data.column_names))],
schema=writer.schema
)
writer.write_table(table)
writer.finalize()
# 3.2s
```
| Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.) | 210 | Faster Shuffling?
Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.)
I tried using `.take` from pyarrow recordbatches but it doesn't improve the speed that much:
```python
import nlp
import numpy as np
dset = nlp.Dataset.from_file("dummy_test_select.arrow") # dummy dataset with 100000 examples like {"a": "h"*512}
indices = np.random.randint(0, 100_000, 1000_000)
```
```python
%%time
batch_size = 10_000
writer = ArrowWriter(schema=dset.schema, path="dummy_path",
writer_batch_size=1000, disable_nullable=False)
for i in tqdm(range(0, len(indices), batch_size)):
table = pa.concat_tables(dset._data.slice(int(i), 1) for i in indices[i : min(len(indices), i + batch_size)])
batch = table.to_pydict()
writer.write_batch(batch)
writer.finalize()
# 9.12s
```
```python
%%time
batch_size = 10_000
writer = ArrowWriter(schema=dset.schema, path="dummy_path",
writer_batch_size=1000, disable_nullable=False)
for i in tqdm(range(0, len(indices), batch_size)):
batch_indices = indices[i : min(len(indices), i + batch_size)]
# First, extract only the indices that we need with a mask
mask = [False] * len(dset)
for k in batch_indices:
mask[k] = True
t_batch = dset._data.filter(pa.array(mask))
# Second, build the list of indices for the filtered table, and taking care of duplicates
rev_positions = {}
duplicates = 0
for i, j in enumerate(sorted(batch_indices)):
if j in rev_positions:
duplicates += 1
else:
rev_positions[j] = i - duplicates
rev_map = [rev_positions[j] for j in batch_indices]
# Third, use `.take` from the combined recordbatch
t_combined = t_batch.combine_chunks() # load in memory
recordbatch = t_combined.to_batches()[0]
table = pa.Table.from_arrays(
[recordbatch[c].take(pa.array(rev_map)) for c in range(len(dset._data.column_names))],
schema=writer.schema
)
writer.write_table(table)
writer.finalize()
# 3.2s
```
| [
-0.207303985953331,
0.14242860674858093,
-0.02560342848300934,
-0.14534984529018402,
-0.10259105265140533,
-0.1113145500421524,
0.12113602459430695,
0.5408864617347717,
-0.23658259212970734,
0.019071638584136963,
-0.03811802715063095,
0.5862328410148621,
-0.16830332577228546,
-0.2764606177806854,
0.2058223932981491,
-0.04113731533288956,
0.033152393996715546,
-0.036208972334861755,
-0.21471184492111206,
-0.047125279903411865,
-0.05001875385642052,
-0.4499431252479553,
-0.23843950033187866,
-0.223476842045784,
-0.012647726573050022,
-0.22572436928749084,
-0.16544538736343384,
0.07869146764278412,
-0.16545695066452026,
0.05516095459461212,
-0.1150204986333847,
0.201287642121315,
-0.10800759494304657,
0.16675765812397003,
-0.00011678288137773052,
-0.1386462152004242,
0.09931482374668121,
0.1305755078792572,
-0.3299332559108734,
0.17832136154174805,
0.45150119066238403,
-0.050490111112594604,
-0.12900584936141968,
-0.19089630246162415,
0.19028258323669434,
-0.414374440908432,
0.08657155185937881,
-0.11465057730674744,
-0.1485530585050583,
-0.022917630150914192,
0.11401410400867462,
0.31411242485046387,
-0.18185073137283325,
0.25567060708999634,
0.4748258888721466,
0.2703830301761627,
-0.375065416097641,
0.3879562318325043,
0.2586723566055298,
-0.021414443850517273,
-0.1545356810092926,
0.25565776228904724,
-0.1949244737625122,
0.018123600631952286,
0.14307339489459991,
0.1754685342311859,
0.10234527289867401,
0.4606054723262787,
0.10739695280790329,
0.40372544527053833,
0.2905983626842499,
-0.25497329235076904,
-0.29782834649086,
-0.29418742656707764,
0.23300155997276306,
-0.07974643260240555,
0.05702558532357216,
0.30162689089775085,
-0.27353256940841675,
-0.21540051698684692,
-0.0974205732345581,
0.16403405368328094,
0.24801543354988098,
-0.2000270038843155,
0.3221803605556488,
0.3900917172431946,
0.20211763679981232,
-0.06073091924190521,
0.7018340229988098,
-0.10578159987926483,
0.4943523705005646,
-0.1712978184223175,
0.021908827126026154,
0.4116857349872589,
-0.3191821873188019,
-0.26360201835632324,
-0.3010388910770416,
-0.1255474090576172,
-0.07115582376718521,
0.16033288836479187,
0.6939622759819031,
0.2144635021686554,
0.190500408411026,
-0.047399356961250305,
0.04629845172166824,
0.0036274679005146027,
-0.30002671480178833,
0.07142285257577896,
-0.13240501284599304,
0.06484851986169815,
0.3124973177909851,
0.12530100345611572,
-0.07771134376525879,
-0.3089750111103058,
-0.0426202118396759,
-0.22807550430297852,
-0.48016828298568726,
0.11606046557426453,
0.009132998064160347,
-0.3454589545726776,
-0.13750001788139343,
-0.05334160849452019,
0.006660823710262775,
0.15207239985466003,
-0.1462172418832779,
0.25346702337265015,
-0.082131028175354,
-0.16872690618038177,
-0.11358743160963058,
0.028761904686689377,
-0.03240325674414635,
0.08957323431968689,
-0.10629060864448547,
0.07185528427362442,
0.02999648079276085,
0.47170135378837585,
-0.25290653109550476,
0.016954880207777023,
0.09523984044790268,
0.3210921287536621,
0.04331055283546448,
-0.11361826956272125,
0.08302945643663406,
0.11236836761236191,
-0.09799535572528839,
-0.14904020726680756,
-0.1326775699853897,
0.04593236744403839,
-0.3395206332206726,
0.38543328642845154,
0.025913096964359283,
-0.11795409023761749,
0.06963042169809341,
0.12440623342990875,
0.24364136159420013,
-0.2887316644191742,
-0.5230556726455688,
-0.06483756005764008,
-0.031108997762203217,
-0.10967989265918732,
0.08879884332418442,
-0.0550127848982811,
0.08861856162548065,
-0.1288464516401291,
0.06463406980037689,
-0.2630297541618347,
-0.07936020940542221,
0.10275483131408691,
-0.05877352133393288,
0.5555558204650879,
0.4522922933101654,
0.6798382997512817,
-0.07100526243448257,
0.056803226470947266,
0.10809396207332611,
0.030906274914741516,
0.6843832731246948,
0.19454194605350494,
-0.25321340560913086,
-0.019348181784152985,
-0.11208920180797577,
0.02533332072198391,
0.34295547008514404,
0.2405741661787033,
0.06896078586578369,
-0.07797455042600632,
0.37467971444129944,
0.29429173469543457,
0.04834963381290436,
0.2648991644382477,
-0.48719799518585205,
-0.13624954223632812,
0.23100361227989197,
0.4312668442726135,
-0.6047836542129517,
-0.36732053756713867,
0.04098912701010704,
-0.2627372443675995,
0.3437725305557251,
-0.16342024505138397,
-0.024147529155015945,
-0.002875581383705139,
-0.07283656299114227,
0.004096649587154388,
-0.16738294064998627,
0.1009114608168602,
-0.2770049571990967,
-0.08510266244411469,
-0.012309839949011803,
-0.09344351291656494,
0.2220735251903534,
-0.3609884977340698,
0.1847946047782898,
-0.1915207803249359,
0.19161319732666016,
0.20728707313537598,
-0.010497260838747025,
-0.198013037443161,
0.42995738983154297,
-0.10241517424583435,
-0.08071396499872208,
-0.031038733199238777,
-0.2975619435310364,
0.03710893169045448,
-0.1596858650445938,
-0.1389845311641693,
0.11403056979179382,
-0.2169334590435028,
0.13561713695526123,
0.35889530181884766,
-0.29142671823501587,
0.0721103772521019,
0.09998291730880737,
0.2370677888393402,
-0.09144063293933868,
-0.18857376277446747,
0.03440200537443161,
0.24012790620326996,
-0.05743039399385452,
0.22634732723236084,
0.11869309842586517,
-0.20455294847488403,
0.1560783088207245,
-0.05302291363477707,
-0.4021677076816559,
0.5432929992675781,
-0.48475322127342224,
0.3439679443836212,
0.18779289722442627,
-0.2420198917388916,
-0.12566569447517395,
0.26058751344680786,
-0.07519453763961792,
0.4508639872074127,
0.5965426564216614,
0.06350891292095184,
0.07480154931545258,
0.4007711112499237,
-0.27269208431243896,
0.049173541367053986,
0.4478169083595276,
-0.0474843755364418,
-0.0537605881690979,
0.07784253358840942,
-0.024494290351867676,
-0.2125130295753479,
-0.08564343303442001,
0.026969101279973984,
0.21423333883285522,
0.2641347348690033,
0.11263084411621094,
-0.047985829412937164,
-0.08722329139709473,
-0.23040734231472015,
0.16144710779190063,
-0.04659833014011383,
0.08370453119277954,
-0.09750813990831375,
0.11205698549747467,
-0.030385013669729233,
-0.21481668949127197,
-0.18301698565483093,
0.09669547528028488,
0.18355484306812286,
0.13545159995555878,
0.06915534287691116,
-0.140934020280838,
-0.10866004228591919,
-0.12632082402706146,
-0.08095823973417282,
0.028073851019144058,
-0.10201679170131683,
0.11476047337055206,
0.24892359972000122,
-0.20364725589752197,
-0.2030910849571228,
-0.11689241230487823,
0.335202693939209,
-0.10545063763856888,
-0.19403091073036194,
-0.18234357237815857,
-0.009136021137237549,
-0.13431522250175476,
0.048568639904260635,
0.19787518680095673,
0.35587063431739807,
0.3271758556365967,
0.14947131276130676,
-0.2200954109430313,
0.021560706198215485,
0.09381120651960373,
-0.22090980410575867,
0.09694778919219971,
-0.3778560757637024,
-0.08128918707370758,
-0.1770182102918625,
-0.4263559579849243,
-0.2799151837825775,
0.059440650045871735,
-0.11731769144535065,
-0.09088011831045151,
0.3733414113521576,
0.1376008838415146,
-0.20645034313201904,
-0.1201338917016983,
-0.04932226985692978,
-0.07491423189640045,
-0.3606601059436798,
0.3090265989303589,
-0.12537416815757751,
0.1422906517982483,
-0.0030990727245807648,
-0.10964655876159668,
-0.02490784227848053,
-0.5705381035804749,
-0.05547959357500076,
0.1581893414258957,
-0.11931418627500534,
0.2787485122680664,
0.11740044504404068,
-0.1336585432291031,
-0.451035737991333,
-0.06930947303771973,
-0.08965016901493073,
0.49836814403533936,
-0.07748771458864212,
0.22129276394844055,
-0.3810475766658783,
-0.034408632665872574,
-0.10129275918006897,
0.14044667780399323,
0.4684353172779083,
-0.18753531575202942,
-0.10237277299165726,
0.30782538652420044,
0.17360709607601166,
0.07016097009181976,
0.2383754551410675,
0.11952392011880875,
0.12133295834064484,
0.13633446395397186,
0.22585812211036682,
0.47334951162338257,
-0.047022655606269836,
0.24903002381324768,
-0.24660533666610718,
0.04611142724752426,
-0.030770856887102127,
-0.3000231087207794,
0.14437225461006165,
0.19480642676353455,
0.017512813210487366,
-0.12045357376337051,
0.2602737545967102,
-0.10879361629486084,
-0.2526511549949646,
-0.057994499802589417,
0.4636715352535248,
0.16345328092575073,
-0.2731421887874603,
0.5276739597320557,
-0.20752030611038208,
0.0069014281034469604,
-0.009987028315663338,
0.21939736604690552,
-0.07580622285604477,
-0.2332177460193634,
0.08656033873558044,
-0.0811876505613327,
-0.039381854236125946,
-0.005483143497258425,
-0.591270923614502,
-0.09392023831605911,
-0.6903501749038696,
0.22435779869556427,
0.20334258675575256,
0.4551718533039093,
0.29346394538879395,
-0.3032821714878082,
0.4281892776489258,
-0.12670722603797913,
0.26249784231185913,
0.18449199199676514,
-0.29109299182891846,
0.20603390038013458,
0.00622151792049408,
-0.488209068775177,
-0.07448980212211609,
-0.33857205510139465,
-0.3702446520328522,
0.09648162126541138,
0.2184394747018814,
-0.39186567068099976,
0.0253925584256649,
0.013566486537456512,
-0.07724287360906601,
-0.015702567994594574,
0.011920752935111523,
-0.37586110830307007,
-0.24667111039161682,
0.07837394624948502,
0.2998020350933075,
-0.053579263389110565,
0.008026467636227608,
0.10297208279371262,
0.23696653544902802,
0.12670116126537323,
-0.010369248688220978,
0.06483031064271927,
-0.08992443978786469,
-0.01972205378115177,
-0.00009527290239930153,
0.13765530288219452,
0.1903952807188034,
0.08322300761938095,
-0.1275292932987213,
-0.050888366997241974,
0.24871744215488434,
0.02489616721868515,
-0.1076383963227272,
-0.16378313302993774,
0.3971324563026428,
0.33310943841934204,
0.22230443358421326,
0.25124093890190125,
0.043530337512493134,
0.27047204971313477,
0.01934812031686306,
-0.44960880279541016,
0.09027517586946487,
-0.34589657187461853,
-0.07792158424854279,
-0.6981344819068909,
0.335374116897583,
0.30341970920562744,
0.14670777320861816,
0.23826396465301514,
-0.13125872611999512,
0.2583997845649719,
0.3906698226928711,
0.1868165135383606,
0.9388623237609863,
-0.3655797243118286,
0.43242529034614563,
0.31746605038642883,
-0.2735365033149719,
0.07709810137748718,
-0.09529837220907211,
0.36207014322280884,
-0.16649872064590454,
-0.06150093674659729,
0.22909502685070038,
-0.20282183587551117,
-0.035940542817115784,
0.07395501434803009,
0.03641701862215996,
0.12655065953731537,
-0.010872676968574524,
-0.2703080177307129,
-0.27914559841156006,
-0.02518479898571968,
-0.34611862897872925,
-0.4222583472728729,
-0.06496092677116394,
0.00907842069864273,
-0.12613913416862488,
-0.18875868618488312,
0.17642444372177124,
0.10536834597587585,
-0.36833658814430237,
0.14379045367240906,
-0.19497111439704895,
-0.023060064762830734,
0.1270233690738678,
-0.012712564319372177,
0.22348806262016296,
-0.2524956464767456,
-0.10773377120494843,
-0.19662046432495117,
-0.18682317435741425,
0.04352838918566704,
0.174392431974411,
0.14198853075504303,
0.29099366068840027,
0.3207316994667053,
0.3545379340648651,
-0.30618786811828613,
0.2015724778175354,
0.020485330373048782,
0.26040080189704895,
0.08387403935194016,
0.011856800876557827,
-0.7292295694351196,
-0.25024300813674927,
0.09365600347518921,
0.6161046624183655,
0.03013288788497448,
-0.05388535186648369,
0.17840561270713806,
-0.36538806557655334,
-0.09516147524118423,
0.0847700834274292,
0.003855787217617035,
0.14265313744544983,
0.39740779995918274,
0.2168782651424408,
-0.1787639856338501,
-0.0021242015063762665,
0.3385842442512512,
0.0916307121515274,
0.17379724979400635,
0.2557828724384308,
0.004442695528268814,
-0.4787675738334656,
-0.22088328003883362,
0.11957617849111557,
0.09272468835115433,
-0.39956146478652954,
0.2578277885913849,
0.030493522062897682,
-0.06476002186536789,
0.14373832941055298,
0.20303654670715332,
-0.038407064974308014,
-0.03166528791189194,
-0.3079477548599243,
-0.08399808406829834,
0.16713351011276245,
0.48805326223373413,
0.44944998621940613,
0.040726881474256516,
0.005998890846967697,
0.26571619510650635,
-0.45143139362335205,
-0.18560488522052765,
-0.21258333325386047,
-0.1643105298280716,
0.11837298423051834,
0.14869749546051025,
-0.19627264142036438,
-0.2467670440673828,
-0.2014065533876419,
0.1216195821762085,
0.10836552083492279,
0.2122839093208313,
0.0690101683139801,
-0.16967350244522095,
0.0784120261669159,
0.05652634799480438,
0.06799975037574768,
-0.02961772494018078,
0.013003065250813961,
-0.40909087657928467,
-0.3787910044193268,
-0.25914323329925537,
-0.2203107476234436,
-0.03591030463576317,
-0.014361552894115448,
-0.3235982060432434,
0.17572815716266632,
0.13708603382110596,
-0.10186270624399185,
0.5023974776268005,
-0.455843061208725,
-0.2822442054748535,
-0.21243922412395477,
-0.01172567531466484,
0.0002808072604238987,
-0.06079239398241043,
-0.13323351740837097,
0.08084523677825928,
0.12201405316591263,
-0.0661134347319603,
0.2327348291873932,
-0.17602775990962982,
0.031067628413438797,
-0.1178010106086731,
0.21236029267311096,
0.5724334716796875,
0.28586918115615845,
-0.5049549341201782,
0.41330021619796753,
0.07613152265548706,
-0.10946664214134216,
-0.20353658497333527,
-0.3783601224422455,
0.2629648745059967,
0.03078315034508705,
0.05448252707719803,
-0.28004273772239685,
-0.14984160661697388,
-0.401700496673584,
-0.10377603024244308,
-0.12082406878471375,
-0.4394890069961548,
-0.3144519329071045,
0.3442710340023041,
0.3613232672214508,
-0.2875061333179474,
0.1918441653251648,
-0.02681618183851242,
0.014408394694328308,
0.13366487622261047,
0.21262100338935852,
0.3895181715488434,
0.7033475637435913,
0.2981713116168976,
-0.4683302342891693,
-0.09088611602783203,
-0.018252965062856674,
0.5345418453216553,
0.2181611955165863,
0.3152850270271301,
0.362556129693985,
0.11964339017868042,
0.060079652816057205,
0.17628562450408936,
-0.017582178115844727,
-0.14261196553707123,
0.0021400973200798035,
0.064202219247818,
-0.0033140070736408234,
-0.08596137911081314,
-0.272210955619812,
0.18190422654151917,
-0.343549519777298,
0.3356223702430725,
0.2366923987865448,
0.06772400438785553,
0.4312196969985962,
-0.4143006205558777,
0.18085771799087524,
-0.10285534709692001,
0.4148302376270294,
-0.2638714909553528,
-0.14174440503120422,
-0.04953247308731079,
0.18888095021247864,
0.24711352586746216,
0.051705099642276764,
-0.1387271285057068,
0.24360018968582153,
-0.0785287469625473,
0.041172437369823456,
-0.5003123879432678,
-0.009305201470851898,
-0.058235738426446915,
0.22831475734710693,
0.4879375696182251,
-0.1585582047700882,
0.24803043901920319,
0.02456424944102764,
-0.1947029083967209,
-0.10072195529937744,
-0.08720628917217255,
-0.028839539736509323,
-0.10660779476165771,
0.1006261482834816,
0.16228526830673218,
-0.37289291620254517,
-0.04785154014825821,
0.1560513973236084,
-0.11368724703788757,
-0.14568746089935303,
-0.5345333814620972,
-0.1929803192615509,
-0.12560300529003143,
0.08317966014146805,
0.042838431894779205,
0.09162390232086182,
0.7034358382225037,
0.40741053223609924,
-0.1263744831085205,
0.16712388396263123,
-0.2396186888217926,
-0.2513004541397095,
-0.29891669750213623,
-0.3349248170852661,
-0.10494869202375412,
0.2417287528514862,
0.5042908787727356,
0.2844415307044983,
0.32051223516464233,
-0.06407532095909119,
0.17687559127807617,
-0.32918912172317505,
0.34079045057296753,
-0.1731744408607483,
0.2252853512763977,
0.2525813579559326,
-0.04853800684213638,
-0.21709316968917847,
-0.6656164526939392,
0.19906309247016907,
0.2431144416332245,
-0.005819559097290039,
0.0005774218589067459,
0.03272730112075806,
0.1565549373626709,
0.3020453155040741,
-0.17433160543441772,
-0.0529877170920372,
-0.16654065251350403,
0.22659465670585632,
-0.16836430132389069,
-0.2666841745376587,
0.24942338466644287,
0.024098124355077744,
0.01170048862695694,
0.06657251715660095,
0.1200333833694458,
0.062113478779792786,
0.08303004503250122,
0.15141986310482025,
0.5137023329734802,
-0.2719222605228424,
0.20242297649383545,
-0.26671096682548523,
0.069706030189991,
0.14939552545547485,
0.30522871017456055,
-0.2260485589504242,
0.04482987895607948,
-0.025607123970985413,
-0.26178309321403503,
-0.1980854570865631,
0.06094332039356232,
0.438294917345047,
-0.17938052117824554,
-0.21321558952331543,
-0.05144062638282776,
0.23286005854606628,
0.2575269937515259,
0.3161093592643738,
0.13609755039215088,
-0.25865882635116577,
-0.044945552945137024,
-0.0011650752276182175,
0.36427754163742065,
0.16050440073013306,
-0.14507177472114563,
-0.010718274861574173,
-0.14537519216537476,
0.3728182017803192,
-0.43357667326927185,
0.08356267958879471,
-0.31304970383644104,
-0.32945120334625244
] |
https://github.com/huggingface/datasets/issues/406 | Faster Shuffling? | Shuffling is now significantly faster thanks to #513
Feel free to play with it now :)
Closing this one, but feel free to re-open if you have other questions | Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.) | 29 | Faster Shuffling?
Consider shuffling bookcorpus:
```
dataset = nlp.load_dataset('bookcorpus', split='train')
dataset.shuffle()
```
According to tqdm, this will take around 2.5 hours on my machine to complete (even with the faster version of select from #405). I've also tried with `keep_in_memory=True` and `writer_batch_size=1000`.
But I can also just write the lines to a text file:
```
batch_size = 100000
with open('tmp.txt', 'w+') as out_f:
for i in tqdm(range(0, len(dataset), batch_size)):
batch = dataset[i:i+batch_size]['text']
print("\n".join(batch), file=out_f)
```
Which completes in a couple minutes, followed by `shuf tmp.txt > tmp2.txt` which completes in under a minute. And finally,
```
dataset = nlp.load_dataset('text', data_files='tmp2.txt')
```
Which completes in under 10 minutes. I read up on Apache Arrow this morning, and it seems like the columnar data format is not especially well-suited to shuffling rows, since moving items around requires a lot of book-keeping.
Is shuffle inherently slow, or am I just using it wrong? And if it is slow, would it make sense to try converting the data to a row-based format on disk and then shuffling? (Instead of calling select with a random permutation, as is currently done.)
Shuffling is now significantly faster thanks to #513
Feel free to play with it now :)
Closing this one, but feel free to re-open if you have other questions | [
-0.1669754981994629,
0.07589255273342133,
-0.07566966861486435,
-0.10691513121128082,
-0.045176513493061066,
-0.10969916731119156,
0.10494543612003326,
0.545972466468811,
-0.22242645919322968,
0.11074350774288177,
-0.01715417578816414,
0.5978958606719971,
-0.1472122222185135,
-0.224778950214386,
0.15257786214351654,
-0.09172241389751434,
0.01974736899137497,
-0.006634578108787537,
-0.29840171337127686,
-0.06819742172956467,
-0.10767985880374908,
-0.34072908759117126,
-0.1966782510280609,
-0.24142880737781525,
-0.02110462263226509,
-0.2671126127243042,
-0.1641612946987152,
0.1271984875202179,
-0.1086055114865303,
0.03560976684093475,
-0.1816462278366089,
0.2036726325750351,
-0.10194353759288788,
0.2518042325973511,
-0.00010644013673299924,
-0.18781670928001404,
-0.0013787969946861267,
0.12451301515102386,
-0.3185114562511444,
0.1700078696012497,
0.4203983545303345,
-0.036648526787757874,
-0.18106697499752045,
-0.24702152609825134,
0.13357877731323242,
-0.2439088672399521,
0.16696466505527496,
-0.0882612019777298,
-0.07873424887657166,
-0.03483317419886589,
0.1946195811033249,
0.3067125678062439,
-0.14238594472408295,
0.13171271979808807,
0.5130027532577515,
0.09835559874773026,
-0.33345502614974976,
0.23336100578308105,
0.29458820819854736,
-0.08632073551416397,
-0.17735609412193298,
0.2387264519929886,
-0.09595580399036407,
-0.06728915870189667,
0.1371425986289978,
0.11447544395923615,
0.09599172323942184,
0.3252633213996887,
0.05916057527065277,
0.4156242907047272,
0.24063292145729065,
-0.20182070136070251,
-0.2674718201160431,
-0.27203354239463806,
0.20222796499729156,
-0.04494541883468628,
0.10430582612752914,
0.2704426944255829,
-0.23939372599124908,
-0.15952743589878082,
-0.09101543575525284,
0.18509534001350403,
0.21041753888130188,
-0.19178344309329987,
0.2724066376686096,
0.44233769178390503,
0.2230268269777298,
-0.1347956657409668,
0.685067892074585,
-0.14292719960212708,
0.3533962070941925,
-0.089784175157547,
0.023687759414315224,
0.41356605291366577,
-0.2834285795688629,
-0.3294464945793152,
-0.24999722838401794,
-0.182553231716156,
-0.11076885461807251,
0.18389593064785004,
0.7327406406402588,
0.24534818530082703,
0.21953696012496948,
-0.0025330781936645508,
0.004425393417477608,
0.01725584641098976,
-0.303352952003479,
0.06766881048679352,
-0.0833185613155365,
0.174163356423378,
0.18959687650203705,
0.12653043866157532,
-0.08755195885896683,
-0.31225523352622986,
-0.10357718169689178,
-0.16771617531776428,
-0.482585072517395,
0.13870976865291595,
0.015534749254584312,
-0.2844124734401703,
-0.06679020822048187,
-0.009928567335009575,
0.001803496852517128,
0.21510085463523865,
-0.1538618952035904,
0.27515390515327454,
-0.030629519373178482,
-0.23890827596187592,
-0.14743654429912567,
-0.09216980636119843,
-0.0841054767370224,
0.09276239573955536,
-0.18541480600833893,
0.011172068305313587,
0.10705669224262238,
0.4471130967140198,
-0.1813146024942398,
0.07501286268234253,
0.09326784312725067,
0.3140336573123932,
0.07475482672452927,
-0.14500245451927185,
0.052906334400177,
0.030100809410214424,
-0.15387943387031555,
-0.18710634112358093,
-0.16396914422512054,
0.12983934581279755,
-0.2964136004447937,
0.33716127276420593,
0.06345731765031815,
-0.11480297148227692,
0.13581760227680206,
0.24199488759040833,
0.2536460757255554,
-0.27834826707839966,
-0.3240198493003845,
0.004213698208332062,
-0.030077703297138214,
-0.05880597233772278,
0.08890338987112045,
0.007970400154590607,
0.05580476298928261,
-0.15064916014671326,
0.0332132950425148,
-0.2832564115524292,
-0.030102889984846115,
0.13874642550945282,
-0.06306782364845276,
0.4716355502605438,
0.37845131754875183,
0.5905833840370178,
-0.09272000193595886,
0.0524730309844017,
0.1518074870109558,
0.10007321834564209,
0.6754478216171265,
0.18476660549640656,
-0.22225382924079895,
0.006972611881792545,
-0.12349496781826019,
0.018920453265309334,
0.32998356223106384,
0.219020813703537,
0.10644446313381195,
-0.04706212878227234,
0.42437130212783813,
0.308651864528656,
0.05760793015360832,
0.26723963022232056,
-0.5271471738815308,
-0.16801242530345917,
0.23976291716098785,
0.4268014430999756,
-0.483618825674057,
-0.3931618332862854,
0.021559543907642365,
-0.24578745663166046,
0.33524125814437866,
-0.22232714295387268,
0.004805751610547304,
0.07809741795063019,
-0.0988781750202179,
0.06844499707221985,
-0.1722116768360138,
-0.04616265371441841,
-0.2284308671951294,
-0.030757371336221695,
-0.05111510306596756,
-0.02192443609237671,
0.2823067605495453,
-0.37609416246414185,
0.13891589641571045,
-0.23512369394302368,
0.22310930490493774,
0.15231207013130188,
0.10318927466869354,
-0.1222536712884903,
0.3160504996776581,
-0.14416702091693878,
-0.1249845027923584,
-0.03291517496109009,
-0.2858448922634125,
0.06023366376757622,
-0.14288285374641418,
-0.10323990881443024,
0.041421834379434586,
-0.17431867122650146,
0.18019239604473114,
0.4312615990638733,
-0.3207768499851227,
0.08514267206192017,
0.15322959423065186,
0.26042142510414124,
-0.12932948768138885,
-0.15467651188373566,
0.15117305517196655,
0.17788168787956238,
-0.08398198336362839,
0.2608785033226013,
0.0671190395951271,
-0.09817032516002655,
0.11916358023881912,
0.028284408152103424,
-0.36079493165016174,
0.5761178135871887,
-0.4362379014492035,
0.2577599883079529,
0.15059667825698853,
-0.2896025478839874,
-0.15274442732334137,
0.1924869418144226,
-0.06892013549804688,
0.38749685883522034,
0.655989944934845,
0.09334692358970642,
0.040863875299692154,
0.404800683259964,
-0.3637099266052246,
0.13662384450435638,
0.5051812529563904,
0.017594464123249054,
-0.06120610982179642,
0.04548903927206993,
0.09981663525104523,
-0.08284974098205566,
-0.15165948867797852,
0.05926217511296272,
0.19866618514060974,
0.30868715047836304,
0.11051025986671448,
-0.042908504605293274,
-0.15223760902881622,
-0.2253769189119339,
0.14671361446380615,
-0.0810680240392685,
0.14433464407920837,
-0.0461750403046608,
0.17314860224723816,
0.02829110622406006,
-0.24688103795051575,
-0.1958766132593155,
0.101034015417099,
0.15784551203250885,
0.13009075820446014,
0.04565400630235672,
-0.1185925230383873,
-0.1928805112838745,
-0.1469252109527588,
-0.008756461553275585,
-0.04105834290385246,
-0.06559203565120697,
0.22037599980831146,
0.26744920015335083,
-0.29679471254348755,
-0.24415041506290436,
-0.09669400751590729,
0.3949580490589142,
-0.0981084406375885,
-0.08823155611753464,
-0.202262282371521,
0.04341152682900429,
-0.11296061426401138,
0.15779262781143188,
0.2093467116355896,
0.2783986032009125,
0.4065813720226288,
0.14978182315826416,
-0.2056587040424347,
0.11259599030017853,
-0.0035842284560203552,
-0.28568750619888306,
0.059745073318481445,
-0.2784016728401184,
-0.07962904870510101,
-0.12883736193180084,
-0.3703233003616333,
-0.3678690493106842,
0.06624840945005417,
-0.1745663434267044,
-0.14714786410331726,
0.28003329038619995,
0.23618564009666443,
-0.16279670596122742,
-0.23886334896087646,
-0.22413229942321777,
-0.0004678778350353241,
-0.47184669971466064,
0.33133554458618164,
-0.07714898884296417,
0.20153461396694183,
-0.08522850275039673,
-0.12307184189558029,
-0.0027074040845036507,
-0.4613552689552307,
-0.015397397801280022,
0.1507299393415451,
-0.168583944439888,
0.2793682813644409,
0.015094608068466187,
-0.17593692243099213,
-0.40898415446281433,
-0.07974249124526978,
-0.04272777959704399,
0.4191707968711853,
-0.11284002661705017,
0.2114587128162384,
-0.35447344183921814,
-0.01884075440466404,
-0.10470741987228394,
0.09917628020048141,
0.4139261245727539,
-0.14056938886642456,
-0.21417857706546783,
0.2670764625072479,
0.18713687360286713,
0.05659881606698036,
0.2416379153728485,
0.1690843254327774,
0.010714204981923103,
0.11639900505542755,
0.2601453363895416,
0.4409124255180359,
-0.0831344798207283,
0.30293336510658264,
-0.1711626499891281,
0.1169438436627388,
-0.0787573754787445,
-0.24793905019760132,
0.09799408167600632,
0.15955135226249695,
0.022503331303596497,
-0.1101275086402893,
0.3593634366989136,
-0.07943818718194962,
-0.2885240912437439,
-0.09890598058700562,
0.373027503490448,
0.10688931494951248,
-0.2913459539413452,
0.5682030916213989,
-0.19538865983486176,
0.013463355600833893,
-0.016544345766305923,
0.19179892539978027,
-0.08916281163692474,
-0.20273807644844055,
0.04127269238233566,
-0.11330831050872803,
-0.0761418417096138,
0.004363300744444132,
-0.5783772468566895,
-0.11985184997320175,
-0.7263139486312866,
0.1553497314453125,
0.23164404928684235,
0.36839649081230164,
0.20241497457027435,
-0.3260190486907959,
0.35465365648269653,
-0.15723232924938202,
0.3486221432685852,
0.1606164574623108,
-0.3252020478248596,
0.2688460946083069,
-0.039848364889621735,
-0.4078162610530853,
-0.0648060217499733,
-0.37833791971206665,
-0.39346766471862793,
0.16850250959396362,
0.2311156839132309,
-0.34170082211494446,
-0.03231702372431755,
-0.014601390808820724,
-0.10423608124256134,
-0.005625396966934204,
-0.00577049795538187,
-0.36245307326316833,
-0.21146312355995178,
-0.05714461952447891,
0.308336466550827,
-0.05098903924226761,
0.11284810304641724,
-0.05035168677568436,
0.10734368860721588,
0.19029825925827026,
-0.01955755054950714,
0.12759554386138916,
-0.05929384008049965,
0.005624850280582905,
0.030117489397525787,
0.12988069653511047,
0.15271590650081635,
0.14900319278240204,
-0.10305802524089813,
-0.056141629815101624,
0.15910835564136505,
0.1278185248374939,
-0.13624835014343262,
-0.22320745885372162,
0.40863487124443054,
0.3234086036682129,
0.23042744398117065,
0.2706473767757416,
0.0015279557555913925,
0.3054816722869873,
0.009950235486030579,
-0.34298771619796753,
0.10123860090970993,
-0.3108821511268616,
-0.14031840860843658,
-0.6326960325241089,
0.2537313997745514,
0.2337561696767807,
0.11939533054828644,
0.24094486236572266,
-0.2747865915298462,
0.1304333359003067,
0.350860059261322,
0.1714964509010315,
0.9784495830535889,
-0.3513525128364563,
0.427563339471817,
0.29203757643699646,
-0.15993711352348328,
0.11420883238315582,
-0.21147188544273376,
0.4349348545074463,
-0.16261856257915497,
-0.07794754207134247,
0.22067102789878845,
-0.10785544663667679,
-0.03289481997489929,
0.12910151481628418,
-0.03513871878385544,
0.11180390417575836,
0.02408602088689804,
-0.2238416075706482,
-0.30508512258529663,
-0.024868253618478775,
-0.3679128587245941,
-0.4044308662414551,
-0.15230068564414978,
0.07562263309955597,
-0.03530960530042648,
-0.21831485629081726,
0.0845695436000824,
0.05691780894994736,
-0.35657888650894165,
0.16710920631885529,
-0.1411597728729248,
-0.04664842039346695,
0.04243319481611252,
-0.004941744729876518,
0.19691111147403717,
-0.2198658287525177,
-0.08900460600852966,
-0.14745575189590454,
-0.15716767311096191,
0.12941105663776398,
0.16655613481998444,
0.13776560127735138,
0.22410696744918823,
0.3170349597930908,
0.2754780948162079,
-0.25946593284606934,
0.28067952394485474,
-0.09486497193574905,
0.17155277729034424,
0.0587378665804863,
0.010799610055983067,
-0.7354447841644287,
-0.2590063214302063,
0.06289540976285934,
0.4252834916114807,
-0.04351227357983589,
0.011203933507204056,
0.23311813175678253,
-0.41848820447921753,
-0.16259455680847168,
0.18037793040275574,
-0.05645257234573364,
0.06778169423341751,
0.4045182168483734,
0.2591693103313446,
-0.24430163204669952,
-0.05562959238886833,
0.3341704308986664,
0.08812013268470764,
0.19217169284820557,
0.2500740885734558,
0.035751309245824814,
-0.44419682025909424,
-0.3494407534599304,
0.09371637552976608,
0.031078854575753212,
-0.2851608097553253,
0.2599405348300934,
0.036974672228097916,
-0.12735581398010254,
0.19885574281215668,
0.2838099002838135,
-0.039192333817481995,
-0.040567606687545776,
-0.24722638726234436,
-0.09561710059642792,
0.07023673504590988,
0.44690823554992676,
0.44096049666404724,
0.07913656532764435,
-0.0008859783411026001,
0.3681521415710449,
-0.3891652226448059,
-0.129937544465065,
-0.33355292677879333,
-0.13384364545345306,
-0.013371171429753304,
0.16155824065208435,
-0.12461410462856293,
-0.27224600315093994,
-0.1843118518590927,
0.21492499113082886,
0.19290675222873688,
0.2269628494977951,
-0.0056596193462610245,
-0.29804757237434387,
0.06352043151855469,
-0.001138538122177124,
-0.024639833718538284,
0.04456981271505356,
0.013493138365447521,
-0.35676854848861694,
-0.36194416880607605,
-0.22151565551757812,
-0.2338106483221054,
-0.11488065123558044,
-0.014377057552337646,
-0.18967679142951965,
0.2071963995695114,
0.15649151802062988,
-0.057320669293403625,
0.44896200299263,
-0.4027825891971588,
-0.3101204037666321,
-0.2046230435371399,
-0.010111935436725616,
-0.03482441231608391,
-0.05765436589717865,
-0.06122078374028206,
0.07156623899936676,
0.10078217834234238,
-0.03981859236955643,
0.23575523495674133,
-0.1027974933385849,
-0.039668284356594086,
-0.015707707032561302,
0.17463134229183197,
0.5327721834182739,
0.23931965231895447,
-0.4209703803062439,
0.3680216372013092,
0.2163219451904297,
-0.16680102050304413,
-0.16903389990329742,
-0.3094874620437622,
0.16265036165714264,
0.0659177154302597,
0.029635243117809296,
-0.22509479522705078,
-0.1986939013004303,
-0.30126065015792847,
-0.06372463703155518,
-0.1909383237361908,
-0.3947408199310303,
-0.17977909743785858,
0.3211907744407654,
0.3621632754802704,
-0.30038851499557495,
0.15532709658145905,
-0.03164133056998253,
0.058502305299043655,
0.18271055817604065,
0.23907625675201416,
0.36836642026901245,
0.6607504487037659,
0.36103248596191406,
-0.47243526577949524,
-0.11478342115879059,
-0.015101741999387741,
0.5250037908554077,
0.23038586974143982,
0.28228437900543213,
0.34614989161491394,
0.18515154719352722,
0.08843362331390381,
0.06454236060380936,
-0.04554405435919762,
-0.09143036603927612,
-0.09409912675619125,
0.04192052781581879,
-0.011356672272086143,
-0.1790163516998291,
-0.2583901882171631,
0.19404974579811096,
-0.20675107836723328,
0.30139023065567017,
0.2567066252231598,
0.07060923427343369,
0.4215824007987976,
-0.4581936299800873,
0.20926210284233093,
-0.13241791725158691,
0.46624839305877686,
-0.31324872374534607,
-0.08374445885419846,
0.0033872947096824646,
0.0879177376627922,
0.2972169518470764,
0.023302335292100906,
-0.12688666582107544,
0.21614597737789154,
-0.15971285104751587,
0.0817437618970871,
-0.5459909439086914,
0.027019111439585686,
-0.1925860047340393,
0.20172059535980225,
0.5362643003463745,
-0.14071378111839294,
0.35264426469802856,
0.0941162109375,
-0.25570836663246155,
-0.11964067816734314,
-0.09641695022583008,
-0.04933162406086922,
-0.13891316950321198,
0.10644351691007614,
0.2326945811510086,
-0.3602105975151062,
-0.053647562861442566,
0.10265679657459259,
-0.23918116092681885,
-0.11132892966270447,
-0.48616480827331543,
-0.22530177235603333,
-0.11796876788139343,
0.02324163168668747,
0.10241099447011948,
0.14782527089118958,
0.7567033767700195,
0.3429255783557892,
-0.152865469455719,
0.16617299616336823,
-0.36693453788757324,
-0.30127406120300293,
-0.22923946380615234,
-0.2744218707084656,
0.034789249300956726,
0.1922416388988495,
0.4784705340862274,
0.20305559039115906,
0.19486291706562042,
-0.033312469720840454,
0.09786955267190933,
-0.3102419972419739,
0.335552453994751,
-0.2313392609357834,
0.3123432993888855,
0.1673237681388855,
-0.07072921097278595,
-0.15205040574073792,
-0.6242116093635559,
0.19679436087608337,
0.10440798103809357,
0.09607917815446854,
0.014556198380887508,
0.040796391665935516,
0.18343539535999298,
0.3243207037448883,
-0.17609205842018127,
-0.07344827800989151,
-0.20312872529029846,
0.16176673769950867,
-0.13794849812984467,
-0.22021028399467468,
0.15565349161624908,
-0.012902578338980675,
-0.03321784734725952,
0.12385141849517822,
0.1579972356557846,
0.06047645956277847,
0.11387139558792114,
0.1917484849691391,
0.47456419467926025,
-0.19447188079357147,
0.24178312718868256,
-0.20404309034347534,
0.008096275851130486,
0.1869809925556183,
0.24316367506980896,
-0.225352942943573,
0.21102187037467957,
0.018141891807317734,
-0.2957246005535126,
-0.24942460656166077,
-0.06880933791399002,
0.3604041635990143,
-0.18403282761573792,
-0.2736574113368988,
-0.10925943404436111,
0.16351041197776794,
0.2349599003791809,
0.3031381070613861,
0.022021926939487457,
-0.2748108506202698,
-0.023334559053182602,
0.03244397044181824,
0.25253206491470337,
0.26558560132980347,
-0.17203642427921295,
-0.0808960571885109,
-0.13468772172927856,
0.2549239993095398,
-0.41114553809165955,
0.09482170641422272,
-0.2713315188884735,
-0.35571128129959106
] |
https://github.com/huggingface/datasets/issues/388 | 🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17 | similar slow download speed here for nlp.load_dataset('wmt14', 'fr-en')
`
Downloading: 100%|██████████████████████████████████████████████████████████| 658M/658M [1:00:42<00:00, 181kB/s]
Downloading: 100%|██████████████████████████████████████████████████████████| 918M/918M [1:39:38<00:00, 154kB/s]
Downloading: 2%|▉ | 40.9M/2.37G [04:48<5:03:06, 128kB/s]
`
Could we just download a specific subdataset in 'wmt14', such as 'newstest14'? | 1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code:
```
nlp.load_dataset('wmt14','de-en')
nlp.load_dataset('wmt15','de-en')
nlp.load_dataset('wmt17','de-en')
nlp.load_dataset('wmt19','de-en')
```
The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18`
2. When trying to download `wmt17 zh-en`, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz | 38 | 🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17
1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code:
```
nlp.load_dataset('wmt14','de-en')
nlp.load_dataset('wmt15','de-en')
nlp.load_dataset('wmt17','de-en')
nlp.load_dataset('wmt19','de-en')
```
The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18`
2. When trying to download `wmt17 zh-en`, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz
similar slow download speed here for nlp.load_dataset('wmt14', 'fr-en')
`
Downloading: 100%|██████████████████████████████████████████████████████████| 658M/658M [1:00:42<00:00, 181kB/s]
Downloading: 100%|██████████████████████████████████████████████████████████| 918M/918M [1:39:38<00:00, 154kB/s]
Downloading: 2%|▉ | 40.9M/2.37G [04:48<5:03:06, 128kB/s]
`
Could we just download a specific subdataset in 'wmt14', such as 'newstest14'? | [
-0.27544599771499634,
-0.19817644357681274,
-0.01950565166771412,
0.46949905157089233,
0.06568620353937149,
0.19420164823532104,
0.02708638831973076,
0.2684621810913086,
0.08611901104450226,
-0.031172052025794983,
-0.2506641447544098,
-0.06791318207979202,
0.21257679164409637,
0.030787145718932152,
-0.06282292306423187,
-0.189052551984787,
-0.1460019052028656,
0.1014118418097496,
-0.23699316382408142,
-0.026957301422953606,
-0.29048317670822144,
0.20361866056919098,
-0.09069598466157913,
0.1271258294582367,
0.2401769459247589,
0.07800431549549103,
-0.05016703903675079,
-0.19689586758613586,
-0.15963996946811676,
-0.27482321858406067,
0.5160510540008545,
0.3601160943508148,
0.058654218912124634,
0.14504416286945343,
-0.00012193864677101374,
0.08257359266281128,
0.18356657028198242,
-0.1369369477033615,
-0.36360374093055725,
-0.1387348622083664,
-0.5023859739303589,
-0.37979525327682495,
-0.057071052491664886,
-0.04513521119952202,
-0.02869480475783348,
-0.4139445722103119,
0.29480046033859253,
-0.16180124878883362,
0.20845070481300354,
0.31495389342308044,
0.12140625715255737,
0.19130058586597443,
-0.18429581820964813,
0.05881234258413315,
0.22601178288459778,
-0.2973451018333435,
-0.15996325016021729,
0.16287247836589813,
0.09113658964633942,
-0.09987020492553711,
0.18825557827949524,
0.03945005312561989,
0.10544349253177643,
0.46855485439300537,
0.0881752073764801,
0.18371959030628204,
0.034380488097667694,
-0.3379809856414795,
0.1303820013999939,
0.46770209074020386,
0.7240515351295471,
0.013421863317489624,
-0.5606609582901001,
0.10949627310037613,
-0.1864440143108368,
-0.179348424077034,
0.15904447436332703,
0.23853349685668945,
-0.3889273405075073,
-0.009706411510705948,
-0.2580249309539795,
0.15412747859954834,
-0.21500761806964874,
0.552046000957489,
-0.15386605262756348,
0.6958847045898438,
0.23100966215133667,
0.10350091755390167,
0.2030007541179657,
-0.07915030419826508,
-0.08163207024335861,
-0.10970388352870941,
0.06498829275369644,
0.11401934176683426,
-0.4582262635231018,
-0.14196792244911194,
-0.29281067848205566,
-0.05652403086423874,
0.09610887616872787,
0.03704728186130524,
0.2588008642196655,
0.3004489839076996,
0.07329340279102325,
-0.09017182141542435,
0.21490101516246796,
-0.037255845963954926,
-0.13630282878875732,
-0.1615840345621109,
0.30712223052978516,
0.023427050560712814,
0.10868915915489197,
0.12783963978290558,
-0.014629463665187359,
-0.07349738478660583,
-0.33336153626441956,
0.042944446206092834,
-0.06410331279039383,
0.09005451202392578,
-0.4714151918888092,
-0.18300987780094147,
-0.17255699634552002,
-0.3095327913761139,
-0.26336783170700073,
0.27497029304504395,
-0.1472436785697937,
0.20986497402191162,
0.03502070903778076,
0.164163276553154,
-0.037384793162345886,
-0.23662514984607697,
-0.08513079583644867,
-0.07760056853294373,
-0.11943194270133972,
0.08527643233537674,
0.3873589336872101,
0.20087267458438873,
0.1021282747387886,
-0.19794248044490814,
-0.4624216556549072,
0.1757548451423645,
0.04625202715396881,
-0.15041831135749817,
-0.3103295564651489,
0.21442389488220215,
0.02291300520300865,
0.5044223666191101,
0.00430472195148468,
0.26739364862442017,
-0.2623717188835144,
-0.030695855617523193,
0.047462962567806244,
0.13353154063224792,
0.15918049216270447,
0.03753960505127907,
-0.17818251252174377,
-0.07587388902902603,
-0.41165491938591003,
0.15831589698791504,
-0.19792523980140686,
0.03844912722706795,
-0.31332290172576904,
-0.054228320717811584,
-0.4436589777469635,
-0.06379163265228271,
0.23254036903381348,
0.3726828694343567,
-0.2943871319293976,
-0.1404794454574585,
-0.3939934968948364,
-0.07723218202590942,
0.2761012315750122,
0.41654232144355774,
-0.011609014123678207,
0.038996171206235886,
-0.13222895562648773,
0.013520464301109314,
0.6128708720207214,
-0.06600538641214371,
-0.5310529470443726,
0.408058762550354,
-0.3529960513114929,
0.09498889744281769,
0.2438894510269165,
0.22271756827831268,
0.041214749217033386,
-0.03812116011977196,
0.1125594824552536,
0.5967078804969788,
-0.06554468721151352,
0.04328082501888275,
0.033989038318395615,
-0.3913992643356323,
0.4888462424278259,
0.15824633836746216,
-0.07161442935466766,
0.19043181836605072,
0.0406712181866169,
0.2375047206878662,
0.46587684750556946,
0.0016445554792881012,
0.12567965686321259,
-0.036769382655620575,
-0.07681804895401001,
-0.18691597878932953,
0.0371694453060627,
0.08056926727294922,
-0.8039488196372986,
0.3596588671207428,
-0.0426558293402195,
-0.07575304806232452,
0.05913831293582916,
0.04984254390001297,
-0.1687222421169281,
-0.33847853541374207,
0.11573899537324905,
0.19466201961040497,
0.05708689242601395,
0.4249061048030853,
-0.024331700056791306,
-0.07355142384767532,
0.030615758150815964,
0.242402121424675,
0.14008215069770813,
0.07456643879413605,
0.09311027824878693,
0.014227209612727165,
0.02106107957661152,
0.1914709508419037,
0.5240712761878967,
-0.23234745860099792,
0.1202671006321907,
-0.19814465939998627,
-0.047799620777368546,
0.04047955200076103,
-0.1348656862974167,
0.3278016448020935,
0.047276571393013,
-0.1049366444349289,
0.006230311468243599,
-0.3015393912792206,
-0.023219121620059013,
0.5032980442047119,
0.0925629585981369,
-0.2129790484905243,
-0.07480097562074661,
0.2086770236492157,
0.3825474977493286,
0.33094263076782227,
0.31732046604156494,
0.12931235134601593,
0.3910715579986572,
-0.10691878944635391,
0.19997817277908325,
-0.1739579141139984,
0.21822074055671692,
0.12086117267608643,
-0.03252358362078667,
-0.04823008179664612,
-0.14407306909561157,
0.4479531943798065,
0.46995434165000916,
-0.046750567853450775,
0.03592589125037193,
0.29931002855300903,
0.008681125938892365,
-0.05881498381495476,
-0.21146252751350403,
0.4395286738872528,
0.4815124273300171,
0.002317834412679076,
0.33396872878074646,
-0.03548765927553177,
0.28881269693374634,
-0.4605611264705658,
0.21123924851417542,
0.19931474328041077,
-0.35760849714279175,
0.1509043276309967,
0.0544251874089241,
-0.06240790709853172,
-0.15878035128116608,
0.054462138563394547,
0.3649362027645111,
0.3378572165966034,
-0.1209443062543869,
0.1075231060385704,
-0.6640239953994751,
-0.5608865022659302,
-0.14699473977088928,
-0.14501571655273438,
-0.12775208055973053,
-0.29616591334342957,
-0.03415986895561218,
0.3210780620574951,
-0.1442074030637741,
0.04917602986097336,
-0.005147537216544151,
0.17365294694900513,
-0.035996802151203156,
0.08244410157203674,
-0.3095360994338989,
-0.06275462359189987,
-0.26310914754867554,
0.04139896109700203,
0.36322858929634094,
0.2588692009449005,
0.3428502380847931,
-0.30351176857948303,
-0.21657516062259674,
-0.25071123242378235,
-0.08788895606994629,
-0.162899911403656,
-0.12060581147670746,
0.044018566608428955,
-0.05094197392463684,
0.6214650869369507,
0.05943158268928528,
-0.28012028336524963,
0.09676648676395416,
0.008083971217274666,
-0.19963903725147247,
-0.029478769749403,
-0.07286717742681503,
0.08129522949457169,
-0.08191373944282532,
-0.4950377643108368,
-0.5639950037002563,
-0.44889649748802185,
0.3042037785053253,
-0.026078227907419205,
0.4307364821434021,
0.18047980964183807,
-0.44928306341171265,
-0.024524930864572525,
0.20012325048446655,
0.17837709188461304,
-0.09939885884523392,
0.21117311716079712,
0.529903769493103,
0.04873785004019737,
-0.3680870532989502,
0.13240085542201996,
0.1844148486852646,
0.19656412303447723,
0.5387354493141174,
-0.522666335105896,
0.17225101590156555,
-0.19681553542613983,
-0.30200785398483276,
0.26345229148864746,
-0.2586892545223236,
0.15619021654129028,
-0.28696656227111816,
-0.12371218949556351,
-0.053079165518283844,
-0.1602710634469986,
0.0036494210362434387,
0.1923752725124359,
0.26426389813423157,
0.10584235936403275,
0.2024153172969818,
0.08678999543190002,
0.39317697286605835,
0.2769292891025543,
-0.012825392186641693,
0.41065505146980286,
0.029259229078888893,
-0.1475890725851059,
0.1673336923122406,
-0.26762476563453674,
0.05241784825921059,
-0.12297117710113525,
0.36583125591278076,
0.4481181502342224,
-0.25413230061531067,
-0.18315456807613373,
-0.30330073833465576,
0.09402573108673096,
-0.010096754878759384,
-0.39309191703796387,
0.004197586327791214,
0.012256402522325516,
0.05259658396244049,
0.21464350819587708,
-0.04006389155983925,
-0.0331999696791172,
-0.31058835983276367,
0.010870793834328651,
0.2935241758823395,
-0.04516129940748215,
0.18504993617534637,
-0.028056442737579346,
-0.09780895709991455,
-0.5492721796035767,
0.2894971966743469,
0.07632329314947128,
0.7073535919189453,
-0.13268005847930908,
0.1520879864692688,
0.07236728072166443,
-0.014537133276462555,
0.3030667006969452,
-0.17299263179302216,
0.46431612968444824,
0.1467856466770172,
-0.17201435565948486,
-0.34085962176322937,
-0.1419171690940857,
-0.1690535545349121,
-0.18522465229034424,
0.30358821153640747,
0.3525133728981018,
-0.5763113498687744,
-0.339409202337265,
0.0019275583326816559,
0.1817183792591095,
-0.15632665157318115,
0.09981640428304672,
-0.11488530039787292,
-0.42487478256225586,
-0.07972695678472519,
-0.19731548428535461,
-0.14185956120491028,
0.15135620534420013,
-0.025854704901576042,
-0.10205233097076416,
0.11128073930740356,
-0.11258070170879364,
0.10089268535375595,
0.09681320190429688,
0.011181090958416462,
0.41000500321388245,
0.28519514203071594,
0.12453029304742813,
0.1230289489030838,
0.12083394080400467,
0.48839712142944336,
0.22907754778862,
0.05280812457203865,
0.20325645804405212,
-0.06111197918653488,
-0.1043681725859642,
0.5792747735977173,
0.018354322761297226,
0.24894163012504578,
-0.0697888731956482,
0.13381554186344147,
-0.06251916289329529,
0.14621520042419434,
0.28626200556755066,
-0.3440869152545929,
-0.2097569853067398,
-0.32659316062927246,
0.40350428223609924,
0.08485516905784607,
-0.10496148467063904,
0.3273220956325531,
-0.08339226245880127,
-0.23069928586483002,
-0.0298585444688797,
0.12380008399486542,
0.936518669128418,
-0.1632576882839203,
0.19266508519649506,
-0.09682992845773697,
0.01930825412273407,
0.3620097041130066,
-0.006211414933204651,
0.12844374775886536,
-0.06104249134659767,
-0.35176989436149597,
-0.06684297323226929,
0.11291645467281342,
-0.02464614063501358,
0.3345561623573303,
-0.24193821847438812,
0.441282719373703,
0.11582084000110626,
0.32514598965644836,
0.4289501905441284,
0.15136338770389557,
0.034783706068992615,
-0.04036399722099304,
-0.2547506093978882,
0.04589667171239853,
-0.19823341071605682,
0.48789146542549133,
-0.021125024184584618,
-0.3443230390548706,
-0.19886371493339539,
-0.09885358065366745,
-0.41963768005371094,
0.041586413979530334,
-0.39568230509757996,
0.03585008904337883,
-0.3102169632911682,
-0.09451159834861755,
0.1591801792383194,
0.09623682498931885,
0.20750999450683594,
0.07682247459888458,
-0.45668599009513855,
0.06209917366504669,
-0.6321638226509094,
-0.0321626253426075,
0.06858402490615845,
-0.13180330395698547,
-0.14245067536830902,
-0.19648650288581848,
-0.11433057487010956,
-0.1696128249168396,
0.10906285047531128,
-0.22241751849651337,
-0.0756760686635971,
-0.10237155854701996,
-0.4478800892829895,
0.25474870204925537,
-0.17868079245090485,
-0.16087128221988678,
-0.253540575504303,
-0.12254393100738525,
0.04665185511112213,
-0.16458910703659058,
-0.039701756089925766,
0.286015123128891,
0.1273249238729477,
-0.1963329017162323,
-0.0019025430083274841,
0.6198269128799438,
0.002909962087869644,
0.10547803342342377,
0.39534130692481995,
0.05065561458468437,
-0.16048213839530945,
-0.2704816460609436,
-0.38110417127609253,
-0.10607887804508209,
-0.16254585981369019,
-0.07819198071956635,
-0.21014054119586945,
0.014031708240509033,
-0.006037361454218626,
0.45585474371910095,
-0.039255887269973755,
0.16820338368415833,
0.0280107744038105,
-0.620265007019043,
-0.160971000790596,
0.13182592391967773,
-0.17653973400592804,
0.1199004054069519,
-0.5219154357910156,
0.11923782527446747,
0.11358204483985901,
0.4160398542881012,
-0.2092130184173584,
0.05656925588846207,
-0.338804692029953,
0.047104690223932266,
0.2880387306213379,
-0.07068241387605667,
0.22899369895458221,
0.18862581253051758,
-0.03417559713125229,
0.02516302280128002,
-0.3593527376651764,
-0.054240841418504715,
-0.021897945553064346,
0.24470064043998718,
0.1939217448234558,
-0.3757944107055664,
0.20784655213356018,
-0.25652533769607544,
-0.08592535555362701,
-0.018845047801733017,
0.02207423374056816,
-0.11195679008960724,
0.059306446462869644,
0.03825671225786209,
0.22190241515636444,
0.14166876673698425,
-0.2665584683418274,
0.17436806857585907,
0.030527282506227493,
0.3759000897407532,
0.10191082209348679,
0.2991655468940735,
0.04688958078622818,
-0.0848333016037941,
-0.4554968774318695,
-0.20011579990386963,
0.10271395742893219,
0.11048024147748947,
0.3243236243724823,
0.025019850581884384,
-0.020087027922272682,
0.001995605882257223,
0.19790253043174744,
0.576515257358551,
0.014755579642951488,
-0.0014469902962446213,
0.10048498213291168,
0.02530835196375847,
-0.292202889919281,
-0.1287107914686203,
0.41137436032295227,
-0.020106952637434006,
-0.040984030812978745,
0.06180122494697571,
0.12894804775714874,
-0.26633912324905396,
-0.009403519332408905,
-0.2022635042667389,
0.4215303659439087,
-0.074795663356781,
0.09205131232738495,
0.37485218048095703,
0.16939425468444824,
0.07756690680980682,
-0.021824641153216362,
0.04851669818162918,
0.16034209728240967,
0.24484939873218536,
-0.2588810622692108,
0.2283005565404892,
-0.10189970582723618,
0.052845265716314316,
-0.10008146613836288,
-0.31351348757743835,
-0.15467895567417145,
0.6282546520233154,
-0.025766760110855103,
0.009152363985776901,
0.23100247979164124,
0.09641293436288834,
-0.05311931297183037,
-0.24432462453842163,
-0.3528074324131012,
0.17909683287143707,
0.2587440609931946,
-0.1399998515844345,
-0.22767849266529083,
-0.0766245648264885,
-0.4428303837776184,
0.15167653560638428,
-0.1457245796918869,
-0.4017062783241272,
0.2690557837486267,
0.27685537934303284,
0.0600418895483017,
-0.28227362036705017,
-0.38529011607170105,
-0.10959833115339279,
-0.040009357035160065,
-0.3327305018901825,
0.19105969369411469,
0.01147102564573288,
-0.13175706565380096,
0.1907145082950592,
0.16743530333042145,
-0.03865080699324608,
0.17617949843406677,
0.046145178377628326,
0.17674323916435242,
-0.0575561560690403,
-0.0859023854136467,
-0.09754066169261932,
0.2834535837173462,
0.2556298077106476,
-0.1936454176902771,
0.4711662530899048,
-0.017448365688323975,
-0.053639817982912064,
0.18638604879379272,
0.19680553674697876,
-0.21368178725242615,
-0.16794422268867493,
0.4751260280609131,
-0.10480046272277832,
0.07415028661489487,
-0.06537256389856339,
-0.11764504760503769,
-0.24113529920578003,
-0.13659872114658356,
-0.04889548197388649,
-0.10711495578289032,
0.33330607414245605,
0.048464834690093994,
0.006460078060626984,
-0.15351848304271698,
0.9997265934944153,
-0.04361743852496147,
0.2473965585231781,
-0.24256321787834167,
-0.37460190057754517,
-0.6246222853660583,
0.09660601615905762,
-0.2321963906288147,
0.08988059312105179,
0.21224869787693024,
0.13977110385894775,
0.10168074816465378,
0.27868443727493286,
0.09794466197490692,
0.5578721761703491,
-0.20367074012756348,
0.24890312552452087,
-0.4591289460659027,
-0.30364251136779785,
0.015766624361276627,
0.4082072079181671,
-0.2625911831855774,
-0.46701580286026,
0.4813467562198639,
-0.3863255977630615,
-0.04986841231584549,
-0.053383730351924896,
-0.09023414552211761,
0.24367675185203552,
0.3555133044719696,
0.33868446946144104,
0.011722221970558167,
0.6352955102920532,
0.02851918339729309,
-0.194726824760437,
-0.3011874854564667,
-0.0414867140352726,
-0.11973176896572113,
-0.006023235619068146,
0.16487610340118408,
0.19995619356632233,
0.048730865120887756,
0.450546532869339,
-0.2935020625591278,
0.22605089843273163,
-0.26806217432022095,
0.28871601819992065,
0.14744634926319122,
0.1920248419046402,
-0.19043636322021484,
0.08863011747598648,
0.1265808641910553,
-0.031089328229427338,
-0.059988461434841156,
-0.1564524918794632,
-0.5516495108604431,
-0.23288793861865997,
0.5788877010345459,
-0.26644083857536316,
-0.2547091245651245,
-0.1598009169101715,
0.35583674907684326,
-0.0425940677523613,
0.3084107041358948,
-0.03204483166337013,
0.20630714297294617,
0.19830664992332458,
-0.09434832632541656,
-0.3142535090446472,
0.2210630476474762,
0.0923457145690918,
-0.3264959454536438,
0.03958085551857948,
0.03556625545024872,
0.19239628314971924,
-0.42838284373283386,
-0.28561463952064514,
-0.2166663557291031
] |
https://github.com/huggingface/datasets/issues/388 | 🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17 | > The code runs but the download speed is extremely slow, the same behaviour is not observed on wmt16 and wmt18
The original source for the files may provide slow download speeds.
We can probably host these files ourselves.
> When trying to download wmt17 zh-en, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz
Looks like the file`UNv1.0.en-zh.tar.gz` is missing, or the url changed. We need to fix that
> Could we just download a specific subdataset in 'wmt14', such as 'newstest14'?
Right now I don't think it's possible. Maybe @patrickvonplaten knows more about it
| 1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code:
```
nlp.load_dataset('wmt14','de-en')
nlp.load_dataset('wmt15','de-en')
nlp.load_dataset('wmt17','de-en')
nlp.load_dataset('wmt19','de-en')
```
The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18`
2. When trying to download `wmt17 zh-en`, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz | 97 | 🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17
1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code:
```
nlp.load_dataset('wmt14','de-en')
nlp.load_dataset('wmt15','de-en')
nlp.load_dataset('wmt17','de-en')
nlp.load_dataset('wmt19','de-en')
```
The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18`
2. When trying to download `wmt17 zh-en`, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz
> The code runs but the download speed is extremely slow, the same behaviour is not observed on wmt16 and wmt18
The original source for the files may provide slow download speeds.
We can probably host these files ourselves.
> When trying to download wmt17 zh-en, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz
Looks like the file`UNv1.0.en-zh.tar.gz` is missing, or the url changed. We need to fix that
> Could we just download a specific subdataset in 'wmt14', such as 'newstest14'?
Right now I don't think it's possible. Maybe @patrickvonplaten knows more about it
| [
-0.2686093747615814,
-0.1404760181903839,
-0.007186552509665489,
0.5020003914833069,
-0.01684112474322319,
0.22515720129013062,
-0.05307671055197716,
0.29936620593070984,
0.09113575518131256,
-0.036813884973526,
-0.22522781789302826,
-0.07992810755968094,
0.11619158089160919,
0.005876651033759117,
0.034305062144994736,
-0.20816615223884583,
-0.11932725459337234,
0.03418023884296417,
-0.31830674409866333,
0.008012548089027405,
-0.3116200566291809,
0.14688640832901,
-0.08682116866111755,
0.07337012141942978,
0.22406445443630219,
-0.006964759901165962,
-0.2052789032459259,
-0.02547188103199005,
-0.10000887513160706,
-0.33942827582359314,
0.4278954267501831,
0.294758141040802,
0.08440396189689636,
0.22821539640426636,
-0.00011492527119116858,
0.07099486887454987,
0.16644413769245148,
-0.18155671656131744,
-0.3427709639072418,
-0.09165270626544952,
-0.5097866058349609,
-0.4445594847202301,
-0.1338346153497696,
-0.09168890118598938,
-0.04989265277981758,
-0.49005696177482605,
0.2561151385307312,
-0.15688660740852356,
0.3314896821975708,
0.3418525159358978,
0.16443440318107605,
0.241835355758667,
-0.14621327817440033,
-0.008507240563631058,
0.2681645154953003,
-0.24180291593074799,
-0.11912786215543747,
0.1768728792667389,
0.08581674844026566,
-0.06470578163862228,
0.201987624168396,
0.05394374579191208,
0.050722502171993256,
0.41438430547714233,
0.0648021548986435,
0.11472655832767487,
-0.0066970884799957275,
-0.2883553206920624,
0.06572988629341125,
0.40049734711647034,
0.7070286870002747,
0.028068523854017258,
-0.5350034832954407,
0.0941154882311821,
-0.031239822506904602,
-0.12492727488279343,
0.19940277934074402,
0.24830979108810425,
-0.28390657901763916,
0.023875083774328232,
-0.21421866118907928,
0.0485210046172142,
-0.19468063116073608,
0.546266496181488,
-0.033569782972335815,
0.6662653684616089,
0.23001205921173096,
0.05126883462071419,
0.08502087742090225,
-0.034521959722042084,
0.0830070972442627,
-0.12741750478744507,
0.09340716898441315,
0.001282363198697567,
-0.31663474440574646,
-0.09422539174556732,
-0.2909427285194397,
-0.017359115183353424,
0.04053030163049698,
0.008376754820346832,
0.2951487600803375,
0.23588120937347412,
0.01831558346748352,
-0.0712846890091896,
0.17815746366977692,
-0.10286647081375122,
-0.1670800745487213,
-0.2394866645336151,
0.3152793049812317,
0.1925610452890396,
0.13043639063835144,
0.1407719850540161,
-0.06345290690660477,
-0.14057070016860962,
-0.4265258312225342,
0.179408460855484,
0.06780628859996796,
0.08192045986652374,
-0.30323755741119385,
-0.2359873503446579,
-0.09528519213199615,
-0.25852951407432556,
-0.233359232544899,
0.23153945803642273,
-0.22320574522018433,
0.30335867404937744,
-0.014074036851525307,
0.08793145418167114,
-0.07828056812286377,
-0.3754105865955353,
-0.1115831583738327,
-0.06193598732352257,
-0.0947357714176178,
0.13759557902812958,
0.4606330692768097,
0.23278272151947021,
0.21258331835269928,
-0.18556217849254608,
-0.32481175661087036,
0.12201809883117676,
0.08273017406463623,
-0.00890661496669054,
-0.2034359872341156,
0.20949698984622955,
0.03890378400683403,
0.5146355628967285,
-0.015259884297847748,
0.24599654972553253,
-0.2595426142215729,
-0.01844044029712677,
-0.06530898064374924,
-0.0278569757938385,
0.16552768647670746,
0.09226340800523758,
-0.16114218533039093,
-0.14668190479278564,
-0.33697277307510376,
0.029696332290768623,
-0.19424277544021606,
-0.07962736487388611,
-0.3151363730430603,
-0.09356684982776642,
-0.33426693081855774,
-0.12862025201320648,
0.2433607578277588,
0.42424750328063965,
-0.3487021028995514,
-0.008514121174812317,
-0.37594687938690186,
-0.035144273191690445,
0.29230907559394836,
0.3570437431335449,
-0.07959756255149841,
0.07169315218925476,
-0.15897490084171295,
-0.17692595720291138,
0.5281016230583191,
-0.13438868522644043,
-0.4725864827632904,
0.2704169750213623,
-0.328466534614563,
0.17230044305324554,
0.24602389335632324,
0.18703432381153107,
0.026747383177280426,
-0.08350450545549393,
0.10471352934837341,
0.6350846886634827,
0.0012766849249601364,
0.05151232331991196,
-0.07068023830652237,
-0.3561577796936035,
0.37980717420578003,
0.19108739495277405,
-0.047855932265520096,
0.12341759353876114,
-0.02624635398387909,
0.2235037088394165,
0.4299488663673401,
-0.006066214293241501,
0.2387935221195221,
-0.01906750723719597,
-0.1557721495628357,
-0.13213767111301422,
0.029182009398937225,
0.07449005544185638,
-0.7336918711662292,
0.3186694383621216,
-0.1053306832909584,
-0.16525594890117645,
0.08107595145702362,
-0.0034315474331378937,
-0.27512025833129883,
-0.34408101439476013,
0.07905928045511246,
0.09727676212787628,
0.10508809983730316,
0.5249685049057007,
-0.04128781333565712,
-0.08311986178159714,
0.00021369382739067078,
0.18629704415798187,
0.13731670379638672,
0.04022475704550743,
-0.04189294949173927,
0.05326777696609497,
-0.04454643279314041,
0.17131732404232025,
0.5440142750740051,
-0.2567562758922577,
0.17173849046230316,
-0.21304483711719513,
-0.037135832011699677,
0.13588079810142517,
-0.1739642173051834,
0.36118102073669434,
0.1119711771607399,
-0.17929865419864655,
0.09265275299549103,
-0.37939056754112244,
0.03709590435028076,
0.5412624478340149,
0.06411746889352798,
-0.13621413707733154,
-0.07269390672445297,
0.18978551030158997,
0.1448703408241272,
0.26034340262413025,
0.29212766885757446,
0.14364093542099,
0.4012097120285034,
-0.14104598760604858,
0.10606487095355988,
-0.08868111670017242,
0.16131553053855896,
0.12437890470027924,
-0.13675682246685028,
-0.09580578655004501,
-0.1503303050994873,
0.4106858968734741,
0.4148624837398529,
-0.03722051531076431,
0.01878872886300087,
0.2357933521270752,
-0.06680401414632797,
-0.07496748864650726,
-0.22412344813346863,
0.5326926708221436,
0.4717303514480591,
0.05628891661763191,
0.3155215084552765,
0.027367770671844482,
0.2627885341644287,
-0.493069589138031,
0.25850024819374084,
0.20685118436813354,
-0.34417015314102173,
0.20358890295028687,
0.0771225094795227,
-0.13784092664718628,
-0.13747799396514893,
0.07162043452262878,
0.3822638988494873,
0.25731396675109863,
-0.1986299306154251,
0.05366126447916031,
-0.6793524026870728,
-0.5351989269256592,
-0.3434396982192993,
-0.2511228322982788,
-0.1482515037059784,
-0.30524685978889465,
0.1282145380973816,
0.2785881757736206,
-0.280433714389801,
0.12026810646057129,
0.031789157539606094,
0.22599779069423676,
-0.1738283783197403,
0.19847935438156128,
-0.213906928896904,
-0.13563542068004608,
-0.25482621788978577,
0.09767383337020874,
0.3586399555206299,
0.3376234471797943,
0.2934272587299347,
-0.3645833730697632,
-0.19571372866630554,
-0.3108953535556793,
-0.03255099058151245,
-0.15991568565368652,
-0.0036138631403446198,
0.1372748613357544,
-0.03901307284832001,
0.5934833288192749,
0.13249559700489044,
-0.3987891674041748,
0.15634341537952423,
-0.009373593144118786,
-0.04489949345588684,
-0.06346186995506287,
-0.096500463783741,
0.09938494861125946,
-0.0341017059981823,
-0.6237550377845764,
-0.5904383659362793,
-0.5234635472297668,
0.18603399395942688,
-0.0353255458176136,
0.4430016279220581,
0.13969731330871582,
-0.3087506592273712,
-0.04156610369682312,
0.10248144716024399,
0.18441790342330933,
-0.056667618453502655,
-0.028026290237903595,
0.5375440120697021,
-0.16195495426654816,
-0.3553983271121979,
0.17279618978500366,
0.2059616595506668,
0.200956791639328,
0.46326303482055664,
-0.5046477317810059,
0.06467795372009277,
-0.11976639926433563,
-0.2729349434375763,
0.18706874549388885,
-0.19811969995498657,
0.14202025532722473,
-0.18990275263786316,
-0.17568065226078033,
-0.09216217696666718,
-0.11020511388778687,
-0.04741806536912918,
0.1542586237192154,
0.36092615127563477,
0.10701633989810944,
0.05806926637887955,
0.05402637645602226,
0.5281317830085754,
0.21440578997135162,
0.028845347464084625,
0.38253846764564514,
0.06985604017972946,
-0.09675830602645874,
0.20062336325645447,
-0.22115054726600647,
0.055932965129613876,
-0.14933627843856812,
0.3521575331687927,
0.4451562762260437,
-0.1774463951587677,
-0.15998069941997528,
-0.3324059844017029,
0.013520721346139908,
-0.11741290986537933,
-0.41210106015205383,
0.06760839372873306,
0.07657711207866669,
0.08481689542531967,
0.2502109110355377,
-0.09073104709386826,
-0.10477040708065033,
-0.24862182140350342,
0.14011777937412262,
0.2866029739379883,
-0.05548740178346634,
0.22253042459487915,
-0.11129262298345566,
-0.0839071199297905,
-0.4219069480895996,
0.3272364139556885,
0.06965379416942596,
0.6666911840438843,
-0.07275715470314026,
0.09598862379789352,
0.08111847937107086,
-0.04277358949184418,
0.32694756984710693,
-0.25895175337791443,
0.36647748947143555,
0.14765210449695587,
-0.02703794836997986,
-0.3202751874923706,
-0.18055228888988495,
-0.1551133692264557,
-0.13633041083812714,
0.2854502499103546,
0.241364985704422,
-0.5075762867927551,
-0.2647196650505066,
-0.012012094259262085,
0.30467545986175537,
-0.2263694554567337,
0.12715250253677368,
-0.09268172085285187,
-0.4546774923801422,
-0.16863538324832916,
-0.24838688969612122,
-0.19523347914218903,
0.047671929001808167,
-0.06362282484769821,
-0.1080402135848999,
0.1206832081079483,
0.013033244758844376,
-0.008907012641429901,
0.10070760548114777,
0.11346124857664108,
0.47041240334510803,
0.26509928703308105,
0.15762242674827576,
0.26959049701690674,
0.20702391862869263,
0.4462989568710327,
0.15909342467784882,
0.08764315396547318,
0.11125768721103668,
-0.0822959914803505,
-0.015038929879665375,
0.5899673700332642,
0.07582912594079971,
0.19440340995788574,
0.07974616438150406,
0.11392434686422348,
-0.11585473269224167,
0.16705887019634247,
0.3086416721343994,
-0.456676721572876,
-0.1548498272895813,
-0.3943789303302765,
0.3080309331417084,
0.05182180926203728,
-0.11398235708475113,
0.3615941107273102,
-0.0987035483121872,
-0.21756909787654877,
0.05667746812105179,
0.11349339038133621,
1.0516215562820435,
-0.05844326317310333,
0.18158335983753204,
-0.13888850808143616,
-0.09308214485645294,
0.4372520446777344,
0.005629830062389374,
0.23013508319854736,
-0.04000205546617508,
-0.3949959874153137,
-0.03987019509077072,
0.13879704475402832,
0.0006322860717773438,
0.3304256796836853,
-0.3092360198497772,
0.47908496856689453,
0.1480705738067627,
0.27517881989479065,
0.27326831221580505,
0.08892451226711273,
0.07638663053512573,
-0.09823533892631531,
-0.35726362466812134,
0.05401311814785004,
-0.20711113512516022,
0.4592023193836212,
-0.11649324744939804,
-0.33373910188674927,
-0.1740606278181076,
-0.062448035925626755,
-0.3034546375274658,
0.051122575998306274,
-0.2851748764514923,
0.056033194065093994,
-0.3349588215351105,
-0.05035838112235069,
0.1038980633020401,
0.0765504240989685,
0.2055126130580902,
0.128426656126976,
-0.4939311742782593,
0.18279899656772614,
-0.5684786438941956,
-0.09731359779834747,
0.01501421444118023,
-0.09198504686355591,
-0.15245220065116882,
-0.24839627742767334,
-0.1820315718650818,
-0.1257842779159546,
0.0838257372379303,
-0.16857755184173584,
-0.048217736184597015,
-0.17962469160556793,
-0.28986525535583496,
0.23559044301509857,
-0.14086869359016418,
-0.10408915579319,
-0.12622255086898804,
-0.21863879263401031,
0.10434389114379883,
-0.23954923450946808,
-0.1040249690413475,
0.272704541683197,
0.10630775988101959,
-0.17497870326042175,
-0.032020486891269684,
0.6141954660415649,
-0.0027175098657608032,
0.12574052810668945,
0.5313013792037964,
0.18200497329235077,
-0.10840204358100891,
-0.2623310983181,
-0.3209681212902069,
-0.2857595384120941,
-0.3247821033000946,
-0.07233566790819168,
-0.13970854878425598,
0.0443742573261261,
-0.014888545498251915,
0.41445231437683105,
0.09394820779561996,
0.18574385344982147,
-0.006085094064474106,
-0.525903582572937,
-0.13345342874526978,
0.1294768750667572,
0.042193785309791565,
0.09200113266706467,
-0.41934192180633545,
0.0345056913793087,
0.1674448847770691,
0.38627761602401733,
-0.28897011280059814,
0.09076633304357529,
-0.3084717392921448,
0.1050010547041893,
0.18382662534713745,
-0.014771692454814911,
0.1369221806526184,
0.21861690282821655,
-0.020785268396139145,
-0.020585540682077408,
-0.26064392924308777,
-0.07913628965616226,
-0.020868008956313133,
0.23877570033073425,
0.08866953104734421,
-0.39160627126693726,
0.18319609761238098,
-0.24717667698860168,
-0.06042232736945152,
0.052607208490371704,
-0.06636382639408112,
-0.11418388038873672,
0.05837519094347954,
0.04718099534511566,
0.14640375971794128,
0.08835765719413757,
-0.25558561086654663,
0.2022082805633545,
0.04967717081308365,
0.3802528381347656,
0.06882257014513016,
0.2652399241924286,
0.06981149315834045,
-0.19442355632781982,
-0.37251803278923035,
-0.24814936518669128,
0.09054052829742432,
0.2064656913280487,
0.3934921622276306,
0.05170110613107681,
-0.0551670677959919,
0.10356415063142776,
0.20667314529418945,
0.606073796749115,
0.0949702337384224,
-0.003731055185198784,
0.18265166878700256,
0.08500508964061737,
-0.34829747676849365,
-0.10512685030698776,
0.4268737733364105,
-0.0493982695043087,
-0.13352316617965698,
-0.018277384340763092,
0.1604180485010147,
-0.29511508345603943,
-0.04828821122646332,
-0.10612807422876358,
0.33360809087753296,
-0.044698409736156464,
0.13482631742954254,
0.38308125734329224,
0.13186821341514587,
-0.022306587547063828,
-0.14582857489585876,
-0.01141129806637764,
0.1830565631389618,
0.20753777027130127,
-0.2937130033969879,
0.29600557684898376,
0.002206910401582718,
0.05122781917452812,
-0.06331288069486618,
-0.32413655519485474,
-0.06495088338851929,
0.5230965614318848,
0.1908029019832611,
0.05683117359876633,
0.21894970536231995,
0.16270020604133606,
-0.09953046590089798,
-0.1670859307050705,
-0.43357062339782715,
0.35116320848464966,
0.3017353117465973,
-0.13930892944335938,
-0.36347416043281555,
-0.10486523807048798,
-0.412368506193161,
0.1891581416130066,
-0.11283311247825623,
-0.30352783203125,
0.353746235370636,
0.25340044498443604,
0.029120974242687225,
-0.40369972586631775,
-0.3220406472682953,
-0.16656512022018433,
0.010588183999061584,
-0.36282438039779663,
0.17554791271686554,
0.28814154863357544,
-0.16961093246936798,
0.27123236656188965,
0.27342942357063293,
0.03426114469766617,
0.1940804123878479,
0.05149247124791145,
0.23070074617862701,
-0.0529659204185009,
-0.03963478282094002,
-0.1296410709619522,
0.3255554735660553,
0.27265802025794983,
-0.15674541890621185,
0.48068171739578247,
0.04428030550479889,
-0.121505968272686,
0.15980389714241028,
0.07249480485916138,
-0.25592055916786194,
-0.17431753873825073,
0.4113020896911621,
-0.026932228356599808,
0.045727863907814026,
-0.0965426117181778,
-0.1521424949169159,
-0.29687437415122986,
-0.11952266097068787,
0.016986943781375885,
-0.09187531471252441,
0.2861560881137848,
-0.00048422219697386026,
0.024823278188705444,
-0.18856514990329742,
1.0825711488723755,
0.014578867703676224,
0.15328876674175262,
-0.2088090181350708,
-0.40536820888519287,
-0.6960789561271667,
0.14334386587142944,
-0.2470800280570984,
0.0924251526594162,
0.10401635617017746,
0.1266978234052658,
0.09647129476070404,
0.24519290030002594,
0.07241223752498627,
0.4204583168029785,
-0.14978396892547607,
0.30624866485595703,
-0.5024480223655701,
-0.22264863550662994,
0.09422646462917328,
0.4402632415294647,
-0.20742958784103394,
-0.4251110255718231,
0.4701157808303833,
-0.23630426824092865,
-0.032365456223487854,
0.06431911140680313,
-0.15715783834457397,
0.24655833840370178,
0.2980615198612213,
0.31827491521835327,
0.04088454693555832,
0.5406668186187744,
-0.054589442908763885,
-0.25723007321357727,
-0.44108283519744873,
-0.19291220605373383,
-0.07980287820100784,
0.034566186368465424,
0.15398180484771729,
0.2596026062965393,
0.019587701186537743,
0.40923669934272766,
-0.3668295443058014,
0.20182183384895325,
-0.2354794591665268,
0.3416222929954529,
0.07194379717111588,
0.03035440482199192,
-0.2026427984237671,
0.07768230885267258,
0.24468933045864105,
-0.05296657234430313,
-0.1159353107213974,
-0.17985373735427856,
-0.525128960609436,
-0.2719205915927887,
0.6197148561477661,
-0.2890964448451996,
-0.2216443121433258,
-0.2276812046766281,
0.37580156326293945,
-0.08105634897947311,
0.33044761419296265,
0.02155856043100357,
0.23012083768844604,
0.2397794872522354,
0.01745416596531868,
-0.19030709564685822,
0.20941829681396484,
-0.034332290291786194,
-0.27183568477630615,
0.029139894992113113,
0.09310207515954971,
0.16945967078208923,
-0.45758989453315735,
-0.28639599680900574,
-0.10428283363580704
] |
https://github.com/huggingface/datasets/issues/388 | 🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17 | Yeah, the download speed is sadly always extremely slow :-/.
I will try to check out the `wmt17 zh-en` bug :-) | 1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code:
```
nlp.load_dataset('wmt14','de-en')
nlp.load_dataset('wmt15','de-en')
nlp.load_dataset('wmt17','de-en')
nlp.load_dataset('wmt19','de-en')
```
The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18`
2. When trying to download `wmt17 zh-en`, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz | 21 | 🐛 [Dataset] Cannot download wmt14, wmt15 and wmt17
1. I try downloading `wmt14`, `wmt15`, `wmt17`, `wmt19` with the following code:
```
nlp.load_dataset('wmt14','de-en')
nlp.load_dataset('wmt15','de-en')
nlp.load_dataset('wmt17','de-en')
nlp.load_dataset('wmt19','de-en')
```
The code runs but the download speed is **extremely slow**, the same behaviour is not observed on `wmt16` and `wmt18`
2. When trying to download `wmt17 zh-en`, I got the following error:
> ConnectionError: Couldn't reach https://storage.googleapis.com/tfdataset-data/downloadataset/uncorpus/UNv1.0.en-zh.tar.gz
Yeah, the download speed is sadly always extremely slow :-/.
I will try to check out the `wmt17 zh-en` bug :-) | [
-0.3693391680717468,
-0.24872754514217377,
0.021656464785337448,
0.3820064663887024,
0.14801767468452454,
0.03158453106880188,
0.0206160806119442,
0.10976889729499817,
0.15086568892002106,
-0.022493839263916016,
-0.11923035979270935,
0.08131098747253418,
0.2570137083530426,
0.02212882973253727,
-0.05040620267391205,
-0.14980781078338623,
-0.06361816078424454,
-0.012731686234474182,
-0.32441285252571106,
-0.09937737882137299,
-0.353865385055542,
0.2009580284357071,
-0.20646685361862183,
0.09059339016675949,
0.27523067593574524,
0.08330100029706955,
-0.13136078417301178,
-0.15310794115066528,
-0.29542192816734314,
-0.2548477053642273,
0.36102357506752014,
0.3276957869529724,
-0.05598533898591995,
0.28097668290138245,
-0.00011312153219478205,
-0.056020282208919525,
0.2967316508293152,
-0.03839860111474991,
-0.26852330565452576,
-0.20182444155216217,
-0.5110464096069336,
-0.39424124360084534,
-0.07940645515918732,
0.08543508499860764,
-0.01840994879603386,
-0.2966773509979248,
0.24969279766082764,
-0.04396825656294823,
0.06492005288600922,
0.24940457940101624,
0.16832837462425232,
0.2879314422607422,
-0.06867533922195435,
-0.1455194354057312,
0.2407013177871704,
-0.20332415401935577,
-0.31074538826942444,
0.0399785116314888,
0.07859668880701065,
-0.17960400879383087,
0.1557217836380005,
0.05848390609025955,
0.08752429485321045,
0.3362601399421692,
0.176008403301239,
0.09427396953105927,
0.05104803293943405,
-0.20175974071025848,
0.082795649766922,
0.45040062069892883,
0.7103353142738342,
0.08515108376741409,
-0.49574998021125793,
0.28191885352134705,
-0.09189469367265701,
-0.23505224287509918,
0.34433606266975403,
0.31357628107070923,
-0.215872123837471,
-0.07347151637077332,
-0.46691685914993286,
0.2572804391384125,
-0.13833346962928772,
0.48926085233688354,
-0.09576201438903809,
0.7104802131652832,
0.133241668343544,
0.14340347051620483,
0.31298235058784485,
-0.11067982017993927,
-0.08162079751491547,
-0.27231425046920776,
0.00018866360187530518,
0.03349108621478081,
-0.48149561882019043,
-0.03222949802875519,
-0.06586939841508865,
0.0954645574092865,
0.07542873919010162,
0.10160865634679794,
0.2850092649459839,
0.21214964985847473,
0.02102649211883545,
-0.05172591656446457,
0.2097482681274414,
-0.021904686465859413,
-0.21308842301368713,
-0.16405068337917328,
0.43239694833755493,
0.2450234591960907,
0.1523033082485199,
0.1677440106868744,
0.14670820534229279,
-0.04880078509449959,
-0.22991512715816498,
0.024273565039038658,
-0.050510961562395096,
0.0019591785967350006,
-0.40011030435562134,
-0.1665734499692917,
-0.12383506447076797,
-0.2453400194644928,
-0.16454105079174042,
0.3225756287574768,
-0.28404176235198975,
0.16989386081695557,
-0.1212053969502449,
0.1779891550540924,
-0.0842856839299202,
-0.24176648259162903,
-0.1613672375679016,
-0.15749965608119965,
-0.2656615674495697,
0.04871280491352081,
0.5434916019439697,
0.2756895124912262,
0.13496842980384827,
-0.02769412472844124,
-0.45962512493133545,
0.12991812825202942,
0.10531197488307953,
-0.1755291223526001,
-0.15066152811050415,
0.3081343173980713,
0.04140336439013481,
0.45119357109069824,
-0.1181471198797226,
0.21419008076190948,
-0.21801415085792542,
-0.01478894054889679,
-0.1912539005279541,
0.0683167427778244,
0.18333829939365387,
0.16965685784816742,
-0.1521884948015213,
-0.19544434547424316,
-0.18420258164405823,
0.07427223026752472,
-0.25442492961883545,
0.06592041254043579,
-0.2866145670413971,
-0.10902835428714752,
-0.3650817573070526,
-0.11893901973962784,
0.18130093812942505,
0.37887996435165405,
-0.3131738007068634,
-0.0457644946873188,
-0.3016701936721802,
-0.10566434264183044,
0.3926267623901367,
0.48088714480400085,
-0.02146035060286522,
-0.06908265501260757,
-0.26117759943008423,
-0.1133301854133606,
0.47934040427207947,
-0.056939586997032166,
-0.5938485860824585,
0.4285421371459961,
-0.1727682650089264,
0.08561629801988602,
0.1779768466949463,
0.17727161943912506,
-0.08558285236358643,
-0.08258211612701416,
0.12703372538089752,
0.701655387878418,
0.005917586386203766,
0.06210794299840927,
-0.08234937489032745,
-0.3496217727661133,
0.49602609872817993,
0.07937481999397278,
-0.13106581568717957,
0.06298685073852539,
0.07747035473585129,
0.23088112473487854,
0.4280627369880676,
-0.04929555580019951,
0.12070654332637787,
0.21196500957012177,
0.0061043016612529755,
-0.2326270192861557,
0.16752390563488007,
0.2613879144191742,
-0.8036825060844421,
0.327198326587677,
-0.17318159341812134,
0.042075902223587036,
0.053372472524642944,
0.09867486357688904,
-0.09309908747673035,
-0.2325116991996765,
-0.11485885083675385,
0.1196196973323822,
0.09923365712165833,
0.40087729692459106,
-0.08089395612478256,
0.03854681923985481,
0.24408851563930511,
0.163726344704628,
0.18601469695568085,
0.07212429493665695,
0.03751804307103157,
0.0890054702758789,
-0.14970643818378448,
0.10789285600185394,
0.4190078675746918,
-0.20345348119735718,
0.09057027846574783,
-0.2255450040102005,
-0.10613413155078888,
0.030129704624414444,
-0.11876356601715088,
0.3457847237586975,
0.03426592797040939,
0.01295819878578186,
0.1846439093351364,
-0.36449721455574036,
0.04306015372276306,
0.5446991920471191,
0.1592683345079422,
-0.29011961817741394,
-0.2831040024757385,
0.16040179133415222,
0.22948677837848663,
0.25566571950912476,
0.2638523578643799,
-0.02879539504647255,
0.3943082392215729,
-0.027175139635801315,
0.06972330808639526,
-0.07047244161367416,
0.3118409514427185,
0.1041930615901947,
-0.17645592987537384,
-0.10470573604106903,
-0.17862750589847565,
0.3837140202522278,
0.7334498763084412,
-0.02737361751496792,
0.04452335834503174,
0.2151576280593872,
-0.009701207280158997,
-0.27938541769981384,
-0.10212557762861252,
0.24195577204227448,
0.530739426612854,
-0.01845734938979149,
0.31823161244392395,
-0.007591230794787407,
0.05282222852110863,
-0.4657368063926697,
0.2658331096172333,
0.03235027194023132,
-0.26327913999557495,
0.20835208892822266,
0.14618290960788727,
-0.11726249009370804,
-0.27022892236709595,
-0.039177533239126205,
0.37227919697761536,
0.31836217641830444,
-0.11375360190868378,
0.02159983105957508,
-0.5688727498054504,
-0.4337552487850189,
-0.04170522466301918,
-0.09722865372896194,
-0.23284053802490234,
-0.4373248815536499,
-0.010617010295391083,
0.35928937792778015,
-0.11753103137016296,
0.08346638828516006,
0.011237792670726776,
0.05181647837162018,
0.03219404071569443,
0.11225155740976334,
-0.22323071956634521,
-0.05088389664888382,
-0.2936740815639496,
0.050641562789678574,
0.25019571185112,
-0.004824650473892689,
0.34651580452919006,
-0.25491657853126526,
0.004322279244661331,
-0.2484770119190216,
-0.18281567096710205,
-0.07342289388179779,
-0.13284184038639069,
-0.009791959077119827,
0.021005555987358093,
0.37568342685699463,
-0.04847323149442673,
0.019789807498455048,
0.26772481203079224,
-0.13066907227039337,
-0.09336318075656891,
0.1500164270401001,
-0.14751717448234558,
-0.1163984015583992,
-0.14553095400333405,
-0.4618684947490692,
-0.4196476340293884,
-0.3909376263618469,
0.2283402532339096,
0.017711695283651352,
0.26472240686416626,
0.2665114998817444,
-0.24339604377746582,
-0.009089868515729904,
0.13409525156021118,
0.1358199566602707,
-0.21165166795253754,
0.1096784770488739,
0.5519055128097534,
-0.012211805209517479,
-0.4962179958820343,
0.2889944612979889,
0.30839961767196655,
0.1282171607017517,
0.4666340947151184,
-0.5050537586212158,
0.08147889375686646,
-0.22450226545333862,
-0.08681859076023102,
0.21056511998176575,
-0.08062884211540222,
0.18034382164478302,
-0.2014329433441162,
-0.1320718228816986,
-0.06354653835296631,
-0.2266346514225006,
0.00034295767545700073,
0.33549630641937256,
0.2945864796638489,
0.05751626938581467,
0.07515397667884827,
0.11302272975444794,
0.2551252841949463,
0.3227810263633728,
0.03557606041431427,
0.4502718448638916,
0.057079017162323,
-0.039558518677949905,
0.05555756390094757,
-0.1616867482662201,
0.0864979699254036,
-0.15083593130111694,
0.41951870918273926,
0.3306366801261902,
-0.1776617467403412,
-0.25439295172691345,
-0.22119739651679993,
0.2076505422592163,
0.15602907538414001,
-0.30326390266418457,
-0.03628424555063248,
0.09262899309396744,
-0.02472737431526184,
0.25823357701301575,
0.05453083664178848,
0.02809987962245941,
-0.4963300824165344,
0.15356382727622986,
0.28111782670021057,
-0.11596591025590897,
0.17097119987010956,
-0.054292067885398865,
-0.025126203894615173,
-0.5100095868110657,
0.26229435205459595,
-0.08693741261959076,
0.6925249099731445,
-0.24529501795768738,
0.13219419121742249,
0.15418006479740143,
-0.13343535363674164,
0.379563570022583,
-0.33554714918136597,
0.4085904359817505,
0.244113951921463,
-0.09982460737228394,
-0.3103896379470825,
-0.2699897885322571,
-0.3074083626270294,
-0.2978399991989136,
0.20704488456249237,
0.4671504497528076,
-0.40368565917015076,
-0.2595314383506775,
-0.0028823185712099075,
0.2527553141117096,
-0.08343331515789032,
0.03299509361386299,
-0.1655893474817276,
-0.42589157819747925,
-0.0759304091334343,
-0.19603782892227173,
-0.292361855506897,
0.07904130965471268,
-0.20441119372844696,
-0.07171649485826492,
0.1685202568769455,
0.004644669592380524,
-0.038775309920310974,
0.019535724073648453,
0.029074013233184814,
0.2013511061668396,
0.35277900099754333,
0.04115685448050499,
0.20881231129169464,
-0.004182834178209305,
0.4881170690059662,
0.18260851502418518,
-0.019179217517375946,
0.20272588729858398,
-0.19372975826263428,
-0.14192527532577515,
0.44823727011680603,
0.061698153614997864,
0.11611228436231613,
-0.01974516361951828,
0.19268187880516052,
-0.12041353434324265,
-0.06463630497455597,
0.46728992462158203,
-0.31626009941101074,
-0.27918511629104614,
-0.2282620519399643,
0.29179540276527405,
0.09229888021945953,
-0.06323052197694778,
0.34061017632484436,
-0.07523076236248016,
-0.10062427818775177,
0.0542612187564373,
-0.07270512729883194,
0.8992086052894592,
-0.07506674528121948,
0.16761189699172974,
0.028445767238736153,
-0.012026015669107437,
0.3487119972705841,
-0.07879789173603058,
0.2581678330898285,
-0.1769608110189438,
-0.22498176991939545,
-0.0033693406730890274,
0.031114686280488968,
0.027461078017950058,
0.21012508869171143,
-0.40927180647850037,
0.5043520927429199,
0.2017362266778946,
0.2596507966518402,
0.21108439564704895,
0.09160447120666504,
-0.0027354080229997635,
-0.08225476741790771,
-0.06914284825325012,
0.13383732736110687,
-0.12575840950012207,
0.593008279800415,
-0.011537372134625912,
-0.33997470140457153,
-0.06330360472202301,
-0.050425224006175995,
-0.337565541267395,
0.22890043258666992,
-0.2211635857820511,
0.10648848861455917,
-0.27809029817581177,
-0.028922688215970993,
0.11299711465835571,
-0.1082194447517395,
0.1168987900018692,
0.14735043048858643,
-0.43523967266082764,
0.10449768602848053,
-0.5686904788017273,
0.12266741693019867,
0.04550520330667496,
-0.06568749994039536,
-0.07661774754524231,
-0.2632240653038025,
-0.15478864312171936,
-0.19981729984283447,
-0.04940970614552498,
-0.07310226559638977,
-0.0469885990023613,
-0.11418555676937103,
-0.2927268147468567,
0.2307787388563156,
-0.033750731498003006,
-0.12792809307575226,
-0.2546490430831909,
-0.09520316123962402,
0.1239214539527893,
-0.027990788221359253,
0.06289776414632797,
0.4031960964202881,
0.10705416649580002,
-0.2656989097595215,
-0.13430581986904144,
0.6130914092063904,
-0.15190869569778442,
0.15012052655220032,
0.3498305678367615,
0.18830926716327667,
-0.2084122747182846,
-0.3143334686756134,
-0.37197908759117126,
-0.08975299447774887,
-0.4002476930618286,
-0.0692310705780983,
-0.1440841108560562,
0.10016998648643494,
0.1170554831624031,
0.4755743443965912,
-0.04902620613574982,
0.05586693435907364,
0.056226279586553574,
-0.5779900550842285,
-0.07620974630117416,
-0.017379216849803925,
-0.075217604637146,
0.0603908970952034,
-0.38155561685562134,
-0.06139766797423363,
0.3596571385860443,
0.09121181070804596,
-0.2972773313522339,
0.08413920551538467,
-0.2831425964832306,
-0.02058475837111473,
0.2991085648536682,
-0.19705820083618164,
0.13984984159469604,
0.1217774748802185,
0.031745150685310364,
-0.11539888381958008,
-0.5138577818870544,
-0.13495612144470215,
-0.012688728980720043,
0.19682618975639343,
0.23120126128196716,
-0.3998681306838989,
0.10133875161409378,
-0.26931506395339966,
-0.13870014250278473,
-0.029908671975135803,
0.02380584180355072,
-0.06971637159585953,
-0.11349958181381226,
0.015545058064162731,
0.01598726585507393,
0.17847517132759094,
-0.05226806551218033,
0.17897100746631622,
0.08107084035873413,
0.3983916640281677,
-0.03229715675115585,
0.2166854292154312,
0.14202332496643066,
-0.1306736171245575,
-0.46401849389076233,
-0.1250666379928589,
0.004228703677654266,
0.1668861210346222,
0.4557458758354187,
-0.15033811330795288,
0.11459648609161377,
-0.19031691551208496,
0.28947004675865173,
0.5473500490188599,
-0.01970631815493107,
-0.16597208380699158,
0.08184155821800232,
0.1417398303747177,
-0.25285959243774414,
-0.32409951090812683,
0.2707703411579132,
0.26600778102874756,
-0.08965995162725449,
-0.11656459420919418,
0.2668008506298065,
-0.22756654024124146,
0.0049264803528785706,
-0.11710848659276962,
0.5208175182342529,
-0.1662725955247879,
-0.07325460016727448,
0.3250984251499176,
0.09123101830482483,
0.19147197902202606,
-0.04571902006864548,
-0.05150236561894417,
0.013542041182518005,
0.14610598981380463,
-0.10718997567892075,
0.19411954283714294,
0.13372404873371124,
0.18803240358829498,
-0.006420835852622986,
-0.44917774200439453,
-0.13419818878173828,
0.4470542073249817,
-0.10824206471443176,
0.08372162282466888,
0.2773934006690979,
0.04683944210410118,
-0.18601933121681213,
-0.23363548517227173,
-0.5212224721908569,
0.24924170970916748,
0.1441931277513504,
-0.2176218330860138,
-0.15785780549049377,
-0.040639422833919525,
-0.3839210867881775,
0.30181416869163513,
-0.20111368596553802,
-0.10448424518108368,
0.3324407935142517,
0.1468769609928131,
0.05920127406716347,
-0.404460608959198,
-0.24514338374137878,
-0.10186044126749039,
-0.011712215840816498,
-0.27201375365257263,
0.131062313914299,
0.04349758103489876,
-0.1083546131849289,
0.05095679312944412,
0.11661616712808609,
0.13236726820468903,
0.24665133655071259,
0.044189468026161194,
0.15147638320922852,
-0.055039118975400925,
-0.07698366791009903,
-0.12671172618865967,
0.5055835247039795,
0.31765690445899963,
-0.31329047679901123,
0.37886083126068115,
0.010559162124991417,
-0.12533192336559296,
0.16140682995319366,
0.047646861523389816,
-0.11730185151100159,
-0.02781175822019577,
0.4096534550189972,
-0.1731019914150238,
0.007070697844028473,
-0.0808531790971756,
-0.029183052480220795,
-0.22729766368865967,
-0.04897509142756462,
0.22350867092609406,
-0.031447380781173706,
0.31165754795074463,
-0.1972493976354599,
0.06267587095499039,
-0.14039702713489532,
0.9632143378257751,
0.17470452189445496,
0.008198674768209457,
-0.18437133729457855,
-0.2348640114068985,
-0.6164382696151733,
0.10305570811033249,
-0.25227248668670654,
0.19882044196128845,
0.06164594739675522,
0.2748510539531708,
-0.030910968780517578,
0.21288105845451355,
0.17940936982631683,
0.49605634808540344,
-0.0012598000466823578,
0.3387599587440491,
-0.3486461937427521,
-0.15764489769935608,
0.06712401658296585,
0.2313787192106247,
-0.31627166271209717,
-0.5026991963386536,
0.5336250066757202,
-0.45304492115974426,
0.029982790350914,
-0.1813541054725647,
-0.04188334941864014,
0.14481377601623535,
0.35954758524894714,
0.3521793484687805,
0.14094500243663788,
0.534712553024292,
0.10010463744401932,
-0.23660621047019958,
-0.40526843070983887,
-0.06488268822431564,
0.08727743476629257,
-0.006620846688747406,
0.06285282224416733,
0.06961815804243088,
0.1808975338935852,
0.4258287250995636,
-0.33662113547325134,
0.2417769879102707,
-0.3410276174545288,
0.3019995093345642,
0.1489570438861847,
0.20376351475715637,
-0.15931548178195953,
0.08258916437625885,
0.15611833333969116,
-0.09601355344057083,
-0.047536902129650116,
-0.2808299660682678,
-0.4668974280357361,
-0.27085843682289124,
0.38421738147735596,
-0.1362176239490509,
-0.2359122633934021,
-0.3162333071231842,
0.25793230533599854,
-0.10170754045248032,
0.2079443484544754,
-0.043305933475494385,
0.23539665341377258,
0.17940180003643036,
-0.1781785786151886,
-0.29377299547195435,
0.29732728004455566,
-0.00957988016307354,
-0.17041093111038208,
0.0426894836127758,
0.10260037332773209,
0.14127567410469055,
-0.4580462574958801,
-0.14704015851020813,
-0.03949712961912155
] |
https://github.com/huggingface/datasets/issues/387 | Conversion through to_pandas output numpy arrays for lists instead of python objects | To convert from arrow type we have three options: to_numpy, to_pandas and to_pydict/to_pylist.
- to_numpy and to_pandas return numpy arrays instead of lists but are very fast.
- to_pydict/to_pylist can be 100x slower and become the bottleneck for reading data, but at least they return lists.
Maybe we can have to_pydict/to_pylist as the default and use to_numpy or to_pandas when the format (set by `set_format`) is 'numpy' or 'pandas' | In a related question, the conversion through to_pandas output numpy arrays for the lists instead of python objects.
Here is an example:
```python
>>> dataset._data.slice(key, 1).to_pandas().to_dict("list")
{'sentence1': ['Amrozi accused his brother , whom he called " the witness " , of deliberately distorting his evidence .'], 'sentence2': ['Referring to him as only " the witness " , Amrozi accused his brother of deliberately distorting his evidence .'], 'label': [1], 'idx': [0], 'input_ids': [array([ 101, 7277, 2180, 5303, 4806, 1117, 1711, 117, 2292,
1119, 1270, 107, 1103, 7737, 107, 117, 1104, 9938,
4267, 12223, 21811, 1117, 2554, 119, 102])], 'token_type_ids': [array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0])], 'attention_mask': [array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1])]}
>>> type(dataset._data.slice(key, 1).to_pandas().to_dict("list")['input_ids'][0])
<class 'numpy.ndarray'>
>>> dataset._data.slice(key, 1).to_pydict()
{'sentence1': ['Amrozi accused his brother , whom he called " the witness " , of deliberately distorting his evidence .'], 'sentence2': ['Referring to him as only " the witness " , Amrozi accused his brother of deliberately distorting his evidence .'], 'label': [1], 'idx': [0], 'input_ids': [[101, 7277, 2180, 5303, 4806, 1117, 1711, 117, 2292, 1119, 1270, 107, 1103, 7737, 107, 117, 1104, 9938, 4267, 12223, 21811, 1117, 2554, 119, 102]], 'token_type_ids': [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], 'attention_mask': [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]}
``` | 69 | Conversion through to_pandas output numpy arrays for lists instead of python objects
In a related question, the conversion through to_pandas output numpy arrays for the lists instead of python objects.
Here is an example:
```python
>>> dataset._data.slice(key, 1).to_pandas().to_dict("list")
{'sentence1': ['Amrozi accused his brother , whom he called " the witness " , of deliberately distorting his evidence .'], 'sentence2': ['Referring to him as only " the witness " , Amrozi accused his brother of deliberately distorting his evidence .'], 'label': [1], 'idx': [0], 'input_ids': [array([ 101, 7277, 2180, 5303, 4806, 1117, 1711, 117, 2292,
1119, 1270, 107, 1103, 7737, 107, 117, 1104, 9938,
4267, 12223, 21811, 1117, 2554, 119, 102])], 'token_type_ids': [array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0])], 'attention_mask': [array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1])]}
>>> type(dataset._data.slice(key, 1).to_pandas().to_dict("list")['input_ids'][0])
<class 'numpy.ndarray'>
>>> dataset._data.slice(key, 1).to_pydict()
{'sentence1': ['Amrozi accused his brother , whom he called " the witness " , of deliberately distorting his evidence .'], 'sentence2': ['Referring to him as only " the witness " , Amrozi accused his brother of deliberately distorting his evidence .'], 'label': [1], 'idx': [0], 'input_ids': [[101, 7277, 2180, 5303, 4806, 1117, 1711, 117, 2292, 1119, 1270, 107, 1103, 7737, 107, 117, 1104, 9938, 4267, 12223, 21811, 1117, 2554, 119, 102]], 'token_type_ids': [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], 'attention_mask': [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]}
```
To convert from arrow type we have three options: to_numpy, to_pandas and to_pydict/to_pylist.
- to_numpy and to_pandas return numpy arrays instead of lists but are very fast.
- to_pydict/to_pylist can be 100x slower and become the bottleneck for reading data, but at least they return lists.
Maybe we can have to_pydict/to_pylist as the default and use to_numpy or to_pandas when the format (set by `set_format`) is 'numpy' or 'pandas' | [
0.25602754950523376,
-0.07245652377605438,
-0.23676353693008423,
-0.009235084056854248,
0.2625877857208252,
0.08429249376058578,
0.6678323745727539,
0.3210130035877228,
0.08501552045345306,
0.10968780517578125,
-0.2230847328901291,
0.6318759322166443,
0.04617898538708687,
-0.017983075231313705,
0.011641295626759529,
-0.17475031316280365,
0.09567488729953766,
0.2547396421432495,
-0.2903563678264618,
-0.06893125176429749,
-0.28306740522384644,
0.01563987135887146,
-0.014375284314155579,
0.04701725393533707,
-0.0316816084086895,
-0.12294330447912216,
-0.2430117279291153,
-0.06696543842554092,
-0.009963378310203552,
-0.2817724049091339,
-0.11027277261018753,
-0.052208010107278824,
-0.15654738247394562,
0.10774783045053482,
-0.00009658550698077306,
0.011758469045162201,
0.10074655711650848,
0.1284487396478653,
-0.27789822220802307,
0.09881218522787094,
0.2208990752696991,
-0.4964863955974579,
0.12832124531269073,
-0.3898867666721344,
0.019424457103013992,
-0.37095189094543457,
-0.00115896575152874,
-0.23527175188064575,
0.22336313128471375,
0.23780477046966553,
0.32483717799186707,
0.08249978721141815,
0.04067493602633476,
-0.009180877357721329,
-0.1530112624168396,
-0.05365082621574402,
-0.11167313903570175,
-0.09680509567260742,
0.0740227997303009,
-0.0003451090306043625,
0.022483140230178833,
0.1968284547328949,
-0.23121760785579681,
-0.05409228429198265,
-0.1202847883105278,
0.07834333181381226,
0.17508703470230103,
-0.20166289806365967,
-0.059109315276145935,
0.13222607970237732,
0.07103338837623596,
-0.2181081473827362,
-0.27256572246551514,
-0.35799333453178406,
0.01106598973274231,
-0.10444082319736481,
-0.2819863557815552,
0.1497369110584259,
-0.04193854704499245,
0.3047570288181305,
-0.0567258782684803,
0.14159202575683594,
-0.19755685329437256,
0.1329682469367981,
-0.22346268594264984,
0.13347628712654114,
-0.0038775745779275894,
-0.02699708193540573,
0.11812573671340942,
-0.23266492784023285,
0.2993660867214203,
-0.1540306657552719,
0.2643836438655853,
0.008697268553078175,
-0.07155728340148926,
-0.13384157419204712,
0.19592899084091187,
-0.38730621337890625,
-0.03227229788899422,
-0.3329622149467468,
0.1830250769853592,
-0.05389537662267685,
-0.023533456027507782,
0.13198480010032654,
0.1248033195734024,
0.23152783513069153,
-0.010312765836715698,
0.10864590108394623,
-0.03319185972213745,
-0.022217703983187675,
0.142820343375206,
0.10673598200082779,
0.020814288407564163,
0.0476764440536499,
0.1039295345544815,
0.05435299128293991,
0.20670974254608154,
0.09484736621379852,
-0.39955300092697144,
0.021492231637239456,
-0.43210145831108093,
0.37279212474823,
-0.14166724681854248,
0.0871334969997406,
-0.005685774609446526,
0.503351628780365,
0.05709433555603027,
0.07840992510318756,
0.01207704097032547,
0.31285205483436584,
-0.22225940227508545,
0.2659432590007782,
0.008957818150520325,
-0.22153407335281372,
-0.02102682739496231,
0.39064550399780273,
0.004608732648193836,
0.005605784244835377,
0.2724510431289673,
0.05295076221227646,
0.009036079049110413,
-0.05702590569853783,
0.39849087595939636,
0.1581864356994629,
-0.018322275951504707,
0.10295707732439041,
0.33050623536109924,
-0.27357208728790283,
-0.07340843975543976,
0.3235864043235779,
0.08975465595722198,
0.09800325334072113,
-0.07304905354976654,
0.35010817646980286,
0.026744037866592407,
-0.13536085188388824,
0.12049265950918198,
0.19605588912963867,
0.09799142181873322,
0.03919657692313194,
-0.06270133703947067,
-0.39276832342147827,
0.12852835655212402,
-0.2342427372932434,
-0.02580137550830841,
0.0015652775764465332,
-0.42756137251853943,
0.10420897603034973,
0.04026937857270241,
-0.03268343210220337,
0.21900320053100586,
0.3847595751285553,
-0.015379753895103931,
-0.03114107996225357,
-0.10359599441289902,
0.19598858058452606,
-0.0700906440615654,
-0.2117779403924942,
-0.14313992857933044,
0.025964323431253433,
0.1356392204761505,
0.3213239908218384,
0.23091629147529602,
0.16768525540828705,
0.1878184676170349,
0.03334908187389374,
0.17087824642658234,
0.08543306589126587,
0.025394758209586143,
0.16540397703647614,
-0.21664273738861084,
-0.20080749690532684,
0.21756884455680847,
-0.05016694217920303,
-0.027714941650629044,
0.3013145327568054,
-0.14789223670959473,
-0.07523834705352783,
0.2646346688270569,
-0.3522575795650482,
-0.0863962322473526,
-0.10852916538715363,
0.12631535530090332,
-0.1856982260942459,
-0.07065853476524353,
-0.0009579695761203766,
0.09292253106832504,
0.009178537875413895,
-0.1311032474040985,
0.3257485032081604,
-0.221781924366951,
-0.4243863821029663,
-0.349508672952652,
0.045758605003356934,
-0.013223890215158463,
0.027681127190589905,
0.40243950486183167,
0.05684202164411545,
0.09816287457942963,
-0.0829145610332489,
0.17112603783607483,
0.04854225367307663,
-0.1781456023454666,
-0.03653474897146225,
-0.2771187126636505,
0.0510207936167717,
-0.16102352738380432,
-0.06166188418865204,
-0.010237414389848709,
0.26584744453430176,
0.041078031063079834,
0.13675780594348907,
0.25366994738578796,
0.15686187148094177,
0.22534823417663574,
-0.1363910734653473,
0.0789506807923317,
0.1731395274400711,
0.1421354115009308,
-0.010740887373685837,
0.3149237334728241,
0.5039955973625183,
0.13780778646469116,
0.05067424476146698,
-0.039413005113601685,
0.5265212059020996,
0.10047420859336853,
0.06737635284662247,
0.14981727302074432,
0.2438427209854126,
0.22833329439163208,
0.2267894744873047,
-0.022183788940310478,
-0.16476795077323914,
-0.2045830637216568,
0.08839479088783264,
-0.03721058368682861,
0.07834585011005402,
-0.5608398914337158,
0.32965928316116333,
0.38717225193977356,
-0.12543609738349915,
0.29820194840431213,
-0.042948149144649506,
-0.11709240823984146,
-0.12968380749225616,
0.009282487444579601,
-0.08549763262271881,
0.06470656394958496,
0.3047468960285187,
0.13462260365486145,
-0.10111995786428452,
-0.24635207653045654,
-0.15735659003257751,
0.1716032326221466,
0.14038866758346558,
0.14972512423992157,
-0.05192849040031433,
0.2285134494304657,
-0.21219806373119354,
-0.2140842080116272,
0.05723999813199043,
-0.2752452492713928,
0.10162036120891571,
-0.22886966168880463,
0.2389468103647232,
-0.34866589307785034,
-0.2187676727771759,
-0.004796174354851246,
-0.1646876186132431,
0.23677757382392883,
-0.43874773383140564,
0.11862491816282272,
0.08315318077802658,
-0.09628407657146454,
0.0275762639939785,
0.38944822549819946,
-0.010233551263809204,
0.30712535977363586,
0.11240211874246597,
-0.13750867545604706,
-0.21126574277877808,
0.01763465814292431,
0.3510562777519226,
-0.032506342977285385,
0.11014322936534882,
0.10012584179639816,
-0.06349436193704605,
-0.05700422450900078,
-0.13352565467357635,
-0.27513739466667175,
0.003108486533164978,
-0.2275831550359726,
0.18850906193256378,
0.21131861209869385,
0.2826879024505615,
-0.24877895414829254,
-0.04935264587402344,
-0.07172202318906784,
-0.053593382239341736,
-0.0864405483007431,
0.10110596567392349,
0.02963731624186039,
-0.012776941992342472,
-0.13915540277957916,
-0.27380770444869995,
-0.37086859345436096,
-0.24616102874279022,
0.2457759827375412,
0.19725780189037323,
0.14487794041633606,
0.041927531361579895,
0.37204667925834656,
0.3241763114929199,
0.2355496883392334,
0.21290047466754913,
-0.12524953484535217,
0.12985190749168396,
0.28621211647987366,
-0.17854240536689758,
-0.32477566599845886,
-0.34954917430877686,
-0.04033535718917847,
-0.09183233976364136,
-0.22656551003456116,
-0.04711116850376129,
-0.4609469473361969,
-0.13547314703464508,
-0.012589702382683754,
0.1935328096151352,
-0.03266521543264389,
0.14904506504535675,
0.2680908441543579,
-0.30679598450660706,
-0.050203774124383926,
0.09719660878181458,
-0.04283859580755234,
0.04326840490102768,
-0.0840693786740303,
-0.0630858838558197,
0.0501088872551918,
0.15260525047779083,
0.219474196434021,
0.09775957465171814,
-0.1959163248538971,
-0.13121172785758972,
-0.015270711854100227,
0.3280453085899353,
-0.16063064336776733,
-0.10106508433818817,
-0.24103152751922607,
-0.16821688413619995,
-0.0981953889131546,
0.12482981383800507,
-0.14720487594604492,
-0.3451806902885437,
0.0037207864224910736,
0.23766785860061646,
-0.3825843632221222,
-0.09685955941677094,
0.11318553239107132,
-0.23354512453079224,
-0.04786261171102524,
0.041628796607255936,
0.21795937418937683,
-0.21251270174980164,
0.012760749086737633,
-0.17659716308116913,
-0.03603959083557129,
0.2504291832447052,
-0.12702636420726776,
-0.3720672130584717,
-0.2742793560028076,
-0.35559773445129395,
0.3058629035949707,
0.20067456364631653,
0.19693158566951752,
0.12455253303050995,
-0.4118634760379791,
-0.06825976073741913,
0.019074440002441406,
0.4703347682952881,
0.08217617124319077,
-0.33714020252227783,
0.36463093757629395,
0.02056623250246048,
-0.09616424143314362,
0.10426725447177887,
-0.5635345578193665,
0.00933484174311161,
0.16411158442497253,
0.10901214927434921,
-0.2452836036682129,
-0.059585098177194595,
0.08113750070333481,
0.21199576556682587,
0.011874306946992874,
0.1769608110189438,
-0.11130383610725403,
-0.30245909094810486,
-0.2614579200744629,
0.019808314740657806,
0.19834692776203156,
0.12581294775009155,
-0.4265234172344208,
-0.2748197615146637,
-0.1618732511997223,
-0.22168514132499695,
0.37594687938690186,
0.17749284207820892,
0.03466387093067169,
-0.04053417593240738,
-0.19333769381046295,
-0.20157268643379211,
0.23106330633163452,
0.15659572184085846,
-0.05672252178192139,
-0.22540253400802612,
-0.12002149224281311,
-0.09816049784421921,
-0.05513710528612137,
0.19930431246757507,
0.24184776842594147,
-0.08968823403120041,
-0.05645754188299179,
-0.24138256907463074,
-0.0663808286190033,
0.15018096566200256,
-0.14604628086090088,
0.22116991877555847,
0.07006144523620605,
-0.027651647105813026,
-0.329196572303772,
0.12097783386707306,
0.04637627676129341,
-0.10512486845254898,
-0.022285476326942444,
-0.11526711285114288,
-0.20814582705497742,
0.2638198137283325,
0.03251203894615173,
0.8158714175224304,
-0.10561740398406982,
0.30055245757102966,
0.4592892825603485,
-0.19771640002727509,
0.472538560628891,
0.22859607636928558,
0.11599602550268173,
-0.2518948018550873,
-0.057671159505844116,
-0.059479787945747375,
-0.01004665344953537,
0.20437079668045044,
0.2532425820827484,
-0.25613102316856384,
0.11577323824167252,
-0.2948712706565857,
0.13164380192756653,
0.04822652041912079,
-0.0555570051074028,
0.03850211203098297,
-0.17735888063907623,
-0.5897293090820312,
0.33529525995254517,
0.05477980896830559,
-0.41746845841407776,
-0.03004092164337635,
-0.13067981600761414,
-0.3652648627758026,
0.1664576530456543,
0.17220376431941986,
0.014975693076848984,
0.23710183799266815,
0.2857075333595276,
0.1130526214838028,
-0.39737051725387573,
-0.31945064663887024,
0.2990211844444275,
0.07823622226715088,
0.14305584132671356,
0.05970599502325058,
-0.15943825244903564,
0.12496217340230942,
0.10964611172676086,
0.22937710583209991,
-0.05772009864449501,
0.4965391457080841,
0.10310802608728409,
-0.05005890876054764,
0.17604994773864746,
0.009272038005292416,
-0.21804332733154297,
-0.18851323425769806,
-0.027195632457733154,
0.007690116763114929,
-0.3465360701084137,
-0.1482536643743515,
-0.05161553621292114,
-0.4196207821369171,
-0.1843438744544983,
0.2770851254463196,
-0.03147520869970322,
-0.09960010647773743,
0.32774877548217773,
0.024616742506623268,
-0.07969058305025101,
-0.012031834572553635,
0.11325985193252563,
0.41377854347229004,
0.03451371192932129,
0.059180185198783875,
0.07014435529708862,
-0.38476359844207764,
-0.23871934413909912,
0.08254259079694748,
-0.15261030197143555,
0.07036042958498001,
0.4293038845062256,
-0.11218123883008957,
-0.14179731905460358,
-0.1393555849790573,
-0.10047434270381927,
-0.12531957030296326,
0.37286287546157837,
-0.4571969211101532,
-0.20463132858276367,
-0.2589767277240753,
0.18189841508865356,
0.09116560220718384,
0.33532649278640747,
0.23831796646118164,
0.13427774608135223,
-0.2093554586172104,
-0.24031805992126465,
-0.5028529763221741,
-0.17356348037719727,
-0.3184013068675995,
0.131695955991745,
0.034873660653829575,
-0.233292818069458,
-0.1063106581568718,
0.06224040314555168,
0.3776394724845886,
0.16256655752658844,
-0.00792473740875721,
-0.45199471712112427,
0.2044612020254135,
0.023530304431915283,
-0.01021578535437584,
-0.16325707733631134,
0.21163401007652283,
-0.020133238285779953,
-0.24783319234848022,
-0.24645760655403137,
0.012144524604082108,
0.03656402975320816,
-0.07958610355854034,
0.22352318465709686,
0.06538695842027664,
0.3287331163883209,
0.36746543645858765,
-0.12157313525676727,
-0.2407369613647461,
-0.0627790093421936,
-0.0520084872841835,
0.1585795283317566,
-0.0030753568280488253,
-0.0591699555516243,
0.04682428762316704,
0.29764777421951294,
-0.00318792462348938,
0.0774441808462143,
0.4809100031852722,
-0.04061902314424515,
-0.1691298633813858,
-0.0404677614569664,
0.3440819978713989,
0.0845600888133049,
-0.2110835164785385,
-0.09585709869861603,
0.008123515173792839,
0.40072327852249146,
-0.30733010172843933,
-0.10814870893955231,
0.15715597569942474,
-0.3483893871307373,
0.2309490144252777,
0.4312073588371277,
0.08350867033004761,
-0.011692158877849579,
0.10959544032812119,
-0.05015235021710396,
0.08158206194639206,
-0.26621049642562866,
-0.11645089089870453,
0.5820596814155579,
0.006645370274782181,
-0.10178884863853455,
0.07112301141023636,
-0.11626839637756348,
0.1665242612361908,
0.4918721914291382,
0.02099309116601944,
0.4034595787525177,
0.11355964839458466,
0.025419939309358597,
0.25469768047332764,
0.3929947018623352,
0.07712804526090622,
0.07588734477758408,
-0.17330950498580933,
0.2135412096977234,
0.29390549659729004,
0.06929217278957367,
-0.20937210321426392,
0.14424891769886017,
-0.029108546674251556,
0.3133702278137207,
-0.26882627606391907,
-0.12920135259628296,
-0.10112812370061874,
-0.09361239522695541,
0.014551527798175812,
-0.3355531394481659,
-0.03518762066960335,
-0.2210865169763565,
0.20591333508491516,
-0.16742858290672302,
0.04022803530097008,
-0.06856124103069305,
0.24080264568328857,
-0.14090865850448608,
0.34628230333328247,
-0.051620230078697205,
-0.2799862027168274,
0.21196937561035156,
0.20597559213638306,
-0.0634922981262207,
0.2458050549030304,
0.4413483738899231,
0.02017894573509693,
-0.224895641207695,
-0.00347897969186306,
-0.20184554159641266,
-0.4503285586833954,
-0.0309193953871727,
-0.026562217622995377,
0.0975785106420517,
0.1408413052558899,
0.18325677514076233,
0.30688178539276123,
-0.25468742847442627,
-0.0303889699280262,
0.1522465944290161,
-0.1255199909210205,
-0.035338208079338074,
0.39837557077407837,
-0.0006996579468250275,
-0.4177687168121338,
-0.0795593112707138,
0.02752126008272171,
-0.4694449305534363,
-0.32354873418807983,
0.24520640075206757,
0.019850488752126694,
0.21740427613258362,
0.054798685014247894,
0.2119053155183792,
-0.02901356667280197,
0.2661047577857971,
-0.058566074818372726,
0.1766672134399414,
0.05873214453458786,
0.1991710513830185,
-0.16910359263420105,
0.13272421061992645,
0.23160552978515625,
-0.16869179904460907,
-0.14829455316066742,
0.06189236789941788,
0.18046486377716064,
0.29575157165527344,
-0.31978440284729004,
0.03633895888924599,
-0.003257138654589653,
0.09500628709793091,
-0.15322177112102509,
0.0503704734146595,
-0.08222024142742157,
-0.08261947333812714,
0.0740317776799202,
-0.16442713141441345,
0.07991448044776917,
-0.14530888199806213,
0.3205457031726837,
-0.14640212059020996,
0.09492284059524536,
-0.09312443435192108,
0.40121763944625854,
-0.12921905517578125,
0.38588467240333557,
0.21962779760360718,
-0.18146160244941711,
-0.05601412057876587,
0.22214342653751373,
-0.08397674560546875,
-0.13399603962898254,
0.5022015571594238,
-0.06017797067761421,
0.07468800246715546,
-0.005045781843364239,
-0.124866783618927,
0.2421613335609436,
0.23622125387191772,
0.263247013092041,
-0.3227282166481018,
-0.2985236346721649,
0.2755732834339142,
-0.2742530405521393,
0.1119609922170639,
-0.1134268268942833,
0.2221006155014038,
0.17781317234039307,
0.05093272775411606,
-0.1403021216392517,
-0.42735016345977783,
0.18700268864631653,
-0.09685683995485306,
-0.45388901233673096,
-0.07896710187196732,
-0.06864306330680847,
-0.18964970111846924,
0.05281110852956772,
-0.3690469264984131,
-0.12069325149059296,
0.29172271490097046,
-0.2359175980091095,
-0.05865859612822533,
0.13374635577201843,
-0.03554491698741913,
0.11619050800800323,
-0.2565559148788452,
-0.1335972249507904,
0.05950435250997543,
0.059859149158000946,
-0.22480812668800354,
-0.34362268447875977
] |
https://github.com/huggingface/datasets/issues/378 | [dataset] Structure of MLQA seems unecessary nested | Same for the RACE dataset: https://github.com/huggingface/nlp/blob/master/datasets/race/race.py
Should we scan all the datasets to remove this pattern of un-necessary nesting? | The features of the MLQA dataset comprise several nested dictionaries with a single element inside (for `questions` and `ids`): https://github.com/huggingface/nlp/blob/master/datasets/mlqa/mlqa.py#L90-L97
Should we keep this @mariamabarham @patrickvonplaten? Was this added for compatibility with tfds?
```python
features=nlp.Features(
{
"context": nlp.Value("string"),
"questions": nlp.features.Sequence({"question": nlp.Value("string")}),
"answers": nlp.features.Sequence(
{"text": nlp.Value("string"), "answer_start": nlp.Value("int32"),}
),
"ids": nlp.features.Sequence({"idx": nlp.Value("string")})
``` | 19 | [dataset] Structure of MLQA seems unecessary nested
The features of the MLQA dataset comprise several nested dictionaries with a single element inside (for `questions` and `ids`): https://github.com/huggingface/nlp/blob/master/datasets/mlqa/mlqa.py#L90-L97
Should we keep this @mariamabarham @patrickvonplaten? Was this added for compatibility with tfds?
```python
features=nlp.Features(
{
"context": nlp.Value("string"),
"questions": nlp.features.Sequence({"question": nlp.Value("string")}),
"answers": nlp.features.Sequence(
{"text": nlp.Value("string"), "answer_start": nlp.Value("int32"),}
),
"ids": nlp.features.Sequence({"idx": nlp.Value("string")})
```
Same for the RACE dataset: https://github.com/huggingface/nlp/blob/master/datasets/race/race.py
Should we scan all the datasets to remove this pattern of un-necessary nesting? | [
-0.11614271998405457,
-0.05932173877954483,
-0.09396402537822723,
0.3199601173400879,
-0.049029164016246796,
0.24959596991539001,
0.08761139959096909,
0.2466987669467926,
-0.17529065907001495,
-0.1441373974084854,
0.01305510476231575,
0.19715991616249084,
0.058465149253606796,
0.665259063243866,
-0.037604112178087234,
-0.0648571103811264,
0.2087634801864624,
-0.03774489462375641,
-0.056361883878707886,
0.12638148665428162,
-0.22463881969451904,
0.14463315904140472,
-0.220672145485878,
0.02090340107679367,
-0.09839212149381638,
-0.1649566888809204,
-0.31486082077026367,
0.10347767919301987,
0.05232001841068268,
-0.2634042203426361,
0.15100771188735962,
0.2403658926486969,
-0.11957493424415588,
-0.04432735592126846,
-0.00011096565140178427,
-0.07092071324586868,
0.14563670754432678,
-0.021637696772813797,
-0.05487678572535515,
0.041348643600940704,
0.03208009898662567,
-0.10994290560483932,
0.06950110197067261,
-0.25084540247917175,
-0.09897627681493759,
-0.2140040546655655,
0.07115786522626877,
-0.3372648358345032,
0.25942757725715637,
-0.038284897804260254,
0.20546777546405792,
-0.04692206531763077,
-0.13063369691371918,
0.35191237926483154,
-0.12206237763166428,
0.10272939503192902,
0.0172570813447237,
-0.026211556047201157,
0.25945553183555603,
-0.12474667280912399,
-0.04309704154729843,
0.41535618901252747,
-0.11935868114233017,
-0.14930139482021332,
0.29056769609451294,
0.06845618039369583,
0.18489417433738708,
-0.5962705612182617,
-0.0432916060090065,
0.4557463526725769,
0.23678481578826904,
-0.26174473762512207,
-0.18492688238620758,
-0.48226046562194824,
-0.025991447269916534,
-0.22726668417453766,
0.16330310702323914,
0.16750821471214294,
0.006901266053318977,
0.23476020991802216,
0.12636810541152954,
-0.14011691510677338,
0.043341509997844696,
0.03218883275985718,
-0.22226224839687347,
0.4312477707862854,
0.11238966137170792,
0.05579960718750954,
-0.19167932868003845,
-0.1940624862909317,
0.3292730748653412,
-0.2776328921318054,
-0.11524194478988647,
-0.06485070288181305,
-0.26589033007621765,
-0.2681449055671692,
0.1458909958600998,
0.0540674664080143,
0.09042849391698837,
-0.009161341935396194,
-0.1017996072769165,
-0.12732857465744019,
0.04151349142193794,
-0.11567885428667068,
0.44332191348075867,
0.03491207957267761,
0.04276438057422638,
-0.35537275671958923,
-0.018608205020427704,
-0.11106391251087189,
0.012849446386098862,
0.04410518333315849,
0.13790902495384216,
0.18180008232593536,
-0.5502954125404358,
0.02303190715610981,
0.4006921648979187,
0.1182037889957428,
-0.3591921031475067,
-0.10370388627052307,
-0.6785646677017212,
-0.16902053356170654,
0.07193471491336823,
0.13725341856479645,
0.19108812510967255,
0.24388962984085083,
-0.07964590191841125,
0.09010669589042664,
-0.10953346639871597,
-0.14716918766498566,
-0.1280267983675003,
0.026189643889665604,
-0.004581529647111893,
-0.11001437157392502,
-0.10384657979011536,
0.22535917162895203,
0.05831366032361984,
0.015287295915186405,
0.0062830038368701935,
0.2510579824447632,
0.1159464418888092,
-0.16656586527824402,
0.2065863162279129,
0.22258056700229645,
-0.02971380576491356,
0.013378692790865898,
-0.015464894473552704,
-0.051295842975378036,
-0.20581203699111938,
0.20501425862312317,
-0.07763039320707321,
-0.21862554550170898,
0.013488003984093666,
0.20431500673294067,
-0.16967280209064484,
-0.10157671570777893,
0.18169403076171875,
0.7562401294708252,
0.37346765398979187,
-0.09277938306331635,
0.09112640470266342,
0.00904705561697483,
-0.4748324155807495,
-0.2003764659166336,
-0.03135155141353607,
0.39428746700286865,
-0.3361493647098541,
0.04844721406698227,
-0.30532699823379517,
0.033398743718862534,
-0.012792959809303284,
0.3472161889076233,
-0.0665525272488594,
0.33939477801322937,
-0.2069302350282669,
0.28759342432022095,
-0.008971281349658966,
-0.37375420331954956,
-0.24232667684555054,
0.24170145392417908,
0.020205579698085785,
0.25510016083717346,
0.2007429003715515,
0.09268742054700851,
-0.13739953935146332,
-0.18378601968288422,
0.18897698819637299,
0.3555290102958679,
-0.10460317134857178,
-0.09232520312070847,
-0.09939329326152802,
-0.1669282764196396,
0.6348801851272583,
-0.03646334260702133,
-0.41407841444015503,
-0.23918405175209045,
-0.3432902991771698,
-0.05789435654878616,
0.3980121314525604,
-0.009485330432653427,
-0.1960020363330841,
-0.15095055103302002,
0.15138520300388336,
-0.1476745754480362,
-0.08296413719654083,
-0.15018752217292786,
-0.5748470425605774,
0.04417306184768677,
-0.2565103769302368,
0.11664553731679916,
-0.12939350306987762,
-0.41343599557876587,
0.3103046715259552,
-0.01822309009730816,
-0.3776380717754364,
-0.14879409968852997,
0.2231583595275879,
-0.29802775382995605,
-0.1173885315656662,
0.05682649090886116,
-0.2501923739910126,
0.023359304293990135,
0.01786019839346409,
0.061411891132593155,
-0.3382737338542938,
0.2788209021091461,
-0.16053739190101624,
0.30840158462524414,
0.36501872539520264,
0.6932069659233093,
-0.053536318242549896,
-0.1911390870809555,
0.20401400327682495,
0.11180710792541504,
-0.007511755917221308,
-0.14248105883598328,
0.045408912003040314,
0.2737957537174225,
0.39540815353393555,
-0.23208941519260406,
0.004434013739228249,
0.3511693775653839,
0.015922244638204575,
-0.20956966280937195,
-0.2848929166793823,
0.41279804706573486,
0.05572085827589035,
0.3499278426170349,
0.01852932572364807,
0.20359942317008972,
-0.010598929598927498,
-0.11320485919713974,
-0.07056812196969986,
-0.39274561405181885,
0.10885319858789444,
0.10866421461105347,
0.030856903642416,
0.4261080324649811,
-0.25893229246139526,
0.8457375764846802,
0.46562400460243225,
-0.05760374292731285,
0.03639315813779831,
0.005450818687677383,
0.13751105964183807,
-0.4387931823730469,
0.20270420610904694,
0.1513316035270691,
0.28264856338500977,
0.1742970198392868,
0.04170950502157211,
0.24607622623443604,
0.2267720103263855,
-0.22956562042236328,
0.3983789384365082,
0.09900086373090744,
-0.06849373877048492,
0.12552495300769806,
0.30963370203971863,
0.14292223751544952,
-0.4244996905326843,
-0.23494215309619904,
-0.018527166917920113,
0.0328289270401001,
-0.20179958641529083,
0.26638057827949524,
-0.34013181924819946,
-0.8277869820594788,
0.09512544423341751,
-0.15956325829029083,
-0.345222145318985,
-0.4143366813659668,
0.1041765809059143,
-0.19091275334358215,
-0.14006564021110535,
0.2615068256855011,
0.371832013130188,
0.311487078666687,
0.05282466113567352,
0.1535450518131256,
-0.07490156590938568,
-0.0934201031923294,
-0.15121066570281982,
0.1434289515018463,
0.1969042718410492,
0.18030135333538055,
0.2717171311378479,
0.2582632303237915,
-0.010902061127126217,
-0.17250105738639832,
-0.6402466893196106,
0.20584721863269806,
-0.4038879871368408,
0.3266708254814148,
0.17482882738113403,
-0.020761437714099884,
-0.20761512219905853,
-0.2606472074985504,
-0.03910437971353531,
0.6991740465164185,
-0.25779491662979126,
-0.0002877041697502136,
-0.031122099608182907,
-0.17652997374534607,
-0.1504606008529663,
-0.39824166893959045,
-0.4945945739746094,
-0.2323879599571228,
0.2652856707572937,
-0.20085614919662476,
0.4566143751144409,
0.20725809037685394,
-0.383120059967041,
-0.2453196793794632,
0.02884683758020401,
-0.13441719114780426,
-0.19621075689792633,
0.13021798431873322,
0.13515706360340118,
-0.06035584583878517,
-0.16122986376285553,
-0.36608320474624634,
-0.29034823179244995,
0.3013527989387512,
-0.2624475359916687,
-0.43801820278167725,
-0.22538459300994873,
-0.11680850386619568,
0.15110987424850464,
0.22650447487831116,
-0.08805578947067261,
0.20824557542800903,
0.3800464868545532,
0.014818677678704262,
0.22962602972984314,
-0.06201092526316643,
0.10583161562681198,
0.14951631426811218,
0.3227379322052002,
0.012586998753249645,
0.4372130334377289,
0.10649250447750092,
0.27028632164001465,
0.6254133582115173,
0.19694915413856506,
0.0795067548751831,
0.12108709663152695,
0.25603267550468445,
-0.24260395765304565,
-0.20511387288570404,
0.41856518387794495,
0.14041471481323242,
-0.0588456392288208,
0.3224637806415558,
-0.15005099773406982,
-0.07273232191801071,
0.1247330904006958,
0.15062494575977325,
0.19476446509361267,
-0.2797319293022156,
0.012281152419745922,
-0.594955325126648,
0.28449535369873047,
0.021603837609291077,
-0.007741279900074005,
0.1875225156545639,
-0.21303409337997437,
-0.06911548972129822,
0.12932629883289337,
0.15605007112026215,
-0.0014966363087296486,
-0.796576976776123,
-0.6033443212509155,
-0.5061001181602478,
0.057749178260564804,
-0.037853602319955826,
0.14186277985572815,
-0.08463301509618759,
0.06584830582141876,
0.07114984840154648,
-0.06763137876987457,
0.5189669132232666,
-0.27951306104660034,
-0.2345726042985916,
0.2563895881175995,
0.04275033622980118,
-0.1570795327425003,
0.015037626028060913,
-0.012921564280986786,
0.40847301483154297,
0.29669085144996643,
-0.02766939252614975,
-0.3415409326553345,
-0.24200907349586487,
0.19116370379924774,
0.1286139190196991,
-0.4076530933380127,
-0.3557882308959961,
-0.16884683072566986,
-0.2850784957408905,
-0.03155058994889259,
-0.15034034848213196,
0.2285676747560501,
0.13091666996479034,
0.08498623222112656,
-0.20124861598014832,
-0.08133219182491302,
-0.3202262222766876,
0.4161018133163452,
0.22947412729263306,
0.15941062569618225,
0.09486996382474899,
0.23963668942451477,
-0.11313767731189728,
0.276588499546051,
-0.08313477039337158,
0.4926629364490509,
0.11508238315582275,
-0.0733320415019989,
-0.23578211665153503,
-0.16268539428710938,
0.49986547231674194,
0.22080761194229126,
-0.1301797330379486,
0.2457047402858734,
-0.14591747522354126,
-0.11419551074504852,
-0.4050406813621521,
-0.11082086712121964,
0.12244655936956406,
0.04077131673693657,
-0.06927511096000671,
-0.338265061378479,
0.34297531843185425,
0.026600640267133713,
-0.2418076992034912,
-0.15076759457588196,
0.02750931680202484,
-0.30637335777282715,
0.49662578105926514,
0.04959390312433243,
0.7502143979072571,
0.08026959747076035,
0.22579829394817352,
0.4995678961277008,
0.15298239886760712,
0.44799360632896423,
-0.01967393420636654,
0.10599491000175476,
-0.22976431250572205,
-0.02018580213189125,
-0.08018328994512558,
-0.07720797508955002,
-0.03264039009809494,
0.22695466876029968,
-0.28211790323257446,
0.3359488546848297,
-0.003366343677043915,
-0.3440561890602112,
-0.00558396615087986,
0.28394031524658203,
0.293886661529541,
-0.1255468875169754,
-0.29250332713127136,
0.055417247116565704,
-0.021753378212451935,
0.04260624572634697,
-0.123104527592659,
-0.10986896604299545,
0.21333277225494385,
0.019410304725170135,
-0.1174662783741951,
-0.11519460380077362,
-0.3224741220474243,
0.2670016884803772,
0.11726583540439606,
-0.16850420832633972,
0.4472990036010742,
0.2850089967250824,
0.12395772337913513,
0.007796548306941986,
-0.07119567692279816,
0.0781344473361969,
0.20802447199821472,
-0.0823078602552414,
0.16689418256282806,
-0.04284103959798813,
0.15705189108848572,
-0.0013512372970581055,
-0.0025437921285629272,
-0.005038909614086151,
0.21224790811538696,
0.15226203203201294,
-0.4720565378665924,
-0.09663666784763336,
-0.05234314501285553,
-0.14721103012561798,
-0.25698322057724,
0.26280730962753296,
-0.08195904642343521,
0.03269123658537865,
0.0766984224319458,
0.023961715400218964,
-0.005240069702267647,
0.1885453462600708,
-0.11538995802402496,
-0.017372585833072662,
-0.025045517832040787,
0.12014271318912506,
0.40227940678596497,
0.2349768579006195,
0.30802121758461,
0.30026936531066895,
-0.06817136704921722,
-0.18035250902175903,
0.17134177684783936,
-0.12207774072885513,
0.2909733057022095,
0.17560774087905884,
0.1464819610118866,
-0.23759514093399048,
-0.3044598400592804,
0.11805102974176407,
0.013480138033628464,
0.06697159260511398,
-0.02600102312862873,
-0.18379105627536774,
-0.23541487753391266,
0.4425733685493469,
-0.1116052120923996,
-0.06374959647655487,
-0.12070056051015854,
0.34304186701774597,
-0.011143692769110203,
0.23452262580394745,
-0.32260698080062866,
-0.09017384797334671,
-0.03424964100122452,
-0.000659232959151268,
-0.07214879244565964,
-0.39503636956214905,
0.04854484274983406,
0.05626635625958443,
0.11704662442207336,
-0.3386164903640747,
-0.10398019850254059,
-0.2011164128780365,
0.01636778563261032,
0.09185118228197098,
0.1450987458229065,
-0.010054172948002815,
0.08328495919704437,
-0.004601841792464256,
-0.12190103530883789,
-0.12631042301654816,
0.03349576145410538,
-0.21332556009292603,
0.23030997812747955,
0.22418156266212463,
-0.24330542981624603,
-0.3525446355342865,
-0.14412717521190643,
0.04647018760442734,
0.12122443318367004,
-0.1529882252216339,
0.1883775144815445,
0.1076347678899765,
-0.18705883622169495,
-0.060220737010240555,
0.06111547350883484,
0.0929594561457634,
-0.2350376397371292,
0.02205972746014595,
0.2609614133834839,
0.21356506645679474,
-0.20929285883903503,
0.19506755471229553,
0.09530159831047058,
0.5737602710723877,
-0.3621695041656494,
-0.12379588186740875,
-0.19613108038902283,
0.1801469773054123,
-0.397552490234375,
0.1067778617143631,
-0.035770297050476074,
0.26923123002052307,
0.15088294446468353,
0.32437682151794434,
0.3548026978969574,
0.11902287602424622,
-0.224710151553154,
-0.004598138853907585,
0.28425437211990356,
0.0008050743490457535,
0.06461328268051147,
0.06524724513292313,
-0.04188394546508789,
0.09523625671863556,
0.479592889547348,
0.056891340762376785,
0.27372702956199646,
0.5982527136802673,
0.18818747997283936,
0.1339513063430786,
0.528938889503479,
0.015870243310928345,
0.46540188789367676,
0.07246379554271698,
-0.0744096040725708,
0.16543664038181305,
0.16655246913433075,
-0.15099143981933594,
0.25892817974090576,
-0.08404166251420975,
-0.047068040817976,
-0.5038701295852661,
0.061819903552532196,
0.1850288063287735,
-0.19308990240097046,
-0.32449668645858765,
0.13544082641601562,
0.09585986286401749,
-0.019026875495910645,
-0.13497386872768402,
-0.2654222249984741,
-0.3414902687072754,
0.13722334802150726,
-0.11110560595989227,
-0.018673770129680634,
-0.23643673956394196,
0.3297947645187378,
0.18047791719436646,
0.2503114640712738,
0.07628133893013,
0.3437652587890625,
0.3048174977302551,
-0.10786221921443939,
-0.04601534083485603,
0.4059790074825287,
0.2508133351802826,
0.133440300822258,
-0.7279345989227295,
0.0768471285700798,
-0.31432461738586426,
-0.15372397005558014,
-0.17127104103565216,
0.019803563132882118,
-0.11105522513389587,
0.20670562982559204,
0.40551578998565674,
0.035541944205760956,
0.0332215279340744,
0.05546310916543007,
0.4479643702507019,
0.03319447487592697,
-0.2274218201637268,
0.30629730224609375,
-0.1743723601102829,
0.055748745799064636,
0.15760910511016846,
0.11946983635425568,
-0.4857301115989685,
-0.2708643972873688,
0.6146504282951355,
-0.023025766015052795,
0.14867499470710754,
-0.14522890746593475,
0.09348660707473755,
0.0028622355312108994,
0.6333821415901184,
0.17802198231220245,
0.035748958587646484,
-0.1303560435771942,
0.003992892801761627,
-0.5874863266944885,
-0.2055068016052246,
-0.039707135409116745,
-0.07464724034070969,
0.13763737678527832,
0.2864619195461273,
-0.0014387741684913635,
0.2262893170118332,
-0.4077388644218445,
0.1404840648174286,
-0.3960295021533966,
-0.29359614849090576,
-0.617645800113678,
0.03923541307449341,
-0.2511718273162842,
0.22112086415290833,
-0.1902276575565338,
0.015904463827610016,
0.2776589095592499,
0.13770386576652527,
-0.09554097056388855,
-0.031865108758211136,
-0.055069293826818466,
-0.08573488891124725,
0.13628007471561432,
-0.03362656384706497,
0.4873383641242981,
-0.031674548983573914,
0.0028376877307891846,
0.012324055656790733,
-0.10426265001296997,
0.003174856537953019,
-0.17775467038154602,
0.5362420678138733,
0.10622790455818176,
0.1782296746969223,
-0.18648605048656464,
0.12190127372741699,
0.14419205486774445,
0.11801638454198837,
0.1954142451286316,
-0.26493147015571594,
-0.41062772274017334,
0.3911322057247162,
0.11501438170671463,
0.41589435935020447,
-0.0828971117734909,
0.5141798257827759,
-0.1452324539422989,
0.10624013096094131,
-0.10973364114761353,
-0.3697822690010071,
0.42288729548454285,
-0.1451585292816162,
0.04343772307038307,
0.12982535362243652,
0.06356674432754517,
0.19554570317268372,
0.09209590405225754,
-0.4175349473953247,
-0.3561796545982361,
0.37265080213546753,
-0.42967820167541504,
-0.31533730030059814,
0.2559310495853424,
0.025458423420786858,
-0.4772297143936157,
-0.22108271718025208,
-0.04400409758090973,
-0.02136840671300888,
-0.4149130582809448,
0.07358899712562561,
-0.08630833029747009
] |
https://github.com/huggingface/datasets/issues/376 | to_pandas conversion doesn't always work | Could you try to update pyarrow to >=0.17.0 ? It should fix the `to_pandas` bug
Also I'm not sure that structures like list<struct> are fully supported in the lib (none of the datasets use that).
It can cause issues when using dataset transforms like `filter` for example | For some complex nested types, the conversion from Arrow to python dict through pandas doesn't seem to be possible.
Here is an example using the official SQUAD v2 JSON file.
This example was found while investigating #373.
```python
>>> squad = load_dataset('json', data_files={nlp.Split.TRAIN: ["./train-v2.0.json"]}, download_mode=nlp.GenerateMode.FORCE_REDOWNLOAD, version="1.0.0", field='data')
>>> squad['train']
Dataset(schema: {'title': 'string', 'paragraphs': 'list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>'}, num_rows: 442)
>>> squad['train'][0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/thomwolf/Documents/GitHub/datasets/src/nlp/arrow_dataset.py", line 589, in __getitem__
format_kwargs=self._format_kwargs,
File "/Users/thomwolf/Documents/GitHub/datasets/src/nlp/arrow_dataset.py", line 529, in _getitem
outputs = self._unnest(self._data.slice(key, 1).to_pandas().to_dict("list"))
File "pyarrow/array.pxi", line 559, in pyarrow.lib._PandasConvertible.to_pandas
File "pyarrow/table.pxi", line 1367, in pyarrow.lib.Table._to_pandas
File "/Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 766, in table_to_blockmanager
blocks = _table_to_blocks(options, table, categories, ext_columns_dtypes)
File "/Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 1101, in _table_to_blocks
list(extension_columns.keys()))
File "pyarrow/table.pxi", line 881, in pyarrow.lib.table_to_blocks
File "pyarrow/error.pxi", line 105, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Not implemented type for Arrow list to pandas: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>
```
cc @lhoestq would we have a way to detect this from the schema maybe?
Here is the schema for this pretty complex JSON:
```python
>>> squad['train'].schema
title: string
paragraphs: list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>
child 0, item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>
child 0, qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>
child 0, item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>
child 0, question: string
child 1, id: string
child 2, answers: list<item: struct<text: string, answer_start: int64>>
child 0, item: struct<text: string, answer_start: int64>
child 0, text: string
child 1, answer_start: int64
child 3, is_impossible: bool
child 4, plausible_answers: list<item: struct<text: string, answer_start: int64>>
child 0, item: struct<text: string, answer_start: int64>
child 0, text: string
child 1, answer_start: int64
child 1, context: string
``` | 47 | to_pandas conversion doesn't always work
For some complex nested types, the conversion from Arrow to python dict through pandas doesn't seem to be possible.
Here is an example using the official SQUAD v2 JSON file.
This example was found while investigating #373.
```python
>>> squad = load_dataset('json', data_files={nlp.Split.TRAIN: ["./train-v2.0.json"]}, download_mode=nlp.GenerateMode.FORCE_REDOWNLOAD, version="1.0.0", field='data')
>>> squad['train']
Dataset(schema: {'title': 'string', 'paragraphs': 'list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>'}, num_rows: 442)
>>> squad['train'][0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/thomwolf/Documents/GitHub/datasets/src/nlp/arrow_dataset.py", line 589, in __getitem__
format_kwargs=self._format_kwargs,
File "/Users/thomwolf/Documents/GitHub/datasets/src/nlp/arrow_dataset.py", line 529, in _getitem
outputs = self._unnest(self._data.slice(key, 1).to_pandas().to_dict("list"))
File "pyarrow/array.pxi", line 559, in pyarrow.lib._PandasConvertible.to_pandas
File "pyarrow/table.pxi", line 1367, in pyarrow.lib.Table._to_pandas
File "/Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 766, in table_to_blockmanager
blocks = _table_to_blocks(options, table, categories, ext_columns_dtypes)
File "/Users/thomwolf/miniconda2/envs/datasets/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 1101, in _table_to_blocks
list(extension_columns.keys()))
File "pyarrow/table.pxi", line 881, in pyarrow.lib.table_to_blocks
File "pyarrow/error.pxi", line 105, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Not implemented type for Arrow list to pandas: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>
```
cc @lhoestq would we have a way to detect this from the schema maybe?
Here is the schema for this pretty complex JSON:
```python
>>> squad['train'].schema
title: string
paragraphs: list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>
child 0, item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>
child 0, qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>
child 0, item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>
child 0, question: string
child 1, id: string
child 2, answers: list<item: struct<text: string, answer_start: int64>>
child 0, item: struct<text: string, answer_start: int64>
child 0, text: string
child 1, answer_start: int64
child 3, is_impossible: bool
child 4, plausible_answers: list<item: struct<text: string, answer_start: int64>>
child 0, item: struct<text: string, answer_start: int64>
child 0, text: string
child 1, answer_start: int64
child 1, context: string
```
Could you try to update pyarrow to >=0.17.0 ? It should fix the `to_pandas` bug
Also I'm not sure that structures like list<struct> are fully supported in the lib (none of the datasets use that).
It can cause issues when using dataset transforms like `filter` for example | [
0.034680936485528946,
0.1334805190563202,
-0.1031353622674942,
0.05421505868434906,
0.29663318395614624,
-0.09235335886478424,
0.37532490491867065,
0.46983474493026733,
-0.13277782499790192,
-0.21645303070545197,
-0.21985167264938354,
0.8954618573188782,
0.17293742299079895,
0.07015417516231537,
-0.0751243531703949,
-0.006098814308643341,
0.14508086442947388,
0.15654459595680237,
0.008870579302310944,
-0.07089795917272568,
-0.05991106107831001,
0.2531316578388214,
-0.30041319131851196,
0.1826229840517044,
-0.0905485451221466,
-0.24548903107643127,
-0.06939996778964996,
0.20317360758781433,
-0.03727494925260544,
-0.41646626591682434,
0.3161974549293518,
-0.241653710603714,
-0.006051712669432163,
0.3274364471435547,
-0.00010487268446013331,
0.16407056152820587,
0.27051419019699097,
-0.000003555789589881897,
-0.31738007068634033,
0.022458530962467194,
0.21172699332237244,
-0.2963273227214813,
0.38135814666748047,
-0.3474823534488678,
0.08694562315940857,
-0.35662075877189636,
0.017147071659564972,
-0.08357588946819305,
0.7314298748970032,
0.4084213674068451,
0.27851802110671997,
0.2500540316104889,
0.22122366726398468,
0.10547331720590591,
0.02833147719502449,
0.01751646026968956,
-0.1275164633989334,
0.09066756069660187,
0.07503096759319305,
-0.1102546900510788,
-0.09462163597345352,
-0.0678512305021286,
0.018963871523737907,
-0.1256456971168518,
-0.02724672108888626,
0.04046241566538811,
-0.09317318350076675,
-0.2096053808927536,
-0.07696365565061569,
0.2726133465766907,
0.09395918250083923,
-0.38738295435905457,
-0.34785082936286926,
-0.32791560888290405,
0.06293859332799911,
-0.0009635761380195618,
-0.04028668999671936,
0.09387391805648804,
-0.12865674495697021,
0.11512263119220734,
0.37401819229125977,
0.2121661752462387,
-0.1918036937713623,
0.04426167905330658,
-0.10552258789539337,
0.22870734333992004,
-0.13560183346271515,
0.054174721240997314,
-0.057879578322172165,
-0.3256853222846985,
0.0986955314874649,
-0.027754168957471848,
0.1278434842824936,
0.12531548738479614,
-0.34643304347991943,
-0.23288752138614655,
-0.022337473928928375,
-0.5411038398742676,
0.028372041881084442,
-0.06019115447998047,
0.42582571506500244,
0.09071984142065048,
0.17179077863693237,
0.23119574785232544,
0.3668311834335327,
-0.01495302189141512,
0.03462423384189606,
0.16060255467891693,
0.11225606501102448,
0.08119098097085953,
-0.18642032146453857,
0.13482646644115448,
-0.16628924012184143,
-0.24216967821121216,
-0.08594463765621185,
-0.11530131846666336,
0.3311743140220642,
0.02543817088007927,
-0.4399407207965851,
-0.05375293642282486,
-0.5590528845787048,
0.2023041695356369,
0.07109382748603821,
0.1338672935962677,
-0.07466240972280502,
0.3300732970237732,
0.032563261687755585,
0.32960599660873413,
-0.11417681723833084,
0.25829416513442993,
-0.18877089023590088,
0.17038728296756744,
-0.08742719143629074,
-0.23653273284435272,
0.09821103513240814,
0.3039856553077698,
0.046602413058280945,
0.05049767345190048,
0.09189556539058685,
-0.08390352129936218,
-0.10969516634941101,
-0.0015050088986754417,
0.13926418125629425,
0.0685771033167839,
0.03579630330204964,
-0.08652166277170181,
0.1393047422170639,
-0.5467730760574341,
-0.11631382256746292,
0.008497383445501328,
-0.19115668535232544,
0.004636865109205246,
-0.17469938099384308,
0.23534293472766876,
-0.20895133912563324,
-0.20942902565002441,
-0.24873113632202148,
0.30757883191108704,
0.25598397850990295,
-0.13447712361812592,
0.055489521473646164,
-0.21348316967487335,
0.10804295539855957,
-0.31031709909439087,
0.04281061887741089,
0.08124655485153198,
-0.5389330387115479,
-0.02032388746738434,
0.030799783766269684,
0.01845036819577217,
0.0858013778924942,
0.3102586269378662,
-0.1158483624458313,
0.13311436772346497,
-0.00830900389701128,
0.3600112199783325,
0.47050318121910095,
-0.5010074377059937,
-0.22720907628536224,
0.12339599430561066,
-0.1028217226266861,
0.046957165002822876,
-0.009413294494152069,
-0.061998363584280014,
0.11394308507442474,
-0.0847896933555603,
0.0009972229599952698,
0.4146357774734497,
0.08445506542921066,
-0.029538346454501152,
-0.3178600072860718,
-0.04258834570646286,
0.16574743390083313,
-0.04793650656938553,
-0.2070491760969162,
-0.042034126818180084,
0.10970668494701385,
0.15327449142932892,
0.25028833746910095,
-0.01732659712433815,
0.15959703922271729,
0.053288962692022324,
0.10937611758708954,
-0.17784474790096283,
0.12437832355499268,
-0.16074150800704956,
-0.47000133991241455,
0.04860313981771469,
-0.4537341892719269,
0.06089365854859352,
-0.41443467140197754,
-0.22325487434864044,
-0.21283575892448425,
0.14734745025634766,
-0.18784351646900177,
0.02555796504020691,
0.3575511872768402,
-0.16794966161251068,
-0.051280826330184937,
-0.09644618630409241,
-0.1266183704137802,
-0.18820318579673767,
-0.20634014904499054,
0.1719733029603958,
-0.17085060477256775,
0.2271750122308731,
-0.11296794563531876,
-0.19935043156147003,
0.26245200634002686,
0.41422805190086365,
0.1086491197347641,
0.06142553314566612,
0.07964696735143661,
0.22132262587547302,
-0.0544624850153923,
-0.03178800642490387,
0.32016780972480774,
-0.2909972071647644,
-0.03131766617298126,
-0.2659505009651184,
0.014142611995339394,
0.31976330280303955,
0.15064115822315216,
-0.18041372299194336,
-0.35063600540161133,
0.5115054845809937,
-0.005946476012468338,
0.3427325487136841,
-0.04898761585354805,
0.2725568413734436,
0.20933616161346436,
0.03738832101225853,
-0.2711518704891205,
-0.071770079433918,
-0.48354223370552063,
0.3345218896865845,
-0.020440971478819847,
-0.04470236599445343,
-0.24434582889080048,
0.3678489327430725,
0.5505489706993103,
-0.06893301755189896,
0.1616615355014801,
0.07750919461250305,
0.016199473291635513,
-0.26196759939193726,
0.06488735973834991,
0.06906065344810486,
0.26397424936294556,
0.21404340863227844,
0.2403581142425537,
-0.1615486741065979,
-0.28507912158966064,
-0.0713731199502945,
0.20828884840011597,
0.0974629670381546,
0.5278190970420837,
0.07922738045454025,
0.5001675486564636,
-0.03417043760418892,
-0.35750070214271545,
-0.19927963614463806,
-0.05163295567035675,
0.06868623942136765,
-0.2854183316230774,
0.2564888596534729,
-0.30577418208122253,
0.047743670642375946,
-0.02505730465054512,
-0.1595960408449173,
-0.018487941473722458,
-0.35921210050582886,
-0.03161252290010452,
-0.1378110647201538,
-0.1378914713859558,
0.24065420031547546,
0.026622500270605087,
0.08449316024780273,
0.23270832002162933,
-0.2775389850139618,
-0.15279757976531982,
-0.23520855605602264,
-0.26169297099113464,
0.21776182949543,
0.33793824911117554,
0.04113565757870674,
-0.04852866381406784,
0.27942702174186707,
-0.06043403595685959,
-0.06153417378664017,
-0.37258729338645935,
-0.008261311799287796,
-0.3359125852584839,
0.07153365015983582,
0.20276546478271484,
0.16235728561878204,
-0.26202040910720825,
-0.1655706912279129,
0.23156553506851196,
-0.016404639929533005,
-0.20914916694164276,
0.09470521658658981,
-0.127533420920372,
-0.034624479711055756,
-0.14284108579158783,
-0.24694478511810303,
-0.22609880566596985,
-0.3014286458492279,
0.5213180780410767,
0.18876715004444122,
0.2219529151916504,
0.12497036904096603,
0.33261123299598694,
0.39146050810813904,
0.10528475791215897,
0.0423734113574028,
-0.06947731226682663,
0.09768572449684143,
0.29770803451538086,
-0.1696942001581192,
-0.37977030873298645,
-0.069881871342659,
-0.18762212991714478,
0.2407640665769577,
-0.33109164237976074,
-0.1938590258359909,
-0.15038566291332245,
-0.08566483110189438,
0.20666803419589996,
-0.02671540528535843,
-0.041933536529541016,
0.24675877392292023,
0.20925810933113098,
-0.20280998945236206,
-0.20007187128067017,
-0.03428427502512932,
0.1739802360534668,
0.17105722427368164,
0.037709496915340424,
-0.17123794555664062,
0.3040529787540436,
0.25859126448631287,
0.4388797879219055,
0.20998279750347137,
-0.146091490983963,
0.04097910225391388,
-0.07475796341896057,
0.17800728976726532,
-0.044651858508586884,
-0.12402009218931198,
0.05835371091961861,
-0.28277045488357544,
0.2170436531305313,
0.020870231091976166,
-0.0480455681681633,
-0.4201202690601349,
0.06627839803695679,
0.20973922312259674,
-0.2522660493850708,
-0.23288296163082123,
0.11302872002124786,
-0.2635747492313385,
-0.25862249732017517,
0.06002264842391014,
0.007231414318084717,
-0.20386607944965363,
0.005268239416182041,
-0.11344608664512634,
-0.12820838391780853,
-0.07911544293165207,
0.05453963205218315,
-0.42793214321136475,
-0.26823684573173523,
-0.2955731153488159,
0.19402267038822174,
-0.027475524693727493,
0.3233993351459503,
0.23893024027347565,
-0.3229110836982727,
0.10851114243268967,
-0.2627052366733551,
0.37165069580078125,
0.0132571030408144,
-0.060072168707847595,
0.3629274368286133,
0.33015087246894836,
-0.7625821828842163,
-0.04599670693278313,
-0.32562628388404846,
0.41423335671424866,
0.25857189297676086,
0.1136595755815506,
-0.37389376759529114,
-0.29702475666999817,
0.13373017311096191,
-0.061159320175647736,
0.030841249972581863,
0.12805244326591492,
-0.2378220409154892,
-0.33796215057373047,
-0.20019160211086273,
0.22598031163215637,
0.35106292366981506,
0.2922072112560272,
-0.2115911841392517,
-0.42181819677352905,
-0.19450561702251434,
-0.1939961016178131,
0.17172805964946747,
0.21853141486644745,
0.13525724411010742,
0.02848004922270775,
-0.05273512005805969,
-0.14774596691131592,
0.2658390402793884,
0.0832412838935852,
0.4682656228542328,
-0.07063953578472137,
-0.10463595390319824,
0.10219984501600266,
0.039375972002744675,
0.3186957538127899,
0.29607218503952026,
-0.18906882405281067,
0.07802175730466843,
-0.14810004830360413,
0.011173665523529053,
0.20169298350811005,
-0.23846444487571716,
0.38594362139701843,
-0.016880620270967484,
0.002590128220617771,
-0.15162912011146545,
0.4655607342720032,
-0.020356865599751472,
-0.032757945358753204,
0.03834252431988716,
0.11359566450119019,
-0.11310933530330658,
0.4639156460762024,
0.2065853625535965,
0.8790789246559143,
0.02624237909913063,
0.31716665625572205,
0.5428178906440735,
-0.17100071907043457,
0.5304224491119385,
-0.053995873779058456,
0.1478680521249771,
-0.2938597798347473,
0.5065793395042419,
0.06451746076345444,
-0.14257700741291046,
-0.08630893379449844,
0.268182635307312,
-0.2327599972486496,
0.02583683654665947,
-0.19606226682662964,
0.2170090228319168,
0.210706427693367,
0.2751069962978363,
-0.03059861995279789,
-0.27559709548950195,
-0.654811441898346,
0.2362290620803833,
0.1165921613574028,
-0.2514941990375519,
0.1502363383769989,
-0.4565243124961853,
-0.4458027482032776,
-0.10747122019529343,
-0.01484619826078415,
0.26220738887786865,
-0.1795077919960022,
0.31228214502334595,
0.31677040457725525,
-0.34362882375717163,
0.1971016377210617,
0.5936041474342346,
-0.1254538893699646,
-0.22810964286327362,
-0.05505377799272537,
0.08613018691539764,
0.034678854048252106,
-0.01093003898859024,
0.10198554396629333,
-0.08541813492774963,
0.34365978837013245,
-0.06180005148053169,
-0.1343180537223816,
0.08106299489736557,
-0.034894946962594986,
-0.1304962933063507,
0.0797436535358429,
0.4892714023590088,
-0.16184596717357635,
-0.34840676188468933,
-0.09837010502815247,
-0.038471415638923645,
-0.39547309279441833,
-0.2417125552892685,
0.21162599325180054,
-0.00922548770904541,
-0.11256386339664459,
0.42551469802856445,
0.21379315853118896,
-0.083978570997715,
0.14848516881465912,
0.2626102864742279,
0.09307363629341125,
0.3781288266181946,
0.5176312923431396,
0.08843059837818146,
-0.17638806998729706,
-0.2753966748714447,
0.17697679996490479,
0.1379486322402954,
-0.1889900118112564,
0.28077730536460876,
-0.18825948238372803,
-0.3576721251010895,
0.04599054902791977,
0.020759999752044678,
-0.058937057852745056,
0.19556459784507751,
-0.2597546875476837,
-0.40569746494293213,
-0.2798853814601898,
0.22884628176689148,
-0.040881384164094925,
-0.006954014301300049,
-0.04863963648676872,
0.333901047706604,
-0.014501640573143959,
-0.09634868055582047,
-0.38435715436935425,
0.2725992202758789,
-0.37165629863739014,
0.07407467067241669,
-0.38146159052848816,
-0.34599050879478455,
0.26681751012802124,
0.030805185437202454,
0.21607644855976105,
0.10986071079969406,
0.003685956820845604,
-0.31709107756614685,
-0.04610488563776016,
0.07813096791505814,
0.1460111141204834,
0.10289295762777328,
-0.015235450118780136,
0.04525893181562424,
-0.3004336953163147,
-0.15093562006950378,
-0.12128888070583344,
-0.055539436638355255,
-0.009637713432312012,
0.1606694906949997,
0.009901303797960281,
0.07402347028255463,
0.20944851636886597,
-0.15547440946102142,
-0.06924119591712952,
0.05239121988415718,
-0.07388291507959366,
0.25322991609573364,
-0.04902291297912598,
0.003950618207454681,
0.11222144961357117,
0.22623229026794434,
-0.005848981440067291,
0.18651989102363586,
0.2958056926727295,
-0.16246527433395386,
-0.44132059812545776,
-0.21850049495697021,
0.3224135637283325,
0.5740980505943298,
-0.17636419832706451,
0.057071082293987274,
-0.2007494568824768,
0.21566592156887054,
-0.4009670913219452,
0.09817968308925629,
0.2420496791601181,
-0.1563887596130371,
0.16294129192829132,
0.18097321689128876,
0.027445364743471146,
-0.11565171182155609,
-0.012556776404380798,
0.06593625247478485,
0.2097223699092865,
-0.07659636437892914,
-0.05963524058461189,
0.2138529121875763,
-0.016144096851348877,
0.019322291016578674,
0.40707191824913025,
-0.08576671779155731,
0.2633344233036041,
0.33296865224838257,
0.031227122992277145,
0.04262827709317207,
0.20170938968658447,
0.03907868266105652,
0.37105119228363037,
0.16235977411270142,
-0.054495301097631454,
0.1737104207277298,
0.28762853145599365,
-0.022084727883338928,
0.10960864275693893,
0.7406488060951233,
-0.09936952590942383,
-0.1496187299489975,
-0.0029148906469345093,
0.09649613499641418,
-0.19204068183898926,
-0.26092714071273804,
-0.3624972105026245,
-0.1506783366203308,
-0.10665971040725708,
-0.349045991897583,
-0.0708511471748352,
-0.21644888818264008,
-0.0891571044921875,
-0.07996858656406403,
0.11761323362588882,
-0.12785209715366364,
0.19153404235839844,
0.07219551503658295,
0.25208917260169983,
-0.016342949122190475,
0.179175466299057,
0.1918971687555313,
-0.007401354610919952,
-0.1781458705663681,
0.1820491999387741,
0.5045118927955627,
0.15603876113891602,
-0.44812268018722534,
-0.012412224896252155,
0.0752599760890007,
-0.3575074076652527,
0.018403753638267517,
0.10657630860805511,
0.1137402206659317,
-0.23784346878528595,
0.33567187190055847,
0.22902335226535797,
-0.18507754802703857,
-0.21652571856975555,
0.22242237627506256,
-0.07615529000759125,
0.11270241439342499,
0.2996038794517517,
-0.3052111864089966,
-0.32965075969696045,
-0.09446801245212555,
-0.0046697333455085754,
-0.2677331268787384,
-0.276589035987854,
0.15848520398139954,
0.007112429477274418,
0.20487013459205627,
-0.21263498067855835,
0.15467430651187897,
0.06932529807090759,
0.576198160648346,
-0.03108866885304451,
0.09480533003807068,
0.07941077649593353,
0.2102881222963333,
-0.4790945053100586,
0.13912378251552582,
-0.1064210832118988,
-0.11811899393796921,
0.0687156617641449,
0.4990243911743164,
0.0630573183298111,
0.1504906862974167,
0.15088370442390442,
0.010432807728648186,
-0.1435120552778244,
0.09686689078807831,
-0.3981228172779083,
0.010469332337379456,
0.18291807174682617,
0.05970305949449539,
0.16288216412067413,
-0.2981535494327545,
0.06474962085485458,
-0.1292555332183838,
0.13474053144454956,
-0.021800339221954346,
-0.21690770983695984,
-0.027020886540412903,
-0.10691633820533752,
0.22474773228168488,
0.10917925834655762,
0.1795615702867508,
-0.0586218498647213,
-0.2362976372241974,
-0.18980437517166138,
-0.1666763871908188,
-0.24859470129013062,
0.4792465269565582,
-0.14544185996055603,
0.23625582456588745,
-0.08577433973550797,
0.09412798285484314,
0.1562322974205017,
-0.026811880990862846,
0.11479735374450684,
-0.1340167075395584,
-0.32602062821388245,
0.3352851867675781,
-0.09693112969398499,
0.24853475391864777,
-0.25948336720466614,
0.3689160645008087,
-0.12542173266410828,
0.22033604979515076,
-0.35465943813323975,
-0.5474950671195984,
0.5134507417678833,
-0.34420597553253174,
-0.35392123460769653,
0.25884929299354553,
0.17081201076507568,
0.2654406428337097,
0.10274440795183182,
-0.16763898730278015,
-0.15827524662017822,
0.21116769313812256,
-0.17073416709899902,
-0.3202188313007355,
-0.005257494747638702,
-0.16483941674232483,
0.10093224048614502,
-0.2636690139770508,
-0.04309415817260742,
0.005074929445981979,
0.10691528022289276,
-0.20345419645309448,
-0.3928065299987793
] |
https://github.com/huggingface/datasets/issues/375 | TypeError when computing bertscore | I am not able to reproduce this issue on my side.
Could you give us more details about the inputs you used ?
I do get another error though:
```
~/.virtualenvs/hf-datasets/lib/python3.7/site-packages/bert_score/utils.py in bert_cos_score_idf(model, refs, hyps, tokenizer, idf_dict, verbose, batch_size, device, all_layers)
371 return sorted(list(set(l)), key=lambda x: len(x.split(" ")))
372
--> 373 sentences = dedup_and_sort(refs + hyps)
374 embs = []
375 iter_range = range(0, len(sentences), batch_size)
ValueError: operands could not be broadcast together with shapes (0,) (2,)
```
That's because it gets numpy arrays as input and not lists. See #387 | Hi,
I installed nlp 0.3.0 via pip, and my python version is 3.7.
When I tried to compute bertscore with the code:
```
import nlp
bertscore = nlp.load_metric('bertscore')
# load hyps and refs
...
print (bertscore.compute(hyps, refs, lang='en'))
```
I got the following error.
```
Traceback (most recent call last):
File "bert_score_evaluate.py", line 16, in <module>
print (bertscore.compute(hyps, refs, lang='en'))
File "/home/willywsm/anaconda3/envs/torcher/lib/python3.7/site-packages/nlp/metric.py", line 200, in compute
output = self._compute(predictions=predictions, references=references, **metrics_kwargs)
File "/home/willywsm/anaconda3/envs/torcher/lib/python3.7/site-packages/nlp/metrics/bertscore/fb176889831bf0ce995ed197edc94b2e9a83f647a869bb8c9477dbb2d04d0f08/bertscore.py", line 105, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() takes 3 positional arguments but 4 were given
```
It seems like there is something wrong with get_hash() function? | 91 | TypeError when computing bertscore
Hi,
I installed nlp 0.3.0 via pip, and my python version is 3.7.
When I tried to compute bertscore with the code:
```
import nlp
bertscore = nlp.load_metric('bertscore')
# load hyps and refs
...
print (bertscore.compute(hyps, refs, lang='en'))
```
I got the following error.
```
Traceback (most recent call last):
File "bert_score_evaluate.py", line 16, in <module>
print (bertscore.compute(hyps, refs, lang='en'))
File "/home/willywsm/anaconda3/envs/torcher/lib/python3.7/site-packages/nlp/metric.py", line 200, in compute
output = self._compute(predictions=predictions, references=references, **metrics_kwargs)
File "/home/willywsm/anaconda3/envs/torcher/lib/python3.7/site-packages/nlp/metrics/bertscore/fb176889831bf0ce995ed197edc94b2e9a83f647a869bb8c9477dbb2d04d0f08/bertscore.py", line 105, in _compute
hashcode = bert_score.utils.get_hash(model_type, num_layers, idf, rescale_with_baseline)
TypeError: get_hash() takes 3 positional arguments but 4 were given
```
It seems like there is something wrong with get_hash() function?
I am not able to reproduce this issue on my side.
Could you give us more details about the inputs you used ?
I do get another error though:
```
~/.virtualenvs/hf-datasets/lib/python3.7/site-packages/bert_score/utils.py in bert_cos_score_idf(model, refs, hyps, tokenizer, idf_dict, verbose, batch_size, device, all_layers)
371 return sorted(list(set(l)), key=lambda x: len(x.split(" ")))
372
--> 373 sentences = dedup_and_sort(refs + hyps)
374 embs = []
375 iter_range = range(0, len(sentences), batch_size)
ValueError: operands could not be broadcast together with shapes (0,) (2,)
```
That's because it gets numpy arrays as input and not lists. See #387 | [
0.27612441778182983,
-0.13187949359416962,
0.07569082081317902,
0.5165120959281921,
0.09885641932487488,
-0.08921441435813904,
0.16246391832828522,
0.47762951254844666,
-0.06897029280662537,
0.17806431651115417,
0.19733725488185883,
0.4109017252922058,
-0.22790658473968506,
-0.2859776020050049,
-0.010783051140606403,
-0.4891383945941925,
-0.010812267661094666,
0.25762879848480225,
0.07523004710674286,
-0.19344419240951538,
-0.4337228834629059,
0.04549326002597809,
-0.3053171932697296,
0.2282249480485916,
0.2554675042629242,
0.08862881362438202,
-0.26043984293937683,
0.134860098361969,
-0.22786009311676025,
-0.4158540666103363,
0.3323255479335785,
-0.17855389416217804,
0.007962359115481377,
0.2735733389854431,
-0.00011967584578087553,
-0.16422629356384277,
0.3422839045524597,
-0.050375908613204956,
0.13537895679473877,
-0.29670655727386475,
-0.5725343227386475,
-0.31059086322784424,
-0.031961750239133835,
-0.3177141845226288,
0.26147547364234924,
0.14892444014549255,
-0.13543401658535004,
-0.04810105636715889,
0.012342393398284912,
0.18124644458293915,
0.13395890593528748,
0.025418944656848907,
-0.21186301112174988,
0.01776123233139515,
0.26042458415031433,
0.007191717624664307,
0.018549924716353416,
0.3635791540145874,
-0.4025583565235138,
-0.30081456899642944,
0.014911957085132599,
0.32883983850479126,
0.013553859665989876,
0.08236419409513474,
0.2077825963497162,
0.20617491006851196,
0.06418782472610474,
0.18809004127979279,
-0.09990277141332626,
0.09085400402545929,
-0.3608170747756958,
0.08363579213619232,
-0.32506439089775085,
0.23435530066490173,
0.05630213022232056,
-0.4785049557685852,
0.20228281617164612,
-0.11532723903656006,
-0.0014470424503087997,
-0.5615648627281189,
-0.27838781476020813,
-0.10059543699026108,
-0.3167918920516968,
0.19225218892097473,
0.3359640836715698,
-0.1287987232208252,
-0.10188637673854828,
0.1736430525779724,
0.4988454580307007,
-0.12606120109558105,
-0.11482333391904831,
-0.13571332395076752,
0.131661519408226,
0.44455286860466003,
-0.09116119146347046,
0.10928076505661011,
0.13634061813354492,
0.11333426088094711,
-0.03033263422548771,
-0.5219542980194092,
0.07191076874732971,
-0.02703925594687462,
-0.3086429834365845,
0.273444801568985,
0.014333811588585377,
0.40412047505378723,
0.0988553911447525,
0.21380704641342163,
-0.17128886282444,
0.09427915513515472,
0.12941238284111023,
-0.10194162279367447,
0.0056877825409173965,
-0.13297685980796814,
0.272656112909317,
0.4165842533111572,
-0.23633146286010742,
-0.11841750144958496,
0.12089895457029343,
-0.03051026165485382,
-0.5161257386207581,
-0.015684686601161957,
0.29087886214256287,
0.3036077916622162,
-0.031806718558073044,
0.3757750689983368,
0.05425106734037399,
0.12529753148555756,
-0.21856214106082916,
0.07105093449354172,
-0.1651148945093155,
0.4736361801624298,
-0.41039979457855225,
-0.09632949531078339,
0.20496545732021332,
-0.2787078619003296,
0.2501210868358612,
0.02121448889374733,
0.13067902624607086,
0.055551931262016296,
-0.23201723396778107,
-0.2523793578147888,
0.1263781487941742,
-0.14106255769729614,
0.027290012687444687,
-0.0139506496489048,
0.2995970547199249,
0.27063608169555664,
-0.1369115710258484,
0.018167026340961456,
-0.44769757986068726,
-0.31434452533721924,
0.15596047043800354,
0.09911388158798218,
0.17961329221725464,
0.1577758491039276,
-0.21326270699501038,
-0.0983944982290268,
0.27187904715538025,
-0.27926769852638245,
-0.24608418345451355,
-0.37670743465423584,
-0.1823885589838028,
-0.2621825039386749,
0.11682812124490738,
0.20593659579753876,
-0.12124490737915039,
0.07937242090702057,
-0.33447128534317017,
0.3835707902908325,
0.4181898534297943,
0.25747162103652954,
-0.24732738733291626,
0.04520519822835922,
-0.04920633137226105,
0.3692498207092285,
0.5126006007194519,
-0.525779128074646,
-0.08674968779087067,
-0.14901141822338104,
0.3625640869140625,
-0.3087708652019501,
-0.039973385632038116,
-0.02408001571893692,
-0.3384362459182739,
0.02452198415994644,
0.058152325451374054,
-0.14520762860774994,
-0.10380092263221741,
0.013366499915719032,
-0.20701740682125092,
0.03591484576463699,
0.23699919879436493,
0.017172154039144516,
0.28544744849205017,
-0.09815680235624313,
-0.08825679868459702,
0.34540605545043945,
-0.11927273124456406,
-0.13637493550777435,
0.034553490579128265,
0.05047711730003357,
0.30943581461906433,
-0.20218710601329803,
0.2588394582271576,
-0.16559386253356934,
0.109283946454525,
0.06734690070152283,
-0.44912680983543396,
0.28564566373825073,
-0.031146228313446045,
0.21484501659870148,
-0.1701611876487732,
-0.10167071223258972,
-0.08132687211036682,
0.00450441800057888,
0.03322868049144745,
0.0805322602391243,
0.2835668623447418,
0.059562426060438156,
-0.13740481436252594,
-0.30839264392852783,
-0.07903095334768295,
-0.2511026859283447,
-0.28636884689331055,
0.039926908910274506,
-0.3576814830303192,
-0.11139081418514252,
0.25295791029930115,
0.4223960041999817,
0.4608674943447113,
0.22826460003852844,
-0.17527183890342712,
0.19235500693321228,
0.0128557700663805,
-0.2530883550643921,
0.25284314155578613,
0.02891230583190918,
-0.03189331293106079,
-0.26532816886901855,
0.10530812293291092,
-0.0803648978471756,
0.37893420457839966,
-0.07781605422496796,
0.17001652717590332,
0.36665043234825134,
0.021598968654870987,
0.3864721357822418,
0.05842740833759308,
0.1290571093559265,
0.14585928618907928,
0.10786639153957367,
0.1775081902742386,
-0.11834603548049927,
0.3007710576057434,
0.0703478455543518,
-0.206773579120636,
-0.266176700592041,
0.2244003415107727,
-0.3974017798900604,
0.5296518206596375,
0.10973048210144043,
-0.04438707232475281,
0.31074821949005127,
0.04475077986717224,
-0.0797538310289383,
-0.306356817483902,
-0.5760124921798706,
0.41898131370544434,
-0.14339540898799896,
-0.08124727010726929,
-0.009523751214146614,
-0.05766766518354416,
-0.0341152548789978,
0.13195878267288208,
0.14558745920658112,
-0.15138377249240875,
-0.1614830195903778,
0.09861935675144196,
-0.08650778234004974,
0.04164411872625351,
-0.20196135342121124,
0.03170058876276016,
0.5163307189941406,
-0.3323076367378235,
0.4592040479183197,
-0.282894492149353,
-0.211226224899292,
-0.27134308218955994,
-0.6009106636047363,
-0.3930336833000183,
-0.4392983615398407,
-0.061125338077545166,
-0.04875051602721214,
0.11803045868873596,
0.21165652573108673,
0.11267627775669098,
0.32430410385131836,
0.2135203331708908,
0.19731873273849487,
-0.1149030476808548,
-0.22645188868045807,
-0.4213561713695526,
-0.07052268087863922,
-0.1354674994945526,
0.06779918074607849,
0.15107767283916473,
-0.1498585194349289,
-0.1466476172208786,
-0.0514497235417366,
-0.2478657066822052,
0.08928462862968445,
-0.37124401330947876,
0.011482342146337032,
0.4287259876728058,
-0.25207293033599854,
-0.5686562657356262,
-0.18658347427845,
0.41130873560905457,
-0.2112155556678772,
-0.13622324168682098,
0.6053290963172913,
-0.10481170564889908,
0.004957188852131367,
-0.14193083345890045,
-0.23258337378501892,
0.16318000853061676,
-0.026635807007551193,
0.2447887808084488,
0.1147976815700531,
0.3527398109436035,
0.060862623155117035,
-0.04263085126876831,
0.36705493927001953,
-0.2433394491672516,
-0.05458521097898483,
-0.24544276297092438,
-0.23380418121814728,
0.17395949363708496,
-0.16335473954677582,
-0.3638008236885071,
-0.23292061686515808,
-0.08394598960876465,
0.22059661149978638,
0.03269602358341217,
-0.07199212908744812,
-0.6988817453384399,
0.16091395914554596,
-0.08757355809211731,
-0.11307527124881744,
0.3430013358592987,
0.20707973837852478,
-0.026436852291226387,
-0.018561888486146927,
-0.2006416618824005,
-0.07354985177516937,
0.29971572756767273,
0.156774640083313,
0.28764382004737854,
0.055239979177713394,
0.26819366216659546,
0.21057811379432678,
0.7750529646873474,
0.4110405743122101,
-0.14279592037200928,
0.41083666682243347,
0.09807134419679642,
-0.0665932148694992,
0.14184947311878204,
-0.4568258821964264,
0.0531851090490818,
0.08782056719064713,
0.2652171850204468,
0.17365078628063202,
-0.11302313953638077,
-0.013581428676843643,
-0.14460983872413635,
-0.1400769054889679,
-0.4488297402858734,
-0.25864067673683167,
0.11188223212957382,
-0.2477547526359558,
0.5019534230232239,
0.03936973586678505,
0.028255023062229156,
-0.4011194705963135,
-0.29878881573677063,
0.04371305927634239,
-0.1346619576215744,
0.16008786857128143,
-0.08500473946332932,
0.3199124336242676,
-0.43150609731674194,
-0.260943204164505,
0.43255072832107544,
0.5315394401550293,
0.46023938059806824,
-0.0440840944647789,
0.21407616138458252,
0.02862057089805603,
0.043565377593040466,
0.39166009426116943,
-0.22875386476516724,
0.19572831690311432,
0.1939026117324829,
0.012567292898893356,
-0.2409183233976364,
0.09946136176586151,
-0.4506717920303345,
0.025901682674884796,
0.2522270083427429,
0.19665564596652985,
-0.1824197918176651,
0.0829218402504921,
0.2392488569021225,
-0.19131624698638916,
-0.21682310104370117,
-0.17175523936748505,
-0.3922545313835144,
-0.10345596075057983,
0.1337924301624298,
0.07086614519357681,
-0.18482859432697296,
0.3278145492076874,
0.11644142866134644,
0.3427134156227112,
0.08105497062206268,
-0.05454014614224434,
0.16056589782238007,
0.05254669114947319,
-0.015751490369439125,
0.0007017324678599834,
0.007515821605920792,
0.01055934838950634,
-0.09696701169013977,
0.18034349381923676,
0.07531258463859558,
-0.03905174508690834,
-0.34069395065307617,
-0.011494804173707962,
0.1553640514612198,
0.5570812225341797,
0.042072124779224396,
-0.02593832090497017,
0.007410004734992981,
0.034869201481342316,
0.045192208141088486,
-0.09717234969139099,
0.11417917162179947,
0.654345691204071,
-0.1623390018939972,
-0.2744379937648773,
-0.3511202335357666,
0.5985893607139587,
0.1391279101371765,
-0.044123098254203796,
-0.1602846086025238,
0.35547035932540894,
-0.10967953503131866,
0.2573426365852356,
0.40789979696273804,
0.9862607717514038,
0.0076944902539253235,
0.006367016583681107,
0.3951886296272278,
0.31465810537338257,
0.6596634387969971,
0.15788577497005463,
0.24318605661392212,
-0.4803042709827423,
0.09305055439472198,
-0.04703354090452194,
-0.18435990810394287,
-0.04330147057771683,
-0.1433950960636139,
-0.15192186832427979,
0.5336702466011047,
-0.18224093317985535,
-0.009079143404960632,
0.05950183421373367,
-0.09267599880695343,
0.1497078388929367,
-0.36485254764556885,
-0.2230270951986313,
0.09297694265842438,
-0.20578549802303314,
0.13140437006950378,
-0.13272109627723694,
-0.1358572542667389,
0.09862002730369568,
-0.30958032608032227,
-0.34879207611083984,
0.2200469970703125,
0.304518461227417,
0.08683790266513824,
-0.06608974933624268,
-0.0008566603064537048,
0.17312321066856384,
-0.01448075845837593,
0.38315916061401367,
-0.030285712331533432,
-0.1866527944803238,
-0.022907685488462448,
0.07089921087026596,
-0.08817827701568604,
0.12048032134771347,
0.2667512595653534,
-0.14315946400165558,
-0.12799447774887085,
-0.03302974998950958,
0.11756746470928192,
-0.01595381833612919,
-0.24412408471107483,
-0.07702839374542236,
0.019763916730880737,
0.17072978615760803,
-0.007582349237054586,
0.05232156813144684,
-0.034712933003902435,
0.0013455599546432495,
-0.03252082318067551,
0.07717988640069962,
0.061572302132844925,
-0.3198447525501251,
0.20466694235801697,
0.06109416484832764,
-0.10083562880754471,
0.26332324743270874,
0.35451585054397583,
0.18911203742027283,
0.07073436677455902,
0.4330880045890808,
0.013102184981107712,
-0.2483198195695877,
-0.01434391364455223,
-0.295757919549942,
0.09108833968639374,
-0.3135699927806854,
0.012533053755760193,
0.14958535134792328,
0.25773561000823975,
0.0460846833884716,
0.3942522406578064,
0.09639401733875275,
0.05424235761165619,
0.011534541845321655,
-0.36254197359085083,
0.04545574635267258,
0.06286273896694183,
-0.24709604680538177,
-0.2727506160736084,
0.0383840948343277,
0.10211427509784698,
-0.13220806419849396,
0.3776419162750244,
-0.21924036741256714,
0.03907524794340134,
-0.37288573384284973,
0.3584412932395935,
-0.1926402747631073,
-0.0827745720744133,
0.25404903292655945,
0.1947726607322693,
0.0388452485203743,
0.30142831802368164,
-0.1767052859067917,
-0.0731121152639389,
-0.21006780862808228,
0.1635114997625351,
0.131046861410141,
-0.1000208929181099,
-0.1430181860923767,
-0.3009259104728699,
-0.23703032732009888,
-0.05283993482589722,
-0.5451624989509583,
0.09360552579164505,
-0.05051208287477493,
0.5203592777252197,
-0.01758037880063057,
0.2093583345413208,
0.25861847400665283,
0.18822000920772552,
-0.08176915347576141,
0.3411978483200073,
-0.050276584923267365,
0.16446852684020996,
0.07339172810316086,
-0.16560503840446472,
-0.11883710324764252,
0.041175615042448044,
0.14329026639461517,
-0.018775273114442825,
0.2660488784313202,
-0.001867484301328659,
0.31882166862487793,
-0.2743109464645386,
0.3269651532173157,
0.14027684926986694,
-0.03911774232983589,
-0.056872643530368805,
0.3071947395801544,
0.0340561643242836,
-0.15770936012268066,
-0.01670192740857601,
-0.30500712990760803,
0.1646960973739624,
-0.21073691546916962,
0.19125229120254517,
-0.19159480929374695,
-0.002443067729473114,
0.03654675558209419,
-0.21616226434707642,
-0.0961604118347168,
-0.24999339878559113,
-0.10512430965900421,
0.24062201380729675,
-0.15624304115772247,
0.09503786265850067,
0.3902400732040405,
0.10906371474266052,
0.17056778073310852,
0.27744704484939575,
-0.1277303397655487,
0.22094587981700897,
-0.36819329857826233,
-0.03415626659989357,
-0.11156698316335678,
-0.09622110426425934,
-0.426648885011673,
0.32894569635391235,
0.3853098750114441,
0.218059241771698,
-0.20890620350837708,
0.6197128295898438,
-0.24948327243328094,
0.0003629256971180439,
-0.400490939617157,
0.4326598346233368,
0.1480337381362915,
-0.05091796815395355,
-0.22886599600315094,
-0.12701745331287384,
-0.24224331974983215,
0.02410724386572838,
-0.04773208871483803,
0.13675805926322937,
0.4916244447231293,
0.45108526945114136,
-0.05057966709136963,
-0.2604433000087738,
-0.32504311203956604,
0.5483910441398621,
0.2560440003871918,
-0.3059973418712616,
-0.0033511612564325333,
0.11298099905252457,
0.0017468258738517761,
-0.09002335369586945,
0.3348160982131958,
0.26296117901802063,
0.4056601822376251,
-0.25611522793769836,
-0.23892582952976227,
0.0008812956511974335,
0.05253918468952179,
0.047952182590961456,
0.29624900221824646,
0.315548837184906,
0.3683299124240875,
0.14111317694187164,
-0.008941827341914177,
-0.04641846939921379,
0.16426146030426025,
-0.09952162206172943,
0.5115297436714172,
0.08945357799530029,
0.8424608707427979,
-0.07010900229215622,
0.22005906701087952,
-0.06431055068969727,
0.04334918037056923,
-0.4138907492160797,
0.22941213846206665,
-0.0224543996155262,
0.4532645344734192,
0.12200083583593369,
-0.04975513368844986,
0.03110397979617119,
-0.010386161506175995,
0.5032484531402588,
0.3842639625072479,
-0.16034844517707825,
-0.6217660903930664,
-0.07053317129611969,
-0.18336805701255798,
0.08251979947090149,
-0.07315324246883392,
0.19359737634658813,
-0.013689812272787094,
0.06011992692947388,
-0.158688485622406,
0.1457274854183197,
-0.13828255236148834,
-0.12189523875713348,
-0.21103619039058685,
0.20931223034858704,
-0.2460130900144577,
-0.22010554373264313,
-0.24542595446109772,
-0.4443530738353729,
0.0382009893655777,
-0.02767428569495678,
-0.03580116108059883,
-0.22917689383029938,
0.026704758405685425,
-0.11504782736301422,
-0.22350914776325226,
0.0858791321516037,
0.5075317621231079,
0.2599180340766907,
0.38714906573295593,
0.3245084881782532,
0.1401471495628357,
-0.20348909497261047,
0.051899589598178864,
-0.132757306098938,
0.0878438726067543,
0.06387627124786377,
-0.3981199264526367,
0.17984461784362793,
-0.16468048095703125,
0.06775575876235962,
-0.5098578333854675,
0.32633811235427856,
-0.16334597766399384,
-0.14339418709278107,
-0.38051292300224304,
0.11970511823892593,
0.0851343646645546,
-0.016991542652249336,
-0.1053532138466835,
0.040197912603616714,
-0.03190254420042038,
0.3425038158893585,
-0.45043373107910156,
-0.007498511113226414,
0.6227495670318604,
-0.589815616607666,
-0.3655669689178467,
0.1650705486536026,
0.25668156147003174,
0.00997752696275711,
-0.17307236790657043,
-0.8751225471496582,
-0.12246356904506683,
0.35991182923316956,
0.10913825780153275,
-0.17431163787841797,
-0.1304667592048645,
-0.2308664321899414,
-0.030322114005684853,
0.03191087767481804,
-0.03290703147649765,
-0.07873518764972687,
-0.14700298011302948,
0.31456977128982544,
-0.09690690040588379
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | I've seen this sort of thing before -- it might help to delete the directory -- I've also noticed that there is an error with the json Dataloader for any data I've tried to load. I've replaced it with this, which skips over the data feature population step:
```python
import os
import pyarrow.json as paj
import nlp as hf_nlp
from nlp import DatasetInfo, BuilderConfig, SplitGenerator, Split, utils
from nlp.arrow_writer import ArrowWriter
class JSONDatasetBuilder(hf_nlp.ArrowBasedBuilder):
BUILDER_CONFIG_CLASS = BuilderConfig
def _info(self):
return DatasetInfo()
def _split_generators(self, dl_manager):
""" We handle string, list and dicts in datafiles
"""
if isinstance(self.config.data_files, (str, list, tuple)):
files = self.config.data_files
if isinstance(files, str):
files = [files]
return [SplitGenerator(name=Split.TRAIN, gen_kwargs={"files": files})]
splits = []
for split_name in [Split.TRAIN, Split.VALIDATION, Split.TEST]:
if split_name in self.config.data_files:
files = self.config.data_files[split_name]
if isinstance(files, str):
files = [files]
splits.append(SplitGenerator(name=split_name, gen_kwargs={"files": files}))
return splits
def _prepare_split(self, split_generator):
fname = "{}-{}.arrow".format(self.name, split_generator.name)
fpath = os.path.join(self._cache_dir, fname)
writer = ArrowWriter(path=fpath)
generator = self._generate_tables(**split_generator.gen_kwargs)
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
writer.write_table(table)
num_examples, num_bytes = writer.finalize()
split_generator.split_info.num_examples = num_examples
split_generator.split_info.num_bytes = num_bytes
def _generate_tables(self, files):
for i, file in enumerate(files):
pa_table = paj.read_json(
file
)
yield i, pa_table
``` | The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 191 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
I've seen this sort of thing before -- it might help to delete the directory -- I've also noticed that there is an error with the json Dataloader for any data I've tried to load. I've replaced it with this, which skips over the data feature population step:
```python
import os
import pyarrow.json as paj
import nlp as hf_nlp
from nlp import DatasetInfo, BuilderConfig, SplitGenerator, Split, utils
from nlp.arrow_writer import ArrowWriter
class JSONDatasetBuilder(hf_nlp.ArrowBasedBuilder):
BUILDER_CONFIG_CLASS = BuilderConfig
def _info(self):
return DatasetInfo()
def _split_generators(self, dl_manager):
""" We handle string, list and dicts in datafiles
"""
if isinstance(self.config.data_files, (str, list, tuple)):
files = self.config.data_files
if isinstance(files, str):
files = [files]
return [SplitGenerator(name=Split.TRAIN, gen_kwargs={"files": files})]
splits = []
for split_name in [Split.TRAIN, Split.VALIDATION, Split.TEST]:
if split_name in self.config.data_files:
files = self.config.data_files[split_name]
if isinstance(files, str):
files = [files]
splits.append(SplitGenerator(name=split_name, gen_kwargs={"files": files}))
return splits
def _prepare_split(self, split_generator):
fname = "{}-{}.arrow".format(self.name, split_generator.name)
fpath = os.path.join(self._cache_dir, fname)
writer = ArrowWriter(path=fpath)
generator = self._generate_tables(**split_generator.gen_kwargs)
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
writer.write_table(table)
num_examples, num_bytes = writer.finalize()
split_generator.split_info.num_examples = num_examples
split_generator.split_info.num_bytes = num_bytes
def _generate_tables(self, files):
for i, file in enumerate(files):
pa_table = paj.read_json(
file
)
yield i, pa_table
``` | [
-0.017292935401201248,
0.2893960773944855,
0.060941580682992935,
0.05787109583616257,
0.22360926866531372,
-0.01654874160885811,
0.3200390636920929,
0.6101843118667603,
-0.40100938081741333,
-0.21304382383823395,
-0.24225422739982605,
0.7714078426361084,
0.13278746604919434,
-0.42659613490104675,
0.148922860622406,
-0.07152826339006424,
0.04622578248381615,
0.1267290562391281,
0.22394028306007385,
0.05367039889097214,
-0.17444954812526703,
0.3416517674922943,
-0.22996830940246582,
0.13204163312911987,
-0.1667519062757492,
0.2660640776157379,
0.006536075845360756,
0.5419238209724426,
-0.07457146048545837,
-0.7302019000053406,
0.29777756333351135,
-0.00932963564991951,
0.15174531936645508,
0.34502479434013367,
-0.00011861127859447151,
0.18453164398670197,
0.3318486213684082,
-0.10963694006204605,
-0.35170140862464905,
0.052129171788692474,
0.28050345182418823,
-0.24146446585655212,
0.3380259573459625,
-0.14538398385047913,
0.0627315416932106,
-0.31198063492774963,
0.0318320170044899,
0.08127447962760925,
0.6866550445556641,
0.15539707243442535,
0.09210093319416046,
0.1377255618572235,
0.07380697131156921,
0.05236603319644928,
0.02077595517039299,
0.06787747889757156,
0.016604134812951088,
0.7200930714607239,
0.5202919244766235,
-0.1260118931531906,
-0.33889901638031006,
-0.07208496332168579,
0.12127216160297394,
-0.03826923295855522,
0.20485687255859375,
-0.06355605274438858,
-0.01384805142879486,
-0.18327093124389648,
0.052465278655290604,
0.11702004075050354,
0.24164614081382751,
-0.23805928230285645,
-0.23284828662872314,
-0.21574902534484863,
0.07478656619787216,
-0.2181091457605362,
0.3773205578327179,
0.277229368686676,
-0.13986001908779144,
0.15234270691871643,
-0.05699673667550087,
0.03446023911237717,
-0.19189298152923584,
0.029310330748558044,
-0.21427331864833832,
0.5192531943321228,
0.12151210010051727,
0.0416845977306366,
0.10512389242649078,
-0.1629461795091629,
-0.1519256830215454,
0.31723931431770325,
-0.26252880692481995,
0.3998278081417084,
-0.3908270001411438,
-0.16861698031425476,
0.11205319315195084,
-0.362652063369751,
0.21630483865737915,
0.09017674624919891,
0.1800878643989563,
0.16720515489578247,
0.21391238272190094,
0.12037011981010437,
0.4853104054927826,
0.054677899926900864,
0.17183536291122437,
0.20253196358680725,
0.15263167023658752,
-0.019629038870334625,
-0.025974441319704056,
0.23977527022361755,
-0.1398816853761673,
-0.2250078022480011,
-0.2135155349969864,
0.02806801348924637,
-0.0268214363604784,
-0.10946649312973022,
0.014883609488606453,
0.06951820850372314,
-0.31477054953575134,
-0.012025943025946617,
0.050985340029001236,
0.08486197888851166,
0.1312861442565918,
0.1926075518131256,
-0.25002795457839966,
0.20476096868515015,
-0.1014544740319252,
-0.17269505560398102,
-0.017575176432728767,
-0.026820369064807892,
-0.30665647983551025,
-0.020666083320975304,
0.4054732322692871,
-0.12256057560443878,
0.11852153390645981,
-0.08125002682209015,
-0.11161546409130096,
-0.22692301869392395,
-0.43347233533859253,
-0.043898019939661026,
0.00766715407371521,
0.1496744304895401,
0.03168030455708504,
-0.07048674672842026,
-0.036723341792821884,
-0.25811031460762024,
-0.1803210973739624,
0.21218934655189514,
-0.35118767619132996,
-0.2851627767086029,
-0.5924198031425476,
0.11839122325181961,
-0.3227139115333557,
-0.005309060215950012,
0.144400954246521,
0.2050791084766388,
0.056660085916519165,
-0.45432591438293457,
-0.1377899944782257,
-0.0893591046333313,
-0.003153182566165924,
-0.22954262793064117,
0.14668314158916473,
0.2523782253265381,
-0.8450281023979187,
-0.2359812706708908,
0.16683757305145264,
-0.0015069693326950073,
0.0830981433391571,
0.5275307893753052,
-0.35141846537590027,
0.2732038199901581,
-0.15309779345989227,
0.5261086225509644,
0.4013669490814209,
-0.27797797322273254,
-0.33690890669822693,
0.24279099702835083,
-0.3994483947753906,
-0.04135706275701523,
-0.2372668981552124,
-0.06557163596153259,
0.2967044711112976,
0.0823332741856575,
0.3412531316280365,
0.4493858814239502,
-0.1155514121055603,
0.14832478761672974,
-0.33256494998931885,
-0.08049905300140381,
0.17264264822006226,
0.36013996601104736,
-0.06741523742675781,
-0.16082435846328735,
-0.02985893189907074,
0.14493077993392944,
0.4040018916130066,
-0.17193202674388885,
-0.020753830671310425,
0.16067291796207428,
0.137290358543396,
-0.017320290207862854,
0.16614244878292084,
-0.10807956010103226,
-0.7758411169052124,
0.1020512804389,
-0.2894934415817261,
0.08079374581575394,
-0.04113234579563141,
0.006053276360034943,
-0.2767830193042755,
-0.11359872668981552,
-0.20613180100917816,
-0.05402376130223274,
0.03211724013090134,
-0.1604943573474884,
-0.034858908504247665,
-0.06829656660556793,
-0.4652935564517975,
-0.15678612887859344,
-0.15475744009017944,
0.3780496120452881,
-0.11537927389144897,
0.4039316177368164,
-0.13026511669158936,
-0.40083321928977966,
0.09279197454452515,
0.36722642183303833,
0.12826183438301086,
-0.26726216077804565,
-0.00681593082845211,
0.3295678496360779,
-0.08044763654470444,
0.13387416303157806,
-0.17082291841506958,
-0.2979549169540405,
0.24760888516902924,
-0.08576124906539917,
-0.12928541004657745,
-0.06358087062835693,
-0.1022326722741127,
-0.08836463838815689,
-0.3246677815914154,
0.33626747131347656,
0.01972571760416031,
-0.03263632208108902,
-0.056773532181978226,
-0.24713614583015442,
0.2981208562850952,
-0.08481107652187347,
-0.12740351259708405,
-0.0282973051071167,
0.017285965383052826,
0.1671067476272583,
-0.01249563880264759,
0.1766582727432251,
-0.1765212118625641,
-0.014475196599960327,
0.3694947063922882,
-0.0651182159781456,
0.035570599138736725,
0.18731805682182312,
0.10087145119905472,
-0.2918992340564728,
-0.024752849712967873,
-0.04872118681669235,
0.3634803891181946,
-0.007697261869907379,
-0.15589140355587006,
-0.003915304318070412,
0.03366772457957268,
-0.018401337787508965,
-0.011545412242412567,
0.04824555665254593,
0.4226096272468567,
0.5049405097961426,
0.3639856278896332,
0.16840191185474396,
-0.2733657956123352,
-0.15487241744995117,
0.1276227831840515,
0.05630408972501755,
-0.3743777871131897,
0.06021815538406372,
-0.2678273618221283,
-0.14459271728992462,
-0.293088436126709,
-0.14269036054611206,
-0.3419746160507202,
-0.1941552609205246,
0.10888779163360596,
-0.03826295956969261,
-0.08678235113620758,
0.20050588250160217,
0.16654638946056366,
0.4000794291496277,
0.10027797520160675,
-0.18636764585971832,
0.038145892322063446,
-0.17725814878940582,
-0.2182420790195465,
-0.04536733031272888,
0.37832245230674744,
-0.0644291341304779,
-0.20677797496318817,
-0.18944235146045685,
-0.27097535133361816,
0.10979176312685013,
-0.4360974133014679,
0.16802868247032166,
-0.009155366569757462,
0.19459065794944763,
0.022265620529651642,
0.23686353862285614,
-0.147968128323555,
-0.36693522334098816,
0.28148242831230164,
-0.04621180519461632,
-0.2511284351348877,
0.00040096603333950043,
-0.10349632054567337,
0.13379180431365967,
-0.2878111004829407,
-0.3897343575954437,
-0.2453109472990036,
-0.227113276720047,
0.4359026551246643,
0.07529547810554504,
0.13726647198200226,
0.2004077136516571,
-0.20206838846206665,
0.01474254485219717,
-0.23706023395061493,
-0.21109458804130554,
0.04947827011346817,
-0.1857472062110901,
0.20523396134376526,
-0.2988071143627167,
-0.1417258232831955,
-0.021901685744524002,
0.09425181150436401,
0.16700530052185059,
-0.2243582159280777,
-0.16041654348373413,
0.1161191388964653,
0.17135782539844513,
0.24600833654403687,
-0.3234412968158722,
-0.2597641944885254,
0.2524788975715637,
-0.2297290712594986,
0.052428387105464935,
0.19720995426177979,
-0.36020925641059875,
-0.09371232241392136,
0.5185642242431641,
0.19824960827827454,
-0.26570558547973633,
0.2363279163837433,
0.05972133204340935,
0.8267533183097839,
-0.13744008541107178,
-0.16253790259361267,
0.12583282589912415,
0.03038007579743862,
0.12194845080375671,
-0.14891257882118225,
-0.035248931497335434,
0.3921872675418854,
-0.03979837894439697,
-0.11294013261795044,
0.24759550392627716,
0.16245195269584656,
-0.5424820184707642,
-0.005967728793621063,
0.15809737145900726,
-0.5473142862319946,
-0.16832345724105835,
0.2632967531681061,
0.555120587348938,
-0.08508653193712234,
-0.04293389245867729,
0.029451429843902588,
0.002924814820289612,
-0.23155075311660767,
-0.05983665958046913,
0.22425155341625214,
0.27071303129196167,
0.0932336077094078,
-0.5434249043464661,
-0.3422016501426697,
-0.04475945979356766,
-0.020403414964675903,
0.12437023967504501,
0.46455663442611694,
-0.0012723878026008606,
-0.20624318718910217,
0.027220875024795532,
-0.2641845643520355,
0.3476611375808716,
0.26207470893859863,
0.35182780027389526,
0.3491414189338684,
0.32933080196380615,
-0.07430104911327362,
-0.3046778440475464,
0.14519022405147552,
0.47711288928985596,
0.6556545495986938,
0.4198318123817444,
-0.10166966170072556,
-0.13171114027500153,
0.28487417101860046,
0.08596163243055344,
-0.14478135108947754,
-0.07338382303714752,
-0.22651486098766327,
-0.07947787642478943,
0.003026111051440239,
0.03935079276561737,
-0.041760798543691635,
0.39739441871643066,
0.06032101809978485,
0.1337607502937317,
0.42367687821388245,
-0.2695534825325012,
-0.24267567694187164,
0.3894134759902954,
0.10912413150072098,
0.07678131759166718,
0.04680414870381355,
0.2670256495475769,
-0.0012025795876979828,
0.3386416733264923,
0.4461457431316376,
0.2894243597984314,
-0.20294621586799622,
0.2748577892780304,
-0.006987389642745256,
0.22130072116851807,
0.46919623017311096,
0.20125867426395416,
-0.18309062719345093,
-0.14047062397003174,
-0.12718693912029266,
0.023022837936878204,
-0.4001844525337219,
0.13784129917621613,
-0.307553768157959,
-0.22677819430828094,
0.2155749648809433,
0.20091675221920013,
-0.09558314085006714,
-0.06338608264923096,
-0.02899754047393799,
-0.06045711040496826,
-0.015704549849033356,
0.5079237222671509,
0.16421635448932648,
0.7734215259552002,
-0.04519962519407272,
0.10620619356632233,
0.2713398337364197,
-0.11777021735906601,
0.40123337507247925,
-0.6511290073394775,
0.36042606830596924,
-0.43772202730178833,
0.26961836218833923,
0.12142503261566162,
-0.12912026047706604,
0.16803914308547974,
0.18424205482006073,
0.00671980157494545,
-0.054778214544057846,
-0.14762499928474426,
0.2945111095905304,
-0.02576306276023388,
0.33889755606651306,
0.17994776368141174,
-0.30595386028289795,
-0.5036044120788574,
0.060792066156864166,
-0.37010788917541504,
0.03455856069922447,
-0.1490776538848877,
-0.16940253973007202,
-0.08521300554275513,
-0.12656302750110626,
-0.2838006317615509,
0.27698490023612976,
0.12989217042922974,
0.014315811917185783,
0.5128051042556763,
-0.2600136399269104,
0.15981611609458923,
0.3644203245639801,
-0.150142639875412,
0.053529031574726105,
-0.002931840717792511,
0.36155277490615845,
-0.12342961877584457,
0.1117699071764946,
0.22975914180278778,
0.019883856177330017,
0.2879815995693207,
-0.16016104817390442,
-0.04068177193403244,
-0.050391197204589844,
-0.07457561790943146,
-0.27969449758529663,
-0.06919239461421967,
0.39419376850128174,
0.13750892877578735,
-0.1656411737203598,
0.012916380539536476,
-0.12453880906105042,
0.12291926145553589,
-0.049302034080028534,
0.05420312657952309,
0.01064547523856163,
-0.14916297793388367,
-0.027174033224582672,
0.15864507853984833,
-0.06981586664915085,
0.08643671870231628,
0.608910858631134,
-0.10844961553812027,
-0.3196195662021637,
0.30646252632141113,
0.30267563462257385,
0.005280476063489914,
-0.22048041224479675,
0.2212643325328827,
0.05046805366873741,
-0.3886027932167053,
-0.1376264989376068,
-0.19892218708992004,
-0.0684240534901619,
0.03468042239546776,
0.10222826153039932,
0.21728578209877014,
-0.10179037600755692,
0.0036830008029937744,
-0.5508980751037598,
-0.30310967564582825,
0.19118639826774597,
-0.07676942646503448,
-0.18136955797672272,
0.11923191696405411,
0.3389422595500946,
0.015513172373175621,
0.2547386586666107,
-0.20348533987998962,
0.32593321800231934,
-0.37330880761146545,
0.14416098594665527,
-0.563596248626709,
-0.2371910810470581,
-0.003535565687343478,
-0.23051342368125916,
0.018074387684464455,
0.24548952281475067,
0.07344727218151093,
-0.10744056850671768,
-0.015552161261439323,
0.15939371287822723,
0.1383395791053772,
-0.0180854182690382,
-0.16946640610694885,
-0.00020727328956127167,
0.10750927031040192,
0.17355968058109283,
0.10350057482719421,
-0.1377708911895752,
0.14676421880722046,
0.1609334498643875,
0.29537999629974365,
0.10649140179157257,
0.19602839648723602,
0.09358853846788406,
0.029574118554592133,
0.39053821563720703,
0.058881644159555435,
0.2412940412759781,
-0.20396076142787933,
0.03343268483877182,
-0.3554684817790985,
0.18905995786190033,
0.01001390814781189,
0.28048333525657654,
0.08382789045572281,
-0.5798283815383911,
-0.05440349131822586,
-0.07205303013324738,
0.3013576865196228,
0.5721238255500793,
-0.36651474237442017,
0.11240676045417786,
0.18876996636390686,
0.10417407751083374,
-0.009935840964317322,
-0.25940877199172974,
0.7478204965591431,
-0.035664379596710205,
-0.3024628460407257,
0.01803499460220337,
0.14284679293632507,
-0.09839732199907303,
0.13151915371418,
0.13897210359573364,
0.5670433640480042,
0.19193539023399353,
0.19833457469940186,
0.21702063083648682,
-0.22543442249298096,
-0.02375100925564766,
0.13978669047355652,
-0.07900013029575348,
0.18169553577899933,
0.25413215160369873,
-0.19390419125556946,
0.06331808865070343,
0.11781709641218185,
0.10370814055204391,
0.23295000195503235,
-0.3413435220718384,
-0.35574883222579956,
0.0997505635023117,
0.1379033327102661,
0.010600466281175613,
0.178500235080719,
0.8641586303710938,
-0.1908433735370636,
-0.4217522442340851,
-0.08530361205339432,
0.0879029780626297,
-0.308180034160614,
0.08736097812652588,
-0.4969727098941803,
-0.17892974615097046,
-0.04054275527596474,
0.1543644219636917,
-0.3017125725746155,
-0.03292277455329895,
0.08559876680374146,
0.03904866799712181,
-0.2745322585105896,
-0.19280517101287842,
-0.04141861945390701,
-0.2142159640789032,
0.06561022996902466,
-0.0752989798784256,
0.33553919196128845,
-0.1362084150314331,
0.04287951439619064,
0.24395395815372467,
-0.02081700973212719,
0.32823634147644043,
0.3369992673397064,
-0.19198928773403168,
-0.12645478546619415,
-0.25782880187034607,
0.021680889651179314,
0.07443013787269592,
0.10279131680727005,
0.2146652638912201,
-0.13024896383285522,
0.2761426270008087,
0.11681979894638062,
-0.04687786474823952,
0.13497315347194672,
0.2768830955028534,
0.1607486605644226,
0.09730978310108185,
-0.08710483461618423,
-0.19492168724536896,
-0.24817898869514465,
-0.06770182400941849,
-0.12639284133911133,
0.033832818269729614,
-0.12264172732830048,
-0.15556812286376953,
0.5012952089309692,
0.11771140247583389,
-0.06306402385234833,
0.08504264056682587,
0.1083316057920456,
0.5546956062316895,
0.2226146012544632,
-0.361512154340744,
-0.09784542769193649,
-0.2026807963848114,
-0.29057472944259644,
0.24300605058670044,
-0.044859495013952255,
0.07140392810106277,
0.3016992509365082,
0.4403110146522522,
-0.14588326215744019,
0.28476759791374207,
-0.23703400790691376,
-0.04820338264107704,
0.004493688233196735,
0.2456323355436325,
-0.42911073565483093,
0.17971736192703247,
0.05664897710084915,
0.1454114019870758,
-0.10592090338468552,
-0.13402114808559418,
0.2665151357650757,
-0.2023611068725586,
-0.0858607143163681,
0.03506963700056076,
-0.4277082681655884,
-0.02069135755300522,
0.042479585856199265,
0.27019670605659485,
-0.08202481269836426,
0.3326264023780823,
0.1676800549030304,
-0.37415000796318054,
-0.41678276658058167,
-0.4191497266292572,
-0.17610271275043488,
0.15577080845832825,
-0.12762439250946045,
0.4238356351852417,
-0.027194300666451454,
0.20401477813720703,
-0.31492337584495544,
-0.0030217301100492477,
-0.35879629850387573,
0.3453439176082611,
-0.31750527024269104,
0.08617488294839859,
0.08611250668764114,
0.1618039458990097,
0.008850417099893093,
0.3273947238922119,
-0.07747568190097809,
0.24947838485240936,
-0.5126644968986511,
-0.2689235508441925,
0.4422730505466461,
-0.6223298907279968,
-0.20025958120822906,
0.06876694411039352,
0.08116370439529419,
0.19811078906059265,
0.003574419766664505,
-0.27756616473197937,
-0.0704602599143982,
0.16162091493606567,
-0.17459359765052795,
-0.2950669527053833,
-0.1357094794511795,
-0.26254400610923767,
-0.2551769018173218,
-0.07695801556110382,
-0.35992708802223206,
0.1837785840034485,
-0.04530906677246094,
-0.2211911529302597,
-0.2330324947834015
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | Yes, deleting the directory solves the error whenever I try to rerun.
By replacing the json-loader, you mean the cached file in my `site-packages` directory? e.g. `/home/XXX/.cache/lib/python3.7/site-packages/nlp/datasets/json/(...)/json.py`
When I was testing this out before the #372 PR was merged I had issues installing it properly locally. Since the `json.py` script was downloaded instead of actually using the one provided in the local install. Manually updating that file seemed to solve it, but it didn't seem like a proper solution. Especially when having to run this on a remote compute cluster with no access to that directory. | The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 96 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
Yes, deleting the directory solves the error whenever I try to rerun.
By replacing the json-loader, you mean the cached file in my `site-packages` directory? e.g. `/home/XXX/.cache/lib/python3.7/site-packages/nlp/datasets/json/(...)/json.py`
When I was testing this out before the #372 PR was merged I had issues installing it properly locally. Since the `json.py` script was downloaded instead of actually using the one provided in the local install. Manually updating that file seemed to solve it, but it didn't seem like a proper solution. Especially when having to run this on a remote compute cluster with no access to that directory. | [
-0.017292935401201248,
0.2893960773944855,
0.060941580682992935,
0.05787109583616257,
0.22360926866531372,
-0.01654874160885811,
0.3200390636920929,
0.6101843118667603,
-0.40100938081741333,
-0.21304382383823395,
-0.24225422739982605,
0.7714078426361084,
0.13278746604919434,
-0.42659613490104675,
0.148922860622406,
-0.07152826339006424,
0.04622578248381615,
0.1267290562391281,
0.22394028306007385,
0.05367039889097214,
-0.17444954812526703,
0.3416517674922943,
-0.22996830940246582,
0.13204163312911987,
-0.1667519062757492,
0.2660640776157379,
0.006536075845360756,
0.5419238209724426,
-0.07457146048545837,
-0.7302019000053406,
0.29777756333351135,
-0.00932963564991951,
0.15174531936645508,
0.34502479434013367,
-0.00011861127859447151,
0.18453164398670197,
0.3318486213684082,
-0.10963694006204605,
-0.35170140862464905,
0.052129171788692474,
0.28050345182418823,
-0.24146446585655212,
0.3380259573459625,
-0.14538398385047913,
0.0627315416932106,
-0.31198063492774963,
0.0318320170044899,
0.08127447962760925,
0.6866550445556641,
0.15539707243442535,
0.09210093319416046,
0.1377255618572235,
0.07380697131156921,
0.05236603319644928,
0.02077595517039299,
0.06787747889757156,
0.016604134812951088,
0.7200930714607239,
0.5202919244766235,
-0.1260118931531906,
-0.33889901638031006,
-0.07208496332168579,
0.12127216160297394,
-0.03826923295855522,
0.20485687255859375,
-0.06355605274438858,
-0.01384805142879486,
-0.18327093124389648,
0.052465278655290604,
0.11702004075050354,
0.24164614081382751,
-0.23805928230285645,
-0.23284828662872314,
-0.21574902534484863,
0.07478656619787216,
-0.2181091457605362,
0.3773205578327179,
0.277229368686676,
-0.13986001908779144,
0.15234270691871643,
-0.05699673667550087,
0.03446023911237717,
-0.19189298152923584,
0.029310330748558044,
-0.21427331864833832,
0.5192531943321228,
0.12151210010051727,
0.0416845977306366,
0.10512389242649078,
-0.1629461795091629,
-0.1519256830215454,
0.31723931431770325,
-0.26252880692481995,
0.3998278081417084,
-0.3908270001411438,
-0.16861698031425476,
0.11205319315195084,
-0.362652063369751,
0.21630483865737915,
0.09017674624919891,
0.1800878643989563,
0.16720515489578247,
0.21391238272190094,
0.12037011981010437,
0.4853104054927826,
0.054677899926900864,
0.17183536291122437,
0.20253196358680725,
0.15263167023658752,
-0.019629038870334625,
-0.025974441319704056,
0.23977527022361755,
-0.1398816853761673,
-0.2250078022480011,
-0.2135155349969864,
0.02806801348924637,
-0.0268214363604784,
-0.10946649312973022,
0.014883609488606453,
0.06951820850372314,
-0.31477054953575134,
-0.012025943025946617,
0.050985340029001236,
0.08486197888851166,
0.1312861442565918,
0.1926075518131256,
-0.25002795457839966,
0.20476096868515015,
-0.1014544740319252,
-0.17269505560398102,
-0.017575176432728767,
-0.026820369064807892,
-0.30665647983551025,
-0.020666083320975304,
0.4054732322692871,
-0.12256057560443878,
0.11852153390645981,
-0.08125002682209015,
-0.11161546409130096,
-0.22692301869392395,
-0.43347233533859253,
-0.043898019939661026,
0.00766715407371521,
0.1496744304895401,
0.03168030455708504,
-0.07048674672842026,
-0.036723341792821884,
-0.25811031460762024,
-0.1803210973739624,
0.21218934655189514,
-0.35118767619132996,
-0.2851627767086029,
-0.5924198031425476,
0.11839122325181961,
-0.3227139115333557,
-0.005309060215950012,
0.144400954246521,
0.2050791084766388,
0.056660085916519165,
-0.45432591438293457,
-0.1377899944782257,
-0.0893591046333313,
-0.003153182566165924,
-0.22954262793064117,
0.14668314158916473,
0.2523782253265381,
-0.8450281023979187,
-0.2359812706708908,
0.16683757305145264,
-0.0015069693326950073,
0.0830981433391571,
0.5275307893753052,
-0.35141846537590027,
0.2732038199901581,
-0.15309779345989227,
0.5261086225509644,
0.4013669490814209,
-0.27797797322273254,
-0.33690890669822693,
0.24279099702835083,
-0.3994483947753906,
-0.04135706275701523,
-0.2372668981552124,
-0.06557163596153259,
0.2967044711112976,
0.0823332741856575,
0.3412531316280365,
0.4493858814239502,
-0.1155514121055603,
0.14832478761672974,
-0.33256494998931885,
-0.08049905300140381,
0.17264264822006226,
0.36013996601104736,
-0.06741523742675781,
-0.16082435846328735,
-0.02985893189907074,
0.14493077993392944,
0.4040018916130066,
-0.17193202674388885,
-0.020753830671310425,
0.16067291796207428,
0.137290358543396,
-0.017320290207862854,
0.16614244878292084,
-0.10807956010103226,
-0.7758411169052124,
0.1020512804389,
-0.2894934415817261,
0.08079374581575394,
-0.04113234579563141,
0.006053276360034943,
-0.2767830193042755,
-0.11359872668981552,
-0.20613180100917816,
-0.05402376130223274,
0.03211724013090134,
-0.1604943573474884,
-0.034858908504247665,
-0.06829656660556793,
-0.4652935564517975,
-0.15678612887859344,
-0.15475744009017944,
0.3780496120452881,
-0.11537927389144897,
0.4039316177368164,
-0.13026511669158936,
-0.40083321928977966,
0.09279197454452515,
0.36722642183303833,
0.12826183438301086,
-0.26726216077804565,
-0.00681593082845211,
0.3295678496360779,
-0.08044763654470444,
0.13387416303157806,
-0.17082291841506958,
-0.2979549169540405,
0.24760888516902924,
-0.08576124906539917,
-0.12928541004657745,
-0.06358087062835693,
-0.1022326722741127,
-0.08836463838815689,
-0.3246677815914154,
0.33626747131347656,
0.01972571760416031,
-0.03263632208108902,
-0.056773532181978226,
-0.24713614583015442,
0.2981208562850952,
-0.08481107652187347,
-0.12740351259708405,
-0.0282973051071167,
0.017285965383052826,
0.1671067476272583,
-0.01249563880264759,
0.1766582727432251,
-0.1765212118625641,
-0.014475196599960327,
0.3694947063922882,
-0.0651182159781456,
0.035570599138736725,
0.18731805682182312,
0.10087145119905472,
-0.2918992340564728,
-0.024752849712967873,
-0.04872118681669235,
0.3634803891181946,
-0.007697261869907379,
-0.15589140355587006,
-0.003915304318070412,
0.03366772457957268,
-0.018401337787508965,
-0.011545412242412567,
0.04824555665254593,
0.4226096272468567,
0.5049405097961426,
0.3639856278896332,
0.16840191185474396,
-0.2733657956123352,
-0.15487241744995117,
0.1276227831840515,
0.05630408972501755,
-0.3743777871131897,
0.06021815538406372,
-0.2678273618221283,
-0.14459271728992462,
-0.293088436126709,
-0.14269036054611206,
-0.3419746160507202,
-0.1941552609205246,
0.10888779163360596,
-0.03826295956969261,
-0.08678235113620758,
0.20050588250160217,
0.16654638946056366,
0.4000794291496277,
0.10027797520160675,
-0.18636764585971832,
0.038145892322063446,
-0.17725814878940582,
-0.2182420790195465,
-0.04536733031272888,
0.37832245230674744,
-0.0644291341304779,
-0.20677797496318817,
-0.18944235146045685,
-0.27097535133361816,
0.10979176312685013,
-0.4360974133014679,
0.16802868247032166,
-0.009155366569757462,
0.19459065794944763,
0.022265620529651642,
0.23686353862285614,
-0.147968128323555,
-0.36693522334098816,
0.28148242831230164,
-0.04621180519461632,
-0.2511284351348877,
0.00040096603333950043,
-0.10349632054567337,
0.13379180431365967,
-0.2878111004829407,
-0.3897343575954437,
-0.2453109472990036,
-0.227113276720047,
0.4359026551246643,
0.07529547810554504,
0.13726647198200226,
0.2004077136516571,
-0.20206838846206665,
0.01474254485219717,
-0.23706023395061493,
-0.21109458804130554,
0.04947827011346817,
-0.1857472062110901,
0.20523396134376526,
-0.2988071143627167,
-0.1417258232831955,
-0.021901685744524002,
0.09425181150436401,
0.16700530052185059,
-0.2243582159280777,
-0.16041654348373413,
0.1161191388964653,
0.17135782539844513,
0.24600833654403687,
-0.3234412968158722,
-0.2597641944885254,
0.2524788975715637,
-0.2297290712594986,
0.052428387105464935,
0.19720995426177979,
-0.36020925641059875,
-0.09371232241392136,
0.5185642242431641,
0.19824960827827454,
-0.26570558547973633,
0.2363279163837433,
0.05972133204340935,
0.8267533183097839,
-0.13744008541107178,
-0.16253790259361267,
0.12583282589912415,
0.03038007579743862,
0.12194845080375671,
-0.14891257882118225,
-0.035248931497335434,
0.3921872675418854,
-0.03979837894439697,
-0.11294013261795044,
0.24759550392627716,
0.16245195269584656,
-0.5424820184707642,
-0.005967728793621063,
0.15809737145900726,
-0.5473142862319946,
-0.16832345724105835,
0.2632967531681061,
0.555120587348938,
-0.08508653193712234,
-0.04293389245867729,
0.029451429843902588,
0.002924814820289612,
-0.23155075311660767,
-0.05983665958046913,
0.22425155341625214,
0.27071303129196167,
0.0932336077094078,
-0.5434249043464661,
-0.3422016501426697,
-0.04475945979356766,
-0.020403414964675903,
0.12437023967504501,
0.46455663442611694,
-0.0012723878026008606,
-0.20624318718910217,
0.027220875024795532,
-0.2641845643520355,
0.3476611375808716,
0.26207470893859863,
0.35182780027389526,
0.3491414189338684,
0.32933080196380615,
-0.07430104911327362,
-0.3046778440475464,
0.14519022405147552,
0.47711288928985596,
0.6556545495986938,
0.4198318123817444,
-0.10166966170072556,
-0.13171114027500153,
0.28487417101860046,
0.08596163243055344,
-0.14478135108947754,
-0.07338382303714752,
-0.22651486098766327,
-0.07947787642478943,
0.003026111051440239,
0.03935079276561737,
-0.041760798543691635,
0.39739441871643066,
0.06032101809978485,
0.1337607502937317,
0.42367687821388245,
-0.2695534825325012,
-0.24267567694187164,
0.3894134759902954,
0.10912413150072098,
0.07678131759166718,
0.04680414870381355,
0.2670256495475769,
-0.0012025795876979828,
0.3386416733264923,
0.4461457431316376,
0.2894243597984314,
-0.20294621586799622,
0.2748577892780304,
-0.006987389642745256,
0.22130072116851807,
0.46919623017311096,
0.20125867426395416,
-0.18309062719345093,
-0.14047062397003174,
-0.12718693912029266,
0.023022837936878204,
-0.4001844525337219,
0.13784129917621613,
-0.307553768157959,
-0.22677819430828094,
0.2155749648809433,
0.20091675221920013,
-0.09558314085006714,
-0.06338608264923096,
-0.02899754047393799,
-0.06045711040496826,
-0.015704549849033356,
0.5079237222671509,
0.16421635448932648,
0.7734215259552002,
-0.04519962519407272,
0.10620619356632233,
0.2713398337364197,
-0.11777021735906601,
0.40123337507247925,
-0.6511290073394775,
0.36042606830596924,
-0.43772202730178833,
0.26961836218833923,
0.12142503261566162,
-0.12912026047706604,
0.16803914308547974,
0.18424205482006073,
0.00671980157494545,
-0.054778214544057846,
-0.14762499928474426,
0.2945111095905304,
-0.02576306276023388,
0.33889755606651306,
0.17994776368141174,
-0.30595386028289795,
-0.5036044120788574,
0.060792066156864166,
-0.37010788917541504,
0.03455856069922447,
-0.1490776538848877,
-0.16940253973007202,
-0.08521300554275513,
-0.12656302750110626,
-0.2838006317615509,
0.27698490023612976,
0.12989217042922974,
0.014315811917185783,
0.5128051042556763,
-0.2600136399269104,
0.15981611609458923,
0.3644203245639801,
-0.150142639875412,
0.053529031574726105,
-0.002931840717792511,
0.36155277490615845,
-0.12342961877584457,
0.1117699071764946,
0.22975914180278778,
0.019883856177330017,
0.2879815995693207,
-0.16016104817390442,
-0.04068177193403244,
-0.050391197204589844,
-0.07457561790943146,
-0.27969449758529663,
-0.06919239461421967,
0.39419376850128174,
0.13750892877578735,
-0.1656411737203598,
0.012916380539536476,
-0.12453880906105042,
0.12291926145553589,
-0.049302034080028534,
0.05420312657952309,
0.01064547523856163,
-0.14916297793388367,
-0.027174033224582672,
0.15864507853984833,
-0.06981586664915085,
0.08643671870231628,
0.608910858631134,
-0.10844961553812027,
-0.3196195662021637,
0.30646252632141113,
0.30267563462257385,
0.005280476063489914,
-0.22048041224479675,
0.2212643325328827,
0.05046805366873741,
-0.3886027932167053,
-0.1376264989376068,
-0.19892218708992004,
-0.0684240534901619,
0.03468042239546776,
0.10222826153039932,
0.21728578209877014,
-0.10179037600755692,
0.0036830008029937744,
-0.5508980751037598,
-0.30310967564582825,
0.19118639826774597,
-0.07676942646503448,
-0.18136955797672272,
0.11923191696405411,
0.3389422595500946,
0.015513172373175621,
0.2547386586666107,
-0.20348533987998962,
0.32593321800231934,
-0.37330880761146545,
0.14416098594665527,
-0.563596248626709,
-0.2371910810470581,
-0.003535565687343478,
-0.23051342368125916,
0.018074387684464455,
0.24548952281475067,
0.07344727218151093,
-0.10744056850671768,
-0.015552161261439323,
0.15939371287822723,
0.1383395791053772,
-0.0180854182690382,
-0.16946640610694885,
-0.00020727328956127167,
0.10750927031040192,
0.17355968058109283,
0.10350057482719421,
-0.1377708911895752,
0.14676421880722046,
0.1609334498643875,
0.29537999629974365,
0.10649140179157257,
0.19602839648723602,
0.09358853846788406,
0.029574118554592133,
0.39053821563720703,
0.058881644159555435,
0.2412940412759781,
-0.20396076142787933,
0.03343268483877182,
-0.3554684817790985,
0.18905995786190033,
0.01001390814781189,
0.28048333525657654,
0.08382789045572281,
-0.5798283815383911,
-0.05440349131822586,
-0.07205303013324738,
0.3013576865196228,
0.5721238255500793,
-0.36651474237442017,
0.11240676045417786,
0.18876996636390686,
0.10417407751083374,
-0.009935840964317322,
-0.25940877199172974,
0.7478204965591431,
-0.035664379596710205,
-0.3024628460407257,
0.01803499460220337,
0.14284679293632507,
-0.09839732199907303,
0.13151915371418,
0.13897210359573364,
0.5670433640480042,
0.19193539023399353,
0.19833457469940186,
0.21702063083648682,
-0.22543442249298096,
-0.02375100925564766,
0.13978669047355652,
-0.07900013029575348,
0.18169553577899933,
0.25413215160369873,
-0.19390419125556946,
0.06331808865070343,
0.11781709641218185,
0.10370814055204391,
0.23295000195503235,
-0.3413435220718384,
-0.35574883222579956,
0.0997505635023117,
0.1379033327102661,
0.010600466281175613,
0.178500235080719,
0.8641586303710938,
-0.1908433735370636,
-0.4217522442340851,
-0.08530361205339432,
0.0879029780626297,
-0.308180034160614,
0.08736097812652588,
-0.4969727098941803,
-0.17892974615097046,
-0.04054275527596474,
0.1543644219636917,
-0.3017125725746155,
-0.03292277455329895,
0.08559876680374146,
0.03904866799712181,
-0.2745322585105896,
-0.19280517101287842,
-0.04141861945390701,
-0.2142159640789032,
0.06561022996902466,
-0.0752989798784256,
0.33553919196128845,
-0.1362084150314331,
0.04287951439619064,
0.24395395815372467,
-0.02081700973212719,
0.32823634147644043,
0.3369992673397064,
-0.19198928773403168,
-0.12645478546619415,
-0.25782880187034607,
0.021680889651179314,
0.07443013787269592,
0.10279131680727005,
0.2146652638912201,
-0.13024896383285522,
0.2761426270008087,
0.11681979894638062,
-0.04687786474823952,
0.13497315347194672,
0.2768830955028534,
0.1607486605644226,
0.09730978310108185,
-0.08710483461618423,
-0.19492168724536896,
-0.24817898869514465,
-0.06770182400941849,
-0.12639284133911133,
0.033832818269729614,
-0.12264172732830048,
-0.15556812286376953,
0.5012952089309692,
0.11771140247583389,
-0.06306402385234833,
0.08504264056682587,
0.1083316057920456,
0.5546956062316895,
0.2226146012544632,
-0.361512154340744,
-0.09784542769193649,
-0.2026807963848114,
-0.29057472944259644,
0.24300605058670044,
-0.044859495013952255,
0.07140392810106277,
0.3016992509365082,
0.4403110146522522,
-0.14588326215744019,
0.28476759791374207,
-0.23703400790691376,
-0.04820338264107704,
0.004493688233196735,
0.2456323355436325,
-0.42911073565483093,
0.17971736192703247,
0.05664897710084915,
0.1454114019870758,
-0.10592090338468552,
-0.13402114808559418,
0.2665151357650757,
-0.2023611068725586,
-0.0858607143163681,
0.03506963700056076,
-0.4277082681655884,
-0.02069135755300522,
0.042479585856199265,
0.27019670605659485,
-0.08202481269836426,
0.3326264023780823,
0.1676800549030304,
-0.37415000796318054,
-0.41678276658058167,
-0.4191497266292572,
-0.17610271275043488,
0.15577080845832825,
-0.12762439250946045,
0.4238356351852417,
-0.027194300666451454,
0.20401477813720703,
-0.31492337584495544,
-0.0030217301100492477,
-0.35879629850387573,
0.3453439176082611,
-0.31750527024269104,
0.08617488294839859,
0.08611250668764114,
0.1618039458990097,
0.008850417099893093,
0.3273947238922119,
-0.07747568190097809,
0.24947838485240936,
-0.5126644968986511,
-0.2689235508441925,
0.4422730505466461,
-0.6223298907279968,
-0.20025958120822906,
0.06876694411039352,
0.08116370439529419,
0.19811078906059265,
0.003574419766664505,
-0.27756616473197937,
-0.0704602599143982,
0.16162091493606567,
-0.17459359765052795,
-0.2950669527053833,
-0.1357094794511795,
-0.26254400610923767,
-0.2551769018173218,
-0.07695801556110382,
-0.35992708802223206,
0.1837785840034485,
-0.04530906677246094,
-0.2211911529302597,
-0.2330324947834015
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | I see, diving in the JSON file for SQuAD it's a pretty complex structure.
The best solution for you, if you have a dataset really similar to SQuAD would be to copy and modify the SQuAD data processing script. We will probably add soon an option to be able to specify file path to use instead of the automatic URL encoded in the script but in the meantime you can:
- copy the [squad script](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py) in a new script for your dataset
- in the new script replace [these `urls_to_download `](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py#L99-L102) by `urls_to_download=self.config.data_files`
- load the dataset with `dataset = load_dataset('path/to/your/new/script', data_files={nlp.Split.TRAIN: "./datasets/train-v2.0.json"})`
This way you can reuse all the processing logic of the SQuAD loading script. | The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 117 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
I see, diving in the JSON file for SQuAD it's a pretty complex structure.
The best solution for you, if you have a dataset really similar to SQuAD would be to copy and modify the SQuAD data processing script. We will probably add soon an option to be able to specify file path to use instead of the automatic URL encoded in the script but in the meantime you can:
- copy the [squad script](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py) in a new script for your dataset
- in the new script replace [these `urls_to_download `](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py#L99-L102) by `urls_to_download=self.config.data_files`
- load the dataset with `dataset = load_dataset('path/to/your/new/script', data_files={nlp.Split.TRAIN: "./datasets/train-v2.0.json"})`
This way you can reuse all the processing logic of the SQuAD loading script. | [
-0.017292935401201248,
0.2893960773944855,
0.060941580682992935,
0.05787109583616257,
0.22360926866531372,
-0.01654874160885811,
0.3200390636920929,
0.6101843118667603,
-0.40100938081741333,
-0.21304382383823395,
-0.24225422739982605,
0.7714078426361084,
0.13278746604919434,
-0.42659613490104675,
0.148922860622406,
-0.07152826339006424,
0.04622578248381615,
0.1267290562391281,
0.22394028306007385,
0.05367039889097214,
-0.17444954812526703,
0.3416517674922943,
-0.22996830940246582,
0.13204163312911987,
-0.1667519062757492,
0.2660640776157379,
0.006536075845360756,
0.5419238209724426,
-0.07457146048545837,
-0.7302019000053406,
0.29777756333351135,
-0.00932963564991951,
0.15174531936645508,
0.34502479434013367,
-0.00011861127859447151,
0.18453164398670197,
0.3318486213684082,
-0.10963694006204605,
-0.35170140862464905,
0.052129171788692474,
0.28050345182418823,
-0.24146446585655212,
0.3380259573459625,
-0.14538398385047913,
0.0627315416932106,
-0.31198063492774963,
0.0318320170044899,
0.08127447962760925,
0.6866550445556641,
0.15539707243442535,
0.09210093319416046,
0.1377255618572235,
0.07380697131156921,
0.05236603319644928,
0.02077595517039299,
0.06787747889757156,
0.016604134812951088,
0.7200930714607239,
0.5202919244766235,
-0.1260118931531906,
-0.33889901638031006,
-0.07208496332168579,
0.12127216160297394,
-0.03826923295855522,
0.20485687255859375,
-0.06355605274438858,
-0.01384805142879486,
-0.18327093124389648,
0.052465278655290604,
0.11702004075050354,
0.24164614081382751,
-0.23805928230285645,
-0.23284828662872314,
-0.21574902534484863,
0.07478656619787216,
-0.2181091457605362,
0.3773205578327179,
0.277229368686676,
-0.13986001908779144,
0.15234270691871643,
-0.05699673667550087,
0.03446023911237717,
-0.19189298152923584,
0.029310330748558044,
-0.21427331864833832,
0.5192531943321228,
0.12151210010051727,
0.0416845977306366,
0.10512389242649078,
-0.1629461795091629,
-0.1519256830215454,
0.31723931431770325,
-0.26252880692481995,
0.3998278081417084,
-0.3908270001411438,
-0.16861698031425476,
0.11205319315195084,
-0.362652063369751,
0.21630483865737915,
0.09017674624919891,
0.1800878643989563,
0.16720515489578247,
0.21391238272190094,
0.12037011981010437,
0.4853104054927826,
0.054677899926900864,
0.17183536291122437,
0.20253196358680725,
0.15263167023658752,
-0.019629038870334625,
-0.025974441319704056,
0.23977527022361755,
-0.1398816853761673,
-0.2250078022480011,
-0.2135155349969864,
0.02806801348924637,
-0.0268214363604784,
-0.10946649312973022,
0.014883609488606453,
0.06951820850372314,
-0.31477054953575134,
-0.012025943025946617,
0.050985340029001236,
0.08486197888851166,
0.1312861442565918,
0.1926075518131256,
-0.25002795457839966,
0.20476096868515015,
-0.1014544740319252,
-0.17269505560398102,
-0.017575176432728767,
-0.026820369064807892,
-0.30665647983551025,
-0.020666083320975304,
0.4054732322692871,
-0.12256057560443878,
0.11852153390645981,
-0.08125002682209015,
-0.11161546409130096,
-0.22692301869392395,
-0.43347233533859253,
-0.043898019939661026,
0.00766715407371521,
0.1496744304895401,
0.03168030455708504,
-0.07048674672842026,
-0.036723341792821884,
-0.25811031460762024,
-0.1803210973739624,
0.21218934655189514,
-0.35118767619132996,
-0.2851627767086029,
-0.5924198031425476,
0.11839122325181961,
-0.3227139115333557,
-0.005309060215950012,
0.144400954246521,
0.2050791084766388,
0.056660085916519165,
-0.45432591438293457,
-0.1377899944782257,
-0.0893591046333313,
-0.003153182566165924,
-0.22954262793064117,
0.14668314158916473,
0.2523782253265381,
-0.8450281023979187,
-0.2359812706708908,
0.16683757305145264,
-0.0015069693326950073,
0.0830981433391571,
0.5275307893753052,
-0.35141846537590027,
0.2732038199901581,
-0.15309779345989227,
0.5261086225509644,
0.4013669490814209,
-0.27797797322273254,
-0.33690890669822693,
0.24279099702835083,
-0.3994483947753906,
-0.04135706275701523,
-0.2372668981552124,
-0.06557163596153259,
0.2967044711112976,
0.0823332741856575,
0.3412531316280365,
0.4493858814239502,
-0.1155514121055603,
0.14832478761672974,
-0.33256494998931885,
-0.08049905300140381,
0.17264264822006226,
0.36013996601104736,
-0.06741523742675781,
-0.16082435846328735,
-0.02985893189907074,
0.14493077993392944,
0.4040018916130066,
-0.17193202674388885,
-0.020753830671310425,
0.16067291796207428,
0.137290358543396,
-0.017320290207862854,
0.16614244878292084,
-0.10807956010103226,
-0.7758411169052124,
0.1020512804389,
-0.2894934415817261,
0.08079374581575394,
-0.04113234579563141,
0.006053276360034943,
-0.2767830193042755,
-0.11359872668981552,
-0.20613180100917816,
-0.05402376130223274,
0.03211724013090134,
-0.1604943573474884,
-0.034858908504247665,
-0.06829656660556793,
-0.4652935564517975,
-0.15678612887859344,
-0.15475744009017944,
0.3780496120452881,
-0.11537927389144897,
0.4039316177368164,
-0.13026511669158936,
-0.40083321928977966,
0.09279197454452515,
0.36722642183303833,
0.12826183438301086,
-0.26726216077804565,
-0.00681593082845211,
0.3295678496360779,
-0.08044763654470444,
0.13387416303157806,
-0.17082291841506958,
-0.2979549169540405,
0.24760888516902924,
-0.08576124906539917,
-0.12928541004657745,
-0.06358087062835693,
-0.1022326722741127,
-0.08836463838815689,
-0.3246677815914154,
0.33626747131347656,
0.01972571760416031,
-0.03263632208108902,
-0.056773532181978226,
-0.24713614583015442,
0.2981208562850952,
-0.08481107652187347,
-0.12740351259708405,
-0.0282973051071167,
0.017285965383052826,
0.1671067476272583,
-0.01249563880264759,
0.1766582727432251,
-0.1765212118625641,
-0.014475196599960327,
0.3694947063922882,
-0.0651182159781456,
0.035570599138736725,
0.18731805682182312,
0.10087145119905472,
-0.2918992340564728,
-0.024752849712967873,
-0.04872118681669235,
0.3634803891181946,
-0.007697261869907379,
-0.15589140355587006,
-0.003915304318070412,
0.03366772457957268,
-0.018401337787508965,
-0.011545412242412567,
0.04824555665254593,
0.4226096272468567,
0.5049405097961426,
0.3639856278896332,
0.16840191185474396,
-0.2733657956123352,
-0.15487241744995117,
0.1276227831840515,
0.05630408972501755,
-0.3743777871131897,
0.06021815538406372,
-0.2678273618221283,
-0.14459271728992462,
-0.293088436126709,
-0.14269036054611206,
-0.3419746160507202,
-0.1941552609205246,
0.10888779163360596,
-0.03826295956969261,
-0.08678235113620758,
0.20050588250160217,
0.16654638946056366,
0.4000794291496277,
0.10027797520160675,
-0.18636764585971832,
0.038145892322063446,
-0.17725814878940582,
-0.2182420790195465,
-0.04536733031272888,
0.37832245230674744,
-0.0644291341304779,
-0.20677797496318817,
-0.18944235146045685,
-0.27097535133361816,
0.10979176312685013,
-0.4360974133014679,
0.16802868247032166,
-0.009155366569757462,
0.19459065794944763,
0.022265620529651642,
0.23686353862285614,
-0.147968128323555,
-0.36693522334098816,
0.28148242831230164,
-0.04621180519461632,
-0.2511284351348877,
0.00040096603333950043,
-0.10349632054567337,
0.13379180431365967,
-0.2878111004829407,
-0.3897343575954437,
-0.2453109472990036,
-0.227113276720047,
0.4359026551246643,
0.07529547810554504,
0.13726647198200226,
0.2004077136516571,
-0.20206838846206665,
0.01474254485219717,
-0.23706023395061493,
-0.21109458804130554,
0.04947827011346817,
-0.1857472062110901,
0.20523396134376526,
-0.2988071143627167,
-0.1417258232831955,
-0.021901685744524002,
0.09425181150436401,
0.16700530052185059,
-0.2243582159280777,
-0.16041654348373413,
0.1161191388964653,
0.17135782539844513,
0.24600833654403687,
-0.3234412968158722,
-0.2597641944885254,
0.2524788975715637,
-0.2297290712594986,
0.052428387105464935,
0.19720995426177979,
-0.36020925641059875,
-0.09371232241392136,
0.5185642242431641,
0.19824960827827454,
-0.26570558547973633,
0.2363279163837433,
0.05972133204340935,
0.8267533183097839,
-0.13744008541107178,
-0.16253790259361267,
0.12583282589912415,
0.03038007579743862,
0.12194845080375671,
-0.14891257882118225,
-0.035248931497335434,
0.3921872675418854,
-0.03979837894439697,
-0.11294013261795044,
0.24759550392627716,
0.16245195269584656,
-0.5424820184707642,
-0.005967728793621063,
0.15809737145900726,
-0.5473142862319946,
-0.16832345724105835,
0.2632967531681061,
0.555120587348938,
-0.08508653193712234,
-0.04293389245867729,
0.029451429843902588,
0.002924814820289612,
-0.23155075311660767,
-0.05983665958046913,
0.22425155341625214,
0.27071303129196167,
0.0932336077094078,
-0.5434249043464661,
-0.3422016501426697,
-0.04475945979356766,
-0.020403414964675903,
0.12437023967504501,
0.46455663442611694,
-0.0012723878026008606,
-0.20624318718910217,
0.027220875024795532,
-0.2641845643520355,
0.3476611375808716,
0.26207470893859863,
0.35182780027389526,
0.3491414189338684,
0.32933080196380615,
-0.07430104911327362,
-0.3046778440475464,
0.14519022405147552,
0.47711288928985596,
0.6556545495986938,
0.4198318123817444,
-0.10166966170072556,
-0.13171114027500153,
0.28487417101860046,
0.08596163243055344,
-0.14478135108947754,
-0.07338382303714752,
-0.22651486098766327,
-0.07947787642478943,
0.003026111051440239,
0.03935079276561737,
-0.041760798543691635,
0.39739441871643066,
0.06032101809978485,
0.1337607502937317,
0.42367687821388245,
-0.2695534825325012,
-0.24267567694187164,
0.3894134759902954,
0.10912413150072098,
0.07678131759166718,
0.04680414870381355,
0.2670256495475769,
-0.0012025795876979828,
0.3386416733264923,
0.4461457431316376,
0.2894243597984314,
-0.20294621586799622,
0.2748577892780304,
-0.006987389642745256,
0.22130072116851807,
0.46919623017311096,
0.20125867426395416,
-0.18309062719345093,
-0.14047062397003174,
-0.12718693912029266,
0.023022837936878204,
-0.4001844525337219,
0.13784129917621613,
-0.307553768157959,
-0.22677819430828094,
0.2155749648809433,
0.20091675221920013,
-0.09558314085006714,
-0.06338608264923096,
-0.02899754047393799,
-0.06045711040496826,
-0.015704549849033356,
0.5079237222671509,
0.16421635448932648,
0.7734215259552002,
-0.04519962519407272,
0.10620619356632233,
0.2713398337364197,
-0.11777021735906601,
0.40123337507247925,
-0.6511290073394775,
0.36042606830596924,
-0.43772202730178833,
0.26961836218833923,
0.12142503261566162,
-0.12912026047706604,
0.16803914308547974,
0.18424205482006073,
0.00671980157494545,
-0.054778214544057846,
-0.14762499928474426,
0.2945111095905304,
-0.02576306276023388,
0.33889755606651306,
0.17994776368141174,
-0.30595386028289795,
-0.5036044120788574,
0.060792066156864166,
-0.37010788917541504,
0.03455856069922447,
-0.1490776538848877,
-0.16940253973007202,
-0.08521300554275513,
-0.12656302750110626,
-0.2838006317615509,
0.27698490023612976,
0.12989217042922974,
0.014315811917185783,
0.5128051042556763,
-0.2600136399269104,
0.15981611609458923,
0.3644203245639801,
-0.150142639875412,
0.053529031574726105,
-0.002931840717792511,
0.36155277490615845,
-0.12342961877584457,
0.1117699071764946,
0.22975914180278778,
0.019883856177330017,
0.2879815995693207,
-0.16016104817390442,
-0.04068177193403244,
-0.050391197204589844,
-0.07457561790943146,
-0.27969449758529663,
-0.06919239461421967,
0.39419376850128174,
0.13750892877578735,
-0.1656411737203598,
0.012916380539536476,
-0.12453880906105042,
0.12291926145553589,
-0.049302034080028534,
0.05420312657952309,
0.01064547523856163,
-0.14916297793388367,
-0.027174033224582672,
0.15864507853984833,
-0.06981586664915085,
0.08643671870231628,
0.608910858631134,
-0.10844961553812027,
-0.3196195662021637,
0.30646252632141113,
0.30267563462257385,
0.005280476063489914,
-0.22048041224479675,
0.2212643325328827,
0.05046805366873741,
-0.3886027932167053,
-0.1376264989376068,
-0.19892218708992004,
-0.0684240534901619,
0.03468042239546776,
0.10222826153039932,
0.21728578209877014,
-0.10179037600755692,
0.0036830008029937744,
-0.5508980751037598,
-0.30310967564582825,
0.19118639826774597,
-0.07676942646503448,
-0.18136955797672272,
0.11923191696405411,
0.3389422595500946,
0.015513172373175621,
0.2547386586666107,
-0.20348533987998962,
0.32593321800231934,
-0.37330880761146545,
0.14416098594665527,
-0.563596248626709,
-0.2371910810470581,
-0.003535565687343478,
-0.23051342368125916,
0.018074387684464455,
0.24548952281475067,
0.07344727218151093,
-0.10744056850671768,
-0.015552161261439323,
0.15939371287822723,
0.1383395791053772,
-0.0180854182690382,
-0.16946640610694885,
-0.00020727328956127167,
0.10750927031040192,
0.17355968058109283,
0.10350057482719421,
-0.1377708911895752,
0.14676421880722046,
0.1609334498643875,
0.29537999629974365,
0.10649140179157257,
0.19602839648723602,
0.09358853846788406,
0.029574118554592133,
0.39053821563720703,
0.058881644159555435,
0.2412940412759781,
-0.20396076142787933,
0.03343268483877182,
-0.3554684817790985,
0.18905995786190033,
0.01001390814781189,
0.28048333525657654,
0.08382789045572281,
-0.5798283815383911,
-0.05440349131822586,
-0.07205303013324738,
0.3013576865196228,
0.5721238255500793,
-0.36651474237442017,
0.11240676045417786,
0.18876996636390686,
0.10417407751083374,
-0.009935840964317322,
-0.25940877199172974,
0.7478204965591431,
-0.035664379596710205,
-0.3024628460407257,
0.01803499460220337,
0.14284679293632507,
-0.09839732199907303,
0.13151915371418,
0.13897210359573364,
0.5670433640480042,
0.19193539023399353,
0.19833457469940186,
0.21702063083648682,
-0.22543442249298096,
-0.02375100925564766,
0.13978669047355652,
-0.07900013029575348,
0.18169553577899933,
0.25413215160369873,
-0.19390419125556946,
0.06331808865070343,
0.11781709641218185,
0.10370814055204391,
0.23295000195503235,
-0.3413435220718384,
-0.35574883222579956,
0.0997505635023117,
0.1379033327102661,
0.010600466281175613,
0.178500235080719,
0.8641586303710938,
-0.1908433735370636,
-0.4217522442340851,
-0.08530361205339432,
0.0879029780626297,
-0.308180034160614,
0.08736097812652588,
-0.4969727098941803,
-0.17892974615097046,
-0.04054275527596474,
0.1543644219636917,
-0.3017125725746155,
-0.03292277455329895,
0.08559876680374146,
0.03904866799712181,
-0.2745322585105896,
-0.19280517101287842,
-0.04141861945390701,
-0.2142159640789032,
0.06561022996902466,
-0.0752989798784256,
0.33553919196128845,
-0.1362084150314331,
0.04287951439619064,
0.24395395815372467,
-0.02081700973212719,
0.32823634147644043,
0.3369992673397064,
-0.19198928773403168,
-0.12645478546619415,
-0.25782880187034607,
0.021680889651179314,
0.07443013787269592,
0.10279131680727005,
0.2146652638912201,
-0.13024896383285522,
0.2761426270008087,
0.11681979894638062,
-0.04687786474823952,
0.13497315347194672,
0.2768830955028534,
0.1607486605644226,
0.09730978310108185,
-0.08710483461618423,
-0.19492168724536896,
-0.24817898869514465,
-0.06770182400941849,
-0.12639284133911133,
0.033832818269729614,
-0.12264172732830048,
-0.15556812286376953,
0.5012952089309692,
0.11771140247583389,
-0.06306402385234833,
0.08504264056682587,
0.1083316057920456,
0.5546956062316895,
0.2226146012544632,
-0.361512154340744,
-0.09784542769193649,
-0.2026807963848114,
-0.29057472944259644,
0.24300605058670044,
-0.044859495013952255,
0.07140392810106277,
0.3016992509365082,
0.4403110146522522,
-0.14588326215744019,
0.28476759791374207,
-0.23703400790691376,
-0.04820338264107704,
0.004493688233196735,
0.2456323355436325,
-0.42911073565483093,
0.17971736192703247,
0.05664897710084915,
0.1454114019870758,
-0.10592090338468552,
-0.13402114808559418,
0.2665151357650757,
-0.2023611068725586,
-0.0858607143163681,
0.03506963700056076,
-0.4277082681655884,
-0.02069135755300522,
0.042479585856199265,
0.27019670605659485,
-0.08202481269836426,
0.3326264023780823,
0.1676800549030304,
-0.37415000796318054,
-0.41678276658058167,
-0.4191497266292572,
-0.17610271275043488,
0.15577080845832825,
-0.12762439250946045,
0.4238356351852417,
-0.027194300666451454,
0.20401477813720703,
-0.31492337584495544,
-0.0030217301100492477,
-0.35879629850387573,
0.3453439176082611,
-0.31750527024269104,
0.08617488294839859,
0.08611250668764114,
0.1618039458990097,
0.008850417099893093,
0.3273947238922119,
-0.07747568190097809,
0.24947838485240936,
-0.5126644968986511,
-0.2689235508441925,
0.4422730505466461,
-0.6223298907279968,
-0.20025958120822906,
0.06876694411039352,
0.08116370439529419,
0.19811078906059265,
0.003574419766664505,
-0.27756616473197937,
-0.0704602599143982,
0.16162091493606567,
-0.17459359765052795,
-0.2950669527053833,
-0.1357094794511795,
-0.26254400610923767,
-0.2551769018173218,
-0.07695801556110382,
-0.35992708802223206,
0.1837785840034485,
-0.04530906677246094,
-0.2211911529302597,
-0.2330324947834015
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | This seems like a more sensible solution! Thanks, @thomwolf. It's been a little daunting to understand what these scripts actually do, due to the level of abstraction and central documentation.
Am I correct in assuming that the `_generate_examples()` function is the actual procedure for how the data is loaded from file? Meaning that essentially with a file containing another format, that is the only function that requires re-implementation? I'm working with a lot of datasets that, due to licensing and privacy, cannot be published. As this library is so neatly integrated with the transformers library and gives easy access to public sets such as SQUAD and increased performance, it is very neat to be able to load my private sets as well. As of now, I have just been working on scripts for translating all my data into the SQUAD-format before using the json script, but I see that it might not be necessary after all. | The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 156 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
This seems like a more sensible solution! Thanks, @thomwolf. It's been a little daunting to understand what these scripts actually do, due to the level of abstraction and central documentation.
Am I correct in assuming that the `_generate_examples()` function is the actual procedure for how the data is loaded from file? Meaning that essentially with a file containing another format, that is the only function that requires re-implementation? I'm working with a lot of datasets that, due to licensing and privacy, cannot be published. As this library is so neatly integrated with the transformers library and gives easy access to public sets such as SQUAD and increased performance, it is very neat to be able to load my private sets as well. As of now, I have just been working on scripts for translating all my data into the SQUAD-format before using the json script, but I see that it might not be necessary after all. | [
-0.017292935401201248,
0.2893960773944855,
0.060941580682992935,
0.05787109583616257,
0.22360926866531372,
-0.01654874160885811,
0.3200390636920929,
0.6101843118667603,
-0.40100938081741333,
-0.21304382383823395,
-0.24225422739982605,
0.7714078426361084,
0.13278746604919434,
-0.42659613490104675,
0.148922860622406,
-0.07152826339006424,
0.04622578248381615,
0.1267290562391281,
0.22394028306007385,
0.05367039889097214,
-0.17444954812526703,
0.3416517674922943,
-0.22996830940246582,
0.13204163312911987,
-0.1667519062757492,
0.2660640776157379,
0.006536075845360756,
0.5419238209724426,
-0.07457146048545837,
-0.7302019000053406,
0.29777756333351135,
-0.00932963564991951,
0.15174531936645508,
0.34502479434013367,
-0.00011861127859447151,
0.18453164398670197,
0.3318486213684082,
-0.10963694006204605,
-0.35170140862464905,
0.052129171788692474,
0.28050345182418823,
-0.24146446585655212,
0.3380259573459625,
-0.14538398385047913,
0.0627315416932106,
-0.31198063492774963,
0.0318320170044899,
0.08127447962760925,
0.6866550445556641,
0.15539707243442535,
0.09210093319416046,
0.1377255618572235,
0.07380697131156921,
0.05236603319644928,
0.02077595517039299,
0.06787747889757156,
0.016604134812951088,
0.7200930714607239,
0.5202919244766235,
-0.1260118931531906,
-0.33889901638031006,
-0.07208496332168579,
0.12127216160297394,
-0.03826923295855522,
0.20485687255859375,
-0.06355605274438858,
-0.01384805142879486,
-0.18327093124389648,
0.052465278655290604,
0.11702004075050354,
0.24164614081382751,
-0.23805928230285645,
-0.23284828662872314,
-0.21574902534484863,
0.07478656619787216,
-0.2181091457605362,
0.3773205578327179,
0.277229368686676,
-0.13986001908779144,
0.15234270691871643,
-0.05699673667550087,
0.03446023911237717,
-0.19189298152923584,
0.029310330748558044,
-0.21427331864833832,
0.5192531943321228,
0.12151210010051727,
0.0416845977306366,
0.10512389242649078,
-0.1629461795091629,
-0.1519256830215454,
0.31723931431770325,
-0.26252880692481995,
0.3998278081417084,
-0.3908270001411438,
-0.16861698031425476,
0.11205319315195084,
-0.362652063369751,
0.21630483865737915,
0.09017674624919891,
0.1800878643989563,
0.16720515489578247,
0.21391238272190094,
0.12037011981010437,
0.4853104054927826,
0.054677899926900864,
0.17183536291122437,
0.20253196358680725,
0.15263167023658752,
-0.019629038870334625,
-0.025974441319704056,
0.23977527022361755,
-0.1398816853761673,
-0.2250078022480011,
-0.2135155349969864,
0.02806801348924637,
-0.0268214363604784,
-0.10946649312973022,
0.014883609488606453,
0.06951820850372314,
-0.31477054953575134,
-0.012025943025946617,
0.050985340029001236,
0.08486197888851166,
0.1312861442565918,
0.1926075518131256,
-0.25002795457839966,
0.20476096868515015,
-0.1014544740319252,
-0.17269505560398102,
-0.017575176432728767,
-0.026820369064807892,
-0.30665647983551025,
-0.020666083320975304,
0.4054732322692871,
-0.12256057560443878,
0.11852153390645981,
-0.08125002682209015,
-0.11161546409130096,
-0.22692301869392395,
-0.43347233533859253,
-0.043898019939661026,
0.00766715407371521,
0.1496744304895401,
0.03168030455708504,
-0.07048674672842026,
-0.036723341792821884,
-0.25811031460762024,
-0.1803210973739624,
0.21218934655189514,
-0.35118767619132996,
-0.2851627767086029,
-0.5924198031425476,
0.11839122325181961,
-0.3227139115333557,
-0.005309060215950012,
0.144400954246521,
0.2050791084766388,
0.056660085916519165,
-0.45432591438293457,
-0.1377899944782257,
-0.0893591046333313,
-0.003153182566165924,
-0.22954262793064117,
0.14668314158916473,
0.2523782253265381,
-0.8450281023979187,
-0.2359812706708908,
0.16683757305145264,
-0.0015069693326950073,
0.0830981433391571,
0.5275307893753052,
-0.35141846537590027,
0.2732038199901581,
-0.15309779345989227,
0.5261086225509644,
0.4013669490814209,
-0.27797797322273254,
-0.33690890669822693,
0.24279099702835083,
-0.3994483947753906,
-0.04135706275701523,
-0.2372668981552124,
-0.06557163596153259,
0.2967044711112976,
0.0823332741856575,
0.3412531316280365,
0.4493858814239502,
-0.1155514121055603,
0.14832478761672974,
-0.33256494998931885,
-0.08049905300140381,
0.17264264822006226,
0.36013996601104736,
-0.06741523742675781,
-0.16082435846328735,
-0.02985893189907074,
0.14493077993392944,
0.4040018916130066,
-0.17193202674388885,
-0.020753830671310425,
0.16067291796207428,
0.137290358543396,
-0.017320290207862854,
0.16614244878292084,
-0.10807956010103226,
-0.7758411169052124,
0.1020512804389,
-0.2894934415817261,
0.08079374581575394,
-0.04113234579563141,
0.006053276360034943,
-0.2767830193042755,
-0.11359872668981552,
-0.20613180100917816,
-0.05402376130223274,
0.03211724013090134,
-0.1604943573474884,
-0.034858908504247665,
-0.06829656660556793,
-0.4652935564517975,
-0.15678612887859344,
-0.15475744009017944,
0.3780496120452881,
-0.11537927389144897,
0.4039316177368164,
-0.13026511669158936,
-0.40083321928977966,
0.09279197454452515,
0.36722642183303833,
0.12826183438301086,
-0.26726216077804565,
-0.00681593082845211,
0.3295678496360779,
-0.08044763654470444,
0.13387416303157806,
-0.17082291841506958,
-0.2979549169540405,
0.24760888516902924,
-0.08576124906539917,
-0.12928541004657745,
-0.06358087062835693,
-0.1022326722741127,
-0.08836463838815689,
-0.3246677815914154,
0.33626747131347656,
0.01972571760416031,
-0.03263632208108902,
-0.056773532181978226,
-0.24713614583015442,
0.2981208562850952,
-0.08481107652187347,
-0.12740351259708405,
-0.0282973051071167,
0.017285965383052826,
0.1671067476272583,
-0.01249563880264759,
0.1766582727432251,
-0.1765212118625641,
-0.014475196599960327,
0.3694947063922882,
-0.0651182159781456,
0.035570599138736725,
0.18731805682182312,
0.10087145119905472,
-0.2918992340564728,
-0.024752849712967873,
-0.04872118681669235,
0.3634803891181946,
-0.007697261869907379,
-0.15589140355587006,
-0.003915304318070412,
0.03366772457957268,
-0.018401337787508965,
-0.011545412242412567,
0.04824555665254593,
0.4226096272468567,
0.5049405097961426,
0.3639856278896332,
0.16840191185474396,
-0.2733657956123352,
-0.15487241744995117,
0.1276227831840515,
0.05630408972501755,
-0.3743777871131897,
0.06021815538406372,
-0.2678273618221283,
-0.14459271728992462,
-0.293088436126709,
-0.14269036054611206,
-0.3419746160507202,
-0.1941552609205246,
0.10888779163360596,
-0.03826295956969261,
-0.08678235113620758,
0.20050588250160217,
0.16654638946056366,
0.4000794291496277,
0.10027797520160675,
-0.18636764585971832,
0.038145892322063446,
-0.17725814878940582,
-0.2182420790195465,
-0.04536733031272888,
0.37832245230674744,
-0.0644291341304779,
-0.20677797496318817,
-0.18944235146045685,
-0.27097535133361816,
0.10979176312685013,
-0.4360974133014679,
0.16802868247032166,
-0.009155366569757462,
0.19459065794944763,
0.022265620529651642,
0.23686353862285614,
-0.147968128323555,
-0.36693522334098816,
0.28148242831230164,
-0.04621180519461632,
-0.2511284351348877,
0.00040096603333950043,
-0.10349632054567337,
0.13379180431365967,
-0.2878111004829407,
-0.3897343575954437,
-0.2453109472990036,
-0.227113276720047,
0.4359026551246643,
0.07529547810554504,
0.13726647198200226,
0.2004077136516571,
-0.20206838846206665,
0.01474254485219717,
-0.23706023395061493,
-0.21109458804130554,
0.04947827011346817,
-0.1857472062110901,
0.20523396134376526,
-0.2988071143627167,
-0.1417258232831955,
-0.021901685744524002,
0.09425181150436401,
0.16700530052185059,
-0.2243582159280777,
-0.16041654348373413,
0.1161191388964653,
0.17135782539844513,
0.24600833654403687,
-0.3234412968158722,
-0.2597641944885254,
0.2524788975715637,
-0.2297290712594986,
0.052428387105464935,
0.19720995426177979,
-0.36020925641059875,
-0.09371232241392136,
0.5185642242431641,
0.19824960827827454,
-0.26570558547973633,
0.2363279163837433,
0.05972133204340935,
0.8267533183097839,
-0.13744008541107178,
-0.16253790259361267,
0.12583282589912415,
0.03038007579743862,
0.12194845080375671,
-0.14891257882118225,
-0.035248931497335434,
0.3921872675418854,
-0.03979837894439697,
-0.11294013261795044,
0.24759550392627716,
0.16245195269584656,
-0.5424820184707642,
-0.005967728793621063,
0.15809737145900726,
-0.5473142862319946,
-0.16832345724105835,
0.2632967531681061,
0.555120587348938,
-0.08508653193712234,
-0.04293389245867729,
0.029451429843902588,
0.002924814820289612,
-0.23155075311660767,
-0.05983665958046913,
0.22425155341625214,
0.27071303129196167,
0.0932336077094078,
-0.5434249043464661,
-0.3422016501426697,
-0.04475945979356766,
-0.020403414964675903,
0.12437023967504501,
0.46455663442611694,
-0.0012723878026008606,
-0.20624318718910217,
0.027220875024795532,
-0.2641845643520355,
0.3476611375808716,
0.26207470893859863,
0.35182780027389526,
0.3491414189338684,
0.32933080196380615,
-0.07430104911327362,
-0.3046778440475464,
0.14519022405147552,
0.47711288928985596,
0.6556545495986938,
0.4198318123817444,
-0.10166966170072556,
-0.13171114027500153,
0.28487417101860046,
0.08596163243055344,
-0.14478135108947754,
-0.07338382303714752,
-0.22651486098766327,
-0.07947787642478943,
0.003026111051440239,
0.03935079276561737,
-0.041760798543691635,
0.39739441871643066,
0.06032101809978485,
0.1337607502937317,
0.42367687821388245,
-0.2695534825325012,
-0.24267567694187164,
0.3894134759902954,
0.10912413150072098,
0.07678131759166718,
0.04680414870381355,
0.2670256495475769,
-0.0012025795876979828,
0.3386416733264923,
0.4461457431316376,
0.2894243597984314,
-0.20294621586799622,
0.2748577892780304,
-0.006987389642745256,
0.22130072116851807,
0.46919623017311096,
0.20125867426395416,
-0.18309062719345093,
-0.14047062397003174,
-0.12718693912029266,
0.023022837936878204,
-0.4001844525337219,
0.13784129917621613,
-0.307553768157959,
-0.22677819430828094,
0.2155749648809433,
0.20091675221920013,
-0.09558314085006714,
-0.06338608264923096,
-0.02899754047393799,
-0.06045711040496826,
-0.015704549849033356,
0.5079237222671509,
0.16421635448932648,
0.7734215259552002,
-0.04519962519407272,
0.10620619356632233,
0.2713398337364197,
-0.11777021735906601,
0.40123337507247925,
-0.6511290073394775,
0.36042606830596924,
-0.43772202730178833,
0.26961836218833923,
0.12142503261566162,
-0.12912026047706604,
0.16803914308547974,
0.18424205482006073,
0.00671980157494545,
-0.054778214544057846,
-0.14762499928474426,
0.2945111095905304,
-0.02576306276023388,
0.33889755606651306,
0.17994776368141174,
-0.30595386028289795,
-0.5036044120788574,
0.060792066156864166,
-0.37010788917541504,
0.03455856069922447,
-0.1490776538848877,
-0.16940253973007202,
-0.08521300554275513,
-0.12656302750110626,
-0.2838006317615509,
0.27698490023612976,
0.12989217042922974,
0.014315811917185783,
0.5128051042556763,
-0.2600136399269104,
0.15981611609458923,
0.3644203245639801,
-0.150142639875412,
0.053529031574726105,
-0.002931840717792511,
0.36155277490615845,
-0.12342961877584457,
0.1117699071764946,
0.22975914180278778,
0.019883856177330017,
0.2879815995693207,
-0.16016104817390442,
-0.04068177193403244,
-0.050391197204589844,
-0.07457561790943146,
-0.27969449758529663,
-0.06919239461421967,
0.39419376850128174,
0.13750892877578735,
-0.1656411737203598,
0.012916380539536476,
-0.12453880906105042,
0.12291926145553589,
-0.049302034080028534,
0.05420312657952309,
0.01064547523856163,
-0.14916297793388367,
-0.027174033224582672,
0.15864507853984833,
-0.06981586664915085,
0.08643671870231628,
0.608910858631134,
-0.10844961553812027,
-0.3196195662021637,
0.30646252632141113,
0.30267563462257385,
0.005280476063489914,
-0.22048041224479675,
0.2212643325328827,
0.05046805366873741,
-0.3886027932167053,
-0.1376264989376068,
-0.19892218708992004,
-0.0684240534901619,
0.03468042239546776,
0.10222826153039932,
0.21728578209877014,
-0.10179037600755692,
0.0036830008029937744,
-0.5508980751037598,
-0.30310967564582825,
0.19118639826774597,
-0.07676942646503448,
-0.18136955797672272,
0.11923191696405411,
0.3389422595500946,
0.015513172373175621,
0.2547386586666107,
-0.20348533987998962,
0.32593321800231934,
-0.37330880761146545,
0.14416098594665527,
-0.563596248626709,
-0.2371910810470581,
-0.003535565687343478,
-0.23051342368125916,
0.018074387684464455,
0.24548952281475067,
0.07344727218151093,
-0.10744056850671768,
-0.015552161261439323,
0.15939371287822723,
0.1383395791053772,
-0.0180854182690382,
-0.16946640610694885,
-0.00020727328956127167,
0.10750927031040192,
0.17355968058109283,
0.10350057482719421,
-0.1377708911895752,
0.14676421880722046,
0.1609334498643875,
0.29537999629974365,
0.10649140179157257,
0.19602839648723602,
0.09358853846788406,
0.029574118554592133,
0.39053821563720703,
0.058881644159555435,
0.2412940412759781,
-0.20396076142787933,
0.03343268483877182,
-0.3554684817790985,
0.18905995786190033,
0.01001390814781189,
0.28048333525657654,
0.08382789045572281,
-0.5798283815383911,
-0.05440349131822586,
-0.07205303013324738,
0.3013576865196228,
0.5721238255500793,
-0.36651474237442017,
0.11240676045417786,
0.18876996636390686,
0.10417407751083374,
-0.009935840964317322,
-0.25940877199172974,
0.7478204965591431,
-0.035664379596710205,
-0.3024628460407257,
0.01803499460220337,
0.14284679293632507,
-0.09839732199907303,
0.13151915371418,
0.13897210359573364,
0.5670433640480042,
0.19193539023399353,
0.19833457469940186,
0.21702063083648682,
-0.22543442249298096,
-0.02375100925564766,
0.13978669047355652,
-0.07900013029575348,
0.18169553577899933,
0.25413215160369873,
-0.19390419125556946,
0.06331808865070343,
0.11781709641218185,
0.10370814055204391,
0.23295000195503235,
-0.3413435220718384,
-0.35574883222579956,
0.0997505635023117,
0.1379033327102661,
0.010600466281175613,
0.178500235080719,
0.8641586303710938,
-0.1908433735370636,
-0.4217522442340851,
-0.08530361205339432,
0.0879029780626297,
-0.308180034160614,
0.08736097812652588,
-0.4969727098941803,
-0.17892974615097046,
-0.04054275527596474,
0.1543644219636917,
-0.3017125725746155,
-0.03292277455329895,
0.08559876680374146,
0.03904866799712181,
-0.2745322585105896,
-0.19280517101287842,
-0.04141861945390701,
-0.2142159640789032,
0.06561022996902466,
-0.0752989798784256,
0.33553919196128845,
-0.1362084150314331,
0.04287951439619064,
0.24395395815372467,
-0.02081700973212719,
0.32823634147644043,
0.3369992673397064,
-0.19198928773403168,
-0.12645478546619415,
-0.25782880187034607,
0.021680889651179314,
0.07443013787269592,
0.10279131680727005,
0.2146652638912201,
-0.13024896383285522,
0.2761426270008087,
0.11681979894638062,
-0.04687786474823952,
0.13497315347194672,
0.2768830955028534,
0.1607486605644226,
0.09730978310108185,
-0.08710483461618423,
-0.19492168724536896,
-0.24817898869514465,
-0.06770182400941849,
-0.12639284133911133,
0.033832818269729614,
-0.12264172732830048,
-0.15556812286376953,
0.5012952089309692,
0.11771140247583389,
-0.06306402385234833,
0.08504264056682587,
0.1083316057920456,
0.5546956062316895,
0.2226146012544632,
-0.361512154340744,
-0.09784542769193649,
-0.2026807963848114,
-0.29057472944259644,
0.24300605058670044,
-0.044859495013952255,
0.07140392810106277,
0.3016992509365082,
0.4403110146522522,
-0.14588326215744019,
0.28476759791374207,
-0.23703400790691376,
-0.04820338264107704,
0.004493688233196735,
0.2456323355436325,
-0.42911073565483093,
0.17971736192703247,
0.05664897710084915,
0.1454114019870758,
-0.10592090338468552,
-0.13402114808559418,
0.2665151357650757,
-0.2023611068725586,
-0.0858607143163681,
0.03506963700056076,
-0.4277082681655884,
-0.02069135755300522,
0.042479585856199265,
0.27019670605659485,
-0.08202481269836426,
0.3326264023780823,
0.1676800549030304,
-0.37415000796318054,
-0.41678276658058167,
-0.4191497266292572,
-0.17610271275043488,
0.15577080845832825,
-0.12762439250946045,
0.4238356351852417,
-0.027194300666451454,
0.20401477813720703,
-0.31492337584495544,
-0.0030217301100492477,
-0.35879629850387573,
0.3453439176082611,
-0.31750527024269104,
0.08617488294839859,
0.08611250668764114,
0.1618039458990097,
0.008850417099893093,
0.3273947238922119,
-0.07747568190097809,
0.24947838485240936,
-0.5126644968986511,
-0.2689235508441925,
0.4422730505466461,
-0.6223298907279968,
-0.20025958120822906,
0.06876694411039352,
0.08116370439529419,
0.19811078906059265,
0.003574419766664505,
-0.27756616473197937,
-0.0704602599143982,
0.16162091493606567,
-0.17459359765052795,
-0.2950669527053833,
-0.1357094794511795,
-0.26254400610923767,
-0.2551769018173218,
-0.07695801556110382,
-0.35992708802223206,
0.1837785840034485,
-0.04530906677246094,
-0.2211911529302597,
-0.2330324947834015
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | Yes `_generate_examples()` is the main entry point. If you change the shape of the returned dictionary you also need to update the `features` in the `_info`.
I'm currently writing the doc so it should be easier soon to use the library and know how to add your datasets.
| The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 48 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
Yes `_generate_examples()` is the main entry point. If you change the shape of the returned dictionary you also need to update the `features` in the `_info`.
I'm currently writing the doc so it should be easier soon to use the library and know how to add your datasets.
| [
-0.017292935401201248,
0.2893960773944855,
0.060941580682992935,
0.05787109583616257,
0.22360926866531372,
-0.01654874160885811,
0.3200390636920929,
0.6101843118667603,
-0.40100938081741333,
-0.21304382383823395,
-0.24225422739982605,
0.7714078426361084,
0.13278746604919434,
-0.42659613490104675,
0.148922860622406,
-0.07152826339006424,
0.04622578248381615,
0.1267290562391281,
0.22394028306007385,
0.05367039889097214,
-0.17444954812526703,
0.3416517674922943,
-0.22996830940246582,
0.13204163312911987,
-0.1667519062757492,
0.2660640776157379,
0.006536075845360756,
0.5419238209724426,
-0.07457146048545837,
-0.7302019000053406,
0.29777756333351135,
-0.00932963564991951,
0.15174531936645508,
0.34502479434013367,
-0.00011861127859447151,
0.18453164398670197,
0.3318486213684082,
-0.10963694006204605,
-0.35170140862464905,
0.052129171788692474,
0.28050345182418823,
-0.24146446585655212,
0.3380259573459625,
-0.14538398385047913,
0.0627315416932106,
-0.31198063492774963,
0.0318320170044899,
0.08127447962760925,
0.6866550445556641,
0.15539707243442535,
0.09210093319416046,
0.1377255618572235,
0.07380697131156921,
0.05236603319644928,
0.02077595517039299,
0.06787747889757156,
0.016604134812951088,
0.7200930714607239,
0.5202919244766235,
-0.1260118931531906,
-0.33889901638031006,
-0.07208496332168579,
0.12127216160297394,
-0.03826923295855522,
0.20485687255859375,
-0.06355605274438858,
-0.01384805142879486,
-0.18327093124389648,
0.052465278655290604,
0.11702004075050354,
0.24164614081382751,
-0.23805928230285645,
-0.23284828662872314,
-0.21574902534484863,
0.07478656619787216,
-0.2181091457605362,
0.3773205578327179,
0.277229368686676,
-0.13986001908779144,
0.15234270691871643,
-0.05699673667550087,
0.03446023911237717,
-0.19189298152923584,
0.029310330748558044,
-0.21427331864833832,
0.5192531943321228,
0.12151210010051727,
0.0416845977306366,
0.10512389242649078,
-0.1629461795091629,
-0.1519256830215454,
0.31723931431770325,
-0.26252880692481995,
0.3998278081417084,
-0.3908270001411438,
-0.16861698031425476,
0.11205319315195084,
-0.362652063369751,
0.21630483865737915,
0.09017674624919891,
0.1800878643989563,
0.16720515489578247,
0.21391238272190094,
0.12037011981010437,
0.4853104054927826,
0.054677899926900864,
0.17183536291122437,
0.20253196358680725,
0.15263167023658752,
-0.019629038870334625,
-0.025974441319704056,
0.23977527022361755,
-0.1398816853761673,
-0.2250078022480011,
-0.2135155349969864,
0.02806801348924637,
-0.0268214363604784,
-0.10946649312973022,
0.014883609488606453,
0.06951820850372314,
-0.31477054953575134,
-0.012025943025946617,
0.050985340029001236,
0.08486197888851166,
0.1312861442565918,
0.1926075518131256,
-0.25002795457839966,
0.20476096868515015,
-0.1014544740319252,
-0.17269505560398102,
-0.017575176432728767,
-0.026820369064807892,
-0.30665647983551025,
-0.020666083320975304,
0.4054732322692871,
-0.12256057560443878,
0.11852153390645981,
-0.08125002682209015,
-0.11161546409130096,
-0.22692301869392395,
-0.43347233533859253,
-0.043898019939661026,
0.00766715407371521,
0.1496744304895401,
0.03168030455708504,
-0.07048674672842026,
-0.036723341792821884,
-0.25811031460762024,
-0.1803210973739624,
0.21218934655189514,
-0.35118767619132996,
-0.2851627767086029,
-0.5924198031425476,
0.11839122325181961,
-0.3227139115333557,
-0.005309060215950012,
0.144400954246521,
0.2050791084766388,
0.056660085916519165,
-0.45432591438293457,
-0.1377899944782257,
-0.0893591046333313,
-0.003153182566165924,
-0.22954262793064117,
0.14668314158916473,
0.2523782253265381,
-0.8450281023979187,
-0.2359812706708908,
0.16683757305145264,
-0.0015069693326950073,
0.0830981433391571,
0.5275307893753052,
-0.35141846537590027,
0.2732038199901581,
-0.15309779345989227,
0.5261086225509644,
0.4013669490814209,
-0.27797797322273254,
-0.33690890669822693,
0.24279099702835083,
-0.3994483947753906,
-0.04135706275701523,
-0.2372668981552124,
-0.06557163596153259,
0.2967044711112976,
0.0823332741856575,
0.3412531316280365,
0.4493858814239502,
-0.1155514121055603,
0.14832478761672974,
-0.33256494998931885,
-0.08049905300140381,
0.17264264822006226,
0.36013996601104736,
-0.06741523742675781,
-0.16082435846328735,
-0.02985893189907074,
0.14493077993392944,
0.4040018916130066,
-0.17193202674388885,
-0.020753830671310425,
0.16067291796207428,
0.137290358543396,
-0.017320290207862854,
0.16614244878292084,
-0.10807956010103226,
-0.7758411169052124,
0.1020512804389,
-0.2894934415817261,
0.08079374581575394,
-0.04113234579563141,
0.006053276360034943,
-0.2767830193042755,
-0.11359872668981552,
-0.20613180100917816,
-0.05402376130223274,
0.03211724013090134,
-0.1604943573474884,
-0.034858908504247665,
-0.06829656660556793,
-0.4652935564517975,
-0.15678612887859344,
-0.15475744009017944,
0.3780496120452881,
-0.11537927389144897,
0.4039316177368164,
-0.13026511669158936,
-0.40083321928977966,
0.09279197454452515,
0.36722642183303833,
0.12826183438301086,
-0.26726216077804565,
-0.00681593082845211,
0.3295678496360779,
-0.08044763654470444,
0.13387416303157806,
-0.17082291841506958,
-0.2979549169540405,
0.24760888516902924,
-0.08576124906539917,
-0.12928541004657745,
-0.06358087062835693,
-0.1022326722741127,
-0.08836463838815689,
-0.3246677815914154,
0.33626747131347656,
0.01972571760416031,
-0.03263632208108902,
-0.056773532181978226,
-0.24713614583015442,
0.2981208562850952,
-0.08481107652187347,
-0.12740351259708405,
-0.0282973051071167,
0.017285965383052826,
0.1671067476272583,
-0.01249563880264759,
0.1766582727432251,
-0.1765212118625641,
-0.014475196599960327,
0.3694947063922882,
-0.0651182159781456,
0.035570599138736725,
0.18731805682182312,
0.10087145119905472,
-0.2918992340564728,
-0.024752849712967873,
-0.04872118681669235,
0.3634803891181946,
-0.007697261869907379,
-0.15589140355587006,
-0.003915304318070412,
0.03366772457957268,
-0.018401337787508965,
-0.011545412242412567,
0.04824555665254593,
0.4226096272468567,
0.5049405097961426,
0.3639856278896332,
0.16840191185474396,
-0.2733657956123352,
-0.15487241744995117,
0.1276227831840515,
0.05630408972501755,
-0.3743777871131897,
0.06021815538406372,
-0.2678273618221283,
-0.14459271728992462,
-0.293088436126709,
-0.14269036054611206,
-0.3419746160507202,
-0.1941552609205246,
0.10888779163360596,
-0.03826295956969261,
-0.08678235113620758,
0.20050588250160217,
0.16654638946056366,
0.4000794291496277,
0.10027797520160675,
-0.18636764585971832,
0.038145892322063446,
-0.17725814878940582,
-0.2182420790195465,
-0.04536733031272888,
0.37832245230674744,
-0.0644291341304779,
-0.20677797496318817,
-0.18944235146045685,
-0.27097535133361816,
0.10979176312685013,
-0.4360974133014679,
0.16802868247032166,
-0.009155366569757462,
0.19459065794944763,
0.022265620529651642,
0.23686353862285614,
-0.147968128323555,
-0.36693522334098816,
0.28148242831230164,
-0.04621180519461632,
-0.2511284351348877,
0.00040096603333950043,
-0.10349632054567337,
0.13379180431365967,
-0.2878111004829407,
-0.3897343575954437,
-0.2453109472990036,
-0.227113276720047,
0.4359026551246643,
0.07529547810554504,
0.13726647198200226,
0.2004077136516571,
-0.20206838846206665,
0.01474254485219717,
-0.23706023395061493,
-0.21109458804130554,
0.04947827011346817,
-0.1857472062110901,
0.20523396134376526,
-0.2988071143627167,
-0.1417258232831955,
-0.021901685744524002,
0.09425181150436401,
0.16700530052185059,
-0.2243582159280777,
-0.16041654348373413,
0.1161191388964653,
0.17135782539844513,
0.24600833654403687,
-0.3234412968158722,
-0.2597641944885254,
0.2524788975715637,
-0.2297290712594986,
0.052428387105464935,
0.19720995426177979,
-0.36020925641059875,
-0.09371232241392136,
0.5185642242431641,
0.19824960827827454,
-0.26570558547973633,
0.2363279163837433,
0.05972133204340935,
0.8267533183097839,
-0.13744008541107178,
-0.16253790259361267,
0.12583282589912415,
0.03038007579743862,
0.12194845080375671,
-0.14891257882118225,
-0.035248931497335434,
0.3921872675418854,
-0.03979837894439697,
-0.11294013261795044,
0.24759550392627716,
0.16245195269584656,
-0.5424820184707642,
-0.005967728793621063,
0.15809737145900726,
-0.5473142862319946,
-0.16832345724105835,
0.2632967531681061,
0.555120587348938,
-0.08508653193712234,
-0.04293389245867729,
0.029451429843902588,
0.002924814820289612,
-0.23155075311660767,
-0.05983665958046913,
0.22425155341625214,
0.27071303129196167,
0.0932336077094078,
-0.5434249043464661,
-0.3422016501426697,
-0.04475945979356766,
-0.020403414964675903,
0.12437023967504501,
0.46455663442611694,
-0.0012723878026008606,
-0.20624318718910217,
0.027220875024795532,
-0.2641845643520355,
0.3476611375808716,
0.26207470893859863,
0.35182780027389526,
0.3491414189338684,
0.32933080196380615,
-0.07430104911327362,
-0.3046778440475464,
0.14519022405147552,
0.47711288928985596,
0.6556545495986938,
0.4198318123817444,
-0.10166966170072556,
-0.13171114027500153,
0.28487417101860046,
0.08596163243055344,
-0.14478135108947754,
-0.07338382303714752,
-0.22651486098766327,
-0.07947787642478943,
0.003026111051440239,
0.03935079276561737,
-0.041760798543691635,
0.39739441871643066,
0.06032101809978485,
0.1337607502937317,
0.42367687821388245,
-0.2695534825325012,
-0.24267567694187164,
0.3894134759902954,
0.10912413150072098,
0.07678131759166718,
0.04680414870381355,
0.2670256495475769,
-0.0012025795876979828,
0.3386416733264923,
0.4461457431316376,
0.2894243597984314,
-0.20294621586799622,
0.2748577892780304,
-0.006987389642745256,
0.22130072116851807,
0.46919623017311096,
0.20125867426395416,
-0.18309062719345093,
-0.14047062397003174,
-0.12718693912029266,
0.023022837936878204,
-0.4001844525337219,
0.13784129917621613,
-0.307553768157959,
-0.22677819430828094,
0.2155749648809433,
0.20091675221920013,
-0.09558314085006714,
-0.06338608264923096,
-0.02899754047393799,
-0.06045711040496826,
-0.015704549849033356,
0.5079237222671509,
0.16421635448932648,
0.7734215259552002,
-0.04519962519407272,
0.10620619356632233,
0.2713398337364197,
-0.11777021735906601,
0.40123337507247925,
-0.6511290073394775,
0.36042606830596924,
-0.43772202730178833,
0.26961836218833923,
0.12142503261566162,
-0.12912026047706604,
0.16803914308547974,
0.18424205482006073,
0.00671980157494545,
-0.054778214544057846,
-0.14762499928474426,
0.2945111095905304,
-0.02576306276023388,
0.33889755606651306,
0.17994776368141174,
-0.30595386028289795,
-0.5036044120788574,
0.060792066156864166,
-0.37010788917541504,
0.03455856069922447,
-0.1490776538848877,
-0.16940253973007202,
-0.08521300554275513,
-0.12656302750110626,
-0.2838006317615509,
0.27698490023612976,
0.12989217042922974,
0.014315811917185783,
0.5128051042556763,
-0.2600136399269104,
0.15981611609458923,
0.3644203245639801,
-0.150142639875412,
0.053529031574726105,
-0.002931840717792511,
0.36155277490615845,
-0.12342961877584457,
0.1117699071764946,
0.22975914180278778,
0.019883856177330017,
0.2879815995693207,
-0.16016104817390442,
-0.04068177193403244,
-0.050391197204589844,
-0.07457561790943146,
-0.27969449758529663,
-0.06919239461421967,
0.39419376850128174,
0.13750892877578735,
-0.1656411737203598,
0.012916380539536476,
-0.12453880906105042,
0.12291926145553589,
-0.049302034080028534,
0.05420312657952309,
0.01064547523856163,
-0.14916297793388367,
-0.027174033224582672,
0.15864507853984833,
-0.06981586664915085,
0.08643671870231628,
0.608910858631134,
-0.10844961553812027,
-0.3196195662021637,
0.30646252632141113,
0.30267563462257385,
0.005280476063489914,
-0.22048041224479675,
0.2212643325328827,
0.05046805366873741,
-0.3886027932167053,
-0.1376264989376068,
-0.19892218708992004,
-0.0684240534901619,
0.03468042239546776,
0.10222826153039932,
0.21728578209877014,
-0.10179037600755692,
0.0036830008029937744,
-0.5508980751037598,
-0.30310967564582825,
0.19118639826774597,
-0.07676942646503448,
-0.18136955797672272,
0.11923191696405411,
0.3389422595500946,
0.015513172373175621,
0.2547386586666107,
-0.20348533987998962,
0.32593321800231934,
-0.37330880761146545,
0.14416098594665527,
-0.563596248626709,
-0.2371910810470581,
-0.003535565687343478,
-0.23051342368125916,
0.018074387684464455,
0.24548952281475067,
0.07344727218151093,
-0.10744056850671768,
-0.015552161261439323,
0.15939371287822723,
0.1383395791053772,
-0.0180854182690382,
-0.16946640610694885,
-0.00020727328956127167,
0.10750927031040192,
0.17355968058109283,
0.10350057482719421,
-0.1377708911895752,
0.14676421880722046,
0.1609334498643875,
0.29537999629974365,
0.10649140179157257,
0.19602839648723602,
0.09358853846788406,
0.029574118554592133,
0.39053821563720703,
0.058881644159555435,
0.2412940412759781,
-0.20396076142787933,
0.03343268483877182,
-0.3554684817790985,
0.18905995786190033,
0.01001390814781189,
0.28048333525657654,
0.08382789045572281,
-0.5798283815383911,
-0.05440349131822586,
-0.07205303013324738,
0.3013576865196228,
0.5721238255500793,
-0.36651474237442017,
0.11240676045417786,
0.18876996636390686,
0.10417407751083374,
-0.009935840964317322,
-0.25940877199172974,
0.7478204965591431,
-0.035664379596710205,
-0.3024628460407257,
0.01803499460220337,
0.14284679293632507,
-0.09839732199907303,
0.13151915371418,
0.13897210359573364,
0.5670433640480042,
0.19193539023399353,
0.19833457469940186,
0.21702063083648682,
-0.22543442249298096,
-0.02375100925564766,
0.13978669047355652,
-0.07900013029575348,
0.18169553577899933,
0.25413215160369873,
-0.19390419125556946,
0.06331808865070343,
0.11781709641218185,
0.10370814055204391,
0.23295000195503235,
-0.3413435220718384,
-0.35574883222579956,
0.0997505635023117,
0.1379033327102661,
0.010600466281175613,
0.178500235080719,
0.8641586303710938,
-0.1908433735370636,
-0.4217522442340851,
-0.08530361205339432,
0.0879029780626297,
-0.308180034160614,
0.08736097812652588,
-0.4969727098941803,
-0.17892974615097046,
-0.04054275527596474,
0.1543644219636917,
-0.3017125725746155,
-0.03292277455329895,
0.08559876680374146,
0.03904866799712181,
-0.2745322585105896,
-0.19280517101287842,
-0.04141861945390701,
-0.2142159640789032,
0.06561022996902466,
-0.0752989798784256,
0.33553919196128845,
-0.1362084150314331,
0.04287951439619064,
0.24395395815372467,
-0.02081700973212719,
0.32823634147644043,
0.3369992673397064,
-0.19198928773403168,
-0.12645478546619415,
-0.25782880187034607,
0.021680889651179314,
0.07443013787269592,
0.10279131680727005,
0.2146652638912201,
-0.13024896383285522,
0.2761426270008087,
0.11681979894638062,
-0.04687786474823952,
0.13497315347194672,
0.2768830955028534,
0.1607486605644226,
0.09730978310108185,
-0.08710483461618423,
-0.19492168724536896,
-0.24817898869514465,
-0.06770182400941849,
-0.12639284133911133,
0.033832818269729614,
-0.12264172732830048,
-0.15556812286376953,
0.5012952089309692,
0.11771140247583389,
-0.06306402385234833,
0.08504264056682587,
0.1083316057920456,
0.5546956062316895,
0.2226146012544632,
-0.361512154340744,
-0.09784542769193649,
-0.2026807963848114,
-0.29057472944259644,
0.24300605058670044,
-0.044859495013952255,
0.07140392810106277,
0.3016992509365082,
0.4403110146522522,
-0.14588326215744019,
0.28476759791374207,
-0.23703400790691376,
-0.04820338264107704,
0.004493688233196735,
0.2456323355436325,
-0.42911073565483093,
0.17971736192703247,
0.05664897710084915,
0.1454114019870758,
-0.10592090338468552,
-0.13402114808559418,
0.2665151357650757,
-0.2023611068725586,
-0.0858607143163681,
0.03506963700056076,
-0.4277082681655884,
-0.02069135755300522,
0.042479585856199265,
0.27019670605659485,
-0.08202481269836426,
0.3326264023780823,
0.1676800549030304,
-0.37415000796318054,
-0.41678276658058167,
-0.4191497266292572,
-0.17610271275043488,
0.15577080845832825,
-0.12762439250946045,
0.4238356351852417,
-0.027194300666451454,
0.20401477813720703,
-0.31492337584495544,
-0.0030217301100492477,
-0.35879629850387573,
0.3453439176082611,
-0.31750527024269104,
0.08617488294839859,
0.08611250668764114,
0.1618039458990097,
0.008850417099893093,
0.3273947238922119,
-0.07747568190097809,
0.24947838485240936,
-0.5126644968986511,
-0.2689235508441925,
0.4422730505466461,
-0.6223298907279968,
-0.20025958120822906,
0.06876694411039352,
0.08116370439529419,
0.19811078906059265,
0.003574419766664505,
-0.27756616473197937,
-0.0704602599143982,
0.16162091493606567,
-0.17459359765052795,
-0.2950669527053833,
-0.1357094794511795,
-0.26254400610923767,
-0.2551769018173218,
-0.07695801556110382,
-0.35992708802223206,
0.1837785840034485,
-0.04530906677246094,
-0.2211911529302597,
-0.2330324947834015
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | Could you try to update pyarrow to >=0.17.0 @vegarab ?
I don't have any segmentation fault with my version of pyarrow (0.17.1)
I tested with
```python
import nlp
s = nlp.load_dataset("json", data_files="train-v2.0.json", field="data", split="train")
s[0]
# {'title': 'Normans', 'paragraphs': [{'qas': [{'question': 'In what country is Normandy located?', 'id':...
``` | The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 49 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
Could you try to update pyarrow to >=0.17.0 @vegarab ?
I don't have any segmentation fault with my version of pyarrow (0.17.1)
I tested with
```python
import nlp
s = nlp.load_dataset("json", data_files="train-v2.0.json", field="data", split="train")
s[0]
# {'title': 'Normans', 'paragraphs': [{'qas': [{'question': 'In what country is Normandy located?', 'id':...
``` | [
-0.017292935401201248,
0.2893960773944855,
0.060941580682992935,
0.05787109583616257,
0.22360926866531372,
-0.01654874160885811,
0.3200390636920929,
0.6101843118667603,
-0.40100938081741333,
-0.21304382383823395,
-0.24225422739982605,
0.7714078426361084,
0.13278746604919434,
-0.42659613490104675,
0.148922860622406,
-0.07152826339006424,
0.04622578248381615,
0.1267290562391281,
0.22394028306007385,
0.05367039889097214,
-0.17444954812526703,
0.3416517674922943,
-0.22996830940246582,
0.13204163312911987,
-0.1667519062757492,
0.2660640776157379,
0.006536075845360756,
0.5419238209724426,
-0.07457146048545837,
-0.7302019000053406,
0.29777756333351135,
-0.00932963564991951,
0.15174531936645508,
0.34502479434013367,
-0.00011861127859447151,
0.18453164398670197,
0.3318486213684082,
-0.10963694006204605,
-0.35170140862464905,
0.052129171788692474,
0.28050345182418823,
-0.24146446585655212,
0.3380259573459625,
-0.14538398385047913,
0.0627315416932106,
-0.31198063492774963,
0.0318320170044899,
0.08127447962760925,
0.6866550445556641,
0.15539707243442535,
0.09210093319416046,
0.1377255618572235,
0.07380697131156921,
0.05236603319644928,
0.02077595517039299,
0.06787747889757156,
0.016604134812951088,
0.7200930714607239,
0.5202919244766235,
-0.1260118931531906,
-0.33889901638031006,
-0.07208496332168579,
0.12127216160297394,
-0.03826923295855522,
0.20485687255859375,
-0.06355605274438858,
-0.01384805142879486,
-0.18327093124389648,
0.052465278655290604,
0.11702004075050354,
0.24164614081382751,
-0.23805928230285645,
-0.23284828662872314,
-0.21574902534484863,
0.07478656619787216,
-0.2181091457605362,
0.3773205578327179,
0.277229368686676,
-0.13986001908779144,
0.15234270691871643,
-0.05699673667550087,
0.03446023911237717,
-0.19189298152923584,
0.029310330748558044,
-0.21427331864833832,
0.5192531943321228,
0.12151210010051727,
0.0416845977306366,
0.10512389242649078,
-0.1629461795091629,
-0.1519256830215454,
0.31723931431770325,
-0.26252880692481995,
0.3998278081417084,
-0.3908270001411438,
-0.16861698031425476,
0.11205319315195084,
-0.362652063369751,
0.21630483865737915,
0.09017674624919891,
0.1800878643989563,
0.16720515489578247,
0.21391238272190094,
0.12037011981010437,
0.4853104054927826,
0.054677899926900864,
0.17183536291122437,
0.20253196358680725,
0.15263167023658752,
-0.019629038870334625,
-0.025974441319704056,
0.23977527022361755,
-0.1398816853761673,
-0.2250078022480011,
-0.2135155349969864,
0.02806801348924637,
-0.0268214363604784,
-0.10946649312973022,
0.014883609488606453,
0.06951820850372314,
-0.31477054953575134,
-0.012025943025946617,
0.050985340029001236,
0.08486197888851166,
0.1312861442565918,
0.1926075518131256,
-0.25002795457839966,
0.20476096868515015,
-0.1014544740319252,
-0.17269505560398102,
-0.017575176432728767,
-0.026820369064807892,
-0.30665647983551025,
-0.020666083320975304,
0.4054732322692871,
-0.12256057560443878,
0.11852153390645981,
-0.08125002682209015,
-0.11161546409130096,
-0.22692301869392395,
-0.43347233533859253,
-0.043898019939661026,
0.00766715407371521,
0.1496744304895401,
0.03168030455708504,
-0.07048674672842026,
-0.036723341792821884,
-0.25811031460762024,
-0.1803210973739624,
0.21218934655189514,
-0.35118767619132996,
-0.2851627767086029,
-0.5924198031425476,
0.11839122325181961,
-0.3227139115333557,
-0.005309060215950012,
0.144400954246521,
0.2050791084766388,
0.056660085916519165,
-0.45432591438293457,
-0.1377899944782257,
-0.0893591046333313,
-0.003153182566165924,
-0.22954262793064117,
0.14668314158916473,
0.2523782253265381,
-0.8450281023979187,
-0.2359812706708908,
0.16683757305145264,
-0.0015069693326950073,
0.0830981433391571,
0.5275307893753052,
-0.35141846537590027,
0.2732038199901581,
-0.15309779345989227,
0.5261086225509644,
0.4013669490814209,
-0.27797797322273254,
-0.33690890669822693,
0.24279099702835083,
-0.3994483947753906,
-0.04135706275701523,
-0.2372668981552124,
-0.06557163596153259,
0.2967044711112976,
0.0823332741856575,
0.3412531316280365,
0.4493858814239502,
-0.1155514121055603,
0.14832478761672974,
-0.33256494998931885,
-0.08049905300140381,
0.17264264822006226,
0.36013996601104736,
-0.06741523742675781,
-0.16082435846328735,
-0.02985893189907074,
0.14493077993392944,
0.4040018916130066,
-0.17193202674388885,
-0.020753830671310425,
0.16067291796207428,
0.137290358543396,
-0.017320290207862854,
0.16614244878292084,
-0.10807956010103226,
-0.7758411169052124,
0.1020512804389,
-0.2894934415817261,
0.08079374581575394,
-0.04113234579563141,
0.006053276360034943,
-0.2767830193042755,
-0.11359872668981552,
-0.20613180100917816,
-0.05402376130223274,
0.03211724013090134,
-0.1604943573474884,
-0.034858908504247665,
-0.06829656660556793,
-0.4652935564517975,
-0.15678612887859344,
-0.15475744009017944,
0.3780496120452881,
-0.11537927389144897,
0.4039316177368164,
-0.13026511669158936,
-0.40083321928977966,
0.09279197454452515,
0.36722642183303833,
0.12826183438301086,
-0.26726216077804565,
-0.00681593082845211,
0.3295678496360779,
-0.08044763654470444,
0.13387416303157806,
-0.17082291841506958,
-0.2979549169540405,
0.24760888516902924,
-0.08576124906539917,
-0.12928541004657745,
-0.06358087062835693,
-0.1022326722741127,
-0.08836463838815689,
-0.3246677815914154,
0.33626747131347656,
0.01972571760416031,
-0.03263632208108902,
-0.056773532181978226,
-0.24713614583015442,
0.2981208562850952,
-0.08481107652187347,
-0.12740351259708405,
-0.0282973051071167,
0.017285965383052826,
0.1671067476272583,
-0.01249563880264759,
0.1766582727432251,
-0.1765212118625641,
-0.014475196599960327,
0.3694947063922882,
-0.0651182159781456,
0.035570599138736725,
0.18731805682182312,
0.10087145119905472,
-0.2918992340564728,
-0.024752849712967873,
-0.04872118681669235,
0.3634803891181946,
-0.007697261869907379,
-0.15589140355587006,
-0.003915304318070412,
0.03366772457957268,
-0.018401337787508965,
-0.011545412242412567,
0.04824555665254593,
0.4226096272468567,
0.5049405097961426,
0.3639856278896332,
0.16840191185474396,
-0.2733657956123352,
-0.15487241744995117,
0.1276227831840515,
0.05630408972501755,
-0.3743777871131897,
0.06021815538406372,
-0.2678273618221283,
-0.14459271728992462,
-0.293088436126709,
-0.14269036054611206,
-0.3419746160507202,
-0.1941552609205246,
0.10888779163360596,
-0.03826295956969261,
-0.08678235113620758,
0.20050588250160217,
0.16654638946056366,
0.4000794291496277,
0.10027797520160675,
-0.18636764585971832,
0.038145892322063446,
-0.17725814878940582,
-0.2182420790195465,
-0.04536733031272888,
0.37832245230674744,
-0.0644291341304779,
-0.20677797496318817,
-0.18944235146045685,
-0.27097535133361816,
0.10979176312685013,
-0.4360974133014679,
0.16802868247032166,
-0.009155366569757462,
0.19459065794944763,
0.022265620529651642,
0.23686353862285614,
-0.147968128323555,
-0.36693522334098816,
0.28148242831230164,
-0.04621180519461632,
-0.2511284351348877,
0.00040096603333950043,
-0.10349632054567337,
0.13379180431365967,
-0.2878111004829407,
-0.3897343575954437,
-0.2453109472990036,
-0.227113276720047,
0.4359026551246643,
0.07529547810554504,
0.13726647198200226,
0.2004077136516571,
-0.20206838846206665,
0.01474254485219717,
-0.23706023395061493,
-0.21109458804130554,
0.04947827011346817,
-0.1857472062110901,
0.20523396134376526,
-0.2988071143627167,
-0.1417258232831955,
-0.021901685744524002,
0.09425181150436401,
0.16700530052185059,
-0.2243582159280777,
-0.16041654348373413,
0.1161191388964653,
0.17135782539844513,
0.24600833654403687,
-0.3234412968158722,
-0.2597641944885254,
0.2524788975715637,
-0.2297290712594986,
0.052428387105464935,
0.19720995426177979,
-0.36020925641059875,
-0.09371232241392136,
0.5185642242431641,
0.19824960827827454,
-0.26570558547973633,
0.2363279163837433,
0.05972133204340935,
0.8267533183097839,
-0.13744008541107178,
-0.16253790259361267,
0.12583282589912415,
0.03038007579743862,
0.12194845080375671,
-0.14891257882118225,
-0.035248931497335434,
0.3921872675418854,
-0.03979837894439697,
-0.11294013261795044,
0.24759550392627716,
0.16245195269584656,
-0.5424820184707642,
-0.005967728793621063,
0.15809737145900726,
-0.5473142862319946,
-0.16832345724105835,
0.2632967531681061,
0.555120587348938,
-0.08508653193712234,
-0.04293389245867729,
0.029451429843902588,
0.002924814820289612,
-0.23155075311660767,
-0.05983665958046913,
0.22425155341625214,
0.27071303129196167,
0.0932336077094078,
-0.5434249043464661,
-0.3422016501426697,
-0.04475945979356766,
-0.020403414964675903,
0.12437023967504501,
0.46455663442611694,
-0.0012723878026008606,
-0.20624318718910217,
0.027220875024795532,
-0.2641845643520355,
0.3476611375808716,
0.26207470893859863,
0.35182780027389526,
0.3491414189338684,
0.32933080196380615,
-0.07430104911327362,
-0.3046778440475464,
0.14519022405147552,
0.47711288928985596,
0.6556545495986938,
0.4198318123817444,
-0.10166966170072556,
-0.13171114027500153,
0.28487417101860046,
0.08596163243055344,
-0.14478135108947754,
-0.07338382303714752,
-0.22651486098766327,
-0.07947787642478943,
0.003026111051440239,
0.03935079276561737,
-0.041760798543691635,
0.39739441871643066,
0.06032101809978485,
0.1337607502937317,
0.42367687821388245,
-0.2695534825325012,
-0.24267567694187164,
0.3894134759902954,
0.10912413150072098,
0.07678131759166718,
0.04680414870381355,
0.2670256495475769,
-0.0012025795876979828,
0.3386416733264923,
0.4461457431316376,
0.2894243597984314,
-0.20294621586799622,
0.2748577892780304,
-0.006987389642745256,
0.22130072116851807,
0.46919623017311096,
0.20125867426395416,
-0.18309062719345093,
-0.14047062397003174,
-0.12718693912029266,
0.023022837936878204,
-0.4001844525337219,
0.13784129917621613,
-0.307553768157959,
-0.22677819430828094,
0.2155749648809433,
0.20091675221920013,
-0.09558314085006714,
-0.06338608264923096,
-0.02899754047393799,
-0.06045711040496826,
-0.015704549849033356,
0.5079237222671509,
0.16421635448932648,
0.7734215259552002,
-0.04519962519407272,
0.10620619356632233,
0.2713398337364197,
-0.11777021735906601,
0.40123337507247925,
-0.6511290073394775,
0.36042606830596924,
-0.43772202730178833,
0.26961836218833923,
0.12142503261566162,
-0.12912026047706604,
0.16803914308547974,
0.18424205482006073,
0.00671980157494545,
-0.054778214544057846,
-0.14762499928474426,
0.2945111095905304,
-0.02576306276023388,
0.33889755606651306,
0.17994776368141174,
-0.30595386028289795,
-0.5036044120788574,
0.060792066156864166,
-0.37010788917541504,
0.03455856069922447,
-0.1490776538848877,
-0.16940253973007202,
-0.08521300554275513,
-0.12656302750110626,
-0.2838006317615509,
0.27698490023612976,
0.12989217042922974,
0.014315811917185783,
0.5128051042556763,
-0.2600136399269104,
0.15981611609458923,
0.3644203245639801,
-0.150142639875412,
0.053529031574726105,
-0.002931840717792511,
0.36155277490615845,
-0.12342961877584457,
0.1117699071764946,
0.22975914180278778,
0.019883856177330017,
0.2879815995693207,
-0.16016104817390442,
-0.04068177193403244,
-0.050391197204589844,
-0.07457561790943146,
-0.27969449758529663,
-0.06919239461421967,
0.39419376850128174,
0.13750892877578735,
-0.1656411737203598,
0.012916380539536476,
-0.12453880906105042,
0.12291926145553589,
-0.049302034080028534,
0.05420312657952309,
0.01064547523856163,
-0.14916297793388367,
-0.027174033224582672,
0.15864507853984833,
-0.06981586664915085,
0.08643671870231628,
0.608910858631134,
-0.10844961553812027,
-0.3196195662021637,
0.30646252632141113,
0.30267563462257385,
0.005280476063489914,
-0.22048041224479675,
0.2212643325328827,
0.05046805366873741,
-0.3886027932167053,
-0.1376264989376068,
-0.19892218708992004,
-0.0684240534901619,
0.03468042239546776,
0.10222826153039932,
0.21728578209877014,
-0.10179037600755692,
0.0036830008029937744,
-0.5508980751037598,
-0.30310967564582825,
0.19118639826774597,
-0.07676942646503448,
-0.18136955797672272,
0.11923191696405411,
0.3389422595500946,
0.015513172373175621,
0.2547386586666107,
-0.20348533987998962,
0.32593321800231934,
-0.37330880761146545,
0.14416098594665527,
-0.563596248626709,
-0.2371910810470581,
-0.003535565687343478,
-0.23051342368125916,
0.018074387684464455,
0.24548952281475067,
0.07344727218151093,
-0.10744056850671768,
-0.015552161261439323,
0.15939371287822723,
0.1383395791053772,
-0.0180854182690382,
-0.16946640610694885,
-0.00020727328956127167,
0.10750927031040192,
0.17355968058109283,
0.10350057482719421,
-0.1377708911895752,
0.14676421880722046,
0.1609334498643875,
0.29537999629974365,
0.10649140179157257,
0.19602839648723602,
0.09358853846788406,
0.029574118554592133,
0.39053821563720703,
0.058881644159555435,
0.2412940412759781,
-0.20396076142787933,
0.03343268483877182,
-0.3554684817790985,
0.18905995786190033,
0.01001390814781189,
0.28048333525657654,
0.08382789045572281,
-0.5798283815383911,
-0.05440349131822586,
-0.07205303013324738,
0.3013576865196228,
0.5721238255500793,
-0.36651474237442017,
0.11240676045417786,
0.18876996636390686,
0.10417407751083374,
-0.009935840964317322,
-0.25940877199172974,
0.7478204965591431,
-0.035664379596710205,
-0.3024628460407257,
0.01803499460220337,
0.14284679293632507,
-0.09839732199907303,
0.13151915371418,
0.13897210359573364,
0.5670433640480042,
0.19193539023399353,
0.19833457469940186,
0.21702063083648682,
-0.22543442249298096,
-0.02375100925564766,
0.13978669047355652,
-0.07900013029575348,
0.18169553577899933,
0.25413215160369873,
-0.19390419125556946,
0.06331808865070343,
0.11781709641218185,
0.10370814055204391,
0.23295000195503235,
-0.3413435220718384,
-0.35574883222579956,
0.0997505635023117,
0.1379033327102661,
0.010600466281175613,
0.178500235080719,
0.8641586303710938,
-0.1908433735370636,
-0.4217522442340851,
-0.08530361205339432,
0.0879029780626297,
-0.308180034160614,
0.08736097812652588,
-0.4969727098941803,
-0.17892974615097046,
-0.04054275527596474,
0.1543644219636917,
-0.3017125725746155,
-0.03292277455329895,
0.08559876680374146,
0.03904866799712181,
-0.2745322585105896,
-0.19280517101287842,
-0.04141861945390701,
-0.2142159640789032,
0.06561022996902466,
-0.0752989798784256,
0.33553919196128845,
-0.1362084150314331,
0.04287951439619064,
0.24395395815372467,
-0.02081700973212719,
0.32823634147644043,
0.3369992673397064,
-0.19198928773403168,
-0.12645478546619415,
-0.25782880187034607,
0.021680889651179314,
0.07443013787269592,
0.10279131680727005,
0.2146652638912201,
-0.13024896383285522,
0.2761426270008087,
0.11681979894638062,
-0.04687786474823952,
0.13497315347194672,
0.2768830955028534,
0.1607486605644226,
0.09730978310108185,
-0.08710483461618423,
-0.19492168724536896,
-0.24817898869514465,
-0.06770182400941849,
-0.12639284133911133,
0.033832818269729614,
-0.12264172732830048,
-0.15556812286376953,
0.5012952089309692,
0.11771140247583389,
-0.06306402385234833,
0.08504264056682587,
0.1083316057920456,
0.5546956062316895,
0.2226146012544632,
-0.361512154340744,
-0.09784542769193649,
-0.2026807963848114,
-0.29057472944259644,
0.24300605058670044,
-0.044859495013952255,
0.07140392810106277,
0.3016992509365082,
0.4403110146522522,
-0.14588326215744019,
0.28476759791374207,
-0.23703400790691376,
-0.04820338264107704,
0.004493688233196735,
0.2456323355436325,
-0.42911073565483093,
0.17971736192703247,
0.05664897710084915,
0.1454114019870758,
-0.10592090338468552,
-0.13402114808559418,
0.2665151357650757,
-0.2023611068725586,
-0.0858607143163681,
0.03506963700056076,
-0.4277082681655884,
-0.02069135755300522,
0.042479585856199265,
0.27019670605659485,
-0.08202481269836426,
0.3326264023780823,
0.1676800549030304,
-0.37415000796318054,
-0.41678276658058167,
-0.4191497266292572,
-0.17610271275043488,
0.15577080845832825,
-0.12762439250946045,
0.4238356351852417,
-0.027194300666451454,
0.20401477813720703,
-0.31492337584495544,
-0.0030217301100492477,
-0.35879629850387573,
0.3453439176082611,
-0.31750527024269104,
0.08617488294839859,
0.08611250668764114,
0.1618039458990097,
0.008850417099893093,
0.3273947238922119,
-0.07747568190097809,
0.24947838485240936,
-0.5126644968986511,
-0.2689235508441925,
0.4422730505466461,
-0.6223298907279968,
-0.20025958120822906,
0.06876694411039352,
0.08116370439529419,
0.19811078906059265,
0.003574419766664505,
-0.27756616473197937,
-0.0704602599143982,
0.16162091493606567,
-0.17459359765052795,
-0.2950669527053833,
-0.1357094794511795,
-0.26254400610923767,
-0.2551769018173218,
-0.07695801556110382,
-0.35992708802223206,
0.1837785840034485,
-0.04530906677246094,
-0.2211911529302597,
-0.2330324947834015
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | Also if you want to have your own dataset script, we now have a new documentation !
See here:
https://huggingface.co/nlp/add_dataset.html | The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 20 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
Also if you want to have your own dataset script, we now have a new documentation !
See here:
https://huggingface.co/nlp/add_dataset.html | [
-0.017292935401201248,
0.2893960773944855,
0.060941580682992935,
0.05787109583616257,
0.22360926866531372,
-0.01654874160885811,
0.3200390636920929,
0.6101843118667603,
-0.40100938081741333,
-0.21304382383823395,
-0.24225422739982605,
0.7714078426361084,
0.13278746604919434,
-0.42659613490104675,
0.148922860622406,
-0.07152826339006424,
0.04622578248381615,
0.1267290562391281,
0.22394028306007385,
0.05367039889097214,
-0.17444954812526703,
0.3416517674922943,
-0.22996830940246582,
0.13204163312911987,
-0.1667519062757492,
0.2660640776157379,
0.006536075845360756,
0.5419238209724426,
-0.07457146048545837,
-0.7302019000053406,
0.29777756333351135,
-0.00932963564991951,
0.15174531936645508,
0.34502479434013367,
-0.00011861127859447151,
0.18453164398670197,
0.3318486213684082,
-0.10963694006204605,
-0.35170140862464905,
0.052129171788692474,
0.28050345182418823,
-0.24146446585655212,
0.3380259573459625,
-0.14538398385047913,
0.0627315416932106,
-0.31198063492774963,
0.0318320170044899,
0.08127447962760925,
0.6866550445556641,
0.15539707243442535,
0.09210093319416046,
0.1377255618572235,
0.07380697131156921,
0.05236603319644928,
0.02077595517039299,
0.06787747889757156,
0.016604134812951088,
0.7200930714607239,
0.5202919244766235,
-0.1260118931531906,
-0.33889901638031006,
-0.07208496332168579,
0.12127216160297394,
-0.03826923295855522,
0.20485687255859375,
-0.06355605274438858,
-0.01384805142879486,
-0.18327093124389648,
0.052465278655290604,
0.11702004075050354,
0.24164614081382751,
-0.23805928230285645,
-0.23284828662872314,
-0.21574902534484863,
0.07478656619787216,
-0.2181091457605362,
0.3773205578327179,
0.277229368686676,
-0.13986001908779144,
0.15234270691871643,
-0.05699673667550087,
0.03446023911237717,
-0.19189298152923584,
0.029310330748558044,
-0.21427331864833832,
0.5192531943321228,
0.12151210010051727,
0.0416845977306366,
0.10512389242649078,
-0.1629461795091629,
-0.1519256830215454,
0.31723931431770325,
-0.26252880692481995,
0.3998278081417084,
-0.3908270001411438,
-0.16861698031425476,
0.11205319315195084,
-0.362652063369751,
0.21630483865737915,
0.09017674624919891,
0.1800878643989563,
0.16720515489578247,
0.21391238272190094,
0.12037011981010437,
0.4853104054927826,
0.054677899926900864,
0.17183536291122437,
0.20253196358680725,
0.15263167023658752,
-0.019629038870334625,
-0.025974441319704056,
0.23977527022361755,
-0.1398816853761673,
-0.2250078022480011,
-0.2135155349969864,
0.02806801348924637,
-0.0268214363604784,
-0.10946649312973022,
0.014883609488606453,
0.06951820850372314,
-0.31477054953575134,
-0.012025943025946617,
0.050985340029001236,
0.08486197888851166,
0.1312861442565918,
0.1926075518131256,
-0.25002795457839966,
0.20476096868515015,
-0.1014544740319252,
-0.17269505560398102,
-0.017575176432728767,
-0.026820369064807892,
-0.30665647983551025,
-0.020666083320975304,
0.4054732322692871,
-0.12256057560443878,
0.11852153390645981,
-0.08125002682209015,
-0.11161546409130096,
-0.22692301869392395,
-0.43347233533859253,
-0.043898019939661026,
0.00766715407371521,
0.1496744304895401,
0.03168030455708504,
-0.07048674672842026,
-0.036723341792821884,
-0.25811031460762024,
-0.1803210973739624,
0.21218934655189514,
-0.35118767619132996,
-0.2851627767086029,
-0.5924198031425476,
0.11839122325181961,
-0.3227139115333557,
-0.005309060215950012,
0.144400954246521,
0.2050791084766388,
0.056660085916519165,
-0.45432591438293457,
-0.1377899944782257,
-0.0893591046333313,
-0.003153182566165924,
-0.22954262793064117,
0.14668314158916473,
0.2523782253265381,
-0.8450281023979187,
-0.2359812706708908,
0.16683757305145264,
-0.0015069693326950073,
0.0830981433391571,
0.5275307893753052,
-0.35141846537590027,
0.2732038199901581,
-0.15309779345989227,
0.5261086225509644,
0.4013669490814209,
-0.27797797322273254,
-0.33690890669822693,
0.24279099702835083,
-0.3994483947753906,
-0.04135706275701523,
-0.2372668981552124,
-0.06557163596153259,
0.2967044711112976,
0.0823332741856575,
0.3412531316280365,
0.4493858814239502,
-0.1155514121055603,
0.14832478761672974,
-0.33256494998931885,
-0.08049905300140381,
0.17264264822006226,
0.36013996601104736,
-0.06741523742675781,
-0.16082435846328735,
-0.02985893189907074,
0.14493077993392944,
0.4040018916130066,
-0.17193202674388885,
-0.020753830671310425,
0.16067291796207428,
0.137290358543396,
-0.017320290207862854,
0.16614244878292084,
-0.10807956010103226,
-0.7758411169052124,
0.1020512804389,
-0.2894934415817261,
0.08079374581575394,
-0.04113234579563141,
0.006053276360034943,
-0.2767830193042755,
-0.11359872668981552,
-0.20613180100917816,
-0.05402376130223274,
0.03211724013090134,
-0.1604943573474884,
-0.034858908504247665,
-0.06829656660556793,
-0.4652935564517975,
-0.15678612887859344,
-0.15475744009017944,
0.3780496120452881,
-0.11537927389144897,
0.4039316177368164,
-0.13026511669158936,
-0.40083321928977966,
0.09279197454452515,
0.36722642183303833,
0.12826183438301086,
-0.26726216077804565,
-0.00681593082845211,
0.3295678496360779,
-0.08044763654470444,
0.13387416303157806,
-0.17082291841506958,
-0.2979549169540405,
0.24760888516902924,
-0.08576124906539917,
-0.12928541004657745,
-0.06358087062835693,
-0.1022326722741127,
-0.08836463838815689,
-0.3246677815914154,
0.33626747131347656,
0.01972571760416031,
-0.03263632208108902,
-0.056773532181978226,
-0.24713614583015442,
0.2981208562850952,
-0.08481107652187347,
-0.12740351259708405,
-0.0282973051071167,
0.017285965383052826,
0.1671067476272583,
-0.01249563880264759,
0.1766582727432251,
-0.1765212118625641,
-0.014475196599960327,
0.3694947063922882,
-0.0651182159781456,
0.035570599138736725,
0.18731805682182312,
0.10087145119905472,
-0.2918992340564728,
-0.024752849712967873,
-0.04872118681669235,
0.3634803891181946,
-0.007697261869907379,
-0.15589140355587006,
-0.003915304318070412,
0.03366772457957268,
-0.018401337787508965,
-0.011545412242412567,
0.04824555665254593,
0.4226096272468567,
0.5049405097961426,
0.3639856278896332,
0.16840191185474396,
-0.2733657956123352,
-0.15487241744995117,
0.1276227831840515,
0.05630408972501755,
-0.3743777871131897,
0.06021815538406372,
-0.2678273618221283,
-0.14459271728992462,
-0.293088436126709,
-0.14269036054611206,
-0.3419746160507202,
-0.1941552609205246,
0.10888779163360596,
-0.03826295956969261,
-0.08678235113620758,
0.20050588250160217,
0.16654638946056366,
0.4000794291496277,
0.10027797520160675,
-0.18636764585971832,
0.038145892322063446,
-0.17725814878940582,
-0.2182420790195465,
-0.04536733031272888,
0.37832245230674744,
-0.0644291341304779,
-0.20677797496318817,
-0.18944235146045685,
-0.27097535133361816,
0.10979176312685013,
-0.4360974133014679,
0.16802868247032166,
-0.009155366569757462,
0.19459065794944763,
0.022265620529651642,
0.23686353862285614,
-0.147968128323555,
-0.36693522334098816,
0.28148242831230164,
-0.04621180519461632,
-0.2511284351348877,
0.00040096603333950043,
-0.10349632054567337,
0.13379180431365967,
-0.2878111004829407,
-0.3897343575954437,
-0.2453109472990036,
-0.227113276720047,
0.4359026551246643,
0.07529547810554504,
0.13726647198200226,
0.2004077136516571,
-0.20206838846206665,
0.01474254485219717,
-0.23706023395061493,
-0.21109458804130554,
0.04947827011346817,
-0.1857472062110901,
0.20523396134376526,
-0.2988071143627167,
-0.1417258232831955,
-0.021901685744524002,
0.09425181150436401,
0.16700530052185059,
-0.2243582159280777,
-0.16041654348373413,
0.1161191388964653,
0.17135782539844513,
0.24600833654403687,
-0.3234412968158722,
-0.2597641944885254,
0.2524788975715637,
-0.2297290712594986,
0.052428387105464935,
0.19720995426177979,
-0.36020925641059875,
-0.09371232241392136,
0.5185642242431641,
0.19824960827827454,
-0.26570558547973633,
0.2363279163837433,
0.05972133204340935,
0.8267533183097839,
-0.13744008541107178,
-0.16253790259361267,
0.12583282589912415,
0.03038007579743862,
0.12194845080375671,
-0.14891257882118225,
-0.035248931497335434,
0.3921872675418854,
-0.03979837894439697,
-0.11294013261795044,
0.24759550392627716,
0.16245195269584656,
-0.5424820184707642,
-0.005967728793621063,
0.15809737145900726,
-0.5473142862319946,
-0.16832345724105835,
0.2632967531681061,
0.555120587348938,
-0.08508653193712234,
-0.04293389245867729,
0.029451429843902588,
0.002924814820289612,
-0.23155075311660767,
-0.05983665958046913,
0.22425155341625214,
0.27071303129196167,
0.0932336077094078,
-0.5434249043464661,
-0.3422016501426697,
-0.04475945979356766,
-0.020403414964675903,
0.12437023967504501,
0.46455663442611694,
-0.0012723878026008606,
-0.20624318718910217,
0.027220875024795532,
-0.2641845643520355,
0.3476611375808716,
0.26207470893859863,
0.35182780027389526,
0.3491414189338684,
0.32933080196380615,
-0.07430104911327362,
-0.3046778440475464,
0.14519022405147552,
0.47711288928985596,
0.6556545495986938,
0.4198318123817444,
-0.10166966170072556,
-0.13171114027500153,
0.28487417101860046,
0.08596163243055344,
-0.14478135108947754,
-0.07338382303714752,
-0.22651486098766327,
-0.07947787642478943,
0.003026111051440239,
0.03935079276561737,
-0.041760798543691635,
0.39739441871643066,
0.06032101809978485,
0.1337607502937317,
0.42367687821388245,
-0.2695534825325012,
-0.24267567694187164,
0.3894134759902954,
0.10912413150072098,
0.07678131759166718,
0.04680414870381355,
0.2670256495475769,
-0.0012025795876979828,
0.3386416733264923,
0.4461457431316376,
0.2894243597984314,
-0.20294621586799622,
0.2748577892780304,
-0.006987389642745256,
0.22130072116851807,
0.46919623017311096,
0.20125867426395416,
-0.18309062719345093,
-0.14047062397003174,
-0.12718693912029266,
0.023022837936878204,
-0.4001844525337219,
0.13784129917621613,
-0.307553768157959,
-0.22677819430828094,
0.2155749648809433,
0.20091675221920013,
-0.09558314085006714,
-0.06338608264923096,
-0.02899754047393799,
-0.06045711040496826,
-0.015704549849033356,
0.5079237222671509,
0.16421635448932648,
0.7734215259552002,
-0.04519962519407272,
0.10620619356632233,
0.2713398337364197,
-0.11777021735906601,
0.40123337507247925,
-0.6511290073394775,
0.36042606830596924,
-0.43772202730178833,
0.26961836218833923,
0.12142503261566162,
-0.12912026047706604,
0.16803914308547974,
0.18424205482006073,
0.00671980157494545,
-0.054778214544057846,
-0.14762499928474426,
0.2945111095905304,
-0.02576306276023388,
0.33889755606651306,
0.17994776368141174,
-0.30595386028289795,
-0.5036044120788574,
0.060792066156864166,
-0.37010788917541504,
0.03455856069922447,
-0.1490776538848877,
-0.16940253973007202,
-0.08521300554275513,
-0.12656302750110626,
-0.2838006317615509,
0.27698490023612976,
0.12989217042922974,
0.014315811917185783,
0.5128051042556763,
-0.2600136399269104,
0.15981611609458923,
0.3644203245639801,
-0.150142639875412,
0.053529031574726105,
-0.002931840717792511,
0.36155277490615845,
-0.12342961877584457,
0.1117699071764946,
0.22975914180278778,
0.019883856177330017,
0.2879815995693207,
-0.16016104817390442,
-0.04068177193403244,
-0.050391197204589844,
-0.07457561790943146,
-0.27969449758529663,
-0.06919239461421967,
0.39419376850128174,
0.13750892877578735,
-0.1656411737203598,
0.012916380539536476,
-0.12453880906105042,
0.12291926145553589,
-0.049302034080028534,
0.05420312657952309,
0.01064547523856163,
-0.14916297793388367,
-0.027174033224582672,
0.15864507853984833,
-0.06981586664915085,
0.08643671870231628,
0.608910858631134,
-0.10844961553812027,
-0.3196195662021637,
0.30646252632141113,
0.30267563462257385,
0.005280476063489914,
-0.22048041224479675,
0.2212643325328827,
0.05046805366873741,
-0.3886027932167053,
-0.1376264989376068,
-0.19892218708992004,
-0.0684240534901619,
0.03468042239546776,
0.10222826153039932,
0.21728578209877014,
-0.10179037600755692,
0.0036830008029937744,
-0.5508980751037598,
-0.30310967564582825,
0.19118639826774597,
-0.07676942646503448,
-0.18136955797672272,
0.11923191696405411,
0.3389422595500946,
0.015513172373175621,
0.2547386586666107,
-0.20348533987998962,
0.32593321800231934,
-0.37330880761146545,
0.14416098594665527,
-0.563596248626709,
-0.2371910810470581,
-0.003535565687343478,
-0.23051342368125916,
0.018074387684464455,
0.24548952281475067,
0.07344727218151093,
-0.10744056850671768,
-0.015552161261439323,
0.15939371287822723,
0.1383395791053772,
-0.0180854182690382,
-0.16946640610694885,
-0.00020727328956127167,
0.10750927031040192,
0.17355968058109283,
0.10350057482719421,
-0.1377708911895752,
0.14676421880722046,
0.1609334498643875,
0.29537999629974365,
0.10649140179157257,
0.19602839648723602,
0.09358853846788406,
0.029574118554592133,
0.39053821563720703,
0.058881644159555435,
0.2412940412759781,
-0.20396076142787933,
0.03343268483877182,
-0.3554684817790985,
0.18905995786190033,
0.01001390814781189,
0.28048333525657654,
0.08382789045572281,
-0.5798283815383911,
-0.05440349131822586,
-0.07205303013324738,
0.3013576865196228,
0.5721238255500793,
-0.36651474237442017,
0.11240676045417786,
0.18876996636390686,
0.10417407751083374,
-0.009935840964317322,
-0.25940877199172974,
0.7478204965591431,
-0.035664379596710205,
-0.3024628460407257,
0.01803499460220337,
0.14284679293632507,
-0.09839732199907303,
0.13151915371418,
0.13897210359573364,
0.5670433640480042,
0.19193539023399353,
0.19833457469940186,
0.21702063083648682,
-0.22543442249298096,
-0.02375100925564766,
0.13978669047355652,
-0.07900013029575348,
0.18169553577899933,
0.25413215160369873,
-0.19390419125556946,
0.06331808865070343,
0.11781709641218185,
0.10370814055204391,
0.23295000195503235,
-0.3413435220718384,
-0.35574883222579956,
0.0997505635023117,
0.1379033327102661,
0.010600466281175613,
0.178500235080719,
0.8641586303710938,
-0.1908433735370636,
-0.4217522442340851,
-0.08530361205339432,
0.0879029780626297,
-0.308180034160614,
0.08736097812652588,
-0.4969727098941803,
-0.17892974615097046,
-0.04054275527596474,
0.1543644219636917,
-0.3017125725746155,
-0.03292277455329895,
0.08559876680374146,
0.03904866799712181,
-0.2745322585105896,
-0.19280517101287842,
-0.04141861945390701,
-0.2142159640789032,
0.06561022996902466,
-0.0752989798784256,
0.33553919196128845,
-0.1362084150314331,
0.04287951439619064,
0.24395395815372467,
-0.02081700973212719,
0.32823634147644043,
0.3369992673397064,
-0.19198928773403168,
-0.12645478546619415,
-0.25782880187034607,
0.021680889651179314,
0.07443013787269592,
0.10279131680727005,
0.2146652638912201,
-0.13024896383285522,
0.2761426270008087,
0.11681979894638062,
-0.04687786474823952,
0.13497315347194672,
0.2768830955028534,
0.1607486605644226,
0.09730978310108185,
-0.08710483461618423,
-0.19492168724536896,
-0.24817898869514465,
-0.06770182400941849,
-0.12639284133911133,
0.033832818269729614,
-0.12264172732830048,
-0.15556812286376953,
0.5012952089309692,
0.11771140247583389,
-0.06306402385234833,
0.08504264056682587,
0.1083316057920456,
0.5546956062316895,
0.2226146012544632,
-0.361512154340744,
-0.09784542769193649,
-0.2026807963848114,
-0.29057472944259644,
0.24300605058670044,
-0.044859495013952255,
0.07140392810106277,
0.3016992509365082,
0.4403110146522522,
-0.14588326215744019,
0.28476759791374207,
-0.23703400790691376,
-0.04820338264107704,
0.004493688233196735,
0.2456323355436325,
-0.42911073565483093,
0.17971736192703247,
0.05664897710084915,
0.1454114019870758,
-0.10592090338468552,
-0.13402114808559418,
0.2665151357650757,
-0.2023611068725586,
-0.0858607143163681,
0.03506963700056076,
-0.4277082681655884,
-0.02069135755300522,
0.042479585856199265,
0.27019670605659485,
-0.08202481269836426,
0.3326264023780823,
0.1676800549030304,
-0.37415000796318054,
-0.41678276658058167,
-0.4191497266292572,
-0.17610271275043488,
0.15577080845832825,
-0.12762439250946045,
0.4238356351852417,
-0.027194300666451454,
0.20401477813720703,
-0.31492337584495544,
-0.0030217301100492477,
-0.35879629850387573,
0.3453439176082611,
-0.31750527024269104,
0.08617488294839859,
0.08611250668764114,
0.1618039458990097,
0.008850417099893093,
0.3273947238922119,
-0.07747568190097809,
0.24947838485240936,
-0.5126644968986511,
-0.2689235508441925,
0.4422730505466461,
-0.6223298907279968,
-0.20025958120822906,
0.06876694411039352,
0.08116370439529419,
0.19811078906059265,
0.003574419766664505,
-0.27756616473197937,
-0.0704602599143982,
0.16162091493606567,
-0.17459359765052795,
-0.2950669527053833,
-0.1357094794511795,
-0.26254400610923767,
-0.2551769018173218,
-0.07695801556110382,
-0.35992708802223206,
0.1837785840034485,
-0.04530906677246094,
-0.2211911529302597,
-0.2330324947834015
] |
https://github.com/huggingface/datasets/issues/373 | Segmentation fault when loading local JSON dataset as of #372 | @lhoestq
For some reason, I am not able to reproduce the segmentation fault, on pyarrow==0.16.0. Using the exact same environment and file.
Anyhow, I discovered that pyarrow>=0.17.0 is required to read in a JSON file where the pandas structs contain lists. Otherwise, pyarrow complains when attempting to cast the struct:
```py
import nlp
>>> s = nlp.load_dataset("json", data_files="datasets/train-v2.0.json", field="data", split="train")
Using custom data configuration default
>>> s[0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 558, in __getitem__
format_kwargs=self._format_kwargs,
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 498, in _getitem
outputs = self._unnest(self._data.slice(key, 1).to_pandas().to_dict("list"))
File "pyarrow/array.pxi", line 559, in pyarrow.lib._PandasConvertible.to_pandas
File "pyarrow/table.pxi", line 1367, in pyarrow.lib.Table._to_pandas
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 766, in table_to_blockmanager
blocks = _table_to_blocks(options, table, categories, ext_columns_dtypes)
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 1101, in _table_to_blocks
list(extension_columns.keys()))
File "pyarrow/table.pxi", line 881, in pyarrow.lib.table_to_blocks
File "pyarrow/error.pxi", line 105, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Not implemented type for Arrow list to pandas: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>
>>> s
Dataset(schema: {'title': 'string', 'paragraphs': 'list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>'}, num_rows: 35)
```
Upgrading to >=0.17.0 provides the same dataset structure, but accessing the records is possible without the same exception.
| The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.) | 219 | Segmentation fault when loading local JSON dataset as of #372
The last issue was closed (#369) once the #372 update was merged. However, I'm still not able to load a SQuAD formatted JSON file. Instead of the previously recorded pyarrow error, I now get a segmentation fault.
```
dataset = nlp.load_dataset('json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
```
causes
```
Using custom data configuration default
Downloading and preparing dataset json/default (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/XXX/.cache/huggingface/datasets/json/default/0.0.0...
0 tables [00:00, ? tables/s]Segmentation fault (core dumped)
```
where `./datasets/train-v2.0.json` is downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/.
This is consistent with other SQuAD-formatted JSON files.
When attempting to load the dataset again, I get the following:
```
Using custom data configuration default
Traceback (most recent call last):
File "dataloader.py", line 6, in <module>
'json', data_files={nlp.Split.TRAIN: ["./datasets/train-v2.0.json"]}, field='data')
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 382, in download_and_prepare
with incomplete_dir(self._cache_dir) as tmp_data_dir:
File "/home/XXX/.conda/envs/torch/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 368, in incomplete_dir
os.makedirs(tmp_dir)
File "/home/XXX/.conda/envs/torch/lib/python3.7/os.py", line 223, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/home/XXX/.cache/huggingface/datasets/json/default/0.0.0.incomplete'
```
(Not sure if you wanted this in the previous issue #369 or not as it was closed.)
@lhoestq
For some reason, I am not able to reproduce the segmentation fault, on pyarrow==0.16.0. Using the exact same environment and file.
Anyhow, I discovered that pyarrow>=0.17.0 is required to read in a JSON file where the pandas structs contain lists. Otherwise, pyarrow complains when attempting to cast the struct:
```py
import nlp
>>> s = nlp.load_dataset("json", data_files="datasets/train-v2.0.json", field="data", split="train")
Using custom data configuration default
>>> s[0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 558, in __getitem__
format_kwargs=self._format_kwargs,
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/nlp/arrow_dataset.py", line 498, in _getitem
outputs = self._unnest(self._data.slice(key, 1).to_pandas().to_dict("list"))
File "pyarrow/array.pxi", line 559, in pyarrow.lib._PandasConvertible.to_pandas
File "pyarrow/table.pxi", line 1367, in pyarrow.lib.Table._to_pandas
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 766, in table_to_blockmanager
blocks = _table_to_blocks(options, table, categories, ext_columns_dtypes)
File "/home/vegarab/.conda/envs/torch/lib/python3.7/site-packages/pyarrow/pandas_compat.py", line 1101, in _table_to_blocks
list(extension_columns.keys()))
File "pyarrow/table.pxi", line 881, in pyarrow.lib.table_to_blocks
File "pyarrow/error.pxi", line 105, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Not implemented type for Arrow list to pandas: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>
>>> s
Dataset(schema: {'title': 'string', 'paragraphs': 'list<item: struct<qas: list<item: struct<question: string, id: string, answers: list<item: struct<text: string, answer_start: int64>>, is_impossible: bool, plausible_answers: list<item: struct<text: string, answer_start: int64>>>>, context: string>>'}, num_rows: 35)
```
Upgrading to >=0.17.0 provides the same dataset structure, but accessing the records is possible without the same exception.
| [
-0.017292935401201248,
0.2893960773944855,
0.060941580682992935,
0.05787109583616257,
0.22360926866531372,
-0.01654874160885811,
0.3200390636920929,
0.6101843118667603,
-0.40100938081741333,
-0.21304382383823395,
-0.24225422739982605,
0.7714078426361084,
0.13278746604919434,
-0.42659613490104675,
0.148922860622406,
-0.07152826339006424,
0.04622578248381615,
0.1267290562391281,
0.22394028306007385,
0.05367039889097214,
-0.17444954812526703,
0.3416517674922943,
-0.22996830940246582,
0.13204163312911987,
-0.1667519062757492,
0.2660640776157379,
0.006536075845360756,
0.5419238209724426,
-0.07457146048545837,
-0.7302019000053406,
0.29777756333351135,
-0.00932963564991951,
0.15174531936645508,
0.34502479434013367,
-0.00011861127859447151,
0.18453164398670197,
0.3318486213684082,
-0.10963694006204605,
-0.35170140862464905,
0.052129171788692474,
0.28050345182418823,
-0.24146446585655212,
0.3380259573459625,
-0.14538398385047913,
0.0627315416932106,
-0.31198063492774963,
0.0318320170044899,
0.08127447962760925,
0.6866550445556641,
0.15539707243442535,
0.09210093319416046,
0.1377255618572235,
0.07380697131156921,
0.05236603319644928,
0.02077595517039299,
0.06787747889757156,
0.016604134812951088,
0.7200930714607239,
0.5202919244766235,
-0.1260118931531906,
-0.33889901638031006,
-0.07208496332168579,
0.12127216160297394,
-0.03826923295855522,
0.20485687255859375,
-0.06355605274438858,
-0.01384805142879486,
-0.18327093124389648,
0.052465278655290604,
0.11702004075050354,
0.24164614081382751,
-0.23805928230285645,
-0.23284828662872314,
-0.21574902534484863,
0.07478656619787216,
-0.2181091457605362,
0.3773205578327179,
0.277229368686676,
-0.13986001908779144,
0.15234270691871643,
-0.05699673667550087,
0.03446023911237717,
-0.19189298152923584,
0.029310330748558044,
-0.21427331864833832,
0.5192531943321228,
0.12151210010051727,
0.0416845977306366,
0.10512389242649078,
-0.1629461795091629,
-0.1519256830215454,
0.31723931431770325,
-0.26252880692481995,
0.3998278081417084,
-0.3908270001411438,
-0.16861698031425476,
0.11205319315195084,
-0.362652063369751,
0.21630483865737915,
0.09017674624919891,
0.1800878643989563,
0.16720515489578247,
0.21391238272190094,
0.12037011981010437,
0.4853104054927826,
0.054677899926900864,
0.17183536291122437,
0.20253196358680725,
0.15263167023658752,
-0.019629038870334625,
-0.025974441319704056,
0.23977527022361755,
-0.1398816853761673,
-0.2250078022480011,
-0.2135155349969864,
0.02806801348924637,
-0.0268214363604784,
-0.10946649312973022,
0.014883609488606453,
0.06951820850372314,
-0.31477054953575134,
-0.012025943025946617,
0.050985340029001236,
0.08486197888851166,
0.1312861442565918,
0.1926075518131256,
-0.25002795457839966,
0.20476096868515015,
-0.1014544740319252,
-0.17269505560398102,
-0.017575176432728767,
-0.026820369064807892,
-0.30665647983551025,
-0.020666083320975304,
0.4054732322692871,
-0.12256057560443878,
0.11852153390645981,
-0.08125002682209015,
-0.11161546409130096,
-0.22692301869392395,
-0.43347233533859253,
-0.043898019939661026,
0.00766715407371521,
0.1496744304895401,
0.03168030455708504,
-0.07048674672842026,
-0.036723341792821884,
-0.25811031460762024,
-0.1803210973739624,
0.21218934655189514,
-0.35118767619132996,
-0.2851627767086029,
-0.5924198031425476,
0.11839122325181961,
-0.3227139115333557,
-0.005309060215950012,
0.144400954246521,
0.2050791084766388,
0.056660085916519165,
-0.45432591438293457,
-0.1377899944782257,
-0.0893591046333313,
-0.003153182566165924,
-0.22954262793064117,
0.14668314158916473,
0.2523782253265381,
-0.8450281023979187,
-0.2359812706708908,
0.16683757305145264,
-0.0015069693326950073,
0.0830981433391571,
0.5275307893753052,
-0.35141846537590027,
0.2732038199901581,
-0.15309779345989227,
0.5261086225509644,
0.4013669490814209,
-0.27797797322273254,
-0.33690890669822693,
0.24279099702835083,
-0.3994483947753906,
-0.04135706275701523,
-0.2372668981552124,
-0.06557163596153259,
0.2967044711112976,
0.0823332741856575,
0.3412531316280365,
0.4493858814239502,
-0.1155514121055603,
0.14832478761672974,
-0.33256494998931885,
-0.08049905300140381,
0.17264264822006226,
0.36013996601104736,
-0.06741523742675781,
-0.16082435846328735,
-0.02985893189907074,
0.14493077993392944,
0.4040018916130066,
-0.17193202674388885,
-0.020753830671310425,
0.16067291796207428,
0.137290358543396,
-0.017320290207862854,
0.16614244878292084,
-0.10807956010103226,
-0.7758411169052124,
0.1020512804389,
-0.2894934415817261,
0.08079374581575394,
-0.04113234579563141,
0.006053276360034943,
-0.2767830193042755,
-0.11359872668981552,
-0.20613180100917816,
-0.05402376130223274,
0.03211724013090134,
-0.1604943573474884,
-0.034858908504247665,
-0.06829656660556793,
-0.4652935564517975,
-0.15678612887859344,
-0.15475744009017944,
0.3780496120452881,
-0.11537927389144897,
0.4039316177368164,
-0.13026511669158936,
-0.40083321928977966,
0.09279197454452515,
0.36722642183303833,
0.12826183438301086,
-0.26726216077804565,
-0.00681593082845211,
0.3295678496360779,
-0.08044763654470444,
0.13387416303157806,
-0.17082291841506958,
-0.2979549169540405,
0.24760888516902924,
-0.08576124906539917,
-0.12928541004657745,
-0.06358087062835693,
-0.1022326722741127,
-0.08836463838815689,
-0.3246677815914154,
0.33626747131347656,
0.01972571760416031,
-0.03263632208108902,
-0.056773532181978226,
-0.24713614583015442,
0.2981208562850952,
-0.08481107652187347,
-0.12740351259708405,
-0.0282973051071167,
0.017285965383052826,
0.1671067476272583,
-0.01249563880264759,
0.1766582727432251,
-0.1765212118625641,
-0.014475196599960327,
0.3694947063922882,
-0.0651182159781456,
0.035570599138736725,
0.18731805682182312,
0.10087145119905472,
-0.2918992340564728,
-0.024752849712967873,
-0.04872118681669235,
0.3634803891181946,
-0.007697261869907379,
-0.15589140355587006,
-0.003915304318070412,
0.03366772457957268,
-0.018401337787508965,
-0.011545412242412567,
0.04824555665254593,
0.4226096272468567,
0.5049405097961426,
0.3639856278896332,
0.16840191185474396,
-0.2733657956123352,
-0.15487241744995117,
0.1276227831840515,
0.05630408972501755,
-0.3743777871131897,
0.06021815538406372,
-0.2678273618221283,
-0.14459271728992462,
-0.293088436126709,
-0.14269036054611206,
-0.3419746160507202,
-0.1941552609205246,
0.10888779163360596,
-0.03826295956969261,
-0.08678235113620758,
0.20050588250160217,
0.16654638946056366,
0.4000794291496277,
0.10027797520160675,
-0.18636764585971832,
0.038145892322063446,
-0.17725814878940582,
-0.2182420790195465,
-0.04536733031272888,
0.37832245230674744,
-0.0644291341304779,
-0.20677797496318817,
-0.18944235146045685,
-0.27097535133361816,
0.10979176312685013,
-0.4360974133014679,
0.16802868247032166,
-0.009155366569757462,
0.19459065794944763,
0.022265620529651642,
0.23686353862285614,
-0.147968128323555,
-0.36693522334098816,
0.28148242831230164,
-0.04621180519461632,
-0.2511284351348877,
0.00040096603333950043,
-0.10349632054567337,
0.13379180431365967,
-0.2878111004829407,
-0.3897343575954437,
-0.2453109472990036,
-0.227113276720047,
0.4359026551246643,
0.07529547810554504,
0.13726647198200226,
0.2004077136516571,
-0.20206838846206665,
0.01474254485219717,
-0.23706023395061493,
-0.21109458804130554,
0.04947827011346817,
-0.1857472062110901,
0.20523396134376526,
-0.2988071143627167,
-0.1417258232831955,
-0.021901685744524002,
0.09425181150436401,
0.16700530052185059,
-0.2243582159280777,
-0.16041654348373413,
0.1161191388964653,
0.17135782539844513,
0.24600833654403687,
-0.3234412968158722,
-0.2597641944885254,
0.2524788975715637,
-0.2297290712594986,
0.052428387105464935,
0.19720995426177979,
-0.36020925641059875,
-0.09371232241392136,
0.5185642242431641,
0.19824960827827454,
-0.26570558547973633,
0.2363279163837433,
0.05972133204340935,
0.8267533183097839,
-0.13744008541107178,
-0.16253790259361267,
0.12583282589912415,
0.03038007579743862,
0.12194845080375671,
-0.14891257882118225,
-0.035248931497335434,
0.3921872675418854,
-0.03979837894439697,
-0.11294013261795044,
0.24759550392627716,
0.16245195269584656,
-0.5424820184707642,
-0.005967728793621063,
0.15809737145900726,
-0.5473142862319946,
-0.16832345724105835,
0.2632967531681061,
0.555120587348938,
-0.08508653193712234,
-0.04293389245867729,
0.029451429843902588,
0.002924814820289612,
-0.23155075311660767,
-0.05983665958046913,
0.22425155341625214,
0.27071303129196167,
0.0932336077094078,
-0.5434249043464661,
-0.3422016501426697,
-0.04475945979356766,
-0.020403414964675903,
0.12437023967504501,
0.46455663442611694,
-0.0012723878026008606,
-0.20624318718910217,
0.027220875024795532,
-0.2641845643520355,
0.3476611375808716,
0.26207470893859863,
0.35182780027389526,
0.3491414189338684,
0.32933080196380615,
-0.07430104911327362,
-0.3046778440475464,
0.14519022405147552,
0.47711288928985596,
0.6556545495986938,
0.4198318123817444,
-0.10166966170072556,
-0.13171114027500153,
0.28487417101860046,
0.08596163243055344,
-0.14478135108947754,
-0.07338382303714752,
-0.22651486098766327,
-0.07947787642478943,
0.003026111051440239,
0.03935079276561737,
-0.041760798543691635,
0.39739441871643066,
0.06032101809978485,
0.1337607502937317,
0.42367687821388245,
-0.2695534825325012,
-0.24267567694187164,
0.3894134759902954,
0.10912413150072098,
0.07678131759166718,
0.04680414870381355,
0.2670256495475769,
-0.0012025795876979828,
0.3386416733264923,
0.4461457431316376,
0.2894243597984314,
-0.20294621586799622,
0.2748577892780304,
-0.006987389642745256,
0.22130072116851807,
0.46919623017311096,
0.20125867426395416,
-0.18309062719345093,
-0.14047062397003174,
-0.12718693912029266,
0.023022837936878204,
-0.4001844525337219,
0.13784129917621613,
-0.307553768157959,
-0.22677819430828094,
0.2155749648809433,
0.20091675221920013,
-0.09558314085006714,
-0.06338608264923096,
-0.02899754047393799,
-0.06045711040496826,
-0.015704549849033356,
0.5079237222671509,
0.16421635448932648,
0.7734215259552002,
-0.04519962519407272,
0.10620619356632233,
0.2713398337364197,
-0.11777021735906601,
0.40123337507247925,
-0.6511290073394775,
0.36042606830596924,
-0.43772202730178833,
0.26961836218833923,
0.12142503261566162,
-0.12912026047706604,
0.16803914308547974,
0.18424205482006073,
0.00671980157494545,
-0.054778214544057846,
-0.14762499928474426,
0.2945111095905304,
-0.02576306276023388,
0.33889755606651306,
0.17994776368141174,
-0.30595386028289795,
-0.5036044120788574,
0.060792066156864166,
-0.37010788917541504,
0.03455856069922447,
-0.1490776538848877,
-0.16940253973007202,
-0.08521300554275513,
-0.12656302750110626,
-0.2838006317615509,
0.27698490023612976,
0.12989217042922974,
0.014315811917185783,
0.5128051042556763,
-0.2600136399269104,
0.15981611609458923,
0.3644203245639801,
-0.150142639875412,
0.053529031574726105,
-0.002931840717792511,
0.36155277490615845,
-0.12342961877584457,
0.1117699071764946,
0.22975914180278778,
0.019883856177330017,
0.2879815995693207,
-0.16016104817390442,
-0.04068177193403244,
-0.050391197204589844,
-0.07457561790943146,
-0.27969449758529663,
-0.06919239461421967,
0.39419376850128174,
0.13750892877578735,
-0.1656411737203598,
0.012916380539536476,
-0.12453880906105042,
0.12291926145553589,
-0.049302034080028534,
0.05420312657952309,
0.01064547523856163,
-0.14916297793388367,
-0.027174033224582672,
0.15864507853984833,
-0.06981586664915085,
0.08643671870231628,
0.608910858631134,
-0.10844961553812027,
-0.3196195662021637,
0.30646252632141113,
0.30267563462257385,
0.005280476063489914,
-0.22048041224479675,
0.2212643325328827,
0.05046805366873741,
-0.3886027932167053,
-0.1376264989376068,
-0.19892218708992004,
-0.0684240534901619,
0.03468042239546776,
0.10222826153039932,
0.21728578209877014,
-0.10179037600755692,
0.0036830008029937744,
-0.5508980751037598,
-0.30310967564582825,
0.19118639826774597,
-0.07676942646503448,
-0.18136955797672272,
0.11923191696405411,
0.3389422595500946,
0.015513172373175621,
0.2547386586666107,
-0.20348533987998962,
0.32593321800231934,
-0.37330880761146545,
0.14416098594665527,
-0.563596248626709,
-0.2371910810470581,
-0.003535565687343478,
-0.23051342368125916,
0.018074387684464455,
0.24548952281475067,
0.07344727218151093,
-0.10744056850671768,
-0.015552161261439323,
0.15939371287822723,
0.1383395791053772,
-0.0180854182690382,
-0.16946640610694885,
-0.00020727328956127167,
0.10750927031040192,
0.17355968058109283,
0.10350057482719421,
-0.1377708911895752,
0.14676421880722046,
0.1609334498643875,
0.29537999629974365,
0.10649140179157257,
0.19602839648723602,
0.09358853846788406,
0.029574118554592133,
0.39053821563720703,
0.058881644159555435,
0.2412940412759781,
-0.20396076142787933,
0.03343268483877182,
-0.3554684817790985,
0.18905995786190033,
0.01001390814781189,
0.28048333525657654,
0.08382789045572281,
-0.5798283815383911,
-0.05440349131822586,
-0.07205303013324738,
0.3013576865196228,
0.5721238255500793,
-0.36651474237442017,
0.11240676045417786,
0.18876996636390686,
0.10417407751083374,
-0.009935840964317322,
-0.25940877199172974,
0.7478204965591431,
-0.035664379596710205,
-0.3024628460407257,
0.01803499460220337,
0.14284679293632507,
-0.09839732199907303,
0.13151915371418,
0.13897210359573364,
0.5670433640480042,
0.19193539023399353,
0.19833457469940186,
0.21702063083648682,
-0.22543442249298096,
-0.02375100925564766,
0.13978669047355652,
-0.07900013029575348,
0.18169553577899933,
0.25413215160369873,
-0.19390419125556946,
0.06331808865070343,
0.11781709641218185,
0.10370814055204391,
0.23295000195503235,
-0.3413435220718384,
-0.35574883222579956,
0.0997505635023117,
0.1379033327102661,
0.010600466281175613,
0.178500235080719,
0.8641586303710938,
-0.1908433735370636,
-0.4217522442340851,
-0.08530361205339432,
0.0879029780626297,
-0.308180034160614,
0.08736097812652588,
-0.4969727098941803,
-0.17892974615097046,
-0.04054275527596474,
0.1543644219636917,
-0.3017125725746155,
-0.03292277455329895,
0.08559876680374146,
0.03904866799712181,
-0.2745322585105896,
-0.19280517101287842,
-0.04141861945390701,
-0.2142159640789032,
0.06561022996902466,
-0.0752989798784256,
0.33553919196128845,
-0.1362084150314331,
0.04287951439619064,
0.24395395815372467,
-0.02081700973212719,
0.32823634147644043,
0.3369992673397064,
-0.19198928773403168,
-0.12645478546619415,
-0.25782880187034607,
0.021680889651179314,
0.07443013787269592,
0.10279131680727005,
0.2146652638912201,
-0.13024896383285522,
0.2761426270008087,
0.11681979894638062,
-0.04687786474823952,
0.13497315347194672,
0.2768830955028534,
0.1607486605644226,
0.09730978310108185,
-0.08710483461618423,
-0.19492168724536896,
-0.24817898869514465,
-0.06770182400941849,
-0.12639284133911133,
0.033832818269729614,
-0.12264172732830048,
-0.15556812286376953,
0.5012952089309692,
0.11771140247583389,
-0.06306402385234833,
0.08504264056682587,
0.1083316057920456,
0.5546956062316895,
0.2226146012544632,
-0.361512154340744,
-0.09784542769193649,
-0.2026807963848114,
-0.29057472944259644,
0.24300605058670044,
-0.044859495013952255,
0.07140392810106277,
0.3016992509365082,
0.4403110146522522,
-0.14588326215744019,
0.28476759791374207,
-0.23703400790691376,
-0.04820338264107704,
0.004493688233196735,
0.2456323355436325,
-0.42911073565483093,
0.17971736192703247,
0.05664897710084915,
0.1454114019870758,
-0.10592090338468552,
-0.13402114808559418,
0.2665151357650757,
-0.2023611068725586,
-0.0858607143163681,
0.03506963700056076,
-0.4277082681655884,
-0.02069135755300522,
0.042479585856199265,
0.27019670605659485,
-0.08202481269836426,
0.3326264023780823,
0.1676800549030304,
-0.37415000796318054,
-0.41678276658058167,
-0.4191497266292572,
-0.17610271275043488,
0.15577080845832825,
-0.12762439250946045,
0.4238356351852417,
-0.027194300666451454,
0.20401477813720703,
-0.31492337584495544,
-0.0030217301100492477,
-0.35879629850387573,
0.3453439176082611,
-0.31750527024269104,
0.08617488294839859,
0.08611250668764114,
0.1618039458990097,
0.008850417099893093,
0.3273947238922119,
-0.07747568190097809,
0.24947838485240936,
-0.5126644968986511,
-0.2689235508441925,
0.4422730505466461,
-0.6223298907279968,
-0.20025958120822906,
0.06876694411039352,
0.08116370439529419,
0.19811078906059265,
0.003574419766664505,
-0.27756616473197937,
-0.0704602599143982,
0.16162091493606567,
-0.17459359765052795,
-0.2950669527053833,
-0.1357094794511795,
-0.26254400610923767,
-0.2551769018173218,
-0.07695801556110382,
-0.35992708802223206,
0.1837785840034485,
-0.04530906677246094,
-0.2211911529302597,
-0.2330324947834015
] |
https://github.com/huggingface/datasets/issues/369 | can't load local dataset: pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries | I am able to reproduce this with the official SQuAD `train-v2.0.json` file downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/ | Trying to load a local SQuAD-formatted dataset (from a JSON file, about 60MB):
```
dataset = nlp.load_dataset(path='json', data_files={nlp.Split.TRAIN: ["./path/to/file.json"]})
```
causes
```
Traceback (most recent call last):
File "dataloader.py", line 9, in <module>
["./path/to/file.json"]})
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/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/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 483, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 719, in _prepare_split
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/tqdm/std.py", line 1129, in __iter__
for obj in iterable:
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/datasets/json/88c1bc5c68489f7eda549ed05a5a738527c613b3e7a4ee3524d9d233353a949b/json.py", line 53, in _generate_tables
file, read_options=self.config.pa_read_options, parse_options=self.config.pa_parse_options,
File "pyarrow/_json.pyx", line 191, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)
```
I haven't been able to find any reports of this specific pyarrow error here or elsewhere. | 16 | can't load local dataset: pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries
Trying to load a local SQuAD-formatted dataset (from a JSON file, about 60MB):
```
dataset = nlp.load_dataset(path='json', data_files={nlp.Split.TRAIN: ["./path/to/file.json"]})
```
causes
```
Traceback (most recent call last):
File "dataloader.py", line 9, in <module>
["./path/to/file.json"]})
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/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/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 483, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 719, in _prepare_split
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/tqdm/std.py", line 1129, in __iter__
for obj in iterable:
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/datasets/json/88c1bc5c68489f7eda549ed05a5a738527c613b3e7a4ee3524d9d233353a949b/json.py", line 53, in _generate_tables
file, read_options=self.config.pa_read_options, parse_options=self.config.pa_parse_options,
File "pyarrow/_json.pyx", line 191, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)
```
I haven't been able to find any reports of this specific pyarrow error here or elsewhere.
I am able to reproduce this with the official SQuAD `train-v2.0.json` file downloaded directly from https://rajpurkar.github.io/SQuAD-explorer/ | [
-0.22482575476169586,
0.20798107981681824,
0.013098672032356262,
0.137779101729393,
0.27810388803482056,
-0.25971972942352295,
0.31692254543304443,
0.4687691032886505,
-0.16914071142673492,
-0.14901100099086761,
0.0023770402185618877,
0.42034220695495605,
0.0690721943974495,
-0.017227903008461,
0.11224015802145004,
-0.1478206217288971,
-0.20492491126060486,
0.2665918469429016,
-0.005143903195858002,
-0.06588039547204971,
0.00040775910019874573,
0.24116137623786926,
-0.13989919424057007,
0.2639465630054474,
-0.19671766459941864,
-0.013389760628342628,
0.18712876737117767,
0.4891849458217621,
-0.2591634690761566,
-0.5631479620933533,
0.31532222032546997,
-0.2961507737636566,
0.09546324610710144,
0.11060123145580292,
-0.00011665558849927038,
0.3696364164352417,
0.18905583024024963,
-0.016439110040664673,
-0.3757404685020447,
-0.3551529049873352,
0.24148857593536377,
-0.49045616388320923,
0.468680739402771,
-0.11423680931329727,
-0.07642494142055511,
-0.35081416368484497,
-0.22236232459545135,
-0.07387338578701019,
0.4803351163864136,
0.1195225939154625,
0.15140482783317566,
0.4681631624698639,
-0.1832386702299118,
0.10652253031730652,
0.11930856108665466,
0.12603279948234558,
-0.16245675086975098,
0.46101000905036926,
0.37597715854644775,
-0.34501707553863525,
-0.38741230964660645,
-0.1435597985982895,
-0.10035434365272522,
0.32436180114746094,
0.19294556975364685,
0.009374832734465599,
-0.039124175906181335,
0.12592589855194092,
0.1254613697528839,
0.17662307620048523,
0.3256267011165619,
-0.34965574741363525,
-0.06322532147169113,
-0.07454435527324677,
0.062252651900053024,
-0.02953914739191532,
0.18109382688999176,
0.3203284442424774,
-0.34672120213508606,
0.12482345104217529,
-0.30605024099349976,
0.19640550017356873,
-0.10670460015535355,
0.30124789476394653,
-0.19134391844272614,
0.32962727546691895,
0.06280551105737686,
0.29736825823783875,
0.10613824427127838,
0.14810514450073242,
0.1631401628255844,
0.21270981431007385,
-0.03438990190625191,
0.21243244409561157,
-0.2666904330253601,
0.22800862789154053,
0.10138709098100662,
-0.17232024669647217,
0.23792529106140137,
0.10137312859296799,
0.24167916178703308,
0.042447835206985474,
0.21409595012664795,
0.2787175476551056,
0.3740180432796478,
-0.01434798538684845,
0.1454513669013977,
0.07650125026702881,
-0.01759503036737442,
0.0274802315980196,
-0.10416095703840256,
0.12155291438102722,
-0.19911909103393555,
-0.3780231773853302,
0.032499950379133224,
-0.1924571990966797,
0.27498793601989746,
-0.18713265657424927,
-0.2933083176612854,
0.09409528225660324,
-0.49356362223625183,
-0.06081155687570572,
0.12270775437355042,
0.27678972482681274,
0.21184688806533813,
0.22857367992401123,
-0.1052112877368927,
0.21644383668899536,
-0.09289571642875671,
-0.17121674120426178,
-0.20248626172542572,
0.05922982096672058,
-0.3199090361595154,
-0.15517599880695343,
0.4050975441932678,
-0.24703511595726013,
0.24933966994285583,
-0.013082550838589668,
0.18184974789619446,
0.009778931736946106,
0.1716861128807068,
0.02500918135046959,
0.2165830433368683,
0.17607703804969788,
0.01811036840081215,
0.09828463941812515,
0.17131569981575012,
-0.23047494888305664,
-0.3545805811882019,
0.32592684030532837,
0.025360777974128723,
-0.3207995891571045,
-0.31503117084503174,
0.09863746166229248,
-0.1578408032655716,
0.09825858473777771,
0.17552170157432556,
0.05404765531420708,
0.10672833025455475,
-0.10624000430107117,
0.09626495838165283,
-0.11802606284618378,
-0.07118988037109375,
-0.298201322555542,
0.38274919986724854,
0.28991544246673584,
-0.9532220363616943,
-0.11767972260713577,
0.19751061499118805,
-0.07246454060077667,
0.09692871570587158,
0.5727168321609497,
-0.5708692669868469,
0.18338632583618164,
-0.05601256340742111,
0.23903803527355194,
0.5799359679222107,
-0.35368192195892334,
-0.5187262892723083,
0.4949885308742523,
-0.3832619786262512,
-0.16501732170581818,
-0.1425090730190277,
-0.041300516575574875,
-0.021062375977635384,
0.2826714515686035,
0.09454630315303802,
0.6836755275726318,
-0.13772423565387726,
0.1846751719713211,
-0.3309656083583832,
-0.16554902493953705,
0.23167626559734344,
0.45297756791114807,
0.0024094320833683014,
-0.3553723394870758,
0.015315234661102295,
0.1048194095492363,
0.07430567592382431,
-0.004173103719949722,
0.2683129608631134,
0.22353163361549377,
-0.19146278500556946,
-0.25161468982696533,
0.0803215503692627,
-0.01260126382112503,
-0.7056598663330078,
0.08932014554738998,
-0.06401394307613373,
-0.03998115658760071,
-0.21934442222118378,
0.027673110365867615,
-0.3893599212169647,
0.29254135489463806,
-0.1446143239736557,
-0.006223149597644806,
0.04182695597410202,
-0.010542236268520355,
0.06708577275276184,
-0.09036561846733093,
-0.3402925729751587,
-0.1490328460931778,
0.07747108489274979,
-0.0015936135314404964,
0.051444049924612045,
0.41176652908325195,
-0.012966426089406013,
-0.2781400978565216,
0.003356032073497772,
0.35500529408454895,
-0.017327643930912018,
-0.12722323834896088,
-0.10794626176357269,
0.28357836604118347,
-0.12930472195148468,
0.12034936994314194,
-0.0040451958775520325,
-0.3351650834083557,
0.2203945815563202,
-0.3095669746398926,
0.16773444414138794,
-0.02052983269095421,
-0.044735074043273926,
-0.12870493531227112,
-0.22015506029129028,
0.40326738357543945,
-0.19098550081253052,
0.19561156630516052,
-0.08545838296413422,
-0.1480925977230072,
0.21472184360027313,
-0.12402595579624176,
-0.058636292815208435,
0.009710833430290222,
0.17843666672706604,
0.26569345593452454,
0.5207025408744812,
0.27067506313323975,
-0.24277569353580475,
0.089143767952919,
0.3627486228942871,
-0.03712240606546402,
-0.04015740752220154,
0.04382900893688202,
-0.22232764959335327,
-0.12894675135612488,
0.10810698568820953,
-0.10660618543624878,
0.18686001002788544,
0.18893000483512878,
0.0756322592496872,
-0.13921548426151276,
-0.25221771001815796,
-0.21511214971542358,
-0.0319143608212471,
-0.04362061619758606,
0.13008491694927216,
0.40387439727783203,
0.4485641419887543,
-0.13823416829109192,
-0.41005510091781616,
-0.0738445445895195,
0.23459146916866302,
0.24506962299346924,
-0.2443230301141739,
0.03739310801029205,
-0.3147737681865692,
-0.04993846267461777,
-0.1750924289226532,
-0.4401914179325104,
-0.2645342946052551,
-0.19996780157089233,
-0.05510962754487991,
0.23107406497001648,
0.01317029818892479,
0.1373824179172516,
-0.011633412912487984,
0.24568186700344086,
0.10087394714355469,
-0.4298449456691742,
-0.011996570974588394,
-0.5101568102836609,
-0.369527131319046,
0.032828811556100845,
0.46733343601226807,
0.4385606646537781,
0.17867739498615265,
0.1814604550600052,
-0.07011359930038452,
0.009079569950699806,
-0.09918153285980225,
0.21156048774719238,
0.030458679422736168,
0.17554257810115814,
0.003632970154285431,
0.33442652225494385,
-0.4671182632446289,
-0.31139543652534485,
0.6026251316070557,
-0.09136591851711273,
-0.27217522263526917,
0.19935089349746704,
-0.32507002353668213,
-0.11247327923774719,
-0.20696251094341278,
-0.14989244937896729,
-0.2904262840747833,
-0.3914506435394287,
0.33656054735183716,
-0.010899929329752922,
0.035600338131189346,
-0.12894661724567413,
0.13384422659873962,
0.2838369905948639,
0.09498494863510132,
-0.21167315542697906,
-0.038375288248062134,
-0.4520309865474701,
0.2738114595413208,
-0.11524265259504318,
-0.2694823443889618,
-0.07102815061807632,
0.04096488654613495,
0.28166067600250244,
0.0627753734588623,
-0.34811705350875854,
0.002461233176290989,
0.07311726361513138,
0.5344305038452148,
-0.19076460599899292,
-0.18764717876911163,
0.36793068051338196,
-0.05793066695332527,
0.02268935553729534,
0.07160285860300064,
-0.2526073455810547,
0.1822901964187622,
0.04394971579313278,
0.03374064713716507,
-0.1755046248435974,
0.41759809851646423,
0.1020742654800415,
0.9232444167137146,
-0.26433709263801575,
-0.1505662202835083,
0.3155279755592346,
-0.0246917512267828,
0.08685705065727234,
-0.12689679861068726,
-0.30847692489624023,
0.16493049263954163,
0.07749611884355545,
-0.07690231502056122,
0.10230153799057007,
0.06037024408578873,
-0.3845147490501404,
-0.04491441324353218,
-0.02145249769091606,
-0.27463510632514954,
-0.09941639751195908,
0.3585594892501831,
0.10344010591506958,
-0.1083901897072792,
-0.010701488703489304,
-0.08026572316884995,
-0.11796720325946808,
-0.19185170531272888,
-0.11345307528972626,
0.03339117020368576,
-0.03179963678121567,
0.187759131193161,
-0.4592277705669403,
-0.11704068630933762,
-0.08757639676332474,
-0.0683353990316391,
0.3628217279911041,
0.31587815284729004,
-0.014781881123781204,
-0.18538647890090942,
0.3408864736557007,
-0.3085052967071533,
0.5129214525222778,
0.23422929644584656,
0.1925593763589859,
0.2869606912136078,
0.07059410214424133,
-0.6148577928543091,
-0.15415214002132416,
0.12002412974834442,
0.411972314119339,
0.4449237883090973,
0.3248274326324463,
-0.10015213489532471,
-0.31707680225372314,
0.1256498396396637,
0.1735461950302124,
-0.03309992700815201,
-0.20279242098331451,
-0.37469056248664856,
-0.30732274055480957,
-0.4436316192150116,
0.0817548856139183,
0.023822544142603874,
0.2499205321073532,
0.42110204696655273,
-0.08072580397129059,
0.2893454432487488,
-0.10606544464826584,
-0.2722734212875366,
0.24798227846622467,
0.14614111185073853,
-0.0633544996380806,
0.07268142700195312,
0.24356263875961304,
0.3455856740474701,
0.097690649330616,
0.6214660406112671,
0.18695373833179474,
-0.09888316690921783,
0.14821484684944153,
0.2310013324022293,
0.3008664548397064,
0.2950551509857178,
0.1793142408132553,
-0.05730459839105606,
-0.11760681867599487,
-0.016650520265102386,
0.16208516061306,
0.17810021340847015,
0.0401497446000576,
-0.2675120234489441,
0.1096053346991539,
0.18654341995716095,
0.2891850173473358,
-0.2739397883415222,
0.16746585071086884,
0.5299267768859863,
-0.052352771162986755,
0.0692543089389801,
0.407467246055603,
0.11665796488523483,
0.7771907448768616,
-0.2644689679145813,
0.1479293256998062,
0.5714966654777527,
-0.23054642975330353,
0.3164289891719818,
-0.2754620909690857,
0.005959314294159412,
-0.5188854932785034,
0.25294041633605957,
0.0849902480840683,
-0.23986110091209412,
-0.009612634778022766,
0.30802834033966064,
0.09509164094924927,
-0.14094196259975433,
-0.10818439722061157,
0.34537753462791443,
-0.002621990628540516,
0.2207472324371338,
0.05085024982690811,
-0.27143362164497375,
-0.29267773032188416,
0.03534314036369324,
-0.3116571307182312,
-0.04296765848994255,
-0.06491149961948395,
-0.16191554069519043,
-0.09690648317337036,
-0.10017935931682587,
-0.15647166967391968,
0.40746450424194336,
-0.055670589208602905,
0.24109753966331482,
0.3928503692150116,
-0.41134899854660034,
-0.08382748067378998,
0.04728715121746063,
-0.02236337959766388,
-0.18439888954162598,
-0.18510988354682922,
0.24539969861507416,
0.03516305238008499,
-0.0871749222278595,
-0.007609416730701923,
0.12672598659992218,
0.21115896105766296,
-0.19058316946029663,
-0.3152864873409271,
-0.00971086323261261,
-0.1107606589794159,
-0.3773854970932007,
0.009842097759246826,
0.26984941959381104,
0.10937429219484329,
-0.07063619792461395,
-0.21267938613891602,
-0.17997369170188904,
0.16430670022964478,
0.028387922793626785,
0.05987939611077309,
-0.02702910453081131,
0.15624041855335236,
-0.2532775402069092,
0.32926589250564575,
-0.3607405424118042,
0.04626226797699928,
0.49632054567337036,
-0.10143280774354935,
0.1640525758266449,
0.5222314596176147,
0.395812451839447,
-0.10784568637609482,
-0.23447704315185547,
-0.04178214073181152,
0.567614734172821,
-0.48135945200920105,
-0.08085279911756516,
-0.06544265896081924,
-0.0923314020037651,
0.12456268072128296,
0.2647170126438141,
0.33031344413757324,
0.009108059108257294,
-0.09378732740879059,
-0.5132710933685303,
-0.3523998558521271,
0.21944423019886017,
-0.11409564316272736,
-0.09980644285678864,
0.2764384150505066,
0.5523669123649597,
0.11982028186321259,
0.3457690179347992,
-0.22479137778282166,
0.19646720588207245,
-0.07673924416303635,
0.17334946990013123,
-0.2937335968017578,
-0.2949860990047455,
0.06170981749892235,
-0.04911649972200394,
0.04363103210926056,
0.07558140158653259,
-0.11148805171251297,
-0.216048002243042,
-0.054255805909633636,
0.10995721817016602,
0.11589188873767853,
-0.15387839078903198,
-0.19242170453071594,
-0.148654043674469,
0.03360913321375847,
-0.03417666256427765,
-0.011412648484110832,
-0.03168373927474022,
-0.06363250315189362,
0.00923933181911707,
0.13757379353046417,
-0.04955921322107315,
-0.14321653544902802,
0.023806361481547356,
-0.025123193860054016,
0.051309045404195786,
0.04362209141254425,
0.24763469398021698,
0.02796689234673977,
-0.01728111505508423,
-0.23150725662708282,
0.06548149138689041,
0.24108053743839264,
0.1861473023891449,
0.2242755889892578,
-0.28751957416534424,
-0.13635118305683136,
-0.17973540723323822,
0.1812472641468048,
0.39071348309516907,
-0.14776870608329773,
-0.00576314702630043,
0.017056163400411606,
0.1338837742805481,
-0.1501576006412506,
-0.15731856226921082,
0.26227113604545593,
0.05300341174006462,
-0.01683514565229416,
-0.010082773864269257,
0.12979404628276825,
-0.2084873765707016,
-0.08111780881881714,
0.15750977396965027,
0.39929091930389404,
0.04018983617424965,
-0.47322532534599304,
0.3452998399734497,
-0.20741130411624908,
-0.16162730753421783,
0.1562608778476715,
0.08473950624465942,
0.3768479824066162,
-0.045259296894073486,
-0.1026146337389946,
0.12143911421298981,
-0.12787744402885437,
0.25600728392601013,
-0.04290352016687393,
-0.4255729913711548,
-0.1164732426404953,
0.24219179153442383,
0.15267270803451538,
-0.31065332889556885,
0.2070235013961792,
0.7946998476982117,
0.2270715832710266,
-0.3669963777065277,
0.07564377784729004,
0.1639971137046814,
-0.16514280438423157,
0.03235500678420067,
-0.7381467223167419,
-0.17389389872550964,
-0.17259511351585388,
0.18013307452201843,
-0.17728866636753082,
-0.020124666392803192,
0.34509193897247314,
0.10262354463338852,
-0.06901022791862488,
-0.4073929786682129,
0.0018848218023777008,
0.10026612132787704,
-0.32392776012420654,
-0.2377600073814392,
0.40127336978912354,
0.146952822804451,
-0.1587475687265396,
-0.034648407250642776,
-0.1281304508447647,
0.3428950011730194,
0.2950405478477478,
-0.3094576597213745,
-0.1638813614845276,
-0.08777625858783722,
-0.1351439654827118,
-0.20769400894641876,
0.11109665036201477,
0.14669299125671387,
0.10998432338237762,
0.3763887584209442,
0.13007380068302155,
-0.1291118562221527,
0.09818045794963837,
0.18589110672473907,
-0.12911391258239746,
0.0844411551952362,
-0.09479107707738876,
-0.0002227090299129486,
-0.22818812727928162,
-0.03613460063934326,
-0.20551708340644836,
-0.1976291537284851,
-0.21897290647029877,
0.13185887038707733,
0.17305688560009003,
0.16357636451721191,
-0.22636628150939941,
0.05028759688138962,
0.012758717872202396,
0.7020564675331116,
0.3510781228542328,
0.10766182094812393,
-0.21429254114627838,
-0.32356804609298706,
-0.5967860817909241,
0.35620588064193726,
-0.3159344792366028,
0.11464159190654755,
0.36483991146087646,
0.41218915581703186,
0.14820292592048645,
0.4271438717842102,
-0.1436985284090042,
0.41206595301628113,
-0.04026798903942108,
-0.12031424045562744,
-0.40844374895095825,
-0.03165662661194801,
0.06768757104873657,
-0.028870275244116783,
-0.16150744259357452,
-0.4222983419895172,
0.2162655144929886,
-0.1609286516904831,
0.027339734137058258,
-0.18581272661685944,
-0.37275105714797974,
0.09867987036705017,
0.054537802934646606,
0.10939216613769531,
-0.0871366485953331,
0.3187768757343292,
0.08580885827541351,
0.04065018147230148,
-0.20399698615074158,
-0.21249668300151825,
-0.247727170586586,
0.33657267689704895,
0.023068897426128387,
0.33014628291130066,
-0.19649535417556763,
0.13636808097362518,
-0.10941211879253387,
0.19717980921268463,
-0.33856815099716187,
0.17880909144878387,
0.014905238524079323,
-0.14951658248901367,
-0.12818384170532227,
0.2249830812215805,
-0.09454482048749924,
0.08979974687099457,
0.03975660353899002,
0.21635586023330688,
-0.40168309211730957,
-0.20319600403308868,
0.4354739189147949,
-0.5085439085960388,
-0.1987224519252777,
0.2857087552547455,
-0.027096793055534363,
0.4125845730304718,
-0.11640440672636032,
-0.43139445781707764,
-0.07544542849063873,
0.22398318350315094,
-0.23462477326393127,
-0.12034681439399719,
0.056372348219156265,
-0.014573488384485245,
0.08309155702590942,
-0.1923094093799591,
-0.0018166005611419678,
0.08006304502487183,
-0.20202969014644623,
-0.269135445356369,
-0.35401469469070435
] |
https://github.com/huggingface/datasets/issues/369 | can't load local dataset: pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries | I am facing this issue in transformers library 3.0.2 while reading a csv using datasets.
Is this fixed in latest version?
I updated the latest version 4.0.1 but still getting this error. What could cause this error? | Trying to load a local SQuAD-formatted dataset (from a JSON file, about 60MB):
```
dataset = nlp.load_dataset(path='json', data_files={nlp.Split.TRAIN: ["./path/to/file.json"]})
```
causes
```
Traceback (most recent call last):
File "dataloader.py", line 9, in <module>
["./path/to/file.json"]})
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/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/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 483, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 719, in _prepare_split
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/tqdm/std.py", line 1129, in __iter__
for obj in iterable:
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/datasets/json/88c1bc5c68489f7eda549ed05a5a738527c613b3e7a4ee3524d9d233353a949b/json.py", line 53, in _generate_tables
file, read_options=self.config.pa_read_options, parse_options=self.config.pa_parse_options,
File "pyarrow/_json.pyx", line 191, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)
```
I haven't been able to find any reports of this specific pyarrow error here or elsewhere. | 37 | can't load local dataset: pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries
Trying to load a local SQuAD-formatted dataset (from a JSON file, about 60MB):
```
dataset = nlp.load_dataset(path='json', data_files={nlp.Split.TRAIN: ["./path/to/file.json"]})
```
causes
```
Traceback (most recent call last):
File "dataloader.py", line 9, in <module>
["./path/to/file.json"]})
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/load.py", line 524, in load_dataset
save_infos=save_infos,
File "/home/XXX/.conda/envs/torch/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/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 483, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/builder.py", line 719, in _prepare_split
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/tqdm/std.py", line 1129, in __iter__
for obj in iterable:
File "/home/XXX/.conda/envs/torch/lib/python3.7/site-packages/nlp/datasets/json/88c1bc5c68489f7eda549ed05a5a738527c613b3e7a4ee3524d9d233353a949b/json.py", line 53, in _generate_tables
file, read_options=self.config.pa_read_options, parse_options=self.config.pa_parse_options,
File "pyarrow/_json.pyx", line 191, in pyarrow._json.read_json
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: straddling object straddles two block boundaries (try to increase block size?)
```
I haven't been able to find any reports of this specific pyarrow error here or elsewhere.
I am facing this issue in transformers library 3.0.2 while reading a csv using datasets.
Is this fixed in latest version?
I updated the latest version 4.0.1 but still getting this error. What could cause this error? | [
-0.22482575476169586,
0.20798107981681824,
0.013098672032356262,
0.137779101729393,
0.27810388803482056,
-0.25971972942352295,
0.31692254543304443,
0.4687691032886505,
-0.16914071142673492,
-0.14901100099086761,
0.0023770402185618877,
0.42034220695495605,
0.0690721943974495,
-0.017227903008461,
0.11224015802145004,
-0.1478206217288971,
-0.20492491126060486,
0.2665918469429016,
-0.005143903195858002,
-0.06588039547204971,
0.00040775910019874573,
0.24116137623786926,
-0.13989919424057007,
0.2639465630054474,
-0.19671766459941864,
-0.013389760628342628,
0.18712876737117767,
0.4891849458217621,
-0.2591634690761566,
-0.5631479620933533,
0.31532222032546997,
-0.2961507737636566,
0.09546324610710144,
0.11060123145580292,
-0.00011665558849927038,
0.3696364164352417,
0.18905583024024963,
-0.016439110040664673,
-0.3757404685020447,
-0.3551529049873352,
0.24148857593536377,
-0.49045616388320923,
0.468680739402771,
-0.11423680931329727,
-0.07642494142055511,
-0.35081416368484497,
-0.22236232459545135,
-0.07387338578701019,
0.4803351163864136,
0.1195225939154625,
0.15140482783317566,
0.4681631624698639,
-0.1832386702299118,
0.10652253031730652,
0.11930856108665466,
0.12603279948234558,
-0.16245675086975098,
0.46101000905036926,
0.37597715854644775,
-0.34501707553863525,
-0.38741230964660645,
-0.1435597985982895,
-0.10035434365272522,
0.32436180114746094,
0.19294556975364685,
0.009374832734465599,
-0.039124175906181335,
0.12592589855194092,
0.1254613697528839,
0.17662307620048523,
0.3256267011165619,
-0.34965574741363525,
-0.06322532147169113,
-0.07454435527324677,
0.062252651900053024,
-0.02953914739191532,
0.18109382688999176,
0.3203284442424774,
-0.34672120213508606,
0.12482345104217529,
-0.30605024099349976,
0.19640550017356873,
-0.10670460015535355,
0.30124789476394653,
-0.19134391844272614,
0.32962727546691895,
0.06280551105737686,
0.29736825823783875,
0.10613824427127838,
0.14810514450073242,
0.1631401628255844,
0.21270981431007385,
-0.03438990190625191,
0.21243244409561157,
-0.2666904330253601,
0.22800862789154053,
0.10138709098100662,
-0.17232024669647217,
0.23792529106140137,
0.10137312859296799,
0.24167916178703308,
0.042447835206985474,
0.21409595012664795,
0.2787175476551056,
0.3740180432796478,
-0.01434798538684845,
0.1454513669013977,
0.07650125026702881,
-0.01759503036737442,
0.0274802315980196,
-0.10416095703840256,
0.12155291438102722,
-0.19911909103393555,
-0.3780231773853302,
0.032499950379133224,
-0.1924571990966797,
0.27498793601989746,
-0.18713265657424927,
-0.2933083176612854,
0.09409528225660324,
-0.49356362223625183,
-0.06081155687570572,
0.12270775437355042,
0.27678972482681274,
0.21184688806533813,
0.22857367992401123,
-0.1052112877368927,
0.21644383668899536,
-0.09289571642875671,
-0.17121674120426178,
-0.20248626172542572,
0.05922982096672058,
-0.3199090361595154,
-0.15517599880695343,
0.4050975441932678,
-0.24703511595726013,
0.24933966994285583,
-0.013082550838589668,
0.18184974789619446,
0.009778931736946106,
0.1716861128807068,
0.02500918135046959,
0.2165830433368683,
0.17607703804969788,
0.01811036840081215,
0.09828463941812515,
0.17131569981575012,
-0.23047494888305664,
-0.3545805811882019,
0.32592684030532837,
0.025360777974128723,
-0.3207995891571045,
-0.31503117084503174,
0.09863746166229248,
-0.1578408032655716,
0.09825858473777771,
0.17552170157432556,
0.05404765531420708,
0.10672833025455475,
-0.10624000430107117,
0.09626495838165283,
-0.11802606284618378,
-0.07118988037109375,
-0.298201322555542,
0.38274919986724854,
0.28991544246673584,
-0.9532220363616943,
-0.11767972260713577,
0.19751061499118805,
-0.07246454060077667,
0.09692871570587158,
0.5727168321609497,
-0.5708692669868469,
0.18338632583618164,
-0.05601256340742111,
0.23903803527355194,
0.5799359679222107,
-0.35368192195892334,
-0.5187262892723083,
0.4949885308742523,
-0.3832619786262512,
-0.16501732170581818,
-0.1425090730190277,
-0.041300516575574875,
-0.021062375977635384,
0.2826714515686035,
0.09454630315303802,
0.6836755275726318,
-0.13772423565387726,
0.1846751719713211,
-0.3309656083583832,
-0.16554902493953705,
0.23167626559734344,
0.45297756791114807,
0.0024094320833683014,
-0.3553723394870758,
0.015315234661102295,
0.1048194095492363,
0.07430567592382431,
-0.004173103719949722,
0.2683129608631134,
0.22353163361549377,
-0.19146278500556946,
-0.25161468982696533,
0.0803215503692627,
-0.01260126382112503,
-0.7056598663330078,
0.08932014554738998,
-0.06401394307613373,
-0.03998115658760071,
-0.21934442222118378,
0.027673110365867615,
-0.3893599212169647,
0.29254135489463806,
-0.1446143239736557,
-0.006223149597644806,
0.04182695597410202,
-0.010542236268520355,
0.06708577275276184,
-0.09036561846733093,
-0.3402925729751587,
-0.1490328460931778,
0.07747108489274979,
-0.0015936135314404964,
0.051444049924612045,
0.41176652908325195,
-0.012966426089406013,
-0.2781400978565216,
0.003356032073497772,
0.35500529408454895,
-0.017327643930912018,
-0.12722323834896088,
-0.10794626176357269,
0.28357836604118347,
-0.12930472195148468,
0.12034936994314194,
-0.0040451958775520325,
-0.3351650834083557,
0.2203945815563202,
-0.3095669746398926,
0.16773444414138794,
-0.02052983269095421,
-0.044735074043273926,
-0.12870493531227112,
-0.22015506029129028,
0.40326738357543945,
-0.19098550081253052,
0.19561156630516052,
-0.08545838296413422,
-0.1480925977230072,
0.21472184360027313,
-0.12402595579624176,
-0.058636292815208435,
0.009710833430290222,
0.17843666672706604,
0.26569345593452454,
0.5207025408744812,
0.27067506313323975,
-0.24277569353580475,
0.089143767952919,
0.3627486228942871,
-0.03712240606546402,
-0.04015740752220154,
0.04382900893688202,
-0.22232764959335327,
-0.12894675135612488,
0.10810698568820953,
-0.10660618543624878,
0.18686001002788544,
0.18893000483512878,
0.0756322592496872,
-0.13921548426151276,
-0.25221771001815796,
-0.21511214971542358,
-0.0319143608212471,
-0.04362061619758606,
0.13008491694927216,
0.40387439727783203,
0.4485641419887543,
-0.13823416829109192,
-0.41005510091781616,
-0.0738445445895195,
0.23459146916866302,
0.24506962299346924,
-0.2443230301141739,
0.03739310801029205,
-0.3147737681865692,
-0.04993846267461777,
-0.1750924289226532,
-0.4401914179325104,
-0.2645342946052551,
-0.19996780157089233,
-0.05510962754487991,
0.23107406497001648,
0.01317029818892479,
0.1373824179172516,
-0.011633412912487984,
0.24568186700344086,
0.10087394714355469,
-0.4298449456691742,
-0.011996570974588394,
-0.5101568102836609,
-0.369527131319046,
0.032828811556100845,
0.46733343601226807,
0.4385606646537781,
0.17867739498615265,
0.1814604550600052,
-0.07011359930038452,
0.009079569950699806,
-0.09918153285980225,
0.21156048774719238,
0.030458679422736168,
0.17554257810115814,
0.003632970154285431,
0.33442652225494385,
-0.4671182632446289,
-0.31139543652534485,
0.6026251316070557,
-0.09136591851711273,
-0.27217522263526917,
0.19935089349746704,
-0.32507002353668213,
-0.11247327923774719,
-0.20696251094341278,
-0.14989244937896729,
-0.2904262840747833,
-0.3914506435394287,
0.33656054735183716,
-0.010899929329752922,
0.035600338131189346,
-0.12894661724567413,
0.13384422659873962,
0.2838369905948639,
0.09498494863510132,
-0.21167315542697906,
-0.038375288248062134,
-0.4520309865474701,
0.2738114595413208,
-0.11524265259504318,
-0.2694823443889618,
-0.07102815061807632,
0.04096488654613495,
0.28166067600250244,
0.0627753734588623,
-0.34811705350875854,
0.002461233176290989,
0.07311726361513138,
0.5344305038452148,
-0.19076460599899292,
-0.18764717876911163,
0.36793068051338196,
-0.05793066695332527,
0.02268935553729534,
0.07160285860300064,
-0.2526073455810547,
0.1822901964187622,
0.04394971579313278,
0.03374064713716507,
-0.1755046248435974,
0.41759809851646423,
0.1020742654800415,
0.9232444167137146,
-0.26433709263801575,
-0.1505662202835083,
0.3155279755592346,
-0.0246917512267828,
0.08685705065727234,
-0.12689679861068726,
-0.30847692489624023,
0.16493049263954163,
0.07749611884355545,
-0.07690231502056122,
0.10230153799057007,
0.06037024408578873,
-0.3845147490501404,
-0.04491441324353218,
-0.02145249769091606,
-0.27463510632514954,
-0.09941639751195908,
0.3585594892501831,
0.10344010591506958,
-0.1083901897072792,
-0.010701488703489304,
-0.08026572316884995,
-0.11796720325946808,
-0.19185170531272888,
-0.11345307528972626,
0.03339117020368576,
-0.03179963678121567,
0.187759131193161,
-0.4592277705669403,
-0.11704068630933762,
-0.08757639676332474,
-0.0683353990316391,
0.3628217279911041,
0.31587815284729004,
-0.014781881123781204,
-0.18538647890090942,
0.3408864736557007,
-0.3085052967071533,
0.5129214525222778,
0.23422929644584656,
0.1925593763589859,
0.2869606912136078,
0.07059410214424133,
-0.6148577928543091,
-0.15415214002132416,
0.12002412974834442,
0.411972314119339,
0.4449237883090973,
0.3248274326324463,
-0.10015213489532471,
-0.31707680225372314,
0.1256498396396637,
0.1735461950302124,
-0.03309992700815201,
-0.20279242098331451,
-0.37469056248664856,
-0.30732274055480957,
-0.4436316192150116,
0.0817548856139183,
0.023822544142603874,
0.2499205321073532,
0.42110204696655273,
-0.08072580397129059,
0.2893454432487488,
-0.10606544464826584,
-0.2722734212875366,
0.24798227846622467,
0.14614111185073853,
-0.0633544996380806,
0.07268142700195312,
0.24356263875961304,
0.3455856740474701,
0.097690649330616,
0.6214660406112671,
0.18695373833179474,
-0.09888316690921783,
0.14821484684944153,
0.2310013324022293,
0.3008664548397064,
0.2950551509857178,
0.1793142408132553,
-0.05730459839105606,
-0.11760681867599487,
-0.016650520265102386,
0.16208516061306,
0.17810021340847015,
0.0401497446000576,
-0.2675120234489441,
0.1096053346991539,
0.18654341995716095,
0.2891850173473358,
-0.2739397883415222,
0.16746585071086884,
0.5299267768859863,
-0.052352771162986755,
0.0692543089389801,
0.407467246055603,
0.11665796488523483,
0.7771907448768616,
-0.2644689679145813,
0.1479293256998062,
0.5714966654777527,
-0.23054642975330353,
0.3164289891719818,
-0.2754620909690857,
0.005959314294159412,
-0.5188854932785034,
0.25294041633605957,
0.0849902480840683,
-0.23986110091209412,
-0.009612634778022766,
0.30802834033966064,
0.09509164094924927,
-0.14094196259975433,
-0.10818439722061157,
0.34537753462791443,
-0.002621990628540516,
0.2207472324371338,
0.05085024982690811,
-0.27143362164497375,
-0.29267773032188416,
0.03534314036369324,
-0.3116571307182312,
-0.04296765848994255,
-0.06491149961948395,
-0.16191554069519043,
-0.09690648317337036,
-0.10017935931682587,
-0.15647166967391968,
0.40746450424194336,
-0.055670589208602905,
0.24109753966331482,
0.3928503692150116,
-0.41134899854660034,
-0.08382748067378998,
0.04728715121746063,
-0.02236337959766388,
-0.18439888954162598,
-0.18510988354682922,
0.24539969861507416,
0.03516305238008499,
-0.0871749222278595,
-0.007609416730701923,
0.12672598659992218,
0.21115896105766296,
-0.19058316946029663,
-0.3152864873409271,
-0.00971086323261261,
-0.1107606589794159,
-0.3773854970932007,
0.009842097759246826,
0.26984941959381104,
0.10937429219484329,
-0.07063619792461395,
-0.21267938613891602,
-0.17997369170188904,
0.16430670022964478,
0.028387922793626785,
0.05987939611077309,
-0.02702910453081131,
0.15624041855335236,
-0.2532775402069092,
0.32926589250564575,
-0.3607405424118042,
0.04626226797699928,
0.49632054567337036,
-0.10143280774354935,
0.1640525758266449,
0.5222314596176147,
0.395812451839447,
-0.10784568637609482,
-0.23447704315185547,
-0.04178214073181152,
0.567614734172821,
-0.48135945200920105,
-0.08085279911756516,
-0.06544265896081924,
-0.0923314020037651,
0.12456268072128296,
0.2647170126438141,
0.33031344413757324,
0.009108059108257294,
-0.09378732740879059,
-0.5132710933685303,
-0.3523998558521271,
0.21944423019886017,
-0.11409564316272736,
-0.09980644285678864,
0.2764384150505066,
0.5523669123649597,
0.11982028186321259,
0.3457690179347992,
-0.22479137778282166,
0.19646720588207245,
-0.07673924416303635,
0.17334946990013123,
-0.2937335968017578,
-0.2949860990047455,
0.06170981749892235,
-0.04911649972200394,
0.04363103210926056,
0.07558140158653259,
-0.11148805171251297,
-0.216048002243042,
-0.054255805909633636,
0.10995721817016602,
0.11589188873767853,
-0.15387839078903198,
-0.19242170453071594,
-0.148654043674469,
0.03360913321375847,
-0.03417666256427765,
-0.011412648484110832,
-0.03168373927474022,
-0.06363250315189362,
0.00923933181911707,
0.13757379353046417,
-0.04955921322107315,
-0.14321653544902802,
0.023806361481547356,
-0.025123193860054016,
0.051309045404195786,
0.04362209141254425,
0.24763469398021698,
0.02796689234673977,
-0.01728111505508423,
-0.23150725662708282,
0.06548149138689041,
0.24108053743839264,
0.1861473023891449,
0.2242755889892578,
-0.28751957416534424,
-0.13635118305683136,
-0.17973540723323822,
0.1812472641468048,
0.39071348309516907,
-0.14776870608329773,
-0.00576314702630043,
0.017056163400411606,
0.1338837742805481,
-0.1501576006412506,
-0.15731856226921082,
0.26227113604545593,
0.05300341174006462,
-0.01683514565229416,
-0.010082773864269257,
0.12979404628276825,
-0.2084873765707016,
-0.08111780881881714,
0.15750977396965027,
0.39929091930389404,
0.04018983617424965,
-0.47322532534599304,
0.3452998399734497,
-0.20741130411624908,
-0.16162730753421783,
0.1562608778476715,
0.08473950624465942,
0.3768479824066162,
-0.045259296894073486,
-0.1026146337389946,
0.12143911421298981,
-0.12787744402885437,
0.25600728392601013,
-0.04290352016687393,
-0.4255729913711548,
-0.1164732426404953,
0.24219179153442383,
0.15267270803451538,
-0.31065332889556885,
0.2070235013961792,
0.7946998476982117,
0.2270715832710266,
-0.3669963777065277,
0.07564377784729004,
0.1639971137046814,
-0.16514280438423157,
0.03235500678420067,
-0.7381467223167419,
-0.17389389872550964,
-0.17259511351585388,
0.18013307452201843,
-0.17728866636753082,
-0.020124666392803192,
0.34509193897247314,
0.10262354463338852,
-0.06901022791862488,
-0.4073929786682129,
0.0018848218023777008,
0.10026612132787704,
-0.32392776012420654,
-0.2377600073814392,
0.40127336978912354,
0.146952822804451,
-0.1587475687265396,
-0.034648407250642776,
-0.1281304508447647,
0.3428950011730194,
0.2950405478477478,
-0.3094576597213745,
-0.1638813614845276,
-0.08777625858783722,
-0.1351439654827118,
-0.20769400894641876,
0.11109665036201477,
0.14669299125671387,
0.10998432338237762,
0.3763887584209442,
0.13007380068302155,
-0.1291118562221527,
0.09818045794963837,
0.18589110672473907,
-0.12911391258239746,
0.0844411551952362,
-0.09479107707738876,
-0.0002227090299129486,
-0.22818812727928162,
-0.03613460063934326,
-0.20551708340644836,
-0.1976291537284851,
-0.21897290647029877,
0.13185887038707733,
0.17305688560009003,
0.16357636451721191,
-0.22636628150939941,
0.05028759688138962,
0.012758717872202396,
0.7020564675331116,
0.3510781228542328,
0.10766182094812393,
-0.21429254114627838,
-0.32356804609298706,
-0.5967860817909241,
0.35620588064193726,
-0.3159344792366028,
0.11464159190654755,
0.36483991146087646,
0.41218915581703186,
0.14820292592048645,
0.4271438717842102,
-0.1436985284090042,
0.41206595301628113,
-0.04026798903942108,
-0.12031424045562744,
-0.40844374895095825,
-0.03165662661194801,
0.06768757104873657,
-0.028870275244116783,
-0.16150744259357452,
-0.4222983419895172,
0.2162655144929886,
-0.1609286516904831,
0.027339734137058258,
-0.18581272661685944,
-0.37275105714797974,
0.09867987036705017,
0.054537802934646606,
0.10939216613769531,
-0.0871366485953331,
0.3187768757343292,
0.08580885827541351,
0.04065018147230148,
-0.20399698615074158,
-0.21249668300151825,
-0.247727170586586,
0.33657267689704895,
0.023068897426128387,
0.33014628291130066,
-0.19649535417556763,
0.13636808097362518,
-0.10941211879253387,
0.19717980921268463,
-0.33856815099716187,
0.17880909144878387,
0.014905238524079323,
-0.14951658248901367,
-0.12818384170532227,
0.2249830812215805,
-0.09454482048749924,
0.08979974687099457,
0.03975660353899002,
0.21635586023330688,
-0.40168309211730957,
-0.20319600403308868,
0.4354739189147949,
-0.5085439085960388,
-0.1987224519252777,
0.2857087552547455,
-0.027096793055534363,
0.4125845730304718,
-0.11640440672636032,
-0.43139445781707764,
-0.07544542849063873,
0.22398318350315094,
-0.23462477326393127,
-0.12034681439399719,
0.056372348219156265,
-0.014573488384485245,
0.08309155702590942,
-0.1923094093799591,
-0.0018166005611419678,
0.08006304502487183,
-0.20202969014644623,
-0.269135445356369,
-0.35401469469070435
] |
https://github.com/huggingface/datasets/issues/368 | load_metric can't acquire lock anymore | I found that, in the same process (or the same interactive session), if I do
import nlp
m1 = nlp.load_metric('glue', 'mrpc')
m2 = nlp.load_metric('glue', 'sst2')
I will get the same error `ValueError: Cannot acquire lock, caching file might be used by another process, you should setup a unique 'experiment_id'`. | I can't load metric (glue) anymore after an error in a previous run. I even removed the whole cache folder `/home/XXX/.cache/huggingface/`, and the issue persisted. What are the steps to fix this?
Traceback (most recent call last):
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/metric.py", line 101, in __init__
self.filelock.acquire(timeout=1)
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/filelock.py", line 278, in acquire
raise Timeout(self._lock_file)
filelock.Timeout: The file lock '/home/XXX/.cache/huggingface/metrics/glue/1.0.0/1-glue-0.arrow.lock' could not be acquired.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "examples_huggingface_nlp.py", line 268, in <module>
main()
File "examples_huggingface_nlp.py", line 242, in main
dataset, metric = get_dataset_metric(glue_task)
File "examples_huggingface_nlp.py", line 77, in get_dataset_metric
metric = nlp.load_metric('glue', glue_config, experiment_id=1)
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/load.py", line 440, in load_metric
**metric_init_kwargs,
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/metric.py", line 104, in __init__
"Cannot acquire lock, caching file might be used by another process, "
ValueError: Cannot acquire lock, caching file might be used by another process, you should setup a unique 'experiment_id' for this run.
I0709 15:54:41.008838 139854118430464 filelock.py:318] Lock 139852058030936 released on /home/XXX/.cache/huggingface/metrics/glue/1.0.0/1-glue-0.arrow.lock
| 49 | load_metric can't acquire lock anymore
I can't load metric (glue) anymore after an error in a previous run. I even removed the whole cache folder `/home/XXX/.cache/huggingface/`, and the issue persisted. What are the steps to fix this?
Traceback (most recent call last):
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/metric.py", line 101, in __init__
self.filelock.acquire(timeout=1)
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/filelock.py", line 278, in acquire
raise Timeout(self._lock_file)
filelock.Timeout: The file lock '/home/XXX/.cache/huggingface/metrics/glue/1.0.0/1-glue-0.arrow.lock' could not be acquired.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "examples_huggingface_nlp.py", line 268, in <module>
main()
File "examples_huggingface_nlp.py", line 242, in main
dataset, metric = get_dataset_metric(glue_task)
File "examples_huggingface_nlp.py", line 77, in get_dataset_metric
metric = nlp.load_metric('glue', glue_config, experiment_id=1)
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/load.py", line 440, in load_metric
**metric_init_kwargs,
File "/home/XXX/miniconda3/envs/ML-DL-py-3.7/lib/python3.7/site-packages/nlp/metric.py", line 104, in __init__
"Cannot acquire lock, caching file might be used by another process, "
ValueError: Cannot acquire lock, caching file might be used by another process, you should setup a unique 'experiment_id' for this run.
I0709 15:54:41.008838 139854118430464 filelock.py:318] Lock 139852058030936 released on /home/XXX/.cache/huggingface/metrics/glue/1.0.0/1-glue-0.arrow.lock
I found that, in the same process (or the same interactive session), if I do
import nlp
m1 = nlp.load_metric('glue', 'mrpc')
m2 = nlp.load_metric('glue', 'sst2')
I will get the same error `ValueError: Cannot acquire lock, caching file might be used by another process, you should setup a unique 'experiment_id'`. | [
0.03870690241456032,
-0.11587455868721008,
0.07235050201416016,
0.3124670386314392,
0.3204583525657654,
0.029448293149471283,
0.09009451419115067,
0.07020606845617294,
0.5023589730262756,
-0.07859206199645996,
-0.18506638705730438,
0.03060748055577278,
-0.04806631803512573,
-0.26145076751708984,
-0.031660690903663635,
-0.19438762962818146,
-0.20079970359802246,
-0.08951708674430847,
-0.09162959456443787,
0.12280389666557312,
-0.20724818110466003,
0.39855456352233887,
-0.17513629794120789,
-0.14073452353477478,
-0.3555808663368225,
-0.17093773186206818,
-0.08941514790058136,
0.3625311553478241,
-0.09417597949504852,
-0.4639354944229126,
0.15803615748882294,
0.03600013256072998,
0.06577302515506744,
0.09587293118238449,
-0.00012539878662209958,
0.009709209203720093,
0.4328874945640564,
0.020783646032214165,
0.015818068757653236,
-0.27422666549682617,
-0.047208040952682495,
-0.5386417508125305,
0.2313127964735031,
-0.03811509162187576,
0.05535304546356201,
0.15427818894386292,
0.01284860074520111,
-0.37357640266418457,
0.3929036855697632,
0.2302972972393036,
0.11773994565010071,
0.42187926173210144,
0.2450520545244217,
-0.3009931743144989,
-0.2283039391040802,
-0.5178459882736206,
0.12268783897161484,
0.9323647618293762,
0.19839221239089966,
-0.434035986661911,
-0.1681252121925354,
0.1428891271352768,
-0.030659502372145653,
0.13573847711086273,
0.4364428222179413,
-0.10171257704496384,
0.36280199885368347,
-0.11461734771728516,
-0.02682994306087494,
0.008282400667667389,
0.033586807548999786,
-0.1131080910563469,
-0.26630258560180664,
-0.19670408964157104,
0.39408665895462036,
-0.30954331159591675,
0.32627153396606445,
-0.2071039080619812,
0.1107340008020401,
0.06145431846380234,
0.02285890094935894,
-0.30174729228019714,
0.03113386780023575,
0.11034791171550751,
-0.07048684358596802,
0.13144567608833313,
-0.030456334352493286,
0.1059606522321701,
0.4824415147304535,
0.11586447060108185,
-0.13433589041233063,
0.464641809463501,
-0.2977825403213501,
0.25259265303611755,
-0.22304503619670868,
0.31280553340911865,
0.021529443562030792,
0.4838051199913025,
0.07956525683403015,
0.047242987900972366,
0.00580202229321003,
0.016882525756955147,
0.34056419134140015,
0.1478578895330429,
-0.03656573221087456,
0.5148500800132751,
0.4060501158237457,
-0.08032102882862091,
0.19382962584495544,
0.2729448974132538,
0.007887456566095352,
-0.020290717482566833,
-0.04505171999335289,
-0.3363504111766815,
0.14898037910461426,
0.16320887207984924,
0.04522252082824707,
-0.08892030268907547,
0.01548825390636921,
0.025928962975740433,
0.0870654508471489,
-0.15910181403160095,
0.15204134583473206,
0.16087400913238525,
-0.027613747864961624,
0.2953258156776428,
0.10744979977607727,
0.2743982672691345,
-0.010698387399315834,
-0.15472987294197083,
-0.19289526343345642,
0.3185301125049591,
-0.326541930437088,
0.2753771245479584,
0.2608951926231384,
-0.29961133003234863,
0.3550320863723755,
0.08811384439468384,
0.08849989622831345,
-0.40252453088760376,
-0.06977993994951248,
0.04757871851325035,
-0.2875436246395111,
0.21502920985221863,
-0.14250099658966064,
0.0949409157037735,
0.19553418457508087,
-0.29128819704055786,
-0.011083371937274933,
-0.3652181327342987,
-0.4574071168899536,
-0.3263043165206909,
-0.051117755472660065,
0.012352367863059044,
-0.40498608350753784,
0.059776317328214645,
0.05966619774699211,
0.14302466809749603,
0.026786766946315765,
0.021842483431100845,
-0.03017226606607437,
-0.10873894393444061,
-0.15208753943443298,
-0.20625609159469604,
0.28136393427848816,
0.5562860369682312,
0.0976206511259079,
-0.3056703805923462,
-0.18789085745811462,
-0.10799187421798706,
-0.138228178024292,
0.23493190109729767,
0.045894406735897064,
0.09709484875202179,
-0.22420677542686462,
0.08440814912319183,
0.26185518503189087,
-0.7882763743400574,
-0.6193394064903259,
-0.009567385539412498,
-0.1618579924106598,
-0.04468206316232681,
0.054886192083358765,
0.08881919831037521,
0.11809220165014267,
0.09939806163311005,
0.33302921056747437,
0.09242983907461166,
0.0943373367190361,
-0.4169377088546753,
-0.21936993300914764,
0.005256636068224907,
0.07153479754924774,
0.07797372341156006,
0.2852444052696228,
0.26501449942588806,
0.18155822157859802,
0.3520876467227936,
0.023122195154428482,
0.3938887417316437,
-0.22763873636722565,
0.4092957377433777,
-0.05563439801335335,
-0.22204627096652985,
0.08672314137220383,
-0.18730008602142334,
-0.3539675176143646,
0.4585725963115692,
-0.5009275674819946,
-0.05613142251968384,
0.03236187994480133,
0.07080496847629547,
-0.4591319262981415,
0.030920380726456642,
0.11429372429847717,
-0.03225724771618843,
0.030795514583587646,
0.045482851564884186,
0.025971323251724243,
0.06012270227074623,
-0.10537493973970413,
0.5104599595069885,
-0.03190664201974869,
0.2045421004295349,
-0.2858418822288513,
-0.09222479164600372,
0.09688164293766022,
-0.05965059995651245,
-0.007458541542291641,
0.3105424642562866,
0.494872510433197,
-0.05913030728697777,
0.046971797943115234,
0.5281552672386169,
0.05105160176753998,
0.2600198984146118,
-0.011912129819393158,
-0.014790281653404236,
0.2664887011051178,
0.01343599334359169,
-0.011577783152461052,
-0.5587471127510071,
-0.06142497807741165,
-0.061917081475257874,
0.33160412311553955,
0.07984738051891327,
0.19301831722259521,
0.10276801884174347,
-0.1634514033794403,
0.19388827681541443,
0.046291545033454895,
-0.21899977326393127,
-0.19786125421524048,
-0.20393143594264984,
0.5161858797073364,
-0.12915362417697906,
0.07388721406459808,
0.01570253074169159,
0.23416933417320251,
-0.059990234673023224,
0.2643684446811676,
0.09042905271053314,
0.17639538645744324,
-0.11435271054506302,
-0.17479360103607178,
-0.08786658942699432,
-0.2505740523338318,
0.31274256110191345,
0.34782519936561584,
-0.040870796889066696,
0.09777939319610596,
0.10519488155841827,
0.030446253716945648,
-0.12657414376735687,
0.014402605593204498,
0.07624184340238571,
-0.02172126993536949,
0.3686545789241791,
0.1944018304347992,
0.09898760169744492,
-0.03848842903971672,
0.15850712358951569,
0.11610064655542374,
0.21835491061210632,
-0.20391376316547394,
0.00983826257288456,
-0.39640122652053833,
0.010285686701536179,
0.22886012494564056,
-0.00391340721398592,
-0.48214787244796753,
-0.4297884404659271,
-0.07503834366798401,
0.188799187541008,
0.3223305344581604,
0.06095775216817856,
0.17922943830490112,
0.2290392816066742,
-0.19215981662273407,
0.2414928674697876,
-0.15535560250282288,
-0.4484230577945709,
-0.037955231964588165,
-0.16159528493881226,
0.14373625814914703,
-0.09566868841648102,
0.11457504332065582,
-0.1248922199010849,
-0.17337343096733093,
-0.14027410745620728,
-0.257428914308548,
0.023972203955054283,
0.08430194854736328,
0.714580774307251,
0.21294203400611877,
0.008894972503185272,
-0.0010661669075489044,
0.12307417392730713,
0.3546615540981293,
-0.12755383551120758,
0.05241865664720535,
0.29118815064430237,
-0.3696334660053253,
0.14639022946357727,
-0.26851677894592285,
0.16161486506462097,
-0.5034717321395874,
-0.40566813945770264,
0.29106849431991577,
-0.1105198860168457,
-0.221645787358284,
0.11726945638656616,
-0.27922725677490234,
0.3122064769268036,
-0.2726820707321167,
0.1251492202281952,
-0.27742111682891846,
-0.19233044981956482,
0.2103397101163864,
0.004333872813731432,
-0.09001979231834412,
-0.24961812794208527,
0.10208198428153992,
0.1823790967464447,
-0.13991378247737885,
-0.3926427960395813,
-0.751495897769928,
-0.1141086220741272,
0.09870545566082001,
-0.24744924902915955,
-0.11255306005477905,
0.14397475123405457,
-0.35129454731941223,
0.04142076522111893,
-0.1349378228187561,
-0.0026849769055843353,
0.10423747450113297,
0.07578572630882263,
0.201283261179924,
0.06577298045158386,
0.2217901349067688,
0.16611987352371216,
0.5310277938842773,
-0.04429655522108078,
-0.10216206312179565,
0.34652042388916016,
0.0595611110329628,
0.47674474120140076,
0.192714124917984,
-0.3890654742717743,
-0.19300538301467896,
0.14170239865779877,
0.24698962271213531,
-0.2544844150543213,
0.03484063968062401,
0.24232104420661926,
-0.18836358189582825,
-0.3141649067401886,
-0.22127199172973633,
-0.09363539516925812,
-0.1036059707403183,
-0.11230751872062683,
0.16383549571037292,
0.14029254019260406,
0.26037806272506714,
-0.1485799103975296,
-0.07927118241786957,
0.27714893221855164,
0.3417012095451355,
0.03674473240971565,
0.160574272274971,
0.05458976700901985,
-0.1954057812690735,
-0.42826414108276367,
0.3973339796066284,
-0.004979786463081837,
0.5216323733329773,
-0.23945802450180054,
0.059433333575725555,
0.10460015386343002,
-0.10415010154247284,
0.535988986492157,
0.09700732678174973,
0.12711644172668457,
0.1798013299703598,
0.038261547684669495,
-0.31574931740760803,
-0.030422797426581383,
0.02993849292397499,
0.1489216536283493,
0.49487391114234924,
0.7226877212524414,
-0.26600009202957153,
-0.11925691366195679,
-0.2603636384010315,
0.16508948802947998,
-0.3048897087574005,
-0.20248182117938995,
-0.20635053515434265,
-0.32368800044059753,
-0.1710151880979538,
0.012342147529125214,
-0.11533668637275696,
0.3378129303455353,
0.4723195433616638,
0.21611328423023224,
-0.1360190510749817,
-0.47864168882369995,
-0.040785789489746094,
-0.0727953314781189,
0.41265153884887695,
-0.08692973107099533,
0.08805158734321594,
0.42312195897102356,
-0.14878709614276886,
-0.29827162623405457,
0.1877465397119522,
-0.11369368433952332,
0.12133105844259262,
0.2333734929561615,
0.1737685650587082,
0.10539039224386215,
0.4253493547439575,
-0.15975475311279297,
0.22598102688789368,
0.12646552920341492,
0.09557414799928665,
-0.09797410666942596,
-0.03150574862957001,
0.12030904740095139,
-0.023831158876419067,
0.029559951275587082,
0.2193058282136917,
0.3600984215736389,
0.20235033333301544,
-0.18787309527397156,
0.41808709502220154,
-0.04311881959438324,
-0.03507019579410553,
-0.09727828204631805,
-0.10008726269006729,
0.8022156357765198,
-0.1595781445503235,
-0.2619307041168213,
0.029874520376324654,
-0.14579904079437256,
0.6428800225257874,
-0.10421028733253479,
0.17611120641231537,
-0.074292853474617,
-0.39324551820755005,
0.044179610908031464,
-0.2175307422876358,
0.06575892120599747,
-0.41211605072021484,
0.051431383937597275,
0.2708453834056854,
-0.4369359612464905,
-0.033561449497938156,
-0.0650879442691803,
0.183689683675766,
-0.6214593648910522,
0.05313282832503319,
0.030129751190543175,
0.0401381254196167,
-0.3123498558998108,
0.3805071711540222,
-0.20364847779273987,
-0.05506299436092377,
0.27703893184661865,
-0.05538433790206909,
-0.3994784951210022,
-0.06540444493293762,
-0.28448519110679626,
0.07089045643806458,
0.23908625543117523,
-0.07043922692537308,
-0.1759532243013382,
-0.06105663999915123,
0.3143351972103119,
0.1398046463727951,
-0.29943349957466125,
0.34381431341171265,
-0.09171321243047714,
-0.2954321801662445,
-0.0030778248328715563,
0.2781410813331604,
0.11662064492702484,
0.0029359012842178345,
-0.09253253787755966,
0.04636726155877113,
-0.17334677278995514,
-0.11075364798307419,
-0.11448664218187332,
0.1817106008529663,
0.05339080095291138,
0.31834447383880615,
-0.1433253288269043,
-0.019132070243358612,
0.23422586917877197,
-0.14942511916160583,
0.025310425087809563,
0.25521260499954224,
-0.004086686298251152,
-0.1048370972275734,
-0.2064366191625595,
-0.2550046443939209,
0.16374599933624268,
0.560722291469574,
-0.05819278955459595,
-0.5073874592781067,
0.21650679409503937,
0.016463052481412888,
-0.06396204233169556,
-0.10163472592830658,
-0.34678709506988525,
-0.16905924677848816,
-0.420592337846756,
0.24293409287929535,
0.15471860766410828,
-0.01931377500295639,
0.004005367401987314,
-0.18582426011562347,
0.48433470726013184,
-0.283083975315094,
-0.001989666372537613,
-0.7558658719062805,
-0.29733744263648987,
0.2834344208240509,
-0.28532806038856506,
-0.013660375028848648,
-0.11488845199346542,
0.047176335006952286,
-0.2104177176952362,
0.4024430215358734,
-0.17258557677268982,
0.1829892098903656,
-0.2871602773666382,
-0.24515071511268616,
0.5845178365707397,
-0.06546618789434433,
0.16766640543937683,
-0.047593966126441956,
0.01980752684175968,
0.4047594666481018,
-0.12404201924800873,
-0.04975853115320206,
-0.19738706946372986,
0.17970216274261475,
-0.08501553535461426,
0.14076761901378632,
0.018371988087892532,
-0.27614307403564453,
0.24591486155986786,
0.08954905718564987,
-0.08117824792861938,
0.20467889308929443,
0.06132936850190163,
0.03840505704283714,
0.0426199734210968,
0.5235898494720459,
0.2501634359359741,
0.2672940492630005,
0.009063802659511566,
-0.0032572001218795776,
0.006250524427741766,
0.0792049914598465,
-0.059647779911756516,
0.18289846181869507,
-0.46566665172576904,
-0.13772308826446533,
-0.0974082350730896,
-0.13614001870155334,
0.1559680700302124,
0.1431014984846115,
-0.10165373980998993,
0.01903998665511608,
0.12524276971817017,
-0.12168237566947937,
0.0666980966925621,
0.034236446022987366,
-0.030002180486917496,
0.08695445209741592,
-0.24675948917865753,
-0.06682103127241135,
-0.08705221116542816,
0.3180519640445709,
-0.13109569251537323,
0.07351988554000854,
0.3424260914325714,
-0.09613025933504105,
0.143281951546669,
0.11181194335222244,
0.4970526099205017,
0.007596826180815697,
0.020559659227728844,
-0.20673078298568726,
0.13445544242858887,
-0.26917603611946106,
0.4959377646446228,
-0.04285808280110359,
0.11664452403783798,
-0.03673868626356125,
-0.3253386616706848,
0.14502188563346863,
-0.33239197731018066,
0.25030645728111267,
-0.04082363098859787,
-0.3007706105709076,
-0.10084518790245056,
0.26486364006996155,
0.22093573212623596,
0.11860635876655579,
-0.4627089500427246,
0.6910853385925293,
-0.2642369568347931,
-0.3084985613822937,
-0.04292924702167511,
0.363557368516922,
-0.06447361409664154,
-0.09538577497005463,
-0.006922533735632896,
-0.24877503514289856,
-0.14313235878944397,
-0.0225580595433712,
0.18491877615451813,
0.08537353575229645,
0.40138816833496094,
0.19926252961158752,
-0.18337561190128326,
-0.3830607831478119,
-0.48497235774993896,
0.30024081468582153,
0.17778098583221436,
-0.19378839433193207,
0.35804587602615356,
0.11350417882204056,
-0.02328544110059738,
0.18536673486232758,
0.26418644189834595,
0.33337143063545227,
0.10518361628055573,
-0.15066319704055786,
0.09534505754709244,
-0.01131545938551426,
0.010701959952712059,
-0.157516747713089,
0.5133895874023438,
0.3697797358036041,
-0.3136537969112396,
-0.03512570634484291,
0.04042506963014603,
-0.17909066379070282,
0.21191523969173431,
-0.05497175082564354,
0.2851824164390564,
-0.09778374433517456,
0.5591539144515991,
-0.06579380482435226,
0.01867464929819107,
-0.15477731823921204,
0.1321263611316681,
-0.33619415760040283,
-0.04342115670442581,
-0.005851313471794128,
0.1318587362766266,
0.0049864258617162704,
-0.3068118989467621,
0.04117964953184128,
0.05521770566701889,
0.2114003747701645,
0.5045401453971863,
0.11837973445653915,
-0.4218708276748657,
-0.13345037400722504,
-0.7453030943870544,
0.1134839877486229,
-0.022257637232542038,
0.09246981143951416,
0.2634618282318115,
-0.10802798718214035,
-0.1685677468776703,
-0.04610293358564377,
0.2452773153781891,
0.3517729938030243,
0.1647506207227707,
-0.45464494824409485,
-0.46754708886146545,
0.11314041912555695,
0.06783543527126312,
-0.2684635519981384,
0.0692894235253334,
-0.046407368034124374,
-0.01914631947875023,
-0.38078173995018005,
-0.037448056042194366,
-0.04359152168035507,
-0.3628315031528473,
0.14427228271961212,
0.5466160774230957,
0.2543393075466156,
0.12036947906017303,
0.21887317299842834,
0.09137774258852005,
-0.04228029400110245,
-0.3698072135448456,
-0.4085542559623718,
0.10358655452728271,
-0.3350958824157715,
-0.038012269884347916,
0.06835300475358963,
-0.36885297298431396,
-0.15747633576393127,
-0.2832653820514679,
0.5227215886116028,
-0.20892362296581268,
-0.07235057651996613,
-0.4062176048755646,
0.09330769628286362,
-0.11097773909568787,
0.06748414039611816,
0.23458166420459747,
0.4868635833263397,
0.22059248387813568,
0.3542436361312866,
-0.2795717120170593,
-0.07746098935604095,
0.5171990394592285,
-0.47381392121315,
-0.16863174736499786,
0.21755880117416382,
0.3969511389732361,
0.1739760935306549,
-0.037417128682136536,
-0.45938313007354736,
-0.11884697526693344,
0.2529204189777374,
0.08139821141958237,
-0.18389274179935455,
0.2594429850578308,
-0.2825554311275482,
-0.008929524570703506,
0.002726137638092041,
-0.3539847731590271,
0.3217029869556427,
-0.2165522426366806,
-0.008174747228622437,
0.12528184056282043
] |
https://github.com/huggingface/datasets/issues/365 | How to augment data ? | Using batched map is probably the easiest way at the moment.
What kind of augmentation would you like to do ? | Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
``` | 21 | How to augment data ?
Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
```
Using batched map is probably the easiest way at the moment.
What kind of augmentation would you like to do ? | [
-0.00761064887046814,
-0.07861113548278809,
-0.3029458224773407,
-0.09332050383090973,
0.07471135258674622,
0.2788419723510742,
-0.10457964241504669,
0.281440407037735,
0.12231370806694031,
0.11616408079862595,
-0.12247443944215775,
0.05611976608633995,
-0.0021823933348059654,
0.16593286395072937,
0.1615765243768692,
-0.161408469080925,
0.15484613180160522,
0.1445470005273819,
-0.1470569521188736,
0.16119924187660217,
-0.10495635867118835,
-0.4687494933605194,
0.0024017691612243652,
-0.5504876375198364,
-0.11397889256477356,
-0.1055828407406807,
-0.2983654737472534,
-0.16486942768096924,
0.04549264907836914,
-0.3779052793979645,
-0.22314807772636414,
0.08207732439041138,
0.11516976356506348,
0.24214515089988708,
-0.00009984109783545136,
-0.20893938839435577,
0.16463297605514526,
0.08921268582344055,
-0.31073859333992004,
0.472170352935791,
0.11052069813013077,
-0.8047291040420532,
-0.018621528521180153,
-0.07868292927742004,
-0.08345603942871094,
-0.44464555382728577,
0.046145036816596985,
-0.06365277618169785,
0.33880966901779175,
-0.17676815390586853,
0.267683207988739,
-0.009813804179430008,
0.3743920922279358,
0.011765914037823677,
0.1348074972629547,
0.37997567653656006,
0.16158883273601532,
0.08626323938369751,
0.7172880172729492,
0.1436663419008255,
0.3365136981010437,
0.14448370039463043,
-0.13155335187911987,
-0.09737351536750793,
0.2357293665409088,
0.01222643069922924,
0.1705206334590912,
-0.3990066647529602,
-0.015450503677129745,
0.10210655629634857,
0.38207778334617615,
0.24472376704216003,
-0.5512051582336426,
-0.31711649894714355,
0.21549348533153534,
-0.09418483823537827,
-0.3701936900615692,
-0.1095220074057579,
0.15499067306518555,
-0.019962090998888016,
-0.22887350618839264,
-0.24095815420150757,
-0.08378027379512787,
0.36386555433273315,
0.052917733788490295,
0.4135730266571045,
0.03241301700472832,
-0.022188201546669006,
-0.12715908885002136,
-0.2792924642562866,
-0.1728687435388565,
0.19481161236763,
-0.15500734746456146,
0.4723396301269531,
-0.11610768735408783,
-0.14149576425552368,
-0.24267274141311646,
-0.21899527311325073,
0.07745229452848434,
0.10739365965127945,
0.17698191106319427,
0.17800810933113098,
-0.18558833003044128,
0.11880926787853241,
0.16725656390190125,
-0.3007958233356476,
-0.0579388365149498,
0.15136179327964783,
0.01003093272447586,
-0.13589605689048767,
0.2673923969268799,
-0.06510978937149048,
-0.10418976843357086,
-0.1596970558166504,
0.03842836245894432,
-0.10403302311897278,
-0.12271104007959366,
0.005856174975633621,
-0.012569474056363106,
0.011950294487178326,
-0.24535542726516724,
0.12064245343208313,
-0.021662499755620956,
0.0626223236322403,
-0.23905859887599945,
0.07452217489480972,
-0.19069567322731018,
0.25926440954208374,
0.2707099914550781,
-0.20501285791397095,
-0.11404290795326233,
0.1182827353477478,
-0.07169182598590851,
-0.15641666948795319,
0.23779387772083282,
0.11739282310009003,
0.24706923961639404,
0.027054816484451294,
0.09193222969770432,
-0.03621368855237961,
0.08321823179721832,
0.010412441566586494,
0.3068694770336151,
0.20465819537639618,
0.14088605344295502,
0.055403925478458405,
-0.18510034680366516,
0.19714023172855377,
-0.012722007930278778,
0.08888080716133118,
-0.30982252955436707,
-0.005387712270021439,
-0.3795261085033417,
0.2868724465370178,
0.06085463613271713,
-0.19461137056350708,
-0.14097273349761963,
0.3655318021774292,
0.11836522072553635,
-0.2584449052810669,
0.06424448639154434,
0.09398919343948364,
0.10481590032577515,
-0.37674060463905334,
0.45275723934173584,
0.03828292340040207,
-0.38223785161972046,
0.04999516159296036,
-0.1435529887676239,
0.3040350675582886,
0.13184331357479095,
0.03930092230439186,
-0.030339902266860008,
0.14478431642055511,
-0.1284516304731369,
-0.12122561782598495,
0.28406813740730286,
-0.16092650592327118,
-0.3332788944244385,
-0.014059626497328281,
0.1716778427362442,
0.13811546564102173,
-0.1504611074924469,
0.3285779356956482,
0.2457561492919922,
-0.04757353290915489,
0.18894344568252563,
0.38338226079940796,
-0.14811056852340698,
-0.16542914509773254,
-0.09013762325048447,
-0.10939949005842209,
0.31565481424331665,
0.1865178793668747,
-0.06189148500561714,
-0.133762925863266,
0.2854759991168976,
-0.4683997929096222,
0.15137024223804474,
-0.15752464532852173,
0.31863415241241455,
0.1901428997516632,
0.18816030025482178,
0.3953309655189514,
-0.06146928295493126,
-0.1812364161014557,
-0.17265558242797852,
-0.014785943552851677,
-0.136160209774971,
-0.14817334711551666,
0.14384570717811584,
-0.1893927901983261,
-0.04419342428445816,
-0.12309079617261887,
0.1288398802280426,
-0.3399837613105774,
0.29593977332115173,
-0.17685601115226746,
0.04422800615429878,
-0.4881065785884857,
-0.0037109367549419403,
-0.13841277360916138,
0.2112005352973938,
0.07916080206632614,
-0.20012763142585754,
0.009177757427096367,
0.2698514759540558,
-0.33618777990341187,
-0.22224639356136322,
0.3350795805454254,
-0.10251683741807938,
-0.14546358585357666,
0.10969420522451401,
0.2788131535053253,
0.06954647600650787,
0.210286483168602,
0.2375258207321167,
0.25212424993515015,
0.09807915985584259,
0.11307993531227112,
0.20499806106090546,
0.2804628014564514,
0.007360897958278656,
-0.1436428725719452,
-0.09690564125776291,
0.22990237176418304,
0.08961951732635498,
0.10535626113414764,
-0.25459474325180054,
0.20652276277542114,
0.2654273211956024,
0.040988627821207047,
-0.09185691177845001,
-0.03532638028264046,
-0.20365028083324432,
-0.01248180866241455,
0.2784786820411682,
-0.27594122290611267,
-0.13483288884162903,
0.03085751086473465,
-0.4751151204109192,
-0.18104442954063416,
-0.13171106576919556,
-0.17599940299987793,
-0.45883452892303467,
-0.18531647324562073,
0.11805613338947296,
-0.055809345096349716,
-0.1798981875181198,
0.40244361758232117,
0.1857132464647293,
-0.0418793186545372,
0.25529029965400696,
0.15304283797740936,
0.01454608142375946,
0.11354678869247437,
-0.04315347969532013,
-0.04879259318113327,
0.37666353583335876,
0.21319988369941711,
0.15166142582893372,
0.0645519345998764,
0.005359230563044548,
0.17156386375427246,
-0.09349200874567032,
-0.21211709082126617,
-0.06364402920007706,
-0.18953421711921692,
0.03928243741393089,
-0.6104686856269836,
-0.22982707619667053,
-0.36918923258781433,
-0.0815141424536705,
0.25271835923194885,
-0.24119797348976135,
0.010908533819019794,
0.17691566050052643,
0.1015360951423645,
0.051488883793354034,
-0.20871183276176453,
0.003575388342142105,
0.2888847291469574,
0.002571478486061096,
0.24556958675384521,
-0.04153747111558914,
0.05831703171133995,
0.5223013758659363,
0.15865284204483032,
0.21974411606788635,
-0.1253729611635208,
-0.5068556666374207,
-0.20538651943206787,
0.07321541011333466,
0.2120385468006134,
0.19393201172351837,
-0.010206624865531921,
-0.08458144962787628,
-0.16739743947982788,
-0.09733079373836517,
-0.11134252697229385,
0.11616958677768707,
-0.11312346905469894,
-0.1461566984653473,
-0.03876235708594322,
-0.24437405169010162,
0.16335821151733398,
-0.4032551348209381,
-0.19186615943908691,
0.10395362973213196,
0.20027296245098114,
0.04435907304286957,
-0.22694341838359833,
0.24837571382522583,
-0.03575729578733444,
0.1118210107088089,
-0.03891151398420334,
-0.16805648803710938,
-0.24060209095478058,
0.5701762437820435,
-0.2656955122947693,
0.0013293251395225525,
-0.05522078648209572,
-0.3044520616531372,
0.14069288969039917,
0.19694694876670837,
-0.0404014065861702,
-0.20166532695293427,
-0.09545011073350906,
0.02202167734503746,
-0.20210035145282745,
0.1835162341594696,
0.11469821631908417,
-0.13911791145801544,
-0.17911134660243988,
0.05822262167930603,
-0.012134967371821404,
-0.0202246755361557,
0.37343230843544006,
0.16533608734607697,
-0.17200905084609985,
-0.15177959203720093,
-0.16492177546024323,
0.07821917533874512,
0.07899998128414154,
-0.04287875071167946,
0.13500003516674042,
-0.13241438567638397,
0.09056612104177475,
0.005474716424942017,
-0.09275400638580322,
-0.015437329187989235,
-0.11744150519371033,
-0.22546102106571198,
-0.009540066123008728,
0.2916845977306366,
-0.1485462784767151,
0.08183722198009491,
-0.19996385276317596,
-0.3598059117794037,
-0.0773129016160965,
0.19513632357120514,
-0.4344598054885864,
0.2437218725681305,
-0.2577323615550995,
-0.12673607468605042,
-0.4629669487476349,
-0.21621233224868774,
-0.009465551003813744,
-0.17932076752185822,
0.2181587815284729,
-0.0718265250325203,
-0.3334371745586395,
-0.033921726047992706,
-0.5081930160522461,
0.6014179587364197,
0.2712254524230957,
0.09430066496133804,
0.4166794717311859,
-0.05570979416370392,
0.07676471769809723,
-0.016295408830046654,
0.3793673515319824,
-0.29020529985427856,
-0.37336915731430054,
-0.12204477190971375,
0.060535892844200134,
-0.29193034768104553,
-0.0664408951997757,
-0.3477955758571625,
0.11228200793266296,
0.37910112738609314,
0.42489251494407654,
0.06260008364915848,
0.03611520677804947,
0.32653021812438965,
0.5222183465957642,
-0.12113578617572784,
0.062059398740530014,
0.13218766450881958,
-0.11373724788427353,
-0.06040709465742111,
0.09756804257631302,
0.042901694774627686,
-0.02642902545630932,
0.4464079737663269,
-0.16343416273593903,
-0.1746935248374939,
0.13221696019172668,
0.33710983395576477,
0.19871170818805695,
0.24102729558944702,
0.3397596478462219,
-0.009298447519540787,
0.06323878467082977,
0.03713458776473999,
0.3818000555038452,
0.26208406686782837,
-0.12112492322921753,
-0.3090841472148895,
-0.26857128739356995,
-0.4397205710411072,
0.7446145415306091,
-0.2391813099384308,
0.3427325189113617,
0.27308711409568787,
-0.25580519437789917,
-0.03406190872192383,
-0.36825305223464966,
0.17759884893894196,
0.11662588268518448,
0.16299933195114136,
-0.3898429274559021,
-0.6086575388908386,
0.09506335854530334,
-0.055028241127729416,
-0.07544600963592529,
0.20487257838249207,
-0.21199928224086761,
-0.06612773984670639,
0.33108949661254883,
0.47508177161216736,
0.6668502688407898,
0.30434948205947876,
-0.03048677369952202,
-0.0017353929579257965,
-0.16814973950386047,
0.2637515068054199,
-0.1249452605843544,
0.16366328299045563,
-0.03477837145328522,
-0.17534305155277252,
0.036315225064754486,
0.09193742275238037,
0.03537781164050102,
0.25666651129722595,
-0.07705391198396683,
0.20415732264518738,
-0.1933000236749649,
-0.008146937936544418,
-0.052162639796733856,
0.07898453623056412,
0.2488764524459839,
-0.22434572875499725,
-0.02522631734609604,
0.2686211168766022,
-0.015581861138343811,
-0.3063996136188507,
-0.1489027738571167,
-0.024851635098457336,
-0.12788403034210205,
0.1565125286579132,
-0.15640684962272644,
-0.06513026356697083,
-0.14353112876415253,
-0.03720083832740784,
0.26175588369369507,
-0.2358967363834381,
-0.08954675495624542,
0.00986124575138092,
0.060989417135715485,
0.42460450530052185,
0.04442181438207626,
0.10897514224052429,
0.16076545417308807,
0.2134147435426712,
-0.08798617869615555,
0.05374392122030258,
0.2833585739135742,
0.06178351491689682,
-0.21974502503871918,
0.20659992098808289,
0.0877043753862381,
-0.40931236743927,
-0.30324557423591614,
0.021759100258350372,
0.009765204042196274,
-0.38892948627471924,
-0.07147637009620667,
0.4038935899734497,
0.04143381491303444,
-0.17669551074504852,
0.20630981028079987,
0.26029351353645325,
-0.4080257713794708,
0.30736324191093445,
0.16468943655490875,
-0.16290655732154846,
-0.08147092163562775,
0.062455788254737854,
0.08949051797389984,
-0.3430861234664917,
0.46954965591430664,
-0.09649089723825455,
0.014858979731798172,
-0.24053597450256348,
-0.09073352813720703,
0.0660509541630745,
0.14449471235275269,
-0.17809611558914185,
0.0590980090200901,
0.10743598639965057,
0.12043893337249756,
-0.08698393404483795,
0.20470044016838074,
0.03592018410563469,
-0.1315038800239563,
-0.3764168322086334,
-0.5651541352272034,
0.22068849205970764,
0.4015723466873169,
0.22651661932468414,
-0.009096020832657814,
0.10981689393520355,
-0.27415916323661804,
0.5316255688667297,
-0.4084591567516327,
0.1374565213918686,
0.3545909821987152,
0.22901985049247742,
-0.01545630767941475,
-0.04412011802196503,
-0.09389186650514603,
-0.12437327206134796,
0.26874619722366333,
-0.13834312558174133,
0.008974025025963783,
-0.2991035282611847,
-0.10929380357265472,
0.014618143439292908,
-0.07732904702425003,
-0.04492013156414032,
-0.0239887498319149,
0.030905675143003464,
0.07234091311693192,
-0.4569346606731415,
0.023395609110593796,
-0.09685222804546356,
-0.04097948968410492,
0.21980734169483185,
0.3289918303489685,
0.2789761424064636,
-0.1022362932562828,
0.15245556831359863,
-0.10765895247459412,
-0.037538498640060425,
0.1082068383693695,
0.024584732949733734,
0.22936025261878967,
-0.06674893200397491,
0.23340483009815216,
0.17454485595226288,
0.16586840152740479,
-0.13939455151557922,
0.050045836716890335,
0.1432809829711914,
0.05671870335936546,
-0.05365682765841484,
0.21662825345993042,
0.2777228057384491,
0.11262821406126022,
0.23965846002101898,
0.34342294931411743,
0.4050261676311493,
-0.22936755418777466,
0.05863520875573158,
0.27029526233673096,
0.14690172672271729,
0.1718357503414154,
0.18468818068504333,
0.23269185423851013,
0.0667622983455658,
-0.06919252872467041,
-0.09936914592981339,
0.05148883908987045,
-0.02642245590686798,
0.002059048740193248,
0.41939035058021545,
-0.12567482888698578,
-0.33339324593544006,
-0.09972646832466125,
-0.004982572048902512,
-0.020089291036128998,
0.06952443718910217,
0.06461549550294876,
0.40334102511405945,
0.49890828132629395,
-0.21406161785125732,
-0.05792825669050217,
-0.21525056660175323,
0.1457212120294571,
0.3286416232585907,
0.1389942765235901,
0.4616524279117584,
0.48347052931785583,
0.34215816855430603,
0.030583664774894714,
-0.4088163673877716,
0.013286197558045387,
0.04935934767127037,
0.09663606435060501,
0.020399874076247215,
0.010443110018968582,
-0.19428837299346924,
-0.24858443439006805,
-0.1224428117275238,
0.23612895607948303,
-0.3936663269996643,
0.14623300731182098,
-0.18884409964084625,
-0.13610368967056274,
-0.18758483231067657,
0.17075660824775696,
0.1503908336162567,
0.2097187638282776,
-0.27796459197998047,
-0.074393130838871,
0.07800097018480301,
-0.15263128280639648,
0.26774144172668457,
0.17991125583648682,
0.22559455037117004,
-0.025502130389213562,
-0.14550769329071045,
0.3720202147960663,
-0.2667149007320404,
-0.09368922561407089,
-0.17168232798576355,
-0.035913653671741486,
0.009758420288562775,
-0.0681823343038559,
0.04133005812764168,
0.2832559645175934,
-0.2193230390548706,
0.23280015587806702,
-0.04592451825737953,
0.14230002462863922,
-0.36307278275489807,
0.026435747742652893,
0.23227271437644958,
-0.5020995736122131,
-0.07824781537055969,
-0.32157960534095764,
-0.1785205453634262,
-0.4239550828933716,
0.16589097678661346,
-0.38478490710258484,
-0.11928346753120422,
0.19922862946987152,
0.15665465593338013,
-0.13980108499526978,
0.5302136540412903,
0.6634436249732971,
0.17633070051670074,
0.05290386825799942,
-0.33232003450393677,
-0.39007413387298584,
0.1730918139219284,
-0.07071252167224884,
-0.13654457032680511,
-0.0641164630651474,
-0.11988161504268646,
0.2669934928417206,
-0.004659738391637802,
0.3345378041267395,
-0.05983531102538109,
-0.2998943328857422,
0.11080606281757355,
-0.15353669226169586,
0.2455342411994934,
-0.09548605978488922,
0.31032970547676086,
0.1946122944355011,
0.06105532497167587,
-0.08677394688129425,
-0.06946548074483871,
0.19327795505523682,
-0.09688962996006012,
0.0020184218883514404,
0.05992109701037407,
0.09118793904781342,
0.4429360628128052,
0.26360172033309937,
0.07979345321655273,
-0.43562236428260803,
-0.05314788222312927,
-0.3511993885040283,
0.016318202018737793,
-0.3566225469112396,
0.3309926390647888,
-0.056623537093400955,
0.2636432647705078,
0.009701259434223175,
-0.12513433396816254,
0.24355024099349976,
0.27236586809158325,
-0.05515842139720917,
-0.08061928302049637,
-0.2442430704832077,
0.1907426416873932,
-0.16389045119285583,
-0.24964095652103424,
-0.09565876424312592,
0.1525162160396576,
0.05985001102089882,
-0.058379776775836945,
0.014223136007785797,
0.017499295994639397,
0.04754170775413513,
-0.15562234818935394,
-0.14031550288200378,
-0.5458519458770752,
-0.09698702394962311,
0.05160648003220558,
0.15644864737987518,
-0.36961039900779724,
-0.21711210906505585,
0.3101462423801422,
0.06613315641880035,
-0.07960681617259979,
0.44256365299224854,
-0.14114628732204437,
-0.3818376660346985,
-0.1352279782295227,
0.24222753942012787,
0.0642673522233963,
0.02968701533973217,
-0.35223135352134705,
-0.393413245677948
] |
https://github.com/huggingface/datasets/issues/365 | How to augment data ? | Some samples in the dataset are too long, I want to divide them in several samples. | Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
``` | 16 | How to augment data ?
Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
```
Some samples in the dataset are too long, I want to divide them in several samples. | [
-0.09215521067380905,
-0.06655634194612503,
-0.29764774441719055,
-0.022697679698467255,
0.02315082773566246,
0.3546430468559265,
-0.014463085681200027,
0.2735871374607086,
0.16726458072662354,
0.1517353355884552,
-0.11430441588163376,
0.04165051877498627,
-0.012731975875794888,
0.12649904191493988,
0.16265252232551575,
-0.2058323323726654,
0.16964249312877655,
0.08734361082315445,
-0.10483473539352417,
0.22751693427562714,
-0.060498520731925964,
-0.4782770574092865,
-0.07643087953329086,
-0.6003988981246948,
-0.11632978916168213,
-0.09851237386465073,
-0.3571469485759735,
-0.3164559304714203,
0.12150267511606216,
-0.3110497295856476,
-0.256076455116272,
0.015793826431035995,
0.08849288523197174,
0.2807290852069855,
-0.00010333323734812438,
-0.16144633293151855,
0.1503431648015976,
0.07043824344873428,
-0.3406279981136322,
0.49959856271743774,
0.07926762849092484,
-0.7448672652244568,
-0.06711779534816742,
-0.082978256046772,
-0.11952133476734161,
-0.40994709730148315,
0.03611057996749878,
-0.12177400290966034,
0.3469316363334656,
-0.14333349466323853,
0.23014716804027557,
-0.0034852437674999237,
0.35084494948387146,
-0.04685492813587189,
0.12032492458820343,
0.43394219875335693,
0.20896486937999725,
0.10369724035263062,
0.7045369148254395,
0.19545790553092957,
0.3622116148471832,
0.1173311322927475,
-0.1749298870563507,
-0.052329983562231064,
0.22492671012878418,
-0.010647431947290897,
0.2237958312034607,
-0.4108213782310486,
-0.00867893174290657,
0.16898928582668304,
0.3199172019958496,
0.2096618413925171,
-0.5844898819923401,
-0.3439368009567261,
0.16411468386650085,
-0.08180641382932663,
-0.4392804503440857,
0.009365583769977093,
0.15225346386432648,
-0.025808561593294144,
-0.23402616381645203,
-0.2493515908718109,
-0.0669918805360794,
0.41832882165908813,
0.052631668746471405,
0.44806548953056335,
0.039382193237543106,
0.032332487404346466,
-0.10093806684017181,
-0.24896015226840973,
-0.15540848672389984,
0.1496042162179947,
-0.12784849107265472,
0.39058202505111694,
-0.06507527828216553,
-0.1372215449810028,
-0.36360570788383484,
-0.2775264382362366,
0.15086951851844788,
0.08195852488279343,
0.09896446764469147,
0.11216716468334198,
-0.15346546471118927,
0.13291846215724945,
0.21256442368030548,
-0.34248727560043335,
-0.03595653176307678,
0.21622684597969055,
-0.01822882890701294,
-0.1561187207698822,
0.29329755902290344,
-0.09415287524461746,
-0.14057864248752594,
-0.15516166388988495,
0.015714719891548157,
-0.08163756132125854,
-0.16432008147239685,
0.10944162309169769,
-0.122590571641922,
-0.05455154925584793,
-0.20114511251449585,
0.07559752464294434,
0.06474867463111877,
0.10653764754533768,
-0.2623959183692932,
0.0036333687603473663,
-0.30867791175842285,
0.2466655820608139,
0.17572376132011414,
-0.25567227602005005,
-0.07600725442171097,
0.12573783099651337,
-0.10427108407020569,
-0.1410946249961853,
0.1893497109413147,
0.11753500998020172,
0.27617135643959045,
-0.01356868539005518,
0.09122037887573242,
-0.13598671555519104,
0.06677161157131195,
-0.045590098947286606,
0.2609437108039856,
0.13358284533023834,
0.16531863808631897,
0.023513929918408394,
-0.19558626413345337,
0.19772477447986603,
-0.07093449681997299,
0.08046220988035202,
-0.39965277910232544,
-0.018064409494400024,
-0.3888208270072937,
0.24227699637413025,
0.17829759418964386,
-0.1079651415348053,
-0.1250021755695343,
0.37293916940689087,
0.2526087462902069,
-0.3006933331489563,
0.08909241855144501,
0.06530722975730896,
0.10290832817554474,
-0.3351729214191437,
0.48143503069877625,
0.042460598051548004,
-0.31159910559654236,
0.016070261597633362,
-0.2066362500190735,
0.29042986035346985,
0.15371617674827576,
0.0912347286939621,
0.022525792941451073,
0.09541624784469604,
-0.2393282949924469,
-0.13793185353279114,
0.3075350522994995,
-0.19514641165733337,
-0.3103209137916565,
0.03973987698554993,
0.15284939110279083,
0.027235640212893486,
-0.1793166995048523,
0.3627099096775055,
0.31589004397392273,
-0.08207675069570541,
0.2134743183851242,
0.48159992694854736,
-0.20802712440490723,
-0.14619384706020355,
-0.008943341672420502,
-0.1502867341041565,
0.37489885091781616,
0.2271437793970108,
-0.05414794757962227,
-0.13088881969451904,
0.2716343104839325,
-0.44277000427246094,
0.1860206127166748,
-0.11817944049835205,
0.3794412612915039,
0.1347672939300537,
0.17100274562835693,
0.3944876194000244,
-0.06697677820920944,
-0.2257094383239746,
-0.22611412405967712,
-0.05717099457979202,
-0.06212157383561134,
-0.23537194728851318,
0.21263734996318817,
-0.26760128140449524,
0.026593975722789764,
-0.11917069554328918,
0.1559114307165146,
-0.3202857971191406,
0.23844534158706665,
-0.19323036074638367,
0.1870051622390747,
-0.5061723589897156,
0.06103510037064552,
-0.22333240509033203,
0.2332097440958023,
0.10248435288667679,
-0.2418871372938156,
0.031135661527514458,
0.28295841813087463,
-0.2612972855567932,
-0.24159400165081024,
0.3624900281429291,
-0.0874164029955864,
-0.14974242448806763,
0.1178998053073883,
0.284711092710495,
0.13077402114868164,
0.12726300954818726,
0.1616804599761963,
0.1158377155661583,
0.12298960983753204,
0.05533399060368538,
0.16226521134376526,
0.2773103713989258,
-0.049448128789663315,
-0.14823073148727417,
-0.0923687294125557,
0.18708130717277527,
0.02177583798766136,
0.2239454984664917,
-0.235209122300148,
0.244343101978302,
0.2990865409374237,
0.024903301149606705,
-0.11082198470830917,
-0.10243368148803711,
-0.22742150723934174,
-0.030390605330467224,
0.37084707617759705,
-0.2931017279624939,
-0.04760848730802536,
0.012239903211593628,
-0.529737114906311,
-0.19372153282165527,
-0.10632174462080002,
-0.13737636804580688,
-0.4725440740585327,
-0.11866910010576248,
0.13798950612545013,
0.022592458873987198,
-0.09700267016887665,
0.3941377103328705,
0.23774580657482147,
-0.08415833860635757,
0.28252488374710083,
0.15741011500358582,
-0.012492351233959198,
0.13543254137039185,
-0.10457014292478561,
0.022945869714021683,
0.3718271553516388,
0.13248801231384277,
0.2272264063358307,
0.06888836622238159,
0.1317291557788849,
0.12295237928628922,
-0.06655289232730865,
-0.19392792880535126,
-0.10794306546449661,
-0.21960127353668213,
-0.011936872266232967,
-0.6965718865394592,
-0.1861792504787445,
-0.3246952295303345,
-0.12215401232242584,
0.21873028576374054,
-0.2129363715648651,
0.039122506976127625,
0.24523833394050598,
0.14459535479545593,
0.0838213562965393,
-0.1548657864332199,
0.0906403511762619,
0.28037023544311523,
0.06871828436851501,
0.20367087423801422,
0.05500618368387222,
0.15485501289367676,
0.5739246606826782,
0.10613112896680832,
0.11095568537712097,
-0.2117847353219986,
-0.37979987263679504,
-0.22121906280517578,
0.057413212954998016,
0.23414267599582672,
0.21031568944454193,
-0.021254390478134155,
-0.03463716804981232,
-0.19801172614097595,
-0.05954026058316231,
-0.10201264917850494,
0.19784116744995117,
-0.12502986192703247,
-0.08318736404180527,
-0.04287117347121239,
-0.2294328510761261,
0.1627708226442337,
-0.4700722396373749,
-0.23811043798923492,
0.05212923139333725,
0.12208524346351624,
0.09037923812866211,
-0.2794129252433777,
0.3012714684009552,
-0.022295169532299042,
0.06416705995798111,
-0.15061968564987183,
-0.15732787549495697,
-0.17974314093589783,
0.4674948751926422,
-0.3396630883216858,
0.12029218673706055,
-0.052010029554367065,
-0.3217194080352783,
0.16373766958713531,
0.18668924272060394,
-0.027557186782360077,
-0.14367517828941345,
-0.09698312729597092,
0.05960221216082573,
-0.18586406111717224,
0.16295494139194489,
0.08285664021968842,
-0.24855229258537292,
-0.09594365209341049,
0.10557747632265091,
-0.011232571676373482,
-0.0025403574109077454,
0.3178330063819885,
0.18284720182418823,
-0.14017078280448914,
-0.07729113101959229,
-0.21468272805213928,
0.18938158452510834,
0.16115105152130127,
-0.06742455065250397,
0.019720617681741714,
-0.2104613333940506,
0.03989138454198837,
0.03962421789765358,
-0.09655902534723282,
-0.02871302142739296,
-0.083324134349823,
-0.2234877049922943,
-0.00487276166677475,
0.2702586054801941,
-0.1213398352265358,
0.1273222118616104,
-0.2472572922706604,
-0.39074990153312683,
-0.14699901640415192,
0.1526193767786026,
-0.49171096086502075,
0.26182159781455994,
-0.28068941831588745,
-0.12752875685691833,
-0.4692973494529724,
-0.18872016668319702,
-0.10479173064231873,
-0.16140569746494293,
0.26528847217559814,
-0.05833742395043373,
-0.3561534583568573,
-0.08445152640342712,
-0.5110246539115906,
0.6042351722717285,
0.3101940155029297,
0.1707242727279663,
0.4370259642601013,
-0.06542263925075531,
0.07644177973270416,
0.02326400950551033,
0.47690528631210327,
-0.2746003568172455,
-0.3861759901046753,
-0.12496572732925415,
0.10162045061588287,
-0.28263697028160095,
-0.05200473964214325,
-0.27053600549697876,
0.11599481105804443,
0.38765808939933777,
0.37875500321388245,
0.009586244821548462,
0.06937120854854584,
0.44248273968696594,
0.5657035708427429,
-0.09900268912315369,
0.026833903044462204,
0.15072792768478394,
-0.09234793484210968,
-0.06365735083818436,
0.12042626738548279,
0.0913119688630104,
-0.05228964984416962,
0.4356538653373718,
-0.25655385851860046,
-0.15605832636356354,
0.14305037260055542,
0.3302804231643677,
0.11375123262405396,
0.2782663106918335,
0.26207974553108215,
0.0637969970703125,
-0.006520546972751617,
-0.0016999691724777222,
0.4113224446773529,
0.2880479097366333,
-0.2564452290534973,
-0.3336547613143921,
-0.2030012309551239,
-0.4443609416484833,
0.7946296334266663,
-0.28188738226890564,
0.32493695616722107,
0.3466304540634155,
-0.25455063581466675,
0.11731158196926117,
-0.3671298325061798,
0.23437894880771637,
0.09048397839069366,
0.18578483164310455,
-0.48559147119522095,
-0.6768800616264343,
0.026806224137544632,
0.013964258134365082,
0.042315393686294556,
0.21046674251556396,
-0.28050941228866577,
-0.08123032003641129,
0.3251068592071533,
0.41878506541252136,
0.614498496055603,
0.2699090242385864,
-0.0058702826499938965,
-0.05976438522338867,
-0.04417576640844345,
0.34045925736427307,
-0.1314431130886078,
0.1807757169008255,
0.0006915144622325897,
-0.1594688445329666,
0.02496706135571003,
0.05877811834216118,
-0.008183501660823822,
0.27086228132247925,
-0.12016037106513977,
0.22074097394943237,
-0.21523475646972656,
-0.0003142543137073517,
-0.20473331212997437,
0.13383212685585022,
0.12474759668111801,
-0.21914437413215637,
0.09079661965370178,
0.22448143362998962,
-0.01945643126964569,
-0.32234445214271545,
-0.12345921993255615,
0.0400969535112381,
-0.0346267968416214,
0.15316985547542572,
-0.14360351860523224,
-0.12295091897249222,
-0.08756804466247559,
-0.017864838242530823,
0.2680428922176361,
-0.20915791392326355,
-0.05791149660944939,
-0.05955514684319496,
0.04698394238948822,
0.4749448299407959,
0.08301106095314026,
0.09315720200538635,
0.10427536815404892,
0.13812263309955597,
-0.14028701186180115,
-0.022740796208381653,
0.22265078127384186,
0.14605268836021423,
-0.18958711624145508,
0.24905899167060852,
0.17160598933696747,
-0.4353039264678955,
-0.31883201003074646,
0.04504688084125519,
0.047467153519392014,
-0.41835853457450867,
-0.12620092928409576,
0.33909642696380615,
-0.014789385721087456,
-0.19137980043888092,
0.16183292865753174,
0.21156470477581024,
-0.4530216455459595,
0.3214585483074188,
0.1169692873954773,
-0.15428423881530762,
-0.10286916792392731,
0.05752740055322647,
0.10981721431016922,
-0.3559032380580902,
0.4608195126056671,
-0.028756894171237946,
0.028411805629730225,
-0.2682010531425476,
-0.07786999642848969,
0.05404910445213318,
0.0975908413529396,
-0.16106130182743073,
-0.0160110741853714,
0.16421116888523102,
0.13899460434913635,
-0.13165543973445892,
0.11962389200925827,
0.11526115238666534,
-0.16194774210453033,
-0.40055570006370544,
-0.5174027681350708,
0.27008259296417236,
0.38137689232826233,
0.25576648116111755,
0.035260312259197235,
0.1718026101589203,
-0.33377882838249207,
0.6286423206329346,
-0.35032010078430176,
0.16930453479290009,
0.3655642867088318,
0.24353045225143433,
-0.0696839913725853,
-0.0005213022232055664,
-0.13330301642417908,
-0.00965609960258007,
0.20159102976322174,
-0.02058076113462448,
0.08067407459020615,
-0.24762743711471558,
-0.044763460755348206,
0.03932856023311615,
-0.07653864473104477,
-0.03727750480175018,
-0.04682596027851105,
0.04397951811552048,
0.05716000869870186,
-0.4754127860069275,
0.05881614610552788,
-0.08781925588846207,
-0.10412967205047607,
0.09028957039117813,
0.33672916889190674,
0.23228612542152405,
-0.12980009615421295,
0.24299758672714233,
-0.09648078680038452,
-0.07471497356891632,
0.08604918420314789,
0.07819002121686935,
0.22762049734592438,
-0.07172264158725739,
0.1356777399778366,
0.17724019289016724,
0.331147164106369,
-0.22947707772254944,
0.05070500820875168,
0.16017158329486847,
0.0505794920027256,
-0.030173735693097115,
0.20753154158592224,
0.30174046754837036,
0.12390873581171036,
0.33689430356025696,
0.3831689655780792,
0.3606928884983063,
-0.22594964504241943,
0.0515177883207798,
0.24347585439682007,
0.11077747493982315,
0.21507775783538818,
0.24510106444358826,
0.13423655927181244,
0.11615268886089325,
-0.11131921410560608,
-0.09483982622623444,
0.05795656889677048,
0.0464528352022171,
0.0027822162955999374,
0.5716443657875061,
-0.0768294483423233,
-0.3242097496986389,
-0.09871188551187515,
-0.012059066444635391,
0.010679475963115692,
0.060457564890384674,
0.06118658185005188,
0.5287559628486633,
0.4854890704154968,
-0.16935217380523682,
-0.10191097110509872,
-0.247467502951622,
0.14685361087322235,
0.3622620105743408,
0.13807225227355957,
0.4326586425304413,
0.3992352783679962,
0.40628156065940857,
-0.09240757673978806,
-0.40072813630104065,
-0.04853379353880882,
0.11357003450393677,
0.13695558905601501,
0.013221638277173042,
0.08043525367975235,
-0.13338202238082886,
-0.2592555284500122,
-0.14680702984333038,
0.2556403577327728,
-0.43424177169799805,
0.06384217739105225,
-0.18790234625339508,
-0.10465414822101593,
-0.16468600928783417,
0.2017744481563568,
0.16398248076438904,
0.15766280889511108,
-0.33867937326431274,
-0.05784766376018524,
-0.00504940003156662,
-0.0924028754234314,
0.20783191919326782,
0.15468673408031464,
0.2194679230451584,
-0.004598692059516907,
-0.07083174586296082,
0.2528015375137329,
-0.2889792323112488,
-0.05312153697013855,
-0.20849309861660004,
-0.013286225497722626,
0.009153790771961212,
-0.101114422082901,
0.1081354171037674,
0.2520717680454254,
-0.19083328545093536,
0.24337519705295563,
-0.03264031931757927,
0.10041995346546173,
-0.4774593114852905,
0.041666243225336075,
0.1873496025800705,
-0.4557674527168274,
-0.14584700763225555,
-0.3373722434043884,
-0.24302011728286743,
-0.37286803126335144,
0.16283275187015533,
-0.5795024037361145,
-0.08258147537708282,
0.21328189969062805,
0.138614222407341,
-0.22627027332782745,
0.49070820212364197,
0.6586544513702393,
0.2515902519226074,
-0.010340961627662182,
-0.3757665157318115,
-0.36382561922073364,
0.12199094891548157,
-0.22628530859947205,
-0.06219937652349472,
-0.06693416088819504,
-0.13579213619232178,
0.24696031212806702,
0.0311389472335577,
0.2954443097114563,
0.007191312965005636,
-0.27773937582969666,
0.13083255290985107,
-0.12039704620838165,
0.19894267618656158,
-0.22894446551799774,
0.2858724892139435,
0.22914355993270874,
-0.05138176307082176,
-0.07311993837356567,
-0.015564531087875366,
0.0748966783285141,
-0.011862605810165405,
0.038050420582294464,
0.1570262908935547,
0.03440825268626213,
0.3442341983318329,
0.22810925543308258,
0.10829100012779236,
-0.3414270877838135,
0.016310429200530052,
-0.3145471513271332,
0.035746876150369644,
-0.2887769043445587,
0.29735276103019714,
-0.01711290329694748,
0.19583415985107422,
-0.060481615364551544,
-0.032902177423238754,
0.23372942209243774,
0.27239295840263367,
-0.015776239335536957,
-0.07427452504634857,
-0.21610772609710693,
0.21922633051872253,
-0.24340173602104187,
-0.15233619511127472,
0.039013803005218506,
0.16536176204681396,
0.035060249269008636,
-0.03853438049554825,
0.13035769760608673,
0.07865238189697266,
-0.016245931386947632,
-0.10233350098133087,
-0.14993630349636078,
-0.5930967926979065,
-0.015427500009536743,
0.12252706289291382,
0.0666930079460144,
-0.35610678791999817,
-0.22378084063529968,
0.33966970443725586,
0.10480233281850815,
-0.026691516861319542,
0.3971044719219208,
-0.06377385556697845,
-0.3384087383747101,
-0.16458925604820251,
0.21105679869651794,
0.06024101376533508,
-0.012402399443089962,
-0.25048601627349854,
-0.412606418132782
] |
https://github.com/huggingface/datasets/issues/365 | How to augment data ? | Using batched map is the way to go then.
We'll make it clearer in the docs that map could be used for augmentation.
Let me know if you think there should be another way to do it. Or feel free to close the issue otherwise. | Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
``` | 45 | How to augment data ?
Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
```
Using batched map is the way to go then.
We'll make it clearer in the docs that map could be used for augmentation.
Let me know if you think there should be another way to do it. Or feel free to close the issue otherwise. | [
-0.016944628208875656,
-0.14556559920310974,
-0.30010664463043213,
-0.08539998531341553,
0.12439991533756256,
0.1755872368812561,
-0.06294392049312592,
0.30911821126937866,
0.15044260025024414,
0.1681782603263855,
-0.13062593340873718,
0.18781708180904388,
0.03093244507908821,
0.1995353400707245,
0.10299032926559448,
-0.09849396347999573,
0.06371233612298965,
0.16792534291744232,
-0.23800083994865417,
0.15871837735176086,
-0.07242439687252045,
-0.30818280577659607,
-0.06477838009595871,
-0.5189903974533081,
-0.08803602308034897,
-0.08568345755338669,
-0.24752338230609894,
-0.06276043504476547,
0.016347255557775497,
-0.35942205786705017,
-0.21946485340595245,
0.08108709752559662,
0.07977612316608429,
0.1623183786869049,
-0.00009548233356326818,
-0.16787120699882507,
0.1755305677652359,
0.050936877727508545,
-0.2073563188314438,
0.453438937664032,
0.08815344423055649,
-0.695660412311554,
-0.038464516401290894,
-0.14073830842971802,
-0.1430085301399231,
-0.4254905581474304,
0.01938781887292862,
-0.07913364470005035,
0.3932873606681824,
-0.12988758087158203,
0.3211499750614166,
0.06788108497858047,
0.36878007650375366,
-0.009160943329334259,
0.16379603743553162,
0.26753753423690796,
0.09342658519744873,
0.0432252362370491,
0.6970160007476807,
0.11308769136667252,
0.1968546211719513,
0.27501463890075684,
-0.055957697331905365,
-0.05479338392615318,
0.22427120804786682,
-0.03993299975991249,
0.1791331171989441,
-0.4076254665851593,
-0.02939716726541519,
0.08140608668327332,
0.3611026704311371,
0.24617087841033936,
-0.48552098870277405,
-0.20734372735023499,
0.15879328548908234,
-0.10886538028717041,
-0.3031991422176361,
-0.1451982855796814,
0.07751582562923431,
-0.008415605872869492,
-0.17961759865283966,
-0.22451511025428772,
-0.11051741242408752,
0.2781725823879242,
0.031774140894412994,
0.4702417552471161,
-0.054266657680273056,
-0.04705917090177536,
-0.09253823757171631,
-0.21236442029476166,
-0.20385366678237915,
0.25981006026268005,
-0.16923391819000244,
0.38387346267700195,
-0.12152677774429321,
-0.13530205190181732,
-0.16184794902801514,
-0.23418885469436646,
0.1250404715538025,
0.0737609937787056,
0.21695055067539215,
0.2232528030872345,
-0.1269284188747406,
0.11073615401983261,
0.23878034949302673,
-0.21891449391841888,
-0.034795068204402924,
0.1099751740694046,
0.026438020169734955,
-0.07566896080970764,
0.18847301602363586,
-0.07732515037059784,
-0.09927038848400116,
-0.21769016981124878,
-0.03556257486343384,
-0.06198322772979736,
-0.06802596151828766,
-0.018565915524959564,
-0.10094719380140305,
0.02520580217242241,
-0.17553088068962097,
0.15997235476970673,
-0.04708809405565262,
0.17859028279781342,
-0.19247028231620789,
0.08943967521190643,
-0.12497638911008835,
0.26918381452560425,
0.1609807014465332,
-0.16696499288082123,
-0.17956610023975372,
0.1405826359987259,
-0.10301671177148819,
-0.2629324197769165,
0.17477694153785706,
0.15830184519290924,
0.30054599046707153,
0.006081950850784779,
0.20126444101333618,
-0.0010656006634235382,
0.09212091565132141,
0.05582323297858238,
0.3494165539741516,
0.25941377878189087,
0.21551743149757385,
0.00428166426718235,
-0.20747604966163635,
0.19235970079898834,
0.03865990787744522,
0.09496953338384628,
-0.35231438279151917,
0.03048773482441902,
-0.38971832394599915,
0.3262459337711334,
0.10286106169223785,
-0.1323002427816391,
-0.061980657279491425,
0.3417803645133972,
0.15762685239315033,
-0.26345664262771606,
-0.051137082278728485,
0.07619297504425049,
0.047942664474248886,
-0.4188564717769623,
0.4802422821521759,
0.012472599744796753,
-0.31661301851272583,
0.0820775032043457,
-0.0641254335641861,
0.29902297258377075,
0.15671521425247192,
0.07755549997091293,
-0.10714708268642426,
0.09468916803598404,
-0.22574086487293243,
-0.011232957243919373,
0.3483182191848755,
-0.15183426439762115,
-0.27721500396728516,
0.04119119048118591,
0.18469519913196564,
0.07083561271429062,
-0.09409277886152267,
0.21174879372119904,
0.22428712248802185,
-0.08894389122724533,
0.23058246076107025,
0.3381919264793396,
-0.11505819857120514,
-0.08231402933597565,
-0.16691912710666656,
-0.10360027849674225,
0.2578802704811096,
0.12456411123275757,
-0.046200137585401535,
-0.15194493532180786,
0.28008168935775757,
-0.38614314794540405,
0.20093783736228943,
-0.2013780176639557,
0.3344910740852356,
0.2194984257221222,
0.26390784978866577,
0.2855584919452667,
-0.018207397311925888,
-0.14262153208255768,
-0.16392594575881958,
-0.019811535254120827,
-0.1903652548789978,
-0.007336564362049103,
0.18019430339336395,
-0.23612143099308014,
-0.1505279242992401,
-0.17463521659374237,
0.08579058945178986,
-0.3688031733036041,
0.3643597960472107,
-0.14301708340644836,
0.028469841927289963,
-0.4876209795475006,
-0.011334039270877838,
-0.145952045917511,
0.13228340446949005,
0.01877002976834774,
-0.18525445461273193,
0.030189616605639458,
0.1393854171037674,
-0.2906776964664459,
-0.12646013498306274,
0.26797300577163696,
-0.055254921317100525,
-0.14964964985847473,
0.0936703234910965,
0.3210110366344452,
0.08131332695484161,
0.1584232598543167,
0.17770600318908691,
0.17641696333885193,
0.10587223619222641,
0.07699684798717499,
0.15160813927650452,
0.2718892991542816,
0.02013252303004265,
-0.08539410680532455,
-0.09763156622648239,
0.28532475233078003,
0.20930670201778412,
0.026920415461063385,
-0.1385442316532135,
0.19890135526657104,
0.29452553391456604,
-0.001259882003068924,
-0.13198222219944,
-0.06462932378053665,
-0.21415399014949799,
0.00023244693875312805,
0.27707475423812866,
-0.31243574619293213,
-0.17535656690597534,
0.10002939403057098,
-0.3331013321876526,
-0.03051326610147953,
-0.09740953892469406,
-0.20623961091041565,
-0.3846091032028198,
-0.14529302716255188,
0.07851868122816086,
-0.013772934675216675,
-0.15699230134487152,
0.44870874285697937,
0.187198668718338,
-0.0461755245923996,
0.20475339889526367,
0.15811288356781006,
0.04655691981315613,
0.07213471829891205,
0.031540647149086,
0.0949200987815857,
0.3714202344417572,
0.06272963434457779,
-0.010814215987920761,
0.10135906934738159,
0.012751253321766853,
0.19025570154190063,
-0.166220560669899,
-0.2549055516719818,
-0.009370775893330574,
-0.13108742237091064,
0.02474052831530571,
-0.472128301858902,
-0.16777612268924713,
-0.4171990752220154,
0.026044294238090515,
0.2850014269351959,
-0.3464551270008087,
0.114730603992939,
0.19408278167247772,
0.04466354846954346,
0.07344655692577362,
-0.013754686340689659,
-0.021227873861789703,
0.2723364531993866,
0.014981601387262344,
0.2983076274394989,
-0.04408297687768936,
0.0612420029938221,
0.46531087160110474,
0.1847611665725708,
0.10907596349716187,
-0.1462475210428238,
-0.6015245914459229,
-0.07265171408653259,
0.054788555949926376,
0.2365454137325287,
0.24340061843395233,
0.03150658309459686,
-0.06871567666530609,
-0.1536572128534317,
-0.057948220521211624,
-0.247763529419899,
-0.0023932289332151413,
-0.1426813304424286,
-0.1327078491449356,
-0.06294276565313339,
-0.3509025275707245,
-0.0605766698718071,
-0.28820836544036865,
-0.2773606479167938,
0.03948407620191574,
0.18792064487934113,
0.08910870552062988,
-0.17817969620227814,
0.2530724108219147,
-0.04177727922797203,
0.15337695181369781,
-0.0730845108628273,
-0.3125741183757782,
-0.2820258140563965,
0.5944557785987854,
-0.3446514904499054,
-0.15482039749622345,
-0.06364020705223083,
-0.3578435182571411,
0.23255106806755066,
0.1982683390378952,
-0.05919743701815605,
-0.3129125237464905,
-0.027691802009940147,
-0.0003508143126964569,
-0.1766401082277298,
0.14622917771339417,
0.12810784578323364,
-0.14596371352672577,
-0.2287897914648056,
-0.05270463973283768,
0.01900390163064003,
0.08991686254739761,
0.37329214811325073,
0.19338878989219666,
-0.17658239603042603,
-0.12034168094396591,
-0.07658177614212036,
0.07061697542667389,
-0.027445513755083084,
0.017437098547816277,
0.22588768601417542,
-0.1589355617761612,
0.1872388869524002,
0.021604202687740326,
-0.10348954051733017,
0.005115468055009842,
-0.11589092016220093,
-0.20938485860824585,
0.11524750292301178,
0.27347850799560547,
-0.21124346554279327,
0.03637471795082092,
-0.13134369254112244,
-0.35869285464286804,
-0.09234021604061127,
0.21822433173656464,
-0.29535990953445435,
0.17784921824932098,
-0.19084443151950836,
-0.06408597528934479,
-0.42183518409729004,
-0.15514642000198364,
0.0004921024665236473,
-0.18363581597805023,
0.183932363986969,
-0.10804664343595505,
-0.3785930871963501,
-0.012338823638856411,
-0.5417198538780212,
0.5136915445327759,
0.25067779421806335,
0.0765957236289978,
0.37777695059776306,
-0.10290071368217468,
0.03962898999452591,
-0.15566648542881012,
0.3985166549682617,
-0.30028942227363586,
-0.2740713357925415,
-0.102881520986557,
0.031143493950366974,
-0.2915137708187103,
-0.0026044026017189026,
-0.40948304533958435,
0.11186051368713379,
0.429816871881485,
0.3906330466270447,
-0.05986178666353226,
-0.00314492080360651,
0.32899871468544006,
0.40126296877861023,
-0.1535186618566513,
0.13342033326625824,
0.058645930141210556,
-0.20080941915512085,
-0.19391244649887085,
0.06168496236205101,
0.13120201230049133,
-0.008959149941802025,
0.42337363958358765,
-0.23479053378105164,
-0.09386497735977173,
0.0015050694346427917,
0.2801460921764374,
0.20894648134708405,
0.352975070476532,
0.32941046357154846,
-0.013072572648525238,
-0.03853396326303482,
0.04471427947282791,
0.37221455574035645,
0.3186179995536804,
-0.05767703428864479,
-0.21164855360984802,
-0.18927428126335144,
-0.4861546754837036,
0.6014279127120972,
-0.09158937633037567,
0.2584627866744995,
0.20552919805049896,
-0.3042527139186859,
0.05868148058652878,
-0.24369779229164124,
0.2452329844236374,
0.19286975264549255,
0.08156108856201172,
-0.2515937387943268,
-0.5197945833206177,
0.0003868415951728821,
-0.11658765375614166,
-0.08394715934991837,
0.22054915130138397,
-0.1855599731206894,
-0.1190517395734787,
0.33974844217300415,
0.38058724999427795,
0.7213770747184753,
0.3727220892906189,
-0.04441409185528755,
0.06490884721279144,
-0.20823633670806885,
0.21029868721961975,
-0.1514594405889511,
0.16764125227928162,
-0.10847602784633636,
-0.1492989957332611,
0.09273214638233185,
0.13888776302337646,
0.039460957050323486,
0.22899025678634644,
-0.1073731929063797,
0.18231038749217987,
-0.11570233106613159,
-0.019616883248090744,
-0.09453950822353363,
0.08100423216819763,
0.20409764349460602,
-0.17472344636917114,
-0.05264032632112503,
0.27505266666412354,
-0.010025523602962494,
-0.25351154804229736,
-0.1283598244190216,
-0.14500877261161804,
-0.09534081816673279,
0.010257109999656677,
-0.049743615090847015,
0.04565325379371643,
-0.14797993004322052,
0.011860734783113003,
0.2016216218471527,
-0.20202600955963135,
-0.15857917070388794,
-0.003815285861492157,
0.08049315959215164,
0.38476797938346863,
-0.0004485342651605606,
0.2140655666589737,
0.2011198103427887,
0.2012859582901001,
-0.08932451903820038,
0.06798041611909866,
0.294002503156662,
-0.024013016372919083,
-0.22139817476272583,
0.15728263556957245,
0.08874703198671341,
-0.4708000421524048,
-0.27471643686294556,
-0.02282816171646118,
0.06189977005124092,
-0.39106234908103943,
-0.046236615628004074,
0.4183838367462158,
-0.06961064785718918,
-0.22543053328990936,
0.25353124737739563,
0.22109797596931458,
-0.4401101768016815,
0.33103445172309875,
0.2801364064216614,
-0.13149693608283997,
-0.05310310795903206,
0.09211276471614838,
0.1217629685997963,
-0.2552769184112549,
0.4135274589061737,
-0.059121690690517426,
-0.022500446066260338,
-0.2673143744468689,
-0.17715886235237122,
0.11376532912254333,
0.04494885355234146,
-0.08369334042072296,
0.05878407508134842,
0.011300995945930481,
0.09819376468658447,
0.029809731990098953,
0.1216481551527977,
0.07944393157958984,
-0.1278662234544754,
-0.32411012053489685,
-0.6035917401313782,
0.1919020712375641,
0.30206695199012756,
0.23610755801200867,
-0.01861400343477726,
0.18281099200248718,
-0.24268481135368347,
0.5098900198936462,
-0.4830339848995209,
0.10326410084962845,
0.25581714510917664,
0.2338085174560547,
-0.027629956603050232,
-0.09496141225099564,
-0.0028976358007639647,
-0.12418811023235321,
0.2989673316478729,
-0.03621245175600052,
-0.09854096919298172,
-0.3450573980808258,
-0.08601172268390656,
0.007972672581672668,
-0.06435637921094894,
-0.0786527693271637,
0.02774057909846306,
0.008465085178613663,
-0.0038844533264636993,
-0.363575279712677,
0.07974579930305481,
-0.10066263377666473,
-0.02019105851650238,
0.2206115573644638,
0.3439675271511078,
0.24045899510383606,
0.07684861868619919,
0.11375351250171661,
-0.08687856793403625,
-0.030342653393745422,
0.1041281521320343,
0.02367291785776615,
0.14364942908287048,
-0.10405755788087845,
0.301778644323349,
0.11837445199489594,
0.11945560574531555,
-0.08340083807706833,
0.10525944083929062,
0.08537829667329788,
0.012601613998413086,
-0.10631903260946274,
0.3554544746875763,
0.21939001977443695,
0.08418259769678116,
0.24637900292873383,
0.29002103209495544,
0.46528953313827515,
-0.3328397572040558,
0.09703987091779709,
0.18726052343845367,
0.10101394355297089,
0.20558777451515198,
0.1568869650363922,
0.2433466911315918,
0.017206653952598572,
-0.0071430504322052,
0.04071391746401787,
0.03534301742911339,
-0.09171560406684875,
-0.06931877136230469,
0.3280284106731415,
-0.19899816811084747,
-0.2737841308116913,
-0.08835895359516144,
-0.09339934587478638,
0.02891983836889267,
0.12475740909576416,
0.0135725736618042,
0.39810991287231445,
0.4890511929988861,
-0.16506217420101166,
-0.06892500072717667,
-0.1213795393705368,
0.22383686900138855,
0.27906525135040283,
0.166437566280365,
0.4490497410297394,
0.4822935461997986,
0.34013184905052185,
0.06081525236368179,
-0.43023186922073364,
-0.05361813306808472,
0.10771794617176056,
0.027371050789952278,
-0.0503118671476841,
-0.07410602271556854,
-0.2121245563030243,
-0.22331753373146057,
-0.08406613767147064,
0.22266732156276703,
-0.30299460887908936,
0.17545416951179504,
-0.22928504645824432,
-0.13373751938343048,
-0.19969934225082397,
0.09532138705253601,
0.09331437945365906,
0.23433732986450195,
-0.2704227864742279,
-0.00777156837284565,
0.10151374340057373,
-0.13855323195457458,
0.2698785364627838,
0.2487732172012329,
0.288371741771698,
0.017313271760940552,
-0.1522371619939804,
0.24240964651107788,
-0.10982874035835266,
-0.09405508637428284,
-0.26803308725357056,
-0.08308077603578568,
0.06701593101024628,
-0.02452600747346878,
0.13394297659397125,
0.2917023003101349,
-0.305637389421463,
0.2154828906059265,
0.033137641847133636,
0.08813060820102692,
-0.270121306180954,
-0.00044448673725128174,
0.23861739039421082,
-0.4933009147644043,
-0.12195764482021332,
-0.4256599247455597,
-0.25336718559265137,
-0.4285176694393158,
0.07974838465452194,
-0.3791309893131256,
-0.010219043120741844,
0.08926140516996384,
0.1759544461965561,
-0.1422223448753357,
0.5551964044570923,
0.4812189042568207,
0.07398344576358795,
-0.012430177070200443,
-0.31237608194351196,
-0.4836333990097046,
0.21942532062530518,
-0.056275393813848495,
-0.13902495801448822,
-0.01851399801671505,
0.0015056096017360687,
0.28723248839378357,
-0.013077445328235626,
0.28593865036964417,
-0.05858871713280678,
-0.20684392750263214,
0.07130174338817596,
-0.32075250148773193,
0.24852366745471954,
-0.12913762032985687,
0.3100481629371643,
0.23141366243362427,
-0.0674782320857048,
-0.06941939890384674,
-0.11779055744409561,
0.25141146779060364,
-0.04130715876817703,
-0.01102948933839798,
0.07401782274246216,
0.12756341695785522,
0.41706568002700806,
0.22107143700122833,
0.09017921984195709,
-0.46828216314315796,
-0.06597341597080231,
-0.3132871687412262,
-0.05712857469916344,
-0.39106327295303345,
0.2766563892364502,
0.05155688524246216,
0.3043656647205353,
0.0733211413025856,
-0.2173108607530594,
0.1498275250196457,
0.27713608741760254,
0.001380927860736847,
-0.03600970655679703,
-0.19509409368038177,
0.32855820655822754,
-0.09985484182834625,
-0.1976161152124405,
-0.1854775846004486,
0.1860240399837494,
0.008391998708248138,
-0.13331042230129242,
-0.07046998292207718,
-0.2347138226032257,
0.2004668414592743,
-0.1623767912387848,
-0.16461989283561707,
-0.4515869617462158,
-0.05013531446456909,
0.09920093417167664,
0.01842948980629444,
-0.4311220347881317,
-0.16480693221092224,
0.22436761856079102,
0.06604078412055969,
-0.12289035320281982,
0.47515586018562317,
-0.19300296902656555,
-0.3418251872062683,
-0.0845569521188736,
0.18663808703422546,
0.17292985320091248,
-0.07445059716701508,
-0.3311724066734314,
-0.38021141290664673
] |
https://github.com/huggingface/datasets/issues/365 | How to augment data ? | It just feels awkward to use map to augment data. Also it means it's not possible to augment data in a non-batched way.
But to be honest I have no idea of a good API... | Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
``` | 35 | How to augment data ?
Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
```
It just feels awkward to use map to augment data. Also it means it's not possible to augment data in a non-batched way.
But to be honest I have no idea of a good API... | [
-0.06860516220331192,
-0.030538946390151978,
-0.29906535148620605,
-0.11018410325050354,
0.06244416534900665,
0.33545270562171936,
-0.17495845258235931,
0.2741321623325348,
0.1564612239599228,
0.13222163915634155,
-0.04436824470758438,
0.09031321108341217,
-0.017896663397550583,
0.2145759016275406,
0.15718087553977966,
-0.11048352718353271,
0.1782810539007187,
0.11951157450675964,
-0.09640680253505707,
0.2644742727279663,
-0.06897014379501343,
-0.46591466665267944,
-0.025633718818426132,
-0.5230013132095337,
-0.05776967853307724,
-0.1176648661494255,
-0.34572580456733704,
-0.2689726650714874,
0.029552679508924484,
-0.31388506293296814,
-0.17503207921981812,
0.04571247100830078,
0.12274995446205139,
0.2257133424282074,
-0.00010226159793091938,
-0.16656655073165894,
0.22023344039916992,
0.08006379753351212,
-0.31304100155830383,
0.36639952659606934,
0.09282567352056503,
-0.7476427555084229,
0.0595012828707695,
-0.05588690936565399,
-0.12086597830057144,
-0.4913313090801239,
0.10320068895816803,
-0.12030375003814697,
0.3686809539794922,
-0.19974300265312195,
0.2372494339942932,
0.031000014394521713,
0.38454100489616394,
0.006108532659709454,
0.02833675965666771,
0.4011591076850891,
0.18555386364459991,
0.06206515058875084,
0.7107816934585571,
0.12199835479259491,
0.3612779676914215,
0.05515371263027191,
-0.20429857075214386,
-0.06434209644794464,
0.2428516447544098,
0.006809398531913757,
0.12729568779468536,
-0.4292883276939392,
0.006451305001974106,
0.12348012626171112,
0.45344945788383484,
0.225190669298172,
-0.5979695916175842,
-0.2979205846786499,
0.1898910403251648,
-0.09868195652961731,
-0.40960893034935,
-0.03841789811849594,
0.16860094666481018,
0.04552881047129631,
-0.22182129323482513,
-0.21932148933410645,
-0.0807437151670456,
0.39979904890060425,
0.13866408169269562,
0.391826331615448,
0.02025584690272808,
-0.024992898106575012,
-0.11550082266330719,
-0.26878243684768677,
-0.12623517215251923,
0.12362754344940186,
-0.2063969373703003,
0.45282477140426636,
-0.1286778450012207,
-0.1373751312494278,
-0.21478649973869324,
-0.22924858331680298,
0.10778150707483292,
0.15610088407993317,
0.16476762294769287,
0.18957310914993286,
-0.20652958750724792,
0.13170833885669708,
0.21495887637138367,
-0.35265228152275085,
0.005351856350898743,
0.12511001527309418,
-0.00391976535320282,
-0.18644081056118011,
0.34913307428359985,
-0.09520433098077774,
-0.09625586122274399,
-0.05275134742259979,
-0.020252037793397903,
-0.12643438577651978,
-0.13544467091560364,
0.048150163143873215,
-0.08464473485946655,
-0.0587637796998024,
-0.2746986746788025,
0.13067273795604706,
-0.020075172185897827,
0.05581092834472656,
-0.22728629410266876,
0.08993922173976898,
-0.18036803603172302,
0.2548748552799225,
0.30096039175987244,
-0.2191845029592514,
-0.06472235918045044,
0.116550013422966,
-0.0582757294178009,
-0.09330698102712631,
0.19888268411159515,
0.14635483920574188,
0.21141918003559113,
0.03581120818853378,
0.08365969359874725,
-0.10504034906625748,
0.09595560282468796,
0.026188045740127563,
0.247420072555542,
0.14168989658355713,
0.21386927366256714,
0.046545736491680145,
-0.17835311591625214,
0.16646285355091095,
-0.03624064847826958,
0.1221705973148346,
-0.416035532951355,
0.012816991657018661,
-0.3895321786403656,
0.2586480975151062,
0.12471917271614075,
-0.24702340364456177,
-0.22442898154258728,
0.39985859394073486,
0.09998269379138947,
-0.29429271817207336,
0.075498066842556,
0.1829734593629837,
0.11832535266876221,
-0.3427894413471222,
0.4804631769657135,
0.02197066694498062,
-0.3363797068595886,
0.024247951805591583,
-0.15491990745067596,
0.3433930277824402,
0.10770063102245331,
-0.0038100779056549072,
0.00005361853982321918,
0.19867470860481262,
-0.16525478661060333,
-0.1588570922613144,
0.32368865609169006,
-0.2099803239107132,
-0.2859988808631897,
-0.02385961078107357,
0.19971053302288055,
0.0716651976108551,
-0.13602182269096375,
0.33863434195518494,
0.22509829699993134,
-0.01242845319211483,
0.27041757106781006,
0.4746158719062805,
-0.1091526597738266,
-0.18327561020851135,
0.021644998341798782,
-0.1854127049446106,
0.29069244861602783,
0.19259022176265717,
-0.13571332395076752,
-0.13414159417152405,
0.31201186776161194,
-0.5104280114173889,
0.17148399353027344,
-0.2035454511642456,
0.3540636897087097,
0.1331252008676529,
0.21255965530872345,
0.39548373222351074,
-0.08580067753791809,
-0.22483322024345398,
-0.2453148066997528,
-0.023848623037338257,
-0.08820880949497223,
-0.1936919242143631,
0.1417810618877411,
-0.2581707835197449,
0.0926201194524765,
-0.1290222406387329,
0.14250898361206055,
-0.35324937105178833,
0.25984105467796326,
-0.22046661376953125,
0.06912848353385925,
-0.5130605101585388,
-0.056429725140333176,
-0.16492438316345215,
0.2361115664243698,
0.06637938320636749,
-0.1898200809955597,
-0.041050300002098083,
0.32209688425064087,
-0.3198963403701782,
-0.21954521536827087,
0.33755767345428467,
-0.15876880288124084,
-0.14906162023544312,
0.11333290487527847,
0.2951255738735199,
0.06264915317296982,
0.2453918308019638,
0.2639639377593994,
0.30634769797325134,
0.05407390743494034,
0.14005602896213531,
0.06418652832508087,
0.32346072793006897,
-0.023899275809526443,
-0.1454494744539261,
-0.0821390375494957,
0.18681132793426514,
0.12857520580291748,
0.17231374979019165,
-0.25826960802078247,
0.2777765393257141,
0.32683274149894714,
0.0306294746696949,
-0.12323279678821564,
0.0002803802490234375,
-0.22462250292301178,
-0.032574571669101715,
0.33393797278404236,
-0.29608193039894104,
-0.09500163793563843,
0.02376580983400345,
-0.5188766121864319,
-0.1817837655544281,
-0.0920921340584755,
-0.13160890340805054,
-0.4617493748664856,
-0.17246440052986145,
0.09330283105373383,
-0.09778350591659546,
-0.18166883289813995,
0.3911100924015045,
0.11943089962005615,
-0.0705561414361,
0.29899945855140686,
0.18789683282375336,
0.04356934130191803,
0.18243703246116638,
-0.05629274249076843,
-0.09727723151445389,
0.39717480540275574,
0.22245362401008606,
0.2089010775089264,
0.022177785634994507,
0.012448543682694435,
0.1462165266275406,
-0.10392224788665771,
-0.1517762839794159,
-0.14043717086315155,
-0.20717117190361023,
0.06443721055984497,
-0.6927345395088196,
-0.16954292356967926,
-0.4011867940425873,
-0.08225389569997787,
0.24752913415431976,
-0.22638456523418427,
0.02460499107837677,
0.15771368145942688,
0.13072621822357178,
0.027636295184493065,
-0.24046652019023895,
-0.011785995215177536,
0.23743529617786407,
0.046320877969264984,
0.20382159948349,
0.009705637581646442,
0.030585238710045815,
0.5850216150283813,
0.11059849709272385,
0.22220736742019653,
-0.15313385426998138,
-0.48711639642715454,
-0.16130372881889343,
0.12272267788648605,
0.20281420648097992,
0.1914292573928833,
-0.04551021754741669,
-0.06163034588098526,
-0.18747161328792572,
-0.11299590766429901,
-0.16464458405971527,
0.13675794005393982,
-0.156336709856987,
-0.1317683309316635,
-0.06782437115907669,
-0.22244012355804443,
0.1538301408290863,
-0.42058223485946655,
-0.2322579324245453,
0.08452152460813522,
0.16229476034641266,
0.04189249128103256,
-0.21985039114952087,
0.2272852063179016,
0.015568186528980732,
0.07439910620450974,
-0.05590575933456421,
-0.118487648665905,
-0.17907075583934784,
0.5194662809371948,
-0.26353058218955994,
0.004639502614736557,
-0.011184927076101303,
-0.3212348222732544,
0.15506698191165924,
0.15276549756526947,
-0.010232996195554733,
-0.27066123485565186,
-0.07872108370065689,
0.06890493631362915,
-0.17599976062774658,
0.15950344502925873,
0.08222753554582596,
-0.19646373391151428,
-0.13517913222312927,
0.08172000199556351,
-0.04398467391729355,
-0.004975989460945129,
0.3328838348388672,
0.16566161811351776,
-0.05086369812488556,
-0.11120707541704178,
-0.11765474081039429,
0.0994255542755127,
0.11967143416404724,
-0.10479111969470978,
0.12221112102270126,
-0.22795096039772034,
0.13508042693138123,
-0.008104957640171051,
-0.07076506316661835,
-0.13306425511837006,
-0.15150994062423706,
-0.18624581396579742,
-0.024810791015625,
0.28467419743537903,
-0.13250359892845154,
0.045083194971084595,
-0.19824761152267456,
-0.4388127028942108,
-0.07209515571594238,
0.09538627415895462,
-0.46093320846557617,
0.23186150193214417,
-0.2455289661884308,
-0.12522947788238525,
-0.42143064737319946,
-0.26009175181388855,
0.04421880096197128,
-0.1415373980998993,
0.2868056893348694,
-0.04178474843502045,
-0.30277854204177856,
-0.08758116513490677,
-0.5137755274772644,
0.6783243417739868,
0.23437926173210144,
0.15151770412921906,
0.46634891629219055,
-0.04878263175487518,
0.1367245614528656,
-0.019985603168606758,
0.36456191539764404,
-0.23933501541614532,
-0.4498533010482788,
-0.194430872797966,
0.08655370771884918,
-0.2527432441711426,
-0.04415586218237877,
-0.32357385754585266,
0.11600665003061295,
0.3699188828468323,
0.38985341787338257,
0.03686890751123428,
0.06401550024747849,
0.30465924739837646,
0.48866006731987,
-0.14222891628742218,
0.011883829720318317,
0.1554073989391327,
-0.13883018493652344,
-0.09509623795747757,
0.039746396243572235,
0.06082554906606674,
-0.005151596385985613,
0.48578590154647827,
-0.24446235597133636,
-0.1724439114332199,
0.1839728057384491,
0.3422125577926636,
0.08258254826068878,
0.249889075756073,
0.3170359134674072,
0.002291392534971237,
-0.05813359469175339,
0.07591461390256882,
0.4048272669315338,
0.25554603338241577,
-0.13851407170295715,
-0.3291592001914978,
-0.24330830574035645,
-0.4462718367576599,
0.7755661606788635,
-0.3907983601093292,
0.3191578984260559,
0.37198594212532043,
-0.22409917414188385,
-0.03692660480737686,
-0.4037375748157501,
0.1591901332139969,
0.12959428131580353,
0.19807614386081696,
-0.382671594619751,
-0.6550887823104858,
0.1126243844628334,
0.017324209213256836,
-0.022280991077423096,
0.21551474928855896,
-0.22854448854923248,
-0.01458682119846344,
0.31824976205825806,
0.4359504282474518,
0.6240625977516174,
0.347609281539917,
0.04055654630064964,
-0.06117463856935501,
-0.21393199265003204,
0.33331432938575745,
-0.11159679293632507,
0.2151457518339157,
-0.01510397344827652,
-0.1331290900707245,
-0.018274851143360138,
0.09515082836151123,
-0.01884782314300537,
0.21447885036468506,
-0.04719863086938858,
0.27606019377708435,
-0.12955546379089355,
0.0813128650188446,
-0.06964763253927231,
0.060804419219493866,
0.20095616579055786,
-0.2505062222480774,
-0.00926356203854084,
0.23171842098236084,
0.04164761304855347,
-0.3046419322490692,
-0.19591471552848816,
-0.021304752677679062,
-0.060989052057266235,
0.13467998802661896,
-0.15533758699893951,
-0.06586083769798279,
-0.07603579759597778,
-0.029990751296281815,
0.3038135766983032,
-0.22880037128925323,
-0.14120052754878998,
-0.0339290015399456,
-0.02570260316133499,
0.43772873282432556,
0.0033885203301906586,
0.06006979942321777,
0.10747383534908295,
0.19665391743183136,
-0.11270855367183685,
-0.0034193196333944798,
0.240753173828125,
0.11894089728593826,
-0.1846676766872406,
0.23881086707115173,
0.14559605717658997,
-0.4697568416595459,
-0.27682429552078247,
0.00034742802381515503,
0.010770518332719803,
-0.30055445432662964,
-0.12409637868404388,
0.41216325759887695,
0.035679180175065994,
-0.15333528816699982,
0.1705082356929779,
0.2669604420661926,
-0.37070170044898987,
0.3103790581226349,
0.12994158267974854,
-0.18794375658035278,
-0.0595058836042881,
0.06798060983419418,
0.05405053496360779,
-0.37364500761032104,
0.4893713891506195,
-0.05585949122905731,
0.0053875744342803955,
-0.17900431156158447,
-0.10762631893157959,
0.09151534736156464,
0.21147173643112183,
-0.23394404351711273,
0.09858696162700653,
0.16446490585803986,
0.19823312759399414,
-0.12072855234146118,
0.14920437335968018,
0.07059362530708313,
-0.18064367771148682,
-0.3886057436466217,
-0.509319007396698,
0.2766164541244507,
0.32276687026023865,
0.23748774826526642,
0.11553362756967545,
0.020769694820046425,
-0.22411537170410156,
0.5227140784263611,
-0.3601151704788208,
0.09425177425146103,
0.3992100656032562,
0.17784614861011505,
0.03666819632053375,
0.03986424207687378,
-0.11187463998794556,
-0.06685616075992584,
0.2068973034620285,
-0.11605735123157501,
0.06475386023521423,
-0.24556097388267517,
-0.026257557794451714,
0.045397236943244934,
-0.04026814550161362,
0.05136089026927948,
-0.06313560158014297,
-0.025277910754084587,
0.015597489662468433,
-0.5234677791595459,
0.014789629727602005,
-0.12476537376642227,
-0.10390958189964294,
0.10252934694290161,
0.2808089554309845,
0.28823885321617126,
-0.184380441904068,
0.21786877512931824,
-0.10109347105026245,
-0.05903211236000061,
0.058356162160634995,
0.027107257395982742,
0.24433615803718567,
-0.06234273314476013,
0.2635534703731537,
0.15394164621829987,
0.3184341788291931,
-0.20020711421966553,
0.023245740681886673,
0.15090060234069824,
0.013754114508628845,
-0.09278953075408936,
0.22797119617462158,
0.26385098695755005,
0.13146358728408813,
0.2674960494041443,
0.3891100585460663,
0.3625015318393707,
-0.2104799449443817,
0.05509048327803612,
0.24484163522720337,
0.17265824973583221,
0.15296852588653564,
0.17741268873214722,
0.21894696354866028,
0.04912827908992767,
-0.08191102743148804,
-0.0799717903137207,
0.06849104911088943,
-0.046788133680820465,
-0.028063930571079254,
0.3850806951522827,
-0.10993366688489914,
-0.31746533513069153,
-0.06247124820947647,
-0.01031520590186119,
-0.03002692013978958,
0.03989506512880325,
0.033257946372032166,
0.3949258327484131,
0.5789954662322998,
-0.21485352516174316,
-0.059763066470623016,
-0.21565555036067963,
0.14465656876564026,
0.2955490052700043,
0.21115745604038239,
0.477383553981781,
0.5241520404815674,
0.33428213000297546,
0.03885245323181152,
-0.33864304423332214,
-0.019138885661959648,
0.059864066541194916,
0.13247796893119812,
0.01303938403725624,
-0.017424432560801506,
-0.13905495405197144,
-0.23025096952915192,
-0.1648152768611908,
0.2870806157588959,
-0.3954576253890991,
0.06607548147439957,
-0.19788776338100433,
-0.09593671560287476,
-0.1431283801794052,
0.16667062044143677,
0.22474214434623718,
0.1581086814403534,
-0.30852943658828735,
-0.07600130885839462,
0.020860180258750916,
-0.09959802031517029,
0.1876101940870285,
0.21367086470127106,
0.21489585936069489,
-0.02332824096083641,
-0.12481310963630676,
0.33048149943351746,
-0.2685583829879761,
-0.07254241406917572,
-0.1951679140329361,
-0.0014984309673309326,
-0.010177113115787506,
-0.11384694278240204,
0.0031898487359285355,
0.2585465908050537,
-0.16977627575397491,
0.24494047462940216,
-0.12409937381744385,
0.23838050663471222,
-0.45895910263061523,
0.08382847160100937,
0.267905592918396,
-0.481374055147171,
-0.050775498151779175,
-0.2813662886619568,
-0.15765997767448425,
-0.39734870195388794,
0.18483908474445343,
-0.43073034286499023,
-0.16209587454795837,
0.18418706953525543,
0.14414434134960175,
-0.1859399676322937,
0.5007234215736389,
0.7532905340194702,
0.21484479308128357,
0.12947916984558105,
-0.27977466583251953,
-0.399554580450058,
0.1798865795135498,
-0.06664012372493744,
-0.10610781610012054,
-0.09725990146398544,
-0.16584528982639313,
0.2976006269454956,
0.01566978730261326,
0.352847158908844,
-0.059682127088308334,
-0.23331229388713837,
0.0900556743144989,
-0.13159605860710144,
0.2456473708152771,
-0.13324996829032898,
0.3043701648712158,
0.1825484037399292,
0.01874353736639023,
-0.10658875107765198,
-0.06901510059833527,
0.12484490126371384,
-0.11453026533126831,
0.023936256766319275,
0.1387081891298294,
-0.017999358475208282,
0.45281073451042175,
0.2902182638645172,
0.09226372092962265,
-0.45185860991477966,
0.023294875398278236,
-0.33296748995780945,
0.034730542451143265,
-0.3404896855354309,
0.3179118037223816,
-0.11970841884613037,
0.11957314610481262,
-0.052570171654224396,
-0.12634685635566711,
0.24018678069114685,
0.23799434304237366,
-0.09419526904821396,
-0.09371018409729004,
-0.23296037316322327,
0.16388115286827087,
-0.287490576505661,
-0.255779892206192,
-0.06934694200754166,
0.12232863157987595,
0.08132022619247437,
-0.07100706547498703,
0.0695209950208664,
0.052532777190208435,
-0.06445172429084778,
-0.19067694246768951,
-0.12124216556549072,
-0.5665043592453003,
-0.07191799581050873,
0.0426793172955513,
0.149125874042511,
-0.30138927698135376,
-0.2243119478225708,
0.34228745102882385,
0.0864366888999939,
-0.006354080513119698,
0.48440292477607727,
-0.16972655057907104,
-0.29942768812179565,
-0.1539604663848877,
0.23517762124538422,
0.10297299176454544,
0.010390976443886757,
-0.3394872844219208,
-0.3807593584060669
] |
https://github.com/huggingface/datasets/issues/365 | How to augment data ? | Or for non-batched samples, how about returning a tuple ?
```python
def aug(sample):
# Simply copy the existing data to have x2 amount of data
return sample, sample
dataset = dataset.map(aug)
```
It feels really natural and easy, but :
* it means the behavior with batched data is different
* I don't know how doable it is backend-wise
@lhoestq | Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
``` | 60 | How to augment data ?
Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
```
Or for non-batched samples, how about returning a tuple ?
```python
def aug(sample):
# Simply copy the existing data to have x2 amount of data
return sample, sample
dataset = dataset.map(aug)
```
It feels really natural and easy, but :
* it means the behavior with batched data is different
* I don't know how doable it is backend-wise
@lhoestq | [
-0.06329944729804993,
-0.05564657598733902,
-0.2771684527397156,
-0.036863334476947784,
0.06049180030822754,
0.20088127255439758,
-0.08675980567932129,
0.3342859447002411,
0.2316303253173828,
0.1316540241241455,
-0.043929360806941986,
0.1579209864139557,
-0.0891120433807373,
0.2297116070985794,
0.1699346899986267,
-0.08233955502510071,
0.11748168617486954,
0.10526461899280548,
-0.23275509476661682,
0.1378307044506073,
-0.1590787172317505,
-0.4287636876106262,
-0.0023527592420578003,
-0.556016206741333,
-0.05300218239426613,
-0.14001059532165527,
-0.251208633184433,
-0.1560887098312378,
-0.08589234948158264,
-0.2709835469722748,
-0.1612512767314911,
-0.0034368932247161865,
0.06910727173089981,
0.22751760482788086,
-0.00010089308489114046,
-0.11848288029432297,
0.16405703127384186,
-0.009550841525197029,
-0.349393755197525,
0.32998621463775635,
0.1156729981303215,
-0.6480945348739624,
0.027730245143175125,
-0.18909282982349396,
-0.07956661283969879,
-0.38082680106163025,
0.02490309625864029,
-0.13722681999206543,
0.3346526026725769,
-0.223228320479393,
0.2483513504266739,
0.0744483470916748,
0.2788707911968231,
-0.02020842209458351,
0.09429468959569931,
0.4097543954849243,
0.1738615185022354,
0.010954262688755989,
0.7498841285705566,
0.12459871172904968,
0.2768815755844116,
0.12573254108428955,
-0.165739506483078,
-0.0216304250061512,
0.160804882645607,
0.038264065980911255,
0.23372849822044373,
-0.312176913022995,
0.013891557231545448,
0.07775533944368362,
0.29781872034072876,
0.1781383752822876,
-0.5725188851356506,
-0.27321046590805054,
0.11899425089359283,
-0.12417570501565933,
-0.4445829391479492,
-0.07845812290906906,
0.09917281568050385,
0.000963158905506134,
-0.25924423336982727,
-0.11054819077253342,
-0.07111774384975433,
0.440238356590271,
0.08913493156433105,
0.42572078108787537,
0.0323689766228199,
-0.002546653151512146,
-0.1321634203195572,
-0.2531958222389221,
-0.18322215974330902,
0.09751582890748978,
-0.12464888393878937,
0.42090120911598206,
-0.05795085057616234,
-0.1266138106584549,
-0.06774372607469559,
-0.305594265460968,
0.1858883500099182,
0.10997267812490463,
0.19293849170207977,
0.21069437265396118,
-0.22724664211273193,
0.1542174518108368,
0.26585835218429565,
-0.24250489473342896,
-0.002289488911628723,
0.20415712893009186,
-0.07587021589279175,
-0.16932253539562225,
0.22397765517234802,
-0.047700755298137665,
-0.06557692587375641,
-0.006086435168981552,
-0.02693953551352024,
-0.03821665048599243,
-0.06314451992511749,
0.09743675589561462,
-0.1065990999341011,
0.010491260327398777,
-0.17879721522331238,
0.03226017579436302,
-0.04190104082226753,
0.10704150050878525,
-0.1549942046403885,
0.059006281197071075,
-0.15477138757705688,
0.22810505330562592,
0.23525620996952057,
-0.22667205333709717,
-0.16330231726169586,
0.08020000159740448,
-0.08959753811359406,
-0.2012699991464615,
0.21891526877880096,
0.24893459677696228,
0.27412673830986023,
-0.04908475652337074,
0.14571136236190796,
-0.08276373147964478,
0.13499589264392853,
0.0380837582051754,
0.3588126599788666,
0.11160483956336975,
0.24214163422584534,
0.005165189504623413,
-0.10183162987232208,
0.17014679312705994,
-0.09626804292201996,
0.08453533053398132,
-0.3631034195423126,
-0.06551357358694077,
-0.3703007102012634,
0.2830744981765747,
0.026531044393777847,
-0.11390693485736847,
-0.25420618057250977,
0.33720043301582336,
0.18853537738323212,
-0.18186628818511963,
0.08964375406503677,
0.05952829867601395,
0.11524252593517303,
-0.36699342727661133,
0.4468907415866852,
0.11341026425361633,
-0.3732808232307434,
0.022727638483047485,
-0.09595460444688797,
0.293131947517395,
0.06770320236682892,
0.0707128494977951,
-0.08004839718341827,
0.144046813249588,
-0.21602901816368103,
-0.09712117910385132,
0.41181066632270813,
-0.19389675557613373,
-0.31950294971466064,
-0.01701403222978115,
0.1635008007287979,
0.15720874071121216,
-0.08283717185258865,
0.2576369643211365,
0.3237336575984955,
-0.010577268898487091,
0.3484734296798706,
0.43475115299224854,
-0.14683106541633606,
-0.1505579948425293,
-0.05936504155397415,
-0.12526299059391022,
0.2915831208229065,
0.11384850740432739,
-0.13476596772670746,
-0.07849932461977005,
0.31388717889785767,
-0.4948127865791321,
0.2585175633430481,
-0.20500433444976807,
0.3731137216091156,
0.027398336678743362,
0.28505098819732666,
0.32543426752090454,
-0.08620206266641617,
-0.17558521032333374,
-0.33581823110580444,
-0.03841717913746834,
-0.1873898059129715,
-0.20333260297775269,
0.15396259725093842,
-0.2810041308403015,
0.020397182554006577,
-0.04878076910972595,
0.09394499659538269,
-0.32816898822784424,
0.297573447227478,
-0.23601973056793213,
0.07403488457202911,
-0.48091942071914673,
-0.04141958802938461,
-0.24683883786201477,
0.17298537492752075,
0.042186934500932693,
-0.22507207095623016,
-0.001335659995675087,
0.2824294865131378,
-0.3155227303504944,
-0.2743348479270935,
0.3438548445701599,
-0.16672876477241516,
-0.15991944074630737,
0.13412022590637207,
0.24374321103096008,
0.03343795984983444,
0.15773454308509827,
0.24640870094299316,
0.1587114781141281,
-0.007062749937176704,
0.22507789731025696,
0.13977354764938354,
0.25730082392692566,
-0.13082166016101837,
-0.19302797317504883,
-0.053935542702674866,
0.23138800263404846,
0.11184234917163849,
0.1938214898109436,
-0.23549771308898926,
0.22264280915260315,
0.2522433400154114,
-0.001430116593837738,
-0.16259664297103882,
-0.10344360768795013,
-0.25910717248916626,
0.03647972643375397,
0.3868323862552643,
-0.28243231773376465,
-0.0578857846558094,
0.0966743603348732,
-0.3447912633419037,
-0.14866454899311066,
-0.073967345058918,
-0.22480911016464233,
-0.4727672338485718,
-0.20040306448936462,
0.10418256372213364,
0.017494838684797287,
-0.052300482988357544,
0.4373731315135956,
0.19975760579109192,
-0.0958634465932846,
0.3652174174785614,
0.1758301854133606,
0.007163144648075104,
0.13413913547992706,
-0.07811034470796585,
0.0565468892455101,
0.4229621887207031,
0.1454017609357834,
0.17834031581878662,
0.04958788678050041,
0.040543265640735626,
0.07784199714660645,
-0.10194756090641022,
-0.234795480966568,
-0.06077149510383606,
-0.19699642062187195,
0.03598136827349663,
-0.6457639336585999,
-0.13880427181720734,
-0.3514399528503418,
-0.07892988622188568,
0.2720777690410614,
-0.32461807131767273,
-0.01866367645561695,
0.09615178406238556,
0.09402145445346832,
0.06816353648900986,
-0.27812710404396057,
0.07357244193553925,
0.23369421064853668,
0.029743563383817673,
0.2181042730808258,
-0.08712396770715714,
0.003438627813011408,
0.5335661172866821,
0.18267323076725006,
0.15184138715267181,
-0.16397732496261597,
-0.45504385232925415,
-0.0837375819683075,
0.07827850431203842,
0.22346559166908264,
0.3338841497898102,
-0.03332367539405823,
-0.03056957758963108,
-0.23490042984485626,
0.012292127124965191,
-0.04777536541223526,
0.031939372420310974,
-0.1580982506275177,
-0.06038683280348778,
-0.05062072351574898,
-0.28784170746803284,
0.05730433017015457,
-0.4049878716468811,
-0.25390705466270447,
0.06818544119596481,
0.21930579841136932,
0.11333440244197845,
-0.19748865067958832,
0.2885572612285614,
-0.022100798785686493,
0.14971067011356354,
-0.21287544071674347,
-0.26041126251220703,
-0.21324516832828522,
0.5349240303039551,
-0.31959232687950134,
0.050466883927583694,
-0.12545530498027802,
-0.38931673765182495,
0.2763391435146332,
0.29122769832611084,
0.01725511997938156,
-0.29478445649147034,
0.043665096163749695,
0.10515734553337097,
-0.10989251732826233,
0.2192491739988327,
0.2075725793838501,
-0.11530162394046783,
-0.1686347872018814,
-0.04329364374279976,
0.057932715862989426,
0.0500364787876606,
0.37314942479133606,
0.23423916101455688,
-0.15227365493774414,
-0.14616957306861877,
-0.07762890309095383,
0.19711729884147644,
0.0783795416355133,
-0.07745246589183807,
0.12730827927589417,
-0.14766119420528412,
0.11181940138339996,
-0.025835104286670685,
-0.07679983973503113,
-0.18383969366550446,
-0.19543251395225525,
-0.27687883377075195,
-0.0051437243819236755,
0.18640094995498657,
-0.06206437945365906,
0.0897916704416275,
-0.09011410176753998,
-0.41383790969848633,
-0.14335760474205017,
0.2293684035539627,
-0.45288801193237305,
0.18332600593566895,
-0.17981933057308197,
-0.05390945076942444,
-0.5003437995910645,
-0.09583155065774918,
-0.03210553154349327,
-0.279513955116272,
0.3314755856990814,
-0.08261030167341232,
-0.40404555201530457,
0.010643715970218182,
-0.48546111583709717,
0.6610723733901978,
0.271806925535202,
0.026572396978735924,
0.5393346548080444,
-0.18537256121635437,
0.0325600691139698,
0.0023205322213470936,
0.40789639949798584,
-0.262584388256073,
-0.34785372018814087,
-0.11251553893089294,
0.0016585402190685272,
-0.2887252867221832,
-0.09324362874031067,
-0.33494803309440613,
0.12296134978532791,
0.37084391713142395,
0.38972097635269165,
-0.023839324712753296,
0.13304926455020905,
0.2525302469730377,
0.41040852665901184,
-0.1656056046485901,
0.07728934288024902,
0.10771970450878143,
-0.08943658322095871,
-0.03342539444565773,
0.035729486495256424,
0.031130244955420494,
-0.003164455993101001,
0.4475535452365875,
-0.28725379705429077,
-0.13445205986499786,
0.12894904613494873,
0.2831684947013855,
0.10023832321166992,
0.3788500130176544,
0.2231844961643219,
0.016169074922800064,
-0.1264464259147644,
0.059214621782302856,
0.39049050211906433,
0.34115394949913025,
-0.25313881039619446,
-0.23157858848571777,
-0.205868661403656,
-0.512368381023407,
0.6896957755088806,
-0.25358912348747253,
0.2955569922924042,
0.33730921149253845,
-0.3510533571243286,
0.018825501203536987,
-0.34061112999916077,
0.17010416090488434,
0.1007562205195427,
0.08428061008453369,
-0.3459067642688751,
-0.5909568667411804,
0.05313456058502197,
-0.11617046594619751,
-0.046852193772792816,
0.18681977689266205,
-0.3011865019798279,
-0.12002772092819214,
0.42503422498703003,
0.44808968901634216,
0.594904899597168,
0.3401123285293579,
0.08707302808761597,
-0.05577358603477478,
-0.0333281010389328,
0.2986183762550354,
-0.0762583538889885,
0.14410263299942017,
-0.02589939907193184,
-0.07500547170639038,
0.015106583014130592,
0.09212566912174225,
-0.07611832767724991,
0.3233538269996643,
-0.08409251272678375,
0.15749861299991608,
-0.1557348370552063,
0.0077815912663936615,
-0.11164741963148117,
0.053985439240932465,
0.22075378894805908,
-0.19852079451084137,
-0.021007448434829712,
0.2352900207042694,
0.03355537727475166,
-0.26148614287376404,
-0.1723611056804657,
-0.07046511024236679,
-0.10752169787883759,
0.030370309948921204,
-0.06263050436973572,
-0.047148894518613815,
-0.16931559145450592,
0.006261125206947327,
0.30742815136909485,
-0.2784872353076935,
-0.22130520641803741,
-0.10353945195674896,
-0.0684424638748169,
0.4430479109287262,
0.04714382812380791,
0.035417478531599045,
0.21933239698410034,
0.3094562590122223,
-0.06414902955293655,
-0.06891737878322601,
0.26995426416397095,
0.15166401863098145,
-0.11440754681825638,
0.22254133224487305,
0.13024292886257172,
-0.47461891174316406,
-0.35394778847694397,
0.011416874825954437,
-0.0010119341313838959,
-0.46327173709869385,
-0.134292334318161,
0.4919714331626892,
-0.007393509149551392,
-0.15617682039737701,
0.16996043920516968,
0.2109726071357727,
-0.41438186168670654,
0.3574542701244354,
0.15021920204162598,
-0.15700072050094604,
-0.009638778865337372,
0.08310078084468842,
0.15532489120960236,
-0.2740045189857483,
0.41140955686569214,
-0.04079287871718407,
0.03347538411617279,
-0.22004327178001404,
-0.22465333342552185,
0.18505582213401794,
0.09832852333784103,
-0.11285930871963501,
0.09885048121213913,
0.10106295347213745,
0.1159331277012825,
-0.001839909702539444,
0.10435221344232559,
0.2066410779953003,
-0.19129478931427002,
-0.29858264327049255,
-0.5659024119377136,
0.3158523738384247,
0.3864024877548218,
0.26731473207473755,
0.054900094866752625,
0.1596599817276001,
-0.288972944021225,
0.5095267295837402,
-0.3953595459461212,
0.016590798273682594,
0.38212141394615173,
0.22974872589111328,
0.041596077382564545,
-0.011908851563930511,
-0.019581587985157967,
-0.049674879759550095,
0.23208215832710266,
-0.04333037883043289,
-0.034302450716495514,
-0.296915203332901,
-0.04510107636451721,
0.03375349938869476,
-0.06894074380397797,
0.1060497909784317,
-0.0016052525024861097,
0.13313238322734833,
0.09117023646831512,
-0.48569920659065247,
0.07865118980407715,
-0.023521995171904564,
-0.07837118208408356,
0.14187300205230713,
0.3187415301799774,
0.3381456434726715,
-0.1551593840122223,
0.23613010346889496,
-0.09278735518455505,
-0.02697078138589859,
0.02847263589501381,
0.08292025327682495,
0.17815746366977692,
-0.08960573375225067,
0.19781528413295746,
0.13715147972106934,
0.23711243271827698,
-0.013012178242206573,
0.1360727846622467,
0.1671833097934723,
0.013783104717731476,
-0.19305866956710815,
0.2749157249927521,
0.2787076234817505,
0.08962119370698929,
0.20424531400203705,
0.2675209045410156,
0.4182377755641937,
-0.22214658558368683,
0.11892025917768478,
0.19312168657779694,
0.09851272404193878,
0.17229914665222168,
0.20651459693908691,
0.16169196367263794,
0.09202966094017029,
0.019702941179275513,
-0.05659908801317215,
0.12042008340358734,
-0.04418463259935379,
-0.0036649834364652634,
0.40700557827949524,
-0.12919466197490692,
-0.2746013104915619,
-0.1428501456975937,
-0.1386280506849289,
0.01124502718448639,
0.046212803572416306,
0.05057743936777115,
0.43574225902557373,
0.5020410418510437,
-0.22151526808738708,
-0.03811313211917877,
-0.18221168220043182,
0.18334415555000305,
0.3443462550640106,
0.2033536583185196,
0.6369603872299194,
0.4767531752586365,
0.39601942896842957,
0.019037974998354912,
-0.33412787318229675,
-0.02286873757839203,
0.04559610038995743,
0.06437164545059204,
0.023312833160161972,
-0.05587862432003021,
-0.13450740277767181,
-0.2604805827140808,
-0.12582708895206451,
0.18253037333488464,
-0.31704527139663696,
0.09324060380458832,
-0.24001778662204742,
-0.09769213199615479,
-0.20198628306388855,
0.13596764206886292,
0.07500720024108887,
0.12254269421100616,
-0.3271106481552124,
-0.00510047934949398,
0.07152126729488373,
-0.06446841359138489,
0.15214425325393677,
0.23371189832687378,
0.1777087152004242,
0.03456703945994377,
-0.031332921236753464,
0.2604062259197235,
-0.246858611702919,
-0.0641295537352562,
-0.34134653210639954,
-0.10324005782604218,
-0.029291465878486633,
-0.14202716946601868,
0.11729365587234497,
0.2845402657985687,
-0.21585947275161743,
0.25408583879470825,
-0.05439851060509682,
0.027883823961019516,
-0.3220430612564087,
0.11233627796173096,
0.3016868829727173,
-0.515948474407196,
-0.10867449641227722,
-0.2909238636493683,
-0.27376022934913635,
-0.4126056730747223,
0.09892845153808594,
-0.3885516822338104,
-0.043058715760707855,
0.171331524848938,
0.15356850624084473,
-0.14312255382537842,
0.5102578401565552,
0.6492154002189636,
0.180495947599411,
-0.013903225772082806,
-0.24361927807331085,
-0.3587188124656677,
0.22360563278198242,
-0.08854235708713531,
-0.10903021693229675,
-0.145337775349617,
-0.00889570638537407,
0.3029862344264984,
0.026252329349517822,
0.26713913679122925,
-0.050414737313985825,
-0.35453420877456665,
0.1882057934999466,
-0.18079312145709991,
0.1738957315683365,
-0.18747149407863617,
0.2707862854003906,
0.2503412961959839,
-0.09936995804309845,
-0.1384284794330597,
0.01704873889684677,
0.16610488295555115,
-0.15525507926940918,
0.016129307448863983,
0.09091414511203766,
0.10354167222976685,
0.48253127932548523,
0.32264599204063416,
0.056397002190351486,
-0.44239652156829834,
-0.05053356662392616,
-0.3334936499595642,
0.0036296455655246973,
-0.2995585501194,
0.2854174077510834,
-0.05474991723895073,
0.1813044250011444,
0.026779500767588615,
-0.17954671382904053,
0.16090479493141174,
0.2777341604232788,
-0.0023229382932186127,
-0.12975704669952393,
-0.22781690955162048,
0.24743050336837769,
-0.2702026963233948,
-0.26764869689941406,
-0.12347634136676788,
0.17614665627479553,
0.048929519951343536,
-0.0092594800516963,
0.011042647063732147,
-0.06469787657260895,
0.01366184651851654,
-0.19576966762542725,
-0.12206245958805084,
-0.5525935292243958,
0.029075026512145996,
0.0659206211566925,
-0.0016196686774492264,
-0.3800114095211029,
-0.24544769525527954,
0.36845824122428894,
0.10215510427951813,
-0.011796599254012108,
0.4022872745990753,
-0.1692761480808258,
-0.2776990234851837,
-0.18907080590724945,
0.24031870067119598,
0.08509188890457153,
-0.08212374895811081,
-0.2569817304611206,
-0.4197182059288025
] |
https://github.com/huggingface/datasets/issues/365 | How to augment data ? | As we're working with arrow's columnar format we prefer to play with batches that are dictionaries instead of tuples.
If we have tuple it implies to re-format the data each time we want to write to arrow, which can lower the speed of map for example.
It's also a matter of coherence, as we don't want users to be confused whether they have to return dictionaries for some functions and tuples for others when they're doing batches. | Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
``` | 77 | How to augment data ?
Is there any clean way to augment data ?
For now my work-around is to use batched map, like this :
```python
def aug(samples):
# Simply copy the existing data to have x2 amount of data
for k, v in samples.items():
samples[k].extend(v)
return samples
dataset = dataset.map(aug, batched=True)
```
As we're working with arrow's columnar format we prefer to play with batches that are dictionaries instead of tuples.
If we have tuple it implies to re-format the data each time we want to write to arrow, which can lower the speed of map for example.
It's also a matter of coherence, as we don't want users to be confused whether they have to return dictionaries for some functions and tuples for others when they're doing batches. | [
-0.04496299475431442,
0.0315057635307312,
-0.26236045360565186,
-0.06203252077102661,
0.07125892490148544,
0.17408230900764465,
-0.0435553602874279,
0.28564509749412537,
0.2927057445049286,
0.06880214065313339,
-0.04522870481014252,
0.27667027711868286,
-0.061526015400886536,
0.09913698583841324,
0.013435464352369308,
-0.2535325884819031,
0.14736822247505188,
0.1497773677110672,
-0.3047789931297302,
0.188968688249588,
-0.10461969673633575,
-0.3813793957233429,
-0.07923530787229538,
-0.4454675316810608,
-0.12650685012340546,
-0.2560838758945465,
-0.1376863270998001,
-0.25882717967033386,
-0.02915329299867153,
-0.4197899103164673,
-0.11894942820072174,
-0.10647384822368622,
0.03213579207658768,
0.219088613986969,
-0.00010703937005018815,
-0.0777585506439209,
0.3182467818260193,
0.07587624341249466,
-0.3291749060153961,
0.28818821907043457,
0.07442432641983032,
-0.5883303880691528,
0.18959255516529083,
-0.14833766222000122,
0.0005678944289684296,
-0.5663412809371948,
-0.0038557518273591995,
-0.2213457226753235,
0.42425763607025146,
-0.146416574716568,
0.21430666744709015,
-0.0009619090706110001,
0.3605852425098419,
0.11512584984302521,
0.24991446733474731,
0.33508068323135376,
-0.03613623231649399,
0.052889134734869,
0.6350505352020264,
0.029800472781062126,
0.1589229851961136,
0.2770666182041168,
-0.02031894028186798,
-0.08617258071899414,
0.12914840877056122,
0.12199485301971436,
0.18450435996055603,
-0.23381498456001282,
0.03296905755996704,
0.15127000212669373,
0.4620938003063202,
0.1598396897315979,
-0.5492645502090454,
-0.1295822560787201,
0.05872313678264618,
-0.08401113748550415,
-0.28293099999427795,
-0.1689477413892746,
0.10158567130565643,
0.004141032695770264,
-0.005486641079187393,
-0.165553018450737,
-0.08787339925765991,
0.440799355506897,
0.1486138552427292,
0.4273619055747986,
0.06450594961643219,
0.06998170912265778,
-0.09954133629798889,
-0.27753180265426636,
-0.0916135236620903,
0.14966602623462677,
-0.16024336218833923,
0.41050001978874207,
-0.0713769793510437,
-0.01288558542728424,
-0.2568858861923218,
-0.33340924978256226,
0.022054750472307205,
0.1018829345703125,
0.37619951367378235,
0.19020143151283264,
-0.16301894187927246,
0.09823901951313019,
0.27468642592430115,
-0.20059408247470856,
0.014245197176933289,
0.24765737354755402,
-0.103753000497818,
-0.2508895695209503,
0.27564918994903564,
-0.05620313435792923,
-0.08327672630548477,
-0.07847091555595398,
0.07063634693622589,
-0.17465221881866455,
-0.22136633098125458,
0.07923910021781921,
0.0049043018370866776,
0.019723940640687943,
-0.017555300146341324,
0.07448069751262665,
-0.08324795216321945,
0.1453247368335724,
-0.05347183719277382,
0.20246955752372742,
-0.1878630667924881,
0.24925650656223297,
0.30359894037246704,
-0.06390645354986191,
-0.06254198402166367,
0.07524263113737106,
-0.2145078033208847,
-0.20988589525222778,
0.07729595899581909,
0.37090107798576355,
0.18557444214820862,
-0.010002471506595612,
0.07026068866252899,
-0.07705947756767273,
0.1091507077217102,
-0.12979334592819214,
0.4284985661506653,
0.07619506120681763,
0.05684630945324898,
0.031752921640872955,
-0.10387973487377167,
0.08155900239944458,
-0.021988026797771454,
0.12197355926036835,
-0.32302114367485046,
-0.041843920946121216,
-0.482116162776947,
0.1992630958557129,
0.16217750310897827,
-0.14132875204086304,
-0.2607142925262451,
0.2704458236694336,
0.17664283514022827,
-0.33630678057670593,
0.1516435146331787,
0.07754252851009369,
0.2024877369403839,
-0.4990920424461365,
0.3427678942680359,
0.04461747407913208,
-0.41701459884643555,
0.03285284340381622,
-0.10635372996330261,
0.42345479130744934,
0.21257510781288147,
0.13933195173740387,
-0.16232211887836456,
0.034347400069236755,
-0.05782191455364227,
-0.013651490211486816,
0.5873201489448547,
-0.2502157390117645,
-0.27440229058265686,
-0.008610185235738754,
0.13925741612911224,
0.15362150967121124,
-0.06923656910657883,
0.24538244307041168,
0.15630288422107697,
0.02499738149344921,
0.23888444900512695,
0.4077870845794678,
-0.006561132147908211,
-0.14385218918323517,
0.0002214387059211731,
-0.08870714902877808,
0.1144866943359375,
0.15124385058879852,
-0.26631250977516174,
-0.33064842224121094,
0.30422595143318176,
-0.6410688161849976,
0.21320444345474243,
-0.20681756734848022,
0.418577641248703,
0.08800391852855682,
0.22647717595100403,
0.3680988550186157,
0.022747023031115532,
-0.01489442028105259,
-0.38385942578315735,
-0.020650042220950127,
-0.056917548179626465,
-0.23034238815307617,
-0.046718791127204895,
-0.2595002055168152,
0.005536099895834923,
0.04649186134338379,
0.1018625944852829,
-0.1722165197134018,
0.2130826711654663,
-0.20882609486579895,
0.10285866260528564,
-0.4434610605239868,
-0.022121090441942215,
-0.219416543841362,
0.06200435757637024,
0.0842280313372612,
-0.059372227638959885,
-0.04887206479907036,
0.2604754567146301,
-0.3671446144580841,
-0.27660220861434937,
0.3287087082862854,
-0.2676297128200531,
-0.08744315803050995,
0.006695332936942577,
0.3033410608768463,
0.21575042605400085,
0.16850200295448303,
0.13341975212097168,
0.15849827229976654,
-0.035338759422302246,
0.06638626754283905,
0.14973118901252747,
0.2639795243740082,
0.045388881117105484,
-0.16593438386917114,
-0.16545507311820984,
0.202157661318779,
0.045425113290548325,
0.3024061322212219,
-0.20255404710769653,
0.2945610284805298,
0.3530864715576172,
0.056230541318655014,
-0.19309110939502716,
-0.0953231230378151,
-0.20777641236782074,
-0.09791615605354309,
0.31899523735046387,
-0.23927567899227142,
-0.0645776316523552,
0.010940797626972198,
-0.2084856927394867,
0.025827795267105103,
0.022398628294467926,
-0.1927536427974701,
-0.5307366847991943,
-0.10574181377887726,
0.18698741495609283,
0.08481509983539581,
-0.171925351023674,
0.3399716317653656,
0.12590104341506958,
-0.2647233009338379,
0.251834511756897,
0.09087866544723511,
0.0777936652302742,
0.09991086274385452,
0.15628281235694885,
0.00976359099149704,
0.38620927929878235,
0.08889342099428177,
0.09863380342721939,
0.039276402443647385,
0.04266543686389923,
0.03702796250581741,
-0.008317843079566956,
-0.16056810319423676,
0.0001101866364479065,
-0.18035829067230225,
0.051624566316604614,
-0.6276810765266418,
-0.08281360566616058,
-0.31521955132484436,
-0.11169064044952393,
0.13368108868598938,
-0.35482272505760193,
0.06829427927732468,
0.04285593703389168,
0.004791259765625,
0.016283268108963966,
-0.3871852159500122,
-0.06558212637901306,
0.05677994713187218,
0.04325747489929199,
0.14819678664207458,
-0.02402498573064804,
-0.09515506029129028,
0.45853254199028015,
0.3018173277378082,
0.2761397361755371,
-0.09243815392255783,
-0.4389207661151886,
-0.07791273295879364,
-0.0016336329281330109,
-0.042576275765895844,
0.30888116359710693,
-0.07896469533443451,
-0.25234493613243103,
-0.18311543762683868,
-0.010517122223973274,
-0.15695595741271973,
0.06491309404373169,
-0.12486273795366287,
-0.09389598667621613,
-0.07433054596185684,
-0.21834178268909454,
-0.03309156000614166,
-0.32346487045288086,
-0.33840423822402954,
0.23728643357753754,
0.20950062572956085,
0.07718538492918015,
-0.3131406307220459,
0.34821879863739014,
0.03564311936497688,
-0.021996179595589638,
-0.12711162865161896,
-0.1488681584596634,
0.06724335253238678,
0.5090064406394958,
-0.27555423974990845,
-0.001902058720588684,
-0.0643550232052803,
-0.42457306385040283,
0.2866928279399872,
0.35565900802612305,
-0.07192446291446686,
-0.09998903423547745,
-0.1816032975912094,
0.07920266687870026,
-0.2332162857055664,
0.2640170454978943,
0.2581157684326172,
0.0931418389081955,
-0.1758948415517807,
-0.019752750173211098,
0.00013907067477703094,
0.15560585260391235,
0.3379496932029724,
0.10888724029064178,
-0.004855789244174957,
-0.04216495156288147,
-0.14150682091712952,
0.2414645403623581,
0.03860059380531311,
-0.05040272697806358,
0.08487443625926971,
-0.20948351919651031,
0.036473944783210754,
-0.029440708458423615,
0.06935013085603714,
-0.1476152241230011,
-0.19580665230751038,
-0.10112851858139038,
-0.05455614626407623,
0.16006025671958923,
-0.24528445303440094,
0.04901272803544998,
-0.004793524742126465,
-0.4095489978790283,
-0.098904088139534,
0.43972963094711304,
-0.5884220600128174,
0.23964297771453857,
-0.2576618492603302,
-0.11255703866481781,
-0.43542975187301636,
-0.1512356996536255,
0.029830507934093475,
-0.44786423444747925,
0.2770802080631256,
-0.15280161798000336,
-0.19973358511924744,
-0.0024504861794412136,
-0.5094041228294373,
0.6173357963562012,
0.3407273292541504,
0.1416911780834198,
0.5109151005744934,
-0.2703465223312378,
0.03889383748173714,
-0.02247321419417858,
0.14454998075962067,
-0.38676807284355164,
-0.48223453760147095,
-0.14896290004253387,
0.05652493238449097,
-0.5446115732192993,
0.045395445078611374,
-0.42964619398117065,
0.07893786579370499,
0.17537811398506165,
0.3766130208969116,
-0.19235998392105103,
0.05624905973672867,
0.15640239417552948,
0.2604747414588928,
-0.15541699528694153,
0.12057424336671829,
0.12437662482261658,
0.004646029323339462,
-0.10294520854949951,
0.06791182607412338,
0.16993413865566254,
-0.04743846505880356,
0.57801753282547,
-0.22046546638011932,
-0.2604869306087494,
0.16719600558280945,
0.11818873882293701,
0.12095136940479279,
0.44115427136421204,
0.15971878170967102,
-0.10658814013004303,
-0.0680285394191742,
0.17694202065467834,
0.2869963049888611,
0.44020840525627136,
-0.13637202978134155,
-0.17195391654968262,
-0.2713152766227722,
-0.47795912623405457,
0.7552841305732727,
-0.17963814735412598,
0.2490859478712082,
0.5026304721832275,
-0.41509324312210083,
-0.0819968581199646,
-0.18273498117923737,
0.04271678254008293,
0.2052188664674759,
0.1293455958366394,
-0.26902449131011963,
-0.5675098299980164,
0.18691349029541016,
0.066986083984375,
-0.11122231185436249,
0.4496648907661438,
0.04263382405042648,
-0.025316664949059486,
0.5850730538368225,
0.4780207574367523,
0.7165127992630005,
0.3173338770866394,
0.1846255213022232,
0.04636532813310623,
-0.3272400498390198,
0.4004535675048828,
0.07016680389642715,
0.08080761879682541,
-0.0547950379550457,
0.10254128277301788,
0.0009730402380228043,
0.017970431596040726,
-0.13840919733047485,
0.28764110803604126,
-0.15188893675804138,
0.15002772212028503,
-0.23678478598594666,
0.010083876550197601,
-0.1330457180738449,
0.05802455544471741,
0.1733938753604889,
-0.28230753540992737,
0.049181073904037476,
0.14563170075416565,
0.0023421868681907654,
-0.41670194268226624,
-0.1246459111571312,
-0.0805620402097702,
-0.2426784783601761,
-0.05453617125749588,
-0.13808704912662506,
-0.032142069190740585,
-0.2830955982208252,
0.021537072956562042,
0.31417495012283325,
-0.36135005950927734,
-0.04514181613922119,
-0.014527421444654465,
-0.11506552994251251,
0.3307729959487915,
0.06431955099105835,
0.09062223136425018,
0.2942409813404083,
0.1756630539894104,
-0.12491538375616074,
-0.07586599141359329,
0.2506098449230194,
0.09689264744520187,
-0.07301327586174011,
0.24330303072929382,
-0.03325531259179115,
-0.5641124844551086,
-0.2155826985836029,
0.04559585452079773,
0.08021769672632217,
-0.2566096782684326,
-0.1502019613981247,
0.42976614832878113,
-0.3009393811225891,
-0.08321946114301682,
0.16202019155025482,
0.18805520236492157,
-0.2602072060108185,
0.333682656288147,
0.2605096995830536,
-0.23566004633903503,
0.015647713094949722,
-0.04500623792409897,
0.14541789889335632,
-0.24622903764247894,
0.5600541830062866,
0.004874859005212784,
-0.07441829890012741,
-0.2285589873790741,
-0.32988178730010986,
0.3779732584953308,
-0.16004830598831177,
-0.10202615708112717,
0.036777183413505554,
-0.02899198979139328,
0.19164711236953735,
0.08712290227413177,
0.2979384660720825,
0.3023325502872467,
-0.33400094509124756,
-0.22698520123958588,
-0.5539455413818359,
0.48041367530822754,
0.29717105627059937,
0.21222800016403198,
-0.07007486373186111,
-0.13239046931266785,
-0.2415800541639328,
0.5198349952697754,
-0.36496075987815857,
0.054179683327674866,
0.369439035654068,
0.27125465869903564,
-0.007891127839684486,
0.03386758640408516,
0.12953457236289978,
0.0011190809309482574,
0.22685107588768005,
-0.011825058609247208,
0.08863094449043274,
-0.2576600909233093,
-0.03776035085320473,
0.06663674861192703,
-0.07066672295331955,
-0.02374444343149662,
-0.12561780214309692,
-0.05102098360657692,
0.05059792473912239,
-0.4686257839202881,
-0.02842106483876705,
-0.13688939809799194,
-0.23456971347332,
0.09677593410015106,
0.23780156672000885,
0.2897173762321472,
-0.1185140311717987,
0.26202303171157837,
-0.18004196882247925,
-0.021749526262283325,
0.006945887114852667,
0.04624959081411362,
0.2865629494190216,
-0.1805453896522522,
0.3799668550491333,
0.13362373411655426,
0.19076769053936005,
-0.054663680493831635,
0.010819774121046066,
0.0726340040564537,
-0.05744641274213791,
-0.2792016863822937,
0.2909565567970276,
0.2643679082393646,
0.1183549091219902,
0.10864761471748352,
0.2221933901309967,
0.34426143765449524,
-0.23631858825683594,
-0.0017853270983323455,
-0.14963790774345398,
0.1602112203836441,
0.23202821612358093,
0.2347547709941864,
0.15506313741207123,
-0.013855427503585815,
-0.0915759801864624,
-0.05100385099649429,
-0.20419999957084656,
-0.25945037603378296,
-0.11911804974079132,
0.41843312978744507,
-0.05612510070204735,
-0.33899563550949097,
-0.11057768017053604,
-0.029659219086170197,
0.045842282474040985,
-0.007733866572380066,
0.028706002980470657,
0.40618762373924255,
0.6985006928443909,
-0.125254288315773,
-0.15142041444778442,
-0.01959879696369171,
0.06242069602012634,
0.3148454427719116,
0.18652713298797607,
0.561448335647583,
0.5762032270431519,
0.3474791347980499,
0.28703927993774414,
-0.3146399259567261,
-0.013295016251504421,
-0.11932432651519775,
0.029968444257974625,
-0.06447605788707733,
-0.11116227507591248,
-0.06450114399194717,
-0.30558863282203674,
-0.1894480586051941,
0.10123740136623383,
-0.1942657083272934,
0.341707706451416,
-0.10869906842708588,
0.05479522421956062,
-0.2436424344778061,
0.24849876761436462,
0.17563319206237793,
0.3531358242034912,
-0.3195342719554901,
0.0233141016215086,
0.01309550553560257,
-0.028818197548389435,
0.03250749781727791,
0.3075968623161316,
0.17835010588169098,
0.02848302759230137,
-0.1392766386270523,
0.27001407742500305,
-0.19183485209941864,
-0.1115116998553276,
-0.13922354578971863,
0.13889247179031372,
0.13434280455112457,
-0.2207663208246231,
0.20253901183605194,
0.24869409203529358,
-0.1949058473110199,
0.21034085750579834,
-0.12086246907711029,
0.05236319079995155,
-0.1964486837387085,
0.2150077074766159,
0.20536310970783234,
-0.5519221425056458,
-0.12388494610786438,
-0.1983913779258728,
-0.2035439908504486,
-0.36520296335220337,
0.20219339430332184,
-0.4419761300086975,
-0.15646857023239136,
0.08771374076604843,
0.11275401711463928,
-0.08682262897491455,
0.6534008383750916,
0.6501067280769348,
0.4077479839324951,
-0.002983114682137966,
-0.4474177956581116,
-0.26059436798095703,
0.10228127986192703,
-0.3121049106121063,
-0.14712582528591156,
-0.07338720560073853,
0.06493458151817322,
0.3865470588207245,
0.11077511310577393,
0.3859178423881531,
0.07033952325582504,
-0.34342917799949646,
0.22638960182666779,
-0.3226325809955597,
0.28104671835899353,
0.1677539050579071,
0.2737782299518585,
0.19456855952739716,
-0.1446957290172577,
-0.1030598133802414,
0.17047420144081116,
0.1538923978805542,
-0.09580270200967789,
0.03700529783964157,
0.15210314095020294,
0.1813177466392517,
0.5217475891113281,
0.20501965284347534,
0.039675913751125336,
-0.3355918228626251,
-0.08600824326276779,
-0.3407733142375946,
-0.10250115394592285,
-0.2674379348754883,
0.37673836946487427,
0.019610032439231873,
0.2899916470050812,
-0.003617077600210905,
-0.07663823664188385,
0.233816459774971,
0.04611396789550781,
-0.11844620108604431,
-0.031134838238358498,
-0.11994200199842453,
0.1658700555562973,
-0.19647294282913208,
-0.2484062761068344,
-0.1983758509159088,
0.2559407651424408,
0.095598965883255,
-0.09607823193073273,
0.005315773189067841,
-0.11522631347179413,
0.05237220227718353,
-0.07735315710306168,
-0.18005897104740143,
-0.26041004061698914,
0.0013357773423194885,
0.2386946678161621,
0.08449193835258484,
-0.34451115131378174,
-0.22472912073135376,
0.2123764157295227,
0.13432979583740234,
-0.13160310685634613,
0.2490270584821701,
-0.11843372881412506,
-0.14623941481113434,
-0.1720627099275589,
0.47227010130882263,
0.015496687963604927,
0.019641464576125145,
-0.469465970993042,
-0.4412474036216736
] |
https://github.com/huggingface/datasets/issues/361 | 🐛 [Metrics] ROUGE is non-deterministic | > Hi, can you give a full self-contained example to reproduce this behavior?
There is a notebook in the post ;) | If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
> ['0.3350', '0.1470', '0.2329']
['0.3358', '0.1451', '0.2332']
---
Why ROUGE is not deterministic ? | 21 | 🐛 [Metrics] ROUGE is non-deterministic
If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
> ['0.3350', '0.1470', '0.2329']
['0.3358', '0.1451', '0.2332']
---
Why ROUGE is not deterministic ?
> Hi, can you give a full self-contained example to reproduce this behavior?
There is a notebook in the post ;) | [
-0.07294255495071411,
-0.4319975674152374,
-0.07466141879558563,
0.24723882973194122,
0.14245805144309998,
-0.29910168051719666,
-0.03466462716460228,
-0.3622232675552368,
-0.04236920177936554,
0.47043168544769287,
0.02695220336318016,
0.3044506311416626,
0.03021436743438244,
0.0872771367430687,
-0.27226075530052185,
0.07524395734071732,
0.03768850862979889,
0.01330333948135376,
0.04887773096561432,
-0.291424036026001,
0.015980467200279236,
0.0995299443602562,
-0.26075392961502075,
-0.177069291472435,
-0.11434327811002731,
0.05653686448931694,
-0.15567392110824585,
-0.06810293346643448,
-0.3433379828929901,
-0.08700059354305267,
0.03212936222553253,
0.33130893111228943,
-0.10528934746980667,
0.4939868450164795,
-0.00011702498159138486,
-0.4163564443588257,
-0.021929532289505005,
-0.17818652093410492,
0.30757302045822144,
-0.5136876106262207,
-0.24973192811012268,
0.36524948477745056,
0.0798642709851265,
-0.12744377553462982,
-0.1293850988149643,
0.11441990733146667,
-0.3657514452934265,
0.014640472829341888,
0.48401975631713867,
0.12751705944538116,
0.1668633669614792,
-0.16284234821796417,
-0.318729430437088,
-0.3868790864944458,
0.013995587825775146,
0.05926094576716423,
-0.11810534447431564,
0.4923388957977295,
-0.03306271880865097,
0.12331628799438477,
-0.06635334342718124,
0.07789194583892822,
0.17461524903774261,
0.3484485447406769,
0.4598202109336853,
-0.15890172123908997,
0.24434185028076172,
-0.06289555132389069,
-0.022594735026359558,
0.3563772141933441,
0.27403566241264343,
-0.11606398969888687,
-0.10126044601202011,
0.28227779269218445,
0.21555575728416443,
-0.36519700288772583,
-0.09318619221448898,
-0.07391121983528137,
0.14391614496707916,
-0.14613428711891174,
-0.010854564607143402,
0.3827987611293793,
-0.07611832022666931,
-0.1780850887298584,
0.2129097580909729,
-0.07512955367565155,
-0.0184812992811203,
0.06973791122436523,
0.13737133145332336,
0.38487374782562256,
-0.12372715026140213,
0.13140688836574554,
-0.41106313467025757,
-0.1525679975748062,
-0.5036750435829163,
-0.06804493069648743,
-0.04186736047267914,
0.4301229417324066,
0.028769873082637787,
0.3245622515678406,
0.5289818048477173,
-0.14650887250900269,
-0.1225258931517601,
0.042077671736478806,
-0.0674973726272583,
0.3009234070777893,
-0.16372248530387878,
0.0034657595679163933,
0.09488533437252045,
-0.021708477288484573,
-0.1616707295179367,
0.005609327927231789,
0.3751331567764282,
-0.5000556111335754,
0.2849849462509155,
0.250311940908432,
-0.18034778535366058,
-0.3356366753578186,
-0.6347405314445496,
-0.06643367558717728,
-0.41621077060699463,
-0.20365366339683533,
-0.015085899271070957,
0.2462233603000641,
-0.27126920223236084,
0.07181927561759949,
-0.2622613310813904,
0.2142343372106552,
-0.12509402632713318,
-0.0586308054625988,
-0.295505166053772,
0.08009198307991028,
-0.5461651682853699,
-0.012622088193893433,
-0.335166871547699,
0.19110187888145447,
0.17813274264335632,
0.41833484172821045,
0.0020125657320022583,
-0.3315203785896301,
0.05982830375432968,
-0.44875746965408325,
0.07236555218696594,
-0.07185561954975128,
-0.07911690324544907,
0.014106517657637596,
0.08213163912296295,
-0.19716642796993256,
-0.13399404287338257,
-0.0057601481676101685,
-0.14129334688186646,
0.2725314199924469,
0.44508060812950134,
0.06566289067268372,
-0.08543258905410767,
0.1210348829627037,
-0.1398104429244995,
0.1766977161169052,
-0.31708666682243347,
-0.008327826857566833,
0.2046128511428833,
-0.18417735397815704,
-0.31659919023513794,
-0.3004752993583679,
-0.0015300139784812927,
0.20722714066505432,
-0.06656832993030548,
0.1484943926334381,
0.6132835149765015,
0.1436501145362854,
0.20774096250534058,
0.507376492023468,
0.06614230573177338,
0.0879928320646286,
-0.22201114892959595,
-0.5712295174598694,
0.44530224800109863,
-0.4446238577365875,
0.08462323993444443,
-0.025181468576192856,
-0.05759983882308006,
0.006204294040799141,
0.13053147494792938,
0.17850428819656372,
-0.23940297961235046,
-0.02359752543270588,
0.15347063541412354,
-0.20687168836593628,
0.04826703295111656,
-0.21355202794075012,
-0.019464047625660896,
0.029744883999228477,
0.31672531366348267,
-0.30309781432151794,
0.15027688443660736,
0.22837674617767334,
-0.011470571160316467,
-0.1718245893716812,
0.31349924206733704,
0.2069144994020462,
-0.3694639205932617,
0.05160273611545563,
0.19384224712848663,
0.3044387698173523,
-0.05759970471262932,
-0.20019027590751648,
0.15710647404193878,
0.14919674396514893,
-0.506650447845459,
-0.195754736661911,
0.5925678610801697,
-0.20295171439647675,
-0.23265314102172852,
-0.1298026293516159,
0.01670771837234497,
-0.20946425199508667,
0.1213446706533432,
0.3131520748138428,
0.2446819245815277,
0.2755919098854065,
0.043558571487665176,
0.22837211191654205,
-0.1787373572587967,
-0.15115457773208618,
-0.17252419888973236,
-0.10519864410161972,
0.0018528085201978683,
-0.14028626680374146,
0.08339211344718933,
0.21869423985481262,
0.30868202447891235,
0.013942321762442589,
-0.12521561980247498,
0.3100951313972473,
0.5252619981765747,
-0.026312261819839478,
0.11895003169775009,
0.2512628436088562,
0.15993745625019073,
0.20556530356407166,
-0.11561272293329239,
0.4238210916519165,
0.15924915671348572,
-0.11489014327526093,
0.05987062305212021,
0.30312615633010864,
-0.47304901480674744,
0.0715668573975563,
-0.07670973241329193,
-0.023060593754053116,
0.07479885965585709,
0.1003669798374176,
-0.17310890555381775,
-0.07712967693805695,
0.3988667130470276,
0.020221220329403877,
0.30704089999198914,
0.033589787781238556,
-0.40822991728782654,
-0.16135546565055847,
0.10656842589378357,
0.22133585810661316,
0.03647059202194214,
-0.16566967964172363,
0.102854423224926,
0.04699794203042984,
-0.029528936371207237,
0.17482306063175201,
0.22656212747097015,
0.04651154577732086,
-0.08397151529788971,
-0.0033860839903354645,
-0.36278820037841797,
-0.32383036613464355,
-0.20004642009735107,
-0.11233550310134888,
0.2540789842605591,
0.3564978539943695,
0.2895353138446808,
0.2467268854379654,
-0.2504335045814514,
-0.4256806969642639,
-0.08927351981401443,
0.022355850785970688,
0.030676815658807755,
0.3200019299983978,
-0.3778674602508545,
0.37418410181999207,
-0.05089964717626572,
-0.32768428325653076,
-0.08245284855365753,
-0.08963897079229355,
-0.047559626400470734,
0.3303896486759186,
0.3002762794494629,
-0.1265234649181366,
0.5133862495422363,
0.12386506795883179,
-0.0614108070731163,
0.2800590693950653,
-0.0947355180978775,
-0.1490521878004074,
0.041875019669532776,
0.061475496739149094,
-0.13461507856845856,
0.021823104470968246,
0.25883615016937256,
-0.28120937943458557,
-0.00975168775767088,
0.01951395347714424,
-0.2017589807510376,
-0.04300288110971451,
0.10125735402107239,
0.22571469843387604,
0.0627165138721466,
-0.49504411220550537,
-0.20618775486946106,
0.4547211527824402,
0.3494846820831299,
-0.13354195654392242,
-0.1433505415916443,
0.09274271875619888,
-0.15618562698364258,
0.11361165344715118,
0.06496526300907135,
0.1115119606256485,
0.05073431134223938,
0.007712949067354202,
0.47707539796829224,
0.04065195843577385,
-0.03231539577245712,
0.37865933775901794,
0.08748448640108109,
-0.06925617158412933,
0.17459356784820557,
0.3019637167453766,
-0.3619592785835266,
-0.17030516266822815,
0.15343451499938965,
-0.3342149257659912,
-0.33726733922958374,
-0.0037970878183841705,
0.2548953890800476,
0.05731408670544624,
0.07189952582120895,
-0.16008664667606354,
-0.5616258382797241,
-0.008427368476986885,
-0.12592081725597382,
-0.2945590317249298,
-0.24966026842594147,
0.5192809104919434,
-0.2608337104320526,
-0.16721931099891663,
-0.05617000535130501,
0.18181881308555603,
0.11517137289047241,
0.07446795701980591,
0.3241336941719055,
-0.2724430561065674,
0.14256471395492554,
-0.14378343522548676,
0.039809875190258026,
0.4241260886192322,
-0.10630419850349426,
0.06798049062490463,
-0.04787873476743698,
0.24159252643585205,
-0.42869833111763,
0.07772763073444366,
0.33537840843200684,
0.004769742488861084,
-0.25905030965805054,
0.28450825810432434,
-0.14973706007003784,
0.6038033366203308,
-0.127069890499115,
0.09890872240066528,
0.17985832691192627,
-0.042442768812179565,
-0.20530538260936737,
-0.3841387629508972,
-0.18881535530090332,
0.014805536717176437,
0.14473563432693481,
0.15062610805034637,
0.06898972392082214,
0.11500117182731628,
0.11206302791833878,
0.20142360031604767,
0.015425187535583973,
0.04490694776177406,
0.05353270843625069,
-0.2599615156650543,
0.03114793449640274,
-0.1688404232263565,
0.039463579654693604,
-0.1582561433315277,
0.15423309803009033,
0.19695082306861877,
-0.10558497160673141,
0.5462042689323425,
-0.348390132188797,
0.20015153288841248,
0.021428182721138,
-0.5407800078392029,
-0.24202567338943481,
-0.28759440779685974,
-0.37039145827293396,
0.08208309859037399,
0.2013510763645172,
0.11705982685089111,
0.1116785779595375,
-0.10278807580471039,
-0.11291193962097168,
0.010280088521540165,
-0.07134391367435455,
-0.13937504589557648,
-0.5917127132415771,
0.16603347659111023,
0.01995202712714672,
0.18451441824436188,
0.07967016100883484,
0.12313606590032578,
-0.12928669154644012,
-0.1786278486251831,
-0.3222108781337738,
-0.060572266578674316,
0.3907667398452759,
0.20074085891246796,
0.14989283680915833,
-0.02405518665909767,
-0.19715996086597443,
0.028501711785793304,
-0.10983672738075256,
-0.2267867475748062,
0.0031749606132507324,
0.1989549845457077,
-0.5485667586326599,
0.21273145079612732,
-0.1606103777885437,
-0.046937115490436554,
0.22148379683494568,
-0.09334016591310501,
-0.09750785678625107,
-0.6738168001174927,
0.3121768832206726,
-0.4528847336769104,
-0.11139673739671707,
0.47463685274124146,
0.010574712418019772,
-0.02181529998779297,
-0.24901914596557617,
0.11423353850841522,
0.12619592249393463,
-0.426164448261261,
0.2862328886985779,
-0.2654324769973755,
0.03868449479341507,
0.44115734100341797,
0.36842894554138184,
0.687554657459259,
-0.13339994847774506,
-0.06362204253673553,
0.14317715167999268,
-0.15408967435359955,
0.22472412884235382,
-0.20829975605010986,
-0.0265803225338459,
-0.26402851939201355,
-0.3276495933532715,
-0.04821121692657471,
-0.03774510324001312,
0.12202806770801544,
-0.03778853267431259,
-0.0722169578075409,
0.3350605070590973,
-0.1171620711684227,
0.2474173903465271,
-0.11411461234092712,
-0.14227886497974396,
0.35879242420196533,
0.226888969540596,
0.34350505471229553,
0.12644946575164795,
0.17025642096996307,
0.2904883623123169,
-0.22719472646713257,
0.13090956211090088,
-0.2318699061870575,
0.1126541942358017,
-0.2502044141292572,
-0.15277397632598877,
-0.2988255023956299,
0.14340797066688538,
-0.0602940209209919,
-0.45884066820144653,
-0.10700371861457825,
0.796886146068573,
0.6291101574897766,
0.2359064817428589,
-0.023177048191428185,
0.2885488271713257,
0.06723767518997192,
0.12905646860599518,
-0.2900582253932953,
-0.24824778735637665,
-0.14157213270664215,
0.050336435437202454,
-0.2829757332801819,
0.0069703608751297,
0.20949360728263855,
-0.21508818864822388,
-0.3606824278831482,
0.20458687841892242,
-0.3005189299583435,
0.19034652411937714,
0.04540370777249336,
0.019764281809329987,
-0.032949019223451614,
-0.12930050492286682,
0.08934043347835541,
0.034183744341135025,
0.039886586368083954,
0.3000207245349884,
0.07024448364973068,
-0.3948752284049988,
-0.1391725093126297,
0.35773685574531555,
-0.06649522483348846,
0.13508719205856323,
-0.2667107582092285,
-0.32625529170036316,
0.10472303628921509,
-0.30192017555236816,
-0.1799212098121643,
-0.2614297866821289,
-0.13827869296073914,
0.18246980011463165,
-0.056428007781505585,
-0.0671340599656105,
0.2789302468299866,
0.6154510974884033,
0.18565040826797485,
0.2741480767726898,
0.2410755306482315,
-0.3023458421230316,
0.13986235857009888,
-0.06588342785835266,
0.26197779178619385,
0.010838821530342102,
-0.24570053815841675,
0.16020426154136658,
0.07754956930875778,
0.43170982599258423,
-0.2948766350746155,
-0.17896269261837006,
-0.14344124495983124,
0.027035964652895927,
-0.6010732650756836,
-0.22143042087554932,
-0.16178515553474426,
0.20572489500045776,
0.0024002548307180405,
0.17483581602573395,
-0.2614099085330963,
-0.12844160199165344,
-0.25606822967529297,
0.1408543884754181,
-0.04656963795423508,
0.5226807594299316,
-0.16128069162368774,
0.09548377245664597,
-0.04710807278752327,
-0.2260112762451172,
0.15706945955753326,
0.3563847243785858,
0.2539893090724945,
0.06638635694980621,
-0.03654703125357628,
0.31873229146003723,
-0.08086086064577103,
-0.08896750956773758,
0.1430627703666687,
0.06766584515571594,
-0.11925950646400452,
-0.2296677529811859,
-0.09385541826486588,
-0.08145865797996521,
-0.607090950012207,
-0.135096937417984,
-0.07639074325561523,
-0.1567067801952362,
-0.17040133476257324,
0.1404925286769867,
0.41266822814941406,
-0.22256852686405182,
0.31493231654167175,
0.1584097146987915,
0.011746921576559544,
-0.24327658116817474,
-0.06369572132825851,
0.11813850700855255,
-0.2605796456336975,
0.22650685906410217,
-0.22929903864860535,
0.32528024911880493,
0.12007445096969604,
0.3787539303302765,
0.42701998353004456,
-0.1359654664993286,
-0.0122598335146904,
-0.17405667901039124,
-0.048344988375902176,
-0.2579514980316162,
0.18644070625305176,
-0.2596789300441742,
0.08199690282344818,
0.10293348133563995,
0.6461301445960999,
0.008507292717695236,
0.010631099343299866,
0.3853858709335327,
0.1674390286207199,
0.21432358026504517,
-0.2646903693675995,
0.12324120104312897,
-0.12095079571008682,
0.06535321474075317,
-0.06547348201274872,
0.4651517868041992,
0.07737191766500473,
-0.1564273238182068,
-0.12432649731636047,
0.1073855459690094,
-0.28765758872032166,
-0.27927371859550476,
-0.409004271030426,
-0.08718350529670715,
-0.02656421810388565,
-0.23199546337127686,
-0.22252510488033295,
-0.14019650220870972,
-0.1384875476360321,
0.046616021543741226,
0.06260952353477478,
0.41718971729278564,
0.3824377655982971,
0.07541198283433914,
0.17394602298736572,
-0.16235554218292236,
-0.1418604850769043,
-0.088227279484272,
0.43103793263435364,
-0.1680329293012619,
0.0816473588347435,
0.09489397704601288,
0.3489445447921753,
0.05781719461083412,
0.26744431257247925,
0.16164353489875793,
0.27869492769241333,
-0.23994797468185425,
0.11219619959592819,
-0.24858860671520233,
-0.0032195765525102615,
0.17968979477882385,
0.24431926012039185,
0.2036583572626114,
-0.4013042449951172,
0.3890455365180969,
0.03939037770032883,
-0.14517821371555328,
0.5418245792388916,
0.11103350669145584,
0.3921966254711151,
-0.2113574594259262,
0.4320439398288727,
0.17358869314193726,
0.36348873376846313,
-0.00014191120862960815,
0.31815585494041443,
-0.3570292592048645,
0.10550585389137268,
-0.6689850091934204,
-0.1713866889476776,
-0.046165864914655685,
-0.2048519402742386,
0.05148368328809738,
-0.0484858863055706,
0.18758639693260193,
-0.01603701338171959,
0.2722622752189636,
-0.1575937271118164,
-0.2405814379453659,
-0.4908544421195984,
0.1989634931087494,
-0.24090498685836792,
0.3293773829936981,
-0.14766845107078552,
0.39716294407844543,
-0.41265425086021423,
0.21782109141349792,
0.20383982360363007,
0.45007994771003723,
-0.12683501839637756,
0.4430062770843506,
-0.47717416286468506,
0.2912015914916992,
-0.37492460012435913,
-0.21544650197029114,
0.22288617491722107,
0.09044083207845688,
-0.01426992192864418,
-0.055668145418167114,
-0.018820887431502342,
0.12609876692295074,
-0.08459337055683136,
-0.03225040063261986,
0.635654091835022,
0.5892746448516846,
0.08988121896982193,
0.16516095399856567,
-0.06164241582155228,
-0.22012847661972046,
0.07253628224134445,
-0.12122474610805511,
0.09769929945468903,
0.2772810161113739,
-0.023231450468301773,
-0.14215558767318726,
-0.10762966424226761,
0.15721766650676727,
0.08377421647310257,
0.6822965145111084,
0.1531052440404892,
-0.07113880664110184,
-0.595697283744812,
0.026028534397482872,
0.038670897483825684,
0.2575582265853882,
-0.39593589305877686,
0.4797007143497467,
0.028333818539977074,
0.32873162627220154,
-0.1378915011882782,
-0.11044789850711823,
0.6011199951171875,
0.02854090929031372,
0.050399381667375565,
-0.16475476324558258,
0.34849125146865845,
0.39525291323661804,
-0.048892416059970856,
-0.14947012066841125,
0.1269875168800354,
0.06974862515926361,
0.2653723359107971,
0.07760308682918549,
0.1911768615245819,
-0.3626290559768677,
0.08437317609786987,
-0.10149655491113663,
0.17288343608379364,
-0.05949760973453522,
-0.02201889082789421,
0.30683818459510803,
-0.2685052454471588
] |
https://github.com/huggingface/datasets/issues/361 | 🐛 [Metrics] ROUGE is non-deterministic | > If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
>
> Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
>
> Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
>
> > ['0.3350', '0.1470', '0.2329']
> > ['0.3358', '0.1451', '0.2332']
>
> Why ROUGE is not deterministic ?
This is because of rouge's `BootstrapAggregator` that uses sampling to get confidence intervals (low, mid, high).
You can get deterministic scores per sentence pair by using
```python
score = rouge.compute(rouge_types=["rouge1", "rouge2", "rougeL"], use_agregator=False)
```
Or you can set numpy's random seed if you still want to use the aggregator. | If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
> ['0.3350', '0.1470', '0.2329']
['0.3358', '0.1451', '0.2332']
---
Why ROUGE is not deterministic ? | 112 | 🐛 [Metrics] ROUGE is non-deterministic
If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
> ['0.3350', '0.1470', '0.2329']
['0.3358', '0.1451', '0.2332']
---
Why ROUGE is not deterministic ?
> If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
>
> Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
>
> Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
>
> > ['0.3350', '0.1470', '0.2329']
> > ['0.3358', '0.1451', '0.2332']
>
> Why ROUGE is not deterministic ?
This is because of rouge's `BootstrapAggregator` that uses sampling to get confidence intervals (low, mid, high).
You can get deterministic scores per sentence pair by using
```python
score = rouge.compute(rouge_types=["rouge1", "rouge2", "rougeL"], use_agregator=False)
```
Or you can set numpy's random seed if you still want to use the aggregator. | [
-0.06297386437654495,
-0.13420699536800385,
-0.07968547940254211,
0.010575540363788605,
0.17548251152038574,
-0.3666590750217438,
0.03127364069223404,
-0.281615674495697,
-0.3356747329235077,
0.46499401330947876,
-0.14532041549682617,
0.3407982587814331,
-0.023861929774284363,
0.1076032742857933,
-0.2894939184188843,
-0.005836308002471924,
-0.13678759336471558,
0.0883074551820755,
0.05057969316840172,
-0.27948272228240967,
-0.026489000767469406,
0.26890647411346436,
-0.14468199014663696,
-0.11220027506351471,
-0.23017990589141846,
0.04390459135174751,
-0.13096340000629425,
0.17605751752853394,
-0.44204655289649963,
-0.13661165535449982,
0.0006491504609584808,
0.5135989189147949,
-0.13356360793113708,
0.3453352153301239,
-0.0001090061996364966,
-0.3026774823665619,
-0.005383271723985672,
-0.27213963866233826,
0.06843286752700806,
-0.5490512847900391,
-0.08505555242300034,
0.16787013411521912,
-0.036374531686306,
-0.15389752388000488,
-0.23038789629936218,
0.15673428773880005,
-0.13240034878253937,
-0.21489784121513367,
0.6561844944953918,
0.3610716164112091,
0.20377427339553833,
-0.027505189180374146,
-0.1488342583179474,
-0.2112453579902649,
0.17477720975875854,
-0.08728748559951782,
-0.016668623313307762,
0.5573638677597046,
0.03147437423467636,
0.21889415383338928,
-0.24647527933120728,
0.18581029772758484,
0.15273553133010864,
0.06768493354320526,
0.36881133913993835,
-0.11520924419164658,
0.17548102140426636,
-0.36951738595962524,
-0.12860068678855896,
0.37326622009277344,
0.27601954340934753,
-0.051951102912425995,
-0.4068121612071991,
0.17250266671180725,
0.1947716772556305,
-0.2736440896987915,
-0.1944594383239746,
-0.017577514052391052,
-0.0913495123386383,
-0.06527425348758698,
-0.09678037464618683,
0.44388362765312195,
-0.13325420022010803,
-0.13836722075939178,
0.1420733630657196,
0.0766998752951622,
-0.008888731710612774,
-0.0005141496658325195,
0.3281327486038208,
0.12296029925346375,
-0.22458264231681824,
0.21163035929203033,
-0.2095915675163269,
0.06957205384969711,
-0.4204724431037903,
-0.1357261687517166,
0.1251068413257599,
0.28499144315719604,
0.11115234345197678,
0.4854738712310791,
0.39486241340637207,
-0.11475414782762527,
-0.06904514133930206,
0.045453596860170364,
0.02526414953172207,
0.19617138803005219,
0.05004915967583656,
0.038387566804885864,
0.14160960912704468,
-0.0029746252112090588,
-0.025930561125278473,
0.09933159500360489,
0.3126787543296814,
-0.3156805634498596,
0.0414021797478199,
0.2174890637397766,
-0.15230850875377655,
-0.17208050191402435,
-0.5653676986694336,
-0.11148609220981598,
-0.4781979024410248,
-0.12557397782802582,
-0.15354034304618835,
0.3803398311138153,
-0.20591731369495392,
0.15450456738471985,
-0.19382129609584808,
0.19073104858398438,
-0.14005495607852936,
-0.1622917354106903,
-0.2599925696849823,
0.16284333169460297,
-0.2660718560218811,
-0.07459006458520889,
-0.11211000382900238,
0.08643516898155212,
0.1294146180152893,
0.15454775094985962,
0.14758294820785522,
-0.24581526219844818,
0.03821701556444168,
-0.45834922790527344,
-0.08258593827486038,
-0.13289441168308258,
-0.09135673940181732,
-0.07539386302232742,
0.05611354485154152,
-0.2839280068874359,
-0.13216674327850342,
-0.12134217470884323,
-0.12629348039627075,
0.18461845815181732,
0.3253519535064697,
0.16258637607097626,
0.00981089100241661,
-0.0861547589302063,
0.07437223941087723,
0.27328628301620483,
-0.31479835510253906,
0.15548238158226013,
0.15024152398109436,
-0.025994569063186646,
-0.32264599204063416,
-0.23634251952171326,
0.08310818672180176,
0.21241742372512817,
-0.0027339309453964233,
-0.10429921001195908,
0.5838003158569336,
0.13699980080127716,
0.17271143198013306,
0.5475630164146423,
0.16298256814479828,
0.18397784233093262,
-0.0027142707258462906,
-0.35909634828567505,
0.47751691937446594,
-0.4854390323162079,
0.06833036243915558,
0.06024870276451111,
-0.028813738375902176,
0.1495351940393448,
0.21336491405963898,
0.10303854942321777,
-0.07665694504976273,
-0.043802812695503235,
0.2398124784231186,
0.18700213730335236,
0.1334647387266159,
-0.2636551558971405,
-0.020982684567570686,
0.09086154401302338,
0.23149314522743225,
-0.11476179957389832,
0.06263254582881927,
0.04626038670539856,
-0.2069053053855896,
-0.3015894591808319,
0.34982675313949585,
-0.00882917270064354,
-0.3083658814430237,
0.24788014590740204,
0.08766013383865356,
0.19182750582695007,
0.08694546669721603,
-0.181686133146286,
0.2812580466270447,
0.10359825938940048,
-0.8122191429138184,
0.24316845834255219,
0.21772894263267517,
-0.2853504419326782,
-0.45120537281036377,
-0.13031624257564545,
0.1445593535900116,
-0.3410875201225281,
0.1980886459350586,
0.17257273197174072,
0.27330341935157776,
0.2643553614616394,
-0.04770855978131294,
0.32366564869880676,
-0.19353370368480682,
-0.018098264932632446,
-0.25360894203186035,
-0.19867587089538574,
-0.05067186802625656,
-0.08113906532526016,
0.22111067175865173,
0.4466208815574646,
0.08973407745361328,
0.09877479821443558,
-0.08101677894592285,
0.4132421910762787,
0.42718884348869324,
-0.02475874125957489,
-0.03309396654367447,
-0.03274545073509216,
0.07738957554101944,
0.1873423159122467,
-0.2182709127664566,
0.5565972924232483,
0.225764662027359,
-0.06820116937160492,
-0.11231314390897751,
0.3855135440826416,
-0.47626009583473206,
0.004916064441204071,
0.06532221287488937,
0.06105764955282211,
0.17000851035118103,
0.14404147863388062,
-0.32105615735054016,
-0.09027135372161865,
0.30820170044898987,
-0.028941858559846878,
0.6414519548416138,
0.2357604056596756,
-0.29554420709609985,
-0.12639570236206055,
0.086504265666008,
0.11402538418769836,
0.1410737931728363,
-0.09579179435968399,
0.08677775412797928,
-0.05903038755059242,
-0.07504648715257645,
0.027054619044065475,
-0.03221806883811951,
0.2111775428056717,
-0.005692165344953537,
-0.06269776821136475,
-0.2837330102920532,
-0.28223711252212524,
-0.07754913717508316,
-0.1384402960538864,
0.2882393002510071,
0.13918200135231018,
0.3164985477924347,
0.18804974853992462,
-0.2739831507205963,
-0.5686128735542297,
-0.31809088587760925,
-0.03639761358499527,
-0.13586962223052979,
0.12719857692718506,
-0.24751365184783936,
-0.06301243603229523,
0.06969693303108215,
-0.2970946729183197,
-0.06422163546085358,
-0.20969735085964203,
0.1557423174381256,
0.08027075231075287,
0.06935875117778778,
-0.030659249052405357,
0.5392487645149231,
0.2734595239162445,
0.011913726106286049,
0.2975364327430725,
-0.10172632336616516,
-0.26443278789520264,
0.06047031283378601,
0.20027652382850647,
-0.13333100080490112,
-0.02497825026512146,
0.12017422169446945,
-0.42480021715164185,
-0.07191909849643707,
0.14287807047367096,
-0.1266680359840393,
0.07571673393249512,
-0.09818299114704132,
0.2909094989299774,
0.134150430560112,
-0.3271772861480713,
-0.32851338386535645,
0.3417815864086151,
0.29616954922676086,
-0.015060333535075188,
-0.17895545065402985,
0.1072569489479065,
0.03554292395710945,
0.020353805273771286,
0.035684917122125626,
-0.11945018917322159,
-0.2463437169790268,
-0.1701468676328659,
0.5418917536735535,
0.2425842136144638,
-0.016693107783794403,
0.45195960998535156,
0.01080086175352335,
-0.05952771380543709,
0.10297524183988571,
0.4948756992816925,
-0.2613432705402374,
-0.22912819683551788,
0.33773571252822876,
-0.23543071746826172,
-0.4837259352207184,
-0.29808342456817627,
0.08876737207174301,
-0.06036601588129997,
0.009346681647002697,
0.11689247190952301,
-0.35635191202163696,
-0.08265505731105804,
-0.04157797992229462,
-0.20183072984218597,
-0.07103321701288223,
0.45340317487716675,
-0.17280125617980957,
-0.2120850831270218,
-0.044084519147872925,
0.347127765417099,
0.10455199331045151,
0.109474778175354,
0.18725012242794037,
-0.20096704363822937,
0.07223658263683319,
0.054802898317575455,
0.12745535373687744,
0.4970477819442749,
0.02378511242568493,
0.055597517639398575,
-0.07928226888179779,
0.22681693732738495,
-0.27977487444877625,
0.05287524312734604,
0.24628017842769623,
0.07647474855184555,
-0.23045681416988373,
0.23093627393245697,
-0.11297252029180527,
0.41787952184677124,
-0.25746577978134155,
0.03882916644215584,
0.028705932199954987,
-0.09093368798494339,
-0.019277101382613182,
-0.3598269522190094,
-0.13794797658920288,
-0.008743027225136757,
0.18937650322914124,
0.14356917142868042,
0.05456501245498657,
0.14286506175994873,
-0.04936574399471283,
0.3422601521015167,
0.03297339752316475,
0.03657355532050133,
0.20577646791934967,
-0.35932764410972595,
0.15811213850975037,
0.05781631916761398,
-0.05610530823469162,
-0.03038649447262287,
0.0016280636191368103,
0.012582771480083466,
-0.029104091227054596,
0.3670476973056793,
-0.346873015165329,
-0.125581756234169,
0.1208588033914566,
-0.2924034893512726,
-0.4044809639453888,
-0.028653638437390327,
-0.5490260720252991,
-0.10816279798746109,
0.16914960741996765,
-0.12605653703212738,
-0.1499747484922409,
0.03456492722034454,
0.15181097388267517,
-0.19714300334453583,
-0.0772145688533783,
-0.029211848974227905,
-0.4185021221637726,
0.07187823951244354,
-0.07673070579767227,
0.22252681851387024,
0.07045550644397736,
0.2563616931438446,
-0.04241035133600235,
-0.10493510961532593,
-0.1720268279314041,
-0.025196583941578865,
0.4814109802246094,
0.24615971744060516,
0.1562117338180542,
-0.0903976783156395,
-0.26622483134269714,
-0.14639495313167572,
-0.15058517456054688,
-0.1996048241853714,
0.18950672447681427,
0.015262169763445854,
-0.6571380496025085,
-0.038422148674726486,
-0.16666091978549957,
0.16858923435211182,
0.15485532581806183,
-0.1976623237133026,
-0.11591488867998123,
-0.5746036767959595,
0.22823220491409302,
-0.4392104148864746,
-0.036351438611745834,
0.3599659502506256,
0.0648714080452919,
0.13561026751995087,
-0.2745454013347626,
0.17236819863319397,
0.17127206921577454,
-0.3440081477165222,
-0.12238112092018127,
-0.29711848497390747,
-0.0006408216431736946,
0.6353341937065125,
0.2008114457130432,
0.7802702188491821,
0.008179478347301483,
0.036143213510513306,
0.10698387771844864,
0.08271907269954681,
0.3759540319442749,
-0.31206488609313965,
0.04995191469788551,
-0.09260854125022888,
-0.18614017963409424,
-0.11787626147270203,
0.11655354499816895,
0.09630988538265228,
0.25103795528411865,
-0.19029971957206726,
0.4400811493396759,
-0.006245501339435577,
0.08034348487854004,
0.019749170169234276,
-0.030246850103139877,
-0.001280544325709343,
-0.0020523928105831146,
-0.02665591612458229,
0.18062980473041534,
0.12461932748556137,
0.13154006004333496,
-0.100544273853302,
0.10101979225873947,
-0.34474384784698486,
0.022789351642131805,
-0.1532880961894989,
-0.10774673521518707,
-0.32756850123405457,
0.1785721480846405,
0.015450939536094666,
-0.3179483413696289,
-0.32110798358917236,
0.6958521604537964,
0.3500363230705261,
0.2806238830089569,
-0.0372612401843071,
0.17396818101406097,
0.02625211328268051,
0.12390045076608658,
0.06251194328069687,
-0.06584805995225906,
0.1633388251066208,
0.022966332733631134,
-0.19940724968910217,
0.08794261515140533,
0.1445675492286682,
-0.2599150538444519,
-0.026270993053913116,
-0.0026538297533988953,
-0.3019387722015381,
0.13063982129096985,
-0.002599868457764387,
0.08686701208353043,
-0.15192252397537231,
-0.18169136345386505,
0.1379818171262741,
0.0430663526058197,
-0.068844273686409,
0.22336703538894653,
0.05509425327181816,
-0.2668170928955078,
-0.17223745584487915,
0.28633588552474976,
0.07032475620508194,
-0.10172396898269653,
-0.2562137544155121,
-0.17457734048366547,
-0.08640269935131073,
-0.29943132400512695,
-0.08943713456392288,
-0.29818296432495117,
-0.10441501438617706,
0.37763044238090515,
0.018990175798535347,
-0.11541398614645004,
0.051211439073085785,
0.629924476146698,
0.21419236063957214,
0.3644084334373474,
0.15249155461788177,
-0.33369168639183044,
-0.10814855992794037,
0.16984836757183075,
0.37364059686660767,
-0.03354886546730995,
-0.06413500756025314,
0.04874306917190552,
0.219957634806633,
0.4095650315284729,
-0.4029999375343323,
-0.3656335473060608,
-0.39647752046585083,
-0.0816587507724762,
-0.43560847640037537,
-0.22119340300559998,
-0.1281733512878418,
0.0936490148305893,
0.09503507614135742,
0.23749539256095886,
-0.22866462171077728,
-0.2447851300239563,
-0.15919356048107147,
0.0821184515953064,
-0.1456948220729828,
0.40210628509521484,
0.04138724505901337,
0.18534207344055176,
-0.11416181921958923,
-0.3821868300437927,
0.0746251791715622,
0.3171325623989105,
0.25514698028564453,
0.017733994871377945,
-0.0402405820786953,
0.28045326471328735,
-0.1135496273636818,
-0.13701723515987396,
0.05390600115060806,
-0.0051347240805625916,
-0.09329374134540558,
-0.06650283932685852,
-0.06756825000047684,
-0.09874765574932098,
-0.21898172795772552,
-0.02690056711435318,
0.18490949273109436,
-0.12141215056180954,
-0.10536176711320877,
0.08375068753957748,
0.04562808945775032,
-0.3730871081352234,
0.43264254927635193,
0.22116459906101227,
-0.008523502387106419,
-0.19856633245944977,
-0.1335073709487915,
0.21943771839141846,
-0.4589325487613678,
0.26542502641677856,
-0.2891060411930084,
0.15634196996688843,
0.3173479735851288,
0.455687940120697,
0.22332078218460083,
-0.0649050623178482,
-0.06798097491264343,
-0.09870093315839767,
-0.13836272060871124,
-0.10029380023479462,
0.06293302774429321,
-0.3096041977405548,
0.25892481207847595,
-0.020267780870199203,
0.4849746525287628,
-0.11211787164211273,
0.26520660519599915,
0.13097873330116272,
-0.0034164488315582275,
0.3194531500339508,
-0.1190057322382927,
0.19603562355041504,
0.019322648644447327,
0.1845240592956543,
0.14017046988010406,
0.4659497141838074,
0.11100801080465317,
0.007033307105302811,
0.04702743515372276,
0.2889145314693451,
-0.12652990221977234,
-0.17585241794586182,
-0.2906351387500763,
0.08546652644872665,
0.05243987217545509,
-0.34011080861091614,
-0.2391042560338974,
-0.22767391800880432,
-0.4451780319213867,
-0.16389068961143494,
0.06581923365592957,
0.15399284660816193,
0.34268027544021606,
0.025194071233272552,
0.1911424994468689,
-0.2424498051404953,
-0.21093472838401794,
-0.2723105251789093,
0.5643000602722168,
-0.24843686819076538,
0.19212819635868073,
0.15721826255321503,
0.37511953711509705,
0.18826016783714294,
0.4240933656692505,
0.2116144597530365,
0.17867840826511383,
-0.20108817517757416,
0.25647324323654175,
-0.35527268052101135,
-0.15523172914981842,
0.01896538957953453,
0.23125673830509186,
0.16101911664009094,
-0.2643480896949768,
0.4957166612148285,
0.13593687117099762,
-0.2322770357131958,
0.4143298864364624,
0.08615956455469131,
0.42730265855789185,
-0.24933110177516937,
0.3634835481643677,
0.2400839924812317,
0.29389238357543945,
-0.04149298369884491,
0.1830853968858719,
-0.4155997037887573,
0.07796845585107803,
-0.6234222054481506,
-0.11742545664310455,
-0.10118670016527176,
-0.23566091060638428,
0.1084446907043457,
0.0924103856086731,
0.20519739389419556,
0.11813286691904068,
0.3476842939853668,
-0.03575805202126503,
-0.18555019795894623,
-0.4065922796726227,
-0.04292025417089462,
-0.14529286324977875,
-0.07745461910963058,
-0.24246525764465332,
0.38127097487449646,
-0.05846887081861496,
0.5550358891487122,
0.04245314747095108,
0.5779340267181396,
-0.2886158525943756,
0.2897714674472809,
-0.5447968244552612,
0.32753369212150574,
-0.3254662752151489,
-0.0551966056227684,
0.18371610343456268,
0.0911928042769432,
-0.07032191753387451,
-0.14659304916858673,
0.06997353583574295,
0.2719669044017792,
-0.33689144253730774,
0.24808913469314575,
0.32081863284111023,
0.33440446853637695,
0.1007981151342392,
0.18546515703201294,
-0.061937835067510605,
-0.1647571325302124,
0.01998847723007202,
-0.13959577679634094,
-0.04114831984043121,
0.23446550965309143,
0.2039123922586441,
0.19250313937664032,
-0.056833527982234955,
0.08267346769571304,
0.19389496743679047,
0.7380523085594177,
0.13529814779758453,
-0.1584635078907013,
-0.32045799493789673,
0.052253276109695435,
0.03954368829727173,
0.021720867604017258,
-0.5980477929115295,
0.3872765004634857,
-0.08525632321834564,
0.2723895311355591,
-0.03346243500709534,
-0.3992612957954407,
0.494316965341568,
0.031068477779626846,
0.09119157493114471,
-0.24050943553447723,
0.27328062057495117,
0.24116623401641846,
-0.08418664336204529,
-0.32574111223220825,
0.07970317453145981,
0.04795585572719574,
0.3362010419368744,
0.06745797395706177,
0.17270199954509735,
-0.17921772599220276,
0.08963532745838165,
-0.32007429003715515,
0.09191453456878662,
-0.12445766478776932,
0.11732758581638336,
0.083976149559021,
-0.4272245168685913
] |
https://github.com/huggingface/datasets/issues/361 | 🐛 [Metrics] ROUGE is non-deterministic | Now if you re-run the notebook, the two printed results are the same @colanim
```
['0.3356', '0.1466', '0.2318']
['0.3356', '0.1466', '0.2318']
```
However across sessions, the results may change (as numpy's random seed can be different). You can prevent that by setting your seed:
```python
rouge = nlp.load_metric('rouge', seed=42)
``` | If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
> ['0.3350', '0.1470', '0.2329']
['0.3358', '0.1451', '0.2332']
---
Why ROUGE is not deterministic ? | 50 | 🐛 [Metrics] ROUGE is non-deterministic
If I run the ROUGE metric 2 times, with same predictions / references, the scores are slightly different.
Refer to [this Colab notebook](https://colab.research.google.com/drive/1wRssNXgb9ldcp4ulwj-hMJn0ywhDOiDy?usp=sharing) for reproducing the problem.
Example of F-score for ROUGE-1, ROUGE-2, ROUGE-L in 2 differents run :
> ['0.3350', '0.1470', '0.2329']
['0.3358', '0.1451', '0.2332']
---
Why ROUGE is not deterministic ?
Now if you re-run the notebook, the two printed results are the same @colanim
```
['0.3356', '0.1466', '0.2318']
['0.3356', '0.1466', '0.2318']
```
However across sessions, the results may change (as numpy's random seed can be different). You can prevent that by setting your seed:
```python
rouge = nlp.load_metric('rouge', seed=42)
``` | [
-0.10732916742563248,
-0.21592992544174194,
-0.0668015107512474,
0.1431313306093216,
0.18283885717391968,
-0.3188187777996063,
-0.13666366040706635,
-0.15665274858474731,
-0.08101854473352432,
0.39420831203460693,
-0.09587062150239944,
0.573238730430603,
0.07576143741607666,
-0.03530579060316086,
-0.004969636909663677,
0.04572005197405815,
-0.08297703415155411,
0.19788026809692383,
-0.014829568564891815,
-0.3589978814125061,
-0.2548868656158447,
0.11922410875558853,
-0.15128561854362488,
0.0347982794046402,
-0.13176997005939484,
-0.06228875368833542,
0.02634677104651928,
0.15549781918525696,
-0.4091149866580963,
-0.22663614153862,
0.08216311037540436,
0.23360300064086914,
-0.1760028451681137,
0.28498566150665283,
-0.00010769492655526847,
-0.2813827395439148,
0.10782894492149353,
-0.11699149757623672,
0.07695825397968292,
-0.4047333002090454,
-0.040593329817056656,
-0.09562455862760544,
0.17678041756153107,
-0.29458922147750854,
-0.09756408631801605,
0.13691923022270203,
-0.08971613645553589,
0.03389721363782883,
0.41589832305908203,
0.22696872055530548,
0.2249116152524948,
0.04557235538959503,
-0.2391410917043686,
-0.1621120274066925,
0.04261847212910652,
-0.0929483026266098,
-0.03210043907165527,
0.5454749464988708,
-0.18220236897468567,
-0.006718090269714594,
-0.13548901677131653,
0.12704172730445862,
0.1383429318666458,
0.22353699803352356,
0.4007498621940613,
0.041115570813417435,
0.39294561743736267,
-0.13584591448307037,
-0.23437833786010742,
0.25258392095565796,
-0.012931056320667267,
-0.09977098554372787,
-0.13245202600955963,
0.08414623886346817,
0.15872600674629211,
-0.6156042218208313,
-0.17320826649665833,
0.04401460289955139,
-0.13505516946315765,
-0.20126911997795105,
-0.05087819695472717,
0.3788503408432007,
-0.09684976935386658,
0.11171866953372955,
-0.004312541335821152,
0.16808846592903137,
0.02707621455192566,
0.15506403148174286,
0.14782896637916565,
0.21161885559558868,
-0.13196615874767303,
0.12220290303230286,
-0.2151382565498352,
-0.05986819043755531,
-0.39101460576057434,
-0.09472060203552246,
0.1377706080675125,
0.3519817590713501,
0.023443877696990967,
0.12326669692993164,
0.5981096029281616,
0.018931856378912926,
-0.16844338178634644,
0.1034674346446991,
-0.15217210352420807,
0.39072656631469727,
-0.09756157547235489,
0.020345285534858704,
0.2817370891571045,
0.03729524835944176,
-0.04069209471344948,
0.07548942416906357,
0.5044951438903809,
-0.43494561314582825,
0.20578010380268097,
0.21199527382850647,
-0.11224092543125153,
-0.22764356434345245,
-0.5611439347267151,
-0.04307245835661888,
-0.2027513086795807,
-0.019362187013030052,
-0.10041525214910507,
0.33197808265686035,
-0.3697911500930786,
0.1567443609237671,
-0.08244824409484863,
0.19411063194274902,
-0.2658010423183441,
-0.07555405050516129,
-0.32530200481414795,
0.06334596872329712,
-0.5507810115814209,
-0.005786318331956863,
-0.1304561197757721,
0.29262882471084595,
0.2511182427406311,
0.24951834976673126,
0.03237174078822136,
-0.12549398839473724,
0.0750742256641388,
-0.33150893449783325,
0.08696281909942627,
-0.049979712814092636,
-0.108768031001091,
-0.028628086671233177,
0.11923174560070038,
-0.218950092792511,
-0.19657520949840546,
-0.08093122392892838,
-0.05959073454141617,
0.23534493148326874,
0.33463409543037415,
0.19336099922657013,
-0.11094646900892258,
0.09238062798976898,
-0.07158184796571732,
0.2088443785905838,
-0.3361065685749054,
-0.001050662249326706,
0.20945245027542114,
-0.23510845005512238,
-0.38566693663597107,
-0.27876168489456177,
0.09165415912866592,
0.1444387137889862,
0.1349797248840332,
-0.0671067014336586,
0.4620257019996643,
0.055844664573669434,
0.14413708448410034,
0.4726654887199402,
0.12379367649555206,
0.0034985318779945374,
-0.0609259232878685,
-0.440390944480896,
0.6245058178901672,
-0.4146519601345062,
-0.04124974459409714,
-0.13037574291229248,
-0.07033983618021011,
0.029181601479649544,
-0.01939436048269272,
0.20221035182476044,
-0.16690874099731445,
0.05688697472214699,
0.4013471305370331,
0.155173659324646,
0.11707370728254318,
-0.19467923045158386,
-0.268393874168396,
0.013691352680325508,
0.2815435528755188,
-0.07441660761833191,
0.17420819401741028,
0.0707920491695404,
-0.030167803168296814,
-0.11718475073575974,
0.37119120359420776,
0.1120213121175766,
-0.40497705340385437,
0.0647222250699997,
0.04896736890077591,
0.11483073234558105,
-0.06089921295642853,
-0.23303380608558655,
0.13660499453544617,
0.09728226810693741,
-0.6623623371124268,
0.10582952201366425,
0.402593195438385,
-0.14876148104667664,
-0.31135228276252747,
-0.07095503062009811,
0.06534284353256226,
-0.17849968373775482,
0.24333709478378296,
0.18514955043792725,
0.2427431046962738,
0.35614272952079773,
0.06264494359493256,
0.3224669396877289,
-0.24908439815044403,
-0.08479367941617966,
-0.3810080289840698,
-0.040886834263801575,
-0.02900063432753086,
-0.15808594226837158,
0.1339617222547531,
0.45308440923690796,
0.3085568845272064,
0.07206869125366211,
-0.14177769422531128,
0.31269916892051697,
0.33896470069885254,
-0.02639031410217285,
-0.05274003744125366,
0.06802429258823395,
0.19826224446296692,
0.23580601811408997,
-0.040365591645240784,
0.5818979144096375,
0.16091454029083252,
-0.08763052523136139,
0.08404218405485153,
0.49463874101638794,
-0.4532778263092041,
-0.013118714094161987,
-0.06744899600744247,
-0.015532247722148895,
0.13883143663406372,
0.043668974190950394,
-0.13202007114887238,
-0.14338910579681396,
0.44566643238067627,
0.17654386162757874,
0.1647559106349945,
0.07333741337060928,
-0.39820799231529236,
-0.07345891743898392,
0.2575802505016327,
0.021704308688640594,
0.13027891516685486,
-0.07679983973503113,
0.05494105443358421,
-0.10266295075416565,
0.022918375208973885,
0.05283881351351738,
0.3336086869239807,
0.16537734866142273,
-0.0692487508058548,
0.12188746780157089,
-0.48626288771629333,
-0.40111902356147766,
-0.13018381595611572,
-0.040668509900569916,
0.12570101022720337,
0.268691748380661,
0.39283525943756104,
0.17807766795158386,
-0.31082025170326233,
-0.1725018322467804,
-0.17808333039283752,
0.002873971126973629,
-0.08679936081171036,
0.2627747356891632,
-0.2829511761665344,
0.06389180570840836,
-0.12403255701065063,
-0.24999113380908966,
-0.2210526168346405,
-0.33012324571609497,
0.11894587427377701,
0.2607828676700592,
0.18013796210289001,
-0.02133900113403797,
0.4165269732475281,
0.16435715556144714,
-0.11060395836830139,
0.17794226109981537,
-0.11522410809993744,
-0.27895137667655945,
-0.09802403301000595,
0.1053922027349472,
-0.2187725305557251,
0.20542988181114197,
0.26019954681396484,
-0.30803820490837097,
0.020306318998336792,
0.17963428795337677,
-0.253466933965683,
-0.06861577928066254,
-0.0020724013447761536,
0.40984204411506653,
0.10682287067174911,
-0.33580511808395386,
-0.2656078636646271,
0.33476606011390686,
0.3430611193180084,
-0.22917678952217102,
-0.15462493896484375,
0.10122361779212952,
-0.0897238701581955,
0.07925884425640106,
-0.01672189123928547,
-0.04306357353925705,
-0.23171068727970123,
-0.21279561519622803,
0.43162429332733154,
0.2908910810947418,
0.008383415639400482,
0.500260055065155,
-0.08316776901483536,
-0.007333515677601099,
0.13794146478176117,
0.2961848974227905,
-0.46744605898857117,
-0.033186398446559906,
0.2939335107803345,
-0.34876859188079834,
-0.4366021752357483,
-0.22409793734550476,
0.05059082806110382,
0.07246860861778259,
0.010816504247486591,
-0.23372168838977814,
-0.5702821612358093,
0.0090030487626791,
-0.0026479363441467285,
-0.19519606232643127,
-0.16625893115997314,
0.4672873616218567,
-0.2651466429233551,
-0.2121557593345642,
0.005243822932243347,
0.06534852087497711,
-0.0029161274433135986,
0.23273861408233643,
0.3163963854312897,
-0.3067874014377594,
0.21716222167015076,
-0.12604252994060516,
0.06439945101737976,
0.35221022367477417,
-0.18326708674430847,
0.11607721447944641,
-0.024752432480454445,
0.3117872476577759,
-0.31687456369400024,
0.036407917737960815,
0.294845312833786,
0.08570541441440582,
-0.19495663046836853,
0.1709592044353485,
-0.11886867135763168,
0.2867116332054138,
-0.17731444537639618,
-0.061370644718408585,
0.11887160688638687,
-0.15925341844558716,
-0.012251092121005058,
-0.23803523182868958,
-0.2204398214817047,
0.08036251366138458,
0.24642246961593628,
-0.08696021139621735,
-0.20092248916625977,
-0.013554691337049007,
0.08424654603004456,
0.07019916921854019,
0.00275348499417305,
-0.010382071137428284,
-0.0720057487487793,
-0.46401137113571167,
0.18938323855400085,
-0.10065921396017075,
0.1009136512875557,
-0.04564205929636955,
0.06699439138174057,
0.1691400408744812,
-0.056684739887714386,
0.3666309714317322,
-0.21061211824417114,
0.09216353297233582,
0.17563362419605255,
-0.2941545844078064,
-0.46040937304496765,
-0.1159779280424118,
-0.31131091713905334,
0.04448650777339935,
0.2178652435541153,
0.2070883810520172,
-0.10835547745227814,
-0.07992050051689148,
-0.06480692327022552,
0.035975851118564606,
-0.19810517132282257,
-0.04152095690369606,
-0.6293362975120544,
-0.004617068916559219,
0.01816403679549694,
0.11431454122066498,
-0.05264989659190178,
0.23123668134212494,
0.027474602684378624,
-0.009472481906414032,
-0.2461322396993637,
-0.013317874632775784,
0.3121687173843384,
0.42884600162506104,
0.21476879715919495,
0.0606810487806797,
-0.27280116081237793,
-0.010538928210735321,
-0.022560298442840576,
-0.30333852767944336,
0.07821550965309143,
0.101369708776474,
-0.29624608159065247,
0.04244577884674072,
-0.013297067023813725,
0.03574264794588089,
0.2210521399974823,
0.013816052116453648,
-0.14380231499671936,
-0.7564550638198853,
0.32956212759017944,
-0.3697863519191742,
0.1255408525466919,
0.34640008211135864,
-0.012613290920853615,
0.012983931228518486,
-0.3289075195789337,
0.35139021277427673,
0.1373826563358307,
-0.4095773696899414,
0.2780744731426239,
-0.38765013217926025,
-0.1274401992559433,
0.4977784752845764,
0.4410949945449829,
0.8089752197265625,
-0.0554027259349823,
0.23449848592281342,
0.3494740426540375,
-0.13197490572929382,
0.5014905333518982,
-0.22654426097869873,
0.15404856204986572,
-0.24588538706302643,
-0.19719909131526947,
0.029812077060341835,
0.028944987803697586,
-0.04111716151237488,
-0.09684090316295624,
-0.10229577124118805,
0.42491036653518677,
0.10975709557533264,
0.018914761021733284,
-0.05721425265073776,
0.007808864116668701,
0.20161667466163635,
-0.01733708381652832,
-0.15413565933704376,
0.20309071242809296,
-0.08189462125301361,
0.19088336825370789,
-0.17527508735656738,
0.012295618653297424,
-0.2148536741733551,
0.05768865346908569,
0.014575481414794922,
-0.14860115945339203,
-0.24445031583309174,
0.2113228142261505,
-0.07249249517917633,
-0.41597461700439453,
-0.3774954676628113,
0.558713972568512,
0.4174341559410095,
0.19439221918582916,
0.029006944969296455,
0.2016826570034027,
0.019036445766687393,
0.11785788834095001,
-0.058844853192567825,
-0.07451016455888748,
0.13077577948570251,
-0.048764608800411224,
-0.24276891350746155,
0.0947323814034462,
0.17812450230121613,
-0.2563759684562683,
-0.23586659133434296,
0.16424670815467834,
-0.3935195803642273,
0.14282174408435822,
0.013131948187947273,
-0.08233259618282318,
-0.05749461054801941,
-0.07063484936952591,
0.17087054252624512,
0.012570954859256744,
-0.06271254271268845,
0.3557582199573517,
0.14628835022449493,
-0.5041590929031372,
-0.16160447895526886,
0.3129505217075348,
-0.03948059678077698,
0.005244135856628418,
-0.13372299075126648,
-0.3825675845146179,
0.045673124492168427,
-0.30214086174964905,
-0.10493142157793045,
-0.3436261713504791,
-0.016398757696151733,
0.28439420461654663,
0.07784746587276459,
-0.06672099232673645,
0.2067272663116455,
0.6172465682029724,
0.20400339365005493,
0.22915923595428467,
0.202827587723732,
-0.3756345808506012,
-0.10113576799631119,
0.02616344392299652,
0.200266033411026,
0.027095144614577293,
0.04101232439279556,
0.25916752219200134,
0.044195160269737244,
0.3328762650489807,
-0.4154180586338043,
-0.21122750639915466,
-0.27285611629486084,
0.07712586224079132,
-0.403329074382782,
-0.24859127402305603,
-0.1983133852481842,
0.1788429319858551,
0.10683497786521912,
0.28594768047332764,
-0.3695855140686035,
-0.2480742335319519,
-0.18295849859714508,
0.07782740890979767,
-0.014672044664621353,
0.2568798065185547,
-0.12273028492927551,
0.0897885262966156,
0.028007904067635536,
-0.25288137793540955,
0.025789353996515274,
0.28193020820617676,
0.18656891584396362,
0.1521969437599182,
-0.09543801844120026,
0.4118025004863739,
0.18983496725559235,
-0.014128103852272034,
0.06453683972358704,
0.03033294528722763,
-0.09231343120336533,
-0.08468662202358246,
-0.15759481489658356,
0.019973449409008026,
-0.4911455810070038,
-0.1587671935558319,
-0.15517252683639526,
-0.10303262621164322,
0.037730928510427475,
0.03173578530550003,
0.12621794641017914,
-0.24199731647968292,
0.29694032669067383,
0.25018230080604553,
-0.058619119226932526,
-0.3473285734653473,
-0.030183471739292145,
0.21944129467010498,
-0.33122962713241577,
0.2263864129781723,
-0.0857328325510025,
0.24605855345726013,
0.27900975942611694,
0.40267235040664673,
0.28726130723953247,
-0.17612022161483765,
-0.03948262333869934,
-0.13491426408290863,
-0.09364248812198639,
-0.26379573345184326,
0.1667923927307129,
-0.17470750212669373,
0.11362573504447937,
-0.01283954456448555,
0.6192084550857544,
0.022976987063884735,
0.14892350137233734,
0.38942211866378784,
0.18352650105953217,
0.34738513827323914,
-0.35378921031951904,
0.03477386757731438,
-0.1572965383529663,
0.13026706874370575,
-0.09624604880809784,
0.4951852262020111,
-0.004752121865749359,
0.057150062173604965,
0.16107922792434692,
0.23705649375915527,
-0.39104634523391724,
-0.26235806941986084,
-0.38009732961654663,
0.04479864612221718,
-0.07528215646743774,
-0.1696828156709671,
-0.2992708384990692,
-0.10491451621055603,
-0.27508002519607544,
-0.013725051656365395,
0.059835080057382584,
0.19096697866916656,
0.28898465633392334,
0.1396651566028595,
-0.043606579303741455,
-0.19414691627025604,
-0.1264561414718628,
0.010286146774888039,
0.40567073225975037,
-0.16452176868915558,
0.08636187016963959,
0.05788265913724899,
0.21722202003002167,
0.041572727262973785,
0.219779834151268,
0.20977060496807098,
0.31530365347862244,
-0.3565008044242859,
0.10378362238407135,
-0.1926596611738205,
-0.02600335329771042,
-0.06899082660675049,
0.23194392025470734,
0.3385542929172516,
-0.18314918875694275,
0.47167059779167175,
0.1637120246887207,
-0.27064260840415955,
0.49965330958366394,
0.14178887009620667,
0.3519834876060486,
-0.26148128509521484,
0.53899085521698,
0.2331407368183136,
0.23114439845085144,
-0.08833406120538712,
0.06774701178073883,
-0.44624918699264526,
0.15191751718521118,
-0.584331214427948,
-0.033571433275938034,
0.03211258724331856,
-0.3731010854244232,
0.11775954067707062,
-0.05338602885603905,
0.39911749958992004,
-0.10487507283687592,
0.17998147010803223,
-0.11669255048036575,
-0.19338759779930115,
-0.6247977614402771,
0.117136649787426,
-0.11927565932273865,
0.01177058182656765,
-0.11342491954565048,
0.27102893590927124,
-0.3030313551425934,
0.3159366250038147,
-0.08644451200962067,
0.5827921032905579,
-0.0794924721121788,
0.21446628868579865,
-0.501969575881958,
0.2297377586364746,
-0.4718148708343506,
-0.18884719908237457,
0.17910799384117126,
-0.02971038408577442,
-0.06021362915635109,
-0.2444489300251007,
0.11951390653848648,
0.09021075814962387,
-0.0805603563785553,
0.01569093018770218,
0.8752210140228271,
0.4947996437549591,
0.1753019094467163,
0.19835560023784637,
-0.11366723477840424,
-0.1404847651720047,
-0.037554893642663956,
-0.19141483306884766,
-0.03997212275862694,
0.14906921982765198,
0.02107970044016838,
0.12287995219230652,
-0.00955202430486679,
0.1311478465795517,
0.010022672824561596,
0.7477491497993469,
0.1075143814086914,
-0.28836461901664734,
-0.15808643400669098,
0.11120440810918808,
0.033858612179756165,
0.09519796073436737,
-0.3561345040798187,
0.5702247023582458,
-0.006233841180801392,
0.3806047737598419,
-0.1571124792098999,
-0.34380361437797546,
0.5270279049873352,
-0.15360073745250702,
-0.05581028014421463,
-0.04449642077088356,
0.283868670463562,
0.19970126450061798,
-0.0955435261130333,
-0.3783436417579651,
0.07034262269735336,
0.1069682389497757,
0.08961769938468933,
0.017264753580093384,
0.29028069972991943,
-0.24874624609947205,
-0.08878025412559509,
-0.19046545028686523,
0.1322319209575653,
-0.010481007397174835,
-0.08955447375774384,
0.3145926296710968,
-0.3432697653770447
] |
https://github.com/huggingface/datasets/issues/360 | [Feature request] Add dataset.ragged_map() function for many-to-many transformations | Actually `map(batched=True)` can already change the size of the dataset.
It can accept examples of length `N` and returns a batch of length `M` (can be null or greater than `N`).
I'll make that explicit in the doc that I'm currently writing. | `dataset.map()` enables one-to-one transformations. Input one example and output one example. This is helpful for tokenizing and cleaning individual lines.
`dataset.filter()` enables one-to-(one-or-none) transformations. Input one example and output either zero/one example. This is helpful for removing portions from the dataset.
However, some dataset transformations are many-to-many. Consider constructing BERT training examples from a dataset of sentences, where you map `["a", "b", "c"] -> ["a[SEP]b", "a[SEP]c", "b[SEP]c", "c[SEP]b", ...]`
I propose a more general `ragged_map()` method that takes in a batch of examples of length `N` and return a batch of examples `M`. This is different from the `map(batched=True)` method, which takes examples of length `N` and returns a batch of length `N`, processing individual examples in parallel. I don't have a clear vision of how this would be implemented efficiently and lazily, but would love to hear the community's feedback on this.
My specific use case is creating an end-to-end ELECTRA data pipeline. I would like to take the raw WikiText data and generate training examples from this using the `ragged_map()` method, then export to TFRecords and train quickly. This would be a reproducible pipeline with no bash scripts. Currently I'm relying on scripts like https://github.com/google-research/electra/blob/master/build_pretraining_dataset.py, which are less general.
| 42 | [Feature request] Add dataset.ragged_map() function for many-to-many transformations
`dataset.map()` enables one-to-one transformations. Input one example and output one example. This is helpful for tokenizing and cleaning individual lines.
`dataset.filter()` enables one-to-(one-or-none) transformations. Input one example and output either zero/one example. This is helpful for removing portions from the dataset.
However, some dataset transformations are many-to-many. Consider constructing BERT training examples from a dataset of sentences, where you map `["a", "b", "c"] -> ["a[SEP]b", "a[SEP]c", "b[SEP]c", "c[SEP]b", ...]`
I propose a more general `ragged_map()` method that takes in a batch of examples of length `N` and return a batch of examples `M`. This is different from the `map(batched=True)` method, which takes examples of length `N` and returns a batch of length `N`, processing individual examples in parallel. I don't have a clear vision of how this would be implemented efficiently and lazily, but would love to hear the community's feedback on this.
My specific use case is creating an end-to-end ELECTRA data pipeline. I would like to take the raw WikiText data and generate training examples from this using the `ragged_map()` method, then export to TFRecords and train quickly. This would be a reproducible pipeline with no bash scripts. Currently I'm relying on scripts like https://github.com/google-research/electra/blob/master/build_pretraining_dataset.py, which are less general.
Actually `map(batched=True)` can already change the size of the dataset.
It can accept examples of length `N` and returns a batch of length `M` (can be null or greater than `N`).
I'll make that explicit in the doc that I'm currently writing. | [
-0.5117924809455872,
-0.06494361907243729,
0.046737704426050186,
-0.2127765268087387,
-0.0525982603430748,
-0.09725114703178406,
0.24880284070968628,
0.3504044711589813,
-0.24927470088005066,
0.05863873288035393,
0.19317200779914856,
0.41998618841171265,
-0.4208356738090515,
-0.1185225173830986,
0.3404652774333954,
-0.2591932415962219,
0.12048478424549103,
-0.07186827063560486,
-0.05883897840976715,
-0.07704630494117737,
-0.39468151330947876,
-0.09677791595458984,
-0.2518247067928314,
-0.001955002546310425,
-0.017071042209863663,
-0.02990000881254673,
-0.17760564386844635,
-0.31509917974472046,
0.1913711279630661,
-0.026635240763425827,
0.18286727368831635,
0.3647993206977844,
-0.0834425836801529,
0.19841617345809937,
-0.00012928113574162126,
-0.1904086321592331,
0.09212186932563782,
-0.038571011275053024,
-0.22485606372356415,
-0.12352956831455231,
-0.09803427755832672,
-0.11943676322698593,
-0.12173903733491898,
-0.18695512413978577,
0.16762623190879822,
0.040292564779520035,
0.2579862177371979,
-0.32766079902648926,
0.43825507164001465,
0.13338005542755127,
-0.058807406574487686,
0.031622812151908875,
-0.09492582082748413,
0.033790118992328644,
0.5097759962081909,
0.4657489061355591,
-0.032805684953927994,
-0.2857999801635742,
0.598788857460022,
-0.23764291405677795,
-0.048190824687480927,
0.31152743101119995,
-0.05683065205812454,
-0.009526010602712631,
0.2963949143886566,
-0.010219602845609188,
-0.1644722819328308,
-0.2860158085823059,
-0.17815729975700378,
0.6859878301620483,
-0.1074637845158577,
-0.33056479692459106,
-0.5636525750160217,
-0.3081476092338562,
0.10562610626220703,
-0.23657524585723877,
-0.48407047986984253,
0.03168310597538948,
-0.12582921981811523,
-0.046693529933691025,
-0.8150777220726013,
-0.10630493611097336,
-0.3973292410373688,
0.3978860378265381,
-0.16253049671649933,
0.13736777007579803,
0.2568992078304291,
0.22208908200263977,
0.10738885402679443,
-0.2615984082221985,
-0.10220236331224442,
-0.14488625526428223,
0.25727564096450806,
0.45625174045562744,
-0.09176710247993469,
-0.3255056142807007,
0.08903607726097107,
-0.04865467548370361,
0.5503159761428833,
0.08205680549144745,
-0.00353179220110178,
0.18414658308029175,
-0.22062142193317413,
-0.025933854281902313,
-0.028433721512556076,
-0.0053631942719221115,
0.03188799321651459,
0.5232822895050049,
0.1720311939716339,
-0.06080000102519989,
-0.06206674501299858,
0.3738222122192383,
-0.05331284925341606,
-0.1968529373407364,
-0.1862695813179016,
0.22874602675437927,
-0.15394704043865204,
0.12613911926746368,
-0.07833383232355118,
-0.225160151720047,
-0.26090848445892334,
-0.025920547544956207,
0.09606070816516876,
0.1137738823890686,
-0.05929597094655037,
-0.02020193263888359,
0.14819703996181488,
0.11808319389820099,
0.03457406908273697,
-0.07613218575716019,
0.0366140715777874,
-0.13240189850330353,
-0.3662853538990021,
0.1333991438150406,
0.31618672609329224,
0.16342796385288239,
0.03577979654073715,
-0.09006717056035995,
0.0493343323469162,
0.39587152004241943,
0.03178154677152634,
-0.1015297919511795,
0.42422571778297424,
-0.10630695521831512,
-0.30298417806625366,
0.09028860181570053,
0.050214655697345734,
0.21033121645450592,
-0.3275681138038635,
0.17871186137199402,
-0.5758724212646484,
-0.567373514175415,
0.23677442967891693,
0.007507698610424995,
0.08831019699573517,
-0.02595556527376175,
-0.13968253135681152,
0.4832122027873993,
0.39832594990730286,
-0.39958035945892334,
-0.018734797835350037,
-0.463146448135376,
-0.36604687571525574,
-0.04463253170251846,
0.19779753684997559,
0.3899153470993042,
-0.06479949504137039,
-0.10405799746513367,
-0.1227666512131691,
0.25287726521492004,
0.26170721650123596,
0.2549610137939453,
-0.36343759298324585,
0.3214166462421417,
-0.01043099258095026,
0.002409808337688446,
0.5380629301071167,
-0.16340811550617218,
-0.04623764753341675,
0.4684036374092102,
-0.08066800236701965,
0.12572303414344788,
0.02069743722677231,
-0.05527455359697342,
0.6303871870040894,
-0.2714841067790985,
0.5482931137084961,
0.49558544158935547,
-0.24489998817443848,
0.23185127973556519,
0.10406284034252167,
-0.26038119196891785,
0.11292581260204315,
0.10383887588977814,
0.15815187990665436,
-0.15798678994178772,
-0.09196337312459946,
0.1619402915239334,
0.29255571961402893,
-0.303500771522522,
0.1494300365447998,
-0.2504132390022278,
-0.28020575642585754,
0.08378607779741287,
-0.16901101171970367,
-0.2650315463542938,
-0.4043857455253601,
-0.05321116745471954,
-0.18629169464111328,
-0.11818398535251617,
0.3396586775779724,
-0.340947687625885,
0.33101803064346313,
-0.03610880672931671,
0.11900709569454193,
0.0143990907818079,
-0.09510279446840286,
0.07692248374223709,
0.08486302196979523,
0.014127571135759354,
-0.14357826113700867,
-0.33895978331565857,
-0.053813956677913666,
0.15892928838729858,
0.007238845340907574,
0.06502171605825424,
0.3833913803100586,
0.010754574090242386,
-0.2258310168981552,
0.22996225953102112,
-0.012986861169338226,
-0.2821638286113739,
0.23075494170188904,
0.28183481097221375,
0.1516556739807129,
-0.06793907284736633,
-0.17617732286453247,
0.35488927364349365,
0.4281882047653198,
0.1057402491569519,
0.11387691646814346,
0.24189788103103638,
0.10266032814979553,
-0.2012154459953308,
-0.5654882788658142,
0.3278261423110962,
0.015928927809000015,
0.5668689012527466,
0.21728213131427765,
0.036717839539051056,
-0.2614709734916687,
0.08435739576816559,
-0.3924778401851654,
-0.12330078333616257,
0.06425661593675613,
-0.09243318438529968,
0.06192094460129738,
-0.17798636853694916,
-0.10982799530029297,
0.13850070536136627,
0.33412379026412964,
-0.06231295317411423,
0.01604251191020012,
0.45998790860176086,
-0.008359149098396301,
-0.1453409492969513,
-0.142670139670372,
0.07415622472763062,
0.2954387068748474,
0.19297808408737183,
0.045733049511909485,
-0.15670132637023926,
0.03307362645864487,
0.08373501896858215,
0.2152986228466034,
0.1570751667022705,
0.06505049765110016,
0.12567393481731415,
0.18531134724617004,
0.18263894319534302,
0.0090828537940979,
-0.5682793259620667,
0.18825511634349823,
-0.007958495989441872,
-0.25395917892456055,
0.13106055557727814,
-0.05174212157726288,
-0.074928417801857,
-0.32826751470565796,
-0.38064900040626526,
0.21215829253196716,
-0.2187446802854538,
0.2884809374809265,
-0.12821456789970398,
-0.2969515919685364,
0.27722665667533875,
0.43692582845687866,
0.4191133975982666,
0.05731695890426636,
-0.21483229100704193,
-0.0691942423582077,
-0.21955572068691254,
-0.010006550699472427,
-0.1027999222278595,
0.0953417494893074,
-0.23130008578300476,
0.3172837197780609,
0.05285564064979553,
-0.03004857525229454,
-0.4030625820159912,
-0.3596818149089813,
-0.04224863648414612,
-0.14545360207557678,
-0.09496520459651947,
0.47976920008659363,
0.06534932553768158,
-0.0845206156373024,
-0.23748737573623657,
0.0989023819565773,
-0.31982678174972534,
0.0672239437699318,
-0.013090459629893303,
0.06728701293468475,
0.02768057771027088,
-0.0035391710698604584,
-0.17495176196098328,
-0.0653909221291542,
-0.1445050686597824,
0.2854902148246765,
-0.25133994221687317,
0.18265306949615479,
0.04108266904950142,
0.23526154458522797,
-0.011329259723424911,
-0.09861548990011215,
-0.16383229196071625,
0.32044360041618347,
-0.0722721666097641,
0.12160594016313553,
-0.29690027236938477,
-0.057740334421396255,
-0.3848021626472473,
0.014755267649888992,
-0.4168524742126465,
0.8833571672439575,
-0.2570570111274719,
0.06533907353878021,
-0.010965364053845406,
0.11444778740406036,
-0.02868044376373291,
0.11447209864854813,
0.459435373544693,
0.17340460419654846,
0.08428702503442764,
-0.07531175017356873,
0.0018332675099372864,
0.0628124251961708,
0.07647113502025604,
-0.013288028538227081,
0.16764476895332336,
0.31079307198524475,
0.1382344663143158,
1.0362780094146729,
0.40657997131347656,
-0.19772736728191376,
-0.12377649545669556,
-0.09552284330129623,
-0.13065139949321747,
-0.0942157730460167,
-0.07739339023828506,
0.2284003645181656,
-0.10270455479621887,
0.0158008374273777,
0.26406240463256836,
0.019335104152560234,
-0.29133540391921997,
0.09273044764995575,
0.2628006637096405,
-0.06299284100532532,
-0.35146766901016235,
0.4311906397342682,
-0.2534625232219696,
0.31626346707344055,
-0.06289395689964294,
-0.0218251571059227,
-0.4590000510215759,
-0.04508696123957634,
0.13934925198554993,
0.028478965163230896,
0.4992489516735077,
0.00897805206477642,
-0.1856810301542282,
-0.19425132870674133,
-0.174384206533432,
0.25923657417297363,
0.3169308304786682,
-0.16960947215557098,
-0.04714725911617279,
-0.27047836780548096,
-0.18046419322490692,
0.04084071144461632,
0.668376088142395,
-0.4042578339576721,
-0.09447647631168365,
-0.06400547921657562,
-0.14112533628940582,
-0.3563019633293152,
0.031246352940797806,
-0.2481987029314041,
0.06974431872367859,
-0.019850779324769974,
0.49482113122940063,
-0.388045072555542,
-0.1199447438120842,
0.5387390851974487,
0.20253421366214752,
0.07076124846935272,
0.22782769799232483,
0.3493991494178772,
0.05124954134225845,
-0.2930186986923218,
0.046154219657182693,
0.008385950699448586,
-0.13815125823020935,
-0.05734046548604965,
-0.15630997717380524,
-0.266796350479126,
0.18519967794418335,
0.17924901843070984,
0.04694164916872978,
0.036543019115924835,
0.17413048446178436,
0.24748307466506958,
-0.19481953978538513,
-0.03888161480426788,
0.533344030380249,
-0.023282311856746674,
-0.5298095941543579,
-0.2901960611343384,
-0.29572901129722595,
0.09348706901073456,
0.48385345935821533,
0.375943660736084,
0.10379622131586075,
-0.20026668906211853,
0.09907973557710648,
0.3444667458534241,
-0.19389154016971588,
0.35903531312942505,
0.23850789666175842,
-0.004601762630045414,
-0.2231176346540451,
-0.6674752235412598,
0.28851911425590515,
0.33964020013809204,
-0.15392623841762543,
0.499946266412735,
-0.11281897127628326,
-0.43385744094848633,
0.43767595291137695,
0.21386712789535522,
0.8605988025665283,
-0.09303641319274902,
0.4288922846317291,
0.07143008708953857,
0.2922268509864807,
0.03559902310371399,
-0.3562477231025696,
0.17453792691230774,
-0.03882431983947754,
0.0377964973449707,
-0.0339290127158165,
0.0631570965051651,
-0.06563697010278702,
0.3533821105957031,
-0.36374855041503906,
0.1785399168729782,
0.16646429896354675,
0.0536397360265255,
-0.12540219724178314,
-0.14962777495384216,
0.12313427031040192,
-0.45452001690864563,
0.19606132805347443,
-0.07371385395526886,
0.18059661984443665,
-0.016381800174713135,
-0.06443256884813309,
-0.21704667806625366,
0.01754903420805931,
-0.11979406327009201,
-0.40375685691833496,
-0.16840285062789917,
-0.4634830355644226,
0.11808352172374725,
-0.1645263284444809,
-0.3696548342704773,
0.13608163595199585,
0.3140818774700165,
-0.08946208655834198,
0.2606821060180664,
-0.010970761999487877,
-0.08494636416435242,
0.05317559838294983,
0.1234387531876564,
-0.11260343343019485,
-0.43617111444473267,
0.46044647693634033,
0.024107925593852997,
0.06359527260065079,
0.11800850927829742,
-0.013591288588941097,
0.020364396274089813,
-0.2320084273815155,
-0.13479235768318176,
0.6238188743591309,
-0.16974221169948578,
0.08116219937801361,
0.44077590107917786,
-0.21019484102725983,
-0.16499599814414978,
-0.081839919090271,
-0.0821780115365982,
-0.0403975248336792,
0.43952351808547974,
-0.17776472866535187,
-0.019616805016994476,
0.08874788880348206,
0.17746378481388092,
-0.1430022120475769,
-0.20586201548576355,
0.21942487359046936,
0.03471039608120918,
0.001706935465335846,
-0.21431946754455566,
0.4186762273311615,
0.34126198291778564,
-0.5785905122756958,
0.2002498060464859,
-0.0755244642496109,
0.1383095532655716,
0.19267725944519043,
0.49407365918159485,
0.002063613384962082,
0.21984276175498962,
-0.10512937605381012,
-0.14939147233963013,
-0.08775702118873596,
0.09881307184696198,
0.09802930802106857,
0.3579162061214447,
-0.26439517736434937,
0.09382613003253937,
0.11019150912761688,
0.22625449299812317,
-0.14302197098731995,
0.13029885292053223,
0.15003298223018646,
0.3245944380760193,
-0.14690136909484863,
0.18600279092788696,
-0.3450331389904022,
0.12041373550891876,
-0.1457301825284958,
0.024890340864658356,
-0.08707167953252792,
-0.033914126455783844,
-0.13416041433811188,
0.2138228714466095,
0.013619162142276764,
-0.012630194425582886,
0.26628759503364563,
-0.006507983431220055,
-0.22939029335975647,
-0.4863310158252716,
0.41707679629325867,
-0.09887195378541946,
-0.19325248897075653,
0.03233467414975166,
0.28721532225608826,
0.1487860083580017,
0.043473243713378906,
0.23041264712810516,
0.14647606015205383,
0.16852617263793945,
-0.14056876301765442,
0.17050926387310028,
0.05164025351405144,
-0.3247900605201721,
0.07421081513166428,
0.24457937479019165,
0.4982965588569641,
0.16705650091171265,
0.3701965808868408,
-0.04555419087409973,
-0.26540136337280273,
0.2559405565261841,
0.06079772859811783,
0.30031898617744446,
-0.21457207202911377,
0.08911864459514618,
0.25068098306655884,
0.043281182646751404,
-0.14495746791362762,
0.0008067566086538136,
0.1159372329711914,
-0.12712931632995605,
0.14092959463596344,
0.15316233038902283,
-0.3267054855823517,
-0.137109637260437,
-0.009920775890350342,
-0.10051768273115158,
-0.005487433634698391,
-0.2498064786195755,
0.15893787145614624,
0.5841220021247864,
-0.09647151082754135,
0.0054839663207530975,
-0.34919530153274536,
0.20939306914806366,
0.30796703696250916,
-0.13427580893039703,
0.06246910244226456,
0.7259112000465393,
0.1867712438106537,
0.044511210173368454,
0.3982729911804199,
-0.23893404006958008,
0.037958621978759766,
0.11826839298009872,
0.0814305990934372,
0.42669209837913513,
0.22451254725456238,
0.02892281860113144,
-0.05163479968905449,
-0.2223336398601532,
-0.1780671328306198,
0.33083030581474304,
0.20709142088890076,
-0.256072461605072,
-0.12840965390205383,
-0.16080021858215332,
0.1912703812122345,
-0.06829424202442169,
-0.22825565934181213,
-0.012185193598270416,
0.6396487951278687,
0.18945816159248352,
0.4283140301704407,
0.03560139611363411,
-0.2567310035228729,
-0.23384052515029907,
0.47147929668426514,
-0.24505899846553802,
-0.11832528561353683,
0.18643543124198914,
-0.10907149314880371,
-0.04308284446597099,
0.3037448525428772,
0.37384212017059326,
0.2554522454738617,
-0.20620058476924896,
0.38568198680877686,
-0.3402121365070343,
0.15663591027259827,
0.04536333680152893,
0.17113986611366272,
0.06494975090026855,
-0.24258242547512054,
0.2798641324043274,
-0.11200975626707077,
-0.013645786792039871,
0.16772818565368652,
-0.13195815682411194,
-0.01595935970544815,
-0.22078071534633636,
0.09142573922872543,
0.296955406665802,
-0.2220667600631714,
-0.06370102614164352,
0.14551550149917603,
-0.08269079029560089,
0.16357707977294922,
0.25864487886428833,
-0.32324275374412537,
0.01810821145772934,
0.22099725902080536,
-0.00796238612383604,
0.07852758467197418,
0.48666292428970337,
0.07317840307950974,
0.08235181868076324,
-0.3261423707008362,
-0.3485633134841919,
-0.04453715682029724,
-0.22371402382850647,
-0.14922380447387695,
0.07823147624731064,
-0.002091025933623314,
0.05208997428417206,
0.15422913432121277,
0.31467247009277344,
-0.0017984956502914429,
-0.7042707204818726,
-0.11451496183872223,
0.5776195526123047,
-0.17485304176807404,
-0.11609023809432983,
0.1270681470632553,
0.1364876925945282,
0.11953549087047577,
-0.3580107092857361,
0.12661592662334442,
-0.20970965921878815,
-0.1929231882095337,
-0.06057507544755936,
0.15726789832115173,
0.30121317505836487,
0.07566161453723907,
0.14411050081253052,
0.1144430935382843,
0.11082028597593307,
0.03712485730648041,
0.22318586707115173,
-0.11265979707241058,
0.17210835218429565,
-0.036159973591566086,
0.20402756333351135,
0.1006091982126236,
0.00133480504155159,
-0.28957298398017883,
-0.33109259605407715,
-0.0419558584690094,
-0.3831172585487366,
0.291199266910553,
0.01902301050722599,
-0.12996795773506165,
-0.06236955523490906,
-0.045300550758838654,
-0.04455399140715599,
0.12692739069461823,
0.42957818508148193,
-0.12052372097969055,
-0.20041993260383606,
0.04621082544326782,
-0.2601970136165619,
0.3955248296260834,
-0.466258704662323,
-0.3204611539840698,
-0.47959741950035095,
0.16789734363555908,
-0.41460123658180237,
0.22870640456676483,
-0.4381658732891083,
-0.10768349468708038,
0.4040946364402771,
-0.0032027214765548706,
-0.40826818346977234,
0.2361123114824295,
0.12415535748004913,
-0.29438257217407227,
-0.25540030002593994,
0.3656478822231293,
0.012295359745621681,
-0.22831638157367706,
-0.15867871046066284,
-0.6390994787216187
] |
https://github.com/huggingface/datasets/issues/360 | [Feature request] Add dataset.ragged_map() function for many-to-many transformations | You're two steps ahead of me :) In my testing, it also works if `M` < `N`.
A batched map of different length seems to work if you directly overwrite all of the original keys, but fails if any of the original keys are preserved.
For example,
```python
# Create a dummy dataset
dset = load_dataset("wikitext", "wikitext-2-raw-v1")["test"]
dset = dset.map(lambda ex: {"length": len(ex["text"]), "foo": 1})
# Do an allreduce on each batch, overwriting both keys
dset.map(lambda batch: {"length": [sum(batch["length"])], "foo": [1]})
# Dataset(schema: {'length': 'int64', 'foo': 'int64'}, num_rows: 5)
# Now attempt an allreduce without touching the `foo` key
dset.map(lambda batch: {"length": [sum(batch["length"])]})
# This fails with the error message below
```
```bash
File "/path/to/nlp/src/nlp/arrow_dataset.py", line 728, in map
arrow_schema = pa.Table.from_pydict(test_output).schema
File "pyarrow/io.pxi", line 1532, in pyarrow.lib.Codec.detect
File "pyarrow/table.pxi", line 1503, in pyarrow.lib.Table.from_arrays
File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Column 1 named foo expected length 1 but got length 2
```
Adding the `remove_columns=["length", "foo"]` argument to `map()` solves the issue. Leaving the above error for future visitors. Perfect, thank you! | `dataset.map()` enables one-to-one transformations. Input one example and output one example. This is helpful for tokenizing and cleaning individual lines.
`dataset.filter()` enables one-to-(one-or-none) transformations. Input one example and output either zero/one example. This is helpful for removing portions from the dataset.
However, some dataset transformations are many-to-many. Consider constructing BERT training examples from a dataset of sentences, where you map `["a", "b", "c"] -> ["a[SEP]b", "a[SEP]c", "b[SEP]c", "c[SEP]b", ...]`
I propose a more general `ragged_map()` method that takes in a batch of examples of length `N` and return a batch of examples `M`. This is different from the `map(batched=True)` method, which takes examples of length `N` and returns a batch of length `N`, processing individual examples in parallel. I don't have a clear vision of how this would be implemented efficiently and lazily, but would love to hear the community's feedback on this.
My specific use case is creating an end-to-end ELECTRA data pipeline. I would like to take the raw WikiText data and generate training examples from this using the `ragged_map()` method, then export to TFRecords and train quickly. This would be a reproducible pipeline with no bash scripts. Currently I'm relying on scripts like https://github.com/google-research/electra/blob/master/build_pretraining_dataset.py, which are less general.
| 179 | [Feature request] Add dataset.ragged_map() function for many-to-many transformations
`dataset.map()` enables one-to-one transformations. Input one example and output one example. This is helpful for tokenizing and cleaning individual lines.
`dataset.filter()` enables one-to-(one-or-none) transformations. Input one example and output either zero/one example. This is helpful for removing portions from the dataset.
However, some dataset transformations are many-to-many. Consider constructing BERT training examples from a dataset of sentences, where you map `["a", "b", "c"] -> ["a[SEP]b", "a[SEP]c", "b[SEP]c", "c[SEP]b", ...]`
I propose a more general `ragged_map()` method that takes in a batch of examples of length `N` and return a batch of examples `M`. This is different from the `map(batched=True)` method, which takes examples of length `N` and returns a batch of length `N`, processing individual examples in parallel. I don't have a clear vision of how this would be implemented efficiently and lazily, but would love to hear the community's feedback on this.
My specific use case is creating an end-to-end ELECTRA data pipeline. I would like to take the raw WikiText data and generate training examples from this using the `ragged_map()` method, then export to TFRecords and train quickly. This would be a reproducible pipeline with no bash scripts. Currently I'm relying on scripts like https://github.com/google-research/electra/blob/master/build_pretraining_dataset.py, which are less general.
You're two steps ahead of me :) In my testing, it also works if `M` < `N`.
A batched map of different length seems to work if you directly overwrite all of the original keys, but fails if any of the original keys are preserved.
For example,
```python
# Create a dummy dataset
dset = load_dataset("wikitext", "wikitext-2-raw-v1")["test"]
dset = dset.map(lambda ex: {"length": len(ex["text"]), "foo": 1})
# Do an allreduce on each batch, overwriting both keys
dset.map(lambda batch: {"length": [sum(batch["length"])], "foo": [1]})
# Dataset(schema: {'length': 'int64', 'foo': 'int64'}, num_rows: 5)
# Now attempt an allreduce without touching the `foo` key
dset.map(lambda batch: {"length": [sum(batch["length"])]})
# This fails with the error message below
```
```bash
File "/path/to/nlp/src/nlp/arrow_dataset.py", line 728, in map
arrow_schema = pa.Table.from_pydict(test_output).schema
File "pyarrow/io.pxi", line 1532, in pyarrow.lib.Codec.detect
File "pyarrow/table.pxi", line 1503, in pyarrow.lib.Table.from_arrays
File "pyarrow/public-api.pxi", line 390, in pyarrow.lib.pyarrow_wrap_table
File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
pyarrow.lib.ArrowInvalid: Column 1 named foo expected length 1 but got length 2
```
Adding the `remove_columns=["length", "foo"]` argument to `map()` solves the issue. Leaving the above error for future visitors. Perfect, thank you! | [
-0.5140852332115173,
-0.06388510018587112,
0.046735744923353195,
-0.22718210518360138,
-0.06906503438949585,
-0.05510633438825607,
0.27751070261001587,
0.3193070888519287,
-0.23359113931655884,
0.05177595466375351,
0.18533754348754883,
0.4330138862133026,
-0.3891707956790924,
-0.15676021575927734,
0.32066816091537476,
-0.2123526930809021,
0.13802555203437805,
-0.07053259015083313,
-0.047109104692935944,
-0.06766580045223236,
-0.41317105293273926,
-0.08138275891542435,
-0.3076455891132355,
-0.019303426146507263,
0.01583859696984291,
-0.05172333866357803,
-0.16884773969650269,
-0.3216547966003418,
0.1985134482383728,
-0.05723825842142105,
0.15463082492351532,
0.3466908633708954,
-0.07777466624975204,
0.2024635225534439,
-0.00012820749543607235,
-0.18303349614143372,
0.08523431420326233,
-0.06605377048254013,
-0.2778264284133911,
-0.10433551669120789,
-0.12224646657705307,
-0.09217701107263565,
-0.18749724328517914,
-0.19217026233673096,
0.17320919036865234,
0.013911229558289051,
0.22943557798862457,
-0.3430970013141632,
0.48867297172546387,
0.112787626683712,
-0.05097385123372078,
0.06581494212150574,
-0.08223673701286316,
0.04041321575641632,
0.4733760356903076,
0.42200708389282227,
-0.03351394087076187,
-0.2560858726501465,
0.5853219032287598,
-0.2236120104789734,
-0.05611986666917801,
0.3167015314102173,
-0.06406769901514053,
-0.01255417987704277,
0.269036203622818,
0.006931961514055729,
-0.1276347041130066,
-0.27821585536003113,
-0.15969622135162354,
0.6687788963317871,
-0.17962145805358887,
-0.316980242729187,
-0.5546554327011108,
-0.35928311944007874,
0.09457549452781677,
-0.25106897950172424,
-0.46919482946395874,
0.030872797593474388,
-0.15246394276618958,
-0.05949566140770912,
-0.8480559587478638,
-0.07252447307109833,
-0.35028719902038574,
0.38336050510406494,
-0.16569030284881592,
0.15732699632644653,
0.23634538054466248,
0.219387024641037,
0.12542051076889038,
-0.2635752558708191,
-0.11692618578672409,
-0.1893375664949417,
0.20127330720424652,
0.48655566573143005,
-0.06219670549035072,
-0.3287475109100342,
0.06573657691478729,
-0.045490287244319916,
0.5274834036827087,
0.01783299632370472,
0.0014927024021744728,
0.1767750382423401,
-0.14487208425998688,
-0.05632647126913071,
-0.02902667224407196,
0.012923197820782661,
0.0860029011964798,
0.5244879126548767,
0.18368995189666748,
-0.07108533382415771,
-0.07344026863574982,
0.37615570425987244,
0.0010369436349719763,
-0.19391272962093353,
-0.13754470646381378,
0.2832212448120117,
-0.15395480394363403,
0.16063691675662994,
-0.07123268395662308,
-0.21176768839359283,
-0.27804356813430786,
-0.01610323041677475,
0.07048916816711426,
0.107395239174366,
-0.044526103883981705,
-0.12050849944353104,
0.12252311408519745,
0.10432670265436172,
0.034272633492946625,
-0.0758775845170021,
0.033537641167640686,
-0.17915812134742737,
-0.366987019777298,
0.11221981048583984,
0.3516438901424408,
0.12530189752578735,
0.05581288039684296,
-0.09146842360496521,
0.022624798119068146,
0.36126527190208435,
-0.033288709819316864,
-0.06956630945205688,
0.4820077121257782,
-0.10843019187450409,
-0.27386781573295593,
0.11369913071393967,
0.06542252004146576,
0.16287821531295776,
-0.3124421238899231,
0.18070073425769806,
-0.5805317759513855,
-0.4811041057109833,
0.3143526017665863,
0.024119405075907707,
0.05567076802253723,
-0.012737065553665161,
-0.21115726232528687,
0.43948182463645935,
0.39324891567230225,
-0.3599758446216583,
0.009745307266712189,
-0.4304397702217102,
-0.3189188241958618,
-0.040207717567682266,
0.19840052723884583,
0.40124833583831787,
-0.07792499661445618,
-0.13918378949165344,
-0.06530047208070755,
0.2619438171386719,
0.25371053814888,
0.2722935080528259,
-0.36929574608802795,
0.32957932353019714,
-0.03301441669464111,
0.014165140688419342,
0.5044763684272766,
-0.1357092708349228,
-0.07615386694669724,
0.4683813750743866,
-0.10219617933034897,
0.16582661867141724,
-0.033542998135089874,
-0.08392447978258133,
0.67219078540802,
-0.3023919463157654,
0.5716989040374756,
0.46120685338974,
-0.26157841086387634,
0.2165636420249939,
0.0959380716085434,
-0.2506919205188751,
0.05717065930366516,
0.05973726138472557,
0.17809927463531494,
-0.1654476821422577,
-0.11076035350561142,
0.14697496592998505,
0.2859000563621521,
-0.2964670658111572,
0.16870883107185364,
-0.20559437572956085,
-0.3021274507045746,
0.0792604312300682,
-0.17635904252529144,
-0.21846431493759155,
-0.40427011251449585,
-0.0012161694467067719,
-0.22664952278137207,
-0.15669117867946625,
0.2583780586719513,
-0.3116946816444397,
0.347311794757843,
-0.025370586663484573,
0.05283711105585098,
-0.00558699294924736,
-0.07069076597690582,
0.03357555344700813,
0.12244623899459839,
0.057741228491067886,
-0.11514328420162201,
-0.34562811255455017,
0.008259529247879982,
0.15611352026462555,
0.0033232299610972404,
0.050349898636341095,
0.3568119406700134,
0.005824725143611431,
-0.23188991844654083,
0.21771284937858582,
0.02984052151441574,
-0.3160479962825775,
0.23201018571853638,
0.28617551922798157,
0.10133814811706543,
-0.06440320611000061,
-0.25764888525009155,
0.33167922496795654,
0.4543640613555908,
0.11829876899719238,
0.09732261300086975,
0.23502099514007568,
0.11910377442836761,
-0.21469131112098694,
-0.5587953925132751,
0.3671118915081024,
0.0026500262320041656,
0.5796785950660706,
0.17371128499507904,
0.04297410696744919,
-0.2740189731121063,
0.08381351828575134,
-0.4269854724407196,
-0.1542903482913971,
0.06994755566120148,
-0.12549994885921478,
0.017975665628910065,
-0.17768284678459167,
-0.0578424371778965,
0.12296786159276962,
0.29589661955833435,
-0.08652475476264954,
0.02534172683954239,
0.38998234272003174,
-0.055760256946086884,
-0.12436652928590775,
-0.1621280461549759,
0.07942996919155121,
0.2992252707481384,
0.17753982543945312,
0.07801171392202377,
-0.17081207036972046,
0.028387535363435745,
0.06303815543651581,
0.2288249433040619,
0.14428259432315826,
0.030530231073498726,
0.15636318922042847,
0.1670936942100525,
0.17812709510326385,
-0.029591169208288193,
-0.5074165463447571,
0.24095335602760315,
-0.03653274476528168,
-0.24412697553634644,
0.11465566605329514,
-0.07378141582012177,
-0.078758604824543,
-0.32045507431030273,
-0.37417900562286377,
0.23632818460464478,
-0.2455088049173355,
0.2917225956916809,
-0.09375858306884766,
-0.27943363785743713,
0.32887694239616394,
0.4729541838169098,
0.3735395073890686,
0.06700380146503448,
-0.23653264343738556,
-0.09402061253786087,
-0.253849059343338,
-0.007524743676185608,
-0.09843003749847412,
0.06699205189943314,
-0.2963266670703888,
0.310285359621048,
0.04911442846059799,
-0.059043146669864655,
-0.44378700852394104,
-0.3047182559967041,
-0.031240738928318024,
-0.17081452906131744,
-0.08168281614780426,
0.45613548159599304,
0.09469352662563324,
-0.1012781485915184,
-0.24396155774593353,
0.11658354848623276,
-0.2921508252620697,
0.03310789167881012,
0.0019353274255990982,
0.08839797228574753,
-0.01658596284687519,
-0.01040075533092022,
-0.10248643904924393,
-0.031077610328793526,
-0.109534353017807,
0.2773320972919464,
-0.3038093149662018,
0.15100440382957458,
0.10065142810344696,
0.237259641289711,
-0.04022548720240593,
-0.12264886498451233,
-0.2176584005355835,
0.2773085832595825,
-0.05705026537179947,
0.16449281573295593,
-0.31484347581863403,
-0.08042924106121063,
-0.35587942600250244,
0.008024200797080994,
-0.47219550609588623,
0.8751975297927856,
-0.23290404677391052,
0.0979563370347023,
0.006102900952100754,
0.16518566012382507,
0.010406307876110077,
0.11346441507339478,
0.44505807757377625,
0.15658992528915405,
0.07446969300508499,
-0.08696293830871582,
0.0531916581094265,
0.08612227439880371,
0.046344492584466934,
0.025102004408836365,
0.15529805421829224,
0.3127288818359375,
0.14834167063236237,
1.0749412775039673,
0.4066043794155121,
-0.21696661412715912,
-0.1586935967206955,
-0.10326353460550308,
-0.11727380752563477,
-0.11194693297147751,
-0.1229797825217247,
0.18623404204845428,
-0.10867369174957275,
0.04464133083820343,
0.2721089720726013,
-0.01084732636809349,
-0.3270237147808075,
0.10429888963699341,
0.30220991373062134,
-0.06965268403291702,
-0.3931073546409607,
0.41120705008506775,
-0.29238155484199524,
0.32316118478775024,
-0.009375343099236488,
0.018236003816127777,
-0.43178191781044006,
-0.05276581645011902,
0.1772792935371399,
-0.021826595067977905,
0.5039934515953064,
-0.00043751622433774173,
-0.21706919372081757,
-0.1989750862121582,
-0.23174941539764404,
0.24210809171199799,
0.30343112349510193,
-0.10309984534978867,
-0.018444273620843887,
-0.26298362016677856,
-0.18549372255802155,
0.04440215229988098,
0.682259738445282,
-0.4207904636859894,
-0.02353588491678238,
-0.058704737573862076,
-0.10079006850719452,
-0.35383859276771545,
-0.005699537694454193,
-0.21462246775627136,
0.061453163623809814,
-0.01859370991587639,
0.542069673538208,
-0.3696390688419342,
-0.10545326769351959,
0.49965330958366394,
0.2015978991985321,
0.02920287474989891,
0.2182331532239914,
0.34422704577445984,
0.06268244981765747,
-0.26905155181884766,
0.04282793030142784,
0.06184039264917374,
-0.12427940219640732,
-0.03765317052602768,
-0.125259131193161,
-0.2955958843231201,
0.18935626745224,
0.18369066715240479,
0.033655982464551926,
0.04841575771570206,
0.22265221178531647,
0.30569568276405334,
-0.15970222651958466,
-0.01877506822347641,
0.5131601691246033,
-0.04892352223396301,
-0.5048862099647522,
-0.2913343906402588,
-0.30845776200294495,
0.060486774891614914,
0.43030688166618347,
0.3761095404624939,
0.0962701067328453,
-0.16764146089553833,
0.10003527998924255,
0.3084881007671356,
-0.23458030819892883,
0.2947371304035187,
0.1828985959291458,
0.02572406828403473,
-0.24154502153396606,
-0.6020057201385498,
0.26224231719970703,
0.31423914432525635,
-0.18632987141609192,
0.47213417291641235,
-0.14961354434490204,
-0.47981199622154236,
0.4604502320289612,
0.21560871601104736,
0.7913635969161987,
-0.07528293132781982,
0.42724645137786865,
0.052143413573503494,
0.321988046169281,
0.005878429859876633,
-0.3096718192100525,
0.19158150255680084,
-0.03361502289772034,
0.049166806042194366,
-0.036414869129657745,
0.07955785095691681,
-0.020145520567893982,
0.346996009349823,
-0.34408244490623474,
0.14373987913131714,
0.1949300616979599,
0.04612294211983681,
-0.14024604856967926,
-0.1863608956336975,
0.14658667147159576,
-0.449414998292923,
0.2331826537847519,
-0.06417108327150345,
0.2282530963420868,
0.03234251216053963,
-0.06661297380924225,
-0.19159115850925446,
-0.009883146733045578,
-0.15791037678718567,
-0.421866238117218,
-0.18532869219779968,
-0.4894324243068695,
0.1597474217414856,
-0.15000194311141968,
-0.350614070892334,
0.10166455805301666,
0.31872183084487915,
-0.034713275730609894,
0.2399654984474182,
-0.00037417933344841003,
-0.09022866189479828,
0.10997530817985535,
0.11469167470932007,
-0.13494127988815308,
-0.4417131841182709,
0.3896438777446747,
0.03805570304393768,
0.11160483211278915,
0.12353066354990005,
-0.02296685241162777,
0.012907925993204117,
-0.251973956823349,
-0.09735855460166931,
0.5527220964431763,
-0.15180470049381256,
0.07386051118373871,
0.427523136138916,
-0.20104292035102844,
-0.15764416754245758,
-0.08793655037879944,
-0.09589590132236481,
-0.04409567639231682,
0.4851016402244568,
-0.1949033886194229,
-0.02487131580710411,
0.09599894285202026,
0.2647048234939575,
-0.176613450050354,
-0.20134690403938293,
0.2617541253566742,
0.0356641449034214,
-0.008654942736029625,
-0.2109428346157074,
0.43345677852630615,
0.32323309779167175,
-0.5678306818008423,
0.1925443559885025,
-0.12283612042665482,
0.1622711569070816,
0.21483436226844788,
0.556185781955719,
0.01891685649752617,
0.1946837157011032,
-0.07931438833475113,
-0.16702595353126526,
-0.06471819430589676,
0.09959246963262558,
0.1461920440196991,
0.3351042866706848,
-0.22189095616340637,
0.1050134152173996,
0.11110559105873108,
0.23396870493888855,
-0.14644396305084229,
0.15376172959804535,
0.1523093283176422,
0.36492741107940674,
-0.16950522363185883,
0.1577090471982956,
-0.32026544213294983,
0.09940360486507416,
-0.13089774549007416,
0.07631487399339676,
-0.07471337169408798,
-0.0521821454167366,
-0.14783936738967896,
0.19803306460380554,
-0.013221453875303268,
-0.006733385846018791,
0.23094427585601807,
-0.007066000252962112,
-0.1956615298986435,
-0.45302310585975647,
0.40370240807533264,
-0.053220152854919434,
-0.16672970354557037,
0.021341834217309952,
0.3260840177536011,
0.18864133954048157,
0.046208836138248444,
0.21469135582447052,
0.0915469080209732,
0.180740088224411,
-0.14526617527008057,
0.1620865762233734,
0.046580247581005096,
-0.2829187512397766,
0.03813691437244415,
0.23885372281074524,
0.4492778778076172,
0.1272946447134018,
0.4130897521972656,
-0.112068772315979,
-0.26441696286201477,
0.2797030210494995,
0.06494034826755524,
0.31995460391044617,
-0.24079978466033936,
0.04064580053091049,
0.2759260833263397,
0.05518711358308792,
-0.16617999970912933,
-0.004198320675641298,
0.11943283677101135,
-0.10929962247610092,
0.18780812621116638,
0.15542498230934143,
-0.3166789412498474,
-0.1522832065820694,
-0.03542272746562958,
-0.11643002182245255,
0.03904585912823677,
-0.22554229199886322,
0.14276333153247833,
0.5783993005752563,
-0.0256982259452343,
0.0035857148468494415,
-0.337791383266449,
0.20785127580165863,
0.30806854367256165,
-0.1513802856206894,
0.03178434818983078,
0.6774346232414246,
0.2314920425415039,
0.0745759829878807,
0.352064311504364,
-0.2667868435382843,
0.04366413876414299,
0.10501989722251892,
0.04881851375102997,
0.4545578062534332,
0.2442041039466858,
0.004077903926372528,
-0.07322987914085388,
-0.23706340789794922,
-0.15407058596611023,
0.36489802598953247,
0.1767338514328003,
-0.3124370574951172,
-0.1710834950208664,
-0.16174501180648804,
0.2002425193786621,
-0.061111874878406525,
-0.21406492590904236,
-0.010078273713588715,
0.6305123567581177,
0.1756519228219986,
0.4212469458580017,
0.03688855469226837,
-0.2943114638328552,
-0.23498141765594482,
0.47131702303886414,
-0.2673819363117218,
-0.12625747919082642,
0.13094685971736908,
-0.0781082808971405,
-0.04031539335846901,
0.3186540901660919,
0.36821937561035156,
0.23989765346050262,
-0.19706572592258453,
0.4103493392467499,
-0.36227816343307495,
0.1330970674753189,
0.030398428440093994,
0.21299949288368225,
0.06600501388311386,
-0.25456705689430237,
0.3269319534301758,
-0.09840881824493408,
-0.00806360226124525,
0.1757562756538391,
-0.06430459022521973,
-0.03218808025121689,
-0.1354920119047165,
0.069809190928936,
0.2563367486000061,
-0.2120690941810608,
-0.011336125433444977,
0.12243273854255676,
-0.045616015791893005,
0.163227841258049,
0.24274064600467682,
-0.33653581142425537,
0.05063957720994949,
0.21278245747089386,
-0.0005316510796546936,
0.06123347952961922,
0.5081930160522461,
0.11963856965303421,
0.046973779797554016,
-0.3565024137496948,
-0.3246789574623108,
-0.07016404718160629,
-0.2811759114265442,
-0.2140503227710724,
0.08959806710481644,
-0.032756976783275604,
0.09002600610256195,
0.1760784536600113,
0.3353974223136902,
-0.017670005559921265,
-0.6501463055610657,
-0.13598628342151642,
0.6674083471298218,
-0.15390659868717194,
-0.09997522830963135,
0.19104346632957458,
0.16517409682273865,
0.09857094287872314,
-0.3816351294517517,
0.149269700050354,
-0.1842813789844513,
-0.16600486636161804,
-0.0539839044213295,
0.14337824285030365,
0.28512829542160034,
0.04821987450122833,
0.16433438658714294,
0.1412639617919922,
0.09115393459796906,
0.06031186878681183,
0.2097204476594925,
-0.1240127682685852,
0.1957079917192459,
0.0016574393957853317,
0.1437952220439911,
0.14979638159275055,
0.008001163601875305,
-0.3051396608352661,
-0.3161022663116455,
-0.017415713518857956,
-0.39853453636169434,
0.30308687686920166,
0.014469526708126068,
-0.19119176268577576,
-0.030050303786993027,
-0.03842824697494507,
-0.006872928701341152,
0.11978678405284882,
0.4581581652164459,
-0.1326553374528885,
-0.14479687809944153,
0.044707149267196655,
-0.29863104224205017,
0.3907764256000519,
-0.567086935043335,
-0.3139791786670685,
-0.44908154010772705,
0.1355701982975006,
-0.36799079179763794,
0.2406047135591507,
-0.3750249147415161,
-0.11693761497735977,
0.42492109537124634,
-0.052497103810310364,
-0.3907637894153595,
0.19690106809139252,
0.10747978091239929,
-0.28975483775138855,
-0.2804975211620331,
0.36300283670425415,
0.06197083741426468,
-0.24553272128105164,
-0.14760634303092957,
-0.6292206645011902
] |
https://github.com/huggingface/datasets/issues/359 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures | Hi, it depends on what it is in your `dataset_builder.py` file. Can you share it?
If you are just loading `json` files, you can also directly use the `json` script (which will find the schema/features from your JSON structure):
```python
from nlp import load_dataset
ds = load_dataset("json", data_files=rel_datafiles)
``` | I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
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
~/.virtualenvs/inv-text2struct/lib/python3.6/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 ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well. | 49 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures
I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
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
~/.virtualenvs/inv-text2struct/lib/python3.6/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 ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well.
Hi, it depends on what it is in your `dataset_builder.py` file. Can you share it?
If you are just loading `json` files, you can also directly use the `json` script (which will find the schema/features from your JSON structure):
```python
from nlp import load_dataset
ds = load_dataset("json", data_files=rel_datafiles)
``` | [
-0.32604560256004333,
0.3610110282897949,
-0.06005508452653885,
0.5487008094787598,
0.04070312902331352,
-0.14007410407066345,
0.3431127667427063,
0.4284076392650604,
0.21433204412460327,
-0.11397014558315277,
-0.04363232105970383,
0.33327144384384155,
0.23643997311592102,
0.058703720569610596,
-0.2658623456954956,
-0.16561636328697205,
-0.01963183283805847,
0.29372239112854004,
-0.12462453544139862,
0.34829598665237427,
-0.2225886583328247,
0.452397882938385,
-0.10002481937408447,
0.13126718997955322,
0.01399112306535244,
-0.08402317762374878,
0.055125415325164795,
0.36302024126052856,
-0.16610513627529144,
-0.5221459269523621,
0.2616773247718811,
-0.2975650131702423,
-0.10711207240819931,
0.4265519082546234,
-0.00011217652354389429,
0.28368568420410156,
0.27960270643234253,
-0.1050381138920784,
-0.3678910732269287,
-0.05632004141807556,
0.021908514201641083,
-0.1897953748703003,
0.08071619272232056,
-0.18023625016212463,
0.20297756791114807,
-0.27336636185646057,
-0.3524166941642761,
-0.1409694403409958,
0.5280259847640991,
0.10369782894849777,
0.16150759160518646,
-0.14496605098247528,
0.3078526556491852,
-0.008729815483093262,
0.0976143628358841,
-0.012884780764579773,
-0.1341838836669922,
0.3496537208557129,
-0.2746611535549164,
0.16067540645599365,
-0.177313894033432,
0.03397108241915703,
-0.14739066362380981,
-0.03638586774468422,
0.06702610105276108,
0.03534615412354469,
0.15725892782211304,
0.024221712723374367,
0.006246872246265411,
-0.008396118879318237,
0.1443321853876114,
-0.12768778204917908,
-0.07597305625677109,
-0.23981142044067383,
-0.2881833016872406,
-0.30987584590911865,
0.2149096429347992,
0.10423637926578522,
-0.0598926842212677,
0.10175731778144836,
0.316592812538147,
-0.25795093178749084,
-0.11959408968687057,
0.00878053531050682,
0.09315820038318634,
0.32947838306427,
-0.0843704491853714,
0.06528870761394501,
0.22180306911468506,
-0.021018721163272858,
0.21372351050376892,
-0.013495471328496933,
-0.5275073051452637,
0.0693260207772255,
-0.02797907218337059,
0.009123586118221283,
-0.19335851073265076,
-0.6268090009689331,
-0.00887843407690525,
0.10316538065671921,
0.5481135249137878,
-0.014283780008554459,
0.1519879400730133,
0.409203439950943,
0.2554834187030792,
-0.1661251336336136,
0.2643890380859375,
-0.030301891267299652,
0.041752416640520096,
0.25146394968032837,
0.11114539206027985,
-0.14347055554389954,
-0.024957843124866486,
-0.10384970158338547,
-0.34251976013183594,
-0.06812908500432968,
0.13328514993190765,
0.018102597445249557,
-0.23505337536334991,
0.044757820665836334,
-0.4381098449230194,
-0.10387799143791199,
0.29347071051597595,
0.24562302231788635,
0.2248564064502716,
0.23317575454711914,
0.18689695000648499,
0.29196155071258545,
0.020270632579922676,
-0.20263300836086273,
-0.12423084676265717,
0.10525056719779968,
-0.10447444021701813,
0.11084114015102386,
0.21319891512393951,
0.11135372519493103,
0.29969510436058044,
0.12882089614868164,
-0.34201598167419434,
-0.34042128920555115,
0.12201730906963348,
-0.2721671760082245,
0.02830328792333603,
0.2411942034959793,
0.07982376217842102,
-0.18102295696735382,
0.1847558468580246,
-0.27733659744262695,
-0.05758365988731384,
0.072074756026268,
-0.3603481650352478,
-0.3543907105922699,
-0.171597421169281,
0.15046966075897217,
0.003692168742418289,
0.15749648213386536,
-0.4513109624385834,
-0.042610298842191696,
0.25599169731140137,
-0.3391973078250885,
0.11380477994680405,
-0.16392800211906433,
-0.18046364188194275,
-0.1676003485918045,
0.12403225153684616,
0.08145635575056076,
-0.1796024888753891,
-0.07172215729951859,
-0.28415748476982117,
-0.0085383839905262,
0.20895902812480927,
0.1984407901763916,
-0.15026193857192993,
0.5191946029663086,
-0.2032294124364853,
0.5580468773841858,
0.5535893440246582,
-0.1875409632921219,
-0.20541541278362274,
0.5373871922492981,
0.12657798826694489,
-0.035294413566589355,
0.13713742792606354,
-0.40544378757476807,
0.2556646466255188,
-0.14929941296577454,
0.023911040276288986,
0.45444345474243164,
0.12287864089012146,
-0.0366678461432457,
-0.05330796167254448,
0.059170372784137726,
0.09457150846719742,
-0.05331585556268692,
-0.4166422188282013,
-0.26386332511901855,
-0.11777449399232864,
0.37901797890663147,
0.25062328577041626,
-0.08870160579681396,
-0.03872881829738617,
0.17678919434547424,
0.001402776688337326,
0.006782345473766327,
-0.0009075303096324205,
-0.08420555293560028,
-0.5144614577293396,
0.025190114974975586,
-0.3117576837539673,
-0.09111437201499939,
-0.37475669384002686,
0.14020492136478424,
-0.10324414819478989,
0.3250378966331482,
-0.06095113977789879,
-0.28534287214279175,
0.22181496024131775,
0.05768192559480667,
-0.22180035710334778,
-0.3171211779117584,
-0.03517613187432289,
0.09715619683265686,
-0.05429521203041077,
0.3626120090484619,
-0.09931701421737671,
0.4648391306400299,
0.08691384643316269,
-0.2966182231903076,
0.046638913452625275,
0.1641552746295929,
0.03551197797060013,
-0.25894787907600403,
-0.18099182844161987,
0.4646162688732147,
0.4503343403339386,
-0.14781586825847626,
-0.36484479904174805,
-0.35878151655197144,
0.006906101480126381,
0.10589717328548431,
0.06397669017314911,
0.0289979949593544,
0.14352157711982727,
-0.32140427827835083,
0.008041370660066605,
0.3127242922782898,
-0.01233666017651558,
0.4519156217575073,
0.08119654655456543,
-0.026239367201924324,
0.19771750271320343,
-0.021795304492115974,
0.16126078367233276,
-0.33993762731552124,
-0.10206110775470734,
-0.019432127475738525,
-0.05101250112056732,
0.10630960762500763,
0.0067976415157318115,
0.06671594083309174,
0.31584876775741577,
0.15521857142448425,
0.10251829028129578,
-0.03635875880718231,
-0.06004912406206131,
-0.19645673036575317,
0.17851266264915466,
0.08895547688007355,
0.43536490201950073,
0.03642496466636658,
-0.07352972030639648,
0.04256714507937431,
0.12563109397888184,
-0.09140481799840927,
0.35487431287765503,
0.03016909584403038,
0.44495949149131775,
0.3242438733577728,
0.20339764654636383,
-0.07429500669240952,
-0.3939177393913269,
-0.3832813501358032,
0.027645086869597435,
0.11821528524160385,
-0.258077472448349,
0.23963157832622528,
-0.27329254150390625,
0.13113626837730408,
-0.07231234014034271,
-0.031521186232566833,
-0.10273650288581848,
-0.3991471827030182,
-0.29672253131866455,
0.36995089054107666,
-0.29137909412384033,
0.017347248271107674,
-0.12719771265983582,
0.08274145424365997,
0.12979573011398315,
-0.11010227352380753,
-0.3194957673549652,
-0.19227372109889984,
-0.108882836997509,
0.013910405337810516,
0.35675081610679626,
0.2639370560646057,
-0.13117966055870056,
0.2827698886394501,
-0.045187078416347504,
-0.04897107928991318,
-0.3095550835132599,
0.32752570509910583,
-0.24310709536075592,
-0.2856096029281616,
0.2199109047651291,
0.18156778812408447,
0.16194459795951843,
-0.6107799410820007,
0.18531914055347443,
0.008888984099030495,
-0.29334086179733276,
0.2972555160522461,
0.22300167381763458,
-0.002980924444273114,
-0.15258456766605377,
-0.13411614298820496,
-0.13989892601966858,
-0.5762498378753662,
0.45816487073898315,
0.13572639226913452,
0.25816571712493896,
-0.08256452530622482,
-0.06901413202285767,
0.010609517805278301,
-0.2777146100997925,
-0.08370576798915863,
0.027705460786819458,
0.12493130564689636,
0.10029737651348114,
-0.36196208000183105,
0.05759219452738762,
0.025503244251012802,
0.028164204210042953,
0.5084937810897827,
-0.13297703862190247,
-0.42219775915145874,
0.44984710216522217,
0.11961841583251953,
-0.0777381956577301,
-0.17622798681259155,
-0.385322242975235,
0.06965918093919754,
0.39604392647743225,
-0.00833328440785408,
-0.11379780620336533,
0.08386041224002838,
0.22985059022903442,
-0.0317380353808403,
0.17290928959846497,
-0.11634122580289841,
0.559753954410553,
-0.08006708323955536,
0.26501497626304626,
0.056767191737890244,
0.00759347528219223,
0.22374343872070312,
0.09086191654205322,
-0.03709745034575462,
-0.2848675847053528,
-0.10190656781196594,
-0.1746467649936676,
-0.24925172328948975,
0.07210477441549301,
0.1653670370578766,
-0.05193302780389786,
-0.27202826738357544,
-0.07211192697286606,
-0.1612122505903244,
-0.17559638619422913,
-0.36241844296455383,
0.30117541551589966,
-0.3059145510196686,
0.0879909098148346,
-0.3111077845096588,
-0.08411607146263123,
0.04385249316692352,
0.05807259678840637,
-0.05366167426109314,
-0.277752161026001,
0.06599090993404388,
-0.11606323719024658,
0.050068359822034836,
0.16612079739570618,
-0.2029542624950409,
0.14185993373394012,
-0.03798331692814827,
0.29893672466278076,
0.023365873843431473,
-0.17101427912712097,
-0.06429912149906158,
-0.16985705494880676,
0.14798593521118164,
0.0392509326338768,
0.2059403955936432,
0.23481988906860352,
-0.11641552299261093,
-0.2022816389799118,
-0.0036495253443717957,
-0.23494049906730652,
0.4400179088115692,
0.593515157699585,
0.3597714900970459,
-0.35149991512298584,
-0.1708204299211502,
0.35455322265625,
-0.14836262166500092,
-0.09552720189094543,
-0.12168461829423904,
0.06972652673721313,
-0.2168041169643402,
-0.22905996441841125,
0.050210047513246536,
0.25379523634910583,
0.3231969177722931,
0.15320013463497162,
-0.14229150116443634,
-0.23101265728473663,
-0.44776010513305664,
-0.08060160279273987,
0.142667755484581,
0.19658192992210388,
-0.5051637291908264,
0.1015685498714447,
-0.1520393192768097,
0.21745017170906067,
0.49848899245262146,
0.7618776559829712,
0.2852303087711334,
-0.29082828760147095,
0.2480534315109253,
-0.017335589975118637,
0.42424312233924866,
0.11943718045949936,
-0.15316203236579895,
0.13031746447086334,
-0.20929808914661407,
0.05224139988422394,
0.15178003907203674,
-0.26083672046661377,
0.39530321955680847,
-0.16864313185214996,
-0.276057630777359,
-0.2417631596326828,
0.49910464882850647,
-0.04355624318122864,
-0.012494891881942749,
-0.07391203939914703,
-0.24263440072536469,
-0.3518020510673523,
0.6364926695823669,
0.08899529278278351,
0.5242307782173157,
0.477663516998291,
0.06044992431998253,
0.5830128192901611,
-0.15524208545684814,
0.28221404552459717,
-0.7763884663581848,
-0.023523453623056412,
-0.3103730380535126,
0.13246412575244904,
-0.021710872650146484,
-0.22958606481552124,
0.23280122876167297,
0.3454686999320984,
-0.2449902892112732,
0.006512181833386421,
0.0266152024269104,
0.06391376256942749,
-0.03259655088186264,
0.3628297448158264,
-0.1441185027360916,
-0.2786218225955963,
-0.40632379055023193,
0.10320021212100983,
0.05685332790017128,
-0.3126537501811981,
0.03033251315355301,
-0.3509734272956848,
-0.08654823899269104,
-0.2357482612133026,
-0.26396846771240234,
0.4338124096393585,
-0.0716572105884552,
0.38862019777297974,
0.22395695745944977,
-0.0562000498175621,
0.36155059933662415,
-0.09915286302566528,
-0.1680009663105011,
-0.07536216080188751,
0.029198771342635155,
0.15066330134868622,
-0.027261793613433838,
-0.2743920683860779,
-0.021823788061738014,
0.11915859580039978,
0.1346258521080017,
-0.1488005518913269,
0.03841807693243027,
-0.024873346090316772,
-0.13940991461277008,
-0.37188708782196045,
0.27631011605262756,
0.20763030648231506,
-0.431410014629364,
-0.3709968030452728,
-0.19433054327964783,
0.11563308537006378,
-0.1496705561876297,
-0.09347643703222275,
0.11809143424034119,
-0.001550421118736267,
-0.27656060457229614,
-0.3599795699119568,
-0.07085901498794556,
-0.2900591790676117,
0.05386438965797424,
0.35441723465919495,
0.22163358330726624,
0.04316139966249466,
0.6239026784896851,
0.2414461225271225,
-0.0021352656185626984,
-0.321176677942276,
0.08172135800123215,
0.3431144654750824,
-0.4442771077156067,
0.3989848792552948,
-0.2075759619474411,
-0.16462016105651855,
0.12205400317907333,
0.09199841320514679,
0.22589968144893646,
0.16715934872627258,
-0.24596793949604034,
-0.5066790580749512,
-0.09202900528907776,
0.33023178577423096,
-0.26218804717063904,
-0.02449069544672966,
-0.13785821199417114,
0.22089937329292297,
-0.3556540310382843,
0.2872302830219269,
-0.24341578781604767,
0.22912700474262238,
-0.01726294867694378,
-0.048538073897361755,
-0.05816300958395004,
-0.13160264492034912,
0.10557010769844055,
0.0473976694047451,
0.14014804363250732,
0.1752711981534958,
0.017603803426027298,
-0.16238507628440857,
-0.11380532383918762,
0.13337570428848267,
0.16780433058738708,
0.1552288830280304,
-0.29862692952156067,
0.11635962128639221,
-0.1770164519548416,
0.03772273659706116,
0.13287955522537231,
-0.39393770694732666,
-0.054999642074108124,
0.13743680715560913,
0.4441261291503906,
0.2775047719478607,
-0.09676583856344223,
0.14930720627307892,
-0.12397240102291107,
0.4012754559516907,
-0.09297198802232742,
0.2098112404346466,
-0.15303058922290802,
0.001142546534538269,
0.035073645412921906,
0.1986958086490631,
-0.04425568878650665,
0.09521368145942688,
0.5684469938278198,
-0.1944066733121872,
-0.060728520154953,
-0.5084899663925171,
0.29555797576904297,
0.5219069719314575,
-0.0011156648397445679,
-0.042270056903362274,
-0.2038494348526001,
0.16712448000907898,
-0.16145870089530945,
-0.03935764357447624,
0.31965434551239014,
0.016418851912021637,
-0.09832867980003357,
0.25969502329826355,
0.09500761330127716,
-0.037849556654691696,
-0.2987877130508423,
0.1304665505886078,
0.18332931399345398,
0.07271712273359299,
0.20181816816329956,
0.6401516795158386,
-0.325771689414978,
0.049872323870658875,
0.37964943051338196,
0.11830383539199829,
0.6063776016235352,
0.28971636295318604,
0.12442854046821594,
0.0713099017739296,
0.4207839071750641,
0.052086181938648224,
0.07744956761598587,
-0.2015165537595749,
-0.48151856660842896,
0.09029834717512131,
0.2912350296974182,
-0.14242857694625854,
-0.11190961301326752,
0.3422735929489136,
0.14414441585540771,
-0.12927845120429993,
-0.20359446108341217,
0.39802858233451843,
-0.16030701994895935,
-0.20408859848976135,
-0.2676367163658142,
-0.1337142288684845,
-0.6330995559692383,
-0.18158656358718872,
-0.08125191926956177,
-0.024372950196266174,
-0.09150305390357971,
0.11156178265810013,
0.08362628519535065,
-0.2546157240867615,
0.1198744848370552,
0.049474116414785385,
-0.06789498776197433,
-0.2596524655818939,
0.46796900033950806,
0.09139613062143326,
0.03727518394589424,
0.04090669006109238,
0.1487785130739212,
0.4960680902004242,
0.2502409815788269,
-0.26351532340049744,
-0.21823813021183014,
-0.19870738685131073,
-0.1470845490694046,
-0.017943307757377625,
0.2585282325744629,
0.0494263730943203,
0.14893990755081177,
0.3585212528705597,
0.11411070823669434,
-0.1599733978509903,
0.04384039342403412,
0.1822645366191864,
0.08146996796131134,
0.1857507973909378,
0.6384842395782471,
-0.04779423773288727,
-0.1213487908244133,
0.22430673241615295,
-0.13197895884513855,
-0.2510053515434265,
-0.6355643272399902,
0.29188188910484314,
0.002624691231176257,
0.19698649644851685,
0.07607089728116989,
0.07502388954162598,
0.10198907554149628,
0.6383277177810669,
0.058626916259527206,
0.08993645012378693,
-0.10363059490919113,
-0.1408047080039978,
-0.03658656030893326,
-0.030020512640476227,
-0.37302836775779724,
0.010407144203782082,
0.17384451627731323,
0.09668135643005371,
0.16798828542232513,
0.2986496686935425,
-0.025165513157844543,
0.29137593507766724,
-0.2197558879852295,
-0.11883313953876495,
-0.48435652256011963,
0.06875886768102646,
0.2037041336297989,
0.09280645847320557,
-0.12021272629499435,
-0.1476222574710846,
0.06844890117645264,
0.2533194422721863,
0.023962274193763733,
0.09037594497203827,
-0.2485010176897049,
0.11686316132545471,
-0.32231253385543823,
0.17504435777664185,
0.0504138320684433,
0.11403407156467438,
-0.04940509796142578,
-0.18966639041900635,
-0.18875232338905334,
-0.5733943581581116,
-0.12193525582551956,
0.46866661310195923,
0.12841016054153442,
0.2680286765098572,
-0.15977342426776886,
0.11881045997142792,
-0.2943058907985687,
0.12106393277645111,
-0.4128645062446594,
0.038887765258550644,
-0.3458365797996521,
0.26152700185775757,
-0.1557043343782425,
0.2354157418012619,
-0.10956188291311264,
-0.06789389997720718,
-0.20193037390708923,
0.09509191662073135,
-0.2074781358242035,
-0.3111895024776459,
0.37605834007263184,
0.10880279541015625,
-0.2328539341688156,
0.46432963013648987,
0.1188010424375534,
0.11658404767513275,
0.23164886236190796,
-0.398322194814682,
-0.0301201194524765,
0.2543451189994812,
-0.18919986486434937,
-0.32227256894111633,
-0.03069494664669037,
0.15509852766990662,
-0.13845470547676086,
-0.09622779488563538,
0.15036620199680328,
0.04378754273056984,
-0.1663365662097931,
-0.1757200062274933,
0.01381586492061615
] |
https://github.com/huggingface/datasets/issues/359 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures | The behavior I'm seeing is from the `json` script.
I hacked this together to overcome the error with the `JSON` dataloader
```
class DatasetBuilder(hf_nlp.ArrowBasedBuilder):
BUILDER_CONFIG_CLASS = BuilderConfig
def _info(self):
return DatasetInfo()
def _split_generators(self, dl_manager):
""" We handle string, list and dicts in datafiles
"""
if isinstance(self.config.data_files, (str, list, tuple)):
files = self.config.data_files
if isinstance(files, str):
files = [files]
return [SplitGenerator(name=Split.TRAIN, gen_kwargs={"files": files})]
splits = []
for split_name in [Split.TRAIN, Split.VALIDATION, Split.TEST]:
if split_name in self.config.data_files:
files = self.config.data_files[split_name]
if isinstance(files, str):
files = [files]
splits.append(SplitGenerator(name=split_name, gen_kwargs={"files": files}))
return splits
def _prepare_split(self, split_generator):
fname = "{}-{}.arrow".format(self.name, split_generator.name)
fpath = os.path.join(self._cache_dir, fname)
writer = ArrowWriter(path=fpath)
generator = self._generate_tables(**split_generator.gen_kwargs)
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
writer.write_table(table)
num_examples, num_bytes = writer.finalize()
split_generator.split_info.num_examples = num_examples
split_generator.split_info.num_bytes = num_bytes
# this is where the error is coming from
# def parse_schema(schema, schema_dict):
# for field in schema:
# if pa.types.is_struct(field.type):
# schema_dict[field.name] = {}
# parse_schema(field.type, schema_dict[field.name])
# elif pa.types.is_list(field.type) and pa.types.is_struct(field.type.value_type):
# schema_dict[field.name] = {}
# parse_schema(field.type.value_type, schema_dict[field.name])
# else:
# schema_dict[field.name] = Value(str(field.type))
#
# parse_schema(writer.schema, features)
# self.info.features = Features(features)
def _generate_tables(self, files):
for i, file in enumerate(files):
pa_table = paj.read_json(
file
)
yield i, pa_table
```
So I basically just don't populate the `self.info.features` though this doesn't seem to cause any problems in my downstream applications.
The other workaround I was doing was to just use pyarrow.json to build a table and then to create the Dataset with its constructor or from_table methods. `load_dataset` has nice split logic, so I'd prefer to use that.
| I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
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
~/.virtualenvs/inv-text2struct/lib/python3.6/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 ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well. | 254 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures
I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
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
~/.virtualenvs/inv-text2struct/lib/python3.6/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 ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well.
The behavior I'm seeing is from the `json` script.
I hacked this together to overcome the error with the `JSON` dataloader
```
class DatasetBuilder(hf_nlp.ArrowBasedBuilder):
BUILDER_CONFIG_CLASS = BuilderConfig
def _info(self):
return DatasetInfo()
def _split_generators(self, dl_manager):
""" We handle string, list and dicts in datafiles
"""
if isinstance(self.config.data_files, (str, list, tuple)):
files = self.config.data_files
if isinstance(files, str):
files = [files]
return [SplitGenerator(name=Split.TRAIN, gen_kwargs={"files": files})]
splits = []
for split_name in [Split.TRAIN, Split.VALIDATION, Split.TEST]:
if split_name in self.config.data_files:
files = self.config.data_files[split_name]
if isinstance(files, str):
files = [files]
splits.append(SplitGenerator(name=split_name, gen_kwargs={"files": files}))
return splits
def _prepare_split(self, split_generator):
fname = "{}-{}.arrow".format(self.name, split_generator.name)
fpath = os.path.join(self._cache_dir, fname)
writer = ArrowWriter(path=fpath)
generator = self._generate_tables(**split_generator.gen_kwargs)
for key, table in utils.tqdm(generator, unit=" tables", leave=False):
writer.write_table(table)
num_examples, num_bytes = writer.finalize()
split_generator.split_info.num_examples = num_examples
split_generator.split_info.num_bytes = num_bytes
# this is where the error is coming from
# def parse_schema(schema, schema_dict):
# for field in schema:
# if pa.types.is_struct(field.type):
# schema_dict[field.name] = {}
# parse_schema(field.type, schema_dict[field.name])
# elif pa.types.is_list(field.type) and pa.types.is_struct(field.type.value_type):
# schema_dict[field.name] = {}
# parse_schema(field.type.value_type, schema_dict[field.name])
# else:
# schema_dict[field.name] = Value(str(field.type))
#
# parse_schema(writer.schema, features)
# self.info.features = Features(features)
def _generate_tables(self, files):
for i, file in enumerate(files):
pa_table = paj.read_json(
file
)
yield i, pa_table
```
So I basically just don't populate the `self.info.features` though this doesn't seem to cause any problems in my downstream applications.
The other workaround I was doing was to just use pyarrow.json to build a table and then to create the Dataset with its constructor or from_table methods. `load_dataset` has nice split logic, so I'd prefer to use that.
| [
-0.32604560256004333,
0.3610110282897949,
-0.06005508452653885,
0.5487008094787598,
0.04070312902331352,
-0.14007410407066345,
0.3431127667427063,
0.4284076392650604,
0.21433204412460327,
-0.11397014558315277,
-0.04363232105970383,
0.33327144384384155,
0.23643997311592102,
0.058703720569610596,
-0.2658623456954956,
-0.16561636328697205,
-0.01963183283805847,
0.29372239112854004,
-0.12462453544139862,
0.34829598665237427,
-0.2225886583328247,
0.452397882938385,
-0.10002481937408447,
0.13126718997955322,
0.01399112306535244,
-0.08402317762374878,
0.055125415325164795,
0.36302024126052856,
-0.16610513627529144,
-0.5221459269523621,
0.2616773247718811,
-0.2975650131702423,
-0.10711207240819931,
0.4265519082546234,
-0.00011217652354389429,
0.28368568420410156,
0.27960270643234253,
-0.1050381138920784,
-0.3678910732269287,
-0.05632004141807556,
0.021908514201641083,
-0.1897953748703003,
0.08071619272232056,
-0.18023625016212463,
0.20297756791114807,
-0.27336636185646057,
-0.3524166941642761,
-0.1409694403409958,
0.5280259847640991,
0.10369782894849777,
0.16150759160518646,
-0.14496605098247528,
0.3078526556491852,
-0.008729815483093262,
0.0976143628358841,
-0.012884780764579773,
-0.1341838836669922,
0.3496537208557129,
-0.2746611535549164,
0.16067540645599365,
-0.177313894033432,
0.03397108241915703,
-0.14739066362380981,
-0.03638586774468422,
0.06702610105276108,
0.03534615412354469,
0.15725892782211304,
0.024221712723374367,
0.006246872246265411,
-0.008396118879318237,
0.1443321853876114,
-0.12768778204917908,
-0.07597305625677109,
-0.23981142044067383,
-0.2881833016872406,
-0.30987584590911865,
0.2149096429347992,
0.10423637926578522,
-0.0598926842212677,
0.10175731778144836,
0.316592812538147,
-0.25795093178749084,
-0.11959408968687057,
0.00878053531050682,
0.09315820038318634,
0.32947838306427,
-0.0843704491853714,
0.06528870761394501,
0.22180306911468506,
-0.021018721163272858,
0.21372351050376892,
-0.013495471328496933,
-0.5275073051452637,
0.0693260207772255,
-0.02797907218337059,
0.009123586118221283,
-0.19335851073265076,
-0.6268090009689331,
-0.00887843407690525,
0.10316538065671921,
0.5481135249137878,
-0.014283780008554459,
0.1519879400730133,
0.409203439950943,
0.2554834187030792,
-0.1661251336336136,
0.2643890380859375,
-0.030301891267299652,
0.041752416640520096,
0.25146394968032837,
0.11114539206027985,
-0.14347055554389954,
-0.024957843124866486,
-0.10384970158338547,
-0.34251976013183594,
-0.06812908500432968,
0.13328514993190765,
0.018102597445249557,
-0.23505337536334991,
0.044757820665836334,
-0.4381098449230194,
-0.10387799143791199,
0.29347071051597595,
0.24562302231788635,
0.2248564064502716,
0.23317575454711914,
0.18689695000648499,
0.29196155071258545,
0.020270632579922676,
-0.20263300836086273,
-0.12423084676265717,
0.10525056719779968,
-0.10447444021701813,
0.11084114015102386,
0.21319891512393951,
0.11135372519493103,
0.29969510436058044,
0.12882089614868164,
-0.34201598167419434,
-0.34042128920555115,
0.12201730906963348,
-0.2721671760082245,
0.02830328792333603,
0.2411942034959793,
0.07982376217842102,
-0.18102295696735382,
0.1847558468580246,
-0.27733659744262695,
-0.05758365988731384,
0.072074756026268,
-0.3603481650352478,
-0.3543907105922699,
-0.171597421169281,
0.15046966075897217,
0.003692168742418289,
0.15749648213386536,
-0.4513109624385834,
-0.042610298842191696,
0.25599169731140137,
-0.3391973078250885,
0.11380477994680405,
-0.16392800211906433,
-0.18046364188194275,
-0.1676003485918045,
0.12403225153684616,
0.08145635575056076,
-0.1796024888753891,
-0.07172215729951859,
-0.28415748476982117,
-0.0085383839905262,
0.20895902812480927,
0.1984407901763916,
-0.15026193857192993,
0.5191946029663086,
-0.2032294124364853,
0.5580468773841858,
0.5535893440246582,
-0.1875409632921219,
-0.20541541278362274,
0.5373871922492981,
0.12657798826694489,
-0.035294413566589355,
0.13713742792606354,
-0.40544378757476807,
0.2556646466255188,
-0.14929941296577454,
0.023911040276288986,
0.45444345474243164,
0.12287864089012146,
-0.0366678461432457,
-0.05330796167254448,
0.059170372784137726,
0.09457150846719742,
-0.05331585556268692,
-0.4166422188282013,
-0.26386332511901855,
-0.11777449399232864,
0.37901797890663147,
0.25062328577041626,
-0.08870160579681396,
-0.03872881829738617,
0.17678919434547424,
0.001402776688337326,
0.006782345473766327,
-0.0009075303096324205,
-0.08420555293560028,
-0.5144614577293396,
0.025190114974975586,
-0.3117576837539673,
-0.09111437201499939,
-0.37475669384002686,
0.14020492136478424,
-0.10324414819478989,
0.3250378966331482,
-0.06095113977789879,
-0.28534287214279175,
0.22181496024131775,
0.05768192559480667,
-0.22180035710334778,
-0.3171211779117584,
-0.03517613187432289,
0.09715619683265686,
-0.05429521203041077,
0.3626120090484619,
-0.09931701421737671,
0.4648391306400299,
0.08691384643316269,
-0.2966182231903076,
0.046638913452625275,
0.1641552746295929,
0.03551197797060013,
-0.25894787907600403,
-0.18099182844161987,
0.4646162688732147,
0.4503343403339386,
-0.14781586825847626,
-0.36484479904174805,
-0.35878151655197144,
0.006906101480126381,
0.10589717328548431,
0.06397669017314911,
0.0289979949593544,
0.14352157711982727,
-0.32140427827835083,
0.008041370660066605,
0.3127242922782898,
-0.01233666017651558,
0.4519156217575073,
0.08119654655456543,
-0.026239367201924324,
0.19771750271320343,
-0.021795304492115974,
0.16126078367233276,
-0.33993762731552124,
-0.10206110775470734,
-0.019432127475738525,
-0.05101250112056732,
0.10630960762500763,
0.0067976415157318115,
0.06671594083309174,
0.31584876775741577,
0.15521857142448425,
0.10251829028129578,
-0.03635875880718231,
-0.06004912406206131,
-0.19645673036575317,
0.17851266264915466,
0.08895547688007355,
0.43536490201950073,
0.03642496466636658,
-0.07352972030639648,
0.04256714507937431,
0.12563109397888184,
-0.09140481799840927,
0.35487431287765503,
0.03016909584403038,
0.44495949149131775,
0.3242438733577728,
0.20339764654636383,
-0.07429500669240952,
-0.3939177393913269,
-0.3832813501358032,
0.027645086869597435,
0.11821528524160385,
-0.258077472448349,
0.23963157832622528,
-0.27329254150390625,
0.13113626837730408,
-0.07231234014034271,
-0.031521186232566833,
-0.10273650288581848,
-0.3991471827030182,
-0.29672253131866455,
0.36995089054107666,
-0.29137909412384033,
0.017347248271107674,
-0.12719771265983582,
0.08274145424365997,
0.12979573011398315,
-0.11010227352380753,
-0.3194957673549652,
-0.19227372109889984,
-0.108882836997509,
0.013910405337810516,
0.35675081610679626,
0.2639370560646057,
-0.13117966055870056,
0.2827698886394501,
-0.045187078416347504,
-0.04897107928991318,
-0.3095550835132599,
0.32752570509910583,
-0.24310709536075592,
-0.2856096029281616,
0.2199109047651291,
0.18156778812408447,
0.16194459795951843,
-0.6107799410820007,
0.18531914055347443,
0.008888984099030495,
-0.29334086179733276,
0.2972555160522461,
0.22300167381763458,
-0.002980924444273114,
-0.15258456766605377,
-0.13411614298820496,
-0.13989892601966858,
-0.5762498378753662,
0.45816487073898315,
0.13572639226913452,
0.25816571712493896,
-0.08256452530622482,
-0.06901413202285767,
0.010609517805278301,
-0.2777146100997925,
-0.08370576798915863,
0.027705460786819458,
0.12493130564689636,
0.10029737651348114,
-0.36196208000183105,
0.05759219452738762,
0.025503244251012802,
0.028164204210042953,
0.5084937810897827,
-0.13297703862190247,
-0.42219775915145874,
0.44984710216522217,
0.11961841583251953,
-0.0777381956577301,
-0.17622798681259155,
-0.385322242975235,
0.06965918093919754,
0.39604392647743225,
-0.00833328440785408,
-0.11379780620336533,
0.08386041224002838,
0.22985059022903442,
-0.0317380353808403,
0.17290928959846497,
-0.11634122580289841,
0.559753954410553,
-0.08006708323955536,
0.26501497626304626,
0.056767191737890244,
0.00759347528219223,
0.22374343872070312,
0.09086191654205322,
-0.03709745034575462,
-0.2848675847053528,
-0.10190656781196594,
-0.1746467649936676,
-0.24925172328948975,
0.07210477441549301,
0.1653670370578766,
-0.05193302780389786,
-0.27202826738357544,
-0.07211192697286606,
-0.1612122505903244,
-0.17559638619422913,
-0.36241844296455383,
0.30117541551589966,
-0.3059145510196686,
0.0879909098148346,
-0.3111077845096588,
-0.08411607146263123,
0.04385249316692352,
0.05807259678840637,
-0.05366167426109314,
-0.277752161026001,
0.06599090993404388,
-0.11606323719024658,
0.050068359822034836,
0.16612079739570618,
-0.2029542624950409,
0.14185993373394012,
-0.03798331692814827,
0.29893672466278076,
0.023365873843431473,
-0.17101427912712097,
-0.06429912149906158,
-0.16985705494880676,
0.14798593521118164,
0.0392509326338768,
0.2059403955936432,
0.23481988906860352,
-0.11641552299261093,
-0.2022816389799118,
-0.0036495253443717957,
-0.23494049906730652,
0.4400179088115692,
0.593515157699585,
0.3597714900970459,
-0.35149991512298584,
-0.1708204299211502,
0.35455322265625,
-0.14836262166500092,
-0.09552720189094543,
-0.12168461829423904,
0.06972652673721313,
-0.2168041169643402,
-0.22905996441841125,
0.050210047513246536,
0.25379523634910583,
0.3231969177722931,
0.15320013463497162,
-0.14229150116443634,
-0.23101265728473663,
-0.44776010513305664,
-0.08060160279273987,
0.142667755484581,
0.19658192992210388,
-0.5051637291908264,
0.1015685498714447,
-0.1520393192768097,
0.21745017170906067,
0.49848899245262146,
0.7618776559829712,
0.2852303087711334,
-0.29082828760147095,
0.2480534315109253,
-0.017335589975118637,
0.42424312233924866,
0.11943718045949936,
-0.15316203236579895,
0.13031746447086334,
-0.20929808914661407,
0.05224139988422394,
0.15178003907203674,
-0.26083672046661377,
0.39530321955680847,
-0.16864313185214996,
-0.276057630777359,
-0.2417631596326828,
0.49910464882850647,
-0.04355624318122864,
-0.012494891881942749,
-0.07391203939914703,
-0.24263440072536469,
-0.3518020510673523,
0.6364926695823669,
0.08899529278278351,
0.5242307782173157,
0.477663516998291,
0.06044992431998253,
0.5830128192901611,
-0.15524208545684814,
0.28221404552459717,
-0.7763884663581848,
-0.023523453623056412,
-0.3103730380535126,
0.13246412575244904,
-0.021710872650146484,
-0.22958606481552124,
0.23280122876167297,
0.3454686999320984,
-0.2449902892112732,
0.006512181833386421,
0.0266152024269104,
0.06391376256942749,
-0.03259655088186264,
0.3628297448158264,
-0.1441185027360916,
-0.2786218225955963,
-0.40632379055023193,
0.10320021212100983,
0.05685332790017128,
-0.3126537501811981,
0.03033251315355301,
-0.3509734272956848,
-0.08654823899269104,
-0.2357482612133026,
-0.26396846771240234,
0.4338124096393585,
-0.0716572105884552,
0.38862019777297974,
0.22395695745944977,
-0.0562000498175621,
0.36155059933662415,
-0.09915286302566528,
-0.1680009663105011,
-0.07536216080188751,
0.029198771342635155,
0.15066330134868622,
-0.027261793613433838,
-0.2743920683860779,
-0.021823788061738014,
0.11915859580039978,
0.1346258521080017,
-0.1488005518913269,
0.03841807693243027,
-0.024873346090316772,
-0.13940991461277008,
-0.37188708782196045,
0.27631011605262756,
0.20763030648231506,
-0.431410014629364,
-0.3709968030452728,
-0.19433054327964783,
0.11563308537006378,
-0.1496705561876297,
-0.09347643703222275,
0.11809143424034119,
-0.001550421118736267,
-0.27656060457229614,
-0.3599795699119568,
-0.07085901498794556,
-0.2900591790676117,
0.05386438965797424,
0.35441723465919495,
0.22163358330726624,
0.04316139966249466,
0.6239026784896851,
0.2414461225271225,
-0.0021352656185626984,
-0.321176677942276,
0.08172135800123215,
0.3431144654750824,
-0.4442771077156067,
0.3989848792552948,
-0.2075759619474411,
-0.16462016105651855,
0.12205400317907333,
0.09199841320514679,
0.22589968144893646,
0.16715934872627258,
-0.24596793949604034,
-0.5066790580749512,
-0.09202900528907776,
0.33023178577423096,
-0.26218804717063904,
-0.02449069544672966,
-0.13785821199417114,
0.22089937329292297,
-0.3556540310382843,
0.2872302830219269,
-0.24341578781604767,
0.22912700474262238,
-0.01726294867694378,
-0.048538073897361755,
-0.05816300958395004,
-0.13160264492034912,
0.10557010769844055,
0.0473976694047451,
0.14014804363250732,
0.1752711981534958,
0.017603803426027298,
-0.16238507628440857,
-0.11380532383918762,
0.13337570428848267,
0.16780433058738708,
0.1552288830280304,
-0.29862692952156067,
0.11635962128639221,
-0.1770164519548416,
0.03772273659706116,
0.13287955522537231,
-0.39393770694732666,
-0.054999642074108124,
0.13743680715560913,
0.4441261291503906,
0.2775047719478607,
-0.09676583856344223,
0.14930720627307892,
-0.12397240102291107,
0.4012754559516907,
-0.09297198802232742,
0.2098112404346466,
-0.15303058922290802,
0.001142546534538269,
0.035073645412921906,
0.1986958086490631,
-0.04425568878650665,
0.09521368145942688,
0.5684469938278198,
-0.1944066733121872,
-0.060728520154953,
-0.5084899663925171,
0.29555797576904297,
0.5219069719314575,
-0.0011156648397445679,
-0.042270056903362274,
-0.2038494348526001,
0.16712448000907898,
-0.16145870089530945,
-0.03935764357447624,
0.31965434551239014,
0.016418851912021637,
-0.09832867980003357,
0.25969502329826355,
0.09500761330127716,
-0.037849556654691696,
-0.2987877130508423,
0.1304665505886078,
0.18332931399345398,
0.07271712273359299,
0.20181816816329956,
0.6401516795158386,
-0.325771689414978,
0.049872323870658875,
0.37964943051338196,
0.11830383539199829,
0.6063776016235352,
0.28971636295318604,
0.12442854046821594,
0.0713099017739296,
0.4207839071750641,
0.052086181938648224,
0.07744956761598587,
-0.2015165537595749,
-0.48151856660842896,
0.09029834717512131,
0.2912350296974182,
-0.14242857694625854,
-0.11190961301326752,
0.3422735929489136,
0.14414441585540771,
-0.12927845120429993,
-0.20359446108341217,
0.39802858233451843,
-0.16030701994895935,
-0.20408859848976135,
-0.2676367163658142,
-0.1337142288684845,
-0.6330995559692383,
-0.18158656358718872,
-0.08125191926956177,
-0.024372950196266174,
-0.09150305390357971,
0.11156178265810013,
0.08362628519535065,
-0.2546157240867615,
0.1198744848370552,
0.049474116414785385,
-0.06789498776197433,
-0.2596524655818939,
0.46796900033950806,
0.09139613062143326,
0.03727518394589424,
0.04090669006109238,
0.1487785130739212,
0.4960680902004242,
0.2502409815788269,
-0.26351532340049744,
-0.21823813021183014,
-0.19870738685131073,
-0.1470845490694046,
-0.017943307757377625,
0.2585282325744629,
0.0494263730943203,
0.14893990755081177,
0.3585212528705597,
0.11411070823669434,
-0.1599733978509903,
0.04384039342403412,
0.1822645366191864,
0.08146996796131134,
0.1857507973909378,
0.6384842395782471,
-0.04779423773288727,
-0.1213487908244133,
0.22430673241615295,
-0.13197895884513855,
-0.2510053515434265,
-0.6355643272399902,
0.29188188910484314,
0.002624691231176257,
0.19698649644851685,
0.07607089728116989,
0.07502388954162598,
0.10198907554149628,
0.6383277177810669,
0.058626916259527206,
0.08993645012378693,
-0.10363059490919113,
-0.1408047080039978,
-0.03658656030893326,
-0.030020512640476227,
-0.37302836775779724,
0.010407144203782082,
0.17384451627731323,
0.09668135643005371,
0.16798828542232513,
0.2986496686935425,
-0.025165513157844543,
0.29137593507766724,
-0.2197558879852295,
-0.11883313953876495,
-0.48435652256011963,
0.06875886768102646,
0.2037041336297989,
0.09280645847320557,
-0.12021272629499435,
-0.1476222574710846,
0.06844890117645264,
0.2533194422721863,
0.023962274193763733,
0.09037594497203827,
-0.2485010176897049,
0.11686316132545471,
-0.32231253385543823,
0.17504435777664185,
0.0504138320684433,
0.11403407156467438,
-0.04940509796142578,
-0.18966639041900635,
-0.18875232338905334,
-0.5733943581581116,
-0.12193525582551956,
0.46866661310195923,
0.12841016054153442,
0.2680286765098572,
-0.15977342426776886,
0.11881045997142792,
-0.2943058907985687,
0.12106393277645111,
-0.4128645062446594,
0.038887765258550644,
-0.3458365797996521,
0.26152700185775757,
-0.1557043343782425,
0.2354157418012619,
-0.10956188291311264,
-0.06789389997720718,
-0.20193037390708923,
0.09509191662073135,
-0.2074781358242035,
-0.3111895024776459,
0.37605834007263184,
0.10880279541015625,
-0.2328539341688156,
0.46432963013648987,
0.1188010424375534,
0.11658404767513275,
0.23164886236190796,
-0.398322194814682,
-0.0301201194524765,
0.2543451189994812,
-0.18919986486434937,
-0.32227256894111633,
-0.03069494664669037,
0.15509852766990662,
-0.13845470547676086,
-0.09622779488563538,
0.15036620199680328,
0.04378754273056984,
-0.1663365662097931,
-0.1757200062274933,
0.01381586492061615
] |
https://github.com/huggingface/datasets/issues/359 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures | Also noticed that if you for example in a loader script
```
from nlp import ArrowBasedBuilder
class MyBuilder(ArrowBasedBuilder):
...
```
and use that in the subclass, it will be on the module's __dict__ and will be selected before the `MyBuilder` subclass, and it will raise `NotImplementedError` on its `_generate_examples` method... In the code it check for abstract classes but Builder and ArrowBasedBuilder aren't abstract classes, they're regular classes with `@abstract_methods`. | I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
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
~/.virtualenvs/inv-text2struct/lib/python3.6/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 ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well. | 70 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures
I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
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
~/.virtualenvs/inv-text2struct/lib/python3.6/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 ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well.
Also noticed that if you for example in a loader script
```
from nlp import ArrowBasedBuilder
class MyBuilder(ArrowBasedBuilder):
...
```
and use that in the subclass, it will be on the module's __dict__ and will be selected before the `MyBuilder` subclass, and it will raise `NotImplementedError` on its `_generate_examples` method... In the code it check for abstract classes but Builder and ArrowBasedBuilder aren't abstract classes, they're regular classes with `@abstract_methods`. | [
-0.32604560256004333,
0.3610110282897949,
-0.06005508452653885,
0.5487008094787598,
0.04070312902331352,
-0.14007410407066345,
0.3431127667427063,
0.4284076392650604,
0.21433204412460327,
-0.11397014558315277,
-0.04363232105970383,
0.33327144384384155,
0.23643997311592102,
0.058703720569610596,
-0.2658623456954956,
-0.16561636328697205,
-0.01963183283805847,
0.29372239112854004,
-0.12462453544139862,
0.34829598665237427,
-0.2225886583328247,
0.452397882938385,
-0.10002481937408447,
0.13126718997955322,
0.01399112306535244,
-0.08402317762374878,
0.055125415325164795,
0.36302024126052856,
-0.16610513627529144,
-0.5221459269523621,
0.2616773247718811,
-0.2975650131702423,
-0.10711207240819931,
0.4265519082546234,
-0.00011217652354389429,
0.28368568420410156,
0.27960270643234253,
-0.1050381138920784,
-0.3678910732269287,
-0.05632004141807556,
0.021908514201641083,
-0.1897953748703003,
0.08071619272232056,
-0.18023625016212463,
0.20297756791114807,
-0.27336636185646057,
-0.3524166941642761,
-0.1409694403409958,
0.5280259847640991,
0.10369782894849777,
0.16150759160518646,
-0.14496605098247528,
0.3078526556491852,
-0.008729815483093262,
0.0976143628358841,
-0.012884780764579773,
-0.1341838836669922,
0.3496537208557129,
-0.2746611535549164,
0.16067540645599365,
-0.177313894033432,
0.03397108241915703,
-0.14739066362380981,
-0.03638586774468422,
0.06702610105276108,
0.03534615412354469,
0.15725892782211304,
0.024221712723374367,
0.006246872246265411,
-0.008396118879318237,
0.1443321853876114,
-0.12768778204917908,
-0.07597305625677109,
-0.23981142044067383,
-0.2881833016872406,
-0.30987584590911865,
0.2149096429347992,
0.10423637926578522,
-0.0598926842212677,
0.10175731778144836,
0.316592812538147,
-0.25795093178749084,
-0.11959408968687057,
0.00878053531050682,
0.09315820038318634,
0.32947838306427,
-0.0843704491853714,
0.06528870761394501,
0.22180306911468506,
-0.021018721163272858,
0.21372351050376892,
-0.013495471328496933,
-0.5275073051452637,
0.0693260207772255,
-0.02797907218337059,
0.009123586118221283,
-0.19335851073265076,
-0.6268090009689331,
-0.00887843407690525,
0.10316538065671921,
0.5481135249137878,
-0.014283780008554459,
0.1519879400730133,
0.409203439950943,
0.2554834187030792,
-0.1661251336336136,
0.2643890380859375,
-0.030301891267299652,
0.041752416640520096,
0.25146394968032837,
0.11114539206027985,
-0.14347055554389954,
-0.024957843124866486,
-0.10384970158338547,
-0.34251976013183594,
-0.06812908500432968,
0.13328514993190765,
0.018102597445249557,
-0.23505337536334991,
0.044757820665836334,
-0.4381098449230194,
-0.10387799143791199,
0.29347071051597595,
0.24562302231788635,
0.2248564064502716,
0.23317575454711914,
0.18689695000648499,
0.29196155071258545,
0.020270632579922676,
-0.20263300836086273,
-0.12423084676265717,
0.10525056719779968,
-0.10447444021701813,
0.11084114015102386,
0.21319891512393951,
0.11135372519493103,
0.29969510436058044,
0.12882089614868164,
-0.34201598167419434,
-0.34042128920555115,
0.12201730906963348,
-0.2721671760082245,
0.02830328792333603,
0.2411942034959793,
0.07982376217842102,
-0.18102295696735382,
0.1847558468580246,
-0.27733659744262695,
-0.05758365988731384,
0.072074756026268,
-0.3603481650352478,
-0.3543907105922699,
-0.171597421169281,
0.15046966075897217,
0.003692168742418289,
0.15749648213386536,
-0.4513109624385834,
-0.042610298842191696,
0.25599169731140137,
-0.3391973078250885,
0.11380477994680405,
-0.16392800211906433,
-0.18046364188194275,
-0.1676003485918045,
0.12403225153684616,
0.08145635575056076,
-0.1796024888753891,
-0.07172215729951859,
-0.28415748476982117,
-0.0085383839905262,
0.20895902812480927,
0.1984407901763916,
-0.15026193857192993,
0.5191946029663086,
-0.2032294124364853,
0.5580468773841858,
0.5535893440246582,
-0.1875409632921219,
-0.20541541278362274,
0.5373871922492981,
0.12657798826694489,
-0.035294413566589355,
0.13713742792606354,
-0.40544378757476807,
0.2556646466255188,
-0.14929941296577454,
0.023911040276288986,
0.45444345474243164,
0.12287864089012146,
-0.0366678461432457,
-0.05330796167254448,
0.059170372784137726,
0.09457150846719742,
-0.05331585556268692,
-0.4166422188282013,
-0.26386332511901855,
-0.11777449399232864,
0.37901797890663147,
0.25062328577041626,
-0.08870160579681396,
-0.03872881829738617,
0.17678919434547424,
0.001402776688337326,
0.006782345473766327,
-0.0009075303096324205,
-0.08420555293560028,
-0.5144614577293396,
0.025190114974975586,
-0.3117576837539673,
-0.09111437201499939,
-0.37475669384002686,
0.14020492136478424,
-0.10324414819478989,
0.3250378966331482,
-0.06095113977789879,
-0.28534287214279175,
0.22181496024131775,
0.05768192559480667,
-0.22180035710334778,
-0.3171211779117584,
-0.03517613187432289,
0.09715619683265686,
-0.05429521203041077,
0.3626120090484619,
-0.09931701421737671,
0.4648391306400299,
0.08691384643316269,
-0.2966182231903076,
0.046638913452625275,
0.1641552746295929,
0.03551197797060013,
-0.25894787907600403,
-0.18099182844161987,
0.4646162688732147,
0.4503343403339386,
-0.14781586825847626,
-0.36484479904174805,
-0.35878151655197144,
0.006906101480126381,
0.10589717328548431,
0.06397669017314911,
0.0289979949593544,
0.14352157711982727,
-0.32140427827835083,
0.008041370660066605,
0.3127242922782898,
-0.01233666017651558,
0.4519156217575073,
0.08119654655456543,
-0.026239367201924324,
0.19771750271320343,
-0.021795304492115974,
0.16126078367233276,
-0.33993762731552124,
-0.10206110775470734,
-0.019432127475738525,
-0.05101250112056732,
0.10630960762500763,
0.0067976415157318115,
0.06671594083309174,
0.31584876775741577,
0.15521857142448425,
0.10251829028129578,
-0.03635875880718231,
-0.06004912406206131,
-0.19645673036575317,
0.17851266264915466,
0.08895547688007355,
0.43536490201950073,
0.03642496466636658,
-0.07352972030639648,
0.04256714507937431,
0.12563109397888184,
-0.09140481799840927,
0.35487431287765503,
0.03016909584403038,
0.44495949149131775,
0.3242438733577728,
0.20339764654636383,
-0.07429500669240952,
-0.3939177393913269,
-0.3832813501358032,
0.027645086869597435,
0.11821528524160385,
-0.258077472448349,
0.23963157832622528,
-0.27329254150390625,
0.13113626837730408,
-0.07231234014034271,
-0.031521186232566833,
-0.10273650288581848,
-0.3991471827030182,
-0.29672253131866455,
0.36995089054107666,
-0.29137909412384033,
0.017347248271107674,
-0.12719771265983582,
0.08274145424365997,
0.12979573011398315,
-0.11010227352380753,
-0.3194957673549652,
-0.19227372109889984,
-0.108882836997509,
0.013910405337810516,
0.35675081610679626,
0.2639370560646057,
-0.13117966055870056,
0.2827698886394501,
-0.045187078416347504,
-0.04897107928991318,
-0.3095550835132599,
0.32752570509910583,
-0.24310709536075592,
-0.2856096029281616,
0.2199109047651291,
0.18156778812408447,
0.16194459795951843,
-0.6107799410820007,
0.18531914055347443,
0.008888984099030495,
-0.29334086179733276,
0.2972555160522461,
0.22300167381763458,
-0.002980924444273114,
-0.15258456766605377,
-0.13411614298820496,
-0.13989892601966858,
-0.5762498378753662,
0.45816487073898315,
0.13572639226913452,
0.25816571712493896,
-0.08256452530622482,
-0.06901413202285767,
0.010609517805278301,
-0.2777146100997925,
-0.08370576798915863,
0.027705460786819458,
0.12493130564689636,
0.10029737651348114,
-0.36196208000183105,
0.05759219452738762,
0.025503244251012802,
0.028164204210042953,
0.5084937810897827,
-0.13297703862190247,
-0.42219775915145874,
0.44984710216522217,
0.11961841583251953,
-0.0777381956577301,
-0.17622798681259155,
-0.385322242975235,
0.06965918093919754,
0.39604392647743225,
-0.00833328440785408,
-0.11379780620336533,
0.08386041224002838,
0.22985059022903442,
-0.0317380353808403,
0.17290928959846497,
-0.11634122580289841,
0.559753954410553,
-0.08006708323955536,
0.26501497626304626,
0.056767191737890244,
0.00759347528219223,
0.22374343872070312,
0.09086191654205322,
-0.03709745034575462,
-0.2848675847053528,
-0.10190656781196594,
-0.1746467649936676,
-0.24925172328948975,
0.07210477441549301,
0.1653670370578766,
-0.05193302780389786,
-0.27202826738357544,
-0.07211192697286606,
-0.1612122505903244,
-0.17559638619422913,
-0.36241844296455383,
0.30117541551589966,
-0.3059145510196686,
0.0879909098148346,
-0.3111077845096588,
-0.08411607146263123,
0.04385249316692352,
0.05807259678840637,
-0.05366167426109314,
-0.277752161026001,
0.06599090993404388,
-0.11606323719024658,
0.050068359822034836,
0.16612079739570618,
-0.2029542624950409,
0.14185993373394012,
-0.03798331692814827,
0.29893672466278076,
0.023365873843431473,
-0.17101427912712097,
-0.06429912149906158,
-0.16985705494880676,
0.14798593521118164,
0.0392509326338768,
0.2059403955936432,
0.23481988906860352,
-0.11641552299261093,
-0.2022816389799118,
-0.0036495253443717957,
-0.23494049906730652,
0.4400179088115692,
0.593515157699585,
0.3597714900970459,
-0.35149991512298584,
-0.1708204299211502,
0.35455322265625,
-0.14836262166500092,
-0.09552720189094543,
-0.12168461829423904,
0.06972652673721313,
-0.2168041169643402,
-0.22905996441841125,
0.050210047513246536,
0.25379523634910583,
0.3231969177722931,
0.15320013463497162,
-0.14229150116443634,
-0.23101265728473663,
-0.44776010513305664,
-0.08060160279273987,
0.142667755484581,
0.19658192992210388,
-0.5051637291908264,
0.1015685498714447,
-0.1520393192768097,
0.21745017170906067,
0.49848899245262146,
0.7618776559829712,
0.2852303087711334,
-0.29082828760147095,
0.2480534315109253,
-0.017335589975118637,
0.42424312233924866,
0.11943718045949936,
-0.15316203236579895,
0.13031746447086334,
-0.20929808914661407,
0.05224139988422394,
0.15178003907203674,
-0.26083672046661377,
0.39530321955680847,
-0.16864313185214996,
-0.276057630777359,
-0.2417631596326828,
0.49910464882850647,
-0.04355624318122864,
-0.012494891881942749,
-0.07391203939914703,
-0.24263440072536469,
-0.3518020510673523,
0.6364926695823669,
0.08899529278278351,
0.5242307782173157,
0.477663516998291,
0.06044992431998253,
0.5830128192901611,
-0.15524208545684814,
0.28221404552459717,
-0.7763884663581848,
-0.023523453623056412,
-0.3103730380535126,
0.13246412575244904,
-0.021710872650146484,
-0.22958606481552124,
0.23280122876167297,
0.3454686999320984,
-0.2449902892112732,
0.006512181833386421,
0.0266152024269104,
0.06391376256942749,
-0.03259655088186264,
0.3628297448158264,
-0.1441185027360916,
-0.2786218225955963,
-0.40632379055023193,
0.10320021212100983,
0.05685332790017128,
-0.3126537501811981,
0.03033251315355301,
-0.3509734272956848,
-0.08654823899269104,
-0.2357482612133026,
-0.26396846771240234,
0.4338124096393585,
-0.0716572105884552,
0.38862019777297974,
0.22395695745944977,
-0.0562000498175621,
0.36155059933662415,
-0.09915286302566528,
-0.1680009663105011,
-0.07536216080188751,
0.029198771342635155,
0.15066330134868622,
-0.027261793613433838,
-0.2743920683860779,
-0.021823788061738014,
0.11915859580039978,
0.1346258521080017,
-0.1488005518913269,
0.03841807693243027,
-0.024873346090316772,
-0.13940991461277008,
-0.37188708782196045,
0.27631011605262756,
0.20763030648231506,
-0.431410014629364,
-0.3709968030452728,
-0.19433054327964783,
0.11563308537006378,
-0.1496705561876297,
-0.09347643703222275,
0.11809143424034119,
-0.001550421118736267,
-0.27656060457229614,
-0.3599795699119568,
-0.07085901498794556,
-0.2900591790676117,
0.05386438965797424,
0.35441723465919495,
0.22163358330726624,
0.04316139966249466,
0.6239026784896851,
0.2414461225271225,
-0.0021352656185626984,
-0.321176677942276,
0.08172135800123215,
0.3431144654750824,
-0.4442771077156067,
0.3989848792552948,
-0.2075759619474411,
-0.16462016105651855,
0.12205400317907333,
0.09199841320514679,
0.22589968144893646,
0.16715934872627258,
-0.24596793949604034,
-0.5066790580749512,
-0.09202900528907776,
0.33023178577423096,
-0.26218804717063904,
-0.02449069544672966,
-0.13785821199417114,
0.22089937329292297,
-0.3556540310382843,
0.2872302830219269,
-0.24341578781604767,
0.22912700474262238,
-0.01726294867694378,
-0.048538073897361755,
-0.05816300958395004,
-0.13160264492034912,
0.10557010769844055,
0.0473976694047451,
0.14014804363250732,
0.1752711981534958,
0.017603803426027298,
-0.16238507628440857,
-0.11380532383918762,
0.13337570428848267,
0.16780433058738708,
0.1552288830280304,
-0.29862692952156067,
0.11635962128639221,
-0.1770164519548416,
0.03772273659706116,
0.13287955522537231,
-0.39393770694732666,
-0.054999642074108124,
0.13743680715560913,
0.4441261291503906,
0.2775047719478607,
-0.09676583856344223,
0.14930720627307892,
-0.12397240102291107,
0.4012754559516907,
-0.09297198802232742,
0.2098112404346466,
-0.15303058922290802,
0.001142546534538269,
0.035073645412921906,
0.1986958086490631,
-0.04425568878650665,
0.09521368145942688,
0.5684469938278198,
-0.1944066733121872,
-0.060728520154953,
-0.5084899663925171,
0.29555797576904297,
0.5219069719314575,
-0.0011156648397445679,
-0.042270056903362274,
-0.2038494348526001,
0.16712448000907898,
-0.16145870089530945,
-0.03935764357447624,
0.31965434551239014,
0.016418851912021637,
-0.09832867980003357,
0.25969502329826355,
0.09500761330127716,
-0.037849556654691696,
-0.2987877130508423,
0.1304665505886078,
0.18332931399345398,
0.07271712273359299,
0.20181816816329956,
0.6401516795158386,
-0.325771689414978,
0.049872323870658875,
0.37964943051338196,
0.11830383539199829,
0.6063776016235352,
0.28971636295318604,
0.12442854046821594,
0.0713099017739296,
0.4207839071750641,
0.052086181938648224,
0.07744956761598587,
-0.2015165537595749,
-0.48151856660842896,
0.09029834717512131,
0.2912350296974182,
-0.14242857694625854,
-0.11190961301326752,
0.3422735929489136,
0.14414441585540771,
-0.12927845120429993,
-0.20359446108341217,
0.39802858233451843,
-0.16030701994895935,
-0.20408859848976135,
-0.2676367163658142,
-0.1337142288684845,
-0.6330995559692383,
-0.18158656358718872,
-0.08125191926956177,
-0.024372950196266174,
-0.09150305390357971,
0.11156178265810013,
0.08362628519535065,
-0.2546157240867615,
0.1198744848370552,
0.049474116414785385,
-0.06789498776197433,
-0.2596524655818939,
0.46796900033950806,
0.09139613062143326,
0.03727518394589424,
0.04090669006109238,
0.1487785130739212,
0.4960680902004242,
0.2502409815788269,
-0.26351532340049744,
-0.21823813021183014,
-0.19870738685131073,
-0.1470845490694046,
-0.017943307757377625,
0.2585282325744629,
0.0494263730943203,
0.14893990755081177,
0.3585212528705597,
0.11411070823669434,
-0.1599733978509903,
0.04384039342403412,
0.1822645366191864,
0.08146996796131134,
0.1857507973909378,
0.6384842395782471,
-0.04779423773288727,
-0.1213487908244133,
0.22430673241615295,
-0.13197895884513855,
-0.2510053515434265,
-0.6355643272399902,
0.29188188910484314,
0.002624691231176257,
0.19698649644851685,
0.07607089728116989,
0.07502388954162598,
0.10198907554149628,
0.6383277177810669,
0.058626916259527206,
0.08993645012378693,
-0.10363059490919113,
-0.1408047080039978,
-0.03658656030893326,
-0.030020512640476227,
-0.37302836775779724,
0.010407144203782082,
0.17384451627731323,
0.09668135643005371,
0.16798828542232513,
0.2986496686935425,
-0.025165513157844543,
0.29137593507766724,
-0.2197558879852295,
-0.11883313953876495,
-0.48435652256011963,
0.06875886768102646,
0.2037041336297989,
0.09280645847320557,
-0.12021272629499435,
-0.1476222574710846,
0.06844890117645264,
0.2533194422721863,
0.023962274193763733,
0.09037594497203827,
-0.2485010176897049,
0.11686316132545471,
-0.32231253385543823,
0.17504435777664185,
0.0504138320684433,
0.11403407156467438,
-0.04940509796142578,
-0.18966639041900635,
-0.18875232338905334,
-0.5733943581581116,
-0.12193525582551956,
0.46866661310195923,
0.12841016054153442,
0.2680286765098572,
-0.15977342426776886,
0.11881045997142792,
-0.2943058907985687,
0.12106393277645111,
-0.4128645062446594,
0.038887765258550644,
-0.3458365797996521,
0.26152700185775757,
-0.1557043343782425,
0.2354157418012619,
-0.10956188291311264,
-0.06789389997720718,
-0.20193037390708923,
0.09509191662073135,
-0.2074781358242035,
-0.3111895024776459,
0.37605834007263184,
0.10880279541015625,
-0.2328539341688156,
0.46432963013648987,
0.1188010424375534,
0.11658404767513275,
0.23164886236190796,
-0.398322194814682,
-0.0301201194524765,
0.2543451189994812,
-0.18919986486434937,
-0.32227256894111633,
-0.03069494664669037,
0.15509852766990662,
-0.13845470547676086,
-0.09622779488563538,
0.15036620199680328,
0.04378754273056984,
-0.1663365662097931,
-0.1757200062274933,
0.01381586492061615
] |
https://github.com/huggingface/datasets/issues/359 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures | Indeed this is part of a more general limitation which is the fact that we should generate and update the `features` from the auto-inferred Arrow schema when they are not provided (also happen when a user change the schema using `map()`, the features should be auto-generated and guessed as much as possible to keep the `features` synced with the underlying Arrow table schema).
We will try to solve this soon. | I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
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
~/.virtualenvs/inv-text2struct/lib/python3.6/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 ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well. | 70 | ArrowBasedBuilder _prepare_split parse_schema breaks on nested structures
I tried using the Json dataloader to load some JSON lines files. but get an exception in the parse_schema function.
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-23-9aecfbee53bd> in <module>
55 from nlp import load_dataset
56
---> 57 ds = load_dataset("../text2struct/model/dataset_builder.py", data_files=rel_datafiles)
58
59
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
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
~/.virtualenvs/inv-text2struct/lib/python3.6/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 ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: string> nor list<item: string>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions
```
If I create the dataset imperatively, using a pyarrow table, the dataset is created correctly. If I override the `_prepare_split` method to avoid calling the validate schema, the dataset can load as well.
Indeed this is part of a more general limitation which is the fact that we should generate and update the `features` from the auto-inferred Arrow schema when they are not provided (also happen when a user change the schema using `map()`, the features should be auto-generated and guessed as much as possible to keep the `features` synced with the underlying Arrow table schema).
We will try to solve this soon. | [
-0.32604560256004333,
0.3610110282897949,
-0.06005508452653885,
0.5487008094787598,
0.04070312902331352,
-0.14007410407066345,
0.3431127667427063,
0.4284076392650604,
0.21433204412460327,
-0.11397014558315277,
-0.04363232105970383,
0.33327144384384155,
0.23643997311592102,
0.058703720569610596,
-0.2658623456954956,
-0.16561636328697205,
-0.01963183283805847,
0.29372239112854004,
-0.12462453544139862,
0.34829598665237427,
-0.2225886583328247,
0.452397882938385,
-0.10002481937408447,
0.13126718997955322,
0.01399112306535244,
-0.08402317762374878,
0.055125415325164795,
0.36302024126052856,
-0.16610513627529144,
-0.5221459269523621,
0.2616773247718811,
-0.2975650131702423,
-0.10711207240819931,
0.4265519082546234,
-0.00011217652354389429,
0.28368568420410156,
0.27960270643234253,
-0.1050381138920784,
-0.3678910732269287,
-0.05632004141807556,
0.021908514201641083,
-0.1897953748703003,
0.08071619272232056,
-0.18023625016212463,
0.20297756791114807,
-0.27336636185646057,
-0.3524166941642761,
-0.1409694403409958,
0.5280259847640991,
0.10369782894849777,
0.16150759160518646,
-0.14496605098247528,
0.3078526556491852,
-0.008729815483093262,
0.0976143628358841,
-0.012884780764579773,
-0.1341838836669922,
0.3496537208557129,
-0.2746611535549164,
0.16067540645599365,
-0.177313894033432,
0.03397108241915703,
-0.14739066362380981,
-0.03638586774468422,
0.06702610105276108,
0.03534615412354469,
0.15725892782211304,
0.024221712723374367,
0.006246872246265411,
-0.008396118879318237,
0.1443321853876114,
-0.12768778204917908,
-0.07597305625677109,
-0.23981142044067383,
-0.2881833016872406,
-0.30987584590911865,
0.2149096429347992,
0.10423637926578522,
-0.0598926842212677,
0.10175731778144836,
0.316592812538147,
-0.25795093178749084,
-0.11959408968687057,
0.00878053531050682,
0.09315820038318634,
0.32947838306427,
-0.0843704491853714,
0.06528870761394501,
0.22180306911468506,
-0.021018721163272858,
0.21372351050376892,
-0.013495471328496933,
-0.5275073051452637,
0.0693260207772255,
-0.02797907218337059,
0.009123586118221283,
-0.19335851073265076,
-0.6268090009689331,
-0.00887843407690525,
0.10316538065671921,
0.5481135249137878,
-0.014283780008554459,
0.1519879400730133,
0.409203439950943,
0.2554834187030792,
-0.1661251336336136,
0.2643890380859375,
-0.030301891267299652,
0.041752416640520096,
0.25146394968032837,
0.11114539206027985,
-0.14347055554389954,
-0.024957843124866486,
-0.10384970158338547,
-0.34251976013183594,
-0.06812908500432968,
0.13328514993190765,
0.018102597445249557,
-0.23505337536334991,
0.044757820665836334,
-0.4381098449230194,
-0.10387799143791199,
0.29347071051597595,
0.24562302231788635,
0.2248564064502716,
0.23317575454711914,
0.18689695000648499,
0.29196155071258545,
0.020270632579922676,
-0.20263300836086273,
-0.12423084676265717,
0.10525056719779968,
-0.10447444021701813,
0.11084114015102386,
0.21319891512393951,
0.11135372519493103,
0.29969510436058044,
0.12882089614868164,
-0.34201598167419434,
-0.34042128920555115,
0.12201730906963348,
-0.2721671760082245,
0.02830328792333603,
0.2411942034959793,
0.07982376217842102,
-0.18102295696735382,
0.1847558468580246,
-0.27733659744262695,
-0.05758365988731384,
0.072074756026268,
-0.3603481650352478,
-0.3543907105922699,
-0.171597421169281,
0.15046966075897217,
0.003692168742418289,
0.15749648213386536,
-0.4513109624385834,
-0.042610298842191696,
0.25599169731140137,
-0.3391973078250885,
0.11380477994680405,
-0.16392800211906433,
-0.18046364188194275,
-0.1676003485918045,
0.12403225153684616,
0.08145635575056076,
-0.1796024888753891,
-0.07172215729951859,
-0.28415748476982117,
-0.0085383839905262,
0.20895902812480927,
0.1984407901763916,
-0.15026193857192993,
0.5191946029663086,
-0.2032294124364853,
0.5580468773841858,
0.5535893440246582,
-0.1875409632921219,
-0.20541541278362274,
0.5373871922492981,
0.12657798826694489,
-0.035294413566589355,
0.13713742792606354,
-0.40544378757476807,
0.2556646466255188,
-0.14929941296577454,
0.023911040276288986,
0.45444345474243164,
0.12287864089012146,
-0.0366678461432457,
-0.05330796167254448,
0.059170372784137726,
0.09457150846719742,
-0.05331585556268692,
-0.4166422188282013,
-0.26386332511901855,
-0.11777449399232864,
0.37901797890663147,
0.25062328577041626,
-0.08870160579681396,
-0.03872881829738617,
0.17678919434547424,
0.001402776688337326,
0.006782345473766327,
-0.0009075303096324205,
-0.08420555293560028,
-0.5144614577293396,
0.025190114974975586,
-0.3117576837539673,
-0.09111437201499939,
-0.37475669384002686,
0.14020492136478424,
-0.10324414819478989,
0.3250378966331482,
-0.06095113977789879,
-0.28534287214279175,
0.22181496024131775,
0.05768192559480667,
-0.22180035710334778,
-0.3171211779117584,
-0.03517613187432289,
0.09715619683265686,
-0.05429521203041077,
0.3626120090484619,
-0.09931701421737671,
0.4648391306400299,
0.08691384643316269,
-0.2966182231903076,
0.046638913452625275,
0.1641552746295929,
0.03551197797060013,
-0.25894787907600403,
-0.18099182844161987,
0.4646162688732147,
0.4503343403339386,
-0.14781586825847626,
-0.36484479904174805,
-0.35878151655197144,
0.006906101480126381,
0.10589717328548431,
0.06397669017314911,
0.0289979949593544,
0.14352157711982727,
-0.32140427827835083,
0.008041370660066605,
0.3127242922782898,
-0.01233666017651558,
0.4519156217575073,
0.08119654655456543,
-0.026239367201924324,
0.19771750271320343,
-0.021795304492115974,
0.16126078367233276,
-0.33993762731552124,
-0.10206110775470734,
-0.019432127475738525,
-0.05101250112056732,
0.10630960762500763,
0.0067976415157318115,
0.06671594083309174,
0.31584876775741577,
0.15521857142448425,
0.10251829028129578,
-0.03635875880718231,
-0.06004912406206131,
-0.19645673036575317,
0.17851266264915466,
0.08895547688007355,
0.43536490201950073,
0.03642496466636658,
-0.07352972030639648,
0.04256714507937431,
0.12563109397888184,
-0.09140481799840927,
0.35487431287765503,
0.03016909584403038,
0.44495949149131775,
0.3242438733577728,
0.20339764654636383,
-0.07429500669240952,
-0.3939177393913269,
-0.3832813501358032,
0.027645086869597435,
0.11821528524160385,
-0.258077472448349,
0.23963157832622528,
-0.27329254150390625,
0.13113626837730408,
-0.07231234014034271,
-0.031521186232566833,
-0.10273650288581848,
-0.3991471827030182,
-0.29672253131866455,
0.36995089054107666,
-0.29137909412384033,
0.017347248271107674,
-0.12719771265983582,
0.08274145424365997,
0.12979573011398315,
-0.11010227352380753,
-0.3194957673549652,
-0.19227372109889984,
-0.108882836997509,
0.013910405337810516,
0.35675081610679626,
0.2639370560646057,
-0.13117966055870056,
0.2827698886394501,
-0.045187078416347504,
-0.04897107928991318,
-0.3095550835132599,
0.32752570509910583,
-0.24310709536075592,
-0.2856096029281616,
0.2199109047651291,
0.18156778812408447,
0.16194459795951843,
-0.6107799410820007,
0.18531914055347443,
0.008888984099030495,
-0.29334086179733276,
0.2972555160522461,
0.22300167381763458,
-0.002980924444273114,
-0.15258456766605377,
-0.13411614298820496,
-0.13989892601966858,
-0.5762498378753662,
0.45816487073898315,
0.13572639226913452,
0.25816571712493896,
-0.08256452530622482,
-0.06901413202285767,
0.010609517805278301,
-0.2777146100997925,
-0.08370576798915863,
0.027705460786819458,
0.12493130564689636,
0.10029737651348114,
-0.36196208000183105,
0.05759219452738762,
0.025503244251012802,
0.028164204210042953,
0.5084937810897827,
-0.13297703862190247,
-0.42219775915145874,
0.44984710216522217,
0.11961841583251953,
-0.0777381956577301,
-0.17622798681259155,
-0.385322242975235,
0.06965918093919754,
0.39604392647743225,
-0.00833328440785408,
-0.11379780620336533,
0.08386041224002838,
0.22985059022903442,
-0.0317380353808403,
0.17290928959846497,
-0.11634122580289841,
0.559753954410553,
-0.08006708323955536,
0.26501497626304626,
0.056767191737890244,
0.00759347528219223,
0.22374343872070312,
0.09086191654205322,
-0.03709745034575462,
-0.2848675847053528,
-0.10190656781196594,
-0.1746467649936676,
-0.24925172328948975,
0.07210477441549301,
0.1653670370578766,
-0.05193302780389786,
-0.27202826738357544,
-0.07211192697286606,
-0.1612122505903244,
-0.17559638619422913,
-0.36241844296455383,
0.30117541551589966,
-0.3059145510196686,
0.0879909098148346,
-0.3111077845096588,
-0.08411607146263123,
0.04385249316692352,
0.05807259678840637,
-0.05366167426109314,
-0.277752161026001,
0.06599090993404388,
-0.11606323719024658,
0.050068359822034836,
0.16612079739570618,
-0.2029542624950409,
0.14185993373394012,
-0.03798331692814827,
0.29893672466278076,
0.023365873843431473,
-0.17101427912712097,
-0.06429912149906158,
-0.16985705494880676,
0.14798593521118164,
0.0392509326338768,
0.2059403955936432,
0.23481988906860352,
-0.11641552299261093,
-0.2022816389799118,
-0.0036495253443717957,
-0.23494049906730652,
0.4400179088115692,
0.593515157699585,
0.3597714900970459,
-0.35149991512298584,
-0.1708204299211502,
0.35455322265625,
-0.14836262166500092,
-0.09552720189094543,
-0.12168461829423904,
0.06972652673721313,
-0.2168041169643402,
-0.22905996441841125,
0.050210047513246536,
0.25379523634910583,
0.3231969177722931,
0.15320013463497162,
-0.14229150116443634,
-0.23101265728473663,
-0.44776010513305664,
-0.08060160279273987,
0.142667755484581,
0.19658192992210388,
-0.5051637291908264,
0.1015685498714447,
-0.1520393192768097,
0.21745017170906067,
0.49848899245262146,
0.7618776559829712,
0.2852303087711334,
-0.29082828760147095,
0.2480534315109253,
-0.017335589975118637,
0.42424312233924866,
0.11943718045949936,
-0.15316203236579895,
0.13031746447086334,
-0.20929808914661407,
0.05224139988422394,
0.15178003907203674,
-0.26083672046661377,
0.39530321955680847,
-0.16864313185214996,
-0.276057630777359,
-0.2417631596326828,
0.49910464882850647,
-0.04355624318122864,
-0.012494891881942749,
-0.07391203939914703,
-0.24263440072536469,
-0.3518020510673523,
0.6364926695823669,
0.08899529278278351,
0.5242307782173157,
0.477663516998291,
0.06044992431998253,
0.5830128192901611,
-0.15524208545684814,
0.28221404552459717,
-0.7763884663581848,
-0.023523453623056412,
-0.3103730380535126,
0.13246412575244904,
-0.021710872650146484,
-0.22958606481552124,
0.23280122876167297,
0.3454686999320984,
-0.2449902892112732,
0.006512181833386421,
0.0266152024269104,
0.06391376256942749,
-0.03259655088186264,
0.3628297448158264,
-0.1441185027360916,
-0.2786218225955963,
-0.40632379055023193,
0.10320021212100983,
0.05685332790017128,
-0.3126537501811981,
0.03033251315355301,
-0.3509734272956848,
-0.08654823899269104,
-0.2357482612133026,
-0.26396846771240234,
0.4338124096393585,
-0.0716572105884552,
0.38862019777297974,
0.22395695745944977,
-0.0562000498175621,
0.36155059933662415,
-0.09915286302566528,
-0.1680009663105011,
-0.07536216080188751,
0.029198771342635155,
0.15066330134868622,
-0.027261793613433838,
-0.2743920683860779,
-0.021823788061738014,
0.11915859580039978,
0.1346258521080017,
-0.1488005518913269,
0.03841807693243027,
-0.024873346090316772,
-0.13940991461277008,
-0.37188708782196045,
0.27631011605262756,
0.20763030648231506,
-0.431410014629364,
-0.3709968030452728,
-0.19433054327964783,
0.11563308537006378,
-0.1496705561876297,
-0.09347643703222275,
0.11809143424034119,
-0.001550421118736267,
-0.27656060457229614,
-0.3599795699119568,
-0.07085901498794556,
-0.2900591790676117,
0.05386438965797424,
0.35441723465919495,
0.22163358330726624,
0.04316139966249466,
0.6239026784896851,
0.2414461225271225,
-0.0021352656185626984,
-0.321176677942276,
0.08172135800123215,
0.3431144654750824,
-0.4442771077156067,
0.3989848792552948,
-0.2075759619474411,
-0.16462016105651855,
0.12205400317907333,
0.09199841320514679,
0.22589968144893646,
0.16715934872627258,
-0.24596793949604034,
-0.5066790580749512,
-0.09202900528907776,
0.33023178577423096,
-0.26218804717063904,
-0.02449069544672966,
-0.13785821199417114,
0.22089937329292297,
-0.3556540310382843,
0.2872302830219269,
-0.24341578781604767,
0.22912700474262238,
-0.01726294867694378,
-0.048538073897361755,
-0.05816300958395004,
-0.13160264492034912,
0.10557010769844055,
0.0473976694047451,
0.14014804363250732,
0.1752711981534958,
0.017603803426027298,
-0.16238507628440857,
-0.11380532383918762,
0.13337570428848267,
0.16780433058738708,
0.1552288830280304,
-0.29862692952156067,
0.11635962128639221,
-0.1770164519548416,
0.03772273659706116,
0.13287955522537231,
-0.39393770694732666,
-0.054999642074108124,
0.13743680715560913,
0.4441261291503906,
0.2775047719478607,
-0.09676583856344223,
0.14930720627307892,
-0.12397240102291107,
0.4012754559516907,
-0.09297198802232742,
0.2098112404346466,
-0.15303058922290802,
0.001142546534538269,
0.035073645412921906,
0.1986958086490631,
-0.04425568878650665,
0.09521368145942688,
0.5684469938278198,
-0.1944066733121872,
-0.060728520154953,
-0.5084899663925171,
0.29555797576904297,
0.5219069719314575,
-0.0011156648397445679,
-0.042270056903362274,
-0.2038494348526001,
0.16712448000907898,
-0.16145870089530945,
-0.03935764357447624,
0.31965434551239014,
0.016418851912021637,
-0.09832867980003357,
0.25969502329826355,
0.09500761330127716,
-0.037849556654691696,
-0.2987877130508423,
0.1304665505886078,
0.18332931399345398,
0.07271712273359299,
0.20181816816329956,
0.6401516795158386,
-0.325771689414978,
0.049872323870658875,
0.37964943051338196,
0.11830383539199829,
0.6063776016235352,
0.28971636295318604,
0.12442854046821594,
0.0713099017739296,
0.4207839071750641,
0.052086181938648224,
0.07744956761598587,
-0.2015165537595749,
-0.48151856660842896,
0.09029834717512131,
0.2912350296974182,
-0.14242857694625854,
-0.11190961301326752,
0.3422735929489136,
0.14414441585540771,
-0.12927845120429993,
-0.20359446108341217,
0.39802858233451843,
-0.16030701994895935,
-0.20408859848976135,
-0.2676367163658142,
-0.1337142288684845,
-0.6330995559692383,
-0.18158656358718872,
-0.08125191926956177,
-0.024372950196266174,
-0.09150305390357971,
0.11156178265810013,
0.08362628519535065,
-0.2546157240867615,
0.1198744848370552,
0.049474116414785385,
-0.06789498776197433,
-0.2596524655818939,
0.46796900033950806,
0.09139613062143326,
0.03727518394589424,
0.04090669006109238,
0.1487785130739212,
0.4960680902004242,
0.2502409815788269,
-0.26351532340049744,
-0.21823813021183014,
-0.19870738685131073,
-0.1470845490694046,
-0.017943307757377625,
0.2585282325744629,
0.0494263730943203,
0.14893990755081177,
0.3585212528705597,
0.11411070823669434,
-0.1599733978509903,
0.04384039342403412,
0.1822645366191864,
0.08146996796131134,
0.1857507973909378,
0.6384842395782471,
-0.04779423773288727,
-0.1213487908244133,
0.22430673241615295,
-0.13197895884513855,
-0.2510053515434265,
-0.6355643272399902,
0.29188188910484314,
0.002624691231176257,
0.19698649644851685,
0.07607089728116989,
0.07502388954162598,
0.10198907554149628,
0.6383277177810669,
0.058626916259527206,
0.08993645012378693,
-0.10363059490919113,
-0.1408047080039978,
-0.03658656030893326,
-0.030020512640476227,
-0.37302836775779724,
0.010407144203782082,
0.17384451627731323,
0.09668135643005371,
0.16798828542232513,
0.2986496686935425,
-0.025165513157844543,
0.29137593507766724,
-0.2197558879852295,
-0.11883313953876495,
-0.48435652256011963,
0.06875886768102646,
0.2037041336297989,
0.09280645847320557,
-0.12021272629499435,
-0.1476222574710846,
0.06844890117645264,
0.2533194422721863,
0.023962274193763733,
0.09037594497203827,
-0.2485010176897049,
0.11686316132545471,
-0.32231253385543823,
0.17504435777664185,
0.0504138320684433,
0.11403407156467438,
-0.04940509796142578,
-0.18966639041900635,
-0.18875232338905334,
-0.5733943581581116,
-0.12193525582551956,
0.46866661310195923,
0.12841016054153442,
0.2680286765098572,
-0.15977342426776886,
0.11881045997142792,
-0.2943058907985687,
0.12106393277645111,
-0.4128645062446594,
0.038887765258550644,
-0.3458365797996521,
0.26152700185775757,
-0.1557043343782425,
0.2354157418012619,
-0.10956188291311264,
-0.06789389997720718,
-0.20193037390708923,
0.09509191662073135,
-0.2074781358242035,
-0.3111895024776459,
0.37605834007263184,
0.10880279541015625,
-0.2328539341688156,
0.46432963013648987,
0.1188010424375534,
0.11658404767513275,
0.23164886236190796,
-0.398322194814682,
-0.0301201194524765,
0.2543451189994812,
-0.18919986486434937,
-0.32227256894111633,
-0.03069494664669037,
0.15509852766990662,
-0.13845470547676086,
-0.09622779488563538,
0.15036620199680328,
0.04378754273056984,
-0.1663365662097931,
-0.1757200062274933,
0.01381586492061615
] |
https://github.com/huggingface/datasets/issues/355 | can't load SNLI dataset | I just added the processed files of `snli` on our google storage, so that when you do `load_dataset` it can download the processed files from there :)
We are thinking about having available those processed files for more datasets in the future, because sometimes files aren't available (like for `snli`), or the download speed is too slow, or sometimes the files take time to be processed. | `nlp` seems to load `snli` from some URL based on nlp.stanford.edu. This subdomain is frequently down -- including right now, when I'd like to load `snli` in a Colab notebook, but can't.
Is there a plan to move these datasets to huggingface servers for a more stable solution?
Btw, here's the stack trace:
```
File "/content/nlp/src/nlp/builder.py", line 432, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/content/nlp/src/nlp/builder.py", line 466, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/content/nlp/src/nlp/datasets/snli/e417f6f2e16254938d977a17ed32f3998f5b23e4fcab0f6eb1d28784f23ea60d/snli.py", line 76, in _split_generators
dl_dir = dl_manager.download_and_extract(_DATA_URL)
File "/content/nlp/src/nlp/utils/download_manager.py", line 217, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/content/nlp/src/nlp/utils/download_manager.py", line 156, in download
lambda url: cached_path(url, download_config=self._download_config,), url_or_urls,
File "/content/nlp/src/nlp/utils/py_utils.py", line 190, in map_nested
return function(data_struct)
File "/content/nlp/src/nlp/utils/download_manager.py", line 156, in <lambda>
lambda url: cached_path(url, download_config=self._download_config,), url_or_urls,
File "/content/nlp/src/nlp/utils/file_utils.py", line 198, in cached_path
local_files_only=download_config.local_files_only,
File "/content/nlp/src/nlp/utils/file_utils.py", line 356, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://nlp.stanford.edu/projects/snli/snli_1.0.zip
``` | 66 | can't load SNLI dataset
`nlp` seems to load `snli` from some URL based on nlp.stanford.edu. This subdomain is frequently down -- including right now, when I'd like to load `snli` in a Colab notebook, but can't.
Is there a plan to move these datasets to huggingface servers for a more stable solution?
Btw, here's the stack trace:
```
File "/content/nlp/src/nlp/builder.py", line 432, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/content/nlp/src/nlp/builder.py", line 466, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/content/nlp/src/nlp/datasets/snli/e417f6f2e16254938d977a17ed32f3998f5b23e4fcab0f6eb1d28784f23ea60d/snli.py", line 76, in _split_generators
dl_dir = dl_manager.download_and_extract(_DATA_URL)
File "/content/nlp/src/nlp/utils/download_manager.py", line 217, in download_and_extract
return self.extract(self.download(url_or_urls))
File "/content/nlp/src/nlp/utils/download_manager.py", line 156, in download
lambda url: cached_path(url, download_config=self._download_config,), url_or_urls,
File "/content/nlp/src/nlp/utils/py_utils.py", line 190, in map_nested
return function(data_struct)
File "/content/nlp/src/nlp/utils/download_manager.py", line 156, in <lambda>
lambda url: cached_path(url, download_config=self._download_config,), url_or_urls,
File "/content/nlp/src/nlp/utils/file_utils.py", line 198, in cached_path
local_files_only=download_config.local_files_only,
File "/content/nlp/src/nlp/utils/file_utils.py", line 356, in get_from_cache
raise ConnectionError("Couldn't reach {}".format(url))
ConnectionError: Couldn't reach https://nlp.stanford.edu/projects/snli/snli_1.0.zip
```
I just added the processed files of `snli` on our google storage, so that when you do `load_dataset` it can download the processed files from there :)
We are thinking about having available those processed files for more datasets in the future, because sometimes files aren't available (like for `snli`), or the download speed is too slow, or sometimes the files take time to be processed. | [
0.1304478794336319,
-0.04836516082286835,
0.059793632477521896,
0.4217785596847534,
0.16876037418842316,
-0.21573874354362488,
0.26701870560646057,
0.016133496537804604,
-0.024434436112642288,
-0.10663771629333496,
-0.38732531666755676,
-0.0008517438545823097,
0.14539474248886108,
0.4104735553264618,
0.3283262550830841,
-0.08485223352909088,
0.11947359889745712,
-0.0357169508934021,
0.013938821852207184,
-0.15748494863510132,
-0.34833624958992004,
0.3196730315685272,
-0.3757362365722656,
0.0969107449054718,
-0.029765183106064796,
0.019662726670503616,
-0.21430011093616486,
0.262281596660614,
-0.16116787493228912,
-0.13939261436462402,
0.4381113350391388,
0.1644984930753708,
0.32628920674324036,
0.09963793307542801,
-0.00011755899322452024,
0.029530517756938934,
0.10566224157810211,
-0.08709485828876495,
-0.5640885829925537,
0.09364961832761765,
-0.3248424232006073,
-0.2369275987148285,
-0.04122699797153473,
-0.05539432913064957,
-0.21174359321594238,
-0.034128595143556595,
0.08784395456314087,
-0.13384464383125305,
0.2620660066604614,
0.2927175760269165,
0.13121651113033295,
0.45702195167541504,
-0.5215481519699097,
0.08376722782850266,
0.022605877369642258,
-0.10759589076042175,
-0.1660808026790619,
0.28111910820007324,
0.05942041426897049,
-0.23487287759780884,
0.15840941667556763,
0.1544826179742813,
-0.30540773272514343,
-0.3910253345966339,
0.18584296107292175,
0.025187721475958824,
-0.05247057229280472,
-0.07814864814281464,
0.1044323667883873,
0.2801416516304016,
0.0698976218700409,
0.15276458859443665,
-0.2861174941062927,
-0.3133828341960907,
0.09730019420385361,
-0.044106267392635345,
0.1898171603679657,
0.17143844068050385,
0.12775933742523193,
0.3028596341609955,
-0.05016371235251427,
-0.2644033133983612,
-0.0007000863552093506,
0.2948251962661743,
-0.15439771115779877,
0.6570672988891602,
-0.14177843928337097,
0.13344624638557434,
0.3431956470012665,
-0.028640396893024445,
0.0854431688785553,
-0.009940601885318756,
0.07277709990739822,
0.10836422443389893,
-0.38827234506607056,
0.09510858356952667,
-0.139856219291687,
0.35787227749824524,
0.021769151091575623,
0.3268404006958008,
0.24666853249073029,
-0.048289090394973755,
0.007582853548228741,
0.19016596674919128,
0.07712844014167786,
0.19084523618221283,
0.0269671268761158,
-0.2320132553577423,
0.5072238445281982,
0.23948143422603607,
0.27193790674209595,
0.09627074748277664,
-0.2195161134004593,
-0.2679297924041748,
-0.5367230176925659,
-0.3278498947620392,
0.07820706069469452,
-0.20933283865451813,
-0.14501702785491943,
-0.1577027291059494,
-0.07197742909193039,
0.11553040146827698,
0.18228571116924286,
0.28344038128852844,
-0.06271464377641678,
0.5076019763946533,
0.1111341267824173,
0.1902719885110855,
-0.23500171303749084,
-0.20106180012226105,
-0.15717288851737976,
0.015019187703728676,
-0.34104564785957336,
0.37105533480644226,
0.11819161474704742,
-0.3645627200603485,
0.16728869080543518,
-0.04715001955628395,
-0.14679054915905,
0.16597874462604523,
-0.14715059101581573,
0.3010144829750061,
-0.03390384465456009,
0.16082341969013214,
-0.04067511484026909,
0.1551700085401535,
-0.028171148151159286,
-0.14015834033489227,
-0.13046181201934814,
-0.16631966829299927,
-0.15136370062828064,
-0.32994887232780457,
-0.08572839945554733,
0.031014367938041687,
-0.33380651473999023,
-0.24958762526512146,
-0.4519355595111847,
0.0037009157240390778,
0.026770636439323425,
-0.10502195358276367,
-0.06728916615247726,
-0.07896201312541962,
-0.23878590762615204,
-0.1213369220495224,
0.30648672580718994,
0.5235173106193542,
0.20271480083465576,
-0.3623376786708832,
-0.235578253865242,
0.03768675774335861,
0.1617944985628128,
0.6363996863365173,
-0.11884143948554993,
-0.40012452006340027,
-0.1824989765882492,
0.1775023490190506,
0.20022954046726227,
-0.17948706448078156,
-0.32569506764411926,
0.27528277039527893,
-0.361366868019104,
-0.1439986526966095,
0.22235354781150818,
0.19318869709968567,
-0.16391199827194214,
-0.049950189888477325,
0.18925052881240845,
0.6330452561378479,
0.1260441094636917,
-0.08561278879642487,
-0.4507155120372772,
-0.3640877306461334,
0.004756677895784378,
0.22296223044395447,
0.11327715218067169,
-0.037118323147296906,
-0.12916696071624756,
0.23092788457870483,
0.2957029938697815,
-0.14453628659248352,
0.054640479385852814,
-0.06288442015647888,
0.22877109050750732,
0.2753056287765503,
-0.01802334561944008,
0.1458810567855835,
-0.37360867857933044,
0.16017967462539673,
-0.015663161873817444,
0.4346548616886139,
0.07746866345405579,
0.04048380255699158,
-0.1789989471435547,
-0.009473076090216637,
-0.1319323480129242,
-0.1548585593700409,
-0.04531241953372955,
0.3207745850086212,
0.23290640115737915,
0.1456717699766159,
-0.2976038157939911,
0.2277684360742569,
-0.23710285127162933,
0.24964728951454163,
-0.5744192600250244,
0.5656721591949463,
0.11775786429643631,
0.2276492565870285,
-0.011413291096687317,
0.31987273693084717,
0.03070918470621109,
-0.13565582036972046,
0.1645546853542328,
0.09949134290218353,
-0.35582873225212097,
0.2359803169965744,
0.4676779508590698,
0.08755273371934891,
0.26380181312561035,
-0.2606588900089264,
0.4226081371307373,
-0.0008725672960281372,
-0.05667046830058098,
0.01651190221309662,
0.1377955973148346,
0.5027768015861511,
-0.12108884751796722,
0.4202394485473633,
0.24706287682056427,
0.23842719197273254,
0.4183711111545563,
-0.06206819787621498,
-0.05415428429841995,
-0.07592163234949112,
0.20868979394435883,
0.24368365108966827,
0.41835343837738037,
0.42911750078201294,
-0.4238767623901367,
0.10120263695716858,
0.057386383414268494,
-0.29550719261169434,
0.03750840201973915,
0.03059214912354946,
-0.3085519075393677,
-0.22869080305099487,
0.3273904025554657,
0.4721657335758209,
0.20522983372211456,
0.0524364598095417,
-0.04898880049586296,
-0.06646546721458435,
-0.1507895588874817,
-0.5673173666000366,
0.3456598222255707,
-0.03265766054391861,
-0.06887837499380112,
-0.0018086060881614685,
0.25202661752700806,
-0.030082978308200836,
-0.6293241381645203,
-0.0304292980581522,
-0.08396715670824051,
-0.03293701261281967,
-0.22632156312465668,
0.19762378931045532,
-0.3592187166213989,
-0.634014904499054,
-0.5378742218017578,
0.08218909800052643,
-0.329806923866272,
-0.5116075873374939,
0.09212484955787659,
0.1828797608613968,
0.022649407386779785,
-0.06347298622131348,
-0.006747819483280182,
0.6645871996879578,
-0.4301496148109436,
-0.060420259833335876,
-0.14701718091964722,
-0.5190830826759338,
-0.37706270813941956,
0.06344769895076752,
0.3587058186531067,
0.2007739543914795,
0.10397777706384659,
-0.2691948711872101,
-0.15761017799377441,
-0.31663328409194946,
-0.4544118344783783,
0.09335342049598694,
-0.008702628314495087,
0.09787954390048981,
-0.0349690318107605,
0.35976237058639526,
0.11735625565052032,
-0.13162367045879364,
0.2207653522491455,
-0.14579427242279053,
0.16166825592517853,
0.3093685209751129,
-0.14113345742225647,
-0.06294839829206467,
0.09916526079177856,
-0.19209259748458862,
-0.39868876338005066,
-0.2858094573020935,
0.15824317932128906,
-0.47089406847953796,
-0.08652558922767639,
0.4178462326526642,
-0.12099709361791611,
0.12822984158992767,
-0.014049233868718147,
-0.16536791622638702,
-0.006905542686581612,
-0.12219664454460144,
0.3401517868041992,
-0.08454443514347076,
-0.16880570352077484,
-0.01797179877758026,
0.11937962472438812,
0.2667141556739807,
-0.09781098365783691,
-0.5858650803565979,
-0.007026094011962414,
-0.09593309462070465,
0.08756853640079498,
0.3945233225822449,
-0.062265545129776,
-0.020065397024154663,
-0.17663514614105225,
0.014921722933650017,
0.11362887173891068,
-0.15195943415164948,
-0.04349035769701004,
0.1634540855884552,
0.31326189637184143,
0.1599600613117218,
0.2865482568740845,
-0.005542140454053879,
0.48171037435531616,
0.10035060346126556,
-0.10315392911434174,
0.46577638387680054,
0.14122773706912994,
0.12982718646526337,
0.05498691648244858,
-0.40655478835105896,
0.19029615819454193,
0.03336862474679947,
-0.3419709801673889,
0.42725473642349243,
0.18192678689956665,
0.12055102735757828,
-0.3684728145599365,
-0.20222383737564087,
0.16976457834243774,
-0.2676973342895508,
0.0530463382601738,
0.29857903718948364,
0.06030929833650589,
0.09722688794136047,
-0.10550499707460403,
-0.03779284656047821,
-0.15850144624710083,
-0.05209955945611,
0.41013234853744507,
0.09776346385478973,
0.02504887990653515,
-0.26116347312927246,
-0.09200450778007507,
-0.5408346652984619,
0.3158053755760193,
0.05276378616690636,
0.20280343294143677,
-0.08107686042785645,
-0.03010786697268486,
0.25437530875205994,
0.06791742146015167,
0.2663502097129822,
-0.10480435937643051,
0.14239734411239624,
0.04107842966914177,
-0.09739196300506592,
-0.4929029941558838,
0.06520606577396393,
0.12379187345504761,
-0.07173029333353043,
0.479284405708313,
0.3520556092262268,
-0.039482101798057556,
-0.24281850457191467,
0.14532314240932465,
0.23051920533180237,
-0.2435874044895172,
0.06693492084741592,
-0.19300884008407593,
-0.5233627557754517,
-0.19677729904651642,
-0.1565241813659668,
-0.17260470986366272,
0.0737295150756836,
-0.09556010365486145,
0.05605647340416908,
0.06314531713724136,
-0.1865675151348114,
0.1151093915104866,
0.3434087932109833,
0.023311495780944824,
0.2734462320804596,
-0.1275286078453064,
0.07950817048549652,
0.35382309556007385,
0.13472677767276764,
0.7317378520965576,
-0.1766156554222107,
-0.34192997217178345,
0.1424732506275177,
0.309110552072525,
0.4259912669658661,
0.5515429973602295,
0.012210213579237461,
-0.002742178738117218,
0.2469412088394165,
0.1691741943359375,
-0.07101988792419434,
0.02485620602965355,
0.1896544247865677,
-0.027158163487911224,
-0.24380895495414734,
-0.33878251910209656,
0.6757811903953552,
0.17535990476608276,
-0.06867119669914246,
-0.019682012498378754,
0.18797896802425385,
-0.19974754750728607,
0.31748640537261963,
0.19638532400131226,
1.1126017570495605,
-0.3865775465965271,
0.25271522998809814,
0.47545957565307617,
0.13002723455429077,
0.7861913442611694,
-0.04764801263809204,
0.039313286542892456,
-0.17577695846557617,
-0.038687922060489655,
-0.015869703143835068,
0.10263858735561371,
-0.25454235076904297,
0.09309974312782288,
0.119312584400177,
0.37657204270362854,
0.146259143948555,
0.12448345124721527,
0.17723239958286285,
0.45528024435043335,
-0.0149791669100523,
-0.17152723670005798,
-0.9147059321403503,
0.08993041515350342,
-0.04436245560646057,
0.1974341869354248,
-0.11496766656637192,
-0.1363944560289383,
-0.14375974237918854,
0.25311988592147827,
-0.06407678127288818,
0.30957096815109253,
0.0926273763179779,
0.2168550044298172,
-0.30981263518333435,
-0.09306780248880386,
-0.11080461740493774,
0.21110551059246063,
0.4911544919013977,
-0.1463083177804947,
-0.28701260685920715,
0.010025357827544212,
-0.2619122862815857,
-0.1846577376127243,
-0.004082518629729748,
0.11465968936681747,
0.25684672594070435,
0.029944762587547302,
-0.03221487998962402,
-0.0952637568116188,
0.29023098945617676,
-0.2916538417339325,
-0.34342867136001587,
-0.14098788797855377,
-0.34795719385147095,
-0.05936507508158684,
0.18422265350818634,
0.17046669125556946,
0.09887294471263885,
-0.15928921103477478,
0.04380371421575546,
0.020106229931116104,
0.1397148221731186,
-0.3530653417110443,
0.1558360606431961,
-0.2608718276023865,
-0.09024764597415924,
0.42247748374938965,
-0.12901374697685242,
0.236750990152359,
0.21371319890022278,
0.2999235689640045,
0.04160797595977783,
-0.144356369972229,
-0.20402583479881287,
-0.12507803738117218,
-0.34934699535369873,
0.22677412629127502,
0.026973044499754906,
-0.2679871916770935,
-0.1560666859149933,
0.45935022830963135,
0.20665691792964935,
-0.32659849524497986,
-0.12991151213645935,
-0.43087711930274963,
0.0066581908613443375,
0.3610087037086487,
-0.09636190533638,
0.031127747148275375,
0.3280959725379944,
0.04809572175145149,
-0.08674541115760803,
-0.11573365330696106,
-0.21618127822875977,
0.02987358532845974,
-0.23764973878860474,
-0.005872208625078201,
0.3596515655517578,
-0.14707082509994507,
0.19621902704238892,
0.12211491167545319,
-0.01420422550290823,
-0.2798117399215698,
0.04944654926657677,
-0.07293500006198883,
-0.175434410572052,
0.17079955339431763,
0.2585074305534363,
-0.20103195309638977,
-0.16814103722572327,
-0.28214550018310547,
0.06484775245189667,
-0.2887357771396637,
0.0232706181704998,
0.060446299612522125,
0.04970751702785492,
0.14759959280490875,
-0.16806164383888245,
-0.21705979108810425,
-0.03246413916349411,
0.4655558466911316,
0.07115103304386139,
-0.08064915239810944,
0.26550519466400146,
0.14155837893486023,
0.2142716944217682,
-0.08843598514795303,
-0.18475444614887238,
0.04753175377845764,
0.04506411403417587,
0.005698103457689285,
0.2424168586730957,
-0.22424723207950592,
-0.18045997619628906,
0.2852197587490082,
0.06550747901201248,
0.6470023393630981,
0.22479641437530518,
0.013737430796027184,
-0.003177748993039131,
0.00663292221724987,
-0.1387806236743927,
-0.019351091235876083,
0.33278748393058777,
0.06998693197965622,
-0.27757400274276733,
0.28484949469566345,
0.31588950753211975,
-0.2858681082725525,
0.0928020104765892,
-0.03610503673553467,
0.20296475291252136,
0.1325015127658844,
0.2233758568763733,
0.20391514897346497,
0.2522875964641571,
0.15989981591701508,
0.05331498384475708,
-0.026981569826602936,
0.35745659470558167,
-0.0929628312587738,
-0.20844349265098572,
0.28468742966651917,
-0.416414350271225,
0.36200565099716187,
0.18143796920776367,
-0.09258874505758286,
-0.1739552915096283,
0.2266274094581604,
-0.10835900902748108,
-0.023672685027122498,
0.04932868480682373,
0.8438775539398193,
-0.3339233100414276,
-0.24099229276180267,
-0.35824206471443176,
0.6556254625320435,
-0.24541765451431274,
-0.29101720452308655,
-0.5016083717346191,
-0.13647156953811646,
-0.1797761470079422,
0.20415975153446198,
-0.3215109705924988,
-0.2917786240577698,
0.28840330243110657,
0.20907840132713318,
-0.030505597591400146,
-0.612314760684967,
-0.17653334140777588,
0.3434593379497528,
0.11245134472846985,
-0.11380518972873688,
0.31364789605140686,
0.058006975799798965,
-0.2041262686252594,
0.11886066198348999,
0.09687953442335129,
0.3500444293022156,
0.20109091699123383,
-0.014696616679430008,
-0.047713566571474075,
0.12547697126865387,
-0.0012670587748289108,
-0.2866499722003937,
0.12652666866779327,
-0.06532670557498932,
0.20598195493221283,
0.2354421466588974,
0.07742638885974884,
-0.05314197018742561,
0.05600401759147644,
-0.005143072456121445,
0.13397163152694702,
-0.23937886953353882,
0.23333993554115295,
0.0041831862181425095,
-0.03707663342356682,
-0.33449193835258484,
0.05349145829677582,
-0.3265331983566284,
0.14245836436748505,
0.10188528895378113,
-0.2222624272108078,
0.0846448764204979,
-0.1736573427915573,
0.013878487050533295,
0.18511952459812164,
0.7972937226295471,
0.3956435024738312,
0.0028442740440368652,
-0.2536245584487915,
-0.33622419834136963,
-0.7480286955833435,
-0.03034014254808426,
-0.04552643373608589,
0.03141065686941147,
-0.09896968305110931,
0.026457810774445534,
0.014754511415958405,
0.08649618178606033,
-0.5139557719230652,
0.3119204044342041,
0.04543006792664528,
-0.14385831356048584,
-0.24886220693588257,
-0.046001654118299484,
0.0006236806511878967,
-0.10934238135814667,
-0.030833903700113297,
-0.18518924713134766,
0.19703035056591034,
-0.0995524525642395,
-0.15930625796318054,
0.04058987647294998,
0.1372336596250534,
-0.1498672366142273,
-0.19605936110019684,
0.3116004765033722,
0.21885406970977783,
0.2902209758758545,
0.09415116161108017,
-0.1532386839389801,
-0.39997398853302,
-0.37629738450050354,
-0.21542131900787354,
-0.035147301852703094,
-0.16200484335422516,
-0.010552216321229935,
-0.02652379497885704,
0.39102813601493835,
-0.26981744170188904,
0.18679699301719666,
0.12917736172676086,
0.16262857615947723,
-0.22147135436534882,
-0.14154602587223053,
-0.28221532702445984,
0.0769389197230339,
0.1828296035528183,
0.3219571113586426,
-0.10198156535625458,
-0.16485649347305298,
-0.03888539597392082,
-0.29847317934036255,
0.31040269136428833,
-0.6674914360046387,
-0.005182500928640366,
0.23180921375751495,
0.1003698781132698,
0.19054265320301056,
-0.004460904747247696,
-0.28032028675079346,
0.021677963435649872,
-0.04023114591836929,
0.05361463129520416,
-0.05722351372241974,
0.25589993596076965,
0.22450527548789978,
-0.27065128087997437,
-0.22824053466320038,
-0.21763688325881958,
0.2312408983707428,
-0.30378779768943787,
0.1339840143918991,
-0.3156905770301819
] |
https://github.com/huggingface/datasets/issues/353 | [Dataset requests] New datasets for Text Classification | - `nlp` has MR! It's called `rotten_tomatoes`
- SST is part of GLUE, or is that just SST-2?
- `nlp` also has `ag_news`, a popular news classification dataset
I'd also like to see:
- the Yahoo Answers topic classification dataset
- the Kaggle Fake News classification dataset | We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705 | 47 | [Dataset requests] New datasets for Text Classification
We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705
- `nlp` has MR! It's called `rotten_tomatoes`
- SST is part of GLUE, or is that just SST-2?
- `nlp` also has `ag_news`, a popular news classification dataset
I'd also like to see:
- the Yahoo Answers topic classification dataset
- the Kaggle Fake News classification dataset | [
0.052762944251298904,
0.1770237386226654,
-0.14922824501991272,
0.2923189401626587,
0.17709796130657196,
0.2543240785598755,
0.22255896031856537,
0.11882689595222473,
-0.1443072110414505,
-0.12141579389572144,
-0.15367600321769714,
0.0564630851149559,
-0.16629146039485931,
0.1704208254814148,
0.08375129103660583,
-0.24068444967269897,
0.05147276073694229,
-0.05878424644470215,
-0.09516038000583649,
-0.22925381362438202,
-0.132749542593956,
0.2470688819885254,
-0.11449253559112549,
-0.24908329546451569,
-0.3917078375816345,
-0.030081266537308693,
-0.19710949063301086,
0.08251135051250458,
-0.23308740556240082,
-0.5466545820236206,
0.12980590760707855,
0.13126647472381592,
0.20014116168022156,
0.3561387360095978,
-0.00010372117685619742,
-0.2407379299402237,
0.02685241959989071,
-0.014462705701589584,
-0.17142578959465027,
-0.1655447632074356,
-0.20614472031593323,
-0.5361248850822449,
-0.0227509718388319,
-0.08011195063591003,
-0.12756867706775665,
0.041059914976358414,
0.054338160902261734,
-0.24474145472049713,
-0.013065241277217865,
0.3233349025249481,
0.24470502138137817,
-0.06618641316890717,
-0.058423835784196854,
-0.14122198522090912,
0.29887932538986206,
0.5512338280677795,
-0.3106318712234497,
-0.06306305527687073,
0.5326189994812012,
0.1365842968225479,
-0.0013358071446418762,
0.309085875749588,
-0.20091445744037628,
-0.08904393017292023,
0.16074422001838684,
0.21958880126476288,
-0.29087942838668823,
-0.385392427444458,
0.03846927359700203,
0.33020344376564026,
0.7269303202629089,
-0.29914435744285583,
-0.4356435239315033,
-0.2929203510284424,
0.17904190719127655,
-0.20916865766048431,
-0.17629888653755188,
0.2850818634033203,
-0.012793553993105888,
0.1451200246810913,
-0.1474386751651764,
-0.2335711419582367,
-0.21259574592113495,
0.23841196298599243,
0.299706369638443,
0.09458737075328827,
0.013455715030431747,
-0.19839641451835632,
-0.09502948820590973,
0.12801991403102875,
0.3503785729408264,
-0.3807174265384674,
0.20489439368247986,
-0.0010363180190324783,
-0.19959650933742523,
-0.20891587436199188,
-0.04660366475582123,
0.025889098644256592,
-0.0650750920176506,
0.010043438524007797,
-0.23203250765800476,
0.08539581298828125,
-0.19176582992076874,
-0.08208482712507248,
0.030584609135985374,
-0.10319948196411133,
0.2131822109222412,
0.34291160106658936,
0.10361623764038086,
-0.2787938117980957,
0.15654966235160828,
0.033534128218889236,
-0.175902858376503,
0.2272801250219345,
-0.02015511319041252,
0.05451158806681633,
-0.13346730172634125,
-0.22949561476707458,
0.04641454666852951,
-0.1172536239027977,
0.02020585536956787,
-0.10668028891086578,
-0.1993536800146103,
-0.06663409620523453,
-0.049997471272945404,
0.14994144439697266,
-0.19128254055976868,
0.24061989784240723,
0.003572918474674225,
-0.4072590470314026,
-0.1258370578289032,
-0.05201702192425728,
-0.10642202198505402,
0.1718493551015854,
0.6023262143135071,
-0.1670338362455368,
0.17919041216373444,
-0.13791780173778534,
-0.16813847422599792,
0.1534091830253601,
-0.07666029781103134,
0.006188534200191498,
0.06368149816989899,
0.12826022505760193,
-0.14714780449867249,
0.12477242201566696,
0.15509842336177826,
0.13346856832504272,
-0.20325595140457153,
0.2613944113254547,
-0.05147791653871536,
-0.21164080500602722,
-0.24260829389095306,
0.2461383044719696,
-0.012763729318976402,
-0.5387890338897705,
-0.16427546739578247,
0.6117163896560669,
-0.03404689580202103,
-0.11514705419540405,
0.16985690593719482,
-0.019207101315259933,
-0.08499953150749207,
-0.1658165454864502,
-0.049200087785720825,
0.44304847717285156,
-0.48106977343559265,
-0.2499636560678482,
-0.3836504817008972,
0.13588926196098328,
0.17847436666488647,
0.16470538079738617,
-0.19559749960899353,
0.0349024273455143,
0.08225281536579132,
0.016714908182621002,
0.2063213437795639,
-0.02450580894947052,
-0.2242671102285385,
-0.09163446724414825,
0.08196219801902771,
-0.11401014775037766,
0.10385042428970337,
0.31705522537231445,
0.11335988342761993,
-0.07568325847387314,
-0.15962663292884827,
0.1264421045780182,
-0.29822060465812683,
-0.048829108476638794,
-0.12450863420963287,
-0.04463905096054077,
0.20998993515968323,
0.42075929045677185,
0.49518612027168274,
-0.08521523326635361,
0.07350382208824158,
-0.20818902552127838,
0.09259520471096039,
0.0692991092801094,
0.2265700399875641,
0.09307810664176941,
0.1255873143672943,
0.22164884209632874,
0.05580822750926018,
-0.3216340243816376,
-0.200042724609375,
0.05031389743089676,
0.3117818236351013,
0.3458414077758789,
0.003386162221431732,
-0.1304202675819397,
-0.1460164487361908,
-0.12069965898990631,
0.043524712324142456,
-0.0300360806286335,
0.15963730216026306,
-0.12219029664993286,
0.11884184181690216,
0.18756039440631866,
-0.3006010949611664,
0.20694945752620697,
-0.3214777708053589,
0.35907384753227234,
0.18758465349674225,
0.32834237813949585,
-0.03526046872138977,
-0.00599683728069067,
0.16684670746326447,
0.31522178649902344,
-0.031122520565986633,
0.0017884965054690838,
0.011521115899085999,
-0.04219680279493332,
-0.15212009847164154,
-0.037804022431373596,
0.3529801070690155,
0.3763912320137024,
0.3767843246459961,
-0.5228685736656189,
0.28616878390312195,
-0.0594792477786541,
0.06894339621067047,
-0.18870994448661804,
-0.07368313521146774,
0.31149613857269287,
-0.0839347392320633,
0.08179855346679688,
-0.004046250134706497,
0.051479272544384,
-0.025647619739174843,
-0.004090931266546249,
0.03689161688089371,
0.11112736165523529,
0.27547863125801086,
-0.16136081516742706,
0.17108307778835297,
0.0034513957798480988,
-0.12631717324256897,
0.20794761180877686,
0.2214200347661972,
-0.054087698459625244,
0.17903423309326172,
0.26938945055007935,
-0.43632668256759644,
-0.04466475546360016,
-0.03600175678730011,
0.16783161461353302,
0.3374682664871216,
0.4586305022239685,
-0.00755682960152626,
-0.09211627393960953,
0.1000894233584404,
-0.33189886808395386,
0.05394461378455162,
0.39466995000839233,
0.0238217581063509,
0.001680724322795868,
0.27782124280929565,
0.24336807429790497,
-0.26116594672203064,
-0.11990761756896973,
0.18325912952423096,
-0.07904063165187836,
0.04157036170363426,
-0.05270341783761978,
-0.07341023534536362,
-0.38315656781196594,
-0.011878174729645252,
-0.06083953008055687,
-0.09111273288726807,
-0.2869117558002472,
0.2335093766450882,
-0.2812654376029968,
0.10548698902130127,
0.09377991408109665,
-0.3011007606983185,
0.4749557375907898,
-0.2583189308643341,
0.09359347075223923,
-0.08099336922168732,
-0.2227911353111267,
-0.2262815237045288,
0.26441270112991333,
0.06431317329406738,
-0.002693710383027792,
0.4211895167827606,
-0.09279868751764297,
0.32033640146255493,
-0.26783958077430725,
-0.469183087348938,
-0.016122199594974518,
-0.21011079847812653,
-0.010174339637160301,
-0.15098132193088531,
-0.1415690779685974,
0.01481277123093605,
-0.13146255910396576,
0.001189456321299076,
-0.13847780227661133,
-0.13760200142860413,
-0.022323958575725555,
-0.20064765214920044,
-0.19173185527324677,
-0.012995373457670212,
-0.6513707041740417,
-0.5205707550048828,
-0.06593973934650421,
0.09645453095436096,
0.009831588715314865,
-0.020839884877204895,
0.3068895637989044,
-0.15841257572174072,
-0.09489454329013824,
-0.14829044044017792,
0.08300323039293289,
-0.07268761098384857,
-0.3189515173435211,
0.144246444106102,
-0.1456788331270218,
-0.19679616391658783,
-0.07865190505981445,
-0.04129841923713684,
-0.10704393684864044,
-0.07462415844202042,
-0.530943751335144,
0.14418523013591766,
-0.268520325422287,
0.18199531733989716,
0.12278059124946594,
-0.11496904492378235,
0.4368276596069336,
0.29208481311798096,
-0.12086096405982971,
0.06266715377569199,
-0.170106902718544,
-0.11985274404287338,
0.055591337382793427,
0.16543367505073547,
-0.27785524725914,
0.10614271461963654,
0.23857510089874268,
0.5572983622550964,
0.08777695894241333,
-0.11163876950740814,
0.09039472788572311,
0.28512296080589294,
0.3834926187992096,
0.012523651123046875,
-0.4623272716999054,
0.22606730461120605,
-0.20445379614830017,
0.1779329925775528,
0.2970433831214905,
0.2645267844200134,
-0.31428760290145874,
-0.20049509406089783,
0.11375012993812561,
-0.29480433464050293,
-0.04594980925321579,
0.17836546897888184,
-0.13880954682826996,
0.28124210238456726,
0.05739743635058403,
-0.13144239783287048,
-0.23324280977249146,
-0.4535071849822998,
-0.11186547577381134,
0.30318301916122437,
0.2348780632019043,
-0.15522895753383636,
-0.6461658477783203,
0.03829895332455635,
-0.4787887930870056,
0.08939062058925629,
0.17471495270729065,
-0.07813674211502075,
-0.19472678005695343,
0.24040919542312622,
-0.11462439596652985,
0.44447213411331177,
0.01936616748571396,
-0.45128515362739563,
-0.3338708281517029,
0.24098730087280273,
0.05854955315589905,
-0.09430154412984848,
0.13334861397743225,
-0.3841448724269867,
-0.065591000020504,
0.2734691798686981,
-0.07312722504138947,
0.09677194803953171,
-0.012211785651743412,
0.4771542549133301,
-0.011773137375712395,
-0.00017488747835159302,
-0.3162130117416382,
0.3753693401813507,
0.12425518780946732,
-0.17656145989894867,
-0.21057727932929993,
0.07500489056110382,
0.036450427025556564,
-0.23722347617149353,
-0.019651593640446663,
0.1807059943675995,
0.015431884676218033,
0.3284825086593628,
-0.29062703251838684,
-0.2960876524448395,
0.23439757525920868,
0.21301813423633575,
0.07004500925540924,
-0.041920408606529236,
0.2807828485965729,
0.5084701776504517,
-0.20919255912303925,
-0.5425742268562317,
-0.01609223708510399,
-0.11367754638195038,
0.5346783995628357,
0.21243752539157867,
0.2784399688243866,
0.23420313000679016,
-0.1407710760831833,
-0.18895982205867767,
-0.14100246131420135,
0.21692527830600739,
0.11516494303941727,
-0.09615473449230194,
-0.48780253529548645,
-0.31945300102233887,
0.31966012716293335,
-0.07894596457481384,
-0.10060306638479233,
-0.02451310306787491,
0.23792177438735962,
-0.1844979077577591,
0.13450898230075836,
-0.18801435828208923,
0.8308117389678955,
-0.06469358503818512,
0.12245216965675354,
-0.34626463055610657,
0.0034006163477897644,
0.5688194036483765,
-0.2504183053970337,
0.18340171873569489,
-0.0013321898877620697,
-0.28329959511756897,
-0.0686311349272728,
-0.05490519851446152,
0.00996808335185051,
0.4351370930671692,
0.09732823073863983,
0.25587189197540283,
0.18979255855083466,
0.2015051245689392,
0.062480628490448,
0.15968596935272217,
0.0927688255906105,
-0.3814062476158142,
0.042538054287433624,
0.24349838495254517,
0.01950274035334587,
0.300916463136673,
-0.01749386265873909,
0.08834777027368546,
-0.2239387035369873,
0.1797340214252472,
-0.7378606200218201,
-0.16111677885055542,
-0.1183718591928482,
0.09953439980745316,
-0.011290688067674637,
-0.37186741828918457,
0.4561339020729065,
0.35142403841018677,
0.5682693123817444,
0.06491460651159286,
-0.2017299234867096,
0.030952557921409607,
-0.2211613655090332,
-0.15868443250656128,
0.15189407765865326,
-0.12319499999284744,
0.24172230064868927,
0.015314459800720215,
-0.2222808301448822,
0.17783938348293304,
0.004278441891074181,
-0.2087233066558838,
-0.4498823583126068,
-0.33052927255630493,
0.28000640869140625,
-0.3033123016357422,
0.34711700677871704,
0.1718563735485077,
0.06266799569129944,
-0.31167295575141907,
0.19674359261989594,
0.2942274808883667,
0.3189516067504883,
0.12055401504039764,
0.21120229363441467,
-0.031554803252220154,
-0.4240739047527313,
0.17377538979053497,
0.24210819602012634,
-0.28079962730407715,
0.41273340582847595,
0.4719043970108032,
-0.1487906277179718,
-0.22141584753990173,
0.24559125304222107,
0.1872132122516632,
-0.2705709934234619,
-0.07419636845588684,
-0.14883477985858917,
-0.033128708600997925,
0.19288110733032227,
0.3041178584098816,
0.3911808729171753,
-0.2794887125492096,
0.018892552703619003,
-0.23338736593723297,
-0.056588225066661835,
0.17640003561973572,
-0.13733232021331787,
0.09515409171581268,
-0.23735815286636353,
0.13734199106693268,
0.09380865842103958,
0.26224327087402344,
-0.34980836510658264,
0.12992726266384125,
0.1491350382566452,
0.055143848061561584,
0.23749412596225739,
0.025193750858306885,
0.1273239105939865,
-0.25585511326789856,
0.03498045355081558,
0.01039542444050312,
0.0395616814494133,
-0.24905508756637573,
0.07596547901630402,
0.13101375102996826,
0.014181877486407757,
0.022044390439987183,
-0.05996022745966911,
0.11740636825561523,
-0.12176695466041565,
-0.028525300323963165,
-0.10223735868930817,
0.12608477473258972,
0.05799034982919693,
0.5187696814537048,
-0.18748626112937927,
-0.039988934993743896,
0.13103310763835907,
0.06022168695926666,
-0.27833712100982666,
0.4006107449531555,
0.3284614086151123,
0.12020494043827057,
0.4760245680809021,
0.09492707252502441,
-0.23072549700737,
0.17639872431755066,
0.0927726998925209,
-0.08783958852291107,
0.6063159108161926,
-0.24096111953258514,
0.2653624713420868,
0.4911389946937561,
0.0821070596575737,
-0.2604224979877472,
-0.0842222049832344,
0.12153732776641846,
-0.01341451145708561,
0.27123957872390747,
-0.35057395696640015,
-0.2042555958032608,
0.019394157454371452,
0.2798808813095093,
0.045172568410634995,
0.19557595252990723,
0.29106929898262024,
0.03671102970838547,
0.2092919647693634,
0.11251760274171829,
0.4954882264137268,
-0.06874597072601318,
0.3932677209377289,
-0.05353250727057457,
0.18630248308181763,
-0.09167283773422241,
0.2409771978855133,
0.10883089900016785,
-0.01607310026884079,
0.20826874673366547,
0.07181362062692642,
0.45691412687301636,
-0.11393307894468307,
0.12056729942560196,
0.3959614634513855,
-0.1470073163509369,
0.386001318693161,
0.2909429669380188,
-0.1010904312133789,
0.11790469288825989,
-0.09078460931777954,
0.2581430673599243,
-0.22042107582092285,
0.0017516259104013443,
-0.15541771054267883,
-0.07738667726516724,
-0.050407178699970245,
0.08522409200668335,
0.10882484912872314,
-0.32210734486579895,
0.0587647408246994,
-0.157582625746727,
-0.2597846984863281,
-0.3441855311393738,
0.23959895968437195,
-0.11941736936569214,
-0.21062202751636505,
-0.633916974067688,
0.19540178775787354,
0.13095307350158691,
0.39121830463409424,
-0.13573333621025085,
-0.07471691817045212,
0.09180615842342377,
-0.2612675428390503,
0.2775426506996155,
0.5547752976417542,
0.14468570053577423,
-0.15528780221939087,
0.005784716457128525,
0.04793722927570343,
-0.2726130187511444,
-0.20297114551067352,
0.19112823903560638,
0.2833511233329773,
0.3340109586715698,
0.10134400427341461,
-0.061723917722702026,
0.18659478425979614,
-0.04300206899642944,
0.08301785588264465,
0.08848162740468979,
0.004622994922101498,
-0.3006363809108734,
0.16517941653728485,
0.07953180372714996,
-0.2540404796600342,
-0.10774436593055725,
-0.04418634623289108,
-0.21267107129096985,
-0.20247764885425568,
0.5217414498329163,
-0.12493682652711868,
0.01199452392756939,
-0.12161070108413696,
0.12764081358909607,
-0.15107892453670502,
0.17817936837673187,
0.33209627866744995,
-0.2001379430294037,
-0.26375991106033325,
-0.14795225858688354,
-0.03203875571489334,
-0.1874036192893982,
0.14459273219108582,
0.19736318290233612,
-0.2097577005624771,
0.03292466700077057,
0.2578447163105011,
0.24608777463436127,
-0.34517741203308105,
-0.09858367592096329,
-0.09810003638267517,
-0.023528292775154114,
-0.5865007042884827,
-0.13418634235858917,
0.15481817722320557,
0.23238295316696167,
-0.012706867419183254,
0.19749879837036133,
-0.09831157326698303,
-0.017212171107530594,
0.022383123636245728,
-0.3528052568435669,
0.15007701516151428,
0.23429268598556519,
0.11285242438316345,
0.1448771357536316,
0.1082502156496048,
0.4487568140029907,
0.03127717226743698,
-0.12584611773490906,
-0.09535382688045502,
-0.43937957286834717,
-0.031177222728729248,
0.3536723554134369,
-0.03991648927330971,
0.3450666666030884,
-0.30382221937179565,
-0.24392087757587433,
0.3059535026550293,
0.0560055635869503,
0.09729714691638947,
-0.1216287836432457,
-0.5262704491615295,
0.01748202182352543,
-0.01595328375697136,
-0.07182709872722626,
0.2164773792028427,
-0.023660317063331604,
0.03699669986963272,
-0.12276335060596466,
-0.039737045764923096,
-0.3579164743423462,
0.05557398498058319,
-0.09234319627285004,
0.11851713061332703,
-0.24450956284999847,
0.06201246753334999,
0.35443973541259766,
0.2664339244365692,
-0.6245582699775696,
-0.009827926754951477,
0.548174262046814,
-0.1670348048210144,
0.03155058994889259,
0.40382125973701477,
0.1149759590625763,
-0.051566384732723236,
-0.09855332970619202,
0.39033499360084534,
-0.2673243582248688,
-0.23388753831386566,
-0.13892191648483276,
-0.15671437978744507
] |
https://github.com/huggingface/datasets/issues/353 | [Dataset requests] New datasets for Text Classification | Thanks @jxmorris12 for pointing this out.
In glue we only have SST-2 maybe we can add separately SST-1.
| We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705 | 18 | [Dataset requests] New datasets for Text Classification
We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705
Thanks @jxmorris12 for pointing this out.
In glue we only have SST-2 maybe we can add separately SST-1.
| [
0.08154144883155823,
0.02390599250793457,
-0.12607863545417786,
0.2537376880645752,
0.20224227011203766,
0.19094496965408325,
0.23134465515613556,
0.12882523238658905,
-0.019693583250045776,
-0.05246840417385101,
-0.23717403411865234,
0.028186427429318428,
-0.07936079055070877,
0.2284713238477707,
0.11582578718662262,
-0.33472296595573425,
0.03275185823440552,
-0.02782180905342102,
-0.21274328231811523,
-0.18555888533592224,
-0.11487933993339539,
0.3360116481781006,
-0.04539896175265312,
-0.2311265617609024,
-0.44253936409950256,
-0.057562656700611115,
-0.20633971691131592,
0.06686914712190628,
-0.28789106011390686,
-0.4556582570075989,
0.04289291054010391,
0.1286986768245697,
0.25208982825279236,
0.24923941493034363,
-0.00010378094884799793,
-0.2161204218864441,
0.05360037088394165,
-0.09130869805812836,
-0.0742766261100769,
-0.0727214366197586,
-0.14871978759765625,
-0.48499882221221924,
-0.02413773536682129,
-0.10061664134263992,
-0.22367137670516968,
0.20968423783779144,
0.060934193432331085,
-0.23311537504196167,
0.03754844516515732,
0.2961044907569885,
0.24345356225967407,
-0.01234392449259758,
-0.0020559020340442657,
-0.15907397866249084,
0.4260747730731964,
0.32112324237823486,
-0.3257282078266144,
0.037083640694618225,
0.623773455619812,
0.06637024134397507,
-0.000535331666469574,
0.3617640733718872,
-0.24382850527763367,
-0.02470340207219124,
0.1756160855293274,
0.20015588402748108,
-0.21939852833747864,
-0.44644778966903687,
0.07153570652008057,
0.3973943889141083,
0.6543516516685486,
-0.28770712018013,
-0.39103949069976807,
-0.3127821385860443,
0.13662244379520416,
-0.0791725143790245,
-0.09944846481084824,
0.19545790553092957,
0.03984009101986885,
0.22651149332523346,
-0.04924694076180458,
-0.24572081863880157,
-0.14704680442810059,
0.2701331377029419,
0.39457210898399353,
0.0568467415869236,
-0.03707728534936905,
-0.17750924825668335,
-0.00036097317934036255,
0.17988525331020355,
0.17665864527225494,
-0.28360772132873535,
0.134185791015625,
-0.017795942723751068,
-0.26633980870246887,
-0.17735792696475983,
-0.05412215739488602,
-0.019316203892230988,
-0.08409704267978668,
0.08448052406311035,
-0.24513058364391327,
0.10303884744644165,
-0.05861958861351013,
-0.04881548136472702,
-0.01761966198682785,
-0.038205768913030624,
0.25644588470458984,
0.3307933509349823,
0.051078274846076965,
-0.35285770893096924,
0.12010279297828674,
0.005009591579437256,
-0.16315427422523499,
0.13507603108882904,
-0.06594881415367126,
0.041873715817928314,
-0.2124112993478775,
-0.1809251308441162,
0.03818029910326004,
-0.14143235981464386,
-0.003242790699005127,
-0.055586718022823334,
-0.2538169026374817,
-0.0165536031126976,
0.06611989438533783,
0.11619048565626144,
-0.14127428829669952,
0.22304226458072662,
-0.019348861649632454,
-0.4236038029193878,
-0.12520164251327515,
0.0979868471622467,
-0.1602693498134613,
0.1528870314359665,
0.5480716228485107,
-0.22998224198818207,
0.1155250072479248,
-0.21856822073459625,
-0.29669833183288574,
0.15941211581230164,
-0.15561895072460175,
-0.0610743872821331,
0.08526827394962311,
0.20597195625305176,
-0.10452909767627716,
0.12818403542041779,
0.10779695212841034,
0.021277472376823425,
-0.20464099943637848,
0.1557885855436325,
-0.03856267035007477,
-0.31108200550079346,
-0.37267276644706726,
0.21381524205207825,
-0.10059159994125366,
-0.48642316460609436,
-0.187415212392807,
0.5722727179527283,
-0.02368859201669693,
-0.031017351895570755,
0.22050735354423523,
-0.01032470166683197,
-0.1518816500902176,
-0.19023719429969788,
0.011647095903754234,
0.430813193321228,
-0.470791220664978,
-0.23074401915073395,
-0.34532931447029114,
0.02351612225174904,
0.033686563372612,
0.24100513756275177,
-0.09222746640443802,
0.024578377604484558,
0.014025261625647545,
0.16023096442222595,
0.21622854471206665,
-0.06870908290147781,
-0.21464337408542633,
-0.07534908503293991,
0.08462074398994446,
-0.1966262012720108,
0.16344082355499268,
0.3142962157726288,
0.24293597042560577,
0.013259033672511578,
-0.15561988949775696,
0.17212340235710144,
-0.22835028171539307,
-0.033617205917835236,
-0.19664104282855988,
-0.13640627264976501,
0.14650368690490723,
0.3985646665096283,
0.4805237054824829,
-0.13056957721710205,
0.06893956661224365,
-0.3062625825405121,
-0.035540878772735596,
0.10581493377685547,
0.2744997441768646,
0.16417357325553894,
0.2053438127040863,
0.271471232175827,
0.10241222381591797,
-0.41876211762428284,
-0.21456563472747803,
0.05501183122396469,
0.3147016167640686,
0.41393595933914185,
0.07265737652778625,
-0.12198830395936966,
-0.1317274570465088,
-0.19137872755527496,
0.0834055095911026,
-0.04760848358273506,
0.13724863529205322,
-0.17881283164024353,
0.17032736539840698,
0.10936343669891357,
-0.2658053934574127,
0.29946792125701904,
-0.215272918343544,
0.4264622628688812,
0.21257765591144562,
0.3759658932685852,
-0.09185702353715897,
-0.11349191516637802,
0.17906448245048523,
0.3466804325580597,
-0.0683494433760643,
-0.056163787841796875,
0.03135004639625549,
0.14060354232788086,
-0.2134627252817154,
-0.058496132493019104,
0.26697424054145813,
0.3660670220851898,
0.3261844515800476,
-0.5137344598770142,
0.17031195759773254,
-0.07948866486549377,
0.07165385037660599,
-0.1760183870792389,
0.044997718185186386,
0.1891438513994217,
0.03671245276927948,
0.1446838080883026,
0.005855545401573181,
0.11481209844350815,
-0.10649374127388,
-0.082076296210289,
-0.00270822923630476,
0.11027121543884277,
0.3042796552181244,
-0.2344641238451004,
0.3341113030910492,
0.009560570120811462,
-0.07752735912799835,
0.2798481583595276,
0.18188902735710144,
-0.01920093223452568,
0.2518855631351471,
0.21472683548927307,
-0.5472894906997681,
-0.0057130176573991776,
0.0321519635617733,
0.2584812641143799,
0.34756094217300415,
0.50907301902771,
-0.049045760184526443,
-0.14782458543777466,
0.08174530416727066,
-0.31041866540908813,
0.07611773908138275,
0.3464793562889099,
-0.03183722496032715,
-0.0022068433463573456,
0.2686344087123871,
0.19269680976867676,
-0.24917322397232056,
0.026781465858221054,
0.08851079642772675,
-0.047075994312763214,
-0.02100737765431404,
-0.16031330823898315,
-0.04935058206319809,
-0.48775577545166016,
0.012578736990690231,
0.06612149626016617,
-0.10527212917804718,
-0.24379688501358032,
0.28722208738327026,
-0.3143336772918701,
0.028384383767843246,
0.09659621119499207,
-0.16574972867965698,
0.42718034982681274,
-0.252267450094223,
0.07500847429037094,
-0.055790726095438004,
-0.17064140737056732,
-0.23620381951332092,
0.23602935671806335,
0.033520959317684174,
0.08945132791996002,
0.49615854024887085,
-0.09150729328393936,
0.3037363886833191,
-0.2775166928768158,
-0.5079551935195923,
0.060996051877737045,
-0.2328934520483017,
-0.004152780398726463,
-0.017150461673736572,
-0.15949557721614838,
0.1356659233570099,
-0.214061439037323,
0.026610417291522026,
-0.2283364236354828,
-0.08277592808008194,
-0.004148694686591625,
-0.24526020884513855,
-0.2524435222148895,
-0.1303006261587143,
-0.6571214199066162,
-0.5468483567237854,
-0.1074695885181427,
0.1612105518579483,
-0.08746448159217834,
-0.0005490295588970184,
0.13167206943035126,
-0.18740612268447876,
0.023770760744810104,
-0.2829129099845886,
0.06466121971607208,
-0.06921994686126709,
-0.26974794268608093,
0.12880641222000122,
-0.13039685785770416,
-0.2666122019290924,
-0.08899436146020889,
-0.07919635623693466,
-0.16333742439746857,
-0.1946292519569397,
-0.4564135670661926,
-0.03270893543958664,
-0.3555341064929962,
0.14560960233211517,
0.13291355967521667,
0.024439914152026176,
0.4918687641620636,
0.2438688427209854,
-0.13843867182731628,
0.02915603667497635,
-0.2249145656824112,
0.07850655168294907,
0.08406137675046921,
0.20124882459640503,
-0.27554988861083984,
0.15827617049217224,
0.2967647612094879,
0.4924670457839966,
0.04008103907108307,
-0.10157504677772522,
0.12745799124240875,
0.18243464827537537,
0.37751510739326477,
-0.014698334038257599,
-0.44980892539024353,
0.26992589235305786,
-0.2119075357913971,
0.2726050019264221,
0.30296653509140015,
0.3241710066795349,
-0.2568628787994385,
-0.20551645755767822,
0.13341592252254486,
-0.25365468859672546,
-0.16150622069835663,
0.1577550619840622,
-0.06274516880512238,
0.2349371612071991,
0.018464352935552597,
-0.20192289352416992,
-0.2235526144504547,
-0.4408806562423706,
-0.00641458947211504,
0.27075833082199097,
0.20933982729911804,
-0.04646357521414757,
-0.6493406295776367,
0.04345385730266571,
-0.4677717089653015,
0.1304817944765091,
0.22082795202732086,
-0.10849757492542267,
-0.19144533574581146,
0.13726279139518738,
-0.09094572067260742,
0.4632478356361389,
0.10119006037712097,
-0.5415430068969727,
-0.31698012351989746,
0.2783178985118866,
0.07710722088813782,
-0.20585623383522034,
0.06434966623783112,
-0.4311167001724243,
-0.13187576830387115,
0.4279158115386963,
0.011096268892288208,
-0.011673703789710999,
-0.06308291107416153,
0.5058273077011108,
-0.042079273611307144,
0.0455501489341259,
-0.31594279408454895,
0.3045084476470947,
0.18050342798233032,
-0.22316974401474,
-0.1821765899658203,
0.1421312391757965,
0.03411324694752693,
-0.0992971882224083,
-0.01578151248395443,
0.2213720828294754,
-0.14034982025623322,
0.3071533441543579,
-0.3063748776912689,
-0.21611273288726807,
0.15172864496707916,
0.24392351508140564,
0.10349715501070023,
0.02969936653971672,
0.06175902485847473,
0.5007282495498657,
-0.2855723202228546,
-0.3765999972820282,
0.03419846296310425,
-0.1609441339969635,
0.5179302096366882,
0.1911648064851761,
0.2609316110610962,
0.26779577136039734,
-0.20976004004478455,
-0.1387268304824829,
-0.09052033722400665,
0.22933329641819,
0.09155171364545822,
0.006189585663378239,
-0.40286630392074585,
-0.1746913492679596,
0.3463868498802185,
-0.07902675867080688,
-0.06709752976894379,
-0.08855235576629639,
0.3795871138572693,
-0.21532244980335236,
0.16443780064582825,
-0.27582621574401855,
0.9699503779411316,
-0.121029794216156,
0.07566284388303757,
-0.3877992033958435,
-0.11190913617610931,
0.5903335809707642,
-0.2048410326242447,
0.06017140671610832,
-0.033594779670238495,
-0.34516575932502747,
-0.025509638711810112,
-0.002506796270608902,
0.024228747934103012,
0.3962249755859375,
0.029064711183309555,
0.3269214332103729,
0.28377532958984375,
0.27049684524536133,
0.08831384778022766,
0.24140170216560364,
0.10216116160154343,
-0.38114818930625916,
0.1328648328781128,
0.2328420877456665,
0.0009428448975086212,
0.34189197421073914,
0.029666639864444733,
0.06484188139438629,
-0.12406879663467407,
0.10123251378536224,
-0.7577841877937317,
-0.21394234895706177,
-0.350716233253479,
0.043620772659778595,
0.050285257399082184,
-0.26784417033195496,
0.44612380862236023,
0.20375984907150269,
0.5095028281211853,
0.16255691647529602,
-0.242715984582901,
-0.0011157281696796417,
-0.08168751746416092,
-0.20739994943141937,
0.20162782073020935,
-0.05139927566051483,
0.2647668719291687,
0.004798553884029388,
-0.1863405406475067,
0.17511343955993652,
0.03880508616566658,
-0.3161415457725525,
-0.4412824511528015,
-0.35616689920425415,
0.23355239629745483,
-0.3172677755355835,
0.23488374054431915,
0.2059263288974762,
0.01668773591518402,
-0.30142727494239807,
0.1950971782207489,
0.28351229429244995,
0.2865530550479889,
0.13623034954071045,
0.09219591319561005,
-0.05796501785516739,
-0.3824463486671448,
0.245212584733963,
0.08220605552196503,
-0.19989804923534393,
0.28266412019729614,
0.465104341506958,
-0.1968359798192978,
-0.22666281461715698,
0.10991156846284866,
0.1775449514389038,
-0.29841816425323486,
-0.03828528895974159,
-0.14561067521572113,
-0.2014143168926239,
0.11866095662117004,
0.2720453143119812,
0.47479820251464844,
-0.20907193422317505,
-0.00330289825797081,
-0.12604935467243195,
-0.048352889716625214,
0.24552349746227264,
-0.0699731707572937,
0.10248275101184845,
-0.2855110168457031,
0.21133576333522797,
0.11378692090511322,
0.31283748149871826,
-0.36680546402931213,
0.18422505259513855,
0.12343025952577591,
0.057656772434711456,
0.48413991928100586,
-0.043130695819854736,
0.11868181824684143,
-0.2519412040710449,
0.03177907317876816,
0.044316329061985016,
0.020093895494937897,
-0.2575843632221222,
0.029140189290046692,
0.11941109597682953,
-0.0032426677644252777,
0.053121209144592285,
0.07149254530668259,
0.03189165145158768,
-0.1085834950208664,
-0.018149079754948616,
-0.009539044462144375,
0.07983465492725372,
-0.029469802975654602,
0.4629041850566864,
-0.1698630303144455,
-0.14338794350624084,
0.1254778802394867,
0.1680784970521927,
-0.39474213123321533,
0.34521710872650146,
0.2613273561000824,
0.09689263254404068,
0.4265051782131195,
0.0820402204990387,
-0.1390736699104309,
0.1200963705778122,
0.12774980068206787,
-0.08184873312711716,
0.49498867988586426,
-0.10909508168697357,
0.16059064865112305,
0.4223472476005554,
0.13409166038036346,
-0.3808863162994385,
-0.10471874475479126,
0.1454269140958786,
0.005388190038502216,
0.2655993103981018,
-0.3391377329826355,
-0.12234177440404892,
-0.04751405492424965,
0.19037729501724243,
0.15693418681621552,
0.18199539184570312,
0.3001350164413452,
0.15198490023612976,
0.2274172157049179,
0.11670277267694473,
0.5631716251373291,
-0.034651979804039,
0.2836723327636719,
-0.08697661757469177,
0.2064458280801773,
-0.13563501834869385,
0.2207382172346115,
-0.06610697507858276,
-0.02837560325860977,
0.09886462986469269,
0.06608977168798447,
0.41157639026641846,
0.02960924617946148,
0.14155986905097961,
0.46030372381210327,
-0.03877295181155205,
0.333583801984787,
0.2953750491142273,
-0.06429991126060486,
0.11790058016777039,
-0.08990956842899323,
0.45748746395111084,
-0.2523851990699768,
0.006330597680062056,
-0.0677308589220047,
0.052509017288684845,
-0.04695052653551102,
-0.0037050903774797916,
0.1858665496110916,
-0.21913880109786987,
-0.07526364922523499,
-0.16282932460308075,
-0.29394564032554626,
-0.348476767539978,
0.4031429588794708,
-0.017952971160411835,
-0.14549843966960907,
-0.5478559732437134,
0.021494057029485703,
0.09409438073635101,
0.3775731921195984,
-0.1377047449350357,
0.03901761770248413,
0.006506279110908508,
-0.22972649335861206,
0.27651113271713257,
0.6441018581390381,
0.17414578795433044,
-0.20209050178527832,
-0.05577169731259346,
-0.00027053896337747574,
-0.2083175778388977,
-0.19255857169628143,
0.18115438520908356,
0.26521778106689453,
0.29104721546173096,
0.0529152937233448,
0.005972016602754593,
0.16646209359169006,
-0.09090418368577957,
-0.02153654769062996,
0.0012134388089179993,
-0.0027707163244485855,
-0.3021707236766815,
0.20895148813724518,
0.08201400190591812,
-0.26822957396507263,
-0.17880582809448242,
0.0007874593138694763,
-0.30889052152633667,
-0.1856462061405182,
0.4646792411804199,
-0.1991603672504425,
0.0024083591997623444,
-0.1707443743944168,
0.12474311888217926,
-0.11565007269382477,
0.2756524085998535,
0.3615756332874298,
-0.12050122767686844,
-0.20040954649448395,
-0.17133520543575287,
-0.04572350159287453,
-0.24279752373695374,
0.13644011318683624,
0.12315626442432404,
-0.22471371293067932,
0.043339937925338745,
0.26299425959587097,
0.20888325572013855,
-0.26791131496429443,
0.060981180518865585,
-0.12021926045417786,
-0.1037462055683136,
-0.5572159886360168,
-0.0213996022939682,
0.2087281197309494,
0.1916586458683014,
0.08204148709774017,
0.05175529420375824,
-0.03534268960356712,
0.0049040429294109344,
0.022393234074115753,
-0.2996785044670105,
0.19438308477401733,
0.2767239809036255,
0.0230526402592659,
0.20548827946186066,
0.03346620500087738,
0.4271269142627716,
-0.0015180334448814392,
-0.07686010748147964,
-0.08707685768604279,
-0.43354150652885437,
-0.12517906725406647,
0.28288644552230835,
0.0304236002266407,
0.3439728319644928,
-0.3293583393096924,
-0.2667047381401062,
0.28545984625816345,
0.0275789275765419,
0.08401632308959961,
0.08231557160615921,
-0.5688409209251404,
-0.012240536510944366,
0.025842078030109406,
-0.06362408399581909,
0.16424180567264557,
-0.014525853097438812,
0.004057496786117554,
-0.15388552844524384,
-0.10458497703075409,
-0.5019508004188538,
0.04920418560504913,
-0.09852109104394913,
0.13410472869873047,
-0.23969890177249908,
0.175255686044693,
0.5417264103889465,
0.2522432208061218,
-0.6720551252365112,
-0.11780665814876556,
0.47837939858436584,
-0.044126495718955994,
-0.06494702398777008,
0.5287402272224426,
0.20612381398677826,
-0.011946320533752441,
-0.0930263102054596,
0.26414936780929565,
-0.15955674648284912,
-0.2162473052740097,
-0.1624898761510849,
-0.2623988091945648
] |
https://github.com/huggingface/datasets/issues/353 | [Dataset requests] New datasets for Text Classification | This is the homepage for the Amazon dataset: https://www.kaggle.com/datafiniti/consumer-reviews-of-amazon-products
Is there an easy way to download kaggle datasets programmatically? If so, I can add this one! | We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705 | 26 | [Dataset requests] New datasets for Text Classification
We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705
This is the homepage for the Amazon dataset: https://www.kaggle.com/datafiniti/consumer-reviews-of-amazon-products
Is there an easy way to download kaggle datasets programmatically? If so, I can add this one! | [
-0.14583434164524078,
0.06585226953029633,
-0.1481413096189499,
0.1902455985546112,
0.34518855810165405,
0.3538247048854828,
0.13700348138809204,
0.07377906888723373,
-0.12206214666366577,
-0.03943580389022827,
-0.25020185112953186,
0.25872811675071716,
-0.1631074696779251,
0.4211380183696747,
0.0899195745587349,
-0.16479793190956116,
-0.022794924676418304,
-0.08865171670913696,
0.1359841227531433,
-0.14301757514476776,
-0.1249990463256836,
0.10280775278806686,
-0.09122849255800247,
-0.2270243614912033,
-0.17923949658870697,
-0.3646230101585388,
-0.16028046607971191,
-0.10303553193807602,
-0.379099041223526,
-0.3690580427646637,
0.335917592048645,
0.17740105092525482,
0.23734384775161743,
0.15003003180027008,
-0.00010781933815451339,
-0.324859619140625,
0.00036092475056648254,
-0.1197962611913681,
-0.3088068664073944,
-0.1295691281557083,
-0.10393378138542175,
-0.5073530077934265,
-0.08908040821552277,
-0.259870320558548,
0.09105540066957474,
-0.035464879125356674,
0.049594178795814514,
-0.24754419922828674,
-0.060200974345207214,
0.29494741559028625,
0.2045823335647583,
0.018530141562223434,
0.0701865553855896,
-0.18784917891025543,
0.3340878188610077,
0.48297131061553955,
-0.25534993410110474,
0.012402608059346676,
0.4633096754550934,
0.2070610374212265,
0.18565697968006134,
0.20272944867610931,
-0.3064492642879486,
-0.10651680827140808,
0.2755376100540161,
0.11258451640605927,
-0.3106139898300171,
-0.48562291264533997,
0.17855951189994812,
0.4579694867134094,
0.9703214168548584,
-0.4533033072948456,
-0.5060063600540161,
-0.3497476875782013,
0.2375040501356125,
-0.15253984928131104,
-0.31294938921928406,
0.555671751499176,
-0.07849124073982239,
0.0007063709199428558,
-0.15851150453090668,
-0.4362526535987854,
-0.15333455801010132,
0.1665380299091339,
0.2362740933895111,
0.3287399411201477,
0.07040353864431381,
-0.24365344643592834,
0.08117508888244629,
-0.016267050057649612,
0.5947261452674866,
-0.39345574378967285,
0.13033288717269897,
0.0336795449256897,
-0.21747945249080658,
-0.20101971924304962,
-0.1059354916214943,
-0.042109668254852295,
0.06221485137939453,
0.08639903366565704,
0.0007818862795829773,
0.19404318928718567,
-0.13984665274620056,
-0.16955170035362244,
0.012206905521452427,
0.020101282745599747,
0.2767162024974823,
0.3368697464466095,
0.053099051117897034,
-0.047393474727869034,
0.2718045115470886,
0.022645266726613045,
-0.3008706867694855,
0.1779797077178955,
-0.09279525279998779,
0.009504235349595547,
-0.21581079065799713,
-0.16671030223369598,
-0.13362251222133636,
-0.22646169364452362,
-0.14380311965942383,
-0.09317328035831451,
-0.289228618144989,
0.12149752676486969,
-0.1194736585021019,
0.09215404093265533,
-0.0870978981256485,
0.27477866411209106,
-0.10701494663953781,
-0.37324708700180054,
-0.06368731707334518,
0.10159718990325928,
0.2123432755470276,
0.01251030620187521,
0.38865721225738525,
-0.30781134963035583,
0.2903842628002167,
-0.2664627730846405,
-0.05881963670253754,
0.0681070014834404,
0.0345645397901535,
0.05591755732893944,
-0.33135882019996643,
0.12620338797569275,
0.08969096839427948,
0.019818512722849846,
-0.06115389242768288,
0.06459532678127289,
-0.23711451888084412,
0.22979021072387695,
-0.007401749491691589,
-0.2494557499885559,
-0.10837306082248688,
0.18983817100524902,
-0.04660472273826599,
-0.6931471824645996,
-0.34463080763816833,
0.4325663447380066,
-0.021586202085018158,
-0.0997878909111023,
0.11431180685758591,
0.015121899545192719,
-0.0687844529747963,
-0.21835081279277802,
0.02210094965994358,
0.48782044649124146,
-0.4603770673274994,
-0.25058913230895996,
-0.24308280646800995,
0.054333604872226715,
0.09918176382780075,
0.007049271836876869,
-0.09710626304149628,
0.3354080021381378,
0.03672923147678375,
0.028971366584300995,
0.42664793133735657,
-0.1561395823955536,
-0.23349229991436005,
0.004749621264636517,
-0.027487996965646744,
-0.15729151666164398,
0.15424416959285736,
0.40531492233276367,
0.05407585948705673,
0.09547927230596542,
-0.18918079137802124,
0.21540747582912445,
-0.14702801406383514,
-0.06363678723573685,
-0.031104158610105515,
-0.21043919026851654,
0.18877971172332764,
0.4533609449863434,
0.511564314365387,
-0.14179056882858276,
0.11268056929111481,
-0.07896988838911057,
0.2047272026538849,
-0.02640378102660179,
0.112746961414814,
0.1084841936826706,
0.14764046669006348,
0.24819009006023407,
0.05194719508290291,
-0.18449658155441284,
-0.3535889685153961,
0.18822917342185974,
0.11953176558017731,
0.17985601723194122,
-0.19763891398906708,
-0.2929626703262329,
-0.17325302958488464,
-0.018420405685901642,
-0.059859585016965866,
0.03437471389770508,
0.06650824099779129,
-0.17293107509613037,
0.24593102931976318,
0.2049802541732788,
-0.06968022882938385,
0.24344269931316376,
-0.262967050075531,
0.3557038903236389,
-0.019128676503896713,
0.17653806507587433,
0.03242338448762894,
0.16759569942951202,
0.15690162777900696,
0.18113338947296143,
0.030462142080068588,
0.019695965573191643,
0.0671708881855011,
0.07948464155197144,
-0.028823720291256905,
0.2057453691959381,
0.3982349932193756,
0.24095852673053741,
0.32699501514434814,
-0.37899255752563477,
0.30361706018447876,
0.0010746922343969345,
0.15227900445461273,
-0.13568738102912903,
-0.26889216899871826,
0.35722142457962036,
0.07511869817972183,
0.08569522202014923,
0.033831484615802765,
0.17378449440002441,
0.08152271062135696,
0.18410488963127136,
0.20522207021713257,
0.13059906661510468,
0.29183000326156616,
-0.20308426022529602,
0.31166890263557434,
-0.2133226990699768,
-0.2172529101371765,
0.35568779706954956,
0.11851479113101959,
-0.19996371865272522,
0.19661131501197815,
0.10073141753673553,
-0.3290809094905853,
0.05100908875465393,
0.16070939600467682,
0.1727665513753891,
0.14201897382736206,
0.4380432963371277,
-0.007387619465589523,
-0.07231245189905167,
0.10960569977760315,
-0.27232784032821655,
0.07231069356203079,
0.3957443833351135,
0.11489193141460419,
0.023094195872545242,
0.21493501961231232,
0.1084587499499321,
-0.21099784970283508,
-0.07604293525218964,
0.1719290316104889,
-0.00949188694357872,
-0.00512506440281868,
-0.10179072618484497,
-0.0998300164937973,
-0.328565388917923,
-0.11002939939498901,
0.15219734609127045,
0.033178720623254776,
-0.35798323154449463,
0.11276639252901077,
-0.18802157044410706,
0.020995687693357468,
-0.07254361361265182,
-0.3703669607639313,
0.5109129548072815,
-0.26767075061798096,
-0.1653885841369629,
-0.03689754009246826,
-0.3092888295650482,
-0.18580910563468933,
0.19643725454807281,
0.24920181930065155,
-0.006502571981400251,
0.46840935945510864,
-0.12052442133426666,
0.4063921570777893,
-0.4003475308418274,
-0.4549332559108734,
-0.0711321234703064,
-0.040204502642154694,
-0.14958864450454712,
-0.09477083384990692,
0.00399036705493927,
-0.05390569195151329,
-0.18788430094718933,
-0.14216895401477814,
-0.05772223323583603,
-0.19583863019943237,
-0.07046298682689667,
-0.055024951696395874,
-0.3058835566043854,
0.018840517848730087,
-0.7203153967857361,
-0.5714185833930969,
-0.08598199486732483,
0.1243743896484375,
0.07098022103309631,
0.021684397011995316,
0.01994987763464451,
-0.08577843755483627,
0.02221224084496498,
-0.12089523673057556,
0.17384450137615204,
0.11740154772996902,
-0.029530007392168045,
0.25994399189949036,
-0.06516077369451523,
-0.33585816621780396,
0.056151147931814194,
-0.05895715206861496,
-0.1528320461511612,
0.14338290691375732,
-0.6533874273300171,
0.27879229187965393,
-0.1593823879957199,
0.25070828199386597,
0.09158176928758621,
0.009419959038496017,
0.39006659388542175,
0.3259734809398651,
-0.00468389131128788,
0.04814916104078293,
-0.2004244178533554,
-0.0664404109120369,
0.0186325553804636,
0.1881432831287384,
-0.2580966353416443,
0.14790800213813782,
0.2330840826034546,
0.7644213438034058,
0.10046271979808807,
-0.03960081562399864,
0.004107199609279633,
0.10006542503833771,
0.2880665957927704,
0.17413437366485596,
-0.3623061776161194,
0.07650253921747208,
-0.2538991868495941,
0.19478781521320343,
0.24857865273952484,
0.2329375147819519,
-0.41748321056365967,
-0.3761484622955322,
0.08529619872570038,
-0.39850860834121704,
-0.05931829661130905,
0.020070625469088554,
-0.1571812629699707,
0.2500106394290924,
0.1569012552499771,
0.1980448067188263,
-0.30670762062072754,
-0.38297373056411743,
-0.007611642591655254,
0.09504400938749313,
0.04032372310757637,
-0.08556908369064331,
-0.660049319267273,
0.08521152287721634,
-0.4546729326248169,
0.35003066062927246,
0.2858997881412506,
-0.013932875357568264,
0.022856924682855606,
0.09687427431344986,
-0.01295711100101471,
0.10422031581401825,
0.33772608637809753,
-0.4176977574825287,
-0.1463482528924942,
0.10854814946651459,
0.1544070541858673,
-0.28998851776123047,
0.016651228070259094,
-0.4218193292617798,
0.012044975534081459,
0.17635422945022583,
-0.10672307014465332,
-0.1369771957397461,
0.12083052098751068,
0.11744260787963867,
0.09534277021884918,
-0.12754333019256592,
-0.13100716471672058,
0.26098158955574036,
-0.1921810805797577,
-0.24750305712223053,
-0.10671737045049667,
-0.19154207408428192,
0.13510949909687042,
-0.22064508497714996,
0.1119866669178009,
0.08711382746696472,
0.10212814062833786,
0.20774251222610474,
-0.38829731941223145,
-0.15464338660240173,
0.3388711214065552,
0.21463192999362946,
-0.02035374566912651,
-0.0908815860748291,
0.2794803977012634,
0.7352371215820312,
-0.24953746795654297,
-0.6877536177635193,
-0.20332136750221252,
-0.05933839827775955,
0.37132981419563293,
0.28666990995407104,
0.3106379508972168,
0.17817415297031403,
0.04526744782924652,
-0.18206049501895905,
-0.08662306517362595,
0.2527276873588562,
0.14688579738140106,
-0.2068832516670227,
-0.44915011525154114,
-0.45113545656204224,
0.47687992453575134,
-0.04682997614145279,
-0.006602123379707336,
-0.03082619607448578,
0.08843532204627991,
-0.1857965737581253,
0.07967311143875122,
0.03347926586866379,
0.8832523226737976,
-0.09655170142650604,
0.12069469690322876,
-0.21082976460456848,
-0.2397921085357666,
0.657529890537262,
-0.3693646788597107,
0.14516913890838623,
-0.031965889036655426,
-0.10785946995019913,
-0.15839853882789612,
-0.0057653263211250305,
-0.06604685634374619,
0.2764972746372223,
0.09864161908626556,
0.25455155968666077,
0.1750449687242508,
0.26464003324508667,
0.18892821669578552,
0.2676718831062317,
-0.21337710320949554,
-0.32118868827819824,
-0.021779797971248627,
0.20729683339595795,
-0.04504670947790146,
0.3466690182685852,
-0.0601663738489151,
-0.0404975451529026,
-0.21852068603038788,
0.07406280189752579,
-0.6114405989646912,
0.05032288283109665,
-0.11135576665401459,
0.25927823781967163,
-0.16817493736743927,
-0.3132198750972748,
0.3115791380405426,
0.39599403738975525,
0.4740002751350403,
0.15455539524555206,
-0.27811458706855774,
0.03387915715575218,
-0.16778847575187683,
-0.28459522128105164,
0.2685391902923584,
-0.11717677116394043,
0.2070036232471466,
-0.09162934869527817,
-0.14666765928268433,
0.1773541271686554,
0.010286177508533001,
-0.09363199770450592,
-0.2707793414592743,
-0.2812492251396179,
0.027841128408908844,
-0.25447002053260803,
0.07185731828212738,
0.2199276238679886,
0.0607445053756237,
-0.24423015117645264,
0.1158013641834259,
0.27204379439353943,
0.312623530626297,
0.14927324652671814,
0.13114553689956665,
0.04266291856765747,
-0.40362897515296936,
0.3365073800086975,
0.053792718797922134,
-0.20132246613502502,
0.3659555912017822,
0.3573598563671112,
-0.22911450266838074,
-0.173478901386261,
0.25916212797164917,
-0.01518977154046297,
-0.2552027404308319,
-0.06248399242758751,
-0.1510733664035797,
0.1275450736284256,
-0.0006345176952891052,
0.2954428195953369,
0.3267214298248291,
-0.24497267603874207,
0.06834866106510162,
-0.2670615613460541,
-0.04568786919116974,
0.3528859615325928,
-0.026361022144556046,
0.16159237921237946,
-0.0568486824631691,
-0.00705835223197937,
0.06373874843120575,
0.1684010922908783,
-0.29512667655944824,
0.20144906640052795,
0.045708559453487396,
-0.1295141875743866,
0.16845546662807465,
0.1904907524585724,
-0.07367033511400223,
-0.16287779808044434,
-0.030906079337000847,
0.01377110742032528,
-0.14151720702648163,
-0.15435993671417236,
0.08647611737251282,
0.1561499685049057,
0.0004628375172615051,
0.06159912049770355,
-0.005431990139186382,
-0.19918330013751984,
-0.19874392449855804,
-0.028009463101625443,
-0.04011063277721405,
0.07993201911449432,
-0.03888101130723953,
0.2800907790660858,
-0.051855478435754776,
0.22268512845039368,
-0.19917933642864227,
0.12174270302057266,
-0.2136322557926178,
0.16858690977096558,
0.3860092759132385,
0.197382390499115,
0.4179416000843048,
0.14221379160881042,
0.023500874638557434,
0.09754329919815063,
0.2849413752555847,
-0.23507916927337646,
0.6867843866348267,
-0.28893542289733887,
0.25924527645111084,
0.3534524738788605,
0.08124063909053802,
0.08529169112443924,
-0.18682648241519928,
0.22816388309001923,
0.23422643542289734,
0.18566851317882538,
-0.5083351135253906,
-0.3514144718647003,
-0.011729754507541656,
0.21544454991817474,
-0.0015333108603954315,
0.1440443992614746,
0.32215914130210876,
0.05147816240787506,
0.1890987902879715,
0.18795862793922424,
0.4547487497329712,
-0.07680036127567291,
0.4784491956233978,
0.20178677141666412,
0.1357191503047943,
-0.05429704859852791,
0.11972278356552124,
0.2849603295326233,
-0.019388727843761444,
0.21181905269622803,
-0.06868500262498856,
0.5396175980567932,
-0.16896161437034607,
0.11560893803834915,
0.36251014471054077,
-0.43598613142967224,
0.30349016189575195,
0.21836605668067932,
-0.0631243884563446,
0.17796140909194946,
0.013464629650115967,
0.3344655930995941,
-0.2260018289089203,
0.07423949241638184,
-0.2706797420978546,
0.023094458505511284,
-0.07547860592603683,
0.11158989369869232,
-0.025820128619670868,
-0.4800797700881958,
0.14155197143554688,
0.054216135293245316,
-0.0710732489824295,
-0.6137161254882812,
0.009859040379524231,
-0.1722027063369751,
-0.1956644207239151,
-0.4460475742816925,
0.12653356790542603,
0.047583479434251785,
0.45127230882644653,
-0.24565936625003815,
-0.21586187183856964,
0.22883443534374237,
-0.2907606065273285,
0.031814202666282654,
0.4591098725795746,
0.2172703742980957,
-0.05188107490539551,
-0.15365922451019287,
0.04962528869509697,
-0.08339868485927582,
-0.15022045373916626,
0.25968581438064575,
0.35014477372169495,
0.3649343252182007,
-0.030964557081460953,
0.2239755243062973,
0.10642533004283905,
-0.07729022204875946,
0.22089418768882751,
0.20147915184497833,
0.06583978235721588,
-0.2684994339942932,
0.14561837911605835,
-0.009703706949949265,
-0.2128196656703949,
-0.13921965658664703,
0.03540578484535217,
-0.26205703616142273,
-0.11739417910575867,
0.31347009539604187,
-0.04829157143831253,
0.0353487990796566,
-0.1118348091840744,
0.1048949584364891,
-0.04332919791340828,
0.37341102957725525,
0.37949830293655396,
0.04987423121929169,
-0.19257688522338867,
-0.014401592314243317,
-0.148394376039505,
-0.2592768669128418,
0.10287237167358398,
0.05089021474123001,
-0.13021546602249146,
-0.0016711950302124023,
0.2697870433330536,
0.24774055182933807,
-0.35339516401290894,
0.024153556674718857,
0.23776787519454956,
0.1335594654083252,
-0.531668484210968,
-0.1569872796535492,
0.33326202630996704,
0.08517613261938095,
0.023420292884111404,
-0.044523220509290695,
0.022355321794748306,
-0.23522163927555084,
-0.0853210836648941,
-0.2908903956413269,
0.12213046848773956,
0.16110935807228088,
-0.05320454388856888,
0.35646799206733704,
-0.2169414758682251,
0.5409770607948303,
0.018422625958919525,
-0.09581422060728073,
-0.1442958265542984,
-0.2210032343864441,
0.011172390542924404,
0.2358664870262146,
0.15490375459194183,
0.27187737822532654,
-0.32326096296310425,
-0.11434617638587952,
0.35959070920944214,
-0.022201532498002052,
0.1469312310218811,
0.06036577746272087,
-0.46471521258354187,
-0.13301433622837067,
-0.257071316242218,
-0.13777843117713928,
0.25746950507164,
0.003706231713294983,
-0.04551086574792862,
-0.2148302048444748,
-0.11554960161447525,
-0.38640695810317993,
0.19260597229003906,
0.08640611171722412,
0.12661850452423096,
-0.2853859066963196,
-0.009644880890846252,
0.3591628074645996,
0.2550030052661896,
-0.47400182485580444,
0.22040417790412903,
0.47079476714134216,
-0.19230997562408447,
0.12094733119010925,
0.4455164074897766,
-0.00761750154197216,
-0.11220553517341614,
-0.15211182832717896,
0.5035295486450195,
-0.29343941807746887,
-0.22721059620380402,
-0.259752482175827,
-0.24803327023983002
] |
https://github.com/huggingface/datasets/issues/353 | [Dataset requests] New datasets for Text Classification | Hi @jxmorris12 for now I think our `dl_manager` does not download from Kaggle.
@thomwolf , @lhoestq | We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705 | 16 | [Dataset requests] New datasets for Text Classification
We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705
Hi @jxmorris12 for now I think our `dl_manager` does not download from Kaggle.
@thomwolf , @lhoestq | [
0.036327507346868515,
0.12081755697727203,
-0.16710233688354492,
0.24904955923557281,
0.2784859538078308,
0.21744206547737122,
0.2918257713317871,
0.0586765892803669,
-0.06941888481378555,
0.08942000567913055,
-0.07498781383037567,
0.24293768405914307,
-0.22165155410766602,
0.18729831278324127,
0.10754328966140747,
-0.2674974203109741,
-0.0024412795901298523,
-0.06455719470977783,
-0.058564215898513794,
-0.19496728479862213,
-0.11614882946014404,
0.23238642513751984,
-0.10210736095905304,
-0.2988004684448242,
-0.38941019773483276,
-0.11884402483701706,
-0.1741257756948471,
0.20310693979263306,
-0.36967915296554565,
-0.5515013933181763,
0.0710659772157669,
0.11087161302566528,
0.244614839553833,
0.30442291498184204,
-0.00010049602133221924,
-0.2866237163543701,
0.12905246019363403,
-0.09620645642280579,
-0.2718324661254883,
-0.15483252704143524,
-0.13984259963035583,
-0.5224171280860901,
-0.003497068304568529,
-0.17028383910655975,
-0.06465470045804977,
0.0960616022348404,
-0.010226422920823097,
-0.15245524048805237,
0.02334042638540268,
0.3746054470539093,
0.28438878059387207,
0.004537919536232948,
-0.009126067161560059,
-0.3068838119506836,
0.3988089859485626,
0.349315345287323,
-0.2872605621814728,
0.03626866638660431,
0.6251111030578613,
0.12980365753173828,
-0.0595821812748909,
0.373293399810791,
-0.284068763256073,
-0.07561521232128143,
0.184709370136261,
0.1710985004901886,
-0.06335175782442093,
-0.44654080271720886,
0.15367525815963745,
0.362784206867218,
0.8537481427192688,
-0.31937432289123535,
-0.29653212428092957,
-0.37291041016578674,
0.18256472051143646,
-0.2185397744178772,
-0.018480025231838226,
0.13932447135448456,
-0.06816156208515167,
0.07161438465118408,
-0.04262736439704895,
-0.24446791410446167,
-0.14983037114143372,
0.21601900458335876,
0.04024459421634674,
0.32086342573165894,
-0.030414775013923645,
-0.36524567008018494,
0.09091417491436005,
0.1313057839870453,
0.4276689291000366,
-0.25415074825286865,
0.05993048474192619,
-0.0015199724584817886,
-0.2455911487340927,
-0.17044737935066223,
-0.0023836493492126465,
-0.11851794272661209,
-0.025597533211112022,
0.11502772569656372,
-0.15190643072128296,
0.10149193555116653,
-0.1292256861925125,
-0.10602625459432602,
-0.012525197118520737,
0.11419762670993805,
0.19582480192184448,
0.3053247928619385,
0.14757180213928223,
-0.09881461411714554,
0.1847090870141983,
0.04579460620880127,
-0.23368220031261444,
0.13585667312145233,
-0.035733722150325775,
0.09522341936826706,
-0.28318285942077637,
-0.08481094986200333,
-0.03232624754309654,
-0.05172715708613396,
-0.04958895221352577,
-0.16342633962631226,
-0.20220519602298737,
0.11179614067077637,
-0.023402508348226547,
0.17283180356025696,
-0.15262508392333984,
0.2224624752998352,
0.043358899652957916,
-0.36064717173576355,
-0.13834238052368164,
-0.027420710772275925,
-0.0917261391878128,
-0.0014238273724913597,
0.5291512608528137,
-0.1442977488040924,
0.23264643549919128,
-0.22876884043216705,
-0.13582561910152435,
0.1641438603401184,
-0.022633634507656097,
0.03789376839995384,
-0.0145488902926445,
0.2572914659976959,
-0.00612989068031311,
0.1331605613231659,
0.03365470468997955,
-0.06733806431293488,
-0.20382359623908997,
0.28301045298576355,
0.043669745326042175,
-0.3164176344871521,
-0.29343944787979126,
0.2884784936904907,
0.026984810829162598,
-0.5546094179153442,
-0.17632648348808289,
0.5332179069519043,
-0.06579425185918808,
-0.09893426299095154,
0.23365649580955505,
0.06199552118778229,
0.01908751204609871,
-0.14409467577934265,
0.0625903457403183,
0.3794979751110077,
-0.44663205742836,
-0.15560415387153625,
-0.3843351900577545,
0.06782004237174988,
0.17795512080192566,
0.13706403970718384,
-0.1412978619337082,
0.103801429271698,
0.0061645545065402985,
0.001852475106716156,
0.35762980580329895,
-0.21069084107875824,
-0.25974512100219727,
-0.09730885922908783,
-0.032530952244997025,
-0.14170625805854797,
0.22757261991500854,
0.2446402758359909,
0.2304917573928833,
0.0032844501547515392,
-0.24204176664352417,
0.1514585018157959,
-0.23141324520111084,
0.008874667808413506,
-0.1517031490802765,
-0.12665767967700958,
0.17388299107551575,
0.46733754873275757,
0.5211061835289001,
-0.20390239357948303,
0.09640880674123764,
-0.10270572453737259,
0.13007760047912598,
0.06458261609077454,
0.18199801445007324,
0.10785117000341415,
0.050242260098457336,
0.21057061851024628,
0.1069573238492012,
-0.25248152017593384,
-0.32062262296676636,
0.041950978338718414,
0.2923537790775299,
0.4220075011253357,
0.05740414187312126,
-0.17725692689418793,
-0.2055807113647461,
-0.08608236908912659,
-0.059448156505823135,
-0.11519861221313477,
0.18023505806922913,
-0.1373234987258911,
0.07468067109584808,
0.22284452617168427,
-0.25543561577796936,
0.11960910260677338,
-0.26330697536468506,
0.3440307676792145,
0.13843883574008942,
0.19957797229290009,
-0.18593737483024597,
0.038599904626607895,
0.11231862008571625,
0.3069330155849457,
-0.08189722150564194,
0.013668692670762539,
0.0554976612329483,
-0.045796945691108704,
-0.10887181758880615,
-0.03597638010978699,
0.3803277313709259,
0.3463957905769348,
0.44306719303131104,
-0.36434268951416016,
0.25647473335266113,
0.0166183989495039,
0.12057313323020935,
-0.19630008935928345,
-0.15237218141555786,
0.19531017541885376,
0.14513345062732697,
0.11794959008693695,
0.007343597710132599,
0.06828022003173828,
0.03126875311136246,
-0.07398461550474167,
0.13881488144397736,
0.08839042484760284,
0.30932506918907166,
-0.163504958152771,
0.20686961710453033,
-0.022092318162322044,
-0.1827758103609085,
0.26879432797431946,
0.20858708024024963,
-0.11410069465637207,
0.28835436701774597,
0.18032339215278625,
-0.41360989212989807,
0.0028617791831493378,
0.033414632081985474,
0.18175718188285828,
0.16020473837852478,
0.47411489486694336,
0.07152761518955231,
-0.12954489886760712,
0.19095416367053986,
-0.43968573212623596,
0.05709339305758476,
0.3365573287010193,
0.07794245332479477,
0.19490942358970642,
0.2889706790447235,
0.1609753519296646,
-0.252912312746048,
-0.07392103970050812,
0.18693208694458008,
-0.06210433691740036,
0.09648813307285309,
-0.1228913813829422,
-0.14733654260635376,
-0.47344186902046204,
0.009838531725108624,
-0.0316351018846035,
-0.26341208815574646,
-0.35726743936538696,
0.23975889384746552,
-0.18632367253303528,
-0.009732261300086975,
0.10909200459718704,
-0.20386089384555817,
0.44406813383102417,
-0.3063390552997589,
0.0034314636141061783,
-0.14507026970386505,
-0.2510155439376831,
-0.2677842080593109,
0.28882575035095215,
0.16715092957019806,
-0.07613794505596161,
0.4527231752872467,
-0.13958169519901276,
0.3039373755455017,
-0.2922331392765045,
-0.5026999115943909,
0.08186378329992294,
-0.10064524412155151,
-0.15144234895706177,
-0.07967263460159302,
-0.20380093157291412,
0.0558108314871788,
-0.13213804364204407,
-0.011788508854806423,
-0.10406262427568436,
-0.14610973000526428,
-0.1323850154876709,
-0.15880215167999268,
-0.16990435123443604,
-0.09050901234149933,
-0.6321294903755188,
-0.498115599155426,
-0.17651253938674927,
-0.02056797593832016,
0.003117181360721588,
0.03950074315071106,
0.05270237475633621,
-0.22938735783100128,
-0.03126160055398941,
-0.15617899596691132,
0.10620380192995071,
-0.03798338398337364,
-0.16083286702632904,
0.10608553886413574,
-0.18817906081676483,
-0.276978462934494,
-0.013943728059530258,
-0.09381169080734253,
-0.059246908873319626,
-0.24405480921268463,
-0.5775508880615234,
0.011682516895234585,
-0.1460656225681305,
0.13505108654499054,
0.08234484493732452,
0.014955708757042885,
0.4460030794143677,
0.31863245368003845,
-0.16701681911945343,
0.07280711084604263,
-0.18416288495063782,
-0.04088219255208969,
0.08713287860155106,
0.3037726581096649,
-0.3289526402950287,
0.11205267906188965,
0.19909296929836273,
0.6252949833869934,
-0.07628290355205536,
0.02862871252000332,
0.1277470737695694,
0.14580640196800232,
0.3261941373348236,
0.0009283050894737244,
-0.388550728559494,
0.23923222720623016,
-0.15400633215904236,
0.1448473185300827,
0.34021613001823425,
0.24404922127723694,
-0.4113266170024872,
-0.3100481629371643,
0.00582943856716156,
-0.3088420033454895,
-0.13920237123966217,
0.2457524985074997,
-0.12191376090049744,
0.10207130759954453,
0.07516659796237946,
0.030138365924358368,
-0.15494202077388763,
-0.4110212028026581,
-0.009368094615638256,
0.3312244713306427,
0.07056985795497894,
-0.15857461094856262,
-0.5272679924964905,
0.09671901911497116,
-0.5372110605239868,
0.10997118800878525,
0.24333347380161285,
-0.1414552927017212,
-0.1414806842803955,
0.06742584705352783,
-0.012409068644046783,
0.24971885979175568,
0.2316862940788269,
-0.3759274184703827,
-0.30575311183929443,
0.29443594813346863,
0.029541462659835815,
-0.01602775789797306,
0.09800870716571808,
-0.4195678234100342,
-0.1425139605998993,
0.3507804572582245,
-0.22099220752716064,
0.04985614866018295,
-0.01490081287920475,
0.3752942681312561,
-0.08348876982927322,
-0.0421895906329155,
-0.2808261215686798,
0.2156093567609787,
-0.01210692897439003,
-0.3490285277366638,
-0.09257008880376816,
-0.05545344948768616,
0.11273704469203949,
-0.24582745134830475,
-0.03818964585661888,
0.2279602289199829,
-0.05905592814087868,
0.2579510807991028,
-0.21623769402503967,
-0.263513445854187,
0.20186977088451385,
0.13892756402492523,
0.1079135462641716,
0.13322597742080688,
0.30167829990386963,
0.5075221061706543,
-0.2157352715730667,
-0.36695894598960876,
0.03526359051465988,
-0.176423117518425,
0.4428977966308594,
0.29027777910232544,
0.3332871198654175,
0.21641960740089417,
-0.15701709687709808,
-0.17072051763534546,
-0.11842931061983109,
0.11778885126113892,
0.18137532472610474,
-0.10477280616760254,
-0.4715118706226349,
-0.26765841245651245,
0.42355868220329285,
-0.0750059112906456,
-0.07452227920293808,
-0.03662993758916855,
0.15261580049991608,
-0.22588638961315155,
0.0945143923163414,
-0.07567746192216873,
0.9857668280601501,
-0.05461345613002777,
0.19731412827968597,
-0.26634976267814636,
-0.04893989488482475,
0.5359598994255066,
-0.30488061904907227,
0.27884364128112793,
-0.11738775670528412,
-0.1341165006160736,
-0.06231524795293808,
0.03813628479838371,
-0.08631198853254318,
0.28077393770217896,
0.05715634301304817,
0.20462246239185333,
0.13231807947158813,
0.2306622564792633,
0.05600765347480774,
0.2629818022251129,
-0.1214095875620842,
-0.4137173891067505,
-0.006328186020255089,
0.2581970691680908,
0.16626238822937012,
0.37386056780815125,
-0.0688864216208458,
0.021722853183746338,
-0.22749169170856476,
0.07185544073581696,
-0.6199694871902466,
-0.09481864422559738,
-0.210209921002388,
0.03553525358438492,
-0.06335702538490295,
-0.3951868414878845,
0.36026644706726074,
0.28814780712127686,
0.46559005975723267,
0.06717803329229355,
-0.17854344844818115,
0.10447867214679718,
-0.1090017780661583,
-0.1447937935590744,
0.24864444136619568,
-0.08740270882844925,
0.29931876063346863,
-0.1255788505077362,
-0.163420170545578,
0.24039044976234436,
0.013876412995159626,
-0.20400714874267578,
-0.37629789113998413,
-0.1987232118844986,
0.16923794150352478,
-0.18618646264076233,
0.3645660877227783,
0.1886487901210785,
0.010907769203186035,
-0.28130826354026794,
0.22482450306415558,
0.22070914506912231,
0.24254772067070007,
0.12983903288841248,
0.07349932193756104,
-0.006155684590339661,
-0.4221654534339905,
0.27670586109161377,
0.1592310667037964,
-0.25990527868270874,
0.36533406376838684,
0.4951324462890625,
-0.1639518290758133,
-0.3070434629917145,
0.17676591873168945,
0.15880253911018372,
-0.18035435676574707,
0.04621109366416931,
-0.13704180717468262,
-0.1898171454668045,
0.15390317142009735,
0.48312196135520935,
0.44752514362335205,
-0.22446483373641968,
-0.022232094779610634,
-0.154166579246521,
-0.13658899068832397,
0.205754354596138,
-0.13104045391082764,
0.06423987448215485,
-0.31047874689102173,
0.11358155310153961,
0.11067193746566772,
0.21381887793540955,
-0.4183429181575775,
0.10578619688749313,
-0.0026925932615995407,
-0.0010268520563840866,
0.2698211371898651,
0.03716212138533592,
0.16877038776874542,
-0.11480516195297241,
0.0779268741607666,
-0.02811579778790474,
-0.07692661881446838,
-0.297421395778656,
0.05030715838074684,
0.09818947315216064,
0.02787681482732296,
0.06241992861032486,
0.0130270691588521,
-0.0557435043156147,
-0.15841303765773773,
0.019539296627044678,
0.04291142150759697,
0.015641819685697556,
0.06530693918466568,
0.380616694688797,
-0.17650026082992554,
-0.0038354694843292236,
0.07670372724533081,
0.15062116086483002,
-0.26316794753074646,
0.35172975063323975,
0.21406468749046326,
0.15632590651512146,
0.4049966037273407,
0.11457230150699615,
0.1018352285027504,
0.11702185869216919,
0.05563819408416748,
-0.11510073393583298,
0.5720159411430359,
-0.18365134298801422,
0.21402940154075623,
0.5334517955780029,
0.12974098324775696,
-0.19905588030815125,
-0.196335107088089,
0.08767102658748627,
0.14703971147537231,
0.3044619560241699,
-0.3589925467967987,
-0.25228098034858704,
-0.07538767158985138,
0.22547920048236847,
0.0856960117816925,
0.11715911328792572,
0.37602412700653076,
0.044791772961616516,
0.1790888011455536,
0.20371434092521667,
0.4474942982196808,
-0.08956681936979294,
0.3262724280357361,
-0.015941161662340164,
0.09457141160964966,
-0.016184624284505844,
0.2691630423069,
0.08055183291435242,
0.029574252665042877,
0.27754712104797363,
0.07272394001483917,
0.5338813662528992,
-0.10406426340341568,
0.14756514132022858,
0.4043255150318146,
-0.24203991889953613,
0.33209896087646484,
0.20946335792541504,
-0.056163474917411804,
0.11765547096729279,
-0.023185662925243378,
0.32256555557250977,
-0.2496713548898697,
0.018577607348561287,
-0.23161152005195618,
0.04872528463602066,
-0.11397714167833328,
0.1500728726387024,
-0.009664341807365417,
-0.3767279088497162,
0.02086760103702545,
-0.029417630285024643,
-0.23722422122955322,
-0.33546966314315796,
0.1512860506772995,
-0.07503455877304077,
-0.26429665088653564,
-0.5378636121749878,
-0.005131293088197708,
0.017167406156659126,
0.3859809935092926,
-0.21301059424877167,
-0.08029698580503464,
0.2222646027803421,
-0.28177469968795776,
0.20707060396671295,
0.5161466002464294,
0.24067656695842743,
-0.06502056121826172,
-0.12725651264190674,
-0.10053227096796036,
-0.2148464322090149,
-0.17437954246997833,
0.10058891773223877,
0.36498287320137024,
0.41462546586990356,
0.013475427404046059,
0.042117469012737274,
0.16692401468753815,
-0.14918608963489532,
0.015516221523284912,
0.24222204089164734,
-0.09479726850986481,
-0.0975523591041565,
0.18309450149536133,
0.14174407720565796,
-0.21883907914161682,
-0.2323550283908844,
0.039462633430957794,
-0.39438390731811523,
-0.01449201162904501,
0.42320409417152405,
-0.08353525400161743,
0.0879911556839943,
-0.19666410982608795,
0.14083583652973175,
-0.05254190042614937,
0.37783294916152954,
0.31142693758010864,
-0.061615072190761566,
-0.1288609355688095,
-0.18372201919555664,
-0.1686689853668213,
-0.1467708945274353,
0.16842350363731384,
0.1683301031589508,
-0.1748131960630417,
-0.006379718892276287,
0.22658124566078186,
0.2520137429237366,
-0.2523547410964966,
0.01362827979028225,
0.1262560784816742,
0.014353856444358826,
-0.5593927502632141,
-0.08958035707473755,
0.20984704792499542,
0.0673227459192276,
-0.05378501117229462,
0.05489733815193176,
0.026082541793584824,
-0.24266722798347473,
0.04314069449901581,
-0.3713628053665161,
0.24352940917015076,
0.2112385779619217,
0.16308510303497314,
0.2539024353027344,
0.011687570251524448,
0.43663331866264343,
-0.03342582657933235,
-0.13140863180160522,
-0.06810484826564789,
-0.2330942302942276,
-0.15691716969013214,
0.15076914429664612,
0.19774411618709564,
0.2544574439525604,
-0.24997477233409882,
-0.10161665081977844,
0.23241904377937317,
0.20994633436203003,
0.09807687997817993,
0.09163422882556915,
-0.6198492050170898,
-0.0849132239818573,
0.03849311172962189,
-0.1675666868686676,
0.2878291606903076,
0.06378450989723206,
0.050558701157569885,
-0.23141677677631378,
-0.27364879846572876,
-0.427302747964859,
0.0600481778383255,
-0.0545649379491806,
0.12087421119213104,
-0.4299786388874054,
0.05724304914474487,
0.41722920536994934,
0.3035714328289032,
-0.6652131676673889,
0.03713459521532059,
0.3935835659503937,
-0.14197894930839539,
0.005205448716878891,
0.3796032965183258,
0.17058147490024567,
-0.08742457628250122,
-0.18872356414794922,
0.2291717380285263,
-0.18606165051460266,
-0.259402334690094,
-0.2517865300178528,
-0.22362802922725677
] |
https://github.com/huggingface/datasets/issues/353 | [Dataset requests] New datasets for Text Classification | Great list. Any idea if Amazon Reviews has been added?
- ~40 GB of text (sadly no emoji)
- popular MLM pre-training dataset before bigger datasets like WebText https://arxiv.org/abs/1808.01371
- turns out that binarizing the 1-5 star rating leads to great Pos/Neg/Neutral dataset, T5 paper claims to get very high accuracy (98%!) on this with small amount of finetuning https://arxiv.org/abs/2004.14546
Apologies if it's been included (great to see where) and if not, it's one of the better medium/large NLP dataset for semi-supervised learning, albeit a bit out of date.
Thanks!!
cc @sshleifer | We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705 | 92 | [Dataset requests] New datasets for Text Classification
We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705
Great list. Any idea if Amazon Reviews has been added?
- ~40 GB of text (sadly no emoji)
- popular MLM pre-training dataset before bigger datasets like WebText https://arxiv.org/abs/1808.01371
- turns out that binarizing the 1-5 star rating leads to great Pos/Neg/Neutral dataset, T5 paper claims to get very high accuracy (98%!) on this with small amount of finetuning https://arxiv.org/abs/2004.14546
Apologies if it's been included (great to see where) and if not, it's one of the better medium/large NLP dataset for semi-supervised learning, albeit a bit out of date.
Thanks!!
cc @sshleifer | [
0.009956803172826767,
0.12012843787670135,
-0.18908223509788513,
0.21793538331985474,
0.21285824477672577,
0.21809500455856323,
0.2061842679977417,
0.14195413887500763,
-0.18605589866638184,
-0.10307678580284119,
-0.15358024835586548,
-0.020446419715881348,
-0.14540256559848785,
0.21926265954971313,
0.060506030917167664,
-0.18070745468139648,
0.012558989226818085,
-0.0416303426027298,
-0.07741232216358185,
-0.22035832703113556,
-0.16374099254608154,
0.160787433385849,
-0.09900832921266556,
-0.18708594143390656,
-0.3995821475982666,
-0.11544375866651535,
-0.14996351301670074,
0.08277592062950134,
-0.2747660279273987,
-0.48167479038238525,
0.032900020480155945,
0.07669000327587128,
0.14544694125652313,
0.3482028841972351,
-0.00009774963837116957,
-0.2388428896665573,
0.03841744735836983,
-0.028711915016174316,
-0.23686115443706512,
-0.22489483654499054,
-0.051260095089673996,
-0.40163999795913696,
-0.08966104686260223,
-0.1259755790233612,
-0.13364523649215698,
0.0372287817299366,
0.05659271404147148,
-0.18361476063728333,
0.0036868229508399963,
0.34639158844947815,
0.3029758632183075,
-0.028313562273979187,
-0.08667394518852234,
-0.12335775792598724,
0.25956469774246216,
0.5216811895370483,
-0.3470135033130646,
-0.10824902355670929,
0.5796990394592285,
0.11417242884635925,
-0.07738033682107925,
0.30882686376571655,
-0.2269613891839981,
-0.10911248624324799,
0.18488278985023499,
0.16431671380996704,
-0.14494603872299194,
-0.34198617935180664,
0.05696510896086693,
0.3712534010410309,
0.6867120862007141,
-0.2845931351184845,
-0.44770413637161255,
-0.3079700469970703,
0.16041316092014313,
-0.29134097695350647,
-0.1641087830066681,
0.2534991502761841,
-0.0334705114364624,
0.16410426795482635,
-0.17076918482780457,
-0.22187700867652893,
-0.1847558319568634,
0.19454169273376465,
0.2576349675655365,
0.09691271930932999,
-0.05719233304262161,
-0.26588428020477295,
-0.06376650929450989,
0.1105751022696495,
0.2781275510787964,
-0.3594803512096405,
0.1945616453886032,
0.0019448488019406796,
-0.19685520231723785,
-0.30354630947113037,
0.04329739138484001,
-0.0020649507641792297,
-0.031355734914541245,
0.041511598974466324,
-0.1057245209813118,
0.10289962589740753,
-0.19949834048748016,
-0.12251842767000198,
0.002734847366809845,
-0.17412225902080536,
0.20561730861663818,
0.21627308428287506,
0.08563016355037689,
-0.14314068853855133,
0.1288759559392929,
0.0778537392616272,
-0.09928010404109955,
0.16664989292621613,
-0.10299995541572571,
-0.018324919044971466,
-0.13201186060905457,
-0.25421199202537537,
-0.04671500250697136,
-0.03751062974333763,
-0.005370564758777618,
-0.06273913383483887,
-0.18303963541984558,
0.0345916822552681,
-0.036073941737413406,
0.10883722454309464,
-0.16343757510185242,
0.23971611261367798,
-0.04848410189151764,
-0.4128633141517639,
-0.14740924537181854,
-0.014883868396282196,
-0.13947325944900513,
0.08974483609199524,
0.6010736227035522,
-0.0843563973903656,
0.14151376485824585,
-0.1657429188489914,
-0.12121593952178955,
0.1633099913597107,
-0.01957639306783676,
-0.10557632148265839,
0.08842094242572784,
0.10803093016147614,
-0.14059118926525116,
0.07195175439119339,
0.08018697053194046,
0.1892993152141571,
-0.20428572595119476,
0.2494809627532959,
0.014788836240768433,
-0.24281789362430573,
-0.178746297955513,
0.3136509954929352,
-0.04187088459730148,
-0.5465010404586792,
-0.07621140033006668,
0.6240929961204529,
-0.014873139560222626,
-0.03546164929866791,
0.1351907104253769,
-0.033727146685123444,
-0.12673930823802948,
-0.12853284180164337,
-0.0070463987067341805,
0.34498345851898193,
-0.4318048357963562,
-0.18669453263282776,
-0.32396170496940613,
0.11204883456230164,
0.1348627209663391,
0.22933706641197205,
-0.17540456354618073,
0.06723996996879578,
0.14195825159549713,
0.028410792350769043,
0.21548859775066376,
0.02681981399655342,
-0.22893421351909637,
-0.00019251764751970768,
-0.004272885620594025,
-0.11344651877880096,
0.08088748157024384,
0.2780296802520752,
0.10636361688375473,
-0.06690693646669388,
-0.11429131031036377,
0.19467565417289734,
-0.2612948715686798,
-0.04440293833613396,
-0.22523875534534454,
-0.18108665943145752,
0.17400313913822174,
0.4263755977153778,
0.4575031101703644,
-0.2117217779159546,
0.0510215163230896,
-0.13814640045166016,
0.08951397240161896,
-0.03578517213463783,
0.21938161551952362,
0.1367531418800354,
0.15563982725143433,
0.15837812423706055,
0.05186951160430908,
-0.28095880150794983,
-0.1513502299785614,
-0.005842320621013641,
0.2436324656009674,
0.3482482135295868,
-0.00443962961435318,
-0.09715519100427628,
-0.0817791074514389,
-0.1140730008482933,
0.03082861937582493,
-0.10586152970790863,
0.21708473563194275,
-0.1768065094947815,
0.07764050364494324,
0.17143765091896057,
-0.25734344124794006,
0.2146836221218109,
-0.389697402715683,
0.32761678099632263,
0.18421770632266998,
0.28675511479377747,
-0.06571071594953537,
-0.06083805114030838,
0.17108257114887238,
0.361692875623703,
-0.15004420280456543,
0.011408262886106968,
0.023068785667419434,
-0.0033257678151130676,
-0.24834658205509186,
-0.036236196756362915,
0.25232768058776855,
0.3923209309577942,
0.31206247210502625,
-0.4238724410533905,
0.29855015873908997,
-0.027248356491327286,
0.08753684908151627,
-0.12846511602401733,
-0.1620539128780365,
0.4090003967285156,
-0.02162351831793785,
0.06474299728870392,
0.006024036556482315,
-0.05172107368707657,
-0.04087287560105324,
-0.020909029990434647,
0.05899079889059067,
0.10963539779186249,
0.36074644327163696,
-0.19727478921413422,
0.2059570997953415,
0.001774962991476059,
-0.16174785792827606,
0.18155957758426666,
0.185369074344635,
-0.06864509731531143,
0.20470982789993286,
0.22707363963127136,
-0.36266157031059265,
-0.1416253000497818,
-0.04963096231222153,
0.010518055409193039,
0.2799791693687439,
0.5136606693267822,
-0.0318664126098156,
-0.10479091852903366,
0.055083904415369034,
-0.3672751486301422,
0.08042363822460175,
0.3299192786216736,
0.053273700177669525,
0.07422910630702972,
0.277561217546463,
0.21610938012599945,
-0.24164104461669922,
-0.12705616652965546,
0.1679590791463852,
-0.035384081304073334,
-0.016741517931222916,
-0.10195161402225494,
-0.027799900621175766,
-0.3347748816013336,
0.04677874594926834,
0.04810524731874466,
-0.08743846416473389,
-0.26421353220939636,
0.22528034448623657,
-0.20679232478141785,
0.04178747162222862,
0.06042549014091492,
-0.31508755683898926,
0.539151668548584,
-0.24291060864925385,
0.07562753558158875,
-0.0991198942065239,
-0.20817998051643372,
-0.21267804503440857,
0.31413334608078003,
0.09419973194599152,
-0.08477798849344254,
0.45568275451660156,
-0.06655240058898926,
0.2534087300300598,
-0.19138917326927185,
-0.5189396739006042,
-0.014855518937110901,
-0.16654488444328308,
-0.043255873024463654,
-0.14638087153434753,
-0.16471053659915924,
0.01709514856338501,
-0.10856213420629501,
-0.05517596751451492,
-0.13543063402175903,
-0.17291845381259918,
-0.08204899728298187,
-0.12823668122291565,
-0.233013316988945,
-0.06392607092857361,
-0.6488707065582275,
-0.37516120076179504,
-0.09664422273635864,
0.12011440843343735,
0.024350125342607498,
-0.017713524401187897,
0.26620233058929443,
-0.05933292210102081,
0.02115621045231819,
-0.1397211104631424,
0.1283472329378128,
-0.07763150334358215,
-0.26904886960983276,
0.19938015937805176,
-0.10555808246135712,
-0.21191643178462982,
-0.1357286423444748,
-0.052759453654289246,
-0.0643499344587326,
-0.06826002150774002,
-0.5273969173431396,
0.1693698912858963,
-0.19720256328582764,
0.18708983063697815,
0.1181500032544136,
-0.09004408121109009,
0.3759343922138214,
0.2685988247394562,
-0.19581890106201172,
0.06630991399288177,
-0.07724649459123611,
-0.08186423033475876,
0.051213040947914124,
0.28838643431663513,
-0.3087565004825592,
0.10187277942895889,
0.2857587933540344,
0.5518407225608826,
0.037003859877586365,
-0.12772934138774872,
0.058187518268823624,
0.27675217390060425,
0.33150404691696167,
-0.008497171103954315,
-0.38933300971984863,
0.28397759795188904,
-0.13478422164916992,
0.17793235182762146,
0.3239387273788452,
0.18738007545471191,
-0.35430535674095154,
-0.2062402367591858,
0.04173775389790535,
-0.27248716354370117,
-0.08392871916294098,
0.24414630234241486,
-0.17697325348854065,
0.2626500427722931,
0.047092754393815994,
-0.08920037001371384,
-0.2200290560722351,
-0.43610525131225586,
-0.1354859173297882,
0.18960897624492645,
0.1607813835144043,
-0.19565317034721375,
-0.6076633334159851,
0.21480338275432587,
-0.46111756563186646,
0.10651960223913193,
0.14729706943035126,
-0.07787565141916275,
-0.16266600787639618,
0.14214640855789185,
-0.10196039080619812,
0.3258800506591797,
0.10276798158884048,
-0.4636113941669464,
-0.32477742433547974,
0.24465641379356384,
0.029968880116939545,
-0.08220947533845901,
0.14844004809856415,
-0.44674840569496155,
0.02179117687046528,
0.23624083399772644,
0.03612843528389931,
0.10494626313447952,
-0.059005703777074814,
0.4637444019317627,
-0.02727554738521576,
0.031643521040678024,
-0.2878135144710541,
0.29640570282936096,
0.06481537967920303,
-0.1597728729248047,
-0.028791360557079315,
0.06298302114009857,
0.06374351680278778,
-0.19713659584522247,
0.03180672600865364,
0.1918148696422577,
0.06677527725696564,
0.39716780185699463,
-0.279135525226593,
-0.34461337327957153,
0.16281643509864807,
0.218776136636734,
0.06704753637313843,
0.008649248629808426,
0.34632551670074463,
0.433037132024765,
-0.14777213335037231,
-0.5273458361625671,
-0.04940225929021835,
-0.14090415835380554,
0.4833730459213257,
0.34293049573898315,
0.3617253005504608,
0.25239109992980957,
-0.11656184494495392,
-0.12286245822906494,
-0.072019062936306,
0.25083526968955994,
0.12706135213375092,
-0.03573695197701454,
-0.5171098113059998,
-0.34281840920448303,
0.3212043344974518,
-0.0887967199087143,
-0.05286628380417824,
-0.037182100117206573,
0.18580561876296997,
-0.17820370197296143,
0.13938051462173462,
-0.005432829260826111,
0.9393481612205505,
-0.016749784350395203,
0.21775837242603302,
-0.29649585485458374,
-0.1543399691581726,
0.49365755915641785,
-0.2867141366004944,
0.16721293330192566,
-0.042642947286367416,
-0.19656012952327728,
-0.00016208738088607788,
-0.04250705987215042,
0.010546647012233734,
0.388258159160614,
0.105950728058815,
0.22214999794960022,
0.2518792152404785,
0.14195558428764343,
0.07970181107521057,
0.17055247724056244,
0.08263795077800751,
-0.43237021565437317,
0.06793373823165894,
0.28919851779937744,
0.0313086174428463,
0.23478232324123383,
-0.0014485660940408707,
0.013284128159284592,
-0.1919439136981964,
0.12940798699855804,
-0.6016513109207153,
-0.08037538081407547,
-0.18885190784931183,
0.06740802526473999,
0.02261229231953621,
-0.411312997341156,
0.5069021582603455,
0.2674870789051056,
0.48515790700912476,
0.14618052542209625,
-0.21115364134311676,
0.012158334255218506,
-0.22986704111099243,
-0.09990761429071426,
0.20722277462482452,
-0.14497089385986328,
0.324197918176651,
-0.0038160234689712524,
-0.23252758383750916,
0.1667744517326355,
0.06710918247699738,
-0.1346791386604309,
-0.43559637665748596,
-0.3422694802284241,
0.23981499671936035,
-0.34404438734054565,
0.2265365868806839,
0.21083930134773254,
-0.007370380684733391,
-0.28034764528274536,
0.2544865608215332,
0.22580870985984802,
0.24857960641384125,
0.12722240388393402,
0.1870499700307846,
-0.09668947011232376,
-0.3992346227169037,
0.24557659029960632,
0.1889500916004181,
-0.26244044303894043,
0.37535884976387024,
0.44876763224601746,
-0.22259749472141266,
-0.32113775610923767,
0.2563755512237549,
0.27194634079933167,
-0.2347518801689148,
-0.05093948543071747,
-0.12916041910648346,
-0.0731908529996872,
0.15804092586040497,
0.2855263650417328,
0.3492248058319092,
-0.2070113718509674,
0.056753840297460556,
-0.138640359044075,
-0.09049724787473679,
0.23786716163158417,
-0.07846716046333313,
0.05572647973895073,
-0.19564291834831238,
0.142693430185318,
0.07330238819122314,
0.19497540593147278,
-0.44725361466407776,
0.16314299404621124,
0.14369399845600128,
0.05083334445953369,
0.20791743695735931,
-0.09133098274469376,
0.1202329471707344,
-0.20431022346019745,
0.14572526514530182,
0.02057325467467308,
-0.06717783957719803,
-0.33576998114585876,
-0.007548523135483265,
0.10719197243452072,
0.06228369101881981,
-0.05033457279205322,
0.027825020253658295,
0.1178080290555954,
-0.1696546971797943,
-0.10410617291927338,
-0.11190663278102875,
0.08923209458589554,
0.1002388447523117,
0.39285334944725037,
-0.20862515270709991,
0.010754607617855072,
0.09195408225059509,
0.07816372811794281,
-0.3490191102027893,
0.32641321420669556,
0.2692596912384033,
0.15590915083885193,
0.45306816697120667,
0.07733993232250214,
-0.11192863434553146,
0.1587599515914917,
0.14641374349594116,
-0.0920320674777031,
0.6272503137588501,
-0.21608082950115204,
0.22979840636253357,
0.44856882095336914,
0.1351352483034134,
-0.1592942774295807,
-0.1255427896976471,
-0.003673207014799118,
0.07956746220588684,
0.3413499593734741,
-0.3197439908981323,
-0.14288412034511566,
-0.05984092876315117,
0.18812979757785797,
0.0759577602148056,
0.20661748945713043,
0.24788746237754822,
0.053562551736831665,
0.23199062049388885,
0.08261044323444366,
0.504677414894104,
-0.12227858603000641,
0.2788366675376892,
-0.012822579592466354,
0.16346824169158936,
-0.10634644329547882,
0.26266980171203613,
0.15993671119213104,
0.0391109436750412,
0.2669234275817871,
0.08838777989149094,
0.4581482410430908,
-0.13923904299736023,
0.2407558113336563,
0.23459604382514954,
-0.1436103880405426,
0.34042221307754517,
0.2780047655105591,
-0.12572437524795532,
0.22050529718399048,
-0.06314624845981598,
0.22997114062309265,
-0.17502035200595856,
0.04926212131977081,
-0.1364423930644989,
-0.047798123210668564,
-0.11342956870794296,
0.057844456285238266,
-0.03517785295844078,
-0.34976059198379517,
-0.04155239835381508,
-0.12929290533065796,
-0.29643628001213074,
-0.33243608474731445,
0.14113298058509827,
-0.0628620982170105,
-0.18919546902179718,
-0.5732408165931702,
0.2355666160583496,
0.115909643471241,
0.43282413482666016,
-0.20882923901081085,
-0.0516187846660614,
0.14384081959724426,
-0.1780403107404709,
0.19071140885353088,
0.4758203327655792,
0.20042355358600616,
-0.17190523445606232,
-0.10405956208705902,
0.1188344806432724,
-0.2416638284921646,
-0.19920365512371063,
0.17701096832752228,
0.23628674447536469,
0.3595467507839203,
0.16392752528190613,
0.005833707749843597,
0.21577468514442444,
-0.11951650679111481,
0.1666230857372284,
0.13749991357326508,
-0.07448562979698181,
-0.2650490999221802,
0.08082164078950882,
0.13318611681461334,
-0.2794409990310669,
-0.17324058711528778,
-0.022339321672916412,
-0.2270410656929016,
-0.20638121664524078,
0.4948808550834656,
-0.14009833335876465,
0.036783602088689804,
-0.09523577243089676,
0.1659814566373825,
-0.1450931429862976,
0.27875566482543945,
0.3749406039714813,
-0.2043953239917755,
-0.19464866816997528,
-0.07430044561624527,
-0.045599937438964844,
-0.18376392126083374,
0.14181463420391083,
0.2079702466726303,
-0.24352353811264038,
0.040447890758514404,
0.2586265504360199,
0.22251291573047638,
-0.368513286113739,
-0.07409371435642242,
-0.11362960934638977,
0.037768229842185974,
-0.5360797643661499,
-0.056228067725896835,
0.16305449604988098,
0.2559032142162323,
-0.01674874871969223,
0.14421966671943665,
-0.10428193211555481,
-0.0879722535610199,
0.09684457629919052,
-0.4222565293312073,
0.10649625957012177,
0.18841120600700378,
0.17298734188079834,
0.11739854514598846,
0.058784328401088715,
0.3530179560184479,
-0.04597551375627518,
-0.11794637888669968,
-0.08790090680122375,
-0.28859031200408936,
-0.0794677808880806,
0.38621777296066284,
0.06759602576494217,
0.33664074540138245,
-0.25567561388015747,
-0.3060525059700012,
0.2978150248527527,
0.048382632434368134,
0.020997963845729828,
-0.15101295709609985,
-0.4657728970050812,
-0.0059746308252215385,
0.023820511996746063,
-0.05565662309527397,
0.15217779576778412,
0.01786457747220993,
0.019232772290706635,
-0.14784689247608185,
-0.11186672002077103,
-0.35190755128860474,
0.0722225084900856,
-0.0022416114807128906,
0.12859167158603668,
-0.3013218641281128,
0.11773063242435455,
0.36625754833221436,
0.27219828963279724,
-0.5800651907920837,
0.012165963649749756,
0.4983747899532318,
-0.14627191424369812,
-0.05211549624800682,
0.44000089168548584,
0.18531182408332825,
-0.07420653849840164,
-0.16111956536769867,
0.2752126455307007,
-0.25852131843566895,
-0.22418534755706787,
-0.14010590314865112,
-0.20965787768363953
] |
https://github.com/huggingface/datasets/issues/353 | [Dataset requests] New datasets for Text Classification | On the Amazon Reviews dataset, the original UCSD website has noted these are now updated to include product reviews through 2018 -- actually quite recent compared to many other datasets. Almost certainly the largest NLP dataset out there with labels!
https://jmcauley.ucsd.edu/data/amazon/
Any chance someone has time to onboard this dataset in a HF way?
cc @sshleifer | We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705 | 56 | [Dataset requests] New datasets for Text Classification
We are missing a few datasets for Text Classification which is an important field.
Namely, it would be really nice to add:
- TREC-6 dataset (see here for instance: https://pytorchnlp.readthedocs.io/en/latest/source/torchnlp.datasets.html#torchnlp.datasets.trec_dataset) **[done]**
- Yelp-5
- Movie review (Movie Review (MR) dataset [156]) **[done (same as rotten_tomatoes)]**
- SST (Stanford Sentiment Treebank) **[include in glue]**
- Multi-Perspective Question Answering (MPQA) dataset **[require authentication (indeed manual download)]**
- Amazon. This is a popular corpus of product reviews collected from the Amazon website [159]. It contains labels for both binary classification and multi-class (5-class) classification
- 20 Newsgroups. The 20 Newsgroups dataset **[done]**
- Sogou News dataset **[done]**
- Reuters news. The Reuters-21578 dataset [165] **[done]**
- DBpedia. The DBpedia dataset [170]
- Ohsumed. The Ohsumed collection [171] is a subset of the MEDLINE database
- EUR-Lex. The EUR-Lex dataset
- WOS. The Web Of Science (WOS) dataset **[done]**
- PubMed. PubMed [173]
- TREC-QA. TREC-QA
- Quora. The Quora dataset [180]
All these datasets are cited in https://arxiv.org/abs/2004.03705
On the Amazon Reviews dataset, the original UCSD website has noted these are now updated to include product reviews through 2018 -- actually quite recent compared to many other datasets. Almost certainly the largest NLP dataset out there with labels!
https://jmcauley.ucsd.edu/data/amazon/
Any chance someone has time to onboard this dataset in a HF way?
cc @sshleifer | [
-0.019835717976093292,
0.1645350456237793,
-0.1285863220691681,
0.12269283831119537,
0.1399298757314682,
0.22253453731536865,
0.17682978510856628,
0.08158779889345169,
0.0018186867237091064,
-0.1834154576063156,
-0.29860734939575195,
-0.0017474261112511158,
-0.2310984879732132,
0.25536152720451355,
0.14003807306289673,
-0.21173891425132751,
-0.020114555954933167,
-0.0759115070104599,
-0.12464314699172974,
-0.21633611619472504,
-0.1675654649734497,
0.20931638777256012,
-0.08923543989658356,
-0.24448083341121674,
-0.37345948815345764,
-0.12972234189510345,
-0.18040789663791656,
0.12453585118055344,
-0.23036688566207886,
-0.5034517645835876,
0.15289734303951263,
0.25550317764282227,
0.2345864474773407,
0.35842612385749817,
-0.00010472582653164864,
-0.316330224275589,
0.012964177876710892,
-0.03612486273050308,
-0.2524423599243164,
-0.2285139113664627,
0.04800598323345184,
-0.4326220154762268,
-0.10933429002761841,
-0.011556506156921387,
-0.04148318991065025,
-0.03527846187353134,
0.06332848966121674,
-0.07346076518297195,
-0.0728205144405365,
0.27062907814979553,
0.2498827576637268,
-0.09681754559278488,
-0.014112215489149094,
-0.11153626441955566,
0.4056481719017029,
0.5342848300933838,
-0.26941588521003723,
-0.0557008795440197,
0.5810779333114624,
-0.0698624774813652,
-0.13881921768188477,
0.280479371547699,
-0.20751552283763885,
-0.15262898802757263,
0.32746583223342896,
0.0953846126794815,
-0.1789124310016632,
-0.34959179162979126,
-0.006355512887239456,
0.39095255732536316,
0.759986937046051,
-0.2851518988609314,
-0.4934871196746826,
-0.3570112884044647,
0.12044961005449295,
-0.2448962926864624,
-0.16551697254180908,
0.21342897415161133,
-0.02702576294541359,
0.02013263665139675,
-0.17476999759674072,
-0.2600172162055969,
-0.21487268805503845,
0.2961462736129761,
0.32744506001472473,
0.30380016565322876,
-0.002959880977869034,
-0.22689414024353027,
0.006238915026187897,
0.0804794505238533,
0.37327659130096436,
-0.2820252776145935,
0.18542218208312988,
0.08426446467638016,
-0.25439122319221497,
-0.25382930040359497,
0.041980721056461334,
-0.041949689388275146,
0.008205458521842957,
0.02994716539978981,
-0.2754579484462738,
0.052234288305044174,
-0.23594370484352112,
-0.08201979845762253,
-0.011437829583883286,
-0.10449612140655518,
0.18596228957176208,
0.2776843309402466,
-0.006437510251998901,
-0.1476684808731079,
0.11754721403121948,
0.05222390964627266,
-0.1956702172756195,
0.1799933761358261,
-0.1484033167362213,
-0.13015305995941162,
-0.30691152811050415,
-0.32689791917800903,
-0.05461900681257248,
-0.09306933730840683,
-0.027666015550494194,
-0.037200894206762314,
-0.16106681525707245,
0.10061100125312805,
-0.030531954020261765,
0.1423630565404892,
-0.0749843567609787,
0.204355850815773,
-0.0643116757273674,
-0.2759667932987213,
-0.10677812993526459,
-0.01326858252286911,
-0.09781081229448318,
0.13255341351032257,
0.5589259266853333,
0.0023383572697639465,
0.12668821215629578,
-0.23719924688339233,
-0.09303247928619385,
0.1769447773694992,
-0.18041883409023285,
-0.04991447180509567,
0.01449631154537201,
0.12370173633098602,
-0.08778674155473709,
0.06353969126939774,
0.08130589127540588,
0.1484283208847046,
-0.21879711747169495,
0.13589510321617126,
0.012635275721549988,
-0.18098139762878418,
-0.20636171102523804,
0.2547236382961273,
0.015191398561000824,
-0.5899583101272583,
-0.1809229850769043,
0.564457893371582,
-0.04782918840646744,
-0.10221883654594421,
0.14124833047389984,
-0.014403074979782104,
-0.1507674902677536,
-0.075646311044693,
-0.14723840355873108,
0.35790878534317017,
-0.4638134837150574,
-0.28685060143470764,
-0.30363795161247253,
0.17895802855491638,
0.19721543788909912,
0.15462033450603485,
-0.1420157253742218,
0.14141827821731567,
0.08845890313386917,
0.017344921827316284,
0.19785076379776,
-0.02811574563384056,
-0.2213231921195984,
0.0716082826256752,
-0.03732956200838089,
-0.20371507108211517,
0.10918112844228745,
0.3472172021865845,
0.12598906457424164,
-0.14296036958694458,
0.013675607740879059,
0.17987728118896484,
-0.19101698696613312,
-0.03513752669095993,
-0.22347842156887054,
-0.15382182598114014,
0.1330551952123642,
0.4792051315307617,
0.5008533596992493,
-0.1846708059310913,
0.017831631004810333,
-0.056696854531764984,
0.18333415687084198,
0.014811407774686813,
0.1735474020242691,
0.22455507516860962,
0.15899240970611572,
0.36529862880706787,
0.02009550854563713,
-0.3260865807533264,
-0.15828105807304382,
-0.03683147206902504,
0.13219916820526123,
0.32387420535087585,
0.083729587495327,
-0.12999778985977173,
-0.16202491521835327,
-0.07273612916469574,
0.06397687643766403,
-0.08847951889038086,
0.1685638576745987,
-0.18238750100135803,
0.0802147388458252,
0.06953272223472595,
-0.25116845965385437,
0.24452172219753265,
-0.32189130783081055,
0.348934143781662,
0.2296544760465622,
0.30984434485435486,
-0.06383070349693298,
0.0823664665222168,
0.2734515964984894,
0.4851835370063782,
-0.0561847984790802,
-0.004794237203896046,
0.08651232719421387,
-0.050735123455524445,
-0.3311425447463989,
-0.05200327932834625,
0.4012409448623657,
0.3406185507774353,
0.2171982079744339,
-0.4308609068393707,
0.23951280117034912,
-0.09081858396530151,
0.07023537158966064,
-0.22570785880088806,
-0.17708039283752441,
0.38262587785720825,
-0.06436990201473236,
0.10748658329248428,
0.016339674592018127,
0.01911068521440029,
-0.05757114291191101,
-0.05849970877170563,
0.15671862661838531,
0.12266141176223755,
0.47744497656822205,
-0.24024175107479095,
0.21560947597026825,
-0.056074149906635284,
-0.1531548947095871,
0.3102380037307739,
0.24109072983264923,
-0.02612673118710518,
0.14957638084888458,
0.31120121479034424,
-0.37672391533851624,
-0.12384557723999023,
-0.04054594784975052,
0.06794029474258423,
0.20946073532104492,
0.5444109439849854,
-0.016258176416158676,
-0.042984746396541595,
-0.063322514295578,
-0.29289641976356506,
0.003946192562580109,
0.24573127925395966,
0.1017831489443779,
0.09405029565095901,
0.33821213245391846,
0.2782362401485443,
-0.3023327887058258,
-0.25755053758621216,
0.1384822130203247,
-0.020798878744244576,
0.04212138429284096,
-0.03942829743027687,
-0.04574691504240036,
-0.4623202681541443,
-0.01339470874518156,
-0.014003838412463665,
-0.12705731391906738,
-0.3637329041957855,
0.3001459240913391,
-0.0999472588300705,
0.09348206222057343,
0.07195661962032318,
-0.39578762650489807,
0.5337889194488525,
-0.338283896446228,
-0.031204184517264366,
-0.08734894543886185,
-0.2671605050563812,
-0.25081443786621094,
0.2313462495803833,
0.14027707278728485,
-0.008853587321937084,
0.4727497398853302,
0.03874831646680832,
0.23265396058559418,
-0.1457156389951706,
-0.576591968536377,
-0.05592794716358185,
-0.12537574768066406,
-0.12096443772315979,
-0.18762537837028503,
-0.21549971401691437,
0.047962941229343414,
-0.16737116873264313,
-0.139753520488739,
-0.12038278579711914,
-0.14754226803779602,
-0.03298484534025192,
-0.24931851029396057,
-0.19512008130550385,
-0.03268010541796684,
-0.5112291574478149,
-0.3697477877140045,
-0.14610660076141357,
0.10259344428777695,
0.035828616470098495,
0.09331495314836502,
0.2685089707374573,
-0.2643093764781952,
0.014830120839178562,
-0.12426422536373138,
0.06664048135280609,
-0.0374445766210556,
-0.18865534663200378,
0.14137186110019684,
-0.12022437900304794,
-0.22819547355175018,
-0.12400592863559723,
-0.09678271412849426,
-0.07567647099494934,
-0.10281557589769363,
-0.667473316192627,
0.2082013487815857,
-0.19850781559944153,
0.12260179221630096,
0.1556166708469391,
-0.14055897295475006,
0.40666842460632324,
0.2476302832365036,
-0.18146254122257233,
-0.0203109011054039,
-0.12932312488555908,
-0.032769180834293365,
0.0750853568315506,
0.3712265193462372,
-0.3001053035259247,
0.08032175898551941,
0.23997989296913147,
0.5578203201293945,
0.043877553194761276,
-0.03512277081608772,
0.10145385563373566,
0.3303009569644928,
0.29963377118110657,
0.023163069039583206,
-0.4512157440185547,
0.28659072518348694,
-0.14167320728302002,
0.20598642528057098,
0.3343001902103424,
0.20413079857826233,
-0.43481457233428955,
-0.10716968029737473,
0.14278948307037354,
-0.27316564321517944,
-0.03998016566038132,
0.2332308292388916,
-0.2175334095954895,
0.224001944065094,
0.10422569513320923,
-0.18191313743591309,
-0.305563360452652,
-0.5037228465080261,
-0.10823187232017517,
0.2369365096092224,
0.17368894815444946,
-0.0743042603135109,
-0.6273707747459412,
0.20532909035682678,
-0.3945925831794739,
0.14006291329860687,
0.14631672203540802,
0.0674421563744545,
-0.2749195396900177,
0.2281358242034912,
-0.0827588140964508,
0.267869770526886,
0.12847329676151276,
-0.40057504177093506,
-0.22700704634189606,
0.2957068681716919,
0.15619589388370514,
-0.06844296306371689,
0.15421372652053833,
-0.3768278658390045,
0.05994395166635513,
0.28132209181785583,
0.017320096492767334,
0.0865544006228447,
-0.09212286025285721,
0.4317034184932709,
-0.05731554701924324,
0.009543400257825851,
-0.2893534004688263,
0.381458580493927,
0.022672265768051147,
-0.142552450299263,
-0.09049912542104721,
-0.013027379289269447,
0.15363475680351257,
-0.26463595032691956,
0.08523452281951904,
0.19456301629543304,
0.04288294166326523,
0.3212275505065918,
-0.41653409600257874,
-0.392934113740921,
0.2106626182794571,
0.18388962745666504,
0.011394472792744637,
0.03094037063419819,
0.26889488101005554,
0.5306918621063232,
-0.176951065659523,
-0.4539095163345337,
0.03671129047870636,
-0.055264491587877274,
0.4870544373989105,
0.34528452157974243,
0.42706891894340515,
0.30305105447769165,
-0.08847126364707947,
-0.047768473625183105,
-0.11855273693799973,
0.18913963437080383,
0.06970039010047913,
-0.0332249291241169,
-0.5455821752548218,
-0.24106252193450928,
0.4245170056819916,
-0.09380799531936646,
-0.052428968250751495,
-0.0012599267065525055,
0.2747277021408081,
-0.18694277107715607,
0.2298606038093567,
-0.07047276943922043,
0.9891273379325867,
-0.03203500062227249,
0.2314072549343109,
-0.33519959449768066,
-0.14999458193778992,
0.5273065567016602,
-0.3390079736709595,
0.16514399647712708,
-0.13662473857402802,
-0.06224874407052994,
-0.077358178794384,
0.005961515009403229,
-0.13553965091705322,
0.4320211410522461,
0.20124098658561707,
0.24374638497829437,
0.3407819867134094,
0.04235612601041794,
0.12663495540618896,
0.20390865206718445,
0.03899151831865311,
-0.506048858165741,
0.021323006600141525,
0.23469987511634827,
-0.036486491560935974,
0.36674726009368896,
-0.004177439026534557,
-0.00571845006197691,
-0.1408795416355133,
0.15942826867103577,
-0.7354983687400818,
-0.06736604124307632,
-0.10636298358440399,
0.1266804337501526,
0.06817629188299179,
-0.3045446276664734,
0.5246522426605225,
0.11318862438201904,
0.4435451030731201,
0.08650899678468704,
-0.21987566351890564,
-0.027204763144254684,
-0.2468961477279663,
-0.16310790181159973,
0.20935779809951782,
-0.11719667166471481,
0.39688652753829956,
-0.0255734883248806,
-0.1978740692138672,
0.08455894142389297,
0.06377574056386948,
-0.2301936000585556,
-0.39480704069137573,
-0.32004082202911377,
0.19089743494987488,
-0.23621073365211487,
0.2588208317756653,
0.32260727882385254,
-0.01089012622833252,
-0.3071139454841614,
0.19615891575813293,
0.16343432664871216,
0.2605303227901459,
0.03539218008518219,
0.2692895233631134,
-0.003522910177707672,
-0.34610289335250854,
0.21947109699249268,
0.16763752698898315,
-0.19581417739391327,
0.3862892687320709,
0.5314849019050598,
-0.2508363723754883,
-0.2816474437713623,
0.1999557912349701,
0.18237905204296112,
-0.3813149631023407,
-0.1412225067615509,
-0.08118608593940735,
-0.06096933037042618,
0.20649029314517975,
0.32448822259902954,
0.3847547173500061,
-0.25802096724510193,
0.025159504264593124,
-0.3177655339241028,
-0.12075332552194595,
0.3003711700439453,
-0.25486692786216736,
0.05467965081334114,
-0.172232985496521,
0.2259538173675537,
0.06480636447668076,
0.3074405789375305,
-0.37206363677978516,
0.1942465752363205,
0.05464863032102585,
0.009455772116780281,
0.13040375709533691,
-0.07322515547275543,
0.14133945107460022,
-0.21628634631633759,
0.04471723735332489,
0.022611267864704132,
-0.0884639173746109,
-0.25349217653274536,
-0.09481397271156311,
0.1510849893093109,
0.10359281301498413,
0.04876622557640076,
-0.0773821547627449,
0.06003619730472565,
-0.17538008093833923,
0.014529934152960777,
-0.060747697949409485,
0.09624878317117691,
0.12250731140375137,
0.444811075925827,
-0.1451948881149292,
0.002680763602256775,
0.049338631331920624,
0.09582789987325668,
-0.15304769575595856,
0.33972519636154175,
0.25221723318099976,
0.10696470737457275,
0.3758498430252075,
0.13192594051361084,
-0.25367358326911926,
0.205922931432724,
0.1825130730867386,
-0.2143230140209198,
0.6236369013786316,
-0.3106362223625183,
0.34343770146369934,
0.40520375967025757,
0.18119478225708008,
-0.19000202417373657,
-0.03811464458703995,
0.021020354703068733,
0.20601323246955872,
0.24695785343647003,
-0.3663809299468994,
-0.2355717122554779,
-0.06323076784610748,
0.18203428387641907,
0.04969066008925438,
0.15990978479385376,
0.32513824105262756,
0.09743660688400269,
0.30783748626708984,
0.11862296611070633,
0.4503095746040344,
-0.1487875133752823,
0.1708049476146698,
-0.10720452666282654,
0.1341327577829361,
-0.007213961333036423,
0.2847108542919159,
0.231627956032753,
0.04254375398159027,
0.2432035356760025,
0.19885823130607605,
0.44074928760528564,
-0.15632843971252441,
0.1626003235578537,
0.29731905460357666,
-0.2611614763736725,
0.2581981122493744,
0.28044116497039795,
0.05069969594478607,
0.18646785616874695,
-0.1658579409122467,
0.3415148854255676,
-0.22848524153232574,
-0.003657374996691942,
-0.019414227455854416,
0.002869080752134323,
-0.04934798181056976,
-0.006272858940064907,
0.053482845425605774,
-0.25351282954216003,
-0.11395012587308884,
-0.12816360592842102,
-0.273951917886734,
-0.4175283908843994,
0.13849878311157227,
-0.10585522651672363,
-0.16201601922512054,
-0.7215716242790222,
0.14225125312805176,
0.13256993889808655,
0.4418778717517853,
-0.1659162938594818,
-0.05744616687297821,
0.051581259816884995,
-0.15375438332557678,
0.18014508485794067,
0.4200517237186432,
0.17363741993904114,
-0.20056095719337463,
-0.1233227550983429,
0.00510496087372303,
-0.28624024987220764,
-0.178983673453331,
0.17520926892757416,
0.3023538887500763,
0.45474404096603394,
0.011844983324408531,
0.14991772174835205,
0.15753155946731567,
-0.06406345218420029,
0.2059071660041809,
0.1363331526517868,
-0.08302560448646545,
-0.10922110080718994,
0.2585863471031189,
0.14759212732315063,
-0.2569754719734192,
-0.19775597751140594,
-0.012341178953647614,
-0.23038750886917114,
-0.236763596534729,
0.4216780364513397,
-0.13556256890296936,
0.0850251242518425,
-0.10421574860811234,
0.1350456029176712,
-0.08261756598949432,
0.3175191879272461,
0.4432278275489807,
-0.144182950258255,
-0.1165921613574028,
-0.07282549887895584,
-0.040816035121679306,
-0.21656391024589539,
0.09110882878303528,
0.10533003509044647,
-0.1427566558122635,
0.030698800459504128,
0.291080117225647,
0.17082752287387848,
-0.3768724203109741,
-0.11907731741666794,
-0.06128985434770584,
0.06962120532989502,
-0.486419677734375,
0.010039882734417915,
0.18543800711631775,
0.2585160434246063,
-0.05040927976369858,
0.11695019155740738,
-0.1581365466117859,
-0.023228105157613754,
0.015577837824821472,
-0.38964980840682983,
0.19580519199371338,
0.21188656985759735,
0.13573037087917328,
0.022418975830078125,
-0.04315213859081268,
0.4692194163799286,
0.01245550811290741,
-0.08735109865665436,
-0.1607498824596405,
-0.3508633077144623,
-0.08784469217061996,
0.20338663458824158,
-0.0014762505888938904,
0.4487062096595764,
-0.26185721158981323,
-0.2969013452529907,
0.3471095860004425,
-0.008351470343768597,
-0.012251462787389755,
-0.08262442797422409,
-0.44847461581230164,
0.08595448732376099,
-0.12865766882896423,
-0.0025236899964511395,
0.26858267188072205,
0.13188135623931885,
0.13555535674095154,
-0.13891707360744476,
-0.0911826491355896,
-0.3851821720600128,
0.13716936111450195,
-0.021432461217045784,
0.11093060672283173,
-0.13782520592212677,
0.13090325891971588,
0.4573971927165985,
0.12238915264606476,
-0.6342867612838745,
-0.029826834797859192,
0.4297260344028473,
-0.13909119367599487,
0.07529054582118988,
0.473236620426178,
0.045411475002765656,
-0.08113688975572586,
-0.15978258848190308,
0.27712371945381165,
-0.31647032499313354,
-0.27705150842666626,
-0.24066519737243652,
-0.17422305047512054
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | This is probably a Windows issue, we need to specify the encoding when `load_dataset()` reads the original CSV file.
Try to find the `open()` statement called by `load_dataset()` and add an `encoding='utf-8'` parameter.
See issues #242 and #307 | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 38 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
This is probably a Windows issue, we need to specify the encoding when `load_dataset()` reads the original CSV file.
Try to find the `open()` statement called by `load_dataset()` and add an `encoding='utf-8'` parameter.
See issues #242 and #307 | [
-0.2610895335674286,
-0.07662402838468552,
-0.05322117358446121,
0.1464463174343109,
0.3858143091201782,
0.010254733264446259,
0.025446482002735138,
0.1763576865196228,
-0.17912448942661285,
0.0838485136628151,
0.17901568114757538,
0.43521326780319214,
0.058860648423433304,
0.3545266389846802,
0.24038638174533844,
0.041625168174505234,
0.09441805630922318,
0.32282617688179016,
0.03939468413591385,
0.0472041592001915,
-0.3697527050971985,
0.1955374777317047,
-0.10321436822414398,
0.05223356932401657,
-0.25893667340278625,
-0.06078793853521347,
0.01055111177265644,
0.27369263768196106,
-0.28233611583709717,
-0.5056849718093872,
0.20172341167926788,
-0.09076394140720367,
0.20715080201625824,
0.224962055683136,
-0.00010332557576475665,
-0.07002580165863037,
0.2572828531265259,
-0.20353762805461884,
-0.07299691438674927,
-0.3186081647872925,
-0.17217545211315155,
-0.38077396154403687,
0.05909808725118637,
-0.2513731122016907,
0.015425346791744232,
0.29832422733306885,
-0.017855962738394737,
-0.06950037181377411,
0.49333351850509644,
0.36715176701545715,
0.32253381609916687,
0.11518654227256775,
-0.12043800950050354,
0.14903852343559265,
-0.00007401406764984131,
0.04818253964185715,
-0.030162915587425232,
0.48932722210884094,
0.1714174896478653,
-0.2337495982646942,
0.08544198423624039,
0.15753251314163208,
-0.21839798986911774,
-0.10516172647476196,
0.07546330988407135,
0.10996781289577484,
-0.16624441742897034,
-0.3456844091415405,
0.12172027677297592,
0.09353795647621155,
0.25997498631477356,
-0.28276950120925903,
-0.03743565082550049,
0.10490386933088303,
0.1600744128227234,
-0.693611204624176,
0.28311458230018616,
0.3683137893676758,
-0.268606036901474,
0.13473305106163025,
0.01330367662012577,
0.1663525253534317,
0.027223125100135803,
-0.059277281165122986,
0.07354265451431274,
-0.0005271881818771362,
-0.19281278550624847,
-0.08728975802659988,
0.20688213407993317,
0.0006387047469615936,
0.12937034666538239,
0.0012706499546766281,
-0.18455779552459717,
0.21110042929649353,
-0.22593523561954498,
-0.06721746921539307,
-0.1538415253162384,
0.004110477864742279,
-0.17602214217185974,
-0.15660615265369415,
0.5614192485809326,
0.11084705591201782,
0.0470188707113266,
0.3558770418167114,
0.09987454116344452,
0.1248825341463089,
-0.2047818899154663,
0.129920095205307,
0.25390034914016724,
-0.0032391948625445366,
0.21122711896896362,
0.0027610957622528076,
-0.197627454996109,
-0.3183397054672241,
-0.2264605015516281,
0.33687278628349304,
0.1330849826335907,
-0.16729708015918732,
-0.43222177028656006,
0.14324097335338593,
0.10575694590806961,
0.14135679602622986,
0.02130626142024994,
0.213102787733078,
0.19555994868278503,
0.2922644019126892,
0.015584778040647507,
0.20123448967933655,
-0.3497922122478485,
-0.25783872604370117,
-0.04672878608107567,
0.22182948887348175,
-0.3768261671066284,
-0.13140462338924408,
0.23589856922626495,
-0.13872189819812775,
0.11090458929538727,
0.28525155782699585,
0.14129690825939178,
-0.18392670154571533,
-0.07991797477006912,
-0.15498170256614685,
0.053738612681627274,
0.13828366994857788,
0.07597224414348602,
0.13851214945316315,
0.16701532900333405,
-0.3159833550453186,
-0.08217888325452805,
0.10154872387647629,
-0.48186177015304565,
-0.022530704736709595,
-0.05885215848684311,
0.27577707171440125,
-0.06528155505657196,
-0.06949258595705032,
-0.5188580751419067,
0.16899557411670685,
0.08983457088470459,
-0.31076937913894653,
0.026084862649440765,
-0.21244589984416962,
-0.14783713221549988,
-0.18523947894573212,
0.15502312779426575,
0.5013538599014282,
-0.5585430264472961,
0.16944284737110138,
0.21237285435199738,
0.01554932538419962,
0.3184651732444763,
0.1244623064994812,
-0.09686457365751266,
-0.14305755496025085,
-0.17160356044769287,
-0.021770324558019638,
0.2493208944797516,
-0.2651791572570801,
-0.22262443602085114,
0.30897003412246704,
-0.09018250554800034,
-0.05861327797174454,
0.046029601246118546,
-0.10656525939702988,
0.14712844789028168,
-0.18862947821617126,
0.11448348313570023,
0.3725200295448303,
-0.01968180574476719,
0.28097355365753174,
-0.21919244527816772,
-0.1849881112575531,
0.2239275574684143,
-0.004494000226259232,
-0.2701479196548462,
-0.11700253933668137,
0.21151800453662872,
0.066950723528862,
0.19733837246894836,
-0.14169299602508545,
-0.20568060874938965,
0.15318846702575684,
0.2411947399377823,
-0.20496948063373566,
-0.10224051773548126,
0.2412944734096527,
0.03584814816713333,
-0.040333159267902374,
-0.25605857372283936,
0.16370588541030884,
-0.3069278597831726,
-0.1502535045146942,
-0.17048463225364685,
0.035157546401023865,
-0.368014395236969,
-0.26938846707344055,
0.24289408326148987,
-0.037117041647434235,
-0.0683981329202652,
-0.012357039377093315,
-0.09558943659067154,
0.24679438769817352,
-0.013406733050942421,
-0.012604514136910439,
-0.2271217554807663,
0.17894212901592255,
-0.2131502330303192,
-0.18688370287418365,
0.31834694743156433,
0.29551228880882263,
0.16681498289108276,
-0.11773630976676941,
-0.2245190143585205,
0.2406991422176361,
0.03729807958006859,
0.36371558904647827,
-0.2209499180316925,
-0.29437321424484253,
0.45547911524772644,
-0.46034884452819824,
0.06756319850683212,
0.4531860053539276,
0.29571732878685,
-0.08738124370574951,
0.22945627570152283,
0.3592461347579956,
-0.15948724746704102,
-0.016738317906856537,
-0.07259511202573776,
-0.06143045425415039,
0.257991224527359,
0.08488920331001282,
0.10848258435726166,
-0.15747684240341187,
0.3592933714389801,
0.6213697195053101,
0.20192281901836395,
-0.025705797597765923,
-0.12329287827014923,
0.014179393649101257,
0.49811646342277527,
-0.05185258388519287,
-0.11697985976934433,
0.08976252377033234,
0.053576380014419556,
-0.11140958219766617,
0.0894826129078865,
0.07124949991703033,
0.22731879353523254,
-0.10566762089729309,
-0.3125161826610565,
0.2457754909992218,
0.020614273846149445,
-0.23078565299510956,
0.19051823019981384,
-0.1344035267829895,
-0.036810290068387985,
-0.015628688037395477,
0.0608474537730217,
0.11061470955610275,
-0.29077643156051636,
-0.1287156641483307,
0.10400180518627167,
0.17763379216194153,
-0.32103976607322693,
0.3218952715396881,
-0.4479723870754242,
-0.378326952457428,
-0.30877047777175903,
0.23261596262454987,
-0.14332233369350433,
0.021926147863268852,
-0.15951795876026154,
0.017354650422930717,
0.0631207674741745,
0.1683913767337799,
-0.20438577234745026,
0.04005606472492218,
-0.06830998510122299,
-0.17543542385101318,
0.12252110242843628,
-0.2182813137769699,
-0.26202934980392456,
0.15591317415237427,
0.4287249743938446,
-0.05996490642428398,
0.08356750756502151,
-0.3489726483821869,
0.14156153798103333,
0.2766742706298828,
-0.14653421938419342,
0.16012349724769592,
-0.26120686531066895,
0.1343981921672821,
-0.03718814253807068,
0.0921340063214302,
-0.061995647847652435,
-0.40006569027900696,
0.15400144457817078,
-0.05596890300512314,
-0.07732927054166794,
0.185152068734169,
0.007584014907479286,
-0.32022911310195923,
-0.26137688755989075,
-0.1141119971871376,
-0.498291552066803,
-0.33258363604545593,
-0.18118074536323547,
0.001452770084142685,
0.10167466104030609,
0.34494414925575256,
0.13686266541481018,
0.04975472018122673,
0.21421511471271515,
-0.11424806714057922,
-0.09440536051988602,
-0.22199565172195435,
0.3507091701030731,
-0.3976946175098419,
-0.5242290496826172,
0.08968190848827362,
-0.044361554086208344,
0.40020301938056946,
-0.20824845135211945,
-0.18530598282814026,
-0.027339240536093712,
-0.11319732666015625,
0.11915948987007141,
0.04498133808374405,
0.10422012954950333,
-0.0041825249791145325,
-0.02279745414853096,
-0.045914143323898315,
-0.1186298355460167,
-0.10145406424999237,
-0.12920859456062317,
0.09624479711055756,
0.3029595911502838,
0.03990502655506134,
0.24789822101593018,
-0.2661062180995941,
0.09984788298606873,
0.2606481909751892,
0.04746876284480095,
0.5908398628234863,
-0.14221955835819244,
0.37432292103767395,
-0.08166123181581497,
-0.1248042955994606,
0.12463629990816116,
-0.27333691716194153,
-0.05621936917304993,
0.27659258246421814,
-0.11660384386777878,
-0.2867611348628998,
-0.3135623633861542,
0.039699848741292953,
-0.35132813453674316,
-0.29616665840148926,
0.1885455995798111,
0.05950037017464638,
0.09696129709482193,
0.024850431829690933,
0.13537973165512085,
0.07016263902187347,
-0.3088006377220154,
-0.11107857525348663,
0.2989735007286072,
-0.1462356448173523,
0.1520853340625763,
-0.1521616131067276,
-0.48398205637931824,
-0.24144667387008667,
0.11344850808382034,
0.17112261056900024,
0.4359162747859955,
-0.03673872351646423,
0.1763128638267517,
0.07949738949537277,
-0.11913706362247467,
0.21652057766914368,
0.13510210812091827,
0.04350772872567177,
0.1071515679359436,
0.1585666686296463,
0.11581327766180038,
-0.10625216364860535,
-0.20475254952907562,
0.17654307186603546,
0.12131050229072571,
-0.26269668340682983,
-0.045727573335170746,
0.055160075426101685,
0.022996166720986366,
0.37029388546943665,
-0.13299784064292908,
0.10605266690254211,
-0.4633561074733734,
-0.553403913974762,
-0.024614695459604263,
-0.16168522834777832,
0.18985410034656525,
0.29340100288391113,
-0.21985194087028503,
0.009320620447397232,
0.120200514793396,
-0.25228607654571533,
0.24370622634887695,
0.4230840504169464,
0.374091774225235,
0.15270984172821045,
-0.022092726081609726,
-0.18542003631591797,
-0.07221874594688416,
0.18729446828365326,
0.711394727230072,
0.03370879963040352,
-0.3642597496509552,
0.1105942577123642,
-0.2761213481426239,
0.3163726329803467,
0.19741791486740112,
-0.1727219521999359,
-0.07856246083974838,
-0.12814342975616455,
-0.06576380133628845,
-0.22214944660663605,
0.08300347626209259,
0.2763557434082031,
0.17470702528953552,
-0.5603706240653992,
-0.4825340509414673,
0.4688643515110016,
-0.09146080911159515,
0.19336508214473724,
0.036570027470588684,
-0.06316423416137695,
-0.3073396682739258,
0.2559741735458374,
-0.011488616466522217,
0.8470340371131897,
0.2099159210920334,
0.12766775488853455,
0.2932155132293701,
0.01737266033887863,
0.29067349433898926,
-0.08322387933731079,
0.20380297303199768,
-0.2968001365661621,
-0.16011075675487518,
-0.01261322945356369,
0.18556717038154602,
0.24042415618896484,
0.06362227350473404,
-0.3559834063053131,
0.22429144382476807,
0.06486198306083679,
-0.16832301020622253,
0.1615425944328308,
0.16928929090499878,
-0.18983852863311768,
-0.25598353147506714,
-0.5498681664466858,
0.24202296137809753,
-0.07417519390583038,
0.05978129059076309,
-0.09014081209897995,
-0.20307552814483643,
0.020164992660284042,
-0.3251197934150696,
-0.2977227568626404,
0.2888043224811554,
-0.4078463613986969,
0.16684633493423462,
-0.20217083394527435,
-0.6580175161361694,
0.2853274643421173,
0.1242905855178833,
0.1985471546649933,
0.2002893090248108,
-0.021645264700055122,
0.12313041090965271,
0.27776435017585754,
-0.022761771455407143,
-0.013376123271882534,
0.11911123991012573,
0.0687001645565033,
-0.16449090838432312,
-0.06194019690155983,
0.16699348390102386,
0.10849638283252716,
-0.005296718329191208,
0.40467578172683716,
0.03903874382376671,
-0.21949462592601776,
-0.11171011626720428,
-0.22968991100788116,
-0.20042908191680908,
0.18410278856754303,
-0.05921249836683273,
0.1926204413175583,
-0.06887450814247131,
-0.1279045045375824,
0.0036829933524131775,
0.06806322187185287,
-0.30477434396743774,
-0.14665929973125458,
0.06514134258031845,
-0.06779733300209045,
-0.15245115756988525,
0.495076060295105,
0.16535700857639313,
-0.23780016601085663,
-0.11860738694667816,
0.22359681129455566,
-0.16045652329921722,
-0.48360395431518555,
-0.042450062930583954,
0.19999733567237854,
-0.012062788009643555,
0.04104291647672653,
0.6318262219429016,
-0.017503082752227783,
0.0172417089343071,
0.1021786779165268,
-0.4966740906238556,
-0.26128891110420227,
-0.06849527359008789,
-0.10126619040966034,
-0.044672008603811264,
0.21024176478385925,
0.34300124645233154,
0.10564148426055908,
-0.14398112893104553,
-0.3483978807926178,
0.046959809958934784,
-0.06357258558273315,
0.07444418966770172,
0.2907145023345947,
-0.08194295316934586,
0.11723294854164124,
0.0607287771999836,
0.16601377725601196,
0.30020207166671753,
-0.027597784996032715,
-0.24180877208709717,
-0.16976939141750336,
0.05613158643245697,
-0.03564974665641785,
-0.31609222292900085,
-0.08206166326999664,
0.050534941256046295,
-0.06929537653923035,
-0.0936085656285286,
0.12228445708751678,
0.07307422161102295,
0.07308603823184967,
0.17470583319664001,
-0.387005090713501,
0.1315183788537979,
-0.019794601947069168,
0.2080584168434143,
-0.21562090516090393,
0.5619532465934753,
0.17978636920452118,
0.16045083105564117,
0.04982632026076317,
0.05274134874343872,
-0.15327250957489014,
-0.02524910867214203,
-0.3163548707962036,
0.057834409177303314,
0.12773221731185913,
-0.3855438828468323,
0.39053070545196533,
0.12644384801387787,
-0.008264679461717606,
0.5075644254684448,
-0.13792714476585388,
-0.02117634378373623,
0.42582547664642334,
0.20204785466194153,
-0.32724422216415405,
0.10574506968259811,
-0.32969462871551514,
-0.06406570225954056,
-0.07204905152320862,
0.2804105281829834,
0.27232006192207336,
-0.1586746871471405,
0.21670043468475342,
-0.14519572257995605,
0.43940335512161255,
0.1370037943124771,
0.3914923369884491,
0.4240069091320038,
0.15574710071086884,
0.2737903892993927,
-0.09570948779582977,
0.12829184532165527,
-0.04705668240785599,
0.08878320455551147,
-0.5585888624191284,
0.02975737303495407,
0.09045174717903137,
0.17735689878463745,
-0.1411343514919281,
-0.3880750834941864,
-0.042910363525152206,
-0.12912124395370483,
-0.1982981562614441,
0.33518731594085693,
0.14718173444271088,
0.5732955932617188,
-0.47519901394844055,
-0.05341066047549248,
-0.12152578681707382,
0.16434870660305023,
-0.15612837672233582,
0.05968290939927101,
0.07762234658002853,
0.013827010989189148,
-0.28520622849464417,
0.18480291962623596,
-0.03922823444008827,
0.1242770329117775,
-0.07613125443458557,
0.32210350036621094,
-0.18201573193073273,
-0.05054064095020294,
-0.011067841202020645,
-0.004077985882759094,
0.0636589527130127,
-0.08794949948787689,
0.47017109394073486,
0.2787473797798157,
0.1963551938533783,
0.23963311314582825,
0.09662847220897675,
0.6247941851615906,
0.4012525677680969,
-0.1397327035665512,
-0.03709973022341728,
-0.17242148518562317,
0.06266684830188751,
0.1204681247472763,
0.09729170054197311,
0.31718048453330994,
0.4335693418979645,
0.14594212174415588,
0.2074575424194336,
-0.13580676913261414,
-0.08453096449375153,
0.2828323543071747,
-0.024657871574163437,
0.06377895176410675,
0.0951787680387497,
-0.03578200191259384,
0.22397762537002563,
-0.5465278625488281,
-0.07459991425275803,
-0.37109631299972534,
0.28545209765434265,
0.3344532549381256,
0.0766337513923645,
0.03165321424603462,
-0.11546818166971207,
0.1219320148229599,
0.11464293301105499,
0.4839323163032532,
0.2948763966560364,
0.06736527383327484,
-0.19347435235977173,
-0.027468465268611908,
-0.7056214213371277,
0.22355110943317413,
0.09089956432580948,
-0.37796270847320557,
-0.24089477956295013,
-0.286488801240921,
0.017779849469661713,
0.33940064907073975,
-0.040315285325050354,
0.27576982975006104,
0.08419060707092285,
0.060477741062641144,
-0.08088625967502594,
0.014154890552163124,
-0.17190419137477875,
0.01161764282733202,
-0.24423788487911224,
-0.25198328495025635,
0.06908047199249268,
-0.2601284980773926,
0.11660339683294296,
-0.2869596481323242,
-0.2666410207748413,
-0.43506544828414917,
0.0025402307510375977,
0.2772051692008972,
0.19450891017913818,
0.43320468068122864,
-0.25691795349121094,
-0.13834133744239807,
-0.11967137455940247,
-0.17580166459083557,
-0.06275221705436707,
0.3558354377746582,
0.2394198179244995,
0.06176324933767319,
0.05469995737075806,
0.14697310328483582,
-0.3888510465621948,
0.31690534949302673,
-0.03807844966650009,
-0.1657901555299759,
-0.2426057606935501,
0.03631598502397537,
-0.0004941672086715698,
-0.08873261511325836,
0.20332668721675873,
0.38090288639068604,
-0.10027854144573212,
0.1084834486246109,
-0.12042567133903503,
-0.4743165969848633,
0.14040929079055786,
-0.5154398083686829,
-0.1619221717119217,
0.1350950449705124,
0.23748290538787842,
-0.1778983175754547,
0.13828474283218384,
-0.4250999391078949,
0.2577647864818573,
-0.02976919338107109,
-0.18820518255233765,
-0.2813657820224762,
0.2817213833332062,
-0.3067503273487091,
-0.1085515022277832,
-0.08045687526464462,
0.42271319031715393,
0.2139987051486969,
-0.18789251148700714,
0.10649867355823517,
-0.3179030418395996
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | It should be in `xtreme.py:L755`:
```python
if self.config.name == "tydiqa" or self.config.name.startswith("MLQA") or self.config.name == "SQuAD":
with open(filepath) as f:
data = json.load(f)
```
Could you try to add the encoding parameter:
```python
open(filepath, encoding='utf-8')
``` | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 36 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
It should be in `xtreme.py:L755`:
```python
if self.config.name == "tydiqa" or self.config.name.startswith("MLQA") or self.config.name == "SQuAD":
with open(filepath) as f:
data = json.load(f)
```
Could you try to add the encoding parameter:
```python
open(filepath, encoding='utf-8')
``` | [
-0.26959240436553955,
-0.028840288519859314,
-0.020871425047516823,
0.20286011695861816,
0.4484196901321411,
-0.1219135969877243,
-0.14026276767253876,
0.2741997241973877,
-0.3068619668483734,
0.130818173289299,
0.1182485818862915,
0.5972365736961365,
0.010757314041256905,
0.37257274985313416,
0.14938730001449585,
0.007484205067157745,
-0.05019550770521164,
0.2807826101779938,
0.11429353058338165,
0.016058556735515594,
-0.3124449849128723,
0.18047282099723816,
-0.10919299721717834,
-0.03225397318601608,
-0.35689523816108704,
-0.09025058895349503,
0.1276564747095108,
0.27844592928886414,
-0.42369478940963745,
-0.5119253993034363,
0.18339410424232483,
-0.012981511652469635,
0.22304701805114746,
0.2653474807739258,
-0.00010584413394099101,
-0.045437686145305634,
0.31839340925216675,
-0.2982025146484375,
-0.22164422273635864,
-0.3611506223678589,
-0.2516927123069763,
-0.3150952160358429,
0.1989210546016693,
-0.26378434896469116,
-0.10069140791893005,
0.24040083587169647,
0.019945189356803894,
-0.09523819386959076,
0.5233157873153687,
0.2909528911113739,
0.29633018374443054,
0.07383284717798233,
-0.07441087067127228,
0.14868539571762085,
-0.028229840099811554,
0.1482585370540619,
-0.1475575566291809,
0.44517019391059875,
0.2602998614311218,
-0.09113459289073944,
0.14267942309379578,
0.2766980230808258,
-0.15152080357074738,
-0.056993041187524796,
0.04071374610066414,
0.04991957172751427,
-0.15190300345420837,
-0.42665448784828186,
0.12090636789798737,
0.10552927851676941,
0.17935620248317719,
-0.3225923180580139,
-0.09619421511888504,
0.08705716580152512,
0.19632788002490997,
-0.5246251821517944,
0.25342094898223877,
0.3471807539463043,
-0.29698771238327026,
0.09745106846094131,
-0.07730845361948013,
0.10505452007055283,
0.037519827485084534,
-0.03499782085418701,
0.07796218991279602,
0.21095606684684753,
-0.18106837570667267,
-0.06676224619150162,
0.13647553324699402,
-0.021838653832674026,
0.21108435094356537,
0.012895586900413036,
-0.2235887348651886,
0.17907854914665222,
-0.15875259041786194,
-0.13363879919052124,
-0.18170160055160522,
-0.08758058398962021,
-0.08736163377761841,
-0.1382659673690796,
0.5145918130874634,
0.12066715955734253,
-0.05869177728891373,
0.3560682237148285,
0.11077946424484253,
0.10490907728672028,
-0.09842164069414139,
0.2221194952726364,
0.18338075280189514,
0.12795676290988922,
0.09569329023361206,
0.029643692076206207,
-0.2141445130109787,
-0.1327177733182907,
-0.339344322681427,
0.28912603855133057,
0.14419080317020416,
-0.16742949187755585,
-0.3648914396762848,
0.08518282324075699,
-0.028666751459240913,
0.10877259075641632,
0.14220201969146729,
0.2070309817790985,
0.15106669068336487,
0.23216572403907776,
0.061019256711006165,
0.26383066177368164,
-0.3025706708431244,
-0.25823989510536194,
-0.09830158203840256,
0.2584838569164276,
-0.36695918440818787,
-0.11516644805669785,
0.19706982374191284,
-0.09071144461631775,
0.19829794764518738,
0.1363951712846756,
0.18439838290214539,
-0.26215967535972595,
0.046331457793712616,
-0.12189562618732452,
0.061019524931907654,
0.08384031057357788,
0.08854004740715027,
0.035076841711997986,
0.17561762034893036,
-0.38575810194015503,
-0.09535159170627594,
0.10328778624534607,
-0.49300849437713623,
0.03641008213162422,
-0.11235126852989197,
0.2696915566921234,
-0.14081843197345734,
-0.054591044783592224,
-0.5896962285041809,
0.15818198025226593,
0.05574844777584076,
-0.2681746184825897,
0.0798104852437973,
-0.15710240602493286,
-0.07418151944875717,
-0.17665496468544006,
0.21833835542201996,
0.42306602001190186,
-0.4035664200782776,
0.03338856250047684,
0.23494574427604675,
0.05508296564221382,
0.3388776183128357,
0.061215225607156754,
-0.20302516222000122,
-0.14101436734199524,
-0.10472802072763443,
-0.035799067467451096,
0.3881506025791168,
-0.4512215852737427,
-0.21391266584396362,
0.272594153881073,
-0.05092669278383255,
-0.021616145968437195,
-0.030132479965686798,
-0.1311151683330536,
0.05548105761408806,
-0.10263246297836304,
0.13797713816165924,
0.4275485873222351,
0.0005013607442378998,
0.3331621289253235,
-0.26108866930007935,
-0.27358853816986084,
0.11344824731349945,
0.1089547872543335,
-0.22556693851947784,
-0.14875996112823486,
0.174879252910614,
0.3316147029399872,
0.24495935440063477,
-0.13013355433940887,
-0.24559874832630157,
0.11324555426836014,
0.23608018457889557,
-0.33532679080963135,
-0.20258694887161255,
0.23051169514656067,
0.010263632982969284,
-0.03924034163355827,
-0.295790433883667,
0.23973026871681213,
-0.34152257442474365,
-0.07095985859632492,
-0.1357056349515915,
0.07057234644889832,
-0.48424848914146423,
-0.28707996010780334,
0.2603209912776947,
0.004070289433002472,
-0.1470939666032791,
-0.04893099516630173,
-0.14450962841510773,
0.3022412955760956,
-0.04758491367101669,
0.010671867057681084,
-0.2947004735469818,
0.2131466269493103,
-0.18766270577907562,
-0.28113722801208496,
0.30040162801742554,
0.2748616337776184,
0.1912812888622284,
-0.16716445982456207,
-0.27618736028671265,
0.17265789210796356,
0.05729855224490166,
0.3439623713493347,
-0.17371174693107605,
-0.2655016779899597,
0.4478881359100342,
-0.47997182607650757,
0.05142086744308472,
0.439786821603775,
0.21580570936203003,
-0.10092548280954361,
0.2564745247364044,
0.3604637682437897,
-0.04985683783888817,
0.005790084600448608,
-0.0060211047530174255,
-0.16067944467067719,
0.19115373492240906,
0.02167457714676857,
0.041913487017154694,
-0.14187245070934296,
0.24288232624530792,
0.6975976228713989,
0.24687902629375458,
-0.030325235798954964,
-0.11353245377540588,
0.05222285911440849,
0.557623565196991,
0.013454757630825043,
-0.048501305282115936,
0.047993749380111694,
0.12088510394096375,
-0.17395815253257751,
0.12389121204614639,
0.0689128041267395,
0.1667802333831787,
-0.05298459902405739,
-0.2737361192703247,
0.2346288561820984,
0.018539980053901672,
-0.15786978602409363,
0.19780871272087097,
-0.09908953309059143,
0.0686611756682396,
0.07219162583351135,
0.19925659894943237,
0.010044356808066368,
-0.3035997748374939,
-0.2533632516860962,
0.0424584224820137,
0.14456714689731598,
-0.22977983951568604,
0.3444659411907196,
-0.4669024646282196,
-0.4023396670818329,
-0.23577259480953217,
0.14307503402233124,
-0.18676413595676422,
-0.057852134108543396,
-0.12088359892368317,
-0.05683901533484459,
0.15535204112529755,
0.2601635158061981,
-0.13328278064727783,
-0.011391058564186096,
-0.1319018304347992,
-0.20661894977092743,
0.06437879800796509,
-0.22192412614822388,
-0.20307999849319458,
0.133208230137825,
0.41378745436668396,
-0.04752236604690552,
0.0261734239757061,
-0.3408569097518921,
0.09646572172641754,
0.3336153030395508,
-0.22996824979782104,
0.308339387178421,
-0.26432937383651733,
0.1596699357032776,
-0.027984417974948883,
0.10914644598960876,
-0.09514567255973816,
-0.38749173283576965,
0.2449345886707306,
-0.02453591488301754,
-0.1276833862066269,
0.05618990957736969,
-0.10401374101638794,
-0.20812304317951202,
-0.24077536165714264,
0.027378857135772705,
-0.48493683338165283,
-0.34866371750831604,
-0.20085473358631134,
0.12954622507095337,
0.13331621885299683,
0.3928808271884918,
0.2247520238161087,
0.16894428431987762,
0.21778126060962677,
-0.05705322325229645,
-0.1314011812210083,
-0.3819483816623688,
0.25951728224754333,
-0.320051908493042,
-0.3355325162410736,
0.04274176433682442,
-0.06584471464157104,
0.5374213457107544,
-0.22147876024246216,
-0.1797289252281189,
-0.15334026515483856,
-0.008825385943055153,
0.10469330847263336,
-0.06501047313213348,
0.13401976227760315,
0.004933498799800873,
-0.01136980950832367,
-0.014720826409757137,
-0.1544588804244995,
-0.13917440176010132,
-0.07446623593568802,
0.13699397444725037,
0.4062230587005615,
-0.08339513838291168,
0.2225060760974884,
-0.2268182933330536,
0.07877404242753983,
0.22525522112846375,
0.004275865852832794,
0.6793313026428223,
-0.0974561870098114,
0.3227319121360779,
-0.12814679741859436,
-0.08775288611650467,
0.16255821287631989,
-0.10002028942108154,
-0.07270611822605133,
0.19747892022132874,
-0.044901248067617416,
-0.28619563579559326,
-0.3524031639099121,
0.015064217150211334,
-0.34099897742271423,
-0.23408706486225128,
0.09050051867961884,
0.2625526785850525,
-0.039736829698085785,
-0.023014267906546593,
0.18321409821510315,
0.04061351716518402,
-0.17799675464630127,
-0.12387746572494507,
0.28726857900619507,
-0.1525914967060089,
0.22168253362178802,
-0.28701332211494446,
-0.5363573431968689,
-0.16441625356674194,
0.1338128000497818,
0.2102375030517578,
0.27694645524024963,
0.04454638436436653,
0.18235090374946594,
0.1378425508737564,
-0.16472013294696808,
0.17142972350120544,
0.07347129285335541,
0.007199883460998535,
0.07981596887111664,
0.10176581144332886,
0.026204561814665794,
-0.10088804364204407,
-0.1671181172132492,
0.19113092124462128,
0.17160408198833466,
-0.18840083479881287,
-0.1574801504611969,
-0.002305437345057726,
0.07058453559875488,
0.2752673923969269,
-0.07509735226631165,
0.15875227749347687,
-0.4937398135662079,
-0.6795375943183899,
-0.182059645652771,
-0.23359274864196777,
0.22089499235153198,
0.3266316056251526,
-0.043483346700668335,
-0.013529334217309952,
0.12518242001533508,
-0.22384321689605713,
0.22706927359104156,
0.5767015814781189,
0.4269614815711975,
0.25971055030822754,
-0.08155281096696854,
-0.181380957365036,
-0.08507364988327026,
0.24765507876873016,
0.7725031971931458,
0.039348408579826355,
-0.2483740746974945,
0.17886826395988464,
-0.09743267297744751,
0.2881147563457489,
0.28312671184539795,
-0.08747299015522003,
-0.1002374067902565,
-0.18177065253257751,
-0.056520089507102966,
-0.10195422917604446,
0.2562609016895294,
0.14940902590751648,
0.020573731511831284,
-0.5256534814834595,
-0.4884105324745178,
0.5606643557548523,
-0.054915085434913635,
0.1898401826620102,
0.10738983750343323,
-0.049288153648376465,
-0.3160758912563324,
0.2909819483757019,
0.0824175626039505,
0.9118967652320862,
0.20741169154644012,
0.13265086710453033,
0.3785891532897949,
-0.007850881665945053,
0.26631224155426025,
-0.1112288236618042,
0.22339889407157898,
-0.29869481921195984,
-0.061455823481082916,
0.050710633397102356,
0.13211508095264435,
0.12906062602996826,
0.07396510243415833,
-0.34114158153533936,
0.1588938981294632,
-0.030506744980812073,
-0.33091145753860474,
0.12979668378829956,
0.3077484369277954,
-0.20231254398822784,
-0.25013113021850586,
-0.7101186513900757,
0.22570660710334778,
-0.20921726524829865,
0.03507208824157715,
-0.08716509491205215,
-0.2560061812400818,
-0.07222329080104828,
-0.295012891292572,
-0.2078409492969513,
0.37603136897087097,
-0.5171031951904297,
0.10672185570001602,
-0.06296364963054657,
-0.5599786043167114,
0.24954324960708618,
0.12346801161766052,
0.10440866649150848,
0.21844464540481567,
-0.01604459621012211,
0.24064628779888153,
0.28333958983421326,
-0.005950528662651777,
0.011053367517888546,
0.17585383355617523,
0.08053085952997208,
-0.24791255593299866,
-0.07700847089290619,
0.20054396986961365,
0.13862557709217072,
-0.09121833741664886,
0.33900967240333557,
0.04288493096828461,
-0.20788751542568207,
-0.10638416558504105,
-0.30974212288856506,
-0.1305743306875229,
0.14715462923049927,
-0.03948960825800896,
0.16914916038513184,
-0.02561067044734955,
-0.20118466019630432,
-0.07776195555925369,
0.26281264424324036,
-0.35462290048599243,
-0.11166635155677795,
0.10453642904758453,
-0.023659702390432358,
-0.055113278329372406,
0.4700590670108795,
0.11001312732696533,
-0.20287707448005676,
-0.11282292753458023,
0.273369699716568,
-0.10008397698402405,
-0.4406725764274597,
-0.01565667614340782,
0.1384807974100113,
-0.19548386335372925,
0.008642077445983887,
0.7061377167701721,
-0.013293154537677765,
0.05167171359062195,
0.22281022369861603,
-0.39656656980514526,
-0.3372614085674286,
0.03397958725690842,
-0.14421512186527252,
-0.009089302271604538,
0.17098578810691833,
0.4224150478839874,
0.011977529153227806,
-0.07142895460128784,
-0.3345584273338318,
0.07723760604858398,
-0.1851833313703537,
0.09221722185611725,
0.09201706945896149,
-0.14707159996032715,
0.1361885666847229,
0.10423015058040619,
0.16436508297920227,
0.32691293954849243,
-0.12798908352851868,
-0.2219962477684021,
-0.18261772394180298,
0.06941445171833038,
-0.000019820407032966614,
-0.3460964858531952,
-0.2182556539773941,
0.05245855450630188,
-0.07328450679779053,
-0.07807985693216324,
0.12752047181129456,
0.029943101108074188,
0.12787878513336182,
0.154526025056839,
-0.2598356604576111,
0.07354387640953064,
0.07107263803482056,
0.1250915378332138,
-0.0021258220076560974,
0.5763776302337646,
0.22224733233451843,
0.11968373507261276,
0.022108541801571846,
0.03708355873823166,
-0.07273741811513901,
-0.03110111504793167,
-0.25515633821487427,
0.2031826376914978,
0.08677608519792557,
-0.36857175827026367,
0.3687850832939148,
0.08116129785776138,
-0.07435277104377747,
0.4766401946544647,
-0.19202715158462524,
-0.05110401287674904,
0.26780450344085693,
0.19453833997249603,
-0.268694132566452,
0.05658857524394989,
-0.18238715827465057,
-0.06019294261932373,
-0.02397308498620987,
0.40541377663612366,
0.14808204770088196,
-0.030542265623807907,
0.23711849749088287,
-0.07087518274784088,
0.43693047761917114,
0.2265244573354721,
0.379215270280838,
0.21388760209083557,
-0.06767666339874268,
0.17078760266304016,
-0.08431749790906906,
0.11060301959514618,
-0.02693875879049301,
-0.0761306881904602,
-0.5743138790130615,
0.13850250840187073,
0.07514093816280365,
0.09835918992757797,
0.01619858294725418,
-0.16133737564086914,
-0.13379618525505066,
-0.08204981684684753,
-0.07032519578933716,
0.340271532535553,
0.09143824130296707,
0.40651723742485046,
-0.4054412543773651,
-0.0660921186208725,
-0.008206846192479134,
0.1307271420955658,
-0.12023945897817612,
0.048768237233161926,
0.0025681965053081512,
-0.04466535896062851,
-0.3869643211364746,
0.1005111038684845,
-0.10382169485092163,
0.060370393097400665,
-0.1292281448841095,
0.3464919924736023,
-0.15971095860004425,
0.056018270552158356,
0.029041189700365067,
0.08749435842037201,
0.07930704951286316,
-0.14786425232887268,
0.6503374576568604,
0.25972193479537964,
0.14483749866485596,
0.19507673382759094,
0.10924025624990463,
0.5741668343544006,
0.37796834111213684,
-0.18208318948745728,
-0.04523439332842827,
-0.09107166528701782,
0.012746935710310936,
0.07133174687623978,
0.021548626944422722,
0.4151420593261719,
0.28485921025276184,
0.231820747256279,
0.20369568467140198,
-0.16369006037712097,
-0.15693940222263336,
0.26187679171562195,
-0.056618575006723404,
0.10925436019897461,
0.20530951023101807,
-0.09732173383235931,
0.27347826957702637,
-0.47110775113105774,
-0.09926749020814896,
-0.4386305809020996,
0.3083440661430359,
0.2360982596874237,
-0.0013730046339333057,
0.03190820664167404,
-0.21505892276763916,
0.116106316447258,
-0.040357645601034164,
0.532291829586029,
0.22666679322719574,
-0.0033684931695461273,
-0.15691247582435608,
-0.084074005484581,
-0.5758488178253174,
0.25997722148895264,
0.06490347534418106,
-0.4464881718158722,
-0.1634177714586258,
-0.18274706602096558,
0.021105676889419556,
0.4211796522140503,
-0.009659290313720703,
0.3094617426395416,
0.15080687403678894,
0.0013076737523078918,
-0.19902794063091278,
-0.03409432992339134,
-0.13089904189109802,
0.04684373363852501,
-0.14824634790420532,
-0.2397923469543457,
-0.029027018696069717,
-0.32428884506225586,
0.11476168781518936,
-0.2961997985839844,
-0.4041749835014343,
-0.42430388927459717,
0.027178067713975906,
0.285133421421051,
0.17059637606143951,
0.35889893770217896,
-0.32292452454566956,
-0.23420099914073944,
-0.01748092845082283,
-0.2376614809036255,
-0.10614071041345596,
0.3435540795326233,
0.21302931010723114,
0.31976914405822754,
0.10299430042505264,
0.2732108235359192,
-0.49376463890075684,
0.335764080286026,
-0.08371336758136749,
-0.2716357409954071,
-0.18800856173038483,
0.0018072128295898438,
-0.0851682722568512,
-0.02085295505821705,
0.09978491067886353,
0.37125468254089355,
-0.033804818987846375,
0.1574394255876541,
-0.18498675525188446,
-0.43571627140045166,
0.3454657793045044,
-0.4225982129573822,
-0.1698669046163559,
0.2028678059577942,
0.12232958525419235,
-0.15539056062698364,
0.07979905605316162,
-0.5110156536102295,
0.2554684281349182,
0.01976827159523964,
-0.12279286235570908,
-0.27816370129585266,
0.29596975445747375,
-0.2903795540332794,
-0.07860357314348221,
-0.05855162814259529,
0.31282395124435425,
0.239962637424469,
-0.12064532935619354,
-0.013589674606919289,
-0.23343436419963837
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | Hello @jerryIsHere :) Did it work ?
If so we may change the dataset script to force the utf-8 encoding | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 20 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
Hello @jerryIsHere :) Did it work ?
If so we may change the dataset script to force the utf-8 encoding | [
-0.37319353222846985,
-0.0007192492485046387,
-0.05706861987709999,
0.14228805899620056,
0.46322619915008545,
-0.05833654850721359,
0.01056474819779396,
0.229329451918602,
-0.2868662476539612,
0.04334630072116852,
0.15359392762184143,
0.45696982741355896,
-0.013836420141160488,
0.38359153270721436,
0.26692721247673035,
0.025212284177541733,
0.01643431931734085,
0.28148773312568665,
-0.10305991768836975,
-0.021944206207990646,
-0.27945011854171753,
0.15532706677913666,
-0.06297573447227478,
0.0027559176087379456,
-0.38821136951446533,
-0.05707758665084839,
0.07147710770368576,
0.2772667407989502,
-0.35693439841270447,
-0.5312874913215637,
0.20947051048278809,
0.05353636294603348,
0.18639740347862244,
0.27385908365249634,
-0.00010227883467450738,
-0.0029412582516670227,
0.3291233777999878,
-0.23022308945655823,
-0.15953880548477173,
-0.2611721158027649,
-0.24831035733222961,
-0.35307782888412476,
0.11061453819274902,
-0.20777055621147156,
-0.023720495402812958,
0.1612134873867035,
0.03684920445084572,
-0.1297161877155304,
0.4614183306694031,
0.2716948390007019,
0.3374946713447571,
0.1603052020072937,
-0.06368254125118256,
0.11947241425514221,
-0.022356703877449036,
0.15250512957572937,
-0.05236176401376724,
0.34658288955688477,
0.2546723484992981,
-0.19295163452625275,
0.0855836421251297,
0.2532847821712494,
-0.13681067526340485,
-0.09484072029590607,
0.05214720219373703,
0.03952730447053909,
-0.16056963801383972,
-0.3848978281021118,
0.10532604157924652,
0.1600775122642517,
0.29788345098495483,
-0.3879595398902893,
-0.11832556873559952,
0.08822121471166611,
0.12101837992668152,
-0.4723835289478302,
0.2392139732837677,
0.304127037525177,
-0.24885031580924988,
0.13341127336025238,
-0.07097547501325607,
0.11294324696063995,
0.029687941074371338,
-0.03672616183757782,
0.014721982181072235,
0.09235717356204987,
-0.12955862283706665,
-0.0976853147149086,
0.12484140694141388,
-0.04986870288848877,
0.18775781989097595,
0.050129421055316925,
-0.20157942175865173,
0.19522976875305176,
-0.17489640414714813,
-0.09068578481674194,
-0.1389029622077942,
0.037420451641082764,
-0.017733614891767502,
-0.1268712282180786,
0.47943753004074097,
0.18325677514076233,
-0.06753334403038025,
0.313592791557312,
0.14538933336734772,
0.060867469757795334,
-0.15266597270965576,
0.27088990807533264,
0.2193608582019806,
0.032170992344617844,
0.1343899369239807,
0.07106984406709671,
-0.1698647141456604,
-0.2104029655456543,
-0.2478930950164795,
0.2668911814689636,
0.1573387235403061,
-0.18601065874099731,
-0.41126883029937744,
0.09743665158748627,
0.1417267620563507,
0.05619906634092331,
0.06823808699846268,
0.21818125247955322,
0.22988125681877136,
0.3139398992061615,
-0.02917560189962387,
0.23343853652477264,
-0.35566475987434387,
-0.315835565328598,
-0.15235692262649536,
0.2118062973022461,
-0.3692719638347626,
-0.1307552605867386,
0.17762871086597443,
-0.060679104179143906,
0.14888764917850494,
0.17136059701442719,
0.1450042426586151,
-0.11410253494977951,
0.0414619967341423,
-0.10937388241291046,
0.10054969787597656,
0.13884276151657104,
0.04390445724129677,
0.09622733294963837,
0.1858626753091812,
-0.28391167521476746,
-0.08422001451253891,
0.0651572197675705,
-0.40524858236312866,
-0.027473924681544304,
-0.1326577216386795,
0.3021104037761688,
-0.09767229110002518,
-0.07237322628498077,
-0.5015497803688049,
0.15966634452342987,
0.1064520925283432,
-0.2595105469226837,
0.07704991847276688,
-0.1923125833272934,
-0.06407739222049713,
-0.14319269359111786,
0.20951968431472778,
0.4781801104545593,
-0.4952624440193176,
0.06632766127586365,
0.19816212356090546,
-0.051367465406656265,
0.32714083790779114,
0.06468980014324188,
-0.15270383656024933,
-0.09506528824567795,
-0.18467211723327637,
0.014883868396282196,
0.3477728068828583,
-0.3756851553916931,
-0.2681891620159149,
0.3038839101791382,
-0.04303336516022682,
-0.05524074286222458,
0.008513085544109344,
-0.013336751610040665,
0.057475488632917404,
-0.17727169394493103,
0.05951254814863205,
0.45277631282806396,
-0.016030145809054375,
0.2917620837688446,
-0.20914490520954132,
-0.2561109662055969,
0.19216902554035187,
0.1395072638988495,
-0.2073940485715866,
-0.15278127789497375,
0.2245234251022339,
0.2628915309906006,
0.25723540782928467,
-0.09655866026878357,
-0.21114785969257355,
0.2039385437965393,
0.17237374186515808,
-0.2741015553474426,
-0.16490639746189117,
0.15302732586860657,
-0.053228989243507385,
-0.012810060754418373,
-0.29100415110588074,
0.22130078077316284,
-0.351693332195282,
-0.1563195139169693,
-0.15892952680587769,
0.03819795697927475,
-0.4941668212413788,
-0.2556965947151184,
0.2810661792755127,
-0.01909644901752472,
-0.12646512687206268,
0.013504795730113983,
-0.15965184569358826,
0.29638269543647766,
0.01994362659752369,
-0.01963076740503311,
-0.30176842212677,
0.21507245302200317,
-0.15209880471229553,
-0.25043991208076477,
0.30621665716171265,
0.2735081613063812,
0.08922864496707916,
-0.12972189486026764,
-0.18042272329330444,
0.2587800920009613,
0.04607181251049042,
0.3964955806732178,
-0.2296985387802124,
-0.2436220496892929,
0.4404161274433136,
-0.5327326655387878,
0.09914731234312057,
0.3941131830215454,
0.2343510389328003,
-0.15958592295646667,
0.2340756356716156,
0.2926599383354187,
-0.15304474532604218,
-0.0467364564538002,
0.02124212682247162,
-0.09994180500507355,
0.212110698223114,
0.023097600787878036,
0.05033528804779053,
-0.2419477254152298,
0.3193279504776001,
0.5829188227653503,
0.33534446358680725,
-0.026066625490784645,
-0.10825935751199722,
0.06745186448097229,
0.5159155130386353,
-0.03269929066300392,
-0.004393182694911957,
0.039160605520009995,
0.06458500772714615,
-0.136620432138443,
0.08825867623090744,
0.10234056413173676,
0.19324162602424622,
-0.018556103110313416,
-0.2185663878917694,
0.2224380224943161,
-0.01699354127049446,
-0.1787494719028473,
0.1433495283126831,
-0.12766428291797638,
0.031858786940574646,
0.03472882881760597,
0.10803734511137009,
-0.007886829786002636,
-0.3578636646270752,
-0.18108296394348145,
0.05370520055294037,
0.16685399413108826,
-0.2967933416366577,
0.2733759880065918,
-0.5112017393112183,
-0.4090260863304138,
-0.18688109517097473,
0.1079191118478775,
-0.1811726838350296,
-0.09477993845939636,
-0.07682111114263535,
-0.08537669479846954,
0.11533324420452118,
0.29086577892303467,
-0.19697175920009613,
-0.06157325208187103,
-0.08301157504320145,
-0.1593249887228012,
-0.020454905927181244,
-0.18768468499183655,
-0.21834295988082886,
0.1528370976448059,
0.4614599347114563,
0.0059020123444497585,
0.11120576411485672,
-0.39168551564216614,
0.07324928045272827,
0.19476443529129028,
-0.21733421087265015,
0.2696351706981659,
-0.2560005187988281,
0.12304840981960297,
0.07183205336332321,
0.1163182482123375,
0.031264081597328186,
-0.27865326404571533,
0.2485315203666687,
-0.07088134437799454,
-0.11507613956928253,
0.14097578823566437,
-0.06822829693555832,
-0.21055978536605835,
-0.23683719336986542,
0.01264917105436325,
-0.5228258967399597,
-0.3507964313030243,
-0.26454126834869385,
0.11859622597694397,
0.14282962679862976,
0.34996142983436584,
0.19771841168403625,
0.058454159647226334,
0.1639472097158432,
-0.12009584903717041,
-0.11100191622972488,
-0.3482826352119446,
0.316683292388916,
-0.33202099800109863,
-0.42804157733917236,
0.019336480647325516,
-0.0038294438272714615,
0.48871952295303345,
-0.11894573271274567,
-0.23412178456783295,
-0.09236817806959152,
-0.12304911017417908,
0.14309781789779663,
-0.03101344406604767,
0.1473952680826187,
-0.025525197386741638,
0.011926345527172089,
-0.04255307465791702,
-0.14646562933921814,
0.00798502191901207,
-0.06986833363771439,
0.0022525768727064133,
0.2842380702495575,
-0.0301305390894413,
0.22772282361984253,
-0.20860199630260468,
0.018959227949380875,
0.2235666662454605,
-0.02246546372771263,
0.703598141670227,
-0.1742078959941864,
0.38427916169166565,
-0.19118863344192505,
-0.08751565217971802,
0.10263756662607193,
-0.0767112523317337,
-0.015614447183907032,
0.16114629805088043,
-0.07969905436038971,
-0.21456867456436157,
-0.2738921046257019,
0.053056810051202774,
-0.25120148062705994,
-0.24269704520702362,
0.10963816940784454,
0.11522039771080017,
0.012779727578163147,
-0.00020669400691986084,
0.15316596627235413,
0.0882379412651062,
-0.225884348154068,
-0.06636107712984085,
0.16485849022865295,
-0.15956977009773254,
0.21481676399707794,
-0.29645565152168274,
-0.2983591854572296,
-0.2577539086341858,
0.11073390394449234,
0.1485261619091034,
0.3356163203716278,
-0.0790967047214508,
0.1531953513622284,
0.11683106422424316,
-0.12914633750915527,
0.21683987975120544,
0.02913256734609604,
0.11425977945327759,
0.08790609240531921,
0.09014573693275452,
-0.01888994872570038,
-0.07589459419250488,
-0.19780488312244415,
0.17196379601955414,
0.09559895098209381,
-0.19606763124465942,
-0.16992834210395813,
-0.0016317215049639344,
0.05898573622107506,
0.37722456455230713,
-0.09780396521091461,
0.12634852528572083,
-0.4287364184856415,
-0.6874223947525024,
-0.11774108558893204,
-0.2442573606967926,
0.23441384732723236,
0.24733860790729523,
-0.09499616920948029,
-0.04442783072590828,
0.006608291529119015,
-0.2473975419998169,
0.21899190545082092,
0.46876856684684753,
0.4177286922931671,
0.12958507239818573,
0.0223173089325428,
-0.13599476218223572,
-0.10608521103858948,
0.25621357560157776,
0.7766746282577515,
0.022011980414390564,
-0.2808932662010193,
0.09669226408004761,
-0.22847101092338562,
0.2586394250392914,
0.22585135698318481,
-0.07655004411935806,
-0.15817856788635254,
-0.09578235447406769,
-0.0640953779220581,
-0.21748057007789612,
0.20452263951301575,
0.22073332965373993,
0.12831443548202515,
-0.6074509620666504,
-0.5158411860466003,
0.48172351717948914,
-0.02573675848543644,
0.20491547882556915,
0.12317799031734467,
-0.07495038211345673,
-0.3552890717983246,
0.26220375299453735,
0.035132359713315964,
0.8382989764213562,
0.15882918238639832,
0.22848165035247803,
0.3226374387741089,
0.13869889080524445,
0.18743807077407837,
-0.03178293630480766,
0.10919822752475739,
-0.3560636341571808,
-0.18519355356693268,
-0.019519001245498657,
0.1509481519460678,
0.1931740641593933,
0.1352776288986206,
-0.31184351444244385,
0.18626126646995544,
-0.0538865327835083,
-0.27371466159820557,
0.15165036916732788,
0.26980671286582947,
-0.2737753391265869,
-0.20560117065906525,
-0.6117538809776306,
0.2700067162513733,
-0.11867871880531311,
0.027254648506641388,
-0.11516735702753067,
-0.20424416661262512,
0.014222335070371628,
-0.33175522089004517,
-0.22527116537094116,
0.33481353521347046,
-0.45870158076286316,
0.2300199568271637,
-0.1353648155927658,
-0.6156848669052124,
0.1628248393535614,
0.17204226553440094,
0.15077748894691467,
0.19378021359443665,
-0.010165886953473091,
0.25711002945899963,
0.2559056282043457,
0.03171687573194504,
0.05553492158651352,
0.14005078375339508,
0.1517917960882187,
-0.1858292818069458,
-0.08831506222486496,
0.15212491154670715,
0.1377558410167694,
-0.06205570697784424,
0.28770795464515686,
-0.006257414817810059,
-0.15872634947299957,
-0.12837985157966614,
-0.2758006155490875,
-0.17050209641456604,
0.18488918244838715,
-0.05519521236419678,
0.20124174654483795,
-0.006244540214538574,
-0.17442092299461365,
-0.005424909293651581,
0.18731215596199036,
-0.3181982636451721,
-0.1325160264968872,
0.0828508585691452,
-0.0555681437253952,
-0.07885666191577911,
0.5007190108299255,
0.2100287228822708,
-0.2192784994840622,
-0.1669025719165802,
0.24937579035758972,
-0.0017988865729421377,
-0.5435646772384644,
-0.031280964612960815,
0.14540401101112366,
-0.08859629929065704,
-0.0008255340508185327,
0.6154593229293823,
-0.07819105684757233,
-0.037849970161914825,
0.12496449053287506,
-0.41643399000167847,
-0.33830776810646057,
-0.01995255798101425,
-0.10589540004730225,
0.0769016370177269,
0.1353713572025299,
0.30305951833724976,
0.017904290929436684,
-0.0751921758055687,
-0.37583401799201965,
0.05784272402524948,
-0.15998440980911255,
0.0512881875038147,
0.16270184516906738,
-0.05973225086927414,
0.11411970108747482,
0.057175297290086746,
0.20424219965934753,
0.29575204849243164,
-0.05877530574798584,
-0.26554223895072937,
-0.1633344143629074,
0.0448211133480072,
-0.0447307750582695,
-0.34389805793762207,
-0.08632826805114746,
0.049744538962841034,
-0.13549360632896423,
-0.08142693340778351,
0.16210108995437622,
0.13292738795280457,
0.09650329500436783,
0.18381141126155853,
-0.2290927618741989,
0.05409394949674606,
0.032516248524188995,
0.16187496483325958,
-0.10496339201927185,
0.4907984137535095,
0.18597017228603363,
0.14437496662139893,
0.04784132540225983,
-0.0010487213730812073,
-0.047838497906923294,
0.02373209223151207,
-0.21633027493953705,
0.09686128795146942,
0.09826827049255371,
-0.39745116233825684,
0.40326741337776184,
0.1052444577217102,
0.038162652403116226,
0.48291683197021484,
-0.2567425072193146,
-0.11139755696058273,
0.3376918435096741,
0.24410772323608398,
-0.33231696486473083,
0.022884845733642578,
-0.2274402230978012,
-0.048690784722566605,
-0.027072709053754807,
0.3549530506134033,
0.17545758187770844,
-0.07446227967739105,
0.20377427339553833,
-0.08595535904169083,
0.44258806109428406,
0.10054825246334076,
0.36656537652015686,
0.30801430344581604,
-0.04937083646655083,
0.15411554276943207,
-0.10386049002408981,
0.1590815782546997,
-0.09204540401697159,
0.10891322791576385,
-0.5868619680404663,
0.1726321578025818,
0.05071466416120529,
0.11861810833215714,
-0.05046873539686203,
-0.2833305597305298,
-0.06981952488422394,
-0.03594706952571869,
-0.1264655590057373,
0.31505152583122253,
0.1728373020887375,
0.43080148100852966,
-0.33972299098968506,
-0.037075791507959366,
-0.0746367946267128,
0.18771499395370483,
-0.11544961482286453,
0.05388271436095238,
0.022266581654548645,
-0.021878231316804886,
-0.3208214044570923,
0.11869105696678162,
-0.1208408772945404,
0.05197750777006149,
-0.013573065400123596,
0.33413344621658325,
-0.11799284815788269,
-0.09279216825962067,
0.059521712362766266,
0.0058220140635967255,
-0.020826995372772217,
-0.1202605813741684,
0.5656145215034485,
0.33771950006484985,
0.1767878234386444,
0.3259628415107727,
0.16477660834789276,
0.6169278621673584,
0.4158923327922821,
-0.12835818529129028,
0.03290910646319389,
-0.19918334484100342,
0.04482148587703705,
0.00931432656943798,
0.09493151307106018,
0.2698287069797516,
0.37975025177001953,
0.24349446594715118,
0.23330485820770264,
-0.16681760549545288,
-0.19744066894054413,
0.2925792336463928,
0.015613130293786526,
0.08783358335494995,
0.2161628007888794,
-0.09289595484733582,
0.21027031540870667,
-0.5015556812286377,
-0.04895886033773422,
-0.43425267934799194,
0.24031415581703186,
0.4158191978931427,
0.020653195679187775,
0.055910997092723846,
-0.20334778726100922,
0.13477610051631927,
0.0010742563754320145,
0.5677646994590759,
0.2840281128883362,
0.08307373523712158,
-0.09338323771953583,
-0.08146873116493225,
-0.7156073451042175,
0.24704310297966003,
0.03996191546320915,
-0.4754848778247833,
-0.14079919457435608,
-0.26078149676322937,
0.10110238939523697,
0.3434419631958008,
0.09725460410118103,
0.3271721303462982,
0.07046878337860107,
0.06941743195056915,
-0.13781866431236267,
-0.01900649070739746,
-0.18519486486911774,
0.11844084411859512,
-0.2628828287124634,
-0.3089425563812256,
0.040394436568021774,
-0.2737846374511719,
0.15770483016967773,
-0.30796295404434204,
-0.29114893078804016,
-0.40045177936553955,
0.02461410127580166,
0.266448438167572,
0.2022702544927597,
0.4083617031574249,
-0.2999080717563629,
-0.20405997335910797,
-0.10893116891384125,
-0.25575247406959534,
-0.15001627802848816,
0.3890310823917389,
0.20266805589199066,
0.13938957452774048,
0.09565244615077972,
0.1532766968011856,
-0.4704892933368683,
0.32550233602523804,
-0.07762446254491806,
-0.09819896519184113,
-0.22441613674163818,
0.09464701265096664,
0.009990133345127106,
-0.04358361288905144,
0.15344007313251495,
0.3403102457523346,
0.0001790858805179596,
0.1427137553691864,
-0.13304997980594635,
-0.4824037253856659,
0.2574147582054138,
-0.4593115448951721,
-0.22526516020298004,
0.13887730240821838,
0.10240130126476288,
-0.17153966426849365,
0.052976056933403015,
-0.5021637678146362,
0.27450546622276306,
0.02100525237619877,
-0.14946061372756958,
-0.272482305765152,
0.3049337565898895,
-0.2336803674697876,
-0.06413225084543228,
-0.08720923215150833,
0.3601795732975006,
0.17893949151039124,
-0.17361928522586823,
-0.006709262728691101,
-0.24035486578941345
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | @lhoestq sorry for being that late, I found 4 copy of xtreme.py. I did the changes as what has been told to all of them.
The problem is not solved | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 30 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
@lhoestq sorry for being that late, I found 4 copy of xtreme.py. I did the changes as what has been told to all of them.
The problem is not solved | [
-0.28419870138168335,
-0.171012282371521,
-0.010297408327460289,
0.24634748697280884,
0.4728088974952698,
-0.05887743830680847,
-0.14265574514865875,
0.21194712817668915,
-0.2602454423904419,
0.12634655833244324,
0.08915331214666367,
0.5027428865432739,
-0.04542134329676628,
0.42903342843055725,
0.28501245379447937,
0.013321958482265472,
0.0035835355520248413,
0.2751814126968384,
-0.00777425616979599,
0.0021380558609962463,
-0.2719275951385498,
0.12883785367012024,
-0.16851535439491272,
0.008254647254943848,
-0.451533704996109,
0.014207848347723484,
0.08791378140449524,
0.23228904604911804,
-0.321014940738678,
-0.6467182636260986,
0.2900664508342743,
-0.09199030697345734,
0.2375110387802124,
0.32351160049438477,
-0.00010818380542332307,
-0.048205308616161346,
0.3104092478752136,
-0.277841717004776,
-0.06580954790115356,
-0.2856353521347046,
-0.23377862572669983,
-0.34303855895996094,
0.10139711946249008,
-0.2250879406929016,
-0.0894932821393013,
0.22581835091114044,
-0.05451009422540665,
-0.11396601051092148,
0.4601171016693115,
0.27252697944641113,
0.25952088832855225,
0.12878094613552094,
-0.02179868519306183,
0.06073664501309395,
0.06046733260154724,
0.1154150515794754,
-0.09052268415689468,
0.48675310611724854,
0.31148940324783325,
-0.11955177783966064,
0.19332905113697052,
0.2543049454689026,
-0.15683138370513916,
-0.13347578048706055,
0.12591005861759186,
-0.016964145004749298,
0.005390256643295288,
-0.4357088506221771,
0.04177358001470566,
0.2204737365245819,
0.15145212411880493,
-0.3889321982860565,
-0.02769586443901062,
0.134177565574646,
0.11998533457517624,
-0.5919205546379089,
0.2534971237182617,
0.3236532509326935,
-0.24098283052444458,
0.12252704799175262,
-0.0020337055902928114,
0.16516146063804626,
0.07043798267841339,
-0.11129821836948395,
0.04440309852361679,
0.1325540691614151,
-0.21287433803081512,
-0.09542093425989151,
0.1789369434118271,
0.0546288788318634,
0.2867624759674072,
0.09043446183204651,
-0.2125895619392395,
0.1940511167049408,
-0.31904342770576477,
-0.06557183712720871,
-0.19156119227409363,
-0.058790720999240875,
-0.06756063550710678,
-0.11823007464408875,
0.47925466299057007,
0.09958444535732269,
0.03261427953839302,
0.26874813437461853,
0.10606208443641663,
0.0777689516544342,
-0.12244782596826553,
0.20075933635234833,
0.1557708978652954,
0.0766427218914032,
0.12956978380680084,
0.02295709401369095,
-0.226032093167305,
-0.1936640739440918,
-0.25532251596450806,
0.35026249289512634,
0.13827435672283173,
-0.227936252951622,
-0.4356721043586731,
0.07557165622711182,
0.043725594878196716,
0.15261299908161163,
0.13080595433712006,
0.2008616328239441,
0.2930815815925598,
0.36580726504325867,
0.0010361075401306152,
0.3005889654159546,
-0.3199249505996704,
-0.3942796289920807,
-0.1051795482635498,
0.320454865694046,
-0.42124226689338684,
-0.10097172111272812,
0.13553975522518158,
-0.12254564464092255,
0.13912460207939148,
0.23841683566570282,
0.2263334095478058,
-0.3725575804710388,
0.02507820539176464,
-0.12429605424404144,
-0.024258874356746674,
0.10462967306375504,
0.022330109030008316,
0.09547985345125198,
0.1946079134941101,
-0.21497417986392975,
-0.09512418508529663,
0.09506909549236298,
-0.5300652384757996,
-0.08777129650115967,
0.02426467463374138,
0.24654464423656464,
-0.06896109133958817,
0.01103157363831997,
-0.6024034023284912,
0.09461285173892975,
0.14635390043258667,
-0.22191013395786285,
0.10359728336334229,
-0.214819073677063,
0.00854187086224556,
-0.18591833114624023,
0.2275686115026474,
0.43298202753067017,
-0.4388868808746338,
0.061635106801986694,
0.186645045876503,
0.024741023778915405,
0.32516059279441833,
-0.030897516757249832,
-0.20358723402023315,
-0.0952484980225563,
-0.14794203639030457,
-0.0823000967502594,
0.33614420890808105,
-0.4542464017868042,
-0.2818059027194977,
0.2109292894601822,
-0.08425422757863998,
-0.006146512925624847,
0.03384319692850113,
-0.07131145149469376,
0.02432371862232685,
-0.25019967555999756,
0.020887460559606552,
0.3124954104423523,
0.03463471680879593,
0.22385266423225403,
-0.26256921887397766,
-0.25569552183151245,
0.1888905167579651,
0.022490665316581726,
-0.21240900456905365,
-0.22798636555671692,
0.16984087228775024,
0.24445654451847076,
0.26500964164733887,
-0.07168370485305786,
-0.2540247440338135,
0.22667083144187927,
0.16362564265727997,
-0.26544827222824097,
-0.15304753184318542,
0.1478765308856964,
0.09759256988763809,
-0.008567046374082565,
-0.44123145937919617,
0.15401071310043335,
-0.1883804053068161,
-0.11669386178255081,
-0.15199828147888184,
0.07568568736314774,
-0.5332611203193665,
-0.29024171829223633,
0.22594642639160156,
-0.0512881875038147,
-0.10363063216209412,
-0.0128423310816288,
-0.18435044586658478,
0.24847573041915894,
-0.09603890031576157,
-0.02381330356001854,
-0.32274746894836426,
0.16928888857364655,
-0.14798875153064728,
-0.25450190901756287,
0.3124351501464844,
0.280755877494812,
0.2038690149784088,
-0.1880604475736618,
-0.3029399812221527,
0.24585801362991333,
0.04499015212059021,
0.35587501525878906,
-0.3245794475078583,
-0.23042942583560944,
0.42062097787857056,
-0.6723707318305969,
0.14624468982219696,
0.4327425956726074,
0.23004871606826782,
-0.08632149547338486,
0.3771480917930603,
0.28020912408828735,
0.009949037805199623,
-0.0249163955450058,
-0.09984326362609863,
-0.11234680563211441,
0.13500627875328064,
0.034735824912786484,
0.1497470587491989,
-0.153212770819664,
0.3822406828403473,
0.6770520210266113,
0.28854405879974365,
-0.0659375935792923,
-0.003192313015460968,
0.049991924315690994,
0.42824432253837585,
-0.03134036064147949,
0.009942382574081421,
0.027737364172935486,
0.011520333588123322,
-0.14058227837085724,
0.04828547686338425,
0.06749804317951202,
0.15775829553604126,
-0.09383254498243332,
-0.3045617341995239,
0.27883172035217285,
0.06545344740152359,
-0.13556522130966187,
0.1910298466682434,
-0.10558836162090302,
-0.06991149485111237,
0.014246590435504913,
0.09242182224988937,
0.040595270693302155,
-0.1860484480857849,
-0.11297032237052917,
0.09570574015378952,
0.14829692244529724,
-0.3401206433773041,
0.27510207891464233,
-0.4626465439796448,
-0.3754623830318451,
-0.17835460603237152,
0.20711545646190643,
-0.1286832094192505,
-0.007648006081581116,
-0.16078418493270874,
-0.10411161184310913,
0.15168732404708862,
0.2843102216720581,
-0.18587267398834229,
-0.06206347048282623,
-0.11346320062875748,
-0.1641196608543396,
0.11647860705852509,
-0.12771059572696686,
-0.25539931654930115,
0.08234541118144989,
0.4200482964515686,
0.025167163461446762,
0.06393452733755112,
-0.38567885756492615,
0.13576766848564148,
0.30032286047935486,
-0.1755388081073761,
0.2783758044242859,
-0.27257585525512695,
0.15618667006492615,
0.026063643395900726,
0.038838986307382584,
-0.04396331310272217,
-0.2212337702512741,
0.24254874885082245,
-0.14990678429603577,
-0.004079056903719902,
0.1408826857805252,
-0.03099389746785164,
-0.20171411335468292,
-0.16607427597045898,
-0.008595272898674011,
-0.5145345330238342,
-0.3367134630680084,
-0.31985539197921753,
0.0043236203491687775,
0.13155944645404816,
0.29358088970184326,
0.136012464761734,
0.12353245913982391,
0.1453142762184143,
-0.11201868951320648,
-0.06691166013479233,
-0.4351954758167267,
0.2787836194038391,
-0.2855583131313324,
-0.38273492455482483,
0.05677400156855583,
-0.054296351969242096,
0.5393147468566895,
-0.14943358302116394,
-0.18555518984794617,
-0.059588734060525894,
-0.07932322472333908,
0.04594884440302849,
-0.003210563212633133,
0.1624261438846588,
-0.002785921096801758,
-0.07088924199342728,
0.01756415329873562,
-0.13371549546718597,
0.02549433335661888,
-0.06178200989961624,
0.036276865750551224,
0.380464106798172,
0.03313346207141876,
0.18453708291053772,
-0.2000238299369812,
0.0022228583693504333,
0.28381654620170593,
0.07514289021492004,
0.7266831398010254,
-0.10429545491933823,
0.33437395095825195,
-0.15723666548728943,
-0.08791130781173706,
0.03117731399834156,
-0.15398728847503662,
0.008196551352739334,
0.0513678602874279,
-0.04083746671676636,
-0.12353693693876266,
-0.30657264590263367,
-0.07197320461273193,
-0.17563724517822266,
-0.2540784180164337,
0.06412047147750854,
0.196441650390625,
0.12487766146659851,
-0.07567594200372696,
0.1900186836719513,
0.1153949648141861,
-0.23328736424446106,
0.03411567956209183,
0.3092295527458191,
-0.13635969161987305,
0.22836074233055115,
-0.31420424580574036,
-0.42311903834342957,
-0.1252250373363495,
0.17078587412834167,
0.2169899195432663,
0.3219676613807678,
0.03256421163678169,
0.18440008163452148,
0.12405939400196075,
-0.1191464439034462,
0.11059445887804031,
0.15130974352359772,
0.11047933995723724,
0.10947829484939575,
0.036393798887729645,
0.08510088175535202,
-0.12293693423271179,
-0.1389256715774536,
0.092655248939991,
0.09197922050952911,
-0.3064913749694824,
-0.14300838112831116,
-0.029589882120490074,
0.05370660126209259,
0.4073202610015869,
-0.09484635293483734,
0.1092241033911705,
-0.43527936935424805,
-0.6628596186637878,
-0.11234810203313828,
-0.26168712973594666,
0.27519237995147705,
0.28045210242271423,
-0.09304940700531006,
-0.02115783467888832,
0.07910317182540894,
-0.2505539357662201,
0.3101423978805542,
0.42749112844467163,
0.5339716076850891,
0.08626466244459152,
-0.019454848021268845,
-0.17622141540050507,
-0.24265426397323608,
0.27613747119903564,
0.6962280869483948,
-0.022793076932430267,
-0.22883272171020508,
0.15701943635940552,
-0.1308870166540146,
0.27206093072891235,
0.2541857957839966,
-0.18722249567508698,
-0.07838822156190872,
-0.21356883645057678,
-0.10600213706493378,
-0.15559536218643188,
0.23632529377937317,
0.2061847448348999,
0.07809758186340332,
-0.6163371205329895,
-0.5784103274345398,
0.6196984648704529,
0.003947528079152107,
0.1832071989774704,
0.14344987273216248,
-0.02247040718793869,
-0.31267091631889343,
0.13876041769981384,
0.06171366572380066,
0.9569504857063293,
0.21000565588474274,
0.1338699758052826,
0.3063664734363556,
0.093584805727005,
0.1403234452009201,
-0.12796750664710999,
0.21710069477558136,
-0.3326474130153656,
-0.21940812468528748,
0.002850661054253578,
0.07857945561408997,
0.1480817049741745,
-0.0010922029614448547,
-0.2661415934562683,
0.23393796384334564,
-0.0966942235827446,
-0.32701727747917175,
0.12153135985136032,
0.19343240559101105,
-0.2453078329563141,
-0.1436850130558014,
-0.6070852875709534,
0.2140992432832718,
-0.11800193786621094,
0.018175020813941956,
-0.12408648431301117,
-0.23412466049194336,
-0.046203095465898514,
-0.3025851249694824,
-0.19787785410881042,
0.3659675419330597,
-0.4864291250705719,
0.18345335125923157,
-0.131980299949646,
-0.6856112480163574,
0.2966008484363556,
-0.006887044757604599,
0.07502865791320801,
0.2151508927345276,
0.008723095059394836,
0.2325282245874405,
0.34726038575172424,
-0.008437108248472214,
0.10088805854320526,
0.1394311934709549,
0.02475743182003498,
-0.18417087197303772,
-0.04334379732608795,
0.25496816635131836,
0.11617466807365417,
-0.03881550207734108,
0.26377713680267334,
-0.05863684415817261,
-0.12366598844528198,
-0.17596103250980377,
-0.2906436026096344,
-0.21015214920043945,
0.20390470325946808,
-0.06436958909034729,
0.1580638289451599,
0.01738039404153824,
-0.2333700954914093,
-0.03971026837825775,
0.11442933976650238,
-0.3184392750263214,
-0.14025063812732697,
0.04686040058732033,
0.01039888896048069,
-0.0828837901353836,
0.48985743522644043,
0.20135559141635895,
-0.14917691051959991,
-0.09126858413219452,
0.321854829788208,
0.04273528233170509,
-0.5850661993026733,
0.054530251771211624,
0.1139196828007698,
-0.10642211139202118,
0.05979282036423683,
0.7707700133323669,
-0.012122251093387604,
-0.08166138082742691,
0.1693049967288971,
-0.3554030954837799,
-0.3297331631183624,
-0.0021991506218910217,
-0.12683211266994476,
0.05351030454039574,
0.11779887229204178,
0.5053519606590271,
0.030391091480851173,
-0.09442048519849777,
-0.30832573771476746,
0.0938749611377716,
-0.07975000143051147,
-0.0014515556395053864,
0.14565083384513855,
-0.06199783831834793,
0.13217034935951233,
0.15971706807613373,
0.13714396953582764,
0.378365695476532,
-0.1036975234746933,
-0.18380334973335266,
-0.12082779407501221,
0.08953769505023956,
-0.07627597451210022,
-0.35091710090637207,
-0.13857509195804596,
0.053044818341732025,
-0.08400356769561768,
-0.016541052609682083,
0.10914576053619385,
0.053791023790836334,
0.09793522953987122,
0.16588327288627625,
-0.31303635239601135,
-0.007854148745536804,
-0.017828453332185745,
0.28612446784973145,
-0.09054552018642426,
0.467490017414093,
0.15268149971961975,
0.08842376619577408,
0.061556123197078705,
0.003800705075263977,
-0.19242040812969208,
-0.016233883798122406,
-0.23172251880168915,
0.04297921434044838,
0.10865186899900436,
-0.4080072045326233,
0.38442009687423706,
0.16620256006717682,
-0.07849825918674469,
0.5113173723220825,
-0.25033923983573914,
-0.00027165748178958893,
0.2907702326774597,
0.16520139575004578,
-0.3032809793949127,
0.0985562726855278,
-0.2944166362285614,
0.01094099972397089,
-0.12267753481864929,
0.4289166033267975,
0.2969355583190918,
-0.1355912983417511,
0.2463408261537552,
-0.04197842255234718,
0.46574667096138,
0.1641959547996521,
0.4294064939022064,
0.33392414450645447,
0.1176099181175232,
0.1835433542728424,
-0.12044570595026016,
0.15637032687664032,
-0.04243800789117813,
-0.02882833033800125,
-0.6253313422203064,
0.1836441159248352,
0.083086296916008,
0.0889224037528038,
-0.04049649089574814,
-0.28280913829803467,
-0.1842344105243683,
-0.0522996187210083,
-0.19529080390930176,
0.33394142985343933,
0.055402085185050964,
0.494517982006073,
-0.40459802746772766,
-0.054308921098709106,
-0.09035420417785645,
0.19134484231472015,
-0.10625080019235611,
0.1158459484577179,
0.1751660704612732,
-0.029530201107263565,
-0.3728172779083252,
0.051001664251089096,
-0.0478915236890316,
0.15162426233291626,
-0.09849885106086731,
0.336490273475647,
-0.16814814507961273,
0.006248170509934425,
0.02096794918179512,
0.183759868144989,
0.0746002048254013,
-0.13022419810295105,
0.5655004382133484,
0.38682883977890015,
0.16326577961444855,
0.2651093006134033,
0.1187308207154274,
0.5911540985107422,
0.4245762825012207,
-0.17831365764141083,
-0.005731577984988689,
-0.048144932836294174,
0.07029800862073898,
0.1987106055021286,
0.03541010618209839,
0.2802950143814087,
0.4603315591812134,
0.18720054626464844,
0.17041535675525665,
-0.13490064442157745,
-0.2581365406513214,
0.1844438910484314,
0.02494521252810955,
-0.0015233778394758701,
0.288333922624588,
-0.07200703769922256,
0.2568311393260956,
-0.5061603784561157,
-0.11532937735319138,
-0.4890584647655487,
0.2965936064720154,
0.41651755571365356,
0.03722153231501579,
-0.04089700058102608,
-0.21592523157596588,
0.09961023926734924,
-0.02849471941590309,
0.48447903990745544,
0.24720288813114166,
0.03031006082892418,
-0.2621781826019287,
-0.10037844628095627,
-0.6561941504478455,
0.2546975612640381,
0.02834424003958702,
-0.4872550070285797,
-0.13072142004966736,
-0.30529627203941345,
-0.005795426666736603,
0.35577940940856934,
0.17147612571716309,
0.32894593477249146,
0.0851057842373848,
0.09112238883972168,
-0.12068277597427368,
-0.023727376013994217,
-0.23090077936649323,
0.08879850804805756,
-0.15668582916259766,
-0.20040911436080933,
0.018522735685110092,
-0.2647881805896759,
0.09863295406103134,
-0.25845545530319214,
-0.341182678937912,
-0.27367496490478516,
0.048120420426130295,
0.3000485301017761,
0.13533073663711548,
0.3911927044391632,
-0.1834631860256195,
-0.20709604024887085,
-0.0924065113067627,
-0.17412152886390686,
-0.11017566174268723,
0.27452361583709717,
0.21717992424964905,
0.12598659098148346,
0.053353384137153625,
0.14252129197120667,
-0.5296491384506226,
0.33373111486434937,
-0.026912223547697067,
-0.22615434229373932,
-0.2503286302089691,
0.042420364916324615,
-0.07918655872344971,
-0.002717249095439911,
0.28786054253578186,
0.37720388174057007,
0.03333642706274986,
0.23085929453372955,
-0.1974363923072815,
-0.49079158902168274,
0.24641093611717224,
-0.41849008202552795,
-0.1275344341993332,
0.07170180231332779,
0.21669965982437134,
-0.16134634613990784,
0.08050503581762314,
-0.5184619426727295,
0.2307833433151245,
0.032078951597213745,
-0.05638744682073593,
-0.21043181419372559,
0.3002874553203583,
-0.27324700355529785,
-0.056041695177555084,
-0.0295712947845459,
0.322409451007843,
0.1971316635608673,
-0.10950100421905518,
0.07362338900566101,
-0.24151134490966797
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | Could you provide a better error message so that we can make sure it comes from the opening of the `tydiqa`'s json files ?
| ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 24 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
Could you provide a better error message so that we can make sure it comes from the opening of the `tydiqa`'s json files ?
| [
-0.28176912665367126,
-0.0771225169301033,
-0.02595406025648117,
0.18648898601531982,
0.43187856674194336,
-0.10634154081344604,
-0.049079928547143936,
0.21024218201637268,
-0.2888757288455963,
0.07893195748329163,
0.16983740031719208,
0.5185147523880005,
-0.01573435589671135,
0.40393680334091187,
0.21651561558246613,
-0.027796000242233276,
-0.008714236319065094,
0.3307393193244934,
-0.03863807022571564,
0.03915661573410034,
-0.3182017505168915,
0.18080644309520721,
-0.06281791627407074,
0.04983792081475258,
-0.3340275287628174,
-0.12927399575710297,
0.13712120056152344,
0.3347368836402893,
-0.3895089030265808,
-0.5701821446418762,
0.27029889822006226,
-0.008077148348093033,
0.17062793672084808,
0.3130135238170624,
-0.00010405345528852195,
0.026807911694049835,
0.3452887535095215,
-0.3027345836162567,
-0.10403923690319061,
-0.2532048225402832,
-0.25041741132736206,
-0.3094662129878998,
0.17231778800487518,
-0.1982572376728058,
-0.026220884174108505,
0.24192237854003906,
-0.07102271169424057,
-0.10369269549846649,
0.4995189905166626,
0.22843042016029358,
0.28238445520401,
0.13344815373420715,
0.027090292423963547,
0.11919737607240677,
0.023080997169017792,
0.2401791661977768,
-0.07935676723718643,
0.43863800168037415,
0.27692270278930664,
-0.14979031682014465,
0.20194575190544128,
0.288774311542511,
-0.11775214970111847,
-0.059095192700624466,
0.09713828563690186,
0.027261167764663696,
-0.12200821191072464,
-0.38639602065086365,
0.04783225059509277,
0.18140536546707153,
0.33760491013526917,
-0.33246946334838867,
-0.07373140752315521,
0.13525360822677612,
0.10531830787658691,
-0.4322816729545593,
0.3052654564380646,
0.3276420533657074,
-0.30730700492858887,
0.09052859246730804,
-0.06837313622236252,
0.13811250030994415,
0.0039153024554252625,
-0.01654858887195587,
0.03668134659528732,
0.025113388895988464,
-0.1426301896572113,
-0.09106671065092087,
0.17155836522579193,
-0.11088177561759949,
0.15775084495544434,
0.06573593616485596,
-0.26968708634376526,
0.20283743739128113,
-0.13587018847465515,
-0.1643541157245636,
-0.13523969054222107,
-0.17842063307762146,
-0.07127867639064789,
-0.17999884486198425,
0.6284122467041016,
0.08873853832483292,
-0.045339684933423996,
0.3436107039451599,
0.21379142999649048,
0.07793973386287689,
-0.16136908531188965,
0.22980277240276337,
0.17645350098609924,
0.10678105056285858,
0.13514970242977142,
0.006329890340566635,
-0.19478493928909302,
-0.2007739543914795,
-0.38066625595092773,
0.26146721839904785,
0.205531045794487,
-0.16741310060024261,
-0.3905960023403168,
0.1570674031972885,
-0.025129253044724464,
0.12517426908016205,
0.12157456576824188,
0.23054218292236328,
0.25094178318977356,
0.2337387502193451,
0.10350044071674347,
0.3014072775840759,
-0.2691756784915924,
-0.2696068286895752,
-0.09026920050382614,
0.2240218073129654,
-0.3366365134716034,
-0.1306648850440979,
0.18752521276474,
0.024825917556881905,
0.15072223544120789,
0.16816385090351105,
0.18753115832805634,
-0.18223614990711212,
0.08310015499591827,
-0.01857936754822731,
0.0666426345705986,
0.18193194270133972,
0.01842334493994713,
0.05929405242204666,
0.19574621319770813,
-0.31772416830062866,
-0.14969104528427124,
0.04789750277996063,
-0.44987767934799194,
-0.10292398929595947,
-0.049855515360832214,
0.2764463424682617,
-0.07096286118030548,
0.014894653111696243,
-0.5774102210998535,
0.10332399606704712,
0.10367082804441452,
-0.30652058124542236,
0.11041013896465302,
-0.17248687148094177,
0.0652473121881485,
-0.1789132058620453,
0.16325849294662476,
0.4239059090614319,
-0.5196284055709839,
0.06140916049480438,
0.26297858357429504,
-0.008728936314582825,
0.30781278014183044,
0.039521172642707825,
-0.2188352346420288,
0.0014093071222305298,
-0.11032132059335709,
-0.06736614555120468,
0.34277504682540894,
-0.3594685196876526,
-0.20838667452335358,
0.26481443643569946,
-0.05998942628502846,
-0.0064676664769649506,
-0.018302448093891144,
-0.04591107740998268,
-0.029696132987737656,
-0.16742867231369019,
0.16357386112213135,
0.4073852300643921,
0.020894408226013184,
0.33197492361068726,
-0.18960021436214447,
-0.2001388967037201,
0.13529354333877563,
0.1335032731294632,
-0.36610761284828186,
-0.199698805809021,
0.17270509898662567,
0.3472841680049896,
0.23262876272201538,
-0.10985803604125977,
-0.2995850741863251,
0.19587214291095734,
0.18728016316890717,
-0.291157066822052,
-0.16882163286209106,
0.2727038264274597,
-0.02991940826177597,
-0.0008162707090377808,
-0.46689513325691223,
0.19378012418746948,
-0.3488876223564148,
-0.12528258562088013,
-0.10111691802740097,
0.10860026627779007,
-0.47065821290016174,
-0.2607019245624542,
0.27406755089759827,
-0.04276888072490692,
-0.09896489977836609,
0.05411156639456749,
-0.15654487907886505,
0.17382827401161194,
0.0019518788903951645,
-0.012822967022657394,
-0.3405909240245819,
0.14975851774215698,
-0.1362101137638092,
-0.25631511211395264,
0.3186991512775421,
0.23695755004882812,
0.13422176241874695,
-0.19793933629989624,
-0.20619913935661316,
0.2130204141139984,
0.03901076316833496,
0.37252867221832275,
-0.29397138953208923,
-0.24910478293895721,
0.41233688592910767,
-0.5082939863204956,
0.077156201004982,
0.48085981607437134,
0.21839958429336548,
-0.14615343511104584,
0.2769644260406494,
0.28172624111175537,
-0.08916695415973663,
0.015147402882575989,
-0.029235973954200745,
-0.15178948640823364,
0.1802469789981842,
0.04485281929373741,
0.07854998856782913,
-0.14572300016880035,
0.35401517152786255,
0.6760114431381226,
0.23173360526561737,
-0.061865076422691345,
-0.061297379434108734,
0.06314697861671448,
0.4979136288166046,
-0.02285296469926834,
0.02244517207145691,
0.030660659074783325,
0.08182203024625778,
-0.14985890686511993,
0.08544110506772995,
0.09918852150440216,
0.19675123691558838,
-0.07260064035654068,
-0.26598069071769714,
0.16210439801216125,
-0.004025455564260483,
-0.17629703879356384,
0.18934959173202515,
-0.13351322710514069,
-0.009567654691636562,
0.047949083149433136,
0.13502976298332214,
-0.011934156529605389,
-0.2644743025302887,
-0.22436751425266266,
0.047270677983760834,
0.15011708438396454,
-0.2828504145145416,
0.28406986594200134,
-0.46928080916404724,
-0.33958280086517334,
-0.11892230808734894,
0.05774812772870064,
-0.17354503273963928,
-0.04774373024702072,
-0.028763800859451294,
-0.08754990994930267,
0.02008511871099472,
0.24740293622016907,
-0.1192861944437027,
-0.007630109786987305,
-0.08732171356678009,
-0.1683950424194336,
-0.024321161210536957,
-0.23419328033924103,
-0.20528772473335266,
0.13765594363212585,
0.432060569524765,
-0.0060564992018043995,
0.046851806342601776,
-0.40663281083106995,
0.13060058653354645,
0.3167102336883545,
-0.18817153573036194,
0.27863338589668274,
-0.23708577454090118,
0.08363798260688782,
0.07331860810518265,
0.17839089035987854,
0.08437804132699966,
-0.3423648774623871,
0.2534843385219574,
0.010619385167956352,
-0.18438474833965302,
0.16385789215564728,
-0.06604378670454025,
-0.1703951358795166,
-0.2623522877693176,
0.031226910650730133,
-0.4781664311885834,
-0.3827650547027588,
-0.14568735659122467,
0.12305766344070435,
0.15459081530570984,
0.29494932293891907,
0.2861059904098511,
0.11851047724485397,
0.16041038930416107,
-0.021036623045802116,
-0.07117631286382675,
-0.3474285304546356,
0.24039173126220703,
-0.36942169070243835,
-0.3852406442165375,
0.03626398369669914,
-0.001727992668747902,
0.5735811591148376,
-0.24553729593753815,
-0.21021051704883575,
-0.01243823766708374,
-0.09794628620147705,
0.030375663191080093,
-0.102678582072258,
0.08178884536027908,
0.02426312118768692,
0.02067732997238636,
-0.0392611026763916,
-0.1288284957408905,
-0.02398831583559513,
-0.075291208922863,
-0.028744202107191086,
0.3422817587852478,
-0.02585023269057274,
0.2903343737125397,
-0.24311929941177368,
0.03794736787676811,
0.23274311423301697,
-0.07706454396247864,
0.6564686298370361,
-0.08293930441141129,
0.33667391538619995,
-0.2007139027118683,
-0.05290805548429489,
0.08316546678543091,
-0.1412665843963623,
-0.06485795974731445,
0.10838469117879868,
-0.07544759660959244,
-0.2820371985435486,
-0.33357465267181396,
0.05378405377268791,
-0.26634863018989563,
-0.2430243194103241,
0.08899389207363129,
0.19511349499225616,
-0.0806269571185112,
-0.03601302206516266,
0.11786767095327377,
0.06756320595741272,
-0.13023686408996582,
-0.04530230909585953,
0.24543875455856323,
-0.14973938465118408,
0.21195805072784424,
-0.27052822709083557,
-0.48181986808776855,
-0.1639062464237213,
0.19045406579971313,
0.1681252270936966,
0.25381162762641907,
-0.02609420195221901,
0.07111142575740814,
0.11434847116470337,
-0.1675318032503128,
0.21373218297958374,
0.12185221910476685,
0.08237792551517487,
0.12554845213890076,
0.0904083251953125,
0.06397879868745804,
-0.07465891540050507,
-0.22228626906871796,
0.12113235145807266,
0.18857958912849426,
-0.2162652611732483,
-0.23391878604888916,
0.004644155502319336,
-0.025585860013961792,
0.3330477476119995,
-0.04051186144351959,
0.13937415182590485,
-0.4960225522518158,
-0.6708528399467468,
-0.2037336379289627,
-0.2221941351890564,
0.20608627796173096,
0.28090330958366394,
-0.08979532867670059,
-0.08689644932746887,
0.050481051206588745,
-0.23983290791511536,
0.1881597638130188,
0.5552306175231934,
0.4350999593734741,
0.12409289926290512,
-0.03564829379320145,
-0.22010359168052673,
-0.10161928832530975,
0.37105491757392883,
0.8140732049942017,
0.1218467503786087,
-0.2139301300048828,
0.15974509716033936,
-0.10615060478448868,
0.19494150578975677,
0.2183971405029297,
-0.06125730276107788,
-0.12293066829442978,
-0.2011161595582962,
-0.047109365463256836,
-0.19703683257102966,
0.23603679239749908,
0.22620004415512085,
0.005268389359116554,
-0.5391125679016113,
-0.43747225403785706,
0.5951077938079834,
-0.10414242744445801,
0.17910225689411163,
0.19392786920070648,
-0.04972629249095917,
-0.29024454951286316,
0.25263553857803345,
0.0939050018787384,
0.8820831775665283,
0.2124818116426468,
0.1971956044435501,
0.39468640089035034,
0.10239619016647339,
0.23376083374023438,
-0.16977769136428833,
0.1595805585384369,
-0.2948204576969147,
-0.05672428756952286,
-0.016651876270771027,
0.07156690955162048,
0.12292519211769104,
0.10621697455644608,
-0.3144181966781616,
0.042472608387470245,
-0.0723961740732193,
-0.3561922609806061,
0.05939480662345886,
0.21248722076416016,
-0.2269323468208313,
-0.20823094248771667,
-0.6637162566184998,
0.2391315996646881,
-0.1073245257139206,
0.04072350636124611,
-0.13628306984901428,
-0.2645184397697449,
-0.05109218508005142,
-0.3845808506011963,
-0.19631268084049225,
0.35314446687698364,
-0.4750058054924011,
0.18486978113651276,
-0.07000122964382172,
-0.6309316754341125,
0.18594400584697723,
0.0950213074684143,
0.1329980194568634,
0.18861055374145508,
-0.046860165894031525,
0.23263481259346008,
0.2573443055152893,
-0.04184712469577789,
-0.025665683671832085,
0.14467795193195343,
0.08656475692987442,
-0.22900673747062683,
-0.04613211005926132,
0.22516441345214844,
0.07877365499734879,
-0.09254944324493408,
0.33379554748535156,
0.04860808700323105,
-0.2959434390068054,
-0.15026909112930298,
-0.3046681582927704,
-0.16496825218200684,
0.16369254887104034,
-0.01223752275109291,
0.18369987607002258,
0.06494097411632538,
-0.20079240202903748,
-0.12359636276960373,
0.15845432877540588,
-0.33540621399879456,
-0.12801505625247955,
-0.00022444874048233032,
-0.05640993267297745,
-0.05181707441806793,
0.4692661464214325,
0.1955721527338028,
-0.18235105276107788,
-0.1286047101020813,
0.3528127670288086,
0.02097240462899208,
-0.5445842742919922,
0.021662050858139992,
0.25078970193862915,
-0.214046448469162,
0.021691685542464256,
0.7245562672615051,
-0.03860795497894287,
-0.0383126437664032,
0.19797448813915253,
-0.3346598446369171,
-0.4100531041622162,
0.12111227214336395,
-0.17654237151145935,
0.11158356070518494,
0.1292649209499359,
0.37002861499786377,
-0.043842531740665436,
-0.04671032726764679,
-0.34051331877708435,
0.09514591097831726,
-0.1919049471616745,
-0.026484262198209763,
0.11892761290073395,
-0.08485475927591324,
0.11389420181512833,
0.15645401179790497,
0.15557965636253357,
0.32893049716949463,
-0.1472264975309372,
-0.23358267545700073,
-0.1009584367275238,
0.06824913620948792,
-0.022287700325250626,
-0.269143283367157,
-0.1357535421848297,
0.07172039896249771,
-0.0849233865737915,
-0.022993892431259155,
0.1489894688129425,
-0.050791919231414795,
0.11422647535800934,
0.14819438755512238,
-0.2287457138299942,
0.06281953305006027,
0.00756768137216568,
0.18547387421131134,
-0.1000138372182846,
0.5562201142311096,
0.10641743242740631,
0.02111424133181572,
-0.07798168063163757,
-0.0006730929017066956,
-0.12468288838863373,
0.06935993582010269,
-0.23281587660312653,
0.10996787250041962,
0.14331811666488647,
-0.3258741497993469,
0.38335591554641724,
-0.047230660915374756,
-0.022544046863913536,
0.482128769159317,
-0.2560998201370239,
-0.03758462890982628,
0.28651225566864014,
0.21632307767868042,
-0.25580573081970215,
-0.021941635757684708,
-0.28648895025253296,
-0.026639260351657867,
-0.05961928516626358,
0.31742557883262634,
0.09488750994205475,
-0.09681867808103561,
0.2679109573364258,
-0.05620977655053139,
0.45608094334602356,
0.1287512630224228,
0.30240756273269653,
0.30559292435646057,
-0.1382284313440323,
0.13003070652484894,
-0.13195595145225525,
0.18240946531295776,
0.05002722516655922,
-0.026569411158561707,
-0.6331772208213806,
0.09411968290805817,
0.054814327508211136,
0.0723898634314537,
-0.01614341139793396,
-0.24976898729801178,
-0.20156677067279816,
-0.04906125366687775,
-0.08297969400882721,
0.38966745138168335,
0.17208121716976166,
0.37637022137641907,
-0.4089488089084625,
-0.028041556477546692,
-0.13587583601474762,
0.1379617303609848,
-0.07013749331235886,
0.05549759790301323,
-0.04093007743358612,
-0.05833866447210312,
-0.2832135558128357,
0.08504019677639008,
-0.08637042343616486,
0.11954037845134735,
-0.08306336402893066,
0.2690291404724121,
-0.11161424219608307,
-0.028016814962029457,
0.08608774840831757,
0.016962649300694466,
-0.009213559329509735,
-0.13165736198425293,
0.5656225085258484,
0.3985665440559387,
0.11527964472770691,
0.29644349217414856,
0.18669602274894714,
0.6348478198051453,
0.4427383542060852,
-0.2009817361831665,
0.01760745421051979,
-0.21348048746585846,
0.019356338307261467,
0.049436599016189575,
0.1225808709859848,
0.32371920347213745,
0.22923192381858826,
0.23288299143314362,
0.20809303224086761,
-0.15934716165065765,
-0.20507793128490448,
0.233808696269989,
0.09165336191654205,
0.1269608587026596,
0.23482951521873474,
-0.23535257577896118,
0.2718704342842102,
-0.4492446780204773,
-0.08788227289915085,
-0.4653191566467285,
0.24429339170455933,
0.2965209186077118,
0.04493588209152222,
0.0403486005961895,
-0.23119959235191345,
0.11902664601802826,
-0.06315043568611145,
0.6006460785865784,
0.19878707826137543,
0.10345103591680527,
-0.11073540896177292,
-0.029054440557956696,
-0.6104626059532166,
0.2797622084617615,
-0.006835021078586578,
-0.45178890228271484,
-0.12343667447566986,
-0.22833497822284698,
0.13193726539611816,
0.4181395173072815,
0.07155553251504898,
0.3477076292037964,
0.06961830705404282,
0.09894796460866928,
-0.16310317814350128,
-0.002096898853778839,
-0.21366547048091888,
0.08706078678369522,
-0.18962177634239197,
-0.23823609948158264,
0.02564305067062378,
-0.3435184061527252,
0.14155113697052002,
-0.28494924306869507,
-0.2998341917991638,
-0.39978134632110596,
0.11260616034269333,
0.3344651460647583,
0.22755149006843567,
0.3273841142654419,
-0.2716762125492096,
-0.2994084358215332,
-0.05519818887114525,
-0.2854251265525818,
-0.06778634339570999,
0.35360103845596313,
0.209764301776886,
0.22029709815979004,
0.04223092645406723,
0.2010899931192398,
-0.4806059002876282,
0.2990705072879791,
-0.11353401839733124,
-0.1927042007446289,
-0.21642428636550903,
0.05683702230453491,
-0.027804885059595108,
-0.017757823690772057,
0.19717396795749664,
0.33192840218544006,
0.015820253640413284,
0.15810976922512054,
-0.1731143444776535,
-0.4464835822582245,
0.348694384098053,
-0.4384191930294037,
-0.16250823438167572,
0.29547157883644104,
0.07854204624891281,
-0.24573883414268494,
0.10902709513902664,
-0.5252717137336731,
0.27145639061927795,
0.01397244818508625,
-0.09211819618940353,
-0.296034038066864,
0.22188563644886017,
-0.2321227788925171,
-0.19187359511852264,
-0.0756712257862091,
0.41904976963996887,
0.1878013014793396,
-0.07885503023862839,
-0.012731952592730522,
-0.21812579035758972
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | @lhoestq
The error message is same as before:
Exception has occurred: UnicodeDecodeError
'cp950' codec can't decode byte 0xe2 in position 111: illegal multibyte sequence
File "D:\python\test\test.py", line 3, in <module>
dataset = load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/87748794-7c216880-c829-11ea-94f0-7caeacb4d865.png)
I said that I found 4 copy of xtreme.py and add the 「, encoding='utf-8'」 parameter to the open() function
these python script was found under this directory
C:\Users\USER\AppData\Local\Programs\Python\Python37\Lib\site-packages\nlp\datasets\xtreme
| ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 63 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
@lhoestq
The error message is same as before:
Exception has occurred: UnicodeDecodeError
'cp950' codec can't decode byte 0xe2 in position 111: illegal multibyte sequence
File "D:\python\test\test.py", line 3, in <module>
dataset = load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/87748794-7c216880-c829-11ea-94f0-7caeacb4d865.png)
I said that I found 4 copy of xtreme.py and add the 「, encoding='utf-8'」 parameter to the open() function
these python script was found under this directory
C:\Users\USER\AppData\Local\Programs\Python\Python37\Lib\site-packages\nlp\datasets\xtreme
| [
-0.2993042469024658,
-0.07950915396213531,
-0.025460731238126755,
0.2176796942949295,
0.38568633794784546,
-0.07032701373100281,
-0.10065604746341705,
0.1843707114458084,
-0.2766498327255249,
0.05609278380870819,
0.13452844321727753,
0.42476409673690796,
-0.08653903007507324,
0.272808313369751,
0.21610024571418762,
-0.0068486034870147705,
-0.05024895817041397,
0.22419732809066772,
0.15640829503536224,
0.07079969346523285,
-0.4088917076587677,
0.1733020693063736,
-0.1744895875453949,
0.12441955506801605,
-0.4139842987060547,
-0.05959406495094299,
0.04132753610610962,
0.3134816884994507,
-0.26334449648857117,
-0.655119776725769,
0.1879899650812149,
-0.04600131884217262,
0.14357012510299683,
0.38176384568214417,
-0.00010659400868462399,
-0.09800611436367035,
0.23075494170188904,
-0.21708890795707703,
-0.15189453959465027,
-0.27678024768829346,
-0.30164965987205505,
-0.3093872368335724,
0.11959484219551086,
-0.3082420229911804,
0.08118859678506851,
0.13732418417930603,
0.011063039302825928,
-0.33050549030303955,
0.44848740100860596,
0.3554726839065552,
0.260332316160202,
0.12825879454612732,
0.021757643669843674,
0.14058299362659454,
0.02450932189822197,
0.021869417279958725,
-0.06388016790151596,
0.44349977374076843,
0.2685889005661011,
-0.04732542484998703,
0.12044399976730347,
0.14582228660583496,
-0.18657435476779938,
-0.04800909385085106,
0.01526205986738205,
0.04472074285149574,
0.0667647123336792,
-0.44076791405677795,
0.1138862743973732,
0.11893686652183533,
0.08098768442869186,
-0.37761786580085754,
-0.18596860766410828,
0.09423170238733292,
0.1264687180519104,
-0.6105188727378845,
0.23711025714874268,
0.4000221788883209,
-0.3269694745540619,
0.1599566787481308,
-0.0670778751373291,
0.06384211778640747,
0.05413835495710373,
-0.09074591100215912,
-0.046590711921453476,
0.165068119764328,
-0.18738578259944916,
-0.07742785662412643,
0.15726132690906525,
0.06342706829309464,
0.1613903045654297,
0.01719733327627182,
-0.17790807783603668,
0.1812136024236679,
-0.2354554384946823,
0.005671799182891846,
-0.14014726877212524,
-0.012222275137901306,
-0.0569804385304451,
-0.07037936896085739,
0.47008880972862244,
0.16029173135757446,
-0.08918995410203934,
0.26715847849845886,
0.03744926303625107,
0.1032639890909195,
-0.21673402190208435,
0.10088109970092773,
0.1906232088804245,
0.1225573718547821,
0.19779618084430695,
0.07527389377355576,
-0.20275282859802246,
-0.24527324736118317,
-0.19899137318134308,
0.4515693187713623,
0.3463507890701294,
-0.14638400077819824,
-0.4804699420928955,
0.06714603304862976,
0.015336278825998306,
0.0724574625492096,
0.09749627858400345,
0.1500556766986847,
0.17257153987884521,
0.3843918740749359,
-0.048233143985271454,
0.26770541071891785,
-0.33122119307518005,
-0.2914770245552063,
-0.09798862785100937,
0.25158169865608215,
-0.3490152955055237,
-0.035814374685287476,
0.11186422407627106,
-0.11074922978878021,
0.11026093363761902,
0.23999939858913422,
0.1703825742006302,
-0.3305492401123047,
0.08942266553640366,
-0.17194689810276031,
-0.0011082440614700317,
0.026131926104426384,
0.09586001932621002,
0.15503568947315216,
0.15597224235534668,
-0.3678234815597534,
-0.055727519094944,
0.06362726539373398,
-0.5577613711357117,
-0.12975992262363434,
-0.17296507954597473,
0.26275187730789185,
-0.012477356940507889,
-0.012379590421915054,
-0.5066612958908081,
0.0706067755818367,
0.17259274423122406,
-0.2303980588912964,
0.06311912834644318,
-0.1705552190542221,
-0.13770610094070435,
-0.25252658128738403,
0.17533142864704132,
0.4754897952079773,
-0.29410943388938904,
0.053859733045101166,
0.1609722375869751,
0.03386426717042923,
0.3461776077747345,
0.08644114434719086,
-0.21363501250743866,
-0.13579335808753967,
-0.2194361537694931,
-0.0354536734521389,
0.39555662870407104,
-0.43240687251091003,
-0.24225762486457825,
0.35871562361717224,
-0.2437875121831894,
-0.008346784859895706,
0.06600712984800339,
-0.13179874420166016,
0.03560684993863106,
-0.25145483016967773,
0.13122008740901947,
0.4155415892601013,
0.026656417176127434,
0.2746030390262604,
-0.1828947216272354,
-0.3092412054538727,
0.20062674582004547,
0.016354333609342575,
-0.21782763302326202,
-0.2202051281929016,
0.2515696883201599,
0.34864774346351624,
0.28983524441719055,
-0.17368517816066742,
-0.16717948019504547,
0.21286727488040924,
0.027013231068849564,
-0.21675609052181244,
-0.22225993871688843,
0.0945962592959404,
0.022303644567728043,
-0.018957804888486862,
-0.32670602202415466,
0.08989451825618744,
-0.3444601893424988,
-0.1623484045267105,
-0.1593020260334015,
0.037657976150512695,
-0.6050465106964111,
-0.28335127234458923,
0.2350180745124817,
0.20868243277072906,
-0.08243688941001892,
0.08196957409381866,
-0.2075410783290863,
0.2771044671535492,
0.0008024442940950394,
-0.03966805338859558,
-0.36570683121681213,
0.09368551522493362,
-0.1336226612329483,
-0.1018194779753685,
0.22819972038269043,
0.32842394709587097,
0.16788625717163086,
-0.14201302826404572,
-0.24129220843315125,
0.3130165636539459,
0.07960958778858185,
0.3886036276817322,
-0.24273958802223206,
-0.18544377386569977,
0.4853194057941437,
-0.6272911429405212,
0.15252894163131714,
0.4805997610092163,
0.21214687824249268,
-0.10647346079349518,
0.3261394202709198,
0.3260159492492676,
-0.02216869220137596,
-0.08765646070241928,
0.02087727189064026,
-0.1277967244386673,
0.17044813930988312,
-0.005943011492490768,
0.10410585254430771,
-0.25805848836898804,
0.3132892847061157,
0.6806161403656006,
0.34633755683898926,
-0.005693046376109123,
-0.08633923530578613,
-0.004607953131198883,
0.559099555015564,
-0.0820816159248352,
0.02219521999359131,
0.07783666253089905,
0.12168975919485092,
-0.15803605318069458,
-0.03823266923427582,
0.08604484796524048,
0.27516859769821167,
-0.08253823965787888,
-0.1489647626876831,
0.24288709461688995,
0.03548496216535568,
-0.25737857818603516,
0.1527566760778427,
-0.05671997368335724,
0.05028843134641647,
0.0647868812084198,
0.16667532920837402,
0.0959489494562149,
-0.2578538656234741,
-0.3063181936740875,
0.08709733933210373,
0.1154111921787262,
-0.35681819915771484,
0.31418901681900024,
-0.540801465511322,
-0.3548954129219055,
-0.2717309892177582,
0.12227628380060196,
-0.10075683891773224,
-0.0870121419429779,
-0.1659294217824936,
-0.07781003415584564,
0.16840767860412598,
0.17575930058956146,
-0.20785556733608246,
0.0004739910364151001,
-0.05937550961971283,
-0.09088759124279022,
0.18133705854415894,
-0.14371678233146667,
-0.25469252467155457,
0.08675099909305573,
0.4046463668346405,
-0.003485847730189562,
0.03538085147738457,
-0.39510616660118103,
0.06854776293039322,
0.18204721808433533,
-0.11952725052833557,
0.2201739400625229,
-0.21490244567394257,
0.13637839257717133,
-0.004369199275970459,
0.00675608217716217,
0.00714651495218277,
-0.29064425826072693,
0.1497119665145874,
-0.023972652852535248,
-0.05021790415048599,
0.12583202123641968,
-0.07857826352119446,
-0.18748711049556732,
-0.2346598207950592,
0.015700161457061768,
-0.52592533826828,
-0.41377976536750793,
-0.20531253516674042,
0.07654029130935669,
0.223456010222435,
0.2994023561477661,
-0.013556684367358685,
0.2073107659816742,
0.251085102558136,
-0.0007840534672141075,
-0.12151230871677399,
-0.36578506231307983,
0.30671796202659607,
-0.42465072870254517,
-0.4335762858390808,
0.03227420523762703,
-0.0820375382900238,
0.4345402717590332,
-0.0832584798336029,
-0.17920152842998505,
-0.05810817331075668,
-0.13367950916290283,
0.07659612596035004,
-0.05869010090827942,
0.10009465366601944,
-0.01117059588432312,
0.021498043090105057,
-0.01830168627202511,
-0.06894002109766006,
0.08001787960529327,
-0.15988528728485107,
0.0732785165309906,
0.3267395496368408,
0.056230463087558746,
0.2255907654762268,
-0.10488183796405792,
-0.04077687859535217,
0.30913886427879333,
0.1325100213289261,
0.6449680328369141,
-0.1720917671918869,
0.28965508937835693,
-0.06104172021150589,
-0.059587299823760986,
-0.010182533413171768,
-0.18365439772605896,
-0.05606738477945328,
0.16659411787986755,
-0.08556017279624939,
-0.16607695817947388,
-0.25768426060676575,
0.04741261526942253,
-0.2950180470943451,
-0.2238307148218155,
0.05236492305994034,
0.11144756525754929,
0.13095329701900482,
-0.11221460998058319,
0.16431978344917297,
0.03392484784126282,
-0.24919137358665466,
-0.022250112146139145,
0.3163507282733917,
-0.1691475510597229,
0.1459122598171234,
-0.22209829092025757,
-0.3437357544898987,
-0.20732367038726807,
0.19321686029434204,
0.3202224671840668,
0.3662998378276825,
0.05919429287314415,
0.21355187892913818,
0.11430836468935013,
-0.19091245532035828,
0.16536812484264374,
0.07424989342689514,
0.04772601276636124,
0.1528623402118683,
0.11477047204971313,
0.0004936177283525467,
-0.08683604747056961,
-0.277271032333374,
0.24687550961971283,
0.07101543247699738,
-0.26549237966537476,
-0.1259055733680725,
-0.026859084144234657,
0.10459712147712708,
0.3931478261947632,
-0.1350221186876297,
0.2678688168525696,
-0.4257541000843048,
-0.7568016648292542,
-0.14991699159145355,
-0.29453617334365845,
0.21775789558887482,
0.33000174164772034,
-0.07276871055364609,
0.0765952467918396,
0.05758725851774216,
-0.25341495871543884,
0.27620893716812134,
0.37644773721694946,
0.37086260318756104,
0.26680755615234375,
-0.11862580478191376,
-0.14264589548110962,
-0.2091725766658783,
0.21162791550159454,
0.6942175030708313,
0.1674206405878067,
-0.24895262718200684,
0.177202045917511,
-0.16242940723896027,
0.20509004592895508,
0.26245731115341187,
-0.13840492069721222,
-0.02217482030391693,
-0.1742611825466156,
-0.004602894186973572,
-0.127920001745224,
0.1411254107952118,
0.2708057165145874,
0.04001718387007713,
-0.5778189897537231,
-0.5629851818084717,
0.5285753011703491,
0.0018855761736631393,
0.1206887811422348,
0.11481072753667831,
-0.07533727586269379,
-0.29923903942108154,
0.18640585243701935,
0.12247857451438904,
0.8694335222244263,
0.24079349637031555,
0.12879864871501923,
0.4219372570514679,
0.07106805592775345,
0.17910370230674744,
-0.013394627720117569,
0.20086555182933807,
-0.2237328141927719,
-0.14416760206222534,
-0.04820990562438965,
0.10691909492015839,
0.16957655549049377,
-0.061057426035404205,
-0.32893046736717224,
0.24809284508228302,
-0.03181559219956398,
-0.3604767322540283,
0.15721264481544495,
0.26789963245391846,
-0.2972078025341034,
-0.1847030520439148,
-0.593187153339386,
0.18912427127361298,
-0.11179131269454956,
0.06495864689350128,
-0.134033203125,
-0.19605752825737,
-0.020015984773635864,
-0.2767280340194702,
-0.2806454300880432,
0.3329102694988251,
-0.47350820899009705,
0.34800684452056885,
-0.25841283798217773,
-0.529085636138916,
0.2686239778995514,
0.1564151495695114,
0.2244645059108734,
0.08295834064483643,
0.02738531120121479,
0.15348386764526367,
0.2622372508049011,
0.0240549985319376,
0.05520344153046608,
0.07674947381019592,
0.12742087244987488,
-0.15993858873844147,
-0.07951945066452026,
0.3281879425048828,
0.14068002998828888,
-0.0697794258594513,
0.28091979026794434,
-0.009797580540180206,
-0.15688563883304596,
-0.04930806905031204,
-0.22534112632274628,
-0.26023635268211365,
0.13597992062568665,
-0.06049472093582153,
0.1317283660173416,
-0.08026596903800964,
-0.10570864379405975,
-0.10739656537771225,
0.05710728466510773,
-0.39441484212875366,
-0.09972105920314789,
0.13674896955490112,
0.015305200591683388,
-0.07638109475374222,
0.5025991797447205,
0.19545038044452667,
-0.14068087935447693,
-0.10489611327648163,
0.30541837215423584,
-0.1084158718585968,
-0.5312292575836182,
-0.04959749057888985,
0.01648535765707493,
-0.017005637288093567,
0.08068723231554031,
0.6536362767219543,
-0.010975003242492676,
0.0688050240278244,
0.17238445580005646,
-0.5049068927764893,
-0.2466588169336319,
0.016613375395536423,
-0.1233028918504715,
0.009025916457176208,
0.12663942575454712,
0.4019540250301361,
0.07701393961906433,
-0.08402185887098312,
-0.3070727288722992,
0.17701245844364166,
-0.1739901602268219,
-0.013699490576982498,
0.2161894291639328,
-0.05225926637649536,
0.13252900540828705,
0.17323750257492065,
0.15742677450180054,
0.3606145977973938,
-0.09344542771577835,
-0.17270082235336304,
-0.19129955768585205,
0.09328421205282211,
-0.09341730177402496,
-0.3760542571544647,
-0.1042429506778717,
0.06467631459236145,
-0.04656963422894478,
-0.010136844590306282,
0.19869212806224823,
0.0797903910279274,
0.130921870470047,
0.20238900184631348,
-0.24461503326892853,
0.013605471700429916,
-0.08488615602254868,
0.19649997353553772,
-0.07745234668254852,
0.5980931520462036,
0.16465532779693604,
0.22368265688419342,
0.017284879460930824,
-0.013113297522068024,
-0.30250826478004456,
0.019758183509111404,
-0.16154904663562775,
0.07913807034492493,
0.05240992456674576,
-0.3789251446723938,
0.34166938066482544,
0.1473582535982132,
-0.10213809460401535,
0.4704577624797821,
-0.30419597029685974,
-0.033303987234830856,
0.20282897353172302,
0.1615917980670929,
-0.21776197850704193,
0.04600086808204651,
-0.24675297737121582,
-0.11257832497358322,
-0.08407436311244965,
0.4584665894508362,
0.2320084273815155,
-0.08067873120307922,
0.19455143809318542,
-0.023990856483578682,
0.36044102907180786,
0.21429108083248138,
0.4479627311229706,
0.3134157359600067,
0.02028908208012581,
0.13370369374752045,
-0.13377602398395538,
0.17384488880634308,
0.06549017131328583,
0.13657262921333313,
-0.5954398512840271,
0.2841954827308655,
0.09920211136341095,
0.1946319192647934,
-0.08444955199956894,
-0.311090886592865,
-0.08923527598381042,
-0.05490864813327789,
-0.23817649483680725,
0.3179435431957245,
0.17235872149467468,
0.3926711976528168,
-0.4416760504245758,
-0.02276385761797428,
-0.17708370089530945,
0.2958942949771881,
-0.0724509209394455,
0.008058913052082062,
0.09551116824150085,
-0.034978512674570084,
-0.4344457685947418,
0.0805492252111435,
-0.08860635757446289,
0.1283378154039383,
-0.03319695591926575,
0.3416317105293274,
-0.15143421292304993,
-0.06372398138046265,
0.017304856330156326,
0.10807561874389648,
0.0809842124581337,
-0.21013902127742767,
0.581278383731842,
0.44177407026290894,
0.14717036485671997,
0.21225984394550323,
0.1768324226140976,
0.5937769412994385,
0.40600457787513733,
-0.21534328162670135,
0.012656867504119873,
-0.09648895263671875,
0.030823512002825737,
0.14809106290340424,
0.010231595486402512,
0.20711928606033325,
0.41578495502471924,
0.2502589523792267,
0.1861783266067505,
-0.157627671957016,
-0.13461934030056,
0.31046944856643677,
0.0544280931353569,
-0.06215626373887062,
0.30126070976257324,
-0.07167376577854156,
0.2231064736843109,
-0.3759073317050934,
-0.07213225215673447,
-0.499814510345459,
0.23323151469230652,
0.3207104206085205,
0.016982411965727806,
0.027313794940710068,
-0.12295541167259216,
0.10451603680849075,
0.016299579292535782,
0.49727004766464233,
0.2941490113735199,
0.031246257945895195,
-0.13584189116954803,
-0.22527436912059784,
-0.7696908116340637,
0.2917548716068268,
0.07015776634216309,
-0.4844245910644531,
-0.11441225558519363,
-0.22951549291610718,
-0.11757021397352219,
0.3979945182800293,
0.04981274902820587,
0.2959582507610321,
0.16777178645133972,
0.010978128761053085,
-0.1803518831729889,
0.021155230700969696,
-0.02187604457139969,
0.061700813472270966,
-0.2551732063293457,
-0.3233397901058197,
0.11441143602132797,
-0.3997059166431427,
0.11315735429525375,
-0.3319927453994751,
-0.23699529469013214,
-0.36855295300483704,
0.0032363124191761017,
0.25501132011413574,
0.20107904076576233,
0.32297781109809875,
-0.30411607027053833,
-0.21394018828868866,
-0.11750368773937225,
-0.10413116961717606,
-0.04191587120294571,
0.3619702458381653,
0.1920212209224701,
0.2813432514667511,
0.08256278187036514,
0.15388043224811554,
-0.5075469017028809,
0.4183901250362396,
-0.06980861723423004,
-0.11836417764425278,
-0.264350950717926,
0.18119189143180847,
-0.09903267025947571,
-0.0012431927025318146,
0.2663121521472931,
0.3861822187900543,
0.013814844191074371,
0.2909946143627167,
-0.04764473810791969,
-0.504746675491333,
0.29180675745010376,
-0.4830416738986969,
-0.14199787378311157,
0.11374155431985855,
0.28293269872665405,
-0.20616063475608826,
0.022394739091396332,
-0.4061276614665985,
0.28218990564346313,
0.12257388234138489,
-0.03876490890979767,
-0.36104816198349,
0.3057992458343506,
-0.31569811701774597,
-0.1741194725036621,
-0.04703199863433838,
0.3284197151660919,
0.14853167533874512,
-0.16059009730815887,
0.11650779843330383,
-0.21944721043109894
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | Hi there !
I encountered the same issue with the IMDB dataset on windows. It threw an error about charmap not being able to decode a symbol during the first time I tried to download it. I checked on a remote linux machine I have, and it can't be reproduced.
I added ```encoding='UTF-8'``` to both lines that have ```open``` in ```imdb.py``` (108 and 114) and it worked for me.
Thank you ! | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 72 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
Hi there !
I encountered the same issue with the IMDB dataset on windows. It threw an error about charmap not being able to decode a symbol during the first time I tried to download it. I checked on a remote linux machine I have, and it can't be reproduced.
I added ```encoding='UTF-8'``` to both lines that have ```open``` in ```imdb.py``` (108 and 114) and it worked for me.
Thank you ! | [
-0.3488939702510834,
0.058056339621543884,
-0.005317069590091705,
0.2148154377937317,
0.2911391854286194,
0.06939192861318588,
-0.0231635682284832,
0.16827833652496338,
-0.11711829900741577,
-0.008803308010101318,
0.03516183793544769,
0.381425678730011,
0.05928494408726692,
0.2256457358598709,
0.20427092909812927,
0.13765782117843628,
0.08130122721195221,
0.22796130180358887,
0.07626866549253464,
-0.03212607651948929,
-0.2550891041755676,
0.24742642045021057,
-0.1208338588476181,
0.11785271018743515,
-0.3460628092288971,
-0.17710909247398376,
0.17526422441005707,
0.26846784353256226,
-0.29898127913475037,
-0.5578821301460266,
0.3264296352863312,
-0.042031314224004745,
0.1637304574251175,
0.31563639640808105,
-0.00010712700168369338,
-0.17206522822380066,
0.48791348934173584,
-0.27304619550704956,
-0.09775187075138092,
-0.29963845014572144,
-0.06626806408166885,
-0.17920294404029846,
0.20870569348335266,
-0.1951284259557724,
0.16420915722846985,
0.23619809746742249,
0.025422053411602974,
-0.21939709782600403,
0.24298743903636932,
0.25480058789253235,
0.2512708604335785,
0.07583203166723251,
-0.012426983565092087,
0.053012993186712265,
0.10596290230751038,
0.08923569321632385,
-0.03434671834111214,
0.42070358991622925,
0.4167102575302124,
-0.06617323309183121,
0.15764659643173218,
0.14133626222610474,
-0.29768437147140503,
-0.10318623483181,
0.19306102395057678,
0.12171072512865067,
-0.19265016913414001,
-0.5360170602798462,
0.02801733836531639,
0.23799198865890503,
0.40539583563804626,
-0.4262813925743103,
-0.20800384879112244,
0.08691223710775375,
0.2992159426212311,
-0.4392397105693817,
0.20788425207138062,
0.41384562849998474,
-0.3085671365261078,
0.13948839902877808,
-0.050568610429763794,
0.17567291855812073,
0.15243063867092133,
-0.013839058578014374,
0.01770072430372238,
-0.07965607941150665,
-0.08507613837718964,
-0.07893820852041245,
0.10761510580778122,
-0.03345692902803421,
0.2237878143787384,
0.05310865864157677,
-0.14195942878723145,
0.05217424035072327,
-0.04201802983880043,
-0.037431806325912476,
-0.16532066464424133,
0.06656807661056519,
-0.09670490026473999,
0.052369534969329834,
0.3962635397911072,
0.19331926107406616,
-0.1017114520072937,
0.3944362699985504,
0.22747525572776794,
0.04167158529162407,
-0.22195932269096375,
0.2559441924095154,
0.35832905769348145,
0.1660342812538147,
0.05768589302897453,
-0.0020173117518424988,
-0.16363748908042908,
-0.12743684649467468,
-0.14280854165554047,
0.2887331545352936,
0.15142729878425598,
-0.18981482088565826,
-0.4294261634349823,
0.16173096001148224,
0.1705230474472046,
0.21961946785449982,
0.1940179169178009,
0.18382787704467773,
0.17502333223819733,
0.31120654940605164,
0.033350057899951935,
0.30362194776535034,
-0.2544294595718384,
-0.25659728050231934,
-0.08096303045749664,
0.1975775957107544,
-0.2479846477508545,
-0.11203882843255997,
0.23678968846797943,
-0.09874705970287323,
0.1741173416376114,
0.2018449753522873,
0.245661199092865,
-0.15053078532218933,
0.06763569265604019,
-0.10746985673904419,
0.21298646926879883,
0.2414589524269104,
0.16078147292137146,
0.24282003939151764,
0.10679461061954498,
-0.23134881258010864,
-0.17096734046936035,
0.037215761840343475,
-0.42153677344322205,
-0.10103271901607513,
-0.05977560579776764,
0.20728638768196106,
-0.08176268637180328,
-0.11719061434268951,
-0.6567409634590149,
0.07308954745531082,
0.009207770228385925,
-0.36793890595436096,
0.06972366571426392,
-0.1777150183916092,
-0.03620266169309616,
-0.07684759050607681,
0.19312013685703278,
0.5341469645500183,
-0.46589627861976624,
0.14690163731575012,
0.03496035188436508,
0.012158822268247604,
0.22440826892852783,
0.14530020952224731,
-0.13879181444644928,
-0.1420610547065735,
-0.31583935022354126,
0.11195045709609985,
0.3089260458946228,
-0.5038154721260071,
-0.3365866243839264,
0.3986086845397949,
-0.09986308217048645,
-0.01524537056684494,
-0.003520973026752472,
0.03481841832399368,
0.11041725426912308,
-0.2140944004058838,
0.010430075228214264,
0.3849833607673645,
-0.07407072186470032,
0.18200208246707916,
-0.19005776941776276,
-0.1728026270866394,
0.13461372256278992,
-0.03276985138654709,
-0.17120540142059326,
-0.10841953009366989,
0.11167334765195847,
0.16999734938144684,
0.23009595274925232,
0.09330833703279495,
-0.1538107991218567,
0.10826393961906433,
0.24035966396331787,
-0.008166804909706116,
-0.07336894422769547,
0.10449554771184921,
0.0796278864145279,
0.06733543425798416,
-0.24562609195709229,
0.10678865015506744,
-0.48618215322494507,
-0.2660391926765442,
-0.15468162298202515,
0.03283064067363739,
-0.3553253412246704,
-0.08865030109882355,
0.20598746836185455,
-0.03873489797115326,
-0.20716091990470886,
0.0492858923971653,
-0.3249133229255676,
0.1765429526567459,
0.10970248281955719,
0.06584307551383972,
-0.29320192337036133,
0.1220308393239975,
-0.18518079817295074,
-0.22358205914497375,
0.24315470457077026,
0.16496248543262482,
0.10268795490264893,
-0.06269878149032593,
-0.1499418318271637,
0.25749635696411133,
0.07307382673025131,
0.3449723720550537,
-0.24520468711853027,
-0.2048260122537613,
0.5607060194015503,
-0.5482072234153748,
0.11304621398448944,
0.4191698133945465,
0.26024386286735535,
-0.1504661589860916,
0.20459917187690735,
0.24799844622612,
-0.17190498113632202,
0.008671596646308899,
0.07192131876945496,
-0.0847109779715538,
0.29720357060432434,
0.1503053605556488,
0.017787450924515724,
-0.3461954593658447,
0.25510117411613464,
0.5953898429870605,
0.214657723903656,
-0.09871610999107361,
-0.11145088076591492,
0.12966515123844147,
0.4439425766468048,
-0.054392747581005096,
-0.01651798188686371,
0.06822359561920166,
0.020838934928178787,
-0.06224380061030388,
-0.00350075401365757,
0.027083735913038254,
0.0906316488981247,
-0.08882404118776321,
-0.21879413723945618,
0.21200494468212128,
0.06579705327749252,
-0.2460462599992752,
0.14665821194648743,
-0.024335697293281555,
-0.1499822437763214,
0.07095200568437576,
0.06827942281961441,
0.13165470957756042,
-0.24746906757354736,
-0.27761340141296387,
0.03529835492372513,
0.06124633550643921,
-0.35370752215385437,
0.21999605000019073,
-0.49388575553894043,
-0.3810708522796631,
-0.1177905797958374,
0.0698186382651329,
-0.041999850422143936,
-0.13110807538032532,
-0.0912833958864212,
0.13797496259212494,
0.11138251423835754,
0.12189199775457382,
-0.35762500762939453,
-0.07453526556491852,
-0.1458541452884674,
-0.1930759847164154,
0.030477888882160187,
-0.2158692330121994,
-0.17047634720802307,
0.08317700028419495,
0.4746149480342865,
0.09286750853061676,
0.07085802406072617,
-0.4188656210899353,
0.20156142115592957,
0.07662937790155411,
-0.13730499148368835,
0.23155094683170319,
-0.2333483248949051,
0.1168910339474678,
0.04797627776861191,
0.05822267010807991,
-0.0004441589117050171,
-0.43872085213661194,
0.14506131410598755,
-0.10773636400699615,
-0.021132173016667366,
0.20001444220542908,
-0.010555905289947987,
-0.3811514675617218,
-0.11384385824203491,
0.002600431442260742,
-0.4156644642353058,
-0.2895943224430084,
-0.19180716574192047,
0.048539016395807266,
0.04915677756071091,
0.19717860221862793,
0.1036534458398819,
0.13258251547813416,
0.22789883613586426,
-0.007673412561416626,
-0.001211452530696988,
-0.34189170598983765,
0.41183027625083923,
-0.33096325397491455,
-0.4681515395641327,
0.24166709184646606,
0.03851734846830368,
0.3703064024448395,
-0.23643985390663147,
-0.2635748088359833,
-0.022080712020397186,
-0.11162540316581726,
0.1798570156097412,
0.14131136238574982,
0.025399399921298027,
-0.09903828799724579,
-0.05078156664967537,
-0.031988583505153656,
-0.03638356178998947,
-0.08936086297035217,
-0.11411292105913162,
-0.0868043452501297,
0.17542457580566406,
0.002558274194598198,
0.2680504024028778,
-0.3292311131954193,
-0.05462987720966339,
0.27063730359077454,
0.07686899602413177,
0.701458215713501,
-0.18415698409080505,
0.3847271502017975,
-0.2749556005001068,
-0.1120506152510643,
-0.11529888212680817,
-0.1782606542110443,
-0.04528679698705673,
0.13297314941883087,
-0.03468465059995651,
-0.3643236756324768,
-0.3445567488670349,
-0.015183405950665474,
-0.38539695739746094,
-0.3656522035598755,
0.05156400054693222,
-0.03865789622068405,
-0.07952409237623215,
-0.04910936579108238,
0.1858212947845459,
0.18524573743343353,
-0.38530370593070984,
0.059519048780202866,
0.3000612258911133,
-0.03371494263410568,
0.1691744476556778,
-0.20033489167690277,
-0.4145614802837372,
-0.023872099816799164,
0.06466403603553772,
0.12603044509887695,
0.3964134752750397,
-0.06258560717105865,
0.1580938696861267,
0.09966422617435455,
-0.07003460079431534,
0.20989155769348145,
0.0011680126190185547,
0.14452187716960907,
0.13326552510261536,
0.04149828106164932,
-0.0035142842680215836,
-0.07360801845788956,
-0.19176097214221954,
0.14260274171829224,
0.07592413574457169,
-0.23201528191566467,
-0.12121741473674774,
0.09064026921987534,
-0.01791313663125038,
0.443824827671051,
-0.01547158882021904,
0.12469124048948288,
-0.375638872385025,
-0.6495370268821716,
-0.1162419393658638,
-0.21786019206047058,
0.29255110025405884,
0.1491626352071762,
-0.08273866772651672,
-0.09544481337070465,
-0.031366243958473206,
-0.21619853377342224,
0.2599000334739685,
0.3667047619819641,
0.4251413643360138,
0.09289740025997162,
0.1322706639766693,
-0.15878279507160187,
-0.233795166015625,
0.4214041531085968,
0.7679149508476257,
-0.04107942804694176,
-0.344613254070282,
0.08665122091770172,
-0.2720610499382019,
0.11661962419748306,
0.28821253776550293,
-0.10649603605270386,
-0.3059365153312683,
-0.012072931975126266,
-0.14948958158493042,
-0.08435919880867004,
-0.020336218178272247,
0.2839381694793701,
-0.010146250948309898,
-0.5025898814201355,
-0.556586503982544,
0.525287389755249,
0.054494459182024,
0.1484498381614685,
0.11418843269348145,
0.14102965593338013,
-0.3060491681098938,
0.3216570019721985,
0.008404910564422607,
0.8980352878570557,
0.16970819234848022,
0.05205539986491203,
0.13166844844818115,
0.08567462861537933,
0.23200133442878723,
-0.11814684420824051,
0.12711888551712036,
-0.29634520411491394,
-0.204752117395401,
-0.06031182408332825,
0.1422051340341568,
0.026594560593366623,
0.17668521404266357,
-0.314973920583725,
0.2057439237833023,
-0.1948048323392868,
-0.28095337748527527,
0.0025012418627738953,
0.42981600761413574,
-0.4101656377315521,
-0.19633381068706512,
-0.3811074495315552,
0.2214440107345581,
-0.003767535090446472,
0.059216562658548355,
-0.016595307737588882,
-0.12336897850036621,
-0.06481064110994339,
-0.19620157778263092,
-0.5394254326820374,
0.21260255575180054,
-0.43559855222702026,
0.266152948141098,
-0.16945379972457886,
-0.6015484929084778,
0.20761840045452118,
0.0585000179708004,
0.23192065954208374,
0.20457050204277039,
0.0033777598291635513,
0.15834863483905792,
0.4542034864425659,
-0.10003512352705002,
0.14931078255176544,
0.030728992074728012,
0.26257067918777466,
-0.22665545344352722,
-0.10991354286670685,
0.17953196167945862,
0.1999664157629013,
0.050541870296001434,
0.4349759817123413,
0.06380634754896164,
-0.19490982592105865,
-0.0802440345287323,
-0.40438684821128845,
-0.30730298161506653,
0.1276107281446457,
0.004804447293281555,
0.14152981340885162,
0.0007686913013458252,
-0.09479904919862747,
-0.0846792533993721,
0.18230892717838287,
-0.29308396577835083,
-0.11499631404876709,
0.14051952958106995,
-0.13536188006401062,
-0.21189936995506287,
0.44016867876052856,
0.2668432295322418,
-0.2931903600692749,
-0.09376387298107147,
0.25294116139411926,
0.08099845051765442,
-0.6456254124641418,
-0.032752666622400284,
0.14147628843784332,
-0.02712590992450714,
0.07689912617206573,
0.5570614337921143,
-0.014649894088506699,
-0.03928492218255997,
-0.02121846005320549,
-0.43661224842071533,
-0.15007996559143066,
0.10352679342031479,
-0.06104014441370964,
0.0435241274535656,
0.03466644883155823,
0.23327645659446716,
0.19653642177581787,
-0.3172599971294403,
-0.28615131974220276,
0.16283325850963593,
-0.18951667845249176,
-0.07443943619728088,
0.14987686276435852,
0.054862797260284424,
0.04988689348101616,
0.033446770161390305,
0.09864474087953568,
0.30029237270355225,
0.058589108288288116,
-0.16408374905586243,
-0.040744997560977936,
0.09717722982168198,
-0.08339419215917587,
-0.3801470100879669,
-0.09838183969259262,
0.03287409618496895,
-0.1393337994813919,
-0.072440005838871,
0.10729165375232697,
0.249310702085495,
0.15529364347457886,
0.16379059851169586,
-0.22143949568271637,
-0.0776812955737114,
-0.0907817929983139,
0.22907404601573944,
-0.08822782337665558,
0.6197976469993591,
0.12040768563747406,
0.09377766400575638,
0.07559847086668015,
0.011744916439056396,
-0.00245327758602798,
0.08524708449840546,
-0.36874979734420776,
0.08743772655725479,
0.2601131200790405,
-0.28066325187683105,
0.475872665643692,
0.3395778238773346,
0.03426129370927811,
0.65373295545578,
-0.1924586147069931,
-0.15490411221981049,
0.27469781041145325,
0.17573504149913788,
-0.21166691184043884,
0.04471747204661369,
-0.18706168234348297,
-0.018689073622226715,
-0.17481322586536407,
0.24155454337596893,
0.27290838956832886,
-0.07019097357988358,
0.11372441053390503,
-0.1272243857383728,
0.6796848773956299,
0.06755565106868744,
0.4454053044319153,
0.16348712146282196,
0.0051598139107227325,
0.23551762104034424,
-0.16260004043579102,
0.24766184389591217,
0.04331742972135544,
0.14954233169555664,
-0.6107838749885559,
0.0075280312448740005,
0.11791882663965225,
0.1389148086309433,
-0.023389600217342377,
-0.3540786802768707,
-0.11688683927059174,
-0.18971240520477295,
-0.08143745362758636,
0.22041788697242737,
0.07780315726995468,
0.4481517970561981,
-0.37251418828964233,
0.03634648397564888,
-0.08003514260053635,
0.229008287191391,
-0.03464680165052414,
0.057286184281110764,
0.10258427262306213,
-0.06039467453956604,
-0.3064062297344208,
0.0626416951417923,
-0.12711764872074127,
0.11428231000900269,
-0.18654906749725342,
0.4548632502555847,
-0.09562680125236511,
-0.13673622906208038,
0.07154114544391632,
-0.14009052515029907,
0.17479637265205383,
-0.19927792251110077,
0.39457452297210693,
0.4614483714103699,
0.2651830315589905,
0.3899478316307068,
0.1301814466714859,
0.700370728969574,
0.4630874991416931,
-0.28568035364151,
0.1554400473833084,
-0.13113223016262054,
-0.015936125069856644,
0.12740932404994965,
0.057763807475566864,
0.2666429281234741,
0.36727407574653625,
0.14658118784427643,
0.18118014931678772,
-0.11628715693950653,
-0.14755000174045563,
0.18024545907974243,
0.27481716871261597,
0.08683784306049347,
0.21162766218185425,
-0.21518416702747345,
0.22265276312828064,
-0.6005722284317017,
-0.18918123841285706,
-0.3627201020717621,
0.16007524728775024,
0.5220952033996582,
-0.1226455345749855,
-0.1263442039489746,
-0.1507480889558792,
0.10211724042892456,
0.0949995219707489,
0.41639742255210876,
0.33522847294807434,
0.12806028127670288,
-0.18333013355731964,
0.029078207910060883,
-0.7274278402328491,
0.2501835227012634,
0.12063995003700256,
-0.4472254812717438,
-0.0691537857055664,
-0.0969264954328537,
-0.07524924725294113,
0.3170582056045532,
0.028310716152191162,
0.35039782524108887,
-0.02140345796942711,
0.22060328722000122,
0.013788487762212753,
0.03282793611288071,
-0.29217374324798584,
0.008651538752019405,
-0.2400590181350708,
-0.18255338072776794,
0.021602682769298553,
-0.5079554915428162,
0.0847153440117836,
-0.23182593286037445,
-0.474377304315567,
-0.32611793279647827,
0.2696184813976288,
0.3063944876194,
0.13068853318691254,
0.5721478462219238,
-0.16457054018974304,
-0.21644635498523712,
-0.21391543745994568,
-0.29999682307243347,
-0.15139013528823853,
0.5063714385032654,
0.19185806810855865,
0.015400581061840057,
0.06208988279104233,
0.12507054209709167,
-0.4375213086605072,
0.3358760476112366,
-0.11567359417676926,
-0.19460882246494293,
-0.38112884759902954,
-0.03922083228826523,
-0.09603007137775421,
-0.014009078964591026,
0.1611047238111496,
0.32766208052635193,
0.00597018375992775,
0.16868004202842712,
-0.12389311194419861,
-0.6365165710449219,
0.31057101488113403,
-0.36924922466278076,
-0.06265843659639359,
0.05109168961644173,
0.251425564289093,
-0.15003558993339539,
0.12298761308193207,
-0.5103998184204102,
0.26056113839149475,
-0.019522376358509064,
-0.16343820095062256,
-0.3511122763156891,
0.11213481426239014,
-0.212051659822464,
-0.039176102727651596,
-0.16069193184375763,
0.36740997433662415,
0.22099679708480835,
-0.20258687436580658,
-0.03193369507789612,
-0.12163908779621124
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | > Hi there !
> I encountered the same issue with the IMDB dataset on windows. It threw an error about charmap not being able to decode a symbol during the first time I tried to download it. I checked on a remote linux machine I have, and it can't be reproduced.
> I added `encoding='UTF-8'` to both lines that have `open` in `imdb.py` (108 and 114) and it worked for me.
> Thank you !
Hello !
Glad you managed to fix this issue on your side.
Do you mind opening a PR for IMDB ? | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 97 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
> Hi there !
> I encountered the same issue with the IMDB dataset on windows. It threw an error about charmap not being able to decode a symbol during the first time I tried to download it. I checked on a remote linux machine I have, and it can't be reproduced.
> I added `encoding='UTF-8'` to both lines that have `open` in `imdb.py` (108 and 114) and it worked for me.
> Thank you !
Hello !
Glad you managed to fix this issue on your side.
Do you mind opening a PR for IMDB ? | [
-0.3819616436958313,
0.032849326729774475,
-0.015481004491448402,
0.2028755247592926,
0.31208956241607666,
0.0689588114619255,
0.005816236138343811,
0.18256881833076477,
-0.08367085456848145,
0.029334671795368195,
0.014069687575101852,
0.40086129307746887,
0.05778128653764725,
0.23992271721363068,
0.16254012286663055,
0.1409791260957718,
0.07230447232723236,
0.22203470766544342,
0.10505623370409012,
-0.02751905471086502,
-0.2586424946784973,
0.2288968563079834,
-0.13084527850151062,
0.13499097526073456,
-0.3728041648864746,
-0.18323534727096558,
0.1941949427127838,
0.28832507133483887,
-0.269077330827713,
-0.540229320526123,
0.32261526584625244,
-0.040963027626276016,
0.15257468819618225,
0.30429938435554504,
-0.00010537446360103786,
-0.17878133058547974,
0.5192818641662598,
-0.26025331020355225,
-0.13243280351161957,
-0.2859145402908325,
-0.076561838388443,
-0.16203466057777405,
0.2123638391494751,
-0.19532255828380585,
0.15570995211601257,
0.2526988089084625,
0.022927066311240196,
-0.22710515558719635,
0.21518176794052124,
0.23197603225708008,
0.2676604390144348,
0.060811854898929596,
-0.018649112433195114,
0.04580332338809967,
0.06698044389486313,
0.10035988688468933,
-0.026196632534265518,
0.42925167083740234,
0.4187462627887726,
-0.07282725721597672,
0.13668043911457062,
0.1390880048274994,
-0.29070577025413513,
-0.1177428662776947,
0.23089367151260376,
0.13560529053211212,
-0.15270984172821045,
-0.5397378206253052,
0.030356094241142273,
0.2396232783794403,
0.40432965755462646,
-0.4341337978839874,
-0.21988846361637115,
0.07276304811239243,
0.28515321016311646,
-0.44513899087905884,
0.22959965467453003,
0.3813079297542572,
-0.3105047941207886,
0.13128630816936493,
-0.07267177104949951,
0.18512046337127686,
0.15988066792488098,
-0.01668860763311386,
0.02419670671224594,
-0.1213519275188446,
-0.07198496907949448,
-0.09582138806581497,
0.06449723243713379,
-0.07556415349245071,
0.22185881435871124,
0.0408133864402771,
-0.1298452764749527,
0.03115028142929077,
-0.023144330829381943,
-0.06544473022222519,
-0.15727660059928894,
0.08884698152542114,
-0.1031697690486908,
0.05267026275396347,
0.3892226219177246,
0.19042986631393433,
-0.10606279224157333,
0.3926360607147217,
0.21875859797000885,
0.07648324966430664,
-0.18632739782333374,
0.26495131850242615,
0.3690945506095886,
0.17929686605930328,
0.03523876145482063,
-0.007587779313325882,
-0.13568398356437683,
-0.14096209406852722,
-0.11855645477771759,
0.2891424000263214,
0.14623835682868958,
-0.18178312480449677,
-0.45066890120506287,
0.1488848179578781,
0.15403056144714355,
0.23772671818733215,
0.19902215898036957,
0.1871263086795807,
0.16946229338645935,
0.3224511742591858,
0.04060591012239456,
0.28570592403411865,
-0.2505062520503998,
-0.2612243890762329,
-0.0903879776597023,
0.17975303530693054,
-0.2592471241950989,
-0.11036138981580734,
0.21830244362354279,
-0.10180485248565674,
0.17589227855205536,
0.21830695867538452,
0.28620749711990356,
-0.15719309449195862,
0.05349253863096237,
-0.09253300726413727,
0.21983462572097778,
0.24584636092185974,
0.18648797273635864,
0.22785837948322296,
0.11672981083393097,
-0.2549143135547638,
-0.14827246963977814,
0.012296829372644424,
-0.42377275228500366,
-0.11147104203701019,
-0.0551045686006546,
0.22404535114765167,
-0.0579550601541996,
-0.09876684844493866,
-0.6468682289123535,
0.0615716278553009,
0.0012060180306434631,
-0.36565735936164856,
0.07538241147994995,
-0.1864977478981018,
-0.049268659204244614,
-0.08491633832454681,
0.19862426817417145,
0.533129096031189,
-0.46098628640174866,
0.14371633529663086,
0.001018220093101263,
0.030427444726228714,
0.22282269597053528,
0.14947153627872467,
-0.1381027102470398,
-0.16213124990463257,
-0.31928905844688416,
0.10656629502773285,
0.2765081822872162,
-0.5096928477287292,
-0.2977873682975769,
0.4063529670238495,
-0.09369295835494995,
-0.004983102902770042,
-0.002961203455924988,
0.00643564946949482,
0.13214623928070068,
-0.23749078810214996,
0.03508167341351509,
0.35666030645370483,
-0.08396533131599426,
0.18264305591583252,
-0.2123109996318817,
-0.1224614754319191,
0.09724637866020203,
-0.06551481783390045,
-0.16748811304569244,
-0.11066443473100662,
0.13592521846294403,
0.15899361670017242,
0.2215438187122345,
0.1049712523818016,
-0.1610749214887619,
0.10810273885726929,
0.26168155670166016,
0.020145144313573837,
-0.07550825923681259,
0.12333997339010239,
0.05885135754942894,
0.07797790318727493,
-0.21073377132415771,
0.08634699136018753,
-0.4398864507675171,
-0.26820123195648193,
-0.14563444256782532,
0.03354260325431824,
-0.33264824748039246,
-0.083955317735672,
0.22566869854927063,
-0.02417828142642975,
-0.21007370948791504,
0.025900043547153473,
-0.3468065857887268,
0.18514493107795715,
0.08878140151500702,
0.04759020730853081,
-0.26620909571647644,
0.12270811200141907,
-0.1663842648267746,
-0.2624221742153168,
0.2336539626121521,
0.1494121253490448,
0.10163386166095734,
-0.04740198329091072,
-0.153042733669281,
0.282733291387558,
0.06985855102539062,
0.35053783655166626,
-0.25920751690864563,
-0.17814667522907257,
0.5491706728935242,
-0.5299212336540222,
0.12763819098472595,
0.36869409680366516,
0.24687182903289795,
-0.14863359928131104,
0.20105677843093872,
0.2885649502277374,
-0.19764599204063416,
0.016166388988494873,
0.07636016607284546,
-0.09407175332307816,
0.29522475600242615,
0.112800732254982,
0.003900822252035141,
-0.36479073762893677,
0.26327186822891235,
0.5909793972969055,
0.20624244213104248,
-0.10963709652423859,
-0.12406191229820251,
0.14790078997612,
0.4497833251953125,
-0.03907115012407303,
-0.03057028353214264,
0.06850515305995941,
0.015806525945663452,
-0.055120572447776794,
-0.013151952996850014,
-0.0006505735218524933,
0.0780513733625412,
-0.08516491949558258,
-0.22530236840248108,
0.20053373277187347,
0.05985374003648758,
-0.2409396916627884,
0.1696554273366928,
-0.028212718665599823,
-0.15089374780654907,
0.10101974755525589,
0.06796570122241974,
0.1174648180603981,
-0.22351306676864624,
-0.2603950798511505,
0.01803220622241497,
0.03486233204603195,
-0.3721180558204651,
0.19286705553531647,
-0.46264347434043884,
-0.3444417119026184,
-0.0923720970749855,
0.06278659403324127,
-0.004826724529266357,
-0.13746029138565063,
-0.07466929405927658,
0.15103641152381897,
0.11171658337116241,
0.14182718098163605,
-0.3286159932613373,
-0.064926877617836,
-0.1468445062637329,
-0.15893453359603882,
0.0047210752964019775,
-0.2141065001487732,
-0.15980127453804016,
0.09841346740722656,
0.497403085231781,
0.06952811777591705,
0.042491309344768524,
-0.4195203185081482,
0.16617171466350555,
0.07359978556632996,
-0.12089507281780243,
0.22493219375610352,
-0.2262662798166275,
0.12655749917030334,
0.04262959584593773,
0.05008932575583458,
0.011444244533777237,
-0.45309704542160034,
0.14853651821613312,
-0.1235470324754715,
-0.020363006740808487,
0.2205776423215866,
-0.026679227128624916,
-0.38902443647384644,
-0.10627765953540802,
-0.004259467124938965,
-0.3799145221710205,
-0.2897251844406128,
-0.18751005828380585,
0.04664180800318718,
0.04195394366979599,
0.20302920043468475,
0.15316027402877808,
0.1282232403755188,
0.24373501539230347,
-0.011690841987729073,
-0.011725210584700108,
-0.34917062520980835,
0.39631813764572144,
-0.3242891728878021,
-0.4361441433429718,
0.2484275996685028,
0.018129047006368637,
0.37129318714141846,
-0.2505534291267395,
-0.2293865829706192,
-0.04457401856780052,
-0.11632980406284332,
0.2337527573108673,
0.13344009220600128,
0.006367173045873642,
-0.10048852860927582,
-0.03889540210366249,
-0.056613773107528687,
-0.031120067462325096,
-0.08222849667072296,
-0.1118074283003807,
-0.08230147510766983,
0.16422787308692932,
-0.0008153915405273438,
0.32575929164886475,
-0.34447064995765686,
-0.0641670674085617,
0.2906721234321594,
0.06649360805749893,
0.6802045106887817,
-0.18250785768032074,
0.38221585750579834,
-0.2870156168937683,
-0.10669542849063873,
-0.11050311475992203,
-0.17708346247673035,
-0.0840742290019989,
0.14186835289001465,
-0.045512668788433075,
-0.38721024990081787,
-0.35347798466682434,
-0.020564716309309006,
-0.3872493505477905,
-0.35992440581321716,
0.06468534469604492,
-0.023364409804344177,
-0.08338699489831924,
-0.05147355794906616,
0.1716659665107727,
0.16326017677783966,
-0.37394005060195923,
0.070982426404953,
0.2905247211456299,
0.0032342448830604553,
0.1390349417924881,
-0.14564912021160126,
-0.40581610798835754,
0.03738827258348465,
0.07405252754688263,
0.13748867809772491,
0.36214113235473633,
-0.06644830852746964,
0.13293498754501343,
0.10965500771999359,
-0.06789557635784149,
0.22575676441192627,
-0.02456740476191044,
0.15118074417114258,
0.12179836630821228,
0.03257905691862106,
0.028255967423319817,
-0.06708328425884247,
-0.203353151679039,
0.14082220196723938,
0.08987347781658173,
-0.22739073634147644,
-0.12178728729486465,
0.08147941529750824,
-0.018918626010417938,
0.4337354302406311,
-0.02898617833852768,
0.1312059909105301,
-0.3555268347263336,
-0.6048948168754578,
-0.11630343645811081,
-0.21355941891670227,
0.305625855922699,
0.13136523962020874,
-0.08555082976818085,
-0.08866305649280548,
-0.03548137843608856,
-0.22561538219451904,
0.26226213574409485,
0.3639512062072754,
0.41893112659454346,
0.09525666385889053,
0.15121114253997803,
-0.15064118802547455,
-0.2962837517261505,
0.4755992293357849,
0.7579309344291687,
-0.06288206577301025,
-0.3353404104709625,
0.06968110054731369,
-0.26252633333206177,
0.12259640544652939,
0.29079943895339966,
-0.09959276765584946,
-0.3634558320045471,
-0.04284833371639252,
-0.1352621465921402,
-0.09041113406419754,
-0.04612557217478752,
0.25963810086250305,
0.011514128185808659,
-0.45969897508621216,
-0.5531417727470398,
0.49366408586502075,
0.06878635287284851,
0.13769511878490448,
0.10653288662433624,
0.15121781826019287,
-0.318625271320343,
0.31189316511154175,
0.04999646916985512,
0.8768308162689209,
0.16909010708332062,
0.0178321972489357,
0.13538742065429688,
0.11375544965267181,
0.17730624973773956,
-0.1257152259349823,
0.11677365005016327,
-0.3097369372844696,
-0.2357063740491867,
-0.042427897453308105,
0.13867241144180298,
0.017619401216506958,
0.2051658034324646,
-0.3177810311317444,
0.18946051597595215,
-0.22388723492622375,
-0.3268331289291382,
0.004913791548460722,
0.4409642517566681,
-0.4308352768421173,
-0.1852426379919052,
-0.3423236608505249,
0.23869982361793518,
0.006817173212766647,
0.04102182760834694,
0.00847284309566021,
-0.13439638912677765,
-0.058654092252254486,
-0.18264761567115784,
-0.5604509115219116,
0.20456793904304504,
-0.45023590326309204,
0.23352456092834473,
-0.15526500344276428,
-0.5828338265419006,
0.20492415130138397,
0.0524216964840889,
0.22463206946849823,
0.200942724943161,
0.035286806523799896,
0.13926580548286438,
0.4998706579208374,
-0.0876832902431488,
0.13613179326057434,
0.03446725755929947,
0.3020966947078705,
-0.2286539077758789,
-0.08870351314544678,
0.18683341145515442,
0.20941445231437683,
0.048054248094558716,
0.4210776090621948,
0.05689789354801178,
-0.1814810037612915,
-0.0926150530576706,
-0.38836270570755005,
-0.30688679218292236,
0.11355096101760864,
-0.0009187161922454834,
0.16269321739673615,
-0.012549757957458496,
-0.08069886267185211,
-0.0822209045290947,
0.19795693457126617,
-0.28481802344322205,
-0.10284528136253357,
0.12092925608158112,
-0.15307235717773438,
-0.18079327046871185,
0.4431290924549103,
0.2550020217895508,
-0.3089764714241028,
-0.0976344496011734,
0.26540639996528625,
0.08958140015602112,
-0.6359015107154846,
0.010723482817411423,
0.1750420480966568,
-0.013591811060905457,
0.07320154458284378,
0.5347976684570312,
-0.00934986025094986,
-0.00930912047624588,
-0.057587429881095886,
-0.4145115911960602,
-0.15406452119350433,
0.11113156378269196,
-0.05291828140616417,
0.036115631461143494,
0.0036041587591171265,
0.23176619410514832,
0.19102953374385834,
-0.31913456320762634,
-0.3135760426521301,
0.12778446078300476,
-0.18099132180213928,
-0.08266749233007431,
0.12180667370557785,
0.03740546107292175,
0.061319395899772644,
0.04581224173307419,
0.12079203128814697,
0.2752501964569092,
0.07040097564458847,
-0.18560656905174255,
-0.031035739928483963,
0.0935354232788086,
-0.09458675235509872,
-0.3848305940628052,
-0.10180996358394623,
0.05094929039478302,
-0.13824868202209473,
-0.09404256939888,
0.10853447020053864,
0.2424841821193695,
0.1397390365600586,
0.15032736957073212,
-0.20627041161060333,
-0.07383311539888382,
-0.0967535525560379,
0.21576160192489624,
-0.06562983989715576,
0.6222360730171204,
0.08354061841964722,
0.08991605043411255,
0.0687403753399849,
0.0016753003001213074,
-0.009018386714160442,
0.0916675478219986,
-0.3974383473396301,
0.11200147867202759,
0.2612664997577667,
-0.2647686004638672,
0.4513232707977295,
0.3277532756328583,
0.024848680943250656,
0.6391982436180115,
-0.19187647104263306,
-0.1447710543870926,
0.24806246161460876,
0.19423066079616547,
-0.1797555387020111,
0.08208601176738739,
-0.19100895524024963,
-0.041383177042007446,
-0.14586439728736877,
0.2278401255607605,
0.2588406205177307,
-0.06763407588005066,
0.12206356227397919,
-0.13675564527511597,
0.658389151096344,
0.056524425745010376,
0.4018706977367401,
0.16928863525390625,
0.007239092141389847,
0.23846662044525146,
-0.14816661179065704,
0.2285066694021225,
0.0441475510597229,
0.11292396485805511,
-0.5978400111198425,
0.012028892524540424,
0.09281860291957855,
0.13669925928115845,
-0.02476026862859726,
-0.35004955530166626,
-0.09621395170688629,
-0.20525020360946655,
-0.10490807890892029,
0.20660272240638733,
0.07698807120323181,
0.40652698278427124,
-0.3523638844490051,
0.04630853608250618,
-0.07280302792787552,
0.23059305548667908,
-0.030738674104213715,
0.04940808191895485,
0.07970459759235382,
-0.0599660649895668,
-0.3355242609977722,
0.07685032486915588,
-0.14995786547660828,
0.13018667697906494,
-0.17897388339042664,
0.4968094229698181,
-0.08918997645378113,
-0.08800177276134491,
0.06966587901115417,
-0.14454150199890137,
0.2056104838848114,
-0.20876294374465942,
0.40461814403533936,
0.46555060148239136,
0.25858446955680847,
0.37223491072654724,
0.11808111518621445,
0.7204274535179138,
0.46477705240249634,
-0.2893509566783905,
0.14013631641864777,
-0.11798889935016632,
-0.03717834874987602,
0.13529753684997559,
0.05720503628253937,
0.23590289056301117,
0.34324005246162415,
0.1024341881275177,
0.20567601919174194,
-0.14459829032421112,
-0.15239030122756958,
0.1710338592529297,
0.2750341594219208,
0.0960652232170105,
0.17893627285957336,
-0.19397157430648804,
0.22163379192352295,
-0.6160323619842529,
-0.19461068511009216,
-0.3276049494743347,
0.1413038969039917,
0.5070891380310059,
-0.14266552031040192,
-0.15613266825675964,
-0.16301946341991425,
0.11896687746047974,
0.09719391167163849,
0.3863835632801056,
0.32570669054985046,
0.11115942895412445,
-0.18122367560863495,
0.05900588631629944,
-0.6790174841880798,
0.25117170810699463,
0.1505209356546402,
-0.4328426420688629,
-0.06282171607017517,
-0.08450353890657425,
-0.07079757004976273,
0.29983121156692505,
0.038031190633773804,
0.3017370104789734,
-0.016988661140203476,
0.23774921894073486,
0.01843903586268425,
0.04622487723827362,
-0.27482497692108154,
-0.01148209162056446,
-0.21714432537555695,
-0.16633138060569763,
0.013107798993587494,
-0.5385069251060486,
0.10013972967863083,
-0.22532792389392853,
-0.45753294229507446,
-0.2884441912174225,
0.3197556138038635,
0.2966774106025696,
0.10213859379291534,
0.5777385830879211,
-0.190637469291687,
-0.2266537994146347,
-0.17350317537784576,
-0.30246710777282715,
-0.15583796799182892,
0.509759783744812,
0.18075251579284668,
0.028210386633872986,
0.06523511558771133,
0.06823991239070892,
-0.4261285960674286,
0.33914250135421753,
-0.13710112869739532,
-0.23315666615962982,
-0.3533225953578949,
-0.03647501766681671,
-0.11096183955669403,
-0.015672506764531136,
0.1409454047679901,
0.3411548435688019,
0.008554741740226746,
0.17462341487407684,
-0.13680022954940796,
-0.6540449857711792,
0.3415573239326477,
-0.35434383153915405,
-0.06921486556529999,
0.04358617961406708,
0.2550288140773773,
-0.15109902620315552,
0.11504177749156952,
-0.48638132214546204,
0.26215440034866333,
-0.014934646897017956,
-0.16551637649536133,
-0.3533984422683716,
0.1019231379032135,
-0.19165775179862976,
-0.021696556359529495,
-0.16778236627578735,
0.33949336409568787,
0.21470266580581665,
-0.19015014171600342,
-0.055405743420124054,
-0.10512224584817886
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | > This is probably a Windows issue, we need to specify the encoding when `load_dataset()` reads the original CSV file.
> Try to find the `open()` statement called by `load_dataset()` and add an `encoding='utf-8'` parameter.
> See issues #242 and #307
Sorry for not responding for about a month.
I have just found that it is necessary to change / add the environment variable as what was told in #242.
Everything works after I add the new environment variable and restart my PC.
I think the encoding issue for windows isn't limited to the open() function call specific to few dataset, but actually in the entire library, depends on the machine / os you use. | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 115 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
> This is probably a Windows issue, we need to specify the encoding when `load_dataset()` reads the original CSV file.
> Try to find the `open()` statement called by `load_dataset()` and add an `encoding='utf-8'` parameter.
> See issues #242 and #307
Sorry for not responding for about a month.
I have just found that it is necessary to change / add the environment variable as what was told in #242.
Everything works after I add the new environment variable and restart my PC.
I think the encoding issue for windows isn't limited to the open() function call specific to few dataset, but actually in the entire library, depends on the machine / os you use. | [
-0.3218463957309723,
0.041040271520614624,
-0.01726291887462139,
0.19213134050369263,
0.3841373324394226,
-0.04183294251561165,
0.05338475480675697,
0.18391890823841095,
-0.24381491541862488,
0.0746564120054245,
0.11224336177110672,
0.46712639927864075,
0.11079859733581543,
0.3263349235057831,
0.21563376486301422,
0.07934112846851349,
0.12159371376037598,
0.2935241460800171,
0.03679338097572327,
0.025393381714820862,
-0.4600171744823456,
0.18018513917922974,
-0.10282469540834427,
0.1062130481004715,
-0.22763821482658386,
-0.10093177109956741,
0.055365778505802155,
0.2734968662261963,
-0.20237278938293457,
-0.5459722876548767,
0.1896323710680008,
-0.07502862811088562,
0.2605704069137573,
0.2277507483959198,
-0.00010598228254821151,
-0.044053640216588974,
0.28043264150619507,
-0.18032267689704895,
-0.15691205859184265,
-0.28897321224212646,
-0.19754275679588318,
-0.36788880825042725,
0.10781776905059814,
-0.2368745505809784,
0.06357826292514801,
0.2137283831834793,
-0.002422211691737175,
-0.2136172652244568,
0.4395003318786621,
0.3770240247249603,
0.27943092584609985,
0.13542386889457703,
-0.11472570151090622,
0.10991577059030533,
0.05412501469254494,
0.05732224881649017,
-0.018666192889213562,
0.5010842680931091,
0.21317750215530396,
-0.2339807152748108,
0.02983175218105316,
0.17212367057800293,
-0.2423507124185562,
-0.058099355548620224,
0.0973249226808548,
0.1594388782978058,
-0.21015146374702454,
-0.4088996946811676,
0.12959308922290802,
0.1351366639137268,
0.3100116550922394,
-0.32497483491897583,
-0.12765972316265106,
0.00831596553325653,
0.10668448358774185,
-0.7205753922462463,
0.3261370062828064,
0.4268113374710083,
-0.24560211598873138,
0.1342460811138153,
0.060991935431957245,
0.22696147859096527,
0.04612109065055847,
-0.0214393213391304,
0.06957688927650452,
-0.031643129885196686,
-0.23752500116825104,
-0.04699573665857315,
0.2229001522064209,
-0.038063354790210724,
0.09245672821998596,
0.0012149550020694733,
-0.21062782406806946,
0.08152253180742264,
-0.20833252370357513,
0.03760217875242233,
-0.1750786304473877,
0.03156879171729088,
-0.15389961004257202,
-0.06201602518558502,
0.5168799757957458,
0.1546451598405838,
0.013629834167659283,
0.32131871581077576,
0.10492444038391113,
0.07977704703807831,
-0.12208021432161331,
0.1708957850933075,
0.3792803883552551,
-0.03426644951105118,
0.14151297509670258,
-0.01525498554110527,
-0.22517341375350952,
-0.34753093123435974,
-0.20948277413845062,
0.3959982991218567,
0.21655027568340302,
-0.1523396521806717,
-0.43616461753845215,
0.12127890437841415,
0.09806529432535172,
0.07021507620811462,
0.024060452356934547,
0.2243412733078003,
0.20476913452148438,
0.346665620803833,
0.016804847866296768,
0.20398704707622528,
-0.35926663875579834,
-0.24294407665729523,
-0.017309170216321945,
0.18190589547157288,
-0.3688889741897583,
-0.06975290179252625,
0.2735365629196167,
-0.1578790694475174,
0.05498623847961426,
0.2533166706562042,
0.16883930563926697,
-0.2118106186389923,
-0.045145176351070404,
-0.2011539787054062,
0.11549032479524612,
0.134848490357399,
0.04993503913283348,
0.21833859384059906,
0.12983575463294983,
-0.3230084776878357,
-0.09042490273714066,
0.07447338104248047,
-0.5151634216308594,
-0.006091803312301636,
-0.07996723800897598,
0.23872463405132294,
-0.13745006918907166,
-0.051386334002017975,
-0.4799756705760956,
0.17801673710346222,
0.01989801973104477,
-0.4306434392929077,
0.010102972388267517,
-0.20540264248847961,
-0.1354731023311615,
-0.21350041031837463,
0.18759894371032715,
0.5726639032363892,
-0.5493258237838745,
0.21754920482635498,
0.23084214329719543,
0.02705102227628231,
0.28207236528396606,
0.13102252781391144,
-0.13390854001045227,
-0.17691245675086975,
-0.1706351786851883,
-0.032075442373752594,
0.2616346478462219,
-0.2815622091293335,
-0.2736169695854187,
0.352300226688385,
-0.007257670164108276,
-0.045792460441589355,
0.03500577062368393,
-0.16343656182289124,
0.19339624047279358,
-0.2519921064376831,
0.03211237117648125,
0.37934619188308716,
0.037485700100660324,
0.30351123213768005,
-0.20110920071601868,
-0.15440645813941956,
0.27324333786964417,
0.010740652680397034,
-0.293649822473526,
-0.20325419306755066,
0.2821948528289795,
0.1416628658771515,
0.1744513064622879,
-0.15117070078849792,
-0.13375261425971985,
0.15876039862632751,
0.2327433079481125,
-0.20960365235805511,
-0.025487074628472328,
0.18050962686538696,
-0.024958766996860504,
-0.026068823412060738,
-0.22982297837734222,
0.05817384645342827,
-0.2890241742134094,
-0.14959922432899475,
-0.09294193983078003,
0.04660419374704361,
-0.32464519143104553,
-0.23994681239128113,
0.20325760543346405,
0.03695152699947357,
-0.1426311433315277,
-0.0014221277087926865,
-0.14115096628665924,
0.27688634395599365,
0.010731851682066917,
-0.013901494443416595,
-0.1724303811788559,
0.18617936968803406,
-0.09003578126430511,
-0.20326578617095947,
0.2726711332798004,
0.30693504214286804,
0.18523454666137695,
-0.131429985165596,
-0.2873488962650299,
0.2914459705352783,
0.034833502024412155,
0.35788416862487793,
-0.26495763659477234,
-0.24016930162906647,
0.45783787965774536,
-0.48400792479515076,
0.07094573974609375,
0.46114733815193176,
0.30181363224983215,
-0.09798605740070343,
0.1545097529888153,
0.3615795969963074,
-0.17675361037254333,
0.019595347344875336,
-0.0165707990527153,
-0.12442013621330261,
0.21313202381134033,
0.030701223760843277,
0.05708643049001694,
-0.1943311095237732,
0.34805524349212646,
0.5848910808563232,
0.25599735975265503,
0.03747051581740379,
-0.14994731545448303,
-0.0009223148226737976,
0.5480145215988159,
-0.09266076982021332,
-0.07304742187261581,
0.12199901789426804,
0.028134483844041824,
-0.10212964564561844,
0.08197332918643951,
0.03542671725153923,
0.3410062789916992,
-0.1184016540646553,
-0.26935112476348877,
0.2631339430809021,
0.07195523381233215,
-0.24932414293289185,
0.17859476804733276,
-0.06634657084941864,
-0.03980981931090355,
0.0016251355409622192,
0.10922499001026154,
0.2062709480524063,
-0.2464142143726349,
-0.08965297788381577,
0.1819763332605362,
0.1307779848575592,
-0.37067607045173645,
0.35900914669036865,
-0.526856005191803,
-0.4222713112831116,
-0.277897447347641,
0.23702742159366608,
-0.15062442421913147,
0.05658946931362152,
-0.2060837596654892,
-0.014638759195804596,
0.0048543475568294525,
0.18097616732120514,
-0.1959625631570816,
0.05910445749759674,
-0.1677374392747879,
-0.12391602247953415,
0.16118448972702026,
-0.2020174264907837,
-0.32564985752105713,
0.10918290913105011,
0.49916625022888184,
-0.06720272451639175,
0.056706808507442474,
-0.36319389939308167,
0.13407625257968903,
0.1923750638961792,
-0.13328492641448975,
0.13867516815662384,
-0.19582673907279968,
0.21748904883861542,
-0.04614628851413727,
0.019729554653167725,
-0.09402236342430115,
-0.4398115277290344,
0.17573928833007812,
-0.06207913160324097,
0.018076470121741295,
0.16882993280887604,
-0.051943693310022354,
-0.28974711894989014,
-0.27442702651023865,
-0.15589162707328796,
-0.5099149346351624,
-0.3886059522628784,
-0.11364379525184631,
-0.11471326649188995,
0.0890483558177948,
0.32291144132614136,
0.025617513805627823,
0.02902042493224144,
0.1873551607131958,
-0.11734014749526978,
-0.04953298717737198,
-0.14874303340911865,
0.34195587038993835,
-0.40839165449142456,
-0.552504301071167,
0.10084843635559082,
-0.01984374225139618,
0.3197477459907532,
-0.1563626527786255,
-0.18969343602657318,
-0.006978576071560383,
-0.15072540938854218,
0.10507099330425262,
0.0035447143018245697,
0.100213423371315,
-0.054726481437683105,
-0.04707474634051323,
-0.025462590157985687,
-0.19985228776931763,
-0.19223999977111816,
-0.06135506182909012,
0.08959519863128662,
0.24901410937309265,
0.04752224311232567,
0.24928390979766846,
-0.2908983826637268,
0.016307875514030457,
0.31814044713974,
0.03560751676559448,
0.5225816965103149,
-0.1361580789089203,
0.42345574498176575,
-0.027513720095157623,
-0.05855429917573929,
0.1832726150751114,
-0.30345794558525085,
-0.05938687548041344,
0.30251944065093994,
-0.05737055093050003,
-0.2925339341163635,
-0.35600119829177856,
-0.05605920031666756,
-0.3991358280181885,
-0.4300521910190582,
0.21922820806503296,
0.01969987526535988,
0.08639785647392273,
-0.0032783914357423782,
0.18699628114700317,
0.052721258252859116,
-0.32699206471443176,
-0.08971671760082245,
0.3263351619243622,
-0.07927780598402023,
0.1276288628578186,
-0.21667277812957764,
-0.5177033543586731,
-0.1570395529270172,
0.11966174095869064,
0.1495024561882019,
0.4917266368865967,
-0.00362609326839447,
0.13175952434539795,
0.059585120528936386,
-0.11264436691999435,
0.17316459119319916,
0.14030952751636505,
0.03474832698702812,
0.22606948018074036,
0.1334960013628006,
0.0010697543621063232,
-0.10155422985553741,
-0.2331472635269165,
0.18130575120449066,
0.025556523352861404,
-0.25008711218833923,
-0.11804278194904327,
-0.059441160410642624,
0.025844566524028778,
0.44942113757133484,
-0.10257266461849213,
0.11639686673879623,
-0.4000322222709656,
-0.5393143892288208,
-0.006674956530332565,
-0.21231654286384583,
0.13923464715480804,
0.2193732112646103,
-0.2538374066352844,
0.04152867570519447,
0.05745889991521835,
-0.2547731399536133,
0.3427088260650635,
0.40445849299430847,
0.46004948019981384,
0.17624631524085999,
0.02571214735507965,
-0.2020944207906723,
-0.0036782585084438324,
0.22424650192260742,
0.6949759125709534,
-0.014834366738796234,
-0.3524722754955292,
0.17866989970207214,
-0.22614222764968872,
0.3051569163799286,
0.27457690238952637,
-0.2305901199579239,
-0.025235861539840698,
-0.11988775432109833,
-0.06431028246879578,
-0.22657564282417297,
0.13734471797943115,
0.22782407701015472,
0.1492490917444229,
-0.6115508675575256,
-0.5212305784225464,
0.49642881751060486,
-0.07088057696819305,
0.10429978370666504,
0.16227510571479797,
-0.09253178536891937,
-0.24401350319385529,
0.22676384449005127,
0.01101856678724289,
0.8180400729179382,
0.18717698752880096,
0.15514138340950012,
0.23172828555107117,
0.012477859854698181,
0.28236615657806396,
-0.08246399462223053,
0.16571417450904846,
-0.23039507865905762,
-0.19437626004219055,
0.051592789590358734,
0.16193394362926483,
0.21976453065872192,
0.009802356362342834,
-0.35447609424591064,
0.1651538461446762,
0.15741941332817078,
-0.16936719417572021,
0.17868545651435852,
0.2002151608467102,
-0.22101177275180817,
-0.30443599820137024,
-0.5463428497314453,
0.1954890340566635,
-0.0740823745727539,
0.019493184983730316,
-0.06771986186504364,
-0.28363263607025146,
0.08222129940986633,
-0.29287999868392944,
-0.2578265368938446,
0.3182094693183899,
-0.5277627110481262,
0.16142605245113373,
-0.16277998685836792,
-0.6413739323616028,
0.3334991931915283,
0.16239245235919952,
0.17460745573043823,
0.22810804843902588,
-0.01638624630868435,
0.11010958254337311,
0.2558591663837433,
0.08163145184516907,
0.025546018034219742,
0.1103225126862526,
0.13192813098430634,
-0.17208406329154968,
-0.029833443462848663,
0.21041059494018555,
0.04975520819425583,
0.10050448775291443,
0.37391579151153564,
0.0870167687535286,
-0.1857050061225891,
-0.14848439395427704,
-0.1668732762336731,
-0.25515449047088623,
0.16537752747535706,
-0.017203314229846,
0.15327335894107819,
-0.0348784402012825,
-0.025640031322836876,
0.03246961534023285,
-0.008933048695325851,
-0.40616926550865173,
-0.15369261801242828,
0.046881161630153656,
-0.10162467509508133,
-0.17061562836170197,
0.4922058880329132,
0.15205353498458862,
-0.24272261559963226,
-0.08987273275852203,
0.27226564288139343,
-0.16834960877895355,
-0.49915048480033875,
-0.04794047027826309,
0.20286747813224792,
0.025537729263305664,
0.09532862156629562,
0.6194521188735962,
-0.06149563938379288,
0.010784018784761429,
0.08224008977413177,
-0.5254034996032715,
-0.22157372534275055,
-0.00738883763551712,
-0.07670201361179352,
-0.09945264458656311,
0.19910264015197754,
0.26631954312324524,
0.09846677631139755,
-0.19288772344589233,
-0.3095080256462097,
0.04791819304227829,
-0.01773073524236679,
0.058578506112098694,
0.22140061855316162,
0.011723078787326813,
0.18546295166015625,
0.0903160572052002,
0.10962580144405365,
0.30420106649398804,
-0.04313379153609276,
-0.16531836986541748,
-0.19658707082271576,
0.10162565112113953,
-0.08494612574577332,
-0.33559146523475647,
-0.0742773562669754,
0.0007749311625957489,
0.012075294740498066,
-0.17721374332904816,
0.18216712772846222,
0.08502316474914551,
0.0071396008133888245,
0.16221487522125244,
-0.36174243688583374,
0.1223217099905014,
-0.054553378373384476,
0.25375646352767944,
-0.19599279761314392,
0.5454299449920654,
0.1013527438044548,
0.14067184925079346,
0.0746455267071724,
0.05254147946834564,
-0.1080564334988594,
-0.07511090487241745,
-0.3167438507080078,
0.02666485123336315,
0.14252662658691406,
-0.32326364517211914,
0.3874885141849518,
0.1754027158021927,
-0.04124730825424194,
0.5807663202285767,
-0.11491889506578445,
0.03852225840091705,
0.4276030957698822,
0.15287259221076965,
-0.25099706649780273,
0.13763204216957092,
-0.3420260548591614,
-0.03075273707509041,
-0.10330813378095627,
0.24647553265094757,
0.28734320402145386,
-0.22216473519802094,
0.22217389941215515,
-0.1821417510509491,
0.41885998845100403,
0.16871075332164764,
0.4179491102695465,
0.5055609345436096,
0.20754067599773407,
0.2703205347061157,
-0.11950378865003586,
0.10818588733673096,
-0.012581385672092438,
0.06936364620923996,
-0.5291959047317505,
0.0862780287861824,
0.13312679529190063,
0.23085349798202515,
-0.15698200464248657,
-0.4490395784378052,
-0.06202666088938713,
-0.1416439712047577,
-0.18209129571914673,
0.337234228849411,
0.08950392156839371,
0.5444587469100952,
-0.5150150060653687,
-0.0241567250341177,
-0.09065143018960953,
0.17104020714759827,
-0.0851535052061081,
0.01869691163301468,
0.10019803047180176,
0.02028588205575943,
-0.2237953543663025,
0.1610758751630783,
-0.13752205669879913,
0.12724275887012482,
-0.07451872527599335,
0.36705881357192993,
-0.14959655702114105,
-0.03109402395784855,
0.038056693971157074,
0.013626057654619217,
0.08130580186843872,
-0.13143423199653625,
0.49109092354774475,
0.26424723863601685,
0.17308562994003296,
0.2993214726448059,
0.09913679957389832,
0.6880452036857605,
0.4429655373096466,
-0.08565862476825714,
0.0141001520678401,
-0.14281824231147766,
0.08479167520999908,
0.12774574756622314,
0.10181470960378647,
0.30661147832870483,
0.4459530711174011,
0.17610806226730347,
0.1773952692747116,
-0.10484028607606888,
-0.07915881276130676,
0.17182761430740356,
0.026785194873809814,
-0.011856403201818466,
0.06729751080274582,
-0.09164398908615112,
0.2169598639011383,
-0.492568701505661,
-0.11692694574594498,
-0.3307478725910187,
0.2565571665763855,
0.40665537118911743,
0.11521215736865997,
0.002071114256978035,
-0.1124936193227768,
0.10016322135925293,
0.15493090450763702,
0.48579490184783936,
0.18879535794258118,
0.10789410769939423,
-0.1383635699748993,
-0.07115477323532104,
-0.7003782391548157,
0.27711787819862366,
0.1238698661327362,
-0.3950074017047882,
-0.148674875497818,
-0.3675151765346527,
0.05590787157416344,
0.29698818922042847,
-0.09183955192565918,
0.2815224528312683,
0.09994872659444809,
0.05519909784197807,
-0.1643676608800888,
-0.005327310413122177,
-0.1478884220123291,
0.06493791192770004,
-0.2525985836982727,
-0.21976351737976074,
0.09494169056415558,
-0.26187562942504883,
0.04927634447813034,
-0.2654641270637512,
-0.2644869089126587,
-0.35072043538093567,
0.057846907526254654,
0.3458441495895386,
0.230762779712677,
0.4740200638771057,
-0.26858195662498474,
-0.07031440734863281,
-0.15815237164497375,
-0.18353523313999176,
0.0014246171340346336,
0.3380470275878906,
0.17912784218788147,
0.0468657910823822,
0.037232235074043274,
0.15754389762878418,
-0.40537071228027344,
0.17257502675056458,
-0.09810066223144531,
-0.0803115963935852,
-0.19135357439517975,
0.04618894308805466,
0.0541718453168869,
-0.12078408896923065,
0.2979145050048828,
0.4182402789592743,
-0.07981114089488983,
0.05355758219957352,
-0.11100699752569199,
-0.5214463472366333,
0.2054065763950348,
-0.6085333824157715,
-0.15372943878173828,
0.10543685406446457,
0.30488693714141846,
-0.22721648216247559,
0.13807570934295654,
-0.4638040065765381,
0.25318941473960876,
0.02483828365802765,
-0.12345420569181442,
-0.34445348381996155,
0.16837447881698608,
-0.29855063557624817,
-0.13778157532215118,
-0.08921711891889572,
0.44647058844566345,
0.19694015383720398,
-0.3050902783870697,
0.11707785725593567,
-0.28424179553985596
] |
https://github.com/huggingface/datasets/issues/347 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa') | Since #481 we shouldn't have other issues with encodings as they need to be set to "utf-8" be default.
Closing this one, but feel free to re-open if you gave other questions | ![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
| 32 | 'cp950' codec error from load_dataset('xtreme', 'tydiqa')
![image](https://user-images.githubusercontent.com/50871412/86744744-67481680-c06c-11ea-8612-b77eba92a392.png)
I guess the error is related to python source encoding issue that my PC is trying to decode the source code with wrong encoding-decoding tools, perhaps :
https://www.python.org/dev/peps/pep-0263/
I guess the error was triggered by the code " module = importlib.import_module(module_path)" at line 57 in the source code: nlp/src/nlp/load.py / (https://github.com/huggingface/nlp/blob/911d5596f9b500e39af8642fe3d1b891758999c7/src/nlp/load.py#L51)
Any ideas?
p.s. tried the same code on colab, that runs perfectly
Since #481 we shouldn't have other issues with encodings as they need to be set to "utf-8" be default.
Closing this one, but feel free to re-open if you gave other questions | [
-0.29207655787467957,
-0.11546686291694641,
-0.048505134880542755,
0.1429702639579773,
0.3976852297782898,
-0.13868512213230133,
-0.029937978833913803,
0.2073104828596115,
-0.3486035466194153,
0.11078833043575287,
0.17416375875473022,
0.4716804325580597,
0.02207275852560997,
0.3367837965488434,
0.2393408566713333,
-0.022137880325317383,
0.03464402258396149,
0.28122052550315857,
-0.03621823340654373,
-0.042160794138908386,
-0.27051448822021484,
0.17115922272205353,
-0.06596606969833374,
-0.017061449587345123,
-0.39972490072250366,
-0.012458285316824913,
0.048694632947444916,
0.29743239283561707,
-0.3648318350315094,
-0.47515615820884705,
0.1951904594898224,
0.011911476030945778,
0.13591402769088745,
0.259455144405365,
-0.00010118856152985245,
-0.0771029144525528,
0.33848142623901367,
-0.23746657371520996,
-0.07268267124891281,
-0.22146286070346832,
-0.21621444821357727,
-0.3395411968231201,
0.09974139928817749,
-0.15816085040569305,
-0.046024881303310394,
0.28715336322784424,
0.05476986616849899,
-0.026453010737895966,
0.49079787731170654,
0.2225216031074524,
0.33611762523651123,
0.1082955002784729,
-0.08713733404874802,
0.09709282219409943,
0.038386158645153046,
0.15362530946731567,
-0.08105921000242233,
0.40453603863716125,
0.2657889723777771,
-0.24891388416290283,
0.1300012469291687,
0.3025204837322235,
-0.15473982691764832,
-0.15835797786712646,
0.04553496465086937,
0.00507290568202734,
-0.07711254805326462,
-0.4147149920463562,
0.07863578200340271,
0.15391957759857178,
0.1933072805404663,
-0.3020574748516083,
-0.05591895431280136,
0.09198976308107376,
0.10050755739212036,
-0.5315512418746948,
0.24143004417419434,
0.28929123282432556,
-0.26209065318107605,
0.09326526522636414,
-0.0564308762550354,
0.10548046231269836,
0.05199982225894928,
-0.04318991303443909,
0.032556504011154175,
0.13273587822914124,
-0.11925801634788513,
-0.12432178109884262,
0.13174384832382202,
0.0007685646414756775,
0.1545882672071457,
0.08589489012956619,
-0.20291411876678467,
0.21092109382152557,
-0.13494816422462463,
-0.10167240351438522,
-0.11939335614442825,
-0.0037287920713424683,
-0.07989543676376343,
-0.14570868015289307,
0.56182461977005,
0.15374493598937988,
-0.052367568016052246,
0.32369932532310486,
0.12995870411396027,
0.06671847403049469,
-0.19190570712089539,
0.19378723204135895,
0.2311996966600418,
0.04842696711421013,
0.1330804079771042,
0.06268062442541122,
-0.17342650890350342,
-0.20257528126239777,
-0.3286462426185608,
0.25847333669662476,
0.1405031830072403,
-0.1802663952112198,
-0.3870389759540558,
0.08654055744409561,
0.07746496051549911,
0.11443337798118591,
0.08003593236207962,
0.1966683566570282,
0.21502302587032318,
0.3200761675834656,
-0.031015241518616676,
0.26615798473358154,
-0.34057193994522095,
-0.30020371079444885,
-0.15360517799854279,
0.2318953275680542,
-0.4263068437576294,
-0.1337781399488449,
0.15558487176895142,
-0.01036524772644043,
0.15589457750320435,
0.20737287402153015,
0.16980774700641632,
-0.12404458969831467,
0.06677967309951782,
-0.07249821722507477,
0.08798705786466599,
0.1300012618303299,
-0.0004069022834300995,
0.09703608602285385,
0.16069722175598145,
-0.2576761841773987,
-0.09560111910104752,
0.06968716531991959,
-0.4069743752479553,
-0.02010136842727661,
-0.052261948585510254,
0.3179689943790436,
-0.0753246396780014,
-0.04666835814714432,
-0.4660203158855438,
0.1913832724094391,
0.1194683313369751,
-0.3060780465602875,
0.12381827086210251,
-0.169136643409729,
-0.06261199712753296,
-0.17087219655513763,
0.15835101902484894,
0.42471373081207275,
-0.4670228958129883,
0.0496591180562973,
0.22118331491947174,
-0.0012432653456926346,
0.36959654092788696,
0.058759577572345734,
-0.15650613605976105,
-0.14289209246635437,
-0.13305051624774933,
-0.00472056120634079,
0.31988516449928284,
-0.3632707893848419,
-0.20363911986351013,
0.2700953483581543,
-0.0475943461060524,
-0.030683686956763268,
-0.017388008534908295,
-0.010635131038725376,
0.05301473289728165,
-0.18642865121364594,
0.09728965163230896,
0.4720689058303833,
0.004976699128746986,
0.29728588461875916,
-0.29080405831336975,
-0.21389837563037872,
0.14087752997875214,
0.09191949665546417,
-0.22115571796894073,
-0.20594611763954163,
0.15340971946716309,
0.3134854733943939,
0.24277397990226746,
-0.07707935571670532,
-0.2891997992992401,
0.16309049725532532,
0.26968908309936523,
-0.2634693384170532,
-0.18510739505290985,
0.23209819197654724,
0.07849565148353577,
-0.03569493442773819,
-0.39019525051116943,
0.2268240600824356,
-0.24396862089633942,
-0.13089419901371002,
-0.09365801513195038,
0.023181645199656487,
-0.4545508921146393,
-0.2627990245819092,
0.2949182987213135,
-0.004935599863529205,
-0.1328275352716446,
0.011229477822780609,
-0.18475013971328735,
0.2601156234741211,
0.0009447913616895676,
-0.03353152051568031,
-0.23781992495059967,
0.1849806010723114,
-0.17970965802669525,
-0.26753103733062744,
0.28699320554733276,
0.2790135443210602,
0.12912389636039734,
-0.1447092443704605,
-0.15728217363357544,
0.2860489785671234,
0.012483570724725723,
0.4131283760070801,
-0.2609884440898895,
-0.2436148077249527,
0.5184405446052551,
-0.5575988292694092,
0.07000362128019333,
0.45449942350387573,
0.19279725849628448,
-0.1603338122367859,
0.2434358298778534,
0.2702000141143799,
-0.052384328097105026,
-0.05499663203954697,
0.041218362748622894,
-0.13273639976978302,
0.15048807859420776,
0.024140525609254837,
0.04690612107515335,
-0.1603643298149109,
0.36268940567970276,
0.6080378890037537,
0.2547619640827179,
-0.04875287413597107,
-0.12869368493556976,
0.11229495704174042,
0.47383469343185425,
-0.010347964242100716,
-0.0013966560363769531,
0.032643161714076996,
0.08487968891859055,
-0.16633737087249756,
0.10383465886116028,
0.05034434422850609,
0.12577930092811584,
-0.034434787929058075,
-0.2082015872001648,
0.20093455910682678,
-0.0656059980392456,
-0.21054492890834808,
0.16005781292915344,
-0.10110083222389221,
-0.011589214205741882,
0.022415190935134888,
0.11007073521614075,
0.024963367730379105,
-0.3192925751209259,
-0.13977409899234772,
0.023509787395596504,
0.09397324174642563,
-0.25004199147224426,
0.26585063338279724,
-0.4543832242488861,
-0.4244675040245056,
-0.1767522394657135,
0.0882074385881424,
-0.20569364726543427,
-0.0796072706580162,
0.010361354798078537,
-0.07776978611946106,
0.06701686978340149,
0.29210978746414185,
-0.16475889086723328,
-0.004244029521942139,
-0.1235998347401619,
-0.09897809475660324,
-0.011789709329605103,
-0.18259002268314362,
-0.21222367882728577,
0.1677800714969635,
0.44138041138648987,
-0.039840564131736755,
0.1024448424577713,
-0.38167962431907654,
0.06469595432281494,
0.2964729070663452,
-0.3084111511707306,
0.2883991599082947,
-0.258162260055542,
0.11062084883451462,
-0.001071639358997345,
0.0948401466012001,
-0.05606624111533165,
-0.3148556649684906,
0.2171671986579895,
-0.11989563703536987,
-0.09713064879179001,
0.11697231233119965,
-0.04591066390275955,
-0.19619187712669373,
-0.2785630226135254,
0.06421716511249542,
-0.4410557150840759,
-0.3425579369068146,
-0.202386274933815,
0.1259264349937439,
0.09291601181030273,
0.41566166281700134,
0.20454996824264526,
0.09871853142976761,
0.1759500503540039,
-0.08513850718736649,
-0.13316874206066132,
-0.3334025740623474,
0.26933184266090393,
-0.3517210781574249,
-0.4344564378261566,
-0.00007245317101478577,
-0.012158873490989208,
0.5023622512817383,
-0.186982661485672,
-0.2606024146080017,
-0.10262894630432129,
-0.06708375364542007,
0.05553523823618889,
-0.014421414583921432,
0.1379837691783905,
-0.032457366585731506,
-0.0005475752986967564,
-0.06401664763689041,
-0.1284191906452179,
0.03122088313102722,
-0.04553533345460892,
0.031409263610839844,
0.343304842710495,
-0.08907938748598099,
0.16888752579689026,
-0.20431336760520935,
0.07036492973566055,
0.1695311963558197,
0.08275529742240906,
0.6934221982955933,
-0.0739770382642746,
0.4205707013607025,
-0.1995117962360382,
-0.04815872758626938,
0.14158222079277039,
-0.12069159746170044,
-0.06351199746131897,
0.18511302769184113,
-0.04921168088912964,
-0.28642627596855164,
-0.33367323875427246,
0.055152956396341324,
-0.22856366634368896,
-0.2171085774898529,
0.09991253912448883,
0.16522341966629028,
-0.014346353709697723,
0.012988518923521042,
0.11714430898427963,
0.08837361633777618,
-0.2286766767501831,
-0.014451725408434868,
0.1805541217327118,
-0.17515698075294495,
0.1710323840379715,
-0.28696054220199585,
-0.391489177942276,
-0.19153034687042236,
0.08006208389997482,
0.1745443493127823,
0.2313796877861023,
-0.08024211972951889,
0.07306727766990662,
0.13447436690330505,
-0.15446487069129944,
0.1718643307685852,
0.12570755183696747,
0.030781133100390434,
0.09542423486709595,
0.10998839139938354,
0.05952177196741104,
-0.05459509789943695,
-0.233091339468956,
0.12479835003614426,
0.19946886599063873,
-0.22050988674163818,
-0.16889521479606628,
0.025904718786478043,
0.03391038998961449,
0.3165856897830963,
-0.05891689285635948,
0.156226247549057,
-0.47665953636169434,
-0.6225418448448181,
-0.10871721059083939,
-0.19974160194396973,
0.22008495032787323,
0.22961248457431793,
-0.1289588212966919,
-0.04886432737112045,
0.04386897012591362,
-0.2836996912956238,
0.25123435258865356,
0.5140658617019653,
0.4233030080795288,
0.12116079777479172,
-0.022625252604484558,
-0.19032202661037445,
-0.1330404430627823,
0.18969514966011047,
0.7450619339942932,
0.036370899528265,
-0.20973286032676697,
0.1391441971063614,
-0.17708070576190948,
0.250760018825531,
0.29996782541275024,
-0.04070483148097992,
-0.17531290650367737,
-0.16709332168102264,
-0.07529594004154205,
-0.19167938828468323,
0.2307232916355133,
0.23406954109668732,
0.08133388310670853,
-0.5356982946395874,
-0.4480481743812561,
0.5573654174804688,
-0.05041678622364998,
0.17269094288349152,
0.14198333024978638,
-0.09036926925182343,
-0.3141258955001831,
0.24117599427700043,
0.078397735953331,
0.9852368235588074,
0.21123558282852173,
0.219021275639534,
0.3602869212627411,
0.1238725483417511,
0.1683184951543808,
-0.07529087364673615,
0.19400154054164886,
-0.31836238503456116,
-0.1474906951189041,
0.02800864912569523,
0.15005262196063995,
0.1256142258644104,
0.07914761453866959,
-0.3388415277004242,
0.10871190577745438,
-0.04238284379243851,
-0.2682112753391266,
0.10928644239902496,
0.2032424956560135,
-0.225739985704422,
-0.18242529034614563,
-0.631676435470581,
0.27128902077674866,
-0.06995458900928497,
0.036847833544015884,
-0.1795906126499176,
-0.21817395091056824,
-0.011334720999002457,
-0.33945512771606445,
-0.18566396832466125,
0.3587392568588257,
-0.4648072421550751,
0.16566482186317444,
-0.12569350004196167,
-0.6603447794914246,
0.0589870922267437,
0.1018805131316185,
0.1422090232372284,
0.17058202624320984,
-0.03163084387779236,
0.2886004149913788,
0.32898372411727905,
-0.03330503776669502,
0.053852565586566925,
0.1803852617740631,
0.11644349992275238,
-0.2379680871963501,
-0.04088960587978363,
0.21682950854301453,
0.11365257203578949,
-0.05073022097349167,
0.2746548652648926,
-0.013909004628658295,
-0.1687859296798706,
-0.042546726763248444,
-0.28546142578125,
-0.11968997120857239,
0.1908647119998932,
-0.058659087866544724,
0.2239396721124649,
-0.027934782207012177,
-0.22309157252311707,
-0.0733642503619194,
0.19149431586265564,
-0.29249894618988037,
-0.16458553075790405,
0.06717551499605179,
-0.05645646154880524,
-0.10511253774166107,
0.4461653530597687,
0.18427883088588715,
-0.20753365755081177,
-0.15132814645767212,
0.24361512064933777,
-0.07544318586587906,
-0.5386856198310852,
-0.006628961302340031,
0.14108295738697052,
-0.15344840288162231,
0.003484973916783929,
0.68039870262146,
-0.026904605329036713,
-0.05686905235052109,
0.1441962867975235,
-0.3272313177585602,
-0.3443569839000702,
0.015019610524177551,
-0.11621098220348358,
0.07491251081228256,
0.08794061094522476,
0.34699249267578125,
0.053947366774082184,
-0.0673547312617302,
-0.3985673785209656,
0.06626857817173004,
-0.14266791939735413,
0.04884476214647293,
0.1289653182029724,
-0.12151449173688889,
0.10714558511972427,
0.10479462146759033,
0.20299628376960754,
0.3219655156135559,
-0.09791169315576553,
-0.2832180857658386,
-0.1359746754169464,
0.05657126009464264,
0.001705355942249298,
-0.33794882893562317,
-0.08891049027442932,
0.06670892983675003,
-0.08586108684539795,
0.007173884194344282,
0.14235277473926544,
0.052430443465709686,
0.09311656653881073,
0.1324237734079361,
-0.24617443978786469,
0.15864108502864838,
0.10539880394935608,
0.1628992110490799,
-0.06963473558425903,
0.5597637891769409,
0.163688525557518,
0.06287491321563721,
0.0059855044819414616,
-0.025374282151460648,
-0.044714853167533875,
0.05055418983101845,
-0.23766912519931793,
0.10622783750295639,
0.10446299612522125,
-0.3597467541694641,
0.4122334122657776,
0.05892942100763321,
-0.01631166599690914,
0.45703256130218506,
-0.24969357252120972,
-0.09783043712377548,
0.35050350427627563,
0.26551786065101624,
-0.3189130425453186,
0.07381240278482437,
-0.28432637453079224,
-0.01887694001197815,
-0.0421065017580986,
0.34878987073898315,
0.20893707871437073,
-0.11456461250782013,
0.2774544358253479,
-0.04040602594614029,
0.3768451511859894,
0.13938257098197937,
0.3384260833263397,
0.31990599632263184,
-0.06332173198461533,
0.176777645945549,
-0.14491349458694458,
0.14437636733055115,
-0.061978839337825775,
-0.006591074168682098,
-0.6218460202217102,
0.15659263730049133,
0.02023150399327278,
0.06158504635095596,
0.013064473867416382,
-0.23057697713375092,
-0.1371745467185974,
-0.09707009792327881,
-0.10797092318534851,
0.3458488881587982,
0.1533374786376953,
0.4684999883174896,
-0.3881826400756836,
-0.0618441067636013,
-0.09995240718126297,
0.20834943652153015,
-0.10234471410512924,
0.03809725493192673,
0.016767051070928574,
-0.026050075888633728,
-0.3448733985424042,
0.12415187060832977,
-0.11061963438987732,
0.11901488900184631,
-0.048175543546676636,
0.31284433603286743,
-0.10804271697998047,
-0.0022139400243759155,
0.010591898113489151,
-0.013305068016052246,
0.06520822644233704,
-0.09035458415746689,
0.5817040205001831,
0.33650606870651245,
0.16596809029579163,
0.29554083943367004,
0.16374939680099487,
0.5992541909217834,
0.41942834854125977,
-0.19850550591945648,
0.019741278141736984,
-0.15948939323425293,
0.038660988211631775,
0.03853297606110573,
0.11913634091615677,
0.35073405504226685,
0.35481488704681396,
0.22146974503993988,
0.22910574078559875,
-0.2119886875152588,
-0.15891258418560028,
0.2516641914844513,
0.01980673335492611,
0.10843434929847717,
0.18208914995193481,
-0.1276630461215973,
0.22857213020324707,
-0.506355881690979,
-0.10436875373125076,
-0.4751026928424835,
0.28436318039894104,
0.3184300363063812,
0.025130199268460274,
0.014588862657546997,
-0.18817326426506042,
0.14906804263591766,
0.011760354973375797,
0.5455562472343445,
0.24620036780834198,
0.08120036870241165,
-0.10533593595027924,
-0.09417177736759186,
-0.7023866772651672,
0.29002609848976135,
0.03589813783764839,
-0.42201560735702515,
-0.2040269821882248,
-0.2144608199596405,
0.058692190796136856,
0.37866753339767456,
0.05760248750448227,
0.2639370560646057,
0.0873149111866951,
0.04272055625915527,
-0.12064583599567413,
0.05994875729084015,
-0.1676303893327713,
0.07281532138586044,
-0.2522140145301819,
-0.23383694887161255,
0.025285523384809494,
-0.3026726543903351,
0.16652685403823853,
-0.2468516081571579,
-0.3811712861061096,
-0.44465041160583496,
0.09482236951589584,
0.23527543246746063,
0.18976323306560516,
0.3141135275363922,
-0.28098300099372864,
-0.28913140296936035,
-0.05940395966172218,
-0.25593990087509155,
-0.08499519526958466,
0.3175143599510193,
0.179906964302063,
0.13959477841854095,
0.115879587829113,
0.14968077838420868,
-0.45399588346481323,
0.36918163299560547,
-0.040751565247774124,
-0.15030437707901,
-0.2544979155063629,
0.04006217420101166,
0.001604132354259491,
-0.015412268228828907,
0.13734012842178345,
0.3708093464374542,
-0.04366034269332886,
0.10419441014528275,
-0.19640374183654785,
-0.494351327419281,
0.28803369402885437,
-0.48737791180610657,
-0.1555863618850708,
0.14631099998950958,
0.1133798286318779,
-0.15051618218421936,
0.09109517186880112,
-0.5280265808105469,
0.23671597242355347,
-0.01128943171352148,
-0.14854931831359863,
-0.2645406424999237,
0.2816728353500366,
-0.2627761662006378,
-0.09582842141389847,
-0.07956534624099731,
0.32302936911582947,
0.1931321918964386,
-0.10979228466749191,
0.039676349610090256,
-0.24066779017448425
] |
https://github.com/huggingface/datasets/issues/345 | Supporting documents in ELI5 | Hi @saverymax ! For licensing reasons, the original team was unable to release pre-processed CommonCrawl documents. Instead, they provided a script to re-create them from a CommonCrawl dump, but it unfortunately requires access to a medium-large size cluster:
https://github.com/facebookresearch/ELI5#downloading-support-documents-from-the-commoncrawl
In order to make the task accessible to people who may not have access to this kind of infrastructure, we suggest to use Wikipedia as a knowledge source rather than the full CommonCrawl. The following blog post shows how you can create Wikipedia support documents and get a performance that is on par with a system that uses CommonCrawl pages.
https://yjernite.github.io/lfqa.html#task_description
Hope that helps, using ElasticSearch to index Wiki40b and create the documents should take about 4 hours. Let us know if you have any trouble with the blog post though! | I was attempting to use the ELI5 dataset, when I realized that huggingface does not provide the supporting documents (the source documents from the common crawl). Without the supporting documents, this makes the dataset about as useful for my project as a block of cheese, or some other more apt metaphor. According to facebook, the entire document collection is quite large. However, it would still be helpful to at least include a subset of the supporting documents i.e., having some data is better than having a block of cheese, in my case at least.
If you choose not to include them, it would be helpful to have documentation mentioning this specifically. It is especially confusing because the hf nlp ELI5 dataset has the key `'document'` but there are no documents to be found :( | 130 | Supporting documents in ELI5
I was attempting to use the ELI5 dataset, when I realized that huggingface does not provide the supporting documents (the source documents from the common crawl). Without the supporting documents, this makes the dataset about as useful for my project as a block of cheese, or some other more apt metaphor. According to facebook, the entire document collection is quite large. However, it would still be helpful to at least include a subset of the supporting documents i.e., having some data is better than having a block of cheese, in my case at least.
If you choose not to include them, it would be helpful to have documentation mentioning this specifically. It is especially confusing because the hf nlp ELI5 dataset has the key `'document'` but there are no documents to be found :(
Hi @saverymax ! For licensing reasons, the original team was unable to release pre-processed CommonCrawl documents. Instead, they provided a script to re-create them from a CommonCrawl dump, but it unfortunately requires access to a medium-large size cluster:
https://github.com/facebookresearch/ELI5#downloading-support-documents-from-the-commoncrawl
In order to make the task accessible to people who may not have access to this kind of infrastructure, we suggest to use Wikipedia as a knowledge source rather than the full CommonCrawl. The following blog post shows how you can create Wikipedia support documents and get a performance that is on par with a system that uses CommonCrawl pages.
https://yjernite.github.io/lfqa.html#task_description
Hope that helps, using ElasticSearch to index Wiki40b and create the documents should take about 4 hours. Let us know if you have any trouble with the blog post though! | [
0.08067573606967926,
-0.14141523838043213,
-0.13081790506839752,
-0.09870068728923798,
-0.3395783305168152,
-0.02161441743373871,
-0.2173517793416977,
0.21030385792255402,
0.05030123516917229,
-0.02591368556022644,
0.1280895173549652,
-0.2411942481994629,
0.10086899250745773,
0.14274124801158905,
-0.24458074569702148,
0.14619505405426025,
0.027654774487018585,
0.2660849690437317,
0.24168649315834045,
-0.1947772353887558,
-0.017842674627900124,
0.19763699173927307,
0.143204003572464,
-0.17161516845226288,
-0.3346637487411499,
0.2507559657096863,
-0.2730870842933655,
0.10424146056175232,
-0.23726163804531097,
-0.06624069064855576,
0.10239407420158386,
0.23783080279827118,
-0.03625592589378357,
-0.05653918534517288,
-0.00010823657066794112,
0.015139207243919373,
0.0998261421918869,
-0.1303936094045639,
-0.07171648740768433,
0.035236090421676636,
0.36201784014701843,
-0.44770297408103943,
0.13845929503440857,
-0.1620796024799347,
-0.30593937635421753,
-0.12026365846395493,
0.2798629105091095,
0.3556279242038727,
0.3528573513031006,
-0.004644368309527636,
0.19483976066112518,
0.01358741894364357,
0.1496863216161728,
0.03551207110285759,
0.34263020753860474,
0.3699352741241455,
-0.2522279918193817,
-0.26256850361824036,
0.2649267613887787,
-0.23229318857192993,
0.0697336494922638,
0.3647729158401489,
0.08754698187112808,
-0.11299769580364227,
0.3730437457561493,
0.10214345902204514,
0.04699030518531799,
-0.6132783889770508,
0.25959452986717224,
0.2510032057762146,
0.3036837875843048,
0.27036577463150024,
-0.12073326855897903,
-0.30472156405448914,
-0.2468191534280777,
0.2858926057815552,
0.195595845580101,
0.21770226955413818,
-0.15028688311576843,
0.15116438269615173,
0.03148024156689644,
-0.11847461014986038,
-0.018271949142217636,
0.3093069791793823,
0.1452450454235077,
0.1628558337688446,
-0.0881979763507843,
-0.1460660696029663,
0.21862882375717163,
-0.14490574598312378,
-0.6590021252632141,
0.12207654863595963,
0.20565961301326752,
0.13404534757137299,
0.04849255457520485,
-0.1340939700603485,
0.17475688457489014,
0.13774019479751587,
0.5864346027374268,
0.05961550027132034,
-0.08664208650588989,
0.1273575872182846,
-0.040450792759656906,
0.04658670723438263,
0.08889979124069214,
0.060240019112825394,
0.008747756481170654,
-0.2209206521511078,
0.257936954498291,
0.11233821511268616,
-0.0838562473654747,
0.004638891667127609,
0.06271224468946457,
0.3078448176383972,
-0.3241540789604187,
-0.5395178198814392,
0.12017540633678436,
-0.1676555722951889,
-0.1507181078195572,
0.15689992904663086,
-0.16855937242507935,
0.025462595745921135,
-0.2234402298927307,
0.5335277915000916,
0.04018004238605499,
-0.005582265555858612,
-0.013697978109121323,
0.03869529813528061,
-0.19218425452709198,
-0.11287610232830048,
-0.07311893999576569,
-0.16883239150047302,
-0.10971686244010925,
0.199876070022583,
0.19954775273799896,
-0.33108580112457275,
0.5541298389434814,
-0.21962089836597443,
0.20416297018527985,
0.09775425493717194,
0.19321656227111816,
0.030117277055978775,
0.2535434067249298,
0.353828102350235,
0.15451224148273468,
0.039450399577617645,
-0.048793863505125046,
-0.15945753455162048,
-0.24830427765846252,
-0.24792730808258057,
0.06972535699605942,
-0.3629743456840515,
-0.4516449570655823,
0.2046123445034027,
0.15057028830051422,
0.2050662338733673,
0.023099415004253387,
0.5333044528961182,
-0.31464099884033203,
-0.10384593904018402,
0.1686955988407135,
0.3648095726966858,
-0.3038473427295685,
-0.10205500572919846,
0.4092986583709717,
0.251921683549881,
0.400988906621933,
-0.372968465089798,
-0.060662642121315,
0.33356115221977234,
-0.09778372198343277,
0.3365207612514496,
-0.06586967408657074,
-0.2021235227584839,
-0.03327295929193497,
0.352955162525177,
0.2694999575614929,
-0.24277830123901367,
-0.5641851425170898,
0.25916096568107605,
-0.002453826367855072,
0.250882089138031,
0.0845528170466423,
0.0684903934597969,
0.0826147049665451,
-0.218955397605896,
0.024945437908172607,
0.28494948148727417,
0.051959700882434845,
0.07206379622220993,
-0.3615596890449524,
-0.41187331080436707,
0.027024375274777412,
0.1433938443660736,
-0.06675213575363159,
-0.2504669427871704,
0.0029694214463233948,
-0.06456703692674637,
-0.025444619357585907,
-0.07729372382164001,
0.152787446975708,
0.38301408290863037,
0.1348634660243988,
0.199021577835083,
0.10526616871356964,
-0.019033282995224,
-0.37138471007347107,
0.2328282594680786,
-0.09672170877456665,
0.4336290657520294,
0.17363716661930084,
-0.3850111961364746,
-0.08039035648107529,
-0.07440882176160812,
-0.10500569641590118,
-0.44365066289901733,
0.2301824390888214,
-0.10272617638111115,
0.28576236963272095,
0.09180787205696106,
-0.028229720890522003,
-0.2864753007888794,
-0.2602207064628601,
0.07109437882900238,
-0.16514034569263458,
0.33156219124794006,
-0.3213323652744293,
0.03425310179591179,
0.07824871689081192,
0.16143058240413666,
-0.12425561994314194,
0.11050721257925034,
0.1942819356918335,
-0.0071295760571956635,
-0.35513535141944885,
-0.03792828321456909,
0.4002787470817566,
0.766584575176239,
0.27764368057250977,
-0.3818287253379822,
0.10056142508983612,
0.1995646059513092,
-0.03532093018293381,
-0.1732579618692398,
-0.31459376215934753,
0.08892757445573807,
0.2785702049732208,
0.320039838552475,
0.1890920102596283,
-0.057133518159389496,
0.03825616091489792,
0.09031859040260315,
-0.15579363703727722,
-0.14991265535354614,
0.37716105580329895,
-0.1340331733226776,
0.06392298638820648,
0.0019989758729934692,
-0.14822468161582947,
0.41387754678726196,
0.17230316996574402,
0.10562287271022797,
0.19207978248596191,
0.5266594290733337,
-0.138230562210083,
-0.47186174988746643,
-0.17152561247348785,
-0.39718857407569885,
0.016445539891719818,
0.22034376859664917,
0.19134312868118286,
0.027808723971247673,
0.13254870474338531,
0.06550337374210358,
0.10500092059373856,
0.008390836417675018,
-0.002898159436881542,
0.07285364717245102,
0.22630584239959717,
0.22096970677375793,
-0.2642669975757599,
-0.10244603455066681,
-0.31600749492645264,
-0.0796579122543335,
0.1014832854270935,
-0.009238075464963913,
0.22131562232971191,
-0.2507491707801819,
0.2634437680244446,
-0.07818944752216339,
-0.41474151611328125,
-0.3153242766857147,
0.2948235273361206,
0.11356054246425629,
-0.15211831033229828,
0.09333372116088867,
-0.035907305777072906,
0.13667483627796173,
-0.1347663700580597,
0.20003217458724976,
-0.4448850750923157,
-0.126164972782135,
-0.19272184371948242,
0.08642187714576721,
-0.04539428651332855,
0.48965561389923096,
0.1996760368347168,
-0.19186680018901825,
-0.08912615478038788,
-0.6268866062164307,
-0.6305289268493652,
0.28470027446746826,
-0.13276785612106323,
0.10559786856174469,
0.24700742959976196,
0.34812116622924805,
-0.3925287127494812,
-0.4493710398674011,
0.26277992129325867,
-0.44447818398475647,
-0.19997382164001465,
-0.2748994529247284,
-0.19031281769275665,
0.022515036165714264,
0.04938342794775963,
-0.1188693419098854,
-0.2579319477081299,
-0.266681045293808,
0.3291162848472595,
0.27624306082725525,
-0.06096048653125763,
-0.045890986919403076,
0.020552802830934525,
0.12517665326595306,
0.2258080095052719,
0.26265740394592285,
-0.293674111366272,
-0.047449879348278046,
0.2918272614479065,
-0.3029046356678009,
-0.2832893133163452,
-0.037007831037044525,
-0.11259426921606064,
-0.23248350620269775,
-0.1866958737373352,
-0.35699206590652466,
-0.3837316632270813,
-0.1370202749967575,
0.05488354340195656,
-0.026495404541492462,
0.08820389956235886,
0.19683974981307983,
-0.010737594217061996,
-0.20333394408226013,
0.1613604724407196,
-0.029212292283773422,
-0.03836461156606674,
0.08661535382270813,
0.007527105510234833,
-0.2022758424282074,
0.20601868629455566,
0.06293438374996185,
0.7775629758834839,
0.2560122311115265,
0.09571421891450882,
0.3554355502128601,
0.09650100767612457,
0.30238810181617737,
-0.33070388436317444,
-0.04816786199808121,
0.08208012580871582,
0.026123031973838806,
0.10005126893520355,
0.5637345910072327,
0.2327353060245514,
-0.1557636260986328,
-0.10261457413434982,
-0.5225762128829956,
-0.3188146948814392,
-0.26930075883865356,
0.23238712549209595,
0.23230566084384918,
0.25146427750587463,
-0.04276422783732414,
0.03134934604167938,
0.04488278925418854,
-0.4328538179397583,
0.171064555644989,
0.1494753360748291,
0.06562047451734543,
0.06721623986959457,
-0.22742989659309387,
0.028674880042672157,
-0.9157418012619019,
0.2903386950492859,
0.12725099921226501,
-0.22618703544139862,
-0.20387300848960876,
0.008620589971542358,
0.16730788350105286,
-0.16562356054782867,
0.34566956758499146,
-0.2442617267370224,
-0.22963587939739227,
-0.22170785069465637,
-0.07722246646881104,
-0.11847911030054092,
0.07766163349151611,
0.07784126698970795,
0.0282880961894989,
0.37598615884780884,
-0.009069018065929413,
-0.6138383150100708,
-0.16719000041484833,
0.2821725904941559,
-0.014617230743169785,
-0.04457681626081467,
0.09697219729423523,
-0.35966941714286804,
-0.45284298062324524,
-0.5167996883392334,
-0.12170881778001785,
0.2898422181606293,
-0.1836680769920349,
-0.12710489332675934,
0.1153053343296051,
0.16217628121376038,
0.1249372735619545,
0.10959713160991669,
0.14976373314857483,
0.07825251668691635,
0.039213795214891434,
0.01770329847931862,
0.4854702949523926,
0.1623133420944214,
0.10959375649690628,
0.49877506494522095,
0.010283049196004868,
-0.029030129313468933,
0.08632940798997879,
0.0926336720585823,
0.050737179815769196,
0.39443573355674744,
0.4012105464935303,
0.061324890702962875,
0.2153005748987198,
0.1702979952096939,
-0.18118754029273987,
-0.02734273113310337,
0.49374932050704956,
-0.1580030918121338,
-0.10151443630456924,
0.06344857811927795,
0.4403323531150818,
-0.02287166193127632,
0.052025213837623596,
-0.12052805721759796,
0.8181390166282654,
0.0034937835298478603,
0.6203835010528564,
0.024509482085704803,
1.0834470987319946,
0.07121357321739197,
0.23550789058208466,
-0.0662088617682457,
0.10222336649894714,
0.4590826630592346,
-0.5924047231674194,
-0.07199334353208542,
-0.1716344654560089,
-0.3579326272010803,
-0.0282046627253294,
0.20582938194274902,
-0.24240931868553162,
0.09435451030731201,
-0.26663365960121155,
0.1641508787870407,
0.1665957272052765,
0.0792626291513443,
-0.13238376379013062,
0.5353420972824097,
-0.20926465094089508,
-0.24266991019248962,
-0.293198823928833,
0.1606058031320572,
0.1370081901550293,
0.47071847319602966,
-0.06833897531032562,
-0.02399512007832527,
-0.031056761741638184,
-0.15766678750514984,
-0.4364045262336731,
-0.08684631437063217,
-0.057171229273080826,
0.07217314839363098,
0.266709566116333,
-0.06205109506845474,
0.0479138009250164,
0.17262624204158783,
0.15905052423477173,
-0.14490315318107605,
-0.49475324153900146,
0.16097651422023773,
-0.08523982018232346,
-0.23547519743442535,
0.22177040576934814,
-0.31194639205932617,
0.31808149814605713,
-0.15704041719436646,
-0.20503991842269897,
0.24233397841453552,
-0.13655908405780792,
-0.04734933376312256,
-0.18306691944599152,
-0.26624536514282227,
-0.28321850299835205,
-0.13196615874767303,
-0.05759148672223091,
0.2548995614051819,
-0.5066125392913818,
-0.10737292468547821,
0.13608427345752716,
0.06195132061839104,
0.1497880071401596,
-0.14249449968338013,
0.38792210817337036,
-0.025430571287870407,
-0.16473107039928436,
0.4760463833808899,
-0.07330689579248428,
-0.13036495447158813,
0.3072897791862488,
0.01343359425663948,
-0.20648863911628723,
-0.019045915454626083,
-0.10870790481567383,
0.27526265382766724,
-0.2821529805660248,
-0.128625750541687,
0.14428991079330444,
-0.1705995798110962,
0.08858610689640045,
0.7039012908935547,
0.12372522801160812,
-0.12364652007818222,
-0.11769677698612213,
-0.09335220605134964,
0.10118362307548523,
0.49853354692459106,
0.05057895928621292,
0.07251078635454178,
0.0642411857843399,
-0.12729936838150024,
0.25894567370414734,
0.2433393895626068,
-0.3592050075531006,
-0.07176041603088379,
-0.43905138969421387,
0.01840713992714882,
-0.12057200074195862,
-0.1613069772720337,
0.43467697501182556,
0.2047707587480545,
0.07077503204345703,
0.09106583893299103,
-0.09331351518630981,
-0.1808377504348755,
0.08031851053237915,
0.13050535321235657,
0.10665034502744675,
0.020297106355428696,
-0.1118561327457428,
0.08985291421413422,
-0.157939612865448,
-0.31857654452323914,
0.08889393508434296,
-0.17156526446342468,
0.036023158580064774,
-0.05285433307290077,
-0.1689077764749527,
0.0717952623963356,
-0.041592493653297424,
-0.07188035547733307,
0.11634454131126404,
0.47449791431427,
0.07267836481332779,
-0.09395334124565125,
-0.20638783276081085,
-0.12616446614265442,
0.2610613703727722,
0.2690446376800537,
0.2563712000846863,
-0.23368701338768005,
0.2742328345775604,
0.19760215282440186,
-0.22726087272167206,
0.01774786226451397,
0.03604740649461746,
0.16532784700393677,
-0.1373494416475296,
0.15189430117607117,
0.11554962396621704,
0.24412357807159424,
-0.20587866008281708,
-0.09135723859071732,
0.35574132204055786,
-0.26929497718811035,
0.32803067564964294,
0.19723019003868103,
0.6575440764427185,
-0.10291644185781479,
0.2686087489128113,
0.10293473303318024,
0.14316073060035706,
-0.31983256340026855,
-0.21675854921340942,
-0.3446308374404907,
0.06438107788562775,
-0.03582218661904335,
-0.15021735429763794,
0.0252591110765934,
0.6202684044837952,
-0.1843101531267166,
0.0242389515042305,
0.23005227744579315,
-0.21492165327072144,
0.42024463415145874,
0.25702521204948425,
-0.021660463884472847,
0.18261940777301788,
0.16645558178424835,
0.28916406631469727,
0.3017505407333374,
-0.09998078644275665,
0.056487031280994415,
0.09332213550806046,
-0.010217182338237762,
-0.41024988889694214,
0.34124279022216797,
0.04403303563594818,
-0.044978540390729904,
0.21219514310359955,
-0.29779908061027527,
-0.17843079566955566,
0.11795879900455475,
-0.04047578200697899,
-0.18165555596351624,
-0.24851283431053162,
-0.12874196469783783,
0.09073395282030106,
-0.021082120016217232,
0.21863681077957153,
-0.12473299354314804,
0.6175801753997803,
-0.07108499109745026,
0.10100666433572769,
0.19108882546424866,
-0.19857847690582275,
-0.06093045696616173,
0.36120864748954773,
0.29907217621803284,
-0.08957377821207047,
-0.442096084356308,
0.18213145434856415,
0.0637870728969574,
-0.058339402079582214,
-0.18472914397716522,
0.08437792956829071,
0.2508338689804077,
-0.3955077528953552,
0.023166652768850327,
0.09828516095876694,
-0.319487601518631,
-0.5002747774124146,
-0.23299585282802582,
0.3162243068218231,
0.06248389557003975,
-0.4794466197490692,
-0.18023861944675446,
-0.029406368732452393,
-0.060603901743888855,
0.029126055538654327,
-0.38660570979118347,
0.16616763174533844,
-0.15911157429218292,
0.020647812634706497,
0.05035604536533356,
-0.2859910726547241,
0.08503757417201996,
0.08070360869169235,
0.4946763217449188,
0.37300974130630493,
0.1127118468284607,
0.05986237898468971,
-0.43127816915512085,
-0.13023361563682556,
0.1595834344625473,
-0.24667713046073914,
-0.04249519109725952,
0.4238416254520416,
0.3498508632183075,
0.2614297568798065,
0.30458909273147583,
0.02971770614385605,
-0.28741908073425293,
-0.2152041643857956,
-0.06995905935764313,
-0.09578496962785721,
0.0840473622083664,
-0.24332652986049652,
0.15076391398906708,
0.020842481404542923,
0.03742410987615585,
0.000540710985660553,
-0.23797816038131714,
0.041412271559238434,
-0.29409295320510864,
-0.021736085414886475,
-0.1969217211008072,
0.3018130958080292,
0.009993739426136017,
0.20587065815925598,
-0.17645785212516785,
-0.2507232129573822,
-0.4384669065475464,
0.03378421068191528,
0.1012854352593422,
0.059390123933553696,
0.13748501241207123,
0.01883557066321373,
-0.02537849172949791,
-0.065253347158432,
-0.11252894997596741,
-0.028135614469647408,
0.14536458253860474,
0.24257273972034454,
0.12929248809814453,
-0.2725083827972412,
-0.09873063117265701,
-0.1670645773410797,
0.14155492186546326,
0.06405896693468094,
0.40829840302467346,
-0.16555234789848328,
-0.3016101121902466,
-0.2824164628982544,
-0.15161094069480896,
0.2724367380142212,
-0.14378729462623596,
0.14198271930217743,
-0.15274208784103394,
0.12260393798351288,
0.4253348112106323,
0.0978577509522438,
-0.39776283502578735,
-0.07145442068576813,
0.11016328632831573,
0.31517162919044495,
-0.2627433240413666,
-0.2627633810043335,
0.1294187754392624,
-0.1696704477071762,
-0.24280965328216553,
-0.051626890897750854,
-0.0634540468454361,
-0.06546474248170853,
-0.20578190684318542,
-0.14553752541542053
] |
https://github.com/huggingface/datasets/issues/345 | Supporting documents in ELI5 | Hi, thanks for the quick response. The blog post is quite an interesting working example, thanks for sharing it.
Two follow-up points/questions about my original question:
1. Yes, I read that the facebook team could not share the CommonCrawl b/c of licensing reasons. They state "No, we are not allowed to host processed Reddit or CommonCrawl data," which indicates they could also not share the Reddit data for licensing reasons. But it seems that HuggingFace is able to share the Reddit data, so why not a subset of CommonCrawl?
2. Thanks for the suggestion about ElasticSearch and Wiki40b. This is good to know about performance. I definitely could do the indexing and querying myself. What I like about the ELI5 dataset though, at least what is suggested by the paper, is that to create the dataset they had already selected the top 100 web sources and made a single support document from those. Though it doesn't appear to be too sophisticated an approach, having a single support document pre-computed (without having to run the facebook code or a replacement with another dataset) is super useful for my work, especially since I'm not working on developing the latest and greatest retrieval model. Of course, I don't expect HF NLP datasets to be perfectly tailored to my use-case. I know there is overhead to any project, I'm just illustrating a use-case of ELI5 which is not possible with the data provided as-is. If it's for licensing reasons, that is perfectly acceptable a reason, and I appreciate your response. | I was attempting to use the ELI5 dataset, when I realized that huggingface does not provide the supporting documents (the source documents from the common crawl). Without the supporting documents, this makes the dataset about as useful for my project as a block of cheese, or some other more apt metaphor. According to facebook, the entire document collection is quite large. However, it would still be helpful to at least include a subset of the supporting documents i.e., having some data is better than having a block of cheese, in my case at least.
If you choose not to include them, it would be helpful to have documentation mentioning this specifically. It is especially confusing because the hf nlp ELI5 dataset has the key `'document'` but there are no documents to be found :( | 256 | Supporting documents in ELI5
I was attempting to use the ELI5 dataset, when I realized that huggingface does not provide the supporting documents (the source documents from the common crawl). Without the supporting documents, this makes the dataset about as useful for my project as a block of cheese, or some other more apt metaphor. According to facebook, the entire document collection is quite large. However, it would still be helpful to at least include a subset of the supporting documents i.e., having some data is better than having a block of cheese, in my case at least.
If you choose not to include them, it would be helpful to have documentation mentioning this specifically. It is especially confusing because the hf nlp ELI5 dataset has the key `'document'` but there are no documents to be found :(
Hi, thanks for the quick response. The blog post is quite an interesting working example, thanks for sharing it.
Two follow-up points/questions about my original question:
1. Yes, I read that the facebook team could not share the CommonCrawl b/c of licensing reasons. They state "No, we are not allowed to host processed Reddit or CommonCrawl data," which indicates they could also not share the Reddit data for licensing reasons. But it seems that HuggingFace is able to share the Reddit data, so why not a subset of CommonCrawl?
2. Thanks for the suggestion about ElasticSearch and Wiki40b. This is good to know about performance. I definitely could do the indexing and querying myself. What I like about the ELI5 dataset though, at least what is suggested by the paper, is that to create the dataset they had already selected the top 100 web sources and made a single support document from those. Though it doesn't appear to be too sophisticated an approach, having a single support document pre-computed (without having to run the facebook code or a replacement with another dataset) is super useful for my work, especially since I'm not working on developing the latest and greatest retrieval model. Of course, I don't expect HF NLP datasets to be perfectly tailored to my use-case. I know there is overhead to any project, I'm just illustrating a use-case of ELI5 which is not possible with the data provided as-is. If it's for licensing reasons, that is perfectly acceptable a reason, and I appreciate your response. | [
0.16188068687915802,
-0.045203015208244324,
-0.03878617286682129,
-0.04772553592920303,
-0.31241101026535034,
0.000239543616771698,
-0.13539724051952362,
0.13022997975349426,
-0.021919775754213333,
-0.050184622406959534,
0.09411638230085373,
-0.2651148736476898,
0.11306121200323105,
0.14438088238239288,
-0.16690626740455627,
0.18423138558864594,
0.026496082544326782,
0.24276100099086761,
0.34651893377304077,
-0.31219810247421265,
0.017246399074792862,
0.23432685434818268,
0.14438967406749725,
-0.13573114573955536,
-0.3666534125804901,
0.28333181142807007,
-0.2998782992362976,
0.17680828273296356,
-0.2238975614309311,
-0.00615529902279377,
0.06627500802278519,
0.2734149694442749,
0.029323413968086243,
-0.20470848679542542,
-0.00011439895024523139,
0.06446269154548645,
-0.09299305081367493,
-0.1426992416381836,
-0.15071582794189453,
-0.18065257370471954,
0.24313566088676453,
-0.31420838832855225,
-0.027303021401166916,
-0.09742259234189987,
-0.14866679906845093,
-0.2026413381099701,
0.23465314507484436,
0.25992467999458313,
0.3535688519477844,
-0.037487223744392395,
0.10490880906581879,
0.08206061273813248,
0.016126256436109543,
0.10203652828931808,
0.19414663314819336,
0.34053677320480347,
-0.24433434009552002,
-0.07406662404537201,
0.3869938850402832,
-0.20220820605754852,
0.06542891263961792,
0.22115105390548706,
0.05662328004837036,
-0.18232053518295288,
0.29996225237846375,
0.03824404627084732,
0.020354241132736206,
-0.6953432559967041,
0.2636003792285919,
0.35783952474594116,
0.45327889919281006,
0.2831239700317383,
-0.22131721675395966,
-0.43204984068870544,
-0.11774542182683945,
0.2731926739215851,
-0.0302482470870018,
0.3697194457054138,
-0.06381570547819138,
0.35285472869873047,
0.0016577532514929771,
-0.2023569792509079,
-0.07503408938646317,
0.36321914196014404,
0.2741091847419739,
0.056666288524866104,
-0.15079033374786377,
-0.09979858249425888,
0.12498092651367188,
0.05996256694197655,
-0.49617844820022583,
-0.02303745225071907,
0.11687660217285156,
-0.03982694074511528,
0.1816924512386322,
-0.16588124632835388,
0.09374555945396423,
0.3632126748561859,
0.6906951665878296,
0.2466045469045639,
0.03168128803372383,
-0.011936623603105545,
-0.22021837532520294,
0.05721673741936684,
0.26299697160720825,
-0.016886603087186813,
-0.06201113015413284,
-0.1783067137002945,
0.1461060345172882,
-0.031241917982697487,
0.13573026657104492,
-0.009112033993005753,
-0.04226931184530258,
0.5626631379127502,
-0.5317931175231934,
-0.5932881236076355,
0.20850932598114014,
-0.2363729476928711,
-0.19627535343170166,
0.1573072224855423,
-0.24733105301856995,
-0.04594885930418968,
-0.1888713836669922,
0.43571415543556213,
0.18794916570186615,
0.003717239946126938,
-0.3072890639305115,
0.16809439659118652,
0.007478518411517143,
-0.3712282180786133,
-0.026766888797283173,
-0.10371828079223633,
-0.18446588516235352,
0.134567528963089,
0.13963507115840912,
-0.38694480061531067,
0.6252252459526062,
-0.2365909218788147,
0.34780454635620117,
0.17963364720344543,
0.162416011095047,
-0.018536632880568504,
0.3222458064556122,
0.3538757860660553,
0.10699565708637238,
0.05278940498828888,
0.061766367405653,
-0.012231305241584778,
-0.2694576382637024,
-0.21964624524116516,
-0.00666191428899765,
-0.4560052454471588,
-0.4140787422657013,
0.05962860584259033,
0.027684800326824188,
0.23414453864097595,
0.10315143316984177,
0.5134555101394653,
-0.4354713261127472,
-0.13997574150562286,
0.21098001301288605,
0.2206297218799591,
-0.39613375067710876,
-0.23747605085372925,
0.34680306911468506,
0.29402732849121094,
0.3394906222820282,
-0.4009537696838379,
-0.05338507145643234,
0.2656387388706207,
-0.1998751163482666,
0.3898681700229645,
-0.22202736139297485,
-0.22042429447174072,
-0.004683299921452999,
0.3456553816795349,
0.34906214475631714,
-0.1972571611404419,
-0.7282793521881104,
0.24509577453136444,
0.11850056052207947,
0.3259020745754242,
0.15899398922920227,
-0.05518932640552521,
0.06238040700554848,
-0.3640519082546234,
-0.04324791580438614,
0.19654226303100586,
-0.04358646273612976,
-0.11942991614341736,
-0.2560024559497833,
-0.42024099826812744,
-0.07627323269844055,
0.18840180337429047,
-0.10579977929592133,
-0.15612879395484924,
0.035500384867191315,
-0.06329622119665146,
0.008365117013454437,
-0.058060381561517715,
0.14752858877182007,
0.3281925916671753,
0.10723458230495453,
0.15908989310264587,
0.016809901222586632,
0.07224852591753006,
-0.37315481901168823,
0.30712229013442993,
-0.014198055490851402,
0.34802693128585815,
0.3044203817844391,
-0.3181048035621643,
0.05874870717525482,
-0.09318683296442032,
-0.0007660873234272003,
-0.6210436820983887,
0.13558101654052734,
-0.014250136911869049,
0.17970417439937592,
0.017314907163381577,
-0.2134842574596405,
-0.09740599989891052,
-0.1941886991262436,
0.1273106336593628,
-0.13486513495445251,
0.35300660133361816,
-0.26027077436447144,
0.09669353812932968,
0.07920463383197784,
0.4140845239162445,
-0.13904401659965515,
0.0689709261059761,
0.26549434661865234,
-0.047933779656887054,
-0.37645861506462097,
-0.09009884297847748,
0.25544148683547974,
0.8737131357192993,
0.36314550042152405,
-0.34482768177986145,
0.22786033153533936,
0.06668039411306381,
-0.05775017663836479,
-0.19402089715003967,
-0.2126741111278534,
0.03916151821613312,
0.1341942548751831,
0.3453153967857361,
0.3507530689239502,
0.0651235431432724,
-0.06633203476667404,
0.0633668452501297,
-0.2704556882381439,
-0.21457070112228394,
0.471490740776062,
-0.10264319181442261,
0.21748585999011993,
0.05386016517877579,
-0.24463948607444763,
0.41137754917144775,
0.23386447131633759,
0.16587334871292114,
-0.0037698671221733093,
0.42415687441825867,
-0.2534443438053131,
-0.3952462673187256,
0.057138584554195404,
-0.1831645667552948,
0.24148935079574585,
0.22580330073833466,
0.22771334648132324,
0.06359916925430298,
0.1560094803571701,
0.05680488795042038,
0.017449170351028442,
0.15031951665878296,
-0.05170902609825134,
0.002400573343038559,
0.11406738311052322,
0.3764140009880066,
-0.2117670178413391,
-0.21939417719841003,
-0.30916497111320496,
-0.2785676419734955,
0.0724305659532547,
0.07055631279945374,
0.1820525825023651,
-0.34161460399627686,
0.1765877604484558,
-0.09561440348625183,
-0.4134984612464905,
-0.26612842082977295,
0.23479123413562775,
0.146195188164711,
-0.058966197073459625,
-0.007164057344198227,
-0.2509234845638275,
0.2849392592906952,
-0.4807716906070709,
0.3026828467845917,
-0.3664856255054474,
-0.057658664882183075,
-0.20146489143371582,
0.0328032411634922,
0.008347787894308567,
0.3727065622806549,
0.2562312185764313,
-0.09210046380758286,
-0.12079399824142456,
-0.5289497375488281,
-0.45217591524124146,
0.36886048316955566,
-0.22686748206615448,
0.11337548494338989,
0.13052169978618622,
0.19676193594932556,
-0.3303307294845581,
-0.2646196186542511,
0.10888884216547012,
-0.3639267086982727,
-0.09348435699939728,
-0.33514589071273804,
-0.0973837748169899,
-0.0986827090382576,
-0.0030945725739002228,
-0.041196368634700775,
-0.35350242257118225,
-0.2808045744895935,
0.34303009510040283,
0.22540415823459625,
-0.13020482659339905,
0.0172075517475605,
-0.08003570139408112,
0.11235235631465912,
0.12599334120750427,
0.3323074281215668,
-0.29703477025032043,
-0.16134630143642426,
0.19609865546226501,
-0.20742292702198029,
-0.2651273012161255,
-0.038692377507686615,
-0.05392464995384216,
-0.06152946129441261,
-0.10059423744678497,
-0.425478458404541,
-0.36048176884651184,
0.0556919202208519,
-0.025116587057709694,
-0.07036303728818893,
0.06157173216342926,
0.09777309745550156,
0.01254117488861084,
-0.06857658922672272,
0.00650811567902565,
0.005107693374156952,
-0.14297139644622803,
0.14192108809947968,
0.06863634288311005,
-0.09262774139642715,
0.1250012367963791,
0.20239391922950745,
0.7989224195480347,
0.4217326045036316,
0.12864567339420319,
0.414059579372406,
0.22012053430080414,
0.48916560411453247,
-0.23315799236297607,
-0.0684257298707962,
0.10446154326200485,
-0.016727536916732788,
0.28732967376708984,
0.558506190776825,
0.30463287234306335,
0.08503752201795578,
-0.06159519404172897,
-0.47575482726097107,
-0.28630462288856506,
-0.1630813479423523,
0.24558186531066895,
0.034119863063097,
0.25729259848594666,
0.001950882375240326,
-0.022763896733522415,
0.1661117523908615,
-0.3102341890335083,
0.05389707162976265,
0.1662839651107788,
0.23551028966903687,
0.1411309540271759,
-0.3051791489124298,
0.15292157232761383,
-0.8590839505195618,
0.23111113905906677,
-0.018900994211435318,
-0.18743708729743958,
-0.2980819046497345,
0.08484647423028946,
0.1466870903968811,
0.05571701377630234,
0.32350337505340576,
-0.3109864294528961,
-0.388593852519989,
-0.20662717521190643,
-0.017976844683289528,
-0.0430697426199913,
0.09475336968898773,
0.1059955358505249,
0.009814897552132607,
0.4081776738166809,
-0.16394825279712677,
-0.49368932843208313,
-0.21497240662574768,
0.26407772302627563,
-0.03164209797978401,
0.009250711649656296,
0.13605564832687378,
-0.17576859891414642,
-0.29380881786346436,
-0.5504950881004333,
-0.4285238981246948,
0.25472894310951233,
-0.3438403606414795,
-0.2193063646554947,
0.20313957333564758,
0.255787193775177,
0.0077919624745845795,
0.27219492197036743,
0.18396537005901337,
-0.055526889860630035,
-0.0856647789478302,
-0.09267361462116241,
0.5099767446517944,
0.359683632850647,
0.23541687428951263,
0.707758903503418,
0.017983675003051758,
-0.08931395411491394,
0.16643261909484863,
0.052218154072761536,
0.23769855499267578,
0.48259836435317993,
0.33662164211273193,
0.018969841301441193,
0.08927841484546661,
-0.007108032703399658,
-0.10035679489374161,
-0.005025966092944145,
0.45544081926345825,
-0.33315733075141907,
-0.12821415066719055,
0.033335357904434204,
0.3052031695842743,
-0.12387141585350037,
0.046424150466918945,
-0.08471757173538208,
0.9499078989028931,
0.13012102246284485,
0.512273907661438,
-0.04999613016843796,
1.1526873111724854,
0.2842032313346863,
0.38700398802757263,
-0.11364228278398514,
-0.05328378081321716,
0.5818110704421997,
-0.5025373697280884,
-0.19420206546783447,
-0.022044725716114044,
-0.3868577182292938,
-0.1671912968158722,
0.05164112523198128,
-0.22653332352638245,
0.21568922698497772,
-0.0801813006401062,
0.23169401288032532,
0.3886120319366455,
0.054289963096380234,
0.014928199350833893,
0.49498188495635986,
-0.2575531601905823,
-0.16816599667072296,
-0.19997826218605042,
0.043227553367614746,
0.1722920835018158,
0.4088803231716156,
-0.14988896250724792,
-0.10885688662528992,
-0.2044108361005783,
-0.16639789938926697,
-0.5499115586280823,
-0.04978450760245323,
0.0601079948246479,
-0.06144566833972931,
0.35520195960998535,
-0.07971367239952087,
0.32535067200660706,
0.15055614709854126,
0.30103448033332825,
-0.3107360303401947,
-0.5965957045555115,
0.011391451582312584,
-0.06834269315004349,
-0.21549208462238312,
0.27307599782943726,
-0.19345097243785858,
0.48235419392585754,
-0.10641004890203476,
-0.11109856516122818,
0.3303709328174591,
-0.0982627272605896,
-0.05123182013630867,
-0.41851386427879333,
-0.24161867797374725,
-0.18819153308868408,
-0.1779613047838211,
-0.07057273387908936,
0.3471909463405609,
-0.4256947338581085,
-0.12672264873981476,
0.048054613173007965,
0.10668233036994934,
0.33166342973709106,
-0.26727184653282166,
0.3429388999938965,
0.01069466769695282,
-0.23601405322551727,
0.3876953125,
-0.15871062874794006,
-0.06373366713523865,
0.2717561721801758,
-0.2133660465478897,
-0.12752074003219604,
0.07275551557540894,
-0.10644760727882385,
0.28397539258003235,
-0.4165966212749481,
-0.23553137481212616,
0.11294791102409363,
-0.15516585111618042,
-0.10968463122844696,
0.45671477913856506,
0.18991251289844513,
-0.0448392853140831,
-0.2044055461883545,
-0.15909701585769653,
0.10700512677431107,
0.5737265944480896,
-0.18190082907676697,
0.08271150290966034,
-0.019434729591012,
-0.011675672605633736,
0.22337673604488373,
0.15540196001529694,
-0.2522445619106293,
-0.036517269909381866,
-0.31293797492980957,
-0.07686755806207657,
0.02784358337521553,
-0.07643721252679825,
0.33676382899284363,
0.11380907893180847,
-0.09224847704172134,
-0.051617659628391266,
-0.17660437524318695,
-0.04280339181423187,
0.022440019994974136,
0.19309364259243011,
0.31229543685913086,
-0.08857319504022598,
-0.1383562833070755,
0.08682247251272202,
-0.11385473608970642,
-0.30228978395462036,
0.1337784230709076,
-0.22110599279403687,
0.07079706341028214,
0.08092206716537476,
-0.19118835031986237,
0.19467805325984955,
-0.10251470655202866,
0.04230325669050217,
0.11749429255723953,
0.5127557516098022,
0.26726099848747253,
-0.026992082595825195,
-0.21095827221870422,
-0.1394847333431244,
-0.008747472427785397,
0.22650745511054993,
0.329525351524353,
-0.25034013390541077,
0.36122921109199524,
0.3472694754600525,
0.02616378292441368,
-0.10145837813615799,
-0.006444035097956657,
0.18158523738384247,
-0.22970086336135864,
0.2761462330818176,
0.20862430334091187,
0.10573171079158783,
-0.14899632334709167,
-0.08374205976724625,
0.3395877480506897,
-0.1748015284538269,
0.22450056672096252,
0.19146163761615753,
0.8282387852668762,
-0.12628670036792755,
0.3334258198738098,
-0.1276560127735138,
0.18978022038936615,
-0.20444829761981964,
-0.1817614734172821,
-0.23160967230796814,
0.04156370833516121,
0.18433572351932526,
-0.16794662177562714,
0.08416235446929932,
0.5764595866203308,
-0.3147503137588501,
-0.08401981741189957,
0.18501369655132294,
-0.2706153988838196,
0.25174251198768616,
0.407597154378891,
-0.07166914641857147,
0.10977250337600708,
0.19707947969436646,
0.4905517101287842,
0.29357150197029114,
-0.1452925205230713,
-0.03701309859752655,
0.17382261157035828,
0.15250207483768463,
-0.2693364918231964,
0.163602814078331,
0.1845989227294922,
-0.05089270696043968,
0.18072256445884705,
-0.19038695096969604,
-0.23719966411590576,
0.19656668603420258,
-0.24121364951133728,
-0.29118168354034424,
-0.21789556741714478,
-0.14324599504470825,
-0.06168830394744873,
-0.11961548030376434,
0.2244766354560852,
-0.08848708122968674,
0.35074320435523987,
-0.09969709813594818,
0.11175306141376495,
0.03995611518621445,
-0.12576350569725037,
-0.0004625171422958374,
0.31308192014694214,
0.31902778148651123,
-0.17444947361946106,
-0.11703839898109436,
-0.012674578465521336,
0.2129797786474228,
0.015833010897040367,
-0.20765742659568787,
0.11437712609767914,
0.28401196002960205,
-0.24820496141910553,
0.12432742118835449,
-0.01959686353802681,
-0.1539876013994217,
-0.37351465225219727,
-0.16962376236915588,
0.23036377131938934,
-0.18346890807151794,
-0.31133803725242615,
-0.15650048851966858,
-0.16598719358444214,
0.10746896266937256,
0.06041896343231201,
-0.28302910923957825,
0.2151743322610855,
-0.1071445643901825,
0.05410349741578102,
0.013019802048802376,
-0.2539304494857788,
0.03794045001268387,
0.13562750816345215,
0.3063032627105713,
0.5627688765525818,
0.10956702381372452,
-0.061780862510204315,
-0.3986170291900635,
-0.11726494133472443,
0.18990981578826904,
-0.2081129252910614,
-0.04118330031633377,
0.34871387481689453,
0.18324871361255646,
0.3635130226612091,
0.3037838935852051,
-0.09530901908874512,
-0.2481214553117752,
-0.24779269099235535,
-0.18166324496269226,
-0.02330447919666767,
-0.07255756855010986,
-0.1085304319858551,
0.23575980961322784,
-0.010764021426439285,
0.22027766704559326,
0.03170111030340195,
-0.15693074464797974,
-0.12262129038572311,
-0.3057941198348999,
0.02256391942501068,
-0.22686773538589478,
0.3308979868888855,
-0.0405961349606514,
0.15992550551891327,
-0.19176644086837769,
-0.20942187309265137,
-0.4069235920906067,
-0.04808332398533821,
0.12967023253440857,
0.04773459583520889,
0.16168475151062012,
0.009491002187132835,
-0.09735558927059174,
-0.27599218487739563,
-0.09237803518772125,
0.014970275573432446,
-0.029607834294438362,
0.12963086366653442,
0.14098365604877472,
-0.3074481785297394,
-0.023994605988264084,
-0.18983179330825806,
0.1414300501346588,
0.08914814889431,
0.37986260652542114,
-0.2511129379272461,
-0.3843095898628235,
-0.2604125738143921,
0.05794642120599747,
0.29415786266326904,
-0.11041786521673203,
0.28960153460502625,
-0.029614806175231934,
0.15529954433441162,
0.4543703496456146,
0.018381591886281967,
-0.5039560794830322,
-0.21767161786556244,
0.21375250816345215,
0.1811884045600891,
-0.3754469156265259,
-0.24390074610710144,
0.19022001326084137,
-0.1772356480360031,
-0.21243691444396973,
-0.010605312883853912,
-0.15181228518486023,
-0.17585891485214233,
0.11000612378120422,
-0.12023778259754181
] |
https://github.com/huggingface/datasets/issues/331 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError` | I couldn't reproduce on my side.
It looks like you were not able to generate all the examples, and you have the problem for each split train-test-validation.
Could you try to enable logging, try again and send the logs ?
```python
import logging
logging.basicConfig(level=logging.INFO)
``` | ```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
``` | 45 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError`
```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
```
I couldn't reproduce on my side.
It looks like you were not able to generate all the examples, and you have the problem for each split train-test-validation.
Could you try to enable logging, try again and send the logs ?
```python
import logging
logging.basicConfig(level=logging.INFO)
``` | [
-0.14107026159763336,
-0.056987516582012177,
-0.008213799446821213,
0.20865733921527863,
0.07764871418476105,
0.09079559892416,
0.18330250680446625,
0.5251762866973877,
0.09873181581497192,
0.15423263609409332,
0.016297442838549614,
0.07699710875749588,
-0.314119815826416,
-0.04377371445298195,
-0.03358972817659378,
0.035900868475437164,
-0.18716806173324585,
0.25151246786117554,
0.04488750547170639,
-0.02299685776233673,
-0.2874321937561035,
0.28179118037223816,
-0.2087387591600418,
-0.03660028427839279,
-0.4835280179977417,
-0.2941966652870178,
0.014396650716662407,
0.36983680725097656,
0.037647657096385956,
-0.30936500430107117,
-0.054115332663059235,
-0.13485699892044067,
-0.18413861095905304,
0.1029716357588768,
-0.00011303211067570373,
0.11360619962215424,
0.3911178708076477,
-0.14332835376262665,
-0.48673778772354126,
0.009375989437103271,
-0.21043354272842407,
-0.4906255602836609,
0.08808935433626175,
-0.3546811044216156,
-0.15523478388786316,
0.025319427251815796,
0.09456367790699005,
-0.2195383757352829,
0.49692755937576294,
0.3904685378074646,
0.24021956324577332,
0.5636106729507446,
0.06623150408267975,
0.1633443534374237,
-0.08876887708902359,
-0.18095500767230988,
-0.1458706259727478,
-0.0048656705766916275,
-0.3178360164165497,
-0.15101270377635956,
-0.024242758750915527,
0.42894765734672546,
-0.0926201269030571,
0.1253480315208435,
-0.08723733574151993,
0.11025026440620422,
0.08894391357898712,
-0.16584660112857819,
0.09388178586959839,
0.13601818680763245,
-0.032907307147979736,
-0.07590695470571518,
-0.21139144897460938,
-0.4385596811771393,
-0.01606447622179985,
-0.39801865816116333,
0.2251276671886444,
0.21271724998950958,
-0.17450274527072906,
0.06538040935993195,
-0.3212825357913971,
0.0384896844625473,
-0.02947196736931801,
0.20340533554553986,
0.08193354308605194,
0.41119423508644104,
-0.10029764473438263,
0.02581198886036873,
0.05554541200399399,
-0.09011628478765488,
0.15675105154514313,
-0.17692814767360687,
0.15432502329349518,
0.0778360515832901,
-0.14576953649520874,
-0.04527810588479042,
0.1644643247127533,
-0.1484149992465973,
0.0430353507399559,
-0.06754811853170395,
0.17890958487987518,
-0.06210442632436752,
0.1744752675294876,
0.08687464892864227,
0.04706467315554619,
0.31252995133399963,
-0.01635052263736725,
0.26863256096839905,
0.12459880858659744,
0.2852095365524292,
0.0025184452533721924,
0.01810324564576149,
0.11720109730958939,
-0.00531881395727396,
0.1188487708568573,
0.22079896926879883,
0.37348419427871704,
-0.05925436317920685,
-0.3276313543319702,
0.13372236490249634,
-0.26271378993988037,
-0.2590237557888031,
-0.0015636784955859184,
0.25621896982192993,
-0.058301929384469986,
0.3132656216621399,
-0.06084255874156952,
-0.08145211637020111,
-0.3839431405067444,
-0.15473096072673798,
-0.38044771552085876,
0.17008015513420105,
-0.18440042436122894,
0.0808090940117836,
0.2795959413051605,
-0.0796261727809906,
0.4572223424911499,
-0.24975457787513733,
-0.014182709157466888,
-0.14726406335830688,
0.20933325588703156,
-0.039835840463638306,
0.025049224495887756,
0.283186137676239,
-0.13097219169139862,
0.17060762643814087,
0.25904378294944763,
0.16906899213790894,
-0.21274542808532715,
-0.08599650114774704,
-0.004009030759334564,
-0.6050634980201721,
0.18873333930969238,
0.24872957170009613,
0.059363625943660736,
-0.06869891285896301,
0.6144129037857056,
0.07587771117687225,
0.24875301122665405,
0.035049568861722946,
-0.16209083795547485,
-0.06983887404203415,
-0.01132112741470337,
-0.16849268972873688,
0.07564868777990341,
0.4380219578742981,
-0.23252244293689728,
-0.23690646886825562,
-0.013540389016270638,
-0.14192749559879303,
0.5154549479484558,
0.4340135157108307,
-0.10532074421644211,
0.04393964633345604,
-0.1265495866537094,
0.15382717549800873,
0.20038148760795593,
-0.15454033017158508,
-0.3955637514591217,
0.18983787298202515,
-0.08841180056333542,
0.20390497148036957,
0.2070535123348236,
0.19677655398845673,
-0.029445655643939972,
0.10163474828004837,
0.05391350015997887,
0.5395382642745972,
-0.2290867269039154,
0.10552295297384262,
-0.4344431459903717,
-0.43464410305023193,
0.35825198888778687,
0.056457895785570145,
0.2241695523262024,
-0.040838100016117096,
-0.06270583719015121,
0.43611085414886475,
0.211510568857193,
-0.11106240749359131,
0.037484101951122284,
0.03333768993616104,
-0.1516629010438919,
-0.11435335874557495,
0.01719260960817337,
-0.043171048164367676,
-0.4885503053665161,
0.13752323389053345,
-0.15719810128211975,
0.3005167841911316,
-0.050177201628685,
-0.10149224102497101,
-0.26270681619644165,
-0.1947331577539444,
-0.17500317096710205,
-0.2838498651981354,
0.21785694360733032,
0.22742362320423126,
0.2097201943397522,
0.0044359490275382996,
-0.2784236669540405,
0.3022129535675049,
-0.03140675649046898,
0.12140282243490219,
-0.5230278372764587,
0.26270395517349243,
-0.22790826857089996,
-0.181055948138237,
0.2639642059803009,
0.4298868179321289,
0.26417630910873413,
-0.15307733416557312,
-0.2832186222076416,
0.2833617329597473,
-0.08616244792938232,
0.23159700632095337,
-0.1480451226234436,
-0.15910236537456512,
0.11376610398292542,
-0.08145581185817719,
0.16977733373641968,
0.40259575843811035,
-0.03424306586384773,
-0.1033010184764862,
-0.11919417232275009,
0.4826924204826355,
0.04845811054110527,
0.0898771584033966,
0.14993372559547424,
-0.1141226515173912,
0.07726958394050598,
-0.13095785677433014,
0.11302841454744339,
-0.5237557888031006,
0.318745881319046,
-0.169630765914917,
0.21323105692863464,
-0.08782129734754562,
-0.25000739097595215,
0.053037360310554504,
0.681517481803894,
-0.02595704421401024,
0.09751446545124054,
0.020760292187333107,
-0.10262132436037064,
-0.2020811140537262,
-0.183786079287529,
0.15972526371479034,
0.3386714458465576,
0.24137738347053528,
0.18663817644119263,
0.247457817196846,
-0.17295768857002258,
-0.2860010266304016,
0.27237841486930847,
0.0954679474234581,
0.2538040280342102,
0.38594961166381836,
0.006088040303438902,
-0.002402198500931263,
-0.5314667820930481,
-0.024830829352140427,
0.013506656512618065,
0.374194860458374,
-0.22363512217998505,
-0.2018267959356308,
-0.43166014552116394,
-0.4015897512435913,
-0.17028754949569702,
-0.29878705739974976,
-0.1874067783355713,
-0.5853295922279358,
0.08001488447189331,
0.03005765937268734,
-0.12527377903461456,
0.162424236536026,
-0.15810304880142212,
0.23189134895801544,
0.2769710123538971,
-0.01656590960919857,
-0.19272972643375397,
-0.08131811767816544,
-0.13409575819969177,
0.07541069388389587,
0.17562641203403473,
0.038012102246284485,
0.328264057636261,
-0.13235585391521454,
-0.1795409768819809,
-0.02463063783943653,
-0.4010377824306488,
0.07767268270254135,
0.06737056374549866,
0.13974152505397797,
0.30479034781455994,
0.18001051247119904,
0.3312220573425293,
-0.335332989692688,
0.1972537636756897,
-0.24187158048152924,
-0.27702030539512634,
-0.008124844171106815,
0.0024516743142157793,
0.14319880306720734,
-0.23823101818561554,
-0.48101767897605896,
-0.43263673782348633,
-0.5125104188919067,
0.10095614939928055,
0.04884711280465126,
0.40666407346725464,
0.2704298496246338,
-0.2863160967826843,
0.1968378871679306,
-0.1210164874792099,
0.18222741782665253,
-0.25841647386550903,
-0.17760932445526123,
0.25029757618904114,
-0.2715805470943451,
-0.2704795002937317,
-0.12659505009651184,
-0.14869946241378784,
0.20489177107810974,
-0.2855268716812134,
-0.4239245057106018,
-0.32950761914253235,
-0.14588695764541626,
-0.052700113505125046,
0.10720054805278778,
-0.0558416023850441,
0.22967499494552612,
-0.012112392112612724,
-0.16541780531406403,
-0.03351162374019623,
-0.3873250484466553,
0.05341783165931702,
0.12507358193397522,
0.07020941376686096,
-0.09277168661355972,
0.6258095502853394,
0.06226544454693794,
0.5375288724899292,
0.371898889541626,
0.09344460070133209,
0.23146532475948334,
0.10950054228305817,
0.14843103289604187,
-0.012238755822181702,
-0.3427931070327759,
0.25061529874801636,
0.15182583034038544,
0.059252090752124786,
0.34880125522613525,
-0.051651403307914734,
-0.3857148289680481,
-0.08008389174938202,
-0.30467504262924194,
-0.46589070558547974,
-0.28062114119529724,
0.18112443387508392,
0.12481693178415298,
0.25791504979133606,
0.2710346281528473,
0.1946980059146881,
-0.17675679922103882,
-0.170081228017807,
-0.14580895006656647,
0.17277273535728455,
0.00598684698343277,
-0.03669288754463196,
-0.1083945482969284,
0.014189323410391808,
-0.6109696626663208,
0.2600284218788147,
0.006669630296528339,
0.6111475229263306,
-0.15705639123916626,
-0.06736598163843155,
-0.016853593289852142,
-0.28661003708839417,
0.36028116941452026,
-0.3092951476573944,
-0.05434155464172363,
0.1828867346048355,
-0.10957910120487213,
-0.35649630427360535,
-0.12057879567146301,
-0.15273517370224,
0.046325668692588806,
0.504290759563446,
0.5133957862854004,
-0.2715703547000885,
-0.282286137342453,
0.4173493981361389,
0.10568154603242874,
-0.19254635274410248,
-0.24053306877613068,
-0.2602212429046631,
-0.2365472912788391,
-0.3589518666267395,
-0.0029181912541389465,
-0.35495880246162415,
0.2806679904460907,
0.03478263318538666,
-0.049445442855358124,
-0.03679443150758743,
-0.24793019890785217,
0.17122185230255127,
0.023834478110074997,
-0.007558535784482956,
0.20605289936065674,
0.190296933054924,
0.2586171627044678,
0.3282206952571869,
-0.27770543098449707,
0.3211948275566101,
-0.04369369521737099,
0.013516277074813843,
-0.0866977721452713,
0.12573981285095215,
0.04572504758834839,
0.48612257838249207,
0.01708109676837921,
-0.01891613006591797,
0.2016191929578781,
0.3254525661468506,
-0.004442949779331684,
-0.033121973276138306,
0.44969257712364197,
-0.06196990981698036,
-0.41116198897361755,
-0.1648898422718048,
0.29971855878829956,
0.12319035828113556,
0.13616177439689636,
-0.13000215590000153,
-0.19739140570163727,
-0.24372176826000214,
0.12760251760482788,
0.11299002170562744,
0.7832134962081909,
0.2591174244880676,
0.06482286751270294,
0.35659584403038025,
-0.15499842166900635,
0.6783711910247803,
-0.21120621263980865,
0.25695866346359253,
-0.37061017751693726,
-0.3312225937843323,
-0.03791837766766548,
-0.11087707430124283,
0.31698185205459595,
0.10036629438400269,
-0.17701296508312225,
0.49021801352500916,
-0.12910741567611694,
-0.0994337946176529,
-0.06175502389669418,
0.46373575925827026,
-0.26057305932044983,
-0.14336387813091278,
-0.40016791224479675,
0.10669784247875214,
-0.19586263597011566,
0.35261833667755127,
-0.10239163041114807,
-0.19491930305957794,
0.2577720582485199,
-0.25908157229423523,
-0.07498223334550858,
0.2773516774177551,
-0.2684626281261444,
0.13984885811805725,
0.006161760538816452,
0.24019719660282135,
-0.221049964427948,
-0.3827371895313263,
0.31372934579849243,
-0.13551773130893707,
-0.03858790546655655,
-0.06919415295124054,
-0.26215147972106934,
-0.02418174035847187,
-0.10120692104101181,
0.10601221024990082,
0.4224320948123932,
-0.21872380375862122,
-0.11455748230218887,
0.020303595811128616,
-0.18857894837856293,
-0.16305270791053772,
-0.018977001309394836,
-0.03548513352870941,
0.1039891391992569,
-0.17091906070709229,
-0.1970956176519394,
0.095424585044384,
-0.2310500144958496,
-0.3154531419277191,
0.1461791694164276,
-0.05774340033531189,
-0.29068100452423096,
0.3077009916305542,
-0.08585144579410553,
-0.2809654474258423,
-0.25796493887901306,
0.2445218563079834,
0.169691801071167,
0.0508798211812973,
0.4922752380371094,
0.022502843290567398,
-0.2898045778274536,
-0.27908316254615784,
-0.030064567923545837,
0.026359528303146362,
-0.36133626103401184,
0.19981475174427032,
-0.08701234310865402,
-0.015575781464576721,
0.27552732825279236,
0.20519062876701355,
0.19970589876174927,
0.2912754416465759,
-0.23239246010780334,
-0.5686833262443542,
-0.1438734531402588,
0.06298437714576721,
-0.00536637008190155,
0.28937944769859314,
0.04663415998220444,
0.5640011429786682,
0.018357308581471443,
0.3612839877605438,
-0.35585933923721313,
0.03705987334251404,
-0.25321465730667114,
0.1774698942899704,
0.16446778178215027,
-0.28713276982307434,
0.47963011264801025,
0.3361743688583374,
0.18961001932621002,
0.18448370695114136,
-0.3276687562465668,
-0.23988190293312073,
-0.1398790329694748,
0.14599117636680603,
0.05286666378378868,
-0.15074826776981354,
0.1091264858841896,
0.021051768213510513,
-0.16266104578971863,
-0.07615965604782104,
-0.013169771991670132,
-0.11839143931865692,
-0.08799029886722565,
0.24678511917591095,
-0.042253848165273666,
-0.060315586626529694,
0.12027329206466675,
0.05636374652385712,
-0.12312076985836029,
0.3887261748313904,
-0.011862337589263916,
0.23062340915203094,
-0.23718124628067017,
0.045909613370895386,
-0.10559867322444916,
-0.10755337029695511,
0.049228738993406296,
0.01407087966799736,
0.28337493538856506,
-0.43506866693496704,
-0.28954893350601196,
0.16230449080467224,
0.23141920566558838,
0.2564544975757599,
-0.028592418879270554,
-0.1506040096282959,
0.1654754877090454,
0.22180195152759552,
-0.3195358216762543,
0.024543393403291702,
0.3671751022338867,
-0.003508377820253372,
0.32188302278518677,
0.353075236082077,
0.11874061822891235,
0.019552938640117645,
-0.050877898931503296,
0.08901367336511612,
0.21651877462863922,
-0.2659985423088074,
0.03685625642538071,
0.26313212513923645,
-0.11038605868816376,
-0.01508067175745964,
0.3015825152397156,
-0.12180212140083313,
0.3009927272796631,
0.23779384791851044,
-0.03177616745233536,
0.42949405312538147,
-0.03971777856349945,
0.3304130733013153,
-0.006971172988414764,
-0.21676670014858246,
0.1839851438999176,
0.4842493534088135,
-0.11200106143951416,
0.3832803964614868,
0.014789536595344543,
0.4105644226074219,
-0.2803663909435272,
0.014445574954152107,
-0.1774638295173645,
0.47217684984207153,
-0.14001253247261047,
0.09138692915439606,
-0.03362654149532318,
-0.09873771667480469,
-0.28677213191986084,
-0.006401205435395241,
0.07856146991252899,
0.0901603102684021,
0.15062271058559418,
0.11593030393123627,
-0.03764241933822632,
-0.33036643266677856,
-0.18787676095962524,
0.15899190306663513,
0.23829874396324158,
-0.3991437554359436,
0.30744028091430664,
0.27755141258239746,
-0.04233182966709137,
-0.15953785181045532,
0.6101232767105103,
0.34312382340431213,
0.3848830759525299,
-0.1388493925333023,
-0.020332012325525284,
0.1635614037513733,
-0.07779008895158768,
-0.0890929251909256,
0.3411307632923126,
0.1897566169500351,
-0.07463952898979187,
0.3646358549594879,
0.10431894659996033,
-0.2784149944782257,
-0.046337272971868515,
0.09377667307853699,
-0.24161577224731445,
-0.13924600183963776,
0.2932825982570648,
-0.049425773322582245,
0.21002772450447083,
-0.22206267714500427,
0.030433259904384613,
-0.6043109893798828,
-0.050304070115089417,
0.19343551993370056,
-0.0807911828160286,
0.2918081283569336,
0.03415587544441223,
0.10029333829879761,
-0.19151334464550018,
0.491106241941452,
0.06943586468696594,
-0.07489392906427383,
-0.3047780394554138,
-0.22468291223049164,
-0.579849362373352,
0.1475735604763031,
-0.15494772791862488,
-0.05646636709570885,
0.009748517535626888,
0.2813647985458374,
-0.20153504610061646,
0.04944312945008278,
0.07764101028442383,
0.3546501398086548,
-0.04044162109494209,
-0.15757261216640472,
-0.38355469703674316,
0.016316084191203117,
0.005404263734817505,
-0.2268485426902771,
0.07368843257427216,
-0.4133268892765045,
0.24398772418498993,
-0.20116844773292542,
0.03681569546461105,
-0.12373088300228119,
0.05972924828529358,
-0.06897268444299698,
0.47976329922676086,
0.012969214469194412,
0.5052635073661804,
0.2816338539123535,
-0.23628267645835876,
-0.3487398028373718,
-0.165609672665596,
-0.14218731224536896,
-0.29679277539253235,
0.15791717171669006,
0.3191109001636505,
0.5874747037887573,
0.017295589670538902,
0.05495713651180267,
-0.360790491104126,
0.3801417946815491,
0.023944295942783356,
-0.18775172531604767,
0.024198217317461967,
0.32611700892448425,
-0.24118798971176147,
0.2674719989299774,
0.24738670885562897,
0.3860729932785034,
0.11262813955545425,
0.14903560280799866,
-0.2446991503238678,
-0.37139368057250977,
0.5164567232131958,
-0.183185413479805,
-0.22347165644168854,
-0.01189620140939951,
0.12572643160820007,
0.026465103030204773,
-0.1279565989971161,
-0.4188544452190399,
0.05670192092657089,
0.35806870460510254,
-0.10179197043180466,
-0.0891670286655426,
0.20007391273975372,
0.21828171610832214,
-0.20560018718242645,
-0.019860969856381416,
-0.09547373652458191,
0.3953026235103607,
-0.4314519762992859,
0.20405863225460052,
-0.07732624560594559
] |
https://github.com/huggingface/datasets/issues/331 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError` | here's the log
```
>>> import nlp
import logging
logging.basicConfig(level=logging.INFO)
nlp.load_dataset('cnn_dailymail', '3.0.0')
>>> import logging
>>> logging.basicConfig(level=logging.INFO)
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
INFO:nlp.load:Checking /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py for additional imports.
INFO:filelock:Lock 140443095301136 acquired on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail
INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.py
INFO:nlp.load:Updating dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/dataset_infos.json to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.json
INFO:filelock:Lock 140443095301136 released on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
INFO:nlp.info:Loading Dataset Infos from /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
INFO:nlp.builder:Generating dataset cnn_dailymail (/u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0)
INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
INFO:nlp.utils.info_utils:All the checksums matched successfully.
INFO:nlp.builder:Generating split train
INFO:nlp.arrow_writer:Done writing 285161 examples in 1240618482 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-train.arrow.
INFO:nlp.builder:Generating split validation
INFO:nlp.arrow_writer:Done writing 13255 examples in 56637485 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-validation.arrow.
INFO:nlp.builder:Generating split test
INFO:nlp.arrow_writer:Done writing 11379 examples in 48931393 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-test.arrow.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
``` | ```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
``` | 223 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError`
```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
```
here's the log
```
>>> import nlp
import logging
logging.basicConfig(level=logging.INFO)
nlp.load_dataset('cnn_dailymail', '3.0.0')
>>> import logging
>>> logging.basicConfig(level=logging.INFO)
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
INFO:nlp.load:Checking /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py for additional imports.
INFO:filelock:Lock 140443095301136 acquired on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail
INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.py
INFO:nlp.load:Updating dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/dataset_infos.json to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.json
INFO:filelock:Lock 140443095301136 released on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
INFO:nlp.info:Loading Dataset Infos from /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
INFO:nlp.builder:Generating dataset cnn_dailymail (/u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0)
INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
INFO:nlp.utils.info_utils:All the checksums matched successfully.
INFO:nlp.builder:Generating split train
INFO:nlp.arrow_writer:Done writing 285161 examples in 1240618482 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-train.arrow.
INFO:nlp.builder:Generating split validation
INFO:nlp.arrow_writer:Done writing 13255 examples in 56637485 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-validation.arrow.
INFO:nlp.builder:Generating split test
INFO:nlp.arrow_writer:Done writing 11379 examples in 48931393 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-test.arrow.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
``` | [
-0.14107026159763336,
-0.056987516582012177,
-0.008213799446821213,
0.20865733921527863,
0.07764871418476105,
0.09079559892416,
0.18330250680446625,
0.5251762866973877,
0.09873181581497192,
0.15423263609409332,
0.016297442838549614,
0.07699710875749588,
-0.314119815826416,
-0.04377371445298195,
-0.03358972817659378,
0.035900868475437164,
-0.18716806173324585,
0.25151246786117554,
0.04488750547170639,
-0.02299685776233673,
-0.2874321937561035,
0.28179118037223816,
-0.2087387591600418,
-0.03660028427839279,
-0.4835280179977417,
-0.2941966652870178,
0.014396650716662407,
0.36983680725097656,
0.037647657096385956,
-0.30936500430107117,
-0.054115332663059235,
-0.13485699892044067,
-0.18413861095905304,
0.1029716357588768,
-0.00011303211067570373,
0.11360619962215424,
0.3911178708076477,
-0.14332835376262665,
-0.48673778772354126,
0.009375989437103271,
-0.21043354272842407,
-0.4906255602836609,
0.08808935433626175,
-0.3546811044216156,
-0.15523478388786316,
0.025319427251815796,
0.09456367790699005,
-0.2195383757352829,
0.49692755937576294,
0.3904685378074646,
0.24021956324577332,
0.5636106729507446,
0.06623150408267975,
0.1633443534374237,
-0.08876887708902359,
-0.18095500767230988,
-0.1458706259727478,
-0.0048656705766916275,
-0.3178360164165497,
-0.15101270377635956,
-0.024242758750915527,
0.42894765734672546,
-0.0926201269030571,
0.1253480315208435,
-0.08723733574151993,
0.11025026440620422,
0.08894391357898712,
-0.16584660112857819,
0.09388178586959839,
0.13601818680763245,
-0.032907307147979736,
-0.07590695470571518,
-0.21139144897460938,
-0.4385596811771393,
-0.01606447622179985,
-0.39801865816116333,
0.2251276671886444,
0.21271724998950958,
-0.17450274527072906,
0.06538040935993195,
-0.3212825357913971,
0.0384896844625473,
-0.02947196736931801,
0.20340533554553986,
0.08193354308605194,
0.41119423508644104,
-0.10029764473438263,
0.02581198886036873,
0.05554541200399399,
-0.09011628478765488,
0.15675105154514313,
-0.17692814767360687,
0.15432502329349518,
0.0778360515832901,
-0.14576953649520874,
-0.04527810588479042,
0.1644643247127533,
-0.1484149992465973,
0.0430353507399559,
-0.06754811853170395,
0.17890958487987518,
-0.06210442632436752,
0.1744752675294876,
0.08687464892864227,
0.04706467315554619,
0.31252995133399963,
-0.01635052263736725,
0.26863256096839905,
0.12459880858659744,
0.2852095365524292,
0.0025184452533721924,
0.01810324564576149,
0.11720109730958939,
-0.00531881395727396,
0.1188487708568573,
0.22079896926879883,
0.37348419427871704,
-0.05925436317920685,
-0.3276313543319702,
0.13372236490249634,
-0.26271378993988037,
-0.2590237557888031,
-0.0015636784955859184,
0.25621896982192993,
-0.058301929384469986,
0.3132656216621399,
-0.06084255874156952,
-0.08145211637020111,
-0.3839431405067444,
-0.15473096072673798,
-0.38044771552085876,
0.17008015513420105,
-0.18440042436122894,
0.0808090940117836,
0.2795959413051605,
-0.0796261727809906,
0.4572223424911499,
-0.24975457787513733,
-0.014182709157466888,
-0.14726406335830688,
0.20933325588703156,
-0.039835840463638306,
0.025049224495887756,
0.283186137676239,
-0.13097219169139862,
0.17060762643814087,
0.25904378294944763,
0.16906899213790894,
-0.21274542808532715,
-0.08599650114774704,
-0.004009030759334564,
-0.6050634980201721,
0.18873333930969238,
0.24872957170009613,
0.059363625943660736,
-0.06869891285896301,
0.6144129037857056,
0.07587771117687225,
0.24875301122665405,
0.035049568861722946,
-0.16209083795547485,
-0.06983887404203415,
-0.01132112741470337,
-0.16849268972873688,
0.07564868777990341,
0.4380219578742981,
-0.23252244293689728,
-0.23690646886825562,
-0.013540389016270638,
-0.14192749559879303,
0.5154549479484558,
0.4340135157108307,
-0.10532074421644211,
0.04393964633345604,
-0.1265495866537094,
0.15382717549800873,
0.20038148760795593,
-0.15454033017158508,
-0.3955637514591217,
0.18983787298202515,
-0.08841180056333542,
0.20390497148036957,
0.2070535123348236,
0.19677655398845673,
-0.029445655643939972,
0.10163474828004837,
0.05391350015997887,
0.5395382642745972,
-0.2290867269039154,
0.10552295297384262,
-0.4344431459903717,
-0.43464410305023193,
0.35825198888778687,
0.056457895785570145,
0.2241695523262024,
-0.040838100016117096,
-0.06270583719015121,
0.43611085414886475,
0.211510568857193,
-0.11106240749359131,
0.037484101951122284,
0.03333768993616104,
-0.1516629010438919,
-0.11435335874557495,
0.01719260960817337,
-0.043171048164367676,
-0.4885503053665161,
0.13752323389053345,
-0.15719810128211975,
0.3005167841911316,
-0.050177201628685,
-0.10149224102497101,
-0.26270681619644165,
-0.1947331577539444,
-0.17500317096710205,
-0.2838498651981354,
0.21785694360733032,
0.22742362320423126,
0.2097201943397522,
0.0044359490275382996,
-0.2784236669540405,
0.3022129535675049,
-0.03140675649046898,
0.12140282243490219,
-0.5230278372764587,
0.26270395517349243,
-0.22790826857089996,
-0.181055948138237,
0.2639642059803009,
0.4298868179321289,
0.26417630910873413,
-0.15307733416557312,
-0.2832186222076416,
0.2833617329597473,
-0.08616244792938232,
0.23159700632095337,
-0.1480451226234436,
-0.15910236537456512,
0.11376610398292542,
-0.08145581185817719,
0.16977733373641968,
0.40259575843811035,
-0.03424306586384773,
-0.1033010184764862,
-0.11919417232275009,
0.4826924204826355,
0.04845811054110527,
0.0898771584033966,
0.14993372559547424,
-0.1141226515173912,
0.07726958394050598,
-0.13095785677433014,
0.11302841454744339,
-0.5237557888031006,
0.318745881319046,
-0.169630765914917,
0.21323105692863464,
-0.08782129734754562,
-0.25000739097595215,
0.053037360310554504,
0.681517481803894,
-0.02595704421401024,
0.09751446545124054,
0.020760292187333107,
-0.10262132436037064,
-0.2020811140537262,
-0.183786079287529,
0.15972526371479034,
0.3386714458465576,
0.24137738347053528,
0.18663817644119263,
0.247457817196846,
-0.17295768857002258,
-0.2860010266304016,
0.27237841486930847,
0.0954679474234581,
0.2538040280342102,
0.38594961166381836,
0.006088040303438902,
-0.002402198500931263,
-0.5314667820930481,
-0.024830829352140427,
0.013506656512618065,
0.374194860458374,
-0.22363512217998505,
-0.2018267959356308,
-0.43166014552116394,
-0.4015897512435913,
-0.17028754949569702,
-0.29878705739974976,
-0.1874067783355713,
-0.5853295922279358,
0.08001488447189331,
0.03005765937268734,
-0.12527377903461456,
0.162424236536026,
-0.15810304880142212,
0.23189134895801544,
0.2769710123538971,
-0.01656590960919857,
-0.19272972643375397,
-0.08131811767816544,
-0.13409575819969177,
0.07541069388389587,
0.17562641203403473,
0.038012102246284485,
0.328264057636261,
-0.13235585391521454,
-0.1795409768819809,
-0.02463063783943653,
-0.4010377824306488,
0.07767268270254135,
0.06737056374549866,
0.13974152505397797,
0.30479034781455994,
0.18001051247119904,
0.3312220573425293,
-0.335332989692688,
0.1972537636756897,
-0.24187158048152924,
-0.27702030539512634,
-0.008124844171106815,
0.0024516743142157793,
0.14319880306720734,
-0.23823101818561554,
-0.48101767897605896,
-0.43263673782348633,
-0.5125104188919067,
0.10095614939928055,
0.04884711280465126,
0.40666407346725464,
0.2704298496246338,
-0.2863160967826843,
0.1968378871679306,
-0.1210164874792099,
0.18222741782665253,
-0.25841647386550903,
-0.17760932445526123,
0.25029757618904114,
-0.2715805470943451,
-0.2704795002937317,
-0.12659505009651184,
-0.14869946241378784,
0.20489177107810974,
-0.2855268716812134,
-0.4239245057106018,
-0.32950761914253235,
-0.14588695764541626,
-0.052700113505125046,
0.10720054805278778,
-0.0558416023850441,
0.22967499494552612,
-0.012112392112612724,
-0.16541780531406403,
-0.03351162374019623,
-0.3873250484466553,
0.05341783165931702,
0.12507358193397522,
0.07020941376686096,
-0.09277168661355972,
0.6258095502853394,
0.06226544454693794,
0.5375288724899292,
0.371898889541626,
0.09344460070133209,
0.23146532475948334,
0.10950054228305817,
0.14843103289604187,
-0.012238755822181702,
-0.3427931070327759,
0.25061529874801636,
0.15182583034038544,
0.059252090752124786,
0.34880125522613525,
-0.051651403307914734,
-0.3857148289680481,
-0.08008389174938202,
-0.30467504262924194,
-0.46589070558547974,
-0.28062114119529724,
0.18112443387508392,
0.12481693178415298,
0.25791504979133606,
0.2710346281528473,
0.1946980059146881,
-0.17675679922103882,
-0.170081228017807,
-0.14580895006656647,
0.17277273535728455,
0.00598684698343277,
-0.03669288754463196,
-0.1083945482969284,
0.014189323410391808,
-0.6109696626663208,
0.2600284218788147,
0.006669630296528339,
0.6111475229263306,
-0.15705639123916626,
-0.06736598163843155,
-0.016853593289852142,
-0.28661003708839417,
0.36028116941452026,
-0.3092951476573944,
-0.05434155464172363,
0.1828867346048355,
-0.10957910120487213,
-0.35649630427360535,
-0.12057879567146301,
-0.15273517370224,
0.046325668692588806,
0.504290759563446,
0.5133957862854004,
-0.2715703547000885,
-0.282286137342453,
0.4173493981361389,
0.10568154603242874,
-0.19254635274410248,
-0.24053306877613068,
-0.2602212429046631,
-0.2365472912788391,
-0.3589518666267395,
-0.0029181912541389465,
-0.35495880246162415,
0.2806679904460907,
0.03478263318538666,
-0.049445442855358124,
-0.03679443150758743,
-0.24793019890785217,
0.17122185230255127,
0.023834478110074997,
-0.007558535784482956,
0.20605289936065674,
0.190296933054924,
0.2586171627044678,
0.3282206952571869,
-0.27770543098449707,
0.3211948275566101,
-0.04369369521737099,
0.013516277074813843,
-0.0866977721452713,
0.12573981285095215,
0.04572504758834839,
0.48612257838249207,
0.01708109676837921,
-0.01891613006591797,
0.2016191929578781,
0.3254525661468506,
-0.004442949779331684,
-0.033121973276138306,
0.44969257712364197,
-0.06196990981698036,
-0.41116198897361755,
-0.1648898422718048,
0.29971855878829956,
0.12319035828113556,
0.13616177439689636,
-0.13000215590000153,
-0.19739140570163727,
-0.24372176826000214,
0.12760251760482788,
0.11299002170562744,
0.7832134962081909,
0.2591174244880676,
0.06482286751270294,
0.35659584403038025,
-0.15499842166900635,
0.6783711910247803,
-0.21120621263980865,
0.25695866346359253,
-0.37061017751693726,
-0.3312225937843323,
-0.03791837766766548,
-0.11087707430124283,
0.31698185205459595,
0.10036629438400269,
-0.17701296508312225,
0.49021801352500916,
-0.12910741567611694,
-0.0994337946176529,
-0.06175502389669418,
0.46373575925827026,
-0.26057305932044983,
-0.14336387813091278,
-0.40016791224479675,
0.10669784247875214,
-0.19586263597011566,
0.35261833667755127,
-0.10239163041114807,
-0.19491930305957794,
0.2577720582485199,
-0.25908157229423523,
-0.07498223334550858,
0.2773516774177551,
-0.2684626281261444,
0.13984885811805725,
0.006161760538816452,
0.24019719660282135,
-0.221049964427948,
-0.3827371895313263,
0.31372934579849243,
-0.13551773130893707,
-0.03858790546655655,
-0.06919415295124054,
-0.26215147972106934,
-0.02418174035847187,
-0.10120692104101181,
0.10601221024990082,
0.4224320948123932,
-0.21872380375862122,
-0.11455748230218887,
0.020303595811128616,
-0.18857894837856293,
-0.16305270791053772,
-0.018977001309394836,
-0.03548513352870941,
0.1039891391992569,
-0.17091906070709229,
-0.1970956176519394,
0.095424585044384,
-0.2310500144958496,
-0.3154531419277191,
0.1461791694164276,
-0.05774340033531189,
-0.29068100452423096,
0.3077009916305542,
-0.08585144579410553,
-0.2809654474258423,
-0.25796493887901306,
0.2445218563079834,
0.169691801071167,
0.0508798211812973,
0.4922752380371094,
0.022502843290567398,
-0.2898045778274536,
-0.27908316254615784,
-0.030064567923545837,
0.026359528303146362,
-0.36133626103401184,
0.19981475174427032,
-0.08701234310865402,
-0.015575781464576721,
0.27552732825279236,
0.20519062876701355,
0.19970589876174927,
0.2912754416465759,
-0.23239246010780334,
-0.5686833262443542,
-0.1438734531402588,
0.06298437714576721,
-0.00536637008190155,
0.28937944769859314,
0.04663415998220444,
0.5640011429786682,
0.018357308581471443,
0.3612839877605438,
-0.35585933923721313,
0.03705987334251404,
-0.25321465730667114,
0.1774698942899704,
0.16446778178215027,
-0.28713276982307434,
0.47963011264801025,
0.3361743688583374,
0.18961001932621002,
0.18448370695114136,
-0.3276687562465668,
-0.23988190293312073,
-0.1398790329694748,
0.14599117636680603,
0.05286666378378868,
-0.15074826776981354,
0.1091264858841896,
0.021051768213510513,
-0.16266104578971863,
-0.07615965604782104,
-0.013169771991670132,
-0.11839143931865692,
-0.08799029886722565,
0.24678511917591095,
-0.042253848165273666,
-0.060315586626529694,
0.12027329206466675,
0.05636374652385712,
-0.12312076985836029,
0.3887261748313904,
-0.011862337589263916,
0.23062340915203094,
-0.23718124628067017,
0.045909613370895386,
-0.10559867322444916,
-0.10755337029695511,
0.049228738993406296,
0.01407087966799736,
0.28337493538856506,
-0.43506866693496704,
-0.28954893350601196,
0.16230449080467224,
0.23141920566558838,
0.2564544975757599,
-0.028592418879270554,
-0.1506040096282959,
0.1654754877090454,
0.22180195152759552,
-0.3195358216762543,
0.024543393403291702,
0.3671751022338867,
-0.003508377820253372,
0.32188302278518677,
0.353075236082077,
0.11874061822891235,
0.019552938640117645,
-0.050877898931503296,
0.08901367336511612,
0.21651877462863922,
-0.2659985423088074,
0.03685625642538071,
0.26313212513923645,
-0.11038605868816376,
-0.01508067175745964,
0.3015825152397156,
-0.12180212140083313,
0.3009927272796631,
0.23779384791851044,
-0.03177616745233536,
0.42949405312538147,
-0.03971777856349945,
0.3304130733013153,
-0.006971172988414764,
-0.21676670014858246,
0.1839851438999176,
0.4842493534088135,
-0.11200106143951416,
0.3832803964614868,
0.014789536595344543,
0.4105644226074219,
-0.2803663909435272,
0.014445574954152107,
-0.1774638295173645,
0.47217684984207153,
-0.14001253247261047,
0.09138692915439606,
-0.03362654149532318,
-0.09873771667480469,
-0.28677213191986084,
-0.006401205435395241,
0.07856146991252899,
0.0901603102684021,
0.15062271058559418,
0.11593030393123627,
-0.03764241933822632,
-0.33036643266677856,
-0.18787676095962524,
0.15899190306663513,
0.23829874396324158,
-0.3991437554359436,
0.30744028091430664,
0.27755141258239746,
-0.04233182966709137,
-0.15953785181045532,
0.6101232767105103,
0.34312382340431213,
0.3848830759525299,
-0.1388493925333023,
-0.020332012325525284,
0.1635614037513733,
-0.07779008895158768,
-0.0890929251909256,
0.3411307632923126,
0.1897566169500351,
-0.07463952898979187,
0.3646358549594879,
0.10431894659996033,
-0.2784149944782257,
-0.046337272971868515,
0.09377667307853699,
-0.24161577224731445,
-0.13924600183963776,
0.2932825982570648,
-0.049425773322582245,
0.21002772450447083,
-0.22206267714500427,
0.030433259904384613,
-0.6043109893798828,
-0.050304070115089417,
0.19343551993370056,
-0.0807911828160286,
0.2918081283569336,
0.03415587544441223,
0.10029333829879761,
-0.19151334464550018,
0.491106241941452,
0.06943586468696594,
-0.07489392906427383,
-0.3047780394554138,
-0.22468291223049164,
-0.579849362373352,
0.1475735604763031,
-0.15494772791862488,
-0.05646636709570885,
0.009748517535626888,
0.2813647985458374,
-0.20153504610061646,
0.04944312945008278,
0.07764101028442383,
0.3546501398086548,
-0.04044162109494209,
-0.15757261216640472,
-0.38355469703674316,
0.016316084191203117,
0.005404263734817505,
-0.2268485426902771,
0.07368843257427216,
-0.4133268892765045,
0.24398772418498993,
-0.20116844773292542,
0.03681569546461105,
-0.12373088300228119,
0.05972924828529358,
-0.06897268444299698,
0.47976329922676086,
0.012969214469194412,
0.5052635073661804,
0.2816338539123535,
-0.23628267645835876,
-0.3487398028373718,
-0.165609672665596,
-0.14218731224536896,
-0.29679277539253235,
0.15791717171669006,
0.3191109001636505,
0.5874747037887573,
0.017295589670538902,
0.05495713651180267,
-0.360790491104126,
0.3801417946815491,
0.023944295942783356,
-0.18775172531604767,
0.024198217317461967,
0.32611700892448425,
-0.24118798971176147,
0.2674719989299774,
0.24738670885562897,
0.3860729932785034,
0.11262813955545425,
0.14903560280799866,
-0.2446991503238678,
-0.37139368057250977,
0.5164567232131958,
-0.183185413479805,
-0.22347165644168854,
-0.01189620140939951,
0.12572643160820007,
0.026465103030204773,
-0.1279565989971161,
-0.4188544452190399,
0.05670192092657089,
0.35806870460510254,
-0.10179197043180466,
-0.0891670286655426,
0.20007391273975372,
0.21828171610832214,
-0.20560018718242645,
-0.019860969856381416,
-0.09547373652458191,
0.3953026235103607,
-0.4314519762992859,
0.20405863225460052,
-0.07732624560594559
] |
https://github.com/huggingface/datasets/issues/331 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError` | > here's the log
>
> ```
> >>> import nlp
> import logging
> logging.basicConfig(level=logging.INFO)
> nlp.load_dataset('cnn_dailymail', '3.0.0')
> >>> import logging
> >>> logging.basicConfig(level=logging.INFO)
> >>> nlp.load_dataset('cnn_dailymail', '3.0.0')
> INFO:nlp.load:Checking /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py for additional imports.
> INFO:filelock:Lock 140443095301136 acquired on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
> INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail
> INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
> INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.py
> INFO:nlp.load:Updating dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/dataset_infos.json to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/dataset_infos.json
> INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.json
> INFO:filelock:Lock 140443095301136 released on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
> INFO:nlp.info:Loading Dataset Infos from /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
> INFO:nlp.builder:Generating dataset cnn_dailymail (/u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0)
> INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
> Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
> INFO:nlp.utils.info_utils:All the checksums matched successfully.
> INFO:nlp.builder:Generating split train
> INFO:nlp.arrow_writer:Done writing 285161 examples in 1240618482 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-train.arrow.
> INFO:nlp.builder:Generating split validation
> INFO:nlp.arrow_writer:Done writing 13255 examples in 56637485 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-validation.arrow.
> INFO:nlp.builder:Generating split test
> INFO:nlp.arrow_writer:Done writing 11379 examples in 48931393 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-test.arrow.
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
> builder_instance.download_and_prepare(
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
> self._download_and_prepare(
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
> verify_splits(self.info.splits, split_dict)
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
> raise NonMatchingSplitsSizesError(str(bad_splits))
> nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
> ```
With `nlp == 0.3.0` version, I'm not able to reproduce this error on my side.
Which version are you using for reproducing your bug?
```
>> nlp.load_dataset('cnn_dailymail', '3.0.0')
8.90k/8.90k [00:18<00:00, 486B/s]
Downloading: 100%
9.37k/9.37k [00:00<00:00, 234kB/s]
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Downloading:
159M/? [00:09<00:00, 16.7MB/s]
Downloading:
376M/? [00:06<00:00, 62.6MB/s]
Downloading:
2.11M/? [00:06<00:00, 333kB/s]
Downloading:
46.4M/? [00:02<00:00, 18.4MB/s]
Downloading:
2.43M/? [00:00<00:00, 2.62MB/s]
Dataset cnn_dailymail downloaded and prepared to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0. Subsequent calls will reuse this data.
{'test': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 11490),
'train': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 287113),
'validation': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 13368)}
>> ...
``` | ```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
``` | 376 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError`
```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
```
> here's the log
>
> ```
> >>> import nlp
> import logging
> logging.basicConfig(level=logging.INFO)
> nlp.load_dataset('cnn_dailymail', '3.0.0')
> >>> import logging
> >>> logging.basicConfig(level=logging.INFO)
> >>> nlp.load_dataset('cnn_dailymail', '3.0.0')
> INFO:nlp.load:Checking /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py for additional imports.
> INFO:filelock:Lock 140443095301136 acquired on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
> INFO:nlp.load:Found main folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail
> INFO:nlp.load:Found specific version folder for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
> INFO:nlp.load:Found script file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.py
> INFO:nlp.load:Updating dataset infos file from https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/dataset_infos.json to /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/dataset_infos.json
> INFO:nlp.load:Found metadata file for dataset https://s3.amazonaws.com/datasets.huggingface.co/nlp/datasets/cnn_dailymail/cnn_dailymail.py at /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad/cnn_dailymail.json
> INFO:filelock:Lock 140443095301136 released on /u/jm8wx/.cache/huggingface/datasets/720d2e20d8dc6d98f21195a39cc934bb41dd0a40b57ea3d323661a7c5d70522c.d44c2417f4e0fe938ede0a684dcbb1fa9b4789de22e8a99c43103d4b4c374b3b.py.lock
> INFO:nlp.info:Loading Dataset Infos from /p/qdata/jm8wx/datasets/nlp/src/nlp/datasets/cnn_dailymail/9645e0bc96f647decf46541f6f4bef6936ee82ace653ac362bab03309a46d4ad
> INFO:nlp.builder:Generating dataset cnn_dailymail (/u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0)
> INFO:nlp.builder:Dataset not on Hf google storage. Downloading and preparing it from source
> Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
> INFO:nlp.utils.info_utils:All the checksums matched successfully.
> INFO:nlp.builder:Generating split train
> INFO:nlp.arrow_writer:Done writing 285161 examples in 1240618482 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-train.arrow.
> INFO:nlp.builder:Generating split validation
> INFO:nlp.arrow_writer:Done writing 13255 examples in 56637485 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-validation.arrow.
> INFO:nlp.builder:Generating split test
> INFO:nlp.arrow_writer:Done writing 11379 examples in 48931393 bytes /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0.incomplete/cnn_dailymail-test.arrow.
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
> builder_instance.download_and_prepare(
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
> self._download_and_prepare(
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
> verify_splits(self.info.splits, split_dict)
> File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
> raise NonMatchingSplitsSizesError(str(bad_splits))
> nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
> ```
With `nlp == 0.3.0` version, I'm not able to reproduce this error on my side.
Which version are you using for reproducing your bug?
```
>> nlp.load_dataset('cnn_dailymail', '3.0.0')
8.90k/8.90k [00:18<00:00, 486B/s]
Downloading: 100%
9.37k/9.37k [00:00<00:00, 234kB/s]
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Downloading:
159M/? [00:09<00:00, 16.7MB/s]
Downloading:
376M/? [00:06<00:00, 62.6MB/s]
Downloading:
2.11M/? [00:06<00:00, 333kB/s]
Downloading:
46.4M/? [00:02<00:00, 18.4MB/s]
Downloading:
2.43M/? [00:00<00:00, 2.62MB/s]
Dataset cnn_dailymail downloaded and prepared to /root/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0. Subsequent calls will reuse this data.
{'test': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 11490),
'train': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 287113),
'validation': Dataset(schema: {'article': 'string', 'highlights': 'string'}, num_rows: 13368)}
>> ...
``` | [
-0.14107026159763336,
-0.056987516582012177,
-0.008213799446821213,
0.20865733921527863,
0.07764871418476105,
0.09079559892416,
0.18330250680446625,
0.5251762866973877,
0.09873181581497192,
0.15423263609409332,
0.016297442838549614,
0.07699710875749588,
-0.314119815826416,
-0.04377371445298195,
-0.03358972817659378,
0.035900868475437164,
-0.18716806173324585,
0.25151246786117554,
0.04488750547170639,
-0.02299685776233673,
-0.2874321937561035,
0.28179118037223816,
-0.2087387591600418,
-0.03660028427839279,
-0.4835280179977417,
-0.2941966652870178,
0.014396650716662407,
0.36983680725097656,
0.037647657096385956,
-0.30936500430107117,
-0.054115332663059235,
-0.13485699892044067,
-0.18413861095905304,
0.1029716357588768,
-0.00011303211067570373,
0.11360619962215424,
0.3911178708076477,
-0.14332835376262665,
-0.48673778772354126,
0.009375989437103271,
-0.21043354272842407,
-0.4906255602836609,
0.08808935433626175,
-0.3546811044216156,
-0.15523478388786316,
0.025319427251815796,
0.09456367790699005,
-0.2195383757352829,
0.49692755937576294,
0.3904685378074646,
0.24021956324577332,
0.5636106729507446,
0.06623150408267975,
0.1633443534374237,
-0.08876887708902359,
-0.18095500767230988,
-0.1458706259727478,
-0.0048656705766916275,
-0.3178360164165497,
-0.15101270377635956,
-0.024242758750915527,
0.42894765734672546,
-0.0926201269030571,
0.1253480315208435,
-0.08723733574151993,
0.11025026440620422,
0.08894391357898712,
-0.16584660112857819,
0.09388178586959839,
0.13601818680763245,
-0.032907307147979736,
-0.07590695470571518,
-0.21139144897460938,
-0.4385596811771393,
-0.01606447622179985,
-0.39801865816116333,
0.2251276671886444,
0.21271724998950958,
-0.17450274527072906,
0.06538040935993195,
-0.3212825357913971,
0.0384896844625473,
-0.02947196736931801,
0.20340533554553986,
0.08193354308605194,
0.41119423508644104,
-0.10029764473438263,
0.02581198886036873,
0.05554541200399399,
-0.09011628478765488,
0.15675105154514313,
-0.17692814767360687,
0.15432502329349518,
0.0778360515832901,
-0.14576953649520874,
-0.04527810588479042,
0.1644643247127533,
-0.1484149992465973,
0.0430353507399559,
-0.06754811853170395,
0.17890958487987518,
-0.06210442632436752,
0.1744752675294876,
0.08687464892864227,
0.04706467315554619,
0.31252995133399963,
-0.01635052263736725,
0.26863256096839905,
0.12459880858659744,
0.2852095365524292,
0.0025184452533721924,
0.01810324564576149,
0.11720109730958939,
-0.00531881395727396,
0.1188487708568573,
0.22079896926879883,
0.37348419427871704,
-0.05925436317920685,
-0.3276313543319702,
0.13372236490249634,
-0.26271378993988037,
-0.2590237557888031,
-0.0015636784955859184,
0.25621896982192993,
-0.058301929384469986,
0.3132656216621399,
-0.06084255874156952,
-0.08145211637020111,
-0.3839431405067444,
-0.15473096072673798,
-0.38044771552085876,
0.17008015513420105,
-0.18440042436122894,
0.0808090940117836,
0.2795959413051605,
-0.0796261727809906,
0.4572223424911499,
-0.24975457787513733,
-0.014182709157466888,
-0.14726406335830688,
0.20933325588703156,
-0.039835840463638306,
0.025049224495887756,
0.283186137676239,
-0.13097219169139862,
0.17060762643814087,
0.25904378294944763,
0.16906899213790894,
-0.21274542808532715,
-0.08599650114774704,
-0.004009030759334564,
-0.6050634980201721,
0.18873333930969238,
0.24872957170009613,
0.059363625943660736,
-0.06869891285896301,
0.6144129037857056,
0.07587771117687225,
0.24875301122665405,
0.035049568861722946,
-0.16209083795547485,
-0.06983887404203415,
-0.01132112741470337,
-0.16849268972873688,
0.07564868777990341,
0.4380219578742981,
-0.23252244293689728,
-0.23690646886825562,
-0.013540389016270638,
-0.14192749559879303,
0.5154549479484558,
0.4340135157108307,
-0.10532074421644211,
0.04393964633345604,
-0.1265495866537094,
0.15382717549800873,
0.20038148760795593,
-0.15454033017158508,
-0.3955637514591217,
0.18983787298202515,
-0.08841180056333542,
0.20390497148036957,
0.2070535123348236,
0.19677655398845673,
-0.029445655643939972,
0.10163474828004837,
0.05391350015997887,
0.5395382642745972,
-0.2290867269039154,
0.10552295297384262,
-0.4344431459903717,
-0.43464410305023193,
0.35825198888778687,
0.056457895785570145,
0.2241695523262024,
-0.040838100016117096,
-0.06270583719015121,
0.43611085414886475,
0.211510568857193,
-0.11106240749359131,
0.037484101951122284,
0.03333768993616104,
-0.1516629010438919,
-0.11435335874557495,
0.01719260960817337,
-0.043171048164367676,
-0.4885503053665161,
0.13752323389053345,
-0.15719810128211975,
0.3005167841911316,
-0.050177201628685,
-0.10149224102497101,
-0.26270681619644165,
-0.1947331577539444,
-0.17500317096710205,
-0.2838498651981354,
0.21785694360733032,
0.22742362320423126,
0.2097201943397522,
0.0044359490275382996,
-0.2784236669540405,
0.3022129535675049,
-0.03140675649046898,
0.12140282243490219,
-0.5230278372764587,
0.26270395517349243,
-0.22790826857089996,
-0.181055948138237,
0.2639642059803009,
0.4298868179321289,
0.26417630910873413,
-0.15307733416557312,
-0.2832186222076416,
0.2833617329597473,
-0.08616244792938232,
0.23159700632095337,
-0.1480451226234436,
-0.15910236537456512,
0.11376610398292542,
-0.08145581185817719,
0.16977733373641968,
0.40259575843811035,
-0.03424306586384773,
-0.1033010184764862,
-0.11919417232275009,
0.4826924204826355,
0.04845811054110527,
0.0898771584033966,
0.14993372559547424,
-0.1141226515173912,
0.07726958394050598,
-0.13095785677433014,
0.11302841454744339,
-0.5237557888031006,
0.318745881319046,
-0.169630765914917,
0.21323105692863464,
-0.08782129734754562,
-0.25000739097595215,
0.053037360310554504,
0.681517481803894,
-0.02595704421401024,
0.09751446545124054,
0.020760292187333107,
-0.10262132436037064,
-0.2020811140537262,
-0.183786079287529,
0.15972526371479034,
0.3386714458465576,
0.24137738347053528,
0.18663817644119263,
0.247457817196846,
-0.17295768857002258,
-0.2860010266304016,
0.27237841486930847,
0.0954679474234581,
0.2538040280342102,
0.38594961166381836,
0.006088040303438902,
-0.002402198500931263,
-0.5314667820930481,
-0.024830829352140427,
0.013506656512618065,
0.374194860458374,
-0.22363512217998505,
-0.2018267959356308,
-0.43166014552116394,
-0.4015897512435913,
-0.17028754949569702,
-0.29878705739974976,
-0.1874067783355713,
-0.5853295922279358,
0.08001488447189331,
0.03005765937268734,
-0.12527377903461456,
0.162424236536026,
-0.15810304880142212,
0.23189134895801544,
0.2769710123538971,
-0.01656590960919857,
-0.19272972643375397,
-0.08131811767816544,
-0.13409575819969177,
0.07541069388389587,
0.17562641203403473,
0.038012102246284485,
0.328264057636261,
-0.13235585391521454,
-0.1795409768819809,
-0.02463063783943653,
-0.4010377824306488,
0.07767268270254135,
0.06737056374549866,
0.13974152505397797,
0.30479034781455994,
0.18001051247119904,
0.3312220573425293,
-0.335332989692688,
0.1972537636756897,
-0.24187158048152924,
-0.27702030539512634,
-0.008124844171106815,
0.0024516743142157793,
0.14319880306720734,
-0.23823101818561554,
-0.48101767897605896,
-0.43263673782348633,
-0.5125104188919067,
0.10095614939928055,
0.04884711280465126,
0.40666407346725464,
0.2704298496246338,
-0.2863160967826843,
0.1968378871679306,
-0.1210164874792099,
0.18222741782665253,
-0.25841647386550903,
-0.17760932445526123,
0.25029757618904114,
-0.2715805470943451,
-0.2704795002937317,
-0.12659505009651184,
-0.14869946241378784,
0.20489177107810974,
-0.2855268716812134,
-0.4239245057106018,
-0.32950761914253235,
-0.14588695764541626,
-0.052700113505125046,
0.10720054805278778,
-0.0558416023850441,
0.22967499494552612,
-0.012112392112612724,
-0.16541780531406403,
-0.03351162374019623,
-0.3873250484466553,
0.05341783165931702,
0.12507358193397522,
0.07020941376686096,
-0.09277168661355972,
0.6258095502853394,
0.06226544454693794,
0.5375288724899292,
0.371898889541626,
0.09344460070133209,
0.23146532475948334,
0.10950054228305817,
0.14843103289604187,
-0.012238755822181702,
-0.3427931070327759,
0.25061529874801636,
0.15182583034038544,
0.059252090752124786,
0.34880125522613525,
-0.051651403307914734,
-0.3857148289680481,
-0.08008389174938202,
-0.30467504262924194,
-0.46589070558547974,
-0.28062114119529724,
0.18112443387508392,
0.12481693178415298,
0.25791504979133606,
0.2710346281528473,
0.1946980059146881,
-0.17675679922103882,
-0.170081228017807,
-0.14580895006656647,
0.17277273535728455,
0.00598684698343277,
-0.03669288754463196,
-0.1083945482969284,
0.014189323410391808,
-0.6109696626663208,
0.2600284218788147,
0.006669630296528339,
0.6111475229263306,
-0.15705639123916626,
-0.06736598163843155,
-0.016853593289852142,
-0.28661003708839417,
0.36028116941452026,
-0.3092951476573944,
-0.05434155464172363,
0.1828867346048355,
-0.10957910120487213,
-0.35649630427360535,
-0.12057879567146301,
-0.15273517370224,
0.046325668692588806,
0.504290759563446,
0.5133957862854004,
-0.2715703547000885,
-0.282286137342453,
0.4173493981361389,
0.10568154603242874,
-0.19254635274410248,
-0.24053306877613068,
-0.2602212429046631,
-0.2365472912788391,
-0.3589518666267395,
-0.0029181912541389465,
-0.35495880246162415,
0.2806679904460907,
0.03478263318538666,
-0.049445442855358124,
-0.03679443150758743,
-0.24793019890785217,
0.17122185230255127,
0.023834478110074997,
-0.007558535784482956,
0.20605289936065674,
0.190296933054924,
0.2586171627044678,
0.3282206952571869,
-0.27770543098449707,
0.3211948275566101,
-0.04369369521737099,
0.013516277074813843,
-0.0866977721452713,
0.12573981285095215,
0.04572504758834839,
0.48612257838249207,
0.01708109676837921,
-0.01891613006591797,
0.2016191929578781,
0.3254525661468506,
-0.004442949779331684,
-0.033121973276138306,
0.44969257712364197,
-0.06196990981698036,
-0.41116198897361755,
-0.1648898422718048,
0.29971855878829956,
0.12319035828113556,
0.13616177439689636,
-0.13000215590000153,
-0.19739140570163727,
-0.24372176826000214,
0.12760251760482788,
0.11299002170562744,
0.7832134962081909,
0.2591174244880676,
0.06482286751270294,
0.35659584403038025,
-0.15499842166900635,
0.6783711910247803,
-0.21120621263980865,
0.25695866346359253,
-0.37061017751693726,
-0.3312225937843323,
-0.03791837766766548,
-0.11087707430124283,
0.31698185205459595,
0.10036629438400269,
-0.17701296508312225,
0.49021801352500916,
-0.12910741567611694,
-0.0994337946176529,
-0.06175502389669418,
0.46373575925827026,
-0.26057305932044983,
-0.14336387813091278,
-0.40016791224479675,
0.10669784247875214,
-0.19586263597011566,
0.35261833667755127,
-0.10239163041114807,
-0.19491930305957794,
0.2577720582485199,
-0.25908157229423523,
-0.07498223334550858,
0.2773516774177551,
-0.2684626281261444,
0.13984885811805725,
0.006161760538816452,
0.24019719660282135,
-0.221049964427948,
-0.3827371895313263,
0.31372934579849243,
-0.13551773130893707,
-0.03858790546655655,
-0.06919415295124054,
-0.26215147972106934,
-0.02418174035847187,
-0.10120692104101181,
0.10601221024990082,
0.4224320948123932,
-0.21872380375862122,
-0.11455748230218887,
0.020303595811128616,
-0.18857894837856293,
-0.16305270791053772,
-0.018977001309394836,
-0.03548513352870941,
0.1039891391992569,
-0.17091906070709229,
-0.1970956176519394,
0.095424585044384,
-0.2310500144958496,
-0.3154531419277191,
0.1461791694164276,
-0.05774340033531189,
-0.29068100452423096,
0.3077009916305542,
-0.08585144579410553,
-0.2809654474258423,
-0.25796493887901306,
0.2445218563079834,
0.169691801071167,
0.0508798211812973,
0.4922752380371094,
0.022502843290567398,
-0.2898045778274536,
-0.27908316254615784,
-0.030064567923545837,
0.026359528303146362,
-0.36133626103401184,
0.19981475174427032,
-0.08701234310865402,
-0.015575781464576721,
0.27552732825279236,
0.20519062876701355,
0.19970589876174927,
0.2912754416465759,
-0.23239246010780334,
-0.5686833262443542,
-0.1438734531402588,
0.06298437714576721,
-0.00536637008190155,
0.28937944769859314,
0.04663415998220444,
0.5640011429786682,
0.018357308581471443,
0.3612839877605438,
-0.35585933923721313,
0.03705987334251404,
-0.25321465730667114,
0.1774698942899704,
0.16446778178215027,
-0.28713276982307434,
0.47963011264801025,
0.3361743688583374,
0.18961001932621002,
0.18448370695114136,
-0.3276687562465668,
-0.23988190293312073,
-0.1398790329694748,
0.14599117636680603,
0.05286666378378868,
-0.15074826776981354,
0.1091264858841896,
0.021051768213510513,
-0.16266104578971863,
-0.07615965604782104,
-0.013169771991670132,
-0.11839143931865692,
-0.08799029886722565,
0.24678511917591095,
-0.042253848165273666,
-0.060315586626529694,
0.12027329206466675,
0.05636374652385712,
-0.12312076985836029,
0.3887261748313904,
-0.011862337589263916,
0.23062340915203094,
-0.23718124628067017,
0.045909613370895386,
-0.10559867322444916,
-0.10755337029695511,
0.049228738993406296,
0.01407087966799736,
0.28337493538856506,
-0.43506866693496704,
-0.28954893350601196,
0.16230449080467224,
0.23141920566558838,
0.2564544975757599,
-0.028592418879270554,
-0.1506040096282959,
0.1654754877090454,
0.22180195152759552,
-0.3195358216762543,
0.024543393403291702,
0.3671751022338867,
-0.003508377820253372,
0.32188302278518677,
0.353075236082077,
0.11874061822891235,
0.019552938640117645,
-0.050877898931503296,
0.08901367336511612,
0.21651877462863922,
-0.2659985423088074,
0.03685625642538071,
0.26313212513923645,
-0.11038605868816376,
-0.01508067175745964,
0.3015825152397156,
-0.12180212140083313,
0.3009927272796631,
0.23779384791851044,
-0.03177616745233536,
0.42949405312538147,
-0.03971777856349945,
0.3304130733013153,
-0.006971172988414764,
-0.21676670014858246,
0.1839851438999176,
0.4842493534088135,
-0.11200106143951416,
0.3832803964614868,
0.014789536595344543,
0.4105644226074219,
-0.2803663909435272,
0.014445574954152107,
-0.1774638295173645,
0.47217684984207153,
-0.14001253247261047,
0.09138692915439606,
-0.03362654149532318,
-0.09873771667480469,
-0.28677213191986084,
-0.006401205435395241,
0.07856146991252899,
0.0901603102684021,
0.15062271058559418,
0.11593030393123627,
-0.03764241933822632,
-0.33036643266677856,
-0.18787676095962524,
0.15899190306663513,
0.23829874396324158,
-0.3991437554359436,
0.30744028091430664,
0.27755141258239746,
-0.04233182966709137,
-0.15953785181045532,
0.6101232767105103,
0.34312382340431213,
0.3848830759525299,
-0.1388493925333023,
-0.020332012325525284,
0.1635614037513733,
-0.07779008895158768,
-0.0890929251909256,
0.3411307632923126,
0.1897566169500351,
-0.07463952898979187,
0.3646358549594879,
0.10431894659996033,
-0.2784149944782257,
-0.046337272971868515,
0.09377667307853699,
-0.24161577224731445,
-0.13924600183963776,
0.2932825982570648,
-0.049425773322582245,
0.21002772450447083,
-0.22206267714500427,
0.030433259904384613,
-0.6043109893798828,
-0.050304070115089417,
0.19343551993370056,
-0.0807911828160286,
0.2918081283569336,
0.03415587544441223,
0.10029333829879761,
-0.19151334464550018,
0.491106241941452,
0.06943586468696594,
-0.07489392906427383,
-0.3047780394554138,
-0.22468291223049164,
-0.579849362373352,
0.1475735604763031,
-0.15494772791862488,
-0.05646636709570885,
0.009748517535626888,
0.2813647985458374,
-0.20153504610061646,
0.04944312945008278,
0.07764101028442383,
0.3546501398086548,
-0.04044162109494209,
-0.15757261216640472,
-0.38355469703674316,
0.016316084191203117,
0.005404263734817505,
-0.2268485426902771,
0.07368843257427216,
-0.4133268892765045,
0.24398772418498993,
-0.20116844773292542,
0.03681569546461105,
-0.12373088300228119,
0.05972924828529358,
-0.06897268444299698,
0.47976329922676086,
0.012969214469194412,
0.5052635073661804,
0.2816338539123535,
-0.23628267645835876,
-0.3487398028373718,
-0.165609672665596,
-0.14218731224536896,
-0.29679277539253235,
0.15791717171669006,
0.3191109001636505,
0.5874747037887573,
0.017295589670538902,
0.05495713651180267,
-0.360790491104126,
0.3801417946815491,
0.023944295942783356,
-0.18775172531604767,
0.024198217317461967,
0.32611700892448425,
-0.24118798971176147,
0.2674719989299774,
0.24738670885562897,
0.3860729932785034,
0.11262813955545425,
0.14903560280799866,
-0.2446991503238678,
-0.37139368057250977,
0.5164567232131958,
-0.183185413479805,
-0.22347165644168854,
-0.01189620140939951,
0.12572643160820007,
0.026465103030204773,
-0.1279565989971161,
-0.4188544452190399,
0.05670192092657089,
0.35806870460510254,
-0.10179197043180466,
-0.0891670286655426,
0.20007391273975372,
0.21828171610832214,
-0.20560018718242645,
-0.019860969856381416,
-0.09547373652458191,
0.3953026235103607,
-0.4314519762992859,
0.20405863225460052,
-0.07732624560594559
] |
https://github.com/huggingface/datasets/issues/331 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError` | In general if some examples are missing after processing (hence causing the `NonMatchingSplitsSizesError `), it is often due to either
1) corrupted cached files
2) decoding errors
I just checked the dataset script for code that could lead to decoding errors but I couldn't find any. Before we try to dive more into the processing of the dataset, could you try to clear your cache ? Just to make sure that it isn't 1) | ```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
``` | 74 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError`
```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
```
In general if some examples are missing after processing (hence causing the `NonMatchingSplitsSizesError `), it is often due to either
1) corrupted cached files
2) decoding errors
I just checked the dataset script for code that could lead to decoding errors but I couldn't find any. Before we try to dive more into the processing of the dataset, could you try to clear your cache ? Just to make sure that it isn't 1) | [
-0.14107026159763336,
-0.056987516582012177,
-0.008213799446821213,
0.20865733921527863,
0.07764871418476105,
0.09079559892416,
0.18330250680446625,
0.5251762866973877,
0.09873181581497192,
0.15423263609409332,
0.016297442838549614,
0.07699710875749588,
-0.314119815826416,
-0.04377371445298195,
-0.03358972817659378,
0.035900868475437164,
-0.18716806173324585,
0.25151246786117554,
0.04488750547170639,
-0.02299685776233673,
-0.2874321937561035,
0.28179118037223816,
-0.2087387591600418,
-0.03660028427839279,
-0.4835280179977417,
-0.2941966652870178,
0.014396650716662407,
0.36983680725097656,
0.037647657096385956,
-0.30936500430107117,
-0.054115332663059235,
-0.13485699892044067,
-0.18413861095905304,
0.1029716357588768,
-0.00011303211067570373,
0.11360619962215424,
0.3911178708076477,
-0.14332835376262665,
-0.48673778772354126,
0.009375989437103271,
-0.21043354272842407,
-0.4906255602836609,
0.08808935433626175,
-0.3546811044216156,
-0.15523478388786316,
0.025319427251815796,
0.09456367790699005,
-0.2195383757352829,
0.49692755937576294,
0.3904685378074646,
0.24021956324577332,
0.5636106729507446,
0.06623150408267975,
0.1633443534374237,
-0.08876887708902359,
-0.18095500767230988,
-0.1458706259727478,
-0.0048656705766916275,
-0.3178360164165497,
-0.15101270377635956,
-0.024242758750915527,
0.42894765734672546,
-0.0926201269030571,
0.1253480315208435,
-0.08723733574151993,
0.11025026440620422,
0.08894391357898712,
-0.16584660112857819,
0.09388178586959839,
0.13601818680763245,
-0.032907307147979736,
-0.07590695470571518,
-0.21139144897460938,
-0.4385596811771393,
-0.01606447622179985,
-0.39801865816116333,
0.2251276671886444,
0.21271724998950958,
-0.17450274527072906,
0.06538040935993195,
-0.3212825357913971,
0.0384896844625473,
-0.02947196736931801,
0.20340533554553986,
0.08193354308605194,
0.41119423508644104,
-0.10029764473438263,
0.02581198886036873,
0.05554541200399399,
-0.09011628478765488,
0.15675105154514313,
-0.17692814767360687,
0.15432502329349518,
0.0778360515832901,
-0.14576953649520874,
-0.04527810588479042,
0.1644643247127533,
-0.1484149992465973,
0.0430353507399559,
-0.06754811853170395,
0.17890958487987518,
-0.06210442632436752,
0.1744752675294876,
0.08687464892864227,
0.04706467315554619,
0.31252995133399963,
-0.01635052263736725,
0.26863256096839905,
0.12459880858659744,
0.2852095365524292,
0.0025184452533721924,
0.01810324564576149,
0.11720109730958939,
-0.00531881395727396,
0.1188487708568573,
0.22079896926879883,
0.37348419427871704,
-0.05925436317920685,
-0.3276313543319702,
0.13372236490249634,
-0.26271378993988037,
-0.2590237557888031,
-0.0015636784955859184,
0.25621896982192993,
-0.058301929384469986,
0.3132656216621399,
-0.06084255874156952,
-0.08145211637020111,
-0.3839431405067444,
-0.15473096072673798,
-0.38044771552085876,
0.17008015513420105,
-0.18440042436122894,
0.0808090940117836,
0.2795959413051605,
-0.0796261727809906,
0.4572223424911499,
-0.24975457787513733,
-0.014182709157466888,
-0.14726406335830688,
0.20933325588703156,
-0.039835840463638306,
0.025049224495887756,
0.283186137676239,
-0.13097219169139862,
0.17060762643814087,
0.25904378294944763,
0.16906899213790894,
-0.21274542808532715,
-0.08599650114774704,
-0.004009030759334564,
-0.6050634980201721,
0.18873333930969238,
0.24872957170009613,
0.059363625943660736,
-0.06869891285896301,
0.6144129037857056,
0.07587771117687225,
0.24875301122665405,
0.035049568861722946,
-0.16209083795547485,
-0.06983887404203415,
-0.01132112741470337,
-0.16849268972873688,
0.07564868777990341,
0.4380219578742981,
-0.23252244293689728,
-0.23690646886825562,
-0.013540389016270638,
-0.14192749559879303,
0.5154549479484558,
0.4340135157108307,
-0.10532074421644211,
0.04393964633345604,
-0.1265495866537094,
0.15382717549800873,
0.20038148760795593,
-0.15454033017158508,
-0.3955637514591217,
0.18983787298202515,
-0.08841180056333542,
0.20390497148036957,
0.2070535123348236,
0.19677655398845673,
-0.029445655643939972,
0.10163474828004837,
0.05391350015997887,
0.5395382642745972,
-0.2290867269039154,
0.10552295297384262,
-0.4344431459903717,
-0.43464410305023193,
0.35825198888778687,
0.056457895785570145,
0.2241695523262024,
-0.040838100016117096,
-0.06270583719015121,
0.43611085414886475,
0.211510568857193,
-0.11106240749359131,
0.037484101951122284,
0.03333768993616104,
-0.1516629010438919,
-0.11435335874557495,
0.01719260960817337,
-0.043171048164367676,
-0.4885503053665161,
0.13752323389053345,
-0.15719810128211975,
0.3005167841911316,
-0.050177201628685,
-0.10149224102497101,
-0.26270681619644165,
-0.1947331577539444,
-0.17500317096710205,
-0.2838498651981354,
0.21785694360733032,
0.22742362320423126,
0.2097201943397522,
0.0044359490275382996,
-0.2784236669540405,
0.3022129535675049,
-0.03140675649046898,
0.12140282243490219,
-0.5230278372764587,
0.26270395517349243,
-0.22790826857089996,
-0.181055948138237,
0.2639642059803009,
0.4298868179321289,
0.26417630910873413,
-0.15307733416557312,
-0.2832186222076416,
0.2833617329597473,
-0.08616244792938232,
0.23159700632095337,
-0.1480451226234436,
-0.15910236537456512,
0.11376610398292542,
-0.08145581185817719,
0.16977733373641968,
0.40259575843811035,
-0.03424306586384773,
-0.1033010184764862,
-0.11919417232275009,
0.4826924204826355,
0.04845811054110527,
0.0898771584033966,
0.14993372559547424,
-0.1141226515173912,
0.07726958394050598,
-0.13095785677433014,
0.11302841454744339,
-0.5237557888031006,
0.318745881319046,
-0.169630765914917,
0.21323105692863464,
-0.08782129734754562,
-0.25000739097595215,
0.053037360310554504,
0.681517481803894,
-0.02595704421401024,
0.09751446545124054,
0.020760292187333107,
-0.10262132436037064,
-0.2020811140537262,
-0.183786079287529,
0.15972526371479034,
0.3386714458465576,
0.24137738347053528,
0.18663817644119263,
0.247457817196846,
-0.17295768857002258,
-0.2860010266304016,
0.27237841486930847,
0.0954679474234581,
0.2538040280342102,
0.38594961166381836,
0.006088040303438902,
-0.002402198500931263,
-0.5314667820930481,
-0.024830829352140427,
0.013506656512618065,
0.374194860458374,
-0.22363512217998505,
-0.2018267959356308,
-0.43166014552116394,
-0.4015897512435913,
-0.17028754949569702,
-0.29878705739974976,
-0.1874067783355713,
-0.5853295922279358,
0.08001488447189331,
0.03005765937268734,
-0.12527377903461456,
0.162424236536026,
-0.15810304880142212,
0.23189134895801544,
0.2769710123538971,
-0.01656590960919857,
-0.19272972643375397,
-0.08131811767816544,
-0.13409575819969177,
0.07541069388389587,
0.17562641203403473,
0.038012102246284485,
0.328264057636261,
-0.13235585391521454,
-0.1795409768819809,
-0.02463063783943653,
-0.4010377824306488,
0.07767268270254135,
0.06737056374549866,
0.13974152505397797,
0.30479034781455994,
0.18001051247119904,
0.3312220573425293,
-0.335332989692688,
0.1972537636756897,
-0.24187158048152924,
-0.27702030539512634,
-0.008124844171106815,
0.0024516743142157793,
0.14319880306720734,
-0.23823101818561554,
-0.48101767897605896,
-0.43263673782348633,
-0.5125104188919067,
0.10095614939928055,
0.04884711280465126,
0.40666407346725464,
0.2704298496246338,
-0.2863160967826843,
0.1968378871679306,
-0.1210164874792099,
0.18222741782665253,
-0.25841647386550903,
-0.17760932445526123,
0.25029757618904114,
-0.2715805470943451,
-0.2704795002937317,
-0.12659505009651184,
-0.14869946241378784,
0.20489177107810974,
-0.2855268716812134,
-0.4239245057106018,
-0.32950761914253235,
-0.14588695764541626,
-0.052700113505125046,
0.10720054805278778,
-0.0558416023850441,
0.22967499494552612,
-0.012112392112612724,
-0.16541780531406403,
-0.03351162374019623,
-0.3873250484466553,
0.05341783165931702,
0.12507358193397522,
0.07020941376686096,
-0.09277168661355972,
0.6258095502853394,
0.06226544454693794,
0.5375288724899292,
0.371898889541626,
0.09344460070133209,
0.23146532475948334,
0.10950054228305817,
0.14843103289604187,
-0.012238755822181702,
-0.3427931070327759,
0.25061529874801636,
0.15182583034038544,
0.059252090752124786,
0.34880125522613525,
-0.051651403307914734,
-0.3857148289680481,
-0.08008389174938202,
-0.30467504262924194,
-0.46589070558547974,
-0.28062114119529724,
0.18112443387508392,
0.12481693178415298,
0.25791504979133606,
0.2710346281528473,
0.1946980059146881,
-0.17675679922103882,
-0.170081228017807,
-0.14580895006656647,
0.17277273535728455,
0.00598684698343277,
-0.03669288754463196,
-0.1083945482969284,
0.014189323410391808,
-0.6109696626663208,
0.2600284218788147,
0.006669630296528339,
0.6111475229263306,
-0.15705639123916626,
-0.06736598163843155,
-0.016853593289852142,
-0.28661003708839417,
0.36028116941452026,
-0.3092951476573944,
-0.05434155464172363,
0.1828867346048355,
-0.10957910120487213,
-0.35649630427360535,
-0.12057879567146301,
-0.15273517370224,
0.046325668692588806,
0.504290759563446,
0.5133957862854004,
-0.2715703547000885,
-0.282286137342453,
0.4173493981361389,
0.10568154603242874,
-0.19254635274410248,
-0.24053306877613068,
-0.2602212429046631,
-0.2365472912788391,
-0.3589518666267395,
-0.0029181912541389465,
-0.35495880246162415,
0.2806679904460907,
0.03478263318538666,
-0.049445442855358124,
-0.03679443150758743,
-0.24793019890785217,
0.17122185230255127,
0.023834478110074997,
-0.007558535784482956,
0.20605289936065674,
0.190296933054924,
0.2586171627044678,
0.3282206952571869,
-0.27770543098449707,
0.3211948275566101,
-0.04369369521737099,
0.013516277074813843,
-0.0866977721452713,
0.12573981285095215,
0.04572504758834839,
0.48612257838249207,
0.01708109676837921,
-0.01891613006591797,
0.2016191929578781,
0.3254525661468506,
-0.004442949779331684,
-0.033121973276138306,
0.44969257712364197,
-0.06196990981698036,
-0.41116198897361755,
-0.1648898422718048,
0.29971855878829956,
0.12319035828113556,
0.13616177439689636,
-0.13000215590000153,
-0.19739140570163727,
-0.24372176826000214,
0.12760251760482788,
0.11299002170562744,
0.7832134962081909,
0.2591174244880676,
0.06482286751270294,
0.35659584403038025,
-0.15499842166900635,
0.6783711910247803,
-0.21120621263980865,
0.25695866346359253,
-0.37061017751693726,
-0.3312225937843323,
-0.03791837766766548,
-0.11087707430124283,
0.31698185205459595,
0.10036629438400269,
-0.17701296508312225,
0.49021801352500916,
-0.12910741567611694,
-0.0994337946176529,
-0.06175502389669418,
0.46373575925827026,
-0.26057305932044983,
-0.14336387813091278,
-0.40016791224479675,
0.10669784247875214,
-0.19586263597011566,
0.35261833667755127,
-0.10239163041114807,
-0.19491930305957794,
0.2577720582485199,
-0.25908157229423523,
-0.07498223334550858,
0.2773516774177551,
-0.2684626281261444,
0.13984885811805725,
0.006161760538816452,
0.24019719660282135,
-0.221049964427948,
-0.3827371895313263,
0.31372934579849243,
-0.13551773130893707,
-0.03858790546655655,
-0.06919415295124054,
-0.26215147972106934,
-0.02418174035847187,
-0.10120692104101181,
0.10601221024990082,
0.4224320948123932,
-0.21872380375862122,
-0.11455748230218887,
0.020303595811128616,
-0.18857894837856293,
-0.16305270791053772,
-0.018977001309394836,
-0.03548513352870941,
0.1039891391992569,
-0.17091906070709229,
-0.1970956176519394,
0.095424585044384,
-0.2310500144958496,
-0.3154531419277191,
0.1461791694164276,
-0.05774340033531189,
-0.29068100452423096,
0.3077009916305542,
-0.08585144579410553,
-0.2809654474258423,
-0.25796493887901306,
0.2445218563079834,
0.169691801071167,
0.0508798211812973,
0.4922752380371094,
0.022502843290567398,
-0.2898045778274536,
-0.27908316254615784,
-0.030064567923545837,
0.026359528303146362,
-0.36133626103401184,
0.19981475174427032,
-0.08701234310865402,
-0.015575781464576721,
0.27552732825279236,
0.20519062876701355,
0.19970589876174927,
0.2912754416465759,
-0.23239246010780334,
-0.5686833262443542,
-0.1438734531402588,
0.06298437714576721,
-0.00536637008190155,
0.28937944769859314,
0.04663415998220444,
0.5640011429786682,
0.018357308581471443,
0.3612839877605438,
-0.35585933923721313,
0.03705987334251404,
-0.25321465730667114,
0.1774698942899704,
0.16446778178215027,
-0.28713276982307434,
0.47963011264801025,
0.3361743688583374,
0.18961001932621002,
0.18448370695114136,
-0.3276687562465668,
-0.23988190293312073,
-0.1398790329694748,
0.14599117636680603,
0.05286666378378868,
-0.15074826776981354,
0.1091264858841896,
0.021051768213510513,
-0.16266104578971863,
-0.07615965604782104,
-0.013169771991670132,
-0.11839143931865692,
-0.08799029886722565,
0.24678511917591095,
-0.042253848165273666,
-0.060315586626529694,
0.12027329206466675,
0.05636374652385712,
-0.12312076985836029,
0.3887261748313904,
-0.011862337589263916,
0.23062340915203094,
-0.23718124628067017,
0.045909613370895386,
-0.10559867322444916,
-0.10755337029695511,
0.049228738993406296,
0.01407087966799736,
0.28337493538856506,
-0.43506866693496704,
-0.28954893350601196,
0.16230449080467224,
0.23141920566558838,
0.2564544975757599,
-0.028592418879270554,
-0.1506040096282959,
0.1654754877090454,
0.22180195152759552,
-0.3195358216762543,
0.024543393403291702,
0.3671751022338867,
-0.003508377820253372,
0.32188302278518677,
0.353075236082077,
0.11874061822891235,
0.019552938640117645,
-0.050877898931503296,
0.08901367336511612,
0.21651877462863922,
-0.2659985423088074,
0.03685625642538071,
0.26313212513923645,
-0.11038605868816376,
-0.01508067175745964,
0.3015825152397156,
-0.12180212140083313,
0.3009927272796631,
0.23779384791851044,
-0.03177616745233536,
0.42949405312538147,
-0.03971777856349945,
0.3304130733013153,
-0.006971172988414764,
-0.21676670014858246,
0.1839851438999176,
0.4842493534088135,
-0.11200106143951416,
0.3832803964614868,
0.014789536595344543,
0.4105644226074219,
-0.2803663909435272,
0.014445574954152107,
-0.1774638295173645,
0.47217684984207153,
-0.14001253247261047,
0.09138692915439606,
-0.03362654149532318,
-0.09873771667480469,
-0.28677213191986084,
-0.006401205435395241,
0.07856146991252899,
0.0901603102684021,
0.15062271058559418,
0.11593030393123627,
-0.03764241933822632,
-0.33036643266677856,
-0.18787676095962524,
0.15899190306663513,
0.23829874396324158,
-0.3991437554359436,
0.30744028091430664,
0.27755141258239746,
-0.04233182966709137,
-0.15953785181045532,
0.6101232767105103,
0.34312382340431213,
0.3848830759525299,
-0.1388493925333023,
-0.020332012325525284,
0.1635614037513733,
-0.07779008895158768,
-0.0890929251909256,
0.3411307632923126,
0.1897566169500351,
-0.07463952898979187,
0.3646358549594879,
0.10431894659996033,
-0.2784149944782257,
-0.046337272971868515,
0.09377667307853699,
-0.24161577224731445,
-0.13924600183963776,
0.2932825982570648,
-0.049425773322582245,
0.21002772450447083,
-0.22206267714500427,
0.030433259904384613,
-0.6043109893798828,
-0.050304070115089417,
0.19343551993370056,
-0.0807911828160286,
0.2918081283569336,
0.03415587544441223,
0.10029333829879761,
-0.19151334464550018,
0.491106241941452,
0.06943586468696594,
-0.07489392906427383,
-0.3047780394554138,
-0.22468291223049164,
-0.579849362373352,
0.1475735604763031,
-0.15494772791862488,
-0.05646636709570885,
0.009748517535626888,
0.2813647985458374,
-0.20153504610061646,
0.04944312945008278,
0.07764101028442383,
0.3546501398086548,
-0.04044162109494209,
-0.15757261216640472,
-0.38355469703674316,
0.016316084191203117,
0.005404263734817505,
-0.2268485426902771,
0.07368843257427216,
-0.4133268892765045,
0.24398772418498993,
-0.20116844773292542,
0.03681569546461105,
-0.12373088300228119,
0.05972924828529358,
-0.06897268444299698,
0.47976329922676086,
0.012969214469194412,
0.5052635073661804,
0.2816338539123535,
-0.23628267645835876,
-0.3487398028373718,
-0.165609672665596,
-0.14218731224536896,
-0.29679277539253235,
0.15791717171669006,
0.3191109001636505,
0.5874747037887573,
0.017295589670538902,
0.05495713651180267,
-0.360790491104126,
0.3801417946815491,
0.023944295942783356,
-0.18775172531604767,
0.024198217317461967,
0.32611700892448425,
-0.24118798971176147,
0.2674719989299774,
0.24738670885562897,
0.3860729932785034,
0.11262813955545425,
0.14903560280799866,
-0.2446991503238678,
-0.37139368057250977,
0.5164567232131958,
-0.183185413479805,
-0.22347165644168854,
-0.01189620140939951,
0.12572643160820007,
0.026465103030204773,
-0.1279565989971161,
-0.4188544452190399,
0.05670192092657089,
0.35806870460510254,
-0.10179197043180466,
-0.0891670286655426,
0.20007391273975372,
0.21828171610832214,
-0.20560018718242645,
-0.019860969856381416,
-0.09547373652458191,
0.3953026235103607,
-0.4314519762992859,
0.20405863225460052,
-0.07732624560594559
] |
https://github.com/huggingface/datasets/issues/331 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError` | Yes thanks for the support! I cleared out my cache folder and everything works fine now | ```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
``` | 16 | Loading CNN/Daily Mail dataset produces `nlp.utils.info_utils.NonMatchingSplitsSizesError`
```
>>> import nlp
>>> nlp.load_dataset('cnn_dailymail', '3.0.0')
Downloading and preparing dataset cnn_dailymail/3.0.0 (download: 558.32 MiB, generated: 1.26 GiB, total: 1.81 GiB) to /u/jm8wx/.cache/huggingface/datasets/cnn_dailymail/3.0.0/3.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/load.py", line 520, in load_dataset
builder_instance.download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 431, in download_and_prepare
self._download_and_prepare(
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/builder.py", line 488, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/p/qdata/jm8wx/datasets/nlp/src/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='test', num_bytes=49424491, num_examples=11490, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='test', num_bytes=48931393, num_examples=11379, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='train', num_bytes=1249178681, num_examples=287113, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='train', num_bytes=1240618482, num_examples=285161, dataset_name='cnn_dailymail')}, {'expected': SplitInfo(name='validation', num_bytes=57149241, num_examples=13368, dataset_name='cnn_dailymail'), 'recorded': SplitInfo(name='validation', num_bytes=56637485, num_examples=13255, dataset_name='cnn_dailymail')}]
```
Yes thanks for the support! I cleared out my cache folder and everything works fine now | [
-0.14107026159763336,
-0.056987516582012177,
-0.008213799446821213,
0.20865733921527863,
0.07764871418476105,
0.09079559892416,
0.18330250680446625,
0.5251762866973877,
0.09873181581497192,
0.15423263609409332,
0.016297442838549614,
0.07699710875749588,
-0.314119815826416,
-0.04377371445298195,
-0.03358972817659378,
0.035900868475437164,
-0.18716806173324585,
0.25151246786117554,
0.04488750547170639,
-0.02299685776233673,
-0.2874321937561035,
0.28179118037223816,
-0.2087387591600418,
-0.03660028427839279,
-0.4835280179977417,
-0.2941966652870178,
0.014396650716662407,
0.36983680725097656,
0.037647657096385956,
-0.30936500430107117,
-0.054115332663059235,
-0.13485699892044067,
-0.18413861095905304,
0.1029716357588768,
-0.00011303211067570373,
0.11360619962215424,
0.3911178708076477,
-0.14332835376262665,
-0.48673778772354126,
0.009375989437103271,
-0.21043354272842407,
-0.4906255602836609,
0.08808935433626175,
-0.3546811044216156,
-0.15523478388786316,
0.025319427251815796,
0.09456367790699005,
-0.2195383757352829,
0.49692755937576294,
0.3904685378074646,
0.24021956324577332,
0.5636106729507446,
0.06623150408267975,
0.1633443534374237,
-0.08876887708902359,
-0.18095500767230988,
-0.1458706259727478,
-0.0048656705766916275,
-0.3178360164165497,
-0.15101270377635956,
-0.024242758750915527,
0.42894765734672546,
-0.0926201269030571,
0.1253480315208435,
-0.08723733574151993,
0.11025026440620422,
0.08894391357898712,
-0.16584660112857819,
0.09388178586959839,
0.13601818680763245,
-0.032907307147979736,
-0.07590695470571518,
-0.21139144897460938,
-0.4385596811771393,
-0.01606447622179985,
-0.39801865816116333,
0.2251276671886444,
0.21271724998950958,
-0.17450274527072906,
0.06538040935993195,
-0.3212825357913971,
0.0384896844625473,
-0.02947196736931801,
0.20340533554553986,
0.08193354308605194,
0.41119423508644104,
-0.10029764473438263,
0.02581198886036873,
0.05554541200399399,
-0.09011628478765488,
0.15675105154514313,
-0.17692814767360687,
0.15432502329349518,
0.0778360515832901,
-0.14576953649520874,
-0.04527810588479042,
0.1644643247127533,
-0.1484149992465973,
0.0430353507399559,
-0.06754811853170395,
0.17890958487987518,
-0.06210442632436752,
0.1744752675294876,
0.08687464892864227,
0.04706467315554619,
0.31252995133399963,
-0.01635052263736725,
0.26863256096839905,
0.12459880858659744,
0.2852095365524292,
0.0025184452533721924,
0.01810324564576149,
0.11720109730958939,
-0.00531881395727396,
0.1188487708568573,
0.22079896926879883,
0.37348419427871704,
-0.05925436317920685,
-0.3276313543319702,
0.13372236490249634,
-0.26271378993988037,
-0.2590237557888031,
-0.0015636784955859184,
0.25621896982192993,
-0.058301929384469986,
0.3132656216621399,
-0.06084255874156952,
-0.08145211637020111,
-0.3839431405067444,
-0.15473096072673798,
-0.38044771552085876,
0.17008015513420105,
-0.18440042436122894,
0.0808090940117836,
0.2795959413051605,
-0.0796261727809906,
0.4572223424911499,
-0.24975457787513733,
-0.014182709157466888,
-0.14726406335830688,
0.20933325588703156,
-0.039835840463638306,
0.025049224495887756,
0.283186137676239,
-0.13097219169139862,
0.17060762643814087,
0.25904378294944763,
0.16906899213790894,
-0.21274542808532715,
-0.08599650114774704,
-0.004009030759334564,
-0.6050634980201721,
0.18873333930969238,
0.24872957170009613,
0.059363625943660736,
-0.06869891285896301,
0.6144129037857056,
0.07587771117687225,
0.24875301122665405,
0.035049568861722946,
-0.16209083795547485,
-0.06983887404203415,
-0.01132112741470337,
-0.16849268972873688,
0.07564868777990341,
0.4380219578742981,
-0.23252244293689728,
-0.23690646886825562,
-0.013540389016270638,
-0.14192749559879303,
0.5154549479484558,
0.4340135157108307,
-0.10532074421644211,
0.04393964633345604,
-0.1265495866537094,
0.15382717549800873,
0.20038148760795593,
-0.15454033017158508,
-0.3955637514591217,
0.18983787298202515,
-0.08841180056333542,
0.20390497148036957,
0.2070535123348236,
0.19677655398845673,
-0.029445655643939972,
0.10163474828004837,
0.05391350015997887,
0.5395382642745972,
-0.2290867269039154,
0.10552295297384262,
-0.4344431459903717,
-0.43464410305023193,
0.35825198888778687,
0.056457895785570145,
0.2241695523262024,
-0.040838100016117096,
-0.06270583719015121,
0.43611085414886475,
0.211510568857193,
-0.11106240749359131,
0.037484101951122284,
0.03333768993616104,
-0.1516629010438919,
-0.11435335874557495,
0.01719260960817337,
-0.043171048164367676,
-0.4885503053665161,
0.13752323389053345,
-0.15719810128211975,
0.3005167841911316,
-0.050177201628685,
-0.10149224102497101,
-0.26270681619644165,
-0.1947331577539444,
-0.17500317096710205,
-0.2838498651981354,
0.21785694360733032,
0.22742362320423126,
0.2097201943397522,
0.0044359490275382996,
-0.2784236669540405,
0.3022129535675049,
-0.03140675649046898,
0.12140282243490219,
-0.5230278372764587,
0.26270395517349243,
-0.22790826857089996,
-0.181055948138237,
0.2639642059803009,
0.4298868179321289,
0.26417630910873413,
-0.15307733416557312,
-0.2832186222076416,
0.2833617329597473,
-0.08616244792938232,
0.23159700632095337,
-0.1480451226234436,
-0.15910236537456512,
0.11376610398292542,
-0.08145581185817719,
0.16977733373641968,
0.40259575843811035,
-0.03424306586384773,
-0.1033010184764862,
-0.11919417232275009,
0.4826924204826355,
0.04845811054110527,
0.0898771584033966,
0.14993372559547424,
-0.1141226515173912,
0.07726958394050598,
-0.13095785677433014,
0.11302841454744339,
-0.5237557888031006,
0.318745881319046,
-0.169630765914917,
0.21323105692863464,
-0.08782129734754562,
-0.25000739097595215,
0.053037360310554504,
0.681517481803894,
-0.02595704421401024,
0.09751446545124054,
0.020760292187333107,
-0.10262132436037064,
-0.2020811140537262,
-0.183786079287529,
0.15972526371479034,
0.3386714458465576,
0.24137738347053528,
0.18663817644119263,
0.247457817196846,
-0.17295768857002258,
-0.2860010266304016,
0.27237841486930847,
0.0954679474234581,
0.2538040280342102,
0.38594961166381836,
0.006088040303438902,
-0.002402198500931263,
-0.5314667820930481,
-0.024830829352140427,
0.013506656512618065,
0.374194860458374,
-0.22363512217998505,
-0.2018267959356308,
-0.43166014552116394,
-0.4015897512435913,
-0.17028754949569702,
-0.29878705739974976,
-0.1874067783355713,
-0.5853295922279358,
0.08001488447189331,
0.03005765937268734,
-0.12527377903461456,
0.162424236536026,
-0.15810304880142212,
0.23189134895801544,
0.2769710123538971,
-0.01656590960919857,
-0.19272972643375397,
-0.08131811767816544,
-0.13409575819969177,
0.07541069388389587,
0.17562641203403473,
0.038012102246284485,
0.328264057636261,
-0.13235585391521454,
-0.1795409768819809,
-0.02463063783943653,
-0.4010377824306488,
0.07767268270254135,
0.06737056374549866,
0.13974152505397797,
0.30479034781455994,
0.18001051247119904,
0.3312220573425293,
-0.335332989692688,
0.1972537636756897,
-0.24187158048152924,
-0.27702030539512634,
-0.008124844171106815,
0.0024516743142157793,
0.14319880306720734,
-0.23823101818561554,
-0.48101767897605896,
-0.43263673782348633,
-0.5125104188919067,
0.10095614939928055,
0.04884711280465126,
0.40666407346725464,
0.2704298496246338,
-0.2863160967826843,
0.1968378871679306,
-0.1210164874792099,
0.18222741782665253,
-0.25841647386550903,
-0.17760932445526123,
0.25029757618904114,
-0.2715805470943451,
-0.2704795002937317,
-0.12659505009651184,
-0.14869946241378784,
0.20489177107810974,
-0.2855268716812134,
-0.4239245057106018,
-0.32950761914253235,
-0.14588695764541626,
-0.052700113505125046,
0.10720054805278778,
-0.0558416023850441,
0.22967499494552612,
-0.012112392112612724,
-0.16541780531406403,
-0.03351162374019623,
-0.3873250484466553,
0.05341783165931702,
0.12507358193397522,
0.07020941376686096,
-0.09277168661355972,
0.6258095502853394,
0.06226544454693794,
0.5375288724899292,
0.371898889541626,
0.09344460070133209,
0.23146532475948334,
0.10950054228305817,
0.14843103289604187,
-0.012238755822181702,
-0.3427931070327759,
0.25061529874801636,
0.15182583034038544,
0.059252090752124786,
0.34880125522613525,
-0.051651403307914734,
-0.3857148289680481,
-0.08008389174938202,
-0.30467504262924194,
-0.46589070558547974,
-0.28062114119529724,
0.18112443387508392,
0.12481693178415298,
0.25791504979133606,
0.2710346281528473,
0.1946980059146881,
-0.17675679922103882,
-0.170081228017807,
-0.14580895006656647,
0.17277273535728455,
0.00598684698343277,
-0.03669288754463196,
-0.1083945482969284,
0.014189323410391808,
-0.6109696626663208,
0.2600284218788147,
0.006669630296528339,
0.6111475229263306,
-0.15705639123916626,
-0.06736598163843155,
-0.016853593289852142,
-0.28661003708839417,
0.36028116941452026,
-0.3092951476573944,
-0.05434155464172363,
0.1828867346048355,
-0.10957910120487213,
-0.35649630427360535,
-0.12057879567146301,
-0.15273517370224,
0.046325668692588806,
0.504290759563446,
0.5133957862854004,
-0.2715703547000885,
-0.282286137342453,
0.4173493981361389,
0.10568154603242874,
-0.19254635274410248,
-0.24053306877613068,
-0.2602212429046631,
-0.2365472912788391,
-0.3589518666267395,
-0.0029181912541389465,
-0.35495880246162415,
0.2806679904460907,
0.03478263318538666,
-0.049445442855358124,
-0.03679443150758743,
-0.24793019890785217,
0.17122185230255127,
0.023834478110074997,
-0.007558535784482956,
0.20605289936065674,
0.190296933054924,
0.2586171627044678,
0.3282206952571869,
-0.27770543098449707,
0.3211948275566101,
-0.04369369521737099,
0.013516277074813843,
-0.0866977721452713,
0.12573981285095215,
0.04572504758834839,
0.48612257838249207,
0.01708109676837921,
-0.01891613006591797,
0.2016191929578781,
0.3254525661468506,
-0.004442949779331684,
-0.033121973276138306,
0.44969257712364197,
-0.06196990981698036,
-0.41116198897361755,
-0.1648898422718048,
0.29971855878829956,
0.12319035828113556,
0.13616177439689636,
-0.13000215590000153,
-0.19739140570163727,
-0.24372176826000214,
0.12760251760482788,
0.11299002170562744,
0.7832134962081909,
0.2591174244880676,
0.06482286751270294,
0.35659584403038025,
-0.15499842166900635,
0.6783711910247803,
-0.21120621263980865,
0.25695866346359253,
-0.37061017751693726,
-0.3312225937843323,
-0.03791837766766548,
-0.11087707430124283,
0.31698185205459595,
0.10036629438400269,
-0.17701296508312225,
0.49021801352500916,
-0.12910741567611694,
-0.0994337946176529,
-0.06175502389669418,
0.46373575925827026,
-0.26057305932044983,
-0.14336387813091278,
-0.40016791224479675,
0.10669784247875214,
-0.19586263597011566,
0.35261833667755127,
-0.10239163041114807,
-0.19491930305957794,
0.2577720582485199,
-0.25908157229423523,
-0.07498223334550858,
0.2773516774177551,
-0.2684626281261444,
0.13984885811805725,
0.006161760538816452,
0.24019719660282135,
-0.221049964427948,
-0.3827371895313263,
0.31372934579849243,
-0.13551773130893707,
-0.03858790546655655,
-0.06919415295124054,
-0.26215147972106934,
-0.02418174035847187,
-0.10120692104101181,
0.10601221024990082,
0.4224320948123932,
-0.21872380375862122,
-0.11455748230218887,
0.020303595811128616,
-0.18857894837856293,
-0.16305270791053772,
-0.018977001309394836,
-0.03548513352870941,
0.1039891391992569,
-0.17091906070709229,
-0.1970956176519394,
0.095424585044384,
-0.2310500144958496,
-0.3154531419277191,
0.1461791694164276,
-0.05774340033531189,
-0.29068100452423096,
0.3077009916305542,
-0.08585144579410553,
-0.2809654474258423,
-0.25796493887901306,
0.2445218563079834,
0.169691801071167,
0.0508798211812973,
0.4922752380371094,
0.022502843290567398,
-0.2898045778274536,
-0.27908316254615784,
-0.030064567923545837,
0.026359528303146362,
-0.36133626103401184,
0.19981475174427032,
-0.08701234310865402,
-0.015575781464576721,
0.27552732825279236,
0.20519062876701355,
0.19970589876174927,
0.2912754416465759,
-0.23239246010780334,
-0.5686833262443542,
-0.1438734531402588,
0.06298437714576721,
-0.00536637008190155,
0.28937944769859314,
0.04663415998220444,
0.5640011429786682,
0.018357308581471443,
0.3612839877605438,
-0.35585933923721313,
0.03705987334251404,
-0.25321465730667114,
0.1774698942899704,
0.16446778178215027,
-0.28713276982307434,
0.47963011264801025,
0.3361743688583374,
0.18961001932621002,
0.18448370695114136,
-0.3276687562465668,
-0.23988190293312073,
-0.1398790329694748,
0.14599117636680603,
0.05286666378378868,
-0.15074826776981354,
0.1091264858841896,
0.021051768213510513,
-0.16266104578971863,
-0.07615965604782104,
-0.013169771991670132,
-0.11839143931865692,
-0.08799029886722565,
0.24678511917591095,
-0.042253848165273666,
-0.060315586626529694,
0.12027329206466675,
0.05636374652385712,
-0.12312076985836029,
0.3887261748313904,
-0.011862337589263916,
0.23062340915203094,
-0.23718124628067017,
0.045909613370895386,
-0.10559867322444916,
-0.10755337029695511,
0.049228738993406296,
0.01407087966799736,
0.28337493538856506,
-0.43506866693496704,
-0.28954893350601196,
0.16230449080467224,
0.23141920566558838,
0.2564544975757599,
-0.028592418879270554,
-0.1506040096282959,
0.1654754877090454,
0.22180195152759552,
-0.3195358216762543,
0.024543393403291702,
0.3671751022338867,
-0.003508377820253372,
0.32188302278518677,
0.353075236082077,
0.11874061822891235,
0.019552938640117645,
-0.050877898931503296,
0.08901367336511612,
0.21651877462863922,
-0.2659985423088074,
0.03685625642538071,
0.26313212513923645,
-0.11038605868816376,
-0.01508067175745964,
0.3015825152397156,
-0.12180212140083313,
0.3009927272796631,
0.23779384791851044,
-0.03177616745233536,
0.42949405312538147,
-0.03971777856349945,
0.3304130733013153,
-0.006971172988414764,
-0.21676670014858246,
0.1839851438999176,
0.4842493534088135,
-0.11200106143951416,
0.3832803964614868,
0.014789536595344543,
0.4105644226074219,
-0.2803663909435272,
0.014445574954152107,
-0.1774638295173645,
0.47217684984207153,
-0.14001253247261047,
0.09138692915439606,
-0.03362654149532318,
-0.09873771667480469,
-0.28677213191986084,
-0.006401205435395241,
0.07856146991252899,
0.0901603102684021,
0.15062271058559418,
0.11593030393123627,
-0.03764241933822632,
-0.33036643266677856,
-0.18787676095962524,
0.15899190306663513,
0.23829874396324158,
-0.3991437554359436,
0.30744028091430664,
0.27755141258239746,
-0.04233182966709137,
-0.15953785181045532,
0.6101232767105103,
0.34312382340431213,
0.3848830759525299,
-0.1388493925333023,
-0.020332012325525284,
0.1635614037513733,
-0.07779008895158768,
-0.0890929251909256,
0.3411307632923126,
0.1897566169500351,
-0.07463952898979187,
0.3646358549594879,
0.10431894659996033,
-0.2784149944782257,
-0.046337272971868515,
0.09377667307853699,
-0.24161577224731445,
-0.13924600183963776,
0.2932825982570648,
-0.049425773322582245,
0.21002772450447083,
-0.22206267714500427,
0.030433259904384613,
-0.6043109893798828,
-0.050304070115089417,
0.19343551993370056,
-0.0807911828160286,
0.2918081283569336,
0.03415587544441223,
0.10029333829879761,
-0.19151334464550018,
0.491106241941452,
0.06943586468696594,
-0.07489392906427383,
-0.3047780394554138,
-0.22468291223049164,
-0.579849362373352,
0.1475735604763031,
-0.15494772791862488,
-0.05646636709570885,
0.009748517535626888,
0.2813647985458374,
-0.20153504610061646,
0.04944312945008278,
0.07764101028442383,
0.3546501398086548,
-0.04044162109494209,
-0.15757261216640472,
-0.38355469703674316,
0.016316084191203117,
0.005404263734817505,
-0.2268485426902771,
0.07368843257427216,
-0.4133268892765045,
0.24398772418498993,
-0.20116844773292542,
0.03681569546461105,
-0.12373088300228119,
0.05972924828529358,
-0.06897268444299698,
0.47976329922676086,
0.012969214469194412,
0.5052635073661804,
0.2816338539123535,
-0.23628267645835876,
-0.3487398028373718,
-0.165609672665596,
-0.14218731224536896,
-0.29679277539253235,
0.15791717171669006,
0.3191109001636505,
0.5874747037887573,
0.017295589670538902,
0.05495713651180267,
-0.360790491104126,
0.3801417946815491,
0.023944295942783356,
-0.18775172531604767,
0.024198217317461967,
0.32611700892448425,
-0.24118798971176147,
0.2674719989299774,
0.24738670885562897,
0.3860729932785034,
0.11262813955545425,
0.14903560280799866,
-0.2446991503238678,
-0.37139368057250977,
0.5164567232131958,
-0.183185413479805,
-0.22347165644168854,
-0.01189620140939951,
0.12572643160820007,
0.026465103030204773,
-0.1279565989971161,
-0.4188544452190399,
0.05670192092657089,
0.35806870460510254,
-0.10179197043180466,
-0.0891670286655426,
0.20007391273975372,
0.21828171610832214,
-0.20560018718242645,
-0.019860969856381416,
-0.09547373652458191,
0.3953026235103607,
-0.4314519762992859,
0.20405863225460052,
-0.07732624560594559
] |
https://github.com/huggingface/datasets/issues/329 | [Bug] FileLock dependency incompatible with filesystem | Environment is Ubuntu 18.04, Python 3.7.5, nlp==0.3.0, filelock=3.0.12.
The external volume is Amazon FSx for Lustre, and it by default creates files with limited permissions. My working theory is that FileLock creates a lockfile that isn't writable, and thus there's no way to acquire it by removing the .lock file. But Python is able to create new files and write to them outside of the FileLock package.
When I attempt to use FileLock within a Docker container by writing to `/root/.cache/hello.txt`, it succeeds. So there's some permissions issue. But it's not a Docker configuration issue; I've replicated it without Docker.
```bash
echo "hello world" >> hello.txt
ls -l
-rw-rw-r-- 1 ubuntu ubuntu 10 Jun 30 19:52 hello.txt
``` | I'm downloading a dataset successfully with
`load_dataset("wikitext", "wikitext-2-raw-v1")`
But when I attempt to cache it on an external volume, it hangs indefinitely:
`load_dataset("wikitext", "wikitext-2-raw-v1", cache_dir="/fsx") # /fsx is an external volume mount`
The filesystem when hanging looks like this:
```bash
/fsx
----downloads
----94be...73.lock
----wikitext
----wikitext-2-raw
----wikitext-2-raw-1.0.0.incomplete
```
It appears that on this filesystem, the FileLock object is forever stuck in its "acquire" stage. I have verified that the issue lies specifically with the `filelock` dependency:
```python
open("/fsx/hello.txt").write("hello") # succeeds
from filelock import FileLock
with FileLock("/fsx/hello.lock"):
open("/fsx/hello.txt").write("hello") # hangs indefinitely
```
Has anyone else run into this issue? I'd raise it directly on the FileLock repo, but that project appears abandoned with the last update over a year ago. Or if there's a solution that would remove the FileLock dependency from the project, I would appreciate that. | 118 | [Bug] FileLock dependency incompatible with filesystem
I'm downloading a dataset successfully with
`load_dataset("wikitext", "wikitext-2-raw-v1")`
But when I attempt to cache it on an external volume, it hangs indefinitely:
`load_dataset("wikitext", "wikitext-2-raw-v1", cache_dir="/fsx") # /fsx is an external volume mount`
The filesystem when hanging looks like this:
```bash
/fsx
----downloads
----94be...73.lock
----wikitext
----wikitext-2-raw
----wikitext-2-raw-1.0.0.incomplete
```
It appears that on this filesystem, the FileLock object is forever stuck in its "acquire" stage. I have verified that the issue lies specifically with the `filelock` dependency:
```python
open("/fsx/hello.txt").write("hello") # succeeds
from filelock import FileLock
with FileLock("/fsx/hello.lock"):
open("/fsx/hello.txt").write("hello") # hangs indefinitely
```
Has anyone else run into this issue? I'd raise it directly on the FileLock repo, but that project appears abandoned with the last update over a year ago. Or if there's a solution that would remove the FileLock dependency from the project, I would appreciate that.
Environment is Ubuntu 18.04, Python 3.7.5, nlp==0.3.0, filelock=3.0.12.
The external volume is Amazon FSx for Lustre, and it by default creates files with limited permissions. My working theory is that FileLock creates a lockfile that isn't writable, and thus there's no way to acquire it by removing the .lock file. But Python is able to create new files and write to them outside of the FileLock package.
When I attempt to use FileLock within a Docker container by writing to `/root/.cache/hello.txt`, it succeeds. So there's some permissions issue. But it's not a Docker configuration issue; I've replicated it without Docker.
```bash
echo "hello world" >> hello.txt
ls -l
-rw-rw-r-- 1 ubuntu ubuntu 10 Jun 30 19:52 hello.txt
``` | [
0.03299211338162422,
0.07716061174869537,
-0.025030290707945824,
0.027964487671852112,
0.0889829471707344,
0.15139424800872803,
0.3646972179412842,
0.06515288352966309,
0.7094060182571411,
-0.09789621829986572,
0.09096723794937134,
-0.005119221284985542,
0.021446408703923225,
-0.3159700036048889,
-0.20953677594661713,
0.2686360478401184,
0.1863839030265808,
0.06676553934812546,
0.00556858628988266,
0.004701737314462662,
-0.06932388991117477,
0.35215362906455994,
-0.1633293628692627,
-0.27515721321105957,
-0.7754427790641785,
0.12064479291439056,
0.036554500460624695,
0.043168965727090836,
-0.278468519449234,
0.0024246154353022575,
0.4160516858100891,
0.5284096598625183,
-0.08161216974258423,
0.49658817052841187,
-0.00012268550926819444,
-0.19482997059822083,
0.20045790076255798,
-0.03611984848976135,
-0.17465093731880188,
-0.2742002010345459,
-0.21648931503295898,
-0.32658737897872925,
0.10970564186573029,
-0.11288806051015854,
0.19445356726646423,
-0.22415727376937866,
0.09198775887489319,
-0.499585896730423,
0.33371660113334656,
-0.04107249900698662,
0.0680704191327095,
0.23607203364372253,
0.25428175926208496,
-0.026947667822241783,
0.38728031516075134,
-0.22969816625118256,
-0.22160014510154724,
0.5681554079055786,
0.4567059278488159,
-0.2117672562599182,
-0.1409660279750824,
-0.036995772272348404,
-0.01297135278582573,
-0.06793312728404999,
0.594862699508667,
-0.19769689440727234,
0.3488733768463135,
-0.2678505480289459,
-0.10128284245729446,
0.3191518187522888,
0.614564061164856,
-0.044102609157562256,
-0.5926794409751892,
-0.247134268283844,
0.32728826999664307,
0.14552904665470123,
0.5233206152915955,
0.06664112955331802,
-0.0742335170507431,
0.3606698215007782,
0.05227473005652428,
-0.15908312797546387,
0.045744143426418304,
0.022410083562135696,
-0.11978031694889069,
0.22163404524326324,
0.14536011219024658,
0.008486010134220123,
0.1708887666463852,
-0.08060596138238907,
0.30883175134658813,
-0.1967710703611374,
0.006690364331007004,
0.0987604409456253,
-0.45496565103530884,
0.1360245943069458,
0.021312177181243896,
0.10143142193555832,
-0.14034950733184814,
-0.2220832258462906,
-0.47765734791755676,
0.18745934963226318,
0.0509258434176445,
0.35999298095703125,
0.1120271384716034,
0.16943562030792236,
0.05244378745555878,
0.08516797423362732,
0.2234935611486435,
-0.03801342472434044,
-0.27116042375564575,
0.06752490997314453,
-0.05403405427932739,
-0.1094275712966919,
0.10894578695297241,
-0.07562043517827988,
0.02649746835231781,
-0.3769020438194275,
0.1710464358329773,
0.16992972791194916,
0.044321924448013306,
0.380129873752594,
0.15774841606616974,
0.031645767390728,
0.11082058399915695,
0.4331034719944,
0.19749723374843597,
0.004986308515071869,
-0.1965520977973938,
0.34372469782829285,
-0.03236152604222298,
-0.09846444427967072,
0.06904992461204529,
0.09309959411621094,
0.03244062140583992,
0.2763165235519409,
0.1785532385110855,
0.15656624734401703,
0.3272790312767029,
0.10147663950920105,
0.23521101474761963,
-0.15812739729881287,
-0.12768346071243286,
0.39319440722465515,
-0.13779735565185547,
0.07544668763875961,
0.024319961667060852,
-0.03101927414536476,
-0.0276714526116848,
0.036791667342185974,
-0.19250822067260742,
0.06913973391056061,
-0.09970112144947052,
0.026319000869989395,
-0.3808283805847168,
0.11001834273338318,
0.16205786168575287,
-0.24640686810016632,
-0.1027880534529686,
-0.42547541856765747,
0.06687696278095245,
-0.47218191623687744,
-0.060958098620176315,
-0.0015062617603689432,
-0.05177842080593109,
0.3292959928512573,
-0.27784350514411926,
-0.054649658501148224,
0.25907203555107117,
-0.038063887506723404,
-0.12230623513460159,
0.22851786017417908,
-0.08114460855722427,
0.10599524527788162,
-0.2078048139810562,
0.0991862565279007,
-0.026137448847293854,
-0.48183634877204895,
-0.7829108238220215,
0.24228554964065552,
-0.28955602645874023,
0.25577670335769653,
0.1629287600517273,
0.3792770206928253,
0.10211645811796188,
-0.2274313122034073,
0.09922400116920471,
0.3591868281364441,
0.12148497253656387,
-0.21708975732326508,
-0.06384535133838654,
-0.28457656502723694,
-0.20173150300979614,
0.06886041164398193,
0.011160515248775482,
0.22234860062599182,
0.018059909343719482,
0.6689184904098511,
0.21162891387939453,
0.005539972335100174,
0.005057991947978735,
0.5441514849662781,
0.6210243105888367,
0.08369933068752289,
0.008120512589812279,
-0.13227485120296478,
-0.6575937867164612,
0.5051038861274719,
-0.44281330704689026,
-0.07979770004749298,
-0.20080970227718353,
-0.07274574041366577,
0.11742747575044632,
-0.012200279161334038,
-0.06911014020442963,
0.147226020693779,
0.05743494629859924,
-0.07900434732437134,
0.07553112506866455,
0.17507191002368927,
0.08998331427574158,
0.3439251780509949,
0.012508286163210869,
-0.020002489909529686,
-0.05906941369175911,
-0.0895979255437851,
0.16309629380702972,
-0.18677042424678802,
0.05386163294315338,
-0.06380369514226913,
0.1063682809472084,
-0.21415697038173676,
-0.16059818863868713,
0.23698297142982483,
0.34733879566192627,
0.29536980390548706,
-0.27419623732566833,
0.38014233112335205,
0.0418262779712677,
0.4804564416408539,
-0.19654369354248047,
-0.08989964425563812,
0.10891975462436676,
-0.2300201952457428,
0.03612498566508293,
0.09477940946817398,
-0.21915219724178314,
0.09280482679605484,
-0.20778793096542358,
0.056160591542720795,
0.09117769449949265,
0.045353177934885025,
-0.16885635256767273,
-0.026935063302516937,
0.2806839048862457,
-0.009157910943031311,
0.2706618905067444,
-0.1058415025472641,
0.6271886825561523,
0.06708943843841553,
0.36684367060661316,
0.14960560202598572,
0.051643699407577515,
0.04940013587474823,
0.0035037249326705933,
-0.11433563381433487,
0.01667586714029312,
0.37751832604408264,
0.49882936477661133,
0.101726233959198,
0.2889336049556732,
-0.21647115051746368,
0.2117229551076889,
-0.2904098927974701,
0.05431782454252243,
-0.12548527121543884,
-0.2110741138458252,
0.3450731933116913,
0.13419128954410553,
-0.106829933822155,
0.1315159797668457,
-0.2868645191192627,
0.12568609416484833,
0.020574983209371567,
0.12689481675624847,
0.11325790733098984,
-0.35152682662010193,
0.5667672753334045,
0.20868290960788727,
0.19332291185855865,
-0.2534317374229431,
-0.46448826789855957,
0.10596366971731186,
0.7339769601821899,
0.15229667723178864,
0.06924521178007126,
-0.42194634675979614,
-0.0498642772436142,
0.03903460502624512,
-0.33371683955192566,
-0.039952218532562256,
-0.3362484574317932,
-0.002623174339532852,
-0.11624017357826233,
0.5531215667724609,
0.03840625286102295,
0.14482548832893372,
0.10034328699111938,
-0.32462078332901,
-0.39312827587127686,
-0.1838722974061966,
0.14991258084774017,
-0.09260919690132141,
0.43561047315597534,
0.058488622307777405,
0.16341182589530945,
-0.10186397284269333,
0.03856375068426132,
-0.019283045083284378,
-0.3886207640171051,
-0.029442526400089264,
-0.09757934510707855,
-0.030310537666082382,
-0.10974504053592682,
-0.23691169917583466,
0.17183956503868103,
-0.16605281829833984,
-0.36700165271759033,
0.30427634716033936,
-0.34112560749053955,
-0.21069763600826263,
0.2431461066007614,
0.01858573779463768,
0.2877354323863983,
-0.003396784421056509,
-0.08471507579088211,
0.012246592901647091,
-0.45914140343666077,
0.21372643113136292,
0.1240147203207016,
-0.4351314902305603,
-0.13264726102352142,
0.18630246818065643,
-0.4067220985889435,
0.26421982049942017,
-0.42662686109542847,
-0.2256036400794983,
-0.3255859911441803,
0.28976747393608093,
-0.08494552969932556,
-0.07554604113101959,
0.44516250491142273,
-0.27835988998413086,
0.04962989687919617,
-0.4187121093273163,
0.3278367519378662,
0.1877291202545166,
0.0333670899271965,
-0.020650766789913177,
0.06462697684764862,
-0.20487216114997864,
0.13770723342895508,
0.5131194591522217,
-0.07067127525806427,
0.012361343950033188,
0.14156284928321838,
0.30565550923347473,
0.438752681016922,
-0.328565776348114,
-0.16825425624847412,
-0.14188086986541748,
-0.08811554312705994,
-0.14641208946704865,
-0.02826075255870819,
-0.15222874283790588,
-0.0631081685423851,
-0.10035809874534607,
-0.05611605569720268,
-0.0604509674012661,
-0.30053773522377014,
0.03568803519010544,
0.19388535618782043,
0.170302614569664,
0.23789772391319275,
-0.010172408074140549,
-0.08169758319854736,
-0.15315046906471252,
0.12533123791217804,
0.2319328337907791,
0.4605017304420471,
0.04184560477733612,
-0.08955647051334381,
0.25071728229522705,
-0.13887178897857666,
0.16643185913562775,
0.05813546106219292,
0.3817962110042572,
-0.06926044076681137,
-0.002746444195508957,
-0.025674842298030853,
-0.3396189510822296,
0.31496351957321167,
0.022852785885334015,
0.1409359872341156,
0.20827226340770721,
0.1402728259563446,
-0.22882990539073944,
-0.17936989665031433,
-0.19240602850914001,
0.27976080775260925,
0.4190061390399933,
0.19582605361938477,
-0.16573825478553772,
-0.16525565087795258,
-0.6652340888977051,
0.37638768553733826,
-0.0641949474811554,
-0.5701958537101746,
-0.12038016319274902,
0.2926160395145416,
-0.29467466473579407,
-0.0075140222907066345,
-0.04537705332040787,
0.012191826477646828,
0.08915268629789352,
0.12383672595024109,
-0.25262534618377686,
-0.12977105379104614,
-0.14098471403121948,
-0.13350938260555267,
0.02481456659734249,
-0.1612219512462616,
0.2471475899219513,
0.05666723847389221,
-0.26813986897468567,
0.13587486743927002,
0.19648058712482452,
0.19464993476867676,
0.1310192048549652,
0.30676862597465515,
-0.23981662094593048,
-0.2409113049507141,
0.47298985719680786,
-0.034085433930158615,
0.12187005579471588,
0.031853049993515015,
-0.05422653257846832,
0.03422936797142029,
0.010943632572889328,
0.13167807459831238,
-0.026707720011472702,
0.44266265630722046,
0.06811609119176865,
0.02039199322462082,
0.15079905092716217,
-0.19001954793930054,
0.43262726068496704,
0.3856019973754883,
-0.033790282905101776,
0.024809252470731735,
-0.040720291435718536,
0.8245963454246521,
0.09215031564235687,
0.14429408311843872,
-0.036253057420253754,
-0.015559475868940353,
0.2752343714237213,
-0.4026055335998535,
0.09668804705142975,
-0.11022114008665085,
-0.4013599753379822,
-0.023498013615608215,
-0.29421359300613403,
0.3266858458518982,
-0.18356642127037048,
0.04535407945513725,
0.14674291014671326,
-0.1992107331752777,
-0.10962581634521484,
-0.08550477772951126,
0.35665297508239746,
-0.42578795552253723,
-0.3449673354625702,
-0.1093273013830185,
0.15333369374275208,
0.20021958649158478,
0.13918694853782654,
-0.08245887607336044,
-0.1181069016456604,
-0.2436947375535965,
-0.05484096705913544,
-0.2625565826892853,
0.0846148207783699,
-0.047601670026779175,
0.415593683719635,
-0.3947257697582245,
0.10009679198265076,
-0.08015970140695572,
0.044527482241392136,
0.022788655012845993,
0.36164242029190063,
-0.36986243724823,
0.10394589602947235,
-0.030253291130065918,
-0.14153629541397095,
0.14917294681072235,
-0.1640702486038208,
0.28339487314224243,
-0.07953038811683655,
-0.13328827917575836,
-0.2885749638080597,
-0.14481103420257568,
-0.2349160760641098,
0.22403070330619812,
-0.08907690644264221,
0.11894117295742035,
0.207683265209198,
-0.8349129557609558,
0.05616540089249611,
-0.17461802065372467,
-0.008015241473913193,
0.05945910885930061,
0.18963029980659485,
-0.16968753933906555,
0.17295455932617188,
-0.37962743639945984,
-0.1412031203508377,
-0.009526237845420837,
0.6327993869781494,
-0.15756481885910034,
-0.32515949010849,
0.4551869034767151,
0.1251765936613083,
-0.09399436414241791,
-0.1562013477087021,
0.35976263880729675,
-0.1781923919916153,
-0.28100723028182983,
-0.15708906948566437,
-0.12809038162231445,
0.02175074815750122,
-0.10716402530670166,
-0.03761324658989906,
0.21503660082817078,
-0.14157095551490784,
0.0009851418435573578,
-0.4553614854812622,
-0.2899046242237091,
-0.013294994831085205,
-0.3651157319545746,
0.07086885720491409,
-0.26070910692214966,
-0.35438522696495056,
-0.2182275354862213,
0.2064201533794403,
-0.2022307813167572,
0.16244399547576904,
-0.20284174382686615,
-0.13244985044002533,
0.31350189447402954,
-0.1432555913925171,
0.21767443418502808,
-0.317787230014801,
-0.0388186015188694,
0.4003426432609558,
-0.16842783987522125,
-0.05347282066941261,
-0.32704904675483704,
0.18153706192970276,
0.13974979519844055,
0.38981443643569946,
0.17373016476631165,
-0.3615202307701111,
-0.08784052729606628,
0.01774267479777336,
0.09141132235527039,
0.2003786265850067,
0.13279667496681213,
-0.10366087406873703,
-0.007462810724973679,
0.8132433295249939,
-0.181995689868927,
0.11148927360773087,
0.07929812371730804,
-0.14206397533416748,
0.05959608033299446,
0.009200993925333023,
0.09889978915452957,
0.2614956498146057,
-0.5912230014801025,
0.08717744797468185,
0.009487763047218323,
0.1891736090183258,
0.36385729908943176,
-0.12227988243103027,
0.08735783398151398,
0.3062603771686554,
0.24291038513183594,
0.3095576763153076,
0.10711368918418884,
-0.1949281245470047,
0.31502145528793335,
0.0827360525727272,
-0.13863599300384521,
-0.18614330887794495,
0.336492121219635,
0.00009183213114738464,
-0.038374073803424835,
-0.12120870500802994,
0.21788859367370605,
-0.20608749985694885,
-0.12863779067993164,
0.362809419631958,
0.22679299116134644,
0.041903305798769,
-0.13122093677520752,
-0.02418724074959755,
0.1435372233390808,
0.10164465010166168,
0.15171687304973602,
0.06979019939899445,
0.0558384470641613,
0.3068056106567383,
-0.3838951885700226,
-0.030195733532309532,
-0.14035165309906006,
0.10816141217947006,
0.004963882267475128,
-0.12972189486026764,
0.12253952026367188,
0.19508665800094604,
0.4629553556442261,
0.13716325163841248,
-0.28842005133628845,
-0.061860062181949615,
-0.32524576783180237,
-0.041799694299697876,
-0.018661636859178543,
0.19441768527030945,
-0.10484644025564194,
-0.13072386384010315,
0.543026864528656,
-0.05335373058915138,
-0.009478360414505005,
-0.23257265985012054,
0.12506279349327087,
0.18525099754333496,
-0.037982210516929626,
0.3821389675140381,
0.20159396529197693,
-0.18822333216667175,
-0.3295246958732605,
0.09938675165176392,
0.24102747440338135,
-0.28344133496284485,
-0.1395074427127838,
0.19504675269126892,
0.17301657795906067,
0.12471367418766022,
0.06866444647312164,
0.21022717654705048,
0.3694639205932617,
-0.3128957748413086,
0.012326523661613464,
-0.18890486657619476,
-0.09722936153411865,
-0.07447715103626251,
0.38806581497192383,
-0.024593114852905273,
-0.0494769923388958,
0.15607474744319916,
0.018243392929434776,
-0.20373494923114777,
0.16372078657150269,
0.1346605271100998,
0.22877508401870728,
-0.17987053096294403,
0.3555247187614441,
0.3213663101196289,
0.2588976323604584,
0.11417713016271591,
0.30116182565689087,
-0.22303727269172668,
-0.15696340799331665,
0.015812166035175323,
0.16078095138072968,
0.08916376531124115,
-0.021763481199741364,
0.06131409853696823,
-0.2351769208908081,
0.2948070168495178,
0.2314913272857666,
-0.011327788233757019,
-0.23046422004699707,
0.33845311403274536,
-0.6397737264633179,
0.16410896182060242,
-0.21925508975982666,
-0.4225706160068512,
-0.0913710743188858,
0.22678686678409576,
0.2722901701927185,
0.2294965386390686,
-0.04867860674858093,
0.01036507822573185,
-0.07669104635715485,
0.0255009476095438,
-0.29856929183006287,
0.266882985830307,
0.2643011808395386,
-0.1601853221654892,
-0.15518441796302795,
-0.48452168703079224,
-0.08496876060962677,
-0.17667759954929352,
0.0021152496337890625,
0.012498590163886547,
-0.29891782999038696,
0.11905010044574738,
0.11076986789703369,
0.3183731436729431,
0.20132850110530853,
0.3909294605255127,
-0.07609046250581741,
-0.4142143428325653,
-0.5229343771934509,
-0.03573707118630409,
-0.1828196942806244,
-0.32646653056144714,
0.024637959897518158,
0.45429402589797974,
-0.6023716330528259,
-0.3832438886165619,
-0.3101329207420349,
0.4385451674461365,
-0.2643033266067505,
-0.2452710121870041,
-0.32818880677223206,
0.10806000232696533,
-0.21624329686164856,
0.38981443643569946,
0.16351738572120667,
0.3700907528400421,
0.11093391478061676,
0.2532011866569519,
-0.4738079309463501,
0.026869574561715126,
0.3253870904445648,
-0.4806053340435028,
-0.28135502338409424,
0.15871042013168335,
0.1845037043094635,
0.03966953232884407,
-0.2161516696214676,
-0.15816333889961243,
0.30958861112594604,
0.006739550270140171,
-0.027630548924207687,
-0.08218888938426971,
0.042022835463285446,
0.05513953045010567,
0.0974709689617157,
-0.18743598461151123,
0.0811232328414917,
0.06027945131063461,
-0.10054602473974228,
-0.2201516479253769,
-0.08331914246082306
] |
https://github.com/huggingface/datasets/issues/329 | [Bug] FileLock dependency incompatible with filesystem | Looks like the `flock` syscall does not work on Lustre filesystems by default: https://github.com/benediktschmitt/py-filelock/issues/67.
I added the `-o flock` option when mounting the filesystem, as [described here](https://docs.aws.amazon.com/fsx/latest/LustreGuide/getting-started-step2.html), which fixed the issue. | I'm downloading a dataset successfully with
`load_dataset("wikitext", "wikitext-2-raw-v1")`
But when I attempt to cache it on an external volume, it hangs indefinitely:
`load_dataset("wikitext", "wikitext-2-raw-v1", cache_dir="/fsx") # /fsx is an external volume mount`
The filesystem when hanging looks like this:
```bash
/fsx
----downloads
----94be...73.lock
----wikitext
----wikitext-2-raw
----wikitext-2-raw-1.0.0.incomplete
```
It appears that on this filesystem, the FileLock object is forever stuck in its "acquire" stage. I have verified that the issue lies specifically with the `filelock` dependency:
```python
open("/fsx/hello.txt").write("hello") # succeeds
from filelock import FileLock
with FileLock("/fsx/hello.lock"):
open("/fsx/hello.txt").write("hello") # hangs indefinitely
```
Has anyone else run into this issue? I'd raise it directly on the FileLock repo, but that project appears abandoned with the last update over a year ago. Or if there's a solution that would remove the FileLock dependency from the project, I would appreciate that. | 31 | [Bug] FileLock dependency incompatible with filesystem
I'm downloading a dataset successfully with
`load_dataset("wikitext", "wikitext-2-raw-v1")`
But when I attempt to cache it on an external volume, it hangs indefinitely:
`load_dataset("wikitext", "wikitext-2-raw-v1", cache_dir="/fsx") # /fsx is an external volume mount`
The filesystem when hanging looks like this:
```bash
/fsx
----downloads
----94be...73.lock
----wikitext
----wikitext-2-raw
----wikitext-2-raw-1.0.0.incomplete
```
It appears that on this filesystem, the FileLock object is forever stuck in its "acquire" stage. I have verified that the issue lies specifically with the `filelock` dependency:
```python
open("/fsx/hello.txt").write("hello") # succeeds
from filelock import FileLock
with FileLock("/fsx/hello.lock"):
open("/fsx/hello.txt").write("hello") # hangs indefinitely
```
Has anyone else run into this issue? I'd raise it directly on the FileLock repo, but that project appears abandoned with the last update over a year ago. Or if there's a solution that would remove the FileLock dependency from the project, I would appreciate that.
Looks like the `flock` syscall does not work on Lustre filesystems by default: https://github.com/benediktschmitt/py-filelock/issues/67.
I added the `-o flock` option when mounting the filesystem, as [described here](https://docs.aws.amazon.com/fsx/latest/LustreGuide/getting-started-step2.html), which fixed the issue. | [
-0.02206936851143837,
-0.07033190131187439,
-0.024117816239595413,
0.04778265953063965,
0.06480684876441956,
0.05381818860769272,
0.2719029188156128,
-0.09048217535018921,
0.7102741599082947,
-0.06344904005527496,
-0.02303614281117916,
-0.030101092532277107,
0.14038757979869843,
-0.4040707051753998,
-0.28357353806495667,
0.24196362495422363,
0.20772776007652283,
0.030582979321479797,
-0.2452183961868286,
-0.07708968222141266,
-0.16139553487300873,
0.43424198031425476,
-0.08152225613594055,
-0.23475290834903717,
-0.5598559975624084,
0.16546113789081573,
-0.039631135761737823,
0.14034077525138855,
-0.34571194648742676,
0.1898191124200821,
0.3417888879776001,
0.6025444865226746,
-0.04525665193796158,
0.5372433066368103,
-0.00012877008703071624,
-0.26277580857276917,
0.24520529806613922,
-0.08524215221405029,
-0.2170964628458023,
-0.1017388254404068,
-0.08704740554094315,
-0.18407857418060303,
0.22492621839046478,
-0.10948669910430908,
0.16084980964660645,
0.12281884253025055,
-0.01508619450032711,
-0.5285056829452515,
0.26508772373199463,
-0.1673845797777176,
-0.00023684650659561157,
0.11311282217502594,
0.1672387421131134,
-0.15101417899131775,
0.314591646194458,
-0.20973233878612518,
-0.18487244844436646,
0.49765413999557495,
0.47174933552742004,
-0.09011827409267426,
-0.24797344207763672,
0.0887354165315628,
0.025788715109229088,
0.03823648393154144,
0.604613184928894,
-0.29513978958129883,
0.466986745595932,
-0.2977612316608429,
-0.30353760719299316,
0.22707170248031616,
0.5503922700881958,
-0.017663978040218353,
-0.53849196434021,
-0.18207445740699768,
0.3580969274044037,
-0.00008647330105304718,
0.49266135692596436,
0.05416049808263779,
-0.1355169713497162,
0.3503001034259796,
0.015288622118532658,
-0.1867278516292572,
0.07348047196865082,
0.05156596377491951,
-0.16683751344680786,
0.055171117186546326,
0.15404640138149261,
0.06937295943498611,
0.23603324592113495,
-0.14176341891288757,
0.004706484265625477,
-0.20134496688842773,
-0.13893458247184753,
0.06551963835954666,
-0.5184346437454224,
0.04406941682100296,
-0.02377154678106308,
0.0005390793085098267,
0.0014866814017295837,
-0.17757190763950348,
-0.47110307216644287,
0.19591033458709717,
-0.10728639364242554,
0.4131368398666382,
0.10727480053901672,
0.12503716349601746,
0.15609978139400482,
-0.2706224024295807,
0.3129885196685791,
-0.03667009621858597,
-0.20050479471683502,
0.12349765747785568,
-0.09971892088651657,
-0.20062218606472015,
-0.07061894237995148,
-0.008544255048036575,
0.024450715631246567,
-0.4772162139415741,
0.1940937042236328,
0.29553189873695374,
0.13945826888084412,
0.4006766080856323,
0.15813274681568146,
0.19415053725242615,
0.1847216635942459,
0.4262385368347168,
0.20754697918891907,
0.07932713627815247,
-0.19444885849952698,
0.12260418385267258,
0.03051796182990074,
-0.14489005506038666,
0.10507659614086151,
0.13600419461727142,
0.037101346999406815,
0.28959938883781433,
0.17678821086883545,
0.12848781049251556,
0.21665368974208832,
0.11741407215595245,
-0.03276903182268143,
-0.051972609013319016,
-0.19332274794578552,
0.4518736004829407,
-0.14187821745872498,
0.16572606563568115,
0.0007300488650798798,
0.17268572747707367,
-0.03790140151977539,
0.07738915085792542,
-0.31189438700675964,
-0.023790229111909866,
-0.1736706793308258,
-0.039076611399650574,
-0.4359884262084961,
0.021199848502874374,
-0.14165383577346802,
-0.21987755596637726,
-0.2442760467529297,
-0.3579331934452057,
0.051436398178339005,
-0.5044809579849243,
-0.034916043281555176,
0.05461366847157478,
-0.003844562917947769,
0.33243778347969055,
-0.4034089744091034,
-0.02469911426305771,
0.2663722038269043,
-0.17984911799430847,
0.01747608184814453,
0.303140252828598,
-0.04890300706028938,
-0.09272288531064987,
-0.16387879848480225,
-0.00958358496427536,
0.19855144619941711,
-0.4244551658630371,
-0.6493105292320251,
0.19077223539352417,
-0.3349512219429016,
0.1472034603357315,
0.19318358600139618,
0.288273423910141,
-0.08139366656541824,
-0.12960058450698853,
0.008705295622348785,
0.39863574504852295,
0.1607901155948639,
-0.1987576186656952,
-0.13715146481990814,
-0.2944779396057129,
-0.1860230714082718,
0.14772474765777588,
-0.05081048980355263,
0.15261903405189514,
0.0321166105568409,
0.5327258706092834,
0.2337106466293335,
-0.006221998482942581,
-0.0406285896897316,
0.6131657361984253,
0.6778343915939331,
0.14612728357315063,
0.12641899287700653,
-0.1563686579465866,
-0.5479946732521057,
0.3858722150325775,
-0.382249116897583,
0.02003571018576622,
-0.1693594604730606,
-0.039005085825920105,
0.12341441959142685,
-0.022451233118772507,
-0.053684886544942856,
0.16146716475486755,
-0.01896381750702858,
-0.11549265682697296,
0.06924860179424286,
0.09146656095981598,
0.1012226790189743,
0.405467689037323,
-0.11356508731842041,
0.0921659991145134,
-0.13647183775901794,
-0.03619624674320221,
0.11383246630430222,
-0.23849312961101532,
0.020426660776138306,
-0.0355389267206192,
0.09710901230573654,
-0.2887972295284271,
-0.22711461782455444,
0.4242854714393616,
0.29793769121170044,
0.1792181432247162,
-0.07111963629722595,
0.3551238179206848,
0.08210881054401398,
0.5420103073120117,
-0.25603601336479187,
-0.14459539949893951,
0.06487136334180832,
-0.14876285195350647,
-0.11797643452882767,
0.04604252427816391,
-0.16182443499565125,
0.16456249356269836,
-0.24254176020622253,
-0.033304713666439056,
0.18625903129577637,
0.14484281837940216,
-0.09420973062515259,
0.10405480861663818,
0.35447630286216736,
0.03357712924480438,
-0.10364703834056854,
-0.16953729093074799,
0.434625506401062,
0.09319943934679031,
0.29765206575393677,
0.08298683166503906,
0.07813183218240738,
0.10711617767810822,
-0.028970971703529358,
-0.09150274842977524,
0.15393659472465515,
0.22555296123027802,
0.48548394441604614,
0.09722358733415604,
0.12012618780136108,
-0.33747559785842896,
0.12074654549360275,
-0.24586668610572815,
0.0951211228966713,
-0.0483834445476532,
-0.21002942323684692,
0.2208932638168335,
0.26065608859062195,
-0.11777279525995255,
0.06483250856399536,
-0.4731074273586273,
0.1089857816696167,
0.057915717363357544,
0.0545385368168354,
-0.015061592683196068,
-0.29516172409057617,
0.49481400847435,
0.1755039542913437,
0.37696266174316406,
-0.28352171182632446,
-0.4526461958885193,
0.17980922758579254,
0.8311289548873901,
0.13274745643138885,
0.06470417976379395,
-0.40110066533088684,
0.10007941722869873,
0.19551518559455872,
-0.3513929843902588,
-0.26482653617858887,
-0.23969469964504242,
0.00747053325176239,
-0.16770869493484497,
0.4072369635105133,
0.17408975958824158,
0.10440695285797119,
0.18269197642803192,
-0.1740872859954834,
-0.4815857410430908,
-0.17135384678840637,
0.20422086119651794,
-0.007862158119678497,
0.4539903402328491,
0.032995909452438354,
0.13180066645145416,
-0.11417331546545029,
-0.019933149218559265,
0.1900193989276886,
-0.32414448261260986,
-0.0359499491751194,
-0.07796090841293335,
-0.0392703153192997,
-0.15263430774211884,
-0.2805634140968323,
0.21529728174209595,
-0.12103524059057236,
-0.3584310710430145,
0.21344177424907684,
-0.2896825075149536,
-0.25950634479522705,
0.03963140770792961,
0.0766235888004303,
0.25360536575317383,
-0.12847000360488892,
-0.1014174073934555,
0.021841028705239296,
-0.4564410448074341,
0.2862499952316284,
0.04938311502337456,
-0.5032615065574646,
-0.06869407743215561,
0.29035115242004395,
-0.4942886233329773,
0.1319265067577362,
-0.49543237686157227,
-0.31790220737457275,
-0.24608935415744781,
0.19607868790626526,
0.035322077572345734,
-0.08183814585208893,
0.4039616584777832,
-0.24052365124225616,
0.05132557451725006,
-0.3743171989917755,
0.25507691502571106,
0.15899690985679626,
0.16508030891418457,
0.09685312211513519,
-0.025217443704605103,
-0.13443776965141296,
-0.011486425995826721,
0.6712637543678284,
-0.16278499364852905,
-0.1171940267086029,
0.17154832184314728,
0.2996029853820801,
0.2783548831939697,
-0.36036786437034607,
-0.11018100380897522,
-0.09834516048431396,
-0.09169900417327881,
0.009312968701124191,
0.021871618926525116,
-0.010687412694096565,
-0.1097543016076088,
-0.13481025397777557,
-0.1368602067232132,
0.061204686760902405,
-0.3520062267780304,
0.0050265248864889145,
0.26638263463974,
-0.10186999291181564,
0.20150208473205566,
-0.10829027742147446,
-0.058929745107889175,
-0.1559254229068756,
0.24891087412834167,
0.40164315700531006,
0.41648319363594055,
0.08548054844141006,
-0.027837522327899933,
0.08065914362668991,
-0.11563458293676376,
0.22469693422317505,
-0.07637045532464981,
0.31272193789482117,
-0.032880425453186035,
0.03896287828683853,
0.0106736421585083,
-0.35463953018188477,
0.4242367744445801,
-0.05769891291856766,
0.12827156484127045,
0.14065414667129517,
0.05650206655263901,
-0.28633442521095276,
-0.16017670929431915,
-0.28285375237464905,
-0.04366384446620941,
0.3871501088142395,
0.23690515756607056,
-0.16351427137851715,
-0.23451565206050873,
-0.49664410948753357,
0.3092566430568695,
-0.10805259644985199,
-0.5445776581764221,
-0.09654036909341812,
0.33039745688438416,
-0.35348862409591675,
0.04779316857457161,
-0.11987075209617615,
0.15625445544719696,
-0.013198045082390308,
0.1064736545085907,
-0.23794429004192352,
-0.027386121451854706,
-0.0754142552614212,
-0.008091369643807411,
0.01638677343726158,
-0.04397442191839218,
0.23498815298080444,
0.03853704035282135,
-0.07264822721481323,
0.13336163759231567,
0.21187704801559448,
0.4685262441635132,
0.21670764684677124,
0.4319479763507843,
-0.25594934821128845,
-0.1288781762123108,
0.4705716669559479,
-0.00907894130796194,
-0.042952097952365875,
-0.18045765161514282,
0.0817573145031929,
0.07643625140190125,
0.16182085871696472,
0.12219846248626709,
0.004696562886238098,
0.376850962638855,
0.15020093321800232,
0.12014247477054596,
0.07933779060840607,
-0.22634357213974,
0.5570192933082581,
0.42978155612945557,
0.1192735806107521,
0.12481120228767395,
-0.0013748034834861755,
1.0098527669906616,
0.11022446304559708,
0.08910883963108063,
0.12184518575668335,
0.03381441533565521,
0.20112790167331696,
-0.656730592250824,
0.07916826009750366,
0.016057591885328293,
-0.2834216356277466,
-0.06126055121421814,
-0.22115860879421234,
0.38373953104019165,
-0.22121213376522064,
0.10364532470703125,
0.2203226089477539,
0.10641469061374664,
-0.18843188881874084,
-0.18641473352909088,
0.3203715980052948,
-0.43317490816116333,
-0.46052980422973633,
0.046504586935043335,
0.08835750818252563,
0.22718700766563416,
0.280732125043869,
-0.06688223779201508,
-0.10088811814785004,
-0.18678951263427734,
-0.13673362135887146,
-0.24016742408275604,
0.06032060086727142,
-0.057121556252241135,
0.2376735359430313,
-0.6428995728492737,
0.05033811926841736,
-0.13253316283226013,
0.13124960660934448,
-0.07166425883769989,
0.27585333585739136,
-0.34063631296157837,
0.1956920325756073,
0.045539937913417816,
-0.09716024994850159,
0.10985146462917328,
-0.09869644045829773,
0.22728925943374634,
-0.12778887152671814,
-0.04287991672754288,
-0.26790422201156616,
-0.10202526301145554,
-0.11755974590778351,
0.15265321731567383,
-0.11309626698493958,
0.039934564381837845,
0.10983224958181381,
-0.7515419721603394,
0.11858765035867691,
-0.17992809414863586,
0.00760345533490181,
0.00785851664841175,
0.22707951068878174,
-0.21112969517707825,
0.08756526559591293,
-0.4490458071231842,
-0.1456821858882904,
-0.09694564342498779,
0.6907760500907898,
-0.1882462501525879,
-0.4291856586933136,
0.3878207802772522,
0.18201889097690582,
-0.02483300492167473,
-0.16625390946865082,
0.2785249948501587,
0.1498796045780182,
-0.5977125763893127,
-0.11479996889829636,
-0.08173166960477829,
-0.19162806868553162,
0.07372196763753891,
0.1710994839668274,
0.17123985290527344,
-0.2321944236755371,
-0.0244572926312685,
-0.42623233795166016,
-0.18985597789287567,
0.037114497274160385,
-0.3765427768230438,
0.10151748359203339,
-0.18185782432556152,
-0.4537014961242676,
-0.18101388216018677,
0.05852056294679642,
-0.14086875319480896,
0.21311691403388977,
-0.1011475995182991,
-0.0680399090051651,
0.288411021232605,
-0.01868545264005661,
0.2443312108516693,
-0.19460493326187134,
-0.07444051653146744,
0.3325654864311218,
-0.1290651261806488,
0.009495902806520462,
-0.30026087164878845,
0.18817022442817688,
0.11928669363260269,
0.49570947885513306,
0.11549883335828781,
-0.37759894132614136,
-0.0708092600107193,
-0.005467190407216549,
0.08905090391635895,
0.11564893275499344,
0.08077780902385712,
-0.10398857295513153,
0.3058723509311676,
0.6972975134849548,
-0.08608896285295486,
0.19836768507957458,
0.24851340055465698,
-0.0549645721912384,
-0.1351304054260254,
-0.1019703596830368,
-0.04275883734226227,
0.12435981631278992,
-0.5576974153518677,
0.04995279386639595,
0.06968187540769577,
0.3294984698295593,
0.34638461470603943,
-0.08508491516113281,
0.026759374886751175,
0.26407790184020996,
0.43752291798591614,
0.3466060757637024,
0.1543826460838318,
-0.1452004760503769,
0.344173401594162,
0.07575421035289764,
-0.10172758996486664,
-0.20948737859725952,
0.4380943775177002,
0.03022189810872078,
-0.010404717177152634,
-0.007637493312358856,
0.10414110124111176,
-0.12411978840827942,
0.12759369611740112,
0.32025936245918274,
0.4867454171180725,
-0.06648683547973633,
-0.16942237317562103,
0.12801457941532135,
0.17506244778633118,
0.03146728128194809,
0.2002255916595459,
0.10042983293533325,
0.15053339302539825,
0.44743257761001587,
-0.38022732734680176,
0.021806342527270317,
0.2399684488773346,
0.03900133818387985,
0.040187276899814606,
-0.005754219368100166,
-0.06911653280258179,
0.19535639882087708,
0.5384962558746338,
0.1521591693162918,
-0.2523943781852722,
0.08753807097673416,
-0.3108753561973572,
-0.22101405262947083,
-0.15601307153701782,
0.29613906145095825,
-0.07562952488660812,
-0.03827209770679474,
0.34636858105659485,
-0.11140347272157669,
0.03996831178665161,
-0.17544512450695038,
0.05258433520793915,
0.13627997040748596,
0.12105710804462433,
0.38641154766082764,
0.36747777462005615,
-0.39564046263694763,
-0.36989790201187134,
0.09387819468975067,
0.28364297747612,
-0.20835940539836884,
-0.033795975148677826,
0.2968222498893738,
0.06126582622528076,
0.3407020568847656,
0.05792580544948578,
0.2708126902580261,
0.27805086970329285,
-0.22217346727848053,
0.07691795378923416,
-0.12486530840396881,
-0.08187364786863327,
-0.09509290009737015,
0.34828871488571167,
0.007895544171333313,
-0.04789501801133156,
0.2252545952796936,
0.01599998213350773,
-0.17373791337013245,
0.1647750288248062,
0.04188815876841545,
0.23471768200397491,
-0.17009791731834412,
0.40576058626174927,
0.23026332259178162,
0.3443793058395386,
0.13229423761367798,
0.10894419997930527,
-0.2730686068534851,
-0.06508879363536835,
-0.09368297457695007,
0.08746068924665451,
0.029658939689397812,
-0.03668787702918053,
0.031654924154281616,
-0.2727532386779785,
0.2277422398328781,
0.20716632902622223,
-0.0866367444396019,
-0.2552137076854706,
0.33335280418395996,
-0.6523104906082153,
0.15050242841243744,
-0.1023133397102356,
-0.4395858645439148,
-0.2222519963979721,
0.3195899426937103,
0.2867942750453949,
0.27923035621643066,
-0.03735494613647461,
-0.18523234128952026,
-0.13961416482925415,
0.2462443709373474,
-0.3246272802352905,
0.3226271867752075,
0.13807234168052673,
-0.04233275353908539,
-0.15676644444465637,
-0.4385940730571747,
-0.008029427379369736,
-0.13008177280426025,
-0.06917669624090195,
0.16334715485572815,
-0.37628650665283203,
0.17741186916828156,
0.028208021074533463,
0.25536102056503296,
0.10020199418067932,
0.38179925084114075,
0.049605369567871094,
-0.3303426504135132,
-0.5639329552650452,
-0.2779220938682556,
-0.08364678919315338,
-0.33467012643814087,
-0.05482713505625725,
0.4474789798259735,
-0.5062487125396729,
-0.26038917899131775,
-0.35153162479400635,
0.2791650593280792,
-0.28444159030914307,
-0.11088667809963226,
-0.3698855936527252,
0.18718920648097992,
-0.26576516032218933,
0.40524378418922424,
0.12793122231960297,
0.3573997914791107,
0.16895601153373718,
0.3010958433151245,
-0.45266592502593994,
-0.09917408972978592,
0.43180376291275024,
-0.4769818186759949,
-0.2671389579772949,
0.10606943815946579,
0.24685987830162048,
0.23110848665237427,
-0.15646688640117645,
-0.212507963180542,
0.267584890127182,
-0.052547354251146317,
0.13638664782047272,
-0.037258755415678024,
0.02576296404004097,
0.17329248785972595,
-0.025470171123743057,
-0.24254953861236572,
-0.012667089700698853,
0.06130792945623398,
-0.09723763912916183,
-0.18674258887767792,
-0.12740400433540344
] |
https://github.com/huggingface/datasets/issues/328 | Fork dataset | To be able to generate the Arrow dataset you need to either use our csv or json utilities `load_dataset("json", data_files=my_json_files)` OR write your own custom dataset script (you can find some inspiration from the [squad](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py) script for example). Custom dataset scripts can be called locally with `nlp.load_dataset(path_to_my_script_directory)`.
This should help you get what you call "Dataset1".
Then using some dataset transforms like `.map` for example you can get to "DatasetNER" and "DatasetREL".
| We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
| 72 | Fork dataset
We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
To be able to generate the Arrow dataset you need to either use our csv or json utilities `load_dataset("json", data_files=my_json_files)` OR write your own custom dataset script (you can find some inspiration from the [squad](https://github.com/huggingface/nlp/blob/master/datasets/squad/squad.py) script for example). Custom dataset scripts can be called locally with `nlp.load_dataset(path_to_my_script_directory)`.
This should help you get what you call "Dataset1".
Then using some dataset transforms like `.map` for example you can get to "DatasetNER" and "DatasetREL".
| [
-0.24039070308208466,
-0.15193013846874237,
-0.004668194800615311,
0.13880211114883423,
-0.19918322563171387,
0.16617462038993835,
0.08553431928157806,
0.3236583173274994,
0.1992572396993637,
-0.1408095508813858,
0.05220150947570801,
0.6768648028373718,
-0.40082502365112305,
0.1611255556344986,
0.21559299528598785,
-0.22299018502235413,
0.1336970031261444,
0.05698923394083977,
0.13274085521697998,
0.11233845353126526,
0.03339284658432007,
-0.18108654022216797,
0.13365015387535095,
0.056947678327560425,
-0.026441939175128937,
-0.22802948951721191,
-0.12039997428655624,
0.11188598722219467,
0.026978110894560814,
0.0009554466232657433,
0.46160438656806946,
0.18852661550045013,
-0.017125818878412247,
0.3208826780319214,
-0.00011780604108935222,
0.13054786622524261,
0.05748988315463066,
0.09882138669490814,
-0.21894106268882751,
-0.20572926104068756,
-0.1271969974040985,
-0.17742525041103363,
0.17279216647148132,
-0.1873130351305008,
0.08668501675128937,
-0.37703555822372437,
0.18521302938461304,
-0.23205077648162842,
0.7697010040283203,
0.14432254433631897,
0.10437732934951782,
0.0922691747546196,
-0.12460792064666748,
0.21892298758029938,
-0.24513888359069824,
0.3413797616958618,
0.049778297543525696,
0.1736004799604416,
-0.016957826912403107,
-0.20677965879440308,
-0.07550395280122757,
0.07740385830402374,
-0.17925280332565308,
0.027216320857405663,
0.2267158031463623,
-0.057582512497901917,
-0.014406681060791016,
-0.16061702370643616,
0.005511399358510971,
0.33723050355911255,
-0.005829229950904846,
-0.21548649668693542,
-0.2079758495092392,
-0.6004961133003235,
0.14351260662078857,
-0.17135433852672577,
-0.10862378031015396,
0.20953446626663208,
-0.15963180363178253,
0.26162266731262207,
0.06794960796833038,
-0.5672594904899597,
-0.009192246943712234,
0.0720444917678833,
0.04487035423517227,
0.22627119719982147,
0.1848958432674408,
0.21273961663246155,
0.2443886399269104,
0.07956862449645996,
0.3197891414165497,
-0.2550055682659149,
-0.021198417991399765,
0.02341729775071144,
-0.15532489120960236,
-0.2513642907142639,
-0.15703028440475464,
-0.572524905204773,
0.07860376685857773,
0.29761672019958496,
0.34205904603004456,
0.01344996877014637,
-0.3720579147338867,
0.19972890615463257,
0.15162070095539093,
-0.23577134311199188,
-0.11627740412950516,
0.35109442472457886,
-0.01391468197107315,
-0.29850369691848755,
0.08863091468811035,
0.13627585768699646,
-0.4068129360675812,
-0.0246964730322361,
-0.2755955755710602,
-0.0017346404492855072,
0.30393850803375244,
0.2416287064552307,
-0.12306643277406693,
-0.4214797616004944,
-0.2392181158065796,
-0.14868596196174622,
0.17635111510753632,
-0.007922209799289703,
0.014132299460470676,
0.5878407955169678,
-0.04234333336353302,
0.4042404294013977,
-0.18547287583351135,
-0.21600933372974396,
0.0273764468729496,
-0.02082803100347519,
-0.15182174742221832,
0.042703501880168915,
0.14868278801441193,
0.4183579683303833,
0.177520290017128,
-0.04635396599769592,
-0.2537016272544861,
-0.07993265986442566,
0.46836578845977783,
0.002697211690247059,
-0.03151899576187134,
-0.06698071956634521,
-0.04448101669549942,
0.03380937874317169,
0.054595377296209335,
-0.0170925073325634,
-0.26668843626976013,
0.14721430838108063,
-0.15603044629096985,
-0.13473360240459442,
-0.09138771891593933,
0.06196700036525726,
-0.0013743378221988678,
-0.29662221670150757,
-0.626500129699707,
0.6202899813652039,
0.20189902186393738,
-0.009917762130498886,
0.02089187502861023,
-0.011355634778738022,
-0.3717835545539856,
-0.22095495462417603,
0.08670718222856522,
0.14002811908721924,
-0.3647664487361908,
-0.33026865124702454,
-0.20517376065254211,
-0.013774577528238297,
-0.14660486578941345,
0.4300248324871063,
-0.2711235284805298,
0.19720280170440674,
0.03157135844230652,
-0.023028772324323654,
0.6090846657752991,
-0.21809644997119904,
-0.03652240335941315,
0.1634848564863205,
-0.1810096800327301,
-0.10279679298400879,
0.11327441036701202,
0.12155954539775848,
0.0628543496131897,
-0.17341415584087372,
-0.05285713076591492,
0.785504937171936,
-0.32086509466171265,
0.027578404173254967,
0.1742582470178604,
-0.2888340950012207,
0.2234940081834793,
0.2195899337530136,
-0.032654132694005966,
0.004539377987384796,
-0.2716987133026123,
-0.05846824124455452,
0.2219848930835724,
-0.13465523719787598,
0.35247135162353516,
-0.09110430628061295,
-0.14856049418449402,
-0.06933531165122986,
-0.12771984934806824,
-0.2041727602481842,
-0.5392057299613953,
-0.009558208286762238,
0.051752932369709015,
-0.02888648211956024,
0.13723565638065338,
-0.13561414182186127,
0.05289149284362793,
-0.0021242909133434296,
0.030005808919668198,
0.032318517565727234,
-0.015995921567082405,
0.002226598560810089,
0.07539641857147217,
-0.3097689747810364,
-0.35937759280204773,
0.051410071551799774,
0.03163112699985504,
0.17688019573688507,
-0.3762134909629822,
0.5385998487472534,
0.2853180170059204,
0.04639662802219391,
-0.09584532678127289,
0.27627333998680115,
-0.18428736925125122,
0.019609756767749786,
0.17229688167572021,
0.0894777774810791,
-0.20957082509994507,
0.39880281686782837,
0.3215474784374237,
0.22554868459701538,
0.26272693276405334,
-0.460349440574646,
0.35009926557540894,
0.03168167173862457,
-0.06976254284381866,
-0.1383187472820282,
-0.270931601524353,
0.3280026614665985,
0.1001751571893692,
0.4635063111782074,
-0.036985836923122406,
0.24889624118804932,
0.13197481632232666,
-0.13810846209526062,
-0.23726347088813782,
0.11670312285423279,
0.011380098760128021,
-0.09814238548278809,
0.28883349895477295,
-0.08730237931013107,
-0.44524309039115906,
0.3614429235458374,
0.31005987524986267,
-0.09129320085048676,
0.013085108250379562,
0.06185021623969078,
-0.2570587992668152,
-0.01127597875893116,
-0.10768468677997589,
0.5400254726409912,
0.08790342509746552,
0.2115100622177124,
0.28210848569869995,
0.02799314633011818,
-0.288762629032135,
0.03482760861515999,
0.22999775409698486,
0.138259619474411,
0.537990927696228,
-0.009058475494384766,
0.16563186049461365,
-0.20805129408836365,
0.0035572275519371033,
-0.2566027343273163,
0.39040905237197876,
0.042664527893066406,
-0.04858161136507988,
0.44404688477516174,
-0.33024415373802185,
-0.405500203371048,
-0.6255350112915039,
-0.14469575881958008,
-0.09085902571678162,
-0.2803323566913605,
-0.09690968692302704,
0.20858316123485565,
-0.07119771838188171,
0.27931851148605347,
-0.05538233369588852,
0.23792535066604614,
-0.25997793674468994,
-0.037160567939281464,
0.020812109112739563,
-0.5158358812332153,
-0.012236479669809341,
0.04406748339533806,
0.5248745679855347,
0.2014625519514084,
0.2286101132631302,
0.43849292397499084,
-0.20957215130329132,
-0.11072491854429245,
-0.1922598034143448,
0.19644546508789062,
-0.11477230489253998,
-0.006892090663313866,
0.10812537372112274,
-0.1384057253599167,
0.17010383307933807,
-0.2603878378868103,
-0.12601354718208313,
-0.08064917474985123,
-0.12642192840576172,
-0.1522287279367447,
-0.12606093287467957,
0.272267609834671,
-0.0650109052658081,
-0.19463440775871277,
-0.3711029887199402,
-0.26661577820777893,
0.367472767829895,
0.019025012850761414,
0.22016319632530212,
0.34988531470298767,
0.12300640344619751,
0.08869156986474991,
0.0806676521897316,
-0.08535701036453247,
0.16266986727714539,
-0.028725221753120422,
-0.05758306011557579,
-0.27982670068740845,
0.17780441045761108,
-0.28479576110839844,
-0.3303147554397583,
0.35674452781677246,
0.1205291599035263,
-0.20288953185081482,
0.33264902234077454,
-0.059155307710170746,
-0.00815156102180481,
-0.10782387852668762,
-0.2849692106246948,
0.07366156578063965,
0.10927250236272812,
0.07392267882823944,
-0.04203492030501366,
0.19283439218997955,
0.17131707072257996,
0.08167979121208191,
0.1657756268978119,
0.23899981379508972,
0.2205336093902588,
0.15325210988521576,
0.8823803663253784,
0.09618702530860901,
-0.2332432121038437,
-0.2094869315624237,
0.1341322362422943,
-0.30678489804267883,
0.14127306640148163,
-0.07057244330644608,
-0.1416856050491333,
-0.03079068660736084,
0.09287019819021225,
0.05045105516910553,
0.0544678270816803,
-0.36374175548553467,
0.027916021645069122,
0.016433987766504288,
-0.09760340303182602,
-0.3104012906551361,
0.3444766402244568,
-0.6596308350563049,
0.008933588862419128,
-0.046372219920158386,
-0.31653639674186707,
-0.3431250751018524,
-0.006695274729281664,
-0.32690584659576416,
-0.06865279376506805,
0.16761043667793274,
-0.02926965430378914,
-0.5071272850036621,
0.25798270106315613,
-0.431571364402771,
0.1202668696641922,
-0.08340016007423401,
0.060362622141838074,
0.21491460502147675,
-0.16059991717338562,
-0.008081182837486267,
-0.16774548590183258,
0.7057889103889465,
-0.08200009912252426,
0.035832662135362625,
-0.09291838109493256,
0.2638992965221405,
-0.5462847948074341,
0.15816381573677063,
-0.14086557924747467,
0.426321804523468,
0.14501646161079407,
0.10926488786935806,
-0.34361138939857483,
-0.3307374119758606,
0.19547632336616516,
-0.09019631147384644,
-0.23771610856056213,
0.0916699767112732,
0.12044331431388855,
-0.07635241746902466,
-0.2651783227920532,
-0.08404719084501266,
0.12251154333353043,
-0.13326627016067505,
-0.14933699369430542,
-0.08547019958496094,
-0.23047007620334625,
-0.07738397270441055,
0.13135454058647156,
-0.03397452086210251,
-0.13852772116661072,
0.058449454605579376,
0.23991122841835022,
-0.026340678334236145,
0.13796037435531616,
0.1820324957370758,
0.4787059724330902,
0.06897662580013275,
-0.42668038606643677,
-0.059945330023765564,
0.18057747185230255,
0.37760937213897705,
-0.07571129500865936,
0.3494695723056793,
0.4628925025463104,
0.5009776949882507,
-0.19134290516376495,
-0.21401356160640717,
0.14751414954662323,
-0.14113304018974304,
0.157356858253479,
-0.4000522792339325,
-0.5321148633956909,
0.45677104592323303,
0.2663404047489166,
0.003441847860813141,
0.38511019945144653,
-0.273795485496521,
-0.36358416080474854,
0.3545493483543396,
0.1856127381324768,
0.7174004316329956,
-0.18791131675243378,
0.24939517676830292,
0.23649048805236816,
-0.48765432834625244,
0.8625801205635071,
-0.4363304376602173,
0.006486644968390465,
-0.11725295335054398,
0.09158071130514145,
-0.0858599990606308,
-0.16084539890289307,
-0.130258709192276,
0.6075689792633057,
-0.07183443754911423,
0.17531581223011017,
0.22989441454410553,
-0.37059468030929565,
-0.004397377371788025,
0.4035187363624573,
-0.010801522061228752,
-0.3210258483886719,
-0.07477263361215591,
-0.0025706589221954346,
-0.36997610330581665,
-0.20560748875141144,
0.08520356565713882,
-0.22106440365314484,
-0.10996532440185547,
0.05327887833118439,
-0.19142475724220276,
0.10740318149328232,
0.055405084043741226,
0.09982053935527802,
0.12333178520202637,
-0.42705798149108887,
0.2436651885509491,
-0.050708699971437454,
0.193426251411438,
-0.3095841407775879,
-0.11503207683563232,
0.06106913089752197,
-0.11718714982271194,
0.052472762763500214,
-0.09215940535068512,
-0.21865828335285187,
0.3866879940032959,
0.1606968641281128,
-0.28237012028694153,
-0.11514119058847427,
0.0793832540512085,
-0.23703351616859436,
0.04058144986629486,
-0.10364221036434174,
0.1019347608089447,
0.3212154805660248,
-0.1311909556388855,
0.44805848598480225,
-0.3300969898700714,
-0.13162429630756378,
0.0037203337997198105,
0.09893441945314407,
-0.10849597305059433,
-0.15708577632904053,
-0.04385006055235863,
-0.05172881484031677,
0.11029630899429321,
-0.04564435034990311,
0.1898006796836853,
0.03280474245548248,
0.4517900347709656,
0.4382629096508026,
0.18499644100666046,
-0.183453768491745,
-0.1205483227968216,
0.3161782920360565,
-0.5272350311279297,
0.03485914692282677,
-0.28597739338874817,
-0.1961444914340973,
0.18810854852199554,
-0.11077451705932617,
0.025410620495676994,
0.3236617147922516,
-0.17666737735271454,
-0.3987577259540558,
-0.2347111850976944,
0.5112709999084473,
-0.18786486983299255,
0.08738009631633759,
-0.04451710358262062,
0.21559180319309235,
-0.006234887987375259,
0.39521563053131104,
-0.18375419080257416,
0.20799781382083893,
0.1332271546125412,
0.3373385965824127,
0.0425129160284996,
-0.05261984467506409,
-0.09749124199151993,
0.07804711163043976,
-0.053438879549503326,
-0.06281261891126633,
0.041490375995635986,
-0.11533064395189285,
-0.21965160965919495,
0.11842343211174011,
-0.027711544185876846,
-0.12095508724451065,
0.08008301258087158,
-0.2183682918548584,
-0.06777985394001007,
-0.09340641647577286,
-0.1152934730052948,
-0.2885550260543823,
0.019591230899095535,
0.22874680161476135,
0.07178165763616562,
0.08096467703580856,
-0.2614699900150299,
0.11320511251688004,
0.11738396435976028,
-0.02931511402130127,
-0.11847016960382462,
0.4501008987426758,
0.24631762504577637,
-0.142318457365036,
-0.5291056632995605,
-0.03617566078901291,
0.2934229373931885,
0.01782063953578472,
0.04125121608376503,
-0.06354581564664841,
-0.09371381998062134,
-0.08157510310411453,
0.2306848019361496,
0.43061089515686035,
0.039984311908483505,
0.22692157328128815,
0.2728836238384247,
0.12349990755319595,
-0.07615704834461212,
0.13164971768856049,
0.4431098401546478,
-0.254121333360672,
0.12798680365085602,
0.3206237554550171,
-0.13189290463924408,
0.1309429258108139,
-0.2874303460121155,
0.0343136265873909,
-0.0642104372382164,
-0.20250721275806427,
0.41110965609550476,
0.26904812455177307,
-0.17028383910655975,
-0.11839373409748077,
0.15167872607707977,
-0.06857939064502716,
0.3975028991699219,
0.10997505486011505,
0.21156364679336548,
0.45119112730026245,
0.29259592294692993,
-0.06654143333435059,
0.5318663120269775,
-0.14506231248378754,
-0.3541169762611389,
-0.13241177797317505,
0.12640097737312317,
0.26446712017059326,
0.22521129250526428,
0.6926088929176331,
0.22724653780460358,
-0.28280043601989746,
0.05567161738872528,
0.49299511313438416,
0.06447336077690125,
-0.3106921315193176,
-0.6167659759521484,
0.14542844891548157,
-0.11039488762617111,
-0.03573872894048691,
0.014126010239124298,
-0.29546743631362915,
0.2550462484359741,
0.14598619937896729,
0.1808386594057083,
-0.36222824454307556,
0.2633669972419739,
0.19278064370155334,
0.04509329795837402,
-0.05467745661735535,
0.1777578592300415,
0.17172962427139282,
-0.17022189497947693,
0.02094844914972782,
0.08106331527233124,
0.0977049171924591,
-0.0676136314868927,
-0.45253780484199524,
0.09628399461507797,
0.1943967193365097,
-0.06939763575792313,
-0.13718628883361816,
0.12220126390457153,
0.2356625497341156,
0.008482839912176132,
0.25976884365081787,
0.01951413042843342,
-0.10696112364530563,
-0.07922494411468506,
0.3964886963367462,
-0.03990485146641731,
-0.39998072385787964,
0.4468272924423218,
0.24780839681625366,
-0.22031107544898987,
0.20622192323207855,
0.22957587242126465,
-0.37404265999794006,
-0.12389340996742249,
0.36892086267471313,
-0.23908458650112152,
-0.05055578052997589,
0.09568127989768982,
0.021932605654001236,
-0.06271445751190186,
0.4967684745788574,
0.1408805251121521,
0.400429368019104,
0.03842708840966225,
0.05476531386375427,
-0.3039270043373108,
-0.1496279537677765,
-0.19999802112579346,
-0.03806185722351074,
-0.3141910135746002,
0.18370704352855682,
0.2592155933380127,
0.3747391104698181,
-0.13631953299045563,
0.02068948559463024,
0.28759700059890747,
0.3725077211856842,
-0.08668090403079987,
-0.26358404755592346,
0.04178309440612793,
0.32515427470207214,
0.21496255695819855,
-0.38203394412994385,
-0.10864150524139404,
0.4458049535751343,
-0.20358890295028687,
0.053374774754047394,
-0.03415277600288391,
0.32562389969825745,
-0.15649037063121796,
0.08590856194496155,
0.006181330420076847,
0.3960811197757721,
-0.05366424471139908,
-0.3540630042552948,
-0.3446357548236847,
-0.1459413319826126,
-0.5333600640296936,
0.29804641008377075,
-0.07451201975345612,
0.5710757970809937,
-0.5824337601661682,
0.19922174513339996,
-0.054803069680929184,
-0.5520593523979187,
-0.03324693813920021,
-0.01650160923600197,
-0.4366426467895508,
0.24782809615135193,
-0.24639353156089783,
0.17475643754005432,
0.06711933761835098,
0.4830774962902069,
0.0326559878885746,
0.07312437891960144,
-0.10836314409971237,
0.01930658333003521,
0.22197508811950684,
-0.16302652657032013,
-0.03378703072667122,
0.07016302645206451,
-0.056348636746406555,
0.15577059984207153,
0.10687486827373505,
-0.5881653428077698,
-0.045723460614681244,
0.24370475113391876,
-0.29936936497688293,
-0.03712765499949455,
0.16957564651966095,
0.2203144133090973,
-0.06776796281337738,
-0.11518070101737976,
0.3601844906806946,
0.046781785786151886,
-0.30411818623542786,
0.022400442510843277,
-0.3639563322067261
] |
https://github.com/huggingface/datasets/issues/328 | Fork dataset | Thanks for the helpful advice, @lhoestq -- I wasn't quite able to get the json recipe working -
```
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/ipc.py in __init__(self, source)
60
61 def __init__(self, source):
---> 62 self._open(source)
63
64
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/ipc.pxi in pyarrow.lib._RecordBatchStreamReader._open()
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Tried reading schema message, was null or length 0
```
But I'm going to give the generator_dataset_builder a try.
1 more quick question -- can .map be used to output different length mappings -- could I skip one, or yield 2, can you map_batch | We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
| 87 | Fork dataset
We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
Thanks for the helpful advice, @lhoestq -- I wasn't quite able to get the json recipe working -
```
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/ipc.py in __init__(self, source)
60
61 def __init__(self, source):
---> 62 self._open(source)
63
64
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/ipc.pxi in pyarrow.lib._RecordBatchStreamReader._open()
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowInvalid: Tried reading schema message, was null or length 0
```
But I'm going to give the generator_dataset_builder a try.
1 more quick question -- can .map be used to output different length mappings -- could I skip one, or yield 2, can you map_batch | [
-0.27099859714508057,
-0.1708679348230362,
-0.014252561144530773,
0.2424221783876419,
-0.09015291184186935,
0.03737689554691315,
0.07227998971939087,
0.35591036081314087,
0.021982189267873764,
-0.15691505372524261,
0.05683112144470215,
0.6875870227813721,
-0.3158578872680664,
0.023822883144021034,
0.13848097622394562,
-0.1774832159280777,
0.16973836719989777,
0.017578795552253723,
0.19544705748558044,
0.1319141983985901,
0.05678163468837738,
-0.10721410810947418,
0.07913143932819366,
0.10262729972600937,
-0.10719525068998337,
-0.2519368827342987,
-0.09878312051296234,
0.0902697816491127,
-0.0763714388012886,
-0.14168086647987366,
0.379657119512558,
0.13863413035869598,
-0.05518617480993271,
0.3206908404827118,
-0.0001226709282491356,
0.20561350882053375,
0.17156106233596802,
0.13513514399528503,
-0.20044800639152527,
-0.1448930948972702,
-0.12807825207710266,
-0.1294979304075241,
0.18828655779361725,
-0.18895894289016724,
0.1550605297088623,
-0.39814916253089905,
0.04958806931972504,
-0.11025524884462357,
0.7451303601264954,
0.24324661493301392,
0.07882362604141235,
0.09918925911188126,
-0.0036845244467258453,
0.22662858664989471,
-0.11863068491220474,
0.3455080986022949,
0.08206292241811752,
0.24437204003334045,
0.07209018617868423,
-0.2155691534280777,
-0.14979341626167297,
0.14664331078529358,
-0.17290887236595154,
0.024866867810487747,
0.20925650000572205,
-0.07602281123399734,
0.17841732501983643,
-0.06957577168941498,
0.08317755907773972,
0.3103857934474945,
0.002200983464717865,
-0.2151120901107788,
-0.20666010677814484,
-0.5397024750709534,
0.12705408036708832,
-0.2709566652774811,
-0.07060430198907852,
0.23714955151081085,
-0.22526812553405762,
0.24548515677452087,
-0.058989983052015305,
-0.4718380272388458,
-0.0915912538766861,
0.028221506625413895,
-0.02222580835223198,
0.29252612590789795,
0.20989517867565155,
0.30223509669303894,
0.16802917420864105,
0.03372769430279732,
0.3152099847793579,
-0.2900068163871765,
-0.06197946146130562,
0.05185355246067047,
-0.16520677506923676,
-0.24729573726654053,
-0.08893946558237076,
-0.5191529393196106,
0.07150180637836456,
0.2056315392255783,
0.3251093626022339,
-0.07325968146324158,
-0.2554777264595032,
0.15409955382347107,
0.1518893539905548,
-0.22578009963035583,
-0.1276625096797943,
0.37338483333587646,
-0.0609765499830246,
-0.26849138736724854,
0.07651546597480774,
0.12598291039466858,
-0.27886754274368286,
-0.11889538913965225,
-0.16056853532791138,
0.06777185201644897,
0.28378552198410034,
0.23337244987487793,
-0.13465985655784607,
-0.39331263303756714,
-0.3864342272281647,
-0.213863343000412,
0.1876252442598343,
0.03080737218260765,
0.02914559096097946,
0.5331346988677979,
-0.06710702180862427,
0.41221410036087036,
-0.25913572311401367,
-0.20824739336967468,
0.015252625569701195,
-0.05915291979908943,
-0.24806201457977295,
-0.0027160942554473877,
0.10999608039855957,
0.4786130487918854,
0.1313549429178238,
-0.01310740690678358,
-0.22657032310962677,
-0.03900514543056488,
0.35894519090652466,
-0.11732548475265503,
0.09504406899213791,
-0.025451790541410446,
-0.17836113274097443,
0.01853986270725727,
0.010075997561216354,
-0.07094235718250275,
-0.3327423632144928,
0.2551271319389343,
-0.10095294564962387,
-0.1926945298910141,
0.0021882280707359314,
0.02281811460852623,
-0.041333459317684174,
-0.1952390819787979,
-0.4399906098842621,
0.6162847876548767,
0.3059457242488861,
-0.01882917992770672,
0.05280890315771103,
-0.10760483145713806,
-0.2903379499912262,
-0.25867071747779846,
0.12469366937875748,
0.11321136355400085,
-0.42033180594444275,
-0.297016441822052,
-0.010706605389714241,
-0.025395669043064117,
-0.11122570186853409,
0.4214460551738739,
-0.2157960683107376,
0.15981191396713257,
0.08715778589248657,
0.0753273069858551,
0.6000879406929016,
-0.24979853630065918,
-0.06327690184116364,
0.2026129961013794,
-0.11684918403625488,
-0.15626390278339386,
0.12866276502609253,
0.033194445073604584,
0.02061876282095909,
-0.09457023441791534,
0.020933885127305984,
0.6081799864768982,
-0.3583088219165802,
0.04101955145597458,
0.00952116772532463,
-0.3130631148815155,
0.22512434422969818,
0.2373599261045456,
0.027831869199872017,
-0.1905457079410553,
-0.32084253430366516,
-0.19565105438232422,
0.27016735076904297,
-0.09933862090110779,
0.3689211308956146,
-0.059575192630290985,
-0.08423814177513123,
-0.13949570059776306,
-0.028710786253213882,
-0.1532612144947052,
-0.5317845940589905,
0.00042383745312690735,
-0.015351768583059311,
0.09285891056060791,
-0.04429216682910919,
-0.11262645572423935,
0.06998157501220703,
0.09001738578081131,
-0.04368605837225914,
-0.052615951746702194,
-0.01374654471874237,
-0.07414393126964569,
0.13488496840000153,
-0.25741276144981384,
-0.3342532813549042,
-0.11035699397325516,
0.008604766800999641,
0.20379632711410522,
-0.33596184849739075,
0.5445899367332458,
0.2347189337015152,
-0.009528440423309803,
-0.1654931604862213,
0.25172093510627747,
-0.09229253977537155,
0.09610730409622192,
0.12149243801832199,
0.11244300752878189,
-0.17081399261951447,
0.3681168556213379,
0.1516929566860199,
0.18060097098350525,
0.3069015145301819,
-0.49864476919174194,
0.4170784056186676,
0.005106670781970024,
-0.12478243559598923,
-0.14630186557769775,
-0.28523099422454834,
0.2827925980091095,
0.08964161574840546,
0.5726417899131775,
0.007449794560670853,
0.116155244410038,
0.010554654523730278,
-0.1423981934785843,
-0.25246208906173706,
0.1537439525127411,
-0.016834188252687454,
-0.006834559142589569,
0.33081284165382385,
-0.04983990639448166,
-0.4534570574760437,
0.36515605449676514,
0.3189687132835388,
-0.0790388286113739,
-0.15595266222953796,
0.04445119947195053,
-0.26883116364479065,
-0.018725987523794174,
0.03278488665819168,
0.4359907805919647,
0.12960012257099152,
0.2646859586238861,
0.34394487738609314,
-0.02343004010617733,
-0.29784098267555237,
-0.05219484865665436,
0.26129764318466187,
0.11688937246799469,
0.5971411466598511,
0.055923644453287125,
0.27539965510368347,
-0.27053380012512207,
-0.06981037557125092,
-0.2716561555862427,
0.44241514801979065,
0.059396110475063324,
-0.12376298010349274,
0.4225004315376282,
-0.29992687702178955,
-0.4046640396118164,
-0.6216880083084106,
-0.22626447677612305,
-0.1811678409576416,
-0.33334454894065857,
0.010011451318860054,
0.1288989633321762,
-0.16457423567771912,
0.3371840715408325,
0.03124692291021347,
0.05545854568481445,
-0.1915537267923355,
0.003176257014274597,
-0.07363395392894745,
-0.48766541481018066,
-0.05501727759838104,
0.022479161620140076,
0.5342304110527039,
0.12499809265136719,
0.2216806858778,
0.5519185662269592,
-0.38918423652648926,
-0.03776312619447708,
-0.32247254252433777,
0.25986170768737793,
-0.12782761454582214,
-0.02513810060918331,
0.11540499329566956,
-0.14120863378047943,
0.2514169216156006,
-0.21008552610874176,
0.04572376236319542,
-0.04512271285057068,
-0.13299554586410522,
-0.14877207577228546,
-0.18535755574703217,
0.22947731614112854,
-0.07723280787467957,
-0.15768402814865112,
-0.3379789888858795,
-0.27747300267219543,
0.42779743671417236,
0.02706288918852806,
0.15800710022449493,
0.33515501022338867,
0.17681458592414856,
0.049850139766931534,
0.043779920786619186,
-0.0661599338054657,
0.13130520284175873,
0.04987137392163277,
-0.027570050209760666,
-0.19406822323799133,
0.20046444237232208,
-0.30579909682273865,
-0.33187294006347656,
0.45479816198349,
0.21585431694984436,
-0.20862235128879547,
0.34650135040283203,
-0.03359239548444748,
0.12181010842323303,
-0.08458447456359863,
-0.2690049409866333,
0.10256052762269974,
0.19281207025051117,
0.08996466547250748,
-0.017942465841770172,
0.26161471009254456,
0.1740380823612213,
0.02477516606450081,
0.15207579731941223,
0.22428900003433228,
0.20251473784446716,
0.1355820894241333,
0.9615141153335571,
0.09174172580242157,
-0.16901034116744995,
-0.25943583250045776,
0.010125458240509033,
-0.3711109459400177,
0.10741090774536133,
0.04594888538122177,
-0.14505375921726227,
-0.0656837671995163,
-0.002103107050061226,
-0.0002098381519317627,
0.056852616369724274,
-0.4240122437477112,
0.09561701118946075,
0.0687120109796524,
-0.10753391683101654,
-0.3062424063682556,
0.37302035093307495,
-0.5912068486213684,
0.11803209036588669,
-0.050645601004362106,
-0.27954962849617004,
-0.3265388607978821,
0.044542644172906876,
-0.26963356137275696,
-0.18269677460193634,
0.15307065844535828,
-0.12654349207878113,
-0.4512418210506439,
0.09243283420801163,
-0.5370240211486816,
0.12336385995149612,
-0.007119639776647091,
-0.09680168330669403,
0.22677980363368988,
-0.2825097441673279,
0.006412215530872345,
-0.2530961334705353,
0.7298452854156494,
-0.09776313602924347,
0.05277453362941742,
0.03960314393043518,
0.22989124059677124,
-0.5488430857658386,
0.10136237740516663,
-0.1378299593925476,
0.3780577480792999,
0.20701487362384796,
0.19549134373664856,
-0.4321470558643341,
-0.359159916639328,
0.2859165072441101,
-0.153458833694458,
-0.20459900796413422,
0.003412003628909588,
0.1774909943342209,
-0.07382508367300034,
-0.28731411695480347,
-0.0029658451676368713,
0.19833754003047943,
-0.011110935360193253,
-0.15937094390392303,
-0.05433142930269241,
-0.13824309408664703,
-0.013404082506895065,
0.028666339814662933,
0.007177703082561493,
-0.043687619268894196,
-0.10880638659000397,
0.20845723152160645,
-0.0966162383556366,
0.08457008749246597,
0.27896392345428467,
0.5220506191253662,
0.05543016642332077,
-0.3628237843513489,
-0.09051907807588577,
0.15112070739269257,
0.3655593991279602,
0.14641553163528442,
0.3258495032787323,
0.4495047330856323,
0.3898547291755676,
-0.024151049554347992,
-0.14995206892490387,
0.018498731777071953,
-0.11629624664783478,
0.15190620720386505,
-0.3429185748100281,
-0.3364122807979584,
0.527854323387146,
0.24421356618404388,
-0.03160303458571434,
0.4288002848625183,
-0.27572232484817505,
-0.39674440026283264,
0.2894907593727112,
0.2824404835700989,
0.8820123672485352,
-0.041243284940719604,
0.24516712129116058,
0.4288586676120758,
-0.4744340777397156,
0.6899809241294861,
-0.5011776685714722,
-0.008126534521579742,
-0.22503593564033508,
0.17682112753391266,
-0.010969994589686394,
-0.17665381729602814,
-0.14503413438796997,
0.6129149794578552,
-0.058990225195884705,
0.06636705249547958,
0.3291283845901489,
-0.32081931829452515,
0.005624582525342703,
0.33069223165512085,
-0.05755218118429184,
-0.19697609543800354,
-0.11064757406711578,
-0.054638635367155075,
-0.26958250999450684,
-0.28409528732299805,
0.08868205547332764,
-0.3098025321960449,
-0.18382243812084198,
-0.08336754143238068,
-0.12959294021129608,
0.08425376564264297,
-0.06850690394639969,
0.07889151573181152,
0.263123482465744,
-0.48139989376068115,
0.23697561025619507,
-0.09801879525184631,
0.05421292781829834,
-0.4273023307323456,
-0.11756238341331482,
0.10900668799877167,
-0.02647513896226883,
0.03960404917597771,
-0.10838399082422256,
-0.2043939232826233,
0.3602644205093384,
0.08531923592090607,
-0.2321552038192749,
-0.12134198099374771,
-0.046810466796159744,
-0.06234986335039139,
0.0017219632863998413,
-0.19637279212474823,
0.1519390344619751,
0.24484679102897644,
-0.019987093284726143,
0.44761979579925537,
-0.3700375258922577,
-0.08606704324483871,
-0.013353612273931503,
0.034297991544008255,
-0.1728723794221878,
-0.09017885476350784,
-0.0315408892929554,
-0.04736608266830444,
0.08880576491355896,
-0.06530138105154037,
0.3045388460159302,
0.08879917860031128,
0.47431716322898865,
0.48238492012023926,
0.1281767636537552,
-0.16759106516838074,
-0.1615799516439438,
0.364277720451355,
-0.640914261341095,
0.08679988235235214,
-0.2537636160850525,
-0.1523723602294922,
0.17377543449401855,
-0.04621242359280586,
0.06729721277952194,
0.4354809820652008,
-0.19067057967185974,
-0.2262096405029297,
-0.2581790089607239,
0.5244814157485962,
-0.14529173076152802,
0.12048810720443726,
-0.1918349266052246,
0.3252480626106262,
0.07498365640640259,
0.439636766910553,
-0.18202416598796844,
0.22531425952911377,
0.09793318063020706,
0.38826894760131836,
-0.0723961815237999,
-0.10905798524618149,
-0.11320669203996658,
0.07051797211170197,
-0.07248085737228394,
-0.06433192640542984,
0.012335294857621193,
-0.08944633603096008,
-0.1491750180721283,
0.11777088791131973,
0.06036205217242241,
-0.10188475251197815,
0.10243965685367584,
-0.18733172118663788,
-0.009459905326366425,
-0.03697125241160393,
-0.07627122104167938,
-0.3490604758262634,
-0.07332445681095123,
0.15954437851905823,
0.15170109272003174,
0.10690198838710785,
-0.31492769718170166,
0.17492707073688507,
0.12013129144906998,
0.07135704159736633,
-0.0852656289935112,
0.4262799918651581,
0.2302994281053543,
-0.11620241403579712,
-0.4974852502346039,
-0.025868602097034454,
0.113756462931633,
-0.062367990612983704,
0.12278348207473755,
-0.10257823765277863,
-0.1341928094625473,
-0.2581694424152374,
0.2884769141674042,
0.4120495319366455,
0.017168056219816208,
0.1973017305135727,
0.10099738091230392,
0.11810393631458282,
-0.1254904866218567,
0.15020504593849182,
0.3381061851978302,
-0.3637133538722992,
0.12361413240432739,
0.24367263913154602,
-0.16668717563152313,
0.1396021842956543,
-0.2355649322271347,
0.16794180870056152,
-0.006439980119466782,
-0.2678118944168091,
0.30554941296577454,
0.352803111076355,
-0.1886683702468872,
-0.029350440949201584,
0.2828599810600281,
-0.0730522871017456,
0.3902778625488281,
0.01330934464931488,
0.19553746283054352,
0.4305587708950043,
0.22978389263153076,
-0.06831088662147522,
0.44170472025871277,
-0.0561181977391243,
-0.4187364876270294,
-0.08462466299533844,
0.12006576359272003,
0.12043094635009766,
0.29488927125930786,
0.7293605804443359,
0.32051557302474976,
-0.34782034158706665,
0.18538236618041992,
0.5375414490699768,
-0.01065797358751297,
-0.20629851520061493,
-0.7132192850112915,
0.068848617374897,
-0.1676311045885086,
-0.026027441024780273,
-0.1149507462978363,
-0.2241874486207962,
0.39932572841644287,
0.1802770346403122,
0.20193636417388916,
-0.4201065003871918,
0.2862582802772522,
0.1332346796989441,
0.10236519575119019,
-0.12273187935352325,
0.23453053832054138,
0.251522421836853,
-0.19357362389564514,
0.005280543118715286,
0.11138701438903809,
0.23732881247997284,
0.008605292066931725,
-0.49457037448883057,
0.007429018151015043,
0.20811769366264343,
-0.11913120746612549,
-0.13302603363990784,
0.14338329434394836,
0.366198867559433,
0.06112990528345108,
0.30616968870162964,
-0.020090576261281967,
-0.09076520055532455,
-0.003953937441110611,
0.39322105050086975,
-0.0377737320959568,
-0.25377336144447327,
0.5006623864173889,
0.18976925313472748,
-0.3410310447216034,
0.25250428915023804,
0.17083409428596497,
-0.40543705224990845,
-0.020898140966892242,
0.3292308449745178,
-0.22988569736480713,
-0.005202153697609901,
0.0529688224196434,
0.011604521423578262,
-0.05109841749072075,
0.5025139451026917,
0.21025022864341736,
0.43536293506622314,
-0.1251084953546524,
-0.035541974008083344,
-0.33554309606552124,
-0.16869476437568665,
-0.3205322325229645,
0.013056816533207893,
-0.2437044084072113,
0.20715126395225525,
0.29025736451148987,
0.371193528175354,
-0.0773664265871048,
0.08346860855817795,
0.2264586091041565,
0.4366152286529541,
-0.11407594382762909,
-0.22376073896884918,
0.11842449009418488,
0.2578311860561371,
0.1375678926706314,
-0.31392669677734375,
-0.011569436639547348,
0.35046660900115967,
-0.21530193090438843,
0.03894553706049919,
-0.008032489567995071,
0.44280192255973816,
-0.025661133229732513,
0.0372270904481411,
0.044550374150276184,
0.44798558950424194,
-0.011255234479904175,
-0.27360790967941284,
-0.18704476952552795,
-0.1563466489315033,
-0.5374306440353394,
0.3463810086250305,
-0.06372193992137909,
0.6216838359832764,
-0.5220502018928528,
0.10282312333583832,
-0.02788490243256092,
-0.5713896155357361,
-0.13639649748802185,
0.0437537245452404,
-0.3469473421573639,
0.1673671454191208,
-0.1485072374343872,
0.22701212763786316,
-0.007664892822504044,
0.4074020981788635,
0.10738706588745117,
0.05461312085390091,
-0.2766774296760559,
-0.0632093995809555,
0.2735041081905365,
-0.1833561807870865,
-0.03375948220491409,
0.05633893236517906,
-0.14016461372375488,
0.17631331086158752,
0.11326944828033447,
-0.6911989450454712,
-0.05617576837539673,
0.2711656391620636,
-0.3308922350406647,
-0.09300174564123154,
0.15329143404960632,
0.3074664771556854,
-0.09015834331512451,
-0.1591702699661255,
0.2922630310058594,
0.08038300275802612,
-0.3020387291908264,
-0.11171643435955048,
-0.44239532947540283
] |
https://github.com/huggingface/datasets/issues/328 | Fork dataset | Thanks this answers my question. I think the issue I was having using the json loader were due to using gzipped jsonl files.
The error I get now is :
```
Using custom data configuration test
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-29082a31e5b2> in <module>
5 print(ner_datafiles)
6
----> 7 ds = nlp.load_dataset("json", "test", data_files=ner_datafiles[0])
8
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
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
~/.virtualenvs/inv-text2struct/lib/python3.6/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 ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: int64> nor list<item: int64>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions.
```
If I just create a pa- table manually like is done in the jsonloader -- it seems to work fine. Ths JSON I'm trying to load isn't overly complex - 1 integer field, the rest text fields with a nested list of objects with text fields . | We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
| 324 | Fork dataset
We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
Thanks this answers my question. I think the issue I was having using the json loader were due to using gzipped jsonl files.
The error I get now is :
```
Using custom data configuration test
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-29082a31e5b2> in <module>
5 print(ner_datafiles)
6
----> 7 ds = nlp.load_dataset("json", "test", data_files=ner_datafiles[0])
8
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
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
~/.virtualenvs/inv-text2struct/lib/python3.6/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 ""))
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
736 schema_dict[field.name] = Value(str(field.type))
737
--> 738 parse_schema(writer.schema, features)
739 self.info.features = Features(features)
740
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/builder.py in parse_schema(schema, schema_dict)
734 parse_schema(field.type.value_type, schema_dict[field.name])
735 else:
--> 736 schema_dict[field.name] = Value(str(field.type))
737
738 parse_schema(writer.schema, features)
<string> in __init__(self, dtype, id, _type)
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in __post_init__(self)
55
56 def __post_init__(self):
---> 57 self.pa_type = string_to_arrow(self.dtype)
58
59 def __call__(self):
~/.virtualenvs/inv-text2struct/lib/python3.6/site-packages/nlp/features.py in string_to_arrow(type_str)
32 if str(type_str + "_") not in pa.__dict__:
33 raise ValueError(
---> 34 f"Neither {type_str} nor {type_str + '_'} seems to be a pyarrow data type. "
35 f"Please make sure to use a correct data type, see: "
36 f"https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions"
ValueError: Neither list<item: int64> nor list<item: int64>_ seems to be a pyarrow data type. Please make sure to use a correct data type, see: https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions.
```
If I just create a pa- table manually like is done in the jsonloader -- it seems to work fine. Ths JSON I'm trying to load isn't overly complex - 1 integer field, the rest text fields with a nested list of objects with text fields . | [
-0.26163727045059204,
-0.2061419039964676,
0.037501852959394455,
0.35491621494293213,
-0.16824224591255188,
0.11745964735746384,
0.14335113763809204,
0.47420817613601685,
0.30133920907974243,
-0.025156334042549133,
-0.04132851958274841,
0.77946937084198,
-0.43806490302085876,
-0.0006885882467031479,
-0.034345146268606186,
-0.13290295004844666,
0.07805700600147247,
0.03215585649013519,
0.14796513319015503,
0.17020641267299652,
-0.07667726278305054,
0.08151928335428238,
0.14057525992393494,
0.07013874500989914,
-0.03358428180217743,
-0.23559218645095825,
-0.005283216014504433,
0.3222762644290924,
-0.02230118028819561,
-0.09987913817167282,
0.39493292570114136,
0.025425704196095467,
0.01216609962284565,
0.3701488673686981,
-0.00012123669148422778,
0.24145127832889557,
0.14442501962184906,
0.04343178868293762,
-0.2983258366584778,
-0.1597708910703659,
-0.1191842332482338,
-0.20820899307727814,
0.20166060328483582,
-0.1714552938938141,
0.09304369240999222,
-0.3221845030784607,
0.010363509878516197,
-0.2175854593515396,
0.8227087259292603,
0.19595946371555328,
0.08538047969341278,
0.0941188633441925,
-0.037525542080402374,
0.18648172914981842,
-0.15288767218589783,
0.2486991137266159,
0.07064478099346161,
0.4197852611541748,
-0.07191954553127289,
-0.1584831178188324,
-0.13503482937812805,
0.15280357003211975,
-0.2114894837141037,
0.15323536098003387,
0.11553359031677246,
-0.06623287498950958,
0.10612957924604416,
-0.012974172830581665,
-0.042517393827438354,
0.23762574791908264,
-0.013733163475990295,
-0.11544432491064072,
-0.21802063286304474,
-0.5963199138641357,
0.0687735453248024,
-0.31536340713500977,
0.14511504769325256,
0.18908463418483734,
-0.2590254843235016,
0.22565191984176636,
0.12360331416130066,
-0.5307226181030273,
-0.05574784427881241,
0.12678857147693634,
-0.00984041765332222,
0.3766208589076996,
0.10915842652320862,
0.2603292763233185,
0.2779289186000824,
0.056741863489151,
0.1978447288274765,
-0.18595775961875916,
-0.1330093890428543,
-0.06771104037761688,
-0.19579099118709564,
-0.27237260341644287,
-0.1936013102531433,
-0.7956875562667847,
-0.030102446675300598,
0.2747693359851837,
0.41055944561958313,
-0.06493449211120605,
-0.22216542065143585,
0.2716944217681885,
0.2230006903409958,
-0.16228380799293518,
-0.12647223472595215,
0.32511284947395325,
0.0797925591468811,
-0.1740466207265854,
0.1110328882932663,
0.14239931106567383,
-0.33294478058815,
-0.13938289880752563,
-0.2668745219707489,
0.03581790626049042,
0.38384127616882324,
0.1243896335363388,
-0.17216278612613678,
-0.328220933675766,
-0.41794106364250183,
-0.16956184804439545,
0.12433096766471863,
0.0437098927795887,
0.02656930685043335,
0.49920353293418884,
0.028412960469722748,
0.39070409536361694,
-0.1886151283979416,
-0.23417450487613678,
0.06495171785354614,
-0.015579871833324432,
-0.11549125611782074,
0.025870542973279953,
0.23069880902767181,
0.3936815559864044,
0.25218334794044495,
0.02434684708714485,
-0.24408800899982452,
-0.08430935442447662,
0.3822435140609741,
-0.021582111716270447,
-0.0870613232254982,
0.08852958679199219,
-0.029004953801631927,
0.05623485893011093,
0.14783643186092377,
-0.16957756876945496,
-0.32866039872169495,
0.281454861164093,
-0.29432693123817444,
-0.19615043699741364,
-0.02135149948298931,
0.03272826969623566,
-0.03747159615159035,
-0.21797636151313782,
-0.526886522769928,
0.3935545086860657,
0.3471508026123047,
-0.10269493609666824,
-0.018955625593662262,
-0.1631549894809723,
-0.3421753942966461,
-0.2664165794849396,
-0.05608472228050232,
0.14453727006912231,
-0.4778343141078949,
-0.32502537965774536,
-0.2091996967792511,
0.003978602588176727,
0.023376688361167908,
0.5663743615150452,
-0.28502047061920166,
0.238200843334198,
-0.007004785351455212,
0.06573455035686493,
0.5314776301383972,
-0.2201380431652069,
-0.10846158862113953,
0.3468536138534546,
-0.14925040304660797,
0.05185166001319885,
0.14399638772010803,
0.039589181542396545,
0.05261421576142311,
-0.13082873821258545,
0.19372054934501648,
0.6393974423408508,
-0.2344771921634674,
-0.03235708549618721,
-0.04428289458155632,
-0.2477199137210846,
0.41790759563446045,
0.22437234222888947,
-0.0949271023273468,
0.019959725439548492,
-0.3340435326099396,
-0.09496180713176727,
0.1253611147403717,
-0.12286058068275452,
0.2665155827999115,
0.009040722623467445,
0.016794618219137192,
-0.08218252658843994,
-0.05573563650250435,
-0.002089003100991249,
-0.5716654658317566,
0.025883078575134277,
-0.15636037290096283,
0.04837576672434807,
0.03670482337474823,
0.0840059369802475,
0.02465231716632843,
0.024260712787508965,
-0.10755479335784912,
-0.18728891015052795,
-0.030973976477980614,
0.13214221596717834,
0.03644249215722084,
-0.3403066098690033,
-0.32919609546661377,
0.2118789255619049,
-0.03249427676200867,
0.24256813526153564,
-0.43299686908721924,
0.5431373715400696,
0.20839498937129974,
-0.11719730496406555,
-0.08735112845897675,
0.048944275826215744,
-0.09863363951444626,
-0.007006237283349037,
0.0019484423100948334,
0.19421464204788208,
-0.07572157680988312,
0.24421772360801697,
0.16991308331489563,
0.06547431647777557,
0.1595393419265747,
-0.3383488953113556,
0.3486044108867645,
0.22281856834888458,
-0.06730172783136368,
-0.11751879751682281,
-0.26347383856773376,
0.45348453521728516,
0.0424068421125412,
0.4329809546470642,
-0.11042068898677826,
0.14156250655651093,
0.22851845622062683,
-0.11953528225421906,
-0.2843777537345886,
0.07551756501197815,
0.038110703229904175,
-0.19899286329746246,
0.26026055216789246,
-0.07587090134620667,
-0.5680081248283386,
0.14073458313941956,
0.23863300681114197,
-0.019906219094991684,
-0.05734526365995407,
0.17850905656814575,
-0.11552444845438004,
-0.0487355962395668,
-0.050761617720127106,
0.504322350025177,
0.3902950882911682,
0.20233578979969025,
0.1330363005399704,
0.05277334153652191,
-0.33323803544044495,
-0.03905389457941055,
0.26450055837631226,
0.07319530099630356,
0.5722962021827698,
0.11114208400249481,
0.18849408626556396,
-0.22984589636325836,
-0.026041720062494278,
-0.2259598970413208,
0.3757142126560211,
0.19608110189437866,
-0.23285657167434692,
0.3923492431640625,
-0.38594624400138855,
-0.3946235775947571,
-0.6372323632240295,
-0.12649855017662048,
-0.22284597158432007,
-0.4076818823814392,
-0.059663303196430206,
0.29418328404426575,
-0.20083822309970856,
0.3044990003108978,
-0.008395832031965256,
0.2533285915851593,
-0.09697648882865906,
-0.06331479549407959,
-0.06503401696681976,
-0.3226167559623718,
-0.09712166339159012,
0.009573344141244888,
0.4663538336753845,
0.04869164153933525,
0.17793747782707214,
0.4626575708389282,
-0.31118035316467285,
0.004036647267639637,
-0.23305147886276245,
0.2138880491256714,
-0.1255086362361908,
0.08863925188779831,
0.12302209436893463,
-0.033431276679039,
0.33056092262268066,
-0.3943116366863251,
0.010142459534108639,
-0.013206865638494492,
-0.20627911388874054,
-0.09490261226892471,
0.028606588020920753,
0.34867122769355774,
-0.1070186048746109,
-0.30938398838043213,
-0.3159712255001068,
-0.3946547508239746,
0.22593078017234802,
0.05162687227129936,
0.21610552072525024,
0.42952069640159607,
0.1762688159942627,
0.04634798690676689,
0.15556758642196655,
-0.026217209175229073,
0.014796328730881214,
-0.04559890553355217,
0.03388572484254837,
-0.3673458397388458,
0.18973620235919952,
-0.28431978821754456,
-0.20596188306808472,
0.4252791404724121,
0.11522551625967026,
-0.3176310658454895,
0.34408751130104065,
-0.04343189299106598,
-0.01671193167567253,
-0.22249606251716614,
-0.36225202679634094,
0.02442016452550888,
0.1780637800693512,
0.04527115076780319,
-0.03387671336531639,
0.14686784148216248,
0.22607877850532532,
0.11215975135564804,
0.23243913054466248,
0.26337000727653503,
0.3287678360939026,
0.19266165792942047,
0.8260388970375061,
0.08513900637626648,
-0.11768476665019989,
-0.06167967617511749,
0.09743468463420868,
-0.2724164128303528,
0.03750808909535408,
-0.0940990149974823,
-0.23913675546646118,
-0.08242350816726685,
0.06999422609806061,
-0.027407079935073853,
0.060734186321496964,
-0.47482913732528687,
-0.016499357298016548,
0.03845963254570961,
-0.06945034861564636,
-0.34801480174064636,
0.4364907741546631,
-0.5182199478149414,
0.06215347349643707,
-0.11403240263462067,
-0.31194671988487244,
-0.255990594625473,
0.05149234086275101,
-0.2783666253089905,
-0.05209439992904663,
0.12091614305973053,
-0.07203458249568939,
-0.4131588041782379,
0.19934581220149994,
-0.36439675092697144,
0.20308278501033783,
-0.11064717173576355,
0.2612342834472656,
0.09755247831344604,
-0.24449899792671204,
-0.028140641748905182,
-0.24869410693645477,
0.7580452561378479,
-0.0748395025730133,
0.10267457365989685,
0.09708088636398315,
0.10428102314472198,
-0.5244811773300171,
0.02192198857665062,
-0.21868380904197693,
0.48393964767456055,
0.30865585803985596,
0.39030808210372925,
-0.3387845754623413,
-0.2800489068031311,
0.19921864569187164,
-0.1463640332221985,
-0.26133984327316284,
-0.015423189848661423,
0.027556825429201126,
-0.1254514455795288,
-0.41562068462371826,
-0.08439857512712479,
0.06511718034744263,
0.05818314477801323,
-0.13755598664283752,
0.04626908525824547,
-0.19929063320159912,
-0.16092213988304138,
0.09174134582281113,
-0.01535367127507925,
-0.17883166670799255,
0.013564854860305786,
0.20813462138175964,
-0.11286768317222595,
0.22144009172916412,
0.15892992913722992,
0.6004494428634644,
0.24924440681934357,
-0.31629741191864014,
-0.03048035129904747,
0.16834872961044312,
0.2941433787345886,
0.0430302619934082,
0.19528904557228088,
0.3621753752231598,
0.3023661971092224,
-0.06501643359661102,
-0.12209852784872055,
0.1000136137008667,
-0.09102946519851685,
0.08359550684690475,
-0.4143502712249756,
-0.3978823125362396,
0.403308242559433,
0.2466862052679062,
-0.001895122230052948,
0.41537943482398987,
-0.3548698425292969,
-0.37399497628211975,
0.2413824200630188,
0.20819318294525146,
0.8665279150009155,
-0.011606886982917786,
0.16251662373542786,
0.4749669134616852,
-0.506637692451477,
0.7132526636123657,
-0.4881282448768616,
0.05089892819523811,
-0.17402029037475586,
0.22635705769062042,
-0.03867487236857414,
-0.16007941961288452,
0.06535297632217407,
0.5145096778869629,
-0.12492403388023376,
0.19100943207740784,
0.21155257523059845,
-0.41046199202537537,
-0.026795560494065285,
0.4065265953540802,
-0.0034947283565998077,
-0.2639397978782654,
-0.23127412796020508,
-0.04259614646434784,
-0.4342309236526489,
-0.09860309958457947,
0.1533999741077423,
-0.31867194175720215,
-0.21091115474700928,
-0.13211238384246826,
-0.1447938084602356,
0.11916787177324295,
0.12161751836538315,
0.2122858166694641,
0.21920837461948395,
-0.4170314073562622,
0.21054525673389435,
-0.13370594382286072,
0.0080595463514328,
-0.2745542526245117,
-0.047328464686870575,
-0.034272465854883194,
-0.23725953698158264,
0.05142108350992203,
-0.078910693526268,
-0.12074190378189087,
0.387147456407547,
0.02044137567281723,
-0.18950381875038147,
-0.08734219521284103,
0.007570668123662472,
-0.35874873399734497,
0.12812349200248718,
-0.04320358484983444,
-0.09221406280994415,
0.0538499690592289,
-0.21291092038154602,
0.344167023897171,
-0.31494900584220886,
-0.1751493215560913,
-0.014775898307561874,
0.06271504610776901,
-0.1868646889925003,
-0.16035977005958557,
-0.01799260452389717,
-0.15483058989048004,
0.03775414079427719,
0.11759442090988159,
0.2087215781211853,
0.11843174695968628,
0.5312080383300781,
0.3709816634654999,
0.2150755375623703,
-0.188542902469635,
-0.005703352391719818,
0.25211822986602783,
-0.4778152108192444,
0.13726064562797546,
-0.295643150806427,
-0.16878128051757812,
0.0575585663318634,
-0.07784844934940338,
0.1326591968536377,
0.44252124428749084,
-0.046945326030254364,
-0.39816612005233765,
-0.27476486563682556,
0.4557514786720276,
-0.11033354699611664,
0.09982457756996155,
-0.1173502653837204,
0.2304963916540146,
-0.053396400064229965,
0.3978676199913025,
-0.17707914113998413,
0.2526493966579437,
-0.0048281289637088776,
0.3383483290672302,
0.056591689586639404,
-0.06884181499481201,
-0.06236792355775833,
0.1294480860233307,
-0.0358809158205986,
-0.056073881685733795,
0.05162357911467552,
-0.08489786088466644,
-0.19866403937339783,
0.11358456313610077,
0.009808989241719246,
-0.14019131660461426,
0.07157573848962784,
-0.2780887484550476,
-0.06067626550793648,
0.039938654750585556,
-0.13438035547733307,
-0.3121051490306854,
-0.09116505086421967,
0.3229662775993347,
0.002908356487751007,
0.08504978567361832,
-0.14960478246212006,
0.22550493478775024,
0.0032473430037498474,
0.11738069355487823,
-0.0654405951499939,
0.33539098501205444,
0.19352206587791443,
-0.09993493556976318,
-0.6856936812400818,
-0.05327262729406357,
0.05232635512948036,
0.003071412444114685,
0.10923890769481659,
-0.2000799924135208,
-0.1315530240535736,
-0.28988900780677795,
0.2536645233631134,
0.4463507831096649,
-0.07393917441368103,
0.1958032101392746,
0.2406328022480011,
0.06335629522800446,
-0.06349597871303558,
0.0882204920053482,
0.48354974389076233,
-0.3166554570198059,
0.07115912437438965,
0.3000299036502838,
-0.16041623055934906,
0.1473100334405899,
-0.30098843574523926,
0.05271857976913452,
0.08225608617067337,
-0.12545810639858246,
0.3439548909664154,
0.3214905560016632,
-0.3618200719356537,
-0.040101055055856705,
0.16148841381072998,
-0.11939169466495514,
0.4025026261806488,
0.04844360798597336,
0.2046443521976471,
0.3204607665538788,
0.27500995993614197,
-0.055765796452760696,
0.42213019728660583,
-0.30980831384658813,
-0.35927659273147583,
-0.00075531005859375,
0.035840943455696106,
0.24835532903671265,
0.28367963433265686,
0.5921640992164612,
0.17224349081516266,
-0.2773674726486206,
0.09167041629552841,
0.522163450717926,
-0.012186713516712189,
-0.2795136272907257,
-0.6138978600502014,
0.06278621405363083,
-0.2234596163034439,
0.05790829285979271,
-0.04248424991965294,
-0.24305231869220734,
0.20199498534202576,
0.1961258053779602,
0.04608934372663498,
-0.4166126251220703,
0.3033422529697418,
0.1623997539281845,
-0.024527087807655334,
-0.20110006630420685,
0.24909189343452454,
0.25444185733795166,
-0.12840081751346588,
0.07052171230316162,
0.03482871130108833,
0.31726211309432983,
0.0864625871181488,
-0.3684064745903015,
-0.00896401796489954,
0.13968881964683533,
-0.07741053402423859,
-0.17332743108272552,
0.18539856374263763,
0.26542186737060547,
0.06291505694389343,
0.36063089966773987,
0.007665896788239479,
-0.09079659730195999,
0.028116216883063316,
0.40003421902656555,
0.09570296108722687,
-0.31851938366889954,
0.5138182640075684,
0.172928586602211,
-0.21440938115119934,
0.3287237584590912,
0.08661529421806335,
-0.4180993437767029,
-0.16640855371952057,
0.2632782757282257,
-0.03458947688341141,
0.00290091335773468,
0.14589917659759521,
0.015029869973659515,
-0.07314601540565491,
0.6327577233314514,
0.17509496212005615,
0.2684527337551117,
-0.03028116375207901,
0.048775359988212585,
-0.32377150654792786,
-0.09668651968240738,
-0.2670499384403229,
-0.019345801323652267,
-0.26508647203445435,
0.21121932566165924,
0.34348779916763306,
0.48390763998031616,
-0.16520525515079498,
0.08608803153038025,
0.2459128499031067,
0.2894408702850342,
-0.16102315485477448,
-0.3069119155406952,
0.22028496861457825,
0.3486306071281433,
0.1889542192220688,
-0.3502086102962494,
-0.06863242387771606,
0.40955087542533875,
-0.16187091171741486,
0.04649302363395691,
-0.06748965382575989,
0.24038991332054138,
0.032800476998090744,
0.04901540279388428,
0.13219279050827026,
0.4877575933933258,
-0.03355593979358673,
-0.37634438276290894,
-0.2149558663368225,
-0.1724826544523239,
-0.4667956531047821,
0.23788931965827942,
-0.018556762486696243,
0.7020078897476196,
-0.5233486890792847,
0.14368034899234772,
-0.2510557472705841,
-0.3602830171585083,
-0.17429694533348083,
0.06903957575559616,
-0.36358192563056946,
0.2612660229206085,
-0.11661681532859802,
0.19276216626167297,
-0.04478534683585167,
0.42782264947891235,
0.04208877310156822,
0.12517748773097992,
-0.3780822157859802,
0.03844413161277771,
0.37097710371017456,
-0.21457010507583618,
-0.12659387290477753,
0.20505207777023315,
-0.12254172563552856,
0.1562429666519165,
0.19384369254112244,
-0.558032214641571,
-0.05038336291909218,
0.27294185757637024,
-0.29998594522476196,
-0.11327910423278809,
0.1660783439874649,
0.23746617138385773,
-0.11079737544059753,
-0.031058352440595627,
0.257628858089447,
0.1307673156261444,
-0.27195289731025696,
0.03826729580760002,
-0.3147014379501343
] |
https://github.com/huggingface/datasets/issues/328 | Fork dataset | I'll close this -- It's still unclear how to go about troubleshooting the json example as I mentioned above. If I decide it's worth the trouble, I'll create another issue, or wait for a better support for using nlp for making custom data-loaders. | We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
| 43 | Fork dataset
We have a multi-task learning model training I'm trying to convert to using the Arrow-based nlp dataset.
We're currently training a custom TensorFlow model but the nlp paradigm should be a bridge for us to be able to use the wealth of pre-trained models in Transformers.
Our preprocessing flow parses raw text and json with Entity and Relations annotations and creates 2 datasets for training a NER and Relations prediction heads.
Is there some good way to "fork" dataset-
EG
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 -> DatasetREL
or
1. text + json -> Dataset1
1. Dataset1 -> DatasetNER
1. Dataset1 + DatasetNER -> DatasetREL
I'll close this -- It's still unclear how to go about troubleshooting the json example as I mentioned above. If I decide it's worth the trouble, I'll create another issue, or wait for a better support for using nlp for making custom data-loaders. | [
-0.22559285163879395,
-0.21397532522678375,
0.013712018728256226,
0.18746128678321838,
-0.2855696678161621,
0.1027284637093544,
0.08597856760025024,
0.30907079577445984,
0.2629743814468384,
-0.13470228016376495,
0.0771377757191658,
0.6757099032402039,
-0.3767235279083252,
0.130016028881073,
0.10404364764690399,
-0.20217826962471008,
0.15670481324195862,
0.030567824840545654,
0.24323982000350952,
0.12467491626739502,
-0.003057193011045456,
-0.14042234420776367,
0.1567751169204712,
0.015114128589630127,
-0.061115365475416183,
-0.24104660749435425,
-0.1119409054517746,
0.18317802250385284,
0.04362419247627258,
0.00808135885745287,
0.42429041862487793,
0.16824817657470703,
-0.03575320541858673,
0.33148521184921265,
-0.00011822032683994621,
0.12424793839454651,
0.10824854671955109,
0.1458236575126648,
-0.25848710536956787,
-0.15566454827785492,
-0.11276747286319733,
-0.13710550963878632,
0.2131109982728958,
-0.14484867453575134,
0.13674396276474,
-0.32789820432662964,
0.1708422601222992,
-0.12972360849380493,
0.769985556602478,
0.13350042700767517,
0.10888541489839554,
0.04543447494506836,
-0.12471404671669006,
0.225099116563797,
-0.24784544110298157,
0.2831088900566101,
0.07890328019857407,
0.20201054215431213,
0.01153494417667389,
-0.162136510014534,
-0.1638319194316864,
0.020395686849951744,
-0.15259584784507751,
0.10968056321144104,
0.12503863871097565,
-0.12215989083051682,
0.05436308681964874,
-0.027397319674491882,
-0.027713872492313385,
0.3535754680633545,
-0.011499986052513123,
-0.1214182898402214,
-0.16663150489330292,
-0.6308930516242981,
0.07149548828601837,
-0.1956178992986679,
-0.03272469341754913,
0.10708463191986084,
-0.17027997970581055,
0.22139742970466614,
0.12797899544239044,
-0.5801437497138977,
0.035780519247055054,
0.11033502221107483,
-0.062391310930252075,
0.3296545445919037,
0.17296123504638672,
0.1976507604122162,
0.255297988653183,
0.059415481984615326,
0.3220233917236328,
-0.20344924926757812,
-0.01876702532172203,
-0.030843451619148254,
-0.1546318680047989,
-0.26073190569877625,
-0.14788061380386353,
-0.6261655688285828,
-0.001197049394249916,
0.2987712025642395,
0.34444308280944824,
0.029550107195973396,
-0.3762345314025879,
0.23496362566947937,
0.18564699590206146,
-0.2687038779258728,
-0.18348181247711182,
0.28089645504951477,
0.0147726871073246,
-0.2175779640674591,
0.050067562609910965,
0.1455634981393814,
-0.3928113281726837,
0.010900572873651981,
-0.3534694314002991,
-0.06366591155529022,
0.34514015913009644,
0.19899338483810425,
-0.1900557279586792,
-0.40274709463119507,
-0.23241418600082397,
-0.14434637129306793,
0.14342069625854492,
0.001795068383216858,
0.027225911617279053,
0.5649715662002563,
-0.07313805818557739,
0.3858675956726074,
-0.21320779621601105,
-0.23110589385032654,
0.023288240656256676,
-0.05437905713915825,
-0.1361837536096573,
0.01079648733139038,
0.10719253122806549,
0.5068048238754272,
0.15110884606838226,
-0.01940632052719593,
-0.3058047294616699,
-0.07697395235300064,
0.4386521875858307,
-0.054670561105012894,
-0.07734451442956924,
-0.04584544524550438,
-0.062255896627902985,
0.08189765363931656,
0.09541986882686615,
-0.08166469633579254,
-0.260601669549942,
0.2103668749332428,
-0.17669421434402466,
-0.13158176839351654,
0.021949533373117447,
0.06713992357254028,
0.0027991533279418945,
-0.31256741285324097,
-0.5295149683952332,
0.6395677924156189,
0.19600099325180054,
-0.06902199983596802,
0.010107167065143585,
-0.003934904932975769,
-0.348134845495224,
-0.2317088544368744,
-0.010424192994832993,
0.052944913506507874,
-0.3890049457550049,
-0.361555278301239,
-0.2279176115989685,
0.011744740419089794,
-0.06761444360017776,
0.45653459429740906,
-0.2434227168560028,
0.1787780225276947,
0.03417322039604187,
0.01669493317604065,
0.5639644265174866,
-0.18105000257492065,
-0.059942878782749176,
0.23426130414009094,
-0.23425854742527008,
0.036301493644714355,
0.08254550397396088,
0.14395488798618317,
-0.03816881403326988,
-0.18145443499088287,
0.05704393982887268,
0.7605230808258057,
-0.28688767552375793,
-0.004072699695825577,
0.06457149982452393,
-0.23861044645309448,
0.3192773461341858,
0.2190314531326294,
-0.06276455521583557,
0.054826583713293076,
-0.33123472332954407,
-0.02238450199365616,
0.22037968039512634,
-0.04920879378914833,
0.30523771047592163,
-0.10402935743331909,
-0.12169711291790009,
-0.0869738757610321,
-0.11415542662143707,
-0.15052542090415955,
-0.4700719714164734,
-0.017650537192821503,
0.06896437704563141,
0.011858932673931122,
0.28297942876815796,
-0.08160331845283508,
0.05522970110177994,
-0.018846619874238968,
-0.021703768521547318,
-0.00968780368566513,
-0.007629493251442909,
0.09644441306591034,
0.03285277262330055,
-0.28097566962242126,
-0.37099480628967285,
0.11228717118501663,
-0.04721839725971222,
0.205912783741951,
-0.3807471692562103,
0.4885472059249878,
0.29257601499557495,
0.015994159504771233,
-0.09338390827178955,
0.21376585960388184,
-0.15946993231773376,
0.04179556667804718,
0.18024736642837524,
0.07190995663404465,
-0.20720356702804565,
0.41968488693237305,
0.1911333203315735,
0.12245528399944305,
0.18480634689331055,
-0.3710246682167053,
0.2803328335285187,
0.10756517946720123,
-0.10182326287031174,
-0.17907366156578064,
-0.2775413393974304,
0.3033384084701538,
0.10361769795417786,
0.4381713271141052,
-0.008315853774547577,
0.15381960570812225,
0.14745989441871643,
-0.1902010589838028,
-0.24455463886260986,
0.1409137099981308,
0.09184819459915161,
-0.17031681537628174,
0.2928285300731659,
-0.06609223037958145,
-0.5334093570709229,
0.26630863547325134,
0.25970926880836487,
-0.02310090884566307,
-0.006763964891433716,
0.0656956359744072,
-0.2278887927532196,
-0.027263030409812927,
-0.08004019409418106,
0.5746637582778931,
0.16694019734859467,
0.22456780076026917,
0.30804434418678284,
0.012803210876882076,
-0.30455872416496277,
-0.01589839532971382,
0.21376866102218628,
0.12955988943576813,
0.563198447227478,
0.011666346341371536,
0.21227207779884338,
-0.24072690308094025,
-0.04500911384820938,
-0.20996643602848053,
0.40446537733078003,
0.040778134018182755,
-0.08481527119874954,
0.3655436635017395,
-0.35086095333099365,
-0.4246237874031067,
-0.6468886137008667,
-0.18502086400985718,
-0.15520408749580383,
-0.35202914476394653,
-0.02548927813768387,
0.303981214761734,
-0.13394686579704285,
0.22586190700531006,
-0.012355908751487732,
0.29321739077568054,
-0.35225391387939453,
0.008980737067759037,
0.006000451743602753,
-0.4163361191749573,
-0.03309066593647003,
0.06513457000255585,
0.5234524011611938,
0.17995552718639374,
0.22015301883220673,
0.4802733063697815,
-0.2884748578071594,
0.022892532870173454,
-0.19875356554985046,
0.21831059455871582,
-0.08743377029895782,
-0.029772302135825157,
0.05964728817343712,
-0.11225815117359161,
0.20679190754890442,
-0.2833406329154968,
-0.10182030498981476,
-0.016041230410337448,
-0.13604213297367096,
-0.137762650847435,
-0.03774629905819893,
0.32850387692451477,
-0.06296320259571075,
-0.16502410173416138,
-0.32272136211395264,
-0.3119984567165375,
0.35061222314834595,
0.03687569871544838,
0.16554254293441772,
0.3113009035587311,
0.07971735298633575,
0.051015712320804596,
0.17139555513858795,
-0.029392844066023827,
0.10303572565317154,
-0.06838680058717728,
-0.14362327754497528,
-0.2770162522792816,
0.2035321295261383,
-0.2974309027194977,
-0.24349205195903778,
0.3983847498893738,
0.12820594012737274,
-0.23717306554317474,
0.4022572338581085,
-0.05766037851572037,
-0.04828326776623726,
-0.14535243809223175,
-0.38610655069351196,
0.07290330529212952,
0.08534622192382812,
0.058449842035770416,
-0.03815542161464691,
0.22280561923980713,
0.18928255140781403,
0.10138585418462753,
0.1968120038509369,
0.2205893099308014,
0.18876910209655762,
0.19562596082687378,
0.8005086779594421,
0.026444081217050552,
-0.18821404874324799,
-0.13733725249767303,
0.15236037969589233,
-0.3494241535663605,
0.08590783178806305,
-0.036681029945611954,
-0.14925351738929749,
-0.05117045342922211,
0.07918388396501541,
0.0792011171579361,
0.03233945369720459,
-0.38235747814178467,
0.010870285332202911,
-0.004444042220711708,
-0.08405835181474686,
-0.2789999544620514,
0.37530678510665894,
-0.6413499116897583,
-0.0014684125781059265,
-0.036607980728149414,
-0.3795258104801178,
-0.28139835596084595,
0.02552713453769684,
-0.3960123658180237,
-0.07638400793075562,
0.12835454940795898,
-0.025308724492788315,
-0.5550851225852966,
0.2587535083293915,
-0.4043120741844177,
0.10655225068330765,
-0.14971113204956055,
0.10829749703407288,
0.13370376825332642,
-0.21574977040290833,
-0.007779471576213837,
-0.25126442313194275,
0.726521909236908,
-0.06211180239915848,
0.07743773609399796,
-0.021897554397583008,
0.24433833360671997,
-0.5533455014228821,
0.11869099736213684,
-0.16433660686016083,
0.48465079069137573,
0.21805667877197266,
0.18558518588542938,
-0.3536522686481476,
-0.26115134358406067,
0.1544136106967926,
-0.1339903324842453,
-0.23711994290351868,
0.034615181386470795,
0.09012444317340851,
-0.07537229359149933,
-0.28768932819366455,
-0.049198828637599945,
0.11333068460226059,
-0.08350103348493576,
-0.20090392231941223,
-0.03562602400779724,
-0.22938907146453857,
-0.10234709829092026,
0.13472694158554077,
-0.020932747051119804,
-0.2114557921886444,
0.002697648713365197,
0.19488170742988586,
-0.0913318395614624,
0.21668551862239838,
0.17786440253257751,
0.5501299500465393,
0.10800230503082275,
-0.4033307135105133,
-0.06946882605552673,
0.17530670762062073,
0.3590194582939148,
0.0023788511753082275,
0.41146254539489746,
0.5049766302108765,
0.44894489645957947,
-0.20140813291072845,
-0.191838338971138,
0.14674720168113708,
-0.121008962392807,
0.16190196573734283,
-0.46139267086982727,
-0.39001962542533875,
0.44334477186203003,
0.2551622986793518,
-0.018710099160671234,
0.378632515668869,
-0.29205095767974854,
-0.37765729427337646,
0.3467845916748047,
0.09686727821826935,
0.7605612874031067,
-0.12759916484355927,
0.2465565800666809,
0.2234187126159668,
-0.4836929440498352,
0.8631599545478821,
-0.4748448133468628,
0.04446909576654434,
-0.09992779791355133,
0.13517096638679504,
-0.05825432017445564,
-0.15133829414844513,
-0.08579906076192856,
0.5734056234359741,
-0.09484896063804626,
0.11308541893959045,
0.21729572117328644,
-0.39627790451049805,
0.011070691049098969,
0.4008007347583771,
0.002583259716629982,
-0.24148714542388916,
-0.12340600788593292,
-0.004378261044621468,
-0.3816983699798584,
-0.16986247897148132,
0.07841289043426514,
-0.18440204858779907,
-0.12993557751178741,
0.01246991753578186,
-0.13749107718467712,
0.10008736699819565,
0.13050734996795654,
0.05572196841239929,
0.15297558903694153,
-0.4156390428543091,
0.19851432740688324,
-0.1558760702610016,
0.15041297674179077,
-0.3637371063232422,
-0.0930846706032753,
0.038114938884973526,
-0.16749218106269836,
0.07359900325536728,
-0.0941922515630722,
-0.24205602705478668,
0.4414745271205902,
0.10908176749944687,
-0.2119501233100891,
-0.12520745396614075,
0.03774699568748474,
-0.23223985731601715,
-0.028828009963035583,
-0.04950897395610809,
0.09024763107299805,
0.23527051508426666,
-0.2116115689277649,
0.47938019037246704,
-0.3060406744480133,
-0.17583175003528595,
0.00936128105968237,
0.05178343132138252,
-0.09108208119869232,
-0.20783144235610962,
-0.03668146952986717,
-0.05142790079116821,
0.09557440876960754,
0.024005480110645294,
0.24926814436912537,
0.04293926805257797,
0.4369226396083832,
0.38840505480766296,
0.2362612932920456,
-0.17364615201950073,
-0.11260438710451126,
0.39203280210494995,
-0.46302711963653564,
0.06548872590065002,
-0.30117955803871155,
-0.24097990989685059,
0.16308262944221497,
-0.08934050798416138,
0.043742306530475616,
0.33438050746917725,
-0.16709184646606445,
-0.37851545214653015,
-0.21000216901302338,
0.5031381249427795,
-0.15609388053417206,
0.11688774824142456,
-0.07204586267471313,
0.27505019307136536,
0.028588058426976204,
0.4572608172893524,
-0.18177588284015656,
0.24920998513698578,
0.07249630987644196,
0.34907907247543335,
0.004370409995317459,
-0.012063510715961456,
-0.1322564035654068,
0.12971597909927368,
-0.06168878823518753,
-0.0028905346989631653,
0.12256433814764023,
-0.11281154304742813,
-0.1961967647075653,
0.11714210361242294,
0.07788005471229553,
-0.1447000801563263,
0.0897052064538002,
-0.2446611374616623,
0.030283676460385323,
0.011950775980949402,
-0.11402037739753723,
-0.32342103123664856,
-0.0676853209733963,
0.22828030586242676,
0.0907377302646637,
0.1796734482049942,
-0.2158181220293045,
0.1726084202528,
0.10360634326934814,
-0.008181542158126831,
-0.13441400229930878,
0.36303356289863586,
0.29373258352279663,
-0.08276966959238052,
-0.5364313125610352,
-0.06324619799852371,
0.28462880849838257,
0.012341592460870743,
-0.023059748113155365,
-0.11943483352661133,
-0.07787968218326569,
-0.2318907082080841,
0.2651404142379761,
0.4332118034362793,
0.006192753091454506,
0.19340388476848602,
0.28081196546554565,
0.12228526175022125,
-0.04993479698896408,
0.07904310524463654,
0.4891519844532013,
-0.34506702423095703,
0.08497978746891022,
0.26141124963760376,
-0.11775341629981995,
0.12299324572086334,
-0.30804771184921265,
0.0012808144092559814,
-0.031696729362010956,
-0.20970454812049866,
0.37354809045791626,
0.2310183197259903,
-0.29585519433021545,
-0.08317284286022186,
0.1448841243982315,
-0.12540555000305176,
0.32391539216041565,
0.11882153153419495,
0.27970579266548157,
0.4925566613674164,
0.33536839485168457,
-0.09458096325397491,
0.5092291831970215,
-0.19007888436317444,
-0.3325271010398865,
-0.06505165994167328,
0.12595956027507782,
0.2740228772163391,
0.23777541518211365,
0.608020544052124,
0.23677411675453186,
-0.2535495460033417,
0.09609513729810715,
0.4803639352321625,
-0.008023649454116821,
-0.29759490489959717,
-0.6598885655403137,
0.10005413740873337,
-0.12825016677379608,
-0.027262907475233078,
-0.06835408508777618,
-0.2648765444755554,
0.23479211330413818,
0.12117927521467209,
0.17138546705245972,
-0.378319650888443,
0.2370418906211853,
0.12157747149467468,
0.02086387574672699,
-0.08967234194278717,
0.198806494474411,
0.19969823956489563,
-0.15325412154197693,
0.11747883260250092,
0.05303548648953438,
0.11605823040008545,
-0.04319147765636444,
-0.473179429769516,
0.051317326724529266,
0.11386632919311523,
-0.05852054804563522,
-0.2365320473909378,
0.12243464589118958,
0.29206258058547974,
0.010960400104522705,
0.3345222473144531,
0.019128942862153053,
-0.11690285801887512,
0.00960446521639824,
0.44032976031303406,
-0.02932637184858322,
-0.48786240816116333,
0.4588007628917694,
0.20775091648101807,
-0.23039624094963074,
0.25856271386146545,
0.23088249564170837,
-0.3879232108592987,
-0.15843871235847473,
0.32807618379592896,
-0.2374752163887024,
-0.05052416771650314,
0.1283557265996933,
0.026388637721538544,
-0.04248323664069176,
0.5274131298065186,
0.14723744988441467,
0.38152235746383667,
0.04675791785120964,
-0.03881261870265007,
-0.3185814619064331,
-0.027885980904102325,
-0.28099560737609863,
-0.02263747528195381,
-0.30622801184654236,
0.14788202941417694,
0.30639344453811646,
0.37705790996551514,
-0.22428880631923676,
0.04790192097425461,
0.23187634348869324,
0.31437230110168457,
-0.07991798222064972,
-0.28440383076667786,
0.13490450382232666,
0.28361818194389343,
0.1767902970314026,
-0.29517289996147156,
-0.05817582830786705,
0.5080984234809875,
-0.19289696216583252,
0.07086452841758728,
-0.020798809826374054,
0.2869105041027069,
-0.02968169003725052,
0.04831765592098236,
0.06427689641714096,
0.4536294937133789,
-0.06978326290845871,
-0.4069773554801941,
-0.24577340483665466,
-0.13262856006622314,
-0.5627470016479492,
0.2836135923862457,
-0.09076391160488129,
0.6159166097640991,
-0.5590016841888428,
0.2587599754333496,
-0.04052119329571724,
-0.5787871479988098,
-0.07629568129777908,
0.08160407841205597,
-0.4081578254699707,
0.2503032088279724,
-0.20562174916267395,
0.18800978362560272,
0.07629276812076569,
0.5517147183418274,
0.06931313127279282,
0.019930487498641014,
-0.2070104330778122,
0.06044841557741165,
0.21921949088573456,
-0.17703688144683838,
-0.0585656575858593,
0.08326128870248795,
-0.09256051480770111,
0.11864128708839417,
0.13606202602386475,
-0.5521398186683655,
-0.14666232466697693,
0.2632926106452942,
-0.30440083146095276,
-0.03151964768767357,
0.18224495649337769,
0.20294289290905,
-0.13057714700698853,
-0.08262506127357483,
0.313321053981781,
0.12317220866680145,
-0.3210163414478302,
0.07176342606544495,
-0.3371942639350891
] |
https://github.com/huggingface/datasets/issues/326 | Large dataset in Squad2-format | I'm pretty sure you can get some inspiration from the squad_v2 script. It looks like the dataset is quite big so it will take some time for the users to generate it, but it should be reasonable.
Also you are saying that you are still making the dataset grow in size right ?
It's probably good practice to let the users do their training/evaluations with the exact same version of the dataset.
We allow for each dataset to specify a version (ex: 1.0.0) and increment this number every time there are new samples in the dataset for example. Does it look like a good solution for you ? Or would you rather have one final version with the full dataset ? | At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ? | 121 | Large dataset in Squad2-format
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ?
I'm pretty sure you can get some inspiration from the squad_v2 script. It looks like the dataset is quite big so it will take some time for the users to generate it, but it should be reasonable.
Also you are saying that you are still making the dataset grow in size right ?
It's probably good practice to let the users do their training/evaluations with the exact same version of the dataset.
We allow for each dataset to specify a version (ex: 1.0.0) and increment this number every time there are new samples in the dataset for example. Does it look like a good solution for you ? Or would you rather have one final version with the full dataset ? | [
-0.09977859258651733,
-0.24149931967258453,
-0.11181372404098511,
0.18103215098381042,
0.19708405435085297,
-0.015227533876895905,
0.023252006620168686,
0.4885348677635193,
-0.09127983450889587,
0.18163198232650757,
-0.21266202628612518,
0.05594325810670853,
-0.24527396261692047,
0.32904234528541565,
0.26474523544311523,
-0.06708553433418274,
0.011872611939907074,
-0.02300843596458435,
-0.12329530715942383,
0.05257964879274368,
0.09177322685718536,
-0.16532929241657257,
0.09191176295280457,
-0.12054271996021271,
-0.26543736457824707,
-0.16606587171554565,
-0.21896661818027496,
0.09609609842300415,
-0.3439054787158966,
-0.4318135678768158,
-0.1703833043575287,
0.2185882180929184,
0.3581569492816925,
0.6168693900108337,
-0.0001192067502415739,
-0.2639675736427307,
-0.10698235034942627,
-0.3270840644836426,
-0.36457666754722595,
0.04064883291721344,
-0.009129609912633896,
-0.32537153363227844,
-0.11891333758831024,
-0.11301219463348389,
-0.18681031465530396,
-0.23913055658340454,
0.12401336431503296,
-0.28798291087150574,
0.8988133668899536,
-0.22570370137691498,
0.05682512745261192,
-0.09951892495155334,
-0.14257510006427765,
0.02003495953977108,
0.19497622549533844,
0.2649683952331543,
-0.09983295947313309,
0.027566349133849144,
0.7631837129592896,
0.27293825149536133,
-0.1379777193069458,
0.11585654318332672,
0.1028812825679779,
-0.22398801147937775,
0.0953686460852623,
-0.20593729615211487,
-0.01600150763988495,
-0.31116947531700134,
-0.09926348179578781,
0.2254624366760254,
0.49712568521499634,
-0.231215238571167,
-0.29899394512176514,
-0.34942731261253357,
0.08489951491355896,
0.08836367726325989,
-0.09537213295698166,
0.3142329454421997,
-0.006444280035793781,
0.3016774356365204,
-0.3258001506328583,
-0.4009295403957367,
-0.40198421478271484,
-0.07207806408405304,
0.2573398947715759,
-0.11619733273983002,
-0.08087731897830963,
0.02449607104063034,
-0.14715714752674103,
-0.21981172263622284,
-0.058472100645303726,
-0.15253819525241852,
0.07155296951532364,
0.23455810546875,
-0.06751522421836853,
-0.37327757477760315,
-0.13379570841789246,
-0.18242153525352478,
0.6460014581680298,
0.19899292290210724,
0.19533854722976685,
-0.09297029674053192,
0.1765878051519394,
-0.08645574003458023,
0.38820675015449524,
-0.01327697467058897,
0.006935343146324158,
-0.3535681962966919,
0.16025382280349731,
0.05664587393403053,
0.015451382845640182,
-0.016638997942209244,
-0.34821993112564087,
0.11945072561502457,
-0.07809430360794067,
-0.11981647461652756,
0.20129981637001038,
0.12794247269630432,
0.13232555985450745,
0.14889197051525116,
-0.12242286652326584,
0.033517032861709595,
0.14454586803913116,
0.2388262152671814,
-0.12815862894058228,
0.15342211723327637,
-0.08634550124406815,
0.08346801996231079,
0.16095101833343506,
-0.2093753069639206,
0.029915764927864075,
-0.030884377658367157,
-0.10510501265525818,
0.33035603165626526,
0.2067340612411499,
-0.07105852663516998,
0.06535881012678146,
0.02478184923529625,
0.3602224588394165,
-0.4267216622829437,
0.17483305931091309,
0.10028137266635895,
0.017521843314170837,
-0.11477003991603851,
0.16474835574626923,
0.0815892368555069,
-0.2149352878332138,
-0.17124336957931519,
-0.20713670551776886,
0.12943565845489502,
-0.19648069143295288,
-0.24238243699073792,
-0.054486677050590515,
0.010297142900526524,
-0.31628912687301636,
0.21428699791431427,
0.004326097667217255,
0.30834898352622986,
0.02866055816411972,
-0.0267755389213562,
-0.09055160731077194,
0.28090324997901917,
-0.24747465550899506,
-0.24104084074497223,
0.10920990258455276,
0.6122673749923706,
-0.28520774841308594,
-0.08075979351997375,
0.6636145710945129,
0.08361069858074188,
-0.534896194934845,
0.33746179938316345,
-0.0009946075733751059,
0.10332263261079788,
0.10663360357284546,
-0.22279836237430573,
0.3268631100654602,
-0.42400994896888733,
-0.3810766637325287,
0.4306109547615051,
-0.24528555572032928,
-0.18938429653644562,
0.36366021633148193,
-0.015508622862398624,
0.7288669347763062,
-0.2947199046611786,
-0.022739052772521973,
0.3314576745033264,
-0.07712573558092117,
0.2354428768157959,
-0.3025575280189514,
-0.39826974272727966,
-0.2546396255493164,
0.2839324176311493,
-0.2140708714723587,
-0.11608319729566574,
-0.1799299418926239,
0.25024861097335815,
0.2469005584716797,
-0.10993009805679321,
0.31650596857070923,
-0.10181641578674316,
0.3639552593231201,
0.08395832031965256,
-0.07959956675767899,
-0.0867861956357956,
-0.7564765214920044,
-0.14311383664608002,
-0.08402734994888306,
-0.3280593454837799,
0.18602925539016724,
-0.46969276666641235,
-0.32122543454170227,
-0.09506199508905411,
-0.0712464451789856,
-0.09543099999427795,
-0.03862472623586655,
-0.1620658040046692,
0.253970205783844,
-0.07968360185623169,
-0.36523714661598206,
0.18966339528560638,
-0.039011768996715546,
0.1111781895160675,
-0.1951998472213745,
0.10738086700439453,
0.11377621442079544,
-0.014934022910892963,
0.20773307979106903,
0.25788363814353943,
0.008384544402360916,
-0.33176344633102417,
0.35455891489982605,
0.1319761574268341,
-0.13364437222480774,
0.08126692473888397,
0.12269886583089828,
0.13172577321529388,
0.34089481830596924,
0.2437697947025299,
0.3483709990978241,
-0.04396144673228264,
-0.09898073971271515,
-0.14423084259033203,
-0.5008667707443237,
0.3706687092781067,
-0.2921045124530792,
0.11036158353090286,
-0.15323826670646667,
-0.1345483362674713,
0.17231132090091705,
0.06911155581474304,
-0.26130610704421997,
0.06810759007930756,
-0.16468177735805511,
0.11014467477798462,
0.34428614377975464,
0.0879935547709465,
-0.08710888773202896,
0.13336266577243805,
0.3919234573841095,
-0.21698647737503052,
0.01797078549861908,
0.05168890580534935,
0.12550565600395203,
-0.03124699369072914,
-0.05649665743112564,
-0.2630300521850586,
0.13826623558998108,
0.17467771470546722,
-0.12837228178977966,
0.0647285059094429,
0.42444485425949097,
-0.06717808544635773,
-0.04623580724000931,
0.054314024746418,
0.2298891544342041,
0.20286059379577637,
0.3700597882270813,
-0.11260240525007248,
0.11165592819452286,
0.04177546128630638,
0.12057981640100479,
-0.05689588934183121,
-0.18172936141490936,
0.0054915063083171844,
0.1262892782688141,
0.2495286762714386,
-0.21989011764526367,
0.2356099784374237,
-0.21143408119678497,
0.2134438455104828,
0.29094260931015015,
0.17719534039497375,
0.10425660014152527,
0.08397296071052551,
0.2970300614833832,
0.8125557899475098,
0.07105422019958496,
-0.2512112557888031,
0.15298648178577423,
-0.20072557032108307,
0.3018530309200287,
-0.037144601345062256,
0.35496535897254944,
-0.47940582036972046,
0.21003028750419617,
-0.10897977650165558,
0.03522412106394768,
-0.24281549453735352,
-0.19940313696861267,
0.1299561858177185,
-0.024469919502735138,
0.1560821384191513,
-0.13501206040382385,
0.2721756100654602,
-0.2808153033256531,
-0.03070932999253273,
0.11754841357469559,
-0.04795713722705841,
-0.19015727937221527,
-0.26506513357162476,
0.01972814090549946,
-0.06589061766862869,
0.08300746977329254,
-0.32709768414497375,
-0.27981528639793396,
-0.27916985750198364,
0.5616506338119507,
0.13984544575214386,
0.08514958620071411,
-0.3313453495502472,
0.1775341033935547,
-0.15281598269939423,
-0.46991804242134094,
-0.03732942044734955,
-0.13944993913173676,
-0.6506550908088684,
0.1868303269147873,
-0.26669973134994507,
-0.2523922920227051,
-0.1978534460067749,
0.09469135850667953,
-0.10847437381744385,
-0.01407422125339508,
-0.28551575541496277,
-0.35820215940475464,
0.18912068009376526,
0.0941208004951477,
-0.10961781442165375,
0.2015242874622345,
0.32421356439590454,
-0.2208331674337387,
0.14134250581264496,
0.0029687024652957916,
-0.10061399638652802,
0.20275436341762543,
0.23747992515563965,
0.3559158146381378,
-0.14888185262680054,
0.39599940180778503,
0.19159755110740662,
0.829472005367279,
0.6231411099433899,
0.12266509234905243,
-0.19246533513069153,
0.1587832272052765,
0.27364444732666016,
0.02769366279244423,
0.005397869274020195,
0.47140631079673767,
0.03249555826187134,
-0.03211630508303642,
0.24363496899604797,
0.4521150290966034,
0.19452634453773499,
-0.0915704220533371,
-0.198002889752388,
-0.1404843032360077,
-0.26520076394081116,
0.3011278212070465,
0.36070093512535095,
0.10966312885284424,
-0.09309116005897522,
-0.1706579327583313,
-0.16213756799697876,
-0.26973024010658264,
-0.11596722900867462,
0.18599697947502136,
0.3794795572757721,
0.20988523960113525,
-0.5740678310394287,
0.3515954911708832,
-0.24952295422554016,
0.1586684286594391,
0.1407621204853058,
-0.18989647924900055,
0.10423868894577026,
-0.08069232106208801,
0.14552904665470123,
-0.05039404332637787,
0.6973090767860413,
0.21466746926307678,
-0.1506146788597107,
-0.2447742521762848,
-0.04170273616909981,
-0.3592647314071655,
0.12693245708942413,
-0.10861673951148987,
0.4451131522655487,
0.4036073386669159,
0.3771097660064697,
-0.4491517245769501,
-0.21187655627727509,
0.12485358119010925,
0.1288118213415146,
-0.20499439537525177,
-0.17305918037891388,
-0.18767352402210236,
-0.164235919713974,
-0.3772878646850586,
0.2050735056400299,
0.13521160185337067,
-0.08989104628562927,
0.16818755865097046,
-0.017659666016697884,
0.07160308957099915,
0.09047158807516098,
0.07400771975517273,
0.2989821434020996,
0.028930146247148514,
0.29483553767204285,
0.1590929627418518,
0.25293320417404175,
0.15722283720970154,
0.050047069787979126,
0.23935844004154205,
-0.010167472064495087,
0.008041881024837494,
0.22921273112297058,
-0.11903297901153564,
0.5664659142494202,
0.5696604251861572,
0.123899444937706,
-0.1912182867527008,
-0.48439016938209534,
0.29457777738571167,
-0.3479842245578766,
-0.18471942842006683,
0.1818924993276596,
-0.14158202707767487,
-0.2552076280117035,
-0.28718501329421997,
0.4790971577167511,
-0.04090472310781479,
-0.08475515991449356,
-0.0073114074766635895,
0.21401219069957733,
0.047784775495529175,
0.304032564163208,
0.07541894167661667,
1.2021843194961548,
-0.37424033880233765,
0.41246190667152405,
0.02961757220327854,
0.023071929812431335,
0.5967468023300171,
-0.6018071174621582,
0.05795466527342796,
-0.467483252286911,
0.3419056534767151,
0.009959133341908455,
-0.1942116916179657,
0.00036703795194625854,
0.42582958936691284,
-0.36908817291259766,
0.18524184823036194,
-0.09927016496658325,
0.4017494320869446,
-0.26062941551208496,
0.6654494404792786,
-0.16513612866401672,
-0.27086469531059265,
-0.5053530931472778,
0.026853587478399277,
-0.18650709092617035,
-0.15747317671775818,
-0.12439171224832535,
-0.13191518187522888,
-0.11642485111951828,
0.09827879071235657,
0.009054392576217651,
-0.2376282513141632,
-0.18585175275802612,
0.05196037515997887,
0.2512974441051483,
-0.41565102338790894,
0.3881487250328064,
0.25411999225616455,
0.03877861425280571,
0.2174844741821289,
-0.0712946355342865,
0.1556490659713745,
-0.28332701325416565,
-0.10559865087270737,
0.07342761009931564,
0.05795389413833618,
0.19317926466464996,
-0.04728730022907257,
-0.2664136290550232,
0.14902639389038086,
0.27913808822631836,
0.02641267329454422,
-0.5276988744735718,
0.12138872593641281,
0.3254844546318054,
-0.6069244742393494,
-0.17466101050376892,
0.0657307505607605,
-0.19840165972709656,
0.08470417559146881,
-0.01152736134827137,
0.11294257640838623,
-0.07268812507390976,
0.30605825781822205,
0.5014001727104187,
-0.13982194662094116,
0.06871519982814789,
0.1370411217212677,
-0.15410566329956055,
-0.2838388681411743,
0.19023138284683228,
0.08290083706378937,
-0.04599697142839432,
-0.18142953515052795,
0.7017867565155029,
-0.05226464197039604,
-0.1654687523841858,
0.002363617066293955,
-0.04720734432339668,
-0.21978884935379028,
-0.23922383785247803,
-0.1758703738451004,
0.34455448389053345,
-0.004607878625392914,
0.31154853105545044,
-0.13231682777404785,
-0.3046635091304779,
0.24307973682880402,
0.19180992245674133,
-0.08928360044956207,
0.13250964879989624,
0.054131727665662766,
-0.04269156605005264,
0.3417150378227234,
-0.2071313112974167,
0.19754453003406525,
0.08371743559837341,
0.0973503366112709,
-0.02910412847995758,
-0.22289520502090454,
0.04078201949596405,
-0.14901724457740784,
-0.1275976449251175,
0.00009356066584587097,
-0.4162391424179077,
-0.10890067368745804,
-0.18524999916553497,
0.21295803785324097,
-0.004815582185983658,
0.050031810998916626,
-0.1606013923883438,
-0.2276470959186554,
-0.0708596408367157,
-0.07047852128744125,
0.291027307510376,
0.11542940884828568,
0.3595729470252991,
-0.2725121080875397,
-0.10874713957309723,
-0.22526401281356812,
-0.027842003852128983,
0.1439146250486374,
0.22324852645397186,
0.31917253136634827,
0.17739474773406982,
0.17019902169704437,
-0.03068423643708229,
-0.1751803755760193,
-0.06396888196468353,
0.4981123208999634,
0.5956969261169434,
0.14282473921775818,
0.2591730058193207,
-0.09163966774940491,
0.06544330716133118,
0.14377839863300323,
0.17296013236045837,
0.43798649311065674,
-0.2449672371149063,
0.1943521350622177,
0.046315997838974,
0.0678834617137909,
0.06622272729873657,
0.1516546607017517,
0.41334301233291626,
0.055578820407390594,
-0.046508342027664185,
0.44290801882743835,
-0.043163396418094635,
-0.047689665108919144,
-0.11486740410327911,
0.14154744148254395,
0.5450333952903748,
0.11702090501785278,
-0.12328028678894043,
-0.062060218304395676,
-0.043741121888160706,
-0.2136625498533249,
0.41760650277137756,
0.28188982605934143,
0.1486138105392456,
-0.07480788230895996,
-0.12184347957372665,
0.16680794954299927,
-0.09114719182252884,
-0.0005370825529098511,
0.28618672490119934,
0.057084593921899796,
-0.22131885588169098,
0.34720930457115173,
0.3019319772720337,
-0.07263841480016708,
-0.07947540283203125,
0.7899207472801208,
0.24863901734352112,
-0.3020102083683014,
-0.13702988624572754,
0.16815567016601562,
0.08442864567041397,
-0.16396771371364594,
-0.16757416725158691,
-0.18630895018577576,
-0.2095087468624115,
0.0558711476624012,
-0.2976069748401642,
-0.519130289554596,
0.21204817295074463,
0.29145145416259766,
0.34098467230796814,
-0.10824639350175858,
0.13940733671188354,
0.10572265088558197,
0.3179256021976471,
-0.2273091822862625,
0.28718411922454834,
0.1986718773841858,
0.20359964668750763,
0.177315816283226,
0.19626080989837646,
0.10648146271705627,
-0.11563524603843689,
-0.2542616128921509,
0.38334497809410095,
-0.3681042492389679,
0.06945507228374481,
0.10002679377794266,
0.0070868562906980515,
0.1284894049167633,
-0.3347007632255554,
0.25030192732810974,
-0.014242907986044884,
-0.006766770500689745,
-0.1343008130788803,
0.18665818870067596,
-0.4374959468841553,
-0.25814637541770935,
-0.2774604558944702,
-0.16093051433563232,
-0.2395215928554535,
-0.13305620849132538,
-0.07232736796140671,
-0.4454120993614197,
0.013043036684393883,
0.16215969622135162,
-0.14189618825912476,
0.24494999647140503,
-0.07299347966909409,
0.030272118747234344,
-0.09480167925357819,
0.2382570207118988,
0.031187579035758972,
-0.1155206635594368,
0.009239774197340012,
-0.11754798889160156,
-0.23220676183700562,
0.056254398077726364,
-0.1899392306804657,
0.1283700317144394,
-0.18626318871974945,
0.5108600854873657,
0.11447609215974808,
0.5743865966796875,
-0.15255339443683624,
-0.0378379188477993,
-0.4141383767127991,
-0.10092703998088837,
-0.4872942566871643,
0.06793481111526489,
0.06299498677253723,
0.5794435739517212,
0.23892679810523987,
-0.09676862508058548,
0.22779300808906555,
0.035645924508571625,
-0.1824696660041809,
-0.04558161646127701,
0.13633792102336884,
-0.34478384256362915,
-0.5008982419967651,
0.0660577118396759,
-0.0611400231719017,
0.038965463638305664,
0.08712293952703476,
-0.20235897600650787,
-0.27047812938690186,
-0.04514548182487488,
-0.10556571185588837,
0.2444244921207428,
0.27041545510292053,
0.11729077994823456,
-0.3241795599460602,
-0.37257570028305054,
0.023450389504432678,
0.0022237820085138083,
-0.16811275482177734,
-0.18665331602096558,
-0.18404319882392883,
-0.29779645800590515,
-0.04677564278244972,
0.24620571732521057,
-0.051610950380563736,
0.5003594756126404,
-0.4273850619792938,
0.12114796042442322,
-0.17876675724983215,
-0.02571643702685833,
0.6111908555030823,
-0.15608851611614227,
-0.22556248307228088,
0.06758786737918854,
0.3299679160118103,
0.21881917119026184,
-0.15824152529239655,
-0.29397881031036377,
0.3241058886051178,
0.11963474005460739,
-0.012814298272132874,
-0.17341046035289764,
0.14782221615314484,
-0.3205628991127014,
-0.28970465064048767,
-0.1444610059261322,
0.2264081984758377,
-0.007054951041936874,
-0.07193160057067871,
-0.144468754529953,
-0.266291081905365
] |
https://github.com/huggingface/datasets/issues/326 | Large dataset in Squad2-format | It would also be good if there is any possibility for versioning, I think this way is much better than the dynamic way.
If you mean that part to put the tiles into one is the generation it would take up to 15-20 minutes on home computer hardware.
Are there any compression or optimization algorithms while generating the dataset ?
Otherwise the hardware limit is around 32 GB ram at the moment.
If everything works well we will add some more gigabytes of data in future what would make it pretty memory costly. | At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ? | 93 | Large dataset in Squad2-format
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ?
It would also be good if there is any possibility for versioning, I think this way is much better than the dynamic way.
If you mean that part to put the tiles into one is the generation it would take up to 15-20 minutes on home computer hardware.
Are there any compression or optimization algorithms while generating the dataset ?
Otherwise the hardware limit is around 32 GB ram at the moment.
If everything works well we will add some more gigabytes of data in future what would make it pretty memory costly. | [
-0.07837717235088348,
-0.33690303564071655,
-0.10210354626178741,
0.37943214178085327,
0.291385293006897,
-0.09671362489461899,
-0.1217118352651596,
0.5122984647750854,
-0.027224864810705185,
0.19465261697769165,
-0.2856164574623108,
0.0614137277007103,
-0.2502669394016266,
0.2593444585800171,
0.3205592930316925,
-0.08860887587070465,
0.154979407787323,
0.08237774670124054,
-0.2040610909461975,
0.05691093951463699,
0.06371401250362396,
-0.10328537225723267,
0.06122554838657379,
-0.16533200442790985,
-0.3009233772754669,
-0.14129817485809326,
-0.288173645734787,
0.11389116942882538,
-0.39349687099456787,
-0.33755606412887573,
-0.24486690759658813,
0.21716628968715668,
0.16116966307163239,
0.6473466753959656,
-0.00012278370559215546,
-0.1961066573858261,
-0.1437789350748062,
-0.34958118200302124,
-0.28948062658309937,
0.13307355344295502,
-0.09903442859649658,
-0.3333495557308197,
-0.16142624616622925,
-0.1127137765288353,
-0.14049163460731506,
-0.2584020793437958,
0.10623463988304138,
-0.3380102217197418,
0.7726529836654663,
-0.18526148796081543,
0.006899956613779068,
-0.13939857482910156,
-0.04832189530134201,
0.00745687959715724,
0.2478712499141693,
0.25301679968833923,
-0.1029365062713623,
0.03505900502204895,
0.6240140199661255,
0.3569612205028534,
-0.01758868247270584,
0.07923047244548798,
0.038750164210796356,
-0.18034860491752625,
0.08349099010229111,
-0.13057632744312286,
-0.09050486236810684,
-0.3459358811378479,
-0.0884469524025917,
0.256732702255249,
0.46483391523361206,
-0.21463364362716675,
-0.22269383072853088,
-0.170294389128685,
-0.02509182319045067,
0.12211571633815765,
0.06248961389064789,
0.4120587706565857,
-0.16028012335300446,
0.3520802855491638,
-0.34356680512428284,
-0.44138991832733154,
-0.39954617619514465,
-0.0935540646314621,
0.2771216034889221,
-0.03226613253355026,
-0.11755453795194626,
-0.008474253118038177,
-0.12657339870929718,
-0.13739809393882751,
-0.10240425169467926,
-0.13972434401512146,
0.018365146592259407,
0.1883072406053543,
-0.0581442229449749,
-0.3634133040904999,
-0.30487415194511414,
-0.22182658314704895,
0.725141704082489,
0.21973568201065063,
0.3265005350112915,
-0.045712679624557495,
0.32062673568725586,
-0.0938943400979042,
0.26842620968818665,
-0.0021527698263525963,
-0.21918272972106934,
-0.41724199056625366,
0.15189039707183838,
-0.04206584393978119,
0.005759146064519882,
-0.0518733486533165,
-0.29565489292144775,
0.1691855788230896,
-0.16349411010742188,
-0.23312458395957947,
0.2861672639846802,
0.13934235274791718,
0.08928199112415314,
-0.021498296409845352,
-0.23188555240631104,
0.008595418184995651,
0.09882216155529022,
0.22124984860420227,
-0.13914494216442108,
0.12232816219329834,
-0.12433456629514694,
-0.03462688624858856,
0.21658098697662354,
-0.2578241229057312,
0.05293142795562744,
0.011232676915824413,
-0.07143917679786682,
0.3470557928085327,
0.2074621468782425,
-0.01217346265912056,
0.01280757412314415,
0.0960279181599617,
0.3481048345565796,
-0.36395424604415894,
0.13848689198493958,
-0.03334330394864082,
0.10407131910324097,
0.03202346712350845,
0.14440034329891205,
0.0015520118176937103,
-0.26448798179626465,
-0.014526866376399994,
-0.29768550395965576,
0.054018378257751465,
-0.20355314016342163,
-0.3303641080856323,
-0.08826912194490433,
-0.025027945637702942,
-0.1353701949119568,
0.311615526676178,
-0.16190961003303528,
0.3599740266799927,
0.08743132650852203,
0.04907415434718132,
-0.11378604918718338,
0.4489854574203491,
-0.2182924747467041,
-0.29309892654418945,
0.1602419912815094,
0.5045281052589417,
-0.2007535994052887,
0.02295951545238495,
0.6979807615280151,
0.05601753294467926,
-0.24640724062919617,
0.44815224409103394,
-0.004396858159452677,
0.1359660029411316,
0.06608543545007706,
-0.14632301032543182,
0.2523406744003296,
-0.4034131169319153,
-0.3938644826412201,
0.5243748426437378,
-0.12374630570411682,
-0.26510992646217346,
0.5103118419647217,
0.030841054394841194,
0.7380936145782471,
-0.20417970418930054,
0.006786905229091644,
0.4657245874404907,
-0.07565958052873611,
0.2678148150444031,
-0.29252585768699646,
-0.3666593134403229,
-0.1064663827419281,
0.19767850637435913,
-0.34105202555656433,
-0.1301361322402954,
-0.17429855465888977,
0.2694668173789978,
0.08517803996801376,
-0.10518404841423035,
0.36707058548927307,
-0.10381843149662018,
0.3626273572444916,
0.036810748279094696,
-0.03510788083076477,
-0.07982127368450165,
-0.7069560885429382,
-0.17546072602272034,
-0.14751189947128296,
-0.18153344094753265,
0.17563976347446442,
-0.4423540234565735,
-0.21275198459625244,
-0.08712372928857803,
-0.0436069555580616,
-0.011122316122055054,
-0.034913066774606705,
-0.11969809234142303,
0.2897203862667084,
-0.20639313757419586,
-0.4174746870994568,
0.3462843894958496,
-0.004427323117852211,
0.09422432631254196,
-0.040161438286304474,
0.11767792701721191,
0.08206202834844589,
-0.03807247430086136,
0.22083374857902527,
0.12450448423624039,
-0.022784270346164703,
-0.32211607694625854,
0.28229984641075134,
0.16251248121261597,
-0.12423132359981537,
0.05151166021823883,
0.16984812915325165,
0.06494578719139099,
0.35281985998153687,
0.18469031155109406,
0.45367172360420227,
0.0004368070513010025,
-0.06613312661647797,
-0.17426839470863342,
-0.5200103521347046,
0.24815194308757782,
-0.3177940249443054,
0.15370777249336243,
-0.07397125661373138,
-0.14963573217391968,
0.28339046239852905,
0.023892391473054886,
-0.1768890917301178,
0.01296236366033554,
-0.08360689878463745,
0.14725151658058167,
0.33291682600975037,
0.2726941704750061,
-0.14757540822029114,
0.14368045330047607,
0.38398921489715576,
-0.17511656880378723,
0.08545662462711334,
0.1256883293390274,
0.1638941913843155,
-0.28808385133743286,
-0.054732322692871094,
-0.2870217263698578,
0.0964188277721405,
0.21320116519927979,
-0.16039566695690155,
0.02192128449678421,
0.38330867886543274,
-0.07231839001178741,
-0.016221322119235992,
0.03592574596405029,
0.2771431505680084,
0.23817577958106995,
0.31605029106140137,
-0.060421328991651535,
0.00920184701681137,
-0.011045966297388077,
0.20791389048099518,
-0.058552905917167664,
-0.0915650799870491,
-0.032216668128967285,
0.07018356025218964,
0.2753458023071289,
-0.07654517143964767,
0.2308812290430069,
-0.20971831679344177,
0.25612136721611023,
0.29563385248184204,
0.05286645144224167,
0.1372469663619995,
0.0791647806763649,
0.4016404151916504,
0.7862676978111267,
0.049003951251506805,
-0.17591169476509094,
0.03916209936141968,
-0.16004709899425507,
0.3815574645996094,
-0.0766046792268753,
0.36487752199172974,
-0.23405349254608154,
0.28529593348503113,
-0.06138642877340317,
-0.018729060888290405,
-0.20803475379943848,
-0.07534245401620865,
0.20119421184062958,
0.014134354889392853,
0.16619639098644257,
-0.16075339913368225,
0.2517767548561096,
-0.21429897844791412,
-0.003630172461271286,
0.1522034853696823,
0.10009174793958664,
-0.3120241165161133,
-0.19166801869869232,
-0.11763711273670197,
-0.1503312587738037,
0.08871348202228546,
-0.22381585836410522,
-0.2860089838504791,
-0.3231348693370819,
0.5092945098876953,
0.06811118125915527,
0.1934671849012375,
-0.46241524815559387,
0.18380606174468994,
-0.08212877064943314,
-0.4521046280860901,
0.032299332320690155,
-0.1644720733165741,
-0.6774644255638123,
0.22627580165863037,
-0.2423991709947586,
-0.2435353547334671,
-0.3196677267551422,
0.14362406730651855,
-0.06447938084602356,
0.14056645333766937,
-0.18240505456924438,
-0.1861150562763214,
0.06179115176200867,
0.0786861777305603,
-0.043822020292282104,
0.11984126269817352,
0.4211665689945221,
-0.14562581479549408,
0.09895996749401093,
-0.0075251758098602295,
-0.01181451603770256,
0.1747240424156189,
0.2913620173931122,
0.2135714888572693,
0.08529841899871826,
0.4512496888637543,
0.13851571083068848,
0.755805492401123,
0.6317532658576965,
0.22001080214977264,
0.018360815942287445,
0.10048814862966537,
0.23323768377304077,
-0.06999223679304123,
0.02990245632827282,
0.4696425199508667,
0.0082806795835495,
0.016515783965587616,
0.21207216382026672,
0.39988642930984497,
0.16866947710514069,
-0.19370491802692413,
-0.23700228333473206,
-0.186497300863266,
-0.14316339790821075,
0.3246113061904907,
0.3430023193359375,
0.14650817215442657,
-0.13562406599521637,
-0.3484307825565338,
-0.174505814909935,
-0.2955264747142792,
-0.11503632366657257,
0.10360457748174667,
0.3208516836166382,
0.1508605033159256,
-0.5605382323265076,
0.2728158235549927,
-0.38790032267570496,
0.07268846035003662,
0.1514028012752533,
-0.22916361689567566,
0.029445242136716843,
0.033001817762851715,
0.20582327246665955,
-0.13138362765312195,
0.6935654282569885,
0.23628953099250793,
-0.20522840321063995,
-0.2848113179206848,
-0.0359155610203743,
-0.2962574064731598,
0.20416341722011566,
-0.16182082891464233,
0.5082671642303467,
0.4002036452293396,
0.4520649313926697,
-0.5513502955436707,
-0.29691600799560547,
0.07192061841487885,
0.16760553419589996,
-0.17222240567207336,
-0.1284501701593399,
-0.16602778434753418,
-0.20565065741539001,
-0.43765297532081604,
0.047220878303050995,
0.2290111631155014,
-0.03352977707982063,
0.32725682854652405,
-0.23755724728107452,
0.006553599610924721,
0.1567457914352417,
0.10718313604593277,
0.20760387182235718,
0.010835948400199413,
0.08879013359546661,
0.17096476256847382,
0.1252216100692749,
0.18003952503204346,
0.07618606090545654,
0.23605982959270477,
-0.008258402347564697,
0.1217346116900444,
0.1745816171169281,
-0.07396899908781052,
0.5832380056381226,
0.5046691298484802,
0.10777533054351807,
-0.2305297553539276,
-0.4071763753890991,
0.3388235569000244,
-0.42524003982543945,
-0.20508256554603577,
0.18551680445671082,
-0.14533516764640808,
-0.3102443516254425,
-0.1364733725786209,
0.5063799619674683,
0.025523677468299866,
-0.09997641295194626,
0.07016019523143768,
0.3052079379558563,
-0.055293865501880646,
0.33342862129211426,
0.21196235716342926,
1.3463046550750732,
-0.49435144662857056,
0.33900341391563416,
0.0765276849269867,
0.04727036505937576,
0.5080589056015015,
-0.6566588878631592,
0.10132064670324326,
-0.30289703607559204,
0.40368542075157166,
-0.05217297002673149,
-0.15146400034427643,
0.00935778021812439,
0.42828643321990967,
-0.451657772064209,
0.08995196968317032,
-0.09646711498498917,
0.5072111487388611,
-0.23894737660884857,
0.6394400596618652,
-0.1891428828239441,
-0.43517252802848816,
-0.5924041867256165,
-0.012185048311948776,
-0.2395354062318802,
-0.27942097187042236,
-0.02709835395216942,
-0.11961039900779724,
-0.14362819492816925,
0.12179708480834961,
-0.02021767944097519,
-0.17965421080589294,
-0.18069933354854584,
0.156683087348938,
0.20392143726348877,
-0.3671698570251465,
0.21743766963481903,
0.19027748703956604,
0.009396322071552277,
0.136794313788414,
-0.03196585923433304,
0.0622280091047287,
-0.23952996730804443,
-0.27822956442832947,
-0.0029734924901276827,
0.03762548044323921,
0.09891130030155182,
-0.11772987246513367,
-0.22270473837852478,
0.02416769042611122,
0.2037924975156784,
-0.06846446543931961,
-0.3939569592475891,
0.06211131438612938,
0.22432269155979156,
-0.561993420124054,
-0.1515212506055832,
0.059846147894859314,
-0.21309028565883636,
0.03522465005517006,
-0.046319764107465744,
0.12750712037086487,
-0.11431721597909927,
0.34703966975212097,
0.49723923206329346,
-0.08260119706392288,
0.03940359503030777,
0.12344010174274445,
0.0842728465795517,
-0.2444629967212677,
0.09041595458984375,
0.017551761120557785,
-0.14706364274024963,
-0.18316030502319336,
0.6808388829231262,
-0.12805193662643433,
-0.18437501788139343,
0.18176645040512085,
-0.10975436866283417,
-0.26292434334754944,
-0.293628066778183,
-0.10620437562465668,
0.3944660425186157,
0.03466379642486572,
0.24100907146930695,
-0.15283876657485962,
-0.3036341071128845,
0.35290127992630005,
0.16582894325256348,
-0.06421467661857605,
0.01996966078877449,
-0.03226365149021149,
-0.05367639660835266,
0.41117605566978455,
-0.18235495686531067,
0.18703189492225647,
-0.02850041165947914,
0.10009758174419403,
0.007019566372036934,
-0.24585211277008057,
0.034952741116285324,
-0.05414195731282234,
-0.1004570722579956,
-0.05872057378292084,
-0.34166380763053894,
-0.06496231257915497,
-0.11265233159065247,
0.2282746136188507,
0.035027503967285156,
-0.005163634195923805,
-0.1717703491449356,
-0.28536397218704224,
-0.21569201350212097,
-0.12016752362251282,
0.2445324957370758,
0.13766014575958252,
0.2847687005996704,
-0.4812834560871124,
-0.0700332522392273,
-0.27332091331481934,
-0.0208825021982193,
0.1764966994524002,
0.24036341905593872,
0.40699541568756104,
0.06574521958827972,
0.11642275750637054,
0.025741247460246086,
-0.258355975151062,
-0.12900790572166443,
0.5130085349082947,
0.6452721953392029,
-0.049984753131866455,
0.2964615821838379,
-0.120554119348526,
-0.04497069492936134,
0.1943705976009369,
0.08874217420816422,
0.3183446228504181,
-0.2586113214492798,
0.20769403874874115,
-0.08241567760705948,
0.0033086389303207397,
-0.004590451717376709,
0.07798490673303604,
0.4187317490577698,
-0.061209239065647125,
-0.08620505034923553,
0.36840468645095825,
0.05098271742463112,
-0.13090616464614868,
-0.19613014161586761,
0.09886398166418076,
0.5369048714637756,
0.11393895000219345,
-0.2775097191333771,
-0.13872134685516357,
0.044437456876039505,
-0.14001843333244324,
0.37371826171875,
0.34073397517204285,
0.2538025677204132,
0.12150571495294571,
-0.05029866844415665,
0.20657750964164734,
-0.03348923474550247,
0.12977184355258942,
0.33835679292678833,
0.14599062502384186,
-0.1616285890340805,
0.5025844573974609,
0.189734548330307,
-0.07945045083761215,
-0.10839039087295532,
0.7325356602668762,
0.20572888851165771,
-0.22392119467258453,
-0.19514571130275726,
0.21718280017375946,
0.07513852417469025,
-0.08240872621536255,
-0.16669270396232605,
-0.26548150181770325,
-0.14954113960266113,
0.1284288913011551,
-0.1550433188676834,
-0.4121452569961548,
0.3357381820678711,
0.3109166622161865,
0.3543126583099365,
-0.0016934443265199661,
0.3048437535762787,
0.18832102417945862,
0.2788810729980469,
-0.24873028695583344,
0.31723538041114807,
0.24474211037158966,
0.06052818149328232,
0.011371847242116928,
0.2793509364128113,
0.18607847392559052,
0.029033418744802475,
-0.3341403901576996,
0.46615758538246155,
-0.29914727807044983,
-0.05935244262218475,
0.08847575634717941,
0.07563216239213943,
0.1885119080543518,
-0.2831539809703827,
0.09319980442523956,
-0.06241409480571747,
0.015281314961612225,
-0.2855527698993683,
0.22237645089626312,
-0.2917845547199249,
0.005701582878828049,
-0.3255157470703125,
-0.21088172495365143,
-0.21243831515312195,
-0.03553875535726547,
-0.033516280353069305,
-0.49375879764556885,
-0.1424129754304886,
0.05353306233882904,
-0.22262270748615265,
0.15217161178588867,
-0.002152810338884592,
0.0078373271971941,
-0.12114369869232178,
0.3348330557346344,
-0.08537730574607849,
-0.012272045016288757,
0.015988659113645554,
-0.2567746639251709,
-0.11912058293819427,
0.02582191675901413,
-0.22189661860466003,
0.09559646248817444,
-0.1849515289068222,
0.6031036376953125,
0.0857091173529625,
0.6102773547172546,
-0.22746311128139496,
0.0018814122304320335,
-0.3210490643978119,
-0.08156949281692505,
-0.41221877932548523,
0.15382544696331024,
0.1515180915594101,
0.5324701070785522,
0.2032710462808609,
-0.25921502709388733,
0.4004773795604706,
-0.010304377414286137,
-0.19343513250350952,
-0.1263662427663803,
0.25416406989097595,
-0.2773370146751404,
-0.41436001658439636,
0.02319403737783432,
0.06628339737653732,
0.08577775955200195,
0.03132867068052292,
-0.23792974650859833,
-0.05082065239548683,
-0.002078420016914606,
-0.026558030396699905,
0.14450038969516754,
0.45349550247192383,
-0.005960460752248764,
-0.3527194559574127,
-0.2872932553291321,
0.1072692945599556,
0.20539654791355133,
-0.20665155351161957,
-0.12180161476135254,
-0.035655900835990906,
-0.33026203513145447,
-0.09697595983743668,
0.1723269522190094,
0.01882101595401764,
0.3120369017124176,
-0.3507351875305176,
-0.04947495087981224,
-0.22209011018276215,
-0.04894399642944336,
0.44508546590805054,
-0.0950227901339531,
-0.2620287537574768,
-0.013449742458760738,
0.26868927478790283,
0.1577760875225067,
-0.0673217624425888,
-0.30391353368759155,
0.21496319770812988,
0.077524833381176,
-0.04270872473716736,
-0.20251213014125824,
0.26267024874687195,
-0.17575617134571075,
-0.2539319396018982,
-0.12844599783420563,
0.12564435601234436,
-0.08310061693191528,
-0.13764289021492004,
-0.2562367618083954,
-0.19878846406936646
] |
https://github.com/huggingface/datasets/issues/326 | Large dataset in Squad2-format | 15-20 minutes is fine !
Also there's no RAM limitations as we save to disk every 1000 elements while generating the dataset by default.
After generation, the dataset is ready to use with (again) no RAM limitations as we do memory-mapping. | At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ? | 41 | Large dataset in Squad2-format
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ?
15-20 minutes is fine !
Also there's no RAM limitations as we save to disk every 1000 elements while generating the dataset by default.
After generation, the dataset is ready to use with (again) no RAM limitations as we do memory-mapping. | [
-0.1409044861793518,
-0.2805249094963074,
-0.10055758059024811,
0.2925085425376892,
0.2343980073928833,
-0.06676784157752991,
-0.006628040224313736,
0.48271840810775757,
-0.004639957100152969,
0.10125814378261566,
-0.28785818815231323,
0.01706371270120144,
-0.2403963953256607,
0.27060142159461975,
0.2778697609901428,
-0.07823574542999268,
0.08594562858343124,
-0.0013710185885429382,
-0.11298014223575592,
0.06853236258029938,
0.12187148630619049,
-0.17859743535518646,
0.06772272288799286,
-0.16621775925159454,
-0.30529505014419556,
-0.1456223577260971,
-0.15920846164226532,
0.13756334781646729,
-0.3753184378147125,
-0.3739068806171417,
-0.21093294024467468,
0.26128724217414856,
0.21464292705059052,
0.5602196455001831,
-0.00012020426947856322,
-0.16133123636245728,
-0.07823818922042847,
-0.34388455748558044,
-0.37536707520484924,
0.11457553505897522,
-0.10136657953262329,
-0.32353949546813965,
-0.140128031373024,
-0.11043168604373932,
-0.2038576900959015,
-0.19321760535240173,
0.14007049798965454,
-0.33231648802757263,
0.7989581227302551,
-0.12592481076717377,
0.031723685562610626,
-0.03804117441177368,
-0.04032643139362335,
-0.02426241710782051,
0.24251937866210938,
0.2816529870033264,
-0.09640055894851685,
0.018755724653601646,
0.6647374629974365,
0.3354053497314453,
-0.17601585388183594,
0.09073573350906372,
-0.009859222918748856,
-0.14002127945423126,
0.10980823636054993,
-0.1842201054096222,
-0.15757456421852112,
-0.2615037262439728,
-0.06578651070594788,
0.2858430743217468,
0.503013551235199,
-0.27816247940063477,
-0.1896301954984665,
-0.2847791314125061,
-0.0658237636089325,
0.1196044385433197,
0.005494177341461182,
0.3605901002883911,
-0.08757199347019196,
0.39045417308807373,
-0.28513339161872864,
-0.4337237477302551,
-0.3542932868003845,
-0.05113349109888077,
0.2782345414161682,
-0.042148396372795105,
-0.10957473516464233,
0.03583236783742905,
-0.17362917959690094,
-0.16114482283592224,
-0.10551444441080093,
-0.18201692402362823,
-0.04355805739760399,
0.19512735307216644,
-0.050039056688547134,
-0.3236091434955597,
-0.12283540517091751,
-0.2667888402938843,
0.737346887588501,
0.2351011484861374,
0.27625593543052673,
-0.025291115045547485,
0.22148488461971283,
-0.055995434522628784,
0.3499581515789032,
0.0007974831387400627,
-0.19839367270469666,
-0.39569470286369324,
0.19514843821525574,
0.041139062494039536,
-0.014749402180314064,
-0.102309949696064,
-0.22788971662521362,
0.1696130335330963,
-0.11137121915817261,
-0.23890423774719238,
0.2255726009607315,
0.16246864199638367,
0.07499589771032333,
0.09880572557449341,
-0.11902331560850143,
-0.056419774889945984,
0.15906184911727905,
0.2800050675868988,
-0.10087284445762634,
0.10659783333539963,
-0.09315605461597443,
0.04269430786371231,
0.24667148292064667,
-0.22342060506343842,
0.0033720447681844234,
-0.05496111884713173,
-0.10676845908164978,
0.2609636187553406,
0.24976859986782074,
0.07870738208293915,
0.0633997917175293,
-0.04067221283912659,
0.3254791498184204,
-0.262443482875824,
0.19540318846702576,
-0.030089998617768288,
0.05564304068684578,
0.02704036235809326,
0.12141475081443787,
0.07234729081392288,
-0.25071704387664795,
-0.03736221045255661,
-0.2716752290725708,
0.06643480062484741,
-0.170203298330307,
-0.3618007302284241,
-0.03696330636739731,
-0.000042873434722423553,
-0.2681350111961365,
0.29855117201805115,
-0.12722739577293396,
0.31650009751319885,
0.021192647516727448,
0.0033348985016345978,
-0.07488005608320236,
0.4382689595222473,
-0.22520892322063446,
-0.2618332505226135,
0.0783005952835083,
0.5588118433952332,
-0.18502391874790192,
-0.016268320381641388,
0.6108693480491638,
-0.005992569029331207,
-0.35437941551208496,
0.3948070704936981,
0.007589584216475487,
0.15048104524612427,
0.03462505340576172,
-0.12789466977119446,
0.26900914311408997,
-0.44360655546188354,
-0.42894914746284485,
0.5240532159805298,
-0.19466932117938995,
-0.22466106712818146,
0.4402691721916199,
0.04109534993767738,
0.6278271675109863,
-0.24293340742588043,
0.08498454093933105,
0.4986984133720398,
-0.022190777584910393,
0.3013460040092468,
-0.29487431049346924,
-0.3466877043247223,
-0.1763305366039276,
0.32279717922210693,
-0.23700131475925446,
-0.19503873586654663,
-0.21472018957138062,
0.2757800221443176,
0.11827095597982407,
-0.050714511424303055,
0.34580111503601074,
-0.065984345972538,
0.3465013802051544,
-0.018972091376781464,
-0.10910370945930481,
-0.07967393100261688,
-0.7441952228546143,
-0.1172303706407547,
-0.04875289276242256,
-0.17698408663272858,
0.12425466626882553,
-0.39502549171447754,
-0.24378114938735962,
-0.027252953499555588,
-0.07538408041000366,
-0.0389583520591259,
-0.011030703783035278,
-0.14660586416721344,
0.24310463666915894,
-0.06242896243929863,
-0.4239647388458252,
0.21987783908843994,
0.03126826137304306,
0.10887579619884491,
-0.051748987287282944,
0.11048199236392975,
0.1083662137389183,
0.040388062596321106,
0.22501862049102783,
0.14064422249794006,
-0.04524838179349899,
-0.2843998968601227,
0.3054424524307251,
0.1263495683670044,
-0.11566688120365143,
0.03385772556066513,
0.09394421428442001,
0.12442890554666519,
0.32056674361228943,
0.21318790316581726,
0.34680721163749695,
-0.014820419251918793,
-0.05811870098114014,
-0.24207767844200134,
-0.5757753252983093,
0.28144538402557373,
-0.3202788531780243,
0.1856945902109146,
-0.10162939876317978,
-0.19213253259658813,
0.354884535074234,
0.022458810359239578,
-0.21675072610378265,
0.020305514335632324,
-0.09390880167484283,
0.16470904648303986,
0.40101590752601624,
0.23147904872894287,
-0.13959932327270508,
0.1183294877409935,
0.410749614238739,
-0.1698395311832428,
0.08595725893974304,
0.12950292229652405,
0.11128300428390503,
-0.22527509927749634,
-0.0007229205220937729,
-0.3508842885494232,
0.1351928561925888,
0.1990705132484436,
-0.13312062621116638,
-0.00456598773598671,
0.425062358379364,
-0.1296105682849884,
-0.06791696697473526,
-0.002947084605693817,
0.22790859639644623,
0.268940269947052,
0.4185393452644348,
-0.12494667619466782,
0.04093768447637558,
-0.06802567839622498,
0.18839851021766663,
-0.025745132938027382,
-0.09174033999443054,
-0.018723370507359505,
0.18175998330116272,
0.2700444757938385,
0.013141938485205173,
0.2449391931295395,
-0.15448415279388428,
0.255769819021225,
0.31787848472595215,
0.11296303570270538,
0.027742929756641388,
0.05558493733406067,
0.32202619314193726,
0.7086120247840881,
0.10924194753170013,
-0.34085357189178467,
0.027089647948741913,
-0.21121053397655487,
0.4393976330757141,
-0.05490431189537048,
0.42860546708106995,
-0.3180968761444092,
0.2616632580757141,
-0.03549563139677048,
-0.004236278124153614,
-0.17110076546669006,
-0.08901617676019669,
0.2154257595539093,
0.049712661653757095,
0.2052059769630432,
-0.11795641481876373,
0.30706048011779785,
-0.2029966562986374,
-0.004642881453037262,
0.179308220744133,
0.10944074392318726,
-0.23141543567180634,
-0.1409713178873062,
-0.06247910112142563,
-0.13985972106456757,
0.08734972774982452,
-0.17045819759368896,
-0.2106008231639862,
-0.3970167934894562,
0.5515090227127075,
0.08069312572479248,
0.09401753544807434,
-0.4090318977832794,
0.18045857548713684,
-0.12394941598176956,
-0.41574257612228394,
0.05095023661851883,
-0.14543238282203674,
-0.7269211411476135,
0.20463763177394867,
-0.189116969704628,
-0.22771714627742767,
-0.32758623361587524,
0.07791836559772491,
-0.030489925295114517,
0.07899012416601181,
-0.30376720428466797,
-0.20165790617465973,
0.0868922621011734,
0.1434851586818695,
-0.04712957143783569,
0.08975191414356232,
0.3968958556652069,
-0.1114342138171196,
0.09005061537027359,
0.058349549770355225,
-0.011274868622422218,
0.13752473890781403,
0.2120560109615326,
0.2483743131160736,
-0.009163487702608109,
0.4458046853542328,
0.18211445212364197,
0.7829382419586182,
0.4851694107055664,
0.21968019008636475,
0.054226476699113846,
0.17270159721374512,
0.27548274397850037,
-0.10151492804288864,
0.01983867771923542,
0.4424991011619568,
0.03423210233449936,
-0.03144237771630287,
0.1802770495414734,
0.3919907808303833,
0.10980796813964844,
-0.20567648112773895,
-0.2954745590686798,
-0.15709422528743744,
-0.21634157001972198,
0.3759024143218994,
0.40153491497039795,
0.1393619030714035,
-0.052431561052799225,
-0.2696840167045593,
-0.14109264314174652,
-0.2912500202655792,
-0.12081484496593475,
0.13478705286979675,
0.417482852935791,
0.1133311539888382,
-0.5920683741569519,
0.307525098323822,
-0.3974328339099884,
0.0312747061252594,
0.032543644309043884,
-0.25283411145210266,
-0.012198217213153839,
-0.005141107365489006,
0.16676250100135803,
-0.1427391767501831,
0.6802510023117065,
0.2327905148267746,
-0.044901520013809204,
-0.19842809438705444,
-0.024463776499032974,
-0.3251374661922455,
0.2406822293996811,
-0.146340012550354,
0.4969028830528259,
0.46525639295578003,
0.4515283405780792,
-0.5926412343978882,
-0.22588951885700226,
0.012884245254099369,
0.13924460113048553,
-0.19686545431613922,
-0.21280989050865173,
-0.14842374622821808,
-0.21824416518211365,
-0.4754307270050049,
0.1036970317363739,
0.23830945789813995,
-0.04396059364080429,
0.3554883599281311,
-0.07841546833515167,
-0.01936856471002102,
0.1624200940132141,
0.044924296438694,
0.23070164024829865,
-0.04849627614021301,
0.0834050327539444,
0.20239001512527466,
0.12782782316207886,
0.1726064383983612,
0.10327716916799545,
0.28186243772506714,
0.03370383009314537,
0.09031997621059418,
0.12331872433423996,
-0.008521948009729385,
0.48821136355400085,
0.5183207392692566,
0.1435084342956543,
-0.14995208382606506,
-0.451540470123291,
0.3554844856262207,
-0.4063180387020111,
-0.1295846700668335,
0.12999248504638672,
-0.15233337879180908,
-0.34323880076408386,
-0.17759579420089722,
0.46514391899108887,
-0.06132413074374199,
-0.11519663780927658,
-0.012669950723648071,
0.24848070740699768,
-0.035806529223918915,
0.370661199092865,
0.10629408061504364,
1.289374589920044,
-0.4414869546890259,
0.3910543918609619,
0.07521743327379227,
0.05155687779188156,
0.5166646838188171,
-0.7395318150520325,
0.06856527924537659,
-0.3477132320404053,
0.374077171087265,
0.007250027731060982,
-0.179177924990654,
-0.0398695170879364,
0.4383755922317505,
-0.34244558215141296,
0.10810919851064682,
-0.1384115219116211,
0.4814703166484833,
-0.26096004247665405,
0.7284737825393677,
-0.1351395696401596,
-0.3896680474281311,
-0.5786440372467041,
0.01515805721282959,
-0.23967011272907257,
-0.20959050953388214,
-0.07108879089355469,
-0.14506308734416962,
-0.0771515741944313,
0.08426510542631149,
-0.06116441264748573,
-0.24905022978782654,
-0.12704870104789734,
0.10895142704248428,
0.207643061876297,
-0.36851561069488525,
0.27511098980903625,
0.20314550399780273,
-0.04032819718122482,
0.2738546133041382,
-0.04968951642513275,
0.14295580983161926,
-0.28444263339042664,
-0.2363259494304657,
0.02901391312479973,
0.03748439624905586,
0.1495344042778015,
-0.0959482491016388,
-0.26340916752815247,
0.09295090287923813,
0.14973825216293335,
-0.05447990074753761,
-0.397957980632782,
0.12475696951150894,
0.20535220205783844,
-0.5689494013786316,
-0.2819285988807678,
-0.017831914126873016,
-0.2618306279182434,
0.07517802715301514,
-0.02530057728290558,
0.15771086513996124,
-0.07358717173337936,
0.24005499482154846,
0.4915742576122284,
-0.09099717438220978,
-0.007491622120141983,
0.18206290900707245,
-0.0016043521463871002,
-0.24295474588871002,
0.17020078003406525,
0.11879970133304596,
-0.14429709315299988,
-0.19691845774650574,
0.6800795793533325,
-0.010540039278566837,
-0.1847030520439148,
0.14049629867076874,
-0.0037364724557846785,
-0.2887127995491028,
-0.36592474579811096,
-0.20993459224700928,
0.33862608671188354,
-0.06089446693658829,
0.3054252862930298,
-0.16394516825675964,
-0.3691944479942322,
0.31230127811431885,
0.1857188493013382,
-0.0890098512172699,
0.09125884622335434,
-0.03166552260518074,
-0.06566192209720612,
0.3900143504142761,
-0.2072119414806366,
0.2037016600370407,
-0.013129642233252525,
0.09369444102048874,
-0.015511006116867065,
-0.24781981110572815,
0.07413691282272339,
-0.13203366100788116,
-0.07397623360157013,
-0.06394334882497787,
-0.3755153715610504,
-0.1119009256362915,
-0.14305156469345093,
0.22507204115390778,
0.04962339997291565,
-0.07599710673093796,
-0.11694258451461792,
-0.34777623414993286,
-0.18398958444595337,
-0.12197999656200409,
0.27526864409446716,
0.17193445563316345,
0.2944323420524597,
-0.48317867517471313,
-0.10368561744689941,
-0.2874085009098053,
-0.023217936977744102,
0.2090698480606079,
0.22858038544654846,
0.40834635496139526,
0.11095552891492844,
0.09946827590465546,
0.051756493747234344,
-0.19897137582302094,
-0.02653586119413376,
0.5146834850311279,
0.6444924473762512,
0.09732888638973236,
0.3506827652454376,
-0.12454251945018768,
-0.008452720940113068,
0.18096528947353363,
0.12101125717163086,
0.2879489064216614,
-0.2791019380092621,
0.2501029670238495,
-0.04253006726503372,
0.05094889551401138,
-0.046570733189582825,
0.0771985575556755,
0.3802140951156616,
0.0022434964776039124,
0.014266837388277054,
0.34881651401519775,
-0.012090828269720078,
-0.06252459436655045,
-0.16032208502292633,
0.15118145942687988,
0.5711217522621155,
0.22387941181659698,
-0.27056968212127686,
-0.12461280822753906,
-0.04492499679327011,
-0.16694383323192596,
0.39776232838630676,
0.34597331285476685,
0.27946969866752625,
0.08592139184474945,
0.009336762130260468,
0.18305741250514984,
-0.01910080388188362,
0.08229520916938782,
0.24794453382492065,
0.03102763369679451,
-0.19837112724781036,
0.4128302037715912,
0.2662293314933777,
-0.06672979146242142,
-0.10311375558376312,
0.6514551639556885,
0.2968409061431885,
-0.13700808584690094,
-0.16086342930793762,
0.16976501047611237,
0.042907752096652985,
-0.14302152395248413,
-0.10482489317655563,
-0.2766437828540802,
-0.15503527224063873,
0.1510585993528366,
-0.22876539826393127,
-0.46100085973739624,
0.20585200190544128,
0.2624775767326355,
0.3755553960800171,
-0.021210672333836555,
0.3653201460838318,
0.1804884374141693,
0.22091034054756165,
-0.21415486931800842,
0.30917686223983765,
0.28170907497406006,
0.1266261339187622,
0.12676917016506195,
0.20184746384620667,
0.1727321594953537,
-0.006307024508714676,
-0.34021416306495667,
0.43965232372283936,
-0.3761487305164337,
-0.053526148200035095,
-0.05026029795408249,
0.10687143355607986,
0.20751890540122986,
-0.27974241971969604,
0.1731979101896286,
-0.02487841248512268,
-0.03648172691464424,
-0.20878379046916962,
0.22894299030303955,
-0.37090003490448,
-0.04125151410698891,
-0.33188071846961975,
-0.22460508346557617,
-0.25193706154823303,
-0.08649203181266785,
-0.12849262356758118,
-0.45535483956336975,
-0.0998789370059967,
0.13385078310966492,
-0.183946430683136,
0.25261035561561584,
-0.044152263551950455,
0.010928057134151459,
-0.1301109492778778,
0.3143857717514038,
-0.07826822996139526,
-0.04878225177526474,
-0.05278906971216202,
-0.19891878962516785,
-0.20171621441841125,
0.02327660471200943,
-0.28421446681022644,
0.15400230884552002,
-0.1881955862045288,
0.5003309845924377,
0.12178367376327515,
0.5847201943397522,
-0.24006716907024384,
0.07081035524606705,
-0.3883972465991974,
-0.05369209498167038,
-0.3941103518009186,
0.0806148573756218,
0.044823337346315384,
0.5533945560455322,
0.1747603714466095,
-0.23003363609313965,
0.27861812710762024,
0.06506812572479248,
-0.14974111318588257,
-0.16048188507556915,
0.21791711449623108,
-0.31974247097969055,
-0.4120730459690094,
0.12254426628351212,
0.04655931144952774,
0.08459530025720596,
0.005330406129360199,
-0.24206916987895966,
-0.13294142484664917,
-0.03730420768260956,
-0.0050692385993897915,
0.19645163416862488,
0.38218075037002563,
0.05585041642189026,
-0.33677777647972107,
-0.3499859571456909,
0.07383351027965546,
0.12019871920347214,
-0.2507040500640869,
-0.14657333493232727,
-0.16847540438175201,
-0.30808255076408386,
-0.17480319738388062,
0.2735370397567749,
-0.07024332880973816,
0.3493786156177521,
-0.3827400803565979,
-0.026194464415311813,
-0.20113831758499146,
-0.05836748331785202,
0.5014263987541199,
-0.10391141474246979,
-0.27148106694221497,
0.07848500460386276,
0.19433796405792236,
0.15415887534618378,
-0.04689650982618332,
-0.3567609488964081,
0.2978198528289795,
0.0858592763543129,
-0.0381602868437767,
-0.24610893428325653,
0.17440198361873627,
-0.21128955483436584,
-0.2963830828666687,
-0.13031990826129913,
0.17460809648036957,
-0.05115356296300888,
-0.13879558444023132,
-0.27191227674484253,
-0.18967843055725098
] |
https://github.com/huggingface/datasets/issues/326 | Large dataset in Squad2-format | Wow, that sounds pretty cool.
Actually I have the problem of running out of memory while tokenization on our local machine.
That wouldn't happen again, would it ? | At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ? | 28 | Large dataset in Squad2-format
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ?
Wow, that sounds pretty cool.
Actually I have the problem of running out of memory while tokenization on our local machine.
That wouldn't happen again, would it ? | [
-0.0048641301691532135,
-0.23592421412467957,
-0.06830387562513351,
0.2993229329586029,
0.25642916560173035,
-0.11595676839351654,
0.019138231873512268,
0.4660225510597229,
-0.09819923341274261,
0.15328164398670197,
-0.2599278390407562,
0.029208222404122353,
-0.24323485791683197,
0.25091803073883057,
0.3011699318885803,
-0.048041313886642456,
0.16648784279823303,
-0.01750466227531433,
-0.035458438098430634,
0.057878829538822174,
0.15244169533252716,
-0.12134060263633728,
0.0502190887928009,
-0.11216811835765839,
-0.34330278635025024,
-0.14102041721343994,
-0.22272086143493652,
0.11543414741754532,
-0.3829265832901001,
-0.39953306317329407,
-0.3136950135231018,
0.2566600739955902,
0.24174442887306213,
0.5677553415298462,
-0.00012270797742530704,
-0.2018594741821289,
-0.08838388323783875,
-0.3403649628162384,
-0.3112189471721649,
0.054558999836444855,
-0.000678718090057373,
-0.3438970148563385,
-0.11720794439315796,
-0.10907729715108871,
-0.16727110743522644,
-0.2621128559112549,
0.1045963391661644,
-0.28729248046875,
0.8023911118507385,
-0.18585199117660522,
0.016492579132318497,
-0.016265368089079857,
-0.10207988321781158,
0.07463137060403824,
0.19437965750694275,
0.3218398690223694,
-0.040247730910778046,
-0.01438724622130394,
0.6634315252304077,
0.25637009739875793,
-0.15576985478401184,
0.09791135787963867,
-0.03299578279256821,
-0.16365687549114227,
0.050646811723709106,
-0.1566651463508606,
-0.1782921850681305,
-0.19819645583629608,
-0.003900885581970215,
0.1783846914768219,
0.39814743399620056,
-0.33002543449401855,
-0.1373390108346939,
-0.2405577003955841,
-0.11000141501426697,
0.05676695704460144,
0.027938369661569595,
0.3217492997646332,
-0.09838064014911652,
0.39437928795814514,
-0.3018191158771515,
-0.4261781871318817,
-0.3479035794734955,
-0.008125565946102142,
0.1863977313041687,
0.07474112510681152,
-0.11239852011203766,
0.01623300090432167,
-0.2107531875371933,
-0.2084164023399353,
-0.17503324151039124,
-0.12127146124839783,
-0.056275706738233566,
0.1857767105102539,
-0.02945369854569435,
-0.3806009888648987,
-0.17697668075561523,
-0.3344234228134155,
0.7397294044494629,
0.24079349637031555,
0.20411069691181183,
0.0006110984832048416,
0.2247772514820099,
-0.02350424975156784,
0.4215126633644104,
0.03397702798247337,
-0.16068410873413086,
-0.2854785621166229,
0.17695577442646027,
-0.07671978324651718,
0.007157709449529648,
-0.12674912810325623,
-0.29016852378845215,
0.2594226896762848,
-0.11997878551483154,
-0.19852742552757263,
0.20788654685020447,
0.11814728379249573,
0.12500876188278198,
0.14590296149253845,
-0.15320682525634766,
-0.0004802797921001911,
0.19263438880443573,
0.291961669921875,
-0.09992541372776031,
0.1251983493566513,
-0.15550416707992554,
0.013285977765917778,
0.194123312830925,
-0.22000060975551605,
0.015187285840511322,
-0.04889243468642235,
-0.14267267286777496,
0.2775094211101532,
0.16019898653030396,
0.1904592365026474,
0.05506180226802826,
-0.03130277618765831,
0.3454264998435974,
-0.33161354064941406,
0.17181774973869324,
-0.012087524868547916,
0.09186915308237076,
-0.08710275590419769,
0.09667463600635529,
0.10719602555036545,
-0.18601320683956146,
-0.06345488876104355,
-0.2804774343967438,
0.02861151471734047,
-0.15907379984855652,
-0.28591427206993103,
-0.08997146785259247,
-0.013199820183217525,
-0.2573435306549072,
0.27532362937927246,
-0.15569904446601868,
0.33707669377326965,
0.04335460811853409,
0.027619075030088425,
-0.07604195922613144,
0.4177364110946655,
-0.19962702691555023,
-0.2468789666891098,
0.08625487238168716,
0.5264921188354492,
-0.2127516269683838,
-0.05891686677932739,
0.7256125807762146,
0.00391107052564621,
-0.2323838174343109,
0.45220649242401123,
0.03411939740180969,
0.09965042769908905,
0.03302279859781265,
0.01712111383676529,
0.19754308462142944,
-0.5084146857261658,
-0.39170074462890625,
0.48725301027297974,
-0.2710963189601898,
-0.2888278663158417,
0.4501457214355469,
-0.0021798396483063698,
0.724488377571106,
-0.17798545956611633,
0.12482409924268723,
0.4527078866958618,
-0.011206420138478279,
0.28667816519737244,
-0.34183165431022644,
-0.3517707586288452,
-0.14327459037303925,
0.2145598977804184,
-0.24766995012760162,
-0.2337246835231781,
-0.16784623265266418,
0.3443203568458557,
0.1442345380783081,
-0.03703799471259117,
0.3658798635005951,
-0.12580715119838715,
0.40817707777023315,
0.08153684437274933,
-0.10751539468765259,
-0.045349664986133575,
-0.6363101005554199,
-0.17591527104377747,
-0.06689751148223877,
-0.20457357168197632,
0.08754672110080719,
-0.4391719698905945,
-0.23398903012275696,
-0.039720915257930756,
-0.0037450604140758514,
-0.022772066295146942,
-0.010500485077500343,
-0.07216909527778625,
0.1975916624069214,
0.041651804000139236,
-0.477779746055603,
0.10277952998876572,
0.06819862872362137,
0.09194422513246536,
0.06773655861616135,
0.11539311707019806,
0.06357381492853165,
-0.027805812656879425,
0.18356196582317352,
0.16944368183612823,
0.01326635479927063,
-0.2761836349964142,
0.30758461356163025,
0.13654927909374237,
-0.13761188089847565,
0.0771176815032959,
0.06437090039253235,
0.18853048980236053,
0.36776378750801086,
0.2471434473991394,
0.3335399627685547,
-0.035948146134614944,
-0.07959657162427902,
-0.19564884901046753,
-0.4011133909225464,
0.2823255956172943,
-0.20598606765270233,
0.16073128581047058,
-0.10876583307981491,
-0.1630896031856537,
0.3603009581565857,
0.027131859213113785,
-0.1765020489692688,
-0.007229562848806381,
-0.1080077588558197,
0.1386488378047943,
0.31676921248435974,
0.2005206048488617,
-0.10991549491882324,
0.15049216151237488,
0.4193863272666931,
-0.16624273359775543,
0.14107756316661835,
0.08609719574451447,
0.06578139215707779,
-0.21050682663917542,
0.07314037531614304,
-0.42060479521751404,
0.11613747477531433,
0.1916218400001526,
-0.11243322491645813,
0.017466939985752106,
0.46441540122032166,
-0.1069171354174614,
-0.05442319065332413,
0.061501871794462204,
0.11198622733354568,
0.20680272579193115,
0.3783845901489258,
-0.15154367685317993,
0.06326129287481308,
-0.06131337583065033,
0.1851518601179123,
-0.018007798120379448,
-0.1255817413330078,
0.012213783338665962,
0.03842663764953613,
0.21402543783187866,
-0.03231499716639519,
0.19934451580047607,
-0.13379333913326263,
0.23526926338672638,
0.3411100506782532,
0.12738753855228424,
-0.0041493698954582214,
0.04756215959787369,
0.3337063789367676,
0.7932168245315552,
0.0033720415085554123,
-0.243406280875206,
0.06023707985877991,
-0.27330905199050903,
0.3194567561149597,
-0.08893422782421112,
0.4855743944644928,
-0.3599849343299866,
0.3138057291507721,
0.0023287292569875717,
-0.027119960635900497,
-0.19544687867164612,
-0.1236829161643982,
0.25140100717544556,
0.059505123645067215,
0.12280892580747604,
-0.18114295601844788,
0.22436995804309845,
-0.34699374437332153,
-0.06196289509534836,
0.13531702756881714,
0.04414558410644531,
-0.2819417715072632,
-0.14780990779399872,
-0.020760055631399155,
-0.10532974451780319,
0.07898916304111481,
-0.15574893355369568,
-0.26381435990333557,
-0.3474764823913574,
0.5619252324104309,
0.049565982073545456,
0.09183445572853088,
-0.4269675314426422,
0.12378951907157898,
-0.03365987166762352,
-0.47645923495292664,
-0.04426640272140503,
-0.20647688210010529,
-0.6906933784484863,
0.12904241681098938,
-0.20442993938922882,
-0.1791325956583023,
-0.25710585713386536,
0.13407544791698456,
-0.010561231523752213,
0.026633024215698242,
-0.2865173816680908,
-0.21641729772090912,
0.1734154373407364,
0.06568112969398499,
-0.057324767112731934,
0.103461854159832,
0.3878519833087921,
-0.11015146225690842,
0.06789357215166092,
0.08969441801309586,
0.018847502768039703,
0.1214543804526329,
0.14672808349132538,
0.24751320481300354,
-0.013569757342338562,
0.42858800292015076,
0.26387274265289307,
0.7901015877723694,
0.3915764093399048,
0.1970973014831543,
0.08346300572156906,
0.10332080721855164,
0.27672359347343445,
-0.004627302289009094,
-0.011078736744821072,
0.4460403323173523,
0.049283213913440704,
-0.06393714994192123,
0.24060069024562836,
0.38722193241119385,
0.13596048951148987,
-0.16082659363746643,
-0.32881951332092285,
-0.15506938099861145,
-0.26193493604660034,
0.3843179941177368,
0.3602469563484192,
0.09987545013427734,
-0.06691490113735199,
-0.2637208104133606,
-0.16095030307769775,
-0.3486647605895996,
-0.0912175178527832,
0.12585744261741638,
0.31033623218536377,
0.15960310399532318,
-0.6825467944145203,
0.30481183528900146,
-0.38125017285346985,
0.0732673928141594,
0.04372822865843773,
-0.12440234422683716,
-0.030995065346360207,
-0.040682464838027954,
0.17861680686473846,
-0.1328403800725937,
0.6704147458076477,
0.36260882019996643,
-0.11619050800800323,
-0.25796669721603394,
-0.10844630748033524,
-0.26682430505752563,
0.1988120675086975,
-0.12253911793231964,
0.4609365463256836,
0.4595280587673187,
0.47180983424186707,
-0.5613797903060913,
-0.20620104670524597,
-0.06607961654663086,
0.08684664964675903,
-0.2086283415555954,
-0.1341804563999176,
-0.15706121921539307,
-0.17786887288093567,
-0.5508038401603699,
0.10234777629375458,
0.27209141850471497,
-0.04120418429374695,
0.38130179047584534,
-0.17340688407421112,
0.008524315431714058,
0.029800880700349808,
0.08935532718896866,
0.21837300062179565,
-0.015407390892505646,
0.11483320593833923,
0.08359812200069427,
0.1694606989622116,
0.21239538490772247,
0.1255594938993454,
0.14729231595993042,
0.10053287446498871,
0.05187015235424042,
0.13559198379516602,
0.031740702688694,
0.6307211518287659,
0.5391393303871155,
0.12745335698127747,
-0.0374031737446785,
-0.48055335879325867,
0.3121173083782196,
-0.4224775731563568,
-0.0316598154604435,
0.08858723193407059,
-0.1388895958662033,
-0.30142757296562195,
-0.08810847997665405,
0.3730335831642151,
-0.014016438275575638,
-0.1200728490948677,
0.04961660876870155,
0.25153422355651855,
-0.10554417967796326,
0.45230746269226074,
0.10320768505334854,
1.3929846286773682,
-0.45147228240966797,
0.4316116273403168,
0.026673931628465652,
0.06585105508565903,
0.6378914713859558,
-0.8194289803504944,
0.07537198066711426,
-0.3553827106952667,
0.48452091217041016,
0.02798341028392315,
-0.1089504063129425,
-0.07160576432943344,
0.3980715274810791,
-0.31128716468811035,
0.09310402721166611,
-0.1793704628944397,
0.5494173765182495,
-0.303833544254303,
0.6470794677734375,
-0.11585571616888046,
-0.38887712359428406,
-0.5553722381591797,
0.00022692233324050903,
-0.22265015542507172,
-0.2617731988430023,
-0.12317440658807755,
-0.07633645832538605,
-0.09875860810279846,
0.07659516483545303,
-0.018999770283699036,
-0.2811446189880371,
-0.1306401640176773,
0.18321950733661652,
0.19065138697624207,
-0.2936607003211975,
0.17895975708961487,
0.15916204452514648,
0.024565592408180237,
0.36435288190841675,
-0.04034065455198288,
0.07436280697584152,
-0.2797781825065613,
-0.20251289010047913,
0.027377070859074593,
0.001368977129459381,
0.13154058158397675,
-0.09157955646514893,
-0.2976231276988983,
0.13419842720031738,
0.27773281931877136,
-0.09076159447431564,
-0.5014800429344177,
0.12734682857990265,
0.3642627000808716,
-0.5198196768760681,
-0.20967954397201538,
-0.035566650331020355,
-0.24382591247558594,
0.0729556530714035,
-0.03208623826503754,
0.17419447004795074,
-0.15315431356430054,
0.22725751996040344,
0.5170205235481262,
-0.045210544019937515,
0.012019237503409386,
0.19955451786518097,
-0.08531322330236435,
-0.3673032820224762,
0.2237192541360855,
0.06137619540095329,
-0.1142335906624794,
-0.16855522990226746,
0.6826549768447876,
0.009707417339086533,
-0.12100470066070557,
0.07462424784898758,
0.0038246149197220802,
-0.35007959604263306,
-0.3896213471889496,
-0.1243436187505722,
0.3901152014732361,
-0.04133739322423935,
0.27555519342422485,
-0.18111148476600647,
-0.42854318022727966,
0.3383806347846985,
0.11083383858203888,
-0.061949316412210464,
0.16989794373512268,
0.10885781049728394,
-0.175775945186615,
0.3394363820552826,
-0.1865459382534027,
0.17288975417613983,
-0.11681024730205536,
0.10828607529401779,
-0.054054223001003265,
-0.21860477328300476,
-0.00729416124522686,
-0.11370666325092316,
-0.09557797014713287,
0.03970745950937271,
-0.2682878077030182,
-0.0903342217206955,
-0.1170664131641388,
0.24066691100597382,
0.11143887788057327,
-0.04613594710826874,
-0.1293836236000061,
-0.26413077116012573,
-0.09552310407161713,
-0.11170846968889236,
0.2225818783044815,
0.24591031670570374,
0.2900201678276062,
-0.4254912734031677,
-0.07746869325637817,
-0.24992209672927856,
0.007511436939239502,
0.1698828786611557,
0.30390429496765137,
0.4021041989326477,
0.11703403294086456,
0.09787452965974808,
0.041718922555446625,
-0.18095532059669495,
-0.005773710552603006,
0.5137699842453003,
0.7084446549415588,
0.09023649990558624,
0.24844518303871155,
-0.052290916442871094,
-0.05261961743235588,
0.18717209994792938,
-0.008821047842502594,
0.28164809942245483,
-0.2950817942619324,
0.15949063003063202,
0.1631026268005371,
0.03809535875916481,
0.03176349401473999,
0.05988248810172081,
0.3637097179889679,
-0.02153552696108818,
-0.08393611758947372,
0.363406240940094,
0.03869627043604851,
-0.09154047816991806,
-0.1826542764902115,
0.12322141975164413,
0.5751818418502808,
0.21441443264484406,
-0.2730652689933777,
-0.23742857575416565,
-0.1275794804096222,
-0.18430963158607483,
0.37926623225212097,
0.29543718695640564,
0.26621150970458984,
0.07175348699092865,
-0.044646747410297394,
0.21548941731452942,
-0.05998970568180084,
0.1828857809305191,
0.22501704096794128,
0.08422589302062988,
-0.2262134701013565,
0.33780598640441895,
0.3512508273124695,
-0.028764165937900543,
-0.1293134093284607,
0.6900848746299744,
0.3549063801765442,
-0.1810750663280487,
-0.0834738239645958,
0.2515951991081238,
0.0005791671574115753,
-0.12178005278110504,
-0.14447250962257385,
-0.24409076571464539,
-0.11946024000644684,
0.13712534308433533,
-0.16534551978111267,
-0.472370445728302,
0.1429693102836609,
0.30888330936431885,
0.3158620595932007,
-0.022773778066039085,
0.3322769105434418,
0.22091615200042725,
0.21781909465789795,
-0.235255628824234,
0.31770530343055725,
0.22841492295265198,
0.2080644816160202,
0.13354863226413727,
0.1596846878528595,
0.14992837607860565,
0.04689198359847069,
-0.29494142532348633,
0.40810438990592957,
-0.43880605697631836,
0.015448426827788353,
-0.047049812972545624,
0.15847326815128326,
0.19521009922027588,
-0.2692927420139313,
0.08264553546905518,
-0.04524195194244385,
-0.016630614176392555,
-0.2600586712360382,
0.29398712515830994,
-0.40367674827575684,
-0.02067730203270912,
-0.25535309314727783,
-0.19373545050621033,
-0.24146267771720886,
-0.09636639058589935,
-0.13527703285217285,
-0.5302700996398926,
-0.09243990480899811,
0.13979662954807281,
-0.16528630256652832,
0.27695631980895996,
-0.06407483667135239,
0.00003553740680217743,
-0.07117392122745514,
0.2686169445514679,
-0.0679086297750473,
-0.10232727974653244,
-0.07632437348365784,
-0.1858241707086563,
-0.2031058818101883,
0.14887011051177979,
-0.2374664843082428,
0.1368880420923233,
-0.2526894509792328,
0.47995445132255554,
0.14381186664104462,
0.5463253259658813,
-0.35314762592315674,
0.1395505666732788,
-0.4323916435241699,
-0.13349482417106628,
-0.4240528643131256,
0.16006840765476227,
0.06287309527397156,
0.5529720783233643,
0.2093477100133896,
-0.16004601120948792,
0.2817637026309967,
0.041694387793540955,
-0.18447163701057434,
-0.16372892260551453,
0.19663113355636597,
-0.3929290473461151,
-0.428678423166275,
0.14122602343559265,
0.0723455548286438,
0.10668402910232544,
0.06557942181825638,
-0.20568880438804626,
-0.15749110281467438,
-0.043248500674963,
-0.05867433920502663,
0.15557560324668884,
0.3227592408657074,
-0.032396893948316574,
-0.3471822738647461,
-0.3678295314311981,
0.011420486494898796,
0.11437813192605972,
-0.23567375540733337,
-0.19691914319992065,
-0.11253071576356888,
-0.2713986933231354,
-0.15147510170936584,
0.22029317915439606,
-0.10369494557380676,
0.39745718240737915,
-0.35593563318252563,
0.04803092032670975,
-0.24334289133548737,
-0.06455743312835693,
0.45853522419929504,
-0.17865650355815887,
-0.3056343197822571,
0.07935036718845367,
0.24479609727859497,
0.21346944570541382,
-0.07338184118270874,
-0.41946303844451904,
0.2626649737358093,
0.0804457813501358,
0.044742465019226074,
-0.21341080963611603,
0.13627652823925018,
-0.2202358990907669,
-0.29520025849342346,
-0.11719362437725067,
0.1270843744277954,
-0.051298342645168304,
-0.07082824409008026,
-0.16705916821956635,
-0.19087107479572296
] |
https://github.com/huggingface/datasets/issues/326 | Large dataset in Squad2-format | You can do the tokenization step using `my_tokenized_dataset = my_dataset.map(my_tokenize_function)` that writes the tokenized texts on disk as well. And then `my_tokenized_dataset` will be a memory-mapped dataset too, so you should be fine :) | At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ? | 34 | Large dataset in Squad2-format
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ?
You can do the tokenization step using `my_tokenized_dataset = my_dataset.map(my_tokenize_function)` that writes the tokenized texts on disk as well. And then `my_tokenized_dataset` will be a memory-mapped dataset too, so you should be fine :) | [
-0.0358477346599102,
-0.2477778196334839,
-0.058700088411569595,
0.2463894933462143,
0.27250826358795166,
-0.08004923164844513,
0.03257665038108826,
0.4199475347995758,
-0.12915056943893433,
0.04069620370864868,
-0.2698202133178711,
0.10341149568557739,
-0.2411331683397293,
0.217549666762352,
0.2678767144680023,
-0.0001749880611896515,
0.16604414582252502,
-0.03815445303916931,
0.02057218924164772,
0.10603925585746765,
0.13646864891052246,
-0.09837117791175842,
0.06922610104084015,
-0.09804496169090271,
-0.3837282359600067,
-0.22253873944282532,
-0.21140260994434357,
0.06741978228092194,
-0.38164258003234863,
-0.4354844391345978,
-0.29837867617607117,
0.29290756583213806,
0.2630598247051239,
0.5424136519432068,
-0.00012243830133229494,
-0.21228791773319244,
-0.08220942318439484,
-0.3558514416217804,
-0.33337482810020447,
0.062241747975349426,
-0.019277799874544144,
-0.34544637799263,
-0.11171382665634155,
-0.12661346793174744,
-0.15777581930160522,
-0.278911292552948,
0.12719471752643585,
-0.2555710971355438,
0.806100606918335,
-0.15316641330718994,
0.0214494951069355,
-0.021572697907686234,
-0.04817948117852211,
0.0518004447221756,
0.1918327510356903,
0.32680338621139526,
-0.07281181961297989,
-0.04471052438020706,
0.6106306314468384,
0.29841348528862,
-0.18401193618774414,
0.12004399299621582,
-0.08512049913406372,
-0.14985042810440063,
0.10968783497810364,
-0.16297800838947296,
-0.17040032148361206,
-0.1921742707490921,
-0.02377786487340927,
0.20371690392494202,
0.4221998155117035,
-0.33851537108421326,
-0.18622219562530518,
-0.3305138051509857,
-0.12307064980268478,
0.05087345093488693,
0.0350254587829113,
0.30190184712409973,
0.006020106375217438,
0.3412304222583771,
-0.3143237233161926,
-0.4462246298789978,
-0.32646822929382324,
-0.013106271624565125,
0.17525361478328705,
0.10360798239707947,
-0.12564769387245178,
0.025294337421655655,
-0.19961436092853546,
-0.21402056515216827,
-0.1439000517129898,
-0.13323789834976196,
-0.06552433967590332,
0.18860891461372375,
-0.04636353626847267,
-0.3719005286693573,
-0.2080027163028717,
-0.3558421730995178,
0.7443717122077942,
0.25020965933799744,
0.18252624571323395,
-0.004442580044269562,
0.1786474734544754,
-0.018010146915912628,
0.3476007580757141,
0.07919631898403168,
-0.13441875576972961,
-0.22288236021995544,
0.20562008023262024,
-0.0692041665315628,
0.04417302832007408,
-0.16263052821159363,
-0.296694278717041,
0.3006075918674469,
-0.10875733196735382,
-0.20922976732254028,
0.14976444840431213,
0.12479861080646515,
0.08625044673681259,
0.12205270677804947,
-0.14600250124931335,
0.012511475011706352,
0.16125255823135376,
0.3237176537513733,
-0.060655396431684494,
0.10133389383554459,
-0.15917274355888367,
0.07910636067390442,
0.25103136897087097,
-0.13933107256889343,
0.020304111763834953,
-0.08259989321231842,
-0.07558796554803848,
0.28262683749198914,
0.16921037435531616,
0.19163839519023895,
0.10673965513706207,
-0.09486672282218933,
0.35119903087615967,
-0.3164993226528168,
0.19821441173553467,
-0.04336689040064812,
0.11725766956806183,
-0.05359986051917076,
0.1517842710018158,
0.17542287707328796,
-0.21614275872707367,
-0.06825894117355347,
-0.2824201285839081,
0.014246571809053421,
-0.21112918853759766,
-0.31643593311309814,
-0.048019371926784515,
-0.013239271007478237,
-0.2957732677459717,
0.23947662115097046,
-0.19905373454093933,
0.35871994495391846,
0.0694446712732315,
0.00112253800034523,
-0.06136301904916763,
0.3853592276573181,
-0.20453347265720367,
-0.25238722562789917,
0.11572419852018356,
0.42347252368927,
-0.165143683552742,
-0.07550699263811111,
0.6700642108917236,
0.0387730710208416,
-0.25693678855895996,
0.45420536398887634,
0.07994891703128815,
0.1556767225265503,
0.02220013551414013,
0.13338498771190643,
0.18893960118293762,
-0.5267190933227539,
-0.4063303470611572,
0.4948355555534363,
-0.19215303659439087,
-0.26089638471603394,
0.39261069893836975,
-0.02736128494143486,
0.7847687005996704,
-0.2248367816209793,
0.09839065372943878,
0.4408179521560669,
0.02351713366806507,
0.304536372423172,
-0.34605592489242554,
-0.3247428834438324,
-0.13074591755867004,
0.2371601015329361,
-0.24091841280460358,
-0.27855971455574036,
-0.19928565621376038,
0.3613532483577728,
0.09795971214771271,
0.005987986922264099,
0.35587894916534424,
-0.07282958179712296,
0.44502586126327515,
0.0458201989531517,
-0.10088402777910233,
-0.034379828721284866,
-0.6144983172416687,
-0.186287522315979,
-0.053327012807130814,
-0.18962621688842773,
0.021922029554843903,
-0.44899892807006836,
-0.20400673151016235,
-0.05484646558761597,
-0.06501069664955139,
-0.09965230524539948,
-0.01078537292778492,
-0.08675508201122284,
0.18081983923912048,
0.06460599601268768,
-0.4297640025615692,
0.09582050889730453,
0.06795477867126465,
0.12197467684745789,
0.10805492103099823,
0.07070896774530411,
0.10286908596754074,
-0.008980526588857174,
0.198380708694458,
0.13548429310321808,
0.03381370007991791,
-0.2850421071052551,
0.28651854395866394,
0.19330137968063354,
-0.12255294620990753,
0.03606012836098671,
0.032334715127944946,
0.19924065470695496,
0.3765421509742737,
0.23874196410179138,
0.3395574390888214,
-0.05287528410553932,
-0.10348618030548096,
-0.2263316512107849,
-0.46603772044181824,
0.33218106627464294,
-0.1722448170185089,
0.15169072151184082,
-0.1176438108086586,
-0.17087407410144806,
0.3835429847240448,
0.060418400913476944,
-0.18539410829544067,
0.011660456657409668,
-0.11721086502075195,
0.12021175026893616,
0.35834184288978577,
0.15116937458515167,
-0.08373034745454788,
0.15341944992542267,
0.41694745421409607,
-0.1880871057510376,
0.15793144702911377,
0.09226921200752258,
0.019320882856845856,
-0.20573371648788452,
0.03390451893210411,
-0.3745424151420593,
0.11131051182746887,
0.20452700555324554,
-0.11653120815753937,
-0.03203292191028595,
0.43542709946632385,
-0.09896150976419449,
-0.021114803850650787,
0.009821482002735138,
0.055069126188755035,
0.2727504372596741,
0.3929632604122162,
-0.12957067787647247,
0.028975464403629303,
-0.03258982673287392,
0.20213648676872253,
0.008692149072885513,
-0.12814155220985413,
-0.04608666151762009,
0.08878107368946075,
0.17700499296188354,
0.0038029970601201057,
0.22650659084320068,
-0.1485997438430786,
0.19472636282444,
0.3439483046531677,
0.15373151004314423,
0.058566007763147354,
0.12893514335155487,
0.3415553867816925,
0.7686238884925842,
0.03097415156662464,
-0.304943323135376,
0.04934851825237274,
-0.23189756274223328,
0.3245335519313812,
-0.07666096091270447,
0.4310399889945984,
-0.3617478013038635,
0.2851548492908478,
0.009745253250002861,
-0.0011522341519594193,
-0.2504863440990448,
-0.14963078498840332,
0.24774402379989624,
0.017736321315169334,
0.1506182998418808,
-0.18476548790931702,
0.24072429537773132,
-0.32532578706741333,
-0.026481881737709045,
0.1529541164636612,
0.055700041353702545,
-0.2686524987220764,
-0.15092091262340546,
-0.05273871123790741,
-0.13775423169136047,
0.08863754570484161,
-0.12510061264038086,
-0.2744235694408417,
-0.33079925179481506,
0.516751766204834,
0.054353754967451096,
0.0817129835486412,
-0.36969584226608276,
0.05088867247104645,
-0.08416196703910828,
-0.4887426793575287,
-0.059862688183784485,
-0.18915054202079773,
-0.6689903736114502,
0.22674383223056793,
-0.200496107339859,
-0.1961241513490677,
-0.26400360465049744,
0.12124486267566681,
-0.02892683818936348,
0.07227122783660889,
-0.2839435338973999,
-0.21361544728279114,
0.15477178990840912,
0.07935017347335815,
-0.07855445146560669,
0.047909438610076904,
0.3909585773944855,
-0.0872955396771431,
0.07946553081274033,
0.05576451122760773,
-0.0035891328006982803,
0.16727939248085022,
0.12317949533462524,
0.2721032500267029,
-0.024619251489639282,
0.4078182280063629,
0.2914271652698517,
0.8061872124671936,
0.38489189743995667,
0.19597597420215607,
0.08974919468164444,
0.11196235567331314,
0.26584917306900024,
-0.028879545629024506,
-0.007531297393143177,
0.45217961072921753,
0.02775595337152481,
-0.008818894624710083,
0.26929545402526855,
0.3838586211204529,
0.12423497438430786,
-0.0907762199640274,
-0.3080984950065613,
-0.19061905145645142,
-0.2369173914194107,
0.36942386627197266,
0.31656351685523987,
0.10758347064256668,
-0.0840526670217514,
-0.1937543749809265,
-0.15511754155158997,
-0.31985723972320557,
-0.09433616697788239,
0.15965549647808075,
0.3163708746433258,
0.18790410459041595,
-0.6765280961990356,
0.3549466133117676,
-0.40882498025894165,
0.07912765443325043,
0.0022841247264295816,
-0.10830362886190414,
0.0055815912783145905,
-0.022630097344517708,
0.1526869833469391,
-0.14774061739444733,
0.6616030931472778,
0.32292845845222473,
-0.09144562482833862,
-0.2203117460012436,
-0.08611958473920822,
-0.2898353338241577,
0.1937616765499115,
-0.15311498939990997,
0.488457590341568,
0.44001683592796326,
0.5459083318710327,
-0.6200941801071167,
-0.17170201241970062,
-0.1250709444284439,
0.05300366133451462,
-0.2072240114212036,
-0.14153870940208435,
-0.12944364547729492,
-0.18833833932876587,
-0.5278864502906799,
0.1244242787361145,
0.287299782037735,
-0.04254546016454697,
0.35934534668922424,
-0.12780822813510895,
-0.05978347361087799,
0.007527757436037064,
0.07390146702528,
0.22899450361728668,
0.05084052309393883,
0.09897735714912415,
0.11737462878227234,
0.1709454357624054,
0.22391600906848907,
0.16165879368782043,
0.1182684674859047,
0.05300075560808182,
0.041005782783031464,
0.12080517411231995,
0.009725118987262249,
0.5497875213623047,
0.4826786518096924,
0.13555526733398438,
-0.03347855806350708,
-0.49173495173454285,
0.26763856410980225,
-0.4027072489261627,
0.00177756417542696,
0.08909043669700623,
-0.09267658740282059,
-0.39608028531074524,
-0.09109044075012207,
0.3552250564098358,
-0.001662256196141243,
-0.1386164277791977,
0.011143822222948074,
0.21359631419181824,
-0.1599932461977005,
0.44452691078186035,
0.11869247257709503,
1.327431321144104,
-0.4156690835952759,
0.4368339478969574,
0.01712851971387863,
0.1409611999988556,
0.6164479851722717,
-0.8450106382369995,
0.038801923394203186,
-0.3598652482032776,
0.42474108934402466,
0.0297947246581316,
-0.10854873061180115,
-0.09363061934709549,
0.4053989052772522,
-0.32675841450691223,
0.103758305311203,
-0.10900112986564636,
0.5489715337753296,
-0.2766168415546417,
0.6767647862434387,
-0.13599582016468048,
-0.39000844955444336,
-0.5071849226951599,
0.01005655899643898,
-0.2479696422815323,
-0.26522141695022583,
-0.0769326463341713,
-0.10788024961948395,
-0.07732041925191879,
0.03634628653526306,
-0.0582713708281517,
-0.2953859567642212,
-0.17627666890621185,
0.15645861625671387,
0.18030789494514465,
-0.29397886991500854,
0.19628828763961792,
0.15518595278263092,
0.07040654867887497,
0.35570600628852844,
-0.0940307229757309,
0.11655527353286743,
-0.30906787514686584,
-0.17902423441410065,
0.02900032140314579,
-0.04756694287061691,
0.13236142694950104,
-0.05665329843759537,
-0.20801465213298798,
0.06459497660398483,
0.23626427352428436,
-0.07117363065481186,
-0.4781252443790436,
0.07094559818506241,
0.3397398591041565,
-0.5559612512588501,
-0.2173311561346054,
-0.04620656371116638,
-0.204686239361763,
0.05424586310982704,
-0.029626090079545975,
0.1538575291633606,
-0.0953054204583168,
0.23202252388000488,
0.5043821334838867,
-0.05778544396162033,
-0.006232831627130508,
0.2101413607597351,
-0.13619044423103333,
-0.30360928177833557,
0.24249179661273956,
0.014158066362142563,
-0.15718978643417358,
-0.15430399775505066,
0.6779860258102417,
-0.00442341435700655,
-0.09612679481506348,
0.06945382803678513,
-0.015971235930919647,
-0.32589423656463623,
-0.40360724925994873,
-0.11014217138290405,
0.3476108908653259,
-0.05623976141214371,
0.26853299140930176,
-0.22509615123271942,
-0.44990822672843933,
0.3364260196685791,
0.09501032531261444,
-0.04454990103840828,
0.17584645748138428,
0.08669498562812805,
-0.18577280640602112,
0.3449889123439789,
-0.18880745768547058,
0.18348492681980133,
-0.05589014291763306,
0.11683483421802521,
-0.0679822713136673,
-0.20872896909713745,
0.04159221798181534,
-0.12105973064899445,
-0.09290502965450287,
0.06250228732824326,
-0.2411753237247467,
-0.09486699104309082,
-0.15574952960014343,
0.24169065058231354,
0.1395374834537506,
-0.05947749316692352,
-0.13668599724769592,
-0.26493215560913086,
-0.12264005839824677,
-0.13765054941177368,
0.22602367401123047,
0.2327338457107544,
0.288291871547699,
-0.3781513273715973,
-0.0213639996945858,
-0.18970739841461182,
-0.012264667078852654,
0.1488155722618103,
0.2742518186569214,
0.33082425594329834,
0.12997204065322876,
0.10343534499406815,
0.04520662873983383,
-0.16676108539104462,
0.02023692987859249,
0.5075783729553223,
0.755401611328125,
0.08782877027988434,
0.25766944885253906,
-0.06098703294992447,
0.0023054443299770355,
0.187306210398674,
0.019498635083436966,
0.30327850580215454,
-0.2602249085903168,
0.11390584707260132,
0.17391633987426758,
0.057910338044166565,
0.019014328718185425,
0.06318937242031097,
0.3593914806842804,
-0.03940951079130173,
-0.08871149271726608,
0.31820353865623474,
0.05470984801650047,
-0.0583626925945282,
-0.18325839936733246,
0.11590253561735153,
0.7018389105796814,
0.19884155690670013,
-0.28892552852630615,
-0.23577231168746948,
-0.1047811508178711,
-0.16456176340579987,
0.37348631024360657,
0.2908746600151062,
0.29327839612960815,
0.10420852899551392,
-0.09196982532739639,
0.27338331937789917,
-0.0017060711979866028,
0.09823055565357208,
0.2374652624130249,
0.08662495017051697,
-0.22616125643253326,
0.36728334426879883,
0.36616742610931396,
-0.0586356595158577,
-0.11505155265331268,
0.7066916823387146,
0.29833999276161194,
-0.19592760503292084,
-0.06576167792081833,
0.26649656891822815,
-0.026134338229894638,
-0.1698417216539383,
-0.21388179063796997,
-0.22866427898406982,
-0.15454816818237305,
0.14487601816654205,
-0.23939695954322815,
-0.47005510330200195,
0.08612629026174545,
0.2842114567756653,
0.3571471571922302,
-0.07513628900051117,
0.33926647901535034,
0.17759191989898682,
0.2466922402381897,
-0.25103849172592163,
0.3707907199859619,
0.21500571072101593,
0.1839132308959961,
0.1710391342639923,
0.15256081521511078,
0.20481006801128387,
0.010061174631118774,
-0.29005560278892517,
0.38808533549308777,
-0.49036696553230286,
0.02337932027876377,
-0.02588183805346489,
0.15211902558803558,
0.1927022635936737,
-0.2843948006629944,
0.10543480515480042,
-0.049968279898166656,
-0.03370495140552521,
-0.25277888774871826,
0.27083101868629456,
-0.43843162059783936,
0.050517093390226364,
-0.2957766056060791,
-0.21738892793655396,
-0.23270249366760254,
-0.07324394583702087,
-0.13006475567817688,
-0.47578859329223633,
-0.06525380909442902,
0.17698167264461517,
-0.1273908019065857,
0.31052708625793457,
-0.046153463423252106,
0.0060548968613147736,
-0.07350648939609528,
0.22832821309566498,
-0.021361399441957474,
-0.1428971290588379,
-0.10406673699617386,
-0.1637129783630371,
-0.22872158885002136,
0.12676817178726196,
-0.17892472445964813,
0.11972017586231232,
-0.27434828877449036,
0.4088408350944519,
0.14073224365711212,
0.5077559351921082,
-0.35821425914764404,
0.2111842930316925,
-0.4199115037918091,
-0.11951050162315369,
-0.432771772146225,
0.16431045532226562,
0.021951645612716675,
0.5623586177825928,
0.22806966304779053,
-0.1457141488790512,
0.20831242203712463,
0.11271834373474121,
-0.1706877052783966,
-0.16045553982257843,
0.17790193855762482,
-0.37985920906066895,
-0.4262809157371521,
0.10127970576286316,
0.10236270725727081,
0.1308807134628296,
0.025315072387456894,
-0.16242392361164093,
-0.08464978635311127,
0.0042994096875190735,
-0.08825474232435226,
0.1528502106666565,
0.30822616815567017,
0.0007685236632823944,
-0.3237612247467041,
-0.33932143449783325,
0.022849829867482185,
0.09244725108146667,
-0.2554956078529358,
-0.23947402834892273,
-0.20164911448955536,
-0.22319412231445312,
-0.13140960037708282,
0.1888437122106552,
-0.13892026245594025,
0.3724316954612732,
-0.3437933027744293,
0.08275716006755829,
-0.251828134059906,
-0.11339949071407318,
0.46299150586128235,
-0.21207408607006073,
-0.21369503438472748,
0.10795485228300095,
0.1733543574810028,
0.25907671451568604,
-0.01263510249555111,
-0.4606669545173645,
0.2509459853172302,
0.1250089704990387,
0.034883931279182434,
-0.25398942828178406,
0.1203564703464508,
-0.1843297928571701,
-0.30703845620155334,
-0.13785775005817413,
0.19339491426944733,
-0.016840923577547073,
-0.10576300323009491,
-0.20729102194309235,
-0.17472220957279205
] |
https://github.com/huggingface/datasets/issues/326 | Large dataset in Squad2-format | In your training loop, loading the tokenized texts is going to be fast and pretty much negligible compared to a forward pass. You shouldn't expect any slow down. | At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ? | 28 | Large dataset in Squad2-format
At the moment we are building an large question answering dataset and think about sharing it with the huggingface community.
Caused the computing power we splitted it into multiple tiles, but they are all in the same format.
Right now the most important facts about are this:
- Contexts: 1.047.671
- questions: 1.677.732
- Answers: 6.742.406
- unanswerable: 377.398
It is already cleaned
<pre><code>
train_data = [
{
'context': "this is the context",
'qas': [
{
'id': "00002",
'is_impossible': False,
'question': "whats is this",
'answers': [
{
'text': "answer",
'answer_start': 0
}
]
},
{
'id': "00003",
'is_impossible': False,
'question': "question2",
'answers': [
{
'text': "answer2",
'answer_start': 1
}
]
}
]
}
]
</code></pre>
Cause it is growing every day we are thinking about an structure like this:
We host an Json file, containing all the download links and the script can load it dynamically.
At the moment it is around ~20GB
Any advice how to handle this, or an ready to use template ?
In your training loop, loading the tokenized texts is going to be fast and pretty much negligible compared to a forward pass. You shouldn't expect any slow down. | [
-0.09984703361988068,
-0.34005028009414673,
-0.07225461304187775,
0.2740526795387268,
0.23301373422145844,
-0.13412001729011536,
0.05346556752920151,
0.4866880774497986,
-0.08115553855895996,
0.03897899389266968,
-0.2371426671743393,
0.07050979882478714,
-0.256648987531662,
0.3095560371875763,
0.2704542279243469,
-0.07454004883766174,
0.14123478531837463,
-0.032049521803855896,
0.014896009117364883,
0.029936276376247406,
0.1451999843120575,
-0.13392210006713867,
0.026951290667057037,
-0.03433392941951752,
-0.3312622308731079,
-0.14784091711044312,
-0.16549989581108093,
0.14868637919425964,
-0.30857011675834656,
-0.4827933609485626,
-0.3069815933704376,
0.28741714358329773,
0.27539563179016113,
0.4879114329814911,
-0.00012323360715527087,
-0.13718219101428986,
-0.027238093316555023,
-0.37510183453559875,
-0.39146119356155396,
0.06229490786790848,
0.049661122262477875,
-0.28828859329223633,
-0.06492496281862259,
-0.0946056917309761,
-0.1764814853668213,
-0.2693072259426117,
0.11243721842765808,
-0.17655399441719055,
0.9333479404449463,
-0.0912947878241539,
-0.0013209879398345947,
-0.018595663830637932,
-0.1706780344247818,
0.03429294005036354,
0.2240024209022522,
0.16998669505119324,
-0.03162778541445732,
0.00940685160458088,
0.6531951427459717,
0.3252065181732178,
-0.2057889997959137,
0.16274699568748474,
0.0076421406120061874,
-0.16223911941051483,
0.09851956367492676,
-0.15895356237888336,
-0.0159672349691391,
-0.15286535024642944,
-0.09000612050294876,
0.24892544746398926,
0.359722375869751,
-0.2345617711544037,
-0.242704376578331,
-0.38812872767448425,
-0.031607888638973236,
0.008495816960930824,
0.08476719260215759,
0.25785690546035767,
-0.030319176614284515,
0.4028697907924652,
-0.34504202008247375,
-0.4935601055622101,
-0.3452894389629364,
-0.002527371048927307,
0.13287600874900818,
0.002326957881450653,
-0.08205905556678772,
-0.019571468234062195,
-0.14425276219844818,
-0.1430077701807022,
-0.031288888305425644,
-0.1512056142091751,
0.0573587603867054,
0.17605939507484436,
0.00767633318901062,
-0.3633483648300171,
-0.183255136013031,
-0.31501588225364685,
0.612809419631958,
0.2020137459039688,
0.16590023040771484,
0.0921720415353775,
0.19304941594600677,
-0.07603300362825394,
0.30417492985725403,
0.0039578769356012344,
-0.17411640286445618,
-0.23578719794750214,
0.1530197262763977,
0.003296643029898405,
-0.04085059463977814,
-0.09108277410268784,
-0.41173025965690613,
0.2907010018825531,
-0.2795986235141754,
-0.2131229043006897,
0.039832934737205505,
0.10762611031532288,
0.02855350263416767,
0.12417170405387878,
-0.1663438081741333,
-0.034313980489969254,
0.19780896604061127,
0.33676669001579285,
-0.1896691918373108,
0.20099875330924988,
-0.052340030670166016,
0.05500046908855438,
0.1931457221508026,
-0.21825450658798218,
0.024584492668509483,
-0.06779681146144867,
-0.16781824827194214,
0.3149711489677429,
0.1374834179878235,
0.09734451770782471,
0.10680665820837021,
-0.0808865875005722,
0.34955739974975586,
-0.2923625707626343,
0.09445930272340775,
0.06065073981881142,
0.05203775316476822,
-0.10302293300628662,
0.08150959014892578,
0.0854254961013794,
-0.2245240956544876,
-0.06465740501880646,
-0.22713175415992737,
0.07246360927820206,
-0.32231077551841736,
-0.31373482942581177,
0.07089827209711075,
-0.02438836544752121,
-0.23724079132080078,
0.26696592569351196,
-0.14643582701683044,
0.4468386173248291,
-0.06674308329820633,
-0.000022631138563156128,
-0.058649010956287384,
0.39509373903274536,
-0.25688955187797546,
-0.1637609452009201,
0.14269830286502838,
0.41706907749176025,
-0.20854604244232178,
-0.16863630712032318,
0.76753169298172,
0.11900566518306732,
-0.28289052844047546,
0.4321821331977844,
-0.04072495922446251,
0.1763848066329956,
0.057594239711761475,
0.028794676065444946,
0.2927308678627014,
-0.6150717735290527,
-0.3437722623348236,
0.5754372477531433,
-0.23380319774150848,
-0.2194797843694687,
0.42518484592437744,
-0.018134262412786484,
0.7501612901687622,
-0.2715395987033844,
0.1670273095369339,
0.5265718698501587,
0.027557170018553734,
0.2613641619682312,
-0.34285983443260193,
-0.3132779598236084,
-0.1130174845457077,
0.3522656261920929,
-0.2507217824459076,
-0.20152458548545837,
-0.2499050796031952,
0.3206178843975067,
0.12772732973098755,
-0.03994525596499443,
0.23565523326396942,
-0.055204495787620544,
0.1949426680803299,
0.10721638798713684,
-0.12611375749111176,
0.06867606937885284,
-0.6354444026947021,
-0.180017352104187,
-0.035305749624967575,
-0.25045397877693176,
0.0739322155714035,
-0.4319308400154114,
-0.2057419717311859,
-0.052476078271865845,
-0.08260475099086761,
0.009419281035661697,
-0.07343839854001999,
-0.1099153608083725,
0.1536724716424942,
0.08927524089813232,
-0.4430942237377167,
0.15765410661697388,
-0.03170323371887207,
0.13503484427928925,
0.10336798429489136,
0.09330389648675919,
0.19401267170906067,
0.016799453645944595,
0.22265851497650146,
0.17540404200553894,
0.019664138555526733,
-0.30612632632255554,
0.31641727685928345,
0.23100033402442932,
-0.18039481341838837,
0.10782046616077423,
0.02862856164574623,
0.12240330874919891,
0.38700172305107117,
0.29144516587257385,
0.27574461698532104,
-0.020401347428560257,
-0.08907095342874527,
-0.20147043466567993,
-0.4354252517223358,
0.46959125995635986,
-0.1399252712726593,
0.1029195636510849,
-0.04699454829096794,
-0.19222652912139893,
0.247077077627182,
0.027965452522039413,
-0.3278742730617523,
0.07854785025119781,
-0.04113166406750679,
0.101035937666893,
0.3779507875442505,
0.18839852511882782,
-0.2185819447040558,
0.10351121425628662,
0.5042099952697754,
-0.24995101988315582,
0.0631486102938652,
0.14562928676605225,
0.0739469826221466,
-0.1624068021774292,
-0.0654815062880516,
-0.36915528774261475,
0.10349993407726288,
0.1509121209383011,
-0.11329784989356995,
0.03650089353322983,
0.3595152795314789,
-0.14148928225040436,
-0.02644035965204239,
0.040050603449344635,
0.15765762329101562,
0.23075291514396667,
0.336264044046402,
-0.15352752804756165,
-0.012593382969498634,
-0.04305693507194519,
0.17688313126564026,
-0.020825428888201714,
-0.1473270058631897,
0.07031247764825821,
0.10817313194274902,
0.22918212413787842,
-0.10802192240953445,
0.09239859879016876,
-0.040777821093797684,
0.22098945081233978,
0.3710327744483948,
0.12209711968898773,
0.04942856356501579,
0.12328439950942993,
0.3574233949184418,
0.7777595520019531,
0.07407870143651962,
-0.2954409718513489,
0.03453053534030914,
-0.2509978711605072,
0.24996984004974365,
-0.109903484582901,
0.4066914916038513,
-0.39238736033439636,
0.20882613956928253,
-0.10023750364780426,
-0.07047326117753983,
-0.08810191601514816,
-0.10809478163719177,
0.23575326800346375,
-0.012824647128582,
0.040228888392448425,
-0.21339884400367737,
0.2169346809387207,
-0.34343624114990234,
-0.07468529045581818,
0.15135270357131958,
-0.009462684392929077,
-0.2644818127155304,
-0.14705032110214233,
-0.00220631156116724,
-0.0863676443696022,
0.08885793387889862,
-0.29688960313796997,
-0.2773439288139343,
-0.29858529567718506,
0.49280083179473877,
0.07546049356460571,
0.06409049779176712,
-0.3779052495956421,
0.08156710118055344,
-0.015370819717645645,
-0.4000917375087738,
-0.06912381201982498,
-0.1580907553434372,
-0.6986130475997925,
0.22225026786327362,
-0.16571274399757385,
-0.22890974581241608,
-0.26810216903686523,
0.0822322741150856,
-0.05887589231133461,
0.0815768614411354,
-0.3671652674674988,
-0.2016129046678543,
0.21880267560482025,
0.032171111553907394,
-0.16012677550315857,
0.037633392959833145,
0.32662612199783325,
-0.11087878048419952,
0.09103826433420181,
0.05656595528125763,
0.07888542115688324,
0.19233709573745728,
0.04374631494283676,
0.21036647260189056,
-0.04555647820234299,
0.5006763935089111,
0.2444780468940735,
0.8879324197769165,
0.4185717701911926,
0.16327355802059174,
-0.03563743084669113,
0.06545471400022507,
0.16410255432128906,
-0.0016242265701293945,
0.07146511226892471,
0.4287314713001251,
-0.027768835425376892,
-0.021746955811977386,
0.28388601541519165,
0.3437897264957428,
0.020833218470215797,
-0.21053603291511536,
-0.22432741522789001,
-0.16638246178627014,
-0.2680468261241913,
0.3488022983074188,
0.30160248279571533,
0.09693662077188492,
-0.05361884832382202,
-0.1421077400445938,
-0.14446470141410828,
-0.248581200838089,
-0.04181260988116264,
0.08933649212121964,
0.3514484763145447,
0.12497186660766602,
-0.6669872403144836,
0.2719276547431946,
-0.37509220838546753,
0.0028048232197761536,
0.10758266597986221,
-0.10160396248102188,
0.05910040810704231,
-0.06268612295389175,
0.19749422371387482,
-0.1959415227174759,
0.6504685878753662,
0.3883800506591797,
-0.0828792005777359,
-0.25344473123550415,
-0.14870399236679077,
-0.30814263224601746,
0.14873354136943817,
-0.18080087006092072,
0.4100213348865509,
0.4926884174346924,
0.46202942728996277,
-0.5409823656082153,
-0.27080896496772766,
-0.02901097759604454,
-0.008757698349654675,
-0.16615906357765198,
-0.09592375159263611,
-0.1718374639749527,
-0.197862446308136,
-0.5452156662940979,
0.18182656168937683,
0.3202815055847168,
-0.008539902046322823,
0.28295543789863586,
-0.13446034491062164,
0.056700482964515686,
0.08500903099775314,
0.1073680892586708,
0.18728333711624146,
0.018847867846488953,
0.17818166315555573,
0.08953733742237091,
0.2845391035079956,
0.2857455909252167,
0.0903414785861969,
0.181228369474411,
0.10716082155704498,
0.015268035233020782,
0.10321790724992752,
0.04954838752746582,
0.597490131855011,
0.6548062562942505,
0.15365566313266754,
-0.004498876631259918,
-0.480695515871048,
0.2829880118370056,
-0.37641003727912903,
0.027770383283495903,
0.13942848145961761,
-0.09483993798494339,
-0.33977210521698,
-0.16174854338169098,
0.4260534942150116,
0.005219839513301849,
-0.1099756509065628,
-0.0014936327934265137,
0.10725663602352142,
-0.1306721270084381,
0.4067912697792053,
0.030671771615743637,
1.3512601852416992,
-0.35638195276260376,
0.4912470877170563,
0.1727314591407776,
0.2168499082326889,
0.5118818283081055,
-0.8861691951751709,
0.09633053094148636,
-0.3162590563297272,
0.38760697841644287,
-0.030438216403126717,
-0.1310201734304428,
-0.10443773120641708,
0.38766127824783325,
-0.29806262254714966,
0.10572684556245804,
-0.04871796816587448,
0.5162261128425598,
-0.2545679807662964,
0.6119441986083984,
-0.05323122441768646,
-0.3716336488723755,
-0.6192554235458374,
-0.04156304895877838,
-0.1461673527956009,
-0.29773131012916565,
-0.055689968168735504,
-0.15091700851917267,
-0.08025960624217987,
0.046485044062137604,
0.056928738951683044,
-0.23242270946502686,
-0.1602410078048706,
0.11064619570970535,
0.3232054114341736,
-0.3037290871143341,
0.22903570532798767,
0.2459355890750885,
0.05306749790906906,
0.22258922457695007,
-0.08275040984153748,
0.20050030946731567,
-0.42257755994796753,
-0.14203809201717377,
0.048864081501960754,
-0.03426314517855644,
0.2505089342594147,
-0.08369193971157074,
-0.21085715293884277,
0.21703535318374634,
0.17198976874351501,
-0.08622557669878006,
-0.4488440454006195,
0.05936707928776741,
0.3781782388687134,
-0.5011560916900635,
-0.2208091914653778,
0.021180041134357452,
-0.19539523124694824,
0.04593629017472267,
-0.05106571689248085,
0.13415610790252686,
-0.20420803129673004,
0.21374362707138062,
0.5658398270606995,
-0.15699100494384766,
0.03374674543738365,
0.29415658116340637,
-0.12105386704206467,
-0.3052663803100586,
0.3507452607154846,
0.07445380091667175,
-0.1224074736237526,
-0.13037976622581482,
0.6699302196502686,
0.08755283057689667,
-0.1203657016158104,
0.11517234891653061,
0.02448863536119461,
-0.31502285599708557,
-0.38780850172042847,
0.035533882677555084,
0.2949032187461853,
-0.06810358911752701,
0.2688259482383728,
-0.15327665209770203,
-0.3670750856399536,
0.3225948214530945,
0.09868259727954865,
-0.08118583261966705,
0.17343351244926453,
0.1403612643480301,
-0.1298322081565857,
0.2685966491699219,
-0.16803275048732758,
0.20726069808006287,
-0.06269201636314392,
0.15554797649383545,
-0.08265490084886551,
-0.21203672885894775,
0.07560110837221146,
-0.04201584309339523,
-0.11846610903739929,
0.07138985395431519,
-0.283852219581604,
-0.07395365834236145,
-0.11438369750976562,
0.243003249168396,
0.08622795343399048,
-0.028597040101885796,
-0.1452966332435608,
-0.26203668117523193,
-0.1635836809873581,
-0.04324666038155556,
0.24052509665489197,
0.14363285899162292,
0.3013538718223572,
-0.3893832862377167,
-0.12320668995380402,
-0.16677382588386536,
0.018568862229585648,
0.10546997934579849,
0.23727357387542725,
0.390414297580719,
0.09403859078884125,
0.017378944903612137,
-0.027838174253702164,
-0.21034647524356842,
-0.03889957442879677,
0.5302069783210754,
0.7436004877090454,
0.15784868597984314,
0.3064257800579071,
-0.1554282009601593,
0.05373821780085564,
0.1845119446516037,
0.005773380398750305,
0.3656198978424072,
-0.3396022915840149,
0.03933963179588318,
0.19362103939056396,
0.0008062273263931274,
-0.033685244619846344,
0.040430065244436264,
0.3611765205860138,
-0.06619365513324738,
-0.07200470566749573,
0.34350648522377014,
0.05111948028206825,
-0.04489049315452576,
-0.1086423248052597,
0.12117325514554977,
0.485103577375412,
0.19977867603302002,
-0.27743494510650635,
-0.13472622632980347,
-0.06252114474773407,
-0.14071497321128845,
0.29621779918670654,
0.30510854721069336,
0.19897936284542084,
0.1717751920223236,
-0.09574922174215317,
0.18777242302894592,
-0.052870847284793854,
0.1498085856437683,
0.066477932035923,
0.04341967776417732,
-0.24574260413646698,
0.37803417444229126,
0.2527332305908203,
-0.06728547066450119,
-0.12093405425548553,
0.7141611576080322,
0.36400845646858215,
-0.30193886160850525,
-0.09252675622701645,
0.26970767974853516,
-0.013586852699518204,
-0.2406313568353653,
-0.2118643820285797,
-0.18765677511692047,
-0.21003477275371552,
0.2540381848812103,
-0.24796921014785767,
-0.3314098119735718,
0.13381177186965942,
0.34038281440734863,
0.44422590732574463,
-0.08924522250890732,
0.23577797412872314,
0.10619242489337921,
0.327431857585907,
-0.23052993416786194,
0.39296868443489075,
0.13386905193328857,
0.2263185679912567,
0.2677941620349884,
0.04031681269407272,
0.043262459337711334,
-0.010575700551271439,
-0.31404611468315125,
0.3602122366428375,
-0.4900685250759125,
0.0539308562874794,
0.08047903329133987,
0.15628276765346527,
0.31147560477256775,
-0.2725025415420532,
0.16544799506664276,
-0.07213883846998215,
-0.042607154697179794,
-0.09975151717662811,
0.17552104592323303,
-0.44029852747917175,
-0.09181927144527435,
-0.23063337802886963,
-0.1336805373430252,
-0.16299773752689362,
-0.21421967446804047,
-0.14934465289115906,
-0.468365877866745,
-0.0881209447979927,
0.119765505194664,
-0.1382952630519867,
0.24152407050132751,
-0.022576700896024704,
0.009284190833568573,
-0.07798783481121063,
0.3606654107570648,
0.015115577727556229,
0.007102496922016144,
-0.11190313845872879,
-0.174441397190094,
-0.16617287695407867,
0.09791507571935654,
-0.16818970441818237,
0.17385335266590118,
-0.19815750420093536,
0.40404069423675537,
0.18106421828269958,
0.5885440111160278,
-0.3318023681640625,
0.12545272707939148,
-0.38610175251960754,
-0.16237908601760864,
-0.4126792848110199,
0.17040282487869263,
0.053580936044454575,
0.6294954419136047,
0.1562548726797104,
-0.1591612696647644,
0.24562092125415802,
0.04473191499710083,
-0.1992175281047821,
-0.07320620119571686,
0.18638479709625244,
-0.4293964207172394,
-0.40380868315696716,
0.029153335839509964,
-0.014028364792466164,
0.0959748849272728,
0.046886809170246124,
-0.12984171509742737,
-0.11764271557331085,
-0.03176609426736832,
-0.0767429918050766,
0.09949582070112228,
0.3009854257106781,
-0.00413847342133522,
-0.33517786860466003,
-0.2618257701396942,
0.042228687554597855,
0.06298557668924332,
-0.14926892518997192,
-0.1760755330324173,
-0.2143092006444931,
-0.1981465220451355,
-0.1694885790348053,
0.2960014045238495,
-0.07396894693374634,
0.4579183757305145,
-0.3707362115383148,
0.08303196728229523,
-0.20625777542591095,
-0.09769628942012787,
0.5351333022117615,
-0.28975003957748413,
-0.2838284373283386,
0.14460143446922302,
0.17779149115085602,
0.34326687455177307,
0.02177131175994873,
-0.48344600200653076,
0.23821794986724854,
0.05892004445195198,
0.028144432231783867,
-0.35847896337509155,
0.15464389324188232,
-0.15185296535491943,
-0.2857321500778198,
-0.1427767425775528,
0.1686159372329712,
-0.0352783128619194,
-0.10140024125576019,
-0.21210156381130219,
-0.2255220115184784
] |
https://github.com/huggingface/datasets/issues/324 | Error when calculating glue score | The glue metric for cola is a metric for classification. It expects label ids as integers as inputs. | I was trying glue score along with other metrics here. But glue gives me this error;
```
import nlp
glue_metric = nlp.load_metric('glue',name="cola")
glue_score = glue_metric.compute(predictions, references)
```
```
---------------------------------------------------------------------------
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-b9210a524504> in <module>()
----> 1 glue_score = glue_metric.compute(predictions, references)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
191 """
192 if predictions is not None:
--> 193 self.add_batch(predictions=predictions, references=references)
194 self.finalize(timeout=timeout)
195
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs)
207 if self.writer is None:
208 self._init_writer()
--> 209 self.writer.write_batch(batch)
210
211 def add(self, prediction=None, reference=None, **kwargs):
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
155 if self.pa_writer is None:
156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples))
--> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
158 if writer_batch_size is None:
159 writer_batch_size = self.writer_batch_size
/usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
TypeError: an integer is required (got type str)
```
I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you. | 18 | Error when calculating glue score
I was trying glue score along with other metrics here. But glue gives me this error;
```
import nlp
glue_metric = nlp.load_metric('glue',name="cola")
glue_score = glue_metric.compute(predictions, references)
```
```
---------------------------------------------------------------------------
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-b9210a524504> in <module>()
----> 1 glue_score = glue_metric.compute(predictions, references)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
191 """
192 if predictions is not None:
--> 193 self.add_batch(predictions=predictions, references=references)
194 self.finalize(timeout=timeout)
195
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs)
207 if self.writer is None:
208 self._init_writer()
--> 209 self.writer.write_batch(batch)
210
211 def add(self, prediction=None, reference=None, **kwargs):
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
155 if self.pa_writer is None:
156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples))
--> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
158 if writer_batch_size is None:
159 writer_batch_size = self.writer_batch_size
/usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
TypeError: an integer is required (got type str)
```
I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you.
The glue metric for cola is a metric for classification. It expects label ids as integers as inputs. | [
-0.1694539338350296,
-0.23958119750022888,
-0.030473431572318077,
0.16115933656692505,
0.23673973977565765,
-0.04916532710194588,
0.1073007807135582,
0.3623582124710083,
0.43302735686302185,
0.05162845551967621,
-0.3168235719203949,
0.2763478755950928,
-0.07980749756097794,
-0.024109557271003723,
0.10261804610490799,
-0.28314918279647827,
-0.1162882074713707,
0.16044947504997253,
-0.22025007009506226,
0.3102561831474304,
-0.3245115578174591,
0.2713671922683716,
-0.18585637211799622,
0.31978750228881836,
-0.17670689523220062,
-0.09038814157247543,
0.02048393152654171,
-0.19617098569869995,
-0.32637181878089905,
-0.36293548345565796,
0.24816299974918365,
-0.11683422327041626,
0.021585971117019653,
0.17664223909378052,
-0.00011026334686903283,
-0.012056130915880203,
0.45895326137542725,
0.0023094024509191513,
0.15884645283222198,
-0.14216341078281403,
-0.3889807462692261,
-0.08348128944635391,
0.044414252042770386,
-0.23615065217018127,
0.13466545939445496,
0.22752021253108978,
0.020613979548215866,
-0.18260835111141205,
0.2193329930305481,
0.2709800601005554,
0.2774612009525299,
0.38711515069007874,
0.312600314617157,
-0.1989935040473938,
0.17249183356761932,
-0.20823253691196442,
0.02658781222999096,
0.8870645761489868,
-0.32721659541130066,
-0.46518808603286743,
-0.0078018903732299805,
0.20694465935230255,
-0.10570721328258514,
0.21800795197486877,
0.2240155041217804,
0.05219597369432449,
0.371700644493103,
-0.32026246190071106,
-0.13264116644859314,
-0.0713139995932579,
-0.21813446283340454,
-0.22854182124137878,
-0.14993122220039368,
0.04165823757648468,
0.04711674153804779,
-0.376310259103775,
0.09723934531211853,
-0.07267797738313675,
0.058160971850156784,
-0.2293190062046051,
-0.054968852549791336,
0.14027614891529083,
-0.11441405117511749,
0.2752953767776489,
0.24009162187576294,
0.3214474320411682,
-0.19815313816070557,
0.29690033197402954,
0.41472724080085754,
0.21544243395328522,
-0.13904178142547607,
0.043545421212911606,
-0.24012655019760132,
0.16533474624156952,
-0.29261061549186707,
-0.04232792928814888,
-0.01045321673154831,
0.19140902161598206,
0.023925740271806717,
-0.23546715080738068,
0.04873013123869896,
-0.20800477266311646,
0.48574960231781006,
0.34279516339302063,
0.06029720976948738,
0.33892449736595154,
0.3534550964832306,
0.15646575391292572,
0.12742532789707184,
0.2417820245027542,
0.0023335888981819153,
-0.16949301958084106,
0.23884378373622894,
-0.38819774985313416,
0.36558055877685547,
0.24139073491096497,
0.1085236668586731,
0.07706011831760406,
-0.42625853419303894,
-0.1771683692932129,
-0.04801519215106964,
-0.004985116887837648,
0.03692108392715454,
0.07186240702867508,
-0.018791712820529938,
0.0006602294743061066,
0.10499057173728943,
0.19069311022758484,
-0.1910693198442459,
0.0570397786796093,
-0.1342855542898178,
0.4053148925304413,
-0.3368164300918579,
0.12151671946048737,
0.15138962864875793,
-0.033292170614004135,
0.20435824990272522,
-0.1073046326637268,
0.1692512333393097,
-0.1872263103723526,
0.02125275321304798,
-0.2450534999370575,
-0.06593256443738937,
0.19544248282909393,
0.04804408922791481,
0.0028146114200353622,
0.32618236541748047,
-0.5611871480941772,
-0.1635349988937378,
-0.2155398726463318,
-0.22833669185638428,
-0.3000667989253998,
-0.14694423973560333,
0.23516951501369476,
-0.17959953844547272,
0.03003840707242489,
-0.40035322308540344,
-0.18054714798927307,
0.23772630095481873,
0.04494840279221535,
0.11268885433673859,
-0.26761019229888916,
-0.2484908103942871,
-0.2921721339225769,
0.20164956152439117,
0.1388748735189438,
-0.08172482252120972,
-0.11474350094795227,
-0.19186337292194366,
-0.10300843417644501,
0.11747580766677856,
0.31447282433509827,
0.1723896712064743,
0.43979188799858093,
-0.2319524884223938,
0.15153203904628754,
0.5892606973648071,
-0.6347136497497559,
-0.23698121309280396,
0.10070811957120895,
0.09687584638595581,
-0.28190892934799194,
-0.06953919678926468,
0.09508933126926422,
0.2874578535556793,
0.07509429007768631,
0.4693038761615753,
0.17752568423748016,
-0.12003986537456512,
-0.191081702709198,
-0.30035921931266785,
0.034559570252895355,
0.08522223681211472,
0.052273210138082504,
0.20452965795993805,
-0.05044309049844742,
0.1096888929605484,
-0.06492187827825546,
-0.1438201665878296,
0.1973370760679245,
0.019450027495622635,
0.0301426462829113,
0.3318207561969757,
-0.23766465485095978,
0.008245252072811127,
-0.5078009366989136,
-0.028753168880939484,
0.07651505619287491,
-0.553921103477478,
0.19852782785892487,
0.09628551453351974,
-0.01630241982638836,
-0.5231426954269409,
0.10505939275026321,
-0.06995183229446411,
-0.03930843994021416,
0.23269131779670715,
-0.2064470648765564,
0.3046915829181671,
0.023180443793535233,
-0.03848184272646904,
0.17104311287403107,
0.07656737416982651,
0.08471505343914032,
-0.0891413539648056,
0.21450282633304596,
-0.2762126922607422,
-0.41487956047058105,
0.13826781511306763,
0.3498583137989044,
0.2727721035480499,
0.03530418500304222,
-0.10926227271556854,
0.49975526332855225,
-0.14241860806941986,
-0.22851677238941193,
0.05572734773159027,
-0.06330759823322296,
-0.007169857621192932,
0.03062935546040535,
-0.018623897805809975,
-0.11324936151504517,
0.19068197906017303,
-0.029352091252803802,
0.32101696729660034,
0.19584596157073975,
0.010319503024220467,
0.2974856197834015,
-0.11806687712669373,
0.32739531993865967,
-0.12253153324127197,
-0.058430641889572144,
-0.15002287924289703,
-0.13411113619804382,
0.41811373829841614,
-0.29730096459388733,
-0.07994002103805542,
-0.18273012340068817,
0.3219170868396759,
-0.23060598969459534,
0.33504271507263184,
-0.04965035617351532,
0.18547669053077698,
-0.02896486222743988,
-0.21909329295158386,
0.10757917910814285,
-0.15371479094028473,
0.12825262546539307,
0.597593367099762,
-0.0049649798311293125,
-0.1247706413269043,
0.02501698024570942,
-0.1926954686641693,
-0.023432470858097076,
0.17540143430233002,
0.06748278439044952,
0.03081974945962429,
0.10812879353761673,
0.16881975531578064,
-0.028177574276924133,
-0.03804923593997955,
0.10205872356891632,
-0.23131851851940155,
0.23119668662548065,
-0.3220551013946533,
-0.017831508070230484,
-0.04514671862125397,
-0.4319610297679901,
-0.16770705580711365,
-0.10991346836090088,
-0.2902883291244507,
-0.6119652986526489,
-0.05723477154970169,
0.051368892192840576,
0.08731815218925476,
0.18926340341567993,
0.32262155413627625,
0.06517910957336426,
0.11167947947978973,
0.09688829630613327,
0.05226709693670273,
-0.22013084590435028,
-0.029467768967151642,
0.05251786485314369,
0.013736126013100147,
0.20372766256332397,
0.4438384771347046,
-0.10368507355451584,
-0.014590609818696976,
-0.1050947830080986,
-0.30873212218284607,
0.017346039414405823,
-0.2842082381248474,
0.6033973097801208,
0.41329285502433777,
-0.12381410598754883,
-0.057888589799404144,
-0.3781414330005646,
0.46584391593933105,
-0.425040602684021,
0.01716252975165844,
0.22456036508083344,
-0.20285822451114655,
-0.045710545033216476,
-0.15687252581119537,
0.053408220410346985,
-0.2870559096336365,
-0.36026206612586975,
0.3244149684906006,
0.13621102273464203,
0.08709853887557983,
0.02471310645341873,
-0.22309763729572296,
0.37812161445617676,
-0.1902918517589569,
-0.19854535162448883,
-0.18983809649944305,
-0.02872060239315033,
0.32483309507369995,
-0.20611174404621124,
-0.34139224886894226,
-0.08863243460655212,
-0.06677505373954773,
0.3206021785736084,
-0.24102865159511566,
-0.24471479654312134,
-0.5733756422996521,
-0.18514244258403778,
0.028615344315767288,
-0.1296883523464203,
0.19288459420204163,
0.04400147125124931,
-0.1671067178249359,
-0.06490891426801682,
-0.0949188843369484,
-0.2339566946029663,
0.16283369064331055,
0.21928176283836365,
0.0926070511341095,
-0.13016852736473083,
0.34217551350593567,
0.08538402616977692,
0.3098375201225281,
0.10360053181648254,
-0.0924222320318222,
0.2702834904193878,
0.043102800846099854,
0.23097725212574005,
0.0065477341413497925,
-0.4910924434661865,
0.1871621161699295,
-0.12123340368270874,
0.32612621784210205,
-0.11696884036064148,
-0.02284678816795349,
-0.05332951247692108,
-0.21609723567962646,
-0.14292968809604645,
-0.12352097779512405,
-0.22178985178470612,
0.07442464679479599,
0.015262002125382423,
0.17424330115318298,
0.059314560145139694,
-0.21705037355422974,
-0.2897798418998718,
-0.2181466817855835,
0.19447587430477142,
0.21567150950431824,
0.010360576212406158,
-0.07123543322086334,
-0.03822827339172363,
-0.2960553765296936,
-0.38884055614471436,
0.4718077778816223,
0.1434943526983261,
0.3303481936454773,
-0.11766114830970764,
0.29984211921691895,
-0.15167146921157837,
0.11472896486520767,
0.2170623540878296,
-0.3560428023338318,
0.07976430654525757,
0.28989139199256897,
0.19626300036907196,
-0.5538415312767029,
-0.13813132047653198,
-0.42757415771484375,
0.3352838456630707,
0.5549225211143494,
0.4441613256931305,
-0.25144222378730774,
0.07072825729846954,
0.4990735948085785,
-0.05778183788061142,
-0.04948611184954643,
-0.44056564569473267,
-0.42764073610305786,
-0.1975729763507843,
-0.1345933973789215,
-0.07351913303136826,
0.14342164993286133,
0.20617210865020752,
0.38736531138420105,
0.07145026326179504,
-0.09281269460916519,
-0.20107105374336243,
0.07173675298690796,
-0.20251992344856262,
0.030900055542588234,
0.03192409873008728,
0.08965656161308289,
-0.26133424043655396,
-0.03284700959920883,
-0.5163635611534119,
-0.11810503900051117,
-0.0492081455886364,
-0.05832447111606598,
0.11622407287359238,
0.006550158374011517,
0.39213311672210693,
-0.10316802561283112,
-0.13361932337284088,
0.2324886918067932,
-0.2945845425128937,
0.40988850593566895,
0.04337438941001892,
0.09180434048175812,
0.34467384219169617,
0.22494421899318695,
-0.11882362514734268,
0.10590127110481262,
0.4642903804779053,
0.23964403569698334,
0.04096055030822754,
0.3867132365703583,
0.2303498089313507,
-0.25474342703819275,
0.21005329489707947,
0.12550969421863556,
0.7316859364509583,
-0.03637418895959854,
-0.20816966891288757,
0.28215786814689636,
-0.19584296643733978,
0.6601783037185669,
0.20184290409088135,
0.2584860920906067,
-0.2552506625652313,
-0.24011729657649994,
0.0362042635679245,
-0.18862755596637726,
0.12075583636760712,
-0.2527749538421631,
-0.4338820278644562,
0.4902593791484833,
0.02165256440639496,
0.12400256097316742,
-0.12253172695636749,
0.1950637251138687,
-0.17122147977352142,
-0.1687162220478058,
-0.037902314215898514,
0.19146104156970978,
-0.3335965871810913,
0.10566960275173187,
-0.01884554885327816,
-0.0623408779501915,
0.12825335562229156,
-0.07512814551591873,
-0.25356847047805786,
-0.1657010018825531,
-0.3714182674884796,
0.1900481879711151,
0.234268456697464,
0.0006986856460571289,
0.06674377620220184,
-0.25643596053123474,
0.21657948195934296,
0.168394073843956,
-0.09867772459983826,
-0.09458431601524353,
-0.010704055428504944,
-0.24693112075328827,
0.14755605161190033,
0.12288928031921387,
-0.10273131728172302,
-0.13885705173015594,
-0.11702392250299454,
0.02869611233472824,
0.09478184580802917,
-0.26034626364707947,
0.23299527168273926,
0.11106784641742706,
0.008934400975704193,
-0.2510274052619934,
-0.2027098536491394,
-0.16642171144485474,
-0.022884979844093323,
-0.07035171240568161,
0.17128689587116241,
0.004672683775424957,
-0.13679131865501404,
0.2804693877696991,
-0.06594167649745941,
-0.16240794956684113,
0.08642332255840302,
0.2396942377090454,
-0.07938455790281296,
-0.019810251891613007,
0.11606097221374512,
-0.1933649480342865,
-0.2555321455001831,
-0.07585784792900085,
-0.15321987867355347,
-0.21829915046691895,
-0.28363707661628723,
0.12346135824918747,
-0.11972717195749283,
-0.028331361711025238,
-0.14018414914608002,
0.11142598092556,
0.4184056520462036,
0.25927016139030457,
0.09696923196315765,
-0.4761911630630493,
-0.1332366019487381,
0.2772354483604431,
-0.01703493669629097,
-0.12397682666778564,
-0.1470867097377777,
0.32217639684677124,
0.15395794808864594,
0.3371107280254364,
-0.3407655358314514,
-0.08616407215595245,
-0.3368881642818451,
0.17275680601596832,
0.5577077865600586,
-0.3882572650909424,
0.03208218142390251,
0.08962948620319366,
0.19255007803440094,
0.24074383080005646,
-0.16846522688865662,
-0.2781487703323364,
-0.04539765417575836,
0.08841469883918762,
-0.008047360926866531,
-0.10946062207221985,
0.12468529492616653,
0.008991166949272156,
-0.19724036753177643,
-0.0705857127904892,
-0.28754863142967224,
-0.1359250694513321,
-0.19104941189289093,
0.062334563583135605,
-0.03994850441813469,
0.19795134663581848,
0.3852124810218811,
0.3219554126262665,
-0.09564289450645447,
0.14554676413536072,
-0.10709437727928162,
0.16375789046287537,
0.08065708726644516,
0.0923643410205841,
-0.14393676817417145,
-0.10458394140005112,
-0.10805882513523102,
-0.0023584961891174316,
0.24761763215065002,
-0.21704773604869843,
-0.2661947011947632,
-0.14193588495254517,
0.376839816570282,
-0.022884540259838104,
-0.03582325950264931,
-0.03517866134643555,
-0.18001225590705872,
0.1641359031200409,
-0.16550126671791077,
0.12046447396278381,
0.2528321444988251,
0.20455501973628998,
0.17597879469394684,
0.18672925233840942,
-0.014842331409454346,
0.0641109049320221,
0.005958154797554016,
0.09657847136259079,
0.34179216623306274,
-0.14811378717422485,
-0.15681160986423492,
-0.31464821100234985,
0.23429478704929352,
-0.03725031390786171,
0.38552209734916687,
-0.19364802539348602,
0.19155603647232056,
-0.1926368623971939,
0.0036958307027816772,
0.15741364657878876,
-0.06524138897657394,
0.003042086958885193,
0.2391289472579956,
0.19758561253547668,
-0.1815175712108612,
0.259529709815979,
0.14666984975337982,
0.10419857501983643,
-0.02008087933063507,
0.5160801410675049,
-0.3852637708187103,
-0.07828041911125183,
0.03594575822353363,
0.15381638705730438,
0.052921272814273834,
0.062344636768102646,
0.004506658762693405,
-0.006683483719825745,
-0.32907840609550476,
-0.15530484914779663,
0.0652155801653862,
0.12203976511955261,
0.3950307369232178,
0.1611405611038208,
0.01919383555650711,
-0.04868832230567932,
-0.21246689558029175,
0.35835888981819153,
0.18005624413490295,
-0.3143038749694824,
0.12214107066392899,
0.12702229619026184,
0.2304646074771881,
-0.2367894947528839,
0.6592807173728943,
0.5281538367271423,
0.31333160400390625,
-0.3758438527584076,
0.12717823684215546,
-0.03409864380955696,
-0.17602016031742096,
0.2069450169801712,
0.18475116789340973,
0.3671351373195648,
0.09719708561897278,
0.26718246936798096,
0.20855790376663208,
-0.26339614391326904,
-0.048593681305646896,
-0.07236568629741669,
-0.01306634396314621,
-0.16856983304023743,
0.45252206921577454,
-0.2508081793785095,
-0.23310646414756775,
-0.153624027967453,
0.057342998683452606,
-0.4240996241569519,
0.1701417863368988,
0.03543967008590698,
-0.022380592301487923,
0.07569708675146103,
-0.28368067741394043,
0.09819263964891434,
-0.023903395980596542,
0.5166298747062683,
0.1721057891845703,
0.544195830821991,
-0.5894021391868591,
-0.22437508404254913,
-0.4315939247608185,
0.042283445596694946,
-0.098061203956604,
-0.05371444672346115,
0.016972731798887253,
0.052221156656742096,
-0.2406841218471527,
0.33615660667419434,
0.17216531932353973,
0.49827784299850464,
-0.11583660542964935,
-0.28244543075561523,
-0.30287373065948486,
-0.05659247562289238,
0.052605003118515015,
-0.4606127440929413,
0.23947489261627197,
-0.2231244146823883,
0.09290394186973572,
-0.10029308497905731,
0.14038336277008057,
-0.008369674906134605,
-0.2390478402376175,
0.27706092596054077,
0.5875073671340942,
0.08792277425527573,
0.2794112265110016,
0.5532602667808533,
-0.017241371795535088,
-0.0034354981034994125,
0.05214866250753403,
-0.3737611472606659,
-0.1366230696439743,
0.049960020929574966,
0.016852304339408875,
0.2484913170337677,
-0.08757210522890091,
-0.08660569787025452,
-0.3632860481739044,
0.5056173205375671,
-0.16242676973342896,
0.016891397535800934,
-0.03264639154076576,
0.07525844126939774,
0.12679898738861084,
0.020819053053855896,
-0.04182281345129013,
0.08289707452058792,
-0.018635228276252747,
0.32711338996887207,
-0.20050156116485596,
-0.28271856904029846,
0.37359732389450073,
-0.47979798913002014,
-0.3367663025856018,
0.09544689208269119,
0.25309744477272034,
0.20063289999961853,
-0.09317932277917862,
-0.6303014755249023,
-0.25101935863494873,
0.3387460708618164,
0.06366892158985138,
-0.18012331426143646,
0.3238253891468048,
-0.15784618258476257,
0.1805454045534134,
0.15823116898536682,
0.038847990334033966,
0.15755227208137512,
-0.3089754581451416,
0.04981185123324394,
-0.22991591691970825
] |
https://github.com/huggingface/datasets/issues/324 | Error when calculating glue score | I want to evaluate a sentence pair whether they are semantically equivalent, so I used MRPC and it gives the same error, does that mean we have to encode the sentences and parse as input?
using BertTokenizer;
```
encoded_reference=tokenizer.encode(reference, add_special_tokens=False)
encoded_prediction=tokenizer.encode(prediction, add_special_tokens=False)
```
`glue_score = glue_metric.compute(encoded_prediction, encoded_reference)`
```
ValueError Traceback (most recent call last)
<ipython-input-9-4c3a3ce7b583> in <module>()
----> 1 glue_score = glue_metric.compute(encoded_prediction, encoded_reference)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
198 predictions = self.data["predictions"]
199 references = self.data["references"]
--> 200 output = self._compute(predictions=predictions, references=references, **metrics_kwargs)
201 return output
202
/usr/local/lib/python3.6/dist-packages/nlp/metrics/glue/27b1bc63e520833054bd0d7a8d0bc7f6aab84cc9eed1b576e98c806f9466d302/glue.py in _compute(self, predictions, references)
101 return pearson_and_spearman(predictions, references)
102 elif self.config_name in ["mrpc", "qqp"]:
--> 103 return acc_and_f1(predictions, references)
104 elif self.config_name in ["sst2", "mnli", "mnli_mismatched", "mnli_matched", "qnli", "rte", "wnli", "hans"]:
105 return {"accuracy": simple_accuracy(predictions, references)}
/usr/local/lib/python3.6/dist-packages/nlp/metrics/glue/27b1bc63e520833054bd0d7a8d0bc7f6aab84cc9eed1b576e98c806f9466d302/glue.py in acc_and_f1(preds, labels)
60 def acc_and_f1(preds, labels):
61 acc = simple_accuracy(preds, labels)
---> 62 f1 = f1_score(y_true=labels, y_pred=preds)
63 return {
64 "accuracy": acc,
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in f1_score(y_true, y_pred, labels, pos_label, average, sample_weight, zero_division)
1097 pos_label=pos_label, average=average,
1098 sample_weight=sample_weight,
-> 1099 zero_division=zero_division)
1100
1101
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in fbeta_score(y_true, y_pred, beta, labels, pos_label, average, sample_weight, zero_division)
1224 warn_for=('f-score',),
1225 sample_weight=sample_weight,
-> 1226 zero_division=zero_division)
1227 return f
1228
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in precision_recall_fscore_support(y_true, y_pred, beta, labels, pos_label, average, warn_for, sample_weight, zero_division)
1482 raise ValueError("beta should be >=0 in the F-beta score")
1483 labels = _check_set_wise_labels(y_true, y_pred, average, labels,
-> 1484 pos_label)
1485
1486 # Calculate tp_sum, pred_sum, true_sum ###
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in _check_set_wise_labels(y_true, y_pred, average, labels, pos_label)
1314 raise ValueError("Target is %s but average='binary'. Please "
1315 "choose another average setting, one of %r."
-> 1316 % (y_type, average_options))
1317 elif pos_label not in (None, 1):
1318 warnings.warn("Note that pos_label (set to %r) is ignored when "
ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted'].
``` | I was trying glue score along with other metrics here. But glue gives me this error;
```
import nlp
glue_metric = nlp.load_metric('glue',name="cola")
glue_score = glue_metric.compute(predictions, references)
```
```
---------------------------------------------------------------------------
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-b9210a524504> in <module>()
----> 1 glue_score = glue_metric.compute(predictions, references)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
191 """
192 if predictions is not None:
--> 193 self.add_batch(predictions=predictions, references=references)
194 self.finalize(timeout=timeout)
195
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs)
207 if self.writer is None:
208 self._init_writer()
--> 209 self.writer.write_batch(batch)
210
211 def add(self, prediction=None, reference=None, **kwargs):
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
155 if self.pa_writer is None:
156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples))
--> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
158 if writer_batch_size is None:
159 writer_batch_size = self.writer_batch_size
/usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
TypeError: an integer is required (got type str)
```
I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you. | 297 | Error when calculating glue score
I was trying glue score along with other metrics here. But glue gives me this error;
```
import nlp
glue_metric = nlp.load_metric('glue',name="cola")
glue_score = glue_metric.compute(predictions, references)
```
```
---------------------------------------------------------------------------
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-b9210a524504> in <module>()
----> 1 glue_score = glue_metric.compute(predictions, references)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
191 """
192 if predictions is not None:
--> 193 self.add_batch(predictions=predictions, references=references)
194 self.finalize(timeout=timeout)
195
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs)
207 if self.writer is None:
208 self._init_writer()
--> 209 self.writer.write_batch(batch)
210
211 def add(self, prediction=None, reference=None, **kwargs):
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
155 if self.pa_writer is None:
156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples))
--> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
158 if writer_batch_size is None:
159 writer_batch_size = self.writer_batch_size
/usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
TypeError: an integer is required (got type str)
```
I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you.
I want to evaluate a sentence pair whether they are semantically equivalent, so I used MRPC and it gives the same error, does that mean we have to encode the sentences and parse as input?
using BertTokenizer;
```
encoded_reference=tokenizer.encode(reference, add_special_tokens=False)
encoded_prediction=tokenizer.encode(prediction, add_special_tokens=False)
```
`glue_score = glue_metric.compute(encoded_prediction, encoded_reference)`
```
ValueError Traceback (most recent call last)
<ipython-input-9-4c3a3ce7b583> in <module>()
----> 1 glue_score = glue_metric.compute(encoded_prediction, encoded_reference)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
198 predictions = self.data["predictions"]
199 references = self.data["references"]
--> 200 output = self._compute(predictions=predictions, references=references, **metrics_kwargs)
201 return output
202
/usr/local/lib/python3.6/dist-packages/nlp/metrics/glue/27b1bc63e520833054bd0d7a8d0bc7f6aab84cc9eed1b576e98c806f9466d302/glue.py in _compute(self, predictions, references)
101 return pearson_and_spearman(predictions, references)
102 elif self.config_name in ["mrpc", "qqp"]:
--> 103 return acc_and_f1(predictions, references)
104 elif self.config_name in ["sst2", "mnli", "mnli_mismatched", "mnli_matched", "qnli", "rte", "wnli", "hans"]:
105 return {"accuracy": simple_accuracy(predictions, references)}
/usr/local/lib/python3.6/dist-packages/nlp/metrics/glue/27b1bc63e520833054bd0d7a8d0bc7f6aab84cc9eed1b576e98c806f9466d302/glue.py in acc_and_f1(preds, labels)
60 def acc_and_f1(preds, labels):
61 acc = simple_accuracy(preds, labels)
---> 62 f1 = f1_score(y_true=labels, y_pred=preds)
63 return {
64 "accuracy": acc,
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in f1_score(y_true, y_pred, labels, pos_label, average, sample_weight, zero_division)
1097 pos_label=pos_label, average=average,
1098 sample_weight=sample_weight,
-> 1099 zero_division=zero_division)
1100
1101
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in fbeta_score(y_true, y_pred, beta, labels, pos_label, average, sample_weight, zero_division)
1224 warn_for=('f-score',),
1225 sample_weight=sample_weight,
-> 1226 zero_division=zero_division)
1227 return f
1228
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in precision_recall_fscore_support(y_true, y_pred, beta, labels, pos_label, average, warn_for, sample_weight, zero_division)
1482 raise ValueError("beta should be >=0 in the F-beta score")
1483 labels = _check_set_wise_labels(y_true, y_pred, average, labels,
-> 1484 pos_label)
1485
1486 # Calculate tp_sum, pred_sum, true_sum ###
/usr/local/lib/python3.6/dist-packages/sklearn/metrics/_classification.py in _check_set_wise_labels(y_true, y_pred, average, labels, pos_label)
1314 raise ValueError("Target is %s but average='binary'. Please "
1315 "choose another average setting, one of %r."
-> 1316 % (y_type, average_options))
1317 elif pos_label not in (None, 1):
1318 warnings.warn("Note that pos_label (set to %r) is ignored when "
ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted'].
``` | [
-0.1694539338350296,
-0.23958119750022888,
-0.030473431572318077,
0.16115933656692505,
0.23673973977565765,
-0.04916532710194588,
0.1073007807135582,
0.3623582124710083,
0.43302735686302185,
0.05162845551967621,
-0.3168235719203949,
0.2763478755950928,
-0.07980749756097794,
-0.024109557271003723,
0.10261804610490799,
-0.28314918279647827,
-0.1162882074713707,
0.16044947504997253,
-0.22025007009506226,
0.3102561831474304,
-0.3245115578174591,
0.2713671922683716,
-0.18585637211799622,
0.31978750228881836,
-0.17670689523220062,
-0.09038814157247543,
0.02048393152654171,
-0.19617098569869995,
-0.32637181878089905,
-0.36293548345565796,
0.24816299974918365,
-0.11683422327041626,
0.021585971117019653,
0.17664223909378052,
-0.00011026334686903283,
-0.012056130915880203,
0.45895326137542725,
0.0023094024509191513,
0.15884645283222198,
-0.14216341078281403,
-0.3889807462692261,
-0.08348128944635391,
0.044414252042770386,
-0.23615065217018127,
0.13466545939445496,
0.22752021253108978,
0.020613979548215866,
-0.18260835111141205,
0.2193329930305481,
0.2709800601005554,
0.2774612009525299,
0.38711515069007874,
0.312600314617157,
-0.1989935040473938,
0.17249183356761932,
-0.20823253691196442,
0.02658781222999096,
0.8870645761489868,
-0.32721659541130066,
-0.46518808603286743,
-0.0078018903732299805,
0.20694465935230255,
-0.10570721328258514,
0.21800795197486877,
0.2240155041217804,
0.05219597369432449,
0.371700644493103,
-0.32026246190071106,
-0.13264116644859314,
-0.0713139995932579,
-0.21813446283340454,
-0.22854182124137878,
-0.14993122220039368,
0.04165823757648468,
0.04711674153804779,
-0.376310259103775,
0.09723934531211853,
-0.07267797738313675,
0.058160971850156784,
-0.2293190062046051,
-0.054968852549791336,
0.14027614891529083,
-0.11441405117511749,
0.2752953767776489,
0.24009162187576294,
0.3214474320411682,
-0.19815313816070557,
0.29690033197402954,
0.41472724080085754,
0.21544243395328522,
-0.13904178142547607,
0.043545421212911606,
-0.24012655019760132,
0.16533474624156952,
-0.29261061549186707,
-0.04232792928814888,
-0.01045321673154831,
0.19140902161598206,
0.023925740271806717,
-0.23546715080738068,
0.04873013123869896,
-0.20800477266311646,
0.48574960231781006,
0.34279516339302063,
0.06029720976948738,
0.33892449736595154,
0.3534550964832306,
0.15646575391292572,
0.12742532789707184,
0.2417820245027542,
0.0023335888981819153,
-0.16949301958084106,
0.23884378373622894,
-0.38819774985313416,
0.36558055877685547,
0.24139073491096497,
0.1085236668586731,
0.07706011831760406,
-0.42625853419303894,
-0.1771683692932129,
-0.04801519215106964,
-0.004985116887837648,
0.03692108392715454,
0.07186240702867508,
-0.018791712820529938,
0.0006602294743061066,
0.10499057173728943,
0.19069311022758484,
-0.1910693198442459,
0.0570397786796093,
-0.1342855542898178,
0.4053148925304413,
-0.3368164300918579,
0.12151671946048737,
0.15138962864875793,
-0.033292170614004135,
0.20435824990272522,
-0.1073046326637268,
0.1692512333393097,
-0.1872263103723526,
0.02125275321304798,
-0.2450534999370575,
-0.06593256443738937,
0.19544248282909393,
0.04804408922791481,
0.0028146114200353622,
0.32618236541748047,
-0.5611871480941772,
-0.1635349988937378,
-0.2155398726463318,
-0.22833669185638428,
-0.3000667989253998,
-0.14694423973560333,
0.23516951501369476,
-0.17959953844547272,
0.03003840707242489,
-0.40035322308540344,
-0.18054714798927307,
0.23772630095481873,
0.04494840279221535,
0.11268885433673859,
-0.26761019229888916,
-0.2484908103942871,
-0.2921721339225769,
0.20164956152439117,
0.1388748735189438,
-0.08172482252120972,
-0.11474350094795227,
-0.19186337292194366,
-0.10300843417644501,
0.11747580766677856,
0.31447282433509827,
0.1723896712064743,
0.43979188799858093,
-0.2319524884223938,
0.15153203904628754,
0.5892606973648071,
-0.6347136497497559,
-0.23698121309280396,
0.10070811957120895,
0.09687584638595581,
-0.28190892934799194,
-0.06953919678926468,
0.09508933126926422,
0.2874578535556793,
0.07509429007768631,
0.4693038761615753,
0.17752568423748016,
-0.12003986537456512,
-0.191081702709198,
-0.30035921931266785,
0.034559570252895355,
0.08522223681211472,
0.052273210138082504,
0.20452965795993805,
-0.05044309049844742,
0.1096888929605484,
-0.06492187827825546,
-0.1438201665878296,
0.1973370760679245,
0.019450027495622635,
0.0301426462829113,
0.3318207561969757,
-0.23766465485095978,
0.008245252072811127,
-0.5078009366989136,
-0.028753168880939484,
0.07651505619287491,
-0.553921103477478,
0.19852782785892487,
0.09628551453351974,
-0.01630241982638836,
-0.5231426954269409,
0.10505939275026321,
-0.06995183229446411,
-0.03930843994021416,
0.23269131779670715,
-0.2064470648765564,
0.3046915829181671,
0.023180443793535233,
-0.03848184272646904,
0.17104311287403107,
0.07656737416982651,
0.08471505343914032,
-0.0891413539648056,
0.21450282633304596,
-0.2762126922607422,
-0.41487956047058105,
0.13826781511306763,
0.3498583137989044,
0.2727721035480499,
0.03530418500304222,
-0.10926227271556854,
0.49975526332855225,
-0.14241860806941986,
-0.22851677238941193,
0.05572734773159027,
-0.06330759823322296,
-0.007169857621192932,
0.03062935546040535,
-0.018623897805809975,
-0.11324936151504517,
0.19068197906017303,
-0.029352091252803802,
0.32101696729660034,
0.19584596157073975,
0.010319503024220467,
0.2974856197834015,
-0.11806687712669373,
0.32739531993865967,
-0.12253153324127197,
-0.058430641889572144,
-0.15002287924289703,
-0.13411113619804382,
0.41811373829841614,
-0.29730096459388733,
-0.07994002103805542,
-0.18273012340068817,
0.3219170868396759,
-0.23060598969459534,
0.33504271507263184,
-0.04965035617351532,
0.18547669053077698,
-0.02896486222743988,
-0.21909329295158386,
0.10757917910814285,
-0.15371479094028473,
0.12825262546539307,
0.597593367099762,
-0.0049649798311293125,
-0.1247706413269043,
0.02501698024570942,
-0.1926954686641693,
-0.023432470858097076,
0.17540143430233002,
0.06748278439044952,
0.03081974945962429,
0.10812879353761673,
0.16881975531578064,
-0.028177574276924133,
-0.03804923593997955,
0.10205872356891632,
-0.23131851851940155,
0.23119668662548065,
-0.3220551013946533,
-0.017831508070230484,
-0.04514671862125397,
-0.4319610297679901,
-0.16770705580711365,
-0.10991346836090088,
-0.2902883291244507,
-0.6119652986526489,
-0.05723477154970169,
0.051368892192840576,
0.08731815218925476,
0.18926340341567993,
0.32262155413627625,
0.06517910957336426,
0.11167947947978973,
0.09688829630613327,
0.05226709693670273,
-0.22013084590435028,
-0.029467768967151642,
0.05251786485314369,
0.013736126013100147,
0.20372766256332397,
0.4438384771347046,
-0.10368507355451584,
-0.014590609818696976,
-0.1050947830080986,
-0.30873212218284607,
0.017346039414405823,
-0.2842082381248474,
0.6033973097801208,
0.41329285502433777,
-0.12381410598754883,
-0.057888589799404144,
-0.3781414330005646,
0.46584391593933105,
-0.425040602684021,
0.01716252975165844,
0.22456036508083344,
-0.20285822451114655,
-0.045710545033216476,
-0.15687252581119537,
0.053408220410346985,
-0.2870559096336365,
-0.36026206612586975,
0.3244149684906006,
0.13621102273464203,
0.08709853887557983,
0.02471310645341873,
-0.22309763729572296,
0.37812161445617676,
-0.1902918517589569,
-0.19854535162448883,
-0.18983809649944305,
-0.02872060239315033,
0.32483309507369995,
-0.20611174404621124,
-0.34139224886894226,
-0.08863243460655212,
-0.06677505373954773,
0.3206021785736084,
-0.24102865159511566,
-0.24471479654312134,
-0.5733756422996521,
-0.18514244258403778,
0.028615344315767288,
-0.1296883523464203,
0.19288459420204163,
0.04400147125124931,
-0.1671067178249359,
-0.06490891426801682,
-0.0949188843369484,
-0.2339566946029663,
0.16283369064331055,
0.21928176283836365,
0.0926070511341095,
-0.13016852736473083,
0.34217551350593567,
0.08538402616977692,
0.3098375201225281,
0.10360053181648254,
-0.0924222320318222,
0.2702834904193878,
0.043102800846099854,
0.23097725212574005,
0.0065477341413497925,
-0.4910924434661865,
0.1871621161699295,
-0.12123340368270874,
0.32612621784210205,
-0.11696884036064148,
-0.02284678816795349,
-0.05332951247692108,
-0.21609723567962646,
-0.14292968809604645,
-0.12352097779512405,
-0.22178985178470612,
0.07442464679479599,
0.015262002125382423,
0.17424330115318298,
0.059314560145139694,
-0.21705037355422974,
-0.2897798418998718,
-0.2181466817855835,
0.19447587430477142,
0.21567150950431824,
0.010360576212406158,
-0.07123543322086334,
-0.03822827339172363,
-0.2960553765296936,
-0.38884055614471436,
0.4718077778816223,
0.1434943526983261,
0.3303481936454773,
-0.11766114830970764,
0.29984211921691895,
-0.15167146921157837,
0.11472896486520767,
0.2170623540878296,
-0.3560428023338318,
0.07976430654525757,
0.28989139199256897,
0.19626300036907196,
-0.5538415312767029,
-0.13813132047653198,
-0.42757415771484375,
0.3352838456630707,
0.5549225211143494,
0.4441613256931305,
-0.25144222378730774,
0.07072825729846954,
0.4990735948085785,
-0.05778183788061142,
-0.04948611184954643,
-0.44056564569473267,
-0.42764073610305786,
-0.1975729763507843,
-0.1345933973789215,
-0.07351913303136826,
0.14342164993286133,
0.20617210865020752,
0.38736531138420105,
0.07145026326179504,
-0.09281269460916519,
-0.20107105374336243,
0.07173675298690796,
-0.20251992344856262,
0.030900055542588234,
0.03192409873008728,
0.08965656161308289,
-0.26133424043655396,
-0.03284700959920883,
-0.5163635611534119,
-0.11810503900051117,
-0.0492081455886364,
-0.05832447111606598,
0.11622407287359238,
0.006550158374011517,
0.39213311672210693,
-0.10316802561283112,
-0.13361932337284088,
0.2324886918067932,
-0.2945845425128937,
0.40988850593566895,
0.04337438941001892,
0.09180434048175812,
0.34467384219169617,
0.22494421899318695,
-0.11882362514734268,
0.10590127110481262,
0.4642903804779053,
0.23964403569698334,
0.04096055030822754,
0.3867132365703583,
0.2303498089313507,
-0.25474342703819275,
0.21005329489707947,
0.12550969421863556,
0.7316859364509583,
-0.03637418895959854,
-0.20816966891288757,
0.28215786814689636,
-0.19584296643733978,
0.6601783037185669,
0.20184290409088135,
0.2584860920906067,
-0.2552506625652313,
-0.24011729657649994,
0.0362042635679245,
-0.18862755596637726,
0.12075583636760712,
-0.2527749538421631,
-0.4338820278644562,
0.4902593791484833,
0.02165256440639496,
0.12400256097316742,
-0.12253172695636749,
0.1950637251138687,
-0.17122147977352142,
-0.1687162220478058,
-0.037902314215898514,
0.19146104156970978,
-0.3335965871810913,
0.10566960275173187,
-0.01884554885327816,
-0.0623408779501915,
0.12825335562229156,
-0.07512814551591873,
-0.25356847047805786,
-0.1657010018825531,
-0.3714182674884796,
0.1900481879711151,
0.234268456697464,
0.0006986856460571289,
0.06674377620220184,
-0.25643596053123474,
0.21657948195934296,
0.168394073843956,
-0.09867772459983826,
-0.09458431601524353,
-0.010704055428504944,
-0.24693112075328827,
0.14755605161190033,
0.12288928031921387,
-0.10273131728172302,
-0.13885705173015594,
-0.11702392250299454,
0.02869611233472824,
0.09478184580802917,
-0.26034626364707947,
0.23299527168273926,
0.11106784641742706,
0.008934400975704193,
-0.2510274052619934,
-0.2027098536491394,
-0.16642171144485474,
-0.022884979844093323,
-0.07035171240568161,
0.17128689587116241,
0.004672683775424957,
-0.13679131865501404,
0.2804693877696991,
-0.06594167649745941,
-0.16240794956684113,
0.08642332255840302,
0.2396942377090454,
-0.07938455790281296,
-0.019810251891613007,
0.11606097221374512,
-0.1933649480342865,
-0.2555321455001831,
-0.07585784792900085,
-0.15321987867355347,
-0.21829915046691895,
-0.28363707661628723,
0.12346135824918747,
-0.11972717195749283,
-0.028331361711025238,
-0.14018414914608002,
0.11142598092556,
0.4184056520462036,
0.25927016139030457,
0.09696923196315765,
-0.4761911630630493,
-0.1332366019487381,
0.2772354483604431,
-0.01703493669629097,
-0.12397682666778564,
-0.1470867097377777,
0.32217639684677124,
0.15395794808864594,
0.3371107280254364,
-0.3407655358314514,
-0.08616407215595245,
-0.3368881642818451,
0.17275680601596832,
0.5577077865600586,
-0.3882572650909424,
0.03208218142390251,
0.08962948620319366,
0.19255007803440094,
0.24074383080005646,
-0.16846522688865662,
-0.2781487703323364,
-0.04539765417575836,
0.08841469883918762,
-0.008047360926866531,
-0.10946062207221985,
0.12468529492616653,
0.008991166949272156,
-0.19724036753177643,
-0.0705857127904892,
-0.28754863142967224,
-0.1359250694513321,
-0.19104941189289093,
0.062334563583135605,
-0.03994850441813469,
0.19795134663581848,
0.3852124810218811,
0.3219554126262665,
-0.09564289450645447,
0.14554676413536072,
-0.10709437727928162,
0.16375789046287537,
0.08065708726644516,
0.0923643410205841,
-0.14393676817417145,
-0.10458394140005112,
-0.10805882513523102,
-0.0023584961891174316,
0.24761763215065002,
-0.21704773604869843,
-0.2661947011947632,
-0.14193588495254517,
0.376839816570282,
-0.022884540259838104,
-0.03582325950264931,
-0.03517866134643555,
-0.18001225590705872,
0.1641359031200409,
-0.16550126671791077,
0.12046447396278381,
0.2528321444988251,
0.20455501973628998,
0.17597879469394684,
0.18672925233840942,
-0.014842331409454346,
0.0641109049320221,
0.005958154797554016,
0.09657847136259079,
0.34179216623306274,
-0.14811378717422485,
-0.15681160986423492,
-0.31464821100234985,
0.23429478704929352,
-0.03725031390786171,
0.38552209734916687,
-0.19364802539348602,
0.19155603647232056,
-0.1926368623971939,
0.0036958307027816772,
0.15741364657878876,
-0.06524138897657394,
0.003042086958885193,
0.2391289472579956,
0.19758561253547668,
-0.1815175712108612,
0.259529709815979,
0.14666984975337982,
0.10419857501983643,
-0.02008087933063507,
0.5160801410675049,
-0.3852637708187103,
-0.07828041911125183,
0.03594575822353363,
0.15381638705730438,
0.052921272814273834,
0.062344636768102646,
0.004506658762693405,
-0.006683483719825745,
-0.32907840609550476,
-0.15530484914779663,
0.0652155801653862,
0.12203976511955261,
0.3950307369232178,
0.1611405611038208,
0.01919383555650711,
-0.04868832230567932,
-0.21246689558029175,
0.35835888981819153,
0.18005624413490295,
-0.3143038749694824,
0.12214107066392899,
0.12702229619026184,
0.2304646074771881,
-0.2367894947528839,
0.6592807173728943,
0.5281538367271423,
0.31333160400390625,
-0.3758438527584076,
0.12717823684215546,
-0.03409864380955696,
-0.17602016031742096,
0.2069450169801712,
0.18475116789340973,
0.3671351373195648,
0.09719708561897278,
0.26718246936798096,
0.20855790376663208,
-0.26339614391326904,
-0.048593681305646896,
-0.07236568629741669,
-0.01306634396314621,
-0.16856983304023743,
0.45252206921577454,
-0.2508081793785095,
-0.23310646414756775,
-0.153624027967453,
0.057342998683452606,
-0.4240996241569519,
0.1701417863368988,
0.03543967008590698,
-0.022380592301487923,
0.07569708675146103,
-0.28368067741394043,
0.09819263964891434,
-0.023903395980596542,
0.5166298747062683,
0.1721057891845703,
0.544195830821991,
-0.5894021391868591,
-0.22437508404254913,
-0.4315939247608185,
0.042283445596694946,
-0.098061203956604,
-0.05371444672346115,
0.016972731798887253,
0.052221156656742096,
-0.2406841218471527,
0.33615660667419434,
0.17216531932353973,
0.49827784299850464,
-0.11583660542964935,
-0.28244543075561523,
-0.30287373065948486,
-0.05659247562289238,
0.052605003118515015,
-0.4606127440929413,
0.23947489261627197,
-0.2231244146823883,
0.09290394186973572,
-0.10029308497905731,
0.14038336277008057,
-0.008369674906134605,
-0.2390478402376175,
0.27706092596054077,
0.5875073671340942,
0.08792277425527573,
0.2794112265110016,
0.5532602667808533,
-0.017241371795535088,
-0.0034354981034994125,
0.05214866250753403,
-0.3737611472606659,
-0.1366230696439743,
0.049960020929574966,
0.016852304339408875,
0.2484913170337677,
-0.08757210522890091,
-0.08660569787025452,
-0.3632860481739044,
0.5056173205375671,
-0.16242676973342896,
0.016891397535800934,
-0.03264639154076576,
0.07525844126939774,
0.12679898738861084,
0.020819053053855896,
-0.04182281345129013,
0.08289707452058792,
-0.018635228276252747,
0.32711338996887207,
-0.20050156116485596,
-0.28271856904029846,
0.37359732389450073,
-0.47979798913002014,
-0.3367663025856018,
0.09544689208269119,
0.25309744477272034,
0.20063289999961853,
-0.09317932277917862,
-0.6303014755249023,
-0.25101935863494873,
0.3387460708618164,
0.06366892158985138,
-0.18012331426143646,
0.3238253891468048,
-0.15784618258476257,
0.1805454045534134,
0.15823116898536682,
0.038847990334033966,
0.15755227208137512,
-0.3089754581451416,
0.04981185123324394,
-0.22991591691970825
] |
https://github.com/huggingface/datasets/issues/324 | Error when calculating glue score | MRPC is also a binary classification task, so its metric is a binary classification metric.
To evaluate if pairs of sentences are semantically equivalent, maybe you could take a look at models that compute if one sentence entails the other or not (typically the kinds of model that could work well on the MRPC task). | I was trying glue score along with other metrics here. But glue gives me this error;
```
import nlp
glue_metric = nlp.load_metric('glue',name="cola")
glue_score = glue_metric.compute(predictions, references)
```
```
---------------------------------------------------------------------------
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-b9210a524504> in <module>()
----> 1 glue_score = glue_metric.compute(predictions, references)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
191 """
192 if predictions is not None:
--> 193 self.add_batch(predictions=predictions, references=references)
194 self.finalize(timeout=timeout)
195
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs)
207 if self.writer is None:
208 self._init_writer()
--> 209 self.writer.write_batch(batch)
210
211 def add(self, prediction=None, reference=None, **kwargs):
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
155 if self.pa_writer is None:
156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples))
--> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
158 if writer_batch_size is None:
159 writer_batch_size = self.writer_batch_size
/usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
TypeError: an integer is required (got type str)
```
I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you. | 55 | Error when calculating glue score
I was trying glue score along with other metrics here. But glue gives me this error;
```
import nlp
glue_metric = nlp.load_metric('glue',name="cola")
glue_score = glue_metric.compute(predictions, references)
```
```
---------------------------------------------------------------------------
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-b9210a524504> in <module>()
----> 1 glue_score = glue_metric.compute(predictions, references)
6 frames
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in compute(self, predictions, references, timeout, **metrics_kwargs)
191 """
192 if predictions is not None:
--> 193 self.add_batch(predictions=predictions, references=references)
194 self.finalize(timeout=timeout)
195
/usr/local/lib/python3.6/dist-packages/nlp/metric.py in add_batch(self, predictions, references, **kwargs)
207 if self.writer is None:
208 self._init_writer()
--> 209 self.writer.write_batch(batch)
210
211 def add(self, prediction=None, reference=None, **kwargs):
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_batch(self, batch_examples, writer_batch_size)
155 if self.pa_writer is None:
156 self._build_writer(pa_table=pa.Table.from_pydict(batch_examples))
--> 157 pa_table: pa.Table = pa.Table.from_pydict(batch_examples, schema=self._schema)
158 if writer_batch_size is None:
159 writer_batch_size = self.writer_batch_size
/usr/local/lib/python3.6/dist-packages/pyarrow/types.pxi in __iter__()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.asarray()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib.array()
/usr/local/lib/python3.6/dist-packages/pyarrow/array.pxi in pyarrow.lib._sequence_to_array()
TypeError: an integer is required (got type str)
```
I'm not sure whether I'm doing this wrong or whether it's an issue. I would like to know a workaround. Thank you.
MRPC is also a binary classification task, so its metric is a binary classification metric.
To evaluate if pairs of sentences are semantically equivalent, maybe you could take a look at models that compute if one sentence entails the other or not (typically the kinds of model that could work well on the MRPC task). | [
-0.1694539338350296,
-0.23958119750022888,
-0.030473431572318077,
0.16115933656692505,
0.23673973977565765,
-0.04916532710194588,
0.1073007807135582,
0.3623582124710083,
0.43302735686302185,
0.05162845551967621,
-0.3168235719203949,
0.2763478755950928,
-0.07980749756097794,
-0.024109557271003723,
0.10261804610490799,
-0.28314918279647827,
-0.1162882074713707,
0.16044947504997253,
-0.22025007009506226,
0.3102561831474304,
-0.3245115578174591,
0.2713671922683716,
-0.18585637211799622,
0.31978750228881836,
-0.17670689523220062,
-0.09038814157247543,
0.02048393152654171,
-0.19617098569869995,
-0.32637181878089905,
-0.36293548345565796,
0.24816299974918365,
-0.11683422327041626,
0.021585971117019653,
0.17664223909378052,
-0.00011026334686903283,
-0.012056130915880203,
0.45895326137542725,
0.0023094024509191513,
0.15884645283222198,
-0.14216341078281403,
-0.3889807462692261,
-0.08348128944635391,
0.044414252042770386,
-0.23615065217018127,
0.13466545939445496,
0.22752021253108978,
0.020613979548215866,
-0.18260835111141205,
0.2193329930305481,
0.2709800601005554,
0.2774612009525299,
0.38711515069007874,
0.312600314617157,
-0.1989935040473938,
0.17249183356761932,
-0.20823253691196442,
0.02658781222999096,
0.8870645761489868,
-0.32721659541130066,
-0.46518808603286743,
-0.0078018903732299805,
0.20694465935230255,
-0.10570721328258514,
0.21800795197486877,
0.2240155041217804,
0.05219597369432449,
0.371700644493103,
-0.32026246190071106,
-0.13264116644859314,
-0.0713139995932579,
-0.21813446283340454,
-0.22854182124137878,
-0.14993122220039368,
0.04165823757648468,
0.04711674153804779,
-0.376310259103775,
0.09723934531211853,
-0.07267797738313675,
0.058160971850156784,
-0.2293190062046051,
-0.054968852549791336,
0.14027614891529083,
-0.11441405117511749,
0.2752953767776489,
0.24009162187576294,
0.3214474320411682,
-0.19815313816070557,
0.29690033197402954,
0.41472724080085754,
0.21544243395328522,
-0.13904178142547607,
0.043545421212911606,
-0.24012655019760132,
0.16533474624156952,
-0.29261061549186707,
-0.04232792928814888,
-0.01045321673154831,
0.19140902161598206,
0.023925740271806717,
-0.23546715080738068,
0.04873013123869896,
-0.20800477266311646,
0.48574960231781006,
0.34279516339302063,
0.06029720976948738,
0.33892449736595154,
0.3534550964832306,
0.15646575391292572,
0.12742532789707184,
0.2417820245027542,
0.0023335888981819153,
-0.16949301958084106,
0.23884378373622894,
-0.38819774985313416,
0.36558055877685547,
0.24139073491096497,
0.1085236668586731,
0.07706011831760406,
-0.42625853419303894,
-0.1771683692932129,
-0.04801519215106964,
-0.004985116887837648,
0.03692108392715454,
0.07186240702867508,
-0.018791712820529938,
0.0006602294743061066,
0.10499057173728943,
0.19069311022758484,
-0.1910693198442459,
0.0570397786796093,
-0.1342855542898178,
0.4053148925304413,
-0.3368164300918579,
0.12151671946048737,
0.15138962864875793,
-0.033292170614004135,
0.20435824990272522,
-0.1073046326637268,
0.1692512333393097,
-0.1872263103723526,
0.02125275321304798,
-0.2450534999370575,
-0.06593256443738937,
0.19544248282909393,
0.04804408922791481,
0.0028146114200353622,
0.32618236541748047,
-0.5611871480941772,
-0.1635349988937378,
-0.2155398726463318,
-0.22833669185638428,
-0.3000667989253998,
-0.14694423973560333,
0.23516951501369476,
-0.17959953844547272,
0.03003840707242489,
-0.40035322308540344,
-0.18054714798927307,
0.23772630095481873,
0.04494840279221535,
0.11268885433673859,
-0.26761019229888916,
-0.2484908103942871,
-0.2921721339225769,
0.20164956152439117,
0.1388748735189438,
-0.08172482252120972,
-0.11474350094795227,
-0.19186337292194366,
-0.10300843417644501,
0.11747580766677856,
0.31447282433509827,
0.1723896712064743,
0.43979188799858093,
-0.2319524884223938,
0.15153203904628754,
0.5892606973648071,
-0.6347136497497559,
-0.23698121309280396,
0.10070811957120895,
0.09687584638595581,
-0.28190892934799194,
-0.06953919678926468,
0.09508933126926422,
0.2874578535556793,
0.07509429007768631,
0.4693038761615753,
0.17752568423748016,
-0.12003986537456512,
-0.191081702709198,
-0.30035921931266785,
0.034559570252895355,
0.08522223681211472,
0.052273210138082504,
0.20452965795993805,
-0.05044309049844742,
0.1096888929605484,
-0.06492187827825546,
-0.1438201665878296,
0.1973370760679245,
0.019450027495622635,
0.0301426462829113,
0.3318207561969757,
-0.23766465485095978,
0.008245252072811127,
-0.5078009366989136,
-0.028753168880939484,
0.07651505619287491,
-0.553921103477478,
0.19852782785892487,
0.09628551453351974,
-0.01630241982638836,
-0.5231426954269409,
0.10505939275026321,
-0.06995183229446411,
-0.03930843994021416,
0.23269131779670715,
-0.2064470648765564,
0.3046915829181671,
0.023180443793535233,
-0.03848184272646904,
0.17104311287403107,
0.07656737416982651,
0.08471505343914032,
-0.0891413539648056,
0.21450282633304596,
-0.2762126922607422,
-0.41487956047058105,
0.13826781511306763,
0.3498583137989044,
0.2727721035480499,
0.03530418500304222,
-0.10926227271556854,
0.49975526332855225,
-0.14241860806941986,
-0.22851677238941193,
0.05572734773159027,
-0.06330759823322296,
-0.007169857621192932,
0.03062935546040535,
-0.018623897805809975,
-0.11324936151504517,
0.19068197906017303,
-0.029352091252803802,
0.32101696729660034,
0.19584596157073975,
0.010319503024220467,
0.2974856197834015,
-0.11806687712669373,
0.32739531993865967,
-0.12253153324127197,
-0.058430641889572144,
-0.15002287924289703,
-0.13411113619804382,
0.41811373829841614,
-0.29730096459388733,
-0.07994002103805542,
-0.18273012340068817,
0.3219170868396759,
-0.23060598969459534,
0.33504271507263184,
-0.04965035617351532,
0.18547669053077698,
-0.02896486222743988,
-0.21909329295158386,
0.10757917910814285,
-0.15371479094028473,
0.12825262546539307,
0.597593367099762,
-0.0049649798311293125,
-0.1247706413269043,
0.02501698024570942,
-0.1926954686641693,
-0.023432470858097076,
0.17540143430233002,
0.06748278439044952,
0.03081974945962429,
0.10812879353761673,
0.16881975531578064,
-0.028177574276924133,
-0.03804923593997955,
0.10205872356891632,
-0.23131851851940155,
0.23119668662548065,
-0.3220551013946533,
-0.017831508070230484,
-0.04514671862125397,
-0.4319610297679901,
-0.16770705580711365,
-0.10991346836090088,
-0.2902883291244507,
-0.6119652986526489,
-0.05723477154970169,
0.051368892192840576,
0.08731815218925476,
0.18926340341567993,
0.32262155413627625,
0.06517910957336426,
0.11167947947978973,
0.09688829630613327,
0.05226709693670273,
-0.22013084590435028,
-0.029467768967151642,
0.05251786485314369,
0.013736126013100147,
0.20372766256332397,
0.4438384771347046,
-0.10368507355451584,
-0.014590609818696976,
-0.1050947830080986,
-0.30873212218284607,
0.017346039414405823,
-0.2842082381248474,
0.6033973097801208,
0.41329285502433777,
-0.12381410598754883,
-0.057888589799404144,
-0.3781414330005646,
0.46584391593933105,
-0.425040602684021,
0.01716252975165844,
0.22456036508083344,
-0.20285822451114655,
-0.045710545033216476,
-0.15687252581119537,
0.053408220410346985,
-0.2870559096336365,
-0.36026206612586975,
0.3244149684906006,
0.13621102273464203,
0.08709853887557983,
0.02471310645341873,
-0.22309763729572296,
0.37812161445617676,
-0.1902918517589569,
-0.19854535162448883,
-0.18983809649944305,
-0.02872060239315033,
0.32483309507369995,
-0.20611174404621124,
-0.34139224886894226,
-0.08863243460655212,
-0.06677505373954773,
0.3206021785736084,
-0.24102865159511566,
-0.24471479654312134,
-0.5733756422996521,
-0.18514244258403778,
0.028615344315767288,
-0.1296883523464203,
0.19288459420204163,
0.04400147125124931,
-0.1671067178249359,
-0.06490891426801682,
-0.0949188843369484,
-0.2339566946029663,
0.16283369064331055,
0.21928176283836365,
0.0926070511341095,
-0.13016852736473083,
0.34217551350593567,
0.08538402616977692,
0.3098375201225281,
0.10360053181648254,
-0.0924222320318222,
0.2702834904193878,
0.043102800846099854,
0.23097725212574005,
0.0065477341413497925,
-0.4910924434661865,
0.1871621161699295,
-0.12123340368270874,
0.32612621784210205,
-0.11696884036064148,
-0.02284678816795349,
-0.05332951247692108,
-0.21609723567962646,
-0.14292968809604645,
-0.12352097779512405,
-0.22178985178470612,
0.07442464679479599,
0.015262002125382423,
0.17424330115318298,
0.059314560145139694,
-0.21705037355422974,
-0.2897798418998718,
-0.2181466817855835,
0.19447587430477142,
0.21567150950431824,
0.010360576212406158,
-0.07123543322086334,
-0.03822827339172363,
-0.2960553765296936,
-0.38884055614471436,
0.4718077778816223,
0.1434943526983261,
0.3303481936454773,
-0.11766114830970764,
0.29984211921691895,
-0.15167146921157837,
0.11472896486520767,
0.2170623540878296,
-0.3560428023338318,
0.07976430654525757,
0.28989139199256897,
0.19626300036907196,
-0.5538415312767029,
-0.13813132047653198,
-0.42757415771484375,
0.3352838456630707,
0.5549225211143494,
0.4441613256931305,
-0.25144222378730774,
0.07072825729846954,
0.4990735948085785,
-0.05778183788061142,
-0.04948611184954643,
-0.44056564569473267,
-0.42764073610305786,
-0.1975729763507843,
-0.1345933973789215,
-0.07351913303136826,
0.14342164993286133,
0.20617210865020752,
0.38736531138420105,
0.07145026326179504,
-0.09281269460916519,
-0.20107105374336243,
0.07173675298690796,
-0.20251992344856262,
0.030900055542588234,
0.03192409873008728,
0.08965656161308289,
-0.26133424043655396,
-0.03284700959920883,
-0.5163635611534119,
-0.11810503900051117,
-0.0492081455886364,
-0.05832447111606598,
0.11622407287359238,
0.006550158374011517,
0.39213311672210693,
-0.10316802561283112,
-0.13361932337284088,
0.2324886918067932,
-0.2945845425128937,
0.40988850593566895,
0.04337438941001892,
0.09180434048175812,
0.34467384219169617,
0.22494421899318695,
-0.11882362514734268,
0.10590127110481262,
0.4642903804779053,
0.23964403569698334,
0.04096055030822754,
0.3867132365703583,
0.2303498089313507,
-0.25474342703819275,
0.21005329489707947,
0.12550969421863556,
0.7316859364509583,
-0.03637418895959854,
-0.20816966891288757,
0.28215786814689636,
-0.19584296643733978,
0.6601783037185669,
0.20184290409088135,
0.2584860920906067,
-0.2552506625652313,
-0.24011729657649994,
0.0362042635679245,
-0.18862755596637726,
0.12075583636760712,
-0.2527749538421631,
-0.4338820278644562,
0.4902593791484833,
0.02165256440639496,
0.12400256097316742,
-0.12253172695636749,
0.1950637251138687,
-0.17122147977352142,
-0.1687162220478058,
-0.037902314215898514,
0.19146104156970978,
-0.3335965871810913,
0.10566960275173187,
-0.01884554885327816,
-0.0623408779501915,
0.12825335562229156,
-0.07512814551591873,
-0.25356847047805786,
-0.1657010018825531,
-0.3714182674884796,
0.1900481879711151,
0.234268456697464,
0.0006986856460571289,
0.06674377620220184,
-0.25643596053123474,
0.21657948195934296,
0.168394073843956,
-0.09867772459983826,
-0.09458431601524353,
-0.010704055428504944,
-0.24693112075328827,
0.14755605161190033,
0.12288928031921387,
-0.10273131728172302,
-0.13885705173015594,
-0.11702392250299454,
0.02869611233472824,
0.09478184580802917,
-0.26034626364707947,
0.23299527168273926,
0.11106784641742706,
0.008934400975704193,
-0.2510274052619934,
-0.2027098536491394,
-0.16642171144485474,
-0.022884979844093323,
-0.07035171240568161,
0.17128689587116241,
0.004672683775424957,
-0.13679131865501404,
0.2804693877696991,
-0.06594167649745941,
-0.16240794956684113,
0.08642332255840302,
0.2396942377090454,
-0.07938455790281296,
-0.019810251891613007,
0.11606097221374512,
-0.1933649480342865,
-0.2555321455001831,
-0.07585784792900085,
-0.15321987867355347,
-0.21829915046691895,
-0.28363707661628723,
0.12346135824918747,
-0.11972717195749283,
-0.028331361711025238,
-0.14018414914608002,
0.11142598092556,
0.4184056520462036,
0.25927016139030457,
0.09696923196315765,
-0.4761911630630493,
-0.1332366019487381,
0.2772354483604431,
-0.01703493669629097,
-0.12397682666778564,
-0.1470867097377777,
0.32217639684677124,
0.15395794808864594,
0.3371107280254364,
-0.3407655358314514,
-0.08616407215595245,
-0.3368881642818451,
0.17275680601596832,
0.5577077865600586,
-0.3882572650909424,
0.03208218142390251,
0.08962948620319366,
0.19255007803440094,
0.24074383080005646,
-0.16846522688865662,
-0.2781487703323364,
-0.04539765417575836,
0.08841469883918762,
-0.008047360926866531,
-0.10946062207221985,
0.12468529492616653,
0.008991166949272156,
-0.19724036753177643,
-0.0705857127904892,
-0.28754863142967224,
-0.1359250694513321,
-0.19104941189289093,
0.062334563583135605,
-0.03994850441813469,
0.19795134663581848,
0.3852124810218811,
0.3219554126262665,
-0.09564289450645447,
0.14554676413536072,
-0.10709437727928162,
0.16375789046287537,
0.08065708726644516,
0.0923643410205841,
-0.14393676817417145,
-0.10458394140005112,
-0.10805882513523102,
-0.0023584961891174316,
0.24761763215065002,
-0.21704773604869843,
-0.2661947011947632,
-0.14193588495254517,
0.376839816570282,
-0.022884540259838104,
-0.03582325950264931,
-0.03517866134643555,
-0.18001225590705872,
0.1641359031200409,
-0.16550126671791077,
0.12046447396278381,
0.2528321444988251,
0.20455501973628998,
0.17597879469394684,
0.18672925233840942,
-0.014842331409454346,
0.0641109049320221,
0.005958154797554016,
0.09657847136259079,
0.34179216623306274,
-0.14811378717422485,
-0.15681160986423492,
-0.31464821100234985,
0.23429478704929352,
-0.03725031390786171,
0.38552209734916687,
-0.19364802539348602,
0.19155603647232056,
-0.1926368623971939,
0.0036958307027816772,
0.15741364657878876,
-0.06524138897657394,
0.003042086958885193,
0.2391289472579956,
0.19758561253547668,
-0.1815175712108612,
0.259529709815979,
0.14666984975337982,
0.10419857501983643,
-0.02008087933063507,
0.5160801410675049,
-0.3852637708187103,
-0.07828041911125183,
0.03594575822353363,
0.15381638705730438,
0.052921272814273834,
0.062344636768102646,
0.004506658762693405,
-0.006683483719825745,
-0.32907840609550476,
-0.15530484914779663,
0.0652155801653862,
0.12203976511955261,
0.3950307369232178,
0.1611405611038208,
0.01919383555650711,
-0.04868832230567932,
-0.21246689558029175,
0.35835888981819153,
0.18005624413490295,
-0.3143038749694824,
0.12214107066392899,
0.12702229619026184,
0.2304646074771881,
-0.2367894947528839,
0.6592807173728943,
0.5281538367271423,
0.31333160400390625,
-0.3758438527584076,
0.12717823684215546,
-0.03409864380955696,
-0.17602016031742096,
0.2069450169801712,
0.18475116789340973,
0.3671351373195648,
0.09719708561897278,
0.26718246936798096,
0.20855790376663208,
-0.26339614391326904,
-0.048593681305646896,
-0.07236568629741669,
-0.01306634396314621,
-0.16856983304023743,
0.45252206921577454,
-0.2508081793785095,
-0.23310646414756775,
-0.153624027967453,
0.057342998683452606,
-0.4240996241569519,
0.1701417863368988,
0.03543967008590698,
-0.022380592301487923,
0.07569708675146103,
-0.28368067741394043,
0.09819263964891434,
-0.023903395980596542,
0.5166298747062683,
0.1721057891845703,
0.544195830821991,
-0.5894021391868591,
-0.22437508404254913,
-0.4315939247608185,
0.042283445596694946,
-0.098061203956604,
-0.05371444672346115,
0.016972731798887253,
0.052221156656742096,
-0.2406841218471527,
0.33615660667419434,
0.17216531932353973,
0.49827784299850464,
-0.11583660542964935,
-0.28244543075561523,
-0.30287373065948486,
-0.05659247562289238,
0.052605003118515015,
-0.4606127440929413,
0.23947489261627197,
-0.2231244146823883,
0.09290394186973572,
-0.10029308497905731,
0.14038336277008057,
-0.008369674906134605,
-0.2390478402376175,
0.27706092596054077,
0.5875073671340942,
0.08792277425527573,
0.2794112265110016,
0.5532602667808533,
-0.017241371795535088,
-0.0034354981034994125,
0.05214866250753403,
-0.3737611472606659,
-0.1366230696439743,
0.049960020929574966,
0.016852304339408875,
0.2484913170337677,
-0.08757210522890091,
-0.08660569787025452,
-0.3632860481739044,
0.5056173205375671,
-0.16242676973342896,
0.016891397535800934,
-0.03264639154076576,
0.07525844126939774,
0.12679898738861084,
0.020819053053855896,
-0.04182281345129013,
0.08289707452058792,
-0.018635228276252747,
0.32711338996887207,
-0.20050156116485596,
-0.28271856904029846,
0.37359732389450073,
-0.47979798913002014,
-0.3367663025856018,
0.09544689208269119,
0.25309744477272034,
0.20063289999961853,
-0.09317932277917862,
-0.6303014755249023,
-0.25101935863494873,
0.3387460708618164,
0.06366892158985138,
-0.18012331426143646,
0.3238253891468048,
-0.15784618258476257,
0.1805454045534134,
0.15823116898536682,
0.038847990334033966,
0.15755227208137512,
-0.3089754581451416,
0.04981185123324394,
-0.22991591691970825
] |