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
list
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.08307509124279022, -0.11023090779781342, -0.08677279204130173, -0.13964009284973145, 0.24311912059783936, -0.26746636629104614, 0.33662161231040955, 0.3281986117362976, -0.10447439551353455, 0.16092322766780853, -0.04599054902791977, 0.2184552103281021, -0.11118267476558685, 0.06283409893512726, 0.027580782771110535, -0.2568036913871765, 0.0977710634469986, 0.2359912097454071, 0.005641256924718618, -0.01694599911570549, 0.0004629608301911503, 0.29127374291419983, -0.19472816586494446, 0.3622000217437744, -0.23955290019512177, 0.027007190510630608, 0.08857138454914093, 0.12426480650901794, -0.2790330648422241, -0.5286542773246765, 0.19335725903511047, -0.16319024562835693, -0.07320509105920792, -0.004034130834043026, -0.0001010638807201758, 0.14389844238758087, 0.4179384410381317, 0.17098312079906464, 0.16104692220687866, -0.018863657489418983, 0.47651416063308716, -0.3481638431549072, 0.31622040271759033, 0.0011415904155001044, -0.2127271294593811, -0.3874780237674713, 0.20128233730793, 0.6739891171455383, 0.29962149262428284, 0.05319400131702423, 0.35209378600120544, 0.5651534795761108, 0.30679476261138916, 0.21260599792003632, 0.3988426923751831, -0.17212441563606262, -0.05756838992238045, 0.23346205055713654, 0.0991276353597641, -0.44532889127731323, -0.22113245725631714, 0.106356680393219, -0.024403784424066544, -0.09820830821990967, 0.014800285920500755, -0.04806286841630936, 0.048746731132268906, -0.10124107450246811, -0.253330796957016, 0.031561724841594696, -0.12687136232852936, -0.2548310458660126, -0.11187434941530228, -0.07827594131231308, 0.06063112989068031, -0.49171870946884155, 0.2599358558654785, 0.23892880976200104, -0.06394728273153305, 0.21546441316604614, 0.09594810009002686, 0.03264475241303444, -0.17156079411506653, 0.13902132213115692, 0.08033942431211472, 0.5061994194984436, 0.032000452280044556, -0.036581359803676605, 0.14152362942695618, -0.12131127715110779, -0.010536718182265759, 0.1806745082139969, -0.06568021327257156, -0.01507145632058382, -0.05556635931134224, -0.05177146568894386, 0.2417273372411728, 0.25980710983276367, 0.12693773210048676, -0.15987195074558258, -0.053951770067214966, 0.1668393611907959, 0.13089986145496368, 0.22792840003967285, 0.06294514983892441, 0.028273673728108406, 0.10082269459962845, -0.30346477031707764, 0.39839059114456177, 0.07914779335260391, 0.14989104866981506, 0.09879302233457565, 0.15991903841495514, -0.32887035608291626, 0.057297758758068085, -0.05957123637199402, 0.23229825496673584, -0.15893618762493134, -0.1830836683511734, -0.1484585851430893, -0.24891987442970276, 0.009677178226411343, -0.09966417402029037, 0.26953718066215515, -0.09730896353721619, -0.01960785686969757, 0.09864506870508194, 0.2622402310371399, -0.35046374797821045, -0.23327840864658356, -0.25483354926109314, 0.06580395996570587, -0.3251520097255707, -0.09976544231176376, 0.18243464827537537, -0.06334493309259415, 0.38936465978622437, 0.29990774393081665, -0.0197894349694252, 0.13125240802764893, -0.029319697991013527, 0.22581179440021515, -0.0064858547411859035, 0.2267417013645172, 0.00491928169503808, -0.027985235676169395, -0.04678788036108017, -0.11390873044729233, -0.06601011753082275, 0.07415858656167984, 0.056859999895095825, -0.13014593720436096, -0.3839266300201416, 0.3116227984428406, -0.20908211171627045, -0.10451966524124146, 0.028263933956623077, 0.05130596458911896, 0.1286737024784088, -0.05487016588449478, -0.011707756668329239, -0.14568102359771729, 0.03930395469069481, -0.10205480456352234, -0.06989507377147675, 0.073050357401371, -0.1338869333267212, -0.19446498155593872, 0.20429173111915588, -0.41616982221603394, 0.2749914228916168, 0.369295597076416, -0.2970251441001892, -0.07890910655260086, -0.20096825063228607, 0.32478874921798706, -0.023564064875245094, -0.09669498354196548, -0.18882021307945251, 0.023576244711875916, -0.26683396100997925, -0.034826990216970444, 0.07549423724412918, -0.12176647782325745, -0.20406898856163025, 0.07215062528848648, 0.07073289901018143, 0.39193078875541687, 0.12857361137866974, 0.2569901645183563, -0.48706871271133423, -0.25036558508872986, 0.15346075594425201, 0.003328477730974555, -0.07070692628622055, -0.24642644822597504, -0.04041269049048424, -0.19093057513237, 0.3194948136806488, -0.13725320994853973, -0.03492380306124687, 0.046854257583618164, 0.06721293181180954, 0.06902606040239334, -0.09616927802562714, 0.036654021590948105, -0.17798525094985962, 0.021493373438715935, -0.36161401867866516, 0.393059641122818, -0.1452842652797699, -0.3226926922798157, -0.07861024886369705, 0.035909008234739304, -0.15448424220085144, -0.1556721180677414, 0.3084646463394165, -0.05896111577749252, -0.02151060290634632, 0.23131053149700165, 0.06030040979385376, -0.16989389061927795, -0.005837967619299889, 0.12544845044612885, 0.05185260623693466, 0.14113929867744446, -0.38148877024650574, -0.39119952917099, 0.1973903477191925, -0.011260831728577614, 0.1413130909204483, 0.0031074455473572016, 0.11312992125749588, 0.08957017958164215, -0.19983097910881042, 0.3266763687133789, -0.318072646856308, -0.05018836259841919, 0.1342688351869583, -0.3729342818260193, 0.023429010063409805, 0.06518933176994324, -0.17656227946281433, -0.014842560514807701, 0.25171512365341187, 0.47276026010513306, 0.28111428022384644, -0.14025931060314178, -0.0036961117293685675, -0.13842061161994934, 0.14024370908737183, -0.12338858097791672, 0.09424823522567749, -0.017968814820051193, 0.056753747165203094, 0.16915065050125122, 0.06115139275789261, -0.11070507019758224, -0.3336113691329956, 0.03286771848797798, 0.3761786222457886, 0.03799820318818092, 0.19583436846733093, 0.006967110093683004, -0.028111377730965614, -0.1388166844844818, 0.23786506056785583, -0.46691572666168213, -0.015759779140353203, 0.27539050579071045, 0.020004145801067352, 0.205960214138031, -0.2243599146604538, -0.41250354051589966, 0.04819034785032272, 0.060732923448085785, -0.0026752506382763386, 0.14013810455799103, 0.41119304299354553, -0.2279910445213318, -0.7777084708213806, 0.2353704869747162, -0.08129415661096573, 0.00952182337641716, -0.290780633687973, 0.06646542996168137, -0.29391539096832275, -0.33917635679244995, -0.07557510584592819, -0.20500633120536804, -0.358957976102829, -0.0981445163488388, 0.31008216738700867, 0.17550235986709595, -0.26317766308784485, 0.315164715051651, 0.3475991487503052, -0.06424754112958908, -0.0756792426109314, -0.12024011462926865, -0.11547945439815521, -0.2051045298576355, -0.26631349325180054, 0.19594599306583405, 0.062470607459545135, 0.045827120542526245, 0.1699756681919098, -0.1139841303229332, -0.06645800918340683, 0.012990341521799564, -0.5971788763999939, 0.06560201942920685, -0.21219360828399658, 0.12071473896503448, 0.19330701231956482, 0.1167021319270134, -0.015574825927615166, -0.2416052371263504, 0.2296314537525177, -0.3196704387664795, -0.4370694160461426, -0.059857018291950226, -0.15931472182273865, 0.10282634943723679, -0.3726233243942261, -0.15481364727020264, -0.19046714901924133, -0.31480634212493896, 0.18479719758033752, 0.0559416189789772, 0.016165077686309814, 0.31048497557640076, 0.16408392786979675, 0.09337376803159714, -0.31759676337242126, 0.04697676748037338, -0.024412255734205246, -0.15497790277004242, 0.169342502951622, -0.22494077682495117, -0.400802880525589, 0.03340649977326393, 0.010663433000445366, 0.09757209569215775, -0.314725786447525, -0.4104326367378235, -0.3181370496749878, -0.04039333015680313, 0.5853021740913391, 0.3685545027256012, -0.07700569182634354, 0.28994816541671753, 0.13161006569862366, -0.2970890998840332, -0.0523829311132431, -0.3068110942840576, 0.0330357700586319, -0.1884210854768753, 0.02313430793583393, -0.16921484470367432, 0.08825993537902832, -0.07096291333436966, 0.6686915159225464, -0.37556546926498413, -0.1222006231546402, 0.5347420573234558, -0.04926147311925888, 0.3575076162815094, 0.016933908686041832, -0.0162533950060606, 0.061512548476457596, 0.06712173670530319, 0.26613882184028625, 0.18947218358516693, -0.10995198786258698, -0.4191838204860687, -0.045481402426958084, -0.41664692759513855, -0.03615779057145119, -0.22573880851268768, -0.00537600414827466, 0.562857449054718, -0.01406852062791586, 0.16471931338310242, 0.012068187817931175, 0.017397234216332436, -0.26951587200164795, 0.2594313621520996, 0.0008519500261172652, -0.16607683897018433, -0.06064910441637039, -0.1289086788892746, -0.06384338438510895, -0.3101232945919037, 0.05701443925499916, 0.23506508767604828, -0.057089295238256454, -0.02457202970981598, -0.25838014483451843, 0.13420559465885162, -0.10568070411682129, 0.40050366520881653, 0.2934621274471283, 0.1665642410516739, 0.21354001760482788, 0.07015285640954971, -0.20364227890968323, -0.1704910695552826, -0.1556849330663681, -0.0211957935243845, 0.383571058511734, 0.05286046117544174, -0.43895792961120605, -0.1754424273967743, 0.30047595500946045, 0.282010018825531, 0.002746043959632516, -0.015314588323235512, -0.5284618735313416, -0.2185237854719162, -0.1631641387939453, 0.12464334815740585, 0.09851934760808945, 0.23085246980190277, -0.18326763808727264, 0.06241995096206665, 0.03809487447142601, -0.1195349469780922, -0.18242503702640533, 0.37105315923690796, 0.030995886772871017, -0.13675682246685028, -0.00744782667607069, -0.08815377950668335, -0.03576671704649925, -0.057918015867471695, 0.35144636034965515, 0.046407513320446014, -0.2605164051055908, -0.12233185023069382, 0.22316588461399078, 0.05232333764433861, 0.17100930213928223, 0.005762087181210518, 0.1916312575340271, -0.12438064813613892, 0.02814992144703865, 0.1198757216334343, 0.13905347883701324, 0.34975337982177734, -0.035048577934503555, 0.2092648446559906, 0.24151672422885895, 0.3253231942653656, -0.05782664194703102, 0.06410089135169983, -0.03398331254720688, 0.23010510206222534, -0.14371804893016815, 0.22098521888256073, 0.04516500234603882, 0.8207977414131165, 0.033035073429346085, 0.27022504806518555, 0.6261536478996277, -0.23622353374958038, 0.3250901997089386, 0.11724328249692917, 0.20002789795398712, -0.35811755061149597, 0.003305381629616022, 0.2600870132446289, -0.022862261161208153, 0.08475150167942047, -0.11780912429094315, 0.018182342872023582, 0.028780585154891014, 0.11126574873924255, -0.009279576130211353, 0.024855321273207664, 0.17817814648151398, 0.12078715115785599, -0.012758108787238598, -0.38651391863822937, 0.1847657561302185, -0.009846072643995285, 0.24345442652702332, -0.17259328067302704, -0.30181369185447693, 0.28097355365753174, -0.34565815329551697, 0.004491110797971487, 0.3744015693664551, 0.017819158732891083, 0.10272771865129471, 0.2606959342956543, -0.20440402626991272, -0.11828406900167465, 0.08586210757493973, -0.016633102670311928, -0.09522891789674759, -0.1101047694683075, 0.3050878047943115, 0.07270026206970215, -0.25838702917099, -0.14428025484085083, 0.31660541892051697, 0.05602734535932541, -0.24286235868930817, -0.3549965023994446, 0.2014133334159851, 0.046935662627220154, -0.023746732622385025, -0.16755296289920807, 0.03150375932455063, -0.015252520330250263, -0.04136671498417854, 0.1499980241060257, -0.04676143452525139, 0.10183904320001602, -0.20626813173294067, 0.25746554136276245, 0.055767420679330826, -0.021987270563840866, -0.0316203273832798, 0.21303720772266388, -0.17930297553539276, -0.2644486129283905, 0.420232892036438, -0.10429463535547256, 0.06948111206293106, 0.3385530710220337, 0.3837929368019104, -0.31168264150619507, -0.21220281720161438, -0.22779634594917297, 0.06192342936992645, -0.5709694623947144, -0.007539120502769947, 0.29051119089126587, -0.11692489683628082, 0.05153843015432358, 0.31122472882270813, -0.01898997649550438, -0.0013942229561507702, 0.055565860122442245, -0.030472291633486748, -0.11319092661142349, 0.10015489161014557, -0.05738149955868721, -0.016594896093010902, 0.43993785977363586, 0.43645650148391724, 0.147283673286438, -0.10395755618810654, -0.4113297164440155, 0.06733278930187225, -0.1125502809882164, 0.13810107111930847, -0.29099321365356445, -0.2318253070116043, 0.23600146174430847, 0.12901081144809723, 0.2740168273448944, 0.08681823313236237, -0.11107654124498367, -0.33849602937698364, -0.13229350745677948, 0.0018456419929862022, -0.00488146860152483, -0.07170958071947098, 0.17922735214233398, 0.2255893349647522, 0.08202755451202393, 0.1244025006890297, 0.309689462184906, -0.02950851246714592, -0.15038885176181793, 0.28982067108154297, 0.14251819252967834, 0.035309527069330215, 0.14658306539058685, -0.20731645822525024, -0.14824669063091278, 0.27730774879455566, 0.11305437237024307, -0.028623653575778008, -0.1440725475549698, 0.02683701366186142, 0.2978823482990265, -0.06214209273457527, -0.11099671572446823, 0.17891182005405426, 0.13441696763038635, -0.229899063706398, -0.3243171274662018, -0.2257203608751297, 0.25010156631469727, 0.14451292157173157, -0.22579704225063324, -0.1727878451347351, 0.3819533586502075, 0.34309613704681396, -0.4943428635597229, -0.09078257530927658, -0.03165275603532791, 0.13632377982139587, 0.08021774888038635, 0.035016968846321106, -0.01992756687104702, -0.09529811888933182, 0.19674548506736755, 0.37013790011405945, 0.15144406259059906, 0.022353267297148705, -0.22847169637680054, 0.07450005412101746, -0.29800525307655334, -0.12117161601781845, 0.4549673795700073, 0.14979912340641022, 0.24900996685028076, 0.024707971140742302, -0.12158216536045074, 0.05981244146823883, -0.2983396649360657, 0.17507025599479675, -0.1613069474697113, -0.13639214634895325, -0.11715696007013321, 0.37931445240974426, 0.2954331338405609, -0.17823687195777893, 0.18234071135520935, 0.40031635761260986, 0.27450287342071533, -0.13605381548404694, -0.05157797038555145, 0.6059238314628601, -0.1846618950366974, -0.046274539083242416, -0.06225398927927017, 0.12437975406646729, 0.0385914109647274, 0.2332673966884613, -0.03192318603396416, 0.04914691299200058, 0.20328933000564575, 0.0685303583741188, -0.18216469883918762, -0.35821467638015747, 0.0103542385622859, 0.08032309263944626, 0.21480529010295868, -0.022548239678144455, 0.29840341210365295, 0.21420852839946747, -0.19256338477134705, -0.19641031324863434, 0.29846838116645813, 0.43374207615852356, 0.18355531990528107, -0.05435975268483162, -0.16055713593959808, -0.20270583033561707, 0.032856643199920654, -0.2084275782108307, 0.17026233673095703, 0.22158583998680115, 0.5038292407989502, 0.1546587347984314, 0.19079618155956268, -0.3705565929412842, 0.03324022889137268, 0.1691540777683258, -0.024702781811356544, 0.06291399896144867, 0.06388388574123383, -0.02977120131254196, -0.2653668224811554, -0.3680840730667114, -0.1542310267686844, -0.3825881779193878, 0.26478928327560425, 0.09803896397352219, 0.26493701338768005, -0.01504101138561964, -0.4861193597316742, 0.14171940088272095, 0.18460144102573395, 0.6637269854545593, 0.20696578919887543, 0.2684612274169922, -0.10883849859237671, -0.09988816827535629, -0.43463262915611267, 0.31149211525917053, -0.3065357506275177, 0.04217982292175293, -0.05226961523294449, 0.021455764770507812, -0.10136387497186661, 0.2282586693763733, 0.004561377689242363, 0.07578197121620178, -0.09980536252260208, -0.2323070913553238, -0.3131774365901947, 0.3172435462474823, 0.08761841058731079, -0.2602441608905792, 0.1048862412571907, -0.14565972983837128, 0.23332564532756805, -0.4985123574733734, 0.25983959436416626, -0.24327808618545532, -0.009071686305105686, -0.18881440162658691, 0.31205084919929504, 0.22287295758724213, 0.12769682705402374, 0.15133175253868103, -0.0133230434730649, -0.062832310795784, -0.14174768328666687, -0.3774043321609497, -0.24694541096687317, 0.1444803923368454, -0.008526644669473171, 0.16544659435749054, 0.06907684355974197, -0.11877425760030746, -0.20459885895252228, 0.4295691251754761, -0.004078597296029329, 0.07801555097103119, 0.16641972959041595, 0.25787240266799927, 0.11757772415876389, -0.07065605372190475, -0.22398675978183746, 0.05184880271553993, 0.020097879692912102, -0.20555123686790466, -0.434171587228775, -0.5926017761230469, 0.3476408123970032, -0.4550386965274811, 0.057018864899873734, 0.06460589915513992, 0.14823979139328003, 0.1230563372373581, -0.39434677362442017, -0.4716581702232361, 0.3042541444301605, 0.10116850584745407, 0.19490930438041687, -0.28988972306251526, 0.1886673867702484, 0.0005849407752975821, -0.08152281492948532, -0.05912536010146141, 0.11336691677570343, 0.2314944863319397, -0.2264799326658249, 0.08931621164083481, -0.17145080864429474 ]
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.1463128924369812, -0.08252372592687607, -0.049764927476644516, -0.08211467415094376, 0.15667201578617096, -0.21917781233787537, 0.11781007796525955, 0.41890615224838257, -0.2502535581588745, 0.12906713783740997, 0.07649267464876175, 0.28078582882881165, -0.20306497812271118, -0.1170995756983757, 0.06094958260655403, -0.17672686278820038, 0.12942157685756683, 0.26139333844184875, -0.04325717315077782, -0.011817670427262783, -0.11813205480575562, 0.3794071078300476, -0.357939749956131, 0.4410785734653473, -0.17414605617523193, 0.00802583433687687, 0.18473125994205475, 0.10682285577058792, -0.2745459973812103, -0.7176750302314758, 0.3703353703022003, -0.25565439462661743, 0.1187359094619751, -0.1453179121017456, -0.00011222979082958773, 0.1098700761795044, 0.48448312282562256, 0.1264277845621109, 0.20483526587486267, -0.28691738843917847, 0.39342400431632996, -0.7273049354553223, 0.32189252972602844, -0.09298128634691238, -0.0015564513159915805, -0.3426617980003357, 0.2967848479747772, 0.7822849154472351, 0.39966484904289246, 0.1758710741996765, 0.21563969552516937, 0.5306108593940735, 0.3595182001590729, 0.3860239088535309, 0.3381447494029999, -0.23136302828788757, -0.06789873540401459, 0.2951614260673523, 0.0531928651034832, -0.5167248845100403, -0.04438694939017296, 0.1509312242269516, -0.18117710947990417, -0.11927028745412827, 0.016909975558519363, -0.1557047814130783, 0.29614731669425964, -0.26038265228271484, -0.38141122460365295, 0.08686336874961853, -0.20230552554130554, -0.24438920617103577, -0.19004283845424652, -0.09651435911655426, 0.20095422863960266, -0.4492751657962799, 0.3753637373447418, 0.2514258325099945, -0.09266342967748642, 0.2638774812221527, 0.10204976052045822, 0.143764466047287, -0.2070806324481964, 0.2501847445964813, 0.16161829233169556, 0.7215542793273926, 0.17723430693149567, 0.1274002343416214, 0.17931760847568512, -0.09065310657024384, 0.2533273994922638, 0.15644948184490204, -0.16776472330093384, 0.24138857424259186, -0.09136173874139786, -0.12017860263586044, 0.10222984850406647, 0.39620280265808105, 0.049223609268665314, -0.17263104021549225, -0.10694790631532669, -0.03383070230484009, 0.20057889819145203, 0.16126574575901031, 0.1280684620141983, -0.02609744481742382, 0.2030237913131714, -0.23246626555919647, 0.24620641767978668, 0.15907342731952667, 0.14450961351394653, 0.07290515303611755, -0.025188861414790154, -0.3879302740097046, 0.14516524970531464, -0.06616415083408356, 0.37075841426849365, -0.19803501665592194, -0.2538054585456848, -0.2639264166355133, -0.36390775442123413, 0.019596250727772713, -0.02194739133119583, 0.1275431513786316, -0.11621936410665512, 0.18948642909526825, 0.05785302072763443, 0.19391657412052155, -0.3054688572883606, -0.1874006688594818, -0.04253968596458435, 0.11297667771577835, -0.35204896330833435, -0.013548135757446289, 0.08328137546777725, -0.12247737497091293, 0.4979560673236847, 0.22464126348495483, -0.15181414783000946, 0.02973932959139347, 0.0791248083114624, 0.1071714386343956, 0.03686050325632095, 0.26148998737335205, -0.06842431426048279, -0.017972754314541817, 0.0009733326733112335, -0.08202562481164932, -0.2350456416606903, 0.2638753056526184, -0.013376983813941479, -0.273542195558548, -0.46033990383148193, 0.20244556665420532, -0.3389338552951813, -0.12792573869228363, 0.1861552894115448, 0.06156417354941368, 0.17767372727394104, -0.35248613357543945, 0.041945695877075195, -0.3899519741535187, 0.12608975172042847, 0.013641919009387493, -0.12447891384363174, -0.04134923219680786, -0.00704156281426549, -0.19729574024677277, -0.03209751471877098, -0.4223335087299347, 0.39236652851104736, 0.3698945641517639, -0.32517945766448975, -0.02235952951014042, -0.097862109541893, 0.2279033064842224, 0.22458645701408386, -0.3489605784416199, -0.3137609362602234, 0.05636442080140114, -0.199392169713974, -0.1143459677696228, 0.24629376828670502, -0.02725471369922161, -0.18281318247318268, -0.019140396267175674, -0.04096640646457672, 0.3157665729522705, 0.08235689997673035, 0.13199590146541595, -0.48625481128692627, -0.25677502155303955, 0.1407625526189804, -0.02239008992910385, 0.02371729165315628, -0.15701128542423248, -0.04418118670582771, -0.04454149305820465, 0.343151330947876, -0.016679130494594574, 0.03396414592862129, -0.014107444323599339, 0.017517035827040672, 0.1112060546875, -0.11989185959100723, 0.0779934972524643, -0.01346847414970398, -0.02267935872077942, -0.5015803575515747, 0.3683544993400574, -0.19193874299526215, -0.35514479875564575, -0.10083968937397003, -0.007090071216225624, -0.044730640947818756, -0.10069172084331512, 0.16121160984039307, -0.14297689497470856, 0.07151394337415695, 0.2534146308898926, -0.00675793644040823, -0.3259923756122589, -0.025591159239411354, 0.10060785710811615, 0.0014620623551309109, 0.110867939889431, -0.36914145946502686, -0.5070372819900513, 0.028635410591959953, 0.20586198568344116, 0.2018129974603653, 0.11197738349437714, 0.09819579869508743, -0.030325472354888916, -0.30821624398231506, 0.28590768575668335, -0.4791696071624756, -0.1952311247587204, 0.11722762882709503, -0.47695836424827576, 0.043651677668094635, -0.014215508475899696, -0.16871792078018188, 0.10052870959043503, 0.4360942244529724, 0.4499979019165039, 0.19650398194789886, -0.05310256406664848, -0.1498880535364151, -0.05458054691553116, 0.1406521499156952, -0.1640530824661255, 0.025962727144360542, -0.0036244713701307774, 0.14700032770633698, 0.1947021335363388, 0.10014176368713379, -0.010953225195407867, -0.12981313467025757, -0.12075404077768326, 0.39678895473480225, 0.062210362404584885, 0.05534050986170769, 0.030193112790584564, 0.012404242530465126, -0.11788316816091537, 0.33874624967575073, -0.35474056005477905, 0.08355575054883957, 0.30392491817474365, -0.07180464267730713, 0.33680522441864014, -0.18030676245689392, -0.29058125615119934, 0.1546371877193451, 0.16772641241550446, 0.0824359655380249, 0.21340332925319672, 0.4092853367328644, -0.16270248591899872, -0.6508200168609619, 0.1368493139743805, -0.06870394200086594, 0.15759582817554474, -0.19141170382499695, 0.06354454904794693, -0.2776799201965332, -0.4018157422542572, -0.18635162711143494, -0.29300618171691895, -0.3364790976047516, -0.1061578020453453, 0.1684434413909912, 0.34113070368766785, -0.07111462205648422, 0.3280320465564728, 0.3384559452533722, -0.1754704713821411, -0.2444177269935608, -0.048176150768995285, -0.15087109804153442, -0.25046470761299133, -0.3752194344997406, 0.06708282977342606, 0.20004530251026154, 0.19006669521331787, 0.16156820952892303, -0.14503127336502075, -0.22012199461460114, 0.08467338979244232, -0.490734338760376, 0.007579208817332983, -0.2482956200838089, 0.19811297953128815, 0.19546803832054138, -0.009468324482440948, -0.12593233585357666, -0.2910662293434143, 0.15336580574512482, -0.3169589638710022, -0.37137648463249207, -0.14567780494689941, -0.34502875804901123, 0.20035146176815033, -0.30355948209762573, -0.037083983421325684, -0.4336918592453003, -0.27298423647880554, 0.18493422865867615, 0.08836765587329865, 0.0782102718949318, 0.322136789560318, 0.09230871498584747, 0.15174299478530884, -0.27811378240585327, -0.16424356400966644, 0.12563960254192352, -0.06984926015138626, 0.19683429598808289, -0.036218974739313126, -0.22000546753406525, 0.1404721587896347, -0.026115035638213158, 0.10262434184551239, -0.23047053813934326, -0.425800085067749, -0.27391868829727173, -0.028199240565299988, 0.616557776927948, 0.24065107107162476, -0.10698038339614868, 0.43140751123428345, 0.07985364645719528, -0.1554449200630188, 0.015634503215551376, -0.10812068730592728, -0.019561415538191795, -0.21965815126895905, 0.11453457176685333, -0.013499787077307701, 0.1643049418926239, 0.028432903811335564, 0.752428412437439, -0.20219874382019043, -0.0865357518196106, 0.5082697868347168, -0.04274884611368179, 0.2506542503833771, 0.15850935876369476, 0.01162056066095829, -0.07519035786390305, 0.24296309053897858, 0.15515713393688202, 0.016473978757858276, -0.1186719611287117, -0.3167377710342407, 0.10065916925668716, -0.4192095994949341, 0.00811050646007061, -0.07880792766809464, -0.0037511468399316072, 0.42235416173934937, 0.10174677520990372, 0.26470428705215454, -0.10919399559497833, -0.051646292209625244, -0.41518542170524597, 0.18224047124385834, 0.13365407288074493, -0.14402779936790466, -0.00406541395932436, -0.06609726697206497, -0.3085954785346985, -0.4389860928058624, 0.015116937458515167, 0.3585348427295685, -0.000714158290065825, 0.015641212463378906, -0.13331471383571625, 0.2848251461982727, -0.06494159996509552, 0.24608145654201508, 0.14472274482250214, 0.0827084332704544, 0.23157763481140137, 0.1617177128791809, -0.24956457316875458, -0.19331732392311096, -0.11359444260597229, -0.03079209290444851, 0.48786869645118713, 0.03402181714773178, -0.31582340598106384, -0.19146449863910675, 0.6278873085975647, 0.2776322662830353, 0.007830947637557983, -0.15954343974590302, -0.5531590580940247, -0.3403337001800537, -0.09450246393680573, 0.13572882115840912, 0.05958878993988037, 0.22822430729866028, -0.08561617881059647, 0.14255715906620026, -0.02332974784076214, 0.11384524405002594, -0.24027326703071594, 0.2719138562679291, 0.030583404004573822, -0.14174333214759827, -0.08021386712789536, -0.1551508754491806, -0.2209053337574005, 0.0045705209486186504, 0.26990875601768494, 0.2285870909690857, -0.29237040877342224, -0.2940796911716461, 0.37493759393692017, 0.0400974377989769, 0.08916833996772766, 0.07626013457775116, 0.19069480895996094, -0.13890340924263, 0.027994422242045403, 0.19098837673664093, 0.010770121589303017, 0.33022329211235046, 0.009562619030475616, 0.20527885854244232, 0.20499202609062195, 0.3583041727542877, 0.07590743899345398, 0.0203049648553133, 0.11601512134075165, 0.06303735077381134, -0.3131760060787201, 0.1893792450428009, 0.11925287544727325, 0.7727375030517578, 0.04688747227191925, 0.27681171894073486, 0.7808107733726501, 0.03812086209654808, 0.3821668326854706, 0.25577592849731445, 0.14067493379116058, -0.3187008202075958, 0.0656813234090805, 0.17765073478221893, -0.005766050890088081, 0.16087652742862701, -0.10354349762201309, -0.08716794848442078, 0.15066273510456085, 0.31703558564186096, -0.10861043632030487, 0.14549438655376434, 0.17819476127624512, -0.12006553262472153, 0.013112492859363556, -0.45513638854026794, 0.043202728033065796, -0.07286626100540161, 0.341137170791626, -0.17381355166435242, -0.30980968475341797, 0.26176586747169495, -0.24209825694561005, -0.06314858049154282, 0.2948921322822571, 0.07290223240852356, 0.18008163571357727, 0.18674664199352264, -0.09796666353940964, -0.016963079571723938, 0.22307921946048737, -0.004704093094915152, -0.1608378142118454, -0.024356888607144356, 0.22523289918899536, 0.07776210457086563, -0.38796234130859375, -0.07551787793636322, 0.3331819772720337, 0.053972188383340836, -0.2730441391468048, -0.38422155380249023, 0.11627837270498276, 0.004767401143908501, 0.022652024403214455, -0.05306393280625343, -0.009460851550102234, 0.046762723475694656, 0.09045287221670151, 0.04588361829519272, -0.06030753627419472, 0.05284538120031357, -0.12393762916326523, 0.17231883108615875, -0.008557901717722416, -0.07097166031599045, -0.02104918844997883, 0.05375552177429199, -0.3723713457584381, -0.10130839049816132, 0.39566686749458313, 0.01736140064895153, 0.08255565911531448, 0.5533749461174011, 0.13420726358890533, -0.17259839177131653, -0.168562650680542, 0.08882085233926773, -0.12049350887537003, -0.5595664978027344, -0.06490807980298996, 0.391589879989624, 0.0053679500706493855, 0.052430883049964905, 0.31427425146102905, 0.17299632728099823, 0.07282580435276031, -0.14096438884735107, -0.15776260197162628, -0.15990190207958221, 0.2311980277299881, -0.030348090454936028, -0.22180403769016266, 0.3306160271167755, 0.43561795353889465, 0.1888483762741089, -0.24541668593883514, -0.2971187233924866, 0.024344801902770996, -0.1334155648946762, 0.221260204911232, -0.24712905287742615, -0.10504122078418732, 0.05766046792268753, 0.08808944374322891, 0.11661440879106522, 0.03580361604690552, -0.05574893578886986, -0.23652219772338867, -0.18903633952140808, 0.09930368512868881, 0.08744527399539948, -0.17119072377681732, 0.03290693089365959, 0.14433351159095764, 0.17435577511787415, 0.12582038342952728, -0.02526468224823475, 0.02631569840013981, -0.07805798202753067, 0.35053688287734985, 0.1515221893787384, 0.18355999886989594, -0.08832261711359024, -0.043365806341171265, -0.3393916189670563, 0.21555519104003906, 0.07555567473173141, 0.17423464357852936, 0.055946990847587585, 0.08062685281038284, 0.10382770746946335, -0.22359390556812286, -0.13624446094036102, 0.046538785099983215, 0.06848043203353882, -0.20911897718906403, -0.3051457107067108, -0.12131748348474503, 0.159995436668396, 0.22683648765087128, -0.24001523852348328, -0.2193303108215332, 0.39596027135849, 0.23510809242725372, -0.3919549882411957, 0.025627674534916878, -0.059080131351947784, 0.07321199029684067, -0.11733247339725494, -0.031286388635635376, 0.04472474381327629, -0.2196572721004486, 0.2954952120780945, 0.2880699038505554, 0.14277467131614685, -0.11839684098958969, -0.11739370971918106, 0.2002963274717331, -0.06274382025003433, -0.03695493936538696, 0.40635111927986145, 0.04679016023874283, 0.31461670994758606, -0.11460492014884949, -0.12961924076080322, 0.2657223641872406, -0.2911003530025482, 0.2943758964538574, -0.3425343632698059, -0.16961833834648132, -0.22829630970954895, 0.3689382076263428, 0.2435632348060608, -0.24195261299610138, 0.2854419946670532, 0.3730117380619049, 0.25428855419158936, -0.11983365565538406, 0.03580580651760101, 0.6180187463760376, -0.14890381693840027, -0.12169629335403442, -0.2572513222694397, 0.20553693175315857, 0.061905089765787125, 0.25560998916625977, 0.021298179402947426, 0.19015896320343018, 0.24968649446964264, 0.202226459980011, -0.2579721510410309, -0.3524661660194397, -0.05198806896805763, 0.33205446600914, 0.2005598247051239, -0.13076823949813843, 0.2552771270275116, 0.1283193677663803, -0.1924659013748169, -0.256771981716156, 0.45308032631874084, 0.6163249015808105, 0.26572170853614807, 0.10320214927196503, -0.2209654301404953, -0.26736345887184143, 0.07525767385959625, -0.18730399012565613, 0.24758806824684143, 0.27743422985076904, 0.7746674418449402, -0.01076903473585844, 0.09448087215423584, -0.2811930775642395, -0.011721886694431305, 0.15501707792282104, -0.24542337656021118, -0.014271363615989685, -0.01597677543759346, 0.05520857870578766, -0.3199707567691803, -0.22739210724830627, 0.11109477281570435, -0.3247717618942261, 0.3930577337741852, 0.09140819311141968, 0.3334456980228424, -0.0036917501129209995, -0.44678327441215515, 0.06859346479177475, 0.09602588415145874, 0.48245862126350403, 0.25092703104019165, 0.1322212815284729, -0.23483899235725403, -0.17131607234477997, -0.5863734483718872, 0.23887145519256592, -0.42932501435279846, -0.06943777203559875, 0.11203815042972565, -0.10984934866428375, -0.35797667503356934, 0.2536035478115082, -0.12136541306972504, 0.15745529532432556, -0.11950326710939407, -0.21464040875434875, -0.18706609308719635, 0.3027910590171814, 0.21912695467472076, -0.2342187464237213, -0.028915654867887497, -0.25435054302215576, 0.2548307776451111, -0.5901119112968445, 0.081479512155056, -0.23192861676216125, -0.03426618129014969, -0.06908369809389114, 0.5230584144592285, 0.19596260786056519, 0.19450312852859497, 0.3007865250110626, 0.08615744858980179, 0.12749768793582916, -0.1984216570854187, -0.39191102981567383, -0.3851028382778168, 0.2205199897289276, -0.07965903729200363, 0.15767435729503632, -0.14546924829483032, -0.08244659006595612, -0.2672024667263031, 0.4386240243911743, -0.19763341546058655, 0.03266765549778938, 0.274830162525177, 0.15249961614608765, 0.04484781622886658, 0.07655070722103119, -0.1438392996788025, -0.014223868027329445, 0.0946592167019844, -0.19707608222961426, -0.5314704775810242, -0.45984265208244324, 0.20829656720161438, -0.5019980072975159, 0.052852336317300797, 0.02066667750477791, 0.23188000917434692, 0.12145078927278519, -0.43940025568008423, -0.4035782217979431, 0.16222411394119263, 0.27161747217178345, 0.22007440030574799, -0.16768816113471985, 0.2431369572877884, 0.195308655500412, 0.024698013439774513, -0.012545588426291943, -0.14467117190361023, 0.12019627541303635, -0.31544482707977295, 0.14798060059547424, -0.23799437284469604 ]
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.16599518060684204, -0.19047501683235168, 0.11394309997558594, 0.3808882236480713, 0.21837224066257477, -0.004778483882546425, 0.18851029872894287, 0.11226709932088852, -0.11108934134244919, -0.21326816082000732, -0.19556547701358795, 0.28855159878730774, -0.03979530557990074, 0.5394513607025146, 0.19263146817684174, -0.13461144268512726, -0.21173587441444397, 0.21866199374198914, -0.11622876673936844, -0.026285342872142792, 0.039408568292856216, -0.1943165510892868, 0.06868243962526321, -0.11595049500465393, -0.3702632486820221, 0.1318920999765396, -0.23842820525169373, -0.01792677491903305, 0.2592282295227051, -0.23462747037410736, 0.5442931056022644, 0.3445179760456085, 0.45950236916542053, 0.25234928727149963, -0.00012519613665062934, 0.03301596641540527, -0.03918539360165596, -0.1448281705379486, -0.29244837164878845, -0.12559249997138977, -0.21343564987182617, -0.22338899970054626, 0.0898033082485199, -0.24378250539302826, -0.3222338855266571, -0.38772112131118774, 0.1589098423719406, -0.565819501876831, 0.4574594497680664, -0.09784497320652008, 0.030662402510643005, -0.08066908270120621, -0.20104476809501648, -0.10277765244245529, -0.1274462640285492, 0.39953237771987915, -0.004882765933871269, 0.40215781331062317, 0.6236609220504761, 0.30711662769317627, 0.11425866186618805, 0.01861617900431156, 0.18922683596611023, 0.09230457246303558, 0.2961040735244751, -0.13040384650230408, -0.032115645706653595, 0.03738338500261307, 0.035192400217056274, 0.3731410503387451, 0.9288991093635559, -0.38710078597068787, -0.057319074869155884, -0.10395073890686035, -0.00223177345469594, -0.29162657260894775, -0.27408987283706665, 0.17821094393730164, 0.17065277695655823, 0.11698789149522781, -0.2853216230869293, -0.34645935893058777, -0.29748624563217163, 0.1213216707110405, 0.29557275772094727, 0.02473427541553974, -0.08608061820268631, 0.22276632487773895, -0.2029816210269928, -0.08768954873085022, 0.0028409408405423164, -0.24094845354557037, -0.1546614170074463, 0.04819720983505249, 0.12506639957427979, -0.12669341266155243, -0.43188759684562683, 0.12427808344364166, 0.3226209282875061, 0.4385860860347748, 0.30704501271247864, 0.24883624911308289, -0.34757199883461, 0.054390039294958115, 0.4337315857410431, 0.07278759032487869, 0.3920844495296478, 0.2755165100097656, 0.0898749902844429, 0.2174168974161148, -0.4256950318813324, -0.16050301492214203, -0.47328072786331177, 0.4096369743347168, 0.2828015685081482, -0.04783964902162552, 0.025860333815217018, -0.2413187026977539, -0.005771706346422434, -0.05537940189242363, -0.3146704137325287, -0.1710859090089798, 0.22007301449775696, 0.07878116518259048, -0.12681962549686432, 0.1943233162164688, -0.0760902464389801, 0.25407838821411133, -0.060548022389411926, -0.33722928166389465, 0.007238163612782955, 0.03850206732749939, -0.3324480950832367, 0.17061811685562134, 0.3277178108692169, -0.4035724103450775, 0.20550031960010529, 0.3074684739112854, -0.14984557032585144, -0.11529794335365295, 0.36843574047088623, 0.1104314848780632, -0.2815547287464142, -0.5091330409049988, -0.15930700302124023, 0.0936785340309143, 0.21872173249721527, 0.1501329094171524, -0.33803391456604004, 0.03355002775788307, -0.12402740865945816, -0.3322887420654297, -0.1301243156194687, 0.015854623168706894, -0.2962246835231781, 0.03134855628013611, -0.10646536201238632, 0.42954304814338684, -0.0012111463584005833, -0.35598278045654297, -0.21098002791404724, -0.10439946502447128, -0.2914378345012665, -0.06807911396026611, 0.1657020002603531, 0.25905895233154297, -0.5212169885635376, -0.12868918478488922, -0.11514328420162201, 0.0005088333855383098, 0.4149293005466461, 0.24992229044437408, -0.4169629216194153, 0.21721166372299194, -0.1238052025437355, -0.18360662460327148, 0.45533308386802673, -0.07979488372802734, -0.010838880203664303, -0.1229192316532135, 0.20099128782749176, 0.16298358142375946, 0.08261682838201523, 0.0667768344283104, 0.1893802136182785, -0.2476026564836502, -0.34426942467689514, 0.5017464756965637, 0.10475173592567444, -0.24573267996311188, -0.07677187025547028, -0.2122575342655182, 0.11834954470396042, 0.03983648493885994, -0.23080991208553314, 0.1301291286945343, 0.08505546301603317, 0.2706216871738434, 0.020123764872550964, -0.24455635249614716, 0.11472374200820923, -0.13402780890464783, 0.021020906046032906, 0.3941363990306854, 0.1071009635925293, -0.24272611737251282, -0.5016255378723145, 0.17252254486083984, -0.3441223204135895, -0.2779962420463562, 0.502592921257019, -0.5051970481872559, -0.3756367266178131, -0.2438969910144806, -0.1494171917438507, -0.023122180253267288, 0.011768919415771961, 0.526894211769104, 0.10758084803819656, -0.07938476651906967, -0.10466396063566208, 0.1127328872680664, -0.11624471843242645, -0.020602712407708168, -0.09464982897043228, 0.2827680706977844, 0.1337834894657135, 0.032741837203502655, 0.08084975928068161, 0.5369933247566223, 0.03915201127529144, -0.052232809364795685, 0.16951045393943787, 0.2841658592224121, 0.13770842552185059, 0.17230580747127533, 0.08901797980070114, 0.11356107890605927, 0.12533430755138397, 0.12432464957237244, 0.41573548316955566, -0.062338776886463165, 0.3338623046875, -0.14368101954460144, -0.4933611750602722, 0.23440469801425934, 0.08539881557226181, 0.0032416172325611115, 0.09422866255044937, -0.099034383893013, 0.12699012458324432, -0.11948832869529724, -0.16381685435771942, -0.11604949831962585, -0.16185174882411957, 0.1668630987405777, -0.049061600118875504, 0.33707281947135925, -0.3186076283454895, -0.05876827612519264, 0.23349517583847046, -0.16766653954982758, 0.2127048373222351, -0.12482967972755432, -0.1789676398038864, -0.11506917327642441, 0.3755522668361664, -0.1696300506591797, 0.08149224519729614, 0.051055487245321274, 0.250518798828125, -0.009340055286884308, -0.07317350804805756, 0.05967418849468231, 0.24544885754585266, -0.19965440034866333, 0.19396871328353882, -0.2038097381591797, 0.12295247614383698, 0.07256969809532166, 0.04029218479990959, -0.05329212173819542, 0.2882683575153351, 0.0353524275124073, -0.10955720394849777, 0.1736059933900833, -0.7263826727867126, -0.2955489158630371, -0.36417925357818604, 0.03081936202943325, 0.02209620550274849, 0.03434808924794197, -0.2832486927509308, 0.05230541527271271, 0.1293507218360901, 0.15105144679546356, 0.10382574051618576, 0.5219677090644836, -0.30550503730773926, -0.08181785047054291, 0.05441205948591232, -0.32738447189331055, -0.3867364525794983, 0.013374462723731995, 0.45937326550483704, 0.3856508731842041, 0.48696398735046387, -0.020382648333907127, 0.07977644354104996, -0.42135247588157654, -0.2247268259525299, 0.20085817575454712, 0.22267280519008636, -0.07481535524129868, 0.17452014982700348, 0.01668250933289528, -0.37185168266296387, -0.28647512197494507, 0.19825734198093414, 0.11779775470495224, 0.21608267724514008, -0.1023503988981247, -0.48042014241218567, 0.1640373319387436, -0.1767154037952423, -0.041749317198991776, -0.07909148186445236, -0.2007601261138916, 0.2851944863796234, -0.005826744716614485, -0.03023909404873848, 0.3705194592475891, -0.27988165616989136, 0.20288477838039398, -0.11043783277273178, 0.2872951328754425, -0.23973220586776733, -0.2474447637796402, 0.2628937065601349, -0.14475110173225403, -0.14902882277965546, -0.14190751314163208, -0.33198508620262146, 0.15676063299179077, 0.5356497168540955, -0.24688133597373962, -0.3932582139968872, -0.10057546943426132, -0.2145654261112213, 0.29228976368904114, 0.22706930339336395, 0.08910749852657318, 0.008877979591488838, 0.16338032484054565, -0.03813740611076355, -0.11594969034194946, 0.24373365938663483, -0.08338761329650879, 0.16441123187541962, 0.450898140668869, 0.04242606461048126, 0.22399982810020447, 0.32124221324920654, 0.21811726689338684, -0.4716590344905853, 0.4767276346683502, -0.10400335490703583, 0.42643284797668457, 0.032202716916799545, 0.04942362383008003, 0.24937479197978973, -0.09989523887634277, 0.11824356019496918, 0.224037766456604, 0.019833412021398544, 0.14883606135845184, -0.14245206117630005, 0.08322453498840332, -0.06747741997241974, -0.48024430871009827, 0.1267702728509903, -0.263029545545578, 0.5065650343894958, 0.2004098743200302, -0.16664184629917145, -0.28212717175483704, 0.011812669225037098, 0.20481479167938232, 0.11156389117240906, 0.15187011659145355, 0.11141402274370193, -0.3922576606273651, 0.11459138244390488, 0.17443495988845825, 0.5108854174613953, 0.0906028300523758, 0.027853159233927727, 0.21188585460186005, 0.00013703215518034995, -0.005502765532582998, 0.06444153189659119, -0.01071688812226057, -0.2585110068321228, 0.061762239784002304, 0.01705017313361168, -0.2340940237045288, -0.31299570202827454, 0.005187131930142641, -0.1482112556695938, 0.21566855907440186, 0.06138215586543083, 0.09373138844966888, -0.5858941078186035, -0.11343478411436081, 0.30568093061447144, 0.4081915616989136, -0.10276421159505844, 0.15593093633651733, 0.2447596937417984, -0.08407144993543625, -0.34235844016075134, -0.12070632725954056, -0.22209656238555908, 0.10915941745042801, 0.07748473435640335, 0.10686101764440536, -0.40605202317237854, 0.17899854481220245, 0.3230232894420624, 0.1436017006635666, 0.5515428185462952, 0.16734115779399872, 0.102503702044487, 0.1422674059867859, 0.06296764314174652, 0.12545698881149292, 0.5182178020477295, -0.27434223890304565, -0.487546443939209, -0.11233218759298325, 0.052731968462467194, 0.3552326560020447, 0.1335093230009079, 0.2686714828014374, -0.26443469524383545, -0.20753327012062073, -0.3050478994846344, -0.24659684300422668, 0.281500905752182, -0.02144697681069374, -0.00895408634096384, -0.43677863478660583, -1.003655195236206, 0.17732639610767365, 0.23417536914348602, -0.02216375805437565, 0.19600720703601837, 0.04429592937231064, -0.0561627559363842, 0.08397046476602554, 0.14821591973304749, 0.8185896873474121, -0.2342245876789093, 0.2623120844364166, 0.29130303859710693, 0.29998743534088135, 0.6729304194450378, -0.1592320054769516, -0.23362070322036743, -0.3155063986778259, 0.07766441255807877, 0.012421846389770508, -0.054890986531972885, 0.40270698070526123, 0.2620367705821991, -0.17704884707927704, 0.32386350631713867, 0.2328760176897049, 0.4149169325828552, 0.047215525060892105, 0.20623433589935303, -0.42156314849853516, -0.2640068233013153, 0.0007394044660031796, -0.02666507475078106, -0.31076228618621826, -0.022259023040533066, -0.22237001359462738, 0.13190698623657227, 0.17689739167690277, 0.10927032679319382, -0.28934091329574585, -0.06797754764556885, -0.21110941469669342, 0.015395746566355228, -0.14339853823184967, -0.45984429121017456, 0.4378587603569031, 0.414333701133728, 0.26069673895835876, 0.2978546917438507, -0.12508562207221985, 0.035193268209695816, -0.13675129413604736, -0.05745898559689522, -0.27233830094337463, 0.05987635627388954, 0.21516896784305573, 0.11797627806663513, -0.046215616166591644, 0.12319604307413101, 0.36750662326812744, 0.1501082330942154, -0.19399315118789673, -0.20788916945457458, 0.31924837827682495, -0.34714704751968384, -0.20804916322231293, 0.11361593008041382, 0.011693720705807209, -0.00004778940638061613, -0.03545128554105759, 0.2170708328485489, -0.05859604850411415, 0.036592815071344376, -0.0799800381064415, 0.050631243735551834, -0.01181190088391304, -0.2164822667837143, 0.28624749183654785, -0.24482859671115875, 0.38015320897102356, 0.05343889445066452, 0.09602583944797516, -0.1239764541387558, 0.15428906679153442, 0.2004522830247879, -0.353552907705307, -0.047287508845329285, 0.04814653471112251, -0.2010813057422638, 0.12576086819171906, 0.24551992118358612, -0.11044949293136597, 0.0416254922747612, 0.10671895742416382, -0.27098971605300903, -0.062190767377614975, 0.25525525212287903, 0.08479276299476624, 0.3913346230983734, 0.033518433570861816, -0.011419589631259441, -0.2339344173669815, -0.07638716697692871, -0.1716611236333847, 0.2520007789134979, 0.2532118558883667, 0.20209848880767822, -0.07556908577680588, 0.06589081138372421, -0.08735623955726624, -0.0437435656785965, -0.03598153963685036, 0.11916415393352509, -0.10458668321371078, -0.03198804706335068, -0.506833016872406, 0.22024136781692505, -0.020825788378715515, -0.18087342381477356, -0.06647799909114838, -0.3200274705886841, 0.07483219355344772, -0.4403782784938812, 0.176910862326622, 0.04938390105962753, -0.07204025983810425, 0.21946710348129272, 0.5647687315940857, 0.05701955407857895, -0.20973312854766846, 0.0016652924241498113, 0.12666960060596466, 0.4100196063518524, 0.37313270568847656, 0.08522521704435349, -0.1460331678390503, -0.11676821857690811, 0.0035767664667218924, 0.23369398713111877, 0.880806565284729, -0.042556971311569214, 0.28946223855018616, 0.13790906965732574, 0.06675472110509872, 0.16705988347530365, 0.36052629351615906, 0.47358545660972595, -0.09060505032539368, 0.23890751600265503, 0.30979815125465393, 0.0023918135557323694, -0.08278386294841766, 0.09480041265487671, 0.1694341003894806, -0.08900697529315948, -0.13276050984859467, 0.3536597788333893, 0.184062197804451, 0.206623375415802, -0.15263475477695465, -0.33179357647895813, 0.17107978463172913, 0.05032986402511597, 0.4426060616970062, 0.27763453125953674, 0.01299469918012619, -0.37711459398269653, -0.03324083238840103, 0.3894674479961395, 0.27867525815963745, -0.4481983780860901, 0.2374076098203659, 0.20647291839122772, 0.0597754530608654, 0.254324346780777, 0.3961917459964752, -0.5807132720947266, -0.010807531885802746, 0.38407453894615173, 0.23699283599853516, 0.3525371551513672, -0.09826634079217911, 0.2982100248336792, 0.10656911134719849, 0.02880617417395115, -0.07409472018480301, 0.13535526394844055, -0.024305468425154686, -0.1885048896074295, -0.2255789190530777, -0.3066186010837555, -0.27145183086395264, 0.005142848007380962, -0.2844659984111786, -0.03926015645265579, -0.24307380616664886, -0.005570190958678722, 0.09138022363185883, -0.42894306778907776, 0.08852323889732361, 0.12821124494075775, 0.11098136007785797, -0.0272959116846323, 0.1762389987707138, 0.2643395960330963, -0.2772351801395416, 0.3040178418159485, 0.3469225764274597, 0.1574384868144989, 0.001345116994343698, -0.0784209817647934, 0.20379456877708435, -0.204414501786232, 0.1393672525882721, -0.17199860513210297, 0.08421189337968826, 0.17829543352127075, -0.3458363115787506, 0.24693474173545837, -0.01791856251657009, 0.059367381036281586, -0.08088097721338272, -0.09425263851881027, -0.2252892553806305, -0.5750338435173035, 0.4838288128376007, 0.24679405987262726, -0.17666937410831451, 0.19535337388515472, 0.13667240738868713, -0.2376326322555542, -0.41505855321884155, 0.33145076036453247, 0.31814298033714294, -0.012796810828149319, -0.17893216013908386, -0.0029142035637050867, 0.16676640510559082, 0.2657192051410675, 0.10690949112176895, -0.10332304984331131, -0.007627031300216913, -0.3208792805671692, -0.7505281567573547, 0.20088349282741547, -0.1550968587398529, -0.5894004106521606, 0.21481788158416748, -0.16069325804710388, 0.27755042910575867, 0.16015954315662384, -0.2683607041835785, -0.005094760097563267, 0.11152450740337372, -0.17543277144432068, -0.1335078626871109, -0.5121632218360901, -0.015176795423030853, -0.03636589273810387, -0.15689656138420105, -0.36663609743118286, -0.07446423918008804, 0.014649797230958939, -0.13923901319503784, -0.025369586423039436, -0.1672610193490982, 0.10738568753004074, -0.4111959934234619, 0.07960964739322662, 0.08112092316150665, 0.31326696276664734, 0.2124059647321701, -0.10553590953350067, -0.20976586639881134, 0.07142148166894913, 0.020107224583625793, 0.3408660590648651, -0.10468223690986633, 0.09429151564836502, -0.5658501982688904, -0.059827838093042374, -0.2669112980365753, -0.12381885945796967, 0.08611206710338593, 0.17400206625461578, -0.1259278804063797, -0.027449291199445724, -0.3547939956188202, -0.10464905947446823, 0.32444849610328674, 0.6672958731651306, -0.22036664187908173, 0.038913387805223465, -0.08828037232160568, 0.23423799872398376, 0.36611199378967285, -0.21473553776741028, -0.36552226543426514, -0.19023819267749786, 0.07046770304441452, -0.27079927921295166, 0.047245100140571594, -0.3562130630016327, 0.122297503054142, 0.2829149067401886, -0.031134234741330147, -0.10608026385307312, -0.07185657322406769, 0.1953955739736557, -0.18440207839012146, -0.1983388066291809, 0.45959892868995667, 0.10700439661741257, -0.12658965587615967, -0.013008891604840755, -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.05277569219470024, -0.018387308344244957, 0.1475318819284439, 0.4042399823665619, 0.21433766186237335, -0.03731585294008255, 0.13150572776794434, 0.1071479320526123, -0.20230214297771454, -0.23726898431777954, -0.19186675548553467, 0.40558937191963196, -0.06352157145738602, 0.5268570184707642, 0.42494887113571167, -0.25872156023979187, -0.1975935846567154, 0.18040351569652557, 0.0004197720845695585, -0.09351781010627747, -0.0021079652942717075, -0.13745954632759094, 0.1369738131761551, -0.09391485899686813, -0.2226286232471466, 0.1669854074716568, -0.28747856616973877, -0.032390184700489044, 0.11071314662694931, -0.2528284788131714, 0.5313697457313538, 0.3521878719329834, 0.4683420658111572, 0.2782881557941437, -0.00012507651990745217, 0.017928428947925568, -0.08334635198116302, -0.10716108232736588, -0.2715197503566742, -0.16620434820652008, -0.2018948346376419, -0.25149741768836975, 0.06978294253349304, -0.26224085688591003, -0.33386918902397156, -0.28916582465171814, 0.08324369043111801, -0.4201816916465759, 0.4280591309070587, 0.014224284328520298, 0.012890797108411789, -0.13318422436714172, -0.13332514464855194, -0.12840940058231354, 0.02822551131248474, 0.44987228512763977, -0.10068745166063309, 0.3456859886646271, 0.5528993606567383, 0.2936875522136688, 0.12929029762744904, 0.02839701622724533, 0.16094104945659637, 0.10653917491436005, 0.38374271988868713, -0.0584123469889164, -0.07056185603141785, -0.03894851356744766, 0.01899542473256588, 0.26389190554618835, 0.8025803565979004, -0.4108225107192993, -0.08721088618040085, -0.17297999560832977, 0.024767300114035606, -0.42955470085144043, -0.2573290467262268, 0.05998127907514572, 0.1624981313943863, 0.0851939246058464, -0.30999523401260376, -0.3607082664966583, -0.38347122073173523, 0.2709828019142151, 0.3352554142475128, 0.03965647518634796, -0.05665476247668266, 0.22156071662902832, -0.15152700245380402, -0.02980431728065014, -0.03018569014966488, -0.19711215794086456, -0.15866437554359436, 0.11097890883684158, 0.1712026596069336, -0.19187165796756744, -0.30478331446647644, 0.023014763370156288, 0.419299453496933, 0.49188435077667236, 0.14514866471290588, 0.20817804336547852, -0.35222581028938293, -0.021329691633582115, 0.4007337689399719, 0.12592734396457672, 0.27799564599990845, 0.3652258813381195, 0.04273705929517746, 0.1957389861345291, -0.3644954562187195, -0.17038264870643616, -0.4490542411804199, 0.555759072303772, 0.2351505160331726, -0.14517390727996826, 0.068807452917099, -0.2394082397222519, 0.14073233306407928, -0.10550078749656677, -0.3880719244480133, -0.13881389796733856, 0.22008073329925537, 0.047322843223810196, 0.02243838645517826, 0.09217613935470581, 0.0555788055062294, 0.2978413999080658, -0.011464202776551247, -0.2726375162601471, -0.004947951063513756, 0.09233630448579788, -0.41892901062965393, 0.26647040247917175, 0.3285481631755829, -0.310305118560791, 0.16517050564289093, 0.3441128432750702, -0.08104118704795837, -0.17081676423549652, 0.3620077073574066, 0.13493841886520386, -0.31557101011276245, -0.4831867516040802, -0.23367157578468323, 0.20068340003490448, 0.24841144680976868, 0.20310956239700317, -0.29827553033828735, -0.04378608986735344, -0.015571355819702148, -0.3951825201511383, -0.18221043050289154, 0.012125392444431782, -0.3710015118122101, -0.08007365465164185, -0.21522249281406403, 0.4285041093826294, -0.004348119255155325, -0.3384580612182617, -0.19763897359371185, -0.023247506469488144, -0.32840168476104736, -0.07837841659784317, 0.19338355958461761, 0.2733842134475708, -0.3810255825519562, -0.17183245718479156, -0.2532714307308197, 0.005972300190478563, 0.43542665243148804, 0.16144637763500214, -0.40030211210250854, 0.2875458002090454, -0.10489912331104279, -0.12921355664730072, 0.49845290184020996, -0.033424850553274155, -0.02098759263753891, -0.058933764696121216, 0.1858072578907013, 0.1797679215669632, 0.04164843633770943, 0.07607395946979523, 0.2536148428916931, -0.17432110011577606, -0.37453463673591614, 0.5141627788543701, 0.08622219413518906, -0.26720643043518066, -0.037378933280706406, -0.1952517181634903, 0.12791408598423004, 0.0897822231054306, -0.1702139973640442, 0.16098739206790924, -0.03143230453133583, 0.28949007391929626, -0.01775210350751877, -0.21484141051769257, 0.12000294029712677, -0.1749359667301178, 0.1473778635263443, 0.39412030577659607, 0.10859036445617676, -0.3249780833721161, -0.42257580161094666, 0.19136781990528107, -0.2947508990764618, -0.04804738983511925, 0.4472073018550873, -0.40888530015945435, -0.42648792266845703, -0.18435192108154297, -0.1645275205373764, -0.18490280210971832, 0.007696585729718208, 0.5292385816574097, 0.09935647249221802, -0.16958469152450562, -0.1643250584602356, 0.11894506961107254, -0.11815547198057175, -0.01685989461839199, -0.10559102892875671, 0.2538266181945801, 0.06435469537973404, 0.043581873178482056, 0.01408438105136156, 0.5441201329231262, 0.11635639518499374, -0.07545901089906693, 0.1564706265926361, 0.12068826705217361, 0.037099823355674744, 0.08267419785261154, 0.1455659717321396, 0.10178028792142868, 0.11784680187702179, 0.11472993344068527, 0.40782493352890015, 0.008894954808056355, 0.3467356264591217, -0.1688862144947052, -0.4644255042076111, 0.13404862582683563, 0.23375250399112701, 0.03267744183540344, 0.06124541908502579, -0.11393319815397263, 0.17010954022407532, -0.18439657986164093, -0.06123434007167816, -0.11800285428762436, -0.07617544382810593, 0.251049280166626, -0.08768913149833679, 0.3345283567905426, -0.29149651527404785, 0.14176973700523376, 0.14106573164463043, -0.23460336029529572, 0.1524757444858551, 0.0045161982998251915, -0.22248105704784393, -0.17693600058555603, 0.38323378562927246, 0.07585779577493668, 0.16442328691482544, 0.03784811496734619, 0.24313554167747498, 0.06948260217905045, -0.11000038683414459, 0.044438742101192474, 0.21124032139778137, -0.16738547384738922, 0.18499347567558289, -0.2379215657711029, 0.11981446295976639, 0.16960053145885468, 0.08003360778093338, -0.041270289570093155, 0.349778413772583, 0.1414005309343338, -0.17125080525875092, 0.20185913145542145, -0.6481918096542358, -0.3009236454963684, -0.3514769673347473, -0.043703898787498474, 0.013978606089949608, 0.05452645197510719, -0.19467836618423462, 0.04678674787282944, 0.13071861863136292, 0.13429686427116394, 0.11311273276805878, 0.48151659965515137, -0.3766598105430603, -0.12162145972251892, 0.08018512278795242, -0.29951661825180054, -0.33306652307510376, 0.0063181412406265736, 0.41224581003189087, 0.3769204318523407, 0.5545408725738525, 0.08703918009996414, 0.029055213555693626, -0.49862292408943176, -0.2839493155479431, 0.20146596431732178, 0.0905628576874733, -0.0397651307284832, 0.13270442187786102, -0.0485132671892643, -0.330145001411438, -0.30421608686447144, 0.1590520143508911, 0.0961805135011673, 0.18094022572040558, -0.060080792754888535, -0.49927258491516113, 0.12114277482032776, -0.18762798607349396, -0.12244171649217606, -0.1508994847536087, -0.1992625892162323, 0.2833753824234009, 0.05986307933926582, 0.0701041966676712, 0.33117398619651794, -0.37697556614875793, 0.2394533008337021, -0.045057304203510284, 0.21341919898986816, -0.3368492126464844, -0.10468384623527527, 0.2901272773742676, -0.14677977561950684, -0.18521733582019806, -0.06468682736158371, -0.3328317105770111, 0.10028422623872757, 0.5816041231155396, -0.18992260098457336, -0.43330883979797363, -0.07092644274234772, -0.1931772232055664, 0.3352113962173462, 0.20237523317337036, 0.1774219125509262, -0.030275315046310425, 0.14824765920639038, -0.024656370282173157, -0.22927488386631012, 0.3347115218639374, -0.06982345879077911, 0.21514877676963806, 0.3179880678653717, 0.13644735515117645, 0.1477787047624588, 0.4958409368991852, 0.19946391880512238, -0.39755573868751526, 0.4418986439704895, -0.07556039094924927, 0.29393282532691956, 0.09199321269989014, -0.02757914364337921, 0.24892964959144592, -0.12030667811632156, 0.0949377715587616, 0.19316214323043823, 0.0448029525578022, 0.02506817877292633, -0.02833379991352558, 0.009236267767846584, -0.003529628971591592, -0.43637847900390625, 0.19964410364627838, -0.15173488855361938, 0.5237364768981934, 0.13817711174488068, -0.23558008670806885, -0.3791065216064453, 0.04961395636200905, 0.19346727430820465, 0.13374094665050507, 0.07387702167034149, 0.16435840725898743, -0.49705058336257935, 0.07581160217523575, 0.14062844216823578, 0.41422703862190247, 0.08560370653867722, -0.022595711052417755, 0.17820361256599426, 0.031571049243211746, 0.09148380160331726, 0.09267095476388931, -0.048134878277778625, -0.2960969805717468, 0.007522823754698038, 0.12447827309370041, -0.3474844992160797, -0.2607429623603821, 0.05649936944246292, -0.11450105905532837, 0.18130125105381012, 0.12085328996181488, -0.00859250221401453, -0.6265867352485657, -0.08597708493471146, 0.49119582772254944, 0.3378349244594574, -0.11739826947450638, 0.022537866607308388, 0.3983535170555115, -0.16196037828922272, -0.4426512122154236, -0.1478758305311203, -0.16742274165153503, 0.09007561206817627, 0.18079741299152374, 0.12001066654920578, -0.32843753695487976, 0.22975388169288635, 0.33468616008758545, 0.12290122359991074, 0.4285549223423004, 0.21789494156837463, 0.08595689386129379, 0.09955945611000061, 0.006595049984753132, 0.041907742619514465, 0.45217037200927734, -0.2863287329673767, -0.464758962392807, -0.12306028604507446, 0.043988075107336044, 0.26529887318611145, 0.16089384257793427, 0.3431626260280609, -0.08932635933160782, -0.22272560000419617, -0.5019605159759521, -0.21451745927333832, 0.21093451976776123, -0.04187440499663353, -0.05498574301600456, -0.3572917580604553, -1.0777645111083984, 0.33569133281707764, 0.18096397817134857, -0.0971047654747963, 0.1761038899421692, 0.13289399445056915, -0.1349572241306305, 0.12479474395513535, 0.029526177793741226, 0.9321951866149902, -0.1772611439228058, 0.2380484789609909, 0.3661993443965912, 0.2965843081474304, 0.7135196924209595, -0.14194582402706146, -0.2076854258775711, -0.3434433937072754, 0.21427574753761292, 0.049663037061691284, -0.05958279222249985, 0.2961931824684143, 0.2053503692150116, -0.1560039222240448, 0.2518339157104492, 0.20365627110004425, 0.4291245937347412, 0.1284230798482895, 0.22300320863723755, -0.25042420625686646, -0.3115476667881012, -0.1322673261165619, 0.011568189598619938, -0.32068005204200745, 0.03761443868279457, -0.17384901642799377, -0.003935182932764292, 0.017044594511389732, 0.1563146710395813, -0.4413565695285797, 0.013680658303201199, -0.20309147238731384, 0.019173992797732353, -0.0973052904009819, -0.49976015090942383, 0.4716840088367462, 0.18647974729537964, 0.305728942155838, 0.20795395970344543, -0.18517154455184937, 0.03954317048192024, -0.20622766017913818, -0.08012574911117554, -0.20036938786506653, 0.0007408573874272406, 0.24395348131656647, 0.010617169551551342, -0.029810553416609764, 0.09815919399261475, 0.38090890645980835, -0.02128441073000431, -0.15285265445709229, -0.24967382848262787, 0.39484336972236633, -0.3585498631000519, -0.2738019824028015, 0.2733777165412903, 0.018645619973540306, -0.08117414265871048, -0.024221494793891907, 0.3156312108039856, -0.1783570945262909, -0.07473335415124893, -0.1993066817522049, 0.1323683261871338, -0.01188390888273716, -0.33285462856292725, 0.31877732276916504, -0.2915683090686798, 0.34012681245803833, 0.12811525166034698, 0.11227793991565704, -0.05932372063398361, 0.028457822278141975, 0.27571895718574524, -0.40382158756256104, -0.12673954665660858, 0.10866405069828033, -0.23640143871307373, 0.08197230100631714, 0.17656518518924713, -0.10157841444015503, 0.08402679115533829, 0.03600743040442467, -0.2625136971473694, -0.12779773771762848, 0.1553676277399063, 0.0030010147020220757, 0.3532753884792328, 0.04575500264763832, -0.010079074651002884, -0.1774008721113205, 0.0435953289270401, -0.17356319725513458, 0.17672660946846008, 0.1601530760526657, 0.18438076972961426, 0.20372135937213898, 0.057677630335092545, -0.10158289968967438, -0.10939966142177582, -0.07875866442918777, 0.07012529671192169, -0.14799854159355164, -0.009760298766195774, -0.5596261024475098, 0.21321852505207062, 0.05718989670276642, -0.12961462140083313, -0.037196144461631775, -0.2645621597766876, 0.12837278842926025, -0.34827980399131775, 0.22464163601398468, -0.029360774904489517, -0.04609568417072296, 0.1597706377506256, 0.5605433583259583, -0.012761327438056469, -0.29150205850601196, 0.009755723178386688, 0.1320861130952835, 0.40776339173316956, 0.4412093758583069, 0.061220355331897736, -0.10387435555458069, -0.12450411170721054, -0.027141669765114784, 0.20847193896770477, 0.7594000101089478, 0.07025173306465149, 0.3213881850242615, 0.13916516304016113, 0.11811696738004684, 0.2112986147403717, 0.18489927053451538, 0.4557941257953644, -0.09182338416576385, 0.2779637575149536, 0.20867347717285156, -0.007170016411691904, -0.0895722433924675, 0.16095606982707977, 0.25442904233932495, -0.18138399720191956, -0.15001530945301056, 0.37504997849464417, 0.1749405711889267, 0.28457894921302795, -0.148990660905838, -0.26457640528678894, 0.20974604785442352, 0.02748718485236168, 0.3904092609882355, 0.19392545521259308, -0.012040645815432072, -0.2825767397880554, -0.041224557906389236, 0.400023877620697, 0.28805670142173767, -0.4512825608253479, 0.22340570390224457, 0.2511085569858551, 0.18729378283023834, 0.1809876412153244, 0.5107917189598083, -0.43333756923675537, -0.04054727405309677, 0.4104090929031372, 0.3606257736682892, 0.2895860970020294, -0.08490858972072601, 0.28713205456733704, 0.12327344715595245, 0.06525763124227524, 0.07934950292110443, 0.22524313628673553, 0.09827754646539688, -0.07021746784448624, -0.23903650045394897, -0.24903996288776398, -0.32121583819389343, -0.05581606924533844, -0.3482566177845001, -0.16665589809417725, -0.1457805633544922, -0.052519939839839935, -0.034150443971157074, -0.4228682219982147, 0.05821668356657028, 0.15035195648670197, -0.031888317316770554, -0.03373519331216812, 0.18518151342868805, 0.1267455369234085, -0.36338725686073303, 0.22551386058330536, 0.39720025658607483, 0.10976134985685349, 0.015224657952785492, -0.006631715223193169, 0.2950598895549774, -0.1489103138446808, 0.1632118821144104, -0.13756582140922546, 0.021687358617782593, 0.17222988605499268, -0.25958141684532166, 0.13580381870269775, -0.0716032087802887, 0.05571634694933891, -0.18946512043476105, -0.012652567587792873, -0.18542811274528503, -0.4377537965774536, 0.6592110395431519, 0.23420575261116028, -0.2106863409280777, 0.10655791312456131, 0.2138049155473709, -0.15989327430725098, -0.34995391964912415, 0.4518505334854126, 0.365337997674942, -0.03474170342087746, -0.22071747481822968, -0.0010922676883637905, 0.1904410421848297, 0.21386906504631042, 0.0775151401758194, -0.10511723160743713, -0.08657453954219818, -0.2625458538532257, -0.7192500829696655, 0.2276405245065689, -0.17335662245750427, -0.6922212243080139, 0.2622716426849365, -0.14134199917316437, 0.3419552147388458, 0.10141372680664062, -0.29398679733276367, -0.03489343449473381, 0.05521395429968834, -0.23138922452926636, -0.1737840473651886, -0.44387537240982056, 0.025859635323286057, 0.05151529237627983, -0.10293716192245483, -0.24710023403167725, -0.07379055768251419, 0.07143014669418335, -0.13633528351783752, 0.03530958667397499, -0.19819656014442444, 0.11845941096544266, -0.4753553867340088, 0.1128878965973854, 0.13320985436439514, 0.2694588005542755, 0.18839327991008759, -0.06590090692043304, -0.244136244058609, 0.05537554994225502, -0.13522787392139435, 0.28596797585487366, -0.1012536808848381, 0.04796706885099411, -0.5305740237236023, 0.006874471437186003, -0.29222461581230164, -0.17010118067264557, -0.007945111952722073, 0.07040595263242722, -0.13264979422092438, 0.10368199646472931, -0.3454539179801941, -0.05998272821307182, 0.36039555072784424, 0.5799027681350708, -0.23216494917869568, 0.022356316447257996, -0.1516488939523697, 0.1939752697944641, 0.32614874839782715, -0.2340167760848999, -0.4163007438182831, -0.062206149101257324, 0.04328039661049843, -0.2508492171764374, 0.03158119320869446, -0.5333889722824097, 0.033816587179899216, 0.26315128803253174, -0.020953180268406868, -0.1001889780163765, -0.029917394742369652, 0.2262379378080368, -0.20826588571071625, -0.16141127049922943, 0.4423399269580841, 0.07936961203813553, -0.07374321669340134, 0.010791734792292118, -0.16598255932331085 ]
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.27594414353370667, -0.28424569964408875, -0.20223022997379303, -0.11666195094585419, -0.26918527483940125, 0.10101284831762314, 0.23259399831295013, 0.3550625443458557, -0.016504159197211266, 0.061669524759054184, -0.14451374113559723, 0.33245277404785156, -0.13535091280937195, 0.41155824065208435, 0.013081400655210018, -0.2661803662776947, 0.01758149452507496, 0.10324820131063461, -0.12816864252090454, 0.10988994687795639, 0.0762668028473854, -0.06554605066776276, -0.11530771106481552, -0.0926847755908966, -0.13229729235172272, -0.10245507210493088, -0.09757129848003387, -0.20206643640995026, 0.18253101408481598, -0.05919692665338516, 0.0819191113114357, 0.4362560510635376, -0.19553229212760925, 0.32096022367477417, -0.00010351854871260002, -0.03305250033736229, 0.023035163059830666, 0.14118224382400513, 0.05547728389501572, 0.19509921967983246, -0.24072664976119995, -0.3496340215206146, 0.015476164408028126, -0.2446848750114441, 0.11410912871360779, 0.14493001997470856, 0.2296799123287201, -0.25204381346702576, 0.15109887719154358, -0.14826950430870056, 0.16500455141067505, 0.3244563937187195, -0.10134201496839523, 0.35490870475769043, -0.11608961224555969, 0.28812018036842346, -0.13325613737106323, -0.27395525574684143, 0.4300307333469391, -0.16586259007453918, -0.19330500066280365, 0.4834129214286804, -0.20489542186260223, 0.18410523235797882, 0.18683919310569763, -0.06592419743537903, 0.07732818275690079, -0.4097803831100464, -0.1818065047264099, 0.40872588753700256, -0.0675884261727333, -0.2307182401418686, -0.45044994354248047, -0.2789042592048645, -0.1264074146747589, -0.4070107042789459, -0.22713029384613037, 0.08587315678596497, -0.2099238783121109, -0.02331080473959446, -0.41207990050315857, -0.311410516500473, 0.19978313148021698, -0.08125313371419907, 0.1616559475660324, 0.36139240860939026, 0.27246716618537903, 0.1311332732439041, 0.19193710386753082, -0.1969308853149414, -0.056466445326805115, -0.25377392768859863, 0.31104782223701477, 0.006675087381154299, -0.6924260258674622, -0.1842934787273407, 0.016712957993149757, -0.28677138686180115, -0.03928088769316673, -0.07068932801485062, 0.15345974266529083, 0.36358317732810974, 0.0018446267349645495, 0.2756718099117279, 0.009638456627726555, -0.3759274482727051, 0.06305913627147675, -0.01253320463001728, 0.1332937777042389, -0.4187014400959015, -0.2308540642261505, 0.29321980476379395, 0.1267777681350708, -0.08347799628973007, -0.2717578411102295, 0.04740127921104431, -0.09809564799070358, 0.26262322068214417, 0.04921448975801468, -0.40004241466522217, 0.0890793651342392, -0.19156983494758606, 0.18279621005058289, -0.036447640508413315, -0.07010172307491302, 0.3581656515598297, -0.1625254899263382, -0.24836233258247375, -0.19258390367031097, -0.15613475441932678, -0.07636233419179916, -0.006903238594532013, 0.0626300722360611, 0.13615356385707855, 0.1571870893239975, 0.12194060534238815, -0.19670848548412323, 0.04796081781387329, 0.13933254778385162, 0.3047914505004883, 0.32257258892059326, -0.12546563148498535, 0.03924918174743652, 0.17078334093093872, -0.13733291625976562, -0.10199139267206192, -0.14540357887744904, 0.0859716460108757, -0.3219797611236572, -0.044781189411878586, -0.35925617814064026, -0.20220337808132172, -0.07830054312944412, 0.15228186547756195, 0.15805569291114807, -0.08345690369606018, -0.2392236590385437, 0.7270876169204712, 0.12217440456151962, -0.013926317915320396, -0.3829065263271332, -0.11735747009515762, -0.5056692957878113, -0.2212935835123062, 0.3403012454509735, -0.007171266712248325, -0.09253950417041779, -0.02443898655474186, -0.21030162274837494, -0.036455824971199036, 0.2022959589958191, 0.3431307077407837, -0.16504818201065063, 0.2029748558998108, -0.01611136831343174, 0.4196084141731262, 0.585634171962738, -0.13465338945388794, 0.13609082996845245, 0.3772716820240021, -0.17533278465270996, 0.05190816521644592, 0.23914358019828796, 0.184067502617836, 0.1506538987159729, -0.1263088434934616, 0.16015993058681488, 0.48925694823265076, -0.3131011724472046, 0.2583971321582794, 0.0568523071706295, -0.221428781747818, 0.16754211485385895, 0.1637318730354309, 0.06583768129348755, 0.003660655813291669, -0.103432297706604, -0.32040920853614807, 0.319023996591568, -0.3128892481327057, 0.05692139267921448, 0.048336222767829895, -0.10539024323225021, -0.034855250269174576, -0.1259046196937561, -0.34791091084480286, -0.31730562448501587, 0.10933911055326462, 0.08657754957675934, -0.06700870394706726, 0.15339258313179016, -0.37144654989242554, 0.4874788522720337, 0.12219391018152237, 0.17557381093502045, 0.23964311182498932, 0.18018928170204163, 0.23717643320560455, 0.08780241012573242, -0.23538409173488617, -0.2851777672767639, 0.10881085693836212, -0.13837376236915588, -0.14279703795909882, -0.10611293464899063, 0.24675925076007843, 0.2857474386692047, -0.10149820894002914, -0.02143091708421707, 0.13317042589187622, -0.15474431216716766, -0.1268596053123474, 0.15781311690807343, -0.02274036966264248, -0.0729568675160408, 0.3669101595878601, 0.4954013526439667, 0.525391697883606, 0.18018460273742676, 0.10836140811443329, -0.13010695576667786, -0.20871978998184204, -0.14308853447437286, -0.2054135501384735, -0.14462830126285553, 0.4666018784046173, -0.06685670465230942, 0.3619409501552582, 0.1625887155532837, -0.014664052985608578, 0.23803412914276123, 0.05492053180932999, -0.07700546085834503, 0.23333466053009033, 0.07340295612812042, -0.10576462745666504, -0.03970850259065628, 0.18771888315677643, -0.4425649046897888, 0.3263513743877411, 0.5805602669715881, 0.10857550799846649, -0.036241479218006134, 0.13268589973449707, 0.23283058404922485, -0.01029201690107584, 0.11810168623924255, 0.13482123613357544, 0.1647721827030182, 0.19193139672279358, 0.12337657064199448, -0.09267857670783997, -0.014028379693627357, 0.007535404991358519, 0.15097658336162567, 0.22679868340492249, 0.29759183526039124, 0.07327664643526077, 0.07103466987609863, -0.1913866549730301, -0.11671431362628937, -0.38448768854141235, 0.24228395521640778, 0.03362446650862694, 0.02223472110927105, -0.07533387839794159, -0.21872404217720032, -0.0839652419090271, 0.02002159133553505, 0.15647518634796143, -0.1084873154759407, -0.2796206772327423, 0.0375794842839241, 0.21103759109973907, -0.17239467799663544, 0.16399535536766052, 0.15172310173511505, 0.12165981531143188, -0.07952609658241272, -0.044430263340473175, -0.1731157898902893, -0.11280042678117752, 0.11540301144123077, 0.07808694988489151, 0.360465943813324, 0.20933391153812408, 0.41503772139549255, 0.22971443831920624, 0.10161959379911423, -0.3085978329181671, -0.3013168275356293, -0.060573138296604156, -0.2326068878173828, 0.07069151103496552, -0.019726336002349854, 0.014011689461767673, -0.20786873996257782, -0.42406901717185974, 0.13497573137283325, 0.12339846044778824, -0.11079250276088715, -0.149463951587677, 0.05580327287316322, 0.06306372582912445, -0.07423733919858932, -0.2053208202123642, -0.5143827795982361, -0.4376356303691864, 0.3669535517692566, -0.324444442987442, 0.3497663736343384, -0.19919681549072266, 0.024094797670841217, -0.009649037383496761, -0.17411237955093384, 0.08378039300441742, 0.1551624983549118, -0.4178401231765747, 0.11653566360473633, -0.0766957625746727, -0.11691322922706604, -0.3409132957458496, -0.033387985080480576, 0.07159765064716339, 0.4641479551792145, -0.21371152997016907, -0.05857376009225845, -0.22735056281089783, 0.14934246242046356, 0.1650560349225998, -0.08180767297744751, 0.10734867304563522, -0.015889668837189674, -0.11213836818933487, 0.07741973549127579, -0.1644623875617981, 0.05168955773115158, -0.061481330543756485, -0.2959740459918976, 0.2579025328159332, 0.3612660765647888, 0.12350082397460938, 0.7081289291381836, 0.11436378955841064, -0.2318825125694275, -0.04082884639501572, 0.07273826003074646, -0.26884323358535767, 0.20384104549884796, -0.4948340654373169, -0.07088033854961395, -0.1688324213027954, 0.10851132869720459, 0.0931626632809639, -0.10847362875938416, -0.41970616579055786, -0.03433336690068245, 0.21272633969783783, -0.1820172667503357, -0.17308975756168365, 0.289079487323761, -0.3016255795955658, 0.3059794306755066, 0.04044634476304054, -0.28217512369155884, -0.42905697226524353, 0.07588150352239609, -0.15357041358947754, 0.00013102925731800497, 0.2750864028930664, -0.18267732858657837, -0.39425402879714966, -0.21494774520397186, -0.49032890796661377, 0.3338412642478943, 0.18734535574913025, 0.10521809011697769, -0.01754668354988098, 0.02726464532315731, -0.053417693823575974, -0.15338720381259918, 0.579554557800293, -0.36850500106811523, -0.2850636839866638, 0.2537963390350342, -0.4896870255470276, -0.01968631148338318, 0.22280530631542206, -0.025972720235586166, 0.4166378676891327, 0.3337048590183258, 0.4109072983264923, -0.23765581846237183, -0.4871218204498291, 0.15589268505573273, 0.021949337795376778, -0.07201274484395981, 0.026681747287511826, -0.025353191420435905, -0.04491843655705452, -0.11768224090337753, -0.009769139811396599, -0.06589990109205246, -0.028059957548975945, -0.018759993836283684, -0.18685407936573029, -0.16463257372379303, 0.05367673188447952, 0.3366568982601166, 0.0215824693441391, -0.14567793905735016, 0.3455348312854767, 0.292115181684494, -0.29155269265174866, 0.1141730323433876, -0.08748109638690948, -0.10142238438129425, -0.18535135686397552, -0.12975911796092987, -0.03132198005914688, -0.036864541471004486, 0.5222085118293762, 0.09309305995702744, 0.15358427166938782, 0.39201024174690247, -0.10964640229940414, 0.4256862998008728, -0.24883784353733063, 0.16633526980876923, 0.3916357755661011, 0.2579733431339264, -0.27994051575660706, -0.3690029978752136, 0.22463639080524445, 0.2787814438343048, 0.020580191165208817, 0.544337272644043, -0.29624703526496887, -0.020333673804998398, 0.20757153630256653, 0.08248575776815414, 0.5658168792724609, -0.3810485005378723, 0.020844848826527596, -0.2761301100254059, 0.19979465007781982, 0.43205711245536804, -0.47966161370277405, 0.1967352032661438, 0.06663710623979568, -0.3153504431247711, 0.06373092532157898, -0.005826139356940985, 0.11731357872486115, 0.42645373940467834, -0.1951821744441986, 0.07366829365491867, 0.3178192377090454, -0.036403801292181015, -0.08255157619714737, 0.46223416924476624, 0.27711692452430725, -0.3780422806739807, -0.09199965000152588, 0.1073802188038826, -0.07451018691062927, -0.348704069852829, 0.06420734524726868, -0.2750183045864105, 0.1603487730026245, 0.336933434009552, -0.31235745549201965, -0.10061010718345642, -0.03292729705572128, 0.4128575921058655, -0.2716253995895386, -0.035682205110788345, -0.09807799756526947, 0.1445016860961914, -0.06219176575541496, -0.05152261629700661, -0.08870678395032883, 0.03669876605272293, -0.14064687490463257, 0.31959268450737, -0.20936982333660126, -0.3096982538700104, 0.23032648861408234, -0.1214028149843216, -0.18935713171958923, 0.0026278579607605934, 0.13802234828472137, -0.5908481478691101, -0.13972637057304382, 0.09341354668140411, 0.09455925226211548, 0.45481106638908386, 0.11223529279232025, 0.3758341073989868, -0.3117885887622833, -0.07551053911447525, 0.14180231094360352, 0.20967552065849304, -0.15271082520484924, 0.5664058327674866, 0.06698720157146454, -0.13767679035663605, 0.05432800203561783, 0.03885351121425629, 0.3187231421470642, 0.038662586361169815, 0.2706734836101532, 0.15413308143615723, -0.13780896365642548, -0.2728897035121918, -0.1065819263458252, -0.21549998223781586, 0.08488146960735321, 0.27802321314811707, -0.15319420397281647, -0.191922128200531, 0.10200338810682297, -0.15205006301403046, -0.15951032936573029, 0.1164393499493599, -0.29002171754837036, -0.15236717462539673, -0.10318833589553833, 0.09986874461174011, -0.1188059151172638, 0.21558114886283875, -0.07947803288698196, 0.17917858064174652, -0.05374616011977196, 0.5050320625305176, -0.34811529517173767, -0.13495545089244843, -0.16472217440605164, 0.19815118610858917, 0.33973848819732666, 0.022118980064988136, -0.06132510304450989, 0.22106744349002838, 0.17819757759571075, 0.13153105974197388, -0.18267616629600525, -0.31127291917800903, 0.17955416440963745, 0.0597393624484539, -0.13201327621936798, 0.05789066478610039, 0.1754206418991089, 0.15221314132213593, -0.3791617155075073, -0.36117783188819885, 0.01451762206852436, -0.09044165909290314, -0.02868846245110035, 0.07970568537712097, 0.14711284637451172, -0.21128246188163757, 0.2349594533443451, -0.05540616810321808, 0.13106992840766907, -0.019342616200447083, -0.13855557143688202, 0.3766927719116211, 0.16504983603954315, -0.15146656334400177, 0.15220144391059875, -0.09716203063726425, 0.1188126802444458, -0.1742066740989685, 0.2069413959980011, 0.0635361596941948, -0.24306447803974152, -0.09120813012123108, 0.2783663272857666, 0.35149088501930237, 0.1390748769044876, 0.2302771955728531, 0.057181596755981445, 0.17350372672080994, -0.16075924038887024, -0.1503104269504547, 0.5617012977600098, 0.00025229380116797984, 0.3441425859928131, -0.08693654090166092, 0.11125528812408447, 0.4852907359600067, 0.10472694039344788, -0.06869491189718246, -0.1232324168086052, -0.34257757663726807, 0.09757314622402191, 0.00016469733964186162, 0.2361600697040558, -0.03996926173567772, -0.10336054861545563, 0.027640974149107933, 0.137720987200737, 0.11111869663000107, 0.07761788368225098, 0.7436553835868835, -0.13326933979988098, 0.14661410450935364, 0.2358626276254654, -0.21851041913032532, 0.1554216891527176, 0.15089182555675507, 0.0706595852971077, 0.2849661111831665, 0.10424558818340302, 0.08362365514039993, 0.11575909703969955, -0.5258510112762451, -0.16221703588962555, 0.6554816961288452, -0.051786672323942184, -0.3350931406021118, -0.05954810231924057, -0.0637190118432045, -0.05539754033088684, 0.0772390216588974, 0.1890803873538971, 0.10396341979503632, 0.578546941280365, 0.06316383928060532, 0.423332154750824, 0.021710876375436783, 0.13803279399871826, -0.17561186850070953, 0.37215301394462585, -0.051932770758867264, -0.1600179374217987, 0.14399868249893188, -0.21311989426612854, -0.2313864827156067, 0.3223557472229004, 0.11828186362981796, 0.25783082842826843, -0.060611139982938766, 0.3421154320240021, -0.2579095959663391, -0.03638448938727379, -0.23798011243343353, 0.2340901643037796, -0.021660808473825455, 0.019926616922020912, 0.41256245970726013, 0.12308329343795776, -0.14531630277633667, -0.26350417733192444, -0.04518582671880722, 0.0962262824177742, -0.411207914352417, 0.08776373416185379, 0.13377460837364197, -0.16022571921348572, 0.013999834656715393, 0.0020580715499818325, -0.39772453904151917, -0.2798149287700653, 0.7091530561447144, -0.5511265397071838, -0.033520713448524475, 0.012438694946467876, 0.12369917333126068, -0.21537543833255768, 0.6456466317176819, 0.08275414258241653, 0.3928978741168976, 0.005627035163342953, -0.16449931263923645, -0.4179258942604065, -0.2629404366016388, -0.06635553389787674, 0.11596550047397614, 0.12309975177049637, 0.49174007773399353, 0.21833272278308868, 0.31762728095054626, 0.003225903259590268, -0.46191683411598206, 0.02436506561934948, 0.08114468306303024, -0.4527282416820526, 0.11864859610795975, -0.37041348218917847, -0.0622873529791832, 0.1752675473690033, -0.33420330286026, 0.26757338643074036, 0.11064479500055313, 0.1272594928741455, -0.2127431184053421, 0.13286519050598145, 0.493817001581192, 0.15213194489479065, 0.012598956003785133, 0.00982440821826458, 0.3086354434490204, -0.30624791979789734, 0.007103544194251299, -0.11481213569641113, 0.09621721506118774, -0.1907644420862198, 0.0032970611937344074, -0.043302327394485474, 0.3226056396961212, -0.21781964600086212, 0.059790655970573425, -0.05459688976407051, 0.10389405488967896, -0.10822600871324539, -0.17842212319374084, 0.15695929527282715, 0.011397265829145908, 0.16660144925117493, 0.1770830899477005, -0.015179340727627277, 0.3487410843372345, -0.0062883831560611725, 0.09536231309175491, -0.10453295707702637, -0.08236958831548691, 0.24201005697250366, -0.4555225968360901, -0.22316871583461761, -0.28312447667121887, 0.06697185337543488, -0.0349164679646492, 0.42195409536361694, -0.36877813935279846, -0.3382130563259125, 0.2574603855609894, -0.08740775287151337, -0.045555613934993744, 0.5557898283004761, 0.0016172516625374556, -0.24528104066848755, -0.1554078906774521, -0.26124081015586853, -0.009433147497475147, -0.3534398376941681, -0.14837144315242767, -0.23031051456928253 ]
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.39594772458076477, -0.35890477895736694, -0.1633281409740448, -0.1043202131986618, -0.280354380607605, 0.131526380777359, 0.28607863187789917, 0.298230916261673, 0.023387202993035316, 0.05506087467074394, -0.16390131413936615, 0.32796093821525574, -0.09400996565818787, 0.34428250789642334, -0.11410173773765564, -0.11086830496788025, -0.050692204385995865, 0.05591193959116936, -0.022345058619976044, 0.06904531270265579, -0.0700981616973877, -0.0351477712392807, -0.11026855558156967, -0.2142753154039383, -0.10996746271848679, -0.10818913578987122, -0.030302448198199272, -0.12129133939743042, 0.232478529214859, -0.02456667646765709, 0.10267772525548935, 0.4613175690174103, -0.268880158662796, 0.34246814250946045, -0.00010329409269616008, 0.041828740388154984, -0.03000866249203682, 0.08687368035316467, 0.09926461428403854, 0.1611691117286682, -0.21208298206329346, -0.2810766100883484, -0.05112163722515106, -0.29759588837623596, 0.069821298122406, 0.13152626156806946, 0.20370368659496307, -0.2799983322620392, 0.2039441466331482, -0.12030939012765884, 0.14407943189144135, 0.4225909113883972, -0.02396043762564659, 0.2986963987350464, -0.23564857244491577, 0.15691117942333221, -0.1393170952796936, -0.16242630779743195, 0.3427734673023224, -0.2062583714723587, -0.12681236863136292, 0.4884387254714966, -0.25932085514068604, 0.276318222284317, 0.12305328249931335, -0.04308903217315674, 0.0226264800876379, -0.4618026912212372, -0.19201038777828217, 0.3221646547317505, -0.1607879251241684, -0.19757506251335144, -0.46458548307418823, -0.3551501929759979, -0.16477252542972565, -0.3611133098602295, -0.19933505356311798, 0.058298565447330475, -0.21818290650844574, -0.016747720539569855, -0.35326018929481506, -0.21855899691581726, 0.1069772019982338, -0.1390845775604248, 0.017680328339338303, 0.3166687488555908, 0.3593291938304901, 0.15426534414291382, 0.22298364341259003, -0.16109627485275269, -0.10568124800920486, -0.17646172642707825, 0.32399439811706543, 0.10192160308361053, -0.7124086022377014, -0.21537938714027405, 0.03156657889485359, -0.3484634757041931, -0.08710742741823196, -0.09172829985618591, 0.07137185335159302, 0.3659611642360687, 0.020658746361732483, 0.2957698106765747, -0.03126475214958191, -0.4160400331020355, 0.04682082310318947, 0.04435386136174202, 0.1093432679772377, -0.41341501474380493, -0.17351825535297394, 0.29785171151161194, 0.09148474037647247, -0.08638136833906174, -0.2096260040998459, 0.046808645129203796, -0.058946385979652405, 0.2689778208732605, -0.014642788097262383, -0.34582358598709106, 0.05691802129149437, -0.11128991842269897, 0.1320362091064453, -0.03793107718229294, -0.06666701287031174, 0.29316446185112, -0.07310221344232559, -0.2985053062438965, -0.3626376688480377, -0.07115008682012558, -0.12184128165245056, -0.01884428597986698, -0.0068021551705896854, 0.1827821135520935, 0.17651234567165375, 0.17312996089458466, -0.270866721868515, 0.014701096341013908, 0.13032034039497375, 0.30934399366378784, 0.3430286943912506, -0.18828922510147095, -0.03626903519034386, 0.23790763318538666, -0.15227572619915009, -0.1348414570093155, -0.018712002784013748, 0.10122189670801163, -0.2487323135137558, -0.021622642874717712, -0.3682626783847809, -0.25098153948783875, 0.003287139581516385, 0.16184744238853455, 0.031662166118621826, -0.12133899331092834, -0.24772261083126068, 0.6351502537727356, 0.17333027720451355, 0.05398131534457207, -0.4437563419342041, -0.1052967831492424, -0.6214118003845215, -0.20675353705883026, 0.34303712844848633, 0.08387716859579086, -0.14774344861507416, 0.005700053181499243, -0.11971728503704071, -0.05737057700753212, 0.16284659504890442, 0.34189388155937195, -0.08948462456464767, 0.07963475584983826, 0.0038427116815000772, 0.4780184030532837, 0.3685803711414337, -0.15206164121627808, 0.02099400945007801, 0.3077547550201416, -0.21159009635448456, 0.06379278749227524, 0.20980095863342285, 0.19106802344322205, 0.2824667990207672, -0.2052377164363861, 0.18041180074214935, 0.5076909065246582, -0.2538854777812958, 0.27807796001434326, -0.05170697346329689, -0.20026104152202606, -0.02446974813938141, 0.3239070773124695, 0.1461586207151413, -0.026123741641640663, -0.12424378842115402, -0.31641796231269836, 0.3325299024581909, -0.18008488416671753, 0.044595867395401, 0.08157691359519958, 0.033472940325737, 0.06635218113660812, -0.09547446668148041, -0.3216046392917633, -0.3459465801715851, 0.24227270483970642, 0.14382371306419373, 0.08254553377628326, 0.09482469409704208, -0.34577563405036926, 0.42372703552246094, 0.1098073273897171, 0.14535868167877197, 0.25967633724212646, 0.2118770331144333, 0.11206492781639099, -0.007361163385212421, -0.2629689574241638, -0.282695472240448, 0.24087660014629364, -0.20676158368587494, -0.10243236273527145, -0.1578766107559204, 0.3324163556098938, 0.25229978561401367, -0.15476933121681213, -0.11251050978899002, 0.10808513313531876, -0.09614741057157516, -0.14810843765735626, 0.15526601672172546, 0.04213453084230423, 0.007130103185772896, 0.40321803092956543, 0.3985294699668884, 0.5866167545318604, 0.21423031389713287, 0.17647866904735565, -0.11875701695680618, -0.24878880381584167, -0.14478854835033417, -0.18255585432052612, -0.08065251260995865, 0.45377787947654724, 0.017768317833542824, 0.4275168180465698, 0.15429696440696716, 0.0031852542888373137, 0.17339792847633362, 0.010593346320092678, -0.027599776163697243, 0.2379273772239685, 0.10781709849834442, -0.1230464056134224, -0.06270130723714828, 0.192746102809906, -0.28682681918144226, 0.3883139193058014, 0.5061120390892029, 0.11745099723339081, -0.11388536542654037, 0.08055558055639267, 0.22769545018672943, 0.024080514907836914, 0.067806676030159, 0.2511112689971924, 0.2452671080827713, 0.17917798459529877, 0.14807343482971191, -0.0011039762757718563, -0.07172133773565292, 0.019502952694892883, 0.12896497547626495, 0.27486810088157654, 0.31909751892089844, -0.0208062045276165, 0.06974298506975174, -0.18687117099761963, -0.12359018623828888, -0.42004311084747314, 0.29978105425834656, 0.11241734027862549, 0.04831240698695183, -0.05754980072379112, -0.10749389231204987, 0.12696564197540283, 0.016272589564323425, 0.13758304715156555, -0.07277335971593857, -0.3041386306285858, 0.01818067580461502, 0.36672234535217285, -0.0663113072514534, 0.1369045376777649, 0.19250638782978058, 0.04637739062309265, -0.08030099421739578, -0.11214034259319305, -0.17693892121315002, -0.24406829476356506, 0.20808887481689453, 0.08853154629468918, 0.37395790219306946, 0.1900402009487152, 0.43173062801361084, 0.17477251589298248, -0.0021738053765147924, -0.15368187427520752, -0.2592749297618866, -0.05430963635444641, -0.28635644912719727, -0.019169161096215248, -0.03167232871055603, 0.11410845071077347, -0.2228768765926361, -0.3058830797672272, 0.17245136201381683, 0.004610460251569748, -0.06884069740772247, -0.11391069740056992, -0.012707256712019444, 0.08935289829969406, -0.0477352999150753, -0.2503356635570526, -0.5684005618095398, -0.40922343730926514, 0.32664987444877625, -0.232437402009964, 0.3775833249092102, -0.05470045283436775, 0.03613957390189171, -0.0018444819143041968, -0.10802032053470612, -0.005989436060190201, 0.08417203277349472, -0.2796822786331177, 0.10813871026039124, -0.03426223620772362, -0.13211920857429504, -0.2544579803943634, -0.024662597104907036, 0.07966968417167664, 0.5135453343391418, -0.16191993653774261, -0.13219116628170013, -0.22445495426654816, 0.11937964707612991, 0.1274668276309967, -0.0757753923535347, 0.19376492500305176, 0.023846788331866264, -0.11343439668416977, 0.06194372847676277, -0.004956279415637255, 0.12775877118110657, -0.07989651709794998, -0.38438907265663147, 0.22874774038791656, 0.361013263463974, 0.19522984325885773, 0.741499125957489, 0.18903961777687073, -0.3178260922431946, -0.0958651527762413, 0.029084431007504463, -0.2857872247695923, 0.1605231910943985, -0.4328310489654541, -0.08146603405475616, -0.07682721316814423, 0.047500308603048325, 0.04606562852859497, -0.14173327386379242, -0.4039616882801056, -0.06713558733463287, 0.19641463458538055, -0.21616089344024658, -0.25355055928230286, 0.2536225914955139, -0.15751495957374573, 0.29343944787979126, 0.03091275319457054, -0.24563062191009521, -0.462483286857605, 0.03707853704690933, -0.16105997562408447, 0.0008599238353781402, 0.310162752866745, -0.23740731179714203, -0.30368906259536743, -0.10449518263339996, -0.5077473521232605, 0.3355196714401245, 0.07792280614376068, 0.12640883028507233, 0.041226617991924286, -0.021640164777636528, 0.02040400356054306, -0.1583377718925476, 0.6184367537498474, -0.3220217525959015, -0.25530365109443665, 0.21620114147663116, -0.42410916090011597, -0.1754310131072998, 0.1810816377401352, -0.04497172683477402, 0.34808996319770813, 0.318876713514328, 0.4349924325942993, -0.3314710557460785, -0.45671766996383667, 0.12553998827934265, -0.028089789673686028, -0.09775595366954803, -0.06106112152338028, -0.11444742977619171, -0.07431178539991379, -0.19760479032993317, 0.048701636493206024, -0.004486904479563236, -0.04534512385725975, -0.00925029069185257, -0.1380380243062973, -0.15293826162815094, 0.01893915794789791, 0.2857367694377899, 0.10535253584384918, -0.10776621848344803, 0.2979784309864044, 0.3880724012851715, -0.16024662554264069, -0.08590468764305115, 0.03240310773253441, -0.023068608716130257, -0.08514712750911713, -0.16263724863529205, -0.05772767215967178, 0.05240948870778084, 0.40325555205345154, 0.05327505245804787, 0.15441596508026123, 0.25744661688804626, -0.13860519230365753, 0.44070377945899963, -0.24651840329170227, 0.14145565032958984, 0.26747745275497437, 0.28064408898353577, -0.21675966680049896, -0.4176127016544342, 0.22836677730083466, 0.28245779871940613, 0.03567497804760933, 0.5328617095947266, -0.2536226809024811, 0.006878229323774576, 0.30229634046554565, 0.10988429188728333, 0.5154480934143066, -0.485749751329422, -0.03729798644781113, -0.2026858925819397, 0.3226899802684784, 0.39307311177253723, -0.5588089227676392, 0.23243023455142975, -0.029380397871136665, -0.36768022179603577, 0.08223429322242737, -0.041612617671489716, 0.11304009705781937, 0.42611271142959595, -0.1032332256436348, 0.05779177322983742, 0.34668493270874023, -0.003673797706142068, -0.07816634327173233, 0.34552472829818726, 0.202790766954422, -0.39035239815711975, -0.035228826105594635, 0.13110163807868958, -0.020605754107236862, -0.27829381823539734, 0.042618151754140854, -0.15418531000614166, 0.16440853476524353, 0.31330233812332153, -0.36480802297592163, -0.11994393914937973, -0.10138294100761414, 0.3564147651195526, -0.2605820596218109, 0.015446027740836143, -0.11930859833955765, 0.13402411341667175, -0.07765523344278336, -0.04521378129720688, -0.06826058775186539, 0.08284430205821991, -0.07097084820270538, 0.2556937336921692, -0.06393638253211975, -0.3214077353477478, 0.24986401200294495, -0.12514987587928772, -0.2517109811306, -0.06535173952579498, 0.1504543423652649, -0.4629351794719696, -0.15727323293685913, 0.09205491095781326, 0.10184796154499054, 0.4866555631160736, 0.1113806664943695, 0.40114104747772217, -0.31419649720191956, -0.03298482298851013, 0.1462135761976242, 0.12907378375530243, -0.18243460357189178, 0.6450844407081604, -0.14329691231250763, -0.14515091478824615, 0.05702698230743408, 0.11644019931554794, 0.3842926621437073, -0.04621879756450653, 0.21325087547302246, 0.15160830318927765, -0.14386923611164093, -0.26726698875427246, -0.14008739590644836, -0.13769839704036713, 0.07166050374507904, 0.21397274732589722, -0.11587756127119064, -0.1828247308731079, 0.15621013939380646, -0.22691203653812408, -0.18323485553264618, 0.16157867014408112, -0.3105662763118744, -0.27903541922569275, -0.11833691596984863, 0.10625896602869034, -0.052275486290454865, 0.23759078979492188, -0.08727133274078369, 0.18049243092536926, -0.08684844523668289, 0.4260998070240021, -0.3705820143222809, -0.021444138139486313, -0.16345137357711792, 0.16510924696922302, 0.3253670632839203, -0.024626798927783966, 0.01528439112007618, 0.14704611897468567, 0.175881490111351, 0.19756834208965302, -0.19806990027427673, -0.30650660395622253, 0.15625007450580597, 0.04775693640112877, -0.12288075685501099, 0.014831668697297573, 0.180935800075531, 0.08752865344285965, -0.44227927923202515, -0.3774245083332062, 0.1015637144446373, -0.008636959828436375, -0.09911303967237473, 0.003800855716690421, 0.3627701997756958, -0.033400390297174454, 0.14551980793476105, -0.005868332926183939, 0.0634085163474083, -0.07658553868532181, -0.12441788613796234, 0.34100639820098877, 0.1938907951116562, -0.1175999790430069, 0.14489774405956268, -0.1172138899564743, 0.16000163555145264, -0.11598344892263412, 0.24349048733711243, 0.04486832022666931, -0.26004984974861145, -0.09802930802106857, 0.4227248728275299, 0.35294216871261597, 0.22676117718219757, 0.09674075990915298, 0.0720931738615036, 0.2289397120475769, -0.173894003033638, -0.11638456583023071, 0.6512266397476196, 0.016698038205504417, 0.47039148211479187, -0.015764042735099792, 0.08511663228273392, 0.5125296711921692, -0.03652413189411163, 0.003891843371093273, 0.0008235520217567682, -0.32974904775619507, 0.07687384635210037, -0.06887964904308319, 0.215485081076622, -0.10737461596727371, -0.054069485515356064, -0.09200723469257355, 0.14574675261974335, 0.14219912886619568, -0.017803022637963295, 0.845295250415802, -0.13183626532554626, 0.05420485511422157, 0.17471668124198914, -0.2661341726779938, 0.1045224666595459, 0.12425971776247025, 0.07839465141296387, 0.32646796107292175, 0.05459792539477348, 0.07711773365736008, 0.08855918049812317, -0.4675465226173401, -0.1652885377407074, 0.631592333316803, -0.07642655074596405, -0.2411172091960907, -0.046609535813331604, -0.026271209120750427, -0.08564115315675735, -0.010362583212554455, 0.20477166771888733, 0.0620877742767334, 0.5979960560798645, 0.08511174470186234, 0.43135732412338257, 0.06767485290765762, -0.01791023649275303, -0.09406060725450516, 0.3815837800502777, -0.09178702533245087, -0.1464931070804596, 0.18080896139144897, -0.20791901648044586, -0.21647396683692932, 0.23285630345344543, 0.10202917456626892, 0.18162193894386292, -0.06675311923027039, 0.4536270201206207, -0.23254720866680145, -0.009597644209861755, -0.24298304319381714, 0.2401321977376938, -0.15554212033748627, 0.11961094290018082, 0.34488457441329956, 0.1126713976264, -0.18287798762321472, -0.34772852063179016, -0.08739940077066422, 0.01835312321782112, -0.26190057396888733, 0.15967942774295807, 0.09099778532981873, -0.26788488030433655, 0.022400643676519394, 0.06592816114425659, -0.3229215741157532, -0.29469719529151917, 0.5998606085777283, -0.5497960448265076, -0.060273826122283936, 0.078275166451931, 0.13139431178569794, -0.23611561954021454, 0.6309198141098022, 0.045925334095954895, 0.39572736620903015, -0.03250904381275177, -0.09843433648347855, -0.4964120090007782, -0.14138464629650116, -0.1641000211238861, 0.06147771328687668, 0.09781171381473541, 0.4516781270503998, 0.225758895277977, 0.37603694200515747, 0.0037349502090364695, -0.37370818853378296, 0.009310826659202576, 0.17768698930740356, -0.45793089270591736, 0.10844863206148148, -0.4192531406879425, -0.20529663562774658, 0.19981922209262848, -0.3315635621547699, 0.24845612049102783, 0.06719962507486343, 0.11896882951259613, -0.1650652289390564, 0.11831093579530716, 0.5072963833808899, 0.00717804254963994, 0.06850101053714752, 0.006912325043231249, 0.33435285091400146, -0.2495894879102707, 0.027045631781220436, -0.16778799891471863, 0.120065838098526, -0.27089858055114746, 0.011997601948678493, -0.03570496290922165, 0.32536232471466064, -0.15582473576068878, -0.10594012588262558, -0.06966185569763184, -0.004154025577008724, -0.11984989792108536, -0.21383686363697052, 0.08234378695487976, 0.01794908009469509, 0.17027750611305237, 0.2766762673854828, -0.10189774632453918, 0.4429577589035034, 0.06408082693815231, 0.12118808180093765, -0.11469454318284988, -0.1287371814250946, 0.3002876043319702, -0.46909844875335693, -0.24098849296569824, -0.3412491977214813, 0.07182498276233673, -0.17410695552825928, 0.37930136919021606, -0.3779059946537018, -0.26222726702690125, 0.229967400431633, -0.08290219306945801, -0.08099012821912766, 0.5007373094558716, 0.13113190233707428, -0.32349124550819397, -0.1377527117729187, -0.2630753219127655, -0.046693917363882065, -0.3111960291862488, -0.08744047582149506, -0.16571864485740662 ]
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.3118087947368622, -0.20808002352714539, -0.17793217301368713, -0.17304682731628418, -0.3436499834060669, -0.11131744086742401, 0.19715453684329987, 0.28352758288383484, 0.03925764933228493, 0.07929808646440506, -0.07674466073513031, 0.39255598187446594, -0.05090516433119774, 0.3508170545101166, -0.04081789776682854, -0.16574835777282715, 0.07918102294206619, 0.13079948723316193, -0.11498954147100449, 0.06480146199464798, -0.06831859052181244, 0.05583745241165161, -0.16731218993663788, -0.07109908759593964, -0.18491028249263763, -0.13211289048194885, -0.1406543105840683, -0.0166992899030447, 0.06625248491764069, -0.2419358193874359, 0.031865350902080536, 0.4328877329826355, -0.1755046546459198, 0.0703962966799736, -0.00009809882612898946, -0.20133648812770844, 0.20069853961467743, 0.1778136044740677, -0.10141691565513611, 0.32998010516166687, -0.2782137095928192, -0.4332958161830902, 0.03836967796087265, -0.24761220812797546, 0.14912305772304535, 0.20486727356910706, 0.2674976885318756, -0.24546778202056885, 0.1922702044248581, -0.181283101439476, 0.23171578347682953, 0.2043159306049347, -0.11518136411905289, 0.2320503443479538, -0.10504863411188126, 0.18079641461372375, -0.09229763597249985, -0.2746460437774658, 0.3728886842727661, -0.1693909913301468, -0.3322259187698364, 0.5420421957969666, -0.24297180771827698, 0.15918050706386566, 0.1380309909582138, -0.08978433161973953, 0.13106901943683624, -0.3727104961872101, -0.11799034476280212, 0.25997841358184814, -0.05391424521803856, -0.13539192080497742, -0.3391515612602234, -0.27347812056541443, -0.2056405395269394, -0.45678067207336426, -0.21214088797569275, 0.0896800234913826, -0.2025434374809265, -0.11866820603609085, -0.37848222255706787, -0.279865026473999, 0.26430171728134155, -0.1941072940826416, 0.23180146515369415, 0.3839833438396454, 0.22918806970119476, 0.06884706765413284, 0.17879940569400787, -0.2928028106689453, -0.1345086544752121, -0.2245153784751892, 0.09036459773778915, 0.009402938187122345, -0.5751146078109741, -0.13058356940746307, 0.0920882523059845, 0.07423877716064453, 0.07725483179092407, 0.039454299956560135, 0.08628100156784058, 0.34194043278694153, 0.17569968104362488, 0.25254422426223755, 0.03411922603845596, -0.3420071601867676, 0.2699638903141022, -0.04827399179339409, 0.09755969047546387, -0.2677497863769531, -0.20286689698696136, 0.30064913630485535, 0.17569081485271454, -0.11668828129768372, -0.18955843150615692, 0.06903919577598572, -0.08177301287651062, 0.1161869615316391, 0.0531158372759819, -0.3807050883769989, 0.19336463510990143, -0.17856882512569427, 0.11732114851474762, 0.1244458258152008, 0.017526153475046158, 0.28645071387290955, -0.22578473389148712, -0.21211694180965424, -0.2677026093006134, -0.20294182002544403, -0.15252156555652618, 0.007456318009644747, -0.060915507376194, 0.08463352918624878, 0.14583377540111542, 0.23188148438930511, -0.03292291611433029, 0.08723437041044235, 0.0680532455444336, 0.3604520559310913, 0.25508323311805725, -0.08515594154596329, 0.08561506122350693, 0.17472338676452637, -0.049754172563552856, -0.10488397628068924, -0.1860293447971344, 0.005004578270018101, -0.3372872471809387, -0.047594957053661346, -0.21842055022716522, -0.09545397013425827, -0.026065772399306297, 0.21722666919231415, 0.12907765805721283, -0.031236393377184868, -0.17675450444221497, 0.5951276421546936, 0.011326230131089687, -0.145115464925766, -0.3826848268508911, -0.060704465955495834, -0.3916877508163452, -0.2338741570711136, 0.2800222337245941, 0.10818488895893097, 0.047264449298381805, 0.040641020983457565, -0.2878509759902954, -0.028380101546645164, 0.3236938416957855, 0.259979248046875, -0.1431952267885208, -0.014989105053246021, -0.043638162314891815, 0.5232229828834534, 0.51698237657547, -0.026827236637473106, 0.053001128137111664, 0.4043429493904114, -0.132466658949852, -0.055330656468868256, 0.28624463081359863, 0.22779333591461182, 0.2258702665567398, -0.0635012537240982, 0.04824545979499817, 0.5034409761428833, -0.24820934236049652, 0.29106056690216064, -0.09094544500112534, -0.10397235304117203, 0.0981244146823883, 0.10331904143095016, 0.027224427089095116, 0.03126731514930725, 0.02797899954020977, -0.20897917449474335, 0.41577211022377014, -0.23041339218616486, 0.1709153950214386, 0.021493474021553993, -0.057712167501449585, -0.15295195579528809, -0.12219887971878052, -0.3011993169784546, -0.284300833940506, 0.09866995364427567, -0.17949670553207397, -0.007939115166664124, 0.18248207867145538, -0.37261876463890076, 0.33921822905540466, 0.1165095642209053, 0.0980503186583519, 0.13064071536064148, 0.27332618832588196, 0.32727497816085815, 0.07311706244945526, -0.3091556131839752, -0.157394140958786, 0.16968105733394623, 0.0174952894449234, -0.1916557103395462, -0.12075019627809525, 0.20650184154510498, 0.09378810971975327, -0.15174560248851776, 0.1674116849899292, 0.1059088334441185, 0.04968898743391037, -0.034612856805324554, 0.19245877861976624, 0.016988439485430717, -0.04596097022294998, 0.3286033570766449, 0.6206996440887451, 0.2523435652256012, 0.10509257018566132, 0.17444872856140137, -0.009198904037475586, -0.13139791786670685, -0.010349503718316555, -0.12949630618095398, -0.1501310020685196, 0.49557986855506897, 0.042268674820661545, 0.37630990147590637, 0.22617395222187042, 0.07795985043048859, 0.27081555128097534, -0.04746486246585846, -0.08961424976587296, 0.16306690871715546, 0.1636177897453308, -0.0212112944573164, -0.11455776542425156, 0.26523229479789734, -0.42783501744270325, 0.39813321828842163, 0.49630647897720337, 0.12931042909622192, -0.04258903115987778, 0.08808451145887375, 0.2510957717895508, -0.14944888651371002, 0.18891020119190216, 0.14422336220741272, 0.2122192233800888, 0.2962416112422943, 0.18685802817344666, -0.14146935939788818, -0.10816241055727005, -0.03511969372630119, 0.18746691942214966, 0.13446439802646637, 0.23699061572551727, 0.07469277828931808, 0.10961826890707016, -0.28498542308807373, -0.21900536119937897, -0.38902777433395386, 0.16565318405628204, -0.0617082305252552, 0.08153941482305527, -0.08099088072776794, -0.21831922233104706, -0.15576054155826569, -0.03165770322084427, 0.2191956639289856, -0.21915952861309052, -0.33720463514328003, 0.10163179039955139, 0.16401243209838867, -0.22361701726913452, 0.19871945679187775, 0.11815202981233597, 0.16232416033744812, -0.18387994170188904, 0.13282497227191925, -0.18037092685699463, -0.117669977247715, -0.007628908380866051, 0.13613152503967285, 0.3037857115268707, 0.37854668498039246, 0.4664987027645111, 0.18685981631278992, 0.07074122130870819, -0.3563060462474823, -0.18309380114078522, -0.05959654971957207, -0.1524498611688614, 0.09218721836805344, -0.025097910314798355, -0.038661371916532516, -0.2330760657787323, -0.39065104722976685, 0.1592656522989273, 0.049281518906354904, -0.1521443873643875, -0.13262587785720825, 0.016596725210547447, -0.03526751697063446, -0.05127249285578728, -0.2436923235654831, -0.42697203159332275, -0.42753440141677856, 0.3586695194244385, -0.18083246052265167, 0.3601447343826294, -0.3318047523498535, -0.07437283545732498, -0.03036012127995491, -0.24774684011936188, 0.07954248040914536, 0.08812542259693146, -0.28296399116516113, 0.0857495665550232, -0.07664648443460464, -0.19642528891563416, -0.2926122844219208, -0.09881284832954407, 0.04269205778837204, 0.34633663296699524, -0.08477670699357986, -0.0028072737623006105, -0.21959932148456573, 0.15388040244579315, 0.26124295592308044, -0.05881432443857193, 0.16578829288482666, 0.05103481933474541, -0.22152918577194214, 0.11237490177154541, -0.24121111631393433, 0.150389164686203, -0.13207635283470154, -0.14096297323703766, 0.14403928816318512, 0.3033941388130188, -0.015279012732207775, 0.5315758585929871, 0.11511995643377304, -0.11210732161998749, 0.021554159000515938, 0.10985734313726425, -0.18576622009277344, 0.17432838678359985, -0.440336674451828, 0.000203703559236601, -0.11812131851911545, 0.032763153314590454, 0.13110040128231049, -0.11729656159877777, -0.5028035640716553, -0.02726854756474495, 0.0582265742123127, -0.19815580546855927, -0.17052234709262848, 0.20181241631507874, -0.19893208146095276, 0.2783457338809967, 0.08018045127391815, -0.30160126090049744, -0.3575442433357239, 0.07432931661605835, -0.2680959105491638, -0.027033092454075813, 0.21399341523647308, -0.1887505054473877, -0.4772757887840271, -0.18428480625152588, -0.5468436479568481, 0.318050742149353, 0.13745194673538208, 0.1132432371377945, -0.05436422675848007, -0.0037846388295292854, -0.05917404964566231, -0.17515353858470917, 0.4736829996109009, -0.3019973337650299, -0.16945168375968933, 0.29560109972953796, -0.33680903911590576, 0.03151567652821541, 0.21253611147403717, -0.07062765955924988, 0.45954763889312744, 0.4683872163295746, 0.26173922419548035, -0.3323930501937866, -0.36354511976242065, 0.16683481633663177, 0.0684036985039711, -0.09425106644630432, 0.020264344289898872, -0.12934374809265137, -0.06941323727369308, -0.20783543586730957, 0.11281972378492355, -0.08659947663545609, 0.13330240547657013, -0.036421217024326324, -0.12678837776184082, -0.13073018193244934, 0.00793028436601162, 0.30298158526420593, 0.08265236765146255, -0.03281203657388687, 0.26580849289894104, 0.23775801062583923, -0.34883934259414673, 0.22704365849494934, -0.1522957980632782, -0.0199718214571476, -0.18435640633106232, 0.13444660604000092, -0.06265366077423096, -0.06927511841058731, 0.5562533140182495, 0.2502162754535675, 0.18348117172718048, 0.3105381727218628, -0.07539103925228119, 0.4139229953289032, -0.15326038002967834, 0.011447721160948277, 0.3346478343009949, 0.15990737080574036, -0.2039082646369934, -0.22294220328330994, 0.2769017517566681, 0.2694520354270935, -0.12536662817001343, 0.38237616419792175, -0.24210911989212036, -0.07111131399869919, 0.2561422884464264, 0.1250007301568985, 0.6941607594490051, -0.2547995150089264, 0.045146480202674866, -0.2514951527118683, 0.1451067328453064, 0.3248782753944397, -0.2804259955883026, 0.2194976657629013, -0.05861934646964073, -0.186362624168396, 0.1432298719882965, 0.01922348514199257, 0.19099874794483185, 0.4685852527618408, -0.2656117081642151, 0.17296984791755676, 0.28392907977104187, -0.17429162561893463, -0.07828256487846375, 0.4526755213737488, 0.14737093448638916, -0.40949302911758423, -0.16836205124855042, 0.1609099805355072, -0.04781387373805046, -0.3570652902126312, 0.03803533315658569, -0.297758549451828, 0.18695910274982452, 0.17041076719760895, -0.30531027913093567, -0.016286367550492287, 0.1349387913942337, 0.3702845871448517, -0.26351043581962585, -0.010328109376132488, -0.22824077308177948, 0.08044955134391785, -0.16402383148670197, 0.028227970004081726, 0.013841715641319752, 0.11218452453613281, -0.13298103213310242, 0.24834689497947693, -0.1728421300649643, -0.2532656490802765, 0.19582714140415192, -0.25327539443969727, -0.18081563711166382, -0.033477939665317535, 0.0669209286570549, -0.528749942779541, -0.14466294646263123, 0.1538774073123932, 0.09375316649675369, 0.3899873197078705, 0.030307888984680176, 0.3620776832103729, -0.4090332090854645, -0.18282611668109894, 0.19328148663043976, 0.2313535362482071, -0.22004356980323792, 0.5411828756332397, 0.15862132608890533, -0.10134606808423996, -0.0034010878298431635, 0.08322454988956451, 0.28915494680404663, 0.006169065833091736, 0.24808737635612488, 0.065529465675354, -0.20691266655921936, -0.32574859261512756, -0.2069137841463089, -0.2269085794687271, 0.05337334796786308, 0.3017611503601074, -0.1378849297761917, -0.21424853801727295, 0.06120949611067772, -0.12858076393604279, -0.12593437731266022, 0.13658922910690308, -0.21727478504180908, -0.188790425658226, -0.1422332227230072, 0.0968126505613327, -0.23314137756824493, 0.1975516676902771, -0.001994524383917451, 0.051907677203416824, 0.03665941208600998, 0.480784147977829, -0.43443337082862854, -0.1275334656238556, -0.3187757432460785, 0.23303648829460144, 0.27375122904777527, -0.047205645591020584, -0.18614403903484344, 0.24893899261951447, 0.23555833101272583, 0.12250734865665436, -0.19756600260734558, -0.3529149889945984, 0.21409596502780914, 0.038699809461832047, -0.15224967896938324, 0.06883623450994492, 0.07611609250307083, 0.13878026604652405, -0.3181968629360199, -0.3029014766216278, -0.1315649151802063, -0.18980145454406738, -0.07963050156831741, 0.07646632194519043, 0.2217511236667633, -0.2593083381652832, 0.3350774347782135, 0.021441729739308357, 0.08406461030244827, -0.13677182793617249, -0.22129477560520172, 0.3479636013507843, 0.1634102314710617, -0.2223723828792572, 0.2342488318681717, -0.0871863067150116, 0.0017210566438734531, -0.1312720775604248, 0.2663228213787079, 0.04079423099756241, -0.2608652710914612, -0.019350238144397736, 0.3714662492275238, 0.3568588197231293, 0.23907314240932465, 0.15673229098320007, 0.09422121942043304, 0.24893143773078918, -0.32490381598472595, -0.16936959326267242, 0.5596207976341248, -0.033907923847436905, 0.3383583724498749, -0.1567268818616867, 0.21891465783119202, 0.24029339849948883, 0.08322498202323914, 0.04722842946648598, -0.0850990042090416, -0.34236714243888855, -0.022366920486092567, -0.0906854048371315, 0.3015962839126587, -0.0777260810136795, 0.11497560888528824, 0.12278008460998535, 0.18773336708545685, 0.1768871396780014, -0.01696222648024559, 0.7731490135192871, -0.053665611892938614, 0.28818410634994507, 0.15299347043037415, -0.12935349345207214, 0.16693629324436188, 0.19242767989635468, 0.07116440683603287, 0.19933445751667023, 0.13279494643211365, 0.15432345867156982, 0.03727557510137558, -0.45047420263290405, -0.21498194336891174, 0.6825032234191895, -0.15054376423358917, -0.3235417604446411, -0.09154610335826874, -0.1169140487909317, -0.16023924946784973, 0.09446502476930618, 0.12781307101249695, 0.17653998732566833, 0.6568731665611267, 0.015062540769577026, 0.3660639226436615, -0.0714491605758667, 0.16607666015625, -0.15782132744789124, 0.30408328771591187, -0.2052638828754425, -0.21644385159015656, 0.14202597737312317, -0.1892104148864746, -0.06551603972911835, 0.35632485151290894, 0.2488277405500412, 0.2848224341869354, -0.1441098302602768, 0.2726021707057953, -0.2956683337688446, -0.059436287730932236, -0.37890127301216125, 0.24861401319503784, 0.01459728367626667, 0.045705828815698624, 0.4520920515060425, 0.15371039509773254, -0.20739395916461945, -0.2555699050426483, 0.05293077602982521, 0.01084923092275858, -0.23080319166183472, 0.1999271959066391, 0.15418627858161926, -0.19070887565612793, -0.061172936111688614, 0.05794436112046242, -0.49015554785728455, -0.2592765688896179, 0.5490930080413818, -0.432265043258667, -0.019617456942796707, -0.17556209862232208, 0.1528596729040146, -0.20012173056602478, 0.6736977100372314, 0.0027890196070075035, 0.34335601329803467, -0.026459941640496254, -0.25500860810279846, -0.5719376802444458, -0.3019397258758545, -0.09005896002054214, -0.05638184770941734, 0.18245656788349152, 0.5611236691474915, 0.1624627262353897, 0.272491455078125, -0.13719137012958527, -0.25312483310699463, -0.07214827835559845, 0.058338604867458344, -0.41925597190856934, 0.23775655031204224, -0.12380575388669968, -0.07895199209451675, 0.1540432721376419, -0.3220899999141693, 0.3157336711883545, 0.016088496893644333, 0.2028990387916565, -0.09456721693277359, 0.026144228875637054, 0.490680992603302, 0.19405275583267212, -0.15698149800300598, 0.146026149392128, 0.311210036277771, -0.33735257387161255, -0.00260283425450325, -0.1494636982679367, 0.1065344288945198, -0.16622108221054077, -0.09496398270130157, 0.04399288073182106, 0.33118247985839844, -0.16195988655090332, 0.25680482387542725, -0.044104866683483124, 0.21646304428577423, -0.20967082679271698, -0.04306739941239357, 0.18071189522743225, 0.02991187572479248, 0.14887255430221558, 0.24630677700042725, -0.14018520712852478, 0.2737382650375366, -0.007809333503246307, 0.03374152630567551, -0.14305736124515533, -0.21259669959545135, 0.2409764677286148, -0.39516982436180115, -0.24289090931415558, -0.34730398654937744, 0.21902954578399658, 0.040853358805179596, 0.32732507586479187, -0.24652861058712006, -0.3446033000946045, 0.2122890204191208, -0.034866780042648315, -0.01911395974457264, 0.4801187813282013, -0.13468502461910248, -0.2861381769180298, -0.1634637415409088, -0.29623889923095703, 0.04627378284931183, -0.28978389501571655, -0.1670207530260086, -0.2816140353679657 ]
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.2608761787414551, -0.40522071719169617, -0.16711942851543427, 0.024264108389616013, -0.3476990759372711, 0.10837887227535248, 0.09586935490369797, 0.10010963678359985, 0.009775328449904919, 0.07798191159963608, -0.12978754937648773, 0.26878461241722107, 0.028804278001189232, 0.5679565668106079, 0.03521880507469177, -0.3084890842437744, 0.07579720765352249, 0.1260467916727066, -0.04775780811905861, 0.19724352657794952, 0.019763311371207237, 0.15983976423740387, -0.27881598472595215, -0.12523268163204193, -0.24529097974300385, -0.1634083092212677, -0.19110283255577087, -0.01965184509754181, -0.059498321264982224, -0.15034648776054382, 0.04616697132587433, 0.4871736764907837, -0.2316056340932846, 0.23612862825393677, -0.00010790779197122902, -0.20297464728355408, 0.15033192932605743, 0.22987176477909088, -0.05376727879047394, 0.20070235431194305, -0.19346579909324646, -0.4777648150920868, -0.014705353416502476, -0.07633686810731888, 0.05922086536884308, 0.11958181113004684, 0.17781031131744385, -0.269131600856781, 0.19042935967445374, -0.37261250615119934, 0.12446186691522598, 0.35821911692619324, -0.054526615887880325, 0.2704070508480072, -0.2098025381565094, 0.46459969878196716, -0.07393047958612442, -0.19201108813285828, 0.46980467438697815, -0.14419659972190857, -0.1906626671552658, 0.5513613224029541, -0.21676641702651978, 0.14672143757343292, 0.20115411281585693, -0.04676597937941551, -0.18241332471370697, -0.44957640767097473, -0.1506306678056717, 0.3538201153278351, -0.024054093286395073, -0.1382969617843628, -0.5037174820899963, -0.4508947432041168, -0.13390444219112396, -0.4086398482322693, -0.17068587243556976, 0.11095289885997772, -0.19540347158908844, 0.03099934011697769, -0.4884885549545288, -0.36457857489585876, 0.2795681059360504, -0.187864288687706, 0.29828745126724243, 0.2111876904964447, 0.004194284789264202, 0.09641872346401215, 0.2584790587425232, -0.19326485693454742, -0.2565283477306366, -0.277212530374527, 0.11942580342292786, 0.03377281129360199, -0.678464949131012, -0.06038971617817879, -0.006560552399605513, 0.13005946576595306, 0.1923828274011612, 0.1290128082036972, 0.10125650465488434, 0.3147673010826111, -0.022961735725402832, 0.22534142434597015, 0.1074022427201271, -0.3512952923774719, 0.1750335842370987, -0.1152898520231247, 0.13110098242759705, -0.1904401183128357, -0.02981426566839218, 0.20257510244846344, 0.21382789313793182, -0.051817234605550766, -0.41356271505355835, 0.029281403869390488, 0.027736404910683632, 0.10041531175374985, 0.07463229447603226, -0.3755647838115692, 0.18564920127391815, -0.2991417646408081, 0.14104151725769043, 0.041994910687208176, -0.009586462751030922, 0.3397318720817566, -0.14180821180343628, -0.13328400254249573, -0.2340056300163269, -0.23821136355400085, -0.09717054665088654, -0.05162490904331207, -0.03319829702377319, 0.2781027853488922, 0.12049996107816696, 0.04428178071975708, -0.05068284273147583, 0.1477281153202057, 0.14398284256458282, 0.2672168016433716, 0.2075037658214569, -0.12425506114959717, 0.06952645629644394, 0.18338920176029205, -0.07269145548343658, -0.03839576616883278, -0.11696606874465942, 0.22224649786949158, -0.25718677043914795, -0.09597098082304001, -0.22058109939098358, -0.20751607418060303, -0.1869582086801529, 0.0773485004901886, 0.10482587665319443, -0.10925962030887604, -0.47877025604248047, 0.7779142260551453, 0.0713086724281311, -0.011500912718474865, -0.2945774495601654, 0.02274813875555992, -0.5353249311447144, -0.18172518908977509, 0.34166455268859863, 0.1284206658601761, -0.048566315323114395, -0.03654038906097412, -0.22283533215522766, -0.1078435629606247, 0.2403540462255478, 0.44142472743988037, -0.2017017900943756, 0.12921369075775146, -0.17854398488998413, 0.4836603105068207, 0.5142173767089844, -0.12952496111392975, 0.0830005630850792, 0.37425369024276733, -0.14779648184776306, 0.07080511748790741, 0.31427595019340515, 0.19002853333950043, 0.20826366543769836, 0.027613619342446327, 0.14447331428527832, 0.5401501655578613, -0.19802318513393402, 0.22309699654579163, 0.0059554800391197205, -0.18978171050548553, 0.22617089748382568, 0.1622997522354126, -0.1524646133184433, 0.08584774285554886, -0.07611066848039627, -0.5189330577850342, 0.48664119839668274, -0.2974567711353302, 0.156260147690773, 0.058902557939291, -0.13139553368091583, 0.0926600769162178, -0.06697512418031693, -0.3271736204624176, -0.35985174775123596, 0.06885423511266708, -0.04177737981081009, -0.04910828545689583, 0.08304738998413086, -0.3939553201198578, 0.41556641459465027, 0.09817185997962952, 0.02685672789812088, 0.00865845289081335, 0.10695843398571014, 0.1812458336353302, 0.15198016166687012, -0.2360934317111969, -0.3061083257198334, 0.3358498513698578, -0.0799676924943924, -0.012366024777293205, -0.35268914699554443, 0.213833749294281, 0.25085556507110596, -0.05532534793019295, 0.04190496727824211, 0.12120671570301056, -0.05146116018295288, -0.12647795677185059, 0.1427655667066574, -0.0031843853648751974, -0.04930553585290909, 0.2550179064273834, 0.655081570148468, 0.2654031813144684, 0.26276180148124695, 0.07855628430843353, 0.023095732554793358, -0.2753278613090515, 0.038247156888246536, -0.2153046727180481, -0.16839779913425446, 0.5540854334831238, -0.041023485362529755, 0.4023042321205139, 0.09175566583871841, -0.01316314097493887, 0.23495973646640778, 0.07330089062452316, -0.07017631828784943, 0.2105984091758728, 0.15266913175582886, -0.08113281428813934, 0.027083154767751694, 0.14318937063217163, -0.4629769027233124, 0.34152746200561523, 0.4402227997779846, 0.005871140398085117, -0.20786666870117188, 0.08403760194778442, 0.18721944093704224, -0.11107799410820007, 0.1967877447605133, 0.02382124401628971, 0.1881488561630249, 0.18847495317459106, 0.05033477023243904, -0.045442815870046616, 0.10284751653671265, -0.06637262552976608, 0.11767371743917465, 0.3205145299434662, 0.21684759855270386, -0.02652527019381523, 0.16707396507263184, -0.23632605373859406, -0.28278252482414246, -0.2901488244533539, 0.17368608713150024, -0.10771023482084274, 0.019659772515296936, -0.061528269201517105, -0.18522024154663086, -0.1912413090467453, -0.04619458690285683, 0.047887444496154785, -0.30568021535873413, -0.30417704582214355, -0.08128039538860321, 0.30923759937286377, -0.05187167599797249, 0.07619788497686386, 0.22128918766975403, 0.21300747990608215, -0.19765445590019226, -0.008133521303534508, -0.2818010151386261, 0.012489600107073784, 0.12855274975299835, 0.03139238804578781, 0.302211731672287, 0.33209022879600525, 0.4555428922176361, 0.12329549342393875, 0.09103302657604218, -0.44556888937950134, -0.2040766477584839, -0.017964402213692665, -0.27676257491111755, 0.13668566942214966, 0.12262161076068878, 0.12018005549907684, -0.16078101098537445, -0.27908816933631897, 0.19724173843860626, 0.10888078063726425, -0.2122076004743576, -0.26809391379356384, 0.0608801431953907, -0.024981679394841194, -0.024112269282341003, -0.14902114868164062, -0.4795733392238617, -0.3343915343284607, 0.5942110419273376, -0.2876608371734619, 0.22768795490264893, -0.33080706000328064, -0.11933047324419022, -0.0027463799342513084, -0.35049474239349365, 0.06652767211198807, 0.01905091665685177, -0.4718954861164093, 0.020882466807961464, 0.011857656762003899, -0.11374913901090622, -0.2490851879119873, -0.019860532134771347, -0.06454035639762878, 0.2378329336643219, -0.08363237231969833, -0.10059991478919983, -0.35888293385505676, 0.2384416162967682, 0.2121085226535797, 0.09818010777235031, 0.27783316373825073, -0.07961297780275345, -0.07055790722370148, 0.13385967910289764, -0.4800579845905304, 0.039794109761714935, -0.0009141458431258798, -0.1605331152677536, 0.263217568397522, 0.36091551184654236, 0.0008575535612180829, 0.7097071409225464, 0.23044195771217346, -0.047402895987033844, 0.13507501780986786, 0.12800446152687073, -0.16660968959331512, 0.05681369826197624, -0.5510410666465759, -0.03511747717857361, -0.1622917205095291, 0.07030567526817322, 0.024875497445464134, -0.03469660505652428, -0.24920319020748138, -0.09008833765983582, 0.016270367428660393, -0.3376847207546234, -0.09108656644821167, 0.08674703538417816, -0.0471545048058033, 0.23084400594234467, 0.07602601498365402, -0.31008780002593994, -0.260721892118454, 0.05415581911802292, -0.20187070965766907, 0.13854707777500153, 0.3485732078552246, -0.17059369385242462, -0.5018061995506287, -0.13230420649051666, -0.6374372243881226, 0.4433450400829315, 0.2480609118938446, 0.03987693786621094, 0.008630413562059402, 0.06634320318698883, 0.13119462132453918, -0.1964477002620697, 0.7243829965591431, -0.2557787001132965, -0.36009150743484497, 0.22711528837680817, -0.5849374532699585, 0.08722962439060211, 0.19748997688293457, 0.07061408460140228, 0.40892454981803894, 0.43235188722610474, 0.4398611783981323, -0.31287434697151184, -0.45027926564216614, 0.20788085460662842, 0.1022501140832901, -0.06412649154663086, -0.010883831419050694, -0.15863154828548431, -0.07439013570547104, -0.26735472679138184, 0.10518413037061691, -0.04299398511648178, 0.07704910635948181, 0.0950402319431305, -0.04558752104640007, -0.07072390615940094, 0.018344799056649208, 0.19131430983543396, -0.016174107789993286, -0.06983545422554016, 0.242173969745636, 0.2998712360858917, -0.09228385984897614, 0.09461895376443863, -0.06918157637119293, 0.1599670797586441, -0.12372349202632904, -0.1960049569606781, -0.07253210991621017, -0.033814944326877594, 0.6675155758857727, 0.24533486366271973, 0.2298673540353775, 0.3670386075973511, 0.09789746254682541, 0.38566499948501587, -0.4025581479072571, 0.025354230776429176, 0.43677154183387756, 0.22923551499843597, -0.39203232526779175, -0.30549877882003784, 0.35324543714523315, 0.3055294454097748, -0.016956662759184837, 0.5018379092216492, -0.014423364773392677, 0.004129062872380018, 0.13297726213932037, -0.014276841655373573, 0.7471274137496948, -0.32580992579460144, 0.13323697447776794, -0.30170968174934387, 0.04639881104230881, 0.38421469926834106, -0.31197690963745117, 0.2014099806547165, -0.1073826476931572, -0.23718710243701935, 0.0442393533885479, 0.012799425050616264, 0.3001087009906769, 0.2647271156311035, -0.12615180015563965, 0.31285372376441956, 0.26692628860473633, -0.09074275195598602, -0.12108062207698822, 0.4641556441783905, 0.16619540750980377, -0.4408358037471771, -0.24534600973129272, 0.07306388020515442, -0.02932625263929367, -0.17367200553417206, 0.04854718968272209, -0.29388219118118286, 0.2022453099489212, 0.14787589013576508, -0.3816893398761749, -0.09094035625457764, -0.08112123608589172, 0.2681492567062378, -0.1340634673833847, -0.12422704696655273, -0.04414840042591095, 0.06124834343791008, -0.04844987392425537, -0.05566514655947685, -0.05689099803566933, 0.03403351455926895, -0.24745206534862518, 0.23476825654506683, -0.2475908100605011, -0.2561882734298706, 0.10873566567897797, -0.13691739737987518, -0.18500292301177979, -0.1227848082780838, 0.12354676425457001, -0.5898900628089905, -0.285460889339447, 0.20595359802246094, 0.004939364269375801, 0.2578452527523041, -0.018939360976219177, 0.3219512104988098, -0.15040041506290436, -0.16497953236103058, 0.06699418276548386, 0.3953620493412018, -0.1820901483297348, 0.4212400019168854, 0.10832728445529938, -0.10378998517990112, -0.04649984464049339, 0.11547373980283737, 0.16585199534893036, -0.17086245119571686, 0.18206258118152618, 0.1965956836938858, -0.183461531996727, -0.200971320271492, -0.15374040603637695, -0.13373984396457672, 0.04665873199701309, 0.24913805723190308, -0.004617731086909771, -0.09089017659425735, 0.009367192164063454, 0.031243572011590004, -0.12580305337905884, -0.06459096819162369, -0.14875341951847076, -0.3159017562866211, -0.127463698387146, 0.10003591328859329, -0.26906174421310425, 0.13804572820663452, 0.09214696288108826, 0.08710166811943054, 0.08868806064128876, 0.5282356142997742, -0.2911815643310547, 0.03230158984661102, -0.06001581996679306, 0.13118872046470642, 0.4815720319747925, -0.020730189979076385, -0.02861112914979458, 0.225286066532135, 0.11070135980844498, 0.17181932926177979, -0.21505209803581238, -0.25308945775032043, 0.21049199998378754, 0.09223046153783798, -0.08674866706132889, 0.03804636374115944, 0.09126171469688416, 0.15599200129508972, -0.2978249788284302, -0.3565599024295807, 0.022543324157595634, -0.08213593065738678, 0.019382202997803688, 0.02034350112080574, 0.16839545965194702, -0.2722153067588806, 0.18225952982902527, 0.03209292143583298, 0.14878754317760468, -0.08594484627246857, -0.16205058991909027, 0.2506084144115448, 0.09972470998764038, -0.1601608395576477, 0.18330064415931702, -0.04291357472538948, 0.3144592046737671, -0.20851768553256989, 0.20270510017871857, -0.010751796886324883, -0.2946520149707794, -0.07233310490846634, 0.46259790658950806, 0.33775997161865234, 0.28702011704444885, 0.26204314827919006, 0.07707638293504715, 0.11315267533063889, -0.22610710561275482, -0.14192506670951843, 0.6985284686088562, 0.027723142877221107, 0.23453651368618011, -0.028704985976219177, 0.2569652199745178, 0.574137270450592, 0.021093187853693962, -0.048877350986003876, -0.027953360229730606, -0.2640927731990814, 0.0817645937204361, -0.2153848111629486, 0.25477728247642517, -0.020600220188498497, 0.21077309548854828, 0.2571158707141876, 0.14071720838546753, 0.13339854776859283, -0.040063001215457916, 0.7664589285850525, -0.12304939329624176, 0.29141560196876526, 0.17564401030540466, -0.3377155363559723, 0.23824475705623627, 0.1596972644329071, 0.13089756667613983, 0.1412184089422226, 0.06038197502493858, 0.3576045036315918, -0.02419665828347206, -0.5762879848480225, -0.22083760797977448, 0.777030885219574, -0.0992092490196228, -0.2864764928817749, 0.1479821801185608, -0.07641294598579407, -0.009333175607025623, 0.13941170275211334, 0.15873469412326813, 0.036702413111925125, 0.8322875499725342, -0.14246203005313873, 0.3206215798854828, -0.18600702285766602, 0.050083402544260025, -0.06968913972377777, 0.3375323414802551, -0.09121073782444, -0.1996353566646576, 0.0603376105427742, -0.15614379942417145, -0.13571982085704803, 0.4773379862308502, 0.24782158434391022, 0.1339820921421051, -0.09340187907218933, 0.2575250267982483, -0.43076151609420776, 0.030497118830680847, -0.18874461948871613, 0.3448916971683502, -0.1604805886745453, 0.02387801557779312, 0.45079076290130615, 0.05616220459342003, -0.11086680740118027, -0.28681299090385437, -0.0931769609451294, 0.14092017710208893, -0.45097923278808594, 0.16365565359592438, -0.13767041265964508, -0.10649552941322327, -0.12121528387069702, 0.02330229990184307, -0.4255392849445343, -0.17504259943962097, 0.61092209815979, -0.504849910736084, -0.11795826256275177, -0.05764291435480118, 0.09092337638139725, -0.15989898145198822, 0.5806364417076111, 0.30982667207717896, 0.29967325925827026, -0.0502883642911911, -0.19277511537075043, -0.5379379391670227, -0.4539736211299896, -0.016678694635629654, 0.08476227521896362, 0.12837810814380646, 0.440475195646286, 0.23647665977478027, 0.3570866882801056, 0.04513080045580864, -0.321748822927475, 0.08707131445407867, 0.08730196207761765, -0.3887605667114258, 0.2369844913482666, -0.17453326284885406, -0.1542670875787735, 0.1626611053943634, -0.21016773581504822, 0.3319188952445984, 0.07082896679639816, 0.01220492459833622, -0.17520801723003387, 0.25322791934013367, 0.2549223303794861, -0.09060181677341461, -0.11705171316862106, 0.21099936962127686, 0.3174998462200165, -0.28997689485549927, -0.02389020472764969, -0.08142910152673721, 0.06248760223388672, -0.1937701553106308, 0.07047736644744873, -0.021517354995012283, 0.4209701716899872, -0.2175205498933792, 0.10945094376802444, -0.05966721475124359, 0.2623104155063629, -0.11405634135007858, -0.09235357493162155, 0.06592239439487457, 0.102278932929039, 0.04511995241045952, 0.1289890706539154, -0.004511664621531963, 0.3254566788673401, 0.0358525775372982, 0.08319178223609924, -0.1544273942708969, -0.09351734071969986, 0.2818123996257782, -0.48382440209388733, -0.26230618357658386, -0.30232059955596924, 0.08092240989208221, 0.18151864409446716, 0.22340518236160278, -0.5047799348831177, -0.29061922430992126, 0.18537402153015137, 0.003767364425584674, -0.0025368081405758858, 0.6374949216842651, -0.1342751383781433, -0.3422391712665558, -0.1719224601984024, -0.18005332350730896, 0.030383409932255745, -0.3091047704219818, -0.03354569524526596, -0.18729722499847412 ]
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.04464291036128998, -0.19605229794979095, -0.02139178104698658, 0.3716607987880707, 0.03904010355472565, -0.27633100748062134, -0.02063690684735775, 0.15795141458511353, -0.07178064435720444, -0.06624244898557663, -0.16135291755199432, 0.2627061903476715, 0.0014280215837061405, 0.16808229684829712, 0.4264349639415741, -0.14670217037200928, 0.04844214394688606, -0.06990568339824677, 0.2786862254142761, -0.05261460691690445, -0.10909312218427658, 0.15061001479625702, -0.3253747224807739, 0.05446917563676834, -0.3497876822948456, 0.08372720330953598, -0.06782139837741852, 0.34623992443084717, -0.2758391499519348, -0.49336859583854675, 0.5901548862457275, 0.06104285269975662, 0.33754754066467285, 0.32534825801849365, -0.00011858235666295514, 0.007394216954708099, 0.04914982244372368, -0.29767945408821106, 0.06299978494644165, -0.5153079628944397, -0.2116062045097351, -0.6882324814796448, -0.07075048983097076, -0.1863514631986618, -0.24942409992218018, -0.06914987415075302, 0.23590897023677826, 0.16131561994552612, 0.32868748903274536, 0.4041299521923065, 0.06675538420677185, 0.11867239326238632, -0.011228901334106922, 0.16462337970733643, 0.40690451860427856, 0.39126092195510864, -0.29841142892837524, -0.055472083389759064, 0.5836416482925415, 0.15009354054927826, -0.20072396099567413, 0.226136714220047, 0.06657800078392029, -0.09574048966169357, 0.21683166921138763, 0.31174880266189575, 0.11062179505825043, -0.45838871598243713, -0.2030348777770996, 0.282892107963562, 0.2304353415966034, -0.2553839087486267, -0.20350788533687592, -0.277931809425354, -0.0572836697101593, -0.2900470495223999, -0.028027545660734177, 0.3609626591205597, -0.08088504523038864, -0.009099005721509457, 0.25436440110206604, -0.0029822110664099455, -0.11148100346326828, 0.2031373530626297, -0.010520489886403084, 0.40962186455726624, -0.013463722541928291, -0.10751811414957047, -0.13960669934749603, -0.1162080317735672, 0.7018570303916931, -0.010425682179629803, 0.1576864868402481, 0.11971112340688705, -0.6041293740272522, 0.08037961274385452, -0.1363219916820526, -0.28189265727996826, 0.16630515456199646, -0.04843688756227493, 0.20986604690551758, 0.15891490876674652, 0.14852364361286163, 0.014586854726076126, 0.3213757872581482, 0.2003955990076065, 0.2381373941898346, 0.031010355800390244, -0.13071304559707642, 0.07348096370697021, 0.08580351620912552, -0.09635843336582184, -0.31837502121925354, 0.06530549377202988, 0.2368326336145401, -0.022806750610470772, 0.28890714049339294, -0.1962372362613678, -0.36802423000335693, -0.019991574808955193, -0.12843039631843567, 0.07258022576570511, 0.14147888123989105, 0.06118020415306091, 0.00806072074919939, 0.587437629699707, -0.07428891211748123, 0.17870879173278809, -0.25383397936820984, 0.029140904545783997, -0.14729981124401093, 0.16940957307815552, -0.6243598461151123, -0.10618668049573898, 0.2582584023475647, 0.09196235984563828, 0.19703945517539978, -0.00640303548425436, 0.12182040512561798, -0.3322488069534302, 0.17588157951831818, -0.27914366126060486, 0.26510992646217346, -0.01586705632507801, 0.24573858082294464, -0.12957212328910828, -0.30932387709617615, -0.009519552811980247, -0.1647399216890335, 0.21943722665309906, -0.7123693823814392, -0.02457306906580925, 0.04509620741009712, 0.07545933872461319, -0.2141946405172348, 0.14357395470142365, -0.5043224096298218, 0.03225930780172348, 0.06304366886615753, 0.21816879510879517, 0.10690448433160782, -0.33061397075653076, -0.21428973972797394, -0.072048619389534, 0.08306998014450073, 0.13265639543533325, -0.1291508823633194, 0.09738141298294067, 0.06309907138347626, 0.0002564254973549396, 0.10419698804616928, 0.21627944707870483, -0.010966584086418152, 0.28418153524398804, -0.1886347234249115, 0.5723386406898499, 0.4195818603038788, -0.8037274479866028, -0.3378545045852661, 0.087508924305439, -0.16561439633369446, 0.0018322326941415668, -0.07771505415439606, 0.2999710440635681, 0.21682997047901154, -0.10970930010080338, 0.2860378623008728, 0.47177886962890625, -0.06015554070472717, 0.11296408623456955, -0.1055825874209404, 0.26627710461616516, -0.11809369176626205, 0.321599543094635, 0.04209786280989647, -0.26852932572364807, -0.15946254134178162, 0.07514160126447678, 0.19486138224601746, -0.11582794785499573, 0.08708550035953522, 0.43145379424095154, 0.08927307277917862, -0.0513845719397068, -0.05062364414334297, 0.038325343281030655, -0.7624903917312622, 0.11410113424062729, -0.42895984649658203, 0.37934446334838867, 0.010656947270035744, -0.0671948716044426, -0.17284218966960907, -0.05107612907886505, -0.29626214504241943, -0.1906544268131256, 0.10716108232736588, -0.12099944055080414, -0.1237810030579567, -0.3034520149230957, -0.07628544420003891, 0.3974151611328125, -0.22609815001487732, 0.07376271486282349, -0.5780184864997864, 0.3407830595970154, 0.1180049404501915, -0.06648511439561844, -0.012310804799199104, 0.4472564160823822, 0.19224977493286133, -0.04829668626189232, 0.16845983266830444, 0.22092197835445404, 0.21488966047763824, -0.1571742594242096, -0.06123373657464981, -0.002025621011853218, 0.13349293172359467, -0.5777854323387146, 0.06592776626348495, 0.2230995148420334, -0.0014230826636776328, -0.21430499851703644, -0.12435473501682281, 0.5517563223838806, 0.18477074801921844, 0.20728442072868347, 0.028973383828997612, 0.07075010240077972, 0.2122233659029007, -0.17136184871196747, -0.23443323373794556, -0.10390456765890121, 0.15454953908920288, 0.12331730872392654, 0.030547503381967545, 0.09956570714712143, -0.5023414492607117, 0.020012913271784782, 0.3077194094657898, 0.027430111542344093, 0.1898188441991806, 0.20472700893878937, -0.15310914814472198, -0.07916522026062012, 0.03745758906006813, 0.37011998891830444, 0.3590865731239319, 0.0914272889494896, 0.10988565534353256, 0.1304071843624115, -0.03294118866324425, 0.07248828560113907, -0.03588437661528587, 0.061753999441862106, 0.15101754665374756, 0.21196503937244415, 0.17851583659648895, -0.08419503271579742, -0.0858963280916214, -0.21915066242218018, 0.032177671790122986, 0.1521633267402649, -0.3294999897480011, 0.07806925475597382, 0.03682224079966545, -0.45026499032974243, -0.14737392961978912, 0.044172048568725586, -0.13615761697292328, -0.31933650374412537, -0.03792206197977066, -0.05715640261769295, 0.2387745976448059, 0.08406677842140198, -0.474688321352005, -0.21508623659610748, -0.19860197603702545, -0.34062865376472473, -0.05831475183367729, 0.07429350167512894, -0.13823851943016052, -0.026754071936011314, 0.21197301149368286, 0.5459079742431641, -0.031272001564502716, -0.43531471490859985, 0.3901608884334564, -0.38724154233932495, -0.2023114562034607, 0.3016566336154938, -0.26382219791412354, 0.31215783953666687, 0.2171546369791031, -0.10408525913953781, -0.4046022593975067, 0.19591717422008514, 0.18749172985553741, -0.32148051261901855, -0.31412580609321594, 0.3168617784976959, -0.1772630363702774, -0.09167475253343582, -0.026444120332598686, -0.40634554624557495, -0.5237719416618347, -0.20548726618289948, 0.011993707157671452, 0.22303134202957153, 0.3162437081336975, 0.21513846516609192, -0.25966668128967285, -0.14515061676502228, -0.1321808248758316, -0.19551144540309906, 0.006959072779864073, -0.5726140737533569, 0.4568421542644501, -0.24419423937797546, -0.20515237748622894, -0.08598081767559052, -0.26587846875190735, 0.47131967544555664, 0.3780289590358734, -0.06849364191293716, -0.03754069283604622, 0.14133843779563904, 0.03518203645944595, 0.17770904302597046, -0.06221930682659149, 0.2964116632938385, -0.21413563191890717, 0.045705169439315796, -0.027790209278464317, -0.00812369305640459, 0.07852565497159958, 0.32014498114585876, 0.2304375171661377, -0.02651875652372837, -0.2571680247783661, 0.1103469580411911, 0.06357692927122116, 0.15529000759124756, 0.046334125101566315, 0.4367929697036743, 0.00537855876609683, 0.11456899344921112, 0.08478368818759918, 0.02240877039730549, -0.16402994096279144, 0.060146354138851166, 0.23326942324638367, -0.0009899433935061097, 0.23578789830207825, -0.15477226674556732, -0.0720980316400528, 0.12637129426002502, -0.13299888372421265, -0.21512039005756378, 0.5398622155189514, -0.13975419104099274, 0.41052326560020447, -0.17096172273159027, 0.026817455887794495, -0.061433058232069016, -0.45806941390037537, -0.25712987780570984, 0.08614976704120636, 0.17971575260162354, 0.15540489554405212, -0.6861749291419983, 0.39854297041893005, -0.3888287842273712, -0.020633157342672348, 0.17285065352916718, 0.5378321409225464, 0.212025448679924, 0.0804058387875557, 0.15717247128486633, -0.0373990423977375, 0.31122514605522156, -0.28972920775413513, -0.1462426632642746, 0.10926082730293274, 0.10011457651853561, -0.32502391934394836, -0.0430731363594532, -0.250881165266037, 0.02653048001229763, 0.4807164669036865, 0.4030669629573822, -0.30203500390052795, -0.44885727763175964, -0.014215348288416862, 0.04743518680334091, -0.2095986306667328, -0.19778332114219666, -0.2662702798843384, -0.4505194127559662, -0.09220108389854431, -0.09107836335897446, 0.5540916323661804, -0.01196823175996542, 0.28599005937576294, 0.02891964092850685, -0.2357490062713623, 0.2654159665107727, 0.33019083738327026, -0.03711409121751785, 0.5644022822380066, -0.23958176374435425, 0.005737456493079662, -0.06575525552034378, -0.08433046191930771, 0.29014790058135986, 0.48032572865486145, -0.1859404295682907, -0.15045292675495148, 0.18000465631484985, -0.22384530305862427, 0.42238935828208923, 0.1663808673620224, 0.1885034739971161, 0.018895691260695457, -0.2950085997581482, -0.0011857440695166588, -0.13589289784431458, 0.13620232045650482, 0.3885796070098877, -0.10829764604568481, -0.41880813241004944, -0.3653251826763153, 0.17683634161949158, 0.3088771402835846, 0.10559818893671036, -0.23104365170001984, -0.17216086387634277, -0.2617759704589844, -0.14155860245227814, 0.46636828780174255, 1.0166808366775513, 0.030185656622052193, 0.4335704743862152, 0.17269083857536316, 0.08972707390785217, 0.06072677671909332, -0.44448649883270264, 0.2049940675497055, -0.3482038080692291, -0.3285883367061615, -0.20364521443843842, -0.25741419196128845, -0.062090981751680374, 0.20261533558368683, 0.03191261738538742, 0.6626025438308716, 0.22569090127944946, -0.04478956386446953, 0.02295144461095333, 0.2159697264432907, 0.00936820823699236, -0.3867393732070923, -0.37452432513237, 0.004031589720398188, -0.286334753036499, 0.014985784888267517, -0.15357697010040283, -0.2083835005760193, -0.05914909392595291, 0.19947588443756104, 0.13996656239032745, 0.2819465100765228, 0.09344691038131714, -0.18290632963180542, 0.4239276051521301, -0.5605941414833069, -0.05334736034274101, 0.24287235736846924, 0.07730354368686676, -0.3221908211708069, 0.0031520971097052097, 0.2361229658126831, 0.40504202246665955, 0.10099702328443527, 0.3913242220878601, -0.3321993052959442, 0.2601025402545929, 0.0498279333114624, 0.12219145148992538, -0.24286019802093506, 0.1581602841615677, -0.037262748926877975, -0.41743266582489014, 0.04797247424721718, -0.17502635717391968, -0.27497339248657227, -0.20879900455474854, 0.0269384253770113, -0.14436949789524078, -0.04973822832107544, 0.054940782487392426, 0.2594362497329712, -0.09028707444667816, 0.14810165762901306, 0.11329203099012375, -0.2592058777809143, 0.19909177720546722, 0.0831904262304306, 0.29767465591430664, -0.31253185868263245, 0.03761017322540283, 0.2482127994298935, 0.015135026536881924, -0.09923594444990158, 0.18058155477046967, 0.4821510314941406, -0.6173617243766785, 0.033747993409633636, -0.24345047771930695, -0.013798878528177738, -0.016300322487950325, 0.18511681258678436, 0.0020547218155115843, -0.2624998092651367, 0.16277451813220978, -0.28285712003707886, -0.3409923315048218, 0.37519916892051697, 0.1163778230547905, 0.278291791677475, -0.19798555970191956, 0.009825680404901505, 0.15099377930164337, -0.22004446387290955, -0.2390499711036682, 0.17531579732894897, -0.17947056889533997, 0.1961245983839035, -0.11576474457979202, -0.0962914228439331, 0.08040422201156616, -0.09420140832662582, -0.02496977522969246, 0.2664698362350464, -0.14584460854530334, -0.057853639125823975, 0.01793406903743744, 0.12439152598381042, 0.13275229930877686, -0.11577007174491882, 0.12489141523838043, 0.12000454217195511, -0.05154099687933922, -0.13733763992786407, -0.11356806010007858, 0.1800016611814499, 0.0228338073939085, 0.23035313189029694, -0.2976279854774475, 0.0392741933465004, -0.12316573411226273, 0.23105943202972412, 0.18953892588615417, 0.12020551413297653, 0.065750852227211, 0.2072514146566391, -0.05111943930387497, 0.02486601285636425, -0.5182061195373535, 0.20642657577991486, 0.1967259794473648, 0.36884352564811707, 0.21520021557807922, -0.15535615384578705, 0.10563836991786957, -0.03227797523140907, 0.149868905544281, 0.3083643615245819, -0.26997217535972595, -0.00584446033462882, 0.24190372228622437, 0.14836721122264862, -0.15884387493133545, -0.004972209222614765, 0.36710575222969055, 0.007891041226685047, 0.008068501949310303, 0.47907382249832153, 0.35250240564346313, 0.13681526482105255, -0.146345853805542, 0.06332729011774063, 0.2355751097202301, -0.2535266578197479, 0.06761245429515839, 0.4052128195762634, -0.0051036253571510315, 0.13945724070072174, 0.5995877385139465, 0.03328782692551613, -0.11432912200689316, 0.6000965237617493, 0.3011854887008667, 0.7809863090515137, 0.19956015050411224, 0.1787547469139099, -0.06581120193004608, -0.10446452349424362, -0.41298964619636536, 0.25482887029647827, 0.12739621102809906, 0.17695313692092896, 0.03835296630859375, 0.14328685402870178, 0.1453569084405899, -0.18604719638824463, -0.09647680819034576, 0.11349980533123016, -0.34049269556999207, 0.02293071150779724, -0.3317873179912567, -0.2342435121536255, -0.12177449464797974, -0.11770076304674149, -0.17227418720722198, 0.03673788532614708, 0.06148914247751236, 0.1339387148618698, -0.007461394648998976, -0.06121180206537247, 0.08235441148281097, 0.28523558378219604, 0.04782385006546974, -0.1977073699235916, 0.5288454294204712, 0.033901214599609375, -0.04695772007107735, -0.15871185064315796, 0.2742473781108856, 0.2531481087207794, 0.2315029352903366, -0.051973335444927216, -0.10700378566980362, 0.3387278914451599, -0.11022783815860748, -0.029693208634853363, 0.10047407448291779, 0.2005058377981186, 0.2549166679382324, 0.18043406307697296, 0.06518203765153885, -0.004352225922048092, 0.3010004758834839, 0.06953565776348114, -0.19286678731441498, 0.2435857653617859, 0.28016066551208496, 0.18614542484283447, -0.28904542326927185, -0.12946169078350067, -0.22410227358341217, -0.3388960361480713, -0.16421034932136536, 0.3142120838165283, -0.14284087717533112, 0.24048101902008057, -0.13081522285938263, 0.05084574967622757, 0.04204917326569557, 0.19686725735664368, 0.11872298270463943, 0.11401635408401489, -0.4945983290672302, -0.08852371573448181, -0.7457128763198853, 0.200553297996521, -0.3096918761730194, -0.2826576232910156, 0.23557013273239136, 0.026604706421494484, -0.04746084660291672, 0.30229997634887695, -0.23467393219470978, 0.22896724939346313, 0.06854795664548874, 0.3347982168197632, -0.6064155697822571, 0.06857986748218536, 0.2317824363708496, 0.35899823904037476, 0.05319143086671829, -0.12498112767934799, -0.2764686644077301, 0.21865318715572357, -0.07028910517692566, -0.07275868952274323, -0.06854434311389923, -0.1896737962961197, -0.05582611635327339, 0.2673414349555969, -0.21242325007915497, 0.15677635371685028, -0.07460593432188034, -0.17446333169937134, -0.27474653720855713, -0.05971056595444679, -0.16448555886745453, 0.021056028082966805, 0.10053851455450058, 0.3167756199836731, 0.0033467693720012903, 0.15478698909282684, -0.39150696992874146, -0.2984791100025177, 0.013277018442749977, 0.08274953812360764, -0.36418434977531433, 0.4328109622001648, -0.23216256499290466, 0.14379528164863586, 0.037722356617450714, 0.22597137093544006, 0.0746319591999054, -0.003320488380268216, -0.15939174592494965, -0.4455851912498474, 0.26130279898643494, 0.26990124583244324, -0.19865654408931732, -0.11950186640024185, 0.004335308447480202, 0.10739308595657349, 0.12586982548236847, -0.4479658007621765, 0.1364089995622635, 0.17997057735919952, -0.0451216921210289, -0.09457530826330185, 0.08399620652198792, -0.023716723546385765, -0.07817858457565308, -0.13010543584823608, 0.12380409985780716, -0.026283498853445053, -0.11458490043878555, -0.2040122002363205, -0.15853087604045868 ]
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.04464291036128998, -0.19605229794979095, -0.02139178104698658, 0.3716607987880707, 0.03904010355472565, -0.27633100748062134, -0.02063690684735775, 0.15795141458511353, -0.07178064435720444, -0.06624244898557663, -0.16135291755199432, 0.2627061903476715, 0.0014280215837061405, 0.16808229684829712, 0.4264349639415741, -0.14670217037200928, 0.04844214394688606, -0.06990568339824677, 0.2786862254142761, -0.05261460691690445, -0.10909312218427658, 0.15061001479625702, -0.3253747224807739, 0.05446917563676834, -0.3497876822948456, 0.08372720330953598, -0.06782139837741852, 0.34623992443084717, -0.2758391499519348, -0.49336859583854675, 0.5901548862457275, 0.06104285269975662, 0.33754754066467285, 0.32534825801849365, -0.00011858235666295514, 0.007394216954708099, 0.04914982244372368, -0.29767945408821106, 0.06299978494644165, -0.5153079628944397, -0.2116062045097351, -0.6882324814796448, -0.07075048983097076, -0.1863514631986618, -0.24942409992218018, -0.06914987415075302, 0.23590897023677826, 0.16131561994552612, 0.32868748903274536, 0.4041299521923065, 0.06675538420677185, 0.11867239326238632, -0.011228901334106922, 0.16462337970733643, 0.40690451860427856, 0.39126092195510864, -0.29841142892837524, -0.055472083389759064, 0.5836416482925415, 0.15009354054927826, -0.20072396099567413, 0.226136714220047, 0.06657800078392029, -0.09574048966169357, 0.21683166921138763, 0.31174880266189575, 0.11062179505825043, -0.45838871598243713, -0.2030348777770996, 0.282892107963562, 0.2304353415966034, -0.2553839087486267, -0.20350788533687592, -0.277931809425354, -0.0572836697101593, -0.2900470495223999, -0.028027545660734177, 0.3609626591205597, -0.08088504523038864, -0.009099005721509457, 0.25436440110206604, -0.0029822110664099455, -0.11148100346326828, 0.2031373530626297, -0.010520489886403084, 0.40962186455726624, -0.013463722541928291, -0.10751811414957047, -0.13960669934749603, -0.1162080317735672, 0.7018570303916931, -0.010425682179629803, 0.1576864868402481, 0.11971112340688705, -0.6041293740272522, 0.08037961274385452, -0.1363219916820526, -0.28189265727996826, 0.16630515456199646, -0.04843688756227493, 0.20986604690551758, 0.15891490876674652, 0.14852364361286163, 0.014586854726076126, 0.3213757872581482, 0.2003955990076065, 0.2381373941898346, 0.031010355800390244, -0.13071304559707642, 0.07348096370697021, 0.08580351620912552, -0.09635843336582184, -0.31837502121925354, 0.06530549377202988, 0.2368326336145401, -0.022806750610470772, 0.28890714049339294, -0.1962372362613678, -0.36802423000335693, -0.019991574808955193, -0.12843039631843567, 0.07258022576570511, 0.14147888123989105, 0.06118020415306091, 0.00806072074919939, 0.587437629699707, -0.07428891211748123, 0.17870879173278809, -0.25383397936820984, 0.029140904545783997, -0.14729981124401093, 0.16940957307815552, -0.6243598461151123, -0.10618668049573898, 0.2582584023475647, 0.09196235984563828, 0.19703945517539978, -0.00640303548425436, 0.12182040512561798, -0.3322488069534302, 0.17588157951831818, -0.27914366126060486, 0.26510992646217346, -0.01586705632507801, 0.24573858082294464, -0.12957212328910828, -0.30932387709617615, -0.009519552811980247, -0.1647399216890335, 0.21943722665309906, -0.7123693823814392, -0.02457306906580925, 0.04509620741009712, 0.07545933872461319, -0.2141946405172348, 0.14357395470142365, -0.5043224096298218, 0.03225930780172348, 0.06304366886615753, 0.21816879510879517, 0.10690448433160782, -0.33061397075653076, -0.21428973972797394, -0.072048619389534, 0.08306998014450073, 0.13265639543533325, -0.1291508823633194, 0.09738141298294067, 0.06309907138347626, 0.0002564254973549396, 0.10419698804616928, 0.21627944707870483, -0.010966584086418152, 0.28418153524398804, -0.1886347234249115, 0.5723386406898499, 0.4195818603038788, -0.8037274479866028, -0.3378545045852661, 0.087508924305439, -0.16561439633369446, 0.0018322326941415668, -0.07771505415439606, 0.2999710440635681, 0.21682997047901154, -0.10970930010080338, 0.2860378623008728, 0.47177886962890625, -0.06015554070472717, 0.11296408623456955, -0.1055825874209404, 0.26627710461616516, -0.11809369176626205, 0.321599543094635, 0.04209786280989647, -0.26852932572364807, -0.15946254134178162, 0.07514160126447678, 0.19486138224601746, -0.11582794785499573, 0.08708550035953522, 0.43145379424095154, 0.08927307277917862, -0.0513845719397068, -0.05062364414334297, 0.038325343281030655, -0.7624903917312622, 0.11410113424062729, -0.42895984649658203, 0.37934446334838867, 0.010656947270035744, -0.0671948716044426, -0.17284218966960907, -0.05107612907886505, -0.29626214504241943, -0.1906544268131256, 0.10716108232736588, -0.12099944055080414, -0.1237810030579567, -0.3034520149230957, -0.07628544420003891, 0.3974151611328125, -0.22609815001487732, 0.07376271486282349, -0.5780184864997864, 0.3407830595970154, 0.1180049404501915, -0.06648511439561844, -0.012310804799199104, 0.4472564160823822, 0.19224977493286133, -0.04829668626189232, 0.16845983266830444, 0.22092197835445404, 0.21488966047763824, -0.1571742594242096, -0.06123373657464981, -0.002025621011853218, 0.13349293172359467, -0.5777854323387146, 0.06592776626348495, 0.2230995148420334, -0.0014230826636776328, -0.21430499851703644, -0.12435473501682281, 0.5517563223838806, 0.18477074801921844, 0.20728442072868347, 0.028973383828997612, 0.07075010240077972, 0.2122233659029007, -0.17136184871196747, -0.23443323373794556, -0.10390456765890121, 0.15454953908920288, 0.12331730872392654, 0.030547503381967545, 0.09956570714712143, -0.5023414492607117, 0.020012913271784782, 0.3077194094657898, 0.027430111542344093, 0.1898188441991806, 0.20472700893878937, -0.15310914814472198, -0.07916522026062012, 0.03745758906006813, 0.37011998891830444, 0.3590865731239319, 0.0914272889494896, 0.10988565534353256, 0.1304071843624115, -0.03294118866324425, 0.07248828560113907, -0.03588437661528587, 0.061753999441862106, 0.15101754665374756, 0.21196503937244415, 0.17851583659648895, -0.08419503271579742, -0.0858963280916214, -0.21915066242218018, 0.032177671790122986, 0.1521633267402649, -0.3294999897480011, 0.07806925475597382, 0.03682224079966545, -0.45026499032974243, -0.14737392961978912, 0.044172048568725586, -0.13615761697292328, -0.31933650374412537, -0.03792206197977066, -0.05715640261769295, 0.2387745976448059, 0.08406677842140198, -0.474688321352005, -0.21508623659610748, -0.19860197603702545, -0.34062865376472473, -0.05831475183367729, 0.07429350167512894, -0.13823851943016052, -0.026754071936011314, 0.21197301149368286, 0.5459079742431641, -0.031272001564502716, -0.43531471490859985, 0.3901608884334564, -0.38724154233932495, -0.2023114562034607, 0.3016566336154938, -0.26382219791412354, 0.31215783953666687, 0.2171546369791031, -0.10408525913953781, -0.4046022593975067, 0.19591717422008514, 0.18749172985553741, -0.32148051261901855, -0.31412580609321594, 0.3168617784976959, -0.1772630363702774, -0.09167475253343582, -0.026444120332598686, -0.40634554624557495, -0.5237719416618347, -0.20548726618289948, 0.011993707157671452, 0.22303134202957153, 0.3162437081336975, 0.21513846516609192, -0.25966668128967285, -0.14515061676502228, -0.1321808248758316, -0.19551144540309906, 0.006959072779864073, -0.5726140737533569, 0.4568421542644501, -0.24419423937797546, -0.20515237748622894, -0.08598081767559052, -0.26587846875190735, 0.47131967544555664, 0.3780289590358734, -0.06849364191293716, -0.03754069283604622, 0.14133843779563904, 0.03518203645944595, 0.17770904302597046, -0.06221930682659149, 0.2964116632938385, -0.21413563191890717, 0.045705169439315796, -0.027790209278464317, -0.00812369305640459, 0.07852565497159958, 0.32014498114585876, 0.2304375171661377, -0.02651875652372837, -0.2571680247783661, 0.1103469580411911, 0.06357692927122116, 0.15529000759124756, 0.046334125101566315, 0.4367929697036743, 0.00537855876609683, 0.11456899344921112, 0.08478368818759918, 0.02240877039730549, -0.16402994096279144, 0.060146354138851166, 0.23326942324638367, -0.0009899433935061097, 0.23578789830207825, -0.15477226674556732, -0.0720980316400528, 0.12637129426002502, -0.13299888372421265, -0.21512039005756378, 0.5398622155189514, -0.13975419104099274, 0.41052326560020447, -0.17096172273159027, 0.026817455887794495, -0.061433058232069016, -0.45806941390037537, -0.25712987780570984, 0.08614976704120636, 0.17971575260162354, 0.15540489554405212, -0.6861749291419983, 0.39854297041893005, -0.3888287842273712, -0.020633157342672348, 0.17285065352916718, 0.5378321409225464, 0.212025448679924, 0.0804058387875557, 0.15717247128486633, -0.0373990423977375, 0.31122514605522156, -0.28972920775413513, -0.1462426632642746, 0.10926082730293274, 0.10011457651853561, -0.32502391934394836, -0.0430731363594532, -0.250881165266037, 0.02653048001229763, 0.4807164669036865, 0.4030669629573822, -0.30203500390052795, -0.44885727763175964, -0.014215348288416862, 0.04743518680334091, -0.2095986306667328, -0.19778332114219666, -0.2662702798843384, -0.4505194127559662, -0.09220108389854431, -0.09107836335897446, 0.5540916323661804, -0.01196823175996542, 0.28599005937576294, 0.02891964092850685, -0.2357490062713623, 0.2654159665107727, 0.33019083738327026, -0.03711409121751785, 0.5644022822380066, -0.23958176374435425, 0.005737456493079662, -0.06575525552034378, -0.08433046191930771, 0.29014790058135986, 0.48032572865486145, -0.1859404295682907, -0.15045292675495148, 0.18000465631484985, -0.22384530305862427, 0.42238935828208923, 0.1663808673620224, 0.1885034739971161, 0.018895691260695457, -0.2950085997581482, -0.0011857440695166588, -0.13589289784431458, 0.13620232045650482, 0.3885796070098877, -0.10829764604568481, -0.41880813241004944, -0.3653251826763153, 0.17683634161949158, 0.3088771402835846, 0.10559818893671036, -0.23104365170001984, -0.17216086387634277, -0.2617759704589844, -0.14155860245227814, 0.46636828780174255, 1.0166808366775513, 0.030185656622052193, 0.4335704743862152, 0.17269083857536316, 0.08972707390785217, 0.06072677671909332, -0.44448649883270264, 0.2049940675497055, -0.3482038080692291, -0.3285883367061615, -0.20364521443843842, -0.25741419196128845, -0.062090981751680374, 0.20261533558368683, 0.03191261738538742, 0.6626025438308716, 0.22569090127944946, -0.04478956386446953, 0.02295144461095333, 0.2159697264432907, 0.00936820823699236, -0.3867393732070923, -0.37452432513237, 0.004031589720398188, -0.286334753036499, 0.014985784888267517, -0.15357697010040283, -0.2083835005760193, -0.05914909392595291, 0.19947588443756104, 0.13996656239032745, 0.2819465100765228, 0.09344691038131714, -0.18290632963180542, 0.4239276051521301, -0.5605941414833069, -0.05334736034274101, 0.24287235736846924, 0.07730354368686676, -0.3221908211708069, 0.0031520971097052097, 0.2361229658126831, 0.40504202246665955, 0.10099702328443527, 0.3913242220878601, -0.3321993052959442, 0.2601025402545929, 0.0498279333114624, 0.12219145148992538, -0.24286019802093506, 0.1581602841615677, -0.037262748926877975, -0.41743266582489014, 0.04797247424721718, -0.17502635717391968, -0.27497339248657227, -0.20879900455474854, 0.0269384253770113, -0.14436949789524078, -0.04973822832107544, 0.054940782487392426, 0.2594362497329712, -0.09028707444667816, 0.14810165762901306, 0.11329203099012375, -0.2592058777809143, 0.19909177720546722, 0.0831904262304306, 0.29767465591430664, -0.31253185868263245, 0.03761017322540283, 0.2482127994298935, 0.015135026536881924, -0.09923594444990158, 0.18058155477046967, 0.4821510314941406, -0.6173617243766785, 0.033747993409633636, -0.24345047771930695, -0.013798878528177738, -0.016300322487950325, 0.18511681258678436, 0.0020547218155115843, -0.2624998092651367, 0.16277451813220978, -0.28285712003707886, -0.3409923315048218, 0.37519916892051697, 0.1163778230547905, 0.278291791677475, -0.19798555970191956, 0.009825680404901505, 0.15099377930164337, -0.22004446387290955, -0.2390499711036682, 0.17531579732894897, -0.17947056889533997, 0.1961245983839035, -0.11576474457979202, -0.0962914228439331, 0.08040422201156616, -0.09420140832662582, -0.02496977522969246, 0.2664698362350464, -0.14584460854530334, -0.057853639125823975, 0.01793406903743744, 0.12439152598381042, 0.13275229930877686, -0.11577007174491882, 0.12489141523838043, 0.12000454217195511, -0.05154099687933922, -0.13733763992786407, -0.11356806010007858, 0.1800016611814499, 0.0228338073939085, 0.23035313189029694, -0.2976279854774475, 0.0392741933465004, -0.12316573411226273, 0.23105943202972412, 0.18953892588615417, 0.12020551413297653, 0.065750852227211, 0.2072514146566391, -0.05111943930387497, 0.02486601285636425, -0.5182061195373535, 0.20642657577991486, 0.1967259794473648, 0.36884352564811707, 0.21520021557807922, -0.15535615384578705, 0.10563836991786957, -0.03227797523140907, 0.149868905544281, 0.3083643615245819, -0.26997217535972595, -0.00584446033462882, 0.24190372228622437, 0.14836721122264862, -0.15884387493133545, -0.004972209222614765, 0.36710575222969055, 0.007891041226685047, 0.008068501949310303, 0.47907382249832153, 0.35250240564346313, 0.13681526482105255, -0.146345853805542, 0.06332729011774063, 0.2355751097202301, -0.2535266578197479, 0.06761245429515839, 0.4052128195762634, -0.0051036253571510315, 0.13945724070072174, 0.5995877385139465, 0.03328782692551613, -0.11432912200689316, 0.6000965237617493, 0.3011854887008667, 0.7809863090515137, 0.19956015050411224, 0.1787547469139099, -0.06581120193004608, -0.10446452349424362, -0.41298964619636536, 0.25482887029647827, 0.12739621102809906, 0.17695313692092896, 0.03835296630859375, 0.14328685402870178, 0.1453569084405899, -0.18604719638824463, -0.09647680819034576, 0.11349980533123016, -0.34049269556999207, 0.02293071150779724, -0.3317873179912567, -0.2342435121536255, -0.12177449464797974, -0.11770076304674149, -0.17227418720722198, 0.03673788532614708, 0.06148914247751236, 0.1339387148618698, -0.007461394648998976, -0.06121180206537247, 0.08235441148281097, 0.28523558378219604, 0.04782385006546974, -0.1977073699235916, 0.5288454294204712, 0.033901214599609375, -0.04695772007107735, -0.15871185064315796, 0.2742473781108856, 0.2531481087207794, 0.2315029352903366, -0.051973335444927216, -0.10700378566980362, 0.3387278914451599, -0.11022783815860748, -0.029693208634853363, 0.10047407448291779, 0.2005058377981186, 0.2549166679382324, 0.18043406307697296, 0.06518203765153885, -0.004352225922048092, 0.3010004758834839, 0.06953565776348114, -0.19286678731441498, 0.2435857653617859, 0.28016066551208496, 0.18614542484283447, -0.28904542326927185, -0.12946169078350067, -0.22410227358341217, -0.3388960361480713, -0.16421034932136536, 0.3142120838165283, -0.14284087717533112, 0.24048101902008057, -0.13081522285938263, 0.05084574967622757, 0.04204917326569557, 0.19686725735664368, 0.11872298270463943, 0.11401635408401489, -0.4945983290672302, -0.08852371573448181, -0.7457128763198853, 0.200553297996521, -0.3096918761730194, -0.2826576232910156, 0.23557013273239136, 0.026604706421494484, -0.04746084660291672, 0.30229997634887695, -0.23467393219470978, 0.22896724939346313, 0.06854795664548874, 0.3347982168197632, -0.6064155697822571, 0.06857986748218536, 0.2317824363708496, 0.35899823904037476, 0.05319143086671829, -0.12498112767934799, -0.2764686644077301, 0.21865318715572357, -0.07028910517692566, -0.07275868952274323, -0.06854434311389923, -0.1896737962961197, -0.05582611635327339, 0.2673414349555969, -0.21242325007915497, 0.15677635371685028, -0.07460593432188034, -0.17446333169937134, -0.27474653720855713, -0.05971056595444679, -0.16448555886745453, 0.021056028082966805, 0.10053851455450058, 0.3167756199836731, 0.0033467693720012903, 0.15478698909282684, -0.39150696992874146, -0.2984791100025177, 0.013277018442749977, 0.08274953812360764, -0.36418434977531433, 0.4328109622001648, -0.23216256499290466, 0.14379528164863586, 0.037722356617450714, 0.22597137093544006, 0.0746319591999054, -0.003320488380268216, -0.15939174592494965, -0.4455851912498474, 0.26130279898643494, 0.26990124583244324, -0.19865654408931732, -0.11950186640024185, 0.004335308447480202, 0.10739308595657349, 0.12586982548236847, -0.4479658007621765, 0.1364089995622635, 0.17997057735919952, -0.0451216921210289, -0.09457530826330185, 0.08399620652198792, -0.023716723546385765, -0.07817858457565308, -0.13010543584823608, 0.12380409985780716, -0.026283498853445053, -0.11458490043878555, -0.2040122002363205, -0.15853087604045868 ]
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.04464291036128998, -0.19605229794979095, -0.02139178104698658, 0.3716607987880707, 0.03904010355472565, -0.27633100748062134, -0.02063690684735775, 0.15795141458511353, -0.07178064435720444, -0.06624244898557663, -0.16135291755199432, 0.2627061903476715, 0.0014280215837061405, 0.16808229684829712, 0.4264349639415741, -0.14670217037200928, 0.04844214394688606, -0.06990568339824677, 0.2786862254142761, -0.05261460691690445, -0.10909312218427658, 0.15061001479625702, -0.3253747224807739, 0.05446917563676834, -0.3497876822948456, 0.08372720330953598, -0.06782139837741852, 0.34623992443084717, -0.2758391499519348, -0.49336859583854675, 0.5901548862457275, 0.06104285269975662, 0.33754754066467285, 0.32534825801849365, -0.00011858235666295514, 0.007394216954708099, 0.04914982244372368, -0.29767945408821106, 0.06299978494644165, -0.5153079628944397, -0.2116062045097351, -0.6882324814796448, -0.07075048983097076, -0.1863514631986618, -0.24942409992218018, -0.06914987415075302, 0.23590897023677826, 0.16131561994552612, 0.32868748903274536, 0.4041299521923065, 0.06675538420677185, 0.11867239326238632, -0.011228901334106922, 0.16462337970733643, 0.40690451860427856, 0.39126092195510864, -0.29841142892837524, -0.055472083389759064, 0.5836416482925415, 0.15009354054927826, -0.20072396099567413, 0.226136714220047, 0.06657800078392029, -0.09574048966169357, 0.21683166921138763, 0.31174880266189575, 0.11062179505825043, -0.45838871598243713, -0.2030348777770996, 0.282892107963562, 0.2304353415966034, -0.2553839087486267, -0.20350788533687592, -0.277931809425354, -0.0572836697101593, -0.2900470495223999, -0.028027545660734177, 0.3609626591205597, -0.08088504523038864, -0.009099005721509457, 0.25436440110206604, -0.0029822110664099455, -0.11148100346326828, 0.2031373530626297, -0.010520489886403084, 0.40962186455726624, -0.013463722541928291, -0.10751811414957047, -0.13960669934749603, -0.1162080317735672, 0.7018570303916931, -0.010425682179629803, 0.1576864868402481, 0.11971112340688705, -0.6041293740272522, 0.08037961274385452, -0.1363219916820526, -0.28189265727996826, 0.16630515456199646, -0.04843688756227493, 0.20986604690551758, 0.15891490876674652, 0.14852364361286163, 0.014586854726076126, 0.3213757872581482, 0.2003955990076065, 0.2381373941898346, 0.031010355800390244, -0.13071304559707642, 0.07348096370697021, 0.08580351620912552, -0.09635843336582184, -0.31837502121925354, 0.06530549377202988, 0.2368326336145401, -0.022806750610470772, 0.28890714049339294, -0.1962372362613678, -0.36802423000335693, -0.019991574808955193, -0.12843039631843567, 0.07258022576570511, 0.14147888123989105, 0.06118020415306091, 0.00806072074919939, 0.587437629699707, -0.07428891211748123, 0.17870879173278809, -0.25383397936820984, 0.029140904545783997, -0.14729981124401093, 0.16940957307815552, -0.6243598461151123, -0.10618668049573898, 0.2582584023475647, 0.09196235984563828, 0.19703945517539978, -0.00640303548425436, 0.12182040512561798, -0.3322488069534302, 0.17588157951831818, -0.27914366126060486, 0.26510992646217346, -0.01586705632507801, 0.24573858082294464, -0.12957212328910828, -0.30932387709617615, -0.009519552811980247, -0.1647399216890335, 0.21943722665309906, -0.7123693823814392, -0.02457306906580925, 0.04509620741009712, 0.07545933872461319, -0.2141946405172348, 0.14357395470142365, -0.5043224096298218, 0.03225930780172348, 0.06304366886615753, 0.21816879510879517, 0.10690448433160782, -0.33061397075653076, -0.21428973972797394, -0.072048619389534, 0.08306998014450073, 0.13265639543533325, -0.1291508823633194, 0.09738141298294067, 0.06309907138347626, 0.0002564254973549396, 0.10419698804616928, 0.21627944707870483, -0.010966584086418152, 0.28418153524398804, -0.1886347234249115, 0.5723386406898499, 0.4195818603038788, -0.8037274479866028, -0.3378545045852661, 0.087508924305439, -0.16561439633369446, 0.0018322326941415668, -0.07771505415439606, 0.2999710440635681, 0.21682997047901154, -0.10970930010080338, 0.2860378623008728, 0.47177886962890625, -0.06015554070472717, 0.11296408623456955, -0.1055825874209404, 0.26627710461616516, -0.11809369176626205, 0.321599543094635, 0.04209786280989647, -0.26852932572364807, -0.15946254134178162, 0.07514160126447678, 0.19486138224601746, -0.11582794785499573, 0.08708550035953522, 0.43145379424095154, 0.08927307277917862, -0.0513845719397068, -0.05062364414334297, 0.038325343281030655, -0.7624903917312622, 0.11410113424062729, -0.42895984649658203, 0.37934446334838867, 0.010656947270035744, -0.0671948716044426, -0.17284218966960907, -0.05107612907886505, -0.29626214504241943, -0.1906544268131256, 0.10716108232736588, -0.12099944055080414, -0.1237810030579567, -0.3034520149230957, -0.07628544420003891, 0.3974151611328125, -0.22609815001487732, 0.07376271486282349, -0.5780184864997864, 0.3407830595970154, 0.1180049404501915, -0.06648511439561844, -0.012310804799199104, 0.4472564160823822, 0.19224977493286133, -0.04829668626189232, 0.16845983266830444, 0.22092197835445404, 0.21488966047763824, -0.1571742594242096, -0.06123373657464981, -0.002025621011853218, 0.13349293172359467, -0.5777854323387146, 0.06592776626348495, 0.2230995148420334, -0.0014230826636776328, -0.21430499851703644, -0.12435473501682281, 0.5517563223838806, 0.18477074801921844, 0.20728442072868347, 0.028973383828997612, 0.07075010240077972, 0.2122233659029007, -0.17136184871196747, -0.23443323373794556, -0.10390456765890121, 0.15454953908920288, 0.12331730872392654, 0.030547503381967545, 0.09956570714712143, -0.5023414492607117, 0.020012913271784782, 0.3077194094657898, 0.027430111542344093, 0.1898188441991806, 0.20472700893878937, -0.15310914814472198, -0.07916522026062012, 0.03745758906006813, 0.37011998891830444, 0.3590865731239319, 0.0914272889494896, 0.10988565534353256, 0.1304071843624115, -0.03294118866324425, 0.07248828560113907, -0.03588437661528587, 0.061753999441862106, 0.15101754665374756, 0.21196503937244415, 0.17851583659648895, -0.08419503271579742, -0.0858963280916214, -0.21915066242218018, 0.032177671790122986, 0.1521633267402649, -0.3294999897480011, 0.07806925475597382, 0.03682224079966545, -0.45026499032974243, -0.14737392961978912, 0.044172048568725586, -0.13615761697292328, -0.31933650374412537, -0.03792206197977066, -0.05715640261769295, 0.2387745976448059, 0.08406677842140198, -0.474688321352005, -0.21508623659610748, -0.19860197603702545, -0.34062865376472473, -0.05831475183367729, 0.07429350167512894, -0.13823851943016052, -0.026754071936011314, 0.21197301149368286, 0.5459079742431641, -0.031272001564502716, -0.43531471490859985, 0.3901608884334564, -0.38724154233932495, -0.2023114562034607, 0.3016566336154938, -0.26382219791412354, 0.31215783953666687, 0.2171546369791031, -0.10408525913953781, -0.4046022593975067, 0.19591717422008514, 0.18749172985553741, -0.32148051261901855, -0.31412580609321594, 0.3168617784976959, -0.1772630363702774, -0.09167475253343582, -0.026444120332598686, -0.40634554624557495, -0.5237719416618347, -0.20548726618289948, 0.011993707157671452, 0.22303134202957153, 0.3162437081336975, 0.21513846516609192, -0.25966668128967285, -0.14515061676502228, -0.1321808248758316, -0.19551144540309906, 0.006959072779864073, -0.5726140737533569, 0.4568421542644501, -0.24419423937797546, -0.20515237748622894, -0.08598081767559052, -0.26587846875190735, 0.47131967544555664, 0.3780289590358734, -0.06849364191293716, -0.03754069283604622, 0.14133843779563904, 0.03518203645944595, 0.17770904302597046, -0.06221930682659149, 0.2964116632938385, -0.21413563191890717, 0.045705169439315796, -0.027790209278464317, -0.00812369305640459, 0.07852565497159958, 0.32014498114585876, 0.2304375171661377, -0.02651875652372837, -0.2571680247783661, 0.1103469580411911, 0.06357692927122116, 0.15529000759124756, 0.046334125101566315, 0.4367929697036743, 0.00537855876609683, 0.11456899344921112, 0.08478368818759918, 0.02240877039730549, -0.16402994096279144, 0.060146354138851166, 0.23326942324638367, -0.0009899433935061097, 0.23578789830207825, -0.15477226674556732, -0.0720980316400528, 0.12637129426002502, -0.13299888372421265, -0.21512039005756378, 0.5398622155189514, -0.13975419104099274, 0.41052326560020447, -0.17096172273159027, 0.026817455887794495, -0.061433058232069016, -0.45806941390037537, -0.25712987780570984, 0.08614976704120636, 0.17971575260162354, 0.15540489554405212, -0.6861749291419983, 0.39854297041893005, -0.3888287842273712, -0.020633157342672348, 0.17285065352916718, 0.5378321409225464, 0.212025448679924, 0.0804058387875557, 0.15717247128486633, -0.0373990423977375, 0.31122514605522156, -0.28972920775413513, -0.1462426632642746, 0.10926082730293274, 0.10011457651853561, -0.32502391934394836, -0.0430731363594532, -0.250881165266037, 0.02653048001229763, 0.4807164669036865, 0.4030669629573822, -0.30203500390052795, -0.44885727763175964, -0.014215348288416862, 0.04743518680334091, -0.2095986306667328, -0.19778332114219666, -0.2662702798843384, -0.4505194127559662, -0.09220108389854431, -0.09107836335897446, 0.5540916323661804, -0.01196823175996542, 0.28599005937576294, 0.02891964092850685, -0.2357490062713623, 0.2654159665107727, 0.33019083738327026, -0.03711409121751785, 0.5644022822380066, -0.23958176374435425, 0.005737456493079662, -0.06575525552034378, -0.08433046191930771, 0.29014790058135986, 0.48032572865486145, -0.1859404295682907, -0.15045292675495148, 0.18000465631484985, -0.22384530305862427, 0.42238935828208923, 0.1663808673620224, 0.1885034739971161, 0.018895691260695457, -0.2950085997581482, -0.0011857440695166588, -0.13589289784431458, 0.13620232045650482, 0.3885796070098877, -0.10829764604568481, -0.41880813241004944, -0.3653251826763153, 0.17683634161949158, 0.3088771402835846, 0.10559818893671036, -0.23104365170001984, -0.17216086387634277, -0.2617759704589844, -0.14155860245227814, 0.46636828780174255, 1.0166808366775513, 0.030185656622052193, 0.4335704743862152, 0.17269083857536316, 0.08972707390785217, 0.06072677671909332, -0.44448649883270264, 0.2049940675497055, -0.3482038080692291, -0.3285883367061615, -0.20364521443843842, -0.25741419196128845, -0.062090981751680374, 0.20261533558368683, 0.03191261738538742, 0.6626025438308716, 0.22569090127944946, -0.04478956386446953, 0.02295144461095333, 0.2159697264432907, 0.00936820823699236, -0.3867393732070923, -0.37452432513237, 0.004031589720398188, -0.286334753036499, 0.014985784888267517, -0.15357697010040283, -0.2083835005760193, -0.05914909392595291, 0.19947588443756104, 0.13996656239032745, 0.2819465100765228, 0.09344691038131714, -0.18290632963180542, 0.4239276051521301, -0.5605941414833069, -0.05334736034274101, 0.24287235736846924, 0.07730354368686676, -0.3221908211708069, 0.0031520971097052097, 0.2361229658126831, 0.40504202246665955, 0.10099702328443527, 0.3913242220878601, -0.3321993052959442, 0.2601025402545929, 0.0498279333114624, 0.12219145148992538, -0.24286019802093506, 0.1581602841615677, -0.037262748926877975, -0.41743266582489014, 0.04797247424721718, -0.17502635717391968, -0.27497339248657227, -0.20879900455474854, 0.0269384253770113, -0.14436949789524078, -0.04973822832107544, 0.054940782487392426, 0.2594362497329712, -0.09028707444667816, 0.14810165762901306, 0.11329203099012375, -0.2592058777809143, 0.19909177720546722, 0.0831904262304306, 0.29767465591430664, -0.31253185868263245, 0.03761017322540283, 0.2482127994298935, 0.015135026536881924, -0.09923594444990158, 0.18058155477046967, 0.4821510314941406, -0.6173617243766785, 0.033747993409633636, -0.24345047771930695, -0.013798878528177738, -0.016300322487950325, 0.18511681258678436, 0.0020547218155115843, -0.2624998092651367, 0.16277451813220978, -0.28285712003707886, -0.3409923315048218, 0.37519916892051697, 0.1163778230547905, 0.278291791677475, -0.19798555970191956, 0.009825680404901505, 0.15099377930164337, -0.22004446387290955, -0.2390499711036682, 0.17531579732894897, -0.17947056889533997, 0.1961245983839035, -0.11576474457979202, -0.0962914228439331, 0.08040422201156616, -0.09420140832662582, -0.02496977522969246, 0.2664698362350464, -0.14584460854530334, -0.057853639125823975, 0.01793406903743744, 0.12439152598381042, 0.13275229930877686, -0.11577007174491882, 0.12489141523838043, 0.12000454217195511, -0.05154099687933922, -0.13733763992786407, -0.11356806010007858, 0.1800016611814499, 0.0228338073939085, 0.23035313189029694, -0.2976279854774475, 0.0392741933465004, -0.12316573411226273, 0.23105943202972412, 0.18953892588615417, 0.12020551413297653, 0.065750852227211, 0.2072514146566391, -0.05111943930387497, 0.02486601285636425, -0.5182061195373535, 0.20642657577991486, 0.1967259794473648, 0.36884352564811707, 0.21520021557807922, -0.15535615384578705, 0.10563836991786957, -0.03227797523140907, 0.149868905544281, 0.3083643615245819, -0.26997217535972595, -0.00584446033462882, 0.24190372228622437, 0.14836721122264862, -0.15884387493133545, -0.004972209222614765, 0.36710575222969055, 0.007891041226685047, 0.008068501949310303, 0.47907382249832153, 0.35250240564346313, 0.13681526482105255, -0.146345853805542, 0.06332729011774063, 0.2355751097202301, -0.2535266578197479, 0.06761245429515839, 0.4052128195762634, -0.0051036253571510315, 0.13945724070072174, 0.5995877385139465, 0.03328782692551613, -0.11432912200689316, 0.6000965237617493, 0.3011854887008667, 0.7809863090515137, 0.19956015050411224, 0.1787547469139099, -0.06581120193004608, -0.10446452349424362, -0.41298964619636536, 0.25482887029647827, 0.12739621102809906, 0.17695313692092896, 0.03835296630859375, 0.14328685402870178, 0.1453569084405899, -0.18604719638824463, -0.09647680819034576, 0.11349980533123016, -0.34049269556999207, 0.02293071150779724, -0.3317873179912567, -0.2342435121536255, -0.12177449464797974, -0.11770076304674149, -0.17227418720722198, 0.03673788532614708, 0.06148914247751236, 0.1339387148618698, -0.007461394648998976, -0.06121180206537247, 0.08235441148281097, 0.28523558378219604, 0.04782385006546974, -0.1977073699235916, 0.5288454294204712, 0.033901214599609375, -0.04695772007107735, -0.15871185064315796, 0.2742473781108856, 0.2531481087207794, 0.2315029352903366, -0.051973335444927216, -0.10700378566980362, 0.3387278914451599, -0.11022783815860748, -0.029693208634853363, 0.10047407448291779, 0.2005058377981186, 0.2549166679382324, 0.18043406307697296, 0.06518203765153885, -0.004352225922048092, 0.3010004758834839, 0.06953565776348114, -0.19286678731441498, 0.2435857653617859, 0.28016066551208496, 0.18614542484283447, -0.28904542326927185, -0.12946169078350067, -0.22410227358341217, -0.3388960361480713, -0.16421034932136536, 0.3142120838165283, -0.14284087717533112, 0.24048101902008057, -0.13081522285938263, 0.05084574967622757, 0.04204917326569557, 0.19686725735664368, 0.11872298270463943, 0.11401635408401489, -0.4945983290672302, -0.08852371573448181, -0.7457128763198853, 0.200553297996521, -0.3096918761730194, -0.2826576232910156, 0.23557013273239136, 0.026604706421494484, -0.04746084660291672, 0.30229997634887695, -0.23467393219470978, 0.22896724939346313, 0.06854795664548874, 0.3347982168197632, -0.6064155697822571, 0.06857986748218536, 0.2317824363708496, 0.35899823904037476, 0.05319143086671829, -0.12498112767934799, -0.2764686644077301, 0.21865318715572357, -0.07028910517692566, -0.07275868952274323, -0.06854434311389923, -0.1896737962961197, -0.05582611635327339, 0.2673414349555969, -0.21242325007915497, 0.15677635371685028, -0.07460593432188034, -0.17446333169937134, -0.27474653720855713, -0.05971056595444679, -0.16448555886745453, 0.021056028082966805, 0.10053851455450058, 0.3167756199836731, 0.0033467693720012903, 0.15478698909282684, -0.39150696992874146, -0.2984791100025177, 0.013277018442749977, 0.08274953812360764, -0.36418434977531433, 0.4328109622001648, -0.23216256499290466, 0.14379528164863586, 0.037722356617450714, 0.22597137093544006, 0.0746319591999054, -0.003320488380268216, -0.15939174592494965, -0.4455851912498474, 0.26130279898643494, 0.26990124583244324, -0.19865654408931732, -0.11950186640024185, 0.004335308447480202, 0.10739308595657349, 0.12586982548236847, -0.4479658007621765, 0.1364089995622635, 0.17997057735919952, -0.0451216921210289, -0.09457530826330185, 0.08399620652198792, -0.023716723546385765, -0.07817858457565308, -0.13010543584823608, 0.12380409985780716, -0.026283498853445053, -0.11458490043878555, -0.2040122002363205, -0.15853087604045868 ]
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.04464291036128998, -0.19605229794979095, -0.02139178104698658, 0.3716607987880707, 0.03904010355472565, -0.27633100748062134, -0.02063690684735775, 0.15795141458511353, -0.07178064435720444, -0.06624244898557663, -0.16135291755199432, 0.2627061903476715, 0.0014280215837061405, 0.16808229684829712, 0.4264349639415741, -0.14670217037200928, 0.04844214394688606, -0.06990568339824677, 0.2786862254142761, -0.05261460691690445, -0.10909312218427658, 0.15061001479625702, -0.3253747224807739, 0.05446917563676834, -0.3497876822948456, 0.08372720330953598, -0.06782139837741852, 0.34623992443084717, -0.2758391499519348, -0.49336859583854675, 0.5901548862457275, 0.06104285269975662, 0.33754754066467285, 0.32534825801849365, -0.00011858235666295514, 0.007394216954708099, 0.04914982244372368, -0.29767945408821106, 0.06299978494644165, -0.5153079628944397, -0.2116062045097351, -0.6882324814796448, -0.07075048983097076, -0.1863514631986618, -0.24942409992218018, -0.06914987415075302, 0.23590897023677826, 0.16131561994552612, 0.32868748903274536, 0.4041299521923065, 0.06675538420677185, 0.11867239326238632, -0.011228901334106922, 0.16462337970733643, 0.40690451860427856, 0.39126092195510864, -0.29841142892837524, -0.055472083389759064, 0.5836416482925415, 0.15009354054927826, -0.20072396099567413, 0.226136714220047, 0.06657800078392029, -0.09574048966169357, 0.21683166921138763, 0.31174880266189575, 0.11062179505825043, -0.45838871598243713, -0.2030348777770996, 0.282892107963562, 0.2304353415966034, -0.2553839087486267, -0.20350788533687592, -0.277931809425354, -0.0572836697101593, -0.2900470495223999, -0.028027545660734177, 0.3609626591205597, -0.08088504523038864, -0.009099005721509457, 0.25436440110206604, -0.0029822110664099455, -0.11148100346326828, 0.2031373530626297, -0.010520489886403084, 0.40962186455726624, -0.013463722541928291, -0.10751811414957047, -0.13960669934749603, -0.1162080317735672, 0.7018570303916931, -0.010425682179629803, 0.1576864868402481, 0.11971112340688705, -0.6041293740272522, 0.08037961274385452, -0.1363219916820526, -0.28189265727996826, 0.16630515456199646, -0.04843688756227493, 0.20986604690551758, 0.15891490876674652, 0.14852364361286163, 0.014586854726076126, 0.3213757872581482, 0.2003955990076065, 0.2381373941898346, 0.031010355800390244, -0.13071304559707642, 0.07348096370697021, 0.08580351620912552, -0.09635843336582184, -0.31837502121925354, 0.06530549377202988, 0.2368326336145401, -0.022806750610470772, 0.28890714049339294, -0.1962372362613678, -0.36802423000335693, -0.019991574808955193, -0.12843039631843567, 0.07258022576570511, 0.14147888123989105, 0.06118020415306091, 0.00806072074919939, 0.587437629699707, -0.07428891211748123, 0.17870879173278809, -0.25383397936820984, 0.029140904545783997, -0.14729981124401093, 0.16940957307815552, -0.6243598461151123, -0.10618668049573898, 0.2582584023475647, 0.09196235984563828, 0.19703945517539978, -0.00640303548425436, 0.12182040512561798, -0.3322488069534302, 0.17588157951831818, -0.27914366126060486, 0.26510992646217346, -0.01586705632507801, 0.24573858082294464, -0.12957212328910828, -0.30932387709617615, -0.009519552811980247, -0.1647399216890335, 0.21943722665309906, -0.7123693823814392, -0.02457306906580925, 0.04509620741009712, 0.07545933872461319, -0.2141946405172348, 0.14357395470142365, -0.5043224096298218, 0.03225930780172348, 0.06304366886615753, 0.21816879510879517, 0.10690448433160782, -0.33061397075653076, -0.21428973972797394, -0.072048619389534, 0.08306998014450073, 0.13265639543533325, -0.1291508823633194, 0.09738141298294067, 0.06309907138347626, 0.0002564254973549396, 0.10419698804616928, 0.21627944707870483, -0.010966584086418152, 0.28418153524398804, -0.1886347234249115, 0.5723386406898499, 0.4195818603038788, -0.8037274479866028, -0.3378545045852661, 0.087508924305439, -0.16561439633369446, 0.0018322326941415668, -0.07771505415439606, 0.2999710440635681, 0.21682997047901154, -0.10970930010080338, 0.2860378623008728, 0.47177886962890625, -0.06015554070472717, 0.11296408623456955, -0.1055825874209404, 0.26627710461616516, -0.11809369176626205, 0.321599543094635, 0.04209786280989647, -0.26852932572364807, -0.15946254134178162, 0.07514160126447678, 0.19486138224601746, -0.11582794785499573, 0.08708550035953522, 0.43145379424095154, 0.08927307277917862, -0.0513845719397068, -0.05062364414334297, 0.038325343281030655, -0.7624903917312622, 0.11410113424062729, -0.42895984649658203, 0.37934446334838867, 0.010656947270035744, -0.0671948716044426, -0.17284218966960907, -0.05107612907886505, -0.29626214504241943, -0.1906544268131256, 0.10716108232736588, -0.12099944055080414, -0.1237810030579567, -0.3034520149230957, -0.07628544420003891, 0.3974151611328125, -0.22609815001487732, 0.07376271486282349, -0.5780184864997864, 0.3407830595970154, 0.1180049404501915, -0.06648511439561844, -0.012310804799199104, 0.4472564160823822, 0.19224977493286133, -0.04829668626189232, 0.16845983266830444, 0.22092197835445404, 0.21488966047763824, -0.1571742594242096, -0.06123373657464981, -0.002025621011853218, 0.13349293172359467, -0.5777854323387146, 0.06592776626348495, 0.2230995148420334, -0.0014230826636776328, -0.21430499851703644, -0.12435473501682281, 0.5517563223838806, 0.18477074801921844, 0.20728442072868347, 0.028973383828997612, 0.07075010240077972, 0.2122233659029007, -0.17136184871196747, -0.23443323373794556, -0.10390456765890121, 0.15454953908920288, 0.12331730872392654, 0.030547503381967545, 0.09956570714712143, -0.5023414492607117, 0.020012913271784782, 0.3077194094657898, 0.027430111542344093, 0.1898188441991806, 0.20472700893878937, -0.15310914814472198, -0.07916522026062012, 0.03745758906006813, 0.37011998891830444, 0.3590865731239319, 0.0914272889494896, 0.10988565534353256, 0.1304071843624115, -0.03294118866324425, 0.07248828560113907, -0.03588437661528587, 0.061753999441862106, 0.15101754665374756, 0.21196503937244415, 0.17851583659648895, -0.08419503271579742, -0.0858963280916214, -0.21915066242218018, 0.032177671790122986, 0.1521633267402649, -0.3294999897480011, 0.07806925475597382, 0.03682224079966545, -0.45026499032974243, -0.14737392961978912, 0.044172048568725586, -0.13615761697292328, -0.31933650374412537, -0.03792206197977066, -0.05715640261769295, 0.2387745976448059, 0.08406677842140198, -0.474688321352005, -0.21508623659610748, -0.19860197603702545, -0.34062865376472473, -0.05831475183367729, 0.07429350167512894, -0.13823851943016052, -0.026754071936011314, 0.21197301149368286, 0.5459079742431641, -0.031272001564502716, -0.43531471490859985, 0.3901608884334564, -0.38724154233932495, -0.2023114562034607, 0.3016566336154938, -0.26382219791412354, 0.31215783953666687, 0.2171546369791031, -0.10408525913953781, -0.4046022593975067, 0.19591717422008514, 0.18749172985553741, -0.32148051261901855, -0.31412580609321594, 0.3168617784976959, -0.1772630363702774, -0.09167475253343582, -0.026444120332598686, -0.40634554624557495, -0.5237719416618347, -0.20548726618289948, 0.011993707157671452, 0.22303134202957153, 0.3162437081336975, 0.21513846516609192, -0.25966668128967285, -0.14515061676502228, -0.1321808248758316, -0.19551144540309906, 0.006959072779864073, -0.5726140737533569, 0.4568421542644501, -0.24419423937797546, -0.20515237748622894, -0.08598081767559052, -0.26587846875190735, 0.47131967544555664, 0.3780289590358734, -0.06849364191293716, -0.03754069283604622, 0.14133843779563904, 0.03518203645944595, 0.17770904302597046, -0.06221930682659149, 0.2964116632938385, -0.21413563191890717, 0.045705169439315796, -0.027790209278464317, -0.00812369305640459, 0.07852565497159958, 0.32014498114585876, 0.2304375171661377, -0.02651875652372837, -0.2571680247783661, 0.1103469580411911, 0.06357692927122116, 0.15529000759124756, 0.046334125101566315, 0.4367929697036743, 0.00537855876609683, 0.11456899344921112, 0.08478368818759918, 0.02240877039730549, -0.16402994096279144, 0.060146354138851166, 0.23326942324638367, -0.0009899433935061097, 0.23578789830207825, -0.15477226674556732, -0.0720980316400528, 0.12637129426002502, -0.13299888372421265, -0.21512039005756378, 0.5398622155189514, -0.13975419104099274, 0.41052326560020447, -0.17096172273159027, 0.026817455887794495, -0.061433058232069016, -0.45806941390037537, -0.25712987780570984, 0.08614976704120636, 0.17971575260162354, 0.15540489554405212, -0.6861749291419983, 0.39854297041893005, -0.3888287842273712, -0.020633157342672348, 0.17285065352916718, 0.5378321409225464, 0.212025448679924, 0.0804058387875557, 0.15717247128486633, -0.0373990423977375, 0.31122514605522156, -0.28972920775413513, -0.1462426632642746, 0.10926082730293274, 0.10011457651853561, -0.32502391934394836, -0.0430731363594532, -0.250881165266037, 0.02653048001229763, 0.4807164669036865, 0.4030669629573822, -0.30203500390052795, -0.44885727763175964, -0.014215348288416862, 0.04743518680334091, -0.2095986306667328, -0.19778332114219666, -0.2662702798843384, -0.4505194127559662, -0.09220108389854431, -0.09107836335897446, 0.5540916323661804, -0.01196823175996542, 0.28599005937576294, 0.02891964092850685, -0.2357490062713623, 0.2654159665107727, 0.33019083738327026, -0.03711409121751785, 0.5644022822380066, -0.23958176374435425, 0.005737456493079662, -0.06575525552034378, -0.08433046191930771, 0.29014790058135986, 0.48032572865486145, -0.1859404295682907, -0.15045292675495148, 0.18000465631484985, -0.22384530305862427, 0.42238935828208923, 0.1663808673620224, 0.1885034739971161, 0.018895691260695457, -0.2950085997581482, -0.0011857440695166588, -0.13589289784431458, 0.13620232045650482, 0.3885796070098877, -0.10829764604568481, -0.41880813241004944, -0.3653251826763153, 0.17683634161949158, 0.3088771402835846, 0.10559818893671036, -0.23104365170001984, -0.17216086387634277, -0.2617759704589844, -0.14155860245227814, 0.46636828780174255, 1.0166808366775513, 0.030185656622052193, 0.4335704743862152, 0.17269083857536316, 0.08972707390785217, 0.06072677671909332, -0.44448649883270264, 0.2049940675497055, -0.3482038080692291, -0.3285883367061615, -0.20364521443843842, -0.25741419196128845, -0.062090981751680374, 0.20261533558368683, 0.03191261738538742, 0.6626025438308716, 0.22569090127944946, -0.04478956386446953, 0.02295144461095333, 0.2159697264432907, 0.00936820823699236, -0.3867393732070923, -0.37452432513237, 0.004031589720398188, -0.286334753036499, 0.014985784888267517, -0.15357697010040283, -0.2083835005760193, -0.05914909392595291, 0.19947588443756104, 0.13996656239032745, 0.2819465100765228, 0.09344691038131714, -0.18290632963180542, 0.4239276051521301, -0.5605941414833069, -0.05334736034274101, 0.24287235736846924, 0.07730354368686676, -0.3221908211708069, 0.0031520971097052097, 0.2361229658126831, 0.40504202246665955, 0.10099702328443527, 0.3913242220878601, -0.3321993052959442, 0.2601025402545929, 0.0498279333114624, 0.12219145148992538, -0.24286019802093506, 0.1581602841615677, -0.037262748926877975, -0.41743266582489014, 0.04797247424721718, -0.17502635717391968, -0.27497339248657227, -0.20879900455474854, 0.0269384253770113, -0.14436949789524078, -0.04973822832107544, 0.054940782487392426, 0.2594362497329712, -0.09028707444667816, 0.14810165762901306, 0.11329203099012375, -0.2592058777809143, 0.19909177720546722, 0.0831904262304306, 0.29767465591430664, -0.31253185868263245, 0.03761017322540283, 0.2482127994298935, 0.015135026536881924, -0.09923594444990158, 0.18058155477046967, 0.4821510314941406, -0.6173617243766785, 0.033747993409633636, -0.24345047771930695, -0.013798878528177738, -0.016300322487950325, 0.18511681258678436, 0.0020547218155115843, -0.2624998092651367, 0.16277451813220978, -0.28285712003707886, -0.3409923315048218, 0.37519916892051697, 0.1163778230547905, 0.278291791677475, -0.19798555970191956, 0.009825680404901505, 0.15099377930164337, -0.22004446387290955, -0.2390499711036682, 0.17531579732894897, -0.17947056889533997, 0.1961245983839035, -0.11576474457979202, -0.0962914228439331, 0.08040422201156616, -0.09420140832662582, -0.02496977522969246, 0.2664698362350464, -0.14584460854530334, -0.057853639125823975, 0.01793406903743744, 0.12439152598381042, 0.13275229930877686, -0.11577007174491882, 0.12489141523838043, 0.12000454217195511, -0.05154099687933922, -0.13733763992786407, -0.11356806010007858, 0.1800016611814499, 0.0228338073939085, 0.23035313189029694, -0.2976279854774475, 0.0392741933465004, -0.12316573411226273, 0.23105943202972412, 0.18953892588615417, 0.12020551413297653, 0.065750852227211, 0.2072514146566391, -0.05111943930387497, 0.02486601285636425, -0.5182061195373535, 0.20642657577991486, 0.1967259794473648, 0.36884352564811707, 0.21520021557807922, -0.15535615384578705, 0.10563836991786957, -0.03227797523140907, 0.149868905544281, 0.3083643615245819, -0.26997217535972595, -0.00584446033462882, 0.24190372228622437, 0.14836721122264862, -0.15884387493133545, -0.004972209222614765, 0.36710575222969055, 0.007891041226685047, 0.008068501949310303, 0.47907382249832153, 0.35250240564346313, 0.13681526482105255, -0.146345853805542, 0.06332729011774063, 0.2355751097202301, -0.2535266578197479, 0.06761245429515839, 0.4052128195762634, -0.0051036253571510315, 0.13945724070072174, 0.5995877385139465, 0.03328782692551613, -0.11432912200689316, 0.6000965237617493, 0.3011854887008667, 0.7809863090515137, 0.19956015050411224, 0.1787547469139099, -0.06581120193004608, -0.10446452349424362, -0.41298964619636536, 0.25482887029647827, 0.12739621102809906, 0.17695313692092896, 0.03835296630859375, 0.14328685402870178, 0.1453569084405899, -0.18604719638824463, -0.09647680819034576, 0.11349980533123016, -0.34049269556999207, 0.02293071150779724, -0.3317873179912567, -0.2342435121536255, -0.12177449464797974, -0.11770076304674149, -0.17227418720722198, 0.03673788532614708, 0.06148914247751236, 0.1339387148618698, -0.007461394648998976, -0.06121180206537247, 0.08235441148281097, 0.28523558378219604, 0.04782385006546974, -0.1977073699235916, 0.5288454294204712, 0.033901214599609375, -0.04695772007107735, -0.15871185064315796, 0.2742473781108856, 0.2531481087207794, 0.2315029352903366, -0.051973335444927216, -0.10700378566980362, 0.3387278914451599, -0.11022783815860748, -0.029693208634853363, 0.10047407448291779, 0.2005058377981186, 0.2549166679382324, 0.18043406307697296, 0.06518203765153885, -0.004352225922048092, 0.3010004758834839, 0.06953565776348114, -0.19286678731441498, 0.2435857653617859, 0.28016066551208496, 0.18614542484283447, -0.28904542326927185, -0.12946169078350067, -0.22410227358341217, -0.3388960361480713, -0.16421034932136536, 0.3142120838165283, -0.14284087717533112, 0.24048101902008057, -0.13081522285938263, 0.05084574967622757, 0.04204917326569557, 0.19686725735664368, 0.11872298270463943, 0.11401635408401489, -0.4945983290672302, -0.08852371573448181, -0.7457128763198853, 0.200553297996521, -0.3096918761730194, -0.2826576232910156, 0.23557013273239136, 0.026604706421494484, -0.04746084660291672, 0.30229997634887695, -0.23467393219470978, 0.22896724939346313, 0.06854795664548874, 0.3347982168197632, -0.6064155697822571, 0.06857986748218536, 0.2317824363708496, 0.35899823904037476, 0.05319143086671829, -0.12498112767934799, -0.2764686644077301, 0.21865318715572357, -0.07028910517692566, -0.07275868952274323, -0.06854434311389923, -0.1896737962961197, -0.05582611635327339, 0.2673414349555969, -0.21242325007915497, 0.15677635371685028, -0.07460593432188034, -0.17446333169937134, -0.27474653720855713, -0.05971056595444679, -0.16448555886745453, 0.021056028082966805, 0.10053851455450058, 0.3167756199836731, 0.0033467693720012903, 0.15478698909282684, -0.39150696992874146, -0.2984791100025177, 0.013277018442749977, 0.08274953812360764, -0.36418434977531433, 0.4328109622001648, -0.23216256499290466, 0.14379528164863586, 0.037722356617450714, 0.22597137093544006, 0.0746319591999054, -0.003320488380268216, -0.15939174592494965, -0.4455851912498474, 0.26130279898643494, 0.26990124583244324, -0.19865654408931732, -0.11950186640024185, 0.004335308447480202, 0.10739308595657349, 0.12586982548236847, -0.4479658007621765, 0.1364089995622635, 0.17997057735919952, -0.0451216921210289, -0.09457530826330185, 0.08399620652198792, -0.023716723546385765, -0.07817858457565308, -0.13010543584823608, 0.12380409985780716, -0.026283498853445053, -0.11458490043878555, -0.2040122002363205, -0.15853087604045868 ]
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.09869405627250671, 0.05165674537420273, -0.13092012703418732, -0.05589672550559044, 0.0639406144618988, -0.09535485506057739, 0.3679337203502655, 0.22081059217453003, 0.20629212260246277, 0.22497780621051788, -0.07506416738033295, 0.3655760884284973, -0.2819617688655853, 0.1416771411895752, 0.14772403240203857, 0.11733237653970718, -0.22435130178928375, 0.20253263413906097, 0.2756347358226776, -0.1639438420534134, -0.275132954120636, 0.32780683040618896, -0.03187815472483635, -0.008128601126372814, 0.0502307191491127, 0.05055926740169525, -0.1391221135854721, 0.19806821644306183, -0.11889604479074478, -0.299953818321228, -0.41973787546157837, 0.1671043187379837, 0.1602398306131363, -0.09745673835277557, -0.00010426566586829722, -0.14807850122451782, 0.222569078207016, -0.20845367014408112, -0.4087233245372772, -0.29366689920425415, 0.2981952428817749, -0.17242789268493652, 0.10730816423892975, -0.26513805985450745, -0.004576095379889011, -0.09832505136728287, 0.2041182965040207, 0.13540346920490265, 0.26551491022109985, 0.30323413014411926, 0.27170050144195557, 0.07904911786317825, 0.11347085982561111, 0.02989301271736622, 0.3312547504901886, -0.03548933193087578, -0.06828087568283081, 0.35271400213241577, 0.33446744084358215, -0.3054540157318115, -0.16186730563640594, 0.28838637471199036, -0.005472980439662933, -0.010991371236741543, 0.21951331198215485, 0.11134090274572372, 0.5780611038208008, -0.3311682939529419, 0.10661517083644867, 0.032749149948358536, 0.023619351908564568, -0.04132358357310295, -0.08505046367645264, -0.2842150032520294, 0.08381401747465134, -0.2874573767185211, 0.2766532897949219, 0.14956501126289368, -0.23348405957221985, -0.054357677698135376, -0.12947912514209747, -0.02550417371094227, -0.015468771569430828, 0.05405987799167633, -0.08892746269702911, 0.41385388374328613, -0.03893965855240822, -0.2830847501754761, 0.38612592220306396, -0.03815213963389397, -0.09715763479471207, -0.15326163172721863, -0.0394698791205883, 0.07660101354122162, -0.0374777652323246, -0.288777619600296, 0.15674813091754913, 0.04663980007171631, 0.09379736334085464, 0.2489914447069168, 0.046064622700214386, 0.032891180366277695, 0.2356237769126892, 0.07529257237911224, 0.16302838921546936, 0.4459599256515503, -0.00031434494303539395, 0.04006708040833473, 0.353896826505661, 0.4176516532897949, 0.1608998328447342, 0.15011706948280334, -0.1202336996793747, -0.18616048991680145, -0.1416517198085785, 0.1408618539571762, -0.1575789749622345, 0.09060120582580566, -0.43104422092437744, -0.13309717178344727, -0.3732345402240753, 0.00733855040743947, -0.034362100064754486, 0.43782851099967957, -0.04874911904335022, -0.13966095447540283, 0.24411337077617645, 0.23740151524543762, -0.04237247630953789, 0.09001776576042175, -0.1254783421754837, 0.2556157410144806, -0.21680904924869537, -0.05202299356460571, 0.33103907108306885, 0.077080138027668, 0.4212234318256378, -0.2571607530117035, -0.1213398203253746, -0.22413253784179688, 0.13889378309249878, 0.0859965980052948, -0.013924087397754192, -0.06411139667034149, 0.4167027771472931, 0.015522954985499382, -0.15332457423210144, -0.41582179069519043, -0.07122542709112167, 0.03881171718239784, 0.03470762073993683, -0.03710704669356346, -0.17407619953155518, 0.33552688360214233, -0.08622919023036957, -0.09424591064453125, -0.003776700934395194, 0.22714748978614807, -0.1502159982919693, 0.04360136762261391, 0.08587686717510223, 0.31828585267066956, -0.08277714997529984, -0.0009885295294225216, 0.16852320730686188, 0.29862308502197266, -0.09494572132825851, -0.2877131402492523, -0.18399398028850555, 0.16736789047718048, -0.11325504630804062, -0.06327034533023834, -0.0449301041662693, 0.2455674558877945, -0.3794003427028656, 0.24192063510417938, 0.3043464422225952, -0.289639413356781, -0.20502816140651703, 0.21484452486038208, -0.37521931529045105, -0.17490330338478088, 0.030269838869571686, 0.014299662783741951, 0.41080430150032043, -0.004255146719515324, -0.14322945475578308, 0.48279091715812683, 0.07717032730579376, 0.2428656369447708, -0.30401358008384705, -0.46601736545562744, -0.18291382491588593, 0.20750299096107483, 0.15166468918323517, -0.11844596266746521, 0.10884041339159012, -0.08774490654468536, 0.30027103424072266, -0.1562741994857788, 0.18655957281589508, 0.10289214551448822, 0.08243082463741302, 0.096202053129673, 0.09026511758565903, 0.12775707244873047, -0.4553067088127136, -0.024584203958511353, -0.14910966157913208, 0.24003973603248596, -0.3181629776954651, -0.1654348075389862, -0.2285124957561493, -0.18236136436462402, -0.20870405435562134, -0.3032354414463043, 0.2976226508617401, 0.2181786745786667, 0.05891517177224159, 0.2489137202501297, 0.07916655391454697, -0.07833709567785263, 0.16629290580749512, 0.1352359503507614, 0.04830586537718773, 0.3308411240577698, -0.3822060227394104, -0.1154455617070198, 0.1777767688035965, 0.05338531360030174, 0.16277006268501282, -0.009797019883990288, 0.017779458314180374, 0.20223084092140198, -0.2338353842496872, 0.45602548122406006, 0.03429936617612839, -0.018487920984625816, 0.2643815279006958, -0.0018941278103739023, 0.3286043107509613, 0.37859779596328735, 0.12536859512329102, -0.04232225567102432, -0.13353924453258514, 0.3993211090564728, 0.29787346720695496, 0.13153503835201263, 0.19843925535678864, 0.14926329255104065, -0.034582484513521194, -0.30922091007232666, -0.03661542758345604, -0.17500363290309906, 0.10603220760822296, 0.4917030334472656, 0.38121673464775085, -0.11719014495611191, -0.17985574901103973, 0.22685959935188293, 0.3522840738296509, -0.043104179203510284, 0.2884165644645691, 0.07977944612503052, -0.3493874967098236, -0.15528835356235504, -0.11724917590618134, 0.3525729477405548, 0.1629648357629776, 0.25432088971138, 0.17127181589603424, 0.0493352934718132, -0.008008383214473724, -0.30644693970680237, 0.399212121963501, 0.06556162238121033, 0.10622549057006836, 0.35542774200439453, 0.11225473135709763, -0.12416243553161621, -0.36689674854278564, -0.007818451151251793, -0.0030905897729098797, -0.05193401500582695, -0.2809717059135437, -0.03597712516784668, -0.20211142301559448, -0.16735441982746124, -0.040416937321424484, 0.11890814453363419, -0.04538644105195999, -0.19948741793632507, 0.24157185852527618, 0.28511038422584534, -0.27773380279541016, 0.12718868255615234, 0.1675785481929779, 0.3435675799846649, -0.07041918486356735, -0.05174064263701439, -0.10932112485170364, 0.01562899351119995, -0.331397145986557, 0.19074752926826477, 0.27920660376548767, 0.08477697521448135, 0.16686297953128815, 0.035354603081941605, 0.08241041749715805, -0.4212256073951721, -0.19667796790599823, 0.24050793051719666, -0.1467302143573761, 0.03966081514954567, 0.1082567349076271, -0.09118087589740753, -0.047825999557971954, -0.34721165895462036, 0.05037515610456467, -0.20661044120788574, -0.20288389921188354, -0.3251749575138092, 0.15945807099342346, 0.06294932216405869, -0.48818421363830566, -0.39876845479011536, -0.23691461980342865, -0.38008394837379456, 0.1677405834197998, 0.1598067581653595, 0.18229903280735016, 0.12465538829565048, -0.05482617765665054, 0.18005691468715668, 0.22314079105854034, -0.160607248544693, -0.14767204225063324, 0.27755048871040344, 0.4198611378669739, -0.4095941483974457, -0.31906405091285706, 0.04391159117221832, -0.32320845127105713, 0.01338358037173748, -0.2990259826183319, -0.25010842084884644, -0.43836236000061035, 0.15373146533966064, -0.17779944837093353, -0.08453366905450821, -0.0026808418333530426, 0.29861781001091003, 0.18735890090465546, -0.20031067728996277, 0.02658899687230587, -0.11107026040554047, 0.20705467462539673, 0.08829926699399948, 0.3847722113132477, -0.16153766214847565, 0.40672317147254944, 0.11748671531677246, 0.2566288411617279, -0.26918795704841614, 0.03353682532906532, 0.36191868782043457, -0.05067269876599312, 0.17019513249397278, 0.15920227766036987, -0.0863519087433815, 0.1363566666841507, 0.04094671458005905, -0.0944347158074379, 0.5336618423461914, -0.08546970784664154, -0.48649802803993225, -0.182667076587677, 0.05321899428963661, -0.27368661761283875, -0.2679211497306824, -0.10895581543445587, 0.2660420835018158, -0.1956837922334671, 0.01159004308283329, 0.2149551808834076, 0.0052228160202503204, -0.06083989143371582, 0.20591747760772705, 0.21969009935855865, -0.07721690088510513, -0.12061521410942078, 0.11858420819044113, 0.10426795482635498, -0.39514780044555664, 0.11174900829792023, 0.10438209772109985, -0.4041219651699066, 0.10743916779756546, -0.2256135642528534, 0.2036411613225937, -0.31954455375671387, 0.3587409555912018, -0.12096113711595535, 0.26626503467559814, -0.01437019370496273, 0.2164384126663208, 0.10930202156305313, -0.09933821856975555, -0.29880642890930176, -0.32118189334869385, 0.45074784755706787, -0.0478757843375206, -0.26560452580451965, -0.14416413009166718, 0.3384917676448822, -0.25894641876220703, 0.032387327402830124, -0.09629575163125992, -0.019114499911665916, -0.5297091603279114, -0.5422526597976685, 0.07723985612392426, 0.12609419226646423, 0.09797482937574387, -0.18700599670410156, -0.16395524144172668, 0.27043765783309937, -0.20997273921966553, -0.11222746968269348, 0.059668634086847305, 0.18278838694095612, 0.1411258727312088, -0.04690498486161232, 0.2014991044998169, 0.4859793782234192, -0.08635241538286209, 0.05024268478155136, 0.08871322125196457, 0.13509847223758698, 0.3584619164466858, -0.29154929518699646, -0.01205169502645731, 0.4303934574127197, 0.04238324612379074, -0.1449912190437317, -0.3378116190433502, 0.1311999410390854, -0.005020485259592533, 0.026209205389022827, 0.3523302972316742, -0.007696468383073807, 0.31897440552711487, -0.1285666525363922, 0.371814489364624, -0.11493881046772003, -0.1495707482099533, -0.11332232505083084, 0.1379421502351761, -0.48915597796440125, 0.20236290991306305, 0.2494792342185974, 1.0095970630645752, 0.1828901320695877, 0.1841593086719513, 0.37701666355133057, -0.1828773021697998, 0.22442592680454254, -0.20480531454086304, 0.2420453429222107, -0.2759123742580414, 0.25940200686454773, 0.027056043967604637, 0.12355480343103409, -0.2554803490638733, 0.2857082784175873, -0.34852030873298645, 0.22266463935375214, 0.1918337494134903, -0.055093102157115936, 0.039740294218063354, 0.5254424810409546, -0.414765328168869, -0.355072557926178, -0.0840061753988266, 0.22533908486366272, 0.2074783444404602, 0.33369359374046326, -0.022404640913009644, -0.32624945044517517, 0.023025233298540115, -0.3689984381198883, -0.12004327028989792, 0.22281000018119812, -0.656203031539917, 0.08114136755466461, -0.42058026790618896, -0.20546580851078033, 0.0714983269572258, 0.12163946777582169, 0.18259339034557343, 0.10026123374700546, -0.0640583410859108, 0.28069940209388733, 0.045134369283914566, -0.04643822833895683, -0.005044461227953434, -0.11703699082136154, 0.22879554331302643, -0.2543817162513733, -0.20081502199172974, -0.05295581743121147, 0.1507781744003296, -0.2844580113887787, 0.049413617700338364, -0.025313183665275574, -0.28933635354042053, 0.163265660405159, 0.0008362915250472724, 0.08880218118429184, -0.4070393145084381, -0.17011772096157074, 0.21576613187789917, -0.22286491096019745, -0.0063021741807460785, -0.04202565923333168, 0.07535621523857117, -0.165757954120636, -0.17175449430942535, 0.41143137216567993, -0.19205403327941895, -0.32575252652168274, 0.5842941403388977, 0.06437359750270844, -0.15042608976364136, -0.3654356002807617, -0.21400444209575653, 0.015012544579803944, -0.15085159242153168, 0.11020117998123169, -0.11286692321300507, -0.2562161982059479, -0.014631342142820358, 0.5000472068786621, -0.0012306594289839268, 0.2679023742675781, 0.02651909925043583, -0.08714248985052109, -0.09918127954006195, 0.2623234689235687, -0.1346048265695572, 0.298524409532547, -0.07511859387159348, 0.08205384016036987, 0.18698793649673462, -0.14571458101272583, -0.4634033739566803, 0.07907643914222717, -0.17125384509563446, -0.14057160913944244, 0.12507422268390656, -0.29873234033584595, 0.30952122807502747, 0.17042575776576996, 0.273366779088974, 0.22055695950984955, -0.07725677639245987, -0.2663615942001343, -0.030433332547545433, 0.07006426155567169, 0.047300659120082855, -0.10063312202692032, 0.01236653607338667, -0.11151015758514404, -0.21850945055484772, 0.12631730735301971, 0.20107939839363098, -0.1831626296043396, 0.08333712071180344, -0.10322224348783493, -0.248185932636261, 0.09767060726881027, 0.2554212212562561, -0.18508341908454895, -0.09760049730539322, 0.4207085371017456, 0.016687097027897835, 0.10759516060352325, 0.007806052919477224, 0.003392838640138507, 0.043122805655002594, 0.14116543531417847, 0.056450825184583664, 0.33877140283584595, 0.29624342918395996, 0.06722458451986313, -0.5515543222427368, 0.06194429099559784, 0.26379650831222534, 0.07853773981332779, -0.2515687048435211, -0.11560855805873871, 0.22283139824867249, 0.35561010241508484, -0.25941744446754456, 0.17321796715259552, -0.16231077909469604, -0.4482297897338867, 0.36174845695495605, 0.2996286451816559, 0.1987314075231552, 0.06725245714187622, 0.04757761210203171, 0.15383411943912506, 0.4046260416507721, -0.07478853315114975, -0.09283934533596039, -0.05252738669514656, -0.12249451875686646, 0.13392752408981323, 0.18508172035217285, 0.06740293651819229, 0.3257804214954376, -0.16162997484207153, -0.1871492564678192, 0.008799751289188862, 0.023579295724630356, 0.26404622197151184, 0.21662692725658417, 0.05193435028195381, 0.03836807236075401, 0.08146418631076813, -0.24517056345939636, 0.0961867943406105, -0.06733692437410355, 0.22006699442863464, -0.3235001266002655, 0.024017445743083954, -0.34097835421562195, 0.4161132276058197, -0.061810705810785294, -0.008547214791178703, -0.2516663372516632, -0.32604607939720154, -0.6693035960197449, 0.19294314086437225, 0.04504751041531563, -0.1420244425535202, -0.40671685338020325, 0.10912232100963593, -0.04365987330675125, 0.04887508228421211, -0.23544369637966156, -0.09591300040483475, 0.3324648141860962, -0.4127458930015564, 0.14867249131202698, 0.014996190555393696, 0.12239763885736465, -0.19830499589443207, 0.3227457106113434, 0.2554568946361542, 0.21596002578735352, -0.3102447986602783, -0.203547865152359, -0.07942430675029755, -0.06015507131814957, -0.14421680569648743, 0.03711019083857536, 0.3265763223171234, -0.16945721209049225, 0.15005409717559814, 0.21607838571071625, -0.3853529691696167, -0.05778857320547104, 0.283499151468277, -0.2225656360387802, 0.25268110632896423, 0.16240264475345612, 0.271871954202652, 0.013558720238506794, -0.3872143030166626, -0.30668336153030396, -0.5732122659683228, -0.13489441573619843, -0.25072866678237915, -0.10088858008384705, 0.24073576927185059, -0.31012237071990967, 0.15338870882987976, 0.1174059510231018, 0.1802912950515747, 0.30675700306892395, -0.0013963463716208935, -0.11004621535539627, -0.23575085401535034, -0.43943843245506287, 0.055381130427122116, 0.26800110936164856, -0.13249628245830536, -0.21931351721286774, 0.4046551287174225, -0.011978555470705032, -0.021018464118242264, 0.009386754594743252, 0.5449486970901489, 0.2535100281238556, 0.07107657939195633, -0.18685919046401978, 0.17594020068645477, 0.12504906952381134, 0.11453024297952652, 0.08189096301794052, -0.18278969824314117, -0.11597198992967606, -0.28695157170295715, 0.21485969424247742, -0.1342402696609497, 0.1613275557756424, -0.31329745054244995, 0.0037504539359360933, 0.41268453001976013, -0.24596455693244934, 0.26622921228408813, -0.2862209379673004, -0.15344832837581635, -0.18607652187347412, 0.20852245390415192, -0.29524263739585876, -0.3550872206687927, 0.2407325804233551, 0.19496601819992065, 0.07007896900177002, 0.06696654111146927, -0.26918697357177734, 0.26158586144447327, 0.044511690735816956, 0.004922871012240648, -0.19112658500671387, 0.11490728706121445, -0.0623384565114975, 0.09782081842422485, 0.03151872009038925, 0.2053174376487732, -0.12497307360172272, 0.04828771576285362, -0.4952874183654785, -0.5152053833007812, 0.16102169454097748, -0.05245339125394821, -0.08688228577375412, -0.06760939955711365, 0.39681771397590637, 0.2529715299606323, 0.15932102501392365, -0.29319965839385986, 0.1256083995103836, -0.008349562995135784, 0.18230055272579193, -0.17034919559955597, 0.13732708990573883, 0.13820353150367737, -0.13519202172756195, -0.0715940073132515, -0.2012002319097519, 0.31383252143859863, 0.008085019886493683, -0.20658263564109802, -0.3480610251426697 ]
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.09869405627250671, 0.05165674537420273, -0.13092012703418732, -0.05589672550559044, 0.0639406144618988, -0.09535485506057739, 0.3679337203502655, 0.22081059217453003, 0.20629212260246277, 0.22497780621051788, -0.07506416738033295, 0.3655760884284973, -0.2819617688655853, 0.1416771411895752, 0.14772403240203857, 0.11733237653970718, -0.22435130178928375, 0.20253263413906097, 0.2756347358226776, -0.1639438420534134, -0.275132954120636, 0.32780683040618896, -0.03187815472483635, -0.008128601126372814, 0.0502307191491127, 0.05055926740169525, -0.1391221135854721, 0.19806821644306183, -0.11889604479074478, -0.299953818321228, -0.41973787546157837, 0.1671043187379837, 0.1602398306131363, -0.09745673835277557, -0.00010426566586829722, -0.14807850122451782, 0.222569078207016, -0.20845367014408112, -0.4087233245372772, -0.29366689920425415, 0.2981952428817749, -0.17242789268493652, 0.10730816423892975, -0.26513805985450745, -0.004576095379889011, -0.09832505136728287, 0.2041182965040207, 0.13540346920490265, 0.26551491022109985, 0.30323413014411926, 0.27170050144195557, 0.07904911786317825, 0.11347085982561111, 0.02989301271736622, 0.3312547504901886, -0.03548933193087578, -0.06828087568283081, 0.35271400213241577, 0.33446744084358215, -0.3054540157318115, -0.16186730563640594, 0.28838637471199036, -0.005472980439662933, -0.010991371236741543, 0.21951331198215485, 0.11134090274572372, 0.5780611038208008, -0.3311682939529419, 0.10661517083644867, 0.032749149948358536, 0.023619351908564568, -0.04132358357310295, -0.08505046367645264, -0.2842150032520294, 0.08381401747465134, -0.2874573767185211, 0.2766532897949219, 0.14956501126289368, -0.23348405957221985, -0.054357677698135376, -0.12947912514209747, -0.02550417371094227, -0.015468771569430828, 0.05405987799167633, -0.08892746269702911, 0.41385388374328613, -0.03893965855240822, -0.2830847501754761, 0.38612592220306396, -0.03815213963389397, -0.09715763479471207, -0.15326163172721863, -0.0394698791205883, 0.07660101354122162, -0.0374777652323246, -0.288777619600296, 0.15674813091754913, 0.04663980007171631, 0.09379736334085464, 0.2489914447069168, 0.046064622700214386, 0.032891180366277695, 0.2356237769126892, 0.07529257237911224, 0.16302838921546936, 0.4459599256515503, -0.00031434494303539395, 0.04006708040833473, 0.353896826505661, 0.4176516532897949, 0.1608998328447342, 0.15011706948280334, -0.1202336996793747, -0.18616048991680145, -0.1416517198085785, 0.1408618539571762, -0.1575789749622345, 0.09060120582580566, -0.43104422092437744, -0.13309717178344727, -0.3732345402240753, 0.00733855040743947, -0.034362100064754486, 0.43782851099967957, -0.04874911904335022, -0.13966095447540283, 0.24411337077617645, 0.23740151524543762, -0.04237247630953789, 0.09001776576042175, -0.1254783421754837, 0.2556157410144806, -0.21680904924869537, -0.05202299356460571, 0.33103907108306885, 0.077080138027668, 0.4212234318256378, -0.2571607530117035, -0.1213398203253746, -0.22413253784179688, 0.13889378309249878, 0.0859965980052948, -0.013924087397754192, -0.06411139667034149, 0.4167027771472931, 0.015522954985499382, -0.15332457423210144, -0.41582179069519043, -0.07122542709112167, 0.03881171718239784, 0.03470762073993683, -0.03710704669356346, -0.17407619953155518, 0.33552688360214233, -0.08622919023036957, -0.09424591064453125, -0.003776700934395194, 0.22714748978614807, -0.1502159982919693, 0.04360136762261391, 0.08587686717510223, 0.31828585267066956, -0.08277714997529984, -0.0009885295294225216, 0.16852320730686188, 0.29862308502197266, -0.09494572132825851, -0.2877131402492523, -0.18399398028850555, 0.16736789047718048, -0.11325504630804062, -0.06327034533023834, -0.0449301041662693, 0.2455674558877945, -0.3794003427028656, 0.24192063510417938, 0.3043464422225952, -0.289639413356781, -0.20502816140651703, 0.21484452486038208, -0.37521931529045105, -0.17490330338478088, 0.030269838869571686, 0.014299662783741951, 0.41080430150032043, -0.004255146719515324, -0.14322945475578308, 0.48279091715812683, 0.07717032730579376, 0.2428656369447708, -0.30401358008384705, -0.46601736545562744, -0.18291382491588593, 0.20750299096107483, 0.15166468918323517, -0.11844596266746521, 0.10884041339159012, -0.08774490654468536, 0.30027103424072266, -0.1562741994857788, 0.18655957281589508, 0.10289214551448822, 0.08243082463741302, 0.096202053129673, 0.09026511758565903, 0.12775707244873047, -0.4553067088127136, -0.024584203958511353, -0.14910966157913208, 0.24003973603248596, -0.3181629776954651, -0.1654348075389862, -0.2285124957561493, -0.18236136436462402, -0.20870405435562134, -0.3032354414463043, 0.2976226508617401, 0.2181786745786667, 0.05891517177224159, 0.2489137202501297, 0.07916655391454697, -0.07833709567785263, 0.16629290580749512, 0.1352359503507614, 0.04830586537718773, 0.3308411240577698, -0.3822060227394104, -0.1154455617070198, 0.1777767688035965, 0.05338531360030174, 0.16277006268501282, -0.009797019883990288, 0.017779458314180374, 0.20223084092140198, -0.2338353842496872, 0.45602548122406006, 0.03429936617612839, -0.018487920984625816, 0.2643815279006958, -0.0018941278103739023, 0.3286043107509613, 0.37859779596328735, 0.12536859512329102, -0.04232225567102432, -0.13353924453258514, 0.3993211090564728, 0.29787346720695496, 0.13153503835201263, 0.19843925535678864, 0.14926329255104065, -0.034582484513521194, -0.30922091007232666, -0.03661542758345604, -0.17500363290309906, 0.10603220760822296, 0.4917030334472656, 0.38121673464775085, -0.11719014495611191, -0.17985574901103973, 0.22685959935188293, 0.3522840738296509, -0.043104179203510284, 0.2884165644645691, 0.07977944612503052, -0.3493874967098236, -0.15528835356235504, -0.11724917590618134, 0.3525729477405548, 0.1629648357629776, 0.25432088971138, 0.17127181589603424, 0.0493352934718132, -0.008008383214473724, -0.30644693970680237, 0.399212121963501, 0.06556162238121033, 0.10622549057006836, 0.35542774200439453, 0.11225473135709763, -0.12416243553161621, -0.36689674854278564, -0.007818451151251793, -0.0030905897729098797, -0.05193401500582695, -0.2809717059135437, -0.03597712516784668, -0.20211142301559448, -0.16735441982746124, -0.040416937321424484, 0.11890814453363419, -0.04538644105195999, -0.19948741793632507, 0.24157185852527618, 0.28511038422584534, -0.27773380279541016, 0.12718868255615234, 0.1675785481929779, 0.3435675799846649, -0.07041918486356735, -0.05174064263701439, -0.10932112485170364, 0.01562899351119995, -0.331397145986557, 0.19074752926826477, 0.27920660376548767, 0.08477697521448135, 0.16686297953128815, 0.035354603081941605, 0.08241041749715805, -0.4212256073951721, -0.19667796790599823, 0.24050793051719666, -0.1467302143573761, 0.03966081514954567, 0.1082567349076271, -0.09118087589740753, -0.047825999557971954, -0.34721165895462036, 0.05037515610456467, -0.20661044120788574, -0.20288389921188354, -0.3251749575138092, 0.15945807099342346, 0.06294932216405869, -0.48818421363830566, -0.39876845479011536, -0.23691461980342865, -0.38008394837379456, 0.1677405834197998, 0.1598067581653595, 0.18229903280735016, 0.12465538829565048, -0.05482617765665054, 0.18005691468715668, 0.22314079105854034, -0.160607248544693, -0.14767204225063324, 0.27755048871040344, 0.4198611378669739, -0.4095941483974457, -0.31906405091285706, 0.04391159117221832, -0.32320845127105713, 0.01338358037173748, -0.2990259826183319, -0.25010842084884644, -0.43836236000061035, 0.15373146533966064, -0.17779944837093353, -0.08453366905450821, -0.0026808418333530426, 0.29861781001091003, 0.18735890090465546, -0.20031067728996277, 0.02658899687230587, -0.11107026040554047, 0.20705467462539673, 0.08829926699399948, 0.3847722113132477, -0.16153766214847565, 0.40672317147254944, 0.11748671531677246, 0.2566288411617279, -0.26918795704841614, 0.03353682532906532, 0.36191868782043457, -0.05067269876599312, 0.17019513249397278, 0.15920227766036987, -0.0863519087433815, 0.1363566666841507, 0.04094671458005905, -0.0944347158074379, 0.5336618423461914, -0.08546970784664154, -0.48649802803993225, -0.182667076587677, 0.05321899428963661, -0.27368661761283875, -0.2679211497306824, -0.10895581543445587, 0.2660420835018158, -0.1956837922334671, 0.01159004308283329, 0.2149551808834076, 0.0052228160202503204, -0.06083989143371582, 0.20591747760772705, 0.21969009935855865, -0.07721690088510513, -0.12061521410942078, 0.11858420819044113, 0.10426795482635498, -0.39514780044555664, 0.11174900829792023, 0.10438209772109985, -0.4041219651699066, 0.10743916779756546, -0.2256135642528534, 0.2036411613225937, -0.31954455375671387, 0.3587409555912018, -0.12096113711595535, 0.26626503467559814, -0.01437019370496273, 0.2164384126663208, 0.10930202156305313, -0.09933821856975555, -0.29880642890930176, -0.32118189334869385, 0.45074784755706787, -0.0478757843375206, -0.26560452580451965, -0.14416413009166718, 0.3384917676448822, -0.25894641876220703, 0.032387327402830124, -0.09629575163125992, -0.019114499911665916, -0.5297091603279114, -0.5422526597976685, 0.07723985612392426, 0.12609419226646423, 0.09797482937574387, -0.18700599670410156, -0.16395524144172668, 0.27043765783309937, -0.20997273921966553, -0.11222746968269348, 0.059668634086847305, 0.18278838694095612, 0.1411258727312088, -0.04690498486161232, 0.2014991044998169, 0.4859793782234192, -0.08635241538286209, 0.05024268478155136, 0.08871322125196457, 0.13509847223758698, 0.3584619164466858, -0.29154929518699646, -0.01205169502645731, 0.4303934574127197, 0.04238324612379074, -0.1449912190437317, -0.3378116190433502, 0.1311999410390854, -0.005020485259592533, 0.026209205389022827, 0.3523302972316742, -0.007696468383073807, 0.31897440552711487, -0.1285666525363922, 0.371814489364624, -0.11493881046772003, -0.1495707482099533, -0.11332232505083084, 0.1379421502351761, -0.48915597796440125, 0.20236290991306305, 0.2494792342185974, 1.0095970630645752, 0.1828901320695877, 0.1841593086719513, 0.37701666355133057, -0.1828773021697998, 0.22442592680454254, -0.20480531454086304, 0.2420453429222107, -0.2759123742580414, 0.25940200686454773, 0.027056043967604637, 0.12355480343103409, -0.2554803490638733, 0.2857082784175873, -0.34852030873298645, 0.22266463935375214, 0.1918337494134903, -0.055093102157115936, 0.039740294218063354, 0.5254424810409546, -0.414765328168869, -0.355072557926178, -0.0840061753988266, 0.22533908486366272, 0.2074783444404602, 0.33369359374046326, -0.022404640913009644, -0.32624945044517517, 0.023025233298540115, -0.3689984381198883, -0.12004327028989792, 0.22281000018119812, -0.656203031539917, 0.08114136755466461, -0.42058026790618896, -0.20546580851078033, 0.0714983269572258, 0.12163946777582169, 0.18259339034557343, 0.10026123374700546, -0.0640583410859108, 0.28069940209388733, 0.045134369283914566, -0.04643822833895683, -0.005044461227953434, -0.11703699082136154, 0.22879554331302643, -0.2543817162513733, -0.20081502199172974, -0.05295581743121147, 0.1507781744003296, -0.2844580113887787, 0.049413617700338364, -0.025313183665275574, -0.28933635354042053, 0.163265660405159, 0.0008362915250472724, 0.08880218118429184, -0.4070393145084381, -0.17011772096157074, 0.21576613187789917, -0.22286491096019745, -0.0063021741807460785, -0.04202565923333168, 0.07535621523857117, -0.165757954120636, -0.17175449430942535, 0.41143137216567993, -0.19205403327941895, -0.32575252652168274, 0.5842941403388977, 0.06437359750270844, -0.15042608976364136, -0.3654356002807617, -0.21400444209575653, 0.015012544579803944, -0.15085159242153168, 0.11020117998123169, -0.11286692321300507, -0.2562161982059479, -0.014631342142820358, 0.5000472068786621, -0.0012306594289839268, 0.2679023742675781, 0.02651909925043583, -0.08714248985052109, -0.09918127954006195, 0.2623234689235687, -0.1346048265695572, 0.298524409532547, -0.07511859387159348, 0.08205384016036987, 0.18698793649673462, -0.14571458101272583, -0.4634033739566803, 0.07907643914222717, -0.17125384509563446, -0.14057160913944244, 0.12507422268390656, -0.29873234033584595, 0.30952122807502747, 0.17042575776576996, 0.273366779088974, 0.22055695950984955, -0.07725677639245987, -0.2663615942001343, -0.030433332547545433, 0.07006426155567169, 0.047300659120082855, -0.10063312202692032, 0.01236653607338667, -0.11151015758514404, -0.21850945055484772, 0.12631730735301971, 0.20107939839363098, -0.1831626296043396, 0.08333712071180344, -0.10322224348783493, -0.248185932636261, 0.09767060726881027, 0.2554212212562561, -0.18508341908454895, -0.09760049730539322, 0.4207085371017456, 0.016687097027897835, 0.10759516060352325, 0.007806052919477224, 0.003392838640138507, 0.043122805655002594, 0.14116543531417847, 0.056450825184583664, 0.33877140283584595, 0.29624342918395996, 0.06722458451986313, -0.5515543222427368, 0.06194429099559784, 0.26379650831222534, 0.07853773981332779, -0.2515687048435211, -0.11560855805873871, 0.22283139824867249, 0.35561010241508484, -0.25941744446754456, 0.17321796715259552, -0.16231077909469604, -0.4482297897338867, 0.36174845695495605, 0.2996286451816559, 0.1987314075231552, 0.06725245714187622, 0.04757761210203171, 0.15383411943912506, 0.4046260416507721, -0.07478853315114975, -0.09283934533596039, -0.05252738669514656, -0.12249451875686646, 0.13392752408981323, 0.18508172035217285, 0.06740293651819229, 0.3257804214954376, -0.16162997484207153, -0.1871492564678192, 0.008799751289188862, 0.023579295724630356, 0.26404622197151184, 0.21662692725658417, 0.05193435028195381, 0.03836807236075401, 0.08146418631076813, -0.24517056345939636, 0.0961867943406105, -0.06733692437410355, 0.22006699442863464, -0.3235001266002655, 0.024017445743083954, -0.34097835421562195, 0.4161132276058197, -0.061810705810785294, -0.008547214791178703, -0.2516663372516632, -0.32604607939720154, -0.6693035960197449, 0.19294314086437225, 0.04504751041531563, -0.1420244425535202, -0.40671685338020325, 0.10912232100963593, -0.04365987330675125, 0.04887508228421211, -0.23544369637966156, -0.09591300040483475, 0.3324648141860962, -0.4127458930015564, 0.14867249131202698, 0.014996190555393696, 0.12239763885736465, -0.19830499589443207, 0.3227457106113434, 0.2554568946361542, 0.21596002578735352, -0.3102447986602783, -0.203547865152359, -0.07942430675029755, -0.06015507131814957, -0.14421680569648743, 0.03711019083857536, 0.3265763223171234, -0.16945721209049225, 0.15005409717559814, 0.21607838571071625, -0.3853529691696167, -0.05778857320547104, 0.283499151468277, -0.2225656360387802, 0.25268110632896423, 0.16240264475345612, 0.271871954202652, 0.013558720238506794, -0.3872143030166626, -0.30668336153030396, -0.5732122659683228, -0.13489441573619843, -0.25072866678237915, -0.10088858008384705, 0.24073576927185059, -0.31012237071990967, 0.15338870882987976, 0.1174059510231018, 0.1802912950515747, 0.30675700306892395, -0.0013963463716208935, -0.11004621535539627, -0.23575085401535034, -0.43943843245506287, 0.055381130427122116, 0.26800110936164856, -0.13249628245830536, -0.21931351721286774, 0.4046551287174225, -0.011978555470705032, -0.021018464118242264, 0.009386754594743252, 0.5449486970901489, 0.2535100281238556, 0.07107657939195633, -0.18685919046401978, 0.17594020068645477, 0.12504906952381134, 0.11453024297952652, 0.08189096301794052, -0.18278969824314117, -0.11597198992967606, -0.28695157170295715, 0.21485969424247742, -0.1342402696609497, 0.1613275557756424, -0.31329745054244995, 0.0037504539359360933, 0.41268453001976013, -0.24596455693244934, 0.26622921228408813, -0.2862209379673004, -0.15344832837581635, -0.18607652187347412, 0.20852245390415192, -0.29524263739585876, -0.3550872206687927, 0.2407325804233551, 0.19496601819992065, 0.07007896900177002, 0.06696654111146927, -0.26918697357177734, 0.26158586144447327, 0.044511690735816956, 0.004922871012240648, -0.19112658500671387, 0.11490728706121445, -0.0623384565114975, 0.09782081842422485, 0.03151872009038925, 0.2053174376487732, -0.12497307360172272, 0.04828771576285362, -0.4952874183654785, -0.5152053833007812, 0.16102169454097748, -0.05245339125394821, -0.08688228577375412, -0.06760939955711365, 0.39681771397590637, 0.2529715299606323, 0.15932102501392365, -0.29319965839385986, 0.1256083995103836, -0.008349562995135784, 0.18230055272579193, -0.17034919559955597, 0.13732708990573883, 0.13820353150367737, -0.13519202172756195, -0.0715940073132515, -0.2012002319097519, 0.31383252143859863, 0.008085019886493683, -0.20658263564109802, -0.3480610251426697 ]
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.11688964068889618, -0.20969152450561523, -0.11670266836881638, 0.04655607044696808, 0.1620284467935562, -0.18883657455444336, 0.09435700625181198, 0.3141216039657593, 0.03775666654109955, 0.14038196206092834, 0.0539776086807251, 0.5944423079490662, -0.10694225877523422, 0.29201793670654297, -0.04265816509723663, -0.16497837007045746, -0.06884371489286423, 0.32000410556793213, -0.31284454464912415, -0.04618752747774124, 0.011078495532274246, 0.373195081949234, -0.1320793479681015, 0.25494176149368286, 0.12055881321430206, -0.17117635905742645, 0.03036503866314888, 0.1430947482585907, -0.14184898138046265, -0.3311378061771393, 0.25428155064582825, 0.04547632113099098, -0.13636815547943115, 0.1577940434217453, -0.00009920300362864509, -0.04312686622142792, 0.32418033480644226, -0.07088840752840042, -0.2661367654800415, -0.3808969259262085, -0.12924756109714508, -0.17845496535301208, 0.3302333354949951, -0.10571547597646713, -0.2622191607952118, 0.14830082654953003, 0.028604544699192047, -0.008377572521567345, 0.38384902477264404, 0.3884246051311493, 0.36851876974105835, 0.15779288113117218, 0.16767334938049316, -0.12563306093215942, 0.18619243800640106, 0.18692900240421295, -0.06607065349817276, -0.09688540548086166, 0.053916726261377335, -0.18053340911865234, 0.3063398599624634, 0.28297147154808044, -0.1644662767648697, -0.09611815959215164, 0.1874166578054428, -0.02436116337776184, 0.024231823161244392, -0.14169275760650635, 0.030010277405381203, 0.15067718923091888, 0.26414135098457336, -0.3806944191455841, -0.11402922123670578, -0.3015458285808563, -0.02428656443953514, -0.38301095366477966, 0.023707205429673195, -0.0531722754240036, -0.1575688123703003, 0.13010527193546295, -0.052761178463697433, -0.45186179876327515, -0.18533650040626526, 0.3525790572166443, 0.1932298094034195, 0.0689728632569313, -0.11270590126514435, 0.06550952792167664, 0.26135459542274475, -0.054037827998399734, -0.37679827213287354, 0.29889288544654846, -0.19513466954231262, 0.14166110754013062, -0.02804313600063324, -0.201837420463562, 0.3356459438800812, -0.05248545855283737, -0.07269440591335297, 0.11809812486171722, -0.012949138879776001, -0.018889768049120903, -0.009921818040311337, 0.2746320068836212, 0.4173332154750824, 0.1929975003004074, 0.3750911056995392, 0.225840225815773, 0.19765961170196533, 0.0005198968574404716, -0.0670652911067009, -0.07054725289344788, 0.10846853256225586, 0.007959577254951, -0.1542847454547882, -0.08378483355045319, 0.2740112245082855, -0.1018359437584877, -0.280143678188324, -0.25366780161857605, 0.1547212302684784, 0.11147885024547577, 0.04962262511253357, 0.3161873519420624, 0.028512079268693924, 0.20455504953861237, 0.023410143330693245, 0.16259194910526276, -0.3559415340423584, -0.03187211602926254, -0.2442646473646164, 0.32730573415756226, -0.1398756355047226, -0.47908321022987366, 0.06624701619148254, 0.17371711134910583, 0.3600258231163025, -0.11257631331682205, 0.03981180861592293, 0.26092055439949036, 0.009048244915902615, 0.03655970096588135, 0.07564670592546463, 0.21625953912734985, -0.09764640033245087, -0.15824517607688904, 0.21988095343112946, -0.5354817509651184, -0.27403923869132996, 0.10503911972045898, -0.22550068795681, -0.28521519899368286, -0.4506230354309082, 0.30467167496681213, 0.08042474836111069, -0.29316335916519165, -0.32935646176338196, 0.18428616225719452, 0.13598276674747467, -0.21644791960716248, -0.10593041032552719, -0.1513114869594574, -0.019224248826503754, -0.16116656363010406, -0.007446197792887688, 0.11571931093931198, -0.23537270724773407, -0.20913991332054138, -0.20253729820251465, -0.3065539002418518, 0.26197585463523865, 0.3139544427394867, -0.24468383193016052, 0.2455073446035385, -0.12268839031457901, 0.10579219460487366, 0.5160627365112305, -0.5724246501922607, -0.23124586045742035, 0.20544137060642242, -0.0490398108959198, -0.11422733962535858, -0.16840216517448425, -0.017951564863324165, 0.18190599977970123, -0.08908987790346146, -0.00993508193641901, 0.34742212295532227, 0.18607304990291595, 0.1431889683008194, -0.14953185617923737, -0.12220709770917892, -0.028366349637508392, -0.09666354209184647, -0.0759284570813179, 0.07038097828626633, 0.16849730908870697, 0.14689739048480988, 0.20254023373126984, -0.09452258795499802, 0.009312750771641731, 0.1962147355079651, 0.5006924271583557, 0.055617719888687134, -0.09355184435844421, -0.4382089674472809, -0.03231044113636017, -0.13944783806800842, -0.19786764681339264, 0.35332638025283813, -0.31882646679878235, -0.11769667267799377, -0.2525279223918915, 0.0997808650135994, -0.222349151968956, -0.157224640250206, 0.30525800585746765, 0.058695293962955475, 0.14327317476272583, 0.07590123265981674, -0.34482526779174805, 0.11638377606868744, 0.06059369444847107, 0.04511314257979393, -0.244058296084404, -0.021884392946958542, -0.3494740426540375, -0.2440226674079895, 0.05957417190074921, 0.46243777871131897, 0.010901044122874737, -0.052973270416259766, 0.019506394863128662, 0.365235298871994, -0.09270985424518585, 0.05466298758983612, 0.10787148773670197, -0.18405616283416748, 0.056094422936439514, -0.23184722661972046, -0.027262723073363304, 0.06374029815196991, 0.08348982036113739, 0.13361358642578125, -0.10646574944257736, 0.17299969494342804, 0.20407702028751373, -0.02793048694729805, 0.2542046904563904, 0.1592370569705963, 0.36442428827285767, -0.2514117956161499, 0.10466693341732025, -0.358705073595047, 0.21916112303733826, -0.04936360567808151, -0.07154178619384766, -0.17746326327323914, -0.4236360788345337, 0.04521762207150459, 0.6067507266998291, 0.1550346463918686, 0.21328981220722198, 0.09527897834777832, -0.006847408600151539, -0.17884299159049988, -0.05146101489663124, 0.09497301280498505, 0.17258580029010773, 0.2499799281358719, -0.1400129348039627, 0.04408644512295723, -0.02336924709379673, -0.07114510983228683, 0.3133593201637268, -0.11022360622882843, 0.12919394671916962, 0.11594235152006149, 0.14646005630493164, -0.12209292501211166, -0.4732966125011444, -0.09908363968133926, -0.2719186544418335, 0.3124081492424011, -0.12022329121828079, 0.23248685896396637, -0.3833062946796417, -0.5119464993476868, 0.02983110584318638, -0.20203372836112976, -0.32176047563552856, -0.3416158854961395, 0.23008404672145844, 0.10389291495084763, -0.08628755062818527, 0.19168299436569214, 0.17463338375091553, 0.041203584522008896, 0.034108079969882965, -0.1091083511710167, -0.04482559487223625, -0.38862720131874084, -0.2937382161617279, 0.20785319805145264, -0.04647407308220863, 0.1856129765510559, 0.345390647649765, -0.09279421716928482, -0.13462601602077484, -0.06532363593578339, -0.4512675106525421, 0.13397014141082764, -0.19821035861968994, 0.417115718126297, 0.49882572889328003, 0.04587366804480553, -0.1586199849843979, -0.11848901212215424, 0.2855280041694641, -0.5542430281639099, -0.24180997908115387, 0.16253191232681274, -0.043054256588220596, 0.00018827606982085854, -0.2799878716468811, -0.2784695625305176, -0.26988911628723145, -0.4429296851158142, 0.3062041699886322, 0.26099684834480286, 0.23382875323295593, 0.33367666602134705, -0.08878383785486221, 0.18306663632392883, -0.19767332077026367, 0.3888366222381592, -0.17678122222423553, -0.17447026073932648, -0.03363891318440437, -0.23094487190246582, -0.4337506890296936, 0.006329741328954697, 0.10902189463376999, 0.32479754090309143, -0.24398812651634216, -0.3170567750930786, -0.2650543749332428, 0.04879093915224075, 0.10927386581897736, 0.022436598315835, 0.1758807897567749, 0.25717124342918396, 0.18974646925926208, -0.2251134216785431, -0.21488729119300842, -0.07855192571878433, 0.22497901320457458, 0.20173750817775726, 0.11119179427623749, -0.0416104719042778, 0.2193104475736618, 0.15201151371002197, 0.3629111349582672, -0.049033164978027344, 0.1733386218547821, 0.3288864195346832, -0.12338819354772568, 0.4986996650695801, -0.16336998343467712, -0.39370396733283997, -0.024487461894750595, 0.21374984085559845, 0.10913916677236557, 0.17049947381019592, -0.020909065380692482, -0.2336777150630951, -0.24585315585136414, 0.035598769783973694, -0.21091392636299133, -0.2162306010723114, -0.030753478407859802, -0.20949670672416687, -0.008988795801997185, 0.06706912815570831, -0.0869470164179802, -0.2360556423664093, -0.1214589774608612, -0.03172604367136955, -0.09943124651908875, -0.11774035543203354, -0.16088581085205078, -0.5274447202682495, -0.37983816862106323, -0.4278234541416168, 0.2465217262506485, -0.06926798075437546, 0.11954604834318161, -0.13716888427734375, -0.17686741054058075, 0.09991701692342758, -0.1288679838180542, 0.3627331554889679, -0.004336247686296701, -0.1355551928281784, 0.1412733495235443, 0.04772714525461197, -0.3704727590084076, 0.21488188207149506, -0.2964707016944885, 0.21453996002674103, 0.4119857847690582, 0.08346625417470932, -0.43494531512260437, -0.27983081340789795, 0.3200953006744385, -0.03909575939178467, -0.12023574113845825, 0.16182591021060944, -0.29393982887268066, -0.36362001299858093, -0.5449575185775757, -0.12997294962406158, 0.0731193870306015, 0.33673304319381714, 0.18823754787445068, 0.133538618683815, 0.005583565682172775, -0.11856663227081299, 0.022939015179872513, 0.018741952255368233, 0.252269983291626, -0.2153329849243164, -0.36979734897613525, -0.2291405349969864, 0.2577158808708191, 0.02175939455628395, 0.4180097281932831, -0.10418511182069778, -0.23626333475112915, -0.2990652918815613, -0.0036222413182258606, 0.4200940430164337, -0.011296025477349758, 0.08814024180173874, 0.243138387799263, -0.12298859655857086, 0.26152950525283813, 0.17343387007713318, 0.07780451327562332, 0.2646637558937073, -0.03000403195619583, 0.046972423791885376, -0.2418220341205597, 0.1561150997877121, -0.05620527267456055, 0.006501502823084593, 0.030287785455584526, 0.09224025905132294, -0.2980342507362366, 0.36249107122421265, -0.1737009435892105, 0.827671468257904, 0.15412406623363495, 0.14952127635478973, 0.16271363198757172, 0.02002817951142788, 0.6298736929893494, 0.14599910378456116, 0.30142781138420105, -0.2305777370929718, 0.25455182790756226, 0.03710368648171425, -0.048094842582941055, 0.23378285765647888, 0.09676342457532883, -0.280346542596817, 0.36226382851600647, 0.0007976346532814205, 0.04179462045431137, -0.13653354346752167, 0.19864360988140106, 0.09124325215816498, -0.025285296142101288, -0.3467203676700592, 0.24151702225208282, -0.1234222799539566, 0.1706295609474182, -0.035269901156425476, -0.1865021139383316, 0.1307334154844284, -0.2843438386917114, -0.18831367790699005, 0.16501544415950775, 0.03550224378705025, 0.33201587200164795, 0.23417197167873383, -0.35742470622062683, -0.11967974901199341, 0.20727278292179108, 0.12313753366470337, 0.0464341826736927, -0.1416502147912979, 0.1934482306241989, -0.15047262609004974, -0.13143588602542877, 0.058115217834711075, 0.3791007399559021, 0.40592241287231445, -0.3037536144256592, -0.31278249621391296, 0.13559222221374512, 0.010638137347996235, -0.40712666511535645, 0.20549236238002777, 0.012437444180250168, -0.03583962470293045, 0.000564928341191262, -0.06267325580120087, 0.10610659420490265, 0.00277904630638659, -0.26112842559814453, 0.2479955554008484, 0.2681894898414612, -0.2971423268318176, 0.13017228245735168, 0.027789300307631493, -0.13328175246715546, -0.059779681265354156, -0.0008432974573224783, 0.12866538763046265, 0.0012183284852653742, 0.4648871421813965, 0.10233982652425766, -0.17674659192562103, -0.4118674695491791, -0.2713213562965393, -0.16737700998783112, -0.22632640600204468, 0.3819691836833954, 0.22743099927902222, -0.18094687163829803, 0.15649671852588654, 0.43249863386154175, -0.15194490551948547, 0.04650120064616203, -0.2163887768983841, -0.24704726040363312, -0.1826237589120865, 0.1593073308467865, -0.04762206971645355, 0.08626051992177963, 0.17569637298583984, 0.18564389646053314, 0.11674487590789795, 0.030903957784175873, -0.45744195580482483, 0.05549130588769913, -0.30087438225746155, 0.17542588710784912, 0.4310329258441925, -0.22186611592769623, 0.11554218083620071, -0.053414665162563324, 0.2771426737308502, -0.17125514149665833, -0.16082674264907837, -0.3855387270450592, -0.07677771896123886, 0.07387910783290863, -0.07630955427885056, -0.03847266733646393, 0.016864363104104996, -0.06550566107034683, -0.14149102568626404, -0.05364879220724106, 0.12241317331790924, -0.09864679723978043, -0.044729720801115036, 0.5866772532463074, 0.09552428126335144, -0.028180230408906937, 0.37294718623161316, -0.05319986492395401, 0.024678701534867287, 0.16889619827270508, -0.10141512751579285, 0.15028366446495056, -0.09219919145107269, -0.1458045393228531, -0.0007063332595862448, 0.04616755619645119, 0.0317954421043396, 0.19708074629306793, 0.22887036204338074, -0.2906329333782196, -0.09219681471586227, 0.039290182292461395, 0.46822547912597656, -0.0393221341073513, -0.07853280752897263, 0.047533534467220306, 0.36974000930786133, 0.3186565339565277, -0.4926092326641083, 0.05498962104320526, 0.24157468974590302, -0.07947774976491928, 0.09626243263483047, 0.14266911149024963, 0.07074227184057236, 0.09159623086452484, 0.007360929157584906, 0.11958134919404984, 0.28144964575767517, -0.3491175174713135, 0.08573859930038452, 0.2375696897506714, -0.21612606942653656, -0.1672634482383728, 0.12473747879266739, 0.24518541991710663, 0.31182894110679626, 0.6150825619697571, -0.04123365506529808, 0.1317594051361084, 0.12350159138441086, 0.07186636328697205, 0.17530333995819092, -0.09616564214229584, 0.27237042784690857, 0.1497652232646942, 0.16681115329265594, 0.05267557501792908, 0.14359153807163239, 0.3294471800327301, -0.21386538445949554, -0.017915666103363037, -0.07956171780824661, 0.670697808265686, -0.13449260592460632, -0.15356123447418213, -0.2235078513622284, 0.06103932112455368, 0.17492125928401947, -0.1438235193490982, 0.1336372345685959, -0.030589938163757324, 0.09055595844984055, 0.13582414388656616, 0.051351550966501236, -0.43245774507522583, 0.31613150238990784, -0.18095917999744415, 0.17576700448989868, -0.07756048440933228, 0.04363947734236717, -0.03434533625841141, -0.020153509452939034, -0.15338033437728882, 0.3481294512748718, 0.45250311493873596, 0.1537199169397354, -0.2976202368736267, -0.04021570831537247, -0.17110346257686615, -0.2158662974834442, -0.16859352588653564, 0.3800276815891266, 0.18223004043102264, 0.480461061000824, 0.116407610476017, 0.21835729479789734, -0.20054444670677185, -0.12312649935483932, 0.17831513285636902, 0.09049343317747116, -0.15553979575634003, 0.5753046870231628, 0.05319301038980484, -0.34241876006126404, -0.1728661060333252, 0.03833535686135292, -0.41502147912979126, 0.06616432964801788, 0.29429545998573303, 0.09532652795314789, 0.18881632387638092, -0.3335590362548828, 0.17457805573940277, 0.15636253356933594, 0.39469876885414124, 0.33422449231147766, 0.23829397559165955, 0.18701568245887756, -0.18417291343212128, -0.45729103684425354, 0.07888494431972504, -0.07890534400939941, -0.2765892744064331, -0.007492150645703077, 0.30770865082740784, -0.009180053137242794, 0.2107318937778473, -0.08312907814979553, -0.00042557192500680685, -0.061779189854860306, -0.42953795194625854, -0.23380114138126373, 0.036269281059503555, -0.10008957237005234, -0.05565451830625534, 0.16712017357349396, -0.21006983518600464, -0.11620216071605682, 0.02701348066329956, 0.17699536681175232, -0.11858498305082321, 0.1766652911901474, -0.009819084778428078, -0.05123884230852127, -0.13827380537986755, 0.298473984003067, 0.15975500643253326, -0.11686105281114578, -0.12584713101387024, 0.18763986229896545, -0.36092105507850647, -0.374449223279953, 0.10192721337080002, -0.07300537824630737, 0.34205013513565063, -0.16214783489704132, 0.1303640902042389, -0.16034650802612305, 0.1503835916519165, 0.0480322390794754, 0.02111857570707798, -0.222408726811409, 0.13997574150562286, 0.17459891736507416, -0.13141879439353943, -0.14323650300502777, 0.1130632534623146, -0.10719531029462814, 0.05693579465150833, -0.26704785227775574, -0.3180980384349823, 0.4615895450115204, -0.32288965582847595, -0.4482118487358093, -0.05765705555677414, 0.19112074375152588, -0.06515773385763168, -0.3452368378639221, -0.45517927408218384, 0.13871106505393982, 0.25976648926734924, 0.07053210586309433, -0.07926561683416367, 0.41423410177230835, -0.29695063829421997, 0.03668460249900818, 0.17784252762794495, 0.4717923402786255, 0.20324233174324036, -0.13713811337947845, 0.07964687049388885, -0.16019174456596375 ]
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.07471852004528046, -0.25162097811698914, -0.11553431302309036, 0.08792196214199066, 0.18377746641635895, -0.17871206998825073, 0.09087163209915161, 0.2998163104057312, 0.03160589560866356, 0.1319086104631424, 0.05100925266742706, 0.5649478435516357, -0.1044340431690216, 0.29663529992103577, -0.04717695713043213, -0.22445327043533325, -0.04263380914926529, 0.2933093309402466, -0.3304527699947357, -0.05172516405582428, 0.040468327701091766, 0.36297711730003357, -0.12968575954437256, 0.2741338610649109, 0.1252758800983429, -0.19017493724822998, 0.0015234211459755898, 0.15268780291080475, -0.13405969738960266, -0.3176124095916748, 0.2797693908214569, 0.026805443689227104, -0.10140179842710495, 0.17617300152778625, -0.00009855224197963253, -0.0737009048461914, 0.3171122670173645, -0.07455120235681534, -0.26241374015808105, -0.34762972593307495, -0.1504909247159958, -0.15895076096057892, 0.29756495356559753, -0.11990976333618164, -0.238819420337677, 0.13871435821056366, 0.0045637222938239574, 0.01863142102956772, 0.39209118485450745, 0.38371020555496216, 0.37491926550865173, 0.12493807822465897, 0.1929478794336319, -0.12141713500022888, 0.1639736145734787, 0.18668337166309357, -0.08073835074901581, -0.08623029291629791, 0.055448222905397415, -0.19010016322135925, 0.3049732744693756, 0.2913116216659546, -0.14886252582073212, -0.11170424520969391, 0.19865480065345764, -0.046251218765974045, 0.02240816131234169, -0.15916167199611664, 0.03893779218196869, 0.14282391965389252, 0.3123071491718292, -0.38668301701545715, -0.1058308482170105, -0.2720894515514374, -0.020536798983812332, -0.3580048084259033, 0.011103286407887936, -0.035410016775131226, -0.12744638323783875, 0.1445009410381317, -0.03957030549645424, -0.4792865514755249, -0.21717900037765503, 0.35155561566352844, 0.2264174073934555, 0.03822531923651695, -0.12364054471254349, 0.053236640989780426, 0.2304849773645401, -0.06376111507415771, -0.3869412839412689, 0.29516860842704773, -0.1951298713684082, 0.15866100788116455, -0.04467511549592018, -0.2178732305765152, 0.32639285922050476, -0.06385261565446854, -0.05255704000592232, 0.08250828087329865, 0.004648861475288868, -0.022126493975520134, -0.02812178246676922, 0.254495233297348, 0.4578908383846283, 0.2475711554288864, 0.39362892508506775, 0.22120286524295807, 0.1548515409231186, 0.02508123777806759, -0.08608926087617874, -0.04893342778086662, 0.08430244773626328, 0.03136269375681877, -0.1318342536687851, -0.06858640164136887, 0.2815738618373871, -0.11335472762584686, -0.27686938643455505, -0.2064281553030014, 0.120966337621212, 0.11062826961278915, 0.028262989595532417, 0.33775967359542847, 0.008651681244373322, 0.2231970727443695, 0.03606262803077698, 0.1516711264848709, -0.36848145723342896, -0.06707541644573212, -0.23483406007289886, 0.3588409721851349, -0.16952459514141083, -0.47980043292045593, 0.043488454073667526, 0.175326868891716, 0.3514820337295532, -0.10704535245895386, 0.06402835994958878, 0.21439634263515472, -0.005742600653320551, 0.05310117453336716, 0.0964142307639122, 0.18293850123882294, -0.0929335355758667, -0.15608695149421692, 0.21003355085849762, -0.5214311480522156, -0.2521960735321045, 0.1298750638961792, -0.2238716334104538, -0.2987518906593323, -0.4562395215034485, 0.29905980825424194, 0.08990330994129181, -0.2795068919658661, -0.3280279338359833, 0.19722415506839752, 0.13881753385066986, -0.16680921614170074, -0.08274856209754944, -0.1410975605249405, -0.004468133673071861, -0.14802676439285278, -0.02434050664305687, 0.11409365385770798, -0.24220454692840576, -0.17108286917209625, -0.172895148396492, -0.31476521492004395, 0.2596481740474701, 0.3290224075317383, -0.2628428041934967, 0.2250307947397232, -0.11825050413608551, 0.11638714373111725, 0.4797017276287079, -0.5727299451828003, -0.19210955500602722, 0.21454446017742157, -0.05976635217666626, -0.10255743563175201, -0.175975039601326, -0.027561819180846214, 0.194209486246109, -0.10942588746547699, -0.038293953984975815, 0.3194499611854553, 0.18176905810832977, 0.14893664419651031, -0.2012801617383957, -0.09793510288000107, -0.00935834739357233, -0.10988085716962814, -0.07554007321596146, 0.05227022245526314, 0.1559683084487915, 0.17094354331493378, 0.23741456866264343, -0.08586497604846954, 0.022511176764965057, 0.25468841195106506, 0.4777032732963562, 0.07475592195987701, -0.08629061281681061, -0.43686118721961975, -0.029493890702724457, -0.1539904773235321, -0.19101157784461975, 0.3839293122291565, -0.258460134267807, -0.12557771801948547, -0.28100287914276123, 0.1069900318980217, -0.19875167310237885, -0.17127563059329987, 0.3102852404117584, 0.03643707558512688, 0.12876956164836884, 0.044691309332847595, -0.34844499826431274, 0.11584731191396713, 0.02924024499952793, 0.029240520671010017, -0.2396179735660553, -0.02240918204188347, -0.36697250604629517, -0.23189744353294373, 0.10109441727399826, 0.4514658749103546, 0.01694132573902607, -0.05700913444161415, 0.029873358085751534, 0.36221402883529663, -0.10761498659849167, 0.06025201454758644, 0.12949469685554504, -0.17585833370685577, 0.06122603267431259, -0.25309816002845764, -0.033159926533699036, 0.05732208862900734, 0.08731339126825333, 0.13285669684410095, -0.08339858800172806, 0.14734765887260437, 0.19436632096767426, -0.047581665217876434, 0.23736009001731873, 0.1458624005317688, 0.35613664984703064, -0.25808048248291016, 0.093428835272789, -0.31716763973236084, 0.22631464898586273, -0.05594433471560478, -0.12032689154148102, -0.17075888812541962, -0.4570821225643158, 0.07283622771501541, 0.6142224669456482, 0.11814551055431366, 0.20279096066951752, 0.11002641171216965, -0.01049062330275774, -0.2033449411392212, -0.04651980102062225, 0.1275082528591156, 0.15989427268505096, 0.23933649063110352, -0.14420993626117706, 0.04024890810251236, -0.016073215752840042, -0.04243559017777443, 0.33444130420684814, -0.09530016779899597, 0.1490648239850998, 0.09819743782281876, 0.1295660436153412, -0.10514777153730392, -0.4526614546775818, -0.10298577696084976, -0.26597827672958374, 0.3086746335029602, -0.1300007849931717, 0.21370118856430054, -0.34136849641799927, -0.5405301451683044, 0.008029242046177387, -0.21476083993911743, -0.3553180396556854, -0.3191394507884979, 0.23290489614009857, 0.07947506010532379, -0.1158469095826149, 0.18320761620998383, 0.15573373436927795, 0.0698954239487648, 0.03689764440059662, -0.08813027292490005, -0.05064520984888077, -0.39428454637527466, -0.3033125102519989, 0.20885609090328217, -0.030276084318757057, 0.21846483647823334, 0.33490416407585144, -0.09231412410736084, -0.11713247001171112, -0.07300370931625366, -0.427192747592926, 0.11691929399967194, -0.21328625082969666, 0.43083590269088745, 0.4775034189224243, 0.10045243799686432, -0.1677219420671463, -0.12496873736381531, 0.274867981672287, -0.5327469706535339, -0.25405383110046387, 0.15805073082447052, -0.015488583594560623, -0.0048851086758077145, -0.275903582572937, -0.29489800333976746, -0.2444998323917389, -0.46424663066864014, 0.30066612362861633, 0.24625028669834137, 0.22394950687885284, 0.3138277232646942, -0.09871529042720795, 0.16146042943000793, -0.1947258710861206, 0.4215770363807678, -0.1935766190290451, -0.1916533261537552, -0.04046814143657684, -0.2186051607131958, -0.4552699029445648, 0.02045457996428013, 0.13776201009750366, 0.35009801387786865, -0.28968384861946106, -0.31449228525161743, -0.22519353032112122, 0.05802921950817108, 0.08702842891216278, -0.0012442353181540966, 0.1882113665342331, 0.24216559529304504, 0.22061754763126373, -0.21639935672283173, -0.20338737964630127, -0.10301283746957779, 0.2228533774614334, 0.20191052556037903, 0.10728497058153152, -0.042982734739780426, 0.20355179905891418, 0.14237505197525024, 0.3852212131023407, -0.03430211544036865, 0.19852681457996368, 0.31969723105430603, -0.06754831224679947, 0.4661509394645691, -0.15504811704158783, -0.4070018231868744, -0.009127707220613956, 0.17550276219844818, 0.10234658420085907, 0.19163012504577637, -0.007786526344716549, -0.24192151427268982, -0.25179776549339294, -0.004701023921370506, -0.22840818762779236, -0.23091508448123932, 0.0008260637405328453, -0.2384738326072693, 0.0005094845546409488, 0.06528932601213455, -0.11433961987495422, -0.22598722577095032, -0.10495438426733017, -0.005071977619081736, -0.10006250441074371, -0.09127028286457062, -0.14909887313842773, -0.5165436267852783, -0.3555942177772522, -0.42118969559669495, 0.21034836769104004, -0.06529232859611511, 0.14191292226314545, -0.14395037293434143, -0.17875182628631592, 0.10197262465953827, -0.11253713071346283, 0.35133981704711914, 0.03082350641489029, -0.13194149732589722, 0.15104901790618896, 0.05324943736195564, -0.3147057592868805, 0.22325138747692108, -0.2976680397987366, 0.1993822306394577, 0.38504061102867126, 0.047914694994688034, -0.4532950520515442, -0.2799514830112457, 0.2857568562030792, -0.02850979007780552, -0.1267179697751999, 0.14143258333206177, -0.29200640320777893, -0.3294556140899658, -0.5601935386657715, -0.11468389630317688, 0.10400298237800598, 0.34590184688568115, 0.16091978549957275, 0.14142662286758423, 0.027394847944378853, -0.14015576243400574, 0.03791672736406326, -0.009029142558574677, 0.26661527156829834, -0.20803998410701752, -0.374833881855011, -0.24921251833438873, 0.2636886239051819, 0.018471885472536087, 0.4048207998275757, -0.12581028044223785, -0.22298173606395721, -0.31173965334892273, -0.030758239328861237, 0.4273921847343445, -0.012826836667954922, 0.10023979097604752, 0.25104403495788574, -0.12360060960054398, 0.27836188673973083, 0.13141575455665588, 0.032428570091724396, 0.26529017090797424, -0.018458977341651917, 0.043419044464826584, -0.215318962931633, 0.13762030005455017, -0.07958444207906723, 0.006577640771865845, 0.034280311316251755, 0.10681209713220596, -0.30754348635673523, 0.3447081744670868, -0.1606529951095581, 0.8757854700088501, 0.15663765370845795, 0.14821960031986237, 0.14430232346057892, 0.006009584292769432, 0.6237421631813049, 0.15749244391918182, 0.3093411326408386, -0.2359824925661087, 0.21988992393016815, 0.04534385725855827, -0.023352883756160736, 0.21134737133979797, 0.09390214085578918, -0.27814966440200806, 0.34159427881240845, -0.011055507697165012, 0.012548601254820824, -0.14420074224472046, 0.2061149626970291, 0.08482605218887329, -0.019567279145121574, -0.43156200647354126, 0.23686543107032776, -0.10039621591567993, 0.1428440809249878, -0.06653901189565659, -0.21863961219787598, 0.12128391861915588, -0.27252182364463806, -0.1870216280221939, 0.141104057431221, 0.047734908759593964, 0.29285213351249695, 0.2638769745826721, -0.3232083320617676, -0.10180385410785675, 0.22944316267967224, 0.13220851123332977, 0.021500075235962868, -0.16221782565116882, 0.1684938371181488, -0.16761867702007294, -0.14059069752693176, 0.06385553628206253, 0.36722975969314575, 0.4578965902328491, -0.3215276002883911, -0.3099900484085083, 0.1329868584871292, -0.012823490425944328, -0.3776732385158539, 0.17065617442131042, 0.01704494282603264, -0.047989606857299805, -0.017922930419445038, -0.09113451093435287, 0.1027873158454895, -0.01727532595396042, -0.22918814420700073, 0.24809856712818146, 0.293790340423584, -0.3036979138851166, 0.1194649264216423, 0.05865585058927536, -0.12384234368801117, -0.04391657933592796, -0.009820519015192986, 0.1302969753742218, 0.0020779615733772516, 0.4763105809688568, 0.13539370894432068, -0.20083455741405487, -0.41358938813209534, -0.25539156794548035, -0.14051972329616547, -0.24207442998886108, 0.37657901644706726, 0.20401471853256226, -0.1696828454732895, 0.1431550234556198, 0.4442283511161804, -0.11122068017721176, 0.05744210630655289, -0.1993820071220398, -0.24843385815620422, -0.20250453054904938, 0.1892823725938797, -0.06555391103029251, 0.07822484523057938, 0.14254383742809296, 0.19862835109233856, 0.1594916731119156, 0.060058679431676865, -0.4667700529098511, 0.04842016473412514, -0.34326767921447754, 0.1815658062696457, 0.44372332096099854, -0.20990057289600372, 0.10122238844633102, -0.02357647754251957, 0.26712271571159363, -0.1746080070734024, -0.15389713644981384, -0.3755474090576172, -0.07323595881462097, 0.07313399016857147, -0.07964479923248291, -0.02826192043721676, 0.029346372932195663, -0.06647070497274399, -0.1379358023405075, -0.02324751950800419, 0.09331448376178741, -0.1077137440443039, -0.033522944897413254, 0.5934745073318481, 0.09096546471118927, -0.007124709896743298, 0.32246050238609314, -0.060676075518131256, 0.04158767685294151, 0.20169030129909515, -0.09308485686779022, 0.11571025103330612, -0.08816445618867874, -0.1559307724237442, -0.002357440534979105, 0.06224752590060234, 0.01998022384941578, 0.1833561807870865, 0.23834459483623505, -0.28744879364967346, -0.08945563435554504, 0.046966876834630966, 0.496492862701416, -0.05945255607366562, -0.10098467767238617, 0.07099894434213638, 0.3826431334018707, 0.33033287525177, -0.5057238340377808, 0.08314400911331177, 0.2515089511871338, -0.1181500181555748, 0.05891793966293335, 0.13038066029548645, 0.0547284260392189, 0.09083274006843567, 0.028644884005188942, 0.13211262226104736, 0.24796156585216522, -0.36755749583244324, 0.07193999737501144, 0.20216946303844452, -0.26961958408355713, -0.14803260564804077, 0.12639619410037994, 0.23489338159561157, 0.30728042125701904, 0.6015737652778625, -0.03065270185470581, 0.14607614278793335, 0.136286199092865, 0.09025656431913376, 0.18959899246692657, -0.03612824156880379, 0.26440608501434326, 0.17843279242515564, 0.17733466625213623, 0.04308510944247246, 0.11738626658916473, 0.36151638627052307, -0.19471955299377441, -0.05037141963839531, -0.06622657179832458, 0.6730319857597351, -0.15137292444705963, -0.13842472434043884, -0.2244412899017334, 0.02976646088063717, 0.16385851800441742, -0.16665613651275635, 0.11552897095680237, -0.026572266593575478, 0.1167304664850235, 0.14775234460830688, 0.04044527933001518, -0.4394562840461731, 0.2877224385738373, -0.16176271438598633, 0.19609391689300537, -0.09428910166025162, 0.04436846822500229, -0.027190830558538437, -0.01811341568827629, -0.1653069406747818, 0.35921844840049744, 0.4551662802696228, 0.16749979555606842, -0.29158392548561096, -0.05345161259174347, -0.1397530436515808, -0.21164678037166595, -0.13420425355434418, 0.4058215022087097, 0.2126343697309494, 0.4610166549682617, 0.13472871482372284, 0.20657575130462646, -0.19261163473129272, -0.10799333453178406, 0.19834327697753906, 0.08532962203025818, -0.16617923974990845, 0.5535992980003357, 0.030668729916214943, -0.3605210483074188, -0.21234887838363647, 0.03889691084623337, -0.425796777009964, 0.08372719585895538, 0.29681840538978577, 0.06731744855642319, 0.20453083515167236, -0.356780469417572, 0.1773059219121933, 0.17809881269931793, 0.40158718824386597, 0.35099151730537415, 0.255021333694458, 0.16613274812698364, -0.1810494065284729, -0.44965803623199463, 0.08417019993066788, -0.0507887601852417, -0.24189895391464233, -0.02064291201531887, 0.3006989657878876, 0.0002589948126114905, 0.22121959924697876, -0.08654268085956573, -0.008486629463732243, -0.044657547026872635, -0.3914658725261688, -0.24863870441913605, 0.046830181032419205, -0.08836846053600311, -0.030839676037430763, 0.17171424627304077, -0.18246552348136902, -0.12353075295686722, 0.02781083434820175, 0.16627751290798187, -0.1078462079167366, 0.19057470560073853, -0.0070867231115698814, -0.03220784291625023, -0.17308653891086578, 0.29916834831237793, 0.13249170780181885, -0.11775784194469452, -0.16338148713111877, 0.19627311825752258, -0.3696710765361786, -0.3476008474826813, 0.10612080246210098, -0.046208400279283524, 0.3358204960823059, -0.15564067661762238, 0.13643084466457367, -0.16302110254764557, 0.133561909198761, 0.03564682975411415, 0.03324543684720993, -0.2534841299057007, 0.12121541798114777, 0.17456486821174622, -0.16330912709236145, -0.12083262205123901, 0.1273241937160492, -0.1131865456700325, 0.05017821490764618, -0.2902613878250122, -0.30753448605537415, 0.4495239555835724, -0.33356937766075134, -0.4592612683773041, -0.06009722128510475, 0.20767207443714142, -0.06308893859386444, -0.3752248287200928, -0.48535531759262085, 0.141993448138237, 0.24108466506004333, 0.08443758636713028, -0.07687485963106155, 0.421423077583313, -0.31274425983428955, 0.06322803348302841, 0.1830020546913147, 0.49753689765930176, 0.22215943038463593, -0.09712032973766327, 0.0885697677731514, -0.1633361130952835 ]
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.4314170181751251, 0.17720870673656464, -0.11297191679477692, 0.11462236195802689, -0.10702252388000488, -0.03472675383090973, -0.25763869285583496, 0.7160261869430542, -0.03295758366584778, 0.31452271342277527, -0.28313010931015015, 0.015157495625317097, -0.22056402266025543, 0.6092380285263062, 0.4744935631752014, -0.09877611696720123, -0.11577779799699783, 0.4419943690299988, -0.07996698468923569, 0.051898371428251266, -0.17389684915542603, 0.23757502436637878, -0.05118950828909874, 0.10084675252437592, 0.3044532835483551, -0.2877180576324463, 0.15913669764995575, -0.030612096190452576, -0.34076619148254395, -0.28897690773010254, 0.02230040356516838, 0.215275838971138, 0.17467264831066132, -0.32348763942718506, -0.00012473233800847083, -0.0638321042060852, -0.01785493642091751, -0.1316622644662857, -0.13181942701339722, 0.12393533438444138, -0.1069384291768074, -0.13386540114879608, 0.09317249804735184, 0.011332356370985508, -0.06970706582069397, -0.27816057205200195, 0.21352311968803406, -0.08610732853412628, 0.3582042455673218, 0.4454735219478607, 0.020418589934706688, 0.14054256677627563, -0.25294843316078186, 0.15268780291080475, -0.06445383280515671, -0.2822868824005127, -0.08922899514436722, 0.015645407140254974, 0.14982648193836212, 0.13543125987052917, 0.12198890745639801, 0.14073793590068817, 0.2157319337129593, 0.2066379338502884, 0.005410124082118273, -0.017189906910061836, 0.34922105073928833, -0.7237769961357117, -0.07929326593875885, 0.7125211358070374, 0.12854956090450287, 0.1623680293560028, -0.17262235283851624, -0.1767226606607437, 0.1247088611125946, -0.4916466474533081, -0.042381398379802704, 0.5084099769592285, -0.5656157732009888, -0.002775890287011862, -0.639100968837738, -0.5820968747138977, -0.17276476323604584, 0.11604653298854828, -0.05375595763325691, -0.033766474574804306, 0.08018031716346741, 0.053833987563848495, 0.2881830930709839, 0.1955108642578125, 0.09658516943454742, 0.12498205155134201, -0.15016894042491913, 0.13461624085903168, -0.248560830950737, -0.4248795509338379, -0.2950524389743805, -0.1588331162929535, 0.2999624013900757, 0.04532866179943085, -0.07103115320205688, 0.028663270175457, 0.07236979901790619, -0.1054556667804718, 0.4089220464229584, 0.10765400528907776, 0.2841552197933197, 0.2317725270986557, 0.05046802759170532, 0.021156275644898415, 0.08028436452150345, 0.1652098298072815, -0.007686336990445852, -0.07589104026556015, -0.6195679903030396, 0.0124147217720747, -0.018040964379906654, -0.4316455125808716, 0.004517837893217802, -0.17535504698753357, -0.15915200114250183, -0.11186037212610245, -0.1868518888950348, 0.19900628924369812, 0.04097961634397507, 0.07662498950958252, -0.29712605476379395, 0.2975177764892578, -0.2782460153102875, -0.8463842272758484, -0.15886135399341583, 0.01200686302036047, 0.045321978628635406, 0.13913078606128693, 0.318924218416214, 0.16165725886821747, 0.21130920946598053, -0.26384592056274414, 0.0016601367387920618, -0.01891229674220085, 0.39867091178894043, -0.0074117849580943584, 0.03029295802116394, 0.39642778038978577, 0.09988300502300262, 0.15149608254432678, -0.13892269134521484, 0.31283387541770935, -0.4387754797935486, 0.2237684726715088, -0.031921014189720154, -0.3537503480911255, 0.23787255585193634, 0.04447394609451294, -0.08159919828176498, 0.09028501808643341, -0.0688420981168747, 0.277945339679718, -0.05112450569868088, -0.1465740203857422, -0.09530170261859894, -0.1845466047525406, -0.25400033593177795, -0.05106504261493683, 0.3700123429298401, -0.05476664751768112, -0.3172946572303772, -0.21801936626434326, -0.05037681385874748, -0.18735557794570923, 0.20571020245552063, 0.3892885446548462, -0.19530898332595825, 0.2749292552471161, -0.12825599312782288, 0.041904497891664505, 0.6039462089538574, 0.06341949105262756, -0.16076801717281342, 0.4452088475227356, -0.09582454711198807, -0.35450467467308044, -0.08867693692445755, 0.2540343701839447, 0.1982443928718567, -0.010619275271892548, -0.3353326916694641, 0.7256408333778381, -0.18324315547943115, -0.24234318733215332, -0.07946811616420746, -0.5672935843467712, 0.29438868165016174, 0.10721394419670105, 0.23346693813800812, 0.15476705133914948, -0.1318541318178177, -0.1644454002380371, 0.22800908982753754, 0.04814513027667999, -0.02189488150179386, 0.019562704488635063, -0.07710906118154526, -0.4434765577316284, -0.19487819075584412, -0.12640608847141266, -0.42739611864089966, 0.21920761466026306, -0.6686816215515137, -0.27271100878715515, 0.4337013065814972, -0.07416368275880814, -0.08565346151590347, -0.2160949856042862, 0.22764535248279572, -0.3765789270401001, -0.08974535018205643, -0.08976179361343384, 0.2328122854232788, 0.13455255329608917, -0.353180855512619, -0.07757322490215302, -0.08448013663291931, 0.12008944153785706, -0.14855796098709106, -0.18855251371860504, 0.19476132094860077, 0.1635548323392868, 0.3136904239654541, -0.06820188462734222, -0.14226208627223969, 0.02935102954506874, 0.11743511259555817, 0.18406018614768982, -0.06535118073225021, 0.06793107837438583, 0.19010809063911438, -0.0035387142561376095, 0.02620011754333973, -0.0636296272277832, -0.08514466136693954, 0.07056129723787308, -0.20347268879413605, 0.06017006188631058, -0.17326220870018005, 0.48900336027145386, -0.2501838207244873, 0.23876190185546875, -0.024357853457331657, 0.071208655834198, 0.11508551239967346, -0.1953156739473343, 0.042203325778245926, -0.10124816745519638, 0.26213645935058594, 0.07949299365282059, 0.08746674656867981, -0.07810558378696442, -0.13923078775405884, 0.0596788227558136, 0.33974114060401917, -0.1995898336172104, -0.1290844976902008, -0.09711442142724991, -0.06547089666128159, -0.10624691843986511, 0.2073575258255005, 0.35623037815093994, 0.2953767478466034, 0.13935856521129608, 0.5149038434028625, 0.0771055519580841, 0.1494971513748169, -0.25199657678604126, 0.143881693482399, 0.028694648295640945, -0.2033509910106659, -0.06113404035568237, -0.09691644459962845, -0.13299736380577087, -0.2284998893737793, 0.5298207402229309, 0.18843680620193481, -0.04378373175859451, -0.07212836295366287, -0.1056223064661026, -0.4070442020893097, -0.13698938488960266, -0.003369460115209222, -0.021559052169322968, -0.15911535918712616, -0.19974029064178467, 0.3900649845600128, -0.175044447183609, -0.2246311455965042, 0.1717158406972885, 0.13623981177806854, 0.46257486939430237, -0.15687452256679535, -0.2329501509666443, 0.1639212965965271, 0.043277595192193985, -0.09028310328722, 0.08864017575979233, 0.08599009364843369, 0.39790502190589905, 0.45000824332237244, -0.10037288814783096, -0.1956561654806137, 0.04053106904029846, 0.08623917400836945, 0.06506337970495224, 0.23006252944469452, 0.48143714666366577, -0.022495167329907417, 0.41138267517089844, -0.012760255485773087, 0.14478711783885956, -0.392800897359848, -0.11072269827127457, -0.26958057284355164, -0.10978737473487854, 0.2999337911605835, 0.3856031000614166, -0.20250870287418365, -0.7505492568016052, -0.2044203132390976, -0.2655574381351471, 0.19112960994243622, 0.007809205912053585, 0.21789540350437164, -0.13020387291908264, -0.2237563133239746, -0.07237540185451508, -0.4191211760044098, -0.029989223927259445, -0.054657816886901855, -0.02725597843527794, 0.20502442121505737, -0.17966464161872864, -0.10892610996961594, 0.119053415954113, -0.0054979645647108555, 0.3167388141155243, 0.22340290248394012, -0.658018946647644, 0.3405662775039673, -0.041154831647872925, 0.17391088604927063, -0.04162914678454399, -0.1339779645204544, 0.41454535722732544, -0.4879591166973114, 0.034420646727085114, 0.2119375616312027, 0.21599222719669342, 0.08939868211746216, 0.09186277538537979, 0.15385515987873077, -0.0929383710026741, 0.32253485918045044, 0.05038372427225113, 0.9196417927742004, 0.08446955680847168, 0.28629955649375916, -0.07740700989961624, 0.028765100985765457, 0.258573055267334, -0.10738418251276016, 0.3119177222251892, 0.2791597843170166, 0.19783815741539001, -0.2146598994731903, 0.25886306166648865, 0.024155274033546448, -0.16358253359794617, -0.1606379747390747, -0.04817340523004532, -0.08503252267837524, -0.1581910252571106, 0.14324885606765747, -0.04314297065138817, 0.1371498852968216, 0.23636344075202942, 0.10825775563716888, 0.28433758020401, -0.19661694765090942, -0.07217367738485336, -0.08450492471456528, 0.2468005120754242, 0.09812728315591812, -0.5428898930549622, -0.08517458289861679, -0.24777255952358246, 0.0057318974286317825, -0.10686328262090683, 0.18003180623054504, -0.145300030708313, -0.05857330188155174, 0.17858152091503143, 0.10148237645626068, 0.629584550857544, 0.0048301429487764835, -0.13565382361412048, -0.02929341048002243, -0.3415820598602295, -0.11980192363262177, -0.04772649332880974, -0.050790853798389435, -0.2233603596687317, 0.1544106900691986, -0.16493088006973267, -0.24472971260547638, 0.028370605781674385, 0.07344968616962433, 0.42580434679985046, -0.26207679510116577, 0.16350838541984558, 0.06262464821338654, 0.07560086995363235, -0.1320585310459137, 0.3050740361213684, -0.05688147619366646, -0.01510595716536045, -0.2590179443359375, -0.12739421427249908, -0.2318468689918518, -0.10116394609212875, 0.20347324013710022, 0.14483363926410675, 0.1429019719362259, 0.05126608908176422, 0.28874507546424866, 0.06865439563989639, -0.25308141112327576, -0.3048671782016754, 0.1492016762495041, 0.0673600435256958, 0.047409188002347946, -0.11935147643089294, 0.007832403294742107, 0.25205016136169434, 0.37511903047561646, -0.18276618421077728, -0.23672780394554138, 0.027421995997428894, 0.05505235493183136, -0.009060654789209366, 0.41806188225746155, -0.018604204058647156, -0.3834148645401001, -0.14813604950904846, -0.17369496822357178, 0.3704393804073334, 0.22039233148097992, -0.20183713734149933, 0.24060192704200745, 0.026436205953359604, 0.027872653678059578, -0.18643514811992645, 0.26395004987716675, 0.8607462644577026, -0.2654823362827301, 0.21493497490882874, 0.16463011503219604, -0.3632868230342865, 0.8256195783615112, -0.3349284529685974, 0.11623943597078323, -0.1972406506538391, -0.1531568467617035, -0.10656321048736572, -0.20513755083084106, -0.11022277921438217, 0.2792853116989136, 0.01642005704343319, 0.48655015230178833, 0.11761005222797394, -0.07186063379049301, 0.054738398641347885, 0.04523930698633194, 0.14440445601940155, 0.07589896023273468, 0.017245158553123474, -0.041671667248010635, -0.31215932965278625, 0.1052948459982872, -0.04298358038067818, -0.03022037260234356, 0.16884185373783112, 0.00862771738320589, -0.019534198567271233, 0.0852716714143753, -0.12316042929887772, -0.2328205406665802, -0.17847958207130432, -0.1600668579339981, -0.09355782717466354, 0.6345367431640625, 0.15036094188690186, 0.20266519486904144, -0.34315332770347595, 0.2239542007446289, -0.11671338230371475, 0.006589153315871954, 0.13941790163516998, 0.13154490292072296, -0.14878930151462555, -0.2536194324493408, 0.07746215164661407, 0.14076091349124908, -0.18527312576770782, 0.1381831020116806, -0.35261499881744385, 0.24458006024360657, 0.14566826820373535, -0.17888197302818298, -0.15810544788837433, -0.05000457540154457, 0.27166804671287537, -0.011950456537306309, 0.0293890368193388, 0.11757803708314896, -0.2636386454105377, 0.06586083769798279, 0.17052578926086426, -0.3241088092327118, -0.11114434152841568, 0.1945013403892517, 0.42880961298942566, -0.17000041902065277, 0.33276262879371643, -0.1409083753824234, 0.01364651508629322, -0.3063538074493408, -0.017215371131896973, 0.0022659238893538713, -0.35333195328712463, 0.2071450650691986, -0.1468132883310318, -0.17268969118595123, -0.07956230640411377, 0.27915021777153015, -0.020724672824144363, -0.13074257969856262, 0.07040718197822571, -0.19949178397655487, -0.03294440731406212, 0.21636323630809784, -0.36288172006607056, 0.37883201241493225, 0.1354701966047287, -0.2997676432132721, -0.16346688568592072, 0.6286055445671082, -0.10366839915513992, 0.03220061957836151, -0.09443648159503937, 0.2511245310306549, -0.31916874647140503, 0.25144723057746887, 0.032867658883333206, 0.10788770020008087, -0.15011969208717346, -0.054023031145334244, -0.3074723184108734, -0.07368263602256775, -0.02049587294459343, 0.19990113377571106, -0.056204166263341904, 0.18954752385616302, 0.3652929663658142, 0.012428377754986286, -0.15790331363677979, 0.09461463242769241, 0.08299069851636887, -0.45267254114151, 0.24689173698425293, 0.21114909648895264, 0.5735400915145874, 0.12588591873645782, -0.5383150577545166, 0.4397484362125397, -0.178057461977005, 0.4297510087490082, -0.031019756570458412, 0.23638193309307098, 0.07115437090396881, -0.20824046432971954, -0.4042147696018219, -0.1488281488418579, 0.2778960168361664, -0.05593027174472809, -0.13062429428100586, 0.11222884058952332, -0.001071703853085637, -0.3463710844516754, 0.1391666829586029, 0.7270388007164001, -0.14684338867664337, 0.0861140638589859, 0.3228085935115814, 0.07822907716035843, -0.04849807545542717, -0.013145484030246735, 0.20043611526489258, -0.03568689525127411, -0.24990962445735931, 0.3352945148944855, 0.0642416775226593, -0.2685920000076294, 0.4162905812263489, -0.04604284465312958, -0.1537012904882431, -0.1983642727136612, 0.016141146421432495, 0.5277785062789917, -0.22103792428970337, -0.27661553025245667, -0.16278648376464844, 0.10337230563163757, 0.04046403244137764, 0.2024611383676529, -0.28555426001548767, 0.28458744287490845, 0.40571129322052, 0.19137780368328094, 0.03367361053824425, -0.14734002947807312, -0.3288440406322479, 0.44916000962257385, 0.11614297330379486, 0.08897798508405685, -0.020723728463053703, 0.2700836956501007, 0.1414738893508911, -0.2981548607349396, -0.3012732267379761, 0.21447394788265228, 0.20347176492214203, -0.028560729697346687, -0.2557726204395294, -0.007110936567187309, -0.12210892885923386, 0.34413352608680725, -0.005877129267901182, -0.4594334065914154, -0.08456079661846161, 0.2982454299926758, -0.18215326964855194, -0.06934524327516556, 0.32563063502311707, -0.03258553892374039, -0.12844383716583252, -0.2529568076133728, 0.16987298429012299, -0.17500033974647522, 0.14046573638916016, 0.42702439427375793, 0.015474761836230755, -0.2307579517364502, -0.12067126482725143, -0.41866129636764526, -0.16680286824703217, 0.31441694498062134, 0.168099045753479, -0.1549813449382782, 0.1549418419599533, 0.21399559080600739, 0.5466293692588806, 0.4048592746257782, -0.014750463888049126, 0.042888473719358444, 0.17103742063045502, 0.0891629010438919, 0.18247604370117188, -0.40492743253707886, 0.4496496915817261, 0.22695641219615936, 0.20727470517158508, -0.12108620256185532, -0.054149072617292404, -0.28801846504211426, 0.06115683913230896, -0.33778923749923706, -0.23572008311748505, 0.040466852486133575, 0.19493165612220764, -0.0027504591271281242, -0.5021933913230896, 0.5036775469779968, 0.048906922340393066, 0.26145684719085693, -0.3123842477798462, -0.1567743569612503, -0.24235135316848755, -0.033842459321022034, -0.09236165136098862, 0.14799727499485016, 0.05213889852166176, 0.25733476877212524, 0.09680451452732086, 0.5066361427307129, -0.43599414825439453, 0.26684021949768066, -0.31127724051475525, 0.295091450214386, -0.2862004339694977, -0.1277659386396408, -0.33605319261550903, 0.4263559579849243, 0.00009585925727151334, -0.21760208904743195, 0.4132006764411926, -0.3228464424610138, -0.2708883285522461, 0.6675412058830261, -0.14534345269203186, 0.3749164938926697, 0.253848671913147, 0.29591962695121765, 0.25538724660873413, 0.18319232761859894, 0.049368783831596375, -0.10623057931661606, -0.09900526702404022, 0.06721939146518707, -0.3648918867111206, -0.09098534286022186, -0.04939308762550354, 0.1306523233652115, -0.2727121412754059, 0.5207659602165222, 0.013437936082482338, 0.17826996743679047, -0.06946709007024765, 0.31512144207954407, 0.12133917957544327, -0.23953628540039062, 0.0684809684753418, 0.35222336649894714, 0.41451647877693176, 0.3370569348335266, -0.24789947271347046, -0.2640332579612732, -0.27731913328170776, 0.08656571805477142, 0.4922344982624054, -0.052893877029418945, 0.08048021048307419, 0.04538026079535484, 0.2191266417503357, 0.30041322112083435, -0.1477043330669403, -0.3465878367424011, -0.020759722217917442, 0.27008241415023804, -0.34740063548088074, 0.010016722604632378, 0.3292180895805359, 0.1928596943616867, -0.2000579535961151, -0.12346527725458145, 0.22325915098190308, 0.24612124264240265, -0.21741269528865814, -0.28939056396484375, -0.39390695095062256 ]
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.383767694234848, 0.21080820262432098, -0.09517177194356918, 0.10442382842302322, -0.09206399321556091, -0.0907709077000618, -0.22576779127120972, 0.6605114340782166, -0.041867945343256, 0.2795562744140625, -0.3325554430484772, 0.06468448787927628, -0.2607530355453491, 0.5805526971817017, 0.42009925842285156, -0.16128435730934143, -0.11435919255018234, 0.44307005405426025, -0.07253659516572952, 0.032093774527311325, -0.14584526419639587, 0.23554620146751404, -0.0852554589509964, 0.08455365151166916, 0.3158823549747467, -0.2681671977043152, 0.16130056977272034, 0.00037703957059420645, -0.41300514340400696, -0.22564999759197235, 0.10464899241924286, 0.23187720775604248, 0.2737070620059967, -0.31514182686805725, -0.00012479780707508326, -0.17675454914569855, -0.04924187809228897, -0.1076972559094429, -0.10483403503894806, 0.02906111441552639, -0.031662531197071075, -0.13450977206230164, 0.14484116435050964, -0.014608149416744709, -0.06617429107427597, -0.27870261669158936, 0.1802225112915039, -0.0877978503704071, 0.28284120559692383, 0.3137017488479614, 0.034750454127788544, 0.05758104473352432, -0.17858192324638367, 0.1744213104248047, 0.04548447206616402, -0.15722796320915222, -0.14960817992687225, 0.07105235010385513, 0.240963414311409, 0.17397397756576538, 0.13714613020420074, 0.16288460791110992, 0.1711561530828476, 0.1461559683084488, 0.10413266718387604, -0.008415650576353073, 0.2902478873729706, -0.6779156923294067, -0.134667307138443, 0.7349891662597656, 0.2752511203289032, 0.11956518888473511, -0.14532434940338135, -0.17514754831790924, 0.12117017805576324, -0.4858596920967102, -0.10156306624412537, 0.5020629167556763, -0.5056435465812683, 0.005868871696293354, -0.5925877094268799, -0.5954383611679077, -0.22894823551177979, 0.19649964570999146, -0.015454051084816456, -0.07864271104335785, 0.07638153433799744, 0.08080477267503738, 0.34395357966423035, 0.1932835429906845, 0.15541508793830872, 0.12686023116111755, -0.11997867375612259, 0.13051524758338928, -0.26350221037864685, -0.4542860984802246, -0.31518426537513733, -0.10787829756736755, 0.29481175541877747, 0.10536558926105499, -0.13060525059700012, 0.031169747933745384, 0.03039291501045227, -0.10635916143655777, 0.5197604894638062, 0.04787827283143997, 0.24578765034675598, 0.23746387660503387, 0.12655331194400787, 0.03722864389419556, 0.09753493219614029, 0.12589891254901886, -0.02229764685034752, -0.02199574001133442, -0.6431500911712646, -0.06110676750540733, -0.05613911896944046, -0.4703980088233948, 0.10247617959976196, -0.2125985473394394, -0.18481074273586273, -0.0741306021809578, -0.07658211141824722, 0.21191108226776123, 0.03755125403404236, 0.06745629757642746, -0.2454400360584259, 0.28340256214141846, -0.2661137580871582, -0.7744129300117493, -0.1252468228340149, -0.007906661368906498, -0.06795241683721542, 0.061968524008989334, 0.337536096572876, 0.08440294861793518, 0.14902541041374207, -0.1850014328956604, 0.007380994502454996, 0.026368260383605957, 0.3335588276386261, -0.016618678346276283, -0.009726121090352535, 0.3612702786922455, 0.0033705595415085554, 0.16384147107601166, -0.1632595956325531, 0.25856322050094604, -0.4758757948875427, 0.24903571605682373, -0.09428878873586655, -0.37480828166007996, 0.08776365965604782, 0.024296844378113747, -0.04305572062730789, 0.05589569732546806, -0.08282352238893509, 0.27867940068244934, -0.07650889456272125, -0.2345644235610962, -0.04447336122393608, -0.17472167313098907, -0.22333893179893494, -0.06687571108341217, 0.28558236360549927, -0.07807904481887817, -0.25227051973342896, -0.18715117871761322, -0.07461447268724442, -0.17859290540218353, 0.21087026596069336, 0.36801257729530334, -0.2529716193675995, 0.15839684009552002, -0.11551808565855026, 0.02183663845062256, 0.6580266952514648, 0.07899989187717438, -0.2337389439344406, 0.49083375930786133, -0.052650753408670425, -0.313802033662796, -0.10154268145561218, 0.356397420167923, 0.1839401125907898, -0.05893927067518234, -0.33912187814712524, 0.7834396362304688, -0.13798092305660248, -0.2503325939178467, -0.07841286063194275, -0.5916567444801331, 0.30745384097099304, 0.17830993235111237, 0.2205726057291031, 0.13420158624649048, -0.049559108912944794, -0.12027867138385773, 0.2245158553123474, 0.03003081865608692, 0.011263405904173851, -0.008811049163341522, 0.012379265390336514, -0.3818088471889496, -0.1711745709180832, -0.1530349850654602, -0.4459685683250427, 0.18465423583984375, -0.65365070104599, -0.1945619136095047, 0.4189758598804474, -0.08657117933034897, 0.007398194167762995, -0.234100341796875, 0.2203126698732376, -0.41218656301498413, -0.1198645830154419, -0.17909696698188782, 0.18353435397148132, 0.1684640645980835, -0.3527590334415436, -0.11952640116214752, -0.14148776233196259, 0.16724909842014313, -0.18173269927501678, -0.12166540324687958, 0.18362504243850708, 0.21012526750564575, 0.22292032837867737, -0.001360998721793294, -0.15466134250164032, 0.06019644811749458, 0.1264699101448059, 0.14643558859825134, -0.15696214139461517, 0.0748496726155281, 0.13805462419986725, 0.06022327393293381, 0.14683710038661957, -0.06213404983282089, -0.010638588108122349, 0.027823520824313164, -0.1594228744506836, 0.035975612699985504, -0.18416203558444977, 0.4670122265815735, -0.29410073161125183, 0.22730083763599396, -0.043211229145526886, 0.04277632012963295, 0.06777938455343246, -0.1987798660993576, 0.0702119842171669, -0.03145688772201538, 0.29936692118644714, 0.07511258870363235, 0.0893668532371521, -0.06842157989740372, -0.15160705149173737, 0.09160085767507553, 0.30926942825317383, -0.18391729891300201, -0.1773817539215088, -0.036572180688381195, -0.0742197334766388, -0.07073231041431427, 0.2380765974521637, 0.4090534448623657, 0.32392704486846924, 0.14571839570999146, 0.5053697228431702, 0.0464160293340683, 0.15501151978969574, -0.24613256752490997, 0.12225408107042313, -0.0016356870764866471, -0.2593739330768585, -0.07849855720996857, -0.1056862473487854, -0.06836164742708206, -0.264427125453949, 0.48361170291900635, 0.12114652246236801, -0.05166938528418541, -0.010891733691096306, -0.09186671674251556, -0.40398699045181274, -0.19540074467658997, -0.005984146147966385, -0.06681803613901138, -0.21759159862995148, -0.13852791488170624, 0.3773465156555176, -0.1401190161705017, -0.1859869360923767, 0.14194916188716888, 0.20799967646598816, 0.46113845705986023, -0.22855742275714874, -0.33331456780433655, 0.1294853538274765, 0.06488841772079468, -0.08235536515712738, 0.08761575073003769, 0.12100821733474731, 0.323212593793869, 0.4368118345737457, -0.014864536002278328, -0.11112934350967407, -0.02202867902815342, -0.031247923150658607, 0.031064622104167938, 0.21059180796146393, 0.45115435123443604, 0.003183430526405573, 0.35743770003318787, -0.020783880725502968, 0.10396559536457062, -0.3731696307659149, -0.20484009385108948, -0.20446887612342834, -0.13326527178287506, 0.31956496834754944, 0.37017059326171875, -0.27768945693969727, -0.7098517417907715, -0.2263505607843399, -0.2926570773124695, 0.20921675860881805, 0.005404277238994837, 0.1874394714832306, -0.0258354302495718, -0.22577404975891113, -0.07126368582248688, -0.34632647037506104, -0.03025434911251068, -0.05382765084505081, -0.06614352017641068, 0.23064862191677094, -0.17364192008972168, -0.07740569114685059, 0.14234402775764465, 0.009330322965979576, 0.278638631105423, 0.2440710961818695, -0.731285035610199, 0.38782575726509094, -0.014921543188393116, 0.17931805551052094, 0.012404321692883968, -0.03167053312063217, 0.39068472385406494, -0.4956599175930023, 0.04619070887565613, 0.222655788064003, 0.18015457689762115, 0.04736125096678734, 0.1463141292333603, 0.2642141282558441, -0.05056276172399521, 0.2984306216239929, 0.004213985987007618, 0.9026044011116028, -0.021901840344071388, 0.27702444791793823, -0.027903348207473755, 0.11596260219812393, 0.3132762312889099, -0.11794076859951019, 0.29585063457489014, 0.3645721971988678, 0.159880593419075, -0.23357687890529633, 0.2932390570640564, 0.12394203990697861, -0.25895440578460693, -0.21445365250110626, -0.06962619721889496, -0.05670316144824028, -0.12731662392616272, 0.15412044525146484, -0.009760919958353043, 0.04219162091612816, 0.21849818527698517, 0.07201316952705383, 0.3293573558330536, -0.19149772822856903, -0.09619221836328506, 0.03225705027580261, 0.26238757371902466, 0.09221526980400085, -0.5549852848052979, -0.06914906948804855, -0.255325585603714, -0.004598760511726141, -0.09895461052656174, 0.031761739403009415, -0.12044000625610352, -0.008269299753010273, 0.23186004161834717, 0.16834776103496552, 0.5909478664398193, 0.06145479157567024, -0.2426663339138031, -0.08832858502864838, -0.329590767621994, -0.022791776806116104, -0.02945113554596901, 0.05244084820151329, -0.18578770756721497, 0.08472447097301483, -0.16251517832279205, -0.27760785818099976, -0.0038194116204977036, 0.1067298874258995, 0.3743974268436432, -0.17175745964050293, 0.0683402493596077, 0.13193346560001373, 0.08202200382947922, -0.15530195832252502, 0.2775469720363617, -0.07118672877550125, 0.016129489988088608, -0.2766103148460388, -0.1321994662284851, -0.19088530540466309, -0.052037592977285385, 0.2010483741760254, 0.06118815019726753, 0.14208096265792847, 0.045042868703603745, 0.2517428994178772, 0.04565301537513733, -0.1849997490644455, -0.25965070724487305, 0.2126798778772354, 0.018156753852963448, 0.051940225064754486, -0.09696292877197266, 0.032650548964738846, 0.2234615832567215, 0.3854714035987854, -0.15902714431285858, -0.18184486031532288, -0.008987083099782467, 0.03725161403417587, -0.017068391665816307, 0.3170141279697418, -0.005307117011398077, -0.39978933334350586, -0.22671818733215332, -0.22699499130249023, 0.44948387145996094, 0.16347181797027588, -0.14134225249290466, 0.32207393646240234, 0.06557188928127289, 0.049974024295806885, -0.24215556681156158, 0.2685818672180176, 0.9881724119186401, -0.28154677152633667, 0.2548355758190155, 0.12802502512931824, -0.4641485810279846, 0.9363813996315002, -0.37212690711021423, 0.09347165375947952, -0.24081315100193024, -0.12615033984184265, -0.1237550750374794, -0.1851520985364914, -0.07795268297195435, 0.25593769550323486, 0.03021971322596073, 0.4426487982273102, 0.16115108132362366, -0.05133702605962753, 0.056125398725271225, 0.056033313274383545, 0.1520567685365677, 0.04395751282572746, -0.028106512501835823, -0.04434948042035103, -0.27461355924606323, 0.11114171147346497, -0.05412055552005768, -0.10220039635896683, 0.15297575294971466, -0.0006276132771745324, -0.01872178539633751, 0.04443077743053436, -0.01272631250321865, -0.2662278711795807, -0.062379419803619385, -0.21859696507453918, 0.014377989806234837, 0.6153013110160828, 0.12692001461982727, 0.17623989284038544, -0.38006576895713806, 0.22300131618976593, -0.12175235897302628, 0.015368902124464512, 0.15901461243629456, 0.10441336780786514, -0.14016537368297577, -0.20978671312332153, 0.12962719798088074, 0.08714009076356888, -0.22260650992393494, 0.05137248709797859, -0.3873909115791321, 0.27170681953430176, 0.24841424822807312, -0.16532215476036072, -0.10951586812734604, -0.03475793078541756, 0.28075480461120605, -0.007119139190763235, 0.027663579210639, 0.17074479162693024, -0.2003898024559021, 0.0062113055028021336, 0.12129617482423782, -0.29660508036613464, -0.17841313779354095, 0.2170599102973938, 0.4410693943500519, -0.29568764567375183, 0.23113340139389038, -0.1447518765926361, -0.04064710810780525, -0.23978464305400848, 0.01048294734209776, -0.02992590144276619, -0.40083661675453186, 0.1358231157064438, -0.11067000776529312, -0.18302330374717712, -0.02458576112985611, 0.2750993072986603, -0.09945840388536453, -0.09417867660522461, 0.0773351863026619, -0.21170002222061157, -0.07177191227674484, 0.2115342915058136, -0.49583983421325684, 0.3922187387943268, 0.1611790955066681, -0.3440655767917633, -0.08004070818424225, 0.5380372405052185, -0.08751438558101654, 0.11438246816396713, -0.03271588683128357, 0.23921853303909302, -0.330136239528656, 0.23760494589805603, -0.03354345262050629, 0.07139554619789124, -0.17800438404083252, -0.02154526300728321, -0.31897062063217163, -0.04472768306732178, -0.08305297791957855, 0.22085438668727875, -0.02009202539920807, 0.1732335239648819, 0.29793936014175415, -0.052675217390060425, -0.18396995961666107, 0.10122046619653702, 0.10391981899738312, -0.3889254033565521, 0.2401883453130722, 0.1574954241514206, 0.5783491730690002, 0.10978449881076813, -0.591311514377594, 0.5145001411437988, -0.16770470142364502, 0.4666445255279541, 0.04726174473762512, 0.15126097202301025, -0.01276986114680767, -0.2139866054058075, -0.45928189158439636, -0.12761616706848145, 0.28906720876693726, -0.07644418627023697, -0.0014025793643668294, 0.11418091505765915, 0.0653453916311264, -0.27806466817855835, 0.22555679082870483, 0.7534221410751343, -0.13397768139839172, 0.06208566576242447, 0.36737528443336487, 0.06493034958839417, -0.009342017583549023, -0.05717494338750839, 0.08908061683177948, -0.013878284953534603, -0.2894071340560913, 0.3129281997680664, 0.057532332837581635, -0.30343738198280334, 0.411607950925827, -0.11162342131137848, -0.0943763330578804, -0.15300026535987854, 0.042537812143564224, 0.5735348463058472, -0.2732243835926056, -0.3262374997138977, -0.1394718736410141, 0.1508861929178238, 0.022196967154741287, 0.22716636955738068, -0.36910727620124817, 0.21775704622268677, 0.44594526290893555, 0.23703280091285706, 0.005874274298548698, -0.134482279419899, -0.3252525329589844, 0.5055997967720032, 0.21827536821365356, 0.04067277908325195, -0.06967554986476898, 0.30113670229911804, 0.1572868824005127, -0.2912783622741699, -0.1980878859758377, 0.2419241964817047, 0.19745156168937683, 0.016668234020471573, -0.20285376906394958, -0.04968122020363808, -0.18268369138240814, 0.3123767375946045, -0.10107237845659256, -0.45746782422065735, -0.1391308456659317, 0.3240172266960144, -0.12361610680818558, -0.15699081122875214, 0.33072158694267273, -0.041963130235672, -0.10212915390729904, -0.25568509101867676, 0.1795627623796463, -0.17700214684009552, 0.09583064168691635, 0.4640854001045227, -0.04593624547123909, -0.2596225142478943, -0.025790128856897354, -0.3653517961502075, -0.20953921973705292, 0.2498319447040558, 0.20348523557186127, -0.1096157357096672, 0.15573115646839142, 0.2807762026786804, 0.5663049817085266, 0.39423972368240356, -0.04723486304283142, 0.032469991594552994, 0.28812262415885925, 0.08073320984840393, 0.20346634089946747, -0.46216675639152527, 0.4283207356929779, 0.22408849000930786, 0.21491459012031555, -0.09706760942935944, -0.06315462291240692, -0.20140071213245392, -0.016357168555259705, -0.374848335981369, -0.2838504910469055, 0.012309382669627666, 0.14592717587947845, -0.011200827546417713, -0.47725778818130493, 0.5015830993652344, 0.1012592762708664, 0.28487759828567505, -0.33605706691741943, -0.18931493163108826, -0.27212265133857727, -0.026116911321878433, -0.0678437352180481, 0.2251153588294983, 0.06025879830121994, 0.22846058011054993, 0.13238880038261414, 0.5546501874923706, -0.48269540071487427, 0.24118702113628387, -0.24266131222248077, 0.2789439260959625, -0.25555548071861267, -0.10027633607387543, -0.30281731486320496, 0.40926262736320496, -0.006900901440531015, -0.19170930981636047, 0.3745425045490265, -0.33088263869285583, -0.2955682575702667, 0.6019467115402222, -0.10759936273097992, 0.3654634952545166, 0.2640298008918762, 0.30258801579475403, 0.21526961028575897, 0.113311767578125, 0.11214602738618851, -0.16226179897785187, -0.0897887647151947, 0.029114307835698128, -0.3479006290435791, -0.11574755609035492, -0.044137999415397644, 0.15113143622875214, -0.29180771112442017, 0.5623229146003723, -0.030791161581873894, 0.18984943628311157, -0.0388917475938797, 0.3846496343612671, 0.030289500951766968, -0.2880813181400299, 0.048830773681402206, 0.35432901978492737, 0.3404437005519867, 0.35595887899398804, -0.20899684727191925, -0.29187285900115967, -0.2775610089302063, 0.10475977510213852, 0.488698810338974, -0.04193323478102684, 0.11184030026197433, 0.14542147517204285, 0.1829407811164856, 0.32274696230888367, -0.11104797571897507, -0.41892537474632263, -0.028390858322381973, 0.26604753732681274, -0.3359091579914093, 0.06080777570605278, 0.32845035195350647, 0.1726679801940918, -0.21167759597301483, -0.13201136887073517, 0.1879141628742218, 0.26397690176963806, -0.1589774787425995, -0.19819611310958862, -0.4046052098274231 ]
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.48872631788253784, 0.20523269474506378, -0.09393583238124847, 0.12609398365020752, -0.04188825935125351, -0.10875630378723145, -0.2285953313112259, 0.6617494821548462, 0.007649184670299292, 0.26699012517929077, -0.27146732807159424, 0.04453861713409424, -0.20828084647655487, 0.5945588946342468, 0.4444688856601715, -0.06466609239578247, -0.12714225053787231, 0.4709188938140869, -0.13610753417015076, -0.006954331882297993, -0.1744408905506134, 0.15642809867858887, -0.04274948313832283, 0.03991762176156044, 0.28615549206733704, -0.24353525042533875, 0.18146345019340515, 0.0041279965080320835, -0.35673704743385315, -0.28350505232810974, 0.08663321286439896, 0.27570289373397827, 0.21669799089431763, -0.3432946503162384, -0.00012686208356171846, -0.10546577721834183, 0.0004294826358091086, -0.13285185396671295, -0.21472109854221344, 0.09278271347284317, -0.07240545004606247, -0.15838219225406647, 0.16093303263187408, 0.010902594774961472, -0.08431439101696014, -0.3348851501941681, 0.26624947786331177, -0.16320237517356873, 0.37742555141448975, 0.4012565314769745, -0.004116507712751627, 0.05484354496002197, -0.22727838158607483, 0.1745745986700058, 0.017551694065332413, -0.10254964232444763, -0.1552436798810959, 0.055835362523794174, 0.19009150564670563, 0.07636890560388565, 0.039382874965667725, 0.09632338583469391, 0.24456405639648438, 0.21815001964569092, 0.11716930568218231, -0.00011775489838328212, 0.3439489006996155, -0.7146775126457214, -0.14678947627544403, 0.7247011661529541, 0.2575414478778839, 0.08351168036460876, -0.12203935533761978, -0.2418498694896698, 0.13808493316173553, -0.42628565430641174, -0.04252725467085838, 0.4883488416671753, -0.6017987728118896, 0.02793988399207592, -0.5949164032936096, -0.5436315536499023, -0.19212214648723602, 0.21895669400691986, -0.027263717725872993, -0.060662947595119476, 0.04578379914164543, 0.05541960522532463, 0.2680761218070984, 0.14333854615688324, 0.15595516562461853, 0.0705500915646553, -0.0610099621117115, 0.14892683923244476, -0.19998766481876373, -0.4450474679470062, -0.2982938587665558, -0.09948331117630005, 0.3308861255645752, 0.11282568424940109, -0.029502233490347862, 0.046254437416791916, 0.0011220901506021619, -0.08760560303926468, 0.4969104528427124, 0.07458972930908203, 0.235341876745224, 0.2745424509048462, 0.11462865769863129, 0.11126528680324554, 0.08984154462814331, 0.1389094442129135, 0.02435244619846344, -0.06880051642656326, -0.6210039854049683, 0.0036770666483789682, 0.07708839327096939, -0.3594805896282196, -0.030612021684646606, -0.2182725965976715, -0.07736514508724213, -0.1010039672255516, -0.14457310736179352, 0.18836896121501923, 0.06246168911457062, 0.07965801656246185, -0.3489791452884674, 0.3237813711166382, -0.29186704754829407, -0.759426474571228, -0.14193767309188843, -0.030981453135609627, -0.03222576901316643, 0.13054914772510529, 0.4035457670688629, 0.17774321138858795, 0.16234277188777924, -0.15462249517440796, -0.00817760918289423, 0.022877736017107964, 0.35013726353645325, -0.04478586092591286, 0.05216306820511818, 0.39549019932746887, 0.07082560658454895, 0.11984383314847946, -0.09919767081737518, 0.27622419595718384, -0.47673869132995605, 0.21214336156845093, -0.08146388828754425, -0.3039792776107788, 0.20001493394374847, 0.031273409724235535, -0.06117284297943115, 0.061908163130283356, -0.0824497640132904, 0.29587915539741516, -0.021802768111228943, -0.26173868775367737, -0.07801428437232971, -0.1849837303161621, -0.2660313546657562, -0.019463470205664635, 0.28153496980667114, 0.05215228348970413, -0.28769651055336, -0.19438020884990692, -0.04265572503209114, -0.19538000226020813, 0.24094341695308685, 0.33532869815826416, -0.22215397655963898, 0.22082377970218658, -0.17772004008293152, 0.07270497828722, 0.6215860247612, 0.0408351793885231, -0.21532747149467468, 0.5189723968505859, -0.12525935471057892, -0.2580467462539673, 0.009943372569978237, 0.2915627062320709, 0.20155346393585205, -0.09758131206035614, -0.3081534504890442, 0.7577164769172668, -0.13818874955177307, -0.20855781435966492, -0.0468730702996254, -0.5798709392547607, 0.21783536672592163, 0.13115012645721436, 0.16776174306869507, 0.1886199712753296, -0.02184639684855938, -0.17703643441200256, 0.2302626222372055, 0.07604093104600906, 0.021076427772641182, -0.002704039914533496, -0.09272647649049759, -0.40675824880599976, -0.23144367337226868, -0.1624525785446167, -0.5866487622261047, 0.19412975013256073, -0.5578169822692871, -0.2835442125797272, 0.38480666279792786, -0.1371850222349167, -0.020314497873187065, -0.25992366671562195, 0.1540473997592926, -0.3446825444698334, -0.10267788171768188, -0.045807551592588425, 0.152664914727211, 0.13154827058315277, -0.36602917313575745, -0.062235116958618164, -0.06041048467159271, 0.22070486843585968, -0.1313728392124176, -0.17699015140533447, 0.22607773542404175, 0.1880296915769577, 0.2558661997318268, -0.07255247980356216, -0.10995040088891983, 0.04677901789546013, 0.15136322379112244, 0.17341002821922302, -0.02625894546508789, 0.09367141872644424, 0.208229199051857, -0.00018485865439288318, 0.059257421642541885, -0.019603358581662178, -0.029916172847151756, 0.0918957069516182, -0.22086094319820404, 0.004964899271726608, -0.2566198408603668, 0.46210891008377075, -0.27039507031440735, 0.2382684350013733, -0.03103572502732277, 0.02200249582529068, 0.13742712140083313, -0.234087273478508, 0.023477790877223015, -0.14729291200637817, 0.24135877192020416, 0.12380543351173401, 0.1553206741809845, -0.002300232881680131, -0.13337141275405884, 0.08550354838371277, 0.4147881269454956, -0.21113677322864532, -0.11270468682050705, -0.013723691925406456, -0.05576217174530029, -0.09847791492938995, 0.1594364047050476, 0.4292444884777069, 0.37105968594551086, 0.17351557314395905, 0.5662350058555603, 0.04832695424556732, 0.14304518699645996, -0.3168494403362274, 0.11121582984924316, -0.01178798545151949, -0.2532929480075836, 0.03802405297756195, -0.1188153475522995, -0.12132637947797775, -0.2932133674621582, 0.47361046075820923, 0.15290582180023193, -0.06826826184988022, -0.09722156077623367, -0.14104411005973816, -0.40169593691825867, -0.1507290005683899, -0.07152464240789413, 0.02422015368938446, -0.1566213220357895, -0.20053793489933014, 0.36914002895355225, -0.1295187622308731, -0.23827281594276428, 0.17086948454380035, 0.129008948802948, 0.49115437269210815, -0.20716288685798645, -0.32138845324516296, 0.10329736769199371, 0.08763343095779419, -0.07757280021905899, 0.060663823038339615, 0.15471765398979187, 0.32833459973335266, 0.4007338583469391, -0.11201102286577225, -0.1641482412815094, 0.014115857891738415, 0.1065448746085167, 0.05875689163804054, 0.24431447684764862, 0.4849342107772827, -0.06010286509990692, 0.45569783449172974, 0.05521198362112045, 0.12882357835769653, -0.4062312841415405, -0.047339342534542084, -0.24281606078147888, -0.11480892449617386, 0.2974049746990204, 0.3979502320289612, -0.2779553532600403, -0.7279379963874817, -0.19251200556755066, -0.31078144907951355, 0.19715480506420135, 0.03620227426290512, 0.16607041656970978, -0.02098936401307583, -0.1801549792289734, -0.16894981265068054, -0.4117166996002197, 0.03027237206697464, -0.04246796667575836, -0.05584181845188141, 0.2495705634355545, -0.1656605303287506, -0.08188852667808533, 0.09859100729227066, -0.0002206591743743047, 0.18288305401802063, 0.3064819574356079, -0.7142480611801147, 0.3078976273536682, -0.08370837569236755, 0.17056363821029663, -0.062197282910346985, -0.0692712813615799, 0.42847949266433716, -0.470417857170105, 0.02723068743944168, 0.20992042124271393, 0.27423709630966187, 0.11536211520433426, 0.0321400947868824, 0.13454985618591309, -0.04403025656938553, 0.30969807505607605, 0.03854621574282646, 0.8778754472732544, 0.08455245941877365, 0.2853828966617584, 0.005380799062550068, 0.08231596648693085, 0.3701724410057068, -0.11148320138454437, 0.34477657079696655, 0.3482343256473541, 0.19521687924861908, -0.19442392885684967, 0.3263474702835083, 0.07748257368803024, -0.1878174990415573, -0.15260039269924164, -0.010180692188441753, -0.06751272082328796, -0.18573500216007233, 0.198567196726799, -0.05887485668063164, 0.06811001896858215, 0.22736525535583496, 0.10452167689800262, 0.2960304319858551, -0.1768452376127243, -0.1366891711950302, 0.027859246358275414, 0.24566051363945007, 0.12181346118450165, -0.573131263256073, -0.008216681890189648, -0.25682902336120605, -0.0231647752225399, -0.11844111979007721, 0.09144245833158493, -0.20681826770305634, -0.08564944565296173, 0.22341132164001465, 0.207845538854599, 0.606739342212677, 0.030089665204286575, -0.11003249138593674, -0.11664973944425583, -0.2653927206993103, -0.045731328427791595, -0.04471355304121971, 0.010301490314304829, -0.17168225347995758, 0.10646292567253113, -0.04704347252845764, -0.288446843624115, -0.0024444223381578922, 0.07867716252803802, 0.37712594866752625, -0.16410066187381744, 0.08014318346977234, 0.1451832503080368, 0.06642715632915497, -0.14320512115955353, 0.2743828296661377, 0.02221989817917347, -0.05825274437665939, -0.28414398431777954, -0.17469006776809692, -0.21786507964134216, -0.07642804831266403, 0.18686255812644958, 0.07682162523269653, 0.08335418999195099, 0.0766531229019165, 0.22591909766197205, 0.07862076163291931, -0.2055819034576416, -0.20467257499694824, 0.2767519950866699, -0.0017926498549059033, -0.09849759191274643, -0.13953448832035065, -0.028124775737524033, 0.1536063551902771, 0.4546097218990326, -0.19220659136772156, -0.28281170129776, -0.016730936244130135, 0.0893428698182106, -0.02233763411641121, 0.42927998304367065, 0.03981449827551842, -0.4462183713912964, -0.21012157201766968, -0.25894951820373535, 0.3732421100139618, 0.1945982277393341, -0.20554040372371674, 0.2144985944032669, 0.0013385037891566753, -0.02826104313135147, -0.24728772044181824, 0.2591443359851837, 0.91184002161026, -0.23268350958824158, 0.26717033982276917, 0.1472860872745514, -0.37790194153785706, 0.8221448659896851, -0.4244488477706909, 0.07802554965019226, -0.1748117208480835, -0.15138742327690125, -0.13845296204090118, -0.2045549899339676, -0.10359910130500793, 0.36863845586776733, 0.03928040713071823, 0.4770529866218567, 0.0891527310013771, -0.014478023163974285, 0.07208112627267838, 0.06884895265102386, 0.0940321832895279, 0.033112045377492905, 0.06108253076672554, -0.06438736617565155, -0.32213863730430603, 0.10720109194517136, -0.021354161202907562, -0.07482240349054337, 0.18518544733524323, -0.05548032000660896, -0.029084276407957077, 0.05745972320437431, -0.15754278004169464, -0.28272733092308044, -0.20143809914588928, -0.23881332576274872, -0.041556648910045624, 0.708537757396698, 0.13107290863990784, 0.14032205939292908, -0.35975348949432373, 0.21764370799064636, -0.13326404988765717, 0.0653969943523407, 0.07041838020086288, 0.052559565752744675, -0.10544753074645996, -0.16836509108543396, 0.14066971838474274, 0.012031657621264458, -0.16349810361862183, 0.1378880739212036, -0.3886713683605194, 0.25214412808418274, 0.15313434600830078, -0.21981734037399292, -0.1275339424610138, -0.12290046364068985, 0.32953909039497375, -0.004690481815487146, 0.009553851559758186, 0.09613238275051117, -0.16931813955307007, 0.013012331910431385, 0.14826981723308563, -0.32367467880249023, -0.1380089819431305, 0.2522522211074829, 0.38616666197776794, -0.22822296619415283, 0.30952975153923035, -0.1906154304742813, -0.05040573328733444, -0.29352667927742004, 0.03222960606217384, -0.007193634752184153, -0.37250974774360657, 0.14852480590343475, -0.046140365302562714, -0.19848938286304474, -0.0560622364282608, 0.20994265377521515, -0.07735840231180191, -0.12132163345813751, 0.08208851516246796, -0.19971774518489838, -0.024431370198726654, 0.19568079710006714, -0.4095669686794281, 0.40329405665397644, 0.19597949087619781, -0.3230585753917694, -0.11458451300859451, 0.5872229337692261, -0.08532118052244186, 0.03327949717640877, 0.016955994069576263, 0.2204614281654358, -0.26706451177597046, 0.28230440616607666, 0.02935587242245674, 0.10788007080554962, -0.17354321479797363, -0.09706903994083405, -0.29279860854148865, -0.05510383099317551, -0.023579489439725876, 0.2111918032169342, -0.042167339473962784, 0.15566153824329376, 0.2824375331401825, -0.07815943658351898, -0.1579776108264923, 0.004493518732488155, 0.10345759242773056, -0.42418909072875977, 0.24486009776592255, 0.19579873979091644, 0.5968701243400574, 0.21483461558818817, -0.44981494545936584, 0.49099522829055786, -0.20029830932617188, 0.4467797875404358, -0.012262010015547276, 0.17215627431869507, 0.011522465385496616, -0.19017846882343292, -0.4182383418083191, -0.10430464893579483, 0.3986244797706604, 0.03690550476312637, -0.12611249089241028, 0.08974813669919968, 0.04163321107625961, -0.3117082118988037, 0.15283077955245972, 0.720867931842804, -0.16707798838615417, 0.027736568823456764, 0.30302104353904724, 0.07332821935415268, -0.011628570035099983, -0.08673065900802612, 0.20755232870578766, -0.032828688621520996, -0.21756386756896973, 0.32945606112480164, -0.0068044643849134445, -0.29576611518859863, 0.4166150987148285, -0.06366678327322006, -0.09695453196763992, -0.11668918281793594, 0.026330817490816116, 0.5689674615859985, -0.22246748208999634, -0.280253529548645, -0.1525285243988037, 0.14862971007823944, 0.043191444128751755, 0.34517306089401245, -0.31222546100616455, 0.24791033565998077, 0.4005114436149597, 0.2087186723947525, -0.026935042813420296, -0.24414174258708954, -0.2748733162879944, 0.5230002999305725, 0.1104307547211647, 0.03366665169596672, -0.00031045597279444337, 0.2438366413116455, 0.14016211032867432, -0.24168622493743896, -0.31401315331459045, 0.13846994936466217, 0.1926986575126648, 0.0025469083338975906, -0.2052241712808609, -0.028044892475008965, -0.095604307949543, 0.32129839062690735, -0.11872833222150803, -0.4251152276992798, -0.13087670505046844, 0.3025723993778229, -0.16115666925907135, -0.08120138198137283, 0.3739449083805084, -0.07128505408763885, -0.1348884552717209, -0.26020896434783936, 0.18980491161346436, -0.18483901023864746, 0.17203927040100098, 0.41149401664733887, -0.04625798016786575, -0.22668378055095673, -0.04557009041309357, -0.36242175102233887, -0.21696771681308746, 0.2848592698574066, 0.17282094061374664, -0.23726488649845123, 0.15845519304275513, 0.2072388231754303, 0.5742632150650024, 0.42488354444503784, -0.019297465682029724, 0.04645893722772598, 0.2571292817592621, 0.11050926893949509, 0.10291733592748642, -0.4459003806114197, 0.41968777775764465, 0.21573881804943085, 0.22363688051700592, -0.077501580119133, -0.07799407839775085, -0.26161327958106995, -0.013357969932258129, -0.30122068524360657, -0.23483394086360931, 0.060569871217012405, 0.11346947401762009, -0.017812084406614304, -0.474633127450943, 0.46370530128479004, 0.047307636588811874, 0.1785971224308014, -0.31770268082618713, -0.15255823731422424, -0.27935299277305603, -0.021068576723337173, -0.13260924816131592, 0.1412641555070877, -0.011448170058429241, 0.20953914523124695, 0.12402614951133728, 0.5167967677116394, -0.49973854422569275, 0.21419984102249146, -0.22744859755039215, 0.3636535108089447, -0.23339548707008362, -0.1672559380531311, -0.31860578060150146, 0.44817087054252625, 0.00792420282959938, -0.28583720326423645, 0.36404961347579956, -0.2809883654117584, -0.28176528215408325, 0.6151067614555359, -0.07632181793451309, 0.3583168685436249, 0.2011263072490692, 0.26341521739959717, 0.24813349545001984, 0.1929301768541336, 0.06720792502164841, -0.11275766044855118, -0.09850406646728516, 0.10258050262928009, -0.4266871511936188, -0.11899438500404358, -0.08699166774749756, 0.10524105280637741, -0.3675816059112549, 0.5479367971420288, 0.015567162074148655, 0.10999047011137009, -0.09314654022455215, 0.4020737111568451, 0.07516584545373917, -0.2500084340572357, 0.08309628069400787, 0.3318132162094116, 0.36810144782066345, 0.33397209644317627, -0.19865107536315918, -0.319308340549469, -0.20466601848602295, 0.03016713075339794, 0.45395398139953613, 0.025094591081142426, 0.08543998748064041, 0.06984693557024002, 0.2511940896511078, 0.2723051607608795, -0.07052496820688248, -0.2877126634120941, 0.015435450710356236, 0.24938321113586426, -0.380372017621994, 0.04412949085235596, 0.38943353295326233, 0.16320577263832092, -0.2141718566417694, -0.11609300971031189, 0.22652237117290497, 0.31279823184013367, -0.21677768230438232, -0.2701512575149536, -0.415376752614975 ]
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.2940950393676758, -0.38351836800575256, -0.002173429122194648, 0.6607136726379395, 0.14834553003311157, 0.12387950718402863, -0.17308802902698517, 0.1085546612739563, 0.18071170151233673, 0.044096965342760086, -0.14275230467319489, -0.00034474540734663606, 0.13833539187908173, -0.02919122390449047, 0.16312237083911896, -0.13893567025661469, -0.005091236438602209, -0.10926400870084763, -0.04557351395487785, 0.0021924437023699284, -0.3334749937057495, 0.38261616230010986, -0.1232328712940216, -0.015836449339985847, -0.33436986804008484, 0.015269145369529724, 0.05252491310238838, 0.6103967428207397, -0.22044360637664795, -0.04907502606511116, 0.4548049569129944, -0.13804207742214203, 0.4193027913570404, 0.716667652130127, -0.00012068089563399553, 0.036272164434194565, 0.13725800812244415, -0.18045158684253693, -0.11882151663303375, -0.5258253216743469, -0.30799397826194763, -0.13045784831047058, -0.05789503827691078, -0.12726859748363495, -0.07237063348293304, 0.0013966887490823865, 0.13070103526115417, -0.540708065032959, 0.40812012553215027, 0.10792335867881775, 0.10580652952194214, 0.27854302525520325, 0.0526132769882679, -0.07740068435668945, 0.2205449789762497, 0.16301877796649933, -0.3261559009552002, 0.009836164303123951, 0.34907767176628113, 0.1568441540002823, 0.089008629322052, 0.3036373257637024, 0.002880631946027279, 0.041648901998996735, 0.46820908784866333, -0.025538193061947823, 0.1632109433412552, -0.2858408987522125, 0.07400486618280411, 0.3027317523956299, 0.5413937568664551, -0.1766105592250824, -0.4551267921924591, -0.16008535027503967, -0.08777940273284912, -0.24209429323673248, 0.35714659094810486, 0.28176113963127136, -0.1429189294576645, -0.004443748854100704, -0.2909395098686218, -0.19553491473197937, -0.16509300470352173, 0.1610514372587204, -0.06678035855293274, 0.16237084567546844, -0.216212198138237, 0.0020339121110737324, 0.37414124608039856, 0.045092254877090454, 0.2139800786972046, -0.06313306838274002, -0.1090405061841011, 0.11569725722074509, -0.23183390498161316, 0.23713891208171844, -0.14041419327259064, -0.03139647841453552, 0.2378907948732376, 0.1972276121377945, 0.023154648020863533, 0.18336400389671326, -0.020008575171232224, 0.15905846655368805, 0.2242523431777954, 0.28444594144821167, 0.24085931479930878, -0.07524408400058746, 0.012786678969860077, 0.18078358471393585, 0.006231890991330147, -0.19931533932685852, -0.15594355762004852, -0.20164912939071655, -0.1380641907453537, -0.09382043033838272, 0.11763662844896317, -0.3426390588283539, -0.5313282012939453, -0.07015498727560043, -0.09447736293077469, 0.010749077424407005, 0.2356746643781662, 0.2389829456806183, 0.09938085079193115, 0.00765756843611598, 0.08231794834136963, 0.36654675006866455, -0.31856176257133484, -0.004581354558467865, -0.20311516523361206, 0.20443905889987946, -0.38865718245506287, 0.29014432430267334, 0.16030985116958618, -0.08145605772733688, 0.3730146884918213, -0.11436498165130615, 0.3260141611099243, -0.3670956790447235, 0.04246110841631889, -0.06470604985952377, -0.038235001266002655, 0.08228534460067749, 0.23622038960456848, 0.16142457723617554, 0.1086064800620079, -0.006718950346112251, -0.11877841502428055, 0.14366264641284943, -0.40557584166526794, -0.12714245915412903, -0.07954438030719757, 0.033335909247398376, -0.4040100574493408, 0.018243031576275826, -0.6510797739028931, -0.16833290457725525, -0.27029040455818176, 0.033224575221538544, -0.025217413902282715, 0.04184095561504364, -0.1289658546447754, -0.07620874047279358, 0.28263378143310547, 0.48704299330711365, -0.1808573305606842, -0.03521313518285751, -0.20905515551567078, -0.10992125421762466, 0.08131887763738632, 0.157431960105896, -0.23717465996742249, 0.08770571649074554, -0.4471830129623413, 0.34323573112487793, 0.26038074493408203, -0.6826909780502319, -0.29034945368766785, 0.3264542818069458, -0.29409313201904297, 0.2417885661125183, 0.0807780772447586, 0.062106791883707047, -0.21419170498847961, -0.08567522466182709, 0.17384424805641174, 0.1770911067724228, 0.137990340590477, -0.09980206191539764, -0.2131122350692749, -0.16815663874149323, -0.19047844409942627, 0.33219417929649353, -0.013252797536551952, -0.08989401906728745, 0.11145413666963577, -0.018651189282536507, 0.10930952429771423, -0.13748571276664734, -0.12677793204784393, 0.5887781381607056, 0.07426417618989944, -0.04015255346894264, -0.1889093667268753, 0.06074816361069679, -0.6912909150123596, 0.3157784342765808, -0.26303863525390625, -0.23664630949497223, -0.08977667987346649, 0.10724327713251114, -0.3324466049671173, -0.09075050055980682, -0.34217536449432373, -0.17736311256885529, -0.03209386393427849, 0.1423981785774231, -0.003952042665332556, -0.1507631242275238, -0.23739133775234222, 0.37394148111343384, 0.03380493447184563, 0.10042357444763184, -0.5817270278930664, 0.2664696276187897, 0.18917222321033478, -0.03668909892439842, -0.008081110194325447, 0.029506796970963478, 0.24494034051895142, -0.3018716275691986, 0.011071636341512203, 0.5150933861732483, 0.015789616852998734, 0.3034420311450958, 0.34143632650375366, 0.06788334995508194, 0.21833528578281403, -0.4746907949447632, 0.17063798010349274, 0.12616828083992004, -0.05022537335753441, -0.000838732928968966, -0.35325899720191956, 0.4718582034111023, -0.19586507976055145, -0.03601329028606415, -0.07293448597192764, -0.15648812055587769, 0.14721356332302094, -0.110216423869133, -0.11814017593860626, -0.1023719310760498, 0.3790092170238495, 0.1971786469221115, 0.23839205503463745, -0.16361026465892792, -0.11515051126480103, -0.1355716586112976, -0.07877504825592041, 0.019171232357621193, 0.0012409158516675234, 0.03192268684506416, -0.2628386914730072, 0.11231450736522675, -0.03493601828813553, 0.40339726209640503, 0.4151165187358856, 0.15246419608592987, 0.023350568488240242, -0.027329053729772568, -0.04143596440553665, -0.07648966461420059, 0.03186631202697754, 0.011049173772335052, 0.1094328761100769, 0.16491976380348206, -0.32681089639663696, -0.05431976914405823, -0.3668627142906189, -0.10840117931365967, 0.10832219570875168, 0.09499780088663101, -0.35447850823402405, 0.025856105610728264, -0.17411504685878754, -0.3895709216594696, -0.10250083357095718, 0.15973226726055145, -0.21198230981826782, -0.2974933087825775, -0.1224299892783165, 0.5138396620750427, 0.24396148324012756, -0.03323715180158615, -0.32287076115608215, 0.05515759438276291, -0.16089250147342682, -0.5349494218826294, -0.22960619628429413, 0.22549818456172943, -0.02984836883842945, -0.03792605921626091, 0.3940606415271759, 0.17755091190338135, 0.06346946209669113, -0.37519368529319763, 0.4378795623779297, -0.5723700523376465, -0.10138959437608719, 0.15361975133419037, -0.17764557898044586, 0.47007396817207336, -0.12343362718820572, 0.1739169955253601, -0.4125460982322693, 0.07374551147222519, 0.26227059960365295, -0.14359822869300842, -0.07257570326328278, -0.010824372991919518, 0.05826682597398758, -0.17177125811576843, 0.10299943387508392, -0.1550426185131073, -0.08348724991083145, -0.2285582274198532, -0.0605195090174675, 0.026968546211719513, 0.003946687560528517, 0.14304159581661224, 0.012173607014119625, 0.0526413656771183, 0.0021119399461895227, -0.21690233051776886, -0.21504373848438263, -0.9191763401031494, 0.4821290969848633, -0.15350408852100372, -0.28485819697380066, 0.3715456426143646, 0.17307054996490479, 0.2463555932044983, 0.2914634644985199, -0.4455311894416809, -0.17484408617019653, 0.10034207254648209, 0.17669230699539185, 0.07965438812971115, 0.028543930500745773, 0.21983757615089417, -0.20395533740520477, 0.07813788205385208, -0.13408620655536652, -0.30674535036087036, -0.07130555063486099, 0.18570618331432343, 0.6754622459411621, -0.09100949764251709, 0.015538020990788937, 0.030508600175380707, 0.48123934864997864, 0.08225638419389725, 0.21683792769908905, 0.41409334540367126, -0.10537847131490707, 0.34468957781791687, -0.08478192239999771, -0.16836929321289062, -0.20165963470935822, -0.12537871301174164, 0.034599822014570236, 0.03884533420205116, 0.31978151202201843, 0.10899977385997772, -0.2826606333255768, 0.2524106204509735, -0.3590713143348694, -0.24997588992118835, 0.07911063730716705, 0.15070338547229767, 0.1439124494791031, -0.027168558910489082, 0.29440295696258545, -0.14952373504638672, -0.1423308551311493, 0.04721697047352791, 0.34649330377578735, 0.433234840631485, 0.20162494480609894, -0.3357110619544983, 0.2821694314479828, -0.2268444150686264, 0.4784916341304779, 0.07362402975559235, 0.17186792194843292, -0.09291014820337296, 0.04142245277762413, 0.19558927416801453, -0.08779407292604446, 0.37910911440849304, -0.08124449849128723, 0.15484915673732758, 0.009051674045622349, -0.37388837337493896, -0.3268100917339325, 0.023585379123687744, 0.04028946906328201, 0.15631675720214844, -0.015382131561636925, 0.5480800867080688, -0.2565803825855255, -0.3150651156902313, -0.20974846184253693, 0.13904888927936554, -0.07422610372304916, -0.13402946293354034, -0.2735157608985901, -0.5143993496894836, -0.07183827459812164, -0.2955913841724396, 0.19686906039714813, 0.2673867344856262, 0.31725212931632996, 0.22833594679832458, -0.10423585772514343, -0.04284076765179634, 0.3793027102947235, 0.004214461427181959, 0.6529350876808167, -0.17433948814868927, 0.035492829978466034, 0.4252312183380127, -0.11782394349575043, 0.25314849615097046, 0.6561617255210876, 0.11082065850496292, -0.12971602380275726, 0.266333669424057, -0.05171685293316841, -0.1295134425163269, 0.3273465037345886, 0.0207966361194849, -0.33624014258384705, -0.05260317772626877, -0.029921745881438255, -0.13729768991470337, 0.010417700745165348, 0.3201185166835785, -0.03676128387451172, -0.16708393394947052, -0.06994609534740448, 0.5326874852180481, 0.2755140960216522, 0.16868577897548676, 0.3096195161342621, 0.09793537110090256, -0.15163718163967133, -0.2330196052789688, 0.1875225454568863, 1.0363705158233643, -0.1817590445280075, 0.1348758041858673, 0.2365764081478119, 0.14354650676250458, -0.029546666890382767, -0.2570064961910248, 0.3308093547821045, -0.25937652587890625, -0.3965882956981659, -0.25396668910980225, -0.14133748412132263, 0.2486441284418106, 0.09211278706789017, 0.31868499517440796, 0.29408982396125793, 0.1441642791032791, 0.010918356478214264, 0.04235023260116577, -0.01921946369111538, -0.28179314732551575, -0.3109997510910034, -0.5007690787315369, 0.06260743737220764, -0.04109439626336098, 0.5804380774497986, -0.16123802959918976, -0.12794533371925354, -0.1890367716550827, -0.030286410823464394, -0.03705809265375137, 0.3009274899959564, -0.23470468819141388, 0.13499291241168976, -0.04424114152789116, -0.4934229850769043, -0.14557094871997833, 0.44561678171157837, 0.08574984967708588, -0.2637138068675995, -0.2606284022331238, 0.35050830245018005, -0.07311880588531494, -0.1928686499595642, 0.01797585003077984, -0.10910799354314804, -0.14112725853919983, -0.15127797424793243, 0.13498526811599731, -0.08414296060800552, -0.1423194855451584, -0.35683196783065796, -0.2701238691806793, -0.0669967532157898, -0.27996763586997986, -0.045485083013772964, -0.26465848088264465, 0.05238209292292595, 0.04304463788866997, -0.020229242742061615, 0.04396846517920494, 0.1505744904279709, -0.11827968060970306, 0.026478515937924385, 0.11949317902326584, -0.43093621730804443, -0.027901548892259598, 0.5984715819358826, -0.31828728318214417, -0.21648259460926056, 0.26975011825561523, 0.1841866672039032, 0.04735768586397171, -0.13907137513160706, 0.39564791321754456, 0.3742913603782654, -0.5853354930877686, 0.01721424236893654, -0.13103587925434113, 0.20623016357421875, 0.09364914894104004, 0.28696179389953613, 0.40500152111053467, -0.40550631284713745, 0.2294517308473587, -0.49061319231987, -0.022132957354187965, 0.37665796279907227, -0.030695412307977676, 0.28284797072410583, -0.025744840502738953, -0.22615621984004974, 0.13188643753528595, -0.3666866421699524, -0.22439202666282654, 0.3964020609855652, -0.03099125437438488, -0.051341574639081955, 0.2765412926673889, 0.10921966284513474, 0.528856635093689, 0.060997653752565384, 0.057779163122177124, 0.21887516975402832, -0.26735323667526245, -0.04220888391137123, 0.07026924192905426, 0.1751425713300705, 0.031153691932559013, -0.18658585846424103, 0.01880723610520363, -0.14554549753665924, -0.08651572465896606, -0.024735065177083015, 0.18483364582061768, 0.38724759221076965, 0.030788561329245567, -0.14748021960258484, -0.10982915014028549, 0.16634798049926758, -0.47092652320861816, 0.10619359463453293, 0.18980304896831512, 0.4924296438694, 0.021268624812364578, -0.02361343428492546, -0.09518735855817795, -0.08877937495708466, -0.32380789518356323, -0.08439552038908005, 0.28941598534584045, 0.2882055640220642, 0.33630961179733276, -0.36052238941192627, 0.3339119255542755, 0.18498454988002777, 0.22670982778072357, 0.3662358224391937, -0.2820647656917572, 0.1108192577958107, 0.031592123210430145, 0.12503883242607117, -0.026920437812805176, -0.11273451894521713, 0.10834961384534836, -0.08160199224948883, -0.10202313214540482, 0.3889037072658539, 0.19933182001113892, 0.2852785289287567, 0.20681442320346832, -0.02221814915537834, 0.70029616355896, -0.047906991094350815, 0.22965210676193237, 0.40153977274894714, -0.08403904736042023, 0.14039263129234314, 0.25409194827079773, 0.33963119983673096, 0.116554856300354, 0.40726399421691895, -0.2131437212228775, 0.5099995136260986, -0.07043153792619705, 0.40838679671287537, -0.38913848996162415, -0.42787420749664307, -0.22597207129001617, 0.2799413502216339, 0.17639575898647308, 0.18061167001724243, -0.2744501829147339, 0.2971870005130768, -0.49491795897483826, -0.014748827554285526, -0.42052915692329407, 0.15461474657058716, -0.0668894350528717, 0.018383828923106194, -0.26359879970550537, -0.3721783757209778, -0.14875653386116028, 0.04879627376794815, -0.14148683845996857, -0.15301752090454102, -0.039886362850666046, 0.0794363021850586, -0.04562009125947952, 0.08262789994478226, -0.13652366399765015, 0.21788904070854187, -0.04941920191049576, -0.17005285620689392, 0.48474758863449097, 0.0723630040884018, -0.01432216539978981, 0.2167026698589325, 0.2018681913614273, 0.18447236716747284, 0.06987638771533966, -0.10044916719198227, -0.1165883019566536, 0.2017824947834015, -0.0467354953289032, 0.1467268168926239, 0.09841930866241455, -0.019898677244782448, 0.040520768612623215, 0.29661667346954346, 0.16196203231811523, -0.057388145476579666, 0.1973586082458496, -0.07399564981460571, 0.30937594175338745, -0.04607885330915451, 0.027705542743206024, -0.4094929099082947, 0.15801548957824707, -0.15108834207057953, -0.21761369705200195, -0.10510658472776413, -0.16550743579864502, 0.09248822182416916, -0.13268738985061646, 0.006266990676522255, 0.2456578016281128, 0.017953328788280487, 0.0025496447924524546, 0.27279725670814514, 0.49189493060112, -0.26443254947662354, -0.5227892398834229, -0.25526049733161926, -0.7857860922813416, 0.15712888538837433, -0.032761357724666595, -0.2347467839717865, 0.04561445116996765, 0.16287191212177277, -0.06560518592596054, 0.21500977873802185, 0.3023921847343445, -0.08052673935890198, 0.3330070972442627, 0.302087664604187, -0.28468045592308044, -0.03184637799859047, 0.21751058101654053, 0.09619195014238358, -0.05528439208865166, -0.29772257804870605, -0.009798731654882431, 0.19656328856945038, -0.07209817320108414, -0.00043207596172578633, 0.0005190712981857359, -0.30384477972984314, -0.25959789752960205, 0.3466372489929199, -0.12836237251758575, 0.23551146686077118, 0.00692884624004364, -0.3553110361099243, -0.2619483172893524, -0.25856268405914307, 0.10818460583686829, 0.08175843954086304, 0.0971926897764206, 0.47716769576072693, -0.08762841671705246, 0.12166435271501541, -0.5112354159355164, 0.29543882608413696, 0.14253060519695282, -0.001640808186493814, -0.3504885137081146, 0.1002616435289383, -0.2921203672885895, 0.051320597529411316, 0.288535475730896, 0.3758065402507782, 0.038282137364149094, 0.33791887760162354, -0.141376331448555, -0.1874239295721054, 0.4719303846359253, 0.005780896171927452, -0.14038395881652832, 0.29020392894744873, 0.06007491052150726, 0.23427538573741913, -0.1433011293411255, -0.34266218543052673, 0.2560197114944458, 0.08228495717048645, 0.024347655475139618, -0.005571249406784773, -0.01575511507689953, -0.20693042874336243, -0.1993103176355362, 0.14981982111930847, 0.23564182221889496, 0.1080838069319725, -0.16975045204162598, 0.15471892058849335, 0.04828639328479767 ]
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.2940950393676758, -0.38351836800575256, -0.002173429122194648, 0.6607136726379395, 0.14834553003311157, 0.12387950718402863, -0.17308802902698517, 0.1085546612739563, 0.18071170151233673, 0.044096965342760086, -0.14275230467319489, -0.00034474540734663606, 0.13833539187908173, -0.02919122390449047, 0.16312237083911896, -0.13893567025661469, -0.005091236438602209, -0.10926400870084763, -0.04557351395487785, 0.0021924437023699284, -0.3334749937057495, 0.38261616230010986, -0.1232328712940216, -0.015836449339985847, -0.33436986804008484, 0.015269145369529724, 0.05252491310238838, 0.6103967428207397, -0.22044360637664795, -0.04907502606511116, 0.4548049569129944, -0.13804207742214203, 0.4193027913570404, 0.716667652130127, -0.00012068089563399553, 0.036272164434194565, 0.13725800812244415, -0.18045158684253693, -0.11882151663303375, -0.5258253216743469, -0.30799397826194763, -0.13045784831047058, -0.05789503827691078, -0.12726859748363495, -0.07237063348293304, 0.0013966887490823865, 0.13070103526115417, -0.540708065032959, 0.40812012553215027, 0.10792335867881775, 0.10580652952194214, 0.27854302525520325, 0.0526132769882679, -0.07740068435668945, 0.2205449789762497, 0.16301877796649933, -0.3261559009552002, 0.009836164303123951, 0.34907767176628113, 0.1568441540002823, 0.089008629322052, 0.3036373257637024, 0.002880631946027279, 0.041648901998996735, 0.46820908784866333, -0.025538193061947823, 0.1632109433412552, -0.2858408987522125, 0.07400486618280411, 0.3027317523956299, 0.5413937568664551, -0.1766105592250824, -0.4551267921924591, -0.16008535027503967, -0.08777940273284912, -0.24209429323673248, 0.35714659094810486, 0.28176113963127136, -0.1429189294576645, -0.004443748854100704, -0.2909395098686218, -0.19553491473197937, -0.16509300470352173, 0.1610514372587204, -0.06678035855293274, 0.16237084567546844, -0.216212198138237, 0.0020339121110737324, 0.37414124608039856, 0.045092254877090454, 0.2139800786972046, -0.06313306838274002, -0.1090405061841011, 0.11569725722074509, -0.23183390498161316, 0.23713891208171844, -0.14041419327259064, -0.03139647841453552, 0.2378907948732376, 0.1972276121377945, 0.023154648020863533, 0.18336400389671326, -0.020008575171232224, 0.15905846655368805, 0.2242523431777954, 0.28444594144821167, 0.24085931479930878, -0.07524408400058746, 0.012786678969860077, 0.18078358471393585, 0.006231890991330147, -0.19931533932685852, -0.15594355762004852, -0.20164912939071655, -0.1380641907453537, -0.09382043033838272, 0.11763662844896317, -0.3426390588283539, -0.5313282012939453, -0.07015498727560043, -0.09447736293077469, 0.010749077424407005, 0.2356746643781662, 0.2389829456806183, 0.09938085079193115, 0.00765756843611598, 0.08231794834136963, 0.36654675006866455, -0.31856176257133484, -0.004581354558467865, -0.20311516523361206, 0.20443905889987946, -0.38865718245506287, 0.29014432430267334, 0.16030985116958618, -0.08145605772733688, 0.3730146884918213, -0.11436498165130615, 0.3260141611099243, -0.3670956790447235, 0.04246110841631889, -0.06470604985952377, -0.038235001266002655, 0.08228534460067749, 0.23622038960456848, 0.16142457723617554, 0.1086064800620079, -0.006718950346112251, -0.11877841502428055, 0.14366264641284943, -0.40557584166526794, -0.12714245915412903, -0.07954438030719757, 0.033335909247398376, -0.4040100574493408, 0.018243031576275826, -0.6510797739028931, -0.16833290457725525, -0.27029040455818176, 0.033224575221538544, -0.025217413902282715, 0.04184095561504364, -0.1289658546447754, -0.07620874047279358, 0.28263378143310547, 0.48704299330711365, -0.1808573305606842, -0.03521313518285751, -0.20905515551567078, -0.10992125421762466, 0.08131887763738632, 0.157431960105896, -0.23717465996742249, 0.08770571649074554, -0.4471830129623413, 0.34323573112487793, 0.26038074493408203, -0.6826909780502319, -0.29034945368766785, 0.3264542818069458, -0.29409313201904297, 0.2417885661125183, 0.0807780772447586, 0.062106791883707047, -0.21419170498847961, -0.08567522466182709, 0.17384424805641174, 0.1770911067724228, 0.137990340590477, -0.09980206191539764, -0.2131122350692749, -0.16815663874149323, -0.19047844409942627, 0.33219417929649353, -0.013252797536551952, -0.08989401906728745, 0.11145413666963577, -0.018651189282536507, 0.10930952429771423, -0.13748571276664734, -0.12677793204784393, 0.5887781381607056, 0.07426417618989944, -0.04015255346894264, -0.1889093667268753, 0.06074816361069679, -0.6912909150123596, 0.3157784342765808, -0.26303863525390625, -0.23664630949497223, -0.08977667987346649, 0.10724327713251114, -0.3324466049671173, -0.09075050055980682, -0.34217536449432373, -0.17736311256885529, -0.03209386393427849, 0.1423981785774231, -0.003952042665332556, -0.1507631242275238, -0.23739133775234222, 0.37394148111343384, 0.03380493447184563, 0.10042357444763184, -0.5817270278930664, 0.2664696276187897, 0.18917222321033478, -0.03668909892439842, -0.008081110194325447, 0.029506796970963478, 0.24494034051895142, -0.3018716275691986, 0.011071636341512203, 0.5150933861732483, 0.015789616852998734, 0.3034420311450958, 0.34143632650375366, 0.06788334995508194, 0.21833528578281403, -0.4746907949447632, 0.17063798010349274, 0.12616828083992004, -0.05022537335753441, -0.000838732928968966, -0.35325899720191956, 0.4718582034111023, -0.19586507976055145, -0.03601329028606415, -0.07293448597192764, -0.15648812055587769, 0.14721356332302094, -0.110216423869133, -0.11814017593860626, -0.1023719310760498, 0.3790092170238495, 0.1971786469221115, 0.23839205503463745, -0.16361026465892792, -0.11515051126480103, -0.1355716586112976, -0.07877504825592041, 0.019171232357621193, 0.0012409158516675234, 0.03192268684506416, -0.2628386914730072, 0.11231450736522675, -0.03493601828813553, 0.40339726209640503, 0.4151165187358856, 0.15246419608592987, 0.023350568488240242, -0.027329053729772568, -0.04143596440553665, -0.07648966461420059, 0.03186631202697754, 0.011049173772335052, 0.1094328761100769, 0.16491976380348206, -0.32681089639663696, -0.05431976914405823, -0.3668627142906189, -0.10840117931365967, 0.10832219570875168, 0.09499780088663101, -0.35447850823402405, 0.025856105610728264, -0.17411504685878754, -0.3895709216594696, -0.10250083357095718, 0.15973226726055145, -0.21198230981826782, -0.2974933087825775, -0.1224299892783165, 0.5138396620750427, 0.24396148324012756, -0.03323715180158615, -0.32287076115608215, 0.05515759438276291, -0.16089250147342682, -0.5349494218826294, -0.22960619628429413, 0.22549818456172943, -0.02984836883842945, -0.03792605921626091, 0.3940606415271759, 0.17755091190338135, 0.06346946209669113, -0.37519368529319763, 0.4378795623779297, -0.5723700523376465, -0.10138959437608719, 0.15361975133419037, -0.17764557898044586, 0.47007396817207336, -0.12343362718820572, 0.1739169955253601, -0.4125460982322693, 0.07374551147222519, 0.26227059960365295, -0.14359822869300842, -0.07257570326328278, -0.010824372991919518, 0.05826682597398758, -0.17177125811576843, 0.10299943387508392, -0.1550426185131073, -0.08348724991083145, -0.2285582274198532, -0.0605195090174675, 0.026968546211719513, 0.003946687560528517, 0.14304159581661224, 0.012173607014119625, 0.0526413656771183, 0.0021119399461895227, -0.21690233051776886, -0.21504373848438263, -0.9191763401031494, 0.4821290969848633, -0.15350408852100372, -0.28485819697380066, 0.3715456426143646, 0.17307054996490479, 0.2463555932044983, 0.2914634644985199, -0.4455311894416809, -0.17484408617019653, 0.10034207254648209, 0.17669230699539185, 0.07965438812971115, 0.028543930500745773, 0.21983757615089417, -0.20395533740520477, 0.07813788205385208, -0.13408620655536652, -0.30674535036087036, -0.07130555063486099, 0.18570618331432343, 0.6754622459411621, -0.09100949764251709, 0.015538020990788937, 0.030508600175380707, 0.48123934864997864, 0.08225638419389725, 0.21683792769908905, 0.41409334540367126, -0.10537847131490707, 0.34468957781791687, -0.08478192239999771, -0.16836929321289062, -0.20165963470935822, -0.12537871301174164, 0.034599822014570236, 0.03884533420205116, 0.31978151202201843, 0.10899977385997772, -0.2826606333255768, 0.2524106204509735, -0.3590713143348694, -0.24997588992118835, 0.07911063730716705, 0.15070338547229767, 0.1439124494791031, -0.027168558910489082, 0.29440295696258545, -0.14952373504638672, -0.1423308551311493, 0.04721697047352791, 0.34649330377578735, 0.433234840631485, 0.20162494480609894, -0.3357110619544983, 0.2821694314479828, -0.2268444150686264, 0.4784916341304779, 0.07362402975559235, 0.17186792194843292, -0.09291014820337296, 0.04142245277762413, 0.19558927416801453, -0.08779407292604446, 0.37910911440849304, -0.08124449849128723, 0.15484915673732758, 0.009051674045622349, -0.37388837337493896, -0.3268100917339325, 0.023585379123687744, 0.04028946906328201, 0.15631675720214844, -0.015382131561636925, 0.5480800867080688, -0.2565803825855255, -0.3150651156902313, -0.20974846184253693, 0.13904888927936554, -0.07422610372304916, -0.13402946293354034, -0.2735157608985901, -0.5143993496894836, -0.07183827459812164, -0.2955913841724396, 0.19686906039714813, 0.2673867344856262, 0.31725212931632996, 0.22833594679832458, -0.10423585772514343, -0.04284076765179634, 0.3793027102947235, 0.004214461427181959, 0.6529350876808167, -0.17433948814868927, 0.035492829978466034, 0.4252312183380127, -0.11782394349575043, 0.25314849615097046, 0.6561617255210876, 0.11082065850496292, -0.12971602380275726, 0.266333669424057, -0.05171685293316841, -0.1295134425163269, 0.3273465037345886, 0.0207966361194849, -0.33624014258384705, -0.05260317772626877, -0.029921745881438255, -0.13729768991470337, 0.010417700745165348, 0.3201185166835785, -0.03676128387451172, -0.16708393394947052, -0.06994609534740448, 0.5326874852180481, 0.2755140960216522, 0.16868577897548676, 0.3096195161342621, 0.09793537110090256, -0.15163718163967133, -0.2330196052789688, 0.1875225454568863, 1.0363705158233643, -0.1817590445280075, 0.1348758041858673, 0.2365764081478119, 0.14354650676250458, -0.029546666890382767, -0.2570064961910248, 0.3308093547821045, -0.25937652587890625, -0.3965882956981659, -0.25396668910980225, -0.14133748412132263, 0.2486441284418106, 0.09211278706789017, 0.31868499517440796, 0.29408982396125793, 0.1441642791032791, 0.010918356478214264, 0.04235023260116577, -0.01921946369111538, -0.28179314732551575, -0.3109997510910034, -0.5007690787315369, 0.06260743737220764, -0.04109439626336098, 0.5804380774497986, -0.16123802959918976, -0.12794533371925354, -0.1890367716550827, -0.030286410823464394, -0.03705809265375137, 0.3009274899959564, -0.23470468819141388, 0.13499291241168976, -0.04424114152789116, -0.4934229850769043, -0.14557094871997833, 0.44561678171157837, 0.08574984967708588, -0.2637138068675995, -0.2606284022331238, 0.35050830245018005, -0.07311880588531494, -0.1928686499595642, 0.01797585003077984, -0.10910799354314804, -0.14112725853919983, -0.15127797424793243, 0.13498526811599731, -0.08414296060800552, -0.1423194855451584, -0.35683196783065796, -0.2701238691806793, -0.0669967532157898, -0.27996763586997986, -0.045485083013772964, -0.26465848088264465, 0.05238209292292595, 0.04304463788866997, -0.020229242742061615, 0.04396846517920494, 0.1505744904279709, -0.11827968060970306, 0.026478515937924385, 0.11949317902326584, -0.43093621730804443, -0.027901548892259598, 0.5984715819358826, -0.31828728318214417, -0.21648259460926056, 0.26975011825561523, 0.1841866672039032, 0.04735768586397171, -0.13907137513160706, 0.39564791321754456, 0.3742913603782654, -0.5853354930877686, 0.01721424236893654, -0.13103587925434113, 0.20623016357421875, 0.09364914894104004, 0.28696179389953613, 0.40500152111053467, -0.40550631284713745, 0.2294517308473587, -0.49061319231987, -0.022132957354187965, 0.37665796279907227, -0.030695412307977676, 0.28284797072410583, -0.025744840502738953, -0.22615621984004974, 0.13188643753528595, -0.3666866421699524, -0.22439202666282654, 0.3964020609855652, -0.03099125437438488, -0.051341574639081955, 0.2765412926673889, 0.10921966284513474, 0.528856635093689, 0.060997653752565384, 0.057779163122177124, 0.21887516975402832, -0.26735323667526245, -0.04220888391137123, 0.07026924192905426, 0.1751425713300705, 0.031153691932559013, -0.18658585846424103, 0.01880723610520363, -0.14554549753665924, -0.08651572465896606, -0.024735065177083015, 0.18483364582061768, 0.38724759221076965, 0.030788561329245567, -0.14748021960258484, -0.10982915014028549, 0.16634798049926758, -0.47092652320861816, 0.10619359463453293, 0.18980304896831512, 0.4924296438694, 0.021268624812364578, -0.02361343428492546, -0.09518735855817795, -0.08877937495708466, -0.32380789518356323, -0.08439552038908005, 0.28941598534584045, 0.2882055640220642, 0.33630961179733276, -0.36052238941192627, 0.3339119255542755, 0.18498454988002777, 0.22670982778072357, 0.3662358224391937, -0.2820647656917572, 0.1108192577958107, 0.031592123210430145, 0.12503883242607117, -0.026920437812805176, -0.11273451894521713, 0.10834961384534836, -0.08160199224948883, -0.10202313214540482, 0.3889037072658539, 0.19933182001113892, 0.2852785289287567, 0.20681442320346832, -0.02221814915537834, 0.70029616355896, -0.047906991094350815, 0.22965210676193237, 0.40153977274894714, -0.08403904736042023, 0.14039263129234314, 0.25409194827079773, 0.33963119983673096, 0.116554856300354, 0.40726399421691895, -0.2131437212228775, 0.5099995136260986, -0.07043153792619705, 0.40838679671287537, -0.38913848996162415, -0.42787420749664307, -0.22597207129001617, 0.2799413502216339, 0.17639575898647308, 0.18061167001724243, -0.2744501829147339, 0.2971870005130768, -0.49491795897483826, -0.014748827554285526, -0.42052915692329407, 0.15461474657058716, -0.0668894350528717, 0.018383828923106194, -0.26359879970550537, -0.3721783757209778, -0.14875653386116028, 0.04879627376794815, -0.14148683845996857, -0.15301752090454102, -0.039886362850666046, 0.0794363021850586, -0.04562009125947952, 0.08262789994478226, -0.13652366399765015, 0.21788904070854187, -0.04941920191049576, -0.17005285620689392, 0.48474758863449097, 0.0723630040884018, -0.01432216539978981, 0.2167026698589325, 0.2018681913614273, 0.18447236716747284, 0.06987638771533966, -0.10044916719198227, -0.1165883019566536, 0.2017824947834015, -0.0467354953289032, 0.1467268168926239, 0.09841930866241455, -0.019898677244782448, 0.040520768612623215, 0.29661667346954346, 0.16196203231811523, -0.057388145476579666, 0.1973586082458496, -0.07399564981460571, 0.30937594175338745, -0.04607885330915451, 0.027705542743206024, -0.4094929099082947, 0.15801548957824707, -0.15108834207057953, -0.21761369705200195, -0.10510658472776413, -0.16550743579864502, 0.09248822182416916, -0.13268738985061646, 0.006266990676522255, 0.2456578016281128, 0.017953328788280487, 0.0025496447924524546, 0.27279725670814514, 0.49189493060112, -0.26443254947662354, -0.5227892398834229, -0.25526049733161926, -0.7857860922813416, 0.15712888538837433, -0.032761357724666595, -0.2347467839717865, 0.04561445116996765, 0.16287191212177277, -0.06560518592596054, 0.21500977873802185, 0.3023921847343445, -0.08052673935890198, 0.3330070972442627, 0.302087664604187, -0.28468045592308044, -0.03184637799859047, 0.21751058101654053, 0.09619195014238358, -0.05528439208865166, -0.29772257804870605, -0.009798731654882431, 0.19656328856945038, -0.07209817320108414, -0.00043207596172578633, 0.0005190712981857359, -0.30384477972984314, -0.25959789752960205, 0.3466372489929199, -0.12836237251758575, 0.23551146686077118, 0.00692884624004364, -0.3553110361099243, -0.2619483172893524, -0.25856268405914307, 0.10818460583686829, 0.08175843954086304, 0.0971926897764206, 0.47716769576072693, -0.08762841671705246, 0.12166435271501541, -0.5112354159355164, 0.29543882608413696, 0.14253060519695282, -0.001640808186493814, -0.3504885137081146, 0.1002616435289383, -0.2921203672885895, 0.051320597529411316, 0.288535475730896, 0.3758065402507782, 0.038282137364149094, 0.33791887760162354, -0.141376331448555, -0.1874239295721054, 0.4719303846359253, 0.005780896171927452, -0.14038395881652832, 0.29020392894744873, 0.06007491052150726, 0.23427538573741913, -0.1433011293411255, -0.34266218543052673, 0.2560197114944458, 0.08228495717048645, 0.024347655475139618, -0.005571249406784773, -0.01575511507689953, -0.20693042874336243, -0.1993103176355362, 0.14981982111930847, 0.23564182221889496, 0.1080838069319725, -0.16975045204162598, 0.15471892058849335, 0.04828639328479767 ]
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.06661684066057205, 0.12667572498321533, -0.0205122958868742, -0.05423278734087944, 0.19961956143379211, 0.15268732607364655, 0.17997419834136963, 0.3656727075576782, -0.02220880426466465, -0.08142577856779099, 0.1489364206790924, 0.27538177371025085, -0.09172679483890533, -0.16842342913150787, 0.2434724122285843, -0.30586397647857666, 0.14550350606441498, 0.12390228360891342, -0.3501986265182495, -0.12868274748325348, -0.002592754317447543, 0.41258981823921204, -0.211428701877594, -0.17825554311275482, -0.52988201379776, 0.06315393000841141, -0.1315193772315979, 0.14280486106872559, -0.04379183053970337, -0.2499871402978897, 0.27792075276374817, 0.05930274352431297, -0.08272421360015869, 0.12223806232213974, -0.00011430803715484217, 0.07761070877313614, 0.6222485303878784, -0.22390545904636383, -0.5686742067337036, 0.01197773776948452, 0.12999987602233887, -0.3336532413959503, 0.3843441605567932, -0.2550983726978302, -0.27593618631362915, -0.1181294247508049, 0.11411943286657333, -0.0585302896797657, 0.39380577206611633, -0.01093639899045229, 0.21362514793872833, 0.23605595529079437, 0.2972979247570038, -0.12914134562015533, 0.6020243763923645, 0.06741493195295334, -0.16625650227069855, 0.07933587580919266, -0.16387419402599335, -0.05647679418325424, -0.27104079723358154, 0.47979500889778137, 0.13871711492538452, -0.1370009332895279, 0.5526371598243713, -0.2816210687160492, 0.022621218115091324, -0.2574208080768585, 0.01745392009615898, 0.18265065550804138, 0.49401646852493286, -0.022983575239777565, -0.10636795312166214, -0.3746720254421234, 0.04460464417934418, 0.17872995138168335, 0.24808302521705627, 0.017207924276590347, -0.15328967571258545, -0.06720846891403198, 0.05121001601219177, -0.22957934439182281, -0.03329232707619667, 0.2887519896030426, -0.06739374250173569, 0.4202917516231537, -0.02890620566904545, 0.021470583975315094, 0.16685320436954498, 0.04962274804711342, -0.3133724331855774, 0.03651865944266319, 0.0982152670621872, 0.23501594364643097, -0.21651296317577362, 0.06369774788618088, 0.2868848145008087, 0.2705272436141968, 0.062014512717723846, 0.1695946305990219, -0.27939966320991516, 0.19127266108989716, 0.020429261028766632, -0.047091223299503326, 0.21989399194717407, 0.24082213640213013, -0.0418657548725605, -0.353320837020874, 0.2516730725765228, 0.3364217281341553, -0.06280208379030228, 0.138465017080307, 0.19929130375385284, -0.13873609900474548, -0.27135610580444336, 0.13340221345424652, 0.009117083624005318, -0.1717025488615036, 0.10722757875919342, 0.05340857058763504, -0.2777939736843109, -0.14833281934261322, -0.23782366514205933, 0.3198888599872589, -0.025773998349905014, 0.40862423181533813, 0.2018824815750122, 0.1185922920703888, -0.2835620939731598, -0.2737652361392975, -0.19572493433952332, 0.02123405411839485, -0.4779030680656433, 0.025882400572299957, 0.3871368169784546, -0.20970465242862701, 0.5165668725967407, 0.0758557990193367, -0.03628617897629738, 0.05929262936115265, -0.030197810381650925, 0.2644248604774475, -0.07258367538452148, 0.181024968624115, 0.12122604995965958, 0.2927810251712799, 0.20368407666683197, 0.019942477345466614, -0.05308561399579048, -0.32944440841674805, 0.07048457115888596, -0.2763872444629669, -0.2597138583660126, 0.16771681606769562, -0.31198805570602417, 0.15478962659835815, 0.047507576644420624, 0.1872282475233078, -0.025388017296791077, -0.18220333755016327, -0.09672651439905167, -0.12297092378139496, -0.05829141288995743, -0.1482740193605423, 0.5051082968711853, 0.4033137559890747, 0.029888037592172623, -0.33046504855155945, -0.062176574021577835, 0.10411667078733444, -0.10119818150997162, 0.011720896698534489, -0.1564820408821106, 0.5247723460197449, -0.28578782081604004, -0.1501884013414383, 0.22431311011314392, 0.05196890980005264, -0.21122682094573975, 0.1486305296421051, -0.012657636776566505, 0.2708984315395355, 0.09758938103914261, -0.05283584073185921, -0.06728064268827438, 0.05180025100708008, 0.09197576344013214, 0.21846023201942444, 0.11319421231746674, 0.05293981730937958, -0.3270508646965027, -0.08778876066207886, -0.0076871090568602085, 0.07954835146665573, 0.35053929686546326, -0.05055500566959381, 0.06359486281871796, 0.5883687734603882, 0.29808562994003296, -0.13878291845321655, 0.22441436350345612, 0.45005276799201965, -0.28894299268722534, 0.1368466168642044, 0.24537234008312225, -0.059862170368433, -0.4651874005794525, 0.12080080807209015, -0.14018265902996063, 0.4367899000644684, -0.1831933557987213, -0.0022148408461362123, -0.3467138707637787, -0.13671454787254333, -0.19681616127490997, -0.51652991771698, 0.20651297271251678, 0.2034476399421692, -0.018576277419924736, 0.3046474754810333, 0.02542993426322937, 0.11620263755321503, -0.04044180363416672, 0.0568883940577507, -0.77965247631073, 0.2145269811153412, -0.31155791878700256, -0.1411183476448059, -0.01922932267189026, 0.3081659972667694, 0.11504600942134857, -0.19353976845741272, -0.12849509716033936, 0.2234225869178772, -0.0789245069026947, 0.13418959081172943, 0.014887125231325626, -0.05508710816502571, 0.24042679369449615, -0.32110118865966797, 0.09848307818174362, 0.3122579753398895, -0.04630559682846069, -0.12724074721336365, -0.30347874760627747, 0.2799140512943268, 0.018223652616143227, 0.32264435291290283, 0.03340346738696098, 0.0919325202703476, 0.15483680367469788, 0.07258303463459015, -0.23313312232494354, -0.20265346765518188, 0.37851712107658386, 0.217605859041214, 0.13664209842681885, -0.02352520264685154, 0.11496250331401825, 0.0045695253647863865, 0.17190228402614594, 0.06607925891876221, 0.011259825900197029, -0.08091582357883453, -0.4510020613670349, -0.2482423633337021, 0.35093095898628235, -0.08578956872224808, 0.08168485015630722, 0.2645476162433624, 0.05249503627419472, -0.016957316547632217, -0.12286832928657532, -0.209578275680542, 0.1974874883890152, 0.11408776044845581, 0.3243004083633423, 0.08764585852622986, 0.14054308831691742, 0.1975444257259369, -0.3815244734287262, 0.19065915048122406, -0.1774682104587555, 0.08713379502296448, -0.28385430574417114, -0.0979878306388855, -0.35406017303466797, -0.45146167278289795, -0.10524125397205353, 0.24881210923194885, -0.3974130153656006, -0.5874939560890198, -0.05695808678865433, 0.18909932672977448, -0.16337500512599945, 0.30572935938835144, -0.02936447784304619, -0.1303643435239792, 0.07419317960739136, 0.019791843369603157, -0.33426374197006226, -0.3922387361526489, -0.20006781816482544, 0.0861518383026123, 0.10436014831066132, -0.0021499129943549633, 0.2901444435119629, -0.0029743642080575228, -0.02719189040362835, -0.4731694459915161, -0.5758973956108093, 0.316193163394928, -0.28385287523269653, 0.1902673989534378, 0.1779288649559021, 0.08815796673297882, -0.22568726539611816, -0.058733392506837845, 0.40694761276245117, -0.17011575400829315, -0.15046736598014832, -0.01615994982421398, -0.1277894228696823, 0.10100570321083069, -0.19234098494052887, -0.22173742949962616, 0.09537554532289505, -0.3692912757396698, 0.015343934297561646, 0.09217263013124466, -0.1812785565853119, 0.4691084325313568, -0.10024970769882202, -0.00628746347501874, 0.10052726417779922, 0.17226742208003998, -0.24487997591495514, 0.08357472717761993, 0.3416597545146942, -0.30039799213409424, -0.4568089246749878, 0.02956744283437729, -0.173553004860878, 0.05717110261321068, 0.3189316689968109, -0.4997883439064026, -0.04967701807618141, 0.09412253648042679, 0.002468189923092723, -0.1354268342256546, 0.09424592554569244, 0.5044307708740234, 0.011421971954405308, -0.016861865296959877, -0.2326326221227646, -0.15191134810447693, -0.1495186686515808, -0.3148491084575653, 0.4269851744174957, -0.1923689991235733, 0.32358989119529724, -0.003670876380056143, 1.0987775325775146, -0.032662224024534225, 0.06560394167900085, 0.42243802547454834, 0.09330383688211441, 0.45210063457489014, -0.2759511470794678, -0.2967284321784973, 0.23235628008842468, -0.14866478741168976, 0.30133363604545593, 0.39190036058425903, -0.014732524752616882, -0.20506666600704193, -0.36537113785743713, 0.009143496863543987, -0.20908598601818085, -0.3228643834590912, 0.09011086821556091, -0.31934961676597595, 0.29139596223831177, 0.1660911589860916, 0.23359684646129608, -0.0019371263915672898, -0.15771612524986267, 0.24411030113697052, 0.1709192395210266, 0.20703710615634918, 0.06955176591873169, 0.13792869448661804, -0.05609194561839104, -0.498675674200058, 0.040960170328617096, 0.018963433802127838, -0.0030060173012316227, 0.03895013779401779, -0.13712681829929352, 0.20203658938407898, 0.045386068522930145, 0.5689495801925659, -0.19774243235588074, -0.026344096288084984, 0.24905742704868317, 0.03478071838617325, -0.7107807397842407, -0.027566004544496536, -0.05507459491491318, 0.1947837769985199, 0.2862171232700348, 0.178434357047081, -0.3835533857345581, -0.22349239885807037, 0.3125835061073303, 0.061099544167518616, -0.046983372420072556, -0.02617458812892437, -0.29161831736564636, 0.006637809798121452, -0.4207642078399658, -0.13090401887893677, -0.15496712923049927, 0.14559601247310638, 0.0774429440498352, 0.168731689453125, 0.0894143134355545, 0.028799179941415787, -0.13350766897201538, 0.10535094887018204, 0.2781822979450226, 0.25022459030151367, -0.11148586124181747, 0.1409599781036377, 0.6523587703704834, -0.33775725960731506, 0.26288092136383057, 0.19822798669338226, 0.04554987698793411, 0.21739184856414795, -0.04006339609622955, -0.05903657525777817, 0.3987363874912262, 0.02893766388297081, -0.048763010650873184, -0.20305249094963074, 0.009422266855835915, 0.09405381977558136, 0.22913722693920135, 0.35067200660705566, -0.269044429063797, -0.13627716898918152, -0.273685097694397, 0.5236555933952332, -0.01766921579837799, -0.011371306143701077, 0.06929434835910797, 0.06701434403657913, -0.3365367352962494, 0.3461085855960846, 0.2415178269147873, 0.741340696811676, 0.03802746534347534, 0.3953184187412262, 0.20779244601726532, 0.3027881383895874, 0.8601715564727783, -0.36980459094047546, 0.189751535654068, -0.17427407205104828, 0.22020001709461212, 0.041686609387397766, 0.03543270379304886, -0.19204314053058624, -0.13104546070098877, -0.096841961145401, 0.38440582156181335, 0.3848447799682617, 0.4188907742500305, 0.07600091397762299, 0.2999127209186554, 0.07616467773914337, -0.3209703266620636, -0.19505305588245392, 0.1271081417798996, -0.20761680603027344, 0.5865814089775085, -0.3765699863433838, -0.13086900115013123, -0.2108014076948166, -0.11665253341197968, -0.2505493462085724, 0.1885518878698349, -0.2747046649456024, 0.5069425106048584, -0.17828848958015442, -0.5959973335266113, 0.02124810218811035, 0.11277550458908081, 0.1474466621875763, 0.0883108451962471, -0.40081721544265747, 0.3684975206851959, -0.19408965110778809, -0.23625768721103668, -0.10856154561042786, 0.20971444249153137, 0.49526649713516235, -0.17084982991218567, -0.06167798489332199, -0.06107214093208313, -0.24166759848594666, -0.2755626440048218, -0.2949695885181427, -0.06130518019199371, 0.0028359931893646717, 0.10486914217472076, -0.08245308697223663, 0.10372515767812729, -0.014028718695044518, -0.2572490870952606, 0.14875204861164093, -0.11449138820171356, 0.037418026477098465, -0.14607107639312744, 0.10244458168745041, -0.10430757701396942, -0.07039783149957657, 0.49939656257629395, -0.0020988029427826405, -0.12898468971252441, 0.5953384041786194, 0.3426297605037689, -0.11988028883934021, -0.11467283964157104, -0.09025755524635315, -0.13938359916210175, -0.4722253084182739, -0.12965667247772217, 0.01248021237552166, -0.05300120264291763, -0.05213301628828049, 0.2447199821472168, 0.18441177904605865, -0.1626240313053131, 0.07808615267276764, -0.19434548914432526, -0.29546040296554565, 0.2547384798526764, -0.34947165846824646, -0.0420396663248539, 0.13901841640472412, 0.10136628150939941, 0.3333052098751068, 0.014814557507634163, -0.296456515789032, -0.21546486020088196, 0.05402832478284836, 0.200809046626091, 0.30834469199180603, -0.11868857592344284, -0.05005410686135292, -0.12764884531497955, 0.12124455720186234, 0.021271144971251488, -0.18948513269424438, -0.2302405685186386, -0.031567614525556564, 0.1042666807770729, 0.0467170812189579, 0.08656769245862961, -0.0781770721077919, 0.11140915751457214, -0.037129227072000504, -0.25353604555130005, 0.05287137255072594, -0.22818318009376526, 0.12405364215373993, 0.182316392660141, 0.1191575899720192, 0.1763535737991333, -0.12095250189304352, 0.015098349191248417, 0.04827379807829857, 0.14237602055072784, 0.05326312780380249, 0.012956911697983742, 0.22157983481884003, -0.011794193647801876, -0.16906419396400452, 0.10427502542734146, -0.185499906539917, 0.2854602038860321, 0.2926935851573944, -0.0773174837231636, -0.29903146624565125, -0.027036935091018677, 0.29427435994148254, -0.03260806202888489, -0.05286186560988426, -0.048574935644865036, 0.010359139181673527, 0.19061268866062164, -0.2196088582277298, 0.26746076345443726, 0.527988076210022, 0.1143721416592598, 0.055378276854753494, -0.0702127069234848, 0.3743453323841095, -0.024660728871822357, 0.3387494683265686, 0.17266052961349487, 0.12175265699625015, -0.11831004172563553, 0.242641881108284, 0.2166147530078888, 0.35108673572540283, 0.05669063702225685, 0.023912860080599785, -0.030709803104400635, 0.23046183586120605, 0.23972292244434357, 0.12880843877792358, 0.27862849831581116, -0.08822891116142273, 0.0975496843457222, 0.03091317228972912, -0.06298387050628662, 0.16391348838806152, 0.3340352773666382, 0.18038740754127502, 0.14405260980129242, -0.12919366359710693, 0.5687987208366394, 0.10019442439079285, -0.38934028148651123, -0.23458196222782135, 0.24023094773292542, -0.11699625104665756, 0.07403189688920975, -0.31728360056877136, -0.18617792427539825, -0.23919416964054108, 0.15746480226516724, -0.10744067281484604, -0.12326701730489731, -0.05043024569749832, 0.21565599739551544, -0.19008274376392365, -0.47320234775543213, 0.21016988158226013, -0.03633848950266838, 0.3338373303413391, -0.07308250665664673, 0.17064034938812256, -0.061637286096811295, -0.2775770127773285, -0.07984582334756851, 0.28773507475852966, 0.2786318361759186, 0.10541653633117676, -0.3909922242164612, -0.12188676744699478, 0.15569335222244263, -0.06407517939805984, -0.152765154838562, 0.08428424596786499, 0.2606303095817566, -0.10130354017019272, 0.26166361570358276, 0.09725309163331985, -0.2740938067436218, -0.12203726917505264, 0.09807547181844711, -0.05502216890454292, -0.12360025942325592, 0.013010043650865555, -0.3181716203689575, -0.1982579231262207, -0.12009457498788834, 0.006536431144922972, -0.4909359812736511, 0.16106832027435303, -0.008206966333091259, 0.19925352931022644, -0.05412012338638306, -0.29684844613075256, 0.0856657326221466, -0.136845663189888, 0.5973787903785706, 0.3424455523490906, 0.11179952323436737, -0.1469997614622116, -0.5365692377090454, -0.5853414535522461, 0.20903004705905914, -0.06299246102571487, -0.048658017069101334, 0.0740428939461708, 0.1942424774169922, 0.23906055092811584, 0.1642807126045227, 0.0021001286804676056, -0.17929521203041077, 0.08896053582429886, -0.06625952571630478, -0.4647615849971771, -0.06454985588788986, -0.19048738479614258, -0.25890350341796875, -0.12463191896677017, 0.024100780487060547, -0.08804843574762344, 0.10577798634767532, 0.04880000278353691, -0.019922591745853424, -0.26405736804008484, 0.06166291981935501, -0.06827437877655029, 0.2982195019721985, -0.05190333351492882, 0.3681992292404175, -0.10127129405736923, -0.22035668790340424, -0.2901727557182312, -0.15610255300998688, -0.04629819467663765, 0.302644819021225, -0.1934383064508438, 0.5210275053977966, -0.008360144682228565, -0.10020609200000763, -0.3288210332393646, 0.6905271410942078, 0.17339017987251282, 0.1175566166639328, -0.3923232853412628, 0.02390754036605358, -0.3116733133792877, 0.16229915618896484, 0.09101776033639908, 0.3411852717399597, -0.2714788019657135, 0.17413561046123505, -0.4668042063713074, -0.449990451335907, 0.24987128376960754, -0.45507416129112244, -0.09269803017377853, -0.004183892626315355, 0.11533919721841812, -0.0047393664717674255, -0.05710053816437721, -0.5571916103363037, 0.03359686955809593, 0.16372086107730865, 0.05430986359715462, -0.09074931591749191, 0.1095089316368103, -0.04558886960148811, -0.12089408189058304, -0.10418522357940674, -0.17841394245624542, 0.11568872630596161, -0.16955533623695374, -0.08987569808959961, -0.21514004468917847 ]
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.06661684066057205, 0.12667572498321533, -0.0205122958868742, -0.05423278734087944, 0.19961956143379211, 0.15268732607364655, 0.17997419834136963, 0.3656727075576782, -0.02220880426466465, -0.08142577856779099, 0.1489364206790924, 0.27538177371025085, -0.09172679483890533, -0.16842342913150787, 0.2434724122285843, -0.30586397647857666, 0.14550350606441498, 0.12390228360891342, -0.3501986265182495, -0.12868274748325348, -0.002592754317447543, 0.41258981823921204, -0.211428701877594, -0.17825554311275482, -0.52988201379776, 0.06315393000841141, -0.1315193772315979, 0.14280486106872559, -0.04379183053970337, -0.2499871402978897, 0.27792075276374817, 0.05930274352431297, -0.08272421360015869, 0.12223806232213974, -0.00011430803715484217, 0.07761070877313614, 0.6222485303878784, -0.22390545904636383, -0.5686742067337036, 0.01197773776948452, 0.12999987602233887, -0.3336532413959503, 0.3843441605567932, -0.2550983726978302, -0.27593618631362915, -0.1181294247508049, 0.11411943286657333, -0.0585302896797657, 0.39380577206611633, -0.01093639899045229, 0.21362514793872833, 0.23605595529079437, 0.2972979247570038, -0.12914134562015533, 0.6020243763923645, 0.06741493195295334, -0.16625650227069855, 0.07933587580919266, -0.16387419402599335, -0.05647679418325424, -0.27104079723358154, 0.47979500889778137, 0.13871711492538452, -0.1370009332895279, 0.5526371598243713, -0.2816210687160492, 0.022621218115091324, -0.2574208080768585, 0.01745392009615898, 0.18265065550804138, 0.49401646852493286, -0.022983575239777565, -0.10636795312166214, -0.3746720254421234, 0.04460464417934418, 0.17872995138168335, 0.24808302521705627, 0.017207924276590347, -0.15328967571258545, -0.06720846891403198, 0.05121001601219177, -0.22957934439182281, -0.03329232707619667, 0.2887519896030426, -0.06739374250173569, 0.4202917516231537, -0.02890620566904545, 0.021470583975315094, 0.16685320436954498, 0.04962274804711342, -0.3133724331855774, 0.03651865944266319, 0.0982152670621872, 0.23501594364643097, -0.21651296317577362, 0.06369774788618088, 0.2868848145008087, 0.2705272436141968, 0.062014512717723846, 0.1695946305990219, -0.27939966320991516, 0.19127266108989716, 0.020429261028766632, -0.047091223299503326, 0.21989399194717407, 0.24082213640213013, -0.0418657548725605, -0.353320837020874, 0.2516730725765228, 0.3364217281341553, -0.06280208379030228, 0.138465017080307, 0.19929130375385284, -0.13873609900474548, -0.27135610580444336, 0.13340221345424652, 0.009117083624005318, -0.1717025488615036, 0.10722757875919342, 0.05340857058763504, -0.2777939736843109, -0.14833281934261322, -0.23782366514205933, 0.3198888599872589, -0.025773998349905014, 0.40862423181533813, 0.2018824815750122, 0.1185922920703888, -0.2835620939731598, -0.2737652361392975, -0.19572493433952332, 0.02123405411839485, -0.4779030680656433, 0.025882400572299957, 0.3871368169784546, -0.20970465242862701, 0.5165668725967407, 0.0758557990193367, -0.03628617897629738, 0.05929262936115265, -0.030197810381650925, 0.2644248604774475, -0.07258367538452148, 0.181024968624115, 0.12122604995965958, 0.2927810251712799, 0.20368407666683197, 0.019942477345466614, -0.05308561399579048, -0.32944440841674805, 0.07048457115888596, -0.2763872444629669, -0.2597138583660126, 0.16771681606769562, -0.31198805570602417, 0.15478962659835815, 0.047507576644420624, 0.1872282475233078, -0.025388017296791077, -0.18220333755016327, -0.09672651439905167, -0.12297092378139496, -0.05829141288995743, -0.1482740193605423, 0.5051082968711853, 0.4033137559890747, 0.029888037592172623, -0.33046504855155945, -0.062176574021577835, 0.10411667078733444, -0.10119818150997162, 0.011720896698534489, -0.1564820408821106, 0.5247723460197449, -0.28578782081604004, -0.1501884013414383, 0.22431311011314392, 0.05196890980005264, -0.21122682094573975, 0.1486305296421051, -0.012657636776566505, 0.2708984315395355, 0.09758938103914261, -0.05283584073185921, -0.06728064268827438, 0.05180025100708008, 0.09197576344013214, 0.21846023201942444, 0.11319421231746674, 0.05293981730937958, -0.3270508646965027, -0.08778876066207886, -0.0076871090568602085, 0.07954835146665573, 0.35053929686546326, -0.05055500566959381, 0.06359486281871796, 0.5883687734603882, 0.29808562994003296, -0.13878291845321655, 0.22441436350345612, 0.45005276799201965, -0.28894299268722534, 0.1368466168642044, 0.24537234008312225, -0.059862170368433, -0.4651874005794525, 0.12080080807209015, -0.14018265902996063, 0.4367899000644684, -0.1831933557987213, -0.0022148408461362123, -0.3467138707637787, -0.13671454787254333, -0.19681616127490997, -0.51652991771698, 0.20651297271251678, 0.2034476399421692, -0.018576277419924736, 0.3046474754810333, 0.02542993426322937, 0.11620263755321503, -0.04044180363416672, 0.0568883940577507, -0.77965247631073, 0.2145269811153412, -0.31155791878700256, -0.1411183476448059, -0.01922932267189026, 0.3081659972667694, 0.11504600942134857, -0.19353976845741272, -0.12849509716033936, 0.2234225869178772, -0.0789245069026947, 0.13418959081172943, 0.014887125231325626, -0.05508710816502571, 0.24042679369449615, -0.32110118865966797, 0.09848307818174362, 0.3122579753398895, -0.04630559682846069, -0.12724074721336365, -0.30347874760627747, 0.2799140512943268, 0.018223652616143227, 0.32264435291290283, 0.03340346738696098, 0.0919325202703476, 0.15483680367469788, 0.07258303463459015, -0.23313312232494354, -0.20265346765518188, 0.37851712107658386, 0.217605859041214, 0.13664209842681885, -0.02352520264685154, 0.11496250331401825, 0.0045695253647863865, 0.17190228402614594, 0.06607925891876221, 0.011259825900197029, -0.08091582357883453, -0.4510020613670349, -0.2482423633337021, 0.35093095898628235, -0.08578956872224808, 0.08168485015630722, 0.2645476162433624, 0.05249503627419472, -0.016957316547632217, -0.12286832928657532, -0.209578275680542, 0.1974874883890152, 0.11408776044845581, 0.3243004083633423, 0.08764585852622986, 0.14054308831691742, 0.1975444257259369, -0.3815244734287262, 0.19065915048122406, -0.1774682104587555, 0.08713379502296448, -0.28385430574417114, -0.0979878306388855, -0.35406017303466797, -0.45146167278289795, -0.10524125397205353, 0.24881210923194885, -0.3974130153656006, -0.5874939560890198, -0.05695808678865433, 0.18909932672977448, -0.16337500512599945, 0.30572935938835144, -0.02936447784304619, -0.1303643435239792, 0.07419317960739136, 0.019791843369603157, -0.33426374197006226, -0.3922387361526489, -0.20006781816482544, 0.0861518383026123, 0.10436014831066132, -0.0021499129943549633, 0.2901444435119629, -0.0029743642080575228, -0.02719189040362835, -0.4731694459915161, -0.5758973956108093, 0.316193163394928, -0.28385287523269653, 0.1902673989534378, 0.1779288649559021, 0.08815796673297882, -0.22568726539611816, -0.058733392506837845, 0.40694761276245117, -0.17011575400829315, -0.15046736598014832, -0.01615994982421398, -0.1277894228696823, 0.10100570321083069, -0.19234098494052887, -0.22173742949962616, 0.09537554532289505, -0.3692912757396698, 0.015343934297561646, 0.09217263013124466, -0.1812785565853119, 0.4691084325313568, -0.10024970769882202, -0.00628746347501874, 0.10052726417779922, 0.17226742208003998, -0.24487997591495514, 0.08357472717761993, 0.3416597545146942, -0.30039799213409424, -0.4568089246749878, 0.02956744283437729, -0.173553004860878, 0.05717110261321068, 0.3189316689968109, -0.4997883439064026, -0.04967701807618141, 0.09412253648042679, 0.002468189923092723, -0.1354268342256546, 0.09424592554569244, 0.5044307708740234, 0.011421971954405308, -0.016861865296959877, -0.2326326221227646, -0.15191134810447693, -0.1495186686515808, -0.3148491084575653, 0.4269851744174957, -0.1923689991235733, 0.32358989119529724, -0.003670876380056143, 1.0987775325775146, -0.032662224024534225, 0.06560394167900085, 0.42243802547454834, 0.09330383688211441, 0.45210063457489014, -0.2759511470794678, -0.2967284321784973, 0.23235628008842468, -0.14866478741168976, 0.30133363604545593, 0.39190036058425903, -0.014732524752616882, -0.20506666600704193, -0.36537113785743713, 0.009143496863543987, -0.20908598601818085, -0.3228643834590912, 0.09011086821556091, -0.31934961676597595, 0.29139596223831177, 0.1660911589860916, 0.23359684646129608, -0.0019371263915672898, -0.15771612524986267, 0.24411030113697052, 0.1709192395210266, 0.20703710615634918, 0.06955176591873169, 0.13792869448661804, -0.05609194561839104, -0.498675674200058, 0.040960170328617096, 0.018963433802127838, -0.0030060173012316227, 0.03895013779401779, -0.13712681829929352, 0.20203658938407898, 0.045386068522930145, 0.5689495801925659, -0.19774243235588074, -0.026344096288084984, 0.24905742704868317, 0.03478071838617325, -0.7107807397842407, -0.027566004544496536, -0.05507459491491318, 0.1947837769985199, 0.2862171232700348, 0.178434357047081, -0.3835533857345581, -0.22349239885807037, 0.3125835061073303, 0.061099544167518616, -0.046983372420072556, -0.02617458812892437, -0.29161831736564636, 0.006637809798121452, -0.4207642078399658, -0.13090401887893677, -0.15496712923049927, 0.14559601247310638, 0.0774429440498352, 0.168731689453125, 0.0894143134355545, 0.028799179941415787, -0.13350766897201538, 0.10535094887018204, 0.2781822979450226, 0.25022459030151367, -0.11148586124181747, 0.1409599781036377, 0.6523587703704834, -0.33775725960731506, 0.26288092136383057, 0.19822798669338226, 0.04554987698793411, 0.21739184856414795, -0.04006339609622955, -0.05903657525777817, 0.3987363874912262, 0.02893766388297081, -0.048763010650873184, -0.20305249094963074, 0.009422266855835915, 0.09405381977558136, 0.22913722693920135, 0.35067200660705566, -0.269044429063797, -0.13627716898918152, -0.273685097694397, 0.5236555933952332, -0.01766921579837799, -0.011371306143701077, 0.06929434835910797, 0.06701434403657913, -0.3365367352962494, 0.3461085855960846, 0.2415178269147873, 0.741340696811676, 0.03802746534347534, 0.3953184187412262, 0.20779244601726532, 0.3027881383895874, 0.8601715564727783, -0.36980459094047546, 0.189751535654068, -0.17427407205104828, 0.22020001709461212, 0.041686609387397766, 0.03543270379304886, -0.19204314053058624, -0.13104546070098877, -0.096841961145401, 0.38440582156181335, 0.3848447799682617, 0.4188907742500305, 0.07600091397762299, 0.2999127209186554, 0.07616467773914337, -0.3209703266620636, -0.19505305588245392, 0.1271081417798996, -0.20761680603027344, 0.5865814089775085, -0.3765699863433838, -0.13086900115013123, -0.2108014076948166, -0.11665253341197968, -0.2505493462085724, 0.1885518878698349, -0.2747046649456024, 0.5069425106048584, -0.17828848958015442, -0.5959973335266113, 0.02124810218811035, 0.11277550458908081, 0.1474466621875763, 0.0883108451962471, -0.40081721544265747, 0.3684975206851959, -0.19408965110778809, -0.23625768721103668, -0.10856154561042786, 0.20971444249153137, 0.49526649713516235, -0.17084982991218567, -0.06167798489332199, -0.06107214093208313, -0.24166759848594666, -0.2755626440048218, -0.2949695885181427, -0.06130518019199371, 0.0028359931893646717, 0.10486914217472076, -0.08245308697223663, 0.10372515767812729, -0.014028718695044518, -0.2572490870952606, 0.14875204861164093, -0.11449138820171356, 0.037418026477098465, -0.14607107639312744, 0.10244458168745041, -0.10430757701396942, -0.07039783149957657, 0.49939656257629395, -0.0020988029427826405, -0.12898468971252441, 0.5953384041786194, 0.3426297605037689, -0.11988028883934021, -0.11467283964157104, -0.09025755524635315, -0.13938359916210175, -0.4722253084182739, -0.12965667247772217, 0.01248021237552166, -0.05300120264291763, -0.05213301628828049, 0.2447199821472168, 0.18441177904605865, -0.1626240313053131, 0.07808615267276764, -0.19434548914432526, -0.29546040296554565, 0.2547384798526764, -0.34947165846824646, -0.0420396663248539, 0.13901841640472412, 0.10136628150939941, 0.3333052098751068, 0.014814557507634163, -0.296456515789032, -0.21546486020088196, 0.05402832478284836, 0.200809046626091, 0.30834469199180603, -0.11868857592344284, -0.05005410686135292, -0.12764884531497955, 0.12124455720186234, 0.021271144971251488, -0.18948513269424438, -0.2302405685186386, -0.031567614525556564, 0.1042666807770729, 0.0467170812189579, 0.08656769245862961, -0.0781770721077919, 0.11140915751457214, -0.037129227072000504, -0.25353604555130005, 0.05287137255072594, -0.22818318009376526, 0.12405364215373993, 0.182316392660141, 0.1191575899720192, 0.1763535737991333, -0.12095250189304352, 0.015098349191248417, 0.04827379807829857, 0.14237602055072784, 0.05326312780380249, 0.012956911697983742, 0.22157983481884003, -0.011794193647801876, -0.16906419396400452, 0.10427502542734146, -0.185499906539917, 0.2854602038860321, 0.2926935851573944, -0.0773174837231636, -0.29903146624565125, -0.027036935091018677, 0.29427435994148254, -0.03260806202888489, -0.05286186560988426, -0.048574935644865036, 0.010359139181673527, 0.19061268866062164, -0.2196088582277298, 0.26746076345443726, 0.527988076210022, 0.1143721416592598, 0.055378276854753494, -0.0702127069234848, 0.3743453323841095, -0.024660728871822357, 0.3387494683265686, 0.17266052961349487, 0.12175265699625015, -0.11831004172563553, 0.242641881108284, 0.2166147530078888, 0.35108673572540283, 0.05669063702225685, 0.023912860080599785, -0.030709803104400635, 0.23046183586120605, 0.23972292244434357, 0.12880843877792358, 0.27862849831581116, -0.08822891116142273, 0.0975496843457222, 0.03091317228972912, -0.06298387050628662, 0.16391348838806152, 0.3340352773666382, 0.18038740754127502, 0.14405260980129242, -0.12919366359710693, 0.5687987208366394, 0.10019442439079285, -0.38934028148651123, -0.23458196222782135, 0.24023094773292542, -0.11699625104665756, 0.07403189688920975, -0.31728360056877136, -0.18617792427539825, -0.23919416964054108, 0.15746480226516724, -0.10744067281484604, -0.12326701730489731, -0.05043024569749832, 0.21565599739551544, -0.19008274376392365, -0.47320234775543213, 0.21016988158226013, -0.03633848950266838, 0.3338373303413391, -0.07308250665664673, 0.17064034938812256, -0.061637286096811295, -0.2775770127773285, -0.07984582334756851, 0.28773507475852966, 0.2786318361759186, 0.10541653633117676, -0.3909922242164612, -0.12188676744699478, 0.15569335222244263, -0.06407517939805984, -0.152765154838562, 0.08428424596786499, 0.2606303095817566, -0.10130354017019272, 0.26166361570358276, 0.09725309163331985, -0.2740938067436218, -0.12203726917505264, 0.09807547181844711, -0.05502216890454292, -0.12360025942325592, 0.013010043650865555, -0.3181716203689575, -0.1982579231262207, -0.12009457498788834, 0.006536431144922972, -0.4909359812736511, 0.16106832027435303, -0.008206966333091259, 0.19925352931022644, -0.05412012338638306, -0.29684844613075256, 0.0856657326221466, -0.136845663189888, 0.5973787903785706, 0.3424455523490906, 0.11179952323436737, -0.1469997614622116, -0.5365692377090454, -0.5853414535522461, 0.20903004705905914, -0.06299246102571487, -0.048658017069101334, 0.0740428939461708, 0.1942424774169922, 0.23906055092811584, 0.1642807126045227, 0.0021001286804676056, -0.17929521203041077, 0.08896053582429886, -0.06625952571630478, -0.4647615849971771, -0.06454985588788986, -0.19048738479614258, -0.25890350341796875, -0.12463191896677017, 0.024100780487060547, -0.08804843574762344, 0.10577798634767532, 0.04880000278353691, -0.019922591745853424, -0.26405736804008484, 0.06166291981935501, -0.06827437877655029, 0.2982195019721985, -0.05190333351492882, 0.3681992292404175, -0.10127129405736923, -0.22035668790340424, -0.2901727557182312, -0.15610255300998688, -0.04629819467663765, 0.302644819021225, -0.1934383064508438, 0.5210275053977966, -0.008360144682228565, -0.10020609200000763, -0.3288210332393646, 0.6905271410942078, 0.17339017987251282, 0.1175566166639328, -0.3923232853412628, 0.02390754036605358, -0.3116733133792877, 0.16229915618896484, 0.09101776033639908, 0.3411852717399597, -0.2714788019657135, 0.17413561046123505, -0.4668042063713074, -0.449990451335907, 0.24987128376960754, -0.45507416129112244, -0.09269803017377853, -0.004183892626315355, 0.11533919721841812, -0.0047393664717674255, -0.05710053816437721, -0.5571916103363037, 0.03359686955809593, 0.16372086107730865, 0.05430986359715462, -0.09074931591749191, 0.1095089316368103, -0.04558886960148811, -0.12089408189058304, -0.10418522357940674, -0.17841394245624542, 0.11568872630596161, -0.16955533623695374, -0.08987569808959961, -0.21514004468917847 ]
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.06661684066057205, 0.12667572498321533, -0.0205122958868742, -0.05423278734087944, 0.19961956143379211, 0.15268732607364655, 0.17997419834136963, 0.3656727075576782, -0.02220880426466465, -0.08142577856779099, 0.1489364206790924, 0.27538177371025085, -0.09172679483890533, -0.16842342913150787, 0.2434724122285843, -0.30586397647857666, 0.14550350606441498, 0.12390228360891342, -0.3501986265182495, -0.12868274748325348, -0.002592754317447543, 0.41258981823921204, -0.211428701877594, -0.17825554311275482, -0.52988201379776, 0.06315393000841141, -0.1315193772315979, 0.14280486106872559, -0.04379183053970337, -0.2499871402978897, 0.27792075276374817, 0.05930274352431297, -0.08272421360015869, 0.12223806232213974, -0.00011430803715484217, 0.07761070877313614, 0.6222485303878784, -0.22390545904636383, -0.5686742067337036, 0.01197773776948452, 0.12999987602233887, -0.3336532413959503, 0.3843441605567932, -0.2550983726978302, -0.27593618631362915, -0.1181294247508049, 0.11411943286657333, -0.0585302896797657, 0.39380577206611633, -0.01093639899045229, 0.21362514793872833, 0.23605595529079437, 0.2972979247570038, -0.12914134562015533, 0.6020243763923645, 0.06741493195295334, -0.16625650227069855, 0.07933587580919266, -0.16387419402599335, -0.05647679418325424, -0.27104079723358154, 0.47979500889778137, 0.13871711492538452, -0.1370009332895279, 0.5526371598243713, -0.2816210687160492, 0.022621218115091324, -0.2574208080768585, 0.01745392009615898, 0.18265065550804138, 0.49401646852493286, -0.022983575239777565, -0.10636795312166214, -0.3746720254421234, 0.04460464417934418, 0.17872995138168335, 0.24808302521705627, 0.017207924276590347, -0.15328967571258545, -0.06720846891403198, 0.05121001601219177, -0.22957934439182281, -0.03329232707619667, 0.2887519896030426, -0.06739374250173569, 0.4202917516231537, -0.02890620566904545, 0.021470583975315094, 0.16685320436954498, 0.04962274804711342, -0.3133724331855774, 0.03651865944266319, 0.0982152670621872, 0.23501594364643097, -0.21651296317577362, 0.06369774788618088, 0.2868848145008087, 0.2705272436141968, 0.062014512717723846, 0.1695946305990219, -0.27939966320991516, 0.19127266108989716, 0.020429261028766632, -0.047091223299503326, 0.21989399194717407, 0.24082213640213013, -0.0418657548725605, -0.353320837020874, 0.2516730725765228, 0.3364217281341553, -0.06280208379030228, 0.138465017080307, 0.19929130375385284, -0.13873609900474548, -0.27135610580444336, 0.13340221345424652, 0.009117083624005318, -0.1717025488615036, 0.10722757875919342, 0.05340857058763504, -0.2777939736843109, -0.14833281934261322, -0.23782366514205933, 0.3198888599872589, -0.025773998349905014, 0.40862423181533813, 0.2018824815750122, 0.1185922920703888, -0.2835620939731598, -0.2737652361392975, -0.19572493433952332, 0.02123405411839485, -0.4779030680656433, 0.025882400572299957, 0.3871368169784546, -0.20970465242862701, 0.5165668725967407, 0.0758557990193367, -0.03628617897629738, 0.05929262936115265, -0.030197810381650925, 0.2644248604774475, -0.07258367538452148, 0.181024968624115, 0.12122604995965958, 0.2927810251712799, 0.20368407666683197, 0.019942477345466614, -0.05308561399579048, -0.32944440841674805, 0.07048457115888596, -0.2763872444629669, -0.2597138583660126, 0.16771681606769562, -0.31198805570602417, 0.15478962659835815, 0.047507576644420624, 0.1872282475233078, -0.025388017296791077, -0.18220333755016327, -0.09672651439905167, -0.12297092378139496, -0.05829141288995743, -0.1482740193605423, 0.5051082968711853, 0.4033137559890747, 0.029888037592172623, -0.33046504855155945, -0.062176574021577835, 0.10411667078733444, -0.10119818150997162, 0.011720896698534489, -0.1564820408821106, 0.5247723460197449, -0.28578782081604004, -0.1501884013414383, 0.22431311011314392, 0.05196890980005264, -0.21122682094573975, 0.1486305296421051, -0.012657636776566505, 0.2708984315395355, 0.09758938103914261, -0.05283584073185921, -0.06728064268827438, 0.05180025100708008, 0.09197576344013214, 0.21846023201942444, 0.11319421231746674, 0.05293981730937958, -0.3270508646965027, -0.08778876066207886, -0.0076871090568602085, 0.07954835146665573, 0.35053929686546326, -0.05055500566959381, 0.06359486281871796, 0.5883687734603882, 0.29808562994003296, -0.13878291845321655, 0.22441436350345612, 0.45005276799201965, -0.28894299268722534, 0.1368466168642044, 0.24537234008312225, -0.059862170368433, -0.4651874005794525, 0.12080080807209015, -0.14018265902996063, 0.4367899000644684, -0.1831933557987213, -0.0022148408461362123, -0.3467138707637787, -0.13671454787254333, -0.19681616127490997, -0.51652991771698, 0.20651297271251678, 0.2034476399421692, -0.018576277419924736, 0.3046474754810333, 0.02542993426322937, 0.11620263755321503, -0.04044180363416672, 0.0568883940577507, -0.77965247631073, 0.2145269811153412, -0.31155791878700256, -0.1411183476448059, -0.01922932267189026, 0.3081659972667694, 0.11504600942134857, -0.19353976845741272, -0.12849509716033936, 0.2234225869178772, -0.0789245069026947, 0.13418959081172943, 0.014887125231325626, -0.05508710816502571, 0.24042679369449615, -0.32110118865966797, 0.09848307818174362, 0.3122579753398895, -0.04630559682846069, -0.12724074721336365, -0.30347874760627747, 0.2799140512943268, 0.018223652616143227, 0.32264435291290283, 0.03340346738696098, 0.0919325202703476, 0.15483680367469788, 0.07258303463459015, -0.23313312232494354, -0.20265346765518188, 0.37851712107658386, 0.217605859041214, 0.13664209842681885, -0.02352520264685154, 0.11496250331401825, 0.0045695253647863865, 0.17190228402614594, 0.06607925891876221, 0.011259825900197029, -0.08091582357883453, -0.4510020613670349, -0.2482423633337021, 0.35093095898628235, -0.08578956872224808, 0.08168485015630722, 0.2645476162433624, 0.05249503627419472, -0.016957316547632217, -0.12286832928657532, -0.209578275680542, 0.1974874883890152, 0.11408776044845581, 0.3243004083633423, 0.08764585852622986, 0.14054308831691742, 0.1975444257259369, -0.3815244734287262, 0.19065915048122406, -0.1774682104587555, 0.08713379502296448, -0.28385430574417114, -0.0979878306388855, -0.35406017303466797, -0.45146167278289795, -0.10524125397205353, 0.24881210923194885, -0.3974130153656006, -0.5874939560890198, -0.05695808678865433, 0.18909932672977448, -0.16337500512599945, 0.30572935938835144, -0.02936447784304619, -0.1303643435239792, 0.07419317960739136, 0.019791843369603157, -0.33426374197006226, -0.3922387361526489, -0.20006781816482544, 0.0861518383026123, 0.10436014831066132, -0.0021499129943549633, 0.2901444435119629, -0.0029743642080575228, -0.02719189040362835, -0.4731694459915161, -0.5758973956108093, 0.316193163394928, -0.28385287523269653, 0.1902673989534378, 0.1779288649559021, 0.08815796673297882, -0.22568726539611816, -0.058733392506837845, 0.40694761276245117, -0.17011575400829315, -0.15046736598014832, -0.01615994982421398, -0.1277894228696823, 0.10100570321083069, -0.19234098494052887, -0.22173742949962616, 0.09537554532289505, -0.3692912757396698, 0.015343934297561646, 0.09217263013124466, -0.1812785565853119, 0.4691084325313568, -0.10024970769882202, -0.00628746347501874, 0.10052726417779922, 0.17226742208003998, -0.24487997591495514, 0.08357472717761993, 0.3416597545146942, -0.30039799213409424, -0.4568089246749878, 0.02956744283437729, -0.173553004860878, 0.05717110261321068, 0.3189316689968109, -0.4997883439064026, -0.04967701807618141, 0.09412253648042679, 0.002468189923092723, -0.1354268342256546, 0.09424592554569244, 0.5044307708740234, 0.011421971954405308, -0.016861865296959877, -0.2326326221227646, -0.15191134810447693, -0.1495186686515808, -0.3148491084575653, 0.4269851744174957, -0.1923689991235733, 0.32358989119529724, -0.003670876380056143, 1.0987775325775146, -0.032662224024534225, 0.06560394167900085, 0.42243802547454834, 0.09330383688211441, 0.45210063457489014, -0.2759511470794678, -0.2967284321784973, 0.23235628008842468, -0.14866478741168976, 0.30133363604545593, 0.39190036058425903, -0.014732524752616882, -0.20506666600704193, -0.36537113785743713, 0.009143496863543987, -0.20908598601818085, -0.3228643834590912, 0.09011086821556091, -0.31934961676597595, 0.29139596223831177, 0.1660911589860916, 0.23359684646129608, -0.0019371263915672898, -0.15771612524986267, 0.24411030113697052, 0.1709192395210266, 0.20703710615634918, 0.06955176591873169, 0.13792869448661804, -0.05609194561839104, -0.498675674200058, 0.040960170328617096, 0.018963433802127838, -0.0030060173012316227, 0.03895013779401779, -0.13712681829929352, 0.20203658938407898, 0.045386068522930145, 0.5689495801925659, -0.19774243235588074, -0.026344096288084984, 0.24905742704868317, 0.03478071838617325, -0.7107807397842407, -0.027566004544496536, -0.05507459491491318, 0.1947837769985199, 0.2862171232700348, 0.178434357047081, -0.3835533857345581, -0.22349239885807037, 0.3125835061073303, 0.061099544167518616, -0.046983372420072556, -0.02617458812892437, -0.29161831736564636, 0.006637809798121452, -0.4207642078399658, -0.13090401887893677, -0.15496712923049927, 0.14559601247310638, 0.0774429440498352, 0.168731689453125, 0.0894143134355545, 0.028799179941415787, -0.13350766897201538, 0.10535094887018204, 0.2781822979450226, 0.25022459030151367, -0.11148586124181747, 0.1409599781036377, 0.6523587703704834, -0.33775725960731506, 0.26288092136383057, 0.19822798669338226, 0.04554987698793411, 0.21739184856414795, -0.04006339609622955, -0.05903657525777817, 0.3987363874912262, 0.02893766388297081, -0.048763010650873184, -0.20305249094963074, 0.009422266855835915, 0.09405381977558136, 0.22913722693920135, 0.35067200660705566, -0.269044429063797, -0.13627716898918152, -0.273685097694397, 0.5236555933952332, -0.01766921579837799, -0.011371306143701077, 0.06929434835910797, 0.06701434403657913, -0.3365367352962494, 0.3461085855960846, 0.2415178269147873, 0.741340696811676, 0.03802746534347534, 0.3953184187412262, 0.20779244601726532, 0.3027881383895874, 0.8601715564727783, -0.36980459094047546, 0.189751535654068, -0.17427407205104828, 0.22020001709461212, 0.041686609387397766, 0.03543270379304886, -0.19204314053058624, -0.13104546070098877, -0.096841961145401, 0.38440582156181335, 0.3848447799682617, 0.4188907742500305, 0.07600091397762299, 0.2999127209186554, 0.07616467773914337, -0.3209703266620636, -0.19505305588245392, 0.1271081417798996, -0.20761680603027344, 0.5865814089775085, -0.3765699863433838, -0.13086900115013123, -0.2108014076948166, -0.11665253341197968, -0.2505493462085724, 0.1885518878698349, -0.2747046649456024, 0.5069425106048584, -0.17828848958015442, -0.5959973335266113, 0.02124810218811035, 0.11277550458908081, 0.1474466621875763, 0.0883108451962471, -0.40081721544265747, 0.3684975206851959, -0.19408965110778809, -0.23625768721103668, -0.10856154561042786, 0.20971444249153137, 0.49526649713516235, -0.17084982991218567, -0.06167798489332199, -0.06107214093208313, -0.24166759848594666, -0.2755626440048218, -0.2949695885181427, -0.06130518019199371, 0.0028359931893646717, 0.10486914217472076, -0.08245308697223663, 0.10372515767812729, -0.014028718695044518, -0.2572490870952606, 0.14875204861164093, -0.11449138820171356, 0.037418026477098465, -0.14607107639312744, 0.10244458168745041, -0.10430757701396942, -0.07039783149957657, 0.49939656257629395, -0.0020988029427826405, -0.12898468971252441, 0.5953384041786194, 0.3426297605037689, -0.11988028883934021, -0.11467283964157104, -0.09025755524635315, -0.13938359916210175, -0.4722253084182739, -0.12965667247772217, 0.01248021237552166, -0.05300120264291763, -0.05213301628828049, 0.2447199821472168, 0.18441177904605865, -0.1626240313053131, 0.07808615267276764, -0.19434548914432526, -0.29546040296554565, 0.2547384798526764, -0.34947165846824646, -0.0420396663248539, 0.13901841640472412, 0.10136628150939941, 0.3333052098751068, 0.014814557507634163, -0.296456515789032, -0.21546486020088196, 0.05402832478284836, 0.200809046626091, 0.30834469199180603, -0.11868857592344284, -0.05005410686135292, -0.12764884531497955, 0.12124455720186234, 0.021271144971251488, -0.18948513269424438, -0.2302405685186386, -0.031567614525556564, 0.1042666807770729, 0.0467170812189579, 0.08656769245862961, -0.0781770721077919, 0.11140915751457214, -0.037129227072000504, -0.25353604555130005, 0.05287137255072594, -0.22818318009376526, 0.12405364215373993, 0.182316392660141, 0.1191575899720192, 0.1763535737991333, -0.12095250189304352, 0.015098349191248417, 0.04827379807829857, 0.14237602055072784, 0.05326312780380249, 0.012956911697983742, 0.22157983481884003, -0.011794193647801876, -0.16906419396400452, 0.10427502542734146, -0.185499906539917, 0.2854602038860321, 0.2926935851573944, -0.0773174837231636, -0.29903146624565125, -0.027036935091018677, 0.29427435994148254, -0.03260806202888489, -0.05286186560988426, -0.048574935644865036, 0.010359139181673527, 0.19061268866062164, -0.2196088582277298, 0.26746076345443726, 0.527988076210022, 0.1143721416592598, 0.055378276854753494, -0.0702127069234848, 0.3743453323841095, -0.024660728871822357, 0.3387494683265686, 0.17266052961349487, 0.12175265699625015, -0.11831004172563553, 0.242641881108284, 0.2166147530078888, 0.35108673572540283, 0.05669063702225685, 0.023912860080599785, -0.030709803104400635, 0.23046183586120605, 0.23972292244434357, 0.12880843877792358, 0.27862849831581116, -0.08822891116142273, 0.0975496843457222, 0.03091317228972912, -0.06298387050628662, 0.16391348838806152, 0.3340352773666382, 0.18038740754127502, 0.14405260980129242, -0.12919366359710693, 0.5687987208366394, 0.10019442439079285, -0.38934028148651123, -0.23458196222782135, 0.24023094773292542, -0.11699625104665756, 0.07403189688920975, -0.31728360056877136, -0.18617792427539825, -0.23919416964054108, 0.15746480226516724, -0.10744067281484604, -0.12326701730489731, -0.05043024569749832, 0.21565599739551544, -0.19008274376392365, -0.47320234775543213, 0.21016988158226013, -0.03633848950266838, 0.3338373303413391, -0.07308250665664673, 0.17064034938812256, -0.061637286096811295, -0.2775770127773285, -0.07984582334756851, 0.28773507475852966, 0.2786318361759186, 0.10541653633117676, -0.3909922242164612, -0.12188676744699478, 0.15569335222244263, -0.06407517939805984, -0.152765154838562, 0.08428424596786499, 0.2606303095817566, -0.10130354017019272, 0.26166361570358276, 0.09725309163331985, -0.2740938067436218, -0.12203726917505264, 0.09807547181844711, -0.05502216890454292, -0.12360025942325592, 0.013010043650865555, -0.3181716203689575, -0.1982579231262207, -0.12009457498788834, 0.006536431144922972, -0.4909359812736511, 0.16106832027435303, -0.008206966333091259, 0.19925352931022644, -0.05412012338638306, -0.29684844613075256, 0.0856657326221466, -0.136845663189888, 0.5973787903785706, 0.3424455523490906, 0.11179952323436737, -0.1469997614622116, -0.5365692377090454, -0.5853414535522461, 0.20903004705905914, -0.06299246102571487, -0.048658017069101334, 0.0740428939461708, 0.1942424774169922, 0.23906055092811584, 0.1642807126045227, 0.0021001286804676056, -0.17929521203041077, 0.08896053582429886, -0.06625952571630478, -0.4647615849971771, -0.06454985588788986, -0.19048738479614258, -0.25890350341796875, -0.12463191896677017, 0.024100780487060547, -0.08804843574762344, 0.10577798634767532, 0.04880000278353691, -0.019922591745853424, -0.26405736804008484, 0.06166291981935501, -0.06827437877655029, 0.2982195019721985, -0.05190333351492882, 0.3681992292404175, -0.10127129405736923, -0.22035668790340424, -0.2901727557182312, -0.15610255300998688, -0.04629819467663765, 0.302644819021225, -0.1934383064508438, 0.5210275053977966, -0.008360144682228565, -0.10020609200000763, -0.3288210332393646, 0.6905271410942078, 0.17339017987251282, 0.1175566166639328, -0.3923232853412628, 0.02390754036605358, -0.3116733133792877, 0.16229915618896484, 0.09101776033639908, 0.3411852717399597, -0.2714788019657135, 0.17413561046123505, -0.4668042063713074, -0.449990451335907, 0.24987128376960754, -0.45507416129112244, -0.09269803017377853, -0.004183892626315355, 0.11533919721841812, -0.0047393664717674255, -0.05710053816437721, -0.5571916103363037, 0.03359686955809593, 0.16372086107730865, 0.05430986359715462, -0.09074931591749191, 0.1095089316368103, -0.04558886960148811, -0.12089408189058304, -0.10418522357940674, -0.17841394245624542, 0.11568872630596161, -0.16955533623695374, -0.08987569808959961, -0.21514004468917847 ]
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.10384784638881683, 0.048529911786317825, -0.03246060013771057, -0.12386861443519592, -0.07870962470769882, -0.13932061195373535, 0.11683736741542816, 0.549418568611145, -0.2944580912590027, 0.08318284898996353, -0.015447406098246574, 0.5307009816169739, -0.13364925980567932, -0.2611564099788666, 0.16786237061023712, -0.09260349720716476, 0.06063214689493179, -0.07314582914113998, -0.25662046670913696, -0.09112779051065445, -0.10026217997074127, -0.3960593044757843, -0.21078114211559296, -0.20468410849571228, -0.007430403959006071, -0.24361690878868103, -0.23690442740917206, 0.11802101880311966, -0.18448461592197418, 0.08459850400686264, -0.19340239465236664, 0.23161262273788452, -0.12379349023103714, 0.2456134706735611, -0.00011484538117656484, -0.18554452061653137, 0.07731814682483673, 0.13370844721794128, -0.32807067036628723, 0.15748751163482666, 0.4777601659297943, -0.062334418296813965, -0.10906918346881866, -0.20446377992630005, 0.16245931386947632, -0.3435192108154297, 0.1161518469452858, -0.07582246512174606, -0.08991323411464691, -0.03750990703701973, 0.13142718374729156, 0.38011613488197327, -0.19889584183692932, 0.22042734920978546, 0.4817523658275604, 0.21349291503429413, -0.35807687044143677, 0.3437614142894745, 0.39566975831985474, -0.07497027516365051, -0.1464885026216507, 0.2646941542625427, -0.18782007694244385, -0.039497170597314835, 0.20726324617862701, 0.13425788283348083, 0.1285514384508133, 0.3230398893356323, 0.1072726845741272, 0.3726660907268524, 0.30133193731307983, -0.2000199258327484, -0.3548537492752075, -0.28747299313545227, 0.20355655252933502, -0.030812036246061325, 0.07917884737253189, 0.28571999073028564, -0.28084543347358704, -0.1876988708972931, -0.12404455244541168, 0.10416042059659958, 0.23302090167999268, -0.23027141392230988, 0.3201218247413635, 0.41781485080718994, 0.23731383681297302, -0.09983145445585251, 0.6690922975540161, -0.0953146442770958, 0.5340389013290405, -0.17935632169246674, 0.07010374963283539, 0.4054662585258484, -0.28783077001571655, -0.28923678398132324, -0.19909144937992096, -0.08829007297754288, -0.13594579696655273, 0.1803566962480545, 0.6696805953979492, 0.20380747318267822, 0.20099617540836334, -0.05430108681321144, 0.08218993991613388, -0.01593024842441082, -0.3168695271015167, 0.15699221193790436, -0.0950160101056099, 0.08423763513565063, 0.25747430324554443, 0.0918952152132988, -0.0717734843492508, -0.3007594048976898, -0.044823359698057175, -0.21457450091838837, -0.4414108097553253, 0.10365898162126541, 0.03235042840242386, -0.291860967874527, -0.09601377695798874, -0.06794536113739014, 0.012576127424836159, 0.21459592878818512, -0.17452767491340637, 0.25483810901641846, -0.06501027941703796, -0.10675252228975296, -0.15315136313438416, 0.0528995543718338, -0.039701271802186966, 0.1025034487247467, -0.07590291649103165, 0.0010086842812597752, 0.019384196028113365, 0.38557806611061096, -0.25666922330856323, 0.07151233404874802, 0.19836127758026123, 0.3333365023136139, 0.03903171792626381, -0.1371048241853714, 0.08120010793209076, 0.11646441370248795, -0.1295929253101349, -0.1626017987728119, -0.10904146730899811, 0.05635012686252594, -0.32825344800949097, 0.3956875503063202, -0.02828843891620636, -0.14977744221687317, 0.13974009454250336, 0.15680190920829773, 0.281575083732605, -0.2844119966030121, -0.47067099809646606, -0.07426142692565918, 0.0032804221846163273, -0.03290547430515289, 0.07837474346160889, -0.1077173501253128, 0.1294037103652954, -0.1461091786623001, 0.006991906091570854, -0.20683003962039948, -0.031383492052555084, 0.11867283284664154, 0.018132349476218224, 0.5336565375328064, 0.4336854815483093, 0.6766943335533142, -0.08356541395187378, 0.08880843222141266, 0.13139687478542328, -0.032566484063863754, 0.7245666980743408, 0.1752953976392746, -0.17636725306510925, 0.03035642020404339, -0.07774125784635544, 0.07237082719802856, 0.4168795049190521, 0.18786348402500153, 0.04999667778611183, -0.14467094838619232, 0.45569923520088196, 0.2858867943286896, 0.0005494710640050471, 0.27951815724372864, -0.5462659001350403, -0.1266949325799942, 0.23730455338954926, 0.43262019753456116, -0.49916067719459534, -0.3179180324077606, -0.010627903044223785, -0.3204745650291443, 0.32343995571136475, -0.20637176930904388, -0.11092200875282288, 0.05199281498789787, -0.028023505583405495, 0.08889342099428177, -0.15185756981372833, 0.07104404270648956, -0.19893977046012878, -0.05711108818650246, -0.029154127463698387, -0.021697649732232094, 0.24268771708011627, -0.3557790219783783, 0.19911865890026093, -0.17321453988552094, 0.11946932226419449, 0.1699102371931076, -0.0024224896915256977, -0.20692482590675354, 0.39864927530288696, -0.10005517303943634, -0.07989371567964554, -0.016100510954856873, -0.2569808065891266, 0.08421333134174347, -0.16890448331832886, -0.11169631034135818, 0.045189738273620605, -0.21436884999275208, 0.15801803767681122, 0.37180349230766296, -0.2997279167175293, 0.049676477909088135, 0.10271581262350082, 0.2142709344625473, -0.07665297389030457, -0.12327878177165985, 0.09103525429964066, 0.1982082575559616, -0.06377104669809341, 0.2575587332248688, 0.18422137200832367, -0.1660938411951065, 0.15149429440498352, -0.03450283780694008, -0.3289419114589691, 0.5347306132316589, -0.49302583932876587, 0.3141447901725769, 0.19858749210834503, -0.2543618083000183, -0.14082340896129608, 0.2990078330039978, -0.09735866636037827, 0.42590606212615967, 0.6466962099075317, 0.11169110983610153, 0.1135968267917633, 0.4000861644744873, -0.3382672369480133, 0.09983881562948227, 0.5146841406822205, -0.032069966197013855, -0.15102791786193848, 0.10144110769033432, 0.08682332187891006, -0.15786388516426086, -0.13390718400478363, 0.07245733588933945, 0.2643629312515259, 0.2578003704547882, 0.10681656748056412, -0.022065332159399986, -0.0651487484574318, -0.2313471883535385, 0.21507145464420319, -0.0015313316835090518, 0.09619652479887009, -0.14398193359375, 0.1075776144862175, -0.013752312399446964, -0.1625160276889801, -0.17739546298980713, 0.019707290455698967, 0.16395588219165802, 0.07676953077316284, 0.07361887395381927, -0.06295272707939148, -0.12400207668542862, -0.18180277943611145, -0.03651814162731171, -0.040947649627923965, -0.13410010933876038, 0.17596189677715302, 0.23944078385829926, -0.22955840826034546, -0.27098754048347473, -0.1023019403219223, 0.2744617164134979, -0.14864063262939453, -0.16495224833488464, -0.1873626559972763, 0.07781312614679337, -0.11820822209119797, 0.05184808000922203, 0.23635134100914001, 0.2894332706928253, 0.359274297952652, 0.062186889350414276, -0.23679795861244202, 0.05182735621929169, 0.03151535987854004, -0.23658305406570435, 0.024727685377001762, -0.2823907732963562, -0.05126291885972023, -0.18438242375850677, -0.35906681418418884, -0.3232358992099762, 0.07915446907281876, -0.1600939780473709, -0.10071372240781784, 0.3606930077075958, 0.21800871193408966, -0.22464007139205933, -0.12314694374799728, -0.07072044163942337, -0.13535501062870026, -0.36416542530059814, 0.2947732210159302, -0.07353395968675613, 0.15616124868392944, -0.02806643582880497, -0.15409842133522034, -0.07474999874830246, -0.46709728240966797, -0.029159579426050186, 0.17794743180274963, -0.16034159064292908, 0.266525536775589, 0.07572457939386368, -0.1876382678747177, -0.4554569125175476, -0.03090309351682663, -0.04559553787112236, 0.4398035705089569, -0.050429392606019974, 0.1585073322057724, -0.4090271592140198, -0.018544523045420647, -0.06910408288240433, 0.24175280332565308, 0.4783864915370941, -0.10122955590486526, -0.11372610181570053, 0.334347128868103, 0.19000780582427979, -0.007276421878486872, 0.2815835773944855, 0.09399289637804031, 0.08733499050140381, 0.145313560962677, 0.19172951579093933, 0.5485804677009583, -0.008988505229353905, 0.4024249017238617, -0.16788551211357117, 0.1251717358827591, -0.026360290125012398, -0.30924591422080994, 0.019164999946951866, 0.1545819640159607, -0.014890162274241447, -0.22021228075027466, 0.28605884313583374, -0.13228487968444824, -0.21670600771903992, -0.1457933634519577, 0.4429793357849121, 0.0978027805685997, -0.3071259558200836, 0.5698949694633484, -0.2439906895160675, 0.011494969017803669, 0.026277074590325356, 0.24269382655620575, -0.11463356018066406, -0.18291202187538147, 0.0393734872341156, -0.07352439314126968, -0.07365040481090546, -0.030637988820672035, -0.6124539971351624, -0.15224245190620422, -0.8054001927375793, 0.21659903228282928, 0.20301786065101624, 0.3697018027305603, 0.26963692903518677, -0.32068777084350586, 0.4373374283313751, -0.13145287334918976, 0.2683979272842407, 0.19393186271190643, -0.32369670271873474, 0.26402249932289124, -0.1401328593492508, -0.4568902850151062, -0.08404260873794556, -0.3802315890789032, -0.40312066674232483, 0.14511041343212128, 0.18132342398166656, -0.35817790031433105, -0.042772095650434494, -0.015332371927797794, -0.056510649621486664, -0.017064856365323067, 0.01295823510736227, -0.39014947414398193, -0.2344473898410797, 0.03232735022902489, 0.25963258743286133, -0.04613576456904411, 0.02543182112276554, -0.056566521525382996, 0.22242674231529236, 0.1589544713497162, 0.0007252506911754608, 0.14332900941371918, -0.10428629070520401, -0.05405750125646591, -0.05408063158392906, 0.1584060937166214, 0.16580802202224731, 0.06212117150425911, -0.0909937247633934, 0.00221253652125597, 0.12316538393497467, 0.041676945984363556, -0.15763604640960693, -0.18935054540634155, 0.4593549966812134, 0.38674646615982056, 0.2079526036977768, 0.2129656821489334, -0.02418385073542595, 0.32186654210090637, -0.005993714556097984, -0.5208619832992554, 0.13080529868602753, -0.2954314351081848, -0.10133881866931915, -0.7717429995536804, 0.25923314690589905, 0.2543678283691406, 0.1491476148366928, 0.22816282510757446, -0.19633154571056366, 0.2470768541097641, 0.4275335669517517, 0.1410055160522461, 1.0107343196868896, -0.37455764412879944, 0.49482834339141846, 0.30264750123023987, -0.21271909773349762, 0.0632099062204361, -0.12885470688343048, 0.37739861011505127, -0.17115624248981476, -0.14089177548885345, 0.2182425856590271, -0.18351228535175323, 0.002882114378735423, 0.04692815989255905, -0.03765977546572685, 0.20101222395896912, -0.0023707577493041754, -0.3239128887653351, -0.3013598620891571, -0.03709688037633896, -0.43316650390625, -0.3865848183631897, -0.16200043261051178, 0.002614279743283987, -0.03217289596796036, -0.15970651805400848, 0.14176680147647858, 0.0812448114156723, -0.4642915427684784, 0.11386846005916595, -0.12510783970355988, -0.012902419082820415, 0.04880756884813309, -0.006456614006310701, 0.20499183237552643, -0.2861239016056061, -0.06173274293541908, -0.13866767287254333, -0.12466422468423843, 0.1100127249956131, 0.18063423037528992, 0.11251050978899002, 0.25732702016830444, 0.39451295137405396, 0.37279146909713745, -0.2835697531700134, 0.2877427339553833, -0.06325880438089371, 0.2500336170196533, 0.05619962140917778, -0.008481444790959358, -0.7355347275733948, -0.30185195803642273, 0.08604388684034348, 0.568118155002594, -0.028694583103060722, -0.14096707105636597, 0.23910345137119293, -0.36867251992225647, -0.09587306529283524, 0.10143085569143295, 0.057384416460990906, 0.10539314150810242, 0.4705395996570587, 0.13201716542243958, -0.18861205875873566, -0.011009523645043373, 0.28019019961357117, 0.10600903630256653, 0.13965824246406555, 0.30780720710754395, 0.016102368012070656, -0.4802681803703308, -0.22162505984306335, 0.1815696507692337, 0.04157525300979614, -0.34996870160102844, 0.2590773105621338, 0.015689225867390633, -0.07857204228639603, 0.12821200489997864, 0.28761783242225647, -0.02957787923514843, -0.059170786291360855, -0.300186425447464, -0.014993389137089252, 0.10739853233098984, 0.4669550955295563, 0.5261847376823425, 0.009929326362907887, 0.005060149822384119, 0.3379233479499817, -0.3852914571762085, -0.1506512314081192, -0.2425631880760193, -0.18536920845508575, 0.0913325771689415, 0.12235269695520401, -0.13899771869182587, -0.2877807915210724, -0.19264091551303864, 0.15052175521850586, 0.13074380159378052, 0.14841696619987488, 0.03299041837453842, -0.19076429307460785, 0.07022316008806229, 0.03412209823727608, 0.027660977095365524, -0.014017605222761631, 0.04777843505144119, -0.38992783427238464, -0.3449162244796753, -0.2392159402370453, -0.2736593782901764, 0.0012200316414237022, -0.008356205187737942, -0.2712947130203247, 0.20889601111412048, 0.13243050873279572, -0.07760703563690186, 0.5249648094177246, -0.47318410873413086, -0.2732437551021576, -0.2208494246006012, -0.006398940924555063, -0.01909729465842247, -0.09994073212146759, -0.1110331192612648, 0.12368640303611755, 0.05602703616023064, 0.00540328910574317, 0.26634684205055237, -0.13992920517921448, 0.05745357647538185, -0.10296376794576645, 0.1943245381116867, 0.6351502537727356, 0.2898966670036316, -0.4409421384334564, 0.4520808160305023, 0.11578291654586792, -0.11292025446891785, -0.2333063930273056, -0.3544193506240845, 0.2145790457725525, -0.004530868958681822, 0.10256484895944595, -0.2718021869659424, -0.1124614030122757, -0.3286373019218445, -0.059490226209163666, -0.1369459182024002, -0.4206709861755371, -0.2316710352897644, 0.30655187368392944, 0.3698606789112091, -0.2523021996021271, 0.18014785647392273, -0.0040583829395473, -0.04677731543779373, 0.12942947447299957, 0.22708868980407715, 0.40773501992225647, 0.6244722604751587, 0.30146265029907227, -0.3874134123325348, -0.11069733649492264, -0.0040117367170751095, 0.4378821849822998, 0.1801595687866211, 0.3086168169975281, 0.3406617045402527, 0.1345144808292389, 0.006603775545954704, 0.07968977093696594, -0.021977929398417473, -0.09283855557441711, -0.03707905486226082, 0.07317300140857697, 0.07251478731632233, -0.09472117573022842, -0.2181287407875061, 0.2042514681816101, -0.3194914758205414, 0.34588971734046936, 0.2264338880777359, 0.10362546145915985, 0.4627438187599182, -0.39300134778022766, 0.14526623487472534, -0.22504623234272003, 0.44747263193130493, -0.31342414021492004, -0.1612289696931839, -0.03750098496675491, 0.10319048911333084, 0.2538503408432007, 0.06626972556114197, -0.07254887372255325, 0.2728680968284607, -0.07904823869466782, 0.06222931668162346, -0.5087031126022339, -0.014967216178774834, -0.10642921924591064, 0.21637143194675446, 0.44504261016845703, -0.08542822301387787, 0.27954837679862976, 0.012232528068125248, -0.19255216419696808, -0.16566479206085205, -0.0980604961514473, -0.06900867819786072, -0.1779286414384842, 0.16123567521572113, 0.2084820568561554, -0.4335985481739044, -0.04452555999159813, 0.1502261608839035, -0.25262102484703064, -0.09614851325750351, -0.5036646127700806, -0.2149575799703598, -0.10918226838111877, 0.023864028975367546, 0.055128686130046844, 0.19012847542762756, 0.6890666484832764, 0.42449191212654114, -0.08057316392660141, 0.10325253754854202, -0.27264606952667236, -0.2619597315788269, -0.33249756693840027, -0.2798493206501007, -0.009764453396201134, 0.23604710400104523, 0.48412519693374634, 0.24552597105503082, 0.27141764760017395, -0.0475972481071949, 0.1512843817472458, -0.3728964328765869, 0.3568669259548187, -0.1409447342157364, 0.2074207067489624, 0.1653532087802887, -0.0630146935582161, -0.21246543526649475, -0.6004896759986877, 0.21048222482204437, 0.14094950258731842, -0.002743063261732459, -0.07079286873340607, 0.08259230852127075, 0.20686399936676025, 0.32660871744155884, -0.16946659982204437, -0.03749404847621918, -0.17367683351039886, 0.21706832945346832, -0.20593373477458954, -0.19061386585235596, 0.18586008250713348, -0.022792818024754524, 0.01938876509666443, 0.07425545156002045, 0.12043692171573639, 0.06340178102254868, 0.007834217511117458, 0.13067573308944702, 0.5502994656562805, -0.24065572023391724, 0.17330436408519745, -0.26458096504211426, 0.05415166914463043, 0.21098734438419342, 0.2993127703666687, -0.15807878971099854, 0.1426502764225006, -0.0488656684756279, -0.1984012871980667, -0.2610488831996918, 0.003923492040485144, 0.3909657895565033, -0.15950818359851837, -0.2572922110557556, -0.126607283949852, 0.17813991010189056, 0.20043693482875824, 0.31410014629364014, 0.08483842760324478, -0.27194520831108093, -0.04204178974032402, -0.0028394684195518494, 0.3295639157295227, 0.2699495553970337, -0.11659783869981766, -0.06164973974227905, -0.15463629364967346, 0.3200799822807312, -0.4524773359298706, 0.08766576647758484, -0.23338697850704193, -0.3020484149456024 ]
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.16450101137161255, 0.11814001202583313, -0.04446074366569519, -0.10497473180294037, -0.08144102245569229, -0.17317046225070953, 0.14772425591945648, 0.5459221601486206, -0.23468269407749176, 0.06246325373649597, -0.00008180042641470209, 0.5998942852020264, -0.19479942321777344, -0.228401780128479, 0.2151889055967331, -0.06121167540550232, 0.04766362905502319, -0.00438259681686759, -0.282235324382782, -0.04389936476945877, -0.05621923506259918, -0.413757860660553, -0.199488565325737, -0.19970713555812836, -0.025770802050828934, -0.2938671410083771, -0.1878560185432434, 0.06976711004972458, -0.19764478504657745, 0.07572343200445175, -0.21733836829662323, 0.2811861038208008, -0.05215444415807724, 0.25841689109802246, -0.00011222036118851975, -0.1701222062110901, 0.04250473156571388, 0.10373124480247498, -0.3138456642627716, 0.12869390845298767, 0.38003310561180115, -0.05211755260825157, -0.17796315252780914, -0.2150924801826477, 0.19089347124099731, -0.31755557656288147, 0.1569267064332962, -0.07846323400735855, -0.13302551209926605, -0.06412531435489655, 0.1537112444639206, 0.2656765878200531, -0.15890470147132874, 0.2145538628101349, 0.5277471542358398, 0.24440759420394897, -0.36380213499069214, 0.2725057899951935, 0.37791532278060913, -0.12757624685764313, -0.2558325231075287, 0.26001623272895813, -0.15409085154533386, -0.0505698099732399, 0.2140829712152481, 0.14193733036518097, 0.06563201546669006, 0.38519543409347534, 0.09774549305438995, 0.3810900151729584, 0.29666078090667725, -0.19602833688259125, -0.28900277614593506, -0.25537580251693726, 0.17196133732795715, -0.03694462776184082, 0.09811712801456451, 0.27763503789901733, -0.276034414768219, -0.21664854884147644, -0.1713004857301712, 0.09305725246667862, 0.2021474689245224, -0.22574953734874725, 0.36821237206459045, 0.3595200181007385, 0.1895432025194168, -0.09791538864374161, 0.6719357967376709, -0.12422230839729309, 0.5510309934616089, -0.1262993961572647, -0.004799142945557833, 0.4045134484767914, -0.3214241862297058, -0.3182564377784729, -0.23373976349830627, -0.12059740722179413, -0.046858202666044235, 0.13398844003677368, 0.6908426284790039, 0.23511499166488647, 0.24408644437789917, -0.033090364187955856, 0.029474876821041107, 0.00507035106420517, -0.18816743791103363, 0.07869318127632141, -0.1245698630809784, 0.1490849107503891, 0.2544293701648712, 0.1171044260263443, -0.07661944627761841, -0.3060934245586395, -0.11846056580543518, -0.22097647190093994, -0.5335653424263, 0.1360858678817749, 0.08554668724536896, -0.29068198800086975, -0.030855799093842506, -0.07278688251972198, 0.019144875928759575, 0.21760757267475128, -0.11345965415239334, 0.2636508047580719, -0.03908463194966316, -0.18404874205589294, -0.07678652554750443, -0.029616491869091988, -0.021316269412636757, 0.03953328728675842, -0.13935287296772003, 0.040200937539339066, 0.11733036488294601, 0.40052807331085205, -0.2564072906970978, 0.07050725072622299, 0.10314413160085678, 0.31239891052246094, 0.02362634427845478, -0.13346825540065765, 0.09559338539838791, 0.009146507829427719, -0.1462748795747757, -0.20229491591453552, -0.16244681179523468, 0.07484716922044754, -0.2686474025249481, 0.40479326248168945, 0.008407503366470337, -0.13144780695438385, 0.1649598479270935, 0.16824524104595184, 0.2920648753643036, -0.25654926896095276, -0.5357546210289001, 0.028209205716848373, 0.015079905278980732, -0.060218144208192825, 0.0654672235250473, -0.023868314921855927, 0.06736215949058533, -0.14018382132053375, 0.024452801793813705, -0.2616637051105499, -0.000050073031161446124, 0.1502280831336975, -0.006720331963151693, 0.5517871379852295, 0.4012796878814697, 0.6005728244781494, -0.06617774069309235, 0.09189353138208389, 0.15280823409557343, -0.014735852368175983, 0.6540014147758484, 0.24670980870723724, -0.2185639888048172, 0.04356466978788376, -0.048216767609119415, -0.02621416747570038, 0.38947078585624695, 0.20756925642490387, 0.14556504786014557, -0.11482442170381546, 0.4333439767360687, 0.23686997592449188, -0.0020239297300577164, 0.3048751950263977, -0.5437974333763123, -0.18042577803134918, 0.25481316447257996, 0.43102481961250305, -0.5073713064193726, -0.3955107033252716, 0.04359884932637215, -0.3157792389392853, 0.30726394057273865, -0.19298070669174194, -0.0006521972827613354, 0.04813773185014725, -0.08663573116064072, 0.08192255347967148, -0.18073785305023193, 0.05008196085691452, -0.21627934277057648, -0.07499241828918457, -0.09664434939622879, -0.012154661118984222, 0.2877598702907562, -0.34272828698158264, 0.2107425034046173, -0.23374038934707642, 0.20789885520935059, 0.19070501625537872, 0.021344833076000214, -0.22415222227573395, 0.3385128676891327, -0.17491814494132996, -0.11151331663131714, -0.07181039452552795, -0.28857752680778503, 0.0425323061645031, -0.1818862110376358, -0.13390415906906128, 0.04934413731098175, -0.20683525502681732, 0.14093664288520813, 0.35826534032821655, -0.3306204676628113, 0.05718083307147026, 0.12856538593769073, 0.22768685221672058, -0.12157133966684341, -0.20042815804481506, 0.10788573324680328, 0.18386690318584442, -0.07226169109344482, 0.2219085842370987, 0.10933373868465424, -0.23689208924770355, 0.15980762243270874, -0.024069976061582565, -0.3439083695411682, 0.5287787318229675, -0.46701011061668396, 0.30602455139160156, 0.15083421766757965, -0.2817952632904053, -0.19832581281661987, 0.3005361258983612, -0.036496471613645554, 0.41616708040237427, 0.6197935342788696, 0.0703197568655014, -0.008537531830370426, 0.3828409016132355, -0.2867332100868225, 0.11100568622350693, 0.4442734718322754, 0.03548261150717735, -0.08743416517972946, 0.07636473327875137, 0.11519499868154526, -0.14344944059848785, -0.14491109549999237, 0.02898414060473442, 0.22011032700538635, 0.26664766669273376, 0.06633062660694122, -0.06584789603948593, -0.058790385723114014, -0.21908371150493622, 0.18542183935642242, -0.05407432094216347, 0.1081661731004715, -0.11614911258220673, 0.12547680735588074, -0.0036938630510121584, -0.1517493724822998, -0.15325196087360382, 0.11248543858528137, 0.1517263650894165, 0.13174065947532654, 0.026639766991138458, -0.093146413564682, -0.16242732107639313, -0.11873777210712433, -0.014824324287474155, -0.0479758121073246, -0.008571234531700611, 0.2399175465106964, 0.23915733397006989, -0.24728159606456757, -0.23467956483364105, -0.03685125336050987, 0.3515053987503052, -0.15991370379924774, -0.0430692620575428, -0.18562668561935425, 0.04277525842189789, -0.09416255354881287, 0.09184098243713379, 0.22912739217281342, 0.2741200625896454, 0.3628978431224823, 0.09879901260137558, -0.23614521324634552, 0.0463990643620491, 0.020084625110030174, -0.28064900636672974, 0.0375688336789608, -0.2801625430583954, -0.050635188817977905, -0.18149983882904053, -0.4017322063446045, -0.2940496504306793, 0.048457469791173935, -0.21368756890296936, -0.12095005065202713, 0.35942012071609497, 0.2213587462902069, -0.19242516160011292, -0.16470487415790558, -0.14124234020709991, -0.02719033695757389, -0.4196077287197113, 0.31663572788238525, -0.10182378441095352, 0.22292619943618774, -0.07845724374055862, -0.12161709368228912, -0.07033297419548035, -0.5059905648231506, -0.025483623147010803, 0.19915683567523956, -0.17964762449264526, 0.24768602848052979, 0.09569893777370453, -0.18813297152519226, -0.43132907152175903, -0.036717988550662994, -0.08201324939727783, 0.4609699845314026, -0.055989015847444534, 0.26472318172454834, -0.32759755849838257, -0.04863208532333374, -0.08815175294876099, 0.16407296061515808, 0.46758899092674255, -0.12309897691011429, -0.13212630152702332, 0.2906356155872345, 0.1878259927034378, 0.09323447197675705, 0.24864083528518677, 0.1484408974647522, 0.10789990425109863, 0.1583167165517807, 0.25777360796928406, 0.47584113478660583, -0.013259898871183395, 0.3537450432777405, -0.1806490570306778, 0.18116146326065063, -0.06292731314897537, -0.3044177293777466, 0.09022151678800583, 0.17611847817897797, -0.01049207802861929, -0.1328267753124237, 0.3145890235900879, -0.13034503161907196, -0.23582831025123596, -0.15196660161018372, 0.40879032015800476, 0.14061784744262695, -0.27674010396003723, 0.6161750555038452, -0.2175595462322235, 0.06697437167167664, 0.013095606118440628, 0.1989499181509018, -0.07293964922428131, -0.25818735361099243, 0.03466838598251343, -0.07719478756189346, -0.0035627339966595173, 0.015766670927405357, -0.6201169490814209, -0.10379604250192642, -0.7348021268844604, 0.19458253681659698, 0.2546135485172272, 0.4203130602836609, 0.26302188634872437, -0.2731858491897583, 0.41001084446907043, -0.13168075680732727, 0.24547424912452698, 0.18470048904418945, -0.33794015645980835, 0.20781640708446503, -0.03340369835495949, -0.39917272329330444, -0.03829517960548401, -0.3553333580493927, -0.38800057768821716, 0.09340514242649078, 0.2187519371509552, -0.36988499760627747, -0.0151681425049901, -0.0648520439863205, -0.0963631346821785, -0.020888343453407288, -0.021315505728125572, -0.34317612648010254, -0.15631727874279022, 0.024723129346966743, 0.3189598321914673, -0.04194584861397743, 0.06361892074346542, -0.03653388097882271, 0.20758603513240814, 0.18544504046440125, 0.005204410292208195, 0.09255674481391907, -0.1126059889793396, -0.018958278000354767, -0.044540297240018845, 0.1609746515750885, 0.14490769803524017, 0.08848604559898376, -0.0016811979003250599, -0.06760548055171967, 0.15657669305801392, 0.13074494898319244, -0.07751639187335968, -0.2168562412261963, 0.4103649854660034, 0.35443204641342163, 0.21328423917293549, 0.2864861786365509, 0.03188253939151764, 0.2609128952026367, -0.004494701512157917, -0.46094706654548645, 0.05248235911130905, -0.33687999844551086, -0.11119861155748367, -0.7022079229354858, 0.2207273691892624, 0.20984570682048798, 0.12914851307868958, 0.2435237318277359, -0.19229573011398315, 0.1943427175283432, 0.39909958839416504, 0.17936047911643982, 0.9543708562850952, -0.3425573408603668, 0.43950942158699036, 0.20055356621742249, -0.24989350140094757, 0.042164988815784454, -0.17188428342342377, 0.4339771568775177, -0.1869429647922516, -0.1428174525499344, 0.22099106013774872, -0.16025932133197784, -0.003897269256412983, 0.17496684193611145, 0.010383740067481995, 0.1408388912677765, 0.054583147168159485, -0.27245989441871643, -0.2982911169528961, -0.07692485302686691, -0.3973248302936554, -0.40004977583885193, -0.08126068860292435, 0.007990926504135132, -0.09127027541399002, -0.26163965463638306, 0.12990598380565643, 0.03972809761762619, -0.4066443145275116, 0.13744178414344788, -0.12833257019519806, -0.0339103527367115, 0.02526366524398327, -0.018781021237373352, 0.2313007116317749, -0.24729669094085693, -0.01183221023529768, -0.1389426290988922, -0.165471151471138, 0.11753644049167633, 0.17827041447162628, 0.08767105638980865, 0.27323222160339355, 0.3476552665233612, 0.32082805037498474, -0.2797981798648834, 0.24504050612449646, -0.03862971439957619, 0.247097909450531, 0.026927100494503975, -0.009423095732927322, -0.7398146390914917, -0.2770708501338959, 0.08140978962182999, 0.5765281915664673, -0.046244487166404724, -0.041251447051763535, 0.22886495292186737, -0.36777326464653015, -0.08741206675767899, 0.12260143458843231, 0.02345774509012699, 0.12558063864707947, 0.4317752420902252, 0.1474374234676361, -0.17110107839107513, -0.003244849620386958, 0.3074451982975006, 0.10083099454641342, 0.1374732255935669, 0.21424078941345215, 0.05120287835597992, -0.4982791841030121, -0.2763269245624542, 0.17299388349056244, 0.0560966320335865, -0.4236967861652374, 0.2555829584598541, 0.03469175100326538, -0.09983038157224655, 0.19837452471256256, 0.2802020013332367, -0.044433124363422394, -0.07016211748123169, -0.23477189242839813, -0.04221263527870178, 0.07784419506788254, 0.4823131561279297, 0.43760764598846436, -0.009276676923036575, 0.04345119372010231, 0.2773645222187042, -0.4098944067955017, -0.10126927495002747, -0.26354286074638367, -0.1706920862197876, 0.10311378538608551, 0.19171595573425293, -0.15709392726421356, -0.24858209490776062, -0.23145464062690735, 0.12177415937185287, 0.1095127984881401, 0.1856372356414795, 0.009959698654711246, -0.22042959928512573, 0.06522323936223984, 0.026853492483496666, 0.06927455216646194, -0.012405331246554852, -0.04422042518854141, -0.40565842390060425, -0.40266305208206177, -0.2240932583808899, -0.2556389570236206, -0.0581011138856411, -0.01862851344048977, -0.2951929569244385, 0.18938617408275604, 0.1526643931865692, -0.14542096853256226, 0.504412055015564, -0.4405687749385834, -0.2880321145057678, -0.2536022663116455, -0.03905540704727173, -0.02043658308684826, -0.1000390350818634, -0.12372724711894989, 0.13223759829998016, 0.08913764357566833, -0.009800772182643414, 0.2713642418384552, -0.14506596326828003, 0.032684870064258575, -0.05425654351711273, 0.14306141436100006, 0.5390293598175049, 0.2918037474155426, -0.49425962567329407, 0.42309677600860596, 0.13871891796588898, -0.06855743378400803, -0.20511819422245026, -0.40187397599220276, 0.2666890323162079, 0.01588210090994835, 0.07364984601736069, -0.21125870943069458, -0.22868037223815918, -0.3007589280605316, -0.046709366142749786, -0.19859056174755096, -0.40654119849205017, -0.2695232927799225, 0.3000282347202301, 0.34996116161346436, -0.28103742003440857, 0.15489691495895386, -0.02092260867357254, -0.02630416303873062, 0.12677256762981415, 0.2693784832954407, 0.39280590415000916, 0.7060083150863647, 0.32522839307785034, -0.4333922266960144, -0.08915185928344727, -0.05499505251646042, 0.43732860684394836, 0.2419595718383789, 0.29881489276885986, 0.3137170672416687, 0.17321453988552094, 0.05102711543440819, 0.07509788870811462, 0.04859299212694168, -0.18603752553462982, -0.054871462285518646, 0.08301083743572235, -0.012910261750221252, -0.1432318389415741, -0.23764941096305847, 0.18426944315433502, -0.3152513802051544, 0.3856135904788971, 0.18624252080917358, 0.07947781682014465, 0.4294982850551605, -0.44281062483787537, 0.1762869507074356, -0.08074112236499786, 0.45672091841697693, -0.2809704542160034, -0.06468366086483002, -0.043220534920692444, 0.105342335999012, 0.30805596709251404, 0.09015733748674393, -0.17980436980724335, 0.2704424262046814, -0.05199906975030899, 0.0788252204656601, -0.4874315559864044, 0.02171311154961586, -0.10577021539211273, 0.2321116030216217, 0.49331793189048767, -0.14538586139678955, 0.2571786940097809, 0.02644866704940796, -0.19357433915138245, -0.1281035840511322, -0.06670988351106644, -0.03816702961921692, -0.06706071645021439, 0.0632709190249443, 0.23522982001304626, -0.4257183074951172, 0.028172824531793594, 0.1450078934431076, -0.21643458306789398, -0.09083244204521179, -0.4721772372722626, -0.2413538098335266, -0.09591756016016006, -0.03373701125383377, 0.0694231390953064, 0.18230578303337097, 0.6906642913818359, 0.36521872878074646, -0.13648508489131927, 0.10336194932460785, -0.34057822823524475, -0.17632140219211578, -0.30863019824028015, -0.22023220360279083, 0.0691794827580452, 0.2312631607055664, 0.4550159275531769, 0.27214348316192627, 0.22781945765018463, -0.06829430907964706, 0.13934426009655, -0.36661863327026367, 0.3984472155570984, -0.18068695068359375, 0.2856488525867462, 0.2190859615802765, -0.029067760333418846, -0.18110822141170502, -0.6279549598693848, 0.22817276418209076, 0.17175912857055664, 0.013129936531186104, -0.049590326845645905, 0.10541451722383499, 0.17741838097572327, 0.3426148295402527, -0.21936073899269104, -0.028270414099097252, -0.22091758251190186, 0.2068750113248825, -0.1463598608970642, -0.22189365327358246, 0.1480945646762848, -0.04416283220052719, -0.01589779742062092, 0.16304156184196472, 0.13581939041614532, 0.07468796521425247, 0.03217193856835365, 0.17456449568271637, 0.4784029424190521, -0.2635795772075653, 0.2802177369594574, -0.250279039144516, 0.001743560889735818, 0.1643894910812378, 0.2768268883228302, -0.17530131340026855, 0.11200777441263199, -0.011954744346439838, -0.30550023913383484, -0.24771665036678314, -0.007318586576730013, 0.3155238628387451, -0.14593788981437683, -0.2534734010696411, -0.07853510230779648, 0.19246967136859894, 0.28319528698921204, 0.3042108118534088, 0.023190023377537727, -0.3225077688694, -0.053712453693151474, 0.029833029955625534, 0.33155590295791626, 0.24892015755176544, -0.19830945134162903, -0.04021493345499039, -0.14521484076976776, 0.3150457739830017, -0.42082828283309937, 0.11106706410646439, -0.2892521619796753, -0.3250943124294281 ]
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.2073034793138504, 0.1424284428358078, -0.025603139773011208, -0.14535008370876312, -0.10259024053812027, -0.11131440103054047, 0.12113548070192337, 0.540885865688324, -0.23658202588558197, 0.01907198317348957, -0.03811702877283096, 0.5862334370613098, -0.16830359399318695, -0.2764606773853302, 0.2058226764202118, -0.04113728925585747, 0.03315221518278122, -0.03620847314596176, -0.21471154689788818, -0.04712576046586037, -0.05001873895525932, -0.4499434530735016, -0.23843984305858612, -0.22347699105739594, -0.012647305615246296, -0.22572432458400726, -0.1654447764158249, 0.07869064807891846, -0.16545775532722473, 0.05516110360622406, -0.11502046883106232, 0.2012871354818344, -0.10800767689943314, 0.16675683856010437, -0.00011678290320560336, -0.13864675164222717, 0.09931473433971405, 0.1305755376815796, -0.3299335241317749, 0.17832092940807343, 0.45150044560432434, -0.0504891499876976, -0.12900543212890625, -0.19089551270008087, 0.19028274714946747, -0.4143750071525574, 0.08657197654247284, -0.11465062201023102, -0.14855320751667023, -0.022918006405234337, 0.11401407420635223, 0.3141118586063385, -0.18185099959373474, 0.2556701600551605, 0.4748249053955078, 0.2703826129436493, -0.37506529688835144, 0.3879559636116028, 0.25867265462875366, -0.021415771916508675, -0.15453539788722992, 0.2556573748588562, -0.1949237883090973, 0.01812339946627617, 0.14307358860969543, 0.17546819150447845, 0.10234465450048447, 0.4606058895587921, 0.10739687830209732, 0.40372586250305176, 0.2905988395214081, -0.25497302412986755, -0.2978286147117615, -0.29418784379959106, 0.2330026924610138, -0.07974647730588913, 0.057025980204343796, 0.30162620544433594, -0.2735321521759033, -0.21540096402168274, -0.09742051362991333, 0.16403424739837646, 0.24801519513130188, -0.20002691447734833, 0.3221798539161682, 0.3900919556617737, 0.20211730897426605, -0.06073103845119476, 0.7018340826034546, -0.10578130930662155, 0.49435269832611084, -0.17129738628864288, 0.021909179165959358, 0.41168591380119324, -0.3191823959350586, -0.26360204815864563, -0.30103880167007446, -0.12554697692394257, -0.07115578651428223, 0.16033409535884857, 0.6939637064933777, 0.21446344256401062, 0.19049924612045288, -0.04739959165453911, 0.04629892483353615, 0.0036277691833674908, -0.3000272214412689, 0.07142322510480881, -0.13240540027618408, 0.0648486316204071, 0.3124971091747284, 0.12530101835727692, -0.07771089673042297, -0.30897414684295654, -0.042621321976184845, -0.22807519137859344, -0.4801683723926544, 0.11605969816446304, 0.009132477454841137, -0.34545883536338806, -0.1375005543231964, -0.05334103852510452, 0.006660926155745983, 0.1520717591047287, -0.14621706306934357, 0.2534677982330322, -0.08213121443986893, -0.1687270551919937, -0.11358708143234253, 0.028761982917785645, -0.03240318223834038, 0.08957327902317047, -0.10629088431596756, 0.07185602933168411, 0.02999686822295189, 0.47170209884643555, -0.25290676951408386, 0.01695539429783821, 0.09523986279964447, 0.32109224796295166, 0.04331056401133537, -0.11361832916736603, 0.08302931487560272, 0.11236751824617386, -0.09799589961767197, -0.14904049038887024, -0.1326773762702942, 0.04593270272016525, -0.3395209014415741, 0.385433167219162, 0.02591378428041935, -0.11795379966497421, 0.0696307122707367, 0.12440647929906845, 0.24364128708839417, -0.2887320816516876, -0.5230554938316345, -0.06483732163906097, -0.031109800562262535, -0.10967995971441269, 0.08879943937063217, -0.05501341074705124, 0.08861960470676422, -0.12884627282619476, 0.06463345140218735, -0.26302987337112427, -0.07936052232980728, 0.1027543917298317, -0.05877462774515152, 0.5555561780929565, 0.4522925913333893, 0.6798373460769653, -0.07100557535886765, 0.056802235543727875, 0.10809420794248581, 0.030906857922673225, 0.6843825578689575, 0.19454216957092285, -0.25321295857429504, -0.01934892311692238, -0.11208964884281158, 0.025333844125270844, 0.3429555892944336, 0.24057398736476898, 0.06896083801984787, -0.07797448337078094, 0.3746804893016815, 0.29429152607917786, 0.04834923520684242, 0.2648986577987671, -0.4871975779533386, -0.13625000417232513, 0.23100343346595764, 0.43126681447029114, -0.6047840118408203, -0.36732083559036255, 0.040988739579916, -0.2627366781234741, 0.34377217292785645, -0.16341987252235413, -0.0241476371884346, -0.0028758130501955748, -0.07283627241849899, 0.00409676181152463, -0.16738298535346985, 0.10091184824705124, -0.2770051956176758, -0.08510272204875946, -0.012308523990213871, -0.09344363957643509, 0.22207321226596832, -0.3609888553619385, 0.18479536473751068, -0.191520094871521, 0.1916128695011139, 0.20728737115859985, -0.01049709226936102, -0.19801275432109833, 0.42995744943618774, -0.10241597145795822, -0.08071433752775192, -0.03103848733007908, -0.2975626587867737, 0.03710882365703583, -0.15968583524227142, -0.13898475468158722, 0.11403120309114456, -0.21693331003189087, 0.13561761379241943, 0.3588957190513611, -0.29142674803733826, 0.07211051881313324, 0.09998318552970886, 0.23706762492656708, -0.0914403572678566, -0.18857397139072418, 0.03440239652991295, 0.24012865126132965, -0.057430677115917206, 0.2263466864824295, 0.11869350075721741, -0.20455339550971985, 0.15607836842536926, -0.053022950887680054, -0.40216782689094543, 0.5432925820350647, -0.484752893447876, 0.3439686894416809, 0.18779326975345612, -0.242019921541214, -0.12566640973091125, 0.2605871558189392, -0.07519511133432388, 0.4508637487888336, 0.5965422987937927, 0.06350787729024887, 0.07480155676603317, 0.40077120065689087, -0.27269235253334045, 0.04917427524924278, 0.44781723618507385, -0.04748418182134628, -0.053760915994644165, 0.07784323394298553, -0.024494336917996407, -0.2125134915113449, -0.08564343303442001, 0.0269688218832016, 0.2142338901758194, 0.26413494348526, 0.11263108998537064, -0.047986701130867004, -0.08722291141748428, -0.23040753602981567, 0.1614469587802887, -0.04659860581159592, 0.08370458334684372, -0.09750854223966599, 0.11205703020095825, -0.030385196208953857, -0.2148163616657257, -0.18301711976528168, 0.09669522941112518, 0.18355518579483032, 0.13545162975788116, 0.06915467232465744, -0.14093485474586487, -0.10865981876850128, -0.1263205111026764, -0.08095857501029968, 0.028073610737919807, -0.10201724618673325, 0.11476089805364609, 0.2489226907491684, -0.20364703238010406, -0.2030913233757019, -0.11689324676990509, 0.33520370721817017, -0.10545100271701813, -0.19403104484081268, -0.18234433233737946, -0.009136552922427654, -0.13431504368782043, 0.04856877028942108, 0.19787470996379852, 0.355869859457016, 0.3271755874156952, 0.1494714766740799, -0.22009526193141937, 0.021561091765761375, 0.09381096065044403, -0.2209097445011139, 0.09694760292768478, -0.3778565526008606, -0.08128924667835236, -0.17701849341392517, -0.4263557195663452, -0.2799152135848999, 0.05943988636136055, -0.1173180565237999, -0.0908799096941948, 0.3733411729335785, 0.1376008689403534, -0.20644979178905487, -0.12013351917266846, -0.049321796745061874, -0.07491457462310791, -0.36066001653671265, 0.3090266287326813, -0.1253741979598999, 0.14228978753089905, -0.0030990561936050653, -0.10964661091566086, -0.024907739832997322, -0.5705385208129883, -0.05548025295138359, 0.15818876028060913, -0.11931323260068893, 0.2787477970123291, 0.1174006462097168, -0.13365784287452698, -0.4510357975959778, -0.06930971890687943, -0.0896495133638382, 0.49836844205856323, -0.07748796045780182, 0.22129182517528534, -0.3810479938983917, -0.034408699721097946, -0.10129323601722717, 0.14044640958309174, 0.46843546628952026, -0.18753589689731598, -0.10237307101488113, 0.3078252971172333, 0.17360682785511017, 0.07016073167324066, 0.23837560415267944, 0.11952408403158188, 0.12133290618658066, 0.13633425533771515, 0.2258579581975937, 0.4733498990535736, -0.04702247679233551, 0.2490292638540268, -0.24660588800907135, 0.04611196741461754, -0.03077060543000698, -0.3000229597091675, 0.1443730741739273, 0.1948065161705017, 0.017513271421194077, -0.12045370042324066, 0.26027342677116394, -0.10879369080066681, -0.2526512145996094, -0.057994186878204346, 0.4636726379394531, 0.16345323622226715, -0.2731418311595917, 0.5276743173599243, -0.2075202912092209, 0.00690113240852952, -0.00998658500611782, 0.2193983495235443, -0.07580570876598358, -0.23321735858917236, 0.08655979484319687, -0.08118822425603867, -0.03938082605600357, -0.0054832445457577705, -0.5912702679634094, -0.09392053633928299, -0.6903495192527771, 0.2243586927652359, 0.20334197580814362, 0.4551718533039093, 0.29346323013305664, -0.30328285694122314, 0.4281889498233795, -0.12670668959617615, 0.2624973952770233, 0.18449179828166962, -0.29109397530555725, 0.20603333413600922, 0.006221274379640818, -0.4882082939147949, -0.07448898255825043, -0.33857133984565735, -0.37024444341659546, 0.09648042172193527, 0.21843919157981873, -0.39186611771583557, 0.02539261430501938, 0.013567149639129639, -0.07724234461784363, -0.015701908618211746, 0.011921141296625137, -0.3758603632450104, -0.24667073786258698, 0.07837488502264023, 0.29980242252349854, -0.05357915908098221, 0.008026041090488434, 0.1029723584651947, 0.23696595430374146, 0.12670090794563293, -0.010369456373155117, 0.06483007222414017, -0.0899246484041214, -0.01972203515470028, -0.00009460136061534286, 0.13765540719032288, 0.19039595127105713, 0.0832221582531929, -0.12752893567085266, -0.05088784173130989, 0.24871693551540375, 0.024896156042814255, -0.10763800144195557, -0.16378240287303925, 0.3971323072910309, 0.3331097960472107, 0.22230412065982819, 0.2512410879135132, 0.043530166149139404, 0.27047204971313477, 0.019348321482539177, -0.4496094584465027, 0.09027492254972458, -0.3458966016769409, -0.07792141288518906, -0.6981348395347595, 0.33537420630455017, 0.30341997742652893, 0.1467079073190689, 0.23826473951339722, -0.13125842809677124, 0.25840049982070923, 0.3906692862510681, 0.18681593239307404, 0.9388628005981445, -0.3655800521373749, 0.4324250817298889, 0.31746599078178406, -0.27353671193122864, 0.07709808647632599, -0.09529782831668854, 0.36206987500190735, -0.166498601436615, -0.06150084733963013, 0.2290954440832138, -0.2028224617242813, -0.03594106063246727, 0.0739554762840271, 0.03641762211918831, 0.12655039131641388, -0.010873020626604557, -0.2703079581260681, -0.27914535999298096, -0.02518513984978199, -0.34611842036247253, -0.4222583770751953, -0.06496089696884155, 0.009078477509319782, -0.12613947689533234, -0.18875855207443237, 0.17642435431480408, 0.10536815971136093, -0.3683369755744934, 0.143790140748024, -0.19497060775756836, -0.023059597238898277, 0.12702304124832153, -0.012713706120848656, 0.22348828613758087, -0.2524961829185486, -0.10773339867591858, -0.1966213583946228, -0.18682436645030975, 0.04352765902876854, 0.1743917167186737, 0.1419888138771057, 0.29099375009536743, 0.32073166966438293, 0.3545377254486084, -0.3061876893043518, 0.20157204568386078, 0.02048569917678833, 0.2604018449783325, 0.08387429267168045, 0.011856434866786003, -0.7292295694351196, -0.250243604183197, 0.09365607053041458, 0.6161047220230103, 0.030132655054330826, -0.053885091096162796, 0.17840567231178284, -0.36538776755332947, -0.09516145288944244, 0.08477020263671875, 0.0038557094521820545, 0.14265383780002594, 0.3974071443080902, 0.21687854826450348, -0.17876394093036652, -0.0021241202484816313, 0.33858367800712585, 0.09163070470094681, 0.17379768192768097, 0.2557829022407532, 0.004442394245415926, -0.4787675142288208, -0.22088339924812317, 0.11957530677318573, 0.09272526204586029, -0.3995617926120758, 0.25782784819602966, 0.030493419617414474, -0.06475929915904999, 0.14373914897441864, 0.2030358761548996, -0.03840688243508339, -0.03166605904698372, -0.30794769525527954, -0.08399776369333267, 0.16713383793830872, 0.48805350065231323, 0.44944944977760315, 0.040727224200963974, 0.005998274311423302, 0.26571664214134216, -0.4514322578907013, -0.18560504913330078, -0.21258331835269928, -0.16431072354316711, 0.11837376654148102, 0.14869752526283264, -0.19627250730991364, -0.24676717817783356, -0.2014063447713852, 0.12161947786808014, 0.10836579650640488, 0.21228395402431488, 0.06900982558727264, -0.1696733832359314, 0.07841230183839798, 0.0565265491604805, 0.06800048053264618, -0.029617121443152428, 0.013002143241465092, -0.4090906083583832, -0.37879103422164917, -0.25914323329925537, -0.22031065821647644, -0.03591058403253555, -0.014361300505697727, -0.32359862327575684, 0.17572800815105438, 0.1370863914489746, -0.10186248272657394, 0.5023980140686035, -0.45584240555763245, -0.28224340081214905, -0.21243883669376373, -0.01172550953924656, 0.0002807173877954483, -0.06079195812344551, -0.13323359191417694, 0.08084474503993988, 0.12201350927352905, -0.06611330062150955, 0.23273436725139618, -0.17602738738059998, 0.031067553907632828, -0.11780121922492981, 0.21235984563827515, 0.5724338293075562, 0.28586941957473755, -0.5049551129341125, 0.4132998585700989, 0.07613137364387512, -0.10946613550186157, -0.20353585481643677, -0.378360778093338, 0.26296544075012207, 0.030783116817474365, 0.05448305606842041, -0.2800431549549103, -0.14984191954135895, -0.4016993045806885, -0.1037762314081192, -0.1208237037062645, -0.43948879837989807, -0.314451664686203, 0.3442714810371399, 0.36132320761680603, -0.2875056564807892, 0.1918441206216812, -0.026815511286258698, 0.014408721588551998, 0.1336641162633896, 0.212620347738266, 0.38951706886291504, 0.7033466100692749, 0.29817086458206177, -0.4683303236961365, -0.09088641405105591, -0.018253156915307045, 0.5345419049263, 0.21816156804561615, 0.3152850866317749, 0.36255648732185364, 0.11964381486177444, 0.060079533606767654, 0.1762862354516983, -0.017581894993782043, -0.14261239767074585, 0.0021404342260211706, 0.06420288980007172, -0.003314024768769741, -0.08596163243055344, -0.2722111642360687, 0.18190410733222961, -0.3435497581958771, 0.33562198281288147, 0.2366923987865448, 0.06772372871637344, 0.4312194883823395, -0.4143008291721344, 0.1808575838804245, -0.10285510867834091, 0.4148302376270294, -0.26387137174606323, -0.14174458384513855, -0.049533694982528687, 0.18888123333454132, 0.24711385369300842, 0.051704809069633484, -0.13872788846492767, 0.2436002641916275, -0.07852848619222641, 0.041172388941049576, -0.5003122687339783, -0.009305471554398537, -0.0582352839410305, 0.22831515967845917, 0.4879381060600281, -0.15855787694454193, 0.2480303794145584, 0.024564485996961594, -0.19470302760601044, -0.10072227567434311, -0.08720627427101135, -0.028839055448770523, -0.10660766065120697, 0.10062592476606369, 0.1622859239578247, -0.37289226055145264, -0.047851406037807465, 0.15605175495147705, -0.11368761211633682, -0.14568716287612915, -0.534534215927124, -0.192979633808136, -0.12560366094112396, 0.08317980915307999, 0.04283841326832771, 0.0916239470243454, 0.7034353017807007, 0.4074104428291321, -0.12637482583522797, 0.1671241670846939, -0.2396189123392105, -0.25130030512809753, -0.2989161014556885, -0.33492517471313477, -0.10494928807020187, 0.24172869324684143, 0.5042905211448669, 0.2844427824020386, 0.32051193714141846, -0.06407614052295685, 0.17687588930130005, -0.32918936014175415, 0.34079065918922424, -0.17317423224449158, 0.225285142660141, 0.25258180499076843, -0.04853812977671623, -0.21709264814853668, -0.6656164526939392, 0.1990625113248825, 0.24311520159244537, -0.005819516722112894, 0.0005775768077000976, 0.032727282494306564, 0.15655465424060822, 0.3020460903644562, -0.174330934882164, -0.05298791453242302, -0.1665409654378891, 0.2265947461128235, -0.16836419701576233, -0.26668447256088257, 0.2494230717420578, 0.02409834787249565, 0.011700906790792942, 0.0665721446275711, 0.12003273516893387, 0.06211429089307785, 0.08302979916334152, 0.15141943097114563, 0.5137014389038086, -0.27192258834838867, 0.2024233043193817, -0.2667105793952942, 0.06970615684986115, 0.14939498901367188, 0.3052285313606262, -0.22604873776435852, 0.04482991248369217, -0.025607068091630936, -0.2617836594581604, -0.19808533787727356, 0.06094323471188545, 0.4382951259613037, -0.17938043177127838, -0.21321500837802887, -0.05143928900361061, 0.2328602373600006, 0.2575274407863617, 0.3161090314388275, 0.13609780371189117, -0.2586584687232971, -0.044945258647203445, -0.0011653847759589553, 0.36427849531173706, 0.16050425171852112, -0.1450720727443695, -0.010718495585024357, -0.14537553489208221, 0.372818261384964, -0.4335767924785614, 0.0835624635219574, -0.31304922699928284, -0.3294511139392853 ]
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.16697487235069275, 0.07589307427406311, -0.07566960155963898, -0.10691533237695694, -0.04517574980854988, -0.10969853401184082, 0.10494489222764969, 0.545972466468811, -0.222426176071167, 0.11074366420507431, -0.01715308055281639, 0.5978962779045105, -0.1472129076719284, -0.22477884590625763, 0.15257832407951355, -0.09172213077545166, 0.019747335463762283, -0.006634544115513563, -0.2984010875225067, -0.0681978091597557, -0.1076798141002655, -0.3407295346260071, -0.19667905569076538, -0.24142949283123016, -0.021104596555233, -0.26711270213127136, -0.16416102647781372, 0.1271979957818985, -0.10860595852136612, 0.03560975566506386, -0.18164658546447754, 0.20367231965065002, -0.10194358229637146, 0.25180360674858093, -0.00010644016583682969, -0.18781723082065582, -0.0013783981557935476, 0.12451282143592834, -0.3185117244720459, 0.17000730335712433, 0.42039766907691956, -0.0366482213139534, -0.18106688559055328, -0.2470211535692215, 0.13357865810394287, -0.2439092993736267, 0.16696496307849884, -0.08826126158237457, -0.0787346139550209, -0.034833814948797226, 0.19461950659751892, 0.30671238899230957, -0.14238615334033966, 0.13171204924583435, 0.5130021572113037, 0.09835461527109146, -0.33345526456832886, 0.23336122930049896, 0.29458847641944885, -0.08632157742977142, -0.17735518515110016, 0.23872670531272888, -0.0959549993276596, -0.06728921085596085, 0.13714297115802765, 0.11447524279356003, 0.09599167853593826, 0.3252634108066559, 0.05916069447994232, 0.4156250059604645, 0.24063310027122498, -0.20182065665721893, -0.2674720883369446, -0.27203425765037537, 0.2022288590669632, -0.04494500160217285, 0.1043059378862381, 0.27044227719306946, -0.23939363658428192, -0.1595277339220047, -0.0910152792930603, 0.18509618937969208, 0.21041734516620636, -0.19178315997123718, 0.2724059522151947, 0.4423378109931946, 0.22302651405334473, -0.13479575514793396, 0.6850679516792297, -0.1429266780614853, 0.35339653491973877, -0.08978409320116043, 0.023688320070505142, 0.4135655462741852, -0.28342920541763306, -0.3294466435909271, -0.24999718368053436, -0.18255311250686646, -0.11076896637678146, 0.1838967353105545, 0.7327418923377991, 0.2453477829694748, 0.21953609585762024, -0.0025336069520562887, 0.004426124971359968, 0.017256122082471848, -0.30335313081741333, 0.06766919046640396, -0.08331921696662903, 0.1741636097431183, 0.18959686160087585, 0.1265304982662201, -0.08755191415548325, -0.3122542202472687, -0.10357781499624252, -0.16771630942821503, -0.48258450627326965, 0.13870927691459656, 0.015534226782619953, -0.2844121754169464, -0.06679034233093262, -0.009928428567945957, 0.0018038151320070028, 0.21510092914104462, -0.1538621336221695, 0.2751544117927551, -0.03062988631427288, -0.23890814185142517, -0.14743615686893463, -0.0921698585152626, -0.08410538733005524, 0.0927618145942688, -0.18541552126407623, 0.011172320693731308, 0.10705724358558655, 0.4471133053302765, -0.18131452798843384, 0.07501287758350372, 0.0932675153017044, 0.31403395533561707, 0.07475455105304718, -0.1450025588274002, 0.05290641263127327, 0.03010026179254055, -0.15387997031211853, -0.18710678815841675, -0.16396920382976532, 0.12983936071395874, -0.2964134216308594, 0.33716148138046265, 0.06345785409212112, -0.11480267345905304, 0.13581782579421997, 0.24199508130550385, 0.253645658493042, -0.2783491313457489, -0.32401931285858154, 0.004214240703731775, -0.030078323557972908, -0.05880611017346382, 0.08890421688556671, 0.007969632744789124, 0.055805567651987076, -0.1506492793560028, 0.03321242332458496, -0.2832566499710083, -0.030103443190455437, 0.13874617218971252, -0.0630682185292244, 0.4716357886791229, 0.3784516453742981, 0.5905824899673462, -0.09272018820047379, 0.05247261002659798, 0.15180794894695282, 0.10007369518280029, 0.6754475831985474, 0.18476681411266327, -0.2222537249326706, 0.006971712689846754, -0.12349557876586914, 0.018920641392469406, 0.32998377084732056, 0.21902070939540863, 0.10644488036632538, -0.04706213250756264, 0.4243720471858978, 0.3086516559123993, 0.05760730057954788, 0.26723945140838623, -0.5271469354629517, -0.16801247000694275, 0.23976294696331024, 0.4268020987510681, -0.4836193323135376, -0.3931618332862854, 0.021559661254286766, -0.24578706920146942, 0.33524101972579956, -0.22232688963413239, 0.004805570002645254, 0.07809722423553467, -0.09887827932834625, 0.0684456080198288, -0.17221194505691528, -0.04616233706474304, -0.22843143343925476, -0.030757302418351173, -0.05111405625939369, -0.021924559026956558, 0.28230637311935425, -0.3760945200920105, 0.13891644775867462, -0.23512308299541473, 0.22310946881771088, 0.1523120403289795, 0.1031891480088234, -0.12225377559661865, 0.31605079770088196, -0.14416751265525818, -0.12498507648706436, -0.0329153947532177, -0.2858458161354065, 0.06023358181118965, -0.1428825557231903, -0.10324005782604218, 0.04142236337065697, -0.17431899905204773, 0.18019278347492218, 0.4312621057033539, -0.320777028799057, 0.08514247834682465, 0.15322992205619812, 0.26042112708091736, -0.1293293982744217, -0.154677152633667, 0.15117333829402924, 0.17788246273994446, -0.0839824378490448, 0.260878324508667, 0.06711974740028381, -0.09817066788673401, 0.11916353553533554, 0.02828432247042656, -0.3607947826385498, 0.5761175155639648, -0.436238169670105, 0.2577604353427887, 0.15059666335582733, -0.2896023988723755, -0.15274453163146973, 0.1924866884946823, -0.06892050057649612, 0.3874967694282532, 0.6559895873069763, 0.09334629774093628, 0.04086434841156006, 0.4048001766204834, -0.3637101352214813, 0.1366247832775116, 0.5051816701889038, 0.01759432442486286, -0.06120668724179268, 0.045488882809877396, 0.09981649369001389, -0.08284963667392731, -0.1516592800617218, 0.059262316673994064, 0.19866663217544556, 0.3086875081062317, 0.1105104610323906, -0.0429086796939373, -0.15223710238933563, -0.2253771722316742, 0.1467135101556778, -0.08106783032417297, 0.14433473348617554, -0.04617529362440109, 0.17314845323562622, 0.028291115537285805, -0.24688085913658142, -0.19587674736976624, 0.10103383660316467, 0.15784578025341034, 0.13009093701839447, 0.04565328359603882, -0.11859317868947983, -0.19288058578968048, -0.1469246745109558, -0.008756350725889206, -0.041058555245399475, -0.06559246778488159, 0.22037634253501892, 0.2674484848976135, -0.296794593334198, -0.24415038526058197, -0.0966949537396431, 0.3949587047100067, -0.09810870885848999, -0.08823183923959732, -0.20226292312145233, 0.043411459773778915, -0.11296048015356064, 0.1577926129102707, 0.20934633910655975, 0.27839788794517517, 0.40658146142959595, 0.14978185296058655, -0.20565839111804962, 0.11259627342224121, -0.003584567690268159, -0.28568732738494873, 0.059744544327259064, -0.2784019112586975, -0.07962911576032639, -0.12883752584457397, -0.3703228831291199, -0.3678687810897827, 0.06624798476696014, -0.174566850066185, -0.14714741706848145, 0.280032753944397, 0.23618587851524353, -0.16279597580432892, -0.23886306583881378, -0.22413212060928345, -0.0004684177110902965, -0.47184696793556213, 0.3313358724117279, -0.07714858651161194, 0.20153401792049408, -0.08522837609052658, -0.12307204306125641, -0.0027070725336670876, -0.4613555371761322, -0.015398039482533932, 0.15072932839393616, -0.16858312487602234, 0.27936768531799316, 0.015095064416527748, -0.17593629658222198, -0.4089837968349457, -0.07974256575107574, -0.04272758960723877, 0.4191712737083435, -0.11284009367227554, 0.21145813167095184, -0.3544738292694092, -0.018840590491890907, -0.10470791906118393, 0.0991765633225441, 0.4139263927936554, -0.14056971669197083, -0.21417883038520813, 0.26707643270492554, 0.18713639676570892, 0.05659860372543335, 0.2416379153728485, 0.16908450424671173, 0.010714096948504448, 0.11639879643917084, 0.2601451277732849, 0.44091272354125977, -0.08313445001840591, 0.3029329478740692, -0.17116326093673706, 0.11694376170635223, -0.07875664532184601, -0.24793924391269684, 0.09799464792013168, 0.1595517098903656, 0.022504085674881935, -0.11012740433216095, 0.35936322808265686, -0.0794384777545929, -0.28852397203445435, -0.09890531748533249, 0.3730286657810211, 0.1068887859582901, -0.29134541749954224, 0.5682034492492676, -0.19538889825344086, 0.013463094830513, -0.016543759033083916, 0.19179962575435638, -0.08916287124156952, -0.20273786783218384, 0.04127192497253418, -0.11330869793891907, -0.07614090293645859, 0.004363175015896559, -0.5783767700195312, -0.11985210329294205, -0.7263134121894836, 0.1553499847650528, 0.23164352774620056, 0.36839649081230164, 0.20241524279117584, -0.3260195255279541, 0.35465407371520996, -0.15723122656345367, 0.3486219644546509, 0.16061599552631378, -0.3252027928829193, 0.26884594559669495, -0.039848580956459045, -0.40781527757644653, -0.06480608135461807, -0.3783377707004547, -0.39346763491630554, 0.16850151121616364, 0.23111554980278015, -0.3417013883590698, -0.032316986471414566, -0.014600606635212898, -0.10423575341701508, -0.005624653305858374, -0.005770497489720583, -0.3624521791934967, -0.2114628404378891, -0.0571436770260334, 0.30833637714385986, -0.050988972187042236, 0.11284776031970978, -0.05035162717103958, 0.10734376311302185, 0.19029785692691803, -0.01955774798989296, 0.12759549915790558, -0.059293750673532486, 0.005624714307487011, 0.030117763206362724, 0.1298808455467224, 0.15271681547164917, 0.14900259673595428, -0.10305796563625336, -0.056141238659620285, 0.15910787880420685, 0.12781837582588196, -0.1362479031085968, -0.22320705652236938, 0.4086350202560425, 0.32340899109840393, 0.23042720556259155, 0.2706472873687744, 0.0015276252524927258, 0.3054817318916321, 0.009950678795576096, -0.34298810362815857, 0.10123865306377411, -0.3108821213245392, -0.14031840860843658, -0.6326966881752014, 0.2537315785884857, 0.23375649750232697, 0.11939534544944763, 0.24094562232494354, -0.27478650212287903, 0.13043425977230072, 0.3508601784706116, 0.17149554193019867, 0.9784497022628784, -0.3513530194759369, 0.4275633990764618, 0.29203763604164124, -0.15993726253509521, 0.11420879513025284, -0.2114717662334442, 0.4349347651004791, -0.16261838376522064, -0.07794797420501709, 0.22067146003246307, -0.10785583406686783, -0.03289526328444481, 0.12910228967666626, -0.035138264298439026, 0.11180372536182404, 0.0240857545286417, -0.22384189069271088, -0.30508485436439514, -0.024868451058864594, -0.36791279911994934, -0.404430627822876, -0.1523011028766632, 0.0756225660443306, -0.035309839993715286, -0.21831455826759338, 0.08456971496343613, 0.056917283684015274, -0.3565791845321655, 0.16710974276065826, -0.1411595344543457, -0.04664814844727516, 0.04243265464901924, -0.004942885600030422, 0.1969112604856491, -0.21986603736877441, -0.08900444209575653, -0.1474565714597702, -0.15716850757598877, 0.12941057980060577, 0.16655588150024414, 0.137765571475029, 0.22410710155963898, 0.31703513860702515, 0.27547818422317505, -0.2594660818576813, 0.280679315328598, -0.09486495703458786, 0.1715533584356308, 0.05873829871416092, 0.010799580253660679, -0.7354446649551392, -0.25900736451148987, 0.06289540976285934, 0.4252830147743225, -0.043512340635061264, 0.011203526519238949, 0.23311813175678253, -0.4184880554676056, -0.16259422898292542, 0.18037788569927216, -0.05645278841257095, 0.06778246909379959, 0.40451779961586, 0.2591698467731476, -0.24430152773857117, -0.05562974885106087, 0.3341701328754425, 0.0881199985742569, 0.1921720802783966, 0.25007423758506775, 0.035750605165958405, -0.444196879863739, -0.3494407534599304, 0.09371577948331833, 0.03107902966439724, -0.28516119718551636, 0.25994041562080383, 0.036974865943193436, -0.1273554265499115, 0.1988561451435089, 0.2838093638420105, -0.039192117750644684, -0.04056816175580025, -0.2472265362739563, -0.09561703354120255, 0.07023724913597107, 0.4469086527824402, 0.4409602880477905, 0.07913681864738464, -0.0008866930729709566, 0.36815279722213745, -0.38916534185409546, -0.12993782758712769, -0.33355289697647095, -0.1338438093662262, -0.013370377011597157, 0.1615583300590515, -0.12461409717798233, -0.27224650979042053, -0.18431182205677032, 0.2149246484041214, 0.19290697574615479, 0.22696292400360107, -0.00565959420055151, -0.29804742336273193, 0.0635206401348114, -0.0011384354438632727, -0.024639194831252098, 0.04457078129053116, 0.013492424972355366, -0.35676857829093933, -0.36194443702697754, -0.22151555120944977, -0.2338102161884308, -0.1148807555437088, -0.014376990497112274, -0.1896769255399704, 0.20719680190086365, 0.15649205446243286, -0.05732015147805214, 0.44896313548088074, -0.4027824401855469, -0.31011998653411865, -0.2046225368976593, -0.010111832059919834, -0.034824665635824203, -0.057654187083244324, -0.061221227049827576, 0.07156574726104736, 0.10078176856040955, -0.039818696677684784, 0.23575520515441895, -0.1027977243065834, -0.03966836631298065, -0.015707669779658318, 0.17463122308254242, 0.5327724814414978, 0.2393195778131485, -0.4209707975387573, 0.3680211007595062, 0.2163216918706894, -0.16680069267749786, -0.1690331995487213, -0.30948784947395325, 0.16265055537223816, 0.06591791659593582, 0.02963590808212757, -0.22509510815143585, -0.1986941248178482, -0.3012600541114807, -0.06372484564781189, -0.19093798100948334, -0.39474067091941833, -0.1797787845134735, 0.32119107246398926, 0.362163245677948, -0.30038827657699585, 0.15532726049423218, -0.031640876084566116, 0.058502197265625, 0.18270999193191528, 0.23907619714736938, 0.368366003036499, 0.6607500910758972, 0.36103200912475586, -0.47243547439575195, -0.11478374898433685, -0.015102230943739414, 0.5250040888786316, 0.23038601875305176, 0.2822842001914978, 0.3461497128009796, 0.185151144862175, 0.08843393623828888, 0.06454282999038696, -0.04554380103945732, -0.0914311408996582, -0.09409870207309723, 0.041921135038137436, -0.011356458999216557, -0.1790166050195694, -0.25839030742645264, 0.19404922425746918, -0.20675133168697357, 0.30139023065567017, 0.25670674443244934, 0.07060897350311279, 0.42158231139183044, -0.4581938683986664, 0.20926183462142944, -0.13241815567016602, 0.4662487804889679, -0.3132483959197998, -0.08374438434839249, 0.0033859622199088335, 0.08791816234588623, 0.29721713066101074, 0.023302394896745682, -0.12688712775707245, 0.21614602208137512, -0.159712553024292, 0.08174362778663635, -0.5459905862808228, 0.027018889784812927, -0.19258548319339752, 0.20172148942947388, 0.5362647771835327, -0.14071358740329742, 0.35264432430267334, 0.09411615133285522, -0.255708247423172, -0.11964099109172821, -0.09641676396131516, -0.04933180287480354, -0.13891324400901794, 0.10644328594207764, 0.23269513249397278, -0.3602103292942047, -0.053647443652153015, 0.10265696793794632, -0.23918163776397705, -0.11132869124412537, -0.48616570234298706, -0.22530151903629303, -0.11796939373016357, 0.023242078721523285, 0.10241085290908813, 0.1478254497051239, 0.7567030191421509, 0.342925488948822, -0.15286536514759064, 0.16617296636104584, -0.36693456768989563, -0.30127421021461487, -0.2292390912771225, -0.27442219853401184, 0.034788571298122406, 0.1922421157360077, 0.47847050428390503, 0.2030567079782486, 0.19486281275749207, -0.03331267088651657, 0.09786951541900635, -0.3102419972419739, 0.33555272221565247, -0.2313392013311386, 0.3123427629470825, 0.1673237532377243, -0.0707293376326561, -0.15205003321170807, -0.6242114305496216, 0.19679419696331024, 0.1044086143374443, 0.09607897698879242, 0.014555945992469788, 0.0407966710627079, 0.18343517184257507, 0.32432156801223755, -0.1760914921760559, -0.07344863563776016, -0.20312853157520294, 0.16176709532737732, -0.1379486471414566, -0.22021076083183289, 0.15565328299999237, -0.012902730144560337, -0.03321720287203789, 0.12385139614343643, 0.15799659490585327, 0.06047723814845085, 0.11387092620134354, 0.1917484700679779, 0.47456374764442444, -0.19447208940982819, 0.24178333580493927, -0.20404289662837982, 0.008096192963421345, 0.18698085844516754, 0.24316400289535522, -0.22535310685634613, 0.21102191507816315, 0.01814219355583191, -0.2957251965999603, -0.2494245022535324, -0.06880894303321838, 0.3604046106338501, -0.18403254449367523, -0.27365708351135254, -0.10925845056772232, 0.1635107845067978, 0.23495978116989136, 0.3031380772590637, 0.02202206291258335, -0.2748110294342041, -0.02333391271531582, 0.03244366869330406, 0.2525327205657959, 0.2655859887599945, -0.1720365732908249, -0.08089624345302582, -0.1346878856420517, 0.25492385029792786, -0.4111461043357849, 0.09482153505086899, -0.27133139967918396, -0.35571080446243286 ]
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.2754460275173187, -0.19817611575126648, -0.019505424425005913, 0.46949896216392517, 0.06568710505962372, 0.19420187175273895, 0.02708504907786846, 0.2684626281261444, 0.08611829578876495, -0.031171778216958046, -0.2506633400917053, -0.06791321933269501, 0.21257668733596802, 0.03078717365860939, -0.06282274425029755, -0.1890517622232437, -0.14600235223770142, 0.10141225904226303, -0.23699243366718292, -0.026956569403409958, -0.29048314690589905, 0.2036181092262268, -0.09069612622261047, 0.1271258145570755, 0.2401781678199768, 0.07800339162349701, -0.050166722387075424, -0.19689618051052094, -0.15964077413082123, -0.27482306957244873, 0.5160507559776306, 0.36011624336242676, 0.05865374952554703, 0.1450445055961609, -0.00012193863949505612, 0.08257342875003815, 0.18356621265411377, -0.1369367092847824, -0.36360496282577515, -0.13873504102230072, -0.5023859739303589, -0.37979546189308167, -0.05707088112831116, -0.045134466141462326, -0.028694575652480125, -0.413944274187088, 0.29480069875717163, -0.16180089116096497, 0.20845060050487518, 0.314953476190567, 0.12140615284442902, 0.19129952788352966, -0.1842956244945526, 0.05881204456090927, 0.2260122001171112, -0.2973449230194092, -0.15996316075325012, 0.16287225484848022, 0.09113685041666031, -0.09987082332372665, 0.18825624883174896, 0.03944971784949303, 0.1054433286190033, 0.46855467557907104, 0.08817525207996368, 0.18371951580047607, 0.034379228949546814, -0.3379811942577362, 0.13038218021392822, 0.4677026569843292, 0.7240514755249023, 0.013422227464616299, -0.5606611967086792, 0.10949522256851196, -0.18644416332244873, -0.17934848368167877, 0.1590449959039688, 0.23853275179862976, -0.38892731070518494, -0.009706364013254642, -0.25802528858184814, 0.15412692725658417, -0.21500712633132935, 0.5520462989807129, -0.15386685729026794, 0.6958840489387512, 0.23100969195365906, 0.10350067168474197, 0.20300137996673584, -0.07915075123310089, -0.0816328376531601, -0.10970330238342285, 0.06498812139034271, 0.11401946097612381, -0.4582260847091675, -0.14196766912937164, -0.29280993342399597, -0.05652417987585068, 0.09610901772975922, 0.03704794868826866, 0.2588019371032715, 0.3004489243030548, 0.07329266518354416, -0.09017179906368256, 0.21490181982517242, -0.037255484610795975, -0.13630273938179016, -0.16158394515514374, 0.3071223795413971, 0.02342723309993744, 0.10868969559669495, 0.12783949077129364, -0.014629349112510681, -0.0734969973564148, -0.33336278796195984, 0.04294366016983986, -0.06410355120897293, 0.09005378186702728, -0.4714156985282898, -0.18300916254520416, -0.17255747318267822, -0.30953216552734375, -0.2633676528930664, 0.27497008442878723, -0.14724348485469818, 0.2098657339811325, 0.03502130135893822, 0.16416271030902863, -0.03738471865653992, -0.23662583529949188, -0.08513062447309494, -0.07760072499513626, -0.11943245679140091, 0.08527646213769913, 0.38735926151275635, 0.2008734494447708, 0.10212817788124084, -0.19794315099716187, -0.46242162585258484, 0.1757555454969406, 0.04625183343887329, -0.1504182517528534, -0.3103296458721161, 0.21442389488220215, 0.022912299260497093, 0.5044225454330444, 0.004303893074393272, 0.26739367842674255, -0.2623717486858368, -0.030695658177137375, 0.04746372997760773, 0.13353171944618225, 0.15918102860450745, 0.03753986582159996, -0.17818307876586914, -0.0758744329214096, -0.4116550385951996, 0.15831664204597473, -0.19792498648166656, 0.038448676466941833, -0.3133223354816437, -0.054228127002716064, -0.44365864992141724, -0.06379170715808868, 0.2325400561094284, 0.37268319725990295, -0.29438841342926025, -0.1404791921377182, -0.39399421215057373, -0.07723189145326614, 0.27610066533088684, 0.41654232144355774, -0.01160918828099966, 0.038996584713459015, -0.13222861289978027, 0.013520602136850357, 0.6128701567649841, -0.06600499898195267, -0.5310537219047546, 0.4080590009689331, -0.35299721360206604, 0.0949893444776535, 0.2438894510269165, 0.22271740436553955, 0.041215624660253525, -0.03812158480286598, 0.11256036162376404, 0.5967073440551758, -0.06554540246725082, 0.04327992722392082, 0.03398878127336502, -0.3913998305797577, 0.4888462424278259, 0.15824651718139648, -0.07161451876163483, 0.19043190777301788, 0.04067118838429451, 0.2375052273273468, 0.4658764898777008, 0.0016449998365715146, 0.12567970156669617, -0.03676958382129669, -0.07681763917207718, -0.18691565096378326, 0.03716912493109703, 0.08056943863630295, -0.8039489388465881, 0.3596591651439667, -0.042655088007450104, -0.07575264573097229, 0.05913814529776573, 0.049841899424791336, -0.16872182488441467, -0.338478684425354, 0.11574031412601471, 0.19466198980808258, 0.057086680084466934, 0.4249056577682495, -0.024332018569111824, -0.07355174422264099, 0.030615685507655144, 0.24240189790725708, 0.1400821954011917, 0.07456675171852112, 0.0931105688214302, 0.014226104132831097, 0.02106175385415554, 0.191471129655838, 0.5240713953971863, -0.23234771192073822, 0.12026683986186981, -0.19814468920230865, -0.04779877886176109, 0.04047981649637222, -0.13486631214618683, 0.3278016448020935, 0.04727650061249733, -0.10493586957454681, 0.006230479571968317, -0.30153873562812805, -0.02321937493979931, 0.5032979846000671, 0.09256269782781601, -0.21297906339168549, -0.07480151206254959, 0.2086767703294754, 0.38254818320274353, 0.330942839384079, 0.317320317029953, 0.12931251525878906, 0.3910723030567169, -0.1069188043475151, 0.19997869431972504, -0.1739581674337387, 0.2182212769985199, 0.12086140364408493, -0.03252319246530533, -0.04823015257716179, -0.14407309889793396, 0.44795456528663635, 0.46995359659194946, -0.046750981360673904, 0.03592567890882492, 0.2993102967739105, 0.008681663312017918, -0.05881476029753685, -0.2114625722169876, 0.43952852487564087, 0.4815124273300171, 0.002318499144166708, 0.3339686691761017, -0.03548818081617355, 0.28881242871284485, -0.4605613350868225, 0.21123887598514557, 0.19931484758853912, -0.3576088845729828, 0.1509038507938385, 0.05442510545253754, -0.0624079667031765, -0.15878081321716309, 0.054461631923913956, 0.36493584513664246, 0.3378576934337616, -0.12094424664974213, 0.10752258449792862, -0.6640238761901855, -0.5608868598937988, -0.14699415862560272, -0.14501552283763885, -0.12775211036205292, -0.2961665093898773, -0.034159135073423386, 0.3210785984992981, -0.14420747756958008, 0.04917548969388008, -0.005148155149072409, 0.17365454137325287, -0.03599706292152405, 0.08244393020868301, -0.3095356523990631, -0.06275469809770584, -0.26310938596725464, 0.041399430483579636, 0.363228440284729, 0.2588675618171692, 0.342849999666214, -0.30351147055625916, -0.21657484769821167, -0.25071102380752563, -0.08788976818323135, -0.1628996729850769, -0.12060650438070297, 0.044017769396305084, -0.050941985100507736, 0.6214654445648193, 0.05943235754966736, -0.28011929988861084, 0.09676600247621536, 0.008084031753242016, -0.19963940978050232, -0.02947881445288658, -0.07286681234836578, 0.08129534870386124, -0.08191467821598053, -0.49503734707832336, -0.5639947056770325, -0.448896199464798, 0.3042042851448059, -0.026078110560774803, 0.4307359755039215, 0.1804792284965515, -0.4492824375629425, -0.02452419139444828, 0.20012348890304565, 0.17837631702423096, -0.09939919412136078, 0.21117328107357025, 0.5299036502838135, 0.04873811826109886, -0.36808669567108154, 0.132400780916214, 0.18441474437713623, 0.19656389951705933, 0.53873610496521, -0.5226669311523438, 0.17225047945976257, -0.19681617617607117, -0.3020077347755432, 0.26345184445381165, -0.2586895227432251, 0.15619075298309326, -0.286967009305954, -0.12371242046356201, -0.05307946726679802, -0.16027185320854187, 0.0036500876303762197, 0.1923755407333374, 0.2642640769481659, 0.10584242641925812, 0.20241567492485046, 0.08679032325744629, 0.39317697286605835, 0.2769286632537842, -0.012825814075767994, 0.41065436601638794, 0.029259128496050835, -0.1475883573293686, 0.16733336448669434, -0.26762425899505615, 0.052417777478694916, -0.12297158688306808, 0.36583027243614197, 0.44811806082725525, -0.25413212180137634, -0.18315449357032776, -0.3033004105091095, 0.09402639418840408, -0.010096522979438305, -0.39309191703796387, 0.004198063630610704, 0.012255712412297726, 0.052595753222703934, 0.21464413404464722, -0.0400630459189415, -0.03320017084479332, -0.310588002204895, 0.01087050698697567, 0.293523371219635, -0.04516125097870827, 0.18504947423934937, -0.028055742383003235, -0.09780862927436829, -0.5492727756500244, 0.28949764370918274, 0.07632307708263397, 0.7073532938957214, -0.13268043100833893, 0.15208789706230164, 0.07236665487289429, -0.01453696470707655, 0.3030673861503601, -0.17299313843250275, 0.464315801858902, 0.14678515493869781, -0.17201460897922516, -0.34085941314697266, -0.14191675186157227, -0.1690538078546524, -0.18522468209266663, 0.30358749628067017, 0.35251349210739136, -0.5763117074966431, -0.3394086956977844, 0.0019277902320027351, 0.1817186176776886, -0.1563268005847931, 0.09981761872768402, -0.11488477140665054, -0.42487508058547974, -0.0797264575958252, -0.197315514087677, -0.14185912907123566, 0.15135541558265686, -0.02585441805422306, -0.10205192118883133, 0.11128056049346924, -0.11258126050233841, 0.10089351236820221, 0.09681382030248642, 0.011181015521287918, 0.4100051820278168, 0.2851952612400055, 0.12453079968690872, 0.12302769720554352, 0.12083424627780914, 0.48839810490608215, 0.22907741367816925, 0.05280769243836403, 0.2032565325498581, -0.06111200898885727, -0.10436848551034927, 0.5792757272720337, 0.018354127183556557, 0.24894165992736816, -0.06978899240493774, 0.13381582498550415, -0.06251957267522812, 0.14621500670909882, 0.2862616181373596, -0.34408724308013916, -0.20975689589977264, -0.3265933692455292, 0.4035038650035858, 0.08485525101423264, -0.10496161133050919, 0.3273228704929352, -0.08339183032512665, -0.23069944977760315, -0.029858361929655075, 0.12379961460828781, 0.9365194439888, -0.16325877606868744, 0.19266507029533386, -0.09682988375425339, 0.01930822618305683, 0.3620099127292633, -0.006212431006133556, 0.1284441500902176, -0.06104150414466858, -0.35176903009414673, -0.06684277206659317, 0.11291669309139252, -0.024647092446684837, 0.33455690741539, -0.2419378161430359, 0.4412821829319, 0.11582058668136597, 0.3251466751098633, 0.428950697183609, 0.15136326849460602, 0.034783735871315, -0.04036363586783409, -0.2547503709793091, 0.0458969920873642, -0.198232963681221, 0.48789146542549133, -0.021125001832842827, -0.34432291984558105, -0.19886444509029388, -0.09885311126708984, -0.41963791847229004, 0.04158627614378929, -0.39568227529525757, 0.035849884152412415, -0.310217022895813, -0.09451169520616531, 0.15917979180812836, 0.09623607248067856, 0.20750971138477325, 0.07682326436042786, -0.4566870629787445, 0.062099047005176544, -0.6321644186973572, -0.03216242417693138, 0.06858474761247635, -0.13180336356163025, -0.142451211810112, -0.19648616015911102, -0.11432988941669464, -0.1696123629808426, 0.10906290262937546, -0.222417414188385, -0.0756763219833374, -0.10237164795398712, -0.44788113236427307, 0.25474822521209717, -0.1786806285381317, -0.16087108850479126, -0.2535405457019806, -0.12254416942596436, 0.04665170982480049, -0.1645885705947876, -0.039700914174318314, 0.2860140800476074, 0.12732510268688202, -0.196333110332489, -0.0019032432464882731, 0.6198269724845886, 0.002909358823671937, 0.1054774820804596, 0.39534109830856323, 0.05065494030714035, -0.16048216819763184, -0.27048173546791077, -0.38110458850860596, -0.10607896745204926, -0.16254648566246033, -0.07819118350744247, -0.21014150977134705, 0.014031206257641315, -0.006037847138941288, 0.4558546245098114, -0.0392552874982357, 0.16820262372493744, 0.028010820969939232, -0.6202654242515564, -0.16097049415111542, 0.1318269520998001, -0.17653973400592804, 0.11990015208721161, -0.5219160914421082, 0.11923820525407791, 0.11358229070901871, 0.4160391092300415, -0.20921289920806885, 0.056569550186395645, -0.3388039767742157, 0.04710513353347778, 0.28803926706314087, -0.07068268209695816, 0.228994220495224, 0.18862532079219818, -0.03417541831731796, 0.025163335725665092, -0.35935303568840027, -0.05424061417579651, -0.021897517144680023, 0.24470071494579315, 0.19392161071300507, -0.3757941722869873, 0.20784617960453033, -0.2565252184867859, -0.0859251320362091, -0.018844807520508766, 0.022074434906244278, -0.11195654422044754, 0.05930640920996666, 0.03825562074780464, 0.2219022959470749, 0.14166927337646484, -0.2665587365627289, 0.17436836659908295, 0.03052760660648346, 0.37590083479881287, 0.10191088914871216, 0.29916509985923767, 0.04688994586467743, -0.08483348786830902, -0.45549625158309937, -0.2001154124736786, 0.1027136743068695, 0.11048031598329544, 0.3243233561515808, 0.02502007596194744, -0.020086685195565224, 0.00199639773927629, 0.1979026347398758, 0.5765167474746704, 0.014755871146917343, -0.0014472331386059523, 0.10048487782478333, 0.02530837245285511, -0.2922023832798004, -0.12871046364307404, 0.41137415170669556, -0.020106973126530647, -0.040984123945236206, 0.06180243939161301, 0.12894773483276367, -0.26633962988853455, -0.009403029456734657, -0.20226363837718964, 0.4215310215950012, -0.07479564845561981, 0.09205137193202972, 0.37485185265541077, 0.1693940907716751, 0.07756629586219788, -0.02182510867714882, 0.048517100512981415, 0.16034278273582458, 0.24484947323799133, -0.25888150930404663, 0.22829972207546234, -0.10190021246671677, 0.05284605547785759, -0.10008150339126587, -0.31351378560066223, -0.1546792984008789, 0.6282545328140259, -0.02576707862317562, 0.00915271695703268, 0.2310027927160263, 0.09641311317682266, -0.05311950668692589, -0.24432438611984253, -0.3528068959712982, 0.17909608781337738, 0.2587442696094513, -0.1399995982646942, -0.22767789661884308, -0.07662490010261536, -0.4428304433822632, 0.15167686343193054, -0.14572453498840332, -0.4017064869403839, 0.2690562605857849, 0.27685460448265076, 0.06004200130701065, -0.2822735905647278, -0.38528943061828613, -0.10959881544113159, -0.04000949114561081, -0.3327305316925049, 0.19105970859527588, 0.011470417492091656, -0.1317569762468338, 0.19071491062641144, 0.16743580996990204, -0.038651008158922195, 0.17617934942245483, 0.046145204454660416, 0.17674347758293152, -0.05755631625652313, -0.08590216934680939, -0.09754116833209991, 0.2834540903568268, 0.25563013553619385, -0.19364480674266815, 0.47116610407829285, -0.01744825951755047, -0.05364005267620087, 0.18638578057289124, 0.19680573046207428, -0.21368122100830078, -0.1679442822933197, 0.4751255214214325, -0.10480009019374847, 0.07415054738521576, -0.06537282466888428, -0.11764509975910187, -0.2411353886127472, -0.13659881055355072, -0.04889548569917679, -0.10711518675088882, 0.33330583572387695, 0.048465240746736526, 0.006460043601691723, -0.15351779758930206, 0.9997261166572571, -0.04361702501773834, 0.24739612638950348, -0.24256309866905212, -0.3746016323566437, -0.6246228814125061, 0.09660647064447403, -0.23219691216945648, 0.08987975865602493, 0.21224839985370636, 0.1397722363471985, 0.10168188065290451, 0.2786851227283478, 0.0979442447423935, 0.557871401309967, -0.2036716789007187, 0.24890264868736267, -0.4591290354728699, -0.30364280939102173, 0.01576634682714939, 0.4082072377204895, -0.2625908851623535, -0.4670155942440033, 0.48134663701057434, -0.3863253593444824, -0.04986840486526489, -0.05338339880108833, -0.09023451805114746, 0.24367627501487732, 0.3555133640766144, 0.3386853039264679, 0.011722498573362827, 0.6352941989898682, 0.028519531711935997, -0.1947278380393982, -0.3011881113052368, -0.041486531496047974, -0.11973194032907486, -0.006022082641720772, 0.1648760586977005, 0.1999557763338089, 0.04873060807585716, 0.45054665207862854, -0.2935018539428711, 0.22605063021183014, -0.2680617570877075, 0.28871652483940125, 0.1474457085132599, 0.19202516973018646, -0.19043713808059692, 0.08863095939159393, 0.12658053636550903, -0.03108878806233406, -0.05998872593045235, -0.15645259618759155, -0.5516499280929565, -0.2328881323337555, 0.5788877606391907, -0.2664411664009094, -0.2547086775302887, -0.15979957580566406, 0.3558368682861328, -0.04259425401687622, 0.30840981006622314, -0.03204534947872162, 0.20630696415901184, 0.19830693304538727, -0.09434855729341507, -0.3142537474632263, 0.22106242179870605, 0.09234482049942017, -0.3264968693256378, 0.03958083316683769, 0.035566382110118866, 0.19239620864391327, -0.4283828139305115, -0.28561440110206604, -0.21666599810123444 ]
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.2686089277267456, -0.14047524333000183, -0.007186468690633774, 0.5020002126693726, -0.016840487718582153, 0.22515735030174255, -0.053077373653650284, 0.29936692118644714, 0.09113503992557526, -0.03681419789791107, -0.22522687911987305, -0.07992782443761826, 0.11619117110967636, 0.0058764563873410225, 0.03430517390370369, -0.20816570520401, -0.11932805925607681, 0.03417997807264328, -0.31830593943595886, 0.008012944832444191, -0.3116196095943451, 0.14688555896282196, -0.08682117611169815, 0.07337029278278351, 0.22406473755836487, -0.006965207401663065, -0.20527881383895874, -0.025471758097410202, -0.10000967234373093, -0.339428573846817, 0.42789533734321594, 0.29475781321525574, 0.08440370112657547, 0.22821515798568726, -0.00011492524208733812, 0.07099433988332748, 0.16644403338432312, -0.18155644834041595, -0.342771977186203, -0.09165254235267639, -0.5097864270210266, -0.44456037878990173, -0.13383446633815765, -0.0916886031627655, -0.04989214241504669, -0.4900563955307007, 0.2561156451702118, -0.15688611567020416, 0.3314901888370514, 0.3418521285057068, 0.16443438827991486, 0.24183516204357147, -0.14621354639530182, -0.008507873862981796, 0.26816439628601074, -0.24180267751216888, -0.11912821233272552, 0.17687273025512695, 0.08581753075122833, -0.06470655649900436, 0.20198772847652435, 0.05394362285733223, 0.050722960382699966, 0.4143848419189453, 0.064801424741745, 0.11472616344690323, -0.006697733420878649, -0.2883559465408325, 0.06572984904050827, 0.40049827098846436, 0.7070282101631165, 0.02806866355240345, -0.5350028872489929, 0.09411376714706421, -0.031239787116646767, -0.1249263659119606, 0.19940251111984253, 0.2483089566230774, -0.28390780091285706, 0.023874957114458084, -0.21421878039836884, 0.04852092266082764, -0.1946801096200943, 0.5462663769721985, -0.033570487052202225, 0.6662644743919373, 0.23001165688037872, 0.05126837641000748, 0.08502111583948135, -0.034522395581007004, 0.08300663530826569, -0.1274171769618988, 0.09340690076351166, 0.001282288460060954, -0.31663423776626587, -0.09422590583562851, -0.2909420430660248, -0.017359338700771332, 0.04053143039345741, 0.008377326652407646, 0.29514971375465393, 0.2358808070421219, 0.01831461302936077, -0.0712847113609314, 0.17815850675106049, -0.10286617279052734, -0.1670801341533661, -0.23948653042316437, 0.3152790665626526, 0.19256114959716797, 0.13043664395809174, 0.14077240228652954, -0.06345334649085999, -0.14057011902332306, -0.4265269339084625, 0.1794080138206482, 0.06780648231506348, 0.08191996067762375, -0.303238183259964, -0.2359868288040161, -0.09528504312038422, -0.25852882862091064, -0.23335875570774078, 0.2315390706062317, -0.22320519387722015, 0.3033597767353058, -0.014074013568460941, 0.08793074637651443, -0.07828006893396378, -0.3754117786884308, -0.11158294230699539, -0.06193603575229645, -0.09473647177219391, 0.13759522140026093, 0.46063339710235596, 0.23278389871120453, 0.2125830054283142, -0.18556247651576996, -0.3248114585876465, 0.12201879173517227, 0.08272974193096161, -0.008906709030270576, -0.2034355252981186, 0.20949658751487732, 0.038902971893548965, 0.5146358609199524, -0.015260022133588791, 0.24599656462669373, -0.2595427930355072, -0.018440624698996544, -0.06530790030956268, -0.02785681188106537, 0.165527805685997, 0.09226363152265549, -0.16114264726638794, -0.14668257534503937, -0.33697280287742615, 0.029697135090827942, -0.19424223899841309, -0.0796273723244667, -0.3151358664035797, -0.09356708824634552, -0.3342669904232025, -0.12862008810043335, 0.24336044490337372, 0.42424777150154114, -0.3487027883529663, -0.008513737469911575, -0.375948041677475, -0.03514409065246582, 0.29230859875679016, 0.3570441007614136, -0.07959819585084915, 0.07169308513402939, -0.15897433459758759, -0.1769256442785263, 0.5281010270118713, -0.13438808917999268, -0.47258657217025757, 0.27041682600975037, -0.3284672200679779, 0.17230141162872314, 0.24602344632148743, 0.18703432381153107, 0.026748251169919968, -0.08350539952516556, 0.10471371561288834, 0.6350845098495483, 0.0012760418467223644, 0.05151132866740227, -0.07068078219890594, -0.35615861415863037, 0.3798070251941681, 0.19108779728412628, -0.04785601422190666, 0.12341712415218353, -0.02624666504561901, 0.22350479662418365, 0.4299488365650177, -0.006066020578145981, 0.2387934774160385, -0.019067762419581413, -0.15577217936515808, -0.13213737308979034, 0.029181575402617455, 0.0744897648692131, -0.7336920499801636, 0.31866976618766785, -0.10532908141613007, -0.16525599360466003, 0.08107642084360123, -0.0034322708379477262, -0.27512040734291077, -0.34408077597618103, 0.07906026393175125, 0.097276471555233, 0.10508833080530167, 0.5249677896499634, -0.041288111358881, -0.08312015980482101, 0.00021331854804884642, 0.18629731237888336, 0.1373162567615509, 0.040224798023700714, -0.04189296439290047, 0.05326627939939499, -0.04454566165804863, 0.17131775617599487, 0.5440144538879395, -0.25675591826438904, 0.1717381775379181, -0.21304455399513245, -0.037135228514671326, 0.13588112592697144, -0.17396442592144012, 0.36118069291114807, 0.11197104305028915, -0.17929886281490326, 0.09265272319316864, -0.37938934564590454, 0.0370958149433136, 0.5412626266479492, 0.06411725282669067, -0.13621409237384796, -0.07269436866044998, 0.1897851526737213, 0.14487038552761078, 0.2603432238101959, 0.292127400636673, 0.14364130795001984, 0.4012100398540497, -0.14104634523391724, 0.10606515407562256, -0.08868127316236496, 0.16131623089313507, 0.12437891215085983, -0.1367560774087906, -0.09580576419830322, -0.1503303349018097, 0.41068732738494873, 0.4148618280887604, -0.037220630794763565, 0.018788311630487442, 0.2357938438653946, -0.06680356711149216, -0.07496702671051025, -0.22412368655204773, 0.5326935052871704, 0.4717300832271576, 0.056289657950401306, 0.31552156805992126, 0.0273677259683609, 0.26278814673423767, -0.49306976795196533, 0.2584999203681946, 0.20685221254825592, -0.3441704213619232, 0.20358820259571075, 0.07712296396493912, -0.1378408968448639, -0.1374782770872116, 0.07162034511566162, 0.38226330280303955, 0.257313996553421, -0.19862985610961914, 0.05366043001413345, -0.6793518662452698, -0.5351994037628174, -0.34343910217285156, -0.2511226534843445, -0.1482519656419754, -0.3052472770214081, 0.12821558117866516, 0.27858787775039673, -0.280434250831604, 0.12026768177747726, 0.031788650900125504, 0.22599898278713226, -0.17382878065109253, 0.19847938418388367, -0.2139066904783249, -0.13563565909862518, -0.25482648611068726, 0.0976744294166565, 0.35864007472991943, 0.337622731924057, 0.2934269309043884, -0.36458346247673035, -0.19571341574192047, -0.31089484691619873, -0.032551415264606476, -0.15991578996181488, -0.003614572575315833, 0.1372745782136917, -0.03901301696896553, 0.5934833288192749, 0.132496178150177, -0.3987886905670166, 0.15634289383888245, -0.009373682551085949, -0.04489969089627266, -0.06346219778060913, -0.09649982303380966, 0.0993853360414505, -0.034102097153663635, -0.623754620552063, -0.5904383659362793, -0.523464024066925, 0.1860349178314209, -0.03532479703426361, 0.4430011510848999, 0.13969667255878448, -0.3087505102157593, -0.04156510531902313, 0.10248124599456787, 0.1844177097082138, -0.05666785314679146, -0.02802615985274315, 0.5375439524650574, -0.1619543433189392, -0.3553982675075531, 0.17279517650604248, 0.20596149563789368, 0.2009565532207489, 0.46326306462287903, -0.5046480894088745, 0.06467799842357635, -0.11976687610149384, -0.2729349732398987, 0.1870686411857605, -0.1981201022863388, 0.14202092587947845, -0.1899034082889557, -0.17568130791187286, -0.09216193854808807, -0.11020560562610626, -0.04741736873984337, 0.15425829589366913, 0.36092624068260193, 0.10701581090688705, 0.05806959792971611, 0.054027434438467026, 0.5281322002410889, 0.21440544724464417, 0.028844941407442093, 0.38253745436668396, 0.06985621899366379, -0.09675750881433487, 0.2006232738494873, -0.2211504429578781, 0.05593321472406387, -0.14933685958385468, 0.35215693712234497, 0.4451560378074646, -0.17744575440883636, -0.15998049080371857, -0.3324054479598999, 0.013521019369363785, -0.11741261184215546, -0.4121014177799225, 0.06760901212692261, 0.07657685875892639, 0.08481569588184357, 0.2502114772796631, -0.090730220079422, -0.10477077215909958, -0.2486218810081482, 0.14011766016483307, 0.28660231828689575, -0.055487699806690216, 0.22252978384494781, -0.11129214614629745, -0.08390630781650543, -0.42190730571746826, 0.32723668217658997, 0.06965376436710358, 0.6666911840438843, -0.07275743037462234, 0.0959879532456398, 0.08111829310655594, -0.04277324303984642, 0.32694748044013977, -0.25895145535469055, 0.36647695302963257, 0.14765188097953796, -0.02703826129436493, -0.3202752470970154, -0.18055184185504913, -0.1551136076450348, -0.13633029162883759, 0.2854502201080322, 0.2413642257452011, -0.5075768828392029, -0.26471927762031555, -0.012012082152068615, 0.3046761751174927, -0.22636941075325012, 0.12715362012386322, -0.09268098324537277, -0.454677551984787, -0.16863495111465454, -0.24838680028915405, -0.1952328085899353, 0.047671061009168625, -0.06362266838550568, -0.10803987830877304, 0.12068268656730652, 0.013032644987106323, -0.008906343951821327, 0.10070803761482239, 0.11346078664064407, 0.4704127311706543, 0.2650996744632721, 0.1576223224401474, 0.26958969235420227, 0.2070242017507553, 0.44629934430122375, 0.15909351408481598, 0.0876426249742508, 0.11125718057155609, -0.08229592442512512, -0.015039323829114437, 0.5899682641029358, 0.07582878321409225, 0.19440282881259918, 0.07974577695131302, 0.11392433196306229, -0.11585524678230286, 0.16705922782421112, 0.308641254901886, -0.45667704939842224, -0.15484951436519623, -0.3943791687488556, 0.30803072452545166, 0.05182171240448952, -0.11398272216320038, 0.3615950644016266, -0.09870345890522003, -0.21756872534751892, 0.056677304208278656, 0.11349271237850189, 1.0516223907470703, -0.05844404175877571, 0.1815832257270813, -0.13888883590698242, -0.09308242052793503, 0.43725213408470154, 0.005629232153296471, 0.23013487458229065, -0.040001027286052704, -0.3949955403804779, -0.03987017273902893, 0.1387973576784134, 0.0006318727973848581, 0.3304264545440674, -0.30923521518707275, 0.4790842533111572, 0.14807036519050598, 0.2751794457435608, 0.27326861023902893, 0.0889243632555008, 0.07638629525899887, -0.09823538362979889, -0.35726383328437805, 0.05401357263326645, -0.20711126923561096, 0.45920202136039734, -0.11649290472269058, -0.3337392807006836, -0.1740611046552658, -0.06244775280356407, -0.3034552335739136, 0.05112263187766075, -0.2851749658584595, 0.056032694876194, -0.3349588215351105, -0.05035891383886337, 0.10389824956655502, 0.07654999196529388, 0.20551249384880066, 0.12842752039432526, -0.4939320981502533, 0.18279971182346344, -0.568478524684906, -0.09731364250183105, 0.01501526590436697, -0.09198595583438873, -0.15245214104652405, -0.2483958899974823, -0.1820303201675415, -0.12578433752059937, 0.08382610976696014, -0.1685774326324463, -0.04821804165840149, -0.17962448298931122, -0.2898654639720917, 0.23559018969535828, -0.14086800813674927, -0.10408873111009598, -0.1262221485376358, -0.21863944828510284, 0.10434407740831375, -0.23954851925373077, -0.10402446240186691, 0.27270394563674927, 0.10630765557289124, -0.17497870326042175, -0.03202079236507416, 0.6141954660415649, -0.00271809846162796, 0.12574049830436707, 0.5313013195991516, 0.18200437724590302, -0.10840197652578354, -0.26233136653900146, -0.32096752524375916, -0.2857595980167389, -0.32478222250938416, -0.07233498990535736, -0.13970915973186493, 0.04437362402677536, -0.014888925477862358, 0.4144516587257385, 0.0939491018652916, 0.18574258685112, -0.00608524726703763, -0.5259038209915161, -0.1334533542394638, 0.1294778436422348, 0.042193956673145294, 0.09200066328048706, -0.41934263706207275, 0.03450606018304825, 0.16744494438171387, 0.3862774670124054, -0.28897032141685486, 0.09076662361621857, -0.3084712624549866, 0.10500127077102661, 0.18382628262043, -0.01477163378149271, 0.13692249357700348, 0.21861650049686432, -0.020785043016076088, -0.0205850750207901, -0.2606441080570221, -0.07913634181022644, -0.020867764949798584, 0.2387755811214447, 0.08866894990205765, -0.3916057348251343, 0.1831960529088974, -0.24717703461647034, -0.06042224541306496, 0.05260711908340454, -0.06636417657136917, -0.11418385058641434, 0.05837547779083252, 0.04717984050512314, 0.1464032679796219, 0.0883588045835495, -0.2555854618549347, 0.20220893621444702, 0.049677036702632904, 0.38025355339050293, 0.06882299482822418, 0.26523977518081665, 0.06981156766414642, -0.19442354142665863, -0.37251728773117065, -0.24814894795417786, 0.0905398353934288, 0.20646531879901886, 0.39349165558815, 0.05170163884758949, -0.055167291313409805, 0.10356513410806656, 0.2066735178232193, 0.6060749888420105, 0.09497053176164627, -0.0037308819591999054, 0.18265190720558167, 0.0850052684545517, -0.34829726815223694, -0.10512620210647583, 0.4268743097782135, -0.04939824715256691, -0.1335228681564331, -0.018276629969477654, 0.1604175567626953, -0.2951153814792633, -0.048287685960531235, -0.10612796992063522, 0.3336080312728882, -0.04469867795705795, 0.1348266452550888, 0.3830810785293579, 0.13186758756637573, -0.022307749837636948, -0.14582908153533936, -0.011411076411604881, 0.18305703997612, 0.2075381875038147, -0.293713241815567, 0.29600510001182556, 0.002207343466579914, 0.05122857913374901, -0.06331270933151245, -0.32413631677627563, -0.0649503692984581, 0.5230966806411743, 0.19080309569835663, 0.05683116987347603, 0.21895001828670502, 0.16270025074481964, -0.09953074157238007, -0.16708585619926453, -0.4335702955722809, 0.3511621654033661, 0.30173492431640625, -0.13930799067020416, -0.36347338557243347, -0.1048656702041626, -0.4123687744140625, 0.1891581416130066, -0.11283325403928757, -0.303528368473053, 0.35374686121940613, 0.25339993834495544, 0.02912123128771782, -0.403700590133667, -0.3220403492450714, -0.1665656417608261, 0.010588468052446842, -0.36282432079315186, 0.17554831504821777, 0.2881411015987396, -0.1696111559867859, 0.2712331712245941, 0.2734302282333374, 0.03426115959882736, 0.19408048689365387, 0.051492445170879364, 0.23070049285888672, -0.052965711802244186, -0.03963490203022957, -0.1296418309211731, 0.32555630803108215, 0.2726575434207916, -0.15674419701099396, 0.4806821942329407, 0.04428044334053993, -0.12150637805461884, 0.15980291366577148, 0.07249519228935242, -0.2559205889701843, -0.1743181049823761, 0.4113021492958069, -0.026931704953312874, 0.04572812095284462, -0.09654294699430466, -0.15214291214942932, -0.2968742549419403, -0.11952345818281174, 0.016986800357699394, -0.09187546372413635, 0.28615570068359375, -0.00048375880578532815, 0.024823514744639397, -0.1885652393102646, 1.0825709104537964, 0.014578664675354958, 0.15328805148601532, -0.20880860090255737, -0.40536797046661377, -0.6960796117782593, 0.1433441936969757, -0.24708059430122375, 0.09242371469736099, 0.10401660203933716, 0.12669847905635834, 0.09647238254547119, 0.24519389867782593, 0.07241218537092209, 0.42045828700065613, -0.14978399872779846, 0.30624815821647644, -0.5024483799934387, -0.22264839708805084, 0.09422684460878372, 0.4402628242969513, -0.20742908120155334, -0.425111323595047, 0.47011563181877136, -0.23630373179912567, -0.03236525505781174, 0.06432010233402252, -0.15715853869915009, 0.24655795097351074, 0.29806193709373474, 0.31827500462532043, 0.040884535759687424, 0.5406654477119446, -0.05458920821547508, -0.2572307884693146, -0.4410836100578308, -0.1929125189781189, -0.0798032283782959, 0.034567419439554214, 0.15398207306861877, 0.2596019208431244, 0.019587254151701927, 0.4092370271682739, -0.36682865023612976, 0.20182138681411743, -0.23547965288162231, 0.34162279963493347, 0.07194318622350693, 0.03035457618534565, -0.2026437669992447, 0.07768379896879196, 0.24468868970870972, -0.05296581983566284, -0.11593545973300934, -0.1798536628484726, -0.5251287817955017, -0.2719208896160126, 0.6197152733802795, -0.2890971302986145, -0.22164449095726013, -0.22768020629882812, 0.37580183148384094, -0.0810561552643776, 0.33044707775115967, 0.021558400243520737, 0.2301204651594162, 0.23978008329868317, 0.017453962936997414, -0.19030728936195374, 0.20941774547100067, -0.03433312103152275, -0.27183663845062256, 0.029139675199985504, 0.09310248494148254, 0.16945943236351013, -0.4575900435447693, -0.2863951027393341, -0.10428252816200256 ]
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.36933910846710205, -0.2487270087003708, 0.02165657840669155, 0.38200658559799194, 0.14801853895187378, 0.03158446028828621, 0.02061532251536846, 0.10976894944906235, 0.15086527168750763, -0.022493675351142883, -0.11922953277826309, 0.08131130784749985, 0.2570134401321411, 0.022128967568278313, -0.05040579289197922, -0.14980711042881012, -0.06361833959817886, -0.012731675058603287, -0.32441210746765137, -0.0993771106004715, -0.3538654148578644, 0.20095747709274292, -0.20646698772907257, 0.09059327095746994, 0.27523136138916016, 0.08330023288726807, -0.13136091828346252, -0.1531074494123459, -0.2954229712486267, -0.2548479437828064, 0.3610233664512634, 0.32769569754600525, -0.055985648185014725, 0.28097742795944214, -0.00011312153219478205, -0.056020818650722504, 0.2967318892478943, -0.03839836269617081, -0.26852425932884216, -0.20182451605796814, -0.5110461115837097, -0.3942413926124573, -0.07940652221441269, 0.08543568849563599, -0.0184097271412611, -0.29667702317237854, 0.2496933490037918, -0.04396799951791763, 0.06491997838020325, 0.249404177069664, 0.16832837462425232, 0.2879306972026825, -0.0686752125620842, -0.14551998674869537, 0.24070124328136444, -0.20332399010658264, -0.3107454776763916, 0.03997845947742462, 0.07859707623720169, -0.17960482835769653, 0.1557219922542572, 0.05848376452922821, 0.08752462267875671, 0.336259663105011, 0.17600835859775543, 0.09427394717931747, 0.05104686692357063, -0.20175988972187042, 0.08279575407505035, 0.4504012167453766, 0.7103345990180969, 0.08515126258134842, -0.49575021862983704, 0.28191742300987244, -0.09189454466104507, -0.23505209386348724, 0.34433624148368835, 0.31357553601264954, -0.2158723622560501, -0.07347165048122406, -0.46691736578941345, 0.2572803497314453, -0.13833267986774445, 0.48926085233688354, -0.09576258808374405, 0.7104790806770325, 0.13324148952960968, 0.14340345561504364, 0.3129824697971344, -0.11068018525838852, -0.08162129670381546, -0.27231425046920776, 0.0001884986850200221, 0.03349096328020096, -0.4814956486225128, -0.03222969174385071, -0.06586864590644836, 0.09546471387147903, 0.07542910426855087, 0.10160937160253525, 0.28501033782958984, 0.21214884519577026, 0.02102571353316307, -0.05172569677233696, 0.2097494900226593, -0.02190428040921688, -0.21308837831020355, -0.16404999792575836, 0.4323972761631012, 0.2450239211320877, 0.1523037850856781, 0.16774404048919678, 0.1467086225748062, -0.048800647258758545, -0.22991634905338287, 0.02427322417497635, -0.050510626286268234, 0.001958668464794755, -0.40011101961135864, -0.16657337546348572, -0.12383522838354111, -0.2453395128250122, -0.1645408570766449, 0.32257533073425293, -0.28404155373573303, 0.1698944866657257, -0.12120518833398819, 0.17798876762390137, -0.08428554236888885, -0.24176658689975739, -0.16136692464351654, -0.1574997454881668, -0.2656622529029846, 0.04871279373764992, 0.5434921979904175, 0.2756902575492859, 0.13496817648410797, -0.0276947058737278, -0.45962443947792053, 0.1299184113740921, 0.10531215369701385, -0.17552943527698517, -0.15066199004650116, 0.30813413858413696, 0.04140322282910347, 0.451193630695343, -0.11814761906862259, 0.21419022977352142, -0.21801398694515228, -0.014789271168410778, -0.19125336408615112, 0.06831686198711395, 0.18333885073661804, 0.16965721547603607, -0.15218865871429443, -0.19544512033462524, -0.18420222401618958, 0.07427261024713516, -0.2544246315956116, 0.06591985374689102, -0.2866136133670807, -0.1090281680226326, -0.3650815784931183, -0.11893907189369202, 0.18130049109458923, 0.3788800835609436, -0.3131742477416992, -0.04576437175273895, -0.30167052149772644, -0.10566380620002747, 0.3926261067390442, 0.48088744282722473, -0.02146054431796074, -0.06908257305622101, -0.2611772418022156, -0.11332975327968597, 0.4793395698070526, -0.05693940073251724, -0.5938491821289062, 0.42854222655296326, -0.17276908457279205, 0.08561675250530243, 0.17797693610191345, 0.17727136611938477, -0.08558214455842972, -0.082582488656044, 0.1270342767238617, 0.7016552686691284, 0.005916841793805361, 0.06210701912641525, -0.08235003054141998, -0.3496224880218506, 0.496025949716568, 0.07937514036893845, -0.13106586039066315, 0.06298668682575226, 0.07747039198875427, 0.23088160157203674, 0.42806243896484375, -0.049295444041490555, 0.12070699036121368, 0.21196505427360535, 0.006104698404669762, -0.23262664675712585, 0.16752371191978455, 0.26138806343078613, -0.8036825060844421, 0.32719868421554565, -0.17318077385425568, 0.04207621142268181, 0.053372666239738464, 0.098673976957798, -0.093098945915699, -0.23251166939735413, -0.11485781520605087, 0.11961901932954788, 0.09923367947340012, 0.4008772373199463, -0.08089432120323181, 0.03854679688811302, 0.24408775568008423, 0.163726344704628, 0.1860145777463913, 0.07212428748607635, 0.037517815828323364, 0.08900458365678787, -0.14970600605010986, 0.10789263248443604, 0.4190080165863037, -0.2034529745578766, 0.09057009965181351, -0.22554492950439453, -0.1061333566904068, 0.030130598694086075, -0.11876421421766281, 0.3457848131656647, 0.03426636755466461, 0.012958324514329433, 0.18464449048042297, -0.3644965887069702, 0.04306003823876381, 0.5446994304656982, 0.15926814079284668, -0.2901197373867035, -0.28310486674308777, 0.1604013741016388, 0.22948671877384186, 0.25566571950912476, 0.2638522982597351, -0.028795238584280014, 0.3943086862564087, -0.02717563509941101, 0.06972330063581467, -0.07047221809625626, 0.3118414878845215, 0.10419292002916336, -0.17645519971847534, -0.10470572113990784, -0.17862778902053833, 0.38371533155441284, 0.7334495782852173, -0.027373675256967545, 0.044522836804389954, 0.2151578664779663, -0.009701146744191647, -0.27938511967658997, -0.10212557762861252, 0.2419557273387909, 0.5307396054267883, -0.018456827849149704, 0.31823164224624634, -0.007591222412884235, 0.052821919322013855, -0.46573713421821594, 0.265832781791687, 0.03235045075416565, -0.26327958703041077, 0.20835180580615997, 0.14618296921253204, -0.1172623559832573, -0.270229309797287, -0.039178043603897095, 0.3722788095474243, 0.3183619976043701, -0.11375389248132706, 0.02159903757274151, -0.5688723921775818, -0.43375563621520996, -0.041704464703798294, -0.0972285270690918, -0.23284082114696503, -0.4373256266117096, -0.01061611995100975, 0.35928961634635925, -0.11753115057945251, 0.08346603065729141, 0.01123760361224413, 0.05181794986128807, 0.03219371289014816, 0.11225146055221558, -0.22323071956634521, -0.05088402330875397, -0.2936743199825287, 0.05064200237393379, 0.25019553303718567, -0.004826084710657597, 0.3465155065059662, -0.25491631031036377, 0.004322778899222612, -0.2484765648841858, -0.18281613290309906, -0.0734226182103157, -0.1328422576189041, -0.009792101569473743, 0.021005745977163315, 0.37568312883377075, -0.04847235232591629, 0.01979055628180504, 0.2677246630191803, -0.13066896796226501, -0.09336326271295547, 0.1500159054994583, -0.14751631021499634, -0.11639846116304398, -0.1455317735671997, -0.4618680477142334, -0.4196474850177765, -0.3909376263618469, 0.2283409982919693, 0.017712078988552094, 0.26472148299217224, 0.26651105284690857, -0.24339546263217926, -0.009089211001992226, 0.13409531116485596, 0.13581909239292145, -0.21165163815021515, 0.10967870056629181, 0.5519049763679504, -0.012211478315293789, -0.4962175190448761, 0.2889939844608307, 0.30839961767196655, 0.12821662425994873, 0.466634601354599, -0.5050539374351501, 0.08147895336151123, -0.2245030403137207, -0.08681850135326385, 0.21056514978408813, -0.08062887191772461, 0.18034419417381287, -0.20143330097198486, -0.13207221031188965, -0.06354676187038422, -0.22663548588752747, 0.0003431495279073715, 0.3354967534542084, 0.29458680748939514, 0.05751596763730049, 0.07515449076890945, 0.11302315443754196, 0.2551253139972687, 0.3227807879447937, 0.035576172173023224, 0.450271338224411, 0.05707848444581032, -0.03955715894699097, 0.055557046085596085, -0.16168636083602905, 0.0864984318614006, -0.1508360058069229, 0.4195179045200348, 0.33063626289367676, -0.17766143381595612, -0.25439295172691345, -0.22119715809822083, 0.20765109360218048, 0.15602917969226837, -0.3032635450363159, -0.036283817142248154, 0.09262846410274506, -0.02472812309861183, 0.2582341432571411, 0.05453168973326683, 0.028099974617362022, -0.4963299632072449, 0.1535632461309433, 0.28111717104911804, -0.115965835750103, 0.1709708273410797, -0.05429152026772499, -0.025125674903392792, -0.5100100040435791, 0.26229438185691833, -0.08693758398294449, 0.6925251483917236, -0.24529562890529633, 0.13219377398490906, 0.1541799157857895, -0.1334349364042282, 0.37956371903419495, -0.3355478346347809, 0.4085899889469147, 0.2441135197877884, -0.09982509166002274, -0.3103891909122467, -0.26998934149742126, -0.3074084222316742, -0.2978397011756897, 0.2070446014404297, 0.4671502113342285, -0.403685986995697, -0.2595307528972626, -0.002882146742194891, 0.25275543332099915, -0.08343334496021271, 0.03299625962972641, -0.16558837890625, -0.4258914589881897, -0.0759301483631134, -0.19603820145130157, -0.292361319065094, 0.07904057949781418, -0.20441097021102905, -0.0717162936925888, 0.16851966083049774, 0.004644084256142378, -0.03877458721399307, 0.019535893574357033, 0.02907373011112213, 0.20135089755058289, 0.3527792990207672, 0.04115692526102066, 0.20881158113479614, -0.0041826749220490456, 0.488117516040802, 0.1826082319021225, -0.01917962171137333, 0.2027255743741989, -0.1937301903963089, -0.14192555844783783, 0.4482378363609314, 0.06169803440570831, 0.11611241847276688, -0.019745314493775368, 0.19268187880516052, -0.12041424214839935, -0.06463660299777985, 0.4672899544239044, -0.316260427236557, -0.279185026884079, -0.2282623052597046, 0.2917948365211487, 0.09229853004217148, -0.06323039531707764, 0.3406107425689697, -0.0752306878566742, -0.10062438249588013, 0.054261427372694016, -0.07270558178424835, 0.8992093205451965, -0.07506696879863739, 0.1676117181777954, 0.028445398434996605, -0.01202617771923542, 0.34871232509613037, -0.07879872620105743, 0.25816810131073, -0.17695985734462738, -0.22498102486133575, -0.0033693695440888405, 0.031114932149648666, 0.027460461482405663, 0.21012552082538605, -0.4092715382575989, 0.5043516755104065, 0.20173576474189758, 0.2596515417098999, 0.21108482778072357, 0.0916040912270546, -0.0027355069760233164, -0.0822545513510704, -0.06914255023002625, 0.1338375210762024, -0.1257578730583191, 0.5930081605911255, -0.011536956764757633, -0.339974969625473, -0.06330443173646927, -0.05042513832449913, -0.33756646513938904, 0.22890089452266693, -0.2211633175611496, 0.10648786276578903, -0.2780904769897461, -0.02892334572970867, 0.11299660801887512, -0.1082201600074768, 0.11689846962690353, 0.14735077321529388, -0.43524041771888733, 0.10449791699647903, -0.5686905980110168, 0.12266777455806732, 0.045506350696086884, -0.06568794697523117, -0.07661763578653336, -0.26322364807128906, -0.15478813648223877, -0.19981685280799866, -0.049409978091716766, -0.0731026902794838, -0.04698885232210159, -0.11418549716472626, -0.29272782802581787, 0.23077838122844696, -0.033750273287296295, -0.12792818248271942, -0.2546485960483551, -0.09520340710878372, 0.12392143160104752, -0.027990709990262985, 0.06289887428283691, 0.40319550037384033, 0.10705424100160599, -0.2656991183757782, -0.13430653512477875, 0.6130916476249695, -0.15190905332565308, 0.15012036263942719, 0.3498308062553406, 0.18830877542495728, -0.20841223001480103, -0.31433358788490295, -0.3719792366027832, -0.08975280076265335, -0.4002482295036316, -0.06923067569732666, -0.1440848559141159, 0.10016965121030807, 0.11705570667982101, 0.4755738079547882, -0.04902567341923714, 0.05586640536785126, 0.05622613802552223, -0.5779904723167419, -0.07620944082736969, -0.017378604039549828, -0.07521776109933853, 0.060390666127204895, -0.3815561532974243, -0.06139731407165527, 0.359657883644104, 0.09121112525463104, -0.29727742075920105, 0.08413956314325333, -0.2831422984600067, -0.020584378391504288, 0.2991085648536682, -0.19705811142921448, 0.1398499310016632, 0.12177680432796478, 0.03174528107047081, -0.11539888381958008, -0.5138580799102783, -0.13495604693889618, -0.01268864143639803, 0.19682617485523224, 0.23120127618312836, -0.3998677432537079, 0.10133800655603409, -0.2693149745464325, -0.13870015740394592, -0.029908806085586548, 0.023805823177099228, -0.06971610337495804, -0.11349935829639435, 0.01554422453045845, 0.01598678156733513, 0.1784757822751999, -0.05226809158921242, 0.17897146940231323, 0.08107107877731323, 0.3983921408653259, -0.032297179102897644, 0.2166851907968521, 0.14202359318733215, -0.1306733936071396, -0.46401795744895935, -0.125066339969635, 0.004228435456752777, 0.16688616573810577, 0.4557458162307739, -0.15033791959285736, 0.11459711939096451, -0.19031672179698944, 0.28947028517723083, 0.5473512411117554, -0.019706377759575844, -0.16597209870815277, 0.08184110373258591, 0.14173975586891174, -0.2528589069843292, -0.32409894466400146, 0.2707701027393341, 0.26600801944732666, -0.0896599292755127, -0.11656395345926285, 0.26680096983909607, -0.22756682336330414, 0.004926950670778751, -0.11710822582244873, 0.520817756652832, -0.16627272963523865, -0.0732540637254715, 0.32509833574295044, 0.09123068302869797, 0.19147168099880219, -0.04571974650025368, -0.05150216817855835, 0.013542596250772476, 0.14610646665096283, -0.10719003528356552, 0.1941191405057907, 0.13372407853603363, 0.18803265690803528, -0.006420697085559368, -0.4491778612136841, -0.13419856131076813, 0.44705402851104736, -0.10824175179004669, 0.0837220549583435, 0.277393639087677, 0.04683943837881088, -0.18602018058300018, -0.23363497853279114, -0.5212221145629883, 0.24924086034297943, 0.14419297873973846, -0.21762092411518097, -0.1578580141067505, -0.04063989967107773, -0.38392120599746704, 0.30181413888931274, -0.20111393928527832, -0.10448414087295532, 0.3324413001537323, 0.1468764990568161, 0.059201087802648544, -0.40446117520332336, -0.24514314532279968, -0.1018608957529068, -0.011712328530848026, -0.2720138132572174, 0.13106223940849304, 0.043497100472450256, -0.108354352414608, 0.05095739662647247, 0.1166171208024025, 0.13236761093139648, 0.24665141105651855, 0.0441899374127388, 0.15147630870342255, -0.05503875017166138, -0.0769835114479065, -0.12671218812465668, 0.505584180355072, 0.31765687465667725, -0.3132898807525635, 0.378860741853714, 0.010559282265603542, -0.125332310795784, 0.161406472325325, 0.04764694720506668, -0.11730191111564636, -0.0278119295835495, 0.4096528887748718, -0.17310203611850739, 0.007070610299706459, -0.08085309714078903, -0.02918301336467266, -0.227297842502594, -0.04897580295801163, 0.22350871562957764, -0.03144749999046326, 0.31165722012519836, -0.19724908471107483, 0.06267598271369934, -0.14039671421051025, 0.9632145166397095, 0.17470483481884003, 0.008197951130568981, -0.1843707263469696, -0.23486393690109253, -0.6164388060569763, 0.10305586457252502, -0.25227290391921997, 0.19881939888000488, 0.06164582446217537, 0.2748517692089081, -0.030909940600395203, 0.21288146078586578, 0.17940941452980042, 0.4960561692714691, -0.0012603364884853363, 0.3387596607208252, -0.3486460745334625, -0.157645121216774, 0.0671241357922554, 0.23137858510017395, -0.31627145409584045, -0.5026992559432983, 0.5336248278617859, -0.453044593334198, 0.029982728883624077, -0.18135349452495575, -0.0418836735188961, 0.14481329917907715, 0.3595474362373352, 0.3521798849105835, 0.1409449726343155, 0.534711480140686, 0.10010440647602081, -0.23660700023174286, -0.40526920557022095, -0.0648830384016037, 0.08727717399597168, -0.0066201393492519855, 0.06285292655229568, 0.06961776316165924, 0.18089714646339417, 0.42582905292510986, -0.3366210460662842, 0.24177688360214233, -0.34102725982666016, 0.3019997477531433, 0.14895732700824738, 0.20376364886760712, -0.1593160480260849, 0.08259009569883347, 0.15611837804317474, -0.09601293504238129, -0.04753711819648743, -0.2808299660682678, -0.466897189617157, -0.270858496427536, 0.38421812653541565, -0.13621753454208374, -0.235912024974823, -0.31623196601867676, 0.2579326033592224, -0.1017073392868042, 0.20794369280338287, -0.04330632463097572, 0.2353958636522293, 0.17940188944339752, -0.1781783252954483, -0.2937732934951782, 0.29732656478881836, -0.009580602869391441, -0.1704113930463791, 0.04268955811858177, 0.10260091722011566, 0.14127551019191742, -0.4580462872982025, -0.1470395028591156, -0.0394967645406723 ]
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.2560277283191681, -0.07245711237192154, -0.23676365613937378, -0.009235892444849014, 0.26258862018585205, 0.08429209887981415, 0.6678314208984375, 0.32101303339004517, 0.08501558750867844, 0.10968828946352005, -0.22308434545993805, 0.6318756937980652, 0.046178825199604034, -0.017982859164476395, 0.011641846038401127, -0.17475038766860962, 0.09567471593618393, 0.2547402083873749, -0.2903570830821991, -0.0689309611916542, -0.2830674350261688, 0.015639856457710266, -0.014375312253832817, 0.04701661318540573, -0.03168075159192085, -0.12294326722621918, -0.24301129579544067, -0.06696538627147675, -0.009963595308363438, -0.28177210688591003, -0.11027330905199051, -0.052208784967660904, -0.1565474271774292, 0.10774753242731094, -0.00009658550698077306, 0.011758914217352867, 0.10074648261070251, 0.12844888865947723, -0.2778984010219574, 0.09881232678890228, 0.22089914977550507, -0.49648699164390564, 0.12832114100456238, -0.3898862600326538, 0.019424499943852425, -0.3709513247013092, -0.0011585729662328959, -0.23527248203754425, 0.22336281836032867, 0.23780417442321777, 0.32483726739883423, 0.08249949663877487, 0.04067448899149895, -0.009181174449622631, -0.15301111340522766, -0.05365123972296715, -0.111673504114151, -0.09680534899234772, 0.07402332872152328, -0.00034519407199695706, 0.022482775151729584, 0.1968286633491516, -0.23121687769889832, -0.05409223586320877, -0.12028427422046661, 0.07834319770336151, 0.17508727312088013, -0.20166276395320892, -0.05910949781537056, 0.1322261542081833, 0.07103342562913895, -0.21810868382453918, -0.2725658714771271, -0.3579936623573303, 0.011065911501646042, -0.10444119572639465, -0.281986802816391, 0.14973676204681396, -0.041938673704862595, 0.3047569990158081, -0.056726787239313126, 0.14159217476844788, -0.19755718111991882, 0.13296818733215332, -0.22346338629722595, 0.1334751844406128, -0.003877329872921109, -0.026997555047273636, 0.11812570691108704, -0.23266398906707764, 0.2993663251399994, -0.15403060615062714, 0.2643844783306122, 0.008697164244949818, -0.0715571865439415, -0.13384142518043518, 0.19592933356761932, -0.3873060345649719, -0.03227247670292854, -0.3329618275165558, 0.18302546441555023, -0.053894948214292526, -0.023534074425697327, 0.13198477029800415, 0.12480338662862778, 0.2315274029970169, -0.010313490405678749, 0.1086454689502716, -0.03319160267710686, -0.022217320278286934, 0.1428208351135254, 0.106735959649086, 0.02081446163356304, 0.04767654091119766, 0.10392894595861435, 0.05435297265648842, 0.20670929551124573, 0.09484677016735077, -0.39955267310142517, 0.02149203047156334, -0.4321010112762451, 0.372793048620224, -0.14166703820228577, 0.08713343739509583, -0.0056861890479922295, 0.5033518075942993, 0.05709492042660713, 0.07840964198112488, 0.012077223509550095, 0.31285181641578674, -0.22225911915302277, 0.26594313979148865, 0.008957414887845516, -0.2215345799922943, -0.021026644855737686, 0.3906453549861908, 0.0046081882901489735, 0.005606094840914011, 0.2724515199661255, 0.05295190587639809, 0.009036571718752384, -0.057025082409381866, 0.39849168062210083, 0.15818651020526886, -0.018321959301829338, 0.10295692831277847, 0.33050599694252014, -0.2735713720321655, -0.0734088346362114, 0.32358625531196594, 0.08975502848625183, 0.09800340235233307, -0.07304900884628296, 0.3501080870628357, 0.02674475684762001, -0.135360985994339, 0.120493084192276, 0.19605623185634613, 0.09799178689718246, 0.03919652849435806, -0.06270138174295425, -0.3927684426307678, 0.1285286694765091, -0.2342425286769867, -0.02580154873430729, 0.0015649929409846663, -0.42756187915802, 0.10420937836170197, 0.04026895761489868, -0.03268374875187874, 0.21900348365306854, 0.38475948572158813, -0.015379935503005981, -0.03114205040037632, -0.1035962626338005, 0.1959885060787201, -0.07009070366621017, -0.2117769867181778, -0.14313922822475433, 0.02596442587673664, 0.1356392502784729, 0.3213237524032593, 0.23091639578342438, 0.16768528521060944, 0.18781833350658417, 0.033348653465509415, 0.1708783209323883, 0.0854334682226181, 0.025394199416041374, 0.16540418565273285, -0.21664302051067352, -0.20080700516700745, 0.21756871044635773, -0.050166767090559006, -0.027714332565665245, 0.30131423473358154, -0.14789219200611115, -0.07523821294307709, 0.26463431119918823, -0.3522583544254303, -0.08639633655548096, -0.10852952301502228, 0.1263146847486496, -0.18569806218147278, -0.07065852731466293, -0.0009579011239111423, 0.0929226204752922, 0.009178288280963898, -0.13110283017158508, 0.32574817538261414, -0.22178152203559875, -0.42438647150993347, -0.34950804710388184, 0.045758817344903946, -0.013223576359450817, 0.02768200822174549, 0.40243959426879883, 0.05684136599302292, 0.09816282242536545, -0.08291452378034592, 0.17112554609775543, 0.04854229837656021, -0.17814552783966064, -0.036534376442432404, -0.27711930871009827, 0.05102093890309334, -0.16102296113967896, -0.06166141480207443, -0.010237800888717175, 0.26584771275520325, 0.041077520698308945, 0.13675788044929504, 0.25367072224617004, 0.15686212480068207, 0.2253480851650238, -0.13639134168624878, 0.07895071059465408, 0.1731407791376114, 0.14213547110557556, -0.010740368627011776, 0.31492388248443604, 0.5039957165718079, 0.13780786097049713, 0.05067471042275429, -0.03941328451037407, 0.526520848274231, 0.10047446936368942, 0.06737679988145828, 0.14981810748577118, 0.24384257197380066, 0.22833368182182312, 0.2267894744873047, -0.02218393236398697, -0.164767786860466, -0.20458237826824188, 0.08839477598667145, -0.037210118025541306, 0.07834506779909134, -0.5608400702476501, 0.32966017723083496, 0.38717225193977356, -0.12543609738349915, 0.29820170998573303, -0.04294820502400398, -0.11709240823984146, -0.12968376278877258, 0.009282433427870274, -0.08549770712852478, 0.06470567733049393, 0.30474719405174255, 0.13462315499782562, -0.10111989080905914, -0.24635249376296997, -0.15735690295696259, 0.17160335183143616, 0.14038847386837006, 0.1497248411178589, -0.05192848667502403, 0.22851283848285675, -0.2121983915567398, -0.21408401429653168, 0.05723972246050835, -0.2752457857131958, 0.10161983221769333, -0.22886963188648224, 0.23894621431827545, -0.34866583347320557, -0.21876712143421173, -0.0047963703982532024, -0.1646868884563446, 0.23677729070186615, -0.43874847888946533, 0.11862524598836899, 0.08315351605415344, -0.09628456085920334, 0.027575509622693062, 0.38944825530052185, -0.010232876054942608, 0.30712488293647766, 0.11240235716104507, -0.13750898838043213, -0.21126548945903778, 0.017634637653827667, 0.35105636715888977, -0.03250585123896599, 0.11014265567064285, 0.10012637078762054, -0.06349492073059082, -0.057003192603588104, -0.13352568447589874, -0.2751377820968628, 0.0031087936367839575, -0.22758272290229797, 0.1885087788105011, 0.2113187462091446, 0.28268763422966003, -0.2487782984972, -0.04935188964009285, -0.07172242552042007, -0.05359356105327606, -0.08644083887338638, 0.10110685229301453, 0.029637232422828674, -0.012776857241988182, -0.13915595412254333, -0.2738068997859955, -0.370868444442749, -0.24616125226020813, 0.24577546119689941, 0.1972573697566986, 0.14487779140472412, 0.04192700609564781, 0.3720468580722809, 0.3241763710975647, 0.23555010557174683, 0.21289986371994019, -0.12524928152561188, 0.12985198199748993, 0.2862128019332886, -0.17854267358779907, -0.324775367975235, -0.349549263715744, -0.04033558443188667, -0.09183257818222046, -0.22656473517417908, -0.047111038118600845, -0.46094685792922974, -0.13547340035438538, -0.012589552439749241, 0.19353267550468445, -0.032664503902196884, 0.14904536306858063, 0.268090158700943, -0.30679675936698914, -0.050204016268253326, 0.09719659388065338, -0.04283890128135681, 0.04326808452606201, -0.08406927436590195, -0.06308597326278687, 0.050108205527067184, 0.1526055634021759, 0.21947434544563293, 0.09775909781455994, -0.19591648876667023, -0.13121239840984344, -0.015270575881004333, 0.32804563641548157, -0.16063067317008972, -0.10106471180915833, -0.2410319596529007, -0.16821672022342682, -0.09819553792476654, 0.12483001500368118, -0.1472046673297882, -0.34518101811408997, 0.0037209538277238607, 0.2376687079668045, -0.38258421421051025, -0.09685944765806198, 0.11318647861480713, -0.23354431986808777, -0.047862112522125244, 0.0416291169822216, 0.2179599553346634, -0.21251264214515686, 0.012761414982378483, -0.1765969693660736, -0.036039918661117554, 0.25042930245399475, -0.1270270049571991, -0.3720664978027344, -0.27427977323532104, -0.3555976450443268, 0.30586299300193787, 0.20067481696605682, 0.19693084061145782, 0.12455236911773682, -0.4118640124797821, -0.06826003640890121, 0.01907435432076454, 0.470334529876709, 0.08217556774616241, -0.3371404707431793, 0.36463111639022827, 0.020565222948789597, -0.09616352617740631, 0.10426728427410126, -0.563534677028656, 0.009334878996014595, 0.16411085426807404, 0.10901181399822235, -0.24528351426124573, -0.05958492308855057, 0.08113743364810944, 0.2119964212179184, 0.011874769814312458, 0.17696155607700348, -0.11130338162183762, -0.3024592995643616, -0.2614573538303375, 0.01980813406407833, 0.1983463317155838, 0.12581242620944977, -0.4265235364437103, -0.27482014894485474, -0.16187308728694916, -0.22168533504009247, 0.37594661116600037, 0.17749327421188354, 0.03466351330280304, -0.040534451603889465, -0.193338081240654, -0.20157231390476227, 0.231063112616539, 0.15659523010253906, -0.05672251060605049, -0.22540263831615448, -0.1200210228562355, -0.09815984219312668, -0.05513716861605644, 0.1993042528629303, 0.24184772372245789, -0.08968785405158997, -0.05645814538002014, -0.24138249456882477, -0.06638079136610031, 0.15018118917942047, -0.146046444773674, 0.22116895020008087, 0.07006155699491501, -0.02765127830207348, -0.3291968107223511, 0.12097741663455963, 0.04637609049677849, -0.10512471199035645, -0.022285303100943565, -0.11526712030172348, -0.20814548432826996, 0.2638191282749176, 0.03251214325428009, 0.8158717155456543, -0.10561800003051758, 0.3005527853965759, 0.45928990840911865, -0.19771680235862732, 0.4725383520126343, 0.22859542071819305, 0.11599661409854889, -0.251895010471344, -0.05767108500003815, -0.05947982147336006, -0.010046458803117275, 0.20437097549438477, 0.2532418668270111, -0.25613081455230713, 0.1157732829451561, -0.2948707044124603, 0.13164390623569489, 0.0482267364859581, -0.05555807426571846, 0.03850236162543297, -0.17735880613327026, -0.5897297859191895, 0.33529505133628845, 0.05478036403656006, -0.41746973991394043, -0.030040927231311798, -0.13068033754825592, -0.365264892578125, 0.16645799577236176, 0.17220376431941986, 0.014975623227655888, 0.23710156977176666, 0.2857074439525604, 0.11305254697799683, -0.3973708152770996, -0.31945034861564636, 0.2990201711654663, 0.07823606580495834, 0.14305590093135834, 0.05970551446080208, -0.15943872928619385, 0.12496217340230942, 0.10964632779359818, 0.22937743365764618, -0.05771972984075546, 0.4965384304523468, 0.10310797393321991, -0.050057943910360336, 0.17605003714561462, 0.009271839633584023, -0.21804355084896088, -0.1885131448507309, -0.027195632457733154, 0.00768984155729413, -0.34653574228286743, -0.14825339615345, -0.051614660769701004, -0.4196208119392395, -0.18434388935565948, 0.2770850658416748, -0.03147537633776665, -0.09959974139928818, 0.32774868607521057, 0.024617008864879608, -0.07969053089618683, -0.012031760066747665, 0.11325962841510773, 0.41377776861190796, 0.03451371565461159, 0.05917960777878761, 0.0701439306139946, -0.3847639560699463, -0.2387194037437439, 0.0825425311923027, -0.15260934829711914, 0.07036013901233673, 0.429303914308548, -0.11218160390853882, -0.14179784059524536, -0.13935568928718567, -0.10047497600317001, -0.12531912326812744, 0.37286216020584106, -0.4571976959705353, -0.20463088154792786, -0.25897642970085144, 0.18189866840839386, 0.09116584807634354, 0.3353267014026642, 0.23831704258918762, 0.13427729904651642, -0.20935581624507904, -0.24031972885131836, -0.5028529763221741, -0.17356383800506592, -0.3184003531932831, 0.1316962093114853, 0.03487333655357361, -0.2332935631275177, -0.10631076991558075, 0.06224047392606735, 0.3776398301124573, 0.16256709396839142, -0.007925223559141159, -0.45199471712112427, 0.20446136593818665, 0.023530393838882446, -0.010215925984084606, -0.16325733065605164, 0.21163418889045715, -0.020132457837462425, -0.24783329665660858, -0.24645762145519257, 0.01214432343840599, 0.03656342625617981, -0.07958641648292542, 0.22352240979671478, 0.06538688391447067, 0.3287336528301239, 0.36746564507484436, -0.1215730831027031, -0.24073627591133118, -0.06277790665626526, -0.05200890451669693, 0.15857967734336853, -0.0030758699867874384, -0.05917039141058922, 0.046824708580970764, 0.29764798283576965, -0.003187796100974083, 0.07744455337524414, 0.48091039061546326, -0.04061901569366455, -0.16912949085235596, -0.040467169135808945, 0.34408244490623474, 0.08456042408943176, -0.2110835462808609, -0.09585707634687424, 0.008123433217406273, 0.4007233679294586, -0.3073297142982483, -0.1081482321023941, 0.15715570747852325, -0.348389208316803, 0.23094947636127472, 0.4312080442905426, 0.08350884914398193, -0.011692228727042675, 0.109596848487854, -0.050153180956840515, 0.08158212155103683, -0.2662101686000824, -0.11645122617483139, 0.5820599794387817, 0.006645591929554939, -0.10178899019956589, 0.07112180441617966, -0.11626826971769333, 0.1665237993001938, 0.49187174439430237, 0.0209924578666687, 0.4034591317176819, 0.11355917900800705, 0.025419607758522034, 0.25469714403152466, 0.3929944336414337, 0.07712790369987488, 0.07588734477758408, -0.17330896854400635, 0.21354176104068756, 0.293905645608902, 0.06929108500480652, -0.209372416138649, 0.14424873888492584, -0.029108749702572823, 0.3133697211742401, -0.2688259184360504, -0.129200741648674, -0.10112761706113815, -0.09361261129379272, 0.014550571329891682, -0.3355528712272644, -0.035187676548957825, -0.2210867553949356, 0.20591403543949127, -0.16742874681949615, 0.04022817686200142, -0.06856129318475723, 0.2408027946949005, -0.14090882241725922, 0.3462824821472168, -0.051620133221149445, -0.27998629212379456, 0.21196912229061127, 0.20597590506076813, -0.06349262595176697, 0.24580515921115875, 0.4413476884365082, 0.020179012790322304, -0.22489610314369202, -0.003479159437119961, -0.2018449753522873, -0.45032840967178345, -0.030919697135686874, -0.026562418788671494, 0.09757865220308304, 0.14084243774414062, 0.18325676023960114, 0.30688169598579407, -0.25468751788139343, -0.030388472601771355, 0.15224626660346985, -0.12552066147327423, -0.03533833101391792, 0.3983753025531769, -0.0006992581766098738, -0.4177682101726532, -0.07955945283174515, 0.02752063050866127, -0.46944576501846313, -0.3235495090484619, 0.24520643055438995, 0.019849972799420357, 0.217403843998909, 0.054799407720565796, 0.21190519630908966, -0.029013032093644142, 0.26610493659973145, -0.0585661344230175, 0.17666815221309662, 0.05873218551278114, 0.19917072355747223, -0.1691029816865921, 0.13272440433502197, 0.23160532116889954, -0.16869215667247772, -0.14829517900943756, 0.06189274415373802, 0.18046575784683228, 0.2957521080970764, -0.31978482007980347, 0.03633797913789749, -0.0032570192124694586, 0.09500651806592941, -0.1532212197780609, 0.05037054792046547, -0.08221914619207382, -0.08262021839618683, 0.07403168827295303, -0.1644277572631836, 0.07991471141576767, -0.14530853927135468, 0.32054606080055237, -0.1464013308286667, 0.094923235476017, -0.09312444180250168, 0.4012176990509033, -0.1292186677455902, 0.3858843743801117, 0.21962697803974152, -0.18146184086799622, -0.05601498857140541, 0.22214308381080627, -0.08397656679153442, -0.13399598002433777, 0.5022016763687134, -0.06017758697271347, 0.07468805462121964, -0.005045117344707251, -0.12486771494150162, 0.24216122925281525, 0.2362213283777237, 0.2632472515106201, -0.32272782921791077, -0.2985234260559082, 0.27557307481765747, -0.27425339818000793, 0.11196087300777435, -0.11342668533325195, 0.22210080921649933, 0.1778130829334259, 0.050932377576828, -0.14030207693576813, -0.42734983563423157, 0.18700233101844788, -0.0968572273850441, -0.453888863325119, -0.07896727323532104, -0.06864321976900101, -0.1896490454673767, 0.05281108617782593, -0.3690464496612549, -0.12069360911846161, 0.2917223572731018, -0.23591746389865875, -0.058657776564359665, 0.1337466537952423, -0.03554500266909599, 0.11618983745574951, -0.2565561830997467, -0.13359646499156952, 0.05950423330068588, 0.059858717024326324, -0.22480788826942444, -0.34362298250198364 ]
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.11614258587360382, -0.059321340173482895, -0.09396395832300186, 0.31995904445648193, -0.04902845248579979, 0.24959604442119598, 0.08761217445135117, 0.24669882655143738, -0.17529058456420898, -0.1441371887922287, 0.013056083582341671, 0.1971595734357834, 0.05846541002392769, 0.6652588844299316, -0.03760373219847679, -0.06485707312822342, 0.20876330137252808, -0.03774389252066612, -0.056362051516771317, 0.12638139724731445, -0.22463876008987427, 0.14463314414024353, -0.22067192196846008, 0.020903117954730988, -0.09839192777872086, -0.16495676338672638, -0.3148607909679413, 0.10347726196050644, 0.05231932923197746, -0.2634040415287018, 0.1510075479745865, 0.2403656542301178, -0.11957478523254395, -0.04432719200849533, -0.00011096565140178427, -0.07092060893774033, 0.1456369012594223, -0.02163737080991268, -0.05487744137644768, 0.04134867340326309, 0.03207933157682419, -0.10994333773851395, 0.06950094550848007, -0.25084492564201355, -0.09897599369287491, -0.21400436758995056, 0.07115817070007324, -0.3372650146484375, 0.25942716002464294, -0.038284607231616974, 0.2054678499698639, -0.046922121196985245, -0.13063424825668335, 0.35191234946250916, -0.12206313014030457, 0.1027287021279335, 0.017257265746593475, -0.02621195837855339, 0.2594553232192993, -0.1247476190328598, -0.04309719428420067, 0.41535627841949463, -0.11935855448246002, -0.14930102229118347, 0.29056769609451294, 0.06845597922801971, 0.18489457666873932, -0.5962706208229065, -0.04329201951622963, 0.4557466506958008, 0.23678497970104218, -0.26174500584602356, -0.18492765724658966, -0.48226094245910645, -0.02599160559475422, -0.22726747393608093, 0.16330310702323914, 0.16750766336917877, 0.006901430897414684, 0.23476040363311768, 0.1263679414987564, -0.14011694490909576, 0.043341487646102905, 0.032189372926950455, -0.2222629338502884, 0.4312472939491272, 0.11238959431648254, 0.05579901114106178, -0.1916796714067459, -0.1940624862909317, 0.32927387952804565, -0.2776329815387726, -0.11524154990911484, -0.06485070288181305, -0.2658904194831848, -0.26814472675323486, 0.1458911895751953, 0.05406715348362923, 0.09042809158563614, -0.009161476045846939, -0.10179906338453293, -0.1273285299539566, 0.041513632982969284, -0.11567860841751099, 0.44332239031791687, 0.034912146627902985, 0.042764391750097275, -0.3553723096847534, -0.018607547506690025, -0.11106401681900024, 0.0128493532538414, 0.04410494491457939, 0.13790933787822723, 0.18180061876773834, -0.5502961277961731, 0.023032236844301224, 0.4006921947002411, 0.11820372194051743, -0.35919275879859924, -0.1037040650844574, -0.6785646080970764, -0.1690201461315155, 0.07193450629711151, 0.13725320994853973, 0.19108863174915314, 0.24389079213142395, -0.07964625954627991, 0.09010675549507141, -0.10953378677368164, -0.14716912806034088, -0.12802669405937195, 0.026190008968114853, -0.004581957124173641, -0.11001421511173248, -0.10384606570005417, 0.22535932064056396, 0.05831330642104149, 0.015287704765796661, 0.006283607333898544, 0.25105854868888855, 0.11594655364751816, -0.16656583547592163, 0.2065870612859726, 0.22258035838603973, -0.02971397526562214, 0.013378794305026531, -0.01546524092555046, -0.051296476274728775, -0.20581181347370148, 0.20501433312892914, -0.07762955129146576, -0.21862544119358063, 0.013488320633769035, 0.20431503653526306, -0.16967244446277618, -0.10157693922519684, 0.18169492483139038, 0.7562412619590759, 0.37346768379211426, -0.09278018772602081, 0.09112627059221268, 0.009046453982591629, -0.4748319387435913, -0.20037589967250824, -0.031352072954177856, 0.3942874073982239, -0.33614984154701233, 0.0484466627240181, -0.30532777309417725, 0.03339960053563118, -0.012793589383363724, 0.34721648693084717, -0.06655248254537582, 0.3393944203853607, -0.20693005621433258, 0.28759321570396423, -0.008972112089395523, -0.3737541735172272, -0.2423267811536789, 0.24170105159282684, 0.020205631852149963, 0.2551002502441406, 0.20074287056922913, 0.09268718212842941, -0.13739855587482452, -0.18378646671772003, 0.1889771670103073, 0.35552874207496643, -0.10460404306650162, -0.09232516586780548, -0.09939322620630264, -0.16692794859409332, 0.6348803043365479, -0.03646348789334297, -0.41407814621925354, -0.23918400704860687, -0.34329044818878174, -0.05789406597614288, 0.398011177778244, -0.009485836140811443, -0.19600160419940948, -0.15095087885856628, 0.15138515830039978, -0.14767493307590485, -0.08296430110931396, -0.1501869261264801, -0.574846625328064, 0.0441732332110405, -0.256509929895401, 0.11664600670337677, -0.12939292192459106, -0.41343599557876587, 0.31030532717704773, -0.018222851678729057, -0.37763693928718567, -0.14879409968852997, 0.2231585681438446, -0.29802799224853516, -0.11738912016153336, 0.0568263903260231, -0.25019317865371704, 0.023359166458249092, 0.017860285937786102, 0.061412133276462555, -0.3382733166217804, 0.27882054448127747, -0.1605370044708252, 0.30840110778808594, 0.36501914262771606, 0.6932075023651123, -0.053536366671323776, -0.19113905727863312, 0.2040141075849533, 0.11180669814348221, -0.0075121610425412655, -0.14248083531856537, 0.04540874436497688, 0.2737963795661926, 0.39540815353393555, -0.23208919167518616, 0.004434206988662481, 0.35116973519325256, 0.015922440215945244, -0.2095695585012436, -0.2848927080631256, 0.4127980172634125, 0.055721838027238846, 0.3499276340007782, 0.018529074266552925, 0.20359990000724792, -0.01059888955205679, -0.1132052019238472, -0.07056797295808792, -0.3927459716796875, 0.10885265469551086, 0.10866453498601913, 0.03085704706609249, 0.4261075556278229, -0.25893232226371765, 0.8457381129264832, 0.46562379598617554, -0.057603564113378525, 0.03639252856373787, 0.00545054767280817, 0.137510746717453, -0.4387933313846588, 0.2027047872543335, 0.1513318121433258, 0.2826482951641083, 0.17429713904857635, 0.04170962795615196, 0.2460756152868271, 0.2267717868089676, -0.22956591844558716, 0.3983790874481201, 0.09900083392858505, -0.06849421560764313, 0.12552495300769806, 0.30963334441185, 0.14292165637016296, -0.4244998097419739, -0.23494239151477814, -0.018527349457144737, 0.032828908413648605, -0.2017996907234192, 0.26638028025627136, -0.34013158082962036, -0.8277873396873474, 0.09512616693973541, -0.15956351161003113, -0.3452222943305969, -0.41433653235435486, 0.10417734831571579, -0.19091320037841797, -0.14006562530994415, 0.2615068852901459, 0.37183162569999695, 0.3114881217479706, 0.05282408744096756, 0.15354524552822113, -0.07490214705467224, -0.09342055767774582, -0.15121039748191833, 0.14342908561229706, 0.19690412282943726, 0.1803002655506134, 0.271716445684433, 0.25826379656791687, -0.010901642963290215, -0.17249995470046997, -0.6402463912963867, 0.2058470994234085, -0.40388816595077515, 0.32667064666748047, 0.17482860386371613, -0.020761577412486076, -0.20761455595493317, -0.2606465518474579, -0.03910505026578903, 0.6991737484931946, -0.257794588804245, -0.0002876839425880462, -0.031121887266635895, -0.1765296906232834, -0.1504604071378708, -0.3982408940792084, -0.49459439516067505, -0.23238828778266907, 0.26528528332710266, -0.2008560746908188, 0.4566141366958618, 0.20725786685943604, -0.38311994075775146, -0.2453196495771408, 0.028847353532910347, -0.1344178467988968, -0.19621017575263977, 0.13021822273731232, 0.13515721261501312, -0.06035539135336876, -0.1612294316291809, -0.36608272790908813, -0.2903485596179962, 0.301352858543396, -0.26244741678237915, -0.43801823258399963, -0.2253843992948532, -0.11680813878774643, 0.151109978556633, 0.22650466859340668, -0.08805600553750992, 0.20824594795703888, 0.38004666566848755, 0.014818050898611546, 0.22962558269500732, -0.06201136112213135, 0.10583105683326721, 0.149516761302948, 0.32273757457733154, 0.012586621567606926, 0.43721306324005127, 0.1064925566315651, 0.2702868580818176, 0.6254134178161621, 0.1969486027956009, 0.0795065388083458, 0.1210874542593956, 0.25603264570236206, -0.2426038533449173, -0.20511384308338165, 0.4185654819011688, 0.140414759516716, -0.058846328407526016, 0.3224635422229767, -0.15005066990852356, -0.07273293286561966, 0.1247330754995346, 0.15062585473060608, 0.1947641372680664, -0.2797318398952484, 0.012281307950615883, -0.5949556827545166, 0.28449589014053345, 0.021604284644126892, -0.007740777917206287, 0.18752184510231018, -0.21303366124629974, -0.0691157802939415, 0.1293254792690277, 0.1560501903295517, -0.00149701745249331, -0.7965766787528992, -0.6033445000648499, -0.5060997605323792, 0.057749826461076736, -0.03785328194499016, 0.14186348021030426, -0.08463340997695923, 0.06584804505109787, 0.07114920020103455, -0.06763099879026413, 0.5189666748046875, -0.27951347827911377, -0.23457269370555878, 0.2563897967338562, 0.04275032505393028, -0.1570790857076645, 0.015037777833640575, -0.01292155496776104, 0.408473402261734, 0.29668956995010376, -0.027669688686728477, -0.3415411412715912, -0.2420085072517395, 0.191163569688797, 0.1286141574382782, -0.40765252709388733, -0.3557877242565155, -0.16884630918502808, -0.28507813811302185, -0.0315503254532814, -0.15034019947052002, 0.22856725752353668, 0.13091659545898438, 0.08498634397983551, -0.20124872028827667, -0.08133242279291153, -0.3202265202999115, 0.4161020517349243, 0.22947411239147186, 0.15941038727760315, 0.09486999362707138, 0.23963628709316254, -0.113137386739254, 0.2765873372554779, -0.08313435316085815, 0.49266305565834045, 0.11508174240589142, -0.07333220541477203, -0.23578187823295593, -0.16268479824066162, 0.4998655617237091, 0.22080808877944946, -0.13017956912517548, 0.24570414423942566, -0.14591766893863678, -0.11419601738452911, -0.4050399363040924, -0.11082149296998978, 0.12244566529989243, 0.04077129811048508, -0.06927523016929626, -0.3382657766342163, 0.342974990606308, 0.026600614190101624, -0.2418072372674942, -0.15076686441898346, 0.027509192004799843, -0.30637285113334656, 0.4966259300708771, 0.04959384724497795, 0.7502142190933228, 0.08026935905218124, 0.22579878568649292, 0.49956774711608887, 0.15298210084438324, 0.4479937255382538, -0.019674276933073997, 0.10599586367607117, -0.22976446151733398, -0.02018636092543602, -0.08018358051776886, -0.07720783352851868, -0.032640546560287476, 0.22695475816726685, -0.2821178138256073, 0.3359481692314148, -0.003365939948707819, -0.3440561890602112, -0.005583631340414286, 0.28394001722335815, 0.29388606548309326, -0.12554708123207092, -0.29250362515449524, 0.05541755259037018, -0.021753422915935516, 0.04260582849383354, -0.12310413271188736, -0.10986907035112381, 0.21333195269107819, 0.019410278648138046, -0.11746605485677719, -0.1151944249868393, -0.3224739730358124, 0.26700183749198914, 0.11726567149162292, -0.16850507259368896, 0.4472987949848175, 0.28500834107398987, 0.12395753711462021, 0.00779626052826643, -0.0711960643529892, 0.07813414186239243, 0.2080245167016983, -0.08230776339769363, 0.16689473390579224, -0.04284118488430977, 0.15705211460590363, -0.0013509708223864436, -0.002543106209486723, -0.005038476549088955, 0.2122475951910019, 0.15226203203201294, -0.4720565676689148, -0.09663672745227814, -0.052343543618917465, -0.14721140265464783, -0.25698259472846985, 0.26280760765075684, -0.08195880055427551, 0.032691314816474915, 0.07669854909181595, 0.02396206557750702, -0.005239620804786682, 0.18854539096355438, -0.1153898760676384, -0.01737253926694393, -0.025045331567525864, 0.1201426237821579, 0.40227895975112915, 0.23497729003429413, 0.30802085995674133, 0.30026939511299133, -0.06817168742418289, -0.18035244941711426, 0.1713419109582901, -0.12207766622304916, 0.2909735143184662, 0.17560893297195435, 0.14648108184337616, -0.23759496212005615, -0.30445995926856995, 0.11805061250925064, 0.013480284251272678, 0.06697133928537369, -0.026001261547207832, -0.18379096686840057, -0.23541446030139923, 0.44257333874702454, -0.11160564422607422, -0.06374991685152054, -0.1207006424665451, 0.34304168820381165, -0.011143354699015617, 0.23452189564704895, -0.322607159614563, -0.09017423540353775, -0.03424937278032303, -0.0006585180526599288, -0.07214872539043427, -0.39503714442253113, 0.04854457080364227, 0.05626627802848816, 0.11704683303833008, -0.3386169672012329, -0.10398070514202118, -0.20111647248268127, 0.0163677167147398, 0.09185110032558441, 0.14509904384613037, -0.010053660720586777, 0.08328449726104736, -0.004601223394274712, -0.12190113961696625, -0.12631070613861084, 0.03349537029862404, -0.21332596242427826, 0.23030945658683777, 0.22418175637722015, -0.24330531060695648, -0.35254427790641785, -0.14412689208984375, 0.04647018015384674, 0.12122439593076706, -0.15298810601234436, 0.18837764859199524, 0.10763496160507202, -0.18705832958221436, -0.060220617800951004, 0.06111551821231842, 0.09295987337827682, -0.23503786325454712, 0.022059626877307892, 0.26096153259277344, 0.21356503665447235, -0.20929251611232758, 0.19506770372390747, 0.09530187398195267, 0.5737608671188354, -0.36217015981674194, -0.12379559874534607, -0.19613145291805267, 0.18014712631702423, -0.3975521922111511, 0.1067783534526825, -0.03577025979757309, 0.26923084259033203, 0.15088312327861786, 0.3243774473667145, 0.3548031747341156, 0.1190216988325119, -0.22470924258232117, -0.004598136525601149, 0.28425392508506775, 0.0008048261515796185, 0.0646134540438652, 0.06524714082479477, -0.04188430681824684, 0.0952359065413475, 0.47959232330322266, 0.05689142271876335, 0.27372705936431885, 0.5982530117034912, 0.18818745017051697, 0.1339508444070816, 0.5289393067359924, 0.015870315954089165, 0.4654013216495514, 0.07246339321136475, -0.07440931349992752, 0.16543564200401306, 0.1665533185005188, -0.1509915292263031, 0.258928507566452, -0.08404205739498138, -0.04706871137022972, -0.5038697719573975, 0.06182036176323891, 0.18502815067768097, -0.19309002161026, -0.32449591159820557, 0.1354411542415619, 0.09586013108491898, -0.019027041271328926, -0.13497394323349, -0.265422523021698, -0.3414902687072754, 0.1372232288122177, -0.11110538244247437, -0.018673621118068695, -0.2364368885755539, 0.3297952711582184, 0.18047776818275452, 0.2503114938735962, 0.07628121972084045, 0.34376493096351624, 0.3048165738582611, -0.1078619509935379, -0.04601534456014633, 0.405979186296463, 0.25081300735473633, 0.133440300822258, -0.7279348373413086, 0.07684739679098129, -0.31432464718818665, -0.15372417867183685, -0.17127113044261932, 0.019804183393716812, -0.1110554188489914, 0.2067066729068756, 0.40551599860191345, 0.03554209694266319, 0.033221594989299774, 0.05546285957098007, 0.4479644298553467, 0.033193930983543396, -0.22742202877998352, 0.3062974214553833, -0.17437130212783813, 0.05574895441532135, 0.15760904550552368, 0.11946940422058105, -0.4857296347618103, -0.270864874124527, 0.6146504878997803, -0.023026203736662865, 0.14867430925369263, -0.14522896707057953, 0.09348664432764053, 0.002862202003598213, 0.6333816051483154, 0.1780221313238144, 0.035749513655900955, -0.13035626709461212, 0.003992521669715643, -0.5874857902526855, -0.20550690591335297, -0.03970714658498764, -0.07464770972728729, 0.13763676583766937, 0.2864626348018646, -0.0014384663663804531, 0.226289764046669, -0.40773871541023254, 0.14048416912555695, -0.3960295021533966, -0.2935958206653595, -0.6176454424858093, 0.03923562541604042, -0.25117170810699463, 0.22112047672271729, -0.19022713601589203, 0.01590428128838539, 0.2776588499546051, 0.1377042531967163, -0.09554065018892288, -0.0318647176027298, -0.05506926029920578, -0.08573491126298904, 0.136280357837677, -0.033626023679971695, 0.4873389005661011, -0.03167474642395973, 0.002837968058884144, 0.012323325499892235, -0.10426328331232071, 0.0031747426837682724, -0.17775548994541168, 0.5362425446510315, 0.106227807700634, 0.1782296895980835, -0.18648551404476166, 0.12190103530883789, 0.1441919356584549, 0.11801627278327942, 0.19541457295417786, -0.2649312913417816, -0.4106276035308838, 0.3911323547363281, 0.11501386761665344, 0.41589459776878357, -0.08289723843336105, 0.5141797065734863, -0.14523209631443024, 0.10624013096094131, -0.10973336547613144, -0.3697822391986847, 0.42288738489151, -0.14515887200832367, 0.04343736916780472, 0.12982621788978577, 0.06356649100780487, 0.19554567337036133, 0.09209558367729187, -0.4175349175930023, -0.3561800420284271, 0.37265098094940186, -0.42967846989631653, -0.3153369426727295, 0.25593119859695435, 0.025458237156271935, -0.4772297143936157, -0.22108261287212372, -0.04400438070297241, -0.021368326619267464, -0.4149128794670105, 0.07358885556459427, -0.0863085612654686 ]
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.034682098776102066, 0.13347983360290527, -0.10313531756401062, 0.05421443656086922, 0.2966335713863373, -0.0923532173037529, 0.37532466650009155, 0.4698342978954315, -0.13277779519557953, -0.21645307540893555, -0.21985167264938354, 0.89546138048172, 0.1729375720024109, 0.07015401124954224, -0.0751238539814949, -0.00609900476410985, 0.14508050680160522, 0.1565447896718979, 0.008870582096278667, -0.07089834660291672, -0.05991070345044136, 0.2531311511993408, -0.3004130423069, 0.18262295424938202, -0.09054791182279587, -0.24548909068107605, -0.06939943879842758, 0.20317313075065613, -0.03727540373802185, -0.4164663553237915, 0.316197007894516, -0.24165427684783936, -0.0060520293191075325, 0.32743608951568604, -0.00010487269901204854, 0.16407017409801483, 0.2705140709877014, -0.000003213020818293444, -0.31738048791885376, 0.022458909079432487, 0.21172688901424408, -0.29632773995399475, 0.38135823607444763, -0.34748196601867676, 0.08694632351398468, -0.35661983489990234, 0.01714707538485527, -0.08357620984315872, 0.7314299941062927, 0.40842145681381226, 0.27851811051368713, 0.2500537037849426, 0.22122319042682648, 0.105473093688488, 0.028330978006124496, 0.017516428604722023, -0.1275164783000946, 0.09066718071699142, 0.07503079622983932, -0.11025477945804596, -0.09462135285139084, -0.06785090267658234, 0.018964409828186035, -0.1256456822156906, -0.027246495708823204, 0.04046189412474632, -0.0931730791926384, -0.2096056044101715, -0.07696367055177689, 0.2726137638092041, 0.09395939856767654, -0.38738328218460083, -0.34785106778144836, -0.3279165029525757, 0.06293901056051254, -0.0009638402843847871, -0.04028669372200966, 0.09387320280075073, -0.1286567598581314, 0.11512228101491928, 0.37401777505874634, 0.21216607093811035, -0.19180332124233246, 0.04426145553588867, -0.10552314668893814, 0.22870668768882751, -0.13560207188129425, 0.054174404591321945, -0.05787988007068634, -0.3256852924823761, 0.098695307970047, -0.02775442972779274, 0.12784400582313538, 0.12531469762325287, -0.34643274545669556, -0.2328876256942749, -0.022337762638926506, -0.5411041378974915, 0.028372356668114662, -0.060190599411726, 0.42582714557647705, 0.09071990102529526, 0.17178983986377716, 0.23119524121284485, 0.36683109402656555, -0.014952623285353184, 0.034624211490154266, 0.16060271859169006, 0.11225572228431702, 0.08119095861911774, -0.18641990423202515, 0.13482601940631866, -0.16628895699977875, -0.24216918647289276, -0.08594545722007751, -0.11530155688524246, 0.3311736583709717, 0.02543761394917965, -0.4399408996105194, -0.05375325679779053, -0.5590524673461914, 0.20230455696582794, 0.07109384983778, 0.13386724889278412, -0.07466240972280502, 0.330074280500412, 0.03256332129240036, 0.3296063244342804, -0.11417686939239502, 0.25829365849494934, -0.18877092003822327, 0.17038677632808685, -0.08742772787809372, -0.23653244972229004, 0.09821099787950516, 0.30398625135421753, 0.04660208150744438, 0.05049760267138481, 0.09189603477716446, -0.08390247821807861, -0.1096954271197319, -0.0015050508081912994, 0.13926494121551514, 0.068576879799366, 0.035796232521533966, -0.08652140200138092, 0.13930487632751465, -0.5467723608016968, -0.11631391197443008, 0.008496944792568684, -0.19115640223026276, 0.0046372245997190475, -0.17469915747642517, 0.23534293472766876, -0.20895083248615265, -0.20943008363246918, -0.24873077869415283, 0.30757924914360046, 0.25598397850990295, -0.13447752594947815, 0.055489931255578995, -0.21348322927951813, 0.10804370790719986, -0.31031686067581177, 0.04281039908528328, 0.08124611526727676, -0.5389329791069031, -0.02032427117228508, 0.030798764899373055, 0.0184506643563509, 0.08580136299133301, 0.3102588653564453, -0.11584832519292831, 0.13311371207237244, -0.00830878596752882, 0.36001086235046387, 0.4705026149749756, -0.5010073184967041, -0.22720876336097717, 0.12339536845684052, -0.10282168537378311, 0.04695741459727287, -0.009413085877895355, -0.06199907511472702, 0.11394321173429489, -0.08478961884975433, 0.0009972709231078625, 0.41463616490364075, 0.08445445448160172, -0.029538594186306, -0.31786009669303894, -0.042588163167238235, 0.1657475084066391, -0.047936804592609406, -0.20704911649227142, -0.04203423112630844, 0.10970628261566162, 0.15327487885951996, 0.2502879202365875, -0.01732683554291725, 0.15959694981575012, 0.0532882958650589, 0.10937590897083282, -0.1778443604707718, 0.12437763810157776, -0.16074088215827942, -0.47000131011009216, 0.048602692782878876, -0.45373404026031494, 0.06089391931891441, -0.41443395614624023, -0.22325508296489716, -0.21283486485481262, 0.14734770357608795, -0.18784268200397491, 0.02555815875530243, 0.35755133628845215, -0.16794990003108978, -0.051280949264764786, -0.09644610434770584, -0.12661924958229065, -0.18820306658744812, -0.2063399851322174, 0.17197345197200775, -0.17085038125514984, 0.22717446088790894, -0.11296781152486801, -0.1993497759103775, 0.2624521851539612, 0.4142288267612457, 0.10864870995283127, 0.061425961554050446, 0.07964739203453064, 0.22132247686386108, -0.054463185369968414, -0.03178820013999939, 0.3201679587364197, -0.29099732637405396, -0.03131737932562828, -0.265950471162796, 0.01414306927472353, 0.31976330280303955, 0.15064117312431335, -0.18041406571865082, -0.3506353795528412, 0.5115053057670593, -0.005945076700299978, 0.3427330255508423, -0.04898681119084358, 0.2725570797920227, 0.2093355655670166, 0.037388112396001816, -0.2711518704891205, -0.07177029550075531, -0.48354193568229675, 0.3345215618610382, -0.02044050022959709, -0.044702544808387756, -0.24434514343738556, 0.3678496181964874, 0.5505485534667969, -0.06893302500247955, 0.16166147589683533, 0.07750925421714783, 0.016199124976992607, -0.2619679570198059, 0.06488782167434692, 0.06906066089868546, 0.2639736831188202, 0.21404384076595306, 0.24035806953907013, -0.1615494340658188, -0.28507936000823975, -0.07137318700551987, 0.20828884840011597, 0.09746307879686356, 0.5278186202049255, 0.07922708243131638, 0.5001674890518188, -0.0341707281768322, -0.3575005531311035, -0.19927991926670074, -0.05163348466157913, 0.06868539750576019, -0.2854183614253998, 0.2564879357814789, -0.3057742118835449, 0.047743476927280426, -0.025056784972548485, -0.15959571301937103, -0.018488580361008644, -0.35921257734298706, -0.03161245584487915, -0.1378120332956314, -0.13789168000221252, 0.24065381288528442, 0.026621662080287933, 0.08449450880289078, 0.23270748555660248, -0.2775379717350006, -0.15279796719551086, -0.235208198428154, -0.26169347763061523, 0.21776193380355835, 0.33793768286705017, 0.041134774684906006, -0.04852842912077904, 0.27942752838134766, -0.060433488339185715, -0.06153291091322899, -0.37258753180503845, -0.00826133694499731, -0.3359127640724182, 0.07153237611055374, 0.20276561379432678, 0.16235685348510742, -0.26201969385147095, -0.1655699461698532, 0.2315651923418045, -0.01640520803630352, -0.20914912223815918, 0.09470492601394653, -0.1275332123041153, -0.034623946994543076, -0.1428409069776535, -0.24694384634494781, -0.22609896957874298, -0.3014287054538727, 0.5213177800178528, 0.18876715004444122, 0.22195224463939667, 0.12497054040431976, 0.3326108157634735, 0.3914608061313629, 0.10528441518545151, 0.04237329214811325, -0.06947744637727737, 0.09768634289503098, 0.29770779609680176, -0.16969409584999084, -0.37976980209350586, -0.0698820948600769, -0.187622532248497, 0.24076418578624725, -0.33109188079833984, -0.19385923445224762, -0.15038548409938812, -0.08566560596227646, 0.20666779577732086, -0.02671607956290245, -0.041933324187994, 0.2467583417892456, 0.20925776660442352, -0.20281043648719788, -0.20007212460041046, -0.03428483009338379, 0.1739804744720459, 0.17105725407600403, 0.037709929049015045, -0.171238511800766, 0.30405235290527344, 0.25859180092811584, 0.4388797879219055, 0.20998269319534302, -0.14609187841415405, 0.040978800505399704, -0.0747576355934143, 0.17800743877887726, -0.04465180262923241, -0.1240198165178299, 0.058353494852781296, -0.28277045488357544, 0.21704387664794922, 0.02087046578526497, -0.04804529994726181, -0.4201207458972931, 0.06627871841192245, 0.2097398042678833, -0.2522660195827484, -0.2328830063343048, 0.11302942037582397, -0.2635754644870758, -0.2586226165294647, 0.06002331152558327, 0.007231602910906076, -0.2038666009902954, 0.0052683730609714985, -0.11344599723815918, -0.1282094120979309, -0.07911525666713715, 0.05453890189528465, -0.42793187499046326, -0.26823726296424866, -0.29557323455810547, 0.19402314722537994, -0.02747536264359951, 0.32339921593666077, 0.23893016576766968, -0.32291164994239807, 0.10851084440946579, -0.26270437240600586, 0.3716488182544708, 0.013256399892270565, -0.06007226184010506, 0.36292749643325806, 0.3301502466201782, -0.7625820636749268, -0.04599594324827194, -0.32562631368637085, 0.41423308849334717, 0.25857117772102356, 0.11365881562232971, -0.3738937973976135, -0.2970243990421295, 0.13373032212257385, -0.06115896627306938, 0.03084159828722477, 0.12805305421352386, -0.23782138526439667, -0.3379615843296051, -0.20019115507602692, 0.22597946226596832, 0.35106250643730164, 0.2922065556049347, -0.21159100532531738, -0.4218181371688843, -0.19450554251670837, -0.19399574398994446, 0.1717284470796585, 0.218531534075737, 0.1352570652961731, 0.02848033793270588, -0.052735354751348495, -0.14774589240550995, 0.26583874225616455, 0.08324108272790909, 0.4682662785053253, -0.0706394612789154, -0.10463608056306839, 0.10219954699277878, 0.0393768809735775, 0.31869569420814514, 0.2960731089115143, -0.18906810879707336, 0.0780215784907341, -0.14809991419315338, 0.011173350736498833, 0.20169349014759064, -0.23846451938152313, 0.38594308495521545, -0.016880765557289124, 0.002589900279417634, -0.1516295075416565, 0.4655604958534241, -0.02035725861787796, -0.03275778517127037, 0.03834303095936775, 0.11359573900699615, -0.11310918629169464, 0.4639155864715576, 0.2065856009721756, 0.8790793418884277, 0.026242073625326157, 0.31716760993003845, 0.5428179502487183, -0.1710011512041092, 0.5304217338562012, -0.05399573594331741, 0.14786800742149353, -0.29385948181152344, 0.5065795183181763, 0.06451772153377533, -0.1425768882036209, -0.08630942553281784, 0.26818233728408813, -0.2327597737312317, 0.025835903361439705, -0.19606181979179382, 0.217009499669075, 0.21070697903633118, 0.27510663866996765, -0.030598891898989677, -0.275597482919693, -0.6548113226890564, 0.23622922599315643, 0.11659213155508041, -0.25149479508399963, 0.15023624897003174, -0.45652472972869873, -0.445803165435791, -0.10747119784355164, -0.014846420846879482, 0.26220735907554626, -0.1795082539319992, 0.31228190660476685, 0.31677013635635376, -0.3436288833618164, 0.19710186123847961, 0.5936036705970764, -0.1254543662071228, -0.2281094789505005, -0.05505400896072388, 0.08613014966249466, 0.034679099917411804, -0.010929535143077374, 0.10198617726564407, -0.08541809767484665, 0.34365949034690857, -0.06179986149072647, -0.13431721925735474, 0.08106309920549393, -0.034894488751888275, -0.13049601018428802, 0.07974330335855484, 0.4892714023590088, -0.16184669733047485, -0.3484070599079132, -0.09836989641189575, -0.0384707935154438, -0.3954729735851288, -0.24171218276023865, 0.2116260826587677, -0.009225239977240562, -0.11256373673677444, 0.4255143105983734, 0.21379391849040985, -0.08397851139307022, 0.14848481118679047, 0.26260989904403687, 0.09307335317134857, 0.3781290650367737, 0.5176308751106262, 0.08842989802360535, -0.1763884723186493, -0.27539634704589844, 0.1769769787788391, 0.1379491686820984, -0.18899035453796387, 0.2807774245738983, -0.18825985491275787, -0.35767292976379395, 0.04599016532301903, 0.020759807899594307, -0.05893656983971596, 0.19556361436843872, -0.25975537300109863, -0.40569695830345154, -0.2798853814601898, 0.2288467437028885, -0.04088197275996208, -0.006954124663025141, -0.048640284687280655, 0.33390164375305176, -0.014501463621854782, -0.09634894132614136, -0.38435736298561096, 0.2725987434387207, -0.3716554343700409, 0.07407499104738235, -0.3814622163772583, -0.34599098563194275, 0.26681721210479736, 0.03080497495830059, 0.21607671678066254, 0.109861359000206, 0.0036864366848021746, -0.3170912265777588, -0.046104613691568375, 0.07813110947608948, 0.14601173996925354, 0.10289309918880463, -0.0152358990162611, 0.045259568840265274, -0.3004336655139923, -0.1509356051683426, -0.12128937989473343, -0.05553966388106346, -0.009637324139475822, 0.1606694906949997, 0.009900725446641445, 0.0740237608551979, 0.20944929122924805, -0.15547427535057068, -0.0692409947514534, 0.05239203944802284, -0.07388271391391754, 0.2532297968864441, -0.04902235418558121, 0.0039507742039859295, 0.11222197860479355, 0.22623273730278015, -0.005849236622452736, 0.18652035295963287, 0.2958054840564728, -0.1624649465084076, -0.4413200616836548, -0.21850012242794037, 0.32241374254226685, 0.5740982294082642, -0.17636439204216003, 0.05707116052508354, -0.20074968039989471, 0.21566596627235413, -0.40096718072891235, 0.09818058460950851, 0.24204908311367035, -0.1563889980316162, 0.16294121742248535, 0.18097402155399323, 0.027445664629340172, -0.11565147340297699, -0.012556072324514389, 0.06593583524227142, 0.20972181856632233, -0.07659610360860825, -0.05963495373725891, 0.21385322511196136, -0.016143741086125374, 0.01932218112051487, 0.4070715606212616, -0.08576636016368866, 0.2633345127105713, 0.3329680263996124, 0.031227150931954384, 0.04262801632285118, 0.20170874893665314, 0.039078887552022934, 0.37105169892311096, 0.16235946118831635, -0.05449580401182175, 0.17371022701263428, 0.28762900829315186, -0.022083986550569534, 0.10960925370454788, 0.7406485676765442, -0.09936989843845367, -0.14961974322795868, -0.0029149455949664116, 0.09649539738893509, -0.19204053282737732, -0.26092639565467834, -0.36249664425849915, -0.15067777037620544, -0.10666022449731827, -0.3490463197231293, -0.07085154950618744, -0.21644830703735352, -0.08915682882070541, -0.0799686387181282, 0.11761343479156494, -0.127852663397789, 0.19153372943401337, 0.07219557464122772, 0.2520897388458252, -0.01634250394999981, 0.1791752278804779, 0.191896453499794, -0.007401078473776579, -0.17814581096172333, 0.1820497065782547, 0.5045114755630493, 0.15603844821453094, -0.448122501373291, -0.012412314303219318, 0.07526034116744995, -0.35750722885131836, 0.01840379647910595, 0.10657680779695511, 0.11374090611934662, -0.23784250020980835, 0.33567190170288086, 0.2290235012769699, -0.18507768213748932, -0.21652613580226898, 0.22242169082164764, -0.07615596801042557, 0.11270245164632797, 0.2996041774749756, -0.3052109181880951, -0.3296506702899933, -0.09446859359741211, -0.004669751040637493, -0.2677339017391205, -0.27658894658088684, 0.15848501026630402, 0.007112117018550634, 0.2048693746328354, -0.21263518929481506, 0.1546742171049118, 0.06932594627141953, 0.576198399066925, -0.03108854591846466, 0.09480538219213486, 0.07941100001335144, 0.21028809249401093, -0.47909387946128845, 0.13912400603294373, -0.1064220666885376, -0.11811968684196472, 0.06871529668569565, 0.4990249276161194, 0.06305835396051407, 0.15049058198928833, 0.1508839726448059, 0.010432352311909199, -0.14351245760917664, 0.09686660766601562, -0.3981226980686188, 0.010469481348991394, 0.1829184591770172, 0.05970277264714241, 0.16288216412067413, -0.298153817653656, 0.06474930047988892, -0.12925498187541962, 0.13474057614803314, -0.02179933898150921, -0.21690794825553894, -0.02702086977660656, -0.10691569745540619, 0.22474825382232666, 0.1091795563697815, 0.1795610636472702, -0.0586220845580101, -0.23629851639270782, -0.18980462849140167, -0.1666763424873352, -0.24859510362148285, 0.4792468845844269, -0.14544162154197693, 0.23625560104846954, -0.08577384799718857, 0.09412839263677597, 0.1562325805425644, -0.02681168168783188, 0.11479774117469788, -0.13401693105697632, -0.32602065801620483, 0.3352854549884796, -0.09693118929862976, 0.24853451550006866, -0.2594832479953766, 0.36891648173332214, -0.12542174756526947, 0.2203356921672821, -0.35465919971466064, -0.547494649887085, 0.5134509205818176, -0.344206303358078, -0.35392120480537415, 0.25885018706321716, 0.17081239819526672, 0.26544180512428284, 0.10274441540241241, -0.16763974726200104, -0.1582757830619812, 0.21116745471954346, -0.17073442041873932, -0.3202184736728668, -0.005257368553429842, -0.16483967006206512, 0.10093142837285995, -0.2636692225933075, -0.04309387877583504, 0.0050744046457111835, 0.10691463202238083, -0.20345406234264374, -0.3928065598011017 ]
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.2761254906654358, -0.1318785548210144, 0.07569071650505066, 0.5165119767189026, 0.09885670989751816, -0.08921453356742859, 0.16246378421783447, 0.47762933373451233, -0.06896992027759552, 0.17806461453437805, 0.19733811914920807, 0.41090142726898193, -0.22790655493736267, -0.2859780788421631, -0.010782520286738873, -0.4891379475593567, -0.010812351480126381, 0.25762856006622314, 0.07523062080144882, -0.19344429671764374, -0.43372270464897156, 0.04549301415681839, -0.3053169846534729, 0.22822485864162445, 0.25546786189079285, 0.0886288583278656, -0.2604392170906067, 0.13486038148403168, -0.22786009311676025, -0.4158533215522766, 0.3323252499103546, -0.17855483293533325, 0.00796152651309967, 0.2735728919506073, -0.00011967583850491792, -0.16422660648822784, 0.34228384494781494, -0.050375714898109436, 0.13537898659706116, -0.2967055141925812, -0.5725340247154236, -0.31059104204177856, -0.031961794942617416, -0.3177138864994049, 0.261475533246994, 0.1489255726337433, -0.13543415069580078, -0.0481012761592865, 0.012342279776930809, 0.1812463402748108, 0.1339588165283203, 0.02541724033653736, -0.2118636965751648, 0.017760904505848885, 0.26042452454566956, 0.007190664764493704, 0.01854950562119484, 0.36357852816581726, -0.4025585353374481, -0.30081629753112793, 0.014912407845258713, 0.3288401663303375, 0.013553996570408344, 0.08236440271139145, 0.20778323709964752, 0.2061753273010254, 0.06418682634830475, 0.18809054791927338, -0.09990222752094269, 0.09085401147603989, -0.36081796884536743, 0.08363572508096695, -0.3250645101070404, 0.23435437679290771, 0.05630258843302727, -0.47850462794303894, 0.20228253304958344, -0.11532788723707199, -0.001447145128622651, -0.5615647435188293, -0.27838772535324097, -0.10059546679258347, -0.31679147481918335, 0.19225305318832397, 0.33596304059028625, -0.12879952788352966, -0.10188616812229156, 0.17364323139190674, 0.4988456964492798, -0.1260610818862915, -0.11482428759336472, -0.13571321964263916, 0.13166263699531555, 0.4445529282093048, -0.09116091579198837, 0.10928080976009369, 0.13634160161018372, 0.11333480477333069, -0.030332911759614944, -0.5219539999961853, 0.07191159576177597, -0.02703934535384178, -0.30864328145980835, 0.27344465255737305, 0.014334009028971195, 0.40411996841430664, 0.09885493665933609, 0.21380619704723358, -0.1712890863418579, 0.09427925944328308, 0.12941274046897888, -0.10194164514541626, 0.0056877536699175835, -0.13297604024410248, 0.27265462279319763, 0.4165845215320587, -0.2363314926624298, -0.11841806024312973, 0.12089855968952179, -0.030510371550917625, -0.516126275062561, -0.015684165060520172, 0.2908795475959778, 0.30360737442970276, -0.0318063423037529, 0.37577494978904724, 0.05425076186656952, 0.1252969354391098, -0.21856172382831573, 0.07105087488889694, -0.16511476039886475, 0.4736361503601074, -0.4104000926017761, -0.09632888436317444, 0.20496626198291779, -0.2787080407142639, 0.25012093782424927, 0.021214470267295837, 0.13067969679832458, 0.05555267259478569, -0.23201780021190643, -0.2523786127567291, 0.12637852132320404, -0.14106327295303345, 0.02728985622525215, -0.013950238935649395, 0.299596905708313, 0.27063629031181335, -0.13691169023513794, 0.01816614903509617, -0.4476972818374634, -0.3143445551395416, 0.15596115589141846, 0.09911378473043442, 0.17961345613002777, 0.15777501463890076, -0.21326114237308502, -0.09839426726102829, 0.2718788981437683, -0.27926895022392273, -0.24608395993709564, -0.3767074644565582, -0.1823875457048416, -0.26218199729919434, 0.1168278381228447, 0.20593670010566711, -0.12124524265527725, 0.07937269657850266, -0.3344721794128418, 0.38357147574424744, 0.41818952560424805, 0.2574719488620758, -0.24732793867588043, 0.0452040433883667, -0.04920543357729912, 0.3692496418952942, 0.512599766254425, -0.5257791876792908, -0.08675052970647812, -0.14901180565357208, 0.36256343126296997, -0.30877062678337097, -0.03997388109564781, -0.024080103263258934, -0.338436484336853, 0.02452148124575615, 0.05815304070711136, -0.14520753920078278, -0.10380145162343979, 0.013365980237722397, -0.20701681077480316, 0.035915229469537735, 0.2369994968175888, 0.01717192307114601, 0.2854471802711487, -0.09815650433301926, -0.0882565975189209, 0.34540751576423645, -0.11927323043346405, -0.13637496531009674, 0.034553412348032, 0.05047670006752014, 0.3094351887702942, -0.20218731462955475, 0.25883948802948, -0.16559311747550964, 0.10928314924240112, 0.06734714657068253, -0.4491260051727295, 0.285645991563797, -0.031146332621574402, 0.2148447036743164, -0.1701606661081314, -0.1016707494854927, -0.0813257247209549, 0.004504417534917593, 0.03322867676615715, 0.08053222298622131, 0.283566415309906, 0.05956162512302399, -0.13740481436252594, -0.30839279294013977, -0.07903077453374863, -0.2511032223701477, -0.2863689363002777, 0.03992670774459839, -0.35768088698387146, -0.111391082406044, 0.2529584467411041, 0.42239680886268616, 0.4608677327632904, 0.22826534509658813, -0.17527151107788086, 0.1923549473285675, 0.012855442240834236, -0.25308850407600403, 0.25284343957901, 0.02891291119158268, -0.031893759965896606, -0.2653278112411499, 0.10530871897935867, -0.08036454021930695, 0.3789340853691101, -0.07781627029180527, 0.17001542448997498, 0.36665090918540955, 0.021599754691123962, 0.3864726424217224, 0.058427706360816956, 0.129057839512825, 0.14585894346237183, 0.10786625742912292, 0.17750780284404755, -0.11834599822759628, 0.3007712960243225, 0.07034744322299957, -0.20677338540554047, -0.2661765217781067, 0.22440017759799957, -0.39740049839019775, 0.5296509861946106, 0.1097303181886673, -0.0443880595266819, 0.3107479214668274, 0.044751714915037155, -0.07975424081087112, -0.3063564896583557, -0.5760131478309631, 0.4189804792404175, -0.1433950811624527, -0.08124671876430511, -0.009523775428533554, -0.057668451219797134, -0.03411610797047615, 0.1319584846496582, 0.14558738470077515, -0.15138401091098785, -0.16148383915424347, 0.0986192375421524, -0.08650796860456467, 0.04164455085992813, -0.2019616961479187, 0.03170088678598404, 0.5163309574127197, -0.3323078155517578, 0.45920300483703613, -0.28289440274238586, -0.21122650802135468, -0.27134281396865845, -0.6009108424186707, -0.39303460717201233, -0.4392986595630646, -0.061124835163354874, -0.048750754445791245, 0.11802969872951508, 0.21165603399276733, 0.11267529428005219, 0.32430553436279297, 0.21352019906044006, 0.19731830060482025, -0.11490348726511002, -0.22645196318626404, -0.42135557532310486, -0.0705222561955452, -0.1354673057794571, 0.06779932230710983, 0.15107719600200653, -0.14985735714435577, -0.14664676785469055, -0.05144963040947914, -0.24786560237407684, 0.08928436785936356, -0.37124398350715637, 0.011481414549052715, 0.42872583866119385, -0.25207334756851196, -0.5686554908752441, -0.1865827888250351, 0.4113078713417053, -0.2112160325050354, -0.13622330129146576, 0.6053295731544495, -0.10481109470129013, 0.004957290831953287, -0.14193089306354523, -0.23258307576179504, 0.16318033635616302, -0.02663533203303814, 0.24478867650032043, 0.11479852348566055, 0.3527391254901886, 0.06086217612028122, -0.04263114184141159, 0.3670555651187897, -0.24333922564983368, -0.05458611622452736, -0.24544329941272736, -0.23380403220653534, 0.1739594042301178, -0.163354754447937, -0.3638002574443817, -0.23292100429534912, -0.08394567668437958, 0.22059650719165802, 0.03269650787115097, -0.07199202477931976, -0.6988810896873474, 0.16091398894786835, -0.08757348358631134, -0.11307566612958908, 0.34300118684768677, 0.20707985758781433, -0.02643774263560772, -0.018562236800789833, -0.2006421685218811, -0.07355058193206787, 0.29971611499786377, 0.1567744016647339, 0.2876431941986084, 0.05523907393217087, 0.26819324493408203, 0.21057787537574768, 0.7750536203384399, 0.41104012727737427, -0.14279557764530182, 0.41083604097366333, 0.09807132184505463, -0.06659312546253204, 0.1418495923280716, -0.4568256735801697, 0.053185924887657166, 0.08782108128070831, 0.265216588973999, 0.1736508011817932, -0.11302299052476883, -0.013581441715359688, -0.1446095108985901, -0.14007534086704254, -0.44882944226264954, -0.25864091515541077, 0.111882284283638, -0.247754767537117, 0.5019530653953552, 0.03937112167477608, 0.0282556414604187, -0.401120126247406, -0.2987893521785736, 0.04371298477053642, -0.13466300070285797, 0.1600887030363083, -0.0850047841668129, 0.319912314414978, -0.4315064251422882, -0.26094314455986023, 0.43255120515823364, 0.5315393805503845, 0.46023908257484436, -0.044084154069423676, 0.21407541632652283, 0.028620675206184387, 0.04356533661484718, 0.39165928959846497, -0.2287541776895523, 0.1957281082868576, 0.1939031034708023, 0.01256760023534298, -0.24091777205467224, 0.09946142137050629, -0.45067206025123596, 0.025902191177010536, 0.25222641229629517, 0.19665497541427612, -0.1824198216199875, 0.0829215943813324, 0.2392496019601822, -0.19131603837013245, -0.21682283282279968, -0.17175425589084625, -0.3922536373138428, -0.10345565527677536, 0.13379345834255219, 0.0708656832575798, -0.18482840061187744, 0.32781440019607544, 0.11644136905670166, 0.3427135646343231, 0.0810551717877388, -0.05454039201140404, 0.1605665385723114, 0.05254748836159706, -0.015751272439956665, 0.0007021196652203798, 0.007516062818467617, 0.010560032911598682, -0.09696713835000992, 0.18034327030181885, 0.07531286776065826, -0.0390518493950367, -0.3406936228275299, -0.011494243517518044, 0.15536412596702576, 0.5570816397666931, 0.04207242280244827, -0.02593846805393696, 0.007409306708723307, 0.0348689891397953, 0.045191943645477295, -0.09717261046171188, 0.11417903751134872, 0.6543454527854919, -0.1623399555683136, -0.27443817257881165, -0.35112056136131287, 0.5985898971557617, 0.13912785053253174, -0.04412301629781723, -0.16028451919555664, 0.3554714620113373, -0.10967916995286942, 0.25734245777130127, 0.40789997577667236, 0.9862605929374695, 0.007694262079894543, 0.006367583759129047, 0.3951888084411621, 0.3146587312221527, 0.6596639156341553, 0.15788480639457703, 0.24318666756153107, -0.480303555727005, 0.09305138885974884, -0.047033317387104034, -0.1843595802783966, -0.04330267384648323, -0.1433938592672348, -0.15192152559757233, 0.5336700677871704, -0.1822410225868225, -0.00907901581376791, 0.05950213596224785, -0.09267592430114746, 0.14970779418945312, -0.3648532032966614, -0.22302737832069397, 0.09297725558280945, -0.20578491687774658, 0.13140429556369781, -0.13272133469581604, -0.13585743308067322, 0.09861931949853897, -0.3095802962779999, -0.34879204630851746, 0.2200474888086319, 0.30451807379722595, 0.08683709055185318, -0.06609047949314117, -0.0008574148523621261, 0.1731225550174713, -0.014482016675174236, 0.383158415555954, -0.030285777524113655, -0.1866537630558014, -0.022907769307494164, 0.07089829444885254, -0.088178351521492, 0.12048059701919556, 0.2667514681816101, -0.14315937459468842, -0.12799431383609772, -0.03302885219454765, 0.11756773293018341, -0.015954026952385902, -0.24412435293197632, -0.07702872157096863, 0.019763892516493797, 0.17072920501232147, -0.0075828940607607365, 0.05232170596718788, -0.03471234813332558, 0.0013458662433549762, -0.032520852982997894, 0.0771799311041832, 0.061572734266519547, -0.31984421610832214, 0.20466649532318115, 0.06109371408820152, -0.10083584487438202, 0.26332294940948486, 0.3545154333114624, 0.18911106884479523, 0.07073372602462769, 0.43308770656585693, 0.013101807795464993, -0.2483198195695877, -0.014343940652906895, -0.29575833678245544, 0.0910889059305191, -0.3135705888271332, 0.012532965280115604, 0.1495845913887024, 0.25773534178733826, 0.04608471691608429, 0.3942517936229706, 0.09639439731836319, 0.05424188822507858, 0.011534384451806545, -0.36254197359085083, 0.04545624181628227, 0.06286292523145676, -0.24709591269493103, -0.27275052666664124, 0.03838348016142845, 0.10211527347564697, -0.1322076916694641, 0.3776412606239319, -0.2192404419183731, 0.03907589614391327, -0.3728843927383423, 0.35844194889068604, -0.19263985753059387, -0.08277444541454315, 0.25404852628707886, 0.19477252662181854, 0.038845110684633255, 0.30142825841903687, -0.176705002784729, -0.07311218976974487, -0.21006692945957184, 0.16351152956485748, 0.13104763627052307, -0.10002083331346512, -0.14301858842372894, -0.3009256422519684, -0.23703055083751678, -0.052840378135442734, -0.5451626181602478, 0.09360536932945251, -0.050511907786130905, 0.5203586220741272, -0.01758083701133728, 0.20935878157615662, 0.25861871242523193, 0.1882203370332718, -0.08176849782466888, 0.34119856357574463, -0.050277043133974075, 0.164468452334404, 0.07339176535606384, -0.16560468077659607, -0.1188359335064888, 0.0411759689450264, 0.14328891038894653, -0.018774842843413353, 0.2660486400127411, -0.0018671503057703376, 0.31882190704345703, -0.2743103802204132, 0.3269651234149933, 0.140278160572052, -0.03911735117435455, -0.05687255412340164, 0.3071950674057007, 0.03405626490712166, -0.15770916640758514, -0.016701417043805122, -0.30500707030296326, 0.16469667851924896, -0.21073633432388306, 0.191252663731575, -0.19159549474716187, -0.0024429569020867348, 0.03654715418815613, -0.21616260707378387, -0.09616025537252426, -0.24999266862869263, -0.10512421280145645, 0.2406219094991684, -0.1562427580356598, 0.0950380265712738, 0.390239417552948, 0.10906331986188889, 0.17056815326213837, 0.2774474322795868, -0.12773065268993378, 0.22094568610191345, -0.3681941032409668, -0.034156594425439835, -0.1115671917796135, -0.0962212011218071, -0.42664986848831177, 0.32894548773765564, 0.38531020283699036, 0.21805958449840546, -0.20890580117702484, 0.6197125315666199, -0.24948371946811676, 0.00036280538188293576, -0.4004914164543152, 0.43265923857688904, 0.14803366363048553, -0.05091771110892296, -0.22886539995670319, -0.12701809406280518, -0.24224287271499634, 0.02410721778869629, -0.047732554376125336, 0.13675783574581146, 0.4916251599788666, 0.4510844647884369, -0.050579365342855453, -0.26044324040412903, -0.3250431418418884, 0.5483906865119934, 0.25604376196861267, -0.305996835231781, -0.003351546125486493, 0.11298004537820816, 0.0017467126017436385, -0.0900232195854187, 0.3348163664340973, 0.2629609704017639, 0.4056594967842102, -0.2561151385307312, -0.23892571032047272, 0.000882037216797471, 0.05253917723894119, 0.04795148968696594, 0.2962496280670166, 0.3155495524406433, 0.36833009123802185, 0.1411130130290985, -0.008941732347011566, -0.04641850292682648, 0.1642611026763916, -0.0995214506983757, 0.5115293264389038, 0.08945275843143463, 0.8424603939056396, -0.07010895013809204, 0.22005940973758698, -0.0643104836344719, 0.04334888234734535, -0.4138903319835663, 0.22941192984580994, -0.022455299273133278, 0.453264981508255, 0.12200053781270981, -0.049754608422517776, 0.031104043126106262, -0.010385677218437195, 0.5032488107681274, 0.3842634856700897, -0.16034813225269318, -0.6217659115791321, -0.07053346186876297, -0.18336835503578186, 0.08251988887786865, -0.07315391302108765, 0.19359712302684784, -0.013689986430108547, 0.06012032553553581, -0.15868763625621796, 0.1457275003194809, -0.13828255236148834, -0.12189557403326035, -0.21103700995445251, 0.2093118131160736, -0.24601268768310547, -0.22010581195354462, -0.24542585015296936, -0.44435372948646545, 0.038201265037059784, -0.027673887088894844, -0.03580102697014809, -0.22917623817920685, 0.026704708114266396, -0.11504748463630676, -0.22350969910621643, 0.08587861806154251, 0.5075324773788452, 0.2599182724952698, 0.3871496915817261, 0.32450732588768005, 0.14014704525470734, -0.2034894824028015, 0.05189784988760948, -0.13275721669197083, 0.08784428238868713, 0.06387672573328018, -0.3981204330921173, 0.179843932390213, -0.16468024253845215, 0.06775601953268051, -0.5098581910133362, 0.3263382613658905, -0.1633458286523819, -0.14339366555213928, -0.3805132210254669, 0.1197049617767334, 0.08513346314430237, -0.01699122041463852, -0.10535372048616409, 0.04019848257303238, -0.031903307884931564, 0.34250396490097046, -0.4504333734512329, -0.007498008664697409, 0.6227502226829529, -0.5898156762123108, -0.36556658148765564, 0.16507159173488617, 0.256681889295578, 0.009978004731237888, -0.17307335138320923, -0.8751229047775269, -0.12246385961771011, 0.35991171002388, 0.10913855582475662, -0.17431151866912842, -0.13046754896640778, -0.23086665570735931, -0.030322981998324394, 0.0319109708070755, -0.0329071469604969, -0.07873453199863434, -0.1470036506652832, 0.31457075476646423, -0.09690698981285095 ]
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.017292257398366928, 0.2893960773944855, 0.06094161421060562, 0.057870395481586456, 0.22360970079898834, -0.016548527404665947, 0.32003894448280334, 0.6101840734481812, -0.40100985765457153, -0.21304266154766083, -0.2422538846731186, 0.7714078426361084, 0.13278771936893463, -0.42659619450569153, 0.1489231139421463, -0.07152768969535828, 0.046225838363170624, 0.12672977149486542, 0.22394156455993652, 0.0536700002849102, -0.1744496375322342, 0.3416512608528137, -0.22996866703033447, 0.13204170763492584, -0.16675138473510742, 0.2660643756389618, 0.006536424160003662, 0.5419238209724426, -0.07457243651151657, -0.7302018404006958, 0.29777640104293823, -0.009330149739980698, 0.15174509584903717, 0.34502455592155457, -0.0001186112713185139, 0.18453176319599152, 0.3318486213684082, -0.10963703691959381, -0.35170164704322815, 0.05212962254881859, 0.28050342202186584, -0.2414647936820984, 0.3380267024040222, -0.1453838348388672, 0.06273150444030762, -0.31197941303253174, 0.03183189406991005, 0.08127480000257492, 0.6866549849510193, 0.15539661049842834, 0.09210099279880524, 0.1377253383398056, 0.07380591332912445, 0.052365742623806, 0.02077654004096985, 0.06787756830453873, 0.01660388708114624, 0.7200931906700134, 0.5202924609184265, -0.12601275742053986, -0.3388993740081787, -0.07208507508039474, 0.12127211689949036, -0.0382683165371418, 0.20485764741897583, -0.06355616450309753, -0.013848851434886456, -0.18327093124389648, 0.05246517062187195, 0.11702040582895279, 0.2416466921567917, -0.2380601316690445, -0.23284845054149628, -0.21574950218200684, 0.07478687167167664, -0.21810846030712128, 0.37732067704200745, 0.2772291302680969, -0.139860600233078, 0.15234236419200897, -0.056996993720531464, 0.03446073457598686, -0.19189301133155823, 0.029310619458556175, -0.21427370607852936, 0.5192517638206482, 0.12151257693767548, 0.04168425872921944, 0.10512390732765198, -0.16294585168361664, -0.15192624926567078, 0.3172394931316376, -0.2625276446342468, 0.3998277187347412, -0.39082688093185425, -0.16861741244792938, 0.11205310374498367, -0.36265188455581665, 0.21630500257015228, 0.09017730504274368, 0.1800890862941742, 0.16720479726791382, 0.21391239762306213, 0.12037068605422974, 0.4853108823299408, 0.054677315056324005, 0.17183560132980347, 0.20253245532512665, 0.152631014585495, -0.019630158320069313, -0.025974182412028313, 0.23977500200271606, -0.13988180458545685, -0.22500739991664886, -0.21351630985736847, 0.028067776933312416, -0.026821553707122803, -0.10946699976921082, 0.014882948249578476, 0.06951796263456345, -0.31477081775665283, -0.012025627307593822, 0.05098559707403183, 0.08486197888851166, 0.1312868446111679, 0.1926080733537674, -0.25002825260162354, 0.20476123690605164, -0.10145492106676102, -0.17269538342952728, -0.017575178295373917, -0.026820076629519463, -0.30665695667266846, -0.020665643736720085, 0.40547406673431396, -0.12256035208702087, 0.11852136254310608, -0.08124995976686478, -0.11161517351865768, -0.22692188620567322, -0.433472216129303, -0.04389789700508118, 0.007666639517992735, 0.14967356622219086, 0.03168029338121414, -0.07048674672842026, -0.03672363981604576, -0.25811049342155457, -0.18032069504261017, 0.21218964457511902, -0.3511877954006195, -0.28516241908073425, -0.5924192667007446, 0.11839151382446289, -0.322714239358902, -0.005309612490236759, 0.14440187811851501, 0.2050790935754776, 0.05665956065058708, -0.4543267786502838, -0.13778981566429138, -0.08935907483100891, -0.0031522151548415422, -0.22954273223876953, 0.14668263494968414, 0.2523784935474396, -0.8450292944908142, -0.23598171770572662, 0.16683731973171234, -0.0015068523352965713, 0.08309793472290039, 0.5275312662124634, -0.3514188230037689, 0.2732031047344208, -0.15309688448905945, 0.5261089205741882, 0.4013669490814209, -0.27797815203666687, -0.3369089663028717, 0.24279090762138367, -0.39944884181022644, -0.041357316076755524, -0.23726758360862732, -0.0655718445777893, 0.29670530557632446, 0.08233347535133362, 0.34125328063964844, 0.4493865370750427, -0.11555199325084686, 0.14832471311092377, -0.33256515860557556, -0.08049877732992172, 0.17264261841773987, 0.36014044284820557, -0.06741543859243393, -0.16082417964935303, -0.029858894646167755, 0.1449318528175354, 0.40400180220603943, -0.1719319224357605, -0.0207538902759552, 0.1606731116771698, 0.1372901052236557, -0.017320599406957626, 0.16614195704460144, -0.10807980597019196, -0.7758408188819885, 0.10205107182264328, -0.28949281573295593, 0.08079442381858826, -0.04113197699189186, 0.006053206045180559, -0.2767828404903412, -0.11359786242246628, -0.20613150298595428, -0.05402308329939842, 0.03211696445941925, -0.16049450635910034, -0.0348595529794693, -0.06829699128866196, -0.46529421210289, -0.15678761899471283, -0.15475668013095856, 0.37804940342903137, -0.1153782531619072, 0.40393194556236267, -0.13026513159275055, -0.4008335769176483, 0.09279229491949081, 0.3672269880771637, 0.12826143205165863, -0.26726198196411133, -0.006815253756940365, 0.329568088054657, -0.08044800162315369, 0.13387402892112732, -0.17082281410694122, -0.29795461893081665, 0.24760928750038147, -0.08576138317584991, -0.12928423285484314, -0.06358135491609573, -0.10223181545734406, -0.08836493641138077, -0.32466816902160645, 0.3362677991390228, 0.019726209342479706, -0.03263607621192932, -0.056773263961076736, -0.24713647365570068, 0.29812076687812805, -0.08481123298406601, -0.12740357220172882, -0.02829713374376297, 0.01728641986846924, 0.16710714995861053, -0.012494543567299843, 0.17665846645832062, -0.1765214204788208, -0.014474378898739815, 0.36949482560157776, -0.06511888653039932, 0.03556988015770912, 0.18731790781021118, 0.10087178647518158, -0.2918992042541504, -0.02475265972316265, -0.04872290790081024, 0.3634799122810364, -0.007696719840168953, -0.1558918058872223, -0.0039151934906840324, 0.03366728499531746, -0.018401818349957466, -0.01154564693570137, 0.0482458733022213, 0.4226093888282776, 0.5049404501914978, 0.3639852702617645, 0.16840124130249023, -0.2733655273914337, -0.15487322211265564, 0.12762297689914703, 0.05630448833107948, -0.3743777871131897, 0.060217056423425674, -0.2678268849849701, -0.14459271728992462, -0.2930878698825836, -0.1426909863948822, -0.3419748544692993, -0.1941555142402649, 0.10888884216547012, -0.03826402500271797, -0.08678275346755981, 0.2005050629377365, 0.16654546558856964, 0.40008050203323364, 0.10027819126844406, -0.18636783957481384, 0.03814578428864479, -0.1772579550743103, -0.21824167668819427, -0.0453670360147953, 0.3783230483531952, -0.06442906707525253, -0.2067786604166031, -0.18944168090820312, -0.27097487449645996, 0.10979248583316803, -0.4360964596271515, 0.16802921891212463, -0.00915578380227089, 0.19459031522274017, 0.022264938801527023, 0.23686352372169495, -0.14796730875968933, -0.3669349253177643, 0.28148242831230164, -0.046212345361709595, -0.25112801790237427, 0.0004012257559224963, -0.10349578410387039, 0.13379189372062683, -0.2878105938434601, -0.3897336423397064, -0.24531136453151703, -0.2271137833595276, 0.4359024167060852, 0.07529594749212265, 0.1372660994529724, 0.20040766894817352, -0.20206812024116516, 0.014743146486580372, -0.23705972731113434, -0.2110956758260727, 0.04947850480675697, -0.18574701249599457, 0.20523405075073242, -0.2988072633743286, -0.1417257934808731, -0.021901773288846016, 0.09425204247236252, 0.16700436174869537, -0.22435857355594635, -0.16041678190231323, 0.11611869186162949, 0.17135831713676453, 0.24600832164287567, -0.3234412372112274, -0.2597649395465851, 0.25247877836227417, -0.22972996532917023, 0.05242842435836792, 0.19721044600009918, -0.36020970344543457, -0.09371209144592285, 0.5185642838478088, 0.1982492357492447, -0.26570606231689453, 0.23632816970348358, 0.05972122400999069, 0.8267534971237183, -0.13744042813777924, -0.1625378578901291, 0.1258324384689331, 0.03038046509027481, 0.12194909900426865, -0.1489124298095703, -0.03524862602353096, 0.39218831062316895, -0.03979768976569176, -0.1129411831498146, 0.2475959062576294, 0.1624518185853958, -0.542482316493988, -0.005967604927718639, 0.1580977439880371, -0.5473145842552185, -0.16832341253757477, 0.2632974684238434, 0.5551201701164246, -0.08508773148059845, -0.042934201657772064, 0.02945185825228691, 0.002924638567492366, -0.23155124485492706, -0.05983646586537361, 0.2242509424686432, 0.2707135081291199, 0.09323346614837646, -0.5434256196022034, -0.3422013819217682, -0.044759660959243774, -0.020403189584612846, 0.1243698000907898, 0.46455642580986023, -0.0012728822184726596, -0.20624369382858276, 0.027220850810408592, -0.2641843259334564, 0.34766143560409546, 0.26207420229911804, 0.3518282175064087, 0.34914132952690125, 0.32933035492897034, -0.07430154085159302, -0.3046778738498688, 0.1451898217201233, 0.47711265087127686, 0.6556534767150879, 0.419831246137619, -0.10166916996240616, -0.13171075284481049, 0.28487440943717957, 0.08596139401197433, -0.14478111267089844, -0.07338356971740723, -0.22651416063308716, -0.0794777050614357, 0.003026367165148258, 0.03935050591826439, -0.041761238127946854, 0.3973938822746277, 0.0603223592042923, 0.13376061618328094, 0.4236765503883362, -0.26955363154411316, -0.24267500638961792, 0.3894140124320984, 0.10912379622459412, 0.07678156346082687, 0.04680413752794266, 0.26702576875686646, -0.0012031728401780128, 0.33864161372184753, 0.44614577293395996, 0.2894241213798523, -0.20294633507728577, 0.2748584449291229, -0.006987529806792736, 0.2213011085987091, 0.4691964387893677, 0.2012593299150467, -0.18309050798416138, -0.14047065377235413, -0.1271871030330658, 0.023022647947072983, -0.4001842737197876, 0.1378404051065445, -0.3075537085533142, -0.22677825391292572, 0.2155749797821045, 0.20091670751571655, -0.09558365494012833, -0.06338559091091156, -0.028997410088777542, -0.060456618666648865, -0.015703797340393066, 0.5079240798950195, 0.16421639919281006, 0.7734219431877136, -0.04520060122013092, 0.10620619356632233, 0.27133965492248535, -0.11776942014694214, 0.40123239159584045, -0.6511294841766357, 0.36042600870132446, -0.43772241473197937, 0.2696181833744049, 0.12142523378133774, -0.12912042438983917, 0.16803856194019318, 0.18424288928508759, 0.006720331031829119, -0.054778803139925, -0.14762504398822784, 0.2945115268230438, -0.025762459263205528, 0.33889761567115784, 0.17994804680347443, -0.30595409870147705, -0.5036041140556335, 0.06079233065247536, -0.3701074719429016, 0.03455813229084015, -0.14907795190811157, -0.16940264403820038, -0.08521337062120438, -0.12656283378601074, -0.2838003635406494, 0.2769855558872223, 0.1298915147781372, 0.014314512722194195, 0.5128049254417419, -0.2600145637989044, 0.15981556475162506, 0.36441975831985474, -0.1501442939043045, 0.053529176861047745, -0.002932485891506076, 0.3615523874759674, -0.12343038618564606, 0.11176968365907669, 0.22975943982601166, 0.01988394185900688, 0.2879819869995117, -0.16016174852848053, -0.040681611746549606, -0.05039016529917717, -0.07457542419433594, -0.2796953618526459, -0.06919217854738235, 0.3941943347454071, 0.1375088095664978, -0.16564124822616577, 0.012915750965476036, -0.12453930079936981, 0.12291931360960007, -0.049301523715257645, 0.05420316010713577, 0.01064568106085062, -0.14916232228279114, -0.02717488631606102, 0.15864533185958862, -0.06981560587882996, 0.08643700182437897, 0.6089107394218445, -0.10845045000314713, -0.319619745016098, 0.3064621090888977, 0.3026753067970276, 0.005280001554638147, -0.22048050165176392, 0.22126443684101105, 0.05046866834163666, -0.3886026442050934, -0.13762706518173218, -0.19892309606075287, -0.06842467933893204, 0.03468022495508194, 0.10222822427749634, 0.21728667616844177, -0.10179098695516586, 0.0036823165137320757, -0.5508981943130493, -0.3031088709831238, 0.19118665158748627, -0.07676953822374344, -0.1813701093196869, 0.11923134326934814, 0.33894282579421997, 0.01551394909620285, 0.25473833084106445, -0.20348535478115082, 0.32593339681625366, -0.3733079135417938, 0.14416152238845825, -0.5635963082313538, -0.237191841006279, -0.003535408526659012, -0.23051367700099945, 0.018074745312333107, 0.24548934400081635, 0.07344693690538406, -0.10744062811136246, -0.015551659278571606, 0.15939368307590485, 0.13833998143672943, -0.01808522269129753, -0.1694665253162384, -0.0002068050962407142, 0.10750900208950043, 0.1735595464706421, 0.10350010544061661, -0.1377708464860916, 0.1467641144990921, 0.1609327346086502, 0.2953794300556183, 0.10649174451828003, 0.19602863490581512, 0.09358896315097809, 0.029574668034911156, 0.39053875207901, 0.05888175964355469, 0.24129417538642883, -0.20396044850349426, 0.0334324911236763, -0.35546818375587463, 0.18906064331531525, 0.010013969615101814, 0.28048422932624817, 0.0838274359703064, -0.5798286199569702, -0.05440281331539154, -0.07205204665660858, 0.30135810375213623, 0.5721238851547241, -0.3665151298046112, 0.11240680515766144, 0.18876999616622925, 0.1041741818189621, -0.009935306385159492, -0.25940850377082825, 0.7478207945823669, -0.03566416725516319, -0.30246230959892273, 0.01803569868206978, 0.14284643530845642, -0.09839767217636108, 0.13151952624320984, 0.13897192478179932, 0.5670437812805176, 0.19193635880947113, 0.19833432137966156, 0.21702058613300323, -0.22543494403362274, -0.02375098690390587, 0.139786034822464, -0.07899994403123856, 0.18169616162776947, 0.2541319727897644, -0.19390442967414856, 0.0633174479007721, 0.1178165152668953, 0.10370773822069168, 0.23294991254806519, -0.34134358167648315, -0.3557490110397339, 0.09975080192089081, 0.13790349662303925, 0.010600777342915535, 0.1785009205341339, 0.8641579747200012, -0.190843403339386, -0.4217529892921448, -0.0853034034371376, 0.08790239691734314, -0.3081800937652588, 0.08736199885606766, -0.4969726800918579, -0.17893050611019135, -0.04054311290383339, 0.15436413884162903, -0.30171290040016174, -0.032923512160778046, 0.0855989158153534, 0.03904788941144943, -0.27453160285949707, -0.1928049772977829, -0.04141808673739433, -0.21421578526496887, 0.06560984998941422, -0.07529892772436142, 0.3355390429496765, -0.13620981574058533, 0.04288027063012123, 0.24395443499088287, -0.020816996693611145, 0.32823580503463745, 0.3369995355606079, -0.19198912382125854, -0.12645483016967773, -0.2578287422657013, 0.021680934354662895, 0.07443070411682129, 0.10279082506895065, 0.21466556191444397, -0.13024812936782837, 0.2761431634426117, 0.11681997776031494, -0.0468781515955925, 0.13497239351272583, 0.27688345313072205, 0.1607481688261032, 0.09730912744998932, -0.08710534125566483, -0.1949213147163391, -0.24817897379398346, -0.06770200282335281, -0.12639345228672028, 0.03383185714483261, -0.12264174968004227, -0.15556928515434265, 0.501294732093811, 0.11771088093519211, -0.06306383013725281, 0.0850425660610199, 0.10833180695772171, 0.5546953082084656, 0.22261491417884827, -0.36151158809661865, -0.09784559905529022, -0.20268034934997559, -0.2905750870704651, 0.24300579726696014, -0.044860124588012695, 0.07140302658081055, 0.30169954895973206, 0.44031164050102234, -0.14588260650634766, 0.28476831316947937, -0.23703455924987793, -0.0482022687792778, 0.0044927350245416164, 0.2456320971250534, -0.429110586643219, 0.17971694469451904, 0.056648656725883484, 0.14541077613830566, -0.10592126101255417, -0.13402153551578522, 0.26651471853256226, -0.20236138999462128, -0.08586063235998154, 0.03507007658481598, -0.42770856618881226, -0.020691417157649994, 0.04247954860329628, 0.2701975405216217, -0.08202502876520157, 0.33262619376182556, 0.16767990589141846, -0.3741495609283447, -0.4167827069759369, -0.41914963722229004, -0.17610280215740204, 0.1557713747024536, -0.12762397527694702, 0.42383524775505066, -0.027194196358323097, 0.20401416718959808, -0.3149230182170868, -0.0030216865707188845, -0.3587972819805145, 0.34534406661987305, -0.3175050616264343, 0.08617512136697769, 0.08611227571964264, 0.1618039906024933, 0.008849996142089367, 0.3273940086364746, -0.0774756371974945, 0.24947808682918549, -0.5126637816429138, -0.2689226269721985, 0.4422738254070282, -0.6223309636116028, -0.20025953650474548, 0.06876861304044724, 0.0811639353632927, 0.198111429810524, 0.003574732458218932, -0.27756619453430176, -0.07046038657426834, 0.16162073612213135, -0.17459331452846527, -0.2950670123100281, -0.13570983707904816, -0.26254481077194214, -0.25517743825912476, -0.07695828378200531, -0.35992759466171265, 0.18377885222434998, -0.04530983045697212, -0.22119101881980896, -0.23303289711475372 ]
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.017292257398366928, 0.2893960773944855, 0.06094161421060562, 0.057870395481586456, 0.22360970079898834, -0.016548527404665947, 0.32003894448280334, 0.6101840734481812, -0.40100985765457153, -0.21304266154766083, -0.2422538846731186, 0.7714078426361084, 0.13278771936893463, -0.42659619450569153, 0.1489231139421463, -0.07152768969535828, 0.046225838363170624, 0.12672977149486542, 0.22394156455993652, 0.0536700002849102, -0.1744496375322342, 0.3416512608528137, -0.22996866703033447, 0.13204170763492584, -0.16675138473510742, 0.2660643756389618, 0.006536424160003662, 0.5419238209724426, -0.07457243651151657, -0.7302018404006958, 0.29777640104293823, -0.009330149739980698, 0.15174509584903717, 0.34502455592155457, -0.0001186112713185139, 0.18453176319599152, 0.3318486213684082, -0.10963703691959381, -0.35170164704322815, 0.05212962254881859, 0.28050342202186584, -0.2414647936820984, 0.3380267024040222, -0.1453838348388672, 0.06273150444030762, -0.31197941303253174, 0.03183189406991005, 0.08127480000257492, 0.6866549849510193, 0.15539661049842834, 0.09210099279880524, 0.1377253383398056, 0.07380591332912445, 0.052365742623806, 0.02077654004096985, 0.06787756830453873, 0.01660388708114624, 0.7200931906700134, 0.5202924609184265, -0.12601275742053986, -0.3388993740081787, -0.07208507508039474, 0.12127211689949036, -0.0382683165371418, 0.20485764741897583, -0.06355616450309753, -0.013848851434886456, -0.18327093124389648, 0.05246517062187195, 0.11702040582895279, 0.2416466921567917, -0.2380601316690445, -0.23284845054149628, -0.21574950218200684, 0.07478687167167664, -0.21810846030712128, 0.37732067704200745, 0.2772291302680969, -0.139860600233078, 0.15234236419200897, -0.056996993720531464, 0.03446073457598686, -0.19189301133155823, 0.029310619458556175, -0.21427370607852936, 0.5192517638206482, 0.12151257693767548, 0.04168425872921944, 0.10512390732765198, -0.16294585168361664, -0.15192624926567078, 0.3172394931316376, -0.2625276446342468, 0.3998277187347412, -0.39082688093185425, -0.16861741244792938, 0.11205310374498367, -0.36265188455581665, 0.21630500257015228, 0.09017730504274368, 0.1800890862941742, 0.16720479726791382, 0.21391239762306213, 0.12037068605422974, 0.4853108823299408, 0.054677315056324005, 0.17183560132980347, 0.20253245532512665, 0.152631014585495, -0.019630158320069313, -0.025974182412028313, 0.23977500200271606, -0.13988180458545685, -0.22500739991664886, -0.21351630985736847, 0.028067776933312416, -0.026821553707122803, -0.10946699976921082, 0.014882948249578476, 0.06951796263456345, -0.31477081775665283, -0.012025627307593822, 0.05098559707403183, 0.08486197888851166, 0.1312868446111679, 0.1926080733537674, -0.25002825260162354, 0.20476123690605164, -0.10145492106676102, -0.17269538342952728, -0.017575178295373917, -0.026820076629519463, -0.30665695667266846, -0.020665643736720085, 0.40547406673431396, -0.12256035208702087, 0.11852136254310608, -0.08124995976686478, -0.11161517351865768, -0.22692188620567322, -0.433472216129303, -0.04389789700508118, 0.007666639517992735, 0.14967356622219086, 0.03168029338121414, -0.07048674672842026, -0.03672363981604576, -0.25811049342155457, -0.18032069504261017, 0.21218964457511902, -0.3511877954006195, -0.28516241908073425, -0.5924192667007446, 0.11839151382446289, -0.322714239358902, -0.005309612490236759, 0.14440187811851501, 0.2050790935754776, 0.05665956065058708, -0.4543267786502838, -0.13778981566429138, -0.08935907483100891, -0.0031522151548415422, -0.22954273223876953, 0.14668263494968414, 0.2523784935474396, -0.8450292944908142, -0.23598171770572662, 0.16683731973171234, -0.0015068523352965713, 0.08309793472290039, 0.5275312662124634, -0.3514188230037689, 0.2732031047344208, -0.15309688448905945, 0.5261089205741882, 0.4013669490814209, -0.27797815203666687, -0.3369089663028717, 0.24279090762138367, -0.39944884181022644, -0.041357316076755524, -0.23726758360862732, -0.0655718445777893, 0.29670530557632446, 0.08233347535133362, 0.34125328063964844, 0.4493865370750427, -0.11555199325084686, 0.14832471311092377, -0.33256515860557556, -0.08049877732992172, 0.17264261841773987, 0.36014044284820557, -0.06741543859243393, -0.16082417964935303, -0.029858894646167755, 0.1449318528175354, 0.40400180220603943, -0.1719319224357605, -0.0207538902759552, 0.1606731116771698, 0.1372901052236557, -0.017320599406957626, 0.16614195704460144, -0.10807980597019196, -0.7758408188819885, 0.10205107182264328, -0.28949281573295593, 0.08079442381858826, -0.04113197699189186, 0.006053206045180559, -0.2767828404903412, -0.11359786242246628, -0.20613150298595428, -0.05402308329939842, 0.03211696445941925, -0.16049450635910034, -0.0348595529794693, -0.06829699128866196, -0.46529421210289, -0.15678761899471283, -0.15475668013095856, 0.37804940342903137, -0.1153782531619072, 0.40393194556236267, -0.13026513159275055, -0.4008335769176483, 0.09279229491949081, 0.3672269880771637, 0.12826143205165863, -0.26726198196411133, -0.006815253756940365, 0.329568088054657, -0.08044800162315369, 0.13387402892112732, -0.17082281410694122, -0.29795461893081665, 0.24760928750038147, -0.08576138317584991, -0.12928423285484314, -0.06358135491609573, -0.10223181545734406, -0.08836493641138077, -0.32466816902160645, 0.3362677991390228, 0.019726209342479706, -0.03263607621192932, -0.056773263961076736, -0.24713647365570068, 0.29812076687812805, -0.08481123298406601, -0.12740357220172882, -0.02829713374376297, 0.01728641986846924, 0.16710714995861053, -0.012494543567299843, 0.17665846645832062, -0.1765214204788208, -0.014474378898739815, 0.36949482560157776, -0.06511888653039932, 0.03556988015770912, 0.18731790781021118, 0.10087178647518158, -0.2918992042541504, -0.02475265972316265, -0.04872290790081024, 0.3634799122810364, -0.007696719840168953, -0.1558918058872223, -0.0039151934906840324, 0.03366728499531746, -0.018401818349957466, -0.01154564693570137, 0.0482458733022213, 0.4226093888282776, 0.5049404501914978, 0.3639852702617645, 0.16840124130249023, -0.2733655273914337, -0.15487322211265564, 0.12762297689914703, 0.05630448833107948, -0.3743777871131897, 0.060217056423425674, -0.2678268849849701, -0.14459271728992462, -0.2930878698825836, -0.1426909863948822, -0.3419748544692993, -0.1941555142402649, 0.10888884216547012, -0.03826402500271797, -0.08678275346755981, 0.2005050629377365, 0.16654546558856964, 0.40008050203323364, 0.10027819126844406, -0.18636783957481384, 0.03814578428864479, -0.1772579550743103, -0.21824167668819427, -0.0453670360147953, 0.3783230483531952, -0.06442906707525253, -0.2067786604166031, -0.18944168090820312, -0.27097487449645996, 0.10979248583316803, -0.4360964596271515, 0.16802921891212463, -0.00915578380227089, 0.19459031522274017, 0.022264938801527023, 0.23686352372169495, -0.14796730875968933, -0.3669349253177643, 0.28148242831230164, -0.046212345361709595, -0.25112801790237427, 0.0004012257559224963, -0.10349578410387039, 0.13379189372062683, -0.2878105938434601, -0.3897336423397064, -0.24531136453151703, -0.2271137833595276, 0.4359024167060852, 0.07529594749212265, 0.1372660994529724, 0.20040766894817352, -0.20206812024116516, 0.014743146486580372, -0.23705972731113434, -0.2110956758260727, 0.04947850480675697, -0.18574701249599457, 0.20523405075073242, -0.2988072633743286, -0.1417257934808731, -0.021901773288846016, 0.09425204247236252, 0.16700436174869537, -0.22435857355594635, -0.16041678190231323, 0.11611869186162949, 0.17135831713676453, 0.24600832164287567, -0.3234412372112274, -0.2597649395465851, 0.25247877836227417, -0.22972996532917023, 0.05242842435836792, 0.19721044600009918, -0.36020970344543457, -0.09371209144592285, 0.5185642838478088, 0.1982492357492447, -0.26570606231689453, 0.23632816970348358, 0.05972122400999069, 0.8267534971237183, -0.13744042813777924, -0.1625378578901291, 0.1258324384689331, 0.03038046509027481, 0.12194909900426865, -0.1489124298095703, -0.03524862602353096, 0.39218831062316895, -0.03979768976569176, -0.1129411831498146, 0.2475959062576294, 0.1624518185853958, -0.542482316493988, -0.005967604927718639, 0.1580977439880371, -0.5473145842552185, -0.16832341253757477, 0.2632974684238434, 0.5551201701164246, -0.08508773148059845, -0.042934201657772064, 0.02945185825228691, 0.002924638567492366, -0.23155124485492706, -0.05983646586537361, 0.2242509424686432, 0.2707135081291199, 0.09323346614837646, -0.5434256196022034, -0.3422013819217682, -0.044759660959243774, -0.020403189584612846, 0.1243698000907898, 0.46455642580986023, -0.0012728822184726596, -0.20624369382858276, 0.027220850810408592, -0.2641843259334564, 0.34766143560409546, 0.26207420229911804, 0.3518282175064087, 0.34914132952690125, 0.32933035492897034, -0.07430154085159302, -0.3046778738498688, 0.1451898217201233, 0.47711265087127686, 0.6556534767150879, 0.419831246137619, -0.10166916996240616, -0.13171075284481049, 0.28487440943717957, 0.08596139401197433, -0.14478111267089844, -0.07338356971740723, -0.22651416063308716, -0.0794777050614357, 0.003026367165148258, 0.03935050591826439, -0.041761238127946854, 0.3973938822746277, 0.0603223592042923, 0.13376061618328094, 0.4236765503883362, -0.26955363154411316, -0.24267500638961792, 0.3894140124320984, 0.10912379622459412, 0.07678156346082687, 0.04680413752794266, 0.26702576875686646, -0.0012031728401780128, 0.33864161372184753, 0.44614577293395996, 0.2894241213798523, -0.20294633507728577, 0.2748584449291229, -0.006987529806792736, 0.2213011085987091, 0.4691964387893677, 0.2012593299150467, -0.18309050798416138, -0.14047065377235413, -0.1271871030330658, 0.023022647947072983, -0.4001842737197876, 0.1378404051065445, -0.3075537085533142, -0.22677825391292572, 0.2155749797821045, 0.20091670751571655, -0.09558365494012833, -0.06338559091091156, -0.028997410088777542, -0.060456618666648865, -0.015703797340393066, 0.5079240798950195, 0.16421639919281006, 0.7734219431877136, -0.04520060122013092, 0.10620619356632233, 0.27133965492248535, -0.11776942014694214, 0.40123239159584045, -0.6511294841766357, 0.36042600870132446, -0.43772241473197937, 0.2696181833744049, 0.12142523378133774, -0.12912042438983917, 0.16803856194019318, 0.18424288928508759, 0.006720331031829119, -0.054778803139925, -0.14762504398822784, 0.2945115268230438, -0.025762459263205528, 0.33889761567115784, 0.17994804680347443, -0.30595409870147705, -0.5036041140556335, 0.06079233065247536, -0.3701074719429016, 0.03455813229084015, -0.14907795190811157, -0.16940264403820038, -0.08521337062120438, -0.12656283378601074, -0.2838003635406494, 0.2769855558872223, 0.1298915147781372, 0.014314512722194195, 0.5128049254417419, -0.2600145637989044, 0.15981556475162506, 0.36441975831985474, -0.1501442939043045, 0.053529176861047745, -0.002932485891506076, 0.3615523874759674, -0.12343038618564606, 0.11176968365907669, 0.22975943982601166, 0.01988394185900688, 0.2879819869995117, -0.16016174852848053, -0.040681611746549606, -0.05039016529917717, -0.07457542419433594, -0.2796953618526459, -0.06919217854738235, 0.3941943347454071, 0.1375088095664978, -0.16564124822616577, 0.012915750965476036, -0.12453930079936981, 0.12291931360960007, -0.049301523715257645, 0.05420316010713577, 0.01064568106085062, -0.14916232228279114, -0.02717488631606102, 0.15864533185958862, -0.06981560587882996, 0.08643700182437897, 0.6089107394218445, -0.10845045000314713, -0.319619745016098, 0.3064621090888977, 0.3026753067970276, 0.005280001554638147, -0.22048050165176392, 0.22126443684101105, 0.05046866834163666, -0.3886026442050934, -0.13762706518173218, -0.19892309606075287, -0.06842467933893204, 0.03468022495508194, 0.10222822427749634, 0.21728667616844177, -0.10179098695516586, 0.0036823165137320757, -0.5508981943130493, -0.3031088709831238, 0.19118665158748627, -0.07676953822374344, -0.1813701093196869, 0.11923134326934814, 0.33894282579421997, 0.01551394909620285, 0.25473833084106445, -0.20348535478115082, 0.32593339681625366, -0.3733079135417938, 0.14416152238845825, -0.5635963082313538, -0.237191841006279, -0.003535408526659012, -0.23051367700099945, 0.018074745312333107, 0.24548934400081635, 0.07344693690538406, -0.10744062811136246, -0.015551659278571606, 0.15939368307590485, 0.13833998143672943, -0.01808522269129753, -0.1694665253162384, -0.0002068050962407142, 0.10750900208950043, 0.1735595464706421, 0.10350010544061661, -0.1377708464860916, 0.1467641144990921, 0.1609327346086502, 0.2953794300556183, 0.10649174451828003, 0.19602863490581512, 0.09358896315097809, 0.029574668034911156, 0.39053875207901, 0.05888175964355469, 0.24129417538642883, -0.20396044850349426, 0.0334324911236763, -0.35546818375587463, 0.18906064331531525, 0.010013969615101814, 0.28048422932624817, 0.0838274359703064, -0.5798286199569702, -0.05440281331539154, -0.07205204665660858, 0.30135810375213623, 0.5721238851547241, -0.3665151298046112, 0.11240680515766144, 0.18876999616622925, 0.1041741818189621, -0.009935306385159492, -0.25940850377082825, 0.7478207945823669, -0.03566416725516319, -0.30246230959892273, 0.01803569868206978, 0.14284643530845642, -0.09839767217636108, 0.13151952624320984, 0.13897192478179932, 0.5670437812805176, 0.19193635880947113, 0.19833432137966156, 0.21702058613300323, -0.22543494403362274, -0.02375098690390587, 0.139786034822464, -0.07899994403123856, 0.18169616162776947, 0.2541319727897644, -0.19390442967414856, 0.0633174479007721, 0.1178165152668953, 0.10370773822069168, 0.23294991254806519, -0.34134358167648315, -0.3557490110397339, 0.09975080192089081, 0.13790349662303925, 0.010600777342915535, 0.1785009205341339, 0.8641579747200012, -0.190843403339386, -0.4217529892921448, -0.0853034034371376, 0.08790239691734314, -0.3081800937652588, 0.08736199885606766, -0.4969726800918579, -0.17893050611019135, -0.04054311290383339, 0.15436413884162903, -0.30171290040016174, -0.032923512160778046, 0.0855989158153534, 0.03904788941144943, -0.27453160285949707, -0.1928049772977829, -0.04141808673739433, -0.21421578526496887, 0.06560984998941422, -0.07529892772436142, 0.3355390429496765, -0.13620981574058533, 0.04288027063012123, 0.24395443499088287, -0.020816996693611145, 0.32823580503463745, 0.3369995355606079, -0.19198912382125854, -0.12645483016967773, -0.2578287422657013, 0.021680934354662895, 0.07443070411682129, 0.10279082506895065, 0.21466556191444397, -0.13024812936782837, 0.2761431634426117, 0.11681997776031494, -0.0468781515955925, 0.13497239351272583, 0.27688345313072205, 0.1607481688261032, 0.09730912744998932, -0.08710534125566483, -0.1949213147163391, -0.24817897379398346, -0.06770200282335281, -0.12639345228672028, 0.03383185714483261, -0.12264174968004227, -0.15556928515434265, 0.501294732093811, 0.11771088093519211, -0.06306383013725281, 0.0850425660610199, 0.10833180695772171, 0.5546953082084656, 0.22261491417884827, -0.36151158809661865, -0.09784559905529022, -0.20268034934997559, -0.2905750870704651, 0.24300579726696014, -0.044860124588012695, 0.07140302658081055, 0.30169954895973206, 0.44031164050102234, -0.14588260650634766, 0.28476831316947937, -0.23703455924987793, -0.0482022687792778, 0.0044927350245416164, 0.2456320971250534, -0.429110586643219, 0.17971694469451904, 0.056648656725883484, 0.14541077613830566, -0.10592126101255417, -0.13402153551578522, 0.26651471853256226, -0.20236138999462128, -0.08586063235998154, 0.03507007658481598, -0.42770856618881226, -0.020691417157649994, 0.04247954860329628, 0.2701975405216217, -0.08202502876520157, 0.33262619376182556, 0.16767990589141846, -0.3741495609283447, -0.4167827069759369, -0.41914963722229004, -0.17610280215740204, 0.1557713747024536, -0.12762397527694702, 0.42383524775505066, -0.027194196358323097, 0.20401416718959808, -0.3149230182170868, -0.0030216865707188845, -0.3587972819805145, 0.34534406661987305, -0.3175050616264343, 0.08617512136697769, 0.08611227571964264, 0.1618039906024933, 0.008849996142089367, 0.3273940086364746, -0.0774756371974945, 0.24947808682918549, -0.5126637816429138, -0.2689226269721985, 0.4422738254070282, -0.6223309636116028, -0.20025953650474548, 0.06876861304044724, 0.0811639353632927, 0.198111429810524, 0.003574732458218932, -0.27756619453430176, -0.07046038657426834, 0.16162073612213135, -0.17459331452846527, -0.2950670123100281, -0.13570983707904816, -0.26254481077194214, -0.25517743825912476, -0.07695828378200531, -0.35992759466171265, 0.18377885222434998, -0.04530983045697212, -0.22119101881980896, -0.23303289711475372 ]
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.017292257398366928, 0.2893960773944855, 0.06094161421060562, 0.057870395481586456, 0.22360970079898834, -0.016548527404665947, 0.32003894448280334, 0.6101840734481812, -0.40100985765457153, -0.21304266154766083, -0.2422538846731186, 0.7714078426361084, 0.13278771936893463, -0.42659619450569153, 0.1489231139421463, -0.07152768969535828, 0.046225838363170624, 0.12672977149486542, 0.22394156455993652, 0.0536700002849102, -0.1744496375322342, 0.3416512608528137, -0.22996866703033447, 0.13204170763492584, -0.16675138473510742, 0.2660643756389618, 0.006536424160003662, 0.5419238209724426, -0.07457243651151657, -0.7302018404006958, 0.29777640104293823, -0.009330149739980698, 0.15174509584903717, 0.34502455592155457, -0.0001186112713185139, 0.18453176319599152, 0.3318486213684082, -0.10963703691959381, -0.35170164704322815, 0.05212962254881859, 0.28050342202186584, -0.2414647936820984, 0.3380267024040222, -0.1453838348388672, 0.06273150444030762, -0.31197941303253174, 0.03183189406991005, 0.08127480000257492, 0.6866549849510193, 0.15539661049842834, 0.09210099279880524, 0.1377253383398056, 0.07380591332912445, 0.052365742623806, 0.02077654004096985, 0.06787756830453873, 0.01660388708114624, 0.7200931906700134, 0.5202924609184265, -0.12601275742053986, -0.3388993740081787, -0.07208507508039474, 0.12127211689949036, -0.0382683165371418, 0.20485764741897583, -0.06355616450309753, -0.013848851434886456, -0.18327093124389648, 0.05246517062187195, 0.11702040582895279, 0.2416466921567917, -0.2380601316690445, -0.23284845054149628, -0.21574950218200684, 0.07478687167167664, -0.21810846030712128, 0.37732067704200745, 0.2772291302680969, -0.139860600233078, 0.15234236419200897, -0.056996993720531464, 0.03446073457598686, -0.19189301133155823, 0.029310619458556175, -0.21427370607852936, 0.5192517638206482, 0.12151257693767548, 0.04168425872921944, 0.10512390732765198, -0.16294585168361664, -0.15192624926567078, 0.3172394931316376, -0.2625276446342468, 0.3998277187347412, -0.39082688093185425, -0.16861741244792938, 0.11205310374498367, -0.36265188455581665, 0.21630500257015228, 0.09017730504274368, 0.1800890862941742, 0.16720479726791382, 0.21391239762306213, 0.12037068605422974, 0.4853108823299408, 0.054677315056324005, 0.17183560132980347, 0.20253245532512665, 0.152631014585495, -0.019630158320069313, -0.025974182412028313, 0.23977500200271606, -0.13988180458545685, -0.22500739991664886, -0.21351630985736847, 0.028067776933312416, -0.026821553707122803, -0.10946699976921082, 0.014882948249578476, 0.06951796263456345, -0.31477081775665283, -0.012025627307593822, 0.05098559707403183, 0.08486197888851166, 0.1312868446111679, 0.1926080733537674, -0.25002825260162354, 0.20476123690605164, -0.10145492106676102, -0.17269538342952728, -0.017575178295373917, -0.026820076629519463, -0.30665695667266846, -0.020665643736720085, 0.40547406673431396, -0.12256035208702087, 0.11852136254310608, -0.08124995976686478, -0.11161517351865768, -0.22692188620567322, -0.433472216129303, -0.04389789700508118, 0.007666639517992735, 0.14967356622219086, 0.03168029338121414, -0.07048674672842026, -0.03672363981604576, -0.25811049342155457, -0.18032069504261017, 0.21218964457511902, -0.3511877954006195, -0.28516241908073425, -0.5924192667007446, 0.11839151382446289, -0.322714239358902, -0.005309612490236759, 0.14440187811851501, 0.2050790935754776, 0.05665956065058708, -0.4543267786502838, -0.13778981566429138, -0.08935907483100891, -0.0031522151548415422, -0.22954273223876953, 0.14668263494968414, 0.2523784935474396, -0.8450292944908142, -0.23598171770572662, 0.16683731973171234, -0.0015068523352965713, 0.08309793472290039, 0.5275312662124634, -0.3514188230037689, 0.2732031047344208, -0.15309688448905945, 0.5261089205741882, 0.4013669490814209, -0.27797815203666687, -0.3369089663028717, 0.24279090762138367, -0.39944884181022644, -0.041357316076755524, -0.23726758360862732, -0.0655718445777893, 0.29670530557632446, 0.08233347535133362, 0.34125328063964844, 0.4493865370750427, -0.11555199325084686, 0.14832471311092377, -0.33256515860557556, -0.08049877732992172, 0.17264261841773987, 0.36014044284820557, -0.06741543859243393, -0.16082417964935303, -0.029858894646167755, 0.1449318528175354, 0.40400180220603943, -0.1719319224357605, -0.0207538902759552, 0.1606731116771698, 0.1372901052236557, -0.017320599406957626, 0.16614195704460144, -0.10807980597019196, -0.7758408188819885, 0.10205107182264328, -0.28949281573295593, 0.08079442381858826, -0.04113197699189186, 0.006053206045180559, -0.2767828404903412, -0.11359786242246628, -0.20613150298595428, -0.05402308329939842, 0.03211696445941925, -0.16049450635910034, -0.0348595529794693, -0.06829699128866196, -0.46529421210289, -0.15678761899471283, -0.15475668013095856, 0.37804940342903137, -0.1153782531619072, 0.40393194556236267, -0.13026513159275055, -0.4008335769176483, 0.09279229491949081, 0.3672269880771637, 0.12826143205165863, -0.26726198196411133, -0.006815253756940365, 0.329568088054657, -0.08044800162315369, 0.13387402892112732, -0.17082281410694122, -0.29795461893081665, 0.24760928750038147, -0.08576138317584991, -0.12928423285484314, -0.06358135491609573, -0.10223181545734406, -0.08836493641138077, -0.32466816902160645, 0.3362677991390228, 0.019726209342479706, -0.03263607621192932, -0.056773263961076736, -0.24713647365570068, 0.29812076687812805, -0.08481123298406601, -0.12740357220172882, -0.02829713374376297, 0.01728641986846924, 0.16710714995861053, -0.012494543567299843, 0.17665846645832062, -0.1765214204788208, -0.014474378898739815, 0.36949482560157776, -0.06511888653039932, 0.03556988015770912, 0.18731790781021118, 0.10087178647518158, -0.2918992042541504, -0.02475265972316265, -0.04872290790081024, 0.3634799122810364, -0.007696719840168953, -0.1558918058872223, -0.0039151934906840324, 0.03366728499531746, -0.018401818349957466, -0.01154564693570137, 0.0482458733022213, 0.4226093888282776, 0.5049404501914978, 0.3639852702617645, 0.16840124130249023, -0.2733655273914337, -0.15487322211265564, 0.12762297689914703, 0.05630448833107948, -0.3743777871131897, 0.060217056423425674, -0.2678268849849701, -0.14459271728992462, -0.2930878698825836, -0.1426909863948822, -0.3419748544692993, -0.1941555142402649, 0.10888884216547012, -0.03826402500271797, -0.08678275346755981, 0.2005050629377365, 0.16654546558856964, 0.40008050203323364, 0.10027819126844406, -0.18636783957481384, 0.03814578428864479, -0.1772579550743103, -0.21824167668819427, -0.0453670360147953, 0.3783230483531952, -0.06442906707525253, -0.2067786604166031, -0.18944168090820312, -0.27097487449645996, 0.10979248583316803, -0.4360964596271515, 0.16802921891212463, -0.00915578380227089, 0.19459031522274017, 0.022264938801527023, 0.23686352372169495, -0.14796730875968933, -0.3669349253177643, 0.28148242831230164, -0.046212345361709595, -0.25112801790237427, 0.0004012257559224963, -0.10349578410387039, 0.13379189372062683, -0.2878105938434601, -0.3897336423397064, -0.24531136453151703, -0.2271137833595276, 0.4359024167060852, 0.07529594749212265, 0.1372660994529724, 0.20040766894817352, -0.20206812024116516, 0.014743146486580372, -0.23705972731113434, -0.2110956758260727, 0.04947850480675697, -0.18574701249599457, 0.20523405075073242, -0.2988072633743286, -0.1417257934808731, -0.021901773288846016, 0.09425204247236252, 0.16700436174869537, -0.22435857355594635, -0.16041678190231323, 0.11611869186162949, 0.17135831713676453, 0.24600832164287567, -0.3234412372112274, -0.2597649395465851, 0.25247877836227417, -0.22972996532917023, 0.05242842435836792, 0.19721044600009918, -0.36020970344543457, -0.09371209144592285, 0.5185642838478088, 0.1982492357492447, -0.26570606231689453, 0.23632816970348358, 0.05972122400999069, 0.8267534971237183, -0.13744042813777924, -0.1625378578901291, 0.1258324384689331, 0.03038046509027481, 0.12194909900426865, -0.1489124298095703, -0.03524862602353096, 0.39218831062316895, -0.03979768976569176, -0.1129411831498146, 0.2475959062576294, 0.1624518185853958, -0.542482316493988, -0.005967604927718639, 0.1580977439880371, -0.5473145842552185, -0.16832341253757477, 0.2632974684238434, 0.5551201701164246, -0.08508773148059845, -0.042934201657772064, 0.02945185825228691, 0.002924638567492366, -0.23155124485492706, -0.05983646586537361, 0.2242509424686432, 0.2707135081291199, 0.09323346614837646, -0.5434256196022034, -0.3422013819217682, -0.044759660959243774, -0.020403189584612846, 0.1243698000907898, 0.46455642580986023, -0.0012728822184726596, -0.20624369382858276, 0.027220850810408592, -0.2641843259334564, 0.34766143560409546, 0.26207420229911804, 0.3518282175064087, 0.34914132952690125, 0.32933035492897034, -0.07430154085159302, -0.3046778738498688, 0.1451898217201233, 0.47711265087127686, 0.6556534767150879, 0.419831246137619, -0.10166916996240616, -0.13171075284481049, 0.28487440943717957, 0.08596139401197433, -0.14478111267089844, -0.07338356971740723, -0.22651416063308716, -0.0794777050614357, 0.003026367165148258, 0.03935050591826439, -0.041761238127946854, 0.3973938822746277, 0.0603223592042923, 0.13376061618328094, 0.4236765503883362, -0.26955363154411316, -0.24267500638961792, 0.3894140124320984, 0.10912379622459412, 0.07678156346082687, 0.04680413752794266, 0.26702576875686646, -0.0012031728401780128, 0.33864161372184753, 0.44614577293395996, 0.2894241213798523, -0.20294633507728577, 0.2748584449291229, -0.006987529806792736, 0.2213011085987091, 0.4691964387893677, 0.2012593299150467, -0.18309050798416138, -0.14047065377235413, -0.1271871030330658, 0.023022647947072983, -0.4001842737197876, 0.1378404051065445, -0.3075537085533142, -0.22677825391292572, 0.2155749797821045, 0.20091670751571655, -0.09558365494012833, -0.06338559091091156, -0.028997410088777542, -0.060456618666648865, -0.015703797340393066, 0.5079240798950195, 0.16421639919281006, 0.7734219431877136, -0.04520060122013092, 0.10620619356632233, 0.27133965492248535, -0.11776942014694214, 0.40123239159584045, -0.6511294841766357, 0.36042600870132446, -0.43772241473197937, 0.2696181833744049, 0.12142523378133774, -0.12912042438983917, 0.16803856194019318, 0.18424288928508759, 0.006720331031829119, -0.054778803139925, -0.14762504398822784, 0.2945115268230438, -0.025762459263205528, 0.33889761567115784, 0.17994804680347443, -0.30595409870147705, -0.5036041140556335, 0.06079233065247536, -0.3701074719429016, 0.03455813229084015, -0.14907795190811157, -0.16940264403820038, -0.08521337062120438, -0.12656283378601074, -0.2838003635406494, 0.2769855558872223, 0.1298915147781372, 0.014314512722194195, 0.5128049254417419, -0.2600145637989044, 0.15981556475162506, 0.36441975831985474, -0.1501442939043045, 0.053529176861047745, -0.002932485891506076, 0.3615523874759674, -0.12343038618564606, 0.11176968365907669, 0.22975943982601166, 0.01988394185900688, 0.2879819869995117, -0.16016174852848053, -0.040681611746549606, -0.05039016529917717, -0.07457542419433594, -0.2796953618526459, -0.06919217854738235, 0.3941943347454071, 0.1375088095664978, -0.16564124822616577, 0.012915750965476036, -0.12453930079936981, 0.12291931360960007, -0.049301523715257645, 0.05420316010713577, 0.01064568106085062, -0.14916232228279114, -0.02717488631606102, 0.15864533185958862, -0.06981560587882996, 0.08643700182437897, 0.6089107394218445, -0.10845045000314713, -0.319619745016098, 0.3064621090888977, 0.3026753067970276, 0.005280001554638147, -0.22048050165176392, 0.22126443684101105, 0.05046866834163666, -0.3886026442050934, -0.13762706518173218, -0.19892309606075287, -0.06842467933893204, 0.03468022495508194, 0.10222822427749634, 0.21728667616844177, -0.10179098695516586, 0.0036823165137320757, -0.5508981943130493, -0.3031088709831238, 0.19118665158748627, -0.07676953822374344, -0.1813701093196869, 0.11923134326934814, 0.33894282579421997, 0.01551394909620285, 0.25473833084106445, -0.20348535478115082, 0.32593339681625366, -0.3733079135417938, 0.14416152238845825, -0.5635963082313538, -0.237191841006279, -0.003535408526659012, -0.23051367700099945, 0.018074745312333107, 0.24548934400081635, 0.07344693690538406, -0.10744062811136246, -0.015551659278571606, 0.15939368307590485, 0.13833998143672943, -0.01808522269129753, -0.1694665253162384, -0.0002068050962407142, 0.10750900208950043, 0.1735595464706421, 0.10350010544061661, -0.1377708464860916, 0.1467641144990921, 0.1609327346086502, 0.2953794300556183, 0.10649174451828003, 0.19602863490581512, 0.09358896315097809, 0.029574668034911156, 0.39053875207901, 0.05888175964355469, 0.24129417538642883, -0.20396044850349426, 0.0334324911236763, -0.35546818375587463, 0.18906064331531525, 0.010013969615101814, 0.28048422932624817, 0.0838274359703064, -0.5798286199569702, -0.05440281331539154, -0.07205204665660858, 0.30135810375213623, 0.5721238851547241, -0.3665151298046112, 0.11240680515766144, 0.18876999616622925, 0.1041741818189621, -0.009935306385159492, -0.25940850377082825, 0.7478207945823669, -0.03566416725516319, -0.30246230959892273, 0.01803569868206978, 0.14284643530845642, -0.09839767217636108, 0.13151952624320984, 0.13897192478179932, 0.5670437812805176, 0.19193635880947113, 0.19833432137966156, 0.21702058613300323, -0.22543494403362274, -0.02375098690390587, 0.139786034822464, -0.07899994403123856, 0.18169616162776947, 0.2541319727897644, -0.19390442967414856, 0.0633174479007721, 0.1178165152668953, 0.10370773822069168, 0.23294991254806519, -0.34134358167648315, -0.3557490110397339, 0.09975080192089081, 0.13790349662303925, 0.010600777342915535, 0.1785009205341339, 0.8641579747200012, -0.190843403339386, -0.4217529892921448, -0.0853034034371376, 0.08790239691734314, -0.3081800937652588, 0.08736199885606766, -0.4969726800918579, -0.17893050611019135, -0.04054311290383339, 0.15436413884162903, -0.30171290040016174, -0.032923512160778046, 0.0855989158153534, 0.03904788941144943, -0.27453160285949707, -0.1928049772977829, -0.04141808673739433, -0.21421578526496887, 0.06560984998941422, -0.07529892772436142, 0.3355390429496765, -0.13620981574058533, 0.04288027063012123, 0.24395443499088287, -0.020816996693611145, 0.32823580503463745, 0.3369995355606079, -0.19198912382125854, -0.12645483016967773, -0.2578287422657013, 0.021680934354662895, 0.07443070411682129, 0.10279082506895065, 0.21466556191444397, -0.13024812936782837, 0.2761431634426117, 0.11681997776031494, -0.0468781515955925, 0.13497239351272583, 0.27688345313072205, 0.1607481688261032, 0.09730912744998932, -0.08710534125566483, -0.1949213147163391, -0.24817897379398346, -0.06770200282335281, -0.12639345228672028, 0.03383185714483261, -0.12264174968004227, -0.15556928515434265, 0.501294732093811, 0.11771088093519211, -0.06306383013725281, 0.0850425660610199, 0.10833180695772171, 0.5546953082084656, 0.22261491417884827, -0.36151158809661865, -0.09784559905529022, -0.20268034934997559, -0.2905750870704651, 0.24300579726696014, -0.044860124588012695, 0.07140302658081055, 0.30169954895973206, 0.44031164050102234, -0.14588260650634766, 0.28476831316947937, -0.23703455924987793, -0.0482022687792778, 0.0044927350245416164, 0.2456320971250534, -0.429110586643219, 0.17971694469451904, 0.056648656725883484, 0.14541077613830566, -0.10592126101255417, -0.13402153551578522, 0.26651471853256226, -0.20236138999462128, -0.08586063235998154, 0.03507007658481598, -0.42770856618881226, -0.020691417157649994, 0.04247954860329628, 0.2701975405216217, -0.08202502876520157, 0.33262619376182556, 0.16767990589141846, -0.3741495609283447, -0.4167827069759369, -0.41914963722229004, -0.17610280215740204, 0.1557713747024536, -0.12762397527694702, 0.42383524775505066, -0.027194196358323097, 0.20401416718959808, -0.3149230182170868, -0.0030216865707188845, -0.3587972819805145, 0.34534406661987305, -0.3175050616264343, 0.08617512136697769, 0.08611227571964264, 0.1618039906024933, 0.008849996142089367, 0.3273940086364746, -0.0774756371974945, 0.24947808682918549, -0.5126637816429138, -0.2689226269721985, 0.4422738254070282, -0.6223309636116028, -0.20025953650474548, 0.06876861304044724, 0.0811639353632927, 0.198111429810524, 0.003574732458218932, -0.27756619453430176, -0.07046038657426834, 0.16162073612213135, -0.17459331452846527, -0.2950670123100281, -0.13570983707904816, -0.26254481077194214, -0.25517743825912476, -0.07695828378200531, -0.35992759466171265, 0.18377885222434998, -0.04530983045697212, -0.22119101881980896, -0.23303289711475372 ]
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.017292257398366928, 0.2893960773944855, 0.06094161421060562, 0.057870395481586456, 0.22360970079898834, -0.016548527404665947, 0.32003894448280334, 0.6101840734481812, -0.40100985765457153, -0.21304266154766083, -0.2422538846731186, 0.7714078426361084, 0.13278771936893463, -0.42659619450569153, 0.1489231139421463, -0.07152768969535828, 0.046225838363170624, 0.12672977149486542, 0.22394156455993652, 0.0536700002849102, -0.1744496375322342, 0.3416512608528137, -0.22996866703033447, 0.13204170763492584, -0.16675138473510742, 0.2660643756389618, 0.006536424160003662, 0.5419238209724426, -0.07457243651151657, -0.7302018404006958, 0.29777640104293823, -0.009330149739980698, 0.15174509584903717, 0.34502455592155457, -0.0001186112713185139, 0.18453176319599152, 0.3318486213684082, -0.10963703691959381, -0.35170164704322815, 0.05212962254881859, 0.28050342202186584, -0.2414647936820984, 0.3380267024040222, -0.1453838348388672, 0.06273150444030762, -0.31197941303253174, 0.03183189406991005, 0.08127480000257492, 0.6866549849510193, 0.15539661049842834, 0.09210099279880524, 0.1377253383398056, 0.07380591332912445, 0.052365742623806, 0.02077654004096985, 0.06787756830453873, 0.01660388708114624, 0.7200931906700134, 0.5202924609184265, -0.12601275742053986, -0.3388993740081787, -0.07208507508039474, 0.12127211689949036, -0.0382683165371418, 0.20485764741897583, -0.06355616450309753, -0.013848851434886456, -0.18327093124389648, 0.05246517062187195, 0.11702040582895279, 0.2416466921567917, -0.2380601316690445, -0.23284845054149628, -0.21574950218200684, 0.07478687167167664, -0.21810846030712128, 0.37732067704200745, 0.2772291302680969, -0.139860600233078, 0.15234236419200897, -0.056996993720531464, 0.03446073457598686, -0.19189301133155823, 0.029310619458556175, -0.21427370607852936, 0.5192517638206482, 0.12151257693767548, 0.04168425872921944, 0.10512390732765198, -0.16294585168361664, -0.15192624926567078, 0.3172394931316376, -0.2625276446342468, 0.3998277187347412, -0.39082688093185425, -0.16861741244792938, 0.11205310374498367, -0.36265188455581665, 0.21630500257015228, 0.09017730504274368, 0.1800890862941742, 0.16720479726791382, 0.21391239762306213, 0.12037068605422974, 0.4853108823299408, 0.054677315056324005, 0.17183560132980347, 0.20253245532512665, 0.152631014585495, -0.019630158320069313, -0.025974182412028313, 0.23977500200271606, -0.13988180458545685, -0.22500739991664886, -0.21351630985736847, 0.028067776933312416, -0.026821553707122803, -0.10946699976921082, 0.014882948249578476, 0.06951796263456345, -0.31477081775665283, -0.012025627307593822, 0.05098559707403183, 0.08486197888851166, 0.1312868446111679, 0.1926080733537674, -0.25002825260162354, 0.20476123690605164, -0.10145492106676102, -0.17269538342952728, -0.017575178295373917, -0.026820076629519463, -0.30665695667266846, -0.020665643736720085, 0.40547406673431396, -0.12256035208702087, 0.11852136254310608, -0.08124995976686478, -0.11161517351865768, -0.22692188620567322, -0.433472216129303, -0.04389789700508118, 0.007666639517992735, 0.14967356622219086, 0.03168029338121414, -0.07048674672842026, -0.03672363981604576, -0.25811049342155457, -0.18032069504261017, 0.21218964457511902, -0.3511877954006195, -0.28516241908073425, -0.5924192667007446, 0.11839151382446289, -0.322714239358902, -0.005309612490236759, 0.14440187811851501, 0.2050790935754776, 0.05665956065058708, -0.4543267786502838, -0.13778981566429138, -0.08935907483100891, -0.0031522151548415422, -0.22954273223876953, 0.14668263494968414, 0.2523784935474396, -0.8450292944908142, -0.23598171770572662, 0.16683731973171234, -0.0015068523352965713, 0.08309793472290039, 0.5275312662124634, -0.3514188230037689, 0.2732031047344208, -0.15309688448905945, 0.5261089205741882, 0.4013669490814209, -0.27797815203666687, -0.3369089663028717, 0.24279090762138367, -0.39944884181022644, -0.041357316076755524, -0.23726758360862732, -0.0655718445777893, 0.29670530557632446, 0.08233347535133362, 0.34125328063964844, 0.4493865370750427, -0.11555199325084686, 0.14832471311092377, -0.33256515860557556, -0.08049877732992172, 0.17264261841773987, 0.36014044284820557, -0.06741543859243393, -0.16082417964935303, -0.029858894646167755, 0.1449318528175354, 0.40400180220603943, -0.1719319224357605, -0.0207538902759552, 0.1606731116771698, 0.1372901052236557, -0.017320599406957626, 0.16614195704460144, -0.10807980597019196, -0.7758408188819885, 0.10205107182264328, -0.28949281573295593, 0.08079442381858826, -0.04113197699189186, 0.006053206045180559, -0.2767828404903412, -0.11359786242246628, -0.20613150298595428, -0.05402308329939842, 0.03211696445941925, -0.16049450635910034, -0.0348595529794693, -0.06829699128866196, -0.46529421210289, -0.15678761899471283, -0.15475668013095856, 0.37804940342903137, -0.1153782531619072, 0.40393194556236267, -0.13026513159275055, -0.4008335769176483, 0.09279229491949081, 0.3672269880771637, 0.12826143205165863, -0.26726198196411133, -0.006815253756940365, 0.329568088054657, -0.08044800162315369, 0.13387402892112732, -0.17082281410694122, -0.29795461893081665, 0.24760928750038147, -0.08576138317584991, -0.12928423285484314, -0.06358135491609573, -0.10223181545734406, -0.08836493641138077, -0.32466816902160645, 0.3362677991390228, 0.019726209342479706, -0.03263607621192932, -0.056773263961076736, -0.24713647365570068, 0.29812076687812805, -0.08481123298406601, -0.12740357220172882, -0.02829713374376297, 0.01728641986846924, 0.16710714995861053, -0.012494543567299843, 0.17665846645832062, -0.1765214204788208, -0.014474378898739815, 0.36949482560157776, -0.06511888653039932, 0.03556988015770912, 0.18731790781021118, 0.10087178647518158, -0.2918992042541504, -0.02475265972316265, -0.04872290790081024, 0.3634799122810364, -0.007696719840168953, -0.1558918058872223, -0.0039151934906840324, 0.03366728499531746, -0.018401818349957466, -0.01154564693570137, 0.0482458733022213, 0.4226093888282776, 0.5049404501914978, 0.3639852702617645, 0.16840124130249023, -0.2733655273914337, -0.15487322211265564, 0.12762297689914703, 0.05630448833107948, -0.3743777871131897, 0.060217056423425674, -0.2678268849849701, -0.14459271728992462, -0.2930878698825836, -0.1426909863948822, -0.3419748544692993, -0.1941555142402649, 0.10888884216547012, -0.03826402500271797, -0.08678275346755981, 0.2005050629377365, 0.16654546558856964, 0.40008050203323364, 0.10027819126844406, -0.18636783957481384, 0.03814578428864479, -0.1772579550743103, -0.21824167668819427, -0.0453670360147953, 0.3783230483531952, -0.06442906707525253, -0.2067786604166031, -0.18944168090820312, -0.27097487449645996, 0.10979248583316803, -0.4360964596271515, 0.16802921891212463, -0.00915578380227089, 0.19459031522274017, 0.022264938801527023, 0.23686352372169495, -0.14796730875968933, -0.3669349253177643, 0.28148242831230164, -0.046212345361709595, -0.25112801790237427, 0.0004012257559224963, -0.10349578410387039, 0.13379189372062683, -0.2878105938434601, -0.3897336423397064, -0.24531136453151703, -0.2271137833595276, 0.4359024167060852, 0.07529594749212265, 0.1372660994529724, 0.20040766894817352, -0.20206812024116516, 0.014743146486580372, -0.23705972731113434, -0.2110956758260727, 0.04947850480675697, -0.18574701249599457, 0.20523405075073242, -0.2988072633743286, -0.1417257934808731, -0.021901773288846016, 0.09425204247236252, 0.16700436174869537, -0.22435857355594635, -0.16041678190231323, 0.11611869186162949, 0.17135831713676453, 0.24600832164287567, -0.3234412372112274, -0.2597649395465851, 0.25247877836227417, -0.22972996532917023, 0.05242842435836792, 0.19721044600009918, -0.36020970344543457, -0.09371209144592285, 0.5185642838478088, 0.1982492357492447, -0.26570606231689453, 0.23632816970348358, 0.05972122400999069, 0.8267534971237183, -0.13744042813777924, -0.1625378578901291, 0.1258324384689331, 0.03038046509027481, 0.12194909900426865, -0.1489124298095703, -0.03524862602353096, 0.39218831062316895, -0.03979768976569176, -0.1129411831498146, 0.2475959062576294, 0.1624518185853958, -0.542482316493988, -0.005967604927718639, 0.1580977439880371, -0.5473145842552185, -0.16832341253757477, 0.2632974684238434, 0.5551201701164246, -0.08508773148059845, -0.042934201657772064, 0.02945185825228691, 0.002924638567492366, -0.23155124485492706, -0.05983646586537361, 0.2242509424686432, 0.2707135081291199, 0.09323346614837646, -0.5434256196022034, -0.3422013819217682, -0.044759660959243774, -0.020403189584612846, 0.1243698000907898, 0.46455642580986023, -0.0012728822184726596, -0.20624369382858276, 0.027220850810408592, -0.2641843259334564, 0.34766143560409546, 0.26207420229911804, 0.3518282175064087, 0.34914132952690125, 0.32933035492897034, -0.07430154085159302, -0.3046778738498688, 0.1451898217201233, 0.47711265087127686, 0.6556534767150879, 0.419831246137619, -0.10166916996240616, -0.13171075284481049, 0.28487440943717957, 0.08596139401197433, -0.14478111267089844, -0.07338356971740723, -0.22651416063308716, -0.0794777050614357, 0.003026367165148258, 0.03935050591826439, -0.041761238127946854, 0.3973938822746277, 0.0603223592042923, 0.13376061618328094, 0.4236765503883362, -0.26955363154411316, -0.24267500638961792, 0.3894140124320984, 0.10912379622459412, 0.07678156346082687, 0.04680413752794266, 0.26702576875686646, -0.0012031728401780128, 0.33864161372184753, 0.44614577293395996, 0.2894241213798523, -0.20294633507728577, 0.2748584449291229, -0.006987529806792736, 0.2213011085987091, 0.4691964387893677, 0.2012593299150467, -0.18309050798416138, -0.14047065377235413, -0.1271871030330658, 0.023022647947072983, -0.4001842737197876, 0.1378404051065445, -0.3075537085533142, -0.22677825391292572, 0.2155749797821045, 0.20091670751571655, -0.09558365494012833, -0.06338559091091156, -0.028997410088777542, -0.060456618666648865, -0.015703797340393066, 0.5079240798950195, 0.16421639919281006, 0.7734219431877136, -0.04520060122013092, 0.10620619356632233, 0.27133965492248535, -0.11776942014694214, 0.40123239159584045, -0.6511294841766357, 0.36042600870132446, -0.43772241473197937, 0.2696181833744049, 0.12142523378133774, -0.12912042438983917, 0.16803856194019318, 0.18424288928508759, 0.006720331031829119, -0.054778803139925, -0.14762504398822784, 0.2945115268230438, -0.025762459263205528, 0.33889761567115784, 0.17994804680347443, -0.30595409870147705, -0.5036041140556335, 0.06079233065247536, -0.3701074719429016, 0.03455813229084015, -0.14907795190811157, -0.16940264403820038, -0.08521337062120438, -0.12656283378601074, -0.2838003635406494, 0.2769855558872223, 0.1298915147781372, 0.014314512722194195, 0.5128049254417419, -0.2600145637989044, 0.15981556475162506, 0.36441975831985474, -0.1501442939043045, 0.053529176861047745, -0.002932485891506076, 0.3615523874759674, -0.12343038618564606, 0.11176968365907669, 0.22975943982601166, 0.01988394185900688, 0.2879819869995117, -0.16016174852848053, -0.040681611746549606, -0.05039016529917717, -0.07457542419433594, -0.2796953618526459, -0.06919217854738235, 0.3941943347454071, 0.1375088095664978, -0.16564124822616577, 0.012915750965476036, -0.12453930079936981, 0.12291931360960007, -0.049301523715257645, 0.05420316010713577, 0.01064568106085062, -0.14916232228279114, -0.02717488631606102, 0.15864533185958862, -0.06981560587882996, 0.08643700182437897, 0.6089107394218445, -0.10845045000314713, -0.319619745016098, 0.3064621090888977, 0.3026753067970276, 0.005280001554638147, -0.22048050165176392, 0.22126443684101105, 0.05046866834163666, -0.3886026442050934, -0.13762706518173218, -0.19892309606075287, -0.06842467933893204, 0.03468022495508194, 0.10222822427749634, 0.21728667616844177, -0.10179098695516586, 0.0036823165137320757, -0.5508981943130493, -0.3031088709831238, 0.19118665158748627, -0.07676953822374344, -0.1813701093196869, 0.11923134326934814, 0.33894282579421997, 0.01551394909620285, 0.25473833084106445, -0.20348535478115082, 0.32593339681625366, -0.3733079135417938, 0.14416152238845825, -0.5635963082313538, -0.237191841006279, -0.003535408526659012, -0.23051367700099945, 0.018074745312333107, 0.24548934400081635, 0.07344693690538406, -0.10744062811136246, -0.015551659278571606, 0.15939368307590485, 0.13833998143672943, -0.01808522269129753, -0.1694665253162384, -0.0002068050962407142, 0.10750900208950043, 0.1735595464706421, 0.10350010544061661, -0.1377708464860916, 0.1467641144990921, 0.1609327346086502, 0.2953794300556183, 0.10649174451828003, 0.19602863490581512, 0.09358896315097809, 0.029574668034911156, 0.39053875207901, 0.05888175964355469, 0.24129417538642883, -0.20396044850349426, 0.0334324911236763, -0.35546818375587463, 0.18906064331531525, 0.010013969615101814, 0.28048422932624817, 0.0838274359703064, -0.5798286199569702, -0.05440281331539154, -0.07205204665660858, 0.30135810375213623, 0.5721238851547241, -0.3665151298046112, 0.11240680515766144, 0.18876999616622925, 0.1041741818189621, -0.009935306385159492, -0.25940850377082825, 0.7478207945823669, -0.03566416725516319, -0.30246230959892273, 0.01803569868206978, 0.14284643530845642, -0.09839767217636108, 0.13151952624320984, 0.13897192478179932, 0.5670437812805176, 0.19193635880947113, 0.19833432137966156, 0.21702058613300323, -0.22543494403362274, -0.02375098690390587, 0.139786034822464, -0.07899994403123856, 0.18169616162776947, 0.2541319727897644, -0.19390442967414856, 0.0633174479007721, 0.1178165152668953, 0.10370773822069168, 0.23294991254806519, -0.34134358167648315, -0.3557490110397339, 0.09975080192089081, 0.13790349662303925, 0.010600777342915535, 0.1785009205341339, 0.8641579747200012, -0.190843403339386, -0.4217529892921448, -0.0853034034371376, 0.08790239691734314, -0.3081800937652588, 0.08736199885606766, -0.4969726800918579, -0.17893050611019135, -0.04054311290383339, 0.15436413884162903, -0.30171290040016174, -0.032923512160778046, 0.0855989158153534, 0.03904788941144943, -0.27453160285949707, -0.1928049772977829, -0.04141808673739433, -0.21421578526496887, 0.06560984998941422, -0.07529892772436142, 0.3355390429496765, -0.13620981574058533, 0.04288027063012123, 0.24395443499088287, -0.020816996693611145, 0.32823580503463745, 0.3369995355606079, -0.19198912382125854, -0.12645483016967773, -0.2578287422657013, 0.021680934354662895, 0.07443070411682129, 0.10279082506895065, 0.21466556191444397, -0.13024812936782837, 0.2761431634426117, 0.11681997776031494, -0.0468781515955925, 0.13497239351272583, 0.27688345313072205, 0.1607481688261032, 0.09730912744998932, -0.08710534125566483, -0.1949213147163391, -0.24817897379398346, -0.06770200282335281, -0.12639345228672028, 0.03383185714483261, -0.12264174968004227, -0.15556928515434265, 0.501294732093811, 0.11771088093519211, -0.06306383013725281, 0.0850425660610199, 0.10833180695772171, 0.5546953082084656, 0.22261491417884827, -0.36151158809661865, -0.09784559905529022, -0.20268034934997559, -0.2905750870704651, 0.24300579726696014, -0.044860124588012695, 0.07140302658081055, 0.30169954895973206, 0.44031164050102234, -0.14588260650634766, 0.28476831316947937, -0.23703455924987793, -0.0482022687792778, 0.0044927350245416164, 0.2456320971250534, -0.429110586643219, 0.17971694469451904, 0.056648656725883484, 0.14541077613830566, -0.10592126101255417, -0.13402153551578522, 0.26651471853256226, -0.20236138999462128, -0.08586063235998154, 0.03507007658481598, -0.42770856618881226, -0.020691417157649994, 0.04247954860329628, 0.2701975405216217, -0.08202502876520157, 0.33262619376182556, 0.16767990589141846, -0.3741495609283447, -0.4167827069759369, -0.41914963722229004, -0.17610280215740204, 0.1557713747024536, -0.12762397527694702, 0.42383524775505066, -0.027194196358323097, 0.20401416718959808, -0.3149230182170868, -0.0030216865707188845, -0.3587972819805145, 0.34534406661987305, -0.3175050616264343, 0.08617512136697769, 0.08611227571964264, 0.1618039906024933, 0.008849996142089367, 0.3273940086364746, -0.0774756371974945, 0.24947808682918549, -0.5126637816429138, -0.2689226269721985, 0.4422738254070282, -0.6223309636116028, -0.20025953650474548, 0.06876861304044724, 0.0811639353632927, 0.198111429810524, 0.003574732458218932, -0.27756619453430176, -0.07046038657426834, 0.16162073612213135, -0.17459331452846527, -0.2950670123100281, -0.13570983707904816, -0.26254481077194214, -0.25517743825912476, -0.07695828378200531, -0.35992759466171265, 0.18377885222434998, -0.04530983045697212, -0.22119101881980896, -0.23303289711475372 ]
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.017292257398366928, 0.2893960773944855, 0.06094161421060562, 0.057870395481586456, 0.22360970079898834, -0.016548527404665947, 0.32003894448280334, 0.6101840734481812, -0.40100985765457153, -0.21304266154766083, -0.2422538846731186, 0.7714078426361084, 0.13278771936893463, -0.42659619450569153, 0.1489231139421463, -0.07152768969535828, 0.046225838363170624, 0.12672977149486542, 0.22394156455993652, 0.0536700002849102, -0.1744496375322342, 0.3416512608528137, -0.22996866703033447, 0.13204170763492584, -0.16675138473510742, 0.2660643756389618, 0.006536424160003662, 0.5419238209724426, -0.07457243651151657, -0.7302018404006958, 0.29777640104293823, -0.009330149739980698, 0.15174509584903717, 0.34502455592155457, -0.0001186112713185139, 0.18453176319599152, 0.3318486213684082, -0.10963703691959381, -0.35170164704322815, 0.05212962254881859, 0.28050342202186584, -0.2414647936820984, 0.3380267024040222, -0.1453838348388672, 0.06273150444030762, -0.31197941303253174, 0.03183189406991005, 0.08127480000257492, 0.6866549849510193, 0.15539661049842834, 0.09210099279880524, 0.1377253383398056, 0.07380591332912445, 0.052365742623806, 0.02077654004096985, 0.06787756830453873, 0.01660388708114624, 0.7200931906700134, 0.5202924609184265, -0.12601275742053986, -0.3388993740081787, -0.07208507508039474, 0.12127211689949036, -0.0382683165371418, 0.20485764741897583, -0.06355616450309753, -0.013848851434886456, -0.18327093124389648, 0.05246517062187195, 0.11702040582895279, 0.2416466921567917, -0.2380601316690445, -0.23284845054149628, -0.21574950218200684, 0.07478687167167664, -0.21810846030712128, 0.37732067704200745, 0.2772291302680969, -0.139860600233078, 0.15234236419200897, -0.056996993720531464, 0.03446073457598686, -0.19189301133155823, 0.029310619458556175, -0.21427370607852936, 0.5192517638206482, 0.12151257693767548, 0.04168425872921944, 0.10512390732765198, -0.16294585168361664, -0.15192624926567078, 0.3172394931316376, -0.2625276446342468, 0.3998277187347412, -0.39082688093185425, -0.16861741244792938, 0.11205310374498367, -0.36265188455581665, 0.21630500257015228, 0.09017730504274368, 0.1800890862941742, 0.16720479726791382, 0.21391239762306213, 0.12037068605422974, 0.4853108823299408, 0.054677315056324005, 0.17183560132980347, 0.20253245532512665, 0.152631014585495, -0.019630158320069313, -0.025974182412028313, 0.23977500200271606, -0.13988180458545685, -0.22500739991664886, -0.21351630985736847, 0.028067776933312416, -0.026821553707122803, -0.10946699976921082, 0.014882948249578476, 0.06951796263456345, -0.31477081775665283, -0.012025627307593822, 0.05098559707403183, 0.08486197888851166, 0.1312868446111679, 0.1926080733537674, -0.25002825260162354, 0.20476123690605164, -0.10145492106676102, -0.17269538342952728, -0.017575178295373917, -0.026820076629519463, -0.30665695667266846, -0.020665643736720085, 0.40547406673431396, -0.12256035208702087, 0.11852136254310608, -0.08124995976686478, -0.11161517351865768, -0.22692188620567322, -0.433472216129303, -0.04389789700508118, 0.007666639517992735, 0.14967356622219086, 0.03168029338121414, -0.07048674672842026, -0.03672363981604576, -0.25811049342155457, -0.18032069504261017, 0.21218964457511902, -0.3511877954006195, -0.28516241908073425, -0.5924192667007446, 0.11839151382446289, -0.322714239358902, -0.005309612490236759, 0.14440187811851501, 0.2050790935754776, 0.05665956065058708, -0.4543267786502838, -0.13778981566429138, -0.08935907483100891, -0.0031522151548415422, -0.22954273223876953, 0.14668263494968414, 0.2523784935474396, -0.8450292944908142, -0.23598171770572662, 0.16683731973171234, -0.0015068523352965713, 0.08309793472290039, 0.5275312662124634, -0.3514188230037689, 0.2732031047344208, -0.15309688448905945, 0.5261089205741882, 0.4013669490814209, -0.27797815203666687, -0.3369089663028717, 0.24279090762138367, -0.39944884181022644, -0.041357316076755524, -0.23726758360862732, -0.0655718445777893, 0.29670530557632446, 0.08233347535133362, 0.34125328063964844, 0.4493865370750427, -0.11555199325084686, 0.14832471311092377, -0.33256515860557556, -0.08049877732992172, 0.17264261841773987, 0.36014044284820557, -0.06741543859243393, -0.16082417964935303, -0.029858894646167755, 0.1449318528175354, 0.40400180220603943, -0.1719319224357605, -0.0207538902759552, 0.1606731116771698, 0.1372901052236557, -0.017320599406957626, 0.16614195704460144, -0.10807980597019196, -0.7758408188819885, 0.10205107182264328, -0.28949281573295593, 0.08079442381858826, -0.04113197699189186, 0.006053206045180559, -0.2767828404903412, -0.11359786242246628, -0.20613150298595428, -0.05402308329939842, 0.03211696445941925, -0.16049450635910034, -0.0348595529794693, -0.06829699128866196, -0.46529421210289, -0.15678761899471283, -0.15475668013095856, 0.37804940342903137, -0.1153782531619072, 0.40393194556236267, -0.13026513159275055, -0.4008335769176483, 0.09279229491949081, 0.3672269880771637, 0.12826143205165863, -0.26726198196411133, -0.006815253756940365, 0.329568088054657, -0.08044800162315369, 0.13387402892112732, -0.17082281410694122, -0.29795461893081665, 0.24760928750038147, -0.08576138317584991, -0.12928423285484314, -0.06358135491609573, -0.10223181545734406, -0.08836493641138077, -0.32466816902160645, 0.3362677991390228, 0.019726209342479706, -0.03263607621192932, -0.056773263961076736, -0.24713647365570068, 0.29812076687812805, -0.08481123298406601, -0.12740357220172882, -0.02829713374376297, 0.01728641986846924, 0.16710714995861053, -0.012494543567299843, 0.17665846645832062, -0.1765214204788208, -0.014474378898739815, 0.36949482560157776, -0.06511888653039932, 0.03556988015770912, 0.18731790781021118, 0.10087178647518158, -0.2918992042541504, -0.02475265972316265, -0.04872290790081024, 0.3634799122810364, -0.007696719840168953, -0.1558918058872223, -0.0039151934906840324, 0.03366728499531746, -0.018401818349957466, -0.01154564693570137, 0.0482458733022213, 0.4226093888282776, 0.5049404501914978, 0.3639852702617645, 0.16840124130249023, -0.2733655273914337, -0.15487322211265564, 0.12762297689914703, 0.05630448833107948, -0.3743777871131897, 0.060217056423425674, -0.2678268849849701, -0.14459271728992462, -0.2930878698825836, -0.1426909863948822, -0.3419748544692993, -0.1941555142402649, 0.10888884216547012, -0.03826402500271797, -0.08678275346755981, 0.2005050629377365, 0.16654546558856964, 0.40008050203323364, 0.10027819126844406, -0.18636783957481384, 0.03814578428864479, -0.1772579550743103, -0.21824167668819427, -0.0453670360147953, 0.3783230483531952, -0.06442906707525253, -0.2067786604166031, -0.18944168090820312, -0.27097487449645996, 0.10979248583316803, -0.4360964596271515, 0.16802921891212463, -0.00915578380227089, 0.19459031522274017, 0.022264938801527023, 0.23686352372169495, -0.14796730875968933, -0.3669349253177643, 0.28148242831230164, -0.046212345361709595, -0.25112801790237427, 0.0004012257559224963, -0.10349578410387039, 0.13379189372062683, -0.2878105938434601, -0.3897336423397064, -0.24531136453151703, -0.2271137833595276, 0.4359024167060852, 0.07529594749212265, 0.1372660994529724, 0.20040766894817352, -0.20206812024116516, 0.014743146486580372, -0.23705972731113434, -0.2110956758260727, 0.04947850480675697, -0.18574701249599457, 0.20523405075073242, -0.2988072633743286, -0.1417257934808731, -0.021901773288846016, 0.09425204247236252, 0.16700436174869537, -0.22435857355594635, -0.16041678190231323, 0.11611869186162949, 0.17135831713676453, 0.24600832164287567, -0.3234412372112274, -0.2597649395465851, 0.25247877836227417, -0.22972996532917023, 0.05242842435836792, 0.19721044600009918, -0.36020970344543457, -0.09371209144592285, 0.5185642838478088, 0.1982492357492447, -0.26570606231689453, 0.23632816970348358, 0.05972122400999069, 0.8267534971237183, -0.13744042813777924, -0.1625378578901291, 0.1258324384689331, 0.03038046509027481, 0.12194909900426865, -0.1489124298095703, -0.03524862602353096, 0.39218831062316895, -0.03979768976569176, -0.1129411831498146, 0.2475959062576294, 0.1624518185853958, -0.542482316493988, -0.005967604927718639, 0.1580977439880371, -0.5473145842552185, -0.16832341253757477, 0.2632974684238434, 0.5551201701164246, -0.08508773148059845, -0.042934201657772064, 0.02945185825228691, 0.002924638567492366, -0.23155124485492706, -0.05983646586537361, 0.2242509424686432, 0.2707135081291199, 0.09323346614837646, -0.5434256196022034, -0.3422013819217682, -0.044759660959243774, -0.020403189584612846, 0.1243698000907898, 0.46455642580986023, -0.0012728822184726596, -0.20624369382858276, 0.027220850810408592, -0.2641843259334564, 0.34766143560409546, 0.26207420229911804, 0.3518282175064087, 0.34914132952690125, 0.32933035492897034, -0.07430154085159302, -0.3046778738498688, 0.1451898217201233, 0.47711265087127686, 0.6556534767150879, 0.419831246137619, -0.10166916996240616, -0.13171075284481049, 0.28487440943717957, 0.08596139401197433, -0.14478111267089844, -0.07338356971740723, -0.22651416063308716, -0.0794777050614357, 0.003026367165148258, 0.03935050591826439, -0.041761238127946854, 0.3973938822746277, 0.0603223592042923, 0.13376061618328094, 0.4236765503883362, -0.26955363154411316, -0.24267500638961792, 0.3894140124320984, 0.10912379622459412, 0.07678156346082687, 0.04680413752794266, 0.26702576875686646, -0.0012031728401780128, 0.33864161372184753, 0.44614577293395996, 0.2894241213798523, -0.20294633507728577, 0.2748584449291229, -0.006987529806792736, 0.2213011085987091, 0.4691964387893677, 0.2012593299150467, -0.18309050798416138, -0.14047065377235413, -0.1271871030330658, 0.023022647947072983, -0.4001842737197876, 0.1378404051065445, -0.3075537085533142, -0.22677825391292572, 0.2155749797821045, 0.20091670751571655, -0.09558365494012833, -0.06338559091091156, -0.028997410088777542, -0.060456618666648865, -0.015703797340393066, 0.5079240798950195, 0.16421639919281006, 0.7734219431877136, -0.04520060122013092, 0.10620619356632233, 0.27133965492248535, -0.11776942014694214, 0.40123239159584045, -0.6511294841766357, 0.36042600870132446, -0.43772241473197937, 0.2696181833744049, 0.12142523378133774, -0.12912042438983917, 0.16803856194019318, 0.18424288928508759, 0.006720331031829119, -0.054778803139925, -0.14762504398822784, 0.2945115268230438, -0.025762459263205528, 0.33889761567115784, 0.17994804680347443, -0.30595409870147705, -0.5036041140556335, 0.06079233065247536, -0.3701074719429016, 0.03455813229084015, -0.14907795190811157, -0.16940264403820038, -0.08521337062120438, -0.12656283378601074, -0.2838003635406494, 0.2769855558872223, 0.1298915147781372, 0.014314512722194195, 0.5128049254417419, -0.2600145637989044, 0.15981556475162506, 0.36441975831985474, -0.1501442939043045, 0.053529176861047745, -0.002932485891506076, 0.3615523874759674, -0.12343038618564606, 0.11176968365907669, 0.22975943982601166, 0.01988394185900688, 0.2879819869995117, -0.16016174852848053, -0.040681611746549606, -0.05039016529917717, -0.07457542419433594, -0.2796953618526459, -0.06919217854738235, 0.3941943347454071, 0.1375088095664978, -0.16564124822616577, 0.012915750965476036, -0.12453930079936981, 0.12291931360960007, -0.049301523715257645, 0.05420316010713577, 0.01064568106085062, -0.14916232228279114, -0.02717488631606102, 0.15864533185958862, -0.06981560587882996, 0.08643700182437897, 0.6089107394218445, -0.10845045000314713, -0.319619745016098, 0.3064621090888977, 0.3026753067970276, 0.005280001554638147, -0.22048050165176392, 0.22126443684101105, 0.05046866834163666, -0.3886026442050934, -0.13762706518173218, -0.19892309606075287, -0.06842467933893204, 0.03468022495508194, 0.10222822427749634, 0.21728667616844177, -0.10179098695516586, 0.0036823165137320757, -0.5508981943130493, -0.3031088709831238, 0.19118665158748627, -0.07676953822374344, -0.1813701093196869, 0.11923134326934814, 0.33894282579421997, 0.01551394909620285, 0.25473833084106445, -0.20348535478115082, 0.32593339681625366, -0.3733079135417938, 0.14416152238845825, -0.5635963082313538, -0.237191841006279, -0.003535408526659012, -0.23051367700099945, 0.018074745312333107, 0.24548934400081635, 0.07344693690538406, -0.10744062811136246, -0.015551659278571606, 0.15939368307590485, 0.13833998143672943, -0.01808522269129753, -0.1694665253162384, -0.0002068050962407142, 0.10750900208950043, 0.1735595464706421, 0.10350010544061661, -0.1377708464860916, 0.1467641144990921, 0.1609327346086502, 0.2953794300556183, 0.10649174451828003, 0.19602863490581512, 0.09358896315097809, 0.029574668034911156, 0.39053875207901, 0.05888175964355469, 0.24129417538642883, -0.20396044850349426, 0.0334324911236763, -0.35546818375587463, 0.18906064331531525, 0.010013969615101814, 0.28048422932624817, 0.0838274359703064, -0.5798286199569702, -0.05440281331539154, -0.07205204665660858, 0.30135810375213623, 0.5721238851547241, -0.3665151298046112, 0.11240680515766144, 0.18876999616622925, 0.1041741818189621, -0.009935306385159492, -0.25940850377082825, 0.7478207945823669, -0.03566416725516319, -0.30246230959892273, 0.01803569868206978, 0.14284643530845642, -0.09839767217636108, 0.13151952624320984, 0.13897192478179932, 0.5670437812805176, 0.19193635880947113, 0.19833432137966156, 0.21702058613300323, -0.22543494403362274, -0.02375098690390587, 0.139786034822464, -0.07899994403123856, 0.18169616162776947, 0.2541319727897644, -0.19390442967414856, 0.0633174479007721, 0.1178165152668953, 0.10370773822069168, 0.23294991254806519, -0.34134358167648315, -0.3557490110397339, 0.09975080192089081, 0.13790349662303925, 0.010600777342915535, 0.1785009205341339, 0.8641579747200012, -0.190843403339386, -0.4217529892921448, -0.0853034034371376, 0.08790239691734314, -0.3081800937652588, 0.08736199885606766, -0.4969726800918579, -0.17893050611019135, -0.04054311290383339, 0.15436413884162903, -0.30171290040016174, -0.032923512160778046, 0.0855989158153534, 0.03904788941144943, -0.27453160285949707, -0.1928049772977829, -0.04141808673739433, -0.21421578526496887, 0.06560984998941422, -0.07529892772436142, 0.3355390429496765, -0.13620981574058533, 0.04288027063012123, 0.24395443499088287, -0.020816996693611145, 0.32823580503463745, 0.3369995355606079, -0.19198912382125854, -0.12645483016967773, -0.2578287422657013, 0.021680934354662895, 0.07443070411682129, 0.10279082506895065, 0.21466556191444397, -0.13024812936782837, 0.2761431634426117, 0.11681997776031494, -0.0468781515955925, 0.13497239351272583, 0.27688345313072205, 0.1607481688261032, 0.09730912744998932, -0.08710534125566483, -0.1949213147163391, -0.24817897379398346, -0.06770200282335281, -0.12639345228672028, 0.03383185714483261, -0.12264174968004227, -0.15556928515434265, 0.501294732093811, 0.11771088093519211, -0.06306383013725281, 0.0850425660610199, 0.10833180695772171, 0.5546953082084656, 0.22261491417884827, -0.36151158809661865, -0.09784559905529022, -0.20268034934997559, -0.2905750870704651, 0.24300579726696014, -0.044860124588012695, 0.07140302658081055, 0.30169954895973206, 0.44031164050102234, -0.14588260650634766, 0.28476831316947937, -0.23703455924987793, -0.0482022687792778, 0.0044927350245416164, 0.2456320971250534, -0.429110586643219, 0.17971694469451904, 0.056648656725883484, 0.14541077613830566, -0.10592126101255417, -0.13402153551578522, 0.26651471853256226, -0.20236138999462128, -0.08586063235998154, 0.03507007658481598, -0.42770856618881226, -0.020691417157649994, 0.04247954860329628, 0.2701975405216217, -0.08202502876520157, 0.33262619376182556, 0.16767990589141846, -0.3741495609283447, -0.4167827069759369, -0.41914963722229004, -0.17610280215740204, 0.1557713747024536, -0.12762397527694702, 0.42383524775505066, -0.027194196358323097, 0.20401416718959808, -0.3149230182170868, -0.0030216865707188845, -0.3587972819805145, 0.34534406661987305, -0.3175050616264343, 0.08617512136697769, 0.08611227571964264, 0.1618039906024933, 0.008849996142089367, 0.3273940086364746, -0.0774756371974945, 0.24947808682918549, -0.5126637816429138, -0.2689226269721985, 0.4422738254070282, -0.6223309636116028, -0.20025953650474548, 0.06876861304044724, 0.0811639353632927, 0.198111429810524, 0.003574732458218932, -0.27756619453430176, -0.07046038657426834, 0.16162073612213135, -0.17459331452846527, -0.2950670123100281, -0.13570983707904816, -0.26254481077194214, -0.25517743825912476, -0.07695828378200531, -0.35992759466171265, 0.18377885222434998, -0.04530983045697212, -0.22119101881980896, -0.23303289711475372 ]
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.017292257398366928, 0.2893960773944855, 0.06094161421060562, 0.057870395481586456, 0.22360970079898834, -0.016548527404665947, 0.32003894448280334, 0.6101840734481812, -0.40100985765457153, -0.21304266154766083, -0.2422538846731186, 0.7714078426361084, 0.13278771936893463, -0.42659619450569153, 0.1489231139421463, -0.07152768969535828, 0.046225838363170624, 0.12672977149486542, 0.22394156455993652, 0.0536700002849102, -0.1744496375322342, 0.3416512608528137, -0.22996866703033447, 0.13204170763492584, -0.16675138473510742, 0.2660643756389618, 0.006536424160003662, 0.5419238209724426, -0.07457243651151657, -0.7302018404006958, 0.29777640104293823, -0.009330149739980698, 0.15174509584903717, 0.34502455592155457, -0.0001186112713185139, 0.18453176319599152, 0.3318486213684082, -0.10963703691959381, -0.35170164704322815, 0.05212962254881859, 0.28050342202186584, -0.2414647936820984, 0.3380267024040222, -0.1453838348388672, 0.06273150444030762, -0.31197941303253174, 0.03183189406991005, 0.08127480000257492, 0.6866549849510193, 0.15539661049842834, 0.09210099279880524, 0.1377253383398056, 0.07380591332912445, 0.052365742623806, 0.02077654004096985, 0.06787756830453873, 0.01660388708114624, 0.7200931906700134, 0.5202924609184265, -0.12601275742053986, -0.3388993740081787, -0.07208507508039474, 0.12127211689949036, -0.0382683165371418, 0.20485764741897583, -0.06355616450309753, -0.013848851434886456, -0.18327093124389648, 0.05246517062187195, 0.11702040582895279, 0.2416466921567917, -0.2380601316690445, -0.23284845054149628, -0.21574950218200684, 0.07478687167167664, -0.21810846030712128, 0.37732067704200745, 0.2772291302680969, -0.139860600233078, 0.15234236419200897, -0.056996993720531464, 0.03446073457598686, -0.19189301133155823, 0.029310619458556175, -0.21427370607852936, 0.5192517638206482, 0.12151257693767548, 0.04168425872921944, 0.10512390732765198, -0.16294585168361664, -0.15192624926567078, 0.3172394931316376, -0.2625276446342468, 0.3998277187347412, -0.39082688093185425, -0.16861741244792938, 0.11205310374498367, -0.36265188455581665, 0.21630500257015228, 0.09017730504274368, 0.1800890862941742, 0.16720479726791382, 0.21391239762306213, 0.12037068605422974, 0.4853108823299408, 0.054677315056324005, 0.17183560132980347, 0.20253245532512665, 0.152631014585495, -0.019630158320069313, -0.025974182412028313, 0.23977500200271606, -0.13988180458545685, -0.22500739991664886, -0.21351630985736847, 0.028067776933312416, -0.026821553707122803, -0.10946699976921082, 0.014882948249578476, 0.06951796263456345, -0.31477081775665283, -0.012025627307593822, 0.05098559707403183, 0.08486197888851166, 0.1312868446111679, 0.1926080733537674, -0.25002825260162354, 0.20476123690605164, -0.10145492106676102, -0.17269538342952728, -0.017575178295373917, -0.026820076629519463, -0.30665695667266846, -0.020665643736720085, 0.40547406673431396, -0.12256035208702087, 0.11852136254310608, -0.08124995976686478, -0.11161517351865768, -0.22692188620567322, -0.433472216129303, -0.04389789700508118, 0.007666639517992735, 0.14967356622219086, 0.03168029338121414, -0.07048674672842026, -0.03672363981604576, -0.25811049342155457, -0.18032069504261017, 0.21218964457511902, -0.3511877954006195, -0.28516241908073425, -0.5924192667007446, 0.11839151382446289, -0.322714239358902, -0.005309612490236759, 0.14440187811851501, 0.2050790935754776, 0.05665956065058708, -0.4543267786502838, -0.13778981566429138, -0.08935907483100891, -0.0031522151548415422, -0.22954273223876953, 0.14668263494968414, 0.2523784935474396, -0.8450292944908142, -0.23598171770572662, 0.16683731973171234, -0.0015068523352965713, 0.08309793472290039, 0.5275312662124634, -0.3514188230037689, 0.2732031047344208, -0.15309688448905945, 0.5261089205741882, 0.4013669490814209, -0.27797815203666687, -0.3369089663028717, 0.24279090762138367, -0.39944884181022644, -0.041357316076755524, -0.23726758360862732, -0.0655718445777893, 0.29670530557632446, 0.08233347535133362, 0.34125328063964844, 0.4493865370750427, -0.11555199325084686, 0.14832471311092377, -0.33256515860557556, -0.08049877732992172, 0.17264261841773987, 0.36014044284820557, -0.06741543859243393, -0.16082417964935303, -0.029858894646167755, 0.1449318528175354, 0.40400180220603943, -0.1719319224357605, -0.0207538902759552, 0.1606731116771698, 0.1372901052236557, -0.017320599406957626, 0.16614195704460144, -0.10807980597019196, -0.7758408188819885, 0.10205107182264328, -0.28949281573295593, 0.08079442381858826, -0.04113197699189186, 0.006053206045180559, -0.2767828404903412, -0.11359786242246628, -0.20613150298595428, -0.05402308329939842, 0.03211696445941925, -0.16049450635910034, -0.0348595529794693, -0.06829699128866196, -0.46529421210289, -0.15678761899471283, -0.15475668013095856, 0.37804940342903137, -0.1153782531619072, 0.40393194556236267, -0.13026513159275055, -0.4008335769176483, 0.09279229491949081, 0.3672269880771637, 0.12826143205165863, -0.26726198196411133, -0.006815253756940365, 0.329568088054657, -0.08044800162315369, 0.13387402892112732, -0.17082281410694122, -0.29795461893081665, 0.24760928750038147, -0.08576138317584991, -0.12928423285484314, -0.06358135491609573, -0.10223181545734406, -0.08836493641138077, -0.32466816902160645, 0.3362677991390228, 0.019726209342479706, -0.03263607621192932, -0.056773263961076736, -0.24713647365570068, 0.29812076687812805, -0.08481123298406601, -0.12740357220172882, -0.02829713374376297, 0.01728641986846924, 0.16710714995861053, -0.012494543567299843, 0.17665846645832062, -0.1765214204788208, -0.014474378898739815, 0.36949482560157776, -0.06511888653039932, 0.03556988015770912, 0.18731790781021118, 0.10087178647518158, -0.2918992042541504, -0.02475265972316265, -0.04872290790081024, 0.3634799122810364, -0.007696719840168953, -0.1558918058872223, -0.0039151934906840324, 0.03366728499531746, -0.018401818349957466, -0.01154564693570137, 0.0482458733022213, 0.4226093888282776, 0.5049404501914978, 0.3639852702617645, 0.16840124130249023, -0.2733655273914337, -0.15487322211265564, 0.12762297689914703, 0.05630448833107948, -0.3743777871131897, 0.060217056423425674, -0.2678268849849701, -0.14459271728992462, -0.2930878698825836, -0.1426909863948822, -0.3419748544692993, -0.1941555142402649, 0.10888884216547012, -0.03826402500271797, -0.08678275346755981, 0.2005050629377365, 0.16654546558856964, 0.40008050203323364, 0.10027819126844406, -0.18636783957481384, 0.03814578428864479, -0.1772579550743103, -0.21824167668819427, -0.0453670360147953, 0.3783230483531952, -0.06442906707525253, -0.2067786604166031, -0.18944168090820312, -0.27097487449645996, 0.10979248583316803, -0.4360964596271515, 0.16802921891212463, -0.00915578380227089, 0.19459031522274017, 0.022264938801527023, 0.23686352372169495, -0.14796730875968933, -0.3669349253177643, 0.28148242831230164, -0.046212345361709595, -0.25112801790237427, 0.0004012257559224963, -0.10349578410387039, 0.13379189372062683, -0.2878105938434601, -0.3897336423397064, -0.24531136453151703, -0.2271137833595276, 0.4359024167060852, 0.07529594749212265, 0.1372660994529724, 0.20040766894817352, -0.20206812024116516, 0.014743146486580372, -0.23705972731113434, -0.2110956758260727, 0.04947850480675697, -0.18574701249599457, 0.20523405075073242, -0.2988072633743286, -0.1417257934808731, -0.021901773288846016, 0.09425204247236252, 0.16700436174869537, -0.22435857355594635, -0.16041678190231323, 0.11611869186162949, 0.17135831713676453, 0.24600832164287567, -0.3234412372112274, -0.2597649395465851, 0.25247877836227417, -0.22972996532917023, 0.05242842435836792, 0.19721044600009918, -0.36020970344543457, -0.09371209144592285, 0.5185642838478088, 0.1982492357492447, -0.26570606231689453, 0.23632816970348358, 0.05972122400999069, 0.8267534971237183, -0.13744042813777924, -0.1625378578901291, 0.1258324384689331, 0.03038046509027481, 0.12194909900426865, -0.1489124298095703, -0.03524862602353096, 0.39218831062316895, -0.03979768976569176, -0.1129411831498146, 0.2475959062576294, 0.1624518185853958, -0.542482316493988, -0.005967604927718639, 0.1580977439880371, -0.5473145842552185, -0.16832341253757477, 0.2632974684238434, 0.5551201701164246, -0.08508773148059845, -0.042934201657772064, 0.02945185825228691, 0.002924638567492366, -0.23155124485492706, -0.05983646586537361, 0.2242509424686432, 0.2707135081291199, 0.09323346614837646, -0.5434256196022034, -0.3422013819217682, -0.044759660959243774, -0.020403189584612846, 0.1243698000907898, 0.46455642580986023, -0.0012728822184726596, -0.20624369382858276, 0.027220850810408592, -0.2641843259334564, 0.34766143560409546, 0.26207420229911804, 0.3518282175064087, 0.34914132952690125, 0.32933035492897034, -0.07430154085159302, -0.3046778738498688, 0.1451898217201233, 0.47711265087127686, 0.6556534767150879, 0.419831246137619, -0.10166916996240616, -0.13171075284481049, 0.28487440943717957, 0.08596139401197433, -0.14478111267089844, -0.07338356971740723, -0.22651416063308716, -0.0794777050614357, 0.003026367165148258, 0.03935050591826439, -0.041761238127946854, 0.3973938822746277, 0.0603223592042923, 0.13376061618328094, 0.4236765503883362, -0.26955363154411316, -0.24267500638961792, 0.3894140124320984, 0.10912379622459412, 0.07678156346082687, 0.04680413752794266, 0.26702576875686646, -0.0012031728401780128, 0.33864161372184753, 0.44614577293395996, 0.2894241213798523, -0.20294633507728577, 0.2748584449291229, -0.006987529806792736, 0.2213011085987091, 0.4691964387893677, 0.2012593299150467, -0.18309050798416138, -0.14047065377235413, -0.1271871030330658, 0.023022647947072983, -0.4001842737197876, 0.1378404051065445, -0.3075537085533142, -0.22677825391292572, 0.2155749797821045, 0.20091670751571655, -0.09558365494012833, -0.06338559091091156, -0.028997410088777542, -0.060456618666648865, -0.015703797340393066, 0.5079240798950195, 0.16421639919281006, 0.7734219431877136, -0.04520060122013092, 0.10620619356632233, 0.27133965492248535, -0.11776942014694214, 0.40123239159584045, -0.6511294841766357, 0.36042600870132446, -0.43772241473197937, 0.2696181833744049, 0.12142523378133774, -0.12912042438983917, 0.16803856194019318, 0.18424288928508759, 0.006720331031829119, -0.054778803139925, -0.14762504398822784, 0.2945115268230438, -0.025762459263205528, 0.33889761567115784, 0.17994804680347443, -0.30595409870147705, -0.5036041140556335, 0.06079233065247536, -0.3701074719429016, 0.03455813229084015, -0.14907795190811157, -0.16940264403820038, -0.08521337062120438, -0.12656283378601074, -0.2838003635406494, 0.2769855558872223, 0.1298915147781372, 0.014314512722194195, 0.5128049254417419, -0.2600145637989044, 0.15981556475162506, 0.36441975831985474, -0.1501442939043045, 0.053529176861047745, -0.002932485891506076, 0.3615523874759674, -0.12343038618564606, 0.11176968365907669, 0.22975943982601166, 0.01988394185900688, 0.2879819869995117, -0.16016174852848053, -0.040681611746549606, -0.05039016529917717, -0.07457542419433594, -0.2796953618526459, -0.06919217854738235, 0.3941943347454071, 0.1375088095664978, -0.16564124822616577, 0.012915750965476036, -0.12453930079936981, 0.12291931360960007, -0.049301523715257645, 0.05420316010713577, 0.01064568106085062, -0.14916232228279114, -0.02717488631606102, 0.15864533185958862, -0.06981560587882996, 0.08643700182437897, 0.6089107394218445, -0.10845045000314713, -0.319619745016098, 0.3064621090888977, 0.3026753067970276, 0.005280001554638147, -0.22048050165176392, 0.22126443684101105, 0.05046866834163666, -0.3886026442050934, -0.13762706518173218, -0.19892309606075287, -0.06842467933893204, 0.03468022495508194, 0.10222822427749634, 0.21728667616844177, -0.10179098695516586, 0.0036823165137320757, -0.5508981943130493, -0.3031088709831238, 0.19118665158748627, -0.07676953822374344, -0.1813701093196869, 0.11923134326934814, 0.33894282579421997, 0.01551394909620285, 0.25473833084106445, -0.20348535478115082, 0.32593339681625366, -0.3733079135417938, 0.14416152238845825, -0.5635963082313538, -0.237191841006279, -0.003535408526659012, -0.23051367700099945, 0.018074745312333107, 0.24548934400081635, 0.07344693690538406, -0.10744062811136246, -0.015551659278571606, 0.15939368307590485, 0.13833998143672943, -0.01808522269129753, -0.1694665253162384, -0.0002068050962407142, 0.10750900208950043, 0.1735595464706421, 0.10350010544061661, -0.1377708464860916, 0.1467641144990921, 0.1609327346086502, 0.2953794300556183, 0.10649174451828003, 0.19602863490581512, 0.09358896315097809, 0.029574668034911156, 0.39053875207901, 0.05888175964355469, 0.24129417538642883, -0.20396044850349426, 0.0334324911236763, -0.35546818375587463, 0.18906064331531525, 0.010013969615101814, 0.28048422932624817, 0.0838274359703064, -0.5798286199569702, -0.05440281331539154, -0.07205204665660858, 0.30135810375213623, 0.5721238851547241, -0.3665151298046112, 0.11240680515766144, 0.18876999616622925, 0.1041741818189621, -0.009935306385159492, -0.25940850377082825, 0.7478207945823669, -0.03566416725516319, -0.30246230959892273, 0.01803569868206978, 0.14284643530845642, -0.09839767217636108, 0.13151952624320984, 0.13897192478179932, 0.5670437812805176, 0.19193635880947113, 0.19833432137966156, 0.21702058613300323, -0.22543494403362274, -0.02375098690390587, 0.139786034822464, -0.07899994403123856, 0.18169616162776947, 0.2541319727897644, -0.19390442967414856, 0.0633174479007721, 0.1178165152668953, 0.10370773822069168, 0.23294991254806519, -0.34134358167648315, -0.3557490110397339, 0.09975080192089081, 0.13790349662303925, 0.010600777342915535, 0.1785009205341339, 0.8641579747200012, -0.190843403339386, -0.4217529892921448, -0.0853034034371376, 0.08790239691734314, -0.3081800937652588, 0.08736199885606766, -0.4969726800918579, -0.17893050611019135, -0.04054311290383339, 0.15436413884162903, -0.30171290040016174, -0.032923512160778046, 0.0855989158153534, 0.03904788941144943, -0.27453160285949707, -0.1928049772977829, -0.04141808673739433, -0.21421578526496887, 0.06560984998941422, -0.07529892772436142, 0.3355390429496765, -0.13620981574058533, 0.04288027063012123, 0.24395443499088287, -0.020816996693611145, 0.32823580503463745, 0.3369995355606079, -0.19198912382125854, -0.12645483016967773, -0.2578287422657013, 0.021680934354662895, 0.07443070411682129, 0.10279082506895065, 0.21466556191444397, -0.13024812936782837, 0.2761431634426117, 0.11681997776031494, -0.0468781515955925, 0.13497239351272583, 0.27688345313072205, 0.1607481688261032, 0.09730912744998932, -0.08710534125566483, -0.1949213147163391, -0.24817897379398346, -0.06770200282335281, -0.12639345228672028, 0.03383185714483261, -0.12264174968004227, -0.15556928515434265, 0.501294732093811, 0.11771088093519211, -0.06306383013725281, 0.0850425660610199, 0.10833180695772171, 0.5546953082084656, 0.22261491417884827, -0.36151158809661865, -0.09784559905529022, -0.20268034934997559, -0.2905750870704651, 0.24300579726696014, -0.044860124588012695, 0.07140302658081055, 0.30169954895973206, 0.44031164050102234, -0.14588260650634766, 0.28476831316947937, -0.23703455924987793, -0.0482022687792778, 0.0044927350245416164, 0.2456320971250534, -0.429110586643219, 0.17971694469451904, 0.056648656725883484, 0.14541077613830566, -0.10592126101255417, -0.13402153551578522, 0.26651471853256226, -0.20236138999462128, -0.08586063235998154, 0.03507007658481598, -0.42770856618881226, -0.020691417157649994, 0.04247954860329628, 0.2701975405216217, -0.08202502876520157, 0.33262619376182556, 0.16767990589141846, -0.3741495609283447, -0.4167827069759369, -0.41914963722229004, -0.17610280215740204, 0.1557713747024536, -0.12762397527694702, 0.42383524775505066, -0.027194196358323097, 0.20401416718959808, -0.3149230182170868, -0.0030216865707188845, -0.3587972819805145, 0.34534406661987305, -0.3175050616264343, 0.08617512136697769, 0.08611227571964264, 0.1618039906024933, 0.008849996142089367, 0.3273940086364746, -0.0774756371974945, 0.24947808682918549, -0.5126637816429138, -0.2689226269721985, 0.4422738254070282, -0.6223309636116028, -0.20025953650474548, 0.06876861304044724, 0.0811639353632927, 0.198111429810524, 0.003574732458218932, -0.27756619453430176, -0.07046038657426834, 0.16162073612213135, -0.17459331452846527, -0.2950670123100281, -0.13570983707904816, -0.26254481077194214, -0.25517743825912476, -0.07695828378200531, -0.35992759466171265, 0.18377885222434998, -0.04530983045697212, -0.22119101881980896, -0.23303289711475372 ]
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.017292257398366928, 0.2893960773944855, 0.06094161421060562, 0.057870395481586456, 0.22360970079898834, -0.016548527404665947, 0.32003894448280334, 0.6101840734481812, -0.40100985765457153, -0.21304266154766083, -0.2422538846731186, 0.7714078426361084, 0.13278771936893463, -0.42659619450569153, 0.1489231139421463, -0.07152768969535828, 0.046225838363170624, 0.12672977149486542, 0.22394156455993652, 0.0536700002849102, -0.1744496375322342, 0.3416512608528137, -0.22996866703033447, 0.13204170763492584, -0.16675138473510742, 0.2660643756389618, 0.006536424160003662, 0.5419238209724426, -0.07457243651151657, -0.7302018404006958, 0.29777640104293823, -0.009330149739980698, 0.15174509584903717, 0.34502455592155457, -0.0001186112713185139, 0.18453176319599152, 0.3318486213684082, -0.10963703691959381, -0.35170164704322815, 0.05212962254881859, 0.28050342202186584, -0.2414647936820984, 0.3380267024040222, -0.1453838348388672, 0.06273150444030762, -0.31197941303253174, 0.03183189406991005, 0.08127480000257492, 0.6866549849510193, 0.15539661049842834, 0.09210099279880524, 0.1377253383398056, 0.07380591332912445, 0.052365742623806, 0.02077654004096985, 0.06787756830453873, 0.01660388708114624, 0.7200931906700134, 0.5202924609184265, -0.12601275742053986, -0.3388993740081787, -0.07208507508039474, 0.12127211689949036, -0.0382683165371418, 0.20485764741897583, -0.06355616450309753, -0.013848851434886456, -0.18327093124389648, 0.05246517062187195, 0.11702040582895279, 0.2416466921567917, -0.2380601316690445, -0.23284845054149628, -0.21574950218200684, 0.07478687167167664, -0.21810846030712128, 0.37732067704200745, 0.2772291302680969, -0.139860600233078, 0.15234236419200897, -0.056996993720531464, 0.03446073457598686, -0.19189301133155823, 0.029310619458556175, -0.21427370607852936, 0.5192517638206482, 0.12151257693767548, 0.04168425872921944, 0.10512390732765198, -0.16294585168361664, -0.15192624926567078, 0.3172394931316376, -0.2625276446342468, 0.3998277187347412, -0.39082688093185425, -0.16861741244792938, 0.11205310374498367, -0.36265188455581665, 0.21630500257015228, 0.09017730504274368, 0.1800890862941742, 0.16720479726791382, 0.21391239762306213, 0.12037068605422974, 0.4853108823299408, 0.054677315056324005, 0.17183560132980347, 0.20253245532512665, 0.152631014585495, -0.019630158320069313, -0.025974182412028313, 0.23977500200271606, -0.13988180458545685, -0.22500739991664886, -0.21351630985736847, 0.028067776933312416, -0.026821553707122803, -0.10946699976921082, 0.014882948249578476, 0.06951796263456345, -0.31477081775665283, -0.012025627307593822, 0.05098559707403183, 0.08486197888851166, 0.1312868446111679, 0.1926080733537674, -0.25002825260162354, 0.20476123690605164, -0.10145492106676102, -0.17269538342952728, -0.017575178295373917, -0.026820076629519463, -0.30665695667266846, -0.020665643736720085, 0.40547406673431396, -0.12256035208702087, 0.11852136254310608, -0.08124995976686478, -0.11161517351865768, -0.22692188620567322, -0.433472216129303, -0.04389789700508118, 0.007666639517992735, 0.14967356622219086, 0.03168029338121414, -0.07048674672842026, -0.03672363981604576, -0.25811049342155457, -0.18032069504261017, 0.21218964457511902, -0.3511877954006195, -0.28516241908073425, -0.5924192667007446, 0.11839151382446289, -0.322714239358902, -0.005309612490236759, 0.14440187811851501, 0.2050790935754776, 0.05665956065058708, -0.4543267786502838, -0.13778981566429138, -0.08935907483100891, -0.0031522151548415422, -0.22954273223876953, 0.14668263494968414, 0.2523784935474396, -0.8450292944908142, -0.23598171770572662, 0.16683731973171234, -0.0015068523352965713, 0.08309793472290039, 0.5275312662124634, -0.3514188230037689, 0.2732031047344208, -0.15309688448905945, 0.5261089205741882, 0.4013669490814209, -0.27797815203666687, -0.3369089663028717, 0.24279090762138367, -0.39944884181022644, -0.041357316076755524, -0.23726758360862732, -0.0655718445777893, 0.29670530557632446, 0.08233347535133362, 0.34125328063964844, 0.4493865370750427, -0.11555199325084686, 0.14832471311092377, -0.33256515860557556, -0.08049877732992172, 0.17264261841773987, 0.36014044284820557, -0.06741543859243393, -0.16082417964935303, -0.029858894646167755, 0.1449318528175354, 0.40400180220603943, -0.1719319224357605, -0.0207538902759552, 0.1606731116771698, 0.1372901052236557, -0.017320599406957626, 0.16614195704460144, -0.10807980597019196, -0.7758408188819885, 0.10205107182264328, -0.28949281573295593, 0.08079442381858826, -0.04113197699189186, 0.006053206045180559, -0.2767828404903412, -0.11359786242246628, -0.20613150298595428, -0.05402308329939842, 0.03211696445941925, -0.16049450635910034, -0.0348595529794693, -0.06829699128866196, -0.46529421210289, -0.15678761899471283, -0.15475668013095856, 0.37804940342903137, -0.1153782531619072, 0.40393194556236267, -0.13026513159275055, -0.4008335769176483, 0.09279229491949081, 0.3672269880771637, 0.12826143205165863, -0.26726198196411133, -0.006815253756940365, 0.329568088054657, -0.08044800162315369, 0.13387402892112732, -0.17082281410694122, -0.29795461893081665, 0.24760928750038147, -0.08576138317584991, -0.12928423285484314, -0.06358135491609573, -0.10223181545734406, -0.08836493641138077, -0.32466816902160645, 0.3362677991390228, 0.019726209342479706, -0.03263607621192932, -0.056773263961076736, -0.24713647365570068, 0.29812076687812805, -0.08481123298406601, -0.12740357220172882, -0.02829713374376297, 0.01728641986846924, 0.16710714995861053, -0.012494543567299843, 0.17665846645832062, -0.1765214204788208, -0.014474378898739815, 0.36949482560157776, -0.06511888653039932, 0.03556988015770912, 0.18731790781021118, 0.10087178647518158, -0.2918992042541504, -0.02475265972316265, -0.04872290790081024, 0.3634799122810364, -0.007696719840168953, -0.1558918058872223, -0.0039151934906840324, 0.03366728499531746, -0.018401818349957466, -0.01154564693570137, 0.0482458733022213, 0.4226093888282776, 0.5049404501914978, 0.3639852702617645, 0.16840124130249023, -0.2733655273914337, -0.15487322211265564, 0.12762297689914703, 0.05630448833107948, -0.3743777871131897, 0.060217056423425674, -0.2678268849849701, -0.14459271728992462, -0.2930878698825836, -0.1426909863948822, -0.3419748544692993, -0.1941555142402649, 0.10888884216547012, -0.03826402500271797, -0.08678275346755981, 0.2005050629377365, 0.16654546558856964, 0.40008050203323364, 0.10027819126844406, -0.18636783957481384, 0.03814578428864479, -0.1772579550743103, -0.21824167668819427, -0.0453670360147953, 0.3783230483531952, -0.06442906707525253, -0.2067786604166031, -0.18944168090820312, -0.27097487449645996, 0.10979248583316803, -0.4360964596271515, 0.16802921891212463, -0.00915578380227089, 0.19459031522274017, 0.022264938801527023, 0.23686352372169495, -0.14796730875968933, -0.3669349253177643, 0.28148242831230164, -0.046212345361709595, -0.25112801790237427, 0.0004012257559224963, -0.10349578410387039, 0.13379189372062683, -0.2878105938434601, -0.3897336423397064, -0.24531136453151703, -0.2271137833595276, 0.4359024167060852, 0.07529594749212265, 0.1372660994529724, 0.20040766894817352, -0.20206812024116516, 0.014743146486580372, -0.23705972731113434, -0.2110956758260727, 0.04947850480675697, -0.18574701249599457, 0.20523405075073242, -0.2988072633743286, -0.1417257934808731, -0.021901773288846016, 0.09425204247236252, 0.16700436174869537, -0.22435857355594635, -0.16041678190231323, 0.11611869186162949, 0.17135831713676453, 0.24600832164287567, -0.3234412372112274, -0.2597649395465851, 0.25247877836227417, -0.22972996532917023, 0.05242842435836792, 0.19721044600009918, -0.36020970344543457, -0.09371209144592285, 0.5185642838478088, 0.1982492357492447, -0.26570606231689453, 0.23632816970348358, 0.05972122400999069, 0.8267534971237183, -0.13744042813777924, -0.1625378578901291, 0.1258324384689331, 0.03038046509027481, 0.12194909900426865, -0.1489124298095703, -0.03524862602353096, 0.39218831062316895, -0.03979768976569176, -0.1129411831498146, 0.2475959062576294, 0.1624518185853958, -0.542482316493988, -0.005967604927718639, 0.1580977439880371, -0.5473145842552185, -0.16832341253757477, 0.2632974684238434, 0.5551201701164246, -0.08508773148059845, -0.042934201657772064, 0.02945185825228691, 0.002924638567492366, -0.23155124485492706, -0.05983646586537361, 0.2242509424686432, 0.2707135081291199, 0.09323346614837646, -0.5434256196022034, -0.3422013819217682, -0.044759660959243774, -0.020403189584612846, 0.1243698000907898, 0.46455642580986023, -0.0012728822184726596, -0.20624369382858276, 0.027220850810408592, -0.2641843259334564, 0.34766143560409546, 0.26207420229911804, 0.3518282175064087, 0.34914132952690125, 0.32933035492897034, -0.07430154085159302, -0.3046778738498688, 0.1451898217201233, 0.47711265087127686, 0.6556534767150879, 0.419831246137619, -0.10166916996240616, -0.13171075284481049, 0.28487440943717957, 0.08596139401197433, -0.14478111267089844, -0.07338356971740723, -0.22651416063308716, -0.0794777050614357, 0.003026367165148258, 0.03935050591826439, -0.041761238127946854, 0.3973938822746277, 0.0603223592042923, 0.13376061618328094, 0.4236765503883362, -0.26955363154411316, -0.24267500638961792, 0.3894140124320984, 0.10912379622459412, 0.07678156346082687, 0.04680413752794266, 0.26702576875686646, -0.0012031728401780128, 0.33864161372184753, 0.44614577293395996, 0.2894241213798523, -0.20294633507728577, 0.2748584449291229, -0.006987529806792736, 0.2213011085987091, 0.4691964387893677, 0.2012593299150467, -0.18309050798416138, -0.14047065377235413, -0.1271871030330658, 0.023022647947072983, -0.4001842737197876, 0.1378404051065445, -0.3075537085533142, -0.22677825391292572, 0.2155749797821045, 0.20091670751571655, -0.09558365494012833, -0.06338559091091156, -0.028997410088777542, -0.060456618666648865, -0.015703797340393066, 0.5079240798950195, 0.16421639919281006, 0.7734219431877136, -0.04520060122013092, 0.10620619356632233, 0.27133965492248535, -0.11776942014694214, 0.40123239159584045, -0.6511294841766357, 0.36042600870132446, -0.43772241473197937, 0.2696181833744049, 0.12142523378133774, -0.12912042438983917, 0.16803856194019318, 0.18424288928508759, 0.006720331031829119, -0.054778803139925, -0.14762504398822784, 0.2945115268230438, -0.025762459263205528, 0.33889761567115784, 0.17994804680347443, -0.30595409870147705, -0.5036041140556335, 0.06079233065247536, -0.3701074719429016, 0.03455813229084015, -0.14907795190811157, -0.16940264403820038, -0.08521337062120438, -0.12656283378601074, -0.2838003635406494, 0.2769855558872223, 0.1298915147781372, 0.014314512722194195, 0.5128049254417419, -0.2600145637989044, 0.15981556475162506, 0.36441975831985474, -0.1501442939043045, 0.053529176861047745, -0.002932485891506076, 0.3615523874759674, -0.12343038618564606, 0.11176968365907669, 0.22975943982601166, 0.01988394185900688, 0.2879819869995117, -0.16016174852848053, -0.040681611746549606, -0.05039016529917717, -0.07457542419433594, -0.2796953618526459, -0.06919217854738235, 0.3941943347454071, 0.1375088095664978, -0.16564124822616577, 0.012915750965476036, -0.12453930079936981, 0.12291931360960007, -0.049301523715257645, 0.05420316010713577, 0.01064568106085062, -0.14916232228279114, -0.02717488631606102, 0.15864533185958862, -0.06981560587882996, 0.08643700182437897, 0.6089107394218445, -0.10845045000314713, -0.319619745016098, 0.3064621090888977, 0.3026753067970276, 0.005280001554638147, -0.22048050165176392, 0.22126443684101105, 0.05046866834163666, -0.3886026442050934, -0.13762706518173218, -0.19892309606075287, -0.06842467933893204, 0.03468022495508194, 0.10222822427749634, 0.21728667616844177, -0.10179098695516586, 0.0036823165137320757, -0.5508981943130493, -0.3031088709831238, 0.19118665158748627, -0.07676953822374344, -0.1813701093196869, 0.11923134326934814, 0.33894282579421997, 0.01551394909620285, 0.25473833084106445, -0.20348535478115082, 0.32593339681625366, -0.3733079135417938, 0.14416152238845825, -0.5635963082313538, -0.237191841006279, -0.003535408526659012, -0.23051367700099945, 0.018074745312333107, 0.24548934400081635, 0.07344693690538406, -0.10744062811136246, -0.015551659278571606, 0.15939368307590485, 0.13833998143672943, -0.01808522269129753, -0.1694665253162384, -0.0002068050962407142, 0.10750900208950043, 0.1735595464706421, 0.10350010544061661, -0.1377708464860916, 0.1467641144990921, 0.1609327346086502, 0.2953794300556183, 0.10649174451828003, 0.19602863490581512, 0.09358896315097809, 0.029574668034911156, 0.39053875207901, 0.05888175964355469, 0.24129417538642883, -0.20396044850349426, 0.0334324911236763, -0.35546818375587463, 0.18906064331531525, 0.010013969615101814, 0.28048422932624817, 0.0838274359703064, -0.5798286199569702, -0.05440281331539154, -0.07205204665660858, 0.30135810375213623, 0.5721238851547241, -0.3665151298046112, 0.11240680515766144, 0.18876999616622925, 0.1041741818189621, -0.009935306385159492, -0.25940850377082825, 0.7478207945823669, -0.03566416725516319, -0.30246230959892273, 0.01803569868206978, 0.14284643530845642, -0.09839767217636108, 0.13151952624320984, 0.13897192478179932, 0.5670437812805176, 0.19193635880947113, 0.19833432137966156, 0.21702058613300323, -0.22543494403362274, -0.02375098690390587, 0.139786034822464, -0.07899994403123856, 0.18169616162776947, 0.2541319727897644, -0.19390442967414856, 0.0633174479007721, 0.1178165152668953, 0.10370773822069168, 0.23294991254806519, -0.34134358167648315, -0.3557490110397339, 0.09975080192089081, 0.13790349662303925, 0.010600777342915535, 0.1785009205341339, 0.8641579747200012, -0.190843403339386, -0.4217529892921448, -0.0853034034371376, 0.08790239691734314, -0.3081800937652588, 0.08736199885606766, -0.4969726800918579, -0.17893050611019135, -0.04054311290383339, 0.15436413884162903, -0.30171290040016174, -0.032923512160778046, 0.0855989158153534, 0.03904788941144943, -0.27453160285949707, -0.1928049772977829, -0.04141808673739433, -0.21421578526496887, 0.06560984998941422, -0.07529892772436142, 0.3355390429496765, -0.13620981574058533, 0.04288027063012123, 0.24395443499088287, -0.020816996693611145, 0.32823580503463745, 0.3369995355606079, -0.19198912382125854, -0.12645483016967773, -0.2578287422657013, 0.021680934354662895, 0.07443070411682129, 0.10279082506895065, 0.21466556191444397, -0.13024812936782837, 0.2761431634426117, 0.11681997776031494, -0.0468781515955925, 0.13497239351272583, 0.27688345313072205, 0.1607481688261032, 0.09730912744998932, -0.08710534125566483, -0.1949213147163391, -0.24817897379398346, -0.06770200282335281, -0.12639345228672028, 0.03383185714483261, -0.12264174968004227, -0.15556928515434265, 0.501294732093811, 0.11771088093519211, -0.06306383013725281, 0.0850425660610199, 0.10833180695772171, 0.5546953082084656, 0.22261491417884827, -0.36151158809661865, -0.09784559905529022, -0.20268034934997559, -0.2905750870704651, 0.24300579726696014, -0.044860124588012695, 0.07140302658081055, 0.30169954895973206, 0.44031164050102234, -0.14588260650634766, 0.28476831316947937, -0.23703455924987793, -0.0482022687792778, 0.0044927350245416164, 0.2456320971250534, -0.429110586643219, 0.17971694469451904, 0.056648656725883484, 0.14541077613830566, -0.10592126101255417, -0.13402153551578522, 0.26651471853256226, -0.20236138999462128, -0.08586063235998154, 0.03507007658481598, -0.42770856618881226, -0.020691417157649994, 0.04247954860329628, 0.2701975405216217, -0.08202502876520157, 0.33262619376182556, 0.16767990589141846, -0.3741495609283447, -0.4167827069759369, -0.41914963722229004, -0.17610280215740204, 0.1557713747024536, -0.12762397527694702, 0.42383524775505066, -0.027194196358323097, 0.20401416718959808, -0.3149230182170868, -0.0030216865707188845, -0.3587972819805145, 0.34534406661987305, -0.3175050616264343, 0.08617512136697769, 0.08611227571964264, 0.1618039906024933, 0.008849996142089367, 0.3273940086364746, -0.0774756371974945, 0.24947808682918549, -0.5126637816429138, -0.2689226269721985, 0.4422738254070282, -0.6223309636116028, -0.20025953650474548, 0.06876861304044724, 0.0811639353632927, 0.198111429810524, 0.003574732458218932, -0.27756619453430176, -0.07046038657426834, 0.16162073612213135, -0.17459331452846527, -0.2950670123100281, -0.13570983707904816, -0.26254481077194214, -0.25517743825912476, -0.07695828378200531, -0.35992759466171265, 0.18377885222434998, -0.04530983045697212, -0.22119101881980896, -0.23303289711475372 ]
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.017292257398366928, 0.2893960773944855, 0.06094161421060562, 0.057870395481586456, 0.22360970079898834, -0.016548527404665947, 0.32003894448280334, 0.6101840734481812, -0.40100985765457153, -0.21304266154766083, -0.2422538846731186, 0.7714078426361084, 0.13278771936893463, -0.42659619450569153, 0.1489231139421463, -0.07152768969535828, 0.046225838363170624, 0.12672977149486542, 0.22394156455993652, 0.0536700002849102, -0.1744496375322342, 0.3416512608528137, -0.22996866703033447, 0.13204170763492584, -0.16675138473510742, 0.2660643756389618, 0.006536424160003662, 0.5419238209724426, -0.07457243651151657, -0.7302018404006958, 0.29777640104293823, -0.009330149739980698, 0.15174509584903717, 0.34502455592155457, -0.0001186112713185139, 0.18453176319599152, 0.3318486213684082, -0.10963703691959381, -0.35170164704322815, 0.05212962254881859, 0.28050342202186584, -0.2414647936820984, 0.3380267024040222, -0.1453838348388672, 0.06273150444030762, -0.31197941303253174, 0.03183189406991005, 0.08127480000257492, 0.6866549849510193, 0.15539661049842834, 0.09210099279880524, 0.1377253383398056, 0.07380591332912445, 0.052365742623806, 0.02077654004096985, 0.06787756830453873, 0.01660388708114624, 0.7200931906700134, 0.5202924609184265, -0.12601275742053986, -0.3388993740081787, -0.07208507508039474, 0.12127211689949036, -0.0382683165371418, 0.20485764741897583, -0.06355616450309753, -0.013848851434886456, -0.18327093124389648, 0.05246517062187195, 0.11702040582895279, 0.2416466921567917, -0.2380601316690445, -0.23284845054149628, -0.21574950218200684, 0.07478687167167664, -0.21810846030712128, 0.37732067704200745, 0.2772291302680969, -0.139860600233078, 0.15234236419200897, -0.056996993720531464, 0.03446073457598686, -0.19189301133155823, 0.029310619458556175, -0.21427370607852936, 0.5192517638206482, 0.12151257693767548, 0.04168425872921944, 0.10512390732765198, -0.16294585168361664, -0.15192624926567078, 0.3172394931316376, -0.2625276446342468, 0.3998277187347412, -0.39082688093185425, -0.16861741244792938, 0.11205310374498367, -0.36265188455581665, 0.21630500257015228, 0.09017730504274368, 0.1800890862941742, 0.16720479726791382, 0.21391239762306213, 0.12037068605422974, 0.4853108823299408, 0.054677315056324005, 0.17183560132980347, 0.20253245532512665, 0.152631014585495, -0.019630158320069313, -0.025974182412028313, 0.23977500200271606, -0.13988180458545685, -0.22500739991664886, -0.21351630985736847, 0.028067776933312416, -0.026821553707122803, -0.10946699976921082, 0.014882948249578476, 0.06951796263456345, -0.31477081775665283, -0.012025627307593822, 0.05098559707403183, 0.08486197888851166, 0.1312868446111679, 0.1926080733537674, -0.25002825260162354, 0.20476123690605164, -0.10145492106676102, -0.17269538342952728, -0.017575178295373917, -0.026820076629519463, -0.30665695667266846, -0.020665643736720085, 0.40547406673431396, -0.12256035208702087, 0.11852136254310608, -0.08124995976686478, -0.11161517351865768, -0.22692188620567322, -0.433472216129303, -0.04389789700508118, 0.007666639517992735, 0.14967356622219086, 0.03168029338121414, -0.07048674672842026, -0.03672363981604576, -0.25811049342155457, -0.18032069504261017, 0.21218964457511902, -0.3511877954006195, -0.28516241908073425, -0.5924192667007446, 0.11839151382446289, -0.322714239358902, -0.005309612490236759, 0.14440187811851501, 0.2050790935754776, 0.05665956065058708, -0.4543267786502838, -0.13778981566429138, -0.08935907483100891, -0.0031522151548415422, -0.22954273223876953, 0.14668263494968414, 0.2523784935474396, -0.8450292944908142, -0.23598171770572662, 0.16683731973171234, -0.0015068523352965713, 0.08309793472290039, 0.5275312662124634, -0.3514188230037689, 0.2732031047344208, -0.15309688448905945, 0.5261089205741882, 0.4013669490814209, -0.27797815203666687, -0.3369089663028717, 0.24279090762138367, -0.39944884181022644, -0.041357316076755524, -0.23726758360862732, -0.0655718445777893, 0.29670530557632446, 0.08233347535133362, 0.34125328063964844, 0.4493865370750427, -0.11555199325084686, 0.14832471311092377, -0.33256515860557556, -0.08049877732992172, 0.17264261841773987, 0.36014044284820557, -0.06741543859243393, -0.16082417964935303, -0.029858894646167755, 0.1449318528175354, 0.40400180220603943, -0.1719319224357605, -0.0207538902759552, 0.1606731116771698, 0.1372901052236557, -0.017320599406957626, 0.16614195704460144, -0.10807980597019196, -0.7758408188819885, 0.10205107182264328, -0.28949281573295593, 0.08079442381858826, -0.04113197699189186, 0.006053206045180559, -0.2767828404903412, -0.11359786242246628, -0.20613150298595428, -0.05402308329939842, 0.03211696445941925, -0.16049450635910034, -0.0348595529794693, -0.06829699128866196, -0.46529421210289, -0.15678761899471283, -0.15475668013095856, 0.37804940342903137, -0.1153782531619072, 0.40393194556236267, -0.13026513159275055, -0.4008335769176483, 0.09279229491949081, 0.3672269880771637, 0.12826143205165863, -0.26726198196411133, -0.006815253756940365, 0.329568088054657, -0.08044800162315369, 0.13387402892112732, -0.17082281410694122, -0.29795461893081665, 0.24760928750038147, -0.08576138317584991, -0.12928423285484314, -0.06358135491609573, -0.10223181545734406, -0.08836493641138077, -0.32466816902160645, 0.3362677991390228, 0.019726209342479706, -0.03263607621192932, -0.056773263961076736, -0.24713647365570068, 0.29812076687812805, -0.08481123298406601, -0.12740357220172882, -0.02829713374376297, 0.01728641986846924, 0.16710714995861053, -0.012494543567299843, 0.17665846645832062, -0.1765214204788208, -0.014474378898739815, 0.36949482560157776, -0.06511888653039932, 0.03556988015770912, 0.18731790781021118, 0.10087178647518158, -0.2918992042541504, -0.02475265972316265, -0.04872290790081024, 0.3634799122810364, -0.007696719840168953, -0.1558918058872223, -0.0039151934906840324, 0.03366728499531746, -0.018401818349957466, -0.01154564693570137, 0.0482458733022213, 0.4226093888282776, 0.5049404501914978, 0.3639852702617645, 0.16840124130249023, -0.2733655273914337, -0.15487322211265564, 0.12762297689914703, 0.05630448833107948, -0.3743777871131897, 0.060217056423425674, -0.2678268849849701, -0.14459271728992462, -0.2930878698825836, -0.1426909863948822, -0.3419748544692993, -0.1941555142402649, 0.10888884216547012, -0.03826402500271797, -0.08678275346755981, 0.2005050629377365, 0.16654546558856964, 0.40008050203323364, 0.10027819126844406, -0.18636783957481384, 0.03814578428864479, -0.1772579550743103, -0.21824167668819427, -0.0453670360147953, 0.3783230483531952, -0.06442906707525253, -0.2067786604166031, -0.18944168090820312, -0.27097487449645996, 0.10979248583316803, -0.4360964596271515, 0.16802921891212463, -0.00915578380227089, 0.19459031522274017, 0.022264938801527023, 0.23686352372169495, -0.14796730875968933, -0.3669349253177643, 0.28148242831230164, -0.046212345361709595, -0.25112801790237427, 0.0004012257559224963, -0.10349578410387039, 0.13379189372062683, -0.2878105938434601, -0.3897336423397064, -0.24531136453151703, -0.2271137833595276, 0.4359024167060852, 0.07529594749212265, 0.1372660994529724, 0.20040766894817352, -0.20206812024116516, 0.014743146486580372, -0.23705972731113434, -0.2110956758260727, 0.04947850480675697, -0.18574701249599457, 0.20523405075073242, -0.2988072633743286, -0.1417257934808731, -0.021901773288846016, 0.09425204247236252, 0.16700436174869537, -0.22435857355594635, -0.16041678190231323, 0.11611869186162949, 0.17135831713676453, 0.24600832164287567, -0.3234412372112274, -0.2597649395465851, 0.25247877836227417, -0.22972996532917023, 0.05242842435836792, 0.19721044600009918, -0.36020970344543457, -0.09371209144592285, 0.5185642838478088, 0.1982492357492447, -0.26570606231689453, 0.23632816970348358, 0.05972122400999069, 0.8267534971237183, -0.13744042813777924, -0.1625378578901291, 0.1258324384689331, 0.03038046509027481, 0.12194909900426865, -0.1489124298095703, -0.03524862602353096, 0.39218831062316895, -0.03979768976569176, -0.1129411831498146, 0.2475959062576294, 0.1624518185853958, -0.542482316493988, -0.005967604927718639, 0.1580977439880371, -0.5473145842552185, -0.16832341253757477, 0.2632974684238434, 0.5551201701164246, -0.08508773148059845, -0.042934201657772064, 0.02945185825228691, 0.002924638567492366, -0.23155124485492706, -0.05983646586537361, 0.2242509424686432, 0.2707135081291199, 0.09323346614837646, -0.5434256196022034, -0.3422013819217682, -0.044759660959243774, -0.020403189584612846, 0.1243698000907898, 0.46455642580986023, -0.0012728822184726596, -0.20624369382858276, 0.027220850810408592, -0.2641843259334564, 0.34766143560409546, 0.26207420229911804, 0.3518282175064087, 0.34914132952690125, 0.32933035492897034, -0.07430154085159302, -0.3046778738498688, 0.1451898217201233, 0.47711265087127686, 0.6556534767150879, 0.419831246137619, -0.10166916996240616, -0.13171075284481049, 0.28487440943717957, 0.08596139401197433, -0.14478111267089844, -0.07338356971740723, -0.22651416063308716, -0.0794777050614357, 0.003026367165148258, 0.03935050591826439, -0.041761238127946854, 0.3973938822746277, 0.0603223592042923, 0.13376061618328094, 0.4236765503883362, -0.26955363154411316, -0.24267500638961792, 0.3894140124320984, 0.10912379622459412, 0.07678156346082687, 0.04680413752794266, 0.26702576875686646, -0.0012031728401780128, 0.33864161372184753, 0.44614577293395996, 0.2894241213798523, -0.20294633507728577, 0.2748584449291229, -0.006987529806792736, 0.2213011085987091, 0.4691964387893677, 0.2012593299150467, -0.18309050798416138, -0.14047065377235413, -0.1271871030330658, 0.023022647947072983, -0.4001842737197876, 0.1378404051065445, -0.3075537085533142, -0.22677825391292572, 0.2155749797821045, 0.20091670751571655, -0.09558365494012833, -0.06338559091091156, -0.028997410088777542, -0.060456618666648865, -0.015703797340393066, 0.5079240798950195, 0.16421639919281006, 0.7734219431877136, -0.04520060122013092, 0.10620619356632233, 0.27133965492248535, -0.11776942014694214, 0.40123239159584045, -0.6511294841766357, 0.36042600870132446, -0.43772241473197937, 0.2696181833744049, 0.12142523378133774, -0.12912042438983917, 0.16803856194019318, 0.18424288928508759, 0.006720331031829119, -0.054778803139925, -0.14762504398822784, 0.2945115268230438, -0.025762459263205528, 0.33889761567115784, 0.17994804680347443, -0.30595409870147705, -0.5036041140556335, 0.06079233065247536, -0.3701074719429016, 0.03455813229084015, -0.14907795190811157, -0.16940264403820038, -0.08521337062120438, -0.12656283378601074, -0.2838003635406494, 0.2769855558872223, 0.1298915147781372, 0.014314512722194195, 0.5128049254417419, -0.2600145637989044, 0.15981556475162506, 0.36441975831985474, -0.1501442939043045, 0.053529176861047745, -0.002932485891506076, 0.3615523874759674, -0.12343038618564606, 0.11176968365907669, 0.22975943982601166, 0.01988394185900688, 0.2879819869995117, -0.16016174852848053, -0.040681611746549606, -0.05039016529917717, -0.07457542419433594, -0.2796953618526459, -0.06919217854738235, 0.3941943347454071, 0.1375088095664978, -0.16564124822616577, 0.012915750965476036, -0.12453930079936981, 0.12291931360960007, -0.049301523715257645, 0.05420316010713577, 0.01064568106085062, -0.14916232228279114, -0.02717488631606102, 0.15864533185958862, -0.06981560587882996, 0.08643700182437897, 0.6089107394218445, -0.10845045000314713, -0.319619745016098, 0.3064621090888977, 0.3026753067970276, 0.005280001554638147, -0.22048050165176392, 0.22126443684101105, 0.05046866834163666, -0.3886026442050934, -0.13762706518173218, -0.19892309606075287, -0.06842467933893204, 0.03468022495508194, 0.10222822427749634, 0.21728667616844177, -0.10179098695516586, 0.0036823165137320757, -0.5508981943130493, -0.3031088709831238, 0.19118665158748627, -0.07676953822374344, -0.1813701093196869, 0.11923134326934814, 0.33894282579421997, 0.01551394909620285, 0.25473833084106445, -0.20348535478115082, 0.32593339681625366, -0.3733079135417938, 0.14416152238845825, -0.5635963082313538, -0.237191841006279, -0.003535408526659012, -0.23051367700099945, 0.018074745312333107, 0.24548934400081635, 0.07344693690538406, -0.10744062811136246, -0.015551659278571606, 0.15939368307590485, 0.13833998143672943, -0.01808522269129753, -0.1694665253162384, -0.0002068050962407142, 0.10750900208950043, 0.1735595464706421, 0.10350010544061661, -0.1377708464860916, 0.1467641144990921, 0.1609327346086502, 0.2953794300556183, 0.10649174451828003, 0.19602863490581512, 0.09358896315097809, 0.029574668034911156, 0.39053875207901, 0.05888175964355469, 0.24129417538642883, -0.20396044850349426, 0.0334324911236763, -0.35546818375587463, 0.18906064331531525, 0.010013969615101814, 0.28048422932624817, 0.0838274359703064, -0.5798286199569702, -0.05440281331539154, -0.07205204665660858, 0.30135810375213623, 0.5721238851547241, -0.3665151298046112, 0.11240680515766144, 0.18876999616622925, 0.1041741818189621, -0.009935306385159492, -0.25940850377082825, 0.7478207945823669, -0.03566416725516319, -0.30246230959892273, 0.01803569868206978, 0.14284643530845642, -0.09839767217636108, 0.13151952624320984, 0.13897192478179932, 0.5670437812805176, 0.19193635880947113, 0.19833432137966156, 0.21702058613300323, -0.22543494403362274, -0.02375098690390587, 0.139786034822464, -0.07899994403123856, 0.18169616162776947, 0.2541319727897644, -0.19390442967414856, 0.0633174479007721, 0.1178165152668953, 0.10370773822069168, 0.23294991254806519, -0.34134358167648315, -0.3557490110397339, 0.09975080192089081, 0.13790349662303925, 0.010600777342915535, 0.1785009205341339, 0.8641579747200012, -0.190843403339386, -0.4217529892921448, -0.0853034034371376, 0.08790239691734314, -0.3081800937652588, 0.08736199885606766, -0.4969726800918579, -0.17893050611019135, -0.04054311290383339, 0.15436413884162903, -0.30171290040016174, -0.032923512160778046, 0.0855989158153534, 0.03904788941144943, -0.27453160285949707, -0.1928049772977829, -0.04141808673739433, -0.21421578526496887, 0.06560984998941422, -0.07529892772436142, 0.3355390429496765, -0.13620981574058533, 0.04288027063012123, 0.24395443499088287, -0.020816996693611145, 0.32823580503463745, 0.3369995355606079, -0.19198912382125854, -0.12645483016967773, -0.2578287422657013, 0.021680934354662895, 0.07443070411682129, 0.10279082506895065, 0.21466556191444397, -0.13024812936782837, 0.2761431634426117, 0.11681997776031494, -0.0468781515955925, 0.13497239351272583, 0.27688345313072205, 0.1607481688261032, 0.09730912744998932, -0.08710534125566483, -0.1949213147163391, -0.24817897379398346, -0.06770200282335281, -0.12639345228672028, 0.03383185714483261, -0.12264174968004227, -0.15556928515434265, 0.501294732093811, 0.11771088093519211, -0.06306383013725281, 0.0850425660610199, 0.10833180695772171, 0.5546953082084656, 0.22261491417884827, -0.36151158809661865, -0.09784559905529022, -0.20268034934997559, -0.2905750870704651, 0.24300579726696014, -0.044860124588012695, 0.07140302658081055, 0.30169954895973206, 0.44031164050102234, -0.14588260650634766, 0.28476831316947937, -0.23703455924987793, -0.0482022687792778, 0.0044927350245416164, 0.2456320971250534, -0.429110586643219, 0.17971694469451904, 0.056648656725883484, 0.14541077613830566, -0.10592126101255417, -0.13402153551578522, 0.26651471853256226, -0.20236138999462128, -0.08586063235998154, 0.03507007658481598, -0.42770856618881226, -0.020691417157649994, 0.04247954860329628, 0.2701975405216217, -0.08202502876520157, 0.33262619376182556, 0.16767990589141846, -0.3741495609283447, -0.4167827069759369, -0.41914963722229004, -0.17610280215740204, 0.1557713747024536, -0.12762397527694702, 0.42383524775505066, -0.027194196358323097, 0.20401416718959808, -0.3149230182170868, -0.0030216865707188845, -0.3587972819805145, 0.34534406661987305, -0.3175050616264343, 0.08617512136697769, 0.08611227571964264, 0.1618039906024933, 0.008849996142089367, 0.3273940086364746, -0.0774756371974945, 0.24947808682918549, -0.5126637816429138, -0.2689226269721985, 0.4422738254070282, -0.6223309636116028, -0.20025953650474548, 0.06876861304044724, 0.0811639353632927, 0.198111429810524, 0.003574732458218932, -0.27756619453430176, -0.07046038657426834, 0.16162073612213135, -0.17459331452846527, -0.2950670123100281, -0.13570983707904816, -0.26254481077194214, -0.25517743825912476, -0.07695828378200531, -0.35992759466171265, 0.18377885222434998, -0.04530983045697212, -0.22119101881980896, -0.23303289711475372 ]
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.22482463717460632, 0.20798172056674957, 0.013098775409162045, 0.13777872920036316, 0.2781038284301758, -0.25971925258636475, 0.31692245602607727, 0.46876847743988037, -0.16914048790931702, -0.14901088178157806, 0.0023772921413183212, 0.42034175992012024, 0.06907202303409576, -0.017227977514266968, 0.1122412458062172, -0.14781977236270905, -0.2049248218536377, 0.2665921151638031, -0.005143813788890839, -0.06588060408830643, 0.0004074999305885285, 0.24116100370883942, -0.13989916443824768, 0.2639465928077698, -0.19671648740768433, -0.013389184139668941, 0.18712909519672394, 0.48918476700782776, -0.2591637372970581, -0.5631481409072876, 0.31532204151153564, -0.2961506247520447, 0.09546303004026413, 0.11060100793838501, -0.00011665561760310084, 0.3696364462375641, 0.1890551596879959, -0.016439011320471764, -0.37574097514152527, -0.3551531136035919, 0.24148845672607422, -0.4904561936855316, 0.46868187189102173, -0.11423562467098236, -0.07642442733049393, -0.35081472992897034, -0.22236116230487823, -0.07387330383062363, 0.48033490777015686, 0.11952219903469086, 0.15140454471111298, 0.4681631624698639, -0.18323871493339539, 0.10652288794517517, 0.11930876225233078, 0.12603242695331573, -0.16245707869529724, 0.46101051568984985, 0.375977098941803, -0.34501776099205017, -0.3874121308326721, -0.14356034994125366, -0.1003539189696312, 0.3243617117404938, 0.19294586777687073, 0.009374456480145454, -0.03912440687417984, 0.1259254813194275, 0.12546111643314362, 0.1766231507062912, 0.3256264626979828, -0.3496563136577606, -0.06322584301233292, -0.07454495877027512, 0.062253013253211975, -0.029538791626691818, 0.18109405040740967, 0.3203277587890625, -0.34672078490257263, 0.12482360005378723, -0.306050568819046, 0.19640561938285828, -0.10670442134141922, 0.30124786496162415, -0.19134439527988434, 0.3296270966529846, 0.06280551105737686, 0.2973686456680298, 0.10613811016082764, 0.14810577034950256, 0.16313967108726501, 0.21270999312400818, -0.03438941389322281, 0.21243295073509216, -0.2666904628276825, 0.22800904512405396, 0.10138711333274841, -0.17231960594654083, 0.23792563378810883, 0.10137304663658142, 0.24167965352535248, 0.042447689920663834, 0.2140953093767166, 0.2787177860736847, 0.3740188181400299, -0.014348558150231838, 0.1454511284828186, 0.07650095224380493, -0.017595386132597923, 0.027480348944664, -0.10416039079427719, 0.12155237793922424, -0.19911906123161316, -0.3780224323272705, 0.032498788088560104, -0.19245782494544983, 0.27498865127563477, -0.18713343143463135, -0.2933090925216675, 0.09409532696008682, -0.49356400966644287, -0.06081100553274155, 0.12270767241716385, 0.27679020166397095, 0.2118472307920456, 0.22857403755187988, -0.10521138459444046, 0.21644388139247894, -0.09289576858282089, -0.17121672630310059, -0.20248623192310333, 0.05922947824001312, -0.31990885734558105, -0.1551755666732788, 0.40509775280952454, -0.24703489243984222, 0.24933883547782898, -0.013081647455692291, 0.18185004591941833, 0.009779596701264381, 0.17168612778186798, 0.0250098779797554, 0.21658293902873993, 0.17607749998569489, 0.018110893666744232, 0.09828502684831619, 0.17131495475769043, -0.23047514259815216, -0.35458043217658997, 0.32592645287513733, 0.02536146342754364, -0.3207991123199463, -0.3150310516357422, 0.09863745421171188, -0.15784093737602234, 0.09825897961854935, 0.17552246153354645, 0.05404781922698021, 0.10672803223133087, -0.1062409058213234, 0.09626539796590805, -0.11802683770656586, -0.07118937373161316, -0.29820144176483154, 0.3827487826347351, 0.28991544246673584, -0.9532225728034973, -0.11767958104610443, 0.1975104659795761, -0.0724644660949707, 0.09692856669425964, 0.5727161169052124, -0.5708691477775574, 0.18338462710380554, -0.056012220680713654, 0.23903797566890717, 0.579934298992157, -0.3536815047264099, -0.5187262296676636, 0.49498850107192993, -0.38326266407966614, -0.16501645743846893, -0.14250950515270233, -0.04130104184150696, -0.021062085404992104, 0.2826715111732483, 0.0945461243391037, 0.683675229549408, -0.13772442936897278, 0.18467490375041962, -0.33096519112586975, -0.16554905474185944, 0.23167598247528076, 0.4529772698879242, 0.002409010659903288, -0.3553718626499176, 0.015314661897718906, 0.10481975972652435, 0.07430580258369446, -0.004173561930656433, 0.268313467502594, 0.22353121638298035, -0.1914622038602829, -0.251615047454834, 0.08032140135765076, -0.01260074321180582, -0.7056604623794556, 0.08932006359100342, -0.06401319056749344, -0.03998029604554176, -0.21934394538402557, 0.027673231437802315, -0.38935890793800354, 0.29254138469696045, -0.14461427927017212, -0.006223238073289394, 0.04182664677500725, -0.010541439056396484, 0.06708535552024841, -0.09036576747894287, -0.34029313921928406, -0.14903363585472107, 0.0774708241224289, -0.0015935450792312622, 0.05144388973712921, 0.41176638007164, -0.012965702451765537, -0.2781398296356201, 0.0033559086732566357, 0.35500529408454895, -0.017328035086393356, -0.12722274661064148, -0.10794588178396225, 0.2835782766342163, -0.12930546700954437, 0.12034966051578522, -0.004045609384775162, -0.3351644277572632, 0.22039447724819183, -0.30956748127937317, 0.16773472726345062, -0.02052980288863182, -0.04473424330353737, -0.12870433926582336, -0.22015486657619476, 0.40326738357543945, -0.1909843385219574, 0.19561174511909485, -0.08545786142349243, -0.14809249341487885, 0.21472173929214478, -0.12402611970901489, -0.058636732399463654, 0.009711271151900291, 0.1784369796514511, 0.26569312810897827, 0.5207039713859558, 0.270675390958786, -0.2427757829427719, 0.0891447514295578, 0.3627479374408722, -0.037122488021850586, -0.04015796631574631, 0.04382900521159172, -0.22232773900032043, -0.1289467066526413, 0.10810697078704834, -0.1066061332821846, 0.18685942888259888, 0.1889304667711258, 0.0756320059299469, -0.13921533524990082, -0.2522186040878296, -0.21511244773864746, -0.031914155930280685, -0.043620988726615906, 0.13008426129817963, 0.40387386083602905, 0.44856446981430054, -0.13823474943637848, -0.41005486249923706, -0.07384496182203293, 0.23459075391292572, 0.24506984651088715, -0.24432401359081268, 0.03739277645945549, -0.31477317214012146, -0.04993832856416702, -0.1750921756029129, -0.4401918351650238, -0.2645353376865387, -0.19996783137321472, -0.05510927736759186, 0.231073796749115, 0.013169948011636734, 0.13738186657428741, -0.011633963324129581, 0.24568232893943787, 0.10087312012910843, -0.4298434257507324, -0.01199668925255537, -0.5101563930511475, -0.36952731013298035, 0.032828956842422485, 0.46733346581459045, 0.4385599195957184, 0.17867691814899445, 0.18146103620529175, -0.07011382281780243, 0.009079991839826107, -0.09918089956045151, 0.21156059205532074, 0.030458569526672363, 0.17554256319999695, 0.0036325869150459766, 0.33442676067352295, -0.4671185612678528, -0.31139567494392395, 0.6026248931884766, -0.09136661887168884, -0.27217528223991394, 0.19935055077075958, -0.3250698447227478, -0.1124730184674263, -0.20696263015270233, -0.1498919129371643, -0.29042625427246094, -0.3914504647254944, 0.33656150102615356, -0.010899829678237438, 0.035600002855062485, -0.1289467066526413, 0.13384385406970978, 0.28383708000183105, 0.09498470276594162, -0.21167387068271637, -0.03837528079748154, -0.45203107595443726, 0.2738105058670044, -0.11524246633052826, -0.26948246359825134, -0.07102856785058975, 0.0409652516245842, 0.2816607356071472, 0.06277608871459961, -0.34811729192733765, 0.002461649477481842, 0.07311691343784332, 0.534430205821991, -0.19076436758041382, -0.18764738738536835, 0.3679307699203491, -0.05793074145913124, 0.022689417004585266, 0.07160288840532303, -0.25260815024375916, 0.182291641831398, 0.043950214982032776, 0.033740587532520294, -0.17550484836101532, 0.41759809851646423, 0.10207410156726837, 0.9232448935508728, -0.26433730125427246, -0.15056656301021576, 0.3155283033847809, -0.024692058563232422, 0.08685725182294846, -0.12689615786075592, -0.30847686529159546, 0.16493059694766998, 0.07749632000923157, -0.07690264284610748, 0.10230167210102081, 0.060370344668626785, -0.3845147490501404, -0.04491414129734039, -0.021451599895954132, -0.27463531494140625, -0.09941583126783371, 0.35856014490127563, 0.1034403070807457, -0.10839033126831055, -0.010701159946620464, -0.0802660584449768, -0.1179673820734024, -0.19185182452201843, -0.11345338821411133, 0.033390384167432785, -0.031799159944057465, 0.18775852024555206, -0.4592278301715851, -0.11704100668430328, -0.08757607638835907, -0.06833527237176895, 0.36282220482826233, 0.3158777952194214, -0.01478231605142355, -0.1853872537612915, 0.34088602662086487, -0.3085048496723175, 0.5129212141036987, 0.23422932624816895, 0.19255989789962769, 0.28695961833000183, 0.07059375196695328, -0.6148581504821777, -0.15415216982364655, 0.12002401798963547, 0.41197219491004944, 0.44492241740226746, 0.3248271644115448, -0.10015186667442322, -0.3170759081840515, 0.12564973533153534, 0.1735464483499527, -0.03309982270002365, -0.20279212296009064, -0.3746904134750366, -0.30732280015945435, -0.44363120198249817, 0.08175469934940338, 0.023821981623768806, 0.2499193549156189, 0.4211021661758423, -0.08072619140148163, 0.28934580087661743, -0.106065534055233, -0.27227267622947693, 0.24798311293125153, 0.14614078402519226, -0.06335408985614777, 0.07268153131008148, 0.2435627281665802, 0.34558528661727905, 0.0976913720369339, 0.6214665174484253, 0.18695369362831116, -0.09888367354869843, 0.14821535348892212, 0.23100200295448303, 0.30086666345596313, 0.29505619406700134, 0.1793147474527359, -0.05730472132563591, -0.11760623753070831, -0.016650816425681114, 0.1620849370956421, 0.17810013890266418, 0.040149785578250885, -0.2675120234489441, 0.10960572957992554, 0.18654315173625946, 0.28918516635894775, -0.27394017577171326, 0.1674659103155136, 0.529927670955658, -0.05235166475176811, 0.06925453245639801, 0.40746715664863586, 0.11665714532136917, 0.7771917581558228, -0.2644699513912201, 0.14792956411838531, 0.5714970827102661, -0.2305464744567871, 0.31642916798591614, -0.2754615843296051, 0.005959261208772659, -0.518885612487793, 0.25294065475463867, 0.08499057590961456, -0.23986132442951202, -0.009612918831408024, 0.3080279529094696, 0.09509199112653732, -0.14094185829162598, -0.10818440467119217, 0.3453782796859741, -0.00262119947001338, 0.2207462638616562, 0.05085034295916557, -0.2714330852031708, -0.29267820715904236, 0.035343095660209656, -0.3116568326950073, -0.04296792671084404, -0.06491164118051529, -0.1619158387184143, -0.09690705686807632, -0.10017950087785721, -0.15647180378437042, 0.40746545791625977, -0.055670708417892456, 0.24109651148319244, 0.3928500711917877, -0.41134873032569885, -0.08382789045572281, 0.047286584973335266, -0.022364087402820587, -0.18439912796020508, -0.18511052429676056, 0.24539940059185028, 0.0351632796227932, -0.08717416226863861, -0.007609358057379723, 0.12672586739063263, 0.21115876734256744, -0.19058328866958618, -0.31528639793395996, -0.009710744023323059, -0.11076049506664276, -0.3773858845233917, 0.009842028841376305, 0.2698493003845215, 0.10937424004077911, -0.07063639909029007, -0.21267905831336975, -0.1799737811088562, 0.16430744528770447, 0.028388066217303276, 0.05987934023141861, -0.027029482647776604, 0.15624041855335236, -0.25327903032302856, 0.32926636934280396, -0.36074045300483704, 0.04626194387674332, 0.49632057547569275, -0.10143334418535233, 0.16405323147773743, 0.5222313404083252, 0.39581233263015747, -0.10784561932086945, -0.23447692394256592, -0.04178299754858017, 0.5676162838935852, -0.48135995864868164, -0.08085284382104874, -0.06544370204210281, -0.09233181923627853, 0.12456197291612625, 0.2647164762020111, 0.33031484484672546, 0.00910777784883976, -0.09378799796104431, -0.513270914554596, -0.35239890217781067, 0.21944431960582733, -0.11409571021795273, -0.09980665147304535, 0.2764379680156708, 0.5523681044578552, 0.11982123553752899, 0.34576812386512756, -0.22479145228862762, 0.19646692276000977, -0.07673849165439606, 0.1733502894639969, -0.29373401403427124, -0.2949867844581604, 0.06170985475182533, -0.049116432666778564, 0.04363144934177399, 0.07558152079582214, -0.1114882081747055, -0.21604786813259125, -0.054255612194538116, 0.10995723307132721, 0.11589140444993973, -0.15387895703315735, -0.19242210686206818, -0.1486532986164093, 0.03360907733440399, -0.03417697921395302, -0.011412829160690308, -0.03168417513370514, -0.0636330395936966, 0.00923883356153965, 0.13757328689098358, -0.04955848306417465, -0.14321622252464294, 0.02380671724677086, -0.02512357570230961, 0.051309164613485336, 0.04362322762608528, 0.24763521552085876, 0.027966449037194252, -0.01728120632469654, -0.23150692880153656, 0.06548161059617996, 0.24107962846755981, 0.18614783883094788, 0.2242749184370041, -0.2875193655490875, -0.13635091483592987, -0.1797349750995636, 0.18124821782112122, 0.3907138407230377, -0.14776873588562012, -0.005762808490544558, 0.017055131494998932, 0.1338837593793869, -0.15015694499015808, -0.1573176383972168, 0.2622714340686798, 0.053003933280706406, -0.016835326328873634, -0.010082454420626163, 0.12979409098625183, -0.2084888368844986, -0.08111760020256042, 0.15750999748706818, 0.3992905914783478, 0.04019024968147278, -0.47322532534599304, 0.3453003168106079, -0.2074119746685028, -0.16162694990634918, 0.15625958144664764, 0.08473993837833405, 0.37684834003448486, -0.04525977745652199, -0.10261460393667221, 0.12143867462873459, -0.12787842750549316, 0.2560074031352997, -0.042903438210487366, -0.4255734086036682, -0.1164732277393341, 0.24219240248203278, 0.15267221629619598, -0.31065356731414795, 0.2070244401693344, 0.7946996688842773, 0.2270718514919281, -0.366996705532074, 0.07564403861761093, 0.16399671137332916, -0.16514310240745544, 0.0323554128408432, -0.7381464242935181, -0.17389483749866486, -0.17259560525417328, 0.18013274669647217, -0.1772889494895935, -0.02012522704899311, 0.3450927734375, 0.10262341797351837, -0.06900952756404877, -0.40739330649375916, 0.0018841387936845422, 0.10026587545871735, -0.3239278793334961, -0.23775924742221832, 0.40127333998680115, 0.1469523161649704, -0.15874788165092468, -0.03464808315038681, -0.12813013792037964, 0.3428942561149597, 0.2950403094291687, -0.3094571828842163, -0.16388092935085297, -0.08777597546577454, -0.13514353334903717, -0.20769429206848145, 0.11109645664691925, 0.14669299125671387, 0.10998553782701492, 0.3763890862464905, 0.1300736963748932, -0.12911179661750793, 0.09818010032176971, 0.18589046597480774, -0.12911342084407806, 0.08444064855575562, -0.0947917178273201, -0.00022253529459703714, -0.22818826138973236, -0.036134473979473114, -0.20551739633083344, -0.1976294219493866, -0.2189730405807495, 0.13185898959636688, 0.17305630445480347, 0.16357581317424774, -0.226365864276886, 0.050287600606679916, 0.01275941077619791, 0.7020559906959534, 0.35107868909835815, 0.10766228288412094, -0.2142922431230545, -0.3235681653022766, -0.596785843372345, 0.3562067449092865, -0.3159346282482147, 0.1146414652466774, 0.3648401200771332, 0.4121895730495453, 0.14820340275764465, 0.4271438717842102, -0.14369823038578033, 0.4120664894580841, -0.04026923328638077, -0.12031503021717072, -0.4084433615207672, -0.03165630251169205, 0.0676872655749321, -0.028870733454823494, -0.16150760650634766, -0.42229804396629333, 0.21626560389995575, -0.160927876830101, 0.027339797466993332, -0.18581221997737885, -0.3727510869503021, 0.09867952018976212, 0.054537855088710785, 0.10939259827136993, -0.08713629841804504, 0.3187766671180725, 0.0858084112405777, 0.04064954072237015, -0.20399735867977142, -0.21249675750732422, -0.24772723019123077, 0.3365735709667206, 0.023068826645612717, 0.33014601469039917, -0.19649477303028107, 0.13636837899684906, -0.10941183567047119, 0.1971796154975891, -0.33856770396232605, 0.17880918085575104, 0.01490528043359518, -0.14951634407043457, -0.1281839907169342, 0.2249825894832611, -0.09454527497291565, 0.08979979902505875, 0.03975683078169823, 0.2163553684949875, -0.40168243646621704, -0.20319515466690063, 0.4354740083217621, -0.5085448622703552, -0.19872215390205383, 0.2857096791267395, -0.02709639072418213, 0.4125848412513733, -0.11640486866235733, -0.43139493465423584, -0.07544636726379395, 0.223983034491539, -0.23462514579296112, -0.12034671753644943, 0.05637168139219284, -0.014574116095900536, 0.08309151977300644, -0.1923093944787979, -0.0018164556240662932, 0.08006365597248077, -0.20203012228012085, -0.2691347301006317, -0.3540152907371521 ]
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.22482463717460632, 0.20798172056674957, 0.013098775409162045, 0.13777872920036316, 0.2781038284301758, -0.25971925258636475, 0.31692245602607727, 0.46876847743988037, -0.16914048790931702, -0.14901088178157806, 0.0023772921413183212, 0.42034175992012024, 0.06907202303409576, -0.017227977514266968, 0.1122412458062172, -0.14781977236270905, -0.2049248218536377, 0.2665921151638031, -0.005143813788890839, -0.06588060408830643, 0.0004074999305885285, 0.24116100370883942, -0.13989916443824768, 0.2639465928077698, -0.19671648740768433, -0.013389184139668941, 0.18712909519672394, 0.48918476700782776, -0.2591637372970581, -0.5631481409072876, 0.31532204151153564, -0.2961506247520447, 0.09546303004026413, 0.11060100793838501, -0.00011665561760310084, 0.3696364462375641, 0.1890551596879959, -0.016439011320471764, -0.37574097514152527, -0.3551531136035919, 0.24148845672607422, -0.4904561936855316, 0.46868187189102173, -0.11423562467098236, -0.07642442733049393, -0.35081472992897034, -0.22236116230487823, -0.07387330383062363, 0.48033490777015686, 0.11952219903469086, 0.15140454471111298, 0.4681631624698639, -0.18323871493339539, 0.10652288794517517, 0.11930876225233078, 0.12603242695331573, -0.16245707869529724, 0.46101051568984985, 0.375977098941803, -0.34501776099205017, -0.3874121308326721, -0.14356034994125366, -0.1003539189696312, 0.3243617117404938, 0.19294586777687073, 0.009374456480145454, -0.03912440687417984, 0.1259254813194275, 0.12546111643314362, 0.1766231507062912, 0.3256264626979828, -0.3496563136577606, -0.06322584301233292, -0.07454495877027512, 0.062253013253211975, -0.029538791626691818, 0.18109405040740967, 0.3203277587890625, -0.34672078490257263, 0.12482360005378723, -0.306050568819046, 0.19640561938285828, -0.10670442134141922, 0.30124786496162415, -0.19134439527988434, 0.3296270966529846, 0.06280551105737686, 0.2973686456680298, 0.10613811016082764, 0.14810577034950256, 0.16313967108726501, 0.21270999312400818, -0.03438941389322281, 0.21243295073509216, -0.2666904628276825, 0.22800904512405396, 0.10138711333274841, -0.17231960594654083, 0.23792563378810883, 0.10137304663658142, 0.24167965352535248, 0.042447689920663834, 0.2140953093767166, 0.2787177860736847, 0.3740188181400299, -0.014348558150231838, 0.1454511284828186, 0.07650095224380493, -0.017595386132597923, 0.027480348944664, -0.10416039079427719, 0.12155237793922424, -0.19911906123161316, -0.3780224323272705, 0.032498788088560104, -0.19245782494544983, 0.27498865127563477, -0.18713343143463135, -0.2933090925216675, 0.09409532696008682, -0.49356400966644287, -0.06081100553274155, 0.12270767241716385, 0.27679020166397095, 0.2118472307920456, 0.22857403755187988, -0.10521138459444046, 0.21644388139247894, -0.09289576858282089, -0.17121672630310059, -0.20248623192310333, 0.05922947824001312, -0.31990885734558105, -0.1551755666732788, 0.40509775280952454, -0.24703489243984222, 0.24933883547782898, -0.013081647455692291, 0.18185004591941833, 0.009779596701264381, 0.17168612778186798, 0.0250098779797554, 0.21658293902873993, 0.17607749998569489, 0.018110893666744232, 0.09828502684831619, 0.17131495475769043, -0.23047514259815216, -0.35458043217658997, 0.32592645287513733, 0.02536146342754364, -0.3207991123199463, -0.3150310516357422, 0.09863745421171188, -0.15784093737602234, 0.09825897961854935, 0.17552246153354645, 0.05404781922698021, 0.10672803223133087, -0.1062409058213234, 0.09626539796590805, -0.11802683770656586, -0.07118937373161316, -0.29820144176483154, 0.3827487826347351, 0.28991544246673584, -0.9532225728034973, -0.11767958104610443, 0.1975104659795761, -0.0724644660949707, 0.09692856669425964, 0.5727161169052124, -0.5708691477775574, 0.18338462710380554, -0.056012220680713654, 0.23903797566890717, 0.579934298992157, -0.3536815047264099, -0.5187262296676636, 0.49498850107192993, -0.38326266407966614, -0.16501645743846893, -0.14250950515270233, -0.04130104184150696, -0.021062085404992104, 0.2826715111732483, 0.0945461243391037, 0.683675229549408, -0.13772442936897278, 0.18467490375041962, -0.33096519112586975, -0.16554905474185944, 0.23167598247528076, 0.4529772698879242, 0.002409010659903288, -0.3553718626499176, 0.015314661897718906, 0.10481975972652435, 0.07430580258369446, -0.004173561930656433, 0.268313467502594, 0.22353121638298035, -0.1914622038602829, -0.251615047454834, 0.08032140135765076, -0.01260074321180582, -0.7056604623794556, 0.08932006359100342, -0.06401319056749344, -0.03998029604554176, -0.21934394538402557, 0.027673231437802315, -0.38935890793800354, 0.29254138469696045, -0.14461427927017212, -0.006223238073289394, 0.04182664677500725, -0.010541439056396484, 0.06708535552024841, -0.09036576747894287, -0.34029313921928406, -0.14903363585472107, 0.0774708241224289, -0.0015935450792312622, 0.05144388973712921, 0.41176638007164, -0.012965702451765537, -0.2781398296356201, 0.0033559086732566357, 0.35500529408454895, -0.017328035086393356, -0.12722274661064148, -0.10794588178396225, 0.2835782766342163, -0.12930546700954437, 0.12034966051578522, -0.004045609384775162, -0.3351644277572632, 0.22039447724819183, -0.30956748127937317, 0.16773472726345062, -0.02052980288863182, -0.04473424330353737, -0.12870433926582336, -0.22015486657619476, 0.40326738357543945, -0.1909843385219574, 0.19561174511909485, -0.08545786142349243, -0.14809249341487885, 0.21472173929214478, -0.12402611970901489, -0.058636732399463654, 0.009711271151900291, 0.1784369796514511, 0.26569312810897827, 0.5207039713859558, 0.270675390958786, -0.2427757829427719, 0.0891447514295578, 0.3627479374408722, -0.037122488021850586, -0.04015796631574631, 0.04382900521159172, -0.22232773900032043, -0.1289467066526413, 0.10810697078704834, -0.1066061332821846, 0.18685942888259888, 0.1889304667711258, 0.0756320059299469, -0.13921533524990082, -0.2522186040878296, -0.21511244773864746, -0.031914155930280685, -0.043620988726615906, 0.13008426129817963, 0.40387386083602905, 0.44856446981430054, -0.13823474943637848, -0.41005486249923706, -0.07384496182203293, 0.23459075391292572, 0.24506984651088715, -0.24432401359081268, 0.03739277645945549, -0.31477317214012146, -0.04993832856416702, -0.1750921756029129, -0.4401918351650238, -0.2645353376865387, -0.19996783137321472, -0.05510927736759186, 0.231073796749115, 0.013169948011636734, 0.13738186657428741, -0.011633963324129581, 0.24568232893943787, 0.10087312012910843, -0.4298434257507324, -0.01199668925255537, -0.5101563930511475, -0.36952731013298035, 0.032828956842422485, 0.46733346581459045, 0.4385599195957184, 0.17867691814899445, 0.18146103620529175, -0.07011382281780243, 0.009079991839826107, -0.09918089956045151, 0.21156059205532074, 0.030458569526672363, 0.17554256319999695, 0.0036325869150459766, 0.33442676067352295, -0.4671185612678528, -0.31139567494392395, 0.6026248931884766, -0.09136661887168884, -0.27217528223991394, 0.19935055077075958, -0.3250698447227478, -0.1124730184674263, -0.20696263015270233, -0.1498919129371643, -0.29042625427246094, -0.3914504647254944, 0.33656150102615356, -0.010899829678237438, 0.035600002855062485, -0.1289467066526413, 0.13384385406970978, 0.28383708000183105, 0.09498470276594162, -0.21167387068271637, -0.03837528079748154, -0.45203107595443726, 0.2738105058670044, -0.11524246633052826, -0.26948246359825134, -0.07102856785058975, 0.0409652516245842, 0.2816607356071472, 0.06277608871459961, -0.34811729192733765, 0.002461649477481842, 0.07311691343784332, 0.534430205821991, -0.19076436758041382, -0.18764738738536835, 0.3679307699203491, -0.05793074145913124, 0.022689417004585266, 0.07160288840532303, -0.25260815024375916, 0.182291641831398, 0.043950214982032776, 0.033740587532520294, -0.17550484836101532, 0.41759809851646423, 0.10207410156726837, 0.9232448935508728, -0.26433730125427246, -0.15056656301021576, 0.3155283033847809, -0.024692058563232422, 0.08685725182294846, -0.12689615786075592, -0.30847686529159546, 0.16493059694766998, 0.07749632000923157, -0.07690264284610748, 0.10230167210102081, 0.060370344668626785, -0.3845147490501404, -0.04491414129734039, -0.021451599895954132, -0.27463531494140625, -0.09941583126783371, 0.35856014490127563, 0.1034403070807457, -0.10839033126831055, -0.010701159946620464, -0.0802660584449768, -0.1179673820734024, -0.19185182452201843, -0.11345338821411133, 0.033390384167432785, -0.031799159944057465, 0.18775852024555206, -0.4592278301715851, -0.11704100668430328, -0.08757607638835907, -0.06833527237176895, 0.36282220482826233, 0.3158777952194214, -0.01478231605142355, -0.1853872537612915, 0.34088602662086487, -0.3085048496723175, 0.5129212141036987, 0.23422932624816895, 0.19255989789962769, 0.28695961833000183, 0.07059375196695328, -0.6148581504821777, -0.15415216982364655, 0.12002401798963547, 0.41197219491004944, 0.44492241740226746, 0.3248271644115448, -0.10015186667442322, -0.3170759081840515, 0.12564973533153534, 0.1735464483499527, -0.03309982270002365, -0.20279212296009064, -0.3746904134750366, -0.30732280015945435, -0.44363120198249817, 0.08175469934940338, 0.023821981623768806, 0.2499193549156189, 0.4211021661758423, -0.08072619140148163, 0.28934580087661743, -0.106065534055233, -0.27227267622947693, 0.24798311293125153, 0.14614078402519226, -0.06335408985614777, 0.07268153131008148, 0.2435627281665802, 0.34558528661727905, 0.0976913720369339, 0.6214665174484253, 0.18695369362831116, -0.09888367354869843, 0.14821535348892212, 0.23100200295448303, 0.30086666345596313, 0.29505619406700134, 0.1793147474527359, -0.05730472132563591, -0.11760623753070831, -0.016650816425681114, 0.1620849370956421, 0.17810013890266418, 0.040149785578250885, -0.2675120234489441, 0.10960572957992554, 0.18654315173625946, 0.28918516635894775, -0.27394017577171326, 0.1674659103155136, 0.529927670955658, -0.05235166475176811, 0.06925453245639801, 0.40746715664863586, 0.11665714532136917, 0.7771917581558228, -0.2644699513912201, 0.14792956411838531, 0.5714970827102661, -0.2305464744567871, 0.31642916798591614, -0.2754615843296051, 0.005959261208772659, -0.518885612487793, 0.25294065475463867, 0.08499057590961456, -0.23986132442951202, -0.009612918831408024, 0.3080279529094696, 0.09509199112653732, -0.14094185829162598, -0.10818440467119217, 0.3453782796859741, -0.00262119947001338, 0.2207462638616562, 0.05085034295916557, -0.2714330852031708, -0.29267820715904236, 0.035343095660209656, -0.3116568326950073, -0.04296792671084404, -0.06491164118051529, -0.1619158387184143, -0.09690705686807632, -0.10017950087785721, -0.15647180378437042, 0.40746545791625977, -0.055670708417892456, 0.24109651148319244, 0.3928500711917877, -0.41134873032569885, -0.08382789045572281, 0.047286584973335266, -0.022364087402820587, -0.18439912796020508, -0.18511052429676056, 0.24539940059185028, 0.0351632796227932, -0.08717416226863861, -0.007609358057379723, 0.12672586739063263, 0.21115876734256744, -0.19058328866958618, -0.31528639793395996, -0.009710744023323059, -0.11076049506664276, -0.3773858845233917, 0.009842028841376305, 0.2698493003845215, 0.10937424004077911, -0.07063639909029007, -0.21267905831336975, -0.1799737811088562, 0.16430744528770447, 0.028388066217303276, 0.05987934023141861, -0.027029482647776604, 0.15624041855335236, -0.25327903032302856, 0.32926636934280396, -0.36074045300483704, 0.04626194387674332, 0.49632057547569275, -0.10143334418535233, 0.16405323147773743, 0.5222313404083252, 0.39581233263015747, -0.10784561932086945, -0.23447692394256592, -0.04178299754858017, 0.5676162838935852, -0.48135995864868164, -0.08085284382104874, -0.06544370204210281, -0.09233181923627853, 0.12456197291612625, 0.2647164762020111, 0.33031484484672546, 0.00910777784883976, -0.09378799796104431, -0.513270914554596, -0.35239890217781067, 0.21944431960582733, -0.11409571021795273, -0.09980665147304535, 0.2764379680156708, 0.5523681044578552, 0.11982123553752899, 0.34576812386512756, -0.22479145228862762, 0.19646692276000977, -0.07673849165439606, 0.1733502894639969, -0.29373401403427124, -0.2949867844581604, 0.06170985475182533, -0.049116432666778564, 0.04363144934177399, 0.07558152079582214, -0.1114882081747055, -0.21604786813259125, -0.054255612194538116, 0.10995723307132721, 0.11589140444993973, -0.15387895703315735, -0.19242210686206818, -0.1486532986164093, 0.03360907733440399, -0.03417697921395302, -0.011412829160690308, -0.03168417513370514, -0.0636330395936966, 0.00923883356153965, 0.13757328689098358, -0.04955848306417465, -0.14321622252464294, 0.02380671724677086, -0.02512357570230961, 0.051309164613485336, 0.04362322762608528, 0.24763521552085876, 0.027966449037194252, -0.01728120632469654, -0.23150692880153656, 0.06548161059617996, 0.24107962846755981, 0.18614783883094788, 0.2242749184370041, -0.2875193655490875, -0.13635091483592987, -0.1797349750995636, 0.18124821782112122, 0.3907138407230377, -0.14776873588562012, -0.005762808490544558, 0.017055131494998932, 0.1338837593793869, -0.15015694499015808, -0.1573176383972168, 0.2622714340686798, 0.053003933280706406, -0.016835326328873634, -0.010082454420626163, 0.12979409098625183, -0.2084888368844986, -0.08111760020256042, 0.15750999748706818, 0.3992905914783478, 0.04019024968147278, -0.47322532534599304, 0.3453003168106079, -0.2074119746685028, -0.16162694990634918, 0.15625958144664764, 0.08473993837833405, 0.37684834003448486, -0.04525977745652199, -0.10261460393667221, 0.12143867462873459, -0.12787842750549316, 0.2560074031352997, -0.042903438210487366, -0.4255734086036682, -0.1164732277393341, 0.24219240248203278, 0.15267221629619598, -0.31065356731414795, 0.2070244401693344, 0.7946996688842773, 0.2270718514919281, -0.366996705532074, 0.07564403861761093, 0.16399671137332916, -0.16514310240745544, 0.0323554128408432, -0.7381464242935181, -0.17389483749866486, -0.17259560525417328, 0.18013274669647217, -0.1772889494895935, -0.02012522704899311, 0.3450927734375, 0.10262341797351837, -0.06900952756404877, -0.40739330649375916, 0.0018841387936845422, 0.10026587545871735, -0.3239278793334961, -0.23775924742221832, 0.40127333998680115, 0.1469523161649704, -0.15874788165092468, -0.03464808315038681, -0.12813013792037964, 0.3428942561149597, 0.2950403094291687, -0.3094571828842163, -0.16388092935085297, -0.08777597546577454, -0.13514353334903717, -0.20769429206848145, 0.11109645664691925, 0.14669299125671387, 0.10998553782701492, 0.3763890862464905, 0.1300736963748932, -0.12911179661750793, 0.09818010032176971, 0.18589046597480774, -0.12911342084407806, 0.08444064855575562, -0.0947917178273201, -0.00022253529459703714, -0.22818826138973236, -0.036134473979473114, -0.20551739633083344, -0.1976294219493866, -0.2189730405807495, 0.13185898959636688, 0.17305630445480347, 0.16357581317424774, -0.226365864276886, 0.050287600606679916, 0.01275941077619791, 0.7020559906959534, 0.35107868909835815, 0.10766228288412094, -0.2142922431230545, -0.3235681653022766, -0.596785843372345, 0.3562067449092865, -0.3159346282482147, 0.1146414652466774, 0.3648401200771332, 0.4121895730495453, 0.14820340275764465, 0.4271438717842102, -0.14369823038578033, 0.4120664894580841, -0.04026923328638077, -0.12031503021717072, -0.4084433615207672, -0.03165630251169205, 0.0676872655749321, -0.028870733454823494, -0.16150760650634766, -0.42229804396629333, 0.21626560389995575, -0.160927876830101, 0.027339797466993332, -0.18581221997737885, -0.3727510869503021, 0.09867952018976212, 0.054537855088710785, 0.10939259827136993, -0.08713629841804504, 0.3187766671180725, 0.0858084112405777, 0.04064954072237015, -0.20399735867977142, -0.21249675750732422, -0.24772723019123077, 0.3365735709667206, 0.023068826645612717, 0.33014601469039917, -0.19649477303028107, 0.13636837899684906, -0.10941183567047119, 0.1971796154975891, -0.33856770396232605, 0.17880918085575104, 0.01490528043359518, -0.14951634407043457, -0.1281839907169342, 0.2249825894832611, -0.09454527497291565, 0.08979979902505875, 0.03975683078169823, 0.2163553684949875, -0.40168243646621704, -0.20319515466690063, 0.4354740083217621, -0.5085448622703552, -0.19872215390205383, 0.2857096791267395, -0.02709639072418213, 0.4125848412513733, -0.11640486866235733, -0.43139493465423584, -0.07544636726379395, 0.223983034491539, -0.23462514579296112, -0.12034671753644943, 0.05637168139219284, -0.014574116095900536, 0.08309151977300644, -0.1923093944787979, -0.0018164556240662932, 0.08006365597248077, -0.20203012228012085, -0.2691347301006317, -0.3540152907371521 ]
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.038707979023456573, -0.11587385088205338, 0.07235068082809448, 0.3124665319919586, 0.320459246635437, 0.029449187219142914, 0.09009482711553574, 0.07020644098520279, 0.5023598670959473, -0.0785919651389122, -0.18506582081317902, 0.03060687892138958, -0.048066187649965286, -0.26145139336586, -0.03166046366095543, -0.19438757002353668, -0.20079948008060455, -0.08951783180236816, -0.09162928909063339, 0.12280429154634476, -0.20724862813949585, 0.3985544741153717, -0.17513591051101685, -0.14073552191257477, -0.35558009147644043, -0.17093788087368011, -0.0894150584936142, 0.36253127455711365, -0.0941760316491127, -0.46393463015556335, 0.15803562104701996, 0.0360000878572464, 0.06577228754758835, 0.09587310999631882, -0.00012539878662209958, 0.009709213860332966, 0.4328869879245758, 0.020783931016921997, 0.015818296000361443, -0.27422627806663513, -0.04720791056752205, -0.5386416912078857, 0.2313127964735031, -0.03811418265104294, 0.05535310134291649, 0.1542789191007614, 0.012848759070038795, -0.37357667088508606, 0.39290347695350647, 0.23029738664627075, 0.11773961037397385, 0.42187929153442383, 0.24505162239074707, -0.30099380016326904, -0.22830434143543243, -0.5178475975990295, 0.12268823385238647, 0.932364284992218, 0.19839289784431458, -0.43403682112693787, -0.16812574863433838, 0.14288875460624695, -0.030659610405564308, 0.13573810458183289, 0.43644288182258606, -0.101712666451931, 0.3628014028072357, -0.11461739242076874, -0.026829808950424194, 0.008282092399895191, 0.03358571603894234, -0.11310816556215286, -0.2663029432296753, -0.19670532643795013, 0.3940870463848114, -0.30954238772392273, 0.32627180218696594, -0.2071051448583603, 0.11073417216539383, 0.06145498529076576, 0.02285885252058506, -0.30174770951271057, 0.031133556738495827, 0.1103479415178299, -0.07048780471086502, 0.13144545257091522, -0.030455531552433968, 0.10596060007810593, 0.48244163393974304, 0.11586464196443558, -0.1343359798192978, 0.46464183926582336, -0.2977820038795471, 0.2525922358036041, -0.22304479777812958, 0.3128056526184082, 0.021529681980609894, 0.48380526900291443, 0.07956541329622269, 0.04724336788058281, 0.005801897030323744, 0.01688230223953724, 0.34056395292282104, 0.14785760641098022, -0.036565110087394714, 0.5148493647575378, 0.4060494899749756, -0.08032134920358658, 0.19382885098457336, 0.272944837808609, 0.007888254709541798, -0.020290201529860497, -0.04505147039890289, -0.33635056018829346, 0.14898014068603516, 0.1632080227136612, 0.04522201791405678, -0.0889202430844307, 0.015487909317016602, 0.025929255411028862, 0.0870656818151474, -0.15910163521766663, 0.15204116702079773, 0.160873681306839, -0.027613073587417603, 0.29532650113105774, 0.10745010524988174, 0.2743977904319763, -0.010698472149670124, -0.1547306329011917, -0.19289495050907135, 0.3185301125049591, -0.32654210925102234, 0.27537697553634644, 0.26089537143707275, -0.299611359834671, 0.35503119230270386, 0.08811408281326294, 0.08850044757127762, -0.4025237262248993, -0.06978018581867218, 0.0475795716047287, -0.28754356503486633, 0.21502947807312012, -0.14250080287456512, 0.09494080394506454, 0.19553406536579132, -0.2912885844707489, -0.011082981713116169, -0.3652181327342987, -0.4574066698551178, -0.3263043165206909, -0.05111730471253395, 0.012352255173027515, -0.4049872159957886, 0.05977633595466614, 0.0596664659678936, 0.1430254578590393, 0.026786530390381813, 0.021842017769813538, -0.030171239748597145, -0.10873911529779434, -0.15208661556243896, -0.20625534653663635, 0.28136348724365234, 0.5562863349914551, 0.09762080013751984, -0.30567023158073425, -0.1878911703824997, -0.10799133777618408, -0.1382288634777069, 0.23493127524852753, 0.045894455164670944, 0.09709415584802628, -0.22420594096183777, 0.08440803736448288, 0.2618544101715088, -0.7882766127586365, -0.6193394660949707, -0.009567268192768097, -0.1618589460849762, -0.04468109458684921, 0.054886799305677414, 0.08881895989179611, 0.11809315532445908, 0.09939731657505035, 0.33303001523017883, 0.09243067353963852, 0.09433627873659134, -0.41693854331970215, -0.21936963498592377, 0.005256951786577702, 0.07153473049402237, 0.0779733955860138, 0.2852446436882019, 0.26501524448394775, 0.18155750632286072, 0.3520883023738861, 0.023121748119592667, 0.39388954639434814, -0.22763939201831818, 0.4092959463596344, -0.05563481152057648, -0.22204653918743134, 0.08672312647104263, -0.1872999668121338, -0.3539682626724243, 0.45857322216033936, -0.5009267330169678, -0.05613145977258682, 0.0323619544506073, 0.070805124938488, -0.45913147926330566, 0.030920352786779404, 0.11429458111524582, -0.03225630521774292, 0.030795197933912277, 0.04548277333378792, 0.02597026340663433, 0.06012202054262161, -0.10537556558847427, 0.5104597806930542, -0.03190648928284645, 0.20454241335391998, -0.28584203124046326, -0.09222590178251266, 0.09688278287649155, -0.05965077877044678, -0.007458383683115244, 0.3105420470237732, 0.49487242102622986, -0.059130389243364334, 0.04697222262620926, 0.5281561017036438, 0.05105132609605789, 0.26002034544944763, -0.011912182904779911, -0.014790105633437634, 0.26648807525634766, 0.013436934910714626, -0.01157829724252224, -0.5587481260299683, -0.06142478436231613, -0.061917226761579514, 0.33160409331321716, 0.07984721660614014, 0.19301800429821014, 0.10276816785335541, -0.16345125436782837, 0.19388876855373383, 0.046291008591651917, -0.2189997434616089, -0.19786128401756287, -0.20393134653568268, 0.5161857008934021, -0.12915393710136414, 0.07388734817504883, 0.01570264808833599, 0.23416979610919952, -0.05998930335044861, 0.2643680274486542, 0.090427927672863, 0.17639438807964325, -0.1143525019288063, -0.1747928112745285, -0.08786656707525253, -0.2505743205547333, 0.31274276971817017, 0.347824364900589, -0.04087090119719505, 0.09778007119894028, 0.10519468784332275, 0.03044617734849453, -0.12657465040683746, 0.01440226100385189, 0.07624159753322601, -0.021721601486206055, 0.36865493655204773, 0.19440142810344696, 0.09898754954338074, -0.03848791494965553, 0.1585068702697754, 0.1161007359623909, 0.2183552384376526, -0.20391438901424408, 0.009838365949690342, -0.3964007496833801, 0.010286812670528889, 0.22886089980602264, -0.003913905005902052, -0.48214849829673767, -0.42978909611701965, -0.0750378742814064, 0.18879926204681396, 0.3223300278186798, 0.06095675379037857, 0.1792289763689041, 0.22904011607170105, -0.19215984642505646, 0.24149316549301147, -0.15535525977611542, -0.44842255115509033, -0.037955041974782944, -0.16159528493881226, 0.1437363177537918, -0.09566938877105713, 0.11457447707653046, -0.12489210814237595, -0.1733732670545578, -0.14027315378189087, -0.25742867588996887, 0.023972032591700554, 0.08430132269859314, 0.714580774307251, 0.21294182538986206, 0.008894942700862885, -0.0010663839057087898, 0.123074971139431, 0.3546614348888397, -0.127553328871727, 0.052418775856494904, 0.2911885380744934, -0.36963266134262085, 0.14639116823673248, -0.2685169279575348, 0.16161532700061798, -0.5034712553024292, -0.4056682586669922, 0.29106801748275757, -0.11052024364471436, -0.2216467559337616, 0.1172688901424408, -0.2792268693447113, 0.3122069239616394, -0.27268192172050476, 0.12514881789684296, -0.2774212658405304, -0.1923304796218872, 0.2103399634361267, 0.004334368743002415, -0.09001943469047546, -0.2496185153722763, 0.10208244621753693, 0.18237833678722382, -0.13991208374500275, -0.3926427364349365, -0.7514959573745728, -0.11410819739103317, 0.09870510548353195, -0.24744963645935059, -0.11255364120006561, 0.1439751237630844, -0.35129547119140625, 0.04142075777053833, -0.13493844866752625, -0.0026851389557123184, 0.10423698276281357, 0.0757855549454689, 0.201282799243927, 0.06577249616384506, 0.22178983688354492, 0.16612015664577484, 0.5310272574424744, -0.044297412037849426, -0.10216157138347626, 0.34651944041252136, 0.05956101790070534, 0.4767451882362366, 0.1927143931388855, -0.3890645503997803, -0.19300559163093567, 0.14170244336128235, 0.246988907456398, -0.25448480248451233, 0.034841377288103104, 0.24232132732868195, -0.1883639544248581, -0.3141638934612274, -0.22127223014831543, -0.09363530576229095, -0.10360535234212875, -0.11230827867984772, 0.16383537650108337, 0.14029252529144287, 0.26037922501564026, -0.1485799252986908, -0.07927075028419495, 0.2771487832069397, 0.3417005240917206, 0.036745596677064896, 0.160573810338974, 0.05459051951766014, -0.19540554285049438, -0.4282636046409607, 0.39733418822288513, -0.004979921970516443, 0.5216326117515564, -0.2394585907459259, 0.059432920068502426, 0.10459946095943451, -0.10414979606866837, 0.5359893441200256, 0.09700676798820496, 0.12711629271507263, 0.1798015832901001, 0.038261108100414276, -0.3157486915588379, -0.030422445386648178, 0.02993842400610447, 0.14892172813415527, 0.4948725700378418, 0.7226870656013489, -0.26600006222724915, -0.11925633251667023, -0.26036369800567627, 0.16508956253528595, -0.304889976978302, -0.20248115062713623, -0.20634996891021729, -0.3236880898475647, -0.17101457715034485, 0.012341667897999287, -0.11533636599779129, 0.3378125727176666, 0.4723190665245056, 0.2161136120557785, -0.13601887226104736, -0.4786416292190552, -0.04078488424420357, -0.07279510051012039, 0.4126507043838501, -0.08692940324544907, 0.08805133402347565, 0.4231228530406952, -0.14878788590431213, -0.2982722520828247, 0.1877472996711731, -0.11369410157203674, 0.12133066356182098, 0.23337368667125702, 0.1737685650587082, 0.10539024323225021, 0.42535075545310974, -0.15975457429885864, 0.22598035633563995, 0.12646633386611938, 0.09557358175516129, -0.09797380119562149, -0.03150586783885956, 0.12030918896198273, -0.023831795901060104, 0.029559602960944176, 0.2193051278591156, 0.3600982129573822, 0.20235031843185425, -0.18787311017513275, 0.41808778047561646, -0.04311806336045265, -0.03506997227668762, -0.0972784161567688, -0.10008770227432251, 0.8022149205207825, -0.15957927703857422, -0.26193100214004517, 0.02987402305006981, -0.14579860866069794, 0.6428797841072083, -0.10421040654182434, 0.17611123621463776, -0.07429196685552597, -0.39324524998664856, 0.04417942464351654, -0.21753060817718506, 0.06575899571180344, -0.4121156334877014, 0.051431674510240555, 0.2708452045917511, -0.4369370937347412, -0.033560704439878464, -0.06508726626634598, 0.1836889237165451, -0.6214600801467896, 0.0531325563788414, 0.030129848048090935, 0.040138129144907, -0.3123500347137451, 0.3805067241191864, -0.20364823937416077, -0.05506294220685959, 0.27703869342803955, -0.05538397282361984, -0.3994782865047455, -0.06540440022945404, -0.2844846844673157, 0.07088852673768997, 0.23908628523349762, -0.07043956965208054, -0.1759534627199173, -0.061057742685079575, 0.314334511756897, 0.13980422914028168, -0.29943352937698364, 0.3438143730163574, -0.0917135700583458, -0.2954326868057251, -0.0030769691802561283, 0.27814170718193054, 0.1166205182671547, 0.002936401404440403, -0.09253151714801788, 0.0463675856590271, -0.17334669828414917, -0.11075405031442642, -0.1144869327545166, 0.18171051144599915, 0.05339066684246063, 0.3183440864086151, -0.1433252990245819, -0.01913171261548996, 0.23422610759735107, -0.14942482113838196, 0.025310253724455833, 0.2552126348018646, -0.004086487460881472, -0.10483823716640472, -0.20643676817417145, -0.25500452518463135, 0.16374610364437103, 0.5607221722602844, -0.05819348618388176, -0.5073891282081604, 0.21650592982769012, 0.01646294631063938, -0.06396212428808212, -0.10163448005914688, -0.34678778052330017, -0.16905805468559265, -0.42059269547462463, 0.24293473362922668, 0.15471795201301575, -0.019313836470246315, 0.004005547612905502, -0.18582555651664734, 0.48433494567871094, -0.28308427333831787, -0.0019895692821592093, -0.7558660507202148, -0.29733696579933167, 0.28343504667282104, -0.28532710671424866, -0.013660524971783161, -0.11488913744688034, 0.047175440937280655, -0.21041780710220337, 0.4024420380592346, -0.1725853681564331, 0.18298901617527008, -0.2871592044830322, -0.24515080451965332, 0.5845173597335815, -0.06546583771705627, 0.16766612231731415, -0.04759442061185837, 0.019807487726211548, 0.4047592580318451, -0.12404195219278336, -0.04975830763578415, -0.1973862498998642, 0.17970237135887146, -0.0850149393081665, 0.14076776802539825, 0.01837189681828022, -0.2761434018611908, 0.24591504037380219, 0.08954861760139465, -0.08117789030075073, 0.20467939972877502, 0.06132948398590088, 0.03840529918670654, 0.04261916130781174, 0.5235905051231384, 0.25016409158706665, 0.26729339361190796, 0.009064584970474243, -0.003256242023780942, 0.0062505449168384075, 0.07920454442501068, -0.059647753834724426, 0.18289858102798462, -0.46566691994667053, -0.13772259652614594, -0.09740886837244034, -0.1361396163702011, 0.15596790611743927, 0.1431010365486145, -0.10165271908044815, 0.019040212035179138, 0.12524323165416718, -0.12168174237012863, 0.06669758260250092, 0.034236468374729156, -0.030002685263752937, 0.08695440739393234, -0.24675887823104858, -0.06682048738002777, -0.08705247938632965, 0.31805306673049927, -0.13109545409679413, 0.07352011650800705, 0.34242600202560425, -0.09613067656755447, 0.14328178763389587, 0.11181220412254333, 0.49705269932746887, 0.007597670890390873, 0.02056029625236988, -0.20673048496246338, 0.13445590436458588, -0.26917627453804016, 0.49593666195869446, -0.04285808652639389, 0.11664439737796783, -0.036739129573106766, -0.32533887028694153, 0.14502164721488953, -0.3323923349380493, 0.25030624866485596, -0.040823597460985184, -0.300771027803421, -0.10084491223096848, 0.26486459374427795, 0.22093653678894043, 0.11860699951648712, -0.4627085030078888, 0.6910855174064636, -0.2642378509044647, -0.3084987998008728, -0.04292874038219452, 0.36355653405189514, -0.064473457634449, -0.09538447856903076, -0.006921463645994663, -0.2487746924161911, -0.14313273131847382, -0.02255791425704956, 0.18491840362548828, 0.08537279814481735, 0.40138888359069824, 0.1992623507976532, -0.18337512016296387, -0.3830607533454895, -0.4849725663661957, 0.3002396821975708, 0.1777811050415039, -0.19378770887851715, 0.3580450713634491, 0.11350424587726593, -0.023285560309886932, 0.18536832928657532, 0.26418623328208923, 0.3333711624145508, 0.10518331825733185, -0.15066362917423248, 0.09534547477960587, -0.01131577417254448, 0.010702409781515598, -0.15751679241657257, 0.5133901834487915, 0.3697790503501892, -0.3136536180973053, -0.0351262092590332, 0.04042495787143707, -0.17909027636051178, 0.21191523969173431, -0.0549708716571331, 0.2851825952529907, -0.0977841392159462, 0.5591539740562439, -0.06579364091157913, 0.018675051629543304, -0.15477752685546875, 0.13212643563747406, -0.33619409799575806, -0.04342203214764595, -0.005851426627486944, 0.13185864686965942, 0.004985747393220663, -0.30681103467941284, 0.041179463267326355, 0.05521870031952858, 0.2113998979330063, 0.5045400261878967, 0.1183803379535675, -0.4218704402446747, -0.13344967365264893, -0.7453030347824097, 0.11348412185907364, -0.0222577303647995, 0.09246958792209625, 0.26346227526664734, -0.1080281212925911, -0.16856691241264343, -0.04610218480229378, 0.2452774941921234, 0.3517717719078064, 0.16474932432174683, -0.4546445310115814, -0.46754664182662964, 0.11313997209072113, 0.06783542782068253, -0.26846349239349365, 0.06928891688585281, -0.04640701040625572, -0.01914670132100582, -0.38078150153160095, -0.03744829073548317, -0.04359131678938866, -0.36283230781555176, 0.1442725956439972, 0.5466172099113464, 0.2543388307094574, 0.12036997079849243, 0.21887287497520447, 0.0913781076669693, -0.042280413210392, -0.3698079288005829, -0.40855443477630615, 0.10358694940805435, -0.3350951075553894, -0.038012515753507614, 0.06835183501243591, -0.3688528835773468, -0.15747669339179993, -0.28326475620269775, 0.5227218270301819, -0.20892375707626343, -0.07234995067119598, -0.406218945980072, 0.09330754727125168, -0.11097805947065353, 0.06748427450656891, 0.23458153009414673, 0.48686403036117554, 0.2205929309129715, 0.35424378514289856, -0.27957144379615784, -0.0774603858590126, 0.5171990394592285, -0.47381436824798584, -0.16863228380680084, 0.21755950152873993, 0.39695116877555847, 0.17397640645503998, -0.03741735592484474, -0.4593837559223175, -0.11884720623493195, 0.25292038917541504, 0.08139844983816147, -0.1838923543691635, 0.259443074464798, -0.2825562059879303, -0.008930031210184097, 0.0027261562645435333, -0.3539852797985077, 0.32170307636260986, -0.2165519893169403, -0.008174624294042587, 0.12528224289417267 ]
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.007610788103193045, -0.07861076295375824, -0.3029457628726959, -0.09332095086574554, 0.0747116282582283, 0.27884161472320557, -0.10457990318536758, 0.281440407037735, 0.12231355905532837, 0.11616472154855728, -0.1224738135933876, 0.056120093911886215, -0.0021824000868946314, 0.16593317687511444, 0.16157610714435577, -0.1614082008600235, 0.1548456847667694, 0.14454713463783264, -0.14705726504325867, 0.16119900345802307, -0.10495667904615402, -0.4687490463256836, 0.002402091398835182, -0.550488293170929, -0.11397837102413177, -0.10558287799358368, -0.29836541414260864, -0.1648692786693573, 0.04549273103475571, -0.37790530920028687, -0.22314845025539398, 0.08207771182060242, 0.11516959220170975, 0.2421448975801468, -0.00009984110511140898, -0.20893949270248413, 0.16463302075862885, 0.08921271562576294, -0.3107392489910126, 0.47217026352882385, 0.11052154004573822, -0.8047294616699219, -0.018621057271957397, -0.07868286222219467, -0.08345601707696915, -0.44464564323425293, 0.04614533483982086, -0.06365255266427994, 0.33880916237831116, -0.17676803469657898, 0.267683207988739, -0.00981318112462759, 0.37439170479774475, 0.011765667237341404, 0.13480760157108307, 0.3799750506877899, 0.16158835589885712, 0.08626282960176468, 0.7172885537147522, 0.14366541802883148, 0.33651289343833923, 0.1444842666387558, -0.13155242800712585, -0.09737326204776764, 0.2357288897037506, 0.012226433493196964, 0.17051996290683746, -0.3990066349506378, -0.015450765378773212, 0.10210662335157394, 0.38207775354385376, 0.24472348392009735, -0.5512056350708008, -0.31711673736572266, 0.21549324691295624, -0.09418519586324692, -0.37019360065460205, -0.10952295362949371, 0.15499040484428406, -0.019962046295404434, -0.2288736253976822, -0.24095797538757324, -0.08378071337938309, 0.3638654351234436, 0.05291743576526642, 0.413573294878006, 0.032413024455308914, -0.022188832983374596, -0.1271587610244751, -0.2792920470237732, -0.17286856472492218, 0.19481216371059418, -0.15500696003437042, 0.47233909368515015, -0.1161075085401535, -0.1414955109357834, -0.2426719069480896, -0.21899527311325073, 0.07745219767093658, 0.10739428550004959, 0.1769825965166092, 0.17800815403461456, -0.18558888137340546, 0.11880877614021301, 0.1672571450471878, -0.3007957935333252, -0.05793928727507591, 0.15136198699474335, 0.010031145997345448, -0.13589628040790558, 0.267392635345459, -0.06511010229587555, -0.10418933629989624, -0.15969668328762054, 0.03842758759856224, -0.10403246432542801, -0.12271076440811157, 0.005855762865394354, -0.012569009326398373, 0.011950071901082993, -0.24535514414310455, 0.12064313143491745, -0.02166283316910267, 0.0626223161816597, -0.23905859887599945, 0.0745224803686142, -0.1906953901052475, 0.2592640221118927, 0.27070969343185425, -0.2050134390592575, -0.11404301226139069, 0.1182822659611702, -0.0716913491487503, -0.15641680359840393, 0.23779422044754028, 0.11739305406808853, 0.24706928431987762, 0.027054890990257263, 0.09193301945924759, -0.036213114857673645, 0.08321817219257355, 0.010413122363388538, 0.3068698048591614, 0.20465831458568573, 0.14088623225688934, 0.05540391057729721, -0.18510060012340546, 0.19714044034481049, -0.012721740640699863, 0.08888053894042969, -0.3098219633102417, -0.005387918092310429, -0.3795256018638611, 0.28687235713005066, 0.060854628682136536, -0.19461148977279663, -0.14097167551517487, 0.36553218960762024, 0.11836480349302292, -0.2584451138973236, 0.06424382328987122, 0.09398877620697021, 0.10481639951467514, -0.37674057483673096, 0.45275720953941345, 0.03828311339020729, -0.38223814964294434, 0.04999515041708946, -0.1435532569885254, 0.30403563380241394, 0.1318434327840805, 0.03930061683058739, -0.03034036047756672, 0.14478373527526855, -0.12845146656036377, -0.12122514843940735, 0.2840680778026581, -0.16092674434185028, -0.3332790732383728, -0.014059344306588173, 0.17167788743972778, 0.13811585307121277, -0.150460883975029, 0.3285773992538452, 0.24575687944889069, -0.04757384955883026, 0.18894384801387787, 0.3833816647529602, -0.14811092615127563, -0.16542933881282806, -0.09013758599758148, -0.10939909517765045, 0.31565481424331665, 0.18651817739009857, -0.06189168244600296, -0.133762925863266, 0.28547605872154236, -0.46839961409568787, 0.1513703167438507, -0.15752527117729187, 0.3186337947845459, 0.19014254212379456, 0.18816030025482178, 0.39533114433288574, -0.06146908923983574, -0.1812358796596527, -0.17265579104423523, -0.014786173589527607, -0.13616064190864563, -0.14817240834236145, 0.14384546875953674, -0.1893932819366455, -0.044192686676979065, -0.12309062480926514, 0.12884041666984558, -0.3399835526943207, 0.2959401607513428, -0.1768559366464615, 0.04422793537378311, -0.48810672760009766, -0.0037107621319592, -0.13841256499290466, 0.2112000733613968, 0.07916130125522614, -0.20012736320495605, 0.009177515283226967, 0.2698516845703125, -0.33618810772895813, -0.22224552929401398, 0.3350798487663269, -0.10251697897911072, -0.14546345174312592, 0.1096942201256752, 0.27881309390068054, 0.06954678893089294, 0.21028649806976318, 0.2375258058309555, 0.2521240711212158, 0.09807959198951721, 0.11308077722787857, 0.20499834418296814, 0.2804633378982544, 0.007360687479376793, -0.14364266395568848, -0.09690611809492111, 0.22990262508392334, 0.08962015062570572, 0.10535633563995361, -0.2545941174030304, 0.20652304589748383, 0.26542773842811584, 0.04098891839385033, -0.09185709804296494, -0.035326745361089706, -0.20364995300769806, -0.012481659650802612, 0.2784786820411682, -0.2759416997432709, -0.13483357429504395, 0.030858587473630905, -0.4751146137714386, -0.18104390799999237, -0.1317111700773239, -0.17599958181381226, -0.45883458852767944, -0.18531659245491028, 0.1180567592382431, -0.055809322744607925, -0.17989857494831085, 0.40244433283805847, 0.18571346998214722, -0.04187953472137451, 0.2552895247936249, 0.15304256975650787, 0.01454599667340517, 0.11354685574769974, -0.04315393418073654, -0.04879239201545715, 0.3766634464263916, 0.21319903433322906, 0.15166087448596954, 0.06455153971910477, 0.005358758382499218, 0.17156432569026947, -0.09349209070205688, -0.212117537856102, -0.06364429742097855, -0.1895340234041214, 0.03928312659263611, -0.6104683876037598, -0.22982710599899292, -0.36919012665748596, -0.08151321858167648, 0.2527187764644623, -0.24119871854782104, 0.010908298194408417, 0.17691592872142792, 0.10153648257255554, 0.051488664001226425, -0.2087109535932541, 0.0035751033574342728, 0.28888460993766785, 0.0025712589267641306, 0.24556964635849, -0.04153790324926376, 0.05831650644540787, 0.5223013758659363, 0.1586531400680542, 0.21974459290504456, -0.1253727823495865, -0.5068557262420654, -0.20538628101348877, 0.0732152909040451, 0.21203888952732086, 0.19393211603164673, -0.01020700391381979, -0.08458085358142853, -0.16739706695079803, -0.09733088314533234, -0.11134286224842072, 0.11616939306259155, -0.11312393844127655, -0.14615681767463684, -0.03876231238245964, -0.24437454342842102, 0.16335739195346832, -0.4032551050186157, -0.19186660647392273, 0.10395405441522598, 0.20027318596839905, 0.04435915872454643, -0.22694285213947296, 0.2483760565519333, -0.03575726971030235, 0.11182095855474472, -0.03891174495220184, -0.1680571287870407, -0.24060186743736267, 0.5701763033866882, -0.26569581031799316, 0.0013288724003359675, -0.055221181362867355, -0.30445197224617004, 0.14069299399852753, 0.1969476044178009, -0.040401946753263474, -0.2016662359237671, -0.09544980525970459, 0.022021658718585968, -0.20209987461566925, 0.18351635336875916, 0.11469864845275879, -0.13911791145801544, -0.17911189794540405, 0.05822233110666275, -0.012134932912886143, -0.020224416628479958, 0.37343233823776245, 0.16533596813678741, -0.17200949788093567, -0.15177994966506958, -0.16492140293121338, 0.07821941375732422, 0.07899972796440125, -0.04287881776690483, 0.1349995881319046, -0.1324142962694168, 0.09056670218706131, 0.0054749492555856705, -0.09275384247303009, -0.01543766725808382, -0.11744185537099838, -0.22546102106571198, -0.009539504535496235, 0.29168474674224854, -0.14854669570922852, 0.08183717727661133, -0.19996343553066254, -0.3598058223724365, -0.07731319963932037, 0.19513696432113647, -0.4344594180583954, 0.2437218278646469, -0.2577316164970398, -0.12673529982566833, -0.4629676640033722, -0.21621181070804596, -0.00946557056158781, -0.17932115495204926, 0.21815867722034454, -0.07182709872722626, -0.3334370255470276, -0.03392144665122032, -0.5081930160522461, 0.6014180183410645, 0.2712254822254181, 0.09430009871721268, 0.4166788160800934, -0.0557100735604763, 0.07676427811384201, -0.016295725479722023, 0.3793669044971466, -0.29020586609840393, -0.3733692765235901, -0.12204435467720032, 0.06053517013788223, -0.2919299900531769, -0.06644061952829361, -0.3477964699268341, 0.11228187382221222, 0.37910082936286926, 0.4248923063278198, 0.06260029226541519, 0.0361148938536644, 0.32653000950813293, 0.5222181677818298, -0.12113598734140396, 0.06206005811691284, 0.13218806684017181, -0.11373768001794815, -0.06040704995393753, 0.09756793081760406, 0.04290143772959709, -0.0264290738850832, 0.44640761613845825, -0.16343462467193604, -0.17469356954097748, 0.13221614062786102, 0.33710986375808716, 0.19871212542057037, 0.24102744460105896, 0.3397597372531891, -0.00929886382073164, 0.06323934346437454, 0.03713469207286835, 0.3818000853061676, 0.2620842754840851, -0.12112489342689514, -0.30908405780792236, -0.2685713768005371, -0.43972048163414, 0.7446143627166748, -0.23917989432811737, 0.3427327573299408, 0.27308711409568787, -0.25580576062202454, -0.03406208008527756, -0.36825332045555115, 0.1775992512702942, 0.11662562191486359, 0.16299894452095032, -0.38984206318855286, -0.6086574196815491, 0.09506305307149887, -0.05502821505069733, -0.07544603198766708, 0.20487281680107117, -0.21199923753738403, -0.06612713634967804, 0.33108946681022644, 0.4750809073448181, 0.6668500304222107, 0.304349809885025, -0.030486617237329483, -0.0017351837595924735, -0.16814972460269928, 0.26375117897987366, -0.12494593113660812, 0.16366353631019592, -0.03477802872657776, -0.17534276843070984, 0.03631536290049553, 0.09193796664476395, 0.03537779301404953, 0.2566660940647125, -0.07705418020486832, 0.2041572779417038, -0.19329918920993805, -0.008146854117512703, -0.05216260254383087, 0.07898470759391785, 0.2488764077425003, -0.22434575855731964, -0.02522668056190014, 0.26862120628356934, -0.015581618994474411, -0.30639973282814026, -0.14890266954898834, -0.024852313101291656, -0.12788482010364532, 0.1565122902393341, -0.15640689432621002, -0.06512962281703949, -0.1435314416885376, -0.03720090538263321, 0.2617550492286682, -0.23589715361595154, -0.08954732865095139, 0.009860986843705177, 0.060989461839199066, 0.42460450530052185, 0.044421516358852386, 0.10897502303123474, 0.16076518595218658, 0.21341465413570404, -0.08798594772815704, 0.05374430865049362, 0.2833586037158966, 0.06178318336606026, -0.2197449803352356, 0.20659999549388885, 0.08770424127578735, -0.4093131124973297, -0.303245484828949, 0.021758560091257095, 0.009764835238456726, -0.38892966508865356, -0.07147525250911713, 0.4038936197757721, 0.041433583945035934, -0.17669588327407837, 0.20630989968776703, 0.26029399037361145, -0.4080253839492798, 0.3073633313179016, 0.16469013690948486, -0.1629059761762619, -0.08147101104259491, 0.062455788254737854, 0.08949057012796402, -0.3430858254432678, 0.4695490002632141, -0.09649039804935455, 0.014858828857541084, -0.24053600430488586, -0.09073392301797867, 0.0660514086484909, 0.14449436962604523, -0.17809510231018066, 0.05909787118434906, 0.10743582993745804, 0.1204388439655304, -0.08698336780071259, 0.20470096170902252, 0.03591984510421753, -0.13150471448898315, -0.3764163553714752, -0.5651540756225586, 0.2206885665655136, 0.40157192945480347, 0.2265174388885498, -0.009096352383494377, 0.10981681942939758, -0.27415931224823, 0.5316252112388611, -0.4084593951702118, 0.1374560296535492, 0.3545909821987152, 0.22901998460292816, -0.015456149354577065, -0.0441206693649292, -0.09389136731624603, -0.12437331676483154, 0.26874634623527527, -0.13834312558174133, 0.008973659947514534, -0.2991034984588623, -0.10929346084594727, 0.014618247747421265, -0.0773288905620575, -0.04491988196969032, -0.02398872561752796, 0.03090577758848667, 0.07234126329421997, -0.4569346010684967, 0.023395774886012077, -0.09685267508029938, -0.040979526937007904, 0.21980735659599304, 0.32899171113967896, 0.2789764106273651, -0.10223543643951416, 0.15245583653450012, -0.10765856504440308, -0.03753775358200073, 0.10820730030536652, 0.024584688246250153, 0.22935965657234192, -0.06674881279468536, 0.23340582847595215, 0.17454524338245392, 0.16586759686470032, -0.13939447700977325, 0.05004619434475899, 0.1432812362909317, 0.05671894922852516, -0.05365695804357529, 0.21662850677967072, 0.27772265672683716, 0.11262825131416321, 0.23965857923030853, 0.3434222936630249, 0.40502631664276123, -0.22936755418777466, 0.05863536521792412, 0.2702949047088623, 0.14690212905406952, 0.17183607816696167, 0.18468888103961945, 0.2326919585466385, 0.0667620375752449, -0.06919155269861221, -0.0993688702583313, 0.05148852616548538, -0.026422305032610893, 0.002059314167127013, 0.4193902015686035, -0.1256747990846634, -0.33339303731918335, -0.09972704201936722, -0.004982460290193558, -0.020089514553546906, 0.06952496618032455, 0.06461457163095474, 0.40334099531173706, 0.49890753626823425, -0.21406157314777374, -0.057928238064050674, -0.2152506411075592, 0.14572136104106903, 0.3286409080028534, 0.13899484276771545, 0.4616527557373047, 0.48347046971321106, 0.3421580195426941, 0.030583443120121956, -0.4088161587715149, 0.013285589404404163, 0.0493587963283062, 0.09663575887680054, 0.020399456843733788, 0.01044328324496746, -0.19428835809230804, -0.24858447909355164, -0.12244224548339844, 0.2361288219690323, -0.3936663866043091, 0.14623285830020905, -0.18884490430355072, -0.13610368967056274, -0.18758517503738403, 0.170756533741951, 0.15039019286632538, 0.20971855521202087, -0.2779640257358551, -0.07439301162958145, 0.07800094783306122, -0.1526312232017517, 0.2677414119243622, 0.17991119623184204, 0.2255946397781372, -0.025502260774374008, -0.14550822973251343, 0.3720199763774872, -0.26671481132507324, -0.09368911385536194, -0.17168228328227997, -0.035913821309804916, 0.009758378379046917, -0.06818166375160217, 0.041330449283123016, 0.2832559049129486, -0.21932323276996613, 0.23280030488967896, -0.045924779027700424, 0.1422993689775467, -0.36307233572006226, 0.026436129584908485, 0.23227347433567047, -0.5020995140075684, -0.07824768871068954, -0.32157978415489197, -0.17852094769477844, -0.4239554703235626, 0.16589075326919556, -0.38478466868400574, -0.11928368359804153, 0.19922897219657898, 0.1566547155380249, -0.13980093598365784, 0.5302139520645142, 0.6634435057640076, 0.1763305962085724, 0.05290396511554718, -0.332319974899292, -0.3900739550590515, 0.17309197783470154, -0.07071288675069809, -0.13654500246047974, -0.06411660462617874, -0.11988101154565811, 0.2669941782951355, -0.004659224767237902, 0.33453741669654846, -0.05983586236834526, -0.2998940050601959, 0.11080575734376907, -0.15353703498840332, 0.24553437530994415, -0.09548544138669968, 0.3103295564651489, 0.1946122646331787, 0.06105521321296692, -0.08677402883768082, -0.06946562975645065, 0.19327816367149353, -0.09688969701528549, 0.0020183485466986895, 0.05992134287953377, 0.09118812531232834, 0.44293633103370667, 0.2636011838912964, 0.07979381829500198, -0.43562233448028564, -0.053148310631513596, -0.3512001633644104, 0.0163179449737072, -0.35662218928337097, 0.3309922516345978, -0.05662357062101364, 0.26364320516586304, 0.009701208211481571, -0.12513522803783417, 0.2435499131679535, 0.27236607670783997, -0.05515792593359947, -0.08061870187520981, -0.24424274265766144, 0.19074343144893646, -0.16389039158821106, -0.24964110553264618, -0.09565934538841248, 0.1525159329175949, 0.059849802404642105, -0.05837998911738396, 0.01422313041985035, 0.017498573288321495, 0.04754165560007095, -0.155622661113739, -0.1403152048587799, -0.5458519458770752, -0.0969870314002037, 0.05160629749298096, 0.15644881129264832, -0.36961087584495544, -0.21711210906505585, 0.31014594435691833, 0.06613334268331528, -0.07960689812898636, 0.4425638020038605, -0.14114633202552795, -0.38183802366256714, -0.13522815704345703, 0.24222761392593384, 0.06426778435707092, 0.029686931520700455, -0.35223135352134705, -0.3934130370616913 ]
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.09215502440929413, -0.06655602157115936, -0.2976476550102234, -0.022698545828461647, 0.023151222616434097, 0.35464292764663696, -0.014462742954492569, 0.27358710765838623, 0.16726431250572205, 0.15173578262329102, -0.11430388689041138, 0.04165049269795418, -0.012731787748634815, 0.12649895250797272, 0.16265225410461426, -0.2058318853378296, 0.16964226961135864, 0.08734384179115295, -0.1048346683382988, 0.22751660645008087, -0.06049886718392372, -0.4782770574092865, -0.07643046230077744, -0.6003988981246948, -0.11632942408323288, -0.09851224720478058, -0.3571467995643616, -0.3164554536342621, 0.12150213122367859, -0.3110497295856476, -0.2560766637325287, 0.015793558210134506, 0.08849277347326279, 0.280728816986084, -0.00010333323734812438, -0.16144634783267975, 0.15034331381320953, 0.07043824344873428, -0.3406287431716919, 0.49959808588027954, 0.07926829159259796, -0.7448676824569702, -0.0671173706650734, -0.08297795057296753, -0.11952122300863266, -0.40994715690612793, 0.03611120954155922, -0.12177392840385437, 0.3469312787055969, -0.14333344995975494, 0.23014722764492035, -0.00348500139079988, 0.35084447264671326, -0.046854980289936066, 0.12032463401556015, 0.43394169211387634, 0.20896419882774353, 0.10369682312011719, 0.7045373320579529, 0.19545666873455048, 0.3622109591960907, 0.11733147501945496, -0.17492908239364624, -0.05232949182391167, 0.2249266803264618, -0.010646984912455082, 0.22379541397094727, -0.4108215570449829, -0.008679228834807873, 0.1689891815185547, 0.31991732120513916, 0.209661602973938, -0.5844902992248535, -0.34393733739852905, 0.1641148030757904, -0.08180654793977737, -0.43928006291389465, 0.009364895522594452, 0.1522534042596817, -0.025808485224843025, -0.23402631282806396, -0.24935105443000793, -0.06699203699827194, 0.41832906007766724, 0.05263111740350723, 0.4480653405189514, 0.03938233107328415, 0.03233189508318901, -0.10093804448843002, -0.24896006286144257, -0.15540847182273865, 0.14960451424121857, -0.12784817814826965, 0.39058202505111694, -0.06507527083158493, -0.13722142577171326, -0.3636050224304199, -0.2775264382362366, 0.1508692055940628, 0.08195891231298447, 0.09896496683359146, 0.11216697841882706, -0.1534661501646042, 0.1329180896282196, 0.2125651240348816, -0.3424871265888214, -0.03595716133713722, 0.2162269502878189, -0.018228499218821526, -0.15611891448497772, 0.2932980954647064, -0.09415309131145477, -0.14057835936546326, -0.15516100823879242, 0.015713727101683617, -0.08163750916719437, -0.16432009637355804, 0.10944149643182755, -0.12259010970592499, -0.05455140024423599, -0.20114506781101227, 0.07559823989868164, 0.0647478699684143, 0.1065371111035347, -0.26239582896232605, 0.003633592277765274, -0.3086777329444885, 0.24666564166545868, 0.17572346329689026, -0.2556723952293396, -0.0760076716542244, 0.12573744356632233, -0.10427112132310867, -0.1410946398973465, 0.18934985995292664, 0.11753526329994202, 0.27617084980010986, -0.0135685745626688, 0.09122086316347122, -0.13598601520061493, 0.06677132844924927, -0.04558921232819557, 0.2609441876411438, 0.13358309864997864, 0.1653192937374115, 0.02351437136530876, -0.19558638334274292, 0.1977246105670929, -0.07093449681997299, 0.08046181499958038, -0.39965227246284485, -0.018064796924591064, -0.3888206481933594, 0.24227717518806458, 0.17829735577106476, -0.10796568542718887, -0.1250012218952179, 0.37293994426727295, 0.25260838866233826, -0.3006933927536011, 0.08909202367067337, 0.06530700623989105, 0.10290843993425369, -0.335173100233078, 0.48143458366394043, 0.04246111214160919, -0.3115996718406677, 0.016070354729890823, -0.20663654804229736, 0.2904304265975952, 0.15371571481227875, 0.09123416990041733, 0.022525466978549957, 0.09541540592908859, -0.2393283247947693, -0.13793137669563293, 0.3075345754623413, -0.1951465755701065, -0.310321182012558, 0.039740417152643204, 0.1528489887714386, 0.027235884219408035, -0.1793164610862732, 0.3627093434333801, 0.3158906400203705, -0.0820767804980278, 0.21347536146640778, 0.48159921169281006, -0.20802760124206543, -0.14619402587413788, -0.008943288587033749, -0.15028664469718933, 0.3748987913131714, 0.22714388370513916, -0.054148439317941666, -0.13088886439800262, 0.27163439989089966, -0.44277021288871765, 0.18602044880390167, -0.11818006634712219, 0.37944087386131287, 0.13476701080799103, 0.1710025519132614, 0.39448800683021545, -0.06697698682546616, -0.22570888698101044, -0.22611430287361145, -0.057171087712049484, -0.062120940536260605, -0.23537074029445648, 0.21263694763183594, -0.2676014304161072, 0.02659459412097931, -0.11917044222354889, 0.15591168403625488, -0.3202858865261078, 0.2384456843137741, -0.19323045015335083, 0.1870044618844986, -0.5061724185943604, 0.06103457510471344, -0.22333243489265442, 0.2332097440958023, 0.10248474031686783, -0.24188700318336487, 0.031135516241192818, 0.28295841813087463, -0.26129740476608276, -0.2415936142206192, 0.362490713596344, -0.08741670846939087, -0.14974191784858704, 0.11790010333061218, 0.28471121191978455, 0.13077403604984283, 0.12726333737373352, 0.16168060898780823, 0.1158384159207344, 0.12299013137817383, 0.05533454194664955, 0.16226549446582794, 0.27731049060821533, -0.049448613077402115, -0.14823082089424133, -0.09236899018287659, 0.18708185851573944, 0.02177649550139904, 0.2239457368850708, -0.23520873486995697, 0.24434344470500946, 0.2990867793560028, 0.02490377426147461, -0.11082218587398529, -0.10243409872055054, -0.2274213582277298, -0.030390754342079163, 0.37084725499153137, -0.2931019961833954, -0.047608744353055954, 0.012240694835782051, -0.5297371745109558, -0.19372129440307617, -0.10632181167602539, -0.13737653195858002, -0.4725441336631775, -0.11866948753595352, 0.13798953592777252, 0.022592362016439438, -0.09700282663106918, 0.39413827657699585, 0.23774613440036774, -0.08415813744068146, 0.28252431750297546, 0.15740956366062164, -0.01249244436621666, 0.1354324370622635, -0.10457044094800949, 0.022945575416088104, 0.37182649970054626, 0.13248775899410248, 0.227226123213768, 0.06888837367296219, 0.13172848522663116, 0.1229526624083519, -0.06655345857143402, -0.1939288079738617, -0.10794293880462646, -0.21960103511810303, -0.011936219409108162, -0.6965720057487488, -0.1861795336008072, -0.3246959149837494, -0.12215320020914078, 0.2187303602695465, -0.21293659508228302, 0.03912224620580673, 0.24523784220218658, 0.14459563791751862, 0.08382107317447662, -0.1548653244972229, 0.09064025431871414, 0.28036972880363464, 0.06871756911277771, 0.20367121696472168, 0.05500556901097298, 0.15485423803329468, 0.5739243626594543, 0.10613181442022324, 0.11095625162124634, -0.21178419888019562, -0.379800021648407, -0.22121906280517578, 0.057412851601839066, 0.23414288461208344, 0.21031558513641357, -0.02125495858490467, -0.03463681414723396, -0.19801144301891327, -0.05954055115580559, -0.10201282054185867, 0.197840616106987, -0.12503010034561157, -0.08318735659122467, -0.0428711399435997, -0.22943323850631714, 0.16277074813842773, -0.47007256746292114, -0.23811054229736328, 0.052129317075014114, 0.1220855563879013, 0.09037875384092331, -0.2794121205806732, 0.30127182602882385, -0.02229546569287777, 0.06416735798120499, -0.15061968564987183, -0.15732847154140472, -0.1797427535057068, 0.46749502420425415, -0.3396630883216858, 0.12029190361499786, -0.05201030895113945, -0.32171961665153503, 0.16373759508132935, 0.18668992817401886, -0.02755754254758358, -0.14367590844631195, -0.09698294848203659, 0.05960190296173096, -0.18586383759975433, 0.16295547783374786, 0.08285686373710632, -0.24855217337608337, -0.0959441140294075, 0.10557738691568375, -0.011232879012823105, -0.002540315967053175, 0.3178333342075348, 0.18284709751605988, -0.14017131924629211, -0.07729154080152512, -0.2146826982498169, 0.18938171863555908, 0.16115084290504456, -0.06742449104785919, 0.01972029358148575, -0.2104615867137909, 0.03989188000559807, 0.03962407633662224, -0.09655915200710297, -0.028713034465909004, -0.08332476019859314, -0.22348788380622864, -0.004872342571616173, 0.27025920152664185, -0.12134013324975967, 0.1273220032453537, -0.24725627899169922, -0.390749990940094, -0.14699910581111908, 0.15261973440647125, -0.49171093106269836, 0.2618216872215271, -0.28068891167640686, -0.1275281459093094, -0.46929776668548584, -0.18871980905532837, -0.10479165613651276, -0.16140590608119965, 0.2652883529663086, -0.05833795666694641, -0.3561537265777588, -0.08445098251104355, -0.5110245943069458, 0.6042352318763733, 0.3101937770843506, 0.1707242876291275, 0.4370255172252655, -0.06542305648326874, 0.07644159346818924, 0.023264195770025253, 0.47690463066101074, -0.27460044622421265, -0.3861761689186096, -0.12496545165777206, 0.10162003338336945, -0.28263694047927856, -0.05200456455349922, -0.2705366611480713, 0.11599491536617279, 0.38765785098075867, 0.37875503301620483, 0.009586290456354618, 0.06937121599912643, 0.4424821436405182, 0.565703272819519, -0.09900270402431488, 0.026834502816200256, 0.1507280170917511, -0.09234824776649475, -0.06365691125392914, 0.12042564898729324, 0.09131159633398056, -0.05228998512029648, 0.43565359711647034, -0.2565537095069885, -0.15605828166007996, 0.14305000007152557, 0.3302808701992035, 0.11375141888856888, 0.2782666087150574, 0.2620794475078583, 0.06379684060811996, -0.006519252900034189, -0.0016999926883727312, 0.41132238507270813, 0.2880483865737915, -0.256445050239563, -0.3336549401283264, -0.20300118625164032, -0.4443609118461609, 0.7946290969848633, -0.28188666701316833, 0.32493674755096436, 0.34662991762161255, -0.25455060601234436, 0.1173110157251358, -0.3671301603317261, 0.23437894880771637, 0.09048430621623993, 0.18578477203845978, -0.48559144139289856, -0.6768805980682373, 0.02680620551109314, 0.013964129611849785, 0.04231518507003784, 0.21046729385852814, -0.280508816242218, -0.0812297910451889, 0.3251069188117981, 0.4187842607498169, 0.6144984364509583, 0.2699092924594879, -0.005869668442755938, -0.05976390093564987, -0.044175852090120316, 0.34045884013175964, -0.13144373893737793, 0.1807761937379837, 0.000691440247464925, -0.1594686210155487, 0.02496723085641861, 0.05877849459648132, -0.008183872327208519, 0.2708621323108673, -0.12016036361455917, 0.22074076533317566, -0.21523413062095642, -0.0003141217748634517, -0.2047332525253296, 0.13383173942565918, 0.12474755942821503, -0.21914413571357727, 0.09079615026712418, 0.22448155283927917, -0.01945575512945652, -0.3223441541194916, -0.12345915287733078, 0.040096405893564224, -0.034627702087163925, 0.1531699299812317, -0.14360380172729492, -0.12295034527778625, -0.0875682458281517, -0.017864804714918137, 0.2680426239967346, -0.20915846526622772, -0.05791182816028595, -0.05955515801906586, 0.04698392376303673, 0.47494450211524963, 0.08301080018281937, 0.09315720945596695, 0.10427574068307877, 0.13812300562858582, -0.14028653502464294, -0.02274053543806076, 0.22265054285526276, 0.14605258405208588, -0.1895870566368103, 0.24905893206596375, 0.17160600423812866, -0.43530407547950745, -0.3188322186470032, 0.045046620070934296, 0.04746673256158829, -0.41835904121398926, -0.1262001246213913, 0.33909663558006287, -0.014789032749831676, -0.19137999415397644, 0.16183318197727203, 0.21156543493270874, -0.45302098989486694, 0.3214585781097412, 0.1169695183634758, -0.15428373217582703, -0.10286916792392731, 0.05752725899219513, 0.10981693118810654, -0.35590338706970215, 0.46081918478012085, -0.028756793588399887, 0.028411557897925377, -0.26820075511932373, -0.07787033915519714, 0.054049573838710785, 0.09759090095758438, -0.16106075048446655, -0.016010865569114685, 0.16421093046665192, 0.13899454474449158, -0.13165508210659027, 0.11962459236383438, 0.11526063084602356, -0.16194815933704376, -0.4005553722381592, -0.517402708530426, 0.2700827717781067, 0.3813764750957489, 0.2557670772075653, 0.03526009991765022, 0.17180222272872925, -0.33377888798713684, 0.6286413669586182, -0.35032036900520325, 0.1693040430545807, 0.3655644655227661, 0.24353066086769104, -0.06968389451503754, -0.0005219620652496815, -0.1333024799823761, -0.009656399488449097, 0.20159125328063965, -0.020581034943461418, 0.08067328482866287, -0.24762751162052155, -0.044763267040252686, 0.03932863473892212, -0.07653853297233582, -0.03727751597762108, -0.04682610556483269, 0.043979525566101074, 0.05716007575392723, -0.47541287541389465, 0.05881596729159355, -0.0878189280629158, -0.1041298657655716, 0.09028984606266022, 0.33672869205474854, 0.23228658735752106, -0.12979960441589355, 0.24299758672714233, -0.09648048132658005, -0.0747145414352417, 0.08605000376701355, 0.07818983495235443, 0.2276201844215393, -0.07172223180532455, 0.13567829132080078, 0.1772407442331314, 0.3311462998390198, -0.2294767051935196, 0.05070485547184944, 0.16017155349254608, 0.05057961121201515, -0.030173830687999725, 0.2075316458940506, 0.30174046754837036, 0.12390840798616409, 0.3368942141532898, 0.3831685781478882, 0.36069315671920776, -0.2259494960308075, 0.05151795595884323, 0.2434755563735962, 0.11077801138162613, 0.2150779515504837, 0.245101660490036, 0.13423694670200348, 0.11615248024463654, -0.11131832748651505, -0.09483975172042847, 0.057956207543611526, 0.0464525930583477, 0.0027825285214930773, 0.5716443061828613, -0.07682938873767853, -0.3242095708847046, -0.09871233254671097, -0.01205930020660162, 0.010679086670279503, 0.06045805290341377, 0.06118639186024666, 0.5287554264068604, 0.48548850417137146, -0.16935250163078308, -0.1019107848405838, -0.24746812880039215, 0.14685401320457458, 0.3622615337371826, 0.13807223737239838, 0.43265894055366516, 0.39923569560050964, 0.4062812924385071, -0.09240789711475372, -0.400727778673172, -0.04853397235274315, 0.11356893181800842, 0.13695526123046875, 0.01322126667946577, 0.0804361030459404, -0.13338208198547363, -0.2592555284500122, -0.14680646359920502, 0.2556401491165161, -0.4342419505119324, 0.0638420507311821, -0.18790295720100403, -0.10465414822101593, -0.1646862030029297, 0.2017742246389389, 0.16398227214813232, 0.15766268968582153, -0.33867841958999634, -0.0578477643430233, -0.005049762316048145, -0.09240296483039856, 0.20783203840255737, 0.15468662977218628, 0.21946823596954346, -0.004599073436111212, -0.07083199918270111, 0.2528017461299896, -0.28897926211357117, -0.05312156677246094, -0.20849308371543884, -0.013286491855978966, 0.009153876453638077, -0.10111380368471146, 0.10813570022583008, 0.25207188725471497, -0.1908334195613861, 0.24337537586688995, -0.03264070674777031, 0.10041971504688263, -0.4774591326713562, 0.041666459292173386, 0.18734997510910034, -0.45576754212379456, -0.14584694802761078, -0.3373722434043884, -0.243020161986351, -0.3728684186935425, 0.16283291578292847, -0.5795016288757324, -0.08258181065320969, 0.21328194439411163, 0.13861432671546936, -0.22626982629299164, 0.4907079041004181, 0.6586551070213318, 0.2515902817249298, -0.010341295041143894, -0.3757668137550354, -0.36382555961608887, 0.12199101597070694, -0.22628538310527802, -0.06219985708594322, -0.06693429499864578, -0.13579152524471283, 0.24696066975593567, 0.031139517202973366, 0.2954438328742981, 0.00719095952808857, -0.277739554643631, 0.13083301484584808, -0.12039700895547867, 0.19894272089004517, -0.22894419729709625, 0.2858723998069763, 0.22914373874664307, -0.05138155445456505, -0.07312017679214478, -0.015564216300845146, 0.07489709556102753, -0.011862723156809807, 0.0380503386259079, 0.1570264995098114, 0.03440874442458153, 0.3442347049713135, 0.22810903191566467, 0.10829100012779236, -0.34142690896987915, 0.016309818252921104, -0.31454789638519287, 0.03574709594249725, -0.28877687454223633, 0.29735279083251953, -0.017113113775849342, 0.19583390653133392, -0.06048145145177841, -0.03290291130542755, 0.23372915387153625, 0.2723929286003113, -0.015775706619024277, -0.07427439838647842, -0.2161073088645935, 0.2192268967628479, -0.243401437997818, -0.15233635902404785, 0.03901328891515732, 0.16536176204681396, 0.03505995124578476, -0.038534242659807205, 0.1303578019142151, 0.07865181565284729, -0.016245834529399872, -0.10233424603939056, -0.14993563294410706, -0.5930965542793274, -0.015427547506988049, 0.12252669781446457, 0.06669300049543381, -0.35610735416412354, -0.22378098964691162, 0.33966976404190063, 0.10480187833309174, -0.02669125609099865, 0.3971041738986969, -0.06377390772104263, -0.3384093642234802, -0.1645893007516861, 0.21105684340000153, 0.06024142727255821, -0.012402346357703209, -0.25048571825027466, -0.4126060903072357 ]
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.016944654285907745, -0.1455656737089157, -0.3001067638397217, -0.08540037274360657, 0.12440033257007599, 0.1755867600440979, -0.06294318288564682, 0.3091179430484772, 0.1504424512386322, 0.16817894577980042, -0.1306254118680954, 0.18781742453575134, 0.030932266265153885, 0.1995355486869812, 0.10298969596624374, -0.09849376976490021, 0.06371165812015533, 0.16792559623718262, -0.2380010336637497, 0.15871787071228027, -0.07242469489574432, -0.3081825375556946, -0.06477783620357513, -0.5189902186393738, -0.08803542703390121, -0.08568369597196579, -0.24752303957939148, -0.06275983899831772, 0.016347158700227737, -0.359421968460083, -0.21946513652801514, 0.08108700811862946, 0.07977613806724548, 0.1623179316520691, -0.00009548232628731057, -0.16787129640579224, 0.17553043365478516, 0.05093688517808914, -0.2073567658662796, 0.4534384608268738, 0.08815412223339081, -0.6956602931022644, -0.03846403583884239, -0.1407383382320404, -0.14300879836082458, -0.4254903197288513, 0.019387949258089066, -0.07913359999656677, 0.39328673481941223, -0.1298876404762268, 0.3211502134799957, 0.06788134574890137, 0.36877918243408203, -0.009161134250462055, 0.16379615664482117, 0.2675369679927826, 0.09342580288648605, 0.0432247631251812, 0.6970158219337463, 0.11308693140745163, 0.19685375690460205, 0.2750152051448822, -0.05595678091049194, -0.0547928661108017, 0.22427070140838623, -0.03993295133113861, 0.17913289368152618, -0.4076254069805145, -0.029397176578640938, 0.08140627294778824, 0.361102432012558, 0.24617041647434235, -0.485521137714386, -0.2073439508676529, 0.15879333019256592, -0.10886546224355698, -0.30319899320602417, -0.14519856870174408, 0.07751539349555969, -0.00841555930674076, -0.17961739003658295, -0.22451449930667877, -0.11051785945892334, 0.2781723141670227, 0.03177331015467644, 0.4702417254447937, -0.05426708608865738, -0.047059621661901474, -0.09253809601068497, -0.21236418187618256, -0.20385383069515228, 0.25981032848358154, -0.1692332625389099, 0.3838728964328766, -0.12152648717164993, -0.13530205190181732, -0.16184693574905396, -0.23418885469436646, 0.1250404268503189, 0.07376120984554291, 0.21695110201835632, 0.22325289249420166, -0.12692846357822418, 0.11073580384254456, 0.23878085613250732, -0.21891434490680695, -0.03479564189910889, 0.10997513681650162, 0.026437843218445778, -0.075668565928936, 0.1884726732969284, -0.07732527703046799, -0.09927012026309967, -0.21769002079963684, -0.03556295111775398, -0.06198279932141304, -0.06802559643983841, -0.01856619119644165, -0.10094717890024185, 0.02520601823925972, -0.17553074657917023, 0.15997284650802612, -0.0470886267721653, 0.1785903424024582, -0.19246993958950043, 0.0894397422671318, -0.12497628480195999, 0.26918357610702515, 0.1609804630279541, -0.16696472465991974, -0.17956648766994476, 0.1405819207429886, -0.10301677882671356, -0.2629324495792389, 0.17477723956108093, 0.1583022177219391, 0.30054593086242676, 0.006082180421799421, 0.2012648582458496, -0.0010649170726537704, 0.09212111681699753, 0.05582362785935402, 0.3494168817996979, 0.25941359996795654, 0.21551726758480072, 0.004281539469957352, -0.20747606456279755, 0.19235973060131073, 0.038659680634737015, 0.0949689969420433, -0.3523135185241699, 0.030487660318613052, -0.389717698097229, 0.3262462913990021, 0.10286099463701248, -0.13230019807815552, -0.06197947636246681, 0.34178078174591064, 0.15762649476528168, -0.2634567320346832, -0.051137521862983704, 0.07619252055883408, 0.047943003475666046, -0.4188564717769623, 0.4802418053150177, 0.012473014183342457, -0.31661298871040344, 0.08207729458808899, -0.06412579864263535, 0.29902297258377075, 0.1567150056362152, 0.0775550976395607, -0.10714763402938843, 0.09468823671340942, -0.22574101388454437, -0.011232246644794941, 0.3483180105686188, -0.1518348604440689, -0.27721506357192993, 0.04119141399860382, 0.1846945434808731, 0.07083602249622345, -0.09409254044294357, 0.21174831688404083, 0.2242877185344696, -0.0889439508318901, 0.23058286309242249, 0.33819130063056946, -0.11505825072526932, -0.08231431245803833, -0.1669192910194397, -0.10360044240951538, 0.25788018107414246, 0.12456431239843369, -0.0462004654109478, -0.15194518864154816, 0.2800818383693695, -0.38614320755004883, 0.20093777775764465, -0.20137840509414673, 0.33449071645736694, 0.21949796378612518, 0.26390743255615234, 0.28555867075920105, -0.01820741593837738, -0.1426212638616562, -0.163925901055336, -0.019811950623989105, -0.19036516547203064, -0.007335731294006109, 0.1801939159631729, -0.23612196743488312, -0.1505279839038849, -0.1746351569890976, 0.08579102158546448, -0.368802934885025, 0.3643602132797241, -0.14301693439483643, 0.02846943400800228, -0.48762083053588867, -0.011334309354424477, -0.14595171809196472, 0.1322827935218811, 0.018770039081573486, -0.1852540671825409, 0.030189236626029015, 0.1393851339817047, -0.29067763686180115, -0.12645947933197021, 0.2679730951786041, -0.055255260318517685, -0.14964938163757324, 0.09367060661315918, 0.3210107982158661, 0.08131347596645355, 0.1584232747554779, 0.17770610749721527, 0.17641714215278625, 0.10587228834629059, 0.07699757814407349, 0.1516086906194687, 0.27188971638679504, 0.020132405683398247, -0.08539389073848724, -0.09763146191835403, 0.2853252589702606, 0.20930753648281097, 0.026920722797513008, -0.13854357600212097, 0.1989009976387024, 0.2945255935192108, -0.0012597300810739398, -0.13198237121105194, -0.06463012099266052, -0.21415384113788605, 0.00023243566101882607, 0.27707481384277344, -0.31243592500686646, -0.17535744607448578, 0.10003048181533813, -0.33310073614120483, -0.030512390658259392, -0.09740915894508362, -0.20623959600925446, -0.38460907340049744, -0.14529292285442352, 0.07851879298686981, -0.013772647827863693, -0.15699216723442078, 0.4487093687057495, 0.18719911575317383, -0.04617537558078766, 0.20475275814533234, 0.15811221301555634, 0.04655657336115837, 0.07213472574949265, 0.031540367752313614, 0.09492035955190659, 0.3714199364185333, 0.0627288818359375, -0.010814763605594635, 0.101358562707901, 0.012750652618706226, 0.19025567173957825, -0.16622090339660645, -0.2549057602882385, -0.009370945394039154, -0.1310875564813614, 0.024740740656852722, -0.4721279740333557, -0.1677759885787964, -0.4171992242336273, 0.026045113801956177, 0.2850015163421631, -0.3464559316635132, 0.11473031342029572, 0.1940825879573822, 0.04466408118605614, 0.0734463706612587, -0.013754071667790413, -0.02122802473604679, 0.27233606576919556, 0.01498138066381216, 0.2983078956604004, -0.04408339411020279, 0.061241861432790756, 0.46531054377555847, 0.18476131558418274, 0.10907615721225739, -0.14624696969985962, -0.601524293422699, -0.07265157997608185, 0.05478838086128235, 0.2365456372499466, 0.2434006631374359, 0.031506724655628204, -0.0687151551246643, -0.15365682542324066, -0.057948097586631775, -0.24776382744312286, -0.0023934277705848217, -0.14268194139003754, -0.13270750641822815, -0.06294255703687668, -0.35090264678001404, -0.060577552765607834, -0.28820815682411194, -0.2773611843585968, 0.03948473930358887, 0.187920942902565, 0.08910853415727615, -0.1781793236732483, 0.2530727982521057, -0.041777051985263824, 0.15337710082530975, -0.07308447360992432, -0.3125746548175812, -0.28202569484710693, 0.5944554209709167, -0.3446517884731293, -0.1548207700252533, -0.06364084035158157, -0.35784342885017395, 0.23255124688148499, 0.19826892018318176, -0.05919758230447769, -0.3129132091999054, -0.02769157849252224, -0.0003508632071316242, -0.17663979530334473, 0.14622917771339417, 0.12810859084129333, -0.14596369862556458, -0.2287902981042862, -0.052705068141222, 0.01900384947657585, 0.08991740643978119, 0.37329185009002686, 0.1933886706829071, -0.17658302187919617, -0.12034205347299576, -0.0765814259648323, 0.07061755657196045, -0.027445947751402855, 0.017436884343624115, 0.2258874773979187, -0.15893560647964478, 0.18723972141742706, 0.021604428067803383, -0.10348938405513763, 0.0051152328960597515, -0.11589116603136063, -0.20938462018966675, 0.1152484342455864, 0.27347853779792786, -0.21124352514743805, 0.036374617367982864, -0.1313430666923523, -0.3586927354335785, -0.09234058111906052, 0.21822474896907806, -0.29535943269729614, 0.17784929275512695, -0.19084367156028748, -0.06408525258302689, -0.42183542251586914, -0.1551457643508911, 0.0004919947823509574, -0.1836359202861786, 0.1839320957660675, -0.10804705321788788, -0.37859293818473816, -0.012338541448116302, -0.5417194962501526, 0.513691246509552, 0.25067776441574097, 0.07659520208835602, 0.37777644395828247, -0.10290125012397766, 0.039628494530916214, -0.1556665003299713, 0.3985159993171692, -0.30028972029685974, -0.27407124638557434, -0.10288114100694656, 0.031142957508563995, -0.291513592004776, -0.0026042626705020666, -0.4094839096069336, 0.11186029762029648, 0.4298163950443268, 0.3906329870223999, -0.05986211448907852, -0.003145120805129409, 0.3289981782436371, 0.4012628495693207, -0.15351849794387817, 0.13342083990573883, 0.058646176010370255, -0.20080940425395966, -0.19391244649887085, 0.06168457865715027, 0.1312016248703003, -0.008959277532994747, 0.423372745513916, -0.23479081690311432, -0.09386491030454636, 0.0015043058665469289, 0.28014621138572693, 0.20894686877727509, 0.35297513008117676, 0.3294101357460022, -0.013072652742266655, -0.03853342682123184, 0.0447143130004406, 0.372214674949646, 0.31861811876296997, -0.057676706463098526, -0.21164824068546295, -0.18927419185638428, -0.48615434765815735, 0.6014274954795837, -0.0915883332490921, 0.2584627568721771, 0.20552897453308105, -0.3042532801628113, 0.05868137255311012, -0.24369783699512482, 0.2452332079410553, 0.19286946952342987, 0.08156061917543411, -0.25159281492233276, -0.5197945237159729, 0.00038647057954221964, -0.11658802628517151, -0.08394724130630493, 0.22054928541183472, -0.185559943318367, -0.11905156075954437, 0.339748352766037, 0.38058632612228394, 0.7213770747184753, 0.37272244691848755, -0.04441368207335472, 0.06490909308195114, -0.208236426115036, 0.21029821038246155, -0.15145966410636902, 0.16764149069786072, -0.10847621411085129, -0.1492985337972641, 0.09273247420787811, 0.13888800144195557, 0.039461128413677216, 0.22899043560028076, -0.1073732078075409, 0.18230994045734406, -0.11570180207490921, -0.019616425037384033, -0.09453964233398438, 0.08100410550832748, 0.20409716665744781, -0.174723282456398, -0.052640385925769806, 0.27505284547805786, -0.010024678893387318, -0.2535112798213959, -0.12835995852947235, -0.14500924944877625, -0.0953415185213089, 0.01025646273046732, -0.049743279814720154, 0.04565370827913284, -0.14798018336296082, 0.011860799044370651, 0.20162083208560944, -0.20202675461769104, -0.15857967734336853, -0.0038155815564095974, 0.08049312978982925, 0.3847675323486328, -0.0004489021666813642, 0.21406546235084534, 0.20111970603466034, 0.20128531754016876, -0.08932433277368546, 0.06798052042722702, 0.2940024733543396, -0.02401328831911087, -0.22139815986156464, 0.15728268027305603, 0.08874718844890594, -0.4708002805709839, -0.2747163772583008, -0.022828366607427597, 0.061899393796920776, -0.3910626173019409, -0.046235859394073486, 0.4183834195137024, -0.06961092352867126, -0.22543080151081085, 0.2535315752029419, 0.22109828889369965, -0.44010958075523376, 0.33103424310684204, 0.28013694286346436, -0.13149596750736237, -0.05310316011309624, 0.09211266785860062, 0.12176255881786346, -0.2552762031555176, 0.41352686285972595, -0.059121642261743546, -0.0225004144012928, -0.2673147916793823, -0.177159383893013, 0.11376553028821945, 0.044948674738407135, -0.08369288593530655, 0.05878393352031708, 0.011300665326416492, 0.09819348901510239, 0.02981030009686947, 0.12164850533008575, 0.07944376021623611, -0.12786677479743958, -0.32410985231399536, -0.6035915017127991, 0.19190236926078796, 0.30206623673439026, 0.23610807955265045, -0.018614569678902626, 0.182811439037323, -0.24268510937690735, 0.5098891854286194, -0.4830342233181, 0.1032637283205986, 0.2558167278766632, 0.23380860686302185, -0.027629626914858818, -0.09496225416660309, -0.002896964317187667, -0.12418822944164276, 0.29896774888038635, -0.03621206060051918, -0.09854183346033096, -0.3450576663017273, -0.08601129055023193, 0.007972834631800652, -0.06435653567314148, -0.07865234464406967, 0.02774043194949627, 0.008465259335935116, -0.0038844351656734943, -0.36357513070106506, 0.0797458291053772, -0.10066269338130951, -0.020190900191664696, 0.22061119973659515, 0.3439672291278839, 0.24045954644680023, 0.07684915512800217, 0.11375351995229721, -0.08687800914049149, -0.030341926962137222, 0.10412813723087311, 0.023672403767704964, 0.14364874362945557, -0.10405740886926651, 0.3017789125442505, 0.1183747723698616, 0.11945486813783646, -0.08340036869049072, 0.10525990277528763, 0.08537856489419937, 0.012601478025317192, -0.10631879419088364, 0.3554544448852539, 0.21938997507095337, 0.08418222516775131, 0.24637874960899353, 0.29002055525779724, 0.4652896225452423, -0.33283987641334534, 0.09704012423753738, 0.18725991249084473, 0.10101389139890671, 0.2055879533290863, 0.15688778460025787, 0.24334676563739777, 0.017206374555826187, -0.007141959387809038, 0.04071412235498428, 0.03534277155995369, -0.09171531349420547, -0.06931881606578827, 0.3280281722545624, -0.1989978402853012, -0.2737840712070465, -0.08835914731025696, -0.09339898824691772, 0.028919974341988564, 0.12475769221782684, 0.013572122901678085, 0.39810964465141296, 0.48905035853385925, -0.16506223380565643, -0.06892537325620651, -0.12137959897518158, 0.22383736073970795, 0.27906495332717896, 0.16643786430358887, 0.44904962182044983, 0.48229318857192993, 0.3401312232017517, 0.060815244913101196, -0.4302314519882202, -0.053618449717760086, 0.10771719366312027, 0.027370838448405266, -0.05031192675232887, -0.07410562038421631, -0.21212445199489594, -0.22331763803958893, -0.08406595140695572, 0.222667396068573, -0.3029942810535431, 0.17545396089553833, -0.22928588092327118, -0.1337374448776245, -0.19969959557056427, 0.09532103687524796, 0.09331396222114563, 0.2343372404575348, -0.2704222798347473, -0.007771731354296207, 0.10151360183954239, -0.13855312764644623, 0.2698785662651062, 0.24877329170703888, 0.2883716821670532, 0.017313146963715553, -0.15223747491836548, 0.2424095869064331, -0.10982846468687057, -0.09405527263879776, -0.2680334746837616, -0.08308126777410507, 0.06701606512069702, -0.024525312706828117, 0.13394364714622498, 0.29170238971710205, -0.3056377172470093, 0.21548281610012054, 0.033137787133455276, 0.08812971413135529, -0.2701212167739868, -0.0004439581243786961, 0.23861773312091827, -0.49330058693885803, -0.12195778638124466, -0.42566004395484924, -0.2533675730228424, -0.42851772904396057, 0.07974784076213837, -0.3791305720806122, -0.010219063609838486, 0.08926119655370712, 0.17595455050468445, -0.1422221064567566, 0.5551961660385132, 0.48121878504753113, 0.07398344576358795, -0.012430104427039623, -0.31237608194351196, -0.48363327980041504, 0.21942515671253204, -0.05627582594752312, -0.13902561366558075, -0.018514318391680717, 0.001506405184045434, 0.2872326970100403, -0.013076912611722946, 0.2859381437301636, -0.058588918298482895, -0.2068437784910202, 0.07130178064107895, -0.32075265049934387, 0.24852368235588074, -0.129137322306633, 0.31004798412323, 0.23141366243362427, -0.06747832149267197, -0.06941979378461838, -0.11779036372900009, 0.2514120042324066, -0.04130715876817703, -0.011029526591300964, 0.07401769608259201, 0.1275634616613388, 0.4170662462711334, 0.22107067704200745, 0.09017917513847351, -0.46828192472457886, -0.06597398221492767, -0.3132875859737396, -0.057128794491291046, -0.39106321334838867, 0.27665621042251587, 0.051557205617427826, 0.30436545610427856, 0.07332129031419754, -0.21731150150299072, 0.14982706308364868, 0.2771361768245697, 0.0013818194856867194, -0.036009401082992554, -0.19509346783161163, 0.32855913043022156, -0.09985459595918655, -0.19761620461940765, -0.1854780614376068, 0.18602411448955536, 0.008391940966248512, -0.13331089913845062, -0.07047033309936523, -0.2347145825624466, 0.20046721398830414, -0.16237685084342957, -0.1646197885274887, -0.45158645510673523, -0.05013472959399223, 0.09920075535774231, 0.0184291061013937, -0.4311225116252899, -0.16480675339698792, 0.22436779737472534, 0.06604064255952835, -0.12289028614759445, 0.47515571117401123, -0.19300276041030884, -0.3418256640434265, -0.08455685526132584, 0.18663820624351501, 0.17293009161949158, -0.07445058971643448, -0.3311721682548523, -0.3802109360694885 ]
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.0686047151684761, -0.03053896501660347, -0.29906535148620605, -0.11018471419811249, 0.06244470551609993, 0.3354525864124298, -0.1749584674835205, 0.2741321623325348, 0.15646106004714966, 0.1322222501039505, -0.04436748847365379, 0.09031308442354202, -0.017896652221679688, 0.21457582712173462, 0.15718089044094086, -0.11048350483179092, 0.17828071117401123, 0.11951155215501785, -0.0964069589972496, 0.26447367668151855, -0.06897040456533432, -0.46591421961784363, -0.02563331462442875, -0.5230016708374023, -0.0577692873775959, -0.1176648885011673, -0.34572550654411316, -0.26897239685058594, 0.029552513733506203, -0.31388530135154724, -0.17503252625465393, 0.04571216553449631, 0.12275014072656631, 0.22571343183517456, -0.00010226160520687699, -0.1665669083595276, 0.22023352980613708, 0.08006396144628525, -0.3130413889884949, 0.36639928817749023, 0.09282663464546204, -0.747643232345581, 0.05950178951025009, -0.05588667839765549, -0.12086599320173264, -0.4913312494754791, 0.10320096462965012, -0.12030370533466339, 0.3686801493167877, -0.19974295794963837, 0.237249493598938, 0.03100019134581089, 0.38454049825668335, 0.0061083342880010605, 0.02833692356944084, 0.40115922689437866, 0.18555310368537903, 0.06206492334604263, 0.7107822299003601, 0.12199767678976059, 0.3612772226333618, 0.05515385419130325, -0.204297736287117, -0.06434142589569092, 0.24285158514976501, 0.006809732411056757, 0.1272958517074585, -0.42928847670555115, 0.0064512137323617935, 0.12348030507564545, 0.45344990491867065, 0.22519074380397797, -0.5979698896408081, -0.29792070388793945, 0.18989123404026031, -0.09868212789297104, -0.40960875153541565, -0.038418471813201904, 0.16860073804855347, 0.045528922230005264, -0.2218216359615326, -0.2193211168050766, -0.08074398338794708, 0.39979925751686096, 0.1386636197566986, 0.3918263614177704, 0.0202556811273098, -0.02499351277947426, -0.11550028622150421, -0.2687824070453644, -0.12623529136180878, 0.12362842261791229, -0.20639656484127045, 0.4528246223926544, -0.12867778539657593, -0.13737475872039795, -0.21478594839572906, -0.229248508810997, 0.10778143256902695, 0.1561010181903839, 0.16476798057556152, 0.1895727813243866, -0.2065298855304718, 0.13170789182186127, 0.21495898067951202, -0.3526521325111389, 0.005351690575480461, 0.12511025369167328, -0.003919832408428192, -0.18644088506698608, 0.34913334250450134, -0.0952049121260643, -0.09625548869371414, -0.052751366049051285, -0.02025267481803894, -0.1264340579509735, -0.13544434309005737, 0.048149507492780685, -0.08464453369379044, -0.05876336619257927, -0.2746986150741577, 0.13067325949668884, -0.020075339823961258, 0.05581054836511612, -0.22728624939918518, 0.08993960171937943, -0.18036800622940063, 0.25487467646598816, 0.30096012353897095, -0.21918471157550812, -0.06472275406122208, 0.11654924601316452, -0.05827586352825165, -0.0933067724108696, 0.19888295233249664, 0.14635510742664337, 0.21141910552978516, 0.03581123799085617, 0.08366034924983978, -0.1050402969121933, 0.09595535695552826, 0.026188591495156288, 0.24742045998573303, 0.14169003069400787, 0.21386918425559998, 0.04654574766755104, -0.1783531904220581, 0.16646265983581543, -0.0362405925989151, 0.12217047065496445, -0.4160352051258087, 0.01281661819666624, -0.38953182101249695, 0.2586480975151062, 0.12471892684698105, -0.24702373147010803, -0.22442814707756042, 0.3998590111732483, 0.09998200088739395, -0.29429277777671814, 0.07549744099378586, 0.1829732358455658, 0.11832625418901443, -0.34278950095176697, 0.48046308755874634, 0.02197086624801159, -0.33638036251068115, 0.02424785867333412, -0.1549205183982849, 0.3433932662010193, 0.10770075023174286, -0.003810393624007702, 0.00005353306914912537, 0.19867417216300964, -0.16525468230247498, -0.15885688364505768, 0.3236880898475647, -0.20998068153858185, -0.28599902987480164, -0.023859241977334023, 0.19971059262752533, 0.07166583836078644, -0.13602182269096375, 0.3386339545249939, 0.2250986546278, -0.012428323738276958, 0.2704179584980011, 0.4746153652667999, -0.10915299504995346, -0.1832759529352188, 0.02164466492831707, -0.18541260063648224, 0.2906928062438965, 0.19259047508239746, -0.13571356236934662, -0.1341416835784912, 0.3120121359825134, -0.5104281902313232, 0.17148420214653015, -0.20354585349559784, 0.3540632724761963, 0.13312506675720215, 0.2125595360994339, 0.395484060049057, -0.08580093830823898, -0.2248326539993286, -0.245314821600914, -0.023848798125982285, -0.08820883929729462, -0.19369164109230042, 0.14178083837032318, -0.2581711411476135, 0.09262058883905411, -0.1290222555398941, 0.14250966906547546, -0.3532494008541107, 0.25984129309654236, -0.22046710550785065, 0.06912819296121597, -0.5130608677864075, -0.05642997846007347, -0.16492438316345215, 0.2361111044883728, 0.06637965142726898, -0.18981999158859253, -0.04105069488286972, 0.32209670543670654, -0.319896399974823, -0.21954454481601715, 0.33755823969841003, -0.1587689071893692, -0.14906153082847595, 0.11333317309617996, 0.2951256036758423, 0.06264939904212952, 0.24539200961589813, 0.26396411657333374, 0.3063480257987976, 0.054074402898550034, 0.14005640149116516, 0.06418725848197937, 0.32346048951148987, -0.02389979548752308, -0.14544950425624847, -0.08213916420936584, 0.18681152164936066, 0.12857557833194733, 0.1723140925168991, -0.2582693099975586, 0.27777665853500366, 0.32683277130126953, 0.030629636719822884, -0.123232901096344, 0.00027994828997179866, -0.2246222347021103, -0.032574862241744995, 0.3339378535747528, -0.29608213901519775, -0.09500200301408768, 0.023766539990901947, -0.5188767313957214, -0.18178372085094452, -0.09209245443344116, -0.13160891830921173, -0.46174946427345276, -0.17246457934379578, 0.09330308437347412, -0.09778372198343277, -0.1816692054271698, 0.39111050963401794, 0.11943119764328003, -0.07055601477622986, 0.2989988625049591, 0.18789638578891754, 0.043569065630435944, 0.1824369877576828, -0.056293219327926636, -0.09727761149406433, 0.39717426896095276, 0.22245316207408905, 0.20890098810195923, 0.02217756398022175, 0.012447858229279518, 0.14621707797050476, -0.10392283648252487, -0.15177659690380096, -0.14043761789798737, -0.20717130601406097, 0.0644378811120987, -0.6927341818809509, -0.1695432811975479, -0.4011874794960022, -0.08225364983081818, 0.24752935767173767, -0.22638492286205292, 0.024604687467217445, 0.15771347284317017, 0.13072654604911804, 0.02763598971068859, -0.24046581983566284, -0.011786255985498428, 0.2374352663755417, 0.04632047563791275, 0.2038218230009079, 0.009705450385808945, 0.030584629625082016, 0.5850211977958679, 0.11059889197349548, 0.22220806777477264, -0.15313377976417542, -0.48711657524108887, -0.16130366921424866, 0.12272234261035919, 0.20281478762626648, 0.19142913818359375, -0.04551052674651146, -0.061629995703697205, -0.18747147917747498, -0.1129964143037796, -0.16464431583881378, 0.13675762712955475, -0.15633684396743774, -0.1317683905363083, -0.06782449781894684, -0.22244051098823547, 0.15382997691631317, -0.4205823540687561, -0.23225811123847961, 0.08452191203832626, 0.1622951477766037, 0.04189230501651764, -0.21984942257404327, 0.2272854596376419, 0.015568493865430355, 0.07439909130334854, -0.05590607598423958, -0.11848806589841843, -0.1790705770254135, 0.51946622133255, -0.2635307312011719, 0.004639418330043554, -0.011184840463101864, -0.3212346136569977, 0.15506701171398163, 0.1527658849954605, -0.010233549401164055, -0.27066195011138916, -0.07872100174427032, 0.06890503317117691, -0.1759994626045227, 0.15950334072113037, 0.08222761005163193, -0.19646386802196503, -0.1351795643568039, 0.08171992003917694, -0.0439852699637413, -0.0049761575646698475, 0.332884281873703, 0.16566167771816254, -0.05086420103907585, -0.11120761930942535, -0.11765463650226593, 0.09942567348480225, 0.11967127025127411, -0.10479103028774261, 0.12221039086580276, -0.22795067727565765, 0.13508082926273346, -0.00810485240072012, -0.07076513767242432, -0.13306425511837006, -0.15151028335094452, -0.1862460821866989, -0.024810435250401497, 0.28467461466789246, -0.13250382244586945, 0.04508326202630997, -0.19824667274951935, -0.43881261348724365, -0.07209532707929611, 0.09538692235946655, -0.46093302965164185, 0.23186154663562775, -0.24552881717681885, -0.12522925436496735, -0.421430766582489, -0.2600911557674408, 0.044218793511390686, -0.14153732359409332, 0.28680551052093506, -0.04178507998585701, -0.3027786910533905, -0.08758090436458588, -0.5137755870819092, 0.6783244013786316, 0.23437915742397308, 0.15151764452457428, 0.46634814143180847, -0.048782847821712494, 0.13672460615634918, -0.01998530514538288, 0.3645617365837097, -0.23933538794517517, -0.44985347986221313, -0.19443054497241974, 0.08655322343111038, -0.2527426779270172, -0.044155824929475784, -0.32357463240623474, 0.11600638926029205, 0.3699186146259308, 0.38985347747802734, 0.03686942532658577, 0.06401528418064117, 0.3046591877937317, 0.4886600971221924, -0.1422291249036789, 0.011884402483701706, 0.15540811419487, -0.13883063197135925, -0.0950959175825119, 0.03974612429738045, 0.060825422406196594, -0.005151880905032158, 0.48578542470932007, -0.24446210265159607, -0.17244412004947662, 0.18397194147109985, 0.3422127366065979, 0.08258289098739624, 0.24988898634910583, 0.31703564524650574, 0.0022909792605787516, -0.05813241004943848, 0.07591447234153748, 0.4048275947570801, 0.255545973777771, -0.1385139375925064, -0.3291586935520172, -0.24330779910087585, -0.4462718665599823, 0.7755663394927979, -0.39079776406288147, 0.31915774941444397, 0.3719857931137085, -0.22409935295581818, -0.03692714497447014, -0.4037375748157501, 0.15919044613838196, 0.1295941025018692, 0.19807612895965576, -0.3826709985733032, -0.6550889015197754, 0.11262409389019012, 0.01732424832880497, -0.02228100784122944, 0.21551473438739777, -0.2285444736480713, -0.014586313627660275, 0.3182498514652252, 0.4359496831893921, 0.6240630149841309, 0.34760943055152893, 0.040556613355875015, -0.06117487698793411, -0.21393193304538727, 0.3333137631416321, -0.11159771680831909, 0.21514606475830078, -0.015103649348020554, -0.1331290900707245, -0.018274744972586632, 0.09515104442834854, -0.018847355619072914, 0.21447858214378357, -0.04719877988100052, 0.27606016397476196, -0.1295551210641861, 0.0813131183385849, -0.06964747607707977, 0.06080445274710655, 0.2009565234184265, -0.2505062222480774, -0.009263450279831886, 0.23171858489513397, 0.041647788137197495, -0.30464187264442444, -0.19591453671455383, -0.021304821595549583, -0.06098971515893936, 0.13467974960803986, -0.15533758699893951, -0.065860316157341, -0.07603583484888077, -0.02999093011021614, 0.3038128912448883, -0.2288009226322174, -0.1412009596824646, -0.033929042518138885, -0.025702552869915962, 0.4377288222312927, 0.0033881186973303556, 0.06007024645805359, 0.10747390240430832, 0.19665399193763733, -0.11270857602357864, -0.0034191878512501717, 0.24075326323509216, 0.1189408078789711, -0.18466757237911224, 0.238810732960701, 0.1455957442522049, -0.4697573184967041, -0.27682414650917053, 0.00034698835224844515, 0.010770193301141262, -0.3005547821521759, -0.12409553676843643, 0.41216328740119934, 0.035679277032613754, -0.15333519876003265, 0.17050838470458984, 0.266961008310318, -0.3707011640071869, 0.31037917733192444, 0.12994250655174255, -0.18794333934783936, -0.05950584262609482, 0.0679803267121315, 0.054050322622060776, -0.37364500761032104, 0.48937100172042847, -0.055859457701444626, 0.005387657787650824, -0.17900417745113373, -0.10762669891119003, 0.09151528775691986, 0.21147170662879944, -0.2339436262845993, 0.0985867977142334, 0.16446487605571747, 0.19823309779167175, -0.12072813510894775, 0.14920513331890106, 0.07059302181005478, -0.1806444525718689, -0.38860538601875305, -0.5093191266059875, 0.2766164243221283, 0.3227665424346924, 0.2374882847070694, 0.11553303897380829, 0.020769335329532623, -0.2241155356168747, 0.5227137804031372, -0.36011525988578796, 0.09425153583288193, 0.3992099463939667, 0.1778467297554016, 0.03666837513446808, 0.03986348584294319, -0.11187385022640228, -0.06685672700405121, 0.20689757168293, -0.11605751514434814, 0.06475351005792618, -0.24556101858615875, -0.02625729888677597, 0.04539737477898598, -0.040268003940582275, 0.051361050456762314, -0.06313580274581909, -0.02527766302227974, 0.01559798326343298, -0.5234678983688354, 0.014789562672376633, -0.12476523965597153, -0.1039094403386116, 0.10252973437309265, 0.28080880641937256, 0.2882392108440399, -0.18437980115413666, 0.21786874532699585, -0.10109324008226395, -0.059031423181295395, 0.058356888592243195, 0.027106981724500656, 0.24433599412441254, -0.06234252080321312, 0.26355376839637756, 0.15394209325313568, 0.31843337416648865, -0.20020663738250732, 0.023245833814144135, 0.15090078115463257, 0.013754252344369888, -0.09278957545757294, 0.22797049582004547, 0.26385077834129333, 0.13146360218524933, 0.26749587059020996, 0.3891097903251648, 0.36250168085098267, -0.21047954261302948, 0.05509060621261597, 0.24484165012836456, 0.17265832424163818, 0.15296828746795654, 0.17741306126117706, 0.21894723176956177, 0.049128323793411255, -0.0819101557135582, -0.07997187227010727, 0.0684908851981163, -0.04678800329566002, -0.028063436970114708, 0.3850807845592499, -0.10993321239948273, -0.317465603351593, -0.06247149407863617, -0.01031513698399067, -0.030027322471141815, 0.03989563137292862, 0.03325749933719635, 0.39492547512054443, 0.5789946913719177, -0.21485351026058197, -0.059763118624687195, -0.21565580368041992, 0.14465685188770294, 0.29554861783981323, 0.21115753054618835, 0.477383553981781, 0.5241521000862122, 0.3342815637588501, 0.03885243833065033, -0.33864307403564453, -0.01913943700492382, 0.05986325070261955, 0.13247790932655334, 0.013039114885032177, -0.017424169927835464, -0.13905489444732666, -0.23025082051753998, -0.1648150086402893, 0.28708043694496155, -0.3954576849937439, 0.06607545167207718, -0.19788812100887299, -0.09593701362609863, -0.14312869310379028, 0.16667060554027557, 0.22474133968353271, 0.15810874104499817, -0.30852872133255005, -0.07600139081478119, 0.020859796553850174, -0.09959811717271805, 0.18761056661605835, 0.21367071568965912, 0.21489588916301727, -0.023328270763158798, -0.12481340765953064, 0.3304814398288727, -0.26855823397636414, -0.07254236936569214, -0.19516775012016296, -0.0014987126924097538, -0.010177175514400005, -0.11384616792201996, 0.003190031973645091, 0.2585466802120209, -0.16977648437023163, 0.2449403703212738, -0.12410016357898712, 0.23838037252426147, -0.45895880460739136, 0.08382871747016907, 0.2679063081741333, -0.4813741147518158, -0.05077539384365082, -0.28136637806892395, -0.15766027569770813, -0.3973488509654999, 0.1848388910293579, -0.4307299852371216, -0.16209624707698822, 0.18418733775615692, 0.14414437115192413, -0.18593944609165192, 0.5007235407829285, 0.7532907128334045, 0.21484483778476715, 0.12947870790958405, -0.2797744572162628, -0.3995545506477356, 0.17988640069961548, -0.06664041429758072, -0.10610765963792801, -0.09726011008024216, -0.16584470868110657, 0.2976008951663971, 0.01567014493048191, 0.3528471291065216, -0.05968284234404564, -0.2333124279975891, 0.0900556892156601, -0.13159619271755219, 0.24564746022224426, -0.1332494169473648, 0.30437013506889343, 0.18254834413528442, 0.01874414086341858, -0.10658886283636093, -0.0690150111913681, 0.12484510987997055, -0.11453020572662354, 0.023936372250318527, 0.13870833814144135, -0.017999088391661644, 0.4528113305568695, 0.29021793603897095, 0.0922638550400734, -0.45185837149620056, 0.02329425700008869, -0.33296823501586914, 0.03473011776804924, -0.3404892385005951, 0.31791144609451294, -0.11970878392457962, 0.11957286298274994, -0.052570074796676636, -0.1263475865125656, 0.24018651247024536, 0.23799477517604828, -0.09419483691453934, -0.0937098041176796, -0.23295991122722626, 0.1638815999031067, -0.2874906063079834, -0.25578007102012634, -0.06934718042612076, 0.12232844531536102, 0.08132000267505646, -0.07100716233253479, 0.06952110677957535, 0.05253250151872635, -0.06445183604955673, -0.19067682325839996, -0.12124164402484894, -0.5665039420127869, -0.07191771268844604, 0.04267987608909607, 0.14912614226341248, -0.30138981342315674, -0.22431230545043945, 0.342287540435791, 0.0864362120628357, -0.006353576667606831, 0.4844031035900116, -0.1697269231081009, -0.299428254365921, -0.1539604514837265, 0.23517778515815735, 0.10297320038080215, 0.010390987619757652, -0.33948734402656555, -0.38075900077819824 ]
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.06329931318759918, -0.055646996945142746, -0.2771686017513275, -0.03686390817165375, 0.06049228459596634, 0.20088115334510803, -0.08675933629274368, 0.33428576588630676, 0.23162993788719177, 0.13165469467639923, -0.04392843693494797, 0.1579211950302124, -0.0891115814447403, 0.22971153259277344, 0.1699342131614685, -0.08233936876058578, 0.1174817830324173, 0.10526473820209503, -0.23275494575500488, 0.13783039152622223, -0.15907876193523407, -0.42876383662223816, -0.002352340379729867, -0.556016206741333, -0.053002119064331055, -0.14001046121120453, -0.2512088119983673, -0.15608882904052734, -0.0858926847577095, -0.27098405361175537, -0.16125120222568512, -0.0034371393267065287, 0.06910700350999832, 0.22751782834529877, -0.00010089307761518285, -0.11848253756761551, 0.16405735909938812, -0.00955075304955244, -0.3493943512439728, 0.32998600602149963, 0.11567343026399612, -0.6480943560600281, 0.027730638161301613, -0.1890929788351059, -0.07956656813621521, -0.38082700967788696, 0.02490333840250969, -0.13722668588161469, 0.3346524238586426, -0.22322876751422882, 0.24835139513015747, 0.07444889098405838, 0.2788703441619873, -0.02020907960832119, 0.09429418295621872, 0.40975382924079895, 0.17386086285114288, 0.010954049415886402, 0.7498845458030701, 0.1245981976389885, 0.27688130736351013, 0.12573294341564178, -0.16573922336101532, -0.021629737690091133, 0.16080518066883087, 0.038263894617557526, 0.23372900485992432, -0.31217724084854126, 0.01389172300696373, 0.07775545120239258, 0.2978188097476959, 0.17813797295093536, -0.5725196003913879, -0.2732110023498535, 0.11899451166391373, -0.12417512387037277, -0.44458261132240295, -0.07845880836248398, 0.09917231649160385, 0.0009637689217925072, -0.259244441986084, -0.11054761707782745, -0.07111788541078568, 0.4402383863925934, 0.08913412690162659, 0.4257207214832306, 0.032368723303079605, -0.0025469919200986624, -0.13216306269168854, -0.2531954348087311, -0.1832224577665329, 0.09751591831445694, -0.12464848160743713, 0.4209006726741791, -0.05795001983642578, -0.1266135722398758, -0.06774315237998962, -0.3055943250656128, 0.18588818609714508, 0.10997311025857925, 0.19293907284736633, 0.21069395542144775, -0.22724637389183044, 0.15421682596206665, 0.26585862040519714, -0.2425047606229782, -0.002289773430675268, 0.20415730774402618, -0.07587035000324249, -0.1693224310874939, 0.2239779531955719, -0.04770110547542572, -0.0655767023563385, -0.006086282432079315, -0.02694009430706501, -0.03821656107902527, -0.06314446777105331, 0.09743678569793701, -0.10659890621900558, 0.010491532273590565, -0.17879720032215118, 0.032260846346616745, -0.041901201009750366, 0.1070413663983345, -0.1549941897392273, 0.05900678038597107, -0.15477143228054047, 0.2281045764684677, 0.2352561503648758, -0.22667162120342255, -0.1633026897907257, 0.08019954711198807, -0.08959764987230301, -0.2012699395418167, 0.21891547739505768, 0.2489345222711563, 0.2741268277168274, -0.04908459261059761, 0.14571166038513184, -0.08276344835758209, 0.13499563932418823, 0.038084372878074646, 0.3588131368160248, 0.11160483956336975, 0.24214155972003937, 0.005165595095604658, -0.10183179378509521, 0.17014692723751068, -0.09626784175634384, 0.08453510701656342, -0.3631029725074768, -0.06551388651132584, -0.3702998757362366, 0.2830747067928314, 0.0265309177339077, -0.1139071062207222, -0.2542053461074829, 0.33720073103904724, 0.18853510916233063, -0.1818661242723465, 0.0896437019109726, 0.059528324753046036, 0.11524266004562378, -0.366993248462677, 0.44689032435417175, 0.1134108304977417, -0.3732810616493225, 0.02272734045982361, -0.09595543146133423, 0.2931320369243622, 0.06770296394824982, 0.07071226835250854, -0.08004861325025558, 0.1440458744764328, -0.21602863073349, -0.09712022542953491, 0.4118097722530365, -0.19389721751213074, -0.31950297951698303, -0.017013482749462128, 0.1635003387928009, 0.15720896422863007, -0.08283678442239761, 0.25763607025146484, 0.32373467087745667, -0.010577481240034103, 0.3484741747379303, 0.4347502291202545, -0.14683116972446442, -0.15055784583091736, -0.05936465039849281, -0.12526308000087738, 0.29158321022987366, 0.11384835839271545, -0.1347661316394806, -0.07850000262260437, 0.3138870298862457, -0.49481290578842163, 0.2585175633430481, -0.20500488579273224, 0.3731130063533783, 0.027398191392421722, 0.28505071997642517, 0.3254343271255493, -0.08620239049196243, -0.17558474838733673, -0.3358182907104492, -0.03841705620288849, -0.18738895654678345, -0.2033320516347885, 0.15396244823932648, -0.2810044288635254, 0.020397711545228958, -0.04878048971295357, 0.09394579380750656, -0.3281691074371338, 0.29757365584373474, -0.23601986467838287, 0.0740346908569336, -0.48091980814933777, -0.041419919580221176, -0.24683888256549835, 0.17298483848571777, 0.042187485843896866, -0.22507143020629883, -0.001336204819381237, 0.28242936730384827, -0.31552234292030334, -0.2743341624736786, 0.34385520219802856, -0.16672858595848083, -0.15991926193237305, 0.13412071764469147, 0.24374321103096008, 0.033438023179769516, 0.15773487091064453, 0.24640841782093048, 0.1587115079164505, -0.007062220945954323, 0.22507822513580322, 0.13977420330047607, 0.25730100274086, -0.1308220773935318, -0.19302807748317719, -0.053935278207063675, 0.23138830065727234, 0.11184313893318176, 0.19382186233997345, -0.23549704253673553, 0.22264258563518524, 0.2522434592247009, -0.0014299277681857347, -0.1625969409942627, -0.10344451665878296, -0.2591075003147125, 0.03647949546575546, 0.3868325352668762, -0.28243204951286316, -0.057886045426130295, 0.09667565673589706, -0.34479135274887085, -0.14866428077220917, -0.07396737486124039, -0.22480903565883636, -0.47276759147644043, -0.20040328800678253, 0.10418269783258438, 0.01749512180685997, -0.052300676703453064, 0.43737369775772095, 0.19975833594799042, -0.09586336463689804, 0.365217000246048, 0.1758297085762024, 0.007163168862462044, 0.13413938879966736, -0.07811030745506287, 0.05654647946357727, 0.4229615330696106, 0.14540128409862518, 0.17834018170833588, 0.049587905406951904, 0.04054264351725578, 0.07784218341112137, -0.1019480898976326, -0.23479603230953217, -0.06077149882912636, -0.19699688255786896, 0.035981811583042145, -0.6457635164260864, -0.1388043761253357, -0.3514401912689209, -0.07892889529466629, 0.2720775306224823, -0.32461854815483093, -0.018663888797163963, 0.09615128487348557, 0.09402167052030563, 0.06816322356462479, -0.27812618017196655, 0.07357238233089447, 0.2336941361427307, 0.02974310889840126, 0.21810446679592133, -0.08712440729141235, 0.003438526066020131, 0.5335655808448792, 0.18267369270324707, 0.15184172987937927, -0.16397696733474731, -0.4550439417362213, -0.08373747020959854, 0.07827810943126678, 0.2234656810760498, 0.33388394117355347, -0.033323872834444046, -0.03056924231350422, -0.23490023612976074, 0.012292071245610714, -0.04777565225958824, 0.03193901479244232, -0.15809884667396545, -0.060386642813682556, -0.05062107369303703, -0.28784188628196716, 0.05730428546667099, -0.40498805046081543, -0.25390738248825073, 0.06818591803312302, 0.2193063497543335, 0.11333420127630234, -0.19748811423778534, 0.28855738043785095, -0.02210053987801075, 0.14971105754375458, -0.21287544071674347, -0.26041141152381897, -0.21324506402015686, 0.5349239706993103, -0.31959232687950134, 0.05046704784035683, -0.12545545399188995, -0.38931697607040405, 0.27633893489837646, 0.29122838377952576, 0.01725492998957634, -0.2947855293750763, 0.04366506263613701, 0.10515695810317993, -0.10989221185445786, 0.21924962103366852, 0.20757287740707397, -0.11530176550149918, -0.1686353236436844, -0.04329351708292961, 0.05793255195021629, 0.05003649368882179, 0.37314948439598083, 0.23423850536346436, -0.15227405726909637, -0.14617028832435608, -0.07762868702411652, 0.19711773097515106, 0.07837971299886703, -0.07745292782783508, 0.12730737030506134, -0.14766116440296173, 0.11181996762752533, -0.025834815576672554, -0.07680035382509232, -0.18383994698524475, -0.19543302059173584, -0.2768787145614624, -0.005143445450812578, 0.1864016056060791, -0.06206495687365532, 0.08979159593582153, -0.09011384099721909, -0.4138380289077759, -0.14335757493972778, 0.22936834394931793, -0.4528874456882477, 0.18332627415657043, -0.17981857061386108, -0.053908027708530426, -0.5003440380096436, -0.09583105146884918, -0.03210561349987984, -0.27951475977897644, 0.3314749002456665, -0.08261045813560486, -0.40404561161994934, 0.01064413134008646, -0.48546096682548523, 0.6610719561576843, 0.2718070447444916, 0.02657209523022175, 0.5393339395523071, -0.18537268042564392, 0.032559771090745926, 0.0023205687757581472, 0.40789636969566345, -0.26258519291877747, -0.3478538990020752, -0.11251511424779892, 0.001658218796364963, -0.28872546553611755, -0.09324349462985992, -0.33494797348976135, 0.12296144664287567, 0.37084394693374634, 0.3897210359573364, -0.023839080706238747, 0.13304926455020905, 0.2525302469730377, 0.4104083478450775, -0.16560542583465576, 0.07728972285985947, 0.10772033035755157, -0.08943657577037811, -0.03342503309249878, 0.03572917357087135, 0.031130146235227585, -0.003164855996146798, 0.44755327701568604, -0.2872540056705475, -0.13445182144641876, 0.1289484202861786, 0.2831684947013855, 0.10023869574069977, 0.37884974479675293, 0.2231845259666443, 0.016169119626283646, -0.12644489109516144, 0.05921468883752823, 0.3904910385608673, 0.34115418791770935, -0.25313910841941833, -0.23157845437526703, -0.20586885511875153, -0.5123682022094727, 0.6896955966949463, -0.253587007522583, 0.2955571115016937, 0.33730876445770264, -0.3510531485080719, 0.01882515288889408, -0.34061136841773987, 0.1701040416955948, 0.10075590014457703, 0.08428017050027847, -0.3459068238735199, -0.5909573435783386, 0.053134240210056305, -0.11617037653923035, -0.04685211181640625, 0.18682052195072174, -0.30118638277053833, -0.12002748996019363, 0.4250341057777405, 0.448088675737381, 0.5949056148529053, 0.3401124179363251, 0.08707316964864731, -0.05577336624264717, -0.03332800790667534, 0.298617959022522, -0.07625892758369446, 0.1441030502319336, -0.025899738073349, -0.07500565052032471, 0.01510646753013134, 0.09212544560432434, -0.07611788809299469, 0.32335370779037476, -0.0840923860669136, 0.15749815106391907, -0.15573394298553467, 0.007782305590808392, -0.11164726316928864, 0.05398570001125336, 0.2207532674074173, -0.19852092862129211, -0.021007537841796875, 0.23529008030891418, 0.03355596959590912, -0.26148611307144165, -0.17236080765724182, -0.07046551257371902, -0.10752241313457489, 0.03036968968808651, -0.06263083964586258, -0.047148361802101135, -0.16931627690792084, 0.0062613822519779205, 0.3074278235435486, -0.27848753333091736, -0.22130562365055084, -0.10354019701480865, -0.06844260543584824, 0.443047434091568, 0.04714329168200493, 0.03541772812604904, 0.219332754611969, 0.30945566296577454, -0.0641486868262291, -0.0689178928732872, 0.2699544429779053, 0.15166370570659637, -0.11440735310316086, 0.22254082560539246, 0.13024266064167023, -0.4746188819408417, -0.35394781827926636, 0.011416645720601082, -0.0010117738274857402, -0.4632719159126282, -0.13429220020771027, 0.4919712543487549, -0.007393389008939266, -0.15617693960666656, 0.1699606329202652, 0.21097281575202942, -0.414381206035614, 0.35745397210121155, 0.1502196043729782, -0.15700003504753113, -0.00963884498924017, 0.08310076594352722, 0.15532439947128296, -0.27400463819503784, 0.41140881180763245, -0.040793031454086304, 0.033474937081336975, -0.22004322707653046, -0.22465357184410095, 0.18505607545375824, 0.09832848608493805, -0.1128590777516365, 0.09885025024414062, 0.10106291621923447, 0.11593297123908997, -0.0018395946826785803, 0.1043529137969017, 0.20664052665233612, -0.19129520654678345, -0.2985825836658478, -0.565902054309845, 0.31585246324539185, 0.3864017128944397, 0.26731523871421814, 0.05489972606301308, 0.15966016054153442, -0.2889729142189026, 0.5095255374908447, -0.39535975456237793, 0.01659068837761879, 0.3821214735507965, 0.2297488898038864, 0.04159644991159439, -0.01190941035747528, -0.01958131231367588, -0.049675390124320984, 0.23208247125148773, -0.04333016276359558, -0.03430335968732834, -0.29691529273986816, -0.04510103538632393, 0.033753614872694016, -0.06894072145223618, 0.10604950040578842, -0.0016055753221735358, 0.13313248753547668, 0.09117043763399124, -0.485699325799942, 0.07865087687969208, -0.023521458730101585, -0.07837110757827759, 0.14187219738960266, 0.3187413215637207, 0.33814576268196106, -0.15515875816345215, 0.23613019287586212, -0.09278673678636551, -0.026969807222485542, 0.02847316488623619, 0.08292015641927719, 0.17815664410591125, -0.08960535377264023, 0.19781601428985596, 0.13715174794197083, 0.237111434340477, -0.013011972419917583, 0.136073037981987, 0.16718316078186035, 0.013783128932118416, -0.1930581033229828, 0.2749156057834625, 0.2787076234817505, 0.08962048590183258, 0.2042454183101654, 0.2675207257270813, 0.4182380735874176, -0.22214634716510773, 0.11892015486955643, 0.19312192499637604, 0.09851280599832535, 0.17229902744293213, 0.20651507377624512, 0.16169223189353943, 0.09202946722507477, 0.019703462719917297, -0.05659888684749603, 0.12042001634836197, -0.04418443515896797, -0.0036644062492996454, 0.4070054888725281, -0.129193976521492, -0.2746014893054962, -0.14285042881965637, -0.13862769305706024, 0.011245339177548885, 0.04621300846338272, 0.05057757720351219, 0.43574199080467224, 0.5020405650138855, -0.22151528298854828, -0.038113467395305634, -0.18221226334571838, 0.18334464728832245, 0.34434574842453003, 0.20335371792316437, 0.6369603872299194, 0.4767533242702484, 0.3960195779800415, 0.019037563353776932, -0.33412766456604004, -0.022869298234581947, 0.04559500142931938, 0.06437153369188309, 0.023312658071517944, -0.05587762966752052, -0.1345076709985733, -0.2604803442955017, -0.1258264183998108, 0.18253014981746674, -0.3170455992221832, 0.09324018657207489, -0.24001845717430115, -0.09769236296415329, -0.20198631286621094, 0.13596729934215546, 0.0750066488981247, 0.12254269421100616, -0.3271101713180542, -0.005100925453007221, 0.07152089476585388, -0.06446866691112518, 0.15214420855045319, 0.23371197283267975, 0.17770907282829285, 0.034566693007946014, -0.031332988291978836, 0.260405957698822, -0.24685794115066528, -0.06412959843873978, -0.34134647250175476, -0.1032402515411377, -0.029290882870554924, -0.14202682673931122, 0.11729412525892258, 0.2845403850078583, -0.21585968136787415, 0.25408580899238586, -0.054398488253355026, 0.027883296832442284, -0.3220424950122833, 0.11233645677566528, 0.3016871213912964, -0.5159485936164856, -0.10867419838905334, -0.29092371463775635, -0.27376052737236023, -0.4126056730747223, 0.0989285334944725, -0.38855165243148804, -0.043059468269348145, 0.1713314801454544, 0.15356852114200592, -0.14312215149402618, 0.5102574229240417, 0.6492153406143188, 0.18049566447734833, -0.013903648592531681, -0.24361935257911682, -0.35871854424476624, 0.22360549867153168, -0.08854307234287262, -0.10903024673461914, -0.14533783495426178, -0.008895331993699074, 0.30298662185668945, 0.026252832263708115, 0.267139196395874, -0.050415534526109695, -0.3545338213443756, 0.18820586800575256, -0.18079303205013275, 0.17389576137065887, -0.18747077882289886, 0.27078601717948914, 0.2503413259983063, -0.09936991333961487, -0.13842852413654327, 0.017048420384526253, 0.16610519587993622, -0.15525491535663605, 0.016129344701766968, 0.09091402590274811, 0.10354170948266983, 0.48253199458122253, 0.32264482975006104, 0.056397534906864166, -0.4423961341381073, -0.050533924251794815, -0.3334939777851105, 0.0036295775789767504, -0.29955822229385376, 0.285417765378952, -0.05474970489740372, 0.1813039630651474, 0.026779262349009514, -0.179547518491745, 0.1609041392803192, 0.2777336835861206, -0.0023226444609463215, -0.1297566145658493, -0.22781658172607422, 0.247431218624115, -0.2702030837535858, -0.26764869689941406, -0.1234767735004425, 0.17614631354808807, 0.04892924055457115, -0.009259657002985477, 0.011043313890695572, -0.0646984726190567, 0.013662409968674183, -0.1957700401544571, -0.12206242978572845, -0.5525930523872375, 0.029075421392917633, 0.06592109799385071, -0.0016195274656638503, -0.3800118565559387, -0.24544771015644073, 0.3684583008289337, 0.10215497761964798, -0.011796962469816208, 0.40228694677352905, -0.1692766547203064, -0.27769941091537476, -0.18907047808170319, 0.24031858146190643, 0.0850917175412178, -0.08212414383888245, -0.25698187947273254, -0.4197179675102234 ]
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.04496295005083084, 0.03150567412376404, -0.26236042380332947, -0.062033236026763916, 0.07125964015722275, 0.1740819811820984, -0.04355531185865402, 0.2856452167034149, 0.2927056550979614, 0.06880275905132294, -0.045228347182273865, 0.2766706645488739, -0.06152574345469475, 0.09913703054189682, 0.013435645960271358, -0.2535322308540344, 0.14736789464950562, 0.1497773826122284, -0.3047789931297302, 0.18896843492984772, -0.10461991280317307, -0.3813796639442444, -0.07923521846532822, -0.44546782970428467, -0.12650622427463531, -0.25608375668525696, -0.1376861035823822, -0.2588271498680115, -0.02915322035551071, -0.4197900593280792, -0.11894982308149338, -0.10647433996200562, 0.0321359783411026, 0.21908868849277496, -0.00010703937005018815, -0.07775875180959702, 0.318246990442276, 0.07587619870901108, -0.32917553186416626, 0.28818872570991516, 0.07442492246627808, -0.5883305072784424, 0.18959301710128784, -0.14833742380142212, 0.0005680072354152799, -0.5663409233093262, -0.0038557816296815872, -0.2213459461927414, 0.4242576062679291, -0.1464165598154068, 0.21430669724941254, -0.000961549929343164, 0.3605848252773285, 0.1151256337761879, 0.24991430342197418, 0.3350798487663269, -0.036136701703071594, 0.0528886616230011, 0.6350504159927368, 0.029799701645970345, 0.15892243385314941, 0.2770672142505646, -0.02031814120709896, -0.0861724391579628, 0.12914861738681793, 0.12199463695287704, 0.18450447916984558, -0.2338155210018158, 0.032968878746032715, 0.15127001702785492, 0.46209385991096497, 0.15983960032463074, -0.5492649078369141, -0.12958231568336487, 0.058723654597997665, -0.08401171863079071, -0.28293076157569885, -0.1689482182264328, 0.10158546268939972, 0.004141145385801792, -0.0054868957959115505, -0.1655527651309967, -0.08787349611520767, 0.44079887866973877, 0.14861327409744263, 0.4273611605167389, 0.06450561434030533, 0.06998129934072495, -0.0995413213968277, -0.27753156423568726, -0.09161348640918732, 0.14966662228107452, -0.16024300456047058, 0.410499632358551, -0.07137774676084518, -0.012885547243058681, -0.25688570737838745, -0.3334089517593384, 0.02205478586256504, 0.10188350081443787, 0.3762001097202301, 0.19020134210586548, -0.16301901638507843, 0.09823867678642273, 0.27468639612197876, -0.20059378445148468, 0.0142448665574193, 0.2476573884487152, -0.10375278443098068, -0.25088945031166077, 0.27564945816993713, -0.056203555315732956, -0.08327669650316238, -0.0784713476896286, 0.07063555717468262, -0.17465201020240784, -0.22136595845222473, 0.0792391374707222, 0.004904253873974085, 0.019723912701010704, -0.017555968835949898, 0.074481301009655, -0.0832478255033493, 0.14532460272312164, -0.053471632301807404, 0.2024698108434677, -0.18786294758319855, 0.24925640225410461, 0.30359864234924316, -0.06390642374753952, -0.06254229694604874, 0.07524159550666809, -0.21450789272785187, -0.20988555252552032, 0.07729611545801163, 0.37090104818344116, 0.18557441234588623, -0.010002091526985168, 0.0702609047293663, -0.0770585685968399, 0.1091509610414505, -0.1297926902770996, 0.428498774766922, 0.07619542628526688, 0.05684635788202286, 0.03175269067287445, -0.10388007014989853, 0.08155956864356995, -0.02198822982609272, 0.12197345495223999, -0.3230205774307251, -0.04184389114379883, -0.482115238904953, 0.19926336407661438, 0.1621776819229126, -0.14132876694202423, -0.2607133984565735, 0.27044621109962463, 0.17664198577404022, -0.3363068103790283, 0.15164391696453094, 0.0775424912571907, 0.20248840749263763, -0.4990920424461365, 0.3427675664424896, 0.0446179024875164, -0.41701453924179077, 0.032852672040462494, -0.10635436326265335, 0.4234543442726135, 0.21257410943508148, 0.13933126628398895, -0.1623224914073944, 0.03434646874666214, -0.057821836322546005, -0.013651669025421143, 0.5873198509216309, -0.25021588802337646, -0.2744026482105255, -0.00860994029790163, 0.13925710320472717, 0.15362150967121124, -0.06923684477806091, 0.24538199603557587, 0.1563033014535904, 0.02499755099415779, 0.23888495564460754, 0.4077865779399872, -0.006561472080647945, -0.1438526213169098, 0.00022124011593405157, -0.08870715647935867, 0.11448647826910019, 0.15124395489692688, -0.26631253957748413, -0.3306487202644348, 0.30422550439834595, -0.6410687565803528, 0.21320457756519318, -0.2068176120519638, 0.4185774624347687, 0.08800367265939713, 0.22647707164287567, 0.3680987060070038, 0.022747041657567024, -0.01489449292421341, -0.3838593661785126, -0.020650431513786316, -0.056917428970336914, -0.23034174740314484, -0.046718426048755646, -0.25950029492378235, 0.005536530166864395, 0.04649220034480095, 0.101862832903862, -0.1722167432308197, 0.21308296918869019, -0.2088262289762497, 0.10285795480012894, -0.44346171617507935, -0.022121362388134003, -0.21941623091697693, 0.06200413405895233, 0.08422807604074478, -0.059372082352638245, -0.04887231066823006, 0.2604755759239197, -0.36714449524879456, -0.27660197019577026, 0.3287089765071869, -0.2676295340061188, -0.08744269609451294, 0.006695491727441549, 0.3033411502838135, 0.21575042605400085, 0.16850224137306213, 0.13342055678367615, 0.15849825739860535, -0.03533848375082016, 0.06638606637716293, 0.1497315764427185, 0.2639796733856201, 0.045388419181108475, -0.1659340262413025, -0.16545510292053223, 0.20215773582458496, 0.045425791293382645, 0.3024059236049652, -0.20255373418331146, 0.2945614755153656, 0.35308629274368286, 0.05623042955994606, -0.19309113919734955, -0.09532354027032852, -0.2077767699956894, -0.09791594743728638, 0.31899553537368774, -0.2392760068178177, -0.06457801163196564, 0.010941621847450733, -0.20848624408245087, 0.025828184559941292, 0.022398430854082108, -0.19275355339050293, -0.5307372808456421, -0.10574191063642502, 0.18698793649673462, 0.08481467515230179, -0.17192594707012177, 0.3399723768234253, 0.12590131163597107, -0.26472342014312744, 0.25183436274528503, 0.0908784419298172, 0.07779370248317719, 0.0999109148979187, 0.15628263354301453, 0.009763598442077637, 0.3862089216709137, 0.0888931080698967, 0.09863393008708954, 0.03927634656429291, 0.04266509413719177, 0.037028659135103226, -0.00831812247633934, -0.16056878864765167, 0.00011003333929693326, -0.18035805225372314, 0.051624931395053864, -0.6276810169219971, -0.0828133299946785, -0.31521955132484436, -0.11169002205133438, 0.1336808204650879, -0.35482290387153625, 0.06829434633255005, 0.042855314910411835, 0.004791588988155127, 0.016283685341477394, -0.3871847987174988, -0.0655822828412056, 0.05678047239780426, 0.04325730726122856, 0.1481972485780716, -0.02402520552277565, -0.09515556693077087, 0.458532452583313, 0.3018178343772888, 0.2761399745941162, -0.09243800491094589, -0.43892115354537964, -0.0779128149151802, -0.0016338344430550933, -0.042575906962156296, 0.30888086557388306, -0.07896500825881958, -0.2523449957370758, -0.18311510980129242, -0.010517275892198086, -0.15695658326148987, 0.06491228193044662, -0.12486284971237183, -0.09389587491750717, -0.07433038204908371, -0.21834173798561096, -0.03309190273284912, -0.32346469163894653, -0.33840471506118774, 0.2372867465019226, 0.20950065553188324, 0.07718510925769806, -0.31314027309417725, 0.3482193350791931, 0.03564341366291046, -0.021995769813656807, -0.12711216509342194, -0.14886854588985443, 0.06724383682012558, 0.5090063810348511, -0.27555444836616516, -0.0019020832842215896, -0.06435489654541016, -0.42457282543182373, 0.28669270873069763, 0.3556598424911499, -0.07192472368478775, -0.09998957067728043, -0.18160288035869598, 0.0792025625705719, -0.2332165241241455, 0.26401692628860474, 0.25811588764190674, 0.09314145147800446, -0.17589548230171204, -0.01975294202566147, 0.00013856650912202895, 0.15560589730739594, 0.33794957399368286, 0.10888709872961044, -0.004856400191783905, -0.04216514900326729, -0.1415073275566101, 0.24146509170532227, 0.03860088437795639, -0.05040239170193672, 0.08487416058778763, -0.20948359370231628, 0.036474473774433136, -0.029440609738230705, 0.0693504586815834, -0.14761507511138916, -0.19580654799938202, -0.10112853348255157, -0.054555971175432205, 0.16006053984165192, -0.24528440833091736, 0.049012891948223114, -0.0047936392948031425, -0.4095490276813507, -0.0989038497209549, 0.4397298991680145, -0.5884215235710144, 0.23964329063892365, -0.2576620876789093, -0.11255626380443573, -0.43543028831481934, -0.15123538672924042, 0.02983076684176922, -0.44786447286605835, 0.2770804166793823, -0.15280191600322723, -0.19973339140415192, -0.0024502549786120653, -0.5094038844108582, 0.6173357367515564, 0.3407271206378937, 0.14169113337993622, 0.5109150409698486, -0.27034685015678406, 0.038893602788448334, -0.022473085671663284, 0.14454969763755798, -0.3867681324481964, -0.4822346270084381, -0.14896315336227417, 0.056524407118558884, -0.5446115732192993, 0.04539573937654495, -0.42964643239974976, 0.07893767952919006, 0.1753779500722885, 0.3766128122806549, -0.1923595666885376, 0.0562489852309227, 0.15640239417552948, 0.2604745626449585, -0.15541668236255646, 0.12057463079690933, 0.1243770495057106, 0.004646090790629387, -0.10294461250305176, 0.06791192293167114, 0.1699337512254715, -0.04743869602680206, 0.5780172944068909, -0.2204652726650238, -0.26048657298088074, 0.16719567775726318, 0.11818896234035492, 0.12095171213150024, 0.44115445017814636, 0.15971849858760834, -0.1065879762172699, -0.06802738457918167, 0.1769416779279709, 0.28699684143066406, 0.4402088224887848, -0.13637208938598633, -0.1719539612531662, -0.27131497859954834, -0.4779587388038635, 0.7552836537361145, -0.1796364039182663, 0.24908556044101715, 0.5026302933692932, -0.41509371995925903, -0.08199670165777206, -0.18273505568504333, 0.04271624609827995, 0.20521870255470276, 0.12934523820877075, -0.26902392506599426, -0.567509651184082, 0.18691374361515045, 0.0669858306646347, -0.1112222895026207, 0.44966548681259155, 0.042633868753910065, -0.025316275656223297, 0.5850724577903748, 0.47802069783210754, 0.7165128588676453, 0.3173343241214752, 0.18462516367435455, 0.04636576771736145, -0.327240526676178, 0.4004526138305664, 0.07016588002443314, 0.08080800622701645, -0.05479525774717331, 0.10254120826721191, 0.0009734372142702341, 0.017970655113458633, -0.13840937614440918, 0.2876405417919159, -0.15188883244991302, 0.15002742409706116, -0.23678450286388397, 0.01008401159197092, -0.13304558396339417, 0.05802455171942711, 0.17339305579662323, -0.28230729699134827, 0.04918120428919792, 0.14563187956809998, 0.002342662774026394, -0.41670188307762146, -0.12464570254087448, -0.08056291937828064, -0.24267926812171936, -0.05453640967607498, -0.13808706402778625, -0.03214135393500328, -0.283096045255661, 0.02153640426695347, 0.3141745924949646, -0.36135047674179077, -0.04514198377728462, -0.014528021216392517, -0.11506552249193192, 0.3307727873325348, 0.06431905925273895, 0.0906222015619278, 0.29424113035202026, 0.1756628304719925, -0.12491486966609955, -0.07586570084095001, 0.25060996413230896, 0.09689223766326904, -0.07301327586174011, 0.24330316483974457, -0.03325505927205086, -0.5641129612922668, -0.2155822366476059, 0.045595698058605194, 0.08021749556064606, -0.25660988688468933, -0.15020115673542023, 0.42976582050323486, -0.3009395897388458, -0.08321979641914368, 0.16202040016651154, 0.18805533647537231, -0.2602071464061737, 0.333682119846344, 0.26050999760627747, -0.23565924167633057, 0.01564759947359562, -0.045006223022937775, 0.14541754126548767, -0.2462286651134491, 0.5600541830062866, 0.004874924197793007, -0.07441817224025726, -0.228559210896492, -0.3298822045326233, 0.3779740333557129, -0.160048708319664, -0.10202604532241821, 0.0367770753800869, -0.028991522267460823, 0.19164757430553436, 0.08712305128574371, 0.2979384958744049, 0.30233219265937805, -0.3340015411376953, -0.22698485851287842, -0.5539457201957703, 0.4804138243198395, 0.29717060923576355, 0.2122284173965454, -0.07007546722888947, -0.1323898881673813, -0.24158014357089996, 0.5198346376419067, -0.36496108770370483, 0.054179705679416656, 0.3694395422935486, 0.2712548077106476, -0.007891052402555943, 0.033866990357637405, 0.12953492999076843, 0.0011187419295310974, 0.22685140371322632, -0.011824654415249825, 0.0886298418045044, -0.25766023993492126, -0.037760179489851, 0.06663668900728226, -0.07066690176725388, -0.023744575679302216, -0.1256181299686432, -0.05102071538567543, 0.050598204135894775, -0.4686257839202881, -0.02842075563967228, -0.13688959181308746, -0.23456932604312897, 0.09677568078041077, 0.23780161142349243, 0.28971728682518005, -0.11851337552070618, 0.26202327013015747, -0.1800413280725479, -0.021749308332800865, 0.006946380715817213, 0.046249181032180786, 0.2865625321865082, -0.18054500222206116, 0.37996718287467957, 0.13362400233745575, 0.1907668262720108, -0.054663725197315216, 0.010819626040756702, 0.07263430953025818, -0.05744653940200806, -0.27920106053352356, 0.29095661640167236, 0.26436740159988403, 0.11835439503192902, 0.10864736884832382, 0.2221927046775818, 0.34426167607307434, -0.23631837964057922, -0.0017846620175987482, -0.14963799715042114, 0.1602112352848053, 0.23202796280384064, 0.23475518822669983, 0.15506306290626526, -0.013855600729584694, -0.09157490730285645, -0.05100342631340027, -0.2042003571987152, -0.2594505548477173, -0.11911765486001968, 0.41843312978744507, -0.05612501502037048, -0.3389958441257477, -0.1105775237083435, -0.02965931035578251, 0.04584217816591263, -0.007733799517154694, 0.028705652803182602, 0.40618687868118286, 0.6985000967979431, -0.12525413930416107, -0.1514202505350113, -0.0195994284003973, 0.06242067739367485, 0.31484490633010864, 0.18652750551700592, 0.5614484548568726, 0.5762031078338623, 0.34747910499572754, 0.287039190530777, -0.3146396577358246, -0.013295452110469341, -0.11932460963726044, 0.029967978596687317, -0.06447574496269226, -0.11116153746843338, -0.06450152397155762, -0.3055882453918457, -0.18944771587848663, 0.10123753547668457, -0.19426584243774414, 0.3417071998119354, -0.10869932919740677, 0.05479476600885391, -0.2436424195766449, 0.24849829077720642, 0.175633504986763, 0.3531358540058136, -0.3195335865020752, 0.023314200341701508, 0.013095424510538578, -0.02881793864071369, 0.03250761702656746, 0.30759671330451965, 0.17834991216659546, 0.02848244644701481, -0.13927678763866425, 0.2700139880180359, -0.19183394312858582, -0.11151187121868134, -0.13922332227230072, 0.13889214396476746, 0.13434328138828278, -0.22076553106307983, 0.20253893733024597, 0.24869419634342194, -0.1949062943458557, 0.2103409320116043, -0.12086289376020432, 0.05236304551362991, -0.19644854962825775, 0.21500761806964874, 0.20536361634731293, -0.5519219040870667, -0.12388557940721512, -0.1983913630247116, -0.20354411005973816, -0.3652030825614929, 0.20219287276268005, -0.44197598099708557, -0.1564691960811615, 0.08771349489688873, 0.11275401711463928, -0.08682294189929962, 0.6534003019332886, 0.6501068472862244, 0.4077478051185608, -0.0029832974541932344, -0.44741785526275635, -0.26059436798095703, 0.10228171944618225, -0.3121051788330078, -0.1471264362335205, -0.07338684052228928, 0.06493507325649261, 0.3865474462509155, 0.11077500879764557, 0.3859177827835083, 0.07033909857273102, -0.34342893958091736, 0.22639018297195435, -0.32263270020484924, 0.28104713559150696, 0.16775421798229218, 0.2737782299518585, 0.19456903636455536, -0.1446959674358368, -0.10305983573198318, 0.17047442495822906, 0.15389257669448853, -0.09580250084400177, 0.037005044519901276, 0.15210334956645966, 0.181317999958992, 0.5217483639717102, 0.20501893758773804, 0.03967602923512459, -0.3355918824672699, -0.08600854873657227, -0.34077414870262146, -0.10250155627727509, -0.2674383521080017, 0.3767380118370056, 0.019610144197940826, 0.28999173641204834, -0.0036168203223496675, -0.07663904875516891, 0.23381611704826355, 0.04611442983150482, -0.11844605207443237, -0.03113456629216671, -0.11994154751300812, 0.16587063670158386, -0.19647334516048431, -0.24840649962425232, -0.19837620854377747, 0.255940705537796, 0.09559918940067291, -0.09607858955860138, 0.005315541755408049, -0.11522683501243591, 0.05237271264195442, -0.07735361903905869, -0.18005864322185516, -0.26040950417518616, 0.001335963374003768, 0.23869509994983673, 0.08449146896600723, -0.34451186656951904, -0.22472906112670898, 0.21237699687480927, 0.13432997465133667, -0.131602481007576, 0.2490270733833313, -0.11843407154083252, -0.14623993635177612, -0.1720626950263977, 0.47226956486701965, 0.01549692265689373, 0.01964169181883335, -0.46946606040000916, -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.07294221222400665, -0.431997686624527, -0.07466137409210205, 0.24723802506923676, 0.14245854318141937, -0.2991017997264862, -0.034664154052734375, -0.36222323775291443, -0.042369354516267776, 0.47043144702911377, 0.02695283107459545, 0.3044506311416626, 0.030214518308639526, 0.08727679401636124, -0.272260844707489, 0.07524401694536209, 0.03768881782889366, 0.013303505256772041, 0.04887835681438446, -0.29142433404922485, 0.015980569645762444, 0.09953012317419052, -0.26075369119644165, -0.17706918716430664, -0.11434337496757507, 0.056536804884672165, -0.1556735783815384, -0.06810249388217926, -0.34333789348602295, -0.08700034767389297, 0.032129090279340744, 0.3313087522983551, -0.10528898984193802, 0.4939870834350586, -0.00011702498886734247, -0.4163563549518585, -0.021929023787379265, -0.17818675935268402, 0.30757269263267517, -0.5136874914169312, -0.2497314065694809, 0.36524906754493713, 0.07986391335725784, -0.1274431049823761, -0.129384383559227, 0.11441940814256668, -0.36575114727020264, 0.014640561304986477, 0.4840202033519745, 0.12751729786396027, 0.16686324775218964, -0.16284285485744476, -0.31873032450675964, -0.38687923550605774, 0.013995041139423847, 0.059260670095682144, -0.1181054562330246, 0.49233895540237427, -0.03306306153535843, 0.12331497669219971, -0.06635426729917526, 0.07789243757724762, 0.1746158003807068, 0.34844884276390076, 0.4598201513290405, -0.15890172123908997, 0.2443418949842453, -0.06289556622505188, -0.022594885900616646, 0.3563772737979889, 0.27403542399406433, -0.11606348305940628, -0.10126101970672607, 0.28227725625038147, 0.21555498242378235, -0.36519673466682434, -0.09318650513887405, -0.07391160726547241, 0.1439158022403717, -0.14613449573516846, -0.010855108499526978, 0.38279885053634644, -0.07611838728189468, -0.17808495461940765, 0.2129087895154953, -0.07512978464365005, -0.018481099978089333, 0.06973787397146225, 0.1373714655637741, 0.38487374782562256, -0.12372761964797974, 0.13140717148780823, -0.41106271743774414, -0.15256847441196442, -0.5036752223968506, -0.06804467737674713, -0.04186679795384407, 0.43012258410453796, 0.028770027682185173, 0.3245633840560913, 0.5289824604988098, -0.1465088129043579, -0.12252554297447205, 0.04207732528448105, -0.0674973577260971, 0.30092352628707886, -0.1637222170829773, 0.0034655847121030092, 0.09488531202077866, -0.021708503365516663, -0.16167066991329193, 0.005609018262475729, 0.3751333951950073, -0.5000551342964172, 0.28498467803001404, 0.25031161308288574, -0.1803477257490158, -0.33563658595085144, -0.6347412467002869, -0.06643354147672653, -0.41621074080467224, -0.20365393161773682, -0.015085486695170403, 0.2462238371372223, -0.27126893401145935, 0.07182008773088455, -0.26226168870925903, 0.21423479914665222, -0.1250942051410675, -0.058631137013435364, -0.2955053150653839, 0.08009174466133118, -0.546165406703949, -0.012621809728443623, -0.335166871547699, 0.19110171496868134, 0.17813274264335632, 0.41833457350730896, 0.0020133971702307463, -0.33151981234550476, 0.059828147292137146, -0.44875726103782654, 0.07236547768115997, -0.07185561209917068, -0.07911717891693115, 0.01410677284002304, 0.08213184773921967, -0.19716638326644897, -0.13399378955364227, -0.005760728847235441, -0.14129270613193512, 0.272531658411026, 0.44508087635040283, 0.06566282361745834, -0.08543290942907333, 0.1210341602563858, -0.1398099660873413, 0.17669834196567535, -0.3170872926712036, -0.008327868767082691, 0.20461294054985046, -0.18417733907699585, -0.31659847497940063, -0.3004753291606903, -0.0015306964050978422, 0.20722724497318268, -0.06656864285469055, 0.1484944075345993, 0.6132832169532776, 0.14365039765834808, 0.20774108171463013, 0.507376492023468, 0.06614270806312561, 0.0879925787448883, -0.22201059758663177, -0.5712296366691589, 0.44530171155929565, -0.44462406635284424, 0.08462341129779816, -0.02518097497522831, -0.05760021507740021, 0.006204703357070684, 0.13053175806999207, 0.178504079580307, -0.23940323293209076, -0.023597538471221924, 0.1534712016582489, -0.20687203109264374, 0.04826691746711731, -0.21355216205120087, -0.01946367137134075, 0.029744870960712433, 0.31672537326812744, -0.303097665309906, 0.15027618408203125, 0.22837714850902557, -0.011470912955701351, -0.17182466387748718, 0.3134985566139221, 0.20691420137882233, -0.36946409940719604, 0.0516025573015213, 0.193841814994812, 0.3044387996196747, -0.05759955197572708, -0.20018987357616425, 0.15710599720478058, 0.1491968035697937, -0.5066497921943665, -0.19575448334217072, 0.5925681591033936, -0.2029518485069275, -0.2326531708240509, -0.12980243563652039, 0.01670766994357109, -0.2094646692276001, 0.12134461104869843, 0.3131523132324219, 0.2446814477443695, 0.2755918502807617, 0.04355800151824951, 0.22837217152118683, -0.17873743176460266, -0.15115460753440857, -0.1725233942270279, -0.10519903898239136, 0.0018530766246840358, -0.14028634130954742, 0.08339206129312515, 0.21869421005249023, 0.30868181586265564, 0.013942660763859749, -0.12521512806415558, 0.3100953698158264, 0.525261640548706, -0.02631196193397045, 0.11894998699426651, 0.2512627840042114, 0.15993720293045044, 0.20556578040122986, -0.11561271548271179, 0.42382144927978516, 0.1592492014169693, -0.11489032208919525, 0.05987022817134857, 0.3031257092952728, -0.47304844856262207, 0.07156707346439362, -0.07670991867780685, -0.023060429841279984, 0.07479909062385559, 0.10036706179380417, -0.1731090098619461, -0.07712967693805695, 0.3988671898841858, 0.020220957696437836, 0.3070410490036011, 0.03358931094408035, -0.40823039412498474, -0.16135527193546295, 0.10656853020191193, 0.22133581340312958, 0.03647051751613617, -0.16566906869411469, 0.10285446792840958, 0.04699787497520447, -0.029528802260756493, 0.17482276260852814, 0.2265619933605194, 0.0465117022395134, -0.08397131413221359, -0.0033864297438412905, -0.3627883791923523, -0.323830783367157, -0.2000468224287033, -0.11233542859554291, 0.2540789246559143, 0.3564980924129486, 0.28953492641448975, 0.24672670662403107, -0.2504338026046753, -0.4256806969642639, -0.0892738401889801, 0.022355975583195686, 0.030677009373903275, 0.3200020492076874, -0.3778671324253082, 0.37418413162231445, -0.05089951679110527, -0.32768476009368896, -0.08245375752449036, -0.08963944762945175, -0.04755938798189163, 0.3303893506526947, 0.30027616024017334, -0.12652349472045898, 0.5133862495422363, 0.12386543303728104, -0.06141066551208496, 0.2800593078136444, -0.0947364866733551, -0.14905193448066711, 0.041874803602695465, 0.06147531047463417, -0.13461542129516602, 0.021822458133101463, 0.25883617997169495, -0.28120914101600647, -0.009751174598932266, 0.019513780251145363, -0.20175929367542267, -0.043003182858228683, 0.10125678032636642, 0.2257147580385208, 0.06271692365407944, -0.49504393339157104, -0.20618672668933868, 0.45472174882888794, 0.3494853079319, -0.13354189693927765, -0.1433507353067398, 0.09274288266897202, -0.1561848521232605, 0.11361204832792282, 0.06496498733758926, 0.11151248216629028, 0.050735197961330414, 0.007712421473115683, 0.477075457572937, 0.04065205156803131, -0.03231647238135338, 0.37865889072418213, 0.08748429268598557, -0.06925635039806366, 0.17459377646446228, 0.30196413397789, -0.36195942759513855, -0.17030461132526398, 0.15343473851680756, -0.33421432971954346, -0.3372674584388733, -0.003797205165028572, 0.2548955976963043, 0.057314109057188034, 0.07190011441707611, -0.16008658707141876, -0.5616263151168823, -0.008427322842180729, -0.1259213387966156, -0.29455870389938354, -0.24965988099575043, 0.5192809104919434, -0.2608339786529541, -0.1672194004058838, -0.056170299649238586, 0.18181797862052917, 0.11517170071601868, 0.07446842640638351, 0.32413357496261597, -0.2724435031414032, 0.14256499707698822, -0.14378312230110168, 0.039810068905353546, 0.42412641644477844, -0.10630428791046143, 0.06797990202903748, -0.04787900671362877, 0.24159276485443115, -0.42869818210601807, 0.07772773504257202, 0.3353777825832367, 0.004769596271216869, -0.2590503990650177, 0.2845086455345154, -0.14973707497119904, 0.6038036942481995, -0.12707003951072693, 0.09890935570001602, 0.17985855042934418, -0.042442042380571365, -0.20530511438846588, -0.3841388523578644, -0.18881523609161377, 0.014805723913013935, 0.14473693072795868, 0.15062600374221802, 0.06899020075798035, 0.1150011271238327, 0.11206228286027908, 0.20142407715320587, 0.015425183810293674, 0.044906940311193466, 0.05353258177638054, -0.2599619925022125, 0.031148573383688927, -0.16884039342403412, 0.039463575929403305, -0.15825632214546204, 0.15423214435577393, 0.19695048034191132, -0.10558521747589111, 0.546204686164856, -0.34839072823524475, 0.20015107095241547, 0.02142752893269062, -0.5407806038856506, -0.2420252412557602, -0.2875945568084717, -0.3703911602497101, 0.08208303898572922, 0.20135055482387543, 0.11705972254276276, 0.11167790740728378, -0.10278811305761337, -0.11291199177503586, 0.01028045080602169, -0.07134371250867844, -0.13937468826770782, -0.5917126536369324, 0.1660335808992386, 0.019952908158302307, 0.184513658285141, 0.07966967672109604, 0.12313588708639145, -0.12928646802902222, -0.1786274015903473, -0.322210431098938, -0.060572706162929535, 0.39076700806617737, 0.20074111223220825, 0.14989237487316132, -0.024055521935224533, -0.19715990126132965, 0.028502246364951134, -0.10983718186616898, -0.2267865687608719, 0.0031754395458847284, 0.19895456731319427, -0.5485671758651733, 0.21273115277290344, -0.16061028838157654, -0.046937379986047745, 0.22148415446281433, -0.09334009140729904, -0.09750822931528091, -0.6738166809082031, 0.31217673420906067, -0.45288532972335815, -0.11139724403619766, 0.4746369421482086, 0.010574408806860447, -0.02181507647037506, -0.24901913106441498, 0.11423365771770477, 0.12619566917419434, -0.42616406083106995, 0.286233127117157, -0.26543256640434265, 0.038685206323862076, 0.4411570131778717, 0.36842891573905945, 0.6875543594360352, -0.13339972496032715, -0.06362156569957733, 0.14317727088928223, -0.15408961474895477, 0.22472383081912994, -0.2082998901605606, -0.02658000960946083, -0.26402848958969116, -0.32764914631843567, -0.0482117235660553, -0.037744827568531036, 0.12202838808298111, -0.037788275629282, -0.07221626490354538, 0.3350605070590973, -0.11716192960739136, 0.24741801619529724, -0.11411447077989578, -0.14227904379367828, 0.35879212617874146, 0.22688905894756317, 0.3435051739215851, 0.1264493614435196, 0.17025674879550934, 0.2904885709285736, -0.22719471156597137, 0.13090936839580536, -0.23187044262886047, 0.11265405267477036, -0.25020405650138855, -0.1527738720178604, -0.29882535338401794, 0.1434074491262436, -0.06029396131634712, -0.4588412344455719, -0.10700397938489914, 0.7968848943710327, 0.6291100382804871, 0.23590558767318726, -0.02317732200026512, 0.28854918479919434, 0.06723752617835999, 0.12905660271644592, -0.2900574803352356, -0.24824801087379456, -0.14157237112522125, 0.05033665522933006, -0.28297463059425354, 0.006970488931983709, 0.20949330925941467, -0.2150883823633194, -0.36068299412727356, 0.2045871764421463, -0.30051934719085693, 0.19034628570079803, 0.04540432617068291, 0.01976473443210125, -0.032948896288871765, -0.1293003112077713, 0.08934038877487183, 0.03418377786874771, 0.03988736495375633, 0.3000200688838959, 0.07024401426315308, -0.3948744833469391, -0.13917285203933716, 0.3577364981174469, -0.0664958730340004, 0.13508667051792145, -0.26671135425567627, -0.32625532150268555, 0.10472287237644196, -0.3019202649593353, -0.17992128431797028, -0.2614295184612274, -0.1382792592048645, 0.18247051537036896, -0.0564284510910511, -0.0671343132853508, 0.2789306342601776, 0.6154511570930481, 0.1856500506401062, 0.27414771914482117, 0.24107541143894196, -0.30234578251838684, 0.13986264169216156, -0.06588342040777206, 0.2619776725769043, 0.010838542133569717, -0.24570094048976898, 0.16020362079143524, 0.07755011320114136, 0.4317093789577484, -0.2948765456676483, -0.1789625734090805, -0.14344018697738647, 0.02703550085425377, -0.6010739803314209, -0.2214306890964508, -0.16178473830223083, 0.20572513341903687, 0.002400341210886836, 0.1748356819152832, -0.2614099681377411, -0.12844154238700867, -0.2560679018497467, 0.14085432887077332, -0.04656922444701195, 0.5226812362670898, -0.16128040850162506, 0.09548437595367432, -0.047108378261327744, -0.2260114699602127, 0.1570691466331482, 0.35638490319252014, 0.25398901104927063, 0.06638627499341965, -0.03654736652970314, 0.31873270869255066, -0.08086053282022476, -0.08896749466657639, 0.14306297898292542, 0.06766636669635773, -0.11925981193780899, -0.22966794669628143, -0.09385538101196289, -0.08145865052938461, -0.607090950012207, -0.13509666919708252, -0.07639145106077194, -0.15670707821846008, -0.1704012006521225, 0.14049240946769714, 0.41266846656799316, -0.22256818413734436, 0.31493276357650757, 0.15841065347194672, 0.011746487580239773, -0.2432762235403061, -0.06369591504335403, 0.11813844740390778, -0.26057958602905273, 0.22650691866874695, -0.22929953038692474, 0.32528015971183777, 0.12007458508014679, 0.37875425815582275, 0.4270199239253998, -0.135965958237648, -0.012259270064532757, -0.17405694723129272, -0.0483449287712574, -0.25795215368270874, 0.18644046783447266, -0.25967860221862793, 0.08199717849493027, 0.10293330997228622, 0.6461300849914551, 0.008507713675498962, 0.010631565935909748, 0.3853864073753357, 0.167439267039299, 0.21432317793369293, -0.26468998193740845, 0.12324099987745285, -0.12095081061124802, 0.06535294651985168, -0.0654737800359726, 0.46515175700187683, 0.07737202942371368, -0.1564275324344635, -0.12432603538036346, 0.10738487541675568, -0.28765740990638733, -0.2792735993862152, -0.40900474786758423, -0.0871841311454773, -0.02656395547091961, -0.23199500143527985, -0.22252534329891205, -0.140196293592453, -0.1384877860546112, 0.04661593586206436, 0.06260897219181061, 0.41718921065330505, 0.38243773579597473, 0.07541153579950333, 0.17394644021987915, -0.16235537827014923, -0.14186064898967743, -0.0882282629609108, 0.43103817105293274, -0.16803312301635742, 0.08164676278829575, 0.09489388763904572, 0.34894466400146484, 0.05781853199005127, 0.2674446403980255, 0.16164366900920868, 0.2786950469017029, -0.23994843661785126, 0.11219625920057297, -0.24858857691287994, -0.003219710197299719, 0.17968925833702087, 0.24432004988193512, 0.20365789532661438, -0.4013035297393799, 0.38904592394828796, 0.03939025104045868, -0.14517809450626373, 0.5418245196342468, 0.11103329062461853, 0.3921961188316345, -0.21135784685611725, 0.43204474449157715, 0.17358846962451935, 0.3634892404079437, -0.00014185515465214849, 0.31815558671951294, -0.35702934861183167, 0.10550563782453537, -0.6689852476119995, -0.17138640582561493, -0.04616595059633255, -0.20485179126262665, 0.05148354545235634, -0.04848594218492508, 0.1875862032175064, -0.016036629676818848, 0.27226272225379944, -0.15759360790252686, -0.24058161675930023, -0.490854412317276, 0.19896338880062103, -0.24090521037578583, 0.329377681016922, -0.14766843616962433, 0.3971635699272156, -0.41265347599983215, 0.21782128512859344, 0.20384001731872559, 0.4500792324542999, -0.126835435628891, 0.44300663471221924, -0.47717365622520447, 0.2912018299102783, -0.37492403388023376, -0.21544666588306427, 0.22288629412651062, 0.09044049680233002, -0.014269874431192875, -0.05566762387752533, -0.01882072165608406, 0.12609931826591492, -0.08459334820508957, -0.032250262796878815, 0.6356544494628906, 0.5892751216888428, 0.08988172560930252, 0.16516031324863434, -0.06164223328232765, -0.2201288491487503, 0.0725354477763176, -0.12122445553541183, 0.09769933670759201, 0.27728116512298584, -0.023231469094753265, -0.14215558767318726, -0.10762963443994522, 0.15721771121025085, 0.08377409726381302, 0.6822965145111084, 0.15310552716255188, -0.07113844901323318, -0.5956975817680359, 0.026029124855995178, 0.03867066279053688, 0.2575576603412628, -0.3959360718727112, 0.4797009825706482, 0.028333786875009537, 0.32873106002807617, -0.13789154589176178, -0.11044768989086151, 0.6011205315589905, 0.02854032628238201, 0.05039886012673378, -0.16475413739681244, 0.34849095344543457, 0.39525294303894043, -0.0488923043012619, -0.14947004616260529, 0.1269875019788742, 0.06974859535694122, 0.2653726637363434, 0.0776028111577034, 0.19117677211761475, -0.36262965202331543, 0.0843723937869072, -0.10149654746055603, 0.17288275063037872, -0.05949702113866806, -0.022018909454345703, 0.3068388104438782, -0.2685055136680603 ]
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.0629730373620987, -0.1342073231935501, -0.07968541234731674, 0.01057434268295765, 0.17548277974128723, -0.3666589558124542, 0.03127399459481239, -0.2816154956817627, -0.33567509055137634, 0.46499380469322205, -0.14531995356082916, 0.34079819917678833, -0.02386186644434929, 0.10760284960269928, -0.2894936501979828, -0.005836129654198885, -0.13678742945194244, 0.0883074551820755, 0.05058050900697708, -0.27948278188705444, -0.026489002630114555, 0.2689064145088196, -0.14468181133270264, -0.11219965666532516, -0.2301797717809677, 0.04390447959303856, -0.13096316158771515, 0.17605774104595184, -0.4420461058616638, -0.13661140203475952, 0.0006490127416327596, 0.5135989785194397, -0.13356362283229828, 0.34533464908599854, -0.00010900620691245422, -0.30267730355262756, -0.0053827497176826, -0.27213987708091736, 0.06843251734972, -0.5490511655807495, -0.08505521714687347, 0.1678696721792221, -0.036374371498823166, -0.15389692783355713, -0.23038765788078308, 0.15673446655273438, -0.13240011036396027, -0.2148979902267456, 0.6561849117279053, 0.3610714077949524, 0.20377416908740997, -0.027505403384566307, -0.14883454144001007, -0.21124505996704102, 0.17477688193321228, -0.0872880145907402, -0.016668349504470825, 0.5573640465736389, 0.031474947929382324, 0.21889333426952362, -0.24647535383701324, 0.18581059575080872, 0.15273582935333252, 0.06768433004617691, 0.36881136894226074, -0.11520916223526001, 0.17548184096813202, -0.36951711773872375, -0.12860091030597687, 0.3732660710811615, 0.2760193645954132, -0.051950853317976, -0.40681278705596924, 0.172501802444458, 0.1947716474533081, -0.27364376187324524, -0.19445978105068207, -0.017577728256583214, -0.0913497805595398, -0.0652744248509407, -0.09678074717521667, 0.4438835084438324, -0.13325411081314087, -0.13836655020713806, 0.1420721411705017, 0.07669898122549057, -0.00888858549296856, -0.000514512590598315, 0.328132301568985, 0.12296006828546524, -0.22458335757255554, 0.21163061261177063, -0.209591343998909, 0.06957167387008667, -0.4204723834991455, -0.13572612404823303, 0.12510782480239868, 0.2849910259246826, 0.11115240305662155, 0.4854750633239746, 0.39486247301101685, -0.11475370824337006, -0.06904518604278564, 0.04545328766107559, 0.025264684110879898, 0.1961713582277298, 0.05004945769906044, 0.03838809207081795, 0.14161036908626556, -0.0029746624641120434, -0.02592996507883072, 0.09933148324489594, 0.31267914175987244, -0.3156796991825104, 0.041401706635951996, 0.21748872101306915, -0.1523081362247467, -0.1720806509256363, -0.5653683543205261, -0.11148606240749359, -0.47819727659225464, -0.12557384371757507, -0.15354052186012268, 0.3803398013114929, -0.20591729879379272, 0.154504656791687, -0.1938214898109436, 0.19073107838630676, -0.1400550752878189, -0.16229262948036194, -0.25999242067337036, 0.1628430038690567, -0.26607179641723633, -0.0745900347828865, -0.11210954934358597, 0.08643505722284317, 0.1294141560792923, 0.15454696118831635, 0.1475837677717209, -0.24581460654735565, 0.038216881453990936, -0.4583489000797272, -0.08258571475744247, -0.13289496302604675, -0.09135709702968597, -0.07539388537406921, 0.05611346662044525, -0.2839280068874359, -0.1321660578250885, -0.12134268134832382, -0.12629356980323792, 0.18461836874485016, 0.325351357460022, 0.1625864952802658, 0.009810674004256725, -0.08615537732839584, 0.07437320798635483, 0.2732865512371063, -0.31479817628860474, 0.15548256039619446, 0.1502419114112854, -0.025994667783379555, -0.322644978761673, -0.23634211719036102, 0.08310793340206146, 0.2124175876379013, -0.0027337386272847652, -0.1042993888258934, 0.5838003754615784, 0.13699999451637268, 0.17271116375923157, 0.5475630164146423, 0.16298240423202515, 0.183976948261261, -0.002714030910283327, -0.35909634828567505, 0.4775165915489197, -0.4854389429092407, 0.0683302953839302, 0.06024855375289917, -0.028814276680350304, 0.1495356261730194, 0.213364839553833, 0.10303881764411926, -0.07665678858757019, -0.043803393840789795, 0.23981314897537231, 0.18700210750102997, 0.1334642916917801, -0.2636553943157196, -0.020982712507247925, 0.09086158126592636, 0.23149311542510986, -0.11476128548383713, 0.06263227760791779, 0.04625990241765976, -0.20690542459487915, -0.30158936977386475, 0.3498268723487854, -0.008829349651932716, -0.3083658218383789, 0.24787965416908264, 0.087659552693367, 0.19182758033275604, 0.08694575726985931, -0.18168579041957855, 0.28125765919685364, 0.10359839349985123, -0.8122196197509766, 0.24316884577274323, 0.21772907674312592, -0.2853502631187439, -0.4512050151824951, -0.1303163319826126, 0.14455945789813995, -0.3410881459712982, 0.1980886161327362, 0.17257216572761536, 0.27330318093299866, 0.26435574889183044, -0.047708988189697266, 0.3236655592918396, -0.19353364408016205, -0.018097709864377975, -0.25360894203186035, -0.19867604970932007, -0.0506712980568409, -0.08113923668861389, 0.2211102694272995, 0.4466211795806885, 0.08973368257284164, 0.09877514839172363, -0.08101654052734375, 0.41324254870414734, 0.4271886348724365, -0.024758270010352135, -0.03309435397386551, -0.03274572268128395, 0.07738965004682541, 0.18734252452850342, -0.21827095746994019, 0.5565976500511169, 0.22576437890529633, -0.06820125132799149, -0.1123133972287178, 0.38551297783851624, -0.4762590825557709, 0.004916196223348379, 0.0653223916888237, 0.06105801463127136, 0.1700088083744049, 0.14404144883155823, -0.32105615735054016, -0.09027164429426193, 0.30820220708847046, -0.0289419274777174, 0.6414523720741272, 0.23576007783412933, -0.29554417729377747, -0.12639501690864563, 0.08650368452072144, 0.11402485519647598, 0.14107418060302734, -0.09579136222600937, 0.08677732199430466, -0.0590304434299469, -0.07504657655954361, 0.027054212987422943, -0.032218754291534424, 0.21117772161960602, -0.0056919739581644535, -0.06269826740026474, -0.2837330996990204, -0.28223735094070435, -0.07754937559366226, -0.13843995332717896, 0.2882389724254608, 0.1391816884279251, 0.316498339176178, 0.18804973363876343, -0.2739829421043396, -0.5686126947402954, -0.3180913031101227, -0.036397963762283325, -0.13586950302124023, 0.12719795107841492, -0.24751396477222443, -0.06301315128803253, 0.06969762593507767, -0.29709392786026, -0.06422213464975357, -0.20969797670841217, 0.15574277937412262, 0.08027033507823944, 0.06935873627662659, -0.030659163370728493, 0.5392484664916992, 0.27345988154411316, 0.011913864873349667, 0.29753682017326355, -0.10172686725854874, -0.2644329071044922, 0.06046989560127258, 0.20027652382850647, -0.13333143293857574, -0.024978945031762123, 0.12017374485731125, -0.42480018734931946, -0.07191890478134155, 0.14287814497947693, -0.1266680806875229, 0.0757165253162384, -0.09818282723426819, 0.29090967774391174, 0.13415047526359558, -0.3271770179271698, -0.3285122513771057, 0.3417825698852539, 0.296169638633728, -0.01506005134433508, -0.17895537614822388, 0.10725734382867813, 0.03554318845272064, 0.020354440435767174, 0.03568487614393234, -0.11944939941167831, -0.24634364247322083, -0.1701468825340271, 0.5418915748596191, 0.24258461594581604, -0.01669400930404663, 0.4519587755203247, 0.010800478048622608, -0.05952778086066246, 0.10297511518001556, 0.4948756992816925, -0.2613431215286255, -0.22912771999835968, 0.3377360701560974, -0.23543061316013336, -0.48372596502304077, -0.2980840504169464, 0.08876771479845047, -0.06036633998155594, 0.009346538223326206, 0.11689311265945435, -0.3563518524169922, -0.08265519142150879, -0.04157785326242447, -0.2018306702375412, -0.07103290408849716, 0.4534032940864563, -0.17280158400535583, -0.21208512783050537, -0.04408441483974457, 0.34712743759155273, 0.10455229133367538, 0.10947523266077042, 0.1872495710849762, -0.2009672075510025, 0.07223643362522125, 0.05480285733938217, 0.12745514512062073, 0.49704790115356445, 0.02378515526652336, 0.055596936494112015, -0.07928241044282913, 0.22681720554828644, -0.27977481484413147, 0.05287556350231171, 0.2462792694568634, 0.07647443562746048, -0.23045705258846283, 0.23093636333942413, -0.11297207325696945, 0.417879581451416, -0.25746577978134155, 0.03882908821105957, 0.028706053271889687, -0.09093344956636429, -0.019277580082416534, -0.3598271310329437, -0.1379479616880417, -0.00874241441488266, 0.1893775761127472, 0.143569216132164, 0.05456431582570076, 0.142865389585495, -0.04936620965600014, 0.342260479927063, 0.03297308459877968, 0.036574266850948334, 0.20577679574489594, -0.35932835936546326, 0.1581130176782608, 0.057816360145807266, -0.05610550940036774, -0.030386250466108322, 0.0016272257780656219, 0.012582579627633095, -0.02910395711660385, 0.3670474588871002, -0.34687310457229614, -0.1255812793970108, 0.12085885554552078, -0.29240334033966064, -0.40448057651519775, -0.028653252869844437, -0.5490260720252991, -0.10816305875778198, 0.1691485345363617, -0.1260567605495453, -0.1499747335910797, 0.03456518054008484, 0.1518111228942871, -0.19714277982711792, -0.07721439749002457, -0.029211215674877167, -0.41850194334983826, 0.07187843322753906, -0.07672995328903198, 0.22252601385116577, 0.07045525312423706, 0.256361186504364, -0.042410239577293396, -0.10493509471416473, -0.17202675342559814, -0.025197045877575874, 0.4814112186431885, 0.2461596131324768, 0.15621168911457062, -0.09039811044931412, -0.26622474193573, -0.14639461040496826, -0.15058566629886627, -0.19960527122020721, 0.18950693309307098, 0.015262148343026638, -0.6571385264396667, -0.038422491401433945, -0.16666072607040405, 0.16858918964862823, 0.1548558622598648, -0.19766250252723694, -0.11591506004333496, -0.5746035575866699, 0.22823220491409302, -0.4392106533050537, -0.03635236248373985, 0.3599654734134674, 0.06487119942903519, 0.13561035692691803, -0.27454495429992676, 0.17236746847629547, 0.17127206921577454, -0.34400784969329834, -0.12238124758005142, -0.29711800813674927, -0.000640000740531832, 0.6353338956832886, 0.20081116259098053, 0.7802702784538269, 0.008179065771400928, 0.03614366054534912, 0.1069837212562561, 0.08271972090005875, 0.3759540021419525, -0.3120651841163635, 0.04995250701904297, -0.09260775148868561, -0.18613974750041962, -0.11787647753953934, 0.11655401438474655, 0.09630990028381348, 0.25103822350502014, -0.19029904901981354, 0.44008079171180725, -0.006245274096727371, 0.08034379780292511, 0.01974916271865368, -0.03024689108133316, -0.0012807593448087573, -0.0020522824488580227, -0.02665596641600132, 0.18062976002693176, 0.1246195137500763, 0.13154007494449615, -0.1005440503358841, 0.10101974755525589, -0.3447439670562744, 0.022789329290390015, -0.15328791737556458, -0.10774654895067215, -0.32756802439689636, 0.17857231199741364, 0.015451028011739254, -0.3179486393928528, -0.3211079239845276, 0.6958511471748352, 0.3500358760356903, 0.2806238830089569, -0.037261802703142166, 0.1739681363105774, 0.026251941919326782, 0.12390036135911942, 0.06251268088817596, -0.06584765762090683, 0.16333894431591034, 0.02296593226492405, -0.19940635561943054, 0.08794331550598145, 0.14456766843795776, -0.25991493463516235, -0.02627144381403923, -0.0026537517551332712, -0.30193907022476196, 0.13063952326774597, -0.0025994060561060905, 0.08686722069978714, -0.15192227065563202, -0.18169131875038147, 0.13798169791698456, 0.043066732585430145, -0.06884357333183289, 0.22336599230766296, 0.05509406700730324, -0.2668167054653168, -0.17223775386810303, 0.28633591532707214, 0.07032456248998642, -0.10172498226165771, -0.25621333718299866, -0.17457720637321472, -0.08640255779027939, -0.29943108558654785, -0.0894370973110199, -0.2981828451156616, -0.10441546887159348, 0.3776308596134186, 0.018989767879247665, -0.11541401594877243, 0.051211465150117874, 0.6299239993095398, 0.21419189870357513, 0.3644081652164459, 0.15249168872833252, -0.3336917757987976, -0.10814821720123291, 0.1698487550020218, 0.373640775680542, -0.033549465239048004, -0.06413526087999344, 0.04874274879693985, 0.21995757520198822, 0.4095643162727356, -0.40299972891807556, -0.3656338155269623, -0.3964769244194031, -0.08165914565324783, -0.43560853600502014, -0.22119347751140594, -0.12817344069480896, 0.09364907443523407, 0.09503532201051712, 0.23749548196792603, -0.22866429388523102, -0.24478505551815033, -0.15919311344623566, 0.08211833238601685, -0.1456950455904007, 0.4021068215370178, 0.04138752818107605, 0.18534235656261444, -0.11416212469339371, -0.38218697905540466, 0.07462489604949951, 0.31713250279426575, 0.25514695048332214, 0.017733918502926826, -0.040240541100502014, 0.28045353293418884, -0.11354926973581314, -0.137017160654068, 0.0539056770503521, -0.005134649109095335, -0.09329383075237274, -0.06650295108556747, -0.06756795197725296, -0.0987473726272583, -0.21898134052753448, -0.026900121942162514, 0.18490904569625854, -0.12141238898038864, -0.10536174476146698, 0.08375037461519241, 0.04562780633568764, -0.37308719754219055, 0.43264272809028625, 0.22116492688655853, -0.008523738943040371, -0.19856670498847961, -0.13350777328014374, 0.21943765878677368, -0.4589328169822693, 0.26542505621910095, -0.28910648822784424, 0.15634192526340485, 0.3173479735851288, 0.45568832755088806, 0.2233203947544098, -0.06490502506494522, -0.06798084080219269, -0.09870049357414246, -0.13836295902729034, -0.10029453784227371, 0.0629330649971962, -0.3096041977405548, 0.25892552733421326, -0.020268484950065613, 0.4849737286567688, -0.11211755126714706, 0.2652066648006439, 0.1309785544872284, -0.0034165626857429743, 0.3194529712200165, -0.11900588870048523, 0.19603589177131653, 0.01932278648018837, 0.18452367186546326, 0.140170618891716, 0.46594974398612976, 0.11100791394710541, 0.007033254951238632, 0.047027841210365295, 0.28891468048095703, -0.12652993202209473, -0.17585179209709167, -0.290635347366333, 0.08546622097492218, 0.052440084517002106, -0.3401103615760803, -0.23910345137119293, -0.22767406702041626, -0.4451780319213867, -0.16389137506484985, 0.06581908464431763, 0.1539924144744873, 0.3426796495914459, 0.0251937098801136, 0.19114311039447784, -0.24245001375675201, -0.21093501150608063, -0.272311270236969, 0.5643004179000854, -0.24843686819076538, 0.1921275407075882, 0.15721800923347473, 0.3751194179058075, 0.18826088309288025, 0.4240933656692505, 0.2116144597530365, 0.17867816984653473, -0.20108801126480103, 0.2564736604690552, -0.3552730679512024, -0.15523217618465424, 0.018965020775794983, 0.23125748336315155, 0.16101890802383423, -0.2643475830554962, 0.4957164525985718, 0.13593687117099762, -0.23227694630622864, 0.4143297076225281, 0.08615950495004654, 0.42730239033699036, -0.24933181703090668, 0.3634839951992035, 0.24008417129516602, 0.29389244318008423, -0.0414932481944561, 0.18308523297309875, -0.41559967398643494, 0.07796803116798401, -0.6234222054481506, -0.11742500215768814, -0.10118729621171951, -0.23566091060638428, 0.10844465345144272, 0.09241072088479996, 0.20519739389419556, 0.11813341081142426, 0.3476848006248474, -0.03575796261429787, -0.18555021286010742, -0.4065916836261749, -0.042920202016830444, -0.14529286324977875, -0.07745541632175446, -0.24246501922607422, 0.3812710642814636, -0.05846824124455452, 0.5550364851951599, 0.04245287552475929, 0.5779342651367188, -0.28861626982688904, 0.2897717356681824, -0.5447961688041687, 0.32753393054008484, -0.32546600699424744, -0.05519654601812363, 0.18371638655662537, 0.09119246155023575, -0.07032192498445511, -0.1465926617383957, 0.069973424077034, 0.27196747064590454, -0.3368915617465973, 0.24808979034423828, 0.3208194375038147, 0.3344046175479889, 0.10079845041036606, 0.18546481430530548, -0.06193750351667404, -0.16475753486156464, 0.019988158717751503, -0.13959556818008423, -0.041148457676172256, 0.2344658374786377, 0.20391178131103516, 0.19250249862670898, -0.05683361366391182, 0.08267282694578171, 0.1938953399658203, 0.7380524277687073, 0.13529828190803528, -0.1584630310535431, -0.320458322763443, 0.05225372314453125, 0.0395435206592083, 0.02172068879008293, -0.5980479121208191, 0.3872765004634857, -0.08525636792182922, 0.2723889946937561, -0.033462028950452805, -0.3992612063884735, 0.49431711435317993, 0.0310678593814373, 0.09119177609682083, -0.2405092716217041, 0.2732807695865631, 0.24116596579551697, -0.08418715745210648, -0.3257414698600769, 0.07970299571752548, 0.0479561872780323, 0.33620139956474304, 0.06745809316635132, 0.17270196974277496, -0.17921799421310425, 0.08963494747877121, -0.3200746774673462, 0.09191470593214035, -0.12445739656686783, 0.11732766777276993, 0.08397660404443741, -0.427224338054657 ]
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.10732854902744293, -0.21593044698238373, -0.06680147349834442, 0.14313030242919922, 0.1828393042087555, -0.31881842017173767, -0.1366637647151947, -0.15665261447429657, -0.0810185968875885, 0.3942079246044159, -0.09586981683969498, 0.5732386708259583, 0.07576126605272293, -0.03530603274703026, -0.004969692789018154, 0.045719850808382034, -0.0829765796661377, 0.19788064062595367, -0.014828905463218689, -0.35899829864501953, -0.2548871338367462, 0.1192237138748169, -0.1512852907180786, 0.034798771142959595, -0.1317695677280426, -0.062288716435432434, 0.02634728141129017, 0.15549813210964203, -0.4091147780418396, -0.2266359031200409, 0.08216270059347153, 0.23360329866409302, -0.1760028600692749, 0.28498509526252747, -0.00010769491927931085, -0.2813830077648163, 0.10782937705516815, -0.11699175089597702, 0.07695773988962173, -0.40473297238349915, -0.040592849254608154, -0.09562549740076065, 0.17678044736385345, -0.2945888042449951, -0.09756368398666382, 0.13691876828670502, -0.089715875685215, 0.03389719873666763, 0.41589826345443726, 0.22696860134601593, 0.224911630153656, 0.04557206109166145, -0.23914138972759247, -0.1621115356683731, 0.04261835664510727, -0.09294849634170532, -0.032100629061460495, 0.5454744696617126, -0.18220195174217224, -0.006719332654029131, -0.13548995554447174, 0.12704208493232727, 0.13834348320960999, 0.22353684902191162, 0.40074989199638367, 0.041115209460258484, 0.3929462432861328, -0.13584588468074799, -0.23437891900539398, 0.25258395075798035, -0.012931440025568008, -0.09977050870656967, -0.1324525624513626, 0.08414526283740997, 0.1587255597114563, -0.6156041622161865, -0.1732083559036255, 0.04401404783129692, -0.13505558669567108, -0.2012695074081421, -0.05087879300117493, 0.37885019183158875, -0.09684956818819046, 0.11171898990869522, -0.004313393495976925, 0.16808709502220154, 0.027076471596956253, 0.15506382286548615, 0.14782889187335968, 0.2116183489561081, -0.1319667249917984, 0.12220307439565659, -0.21513760089874268, -0.05986792966723442, -0.3910147249698639, -0.09472069144248962, 0.13777153193950653, 0.3519810140132904, 0.023444199934601784, 0.12326828390359879, 0.5981104373931885, 0.018931962549686432, -0.16844366490840912, 0.10346703976392746, -0.15217173099517822, 0.39072665572166443, -0.09756148606538773, 0.02034510113298893, 0.28173717856407166, 0.03729519993066788, -0.0406915508210659, 0.07548918575048447, 0.5044955611228943, -0.43494540452957153, 0.2057792693376541, 0.2119952291250229, -0.1122407540678978, -0.22764372825622559, -0.5611444711685181, -0.043072301894426346, -0.20275114476680756, -0.01936192996799946, -0.10041523724794388, 0.3319782316684723, -0.36979061365127563, 0.15674518048763275, -0.08244790881872177, 0.1941111534833908, -0.26580092310905457, -0.0755544900894165, -0.3253018856048584, 0.0633455142378807, -0.5507809519767761, -0.00578633788973093, -0.13045582175254822, 0.2926287055015564, 0.25111818313598633, 0.24951830506324768, 0.03237198293209076, -0.12549304962158203, 0.07507439702749252, -0.3315087556838989, 0.08696288615465164, -0.04998009651899338, -0.10876842588186264, -0.028627900406718254, 0.11923197656869888, -0.2189493030309677, -0.1965750902891159, -0.08093205094337463, -0.05958986654877663, 0.23534546792507172, 0.33463433384895325, 0.1933610886335373, -0.11094612628221512, 0.09238006174564362, -0.07158098369836807, 0.20884497463703156, -0.3361067771911621, -0.0010509919375181198, 0.20945268869400024, -0.23510859906673431, -0.38566580414772034, -0.278761625289917, 0.09165359288454056, 0.14443886280059814, 0.13497987389564514, -0.0671071782708168, 0.46202558279037476, 0.055844519287347794, 0.1441366821527481, 0.47266578674316406, 0.12379411607980728, 0.0034982000943273306, -0.06092549115419388, -0.44039100408554077, 0.6245056390762329, -0.41465216875076294, -0.04124957695603371, -0.13037490844726562, -0.07033975422382355, 0.029182011261582375, -0.019393999129533768, 0.20221057534217834, -0.16690920293331146, 0.056886542588472366, 0.4013473093509674, 0.1551741510629654, 0.11707359552383423, -0.19467943906784058, -0.2683936655521393, 0.013691390864551067, 0.2815442979335785, -0.0744161382317543, 0.17420770227909088, 0.07079150527715683, -0.030167916789650917, -0.11718478053808212, 0.37119075655937195, 0.1120213195681572, -0.4049769341945648, 0.06472202390432358, 0.04896652698516846, 0.11483092606067657, -0.060899145901203156, -0.23303399980068207, 0.13660456240177155, 0.09728237986564636, -0.6623626947402954, 0.10582948476076126, 0.4025934934616089, -0.148761585354805, -0.31135234236717224, -0.07095509767532349, 0.06534302234649658, -0.17849980294704437, 0.24333691596984863, 0.1851491779088974, 0.24274280667304993, 0.356142520904541, 0.06264454126358032, 0.3224670886993408, -0.249084934592247, -0.08479347825050354, -0.38100817799568176, -0.0408872626721859, -0.028999924659729004, -0.1580856889486313, 0.13396179676055908, 0.45308470726013184, 0.30855700373649597, 0.07206934690475464, -0.14177733659744263, 0.31269946694374084, 0.3389641046524048, -0.026390010491013527, -0.052740052342414856, 0.06802455335855484, 0.19826194643974304, 0.23580677807331085, -0.040365513414144516, 0.5818987488746643, 0.1609146147966385, -0.08763054013252258, 0.08404164761304855, 0.4946381747722626, -0.4532773196697235, -0.013118716888129711, -0.06744886934757233, -0.015531839802861214, 0.13883185386657715, 0.043668825179338455, -0.13202014565467834, -0.14338906109333038, 0.4456673860549927, 0.1765439212322235, 0.16475610435009003, 0.0733371302485466, -0.3982083797454834, -0.07345867902040482, 0.25758031010627747, 0.021703628823161125, 0.13027910888195038, -0.07679922878742218, 0.05494104325771332, -0.10266314446926117, 0.02291819453239441, 0.052838414907455444, 0.3336084485054016, 0.16537755727767944, -0.06924863904714584, 0.12188698351383209, -0.4862629473209381, -0.40111932158470154, -0.13018405437469482, -0.040668658912181854, 0.125700443983078, 0.2686920464038849, 0.39283469319343567, 0.1780770868062973, -0.31082043051719666, -0.1725023239850998, -0.1780834197998047, 0.0028737790416926146, -0.08679942041635513, 0.26277410984039307, -0.28295090794563293, 0.06389158964157104, -0.12403210997581482, -0.2499912530183792, -0.22105345129966736, -0.33012381196022034, 0.11894642561674118, 0.26078253984451294, 0.1801375448703766, -0.02133910544216633, 0.4165264368057251, 0.16435793042182922, -0.11060383170843124, 0.17794282734394073, -0.11522504687309265, -0.27895110845565796, -0.09802403301000595, 0.1053922027349472, -0.21877259016036987, 0.20542916655540466, 0.26019909977912903, -0.30803796648979187, 0.020306698977947235, 0.17963439226150513, -0.25346651673316956, -0.06861629337072372, -0.002072292845696211, 0.4098415672779083, 0.1068233996629715, -0.33580487966537476, -0.26560676097869873, 0.33476686477661133, 0.34306082129478455, -0.22917653620243073, -0.1546252816915512, 0.10122400522232056, -0.08972325921058655, 0.07925964146852493, -0.01672186329960823, -0.04306311532855034, -0.2317103147506714, -0.21279597282409668, 0.4316244423389435, 0.2908911108970642, 0.008382651954889297, 0.5002596974372864, -0.08316861838102341, -0.007333479356020689, 0.13794128596782684, 0.2961852252483368, -0.4674462080001831, -0.033185768872499466, 0.29393333196640015, -0.34876835346221924, -0.4366021156311035, -0.22409841418266296, 0.050590984523296356, 0.07246866822242737, 0.010816865600645542, -0.23372101783752441, -0.5702818632125854, 0.009002852253615856, -0.002648145193234086, -0.19519668817520142, -0.16625866293907166, 0.46728748083114624, -0.26514720916748047, -0.2121557742357254, 0.0052439505234360695, 0.0653488039970398, -0.0029162701684981585, 0.2327388972043991, 0.31639614701271057, -0.3067880868911743, 0.2171621471643448, -0.1260424703359604, 0.06439924240112305, 0.35221055150032043, -0.18326698243618011, 0.11607664823532104, -0.024752281606197357, 0.31178757548332214, -0.31687453389167786, 0.036408040672540665, 0.29484471678733826, 0.08570552617311478, -0.19495634734630585, 0.1709592640399933, -0.11886846274137497, 0.28671175241470337, -0.17731428146362305, -0.06137023866176605, 0.11887193471193314, -0.15925301611423492, -0.012251044623553753, -0.23803561925888062, -0.22043973207473755, 0.08036251366138458, 0.24642355740070343, -0.08696047216653824, -0.20092225074768066, -0.013554691337049007, 0.08424611389636993, 0.07019957154989243, 0.002753280568867922, -0.010381986387073994, -0.07200546562671661, -0.46401116251945496, 0.1893835961818695, -0.10065904259681702, 0.10091380774974823, -0.04564223811030388, 0.06699347496032715, 0.16913987696170807, -0.056684572249650955, 0.3666309714317322, -0.2106124758720398, 0.09216345101594925, 0.175633504986763, -0.29415467381477356, -0.460409939289093, -0.11597764492034912, -0.3113107979297638, 0.044486675411462784, 0.21786440908908844, 0.20708860456943512, -0.10835564881563187, -0.07992050051689148, -0.06480719149112701, 0.035975754261016846, -0.19810514152050018, -0.04152043163776398, -0.6293358206748962, -0.004617051221430302, 0.018164943903684616, 0.11431422084569931, -0.05265011638402939, 0.23123623430728912, 0.0274747796356678, -0.009472263976931572, -0.24613241851329803, -0.013317983597517014, 0.3121687173843384, 0.42884597182273865, 0.21476848423480988, 0.060680992901325226, -0.2728012502193451, -0.010538430884480476, -0.022560767829418182, -0.30333924293518066, 0.07821550965309143, 0.10136949270963669, -0.2962462902069092, 0.04244568943977356, -0.013296850956976414, 0.03574246168136597, 0.22105282545089722, 0.01381639577448368, -0.14380241930484772, -0.7564554810523987, 0.3295620083808899, -0.36978772282600403, 0.12553997337818146, 0.3463999927043915, -0.012613765895366669, 0.01298400480300188, -0.3289076089859009, 0.3513903319835663, 0.1373823583126068, -0.4095776677131653, 0.27807512879371643, -0.3876504600048065, -0.12743979692459106, 0.49777811765670776, 0.44109460711479187, 0.8089754581451416, -0.05540280416607857, 0.23449918627738953, 0.34947431087493896, -0.13197460770606995, 0.5014903545379639, -0.22654514014720917, 0.15404880046844482, -0.24588468670845032, -0.19719885289669037, 0.02981187030673027, 0.028945287689566612, -0.04111670330166817, -0.09684014320373535, -0.10229519009590149, 0.424910306930542, 0.1097572073340416, 0.018915066495537758, -0.05721399933099747, 0.007809005677700043, 0.20161603391170502, -0.017337443307042122, -0.15413621068000793, 0.20309072732925415, -0.08189412951469421, 0.1908835768699646, -0.1752750724554062, 0.012295392341911793, -0.21485376358032227, 0.05768877640366554, 0.0145762013271451, -0.14860095083713531, -0.24444977939128876, 0.21132247149944305, -0.07249254733324051, -0.4159747362136841, -0.3774953782558441, 0.5587133765220642, 0.41743358969688416, 0.1943916529417038, 0.029006492346525192, 0.20168259739875793, 0.01903628557920456, 0.11785811185836792, -0.058844227343797684, -0.07451006770133972, 0.1307757943868637, -0.04876461997628212, -0.24276821315288544, 0.09473294019699097, 0.17812436819076538, -0.25637558102607727, -0.23586711287498474, 0.16424678266048431, -0.3935205936431885, 0.14282087981700897, 0.013132224790751934, -0.08233246207237244, -0.05749431625008583, -0.07063450664281845, 0.17087049782276154, 0.012571493163704872, -0.06271247565746307, 0.35575780272483826, 0.14628806710243225, -0.504158616065979, -0.1616048514842987, 0.3129501938819885, -0.03948112949728966, 0.005243477411568165, -0.13372309505939484, -0.3825680613517761, 0.04567341506481171, -0.30214107036590576, -0.10493084788322449, -0.34362515807151794, -0.01639912836253643, 0.28439459204673767, 0.07784762233495712, -0.06672121584415436, 0.2067270278930664, 0.6172464489936829, 0.2040029913187027, 0.2291586697101593, 0.2028275430202484, -0.3756343126296997, -0.10113590210676193, 0.026163946837186813, 0.20026594400405884, 0.027095472440123558, 0.04101181402802467, 0.25916650891304016, 0.04419558495283127, 0.33287566900253296, -0.4154180586338043, -0.21122750639915466, -0.27285587787628174, 0.07712545990943909, -0.40332889556884766, -0.2485916018486023, -0.1983131468296051, 0.17884297668933868, 0.10683507472276688, 0.2859477698802948, -0.369585245847702, -0.24807420372962952, -0.18295806646347046, 0.0778273493051529, -0.014671824872493744, 0.2568800151348114, -0.12273009121417999, 0.08978866785764694, 0.028007835149765015, -0.2528814673423767, 0.02578890137374401, 0.2819302976131439, 0.1865689605474472, 0.15219725668430328, -0.09543843567371368, 0.4118029773235321, 0.1898353546857834, -0.01412791758775711, 0.06453662365674973, 0.03033272735774517, -0.09231340885162354, -0.08468683063983917, -0.15759477019309998, 0.019973546266555786, -0.4911457598209381, -0.15876665711402893, -0.1551728993654251, -0.1030331626534462, 0.03773093596100807, 0.03173615783452988, 0.12621811032295227, -0.24199716746807098, 0.29694074392318726, 0.2501829266548157, -0.058619994670152664, -0.3473284840583801, -0.030183734372258186, 0.2194414734840393, -0.3312297463417053, 0.22638674080371857, -0.08573306351900101, 0.24605832993984222, 0.2790098488330841, 0.4026721715927124, 0.28726068139076233, -0.17612087726593018, -0.03948235884308815, -0.1349143385887146, -0.09364284574985504, -0.26379647850990295, 0.166792631149292, -0.17470712959766388, 0.11362598836421967, -0.012839950621128082, 0.6192077994346619, 0.022977259010076523, 0.14892332255840302, 0.389422208070755, 0.18352627754211426, 0.3473847508430481, -0.35378944873809814, 0.03477366268634796, -0.15729673206806183, 0.1302666962146759, -0.09624649584293365, 0.4951855540275574, -0.004752108361572027, 0.05715012177824974, 0.16107970476150513, 0.23705652356147766, -0.3910464942455292, -0.262358158826828, -0.3800976872444153, 0.044798173010349274, -0.07528175413608551, -0.16968251764774323, -0.2992706000804901, -0.10491443425416946, -0.2750800549983978, -0.013725519180297852, 0.05983471870422363, 0.19096624851226807, 0.28898414969444275, 0.13966482877731323, -0.043606001883745193, -0.19414684176445007, -0.12645618617534637, 0.010285694152116776, 0.40567126870155334, -0.16452166438102722, 0.08636138588190079, 0.0578826367855072, 0.21722204983234406, 0.04157374054193497, 0.21977978944778442, 0.20977064967155457, 0.3153032064437866, -0.35650113224983215, 0.10378395020961761, -0.19265994429588318, -0.02600342407822609, -0.06899074465036392, 0.23194462060928345, 0.33855411410331726, -0.18314850330352783, 0.471670925617218, 0.1637120395898819, -0.2706424593925476, 0.4996531903743744, 0.1417890340089798, 0.35198351740837097, -0.26148203015327454, 0.5389918684959412, 0.23314055800437927, 0.23114493489265442, -0.08833418786525726, 0.06774698942899704, -0.44624945521354675, 0.15191683173179626, -0.5843313932418823, -0.03357065096497536, 0.032112427055835724, -0.37310102581977844, 0.11775950342416763, -0.053385693579912186, 0.39911746978759766, -0.10487443208694458, 0.17998149991035461, -0.11669247597455978, -0.19338762760162354, -0.6247977018356323, 0.11713629961013794, -0.11927579343318939, 0.011769963428378105, -0.11342456936836243, 0.27102914452552795, -0.30303049087524414, 0.31593650579452515, -0.08644465357065201, 0.5827922821044922, -0.07949285209178925, 0.2144664227962494, -0.5019689798355103, 0.2297375649213791, -0.47181493043899536, -0.1888471245765686, 0.1791079044342041, -0.029710521921515465, -0.060213714838027954, -0.24444805085659027, 0.11951404064893723, 0.0902114138007164, -0.08055999875068665, 0.015691248700022697, 0.8752219676971436, 0.4947996139526367, 0.1753019392490387, 0.19835512340068817, -0.11366681754589081, -0.14048534631729126, -0.037555042654275894, -0.19141480326652527, -0.039972733706235886, 0.14906904101371765, 0.021079046651721, 0.12287962436676025, -0.00955200381577015, 0.131147563457489, 0.010022439993917942, 0.7477491497993469, 0.10751422494649887, -0.2883639335632324, -0.15808697044849396, 0.1112048327922821, 0.033858682960271835, 0.09519784152507782, -0.35613447427749634, 0.5702245235443115, -0.006233735475689173, 0.38060474395751953, -0.1571124941110611, -0.3438034653663635, 0.52702796459198, -0.15360110998153687, -0.055810295045375824, -0.0444958433508873, 0.28386878967285156, 0.19970113039016724, -0.09554333239793777, -0.3783438801765442, 0.07034207135438919, 0.10696835815906525, 0.08961819857358932, 0.01726505532860756, 0.2902805805206299, -0.248746857047081, -0.08878087997436523, -0.19046564400196075, 0.13223160803318024, -0.010480761528015137, -0.0895543098449707, 0.3145933151245117, -0.34326982498168945 ]
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.5117926597595215, -0.06494329869747162, 0.04673786461353302, -0.21277673542499542, -0.05259743705391884, -0.09725074470043182, 0.24880315363407135, 0.35040512681007385, -0.24927492439746857, 0.0586385540664196, 0.19317233562469482, 0.41998669505119324, -0.42083558440208435, -0.11852356791496277, 0.34046587347984314, -0.2591933310031891, 0.12048482894897461, -0.07186800241470337, -0.058838773518800735, -0.07704631984233856, -0.3946816921234131, -0.0967772975564003, -0.2518253028392792, -0.0019549578428268433, -0.017070770263671875, -0.02989981696009636, -0.17760489881038666, -0.3150988221168518, 0.19137099385261536, -0.0266354288905859, 0.1828669160604477, 0.3647986054420471, -0.083442822098732, 0.1984163224697113, -0.00012928112118970603, -0.19040842354297638, 0.09212226420640945, -0.03857119008898735, -0.22485677897930145, -0.123529814183712, -0.09803471714258194, -0.11943695694208145, -0.12173927575349808, -0.18695466220378876, 0.16762594878673553, 0.04029211774468422, 0.25798651576042175, -0.32766029238700867, 0.4382551908493042, 0.13337989151477814, -0.05880730226635933, 0.03162228316068649, -0.09492574632167816, 0.03379005193710327, 0.5097755193710327, 0.46574866771698, -0.03280569612979889, -0.28580015897750854, 0.5987882614135742, -0.2376435548067093, -0.048191554844379425, 0.31152766942977905, -0.056830424815416336, -0.009525682777166367, 0.2963946759700775, -0.01021941751241684, -0.16447287797927856, -0.28601542115211487, -0.17815756797790527, 0.685987651348114, -0.10746369510889053, -0.33056503534317017, -0.5636526346206665, -0.3081480860710144, 0.10562591254711151, -0.23657508194446564, -0.48406994342803955, 0.03168217092752457, -0.1258302479982376, -0.04669314995408058, -0.8150779008865356, -0.10630439966917038, -0.3973287045955658, 0.39788609743118286, -0.1625310182571411, 0.13736702501773834, 0.25689902901649475, 0.2220887392759323, 0.10738947987556458, -0.26159822940826416, -0.10220222175121307, -0.14488637447357178, 0.257275253534317, 0.4562513530254364, -0.09176691621541977, -0.3255052864551544, 0.08903631567955017, -0.04865358769893646, 0.5503166913986206, 0.08205725252628326, -0.0035309589002281427, 0.184146910905838, -0.2206219732761383, -0.025934215635061264, -0.028433458879590034, -0.00536321708932519, 0.03188759833574295, 0.523282527923584, 0.1720312535762787, -0.06079999729990959, -0.06206655874848366, 0.37382182478904724, -0.05331232398748398, -0.1968531459569931, -0.18626953661441803, 0.22874589264392853, -0.15394677221775055, 0.1261385977268219, -0.07833358645439148, -0.22516076266765594, -0.26090872287750244, -0.02592068538069725, 0.096060611307621, 0.11377330869436264, -0.059296127408742905, -0.02020128071308136, 0.1481964886188507, 0.11808322370052338, 0.034574419260025024, -0.07613221555948257, 0.03661385551095009, -0.1324022263288498, -0.36628565192222595, 0.13339978456497192, 0.3161875009536743, 0.16342797875404358, 0.03577986732125282, -0.09006684273481369, 0.04933400824666023, 0.39587244391441345, 0.031780872493982315, -0.10152934491634369, 0.4242265820503235, -0.10630704462528229, -0.3029843270778656, 0.09028887003660202, 0.050214529037475586, 0.21033060550689697, -0.32756802439689636, 0.17871156334877014, -0.5758726000785828, -0.5673735737800598, 0.23677478730678558, 0.0075081330724060535, 0.08831039816141129, -0.025956077501177788, -0.13968254625797272, 0.4832127094268799, 0.3983258306980133, -0.3995804488658905, -0.01873478665947914, -0.46314674615859985, -0.3660458028316498, -0.044632311910390854, 0.1977968066930771, 0.3899156451225281, -0.06479986757040024, -0.10405823588371277, -0.122766874730587, 0.25287723541259766, 0.2617073655128479, 0.2549605369567871, -0.36343786120414734, 0.32141628861427307, -0.010430943220853806, 0.0024094078689813614, 0.5380627512931824, -0.16340796649456024, -0.04623790830373764, 0.46840375661849976, -0.08066875487565994, 0.12572383880615234, 0.020697427913546562, -0.055274832993745804, 0.6303878426551819, -0.27148374915122986, 0.5482943058013916, 0.4955849349498749, -0.24490052461624146, 0.2318507730960846, 0.104063019156456, -0.2603806257247925, 0.11292553693056107, 0.10383852571249008, 0.15815135836601257, -0.15798649191856384, -0.09196382015943527, 0.1619405597448349, 0.2925557792186737, -0.3035008907318115, 0.14943009614944458, -0.2504132390022278, -0.28020593523979187, 0.08378606289625168, -0.169011190533638, -0.2650311291217804, -0.40438586473464966, -0.0532115139067173, -0.1862904578447342, -0.11818350851535797, 0.3396584391593933, -0.34094780683517456, 0.33101850748062134, -0.03610857203602791, 0.11900725215673447, 0.014399709179997444, -0.09510263055562973, 0.07692208141088486, 0.08486239612102509, 0.014127395115792751, -0.14357872307300568, -0.3389591574668884, -0.05381402373313904, 0.15892992913722992, 0.007239685393869877, 0.06502112001180649, 0.383391410112381, 0.010754949413239956, -0.22583073377609253, 0.2299622744321823, -0.012986492365598679, -0.28216373920440674, 0.23075513541698456, 0.28183478116989136, 0.15165551006793976, -0.0679396390914917, -0.17617708444595337, 0.354889452457428, 0.42818784713745117, 0.10574030876159668, 0.11387746781110764, 0.2418980598449707, 0.10266054421663284, -0.20121558010578156, -0.5654882192611694, 0.3278256356716156, 0.015929220244288445, 0.5668687224388123, 0.2172817885875702, 0.03671805188059807, -0.26147031784057617, 0.08435707539319992, -0.39247772097587585, -0.12330178171396255, 0.06425639241933823, -0.09243392944335938, 0.061921410262584686, -0.17798654735088348, -0.10982804000377655, 0.13850165903568268, 0.33412376046180725, -0.062313102185726166, 0.01604248583316803, 0.45998823642730713, -0.008358935825526714, -0.14534129202365875, -0.14267048239707947, 0.07415614277124405, 0.2954387962818146, 0.19297848641872406, 0.04573303833603859, -0.15670160949230194, 0.03307366371154785, 0.08373396098613739, 0.215298593044281, 0.15707513689994812, 0.065049909055233, 0.1256742626428604, 0.18531090021133423, 0.1826387494802475, 0.009082911536097527, -0.5682793855667114, 0.18825465440750122, -0.007958292961120605, -0.25395968556404114, 0.1310594230890274, -0.05174233391880989, -0.07492862641811371, -0.32826727628707886, -0.38064873218536377, 0.21215786039829254, -0.2187453955411911, 0.28848153352737427, -0.12821492552757263, -0.2969515323638916, 0.2772268056869507, 0.43692561984062195, 0.4191138744354248, 0.05731722339987755, -0.21483255922794342, -0.06919479370117188, -0.21955600380897522, -0.010006753727793694, -0.10279963910579681, 0.0953417718410492, -0.23130124807357788, 0.3172833323478699, 0.05285589396953583, -0.03004848212003708, -0.40306201577186584, -0.359681636095047, -0.04224797710776329, -0.14545440673828125, -0.09496505558490753, 0.47976917028427124, 0.06534945964813232, -0.08451934903860092, -0.23748746514320374, 0.0989019125699997, -0.31982672214508057, 0.06722384691238403, -0.013090262189507484, 0.06728675216436386, 0.027681130915880203, -0.003539169440045953, -0.17495165765285492, -0.06539050489664078, -0.14450512826442719, 0.28549033403396606, -0.25134024024009705, 0.1826520413160324, 0.04108273983001709, 0.23526163399219513, -0.011329468339681625, -0.09861523658037186, -0.16383260488510132, 0.32044342160224915, -0.07227183133363724, 0.12160579860210419, -0.29690006375312805, -0.057740218937397, -0.38480162620544434, 0.014755159616470337, -0.4168524444103241, 0.8833580613136292, -0.257057249546051, 0.06533844023942947, -0.010964854620397091, 0.11444824934005737, -0.02868068590760231, 0.11447204649448395, 0.4594358205795288, 0.1734047830104828, 0.08428636193275452, -0.07531175017356873, 0.0018323407275602221, 0.06281227618455887, 0.07647112756967545, -0.01328831072896719, 0.16764472424983978, 0.31079310178756714, 0.1382339894771576, 1.0362786054611206, 0.4065800905227661, -0.1977277249097824, -0.12377718091011047, -0.09552276134490967, -0.13065092265605927, -0.09421581029891968, -0.07739326357841492, 0.2284001260995865, -0.10270453244447708, 0.0158004742115736, 0.2640620470046997, 0.01933513954281807, -0.29133573174476624, 0.09273084253072739, 0.2628011107444763, -0.06299330294132233, -0.3514673411846161, 0.4311908483505249, -0.25346291065216064, 0.3162635862827301, -0.06289403885602951, -0.02182462252676487, -0.45899999141693115, -0.045087460428476334, 0.1393500715494156, 0.028478944674134254, 0.4992493987083435, 0.008977505378425121, -0.1856805831193924, -0.19425085186958313, -0.17438364028930664, 0.25923675298690796, 0.3169304430484772, -0.16960956156253815, -0.04714791104197502, -0.270478218793869, -0.18046486377716064, 0.040841057896614075, 0.668376088142395, -0.4042584002017975, -0.09447608143091202, -0.0640057921409607, -0.14112602174282074, -0.35630175471305847, 0.03124668262898922, -0.24819862842559814, 0.06974450498819351, -0.01985188201069832, 0.4948212802410126, -0.38804489374160767, -0.11994446814060211, 0.5387395620346069, 0.2025347352027893, 0.07076171785593033, 0.22782783210277557, 0.3494003713130951, 0.05124939605593681, -0.29301759600639343, 0.046153876930475235, 0.00838605035096407, -0.1381508708000183, -0.057340241968631744, -0.1563095599412918, -0.2667962908744812, 0.18519915640354156, 0.17924946546554565, 0.04694170504808426, 0.03654317557811737, 0.17413106560707092, 0.24748310446739197, -0.19481925666332245, -0.038881536573171616, 0.5333440899848938, -0.023281918838620186, -0.52981036901474, -0.2901957631111145, -0.2957296669483185, 0.09348723292350769, 0.48385298252105713, 0.3759441077709198, 0.1037958413362503, -0.2002667486667633, 0.09907951205968857, 0.34446612000465393, -0.1938914656639099, 0.3590349853038788, 0.2385074347257614, -0.004601699765771627, -0.2231171578168869, -0.6674755811691284, 0.2885186970233917, 0.3396402597427368, -0.15392661094665527, 0.49994733929634094, -0.11281891167163849, -0.4338572323322296, 0.43767592310905457, 0.2138667106628418, 0.8605986833572388, -0.09303632378578186, 0.42889267206192017, 0.0714300200343132, 0.2922266125679016, 0.03559798374772072, -0.3562483787536621, 0.17453794181346893, -0.038823921233415604, 0.03779719024896622, -0.033929139375686646, 0.06315675377845764, -0.06563775986433029, 0.3533823490142822, -0.36374789476394653, 0.17853964865207672, 0.1664639562368393, 0.05364038050174713, -0.1254022717475891, -0.14962810277938843, 0.12313421815633774, -0.4545205235481262, 0.1960611790418625, -0.07371368259191513, 0.18059691786766052, -0.016382358968257904, -0.06443239003419876, -0.21704693138599396, 0.01754852570593357, -0.1197938323020935, -0.40375691652297974, -0.16840259730815887, -0.46348366141319275, 0.11808367818593979, -0.1645263135433197, -0.369655579328537, 0.13608145713806152, 0.314081609249115, -0.08946230262517929, 0.2606814503669739, -0.010971277952194214, -0.08494652062654495, 0.053175188601017, 0.12343867123126984, -0.11260287463665009, -0.43617120385169983, 0.46044644713401794, 0.02410772629082203, 0.0635959655046463, 0.1180090680718422, -0.01359137799590826, 0.02036387473344803, -0.23200863599777222, -0.13479268550872803, 0.6238183379173279, -0.16974273324012756, 0.0811619684100151, 0.44077569246292114, -0.21019448339939117, -0.16499586403369904, -0.08183985203504562, -0.08217763900756836, -0.04039711132645607, 0.4395228922367096, -0.17776474356651306, -0.019616343080997467, 0.08874794840812683, 0.17746388912200928, -0.14300304651260376, -0.2058621197938919, 0.219424769282341, 0.03470960631966591, 0.0017068573506549, -0.2143191695213318, 0.41867589950561523, 0.34126225113868713, -0.5785902142524719, 0.2002492994070053, -0.07552451640367508, 0.13830989599227905, 0.19267788529396057, 0.494073748588562, 0.0020637852139770985, 0.2198425531387329, -0.10512969642877579, -0.14939109981060028, -0.08775684982538223, 0.09881359338760376, 0.09802915900945663, 0.35791587829589844, -0.264395534992218, 0.0938262939453125, 0.1101919412612915, 0.22625413537025452, -0.1430220752954483, 0.13029856979846954, 0.1500338464975357, 0.3245946764945984, -0.14690174162387848, 0.1860022395849228, -0.34503281116485596, 0.1204134151339531, -0.1457299143075943, 0.024890149012207985, -0.08707200735807419, -0.033914126455783844, -0.13416051864624023, 0.2138228416442871, 0.01361923012882471, -0.012630309909582138, 0.26628735661506653, -0.00650761229917407, -0.2293901890516281, -0.4863313138484955, 0.4170765280723572, -0.09887201339006424, -0.19325228035449982, 0.03233533725142479, 0.28721487522125244, 0.14878596365451813, 0.043474145233631134, 0.23041318356990814, 0.1464754194021225, 0.16852670907974243, -0.14056789875030518, 0.17050893604755402, 0.05163997784256935, -0.3247898519039154, 0.07421102374792099, 0.24457962810993195, 0.49829643964767456, 0.1670568585395813, 0.37019649147987366, -0.04555443674325943, -0.2654017508029938, 0.2559412717819214, 0.06079759821295738, 0.3003188371658325, -0.21457242965698242, 0.08911863714456558, 0.25068023800849915, 0.04328124225139618, -0.1449577361345291, 0.0008066718582995236, 0.11593715846538544, -0.12712880969047546, 0.14092949032783508, 0.15316277742385864, -0.32670578360557556, -0.13711093366146088, -0.009920318610966206, -0.10051780194044113, -0.005487300921231508, -0.2498062551021576, 0.15893784165382385, 0.5841217637062073, -0.09647158533334732, 0.005483916494995356, -0.3491956293582916, 0.20939327776432037, 0.30796682834625244, -0.13427618145942688, 0.06246894970536232, 0.725910484790802, 0.18677054345607758, 0.04451105743646622, 0.3982732892036438, -0.23893439769744873, 0.03795848414301872, 0.11826816201210022, 0.08143087476491928, 0.4266918897628784, 0.22451283037662506, 0.028922080993652344, -0.05163505673408508, -0.22233329713344574, -0.17806655168533325, 0.3308289051055908, 0.2070913314819336, -0.25607219338417053, -0.1284089982509613, -0.1608002781867981, 0.19127057492733002, -0.06829418241977692, -0.22825567424297333, -0.012185602448880672, 0.639649510383606, 0.1894582062959671, 0.42831385135650635, 0.035601455718278885, -0.2567310333251953, -0.23384033143520355, 0.47147873044013977, -0.24505876004695892, -0.11832597106695175, 0.18643446266651154, -0.10907142609357834, -0.043082527816295624, 0.30374494194984436, 0.3738417625427246, 0.25545164942741394, -0.2062002569437027, 0.3856815993785858, -0.34021204710006714, 0.15663571655750275, 0.0453634038567543, 0.1711401790380478, 0.0649493858218193, -0.24258191883563995, 0.27986401319503784, -0.11200950294733047, -0.013645514845848083, 0.1677277833223343, -0.131957545876503, -0.015959717333316803, -0.22078029811382294, 0.09142585843801498, 0.2969558537006378, -0.2220667451620102, -0.0637010931968689, 0.14551544189453125, -0.08269037306308746, 0.16357670724391937, 0.25864505767822266, -0.32324233651161194, 0.018107939511537552, 0.22099721431732178, -0.007962306030094624, 0.07852806895971298, 0.4866628646850586, 0.07317845523357391, 0.08235140889883041, -0.32614290714263916, -0.34856411814689636, -0.04453711211681366, -0.22371451556682587, -0.14922402799129486, 0.07823091745376587, -0.0020911679603159428, 0.05209018662571907, 0.15423016250133514, 0.31467264890670776, -0.0017992190551012754, -0.7042707800865173, -0.11451564729213715, 0.5776194930076599, -0.17485302686691284, -0.11609020829200745, 0.1270686835050583, 0.13648760318756104, 0.11953586339950562, -0.3580101728439331, 0.1266157329082489, -0.2097090780735016, -0.19292284548282623, -0.0605747327208519, 0.15726825594902039, 0.3012135326862335, 0.07566269487142563, 0.14411070942878723, 0.11444300413131714, 0.11082030087709427, 0.037125181406736374, 0.22318613529205322, -0.1126597598195076, 0.17210811376571655, -0.03616057708859444, 0.20402799546718597, 0.100608691573143, 0.0013342354213818908, -0.28957226872444153, -0.3310927450656891, -0.041956331580877304, -0.3831174373626709, 0.29119935631752014, 0.019023146480321884, -0.12996791303157806, -0.06236911565065384, -0.04530048370361328, -0.04455403611063957, 0.12692783772945404, 0.4295782148838043, -0.12052366137504578, -0.20041990280151367, 0.046211596578359604, -0.26019737124443054, 0.3955247700214386, -0.4662589430809021, -0.32046085596084595, -0.47959619760513306, 0.16789761185646057, -0.41460156440734863, 0.22870631515979767, -0.4381662607192993, -0.10768378525972366, 0.40409553050994873, -0.0032032595481723547, -0.40826746821403503, 0.23611262440681458, 0.12415515631437302, -0.29438239336013794, -0.255400151014328, 0.3656480014324188, 0.01229556743055582, -0.22831663489341736, -0.1586788147687912, -0.6390988230705261 ]
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.5140854120254517, -0.06388507783412933, 0.04673580825328827, -0.22718265652656555, -0.06906411051750183, -0.05510599538683891, 0.277511328458786, 0.3193072974681854, -0.23359182476997375, 0.051775891333818436, 0.18533754348754883, 0.4330142140388489, -0.38917097449302673, -0.15676091611385345, 0.3206685483455658, -0.21235254406929016, 0.13802577555179596, -0.0705329179763794, -0.047108959406614304, -0.0676657035946846, -0.4131714999675751, -0.08138242363929749, -0.3076457977294922, -0.01930394023656845, 0.015838900581002235, -0.05172355845570564, -0.1688469648361206, -0.3216547667980194, 0.19851280748844147, -0.05723854526877403, 0.1546298712491989, 0.3466901481151581, -0.07777465134859085, 0.20246373116970062, -0.0001282074663322419, -0.1830333173274994, 0.08523423969745636, -0.06605397164821625, -0.2778266668319702, -0.10433577746152878, -0.12224646657705307, -0.09217698127031326, -0.18749697506427765, -0.19216975569725037, 0.1732087880373001, 0.013910829089581966, 0.22943589091300964, -0.3430962860584259, 0.4886731207370758, 0.11278744786977768, -0.05097372457385063, 0.06581442803144455, -0.08223701268434525, 0.04041314870119095, 0.47337543964385986, 0.4220072031021118, -0.03351379185914993, -0.256085604429245, 0.5853220820426941, -0.22361280024051666, -0.05612080544233322, 0.31670185923576355, -0.06406742334365845, -0.012553569860756397, 0.2690359652042389, 0.006932409014552832, -0.12763486802577972, -0.27821579575538635, -0.1596965491771698, 0.6687787771224976, -0.17962133884429932, -0.3169805407524109, -0.554655909538269, -0.35928305983543396, 0.0945756584405899, -0.25106921792030334, -0.4691944718360901, 0.030872194096446037, -0.15246440470218658, -0.05949558690190315, -0.848056435585022, -0.07252386957406998, -0.3502871096134186, 0.38336074352264404, -0.1656908094882965, 0.15732625126838684, 0.2363448143005371, 0.21938647329807281, 0.12542054057121277, -0.26357534527778625, -0.11692614108324051, -0.1893373727798462, 0.20127332210540771, 0.4865551292896271, -0.062196072190999985, -0.328747421503067, 0.06573674082756042, -0.04548957571387291, 0.5274831652641296, 0.017833523452281952, 0.001493222895078361, 0.1767750382423401, -0.14487294852733612, -0.05632675811648369, -0.0290260948240757, 0.012923023663461208, 0.08600197732448578, 0.5244883894920349, 0.1836901754140854, -0.07108518481254578, -0.07343995571136475, 0.3761555552482605, 0.0010377943981438875, -0.19391293823719025, -0.13754504919052124, 0.28322139382362366, -0.15395449101924896, 0.16063666343688965, -0.07123282551765442, -0.21176856756210327, -0.2780437767505646, -0.0161033533513546, 0.07048913091421127, 0.10739484429359436, -0.044525958597660065, -0.12050797790288925, 0.12252283096313477, 0.10432673990726471, 0.03427328169345856, -0.07587745785713196, 0.03353746607899666, -0.17915847897529602, -0.3669871389865875, 0.11222020536661148, 0.3516444265842438, 0.12530165910720825, 0.05581279471516609, -0.09146755188703537, 0.022624408826231956, 0.36126574873924255, -0.03328895941376686, -0.06956610083580017, 0.48200809955596924, -0.10843058675527573, -0.2738676965236664, 0.1136990487575531, 0.06542260944843292, 0.1628781110048294, -0.3124419152736664, 0.18070083856582642, -0.5805320143699646, -0.48110416531562805, 0.31435319781303406, 0.02412007935345173, 0.05567131191492081, -0.012737703509628773, -0.21115709841251373, 0.43948256969451904, 0.39324861764907837, -0.35997581481933594, 0.009745058603584766, -0.4304400086402893, -0.3189179599285126, -0.040207915008068085, 0.19839955866336823, 0.40124839544296265, -0.07792529463768005, -0.13918425142765045, -0.06530074775218964, 0.26194390654563904, 0.25371068716049194, 0.2722931504249573, -0.36929598450660706, 0.3295794725418091, -0.03301428258419037, 0.014165056869387627, 0.5044758319854736, -0.13570907711982727, -0.07615421712398529, 0.4683813154697418, -0.10219665616750717, 0.16582730412483215, -0.03354284539818764, -0.0839250385761261, 0.6721916794776917, -0.30239132046699524, 0.5717001557350159, 0.4612060785293579, -0.2615790367126465, 0.21656309068202972, 0.09593870490789413, -0.2506914734840393, 0.057170551270246506, 0.05973716825246811, 0.1780988723039627, -0.16544747352600098, -0.11076071113348007, 0.14697472751140594, 0.28590038418769836, -0.29646730422973633, 0.1687086820602417, -0.2055942714214325, -0.30212706327438354, 0.07926042377948761, -0.17635908722877502, -0.21846427023410797, -0.4042705297470093, -0.0012165720108896494, -0.2266482263803482, -0.156690776348114, 0.2583782970905304, -0.3116947412490845, 0.34731218218803406, -0.0253705196082592, 0.05283759906888008, -0.005587160587310791, -0.07069043815135956, 0.03357505798339844, 0.12244532257318497, 0.057740598917007446, -0.11514411866664886, -0.34562721848487854, 0.008259568363428116, 0.15611420571804047, 0.003323618322610855, 0.05034913495182991, 0.35681191086769104, 0.005824720952659845, -0.2318895161151886, 0.21771271526813507, 0.029840638861060143, -0.31604820489883423, 0.23201055824756622, 0.2861751914024353, 0.10133840143680573, -0.06440377980470657, -0.2576485574245453, 0.3316795527935028, 0.45436403155326843, 0.11829855293035507, 0.09732308983802795, 0.2350212186574936, 0.11910352110862732, -0.21469110250473022, -0.5587958693504333, 0.36711153388023376, 0.0026506956201046705, 0.5796781778335571, 0.1737106889486313, 0.04297449439764023, -0.27401822805404663, 0.08381366729736328, -0.42698514461517334, -0.15429094433784485, 0.06994783878326416, -0.12550035119056702, 0.017976565286517143, -0.17768295109272003, -0.05784245952963829, 0.12296897917985916, 0.2958962917327881, -0.08652503043413162, 0.0253415759652853, 0.3899831175804138, -0.05576009303331375, -0.12436718493700027, -0.16212807595729828, 0.07942993938922882, 0.29922547936439514, 0.17754024267196655, 0.07801192998886108, -0.17081218957901, 0.028387660160660744, 0.06303742527961731, 0.22882474958896637, 0.14428214728832245, 0.030529197305440903, 0.1563626378774643, 0.16709263622760773, 0.17812763154506683, -0.029591029509902, -0.5074167847633362, 0.2409532368183136, -0.03653237223625183, -0.24412712454795837, 0.11465445905923843, -0.0737813413143158, -0.07875896245241165, -0.32045504450798035, -0.37417879700660706, 0.23632749915122986, -0.24550886452198029, 0.29172301292419434, -0.09375888854265213, -0.27943381667137146, 0.3288770616054535, 0.4729544520378113, 0.37353965640068054, 0.06700386852025986, -0.23653239011764526, -0.0940205305814743, -0.25384876132011414, -0.007524960674345493, -0.09842962771654129, 0.0669916644692421, -0.2963276505470276, 0.3102850914001465, 0.04911418259143829, -0.05904320254921913, -0.44378697872161865, -0.3047180473804474, -0.031240535899996758, -0.1708151251077652, -0.08168228715658188, 0.45613524317741394, 0.09469328075647354, -0.10127720236778259, -0.24396143853664398, 0.11658293008804321, -0.292150616645813, 0.03310779854655266, 0.0019352890085428953, 0.08839745074510574, -0.016585851088166237, -0.010400666855275631, -0.102486751973629, -0.031077569350600243, -0.10953432321548462, 0.2773321866989136, -0.303809255361557, 0.15100371837615967, 0.10065171867609024, 0.23725949227809906, -0.040225401520729065, -0.12264847010374069, -0.21765883266925812, 0.2773083448410034, -0.0570499524474144, 0.16449257731437683, -0.31484368443489075, -0.08042886108160019, -0.3558788001537323, 0.008024274371564388, -0.4721951484680176, 0.8751980066299438, -0.23290424048900604, 0.09795583784580231, 0.006103243213146925, 0.16518576443195343, 0.01040604803711176, 0.1134643703699112, 0.4450584352016449, 0.15659022331237793, 0.07446873933076859, -0.08696313947439194, 0.05319096893072128, 0.08612222969532013, 0.04634447395801544, 0.02510213479399681, 0.15529824793338776, 0.3127290904521942, 0.1483411341905594, 1.0749417543411255, 0.4066048562526703, -0.21696636080741882, -0.15869422256946564, -0.10326305031776428, -0.11727324873209, -0.1119464784860611, -0.12297967076301575, 0.18623410165309906, -0.1086738333106041, 0.04464065283536911, 0.2721088230609894, -0.010847033001482487, -0.32702353596687317, 0.10429918766021729, 0.3022099435329437, -0.06965320557355881, -0.39310702681541443, 0.41120797395706177, -0.2923818528652191, 0.3231608271598816, -0.00937514565885067, 0.018236011266708374, -0.4317821264266968, -0.0527656152844429, 0.17727935314178467, -0.02182687073945999, 0.5039942860603333, -0.00043757481034845114, -0.21706904470920563, -0.19897441565990448, -0.23174907267093658, 0.2421083301305771, 0.3034304976463318, -0.10310032218694687, -0.018444573506712914, -0.26298320293426514, -0.1854945421218872, 0.044402528554201126, 0.6822599172592163, -0.42079097032546997, -0.023535367101430893, -0.058705177158117294, -0.10079076141119003, -0.35383859276771545, -0.005698706489056349, -0.2146228849887848, 0.06145288422703743, -0.018594879657030106, 0.5420698523521423, -0.3696385324001312, -0.10545306652784348, 0.499654084444046, 0.20159801840782166, 0.029203057289123535, 0.2182331681251526, 0.34422796964645386, 0.0626819059252739, -0.26905038952827454, 0.04282740131020546, 0.06184079125523567, -0.12427934259176254, -0.03765285015106201, -0.12525898218154907, -0.295595645904541, 0.18935583531856537, 0.18369103968143463, 0.03365593031048775, 0.04841559752821922, 0.222652405500412, 0.30569568276405334, -0.15970173478126526, -0.018775131553411484, 0.5131605863571167, -0.04892316460609436, -0.5048872828483582, -0.2913345694541931, -0.30845823884010315, 0.06048715114593506, 0.43030640482902527, 0.3761098384857178, 0.09626996517181396, -0.16764160990715027, 0.10003480315208435, 0.30848753452301025, -0.23458008468151093, 0.29473668336868286, 0.1828978955745697, 0.025724582374095917, -0.2415444701910019, -0.6020064949989319, 0.26224207878112793, 0.3142393231391907, -0.18632981181144714, 0.472135454416275, -0.1496139019727707, -0.47981154918670654, 0.4604499936103821, 0.21560806035995483, 0.7913639545440674, -0.07528320699930191, 0.4272468686103821, 0.0521436408162117, 0.32198768854141235, 0.005877399817109108, -0.3096727430820465, 0.19158177077770233, -0.03361497446894646, 0.0491669587790966, -0.03641488403081894, 0.07955753803253174, -0.020145930349826813, 0.3469967842102051, -0.3440817594528198, 0.14374007284641266, 0.19492985308170319, 0.04612363874912262, -0.1402459442615509, -0.1863616555929184, 0.14658740162849426, -0.44941526651382446, 0.23318204283714294, -0.06417060643434525, 0.22825312614440918, 0.03234203904867172, -0.06661317497491837, -0.1915910691022873, -0.009883705526590347, -0.15790992975234985, -0.42186638712882996, -0.18532928824424744, -0.48943325877189636, 0.15974703431129456, -0.1500018835067749, -0.3506145775318146, 0.10166437178850174, 0.31872159242630005, -0.03471357002854347, 0.23996517062187195, -0.0003744587011169642, -0.09022895991802216, 0.10997502505779266, 0.11469216644763947, -0.1349404901266098, -0.44171321392059326, 0.389644056558609, 0.03805578127503395, 0.11160552501678467, 0.12353117018938065, -0.022967016324400902, 0.012907424941658974, -0.251973420381546, -0.09735874086618423, 0.5527215600013733, -0.15180547535419464, 0.07386024296283722, 0.4275229275226593, -0.20104236900806427, -0.15764419734477997, -0.08793625980615616, -0.09589558839797974, -0.04409549757838249, 0.4851014018058777, -0.19490323960781097, -0.024871036410331726, 0.09599898010492325, 0.2647048830986023, -0.17661434412002563, -0.20134666562080383, 0.2617534399032593, 0.035663772374391556, -0.008654706180095673, -0.2109425812959671, 0.4334563612937927, 0.32323333621025085, -0.5678303837776184, 0.19254449009895325, -0.12283608317375183, 0.16227181255817413, 0.21483473479747772, 0.5561856031417847, 0.018917040899395943, 0.1946834921836853, -0.07931453734636307, -0.167025625705719, -0.06471844017505646, 0.09959272295236588, 0.146192267537117, 0.3351041376590729, -0.22189109027385712, 0.10501349717378616, 0.11110606044530869, 0.23396837711334229, -0.14644412696361542, 0.1537616103887558, 0.15230999886989594, 0.3649276793003082, -0.16950540244579315, 0.15770849585533142, -0.32026535272598267, 0.09940330684185028, -0.1308973729610443, 0.07631473988294601, -0.07471318542957306, -0.05218232050538063, -0.14783969521522522, 0.19803281128406525, -0.01322166994214058, -0.006733790505677462, 0.23094391822814941, -0.007065586745738983, -0.19566182792186737, -0.4530235528945923, 0.4037022590637207, -0.05321995168924332, -0.1667293906211853, 0.021342085674405098, 0.32608383893966675, 0.18864119052886963, 0.0462091825902462, 0.2146921306848526, 0.09154672920703888, 0.18074089288711548, -0.1452658623456955, 0.1620861142873764, 0.04658002406358719, -0.28291839361190796, 0.038136932998895645, 0.23885385692119598, 0.4492776691913605, 0.12729531526565552, 0.41308948397636414, -0.11206888407468796, -0.26441675424575806, 0.2797034978866577, 0.06494065374135971, 0.3199543356895447, -0.24080029129981995, 0.04064635559916496, 0.27592578530311584, 0.05518736690282822, -0.16618022322654724, -0.004198033362627029, 0.11943291872739792, -0.10929954797029495, 0.18780794739723206, 0.1554250866174698, -0.3166794776916504, -0.1522834450006485, -0.035422053188085556, -0.1164303794503212, 0.039045464247465134, -0.22554245591163635, 0.1427636742591858, 0.578398585319519, -0.025698233395814896, 0.003585808677598834, -0.33779123425483704, 0.20785191655158997, 0.3080682158470154, -0.15137991309165955, 0.031784310936927795, 0.6774338483810425, 0.2314913421869278, 0.07457611709833145, 0.3520648181438446, -0.2667873799800873, 0.04366399720311165, 0.10501957684755325, 0.04881828650832176, 0.454557329416275, 0.24420389533042908, 0.0040770890191197395, -0.0732305496931076, -0.23706330358982086, -0.15407001972198486, 0.36489689350128174, 0.17673368752002716, -0.31243640184402466, -0.17108231782913208, -0.1617448776960373, 0.20024307072162628, -0.0611119344830513, -0.21406547725200653, -0.010078956373035908, 0.6305128335952759, 0.1756516993045807, 0.42124640941619873, 0.03688811883330345, -0.2943114638328552, -0.23498152196407318, 0.47131645679473877, -0.26738202571868896, -0.12625782191753387, 0.1309453397989273, -0.07810825854539871, -0.04031534865498543, 0.3186545968055725, 0.36821889877319336, 0.23989714682102203, -0.19706498086452484, 0.4103489816188812, -0.36227840185165405, 0.13309629261493683, 0.03039834275841713, 0.21299967169761658, 0.06600483506917953, -0.2545666992664337, 0.3269319534301758, -0.0984082818031311, -0.008063333109021187, 0.17575623095035553, -0.06430419534444809, -0.03218844532966614, -0.1354914903640747, 0.06980909407138824, 0.2563368082046509, -0.21206910908222198, -0.011336763389408588, 0.1224326640367508, -0.04561562463641167, 0.16322752833366394, 0.24274086952209473, -0.33653557300567627, 0.050639327615499496, 0.21278244256973267, -0.0005313865840435028, 0.06123410537838936, 0.5081923604011536, 0.1196383386850357, 0.046973563730716705, -0.3565032482147217, -0.3246796429157257, -0.07016371190547943, -0.281175822019577, -0.21405045688152313, 0.08959775418043137, -0.032757312059402466, 0.09002584964036942, 0.17607887089252472, 0.3353976011276245, -0.017670689150691032, -0.6501461863517761, -0.13598640263080597, 0.6674087643623352, -0.15390650928020477, -0.0999751165509224, 0.19104348123073578, 0.16517436504364014, 0.09857109189033508, -0.3816346526145935, 0.14926956593990326, -0.1842806041240692, -0.1660044938325882, -0.05398428067564964, 0.14337879419326782, 0.2851286828517914, 0.04822080209851265, 0.1643345057964325, 0.14126355946063995, 0.09115388244390488, 0.060311976820230484, 0.209720641374588, -0.12401287257671356, 0.19570723176002502, 0.0016567917773500085, 0.14379611611366272, 0.14979617297649384, 0.008000558242201805, -0.3051386773586273, -0.316102534532547, -0.017416175454854965, -0.3985346853733063, 0.3030867278575897, 0.014469899237155914, -0.19119176268577576, -0.030049702152609825, -0.038428544998168945, -0.006873189937323332, 0.11978691071271896, 0.45815810561180115, -0.1326552778482437, -0.1447969526052475, 0.04470747709274292, -0.2986309826374054, 0.3907760679721832, -0.5670869946479797, -0.31397879123687744, -0.44908055663108826, 0.13556991517543793, -0.36799055337905884, 0.2406044900417328, -0.37502533197402954, -0.11693775653839111, 0.42492181062698364, -0.052497416734695435, -0.39076319336891174, 0.19690150022506714, 0.10747943073511124, -0.2897550165653229, -0.2804972231388092, 0.36300304532051086, 0.06197069212794304, -0.24553322792053223, -0.14760617911815643, -0.6292200684547424 ]
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.32604527473449707, 0.3610110878944397, -0.06005510687828064, 0.5487005710601807, 0.0407031886279583, -0.1400742083787918, 0.3431127667427063, 0.4284069836139679, 0.21433204412460327, -0.11396969109773636, -0.04363132268190384, 0.33327069878578186, 0.23643989861011505, 0.05870343744754791, -0.26586219668388367, -0.16561581194400787, -0.019632259383797646, 0.2937224805355072, -0.12462415546178818, 0.34829655289649963, -0.22258850932121277, 0.452397882938385, -0.10002563148736954, 0.13126645982265472, 0.013991942629218102, -0.0840228945016861, 0.055125635117292404, 0.3630201816558838, -0.16610518097877502, -0.5221458673477173, 0.26167723536491394, -0.29756492376327515, -0.10711299628019333, 0.4265524744987488, -0.00011217655264772475, 0.2836858332157135, 0.2796027660369873, -0.1050381064414978, -0.3678911030292511, -0.05631975084543228, 0.02190866321325302, -0.18979601562023163, 0.0807165876030922, -0.18023563921451569, 0.20297785103321075, -0.2733660936355591, -0.3524166941642761, -0.14096949994564056, 0.52802574634552, 0.10369749367237091, 0.16150739789009094, -0.1449667364358902, 0.30785220861434937, -0.008729689754545689, 0.09761453419923782, -0.012885063886642456, -0.13418421149253845, 0.3496532738208771, -0.27466079592704773, 0.16067463159561157, -0.1773141324520111, 0.03397105634212494, -0.14738968014717102, -0.036386363208293915, 0.06702612340450287, 0.03534550964832306, 0.15725906193256378, 0.024221748113632202, 0.006247077602893114, -0.008396100252866745, 0.1443328708410263, -0.1276884377002716, -0.07597269862890244, -0.23981258273124695, -0.28818339109420776, -0.3098750710487366, 0.2149094045162201, 0.10423491150140762, -0.05989283323287964, 0.10175754874944687, 0.31659337878227234, -0.2579510807991028, -0.11959380656480789, 0.008779821917414665, 0.09315746277570724, 0.329477459192276, -0.08437110483646393, 0.06528827548027039, 0.22180305421352386, -0.02101878449320793, 0.21372367441654205, -0.013494853861629963, -0.527506947517395, 0.06932570040225983, -0.027978839352726936, 0.009124304167926311, -0.1933581680059433, -0.626809298992157, -0.008878570050001144, 0.10316628962755203, 0.5481149554252625, -0.014284112490713596, 0.15198756754398346, 0.40920290350914, 0.25548335909843445, -0.1661253720521927, 0.2643887400627136, -0.030302857980132103, 0.041752323508262634, 0.25146380066871643, 0.11114592850208282, -0.14347125589847565, -0.024957414716482162, -0.10384948551654816, -0.3425200879573822, -0.06812912970781326, 0.1332848221063614, 0.01810218207538128, -0.23505353927612305, 0.044758643954992294, -0.43810907006263733, -0.10387780517339706, 0.29346993565559387, 0.24562294781208038, 0.22485722601413727, 0.23317618668079376, 0.1868969202041626, 0.2919614017009735, 0.02027076855301857, -0.20263344049453735, -0.12423042953014374, 0.10525043308734894, -0.1044749841094017, 0.11084164679050446, 0.21319825947284698, 0.11135386675596237, 0.2996942102909088, 0.12882132828235626, -0.3420158326625824, -0.34042057394981384, 0.1220165267586708, -0.27216699719429016, 0.028304029256105423, 0.24119408428668976, 0.0798235610127449, -0.18102334439754486, 0.18475574254989624, -0.27733638882637024, -0.057583410292863846, 0.07207460701465607, -0.3603481352329254, -0.3543906509876251, -0.171596959233284, 0.15046967566013336, 0.0036926819011569023, 0.1574961394071579, -0.4513111710548401, -0.04260985180735588, 0.25599172711372375, -0.33919793367385864, 0.11380565911531448, -0.16392865777015686, -0.18046270310878754, -0.16759997606277466, 0.12403182685375214, 0.0814562439918518, -0.17960301041603088, -0.07172202318906784, -0.2841581404209137, -0.00853815209120512, 0.20895861089229584, 0.1984403133392334, -0.15026172995567322, 0.5191946029663086, -0.20322945713996887, 0.5580471754074097, 0.553588330745697, -0.18754057586193085, -0.20541588962078094, 0.5373872518539429, 0.12657742202281952, -0.03529377654194832, 0.13713735342025757, -0.4054442346096039, 0.25566449761390686, -0.14929895102977753, 0.023911098018288612, 0.45444294810295105, 0.12287841737270355, -0.03666769340634346, -0.053307659924030304, 0.0591711699962616, 0.09457100182771683, -0.05331511050462723, -0.4166416823863983, -0.26386335492134094, -0.1177741140127182, 0.37901827692985535, 0.25062310695648193, -0.08870158344507217, -0.03872920200228691, 0.17678920924663544, 0.0014025467680767179, 0.006782460492104292, -0.0009071305976249278, -0.08420469611883163, -0.5144615173339844, 0.025190677493810654, -0.31175583600997925, -0.09111393988132477, -0.3747566044330597, 0.14020541310310364, -0.10324327647686005, 0.32503828406333923, -0.06095058470964432, -0.2853426933288574, 0.22181500494480133, 0.0576818585395813, -0.22180020809173584, -0.3171219825744629, -0.035176653414964676, 0.09715639054775238, -0.05429602041840553, 0.3626118302345276, -0.0993172749876976, 0.4648389220237732, 0.08691468089818954, -0.2966178357601166, 0.04663856700062752, 0.1641555279493332, 0.03551151975989342, -0.25894758105278015, -0.18099132180213928, 0.46461665630340576, 0.45033499598503113, -0.1478164941072464, -0.3648443818092346, -0.3587811589241028, 0.006905458401888609, 0.10589688271284103, 0.06397686153650284, 0.028998104855418205, 0.1435212641954422, -0.3214043974876404, 0.008042232133448124, 0.3127242624759674, -0.012336297892034054, 0.4519161880016327, 0.08119690418243408, -0.026239510625600815, 0.19771744310855865, -0.021795125678181648, 0.161260187625885, -0.33993738889694214, -0.10206068307161331, -0.019432194530963898, -0.051012132316827774, 0.10630957782268524, 0.006797940470278263, 0.0667164996266365, 0.31584814190864563, 0.15521840751171112, 0.10251838713884354, -0.036358535289764404, -0.06004885211586952, -0.1964571326971054, 0.17851249873638153, 0.0889553502202034, 0.43536457419395447, 0.03642481192946434, -0.07353024184703827, 0.042567264288663864, 0.12563151121139526, -0.09140551090240479, 0.35487401485443115, 0.03016902320086956, 0.4449598789215088, 0.3242436647415161, 0.20339737832546234, -0.07429572939872742, -0.39391738176345825, -0.3832823932170868, 0.027644269168376923, 0.11821499466896057, -0.2580775320529938, 0.23963065445423126, -0.27329185605049133, 0.13113664090633392, -0.07231144607067108, -0.03152092546224594, -0.10273730754852295, -0.3991473913192749, -0.2967226803302765, 0.3699502944946289, -0.29137906432151794, 0.017345920205116272, -0.1271987408399582, 0.08274320513010025, 0.12979525327682495, -0.1101025864481926, -0.3194957673549652, -0.19227395951747894, -0.10888277739286423, 0.013910804875195026, 0.3567505478858948, 0.263936311006546, -0.13118071854114532, 0.2827696204185486, -0.04518638178706169, -0.04897076264023781, -0.30955472588539124, 0.3275254964828491, -0.24310746788978577, -0.2856104373931885, 0.21991103887557983, 0.18156686425209045, 0.16194552183151245, -0.6107791066169739, 0.1853189468383789, 0.008888833224773407, -0.29334086179733276, 0.29725566506385803, 0.22300155460834503, -0.002981112338602543, -0.15258397161960602, -0.1341143399477005, -0.13989903032779694, -0.5762497186660767, 0.4581657946109772, 0.13572639226913452, 0.25816524028778076, -0.08256477117538452, -0.06901414692401886, 0.010609732009470463, -0.27771398425102234, -0.08370519429445267, 0.02770516835153103, 0.12493116408586502, 0.10029663145542145, -0.3619615435600281, 0.05759256333112717, 0.02550320141017437, 0.028164085000753403, 0.50849449634552, -0.13297662138938904, -0.4221982955932617, 0.44984740018844604, 0.11961826682090759, -0.07773797959089279, -0.17622801661491394, -0.38532257080078125, 0.0696592777967453, 0.3960435688495636, -0.00833356473594904, -0.11379791051149368, 0.08385992795228958, 0.22985050082206726, -0.03173874318599701, 0.1729092299938202, -0.11634121835231781, 0.5597533583641052, -0.08006749302148819, 0.2650153636932373, 0.05676635354757309, 0.007593302521854639, 0.22374334931373596, 0.09086164087057114, -0.0370970219373703, -0.2848678529262543, -0.10190585255622864, -0.17464633285999298, -0.24925144016742706, 0.07210411131381989, 0.16536715626716614, -0.051933128386735916, -0.2720277011394501, -0.07211200147867203, -0.16121171414852142, -0.17559629678726196, -0.36241811513900757, 0.3011760115623474, -0.30591464042663574, 0.08799055963754654, -0.3111080229282379, -0.08411529660224915, 0.0438525453209877, 0.058072686195373535, -0.05366138741374016, -0.2777519226074219, 0.06599141657352448, -0.11606453359127045, 0.05006960779428482, 0.16612103581428528, -0.2029537409543991, 0.14186006784439087, -0.037983790040016174, 0.29893621802330017, 0.023365605622529984, -0.17101532220840454, -0.06429941952228546, -0.1698567271232605, 0.14798545837402344, 0.03925071656703949, 0.20594017207622528, 0.23481953144073486, -0.11641648411750793, -0.20228146016597748, -0.003649677848443389, -0.23494023084640503, 0.44001808762550354, 0.5935146808624268, 0.35977116227149963, -0.3514997065067291, -0.17081977427005768, 0.354552298784256, -0.14836309850215912, -0.09552646428346634, -0.1216844990849495, 0.06972690671682358, -0.21680352091789246, -0.22905921936035156, 0.050209928303956985, 0.25379547476768494, 0.3231959640979767, 0.15320049226284027, -0.1422911137342453, -0.231012761592865, -0.4477606415748596, -0.080600805580616, 0.14266806840896606, 0.1965821087360382, -0.5051639676094055, 0.10156828165054321, -0.1520388126373291, 0.2174491137266159, 0.4984901249408722, 0.7618778347969055, 0.28523024916648865, -0.29082831740379333, 0.2480548471212387, -0.017334995791316032, 0.4242437183856964, 0.11943770945072174, -0.15316157042980194, 0.13031721115112305, -0.20929862558841705, 0.052241336554288864, 0.1517796516418457, -0.2608373761177063, 0.3953028917312622, -0.16864386200904846, -0.2760574221611023, -0.24176374077796936, 0.4991043508052826, -0.04355582222342491, -0.012494646944105625, -0.07391223311424255, -0.24263426661491394, -0.3518018126487732, 0.636492908000946, 0.0889953225851059, 0.5242310762405396, 0.47766339778900146, 0.06045025214552879, 0.5830124616622925, -0.1552411913871765, 0.2822132110595703, -0.776389479637146, -0.023523230105638504, -0.3103724718093872, 0.13246366381645203, -0.021710891276597977, -0.22958603501319885, 0.2328009009361267, 0.3454684317111969, -0.2449895143508911, 0.006511473096907139, 0.026615211740136147, 0.06391383707523346, -0.03259620442986488, 0.36282920837402344, -0.14411889016628265, -0.2786220610141754, -0.4063244163990021, 0.10320025682449341, 0.05685429275035858, -0.3126539885997772, 0.03033292107284069, -0.35097360610961914, -0.08654887229204178, -0.23574821650981903, -0.26396849751472473, 0.4338127076625824, -0.07165689766407013, 0.38861894607543945, 0.2239571213722229, -0.056200060993433, 0.36155128479003906, -0.09915348887443542, -0.168001189827919, -0.07536263763904572, 0.029198618605732918, 0.15066298842430115, -0.02726111002266407, -0.27439188957214355, -0.021823586896061897, 0.11915864795446396, 0.13462598621845245, -0.14880025386810303, 0.03841936215758324, -0.024872565641999245, -0.13940966129302979, -0.37188756465911865, 0.2763093113899231, 0.20762981474399567, -0.4314105212688446, -0.37099725008010864, -0.19432984292507172, 0.11563334614038467, -0.14967000484466553, -0.09347578138113022, 0.11809142678976059, -0.0015494839753955603, -0.2765599489212036, -0.3599804937839508, -0.07085856050252914, -0.2900587022304535, 0.05386413261294365, 0.35441654920578003, 0.2216332107782364, 0.043161362409591675, 0.6239021420478821, 0.24144652485847473, -0.002135401125997305, -0.3211764693260193, 0.08172116428613663, 0.34311601519584656, -0.444277286529541, 0.3989853858947754, -0.20757639408111572, -0.1646205484867096, 0.12205394357442856, 0.09199748188257217, 0.225900337100029, 0.167158842086792, -0.24596813321113586, -0.5066784024238586, -0.0920286476612091, 0.3302324414253235, -0.26218855381011963, -0.02449057623744011, -0.1378587931394577, 0.22089900076389313, -0.3556540310382843, 0.28722918033599854, -0.24341580271720886, 0.22912712395191193, -0.017261900007724762, -0.0485382117331028, -0.058163098990917206, -0.13160371780395508, 0.10557052493095398, 0.04739761725068092, 0.14014820754528046, 0.17527171969413757, 0.017603999003767967, -0.16238488256931305, -0.1138046458363533, 0.13337579369544983, 0.16780485212802887, 0.15522943437099457, -0.29862725734710693, 0.11636039614677429, -0.17701677978038788, 0.037722472101449966, 0.1328796148300171, -0.3939381539821625, -0.05499992147088051, 0.13743586838245392, 0.44412684440612793, 0.2775045931339264, -0.09676583856344223, 0.14930756390094757, -0.12397206574678421, 0.40127623081207275, -0.09297198057174683, 0.2098114937543869, -0.1530313938856125, 0.0011427432764321566, 0.03507435321807861, 0.19869698584079742, -0.04425579681992531, 0.09521381556987762, 0.5684464573860168, -0.19440685212612152, -0.0607280433177948, -0.5084901452064514, 0.29555851221084595, 0.5219074487686157, -0.0011158615816384554, -0.04227035492658615, -0.20385031402111053, 0.1671244204044342, -0.16145852208137512, -0.03935728967189789, 0.3196539580821991, 0.016419081017374992, -0.0983285903930664, 0.2596958875656128, 0.0950075164437294, -0.03784976527094841, -0.2987877130508423, 0.13046663999557495, 0.1833292543888092, 0.07271822541952133, 0.20181769132614136, 0.6401522159576416, -0.3257715404033661, 0.04987211897969246, 0.3796497881412506, 0.11830440163612366, 0.6063777208328247, 0.28971612453460693, 0.12442824989557266, 0.07130983471870422, 0.4207834303379059, 0.05208578705787659, 0.07744906842708588, -0.20151719450950623, -0.48151862621307373, 0.09029851108789444, 0.29123616218566895, -0.1424287110567093, -0.11190949380397797, 0.3422737717628479, 0.14414456486701965, -0.12927839159965515, -0.2035948485136032, 0.3980276584625244, -0.16030724346637726, -0.20408828556537628, -0.2676358222961426, -0.13371451199054718, -0.6331006288528442, -0.18158657848834991, -0.08125215023756027, -0.024373292922973633, -0.09150278568267822, 0.1115611270070076, 0.08362670242786407, -0.25461551547050476, 0.11987441778182983, 0.049474090337753296, -0.06789500266313553, -0.25965258479118347, 0.46796876192092896, 0.09139459580183029, 0.037275560200214386, 0.04090716317296028, 0.14877870678901672, 0.4960685074329376, 0.25024089217185974, -0.26351502537727356, -0.21823835372924805, -0.19870658218860626, -0.1470845490694046, -0.017943238839507103, 0.25852856040000916, 0.04942701384425163, 0.14894087612628937, 0.35852083563804626, 0.11411070078611374, -0.1599734127521515, 0.043839916586875916, 0.18226449191570282, 0.08147025108337402, 0.18575067818164825, 0.6384835243225098, -0.04779406636953354, -0.12134864181280136, 0.22430618107318878, -0.13197915256023407, -0.2510058581829071, -0.6355656385421753, 0.29188185930252075, 0.0026242099702358246, 0.19698603451251984, 0.07607060670852661, 0.07502374798059464, 0.10198913514614105, 0.6383274793624878, 0.058628056198358536, 0.08993693441152573, -0.10363008081912994, -0.1408049762248993, -0.03658594563603401, -0.030019937083125114, -0.3730287551879883, 0.010407378897070885, 0.17384454607963562, 0.09668192267417908, 0.1679893434047699, 0.29864969849586487, -0.025165123865008354, 0.2913760840892792, -0.21975666284561157, -0.11883283406496048, -0.48435693979263306, 0.06875889748334885, 0.2037036269903183, 0.09280581027269363, -0.12021274864673615, -0.1476210653781891, 0.06844848394393921, 0.25332000851631165, 0.02396240085363388, 0.09037664532661438, -0.24850110709667206, 0.11686282604932785, -0.322313129901886, 0.17504577338695526, 0.0504130944609642, 0.11403343081474304, -0.049405086785554886, -0.1896672397851944, -0.18875302374362946, -0.5733940601348877, -0.12193486094474792, 0.4686678647994995, 0.1284104287624359, 0.26802802085876465, -0.1597730815410614, 0.11881011724472046, -0.2943054139614105, 0.12106356024742126, -0.41286373138427734, 0.03888784721493721, -0.3458373248577118, 0.26152747869491577, -0.15570460259914398, 0.23541533946990967, -0.10956230014562607, -0.06789422035217285, -0.2019302397966385, 0.0950915515422821, -0.20747777819633484, -0.3111889660358429, 0.3760579824447632, 0.10880248993635178, -0.2328532189130783, 0.4643298387527466, 0.11880102008581161, 0.11658450216054916, 0.23164817690849304, -0.3983220160007477, -0.030120637267827988, 0.25434473156929016, -0.18920043110847473, -0.32227227091789246, -0.03069557249546051, 0.1550980657339096, -0.13845516741275787, -0.09622804075479507, 0.15036536753177643, 0.043786726891994476, -0.1663365662097931, -0.17571987211704254, 0.013815811835229397 ]
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.32604527473449707, 0.3610110878944397, -0.06005510687828064, 0.5487005710601807, 0.0407031886279583, -0.1400742083787918, 0.3431127667427063, 0.4284069836139679, 0.21433204412460327, -0.11396969109773636, -0.04363132268190384, 0.33327069878578186, 0.23643989861011505, 0.05870343744754791, -0.26586219668388367, -0.16561581194400787, -0.019632259383797646, 0.2937224805355072, -0.12462415546178818, 0.34829655289649963, -0.22258850932121277, 0.452397882938385, -0.10002563148736954, 0.13126645982265472, 0.013991942629218102, -0.0840228945016861, 0.055125635117292404, 0.3630201816558838, -0.16610518097877502, -0.5221458673477173, 0.26167723536491394, -0.29756492376327515, -0.10711299628019333, 0.4265524744987488, -0.00011217655264772475, 0.2836858332157135, 0.2796027660369873, -0.1050381064414978, -0.3678911030292511, -0.05631975084543228, 0.02190866321325302, -0.18979601562023163, 0.0807165876030922, -0.18023563921451569, 0.20297785103321075, -0.2733660936355591, -0.3524166941642761, -0.14096949994564056, 0.52802574634552, 0.10369749367237091, 0.16150739789009094, -0.1449667364358902, 0.30785220861434937, -0.008729689754545689, 0.09761453419923782, -0.012885063886642456, -0.13418421149253845, 0.3496532738208771, -0.27466079592704773, 0.16067463159561157, -0.1773141324520111, 0.03397105634212494, -0.14738968014717102, -0.036386363208293915, 0.06702612340450287, 0.03534550964832306, 0.15725906193256378, 0.024221748113632202, 0.006247077602893114, -0.008396100252866745, 0.1443328708410263, -0.1276884377002716, -0.07597269862890244, -0.23981258273124695, -0.28818339109420776, -0.3098750710487366, 0.2149094045162201, 0.10423491150140762, -0.05989283323287964, 0.10175754874944687, 0.31659337878227234, -0.2579510807991028, -0.11959380656480789, 0.008779821917414665, 0.09315746277570724, 0.329477459192276, -0.08437110483646393, 0.06528827548027039, 0.22180305421352386, -0.02101878449320793, 0.21372367441654205, -0.013494853861629963, -0.527506947517395, 0.06932570040225983, -0.027978839352726936, 0.009124304167926311, -0.1933581680059433, -0.626809298992157, -0.008878570050001144, 0.10316628962755203, 0.5481149554252625, -0.014284112490713596, 0.15198756754398346, 0.40920290350914, 0.25548335909843445, -0.1661253720521927, 0.2643887400627136, -0.030302857980132103, 0.041752323508262634, 0.25146380066871643, 0.11114592850208282, -0.14347125589847565, -0.024957414716482162, -0.10384948551654816, -0.3425200879573822, -0.06812912970781326, 0.1332848221063614, 0.01810218207538128, -0.23505353927612305, 0.044758643954992294, -0.43810907006263733, -0.10387780517339706, 0.29346993565559387, 0.24562294781208038, 0.22485722601413727, 0.23317618668079376, 0.1868969202041626, 0.2919614017009735, 0.02027076855301857, -0.20263344049453735, -0.12423042953014374, 0.10525043308734894, -0.1044749841094017, 0.11084164679050446, 0.21319825947284698, 0.11135386675596237, 0.2996942102909088, 0.12882132828235626, -0.3420158326625824, -0.34042057394981384, 0.1220165267586708, -0.27216699719429016, 0.028304029256105423, 0.24119408428668976, 0.0798235610127449, -0.18102334439754486, 0.18475574254989624, -0.27733638882637024, -0.057583410292863846, 0.07207460701465607, -0.3603481352329254, -0.3543906509876251, -0.171596959233284, 0.15046967566013336, 0.0036926819011569023, 0.1574961394071579, -0.4513111710548401, -0.04260985180735588, 0.25599172711372375, -0.33919793367385864, 0.11380565911531448, -0.16392865777015686, -0.18046270310878754, -0.16759997606277466, 0.12403182685375214, 0.0814562439918518, -0.17960301041603088, -0.07172202318906784, -0.2841581404209137, -0.00853815209120512, 0.20895861089229584, 0.1984403133392334, -0.15026172995567322, 0.5191946029663086, -0.20322945713996887, 0.5580471754074097, 0.553588330745697, -0.18754057586193085, -0.20541588962078094, 0.5373872518539429, 0.12657742202281952, -0.03529377654194832, 0.13713735342025757, -0.4054442346096039, 0.25566449761390686, -0.14929895102977753, 0.023911098018288612, 0.45444294810295105, 0.12287841737270355, -0.03666769340634346, -0.053307659924030304, 0.0591711699962616, 0.09457100182771683, -0.05331511050462723, -0.4166416823863983, -0.26386335492134094, -0.1177741140127182, 0.37901827692985535, 0.25062310695648193, -0.08870158344507217, -0.03872920200228691, 0.17678920924663544, 0.0014025467680767179, 0.006782460492104292, -0.0009071305976249278, -0.08420469611883163, -0.5144615173339844, 0.025190677493810654, -0.31175583600997925, -0.09111393988132477, -0.3747566044330597, 0.14020541310310364, -0.10324327647686005, 0.32503828406333923, -0.06095058470964432, -0.2853426933288574, 0.22181500494480133, 0.0576818585395813, -0.22180020809173584, -0.3171219825744629, -0.035176653414964676, 0.09715639054775238, -0.05429602041840553, 0.3626118302345276, -0.0993172749876976, 0.4648389220237732, 0.08691468089818954, -0.2966178357601166, 0.04663856700062752, 0.1641555279493332, 0.03551151975989342, -0.25894758105278015, -0.18099132180213928, 0.46461665630340576, 0.45033499598503113, -0.1478164941072464, -0.3648443818092346, -0.3587811589241028, 0.006905458401888609, 0.10589688271284103, 0.06397686153650284, 0.028998104855418205, 0.1435212641954422, -0.3214043974876404, 0.008042232133448124, 0.3127242624759674, -0.012336297892034054, 0.4519161880016327, 0.08119690418243408, -0.026239510625600815, 0.19771744310855865, -0.021795125678181648, 0.161260187625885, -0.33993738889694214, -0.10206068307161331, -0.019432194530963898, -0.051012132316827774, 0.10630957782268524, 0.006797940470278263, 0.0667164996266365, 0.31584814190864563, 0.15521840751171112, 0.10251838713884354, -0.036358535289764404, -0.06004885211586952, -0.1964571326971054, 0.17851249873638153, 0.0889553502202034, 0.43536457419395447, 0.03642481192946434, -0.07353024184703827, 0.042567264288663864, 0.12563151121139526, -0.09140551090240479, 0.35487401485443115, 0.03016902320086956, 0.4449598789215088, 0.3242436647415161, 0.20339737832546234, -0.07429572939872742, -0.39391738176345825, -0.3832823932170868, 0.027644269168376923, 0.11821499466896057, -0.2580775320529938, 0.23963065445423126, -0.27329185605049133, 0.13113664090633392, -0.07231144607067108, -0.03152092546224594, -0.10273730754852295, -0.3991473913192749, -0.2967226803302765, 0.3699502944946289, -0.29137906432151794, 0.017345920205116272, -0.1271987408399582, 0.08274320513010025, 0.12979525327682495, -0.1101025864481926, -0.3194957673549652, -0.19227395951747894, -0.10888277739286423, 0.013910804875195026, 0.3567505478858948, 0.263936311006546, -0.13118071854114532, 0.2827696204185486, -0.04518638178706169, -0.04897076264023781, -0.30955472588539124, 0.3275254964828491, -0.24310746788978577, -0.2856104373931885, 0.21991103887557983, 0.18156686425209045, 0.16194552183151245, -0.6107791066169739, 0.1853189468383789, 0.008888833224773407, -0.29334086179733276, 0.29725566506385803, 0.22300155460834503, -0.002981112338602543, -0.15258397161960602, -0.1341143399477005, -0.13989903032779694, -0.5762497186660767, 0.4581657946109772, 0.13572639226913452, 0.25816524028778076, -0.08256477117538452, -0.06901414692401886, 0.010609732009470463, -0.27771398425102234, -0.08370519429445267, 0.02770516835153103, 0.12493116408586502, 0.10029663145542145, -0.3619615435600281, 0.05759256333112717, 0.02550320141017437, 0.028164085000753403, 0.50849449634552, -0.13297662138938904, -0.4221982955932617, 0.44984740018844604, 0.11961826682090759, -0.07773797959089279, -0.17622801661491394, -0.38532257080078125, 0.0696592777967453, 0.3960435688495636, -0.00833356473594904, -0.11379791051149368, 0.08385992795228958, 0.22985050082206726, -0.03173874318599701, 0.1729092299938202, -0.11634121835231781, 0.5597533583641052, -0.08006749302148819, 0.2650153636932373, 0.05676635354757309, 0.007593302521854639, 0.22374334931373596, 0.09086164087057114, -0.0370970219373703, -0.2848678529262543, -0.10190585255622864, -0.17464633285999298, -0.24925144016742706, 0.07210411131381989, 0.16536715626716614, -0.051933128386735916, -0.2720277011394501, -0.07211200147867203, -0.16121171414852142, -0.17559629678726196, -0.36241811513900757, 0.3011760115623474, -0.30591464042663574, 0.08799055963754654, -0.3111080229282379, -0.08411529660224915, 0.0438525453209877, 0.058072686195373535, -0.05366138741374016, -0.2777519226074219, 0.06599141657352448, -0.11606453359127045, 0.05006960779428482, 0.16612103581428528, -0.2029537409543991, 0.14186006784439087, -0.037983790040016174, 0.29893621802330017, 0.023365605622529984, -0.17101532220840454, -0.06429941952228546, -0.1698567271232605, 0.14798545837402344, 0.03925071656703949, 0.20594017207622528, 0.23481953144073486, -0.11641648411750793, -0.20228146016597748, -0.003649677848443389, -0.23494023084640503, 0.44001808762550354, 0.5935146808624268, 0.35977116227149963, -0.3514997065067291, -0.17081977427005768, 0.354552298784256, -0.14836309850215912, -0.09552646428346634, -0.1216844990849495, 0.06972690671682358, -0.21680352091789246, -0.22905921936035156, 0.050209928303956985, 0.25379547476768494, 0.3231959640979767, 0.15320049226284027, -0.1422911137342453, -0.231012761592865, -0.4477606415748596, -0.080600805580616, 0.14266806840896606, 0.1965821087360382, -0.5051639676094055, 0.10156828165054321, -0.1520388126373291, 0.2174491137266159, 0.4984901249408722, 0.7618778347969055, 0.28523024916648865, -0.29082831740379333, 0.2480548471212387, -0.017334995791316032, 0.4242437183856964, 0.11943770945072174, -0.15316157042980194, 0.13031721115112305, -0.20929862558841705, 0.052241336554288864, 0.1517796516418457, -0.2608373761177063, 0.3953028917312622, -0.16864386200904846, -0.2760574221611023, -0.24176374077796936, 0.4991043508052826, -0.04355582222342491, -0.012494646944105625, -0.07391223311424255, -0.24263426661491394, -0.3518018126487732, 0.636492908000946, 0.0889953225851059, 0.5242310762405396, 0.47766339778900146, 0.06045025214552879, 0.5830124616622925, -0.1552411913871765, 0.2822132110595703, -0.776389479637146, -0.023523230105638504, -0.3103724718093872, 0.13246366381645203, -0.021710891276597977, -0.22958603501319885, 0.2328009009361267, 0.3454684317111969, -0.2449895143508911, 0.006511473096907139, 0.026615211740136147, 0.06391383707523346, -0.03259620442986488, 0.36282920837402344, -0.14411889016628265, -0.2786220610141754, -0.4063244163990021, 0.10320025682449341, 0.05685429275035858, -0.3126539885997772, 0.03033292107284069, -0.35097360610961914, -0.08654887229204178, -0.23574821650981903, -0.26396849751472473, 0.4338127076625824, -0.07165689766407013, 0.38861894607543945, 0.2239571213722229, -0.056200060993433, 0.36155128479003906, -0.09915348887443542, -0.168001189827919, -0.07536263763904572, 0.029198618605732918, 0.15066298842430115, -0.02726111002266407, -0.27439188957214355, -0.021823586896061897, 0.11915864795446396, 0.13462598621845245, -0.14880025386810303, 0.03841936215758324, -0.024872565641999245, -0.13940966129302979, -0.37188756465911865, 0.2763093113899231, 0.20762981474399567, -0.4314105212688446, -0.37099725008010864, -0.19432984292507172, 0.11563334614038467, -0.14967000484466553, -0.09347578138113022, 0.11809142678976059, -0.0015494839753955603, -0.2765599489212036, -0.3599804937839508, -0.07085856050252914, -0.2900587022304535, 0.05386413261294365, 0.35441654920578003, 0.2216332107782364, 0.043161362409591675, 0.6239021420478821, 0.24144652485847473, -0.002135401125997305, -0.3211764693260193, 0.08172116428613663, 0.34311601519584656, -0.444277286529541, 0.3989853858947754, -0.20757639408111572, -0.1646205484867096, 0.12205394357442856, 0.09199748188257217, 0.225900337100029, 0.167158842086792, -0.24596813321113586, -0.5066784024238586, -0.0920286476612091, 0.3302324414253235, -0.26218855381011963, -0.02449057623744011, -0.1378587931394577, 0.22089900076389313, -0.3556540310382843, 0.28722918033599854, -0.24341580271720886, 0.22912712395191193, -0.017261900007724762, -0.0485382117331028, -0.058163098990917206, -0.13160371780395508, 0.10557052493095398, 0.04739761725068092, 0.14014820754528046, 0.17527171969413757, 0.017603999003767967, -0.16238488256931305, -0.1138046458363533, 0.13337579369544983, 0.16780485212802887, 0.15522943437099457, -0.29862725734710693, 0.11636039614677429, -0.17701677978038788, 0.037722472101449966, 0.1328796148300171, -0.3939381539821625, -0.05499992147088051, 0.13743586838245392, 0.44412684440612793, 0.2775045931339264, -0.09676583856344223, 0.14930756390094757, -0.12397206574678421, 0.40127623081207275, -0.09297198057174683, 0.2098114937543869, -0.1530313938856125, 0.0011427432764321566, 0.03507435321807861, 0.19869698584079742, -0.04425579681992531, 0.09521381556987762, 0.5684464573860168, -0.19440685212612152, -0.0607280433177948, -0.5084901452064514, 0.29555851221084595, 0.5219074487686157, -0.0011158615816384554, -0.04227035492658615, -0.20385031402111053, 0.1671244204044342, -0.16145852208137512, -0.03935728967189789, 0.3196539580821991, 0.016419081017374992, -0.0983285903930664, 0.2596958875656128, 0.0950075164437294, -0.03784976527094841, -0.2987877130508423, 0.13046663999557495, 0.1833292543888092, 0.07271822541952133, 0.20181769132614136, 0.6401522159576416, -0.3257715404033661, 0.04987211897969246, 0.3796497881412506, 0.11830440163612366, 0.6063777208328247, 0.28971612453460693, 0.12442824989557266, 0.07130983471870422, 0.4207834303379059, 0.05208578705787659, 0.07744906842708588, -0.20151719450950623, -0.48151862621307373, 0.09029851108789444, 0.29123616218566895, -0.1424287110567093, -0.11190949380397797, 0.3422737717628479, 0.14414456486701965, -0.12927839159965515, -0.2035948485136032, 0.3980276584625244, -0.16030724346637726, -0.20408828556537628, -0.2676358222961426, -0.13371451199054718, -0.6331006288528442, -0.18158657848834991, -0.08125215023756027, -0.024373292922973633, -0.09150278568267822, 0.1115611270070076, 0.08362670242786407, -0.25461551547050476, 0.11987441778182983, 0.049474090337753296, -0.06789500266313553, -0.25965258479118347, 0.46796876192092896, 0.09139459580183029, 0.037275560200214386, 0.04090716317296028, 0.14877870678901672, 0.4960685074329376, 0.25024089217185974, -0.26351502537727356, -0.21823835372924805, -0.19870658218860626, -0.1470845490694046, -0.017943238839507103, 0.25852856040000916, 0.04942701384425163, 0.14894087612628937, 0.35852083563804626, 0.11411070078611374, -0.1599734127521515, 0.043839916586875916, 0.18226449191570282, 0.08147025108337402, 0.18575067818164825, 0.6384835243225098, -0.04779406636953354, -0.12134864181280136, 0.22430618107318878, -0.13197915256023407, -0.2510058581829071, -0.6355656385421753, 0.29188185930252075, 0.0026242099702358246, 0.19698603451251984, 0.07607060670852661, 0.07502374798059464, 0.10198913514614105, 0.6383274793624878, 0.058628056198358536, 0.08993693441152573, -0.10363008081912994, -0.1408049762248993, -0.03658594563603401, -0.030019937083125114, -0.3730287551879883, 0.010407378897070885, 0.17384454607963562, 0.09668192267417908, 0.1679893434047699, 0.29864969849586487, -0.025165123865008354, 0.2913760840892792, -0.21975666284561157, -0.11883283406496048, -0.48435693979263306, 0.06875889748334885, 0.2037036269903183, 0.09280581027269363, -0.12021274864673615, -0.1476210653781891, 0.06844848394393921, 0.25332000851631165, 0.02396240085363388, 0.09037664532661438, -0.24850110709667206, 0.11686282604932785, -0.322313129901886, 0.17504577338695526, 0.0504130944609642, 0.11403343081474304, -0.049405086785554886, -0.1896672397851944, -0.18875302374362946, -0.5733940601348877, -0.12193486094474792, 0.4686678647994995, 0.1284104287624359, 0.26802802085876465, -0.1597730815410614, 0.11881011724472046, -0.2943054139614105, 0.12106356024742126, -0.41286373138427734, 0.03888784721493721, -0.3458373248577118, 0.26152747869491577, -0.15570460259914398, 0.23541533946990967, -0.10956230014562607, -0.06789422035217285, -0.2019302397966385, 0.0950915515422821, -0.20747777819633484, -0.3111889660358429, 0.3760579824447632, 0.10880248993635178, -0.2328532189130783, 0.4643298387527466, 0.11880102008581161, 0.11658450216054916, 0.23164817690849304, -0.3983220160007477, -0.030120637267827988, 0.25434473156929016, -0.18920043110847473, -0.32227227091789246, -0.03069557249546051, 0.1550980657339096, -0.13845516741275787, -0.09622804075479507, 0.15036536753177643, 0.043786726891994476, -0.1663365662097931, -0.17571987211704254, 0.013815811835229397 ]
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.32604527473449707, 0.3610110878944397, -0.06005510687828064, 0.5487005710601807, 0.0407031886279583, -0.1400742083787918, 0.3431127667427063, 0.4284069836139679, 0.21433204412460327, -0.11396969109773636, -0.04363132268190384, 0.33327069878578186, 0.23643989861011505, 0.05870343744754791, -0.26586219668388367, -0.16561581194400787, -0.019632259383797646, 0.2937224805355072, -0.12462415546178818, 0.34829655289649963, -0.22258850932121277, 0.452397882938385, -0.10002563148736954, 0.13126645982265472, 0.013991942629218102, -0.0840228945016861, 0.055125635117292404, 0.3630201816558838, -0.16610518097877502, -0.5221458673477173, 0.26167723536491394, -0.29756492376327515, -0.10711299628019333, 0.4265524744987488, -0.00011217655264772475, 0.2836858332157135, 0.2796027660369873, -0.1050381064414978, -0.3678911030292511, -0.05631975084543228, 0.02190866321325302, -0.18979601562023163, 0.0807165876030922, -0.18023563921451569, 0.20297785103321075, -0.2733660936355591, -0.3524166941642761, -0.14096949994564056, 0.52802574634552, 0.10369749367237091, 0.16150739789009094, -0.1449667364358902, 0.30785220861434937, -0.008729689754545689, 0.09761453419923782, -0.012885063886642456, -0.13418421149253845, 0.3496532738208771, -0.27466079592704773, 0.16067463159561157, -0.1773141324520111, 0.03397105634212494, -0.14738968014717102, -0.036386363208293915, 0.06702612340450287, 0.03534550964832306, 0.15725906193256378, 0.024221748113632202, 0.006247077602893114, -0.008396100252866745, 0.1443328708410263, -0.1276884377002716, -0.07597269862890244, -0.23981258273124695, -0.28818339109420776, -0.3098750710487366, 0.2149094045162201, 0.10423491150140762, -0.05989283323287964, 0.10175754874944687, 0.31659337878227234, -0.2579510807991028, -0.11959380656480789, 0.008779821917414665, 0.09315746277570724, 0.329477459192276, -0.08437110483646393, 0.06528827548027039, 0.22180305421352386, -0.02101878449320793, 0.21372367441654205, -0.013494853861629963, -0.527506947517395, 0.06932570040225983, -0.027978839352726936, 0.009124304167926311, -0.1933581680059433, -0.626809298992157, -0.008878570050001144, 0.10316628962755203, 0.5481149554252625, -0.014284112490713596, 0.15198756754398346, 0.40920290350914, 0.25548335909843445, -0.1661253720521927, 0.2643887400627136, -0.030302857980132103, 0.041752323508262634, 0.25146380066871643, 0.11114592850208282, -0.14347125589847565, -0.024957414716482162, -0.10384948551654816, -0.3425200879573822, -0.06812912970781326, 0.1332848221063614, 0.01810218207538128, -0.23505353927612305, 0.044758643954992294, -0.43810907006263733, -0.10387780517339706, 0.29346993565559387, 0.24562294781208038, 0.22485722601413727, 0.23317618668079376, 0.1868969202041626, 0.2919614017009735, 0.02027076855301857, -0.20263344049453735, -0.12423042953014374, 0.10525043308734894, -0.1044749841094017, 0.11084164679050446, 0.21319825947284698, 0.11135386675596237, 0.2996942102909088, 0.12882132828235626, -0.3420158326625824, -0.34042057394981384, 0.1220165267586708, -0.27216699719429016, 0.028304029256105423, 0.24119408428668976, 0.0798235610127449, -0.18102334439754486, 0.18475574254989624, -0.27733638882637024, -0.057583410292863846, 0.07207460701465607, -0.3603481352329254, -0.3543906509876251, -0.171596959233284, 0.15046967566013336, 0.0036926819011569023, 0.1574961394071579, -0.4513111710548401, -0.04260985180735588, 0.25599172711372375, -0.33919793367385864, 0.11380565911531448, -0.16392865777015686, -0.18046270310878754, -0.16759997606277466, 0.12403182685375214, 0.0814562439918518, -0.17960301041603088, -0.07172202318906784, -0.2841581404209137, -0.00853815209120512, 0.20895861089229584, 0.1984403133392334, -0.15026172995567322, 0.5191946029663086, -0.20322945713996887, 0.5580471754074097, 0.553588330745697, -0.18754057586193085, -0.20541588962078094, 0.5373872518539429, 0.12657742202281952, -0.03529377654194832, 0.13713735342025757, -0.4054442346096039, 0.25566449761390686, -0.14929895102977753, 0.023911098018288612, 0.45444294810295105, 0.12287841737270355, -0.03666769340634346, -0.053307659924030304, 0.0591711699962616, 0.09457100182771683, -0.05331511050462723, -0.4166416823863983, -0.26386335492134094, -0.1177741140127182, 0.37901827692985535, 0.25062310695648193, -0.08870158344507217, -0.03872920200228691, 0.17678920924663544, 0.0014025467680767179, 0.006782460492104292, -0.0009071305976249278, -0.08420469611883163, -0.5144615173339844, 0.025190677493810654, -0.31175583600997925, -0.09111393988132477, -0.3747566044330597, 0.14020541310310364, -0.10324327647686005, 0.32503828406333923, -0.06095058470964432, -0.2853426933288574, 0.22181500494480133, 0.0576818585395813, -0.22180020809173584, -0.3171219825744629, -0.035176653414964676, 0.09715639054775238, -0.05429602041840553, 0.3626118302345276, -0.0993172749876976, 0.4648389220237732, 0.08691468089818954, -0.2966178357601166, 0.04663856700062752, 0.1641555279493332, 0.03551151975989342, -0.25894758105278015, -0.18099132180213928, 0.46461665630340576, 0.45033499598503113, -0.1478164941072464, -0.3648443818092346, -0.3587811589241028, 0.006905458401888609, 0.10589688271284103, 0.06397686153650284, 0.028998104855418205, 0.1435212641954422, -0.3214043974876404, 0.008042232133448124, 0.3127242624759674, -0.012336297892034054, 0.4519161880016327, 0.08119690418243408, -0.026239510625600815, 0.19771744310855865, -0.021795125678181648, 0.161260187625885, -0.33993738889694214, -0.10206068307161331, -0.019432194530963898, -0.051012132316827774, 0.10630957782268524, 0.006797940470278263, 0.0667164996266365, 0.31584814190864563, 0.15521840751171112, 0.10251838713884354, -0.036358535289764404, -0.06004885211586952, -0.1964571326971054, 0.17851249873638153, 0.0889553502202034, 0.43536457419395447, 0.03642481192946434, -0.07353024184703827, 0.042567264288663864, 0.12563151121139526, -0.09140551090240479, 0.35487401485443115, 0.03016902320086956, 0.4449598789215088, 0.3242436647415161, 0.20339737832546234, -0.07429572939872742, -0.39391738176345825, -0.3832823932170868, 0.027644269168376923, 0.11821499466896057, -0.2580775320529938, 0.23963065445423126, -0.27329185605049133, 0.13113664090633392, -0.07231144607067108, -0.03152092546224594, -0.10273730754852295, -0.3991473913192749, -0.2967226803302765, 0.3699502944946289, -0.29137906432151794, 0.017345920205116272, -0.1271987408399582, 0.08274320513010025, 0.12979525327682495, -0.1101025864481926, -0.3194957673549652, -0.19227395951747894, -0.10888277739286423, 0.013910804875195026, 0.3567505478858948, 0.263936311006546, -0.13118071854114532, 0.2827696204185486, -0.04518638178706169, -0.04897076264023781, -0.30955472588539124, 0.3275254964828491, -0.24310746788978577, -0.2856104373931885, 0.21991103887557983, 0.18156686425209045, 0.16194552183151245, -0.6107791066169739, 0.1853189468383789, 0.008888833224773407, -0.29334086179733276, 0.29725566506385803, 0.22300155460834503, -0.002981112338602543, -0.15258397161960602, -0.1341143399477005, -0.13989903032779694, -0.5762497186660767, 0.4581657946109772, 0.13572639226913452, 0.25816524028778076, -0.08256477117538452, -0.06901414692401886, 0.010609732009470463, -0.27771398425102234, -0.08370519429445267, 0.02770516835153103, 0.12493116408586502, 0.10029663145542145, -0.3619615435600281, 0.05759256333112717, 0.02550320141017437, 0.028164085000753403, 0.50849449634552, -0.13297662138938904, -0.4221982955932617, 0.44984740018844604, 0.11961826682090759, -0.07773797959089279, -0.17622801661491394, -0.38532257080078125, 0.0696592777967453, 0.3960435688495636, -0.00833356473594904, -0.11379791051149368, 0.08385992795228958, 0.22985050082206726, -0.03173874318599701, 0.1729092299938202, -0.11634121835231781, 0.5597533583641052, -0.08006749302148819, 0.2650153636932373, 0.05676635354757309, 0.007593302521854639, 0.22374334931373596, 0.09086164087057114, -0.0370970219373703, -0.2848678529262543, -0.10190585255622864, -0.17464633285999298, -0.24925144016742706, 0.07210411131381989, 0.16536715626716614, -0.051933128386735916, -0.2720277011394501, -0.07211200147867203, -0.16121171414852142, -0.17559629678726196, -0.36241811513900757, 0.3011760115623474, -0.30591464042663574, 0.08799055963754654, -0.3111080229282379, -0.08411529660224915, 0.0438525453209877, 0.058072686195373535, -0.05366138741374016, -0.2777519226074219, 0.06599141657352448, -0.11606453359127045, 0.05006960779428482, 0.16612103581428528, -0.2029537409543991, 0.14186006784439087, -0.037983790040016174, 0.29893621802330017, 0.023365605622529984, -0.17101532220840454, -0.06429941952228546, -0.1698567271232605, 0.14798545837402344, 0.03925071656703949, 0.20594017207622528, 0.23481953144073486, -0.11641648411750793, -0.20228146016597748, -0.003649677848443389, -0.23494023084640503, 0.44001808762550354, 0.5935146808624268, 0.35977116227149963, -0.3514997065067291, -0.17081977427005768, 0.354552298784256, -0.14836309850215912, -0.09552646428346634, -0.1216844990849495, 0.06972690671682358, -0.21680352091789246, -0.22905921936035156, 0.050209928303956985, 0.25379547476768494, 0.3231959640979767, 0.15320049226284027, -0.1422911137342453, -0.231012761592865, -0.4477606415748596, -0.080600805580616, 0.14266806840896606, 0.1965821087360382, -0.5051639676094055, 0.10156828165054321, -0.1520388126373291, 0.2174491137266159, 0.4984901249408722, 0.7618778347969055, 0.28523024916648865, -0.29082831740379333, 0.2480548471212387, -0.017334995791316032, 0.4242437183856964, 0.11943770945072174, -0.15316157042980194, 0.13031721115112305, -0.20929862558841705, 0.052241336554288864, 0.1517796516418457, -0.2608373761177063, 0.3953028917312622, -0.16864386200904846, -0.2760574221611023, -0.24176374077796936, 0.4991043508052826, -0.04355582222342491, -0.012494646944105625, -0.07391223311424255, -0.24263426661491394, -0.3518018126487732, 0.636492908000946, 0.0889953225851059, 0.5242310762405396, 0.47766339778900146, 0.06045025214552879, 0.5830124616622925, -0.1552411913871765, 0.2822132110595703, -0.776389479637146, -0.023523230105638504, -0.3103724718093872, 0.13246366381645203, -0.021710891276597977, -0.22958603501319885, 0.2328009009361267, 0.3454684317111969, -0.2449895143508911, 0.006511473096907139, 0.026615211740136147, 0.06391383707523346, -0.03259620442986488, 0.36282920837402344, -0.14411889016628265, -0.2786220610141754, -0.4063244163990021, 0.10320025682449341, 0.05685429275035858, -0.3126539885997772, 0.03033292107284069, -0.35097360610961914, -0.08654887229204178, -0.23574821650981903, -0.26396849751472473, 0.4338127076625824, -0.07165689766407013, 0.38861894607543945, 0.2239571213722229, -0.056200060993433, 0.36155128479003906, -0.09915348887443542, -0.168001189827919, -0.07536263763904572, 0.029198618605732918, 0.15066298842430115, -0.02726111002266407, -0.27439188957214355, -0.021823586896061897, 0.11915864795446396, 0.13462598621845245, -0.14880025386810303, 0.03841936215758324, -0.024872565641999245, -0.13940966129302979, -0.37188756465911865, 0.2763093113899231, 0.20762981474399567, -0.4314105212688446, -0.37099725008010864, -0.19432984292507172, 0.11563334614038467, -0.14967000484466553, -0.09347578138113022, 0.11809142678976059, -0.0015494839753955603, -0.2765599489212036, -0.3599804937839508, -0.07085856050252914, -0.2900587022304535, 0.05386413261294365, 0.35441654920578003, 0.2216332107782364, 0.043161362409591675, 0.6239021420478821, 0.24144652485847473, -0.002135401125997305, -0.3211764693260193, 0.08172116428613663, 0.34311601519584656, -0.444277286529541, 0.3989853858947754, -0.20757639408111572, -0.1646205484867096, 0.12205394357442856, 0.09199748188257217, 0.225900337100029, 0.167158842086792, -0.24596813321113586, -0.5066784024238586, -0.0920286476612091, 0.3302324414253235, -0.26218855381011963, -0.02449057623744011, -0.1378587931394577, 0.22089900076389313, -0.3556540310382843, 0.28722918033599854, -0.24341580271720886, 0.22912712395191193, -0.017261900007724762, -0.0485382117331028, -0.058163098990917206, -0.13160371780395508, 0.10557052493095398, 0.04739761725068092, 0.14014820754528046, 0.17527171969413757, 0.017603999003767967, -0.16238488256931305, -0.1138046458363533, 0.13337579369544983, 0.16780485212802887, 0.15522943437099457, -0.29862725734710693, 0.11636039614677429, -0.17701677978038788, 0.037722472101449966, 0.1328796148300171, -0.3939381539821625, -0.05499992147088051, 0.13743586838245392, 0.44412684440612793, 0.2775045931339264, -0.09676583856344223, 0.14930756390094757, -0.12397206574678421, 0.40127623081207275, -0.09297198057174683, 0.2098114937543869, -0.1530313938856125, 0.0011427432764321566, 0.03507435321807861, 0.19869698584079742, -0.04425579681992531, 0.09521381556987762, 0.5684464573860168, -0.19440685212612152, -0.0607280433177948, -0.5084901452064514, 0.29555851221084595, 0.5219074487686157, -0.0011158615816384554, -0.04227035492658615, -0.20385031402111053, 0.1671244204044342, -0.16145852208137512, -0.03935728967189789, 0.3196539580821991, 0.016419081017374992, -0.0983285903930664, 0.2596958875656128, 0.0950075164437294, -0.03784976527094841, -0.2987877130508423, 0.13046663999557495, 0.1833292543888092, 0.07271822541952133, 0.20181769132614136, 0.6401522159576416, -0.3257715404033661, 0.04987211897969246, 0.3796497881412506, 0.11830440163612366, 0.6063777208328247, 0.28971612453460693, 0.12442824989557266, 0.07130983471870422, 0.4207834303379059, 0.05208578705787659, 0.07744906842708588, -0.20151719450950623, -0.48151862621307373, 0.09029851108789444, 0.29123616218566895, -0.1424287110567093, -0.11190949380397797, 0.3422737717628479, 0.14414456486701965, -0.12927839159965515, -0.2035948485136032, 0.3980276584625244, -0.16030724346637726, -0.20408828556537628, -0.2676358222961426, -0.13371451199054718, -0.6331006288528442, -0.18158657848834991, -0.08125215023756027, -0.024373292922973633, -0.09150278568267822, 0.1115611270070076, 0.08362670242786407, -0.25461551547050476, 0.11987441778182983, 0.049474090337753296, -0.06789500266313553, -0.25965258479118347, 0.46796876192092896, 0.09139459580183029, 0.037275560200214386, 0.04090716317296028, 0.14877870678901672, 0.4960685074329376, 0.25024089217185974, -0.26351502537727356, -0.21823835372924805, -0.19870658218860626, -0.1470845490694046, -0.017943238839507103, 0.25852856040000916, 0.04942701384425163, 0.14894087612628937, 0.35852083563804626, 0.11411070078611374, -0.1599734127521515, 0.043839916586875916, 0.18226449191570282, 0.08147025108337402, 0.18575067818164825, 0.6384835243225098, -0.04779406636953354, -0.12134864181280136, 0.22430618107318878, -0.13197915256023407, -0.2510058581829071, -0.6355656385421753, 0.29188185930252075, 0.0026242099702358246, 0.19698603451251984, 0.07607060670852661, 0.07502374798059464, 0.10198913514614105, 0.6383274793624878, 0.058628056198358536, 0.08993693441152573, -0.10363008081912994, -0.1408049762248993, -0.03658594563603401, -0.030019937083125114, -0.3730287551879883, 0.010407378897070885, 0.17384454607963562, 0.09668192267417908, 0.1679893434047699, 0.29864969849586487, -0.025165123865008354, 0.2913760840892792, -0.21975666284561157, -0.11883283406496048, -0.48435693979263306, 0.06875889748334885, 0.2037036269903183, 0.09280581027269363, -0.12021274864673615, -0.1476210653781891, 0.06844848394393921, 0.25332000851631165, 0.02396240085363388, 0.09037664532661438, -0.24850110709667206, 0.11686282604932785, -0.322313129901886, 0.17504577338695526, 0.0504130944609642, 0.11403343081474304, -0.049405086785554886, -0.1896672397851944, -0.18875302374362946, -0.5733940601348877, -0.12193486094474792, 0.4686678647994995, 0.1284104287624359, 0.26802802085876465, -0.1597730815410614, 0.11881011724472046, -0.2943054139614105, 0.12106356024742126, -0.41286373138427734, 0.03888784721493721, -0.3458373248577118, 0.26152747869491577, -0.15570460259914398, 0.23541533946990967, -0.10956230014562607, -0.06789422035217285, -0.2019302397966385, 0.0950915515422821, -0.20747777819633484, -0.3111889660358429, 0.3760579824447632, 0.10880248993635178, -0.2328532189130783, 0.4643298387527466, 0.11880102008581161, 0.11658450216054916, 0.23164817690849304, -0.3983220160007477, -0.030120637267827988, 0.25434473156929016, -0.18920043110847473, -0.32227227091789246, -0.03069557249546051, 0.1550980657339096, -0.13845516741275787, -0.09622804075479507, 0.15036536753177643, 0.043786726891994476, -0.1663365662097931, -0.17571987211704254, 0.013815811835229397 ]
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.32604527473449707, 0.3610110878944397, -0.06005510687828064, 0.5487005710601807, 0.0407031886279583, -0.1400742083787918, 0.3431127667427063, 0.4284069836139679, 0.21433204412460327, -0.11396969109773636, -0.04363132268190384, 0.33327069878578186, 0.23643989861011505, 0.05870343744754791, -0.26586219668388367, -0.16561581194400787, -0.019632259383797646, 0.2937224805355072, -0.12462415546178818, 0.34829655289649963, -0.22258850932121277, 0.452397882938385, -0.10002563148736954, 0.13126645982265472, 0.013991942629218102, -0.0840228945016861, 0.055125635117292404, 0.3630201816558838, -0.16610518097877502, -0.5221458673477173, 0.26167723536491394, -0.29756492376327515, -0.10711299628019333, 0.4265524744987488, -0.00011217655264772475, 0.2836858332157135, 0.2796027660369873, -0.1050381064414978, -0.3678911030292511, -0.05631975084543228, 0.02190866321325302, -0.18979601562023163, 0.0807165876030922, -0.18023563921451569, 0.20297785103321075, -0.2733660936355591, -0.3524166941642761, -0.14096949994564056, 0.52802574634552, 0.10369749367237091, 0.16150739789009094, -0.1449667364358902, 0.30785220861434937, -0.008729689754545689, 0.09761453419923782, -0.012885063886642456, -0.13418421149253845, 0.3496532738208771, -0.27466079592704773, 0.16067463159561157, -0.1773141324520111, 0.03397105634212494, -0.14738968014717102, -0.036386363208293915, 0.06702612340450287, 0.03534550964832306, 0.15725906193256378, 0.024221748113632202, 0.006247077602893114, -0.008396100252866745, 0.1443328708410263, -0.1276884377002716, -0.07597269862890244, -0.23981258273124695, -0.28818339109420776, -0.3098750710487366, 0.2149094045162201, 0.10423491150140762, -0.05989283323287964, 0.10175754874944687, 0.31659337878227234, -0.2579510807991028, -0.11959380656480789, 0.008779821917414665, 0.09315746277570724, 0.329477459192276, -0.08437110483646393, 0.06528827548027039, 0.22180305421352386, -0.02101878449320793, 0.21372367441654205, -0.013494853861629963, -0.527506947517395, 0.06932570040225983, -0.027978839352726936, 0.009124304167926311, -0.1933581680059433, -0.626809298992157, -0.008878570050001144, 0.10316628962755203, 0.5481149554252625, -0.014284112490713596, 0.15198756754398346, 0.40920290350914, 0.25548335909843445, -0.1661253720521927, 0.2643887400627136, -0.030302857980132103, 0.041752323508262634, 0.25146380066871643, 0.11114592850208282, -0.14347125589847565, -0.024957414716482162, -0.10384948551654816, -0.3425200879573822, -0.06812912970781326, 0.1332848221063614, 0.01810218207538128, -0.23505353927612305, 0.044758643954992294, -0.43810907006263733, -0.10387780517339706, 0.29346993565559387, 0.24562294781208038, 0.22485722601413727, 0.23317618668079376, 0.1868969202041626, 0.2919614017009735, 0.02027076855301857, -0.20263344049453735, -0.12423042953014374, 0.10525043308734894, -0.1044749841094017, 0.11084164679050446, 0.21319825947284698, 0.11135386675596237, 0.2996942102909088, 0.12882132828235626, -0.3420158326625824, -0.34042057394981384, 0.1220165267586708, -0.27216699719429016, 0.028304029256105423, 0.24119408428668976, 0.0798235610127449, -0.18102334439754486, 0.18475574254989624, -0.27733638882637024, -0.057583410292863846, 0.07207460701465607, -0.3603481352329254, -0.3543906509876251, -0.171596959233284, 0.15046967566013336, 0.0036926819011569023, 0.1574961394071579, -0.4513111710548401, -0.04260985180735588, 0.25599172711372375, -0.33919793367385864, 0.11380565911531448, -0.16392865777015686, -0.18046270310878754, -0.16759997606277466, 0.12403182685375214, 0.0814562439918518, -0.17960301041603088, -0.07172202318906784, -0.2841581404209137, -0.00853815209120512, 0.20895861089229584, 0.1984403133392334, -0.15026172995567322, 0.5191946029663086, -0.20322945713996887, 0.5580471754074097, 0.553588330745697, -0.18754057586193085, -0.20541588962078094, 0.5373872518539429, 0.12657742202281952, -0.03529377654194832, 0.13713735342025757, -0.4054442346096039, 0.25566449761390686, -0.14929895102977753, 0.023911098018288612, 0.45444294810295105, 0.12287841737270355, -0.03666769340634346, -0.053307659924030304, 0.0591711699962616, 0.09457100182771683, -0.05331511050462723, -0.4166416823863983, -0.26386335492134094, -0.1177741140127182, 0.37901827692985535, 0.25062310695648193, -0.08870158344507217, -0.03872920200228691, 0.17678920924663544, 0.0014025467680767179, 0.006782460492104292, -0.0009071305976249278, -0.08420469611883163, -0.5144615173339844, 0.025190677493810654, -0.31175583600997925, -0.09111393988132477, -0.3747566044330597, 0.14020541310310364, -0.10324327647686005, 0.32503828406333923, -0.06095058470964432, -0.2853426933288574, 0.22181500494480133, 0.0576818585395813, -0.22180020809173584, -0.3171219825744629, -0.035176653414964676, 0.09715639054775238, -0.05429602041840553, 0.3626118302345276, -0.0993172749876976, 0.4648389220237732, 0.08691468089818954, -0.2966178357601166, 0.04663856700062752, 0.1641555279493332, 0.03551151975989342, -0.25894758105278015, -0.18099132180213928, 0.46461665630340576, 0.45033499598503113, -0.1478164941072464, -0.3648443818092346, -0.3587811589241028, 0.006905458401888609, 0.10589688271284103, 0.06397686153650284, 0.028998104855418205, 0.1435212641954422, -0.3214043974876404, 0.008042232133448124, 0.3127242624759674, -0.012336297892034054, 0.4519161880016327, 0.08119690418243408, -0.026239510625600815, 0.19771744310855865, -0.021795125678181648, 0.161260187625885, -0.33993738889694214, -0.10206068307161331, -0.019432194530963898, -0.051012132316827774, 0.10630957782268524, 0.006797940470278263, 0.0667164996266365, 0.31584814190864563, 0.15521840751171112, 0.10251838713884354, -0.036358535289764404, -0.06004885211586952, -0.1964571326971054, 0.17851249873638153, 0.0889553502202034, 0.43536457419395447, 0.03642481192946434, -0.07353024184703827, 0.042567264288663864, 0.12563151121139526, -0.09140551090240479, 0.35487401485443115, 0.03016902320086956, 0.4449598789215088, 0.3242436647415161, 0.20339737832546234, -0.07429572939872742, -0.39391738176345825, -0.3832823932170868, 0.027644269168376923, 0.11821499466896057, -0.2580775320529938, 0.23963065445423126, -0.27329185605049133, 0.13113664090633392, -0.07231144607067108, -0.03152092546224594, -0.10273730754852295, -0.3991473913192749, -0.2967226803302765, 0.3699502944946289, -0.29137906432151794, 0.017345920205116272, -0.1271987408399582, 0.08274320513010025, 0.12979525327682495, -0.1101025864481926, -0.3194957673549652, -0.19227395951747894, -0.10888277739286423, 0.013910804875195026, 0.3567505478858948, 0.263936311006546, -0.13118071854114532, 0.2827696204185486, -0.04518638178706169, -0.04897076264023781, -0.30955472588539124, 0.3275254964828491, -0.24310746788978577, -0.2856104373931885, 0.21991103887557983, 0.18156686425209045, 0.16194552183151245, -0.6107791066169739, 0.1853189468383789, 0.008888833224773407, -0.29334086179733276, 0.29725566506385803, 0.22300155460834503, -0.002981112338602543, -0.15258397161960602, -0.1341143399477005, -0.13989903032779694, -0.5762497186660767, 0.4581657946109772, 0.13572639226913452, 0.25816524028778076, -0.08256477117538452, -0.06901414692401886, 0.010609732009470463, -0.27771398425102234, -0.08370519429445267, 0.02770516835153103, 0.12493116408586502, 0.10029663145542145, -0.3619615435600281, 0.05759256333112717, 0.02550320141017437, 0.028164085000753403, 0.50849449634552, -0.13297662138938904, -0.4221982955932617, 0.44984740018844604, 0.11961826682090759, -0.07773797959089279, -0.17622801661491394, -0.38532257080078125, 0.0696592777967453, 0.3960435688495636, -0.00833356473594904, -0.11379791051149368, 0.08385992795228958, 0.22985050082206726, -0.03173874318599701, 0.1729092299938202, -0.11634121835231781, 0.5597533583641052, -0.08006749302148819, 0.2650153636932373, 0.05676635354757309, 0.007593302521854639, 0.22374334931373596, 0.09086164087057114, -0.0370970219373703, -0.2848678529262543, -0.10190585255622864, -0.17464633285999298, -0.24925144016742706, 0.07210411131381989, 0.16536715626716614, -0.051933128386735916, -0.2720277011394501, -0.07211200147867203, -0.16121171414852142, -0.17559629678726196, -0.36241811513900757, 0.3011760115623474, -0.30591464042663574, 0.08799055963754654, -0.3111080229282379, -0.08411529660224915, 0.0438525453209877, 0.058072686195373535, -0.05366138741374016, -0.2777519226074219, 0.06599141657352448, -0.11606453359127045, 0.05006960779428482, 0.16612103581428528, -0.2029537409543991, 0.14186006784439087, -0.037983790040016174, 0.29893621802330017, 0.023365605622529984, -0.17101532220840454, -0.06429941952228546, -0.1698567271232605, 0.14798545837402344, 0.03925071656703949, 0.20594017207622528, 0.23481953144073486, -0.11641648411750793, -0.20228146016597748, -0.003649677848443389, -0.23494023084640503, 0.44001808762550354, 0.5935146808624268, 0.35977116227149963, -0.3514997065067291, -0.17081977427005768, 0.354552298784256, -0.14836309850215912, -0.09552646428346634, -0.1216844990849495, 0.06972690671682358, -0.21680352091789246, -0.22905921936035156, 0.050209928303956985, 0.25379547476768494, 0.3231959640979767, 0.15320049226284027, -0.1422911137342453, -0.231012761592865, -0.4477606415748596, -0.080600805580616, 0.14266806840896606, 0.1965821087360382, -0.5051639676094055, 0.10156828165054321, -0.1520388126373291, 0.2174491137266159, 0.4984901249408722, 0.7618778347969055, 0.28523024916648865, -0.29082831740379333, 0.2480548471212387, -0.017334995791316032, 0.4242437183856964, 0.11943770945072174, -0.15316157042980194, 0.13031721115112305, -0.20929862558841705, 0.052241336554288864, 0.1517796516418457, -0.2608373761177063, 0.3953028917312622, -0.16864386200904846, -0.2760574221611023, -0.24176374077796936, 0.4991043508052826, -0.04355582222342491, -0.012494646944105625, -0.07391223311424255, -0.24263426661491394, -0.3518018126487732, 0.636492908000946, 0.0889953225851059, 0.5242310762405396, 0.47766339778900146, 0.06045025214552879, 0.5830124616622925, -0.1552411913871765, 0.2822132110595703, -0.776389479637146, -0.023523230105638504, -0.3103724718093872, 0.13246366381645203, -0.021710891276597977, -0.22958603501319885, 0.2328009009361267, 0.3454684317111969, -0.2449895143508911, 0.006511473096907139, 0.026615211740136147, 0.06391383707523346, -0.03259620442986488, 0.36282920837402344, -0.14411889016628265, -0.2786220610141754, -0.4063244163990021, 0.10320025682449341, 0.05685429275035858, -0.3126539885997772, 0.03033292107284069, -0.35097360610961914, -0.08654887229204178, -0.23574821650981903, -0.26396849751472473, 0.4338127076625824, -0.07165689766407013, 0.38861894607543945, 0.2239571213722229, -0.056200060993433, 0.36155128479003906, -0.09915348887443542, -0.168001189827919, -0.07536263763904572, 0.029198618605732918, 0.15066298842430115, -0.02726111002266407, -0.27439188957214355, -0.021823586896061897, 0.11915864795446396, 0.13462598621845245, -0.14880025386810303, 0.03841936215758324, -0.024872565641999245, -0.13940966129302979, -0.37188756465911865, 0.2763093113899231, 0.20762981474399567, -0.4314105212688446, -0.37099725008010864, -0.19432984292507172, 0.11563334614038467, -0.14967000484466553, -0.09347578138113022, 0.11809142678976059, -0.0015494839753955603, -0.2765599489212036, -0.3599804937839508, -0.07085856050252914, -0.2900587022304535, 0.05386413261294365, 0.35441654920578003, 0.2216332107782364, 0.043161362409591675, 0.6239021420478821, 0.24144652485847473, -0.002135401125997305, -0.3211764693260193, 0.08172116428613663, 0.34311601519584656, -0.444277286529541, 0.3989853858947754, -0.20757639408111572, -0.1646205484867096, 0.12205394357442856, 0.09199748188257217, 0.225900337100029, 0.167158842086792, -0.24596813321113586, -0.5066784024238586, -0.0920286476612091, 0.3302324414253235, -0.26218855381011963, -0.02449057623744011, -0.1378587931394577, 0.22089900076389313, -0.3556540310382843, 0.28722918033599854, -0.24341580271720886, 0.22912712395191193, -0.017261900007724762, -0.0485382117331028, -0.058163098990917206, -0.13160371780395508, 0.10557052493095398, 0.04739761725068092, 0.14014820754528046, 0.17527171969413757, 0.017603999003767967, -0.16238488256931305, -0.1138046458363533, 0.13337579369544983, 0.16780485212802887, 0.15522943437099457, -0.29862725734710693, 0.11636039614677429, -0.17701677978038788, 0.037722472101449966, 0.1328796148300171, -0.3939381539821625, -0.05499992147088051, 0.13743586838245392, 0.44412684440612793, 0.2775045931339264, -0.09676583856344223, 0.14930756390094757, -0.12397206574678421, 0.40127623081207275, -0.09297198057174683, 0.2098114937543869, -0.1530313938856125, 0.0011427432764321566, 0.03507435321807861, 0.19869698584079742, -0.04425579681992531, 0.09521381556987762, 0.5684464573860168, -0.19440685212612152, -0.0607280433177948, -0.5084901452064514, 0.29555851221084595, 0.5219074487686157, -0.0011158615816384554, -0.04227035492658615, -0.20385031402111053, 0.1671244204044342, -0.16145852208137512, -0.03935728967189789, 0.3196539580821991, 0.016419081017374992, -0.0983285903930664, 0.2596958875656128, 0.0950075164437294, -0.03784976527094841, -0.2987877130508423, 0.13046663999557495, 0.1833292543888092, 0.07271822541952133, 0.20181769132614136, 0.6401522159576416, -0.3257715404033661, 0.04987211897969246, 0.3796497881412506, 0.11830440163612366, 0.6063777208328247, 0.28971612453460693, 0.12442824989557266, 0.07130983471870422, 0.4207834303379059, 0.05208578705787659, 0.07744906842708588, -0.20151719450950623, -0.48151862621307373, 0.09029851108789444, 0.29123616218566895, -0.1424287110567093, -0.11190949380397797, 0.3422737717628479, 0.14414456486701965, -0.12927839159965515, -0.2035948485136032, 0.3980276584625244, -0.16030724346637726, -0.20408828556537628, -0.2676358222961426, -0.13371451199054718, -0.6331006288528442, -0.18158657848834991, -0.08125215023756027, -0.024373292922973633, -0.09150278568267822, 0.1115611270070076, 0.08362670242786407, -0.25461551547050476, 0.11987441778182983, 0.049474090337753296, -0.06789500266313553, -0.25965258479118347, 0.46796876192092896, 0.09139459580183029, 0.037275560200214386, 0.04090716317296028, 0.14877870678901672, 0.4960685074329376, 0.25024089217185974, -0.26351502537727356, -0.21823835372924805, -0.19870658218860626, -0.1470845490694046, -0.017943238839507103, 0.25852856040000916, 0.04942701384425163, 0.14894087612628937, 0.35852083563804626, 0.11411070078611374, -0.1599734127521515, 0.043839916586875916, 0.18226449191570282, 0.08147025108337402, 0.18575067818164825, 0.6384835243225098, -0.04779406636953354, -0.12134864181280136, 0.22430618107318878, -0.13197915256023407, -0.2510058581829071, -0.6355656385421753, 0.29188185930252075, 0.0026242099702358246, 0.19698603451251984, 0.07607060670852661, 0.07502374798059464, 0.10198913514614105, 0.6383274793624878, 0.058628056198358536, 0.08993693441152573, -0.10363008081912994, -0.1408049762248993, -0.03658594563603401, -0.030019937083125114, -0.3730287551879883, 0.010407378897070885, 0.17384454607963562, 0.09668192267417908, 0.1679893434047699, 0.29864969849586487, -0.025165123865008354, 0.2913760840892792, -0.21975666284561157, -0.11883283406496048, -0.48435693979263306, 0.06875889748334885, 0.2037036269903183, 0.09280581027269363, -0.12021274864673615, -0.1476210653781891, 0.06844848394393921, 0.25332000851631165, 0.02396240085363388, 0.09037664532661438, -0.24850110709667206, 0.11686282604932785, -0.322313129901886, 0.17504577338695526, 0.0504130944609642, 0.11403343081474304, -0.049405086785554886, -0.1896672397851944, -0.18875302374362946, -0.5733940601348877, -0.12193486094474792, 0.4686678647994995, 0.1284104287624359, 0.26802802085876465, -0.1597730815410614, 0.11881011724472046, -0.2943054139614105, 0.12106356024742126, -0.41286373138427734, 0.03888784721493721, -0.3458373248577118, 0.26152747869491577, -0.15570460259914398, 0.23541533946990967, -0.10956230014562607, -0.06789422035217285, -0.2019302397966385, 0.0950915515422821, -0.20747777819633484, -0.3111889660358429, 0.3760579824447632, 0.10880248993635178, -0.2328532189130783, 0.4643298387527466, 0.11880102008581161, 0.11658450216054916, 0.23164817690849304, -0.3983220160007477, -0.030120637267827988, 0.25434473156929016, -0.18920043110847473, -0.32227227091789246, -0.03069557249546051, 0.1550980657339096, -0.13845516741275787, -0.09622804075479507, 0.15036536753177643, 0.043786726891994476, -0.1663365662097931, -0.17571987211704254, 0.013815811835229397 ]
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.13044831156730652, -0.04836520552635193, 0.059793390333652496, 0.42177778482437134, 0.168760746717453, -0.21573853492736816, 0.26701903343200684, 0.016133036464452744, -0.024434685707092285, -0.10663749277591705, -0.38732481002807617, -0.0008521024719811976, 0.14539416134357452, 0.4104737639427185, 0.3283267021179199, -0.08485201746225357, 0.11947391927242279, -0.03571696951985359, 0.013939394615590572, -0.1574850231409073, -0.348336398601532, 0.31967291235923767, -0.37573665380477905, 0.09690971672534943, -0.02976493164896965, 0.01966201700270176, -0.21430088579654694, 0.26228097081184387, -0.1611684262752533, -0.13939239084720612, 0.4381096661090851, 0.16449879109859467, 0.3262890875339508, 0.09963742643594742, -0.00011755900777643546, 0.029529619961977005, 0.10566174238920212, -0.08709501475095749, -0.5640887022018433, 0.09365027397871017, -0.32484281063079834, -0.23692768812179565, -0.041226826608181, -0.055394046008586884, -0.21174320578575134, -0.034127917140722275, 0.08784427493810654, -0.13384489715099335, 0.262066125869751, 0.2927180230617523, 0.13121628761291504, 0.45702099800109863, -0.5215489268302917, 0.0837668851017952, 0.02260572277009487, -0.10759583115577698, -0.16608043015003204, 0.28111815452575684, 0.059420812875032425, -0.23487313091754913, 0.15840932726860046, 0.1544829159975052, -0.30540749430656433, -0.3910257816314697, 0.1858431100845337, 0.025187261402606964, -0.0524713359773159, -0.07814829796552658, 0.10443241894245148, 0.2801414728164673, 0.06989850103855133, 0.15276461839675903, -0.2861180901527405, -0.3133837878704071, 0.09730071574449539, -0.04410616680979729, 0.18981745839118958, 0.1714375615119934, 0.12775935232639313, 0.3028595745563507, -0.05016423761844635, -0.26440349221229553, -0.0007004336803220212, 0.29482561349868774, -0.15439821779727936, 0.6570667624473572, -0.14177857339382172, 0.1334460973739624, 0.3431952893733978, -0.02864052914083004, 0.08544335514307022, -0.009940488263964653, 0.07277758419513702, 0.10836411267518997, -0.3882720470428467, 0.09510782361030579, -0.1398559957742691, 0.3578726053237915, 0.021769680082798004, 0.32684147357940674, 0.24666886031627655, -0.048289213329553604, 0.007582758087664843, 0.1901654601097107, 0.07712900638580322, 0.19084575772285461, 0.02696681022644043, -0.23201344907283783, 0.507223904132843, 0.23948176205158234, 0.27193811535835266, 0.09627057611942291, -0.2195153683423996, -0.2679290473461151, -0.5367238521575928, -0.3278502821922302, 0.07820747792720795, -0.2093333601951599, -0.14501751959323883, -0.1577027589082718, -0.07197747379541397, 0.11553048342466354, 0.18228496611118317, 0.2834402620792389, -0.06271415948867798, 0.5076029896736145, 0.11113425344228745, 0.19027189910411835, -0.2350015640258789, -0.2010630965232849, -0.15717223286628723, 0.015019557438790798, -0.34104621410369873, 0.3710554242134094, 0.11819185316562653, -0.3645623028278351, 0.16728796064853668, -0.0471501387655735, -0.1467895656824112, 0.16597943007946014, -0.14715033769607544, 0.3010150194168091, -0.033903125673532486, 0.1608225554227829, -0.04067528247833252, 0.15516993403434753, -0.028171353042125702, -0.14015890657901764, -0.13046185672283173, -0.16632048785686493, -0.1513630449771881, -0.3299480974674225, -0.08572766184806824, 0.03101418726146221, -0.333806574344635, -0.24958807229995728, -0.451935738325119, 0.0037021315656602383, 0.026770276948809624, -0.10502161830663681, -0.06728900223970413, -0.07896244525909424, -0.23878543078899384, -0.12133653461933136, 0.30648601055145264, 0.5235176086425781, 0.2027139812707901, -0.3623383939266205, -0.23557865619659424, 0.03768739476799965, 0.16179318726062775, 0.6363999247550964, -0.11884158104658127, -0.40012526512145996, -0.182498499751091, 0.17750243842601776, 0.200228750705719, -0.17948690056800842, -0.32569485902786255, 0.2752825915813446, -0.36136728525161743, -0.14399871230125427, 0.22235387563705444, 0.19318856298923492, -0.1639111191034317, -0.04995017498731613, 0.1892513930797577, 0.6330450773239136, 0.12604357302188873, -0.08561339229345322, -0.4507153630256653, -0.36408761143684387, 0.004756099544465542, 0.22296284139156342, 0.11327755451202393, -0.03711862489581108, -0.12916739284992218, 0.23092763125896454, 0.29570284485816956, -0.14453701674938202, 0.054640933871269226, -0.0628841444849968, 0.22877110540866852, 0.27530619502067566, -0.018023813143372536, 0.145880788564682, -0.37360894680023193, 0.16017897427082062, -0.015661990270018578, 0.43465563654899597, 0.07746929675340652, 0.040483735501766205, -0.17899857461452484, -0.00947249960154295, -0.1319321095943451, -0.15485787391662598, -0.045312389731407166, 0.3207748532295227, 0.23290608823299408, 0.14567185938358307, -0.29760491847991943, 0.227768212556839, -0.23710311949253082, 0.24964751303195953, -0.5744194388389587, 0.5656713843345642, 0.11775839328765869, 0.22764956951141357, -0.011413052678108215, 0.31987321376800537, 0.030709194019436836, -0.1356552094221115, 0.16455523669719696, 0.09949062764644623, -0.3558293581008911, 0.23597963154315948, 0.4676786959171295, 0.08755382150411606, 0.26380184292793274, -0.26065924763679504, 0.4226091206073761, -0.0008728288812562823, -0.05667060613632202, 0.016511650756001472, 0.13779465854167938, 0.5027770400047302, -0.12108831852674484, 0.42023906111717224, 0.24706271290779114, 0.23842738568782806, 0.4183705151081085, -0.06206800043582916, -0.054154857993125916, -0.07592149823904037, 0.20869074761867523, 0.2436831146478653, 0.41835281252861023, 0.42911696434020996, -0.4238772988319397, 0.10120350122451782, 0.05738649517297745, -0.2955073416233063, 0.03750789165496826, 0.03059227578341961, -0.3085523843765259, -0.22869092226028442, 0.3273908793926239, 0.4721657931804657, 0.20522968471050262, 0.052436910569667816, -0.048988956958055496, -0.06646543741226196, -0.15078942477703094, -0.5673173069953918, 0.34566015005111694, -0.03265727311372757, -0.06887887418270111, -0.0018094639526680112, 0.25202643871307373, -0.030082881450653076, -0.6293236613273621, -0.030429523438215256, -0.08396794646978378, -0.032937195152044296, -0.22632132470607758, 0.19762331247329712, -0.35921788215637207, -0.6340146660804749, -0.5378744006156921, 0.08218959718942642, -0.329807311296463, -0.5116078853607178, 0.09212587773799896, 0.18287907540798187, 0.022649016231298447, -0.06347338110208511, -0.006748257204890251, 0.6645888090133667, -0.43014949560165405, -0.06042041257023811, -0.14701692759990692, -0.5190832614898682, -0.37706220149993896, 0.06344790011644363, 0.35870614647865295, 0.20077276229858398, 0.1039775162935257, -0.2691947817802429, -0.1576092392206192, -0.31663286685943604, -0.45441240072250366, 0.09335336089134216, -0.008702992461621761, 0.09787867218255997, -0.03496908023953438, 0.35976171493530273, 0.11735618859529495, -0.131622776389122, 0.22076472640037537, -0.14579422771930695, 0.1616683453321457, 0.3093682527542114, -0.14113320410251617, -0.06294850260019302, 0.09916598349809647, -0.19209261238574982, -0.398688405752182, -0.2858090102672577, 0.15824401378631592, -0.4708932638168335, -0.08652685582637787, 0.4178462624549866, -0.12099634855985641, 0.1282299906015396, -0.014049239456653595, -0.1653675138950348, -0.006905695423483849, -0.1221962571144104, 0.34015172719955444, -0.08454397320747375, -0.16880635917186737, -0.017971595749258995, 0.11937960237264633, 0.266713410615921, -0.09781033545732498, -0.5858650803565979, -0.00702586118131876, -0.09593275934457779, 0.08756844699382782, 0.39452335238456726, -0.06226562708616257, -0.020065242424607277, -0.17663487792015076, 0.01492137648165226, 0.1136285737156868, -0.1519600749015808, -0.043489739298820496, 0.16345395147800446, 0.3132614493370056, 0.15995977818965912, 0.2865484654903412, -0.0055421325378119946, 0.48171013593673706, 0.10035065561532974, -0.10315368324518204, 0.46577560901641846, 0.14122876524925232, 0.12982739508152008, 0.05498727038502693, -0.40655431151390076, 0.1902962625026703, 0.03336876258254051, -0.34197142720222473, 0.42725497484207153, 0.1819271594285965, 0.12055153399705887, -0.36847272515296936, -0.2022225260734558, 0.16976453363895416, -0.26769694685935974, 0.05304698273539543, 0.2985784113407135, 0.060309525579214096, 0.09722719341516495, -0.10550492256879807, -0.03779316693544388, -0.15850169956684113, -0.05209990590810776, 0.4101317226886749, 0.09776356816291809, 0.025048747658729553, -0.26116377115249634, -0.09200415015220642, -0.5408343076705933, 0.3158063292503357, 0.05276390165090561, 0.20280331373214722, -0.08107813447713852, -0.030108710750937462, 0.2543749213218689, 0.06791796535253525, 0.26634955406188965, -0.10480484366416931, 0.14239637553691864, 0.0410786010324955, -0.0973922535777092, -0.4929031729698181, 0.0652066320180893, 0.12379136681556702, -0.07173033803701401, 0.4792836904525757, 0.3520561158657074, -0.03948178514838219, -0.2428177446126938, 0.14532291889190674, 0.23051950335502625, -0.24358704686164856, 0.06693536043167114, -0.1930081844329834, -0.5233625769615173, -0.19677691161632538, -0.1565239578485489, -0.172604501247406, 0.07372896373271942, -0.09555985778570175, 0.05605668947100639, 0.06314517557621002, -0.18656805157661438, 0.11511010676622391, 0.34340882301330566, 0.023311039432883263, 0.2734472453594208, -0.12752901017665863, 0.07950816303491592, 0.35382312536239624, 0.13472676277160645, 0.7317377924919128, -0.1766163408756256, -0.3419305384159088, 0.14247332513332367, 0.3091104030609131, 0.4259911775588989, 0.5515434145927429, 0.012210563756525517, -0.0027423331048339605, 0.24694180488586426, 0.169174462556839, -0.07102034986019135, 0.024856233969330788, 0.18965406715869904, -0.027157677337527275, -0.24380943179130554, -0.3387821614742279, 0.6757810115814209, 0.1753595769405365, -0.06867118179798126, -0.019681382924318314, 0.18797966837882996, -0.19974714517593384, 0.3174862861633301, 0.19638466835021973, 1.1126023530960083, -0.3865784704685211, 0.25271594524383545, 0.4754592478275299, 0.13002721965312958, 0.7861914038658142, -0.04764815419912338, 0.03931339457631111, -0.17577587068080902, -0.03868776559829712, -0.015869420021772385, 0.10263879597187042, -0.2545432448387146, 0.09310048073530197, 0.11931290477514267, 0.37657156586647034, 0.14625948667526245, 0.1244838610291481, 0.17723260819911957, 0.45527997612953186, -0.014979365281760693, -0.17152726650238037, -0.9147068858146667, 0.08993058651685715, -0.04436244070529938, 0.1974339634180069, -0.11496739089488983, -0.13639406859874725, -0.14376066625118256, 0.2531205117702484, -0.06407633423805237, 0.309570848941803, 0.09262753278017044, 0.2168547511100769, -0.3098127543926239, -0.09306781738996506, -0.11080392450094223, 0.2111051380634308, 0.49115440249443054, -0.14630834758281708, -0.2870130240917206, 0.010024761781096458, -0.26191285252571106, -0.1846577376127243, -0.004082148429006338, 0.11465911567211151, 0.25684720277786255, 0.02994462661445141, -0.03221401572227478, -0.09526269137859344, 0.29023122787475586, -0.2916537821292877, -0.34342941641807556, -0.14098772406578064, -0.34795740246772766, -0.059365902096033096, 0.18422341346740723, 0.17046679556369781, 0.09887322783470154, -0.15928922593593597, 0.04380360245704651, 0.02010636404156685, 0.1397152841091156, -0.3530651926994324, 0.15583613514900208, -0.2608715891838074, -0.09024813026189804, 0.422477662563324, -0.12901419401168823, 0.23675020039081573, 0.21371333301067352, 0.2999238073825836, 0.0416075736284256, -0.14435645937919617, -0.20402540266513824, -0.12507790327072144, -0.34934693574905396, 0.22677502036094666, 0.026972293853759766, -0.2679871916770935, -0.15606749057769775, 0.4593496322631836, 0.2066573053598404, -0.3265989124774933, -0.12991124391555786, -0.4308764636516571, 0.006658248137682676, 0.36100924015045166, -0.09636186808347702, 0.03112803027033806, 0.328096479177475, 0.048095475882291794, -0.08674467355012894, -0.11573474109172821, -0.21618123352527618, 0.029873143881559372, -0.2376493513584137, -0.005872365087270737, 0.3596523404121399, -0.14707110822200775, 0.19621920585632324, 0.12211497128009796, -0.014204364269971848, -0.2798125445842743, 0.04944706708192825, -0.07293505221605301, -0.17543333768844604, 0.1707996129989624, 0.25850802659988403, -0.2010313719511032, -0.16814100742340088, -0.28214508295059204, 0.06484764814376831, -0.28873610496520996, 0.02327038161456585, 0.06044585257768631, 0.049707360565662384, 0.14759965240955353, -0.16806186735630035, -0.21706001460552216, -0.032463230192661285, 0.46555575728416443, 0.07115178555250168, -0.08064885437488556, 0.26550552248954773, 0.14155808091163635, 0.21427235007286072, -0.08843553066253662, -0.18475501239299774, 0.04753286764025688, 0.045063868165016174, 0.005697908811271191, 0.24241574108600616, -0.2242480218410492, -0.18045984208583832, 0.2852204740047455, 0.06550759822130203, 0.6470023393630981, 0.2247956544160843, 0.013737334869801998, -0.0031780374702066183, 0.006632971577346325, -0.13878007233142853, -0.019350837916135788, 0.33278727531433105, 0.06998718529939651, -0.27757400274276733, 0.2848498225212097, 0.31588879227638245, -0.28586849570274353, 0.09280305355787277, -0.03610480949282646, 0.20296426117420197, 0.13250133395195007, 0.22337646782398224, 0.20391447842121124, 0.2522876560688019, 0.15989971160888672, 0.0533147007226944, -0.026981661096215248, 0.35745659470558167, -0.09296311438083649, -0.20844323933124542, 0.28468722105026245, -0.41641467809677124, 0.362005352973938, 0.1814376711845398, -0.09258899837732315, -0.1739555448293686, 0.22662749886512756, -0.10835827887058258, -0.02367238700389862, 0.04932890832424164, 0.8438777923583984, -0.3339233994483948, -0.2409932017326355, -0.35824188590049744, 0.6556246876716614, -0.24541795253753662, -0.29101642966270447, -0.5016086101531982, -0.13647152483463287, -0.17977593839168549, 0.20415984094142914, -0.32151123881340027, -0.29177868366241455, 0.28840330243110657, 0.20907850563526154, -0.030505407601594925, -0.6123157143592834, -0.17653273046016693, 0.34345921874046326, 0.11245167255401611, -0.11380530893802643, 0.3136472702026367, 0.05800677835941315, -0.20412561297416687, 0.1188611313700676, 0.0968799740076065, 0.35004404187202454, 0.20109033584594727, -0.014696684665977955, -0.04771322384476662, 0.12547685205936432, -0.0012671609874814749, -0.2866494357585907, 0.12652687728405, -0.06532629579305649, 0.2059822529554367, 0.2354424148797989, 0.07742641866207123, -0.05314183607697487, 0.056003931909799576, -0.005143171641975641, 0.13397112488746643, -0.23937906324863434, 0.23333898186683655, 0.004183105193078518, -0.037076596170663834, -0.3344922661781311, 0.05349113047122955, -0.32653337717056274, 0.14245840907096863, 0.10188554972410202, -0.22226229310035706, 0.08464426547288895, -0.17365722358226776, 0.01387843582779169, 0.18511992692947388, 0.7972924709320068, 0.39564403891563416, 0.0028443795163184404, -0.25362443923950195, -0.3362247049808502, -0.7480277419090271, -0.030340636149048805, -0.04552660509943962, 0.03141012415289879, -0.09897015988826752, 0.02645839937031269, 0.014755111187696457, 0.08649613708257675, -0.513956606388092, 0.3119206726551056, 0.0454292930662632, -0.1438584178686142, -0.24886208772659302, -0.046001218259334564, 0.0006246514385566115, -0.1093423143029213, -0.03083321452140808, -0.1851893961429596, 0.19703005254268646, -0.09955184161663055, -0.1593066304922104, 0.04059019684791565, 0.1372339278459549, -0.14986757934093475, -0.19605852663516998, 0.3116006553173065, 0.21885424852371216, 0.2902204990386963, 0.09415139257907867, -0.1532396525144577, -0.3999745547771454, -0.3762974441051483, -0.21542176604270935, -0.03514658287167549, -0.16200515627861023, -0.010552501305937767, -0.026523537933826447, 0.3910282552242279, -0.26981645822525024, 0.1867968589067459, 0.1291772872209549, 0.16262835264205933, -0.22147175669670105, -0.1415461152791977, -0.28221583366394043, 0.07693992555141449, 0.18282951414585114, 0.32195690274238586, -0.10198191553354263, -0.16485640406608582, -0.03888548165559769, -0.2984730899333954, 0.310402512550354, -0.6674925088882446, -0.0051827761344611645, 0.23180997371673584, 0.10037001222372055, 0.1905428171157837, -0.004460803233087063, -0.2803208529949188, 0.02167798951268196, -0.04023069515824318, 0.05361462011933327, -0.05722355097532272, 0.25590038299560547, 0.2245052605867386, -0.2706514000892639, -0.22824087738990784, -0.21763703227043152, 0.2312411665916443, -0.30378806591033936, 0.13398350775241852, -0.315690815448761 ]
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.052762772887945175, 0.17702478170394897, -0.1492282748222351, 0.29231858253479004, 0.17709863185882568, 0.254323810338974, 0.22255933284759521, 0.11882711201906204, -0.14430846273899078, -0.1214151456952095, -0.1536754071712494, 0.05646319314837456, -0.16629162430763245, 0.17042088508605957, 0.08375133574008942, -0.24068452417850494, 0.051472488790750504, -0.05878390744328499, -0.09516078978776932, -0.22925320267677307, -0.13274948298931122, 0.24706865847110748, -0.11449244618415833, -0.24908366799354553, -0.391707181930542, -0.03008090704679489, -0.1971091330051422, 0.08251119405031204, -0.2330876588821411, -0.546654224395752, 0.12980596721172333, 0.13126659393310547, 0.20014061033725739, 0.3561389148235321, -0.00010372114775236696, -0.24073773622512817, 0.026851912960410118, -0.01446274109184742, -0.17142654955387115, -0.1655445247888565, -0.206145241856575, -0.5361248850822449, -0.022751256823539734, -0.0801115483045578, -0.1275693029165268, 0.041060417890548706, 0.054338302463293076, -0.24474109709262848, -0.013065370731055737, 0.32333430647850037, 0.24470524489879608, -0.06618689000606537, -0.05842389911413193, -0.14122223854064941, 0.29887863993644714, 0.5512333512306213, -0.3106319010257721, -0.06306319683790207, 0.5326182246208191, 0.1365833431482315, -0.001336241140961647, 0.30908656120300293, -0.2009139209985733, -0.08904407173395157, 0.1607445478439331, 0.21958866715431213, -0.29087939858436584, -0.3853919208049774, 0.03846953064203262, 0.3302033245563507, 0.7269300818443298, -0.29914453625679016, -0.4356441795825958, -0.2929210364818573, 0.17904190719127655, -0.20916922390460968, -0.1762983351945877, 0.2850814759731293, -0.012793617323040962, 0.14512009918689728, -0.14743906259536743, -0.2335701733827591, -0.21259580552577972, 0.23841170966625214, 0.29970619082450867, 0.09458684176206589, 0.01345538254827261, -0.19839684665203094, -0.09502949565649033, 0.12801983952522278, 0.3503783941268921, -0.3807174265384674, 0.20489472150802612, -0.00103624421171844, -0.19959613680839539, -0.2089158147573471, -0.04660283774137497, 0.025889448821544647, -0.0650748610496521, 0.010043708607554436, -0.23203225433826447, 0.08539611846208572, -0.19176612794399261, -0.08208534866571426, 0.030585113912820816, -0.10319903492927551, 0.21318204700946808, 0.3429120182991028, 0.10361593216657639, -0.27879318594932556, 0.15654988586902618, 0.033534370362758636, -0.1759023219347, 0.22728058695793152, -0.02015538141131401, 0.054512035101652145, -0.13346678018569946, -0.22949588298797607, 0.04641437157988548, -0.11725401878356934, 0.020205862820148468, -0.10668005794286728, -0.1993536502122879, -0.06663445383310318, -0.04999709874391556, 0.149942085146904, -0.1912824958562851, 0.240619957447052, 0.003572855843231082, -0.4072592556476593, -0.1258370727300644, -0.05201760679483414, -0.10642272233963013, 0.17184968292713165, 0.6023262143135071, -0.16703331470489502, 0.17918998003005981, -0.13791821897029877, -0.16813814640045166, 0.15340982377529144, -0.07666095346212387, 0.0061888014897704124, 0.063681460916996, 0.12825962901115417, -0.1471482217311859, 0.12477213144302368, 0.15509888529777527, 0.13346809148788452, -0.20325599610805511, 0.26139354705810547, -0.05147746950387955, -0.21164029836654663, -0.24260787665843964, 0.24613849818706512, -0.01276345457881689, -0.5387884974479675, -0.1642749160528183, 0.6117174029350281, -0.03404700756072998, -0.11514703184366226, 0.16985666751861572, -0.01920766569674015, -0.08499902486801147, -0.1658170074224472, -0.049199990928173065, 0.4430483877658844, -0.4810701012611389, -0.24996337294578552, -0.38365045189857483, 0.13588987290859222, 0.17847402393817902, 0.1647048443555832, -0.19559773802757263, 0.03490189462900162, 0.08225300163030624, 0.016714992001652718, 0.20632033050060272, -0.02450551837682724, -0.2242676466703415, -0.09163472801446915, 0.08196117728948593, -0.11400947719812393, 0.1038505807518959, 0.31705427169799805, 0.11336017400026321, -0.07568364590406418, -0.15962564945220947, 0.12644165754318237, -0.29822108149528503, -0.04882936552166939, -0.12450875341892242, -0.044639430940151215, 0.20998938381671906, 0.4207589030265808, 0.49518632888793945, -0.08521518856287003, 0.07350359857082367, -0.20818878710269928, 0.09259556233882904, 0.06929858773946762, 0.22656984627246857, 0.09307744354009628, 0.12558729946613312, 0.2216484546661377, 0.05580776184797287, -0.321633517742157, -0.20004330575466156, 0.05031375586986542, 0.3117827773094177, 0.3458417057991028, 0.003385812509804964, -0.13042080402374268, -0.14601556956768036, -0.12069952487945557, 0.043525174260139465, -0.030035564675927162, 0.1596377193927765, -0.12218999862670898, 0.11884169280529022, 0.1875602751970291, -0.3006012737751007, 0.20694957673549652, -0.321477472782135, 0.3590741455554962, 0.1875850111246109, 0.32834190130233765, -0.035260122269392014, -0.005996895954012871, 0.1668466180562973, 0.3152218461036682, -0.031122371554374695, 0.00178855552803725, 0.01152109820395708, -0.04219656437635422, -0.15212059020996094, -0.03780430927872658, 0.3529798686504364, 0.3763910233974457, 0.37678441405296326, -0.5228679180145264, 0.28616857528686523, -0.05948011204600334, 0.06894339621067047, -0.18870937824249268, -0.07368353754281998, 0.3114967942237854, -0.0839342474937439, 0.0817985087633133, -0.004045811481773853, 0.051478877663612366, -0.025648074224591255, -0.004090735223144293, 0.036891400814056396, 0.11112722009420395, 0.2754786014556885, -0.16136108338832855, 0.17108263075351715, 0.0034515007864683867, -0.1263173520565033, 0.2079489678144455, 0.22142033278942108, -0.054088085889816284, 0.17903336882591248, 0.2693893611431122, -0.4363264739513397, -0.044664375483989716, -0.036001645028591156, 0.1678318828344345, 0.3374677896499634, 0.4586305618286133, -0.007557005621492863, -0.09211620688438416, 0.10008890181779861, -0.33189868927001953, 0.053944505751132965, 0.3946705758571625, 0.023821646347641945, 0.0016802415484562516, 0.27782100439071655, 0.24336843192577362, -0.26116564869880676, -0.1199081614613533, 0.1832582801580429, -0.07904057204723358, 0.04157010838389397, -0.05270345136523247, -0.07341000437736511, -0.38315653800964355, -0.011877705343067646, -0.06083963066339493, -0.09111276268959045, -0.2869119346141815, 0.23350922763347626, -0.2812654376029968, 0.10548696666955948, 0.09377992898225784, -0.301101416349411, 0.4749561846256256, -0.25831860303878784, 0.09359350055456161, -0.08099301159381866, -0.22279103100299835, -0.22628159821033478, 0.26441317796707153, 0.06431309133768082, -0.0026944996789097786, 0.4211892783641815, -0.09279830753803253, 0.3203362226486206, -0.26783841848373413, -0.4691829979419708, -0.01612168923020363, -0.2101110965013504, -0.010174316354095936, -0.15098176896572113, -0.14156921207904816, 0.014812305569648743, -0.13146202266216278, 0.001189294271171093, -0.13847778737545013, -0.13760146498680115, -0.022324074059724808, -0.20064705610275269, -0.1917315423488617, -0.01299574039876461, -0.6513701677322388, -0.520569920539856, -0.06593967974185944, 0.09645488113164902, 0.00983148068189621, -0.020840244367718697, 0.30688977241516113, -0.15841205418109894, -0.09489447623491287, -0.14829021692276, 0.083002969622612, -0.07268770039081573, -0.3189513385295868, 0.14424626529216766, -0.1456783413887024, -0.19679608941078186, -0.07865259051322937, -0.04129840061068535, -0.10704344511032104, -0.07462392002344131, -0.5309436321258545, 0.14418458938598633, -0.26852014660835266, 0.18199540674686432, 0.12278032302856445, -0.11496911197900772, 0.43682751059532166, 0.2920849621295929, -0.12086144089698792, 0.06266704201698303, -0.17010734975337982, -0.11985215544700623, 0.055591125041246414, 0.16543343663215637, -0.2778555154800415, 0.10614258795976639, 0.23857547342777252, 0.5572983622550964, 0.08777698874473572, -0.11163869500160217, 0.09039440006017685, 0.28512299060821533, 0.3834933936595917, 0.012523421086370945, -0.4623265564441681, 0.22606709599494934, -0.20445378124713898, 0.17793287336826324, 0.29704350233078003, 0.2645273208618164, -0.3142875134944916, -0.20049503445625305, 0.1137506291270256, -0.29480409622192383, -0.04595007747411728, 0.17836540937423706, -0.13880905508995056, 0.28124165534973145, 0.05739768594503403, -0.1314414143562317, -0.23324285447597504, -0.453506737947464, -0.11186531186103821, 0.3031828999519348, 0.234877809882164, -0.15522918105125427, -0.6461657285690308, 0.038298554718494415, -0.47878870368003845, 0.08939056098461151, 0.1747150868177414, -0.07813718169927597, -0.19472680985927582, 0.24040891230106354, -0.11462501436471939, 0.4444723427295685, 0.019365618005394936, -0.4512852728366852, -0.33387044072151184, 0.24098718166351318, 0.05854885280132294, -0.0943010002374649, 0.13334861397743225, -0.3841446340084076, -0.06559135764837265, 0.2734685242176056, -0.0731276273727417, 0.09677187353372574, -0.012211249209940434, 0.4771544635295868, -0.011773014441132545, -0.000174728746060282, -0.3162125051021576, 0.3753695785999298, 0.12425516545772552, -0.17656077444553375, -0.21057775616645813, 0.0750049576163292, 0.03645027056336403, -0.2372230738401413, -0.019651345908641815, 0.1807059347629547, 0.015431479550898075, 0.32848289608955383, -0.29062676429748535, -0.2960876524448395, 0.23439757525920868, 0.21301768720149994, 0.07004542648792267, -0.04192068427801132, 0.2807830274105072, 0.5084702968597412, -0.2091924399137497, -0.5425742864608765, -0.01609230227768421, -0.11367756128311157, 0.5346783995628357, 0.21243849396705627, 0.2784397304058075, 0.23420292139053345, -0.14077086746692657, -0.18895968794822693, -0.14100274443626404, 0.2169255167245865, 0.11516477912664413, -0.09615498036146164, -0.4878028333187103, -0.3194536864757538, 0.319659948348999, -0.07894623279571533, -0.10060296952724457, -0.024512887001037598, 0.23792192339897156, -0.18449810147285461, 0.13450947403907776, -0.18801487982273102, 0.8308116793632507, -0.0646936446428299, 0.12245255708694458, -0.3462642431259155, 0.0034011960960924625, 0.5688191652297974, -0.2504187524318695, 0.18340250849723816, -0.0013318626442924142, -0.2832995057106018, -0.06863124668598175, -0.05490512400865555, 0.009967969730496407, 0.4351370632648468, 0.0973287969827652, 0.2558714747428894, 0.18979232013225555, 0.20150534808635712, 0.062481045722961426, 0.1596848964691162, 0.09276901930570602, -0.3814064562320709, 0.04253779351711273, 0.24349868297576904, 0.01950313150882721, 0.30091622471809387, -0.017493709921836853, 0.08834747970104218, -0.22393928468227386, 0.17973405122756958, -0.7378603219985962, -0.1611163467168808, -0.11837209761142731, 0.0995340645313263, -0.01129105594009161, -0.37186747789382935, 0.4561331570148468, 0.35142335295677185, 0.5682690143585205, 0.06491440534591675, -0.2017301619052887, 0.03095211088657379, -0.22116172313690186, -0.15868361294269562, 0.15189439058303833, -0.12319542467594147, 0.2417226880788803, 0.015314571559429169, -0.22228007018566132, 0.17783957719802856, 0.004278230015188456, -0.2087232917547226, -0.449882447719574, -0.33052968978881836, 0.280006468296051, -0.3033124804496765, 0.34711772203445435, 0.1718561351299286, 0.06266838312149048, -0.31167319416999817, 0.19674372673034668, 0.29422762989997864, 0.3189517557621002, 0.12055355310440063, 0.21120275557041168, -0.0315546840429306, -0.4240740239620209, 0.1737750917673111, 0.24210785329341888, -0.28079941868782043, 0.4127331078052521, 0.47190389037132263, -0.14879052340984344, -0.22141572833061218, 0.24559083580970764, 0.18721352517604828, -0.2705712616443634, -0.07419644296169281, -0.14883513748645782, -0.03312893956899643, 0.19288082420825958, 0.3041178286075592, 0.391181617975235, -0.2794886529445648, 0.01889294944703579, -0.23338717222213745, -0.056588154286146164, 0.1764001101255417, -0.1373322755098343, 0.09515431523323059, -0.23735825717449188, 0.13734230399131775, 0.09380876272916794, 0.26224252581596375, -0.3498086929321289, 0.12992647290229797, 0.14913593232631683, 0.055143680423498154, 0.2374935746192932, 0.02519368752837181, 0.12732425332069397, -0.2558552324771881, 0.03498103469610214, 0.010395452380180359, 0.03956136852502823, -0.24905526638031006, 0.07596556097269058, 0.1310136765241623, 0.014182188548147678, 0.022044477984309196, -0.05996038392186165, 0.11740677058696747, -0.12176696956157684, -0.028525805100798607, -0.10223732143640518, 0.12608441710472107, 0.05799027532339096, 0.5187691450119019, -0.18748609721660614, -0.0399886779487133, 0.13103413581848145, 0.06022171676158905, -0.2783370316028595, 0.4006112515926361, 0.3284613788127899, 0.12020459026098251, 0.47602391242980957, 0.09492704272270203, -0.23072512447834015, 0.17639875411987305, 0.09277208149433136, -0.08783967792987823, 0.6063154339790344, -0.24096187949180603, 0.265362024307251, 0.49113893508911133, 0.08210767060518265, -0.2604222595691681, -0.08422237634658813, 0.12153684347867966, -0.01341488491743803, 0.2712400555610657, -0.3505735695362091, -0.20425492525100708, 0.01939387246966362, 0.27988117933273315, 0.045172836631536484, 0.19557610154151917, 0.2910691201686859, 0.036710526794195175, 0.20929236710071564, 0.11251761019229889, 0.4954880475997925, -0.06874632835388184, 0.39326784014701843, -0.05353213846683502, 0.18630269169807434, -0.09167247265577316, 0.2409767508506775, 0.10883104801177979, -0.016072526574134827, 0.20826882123947144, 0.07181347161531448, 0.45691365003585815, -0.11393362283706665, 0.12056735903024673, 0.39596062898635864, -0.147008016705513, 0.3860014081001282, 0.29094281792640686, -0.10109080374240875, 0.11790496855974197, -0.09078386425971985, 0.25814229249954224, -0.22042156755924225, 0.0017508658347651362, -0.15541774034500122, -0.07738767564296722, -0.05040751025080681, 0.08522441238164902, 0.1088256761431694, -0.3221074342727661, 0.05876515433192253, -0.15758220851421356, -0.25978484749794006, -0.34418535232543945, 0.23959945142269135, -0.11941800266504288, -0.2106216698884964, -0.6339170932769775, 0.19540178775787354, 0.13095301389694214, 0.3912186324596405, -0.13573294878005981, -0.07471732795238495, 0.09180547297000885, -0.261267751455307, 0.27754250168800354, 0.5547751188278198, 0.14468520879745483, -0.15528813004493713, 0.005785152316093445, 0.04793687164783478, -0.27261340618133545, -0.2029709666967392, 0.1911282241344452, 0.28335046768188477, 0.33401110768318176, 0.10134434700012207, -0.061723627150058746, 0.18659520149230957, -0.043002285063266754, 0.08301801234483719, 0.08848105370998383, 0.004623023327440023, -0.3006364703178406, 0.16517935693264008, 0.07953185588121414, -0.2540402114391327, -0.10774430632591248, -0.04418699070811272, -0.21267098188400269, -0.20247815549373627, 0.5217412710189819, -0.12493640184402466, 0.0119945602491498, -0.12161057442426682, 0.12764094769954681, -0.15107819437980652, 0.17817901074886322, 0.33209657669067383, -0.20013810694217682, -0.263759970664978, -0.14795184135437012, -0.03203883394598961, -0.18740367889404297, 0.14459173381328583, 0.19736258685588837, -0.2097579687833786, 0.03292461484670639, 0.2578451633453369, 0.24608813226222992, -0.3451772928237915, -0.09858403354883194, -0.0980997383594513, -0.02352827973663807, -0.5865005254745483, -0.13418620824813843, 0.15481841564178467, 0.23238258063793182, -0.012706381268799305, 0.19749876856803894, -0.09831161051988602, -0.017212096601724625, 0.02238330990076065, -0.35280486941337585, 0.1500774323940277, 0.23429231345653534, 0.11285218596458435, 0.1448771059513092, 0.1082506999373436, 0.44875627756118774, 0.031277332454919815, -0.1258469671010971, -0.09535470604896545, -0.43937939405441284, -0.031177440658211708, 0.3536725640296936, -0.03991684690117836, 0.34506675601005554, -0.3038221597671509, -0.2439209371805191, 0.30595338344573975, 0.05600596219301224, 0.09729719161987305, -0.12162860482931137, -0.5262702703475952, 0.017482545226812363, -0.015953419730067253, -0.0718265026807785, 0.21647724509239197, -0.023660438135266304, 0.036996614187955856, -0.12276286631822586, -0.039736997336149216, -0.35791653394699097, 0.05557389184832573, -0.09234391152858734, 0.1185164824128151, -0.24450892210006714, 0.06201239302754402, 0.3544394373893738, 0.26643332839012146, -0.6245583295822144, -0.009827760979533195, 0.5481742024421692, -0.16703493893146515, 0.03155041113495827, 0.4038209319114685, 0.11497564613819122, -0.05156645178794861, -0.09855370223522186, 0.39033523201942444, -0.2673249840736389, -0.23388837277889252, -0.13892130553722382, -0.15671436488628387 ]
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.08154139667749405, 0.02390618622303009, -0.12607884407043457, 0.2537372410297394, 0.20224326848983765, 0.1909445971250534, 0.23134548962116241, 0.1288256049156189, -0.01969435065984726, -0.052467964589595795, -0.23717361688613892, 0.028186343610286713, -0.07936090975999832, 0.2284715473651886, 0.11582581698894501, -0.33472293615341187, 0.03275188058614731, -0.027821874246001244, -0.21274369955062866, -0.18555860221385956, -0.11487922817468643, 0.33601176738739014, -0.04539874568581581, -0.2311265617609024, -0.44253861904144287, -0.0575629323720932, -0.2063390016555786, 0.06686920672655106, -0.2878914177417755, -0.45565807819366455, 0.042892616242170334, 0.12869887053966522, 0.2520889639854431, 0.24923937022686005, -0.00010378091974416748, -0.21612045168876648, 0.05360007286071777, -0.09130857139825821, -0.07427693903446198, -0.07272118330001831, -0.1487201750278473, -0.4849984645843506, -0.024138126522302628, -0.10061577707529068, -0.22367139160633087, 0.2096850574016571, 0.06093418970704079, -0.23311525583267212, 0.0375487245619297, 0.29610344767570496, 0.2434537410736084, -0.01234421506524086, -0.002055916003882885, -0.1590741127729416, 0.42607381939888, 0.321122944355011, -0.32572829723358154, 0.03708391636610031, 0.6237725615501404, 0.06636866182088852, -0.0005359515780583024, 0.3617646098136902, -0.24382805824279785, -0.02470339648425579, 0.17561645805835724, 0.20015616714954376, -0.21939809620380402, -0.44644713401794434, 0.07153541594743729, 0.39739441871643066, 0.6543508172035217, -0.2877070903778076, -0.39104005694389343, -0.3127829432487488, 0.13662241399288177, -0.07917269319295883, -0.09944852441549301, 0.19545751810073853, 0.039840131998062134, 0.22651143372058868, -0.04924727976322174, -0.2457198053598404, -0.14704665541648865, 0.27013278007507324, 0.3945717215538025, 0.05684610828757286, -0.03707774356007576, -0.17751023173332214, -0.00036066610482521355, 0.1798851042985916, 0.17665791511535645, -0.2836073338985443, 0.13418589532375336, -0.017796004191040993, -0.2663387060165405, -0.17735812067985535, -0.05412141606211662, -0.019315332174301147, -0.08409664034843445, 0.08448060601949692, -0.24513064324855804, 0.10303929448127747, -0.05861940234899521, -0.04881618544459343, -0.017619173973798752, -0.03820556029677391, 0.2564459443092346, 0.3307933807373047, 0.05107811465859413, -0.35285720229148865, 0.12010282278060913, 0.005009880289435387, -0.16315355896949768, 0.1350768804550171, -0.06594912707805634, 0.04187363013625145, -0.21241123974323273, -0.18092580139636993, 0.03817975893616676, -0.14143238961696625, -0.0032427168916910887, -0.05558624863624573, -0.253817081451416, -0.016553720459342003, 0.06612025201320648, 0.11619137227535248, -0.14127463102340698, 0.2230420857667923, -0.019348882138729095, -0.42360395193099976, -0.12520146369934082, 0.09798664599657059, -0.16027003526687622, 0.15288707613945007, 0.5480712056159973, -0.2299818992614746, 0.115524061024189, -0.2185688316822052, -0.2966977655887604, 0.15941239893436432, -0.15561914443969727, -0.06107416749000549, 0.08526880294084549, 0.20597128570079803, -0.1045294776558876, 0.12818309664726257, 0.1077970489859581, 0.0212762039154768, -0.20464110374450684, 0.1557880938053131, -0.038562238216400146, -0.31108152866363525, -0.3726726770401001, 0.21381545066833496, -0.10059157013893127, -0.48642247915267944, -0.1874147653579712, 0.5722737312316895, -0.023689117282629013, -0.031017232686281204, 0.22050726413726807, -0.010325200855731964, -0.15188086032867432, -0.19023741781711578, 0.011647019535303116, 0.430813193321228, -0.4707912802696228, -0.2307441681623459, -0.3453293442726135, 0.02351643703877926, 0.03368585556745529, 0.2410043179988861, -0.09222737699747086, 0.024577820673584938, 0.014025704003870487, 0.16023099422454834, 0.21622762084007263, -0.06870924681425095, -0.2146432101726532, -0.07534913718700409, 0.0846203863620758, -0.19662541151046753, 0.16344064474105835, 0.3142952620983124, 0.24293643236160278, 0.013258499093353748, -0.155618816614151, 0.1721234768629074, -0.22835075855255127, -0.033617470413446426, -0.1966409534215927, -0.13640685379505157, 0.14650318026542664, 0.39856410026550293, 0.4805237054824829, -0.1305697113275528, 0.06893959641456604, -0.3062625825405121, -0.03554064407944679, 0.10581421852111816, 0.27449944615364075, 0.16417305171489716, 0.2053438276052475, 0.27147072553634644, 0.10241163522005081, -0.4187617003917694, -0.21456605195999146, 0.05501169338822365, 0.3147018253803253, 0.4139362871646881, 0.0726572722196579, -0.12198884785175323, -0.13172680139541626, -0.19137831032276154, 0.08340571075677872, -0.04760799929499626, 0.13724923133850098, -0.17881277203559875, 0.1703273504972458, 0.10936340689659119, -0.26580554246902466, 0.2994687557220459, -0.2152721881866455, 0.4264625608921051, 0.21257805824279785, 0.37596505880355835, -0.09185630083084106, -0.1134922131896019, 0.17906460165977478, 0.34668079018592834, -0.06834977120161057, -0.05616374686360359, 0.03135043382644653, 0.1406044363975525, -0.21346327662467957, -0.05849619209766388, 0.26697343587875366, 0.36606720089912415, 0.3261842131614685, -0.5137336850166321, 0.17031221091747284, -0.07948943227529526, 0.07165388762950897, -0.17601805925369263, 0.044997211545705795, 0.18914422392845154, 0.036713313311338425, 0.14468353986740112, 0.005856030620634556, 0.11481224000453949, -0.10649438202381134, -0.08207628130912781, -0.002708607818931341, 0.11027023941278458, 0.3042795956134796, -0.23446498811244965, 0.3341110050678253, 0.009560689330101013, -0.07752694189548492, 0.27984926104545593, 0.1818884164094925, -0.019201355054974556, 0.251885324716568, 0.21472609043121338, -0.5472897291183472, -0.005712833255529404, 0.03215198218822479, 0.2584819793701172, 0.3475610017776489, 0.5090732574462891, -0.049045857042074203, -0.14782480895519257, 0.0817447155714035, -0.31041839718818665, 0.07611755281686783, 0.3464793562889099, -0.03183697536587715, -0.0022074049338698387, 0.26863396167755127, 0.1926964670419693, -0.249173104763031, 0.02678113430738449, 0.08851002901792526, -0.04707641899585724, -0.021007955074310303, -0.1603132039308548, -0.049350298941135406, -0.48775550723075867, 0.012579752132296562, 0.06612156331539154, -0.10527223348617554, -0.24379725754261017, 0.2872219681739807, -0.31433364748954773, 0.02838444709777832, 0.0965956449508667, -0.1657504141330719, 0.4271810054779053, -0.25226715207099915, 0.07500895857810974, -0.055790115147829056, -0.17064166069030762, -0.2362038940191269, 0.23602965474128723, 0.03352084383368492, 0.08945070207118988, 0.4961579740047455, -0.09150727093219757, 0.30373620986938477, -0.2775152623653412, -0.5079553723335266, 0.060996539890766144, -0.2328941971063614, -0.00415240740403533, -0.017150267958641052, -0.1594962775707245, 0.13566558063030243, -0.21406084299087524, 0.026610199362039566, -0.22833672165870667, -0.08277543634176254, -0.004148607607930899, -0.24525971710681915, -0.2524433434009552, -0.13030071556568146, -0.6571199893951416, -0.5468479990959167, -0.10746967792510986, 0.16121070086956024, -0.08746430277824402, -0.000549833697732538, 0.13167200982570648, -0.18740630149841309, 0.02377130091190338, -0.2829130291938782, 0.06466080248355865, -0.06922025233507156, -0.2697475850582123, 0.12880627810955048, -0.1303967982530594, -0.266611784696579, -0.0889950767159462, -0.07919656485319138, -0.16333752870559692, -0.19462938606739044, -0.45641323924064636, -0.032709814608097076, -0.35553407669067383, 0.14560949802398682, 0.13291341066360474, 0.024439819157123566, 0.4918685853481293, 0.24386894702911377, -0.13843917846679688, 0.029155854135751724, -0.22491499781608582, 0.07850707322359085, 0.08406161516904831, 0.20124855637550354, -0.27555033564567566, 0.15827560424804688, 0.2967655658721924, 0.4924668073654175, 0.040080856531858444, -0.10157471150159836, 0.12745723128318787, 0.18243475258350372, 0.3775155246257782, -0.014698397368192673, -0.4498077929019928, 0.2699252963066101, -0.21190793812274933, 0.27260494232177734, 0.30296653509140015, 0.32417139410972595, -0.2568630278110504, -0.20551611483097076, 0.13341642916202545, -0.25365471839904785, -0.16150657832622528, 0.1577550619840622, -0.06274484843015671, 0.23493647575378418, 0.01846455968916416, -0.20192214846611023, -0.2235524207353592, -0.4408804178237915, -0.0064142197370529175, 0.27075785398483276, 0.2093396633863449, -0.046463947743177414, -0.6493402123451233, 0.043454136699438095, -0.4677715003490448, 0.13048207759857178, 0.2208278924226761, -0.10849828273057938, -0.19144605100154877, 0.1372615396976471, -0.09094638377428055, 0.4632475972175598, 0.10118933022022247, -0.5415428280830383, -0.31697946786880493, 0.27831795811653137, 0.07710720598697662, -0.20585541427135468, 0.06434985995292664, -0.43111634254455566, -0.13187642395496368, 0.42791488766670227, 0.011095993220806122, -0.011673401109874249, -0.06308267265558243, 0.5058277249336243, -0.04207916185259819, 0.04555045813322067, -0.31594225764274597, 0.30450889468193054, 0.18050381541252136, -0.22316917777061462, -0.18217675387859344, 0.14213117957115173, 0.03411342203617096, -0.0992966890335083, -0.015780912712216377, 0.22137172520160675, -0.14035029709339142, 0.3071538507938385, -0.3063744902610779, -0.216112419962883, 0.15172845125198364, 0.24392294883728027, 0.10349751263856888, 0.029699089005589485, 0.061758458614349365, 0.5007278323173523, -0.2855721116065979, -0.3765994608402252, 0.0341978557407856, -0.1609441041946411, 0.5179300308227539, 0.191165491938591, 0.26093149185180664, 0.26779505610466003, -0.20975977182388306, -0.13872642815113068, -0.09052038937807083, 0.2293335199356079, 0.09155115485191345, 0.006189760286360979, -0.4028663635253906, -0.17469117045402527, 0.3463866710662842, -0.07902687042951584, -0.06709731370210648, -0.08855213969945908, 0.3795878291130066, -0.2153225839138031, 0.1644381582736969, -0.27582624554634094, 0.9699503183364868, -0.12102963030338287, 0.07566329091787338, -0.3877989947795868, -0.11190859973430634, 0.5903331637382507, -0.2048414647579193, 0.06017187982797623, -0.033594194799661636, -0.34516578912734985, -0.02550983428955078, -0.0025066996458917856, 0.024228833615779877, 0.39622485637664795, 0.029065359383821487, 0.3269210457801819, 0.2837750017642975, 0.2704974412918091, 0.08831401914358139, 0.2414005696773529, 0.1021609827876091, -0.3811483681201935, 0.1328645944595337, 0.23284246027469635, 0.0009432123624719679, 0.34189119935035706, 0.029666898772120476, 0.0648418515920639, -0.12406881153583527, 0.10123300552368164, -0.7577837109565735, -0.21394185721874237, -0.35071617364883423, 0.043620362877845764, 0.05028507858514786, -0.2678445279598236, 0.44612258672714233, 0.20375892519950867, 0.5095022916793823, 0.16255661845207214, -0.24271607398986816, -0.0011158298002555966, -0.08168745785951614, -0.20739926397800446, 0.20162826776504517, -0.05139957740902901, 0.2647676467895508, 0.004798594396561384, -0.18633969128131866, 0.17511343955993652, 0.038805145770311356, -0.31614089012145996, -0.4412826895713806, -0.3561672866344452, 0.23355208337306976, -0.3172682523727417, 0.2348843514919281, 0.20592661201953888, 0.01668797992169857, -0.30142709612846375, 0.1950974464416504, 0.28351250290870667, 0.28655320405960083, 0.1362299621105194, 0.09219610691070557, -0.057964954525232315, -0.38244640827178955, 0.2452121526002884, 0.0822053849697113, -0.1998981386423111, 0.2826632559299469, 0.4651036262512207, -0.19683606922626495, -0.22666284441947937, 0.10991121083498001, 0.17754529416561127, -0.29841822385787964, -0.038284964859485626, -0.14561080932617188, -0.2014145851135254, 0.11866062134504318, 0.27204540371894836, 0.47479861974716187, -0.20907194912433624, -0.0033031499478965998, -0.12604960799217224, -0.04835272580385208, 0.24552376568317413, -0.06997337192296982, 0.1024826392531395, -0.285511314868927, 0.21133571863174438, 0.11378734558820724, 0.3128366768360138, -0.3668058216571808, 0.1842244565486908, 0.12343131750822067, 0.05765637010335922, 0.48414021730422974, -0.04313131794333458, 0.11868257075548172, -0.25194111466407776, 0.03177972137928009, 0.04431688413023949, 0.020093632861971855, -0.25758466124534607, 0.029140090569853783, 0.11941100656986237, -0.003242632606998086, 0.053121164441108704, 0.07149287313222885, 0.03189218416810036, -0.10858290642499924, -0.01814999058842659, -0.009539259597659111, 0.0798342153429985, -0.029469767585396767, 0.46290385723114014, -0.1698634773492813, -0.143387109041214, 0.12547920644283295, 0.16807830333709717, -0.39474180340766907, 0.3452172577381134, 0.2613273859024048, 0.0968921035528183, 0.4265042245388031, 0.08204012364149094, -0.13907335698604584, 0.12009637802839279, 0.12774939835071564, -0.08184909075498581, 0.49498891830444336, -0.10909527540206909, 0.1605895608663559, 0.42234712839126587, 0.13409188389778137, -0.38088592886924744, -0.10471896827220917, 0.14542646706104279, 0.005387917626649141, 0.2655996084213257, -0.3391370475292206, -0.12234124541282654, -0.04751414433121681, 0.19037720561027527, 0.15693458914756775, 0.1819956749677658, 0.3001346290111542, 0.15198415517807007, 0.22741703689098358, 0.11670282483100891, 0.5631715059280396, -0.03465264290571213, 0.28367236256599426, -0.08697643876075745, 0.20644569396972656, -0.13563457131385803, 0.22073745727539062, -0.06610677391290665, -0.028375037014484406, 0.09886452555656433, 0.06609009951353073, 0.411575585603714, 0.029608668759465218, 0.1415604054927826, 0.46030330657958984, -0.03877296298742294, 0.3335840702056885, 0.2953755855560303, -0.06430014967918396, 0.11790117621421814, -0.08990862965583801, 0.4574871063232422, -0.2523856461048126, 0.006330147851258516, -0.06773091107606888, 0.05250817909836769, -0.046950556337833405, -0.0037049809470772743, 0.1858675479888916, -0.21913863718509674, -0.07526344060897827, -0.16282904148101807, -0.29394611716270447, -0.34847694635391235, 0.40314382314682007, -0.01795319840312004, -0.14549772441387177, -0.547856330871582, 0.021493833512067795, 0.09409437328577042, 0.3775739371776581, -0.13770467042922974, 0.03901699557900429, 0.006505862344056368, -0.22972634434700012, 0.2765108644962311, 0.644101619720459, 0.17414557933807373, -0.20209139585494995, -0.05577148497104645, -0.000270833756076172, -0.20831778645515442, -0.19255846738815308, 0.181153804063797, 0.2652169466018677, 0.29104724526405334, 0.052915818989276886, 0.005972199607640505, 0.16646260023117065, -0.09090428054332733, -0.0215366929769516, 0.0012131432304158807, -0.002770893042907119, -0.3021704852581024, 0.20895099639892578, 0.08201432228088379, -0.2682291269302368, -0.1788056492805481, 0.0007871011621318758, -0.30889061093330383, -0.1856471449136734, 0.4646790325641632, -0.19916002452373505, 0.0024086497724056244, -0.17074421048164368, 0.12474328279495239, -0.11564899981021881, 0.2756520211696625, 0.3615756630897522, -0.12050127238035202, -0.20040929317474365, -0.17133477330207825, -0.045723285526037216, -0.24279800057411194, 0.13643965125083923, 0.12315592914819717, -0.22471435368061066, 0.04334035515785217, 0.2629946768283844, 0.20888355374336243, -0.2679114043712616, 0.0609809048473835, -0.12021946907043457, -0.10374625027179718, -0.5572152733802795, -0.021399490535259247, 0.2087283432483673, 0.1916581243276596, 0.0820419192314148, 0.05175548791885376, -0.03534277155995369, 0.004904039669781923, 0.022393666207790375, -0.29967808723449707, 0.19438336789608002, 0.2767236530780792, 0.023052753880620003, 0.20548821985721588, 0.03346641734242439, 0.42712637782096863, -0.0015181017806753516, -0.07686129212379456, -0.08707726746797562, -0.4335411787033081, -0.12517918646335602, 0.28288668394088745, 0.03042357787489891, 0.3439723253250122, -0.3293582499027252, -0.26670414209365845, 0.28546032309532166, 0.02757856994867325, 0.08401620388031006, 0.08231617510318756, -0.5688413381576538, -0.012240475974977016, 0.025842631235718727, -0.06362404674291611, 0.16424158215522766, -0.014525779522955418, 0.0040571428835392, -0.15388555824756622, -0.10458406805992126, -0.501950740814209, 0.04920379817485809, -0.09852160513401031, 0.13410434126853943, -0.23969818651676178, 0.1752554327249527, 0.5417264103889465, 0.25224265456199646, -0.6720553636550903, -0.11780637502670288, 0.47837916016578674, -0.04412657395005226, -0.06494706869125366, 0.5287405252456665, 0.2061232477426529, -0.011946497485041618, -0.09302666038274765, 0.2641492486000061, -0.15955699980258942, -0.21624791622161865, -0.1624889075756073, -0.26239871978759766 ]
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.14583483338356018, 0.06585246324539185, -0.14814119040966034, 0.19024530053138733, 0.3451893925666809, 0.3538248538970947, 0.13700351119041443, 0.07377948611974716, -0.12206227332353592, -0.039434995502233505, -0.2502007484436035, 0.2587280869483948, -0.1631074696779251, 0.4211385250091553, 0.08991923928260803, -0.1647980958223343, -0.02279505506157875, -0.0886516198515892, 0.13598400354385376, -0.14301763474941254, -0.12499892711639404, 0.10280708223581314, -0.09122812747955322, -0.22702446579933167, -0.17923825979232788, -0.36462336778640747, -0.16028009355068207, -0.10303561389446259, -0.3790992498397827, -0.36905741691589355, 0.33591750264167786, 0.17740073800086975, 0.23734338581562042, 0.15003003180027008, -0.00010781933087855577, -0.3248600959777832, 0.00036075006937608123, -0.11979594081640244, -0.3088076710700989, -0.1295689344406128, -0.10393436998128891, -0.5073526501655579, -0.0890803262591362, -0.2598693072795868, 0.09105576574802399, -0.03546452894806862, 0.04959387704730034, -0.24754461646080017, -0.06020084396004677, 0.294946551322937, 0.2045823633670807, 0.018529700115323067, 0.07018689066171646, -0.187849223613739, 0.334087073802948, 0.48297104239463806, -0.2553500533103943, 0.01240253821015358, 0.4633089601993561, 0.20706020295619965, 0.18565680086612701, 0.20272955298423767, -0.306448757648468, -0.1065170168876648, 0.27553790807724, 0.11258459836244583, -0.31061387062072754, -0.48562243580818176, 0.17855951189994812, 0.4579695761203766, 0.9703214764595032, -0.4533035457134247, -0.5060069561004639, -0.3497487008571625, 0.23750413954257965, -0.15254011750221252, -0.31294938921928406, 0.5556718707084656, -0.07849152386188507, 0.0007059854106046259, -0.1585119217634201, -0.4362519681453705, -0.15333452820777893, 0.16653810441493988, 0.23627324402332306, 0.3287394642829895, 0.07040337473154068, -0.24365387856960297, 0.08117572963237762, -0.016267169266939163, 0.5947264432907104, -0.3934556245803833, 0.13033269345760345, 0.03367917984724045, -0.21747887134552002, -0.20101988315582275, -0.10593486577272415, -0.04210871085524559, 0.062215354293584824, 0.08639965951442719, 0.0007822716142982244, 0.19404344260692596, -0.1398468315601349, -0.16955244541168213, 0.012207499705255032, 0.02010181173682213, 0.27671632170677185, 0.33686989545822144, 0.05309884622693062, -0.04739268496632576, 0.2718043625354767, 0.02264539524912834, -0.300870418548584, 0.1779802292585373, -0.09279593080282211, 0.009504526853561401, -0.21581096947193146, -0.16671042144298553, -0.13362275063991547, -0.2264619767665863, -0.14380355179309845, -0.09317323565483093, -0.2892288267612457, 0.12149735540151596, -0.1194739043712616, 0.0921548455953598, -0.08709799498319626, 0.2747786045074463, -0.10701495409011841, -0.3732476234436035, -0.06368713825941086, 0.10159657150506973, 0.21234308183193207, 0.012509917840361595, 0.388656884431839, -0.30781111121177673, 0.29038381576538086, -0.2664628326892853, -0.05881892144680023, 0.06810757517814636, 0.0345645397901535, 0.055917948484420776, -0.3313588798046112, 0.1262032836675644, 0.08969104290008545, 0.019818054512143135, -0.06115395575761795, 0.06459489464759827, -0.23711444437503815, 0.22978952527046204, -0.007401511073112488, -0.249455064535141, -0.10837243497371674, 0.18983815610408783, -0.046604711562395096, -0.6931464076042175, -0.34463101625442505, 0.4325673580169678, -0.02158641628921032, -0.09978829324245453, 0.1143113449215889, 0.015120861120522022, -0.0687839612364769, -0.2183513045310974, 0.02210054360330105, 0.48782068490982056, -0.4603775143623352, -0.25058886408805847, -0.24308288097381592, 0.05433374643325806, 0.09918125718832016, 0.007048625964671373, -0.09710609167814255, 0.3354072868824005, 0.036729685962200165, 0.028971431776881218, 0.4266471862792969, -0.15613974630832672, -0.23349234461784363, 0.0047493367455899715, -0.02748830057680607, -0.1572904884815216, 0.15424390137195587, 0.4053138494491577, 0.05407596752047539, 0.09547893702983856, -0.1891801953315735, 0.2154071182012558, -0.14702823758125305, -0.06363747268915176, -0.031103480607271194, -0.21043965220451355, 0.18877974152565002, 0.45336011052131653, 0.5115641951560974, -0.14179058372974396, 0.11268044263124466, -0.07896984368562698, 0.20472748577594757, -0.0264046099036932, 0.1127467006444931, 0.10848352313041687, 0.1476399153470993, 0.24819014966487885, 0.051946766674518585, -0.1844954639673233, -0.35358938574790955, 0.18822915852069855, 0.11953213065862656, 0.17985562980175018, -0.197639599442482, -0.2929627597332001, -0.17325136065483093, -0.01841987669467926, -0.05985923856496811, 0.03437545895576477, 0.06650835275650024, -0.1729310303926468, 0.24593059718608856, 0.20498009026050568, -0.06968028843402863, 0.2434430569410324, -0.2629663646221161, 0.3557042181491852, -0.019128840416669846, 0.17653745412826538, 0.032424189150333405, 0.16759571433067322, 0.15690197050571442, 0.18113352358341217, 0.03046223521232605, 0.019696179777383804, 0.06717132031917572, 0.07948463410139084, -0.028823787346482277, 0.20574544370174408, 0.3982347249984741, 0.24095852673053741, 0.32699480652809143, -0.3789920508861542, 0.30361729860305786, 0.0010744971223175526, 0.15227922797203064, -0.1356869488954544, -0.26889264583587646, 0.3572216033935547, 0.07511929422616959, 0.08569478988647461, 0.03383178263902664, 0.1737852543592453, 0.08152252435684204, 0.18410524725914001, 0.20522238314151764, 0.1305985450744629, 0.2918303310871124, -0.20308436453342438, 0.3116684556007385, -0.21332253515720367, -0.2172531634569168, 0.3556894063949585, 0.11851460486650467, -0.1999644637107849, 0.19661082327365875, 0.1007307693362236, -0.3290804922580719, 0.051009394228458405, 0.16070963442325592, 0.17276692390441895, 0.14201860129833221, 0.43804314732551575, -0.007387788034975529, -0.07231265306472778, 0.10960520803928375, -0.2723275125026703, 0.07231063395738602, 0.3957447111606598, 0.11489199101924896, 0.023093396797776222, 0.21493452787399292, 0.10845831781625748, -0.21099767088890076, -0.07604309171438217, 0.17192815244197845, -0.009492339566349983, -0.005125521682202816, -0.10179048031568527, -0.0998300164937973, -0.32856521010398865, -0.11002876609563828, 0.1521979570388794, 0.03317867964506149, -0.35798385739326477, 0.1127658486366272, -0.18802160024642944, 0.02099558338522911, -0.07254474610090256, -0.37036728858947754, 0.5109133124351501, -0.2676706612110138, -0.16538897156715393, -0.036897413432598114, -0.30928945541381836, -0.18580932915210724, 0.19643744826316833, 0.2492019683122635, -0.0065032304264605045, 0.4684089124202728, -0.12052416801452637, 0.4063919186592102, -0.4003464877605438, -0.454933226108551, -0.07113166898488998, -0.04020480439066887, -0.14958883821964264, -0.094770647585392, 0.003990440163761377, -0.053905896842479706, -0.18788379430770874, -0.14216949045658112, -0.057722438126802444, -0.19583851099014282, -0.0704629048705101, -0.05502390116453171, -0.30588316917419434, 0.01884031482040882, -0.7203146815299988, -0.5714179277420044, -0.08598189055919647, 0.12437498569488525, 0.07098039984703064, 0.02168389968574047, 0.019950050860643387, -0.08577767759561539, 0.02221217192709446, -0.12089472264051437, 0.17384399473667145, 0.11740174144506454, -0.02952934429049492, 0.2599436938762665, -0.06516019254922867, -0.33585822582244873, 0.05615052208304405, -0.05895671993494034, -0.15283235907554626, 0.1433834284543991, -0.6533874869346619, 0.2787918746471405, -0.15938210487365723, 0.25070804357528687, 0.09158168733119965, 0.009420421905815601, 0.3900661766529083, 0.3259738087654114, -0.004684037528932095, 0.04814895987510681, -0.20042474567890167, -0.06643995642662048, 0.018632730469107628, 0.18814341723918915, -0.25809618830680847, 0.14790788292884827, 0.23308396339416504, 0.7644213438034058, 0.10046333819627762, -0.039600178599357605, 0.004106653388589621, 0.10006513446569443, 0.2880668342113495, 0.174134761095047, -0.3623054623603821, 0.0765024796128273, -0.2538991868495941, 0.19478797912597656, 0.24857832491397858, 0.23293806612491608, -0.41748327016830444, -0.37614819407463074, 0.0852971151471138, -0.39850854873657227, -0.05931843817234039, 0.020070329308509827, -0.15718097984790802, 0.250010222196579, 0.15690138936042786, 0.19804614782333374, -0.3067076802253723, -0.38297298550605774, -0.007611134555190802, 0.09504295140504837, 0.04032362625002861, -0.0855693444609642, -0.6600489616394043, 0.08521142601966858, -0.45467305183410645, 0.35003119707107544, 0.2858998477458954, -0.013933515176177025, 0.022856559604406357, 0.09687358140945435, -0.012957881204783916, 0.10422004759311676, 0.3377256989479065, -0.41769805550575256, -0.14634782075881958, 0.10854767262935638, 0.1544068455696106, -0.2899884581565857, 0.0166512168943882, -0.4218192994594574, 0.012044357135891914, 0.17635278403759003, -0.10672321170568466, -0.13697707653045654, 0.12083109468221664, 0.11744235455989838, 0.09534328430891037, -0.12754343450069427, -0.13100606203079224, 0.2609820067882538, -0.19218136370182037, -0.24750226736068726, -0.10671791434288025, -0.19154253602027893, 0.13510949909687042, -0.22064490616321564, 0.11198721826076508, 0.08711382001638412, 0.10212774574756622, 0.2077431082725525, -0.388296902179718, -0.15464265644550323, 0.3388715386390686, 0.21463149785995483, -0.02035338431596756, -0.09088151901960373, 0.2794806659221649, 0.7352374792098999, -0.24953773617744446, -0.6877534985542297, -0.20332178473472595, -0.05933801084756851, 0.37132978439331055, 0.286670982837677, 0.31063753366470337, 0.17817342281341553, 0.045267898589372635, -0.18206042051315308, -0.0866231769323349, 0.2527275085449219, 0.1468857079744339, -0.2068835198879242, -0.4491497278213501, -0.45113611221313477, 0.47687992453575134, -0.046829961240291595, -0.0066020796075463295, -0.03082592785358429, 0.0884350836277008, -0.18579638004302979, 0.07967349886894226, 0.03347960487008095, 0.8832517862319946, -0.09655193984508514, 0.12069490551948547, -0.2108292579650879, -0.23979204893112183, 0.6575300693511963, -0.36936476826667786, 0.1451694369316101, -0.031965550035238266, -0.10785916447639465, -0.15839897096157074, -0.005764927715063095, -0.06604732573032379, 0.2764969766139984, 0.09864191710948944, 0.25455108284950256, 0.17504411935806274, 0.2646404504776001, 0.18892839550971985, 0.26767078042030334, -0.2133774757385254, -0.32118865847587585, -0.02178039588034153, 0.20729704201221466, -0.04504616931080818, 0.34666842222213745, -0.06016630306839943, -0.04049794748425484, -0.2185213416814804, 0.07406317442655563, -0.6114404797554016, 0.05032370612025261, -0.11135613918304443, 0.25927799940109253, -0.16817517578601837, -0.31322041153907776, 0.31157851219177246, 0.39599376916885376, 0.47400030493736267, 0.15455535054206848, -0.27811500430107117, 0.03387849032878876, -0.16778889298439026, -0.2845947742462158, 0.26854002475738525, -0.11717694252729416, 0.20700417459011078, -0.09162945300340652, -0.1466667205095291, 0.1773546189069748, 0.010285958647727966, -0.09363152086734772, -0.27077966928482056, -0.28124937415122986, 0.027840526774525642, -0.2544701099395752, 0.07185804098844528, 0.21992754936218262, 0.06074537709355354, -0.2442297786474228, 0.11580132693052292, 0.27204379439353943, 0.31262388825416565, 0.14927314221858978, 0.13114528357982635, 0.04266324266791344, -0.4036286771297455, 0.3365066945552826, 0.053792305290699005, -0.2013223022222519, 0.3659549057483673, 0.3573595881462097, -0.22911421954631805, -0.1734786182641983, 0.2591618597507477, -0.015189525671303272, -0.2552025616168976, -0.062483273446559906, -0.1510736346244812, 0.12754513323307037, -0.0006346931331790984, 0.2954428195953369, 0.3267211616039276, -0.24497278034687042, 0.0683487057685852, -0.26706188917160034, -0.04568755626678467, 0.35288673639297485, -0.026361392810940742, 0.16159208118915558, -0.056849051266908646, -0.007058425340801477, 0.06373897939920425, 0.16840042173862457, -0.29512661695480347, 0.2014485001564026, 0.04570974037051201, -0.12951457500457764, 0.16845498979091644, 0.19049043953418732, -0.07367006689310074, -0.1628781408071518, -0.030905839055776596, 0.0137711763381958, -0.14151804149150848, -0.15435966849327087, 0.0864759162068367, 0.15614990890026093, 0.0004627533198799938, 0.061599452048540115, -0.005431783851236105, -0.19918358325958252, -0.19874390959739685, -0.028010165318846703, -0.040110938251018524, 0.07993173599243164, -0.03888098895549774, 0.2800903022289276, -0.051855526864528656, 0.22268569469451904, -0.1991787999868393, 0.1217428520321846, -0.2136317640542984, 0.16858719289302826, 0.3860096037387848, 0.19738177955150604, 0.41794106364250183, 0.14221395552158356, 0.02350110560655594, 0.09754353016614914, 0.2849409878253937, -0.23507942259311676, 0.6867842078208923, -0.2889360189437866, 0.2592447102069855, 0.3534524440765381, 0.08124101161956787, 0.08529206365346909, -0.18682630360126495, 0.2281639128923416, 0.23422661423683167, 0.18566852807998657, -0.5083345770835876, -0.3514139950275421, -0.011729578487575054, 0.21544501185417175, -0.0015335206408053637, 0.1440446525812149, 0.32215890288352966, 0.051477525383234024, 0.1890985071659088, 0.1879584938287735, 0.4547481834888458, -0.07680059224367142, 0.47844982147216797, 0.20178739726543427, 0.13571897149085999, -0.05429689586162567, 0.11972194164991379, 0.2849608063697815, -0.0193884689360857, 0.21181949973106384, -0.06868485361337662, 0.5396165251731873, -0.16896267235279083, 0.11560897529125214, 0.3625093102455139, -0.43598681688308716, 0.3034897446632385, 0.21836641430854797, -0.06312456727027893, 0.17796169221401215, 0.01346532627940178, 0.33446553349494934, -0.22600239515304565, 0.07423855364322662, -0.27067992091178894, 0.02309361658990383, -0.07547876238822937, 0.11158992350101471, -0.025819949805736542, -0.4800797998905182, 0.1415524035692215, 0.05421677976846695, -0.0710732713341713, -0.6137166023254395, 0.009859837591648102, -0.17220240831375122, -0.1956639438867569, -0.4460476338863373, 0.12653297185897827, 0.04758305847644806, 0.4512726366519928, -0.2456585019826889, -0.21586260199546814, 0.22883369028568268, -0.29076072573661804, 0.031813859939575195, 0.45910966396331787, 0.21727007627487183, -0.05188169330358505, -0.15365949273109436, 0.04962489753961563, -0.08339861780405045, -0.15021981298923492, 0.2596852481365204, 0.35014399886131287, 0.3649345934391022, -0.030964218080043793, 0.22397612035274506, 0.10642533004283905, -0.07729022204875946, 0.22089385986328125, 0.20147868990898132, 0.06583987921476364, -0.2684996724128723, 0.1456180065870285, -0.009703626856207848, -0.21281883120536804, -0.13921993970870972, 0.0354052372276783, -0.2620570659637451, -0.11739446967840195, 0.3134700655937195, -0.048290759325027466, 0.03534898906946182, -0.1118345558643341, 0.10489510744810104, -0.043328478932380676, 0.3734111189842224, 0.3794986605644226, 0.04987402632832527, -0.1925768256187439, -0.014401325024664402, -0.148394376039505, -0.25927695631980896, 0.10287165641784668, 0.05088997632265091, -0.1302160620689392, -0.0016709902556613088, 0.2697881758213043, 0.24774067103862762, -0.35339513421058655, 0.024153709411621094, 0.23776808381080627, 0.13355934619903564, -0.531668484210968, -0.15698747336864471, 0.333262175321579, 0.08517556637525558, 0.02342047169804573, -0.04452301934361458, 0.02235574834048748, -0.2352220118045807, -0.0853210911154747, -0.2908896803855896, 0.12213065475225449, 0.161109060049057, -0.05320477858185768, 0.35646846890449524, -0.21694163978099823, 0.5409766435623169, 0.0184228103607893, -0.09581510722637177, -0.14429639279842377, -0.2210027426481247, 0.011172037571668625, 0.2358664870262146, 0.1549035608768463, 0.2718770503997803, -0.3232608735561371, -0.114345483481884, 0.3595905005931854, -0.02220139279961586, 0.14693182706832886, 0.060366250574588776, -0.4647151529788971, -0.13301384449005127, -0.25707119703292847, -0.13777859508991241, 0.2574695646762848, 0.0037061923649162054, -0.04551120102405548, -0.21483007073402405, -0.11554964631795883, -0.38640671968460083, 0.19260595738887787, 0.08640573173761368, 0.12661835551261902, -0.2853853404521942, -0.009645681828260422, 0.3591623306274414, 0.2550024092197418, -0.47400158643722534, 0.22040468454360962, 0.4707939922809601, -0.19230999052524567, 0.12094694375991821, 0.44551610946655273, -0.007617824710905552, -0.11220616102218628, -0.15211188793182373, 0.5035298466682434, -0.29343944787979126, -0.22721126675605774, -0.25975170731544495, -0.2480328530073166 ]
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.036327045410871506, 0.12081839889287949, -0.16710256040096283, 0.24904870986938477, 0.2784866392612457, 0.21744196116924286, 0.29182660579681396, 0.05867670103907585, -0.06941979378461838, 0.08942048996686935, -0.07498714327812195, 0.24293731153011322, -0.22165179252624512, 0.18729785084724426, 0.10754348337650299, -0.267497181892395, -0.002441606018692255, -0.06455689668655396, -0.05856458470225334, -0.19496679306030273, -0.11614881455898285, 0.2323864847421646, -0.10210671275854111, -0.2988000810146332, -0.3894093334674835, -0.11884425580501556, -0.1741248518228531, 0.20310711860656738, -0.3696795105934143, -0.5515013337135315, 0.07106579840183258, 0.11087175458669662, 0.24461419880390167, 0.30442339181900024, -0.00010049598495243117, -0.28662368655204773, 0.12905243039131165, -0.09620596468448639, -0.2718329131603241, -0.15483252704143524, -0.13984300196170807, -0.5224167704582214, -0.0034974690061062574, -0.17028316855430603, -0.06465483456850052, 0.09606195986270905, -0.010226316750049591, -0.1524551957845688, 0.02334076724946499, 0.37460461258888245, 0.2843892276287079, 0.004537562374025583, -0.009125793352723122, -0.3068843185901642, 0.39880794286727905, 0.34931492805480957, -0.2872607111930847, 0.03626858443021774, 0.6251104474067688, 0.12980206310749054, -0.05958293378353119, 0.37329399585723877, -0.2840687930583954, -0.07561548054218292, 0.18470987677574158, 0.17109838128089905, -0.06335096061229706, -0.4465401768684387, 0.15367543697357178, 0.36278465390205383, 0.8537474274635315, -0.3193743824958801, -0.2965324819087982, -0.37291139364242554, 0.1825646311044693, -0.21853990852832794, -0.018479881808161736, 0.1393240988254547, -0.06816185265779495, 0.07161428034305573, -0.042628075927495956, -0.2444666475057602, -0.14983056485652924, 0.21601839363574982, 0.040243782103061676, 0.32086291909217834, -0.03041502833366394, -0.3652466833591461, 0.09091451019048691, 0.1313057243824005, 0.42766833305358887, -0.25415048003196716, 0.059930652379989624, -0.0015200786292552948, -0.24559015035629272, -0.17044778168201447, -0.0023830218706279993, -0.1185171976685524, -0.025597216561436653, 0.11502804607152939, -0.1519060730934143, 0.10149186849594116, -0.1292257308959961, -0.1060265526175499, -0.012524480931460857, 0.11419772356748581, 0.1958247721195221, 0.3053244948387146, 0.14757207036018372, -0.09881368279457092, 0.1847093254327774, 0.04579517990350723, -0.233681321144104, 0.13585712015628815, -0.03573383390903473, 0.09522354602813721, -0.28318262100219727, -0.08481118083000183, -0.03232695907354355, -0.05172712355852127, -0.04958871006965637, -0.16342604160308838, -0.2022053301334381, 0.11179620027542114, -0.023402098566293716, 0.17283259332180023, -0.1526251584291458, 0.22246254980564117, 0.0433589369058609, -0.36064770817756653, -0.13834215700626373, -0.027421222999691963, -0.09172671288251877, -0.0014239955926313996, 0.5291513800621033, -0.14429688453674316, 0.2326456904411316, -0.2287691831588745, -0.1358250379562378, 0.16414448618888855, -0.022633815184235573, 0.037894073873758316, -0.014548621140420437, 0.25729092955589294, -0.006130243185907602, 0.13315977156162262, 0.03365457057952881, -0.06733926385641098, -0.2038239985704422, 0.2830095887184143, 0.04367033764719963, -0.3164168894290924, -0.29343903064727783, 0.2884789705276489, 0.026985514909029007, -0.5546088218688965, -0.17632561922073364, 0.5332195162773132, -0.06579460203647614, -0.09893429279327393, 0.23365618288516998, 0.06199508160352707, 0.019088147208094597, -0.14409476518630981, 0.06258998811244965, 0.37949803471565247, -0.44663262367248535, -0.15560393035411835, -0.3843355178833008, 0.06782028079032898, 0.1779547482728958, 0.13706327974796295, -0.14129763841629028, 0.10380108654499054, 0.006164920516312122, 0.0018525152700021863, 0.35762906074523926, -0.21069101989269257, -0.25974494218826294, -0.09730883687734604, -0.03253168240189552, -0.1417059302330017, 0.22757269442081451, 0.24463903903961182, 0.23049207031726837, 0.0032837362959980965, -0.24204063415527344, 0.15145830810070038, -0.23141397535800934, 0.008874669671058655, -0.1517031341791153, -0.12665797770023346, 0.17388227581977844, 0.46733731031417847, 0.5211063623428345, -0.20390252768993378, 0.09640884399414062, -0.1027057021856308, 0.13007773458957672, 0.0645819753408432, 0.1819978952407837, 0.107851043343544, 0.05024166777729988, 0.2105703353881836, 0.10695689916610718, -0.2524808645248413, -0.3206230401992798, 0.041950780898332596, 0.2923543453216553, 0.4220079183578491, 0.0574042983353138, -0.17725764214992523, -0.20557986199855804, -0.08608187735080719, -0.05944744870066643, -0.1151982843875885, 0.18023571372032166, -0.13732291758060455, 0.07468060404062271, 0.222844198346138, -0.2554362118244171, 0.11960945278406143, -0.26330599188804626, 0.3440309762954712, 0.13843925297260284, 0.1995769590139389, -0.18593692779541016, 0.03859998658299446, 0.11231876909732819, 0.3069334924221039, -0.08189764618873596, 0.013668632134795189, 0.05549805983901024, -0.04579653963446617, -0.10887221246957779, -0.03597650304436684, 0.3803277611732483, 0.34639644622802734, 0.44306680560112, -0.36434176564216614, 0.2564748525619507, 0.016617851331830025, 0.12057295441627502, -0.19629976153373718, -0.15237247943878174, 0.1953105479478836, 0.14513391256332397, 0.11794967204332352, 0.007344060577452183, 0.06828022748231888, 0.031268831342458725, -0.07398491352796555, 0.138814315199852, 0.08838973194360733, 0.30932503938674927, -0.1635051965713501, 0.2068689912557602, -0.022092333063483238, -0.1827760487794876, 0.26879552006721497, 0.2085869163274765, -0.11410139501094818, 0.28835418820381165, 0.18032273650169373, -0.41360965371131897, 0.0028617826756089926, 0.033414412289857864, 0.18175800144672394, 0.16020432114601135, 0.4741149842739105, 0.07152805477380753, -0.12954476475715637, 0.19095352292060852, -0.43968573212623596, 0.057093359529972076, 0.33655717968940735, 0.07794206589460373, 0.19490915536880493, 0.2889699637889862, 0.16097553074359894, -0.2529124617576599, -0.07392168045043945, 0.18693095445632935, -0.06210499629378319, 0.09648775309324265, -0.12289135158061981, -0.14733664691448212, -0.47344136238098145, 0.009839270263910294, -0.031634826213121414, -0.2634121775627136, -0.3572678565979004, 0.23975905776023865, -0.1863236427307129, -0.009732438251376152, 0.10909175872802734, -0.20386160910129547, 0.4440688490867615, -0.30633917450904846, 0.0034321555867791176, -0.14506985247135162, -0.25101563334465027, -0.2677838206291199, 0.2888261675834656, 0.1671510636806488, -0.07613863050937653, 0.45272284746170044, -0.1395818293094635, 0.3039368689060211, -0.2922316789627075, -0.5026999711990356, 0.08186440914869308, -0.10064556449651718, -0.151442289352417, -0.07967263460159302, -0.20380167663097382, 0.055810485035181046, -0.13213728368282318, -0.011788709089159966, -0.10406315326690674, -0.1461094170808792, -0.1323850452899933, -0.15880177915096283, -0.16990439593791962, -0.09050917625427246, -0.6321279406547546, -0.49811485409736633, -0.1765127032995224, -0.020567789673805237, 0.0031171811278909445, 0.03949994221329689, 0.05270267277956009, -0.22938752174377441, -0.03126142919063568, -0.15617887675762177, 0.10620385408401489, -0.0379837304353714, -0.1608324944972992, 0.10608557611703873, -0.1881789267063141, -0.27697834372520447, -0.013944392092525959, -0.09381216764450073, -0.059246599674224854, -0.24405437707901, -0.5775509476661682, 0.011681769974529743, -0.1460656225681305, 0.13505086302757263, 0.08234453201293945, 0.014955887570977211, 0.44600316882133484, 0.3186325430870056, -0.1670175939798355, 0.0728072002530098, -0.18416275084018707, -0.040881674736738205, 0.08713288605213165, 0.303772509098053, -0.328952819108963, 0.11205244064331055, 0.1990930438041687, 0.6252951622009277, -0.07628321647644043, 0.028629090636968613, 0.12774653732776642, 0.14580628275871277, 0.3261949121952057, 0.0009283971739932895, -0.38854971528053284, 0.23923161625862122, -0.15400609374046326, 0.1448470503091812, 0.3402162194252014, 0.24404940009117126, -0.41132673621177673, -0.31004780530929565, 0.005830455105751753, -0.3088419437408447, -0.13920247554779053, 0.24575284123420715, -0.12191325426101685, 0.10207106173038483, 0.07516691833734512, 0.030139164999127388, -0.15494182705879211, -0.4110212028026581, -0.009367682971060276, 0.3312239944934845, 0.07056967914104462, -0.15857526659965515, -0.527267575263977, 0.096719890832901, -0.5372108221054077, 0.10997100174427032, 0.2433336228132248, -0.1414557695388794, -0.141481414437294, 0.0674249678850174, -0.012409689836204052, 0.2497187852859497, 0.23168569803237915, -0.3759276866912842, -0.305752158164978, 0.29443642497062683, 0.029540907591581345, -0.016026942059397697, 0.09800901263952255, -0.4195675849914551, -0.14251425862312317, 0.35077962279319763, -0.2209925651550293, 0.04985630884766579, -0.01490071602165699, 0.3752945065498352, -0.08348864316940308, -0.04218941181898117, -0.2808254659175873, 0.2156100571155548, -0.012106730602681637, -0.3490278124809265, -0.0925702452659607, -0.05545364320278168, 0.11273683607578278, -0.2458268254995346, -0.03818950802087784, 0.2279600352048874, -0.0590565986931324, 0.2579515874385834, -0.21623724699020386, -0.26351311802864075, 0.20187003910541534, 0.13892701268196106, 0.10791400074958801, 0.1332261711359024, 0.3016781210899353, 0.5075217485427856, -0.2157355099916458, -0.3669586777687073, 0.03526361286640167, -0.1764230877161026, 0.4428977966308594, 0.2902790307998657, 0.33328694105148315, 0.2164185792207718, -0.1570170521736145, -0.1707199066877365, -0.11842955648899078, 0.11778874695301056, 0.18137511610984802, -0.10477261990308762, -0.4715120196342468, -0.2676587402820587, 0.4235583245754242, -0.07500593364238739, -0.0745219886302948, -0.036629851907491684, 0.1526159644126892, -0.22588634490966797, 0.09451453387737274, -0.0756775289773941, 0.9857673048973083, -0.05461348965764046, 0.19731467962265015, -0.2663494646549225, -0.04893934726715088, 0.535959780216217, -0.30488133430480957, 0.2788442075252533, -0.11738715320825577, -0.13411614298820496, -0.06231525167822838, 0.03813663497567177, -0.08631254732608795, 0.2807741165161133, 0.057156939059495926, 0.2046218067407608, 0.13231819868087769, 0.23066239058971405, 0.05600760132074356, 0.26298078894615173, -0.12140945345163345, -0.4137175977230072, -0.0063285306096076965, 0.25819751620292664, 0.16626283526420593, 0.37385934591293335, -0.06888647377490997, 0.02172279916703701, -0.22749146819114685, 0.07185600697994232, -0.6199691295623779, -0.09481842815876007, -0.2102097123861313, 0.03553495183587074, -0.06335697323083878, -0.39518746733665466, 0.36026531457901, 0.2881467938423157, 0.46558982133865356, 0.06717748194932938, -0.1785433292388916, 0.10447857528924942, -0.10900231450796127, -0.14479279518127441, 0.24864523112773895, -0.08740312606096268, 0.29931968450546265, -0.12557893991470337, -0.16341884434223175, 0.24039028584957123, 0.013876373879611492, -0.2040071189403534, -0.37629830837249756, -0.19872337579727173, 0.1692376583814621, -0.1861865073442459, 0.3645673096179962, 0.1886489987373352, 0.010908405296504498, -0.28130802512168884, 0.2248249351978302, 0.22070902585983276, 0.24254785478115082, 0.12983885407447815, 0.07349938899278641, -0.006155636161565781, -0.42216548323631287, 0.2767053544521332, 0.1592308133840561, -0.2599053978919983, 0.3653331398963928, 0.49513229727745056, -0.16395196318626404, -0.3070436120033264, 0.1767655462026596, 0.15880313515663147, -0.1803540587425232, 0.04621162638068199, -0.13704238831996918, -0.18981748819351196, 0.15390299260616302, 0.4831220507621765, 0.44752568006515503, -0.22446493804454803, -0.022232484072446823, -0.15416677296161652, -0.13658881187438965, 0.2057545930147171, -0.13104034960269928, 0.06423941999673843, -0.3104790151119232, 0.11358151584863663, 0.11067190021276474, 0.21381820738315582, -0.4183434247970581, 0.10578528046607971, -0.002691898262128234, -0.0010273256339132786, 0.2698209583759308, 0.037161678075790405, 0.16877102851867676, -0.11480484157800674, 0.07792765647172928, -0.028115717694163322, -0.0769270658493042, -0.2974216639995575, 0.05030693858861923, 0.09818930178880692, 0.02787664718925953, 0.06242009252309799, 0.013027364388108253, -0.05574316158890724, -0.15841296315193176, 0.019538644701242447, 0.04291119799017906, 0.01564105786383152, 0.06530728936195374, 0.380616158246994, -0.17650067806243896, -0.0038349118549376726, 0.07670515775680542, 0.1506212055683136, -0.2631673514842987, 0.3517305850982666, 0.21406450867652893, 0.15632545948028564, 0.40499627590179443, 0.11457214504480362, 0.10183604806661606, 0.11702217161655426, 0.05563805252313614, -0.11510059982538223, 0.5720158815383911, -0.18365167081356049, 0.2140287458896637, 0.5334525108337402, 0.12974154949188232, -0.1990552395582199, -0.1963355988264084, 0.08767060190439224, 0.1470392495393753, 0.3044627606868744, -0.35899218916893005, -0.25228050351142883, -0.07538791000843048, 0.2254798412322998, 0.08569631725549698, 0.11715898662805557, 0.37602391839027405, 0.04479115083813667, 0.17908929288387299, 0.20371437072753906, 0.44749417901039124, -0.08956702053546906, 0.32627224922180176, -0.015941109508275986, 0.09457141160964966, -0.01618402823805809, 0.26916277408599854, 0.08055206388235092, 0.029574671760201454, 0.27754727005958557, 0.07272455841302872, 0.5338809490203857, -0.10406458377838135, 0.14756566286087036, 0.4043249189853668, -0.24204041063785553, 0.33209913969039917, 0.2094636708498001, -0.056163489818573, 0.11765582859516144, -0.023184848949313164, 0.32256489992141724, -0.24967224895954132, 0.018577277660369873, -0.23161160945892334, 0.04872391000390053, -0.11397740244865417, 0.15007305145263672, -0.00966375321149826, -0.3767280876636505, 0.02086765505373478, -0.029417289420962334, -0.2372242659330368, -0.3354693353176117, 0.15128688514232635, -0.07503499835729599, -0.2642962634563446, -0.537863552570343, -0.005131513345986605, 0.01716648042201996, 0.38598132133483887, -0.21301071345806122, -0.08029770851135254, 0.2222641110420227, -0.2817745506763458, 0.2070702761411667, 0.5161466002464294, 0.24067644774913788, -0.06502101570367813, -0.12725645303726196, -0.10053271055221558, -0.21484686434268951, -0.17437954246997833, 0.10058809816837311, 0.36498209834098816, 0.41462549567222595, 0.013475961051881313, 0.042117781937122345, 0.16692453622817993, -0.1491864174604416, 0.015516023151576519, 0.2422216683626175, -0.0947975292801857, -0.09755215048789978, 0.18309418857097626, 0.14174441993236542, -0.21883875131607056, -0.23235508799552917, 0.03946227207779884, -0.39438396692276, -0.014492404647171497, 0.4232041835784912, -0.08353539556264877, 0.08799166977405548, -0.1966639757156372, 0.14083611965179443, -0.052540745586156845, 0.37783244252204895, 0.31142696738243103, -0.06161514297127724, -0.12886033952236176, -0.1837223321199417, -0.16866932809352875, -0.14677056670188904, 0.16842302680015564, 0.16832943260669708, -0.17481355369091034, -0.006379539147019386, 0.22658184170722961, 0.25201427936553955, -0.25235456228256226, 0.013628076761960983, 0.1262558400630951, 0.014353591948747635, -0.5593923330307007, -0.08958036452531815, 0.20984724164009094, 0.06732218712568283, -0.05378473177552223, 0.05489746481180191, 0.026082448661327362, -0.24266749620437622, 0.04314110055565834, -0.3713622987270355, 0.24352975189685822, 0.2112380564212799, 0.16308534145355225, 0.2539023458957672, 0.011687510646879673, 0.4366324841976166, -0.033425938338041306, -0.13140971958637238, -0.06810523569583893, -0.2330940216779709, -0.1569177359342575, 0.15076953172683716, 0.19774401187896729, 0.2544565200805664, -0.24997475743293762, -0.1016162782907486, 0.23241886496543884, 0.20994625985622406, 0.09807652980089188, 0.0916348323225975, -0.6198493242263794, -0.08491282910108566, 0.03849329054355621, -0.16756665706634521, 0.28782880306243896, 0.06378474831581116, 0.050558753311634064, -0.23141665756702423, -0.27364853024482727, -0.4273025691509247, 0.06004795804619789, -0.05456554517149925, 0.12087368965148926, -0.4299786388874054, 0.05724279582500458, 0.41722872853279114, 0.30357104539871216, -0.665212869644165, 0.03713497146964073, 0.3935829997062683, -0.1419791728258133, 0.005205394700169563, 0.3796031177043915, 0.17058077454566956, -0.08742479979991913, -0.18872389197349548, 0.2291715145111084, -0.186061292886734, -0.25940313935279846, -0.2517859935760498, -0.22362813353538513 ]
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.009956329129636288, 0.12012901157140732, -0.1890822947025299, 0.21793511509895325, 0.21285873651504517, 0.21809548139572144, 0.20618465542793274, 0.14195455610752106, -0.18605665862560272, -0.10307655483484268, -0.15357927978038788, -0.020446157082915306, -0.14540262520313263, 0.21926246583461761, 0.0605061873793602, -0.18070760369300842, 0.012558519840240479, -0.041630201041698456, -0.07741279900074005, -0.22035785019397736, -0.16374076902866364, 0.1607874184846878, -0.09900788217782974, -0.18708616495132446, -0.3995817303657532, -0.11544367671012878, -0.14996296167373657, 0.08277565240859985, -0.274766206741333, -0.4816746413707733, 0.032900143414735794, 0.07669010013341904, 0.14544685184955597, 0.34820297360420227, -0.00009774961654329672, -0.23884275555610657, 0.038417115807533264, -0.02871169149875641, -0.23686166107654572, -0.2248949259519577, -0.051260534673929214, -0.4016398787498474, -0.0896613597869873, -0.12597502768039703, -0.13364538550376892, 0.03722938522696495, 0.05659274756908417, -0.18361490964889526, 0.0036867500748485327, 0.34639090299606323, 0.3029761016368866, -0.028314096853137016, -0.08667410910129547, -0.12335797399282455, 0.25956401228904724, 0.5216811299324036, -0.34701377153396606, -0.108249232172966, 0.5796982645988464, 0.11417175084352493, -0.07738073915243149, 0.30882754921913147, -0.22696077823638916, -0.10911259800195694, 0.18488343060016632, 0.1643170267343521, -0.14494608342647552, -0.3419853150844574, 0.056965041905641556, 0.3712535798549652, 0.6867120265960693, -0.2845935523509979, -0.44770461320877075, -0.3079708218574524, 0.1604134738445282, -0.29134151339530945, -0.16410839557647705, 0.2534988820552826, -0.03347037360072136, 0.1641044020652771, -0.17076966166496277, -0.22187668085098267, -0.1847561001777649, 0.19454142451286316, 0.2576349973678589, 0.09691188484430313, -0.05719270929694176, -0.2658844292163849, -0.0637664645910263, 0.11057513952255249, 0.2781273424625397, -0.35948002338409424, 0.19456171989440918, 0.0019451157422736287, -0.19685429334640503, -0.30354639887809753, 0.04329777881503105, -0.002064579399302602, -0.03135542571544647, 0.04151178151369095, -0.10572411119937897, 0.10289952903985977, -0.19949905574321747, -0.12251883745193481, 0.0027352015022188425, -0.17412196099758148, 0.20561756193637848, 0.21627287566661835, 0.08562986552715302, -0.14314033091068268, 0.12887588143348694, 0.0778539776802063, -0.09927929192781448, 0.16665038466453552, -0.10300057381391525, -0.01832449436187744, -0.13201117515563965, -0.25421208143234253, -0.04671483859419823, -0.03751109540462494, -0.005370337050408125, -0.06273908913135529, -0.18303991854190826, 0.03459138795733452, -0.03607381135225296, 0.10883767902851105, -0.16343747079372406, 0.2397162765264511, -0.04848381504416466, -0.4128638803958893, -0.14740914106369019, -0.014884214848279953, -0.13947349786758423, 0.08974514901638031, 0.6010736227035522, -0.08435611426830292, 0.1415129154920578, -0.1657429188489914, -0.12121600657701492, 0.16331036388874054, -0.01957656629383564, -0.10557594150304794, 0.08842102438211441, 0.10803057253360748, -0.1405913531780243, 0.07195132225751877, 0.08018709719181061, 0.18929822742938995, -0.20428599417209625, 0.24948036670684814, 0.01478915847837925, -0.24281737208366394, -0.1787460595369339, 0.31365111470222473, -0.04187066853046417, -0.5465001463890076, -0.0762111023068428, 0.6240941882133484, -0.014873378910124302, -0.03546169027686119, 0.13519050180912018, -0.033727873116731644, -0.1267390251159668, -0.12853311002254486, -0.007046564482152462, 0.3449834883213043, -0.4318055510520935, -0.18669478595256805, -0.32396167516708374, 0.11204896867275238, 0.1348620504140854, 0.22933648526668549, -0.1754048466682434, 0.0672396793961525, 0.14195850491523743, 0.02841111645102501, 0.21548785269260406, 0.026819806545972824, -0.22893434762954712, -0.00019292555225547403, -0.004273556172847748, -0.11344616860151291, 0.08088687807321548, 0.27802911400794983, 0.10636390745639801, -0.06690730899572372, -0.1142902821302414, 0.1946755349636078, -0.2612951695919037, -0.044403329491615295, -0.22523830831050873, -0.18108713626861572, 0.17400270700454712, 0.42637526988983154, 0.4575030207633972, -0.21172143518924713, 0.05102153122425079, -0.1381462663412094, 0.08951391279697418, -0.03578583896160126, 0.2193816900253296, 0.13675302267074585, 0.15563978254795074, 0.1583779752254486, 0.05186912789940834, -0.2809580862522125, -0.1513507068157196, -0.005842105019837618, 0.2436332404613495, 0.34824851155281067, -0.0044399104081094265, -0.09715559333562851, -0.08177794516086578, -0.11407279223203659, 0.030829045921564102, -0.10586068034172058, 0.217085063457489, -0.1768059879541397, 0.07764027267694473, 0.1714375913143158, -0.2573436498641968, 0.21468430757522583, -0.38969722390174866, 0.3276173770427704, 0.1842181533575058, 0.2867545485496521, -0.06571004539728165, -0.06083802506327629, 0.17108215391635895, 0.3616931736469269, -0.150044247508049, 0.011408447287976742, 0.023069147020578384, -0.0033253617584705353, -0.24834711849689484, -0.036236364394426346, 0.2523278594017029, 0.3923211693763733, 0.3120625615119934, -0.42387184500694275, 0.2985503375530243, -0.027249371632933617, 0.08753664046525955, -0.12846513092517853, -0.16205419600009918, 0.4090006947517395, -0.02162322774529457, 0.06474294513463974, 0.006024106405675411, -0.05172107368707657, -0.04087305814027786, -0.020908763632178307, 0.058990802615880966, 0.10963503271341324, 0.360746294260025, -0.19727477431297302, 0.20595653355121613, 0.0017746336525306106, -0.16174785792827606, 0.1815607249736786, 0.18536873161792755, -0.06864530593156815, 0.20470944046974182, 0.2270735502243042, -0.36266186833381653, -0.14162470400333405, -0.04963120445609093, 0.010518568567931652, 0.2799791693687439, 0.513660728931427, -0.03186642378568649, -0.10479084402322769, 0.05508332699537277, -0.36727479100227356, 0.0804235115647316, 0.3299196660518646, 0.05327368155121803, 0.07422856241464615, 0.2775609493255615, 0.2161092460155487, -0.24164102971553802, -0.12705659866333008, 0.16795869171619415, -0.035383980721235275, -0.016741866245865822, -0.10195165872573853, -0.027799561619758606, -0.3347744941711426, 0.04677903652191162, 0.04810526221990585, -0.0874389111995697, -0.2642137408256531, 0.225280299782753, -0.20679210126399994, 0.041787777096033096, 0.06042487174272537, -0.31508809328079224, 0.5391524434089661, -0.24291066825389862, 0.0756276324391365, -0.09911944717168808, -0.20817990601062775, -0.21267792582511902, 0.3141336143016815, 0.09419941902160645, -0.08477843552827835, 0.4556821584701538, -0.06655231863260269, 0.253408819437027, -0.191388338804245, -0.5189397931098938, -0.01485530473291874, -0.16654542088508606, -0.043255582451820374, -0.14638100564479828, -0.16471052169799805, 0.017094910144805908, -0.10856178402900696, -0.05517607182264328, -0.13543067872524261, -0.17291785776615143, -0.08204907178878784, -0.128236323595047, -0.23301303386688232, -0.06392635405063629, -0.6488696932792664, -0.3751607835292816, -0.09664426743984222, 0.12011502683162689, 0.024349916726350784, -0.017714401707053185, 0.2662031352519989, -0.059332769364118576, 0.021156247705221176, -0.1397213190793991, 0.1283467411994934, -0.0776316225528717, -0.26904866099357605, 0.19937972724437714, -0.10555820167064667, -0.2119162678718567, -0.1357290893793106, -0.05275963991880417, -0.06434976309537888, -0.06825989484786987, -0.5273972749710083, 0.16936969757080078, -0.1972026824951172, 0.18708980083465576, 0.11814969033002853, -0.09004402160644531, 0.375933974981308, 0.2685990631580353, -0.19581913948059082, 0.06630973517894745, -0.07724689692258835, -0.08186373859643936, 0.05121331661939621, 0.2883865237236023, -0.3087563216686249, 0.10187224298715591, 0.2857590317726135, 0.5518404841423035, 0.03700406104326248, -0.12772902846336365, 0.05818702653050423, 0.2767519950866699, 0.33150479197502136, -0.008497165516018867, -0.38933220505714417, 0.2839776575565338, -0.13478435575962067, 0.17793235182762146, 0.32393860816955566, 0.18738052248954773, -0.35430535674095154, -0.20623967051506042, 0.041738416999578476, -0.2724872827529907, -0.08392946422100067, 0.24414639174938202, -0.17697298526763916, 0.2626498341560364, 0.047092653810977936, -0.08919999748468399, -0.2200292944908142, -0.43610504269599915, -0.13548584282398224, 0.18960890173912048, 0.16078129410743713, -0.19565334916114807, -0.6076634526252747, 0.2148033082485199, -0.46111780405044556, 0.10651930421590805, 0.14729717373847961, -0.07787628471851349, -0.16266639530658722, 0.1421460062265396, -0.10196072608232498, 0.3258804678916931, 0.10276754945516586, -0.4636116027832031, -0.3247774839401245, 0.24465657770633698, 0.029968610033392906, -0.08220925182104111, 0.14844021201133728, -0.4467477798461914, 0.021790873259305954, 0.23624001443386078, 0.036128003150224686, 0.10494662076234818, -0.059005096554756165, 0.46374401450157166, -0.027275044471025467, 0.03164364770054817, -0.2878127694129944, 0.29640617966651917, 0.06481536477804184, -0.15977245569229126, -0.02879151701927185, 0.0629827082157135, 0.06374377757310867, -0.19713617861270905, 0.031807154417037964, 0.1918146014213562, 0.06677477806806564, 0.39716866612434387, -0.2791353464126587, -0.34461307525634766, 0.16281704604625702, 0.2187758982181549, 0.06704797595739365, 0.008648746646940708, 0.34632524847984314, 0.433037132024765, -0.14777199923992157, -0.5273457169532776, -0.04940265044569969, -0.14090432226657867, 0.48337322473526, 0.34293171763420105, 0.36172494292259216, 0.2523907721042633, -0.11656166613101959, -0.12286271154880524, -0.07201922684907913, 0.25083544850349426, 0.12706105411052704, -0.03573683649301529, -0.5171099901199341, -0.3428190052509308, 0.32120388746261597, -0.08879728615283966, -0.0528658963739872, -0.0371815450489521, 0.18580615520477295, -0.17820385098457336, 0.1393805295228958, -0.005433703772723675, 0.9393481612205505, -0.016749709844589233, 0.21775898337364197, -0.2964957654476166, -0.15433937311172485, 0.49365758895874023, -0.2867143154144287, 0.16721391677856445, -0.04264281690120697, -0.19655998051166534, -0.00016228070307988673, -0.04250693321228027, 0.010546601377427578, 0.3882579505443573, 0.10595105588436127, 0.22214935719966888, 0.25187912583351135, 0.14195577800273895, 0.07970195263624191, 0.17055156826972961, 0.08263801783323288, -0.43237069249153137, 0.0679335743188858, 0.289198637008667, 0.03130863606929779, 0.23478199541568756, -0.0014483863487839699, 0.013283948414027691, -0.19194450974464417, 0.12940798699855804, -0.6016510128974915, -0.0803752914071083, -0.1888517290353775, 0.06740747392177582, 0.022611921653151512, -0.4113134741783142, 0.5069015026092529, 0.26748642325401306, 0.4851577877998352, 0.14618010818958282, -0.21115386486053467, 0.012158086523413658, -0.22986771166324615, -0.09990719705820084, 0.20722343027591705, -0.14497113227844238, 0.32419830560684204, -0.0038157617673277855, -0.23252692818641663, 0.16677461564540863, 0.06710943579673767, -0.13467931747436523, -0.4355963468551636, -0.34226980805397034, 0.2398143857717514, -0.3440447747707367, 0.22653740644454956, 0.21083958446979523, -0.007369483355432749, -0.28034767508506775, 0.25448665022850037, 0.22580917179584503, 0.2485799640417099, 0.12722207605838776, 0.1870502382516861, -0.09668956696987152, -0.39923420548439026, 0.2455761879682541, 0.1889495700597763, -0.2624407708644867, 0.375358521938324, 0.4487675726413727, -0.22259734570980072, -0.32113757729530334, 0.25637516379356384, 0.27194666862487793, -0.23475196957588196, -0.050939563661813736, -0.12916092574596405, -0.07319074124097824, 0.1580408662557602, 0.2855262756347656, 0.3492250442504883, -0.2070108950138092, 0.05675371736288071, -0.138640359044075, -0.09049749374389648, 0.2378673404455185, -0.07846726477146149, 0.05572653189301491, -0.19564318656921387, 0.14269404113292694, 0.07330279797315598, 0.19497469067573547, -0.4472537934780121, 0.16314250230789185, 0.14369486272335052, 0.050833020359277725, 0.2079171985387802, -0.09133113920688629, 0.12023335695266724, -0.20431053638458252, 0.1457255631685257, 0.020573321729898453, -0.0671781525015831, -0.335769921541214, -0.007548829540610313, 0.10719183087348938, 0.06228381395339966, -0.05033436790108681, 0.027825206518173218, 0.11780832707881927, -0.16965460777282715, -0.10410673916339874, -0.11190710216760635, 0.08923187851905823, 0.10023877024650574, 0.39285340905189514, -0.20862554013729095, 0.010755280964076519, 0.09195508807897568, 0.07816389948129654, -0.34901899099349976, 0.3264140784740448, 0.2692594528198242, 0.15590865910053253, 0.45306724309921265, 0.07734031975269318, -0.11192851513624191, 0.15875989198684692, 0.14641347527503967, -0.0920318067073822, 0.6272504329681396, -0.21608084440231323, 0.22979839146137238, 0.44856879115104675, 0.13513493537902832, -0.15929409861564636, -0.1255430281162262, -0.0036728987470269203, 0.07956695556640625, 0.341350257396698, -0.3197435438632965, -0.14288358390331268, -0.059840671718120575, 0.18813033401966095, 0.07595799118280411, 0.2066173553466797, 0.2478870153427124, 0.053562231361866, 0.2319902926683426, 0.08261033892631531, 0.504676878452301, -0.12227881699800491, 0.2788366377353668, -0.012822315096855164, 0.16346824169158936, -0.10634655505418777, 0.26266926527023315, 0.15993693470954895, 0.03911138325929642, 0.2669239640235901, 0.08838777989149094, 0.45814749598503113, -0.13923963904380798, 0.24075579643249512, 0.23459550738334656, -0.14361092448234558, 0.3404223322868347, 0.2780049443244934, -0.12572412192821503, 0.22050535678863525, -0.06314536184072495, 0.229970782995224, -0.17502082884311676, 0.04926152899861336, -0.1364424228668213, -0.04779883846640587, -0.11342964321374893, 0.057844702154397964, -0.03517710790038109, -0.3497605621814728, -0.041551753878593445, -0.12929263710975647, -0.2964368462562561, -0.33243608474731445, 0.14113369584083557, -0.06286241114139557, -0.18919521570205688, -0.5732408761978149, 0.23556660115718842, 0.11590957641601562, 0.4328242242336273, -0.20882894098758698, -0.051619481295347214, 0.14384019374847412, -0.1780405342578888, 0.1907115876674652, 0.47582048177719116, 0.20042333006858826, -0.17190562188625336, -0.10405893623828888, 0.11883460730314255, -0.2416640967130661, -0.19920317828655243, 0.1770106703042984, 0.23628635704517365, 0.3595467507839203, 0.16392824053764343, 0.005833908915519714, 0.2157750427722931, -0.1195165142416954, 0.16662290692329407, 0.1374993920326233, -0.07448558509349823, -0.26504892110824585, 0.08082159608602524, 0.1331864893436432, -0.27944043278694153, -0.17324090003967285, -0.022339992225170135, -0.22704099118709564, -0.20638146996498108, 0.49488136172294617, -0.14009805023670197, 0.036783549934625626, -0.09523531049489975, 0.1659814864397049, -0.14509247243404388, 0.278754860162735, 0.3749409019947052, -0.20439545810222626, -0.19464871287345886, -0.07430023699998856, -0.04560019075870514, -0.1837635487318039, 0.14181390404701233, 0.20796991884708405, -0.2435239851474762, 0.040447890758514404, 0.2586269676685333, 0.22251282632350922, -0.36851298809051514, -0.07409410178661346, -0.11362948268651962, 0.03776785358786583, -0.5360792875289917, -0.056228023022413254, 0.1630547046661377, 0.2559027373790741, -0.016748474910855293, 0.14422005414962769, -0.10428202152252197, -0.0879720002412796, 0.09684466570615768, -0.42225655913352966, 0.10649672895669937, 0.18841087818145752, 0.1729866862297058, 0.11739840358495712, 0.05878395959734917, 0.35301756858825684, -0.04597564414143562, -0.11794732511043549, -0.08790171146392822, -0.2885902523994446, -0.0794680118560791, 0.3862181007862091, 0.0675956979393959, 0.3366406261920929, -0.25567570328712463, -0.30605214834213257, 0.2978149354457855, 0.04838266596198082, 0.020998189225792885, -0.1510123312473297, -0.4657733142375946, -0.005973949562758207, 0.0238203015178442, -0.055655986070632935, 0.15217788517475128, 0.017864687368273735, 0.01923305168747902, -0.1478467583656311, -0.11186614632606506, -0.35190752148628235, 0.07222223281860352, -0.0022425809875130653, 0.12859144806861877, -0.3013213574886322, 0.11773069202899933, 0.36625730991363525, 0.2721980810165405, -0.5800654292106628, 0.012166237458586693, 0.4983746111392975, -0.14627204835414886, -0.05211601406335831, 0.4400007128715515, 0.18531157076358795, -0.07420680671930313, -0.16111962497234344, 0.2752130627632141, -0.2585216164588928, -0.22418594360351562, -0.1401052623987198, -0.20965783298015594 ]
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.019835880026221275, 0.1645354926586151, -0.12858642637729645, 0.12269238382577896, 0.13993075489997864, 0.22253437340259552, 0.17683033645153046, 0.08158795535564423, 0.0018179290927946568, -0.1834152489900589, -0.2986062169075012, -0.0017471399623900652, -0.2310987412929535, 0.2553617060184479, 0.14003810286521912, -0.211738720536232, -0.020114870741963387, -0.07591111958026886, -0.12464315444231033, -0.2163359522819519, -0.1675652712583542, 0.20931638777256012, -0.08923521637916565, -0.24448086321353912, -0.3734583556652069, -0.12972240149974823, -0.1804073452949524, 0.12453586608171463, -0.2303670346736908, -0.503451406955719, 0.1528969556093216, 0.25550276041030884, 0.23458610475063324, 0.35842588543891907, -0.00010472578287590295, -0.3163300156593323, 0.012964063324034214, -0.03612498193979263, -0.252442866563797, -0.22851401567459106, 0.04800517484545708, -0.4326217472553253, -0.10933467745780945, -0.01155625656247139, -0.04148297384381294, -0.035277847200632095, 0.06332863867282867, -0.07346078008413315, -0.0728205144405365, 0.2706286907196045, 0.24988310039043427, -0.09681802242994308, -0.014112532138824463, -0.11153635382652283, 0.4056473970413208, 0.5342842936515808, -0.26941606402397156, -0.055701304227113724, 0.5810770988464355, -0.06986331194639206, -0.1388196349143982, 0.2804795205593109, -0.2075154036283493, -0.1526287943124771, 0.3274663984775543, 0.09538468718528748, -0.17891286313533783, -0.34959128499031067, -0.006355418357998133, 0.3909526765346527, 0.759986400604248, -0.28515252470970154, -0.49348700046539307, -0.35701194405555725, 0.12044966220855713, -0.2448965311050415, -0.16551682353019714, 0.21342918276786804, -0.02702581137418747, 0.020132705569267273, -0.17477066814899445, -0.26001644134521484, -0.21487262845039368, 0.2961459159851074, 0.32744452357292175, 0.3037990927696228, -0.002960240701213479, -0.22689445316791534, 0.0062390887178480625, 0.08047937601804733, 0.3732759654521942, -0.28202542662620544, 0.1854223757982254, 0.0842641070485115, -0.2543907165527344, -0.25382938981056213, 0.041981618851423264, -0.04194901883602142, 0.008205811493098736, 0.029947789385914803, -0.2754574418067932, 0.05223418027162552, -0.2359439879655838, -0.08201993256807327, -0.011437713168561459, -0.1044958084821701, 0.18596258759498596, 0.2776843011379242, -0.006437454838305712, -0.1476680338382721, 0.11754753440618515, 0.052224159240722656, -0.1956690549850464, 0.17999395728111267, -0.14840346574783325, -0.13015291094779968, -0.30691099166870117, -0.3268979787826538, -0.054619427770376205, -0.09306976199150085, -0.027665819972753525, -0.03720090910792351, -0.16106703877449036, 0.10061059147119522, -0.030531566590070724, 0.14236345887184143, -0.07498440146446228, 0.204355850815773, -0.06431152671575546, -0.2759670317173004, -0.10677829384803772, -0.013269162736833096, -0.09781146794557571, 0.13255375623703003, 0.5589262247085571, 0.002338999882340431, 0.12668773531913757, -0.23719944059848785, -0.09303242713212967, 0.17694532871246338, -0.18041875958442688, -0.04991425946354866, 0.014496310614049435, 0.12370115518569946, -0.0877869725227356, 0.06353919953107834, 0.08130581676959991, 0.14842748641967773, -0.21879717707633972, 0.13589443266391754, 0.012635815888643265, -0.18098090589046478, -0.20636069774627686, 0.25472405552864075, 0.015191299840807915, -0.5899582505226135, -0.1809224635362625, 0.5644590258598328, -0.04782945662736893, -0.10221865028142929, 0.1412487030029297, -0.014403686858713627, -0.15076710283756256, -0.07564656436443329, -0.14723841845989227, 0.35790884494781494, -0.46381354331970215, -0.28685054183006287, -0.3036377429962158, 0.17895826697349548, 0.19721467792987823, 0.15462005138397217, -0.14201542735099792, 0.14141760766506195, 0.0884595438838005, 0.017345570027828217, 0.19784991443157196, -0.02811560221016407, -0.22132322192192078, 0.07160795480012894, -0.03733009099960327, -0.20371466875076294, 0.10918115824460983, 0.3472162187099457, 0.12598921358585358, -0.1429608315229416, 0.013676592148840427, 0.17987725138664246, -0.19101764261722565, -0.03513767197728157, -0.22347842156887054, -0.1538218855857849, 0.1330547332763672, 0.4792042076587677, 0.5008527636528015, -0.18467073142528534, 0.017831789329648018, -0.05669686198234558, 0.18333423137664795, 0.014810740016400814, 0.17354755103588104, 0.2245548516511917, 0.15899230539798737, 0.3652982711791992, 0.020095108076930046, -0.3260864019393921, -0.15828166902065277, -0.03683142736554146, 0.13219965994358063, 0.32387450337409973, 0.0837288349866867, -0.1299978643655777, -0.16202391684055328, -0.0727359801530838, 0.06397741287946701, -0.08847907185554504, 0.16856418550014496, -0.1823873370885849, 0.08021456003189087, 0.06953290104866028, -0.2511689066886902, 0.24452175199985504, -0.32189083099365234, 0.3489340841770172, 0.22965437173843384, 0.30984386801719666, -0.06383001059293747, 0.08236618340015411, 0.273451566696167, 0.4851835370063782, -0.05618486925959587, -0.004793933592736721, 0.0865125060081482, -0.05073529854416847, -0.3311428725719452, -0.052003197371959686, 0.4012407064437866, 0.34061890840530396, 0.2171982377767563, -0.4308606684207916, 0.23951314389705658, -0.09081923961639404, 0.07023552060127258, -0.2257072478532791, -0.17708046734333038, 0.38262584805488586, -0.0643693134188652, 0.10748641937971115, 0.016340233385562897, 0.019110724329948425, -0.057571396231651306, -0.05849968641996384, 0.15671856701374054, 0.12266075611114502, 0.4774453043937683, -0.24024178087711334, 0.21560895442962646, -0.05607415363192558, -0.1531548947095871, 0.31023919582366943, 0.2410905957221985, -0.026127543300390244, 0.14957579970359802, 0.3112007677555084, -0.37672385573387146, -0.12384545803070068, -0.04054608196020126, 0.06794099509716034, 0.2094610333442688, 0.5444110631942749, -0.016258010640740395, -0.042984653264284134, -0.06332326680421829, -0.29289695620536804, 0.0039460668340325356, 0.24573157727718353, 0.1017829030752182, 0.0940495952963829, 0.33821171522140503, 0.27823570370674133, -0.30233269929885864, -0.25755107402801514, 0.13848140835762024, -0.020798809826374054, 0.042120784521102905, -0.0394282229244709, -0.045746900141239166, -0.4623197615146637, -0.013394071720540524, -0.014003667049109936, -0.12705735862255096, -0.3637330234050751, 0.30014586448669434, -0.09994751214981079, 0.09348209947347641, 0.07195598632097244, -0.39578762650489807, 0.533789873123169, -0.3382836878299713, -0.031203623861074448, -0.08734862506389618, -0.2671608626842499, -0.2508142590522766, 0.23134663701057434, 0.14027680456638336, -0.008854038082063198, 0.4727495014667511, 0.03874855861067772, 0.2326541692018509, -0.14571481943130493, -0.5765914916992188, -0.05592779815196991, -0.12537653744220734, -0.12096449732780457, -0.18762518465518951, -0.21549978852272034, 0.04796261340379715, -0.16737042367458344, -0.13975371420383453, -0.12038300186395645, -0.1475423276424408, -0.03298461064696312, -0.24931789934635162, -0.19512005150318146, -0.032680679112672806, -0.5112283825874329, -0.3697474002838135, -0.14610648155212402, 0.10259397327899933, 0.035828735679388046, 0.0933142900466919, 0.26850947737693787, -0.2643094062805176, 0.01482998114079237, -0.1242641732096672, 0.06664009392261505, -0.03744471073150635, -0.18865512311458588, 0.14137178659439087, -0.12022436410188675, -0.2281951606273651, -0.1240064799785614, -0.09678290039300919, -0.0756765678524971, -0.10281503200531006, -0.6674729585647583, 0.208201065659523, -0.19850817322731018, 0.12260150164365768, 0.1556163877248764, -0.140558660030365, 0.40666842460632324, 0.24763059616088867, -0.18146280944347382, -0.020311130210757256, -0.12932369112968445, -0.03276859223842621, 0.07508565485477448, 0.37122634053230286, -0.3001055121421814, 0.08032138645648956, 0.23998039960861206, 0.5578198432922363, 0.043877627700567245, -0.03512275964021683, 0.1014532744884491, 0.33030077815055847, 0.2996343672275543, 0.02316330187022686, -0.45121484994888306, 0.2865906059741974, -0.14167314767837524, 0.20598646998405457, 0.3343000113964081, 0.2041311413049698, -0.4348145127296448, -0.10716929286718369, 0.1427900493144989, -0.27316534519195557, -0.03998063504695892, 0.23323066532611847, -0.21753305196762085, 0.22400188446044922, 0.10422596335411072, -0.18191242218017578, -0.3055632412433624, -0.5037223100662231, -0.10823224484920502, 0.23693566024303436, 0.1736888885498047, -0.07430484890937805, -0.6273700594902039, 0.2053292691707611, -0.3945930004119873, 0.14006324112415314, 0.14631704986095428, 0.06744176149368286, -0.2749195992946625, 0.22813507914543152, -0.08275935798883438, 0.2678700387477875, 0.12847265601158142, -0.40057533979415894, -0.22700662910938263, 0.29570668935775757, 0.15619558095932007, -0.06844247132539749, 0.15421375632286072, -0.3768276274204254, 0.05994353070855141, 0.28132084012031555, 0.01731976307928562, 0.08655469119548798, -0.09212230145931244, 0.4317032992839813, -0.05731489881873131, 0.009543505497276783, -0.2893531322479248, 0.38145896792411804, 0.022672297433018684, -0.14255206286907196, -0.0904993861913681, -0.013027251698076725, 0.1536349356174469, -0.26463568210601807, 0.08523508906364441, 0.1945631206035614, 0.04288218170404434, 0.3212283253669739, -0.4165337085723877, -0.39293375611305237, 0.2106628119945526, 0.18388910591602325, 0.011394868604838848, 0.03093995898962021, 0.2688945531845093, 0.5306918025016785, -0.1769511103630066, -0.45390933752059937, 0.036710720509290695, -0.05526464805006981, 0.4870544672012329, 0.34528493881225586, 0.42706871032714844, 0.30305081605911255, -0.0884711965918541, -0.04776884242892265, -0.11855258792638779, 0.18913938105106354, 0.06969987601041794, -0.03322494402527809, -0.5455820560455322, -0.24106286466121674, 0.4245167374610901, -0.09380840510129929, -0.052428413182497025, -0.0012593928258866072, 0.2747276723384857, -0.18694303929805756, 0.22986023128032684, -0.07047322392463684, 0.9891273975372314, -0.03203495964407921, 0.23140762746334076, -0.3351994752883911, -0.14999376237392426, 0.5273064970970154, -0.33900779485702515, 0.1651449352502823, -0.1366245299577713, -0.06224864721298218, -0.07735786586999893, 0.005961392540484667, -0.1355396956205368, 0.43202102184295654, 0.20124122500419617, 0.24374575912952423, 0.34078162908554077, 0.04235648736357689, 0.12663520872592926, 0.2039075642824173, 0.03899136558175087, -0.5060490369796753, 0.021322935819625854, 0.23470020294189453, -0.03648616001009941, 0.3667463958263397, -0.004177096299827099, -0.005718626547604799, -0.14087975025177002, 0.1594284474849701, -0.7354981303215027, -0.06736567616462708, -0.10636285692453384, 0.1266799122095108, 0.06817567348480225, -0.3045450448989868, 0.5246515274047852, 0.11318819969892502, 0.44354447722435, 0.08650865405797958, -0.21987596154212952, -0.027205118909478188, -0.2468966394662857, -0.16310736536979675, 0.20935826003551483, -0.11719684302806854, 0.39688652753829956, -0.025573527440428734, -0.19787345826625824, 0.08455899357795715, 0.06377602368593216, -0.23019303381443024, -0.3948071002960205, -0.32004112005233765, 0.1908971518278122, -0.23621106147766113, 0.2588212490081787, 0.32260751724243164, -0.010889573954045773, -0.30711379647254944, 0.19615918397903442, 0.1634349822998047, 0.2605303227901459, 0.03539210930466652, 0.26928937435150146, -0.0035229770001024008, -0.3461027443408966, 0.21947059035301208, 0.16763712465763092, -0.19581405818462372, 0.3862885534763336, 0.5314842462539673, -0.2508363425731659, -0.28164753317832947, 0.19995564222335815, 0.1823791265487671, -0.3813149631023407, -0.14122162759304047, -0.08118608593940735, -0.06096929311752319, 0.20649003982543945, 0.32448816299438477, 0.38475483655929565, -0.25802063941955566, 0.025159595534205437, -0.3177657425403595, -0.12075316160917282, 0.30037131905555725, -0.25486695766448975, 0.05467943474650383, -0.17223325371742249, 0.22595395147800446, 0.06480675935745239, 0.30743977427482605, -0.3720640540122986, 0.19424600899219513, 0.05464955419301987, 0.009455576539039612, 0.1304038017988205, -0.07322553545236588, 0.1413399875164032, -0.21628664433956146, 0.04471775144338608, 0.022611333057284355, -0.0884641706943512, -0.25349241495132446, -0.09481389075517654, 0.15108458697795868, 0.1035931408405304, 0.0487661138176918, -0.07738181948661804, 0.060036610811948776, -0.17537982761859894, 0.014528976753354073, -0.06074798107147217, 0.09624867141246796, 0.12250737845897675, 0.44481098651885986, -0.14519545435905457, 0.002681639278307557, 0.04933951050043106, 0.09582779556512833, -0.15304811298847198, 0.3397257626056671, 0.25221726298332214, 0.10696441680192947, 0.3758490979671478, 0.13192613422870636, -0.2536733150482178, 0.20592279732227325, 0.18251249194145203, -0.21432243287563324, 0.6236366033554077, -0.31063610315322876, 0.3434368669986725, 0.4052034020423889, 0.1811949461698532, -0.19000157713890076, -0.03811488673090935, 0.021020295098423958, 0.20601283013820648, 0.24695834517478943, -0.3663803040981293, -0.23557066917419434, -0.06323044002056122, 0.18203453719615936, 0.04969092458486557, 0.1599102020263672, 0.32513779401779175, 0.0974358543753624, 0.3078373968601227, 0.11862309277057648, 0.4503089487552643, -0.14878816902637482, 0.170805424451828, -0.107204370200634, 0.1341329962015152, -0.007213931530714035, 0.28471001982688904, 0.2316282093524933, 0.04254453256726265, 0.24320372939109802, 0.19885797798633575, 0.4407491087913513, -0.15632925927639008, 0.1626000851392746, 0.2973186671733856, -0.2611616849899292, 0.2581978738307953, 0.2804413139820099, 0.05069921538233757, 0.18646803498268127, -0.16585679352283478, 0.3415142595767975, -0.22848564386367798, -0.0036576411221176386, -0.019414013251662254, 0.0028681480325758457, -0.04934810474514961, -0.006272429600358009, 0.05348315089941025, -0.2535128891468048, -0.11394979804754257, -0.128163143992424, -0.2739524841308594, -0.4175282120704651, 0.13849934935569763, -0.10585562139749527, -0.16201543807983398, -0.7215718030929565, 0.14225119352340698, 0.13256965577602386, 0.44187816977500916, -0.16591615974903107, -0.05744669586420059, 0.051580704748630524, -0.15375462174415588, 0.18014484643936157, 0.4200519323348999, 0.17363709211349487, -0.20056162774562836, -0.12332231551408768, 0.0051050372421741486, -0.28624042868614197, -0.17898327112197876, 0.1752089411020279, 0.3023534417152405, 0.4547441005706787, 0.011845663189888, 0.14991779625415802, 0.15753182768821716, -0.06406357884407043, 0.2059069275856018, 0.1363328993320465, -0.08302588015794754, -0.1092211902141571, 0.2585863769054413, 0.1475926786661148, -0.2569751441478729, -0.19775591790676117, -0.012341680005192757, -0.2303878515958786, -0.23676392436027527, 0.4216785430908203, -0.1355619579553604, 0.08502497524023056, -0.10421570390462875, 0.13504579663276672, -0.08261702954769135, 0.3175186514854431, 0.44322827458381653, -0.14418284595012665, -0.1165921688079834, -0.07282549142837524, -0.040815990418195724, -0.21656450629234314, 0.09110844880342484, 0.1053294837474823, -0.14275716245174408, 0.030699387192726135, 0.29108038544654846, 0.17082759737968445, -0.37687256932258606, -0.11907737702131271, -0.061289992183446884, 0.0696210190653801, -0.486419141292572, 0.010039732791483402, 0.18543851375579834, 0.25851553678512573, -0.05040896683931351, 0.11695075780153275, -0.15813663601875305, -0.023228155449032784, 0.015578300692141056, -0.3896496593952179, 0.19580546021461487, 0.21188601851463318, 0.13573069870471954, 0.022418873384594917, -0.0431521050632, 0.46921876072883606, 0.012455515563488007, -0.08735193312168121, -0.16075047850608826, -0.35086286067962646, -0.08784475922584534, 0.2033873349428177, -0.0014766390668228269, 0.4487055838108063, -0.2618573307991028, -0.29690051078796387, 0.3471093475818634, -0.008351395837962627, -0.01225152239203453, -0.08262400329113007, -0.44847458600997925, 0.08595508337020874, -0.12865762412548065, -0.0025238601956516504, 0.268582284450531, 0.1318812072277069, 0.13555508852005005, -0.13891707360744476, -0.09118238836526871, -0.38518229126930237, 0.13716913759708405, -0.021432969719171524, 0.11093006283044815, -0.13782478868961334, 0.13090300559997559, 0.45739680528640747, 0.12238862365484238, -0.6342871785163879, -0.029826853424310684, 0.4297258257865906, -0.13909146189689636, 0.07529021799564362, 0.47323670983314514, 0.045410942286252975, -0.08113732188940048, -0.15978306531906128, 0.2771238684654236, -0.3164699375629425, -0.2770520746707916, -0.24066439270973206, -0.17422336339950562 ]
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.2610892355442047, -0.07662418484687805, -0.05322122201323509, 0.14644600450992584, 0.38581475615501404, 0.010254738852381706, 0.02544659748673439, 0.17635735869407654, -0.1791246086359024, 0.08384870737791061, 0.17901623249053955, 0.4352130591869354, 0.05886105075478554, 0.3545265197753906, 0.24038700759410858, 0.041625916957855225, 0.09441789239645004, 0.322826087474823, 0.03939513489603996, 0.04720400646328926, -0.369752436876297, 0.19553692638874054, -0.10321460664272308, 0.052232526242733, -0.25893548130989075, -0.060787737369537354, 0.010551507584750652, 0.2736925780773163, -0.2823360562324524, -0.5056849718093872, 0.2017231434583664, -0.09076420217752457, 0.20715072751045227, 0.2249622344970703, -0.0001033256048685871, -0.07002566754817963, 0.257282555103302, -0.20353762805461884, -0.07299761474132538, -0.31860774755477905, -0.1721760779619217, -0.3807741105556488, 0.05909859761595726, -0.25137263536453247, 0.015425671823322773, 0.29832521080970764, -0.017856549471616745, -0.0695011243224144, 0.4933335781097412, 0.36715197563171387, 0.32253366708755493, 0.11518651992082596, -0.12043851613998413, 0.1490379273891449, -0.00007402223855024204, 0.04818218946456909, -0.030163029208779335, 0.4893273413181305, 0.17141783237457275, -0.23374980688095093, 0.08544160425662994, 0.15753257274627686, -0.21839825809001923, -0.105162113904953, 0.07546327263116837, 0.10996732860803604, -0.16624505817890167, -0.3456837832927704, 0.12172019481658936, 0.09353765100240707, 0.25997573137283325, -0.28277021646499634, -0.03743602707982063, 0.10490290820598602, 0.1600744128227234, -0.6936114430427551, 0.2831137776374817, 0.36831313371658325, -0.26860564947128296, 0.1347336769104004, 0.013303807005286217, 0.1663532257080078, 0.027223581448197365, -0.05927775055170059, 0.07354190945625305, -0.0005280451150611043, -0.19281280040740967, -0.08729032427072525, 0.20688197016716003, 0.000638841709587723, 0.129369854927063, 0.0012706279521808028, -0.18455737829208374, 0.2111002504825592, -0.22593511641025543, -0.06721743196249008, -0.15384085476398468, 0.004109949339181185, -0.17602205276489258, -0.15660575032234192, 0.5614210367202759, 0.11084724217653275, 0.04701892286539078, 0.3558764159679413, 0.09987550973892212, 0.12488275021314621, -0.20478153228759766, 0.12991954386234283, 0.2539007067680359, -0.0032393557485193014, 0.21122775971889496, 0.0027607863303273916, -0.1976272016763687, -0.31833916902542114, -0.22646057605743408, 0.33687296509742737, 0.13308513164520264, -0.16729752719402313, -0.4322222173213959, 0.14324115216732025, 0.10575675219297409, 0.14135661721229553, 0.021306456997990608, 0.21310298144817352, 0.19556014239788055, 0.2922655940055847, 0.015584735199809074, 0.20123428106307983, -0.34979212284088135, -0.25783976912498474, -0.046728841960430145, 0.22182923555374146, -0.37682652473449707, -0.1314048320055008, 0.23589937388896942, -0.138722226023674, 0.11090374737977982, 0.2852519452571869, 0.1412976086139679, -0.18392623960971832, -0.0799180194735527, -0.15498113632202148, 0.05373839661478996, 0.13828407227993011, 0.0759720727801323, 0.13851256668567657, 0.1670152097940445, -0.31598302721977234, -0.0821787491440773, 0.101547971367836, -0.481861412525177, -0.022530673071742058, -0.05885109305381775, 0.2757769525051117, -0.06528206169605255, -0.06949286162853241, -0.5188577175140381, 0.1689959317445755, 0.08983426541090012, -0.3107699453830719, 0.026084914803504944, -0.21244606375694275, -0.14783601462841034, -0.18523988127708435, 0.15502282977104187, 0.5013543963432312, -0.5585451722145081, 0.1694432944059372, 0.21237215399742126, 0.015550106763839722, 0.31846508383750916, 0.12446145713329315, -0.09686439484357834, -0.14305716753005981, -0.1716029793024063, -0.021770691499114037, 0.2493201345205307, -0.2651790678501129, -0.22262461483478546, 0.30897006392478943, -0.09018293023109436, -0.05861268565058708, 0.046030037105083466, -0.10656601190567017, 0.14712859690189362, -0.18862901628017426, 0.1144835501909256, 0.37251943349838257, -0.01968223601579666, 0.28097301721572876, -0.21919210255146027, -0.18498779833316803, 0.22392770648002625, -0.004494288936257362, -0.2701483368873596, -0.11700259149074554, 0.21151816844940186, 0.06695040315389633, 0.19733835756778717, -0.14169329404830933, -0.20568105578422546, 0.1531885415315628, 0.24119457602500916, -0.204969123005867, -0.10224049538373947, 0.24129478633403778, 0.03584735840559006, -0.04033306986093521, -0.25605714321136475, 0.16370563209056854, -0.30692774057388306, -0.15025390684604645, -0.17048411071300507, 0.035158004611730576, -0.3680134117603302, -0.2693880796432495, 0.2428940385580063, -0.03711714223027229, -0.06839888542890549, -0.012357745319604874, -0.09559040516614914, 0.24679455161094666, -0.013406306505203247, -0.012604804709553719, -0.2271222025156021, 0.17894145846366882, -0.21314933896064758, -0.18688391149044037, 0.3183472156524658, 0.29551270604133606, 0.16681525111198425, -0.11773606389760971, -0.22451841831207275, 0.2406988888978958, 0.03729768469929695, 0.36371511220932007, -0.2209497094154358, -0.29437255859375, 0.45547914505004883, -0.46034783124923706, 0.06756377965211868, 0.4531860649585724, 0.29571732878685, -0.08738153427839279, 0.2294561266899109, 0.3592465817928314, -0.15948636829853058, -0.016738206148147583, -0.07259517908096313, -0.06143030524253845, 0.2579917311668396, 0.08488943427801132, 0.10848311334848404, -0.15747696161270142, 0.3592940866947174, 0.6213694214820862, 0.20192331075668335, -0.025705967098474503, -0.12329282611608505, 0.014180309139192104, 0.49811550974845886, -0.05185321718454361, -0.11698000133037567, 0.08976207673549652, 0.05357656255364418, -0.11140968650579453, 0.08948266506195068, 0.0712488442659378, 0.22731849551200867, -0.10566737502813339, -0.31251609325408936, 0.24577535688877106, 0.020614998415112495, -0.23078571259975433, 0.19051805138587952, -0.13440360128879547, -0.036811381578445435, -0.015629174187779427, 0.06084708496928215, 0.11061422526836395, -0.29077601432800293, -0.1287158727645874, 0.10400188714265823, 0.17763394117355347, -0.32104092836380005, 0.32189473509788513, -0.4479726254940033, -0.3783262073993683, -0.30876997113227844, 0.2326158732175827, -0.14332245290279388, 0.021925412118434906, -0.15951800346374512, 0.017354512587189674, 0.06311988085508347, 0.16839033365249634, -0.20438657701015472, 0.04005703702569008, -0.06831014156341553, -0.17543549835681915, 0.12252078205347061, -0.2182810753583908, -0.2620292603969574, 0.1559133529663086, 0.4287243187427521, -0.059966087341308594, 0.08356644958257675, -0.3489721715450287, 0.14156177639961243, 0.27667444944381714, -0.14653342962265015, 0.16012361645698547, -0.26120737195014954, 0.134397953748703, -0.037187352776527405, 0.09213414043188095, -0.06199514493346214, -0.40006503462791443, 0.15400058031082153, -0.05596865713596344, -0.07732897996902466, 0.18515299260616302, 0.007584546227008104, -0.32022854685783386, -0.26137661933898926, -0.11411182582378387, -0.49829110503196716, -0.3325832486152649, -0.18118035793304443, 0.0014526026789098978, 0.10167412459850311, 0.3449440598487854, 0.1368630975484848, 0.049755681306123734, 0.21421553194522858, -0.11424864083528519, -0.09440509229898453, -0.22199538350105286, 0.3507091999053955, -0.39769411087036133, -0.5242286920547485, 0.08968198299407959, -0.04436136409640312, 0.40020301938056946, -0.2082483023405075, -0.18530595302581787, -0.027338799089193344, -0.11319734901189804, 0.11915965378284454, 0.044981539249420166, 0.10422024875879288, -0.004182249773293734, -0.02279812842607498, -0.045914486050605774, -0.11863002926111221, -0.10145460069179535, -0.12920883297920227, 0.09624510258436203, 0.30295878648757935, 0.03990425914525986, 0.24789832532405853, -0.26610687375068665, 0.09984816610813141, 0.2606477439403534, 0.04746939614415169, 0.5908396244049072, -0.1422191858291626, 0.37432312965393066, -0.08166101574897766, -0.12480411678552628, 0.124635711312294, -0.27333778142929077, -0.056220266968011856, 0.2765931189060211, -0.11660319566726685, -0.2867608666419983, -0.3135624825954437, 0.039699237793684006, -0.35132816433906555, -0.29616713523864746, 0.18854570388793945, 0.05949988588690758, 0.09696049988269806, 0.02485041320323944, 0.1353805661201477, 0.0701625719666481, -0.3088003098964691, -0.11107895523309708, 0.298973023891449, -0.1462354212999344, 0.15208448469638824, -0.15216174721717834, -0.48398149013519287, -0.24144679307937622, 0.11344966292381287, 0.17112195491790771, 0.43591639399528503, -0.036738451570272446, 0.1763121783733368, 0.0794965922832489, -0.11913684755563736, 0.2165209800004959, 0.1351015716791153, 0.04350782930850983, 0.1071513369679451, 0.15856611728668213, 0.11581370234489441, -0.10625175386667252, -0.2047525942325592, 0.17654305696487427, 0.12130969017744064, -0.26269787549972534, -0.045727599412202835, 0.05516042560338974, 0.02299600839614868, 0.3702947497367859, -0.13299769163131714, 0.10605307668447495, -0.46335554122924805, -0.5534037351608276, -0.02461373247206211, -0.1616853028535843, 0.18985462188720703, 0.29340052604675293, -0.21985192596912384, 0.009320792742073536, 0.12020078301429749, -0.252286821603775, 0.24370749294757843, 0.42308446764945984, 0.3740915358066559, 0.1527099460363388, -0.022092508152127266, -0.18541952967643738, -0.07221917062997818, 0.1872948855161667, 0.7113948464393616, 0.03370855003595352, -0.3642604947090149, 0.11059434711933136, -0.2761213183403015, 0.31637343764305115, 0.19741861522197723, -0.17272230982780457, -0.07856234908103943, -0.12814335525035858, -0.06576436012983322, -0.22214949131011963, 0.08300258964300156, 0.2763553261756897, 0.17470666766166687, -0.5603710412979126, -0.4825354218482971, 0.46886441111564636, -0.09146106988191605, 0.19336503744125366, 0.03657082840800285, -0.06316421180963516, -0.30733948945999146, 0.2559743821620941, -0.011488940566778183, 0.8470348715782166, 0.20991568267345428, 0.12766775488853455, 0.2932151257991791, 0.017372770234942436, 0.29067277908325195, -0.08322519063949585, 0.20380298793315887, -0.29679974913597107, -0.16011080145835876, -0.012613117694854736, 0.1855672150850296, 0.24042411148548126, 0.06362307071685791, -0.35598325729370117, 0.22429172694683075, 0.06486082077026367, -0.16832268238067627, 0.1615428477525711, 0.1692887842655182, -0.18983836472034454, -0.25598323345184326, -0.5498684644699097, 0.2420230209827423, -0.0741749033331871, 0.059780362993478775, -0.09014052152633667, -0.20307540893554688, 0.020164677873253822, -0.3251199424266815, -0.2977226674556732, 0.2888046205043793, -0.4078465700149536, 0.16684558987617493, -0.20217104256153107, -0.6580182909965515, 0.2853275239467621, 0.12429003417491913, 0.19854675233364105, 0.20028994977474213, -0.02164551615715027, 0.12312989681959152, 0.2777644991874695, -0.022760961204767227, -0.013375855050981045, 0.11911078542470932, 0.0687003880739212, -0.16449055075645447, -0.06193991005420685, 0.16699416935443878, 0.1084960401058197, -0.005296876188367605, 0.4046761393547058, 0.039039358496665955, -0.21949505805969238, -0.11171095073223114, -0.22968924045562744, -0.2004287838935852, 0.18410323560237885, -0.059212516993284225, 0.19262033700942993, -0.0688742846250534, -0.1279045045375824, 0.003682740032672882, 0.06806222349405289, -0.30477407574653625, -0.1466597318649292, 0.06514162570238113, -0.06779764592647552, -0.15245147049427032, 0.49507567286491394, 0.16535736620426178, -0.23780053853988647, -0.11860742419958115, 0.22359679639339447, -0.16045543551445007, -0.4836040735244751, -0.04244961589574814, 0.19999633729457855, -0.01206279918551445, 0.04104297608137131, 0.6318265199661255, -0.01750301755964756, 0.017241375520825386, 0.10217846184968948, -0.49667418003082275, -0.2612888514995575, -0.06849535554647446, -0.10126559436321259, -0.04467250034213066, 0.2102421075105667, 0.3430010676383972, 0.10564202815294266, -0.14398175477981567, -0.348397821187973, 0.04695915803313255, -0.06357139348983765, 0.07444432377815247, 0.2907146215438843, -0.08194336295127869, 0.11723366379737854, 0.06072832643985748, 0.16601398587226868, 0.30020201206207275, -0.027597498148679733, -0.2418086975812912, -0.16976897418498993, 0.05613180994987488, -0.03564976900815964, -0.3160916268825531, -0.08206220716238022, 0.05053527653217316, -0.06929527968168259, -0.0936090275645256, 0.12228477001190186, 0.07307462394237518, 0.07308664917945862, 0.17470543086528778, -0.3870044946670532, 0.13151846826076508, -0.019795384258031845, 0.2080586701631546, -0.2156207412481308, 0.5619531273841858, 0.17978617548942566, 0.16045096516609192, 0.0498264916241169, 0.052741456776857376, -0.15327191352844238, -0.0252485740929842, -0.3163553476333618, 0.05783497542142868, 0.1277320832014084, -0.3855438232421875, 0.39053091406822205, 0.1264447271823883, -0.00826400425285101, 0.5075656175613403, -0.13792680203914642, -0.02117622271180153, 0.4258251190185547, 0.202047660946846, -0.32724398374557495, 0.10574492812156677, -0.3296951651573181, -0.06406547129154205, -0.07204896211624146, 0.2804109454154968, 0.2723199427127838, -0.15867534279823303, 0.21670104563236237, -0.14519575238227844, 0.43940383195877075, 0.13700462877750397, 0.39149272441864014, 0.4240073263645172, 0.1557474285364151, 0.2737903892993927, -0.09570969641208649, 0.12829194962978363, -0.04705696180462837, 0.08878304809331894, -0.5585889220237732, 0.029756616801023483, 0.09045188874006271, 0.17735594511032104, -0.14113500714302063, -0.38807588815689087, -0.04291016608476639, -0.1291217803955078, -0.19829802215099335, 0.3351868987083435, 0.14718201756477356, 0.5732955932617188, -0.47519901394844055, -0.053410571068525314, -0.12152528762817383, 0.16434767842292786, -0.15612806379795074, 0.05968357250094414, 0.07762318104505539, 0.013826542533934116, -0.2852061092853546, 0.1848023533821106, -0.039228327572345734, 0.12427673488855362, -0.0761309564113617, 0.3221031725406647, -0.18201488256454468, -0.05054103583097458, -0.01106733176857233, -0.004078908357769251, 0.06365898251533508, -0.08794938027858734, 0.47017061710357666, 0.2787475287914276, 0.19635558128356934, 0.2396335005760193, 0.09662771224975586, 0.6247937083244324, 0.4012521505355835, -0.1397327035665512, -0.037099163979291916, -0.17242148518562317, 0.06266660988330841, 0.12046792358160019, 0.09729167073965073, 0.31717970967292786, 0.43357038497924805, 0.14594227075576782, 0.2074575573205948, -0.13580644130706787, -0.08453108370304108, 0.28283268213272095, -0.02465757727622986, 0.06377808749675751, 0.09517889469861984, -0.0357818529009819, 0.22397758066654205, -0.5465281009674072, -0.07460007816553116, -0.3710961639881134, 0.28545233607292175, 0.3344537019729614, 0.07663320749998093, 0.03165268152952194, -0.11546769738197327, 0.12193190306425095, 0.11464385688304901, 0.4839324653148651, 0.2948761582374573, 0.06736572086811066, -0.19347484409809113, -0.02746753767132759, -0.7056217789649963, 0.22355100512504578, 0.09089922904968262, -0.37796255946159363, -0.2408953607082367, -0.28648829460144043, 0.017780914902687073, 0.33940085768699646, -0.04031495377421379, 0.27576950192451477, 0.08418929576873779, 0.060477666556835175, -0.08088621497154236, 0.01415431872010231, -0.17190438508987427, 0.011617624200880527, -0.24423786997795105, -0.2519826889038086, 0.06908085197210312, -0.2601276934146881, 0.1166035383939743, -0.28695905208587646, -0.2666418254375458, -0.43506482243537903, 0.002540288493037224, 0.27720537781715393, 0.19450850784778595, 0.4332048296928406, -0.2569179832935333, -0.13834187388420105, -0.11967195570468903, -0.17580164968967438, -0.06275180727243423, 0.3558364510536194, 0.2394195944070816, 0.0617622509598732, 0.05469990894198418, 0.14697280526161194, -0.38885068893432617, 0.31690558791160583, -0.03807824105024338, -0.16578981280326843, -0.24260662496089935, 0.03631642088294029, -0.0004942799569107592, -0.08873233199119568, 0.2033262848854065, 0.3809027075767517, -0.10027853399515152, 0.10848359763622284, -0.12042556703090668, -0.4743165373802185, 0.14040949940681458, -0.5154398083686829, -0.1619221419095993, 0.13509561121463776, 0.23748326301574707, -0.17789801955223083, 0.13828448951244354, -0.4251004755496979, 0.257764607667923, -0.02976897731423378, -0.18820516765117645, -0.28136515617370605, 0.2817208170890808, -0.30675071477890015, -0.10855171829462051, -0.08045709878206253, 0.4227132201194763, 0.2139989733695984, -0.1878928691148758, 0.10649912804365158, -0.317903071641922 ]
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.2695923447608948, -0.028840184211730957, -0.02087143063545227, 0.20285962522029877, 0.44842004776000977, -0.12191351503133774, -0.1402621865272522, 0.2741994857788086, -0.3068619668483734, 0.13081784546375275, 0.11824942380189896, 0.5972367525100708, 0.010758091695606709, 0.3725731670856476, 0.1493884027004242, 0.00748489098623395, -0.05019586533308029, 0.2807820439338684, 0.11429384350776672, 0.01605827361345291, -0.31244519352912903, 0.18047188222408295, -0.10919350385665894, -0.03225502371788025, -0.3568945825099945, -0.09025067090988159, 0.12765651941299438, 0.2784455120563507, -0.4236952066421509, -0.5119251608848572, 0.183394193649292, -0.012981596402823925, 0.22304685413837433, 0.26534730195999146, -0.00010584415576886386, -0.04543764144182205, 0.3183930516242981, -0.2982023358345032, -0.22164514660835266, -0.3611502945423126, -0.25169357657432556, -0.31509506702423096, 0.19892169535160065, -0.263783723115921, -0.10069126635789871, 0.2404017448425293, 0.019944284111261368, -0.09523824602365494, 0.5233158469200134, 0.29095304012298584, 0.29633018374443054, 0.07383272051811218, -0.07441147416830063, 0.1486847847700119, -0.0282302126288414, 0.1482580602169037, -0.14755772054195404, 0.4451700747013092, 0.2602996528148651, -0.09113547950983047, 0.1426790952682495, 0.2766980230808258, -0.15152062475681305, -0.05699343606829643, 0.04071412980556488, 0.04991905763745308, -0.1519034504890442, -0.4266541600227356, 0.12090637534856796, 0.10552901774644852, 0.17935696244239807, -0.3225930631160736, -0.09619460999965668, 0.08705587685108185, 0.19632817804813385, -0.5246254205703735, 0.2534210681915283, 0.3471791744232178, -0.29698753356933594, 0.09745147824287415, -0.0773087739944458, 0.10505517572164536, 0.03752041608095169, -0.03499789908528328, 0.07796128839254379, 0.21095553040504456, -0.1810683310031891, -0.06676287204027176, 0.13647545874118805, -0.021838385611772537, 0.21108457446098328, 0.012895453721284866, -0.22358864545822144, 0.17907825112342834, -0.1587536484003067, -0.13363884389400482, -0.18170066177845, -0.08758106827735901, -0.08736112713813782, -0.1382651925086975, 0.5145935416221619, 0.12066725641489029, -0.05869194120168686, 0.356067419052124, 0.1107805073261261, 0.10490984469652176, -0.09842135012149811, 0.2221192568540573, 0.18338032066822052, 0.12795667350292206, 0.09569426625967026, 0.029643559828400612, -0.2141442596912384, -0.1327172964811325, -0.3393447697162628, 0.28912630677223206, 0.14419080317020416, -0.16743047535419464, -0.3648921251296997, 0.08518238365650177, -0.028666766360402107, 0.10877231508493423, 0.14220227301120758, 0.20703133940696716, 0.15106754004955292, 0.23216699063777924, 0.06101899966597557, 0.26383066177368164, -0.3025707006454468, -0.25824078917503357, -0.09830155968666077, 0.25848323106765747, -0.3669601380825043, -0.11516664922237396, 0.19707046449184418, -0.09071116894483566, 0.19829697906970978, 0.13639546930789948, 0.1843988001346588, -0.2621591091156006, 0.046331554651260376, -0.12189515680074692, 0.06101958081126213, 0.08384033292531967, 0.08853983879089355, 0.03507712483406067, 0.1756177842617035, -0.3857578933238983, -0.09535161405801773, 0.10328731685876846, -0.493008017539978, 0.036409758031368256, -0.11235014349222183, 0.269691526889801, -0.1408185362815857, -0.054591692984104156, -0.5896957516670227, 0.15818284451961517, 0.05574874207377434, -0.26817452907562256, 0.07981108129024506, -0.1571030169725418, -0.07418087869882584, -0.17665491998195648, 0.21833793818950653, 0.42306622862815857, -0.40356746315956116, 0.03338932991027832, 0.2349449098110199, 0.05508333444595337, 0.33887720108032227, 0.06121492758393288, -0.2030249685049057, -0.1410147249698639, -0.10472717136144638, -0.03579934686422348, 0.38815006613731384, -0.4512212872505188, -0.21391306817531586, 0.2725942134857178, -0.05092722550034523, -0.02161591127514839, -0.030132418498396873, -0.13111606240272522, 0.05548136681318283, -0.10263241082429886, 0.13797760009765625, 0.4275484085083008, 0.0005010011955164373, 0.3331618010997772, -0.2610883116722107, -0.2735881805419922, 0.11344866454601288, 0.10895479470491409, -0.22556756436824799, -0.14876002073287964, 0.1748792976140976, 0.3316146433353424, 0.24495956301689148, -0.13013385236263275, -0.24559907615184784, 0.11324546486139297, 0.23607997596263885, -0.3353269100189209, -0.20258724689483643, 0.23051226139068604, 0.010262485593557358, -0.03924011439085007, -0.2957892119884491, 0.23973038792610168, -0.3415219485759735, -0.070960134267807, -0.13570567965507507, 0.0705728530883789, -0.4842481315135956, -0.2870798408985138, 0.2603209316730499, 0.00406973622739315, -0.14709432423114777, -0.04893186315894127, -0.1445101946592331, 0.30224159359931946, -0.04758485406637192, 0.010671623982489109, -0.29470109939575195, 0.21314649283885956, -0.18766190111637115, -0.28113725781440735, 0.30040213465690613, 0.27486202120780945, 0.19128167629241943, -0.16716380417346954, -0.2761872708797455, 0.17265819013118744, 0.0572981983423233, 0.34396153688430786, -0.173711895942688, -0.2655003070831299, 0.44788819551467896, -0.4799710214138031, 0.051421668380498886, 0.43978646397590637, 0.2158052921295166, -0.1009262353181839, 0.25647374987602234, 0.3604639172554016, -0.049856361001729965, 0.005790399387478828, -0.0060216085985302925, -0.1606789082288742, 0.19115373492240906, 0.02167455106973648, 0.04191407561302185, -0.1418725699186325, 0.24288322031497955, 0.697597324848175, 0.24687986075878143, -0.03032563626766205, -0.11353256553411484, 0.05222426727414131, 0.5576225519180298, 0.013454174622893333, -0.04850130155682564, 0.04799366742372513, 0.12088550627231598, -0.17395852506160736, 0.12389134615659714, 0.06891271471977234, 0.16678011417388916, -0.05298444628715515, -0.2737361192703247, 0.23462854325771332, 0.018539967015385628, -0.15787005424499512, 0.1978086680173874, -0.09908945858478546, 0.06866037845611572, 0.0721912533044815, 0.19925639033317566, 0.010044327937066555, -0.30359920859336853, -0.25336337089538574, 0.04245871677994728, 0.1445675939321518, -0.22978083789348602, 0.3444655239582062, -0.466902494430542, -0.4023389518260956, -0.23577208817005157, 0.14307479560375214, -0.18676485121250153, -0.057852841913700104, -0.120883509516716, -0.056839440017938614, 0.1553516834974289, 0.2601626217365265, -0.13328368961811066, -0.01139022782444954, -0.1319015622138977, -0.20661887526512146, 0.06437835842370987, -0.2219245582818985, -0.20307990908622742, 0.13320833444595337, 0.41378724575042725, -0.04752244055271149, 0.026172896847128868, -0.34085649251937866, 0.09646591544151306, 0.33361589908599854, -0.2299676239490509, 0.308339387178421, -0.2643304467201233, 0.15966974198818207, -0.02798384055495262, 0.10914619266986847, -0.09514543414115906, -0.3874911367893219, 0.2449338287115097, -0.024535944685339928, -0.12768350541591644, 0.05619053542613983, -0.1040131077170372, -0.20812243223190308, -0.24077536165714264, 0.02737860009074211, -0.48493632674217224, -0.34866365790367126, -0.20085448026657104, 0.12954607605934143, 0.13331541419029236, 0.3928813934326172, 0.22475217282772064, 0.16894541680812836, 0.21778129041194916, -0.05705416575074196, -0.13140133023262024, -0.38194799423217773, 0.2595171332359314, -0.3200515806674957, -0.33553215861320496, 0.04274117574095726, -0.06584452092647552, 0.5374212861061096, -0.22147801518440247, -0.17972907423973083, -0.1533397138118744, -0.008825625292956829, 0.10469350963830948, -0.06501072645187378, 0.13401970267295837, 0.004934394266456366, -0.011370264925062656, -0.014721051789820194, -0.15445907413959503, -0.13917486369609833, -0.07446601241827011, 0.1369941532611847, 0.4062228798866272, -0.08339594304561615, 0.22250622510910034, -0.22681844234466553, 0.07877416908740997, 0.22525522112846375, 0.0042766123078763485, 0.6793308258056641, -0.09745589643716812, 0.32273221015930176, -0.12814688682556152, -0.08775272220373154, 0.162557914853096, -0.10002113878726959, -0.07270665466785431, 0.19747918844223022, -0.04490119218826294, -0.2861955463886261, -0.3524034917354584, 0.015064139850437641, -0.3409990072250366, -0.23408713936805725, 0.09050079435110092, 0.262551873922348, -0.03973699361085892, -0.02301396243274212, 0.1832151859998703, 0.04061345010995865, -0.17799711227416992, -0.1238776445388794, 0.2872677147388458, -0.15259180963039398, 0.22168178856372833, -0.287013977766037, -0.5363568663597107, -0.16441628336906433, 0.13381338119506836, 0.2102368175983429, 0.2769465446472168, 0.044546060264110565, 0.18235023319721222, 0.13784204423427582, -0.16471971571445465, 0.1714298129081726, 0.07347066700458527, 0.007199655752629042, 0.0798158273100853, 0.10176534950733185, 0.02620508335530758, -0.10088735818862915, -0.16711808741092682, 0.1911313235759735, 0.1716032475233078, -0.18840166926383972, -0.1574798822402954, -0.0023052662145346403, 0.07058470696210861, 0.27526816725730896, -0.07509715110063553, 0.1587519496679306, -0.49373891949653625, -0.6795375347137451, -0.18205885589122772, -0.23359283804893494, 0.22089533507823944, 0.32663100957870483, -0.04348357021808624, -0.013529187999665737, 0.12518224120140076, -0.22384333610534668, 0.22707051038742065, 0.576701819896698, 0.42696091532707214, 0.25971099734306335, -0.08155253529548645, -0.18138004839420319, -0.08507422357797623, 0.24765567481517792, 0.7725040316581726, 0.03934837132692337, -0.24837446212768555, 0.1788683384656906, -0.09743250906467438, 0.2881154417991638, 0.28312769532203674, -0.08747288584709167, -0.10023771971464157, -0.18177060782909393, -0.056520771235227585, -0.10195381194353104, 0.25626036524772644, 0.14940859377384186, 0.020573487505316734, -0.5256540775299072, -0.4884113073348999, 0.5606646537780762, -0.05491581931710243, 0.18984009325504303, 0.10739029198884964, -0.04928833246231079, -0.31607598066329956, 0.2909817397594452, 0.08241719007492065, 0.9118975400924683, 0.2074114829301834, 0.1326511949300766, 0.37858933210372925, -0.007850642316043377, 0.266311377286911, -0.11122962832450867, 0.223399356007576, -0.29869481921195984, -0.06145643815398216, 0.05071078613400459, 0.13211476802825928, 0.12906013429164886, 0.07396624982357025, -0.3411414325237274, 0.15889416635036469, -0.030507070943713188, -0.3309115171432495, 0.12979726493358612, 0.3077482581138611, -0.20231249928474426, -0.25013142824172974, -0.7101191878318787, 0.22570669651031494, -0.2092168629169464, 0.03507080301642418, -0.08716487139463425, -0.2560059726238251, -0.07222357392311096, -0.29501327872276306, -0.20784088969230652, 0.3760320246219635, -0.5171036124229431, 0.10672075301408768, -0.06296345591545105, -0.5599793791770935, 0.24954375624656677, 0.12346740812063217, 0.10440825670957565, 0.21844486892223358, -0.01604488678276539, 0.24064584076404572, 0.2833397686481476, -0.0059495000168681145, 0.01105409674346447, 0.17585308849811554, 0.08053098618984222, -0.2479119449853897, -0.07700829207897186, 0.20054474472999573, 0.13862496614456177, -0.09121818095445633, 0.339009553194046, 0.04288506507873535, -0.20788820087909698, -0.10638543218374252, -0.3097414970397949, -0.1305738091468811, 0.14715580642223358, -0.0394899845123291, 0.16914905607700348, -0.02561059594154358, -0.20118451118469238, -0.07776198536157608, 0.262811541557312, -0.35462290048599243, -0.11166660487651825, 0.10453666746616364, -0.02366016060113907, -0.05511368438601494, 0.47005924582481384, 0.11001401394605637, -0.20287704467773438, -0.11282307654619217, 0.2733694911003113, -0.10008285939693451, -0.440672904253006, -0.01565643772482872, 0.13847985863685608, -0.1954839676618576, 0.008642374537885189, 0.7061376571655273, -0.013292739167809486, 0.051671359688043594, 0.22281010448932648, -0.39656659960746765, -0.33726128935813904, 0.03397956117987633, -0.14421486854553223, -0.009089459665119648, 0.17098559439182281, 0.4224151074886322, 0.01197795383632183, -0.07142935693264008, -0.3345585763454437, 0.07723680883646011, -0.1851820945739746, 0.09221774339675903, 0.09201769530773163, -0.14707231521606445, 0.13618965446949005, 0.10422976315021515, 0.16436535120010376, 0.326912522315979, -0.12798891961574554, -0.22199633717536926, -0.1826169788837433, 0.06941448152065277, -0.000019723662262549624, -0.3460964560508728, -0.21825571358203888, 0.052459027618169785, -0.07328471541404724, -0.0780799388885498, 0.12752072513103485, 0.02994331531226635, 0.1278793066740036, 0.1545257270336151, -0.2598353624343872, 0.07354428619146347, 0.07107232511043549, 0.12509192526340485, -0.0021257426124066114, 0.5763776898384094, 0.2222474366426468, 0.11968417465686798, 0.022108659148216248, 0.037083689123392105, -0.07273731380701065, -0.031100431457161903, -0.25515690445899963, 0.20318284630775452, 0.08677554130554199, -0.3685719966888428, 0.3687851130962372, 0.08116216957569122, -0.07435227930545807, 0.4766416549682617, -0.19202709197998047, -0.051104068756103516, 0.26780441403388977, 0.19453847408294678, -0.26869386434555054, 0.05658876523375511, -0.18238762021064758, -0.060192521661520004, -0.02397310733795166, 0.40541431307792664, 0.1480819582939148, -0.030543243512511253, 0.2371188998222351, -0.07087495923042297, 0.4369305670261383, 0.22652499377727509, 0.3792162537574768, 0.21388809382915497, -0.06767664849758148, 0.17078715562820435, -0.08431784063577652, 0.11060328781604767, -0.02693868614733219, -0.07613120973110199, -0.5743138194084167, 0.13850201666355133, 0.07514037936925888, 0.09835869073867798, 0.01619798317551613, -0.1613382250070572, -0.1337965428829193, -0.08205019682645798, -0.07032556086778641, 0.34027111530303955, 0.0914386510848999, 0.4065176844596863, -0.4054417312145233, -0.06609184294939041, -0.008206664584577084, 0.13072624802589417, -0.12023940682411194, 0.048769015818834305, 0.00256932619959116, -0.04466547071933746, -0.3869647979736328, 0.10051047056913376, -0.10382194072008133, 0.06036999449133873, -0.12922754883766174, 0.34649160504341125, -0.1597098559141159, 0.05601726099848747, 0.02904210425913334, 0.08749449998140335, 0.07930693030357361, -0.14786429703235626, 0.6503376364707947, 0.2597215175628662, 0.1448373943567276, 0.19507694244384766, 0.10923996567726135, 0.5741663575172424, 0.37796807289123535, -0.18208348751068115, -0.04523440822958946, -0.09107113629579544, 0.012746836990118027, 0.07133205980062485, 0.021548796445131302, 0.4151414632797241, 0.284860223531723, 0.23182164132595062, 0.20369569957256317, -0.16368986666202545, -0.15693974494934082, 0.26187705993652344, -0.05661851540207863, 0.10925357788801193, 0.2053094208240509, -0.09732098132371902, 0.2734781503677368, -0.4711078107357025, -0.09926734119653702, -0.43863046169281006, 0.30834412574768066, 0.23609882593154907, -0.001373320585116744, 0.031907737255096436, -0.21505895256996155, 0.1161063089966774, -0.04035690799355507, 0.5322920083999634, 0.2266666293144226, -0.00336869852617383, -0.1569129377603531, -0.08407342433929443, -0.5758488178253174, 0.25997722148895264, 0.06490317732095718, -0.44648829102516174, -0.1634182333946228, -0.18274633586406708, 0.021106649190187454, 0.4211798906326294, -0.009659156203269958, 0.3094615936279297, 0.15080620348453522, 0.0013075950555503368, -0.19902768731117249, -0.034094665199518204, -0.13090009987354279, 0.0468437559902668, -0.14824607968330383, -0.23979240655899048, -0.029027195647358894, -0.32428744435310364, 0.11476165801286697, -0.29619958996772766, -0.4041754901409149, -0.4243031144142151, 0.027178725227713585, 0.2851334512233734, 0.17059630155563354, 0.35889896750450134, -0.3229241967201233, -0.2342015653848648, -0.017481667920947075, -0.23766203224658966, -0.10614065825939178, 0.3435553312301636, 0.2130291610956192, 0.31976810097694397, 0.10299471020698547, 0.2732107937335968, -0.49376392364501953, 0.33576351404190063, -0.0837131142616272, -0.2716357707977295, -0.1880093216896057, 0.0018078094581142068, -0.08516841381788254, -0.02085248939692974, 0.0997847467660904, 0.37125450372695923, -0.033804576843976974, 0.15743952989578247, -0.18498638272285461, -0.4357161521911621, 0.3454655408859253, -0.42259836196899414, -0.16986697912216187, 0.2028684765100479, 0.12233014404773712, -0.15539036691188812, 0.07979856431484222, -0.5110163688659668, 0.2554682493209839, 0.019768664613366127, -0.12279295176267624, -0.27816298604011536, 0.295969158411026, -0.2903801500797272, -0.07860387116670609, -0.05855192244052887, 0.31282395124435425, 0.23996253311634064, -0.12064578384160995, -0.013589125126600266, -0.23343417048454285 ]
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.37319380044937134, -0.0007192498887889087, -0.05706842616200447, 0.1422874480485916, 0.46322643756866455, -0.058336373418569565, 0.010565089993178844, 0.2293296605348587, -0.28686606884002686, 0.04334607347846031, 0.15359462797641754, 0.45696961879730225, -0.013836088590323925, 0.3835914134979248, 0.2669278681278229, 0.025212842971086502, 0.016434375196695328, 0.28148728609085083, -0.10305970162153244, -0.021944580599665642, -0.27945011854171753, 0.15532627701759338, -0.06297596544027328, 0.002755171386525035, -0.38821059465408325, -0.05707778409123421, 0.07147713750600815, 0.277266263961792, -0.35693472623825073, -0.5312878489494324, 0.20947062969207764, 0.053536538034677505, 0.18639710545539856, 0.2738592028617859, -0.00010227885650238022, -0.002941163256764412, 0.3291231095790863, -0.23022271692752838, -0.15953968465328217, -0.2611716091632843, -0.24831129610538483, -0.35307836532592773, 0.11061502248048782, -0.2077699452638626, -0.02371996082365513, 0.16121415793895721, 0.03684881329536438, -0.12971678376197815, 0.4614188075065613, 0.2716953456401825, 0.3374944031238556, 0.16030524671077728, -0.06368318200111389, 0.11947163939476013, -0.02235664241015911, 0.1525048166513443, -0.0523621067404747, 0.3465827405452728, 0.25467270612716675, -0.1929520070552826, 0.0855829268693924, 0.25328493118286133, -0.13681085407733917, -0.09484092891216278, 0.05214731767773628, 0.03952720761299133, -0.16057011485099792, -0.384897381067276, 0.10532612353563309, 0.16007770597934723, 0.29788458347320557, -0.38796040415763855, -0.11832622438669205, 0.08822007477283478, 0.121018186211586, -0.47238409519195557, 0.2392139583826065, 0.30412614345550537, -0.24884989857673645, 0.13341137766838074, -0.07097543030977249, 0.11294403672218323, 0.02968841791152954, -0.036726463586091995, 0.014721231535077095, 0.09235654026269913, -0.12955863773822784, -0.0976857915520668, 0.12484122067689896, -0.0498688705265522, 0.18775790929794312, 0.050129473209381104, -0.20157919824123383, 0.19522914290428162, -0.1748971790075302, -0.09068552404642105, -0.1389021873474121, 0.03741997480392456, -0.01773301139473915, -0.12687060236930847, 0.47943931818008423, 0.18325713276863098, -0.0675334632396698, 0.3135920464992523, 0.14539048075675964, 0.060867760330438614, -0.1526661217212677, 0.2708893120288849, 0.21936102211475372, 0.03217025846242905, 0.13439053297042847, 0.07106973975896835, -0.16986426711082458, -0.2104024887084961, -0.2478930950164795, 0.2668914198875427, 0.15733908116817474, -0.18601109087467194, -0.41126930713653564, 0.09743642061948776, 0.14172697067260742, 0.05619892105460167, 0.06823787838220596, 0.21818141639232635, 0.22988156974315643, 0.313941091299057, -0.02917596697807312, 0.23343850672245026, -0.3556649088859558, -0.31583666801452637, -0.15235695242881775, 0.21180571615695953, -0.36927253007888794, -0.13075551390647888, 0.17762941122055054, -0.06067895516753197, 0.14888736605644226, 0.17136123776435852, 0.14500440657138824, -0.11410165578126907, 0.04146252200007439, -0.109373539686203, 0.10054970532655716, 0.13884297013282776, 0.043904561549425125, 0.09622763842344284, 0.18586266040802002, -0.28391143679618835, -0.08421981334686279, 0.06515627354383469, -0.40524813532829285, -0.02747384086251259, -0.13265712559223175, 0.30211037397384644, -0.0976724624633789, -0.07237354665994644, -0.5015490651130676, 0.1596667766571045, 0.10645194351673126, -0.25951075553894043, 0.0770503506064415, -0.19231273233890533, -0.06407647579908371, -0.14319270849227905, 0.20951950550079346, 0.47818049788475037, -0.49526360630989075, 0.06632779538631439, 0.19816090166568756, -0.05136679485440254, 0.3271406590938568, 0.06468896567821503, -0.15270382165908813, -0.0950651615858078, -0.1846715360879898, 0.01488378643989563, 0.34777212142944336, -0.3756852447986603, -0.268189936876297, 0.30388373136520386, -0.04303380846977234, -0.05524054169654846, 0.008512991480529308, -0.013337322510778904, 0.057476166635751724, -0.17727118730545044, 0.05951298028230667, 0.4527755677700043, -0.01603073440492153, 0.291761577129364, -0.2091446816921234, -0.25611060857772827, 0.19216933846473694, 0.13950714468955994, -0.20739425718784332, -0.15278135240077972, 0.2245236188173294, 0.26289138197898865, 0.25723570585250854, -0.09655889868736267, -0.21114805340766907, 0.20393869280815125, 0.1723731905221939, -0.2741018235683441, -0.16490662097930908, 0.15302766859531403, -0.053229887038469315, -0.012809690088033676, -0.2910029888153076, 0.22130092978477478, -0.3516926169395447, -0.1563194990158081, -0.15892912447452545, 0.03819841518998146, -0.4941665828227997, -0.25569629669189453, 0.2810659408569336, -0.01909657008945942, -0.1264655888080597, 0.0135042704641819, -0.1596524566411972, 0.2963833510875702, 0.01994369365274906, -0.019630838185548782, -0.3017687499523163, 0.21507184207439423, -0.15209777653217316, -0.2504402697086334, 0.30621689558029175, 0.2735084593296051, 0.08922851085662842, -0.1297212690114975, -0.1804228574037552, 0.2587803900241852, 0.04607174172997475, 0.39649498462677, -0.22969849407672882, -0.2436210662126541, 0.4404163658618927, -0.5327317118644714, 0.09914784878492355, 0.39411303400993347, 0.2343509942293167, -0.15958654880523682, 0.23407508432865143, 0.29266032576560974, -0.15304416418075562, -0.046736303716897964, 0.02124190703034401, -0.09994135797023773, 0.21211132407188416, 0.023097636178135872, 0.05033531412482262, -0.241947740316391, 0.3193283975124359, 0.5829181671142578, 0.335345059633255, -0.026066945865750313, -0.10825983434915543, 0.06745289266109467, 0.515914797782898, -0.03269956633448601, -0.004393058829009533, 0.03916051238775253, 0.06458503007888794, -0.13662080466747284, 0.08825917541980743, 0.10234057158231735, 0.19324176013469696, -0.018555795773863792, -0.21856626868247986, 0.222438246011734, -0.016993287950754166, -0.1787494421005249, 0.14334946870803833, -0.12766453623771667, 0.03185780718922615, 0.034728653728961945, 0.10803700238466263, -0.007887177169322968, -0.35786378383636475, -0.1810828596353531, 0.05370517075061798, 0.1668543517589569, -0.29679447412490845, 0.2733750343322754, -0.5112019777297974, -0.4090251922607422, -0.18688064813613892, 0.10791930556297302, -0.18117333948612213, -0.09478048980236053, -0.07682103663682938, -0.08537721633911133, 0.11533283442258835, 0.29086530208587646, -0.1969730108976364, -0.06157263368368149, -0.08301123231649399, -0.15932469069957733, -0.02045517787337303, -0.1876847743988037, -0.21834306418895721, 0.15283697843551636, 0.46145933866500854, 0.005901715252548456, 0.11120515316724777, -0.39168545603752136, 0.07324977964162827, 0.19476467370986938, -0.2173336148262024, 0.26963502168655396, -0.25600114464759827, 0.1230480745434761, 0.07183275371789932, 0.11631803214550018, 0.03126431256532669, -0.2786525785923004, 0.2485305517911911, -0.07088104635477066, -0.1150762289762497, 0.14097636938095093, -0.06822803616523743, -0.21055947244167328, -0.23683685064315796, 0.012648878619074821, -0.5228257179260254, -0.3507963716983795, -0.2645411193370819, 0.11859581619501114, 0.14282912015914917, 0.3499618172645569, 0.19771863520145416, 0.0584549605846405, 0.16394738852977753, -0.1200961247086525, -0.11100176721811295, -0.3482828438282013, 0.31668341159820557, -0.33202046155929565, -0.42804163694381714, 0.019336579367518425, -0.0038294808473438025, 0.48871925473213196, -0.11894483864307404, -0.23412181437015533, -0.09236754477024078, -0.12304948270320892, 0.1430979073047638, -0.03101370669901371, 0.14739540219306946, -0.02552463300526142, 0.011926335282623768, -0.042553532868623734, -0.14646603167057037, 0.007984587922692299, -0.06986813992261887, 0.0022526232060045004, 0.2842376232147217, -0.030131228268146515, 0.2277228832244873, -0.2086022049188614, 0.018959293141961098, 0.22356657683849335, -0.02246493473649025, 0.7035977244377136, -0.17420773208141327, 0.3842793107032776, -0.1911882907152176, -0.08751555532217026, 0.10263708978891373, -0.07671207189559937, -0.015614642761647701, 0.16114655137062073, -0.0796990841627121, -0.2145683765411377, -0.2738918960094452, 0.053056810051202774, -0.2512013018131256, -0.24269738793373108, 0.10963831096887589, 0.1152196079492569, 0.01277970988303423, -0.00020656221022363752, 0.1531669944524765, 0.08823732286691666, -0.2258843034505844, -0.06636115908622742, 0.16485750675201416, -0.1595698446035385, 0.2148158997297287, -0.29645588994026184, -0.29835838079452515, -0.25775399804115295, 0.11073454469442368, 0.1485256552696228, 0.3356165587902069, -0.07909683883190155, 0.1531945914030075, 0.11683045327663422, -0.12914596498012543, 0.2168402522802353, 0.029131820425391197, 0.11425939202308655, 0.08790580183267593, 0.09014548361301422, -0.018889358267188072, -0.07589396834373474, -0.19780465960502625, 0.17196393013000488, 0.0955979973077774, -0.19606855511665344, -0.16992823779582977, -0.001631939085200429, 0.05898600071668625, 0.37722525000572205, -0.09780392050743103, 0.1263488233089447, -0.42873576283454895, -0.6874220967292786, -0.11773989349603653, -0.2442571520805359, 0.23441407084465027, 0.24733802676200867, -0.09499607980251312, -0.04442765936255455, 0.006607903633266687, -0.24739804863929749, 0.21899287402629852, 0.4687687158584595, 0.41772836446762085, 0.12958519160747528, 0.022317688912153244, -0.13599401712417603, -0.10608559101819992, 0.2562142014503479, 0.7766753435134888, 0.022011514753103256, -0.2808935046195984, 0.09669218212366104, -0.2284713238477707, 0.2586400508880615, 0.22585232555866241, -0.07655040919780731, -0.15817861258983612, -0.09578213095664978, -0.06409566104412079, -0.21748048067092896, 0.20452217757701874, 0.2207329124212265, 0.12831422686576843, -0.6074514389038086, -0.5158421993255615, 0.4817233085632324, -0.025736721232533455, 0.20491528511047363, 0.1231783926486969, -0.07495005428791046, -0.35528895258903503, 0.26220330595970154, 0.035132069140672684, 0.8382994532585144, 0.15882904827594757, 0.2284819483757019, 0.32263755798339844, 0.13869920372962952, 0.18743743002414703, -0.031784359365701675, 0.10919837653636932, -0.35606324672698975, -0.18519416451454163, -0.019519135355949402, 0.15094800293445587, 0.19317388534545898, 0.13527828454971313, -0.31184321641921997, 0.1862613558769226, -0.053886786103248596, -0.273714154958725, 0.15165069699287415, 0.26980650424957275, -0.27377527952194214, -0.20560134947299957, -0.6117542386054993, 0.2700067460536957, -0.11867866665124893, 0.027253348380327225, -0.11516709625720978, -0.20424434542655945, 0.014221937395632267, -0.3317553400993347, -0.2252708524465561, 0.33481383323669434, -0.4587015211582184, 0.23001937568187714, -0.13536523282527924, -0.6156853437423706, 0.16282516717910767, 0.172041654586792, 0.15077705681324005, 0.19378039240837097, -0.010166360065340996, 0.25710979104042053, 0.25590571761131287, 0.0317179374396801, 0.05553550273180008, 0.14005017280578613, 0.15179209411144257, -0.1858288049697876, -0.08831486850976944, 0.15212593972682953, 0.13775530457496643, -0.06205545738339424, 0.2877080738544464, -0.006257009692490101, -0.15872704982757568, -0.12838111817836761, -0.27580004930496216, -0.17050161957740784, 0.18489022552967072, -0.05519569665193558, 0.2012416571378708, -0.006244559772312641, -0.17442068457603455, -0.0054244729690253735, 0.1873113512992859, -0.31819796562194824, -0.1325163096189499, 0.08285119384527206, -0.055568356066942215, -0.07885702699422836, 0.5007190108299255, 0.21002896130084991, -0.21927858889102936, -0.166902557015419, 0.24937571585178375, -0.0017976862145587802, -0.5435650944709778, -0.03128041699528694, 0.14540284872055054, -0.08859603852033615, -0.0008257159497588873, 0.6154594421386719, -0.07819070667028427, -0.03785059228539467, 0.12496459484100342, -0.4164334535598755, -0.33830803632736206, -0.01995237171649933, -0.10589451342821121, 0.07690135389566422, 0.13537128269672394, 0.30305925011634827, 0.01790457032620907, -0.07519268989562988, -0.37583401799201965, 0.05784225091338158, -0.15998323261737823, 0.051288433372974396, 0.16270211338996887, -0.05973270535469055, 0.11412064731121063, 0.0571746863424778, 0.20424236357212067, 0.29575181007385254, -0.05877520516514778, -0.2655421495437622, -0.16333408653736115, 0.04482116177678108, -0.04473072662949562, -0.34389811754226685, -0.08632829785346985, 0.04974480718374252, -0.13549332320690155, -0.08142741024494171, 0.16210156679153442, 0.13292770087718964, 0.09650354087352753, 0.18381141126155853, -0.2290923297405243, 0.05409429222345352, 0.0325159877538681, 0.16187521815299988, -0.10496313869953156, 0.4907984137535095, 0.18597018718719482, 0.14437554776668549, 0.04784129559993744, -0.0010488195111975074, -0.0478380024433136, 0.023732854053378105, -0.21633055806159973, 0.09686119854450226, 0.09826792031526566, -0.39745140075683594, 0.40326738357543945, 0.10524515062570572, 0.03816336765885353, 0.48291802406311035, -0.2567422389984131, -0.11139728873968124, 0.33769136667251587, 0.24410757422447205, -0.3323169946670532, 0.0228851567953825, -0.2274404615163803, -0.04869065061211586, -0.02707267738878727, 0.35495325922966003, 0.17545738816261292, -0.07446328550577164, 0.20377452671527863, -0.08595509827136993, 0.44258832931518555, 0.10054855048656464, 0.366566002368927, 0.30801481008529663, -0.049370527267456055, 0.15411552786827087, -0.10386073589324951, 0.15908190608024597, -0.09204551577568054, 0.1089133620262146, -0.5868616700172424, 0.17263227701187134, 0.050714775919914246, 0.11861775815486908, -0.05046970397233963, -0.2833317518234253, -0.06981897354125977, -0.035947415977716446, -0.12646569311618805, 0.31505098938941956, 0.17283780872821808, 0.4308014512062073, -0.33972299098968506, -0.03707589581608772, -0.07463665306568146, 0.18771427869796753, -0.11544951796531677, 0.053883109241724014, 0.02226780541241169, -0.02187863551080227, -0.32082149386405945, 0.11869046092033386, -0.12084108591079712, 0.05197758600115776, -0.013572515919804573, 0.3341330289840698, -0.11799214780330658, -0.09279341995716095, 0.05952232703566551, 0.005821453873068094, -0.020827583968639374, -0.12026061117649078, 0.5656139850616455, 0.3377196192741394, 0.17678788304328918, 0.32596296072006226, 0.16477635502815247, 0.6169275045394897, 0.4158921241760254, -0.12835820019245148, 0.03290916979312897, -0.19918309152126312, 0.044821515679359436, 0.009314033202826977, 0.09493174403905869, 0.26982808113098145, 0.3797508478164673, 0.24349486827850342, 0.23330485820770264, -0.16681735217571259, -0.1974407285451889, 0.2925792932510376, 0.015613113529980183, 0.08783288300037384, 0.21616265177726746, -0.09289521723985672, 0.21027007699012756, -0.5015557408332825, -0.048959072679281235, -0.4342525601387024, 0.2403140813112259, 0.4158197343349457, 0.020652860403060913, 0.055910661816596985, -0.20334775745868683, 0.1347760707139969, 0.0010748394997790456, 0.5677644610404968, 0.28402793407440186, 0.0830741748213768, -0.09338375180959702, -0.08146797865629196, -0.7156071066856384, 0.24704302847385406, 0.039961397647857666, -0.4754849970340729, -0.1407996416091919, -0.2607807517051697, 0.10110338777303696, 0.3434418737888336, 0.09725473076105118, 0.3271719515323639, 0.07046791911125183, 0.06941744685173035, -0.1378183513879776, -0.019006643444299698, -0.18519575893878937, 0.1184411346912384, -0.26288264989852905, -0.3089423179626465, 0.04039439931511879, -0.273783802986145, 0.1577046513557434, -0.30796268582344055, -0.2911492884159088, -0.40045076608657837, 0.024614350870251656, 0.26644861698150635, 0.20226994156837463, 0.4083617925643921, -0.2999081015586853, -0.20406047999858856, -0.10893217474222183, -0.2557530701160431, -0.1500161737203598, 0.3890317678451538, 0.20266804099082947, 0.13938869535923004, 0.09565282613039017, 0.15327657759189606, -0.47048890590667725, 0.3255022466182709, -0.07762446254491806, -0.09819852560758591, -0.22441694140434265, 0.0946475937962532, 0.009989707730710506, -0.04358317330479622, 0.15343962609767914, 0.3403100073337555, 0.00017933628987520933, 0.1427144557237625, -0.13304978609085083, -0.48240360617637634, 0.25741443037986755, -0.45931199193000793, -0.22526510059833527, 0.13887736201286316, 0.10240203142166138, -0.17153964936733246, 0.05297575145959854, -0.5021644234657288, 0.2745053470134735, 0.02100568264722824, -0.14946044981479645, -0.27248185873031616, 0.3049333989620209, -0.23368039727210999, -0.06413231045007706, -0.08720947802066803, 0.3601800799369812, 0.17893943190574646, -0.1736198514699936, -0.006708571221679449, -0.24035489559173584 ]
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.2841985523700714, -0.1710125356912613, -0.010297529399394989, 0.24634698033332825, 0.4728092849254608, -0.058877091854810715, -0.14265520870685577, 0.21194729208946228, -0.26024529337882996, 0.12634645402431488, 0.08915408700704575, 0.5027426481246948, -0.04542098194360733, 0.4290333688259125, 0.28501325845718384, 0.013322331942617893, 0.0035833530128002167, 0.27518099546432495, -0.007773753721266985, 0.0021375457290560007, -0.2719275653362274, 0.1288374662399292, -0.16851529479026794, 0.00825392734259367, -0.45153263211250305, 0.014207563363015652, 0.08791390806436539, 0.23228833079338074, -0.32101529836654663, -0.646718442440033, 0.29006657004356384, -0.09199061244726181, 0.23751050233840942, 0.3235114514827728, -0.0001081838199752383, -0.04820530489087105, 0.3104087710380554, -0.2778414189815521, -0.06581021845340729, -0.2856351435184479, -0.2337791621685028, -0.34303876757621765, 0.10139734297990799, -0.2250877320766449, -0.08949290215969086, 0.22581888735294342, -0.05451061949133873, -0.11396662890911102, 0.46011728048324585, 0.2725270986557007, 0.2595207095146179, 0.12878069281578064, -0.021799201145768166, 0.060735903680324554, 0.06046687439084053, 0.11541463434696198, -0.09052269160747528, 0.48675304651260376, 0.3114893436431885, -0.11955271661281586, 0.19332878291606903, 0.25430500507354736, -0.1568315029144287, -0.13347546756267548, 0.12591011822223663, -0.01696472242474556, 0.005389781668782234, -0.43570858240127563, 0.041773341596126556, 0.22047391533851624, 0.15145280957221985, -0.3889329135417938, -0.02769606001675129, 0.1341763436794281, 0.11998511850833893, -0.5919209122657776, 0.253496915102005, 0.3236525058746338, -0.240982785820961, 0.1225276067852974, -0.0020335307344794273, 0.16516214609146118, 0.07043852657079697, -0.11129865050315857, 0.04440174996852875, 0.132552832365036, -0.21287426352500916, -0.095421202480793, 0.17893683910369873, 0.05462900921702385, 0.28676238656044006, 0.09043418616056442, -0.21258889138698578, 0.19405116140842438, -0.31904393434524536, -0.06557169556617737, -0.19156008958816528, -0.05879129096865654, -0.06756015121936798, -0.11822942644357681, 0.4792560338973999, 0.09958449751138687, 0.03261411935091019, 0.26874786615371704, 0.10606282949447632, 0.07776904851198196, -0.1224478930234909, 0.20075920224189758, 0.15577107667922974, 0.07664220035076141, 0.1295708566904068, 0.02295699343085289, -0.22603194415569305, -0.1936635971069336, -0.2553223669528961, 0.350262850522995, 0.1382743865251541, -0.22793669998645782, -0.4356723129749298, 0.07557181268930435, 0.0437258705496788, 0.15261252224445343, 0.13080540299415588, 0.20086133480072021, 0.29308202862739563, 0.3658080995082855, 0.0010360197629779577, 0.300588995218277, -0.31992512941360474, -0.39428019523620605, -0.10517947375774384, 0.32045477628707886, -0.421242356300354, -0.10097215324640274, 0.13553966581821442, -0.1225452721118927, 0.13912351429462433, 0.23841726779937744, 0.22633379697799683, -0.37255725264549255, 0.025078333914279938, -0.1242954283952713, -0.024258926510810852, 0.10463006049394608, 0.02233012206852436, 0.09548020362854004, 0.19460786879062653, -0.214974045753479, -0.09512411803007126, 0.09506829082965851, -0.5300654768943787, -0.08777131885290146, 0.024264995008707047, 0.24654459953308105, -0.06896158307790756, 0.011031213216483593, -0.6024032831192017, 0.09461289644241333, 0.14635369181632996, -0.22191011905670166, 0.10359766334295273, -0.21481956541538239, 0.008542617782950401, -0.18591836094856262, 0.22756832838058472, 0.43298253417015076, -0.4388880431652069, 0.06163541227579117, 0.18664434552192688, 0.02474166266620159, 0.3251601457595825, -0.03089793212711811, -0.20358727872371674, -0.09524869918823242, -0.14794163405895233, -0.08229991793632507, 0.3361433446407318, -0.454246461391449, -0.2818063497543335, 0.2109290510416031, -0.08425460755825043, -0.006145700346678495, 0.0338437557220459, -0.07131180167198181, 0.024323925375938416, -0.250199556350708, 0.020887698978185654, 0.3124952018260956, 0.03463420644402504, 0.2238522320985794, -0.2625688910484314, -0.2556949555873871, 0.18889106810092926, 0.02249038964509964, -0.21240916848182678, -0.2279866635799408, 0.16984108090400696, 0.24445633590221405, 0.26500967144966125, -0.07168394327163696, -0.2540249526500702, 0.22667106986045837, 0.16362588107585907, -0.2654483914375305, -0.15304741263389587, 0.14787697792053223, 0.09759204834699631, -0.00856685172766447, -0.4412301778793335, 0.1540108174085617, -0.1883801817893982, -0.11669430136680603, -0.15199808776378632, 0.07568631321191788, -0.5332610011100769, -0.29024145007133484, 0.22594621777534485, -0.05128859356045723, -0.10363073647022247, -0.012842766009271145, -0.18435099720954895, 0.24847590923309326, -0.09603846073150635, -0.023813307285308838, -0.32274770736694336, 0.16928870975971222, -0.14798791706562042, -0.25450223684310913, 0.3124352991580963, 0.2807561457157135, 0.2038685530424118, -0.1880599707365036, -0.30293986201286316, 0.24585801362991333, 0.04499048739671707, 0.35587409138679504, -0.3245796263217926, -0.23042863607406616, 0.42062127590179443, -0.6723704934120178, 0.14624497294425964, 0.432742178440094, 0.23004867136478424, -0.08632170408964157, 0.3771477937698364, 0.28020909428596497, 0.009949772618710995, -0.024915924295783043, -0.09984339028596878, -0.11234638094902039, 0.13500665128231049, 0.034735776484012604, 0.14974746108055115, -0.15321271121501923, 0.3822411298751831, 0.6770517230033875, 0.2885442078113556, -0.06593817472457886, -0.003192431293427944, 0.04999304935336113, 0.4282435476779938, -0.031340617686510086, 0.009942357428371906, 0.02773706056177616, 0.011520165018737316, -0.1405826061964035, 0.048286039382219315, 0.06749773025512695, 0.15775801241397858, -0.09383236616849899, -0.3045617640018463, 0.2788316607475281, 0.06545378267765045, -0.13556528091430664, 0.191029354929924, -0.10558833926916122, -0.06991244852542877, 0.014246280305087566, 0.09242191910743713, 0.040595121681690216, -0.1860479861497879, -0.11297041922807693, 0.09570576995611191, 0.14829710125923157, -0.3401215672492981, 0.2751014828681946, -0.46264711022377014, -0.3754614293575287, -0.17835424840450287, 0.2071150690317154, -0.1286838948726654, -0.007648497819900513, -0.16078414022922516, -0.10411179810762405, 0.15168727934360504, 0.28430917859077454, -0.1858733892440796, -0.0620628260076046, -0.11346320807933807, -0.16412025690078735, 0.11647845804691315, -0.12771055102348328, -0.25539883971214294, 0.08234541118144989, 0.4200480282306671, 0.025166736915707588, 0.0639338493347168, -0.3856787085533142, 0.13576792180538177, 0.3003233075141907, -0.17553822696208954, 0.2783757746219635, -0.2725764214992523, 0.15618647634983063, 0.026064593344926834, 0.03883901983499527, -0.043962977826595306, -0.22123311460018158, 0.24254846572875977, -0.14990654587745667, -0.00407910393550992, 0.14088360965251923, -0.030993351712822914, -0.20171332359313965, -0.16607420146465302, -0.008595147170126438, -0.5145347714424133, -0.33671313524246216, -0.31985536217689514, 0.00432359566912055, 0.13155882060527802, 0.2935812771320343, 0.13601312041282654, 0.12353289127349854, 0.1453145146369934, -0.11201900243759155, -0.06691129505634308, -0.43519526720046997, 0.2787836790084839, -0.2855578660964966, -0.38273492455482483, 0.05677413195371628, -0.05429629608988762, 0.5393145680427551, -0.14943291246891022, -0.18555548787117004, -0.05958884581923485, -0.07932337373495102, 0.04594941437244415, -0.0032107539009302855, 0.16242669522762299, -0.0027856710366904736, -0.07088936865329742, 0.017563791945576668, -0.1337158977985382, 0.02549418807029724, -0.061781905591487885, 0.03627745434641838, 0.3804638683795929, 0.0331328809261322, 0.18453684449195862, -0.20002368092536926, 0.0022228495217859745, 0.28381651639938354, 0.07514318078756332, 0.7266830205917358, -0.10429515689611435, 0.3343743681907654, -0.15723654627799988, -0.08791099488735199, 0.031176768243312836, -0.153988316655159, 0.00819647777825594, 0.05136771500110626, -0.040837258100509644, -0.12353594601154327, -0.30657246708869934, -0.07197307795286179, -0.17563728988170624, -0.25407886505126953, 0.06412070989608765, 0.1964409202337265, 0.12487741559743881, -0.07567621767520905, 0.19001881778240204, 0.11539450287818909, -0.23328740894794464, 0.034115683287382126, 0.30922892689704895, -0.13635972142219543, 0.2283603549003601, -0.3142041265964508, -0.4231188893318176, -0.12522493302822113, 0.17078642547130585, 0.21698933839797974, 0.3219677805900574, 0.03256416320800781, 0.18439985811710358, 0.12405899912118912, -0.11914647370576859, 0.11059462279081345, 0.15130937099456787, 0.11047958582639694, 0.10947811603546143, 0.03639351949095726, 0.08510158956050873, -0.12293656915426254, -0.1389254331588745, 0.09265486150979996, 0.09197837114334106, -0.30649203062057495, -0.14300836622714996, -0.029589742422103882, 0.05370673909783363, 0.40732115507125854, -0.09484616667032242, 0.1092241033911705, -0.43527862429618835, -0.6628599166870117, -0.11234728246927261, -0.26168736815452576, 0.2751929461956024, 0.28045156598091125, -0.09304936975240707, -0.021157877519726753, 0.0791032686829567, -0.25055432319641113, 0.3101434111595154, 0.42749112844467163, 0.5339713096618652, 0.08626434206962585, -0.019454864785075188, -0.17622043192386627, -0.24265527725219727, 0.27613845467567444, 0.6962292194366455, -0.02279381826519966, -0.22883340716362, 0.15701952576637268, -0.13088689744472504, 0.2720614969730377, 0.25418585538864136, -0.18722282350063324, -0.07838819175958633, -0.2135688066482544, -0.10600268095731735, -0.15559545159339905, 0.23632463812828064, 0.20618413388729095, 0.0780973881483078, -0.6163371801376343, -0.5784112215042114, 0.6196984648704529, 0.003947460558265448, 0.183207705616951, 0.1434497833251953, -0.02247042767703533, -0.31267064809799194, 0.13876007497310638, 0.06171323359012604, 0.9569504261016846, 0.21000555157661438, 0.13387012481689453, 0.30636659264564514, 0.09358499944210052, 0.14032265543937683, -0.12796853482723236, 0.21710078418254852, -0.33264681696891785, -0.21940797567367554, 0.002850291784852743, 0.07857933640480042, 0.1480817198753357, -0.0010916988831013441, -0.26614102721214294, 0.23393787443637848, -0.09669546782970428, -0.3270170986652374, 0.12153143435716629, 0.1934320032596588, -0.24530793726444244, -0.14368461072444916, -0.607085645198822, 0.21409933269023895, -0.11800152063369751, 0.018174126744270325, -0.12408602237701416, -0.23412522673606873, -0.046203672885894775, -0.3025851249694824, -0.1978779435157776, 0.3659678101539612, -0.4864291846752167, 0.1834527999162674, -0.13198044896125793, -0.68561190366745, 0.2966015040874481, -0.006887840572744608, 0.07502791285514832, 0.21515104174613953, 0.00872321892529726, 0.23252788186073303, 0.3472607433795929, -0.008436665870249271, 0.10088883340358734, 0.13943080604076385, 0.02475806511938572, -0.18417055904865265, -0.043343640863895416, 0.25496912002563477, 0.11617391556501389, -0.03881510719656944, 0.2637771964073181, -0.058636412024497986, -0.12366621941328049, -0.17596164345741272, -0.2906425893306732, -0.21015186607837677, 0.2039058357477188, -0.06436972320079803, 0.15806375443935394, 0.0173809714615345, -0.23337003588676453, -0.0397101566195488, 0.11442843824625015, -0.3184390962123871, -0.1402508020401001, 0.046860381960868835, 0.010398702695965767, -0.08288417011499405, 0.48985734581947327, 0.2013559490442276, -0.14917735755443573, -0.09126859903335571, 0.321854829788208, 0.04273676872253418, -0.5850660800933838, 0.05453082174062729, 0.11391910910606384, -0.10642165690660477, 0.05979275703430176, 0.7707695364952087, -0.012122143059968948, -0.08166227489709854, 0.1693044900894165, -0.3554030656814575, -0.3297327756881714, -0.002199014415964484, -0.12683172523975372, 0.053509511053562164, 0.11779887229204178, 0.5053521990776062, 0.03039165586233139, -0.09442087262868881, -0.30832570791244507, 0.09387489408254623, -0.07974889129400253, -0.0014513522619381547, 0.14565090835094452, -0.06199818477034569, 0.1321709007024765, 0.15971656143665314, 0.1371440291404724, 0.37836533784866333, -0.10369778424501419, -0.18380334973335266, -0.12082766741514206, 0.08953777700662613, -0.07627612352371216, -0.3509170711040497, -0.13857436180114746, 0.0530448853969574, -0.08400341123342514, -0.016541143879294395, 0.10914567857980728, 0.05379144474864006, 0.09793530404567719, 0.16588306427001953, -0.3130359947681427, -0.007854037918150425, -0.01782871037721634, 0.2861250340938568, -0.09054531902074814, 0.46749013662338257, 0.1526813507080078, 0.08842398226261139, 0.0615561380982399, 0.0038010019343346357, -0.19242002069950104, -0.016233263537287712, -0.23172304034233093, 0.042978961020708084, 0.10865189880132675, -0.40800729393959045, 0.3844200074672699, 0.1662028282880783, -0.07849793881177902, 0.511318564414978, -0.2503391206264496, -0.000270830380031839, 0.29077017307281494, 0.16520121693611145, -0.30328088998794556, 0.09855613857507706, -0.2944169342517853, 0.010941100306808949, -0.12267729640007019, 0.4289170205593109, 0.29693618416786194, -0.13559195399284363, 0.24634121358394623, -0.041978444904088974, 0.46574756503105164, 0.16419583559036255, 0.4294070899486542, 0.3339248597621918, 0.11760994791984558, 0.1835433542728424, -0.12044604122638702, 0.1563706248998642, -0.042437952011823654, -0.028828516602516174, -0.6253310441970825, 0.18364375829696655, 0.08308673650026321, 0.08892136067152023, -0.04049735143780708, -0.2828100323677063, -0.18423444032669067, -0.052300237119197845, -0.1952907145023346, 0.33394113183021545, 0.05540255084633827, 0.4945182204246521, -0.4045983850955963, -0.05430876463651657, -0.09035340696573257, 0.19134455919265747, -0.10625021159648895, 0.11584684252738953, 0.17516718804836273, -0.02953018806874752, -0.3728175759315491, 0.0510006919503212, -0.04789150506258011, 0.15162356197834015, -0.09849824011325836, 0.3364897668361664, -0.16814710199832916, 0.006247902289032936, 0.020967984572052956, 0.18375946581363678, 0.07459992915391922, -0.13022464513778687, 0.565500020980835, 0.38682880997657776, 0.16326579451560974, 0.26510941982269287, 0.11873016506433487, 0.5911539196968079, 0.4245757758617401, -0.17831362783908844, -0.005731834098696709, -0.0481446273624897, 0.07029830664396286, 0.19871072471141815, 0.03540999814867973, 0.28029415011405945, 0.4603327512741089, 0.18720084428787231, 0.17041537165641785, -0.13490045070648193, -0.2581371068954468, 0.18444384634494781, 0.024945003911852837, -0.0015241659712046385, 0.28833362460136414, -0.07200658321380615, 0.2568308413028717, -0.5061604380607605, -0.11532990634441376, -0.4890582263469696, 0.29659396409988403, 0.4165184795856476, 0.03722137585282326, -0.04089738801121712, -0.2159249186515808, 0.09961018711328506, -0.02849406935274601, 0.48447853326797485, 0.24720317125320435, 0.030310478061437607, -0.2621783912181854, -0.10037773102521896, -0.6561937928199768, 0.2546974718570709, 0.028343960642814636, -0.4872550964355469, -0.13072167336940765, -0.30529579520225525, -0.005794348195195198, 0.3557794988155365, 0.1714766025543213, 0.328945517539978, 0.08510477840900421, 0.09112251549959183, -0.12068232893943787, -0.023727450519800186, -0.23090116679668427, 0.08879873156547546, -0.15668566524982452, -0.20040859282016754, 0.01852291077375412, -0.2647871971130371, 0.0986330509185791, -0.2584553062915802, -0.3411828577518463, -0.27367424964904785, 0.04812037944793701, 0.3000490665435791, 0.13533051311969757, 0.39119288325309753, -0.183462992310524, -0.20709684491157532, -0.09240686148405075, -0.17412123084068298, -0.11017540842294693, 0.2745245695114136, 0.2171793282032013, 0.12598566710948944, 0.05335347726941109, 0.14252077043056488, -0.5296488404273987, 0.3337307274341583, -0.02691161260008812, -0.22615410387516022, -0.25032949447631836, 0.042420774698257446, -0.07918659597635269, -0.0027169822715222836, 0.28786054253578186, 0.37720364332199097, 0.03333613649010658, 0.23085936903953552, -0.19743609428405762, -0.4907916784286499, 0.24641066789627075, -0.41849014163017273, -0.1275348961353302, 0.07170222699642181, 0.21670004725456238, -0.16134688258171082, 0.08050481975078583, -0.5184624195098877, 0.23078307509422302, 0.03207976371049881, -0.056387435644865036, -0.2104315161705017, 0.30028700828552246, -0.27324697375297546, -0.05604185909032822, -0.029571441933512688, 0.3224097490310669, 0.19713184237480164, -0.10950103402137756, 0.07362405955791473, -0.24151131510734558 ]
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.28176888823509216, -0.07712233811616898, -0.025954050943255424, 0.18648859858512878, 0.4318789541721344, -0.10634122043848038, -0.04907930642366409, 0.21024225652217865, -0.2888754904270172, 0.07893192023038864, 0.16983798146247864, 0.5185145735740662, -0.015733987092971802, 0.40393686294555664, 0.21651609241962433, -0.027795379981398582, -0.008714377880096436, 0.3307391107082367, -0.03863760083913803, 0.03915641829371452, -0.31820186972618103, 0.18080581724643707, -0.06281812489032745, 0.04983716830611229, -0.33402660489082336, -0.12927427887916565, 0.13712121546268463, 0.3347364366054535, -0.38950905203819275, -0.5701819658279419, 0.2702990770339966, -0.008077297359704971, 0.17062772810459137, 0.31301361322402954, -0.00010405346984043717, 0.026808319613337517, 0.34528815746307373, -0.30273446440696716, -0.10404010117053986, -0.2532047927379608, -0.25041812658309937, -0.3094666004180908, 0.1723184734582901, -0.19825643301010132, -0.026220740750432014, 0.24192304909229279, -0.07102281600236893, -0.103692926466465, 0.4995189607143402, 0.22843076288700104, 0.2823842465877533, 0.1334477961063385, 0.02708994410932064, 0.11919637769460678, 0.023080840706825256, 0.24017876386642456, -0.07935719937086105, 0.4386380910873413, 0.2769225835800171, -0.1497907191514969, 0.20194561779499054, 0.28877416253089905, -0.11775221675634384, -0.05909515917301178, 0.09713861346244812, 0.02726077102124691, -0.12200890481472015, -0.3863956332206726, 0.04783223941922188, 0.1814054548740387, 0.33760541677474976, -0.33246999979019165, -0.07373172789812088, 0.13525258004665375, 0.10531821101903915, -0.4322820007801056, 0.3052654564380646, 0.3276408910751343, -0.30730682611465454, 0.09052897989749908, -0.06837289780378342, 0.1381128877401352, 0.00391578720882535, -0.016548985615372658, 0.036680303514003754, 0.025112727656960487, -0.14263008534908295, -0.0910673588514328, 0.1715582311153412, -0.11088205873966217, 0.15775099396705627, 0.06573605537414551, -0.26968705654144287, 0.2028370052576065, -0.13587087392807007, -0.16435404121875763, -0.13523893058300018, -0.178421288728714, -0.07127794623374939, -0.17999811470508575, 0.6284139156341553, 0.08873875439167023, -0.04533947631716728, 0.3436101973056793, 0.21379248797893524, 0.07793983072042465, -0.1613689363002777, 0.2298019826412201, 0.17645356059074402, 0.106780506670475, 0.13515037298202515, 0.006329474505037069, -0.19478480517864227, -0.20077362656593323, -0.3806664049625397, 0.2614670991897583, 0.2055315524339676, -0.16741374135017395, -0.3905965983867645, 0.1570674180984497, -0.025129128247499466, 0.12517409026622772, 0.12157443165779114, 0.2305428385734558, 0.2509424090385437, 0.23373961448669434, 0.10350041091442108, 0.3014073669910431, -0.26917579770088196, -0.2696078419685364, -0.09026917815208435, 0.22402161359786987, -0.3366369307041168, -0.1306649148464203, 0.1875257045030594, 0.024825969710946083, 0.15072165429592133, 0.16816407442092896, 0.18753132224082947, -0.18223534524440765, 0.08310046792030334, -0.018578920513391495, 0.06664274632930756, 0.18193192780017853, 0.018423808738589287, 0.05929432809352875, 0.19574637711048126, -0.31772395968437195, -0.1496906876564026, 0.047896891832351685, -0.4498772919178009, -0.10292385518550873, -0.04985478147864342, 0.27644628286361694, -0.0709632858633995, 0.014894346706569195, -0.5774100422859192, 0.10332433134317398, 0.10367042571306229, -0.30652105808258057, 0.11040997505187988, -0.17248724400997162, 0.06524801254272461, -0.17891328036785126, 0.163258358836174, 0.4239063262939453, -0.519629716873169, 0.061409708112478256, 0.26297760009765625, -0.008728383108973503, 0.3078124523162842, 0.03952062129974365, -0.21883535385131836, 0.0014090888435021043, -0.11032077670097351, -0.06736604124307632, 0.34277456998825073, -0.3594682812690735, -0.2083868682384491, 0.2648145258426666, -0.059990137815475464, -0.006467209663242102, -0.018302220851182938, -0.04591170325875282, -0.029695820063352585, -0.16742822527885437, 0.16357433795928955, 0.40738439559936523, 0.020894313231110573, 0.3319742977619171, -0.1896001696586609, -0.200138658285141, 0.13529393076896667, 0.13350339233875275, -0.36610791087150574, -0.19969888031482697, 0.1727055460214615, 0.34728386998176575, 0.23262852430343628, -0.10985838621854782, -0.2995854318141937, 0.19587215781211853, 0.18728004395961761, -0.29115721583366394, -0.16882187128067017, 0.27270403504371643, -0.029920177534222603, -0.0008160748984664679, -0.4668939709663391, 0.1937798112630844, -0.34888720512390137, -0.12528276443481445, -0.1011168360710144, 0.1086004376411438, -0.4706577658653259, -0.2607012987136841, 0.2740674316883087, -0.042768869549036026, -0.09896537661552429, 0.054110847413539886, -0.15654544532299042, 0.17382846772670746, 0.0019520887872204185, -0.01282301265746355, -0.3405914902687073, 0.14975818991661072, -0.13620945811271667, -0.25631484389305115, 0.3186991810798645, 0.23695766925811768, 0.13422159850597382, -0.19793875515460968, -0.20619893074035645, 0.21302002668380737, 0.03901059553027153, 0.37252768874168396, -0.2939711809158325, -0.24910417199134827, 0.4123367965221405, -0.5082933306694031, 0.07715662568807602, 0.4808593988418579, 0.21839956939220428, -0.14615380764007568, 0.27696430683135986, 0.28172674775123596, -0.08916642516851425, 0.015147645026445389, -0.02923608385026455, -0.1517888754606247, 0.18024782836437225, 0.04485292360186577, 0.07855016738176346, -0.14572298526763916, 0.35401618480682373, 0.6760115623474121, 0.23173385858535767, -0.061865437775850296, -0.06129760667681694, 0.06314824521541595, 0.49791258573532104, -0.022853374481201172, 0.022445496171712875, 0.03066033311188221, 0.08182226866483688, -0.14985886216163635, 0.08544173836708069, 0.09918862581253052, 0.19675123691558838, -0.07260041683912277, -0.2659807801246643, 0.16210447251796722, -0.004025169648230076, -0.17629708349704742, 0.18934942781925201, -0.13351331651210785, -0.009568163193762302, 0.047948770225048065, 0.13502955436706543, -0.011934567242860794, -0.26447391510009766, -0.22436776757240295, 0.04727066680788994, 0.150117427110672, -0.2828514575958252, 0.28406962752342224, -0.4692809283733368, -0.33958208560943604, -0.11892150342464447, 0.057748258113861084, -0.17354540526866913, -0.04774395376443863, -0.02876405045390129, -0.08755002915859222, 0.020084727555513382, 0.24740171432495117, -0.1192871630191803, -0.007629133760929108, -0.08732163161039352, -0.1683947890996933, -0.024321528151631355, -0.23419329524040222, -0.20528756082057953, 0.13765598833560944, 0.43205997347831726, -0.006056616082787514, 0.04685104265809059, -0.40663260221481323, 0.13060101866722107, 0.31671077013015747, -0.18817095458507538, 0.2786332666873932, -0.23708641529083252, 0.08363796770572662, 0.07331904023885727, 0.17839129269123077, 0.084378182888031, -0.3423643708229065, 0.25348377227783203, 0.010619617067277431, -0.18438486754894257, 0.1638588011264801, -0.0660436749458313, -0.17039471864700317, -0.2623523771762848, 0.03122677281498909, -0.4781665802001953, -0.3827650547027588, -0.14568695425987244, 0.12305743247270584, 0.15459038317203522, 0.29494956135749817, 0.2861064076423645, 0.11851122230291367, 0.16041038930416107, -0.021037204191088676, -0.07117633521556854, -0.34742844104766846, 0.24039193987846375, -0.36942145228385925, -0.3852406144142151, 0.03626420348882675, -0.0017280759057030082, 0.5735810995101929, -0.24553684890270233, -0.2102106809616089, -0.012437683530151844, -0.09794658422470093, 0.030375782400369644, -0.10267864912748337, 0.0817885547876358, 0.02426384948194027, 0.020677145570516586, -0.03926141932606697, -0.12882867455482483, -0.023988720029592514, -0.07529096305370331, -0.028744356706738472, 0.34228143095970154, -0.025850974023342133, 0.29033443331718445, -0.2431194931268692, 0.03794751688838005, 0.23274284601211548, -0.0770641565322876, 0.656468391418457, -0.0829390287399292, 0.33667418360710144, -0.20071379840373993, -0.05290792137384415, 0.0831649899482727, -0.1412672996520996, -0.06485848873853683, 0.1083848774433136, -0.07544757425785065, -0.2820371389389038, -0.33357492089271545, 0.053783975541591644, -0.26634812355041504, -0.24302445352077484, 0.08899407088756561, 0.19511295855045319, -0.08062732964754105, -0.036012742668390274, 0.11786884069442749, 0.06756269186735153, -0.13023696839809418, -0.04530266299843788, 0.24543781578540802, -0.1497393548488617, 0.2119572013616562, -0.2705281674861908, -0.48181959986686707, -0.16390660405158997, 0.19045478105545044, 0.16812476515769958, 0.25381171703338623, -0.026094291359186172, 0.07111063599586487, 0.11434789001941681, -0.16753162443637848, 0.21373219788074493, 0.12185168266296387, 0.08237767219543457, 0.12554830312728882, 0.09040813148021698, 0.06397915631532669, -0.07465831935405731, -0.2222861647605896, 0.12113237380981445, 0.18857866525650024, -0.2162661850452423, -0.23391859233379364, 0.004644344560801983, -0.025585660710930824, 0.3330482244491577, -0.04051173850893974, 0.13937440514564514, -0.49602216482162476, -0.6708529591560364, -0.2037331461906433, -0.22219432890415192, 0.20608632266521454, 0.2809028923511505, -0.0897955372929573, -0.08689633756875992, 0.05048084631562233, -0.23983322083950043, 0.1881611943244934, 0.5552312135696411, 0.43509942293167114, 0.12409330159425735, -0.03564786538481712, -0.22010302543640137, -0.10161945223808289, 0.3710555136203766, 0.8140741586685181, 0.12184663116931915, -0.21393072605133057, 0.15974538028240204, -0.10615053027868271, 0.1949421912431717, 0.2183978110551834, -0.06125740706920624, -0.12293070554733276, -0.20111598074436188, -0.04710976779460907, -0.1970365047454834, 0.2360365092754364, 0.226199671626091, 0.005268230102956295, -0.5391127467155457, -0.43747326731681824, 0.5951076745986938, -0.10414285212755203, 0.17910242080688477, 0.1939285695552826, -0.04972640424966812, -0.2902444303035736, 0.2526356875896454, 0.09390472620725632, 0.8820835947990417, 0.2124817967414856, 0.1971961110830307, 0.39468666911125183, 0.10239643603563309, 0.23376011848449707, -0.1697787493467331, 0.15958057343959808, -0.2948203384876251, -0.05672476068139076, -0.016651807352900505, 0.07156669348478317, 0.12292517721652985, 0.10621736198663712, -0.31441813707351685, 0.042472656816244125, -0.0723966509103775, -0.3561917841434479, 0.059395190328359604, 0.21248675882816315, -0.22693215310573578, -0.2082309126853943, -0.6637160778045654, 0.23913170397281647, -0.10732458531856537, 0.04072263836860657, -0.13628290593624115, -0.26451846957206726, -0.05109244957566261, -0.3845808207988739, -0.19631259143352509, 0.35314440727233887, -0.47500619292259216, 0.1848689764738083, -0.07000178098678589, -0.6309324502944946, 0.18594443798065186, 0.0950208231806755, 0.13299772143363953, 0.18861064314842224, -0.04686059057712555, 0.23263433575630188, 0.25734469294548035, -0.041846636682748795, -0.02566516026854515, 0.14467720687389374, 0.08656526356935501, -0.22900645434856415, -0.04613184183835983, 0.2251649796962738, 0.07877335697412491, -0.09254933893680573, 0.33379536867141724, 0.04860850051045418, -0.29594412446022034, -0.15027017891407013, -0.30466774106025696, -0.16496793925762177, 0.16369329392910004, -0.012237618677318096, 0.1836998015642166, 0.0649411603808403, -0.2007920891046524, -0.12359599769115448, 0.15845388174057007, -0.3354061543941498, -0.12801527976989746, -0.00022440915927290916, -0.056410279124975204, -0.05181766301393509, 0.4692663550376892, 0.1955725997686386, -0.18235139548778534, -0.128604918718338, 0.3528130352497101, 0.020973704755306244, -0.5445841550827026, 0.021662456914782524, 0.25078892707824707, -0.21404637396335602, 0.02169191837310791, 0.7245566844940186, -0.038607727736234665, -0.03831316530704498, 0.19797435402870178, -0.3346596658229828, -0.41005292534828186, 0.12111233919858932, -0.17654189467430115, 0.11158328503370285, 0.12926504015922546, 0.3700284957885742, -0.04384217783808708, -0.04671091213822365, -0.3405133783817291, 0.09514565020799637, -0.1919037103652954, -0.026484111323952675, 0.1189274936914444, -0.08485492318868637, 0.11389511078596115, 0.15645349025726318, 0.1555798202753067, 0.328930139541626, -0.14722669124603271, -0.23358263075351715, -0.10095818340778351, 0.06824928522109985, -0.022288057953119278, -0.2691431939601898, -0.13575339317321777, 0.07172053307294846, -0.08492353558540344, -0.022994015365839005, 0.148989737033844, -0.050791822373867035, 0.11422654986381531, 0.14819422364234924, -0.22874566912651062, 0.06282000988721848, 0.007567339576780796, 0.18547414243221283, -0.10001350194215775, 0.5562205910682678, 0.1064172238111496, 0.021114563569426537, -0.07798201590776443, -0.0006731256144121289, -0.12468262016773224, 0.0693604126572609, -0.23281650245189667, 0.10996796935796738, 0.14331810176372528, -0.3258746266365051, 0.38335561752319336, -0.04723033308982849, -0.022543542087078094, 0.4821300506591797, -0.25609955191612244, -0.037583786994218826, 0.28651219606399536, 0.21632304787635803, -0.25580546259880066, -0.021941322833299637, -0.2864891290664673, -0.02663874812424183, -0.05961909145116806, 0.31742578744888306, 0.09488747268915176, -0.09681959450244904, 0.2679113745689392, -0.05620996654033661, 0.456080824136734, 0.12875179946422577, 0.3024080693721771, 0.3055934011936188, -0.13822828233242035, 0.13003063201904297, -0.13195598125457764, 0.18240995705127716, 0.050027571618556976, -0.026569264009594917, -0.6331770420074463, 0.09411956369876862, 0.05481398478150368, 0.07238960266113281, -0.016144445165991783, -0.24976998567581177, -0.2015661746263504, -0.04906180873513222, -0.08297988027334213, 0.38966721296310425, 0.17208148539066315, 0.3763706088066101, -0.4089494049549103, -0.02804160676896572, -0.1358759105205536, 0.1379607617855072, -0.07013711333274841, 0.055498454719781876, -0.040929656475782394, -0.058338962495326996, -0.2832135856151581, 0.08503974229097366, -0.08637014776468277, 0.1195400133728981, -0.0830627977848053, 0.26902875304222107, -0.11161347478628159, -0.02801758423447609, 0.08608849346637726, 0.016962308436632156, -0.009213809855282307, -0.13165752589702606, 0.5656223893165588, 0.3985663056373596, 0.11527939140796661, 0.29644355177879333, 0.18669573962688446, 0.6348477602005005, 0.44273805618286133, -0.20098158717155457, 0.017607945948839188, -0.21348047256469727, 0.01935599185526371, 0.049436502158641815, 0.12258085608482361, 0.3237186670303345, 0.2292332649230957, 0.23288342356681824, 0.2080930471420288, -0.15934698283672333, -0.20507784187793732, 0.23380887508392334, 0.09165360033512115, 0.12696000933647156, 0.23482933640480042, -0.23535196483135223, 0.27187034487724304, -0.449244886636734, -0.08788292855024338, -0.46531930565834045, 0.24429358541965485, 0.29652130603790283, 0.044935550540685654, 0.040348246693611145, -0.23119968175888062, 0.11902663856744766, -0.06314974278211594, 0.600645899772644, 0.19878670573234558, 0.10345170646905899, -0.1107359305024147, -0.029053766280412674, -0.6104623079299927, 0.27976226806640625, -0.006835668347775936, -0.45178860425949097, -0.12343719601631165, -0.22833432257175446, 0.13193857669830322, 0.41813942790031433, 0.07155551761388779, 0.3477071523666382, 0.06961733102798462, 0.09894800186157227, -0.16310307383537292, -0.0020971375051885843, -0.21366563439369202, 0.08706101775169373, -0.1896214783191681, -0.23823578655719757, 0.025643132627010345, -0.34351763129234314, 0.14155098795890808, -0.2849489748477936, -0.29983437061309814, -0.3997804820537567, 0.11260608583688736, 0.3344658315181732, 0.22755122184753418, 0.3273841440677643, -0.2716761529445648, -0.2994091510772705, -0.05519874393939972, -0.28542566299438477, -0.06778647005558014, 0.35360172390937805, 0.20976439118385315, 0.22029629349708557, 0.04223119467496872, 0.2010897397994995, -0.4806053638458252, 0.2990703880786896, -0.11353375017642975, -0.19270379841327667, -0.21642501652240753, 0.056837718933820724, -0.027804672718048096, -0.017757264897227287, 0.19717374444007874, 0.33192822337150574, 0.015820426866412163, 0.15810993313789368, -0.1731143742799759, -0.4464833438396454, 0.3486941456794739, -0.4384196996688843, -0.16250841319561005, 0.29547208547592163, 0.07854250073432922, -0.24573874473571777, 0.1090264767408371, -0.5252719521522522, 0.2714563310146332, 0.013972645625472069, -0.09211837500333786, -0.2960335910320282, 0.22188526391983032, -0.23212294280529022, -0.1918736696243286, -0.07567158341407776, 0.4190501570701599, 0.1878015547990799, -0.07885530591011047, -0.012731872498989105, -0.2181256115436554 ]
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.29930394887924194, -0.07950893044471741, -0.02546095848083496, 0.21767917275428772, 0.3856870234012604, -0.07032695412635803, -0.10065564513206482, 0.18437038362026215, -0.2766495943069458, 0.056092698127031326, 0.1345289945602417, 0.42476367950439453, -0.08653873205184937, 0.2728080153465271, 0.21610145270824432, -0.006847648415714502, -0.050249338150024414, 0.22419719398021698, 0.15640872716903687, 0.07079927623271942, -0.4088912606239319, 0.1733013391494751, -0.1744895875453949, 0.12441914528608322, -0.4139833450317383, -0.05959441140294075, 0.041327960789203644, 0.3134811818599701, -0.2633449137210846, -0.6551197171211243, 0.18799011409282684, -0.046001236885786057, 0.14356964826583862, 0.381763756275177, -0.0001065940159605816, -0.09800589084625244, 0.23075485229492188, -0.21708881855010986, -0.15189523994922638, -0.2767794132232666, -0.3016502261161804, -0.30938720703125, 0.11959508061408997, -0.3082411289215088, 0.0811881348490715, 0.13732515275478363, 0.011062121950089931, -0.33050644397735596, 0.44848737120628357, 0.3554726541042328, 0.26033225655555725, 0.12825852632522583, 0.02175675518810749, 0.14058232307434082, 0.024509165436029434, 0.021868962794542313, -0.06388048827648163, 0.44349947571754456, 0.26858919858932495, -0.04732637479901314, 0.12044370919466019, 0.14582177996635437, -0.18657463788986206, -0.04800964519381523, 0.015261865220963955, 0.044720351696014404, 0.06676407158374786, -0.4407673478126526, 0.11388639360666275, 0.11893653124570847, 0.08098802715539932, -0.3776185214519501, -0.1859690099954605, 0.09423089027404785, 0.1264687329530716, -0.6105190515518188, 0.23710986971855164, 0.40002065896987915, -0.32696935534477234, 0.15995705127716064, -0.06707759201526642, 0.06384296715259552, 0.05413903668522835, -0.0907464474439621, -0.046591516584157944, 0.16506731510162354, -0.1873859167098999, -0.07742875814437866, 0.15726079046726227, 0.06342705339193344, 0.16139008104801178, 0.01719728298485279, -0.17790737748146057, 0.18121355772018433, -0.23545588552951813, 0.005671978462487459, -0.14014630019664764, -0.012223613448441029, -0.05697954446077347, -0.07037881016731262, 0.47009068727493286, 0.16029229760169983, -0.08918998390436172, 0.26715773344039917, 0.03745032846927643, 0.10326444357633591, -0.21673406660556793, 0.10088039934635162, 0.19062328338623047, 0.12255696952342987, 0.19779706001281738, 0.07527356594800949, -0.2027529627084732, -0.24527287483215332, -0.19899123907089233, 0.45156964659690857, 0.3463512659072876, -0.14638476073741913, -0.48047056794166565, 0.06714564561843872, 0.015336304903030396, 0.07245749980211258, 0.09749661386013031, 0.15005627274513245, 0.17257240414619446, 0.3843934237957001, -0.04823339730501175, 0.26770541071891785, -0.3312211036682129, -0.29147815704345703, -0.09798852354288101, 0.25158095359802246, -0.3490157127380371, -0.0358147919178009, 0.11186518520116806, -0.1107490211725235, 0.11026084423065186, 0.23999997973442078, 0.17038321495056152, -0.330548495054245, 0.089422807097435, -0.17194582521915436, -0.0011079233372583985, 0.026131466031074524, 0.09585969895124435, 0.1550361067056656, 0.1559719294309616, -0.3678233027458191, -0.05572737753391266, 0.06362592428922653, -0.5577605962753296, -0.12975989282131195, -0.17296387255191803, 0.26275187730789185, -0.012477572076022625, -0.01238037459552288, -0.5066609382629395, 0.07060674577951431, 0.17259293794631958, -0.23039817810058594, 0.06311948597431183, -0.17055544257164001, -0.13770566880702972, -0.25252631306648254, 0.17533153295516968, 0.4754907190799713, -0.29411011934280396, 0.05385998263955116, 0.16097134351730347, 0.03386502340435982, 0.3461771309375763, 0.08644051849842072, -0.21363520622253418, -0.13579320907592773, -0.21943576633930206, -0.03545406833291054, 0.39555591344833374, -0.43240657448768616, -0.2422579973936081, 0.3587154448032379, -0.2437879592180252, -0.00834604725241661, 0.06600771844387054, -0.13179945945739746, 0.03560783714056015, -0.25145432353019714, 0.13122111558914185, 0.41554105281829834, 0.02665605954825878, 0.27460265159606934, -0.18289460241794586, -0.30924075841903687, 0.2006271481513977, 0.016354646533727646, -0.21782800555229187, -0.2202051728963852, 0.2515701651573181, 0.3486473560333252, 0.28983545303344727, -0.17368561029434204, -0.16717931628227234, 0.21286718547344208, 0.027012456208467484, -0.2167559117078781, -0.22225992381572723, 0.09459634125232697, 0.022303184494376183, -0.018957367166876793, -0.3267049491405487, 0.08989443629980087, -0.3444601595401764, -0.16234856843948364, -0.15930165350437164, 0.037658244371414185, -0.6050459146499634, -0.28335094451904297, 0.23501825332641602, 0.20868214964866638, -0.08243688195943832, 0.08196859806776047, -0.20754174888134003, 0.2771047055721283, 0.0008029821328818798, -0.03966842591762543, -0.3657068908214569, 0.0936846137046814, -0.13362176716327667, -0.1018197238445282, 0.22820039093494415, 0.3284245729446411, 0.167885884642601, -0.142012357711792, -0.24129170179367065, 0.31301647424697876, 0.07960950583219528, 0.3886028528213501, -0.24273957312107086, -0.18544283509254456, 0.4853191375732422, -0.6272901892662048, 0.152529776096344, 0.48060011863708496, 0.2121467888355255, -0.10647371411323547, 0.32613998651504517, 0.32601672410964966, -0.022167347371578217, -0.08765619993209839, 0.02087724208831787, -0.12779653072357178, 0.1704484522342682, -0.005943119525909424, 0.10410600155591965, -0.2580585777759552, 0.313289999961853, 0.6806161999702454, 0.34633833169937134, -0.005693195853382349, -0.08634001761674881, -0.0046066343784332275, 0.5590987801551819, -0.08208250254392624, 0.022195229306817055, 0.07783664762973785, 0.12168961018323898, -0.15803614258766174, -0.03823222219944, 0.08604417741298676, 0.275168240070343, -0.08253774046897888, -0.14896444976329803, 0.24288669228553772, 0.0354851633310318, -0.2573782801628113, 0.1527564376592636, -0.05672011524438858, 0.05028699338436127, 0.06478658318519592, 0.16667544841766357, 0.09594834595918655, -0.25785401463508606, -0.3063187003135681, 0.08709752559661865, 0.11541155725717545, -0.3568195402622223, 0.31418853998184204, -0.5408015847206116, -0.35489439964294434, -0.2717302143573761, 0.12227679789066315, -0.10075714439153671, -0.08701261132955551, -0.16592895984649658, -0.0778103619813919, 0.16840720176696777, 0.1757584512233734, -0.20785677433013916, 0.0004746602207887918, -0.059375859797000885, -0.09088791906833649, 0.18133652210235596, -0.14371690154075623, -0.25469282269477844, 0.08675118535757065, 0.4046461582183838, -0.0034861420281231403, 0.03538026288151741, -0.3951056897640228, 0.06854826956987381, 0.1820477694272995, -0.11952664703130722, 0.22017353773117065, -0.21490298211574554, 0.1363779753446579, -0.004368721041828394, 0.0067557101137936115, 0.007147235795855522, -0.2906436622142792, 0.14971105754375458, -0.02397289127111435, -0.05021815747022629, 0.12583281099796295, -0.07857759296894073, -0.18748703598976135, -0.23465974628925323, 0.015700167044997215, -0.5259250402450562, -0.4137798547744751, -0.20531226694583893, 0.07654005289077759, 0.2234555184841156, 0.29940223693847656, -0.01355662103742361, 0.2073114514350891, 0.2510852515697479, -0.0007840041653253138, -0.12151224166154861, -0.3657852113246918, 0.3067183494567871, -0.42465028166770935, -0.43357622623443604, 0.03227405250072479, -0.08203785121440887, 0.4345397353172302, -0.08325807005167007, -0.17920100688934326, -0.05810714140534401, -0.13367950916290283, 0.07659623771905899, -0.05869017541408539, 0.10009457916021347, -0.011169700883328915, 0.02149801328778267, -0.018302317708730698, -0.06894022971391678, 0.08001761138439178, -0.15988503396511078, 0.07327846437692642, 0.326739102602005, 0.0562296062707901, 0.22559049725532532, -0.10488205403089523, -0.04077700898051262, 0.30913838744163513, 0.13251061737537384, 0.6449678540229797, -0.17209108173847198, 0.28965502977371216, -0.06104229390621185, -0.05958735570311546, -0.01018321979790926, -0.18365564942359924, -0.0560682974755764, 0.16659431159496307, -0.08555936813354492, -0.16607670485973358, -0.2576843202114105, 0.047412630170583725, -0.2950180470943451, -0.22383105754852295, 0.05236547067761421, 0.11144653707742691, 0.13095305860042572, -0.11221456527709961, 0.16432088613510132, 0.03392450138926506, -0.24919138848781586, -0.02225015126168728, 0.3163498640060425, -0.1691475361585617, 0.14591147005558014, -0.22209905087947845, -0.34373465180397034, -0.20732370018959045, 0.19321759045124054, 0.32022222876548767, 0.3662998676300049, 0.059194210916757584, 0.21355125308036804, 0.11430762708187103, -0.19091245532035828, 0.1653682142496109, 0.07424931228160858, 0.04772644862532616, 0.15286248922348022, 0.11477011442184448, 0.0004943991079926491, -0.08683545887470245, -0.27727100253105164, 0.24687497317790985, 0.0710146501660347, -0.2654930651187897, -0.12590567767620087, -0.026859095320105553, 0.10459688305854797, 0.39314818382263184, -0.1350218504667282, 0.267869234085083, -0.4257536232471466, -0.756801962852478, -0.14991623163223267, -0.2945360839366913, 0.21775829792022705, 0.3300010561943054, -0.07276856899261475, 0.07659516483545303, 0.05758700519800186, -0.2534157335758209, 0.27621030807495117, 0.3764481544494629, 0.37086227536201477, 0.2668076753616333, -0.11862514168024063, -0.1426454484462738, -0.209172785282135, 0.21162863075733185, 0.6942178010940552, 0.16742023825645447, -0.24895276129245758, 0.1772017776966095, -0.1624293029308319, 0.20509077608585358, 0.2624579966068268, -0.13840481638908386, -0.02217518724501133, -0.17426103353500366, -0.004603495821356773, -0.12791983783245087, 0.14112497866153717, 0.27080512046813965, 0.040017034858465195, -0.5778194069862366, -0.5629864931106567, 0.5285751223564148, 0.0018851661588996649, 0.12068887054920197, 0.11481135338544846, -0.07533706724643707, -0.29923906922340393, 0.18640585243701935, 0.1224779486656189, 0.8694342374801636, 0.24079330265522003, 0.12879899144172668, 0.4219374656677246, 0.07106813043355942, 0.17910245060920715, -0.013396269641816616, 0.20086567103862762, -0.223732128739357, -0.14416801929473877, -0.04821017384529114, 0.10691910982131958, 0.1695762723684311, -0.06105650216341019, -0.32892945408821106, 0.24809296429157257, -0.03181624785065651, -0.3604765832424164, 0.1572132408618927, 0.26789984107017517, -0.29720789194107056, -0.18470314145088196, -0.5931872129440308, 0.18912436068058014, -0.11179056763648987, 0.0649576336145401, -0.13403283059597015, -0.19605782628059387, -0.020016679540276527, -0.2767280340194702, -0.2806450426578522, 0.3329108655452728, -0.4735085666179657, 0.3480066955089569, -0.2584134638309479, -0.5290862321853638, 0.2686241567134857, 0.15641386806964874, 0.22446385025978088, 0.08295843005180359, 0.02738482691347599, 0.15348371863365173, 0.2622377872467041, 0.024056198075413704, 0.055204153060913086, 0.07674892991781235, 0.12742123007774353, -0.15993817150592804, -0.07951938360929489, 0.3281882107257843, 0.14067943394184113, -0.06977994740009308, 0.28091955184936523, -0.00979726854711771, -0.15688662230968475, -0.04930933192372322, -0.2253403663635254, -0.2602356970310211, 0.13598103821277618, -0.06049526110291481, 0.131728395819664, -0.08026581257581711, -0.10570856928825378, -0.10739674419164658, 0.057106759399175644, -0.39441463351249695, -0.09972131997346878, 0.13674910366535187, 0.015304780565202236, -0.07638154178857803, 0.5025990009307861, 0.19545061886310577, -0.14068110287189484, -0.1048961654305458, 0.3054179847240448, -0.10841435939073563, -0.5312294363975525, -0.04959740489721298, 0.01648416928946972, -0.01700577326118946, 0.08068744838237762, 0.6536360383033752, -0.010975087992846966, 0.06880445033311844, 0.1723843365907669, -0.5049067735671997, -0.2466585636138916, 0.016613813117146492, -0.12330243736505508, 0.00902560818940401, 0.12663967907428741, 0.40195444226264954, 0.07701408118009567, -0.08402252197265625, -0.30707281827926636, 0.17701220512390137, -0.1739884465932846, -0.013699052855372429, 0.21619006991386414, -0.05226023495197296, 0.13252973556518555, 0.1732369363307953, 0.157427117228508, 0.3606140911579132, -0.0934450775384903, -0.17270086705684662, -0.1912986785173416, 0.09328461438417435, -0.09341787546873093, -0.3760542571544647, -0.10424289107322693, 0.06467694044113159, -0.04656919464468956, -0.010137111879885197, 0.19869230687618256, 0.07979056984186172, 0.13092194497585297, 0.20238874852657318, -0.24461567401885986, 0.013606255874037743, -0.08488628268241882, 0.1965002864599228, -0.07745245099067688, 0.5980932116508484, 0.164655402302742, 0.223682701587677, 0.01728462241590023, -0.013113339431583881, -0.3025081753730774, 0.01975921168923378, -0.1615498661994934, 0.07913841307163239, 0.052409905940294266, -0.3789253830909729, 0.3416694700717926, 0.14735902845859528, -0.10213807970285416, 0.47045910358428955, -0.3041957914829254, -0.03330358490347862, 0.20282875001430511, 0.16159191727638245, -0.21776172518730164, 0.04600150138139725, -0.2467532455921173, -0.11257832497358322, -0.08407403528690338, 0.45846739411354065, 0.2320084273815155, -0.0806799978017807, 0.19455164670944214, -0.02399103343486786, 0.3604412376880646, 0.2142915576696396, 0.44796323776245117, 0.31341615319252014, 0.02028927579522133, 0.13370312750339508, -0.13377678394317627, 0.1738455444574356, 0.06548996269702911, 0.13657279312610626, -0.5954397320747375, 0.2841956317424774, 0.09920204430818558, 0.19463184475898743, -0.08445048332214355, -0.3110913932323456, -0.089235320687294, -0.05490916222333908, -0.23817649483680725, 0.3179436922073364, 0.1723589152097702, 0.39267203211784363, -0.44167640805244446, -0.022763866931200027, -0.17708341777324677, 0.2958931028842926, -0.0724509134888649, 0.00805956032127142, 0.09551187604665756, -0.03497879207134247, -0.43444615602493286, 0.08054888248443604, -0.08860619366168976, 0.12833768129348755, -0.03319656103849411, 0.3416310250759125, -0.15143370628356934, -0.06372488290071487, 0.017305409535765648, 0.10807528346776962, 0.08098434656858444, -0.21013906598091125, 0.5812782645225525, 0.4417741298675537, 0.14717023074626923, 0.21226005256175995, 0.17683149874210358, 0.5937769412994385, 0.4060042202472687, -0.2153434306383133, 0.012656903825700283, -0.09648904949426651, 0.03082326240837574, 0.14809086918830872, 0.010231636464595795, 0.20711873471736908, 0.4157862663269043, 0.2502593696117401, 0.186178520321846, -0.15762732923030853, -0.1346200406551361, 0.3104698956012726, 0.05442821606993675, -0.06215697154402733, 0.30126065015792847, -0.07167322188615799, 0.22310620546340942, -0.3759078085422516, -0.07213296741247177, -0.49981436133384705, 0.2332312911748886, 0.32071027159690857, 0.016982190310955048, 0.02731325849890709, -0.12295524775981903, 0.10451605170965195, 0.016300393268465996, 0.49726974964141846, 0.29414865374565125, 0.03124610334634781, -0.13584217429161072, -0.22527366876602173, -0.7696905136108398, 0.29175490140914917, 0.07015753537416458, -0.4844244718551636, -0.11441309005022049, -0.2295144498348236, -0.11756851524114609, 0.39799436926841736, 0.049812741577625275, 0.29595792293548584, 0.16777066886425018, 0.010978232137858868, -0.18035146594047546, 0.021155010908842087, -0.021876517683267593, 0.061701543629169464, -0.2551727592945099, -0.3233397603034973, 0.1144111379981041, -0.39970526099205017, 0.11315769702196121, -0.33199232816696167, -0.23699556291103363, -0.3685525059700012, 0.0032364483922719955, 0.2550114691257477, 0.20107890665531158, 0.3229779601097107, -0.3041161894798279, -0.21394121646881104, -0.1175047978758812, -0.10413148999214172, -0.04191551357507706, 0.36197155714035034, 0.19202108681201935, 0.2813420295715332, 0.08256354928016663, 0.15387970209121704, -0.5075465440750122, 0.41839009523391724, -0.06980857998132706, -0.11836396157741547, -0.2643519341945648, 0.18119248747825623, -0.09903283417224884, -0.0012426500907167792, 0.2663116753101349, 0.3861822485923767, 0.013814745470881462, 0.2909947335720062, -0.047644730657339096, -0.5047467947006226, 0.2918059527873993, -0.48304203152656555, -0.14199785888195038, 0.1137421727180481, 0.2829335033893585, -0.2061605006456375, 0.022394757717847824, -0.4061281979084015, 0.28218957781791687, 0.12257429957389832, -0.038764648139476776, -0.3610475957393646, 0.30579903721809387, -0.3156985640525818, -0.1741199493408203, -0.04703231528401375, 0.3284202516078949, 0.1485316902399063, -0.16059008240699768, 0.11650819331407547, -0.21944715082645416 ]
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.3488943576812744, 0.05805639922618866, -0.005317159928381443, 0.21481502056121826, 0.2911394536495209, 0.06939206272363663, -0.023163437843322754, 0.16827842593193054, -0.11711788922548294, -0.00880303792655468, 0.03516256809234619, 0.38142505288124084, 0.059285227209329605, 0.2256457507610321, 0.2042713314294815, 0.13765805959701538, 0.08130109310150146, 0.22796131670475006, 0.07626942545175552, -0.03212606906890869, -0.2550889551639557, 0.24742551147937775, -0.12083383649587631, 0.11785206198692322, -0.34606170654296875, -0.17710936069488525, 0.17526422441005707, 0.2684677243232727, -0.298981249332428, -0.5578818321228027, 0.326429158449173, -0.042031191289424896, 0.16372999548912048, 0.3156365752220154, -0.000107127008959651, -0.17206577956676483, 0.4879133105278015, -0.2730463743209839, -0.0977526381611824, -0.2996377646923065, -0.06626864522695541, -0.17920298874378204, 0.20870618522167206, -0.19512805342674255, 0.16420941054821014, 0.23619869351387024, 0.025421973317861557, -0.21939726173877716, 0.24298721551895142, 0.2548005282878876, 0.25127071142196655, 0.07583194226026535, -0.01242757961153984, 0.05301181599497795, 0.1059630885720253, 0.0892353504896164, -0.03434685990214348, 0.42070332169532776, 0.4167109429836273, -0.0661734789609909, 0.15764623880386353, 0.1413358747959137, -0.2976844906806946, -0.10318589955568314, 0.1930609792470932, 0.12171042710542679, -0.19265104830265045, -0.5360168218612671, 0.028017306700348854, 0.2379920333623886, 0.4053962826728821, -0.4262818396091461, -0.20800365507602692, 0.08691111207008362, 0.29921606183052063, -0.4392406940460205, 0.20788337290287018, 0.41384467482566833, -0.308567076921463, 0.13948804140090942, -0.050568897277116776, 0.1756736934185028, 0.1524311602115631, -0.013839302584528923, 0.01769949123263359, -0.07965726405382156, -0.0850762352347374, -0.07893873751163483, 0.10761472582817078, -0.03345693275332451, 0.22378762066364288, 0.053108859807252884, -0.14195893704891205, 0.05217337980866432, -0.042018063366413116, -0.037431687116622925, -0.16531988978385925, 0.06656743586063385, -0.09670443832874298, 0.05237026512622833, 0.39626553654670715, 0.19331961870193481, -0.10171172767877579, 0.39443570375442505, 0.22747600078582764, 0.04167201742529869, -0.2219596952199936, 0.25594362616539, 0.3583296239376068, 0.16603422164916992, 0.0576862208545208, -0.002017902210354805, -0.16363687813282013, -0.1274365335702896, -0.1428082436323166, 0.28873318433761597, 0.15142732858657837, -0.18981550633907318, -0.4294269382953644, 0.16173066198825836, 0.17052331566810608, 0.21962004899978638, 0.19401811063289642, 0.18382827937602997, 0.17502403259277344, 0.31120729446411133, 0.03334988281130791, 0.3036215305328369, -0.25442925095558167, -0.25659796595573425, -0.08096305280923843, 0.19757725298404694, -0.2479851096868515, -0.11203894019126892, 0.23679007589817047, -0.09874661266803741, 0.17411670088768005, 0.20184536278247833, 0.2456616759300232, -0.15053030848503113, 0.06763602793216705, -0.10746923834085464, 0.21298684179782867, 0.2414594441652298, 0.16078193485736847, 0.24282021820545197, 0.10679426044225693, -0.23134829103946686, -0.17096713185310364, 0.03721476346254349, -0.42153626680374146, -0.10103274881839752, -0.05977463722229004, 0.2072862982749939, -0.08176308870315552, -0.11719071120023727, -0.6567412614822388, 0.07309003174304962, 0.009207324124872684, -0.3679390251636505, 0.06972428411245346, -0.17771543562412262, -0.03620203211903572, -0.0768478512763977, 0.1931198537349701, 0.5341472029685974, -0.4658972918987274, 0.1469021886587143, 0.034959062933921814, 0.012159634381532669, 0.22440776228904724, 0.1452995389699936, -0.13879184424877167, -0.14206138253211975, -0.31583884358406067, 0.11195030808448792, 0.30892524123191833, -0.5038150548934937, -0.33658671379089355, 0.3986086845397949, -0.09986326098442078, -0.015245025046169758, -0.0035209301859140396, 0.0348176509141922, 0.11041779816150665, -0.21409420669078827, 0.01043039932847023, 0.3849824368953705, -0.07407119125127792, 0.1820015162229538, -0.19005733728408813, -0.1728019118309021, 0.13461388647556305, -0.03277019038796425, -0.17120520770549774, -0.10841962695121765, 0.11167331784963608, 0.16999705135822296, 0.23009558022022247, 0.09330790489912033, -0.15381112694740295, 0.10826416313648224, 0.24035921692848206, -0.008166847750544548, -0.07336892932653427, 0.10449559986591339, 0.07962708920240402, 0.06733529269695282, -0.24562449753284454, 0.10678855329751968, -0.48618173599243164, -0.26603928208351135, -0.15468107163906097, 0.03283074498176575, -0.3553244471549988, -0.0886501744389534, 0.20598724484443665, -0.03873478248715401, -0.2071615606546402, 0.04928487539291382, -0.32491394877433777, 0.1765429824590683, 0.10970287024974823, 0.06584297120571136, -0.2932017743587494, 0.12203028798103333, -0.1851799041032791, -0.22358228266239166, 0.24315519630908966, 0.16496221721172333, 0.10268799960613251, -0.06269865483045578, -0.14994145929813385, 0.25749650597572327, 0.07307402044534683, 0.3449716866016388, -0.24520419538021088, -0.20482489466667175, 0.5607063174247742, -0.5482065081596375, 0.11304683238267899, 0.41916996240615845, 0.2602439224720001, -0.15046633780002594, 0.2045987993478775, 0.24799910187721252, -0.17190414667129517, 0.00867150817066431, 0.07192125171422958, -0.08471056818962097, 0.2972041666507721, 0.15030521154403687, 0.01778731308877468, -0.3461955487728119, 0.2551012337207794, 0.5953896641731262, 0.21465830504894257, -0.09871625155210495, -0.11145137250423431, 0.1296665519475937, 0.4439416527748108, -0.054392989724874496, -0.016517935320734978, 0.06822334229946136, 0.02083878219127655, -0.06224409490823746, -0.0035001279320567846, 0.027083342894911766, 0.09063147008419037, -0.08882357180118561, -0.21879340708255768, 0.21200448274612427, 0.06579712778329849, -0.24604633450508118, 0.1466575711965561, -0.024335455149412155, -0.14998333156108856, 0.07095183432102203, 0.06827908009290695, 0.13165414333343506, -0.24746902287006378, -0.27761346101760864, 0.035298123955726624, 0.06124631315469742, -0.3537081480026245, 0.21999548375606537, -0.49388542771339417, -0.38107001781463623, -0.11778978258371353, 0.06981842964887619, -0.042000025510787964, -0.13110867142677307, -0.09128320217132568, 0.13797493278980255, 0.111381895840168, 0.12189120054244995, -0.3576263189315796, -0.07453411817550659, -0.14585386216640472, -0.19307558238506317, 0.030477533116936684, -0.21586918830871582, -0.1704758107662201, 0.08317717909812927, 0.4746147096157074, 0.09286703169345856, 0.07085787504911423, -0.4188654124736786, 0.20156219601631165, 0.07662918418645859, -0.13730475306510925, 0.23155097663402557, -0.2333490401506424, 0.11689062416553497, 0.047976959496736526, 0.05822227522730827, -0.0004437431925907731, -0.4387206435203552, 0.14506042003631592, -0.10773629695177078, -0.021132303401827812, 0.2000148892402649, -0.01055582333356142, -0.3811511993408203, -0.11384351551532745, 0.002600887091830373, -0.4156635105609894, -0.2895943820476532, -0.19180704653263092, 0.048539187759160995, 0.04915594309568405, 0.19717815518379211, 0.10365375131368637, 0.13258343935012817, 0.2278994619846344, -0.007673429325222969, -0.0012112307595089078, -0.34189149737358093, 0.41183024644851685, -0.3309629559516907, -0.4681512713432312, 0.2416669875383377, 0.038517262786626816, 0.370306134223938, -0.23643919825553894, -0.2635747790336609, -0.022080382332205772, -0.11162540316581726, 0.17985710501670837, 0.1413116306066513, 0.025399228557944298, -0.09903760999441147, -0.050781767815351486, -0.031989093869924545, -0.036383915692567825, -0.08936095237731934, -0.11411313712596893, -0.08680428564548492, 0.17542408406734467, 0.0025572844315320253, 0.2680503726005554, -0.3292318880558014, -0.054629940539598465, 0.27063673734664917, 0.07686915993690491, 0.7014578580856323, -0.1841563731431961, 0.38472771644592285, -0.2749555706977844, -0.11205030977725983, -0.11529918015003204, -0.178261399269104, -0.04528728127479553, 0.13297343254089355, -0.0346846878528595, -0.3643231987953186, -0.34455668926239014, -0.015183533541858196, -0.3853970766067505, -0.3656521737575531, 0.05156426131725311, -0.03865889832377434, -0.07952436059713364, -0.04910976439714432, 0.1858220398426056, 0.18524551391601562, -0.38530346751213074, 0.05951925367116928, 0.3000606596469879, -0.03371458128094673, 0.16917331516742706, -0.20033524930477142, -0.41456079483032227, -0.02387186326086521, 0.06466494500637054, 0.12602977454662323, 0.3964131772518158, -0.06258584558963776, 0.15809310972690582, 0.09966408461332321, -0.07003438472747803, 0.20989176630973816, 0.0011675164569169283, 0.14452163875102997, 0.13326548039913177, 0.041497454047203064, -0.0035131238400936127, -0.07360763102769852, -0.19176128506660461, 0.14260271191596985, 0.07592315226793289, -0.23201604187488556, -0.12121724337339401, 0.09064068645238876, -0.01791318878531456, 0.443825364112854, -0.015471085906028748, 0.12469154596328735, -0.37563809752464294, -0.6495365500450134, -0.11624149233102798, -0.2178596556186676, 0.29255199432373047, 0.14916154742240906, -0.08273900300264359, -0.0954449400305748, -0.031366977840662, -0.2161991149187088, 0.259901225566864, 0.3667050302028656, 0.42514118552207947, 0.0928976982831955, 0.13227079808712006, -0.1587827056646347, -0.2337958663702011, 0.42140522599220276, 0.7679151296615601, -0.041080087423324585, -0.34461379051208496, 0.08665170520544052, -0.27206119894981384, 0.11662013083696365, 0.28821349143981934, -0.10649564862251282, -0.3059369623661041, -0.012073202058672905, -0.14948998391628265, -0.08435925841331482, -0.020336689427495003, 0.2839376628398895, -0.010146833024919033, -0.5025901198387146, -0.556586742401123, 0.5252873301506042, 0.05449437350034714, 0.14844989776611328, 0.11418899148702621, 0.14102940261363983, -0.30604901909828186, 0.32165685296058655, 0.008404888212680817, 0.8980355262756348, 0.16970780491828918, 0.05205546319484711, 0.13166795670986176, 0.08567474037408829, 0.23200055956840515, -0.11814757436513901, 0.1271192580461502, -0.29634466767311096, -0.20475250482559204, -0.06031208857893944, 0.14220522344112396, 0.026594020426273346, 0.1766856610774994, -0.3149734437465668, 0.20574378967285156, -0.19480584561824799, -0.2809527814388275, 0.002501377370208502, 0.4298158586025238, -0.4101654291152954, -0.19633378088474274, -0.38110750913619995, 0.22144395112991333, -0.003767214948311448, 0.059215545654296875, -0.016595127061009407, -0.12336917221546173, -0.0648111030459404, -0.1962014138698578, -0.539425253868103, 0.212602436542511, -0.43559885025024414, 0.2661518156528473, -0.16945421695709229, -0.6015492677688599, 0.2076183706521988, 0.058499205857515335, 0.2319202870130539, 0.2045704424381256, 0.0033772026654332876, 0.15834833681583405, 0.4542040526866913, -0.10003454238176346, 0.14931106567382812, 0.030728435143828392, 0.26257115602493286, -0.22665484249591827, -0.10991261899471283, 0.17953242361545563, 0.1999661773443222, 0.05054188147187233, 0.43497592210769653, 0.06380684673786163, -0.1949106901884079, -0.0802449956536293, -0.4043859839439392, -0.30730298161506653, 0.12761135399341583, 0.004803947173058987, 0.14152978360652924, 0.000768819241784513, -0.09479917585849762, -0.08467955887317657, 0.18230846524238586, -0.2930836081504822, -0.11499679088592529, 0.14051970839500427, -0.13536211848258972, -0.21189960837364197, 0.4401683509349823, 0.2668435871601105, -0.29319053888320923, -0.09376417100429535, 0.2529410719871521, 0.08100011944770813, -0.6456252336502075, -0.032751817256212234, 0.141475111246109, -0.027126142755150795, 0.07689899951219559, 0.5570617318153381, -0.014649109914898872, -0.03928510844707489, -0.021218828856945038, -0.43661195039749146, -0.15008018910884857, 0.10352706909179688, -0.06103955954313278, 0.04352402687072754, 0.034666355699300766, 0.23327642679214478, 0.19653679430484772, -0.31726059317588806, -0.286151260137558, 0.16283288598060608, -0.18951545655727386, -0.07443898916244507, 0.14987713098526, 0.05486234650015831, 0.04988745599985123, 0.033446695655584335, 0.09864500910043716, 0.3002922832965851, 0.05858879163861275, -0.16408364474773407, -0.0407443642616272, 0.09717737883329391, -0.08339384198188782, -0.38014644384384155, -0.09838196635246277, 0.032874297350645065, -0.13933362066745758, -0.07244012504816055, 0.10729169845581055, 0.24931064248085022, 0.1552937626838684, 0.16378997266292572, -0.22143904864788055, -0.0776810348033905, -0.0907817929983139, 0.22907452285289764, -0.08822730928659439, 0.6197981834411621, 0.12040746957063675, 0.09377769380807877, 0.07559818774461746, 0.011744928546249866, -0.002452489687129855, 0.08524779230356216, -0.36875033378601074, 0.08743786811828613, 0.2601129412651062, -0.280662477016449, 0.475872665643692, 0.33957815170288086, 0.03426169604063034, 0.653734028339386, -0.19245858490467072, -0.15490390360355377, 0.274696946144104, 0.1757349669933319, -0.21166644990444183, 0.04471758380532265, -0.18706198036670685, -0.018688756972551346, -0.17481322586536407, 0.24155494570732117, 0.272908478975296, -0.07019174844026566, 0.11372466385364532, -0.1272246092557907, 0.6796853542327881, 0.06755547970533371, 0.4454055726528168, 0.1634872555732727, 0.0051597123965620995, 0.23551759123802185, -0.16260002553462982, 0.24766254425048828, 0.043317392468452454, 0.14954215288162231, -0.6107832789421082, 0.007527777459472418, 0.11791860312223434, 0.13891425728797913, -0.023389989510178566, -0.35407885909080505, -0.1168866828083992, -0.18971283733844757, -0.08143682777881622, 0.22041767835617065, 0.07780347764492035, 0.4481518268585205, -0.37251439690589905, 0.036346737295389175, -0.0800347700715065, 0.229007288813591, -0.034646742045879364, 0.057286862283945084, 0.10258505493402481, -0.06039499491453171, -0.30640625953674316, 0.06264110654592514, -0.12711752951145172, 0.11428239196538925, -0.18654833734035492, 0.45486292243003845, -0.09562619775533676, -0.1367362141609192, 0.07154116779565811, -0.14009128510951996, 0.17479611933231354, -0.19927772879600525, 0.3945743441581726, 0.4614478051662445, 0.2651831805706024, 0.38994795083999634, 0.13018105924129486, 0.7003704309463501, 0.46308720111846924, -0.28568050265312195, 0.15544001758098602, -0.1311315894126892, -0.0159364715218544, 0.12740911543369293, 0.05776386335492134, 0.26664242148399353, 0.36727476119995117, 0.1465814709663391, 0.18118023872375488, -0.11628704518079758, -0.14755013585090637, 0.18024563789367676, 0.2748169004917145, 0.08683736622333527, 0.21162740886211395, -0.21518370509147644, 0.22265255451202393, -0.600572407245636, -0.18918192386627197, -0.3627198338508606, 0.16007481515407562, 0.5220954418182373, -0.12264621257781982, -0.12634439766407013, -0.15074777603149414, 0.10211723297834396, 0.0950000211596489, 0.4163970947265625, 0.3352278769016266, 0.12806068360805511, -0.183330699801445, 0.029078712686896324, -0.7274274826049805, 0.250183641910553, 0.12063995748758316, -0.4472252428531647, -0.06915390491485596, -0.09692586958408356, -0.07524853199720383, 0.3170582354068756, 0.028310716152191162, 0.3503972291946411, -0.021404100582003593, 0.22060292959213257, 0.013788482174277306, 0.032827675342559814, -0.2921745479106903, 0.008651160635054111, -0.2400585263967514, -0.18255284428596497, 0.021602487191557884, -0.507954478263855, 0.0847155824303627, -0.23182527720928192, -0.4743777811527252, -0.3261175751686096, 0.26961952447891235, 0.3063947558403015, 0.13068825006484985, 0.5721480250358582, -0.16457082331180573, -0.21644721925258636, -0.21391555666923523, -0.299996942281723, -0.1513899266719818, 0.5063723921775818, 0.19185787439346313, 0.015399526804685593, 0.062090132385492325, 0.12507036328315735, -0.437520831823349, 0.33587607741355896, -0.1156734824180603, -0.1946086287498474, -0.3811296224594116, -0.03922045975923538, -0.09603049606084824, -0.014008624479174614, 0.16110455989837646, 0.3276616930961609, 0.005970424972474575, 0.16868014633655548, -0.12389278411865234, -0.6365166902542114, 0.31057116389274597, -0.3692488968372345, -0.06265827268362045, 0.05109240859746933, 0.25142592191696167, -0.15003520250320435, 0.12298736721277237, -0.510400116443634, 0.26056110858917236, -0.019522076472640038, -0.16343843936920166, -0.3511119484901428, 0.11213460564613342, -0.2120518535375595, -0.0391763411462307, -0.16069236397743225, 0.36741068959236145, 0.2209971696138382, -0.2025870382785797, -0.031933560967445374, -0.12163881212472916 ]
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.3819620609283447, 0.03284896910190582, -0.015480917878448963, 0.2028753012418747, 0.3120899200439453, 0.06895912438631058, 0.005816287826746702, 0.18256902694702148, -0.08367125689983368, 0.02933458238840103, 0.014070450328290462, 0.40086087584495544, 0.05778171494603157, 0.2399226576089859, 0.16254065930843353, 0.1409793496131897, 0.07230415940284729, 0.22203469276428223, 0.10505688190460205, -0.027518995106220245, -0.2586424946784973, 0.2288963347673416, -0.130845308303833, 0.1349903792142868, -0.3728036880493164, -0.18323545157909393, 0.1941954493522644, 0.2883252203464508, -0.2690778076648712, -0.540229320526123, 0.3226153552532196, -0.040962982922792435, 0.15257476270198822, 0.30429941415786743, -0.0001053744854289107, -0.17878186702728271, 0.5192811489105225, -0.2602531909942627, -0.1324339658021927, -0.2859141230583191, -0.07656264305114746, -0.16203491389751434, 0.21236424148082733, -0.19532203674316406, 0.15570992231369019, 0.25269991159439087, 0.02292684093117714, -0.22710593044757843, 0.21518172323703766, 0.23197637498378754, 0.2676602602005005, 0.06081196665763855, -0.018649522215127945, 0.04580200836062431, 0.06698036193847656, 0.10035990923643112, -0.026197029277682304, 0.4292517900466919, 0.4187469482421875, -0.07282785326242447, 0.13668012619018555, 0.13908778131008148, -0.2907060980796814, -0.11774270236492157, 0.23089386522769928, 0.13560494780540466, -0.1527102291584015, -0.5397377014160156, 0.03035627491772175, 0.23962339758872986, 0.40433016419410706, -0.43413424491882324, -0.21988864243030548, 0.07276212424039841, 0.2851531505584717, -0.4451398253440857, 0.22959908843040466, 0.38130706548690796, -0.31050458550453186, 0.1312864124774933, -0.07267209142446518, 0.18512165546417236, 0.15988120436668396, -0.01668892242014408, 0.02419564500451088, -0.12135285139083862, -0.07198537141084671, -0.095821812748909, 0.06449694186449051, -0.07556389272212982, 0.22185887396335602, 0.040813982486724854, -0.12984494864940643, 0.03114955499768257, -0.023144647479057312, -0.06544449180364609, -0.1572762429714203, 0.08884614706039429, -0.10316941142082214, 0.05267120897769928, 0.3892246186733246, 0.190430149435997, -0.1060628816485405, 0.39263516664505005, 0.21875932812690735, 0.07648368924856186, -0.18632730841636658, 0.26495102047920227, 0.3690947890281677, 0.17929689586162567, 0.03523942455649376, -0.007588102947920561, -0.1356833577156067, -0.14096173644065857, -0.11855658888816833, 0.28914254903793335, 0.14623869955539703, -0.1817832738161087, -0.45066988468170166, 0.14888489246368408, 0.15403060615062714, 0.23772701621055603, 0.19902224838733673, 0.1871265172958374, 0.16946302354335785, 0.32245224714279175, 0.04060550779104233, 0.28570565581321716, -0.2505062222480774, -0.26122552156448364, -0.09038791805505753, 0.17975275218486786, -0.25924763083457947, -0.11036127060651779, 0.21830293536186218, -0.1018044501543045, 0.17589151859283447, 0.2183074802160263, 0.28620776534080505, -0.15719246864318848, 0.05349322780966759, -0.09253264218568802, 0.21983490884304047, 0.2458466738462448, 0.18648800253868103, 0.2278590053319931, 0.11672978103160858, -0.25491392612457275, -0.14827241003513336, 0.012295788154006004, -0.4237726628780365, -0.11147123575210571, -0.05510346591472626, 0.22404521703720093, -0.05795524641871452, -0.09876720607280731, -0.6468678712844849, 0.061572108417749405, 0.001206018845550716, -0.3656574785709381, 0.07538299262523651, -0.18649831414222717, -0.049267932772636414, -0.08491648733615875, 0.1986238807439804, 0.5331298112869263, -0.4609876871109009, 0.1437169760465622, 0.0010170788737013936, 0.030428295955061913, 0.2228224277496338, 0.1494707614183426, -0.13810274004936218, -0.16213154792785645, -0.31928879022598267, 0.10656635463237762, 0.2765076756477356, -0.5096930265426636, -0.2977875769138336, 0.4063529968261719, -0.09369347244501114, -0.004982536192983389, -0.002960930811241269, 0.006435266230255365, 0.13214698433876038, -0.23749053478240967, 0.03508179634809494, 0.3566591143608093, -0.08396551012992859, 0.1826423555612564, -0.21231065690517426, -0.12246105074882507, 0.09724655747413635, -0.06551489233970642, -0.1674877554178238, -0.11066485196352005, 0.13592517375946045, 0.15899339318275452, 0.22154387831687927, 0.1049712747335434, -0.16107527911663055, 0.10810311138629913, 0.26168131828308105, 0.02014532871544361, -0.0755084753036499, 0.12334055453538895, 0.058850519359111786, 0.07797816395759583, -0.21073225140571594, 0.08634666353464127, -0.43988609313964844, -0.2682015597820282, -0.14563415944576263, 0.033542945981025696, -0.33264732360839844, -0.08395534008741379, 0.22566841542720795, -0.024178406223654747, -0.21007390320301056, 0.025898916646838188, -0.3468073308467865, 0.18514543771743774, 0.08878152072429657, 0.0475904680788517, -0.26620951294898987, 0.1227072924375534, -0.16638332605361938, -0.2624225318431854, 0.23365385830402374, 0.14941199123859406, 0.10163387656211853, -0.04740189388394356, -0.15304236114025116, 0.2827337980270386, 0.06985858827829361, 0.35053709149360657, -0.2592073380947113, -0.1781456023454666, 0.5491706132888794, -0.5299209952354431, 0.12763869762420654, 0.36869359016418457, 0.24687184393405914, -0.1486334502696991, 0.20105674862861633, 0.2885652482509613, -0.19764529168605804, 0.016166308894753456, 0.07635988295078278, -0.0940711572766304, 0.29522526264190674, 0.11280059814453125, 0.0039010290056467056, -0.3647908568382263, 0.26327234506607056, 0.5909791588783264, 0.20624318718910217, -0.10963746905326843, -0.12406249344348907, 0.1479020118713379, 0.44978252053260803, -0.039071597158908844, -0.030570046976208687, 0.06850498169660568, 0.01580643653869629, -0.055120475590229034, -0.013151388615369797, -0.0006508785299956799, 0.07805118709802628, -0.08516459167003632, -0.2253016084432602, 0.2005334496498108, 0.05985419079661369, -0.2409399151802063, 0.16965541243553162, -0.028212398290634155, -0.15089550614356995, 0.10101909190416336, 0.06796547025442123, 0.11746447533369064, -0.22351257503032684, -0.26039478182792664, 0.01803203485906124, 0.03486234322190285, -0.37211886048316956, 0.1928665190935135, -0.46264344453811646, -0.3444407284259796, -0.09237144142389297, 0.06278680264949799, -0.004826991353183985, -0.13746055960655212, -0.07466886937618256, 0.15103642642498016, 0.11171621084213257, 0.14182622730731964, -0.3286171853542328, -0.06492598354816437, -0.14684438705444336, -0.1589345633983612, 0.004720776807516813, -0.21410617232322693, -0.15980082750320435, 0.09841350466012955, 0.4974023699760437, 0.0695270225405693, 0.042490772902965546, -0.4195205271244049, 0.16617226600646973, 0.07359948754310608, -0.12089477479457855, 0.22493219375610352, -0.22626732289791107, 0.12655697762966156, 0.04263019561767578, 0.05008929595351219, 0.011444289237260818, -0.453096866607666, 0.14853546023368835, -0.12354664504528046, -0.02036297880113125, 0.2205781638622284, -0.02667921595275402, -0.3890243470668793, -0.1062774807214737, -0.004259295295923948, -0.37991413474082947, -0.2897253930568695, -0.18750987946987152, 0.04664173722267151, 0.04195313900709152, 0.20302918553352356, 0.15316051244735718, 0.12822379171848297, 0.24373556673526764, -0.011690745130181313, -0.011724859476089478, -0.34917065501213074, 0.3963181674480438, -0.32428908348083496, -0.4361437261104584, 0.2484275996685028, 0.018128888681530952, 0.37129321694374084, -0.2505527436733246, -0.2293865978717804, -0.044573601335287094, -0.11633020639419556, 0.2337529957294464, 0.13344015181064606, 0.006366903427988291, -0.10048770904541016, -0.038895539939403534, -0.056614212691783905, -0.03111998736858368, -0.08222838491201401, -0.11180717498064041, -0.08230142295360565, 0.16422760486602783, -0.000816361338365823, 0.32575899362564087, -0.34447091817855835, -0.06416695564985275, 0.29067203402519226, 0.06649384647607803, 0.6802040934562683, -0.18250752985477448, 0.3822163939476013, -0.28701549768447876, -0.10669516026973724, -0.11050394922494888, -0.17708443105220795, -0.08407469838857651, 0.1418684720993042, -0.04551253467798233, -0.38720935583114624, -0.3534778952598572, -0.020564917474985123, -0.38724926114082336, -0.3599245548248291, 0.06468566507101059, -0.023365413770079613, -0.08338695764541626, -0.05147389695048332, 0.1716672033071518, 0.16325993835926056, -0.3739400804042816, 0.07098233699798584, 0.29052427411079407, 0.003234474454075098, 0.13903436064720154, -0.14564886689186096, -0.4058154821395874, 0.037388693541288376, 0.07405312359333038, 0.13748838007450104, 0.36214059591293335, -0.06644860655069351, 0.13293395936489105, 0.10965483635663986, -0.06789512187242508, 0.22575677931308746, -0.024567725136876106, 0.1511806696653366, 0.12179785966873169, 0.03257841244339943, 0.028257135301828384, -0.06708293408155441, -0.20335301756858826, 0.14082226157188416, 0.08987259119749069, -0.22739163041114807, -0.12178725749254227, 0.08147942274808884, -0.01891845278441906, 0.433735728263855, -0.02898597903549671, 0.13120657205581665, -0.3555259108543396, -0.6048948168754578, -0.11630276590585709, -0.21355946362018585, 0.3056265115737915, 0.13136452436447144, -0.08555096387863159, -0.08866294473409653, -0.03548147901892662, -0.22561636567115784, 0.2622634768486023, 0.3639516234397888, 0.4189312756061554, 0.09525667130947113, 0.1512112021446228, -0.15064090490341187, -0.29628461599349976, 0.4756004512310028, 0.7579314112663269, -0.06288255006074905, -0.3353411853313446, 0.06968134641647339, -0.2625264525413513, 0.1225968450307846, 0.29080086946487427, -0.09959284961223602, -0.36345598101615906, -0.04284841567277908, -0.1352623850107193, -0.09041151404380798, -0.04612598940730095, 0.2596376836299896, 0.011513523757457733, -0.4596990644931793, -0.5531423687934875, 0.4936636984348297, 0.06878644227981567, 0.1376950591802597, 0.1065332219004631, 0.15121784806251526, -0.31862494349479675, 0.311892569065094, 0.049996599555015564, 0.8768317103385925, 0.16909003257751465, 0.01783253811299801, 0.13538722693920135, 0.1137557178735733, 0.17730556428432465, -0.12571614980697632, 0.1167740672826767, -0.30973634123802185, -0.23570673167705536, -0.04242820665240288, 0.1386723667383194, 0.017619090154767036, 0.20516614615917206, -0.3177807331085205, 0.1894601732492447, -0.22388847172260284, -0.3268328309059143, 0.004913820419460535, 0.4409635663032532, -0.4308355152606964, -0.18524232506752014, -0.34232398867607117, 0.23869968950748444, 0.006817481014877558, 0.04102078452706337, 0.008472857996821404, -0.13439680635929108, -0.05865488946437836, -0.18264761567115784, -0.5604509115219116, 0.20456787943840027, -0.4502362012863159, 0.23352402448654175, -0.15526516735553741, -0.5828348398208618, 0.2049243003129959, 0.052420973777770996, 0.22463224828243256, 0.20094285905361176, 0.035286229103803635, 0.13926532864570618, 0.49987125396728516, -0.08768260478973389, 0.13613246381282806, 0.034466687589883804, 0.3020971119403839, -0.22865287959575653, -0.08870260417461395, 0.18683405220508575, 0.20941409468650818, 0.04805431887507439, 0.4210774600505829, 0.05689819157123566, -0.18148185312747955, -0.0926160141825676, -0.38836169242858887, -0.3068869411945343, 0.11355160921812057, -0.0009189842385239899, 0.162693053483963, -0.012549706734716892, -0.08069872856140137, -0.0822211503982544, 0.19795653223991394, -0.28481772541999817, -0.10284584015607834, 0.12092943489551544, -0.15307243168354034, -0.18079356849193573, 0.4431290030479431, 0.2550024390220642, -0.30897656083106995, -0.09763465076684952, 0.26540669798851013, 0.08958262950181961, -0.6359014511108398, 0.010724385268986225, 0.17504124343395233, -0.01359186228364706, 0.07320147007703781, 0.5347981452941895, -0.009349259547889233, -0.009309452958405018, -0.057587627321481705, -0.4145113229751587, -0.15406475961208344, 0.11113163828849792, -0.05291749909520149, 0.0361156240105629, 0.0036040442064404488, 0.23176614940166473, 0.19102999567985535, -0.31913530826568604, -0.3135760724544525, 0.12778393924236298, -0.18099041283130646, -0.08266731351613998, 0.1218072697520256, 0.03740490600466728, 0.061320021748542786, 0.04581217095255852, 0.1207922101020813, 0.27525022625923157, 0.07040058821439743, -0.18560634553432465, -0.03103540651500225, 0.09353559464216232, -0.09458673745393753, -0.38483065366744995, -0.10181013494729996, 0.05094962567090988, -0.13824854791164398, -0.09404271095991135, 0.1085345596075058, 0.2424841672182083, 0.1397392749786377, 0.15032686293125153, -0.2062705010175705, -0.07383239269256592, -0.09675386548042297, 0.2157619744539261, -0.06562960147857666, 0.6222365498542786, 0.08354029059410095, 0.08991604298353195, 0.06874016672372818, 0.0016750356880947948, -0.009017514996230602, 0.09166836738586426, -0.3974383473396301, 0.112001433968544, 0.26126629114151, -0.2647682726383209, 0.45132333040237427, 0.3277537524700165, 0.024848954752087593, 0.639199435710907, -0.19187629222869873, -0.1447708159685135, 0.24806173145771027, 0.19423067569732666, -0.17975521087646484, 0.08208615332841873, -0.19100932776927948, -0.041382770985364914, -0.14586426317691803, 0.22784045338630676, 0.2588406801223755, -0.06763476878404617, 0.12206421047449112, -0.13675589859485626, 0.6583896279335022, 0.05652451887726784, 0.4018710255622864, 0.16928906738758087, 0.007238989695906639, 0.23846660554409027, -0.14816680550575256, 0.22850704193115234, 0.04414748027920723, 0.11292397975921631, -0.5978401899337769, 0.012028705328702927, 0.0928184986114502, 0.1366988569498062, -0.02476075291633606, -0.3500501811504364, -0.09621399641036987, -0.2052512764930725, -0.10490817576646805, 0.20660246908664703, 0.07698854804039001, 0.40652722120285034, -0.35236430168151855, 0.04630867764353752, -0.07280284911394119, 0.23059208691120148, -0.03073868900537491, 0.0494086891412735, 0.07970494776964188, -0.05996670946478844, -0.33552423119544983, 0.07684976607561111, -0.14995791018009186, 0.13018693029880524, -0.1789730042219162, 0.4968092143535614, -0.08918972313404083, -0.08800197392702103, 0.06966578215360641, -0.14454230666160583, 0.20560987293720245, -0.20876292884349823, 0.40461790561676025, 0.4655506908893585, 0.25858452916145325, 0.3722354769706726, 0.11808101832866669, 0.7204273343086243, 0.4647768437862396, -0.2893508970737457, 0.1401362270116806, -0.11798854172229767, -0.03717871010303497, 0.13529711961746216, 0.0572052001953125, 0.2359020709991455, 0.34324100613594055, 0.10243446379899979, 0.20567606389522552, -0.1445980668067932, -0.152390256524086, 0.17103375494480133, 0.2750340700149536, 0.0960645079612732, 0.1789361834526062, -0.19397129118442535, 0.22163325548171997, -0.616033136844635, -0.19461120665073395, -0.3276045620441437, 0.14130380749702454, 0.5070896744728088, -0.14266584813594818, -0.156132772564888, -0.16301938891410828, 0.11896684020757675, 0.09719491004943848, 0.386383593082428, 0.3257065713405609, 0.11115940660238266, -0.18122424185276031, 0.05900655314326286, -0.6790170669555664, 0.25117194652557373, 0.15052080154418945, -0.43284252285957336, -0.06282223016023636, -0.08450309932231903, -0.07079662382602692, 0.29983142018318176, 0.03803127631545067, 0.3017370104789734, -0.01698938198387623, 0.23774927854537964, 0.01843932457268238, 0.04622463509440422, -0.27482542395591736, -0.011482109315693378, -0.21714401245117188, -0.1663307100534439, 0.013108170591294765, -0.5385062098503113, 0.10013969242572784, -0.2253274768590927, -0.45753350853919983, -0.2884436249732971, 0.3197562098503113, 0.29667794704437256, 0.10213857889175415, 0.5777385234832764, -0.19063745439052582, -0.22665464878082275, -0.17350375652313232, -0.3024671673774719, -0.15583796799182892, 0.5097600817680359, 0.18075242638587952, 0.02820940874516964, 0.06523536890745163, 0.06823950260877609, -0.4261285066604614, 0.33914265036582947, -0.13710103929042816, -0.23315666615962982, -0.35332316160202026, -0.03647477179765701, -0.11096229404211044, -0.01567208208143711, 0.1409452259540558, 0.34115463495254517, 0.008554965257644653, 0.17462366819381714, -0.13680003583431244, -0.6540454030036926, 0.3415570557117462, -0.354343980550766, -0.06921491771936417, 0.04358655959367752, 0.2550295293331146, -0.15109871327877045, 0.11504166573286057, -0.4863814115524292, 0.26215431094169617, -0.014934434555470943, -0.1655166745185852, -0.3533979654312134, 0.10192259401082993, -0.19165779650211334, -0.021696854382753372, -0.1677827388048172, 0.339493989944458, 0.21470290422439575, -0.19015029072761536, -0.05540537089109421, -0.10512229055166245 ]
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.32184669375419617, 0.041040077805519104, -0.017262842506170273, 0.1921311914920807, 0.38413751125335693, -0.04183322563767433, 0.053385019302368164, 0.1839185357093811, -0.24381467700004578, 0.07465629279613495, 0.1122438907623291, 0.4671260118484497, 0.11079901456832886, 0.32633525133132935, 0.2156340479850769, 0.07934191077947617, 0.12159362435340881, 0.29352444410324097, 0.03679351136088371, 0.025393055751919746, -0.46001720428466797, 0.18018464744091034, -0.10282500088214874, 0.10621188580989838, -0.2276371866464615, -0.10093223303556442, 0.055366016924381256, 0.27349621057510376, -0.20237331092357635, -0.5459722876548767, 0.18963263928890228, -0.0750284418463707, 0.26057031750679016, 0.22775064408779144, -0.00010598230437608436, -0.04405346140265465, 0.2804322838783264, -0.1803227812051773, -0.15691286325454712, -0.2889730930328369, -0.19754339754581451, -0.3678891062736511, 0.1078185886144638, -0.2368740290403366, 0.06357837468385696, 0.21372906863689423, -0.0024228477850556374, -0.21361713111400604, 0.43950068950653076, 0.377024382352829, 0.27943071722984314, 0.13542398810386658, -0.1147260069847107, 0.10991518944501877, 0.05412490293383598, 0.05732160434126854, -0.018666239455342293, 0.5010843276977539, 0.21317796409130096, -0.233981192111969, 0.02983175963163376, 0.17212367057800293, -0.24235093593597412, -0.0580994188785553, 0.09732465445995331, 0.15943817794322968, -0.21015198528766632, -0.4088995158672333, 0.12959307432174683, 0.13513711094856262, 0.31001269817352295, -0.3249751329421997, -0.1276598572731018, 0.008314966224133968, 0.10668438673019409, -0.7205759286880493, 0.3261364698410034, 0.4268103539943695, -0.24560223519802094, 0.1342463493347168, 0.06099145486950874, 0.226962149143219, 0.04612160474061966, -0.021439356729388237, 0.06957587599754333, -0.03164392709732056, -0.23752494156360626, -0.04699600115418434, 0.22289974987506866, -0.03806349262595177, 0.09245697408914566, 0.001214776188135147, -0.21062719821929932, 0.08152201026678085, -0.2083331197500229, 0.03760193660855293, -0.17507831752300262, 0.03156854957342148, -0.15389950573444366, -0.062015600502491, 0.5168819427490234, 0.1546451449394226, 0.013629290275275707, 0.32131826877593994, 0.10492528975009918, 0.07977713644504547, -0.12208015471696854, 0.17089539766311646, 0.37928053736686707, -0.03426698222756386, 0.14151343703269958, -0.015255331993103027, -0.2251727133989334, -0.3475312292575836, -0.2094828486442566, 0.3959982097148895, 0.21655042469501495, -0.15234017372131348, -0.43616533279418945, 0.12127847224473953, 0.09806565195322037, 0.07021516561508179, 0.024060634896159172, 0.22434142231941223, 0.20476967096328735, 0.34666675329208374, 0.016804497689008713, 0.20398665964603424, -0.3592664301395416, -0.24294519424438477, -0.01730915904045105, 0.18190547823905945, -0.36888906359672546, -0.06975290924310684, 0.2735365629196167, -0.1578790694475174, 0.05498562008142471, 0.2533174157142639, 0.1688397377729416, -0.21180973947048187, -0.04514499753713608, -0.20115362107753754, 0.11549030989408493, 0.13484883308410645, 0.04993500933051109, 0.21833880245685577, 0.12983562052249908, -0.3230084180831909, -0.09042508900165558, 0.07447276264429092, -0.5151636004447937, -0.006091947667300701, -0.07996633648872375, 0.2387245148420334, -0.1374502182006836, -0.05138660967350006, -0.4799756705760956, 0.17801712453365326, 0.019898122176527977, -0.43064409494400024, 0.010103587992489338, -0.20540349185466766, -0.13547241687774658, -0.2135007232427597, 0.1875985711812973, 0.5726642608642578, -0.54932701587677, 0.21754960715770721, 0.2308415323495865, 0.02705167979001999, 0.2820724546909332, 0.1310223639011383, -0.13390876352787018, -0.17691229283809662, -0.17063473165035248, -0.032075393944978714, 0.26163449883461, -0.28156211972236633, -0.2736174166202545, 0.35230016708374023, -0.007257750723510981, -0.04579225182533264, 0.03500599414110184, -0.1634369045495987, 0.19339679181575775, -0.25199198722839355, 0.03211287781596184, 0.37934553623199463, 0.037485312670469284, 0.303510844707489, -0.20110884308815002, -0.15440598130226135, 0.27324342727661133, 0.010740700177848339, -0.29365015029907227, -0.20325419306755066, 0.28219541907310486, 0.14166271686553955, 0.17445117235183716, -0.1511707603931427, -0.13375310599803925, 0.15876038372516632, 0.23274309933185577, -0.20960374176502228, -0.025487098842859268, 0.18051016330718994, -0.024959510192275047, -0.026068633422255516, -0.22982174158096313, 0.05817371979355812, -0.289023756980896, -0.14959944784641266, -0.09294164925813675, 0.0466047003865242, -0.3246443271636963, -0.2399463802576065, 0.20325736701488495, 0.036950938403606415, -0.14263173937797546, -0.001422918401658535, -0.14115169644355774, 0.2768866717815399, 0.01073192898184061, -0.013901544734835625, -0.17243072390556335, 0.18617872893810272, -0.0900346040725708, -0.2032659351825714, 0.27267134189605713, 0.3069348633289337, 0.1852346807718277, -0.13142944872379303, -0.28734850883483887, 0.2914460003376007, 0.03483334183692932, 0.35788336396217346, -0.2649577260017395, -0.2401685267686844, 0.4578379690647125, -0.4840072691440582, 0.07094626128673553, 0.4611471891403198, 0.3018135130405426, -0.09798639267683029, 0.15450996160507202, 0.3615802228450775, -0.17675264179706573, 0.01959550380706787, -0.016570931300520897, -0.12441980838775635, 0.21313241124153137, 0.03070129081606865, 0.05708717927336693, -0.19433119893074036, 0.34805598855018616, 0.5848904848098755, 0.25599798560142517, 0.037470050156116486, -0.14994743466377258, -0.0009213212179020047, 0.5480137467384338, -0.09266160428524017, -0.07304751873016357, 0.12199917435646057, 0.028134843334555626, -0.1021297425031662, 0.08197399973869324, 0.035426583141088486, 0.3410062789916992, -0.11840154975652695, -0.269351065158844, 0.26313385367393494, 0.0719556212425232, -0.24932457506656647, 0.17859475314617157, -0.06634639948606491, -0.03981076925992966, 0.001624487224034965, 0.10922477394342422, 0.20627090334892273, -0.2464141696691513, -0.0896531492471695, 0.181976318359375, 0.13077804446220398, -0.37067702412605286, 0.3590084910392761, -0.5268558263778687, -0.422270268201828, -0.2778967022895813, 0.2370273917913437, -0.15062488615512848, 0.05658883973956108, -0.2060832679271698, -0.014638608321547508, 0.004853986669331789, 0.18097519874572754, -0.19596350193023682, 0.05910549312829971, -0.16773724555969238, -0.12391600757837296, 0.16118377447128296, -0.20201712846755981, -0.32564985752105713, 0.10918296873569489, 0.4991660416126251, -0.06720346212387085, 0.05670629441738129, -0.3631936013698578, 0.13407659530639648, 0.19237558543682098, -0.13328462839126587, 0.13867510855197906, -0.1958271712064743, 0.21748855710029602, -0.046145763248205185, 0.01972956769168377, -0.09402254223823547, -0.43981125950813293, 0.17573827505111694, -0.062079302966594696, 0.018076468259096146, 0.16883039474487305, -0.051943570375442505, -0.2897466719150543, -0.27442702651023865, -0.15589182078838348, -0.5099149346351624, -0.3886058032512665, -0.11364354193210602, -0.11471324414014816, 0.08904775977134705, 0.3229115903377533, 0.025617949664592743, 0.029021142050623894, 0.18735560774803162, -0.11734036356210709, -0.04953279346227646, -0.14874304831027985, 0.34195613861083984, -0.4083912968635559, -0.5525041222572327, 0.10084831714630127, -0.019843846559524536, 0.3197479546070099, -0.15636171400547028, -0.1896938681602478, -0.006978360936045647, -0.15072579681873322, 0.10507075488567352, 0.00354498578235507, 0.10021325200796127, -0.05472584813833237, -0.04707532376050949, -0.025463121011853218, -0.19985249638557434, -0.19223986566066742, -0.061354514211416245, 0.08959516882896423, 0.24901393055915833, 0.04752131178975105, 0.2492835819721222, -0.2908988893032074, 0.01630786992609501, 0.3181403875350952, 0.03560781106352806, 0.5225814580917358, -0.13615791499614716, 0.4234561622142792, -0.02751358039677143, -0.05855407938361168, 0.18327224254608154, -0.3034590184688568, -0.05938725546002388, 0.30251961946487427, -0.05736992508172989, -0.2925334572792053, -0.3560013175010681, -0.056059397757053375, -0.39913591742515564, -0.4300524890422821, 0.21922840178012848, 0.0196992214769125, 0.08639714121818542, -0.003278485033661127, 0.18699678778648376, 0.05272093415260315, -0.32699188590049744, -0.08971694856882095, 0.32633453607559204, -0.07927756011486053, 0.12762799859046936, -0.2166728675365448, -0.5177030563354492, -0.15704010426998138, 0.11966275423765182, 0.14950169622898102, 0.49172690510749817, -0.0036262625362724066, 0.13175956904888153, 0.05958475545048714, -0.11264408379793167, 0.17316485941410065, 0.14030881226062775, 0.034748394042253494, 0.22606894373893738, 0.13349549472332, 0.001070304773747921, -0.10155327618122101, -0.23314721882343292, 0.18130581080913544, 0.025556400418281555, -0.2500878572463989, -0.11804286390542984, -0.059441108256578445, 0.02584473416209221, 0.44942164421081543, -0.10257237404584885, 0.1163969337940216, -0.4000313878059387, -0.5393142104148865, -0.006674095522612333, -0.21231678128242493, 0.13923542201519012, 0.2193726748228073, -0.25383761525154114, 0.041528455913066864, 0.057458557188510895, -0.2547736167907715, 0.3427101969718933, 0.40445852279663086, 0.46004894375801086, 0.17624637484550476, 0.025712035596370697, -0.2020941823720932, -0.003679100191220641, 0.2242470383644104, 0.6949766278266907, -0.014834824949502945, -0.3524726629257202, 0.17866992950439453, -0.22614195942878723, 0.30515754222869873, 0.2745774984359741, -0.23059038817882538, -0.02523575909435749, -0.11988787353038788, -0.0643102303147316, -0.22657544910907745, 0.1373445689678192, 0.22782349586486816, 0.14924854040145874, -0.6115513443946838, -0.5212313532829285, 0.4964289367198944, -0.0708809494972229, 0.10429951548576355, 0.16227607429027557, -0.0925319716334343, -0.2440129667520523, 0.22676365077495575, 0.011018283665180206, 0.8180407285690308, 0.18717661499977112, 0.15514186024665833, 0.23172828555107117, 0.012478549033403397, 0.2823655307292938, -0.08246465772390366, 0.16571418941020966, -0.23039457201957703, -0.19437626004219055, 0.05159247666597366, 0.16193383932113647, 0.21976427733898163, 0.009803169406950474, -0.3544757664203644, 0.16515403985977173, 0.15741896629333496, -0.16936689615249634, 0.1786857545375824, 0.20021487772464752, -0.2210119366645813, -0.3044358491897583, -0.5463431477546692, 0.19548898935317993, -0.0740818902850151, 0.019492322579026222, -0.06771952658891678, -0.28363311290740967, 0.0822208970785141, -0.2928803861141205, -0.25782638788223267, 0.31820976734161377, -0.5277629494667053, 0.16142547130584717, -0.16278013586997986, -0.6413748860359192, 0.3334996700286865, 0.16239207983016968, 0.1746075451374054, 0.2281082421541214, -0.016387011855840683, 0.11010914295911789, 0.2558591067790985, 0.08163215219974518, 0.02554653026163578, 0.11032203584909439, 0.13192887604236603, -0.17208386957645416, -0.02983335219323635, 0.21041123569011688, 0.04975494369864464, 0.10050439089536667, 0.37391623854637146, 0.08701728284358978, -0.18570582568645477, -0.14848551154136658, -0.16687235236167908, -0.2551543116569519, 0.16537804901599884, -0.017203522846102715, 0.15327322483062744, -0.03487802669405937, -0.025639664381742477, 0.03246954455971718, -0.008933356031775475, -0.4061691164970398, -0.15369299054145813, 0.046881139278411865, -0.10162486881017685, -0.170616015791893, 0.4922061562538147, 0.15205325186252594, -0.24272286891937256, -0.08987292647361755, 0.27226540446281433, -0.16834858059883118, -0.4991506338119507, -0.047939956188201904, 0.20286661386489868, 0.025537865236401558, 0.09532903879880905, 0.6194526553153992, -0.06149531528353691, 0.010783555917441845, 0.08224005997180939, -0.5254034399986267, -0.22157420217990875, -0.007388627622276545, -0.07670144736766815, -0.09945299476385117, 0.19910259544849396, 0.26631954312324524, 0.09846725314855576, -0.19288784265518188, -0.3095080256462097, 0.047918010503053665, -0.017729567363858223, 0.058578841388225555, 0.2214009165763855, 0.01172265037894249, 0.1854635775089264, 0.0903157964348793, 0.1096259132027626, 0.3042013943195343, -0.04313373938202858, -0.16531825065612793, -0.19658683240413666, 0.10162600129842758, -0.08494596928358078, -0.33559149503707886, -0.07427755743265152, 0.0007750532822683454, 0.012075209990143776, -0.17721393704414368, 0.18216735124588013, 0.08502331376075745, 0.00713994400575757, 0.1622144877910614, -0.36174240708351135, 0.12232259660959244, -0.05455365777015686, 0.2537569999694824, -0.19599242508411407, 0.5454299449920654, 0.10135281085968018, 0.1406719833612442, 0.07464522123336792, 0.05254151299595833, -0.10805569589138031, -0.07511021196842194, -0.3167438805103302, 0.026664836332201958, 0.14252662658691406, -0.32326340675354004, 0.38748863339424133, 0.17540307343006134, -0.041246894747018814, 0.5807671546936035, -0.11491864919662476, 0.03852246329188347, 0.4276030659675598, 0.15287230908870697, -0.25099706649780273, 0.13763216137886047, -0.34202608466148376, -0.030752215534448624, -0.1033080518245697, 0.2464759349822998, 0.2873433232307434, -0.2221657931804657, 0.22217416763305664, -0.18214184045791626, 0.4188603162765503, 0.16871090233325958, 0.4179495573043823, 0.5055610537528992, 0.20754088461399078, 0.2703207731246948, -0.11950379610061646, 0.10818624496459961, -0.012581410817801952, 0.06936410814523697, -0.5291960835456848, 0.08627796173095703, 0.13312622904777527, 0.23085252940654755, -0.1569826602935791, -0.44904035329818726, -0.062026090919971466, -0.14164432883262634, -0.18209105730056763, 0.3372344970703125, 0.08950449526309967, 0.5444591641426086, -0.5150151252746582, -0.0241565965116024, -0.09065139293670654, 0.1710393875837326, -0.08515327423810959, 0.018697258085012436, 0.1001984179019928, 0.020285410806536674, -0.22379527986049652, 0.1610751748085022, -0.13752229511737823, 0.12724244594573975, -0.07451819628477097, 0.3670584559440613, -0.149595707654953, -0.03109429031610489, 0.03805715963244438, 0.013626021333038807, 0.08130553364753723, -0.13143427670001984, 0.4910908043384552, 0.26424694061279297, 0.17308567464351654, 0.29932183027267456, 0.09913631528615952, 0.688045084476471, 0.4429653584957123, -0.08565842360258102, 0.014099879190325737, -0.1428181380033493, 0.08479136228561401, 0.1277453750371933, 0.10181495547294617, 0.3066108524799347, 0.44595399498939514, 0.1761084645986557, 0.17739517986774445, -0.10484012216329575, -0.07915900647640228, 0.17182785272598267, 0.026785224676132202, -0.011857145465910435, 0.06729735434055328, -0.0916435495018959, 0.21695931255817413, -0.4925687909126282, -0.11692734062671661, -0.3307476043701172, 0.256557434797287, 0.4066551625728607, 0.11521147191524506, 0.0020708267111331224, -0.11249355226755142, 0.10016316175460815, 0.15493176877498627, 0.4857947826385498, 0.1887947916984558, 0.10789481550455093, -0.13836415112018585, -0.07115421444177628, -0.7003782391548157, 0.27711808681488037, 0.12386954575777054, -0.3950073719024658, -0.14867517352104187, -0.36751458048820496, 0.0559089221060276, 0.2969881296157837, -0.0918397381901741, 0.281522661447525, 0.09994794428348541, 0.05519885942339897, -0.16436703503131866, -0.005327634979039431, -0.1478891372680664, 0.06493791937828064, -0.2525983154773712, -0.21976338326931, 0.09494202584028244, -0.2618751525878906, 0.04927629977464676, -0.2654634714126587, -0.26448696851730347, -0.3507195711135864, 0.05784733593463898, 0.3458443284034729, 0.23076269030570984, 0.47402045130729675, -0.26858198642730713, -0.07031480967998505, -0.15815265476703644, -0.1835353821516037, 0.0014248081715777516, 0.33804765343666077, 0.179127499461174, 0.04686487093567848, 0.037232402712106705, 0.15754373371601105, -0.4053705036640167, 0.1725749671459198, -0.09810074418783188, -0.08031188696622849, -0.1913542002439499, 0.04618927463889122, 0.054171547293663025, -0.12078376859426498, 0.29791441559791565, 0.41824012994766235, -0.0798112154006958, 0.0535573810338974, -0.11100705713033676, -0.5214465856552124, 0.20540636777877808, -0.6085338592529297, -0.1537294238805771, 0.10543732345104218, 0.3048875629901886, -0.22721639275550842, 0.13807569444179535, -0.4638047218322754, 0.25318944454193115, 0.024838559329509735, -0.12345415353775024, -0.3444530963897705, 0.1683739274740219, -0.2985505163669586, -0.1377817541360855, -0.08921755850315094, 0.44647130370140076, 0.19694021344184875, -0.30509111285209656, 0.11707852780818939, -0.2842419445514679 ]
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.2920767068862915, -0.11546678841114044, -0.048505187034606934, 0.1429697722196579, 0.39768537878990173, -0.13868530094623566, -0.02993791550397873, 0.2073105275630951, -0.3486037254333496, 0.11078851670026779, 0.1741642951965332, 0.471680223941803, 0.022073015570640564, 0.3367837071418762, 0.23934124410152435, -0.022137271240353584, 0.03464445099234581, 0.2812207341194153, -0.03621741384267807, -0.04216093197464943, -0.27051427960395813, 0.17115862667560577, -0.06596656143665314, -0.01706237532198429, -0.39972400665283203, -0.012458320707082748, 0.04869494214653969, 0.2974317967891693, -0.36483222246170044, -0.47515612840652466, 0.1951899528503418, 0.011911533772945404, 0.13591350615024567, 0.259455144405365, -0.00010118856880581006, -0.0771026536822319, 0.33848103880882263, -0.23746661841869354, -0.07268332690000534, -0.22146257758140564, -0.21621522307395935, -0.3395410478115082, 0.09974196553230286, -0.15816006064414978, -0.046025145798921585, 0.2871538996696472, 0.05476982146501541, -0.026453744620084763, 0.4907979667186737, 0.22252199053764343, 0.33611762523651123, 0.10829495638608932, -0.08713843673467636, 0.09709222614765167, 0.03838629275560379, 0.1536252647638321, -0.08105971664190292, 0.4045354127883911, 0.2657891511917114, -0.24891407787799835, 0.13000111281871796, 0.30252063274383545, -0.1547400802373886, -0.1583583503961563, 0.045534901320934296, 0.005072472617030144, -0.07711327821016312, -0.41471418738365173, 0.07863566279411316, 0.15391932427883148, 0.19330772757530212, -0.30205848813056946, -0.05591956898570061, 0.09198902547359467, 0.1005072221159935, -0.5315518975257874, 0.24142985045909882, 0.28929027915000916, -0.26209041476249695, 0.09326589107513428, -0.05643123760819435, 0.10548099875450134, 0.05200072005391121, -0.043190643191337585, 0.03255612775683403, 0.13273581862449646, -0.11925791203975677, -0.12432267516851425, 0.13174349069595337, 0.0007686173776164651, 0.15458834171295166, 0.08589482307434082, -0.20291373133659363, 0.21092063188552856, -0.13494807481765747, -0.10167226195335388, -0.11939216405153275, -0.0037293042987585068, -0.07989481836557388, -0.14570805430412292, 0.5618259906768799, 0.1537453681230545, -0.05236731469631195, 0.32369866967201233, 0.12995947897434235, 0.0667189210653305, -0.1919056624174118, 0.19378653168678284, 0.23120038211345673, 0.048426538705825806, 0.13308127224445343, 0.06268046796321869, -0.1734258085489273, -0.20257438719272614, -0.32864654064178467, 0.2584734559059143, 0.14050354063510895, -0.1802671104669571, -0.38703903555870056, 0.08654019236564636, 0.07746461778879166, 0.11443326622247696, 0.08003592491149902, 0.19666893780231476, 0.21502338349819183, 0.32007724046707153, -0.031015940010547638, 0.2661575675010681, -0.3405721187591553, -0.3002045750617981, -0.15360529720783234, 0.2318948358297348, -0.4263075292110443, -0.1337781697511673, 0.15558546781539917, -0.010365103371441364, 0.15589368343353271, 0.20737336575984955, 0.16980820894241333, -0.12404362857341766, 0.066779725253582, -0.07249768823385239, 0.0879874899983406, 0.1300012618303299, -0.000406468752771616, 0.0970364436507225, 0.16069652140140533, -0.2576763927936554, -0.09560075402259827, 0.06968678534030914, -0.40697377920150757, -0.020101197063922882, -0.052261143922805786, 0.31796908378601074, -0.0753246322274208, -0.04666849598288536, -0.46601957082748413, 0.19138416647911072, 0.1194680854678154, -0.30607858300209045, 0.12381844222545624, -0.16913683712482452, -0.06261153519153595, -0.170872300863266, 0.15835091471672058, 0.42471441626548767, -0.4670242667198181, 0.0496596060693264, 0.22118297219276428, -0.0012428169138729572, 0.36959657073020935, 0.05875873193144798, -0.1565057933330536, -0.1428927481174469, -0.13305026292800903, -0.004720830824226141, 0.31988418102264404, -0.36327072978019714, -0.20363935828208923, 0.27009525895118713, -0.047594379633665085, -0.030683021992444992, -0.017387691885232925, -0.010635836981236935, 0.05301554128527641, -0.18642812967300415, 0.09729010611772537, 0.47206783294677734, 0.00497612077742815, 0.2972853481769562, -0.2908041775226593, -0.21389789879322052, 0.1408778876066208, 0.09191930294036865, -0.2211560308933258, -0.20594613254070282, 0.15340980887413025, 0.3134852647781372, 0.24277448654174805, -0.07708010077476501, -0.289200097322464, 0.16309063136577606, 0.2696896195411682, -0.2634696960449219, -0.1851074993610382, 0.23209841549396515, 0.07849477231502533, -0.03569478541612625, -0.390193909406662, 0.22682404518127441, -0.24396845698356628, -0.13089458644390106, -0.09365730732679367, 0.023181738331913948, -0.4545503258705139, -0.262798547744751, 0.2949180603027344, -0.004935075994580984, -0.13282816112041473, 0.011228809133172035, -0.1847510188817978, 0.26011621952056885, 0.0009451224468648434, -0.033531658351421356, -0.23782023787498474, 0.1849798560142517, -0.1797090619802475, -0.26753130555152893, 0.28699320554733276, 0.27901390194892883, 0.1291237324476242, -0.14470890164375305, -0.15728150308132172, 0.28604912757873535, 0.01248371135443449, 0.413127601146698, -0.2609885334968567, -0.24361443519592285, 0.5184409022331238, -0.5575980544090271, 0.07000382989645004, 0.4544993042945862, 0.19279710948467255, -0.16033367812633514, 0.2434350699186325, 0.2702004015445709, -0.0523839108645916, -0.05499694496393204, 0.04121838137507439, -0.13273631036281586, 0.15048909187316895, 0.024140648543834686, 0.046905916184186935, -0.16036474704742432, 0.3626900017261505, 0.6080378890037537, 0.2547626197338104, -0.048753492534160614, -0.1286945790052414, 0.11229598522186279, 0.4738335609436035, -0.01034819521009922, -0.0013962537050247192, 0.03264285624027252, 0.08487986028194427, -0.16633720695972443, 0.1038348525762558, 0.050344184041023254, 0.12577904760837555, -0.03443431109189987, -0.2082013040781021, 0.2009342610836029, -0.0656057745218277, -0.21054500341415405, 0.1600574254989624, -0.1011008620262146, -0.01159020233899355, 0.022414902225136757, 0.11007050424814224, 0.024963265284895897, -0.31929221749305725, -0.13977448642253876, 0.02350943349301815, 0.09397364407777786, -0.25004270672798157, 0.2658502459526062, -0.4543834626674652, -0.4244667589664459, -0.1767517775297165, 0.0882069543004036, -0.20569418370723724, -0.0796075388789177, 0.010361903347074986, -0.07777012139558792, 0.06701624393463135, 0.2921091318130493, -0.16475935280323029, -0.0042430805042386055, -0.12360002100467682, -0.09897822886705399, -0.011790295131504536, -0.18258987367153168, -0.21222363412380219, 0.16778011620044708, 0.4413803219795227, -0.03984127193689346, 0.10244429856538773, -0.381679892539978, 0.06469680368900299, 0.29647353291511536, -0.3084110915660858, 0.2883993089199066, -0.2581627368927002, 0.11062055081129074, -0.0010713755618780851, 0.09483958780765533, -0.05606626719236374, -0.31485530734062195, 0.21716605126857758, -0.11989574134349823, -0.09713079780340195, 0.11697272211313248, -0.04591026529669762, -0.19619204103946686, -0.2785634696483612, 0.06421701610088348, -0.4410550892353058, -0.3425575792789459, -0.20238615572452545, 0.12592633068561554, 0.0929156169295311, 0.4156615138053894, 0.20455007255077362, 0.0987192690372467, 0.17595036327838898, -0.0851391851902008, -0.1331689953804016, -0.3334021270275116, 0.26933208107948303, -0.3517208397388458, -0.4344562292098999, -0.0000722447584848851, -0.012158658355474472, 0.5023618936538696, -0.1869821846485138, -0.2606027126312256, -0.10262849181890488, -0.06708331406116486, 0.05553519353270531, -0.014421412721276283, 0.13798370957374573, -0.032457031309604645, -0.0005475893849506974, -0.06401710212230682, -0.12841929495334625, 0.031220030039548874, -0.04553515836596489, 0.031409408897161484, 0.3433046340942383, -0.08908022940158844, 0.16888752579689026, -0.20431365072727203, 0.07036493718624115, 0.1695307344198227, 0.08275596052408218, 0.6934220790863037, -0.07397695630788803, 0.4205712676048279, -0.1995115429162979, -0.048158351331949234, 0.14158183336257935, -0.12069261819124222, -0.0635126456618309, 0.1851135641336441, -0.04921199753880501, -0.286425918340683, -0.33367347717285156, 0.05515315756201744, -0.22856362164020538, -0.21710878610610962, 0.09991278499364853, 0.16522297263145447, -0.014346606098115444, 0.012988482601940632, 0.11714547872543335, 0.0883733481168747, -0.22867617011070251, -0.014452071860432625, 0.18055306375026703, -0.17515698075294495, 0.17103169858455658, -0.2869601249694824, -0.3914887309074402, -0.19153057038784027, 0.08006290346384048, 0.1745440810918808, 0.23137977719306946, -0.08024222403764725, 0.07306674122810364, 0.13447365164756775, -0.15446506440639496, 0.171864315867424, 0.12570711970329285, 0.030780714005231857, 0.09542417526245117, 0.1099880114197731, 0.05952282249927521, -0.05459480360150337, -0.23309169709682465, 0.12479892373085022, 0.19946813583374023, -0.22051043808460236, -0.16889503598213196, 0.025904636830091476, 0.033910706639289856, 0.3165857791900635, -0.05891670286655426, 0.15622664988040924, -0.4766593873500824, -0.6225415468215942, -0.1087162122130394, -0.19974111020565033, 0.22008515894412994, 0.22961203753948212, -0.12895886600017548, -0.04886452108621597, 0.04386892542243004, -0.28370073437690735, 0.2512355148792267, 0.514066755771637, 0.4233030080795288, 0.12116088718175888, -0.022625356912612915, -0.19032157957553864, -0.13304075598716736, 0.18969587981700897, 0.7450622320175171, 0.03637039288878441, -0.20973297953605652, 0.1391444206237793, -0.1770809143781662, 0.250760555267334, 0.29996827244758606, -0.04070481285452843, -0.17531315982341766, -0.1670929342508316, -0.07529612630605698, -0.19167891144752502, 0.2307223081588745, 0.2340690791606903, 0.08133336901664734, -0.5356985330581665, -0.44804859161376953, 0.5573652386665344, -0.05041670426726341, 0.1726907640695572, 0.14198368787765503, -0.0903693214058876, -0.3141256868839264, 0.24117577075958252, 0.07839798927307129, 0.9852374792098999, 0.21123534440994263, 0.21902111172676086, 0.3602865934371948, 0.12387223541736603, 0.16831772029399872, -0.07529214024543762, 0.1940021812915802, -0.31836163997650146, -0.14749090373516083, 0.02800862491130829, 0.1500527262687683, 0.1256142258644104, 0.079148069024086, -0.3388417363166809, 0.10871197283267975, -0.04238314926624298, -0.26821088790893555, 0.10928681492805481, 0.2032417505979538, -0.2257400006055832, -0.18242532014846802, -0.6316772103309631, 0.2712889015674591, -0.06995443254709244, 0.03684649616479874, -0.17959047853946686, -0.2181743085384369, -0.011334937065839767, -0.3394552171230316, -0.1856636106967926, 0.35873931646347046, -0.4648078978061676, 0.16566361486911774, -0.12569326162338257, -0.6603456139564514, 0.05898713693022728, 0.10188006609678268, 0.14220881462097168, 0.1705821454524994, -0.03163130208849907, 0.28860023617744446, 0.3289839029312134, -0.03330402821302414, 0.053853023797273636, 0.18038491904735565, 0.11644328385591507, -0.2379675805568695, -0.04088921472430229, 0.2168305665254593, 0.11365218460559845, -0.05073040723800659, 0.2746550440788269, -0.013908881694078445, -0.16878682374954224, -0.042547184973955154, -0.28546077013015747, -0.1196892112493515, 0.19086554646492004, -0.05865956470370293, 0.22393959760665894, -0.027935074642300606, -0.22309166193008423, -0.07336370646953583, 0.19149354100227356, -0.29249870777130127, -0.16458600759506226, 0.06717599183320999, -0.056456856429576874, -0.10511277616024017, 0.44616514444351196, 0.18427938222885132, -0.20753401517868042, -0.15132863819599152, 0.24361489713191986, -0.07544220238924026, -0.5386852025985718, -0.0066285389475524426, 0.14108167588710785, -0.15344823896884918, 0.003485234687104821, 0.6803988814353943, -0.026904553174972534, -0.05686922371387482, 0.14419591426849365, -0.32723066210746765, -0.34435704350471497, 0.015019876882433891, -0.11620989441871643, 0.07491207867860794, 0.0879412516951561, 0.34699246287345886, 0.05394766852259636, -0.06735550612211227, -0.3985675573348999, 0.06626807153224945, -0.14266692101955414, 0.048845063894987106, 0.12896543741226196, -0.12151475995779037, 0.10714666545391083, 0.10479401797056198, 0.20299649238586426, 0.3219657242298126, -0.09791135787963867, -0.28321799635887146, -0.13597433269023895, 0.05657125264406204, 0.001705458969809115, -0.3379485011100769, -0.08891075849533081, 0.0667094960808754, -0.0858611986041069, 0.00717355590313673, 0.14235377311706543, 0.05243070051074028, 0.09311678260564804, 0.13242371380329132, -0.246174618601799, 0.15864138305187225, 0.10539888590574265, 0.16289912164211273, -0.06963426619768143, 0.5597644448280334, 0.16368862986564636, 0.06287533789873123, 0.005985249299556017, -0.025374434888362885, -0.044714320451021194, 0.05055468901991844, -0.23766928911209106, 0.10622861981391907, 0.1044626384973526, -0.3597465753555298, 0.4122331738471985, 0.05893031135201454, -0.01631096750497818, 0.45703360438346863, -0.24969330430030823, -0.0978304073214531, 0.3505032956600189, 0.26551786065101624, -0.31891319155693054, 0.07381211221218109, -0.2843266427516937, -0.01887642592191696, -0.04210663214325905, 0.3487906754016876, 0.2089371234178543, -0.11456530541181564, 0.27745482325553894, -0.04040587320923805, 0.3768449127674103, 0.1393832564353943, 0.3384266197681427, 0.31990644335746765, -0.06332167237997055, 0.17677801847457886, -0.1449136584997177, 0.14437662065029144, -0.061978671699762344, -0.006590595468878746, -0.6218461394309998, 0.1565927118062973, 0.020231667906045914, 0.061584826558828354, 0.013063968159258366, -0.23057760298252106, -0.1371743381023407, -0.09707093983888626, -0.10797075927257538, 0.34584900736808777, 0.1533380150794983, 0.4684993028640747, -0.3881833553314209, -0.0618438646197319, -0.09995274245738983, 0.20834843814373016, -0.10234468430280685, 0.038097482174634933, 0.016767999157309532, -0.02605029195547104, -0.34487321972846985, 0.12415120005607605, -0.11061948537826538, 0.11901523172855377, -0.04817523807287216, 0.31284406781196594, -0.108041912317276, -0.0022143805399537086, 0.01059182919561863, -0.01330588385462761, 0.06520850211381912, -0.09035458415746689, 0.5817037224769592, 0.3365059792995453, 0.16596809029579163, 0.2955407202243805, 0.16374889016151428, 0.5992531776428223, 0.4194280803203583, -0.19850584864616394, 0.01974109373986721, -0.15948930382728577, 0.03866105154156685, 0.038532864302396774, 0.11913655698299408, 0.35073351860046387, 0.35481563210487366, 0.22147005796432495, 0.22910581529140472, -0.21198852360248566, -0.15891201794147491, 0.25166454911231995, 0.019806955009698868, 0.10843364149332047, 0.18208816647529602, -0.12766233086585999, 0.22857221961021423, -0.5063564777374268, -0.10436893254518509, -0.47510257363319397, 0.2843632698059082, 0.318430095911026, 0.025129660964012146, 0.014587878249585629, -0.18817274272441864, 0.14906814694404602, 0.0117617417126894, 0.5455562472343445, 0.24619995057582855, 0.08120039850473404, -0.1053362786769867, -0.09417140483856201, -0.7023860216140747, 0.2900264859199524, 0.03589797392487526, -0.42201530933380127, -0.20402778685092926, -0.21446001529693604, 0.05869283527135849, 0.37866756319999695, 0.0576029010117054, 0.2639370560646057, 0.08731365203857422, 0.042720574885606766, -0.12064553797245026, 0.05994894355535507, -0.16763140261173248, 0.07281525433063507, -0.25221380591392517, -0.23383620381355286, 0.025285767391324043, -0.30267173051834106, 0.16652676463127136, -0.24685083329677582, -0.3811718225479126, -0.4446498155593872, 0.09482241421937943, 0.23527611792087555, 0.1897629052400589, 0.3141130208969116, -0.2809831500053406, -0.28913193941116333, -0.05940409004688263, -0.2559396028518677, -0.08499455451965332, 0.3175150454044342, 0.17990684509277344, 0.1395939588546753, 0.11587988585233688, 0.14968058466911316, -0.45399537682533264, 0.36918190121650696, -0.04075099155306816, -0.1503041833639145, -0.25449877977371216, 0.040062662214040756, 0.0016042013885453343, -0.015412154607474804, 0.13733969628810883, 0.3708093762397766, -0.04366062954068184, 0.10419440269470215, -0.1964036226272583, -0.49435076117515564, 0.28803327679634094, -0.4873783588409424, -0.15558640658855438, 0.14631082117557526, 0.11338017135858536, -0.15051576495170593, 0.09109439700841904, -0.528027355670929, 0.2367156744003296, -0.01128957886248827, -0.14854948222637177, -0.26454031467437744, 0.2816721796989441, -0.26277634501457214, -0.09582855552434921, -0.07956591248512268, 0.32302960753440857, 0.19313251972198486, -0.10979264229536057, 0.03967685252428055, -0.2406678944826126 ]
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.08067583292722702, -0.14141593873500824, -0.13081765174865723, -0.09870095551013947, -0.3395775258541107, -0.021613985300064087, -0.21735210716724396, 0.21030348539352417, 0.05030074343085289, -0.025913553312420845, 0.1280902475118637, -0.2411946803331375, 0.10086891055107117, 0.14274059236049652, -0.24458041787147522, 0.1461947113275528, 0.027654685080051422, 0.26608511805534363, 0.24168649315834045, -0.19477789103984833, -0.01784292235970497, 0.19763682782649994, 0.143203467130661, -0.17161543667316437, -0.33466288447380066, 0.25075551867485046, -0.27308711409568787, 0.10424108058214188, -0.23726186156272888, -0.06624050438404083, 0.10239369422197342, 0.23783066868782043, -0.036256611347198486, -0.056539613753557205, -0.00010823657794389874, 0.015138841234147549, 0.09982623159885406, -0.13039334118366241, -0.07171672582626343, 0.035235632210969925, 0.3620176315307617, -0.4477027356624603, 0.13846008479595184, -0.1620793640613556, -0.30593881011009216, -0.120264433324337, 0.2798633277416229, 0.35562747716903687, 0.3528575599193573, -0.004644463304430246, 0.19483955204486847, 0.013587096706032753, 0.14968600869178772, 0.03551222011446953, 0.3426301181316376, 0.36993488669395447, -0.2522276043891907, -0.26256895065307617, 0.2649264335632324, -0.2322942167520523, 0.06973366439342499, 0.364772766828537, 0.08754695951938629, -0.11299797892570496, 0.3730439841747284, 0.10214382410049438, 0.04699007794260979, -0.6132785677909851, 0.25959447026252747, 0.2510034739971161, 0.30368363857269287, 0.2703651487827301, -0.12073341757059097, -0.3047219514846802, -0.2468186616897583, 0.285892516374588, 0.19559603929519653, 0.21770179271697998, -0.15028661489486694, 0.15116409957408905, 0.03147968649864197, -0.11847448348999023, -0.01827196776866913, 0.30930763483047485, 0.1452440768480301, 0.1628546118736267, -0.0881979689002037, -0.14606624841690063, 0.21862894296646118, -0.14490549266338348, -0.659001886844635, 0.12207670509815216, 0.2056596577167511, 0.13404549658298492, 0.04849283769726753, -0.13409385085105896, 0.1747572422027588, 0.13774020969867706, 0.5864343047142029, 0.05961565673351288, -0.08664130419492722, 0.12735772132873535, -0.040451761335134506, 0.046586550772190094, 0.08890020102262497, 0.060240086168050766, 0.00874706543982029, -0.22091975808143616, 0.2579367160797119, 0.11233842372894287, -0.08385585248470306, 0.0046388679184019566, 0.06271277368068695, 0.3078453838825226, -0.32415464520454407, -0.5395182967185974, 0.12017510831356049, -0.16765572130680084, -0.1507178544998169, 0.15690019726753235, -0.16855967044830322, 0.025462681427598, -0.22344036400318146, 0.5335276126861572, 0.040180277079343796, -0.005581858567893505, -0.013697805814445019, 0.03869570419192314, -0.1921839714050293, -0.11287588626146317, -0.0731188952922821, -0.16883210837841034, -0.10971696674823761, 0.19987626373767853, 0.19954761862754822, -0.3310858905315399, 0.5541295409202576, -0.21962065994739532, 0.20416340231895447, 0.09775477647781372, 0.19321615993976593, 0.030117129907011986, 0.2535439431667328, 0.3538282513618469, 0.1545119285583496, 0.03945021331310272, -0.048794083297252655, -0.15945756435394287, -0.24830394983291626, -0.24792753159999847, 0.06972566246986389, -0.3629741072654724, -0.45164453983306885, 0.20461225509643555, 0.15057078003883362, 0.2050659954547882, 0.023099860176444054, 0.5333048105239868, -0.31464120745658875, -0.10384589433670044, 0.16869604587554932, 0.36480891704559326, -0.3038465976715088, -0.10205493867397308, 0.4092984199523926, 0.2519221305847168, 0.40098851919174194, -0.37296876311302185, -0.060663267970085144, 0.3335619866847992, -0.09778419137001038, 0.3365207314491272, -0.0658705085515976, -0.20212411880493164, -0.033272869884967804, 0.3529549837112427, 0.26949918270111084, -0.24277812242507935, -0.5641846060752869, 0.2591608464717865, -0.0024538554716855288, 0.2508822977542877, 0.08455285429954529, 0.06848961859941483, 0.08261502534151077, -0.2189551293849945, 0.02494560182094574, 0.2849488854408264, 0.05195942893624306, 0.07206355780363083, -0.3615591824054718, -0.41187334060668945, 0.027024095878005028, 0.14339344203472137, -0.06675215065479279, -0.2504670321941376, 0.0029693262185901403, -0.06456642597913742, -0.025444461032748222, -0.07729402929544449, 0.15278737246990204, 0.38301363587379456, 0.13486291468143463, 0.19902169704437256, 0.1052660346031189, -0.01903284341096878, -0.3713851273059845, 0.23282791674137115, -0.09672079235315323, 0.43362945318222046, 0.173637256026268, -0.3850111663341522, -0.08039014041423798, -0.07440879195928574, -0.10500547289848328, -0.4436502158641815, 0.23018234968185425, -0.1027260273694992, 0.28576168417930603, 0.09180781990289688, -0.02823037840425968, -0.286475270986557, -0.2602207064628601, 0.07109441608190536, -0.16514065861701965, 0.3315623700618744, -0.32133159041404724, 0.034253254532814026, 0.07824887335300446, 0.16143102943897247, -0.12425561994314194, 0.11050716787576675, 0.1942817121744156, -0.007129484321922064, -0.35513630509376526, -0.037927936762571335, 0.40027886629104614, 0.7665849924087524, 0.2776440382003784, -0.38182953000068665, 0.10056202113628387, 0.1995646059513092, -0.035320814698934555, -0.17325784265995026, -0.3145938813686371, 0.08892758935689926, 0.2785704731941223, 0.32003986835479736, 0.1890919804573059, -0.057133592665195465, 0.038256097584962845, 0.09031835943460464, -0.15579354763031006, -0.14991319179534912, 0.37716126441955566, -0.1340331882238388, 0.06392375379800797, 0.0019982773810625076, -0.14822453260421753, 0.4138781726360321, 0.17230293154716492, 0.10562282800674438, 0.19207899272441864, 0.5266593098640442, -0.1382301151752472, -0.4718618094921112, -0.1715257614850998, -0.3971881568431854, 0.016445135697722435, 0.22034409642219543, 0.19134309887886047, 0.02780943550169468, 0.13254842162132263, 0.0655030682682991, 0.10500117391347885, 0.008391293697059155, -0.0028982635121792555, 0.07285341620445251, 0.22630558907985687, 0.22096948325634003, -0.2642669081687927, -0.10244587063789368, -0.3160078823566437, -0.07965776324272156, 0.10148283839225769, -0.00923797395080328, 0.22131569683551788, -0.25074899196624756, 0.2634440064430237, -0.07818921655416489, -0.41474202275276184, -0.31532493233680725, 0.2948235869407654, 0.11356040090322495, -0.1521182656288147, 0.09333372116088867, -0.03590801730751991, 0.13667501509189606, -0.13476622104644775, 0.2000323235988617, -0.4448848068714142, -0.1261645406484604, -0.19272154569625854, 0.08642210066318512, -0.04539445787668228, 0.4896547794342041, 0.19967572391033173, -0.1918671429157257, -0.08912619203329086, -0.6268860101699829, -0.6305285692214966, 0.28470051288604736, -0.13276870548725128, 0.10559739917516708, 0.24700747430324554, 0.3481205999851227, -0.3925289809703827, -0.4493706226348877, 0.2627794146537781, -0.444477915763855, -0.19997341930866241, -0.2748994827270508, -0.19031241536140442, 0.022515354678034782, 0.04938328638672829, -0.11886955797672272, -0.25793156027793884, -0.26668059825897217, 0.32911619544029236, 0.27624276280403137, -0.060960497707128525, -0.0458909310400486, 0.020552948117256165, 0.12517692148685455, 0.22580808401107788, 0.2626573443412781, -0.29367420077323914, -0.04745010659098625, 0.29182735085487366, -0.30290448665618896, -0.2832892835140228, -0.037007879465818405, -0.11259488761425018, -0.23248359560966492, -0.18669544160366058, -0.35699233412742615, -0.383731484413147, -0.13701990246772766, 0.0548834428191185, -0.02649589255452156, 0.08820444345474243, 0.19683998823165894, -0.010737704113125801, -0.20333415269851685, 0.16136020421981812, -0.029212744906544685, -0.03836481645703316, 0.08661588281393051, 0.007527145091444254, -0.20227590203285217, 0.20601865649223328, 0.06293424218893051, 0.7775630354881287, 0.2560122311115265, 0.09571421146392822, 0.35543522238731384, 0.09650071710348129, 0.3023886978626251, -0.33070364594459534, -0.04816794395446777, 0.08207931369543076, 0.02612333558499813, 0.1000513881444931, 0.5637342929840088, 0.23273521661758423, -0.155763640999794, -0.10261421650648117, -0.5225754380226135, -0.3188152313232422, -0.2693008482456207, 0.23238728940486908, 0.23230554163455963, 0.2514646053314209, -0.04276411235332489, 0.03134959191083908, 0.04488258808851242, -0.4328538477420807, 0.17106427252292633, 0.14947499334812164, 0.0656207874417305, 0.06721567362546921, -0.22742916643619537, 0.02867497317492962, -0.9157412052154541, 0.29033881425857544, 0.12725095450878143, -0.22618696093559265, -0.20387354493141174, 0.008620625361800194, 0.16730742156505585, -0.16562320291996002, 0.3456695079803467, -0.24426192045211792, -0.22963589429855347, -0.22170746326446533, -0.07722257822751999, -0.11847854405641556, 0.07766227424144745, 0.07784070819616318, 0.028288153931498528, 0.37598538398742676, -0.009069232270121574, -0.6138383746147156, -0.16718989610671997, 0.2821727395057678, -0.014616982080042362, -0.044576942920684814, 0.0969725251197815, -0.3596685528755188, -0.4528431296348572, -0.5167991518974304, -0.12170954048633575, 0.28984177112579346, -0.18366800248622894, -0.12710502743721008, 0.11530536413192749, 0.16217614710330963, 0.124937042593956, 0.10959754139184952, 0.14976362884044647, 0.07825294137001038, 0.03921398147940636, 0.01770341582596302, 0.48547080159187317, 0.1623135358095169, 0.1095934584736824, 0.49877500534057617, 0.01028253510594368, -0.029029786586761475, 0.0863296166062355, 0.09263353794813156, 0.050737202167510986, 0.39443638920783997, 0.40121060609817505, 0.061324767768383026, 0.21530061960220337, 0.1702979952096939, -0.181187242269516, -0.027343306690454483, 0.4937494099140167, -0.15800310671329498, -0.10151410847902298, 0.06344807147979736, 0.44033244252204895, -0.02287147007882595, 0.052024856209754944, -0.1205279603600502, 0.8181397914886475, 0.0034936852753162384, 0.6203836798667908, 0.02450891211628914, 1.083446979522705, 0.07121341675519943, 0.2355080395936966, -0.06620834767818451, 0.10222353786230087, 0.4590820074081421, -0.5924050211906433, -0.07199335843324661, -0.17163440585136414, -0.3579326272010803, -0.028204841539263725, 0.2058292031288147, -0.24240927398204803, 0.09435465931892395, -0.2666330337524414, 0.16415104269981384, 0.16659584641456604, 0.07926314324140549, -0.13238370418548584, 0.5353413224220276, -0.2092643827199936, -0.2426699697971344, -0.29319924116134644, 0.16060569882392883, 0.13700856268405914, 0.4707176983356476, -0.06833887845277786, -0.02399519272148609, -0.031057069078087807, -0.15766672790050507, -0.43640461564064026, -0.08684629946947098, -0.057171136140823364, 0.07217247784137726, 0.2667095959186554, -0.062050871551036835, 0.0479140505194664, 0.1726253777742386, 0.1590503305196762, -0.14490346610546112, -0.49475350975990295, 0.160976380109787, -0.08524001389741898, -0.23547500371932983, 0.2217707484960556, -0.31194648146629333, 0.3180813193321228, -0.15703973174095154, -0.20504014194011688, 0.24233433604240417, -0.13655926287174225, -0.04734910652041435, -0.183067187666893, -0.26624563336372375, -0.2832184433937073, -0.13196666538715363, -0.057590968906879425, 0.2548997700214386, -0.5066120624542236, -0.10737264901399612, 0.13608427345752716, 0.061951007694005966, 0.14978840947151184, -0.14249470829963684, 0.38792210817337036, -0.025430472567677498, -0.16473135352134705, 0.4760461747646332, -0.07330702990293503, -0.1303652673959732, 0.3072897791862488, 0.013433109037578106, -0.20648875832557678, -0.019045768305659294, -0.10870791226625443, 0.2752627432346344, -0.2821536362171173, -0.12862563133239746, 0.14428922533988953, -0.1705995500087738, 0.08858567476272583, 0.7039005756378174, 0.12372546643018723, -0.12364675849676132, -0.11769723147153854, -0.0933523029088974, 0.10118360072374344, 0.4985337257385254, 0.050578851252794266, 0.07251054048538208, 0.06424100697040558, -0.12729935348033905, 0.258946031332016, 0.24333885312080383, -0.3592049479484558, -0.07176036387681961, -0.4390505254268646, 0.018407728523015976, -0.12057182937860489, -0.16130699217319489, 0.4346776008605957, 0.20477057993412018, 0.07077544182538986, 0.09106573462486267, -0.09331407397985458, -0.18083752691745758, 0.08031878620386124, 0.1305055171251297, 0.10665002465248108, 0.020297102630138397, -0.11185615509748459, 0.08985308557748795, -0.15793964266777039, -0.3185770809650421, 0.0888935774564743, -0.1715652346611023, 0.03602355346083641, -0.052854347974061966, -0.16890732944011688, 0.07179553806781769, -0.041592568159103394, -0.0718802809715271, 0.11634483933448792, 0.4744984805583954, 0.07267811894416809, -0.09395350515842438, -0.20638848841190338, -0.12616479396820068, 0.26106131076812744, 0.26904478669166565, 0.2563706338405609, -0.2336864471435547, 0.2742327153682709, 0.19760219752788544, -0.22726087272167206, 0.01774795912206173, 0.03604767471551895, 0.16532790660858154, -0.13734997808933258, 0.15189425647258759, 0.11554940044879913, 0.2441234439611435, -0.2058786302804947, -0.09135665744543076, 0.355741024017334, -0.2692945599555969, 0.32803070545196533, 0.19723035395145416, 0.6575441360473633, -0.10291725397109985, 0.26860928535461426, 0.10293495655059814, 0.14316043257713318, -0.3198326528072357, -0.2167583554983139, -0.34463050961494446, 0.06438083201646805, -0.03582189604640007, -0.15021726489067078, 0.02525947242975235, 0.6202684640884399, -0.18431036174297333, 0.02423877827823162, 0.23005183041095734, -0.21492192149162292, 0.4202447831630707, 0.25702545046806335, -0.021660741418600082, 0.1826198250055313, 0.16645541787147522, 0.28916454315185547, 0.3017500936985016, -0.09998059272766113, 0.056486569344997406, 0.0933227390050888, -0.01021718792617321, -0.4102500379085541, 0.3412422239780426, 0.04403359070420265, -0.04497828707098961, 0.2121957391500473, -0.297799289226532, -0.17843136191368103, 0.11795854568481445, -0.040475815534591675, -0.18165621161460876, -0.24851244688034058, -0.12874208390712738, 0.09073411673307419, -0.021082205697894096, 0.2186371386051178, -0.12473324686288834, 0.617579996585846, -0.0710851177573204, 0.10100653022527695, 0.19108837842941284, -0.1985788494348526, -0.06093060225248337, 0.3612091541290283, 0.2990720868110657, -0.08957412838935852, -0.44209620356559753, 0.18213170766830444, 0.0637875571846962, -0.05833940580487251, -0.18472856283187866, 0.08437778800725937, 0.25083374977111816, -0.39550769329071045, 0.023166583850979805, 0.09828517585992813, -0.319487601518631, -0.5002750754356384, -0.2329956442117691, 0.31622475385665894, 0.06248398497700691, -0.4794466197490692, -0.18023794889450073, -0.02940594032406807, -0.06060374900698662, 0.02912563644349575, -0.3866059184074402, 0.16616784036159515, -0.15911126136779785, 0.020648155361413956, 0.05035620182752609, -0.28599047660827637, 0.08503765612840652, 0.08070414513349533, 0.49467581510543823, 0.3730098307132721, 0.11271167546510696, 0.0598621740937233, -0.4312784969806671, -0.13023319840431213, 0.15958371758460999, -0.24667683243751526, -0.042495738714933395, 0.4238417446613312, 0.34985116124153137, 0.26143038272857666, 0.3045892119407654, 0.029717573896050453, -0.2874191403388977, -0.21520398557186127, -0.06995906680822372, -0.09578491747379303, 0.08404678106307983, -0.2433263659477234, 0.15076373517513275, 0.020842336118221283, 0.037424374371767044, 0.0005402661045081913, -0.2379782348871231, 0.041412338614463806, -0.2940927743911743, -0.021735507994890213, -0.19692234694957733, 0.3018135726451874, 0.009993555024266243, 0.2058705985546112, -0.17645861208438873, -0.25072339177131653, -0.43846720457077026, 0.03378380089998245, 0.10128523409366608, 0.05939001217484474, 0.1374855488538742, 0.018835479393601418, -0.025378704071044922, -0.06525353342294693, -0.1125292107462883, -0.028135886415839195, 0.14536426961421967, 0.24257293343544006, 0.12929227948188782, -0.27250906825065613, -0.09873045235872269, -0.16706469655036926, 0.14155465364456177, 0.06405862420797348, 0.40829890966415405, -0.1655520796775818, -0.30160975456237793, -0.28241610527038574, -0.15161097049713135, 0.27243751287460327, -0.1437879353761673, 0.14198289811611176, -0.1527414619922638, 0.12260415405035019, 0.42533519864082336, 0.09785689413547516, -0.39776307344436646, -0.07145438343286514, 0.11016368865966797, 0.31517091393470764, -0.26274290680885315, -0.26276329159736633, 0.12941831350326538, -0.16967029869556427, -0.24280978739261627, -0.051626984030008316, -0.0634538009762764, -0.06546467542648315, -0.20578187704086304, -0.1455373913049698 ]
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.16188102960586548, -0.04520326852798462, -0.03878628462553024, -0.04772581532597542, -0.3124102056026459, 0.00023964776482898742, -0.13539756834506989, 0.1302299052476883, -0.02192038483917713, -0.05018486827611923, 0.09411698579788208, -0.26511552929878235, 0.11306099593639374, 0.14438064396381378, -0.16690652072429657, 0.1842309832572937, 0.026495015248656273, 0.24276122450828552, 0.3465200364589691, -0.3121984004974365, 0.017246266826987267, 0.23432683944702148, 0.1443895548582077, -0.13573145866394043, -0.3666524887084961, 0.2833316922187805, -0.2998781204223633, 0.1768082231283188, -0.22389793395996094, -0.006154803093522787, 0.0662749707698822, 0.27341482043266296, 0.029322972521185875, -0.20470917224884033, -0.00011439894296927378, 0.06446225941181183, -0.09299298375844955, -0.14269931614398956, -0.15071618556976318, -0.180652916431427, 0.24313563108444214, -0.31420832872390747, -0.02730238065123558, -0.09742216765880585, -0.14866645634174347, -0.20264190435409546, 0.23465384542942047, 0.25992488861083984, 0.3535693287849426, -0.03748766705393791, 0.10490898787975311, 0.08206064999103546, 0.016126183792948723, 0.10203661769628525, 0.1941460520029068, 0.34053629636764526, -0.24433378875255585, -0.07406751066446304, 0.3869935870170593, -0.20220959186553955, 0.065428227186203, 0.2211506962776184, 0.056623224169015884, -0.18232031166553497, 0.2999623119831085, 0.03824417293071747, 0.020354174077510834, -0.6953436136245728, 0.26360005140304565, 0.3578396737575531, 0.45327842235565186, 0.28312352299690247, -0.2213173657655716, -0.4320506155490875, -0.11774575710296631, 0.27319300174713135, -0.030247367918491364, 0.3697187602519989, -0.06381595134735107, 0.35285431146621704, 0.001657673972658813, -0.20235665142536163, -0.07503426820039749, 0.363219678401947, 0.2741082012653351, 0.05666572228074074, -0.15079084038734436, -0.09979920089244843, 0.12498041242361069, 0.059962302446365356, -0.49617886543273926, -0.02303728647530079, 0.11687711626291275, -0.03982657566666603, 0.18169274926185608, -0.16588085889816284, 0.09374573826789856, 0.3632128834724426, 0.6906951069831848, 0.2466047704219818, 0.03168212249875069, -0.011936763301491737, -0.22022010385990143, 0.057215891778469086, 0.2629971206188202, -0.01688629761338234, -0.0620114840567112, -0.17830602824687958, 0.1461058259010315, -0.03124179318547249, 0.13573071360588074, -0.0091116763651371, -0.042268626391887665, 0.5626630187034607, -0.531793475151062, -0.5932879447937012, 0.2085096538066864, -0.23637305200099945, -0.19627569615840912, 0.15730774402618408, -0.24733112752437592, -0.045948613435029984, -0.18887169659137726, 0.43571341037750244, 0.18794932961463928, 0.0037183670792728662, -0.3072888255119324, 0.16809502243995667, 0.007478661835193634, -0.37122833728790283, -0.026766762137413025, -0.10371799021959305, -0.184466153383255, 0.13456742465496063, 0.1396353840827942, -0.38694435358047485, 0.6252251863479614, -0.2365909367799759, 0.34780439734458923, 0.1796339601278305, 0.16241581737995148, -0.018536541610956192, 0.3222461938858032, 0.3538752794265747, 0.10699532181024551, 0.05278939753770828, 0.06176598370075226, -0.012231815606355667, -0.2694571316242218, -0.21964682638645172, -0.006661290768533945, -0.45600464940071106, -0.4140787720680237, 0.05962905287742615, 0.027685394510626793, 0.23414398729801178, 0.10315181314945221, 0.5134557485580444, -0.43547114729881287, -0.13997557759284973, 0.21098066866397858, 0.2206292450428009, -0.3961331844329834, -0.23747609555721283, 0.3468029797077179, 0.29402801394462585, 0.3394906222820282, -0.40095341205596924, -0.05338568985462189, 0.26563969254493713, -0.1998755931854248, 0.3898678719997406, -0.22202780842781067, -0.22042463719844818, -0.004683301318436861, 0.345655232667923, 0.34906136989593506, -0.19725680351257324, -0.7282787561416626, 0.245095893740654, 0.11850003153085709, 0.3259025812149048, 0.15899387001991272, -0.05518990010023117, 0.062380462884902954, -0.3640519678592682, -0.04324733838438988, 0.19654209911823273, -0.04358688369393349, -0.11942997574806213, -0.25600239634513855, -0.4202411472797394, -0.07627341151237488, 0.18840144574642181, -0.10580011457204819, -0.15612930059432983, 0.03549998626112938, -0.06329580396413803, 0.008365272544324398, -0.058060869574546814, 0.14752893149852753, 0.32819199562072754, 0.10723398625850677, 0.15909013152122498, 0.016809822991490364, 0.0722488984465599, -0.37315621972084045, 0.30712243914604187, -0.014197615906596184, 0.3480273485183716, 0.3044203817844391, -0.31810426712036133, 0.058749210089445114, -0.09318707883358002, -0.0007662808638997376, -0.6210435628890991, 0.13558155298233032, -0.01424994133412838, 0.17970363795757294, 0.017314832657575607, -0.2134847640991211, -0.09740547835826874, -0.19418832659721375, 0.1273106187582016, -0.1348649114370346, 0.3530064523220062, -0.26027047634124756, 0.09669382125139236, 0.07920502871274948, 0.414084255695343, -0.13904424011707306, 0.06897097080945969, 0.26549381017684937, -0.04793358966708183, -0.3764593005180359, -0.09009860455989838, 0.25544196367263794, 0.8737135529518127, 0.3631459176540375, -0.34482789039611816, 0.22786104679107666, 0.06668064743280411, -0.0577499158680439, -0.19402088224887848, -0.21267394721508026, 0.03916172683238983, 0.13419459760189056, 0.34531548619270325, 0.35075294971466064, 0.06512369960546494, -0.0663321390748024, 0.06336706131696701, -0.2704553008079529, -0.2145715355873108, 0.47149112820625305, -0.10264366865158081, 0.21748609840869904, 0.05385919287800789, -0.24463963508605957, 0.41137856245040894, 0.23386406898498535, 0.16587375104427338, -0.0037703581620007753, 0.42415696382522583, -0.2534436881542206, -0.39524656534194946, 0.05713833123445511, -0.1831643283367157, 0.24148866534233093, 0.2258031666278839, 0.2277132123708725, 0.06359963864088058, 0.1560090333223343, 0.05680453032255173, 0.017449041828513145, 0.15031976997852325, -0.05170898139476776, 0.0024006469175219536, 0.11406736075878143, 0.37641385197639465, -0.21176689863204956, -0.21939441561698914, -0.3091648817062378, -0.27856752276420593, 0.07242997735738754, 0.07055625319480896, 0.1820526123046875, -0.34161439538002014, 0.17658858001232147, -0.09561407566070557, -0.4134991466999054, -0.26612892746925354, 0.23479126393795013, 0.1461953967809677, -0.05896599590778351, -0.0071642049588263035, -0.2509242296218872, 0.28493931889533997, -0.480771005153656, 0.3026829659938812, -0.3664854168891907, -0.057657890021800995, -0.20146489143371582, 0.0328034907579422, 0.008347717113792896, 0.37270587682724, 0.25623106956481934, -0.09210065007209778, -0.12079386413097382, -0.528948962688446, -0.4521757960319519, 0.3688603639602661, -0.22686833143234253, 0.11337471008300781, 0.1305222064256668, 0.19676163792610168, -0.33033087849617004, -0.26461872458457947, 0.10888870060443878, -0.3639265298843384, -0.0934843048453331, -0.33514538407325745, -0.09738320857286453, -0.09868218004703522, -0.0030946906190365553, -0.04119645804166794, -0.3535023331642151, -0.2808040678501129, 0.34302979707717896, 0.22540432214736938, -0.13020488619804382, 0.01720775105059147, -0.0800357460975647, 0.11235257983207703, 0.125993549823761, 0.3323073387145996, -0.29703494906425476, -0.1613459438085556, 0.19609858095645905, -0.20742306113243103, -0.2651270627975464, -0.038692351430654526, -0.05392477661371231, -0.06152947247028351, -0.10059461742639542, -0.425478458404541, -0.36048227548599243, 0.055692076683044434, -0.02511676214635372, -0.07036366313695908, 0.06157173961400986, 0.09777302294969559, 0.012541507370769978, -0.06857704371213913, 0.006507915444672108, 0.0051070149056613445, -0.14297102391719818, 0.14192166924476624, 0.06863627582788467, -0.09262879192829132, 0.12500128149986267, 0.202394038438797, 0.7989221811294556, 0.4217323958873749, 0.12864547967910767, 0.4140595495700836, 0.22012050449848175, 0.48916566371917725, -0.23315787315368652, -0.06842546164989471, 0.10446080565452576, -0.016727298498153687, 0.2873294949531555, 0.5585054755210876, 0.30463293194770813, 0.08503739535808563, -0.06159500777721405, -0.4757537543773651, -0.28630512952804565, -0.16308119893074036, 0.24558192491531372, 0.034119538962841034, 0.25729283690452576, 0.0019511596765369177, -0.022763213142752647, 0.16611140966415405, -0.31023475527763367, 0.05389720946550369, 0.16628320515155792, 0.23551037907600403, 0.14113028347492218, -0.3051787316799164, 0.15292184054851532, -0.8590835332870483, 0.23111222684383392, -0.018901005387306213, -0.187437042593956, -0.2980819344520569, 0.08484644442796707, 0.14668628573417664, 0.05571678653359413, 0.32350271940231323, -0.3109869062900543, -0.3885938823223114, -0.20662717521190643, -0.01797684095799923, -0.04306918755173683, 0.09475357830524445, 0.10599502921104431, 0.009815690107643604, 0.40817660093307495, -0.16394846141338348, -0.49368926882743835, -0.21497242152690887, 0.26407745480537415, -0.03164193779230118, 0.009250384755432606, 0.13605590164661407, -0.17576758563518524, -0.29380878806114197, -0.5504940748214722, -0.42852407693862915, 0.25472885370254517, -0.3438403904438019, -0.21930623054504395, 0.2031397670507431, 0.25578710436820984, 0.007792152930051088, 0.2721950113773346, 0.18396513164043427, -0.05552687868475914, -0.08566422015428543, -0.09267326444387436, 0.5099772214889526, 0.3596837818622589, 0.23541632294654846, 0.7077588438987732, 0.017983155325055122, -0.08931326866149902, 0.16643266379833221, 0.0522187165915966, 0.2376982569694519, 0.4825989305973053, 0.3366219103336334, 0.01896965689957142, 0.08927889913320541, -0.007108232472091913, -0.10035693645477295, -0.005026425234973431, 0.45544084906578064, -0.3331572711467743, -0.12821385264396667, 0.033334750682115555, 0.30520275235176086, -0.12387131154537201, 0.0464240200817585, -0.08471764624118805, 0.9499081969261169, 0.13012102246284485, 0.5122742652893066, -0.04999687522649765, 1.1526870727539062, 0.2842029333114624, 0.38700395822525024, -0.11364167183637619, -0.0532836951315403, 0.5818104147911072, -0.5025380253791809, -0.19420230388641357, -0.022044923156499863, -0.3868573009967804, -0.16719092428684235, 0.05164087191224098, -0.2265334278345108, 0.21568934619426727, -0.08018017560243607, 0.23169457912445068, 0.38861167430877686, 0.054290320724248886, 0.014928379096090794, 0.4949815571308136, -0.2575528025627136, -0.16816598176956177, -0.19997859001159668, 0.04322793707251549, 0.17229199409484863, 0.40887975692749023, -0.14988866448402405, -0.10885719209909439, -0.2044105976819992, -0.16639812290668488, -0.5499111413955688, -0.04978398233652115, 0.06010805070400238, -0.061446141451597214, 0.35520198941230774, -0.07971421629190445, 0.3253505825996399, 0.15055537223815918, 0.3010340631008148, -0.3107364773750305, -0.5965958833694458, 0.011391357518732548, -0.06834232807159424, -0.2154919058084488, 0.2730766534805298, -0.19345054030418396, 0.482354074716568, -0.10640981048345566, -0.11109881103038788, 0.3303717374801636, -0.09826281666755676, -0.05123208463191986, -0.4185142517089844, -0.2416195422410965, -0.1881910264492035, -0.17796160280704498, -0.07057219743728638, 0.3471910357475281, -0.42569443583488464, -0.1267223060131073, 0.04805487021803856, 0.10668255388736725, 0.3316638767719269, -0.26727190613746643, 0.3429392874240875, 0.010694991797208786, -0.2360142469406128, 0.3876953423023224, -0.15871086716651917, -0.06373418867588043, 0.27175605297088623, -0.21336595714092255, -0.1275208294391632, 0.07275531440973282, -0.10644777864217758, 0.28397536277770996, -0.41659700870513916, -0.23553118109703064, 0.1129472628235817, -0.1551656872034073, -0.10968473553657532, 0.4567149877548218, 0.18991334736347198, -0.044839274138212204, -0.20440545678138733, -0.159096822142601, 0.10700474679470062, 0.5737265944480896, -0.18190094828605652, 0.08271105587482452, -0.019435612484812737, -0.011675749905407429, 0.22337724268436432, 0.15540149807929993, -0.25224488973617554, -0.03651756793260574, -0.31293728947639465, -0.07686742395162582, 0.027843179181218147, -0.07643799483776093, 0.3367640972137451, 0.1138092651963234, -0.0922478511929512, -0.051617760211229324, -0.17660456895828247, -0.042803723365068436, 0.02244066819548607, 0.19309361279010773, 0.3122953176498413, -0.08857311308383942, -0.13835616409778595, 0.08682247251272202, -0.11385494470596313, -0.30229032039642334, 0.13377827405929565, -0.22110596299171448, 0.07079728692770004, 0.08092178404331207, -0.1911887675523758, 0.1946782022714615, -0.10251426696777344, 0.04230267554521561, 0.11749415099620819, 0.5127565264701843, 0.2672605812549591, -0.02699194848537445, -0.21095840632915497, -0.1394846886396408, -0.008747851476073265, 0.22650760412216187, 0.3295249938964844, -0.25033944845199585, 0.3612287938594818, 0.34726884961128235, 0.02616328001022339, -0.10145821422338486, -0.006443740800023079, 0.18158560991287231, -0.22970129549503326, 0.2761463522911072, 0.2086241990327835, 0.10573211312294006, -0.14899644255638123, -0.08374123275279999, 0.3395874500274658, -0.17480069398880005, 0.2245008796453476, 0.19146215915679932, 0.8282391428947449, -0.1262877732515335, 0.33342626690864563, -0.12765532732009888, 0.18977995216846466, -0.20444831252098083, -0.18176120519638062, -0.23160980641841888, 0.0415634922683239, 0.18433547019958496, -0.16794653236865997, 0.08416226506233215, 0.5764596462249756, -0.3147502541542053, -0.08401995152235031, 0.18501277267932892, -0.2706153988838196, 0.2517428994178772, 0.40759703516960144, -0.07166974246501923, 0.10977252572774887, 0.19707877933979034, 0.4905519187450409, 0.29357123374938965, -0.1452922374010086, -0.03701315447688103, 0.17382273077964783, 0.15250174701213837, -0.26933717727661133, 0.16360200941562653, 0.18459905683994293, -0.05089219659566879, 0.1807231903076172, -0.19038738310337067, -0.23719985783100128, 0.1965668499469757, -0.24121396243572235, -0.2911822199821472, -0.21789513528347015, -0.14324644207954407, -0.061688732355833054, -0.11961549520492554, 0.2244769036769867, -0.08848726004362106, 0.35074296593666077, -0.09969639778137207, 0.11175350099802017, 0.03995572030544281, -0.12576422095298767, -0.00046261688112281263, 0.31308215856552124, 0.3190271556377411, -0.1744495928287506, -0.11703899502754211, -0.012674345634877682, 0.21298009157180786, 0.01583288237452507, -0.20765714347362518, 0.11437703669071198, 0.2840116322040558, -0.24820509552955627, 0.1243274062871933, -0.01959661766886711, -0.15398778021335602, -0.373514860868454, -0.1696232110261917, 0.2303641438484192, -0.18346835672855377, -0.3113376200199127, -0.15649963915348053, -0.16598615050315857, 0.10746876150369644, 0.060418203473091125, -0.2830294072628021, 0.21517331898212433, -0.10714418441057205, 0.054104145616292953, 0.013019640929996967, -0.25393015146255493, 0.0379406102001667, 0.13562779128551483, 0.30630290508270264, 0.5627689361572266, 0.1095670759677887, -0.06178095564246178, -0.3986172676086426, -0.11726473271846771, 0.18991009891033173, -0.20811229944229126, -0.041184019297361374, 0.3487135171890259, 0.18324974179267883, 0.36351317167282104, 0.3037836253643036, -0.09530919790267944, -0.24812190234661102, -0.2477930635213852, -0.18166275322437286, -0.023304374888539314, -0.07255701720714569, -0.10853011906147003, 0.23576028645038605, -0.010763777419924736, 0.22027772665023804, 0.031700704246759415, -0.15693078935146332, -0.12262067943811417, -0.30579403042793274, 0.022563695907592773, -0.22686809301376343, 0.33089929819107056, -0.040595643222332, 0.15992574393749237, -0.1917669177055359, -0.20942172408103943, -0.406924307346344, -0.04808414727449417, 0.12966963648796082, 0.047734882682561874, 0.16168512403964996, 0.009490695782005787, -0.09735585004091263, -0.2759915590286255, -0.09237763285636902, 0.014970334246754646, -0.029608387500047684, 0.1296306550502777, 0.1409837007522583, -0.30744871497154236, -0.023994088172912598, -0.1898324191570282, 0.14143040776252747, 0.08914758265018463, 0.3798626959323883, -0.2511127293109894, -0.3843092918395996, -0.260412335395813, 0.05794636532664299, 0.2941582500934601, -0.11041800677776337, 0.2896011471748352, -0.029614029452204704, 0.1552995890378952, 0.4543705880641937, 0.018380939960479736, -0.5039557814598083, -0.21767151355743408, 0.21375314891338348, 0.18118833005428314, -0.3754466474056244, -0.2439008504152298, 0.19021940231323242, -0.17723603546619415, -0.21243707835674286, -0.010605867952108383, -0.15181247889995575, -0.17585885524749756, 0.11000597476959229, -0.12023740261793137 ]
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.14106929302215576, -0.05698738247156143, -0.008213234134018421, 0.20865675806999207, 0.07764953374862671, 0.09079599380493164, 0.1833023577928543, 0.5251756906509399, 0.09873175621032715, 0.15423211455345154, 0.01629800535738468, 0.07699685543775558, -0.3141203224658966, -0.04377453029155731, -0.03358948603272438, 0.03590166196227074, -0.18716785311698914, 0.25151240825653076, 0.044887762516736984, -0.022996826097369194, -0.2874319553375244, 0.28179046511650085, -0.20873937010765076, -0.03660072758793831, -0.4835280179977417, -0.29419684410095215, 0.014395969919860363, 0.3698371648788452, 0.03764790669083595, -0.30936455726623535, -0.05411530286073685, -0.13485759496688843, -0.18413884937763214, 0.10297109931707382, -0.00011303213250357658, 0.11360619217157364, 0.3911181688308716, -0.1433287262916565, -0.48673808574676514, 0.009375574998557568, -0.21043400466442108, -0.49062615633010864, 0.08809000998735428, -0.35468026995658875, -0.155234232544899, 0.025319691747426987, 0.09456432610750198, -0.21953842043876648, 0.4969276487827301, 0.39046865701675415, 0.24021919071674347, 0.5636105537414551, 0.06623179465532303, 0.16334468126296997, -0.08876928687095642, -0.18095538020133972, -0.14587077498435974, -0.004866044037044048, -0.317836195230484, -0.1510140299797058, -0.024242786690592766, 0.42894718050956726, -0.0926201120018959, 0.12534786760807037, -0.08723723143339157, 0.11025021225214005, 0.08894404768943787, -0.1658468097448349, 0.09388119727373123, 0.1360182762145996, -0.032907839864492416, -0.07590679079294205, -0.211391881108284, -0.43856140971183777, -0.016064023599028587, -0.39801764488220215, 0.2251274287700653, 0.2127169519662857, -0.17450276017189026, 0.06538070738315582, -0.3212837278842926, 0.03848983719944954, -0.02947147749364376, 0.203406423330307, 0.08193324506282806, 0.41119423508644104, -0.10029765218496323, 0.02581174299120903, 0.0555451437830925, -0.09011641144752502, 0.15675167739391327, -0.17692787945270538, 0.1543257087469101, 0.07783644646406174, -0.1457696259021759, -0.04527811333537102, 0.16446492075920105, -0.14841516315937042, 0.04303531348705292, -0.06754758954048157, 0.17891041934490204, -0.062105368822813034, 0.17447401583194733, 0.08687423914670944, 0.047065552324056625, 0.3125297427177429, -0.016350939869880676, 0.26863324642181396, 0.12459810078144073, 0.28520944714546204, 0.002519685309380293, 0.018103212118148804, 0.11720158159732819, -0.005318051669746637, 0.11884792149066925, 0.22079965472221375, 0.3734848201274872, -0.05925484374165535, -0.32763227820396423, 0.13372252881526947, -0.26271504163742065, -0.25902363657951355, -0.0015640703495591879, 0.25621798634529114, -0.05830163508653641, 0.3132661283016205, -0.06084303930401802, -0.08145171403884888, -0.38394269347190857, -0.1547316461801529, -0.3804470896720886, 0.1700798124074936, -0.18440084159374237, 0.08080919086933136, 0.2795964479446411, -0.07962559908628464, 0.45722147822380066, -0.2497541755437851, -0.014182128012180328, -0.14726348221302032, 0.20933303236961365, -0.039835598319768906, 0.025049889460206032, 0.283186137676239, -0.1309731900691986, 0.17060810327529907, 0.25904369354248047, 0.16906915605068207, -0.21274586021900177, -0.085997074842453, -0.004009055905044079, -0.60506272315979, 0.18873438239097595, 0.24872925877571106, 0.05936247855424881, -0.0686996653676033, 0.6144141554832458, 0.07587817311286926, 0.24875342845916748, 0.03504880145192146, -0.16209077835083008, -0.06983951479196548, -0.011320799589157104, -0.1684926450252533, 0.07564803957939148, 0.4380222260951996, -0.23252281546592712, -0.23690636456012726, -0.013540971092879772, -0.1419266015291214, 0.5154546499252319, 0.4340137839317322, -0.10532071441411972, 0.04393896460533142, -0.12654905021190643, 0.15382681787014008, 0.20037975907325745, -0.15453952550888062, -0.3955632448196411, 0.18983817100524902, -0.0884125679731369, 0.20390652120113373, 0.20705345273017883, 0.19677627086639404, -0.02944609895348549, 0.10163409262895584, 0.053914181888103485, 0.5395386219024658, -0.22908811271190643, 0.10552207380533218, -0.43444323539733887, -0.43464410305023193, 0.3582526743412018, 0.056458480656147, 0.22416985034942627, -0.04083786532282829, -0.06270580738782883, 0.4361119270324707, 0.21150997281074524, -0.11106299608945847, 0.037483878433704376, 0.033337485045194626, -0.15166370570659637, -0.114353246986866, 0.017192281782627106, -0.04317101463675499, -0.4885513186454773, 0.1375231295824051, -0.1571972817182541, 0.30051758885383606, -0.050177812576293945, -0.1014920100569725, -0.2627060115337372, -0.19473382830619812, -0.17500250041484833, -0.2838496267795563, 0.21785645186901093, 0.22742384672164917, 0.20971956849098206, 0.004435578361153603, -0.27842387557029724, 0.30221351981163025, -0.03140692785382271, 0.12140261381864548, -0.5230283737182617, 0.262704074382782, -0.22790728509426117, -0.18105582892894745, 0.26396381855010986, 0.42988693714141846, 0.2641763687133789, -0.1530769169330597, -0.28321805596351624, 0.2833620607852936, -0.08616305887699127, 0.23159672319889069, -0.14804480969905853, -0.15910135209560394, 0.11376608908176422, -0.08145548403263092, 0.16977736353874207, 0.4025973379611969, -0.034243177622556686, -0.10330142080783844, -0.11919419467449188, 0.4826926589012146, 0.04845830798149109, 0.0898778885602951, 0.14993354678153992, -0.11412212997674942, 0.07726927101612091, -0.13095764815807343, 0.11302806437015533, -0.5237565040588379, 0.3187468349933624, -0.169630765914917, 0.2132306843996048, -0.08782132714986801, -0.25000810623168945, 0.05303804948925972, 0.6815170049667358, -0.025957688689231873, 0.09751385450363159, 0.020760275423526764, -0.102620929479599, -0.20208106935024261, -0.1837860345840454, 0.1597258448600769, 0.33867135643959045, 0.24137771129608154, 0.18663829565048218, 0.24745789170265198, -0.17295855283737183, -0.28600138425827026, 0.2723778784275055, 0.09546840190887451, 0.25380417704582214, 0.3859494626522064, 0.006087843328714371, -0.0024018262047320604, -0.5314661860466003, -0.024831358343362808, 0.013506943359971046, 0.37419483065605164, -0.223636656999588, -0.2018275111913681, -0.4316602945327759, -0.4015902876853943, -0.1702876091003418, -0.2987871468067169, -0.18740783631801605, -0.5853306651115417, 0.08001507818698883, 0.030056793242692947, -0.12527459859848022, 0.1624237298965454, -0.1581035852432251, 0.23189221322536469, 0.2769707441329956, -0.016565585508942604, -0.192729651927948, -0.08131879568099976, -0.1340954452753067, 0.0754104033112526, 0.17562681436538696, 0.03801100328564644, 0.32826289534568787, -0.13235561549663544, -0.17954084277153015, -0.02463013492524624, -0.40103790163993835, 0.07767210900783539, 0.06736999750137329, 0.13974110782146454, 0.3047906160354614, 0.18000972270965576, 0.33122289180755615, -0.33533260226249695, 0.19725315272808075, -0.24187162518501282, -0.2770199179649353, -0.008124577812850475, 0.002452143467962742, 0.14319957792758942, -0.23823177814483643, -0.4810169041156769, -0.4326366186141968, -0.5125102400779724, 0.10095544159412384, 0.048846740275621414, 0.4066630005836487, 0.2704300582408905, -0.2863166332244873, 0.19683784246444702, -0.12101706117391586, 0.18222688138484955, -0.2584162950515747, -0.17760850489139557, 0.2502979338169098, -0.2715798318386078, -0.2704792022705078, -0.12659569084644318, -0.14869961142539978, 0.20489075779914856, -0.2855253517627716, -0.4239242672920227, -0.32950732111930847, -0.14588722586631775, -0.0527009516954422, 0.10720010101795197, -0.055841654539108276, 0.22967487573623657, -0.012112721800804138, -0.16541756689548492, -0.033511944115161896, -0.3873254656791687, 0.05341790243983269, 0.12507455050945282, 0.07020942866802216, -0.09277207404375076, 0.6258091330528259, 0.06226636841893196, 0.5375286340713501, 0.37189820408821106, 0.09344471246004105, 0.23146429657936096, 0.10950131714344025, 0.14843204617500305, -0.012238205410540104, -0.3427925109863281, 0.25061506032943726, 0.1518254578113556, 0.059251151978969574, 0.34880125522613525, -0.05165112763643265, -0.3857155740261078, -0.0800836831331253, -0.3046739995479584, -0.46589046716690063, -0.2806210219860077, 0.18112528324127197, 0.12481656670570374, 0.25791501998901367, 0.2710356116294861, 0.1946987509727478, -0.17675651609897614, -0.17008192837238312, -0.14580951631069183, 0.1727720946073532, 0.005987647455185652, -0.03669294714927673, -0.10839416831731796, 0.014189736917614937, -0.610968828201294, 0.26002898812294006, 0.006670109461992979, 0.6111482381820679, -0.1570562869310379, -0.0673668161034584, -0.01685398444533348, -0.286609947681427, 0.3602801561355591, -0.3092956244945526, -0.05434192717075348, 0.18288695812225342, -0.1095796450972557, -0.35649681091308594, -0.12057863175868988, -0.1527361422777176, 0.04632594808936119, 0.5042909383773804, 0.5133960247039795, -0.2715703547000885, -0.28228628635406494, 0.41734933853149414, 0.10568185150623322, -0.19254562258720398, -0.24053238332271576, -0.260219931602478, -0.23654687404632568, -0.358950674533844, -0.0029188997577875853, -0.35495832562446594, 0.28066760301589966, 0.03478279337286949, -0.04944433644413948, -0.03679438680410385, -0.2479299157857895, 0.17122255265712738, 0.023834319785237312, -0.007559268269687891, 0.20605340600013733, 0.1902966946363449, 0.25861799716949463, 0.32822105288505554, -0.277705579996109, 0.32119515538215637, -0.04369416460394859, 0.013515874743461609, -0.08669760078191757, 0.1257399469614029, 0.04572514444589615, 0.48612433671951294, 0.01708144135773182, -0.018917124718427658, 0.20161963999271393, 0.3254522979259491, -0.004443165380507708, -0.033122118562459946, 0.44969213008880615, -0.06196990981698036, -0.41116243600845337, -0.16489051282405853, 0.29971787333488464, 0.12318988889455795, 0.13616180419921875, -0.13000161945819855, -0.19739112257957458, -0.24372178316116333, 0.127602681517601, 0.11299007385969162, 0.7832137942314148, 0.2591177523136139, 0.06482328474521637, 0.356595903635025, -0.154997780919075, 0.6783720254898071, -0.21120613813400269, 0.2569594383239746, -0.3706093430519104, -0.3312230110168457, -0.03791837394237518, -0.11087696999311447, 0.31698164343833923, 0.10036704689264297, -0.17701196670532227, 0.4902186989784241, -0.1291068196296692, -0.09943298995494843, -0.06175405532121658, 0.4637353718280792, -0.2605728805065155, -0.14336402714252472, -0.4001682698726654, 0.10669736564159393, -0.1958625465631485, 0.35261785984039307, -0.10239114612340927, -0.1949198842048645, 0.2577715814113617, -0.259081095457077, -0.07498250901699066, 0.2773522436618805, -0.26846274733543396, 0.13984869420528412, 0.006161939352750778, 0.2401975691318512, -0.22105015814304352, -0.38273879885673523, 0.3137291669845581, -0.13551823794841766, -0.0385885052382946, -0.06919455528259277, -0.26215121150016785, -0.024181270971894264, -0.1012062057852745, 0.1060122549533844, 0.42243266105651855, -0.21872292459011078, -0.11455654352903366, 0.02030373178422451, -0.1885795295238495, -0.16305328905582428, -0.018978143110871315, -0.03548508882522583, 0.10398736596107483, -0.17091935873031616, -0.19709551334381104, 0.09542500227689743, -0.23104912042617798, -0.3154529631137848, 0.14617881178855896, -0.057743433862924576, -0.29068008065223694, 0.3077004551887512, -0.08585240691900253, -0.2809654176235199, -0.257965087890625, 0.24452179670333862, 0.16969113051891327, 0.05087956413626671, 0.49227476119995117, 0.02250281535089016, -0.28980472683906555, -0.27908292412757874, -0.03006446547806263, 0.026360122486948967, -0.3613365590572357, 0.19981473684310913, -0.08701389282941818, -0.01557586994022131, 0.2755272686481476, 0.2051900327205658, 0.19970686733722687, 0.2912750244140625, -0.23239260911941528, -0.5686837434768677, -0.14387236535549164, 0.06298476457595825, -0.005366578232496977, 0.28937870264053345, 0.0466337725520134, 0.5640018582344055, 0.018357789143919945, 0.36128318309783936, -0.35585910081863403, 0.037059471011161804, -0.25321394205093384, 0.1774703860282898, 0.16446834802627563, -0.28713324666023254, 0.4796307384967804, 0.33617427945137024, 0.18960979580879211, 0.18448372185230255, -0.32766881585121155, -0.23988129198551178, -0.13987892866134644, 0.14599119126796722, 0.052867159247398376, -0.15074843168258667, 0.1091265007853508, 0.021052053198218346, -0.16266103088855743, -0.0761600062251091, -0.013170218095183372, -0.11839112639427185, -0.08799035847187042, 0.24678483605384827, -0.042254865169525146, -0.0603145994246006, 0.1202736496925354, 0.05636410787701607, -0.12312090396881104, 0.3887266516685486, -0.011861900798976421, 0.23062413930892944, -0.23718143999576569, 0.04591016843914986, -0.1055983379483223, -0.10755317658185959, 0.04922781139612198, 0.014071152545511723, 0.28337445855140686, -0.4350685179233551, -0.2895486652851105, 0.1623045802116394, 0.23141953349113464, 0.2564556896686554, -0.028592564165592194, -0.15060406923294067, 0.16547544300556183, 0.22180140018463135, -0.31953516602516174, 0.024544063955545425, 0.3671758472919464, -0.0035073801409453154, 0.3218831717967987, 0.35307613015174866, 0.1187407523393631, 0.01955278404057026, -0.05087750777602196, 0.08901342749595642, 0.21651893854141235, -0.26599806547164917, 0.03685697913169861, 0.2631327509880066, -0.1103859469294548, -0.015080536715686321, 0.301581472158432, -0.1218026876449585, 0.3009926378726959, 0.23779338598251343, -0.03177618235349655, 0.42949390411376953, -0.03971800580620766, 0.3304131329059601, -0.006970396265387535, -0.21676748991012573, 0.1839848905801773, 0.4842495918273926, -0.11200051009654999, 0.38328132033348083, 0.014789903536438942, 0.41056424379348755, -0.2803669571876526, 0.014444817788898945, -0.17746317386627197, 0.47217613458633423, -0.14001250267028809, 0.09138774126768112, -0.03362596035003662, -0.09873799979686737, -0.28677278757095337, -0.0064014047384262085, 0.07856134325265884, 0.09015961736440659, 0.15062358975410461, 0.11592981219291687, -0.037642206996679306, -0.3303665518760681, -0.18787679076194763, 0.15899142622947693, 0.23829929530620575, -0.39914384484291077, 0.3074405789375305, 0.2775503993034363, -0.04233229532837868, -0.1595373898744583, 0.6101233959197998, 0.3431239426136017, 0.38488322496414185, -0.1388494074344635, -0.020331760868430138, 0.16356180608272552, -0.07778988778591156, -0.08909237384796143, 0.3411317765712738, 0.189756840467453, -0.07463888078927994, 0.36463627219200134, 0.1043185368180275, -0.27841460704803467, -0.04633704200387001, 0.09377675503492355, -0.24161630868911743, -0.13924571871757507, 0.29328253865242004, -0.0494256317615509, 0.21002809703350067, -0.22206217050552368, 0.03043293207883835, -0.6043110489845276, -0.05030505359172821, 0.19343557953834534, -0.08079171180725098, 0.2918081283569336, 0.03415675461292267, 0.10029321163892746, -0.19151315093040466, 0.49110648036003113, 0.06943687796592712, -0.07489405572414398, -0.30477797985076904, -0.22468258440494537, -0.5798494815826416, 0.14757342636585236, -0.1549483686685562, -0.05646674707531929, 0.009748997166752815, 0.28136521577835083, -0.20153431594371796, 0.049443330615758896, 0.07764045894145966, 0.3546505272388458, -0.04044222831726074, -0.15757256746292114, -0.3835545778274536, 0.016315491870045662, 0.005404050927609205, -0.22684897482395172, 0.07368845492601395, -0.4133264422416687, 0.24398702383041382, -0.20116817951202393, 0.03681535646319389, -0.12372995913028717, 0.05972903221845627, -0.0689731240272522, 0.47976425290107727, 0.012968509458005428, 0.5052638649940491, 0.2816343903541565, -0.23628197610378265, -0.3487406075000763, -0.16561105847358704, -0.14218777418136597, -0.29679253697395325, 0.15791837871074677, 0.3191111087799072, 0.5874747633934021, 0.01729501225054264, 0.05495743826031685, -0.3607901930809021, 0.3801415264606476, 0.023944193497300148, -0.18775157630443573, 0.024197714403271675, 0.3261171281337738, -0.24118934571743011, 0.26747220754623413, 0.2473870813846588, 0.38607344031333923, 0.1126280203461647, 0.14903557300567627, -0.24469798803329468, -0.3713933527469635, 0.5164570808410645, -0.18318620324134827, -0.22347164154052734, -0.01189622562378645, 0.12572607398033142, 0.026465745642781258, -0.12795689702033997, -0.4188547730445862, 0.05670102313160896, 0.358068585395813, -0.10179194808006287, -0.0891667902469635, 0.2000732123851776, 0.2182815968990326, -0.205601304769516, -0.019860897213220596, -0.09547439962625504, 0.39530301094055176, -0.4314526319503784, 0.2040593922138214, -0.07732629776000977 ]
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.14106929302215576, -0.05698738247156143, -0.008213234134018421, 0.20865675806999207, 0.07764953374862671, 0.09079599380493164, 0.1833023577928543, 0.5251756906509399, 0.09873175621032715, 0.15423211455345154, 0.01629800535738468, 0.07699685543775558, -0.3141203224658966, -0.04377453029155731, -0.03358948603272438, 0.03590166196227074, -0.18716785311698914, 0.25151240825653076, 0.044887762516736984, -0.022996826097369194, -0.2874319553375244, 0.28179046511650085, -0.20873937010765076, -0.03660072758793831, -0.4835280179977417, -0.29419684410095215, 0.014395969919860363, 0.3698371648788452, 0.03764790669083595, -0.30936455726623535, -0.05411530286073685, -0.13485759496688843, -0.18413884937763214, 0.10297109931707382, -0.00011303213250357658, 0.11360619217157364, 0.3911181688308716, -0.1433287262916565, -0.48673808574676514, 0.009375574998557568, -0.21043400466442108, -0.49062615633010864, 0.08809000998735428, -0.35468026995658875, -0.155234232544899, 0.025319691747426987, 0.09456432610750198, -0.21953842043876648, 0.4969276487827301, 0.39046865701675415, 0.24021919071674347, 0.5636105537414551, 0.06623179465532303, 0.16334468126296997, -0.08876928687095642, -0.18095538020133972, -0.14587077498435974, -0.004866044037044048, -0.317836195230484, -0.1510140299797058, -0.024242786690592766, 0.42894718050956726, -0.0926201120018959, 0.12534786760807037, -0.08723723143339157, 0.11025021225214005, 0.08894404768943787, -0.1658468097448349, 0.09388119727373123, 0.1360182762145996, -0.032907839864492416, -0.07590679079294205, -0.211391881108284, -0.43856140971183777, -0.016064023599028587, -0.39801764488220215, 0.2251274287700653, 0.2127169519662857, -0.17450276017189026, 0.06538070738315582, -0.3212837278842926, 0.03848983719944954, -0.02947147749364376, 0.203406423330307, 0.08193324506282806, 0.41119423508644104, -0.10029765218496323, 0.02581174299120903, 0.0555451437830925, -0.09011641144752502, 0.15675167739391327, -0.17692787945270538, 0.1543257087469101, 0.07783644646406174, -0.1457696259021759, -0.04527811333537102, 0.16446492075920105, -0.14841516315937042, 0.04303531348705292, -0.06754758954048157, 0.17891041934490204, -0.062105368822813034, 0.17447401583194733, 0.08687423914670944, 0.047065552324056625, 0.3125297427177429, -0.016350939869880676, 0.26863324642181396, 0.12459810078144073, 0.28520944714546204, 0.002519685309380293, 0.018103212118148804, 0.11720158159732819, -0.005318051669746637, 0.11884792149066925, 0.22079965472221375, 0.3734848201274872, -0.05925484374165535, -0.32763227820396423, 0.13372252881526947, -0.26271504163742065, -0.25902363657951355, -0.0015640703495591879, 0.25621798634529114, -0.05830163508653641, 0.3132661283016205, -0.06084303930401802, -0.08145171403884888, -0.38394269347190857, -0.1547316461801529, -0.3804470896720886, 0.1700798124074936, -0.18440084159374237, 0.08080919086933136, 0.2795964479446411, -0.07962559908628464, 0.45722147822380066, -0.2497541755437851, -0.014182128012180328, -0.14726348221302032, 0.20933303236961365, -0.039835598319768906, 0.025049889460206032, 0.283186137676239, -0.1309731900691986, 0.17060810327529907, 0.25904369354248047, 0.16906915605068207, -0.21274586021900177, -0.085997074842453, -0.004009055905044079, -0.60506272315979, 0.18873438239097595, 0.24872925877571106, 0.05936247855424881, -0.0686996653676033, 0.6144141554832458, 0.07587817311286926, 0.24875342845916748, 0.03504880145192146, -0.16209077835083008, -0.06983951479196548, -0.011320799589157104, -0.1684926450252533, 0.07564803957939148, 0.4380222260951996, -0.23252281546592712, -0.23690636456012726, -0.013540971092879772, -0.1419266015291214, 0.5154546499252319, 0.4340137839317322, -0.10532071441411972, 0.04393896460533142, -0.12654905021190643, 0.15382681787014008, 0.20037975907325745, -0.15453952550888062, -0.3955632448196411, 0.18983817100524902, -0.0884125679731369, 0.20390652120113373, 0.20705345273017883, 0.19677627086639404, -0.02944609895348549, 0.10163409262895584, 0.053914181888103485, 0.5395386219024658, -0.22908811271190643, 0.10552207380533218, -0.43444323539733887, -0.43464410305023193, 0.3582526743412018, 0.056458480656147, 0.22416985034942627, -0.04083786532282829, -0.06270580738782883, 0.4361119270324707, 0.21150997281074524, -0.11106299608945847, 0.037483878433704376, 0.033337485045194626, -0.15166370570659637, -0.114353246986866, 0.017192281782627106, -0.04317101463675499, -0.4885513186454773, 0.1375231295824051, -0.1571972817182541, 0.30051758885383606, -0.050177812576293945, -0.1014920100569725, -0.2627060115337372, -0.19473382830619812, -0.17500250041484833, -0.2838496267795563, 0.21785645186901093, 0.22742384672164917, 0.20971956849098206, 0.004435578361153603, -0.27842387557029724, 0.30221351981163025, -0.03140692785382271, 0.12140261381864548, -0.5230283737182617, 0.262704074382782, -0.22790728509426117, -0.18105582892894745, 0.26396381855010986, 0.42988693714141846, 0.2641763687133789, -0.1530769169330597, -0.28321805596351624, 0.2833620607852936, -0.08616305887699127, 0.23159672319889069, -0.14804480969905853, -0.15910135209560394, 0.11376608908176422, -0.08145548403263092, 0.16977736353874207, 0.4025973379611969, -0.034243177622556686, -0.10330142080783844, -0.11919419467449188, 0.4826926589012146, 0.04845830798149109, 0.0898778885602951, 0.14993354678153992, -0.11412212997674942, 0.07726927101612091, -0.13095764815807343, 0.11302806437015533, -0.5237565040588379, 0.3187468349933624, -0.169630765914917, 0.2132306843996048, -0.08782132714986801, -0.25000810623168945, 0.05303804948925972, 0.6815170049667358, -0.025957688689231873, 0.09751385450363159, 0.020760275423526764, -0.102620929479599, -0.20208106935024261, -0.1837860345840454, 0.1597258448600769, 0.33867135643959045, 0.24137771129608154, 0.18663829565048218, 0.24745789170265198, -0.17295855283737183, -0.28600138425827026, 0.2723778784275055, 0.09546840190887451, 0.25380417704582214, 0.3859494626522064, 0.006087843328714371, -0.0024018262047320604, -0.5314661860466003, -0.024831358343362808, 0.013506943359971046, 0.37419483065605164, -0.223636656999588, -0.2018275111913681, -0.4316602945327759, -0.4015902876853943, -0.1702876091003418, -0.2987871468067169, -0.18740783631801605, -0.5853306651115417, 0.08001507818698883, 0.030056793242692947, -0.12527459859848022, 0.1624237298965454, -0.1581035852432251, 0.23189221322536469, 0.2769707441329956, -0.016565585508942604, -0.192729651927948, -0.08131879568099976, -0.1340954452753067, 0.0754104033112526, 0.17562681436538696, 0.03801100328564644, 0.32826289534568787, -0.13235561549663544, -0.17954084277153015, -0.02463013492524624, -0.40103790163993835, 0.07767210900783539, 0.06736999750137329, 0.13974110782146454, 0.3047906160354614, 0.18000972270965576, 0.33122289180755615, -0.33533260226249695, 0.19725315272808075, -0.24187162518501282, -0.2770199179649353, -0.008124577812850475, 0.002452143467962742, 0.14319957792758942, -0.23823177814483643, -0.4810169041156769, -0.4326366186141968, -0.5125102400779724, 0.10095544159412384, 0.048846740275621414, 0.4066630005836487, 0.2704300582408905, -0.2863166332244873, 0.19683784246444702, -0.12101706117391586, 0.18222688138484955, -0.2584162950515747, -0.17760850489139557, 0.2502979338169098, -0.2715798318386078, -0.2704792022705078, -0.12659569084644318, -0.14869961142539978, 0.20489075779914856, -0.2855253517627716, -0.4239242672920227, -0.32950732111930847, -0.14588722586631775, -0.0527009516954422, 0.10720010101795197, -0.055841654539108276, 0.22967487573623657, -0.012112721800804138, -0.16541756689548492, -0.033511944115161896, -0.3873254656791687, 0.05341790243983269, 0.12507455050945282, 0.07020942866802216, -0.09277207404375076, 0.6258091330528259, 0.06226636841893196, 0.5375286340713501, 0.37189820408821106, 0.09344471246004105, 0.23146429657936096, 0.10950131714344025, 0.14843204617500305, -0.012238205410540104, -0.3427925109863281, 0.25061506032943726, 0.1518254578113556, 0.059251151978969574, 0.34880125522613525, -0.05165112763643265, -0.3857155740261078, -0.0800836831331253, -0.3046739995479584, -0.46589046716690063, -0.2806210219860077, 0.18112528324127197, 0.12481656670570374, 0.25791501998901367, 0.2710356116294861, 0.1946987509727478, -0.17675651609897614, -0.17008192837238312, -0.14580951631069183, 0.1727720946073532, 0.005987647455185652, -0.03669294714927673, -0.10839416831731796, 0.014189736917614937, -0.610968828201294, 0.26002898812294006, 0.006670109461992979, 0.6111482381820679, -0.1570562869310379, -0.0673668161034584, -0.01685398444533348, -0.286609947681427, 0.3602801561355591, -0.3092956244945526, -0.05434192717075348, 0.18288695812225342, -0.1095796450972557, -0.35649681091308594, -0.12057863175868988, -0.1527361422777176, 0.04632594808936119, 0.5042909383773804, 0.5133960247039795, -0.2715703547000885, -0.28228628635406494, 0.41734933853149414, 0.10568185150623322, -0.19254562258720398, -0.24053238332271576, -0.260219931602478, -0.23654687404632568, -0.358950674533844, -0.0029188997577875853, -0.35495832562446594, 0.28066760301589966, 0.03478279337286949, -0.04944433644413948, -0.03679438680410385, -0.2479299157857895, 0.17122255265712738, 0.023834319785237312, -0.007559268269687891, 0.20605340600013733, 0.1902966946363449, 0.25861799716949463, 0.32822105288505554, -0.277705579996109, 0.32119515538215637, -0.04369416460394859, 0.013515874743461609, -0.08669760078191757, 0.1257399469614029, 0.04572514444589615, 0.48612433671951294, 0.01708144135773182, -0.018917124718427658, 0.20161963999271393, 0.3254522979259491, -0.004443165380507708, -0.033122118562459946, 0.44969213008880615, -0.06196990981698036, -0.41116243600845337, -0.16489051282405853, 0.29971787333488464, 0.12318988889455795, 0.13616180419921875, -0.13000161945819855, -0.19739112257957458, -0.24372178316116333, 0.127602681517601, 0.11299007385969162, 0.7832137942314148, 0.2591177523136139, 0.06482328474521637, 0.356595903635025, -0.154997780919075, 0.6783720254898071, -0.21120613813400269, 0.2569594383239746, -0.3706093430519104, -0.3312230110168457, -0.03791837394237518, -0.11087696999311447, 0.31698164343833923, 0.10036704689264297, -0.17701196670532227, 0.4902186989784241, -0.1291068196296692, -0.09943298995494843, -0.06175405532121658, 0.4637353718280792, -0.2605728805065155, -0.14336402714252472, -0.4001682698726654, 0.10669736564159393, -0.1958625465631485, 0.35261785984039307, -0.10239114612340927, -0.1949198842048645, 0.2577715814113617, -0.259081095457077, -0.07498250901699066, 0.2773522436618805, -0.26846274733543396, 0.13984869420528412, 0.006161939352750778, 0.2401975691318512, -0.22105015814304352, -0.38273879885673523, 0.3137291669845581, -0.13551823794841766, -0.0385885052382946, -0.06919455528259277, -0.26215121150016785, -0.024181270971894264, -0.1012062057852745, 0.1060122549533844, 0.42243266105651855, -0.21872292459011078, -0.11455654352903366, 0.02030373178422451, -0.1885795295238495, -0.16305328905582428, -0.018978143110871315, -0.03548508882522583, 0.10398736596107483, -0.17091935873031616, -0.19709551334381104, 0.09542500227689743, -0.23104912042617798, -0.3154529631137848, 0.14617881178855896, -0.057743433862924576, -0.29068008065223694, 0.3077004551887512, -0.08585240691900253, -0.2809654176235199, -0.257965087890625, 0.24452179670333862, 0.16969113051891327, 0.05087956413626671, 0.49227476119995117, 0.02250281535089016, -0.28980472683906555, -0.27908292412757874, -0.03006446547806263, 0.026360122486948967, -0.3613365590572357, 0.19981473684310913, -0.08701389282941818, -0.01557586994022131, 0.2755272686481476, 0.2051900327205658, 0.19970686733722687, 0.2912750244140625, -0.23239260911941528, -0.5686837434768677, -0.14387236535549164, 0.06298476457595825, -0.005366578232496977, 0.28937870264053345, 0.0466337725520134, 0.5640018582344055, 0.018357789143919945, 0.36128318309783936, -0.35585910081863403, 0.037059471011161804, -0.25321394205093384, 0.1774703860282898, 0.16446834802627563, -0.28713324666023254, 0.4796307384967804, 0.33617427945137024, 0.18960979580879211, 0.18448372185230255, -0.32766881585121155, -0.23988129198551178, -0.13987892866134644, 0.14599119126796722, 0.052867159247398376, -0.15074843168258667, 0.1091265007853508, 0.021052053198218346, -0.16266103088855743, -0.0761600062251091, -0.013170218095183372, -0.11839112639427185, -0.08799035847187042, 0.24678483605384827, -0.042254865169525146, -0.0603145994246006, 0.1202736496925354, 0.05636410787701607, -0.12312090396881104, 0.3887266516685486, -0.011861900798976421, 0.23062413930892944, -0.23718143999576569, 0.04591016843914986, -0.1055983379483223, -0.10755317658185959, 0.04922781139612198, 0.014071152545511723, 0.28337445855140686, -0.4350685179233551, -0.2895486652851105, 0.1623045802116394, 0.23141953349113464, 0.2564556896686554, -0.028592564165592194, -0.15060406923294067, 0.16547544300556183, 0.22180140018463135, -0.31953516602516174, 0.024544063955545425, 0.3671758472919464, -0.0035073801409453154, 0.3218831717967987, 0.35307613015174866, 0.1187407523393631, 0.01955278404057026, -0.05087750777602196, 0.08901342749595642, 0.21651893854141235, -0.26599806547164917, 0.03685697913169861, 0.2631327509880066, -0.1103859469294548, -0.015080536715686321, 0.301581472158432, -0.1218026876449585, 0.3009926378726959, 0.23779338598251343, -0.03177618235349655, 0.42949390411376953, -0.03971800580620766, 0.3304131329059601, -0.006970396265387535, -0.21676748991012573, 0.1839848905801773, 0.4842495918273926, -0.11200051009654999, 0.38328132033348083, 0.014789903536438942, 0.41056424379348755, -0.2803669571876526, 0.014444817788898945, -0.17746317386627197, 0.47217613458633423, -0.14001250267028809, 0.09138774126768112, -0.03362596035003662, -0.09873799979686737, -0.28677278757095337, -0.0064014047384262085, 0.07856134325265884, 0.09015961736440659, 0.15062358975410461, 0.11592981219291687, -0.037642206996679306, -0.3303665518760681, -0.18787679076194763, 0.15899142622947693, 0.23829929530620575, -0.39914384484291077, 0.3074405789375305, 0.2775503993034363, -0.04233229532837868, -0.1595373898744583, 0.6101233959197998, 0.3431239426136017, 0.38488322496414185, -0.1388494074344635, -0.020331760868430138, 0.16356180608272552, -0.07778988778591156, -0.08909237384796143, 0.3411317765712738, 0.189756840467453, -0.07463888078927994, 0.36463627219200134, 0.1043185368180275, -0.27841460704803467, -0.04633704200387001, 0.09377675503492355, -0.24161630868911743, -0.13924571871757507, 0.29328253865242004, -0.0494256317615509, 0.21002809703350067, -0.22206217050552368, 0.03043293207883835, -0.6043110489845276, -0.05030505359172821, 0.19343557953834534, -0.08079171180725098, 0.2918081283569336, 0.03415675461292267, 0.10029321163892746, -0.19151315093040466, 0.49110648036003113, 0.06943687796592712, -0.07489405572414398, -0.30477797985076904, -0.22468258440494537, -0.5798494815826416, 0.14757342636585236, -0.1549483686685562, -0.05646674707531929, 0.009748997166752815, 0.28136521577835083, -0.20153431594371796, 0.049443330615758896, 0.07764045894145966, 0.3546505272388458, -0.04044222831726074, -0.15757256746292114, -0.3835545778274536, 0.016315491870045662, 0.005404050927609205, -0.22684897482395172, 0.07368845492601395, -0.4133264422416687, 0.24398702383041382, -0.20116817951202393, 0.03681535646319389, -0.12372995913028717, 0.05972903221845627, -0.0689731240272522, 0.47976425290107727, 0.012968509458005428, 0.5052638649940491, 0.2816343903541565, -0.23628197610378265, -0.3487406075000763, -0.16561105847358704, -0.14218777418136597, -0.29679253697395325, 0.15791837871074677, 0.3191111087799072, 0.5874747633934021, 0.01729501225054264, 0.05495743826031685, -0.3607901930809021, 0.3801415264606476, 0.023944193497300148, -0.18775157630443573, 0.024197714403271675, 0.3261171281337738, -0.24118934571743011, 0.26747220754623413, 0.2473870813846588, 0.38607344031333923, 0.1126280203461647, 0.14903557300567627, -0.24469798803329468, -0.3713933527469635, 0.5164570808410645, -0.18318620324134827, -0.22347164154052734, -0.01189622562378645, 0.12572607398033142, 0.026465745642781258, -0.12795689702033997, -0.4188547730445862, 0.05670102313160896, 0.358068585395813, -0.10179194808006287, -0.0891667902469635, 0.2000732123851776, 0.2182815968990326, -0.205601304769516, -0.019860897213220596, -0.09547439962625504, 0.39530301094055176, -0.4314526319503784, 0.2040593922138214, -0.07732629776000977 ]
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.14106929302215576, -0.05698738247156143, -0.008213234134018421, 0.20865675806999207, 0.07764953374862671, 0.09079599380493164, 0.1833023577928543, 0.5251756906509399, 0.09873175621032715, 0.15423211455345154, 0.01629800535738468, 0.07699685543775558, -0.3141203224658966, -0.04377453029155731, -0.03358948603272438, 0.03590166196227074, -0.18716785311698914, 0.25151240825653076, 0.044887762516736984, -0.022996826097369194, -0.2874319553375244, 0.28179046511650085, -0.20873937010765076, -0.03660072758793831, -0.4835280179977417, -0.29419684410095215, 0.014395969919860363, 0.3698371648788452, 0.03764790669083595, -0.30936455726623535, -0.05411530286073685, -0.13485759496688843, -0.18413884937763214, 0.10297109931707382, -0.00011303213250357658, 0.11360619217157364, 0.3911181688308716, -0.1433287262916565, -0.48673808574676514, 0.009375574998557568, -0.21043400466442108, -0.49062615633010864, 0.08809000998735428, -0.35468026995658875, -0.155234232544899, 0.025319691747426987, 0.09456432610750198, -0.21953842043876648, 0.4969276487827301, 0.39046865701675415, 0.24021919071674347, 0.5636105537414551, 0.06623179465532303, 0.16334468126296997, -0.08876928687095642, -0.18095538020133972, -0.14587077498435974, -0.004866044037044048, -0.317836195230484, -0.1510140299797058, -0.024242786690592766, 0.42894718050956726, -0.0926201120018959, 0.12534786760807037, -0.08723723143339157, 0.11025021225214005, 0.08894404768943787, -0.1658468097448349, 0.09388119727373123, 0.1360182762145996, -0.032907839864492416, -0.07590679079294205, -0.211391881108284, -0.43856140971183777, -0.016064023599028587, -0.39801764488220215, 0.2251274287700653, 0.2127169519662857, -0.17450276017189026, 0.06538070738315582, -0.3212837278842926, 0.03848983719944954, -0.02947147749364376, 0.203406423330307, 0.08193324506282806, 0.41119423508644104, -0.10029765218496323, 0.02581174299120903, 0.0555451437830925, -0.09011641144752502, 0.15675167739391327, -0.17692787945270538, 0.1543257087469101, 0.07783644646406174, -0.1457696259021759, -0.04527811333537102, 0.16446492075920105, -0.14841516315937042, 0.04303531348705292, -0.06754758954048157, 0.17891041934490204, -0.062105368822813034, 0.17447401583194733, 0.08687423914670944, 0.047065552324056625, 0.3125297427177429, -0.016350939869880676, 0.26863324642181396, 0.12459810078144073, 0.28520944714546204, 0.002519685309380293, 0.018103212118148804, 0.11720158159732819, -0.005318051669746637, 0.11884792149066925, 0.22079965472221375, 0.3734848201274872, -0.05925484374165535, -0.32763227820396423, 0.13372252881526947, -0.26271504163742065, -0.25902363657951355, -0.0015640703495591879, 0.25621798634529114, -0.05830163508653641, 0.3132661283016205, -0.06084303930401802, -0.08145171403884888, -0.38394269347190857, -0.1547316461801529, -0.3804470896720886, 0.1700798124074936, -0.18440084159374237, 0.08080919086933136, 0.2795964479446411, -0.07962559908628464, 0.45722147822380066, -0.2497541755437851, -0.014182128012180328, -0.14726348221302032, 0.20933303236961365, -0.039835598319768906, 0.025049889460206032, 0.283186137676239, -0.1309731900691986, 0.17060810327529907, 0.25904369354248047, 0.16906915605068207, -0.21274586021900177, -0.085997074842453, -0.004009055905044079, -0.60506272315979, 0.18873438239097595, 0.24872925877571106, 0.05936247855424881, -0.0686996653676033, 0.6144141554832458, 0.07587817311286926, 0.24875342845916748, 0.03504880145192146, -0.16209077835083008, -0.06983951479196548, -0.011320799589157104, -0.1684926450252533, 0.07564803957939148, 0.4380222260951996, -0.23252281546592712, -0.23690636456012726, -0.013540971092879772, -0.1419266015291214, 0.5154546499252319, 0.4340137839317322, -0.10532071441411972, 0.04393896460533142, -0.12654905021190643, 0.15382681787014008, 0.20037975907325745, -0.15453952550888062, -0.3955632448196411, 0.18983817100524902, -0.0884125679731369, 0.20390652120113373, 0.20705345273017883, 0.19677627086639404, -0.02944609895348549, 0.10163409262895584, 0.053914181888103485, 0.5395386219024658, -0.22908811271190643, 0.10552207380533218, -0.43444323539733887, -0.43464410305023193, 0.3582526743412018, 0.056458480656147, 0.22416985034942627, -0.04083786532282829, -0.06270580738782883, 0.4361119270324707, 0.21150997281074524, -0.11106299608945847, 0.037483878433704376, 0.033337485045194626, -0.15166370570659637, -0.114353246986866, 0.017192281782627106, -0.04317101463675499, -0.4885513186454773, 0.1375231295824051, -0.1571972817182541, 0.30051758885383606, -0.050177812576293945, -0.1014920100569725, -0.2627060115337372, -0.19473382830619812, -0.17500250041484833, -0.2838496267795563, 0.21785645186901093, 0.22742384672164917, 0.20971956849098206, 0.004435578361153603, -0.27842387557029724, 0.30221351981163025, -0.03140692785382271, 0.12140261381864548, -0.5230283737182617, 0.262704074382782, -0.22790728509426117, -0.18105582892894745, 0.26396381855010986, 0.42988693714141846, 0.2641763687133789, -0.1530769169330597, -0.28321805596351624, 0.2833620607852936, -0.08616305887699127, 0.23159672319889069, -0.14804480969905853, -0.15910135209560394, 0.11376608908176422, -0.08145548403263092, 0.16977736353874207, 0.4025973379611969, -0.034243177622556686, -0.10330142080783844, -0.11919419467449188, 0.4826926589012146, 0.04845830798149109, 0.0898778885602951, 0.14993354678153992, -0.11412212997674942, 0.07726927101612091, -0.13095764815807343, 0.11302806437015533, -0.5237565040588379, 0.3187468349933624, -0.169630765914917, 0.2132306843996048, -0.08782132714986801, -0.25000810623168945, 0.05303804948925972, 0.6815170049667358, -0.025957688689231873, 0.09751385450363159, 0.020760275423526764, -0.102620929479599, -0.20208106935024261, -0.1837860345840454, 0.1597258448600769, 0.33867135643959045, 0.24137771129608154, 0.18663829565048218, 0.24745789170265198, -0.17295855283737183, -0.28600138425827026, 0.2723778784275055, 0.09546840190887451, 0.25380417704582214, 0.3859494626522064, 0.006087843328714371, -0.0024018262047320604, -0.5314661860466003, -0.024831358343362808, 0.013506943359971046, 0.37419483065605164, -0.223636656999588, -0.2018275111913681, -0.4316602945327759, -0.4015902876853943, -0.1702876091003418, -0.2987871468067169, -0.18740783631801605, -0.5853306651115417, 0.08001507818698883, 0.030056793242692947, -0.12527459859848022, 0.1624237298965454, -0.1581035852432251, 0.23189221322536469, 0.2769707441329956, -0.016565585508942604, -0.192729651927948, -0.08131879568099976, -0.1340954452753067, 0.0754104033112526, 0.17562681436538696, 0.03801100328564644, 0.32826289534568787, -0.13235561549663544, -0.17954084277153015, -0.02463013492524624, -0.40103790163993835, 0.07767210900783539, 0.06736999750137329, 0.13974110782146454, 0.3047906160354614, 0.18000972270965576, 0.33122289180755615, -0.33533260226249695, 0.19725315272808075, -0.24187162518501282, -0.2770199179649353, -0.008124577812850475, 0.002452143467962742, 0.14319957792758942, -0.23823177814483643, -0.4810169041156769, -0.4326366186141968, -0.5125102400779724, 0.10095544159412384, 0.048846740275621414, 0.4066630005836487, 0.2704300582408905, -0.2863166332244873, 0.19683784246444702, -0.12101706117391586, 0.18222688138484955, -0.2584162950515747, -0.17760850489139557, 0.2502979338169098, -0.2715798318386078, -0.2704792022705078, -0.12659569084644318, -0.14869961142539978, 0.20489075779914856, -0.2855253517627716, -0.4239242672920227, -0.32950732111930847, -0.14588722586631775, -0.0527009516954422, 0.10720010101795197, -0.055841654539108276, 0.22967487573623657, -0.012112721800804138, -0.16541756689548492, -0.033511944115161896, -0.3873254656791687, 0.05341790243983269, 0.12507455050945282, 0.07020942866802216, -0.09277207404375076, 0.6258091330528259, 0.06226636841893196, 0.5375286340713501, 0.37189820408821106, 0.09344471246004105, 0.23146429657936096, 0.10950131714344025, 0.14843204617500305, -0.012238205410540104, -0.3427925109863281, 0.25061506032943726, 0.1518254578113556, 0.059251151978969574, 0.34880125522613525, -0.05165112763643265, -0.3857155740261078, -0.0800836831331253, -0.3046739995479584, -0.46589046716690063, -0.2806210219860077, 0.18112528324127197, 0.12481656670570374, 0.25791501998901367, 0.2710356116294861, 0.1946987509727478, -0.17675651609897614, -0.17008192837238312, -0.14580951631069183, 0.1727720946073532, 0.005987647455185652, -0.03669294714927673, -0.10839416831731796, 0.014189736917614937, -0.610968828201294, 0.26002898812294006, 0.006670109461992979, 0.6111482381820679, -0.1570562869310379, -0.0673668161034584, -0.01685398444533348, -0.286609947681427, 0.3602801561355591, -0.3092956244945526, -0.05434192717075348, 0.18288695812225342, -0.1095796450972557, -0.35649681091308594, -0.12057863175868988, -0.1527361422777176, 0.04632594808936119, 0.5042909383773804, 0.5133960247039795, -0.2715703547000885, -0.28228628635406494, 0.41734933853149414, 0.10568185150623322, -0.19254562258720398, -0.24053238332271576, -0.260219931602478, -0.23654687404632568, -0.358950674533844, -0.0029188997577875853, -0.35495832562446594, 0.28066760301589966, 0.03478279337286949, -0.04944433644413948, -0.03679438680410385, -0.2479299157857895, 0.17122255265712738, 0.023834319785237312, -0.007559268269687891, 0.20605340600013733, 0.1902966946363449, 0.25861799716949463, 0.32822105288505554, -0.277705579996109, 0.32119515538215637, -0.04369416460394859, 0.013515874743461609, -0.08669760078191757, 0.1257399469614029, 0.04572514444589615, 0.48612433671951294, 0.01708144135773182, -0.018917124718427658, 0.20161963999271393, 0.3254522979259491, -0.004443165380507708, -0.033122118562459946, 0.44969213008880615, -0.06196990981698036, -0.41116243600845337, -0.16489051282405853, 0.29971787333488464, 0.12318988889455795, 0.13616180419921875, -0.13000161945819855, -0.19739112257957458, -0.24372178316116333, 0.127602681517601, 0.11299007385969162, 0.7832137942314148, 0.2591177523136139, 0.06482328474521637, 0.356595903635025, -0.154997780919075, 0.6783720254898071, -0.21120613813400269, 0.2569594383239746, -0.3706093430519104, -0.3312230110168457, -0.03791837394237518, -0.11087696999311447, 0.31698164343833923, 0.10036704689264297, -0.17701196670532227, 0.4902186989784241, -0.1291068196296692, -0.09943298995494843, -0.06175405532121658, 0.4637353718280792, -0.2605728805065155, -0.14336402714252472, -0.4001682698726654, 0.10669736564159393, -0.1958625465631485, 0.35261785984039307, -0.10239114612340927, -0.1949198842048645, 0.2577715814113617, -0.259081095457077, -0.07498250901699066, 0.2773522436618805, -0.26846274733543396, 0.13984869420528412, 0.006161939352750778, 0.2401975691318512, -0.22105015814304352, -0.38273879885673523, 0.3137291669845581, -0.13551823794841766, -0.0385885052382946, -0.06919455528259277, -0.26215121150016785, -0.024181270971894264, -0.1012062057852745, 0.1060122549533844, 0.42243266105651855, -0.21872292459011078, -0.11455654352903366, 0.02030373178422451, -0.1885795295238495, -0.16305328905582428, -0.018978143110871315, -0.03548508882522583, 0.10398736596107483, -0.17091935873031616, -0.19709551334381104, 0.09542500227689743, -0.23104912042617798, -0.3154529631137848, 0.14617881178855896, -0.057743433862924576, -0.29068008065223694, 0.3077004551887512, -0.08585240691900253, -0.2809654176235199, -0.257965087890625, 0.24452179670333862, 0.16969113051891327, 0.05087956413626671, 0.49227476119995117, 0.02250281535089016, -0.28980472683906555, -0.27908292412757874, -0.03006446547806263, 0.026360122486948967, -0.3613365590572357, 0.19981473684310913, -0.08701389282941818, -0.01557586994022131, 0.2755272686481476, 0.2051900327205658, 0.19970686733722687, 0.2912750244140625, -0.23239260911941528, -0.5686837434768677, -0.14387236535549164, 0.06298476457595825, -0.005366578232496977, 0.28937870264053345, 0.0466337725520134, 0.5640018582344055, 0.018357789143919945, 0.36128318309783936, -0.35585910081863403, 0.037059471011161804, -0.25321394205093384, 0.1774703860282898, 0.16446834802627563, -0.28713324666023254, 0.4796307384967804, 0.33617427945137024, 0.18960979580879211, 0.18448372185230255, -0.32766881585121155, -0.23988129198551178, -0.13987892866134644, 0.14599119126796722, 0.052867159247398376, -0.15074843168258667, 0.1091265007853508, 0.021052053198218346, -0.16266103088855743, -0.0761600062251091, -0.013170218095183372, -0.11839112639427185, -0.08799035847187042, 0.24678483605384827, -0.042254865169525146, -0.0603145994246006, 0.1202736496925354, 0.05636410787701607, -0.12312090396881104, 0.3887266516685486, -0.011861900798976421, 0.23062413930892944, -0.23718143999576569, 0.04591016843914986, -0.1055983379483223, -0.10755317658185959, 0.04922781139612198, 0.014071152545511723, 0.28337445855140686, -0.4350685179233551, -0.2895486652851105, 0.1623045802116394, 0.23141953349113464, 0.2564556896686554, -0.028592564165592194, -0.15060406923294067, 0.16547544300556183, 0.22180140018463135, -0.31953516602516174, 0.024544063955545425, 0.3671758472919464, -0.0035073801409453154, 0.3218831717967987, 0.35307613015174866, 0.1187407523393631, 0.01955278404057026, -0.05087750777602196, 0.08901342749595642, 0.21651893854141235, -0.26599806547164917, 0.03685697913169861, 0.2631327509880066, -0.1103859469294548, -0.015080536715686321, 0.301581472158432, -0.1218026876449585, 0.3009926378726959, 0.23779338598251343, -0.03177618235349655, 0.42949390411376953, -0.03971800580620766, 0.3304131329059601, -0.006970396265387535, -0.21676748991012573, 0.1839848905801773, 0.4842495918273926, -0.11200051009654999, 0.38328132033348083, 0.014789903536438942, 0.41056424379348755, -0.2803669571876526, 0.014444817788898945, -0.17746317386627197, 0.47217613458633423, -0.14001250267028809, 0.09138774126768112, -0.03362596035003662, -0.09873799979686737, -0.28677278757095337, -0.0064014047384262085, 0.07856134325265884, 0.09015961736440659, 0.15062358975410461, 0.11592981219291687, -0.037642206996679306, -0.3303665518760681, -0.18787679076194763, 0.15899142622947693, 0.23829929530620575, -0.39914384484291077, 0.3074405789375305, 0.2775503993034363, -0.04233229532837868, -0.1595373898744583, 0.6101233959197998, 0.3431239426136017, 0.38488322496414185, -0.1388494074344635, -0.020331760868430138, 0.16356180608272552, -0.07778988778591156, -0.08909237384796143, 0.3411317765712738, 0.189756840467453, -0.07463888078927994, 0.36463627219200134, 0.1043185368180275, -0.27841460704803467, -0.04633704200387001, 0.09377675503492355, -0.24161630868911743, -0.13924571871757507, 0.29328253865242004, -0.0494256317615509, 0.21002809703350067, -0.22206217050552368, 0.03043293207883835, -0.6043110489845276, -0.05030505359172821, 0.19343557953834534, -0.08079171180725098, 0.2918081283569336, 0.03415675461292267, 0.10029321163892746, -0.19151315093040466, 0.49110648036003113, 0.06943687796592712, -0.07489405572414398, -0.30477797985076904, -0.22468258440494537, -0.5798494815826416, 0.14757342636585236, -0.1549483686685562, -0.05646674707531929, 0.009748997166752815, 0.28136521577835083, -0.20153431594371796, 0.049443330615758896, 0.07764045894145966, 0.3546505272388458, -0.04044222831726074, -0.15757256746292114, -0.3835545778274536, 0.016315491870045662, 0.005404050927609205, -0.22684897482395172, 0.07368845492601395, -0.4133264422416687, 0.24398702383041382, -0.20116817951202393, 0.03681535646319389, -0.12372995913028717, 0.05972903221845627, -0.0689731240272522, 0.47976425290107727, 0.012968509458005428, 0.5052638649940491, 0.2816343903541565, -0.23628197610378265, -0.3487406075000763, -0.16561105847358704, -0.14218777418136597, -0.29679253697395325, 0.15791837871074677, 0.3191111087799072, 0.5874747633934021, 0.01729501225054264, 0.05495743826031685, -0.3607901930809021, 0.3801415264606476, 0.023944193497300148, -0.18775157630443573, 0.024197714403271675, 0.3261171281337738, -0.24118934571743011, 0.26747220754623413, 0.2473870813846588, 0.38607344031333923, 0.1126280203461647, 0.14903557300567627, -0.24469798803329468, -0.3713933527469635, 0.5164570808410645, -0.18318620324134827, -0.22347164154052734, -0.01189622562378645, 0.12572607398033142, 0.026465745642781258, -0.12795689702033997, -0.4188547730445862, 0.05670102313160896, 0.358068585395813, -0.10179194808006287, -0.0891667902469635, 0.2000732123851776, 0.2182815968990326, -0.205601304769516, -0.019860897213220596, -0.09547439962625504, 0.39530301094055176, -0.4314526319503784, 0.2040593922138214, -0.07732629776000977 ]
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.14106929302215576, -0.05698738247156143, -0.008213234134018421, 0.20865675806999207, 0.07764953374862671, 0.09079599380493164, 0.1833023577928543, 0.5251756906509399, 0.09873175621032715, 0.15423211455345154, 0.01629800535738468, 0.07699685543775558, -0.3141203224658966, -0.04377453029155731, -0.03358948603272438, 0.03590166196227074, -0.18716785311698914, 0.25151240825653076, 0.044887762516736984, -0.022996826097369194, -0.2874319553375244, 0.28179046511650085, -0.20873937010765076, -0.03660072758793831, -0.4835280179977417, -0.29419684410095215, 0.014395969919860363, 0.3698371648788452, 0.03764790669083595, -0.30936455726623535, -0.05411530286073685, -0.13485759496688843, -0.18413884937763214, 0.10297109931707382, -0.00011303213250357658, 0.11360619217157364, 0.3911181688308716, -0.1433287262916565, -0.48673808574676514, 0.009375574998557568, -0.21043400466442108, -0.49062615633010864, 0.08809000998735428, -0.35468026995658875, -0.155234232544899, 0.025319691747426987, 0.09456432610750198, -0.21953842043876648, 0.4969276487827301, 0.39046865701675415, 0.24021919071674347, 0.5636105537414551, 0.06623179465532303, 0.16334468126296997, -0.08876928687095642, -0.18095538020133972, -0.14587077498435974, -0.004866044037044048, -0.317836195230484, -0.1510140299797058, -0.024242786690592766, 0.42894718050956726, -0.0926201120018959, 0.12534786760807037, -0.08723723143339157, 0.11025021225214005, 0.08894404768943787, -0.1658468097448349, 0.09388119727373123, 0.1360182762145996, -0.032907839864492416, -0.07590679079294205, -0.211391881108284, -0.43856140971183777, -0.016064023599028587, -0.39801764488220215, 0.2251274287700653, 0.2127169519662857, -0.17450276017189026, 0.06538070738315582, -0.3212837278842926, 0.03848983719944954, -0.02947147749364376, 0.203406423330307, 0.08193324506282806, 0.41119423508644104, -0.10029765218496323, 0.02581174299120903, 0.0555451437830925, -0.09011641144752502, 0.15675167739391327, -0.17692787945270538, 0.1543257087469101, 0.07783644646406174, -0.1457696259021759, -0.04527811333537102, 0.16446492075920105, -0.14841516315937042, 0.04303531348705292, -0.06754758954048157, 0.17891041934490204, -0.062105368822813034, 0.17447401583194733, 0.08687423914670944, 0.047065552324056625, 0.3125297427177429, -0.016350939869880676, 0.26863324642181396, 0.12459810078144073, 0.28520944714546204, 0.002519685309380293, 0.018103212118148804, 0.11720158159732819, -0.005318051669746637, 0.11884792149066925, 0.22079965472221375, 0.3734848201274872, -0.05925484374165535, -0.32763227820396423, 0.13372252881526947, -0.26271504163742065, -0.25902363657951355, -0.0015640703495591879, 0.25621798634529114, -0.05830163508653641, 0.3132661283016205, -0.06084303930401802, -0.08145171403884888, -0.38394269347190857, -0.1547316461801529, -0.3804470896720886, 0.1700798124074936, -0.18440084159374237, 0.08080919086933136, 0.2795964479446411, -0.07962559908628464, 0.45722147822380066, -0.2497541755437851, -0.014182128012180328, -0.14726348221302032, 0.20933303236961365, -0.039835598319768906, 0.025049889460206032, 0.283186137676239, -0.1309731900691986, 0.17060810327529907, 0.25904369354248047, 0.16906915605068207, -0.21274586021900177, -0.085997074842453, -0.004009055905044079, -0.60506272315979, 0.18873438239097595, 0.24872925877571106, 0.05936247855424881, -0.0686996653676033, 0.6144141554832458, 0.07587817311286926, 0.24875342845916748, 0.03504880145192146, -0.16209077835083008, -0.06983951479196548, -0.011320799589157104, -0.1684926450252533, 0.07564803957939148, 0.4380222260951996, -0.23252281546592712, -0.23690636456012726, -0.013540971092879772, -0.1419266015291214, 0.5154546499252319, 0.4340137839317322, -0.10532071441411972, 0.04393896460533142, -0.12654905021190643, 0.15382681787014008, 0.20037975907325745, -0.15453952550888062, -0.3955632448196411, 0.18983817100524902, -0.0884125679731369, 0.20390652120113373, 0.20705345273017883, 0.19677627086639404, -0.02944609895348549, 0.10163409262895584, 0.053914181888103485, 0.5395386219024658, -0.22908811271190643, 0.10552207380533218, -0.43444323539733887, -0.43464410305023193, 0.3582526743412018, 0.056458480656147, 0.22416985034942627, -0.04083786532282829, -0.06270580738782883, 0.4361119270324707, 0.21150997281074524, -0.11106299608945847, 0.037483878433704376, 0.033337485045194626, -0.15166370570659637, -0.114353246986866, 0.017192281782627106, -0.04317101463675499, -0.4885513186454773, 0.1375231295824051, -0.1571972817182541, 0.30051758885383606, -0.050177812576293945, -0.1014920100569725, -0.2627060115337372, -0.19473382830619812, -0.17500250041484833, -0.2838496267795563, 0.21785645186901093, 0.22742384672164917, 0.20971956849098206, 0.004435578361153603, -0.27842387557029724, 0.30221351981163025, -0.03140692785382271, 0.12140261381864548, -0.5230283737182617, 0.262704074382782, -0.22790728509426117, -0.18105582892894745, 0.26396381855010986, 0.42988693714141846, 0.2641763687133789, -0.1530769169330597, -0.28321805596351624, 0.2833620607852936, -0.08616305887699127, 0.23159672319889069, -0.14804480969905853, -0.15910135209560394, 0.11376608908176422, -0.08145548403263092, 0.16977736353874207, 0.4025973379611969, -0.034243177622556686, -0.10330142080783844, -0.11919419467449188, 0.4826926589012146, 0.04845830798149109, 0.0898778885602951, 0.14993354678153992, -0.11412212997674942, 0.07726927101612091, -0.13095764815807343, 0.11302806437015533, -0.5237565040588379, 0.3187468349933624, -0.169630765914917, 0.2132306843996048, -0.08782132714986801, -0.25000810623168945, 0.05303804948925972, 0.6815170049667358, -0.025957688689231873, 0.09751385450363159, 0.020760275423526764, -0.102620929479599, -0.20208106935024261, -0.1837860345840454, 0.1597258448600769, 0.33867135643959045, 0.24137771129608154, 0.18663829565048218, 0.24745789170265198, -0.17295855283737183, -0.28600138425827026, 0.2723778784275055, 0.09546840190887451, 0.25380417704582214, 0.3859494626522064, 0.006087843328714371, -0.0024018262047320604, -0.5314661860466003, -0.024831358343362808, 0.013506943359971046, 0.37419483065605164, -0.223636656999588, -0.2018275111913681, -0.4316602945327759, -0.4015902876853943, -0.1702876091003418, -0.2987871468067169, -0.18740783631801605, -0.5853306651115417, 0.08001507818698883, 0.030056793242692947, -0.12527459859848022, 0.1624237298965454, -0.1581035852432251, 0.23189221322536469, 0.2769707441329956, -0.016565585508942604, -0.192729651927948, -0.08131879568099976, -0.1340954452753067, 0.0754104033112526, 0.17562681436538696, 0.03801100328564644, 0.32826289534568787, -0.13235561549663544, -0.17954084277153015, -0.02463013492524624, -0.40103790163993835, 0.07767210900783539, 0.06736999750137329, 0.13974110782146454, 0.3047906160354614, 0.18000972270965576, 0.33122289180755615, -0.33533260226249695, 0.19725315272808075, -0.24187162518501282, -0.2770199179649353, -0.008124577812850475, 0.002452143467962742, 0.14319957792758942, -0.23823177814483643, -0.4810169041156769, -0.4326366186141968, -0.5125102400779724, 0.10095544159412384, 0.048846740275621414, 0.4066630005836487, 0.2704300582408905, -0.2863166332244873, 0.19683784246444702, -0.12101706117391586, 0.18222688138484955, -0.2584162950515747, -0.17760850489139557, 0.2502979338169098, -0.2715798318386078, -0.2704792022705078, -0.12659569084644318, -0.14869961142539978, 0.20489075779914856, -0.2855253517627716, -0.4239242672920227, -0.32950732111930847, -0.14588722586631775, -0.0527009516954422, 0.10720010101795197, -0.055841654539108276, 0.22967487573623657, -0.012112721800804138, -0.16541756689548492, -0.033511944115161896, -0.3873254656791687, 0.05341790243983269, 0.12507455050945282, 0.07020942866802216, -0.09277207404375076, 0.6258091330528259, 0.06226636841893196, 0.5375286340713501, 0.37189820408821106, 0.09344471246004105, 0.23146429657936096, 0.10950131714344025, 0.14843204617500305, -0.012238205410540104, -0.3427925109863281, 0.25061506032943726, 0.1518254578113556, 0.059251151978969574, 0.34880125522613525, -0.05165112763643265, -0.3857155740261078, -0.0800836831331253, -0.3046739995479584, -0.46589046716690063, -0.2806210219860077, 0.18112528324127197, 0.12481656670570374, 0.25791501998901367, 0.2710356116294861, 0.1946987509727478, -0.17675651609897614, -0.17008192837238312, -0.14580951631069183, 0.1727720946073532, 0.005987647455185652, -0.03669294714927673, -0.10839416831731796, 0.014189736917614937, -0.610968828201294, 0.26002898812294006, 0.006670109461992979, 0.6111482381820679, -0.1570562869310379, -0.0673668161034584, -0.01685398444533348, -0.286609947681427, 0.3602801561355591, -0.3092956244945526, -0.05434192717075348, 0.18288695812225342, -0.1095796450972557, -0.35649681091308594, -0.12057863175868988, -0.1527361422777176, 0.04632594808936119, 0.5042909383773804, 0.5133960247039795, -0.2715703547000885, -0.28228628635406494, 0.41734933853149414, 0.10568185150623322, -0.19254562258720398, -0.24053238332271576, -0.260219931602478, -0.23654687404632568, -0.358950674533844, -0.0029188997577875853, -0.35495832562446594, 0.28066760301589966, 0.03478279337286949, -0.04944433644413948, -0.03679438680410385, -0.2479299157857895, 0.17122255265712738, 0.023834319785237312, -0.007559268269687891, 0.20605340600013733, 0.1902966946363449, 0.25861799716949463, 0.32822105288505554, -0.277705579996109, 0.32119515538215637, -0.04369416460394859, 0.013515874743461609, -0.08669760078191757, 0.1257399469614029, 0.04572514444589615, 0.48612433671951294, 0.01708144135773182, -0.018917124718427658, 0.20161963999271393, 0.3254522979259491, -0.004443165380507708, -0.033122118562459946, 0.44969213008880615, -0.06196990981698036, -0.41116243600845337, -0.16489051282405853, 0.29971787333488464, 0.12318988889455795, 0.13616180419921875, -0.13000161945819855, -0.19739112257957458, -0.24372178316116333, 0.127602681517601, 0.11299007385969162, 0.7832137942314148, 0.2591177523136139, 0.06482328474521637, 0.356595903635025, -0.154997780919075, 0.6783720254898071, -0.21120613813400269, 0.2569594383239746, -0.3706093430519104, -0.3312230110168457, -0.03791837394237518, -0.11087696999311447, 0.31698164343833923, 0.10036704689264297, -0.17701196670532227, 0.4902186989784241, -0.1291068196296692, -0.09943298995494843, -0.06175405532121658, 0.4637353718280792, -0.2605728805065155, -0.14336402714252472, -0.4001682698726654, 0.10669736564159393, -0.1958625465631485, 0.35261785984039307, -0.10239114612340927, -0.1949198842048645, 0.2577715814113617, -0.259081095457077, -0.07498250901699066, 0.2773522436618805, -0.26846274733543396, 0.13984869420528412, 0.006161939352750778, 0.2401975691318512, -0.22105015814304352, -0.38273879885673523, 0.3137291669845581, -0.13551823794841766, -0.0385885052382946, -0.06919455528259277, -0.26215121150016785, -0.024181270971894264, -0.1012062057852745, 0.1060122549533844, 0.42243266105651855, -0.21872292459011078, -0.11455654352903366, 0.02030373178422451, -0.1885795295238495, -0.16305328905582428, -0.018978143110871315, -0.03548508882522583, 0.10398736596107483, -0.17091935873031616, -0.19709551334381104, 0.09542500227689743, -0.23104912042617798, -0.3154529631137848, 0.14617881178855896, -0.057743433862924576, -0.29068008065223694, 0.3077004551887512, -0.08585240691900253, -0.2809654176235199, -0.257965087890625, 0.24452179670333862, 0.16969113051891327, 0.05087956413626671, 0.49227476119995117, 0.02250281535089016, -0.28980472683906555, -0.27908292412757874, -0.03006446547806263, 0.026360122486948967, -0.3613365590572357, 0.19981473684310913, -0.08701389282941818, -0.01557586994022131, 0.2755272686481476, 0.2051900327205658, 0.19970686733722687, 0.2912750244140625, -0.23239260911941528, -0.5686837434768677, -0.14387236535549164, 0.06298476457595825, -0.005366578232496977, 0.28937870264053345, 0.0466337725520134, 0.5640018582344055, 0.018357789143919945, 0.36128318309783936, -0.35585910081863403, 0.037059471011161804, -0.25321394205093384, 0.1774703860282898, 0.16446834802627563, -0.28713324666023254, 0.4796307384967804, 0.33617427945137024, 0.18960979580879211, 0.18448372185230255, -0.32766881585121155, -0.23988129198551178, -0.13987892866134644, 0.14599119126796722, 0.052867159247398376, -0.15074843168258667, 0.1091265007853508, 0.021052053198218346, -0.16266103088855743, -0.0761600062251091, -0.013170218095183372, -0.11839112639427185, -0.08799035847187042, 0.24678483605384827, -0.042254865169525146, -0.0603145994246006, 0.1202736496925354, 0.05636410787701607, -0.12312090396881104, 0.3887266516685486, -0.011861900798976421, 0.23062413930892944, -0.23718143999576569, 0.04591016843914986, -0.1055983379483223, -0.10755317658185959, 0.04922781139612198, 0.014071152545511723, 0.28337445855140686, -0.4350685179233551, -0.2895486652851105, 0.1623045802116394, 0.23141953349113464, 0.2564556896686554, -0.028592564165592194, -0.15060406923294067, 0.16547544300556183, 0.22180140018463135, -0.31953516602516174, 0.024544063955545425, 0.3671758472919464, -0.0035073801409453154, 0.3218831717967987, 0.35307613015174866, 0.1187407523393631, 0.01955278404057026, -0.05087750777602196, 0.08901342749595642, 0.21651893854141235, -0.26599806547164917, 0.03685697913169861, 0.2631327509880066, -0.1103859469294548, -0.015080536715686321, 0.301581472158432, -0.1218026876449585, 0.3009926378726959, 0.23779338598251343, -0.03177618235349655, 0.42949390411376953, -0.03971800580620766, 0.3304131329059601, -0.006970396265387535, -0.21676748991012573, 0.1839848905801773, 0.4842495918273926, -0.11200051009654999, 0.38328132033348083, 0.014789903536438942, 0.41056424379348755, -0.2803669571876526, 0.014444817788898945, -0.17746317386627197, 0.47217613458633423, -0.14001250267028809, 0.09138774126768112, -0.03362596035003662, -0.09873799979686737, -0.28677278757095337, -0.0064014047384262085, 0.07856134325265884, 0.09015961736440659, 0.15062358975410461, 0.11592981219291687, -0.037642206996679306, -0.3303665518760681, -0.18787679076194763, 0.15899142622947693, 0.23829929530620575, -0.39914384484291077, 0.3074405789375305, 0.2775503993034363, -0.04233229532837868, -0.1595373898744583, 0.6101233959197998, 0.3431239426136017, 0.38488322496414185, -0.1388494074344635, -0.020331760868430138, 0.16356180608272552, -0.07778988778591156, -0.08909237384796143, 0.3411317765712738, 0.189756840467453, -0.07463888078927994, 0.36463627219200134, 0.1043185368180275, -0.27841460704803467, -0.04633704200387001, 0.09377675503492355, -0.24161630868911743, -0.13924571871757507, 0.29328253865242004, -0.0494256317615509, 0.21002809703350067, -0.22206217050552368, 0.03043293207883835, -0.6043110489845276, -0.05030505359172821, 0.19343557953834534, -0.08079171180725098, 0.2918081283569336, 0.03415675461292267, 0.10029321163892746, -0.19151315093040466, 0.49110648036003113, 0.06943687796592712, -0.07489405572414398, -0.30477797985076904, -0.22468258440494537, -0.5798494815826416, 0.14757342636585236, -0.1549483686685562, -0.05646674707531929, 0.009748997166752815, 0.28136521577835083, -0.20153431594371796, 0.049443330615758896, 0.07764045894145966, 0.3546505272388458, -0.04044222831726074, -0.15757256746292114, -0.3835545778274536, 0.016315491870045662, 0.005404050927609205, -0.22684897482395172, 0.07368845492601395, -0.4133264422416687, 0.24398702383041382, -0.20116817951202393, 0.03681535646319389, -0.12372995913028717, 0.05972903221845627, -0.0689731240272522, 0.47976425290107727, 0.012968509458005428, 0.5052638649940491, 0.2816343903541565, -0.23628197610378265, -0.3487406075000763, -0.16561105847358704, -0.14218777418136597, -0.29679253697395325, 0.15791837871074677, 0.3191111087799072, 0.5874747633934021, 0.01729501225054264, 0.05495743826031685, -0.3607901930809021, 0.3801415264606476, 0.023944193497300148, -0.18775157630443573, 0.024197714403271675, 0.3261171281337738, -0.24118934571743011, 0.26747220754623413, 0.2473870813846588, 0.38607344031333923, 0.1126280203461647, 0.14903557300567627, -0.24469798803329468, -0.3713933527469635, 0.5164570808410645, -0.18318620324134827, -0.22347164154052734, -0.01189622562378645, 0.12572607398033142, 0.026465745642781258, -0.12795689702033997, -0.4188547730445862, 0.05670102313160896, 0.358068585395813, -0.10179194808006287, -0.0891667902469635, 0.2000732123851776, 0.2182815968990326, -0.205601304769516, -0.019860897213220596, -0.09547439962625504, 0.39530301094055176, -0.4314526319503784, 0.2040593922138214, -0.07732629776000977 ]
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.14106929302215576, -0.05698738247156143, -0.008213234134018421, 0.20865675806999207, 0.07764953374862671, 0.09079599380493164, 0.1833023577928543, 0.5251756906509399, 0.09873175621032715, 0.15423211455345154, 0.01629800535738468, 0.07699685543775558, -0.3141203224658966, -0.04377453029155731, -0.03358948603272438, 0.03590166196227074, -0.18716785311698914, 0.25151240825653076, 0.044887762516736984, -0.022996826097369194, -0.2874319553375244, 0.28179046511650085, -0.20873937010765076, -0.03660072758793831, -0.4835280179977417, -0.29419684410095215, 0.014395969919860363, 0.3698371648788452, 0.03764790669083595, -0.30936455726623535, -0.05411530286073685, -0.13485759496688843, -0.18413884937763214, 0.10297109931707382, -0.00011303213250357658, 0.11360619217157364, 0.3911181688308716, -0.1433287262916565, -0.48673808574676514, 0.009375574998557568, -0.21043400466442108, -0.49062615633010864, 0.08809000998735428, -0.35468026995658875, -0.155234232544899, 0.025319691747426987, 0.09456432610750198, -0.21953842043876648, 0.4969276487827301, 0.39046865701675415, 0.24021919071674347, 0.5636105537414551, 0.06623179465532303, 0.16334468126296997, -0.08876928687095642, -0.18095538020133972, -0.14587077498435974, -0.004866044037044048, -0.317836195230484, -0.1510140299797058, -0.024242786690592766, 0.42894718050956726, -0.0926201120018959, 0.12534786760807037, -0.08723723143339157, 0.11025021225214005, 0.08894404768943787, -0.1658468097448349, 0.09388119727373123, 0.1360182762145996, -0.032907839864492416, -0.07590679079294205, -0.211391881108284, -0.43856140971183777, -0.016064023599028587, -0.39801764488220215, 0.2251274287700653, 0.2127169519662857, -0.17450276017189026, 0.06538070738315582, -0.3212837278842926, 0.03848983719944954, -0.02947147749364376, 0.203406423330307, 0.08193324506282806, 0.41119423508644104, -0.10029765218496323, 0.02581174299120903, 0.0555451437830925, -0.09011641144752502, 0.15675167739391327, -0.17692787945270538, 0.1543257087469101, 0.07783644646406174, -0.1457696259021759, -0.04527811333537102, 0.16446492075920105, -0.14841516315937042, 0.04303531348705292, -0.06754758954048157, 0.17891041934490204, -0.062105368822813034, 0.17447401583194733, 0.08687423914670944, 0.047065552324056625, 0.3125297427177429, -0.016350939869880676, 0.26863324642181396, 0.12459810078144073, 0.28520944714546204, 0.002519685309380293, 0.018103212118148804, 0.11720158159732819, -0.005318051669746637, 0.11884792149066925, 0.22079965472221375, 0.3734848201274872, -0.05925484374165535, -0.32763227820396423, 0.13372252881526947, -0.26271504163742065, -0.25902363657951355, -0.0015640703495591879, 0.25621798634529114, -0.05830163508653641, 0.3132661283016205, -0.06084303930401802, -0.08145171403884888, -0.38394269347190857, -0.1547316461801529, -0.3804470896720886, 0.1700798124074936, -0.18440084159374237, 0.08080919086933136, 0.2795964479446411, -0.07962559908628464, 0.45722147822380066, -0.2497541755437851, -0.014182128012180328, -0.14726348221302032, 0.20933303236961365, -0.039835598319768906, 0.025049889460206032, 0.283186137676239, -0.1309731900691986, 0.17060810327529907, 0.25904369354248047, 0.16906915605068207, -0.21274586021900177, -0.085997074842453, -0.004009055905044079, -0.60506272315979, 0.18873438239097595, 0.24872925877571106, 0.05936247855424881, -0.0686996653676033, 0.6144141554832458, 0.07587817311286926, 0.24875342845916748, 0.03504880145192146, -0.16209077835083008, -0.06983951479196548, -0.011320799589157104, -0.1684926450252533, 0.07564803957939148, 0.4380222260951996, -0.23252281546592712, -0.23690636456012726, -0.013540971092879772, -0.1419266015291214, 0.5154546499252319, 0.4340137839317322, -0.10532071441411972, 0.04393896460533142, -0.12654905021190643, 0.15382681787014008, 0.20037975907325745, -0.15453952550888062, -0.3955632448196411, 0.18983817100524902, -0.0884125679731369, 0.20390652120113373, 0.20705345273017883, 0.19677627086639404, -0.02944609895348549, 0.10163409262895584, 0.053914181888103485, 0.5395386219024658, -0.22908811271190643, 0.10552207380533218, -0.43444323539733887, -0.43464410305023193, 0.3582526743412018, 0.056458480656147, 0.22416985034942627, -0.04083786532282829, -0.06270580738782883, 0.4361119270324707, 0.21150997281074524, -0.11106299608945847, 0.037483878433704376, 0.033337485045194626, -0.15166370570659637, -0.114353246986866, 0.017192281782627106, -0.04317101463675499, -0.4885513186454773, 0.1375231295824051, -0.1571972817182541, 0.30051758885383606, -0.050177812576293945, -0.1014920100569725, -0.2627060115337372, -0.19473382830619812, -0.17500250041484833, -0.2838496267795563, 0.21785645186901093, 0.22742384672164917, 0.20971956849098206, 0.004435578361153603, -0.27842387557029724, 0.30221351981163025, -0.03140692785382271, 0.12140261381864548, -0.5230283737182617, 0.262704074382782, -0.22790728509426117, -0.18105582892894745, 0.26396381855010986, 0.42988693714141846, 0.2641763687133789, -0.1530769169330597, -0.28321805596351624, 0.2833620607852936, -0.08616305887699127, 0.23159672319889069, -0.14804480969905853, -0.15910135209560394, 0.11376608908176422, -0.08145548403263092, 0.16977736353874207, 0.4025973379611969, -0.034243177622556686, -0.10330142080783844, -0.11919419467449188, 0.4826926589012146, 0.04845830798149109, 0.0898778885602951, 0.14993354678153992, -0.11412212997674942, 0.07726927101612091, -0.13095764815807343, 0.11302806437015533, -0.5237565040588379, 0.3187468349933624, -0.169630765914917, 0.2132306843996048, -0.08782132714986801, -0.25000810623168945, 0.05303804948925972, 0.6815170049667358, -0.025957688689231873, 0.09751385450363159, 0.020760275423526764, -0.102620929479599, -0.20208106935024261, -0.1837860345840454, 0.1597258448600769, 0.33867135643959045, 0.24137771129608154, 0.18663829565048218, 0.24745789170265198, -0.17295855283737183, -0.28600138425827026, 0.2723778784275055, 0.09546840190887451, 0.25380417704582214, 0.3859494626522064, 0.006087843328714371, -0.0024018262047320604, -0.5314661860466003, -0.024831358343362808, 0.013506943359971046, 0.37419483065605164, -0.223636656999588, -0.2018275111913681, -0.4316602945327759, -0.4015902876853943, -0.1702876091003418, -0.2987871468067169, -0.18740783631801605, -0.5853306651115417, 0.08001507818698883, 0.030056793242692947, -0.12527459859848022, 0.1624237298965454, -0.1581035852432251, 0.23189221322536469, 0.2769707441329956, -0.016565585508942604, -0.192729651927948, -0.08131879568099976, -0.1340954452753067, 0.0754104033112526, 0.17562681436538696, 0.03801100328564644, 0.32826289534568787, -0.13235561549663544, -0.17954084277153015, -0.02463013492524624, -0.40103790163993835, 0.07767210900783539, 0.06736999750137329, 0.13974110782146454, 0.3047906160354614, 0.18000972270965576, 0.33122289180755615, -0.33533260226249695, 0.19725315272808075, -0.24187162518501282, -0.2770199179649353, -0.008124577812850475, 0.002452143467962742, 0.14319957792758942, -0.23823177814483643, -0.4810169041156769, -0.4326366186141968, -0.5125102400779724, 0.10095544159412384, 0.048846740275621414, 0.4066630005836487, 0.2704300582408905, -0.2863166332244873, 0.19683784246444702, -0.12101706117391586, 0.18222688138484955, -0.2584162950515747, -0.17760850489139557, 0.2502979338169098, -0.2715798318386078, -0.2704792022705078, -0.12659569084644318, -0.14869961142539978, 0.20489075779914856, -0.2855253517627716, -0.4239242672920227, -0.32950732111930847, -0.14588722586631775, -0.0527009516954422, 0.10720010101795197, -0.055841654539108276, 0.22967487573623657, -0.012112721800804138, -0.16541756689548492, -0.033511944115161896, -0.3873254656791687, 0.05341790243983269, 0.12507455050945282, 0.07020942866802216, -0.09277207404375076, 0.6258091330528259, 0.06226636841893196, 0.5375286340713501, 0.37189820408821106, 0.09344471246004105, 0.23146429657936096, 0.10950131714344025, 0.14843204617500305, -0.012238205410540104, -0.3427925109863281, 0.25061506032943726, 0.1518254578113556, 0.059251151978969574, 0.34880125522613525, -0.05165112763643265, -0.3857155740261078, -0.0800836831331253, -0.3046739995479584, -0.46589046716690063, -0.2806210219860077, 0.18112528324127197, 0.12481656670570374, 0.25791501998901367, 0.2710356116294861, 0.1946987509727478, -0.17675651609897614, -0.17008192837238312, -0.14580951631069183, 0.1727720946073532, 0.005987647455185652, -0.03669294714927673, -0.10839416831731796, 0.014189736917614937, -0.610968828201294, 0.26002898812294006, 0.006670109461992979, 0.6111482381820679, -0.1570562869310379, -0.0673668161034584, -0.01685398444533348, -0.286609947681427, 0.3602801561355591, -0.3092956244945526, -0.05434192717075348, 0.18288695812225342, -0.1095796450972557, -0.35649681091308594, -0.12057863175868988, -0.1527361422777176, 0.04632594808936119, 0.5042909383773804, 0.5133960247039795, -0.2715703547000885, -0.28228628635406494, 0.41734933853149414, 0.10568185150623322, -0.19254562258720398, -0.24053238332271576, -0.260219931602478, -0.23654687404632568, -0.358950674533844, -0.0029188997577875853, -0.35495832562446594, 0.28066760301589966, 0.03478279337286949, -0.04944433644413948, -0.03679438680410385, -0.2479299157857895, 0.17122255265712738, 0.023834319785237312, -0.007559268269687891, 0.20605340600013733, 0.1902966946363449, 0.25861799716949463, 0.32822105288505554, -0.277705579996109, 0.32119515538215637, -0.04369416460394859, 0.013515874743461609, -0.08669760078191757, 0.1257399469614029, 0.04572514444589615, 0.48612433671951294, 0.01708144135773182, -0.018917124718427658, 0.20161963999271393, 0.3254522979259491, -0.004443165380507708, -0.033122118562459946, 0.44969213008880615, -0.06196990981698036, -0.41116243600845337, -0.16489051282405853, 0.29971787333488464, 0.12318988889455795, 0.13616180419921875, -0.13000161945819855, -0.19739112257957458, -0.24372178316116333, 0.127602681517601, 0.11299007385969162, 0.7832137942314148, 0.2591177523136139, 0.06482328474521637, 0.356595903635025, -0.154997780919075, 0.6783720254898071, -0.21120613813400269, 0.2569594383239746, -0.3706093430519104, -0.3312230110168457, -0.03791837394237518, -0.11087696999311447, 0.31698164343833923, 0.10036704689264297, -0.17701196670532227, 0.4902186989784241, -0.1291068196296692, -0.09943298995494843, -0.06175405532121658, 0.4637353718280792, -0.2605728805065155, -0.14336402714252472, -0.4001682698726654, 0.10669736564159393, -0.1958625465631485, 0.35261785984039307, -0.10239114612340927, -0.1949198842048645, 0.2577715814113617, -0.259081095457077, -0.07498250901699066, 0.2773522436618805, -0.26846274733543396, 0.13984869420528412, 0.006161939352750778, 0.2401975691318512, -0.22105015814304352, -0.38273879885673523, 0.3137291669845581, -0.13551823794841766, -0.0385885052382946, -0.06919455528259277, -0.26215121150016785, -0.024181270971894264, -0.1012062057852745, 0.1060122549533844, 0.42243266105651855, -0.21872292459011078, -0.11455654352903366, 0.02030373178422451, -0.1885795295238495, -0.16305328905582428, -0.018978143110871315, -0.03548508882522583, 0.10398736596107483, -0.17091935873031616, -0.19709551334381104, 0.09542500227689743, -0.23104912042617798, -0.3154529631137848, 0.14617881178855896, -0.057743433862924576, -0.29068008065223694, 0.3077004551887512, -0.08585240691900253, -0.2809654176235199, -0.257965087890625, 0.24452179670333862, 0.16969113051891327, 0.05087956413626671, 0.49227476119995117, 0.02250281535089016, -0.28980472683906555, -0.27908292412757874, -0.03006446547806263, 0.026360122486948967, -0.3613365590572357, 0.19981473684310913, -0.08701389282941818, -0.01557586994022131, 0.2755272686481476, 0.2051900327205658, 0.19970686733722687, 0.2912750244140625, -0.23239260911941528, -0.5686837434768677, -0.14387236535549164, 0.06298476457595825, -0.005366578232496977, 0.28937870264053345, 0.0466337725520134, 0.5640018582344055, 0.018357789143919945, 0.36128318309783936, -0.35585910081863403, 0.037059471011161804, -0.25321394205093384, 0.1774703860282898, 0.16446834802627563, -0.28713324666023254, 0.4796307384967804, 0.33617427945137024, 0.18960979580879211, 0.18448372185230255, -0.32766881585121155, -0.23988129198551178, -0.13987892866134644, 0.14599119126796722, 0.052867159247398376, -0.15074843168258667, 0.1091265007853508, 0.021052053198218346, -0.16266103088855743, -0.0761600062251091, -0.013170218095183372, -0.11839112639427185, -0.08799035847187042, 0.24678483605384827, -0.042254865169525146, -0.0603145994246006, 0.1202736496925354, 0.05636410787701607, -0.12312090396881104, 0.3887266516685486, -0.011861900798976421, 0.23062413930892944, -0.23718143999576569, 0.04591016843914986, -0.1055983379483223, -0.10755317658185959, 0.04922781139612198, 0.014071152545511723, 0.28337445855140686, -0.4350685179233551, -0.2895486652851105, 0.1623045802116394, 0.23141953349113464, 0.2564556896686554, -0.028592564165592194, -0.15060406923294067, 0.16547544300556183, 0.22180140018463135, -0.31953516602516174, 0.024544063955545425, 0.3671758472919464, -0.0035073801409453154, 0.3218831717967987, 0.35307613015174866, 0.1187407523393631, 0.01955278404057026, -0.05087750777602196, 0.08901342749595642, 0.21651893854141235, -0.26599806547164917, 0.03685697913169861, 0.2631327509880066, -0.1103859469294548, -0.015080536715686321, 0.301581472158432, -0.1218026876449585, 0.3009926378726959, 0.23779338598251343, -0.03177618235349655, 0.42949390411376953, -0.03971800580620766, 0.3304131329059601, -0.006970396265387535, -0.21676748991012573, 0.1839848905801773, 0.4842495918273926, -0.11200051009654999, 0.38328132033348083, 0.014789903536438942, 0.41056424379348755, -0.2803669571876526, 0.014444817788898945, -0.17746317386627197, 0.47217613458633423, -0.14001250267028809, 0.09138774126768112, -0.03362596035003662, -0.09873799979686737, -0.28677278757095337, -0.0064014047384262085, 0.07856134325265884, 0.09015961736440659, 0.15062358975410461, 0.11592981219291687, -0.037642206996679306, -0.3303665518760681, -0.18787679076194763, 0.15899142622947693, 0.23829929530620575, -0.39914384484291077, 0.3074405789375305, 0.2775503993034363, -0.04233229532837868, -0.1595373898744583, 0.6101233959197998, 0.3431239426136017, 0.38488322496414185, -0.1388494074344635, -0.020331760868430138, 0.16356180608272552, -0.07778988778591156, -0.08909237384796143, 0.3411317765712738, 0.189756840467453, -0.07463888078927994, 0.36463627219200134, 0.1043185368180275, -0.27841460704803467, -0.04633704200387001, 0.09377675503492355, -0.24161630868911743, -0.13924571871757507, 0.29328253865242004, -0.0494256317615509, 0.21002809703350067, -0.22206217050552368, 0.03043293207883835, -0.6043110489845276, -0.05030505359172821, 0.19343557953834534, -0.08079171180725098, 0.2918081283569336, 0.03415675461292267, 0.10029321163892746, -0.19151315093040466, 0.49110648036003113, 0.06943687796592712, -0.07489405572414398, -0.30477797985076904, -0.22468258440494537, -0.5798494815826416, 0.14757342636585236, -0.1549483686685562, -0.05646674707531929, 0.009748997166752815, 0.28136521577835083, -0.20153431594371796, 0.049443330615758896, 0.07764045894145966, 0.3546505272388458, -0.04044222831726074, -0.15757256746292114, -0.3835545778274536, 0.016315491870045662, 0.005404050927609205, -0.22684897482395172, 0.07368845492601395, -0.4133264422416687, 0.24398702383041382, -0.20116817951202393, 0.03681535646319389, -0.12372995913028717, 0.05972903221845627, -0.0689731240272522, 0.47976425290107727, 0.012968509458005428, 0.5052638649940491, 0.2816343903541565, -0.23628197610378265, -0.3487406075000763, -0.16561105847358704, -0.14218777418136597, -0.29679253697395325, 0.15791837871074677, 0.3191111087799072, 0.5874747633934021, 0.01729501225054264, 0.05495743826031685, -0.3607901930809021, 0.3801415264606476, 0.023944193497300148, -0.18775157630443573, 0.024197714403271675, 0.3261171281337738, -0.24118934571743011, 0.26747220754623413, 0.2473870813846588, 0.38607344031333923, 0.1126280203461647, 0.14903557300567627, -0.24469798803329468, -0.3713933527469635, 0.5164570808410645, -0.18318620324134827, -0.22347164154052734, -0.01189622562378645, 0.12572607398033142, 0.026465745642781258, -0.12795689702033997, -0.4188547730445862, 0.05670102313160896, 0.358068585395813, -0.10179194808006287, -0.0891667902469635, 0.2000732123851776, 0.2182815968990326, -0.205601304769516, -0.019860897213220596, -0.09547439962625504, 0.39530301094055176, -0.4314526319503784, 0.2040593922138214, -0.07732629776000977 ]
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.03299213573336601, 0.0771607905626297, -0.02503036893904209, 0.027964532375335693, 0.08898353576660156, 0.15139466524124146, 0.36469754576683044, 0.06515336036682129, 0.7094059586524963, -0.09789599478244781, 0.09096783399581909, -0.005119395907968283, 0.02144598215818405, -0.3159705400466919, -0.2095370590686798, 0.2686363458633423, 0.18638361990451813, 0.06676553934812546, 0.0055688475258648396, 0.004702028352767229, -0.0693235844373703, 0.3521537482738495, -0.16332940757274628, -0.2751580476760864, -0.7754427194595337, 0.12064455449581146, 0.03655414655804634, 0.04316839575767517, -0.27846837043762207, 0.002424626611173153, 0.4160511791706085, 0.528410017490387, -0.08161268383264542, 0.49658846855163574, -0.00012268550926819444, -0.1948300153017044, 0.20045801997184753, -0.03611946105957031, -0.1746516227722168, -0.274199903011322, -0.2164895087480545, -0.32658740878105164, 0.10970591753721237, -0.11288762092590332, 0.1944539099931717, -0.22415728867053986, 0.09198768436908722, -0.4995850920677185, 0.33371731638908386, -0.04107329994440079, 0.06807030737400055, 0.2360709309577942, 0.254280686378479, -0.02694837749004364, 0.3872795104980469, -0.22969843447208405, -0.22159957885742188, 0.5681563019752502, 0.45670589804649353, -0.21176832914352417, -0.14096702635288239, -0.03699588403105736, -0.01297122985124588, -0.06793307512998581, 0.5948628187179565, -0.19769695401191711, 0.3488733768463135, -0.26785072684288025, -0.10128273814916611, 0.3191521465778351, 0.6145643591880798, -0.04410197213292122, -0.5926795601844788, -0.24713468551635742, 0.3272883892059326, 0.14552944898605347, 0.5233203172683716, 0.06663991510868073, -0.0742339938879013, 0.3606705963611603, 0.052274417132139206, -0.15908266603946686, 0.045744601637125015, 0.022409673780202866, -0.11978192627429962, 0.22163239121437073, 0.1453603357076645, 0.008485364727675915, 0.17088891565799713, -0.08060657232999802, 0.3088316321372986, -0.19677072763442993, 0.0066909571178257465, 0.09875979274511337, -0.45496562123298645, 0.13602443039417267, 0.02131238579750061, 0.10143181681632996, -0.1403491497039795, -0.22208304703235626, -0.4776564836502075, 0.18745917081832886, 0.050925273448228836, 0.3599930703639984, 0.11202726513147354, 0.16943573951721191, 0.05244293063879013, 0.08516690880060196, 0.2234935313463211, -0.03801361843943596, -0.27116042375564575, 0.06752515584230423, -0.05403401702642441, -0.10942733287811279, 0.10894568264484406, -0.0756203830242157, 0.026497121900320053, -0.3769022524356842, 0.17104598879814148, 0.16992993652820587, 0.044321510940790176, 0.38012951612472534, 0.15774832665920258, 0.03164582699537277, 0.11082109063863754, 0.4331046938896179, 0.19749745726585388, 0.004986373241990805, -0.19655151665210724, 0.34372398257255554, -0.03236157074570656, -0.09846454113721848, 0.06904947012662888, 0.0930996760725975, 0.032440878450870514, 0.27631714940071106, 0.17855258285999298, 0.15656650066375732, 0.3272792398929596, 0.1014769971370697, 0.23521067202091217, -0.15812695026397705, -0.12768293917179108, 0.39319396018981934, -0.13779741525650024, 0.07544631510972977, 0.02432013489305973, -0.03101924993097782, -0.02767104282975197, 0.036791156977415085, -0.1925075203180313, 0.06914042681455612, -0.09969985485076904, 0.026319332420825958, -0.3808281719684601, 0.11001806706190109, 0.1620585173368454, -0.246406689286232, -0.10278822481632233, -0.425474613904953, 0.06687714159488678, -0.4721824526786804, -0.06095738336443901, -0.0015063830651342869, -0.05177901312708855, 0.3292970657348633, -0.27784422039985657, -0.054649900645017624, 0.259072482585907, -0.03806345909833908, -0.12230752408504486, 0.2285180538892746, -0.08114493638277054, 0.10599428415298462, -0.20780450105667114, 0.09918582439422607, -0.026137933135032654, -0.4818361699581146, -0.7829110026359558, 0.24228535592556, -0.2895568013191223, 0.2557772099971771, 0.16292887926101685, 0.37927666306495667, 0.10211663693189621, -0.22743146121501923, 0.09922507405281067, 0.3591865003108978, 0.12148461490869522, -0.21709024906158447, -0.06384547054767609, -0.28457605838775635, -0.20173153281211853, 0.06886087357997894, 0.011160444468259811, 0.22234879434108734, 0.01805952377617359, 0.6689192056655884, 0.21162916719913483, 0.005539881531149149, 0.005057698581367731, 0.544151782989502, 0.6210241913795471, 0.08369971811771393, 0.008120507933199406, -0.1322743445634842, -0.6575934886932373, 0.5051038861274719, -0.44281166791915894, -0.07979801297187805, -0.2008098065853119, -0.07274599373340607, 0.11742837727069855, -0.012200257740914822, -0.06910966336727142, 0.147226482629776, 0.05743497982621193, -0.0790046751499176, 0.07553092390298843, 0.17507155239582062, 0.0899825319647789, 0.3439258933067322, 0.0125082703307271, -0.02000228874385357, -0.05906930938363075, -0.08959805220365524, 0.1630968302488327, -0.18677014112472534, 0.05386169254779816, -0.06380344182252884, 0.10636783391237259, -0.2141561061143875, -0.16059759259223938, 0.2369827777147293, 0.34733888506889343, 0.29536861181259155, -0.27419590950012207, 0.3801436126232147, 0.041826553642749786, 0.48045623302459717, -0.1965428739786148, -0.0898997038602829, 0.10891928523778915, -0.23001985251903534, 0.03612474724650383, 0.0947793498635292, -0.21915219724178314, 0.09280410408973694, -0.20778794586658478, 0.05616088956594467, 0.09117802232503891, 0.045352913439273834, -0.16885636746883392, -0.026935331523418427, 0.28068405389785767, -0.00915839709341526, 0.2706623077392578, -0.10584121197462082, 0.6271886825561523, 0.06709063053131104, 0.3668432831764221, 0.14960482716560364, 0.05164272338151932, 0.04940010607242584, 0.0035036818590015173, -0.11433606594800949, 0.01667580008506775, 0.37751856446266174, 0.49882933497428894, 0.10172685980796814, 0.2889339029788971, -0.21647107601165771, 0.21172332763671875, -0.29041022062301636, 0.0543171651661396, -0.12548483908176422, -0.2110746204853058, 0.3450729250907898, 0.13419121503829956, -0.106829933822155, 0.131516695022583, -0.28686580061912537, 0.12568597495555878, 0.02057494781911373, 0.12689481675624847, 0.11325718462467194, -0.3515271544456482, 0.5667667388916016, 0.20868350565433502, 0.19332365691661835, -0.25343209505081177, -0.4644888937473297, 0.10596377402544022, 0.7339766025543213, 0.15229636430740356, 0.06924523413181305, -0.4219464659690857, -0.049863170832395554, 0.039034511893987656, -0.3337163031101227, -0.03995225951075554, -0.3362484872341156, -0.0026224437169730663, -0.11623994261026382, 0.5531215071678162, 0.03840584680438042, 0.1448247730731964, 0.10034312307834625, -0.3246203362941742, -0.39312782883644104, -0.18387162685394287, 0.14991259574890137, -0.09260988235473633, 0.4356096684932709, 0.05848885700106621, 0.1634124517440796, -0.10186386108398438, 0.03856430947780609, -0.019283417612314224, -0.38862061500549316, -0.02944253943860531, -0.09757911413908005, -0.03031044825911522, -0.10974500328302383, -0.2369118332862854, 0.17184016108512878, -0.1660529524087906, -0.3670012950897217, 0.3042770326137543, -0.3411255180835724, -0.21069841086864471, 0.2431463748216629, 0.018585778772830963, 0.2877356708049774, -0.0033966372720897198, -0.08471483737230301, 0.01224635448306799, -0.45914071798324585, 0.21372687816619873, 0.1240147203207016, -0.4351312816143036, -0.13264763355255127, 0.18630212545394897, -0.4067225754261017, 0.26422014832496643, -0.42662692070007324, -0.2256040871143341, -0.3255859613418579, 0.2897675037384033, -0.0849464163184166, -0.0755457654595375, 0.44516196846961975, -0.2783600091934204, 0.04962921142578125, -0.41871196031570435, 0.32783621549606323, 0.187729611992836, 0.033366911113262177, -0.020650673657655716, 0.06462647020816803, -0.2048720270395279, 0.13770794868469238, 0.5131196975708008, -0.07067115604877472, 0.012360461056232452, 0.14156188070774078, 0.30565589666366577, 0.4387529790401459, -0.32856518030166626, -0.16825373470783234, -0.14188174903392792, -0.08811533451080322, -0.14641235768795013, -0.02826109156012535, -0.15222792327404022, -0.06310755014419556, -0.1003582701086998, -0.05611513555049896, -0.06045098602771759, -0.30053770542144775, 0.03568778187036514, 0.1938849687576294, 0.17030228674411774, 0.23789770901203156, -0.010171301662921906, -0.08169758319854736, -0.15315011143684387, 0.12533150613307953, 0.2319326400756836, 0.4605024456977844, 0.04184529930353165, -0.08955632150173187, 0.25071772933006287, -0.1388719081878662, 0.1664327085018158, 0.058135032653808594, 0.3817955255508423, -0.06926040351390839, -0.0027474197559058666, -0.02567560225725174, -0.3396187126636505, 0.31496375799179077, 0.022852402180433273, 0.14093658328056335, 0.20827268064022064, 0.14027167856693268, -0.22882911562919617, -0.17936933040618896, -0.19240620732307434, 0.27976083755493164, 0.41900575160980225, 0.19582553207874298, -0.16573801636695862, -0.16525600850582123, -0.6652337312698364, 0.37638798356056213, -0.06419496238231659, -0.5701954960823059, -0.1203794926404953, 0.29261624813079834, -0.29467347264289856, -0.00751420296728611, -0.045376770198345184, 0.012191103771328926, 0.08915312588214874, 0.123836949467659, -0.25262486934661865, -0.12977150082588196, -0.14098376035690308, -0.13350889086723328, 0.02481423132121563, -0.1612219363451004, 0.24714809656143188, 0.05666732043027878, -0.2681397497653961, 0.1358756273984909, 0.19648028910160065, 0.19464914500713348, 0.1310194581747055, 0.30676907300949097, -0.2398165613412857, -0.24091170728206635, 0.4729892611503601, -0.03408556431531906, 0.12187014520168304, 0.03185294568538666, -0.05422703176736832, 0.03422974795103073, 0.010943533852696419, 0.1316772997379303, -0.026707611978054047, 0.44266197085380554, 0.06811591982841492, 0.02039170451462269, 0.15079933404922485, -0.19001910090446472, 0.43262767791748047, 0.38560187816619873, -0.03378920629620552, 0.024809351190924644, -0.040720753371715546, 0.8245958089828491, 0.09215003997087479, 0.14429430663585663, -0.03625363111495972, -0.015559284016489983, 0.275234192609787, -0.4026060104370117, 0.0966879203915596, -0.11022086441516876, -0.4013603627681732, -0.023498250171542168, -0.29421380162239075, 0.3266856372356415, -0.1835654377937317, 0.04535437747836113, 0.14674246311187744, -0.19921144843101501, -0.10962530970573425, -0.08550447970628738, 0.3566528856754303, -0.42578768730163574, -0.3449667692184448, -0.10932702571153641, 0.15333391726016998, 0.20022018253803253, 0.13918618857860565, -0.08245909214019775, -0.11810740828514099, -0.24369508028030396, -0.05484022945165634, -0.2625562250614166, 0.0846153199672699, -0.047602251172065735, 0.41559314727783203, -0.39472588896751404, 0.10009606927633286, -0.08015940338373184, 0.04452712461352348, 0.0227879136800766, 0.36164307594299316, -0.36986243724823, 0.1039460152387619, -0.030253250151872635, -0.1415356546640396, 0.14917373657226562, -0.16406990587711334, 0.28339505195617676, -0.07952991873025894, -0.1332874447107315, -0.28857478499412537, -0.14481115341186523, -0.23491621017456055, 0.22403034567832947, -0.08907675743103027, 0.11894064396619797, 0.20768284797668457, -0.8349122405052185, 0.056165650486946106, -0.1746174544095993, -0.008014975115656853, 0.059459052979946136, 0.18963058292865753, -0.16968680918216705, 0.1729540377855301, -0.3796274662017822, -0.1412031054496765, -0.009526164270937443, 0.6327993273735046, -0.15756617486476898, -0.3251607120037079, 0.4551858901977539, 0.12517645955085754, -0.09399499744176865, -0.1562015265226364, 0.3597622513771057, -0.17819198966026306, -0.28100770711898804, -0.15708880126476288, -0.12809140980243683, 0.021750586107373238, -0.10716341435909271, -0.03761381655931473, 0.2150370180606842, -0.14157117903232574, 0.0009855012176558375, -0.4553615152835846, -0.28990504145622253, -0.013294899836182594, -0.3651156723499298, 0.07086799293756485, -0.2607097327709198, -0.3543858826160431, -0.21822749078273773, 0.2064194530248642, -0.20223098993301392, 0.16244372725486755, -0.20284081995487213, -0.1324504315853119, 0.3135017156600952, -0.1432560533285141, 0.2176746279001236, -0.31778714060783386, -0.0388181135058403, 0.4003426134586334, -0.16842788457870483, -0.05347288027405739, -0.32704874873161316, 0.18153686821460724, 0.1397499442100525, 0.38981467485427856, 0.17373016476631165, -0.3615199029445648, -0.08784068375825882, 0.017742237076163292, 0.09141131490468979, 0.2003788948059082, 0.13279686868190765, -0.10366134345531464, -0.00746263237670064, 0.8132433891296387, -0.18199624121189117, 0.1114891916513443, 0.07929867506027222, -0.14206375181674957, 0.059596121311187744, 0.009201225824654102, 0.09889931976795197, 0.2614958584308624, -0.5912237763404846, 0.08717792481184006, 0.009487483650445938, 0.18917343020439148, 0.3638571500778198, -0.12227974832057953, 0.0873580202460289, 0.3062608540058136, 0.2429111897945404, 0.3095579147338867, 0.1071130707859993, -0.19492796063423157, 0.3150210976600647, 0.08273614943027496, -0.13863596320152283, -0.18614259362220764, 0.3364928662776947, 0.00009223158122040331, -0.038374077528715134, -0.12120822817087173, 0.21788820624351501, -0.2060878723859787, -0.12863677740097046, 0.36280953884124756, 0.2267933487892151, 0.041903723031282425, -0.13122065365314484, -0.02418706566095352, 0.1435374766588211, 0.10164443403482437, 0.15171696245670319, 0.06979077309370041, 0.05583857372403145, 0.3068053722381592, -0.3838955760002136, -0.03019637055695057, -0.14035187661647797, 0.10816042870283127, 0.004963402170687914, -0.12972183525562286, 0.12253948301076889, 0.19508670270442963, 0.4629554748535156, 0.13716267049312592, -0.28841984272003174, -0.061860982328653336, -0.32524573802948, -0.04179973527789116, -0.018661167472600937, 0.19441674649715424, -0.1048467680811882, -0.13072296977043152, 0.5430274605751038, -0.05335450544953346, -0.0094791604205966, -0.23257289826869965, 0.12506265938282013, 0.18525026738643646, -0.03798191621899605, 0.38213911652565, 0.20159460604190826, -0.1882234513759613, -0.3295243978500366, 0.09938639402389526, 0.24102720618247986, -0.28344181180000305, -0.13950775563716888, 0.1950462907552719, 0.17301645874977112, 0.12471488118171692, 0.06866423785686493, 0.21022702753543854, 0.36946356296539307, -0.31289559602737427, 0.012325568124651909, -0.18890519440174103, -0.09722935408353806, -0.07447709143161774, 0.38806620240211487, -0.024593118578195572, -0.04947630316019058, 0.15607519447803497, 0.018243473023176193, -0.20373521745204926, 0.16372050344944, 0.13466088473796844, 0.22877542674541473, -0.17987172305583954, 0.3555246591567993, 0.3213663399219513, 0.25889790058135986, 0.11417722702026367, 0.3011619448661804, -0.2230377048254013, -0.15696395933628082, 0.015811681747436523, 0.16078129410743713, 0.08916352689266205, -0.021762926131486893, 0.06131406128406525, -0.23517708480358124, 0.29480621218681335, 0.23149161040782928, -0.011327576823532581, -0.23046384751796722, 0.3384529948234558, -0.6397737264633179, 0.16410940885543823, -0.21925559639930725, -0.4225712716579437, -0.09137147665023804, 0.22678697109222412, 0.2722913324832916, 0.22949683666229248, -0.0486784428358078, 0.010364922694861889, -0.07669094949960709, 0.025501105934381485, -0.29857006669044495, 0.2668830454349518, 0.2643013596534729, -0.16018572449684143, -0.15518423914909363, -0.4845207929611206, -0.08496994525194168, -0.17667682468891144, 0.0021154312416911125, 0.01249909307807684, -0.2989184856414795, 0.1190500557422638, 0.11077063530683517, 0.31837353110313416, 0.20132790505886078, 0.39092954993247986, -0.07609052956104279, -0.4142151474952698, -0.5229350924491882, -0.03573761135339737, -0.18281933665275574, -0.3264656960964203, 0.024637430906295776, 0.4542933702468872, -0.6023716926574707, -0.3832443356513977, -0.3101324737071991, 0.4385450482368469, -0.2643038034439087, -0.24527087807655334, -0.328189492225647, 0.10806011408567429, -0.21624340116977692, 0.38981518149375916, 0.16351738572120667, 0.3700905740261078, 0.11093354225158691, 0.25320175290107727, -0.4738083779811859, 0.026870330795645714, 0.32538750767707825, -0.48060643672943115, -0.2813551425933838, 0.15871120989322662, 0.18450412154197693, 0.03966917470097542, -0.21615207195281982, -0.15816250443458557, 0.3095879852771759, 0.0067397053353488445, -0.027630776166915894, -0.08218912035226822, 0.04202338308095932, 0.05513937398791313, 0.09747055917978287, -0.18743625283241272, 0.08112327754497528, 0.06027938425540924, -0.10054640471935272, -0.2201518416404724, -0.0833190456032753 ]
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.022068994119763374, -0.07033129781484604, -0.024117914959788322, 0.04778246954083443, 0.06480738520622253, 0.05381781980395317, 0.2719027101993561, -0.09048198908567429, 0.7102738618850708, -0.06344840675592422, -0.02303563430905342, -0.030101168900728226, 0.14038726687431335, -0.40407121181488037, -0.28357264399528503, 0.24196378886699677, 0.20772744715213776, 0.030583413317799568, -0.24521812796592712, -0.07708965241909027, -0.16139569878578186, 0.43424180150032043, -0.08152248710393906, -0.2347530722618103, -0.5598559379577637, 0.1654607057571411, -0.03963135555386543, 0.14034070074558258, -0.34571200609207153, 0.1898195743560791, 0.3417888283729553, 0.6025447249412537, -0.04525742307305336, 0.5372431874275208, -0.00012877010158263147, -0.26277559995651245, 0.24520501494407654, -0.08524251729249954, -0.21709680557250977, -0.10173866897821426, -0.08704762160778046, -0.18407927453517914, 0.22492657601833344, -0.10948673635721207, 0.1608501672744751, 0.12281880527734756, -0.015085953287780285, -0.5285056233406067, 0.2650882601737976, -0.16738460958003998, -0.00023695576237514615, 0.11311233788728714, 0.16723810136318207, -0.15101435780525208, 0.31459128856658936, -0.20973296463489532, -0.18487195670604706, 0.49765491485595703, 0.47174951434135437, -0.09011891484260559, -0.24797409772872925, 0.08873529732227325, 0.025788884609937668, 0.03823688253760338, 0.6046133041381836, -0.29513972997665405, 0.46698638796806335, -0.2977609634399414, -0.30353811383247375, 0.2270716279745102, 0.5503917336463928, -0.01766347326338291, -0.5384923219680786, -0.18207567930221558, 0.35809651017189026, -0.00008647393406135961, 0.4926607608795166, 0.05415984243154526, -0.1355171501636505, 0.35030031204223633, 0.015288406051695347, -0.1867278665304184, 0.07348062098026276, 0.05156523734331131, -0.16683892905712128, 0.05516946315765381, 0.15404640138149261, 0.06937237828969955, 0.2360333800315857, -0.14176352322101593, 0.004706379026174545, -0.20134466886520386, -0.13893426954746246, 0.06551934033632278, -0.5184339880943298, 0.04406947270035744, -0.023771068081259727, 0.0005389985162764788, 0.0014871015446260571, -0.1775718331336975, -0.4711019992828369, 0.19591055810451508, -0.10728760063648224, 0.4131366014480591, 0.10727506875991821, 0.1250377893447876, 0.1560990959405899, -0.2706221342086792, 0.31298866868019104, -0.036670245230197906, -0.2005041539669037, 0.12349741905927658, -0.09971878677606583, -0.2006220817565918, -0.07061946392059326, -0.008544120006263256, 0.024450456723570824, -0.4772166907787323, 0.1940930336713791, 0.29553157091140747, 0.1394580751657486, 0.400676429271698, 0.15813280642032623, 0.1941506713628769, 0.1847221404314041, 0.42623990774154663, 0.20754703879356384, 0.07932678610086441, -0.19444814324378967, 0.12260284274816513, 0.03051825240254402, -0.14489024877548218, 0.105076365172863, 0.1360040307044983, 0.037101492285728455, 0.28959962725639343, 0.17678777873516083, 0.12848761677742004, 0.21665391325950623, 0.11741478741168976, -0.03276875615119934, -0.05197218060493469, -0.19332215189933777, 0.45187339186668396, -0.1418784260749817, 0.16572542488574982, 0.0007302617304958403, 0.1726858913898468, -0.03790128231048584, 0.07738881558179855, -0.3118937015533447, -0.023789865896105766, -0.17366933822631836, -0.039076510816812515, -0.4359889030456543, 0.021199621260166168, -0.14165358245372772, -0.21987716853618622, -0.24427595734596252, -0.35793331265449524, 0.05143694579601288, -0.504481315612793, -0.03491591289639473, 0.05461389198899269, -0.003844770137220621, 0.33243829011917114, -0.40340957045555115, -0.0246993787586689, 0.2663727104663849, -0.17984873056411743, 0.017474854364991188, 0.30314013361930847, -0.04890337958931923, -0.09272370487451553, -0.1638784259557724, -0.009584268555045128, 0.19855138659477234, -0.42445501685142517, -0.6493108868598938, 0.19077229499816895, -0.33495184779167175, 0.14720368385314941, 0.1931842714548111, 0.2882730960845947, -0.08139308542013168, -0.12960121035575867, 0.00870633963495493, 0.3986358046531677, 0.16078969836235046, -0.1987576186656952, -0.13715170323848724, -0.2944769263267517, -0.18602266907691956, 0.1477249264717102, -0.05081058666110039, 0.15261922776699066, 0.032116275280714035, 0.5327268838882446, 0.2337104231119156, -0.006222524214535952, -0.04062831774353981, 0.6131657958030701, 0.6778342723846436, 0.14612747728824615, 0.12641914188861847, -0.1563686728477478, -0.5479944348335266, 0.3858718276023865, -0.3822478950023651, 0.02003571018576622, -0.16935989260673523, -0.039005350321531296, 0.12341520190238953, -0.022451117634773254, -0.05368439480662346, 0.16146701574325562, -0.018964026123285294, -0.11549250781536102, 0.06924843043088913, 0.0914664939045906, 0.1012219563126564, 0.4054684340953827, -0.11356522887945175, 0.09216587245464325, -0.136471688747406, -0.03619666397571564, 0.11383292824029922, -0.2384926676750183, 0.02042650431394577, -0.035538531839847565, 0.09710819274187088, -0.2887970805168152, -0.22711430490016937, 0.42428523302078247, 0.2979376018047333, 0.17921693623065948, -0.0711192935705185, 0.3551245331764221, 0.08210902661085129, 0.5420105457305908, -0.2560354769229889, -0.14459596574306488, 0.06487096846103668, -0.14876285195350647, -0.1179763451218605, 0.04604297876358032, -0.16182436048984528, 0.16456250846385956, -0.24254189431667328, -0.033304497599601746, 0.18625964224338531, 0.14484252035617828, -0.09420967847108841, 0.10405467450618744, 0.3544764220714569, 0.03357727453112602, -0.10364636778831482, -0.16953738033771515, 0.4346257746219635, 0.09320014715194702, 0.2976517081260681, 0.08298610150814056, 0.07813122868537903, 0.1071164608001709, -0.02897077426314354, -0.09150276333093643, 0.15393635630607605, 0.2255532145500183, 0.4854836165904999, 0.09722404927015305, 0.1201266422867775, -0.3374757468700409, 0.12074688822031021, -0.24586690962314606, 0.09512072056531906, -0.04838333651423454, -0.21003001928329468, 0.22089318931102753, 0.26065632700920105, -0.11777283996343613, 0.06483275443315506, -0.4731076955795288, 0.10898541659116745, 0.05791572481393814, 0.054538484662771225, -0.01506226696074009, -0.29516154527664185, 0.4948144853115082, 0.1755046248435974, 0.37696245312690735, -0.2835227847099304, -0.45264679193496704, 0.17981000244617462, 0.8311287760734558, 0.13274726271629333, 0.06470398604869843, -0.4011010229587555, 0.10008090734481812, 0.19551469385623932, -0.35139209032058716, -0.2648264765739441, -0.23969504237174988, 0.007471092510968447, -0.1677085906267166, 0.4072366952896118, 0.17408908903598785, 0.10440576076507568, 0.18269163370132446, -0.17408686876296997, -0.48158544301986694, -0.17135298252105713, 0.2042209506034851, -0.007862805388867855, 0.4539896547794342, 0.03299591690301895, 0.13180017471313477, -0.11417246609926224, -0.0199319738894701, 0.19001911580562592, -0.3241439759731293, -0.0359501875936985, -0.07796049863100052, -0.03927003592252731, -0.15263353288173676, -0.2805640399456024, 0.21529792249202728, -0.12103517353534698, -0.3584310710430145, 0.21344225108623505, -0.2896825671195984, -0.25950682163238525, 0.03963189572095871, 0.07662330567836761, 0.2536056339740753, -0.1284697949886322, -0.10141689330339432, 0.021841518580913544, -0.45644038915634155, 0.2862502336502075, 0.04938377067446709, -0.5032613277435303, -0.06869415193796158, 0.2903507351875305, -0.4942888915538788, 0.1319267749786377, -0.4954323172569275, -0.317902535200119, -0.24608902633190155, 0.19607873260974884, 0.03532245382666588, -0.08183812350034714, 0.40396150946617126, -0.24052368104457855, 0.05132538825273514, -0.3743170499801636, 0.2550760805606842, 0.158997043967247, 0.16508083045482635, 0.09685277193784714, -0.025217676535248756, -0.13443729281425476, -0.011485849507153034, 0.671263575553894, -0.16278518736362457, -0.11719419807195663, 0.1715482473373413, 0.29960352182388306, 0.27835533022880554, -0.36036747694015503, -0.11018054187297821, -0.09834638983011246, -0.09169921278953552, 0.009312859736382961, 0.021871356293559074, -0.010686662979424, -0.10975299775600433, -0.13481029868125916, -0.13685978949069977, 0.061204634606838226, -0.35200580954551697, 0.005026441533118486, 0.2663823068141937, -0.10186989605426788, 0.2015022337436676, -0.10828971862792969, -0.05893038213253021, -0.15592528879642487, 0.24891076982021332, 0.4016430377960205, 0.41648420691490173, 0.08548013865947723, -0.027836881577968597, 0.08066003024578094, -0.11563458293676376, 0.22469745576381683, -0.07637093216180801, 0.31272146105766296, -0.03288028761744499, 0.03896225616335869, 0.010672932490706444, -0.35463985800743103, 0.4242367148399353, -0.05769886448979378, 0.12827211618423462, 0.1406542956829071, 0.056501202285289764, -0.2863336503505707, -0.160176083445549, -0.28285399079322815, -0.043663620948791504, 0.38714948296546936, 0.23690515756607056, -0.1635144203901291, -0.23451600968837738, -0.49664413928985596, 0.3092573285102844, -0.1080525815486908, -0.5445772409439087, -0.09653997421264648, 0.3303978145122528, -0.35348784923553467, 0.04779362678527832, -0.11987027525901794, 0.1562538743019104, -0.013197344727814198, 0.10647407919168472, -0.23794403672218323, -0.027386842295527458, -0.07541346549987793, -0.008091092109680176, 0.016386130824685097, -0.04397393763065338, 0.2349882423877716, 0.038537267595529556, -0.07264839857816696, 0.13336162269115448, 0.21187670528888702, 0.4685254991054535, 0.2167074829339981, 0.43194782733917236, -0.2559487521648407, -0.12887822091579437, 0.47057169675827026, -0.009078693576157093, -0.04295216500759125, -0.18045741319656372, 0.08175642043352127, 0.0764363706111908, 0.16182036697864532, 0.12219787389039993, 0.004696426447480917, 0.37685084342956543, 0.15020033717155457, 0.12014219164848328, 0.07933809608221054, -0.22634321451187134, 0.5570192337036133, 0.42978131771087646, 0.11927391588687897, 0.1248108521103859, -0.0013749221106991172, 1.0098518133163452, 0.11022444069385529, 0.08910933136940002, 0.12184461206197739, 0.03381500393152237, 0.20112720131874084, -0.6567309498786926, 0.07916855812072754, 0.016058461740612984, -0.28342166543006897, -0.061260808259248734, -0.22115877270698547, 0.38373860716819763, -0.22121194005012512, 0.1036454513669014, 0.22032281756401062, 0.10641469806432724, -0.18843191862106323, -0.18641427159309387, 0.32037124037742615, -0.4331747591495514, -0.4605296552181244, 0.04650401696562767, 0.08835752308368683, 0.227187842130661, 0.2807310223579407, -0.06688215583562851, -0.10088879615068436, -0.18679018318653107, -0.13673295080661774, -0.24016673862934113, 0.06032075360417366, -0.05712149664759636, 0.2376733273267746, -0.6428998112678528, 0.0503375418484211, -0.13253255188465118, 0.13124912977218628, -0.07166489213705063, 0.27585387229919434, -0.3406360149383545, 0.19569197297096252, 0.0455399714410305, -0.09715914726257324, 0.10985227674245834, -0.0986962541937828, 0.2272890955209732, -0.12778839468955994, -0.04287949949502945, -0.26790350675582886, -0.10202542692422867, -0.11755981296300888, 0.15265335142612457, -0.1130957305431366, 0.03993426263332367, 0.10983173549175262, -0.7515417337417603, 0.11858779937028885, -0.17992709577083588, 0.0076036108657717705, 0.00785835087299347, 0.22708013653755188, -0.2111291140317917, 0.08756410330533981, -0.4490460455417633, -0.14568257331848145, -0.096945621073246, 0.6907752752304077, -0.18824662268161774, -0.4291863739490509, 0.38782015442848206, 0.18201890587806702, -0.02483329549431801, -0.16625382006168365, 0.2785250246524811, 0.14988012611865997, -0.5977128744125366, -0.11479929834604263, -0.08173184096813202, -0.19162845611572266, 0.0737219750881195, 0.17109888792037964, 0.17124074697494507, -0.2321946918964386, -0.02445761114358902, -0.42623239755630493, -0.18985594809055328, 0.0371151864528656, -0.3765430450439453, 0.10151664167642593, -0.18185856938362122, -0.4537023901939392, -0.18101420998573303, 0.05851970613002777, -0.14086885750293732, 0.21311688423156738, -0.1011466383934021, -0.06804029643535614, 0.28841105103492737, -0.01868593879044056, 0.24433116614818573, -0.1946050077676773, -0.0744403600692749, 0.3325657248497009, -0.1290651559829712, 0.009495988488197327, -0.30026060342788696, 0.1881701797246933, 0.11928675323724747, 0.49570968747138977, 0.11549893766641617, -0.3775984048843384, -0.0708092525601387, -0.005467747338116169, 0.0890507623553276, 0.11564883589744568, 0.08077799528837204, -0.10398872196674347, 0.30587178468704224, 0.6972978115081787, -0.08608871698379517, 0.19836817681789398, 0.24851390719413757, -0.05496383085846901, -0.1351301074028015, -0.1019698828458786, -0.04275888949632645, 0.12436002492904663, -0.5576986074447632, 0.04995345324277878, 0.06968150287866592, 0.32949769496917725, 0.3463842570781708, -0.08508424460887909, 0.026759391650557518, 0.2640784680843353, 0.437523752450943, 0.3466062545776367, 0.1543823480606079, -0.14519982039928436, 0.3441731035709381, 0.07575388997793198, -0.10172726213932037, -0.20948679745197296, 0.4380950331687927, 0.030222071334719658, -0.010404153726994991, -0.007636695168912411, 0.10414109379053116, -0.12411999702453613, 0.12759417295455933, 0.3202595114707947, 0.48674535751342773, -0.06648636609315872, -0.16942210495471954, 0.12801475822925568, 0.17506270110607147, 0.031467337161302567, 0.2002260833978653, 0.10043013095855713, 0.15053364634513855, 0.4474326968193054, -0.3802277445793152, 0.021805675700306892, 0.2399679571390152, 0.03900092467665672, 0.040187034755945206, -0.005754330661147833, -0.06911678612232208, 0.19535595178604126, 0.5384964346885681, 0.152158722281456, -0.2523939311504364, 0.08753801882266998, -0.3108755052089691, -0.2210141122341156, -0.15601326525211334, 0.2961386740207672, -0.07562950998544693, -0.038271594792604446, 0.34636953473091125, -0.11140402406454086, 0.03996740281581879, -0.17544524371623993, 0.05258430913090706, 0.13627955317497253, 0.12105699628591537, 0.3864113986492157, 0.3674784302711487, -0.39564019441604614, -0.36989763379096985, 0.09387820214033127, 0.2836429178714752, -0.20835958421230316, -0.03379609063267708, 0.2968217432498932, 0.06126607954502106, 0.3407030403614044, 0.0579259917140007, 0.2708122432231903, 0.27805042266845703, -0.22217349708080292, 0.07691731303930283, -0.1248655840754509, -0.08187362551689148, -0.0950932502746582, 0.3482893705368042, 0.007895047776401043, -0.047894082963466644, 0.22525453567504883, 0.015999972820281982, -0.1737380474805832, 0.1647745817899704, 0.04188845306634903, 0.234717458486557, -0.17009857296943665, 0.40576067566871643, 0.23026373982429504, 0.34437933564186096, 0.13229411840438843, 0.10894381999969482, -0.273068904876709, -0.0650886595249176, -0.09368299692869186, 0.08746086061000824, 0.029658617451786995, -0.03668737784028053, 0.031654782593250275, -0.27275341749191284, 0.22774164378643036, 0.2071666419506073, -0.08663666993379593, -0.2552129924297333, 0.3333531320095062, -0.6523106098175049, 0.15050256252288818, -0.10231421142816544, -0.43958580493927, -0.2222519963979721, 0.3195898234844208, 0.286795437335968, 0.2792305052280426, -0.03735550120472908, -0.1852322369813919, -0.1396142691373825, 0.24624352157115936, -0.32462745904922485, 0.3226269781589508, 0.1380731761455536, -0.04233304038643837, -0.15676651895046234, -0.43859389424324036, -0.008030327036976814, -0.13008174300193787, -0.06917670369148254, 0.1633480340242386, -0.37628695368766785, 0.17741160094738007, 0.028208725154399872, 0.25536152720451355, 0.10020219534635544, 0.38179928064346313, 0.049605339765548706, -0.3303435146808624, -0.5639327168464661, -0.27792271971702576, -0.08364686369895935, -0.3346695601940155, -0.05482766032218933, 0.44747835397720337, -0.5062487721443176, -0.26038938760757446, -0.35153138637542725, 0.2791648209095001, -0.28444188833236694, -0.11088631302118301, -0.3698858916759491, 0.18718965351581573, -0.26576530933380127, 0.40524396300315857, 0.12793093919754028, 0.3573993146419525, 0.16895556449890137, 0.30109626054763794, -0.4526660442352295, -0.09917359799146652, 0.43180379271507263, -0.4769836664199829, -0.26713889837265015, 0.1060701236128807, 0.24685975909233093, 0.23110823333263397, -0.1564675122499466, -0.21250765025615692, 0.26758459210395813, -0.05254693329334259, 0.13638707995414734, -0.0372592993080616, 0.025763090699911118, 0.17329257726669312, -0.02547096274793148, -0.2425498366355896, -0.012666777707636356, 0.06130805239081383, -0.09723834693431854, -0.18674218654632568, -0.12740394473075867 ]
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.2403901070356369, -0.15193085372447968, -0.004668054170906544, 0.13880158960819244, -0.1991833597421646, 0.16617465019226074, 0.08553371578454971, 0.3236585557460785, 0.19925633072853088, -0.14080938696861267, 0.05220165103673935, 0.676864743232727, -0.400825172662735, 0.1611250340938568, 0.2155928909778595, -0.22299033403396606, 0.13369649648666382, 0.056989382952451706, 0.1327417939901352, 0.11233825236558914, 0.033392563462257385, -0.18108661472797394, 0.13364996016025543, 0.056947074830532074, -0.026441344991326332, -0.2280299961566925, -0.12039939314126968, 0.11188577860593796, 0.026978006586432457, 0.0009549337555654347, 0.461603581905365, 0.18852642178535461, -0.017125777900218964, 0.32088300585746765, -0.00011780607019318268, 0.13054749369621277, 0.05748963728547096, 0.09882137924432755, -0.21894189715385437, -0.20572878420352936, -0.12719698250293732, -0.1774253398180008, 0.17279265820980072, -0.18731272220611572, 0.08668531477451324, -0.37703582644462585, 0.18521355092525482, -0.2320505529642105, 0.7697009444236755, 0.1443224847316742, 0.10437709093093872, 0.09226898849010468, -0.12460827082395554, 0.21892280876636505, -0.24513889849185944, 0.3413788676261902, 0.04977823421359062, 0.1736002266407013, -0.01695728302001953, -0.20677964389324188, -0.07550445199012756, 0.07740398496389389, -0.1792522817850113, 0.027216365560889244, 0.2267158478498459, -0.05758273974061012, -0.014406050555408001, -0.16061772406101227, 0.0055113849230110645, 0.3372310698032379, -0.0058291321620345116, -0.2154865711927414, -0.2079763561487198, -0.6004970669746399, 0.1435127705335617, -0.1713545322418213, -0.10862366110086441, 0.20953428745269775, -0.15963208675384521, 0.26162266731262207, 0.06794924288988113, -0.5672590136528015, -0.009192226454615593, 0.07204499840736389, 0.0448702834546566, 0.2262706607580185, 0.18489575386047363, 0.21273937821388245, 0.2443891316652298, 0.07956822216510773, 0.31978970766067505, -0.25500524044036865, -0.02119777724146843, 0.02341695874929428, -0.15532444417476654, -0.2513639032840729, -0.1570301651954651, -0.5725246667861938, 0.07860351353883743, 0.29761749505996704, 0.342059850692749, 0.013449879363179207, -0.3720589578151703, 0.19972844421863556, 0.15162090957164764, -0.2357715666294098, -0.11627747118473053, 0.35109472274780273, -0.013914715498685837, -0.2985033690929413, 0.08863106369972229, 0.13627563416957855, -0.4068128168582916, -0.024696266278624535, -0.2755962610244751, -0.001735056983307004, 0.30393877625465393, 0.24162855744361877, -0.12306694686412811, -0.421479195356369, -0.23921792209148407, -0.14868542551994324, 0.17635110020637512, -0.007922785356640816, 0.014132874086499214, 0.5878419876098633, -0.04234391823410988, 0.4042403995990753, -0.18547265231609344, -0.216009259223938, 0.027376854792237282, -0.020828545093536377, -0.15182214975357056, 0.04270376265048981, 0.14868296682834625, 0.41835758090019226, 0.17752043902873993, -0.0463540144264698, -0.25370126962661743, -0.07993223518133163, 0.46836546063423157, 0.002697185380384326, -0.03151839226484299, -0.06698077917098999, -0.04448055848479271, 0.03380964696407318, 0.054595354944467545, -0.01709248498082161, -0.26668810844421387, 0.14721374213695526, -0.15603023767471313, -0.13473352789878845, -0.09138727188110352, 0.061966728419065475, -0.0013743083691224456, -0.29662200808525085, -0.6264994740486145, 0.6202912330627441, 0.20189890265464783, -0.009918095543980598, 0.02089228294789791, -0.011355732567608356, -0.3717826306819916, -0.2209549993276596, 0.08670610934495926, 0.14002805948257446, -0.36476635932922363, -0.3302684426307678, -0.2051742523908615, -0.013774164021015167, -0.14660514891147614, 0.4300250709056854, -0.27112331986427307, 0.19720183312892914, 0.031571850180625916, -0.023028960451483727, 0.6090841889381409, -0.21809741854667664, -0.03652285039424896, 0.1634850800037384, -0.18100985884666443, -0.10279636085033417, 0.11327439546585083, 0.12155929207801819, 0.06285489350557327, -0.1734141707420349, -0.05285597965121269, 0.7855044007301331, -0.320865273475647, 0.02757899835705757, 0.1742577850818634, -0.2888340353965759, 0.22349438071250916, 0.21958927810192108, -0.03265395015478134, 0.004538813140243292, -0.27169904112815857, -0.05846788361668587, 0.22198477387428284, -0.1346552073955536, 0.35247132182121277, -0.09110467880964279, -0.14856044948101044, -0.06933533400297165, -0.12771981954574585, -0.20417256653308868, -0.5392056703567505, -0.009558129124343395, 0.05175405368208885, -0.028886213898658752, 0.13723553717136383, -0.13561448454856873, 0.052892085164785385, -0.002124608028680086, 0.03000638261437416, 0.03231872245669365, -0.015995895490050316, 0.002227240242063999, 0.07539612054824829, -0.309769868850708, -0.35937774181365967, 0.05140980705618858, 0.03163161873817444, 0.17688007652759552, -0.3762132525444031, 0.5385994911193848, 0.28531861305236816, 0.04639669880270958, -0.09584488719701767, 0.27627384662628174, -0.18428778648376465, 0.01961020939052105, 0.1722973734140396, 0.08947746455669403, -0.2095707654953003, 0.39880257844924927, 0.3215484023094177, 0.22554920613765717, 0.26272669434547424, -0.4603501558303833, 0.3501000702381134, 0.0316816121339798, -0.06976234167814255, -0.13831830024719238, -0.2709311842918396, 0.3280025124549866, 0.10017615556716919, 0.46350663900375366, -0.036985453218221664, 0.24889646470546722, 0.13197454810142517, -0.13810837268829346, -0.23726359009742737, 0.11670267581939697, 0.011379992589354515, -0.09814294427633286, 0.28883472084999084, -0.08730249106884003, -0.44524362683296204, 0.36144399642944336, 0.3100601136684418, -0.09129364788532257, 0.01308466400951147, 0.06185078248381615, -0.2570587694644928, -0.011276602745056152, -0.1076848953962326, 0.5400256514549255, 0.08790301531553268, 0.2115105539560318, 0.2821085453033447, 0.027992548421025276, -0.2887629270553589, 0.034827571362257004, 0.22999773919582367, 0.13825984299182892, 0.5379911065101624, -0.009058809839189053, 0.16563205420970917, -0.20805151760578156, 0.0035570189356803894, -0.25660252571105957, 0.39040881395339966, 0.042665038257837296, -0.04858150705695152, 0.44404634833335876, -0.3302445411682129, -0.40550050139427185, -0.6255350708961487, -0.14469555020332336, -0.09086009114980698, -0.2803328335285187, -0.09690870344638824, 0.2085822969675064, -0.07119768112897873, 0.2793181538581848, -0.055382560938596725, 0.23792581260204315, -0.25997790694236755, -0.03715968504548073, 0.020811982452869415, -0.5158358812332153, -0.012236472219228745, 0.04406735673546791, 0.5248749852180481, 0.20146146416664124, 0.22860997915267944, 0.43849238753318787, -0.20957201719284058, -0.11072470247745514, -0.19225965440273285, 0.19644546508789062, -0.11477231979370117, -0.006891957949846983, 0.10812555998563766, -0.13840600848197937, 0.17010395228862762, -0.2603873908519745, -0.12601418793201447, -0.08064912259578705, -0.12642163038253784, -0.1522289365530014, -0.1260616034269333, 0.27226802706718445, -0.06501050293445587, -0.1946338564157486, -0.3711026906967163, -0.2666156589984894, 0.3674732446670532, 0.01902497187256813, 0.22016297280788422, 0.3498852849006653, 0.123006172478199, 0.08869185298681259, 0.08066746592521667, -0.08535698801279068, 0.16266953945159912, -0.02872404456138611, -0.057583313435316086, -0.2798260450363159, 0.17780449986457825, -0.2847963273525238, -0.33031541109085083, 0.35674506425857544, 0.12052926421165466, -0.2028898149728775, 0.3326490521430969, -0.05915515497326851, -0.008152344264090061, -0.1078236848115921, -0.28496983647346497, 0.07366113364696503, 0.10927217453718185, 0.07392213493585587, -0.042035073041915894, 0.1928340047597885, 0.171317458152771, 0.08168042451143265, 0.1657756268978119, 0.2389996349811554, 0.220533087849617, 0.15325264632701874, 0.88238126039505, 0.0961875468492508, -0.23324300348758698, -0.2094874382019043, 0.1341322809457779, -0.30678480863571167, 0.14127330482006073, -0.07057212293148041, -0.14168523252010345, -0.030790405347943306, 0.0928698480129242, 0.050451163202524185, 0.05446832627058029, -0.36374178528785706, 0.02791636809706688, 0.016434140503406525, -0.09760360419750214, -0.310401052236557, 0.34447675943374634, -0.6596314907073975, 0.008933556266129017, -0.04637196660041809, -0.31653615832328796, -0.3431258201599121, -0.006695503834635019, -0.32690665125846863, -0.06865352392196655, 0.16761058568954468, -0.029269592836499214, -0.5071268081665039, 0.25798287987709045, -0.43157151341438293, 0.12026695162057877, -0.08340059965848923, 0.06036294251680374, 0.21491487324237823, -0.16060024499893188, -0.008081736974418163, -0.1677449643611908, 0.7057889103889465, -0.08200034499168396, 0.03583279624581337, -0.09291887283325195, 0.2638986110687256, -0.5462854504585266, 0.15816405415534973, -0.1408659964799881, 0.4263218939304352, 0.14501580595970154, 0.10926520824432373, -0.34361162781715393, -0.33073732256889343, 0.1954766809940338, -0.09019596129655838, -0.23771601915359497, 0.0916704535484314, 0.12044373154640198, -0.07635240256786346, -0.26517805457115173, -0.08404778689146042, 0.12251156568527222, -0.13326619565486908, -0.14933712780475616, -0.08547011017799377, -0.2304697185754776, -0.07738374173641205, 0.13135485351085663, -0.033974841237068176, -0.1385277658700943, 0.05845044553279877, 0.2399113029241562, -0.02633989229798317, 0.13796016573905945, 0.18203270435333252, 0.4787063002586365, 0.06897586584091187, -0.4266798496246338, -0.0599452406167984, 0.18057775497436523, 0.37760868668556213, -0.07570931315422058, 0.34946948289871216, 0.4628926217556, 0.500977098941803, -0.1913427710533142, -0.21401335299015045, 0.14751382172107697, -0.14113321900367737, 0.15735647082328796, -0.40005287528038025, -0.5321151614189148, 0.45677125453948975, 0.2663407027721405, 0.00344160757958889, 0.38511136174201965, -0.2737952172756195, -0.36358389258384705, 0.35454925894737244, 0.18561238050460815, 0.7174016833305359, -0.18791216611862183, 0.24939550459384918, 0.2364908754825592, -0.4876543879508972, 0.8625791072845459, -0.4363303482532501, 0.006486757658421993, -0.11725256592035294, 0.09158080071210861, -0.08585993200540543, -0.16084524989128113, -0.13025891780853271, 0.6075696349143982, -0.07183405756950378, 0.17531558871269226, 0.22989492118358612, -0.3705945909023285, -0.004397424403578043, 0.4035179615020752, -0.010801543481647968, -0.32102617621421814, -0.07477302104234695, -0.0025707362219691277, -0.3699764013290405, -0.20560811460018158, 0.08520352840423584, -0.22106483578681946, -0.1099657341837883, 0.05327865853905678, -0.1914249062538147, 0.10740277171134949, 0.05540452152490616, 0.09981963783502579, 0.12333239614963531, -0.4270583987236023, 0.24366456270217896, -0.05070963874459267, 0.19342555105686188, -0.30958420038223267, -0.11503268033266068, 0.06106853857636452, -0.11718675494194031, 0.05247226729989052, -0.09215940535068512, -0.21865889430046082, 0.38668859004974365, 0.16069698333740234, -0.2823694348335266, -0.11514116078615189, 0.079382985830307, -0.23703324794769287, 0.04058155044913292, -0.10364245623350143, 0.10193448513746262, 0.3212156295776367, -0.13119058310985565, 0.44805869460105896, -0.3300971984863281, -0.13162411749362946, 0.003720157779753208, 0.0989348515868187, -0.10849510878324509, -0.1570868343114853, -0.04384955018758774, -0.0517285019159317, 0.11029620468616486, -0.045644477009773254, 0.18980033695697784, 0.032804761081933975, 0.45178934931755066, 0.43826258182525635, 0.1849963515996933, -0.18345366418361664, -0.12054858356714249, 0.316177636384964, -0.5272356867790222, 0.034859783947467804, -0.2859780788421631, -0.1961444914340973, 0.18810899555683136, -0.11077503859996796, 0.025411061942577362, 0.3236616849899292, -0.17666734755039215, -0.3987574279308319, -0.23471102118492126, 0.5112709999084473, -0.18786533176898956, 0.08738015592098236, -0.0445176437497139, 0.21559137105941772, -0.006234798580408096, 0.3952154815196991, -0.18375414609909058, 0.20799818634986877, 0.1332276612520218, 0.3373394012451172, 0.04251251742243767, -0.052620407193899155, -0.09749170392751694, 0.07804717868566513, -0.053438950330019, -0.06281247735023499, 0.041490476578474045, -0.11533050984144211, -0.21965181827545166, 0.11842373013496399, -0.027711354196071625, -0.12095554918050766, 0.08008268475532532, -0.21836800873279572, -0.06777942925691605, -0.09340718388557434, -0.11529361456632614, -0.2885548174381256, 0.019591864198446274, 0.2287469357252121, 0.07178207486867905, 0.080964595079422, -0.26146864891052246, 0.11320538818836212, 0.1173841804265976, -0.029314231127500534, -0.11846966296434402, 0.45010149478912354, 0.24631762504577637, -0.14231832325458527, -0.5291053652763367, -0.036175210028886795, 0.2934218943119049, 0.017820879817008972, 0.041250601410865784, -0.0635458305478096, -0.09371324628591537, -0.08157443255186081, 0.23068472743034363, 0.4306110143661499, 0.03998413309454918, 0.22692137956619263, 0.2728828191757202, 0.12349962443113327, -0.07615692168474197, 0.1316494643688202, 0.44310975074768066, -0.2541215121746063, 0.12798607349395752, 0.3206242322921753, -0.13189248740673065, 0.13094215095043182, -0.2874296009540558, 0.03431345149874687, -0.06421097368001938, -0.2025076299905777, 0.4111102223396301, 0.2690484821796417, -0.17028310894966125, -0.11839402467012405, 0.15167830884456635, -0.06857966631650925, 0.3975032567977905, 0.1099756583571434, 0.2115633487701416, 0.45119115710258484, 0.2925952076911926, -0.06654186546802521, 0.5318666696548462, -0.1450626403093338, -0.3541172444820404, -0.13241161406040192, 0.1264011263847351, 0.2644669711589813, 0.22521206736564636, 0.6926087737083435, 0.22724641859531403, -0.28280025720596313, 0.05567106232047081, 0.4929949641227722, 0.06447329372167587, -0.3106919527053833, -0.6167654395103455, 0.1454278528690338, -0.11039526015520096, -0.035738423466682434, 0.014125131070613861, -0.2954677939414978, 0.25504612922668457, 0.14598624408245087, 0.18083946406841278, -0.36222878098487854, 0.26336729526519775, 0.19278055429458618, 0.04509372636675835, -0.05467759817838669, 0.17775775492191315, 0.17172928154468536, -0.17022211849689484, 0.02094857022166252, 0.0810636579990387, 0.09770520031452179, -0.06761424988508224, -0.4525373876094818, 0.09628410637378693, 0.1943972110748291, -0.069397933781147, -0.1371862292289734, 0.12220127880573273, 0.23566263914108276, 0.008483313024044037, 0.2597692608833313, 0.019514115527272224, -0.1069609522819519, -0.07922537624835968, 0.3964884877204895, -0.03990521281957626, -0.3999810218811035, 0.44682732224464417, 0.24780850112438202, -0.22031088173389435, 0.20622146129608154, 0.22957630455493927, -0.37404265999794006, -0.12389364093542099, 0.3689212203025818, -0.23908446729183197, -0.050556257367134094, 0.09568100422620773, 0.02193244732916355, -0.06271473318338394, 0.496768593788147, 0.14088095724582672, 0.40042927861213684, 0.03842713311314583, 0.05476490780711174, -0.30392709374427795, -0.14962738752365112, -0.19999822974205017, -0.0380619615316391, -0.3141913115978241, 0.1837073713541031, 0.25921550393104553, 0.37473931908607483, -0.13631875813007355, 0.020689310505986214, 0.28759700059890747, 0.3725082278251648, -0.0866805836558342, -0.26358407735824585, 0.04178363084793091, 0.32515400648117065, 0.21496278047561646, -0.3820336163043976, -0.10864144563674927, 0.44580551981925964, -0.20358893275260925, 0.05337461456656456, -0.034152764827013016, 0.3256240785121918, -0.15648913383483887, 0.08590894937515259, 0.0061817169189453125, 0.39608094096183777, -0.05366414040327072, -0.35406363010406494, -0.34463590383529663, -0.14594140648841858, -0.5333600044250488, 0.2980467677116394, -0.07451274991035461, 0.5710757970809937, -0.5824340581893921, 0.19922176003456116, -0.054803267121315, -0.552059531211853, -0.03324711695313454, -0.01650146394968033, -0.43664249777793884, 0.24782860279083252, -0.2463940531015396, 0.17475706338882446, 0.06711907684803009, 0.4830772578716278, 0.032656487077474594, 0.07312370836734772, -0.10836294293403625, 0.019306346774101257, 0.22197557985782623, -0.1630268543958664, -0.033787019550800323, 0.07016347348690033, -0.05634860694408417, 0.1557716429233551, 0.10687434673309326, -0.5881655812263489, -0.0457233190536499, 0.24370485544204712, -0.29936927556991577, -0.03712746873497963, 0.16957537829875946, 0.22031401097774506, -0.0677684098482132, -0.11518049240112305, 0.3601846694946289, 0.046782176941633224, -0.3041183650493622, 0.022400489076972008, -0.36395642161369324 ]
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.2709980607032776, -0.1708688586950302, -0.014252598397433758, 0.24242177605628967, -0.09015287458896637, 0.037377264350652695, 0.07227975130081177, 0.35591045022010803, 0.021982187405228615, -0.15691488981246948, 0.05683213844895363, 0.687586784362793, -0.3158580958843231, 0.023822687566280365, 0.13848087191581726, -0.17748339474201202, 0.16973769664764404, 0.01757877692580223, 0.19544756412506104, 0.1319141983985901, 0.05678151920437813, -0.10721420496702194, 0.07913142442703247, 0.1026265099644661, -0.10719475895166397, -0.2519371509552002, -0.09878256171941757, 0.09026971459388733, -0.0763712003827095, -0.14168089628219604, 0.3796568810939789, 0.1386338472366333, -0.055186498910188675, 0.3206908106803894, -0.00012267094280105084, 0.20561301708221436, 0.17156079411506653, 0.13513542711734772, -0.2004488855600357, -0.14489273726940155, -0.12807835638523102, -0.12949801981449127, 0.18828636407852173, -0.18895822763442993, 0.15506099164485931, -0.39814916253089905, 0.04958857595920563, -0.1102558821439743, 0.7451304793357849, 0.24324624240398407, 0.07882348448038101, 0.09918909519910812, -0.003685241099447012, 0.2266286462545395, -0.11863140016794205, 0.34550759196281433, 0.08206279575824738, 0.24437202513217926, 0.07209053635597229, -0.21556931734085083, -0.14979423582553864, 0.14664381742477417, -0.17290835082530975, 0.024866560474038124, 0.20925678312778473, -0.0760231763124466, 0.17841792106628418, -0.06957592815160751, 0.0831776112318039, 0.31038621068000793, 0.0022009543608874083, -0.21511220932006836, -0.2066604346036911, -0.5397037267684937, 0.1270540952682495, -0.270956426858902, -0.070604108273983, 0.237149178981781, -0.22526834905147552, 0.24548476934432983, -0.05898980423808098, -0.47183772921562195, -0.09159058332443237, 0.028221910819411278, -0.022226015105843544, 0.2925260365009308, 0.2098950445652008, 0.3022346794605255, 0.16803006827831268, 0.03372781351208687, 0.3152104914188385, -0.2900066077709198, -0.061978843063116074, 0.051853202283382416, -0.16520629823207855, -0.24729517102241516, -0.08893997967243195, -0.5191532969474792, 0.07150163501501083, 0.20563223958015442, 0.3251100182533264, -0.07325974851846695, -0.2554786503314972, 0.15409903228282928, 0.1518893837928772, -0.22578026354312897, -0.12766233086585999, 0.3733851909637451, -0.06097668409347534, -0.2684905529022217, 0.07651594281196594, 0.1259825974702835, -0.278867244720459, -0.11889509111642838, -0.1605694591999054, 0.06777139008045197, 0.2837854027748108, 0.23337236046791077, -0.13466034829616547, -0.39331287145614624, -0.38643378019332886, -0.21386344730854034, 0.1876252442598343, 0.0308071281760931, 0.029146306216716766, 0.5331361889839172, -0.06710758060216904, 0.41221389174461365, -0.25913530588150024, -0.20824751257896423, 0.015252886340022087, -0.059153180569410324, -0.2480621188879013, -0.0027153161354362965, 0.10999669134616852, 0.47861260175704956, 0.13135458528995514, -0.01310763880610466, -0.22657011449337006, -0.03900451213121414, 0.35894566774368286, -0.1173248440027237, 0.09504501521587372, -0.02545236609876156, -0.17836108803749084, 0.018540041521191597, 0.010075843892991543, -0.07094181329011917, -0.3327415883541107, 0.25512659549713135, -0.10095269232988358, -0.19269438087940216, 0.002188751008361578, 0.02281809039413929, -0.04133311286568642, -0.19523930549621582, -0.43999040126800537, 0.6162859797477722, 0.30594536662101746, -0.018829654902219772, 0.05280892923474312, -0.10760490596294403, -0.29033705592155457, -0.2586705684661865, 0.12469222396612167, 0.1132117360830307, -0.4203319847583771, -0.2970171868801117, -0.010707477107644081, -0.02539481408894062, -0.11122578382492065, 0.42144572734832764, -0.21579627692699432, 0.1598106473684311, 0.08715783804655075, 0.07532678544521332, 0.6000872254371643, -0.24979902803897858, -0.06327742338180542, 0.2026134431362152, -0.11684944480657578, -0.1562632918357849, 0.12866362929344177, 0.0331939198076725, 0.020619280636310577, -0.09457055479288101, 0.02093491330742836, 0.6081796884536743, -0.35830897092819214, 0.04101979732513428, 0.009521380998194218, -0.31306326389312744, 0.22512465715408325, 0.23735898733139038, 0.02783145383000374, -0.19054588675498962, -0.32084304094314575, -0.19565075635910034, 0.27016690373420715, -0.09933880716562271, 0.368921160697937, -0.05957559496164322, -0.08423809707164764, -0.13949628174304962, -0.02871103398501873, -0.15326091647148132, -0.5317851305007935, 0.0004238994442857802, -0.015350382775068283, 0.09285850077867508, -0.044291362166404724, -0.11262699961662292, 0.06998223066329956, 0.09001730382442474, -0.04368538409471512, -0.0526154451072216, -0.013746640644967556, -0.07414345443248749, 0.13488496840000153, -0.2574140131473541, -0.33425360918045044, -0.11035700887441635, 0.008605153299868107, 0.20379628241062164, -0.33596134185791016, 0.5445891618728638, 0.23471930623054504, -0.00952803436666727, -0.16549243032932281, 0.25172173976898193, -0.0922929048538208, 0.09610723704099655, 0.1214931309223175, 0.11244282871484756, -0.17081429064273834, 0.3681158721446991, 0.15169410407543182, 0.18060119450092316, 0.30690187215805054, -0.4986456632614136, 0.4170791804790497, 0.005106882657855749, -0.12478260695934296, -0.14630132913589478, -0.2852311432361603, 0.2827925384044647, 0.0896427184343338, 0.572641909122467, 0.007449696771800518, 0.11615567654371262, 0.010554765351116657, -0.14239811897277832, -0.2524620294570923, 0.15374338626861572, -0.016834188252687454, -0.006836066022515297, 0.3308141231536865, -0.04983966425061226, -0.4534572958946228, 0.3651576042175293, 0.3189690113067627, -0.07903901487588882, -0.15595285594463348, 0.044451769441366196, -0.2688309848308563, -0.018726801499724388, 0.03278457373380661, 0.435991108417511, 0.129599928855896, 0.2646864652633667, 0.3439449071884155, -0.02343042381107807, -0.2978409230709076, -0.05219487100839615, 0.2612977921962738, 0.1168888509273529, 0.597140371799469, 0.05592355132102966, 0.27539950609207153, -0.27053430676460266, -0.06981044262647629, -0.27165618538856506, 0.4424142837524414, 0.05939624831080437, -0.12376203387975693, 0.4224998950958252, -0.2999274432659149, -0.40466436743736267, -0.6216877698898315, -0.2262636125087738, -0.18116892874240875, -0.3333447575569153, 0.010011976584792137, 0.12889821827411652, -0.16457359492778778, 0.33718353509902954, 0.031246598809957504, 0.05545968562364578, -0.19155439734458923, 0.0031771836802363396, -0.07363399863243103, -0.4876655042171478, -0.05501766875386238, 0.022479092702269554, 0.5342307090759277, 0.12499720603227615, 0.22168029844760895, 0.5519188642501831, -0.38918372988700867, -0.03776297718286514, -0.3224724233150482, 0.25986212491989136, -0.12782754004001617, -0.02513863705098629, 0.1154048889875412, -0.14120933413505554, 0.2514171898365021, -0.21008536219596863, 0.04572271555662155, -0.04512250795960426, -0.13299502432346344, -0.14877218008041382, -0.18535788357257843, 0.2294771373271942, -0.07723252475261688, -0.15768302977085114, -0.3379787802696228, -0.27747291326522827, 0.4277978837490082, 0.027062714099884033, 0.15800677239894867, 0.33515483140945435, 0.1768134981393814, 0.049850285053253174, 0.0437798798084259, -0.06615962088108063, 0.13130523264408112, 0.04987245798110962, -0.027570504695177078, -0.1940673142671585, 0.20046468079090118, -0.3057996928691864, -0.3318733274936676, 0.45479822158813477, 0.215854674577713, -0.20862288773059845, 0.34650179743766785, -0.03359264135360718, 0.1218089759349823, -0.08458471298217773, -0.2690057158470154, 0.10256071388721466, 0.19281180202960968, 0.08996424078941345, -0.017942087724804878, 0.2616139352321625, 0.1740381419658661, 0.024775316938757896, 0.15207599103450775, 0.22428874671459198, 0.20251402258872986, 0.13558267056941986, 0.9615143537521362, 0.09174244850873947, -0.16901066899299622, -0.25943657755851746, 0.010125812143087387, -0.3711108863353729, 0.10741114616394043, 0.04594901576638222, -0.1450536698102951, -0.06568310409784317, -0.002103416947647929, -0.00021004687005188316, 0.0568528026342392, -0.42401209473609924, 0.09561716765165329, 0.06871252506971359, -0.10753390938043594, -0.3062421977519989, 0.3730207681655884, -0.5912081003189087, 0.1180318146944046, -0.05064542964100838, -0.27954962849617004, -0.32653969526290894, 0.044543035328388214, -0.269633948802948, -0.18269693851470947, 0.15307089686393738, -0.12654362618923187, -0.45124202966690063, 0.09243351221084595, -0.5370232462882996, 0.1233646348118782, -0.007120002061128616, -0.09680193662643433, 0.22677956521511078, -0.28251004219055176, 0.006411683280020952, -0.2530961036682129, 0.7298451662063599, -0.09776302427053452, 0.05277470871806145, 0.039602454751729965, 0.22989068925380707, -0.5488436818122864, 0.10136283934116364, -0.13782989978790283, 0.37805765867233276, 0.20701391994953156, 0.19549189507961273, -0.432147353887558, -0.3591596484184265, 0.2859167456626892, -0.15345849096775055, -0.2045988291501999, 0.0034125696402043104, 0.17749185860157013, -0.07382427155971527, -0.28731364011764526, -0.0029662386514246464, 0.1983371376991272, -0.011111090891063213, -0.1593707650899887, -0.054331522434949875, -0.13824264705181122, -0.013404344208538532, 0.02866656892001629, 0.007177428342401981, -0.04368770495057106, -0.10880596190690994, 0.20845730602741241, -0.09661567211151123, 0.08456999808549881, 0.278964102268219, 0.5220507383346558, 0.05542975291609764, -0.3628229796886444, -0.09051911532878876, 0.15112091600894928, 0.36555904150009155, 0.14641687273979187, 0.32584959268569946, 0.44950494170188904, 0.38985466957092285, -0.024151116609573364, -0.14995141327381134, 0.018497934564948082, -0.11629704385995865, 0.15190595388412476, -0.34291934967041016, -0.33641311526298523, 0.5278542637825012, 0.24421371519565582, -0.03160305321216583, 0.42880192399024963, -0.2757219076156616, -0.39674368500709534, 0.2894909679889679, 0.2824400067329407, 0.8820124864578247, -0.04124448448419571, 0.24516735970973969, 0.4288578927516937, -0.47443410754203796, 0.6899800896644592, -0.5011773705482483, -0.008126086555421352, -0.2250356525182724, 0.17682082951068878, -0.010969934985041618, -0.17665362358093262, -0.1450343132019043, 0.612915575504303, -0.05899030715227127, 0.06636663526296616, 0.32912832498550415, -0.32081958651542664, 0.005624260753393173, 0.3306918740272522, -0.0575522780418396, -0.19697609543800354, -0.11064709722995758, -0.05463862046599388, -0.2695828080177307, -0.28409579396247864, 0.08868184685707092, -0.3098026514053345, -0.18382270634174347, -0.08336777240037918, -0.12959307432174683, 0.08425340801477432, -0.06850752234458923, 0.07889077067375183, 0.2631240487098694, -0.4813997149467468, 0.23697523772716522, -0.09801995754241943, 0.05421248450875282, -0.4273023307323456, -0.1175629273056984, 0.10900617390871048, -0.026475148275494576, 0.03960411623120308, -0.10838384926319122, -0.20439429581165314, 0.3602643311023712, 0.08531972020864487, -0.23215414583683014, -0.12134203314781189, -0.04680996388196945, -0.06234981119632721, 0.001722222426906228, -0.1963728666305542, 0.15193797647953033, 0.24484674632549286, -0.019987283274531364, 0.44762009382247925, -0.3700377345085144, -0.08606665581464767, -0.013353652320802212, 0.03429773822426796, -0.17287182807922363, -0.09018044173717499, -0.031540609896183014, -0.047365833073854446, 0.08880569040775299, -0.06530109792947769, 0.3045380413532257, 0.08879911154508591, 0.474316269159317, 0.4823842942714691, 0.12817659974098206, -0.1675909459590912, -0.1615803986787796, 0.36427733302116394, -0.6409152746200562, 0.0868004560470581, -0.25376445055007935, -0.1523723304271698, 0.17377597093582153, -0.04621277004480362, 0.06729800254106522, 0.43548130989074707, -0.1906706541776657, -0.22620940208435059, -0.2581788897514343, 0.5244811773300171, -0.14529234170913696, 0.12048764526844025, -0.19183528423309326, 0.3252469599246979, 0.07498390227556229, 0.4396362006664276, -0.1820240169763565, 0.22531446814537048, 0.0979343131184578, 0.388269305229187, -0.07239613682031631, -0.10905862599611282, -0.11320675164461136, 0.07051818072795868, -0.07248084992170334, -0.06433180719614029, 0.012335479259490967, -0.08944620192050934, -0.14917545020580292, 0.11777102947235107, 0.06036246195435524, -0.10188540071249008, 0.10243886709213257, -0.1873316615819931, -0.009459586814045906, -0.03697168827056885, -0.0762714296579361, -0.3490605056285858, -0.07332400232553482, 0.15954488515853882, 0.15170109272003174, 0.1069018542766571, -0.3149266242980957, 0.17492741346359253, 0.12013150751590729, 0.07135751843452454, -0.08526492863893509, 0.426280677318573, 0.23029954731464386, -0.11620210111141205, -0.4974856972694397, -0.02586769126355648, 0.11375558376312256, -0.06236666440963745, 0.1227826401591301, -0.10257820785045624, -0.13419245183467865, -0.2581683099269867, 0.28847649693489075, 0.41204968094825745, 0.01716798171401024, 0.19730161130428314, 0.1009959727525711, 0.11810369044542313, -0.12548978626728058, 0.15020471811294556, 0.33810606598854065, -0.36371320486068726, 0.12361344695091248, 0.24367326498031616, -0.166686549782753, 0.1396009474992752, -0.23556411266326904, 0.16794131696224213, -0.006440342403948307, -0.26781201362609863, 0.3055501878261566, 0.35280370712280273, -0.18866729736328125, -0.029350660741329193, 0.28285956382751465, -0.07305207848548889, 0.3902783989906311, 0.013309394009411335, 0.19553744792938232, 0.43055862188339233, 0.22978386282920837, -0.06831066310405731, 0.44170495867729187, -0.056118980050086975, -0.41873687505722046, -0.0846250057220459, 0.12006600946187973, 0.12043093889951706, 0.294889897108078, 0.7293601036071777, 0.3205152451992035, -0.3478199541568756, 0.18538253009319305, 0.537540078163147, -0.010657712817192078, -0.2062986046075821, -0.7132187485694885, 0.06884834170341492, -0.1676313281059265, -0.026027237996459007, -0.11495116353034973, -0.22418737411499023, 0.39932602643966675, 0.18027640879154205, 0.20193667709827423, -0.420106440782547, 0.28625816106796265, 0.13323447108268738, 0.10236547142267227, -0.12273167073726654, 0.2345300018787384, 0.2515219748020172, -0.19357360899448395, 0.005280979909002781, 0.11138683557510376, 0.23732873797416687, 0.008604300208389759, -0.49457016587257385, 0.007428996730595827, 0.20811787247657776, -0.11913140118122101, -0.133026584982872, 0.1433834284543991, 0.3661992847919464, 0.061130501329898834, 0.3061698079109192, -0.02009054459631443, -0.0907650887966156, -0.0039544496685266495, 0.39322102069854736, -0.03777344897389412, -0.25377368927001953, 0.500662088394165, 0.18976977467536926, -0.34103086590766907, 0.25250405073165894, 0.17083460092544556, -0.40543702244758606, -0.02089875191450119, 0.32923129200935364, -0.22988583147525787, -0.005202366970479488, 0.052968695759773254, 0.011604446917772293, -0.05109846219420433, 0.5025141835212708, 0.21025057137012482, 0.4353616535663605, -0.12510810792446136, -0.03554239124059677, -0.33554282784461975, -0.16869458556175232, -0.3205319941043854, 0.013056834228336811, -0.243704691529274, 0.20715177059173584, 0.2902575731277466, 0.37119346857070923, -0.07736610621213913, 0.08346813172101974, 0.22645851969718933, 0.4366154074668884, -0.11407551914453506, -0.22376064956188202, 0.11842508614063263, 0.25783097743988037, 0.13756795227527618, -0.3139262795448303, -0.01156965084373951, 0.3504678010940552, -0.21530185639858246, 0.03894605487585068, -0.008032734505832195, 0.44280189275741577, -0.02566058374941349, 0.03722747787833214, 0.044550973922014236, 0.44798508286476135, -0.011255288496613503, -0.27360936999320984, -0.18704548478126526, -0.15634660422801971, -0.5374301075935364, 0.34638166427612305, -0.06372237950563431, 0.6216843128204346, -0.5220503211021423, 0.10282387584447861, -0.027885301038622856, -0.5713896155357361, -0.13639608025550842, 0.043754491955041885, -0.34694769978523254, 0.16736802458763123, -0.14850805699825287, 0.22701197862625122, -0.007664536591619253, 0.4074021875858307, 0.10738766938447952, 0.05461287125945091, -0.2766761779785156, -0.06320873647928238, 0.27350422739982605, -0.1833561658859253, -0.033759456127882004, 0.05633983016014099, -0.1401643455028534, 0.17631463706493378, 0.11326850205659866, -0.691199004650116, -0.056176070123910904, 0.27116623520851135, -0.33089277148246765, -0.09300161898136139, 0.1532910019159317, 0.30746549367904663, -0.0901588425040245, -0.15916982293128967, 0.29226332902908325, 0.08038304001092911, -0.3020389974117279, -0.1117161363363266, -0.44239500164985657 ]
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.2616361975669861, -0.20614217221736908, 0.03750159218907356, 0.35491618514060974, -0.16824226081371307, 0.1174597516655922, 0.14335063099861145, 0.47420817613601685, 0.301339328289032, -0.025156566873192787, -0.041327059268951416, 0.7794692516326904, -0.4380647838115692, -0.000688968866597861, -0.03434515744447708, -0.13290269672870636, 0.07805660367012024, 0.03215648978948593, 0.14796561002731323, 0.17020604014396667, -0.07667763531208038, 0.08151911944150925, 0.14057506620883942, 0.07013846933841705, -0.03358405455946922, -0.23559238016605377, -0.005282862577587366, 0.32227617502212524, -0.022301431745290756, -0.0998794212937355, 0.3949323296546936, 0.02542540244758129, 0.01216587983071804, 0.370148628950119, -0.000121236706036143, 0.24145109951496124, 0.1444251388311386, 0.043431662023067474, -0.2983267307281494, -0.15977053344249725, -0.1191835030913353, -0.20820939540863037, 0.20166102051734924, -0.17145471274852753, 0.09304405748844147, -0.3221849501132965, 0.010363711975514889, -0.21758608520030975, 0.822708785533905, 0.1959591805934906, 0.08538028597831726, 0.09411817044019699, -0.037526145577430725, 0.18648217618465424, -0.15288767218589783, 0.24869823455810547, 0.0706447884440422, 0.41978490352630615, -0.07191938161849976, -0.15848350524902344, -0.13503502309322357, 0.15280388295650482, -0.21148918569087982, 0.15323509275913239, 0.11553392559289932, -0.0662335455417633, 0.10612980276346207, -0.012973947450518608, -0.04251733794808388, 0.2376263290643692, -0.013732758350670338, -0.11544456332921982, -0.2180211842060089, -0.5963213443756104, 0.06877338141202927, -0.3153631389141083, 0.14511528611183167, 0.18908417224884033, -0.25902560353279114, 0.22565142810344696, 0.12360333651304245, -0.5307228565216064, -0.055747177451848984, 0.12678901851177216, -0.009840674698352814, 0.37662041187286377, 0.10915841907262802, 0.2603285312652588, 0.27792954444885254, 0.056741923093795776, 0.19784533977508545, -0.18595749139785767, -0.1330091804265976, -0.06771133095026016, -0.19579064846038818, -0.2723720371723175, -0.1936011165380478, -0.7956870794296265, -0.030102482065558434, 0.274770587682724, 0.4105607569217682, -0.06493459641933441, -0.22216647863388062, 0.27169370651245117, 0.22300104796886444, -0.16228310763835907, -0.12647207081317902, 0.3251132369041443, 0.07979243993759155, -0.17404665052890778, 0.11103308945894241, 0.14239875972270966, -0.3329450786113739, -0.13938269019126892, -0.2668761610984802, 0.03581786900758743, 0.38384097814559937, 0.12438898533582687, -0.17216339707374573, -0.328220933675766, -0.4179406762123108, -0.16956186294555664, 0.12433091551065445, 0.04370976984500885, 0.026570161804556847, 0.49920445680618286, 0.028412429615855217, 0.39070436358451843, -0.18861466646194458, -0.2341752052307129, 0.06495190411806107, -0.015580838546156883, -0.11549191176891327, 0.025871053338050842, 0.23069846630096436, 0.39368173480033875, 0.2521831691265106, 0.02434607967734337, -0.2440880388021469, -0.08430855721235275, 0.3822433650493622, -0.021581923589110374, -0.08706063777208328, 0.08852962404489517, -0.029004860669374466, 0.056234877556562424, 0.1478368192911148, -0.16957737505435944, -0.32866033911705017, 0.2814544439315796, -0.2943264842033386, -0.1961504966020584, -0.021351531147956848, 0.03272835910320282, -0.037471890449523926, -0.21797645092010498, -0.5268863439559937, 0.3935556411743164, 0.3471505045890808, -0.10269547253847122, -0.01895514316856861, -0.16315528750419617, -0.3421746492385864, -0.2664162814617157, -0.056086137890815735, 0.14453692734241486, -0.4778343737125397, -0.32502537965774536, -0.2092004418373108, 0.0039787390269339085, 0.0233761053532362, 0.5663745403289795, -0.2850211262702942, 0.23819994926452637, -0.007004228886216879, 0.06573482602834702, 0.5314768552780151, -0.22013869881629944, -0.10846223682165146, 0.3468542695045471, -0.14925061166286469, 0.051852330565452576, 0.14399681985378265, 0.03958870843052864, 0.05261481553316116, -0.1308286190032959, 0.19372114539146423, 0.6393972039222717, -0.23447689414024353, -0.03235694020986557, -0.0442834198474884, -0.24771982431411743, 0.4179080128669739, 0.22437168657779694, -0.09492728114128113, 0.0199597105383873, -0.33404359221458435, -0.09496159851551056, 0.1253611296415329, -0.12286071479320526, 0.2665156126022339, 0.00904044322669506, 0.016794463619589806, -0.08218257874250412, -0.05573594570159912, -0.0020879923831671476, -0.5716664791107178, 0.025883130729198456, -0.15635888278484344, 0.04837570711970329, 0.036704983562231064, 0.08400586247444153, 0.024652840569615364, 0.024260705336928368, -0.10755398124456406, -0.18728835880756378, -0.030974099412560463, 0.13214240968227386, 0.03644254803657532, -0.3403080403804779, -0.32919660210609436, 0.21187923848628998, -0.032493699342012405, 0.24256812036037445, -0.43299636244773865, 0.5431373119354248, 0.20839600265026093, -0.1171969622373581, -0.08735042065382004, 0.048944633454084396, -0.09863347560167313, -0.007006451953202486, 0.0019494487205520272, 0.19421452283859253, -0.07572170346975327, 0.24421770870685577, 0.1699141412973404, 0.0654744878411293, 0.15953923761844635, -0.3383496105670929, 0.3486054241657257, 0.22281862795352936, -0.0673016831278801, -0.11751867085695267, -0.2634735703468323, 0.45348456501960754, 0.04240786284208298, 0.43298080563545227, -0.11042049527168274, 0.1415627896785736, 0.2285175770521164, -0.1195354014635086, -0.28437793254852295, 0.07551703602075577, 0.03811093047261238, -0.19899339973926544, 0.2602618336677551, -0.07587086409330368, -0.5680077075958252, 0.1407359391450882, 0.23863323032855988, -0.019906507804989815, -0.057345569133758545, 0.17850884795188904, -0.11552442610263824, -0.04873635619878769, -0.050761353224515915, 0.5043225288391113, 0.39029452204704285, 0.2023364007472992, 0.13303646445274353, 0.052772846072912216, -0.33323824405670166, -0.039054129272699356, 0.2645009160041809, 0.07319532334804535, 0.5722959637641907, 0.11114195734262466, 0.1884937733411789, -0.2298468053340912, -0.026041975244879723, -0.22596001625061035, 0.3757135272026062, 0.19608163833618164, -0.23285607993602753, 0.39234814047813416, -0.3859461545944214, -0.39462342858314514, -0.6372319459915161, -0.12649892270565033, -0.2228473722934723, -0.4076821208000183, -0.05966247618198395, 0.2941824793815613, -0.20083802938461304, 0.3044981062412262, -0.00839671865105629, 0.25332945585250854, -0.09697668254375458, -0.06331446021795273, -0.06503426283597946, -0.32261747121810913, -0.0971217155456543, 0.009573458693921566, 0.4663540720939636, 0.04869057983160019, 0.17793706059455872, 0.46265745162963867, -0.31117990612983704, 0.004037185106426477, -0.23305077850818634, 0.21388815343379974, -0.1255088597536087, 0.08863860368728638, 0.12302150577306747, -0.03343162685632706, 0.33056139945983887, -0.39431115984916687, 0.010141261853277683, -0.01320678275078535, -0.20627892017364502, -0.09490293264389038, 0.02860666811466217, 0.34867143630981445, -0.10701867938041687, -0.3093833029270172, -0.3159712851047516, -0.3946548402309418, 0.22593152523040771, 0.05162711814045906, 0.21610486507415771, 0.4295203685760498, 0.17626862227916718, 0.04634854570031166, 0.15556815266609192, -0.026216980069875717, 0.014795878902077675, -0.04559844732284546, 0.03388535976409912, -0.3673451840877533, 0.18973605334758759, -0.28431981801986694, -0.2059621959924698, 0.4252789616584778, 0.11522559821605682, -0.3176316022872925, 0.34408795833587646, -0.04343210533261299, -0.016712626442313194, -0.22249603271484375, -0.36225223541259766, 0.024420106783509254, 0.17806363105773926, 0.04527062550187111, -0.03387673944234848, 0.14686720073223114, 0.22607898712158203, 0.11215973645448685, 0.232439324259758, 0.2633693218231201, 0.32876652479171753, 0.19266216456890106, 0.8260396718978882, 0.08513934910297394, -0.11768484860658646, -0.06167984753847122, 0.0974348857998848, -0.2724161744117737, 0.03750845789909363, -0.09409838169813156, -0.23913682997226715, -0.0824233666062355, 0.06999379396438599, -0.027406740933656693, 0.06073441356420517, -0.47482892870903015, -0.01649913378059864, 0.038460906594991684, -0.0694512277841568, -0.34801432490348816, 0.4364904761314392, -0.5182206034660339, 0.062152665108442307, -0.11403201520442963, -0.31194639205932617, -0.25599128007888794, 0.051492318511009216, -0.2783668637275696, -0.05209514498710632, 0.12091633677482605, -0.07203459739685059, -0.4131588339805603, 0.1993461400270462, -0.3643967807292938, 0.203083798289299, -0.11064763367176056, 0.26123368740081787, 0.09755278378725052, -0.24449984729290009, -0.028141289949417114, -0.24869374930858612, 0.7580450773239136, -0.07483968138694763, 0.10267414152622223, 0.09708075225353241, 0.10428094863891602, -0.5244819521903992, 0.02192218042910099, -0.2186836451292038, 0.48393991589546204, 0.30865490436553955, 0.39030835032463074, -0.3387852907180786, -0.28004905581474304, 0.19921866059303284, -0.14636382460594177, -0.26133978366851807, -0.015422257594764233, 0.02755735069513321, -0.12545134127140045, -0.41561973094940186, -0.08439917862415314, 0.06511702388525009, 0.05818317458033562, -0.13755638897418976, 0.04626915976405144, -0.1992902308702469, -0.1609223634004593, 0.09174161404371262, -0.015353311784565449, -0.1788317710161209, 0.013565651141107082, 0.20813427865505219, -0.11286678910255432, 0.22143973410129547, 0.15892992913722992, 0.6004506349563599, 0.24924372136592865, -0.31629684567451477, -0.030480122193694115, 0.16834887862205505, 0.2941433787345886, 0.04303162544965744, 0.1952894926071167, 0.3621748685836792, 0.3023659288883209, -0.06501669436693192, -0.12209831923246384, 0.10001319646835327, -0.09102976322174072, 0.08359529823064804, -0.4143505394458771, -0.3978828489780426, 0.403308629989624, 0.2466866374015808, -0.0018952818354591727, 0.41538006067276, -0.35486987233161926, -0.3739951550960541, 0.2413821965456009, 0.20819246768951416, 0.8665278553962708, -0.011607393622398376, 0.1625169962644577, 0.474966824054718, -0.5066372752189636, 0.7132515907287598, -0.48812881112098694, 0.05089918524026871, -0.17401976883411407, 0.2263568937778473, -0.038674935698509216, -0.160079225897789, 0.06535252928733826, 0.5145103931427002, -0.12492343038320541, 0.19100870192050934, 0.21155300736427307, -0.410462349653244, -0.02679521217942238, 0.4065260887145996, -0.0034950762055814266, -0.2639392018318176, -0.2312743216753006, -0.04259609431028366, -0.43423032760620117, -0.09860336035490036, 0.1533997803926468, -0.31867238879203796, -0.21091198921203613, -0.13211297988891602, -0.14479348063468933, 0.11916793137788773, 0.12161725759506226, 0.2122848480939865, 0.21920865774154663, -0.4170313775539398, 0.210544615983963, -0.13370703160762787, 0.008059296756982803, -0.27455443143844604, -0.047329019755125046, -0.034272775053977966, -0.2372591644525528, 0.0514213964343071, -0.07891042530536652, -0.12074185162782669, 0.3871482014656067, 0.02044202759861946, -0.1895027458667755, -0.08734172582626343, 0.007570780813694, -0.3587483763694763, 0.12812338769435883, -0.04320387542247772, -0.09221519529819489, 0.05384981632232666, -0.21291063725948334, 0.3441677987575531, -0.3149488866329193, -0.17514926195144653, -0.014775966294109821, 0.06271528452634811, -0.18686453998088837, -0.1603604406118393, -0.01799231767654419, -0.15483033657073975, 0.03775404021143913, 0.11759448051452637, 0.20872175693511963, 0.11843167990446091, 0.5312074422836304, 0.3709815740585327, 0.21507543325424194, -0.18854287266731262, -0.00570377241820097, 0.25211840867996216, -0.4778158664703369, 0.13726146519184113, -0.2956438660621643, -0.16878153383731842, 0.05755830183625221, -0.07784898579120636, 0.13266001641750336, 0.44252124428749084, -0.046945538371801376, -0.39816540479660034, -0.2747647166252136, 0.45575255155563354, -0.11033421009778976, 0.09982459247112274, -0.11735070496797562, 0.23049584031105042, -0.05339578539133072, 0.39786723256111145, -0.17707893252372742, 0.2526502311229706, -0.004827199038118124, 0.3383486866950989, 0.0565917044878006, -0.06884278357028961, -0.06236769258975983, 0.12944819033145905, -0.03588086739182472, -0.05607353895902634, 0.05162322148680687, -0.08489762991666794, -0.1986643373966217, 0.11358492076396942, 0.009809744544327259, -0.14019125699996948, 0.07157588005065918, -0.27808907628059387, -0.06067560240626335, 0.03993833810091019, -0.1343807876110077, -0.3121053874492645, -0.09116494655609131, 0.3229660391807556, 0.002907938789576292, 0.08505044132471085, -0.14960399270057678, 0.22550542652606964, 0.003247500630095601, 0.11738158017396927, -0.06543990224599838, 0.33539149165153503, 0.19352175295352936, -0.09993453323841095, -0.685693621635437, -0.05327201262116432, 0.05232559144496918, 0.0030718513298779726, 0.1092381551861763, -0.20008020102977753, -0.13155263662338257, -0.2898884117603302, 0.25366511940956116, 0.44635096192359924, -0.0739394947886467, 0.19580340385437012, 0.24063211679458618, 0.0633561760187149, -0.06349602341651917, 0.08822006732225418, 0.48354995250701904, -0.31665530800819397, 0.07115854322910309, 0.3000306189060211, -0.16041596233844757, 0.14730918407440186, -0.3009878993034363, 0.052718278020620346, 0.08225525915622711, -0.12545736134052277, 0.3439554274082184, 0.32149115204811096, -0.3618199825286865, -0.04010150581598282, 0.16148820519447327, -0.11939164251089096, 0.4025028944015503, 0.048444002866744995, 0.2046440839767456, 0.3204604685306549, 0.2750091552734375, -0.05576576292514801, 0.4221300780773163, -0.3098087012767792, -0.35927626490592957, -0.0007554630283266306, 0.035841092467308044, 0.24835579097270966, 0.2836802303791046, 0.592164158821106, 0.1722434163093567, -0.27736714482307434, 0.09167018532752991, 0.5221627950668335, -0.012186401523649693, -0.2795134484767914, -0.6138970255851746, 0.06278573721647263, -0.22346000373363495, 0.05790889263153076, -0.04248504713177681, -0.24305278062820435, 0.201994851231575, 0.19612528383731842, 0.046090032905340195, -0.4166121482849121, 0.3033423125743866, 0.1623995155096054, -0.024526597931981087, -0.2011002004146576, 0.24909168481826782, 0.25444117188453674, -0.1284007430076599, 0.07052180916070938, 0.03482891246676445, 0.3172623813152313, 0.08646193146705627, -0.36840683221817017, -0.008964678272604942, 0.1396891176700592, -0.07741038501262665, -0.17332787811756134, 0.18539896607398987, 0.2654222846031189, 0.06291567534208298, 0.36063152551651, 0.007665982004255056, -0.09079663455486298, 0.028115730732679367, 0.4000339210033417, 0.09570268541574478, -0.31851956248283386, 0.5138179659843445, 0.17292886972427368, -0.21440908312797546, 0.32872357964515686, 0.08661551028490067, -0.41809993982315063, -0.1664087325334549, 0.2632782459259033, -0.03458933159708977, 0.0029009198769927025, 0.14589855074882507, 0.015029816888272762, -0.07314661890268326, 0.6327581405639648, 0.17509517073631287, 0.268452525138855, -0.030280863866209984, 0.048775482922792435, -0.323771595954895, -0.09668605774641037, -0.2670506536960602, -0.01934615522623062, -0.2650860548019409, 0.21121974289417267, 0.3434884250164032, 0.4839077293872833, -0.1652052402496338, 0.08608771860599518, 0.24591264128684998, 0.2894406318664551, -0.16102302074432373, -0.30691173672676086, 0.2202853411436081, 0.34863048791885376, 0.1889546662569046, -0.35020846128463745, -0.06863271445035934, 0.4095512628555298, -0.16187095642089844, 0.046493254601955414, -0.067489854991436, 0.2403896152973175, 0.03280114755034447, 0.04901624470949173, 0.1321929395198822, 0.48775729537010193, -0.03355561941862106, -0.37634509801864624, -0.21495680510997772, -0.17248277366161346, -0.4667957127094269, 0.23788981139659882, -0.01855677179992199, 0.7020078897476196, -0.5233491063117981, 0.1436809003353119, -0.2510557472705841, -0.3602832853794098, -0.17429646849632263, 0.06904041767120361, -0.3635818064212799, 0.26126614212989807, -0.11661799252033234, 0.19276165962219238, -0.04478522017598152, 0.42782309651374817, 0.04208904877305031, 0.1251770257949829, -0.3780817985534668, 0.03844433277845383, 0.37097784876823425, -0.21457019448280334, -0.1265934705734253, 0.20505262911319733, -0.12254127860069275, 0.15624409914016724, 0.19384276866912842, -0.5580319166183472, -0.05038342997431755, 0.27294227480888367, -0.29998594522476196, -0.11327915638685226, 0.16607818007469177, 0.2374662309885025, -0.11079804599285126, -0.03105836734175682, 0.25762856006622314, 0.13076743483543396, -0.2719534933567047, 0.03826752305030823, -0.31470176577568054 ]
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.2255922555923462, -0.21397575736045837, 0.013712040148675442, 0.18746072053909302, -0.2855694591999054, 0.1027282252907753, 0.08597809076309204, 0.30907103419303894, 0.2629741430282593, -0.13470247387886047, 0.0771385207772255, 0.6757096648216248, -0.37672364711761475, 0.13001547753810883, 0.10404322296380997, -0.20217837393283844, 0.1567046344280243, 0.030568072572350502, 0.24324066936969757, 0.12467441707849503, -0.0030578600708395243, -0.14042304456233978, 0.15677522122859955, 0.01511392556130886, -0.06111513078212738, -0.24104726314544678, -0.11194045841693878, 0.18317782878875732, 0.043623778969049454, 0.008080894127488136, 0.42428985238075256, 0.16824759542942047, -0.035753075033426285, 0.33148473501205444, -0.00011822034139186144, 0.12424762547016144, 0.10824823379516602, 0.14582382142543793, -0.2584880590438843, -0.15566428005695343, -0.11276736110448837, -0.13710565865039825, 0.21311131119728088, -0.1448483020067215, 0.13674427568912506, -0.3278985023498535, 0.17084279656410217, -0.12972362339496613, 0.769985556602478, 0.1335000842809677, 0.10888522118330002, 0.0454336479306221, -0.12471427768468857, 0.2250993698835373, -0.24784545600414276, 0.2831079363822937, 0.07890328019857407, 0.2020106166601181, 0.011535044759511948, -0.16213692724704742, -0.16383247077465057, 0.020395485684275627, -0.15259552001953125, 0.10968058556318283, 0.12503881752490997, -0.12215995788574219, 0.05436306446790695, -0.027397319674491882, -0.027714524418115616, 0.35357552766799927, -0.011500024236738682, -0.1214190423488617, -0.16663232445716858, -0.6308937668800354, 0.07149573415517807, -0.19561804831027985, -0.03272459656000137, 0.1070844978094101, -0.17028002440929413, 0.2213975340127945, 0.12797892093658447, -0.580143392086029, 0.03578072041273117, 0.11033527553081512, -0.06239153817296028, 0.3296544551849365, 0.17296123504638672, 0.19765041768550873, 0.255298376083374, 0.059415221214294434, 0.322023868560791, -0.2034490555524826, -0.018766537308692932, -0.030843738466501236, -0.15463146567344666, -0.26073184609413147, -0.14788047969341278, -0.6261652708053589, -0.001197200734168291, 0.2987721860408783, 0.3444441854953766, 0.029549572616815567, -0.37623536586761475, 0.23496310412883759, 0.18564699590206146, -0.26870349049568176, -0.1834816038608551, 0.28089675307273865, 0.014772671274840832, -0.2175782024860382, 0.05006779730319977, 0.14556348323822021, -0.39281129837036133, 0.01090126670897007, -0.35346996784210205, -0.06366590410470963, 0.345140278339386, 0.19899305701255798, -0.19005601108074188, -0.4027470052242279, -0.23241424560546875, -0.144346222281456, 0.1434204876422882, 0.0017942818813025951, 0.027226222679018974, 0.564971923828125, -0.07313908636569977, 0.3858676552772522, -0.2132073938846588, -0.23110602796077728, 0.02328864112496376, -0.05437937751412392, -0.13618400692939758, 0.01079695113003254, 0.10719268023967743, 0.5068041086196899, 0.15110892057418823, -0.019406499341130257, -0.3058047294616699, -0.07697340101003647, 0.4386521279811859, -0.05467063933610916, -0.07734392583370209, -0.045845530927181244, -0.06225573644042015, 0.08189760148525238, 0.09541971981525421, -0.08166475594043732, -0.26060134172439575, 0.21036671102046967, -0.17669346928596497, -0.13158182799816132, 0.0219497699290514, 0.06713994592428207, 0.0027992369141429663, -0.3125677704811096, -0.5295146703720093, 0.639569103717804, 0.19600071012973785, -0.06902177631855011, 0.010107895359396935, -0.003934834618121386, -0.3481336534023285, -0.23170886933803558, -0.010425218380987644, 0.05294463038444519, -0.3890053331851959, -0.3615550994873047, -0.22791804373264313, 0.011745086871087551, -0.06761510670185089, 0.45653462409973145, -0.24342285096645355, 0.17877690494060516, 0.034173622727394104, 0.016695218160748482, 0.563964307308197, -0.18105033040046692, -0.05994351580739021, 0.23426134884357452, -0.23425844311714172, 0.0363018698990345, 0.0825456753373146, 0.14395487308502197, -0.03816801682114601, -0.18145422637462616, 0.05704426392912865, 0.7605226635932922, -0.28688734769821167, -0.004072536248713732, 0.06457147747278214, -0.2386101633310318, 0.3192778527736664, 0.2190309464931488, -0.06276453286409378, 0.05482640117406845, -0.3312344551086426, -0.022384408861398697, 0.22037944197654724, -0.04920905455946922, 0.30523768067359924, -0.10402971506118774, -0.12169674783945084, -0.08697398751974106, -0.11415551602840424, -0.15052568912506104, -0.47007232904434204, -0.017650337889790535, 0.06896515190601349, 0.011858477257192135, 0.28297945857048035, -0.0816035270690918, 0.055230192840099335, -0.018846524879336357, -0.021703483536839485, -0.009687008336186409, -0.007629603147506714, 0.09644453972578049, 0.032852932810783386, -0.2809765338897705, -0.3709951341152191, 0.11228679865598679, -0.04721829667687416, 0.20591293275356293, -0.3807465434074402, 0.48854681849479675, 0.29257622361183167, 0.01599433831870556, -0.09338339418172836, 0.213765949010849, -0.15946941077709198, 0.04179568216204643, 0.18024814128875732, 0.0719098150730133, -0.20720314979553223, 0.4196842610836029, 0.1911344826221466, 0.12245535850524902, 0.18480633199214935, -0.3710249960422516, 0.28033336997032166, 0.1075650006532669, -0.10182328522205353, -0.17907285690307617, -0.2775411605834961, 0.30333849787712097, 0.10361890494823456, 0.4381713271141052, -0.008315501734614372, 0.15381968021392822, 0.1474599540233612, -0.190201073884964, -0.24455441534519196, 0.14091330766677856, 0.09184782207012177, -0.17031732201576233, 0.29282957315444946, -0.0660920962691307, -0.5334091782569885, 0.26631003618240356, 0.25970977544784546, -0.023101678118109703, -0.006763975601643324, 0.0656958818435669, -0.22788895666599274, -0.027263609692454338, -0.08004046976566315, 0.5746639966964722, 0.16693978011608124, 0.2245681881904602, 0.3080443739891052, 0.012802871875464916, -0.30455899238586426, -0.0158982016146183, 0.21376869082450867, 0.12955980002880096, 0.5631979703903198, 0.011666277423501015, 0.21227194368839264, -0.24072718620300293, -0.04500913992524147, -0.2099662870168686, 0.4044647812843323, 0.04077838361263275, -0.08481454104185104, 0.36554285883903503, -0.35086119174957275, -0.4246233403682709, -0.6468886137008667, -0.18502135574817657, -0.15520496666431427, -0.3520291745662689, -0.025488803163170815, 0.30398061871528625, -0.13394659757614136, 0.22586169838905334, -0.012356090359389782, 0.2932180166244507, -0.3522542119026184, 0.008981098420917988, 0.0060003758408129215, -0.41633662581443787, -0.03309047594666481, 0.06513454765081406, 0.5234522223472595, 0.17995458841323853, 0.2201526165008545, 0.48027303814888, -0.28847429156303406, 0.022892124950885773, -0.1987534463405609, 0.21831010282039642, -0.0874338299036026, -0.029772579669952393, 0.059647224843502045, -0.11225836724042892, 0.20679159462451935, -0.2833403944969177, -0.10182087123394012, -0.016040874645113945, -0.13604213297367096, -0.13776293396949768, -0.037746693938970566, 0.32850381731987, -0.06296288967132568, -0.1650238186120987, -0.3227212727069855, -0.3119983375072479, 0.3506128787994385, 0.036876317113637924, 0.16554245352745056, 0.31130048632621765, 0.07971720397472382, 0.051015812903642654, 0.17139571905136108, -0.02939276024699211, 0.1030355840921402, -0.06838587671518326, -0.14362335205078125, -0.2770159840583801, 0.20353266596794128, -0.29743146896362305, -0.2434927523136139, 0.39838454127311707, 0.12820611894130707, -0.23717312514781952, 0.40225672721862793, -0.05766047164797783, -0.04828372225165367, -0.14535261690616608, -0.3861066699028015, 0.07290322333574295, 0.0853460431098938, 0.05844935402274132, -0.03815515339374542, 0.22280500829219818, 0.1892828345298767, 0.1013861894607544, 0.19681212306022644, 0.22058914601802826, 0.18876852095127106, 0.19562599062919617, 0.8005094528198242, 0.0264448169618845, -0.18821412324905396, -0.13733743131160736, 0.1523602157831192, -0.34942394495010376, 0.08590785413980484, -0.03668063133955002, -0.14925356209278107, -0.0511699914932251, 0.07918370515108109, 0.0792011246085167, 0.03233996406197548, -0.38235682249069214, 0.010870702564716339, -0.00444386713206768, -0.08405915647745132, -0.27899932861328125, 0.3753068149089813, -0.6413502097129822, -0.0014685580972582102, -0.036607831716537476, -0.37952524423599243, -0.281398743391037, 0.025527209043502808, -0.39601269364356995, -0.0763845443725586, 0.12835478782653809, -0.02530866675078869, -0.5550844073295593, 0.2587536871433258, -0.4043119251728058, 0.10655273497104645, -0.14971090853214264, 0.10829736292362213, 0.13370411098003387, -0.21574996411800385, -0.0077799162827432156, -0.25126370787620544, 0.7265209555625916, -0.06211182847619057, 0.07743790745735168, -0.02189812622964382, 0.2443380206823349, -0.5533456802368164, 0.11869142949581146, -0.16433678567409515, 0.48465099930763245, 0.21805571019649506, 0.18558552861213684, -0.35365232825279236, -0.26115164160728455, 0.15441390872001648, -0.13399024307727814, -0.2371198534965515, 0.03461571782827377, 0.09012485295534134, -0.07537204027175903, -0.28768882155418396, -0.04919932782649994, 0.11333058774471283, -0.08350110054016113, -0.20090381801128387, -0.035626303404569626, -0.2293889820575714, -0.10234741121530533, 0.1347271353006363, -0.02093261107802391, -0.2114555388689041, 0.002698565600439906, 0.19488155841827393, -0.09133146703243256, 0.21668550372123718, 0.17786432802677155, 0.5501307249069214, 0.1080016940832138, -0.40333038568496704, -0.06946936249732971, 0.17530697584152222, 0.35901907086372375, 0.0023799047339707613, 0.4114625155925751, 0.5049765706062317, 0.44894447922706604, -0.20140795409679413, -0.1918381303548813, 0.14674706757068634, -0.12100901454687119, 0.1619018018245697, -0.4613930284976959, -0.3900200426578522, 0.4433450698852539, 0.2551620304584503, -0.01871010847389698, 0.3786333203315735, -0.29205039143562317, -0.3776569068431854, 0.34678447246551514, 0.09686700254678726, 0.7605608701705933, -0.1275995373725891, 0.24655690789222717, 0.22341899573802948, -0.48369237780570984, 0.8631590604782104, -0.4748443067073822, 0.04446933791041374, -0.09992755949497223, 0.13517114520072937, -0.05825475975871086, -0.15133801102638245, -0.08579949289560318, 0.5734061598777771, -0.09484872221946716, 0.11308468133211136, 0.21729588508605957, -0.396277517080307, 0.01107105053961277, 0.40080031752586365, 0.00258288043551147, -0.24148699641227722, -0.12340635061264038, -0.0043782745487987995, -0.3816986382007599, -0.16986319422721863, 0.07841307669878006, -0.18440262973308563, -0.12993566691875458, 0.01246968749910593, -0.13749079406261444, 0.10008704662322998, 0.1305067241191864, 0.05572126433253288, 0.1529756784439087, -0.4156392216682434, 0.19851341843605042, -0.15587688982486725, 0.15041227638721466, -0.3637373447418213, -0.09308480471372604, 0.03811438009142876, -0.16749194264411926, 0.07359883934259415, -0.09419184178113937, -0.24205628037452698, 0.44147467613220215, 0.10908228904008865, -0.2119496911764145, -0.125206857919693, 0.03774689510464668, -0.23223964869976044, -0.028827935457229614, -0.04950924962759018, 0.09024679660797119, 0.23527029156684875, -0.2116110920906067, 0.4793803095817566, -0.30604076385498047, -0.17583155632019043, 0.009361064061522484, 0.05178317427635193, -0.0910811647772789, -0.2078321874141693, -0.036681242287158966, -0.05142802372574806, 0.09557433426380157, 0.02400515228509903, 0.24926809966564178, 0.04293936491012573, 0.4369224011898041, 0.38840410113334656, 0.2362613081932068, -0.17364609241485596, -0.11260444670915604, 0.3920322358608246, -0.4630272388458252, 0.06548955291509628, -0.301179975271225, -0.24097977578639984, 0.16308251023292542, -0.08934101462364197, 0.043743010610342026, 0.33438029885292053, -0.1670922338962555, -0.37851500511169434, -0.21000204980373383, 0.5031383037567139, -0.1560942679643631, 0.1168874055147171, -0.07204591482877731, 0.27504998445510864, 0.028588447719812393, 0.4572604298591614, -0.18177570402622223, 0.24920998513698578, 0.07249753177165985, 0.3490793704986572, 0.004369855858385563, -0.012064320035278797, -0.1322566568851471, 0.1297162026166916, -0.06168875843286514, -0.002890379633754492, 0.12256407737731934, -0.1128113865852356, -0.19619713723659515, 0.11714239418506622, 0.07788010686635971, -0.14470037817955017, 0.08970494568347931, -0.24466122686862946, 0.03028414584696293, 0.011950288899242878, -0.11402057111263275, -0.323420912027359, -0.06768500804901123, 0.22828048467636108, 0.09073790162801743, 0.1796734631061554, -0.2158171832561493, 0.17260849475860596, 0.10360638797283173, -0.008180822245776653, -0.13441349565982819, 0.36303403973579407, 0.2937323749065399, -0.08276939392089844, -0.5364310145378113, -0.06324601918458939, 0.2846279740333557, 0.012341721914708614, -0.023060277104377747, -0.11943459510803223, -0.07787973433732986, -0.2318902462720871, 0.26514044404029846, 0.433212012052536, 0.006192546803504229, 0.19340406358242035, 0.2808111310005188, 0.12228522449731827, -0.049934856593608856, 0.0790429636836052, 0.48915183544158936, -0.3450672924518585, 0.08497938513755798, 0.2614116072654724, -0.11775323748588562, 0.12299270927906036, -0.3080473840236664, 0.0012803325662389398, -0.03169705718755722, -0.20970457792282104, 0.3735482692718506, 0.23101851344108582, -0.295854389667511, -0.08317358791828156, 0.144883930683136, -0.1254047155380249, 0.32391586899757385, 0.11882201582193375, 0.2797054350376129, 0.49255624413490295, 0.335367351770401, -0.09458113461732864, 0.5092291235923767, -0.19007885456085205, -0.3325271010398865, -0.0650515928864479, 0.1259596049785614, 0.27402257919311523, 0.2377757430076599, 0.6080207228660583, 0.23677390813827515, -0.2535492181777954, 0.09609488397836685, 0.48036304116249084, -0.008023545145988464, -0.2975945472717285, -0.6598876118659973, 0.10005412250757217, -0.1282501220703125, -0.02726261503994465, -0.0683545470237732, -0.2648772895336151, 0.23479200899600983, 0.12117908149957657, 0.1713862270116806, -0.37832000851631165, 0.23704223334789276, 0.121577687561512, 0.020864499732851982, -0.08967231959104538, 0.19880647957324982, 0.19969797134399414, -0.15325435996055603, 0.11747875064611435, 0.05303582921624184, 0.11605827510356903, -0.04319212958216667, -0.4731793701648712, 0.051317572593688965, 0.11386614292860031, -0.05852070078253746, -0.23653213679790497, 0.12243442982435226, 0.29206275939941406, 0.010961068794131279, 0.33452272415161133, 0.019128957763314247, -0.11690275371074677, 0.009604024700820446, 0.4403288960456848, -0.029326684772968292, -0.4878627061843872, 0.45880043506622314, 0.20775139331817627, -0.23039592802524567, 0.2585623264312744, 0.2308827042579651, -0.38792359828948975, -0.15843883156776428, 0.3280765414237976, -0.23747457563877106, -0.05052464082837105, 0.12835538387298584, 0.0263886246830225, -0.04248333349823952, 0.5274131894111633, 0.1472373604774475, 0.38152214884757996, 0.046757787466049194, -0.038812581449747086, -0.3185812532901764, -0.027885882183909416, -0.2809959650039673, -0.022637734189629555, -0.3062278926372528, 0.1478826254606247, 0.30639323592185974, 0.3770580589771271, -0.22428834438323975, 0.047901708632707596, 0.2318759709596634, 0.3143719732761383, -0.07991766184568405, -0.28440386056900024, 0.13490480184555054, 0.2836180031299591, 0.1767905354499817, -0.29517248272895813, -0.058175940066576004, 0.5080991983413696, -0.19289690256118774, 0.07086456567049026, -0.020798932760953903, 0.28691086173057556, -0.029681144282221794, 0.04831830412149429, 0.06427719444036484, 0.45362886786460876, -0.06978316605091095, -0.4069775640964508, -0.24577365815639496, -0.13262856006622314, -0.5627464652061462, 0.28361383080482483, -0.09076400846242905, 0.6159167289733887, -0.5590016841888428, 0.2587597966194153, -0.04052137956023216, -0.5787867903709412, -0.07629555463790894, 0.08160394430160522, -0.4081572890281677, 0.25030264258384705, -0.2056223750114441, 0.1880093812942505, 0.07629278302192688, 0.5517149567604065, 0.06931328773498535, 0.01992998644709587, -0.20701003074645996, 0.060448210686445236, 0.21921969950199127, -0.17703717947006226, -0.05856575816869736, 0.08326193690299988, -0.09255997836589813, 0.11864233016967773, 0.1360611915588379, -0.5521398782730103, -0.14666226506233215, 0.2632935047149658, -0.30440083146095276, -0.03151961788535118, 0.1822446584701538, 0.20294250547885895, -0.13057753443717957, -0.08262532949447632, 0.31332117319107056, 0.1231718510389328, -0.3210166096687317, 0.07176382094621658, -0.3371945023536682 ]
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.09977789968252182, -0.24149997532367706, -0.11181346327066422, 0.18103191256523132, 0.1970851719379425, -0.015226945281028748, 0.023252706974744797, 0.4885348379611969, -0.09128009527921677, 0.1816319227218628, -0.2126609832048416, 0.05594266206026077, -0.24527433514595032, 0.32904180884361267, 0.2647450268268585, -0.0670858845114708, 0.01187262311577797, -0.023008784279227257, -0.12329449504613876, 0.05257992446422577, 0.09177336096763611, -0.1653289794921875, 0.09191134572029114, -0.12054266780614853, -0.26543712615966797, -0.1660660058259964, -0.2189669907093048, 0.09609697014093399, -0.3439057171344757, -0.4318132996559143, -0.1703833043575287, 0.21858811378479004, 0.35815706849098206, 0.616869330406189, -0.0001192067502415739, -0.26396772265434265, -0.10698241740465164, -0.32708415389060974, -0.3645773231983185, 0.0406491681933403, -0.009129957295954227, -0.32537123560905457, -0.11891305446624756, -0.1130114272236824, -0.1868097186088562, -0.23913072049617767, 0.12401320040225983, -0.28798234462738037, 0.8988135457038879, -0.225703626871109, 0.05682514235377312, -0.09951941668987274, -0.14257504045963287, 0.020034659653902054, 0.1949753761291504, 0.2649681568145752, -0.0998329445719719, 0.027565529569983482, 0.763184130191803, 0.2729377746582031, -0.13797800242900848, 0.11585696041584015, 0.10288162529468536, -0.22398823499679565, 0.09536894410848618, -0.20593775808811188, -0.016001835465431213, -0.31116983294487, -0.09926347434520721, 0.22546257078647614, 0.49712592363357544, -0.23121602833271027, -0.2989943027496338, -0.3494286835193634, 0.08489953726530075, 0.08836390823125839, -0.09537161886692047, 0.3142317831516266, -0.006444373168051243, 0.3016771674156189, -0.325799822807312, -0.4009293019771576, -0.4019840955734253, -0.0720784068107605, 0.2573391795158386, -0.11619823426008224, -0.08087713271379471, 0.024495359510183334, -0.14715689420700073, -0.21981181204319, -0.05847181752324104, -0.15253803133964539, 0.07155285775661469, 0.2345581203699112, -0.06751497089862823, -0.373277872800827, -0.13379545509815216, -0.1824217289686203, 0.6460010409355164, 0.1989934891462326, 0.19533944129943848, -0.09297086298465729, 0.17658761143684387, -0.08645563572645187, 0.38820743560791016, -0.013276724144816399, 0.0069345952942967415, -0.35356828570365906, 0.16025304794311523, 0.05664600804448128, 0.015451990067958832, -0.016639161854982376, -0.3482198417186737, 0.11945077031850815, -0.07809498906135559, -0.11981649696826935, 0.20129956305027008, 0.12794221937656403, 0.1323254406452179, 0.14889220893383026, -0.12242323905229568, 0.03351719304919243, 0.144546240568161, 0.23882582783699036, -0.12815870344638824, 0.15342310070991516, -0.08634573221206665, 0.08346850425004959, 0.16095103323459625, -0.20937491953372955, 0.029915709048509598, -0.03088442049920559, -0.10510621219873428, 0.3303556740283966, 0.20673447847366333, -0.07105815410614014, 0.065358467400074, 0.024782352149486542, 0.36022236943244934, -0.4267212748527527, 0.17483308911323547, 0.10028208792209625, 0.017522279173135757, -0.1147700846195221, 0.16474808752536774, 0.08158914744853973, -0.2149353325366974, -0.1712435781955719, -0.20713676512241364, 0.129435732960701, -0.19648057222366333, -0.24238210916519165, -0.054486896842718124, 0.01029748935252428, -0.316289484500885, 0.21428683400154114, 0.004326831549406052, 0.3083495795726776, 0.0286603644490242, -0.02677583321928978, -0.09055139124393463, 0.280902624130249, -0.2474738359451294, -0.2410406768321991, 0.10920949280261993, 0.6122673153877258, -0.28520894050598145, -0.08076027035713196, 0.6636144518852234, 0.08361096680164337, -0.5348963737487793, 0.3374616801738739, -0.0009945742785930634, 0.103321872651577, 0.10663379728794098, -0.2227986752986908, 0.3268621861934662, -0.4240094721317291, -0.38107702136039734, 0.43061065673828125, -0.24528582394123077, -0.1893833577632904, 0.36365991830825806, -0.015509269200265408, 0.728866696357727, -0.29471999406814575, -0.02273828163743019, 0.3314569294452667, -0.07712656259536743, 0.23544220626354218, -0.30255722999572754, -0.3982692360877991, -0.2546401917934418, 0.28393253684043884, -0.21407128870487213, -0.11608319729566574, -0.17993035912513733, 0.2502491772174835, 0.24690058827400208, -0.10993068665266037, 0.3165056109428406, -0.10181596875190735, 0.36395490169525146, 0.08395858108997345, -0.07959984987974167, -0.08678564429283142, -0.7564769387245178, -0.14311407506465912, -0.08402658998966217, -0.32805901765823364, 0.1860293596982956, -0.46969279646873474, -0.32122471928596497, -0.09506141394376755, -0.07124616205692291, -0.09543119370937347, -0.03862498700618744, -0.1620655655860901, 0.25396955013275146, -0.07968420535326004, -0.3652379512786865, 0.18966379761695862, -0.03901175037026405, 0.1111782118678093, -0.19520039856433868, 0.10738015174865723, 0.1137763187289238, -0.014933575876057148, 0.2077329307794571, 0.2578849196434021, 0.008384672924876213, -0.3317629098892212, 0.3545594811439514, 0.13197582960128784, -0.13364456593990326, 0.081266388297081, 0.12269886583089828, 0.13172651827335358, 0.3408951163291931, 0.2437705546617508, 0.3483714759349823, -0.043961964547634125, -0.09898088127374649, -0.14423097670078278, -0.5008672475814819, 0.3706686794757843, -0.2921046018600464, 0.11036144196987152, -0.15323799848556519, -0.13454779982566833, 0.17231111228466034, 0.06911130249500275, -0.2613065838813782, 0.06810736656188965, -0.1646810919046402, 0.11014457792043686, 0.34428614377975464, 0.08799352496862411, -0.0871092677116394, 0.1333632916212082, 0.39192330837249756, -0.21698664128780365, 0.017970010638237, 0.05168890953063965, 0.1255057454109192, -0.031247591599822044, -0.05649646744132042, -0.26302942633628845, 0.1382659673690796, 0.17467789351940155, -0.12837213277816772, 0.06472853571176529, 0.4244448244571686, -0.0671784058213234, -0.04623612388968468, 0.05431417375802994, 0.22988863289356232, 0.2028607726097107, 0.370059609413147, -0.1126026064157486, 0.11165627837181091, 0.04177486523985863, 0.12057951837778091, -0.05689603462815285, -0.18172986805438995, 0.005491656716912985, 0.12628985941410065, 0.2495284527540207, -0.21989014744758606, 0.23561015725135803, -0.2114342749118805, 0.21344302594661713, 0.2909429669380188, 0.17719508707523346, 0.10425665974617004, 0.08397261798381805, 0.2970293462276459, 0.8125569224357605, 0.0710541158914566, -0.2512120008468628, 0.1529858410358429, -0.20072533190250397, 0.3018529415130615, -0.03714434430003166, 0.3549654185771942, -0.47940677404403687, 0.21002957224845886, -0.10897934436798096, 0.03522462025284767, -0.24281498789787292, -0.1994037628173828, 0.12995645403862, -0.02447078563272953, 0.1560816764831543, -0.13501162827014923, 0.2721754312515259, -0.28081515431404114, -0.030708838254213333, 0.11754816770553589, -0.04795699939131737, -0.19015717506408691, -0.2650648355484009, 0.019728612154722214, -0.06588994711637497, 0.08300746232271194, -0.32709646224975586, -0.27981534600257874, -0.2791699171066284, 0.5616511702537537, 0.13984502851963043, 0.08514878898859024, -0.33134421706199646, 0.17753462493419647, -0.15281572937965393, -0.46991777420043945, -0.03732990100979805, -0.13945001363754272, -0.6506544947624207, 0.18683002889156342, -0.2666992247104645, -0.25239214301109314, -0.1978531926870346, 0.09469127655029297, -0.1084747165441513, -0.014073575846850872, -0.28551581501960754, -0.3582027554512024, 0.18912117183208466, 0.09412045776844025, -0.10961799323558807, 0.20152431726455688, 0.3242136240005493, -0.22083263099193573, 0.1413421779870987, 0.002968437969684601, -0.10061442852020264, 0.20275430381298065, 0.23747983574867249, 0.35591593384742737, -0.14888234436511993, 0.39599940180778503, 0.191597580909729, 0.8294718265533447, 0.6231414675712585, 0.12266503274440765, -0.1924661546945572, 0.15878355503082275, 0.27364522218704224, 0.027693815529346466, 0.005397886503487825, 0.4714064300060272, 0.03249548748135567, -0.03211657702922821, 0.2436349242925644, 0.452115535736084, 0.19452710449695587, -0.09156998246908188, -0.19800129532814026, -0.14048396050930023, -0.2652002274990082, 0.3011282980442047, 0.36070066690444946, 0.10966268181800842, -0.0930909588932991, -0.17065711319446564, -0.16213741898536682, -0.2697301208972931, -0.11596723645925522, 0.18599660694599152, 0.37947991490364075, 0.20988519489765167, -0.574067234992981, 0.35159605741500854, -0.2495236098766327, 0.15866827964782715, 0.140762060880661, -0.18989641964435577, 0.10423775017261505, -0.08069272339344025, 0.14552876353263855, -0.050393421202898026, 0.6973089575767517, 0.21466712653636932, -0.15061528980731964, -0.24477432668209076, -0.04170333966612816, -0.3592642843723297, 0.12693311274051666, -0.1086166575551033, 0.445112943649292, 0.40360626578330994, 0.3771093189716339, -0.4491507411003113, -0.21187661588191986, 0.12485374510288239, 0.12881197035312653, -0.20499376952648163, -0.17305894196033478, -0.1876727193593979, -0.16423632204532623, -0.37728697061538696, 0.20507334172725677, 0.1352115273475647, -0.08989124000072479, 0.1681877225637436, -0.017658915370702744, 0.07160291075706482, 0.09047127515077591, 0.0740087479352951, 0.29898232221603394, 0.02893003448843956, 0.29483529925346375, 0.1590927392244339, 0.2529343068599701, 0.1572229564189911, 0.05004753917455673, 0.2393588423728943, -0.010168342851102352, 0.008041965775191784, 0.22921326756477356, -0.11903290450572968, 0.5664660334587097, 0.5696606040000916, 0.12389952689409256, -0.1912187933921814, -0.48439040780067444, 0.2945774495601654, -0.34798502922058105, -0.1847195327281952, 0.18189233541488647, -0.1415814757347107, -0.25520822405815125, -0.2871851921081543, 0.4790968596935272, -0.040904827415943146, -0.08475486934185028, -0.0073108677752316, 0.21401232481002808, 0.04778456687927246, 0.30403241515159607, 0.07541811466217041, 1.2021840810775757, -0.3742402493953705, 0.4124627411365509, 0.029617758467793465, 0.023072270676493645, 0.5967462062835693, -0.6018075346946716, 0.05795520916581154, -0.4674835503101349, 0.3419055938720703, 0.009958839043974876, -0.19421201944351196, 0.0003663252864498645, 0.4258294701576233, -0.3690876066684723, 0.1852416843175888, -0.09927000850439072, 0.4017496407032013, -0.2606285810470581, 0.6654485464096069, -0.16513578593730927, -0.2708643674850464, -0.5053534507751465, 0.026853764429688454, -0.18650658428668976, -0.15747326612472534, -0.12439204007387161, -0.13191577792167664, -0.11642546951770782, 0.09827883541584015, 0.009054623544216156, -0.23762771487236023, -0.18585212528705597, 0.0519590750336647, 0.2512977421283722, -0.4156516492366791, 0.388148695230484, 0.2541196942329407, 0.038778118789196014, 0.21748408675193787, -0.07129523158073425, 0.1556490808725357, -0.2833273410797119, -0.10559829324483871, 0.07342813909053802, 0.057954199612140656, 0.19317971169948578, -0.04728687182068825, -0.2664124667644501, 0.14902661740779877, 0.27913790941238403, 0.026412906125187874, -0.5276995301246643, 0.1213885098695755, 0.32548388838768005, -0.6069248914718628, -0.1746608465909958, 0.06573063135147095, -0.19840103387832642, 0.08470436185598373, -0.011527418158948421, 0.11294273287057877, -0.0726880431175232, 0.30605757236480713, 0.5014001727104187, -0.1398213803768158, 0.06871534883975983, 0.1370406299829483, -0.1541069895029068, -0.283839613199234, 0.19023114442825317, 0.08290185034275055, -0.045997172594070435, -0.18142947554588318, 0.7017863988876343, -0.052263807505369186, -0.16546911001205444, 0.002363894134759903, -0.04720759764313698, -0.21978937089443207, -0.23922406136989594, -0.1758706271648407, 0.34455475211143494, -0.004608753137290478, 0.31154865026474, -0.13231712579727173, -0.30466392636299133, 0.24307981133460999, 0.1918095052242279, -0.08928333967924118, 0.1325090229511261, 0.05413195490837097, -0.04269123077392578, 0.34171393513679504, -0.20713140070438385, 0.1975441873073578, 0.08371857553720474, 0.0973498523235321, -0.029104724526405334, -0.2228957712650299, 0.040782660245895386, -0.1490170657634735, -0.12759749591350555, 0.0000936377837206237, -0.4162391126155853, -0.10890066623687744, -0.18524998426437378, 0.21295787394046783, -0.004815844818949699, 0.05003182590007782, -0.16060133278369904, -0.227646604180336, -0.07085967063903809, -0.07047899812459946, 0.29102736711502075, 0.11542981117963791, 0.3595735728740692, -0.27251219749450684, -0.10874760895967484, -0.2252638339996338, -0.027841387316584587, 0.1439148187637329, 0.22324971854686737, 0.319173127412796, 0.17739523947238922, 0.17019861936569214, -0.030684538185596466, -0.1751803755760193, -0.0639684796333313, 0.4981133043766022, 0.5956968665122986, 0.14282451570034027, 0.25917258858680725, -0.09163970500230789, 0.06544327735900879, 0.14377865195274353, 0.1729610115289688, 0.4379865229129791, -0.24496766924858093, 0.19435182213783264, 0.0463157556951046, 0.06788370013237, 0.06622322648763657, 0.15165500342845917, 0.4133433401584625, 0.05557950213551521, -0.04650876298546791, 0.4429086148738861, -0.04316359758377075, -0.04769013449549675, -0.11486701667308807, 0.14154748618602753, 0.5450332164764404, 0.11702082306146622, -0.12327975779771805, -0.06205941364169121, -0.04374115169048309, -0.213662788271904, 0.41760632395744324, 0.28188997507095337, 0.14861413836479187, -0.07480742782354355, -0.12184354662895203, 0.1668071448802948, -0.09114766120910645, -0.0005371816805563867, 0.28618642687797546, 0.057083699852228165, -0.22131949663162231, 0.347209095954895, 0.3019329905509949, -0.07263849675655365, -0.07947507500648499, 0.789921224117279, 0.24863937497138977, -0.30201032757759094, -0.13702978193759918, 0.1681547909975052, 0.0844281017780304, -0.16396738588809967, -0.1675732284784317, -0.18630939722061157, -0.20950889587402344, 0.05587126314640045, -0.29760774970054626, -0.5191300511360168, 0.21204827725887299, 0.29145124554634094, 0.34098494052886963, -0.10824675858020782, 0.13940730690956116, 0.10572227090597153, 0.31792503595352173, -0.22730930149555206, 0.28718405961990356, 0.1986711323261261, 0.20359964668750763, 0.17731627821922302, 0.19626085460186005, 0.10648148506879807, -0.115635447204113, -0.25426188111305237, 0.3833446800708771, -0.36810410022735596, 0.06945491582155228, 0.10002708435058594, 0.007087490055710077, 0.128489688038826, -0.33470025658607483, 0.25030234456062317, -0.014243148267269135, -0.006766624748706818, -0.13430079817771912, 0.18665854632854462, -0.43749648332595825, -0.25814637541770935, -0.2774602770805359, -0.16093005239963531, -0.23952119052410126, -0.1330559402704239, -0.07232765853404999, -0.44541236758232117, 0.013042519800364971, 0.16216027736663818, -0.1418960839509964, 0.24494977295398712, -0.07299279421567917, 0.030272167176008224, -0.09480129182338715, 0.23825696110725403, 0.03118828311562538, -0.11552027612924576, 0.009239747188985348, -0.11754757165908813, -0.2322065383195877, 0.0562543123960495, -0.1899394541978836, 0.12836973369121552, -0.18626312911510468, 0.510860025882721, 0.11447637528181076, 0.5743861794471741, -0.15255384147167206, -0.03783848136663437, -0.414138525724411, -0.10092703253030777, -0.48729443550109863, 0.06793484091758728, 0.06299517303705215, 0.579443633556366, 0.23892739415168762, -0.09676828980445862, 0.22779247164726257, 0.035646598786115646, -0.1824696660041809, -0.045581623911857605, 0.13633793592453003, -0.34478428959846497, -0.5008977651596069, 0.06605800241231918, -0.06113981083035469, 0.038965627551078796, 0.08712288737297058, -0.20235960185527802, -0.2704788148403168, -0.045145682990550995, -0.10556574165821075, 0.24442502856254578, 0.2704153060913086, 0.11729096621274948, -0.324179470539093, -0.3725757598876953, 0.02345004491508007, 0.0022235619835555553, -0.16811245679855347, -0.18665273487567902, -0.18404456973075867, -0.2977955639362335, -0.04677643999457359, 0.24620601534843445, -0.05161084607243538, 0.5003600120544434, -0.42738476395606995, 0.12114883214235306, -0.17876674234867096, -0.02571600303053856, 0.6111917495727539, -0.15608905255794525, -0.2255624234676361, 0.06758911162614822, 0.32996755838394165, 0.21881888806819916, -0.15824200212955475, -0.2939794659614563, 0.3241058588027954, 0.1196349561214447, -0.012814387679100037, -0.1734105348587036, 0.147822305560112, -0.3205631971359253, -0.2897047996520996, -0.14446084201335907, 0.22640827298164368, -0.007054754998534918, -0.07193223387002945, -0.1444687396287918, -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.07837647199630737, -0.33690309524536133, -0.10210345685482025, 0.3794318437576294, 0.29138612747192383, -0.09671332687139511, -0.12171172350645065, 0.5122986435890198, -0.027225544676184654, 0.19465266168117523, -0.2856161296367645, 0.06141325458884239, -0.25026723742485046, 0.2593441307544708, 0.3205592930316925, -0.08860854059457779, 0.15497936308383942, 0.082377590239048, -0.20406076312065125, 0.056910790503025055, 0.06371358036994934, -0.1032855212688446, 0.06122568994760513, -0.16533194482326508, -0.3009231984615326, -0.14129799604415894, -0.28817376494407654, 0.11389142274856567, -0.3934970796108246, -0.3375559151172638, -0.24486684799194336, 0.21716611087322235, 0.16116994619369507, 0.6473470330238342, -0.00012278370559215546, -0.19610664248466492, -0.14377917349338531, -0.34958142042160034, -0.28948089480400085, 0.13307392597198486, -0.09903483092784882, -0.3333495557308197, -0.16142599284648895, -0.11271323263645172, -0.14049135148525238, -0.2584022283554077, 0.10623471438884735, -0.33800995349884033, 0.7726530432701111, -0.18526160717010498, 0.006899977568536997, -0.13939911127090454, -0.048322081565856934, 0.007456596475094557, 0.2478710263967514, 0.25301650166511536, -0.1029360294342041, 0.03505845367908478, 0.6240148544311523, 0.356960266828537, -0.017589252442121506, 0.0792306587100029, 0.03875042498111725, -0.180348739027977, 0.08349142968654633, -0.13057643175125122, -0.09050460159778595, -0.3459358215332031, -0.08844681084156036, 0.2567330002784729, 0.4648338556289673, -0.21463438868522644, -0.22269432246685028, -0.17029570043087006, -0.02509179897606373, 0.12211573868989944, 0.06248955428600311, 0.4120580554008484, -0.16027989983558655, 0.3520798981189728, -0.3435671627521515, -0.44138967990875244, -0.39954620599746704, -0.09355439990758896, 0.27712076902389526, -0.032266732305288315, -0.1175544336438179, -0.008474727161228657, -0.12657345831394196, -0.13739775121212006, -0.10240454226732254, -0.13972406089305878, 0.01836520992219448, 0.18830715119838715, -0.05814378336071968, -0.36341285705566406, -0.3048737049102783, -0.22182656824588776, 0.725141167640686, 0.21973635256290436, 0.3265010416507721, -0.04571302980184555, 0.32062608003616333, -0.0938948541879654, 0.26842692494392395, -0.002152567496523261, -0.21918319165706635, -0.41724181175231934, 0.15188993513584137, -0.04206522926688194, 0.0057595050893723965, -0.05187319219112396, -0.2956550717353821, 0.16918569803237915, -0.16349491477012634, -0.23312456905841827, 0.2861672043800354, 0.1393418163061142, 0.08928205072879791, -0.021498171612620354, -0.23188547790050507, 0.008595727384090424, 0.09882238507270813, 0.2212495356798172, -0.13914458453655243, 0.12232889235019684, -0.12433493882417679, -0.03462595120072365, 0.21658122539520264, -0.25782448053359985, 0.05293115973472595, 0.011232347227633, -0.0714399665594101, 0.3470553755760193, 0.20746247470378876, -0.012173227034509182, 0.012807328253984451, 0.09602835029363632, 0.34810498356819153, -0.36395367980003357, 0.13848620653152466, -0.033342428505420685, 0.10407179594039917, 0.03202325105667114, 0.1444002091884613, 0.0015520398737862706, -0.2644881308078766, -0.014527100138366222, -0.2976856529712677, 0.054018400609493256, -0.2035522311925888, -0.33036378026008606, -0.08826910704374313, -0.025027744472026825, -0.1353703886270523, 0.3116152584552765, -0.16190868616104126, 0.3599741756916046, 0.08743144571781158, 0.04907410591840744, -0.1137857511639595, 0.44898462295532227, -0.21829167008399963, -0.2930987477302551, 0.16024146974086761, 0.5045278668403625, -0.20075403153896332, 0.022959508001804352, 0.6979808211326599, 0.05601762980222702, -0.24640725553035736, 0.4481513500213623, -0.004396683536469936, 0.13596510887145996, 0.066085584461689, -0.14632323384284973, 0.2523389160633087, -0.40341317653656006, -0.39386463165283203, 0.5243744254112244, -0.12374701350927353, -0.26510921120643616, 0.510311484336853, 0.030840562656521797, 0.7380933165550232, -0.20417974889278412, 0.006787794176489115, 0.46572402119636536, -0.07566006481647491, 0.26781418919563293, -0.29252564907073975, -0.36665889620780945, -0.10646691918373108, 0.19767893850803375, -0.3410523235797882, -0.1301359087228775, -0.17429909110069275, 0.2694675326347351, 0.08517792820930481, -0.10518445819616318, 0.3670703172683716, -0.10381871461868286, 0.36262720823287964, 0.03681081905961037, -0.03510832041501999, -0.07982060313224792, -0.706956684589386, -0.17546093463897705, -0.14751067757606506, -0.1815335899591446, 0.17563965916633606, -0.4423542618751526, -0.21275141835212708, -0.08712339401245117, -0.04360692575573921, -0.01112294290214777, -0.034912947565317154, -0.11969766020774841, 0.2897197902202606, -0.20639340579509735, -0.4174753725528717, 0.3462841510772705, -0.004427158273756504, 0.09422452002763748, -0.0401616171002388, 0.11767701804637909, 0.08206269145011902, -0.03807206079363823, 0.22083373367786407, 0.12450536340475082, -0.02278439886868, -0.3221156597137451, 0.28230053186416626, 0.16251252591609955, -0.12423159927129745, 0.05151153355836868, 0.16984866559505463, 0.06494640558958054, 0.3528200089931488, 0.18469120562076569, 0.4536721110343933, 0.0004365494824014604, -0.06613323092460632, -0.1742687225341797, -0.5200105309486389, 0.24815204739570618, -0.3177943527698517, 0.15370799601078033, -0.07397107034921646, -0.14963531494140625, 0.2833903729915619, 0.023892400786280632, -0.17688943445682526, 0.012962039560079575, -0.08360644429922104, 0.147251158952713, 0.33291691541671753, 0.2726942002773285, -0.14757536351680756, 0.14368155598640442, 0.38398879766464233, -0.1751171499490738, 0.08545558154582977, 0.12568813562393188, 0.1638944298028946, -0.2880841791629791, -0.05473218113183975, -0.28702133893966675, 0.09641852229833603, 0.21320149302482605, -0.16039566695690155, 0.021921349689364433, 0.3833085894584656, -0.07231871783733368, -0.01622145250439644, 0.0359262153506279, 0.27714264392852783, 0.23817573487758636, 0.3160499930381775, -0.06042180955410004, 0.009202506393194199, -0.011046317405998707, 0.207913339138031, -0.05855272337794304, -0.09156546741724014, -0.032217029482126236, 0.07018409669399261, 0.2753455340862274, -0.07654499262571335, 0.23088081181049347, -0.20971879363059998, 0.25612056255340576, 0.29563379287719727, 0.05286635085940361, 0.1372465342283249, 0.07916449755430222, 0.4016389846801758, 0.7862682938575745, 0.04900392144918442, -0.1759120672941208, 0.03916187211871147, -0.1600470393896103, 0.3815576136112213, -0.07660463452339172, 0.3648779094219208, -0.23405422270298004, 0.285295307636261, -0.0613858625292778, -0.018728524446487427, -0.20803390443325043, -0.0753425881266594, 0.20119421184062958, 0.014133659191429615, 0.1661958545446396, -0.1607532799243927, 0.25177642703056335, -0.2142985761165619, -0.003629934974014759, 0.15220342576503754, 0.10009188950061798, -0.31202390789985657, -0.19166821241378784, -0.11763672530651093, -0.1503310203552246, 0.08871342986822128, -0.2238151878118515, -0.2860085368156433, -0.3231348395347595, 0.5092946290969849, 0.06811069697141647, 0.19346651434898376, -0.46241453289985657, 0.1838061362504959, -0.08212818950414658, -0.4521045684814453, 0.03229834511876106, -0.16447217762470245, -0.6774638891220093, 0.22627541422843933, -0.24239878356456757, -0.24353520572185516, -0.31966784596443176, 0.14362384378910065, -0.06447964161634445, 0.14056694507598877, -0.18240560591220856, -0.18611574172973633, 0.061791375279426575, 0.07868615537881851, -0.04382187873125076, 0.11984141916036606, 0.421166330575943, -0.14562569558620453, 0.09895993024110794, -0.007525309454649687, -0.011814668774604797, 0.17472432553768158, 0.2913619577884674, 0.21357107162475586, 0.08529757708311081, 0.4512495994567871, 0.13851556181907654, 0.755805253982544, 0.6317537426948547, 0.22001060843467712, 0.018360471352934837, 0.10048829764127731, 0.23323871195316315, -0.06999227404594421, 0.029902473092079163, 0.4696424901485443, 0.00828100461512804, 0.01651519536972046, 0.2120724618434906, 0.3998868465423584, 0.16866998374462128, -0.19370466470718384, -0.23700132966041565, -0.1864972859621048, -0.14316332340240479, 0.32461148500442505, 0.3430018424987793, 0.1465076208114624, -0.1356237381696701, -0.34842997789382935, -0.17450574040412903, -0.2955265939235687, -0.11503654718399048, 0.10360389202833176, 0.3208525478839874, 0.15086039900779724, -0.5605379939079285, 0.27281641960144043, -0.38790103793144226, 0.07268849015235901, 0.151402547955513, -0.2291637361049652, 0.029445186257362366, 0.033000919967889786, 0.2058226764202118, -0.1313832551240921, 0.6935651898384094, 0.23628954589366913, -0.20522867143154144, -0.2848113477230072, -0.035915885120630264, -0.2962576746940613, 0.20416344702243805, -0.16182084381580353, 0.5082671642303467, 0.4002026319503784, 0.4520648717880249, -0.5513499975204468, -0.29691562056541443, 0.07192122936248779, 0.16760535538196564, -0.17222179472446442, -0.12844963371753693, -0.16602690517902374, -0.2056509107351303, -0.4376521408557892, 0.047220759093761444, 0.22901113331317902, -0.033529989421367645, 0.3272567689418793, -0.23755638301372528, 0.006554059684276581, 0.15674568712711334, 0.10718387365341187, 0.20760416984558105, 0.010835861787199974, 0.08879052847623825, 0.17096467316150665, 0.12522275745868683, 0.18003973364830017, 0.07618628442287445, 0.23606039583683014, -0.008259003050625324, 0.12173456698656082, 0.17458221316337585, -0.0739692747592926, 0.5832381248474121, 0.5046699643135071, 0.1077762171626091, -0.23053030669689178, -0.4071770906448364, 0.3388230800628662, -0.4252403974533081, -0.20508259534835815, 0.18551644682884216, -0.14533498883247375, -0.3102446496486664, -0.13647373020648956, 0.506380021572113, 0.02552337571978569, -0.09997598081827164, 0.07016055285930634, 0.3052078187465668, -0.05529384687542915, 0.333428293466568, 0.2119615226984024, 1.3463040590286255, -0.494351327419281, 0.33900412917137146, 0.07652826607227325, 0.047270793467760086, 0.5080576539039612, -0.6566592454910278, 0.10132098197937012, -0.3028971254825592, 0.403685599565506, -0.05217304080724716, -0.15146414935588837, 0.009356844238936901, 0.428286612033844, -0.45165717601776123, 0.089951291680336, -0.09646710753440857, 0.5072124004364014, -0.23894734680652618, 0.6394392251968384, -0.18914273381233215, -0.43517252802848816, -0.5924044847488403, -0.01218501478433609, -0.23953498899936676, -0.2794211506843567, -0.02709883078932762, -0.11961045861244202, -0.14362888038158417, 0.1217973604798317, -0.020217468962073326, -0.17965412139892578, -0.18069924414157867, 0.15668216347694397, 0.2039216309785843, -0.3671700954437256, 0.2174372673034668, 0.19027723371982574, 0.009396286681294441, 0.13679419457912445, -0.03196645528078079, 0.06222829222679138, -0.2395300418138504, -0.2782289683818817, -0.002972768619656563, 0.03762570396065712, 0.09891154617071152, -0.1177295371890068, -0.22270426154136658, 0.02416808344423771, 0.20379258692264557, -0.0684640109539032, -0.3939576745033264, 0.06211090832948685, 0.2243221402168274, -0.5619938373565674, -0.15152136981487274, 0.05984633043408394, -0.21308943629264832, 0.03522484377026558, -0.04631981998682022, 0.12750723958015442, -0.11431703716516495, 0.34703919291496277, 0.49723923206329346, -0.08260105550289154, 0.03940320014953613, 0.12343992292881012, 0.08427171409130096, -0.24446359276771545, 0.090416319668293, 0.017552025616168976, -0.1470634490251541, -0.18316017091274261, 0.6808386445045471, -0.12805117666721344, -0.18437497317790985, 0.181766539812088, -0.1097550168633461, -0.26292452216148376, -0.29362809658050537, -0.10620498657226562, 0.39446642994880676, 0.034663110971450806, 0.24100971221923828, -0.15283866226673126, -0.30363449454307556, 0.35290125012397766, 0.16582898795604706, -0.06421444565057755, 0.01996910199522972, -0.03226352110505104, -0.053676292300224304, 0.4111751317977905, -0.18235506117343903, 0.1870315968990326, -0.028499145060777664, 0.1000976711511612, 0.007019805256277323, -0.24585239589214325, 0.034953225404024124, -0.05414256453514099, -0.10045678913593292, -0.05872054398059845, -0.3416644334793091, -0.06496219336986542, -0.11265209317207336, 0.22827459871768951, 0.03502760827541351, -0.005163711030036211, -0.17177022993564606, -0.28536325693130493, -0.21569231152534485, -0.12016807496547699, 0.2445325255393982, 0.13766008615493774, 0.28476908802986145, -0.48128342628479004, -0.07003302127122879, -0.27332067489624023, -0.020881684496998787, 0.17649711668491364, 0.24036404490470886, 0.4069961607456207, 0.06574582308530807, 0.11642280220985413, 0.025741033256053925, -0.2583560347557068, -0.12900777161121368, 0.5130089521408081, 0.645271897315979, -0.04998442530632019, 0.2964614927768707, -0.12055433541536331, -0.044969990849494934, 0.1943710744380951, 0.08874309808015823, 0.31834468245506287, -0.2586115300655365, 0.20769375562667847, -0.08241547644138336, 0.0033088666386902332, -0.0045900591649115086, 0.07798576354980469, 0.4187324345111847, -0.061208613216876984, -0.08620493859052658, 0.36840537190437317, 0.050982482731342316, -0.13090656697750092, -0.19612984359264374, 0.09886445850133896, 0.5369049906730652, 0.11393921822309494, -0.2775094509124756, -0.13872025907039642, 0.044437047094106674, -0.14001867175102234, 0.3737179636955261, 0.34073406457901, 0.2538031041622162, 0.12150619924068451, -0.050298843532800674, 0.20657667517662048, -0.03348998352885246, 0.12977193295955658, 0.33835694193840027, 0.14598947763442993, -0.1616298258304596, 0.5025838613510132, 0.18973498046398163, -0.07945031672716141, -0.10838991403579712, 0.7325359582901001, 0.20572854578495026, -0.2239212542772293, -0.19514606893062592, 0.21718211472034454, 0.07513806968927383, -0.08240823447704315, -0.16669178009033203, -0.2654823958873749, -0.14954110980033875, 0.12842929363250732, -0.15504387021064758, -0.4121454060077667, 0.3357379138469696, 0.3109164237976074, 0.35431259870529175, -0.0016939849592745304, 0.3048441708087921, 0.1883200854063034, 0.2788809537887573, -0.24873021245002747, 0.3172352612018585, 0.24474172294139862, 0.06052829325199127, 0.011372767388820648, 0.27935102581977844, 0.1860785335302353, 0.029033293947577477, -0.3341407775878906, 0.46615755558013916, -0.29914724826812744, -0.059352219104766846, 0.08847594261169434, 0.07563288509845734, 0.18851223587989807, -0.2831537127494812, 0.09320013970136642, -0.06241418048739433, 0.015281318686902523, -0.2855529189109802, 0.22237659990787506, -0.29178518056869507, 0.0057020350359380245, -0.32551613450050354, -0.21088138222694397, -0.21243803203105927, -0.035538800060749054, -0.03351689502596855, -0.493758887052536, -0.14241386950016022, 0.053532976657152176, -0.22262227535247803, 0.15217183530330658, -0.0021523500327020884, 0.007837343029677868, -0.12114345282316208, 0.3348330557346344, -0.08537639677524567, -0.01227196492254734, 0.01598861813545227, -0.2567744553089142, -0.11912080645561218, 0.02582235261797905, -0.22189706563949585, 0.09559598565101624, -0.1849513202905655, 0.603103756904602, 0.08570993691682816, 0.6102771162986755, -0.22746369242668152, 0.001881185919046402, -0.3210497200489044, -0.08156950771808624, -0.41221901774406433, 0.1538258194923401, 0.15151824057102203, 0.5324699878692627, 0.20327092707157135, -0.25921469926834106, 0.40047672390937805, -0.010303624905645847, -0.19343505799770355, -0.12636573612689972, 0.25416427850723267, -0.2773371636867523, -0.4143597483634949, 0.02319425716996193, 0.0662834569811821, 0.08577760308980942, 0.03132866695523262, -0.23792988061904907, -0.05082171410322189, -0.002078742953017354, -0.026558388024568558, 0.14450086653232574, 0.4534951448440552, -0.005960453767329454, -0.352719247341156, -0.2872934937477112, 0.10726908594369888, 0.20539672672748566, -0.20665130019187927, -0.12180126458406448, -0.035656675696372986, -0.33026158809661865, -0.09697667509317398, 0.1723271757364273, 0.018820995464920998, 0.3120367228984833, -0.3507348597049713, -0.0494743287563324, -0.22209033370018005, -0.048944082111120224, 0.4450860321521759, -0.09502323716878891, -0.26202890276908875, -0.013448599725961685, 0.2686889171600342, 0.15777607262134552, -0.06732209026813507, -0.30391398072242737, 0.21496322751045227, 0.0775250643491745, -0.04270882159471512, -0.2025122046470642, 0.2626699209213257, -0.17575614154338837, -0.2539328932762146, -0.12844593822956085, 0.12564465403556824, -0.08310054987668991, -0.13764330744743347, -0.25623637437820435, -0.1987881362438202 ]
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.14090384542942047, -0.28052473068237305, -0.10055729001760483, 0.2925077974796295, 0.23439863324165344, -0.06676747649908066, -0.006627690978348255, 0.48271894454956055, -0.004640905186533928, 0.10125806927680969, -0.28785738348960876, 0.017063166946172714, -0.2403966337442398, 0.27060097455978394, 0.27786991000175476, -0.07823547720909119, 0.08594497293233871, -0.0013718509580940008, -0.11297952383756638, 0.0685323104262352, 0.12187138944864273, -0.17859740555286407, 0.06772273778915405, -0.166218101978302, -0.3052946925163269, -0.1456223428249359, -0.15920858085155487, 0.13756385445594788, -0.37531912326812744, -0.37390682101249695, -0.21093298494815826, 0.26128727197647095, 0.21464376151561737, 0.560219943523407, -0.00012020427675452083, -0.16133131086826324, -0.07823842763900757, -0.34388497471809387, -0.37536782026290894, 0.11457610875368118, -0.10136692225933075, -0.3235393762588501, -0.14012782275676727, -0.11043108254671097, -0.20385728776454926, -0.1932174116373062, 0.14007019996643066, -0.33231619000434875, 0.7989581227302551, -0.12592488527297974, 0.03172396495938301, -0.038042038679122925, -0.040326520800590515, -0.02426295168697834, 0.24251927435398102, 0.28165289759635925, -0.09640049189329147, 0.01875503547489643, 0.664738118648529, 0.3354048728942871, -0.17601630091667175, 0.09073599427938461, -0.00985895935446024, -0.14002175629138947, 0.10980865359306335, -0.18422025442123413, -0.15757416188716888, -0.26150402426719666, -0.06578638404607773, 0.28584355115890503, 0.503014087677002, -0.27816346287727356, -0.1896306425333023, -0.284780353307724, -0.0658235102891922, 0.11960466206073761, 0.005494172219187021, 0.3605894446372986, -0.08757179975509644, 0.3904540538787842, -0.28513303399086, -0.43372368812561035, -0.3542933762073517, -0.051134105771780014, 0.27823367714881897, -0.042149417102336884, -0.10957449674606323, 0.03583162650465965, -0.1736290156841278, -0.16114482283592224, -0.10551433265209198, -0.18201719224452972, -0.04355785623192787, 0.1951277256011963, -0.05003877356648445, -0.3236089050769806, -0.12283526360988617, -0.2667892277240753, 0.7373467683792114, 0.23510165512561798, 0.276256799697876, -0.025291750207543373, 0.22148409485816956, -0.055995721369981766, 0.3499586880207062, 0.0007974320324137807, -0.198393777012825, -0.3956944942474365, 0.19514799118041992, 0.04113893583416939, -0.014748701825737953, -0.10230999439954758, -0.2278895527124405, 0.1696130931377411, -0.11137180030345917, -0.2389041781425476, 0.2255726009607315, 0.1624683439731598, 0.07499602437019348, 0.09880664199590683, -0.11902309209108353, -0.05641942843794823, 0.1590621918439865, 0.28000447154045105, -0.10087232291698456, 0.10659871995449066, -0.09315643459558487, 0.04269518330693245, 0.24667204916477203, -0.22342079877853394, 0.0033719686325639486, -0.05496147647500038, -0.10676927119493484, 0.2609633803367615, 0.24976877868175507, 0.07870776206254959, 0.06339922547340393, -0.04067138582468033, 0.3254794478416443, -0.2624428868293762, 0.1954028606414795, -0.030089424923062325, 0.05564359948039055, 0.02703998237848282, 0.12141432613134384, 0.07234682887792587, -0.25071704387664795, -0.03736284747719765, -0.2716750502586365, 0.06643491238355637, -0.17020276188850403, -0.3618004024028778, -0.03696378320455551, -0.00004253331644576974, -0.26813527941703796, 0.29855063557624817, -0.1272263377904892, 0.3165002763271332, 0.02119234763085842, 0.0033344379626214504, -0.0748792439699173, 0.4382679760456085, -0.2252078503370285, -0.26183319091796875, 0.07830051332712173, 0.5588117241859436, -0.18502554297447205, -0.016268126666545868, 0.6108691096305847, -0.005992045160382986, -0.3543795943260193, 0.3948063254356384, 0.007589815650135279, 0.1504802703857422, 0.03462569788098335, -0.1278948038816452, 0.2690082788467407, -0.4436069130897522, -0.42894914746284485, 0.5240532755851746, -0.19466987252235413, -0.22466039657592773, 0.44026872515678406, 0.041094738990068436, 0.6278268694877625, -0.24293383955955505, 0.08498567342758179, 0.49869781732559204, -0.022191697731614113, 0.30134549736976624, -0.294873982667923, -0.3466871678829193, -0.1763313263654709, 0.322797030210495, -0.23700165748596191, -0.19503889977931976, -0.21472057700157166, 0.27578064799308777, 0.11827104538679123, -0.05071493238210678, 0.3458009958267212, -0.06598462164402008, 0.3465013802051544, -0.018972009420394897, -0.10910389572381973, -0.07967356592416763, -0.7441958785057068, -0.11723044514656067, -0.048752084374427795, -0.17698408663272858, 0.1242547407746315, -0.3950258195400238, -0.24378050863742828, -0.027253011241555214, -0.07538396120071411, -0.03895851969718933, -0.011030638590455055, -0.14660605788230896, 0.2431037425994873, -0.06242934241890907, -0.4239657521247864, 0.21987812221050262, 0.03126843646168709, 0.10887559503316879, -0.05174921452999115, 0.11048119515180588, 0.108366958796978, 0.040388207882642746, 0.2250184267759323, 0.1406450867652893, -0.045248210430145264, -0.28439924120903015, 0.3054431080818176, 0.12634991109371185, -0.11566710472106934, 0.03385769948363304, 0.09394487738609314, 0.12442930787801743, 0.32056641578674316, 0.21318846940994263, 0.3468078076839447, -0.014821212738752365, -0.058119241148233414, -0.2420780062675476, -0.5757759213447571, 0.2814454436302185, -0.32027915120124817, 0.1856945902109146, -0.10162921249866486, -0.19213208556175232, 0.35488420724868774, 0.02245880663394928, -0.21675114333629608, 0.020305488258600235, -0.09390902519226074, 0.16470852494239807, 0.4010157585144043, 0.23147892951965332, -0.13959993422031403, 0.11833085119724274, 0.4107491374015808, -0.16983987390995026, 0.08595660328865051, 0.1295030117034912, 0.11128298938274384, -0.22527538239955902, -0.000722975586540997, -0.3508837819099426, 0.13519279658794403, 0.1990707814693451, -0.1331203281879425, -0.004566281568259001, 0.42506223917007446, -0.1296105980873108, -0.06791704893112183, -0.0029470466542989016, 0.22790808975696564, 0.26894041895866394, 0.4185393452644348, -0.12494673579931259, 0.04093829542398453, -0.06802573055028915, 0.18839822709560394, -0.0257454551756382, -0.09174104034900665, -0.018723422661423683, 0.1817600131034851, 0.2700444757938385, 0.013141973875463009, 0.244938924908638, -0.15448489785194397, 0.2557692229747772, 0.3178788721561432, 0.11296297609806061, 0.027743089944124222, 0.05558430403470993, 0.3220246732234955, 0.7086129784584045, 0.10924219340085983, -0.3408540189266205, 0.027089793235063553, -0.2112099975347519, 0.4393976628780365, -0.054904013872146606, 0.4286057949066162, -0.31809788942337036, 0.26166263222694397, -0.03549521043896675, -0.004235735163092613, -0.1711004078388214, -0.08901660144329071, 0.21542589366436005, 0.049711667001247406, 0.20520532131195068, -0.11795585602521896, 0.30706000328063965, -0.20299667119979858, -0.004642806015908718, 0.17930811643600464, 0.10944169759750366, -0.2314152866601944, -0.1409710794687271, -0.062478698790073395, -0.13985955715179443, 0.08734975010156631, -0.17045779526233673, -0.21060073375701904, -0.3970165550708771, 0.5515092015266418, 0.08069296181201935, 0.0940166637301445, -0.40903112292289734, 0.18045829236507416, -0.12394902110099792, -0.4157426059246063, 0.050949420779943466, -0.14543253183364868, -0.7269207239151001, 0.20463766157627106, -0.18911676108837128, -0.22771701216697693, -0.3275860548019409, 0.0779184103012085, -0.03049049898982048, 0.07898984104394913, -0.3037675619125366, -0.20165860652923584, 0.08689279109239578, 0.14348506927490234, -0.04713013395667076, 0.08975213766098022, 0.39689579606056213, -0.11143428087234497, 0.0900503396987915, 0.058349110186100006, -0.011275366879999638, 0.13752512633800507, 0.21205629408359528, 0.2483750432729721, -0.009164683520793915, 0.445804625749588, 0.18211419880390167, 0.7829383015632629, 0.4851694703102112, 0.21968014538288116, 0.0542256161570549, 0.1727014034986496, 0.2754838466644287, -0.10151508450508118, 0.01983906514942646, 0.442499577999115, 0.03423242270946503, -0.031442612409591675, 0.18027737736701965, 0.3919912874698639, 0.1098080724477768, -0.20567579567432404, -0.2954730987548828, -0.15709392726421356, -0.21634137630462646, 0.3759029507637024, 0.4015350341796875, 0.13936181366443634, -0.052431344985961914, -0.2696834206581116, -0.14109261333942413, -0.2912502884864807, -0.12081511318683624, 0.13478609919548035, 0.4174838066101074, 0.11333087086677551, -0.5920681953430176, 0.3075261116027832, -0.39743366837501526, 0.031274840235710144, 0.0325433649122715, -0.2528339922428131, -0.012198572978377342, -0.005142050329595804, 0.16676193475723267, -0.14273828268051147, 0.6802511811256409, 0.23279036581516266, -0.044901467859745026, -0.19842815399169922, -0.024463700130581856, -0.3251378834247589, 0.24068254232406616, -0.14633993804454803, 0.4969027042388916, 0.4652559161186218, 0.4515278935432434, -0.5926408171653748, -0.22588905692100525, 0.012884915806353092, 0.13924504816532135, -0.19686515629291534, -0.21280977129936218, -0.1484229564666748, -0.21824435889720917, -0.47542956471443176, 0.10369648039340973, 0.23830977082252502, -0.04396083205938339, 0.3554883599281311, -0.07841459661722183, -0.019368067383766174, 0.16241981089115143, 0.044925376772880554, 0.2307017743587494, -0.04849640280008316, 0.08340568840503693, 0.2023901492357254, 0.1278289258480072, 0.17260636389255524, 0.10327757149934769, 0.28186333179473877, 0.03370331600308418, 0.09032003581523895, 0.12331927567720413, -0.008522385731339455, 0.48821160197257996, 0.5183218717575073, 0.14350882172584534, -0.14995267987251282, -0.45154136419296265, 0.3554840385913849, -0.4063184857368469, -0.12958528101444244, 0.12999239563941956, -0.1523333191871643, -0.34323933720588684, -0.17759588360786438, 0.4651440382003784, -0.06132432445883751, -0.11519628763198853, -0.012669939547777176, 0.24848109483718872, -0.035806506872177124, 0.3706614375114441, 0.10629349946975708, 1.2893749475479126, -0.4414869248867035, 0.39105477929115295, 0.0752178281545639, 0.05155705288052559, 0.5166634321212769, -0.7395326495170593, 0.06856540590524673, -0.3477134704589844, 0.374077171087265, 0.00724999001249671, -0.17917802929878235, -0.03987015411257744, 0.43837592005729675, -0.34244513511657715, 0.10810868442058563, -0.13841168582439423, 0.48147058486938477, -0.2609599232673645, 0.7284733653068542, -0.13513943552970886, -0.38966789841651917, -0.5786439776420593, 0.015158282592892647, -0.23966935276985168, -0.20959101617336273, -0.07108893990516663, -0.1450634002685547, -0.07715240120887756, 0.08426513522863388, -0.06116443872451782, -0.2490498274564743, -0.12704871594905853, 0.10895035415887833, 0.2076437622308731, -0.36851638555526733, 0.27511125802993774, 0.2031455934047699, -0.0403280071914196, 0.27385425567626953, -0.04968995600938797, 0.1429561823606491, -0.2844426929950714, -0.23632508516311646, 0.029014883562922478, 0.03748452663421631, 0.14953480660915375, -0.09594787657260895, -0.2634083330631256, 0.09295132756233215, 0.14973825216293335, -0.054479602724313736, -0.39795851707458496, 0.12475667148828506, 0.2053520232439041, -0.5689502358436584, -0.2819284498691559, -0.017831826582551003, -0.26182952523231506, 0.07517846673727036, -0.025300420820713043, 0.15771113336086273, -0.0735868588089943, 0.2400544136762619, 0.491574227809906, -0.09099690616130829, -0.007491543889045715, 0.18206265568733215, -0.0016059104818850756, -0.24295489490032196, 0.17020061612129211, 0.11880048364400864, -0.14429694414138794, -0.1969185173511505, 0.680079460144043, -0.010539226233959198, -0.18470296263694763, 0.1404959112405777, -0.0037367583718150854, -0.28871285915374756, -0.3659243881702423, -0.20993468165397644, 0.3386264443397522, -0.060895584523677826, 0.3054253160953522, -0.16394490003585815, -0.3691944181919098, 0.3123011887073517, 0.18571890890598297, -0.08900948613882065, 0.09125836193561554, -0.031665656715631485, -0.06566166877746582, 0.3900136649608612, -0.2072121798992157, 0.20370112359523773, -0.01312835980206728, 0.09369482845067978, -0.015511399134993553, -0.24782021343708038, 0.07413732260465622, -0.13203436136245728, -0.07397588342428207, -0.06394361704587936, -0.3755156993865967, -0.11190107464790344, -0.14305147528648376, 0.22507178783416748, 0.04962339997291565, -0.07599683105945587, -0.1169426292181015, -0.34777554869651794, -0.18399006128311157, -0.12198033183813095, 0.2752687931060791, 0.17193450033664703, 0.2944328784942627, -0.483178973197937, -0.10368546843528748, -0.2874085009098053, -0.023217199370265007, 0.20906993746757507, 0.22858095169067383, 0.40834710001945496, 0.11095605790615082, 0.09946871548891068, 0.05175566300749779, -0.1989714801311493, -0.026535602286458015, 0.5146840810775757, 0.6444918513298035, 0.09732935577630997, 0.3506826162338257, -0.12454286962747574, -0.008452355861663818, 0.1809656322002411, 0.12101216614246368, 0.2879490256309509, -0.2791024446487427, 0.2501027286052704, -0.04253057762980461, 0.05094928294420242, -0.04657041281461716, 0.07719896733760834, 0.3802145719528198, 0.0022440513130277395, 0.014266512356698513, 0.3488169312477112, -0.012090886011719704, -0.0625251978635788, -0.1603218913078308, 0.1511818915605545, 0.5711218118667603, 0.22387979924678802, -0.2705690860748291, -0.12461166828870773, -0.0449254997074604, -0.16694387793540955, 0.397762268781662, 0.34597325325012207, 0.2794701159000397, 0.08592179417610168, 0.009336684830486774, 0.18305645883083344, -0.019100939854979515, 0.08229456841945648, 0.24794532358646393, 0.031026851385831833, -0.19837181270122528, 0.41282984614372253, 0.2662302255630493, -0.06673005223274231, -0.10311354696750641, 0.6514554023742676, 0.29684069752693176, -0.13700827956199646, -0.16086378693580627, 0.1697642058134079, 0.04290766641497612, -0.14302082359790802, -0.10482388734817505, -0.2766445279121399, -0.1550353318452835, 0.15105846524238586, -0.22876626253128052, -0.4610011875629425, 0.20585189759731293, 0.2624770998954773, 0.3755553364753723, -0.021211041137576103, 0.3653201460838318, 0.1804874837398529, 0.22091007232666016, -0.21415472030639648, 0.3091762959957123, 0.2817085385322571, 0.1266259402036667, 0.12677013874053955, 0.20184753835201263, 0.17273204028606415, -0.006307081785053015, -0.34021463990211487, 0.4396519660949707, -0.3761487901210785, -0.05352620407938957, -0.05026023089885712, 0.10687205940485, 0.20751865208148956, -0.27974259853363037, 0.1731988936662674, -0.02487836964428425, -0.03648154437541962, -0.20878420770168304, 0.2289429008960724, -0.37090060114860535, -0.04125193879008293, -0.33188071846961975, -0.22460457682609558, -0.25193655490875244, -0.08649211376905441, -0.12849336862564087, -0.45535457134246826, -0.09987983852624893, 0.13385158777236938, -0.1839459240436554, 0.2526102364063263, -0.044151704758405685, 0.010928124189376831, -0.1301107406616211, 0.3143855929374695, -0.07826770097017288, -0.04878242313861847, -0.05278874188661575, -0.19891852140426636, -0.20171606540679932, 0.02327663078904152, -0.2842143774032593, 0.15400168299674988, -0.18819521367549896, 0.5003315210342407, 0.12178446352481842, 0.5847203135490417, -0.24006742238998413, 0.07080959528684616, -0.38839808106422424, -0.053691767156124115, -0.3941107392311096, 0.0806148424744606, 0.044823382049798965, 0.5533949136734009, 0.1747606098651886, -0.2300332933664322, 0.2786176800727844, 0.06506874412298203, -0.14974087476730347, -0.1604817509651184, 0.2179170399904251, -0.319742888212204, -0.4120727479457855, 0.12254475057125092, 0.04655912518501282, 0.08459518104791641, 0.005330296698957682, -0.2420697659254074, -0.1329423487186432, -0.03730473667383194, -0.005069111008197069, 0.19645196199417114, 0.38218045234680176, 0.055850155651569366, -0.33677762746810913, -0.3499860465526581, 0.07383324205875397, 0.12019862234592438, -0.25070375204086304, -0.14657311141490936, -0.16847658157348633, -0.308081716299057, -0.17480358481407166, 0.27353736758232117, -0.07024335116147995, 0.349378377199173, -0.38273993134498596, -0.026193492114543915, -0.20113804936408997, -0.05836747586727142, 0.5014272928237915, -0.10391189903020859, -0.2714810073375702, 0.07848634570837021, 0.1943378448486328, 0.15415926277637482, -0.04689702391624451, -0.3567618131637573, 0.2978198826313019, 0.08585967123508453, -0.03816035017371178, -0.24610882997512817, 0.1744016706943512, -0.21128980815410614, -0.2963837683200836, -0.13032016158103943, 0.1746082305908203, -0.05115368962287903, -0.13879597187042236, -0.27191251516342163, -0.18967849016189575 ]
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.004863537847995758, -0.23592399060726166, -0.06830373406410217, 0.2993224859237671, 0.2564299702644348, -0.11595635861158371, 0.01913817599415779, 0.4660230576992035, -0.09819995611906052, 0.15328142046928406, -0.25992727279663086, 0.029207978397607803, -0.24323493242263794, 0.2509174644947052, 0.30117011070251465, -0.048041101545095444, 0.1664876490831375, -0.017505113035440445, -0.03545833379030228, 0.057878732681274414, 0.15244150161743164, -0.12134067714214325, 0.050219085067510605, -0.11216865479946136, -0.34330227971076965, -0.1410202831029892, -0.22272107005119324, 0.11543462425470352, -0.3829270303249359, -0.3995327651500702, -0.31369519233703613, 0.2566598057746887, 0.24174435436725616, 0.567755937576294, -0.00012270797742530704, -0.20185932517051697, -0.08838406950235367, -0.3403652310371399, -0.3112199306488037, 0.05455956608057022, -0.0006790012703277171, -0.3438972234725952, -0.1172075942158699, -0.10907642543315887, -0.16727061569690704, -0.2621132731437683, 0.10459646582603455, -0.2872920036315918, 0.8023912906646729, -0.18585166335105896, 0.016492648050189018, -0.01626627705991268, -0.10207998752593994, 0.07463090866804123, 0.19437895715236664, 0.32183992862701416, -0.04024777188897133, -0.014388494193553925, 0.6634312868118286, 0.2563694417476654, -0.15577031672000885, 0.09791181236505508, -0.032995279878377914, -0.1636567860841751, 0.05064735934138298, -0.1566651612520218, -0.1782926619052887, -0.19819650053977966, -0.003900682320818305, 0.1783846765756607, 0.39814770221710205, -0.3300260603427887, -0.1373395025730133, -0.24055896699428558, -0.11000126600265503, 0.0567668192088604, 0.027938492596149445, 0.32174861431121826, -0.09838059544563293, 0.3943788707256317, -0.3018190860748291, -0.4261776804924011, -0.34790337085723877, -0.008125917986035347, 0.18639694154262543, 0.07474005222320557, -0.11239862442016602, 0.016232507303357124, -0.2107529491186142, -0.20841655135154724, -0.175032839179039, -0.12127170711755753, -0.056275688111782074, 0.18577662110328674, -0.029453134164214134, -0.38060057163238525, -0.1769760698080063, -0.33442366123199463, 0.7397292256355286, 0.24079379439353943, 0.20411129295825958, 0.0006104930653236806, 0.22477653622627258, -0.023504717275500298, 0.4215133786201477, 0.03397679328918457, -0.16068480908870697, -0.2854785919189453, 0.17695534229278564, -0.07671976834535599, 0.007158481981605291, -0.1267491728067398, -0.2901684641838074, 0.2594228982925415, -0.11997952312231064, -0.19852730631828308, 0.2078862339258194, 0.118146613240242, 0.12500827014446259, 0.14590340852737427, -0.15320660173892975, -0.00047998217632994056, 0.19263459742069244, 0.2919612526893616, -0.09992533922195435, 0.12519945204257965, -0.15550412237644196, 0.01328663993626833, 0.194123774766922, -0.22000083327293396, 0.015187203884124756, -0.04889212176203728, -0.14267344772815704, 0.2775091528892517, 0.1601995974779129, 0.1904594749212265, 0.05506131425499916, -0.031301990151405334, 0.3454267084598541, -0.33161282539367676, 0.17181724309921265, -0.012087090872228146, 0.09186974167823792, -0.0871024951338768, 0.09667439758777618, 0.10719595104455948, -0.18601353466510773, -0.06345508247613907, -0.2804771363735199, 0.02861148864030838, -0.15907329320907593, -0.2859137952327728, -0.08997084945440292, -0.013199623674154282, -0.25734373927116394, 0.2753233015537262, -0.15569829940795898, 0.3370770812034607, 0.043354328721761703, 0.027619129046797752, -0.07604196667671204, 0.4177355170249939, -0.1996263861656189, -0.2468789666891098, 0.08625446259975433, 0.5264919996261597, -0.21275284886360168, -0.0589168407022953, 0.7256119251251221, 0.003911289386451244, -0.23238421976566315, 0.45220592617988586, 0.03411963954567909, 0.09964972734451294, 0.0330229289829731, 0.01712062954902649, 0.1975422501564026, -0.5084145069122314, -0.3917005956172943, 0.4872523844242096, -0.27109667658805847, -0.288827508687973, 0.4501453638076782, -0.002180017763748765, 0.7244876623153687, -0.17798590660095215, 0.1248248890042305, 0.45270735025405884, -0.011207040399312973, 0.2866777777671814, -0.3418315052986145, -0.35177046060562134, -0.14327523112297058, 0.21455998718738556, -0.24767054617404938, -0.2337249219417572, -0.1678469032049179, 0.3443208932876587, 0.14423437416553497, -0.037038542330265045, 0.3658791184425354, -0.12580712139606476, 0.4081767201423645, 0.08153709024190903, -0.10751567780971527, -0.045349035412073135, -0.636310338973999, -0.17591537535190582, -0.06689617037773132, -0.20457372069358826, 0.08754687011241913, -0.4391719698905945, -0.23398838937282562, -0.03972054645419121, -0.0037446944043040276, -0.02277209237217903, -0.010500476695597172, -0.0721689984202385, 0.1975908726453781, 0.04165152087807655, -0.4777805805206299, 0.10277964919805527, 0.06819900125265121, 0.09194474667310715, 0.06773641705513, 0.11539223790168762, 0.06357421725988388, -0.027805905789136887, 0.18356192111968994, 0.16944412887096405, 0.01326663140207529, -0.27618324756622314, 0.307585209608078, 0.1365496665239334, -0.13761170208454132, 0.07711758464574814, 0.06437115371227264, 0.1885310709476471, 0.36776378750801086, 0.24714384973049164, 0.3335404098033905, -0.0359482578933239, -0.0795968696475029, -0.19564931094646454, -0.40111443400382996, 0.2823256254196167, -0.2059866040945053, 0.16073131561279297, -0.1087656170129776, -0.16308905184268951, 0.3603009581565857, 0.027131780982017517, -0.17650192975997925, -0.00722972396761179, -0.10800717771053314, 0.1386486291885376, 0.31676924228668213, 0.20052015781402588, -0.10991565883159637, 0.15049320459365845, 0.4193856716156006, -0.16624252498149872, 0.14107663929462433, 0.08609715104103088, 0.06578115373849869, -0.2105068862438202, 0.07314003258943558, -0.420604407787323, 0.11613740026950836, 0.1916220784187317, -0.11243316531181335, 0.017467087134718895, 0.4644149839878082, -0.10691694915294647, -0.05442315712571144, 0.06150224804878235, 0.11198603361845016, 0.2068026065826416, 0.3783843517303467, -0.15154364705085754, 0.0632619559764862, -0.061313241720199585, 0.18515127897262573, -0.018007643520832062, -0.1255822777748108, 0.012213403359055519, 0.03842721879482269, 0.2140253782272339, -0.03231513500213623, 0.19934456050395966, -0.1337936669588089, 0.23526866734027863, 0.34110984206199646, 0.12738756835460663, -0.004149449989199638, 0.047561630606651306, 0.3337050974369049, 0.7932174801826477, 0.0033720419742166996, -0.2434069812297821, 0.06023690477013588, -0.2733082175254822, 0.3194569945335388, -0.08893414586782455, 0.4855744242668152, -0.35998550057411194, 0.3138052523136139, 0.0023293406702578068, -0.027119426056742668, -0.1954459846019745, -0.12368324398994446, 0.25140121579170227, 0.05950406566262245, 0.12280873209238052, -0.18114256858825684, 0.22436946630477905, -0.34699317812919617, -0.061962299048900604, 0.1353168487548828, 0.04414588212966919, -0.28194135427474976, -0.14780965447425842, -0.020759671926498413, -0.1053290143609047, 0.078989177942276, -0.15574803948402405, -0.26381364464759827, -0.3474765121936798, 0.5619256496429443, 0.04956594482064247, 0.09183365851640701, -0.42696669697761536, 0.1237896978855133, -0.03365977481007576, -0.4764585494995117, -0.0442669503390789, -0.2064770609140396, -0.6906928420066833, 0.12904225289821625, -0.20442929863929749, -0.17913244664669037, -0.25710564851760864, 0.1340753734111786, -0.010561726056039333, 0.02663353458046913, -0.2865179181098938, -0.21641795337200165, 0.17341555655002594, 0.0656808540225029, -0.05732458457350731, 0.10346220433712006, 0.38785216212272644, -0.11015164852142334, 0.06789307296276093, 0.08969388157129288, 0.018846670165657997, 0.1214543953537941, 0.14672847092151642, 0.24751293659210205, -0.013570712879300117, 0.42858824133872986, 0.2638726830482483, 0.7901012897491455, 0.39157727360725403, 0.1970972716808319, 0.08346224576234818, 0.1033211275935173, 0.27672430872917175, -0.004627085756510496, -0.01107869204133749, 0.44604021310806274, 0.049283165484666824, -0.06393745541572571, 0.24060045182704926, 0.3872225880622864, 0.13596099615097046, -0.16082626581192017, -0.3288179337978363, -0.15506939589977264, -0.2619345486164093, 0.38431844115257263, 0.3602469563484192, 0.09987527877092361, -0.06691446900367737, -0.26372045278549194, -0.1609506607055664, -0.34866487979888916, -0.09121793508529663, 0.125856414437294, 0.3103370666503906, 0.15960313379764557, -0.6825463175773621, 0.3048126697540283, -0.3812508285045624, 0.07326734811067581, 0.043727945536375046, -0.1244024857878685, -0.03099571354687214, -0.040683455765247345, 0.1786162555217743, -0.1328396201133728, 0.6704142689704895, 0.36260852217674255, -0.11619044840335846, -0.2579666078090668, -0.10844704508781433, -0.2668248116970062, 0.19881242513656616, -0.12253933399915695, 0.4609372019767761, 0.45952728390693665, 0.47180941700935364, -0.5613793730735779, -0.20620110630989075, -0.06607891619205475, 0.08684709668159485, -0.2086278349161148, -0.13418005406856537, -0.15706059336662292, -0.17786897718906403, -0.5508024096488953, 0.10234764963388443, 0.27209150791168213, -0.04120463505387306, 0.3813018500804901, -0.1734057366847992, 0.008524235337972641, 0.029800541698932648, 0.08935655653476715, 0.21837307512760162, -0.015407643280923367, 0.11483367532491684, 0.08359783887863159, 0.1694619357585907, 0.21239526569843292, 0.12555986642837524, 0.14729349315166473, 0.10053234547376633, 0.051870062947273254, 0.13559235632419586, 0.03174036368727684, 0.6307210922241211, 0.5391399264335632, 0.1274540275335312, -0.03740430250763893, -0.4805534780025482, 0.3121170699596405, -0.4224783778190613, -0.03165987879037857, 0.08858755975961685, -0.13888970017433167, -0.3014281094074249, -0.08810876309871674, 0.37303364276885986, -0.01401640847325325, -0.12007282674312592, 0.04961685091257095, 0.2515345811843872, -0.10554397851228714, 0.4523068964481354, 0.10320747643709183, 1.3929839134216309, -0.45147186517715454, 0.43161219358444214, 0.02667417749762535, 0.06585116684436798, 0.6378907561302185, -0.8194294571876526, 0.07537225633859634, -0.35538265109062195, 0.484520822763443, 0.0279831700026989, -0.10895078629255295, -0.07160637527704239, 0.39807137846946716, -0.31128689646720886, 0.0931033343076706, -0.17937062680721283, 0.5494174957275391, -0.30383336544036865, 0.6470785140991211, -0.11585549265146255, -0.38887688517570496, -0.5553725361824036, 0.0002271697885589674, -0.2226497232913971, -0.26177355647087097, -0.12317429482936859, -0.07633655518293381, -0.09875912219285965, 0.07659554481506348, -0.018999675288796425, -0.2811443507671356, -0.130639910697937, 0.18321867287158966, 0.19065101444721222, -0.293661504983902, 0.1789599061012268, 0.15916208922863007, 0.024565644562244415, 0.364352285861969, -0.04034081846475601, 0.0743630900979042, -0.27977854013442993, -0.20251202583312988, 0.027377821505069733, 0.0013688202016055584, 0.1315409541130066, -0.09157919883728027, -0.29762202501296997, 0.13419879972934723, 0.2777325510978699, -0.09076118469238281, -0.501480758190155, 0.12734663486480713, 0.3642618954181671, -0.5198205709457397, -0.20967867970466614, -0.03556673601269722, -0.24382519721984863, 0.07295606285333633, -0.03208616375923157, 0.1741943061351776, -0.15315376222133636, 0.22725734114646912, 0.5170204639434814, -0.04521023854613304, 0.01201893761754036, 0.19955435395240784, -0.08531427383422852, -0.3673034608364105, 0.22371922433376312, 0.06137685850262642, -0.11423343420028687, -0.16855517029762268, 0.6826545000076294, 0.009708286263048649, -0.12100528925657272, 0.07462447881698608, 0.003823937149718404, -0.3500801920890808, -0.3896215558052063, -0.12434409558773041, 0.39011526107788086, -0.041338007897138596, 0.27555498480796814, -0.18111102283000946, -0.42854374647140503, 0.3383805453777313, 0.11083357036113739, -0.06194930523633957, 0.1698966771364212, 0.10885839909315109, -0.17577576637268066, 0.33943530917167664, -0.18654616177082062, 0.17288954555988312, -0.1168086901307106, 0.10828598588705063, -0.05405459925532341, -0.2186051458120346, -0.007293536327779293, -0.1137070581316948, -0.09557781368494034, 0.039707429707050323, -0.2682882249355316, -0.09033425152301788, -0.1170661672949791, 0.24066683650016785, 0.11143910884857178, -0.04613626375794411, -0.12938350439071655, -0.2641300559043884, -0.09552351385354996, -0.1117091029882431, 0.22258175909519196, 0.24591030180454254, 0.29002028703689575, -0.4254915416240692, -0.07746908068656921, -0.24992145597934723, 0.007512504700571299, 0.16988259553909302, 0.3039046823978424, 0.4021052122116089, 0.11703479290008545, 0.09787458926439285, 0.04171845316886902, -0.18095546960830688, -0.005773727782070637, 0.5137706398963928, 0.7084439992904663, 0.09023652225732803, 0.24844488501548767, -0.05229128152132034, -0.052619244903326035, 0.18717245757579803, -0.008820081129670143, 0.28164875507354736, -0.2950822412967682, 0.15949082374572754, 0.16310235857963562, 0.03809558227658272, 0.03176417946815491, 0.05988309904932976, 0.36371028423309326, -0.021534906700253487, -0.08393622934818268, 0.36340686678886414, 0.03869619593024254, -0.09154051542282104, -0.18265382945537567, 0.12322163581848145, 0.5751817226409912, 0.2144143283367157, -0.27306482195854187, -0.23742780089378357, -0.1275797039270401, -0.18430975079536438, 0.3792661428451538, 0.29543742537498474, 0.2662118971347809, 0.07175398617982864, -0.04464661329984665, 0.21548843383789062, -0.05999027192592621, 0.1828853338956833, 0.22501713037490845, 0.0842251107096672, -0.22621425986289978, 0.33780574798583984, 0.3512512743473053, -0.028764093294739723, -0.12931324541568756, 0.6900848746299744, 0.35490578413009644, -0.18107526004314423, -0.08347425609827042, 0.2515941560268402, 0.0005787892732769251, -0.12177957594394684, -0.14447139203548431, -0.2440909594297409, -0.1194600984454155, 0.13712598383426666, -0.16534598171710968, -0.4723705053329468, 0.14296972751617432, 0.3088829517364502, 0.3158622086048126, -0.02277424745261669, 0.3322768807411194, 0.22091569006443024, 0.21781933307647705, -0.2352553755044937, 0.3177047371864319, 0.22841474413871765, 0.2080642133951187, 0.13354957103729248, 0.15968480706214905, 0.14992834627628326, 0.04689137637615204, -0.294941782951355, 0.408103883266449, -0.438806414604187, 0.015448508784174919, -0.04705001786351204, 0.1584736853837967, 0.19521008431911469, -0.26929181814193726, 0.08264587074518204, -0.04524199292063713, -0.016630494967103004, -0.26005902886390686, 0.2939871847629547, -0.40367719531059265, -0.020677512511610985, -0.2553533613681793, -0.1937350183725357, -0.2414623200893402, -0.09636595845222473, -0.13527747988700867, -0.5302697420120239, -0.0924406424164772, 0.13979697227478027, -0.16528606414794922, 0.27695608139038086, -0.06407402455806732, 0.00003549537359504029, -0.07117346674203873, 0.2686168849468231, -0.0679081603884697, -0.1023271307349205, -0.07632387429475784, -0.18582400679588318, -0.2031056433916092, 0.14886970818042755, -0.2374669760465622, 0.13688717782497406, -0.2526894509792328, 0.4799547493457794, 0.14381304383277893, 0.5463253259658813, -0.3531478941440582, 0.13954965770244598, -0.4323919117450714, -0.1334947943687439, -0.42405253648757935, 0.16006827354431152, 0.06287301331758499, 0.5529724359512329, 0.20934775471687317, -0.16004574298858643, 0.2817631959915161, 0.04169534891843796, -0.18447142839431763, -0.16372862458229065, 0.19663143157958984, -0.3929295241832733, -0.4286777973175049, 0.14122642576694489, 0.07234592735767365, 0.10668391734361649, 0.06557940691709518, -0.2056896984577179, -0.15749222040176392, -0.043248388916254044, -0.05867480859160423, 0.15557628870010376, 0.32275909185409546, -0.03239664062857628, -0.3471822142601013, -0.36782971024513245, 0.011420277878642082, 0.11437810212373734, -0.23567353188991547, -0.19691868126392365, -0.11253105849027634, -0.2713979184627533, -0.15147554874420166, 0.22029387950897217, -0.10369524359703064, 0.39745745062828064, -0.35593554377555847, 0.048031385987997055, -0.24334299564361572, -0.06455762684345245, 0.4585358500480652, -0.1786569058895111, -0.3056343197822571, 0.07935154438018799, 0.24479587376117706, 0.2134695053100586, -0.07338222861289978, -0.4194639027118683, 0.2626646161079407, 0.08044548332691193, 0.044742289930582047, -0.21341155469417572, 0.13627618551254272, -0.2202366292476654, -0.2952008545398712, -0.11719337105751038, 0.12708476185798645, -0.05129886418581009, -0.07082872092723846, -0.16705891489982605, -0.19087059795856476 ]
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.035847075283527374, -0.24777807295322418, -0.058699831366539, 0.24638879299163818, 0.2725089192390442, -0.08004886656999588, 0.03257715702056885, 0.41994789242744446, -0.12915101647377014, 0.0406961664557457, -0.26981955766677856, 0.10341077297925949, -0.2411336898803711, 0.21754924952983856, 0.2678767144680023, -0.00017487486184109002, 0.1660441905260086, -0.038154397159814835, 0.020572759211063385, 0.10603953152894974, 0.1364685595035553, -0.09837128967046738, 0.06922616064548492, -0.09804528951644897, -0.38372790813446045, -0.22253918647766113, -0.21140271425247192, 0.0674201175570488, -0.3816430866718292, -0.4354844391345978, -0.29837897419929504, 0.2929074764251709, 0.26306015253067017, 0.5424134135246277, -0.00012243831588421017, -0.21228770911693573, -0.08220986276865005, -0.35585132241249084, -0.333375483751297, 0.06224182993173599, -0.01927824132144451, -0.3454461395740509, -0.11171311885118484, -0.1266125738620758, -0.15777559578418732, -0.2789115309715271, 0.12719470262527466, -0.25557076930999756, 0.8061009645462036, -0.153166264295578, 0.021449502557516098, -0.021573269739747047, -0.048179302364587784, 0.051800161600112915, 0.1918320506811142, 0.3268027901649475, -0.0728117823600769, -0.0447116382420063, 0.6106308102607727, 0.29841288924217224, -0.1840125322341919, 0.12004406750202179, -0.08511979132890701, -0.14985062181949615, 0.10968814045190811, -0.1629781872034073, -0.1703997701406479, -0.19217444956302643, -0.023778008297085762, 0.20371711254119873, 0.42220020294189453, -0.33851560950279236, -0.18622277677059174, -0.33051496744155884, -0.1230703666806221, 0.05087338387966156, 0.03502538427710533, 0.3019007444381714, 0.006019786931574345, 0.341230183839798, -0.31432366371154785, -0.4462242126464844, -0.32646867632865906, -0.013106642290949821, 0.17525239288806915, 0.1036071926355362, -0.1256474256515503, 0.025293732061982155, -0.19961418211460114, -0.2140205353498459, -0.1439000517129898, -0.13323800265789032, -0.065524160861969, 0.18860867619514465, -0.04636324942111969, -0.37190043926239014, -0.20800204575061798, -0.35584205389022827, 0.7443714737892151, 0.25021013617515564, 0.1825268715620041, -0.0044434648007154465, 0.17864671349525452, -0.018011003732681274, 0.3476017415523529, 0.07919647544622421, -0.13441970944404602, -0.2228824347257614, 0.20561939477920532, -0.06920391321182251, 0.044173575937747955, -0.16263076663017273, -0.2966940999031067, 0.30060791969299316, -0.10875793546438217, -0.20923003554344177, 0.1497647911310196, 0.12479789555072784, 0.08625002950429916, 0.12205340713262558, -0.14600257575511932, 0.01251213625073433, 0.16125266253948212, 0.32371705770492554, -0.06065542623400688, 0.10133474320173264, -0.1591728776693344, 0.07910709828138351, 0.25103163719177246, -0.13933098316192627, 0.020304018631577492, -0.08260010182857513, -0.07558862864971161, 0.2826264500617981, 0.16921097040176392, 0.19163870811462402, 0.10673892498016357, -0.09486570209264755, 0.3511993885040283, -0.31649893522262573, 0.19821402430534363, -0.04336640611290932, 0.11725855618715286, -0.053599946200847626, 0.15178397297859192, 0.1754227876663208, -0.21614274382591248, -0.06825949251651764, -0.2824201285839081, 0.014246641658246517, -0.21112865209579468, -0.31643548607826233, -0.04801931604743004, -0.01323917880654335, -0.29577362537384033, 0.23947633802890778, -0.1990528702735901, 0.35872048139572144, 0.0694442018866539, 0.0011226932983845472, -0.06136288866400719, 0.38535839319229126, -0.20453274250030518, -0.25238698720932007, 0.11572355031967163, 0.4234727621078491, -0.16514453291893005, -0.07550673931837082, 0.670063853263855, 0.03877366706728935, -0.2569369375705719, 0.454204797744751, 0.07994910329580307, 0.1556757688522339, 0.02220071479678154, 0.13338468968868256, 0.18893815577030182, -0.5267192721366882, -0.40633001923561096, 0.49483534693717957, -0.19215327501296997, -0.2608952820301056, 0.3926103711128235, -0.027362069115042686, 0.7847680449485779, -0.22483699023723602, 0.09839142113924026, 0.44081708788871765, 0.02351624146103859, 0.30453571677207947, -0.3460557162761688, -0.32474246621131897, -0.13074654340744019, 0.23716014623641968, -0.2409183382987976, -0.2785596549510956, -0.1992865949869156, 0.3613537549972534, 0.09795928001403809, 0.005987534765154123, 0.3558785319328308, -0.07282941043376923, 0.4450257420539856, 0.04582015424966812, -0.10088440030813217, -0.034379053860902786, -0.6144989728927612, -0.1862878054380417, -0.0533255897462368, -0.189626082777977, 0.021922139450907707, -0.44899851083755493, -0.2040056586265564, -0.05484599992632866, -0.06501034647226334, -0.09965241700410843, -0.010785390622913837, -0.0867551639676094, 0.1808193325996399, 0.0646054744720459, -0.42976468801498413, 0.09582062065601349, 0.06795516610145569, 0.1219748854637146, 0.10805470496416092, 0.0707082599401474, 0.10286999493837357, -0.008980226702988148, 0.19838100671768188, 0.13548515737056732, 0.033813755959272385, -0.28504157066345215, 0.28651902079582214, 0.193301260471344, -0.12255286425352097, 0.03606005385518074, 0.03233477100729942, 0.19924160838127136, 0.37654218077659607, 0.23874258995056152, 0.3395581543445587, -0.05287583917379379, -0.10348621755838394, -0.22633175551891327, -0.46603816747665405, 0.3321808874607086, -0.17224498093128204, 0.15169090032577515, -0.11764389276504517, -0.17087337374687195, 0.3835429549217224, 0.06041819974780083, -0.1853942573070526, 0.011660367250442505, -0.11721021682024002, 0.1202116459608078, 0.35834187269210815, 0.15116922557353973, -0.08373089879751205, 0.15342053771018982, 0.416946679353714, -0.1880873143672943, 0.15793029963970184, 0.09226907789707184, 0.01932089403271675, -0.20573365688323975, 0.03390451520681381, -0.3745422065258026, 0.11131066083908081, 0.20452724397182465, -0.11653126031160355, -0.03203286603093147, 0.43542662262916565, -0.09896153956651688, -0.021114859730005264, 0.00982153881341219, 0.05506874993443489, 0.2727506160736084, 0.39296284317970276, -0.1295705884695053, 0.02897568978369236, -0.03258967399597168, 0.20213598012924194, 0.008692248724400997, -0.12814198434352875, -0.04608680680394173, 0.08878152817487717, 0.17700518667697906, 0.0038032247684895992, 0.22650635242462158, -0.148600235581398, 0.1947256177663803, 0.34394824504852295, 0.15373140573501587, 0.05856600031256676, 0.12893454730510712, 0.3415542542934418, 0.7686250805854797, 0.030974095687270164, -0.30494382977485657, 0.049348361790180206, -0.23189739882946014, 0.3245338797569275, -0.07666078209877014, 0.4310401678085327, -0.36174890398979187, 0.28515416383743286, 0.009745881892740726, -0.0011516965460032225, -0.25048553943634033, -0.14963103830814362, 0.24774400889873505, 0.017735440284013748, 0.15061785280704498, -0.18476502597332, 0.24072377383708954, -0.32532551884651184, -0.026481477543711662, 0.1529538631439209, 0.055700235068798065, -0.26865220069885254, -0.15092089772224426, -0.05273868143558502, -0.13775375485420227, 0.08863771706819534, -0.1250997930765152, -0.2744233012199402, -0.3307991027832031, 0.5167524814605713, 0.05435381084680557, 0.08171213418245316, -0.36969462037086487, 0.050888773053884506, -0.0841619223356247, -0.48874226212501526, -0.05986303836107254, -0.1891505867242813, -0.6689900159835815, 0.2267434149980545, -0.20049579441547394, -0.19612398743629456, -0.26400360465049744, 0.12124474346637726, -0.028926994651556015, 0.0722714215517044, -0.2839440107345581, -0.21361587941646576, 0.15477237105369568, 0.07935015112161636, -0.07855448126792908, 0.04790946841239929, 0.39095842838287354, -0.08729533106088638, 0.07946522533893585, 0.05576419085264206, -0.0035897090565413237, 0.1672794669866562, 0.12317956984043121, 0.27210336923599243, -0.02462003380060196, 0.4078182876110077, 0.2914266884326935, 0.8061865568161011, 0.3848923444747925, 0.1959756761789322, 0.08974853903055191, 0.11196254938840866, 0.2658500373363495, -0.028879424557089806, -0.0075310454703867435, 0.4521794021129608, 0.02775592729449272, -0.00881956983357668, 0.2692956328392029, 0.38385939598083496, 0.12423528730869293, -0.09077593684196472, -0.30809709429740906, -0.19061864912509918, -0.23691730201244354, 0.36942431330680847, 0.3165634870529175, 0.10758353769779205, -0.08405223488807678, -0.19375395774841309, -0.15511825680732727, -0.31985780596733093, -0.09433657675981522, 0.15965460240840912, 0.3163716793060303, 0.18790370225906372, -0.6765272617340088, 0.35494744777679443, -0.4088260233402252, 0.07912765443325043, 0.0022835673298686743, -0.10830386728048325, 0.005581115838140249, -0.022630812600255013, 0.15268629789352417, -0.14773985743522644, 0.6616028547286987, 0.3229282796382904, -0.09144601225852966, -0.22031182050704956, -0.08612038195133209, -0.2898351550102234, 0.19376209378242493, -0.15311554074287415, 0.4884578287601471, 0.4400157630443573, 0.545908510684967, -0.6200936436653137, -0.17170198261737823, -0.12507039308547974, 0.05300362780690193, -0.20722343027591705, -0.14153914153575897, -0.12944303452968597, -0.18833822011947632, -0.5278850793838501, 0.12442387640476227, 0.28730010986328125, -0.042545974254608154, 0.35934486985206604, -0.12780749797821045, -0.05978360027074814, 0.0075277178548276424, 0.07390257716178894, 0.22899478673934937, 0.05084017291665077, 0.09897788614034653, 0.11737444251775742, 0.17094683647155762, 0.2239162027835846, 0.16165956854820251, 0.11826936155557632, 0.05300004035234451, 0.04100589454174042, 0.12080559134483337, 0.009725264273583889, 0.5497872829437256, 0.4826798737049103, 0.13555561006069183, -0.03347956761717796, -0.4917353689670563, 0.26763805747032166, -0.4027079939842224, 0.0017772723222151399, 0.08909036219120026, -0.09267652779817581, -0.39608076214790344, -0.09109040349721909, 0.3552251160144806, -0.0016623082337900996, -0.13861611485481262, 0.011144578456878662, 0.21359679102897644, -0.15999305248260498, 0.4445265233516693, 0.11869208514690399, 1.327431559562683, -0.4156692624092102, 0.4368343949317932, 0.01712915115058422, 0.14096136391162872, 0.6164472103118896, -0.8450108766555786, 0.038802288472652435, -0.35986506938934326, 0.4247412383556366, 0.029794838279485703, -0.10854896903038025, -0.09363128989934921, 0.4053986072540283, -0.32675787806510925, 0.10375736653804779, -0.10900116711854935, 0.5489721298217773, -0.276616632938385, 0.6767638921737671, -0.13599573075771332, -0.3900083601474762, -0.507185697555542, 0.010056526400148869, -0.2479691207408905, -0.2652219831943512, -0.07693291455507278, -0.1078803688287735, -0.07732126116752625, 0.03634633868932724, -0.05827108025550842, -0.2953857183456421, -0.1762768179178238, 0.15645797550678253, 0.18030819296836853, -0.2939796447753906, 0.1962883323431015, 0.1551855057477951, 0.07040633261203766, 0.355705589056015, -0.09403109550476074, 0.11655518412590027, -0.3090682625770569, -0.17902398109436035, 0.02900126948952675, -0.04756660386919975, 0.13236194849014282, -0.0566532127559185, -0.20801374316215515, 0.06459508091211319, 0.23626399040222168, -0.0711735263466835, -0.4781261682510376, 0.07094550877809525, 0.339739054441452, -0.5559620261192322, -0.21733081340789795, -0.04620654881000519, -0.20468546450138092, 0.054246462881565094, -0.029626088216900826, 0.1538580358028412, -0.09530498832464218, 0.23202231526374817, 0.5043821930885315, -0.05778520554304123, -0.006232856772840023, 0.21014109253883362, -0.13619136810302734, -0.30360934138298035, 0.24249181151390076, 0.014158654026687145, -0.1571894884109497, -0.1543036848306656, 0.6779857873916626, -0.004422576632350683, -0.09612729400396347, 0.0694543793797493, -0.01597169227898121, -0.32589444518089294, -0.40360715985298157, -0.11014237254858017, 0.34761103987693787, -0.05624069273471832, 0.268533319234848, -0.22509558498859406, -0.44990843534469604, 0.3364255130290985, 0.09500996768474579, -0.04454951360821724, 0.17584580183029175, 0.0866955891251564, -0.18577265739440918, 0.34498804807662964, -0.18880751729011536, 0.18348443508148193, -0.0558890737593174, 0.11683493107557297, -0.06798277795314789, -0.20872952044010162, 0.0415927991271019, -0.12106016278266907, -0.09290482103824615, 0.06250232458114624, -0.24117553234100342, -0.09486701339483261, -0.15574942529201508, 0.24169056117534637, 0.13953740894794464, -0.05947767570614815, -0.13668587803840637, -0.2649315297603607, -0.12264011055231094, -0.13765068352222443, 0.22602342069149017, 0.2327335774898529, 0.2882922291755676, -0.3781513571739197, -0.021364308893680573, -0.1897069811820984, -0.012264019809663296, 0.14881561696529388, 0.27425268292427063, 0.3308253884315491, 0.12997280061244965, 0.10343557596206665, 0.04520580172538757, -0.1667613536119461, 0.020237276330590248, 0.5075790286064148, 0.755401074886322, 0.08782929182052612, 0.25766894221305847, -0.06098734587430954, 0.002305795671418309, 0.1873062402009964, 0.019499484449625015, 0.3032788336277008, -0.260225385427475, 0.11390581727027893, 0.1739157885313034, 0.05791046842932701, 0.019014954566955566, 0.06318990141153336, 0.35939210653305054, -0.03940865397453308, -0.0887114405632019, 0.31820428371429443, 0.054709773510694504, -0.0583631731569767, -0.18325765430927277, 0.11590267717838287, 0.7018385529518127, 0.198841854929924, -0.2889252305030823, -0.2357713282108307, -0.10478166490793228, -0.1645617038011551, 0.373485803604126, 0.2908751666545868, 0.29327863454818726, 0.10420868545770645, -0.09196964651346207, 0.2733825445175171, -0.0017069188179448247, 0.09823041409254074, 0.23746557533740997, 0.08662440627813339, -0.22616177797317505, 0.3672831356525421, 0.3661682605743408, -0.05863567441701889, -0.11505132168531418, 0.7066918611526489, 0.2983398139476776, -0.19592760503292084, -0.0657619759440422, 0.2664955258369446, -0.026134824380278587, -0.1698412150144577, -0.2138807624578476, -0.22866462171077728, -0.15454831719398499, 0.14487628638744354, -0.2393975406885147, -0.47005531191825867, 0.08612619340419769, 0.28421106934547424, 0.35714733600616455, -0.07513687759637833, 0.3392665982246399, 0.17759117484092712, 0.24669240415096283, -0.2510382831096649, 0.3707903325557709, 0.21500511467456818, 0.1839134395122528, 0.1710399091243744, 0.15256068110466003, 0.2048097848892212, 0.010060613974928856, -0.290056049823761, 0.38808518648147583, -0.49036705493927, 0.023379014804959297, -0.02588147483766079, 0.15211977064609528, 0.19270260632038116, -0.2843944728374481, 0.10543536394834518, -0.049968402832746506, -0.0337047278881073, -0.2527788281440735, 0.27083107829093933, -0.43843239545822144, 0.05051688849925995, -0.2957765758037567, -0.2173881083726883, -0.23270204663276672, -0.07324408739805222, -0.13006563484668732, -0.47578829526901245, -0.06525442004203796, 0.17698220908641815, -0.1273903250694275, 0.3105265498161316, -0.04615306481719017, 0.006054893136024475, -0.07350606471300125, 0.22832801938056946, -0.021360674872994423, -0.1428963541984558, -0.10406678169965744, -0.16371306777000427, -0.22872121632099152, 0.126768097281456, -0.1789250671863556, 0.11971946805715561, -0.27434781193733215, 0.40884098410606384, 0.1407327950000763, 0.5077559351921082, -0.3582146167755127, 0.21118339896202087, -0.419912189245224, -0.11951038241386414, -0.43277186155319214, 0.16431061923503876, 0.02195175550878048, 0.5623588562011719, 0.22806985676288605, -0.14571340382099152, 0.2083117514848709, 0.11271937191486359, -0.17068777978420258, -0.16045542061328888, 0.17790228128433228, -0.3798597455024719, -0.4262796640396118, 0.10128002613782883, 0.10236316174268723, 0.13088063895702362, 0.02531513199210167, -0.16242475807666779, -0.08465099334716797, 0.004298925865441561, -0.08825534582138062, 0.15285083651542664, 0.30822616815567017, 0.0007682901341468096, -0.3237610161304474, -0.3393217623233795, 0.02284993976354599, 0.09244673699140549, -0.2554950714111328, -0.23947416245937347, -0.20165014266967773, -0.2231934368610382, -0.1314106285572052, 0.1888442188501358, -0.1389203518629074, 0.37243229150772095, -0.34379276633262634, 0.0827578529715538, -0.25182831287384033, -0.11339941620826721, 0.46299242973327637, -0.21207445859909058, -0.21369506418704987, 0.1079561784863472, 0.17335385084152222, 0.2590770423412323, -0.012635773979127407, -0.46066781878471375, 0.2509460747241974, 0.1250087469816208, 0.03488356992602348, -0.25398901104927063, 0.12035618722438812, -0.18432992696762085, -0.30703872442245483, -0.13785773515701294, 0.19339466094970703, -0.016840778291225433, -0.10576338320970535, -0.2072906196117401, -0.1747218519449234 ]
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.09984645992517471, -0.3400503396987915, -0.07225450128316879, 0.27405205368995667, 0.2330145686864853, -0.13411948084831238, 0.05346622318029404, 0.4866887032985687, -0.08115612715482712, 0.03897905349731445, -0.2371416687965393, 0.07050934433937073, -0.2566492557525635, 0.30955544114112854, 0.27045440673828125, -0.07453985512256622, 0.14123474061489105, -0.03204963356256485, 0.014896388165652752, 0.029936334118247032, 0.145199716091156, -0.13392186164855957, 0.02695087157189846, -0.034334518015384674, -0.33126211166381836, -0.14784111082553864, -0.1655000001192093, 0.14868637919425964, -0.308570921421051, -0.4827931821346283, -0.3069819509983063, 0.28741735219955444, 0.2753959894180298, 0.4879116117954254, -0.0001232336217071861, -0.13718248903751373, -0.0272385086864233, -0.3751019239425659, -0.39146220684051514, 0.06229536607861519, 0.049660757184028625, -0.2882883548736572, -0.06492428481578827, -0.09460461139678955, -0.17648088932037354, -0.2693076431751251, 0.11243704706430435, -0.1765531301498413, 0.933348536491394, -0.09129501134157181, -0.0013210256583988667, -0.018596084788441658, -0.17067782580852509, 0.03429238125681877, 0.22400236129760742, 0.16998641192913055, -0.031627804040908813, 0.009406303986907005, 0.6531957387924194, 0.3252057433128357, -0.20578953623771667, 0.16274753212928772, 0.007642819080501795, -0.16223934292793274, 0.09852028638124466, -0.1589539796113968, -0.015966862440109253, -0.15286551415920258, -0.09000620990991592, 0.2489255666732788, 0.35972315073013306, -0.23456282913684845, -0.242704838514328, -0.3881298899650574, -0.03160719946026802, 0.008495927788317204, 0.08476755023002625, 0.2578560709953308, -0.03031974285840988, 0.4028695523738861, -0.34504157304763794, -0.4935601055622101, -0.3452897071838379, -0.0025277426466345787, 0.1328750103712082, 0.0023259322624653578, -0.0820591002702713, -0.019571950659155846, -0.1442520171403885, -0.1430080085992813, -0.031288452446460724, -0.15120534598827362, 0.05735925957560539, 0.17605945467948914, 0.007676555775105953, -0.3633483350276947, -0.18325453996658325, -0.3150160312652588, 0.6128087639808655, 0.2020140141248703, 0.16590099036693573, 0.09217163920402527, 0.1930486410856247, -0.07603312283754349, 0.3041754961013794, 0.003958415240049362, -0.1741168051958084, -0.23578764498233795, 0.15301905572414398, 0.003297377610579133, -0.04085026681423187, -0.09108321368694305, -0.4117303788661957, 0.2907009720802307, -0.27959924936294556, -0.21312305331230164, 0.03983302414417267, 0.10762566328048706, 0.028553180396556854, 0.12417220324277878, -0.166343554854393, -0.03431384265422821, 0.19780929386615753, 0.33676669001579285, -0.18966880440711975, 0.20100019872188568, -0.052340347319841385, 0.05500117316842079, 0.19314640760421753, -0.2182546854019165, 0.024584628641605377, -0.06779692322015762, -0.16781927645206451, 0.3149711787700653, 0.1374840885400772, 0.0973452627658844, 0.10680633783340454, -0.08088593184947968, 0.3495575487613678, -0.29236239194869995, 0.0944589152932167, 0.060651566833257675, 0.05203818902373314, -0.10302342474460602, 0.08150897175073624, 0.08542507141828537, -0.2245239019393921, -0.0646580308675766, -0.22713150084018707, 0.07246369123458862, -0.3223101794719696, -0.3137340545654297, 0.07089841365814209, -0.024388130754232407, -0.23724043369293213, 0.2669651508331299, -0.14643487334251404, 0.4468390643596649, -0.06674332916736603, -0.000022958131012273952, -0.058648694306612015, 0.39509329199790955, -0.2568885087966919, -0.16376082599163055, 0.14269740879535675, 0.41706913709640503, -0.20854738354682922, -0.1686362326145172, 0.7675313353538513, 0.11900606006383896, -0.28289058804512024, 0.43218085169792175, -0.04072502627968788, 0.17638446390628815, 0.0575949028134346, 0.028794415295124054, 0.2927296459674835, -0.6150716543197632, -0.3437720537185669, 0.5754371285438538, -0.23380346596240997, -0.21947911381721497, 0.42518457770347595, -0.018134916201233864, 0.7501609325408936, -0.2715398669242859, 0.16702815890312195, 0.5265709161758423, 0.027556313201785088, 0.26136356592178345, -0.3428589701652527, -0.3132783770561218, -0.1130174994468689, 0.352265864610672, -0.2507219910621643, -0.20152419805526733, -0.2499057799577713, 0.3206184506416321, 0.12772734463214874, -0.039945829659700394, 0.23565462231636047, -0.05520477890968323, 0.1949424147605896, 0.10721638798713684, -0.1261139065027237, 0.06867651641368866, -0.6354451179504395, -0.18001750111579895, -0.03530464321374893, -0.250453919172287, 0.07393250614404678, -0.4319308400154114, -0.20574168860912323, -0.052475813776254654, -0.08260436356067657, 0.009418758563697338, -0.07343841344118118, -0.1099151223897934, 0.15367183089256287, 0.08927473425865173, -0.44309523701667786, 0.15765441954135895, -0.03170271962881088, 0.1350347399711609, 0.10336778312921524, 0.09330286830663681, 0.1940135955810547, 0.016800059005618095, 0.22265803813934326, 0.1754048466682434, 0.019664039835333824, -0.30612561106681824, 0.3164180517196655, 0.23100051283836365, -0.18039490282535553, 0.10782062262296677, 0.028629586100578308, 0.1224038228392601, 0.38700148463249207, 0.2914455533027649, 0.27574560046195984, -0.020401112735271454, -0.08907079696655273, -0.2014705389738083, -0.435425728559494, 0.469590961933136, -0.13992567360401154, 0.1029195785522461, -0.04699435085058212, -0.19222596287727356, 0.2470768839120865, 0.027965404093265533, -0.32787418365478516, 0.07854769378900528, -0.04113148897886276, 0.10103563964366913, 0.37795111536979675, 0.1883983016014099, -0.21858230233192444, 0.10351250320672989, 0.5042096376419067, -0.24995118379592896, 0.06314780563116074, 0.14562931656837463, 0.07394713163375854, -0.1624068021774292, -0.06548153609037399, -0.36915427446365356, 0.10350014269351959, 0.15091216564178467, -0.1132977083325386, 0.036500804126262665, 0.3595151901245117, -0.14148953557014465, -0.026440061628818512, 0.04005063697695732, 0.1576571762561798, 0.23075328767299652, 0.336263507604599, -0.1535273790359497, -0.01259330939501524, -0.043057214468717575, 0.1768827736377716, -0.020825298503041267, -0.14732716977596283, 0.07031223177909851, 0.10817348212003708, 0.229182168841362, -0.10802169889211655, 0.09239842742681503, -0.04077819362282753, 0.22098888456821442, 0.3710331320762634, 0.12209682911634445, 0.04942871630191803, 0.12328418344259262, 0.3574220836162567, 0.7777608036994934, 0.07407858222723007, -0.29544147849082947, 0.03453022986650467, -0.25099727511405945, 0.24996992945671082, -0.10990335047245026, 0.40669187903404236, -0.3923885226249695, 0.20882555842399597, -0.10023704916238785, -0.0704728364944458, -0.08810127526521683, -0.10809488594532013, 0.23575358092784882, -0.012825396843254566, 0.04022826626896858, -0.21339848637580872, 0.2169344276189804, -0.343436598777771, -0.07468526810407639, 0.1513521373271942, -0.009462197311222553, -0.2644818127155304, -0.14705024659633636, -0.0022059741895645857, -0.08636724203824997, 0.0888577550649643, -0.2968887686729431, -0.2773437798023224, -0.2985849380493164, 0.49280110001564026, 0.07546006143093109, 0.06408973038196564, -0.3779042065143585, 0.08156708627939224, -0.015370441600680351, -0.4000914394855499, -0.06912444531917572, -0.15809103846549988, -0.6986129879951477, 0.22224992513656616, -0.16571231186389923, -0.22890949249267578, -0.26810207962989807, 0.08223260194063187, -0.058876097202301025, 0.08157730847597122, -0.36716577410697937, -0.20161351561546326, 0.21880313754081726, 0.03217075765132904, -0.1601272076368332, 0.03763366490602493, 0.32662588357925415, -0.11087864637374878, 0.09103801846504211, 0.056565817445516586, 0.07888477295637131, 0.192337304353714, 0.0437459871172905, 0.2103666514158249, -0.045557186007499695, 0.5006767511367798, 0.24447749555110931, 0.8879319429397583, 0.4185720682144165, 0.16327352821826935, -0.0356384739279747, 0.06545480340719223, 0.1641032099723816, -0.0016245088772848248, 0.07146517187356949, 0.42873135209083557, -0.027769140899181366, -0.021747780963778496, 0.28388628363609314, 0.34379011392593384, 0.020833399146795273, -0.2105359137058258, -0.22432613372802734, -0.1663825809955597, -0.2680465877056122, 0.34880322217941284, 0.3016023635864258, 0.09693676233291626, -0.05361897870898247, -0.14210695028305054, -0.14446495473384857, -0.2485811859369278, -0.041812870651483536, 0.08933597803115845, 0.35144898295402527, 0.1249716579914093, -0.6669870018959045, 0.2719285786151886, -0.37509268522262573, 0.002804636023938656, 0.10758216679096222, -0.10160395503044128, 0.05910030007362366, -0.06268707662820816, 0.19749347865581512, -0.1959410011768341, 0.6504688858985901, 0.38838014006614685, -0.0828792154788971, -0.2534449100494385, -0.14870458841323853, -0.30814194679260254, 0.1487339437007904, -0.18080094456672668, 0.4100213646888733, 0.4926868975162506, 0.4620293974876404, -0.5409815907478333, -0.2708086371421814, -0.029010625556111336, -0.008757555857300758, -0.1661587655544281, -0.09592416137456894, -0.17183652520179749, -0.19786234200000763, -0.5452146530151367, 0.18182598054409027, 0.3202819228172302, -0.008540168404579163, 0.28295546770095825, -0.1344592571258545, 0.056700702756643295, 0.08500876277685165, 0.10736942291259766, 0.18728382885456085, 0.018847746774554253, 0.178181990981102, 0.08953716605901718, 0.28453999757766724, 0.28574517369270325, 0.09034193307161331, 0.1812291145324707, 0.10716032981872559, 0.015268069691956043, 0.10321862250566483, 0.049548227339982986, 0.5974901914596558, 0.6548075675964355, 0.15365606546401978, -0.004499503877013922, -0.48069560527801514, 0.2829878032207489, -0.37641051411628723, 0.027769742533564568, 0.13942843675613403, -0.09483984857797623, -0.3397720456123352, -0.1617484986782074, 0.4260539710521698, 0.005219779442995787, -0.10997512191534042, -0.0014932050835341215, 0.10725658386945724, -0.13067206740379333, 0.40679091215133667, 0.03067096509039402, 1.351260781288147, -0.35638222098350525, 0.4912477135658264, 0.1727318912744522, 0.2168498933315277, 0.5118806958198547, -0.8861697912216187, 0.09633098542690277, -0.3162592351436615, 0.3876071274280548, -0.03043811395764351, -0.13102026283740997, -0.10443839430809021, 0.3876614272594452, -0.2980625629425049, 0.10572626441717148, -0.048718031495809555, 0.5162268280982971, -0.2545675039291382, 0.6119435429573059, -0.053231317549943924, -0.3716336786746979, -0.6192560195922852, -0.04156306013464928, -0.14616659283638, -0.29773175716400146, -0.05569012463092804, -0.15091758966445923, -0.08026006072759628, 0.046484917402267456, 0.05692877992987633, -0.2324223518371582, -0.1602410525083542, 0.11064544320106506, 0.3232056796550751, -0.30372944474220276, 0.22903567552566528, 0.245935320854187, 0.05306745693087578, 0.2225884199142456, -0.08275105059146881, 0.20050057768821716, -0.42257755994796753, -0.14203734695911407, 0.04886464402079582, -0.034262869507074356, 0.2505095601081848, -0.0836917832493782, -0.2108561396598816, 0.21703535318374634, 0.17198976874351501, -0.08622518181800842, -0.4488449990749359, 0.05936696380376816, 0.37817808985710144, -0.5011565685272217, -0.22080902755260468, 0.021179962903261185, -0.19539454579353333, 0.04593660309910774, -0.05106567218899727, 0.13415667414665222, -0.20420776307582855, 0.21374303102493286, 0.5658401250839233, -0.1569909155368805, 0.033746667206287384, 0.29415586590766907, -0.12105489522218704, -0.30526673793792725, 0.35074517130851746, 0.07445431500673294, -0.1224072203040123, -0.13037990033626556, 0.6699299812316895, 0.08755325525999069, -0.12036614120006561, 0.11517263948917389, 0.02448788471519947, -0.3150230348110199, -0.38780874013900757, 0.03553330898284912, 0.294903427362442, -0.06810430437326431, 0.26882633566856384, -0.1532766968011856, -0.36707544326782227, 0.32259464263916016, 0.09868265688419342, -0.08118563890457153, 0.17343288660049438, 0.14036156237125397, -0.12983208894729614, 0.26859593391418457, -0.16803273558616638, 0.20726023614406586, -0.06269068270921707, 0.15554818511009216, -0.0826554223895073, -0.21203698217868805, 0.07560154795646667, -0.042016275227069855, -0.11846587806940079, 0.07138978689908981, -0.28385233879089355, -0.07395363599061966, -0.11438369750976562, 0.24300314486026764, 0.08622787147760391, -0.02859687991440296, -0.14529691636562347, -0.26203617453575134, -0.1635838747024536, -0.04324702173471451, 0.2405247539281845, 0.14363239705562592, 0.3013542890548706, -0.3893830478191376, -0.1232064738869667, -0.16677357256412506, 0.018569596111774445, 0.10546989738941193, 0.2372743934392929, 0.39041516184806824, 0.09403930604457855, 0.017379313707351685, -0.02783861570060253, -0.21034656465053558, -0.03889933601021767, 0.5302078723907471, 0.743600070476532, 0.15784882009029388, 0.30642521381378174, -0.15542863309383392, 0.05373876914381981, 0.18451210856437683, 0.0057739634066820145, 0.3656209707260132, -0.3396032154560089, 0.03933950513601303, 0.19362057745456696, 0.0008063721470534801, -0.0336848720908165, 0.04043073579668999, 0.3611767888069153, -0.0661933645606041, -0.07200498878955841, 0.3435066044330597, 0.051119036972522736, -0.04489150643348694, -0.10864150524139404, 0.12117338925600052, 0.4851032495498657, 0.1997785121202469, -0.2774345874786377, -0.13472481071949005, -0.06252174079418182, -0.14071528613567352, 0.29621732234954834, 0.3051089942455292, 0.1989794671535492, 0.17177583277225494, -0.09574911743402481, 0.18777163326740265, -0.052871476858854294, 0.1498083472251892, 0.06647786498069763, 0.04341919720172882, -0.24574320018291473, 0.37803491950035095, 0.2527342736721039, -0.06728577613830566, -0.12093356251716614, 0.7141616940498352, 0.36400842666625977, -0.3019389510154724, -0.09252716600894928, 0.2697065472602844, -0.013587131164968014, -0.24063095450401306, -0.21186336874961853, -0.18765775859355927, -0.2100353240966797, 0.25403866171836853, -0.24796995520591736, -0.3314102590084076, 0.13381166756153107, 0.3403824269771576, 0.4442259967327118, -0.08924570679664612, 0.23577800393104553, 0.10619192570447922, 0.327431857585907, -0.2305298149585724, 0.39296799898147583, 0.1338682770729065, 0.226318821310997, 0.2677948772907257, 0.040316496044397354, 0.0432622954249382, -0.010575707070529461, -0.3140462040901184, 0.3602118492126465, -0.4900689721107483, 0.053930528461933136, 0.08047933876514435, 0.1562831997871399, 0.3114762306213379, -0.2725023627281189, 0.16544871032238007, -0.07213887572288513, -0.04260661453008652, -0.09975162148475647, 0.17552104592323303, -0.4402993619441986, -0.09181953966617584, -0.23063333332538605, -0.13367967307567596, -0.1629972606897354, -0.21421942114830017, -0.14934475719928741, -0.468365877866745, -0.0881214514374733, 0.119766004383564, -0.1382949948310852, 0.24152345955371857, -0.022576231509447098, 0.009284148924052715, -0.0779879167675972, 0.360664963722229, 0.015116319991648197, 0.0071029094979166985, -0.1119028776884079, -0.17444144189357758, -0.16617311537265778, 0.09791484475135803, -0.16818952560424805, 0.17385296523571014, -0.19815704226493835, 0.40404072403907776, 0.18106530606746674, 0.5885443687438965, -0.33180251717567444, 0.1254517138004303, -0.38610246777534485, -0.16237862408161163, -0.4126795828342438, 0.17040294408798218, 0.05358121916651726, 0.6294959783554077, 0.1562550961971283, -0.15916094183921814, 0.2456199675798416, 0.04473263770341873, -0.1992175430059433, -0.07320588082075119, 0.18638482689857483, -0.4293972849845886, -0.40380793809890747, 0.02915368787944317, -0.014028545469045639, 0.09597493708133698, 0.04688682034611702, -0.1298423707485199, -0.11764402687549591, -0.03176666051149368, -0.07674302160739899, 0.09949608892202377, 0.30098551511764526, -0.004139136988669634, -0.33517804741859436, -0.2618257403373718, 0.04222850129008293, 0.06298551708459854, -0.14926886558532715, -0.17607532441616058, -0.21431070566177368, -0.1981460154056549, -0.16948926448822021, 0.29600203037261963, -0.07396890968084335, 0.4579181671142578, -0.37073594331741333, 0.08303288370370865, -0.20625761151313782, -0.09769587218761444, 0.5351340770721436, -0.2897500991821289, -0.28382882475852966, 0.14460302889347076, 0.17779114842414856, 0.3432672619819641, 0.021770671010017395, -0.4834470748901367, 0.23821786046028137, 0.05892005190253258, 0.028144102543592453, -0.358478307723999, 0.1546439230442047, -0.15185332298278809, -0.28573256731033325, -0.1427769809961319, 0.16861595213413239, -0.035278547555208206, -0.10140042006969452, -0.21210162341594696, -0.2255222499370575 ]
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.16945293545722961, -0.23958128690719604, -0.030473245307803154, 0.16115891933441162, 0.23674039542675018, -0.049164801836013794, 0.10730059444904327, 0.3623579442501068, 0.43302735686302185, 0.051628440618515015, -0.3168230652809143, 0.27634745836257935, -0.07980746030807495, -0.024109603837132454, 0.1026180237531662, -0.28314921259880066, -0.1162881851196289, 0.16044855117797852, -0.22024953365325928, 0.31025657057762146, -0.32451096177101135, 0.2713673412799835, -0.18585644662380219, 0.3197875916957855, -0.1767067164182663, -0.0903877466917038, 0.020484022796154022, -0.19617068767547607, -0.3263722360134125, -0.3629354238510132, 0.24816270172595978, -0.11683493107557297, 0.02158600091934204, 0.17664261162281036, -0.00011026336869690567, -0.012056238949298859, 0.45895302295684814, 0.0023093759082257748, 0.15884584188461304, -0.14216330647468567, -0.38898083567619324, -0.08348134160041809, 0.044414471834897995, -0.23614968359470367, 0.13466575741767883, 0.2275208830833435, 0.02061403915286064, -0.1826084554195404, 0.2193325310945511, 0.27097973227500916, 0.2774609327316284, 0.38711437582969666, 0.31260034441947937, -0.198993518948555, 0.17249129712581635, -0.20823243260383606, 0.026587603613734245, 0.8870654702186584, -0.327216774225235, -0.4651894271373749, -0.007801703177392483, 0.20694439113140106, -0.10570745915174484, 0.2180079072713852, 0.2240159660577774, 0.052195921540260315, 0.3717002868652344, -0.3202623724937439, -0.1326412558555603, -0.0713139995932579, -0.21813495457172394, -0.2285420000553131, -0.14993156492710114, 0.041657134890556335, 0.047116801142692566, -0.3763105869293213, 0.09723930060863495, -0.07267849892377853, 0.05816056579351425, -0.2293187826871872, -0.054969463497400284, 0.14027652144432068, -0.11441385000944138, 0.27529600262641907, 0.24009038507938385, 0.32144683599472046, -0.1981528103351593, 0.29690021276474, 0.41472721099853516, 0.21544227004051208, -0.1390434056520462, 0.04354558140039444, -0.2401256263256073, 0.16533461213111877, -0.2926103174686432, -0.04232808202505112, -0.0104531766846776, 0.1914086788892746, 0.023926204070448875, -0.23546716570854187, 0.048730794340372086, -0.20800530910491943, 0.48574861884117126, 0.3427955210208893, 0.06029811128973961, 0.3389248549938202, 0.35345515608787537, 0.15646490454673767, 0.12742556631565094, 0.2417825162410736, 0.0023339434992522, -0.16949354112148285, 0.2388443648815155, -0.3881971538066864, 0.3655790388584137, 0.24139051139354706, 0.10852400213479996, 0.07705982029438019, -0.4262593388557434, -0.17716829478740692, -0.0480155423283577, -0.0049845511093735695, 0.036921825259923935, 0.07186249643564224, -0.01879129186272621, 0.0006610190030187368, 0.10499069094657898, 0.19069348275661469, -0.19106921553611755, 0.057039279490709305, -0.13428495824337006, 0.4053148925304413, -0.3368166983127594, 0.12151695042848587, 0.15138977766036987, -0.03329214081168175, 0.20435743033885956, -0.10730422288179398, 0.1692519187927246, -0.18722569942474365, 0.021252192556858063, -0.24505285918712616, -0.0659324899315834, 0.1954423189163208, 0.04804401099681854, 0.002814070088788867, 0.3261827230453491, -0.561188280582428, -0.16353492438793182, -0.21554020047187805, -0.22833652794361115, -0.30006691813468933, -0.14694376289844513, 0.23516923189163208, -0.17960023880004883, 0.030037561431527138, -0.4003525674343109, -0.1805468201637268, 0.2377261519432068, 0.044947970658540726, 0.112689308822155, -0.26761022210121155, -0.2484901249408722, -0.29217207431793213, 0.20164938271045685, 0.13887488842010498, -0.08172516524791718, -0.11474328488111496, -0.19186431169509888, -0.10300781577825546, 0.11747462302446365, 0.31447312235832214, 0.17239028215408325, 0.4397917091846466, -0.23195210099220276, 0.15153193473815918, 0.5892592072486877, -0.6347140073776245, -0.23698081076145172, 0.10070867836475372, 0.09687572717666626, -0.28190821409225464, -0.06954002380371094, 0.09508848935365677, 0.28745782375335693, 0.07509426772594452, 0.46930456161499023, 0.17752590775489807, -0.120040662586689, -0.19108213484287262, -0.30035850405693054, 0.03456033766269684, 0.08522260934114456, 0.05227358639240265, 0.2045293003320694, -0.050442349165678024, 0.10968861728906631, -0.06492148339748383, -0.14382053911685944, 0.19733744859695435, 0.01944972388446331, 0.030141588300466537, 0.33182069659233093, -0.23766446113586426, 0.00824546068906784, -0.5077999830245972, -0.02875298634171486, 0.07651537656784058, -0.5539195537567139, 0.1985284835100174, 0.09628543257713318, -0.016301825642585754, -0.5231422185897827, 0.10505980998277664, -0.0699511244893074, -0.03930845856666565, 0.23269104957580566, -0.20644772052764893, 0.30469074845314026, 0.023179832845926285, -0.038481973111629486, 0.17104387283325195, 0.07656776905059814, 0.084715835750103, -0.08914116770029068, 0.2145031839609146, -0.2762117385864258, -0.4148796796798706, 0.13826747238636017, 0.3498588800430298, 0.27277204394340515, 0.03530475124716759, -0.10926245898008347, 0.499755322933197, -0.14241845905780792, -0.2285175770521164, 0.05572759732604027, -0.06330737471580505, -0.007170068100094795, 0.030630232766270638, -0.01862354576587677, -0.11324915289878845, 0.19068236649036407, -0.029351714998483658, 0.321016401052475, 0.19584619998931885, 0.010319379158318043, 0.29748618602752686, -0.11806746572256088, 0.327396422624588, -0.12253164499998093, -0.05843076854944229, -0.15002256631851196, -0.1341112107038498, 0.4181143343448639, -0.2973012924194336, -0.07993999868631363, -0.18273064494132996, 0.32191693782806396, -0.23060524463653564, 0.33504149317741394, -0.049650732427835464, 0.18547651171684265, -0.028964880853891373, -0.21909260749816895, 0.107579804956913, -0.15371417999267578, 0.12825267016887665, 0.5975930690765381, -0.004965077619999647, -0.12477127462625504, 0.025017477571964264, -0.19269554316997528, -0.023432230576872826, 0.17540134489536285, 0.06748297810554504, 0.030819229781627655, 0.10812816023826599, 0.1688196063041687, -0.02817785181105137, -0.03804817423224449, 0.10205882787704468, -0.23131874203681946, 0.23119713366031647, -0.32205548882484436, -0.01783200539648533, -0.04514681175351143, -0.4319617748260498, -0.16770637035369873, -0.10991377383470535, -0.2902899384498596, -0.6119659543037415, -0.05723482742905617, 0.05136871710419655, 0.08731792867183685, 0.18926265835762024, 0.3226218521595001, 0.06517982482910156, 0.11167925596237183, 0.09688828140497208, 0.05226701498031616, -0.22013084590435028, -0.029467711225152016, 0.05251777172088623, 0.013736134395003319, 0.20372718572616577, 0.44383811950683594, -0.10368499159812927, -0.014590242877602577, -0.10509465634822845, -0.3087320625782013, 0.01734606735408306, -0.2842084467411041, 0.6033974885940552, 0.4132929742336273, -0.12381435930728912, -0.057887956500053406, -0.37814056873321533, 0.4658438563346863, -0.42504042387008667, 0.017162812873721123, 0.22456113994121552, -0.20285765826702118, -0.04571065679192543, -0.1568724662065506, 0.05340954661369324, -0.2870555818080902, -0.36026179790496826, 0.32441481947898865, 0.13621094822883606, 0.08709778636693954, 0.024713177233934402, -0.2230975180864334, 0.3781217038631439, -0.19029171764850616, -0.19854611158370972, -0.18983832001686096, -0.028720490634441376, 0.3248329758644104, -0.20611140131950378, -0.3413917124271393, -0.08863300085067749, -0.06677455455064774, 0.32060137391090393, -0.24102799594402313, -0.24471478164196014, -0.5733758807182312, -0.18514248728752136, 0.02861546166241169, -0.12968872487545013, 0.192884162068367, 0.04400194063782692, -0.16710779070854187, -0.0649086982011795, -0.09491904824972153, -0.2339581549167633, 0.16283394396305084, 0.21928240358829498, 0.09260707348585129, -0.1301688551902771, 0.34217554330825806, 0.08538444340229034, 0.3098371624946594, 0.10359982401132584, -0.09242148697376251, 0.2702837586402893, 0.04310233145952225, 0.23097771406173706, 0.006547846831381321, -0.49109214544296265, 0.1871618628501892, -0.12123341858386993, 0.3261260688304901, -0.11696851253509521, -0.02284618653357029, -0.05332912877202034, -0.21609775722026825, -0.14292962849140167, -0.12352071702480316, -0.22179004549980164, 0.07442499697208405, 0.015262202359735966, 0.1742432564496994, 0.05931501090526581, -0.2170495241880417, -0.2897803783416748, -0.2181471288204193, 0.19447562098503113, 0.21567165851593018, 0.01036110520362854, -0.07123590260744095, -0.038227394223213196, -0.2960555851459503, -0.38884034752845764, 0.47180795669555664, 0.1434946060180664, 0.33034828305244446, -0.1176617294549942, 0.2998412847518921, -0.15167216956615448, 0.11472935974597931, 0.21706220507621765, -0.35604366660118103, 0.07976409792900085, 0.28989148139953613, 0.19626259803771973, -0.5538409352302551, -0.13813146948814392, -0.4275742471218109, 0.3352844715118408, 0.5549218654632568, 0.4441612958908081, -0.25144192576408386, 0.0707288533449173, 0.4990737736225128, -0.05778123438358307, -0.04948587343096733, -0.4405653178691864, -0.42764031887054443, -0.19757287204265594, -0.1345931738615036, -0.07351944595575333, 0.1434214562177658, 0.20617149770259857, 0.38736629486083984, 0.07145075500011444, -0.09281270205974579, -0.20107094943523407, 0.07173772156238556, -0.20251940190792084, 0.03089965507388115, 0.031924258917570114, 0.08965646475553513, -0.2613338530063629, -0.03284713253378868, -0.5163643956184387, -0.11810463666915894, -0.04920823127031326, -0.058324988931417465, 0.11622411757707596, 0.006550832185894251, 0.392132967710495, -0.10316663235425949, -0.1336192488670349, 0.23248814046382904, -0.2945847511291504, 0.40988829731941223, 0.043374065309762955, 0.09180400520563126, 0.3446733057498932, 0.22494424879550934, -0.11882363259792328, 0.105901338160038, 0.46429046988487244, 0.2396438866853714, 0.040960706770420074, 0.38671356439590454, 0.23035001754760742, -0.2547428607940674, 0.21005307137966156, 0.12550975382328033, 0.7316866517066956, -0.03637481480836868, -0.2081698477268219, 0.2821580171585083, -0.19584257900714874, 0.6601781845092773, 0.20184271037578583, 0.2584863007068634, -0.2552502453327179, -0.24011728167533875, 0.036204058676958084, -0.1886274218559265, 0.12075554579496384, -0.25277531147003174, -0.43388184905052185, 0.49025973677635193, 0.021652961149811745, 0.12400354444980621, -0.12253139913082123, 0.19506330788135529, -0.1712215095758438, -0.16871623694896698, -0.037902358919382095, 0.19146104156970978, -0.33359694480895996, 0.10566965490579605, -0.01884567178785801, -0.06234106048941612, 0.1282528042793274, -0.07512842118740082, -0.25356876850128174, -0.16570119559764862, -0.3714180290699005, 0.19004739820957184, 0.23426873981952667, 0.0006984721403568983, 0.066743403673172, -0.2564373016357422, 0.21657897531986237, 0.16839395463466644, -0.0986781120300293, -0.09458459168672562, -0.010704203508794308, -0.24693086743354797, 0.14755678176879883, 0.12288940697908401, -0.10273144394159317, -0.1388566642999649, -0.11702331155538559, 0.028695497661828995, 0.09478233754634857, -0.26034626364707947, 0.23299500346183777, 0.11106789112091064, 0.008934518322348595, -0.2510281503200531, -0.2027093768119812, -0.16642160713672638, -0.022884013131260872, -0.07035114616155624, 0.1712866872549057, 0.004673322197049856, -0.13679102063179016, 0.2804689407348633, -0.06594188511371613, -0.16240793466567993, 0.08642350882291794, 0.2396938055753708, -0.07938548922538757, -0.0198107548058033, 0.11606019735336304, -0.19336481392383575, -0.25553232431411743, -0.07585737109184265, -0.15321993827819824, -0.2182992547750473, -0.28363704681396484, 0.12346208095550537, -0.11972811073064804, -0.028332103043794632, -0.1401847004890442, 0.11142490804195404, 0.41840657591819763, 0.2592692971229553, 0.09696962684392929, -0.47619107365608215, -0.13323621451854706, 0.27723556756973267, -0.017034484073519707, -0.12397778034210205, -0.14708726108074188, 0.32217642664909363, 0.15395823121070862, 0.33710911870002747, -0.3407651484012604, -0.08616375178098679, -0.336887001991272, 0.17275673151016235, 0.5577082633972168, -0.38825753331184387, 0.03208224102854729, 0.08962862193584442, 0.19255007803440094, 0.24074362218379974, -0.16846470534801483, -0.27814850211143494, -0.04539765790104866, 0.0884147584438324, -0.008046886883676052, -0.10946109890937805, 0.12468559294939041, 0.008991141803562641, -0.19724050164222717, -0.07058654725551605, -0.2875489592552185, -0.13592493534088135, -0.1910494565963745, 0.062334079295396805, -0.03994882106781006, 0.19795164465904236, 0.3852127492427826, 0.32195594906806946, -0.09564198553562164, 0.1455477923154831, -0.10709380358457565, 0.16375797986984253, 0.08065681159496307, 0.09236473590135574, -0.14393645524978638, -0.10458333790302277, -0.10806068032979965, -0.0023585218004882336, 0.2476172149181366, -0.21704787015914917, -0.2661939263343811, -0.14193566143512726, 0.37684035301208496, -0.022884437814354897, -0.035823624581098557, -0.03517817705869675, -0.18001145124435425, 0.1641356199979782, -0.16550077497959137, 0.12046510726213455, 0.2528321146965027, 0.20455600321292877, 0.17597848176956177, 0.18672969937324524, -0.014843188226222992, 0.06411086767911911, 0.005958171561360359, 0.09657842665910721, 0.3417927026748657, -0.148112952709198, -0.1568118929862976, -0.3146478533744812, 0.2342946082353592, -0.03725053369998932, 0.3855210840702057, -0.19364812970161438, 0.19155587255954742, -0.1926369071006775, 0.003695801831781864, 0.1574130356311798, -0.0652419775724411, 0.003041819902136922, 0.23912912607192993, 0.19758543372154236, -0.18151743710041046, 0.25953009724617004, 0.1466701626777649, 0.1041983962059021, -0.020080382004380226, 0.5160800218582153, -0.3852647542953491, -0.07828067988157272, 0.03594557195901871, 0.1538160890340805, 0.05292106047272682, 0.06234563887119293, 0.004507490899413824, -0.006684029940515757, -0.32907912135124207, -0.15530475974082947, 0.06521539390087128, 0.122039295732975, 0.3950309455394745, 0.16114020347595215, 0.019193891435861588, -0.04868891462683678, -0.21246734261512756, 0.35835856199264526, 0.1800566166639328, -0.3143034279346466, 0.12214048206806183, 0.12702175974845886, 0.23046451807022095, -0.23678848147392273, 0.6592806577682495, 0.528154194355011, 0.3133314549922943, -0.3758442997932434, 0.1271788775920868, -0.03409943729639053, -0.17601998150348663, 0.2069452553987503, 0.18475162982940674, 0.367134690284729, 0.0971980020403862, 0.267182320356369, 0.2085578292608261, -0.2633957266807556, -0.048593901097774506, -0.07236601412296295, -0.013067010790109634, -0.16857045888900757, 0.4525224566459656, -0.25080758333206177, -0.23310570418834686, -0.1536245048046112, 0.057342689484357834, -0.42409953474998474, 0.17014169692993164, 0.035439398139715195, -0.022380296140909195, 0.07569629698991776, -0.2836798429489136, 0.09819241613149643, -0.02390301413834095, 0.5166295766830444, 0.17210614681243896, 0.5441963076591492, -0.58940190076828, -0.22437480092048645, -0.4315945506095886, 0.04228336736559868, -0.09806206822395325, -0.053715430200099945, 0.01697291061282158, 0.05222108215093613, -0.24068351089954376, 0.33615678548812866, 0.17216475307941437, 0.4982776939868927, -0.11583715677261353, -0.2824459969997406, -0.3028733730316162, -0.05659324303269386, 0.05260542407631874, -0.4606131911277771, 0.23947471380233765, -0.22312414646148682, 0.09290380030870438, -0.10029220581054688, 0.1403830349445343, -0.008368810638785362, -0.23904794454574585, 0.27706006169319153, 0.587507426738739, 0.08792240917682648, 0.2794116139411926, 0.5532601475715637, -0.017240677028894424, -0.0034356662072241306, 0.05214827507734299, -0.3737611174583435, -0.13662339746952057, 0.04996078461408615, 0.016851387917995453, 0.2484906017780304, -0.08757215738296509, -0.08660575747489929, -0.3632865250110626, 0.505617618560791, -0.16242703795433044, 0.016891948878765106, -0.03264681249856949, 0.07525886595249176, 0.12679901719093323, 0.020819323137402534, -0.041823361068964005, 0.08289738744497299, -0.01863536424934864, 0.3271135985851288, -0.2005006968975067, -0.28271764516830444, 0.3735973536968231, -0.4797985255718231, -0.3367663025856018, 0.09544739872217178, 0.2530969977378845, 0.2006331980228424, -0.09318014234304428, -0.6303014755249023, -0.2510201930999756, 0.33874571323394775, 0.06366939097642899, -0.180123433470726, 0.323825478553772, -0.15784631669521332, 0.18054485321044922, 0.15823157131671906, 0.03884745016694069, 0.15755221247673035, -0.30897635221481323, 0.04981284216046333, -0.22991561889648438 ]
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.16945293545722961, -0.23958128690719604, -0.030473245307803154, 0.16115891933441162, 0.23674039542675018, -0.049164801836013794, 0.10730059444904327, 0.3623579442501068, 0.43302735686302185, 0.051628440618515015, -0.3168230652809143, 0.27634745836257935, -0.07980746030807495, -0.024109603837132454, 0.1026180237531662, -0.28314921259880066, -0.1162881851196289, 0.16044855117797852, -0.22024953365325928, 0.31025657057762146, -0.32451096177101135, 0.2713673412799835, -0.18585644662380219, 0.3197875916957855, -0.1767067164182663, -0.0903877466917038, 0.020484022796154022, -0.19617068767547607, -0.3263722360134125, -0.3629354238510132, 0.24816270172595978, -0.11683493107557297, 0.02158600091934204, 0.17664261162281036, -0.00011026336869690567, -0.012056238949298859, 0.45895302295684814, 0.0023093759082257748, 0.15884584188461304, -0.14216330647468567, -0.38898083567619324, -0.08348134160041809, 0.044414471834897995, -0.23614968359470367, 0.13466575741767883, 0.2275208830833435, 0.02061403915286064, -0.1826084554195404, 0.2193325310945511, 0.27097973227500916, 0.2774609327316284, 0.38711437582969666, 0.31260034441947937, -0.198993518948555, 0.17249129712581635, -0.20823243260383606, 0.026587603613734245, 0.8870654702186584, -0.327216774225235, -0.4651894271373749, -0.007801703177392483, 0.20694439113140106, -0.10570745915174484, 0.2180079072713852, 0.2240159660577774, 0.052195921540260315, 0.3717002868652344, -0.3202623724937439, -0.1326412558555603, -0.0713139995932579, -0.21813495457172394, -0.2285420000553131, -0.14993156492710114, 0.041657134890556335, 0.047116801142692566, -0.3763105869293213, 0.09723930060863495, -0.07267849892377853, 0.05816056579351425, -0.2293187826871872, -0.054969463497400284, 0.14027652144432068, -0.11441385000944138, 0.27529600262641907, 0.24009038507938385, 0.32144683599472046, -0.1981528103351593, 0.29690021276474, 0.41472721099853516, 0.21544227004051208, -0.1390434056520462, 0.04354558140039444, -0.2401256263256073, 0.16533461213111877, -0.2926103174686432, -0.04232808202505112, -0.0104531766846776, 0.1914086788892746, 0.023926204070448875, -0.23546716570854187, 0.048730794340372086, -0.20800530910491943, 0.48574861884117126, 0.3427955210208893, 0.06029811128973961, 0.3389248549938202, 0.35345515608787537, 0.15646490454673767, 0.12742556631565094, 0.2417825162410736, 0.0023339434992522, -0.16949354112148285, 0.2388443648815155, -0.3881971538066864, 0.3655790388584137, 0.24139051139354706, 0.10852400213479996, 0.07705982029438019, -0.4262593388557434, -0.17716829478740692, -0.0480155423283577, -0.0049845511093735695, 0.036921825259923935, 0.07186249643564224, -0.01879129186272621, 0.0006610190030187368, 0.10499069094657898, 0.19069348275661469, -0.19106921553611755, 0.057039279490709305, -0.13428495824337006, 0.4053148925304413, -0.3368166983127594, 0.12151695042848587, 0.15138977766036987, -0.03329214081168175, 0.20435743033885956, -0.10730422288179398, 0.1692519187927246, -0.18722569942474365, 0.021252192556858063, -0.24505285918712616, -0.0659324899315834, 0.1954423189163208, 0.04804401099681854, 0.002814070088788867, 0.3261827230453491, -0.561188280582428, -0.16353492438793182, -0.21554020047187805, -0.22833652794361115, -0.30006691813468933, -0.14694376289844513, 0.23516923189163208, -0.17960023880004883, 0.030037561431527138, -0.4003525674343109, -0.1805468201637268, 0.2377261519432068, 0.044947970658540726, 0.112689308822155, -0.26761022210121155, -0.2484901249408722, -0.29217207431793213, 0.20164938271045685, 0.13887488842010498, -0.08172516524791718, -0.11474328488111496, -0.19186431169509888, -0.10300781577825546, 0.11747462302446365, 0.31447312235832214, 0.17239028215408325, 0.4397917091846466, -0.23195210099220276, 0.15153193473815918, 0.5892592072486877, -0.6347140073776245, -0.23698081076145172, 0.10070867836475372, 0.09687572717666626, -0.28190821409225464, -0.06954002380371094, 0.09508848935365677, 0.28745782375335693, 0.07509426772594452, 0.46930456161499023, 0.17752590775489807, -0.120040662586689, -0.19108213484287262, -0.30035850405693054, 0.03456033766269684, 0.08522260934114456, 0.05227358639240265, 0.2045293003320694, -0.050442349165678024, 0.10968861728906631, -0.06492148339748383, -0.14382053911685944, 0.19733744859695435, 0.01944972388446331, 0.030141588300466537, 0.33182069659233093, -0.23766446113586426, 0.00824546068906784, -0.5077999830245972, -0.02875298634171486, 0.07651537656784058, -0.5539195537567139, 0.1985284835100174, 0.09628543257713318, -0.016301825642585754, -0.5231422185897827, 0.10505980998277664, -0.0699511244893074, -0.03930845856666565, 0.23269104957580566, -0.20644772052764893, 0.30469074845314026, 0.023179832845926285, -0.038481973111629486, 0.17104387283325195, 0.07656776905059814, 0.084715835750103, -0.08914116770029068, 0.2145031839609146, -0.2762117385864258, -0.4148796796798706, 0.13826747238636017, 0.3498588800430298, 0.27277204394340515, 0.03530475124716759, -0.10926245898008347, 0.499755322933197, -0.14241845905780792, -0.2285175770521164, 0.05572759732604027, -0.06330737471580505, -0.007170068100094795, 0.030630232766270638, -0.01862354576587677, -0.11324915289878845, 0.19068236649036407, -0.029351714998483658, 0.321016401052475, 0.19584619998931885, 0.010319379158318043, 0.29748618602752686, -0.11806746572256088, 0.327396422624588, -0.12253164499998093, -0.05843076854944229, -0.15002256631851196, -0.1341112107038498, 0.4181143343448639, -0.2973012924194336, -0.07993999868631363, -0.18273064494132996, 0.32191693782806396, -0.23060524463653564, 0.33504149317741394, -0.049650732427835464, 0.18547651171684265, -0.028964880853891373, -0.21909260749816895, 0.107579804956913, -0.15371417999267578, 0.12825267016887665, 0.5975930690765381, -0.004965077619999647, -0.12477127462625504, 0.025017477571964264, -0.19269554316997528, -0.023432230576872826, 0.17540134489536285, 0.06748297810554504, 0.030819229781627655, 0.10812816023826599, 0.1688196063041687, -0.02817785181105137, -0.03804817423224449, 0.10205882787704468, -0.23131874203681946, 0.23119713366031647, -0.32205548882484436, -0.01783200539648533, -0.04514681175351143, -0.4319617748260498, -0.16770637035369873, -0.10991377383470535, -0.2902899384498596, -0.6119659543037415, -0.05723482742905617, 0.05136871710419655, 0.08731792867183685, 0.18926265835762024, 0.3226218521595001, 0.06517982482910156, 0.11167925596237183, 0.09688828140497208, 0.05226701498031616, -0.22013084590435028, -0.029467711225152016, 0.05251777172088623, 0.013736134395003319, 0.20372718572616577, 0.44383811950683594, -0.10368499159812927, -0.014590242877602577, -0.10509465634822845, -0.3087320625782013, 0.01734606735408306, -0.2842084467411041, 0.6033974885940552, 0.4132929742336273, -0.12381435930728912, -0.057887956500053406, -0.37814056873321533, 0.4658438563346863, -0.42504042387008667, 0.017162812873721123, 0.22456113994121552, -0.20285765826702118, -0.04571065679192543, -0.1568724662065506, 0.05340954661369324, -0.2870555818080902, -0.36026179790496826, 0.32441481947898865, 0.13621094822883606, 0.08709778636693954, 0.024713177233934402, -0.2230975180864334, 0.3781217038631439, -0.19029171764850616, -0.19854611158370972, -0.18983832001686096, -0.028720490634441376, 0.3248329758644104, -0.20611140131950378, -0.3413917124271393, -0.08863300085067749, -0.06677455455064774, 0.32060137391090393, -0.24102799594402313, -0.24471478164196014, -0.5733758807182312, -0.18514248728752136, 0.02861546166241169, -0.12968872487545013, 0.192884162068367, 0.04400194063782692, -0.16710779070854187, -0.0649086982011795, -0.09491904824972153, -0.2339581549167633, 0.16283394396305084, 0.21928240358829498, 0.09260707348585129, -0.1301688551902771, 0.34217554330825806, 0.08538444340229034, 0.3098371624946594, 0.10359982401132584, -0.09242148697376251, 0.2702837586402893, 0.04310233145952225, 0.23097771406173706, 0.006547846831381321, -0.49109214544296265, 0.1871618628501892, -0.12123341858386993, 0.3261260688304901, -0.11696851253509521, -0.02284618653357029, -0.05332912877202034, -0.21609775722026825, -0.14292962849140167, -0.12352071702480316, -0.22179004549980164, 0.07442499697208405, 0.015262202359735966, 0.1742432564496994, 0.05931501090526581, -0.2170495241880417, -0.2897803783416748, -0.2181471288204193, 0.19447562098503113, 0.21567165851593018, 0.01036110520362854, -0.07123590260744095, -0.038227394223213196, -0.2960555851459503, -0.38884034752845764, 0.47180795669555664, 0.1434946060180664, 0.33034828305244446, -0.1176617294549942, 0.2998412847518921, -0.15167216956615448, 0.11472935974597931, 0.21706220507621765, -0.35604366660118103, 0.07976409792900085, 0.28989148139953613, 0.19626259803771973, -0.5538409352302551, -0.13813146948814392, -0.4275742471218109, 0.3352844715118408, 0.5549218654632568, 0.4441612958908081, -0.25144192576408386, 0.0707288533449173, 0.4990737736225128, -0.05778123438358307, -0.04948587343096733, -0.4405653178691864, -0.42764031887054443, -0.19757287204265594, -0.1345931738615036, -0.07351944595575333, 0.1434214562177658, 0.20617149770259857, 0.38736629486083984, 0.07145075500011444, -0.09281270205974579, -0.20107094943523407, 0.07173772156238556, -0.20251940190792084, 0.03089965507388115, 0.031924258917570114, 0.08965646475553513, -0.2613338530063629, -0.03284713253378868, -0.5163643956184387, -0.11810463666915894, -0.04920823127031326, -0.058324988931417465, 0.11622411757707596, 0.006550832185894251, 0.392132967710495, -0.10316663235425949, -0.1336192488670349, 0.23248814046382904, -0.2945847511291504, 0.40988829731941223, 0.043374065309762955, 0.09180400520563126, 0.3446733057498932, 0.22494424879550934, -0.11882363259792328, 0.105901338160038, 0.46429046988487244, 0.2396438866853714, 0.040960706770420074, 0.38671356439590454, 0.23035001754760742, -0.2547428607940674, 0.21005307137966156, 0.12550975382328033, 0.7316866517066956, -0.03637481480836868, -0.2081698477268219, 0.2821580171585083, -0.19584257900714874, 0.6601781845092773, 0.20184271037578583, 0.2584863007068634, -0.2552502453327179, -0.24011728167533875, 0.036204058676958084, -0.1886274218559265, 0.12075554579496384, -0.25277531147003174, -0.43388184905052185, 0.49025973677635193, 0.021652961149811745, 0.12400354444980621, -0.12253139913082123, 0.19506330788135529, -0.1712215095758438, -0.16871623694896698, -0.037902358919382095, 0.19146104156970978, -0.33359694480895996, 0.10566965490579605, -0.01884567178785801, -0.06234106048941612, 0.1282528042793274, -0.07512842118740082, -0.25356876850128174, -0.16570119559764862, -0.3714180290699005, 0.19004739820957184, 0.23426873981952667, 0.0006984721403568983, 0.066743403673172, -0.2564373016357422, 0.21657897531986237, 0.16839395463466644, -0.0986781120300293, -0.09458459168672562, -0.010704203508794308, -0.24693086743354797, 0.14755678176879883, 0.12288940697908401, -0.10273144394159317, -0.1388566642999649, -0.11702331155538559, 0.028695497661828995, 0.09478233754634857, -0.26034626364707947, 0.23299500346183777, 0.11106789112091064, 0.008934518322348595, -0.2510281503200531, -0.2027093768119812, -0.16642160713672638, -0.022884013131260872, -0.07035114616155624, 0.1712866872549057, 0.004673322197049856, -0.13679102063179016, 0.2804689407348633, -0.06594188511371613, -0.16240793466567993, 0.08642350882291794, 0.2396938055753708, -0.07938548922538757, -0.0198107548058033, 0.11606019735336304, -0.19336481392383575, -0.25553232431411743, -0.07585737109184265, -0.15321993827819824, -0.2182992547750473, -0.28363704681396484, 0.12346208095550537, -0.11972811073064804, -0.028332103043794632, -0.1401847004890442, 0.11142490804195404, 0.41840657591819763, 0.2592692971229553, 0.09696962684392929, -0.47619107365608215, -0.13323621451854706, 0.27723556756973267, -0.017034484073519707, -0.12397778034210205, -0.14708726108074188, 0.32217642664909363, 0.15395823121070862, 0.33710911870002747, -0.3407651484012604, -0.08616375178098679, -0.336887001991272, 0.17275673151016235, 0.5577082633972168, -0.38825753331184387, 0.03208224102854729, 0.08962862193584442, 0.19255007803440094, 0.24074362218379974, -0.16846470534801483, -0.27814850211143494, -0.04539765790104866, 0.0884147584438324, -0.008046886883676052, -0.10946109890937805, 0.12468559294939041, 0.008991141803562641, -0.19724050164222717, -0.07058654725551605, -0.2875489592552185, -0.13592493534088135, -0.1910494565963745, 0.062334079295396805, -0.03994882106781006, 0.19795164465904236, 0.3852127492427826, 0.32195594906806946, -0.09564198553562164, 0.1455477923154831, -0.10709380358457565, 0.16375797986984253, 0.08065681159496307, 0.09236473590135574, -0.14393645524978638, -0.10458333790302277, -0.10806068032979965, -0.0023585218004882336, 0.2476172149181366, -0.21704787015914917, -0.2661939263343811, -0.14193566143512726, 0.37684035301208496, -0.022884437814354897, -0.035823624581098557, -0.03517817705869675, -0.18001145124435425, 0.1641356199979782, -0.16550077497959137, 0.12046510726213455, 0.2528321146965027, 0.20455600321292877, 0.17597848176956177, 0.18672969937324524, -0.014843188226222992, 0.06411086767911911, 0.005958171561360359, 0.09657842665910721, 0.3417927026748657, -0.148112952709198, -0.1568118929862976, -0.3146478533744812, 0.2342946082353592, -0.03725053369998932, 0.3855210840702057, -0.19364812970161438, 0.19155587255954742, -0.1926369071006775, 0.003695801831781864, 0.1574130356311798, -0.0652419775724411, 0.003041819902136922, 0.23912912607192993, 0.19758543372154236, -0.18151743710041046, 0.25953009724617004, 0.1466701626777649, 0.1041983962059021, -0.020080382004380226, 0.5160800218582153, -0.3852647542953491, -0.07828067988157272, 0.03594557195901871, 0.1538160890340805, 0.05292106047272682, 0.06234563887119293, 0.004507490899413824, -0.006684029940515757, -0.32907912135124207, -0.15530475974082947, 0.06521539390087128, 0.122039295732975, 0.3950309455394745, 0.16114020347595215, 0.019193891435861588, -0.04868891462683678, -0.21246734261512756, 0.35835856199264526, 0.1800566166639328, -0.3143034279346466, 0.12214048206806183, 0.12702175974845886, 0.23046451807022095, -0.23678848147392273, 0.6592806577682495, 0.528154194355011, 0.3133314549922943, -0.3758442997932434, 0.1271788775920868, -0.03409943729639053, -0.17601998150348663, 0.2069452553987503, 0.18475162982940674, 0.367134690284729, 0.0971980020403862, 0.267182320356369, 0.2085578292608261, -0.2633957266807556, -0.048593901097774506, -0.07236601412296295, -0.013067010790109634, -0.16857045888900757, 0.4525224566459656, -0.25080758333206177, -0.23310570418834686, -0.1536245048046112, 0.057342689484357834, -0.42409953474998474, 0.17014169692993164, 0.035439398139715195, -0.022380296140909195, 0.07569629698991776, -0.2836798429489136, 0.09819241613149643, -0.02390301413834095, 0.5166295766830444, 0.17210614681243896, 0.5441963076591492, -0.58940190076828, -0.22437480092048645, -0.4315945506095886, 0.04228336736559868, -0.09806206822395325, -0.053715430200099945, 0.01697291061282158, 0.05222108215093613, -0.24068351089954376, 0.33615678548812866, 0.17216475307941437, 0.4982776939868927, -0.11583715677261353, -0.2824459969997406, -0.3028733730316162, -0.05659324303269386, 0.05260542407631874, -0.4606131911277771, 0.23947471380233765, -0.22312414646148682, 0.09290380030870438, -0.10029220581054688, 0.1403830349445343, -0.008368810638785362, -0.23904794454574585, 0.27706006169319153, 0.587507426738739, 0.08792240917682648, 0.2794116139411926, 0.5532601475715637, -0.017240677028894424, -0.0034356662072241306, 0.05214827507734299, -0.3737611174583435, -0.13662339746952057, 0.04996078461408615, 0.016851387917995453, 0.2484906017780304, -0.08757215738296509, -0.08660575747489929, -0.3632865250110626, 0.505617618560791, -0.16242703795433044, 0.016891948878765106, -0.03264681249856949, 0.07525886595249176, 0.12679901719093323, 0.020819323137402534, -0.041823361068964005, 0.08289738744497299, -0.01863536424934864, 0.3271135985851288, -0.2005006968975067, -0.28271764516830444, 0.3735973536968231, -0.4797985255718231, -0.3367663025856018, 0.09544739872217178, 0.2530969977378845, 0.2006331980228424, -0.09318014234304428, -0.6303014755249023, -0.2510201930999756, 0.33874571323394775, 0.06366939097642899, -0.180123433470726, 0.323825478553772, -0.15784631669521332, 0.18054485321044922, 0.15823157131671906, 0.03884745016694069, 0.15755221247673035, -0.30897635221481323, 0.04981284216046333, -0.22991561889648438 ]
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.16945293545722961, -0.23958128690719604, -0.030473245307803154, 0.16115891933441162, 0.23674039542675018, -0.049164801836013794, 0.10730059444904327, 0.3623579442501068, 0.43302735686302185, 0.051628440618515015, -0.3168230652809143, 0.27634745836257935, -0.07980746030807495, -0.024109603837132454, 0.1026180237531662, -0.28314921259880066, -0.1162881851196289, 0.16044855117797852, -0.22024953365325928, 0.31025657057762146, -0.32451096177101135, 0.2713673412799835, -0.18585644662380219, 0.3197875916957855, -0.1767067164182663, -0.0903877466917038, 0.020484022796154022, -0.19617068767547607, -0.3263722360134125, -0.3629354238510132, 0.24816270172595978, -0.11683493107557297, 0.02158600091934204, 0.17664261162281036, -0.00011026336869690567, -0.012056238949298859, 0.45895302295684814, 0.0023093759082257748, 0.15884584188461304, -0.14216330647468567, -0.38898083567619324, -0.08348134160041809, 0.044414471834897995, -0.23614968359470367, 0.13466575741767883, 0.2275208830833435, 0.02061403915286064, -0.1826084554195404, 0.2193325310945511, 0.27097973227500916, 0.2774609327316284, 0.38711437582969666, 0.31260034441947937, -0.198993518948555, 0.17249129712581635, -0.20823243260383606, 0.026587603613734245, 0.8870654702186584, -0.327216774225235, -0.4651894271373749, -0.007801703177392483, 0.20694439113140106, -0.10570745915174484, 0.2180079072713852, 0.2240159660577774, 0.052195921540260315, 0.3717002868652344, -0.3202623724937439, -0.1326412558555603, -0.0713139995932579, -0.21813495457172394, -0.2285420000553131, -0.14993156492710114, 0.041657134890556335, 0.047116801142692566, -0.3763105869293213, 0.09723930060863495, -0.07267849892377853, 0.05816056579351425, -0.2293187826871872, -0.054969463497400284, 0.14027652144432068, -0.11441385000944138, 0.27529600262641907, 0.24009038507938385, 0.32144683599472046, -0.1981528103351593, 0.29690021276474, 0.41472721099853516, 0.21544227004051208, -0.1390434056520462, 0.04354558140039444, -0.2401256263256073, 0.16533461213111877, -0.2926103174686432, -0.04232808202505112, -0.0104531766846776, 0.1914086788892746, 0.023926204070448875, -0.23546716570854187, 0.048730794340372086, -0.20800530910491943, 0.48574861884117126, 0.3427955210208893, 0.06029811128973961, 0.3389248549938202, 0.35345515608787537, 0.15646490454673767, 0.12742556631565094, 0.2417825162410736, 0.0023339434992522, -0.16949354112148285, 0.2388443648815155, -0.3881971538066864, 0.3655790388584137, 0.24139051139354706, 0.10852400213479996, 0.07705982029438019, -0.4262593388557434, -0.17716829478740692, -0.0480155423283577, -0.0049845511093735695, 0.036921825259923935, 0.07186249643564224, -0.01879129186272621, 0.0006610190030187368, 0.10499069094657898, 0.19069348275661469, -0.19106921553611755, 0.057039279490709305, -0.13428495824337006, 0.4053148925304413, -0.3368166983127594, 0.12151695042848587, 0.15138977766036987, -0.03329214081168175, 0.20435743033885956, -0.10730422288179398, 0.1692519187927246, -0.18722569942474365, 0.021252192556858063, -0.24505285918712616, -0.0659324899315834, 0.1954423189163208, 0.04804401099681854, 0.002814070088788867, 0.3261827230453491, -0.561188280582428, -0.16353492438793182, -0.21554020047187805, -0.22833652794361115, -0.30006691813468933, -0.14694376289844513, 0.23516923189163208, -0.17960023880004883, 0.030037561431527138, -0.4003525674343109, -0.1805468201637268, 0.2377261519432068, 0.044947970658540726, 0.112689308822155, -0.26761022210121155, -0.2484901249408722, -0.29217207431793213, 0.20164938271045685, 0.13887488842010498, -0.08172516524791718, -0.11474328488111496, -0.19186431169509888, -0.10300781577825546, 0.11747462302446365, 0.31447312235832214, 0.17239028215408325, 0.4397917091846466, -0.23195210099220276, 0.15153193473815918, 0.5892592072486877, -0.6347140073776245, -0.23698081076145172, 0.10070867836475372, 0.09687572717666626, -0.28190821409225464, -0.06954002380371094, 0.09508848935365677, 0.28745782375335693, 0.07509426772594452, 0.46930456161499023, 0.17752590775489807, -0.120040662586689, -0.19108213484287262, -0.30035850405693054, 0.03456033766269684, 0.08522260934114456, 0.05227358639240265, 0.2045293003320694, -0.050442349165678024, 0.10968861728906631, -0.06492148339748383, -0.14382053911685944, 0.19733744859695435, 0.01944972388446331, 0.030141588300466537, 0.33182069659233093, -0.23766446113586426, 0.00824546068906784, -0.5077999830245972, -0.02875298634171486, 0.07651537656784058, -0.5539195537567139, 0.1985284835100174, 0.09628543257713318, -0.016301825642585754, -0.5231422185897827, 0.10505980998277664, -0.0699511244893074, -0.03930845856666565, 0.23269104957580566, -0.20644772052764893, 0.30469074845314026, 0.023179832845926285, -0.038481973111629486, 0.17104387283325195, 0.07656776905059814, 0.084715835750103, -0.08914116770029068, 0.2145031839609146, -0.2762117385864258, -0.4148796796798706, 0.13826747238636017, 0.3498588800430298, 0.27277204394340515, 0.03530475124716759, -0.10926245898008347, 0.499755322933197, -0.14241845905780792, -0.2285175770521164, 0.05572759732604027, -0.06330737471580505, -0.007170068100094795, 0.030630232766270638, -0.01862354576587677, -0.11324915289878845, 0.19068236649036407, -0.029351714998483658, 0.321016401052475, 0.19584619998931885, 0.010319379158318043, 0.29748618602752686, -0.11806746572256088, 0.327396422624588, -0.12253164499998093, -0.05843076854944229, -0.15002256631851196, -0.1341112107038498, 0.4181143343448639, -0.2973012924194336, -0.07993999868631363, -0.18273064494132996, 0.32191693782806396, -0.23060524463653564, 0.33504149317741394, -0.049650732427835464, 0.18547651171684265, -0.028964880853891373, -0.21909260749816895, 0.107579804956913, -0.15371417999267578, 0.12825267016887665, 0.5975930690765381, -0.004965077619999647, -0.12477127462625504, 0.025017477571964264, -0.19269554316997528, -0.023432230576872826, 0.17540134489536285, 0.06748297810554504, 0.030819229781627655, 0.10812816023826599, 0.1688196063041687, -0.02817785181105137, -0.03804817423224449, 0.10205882787704468, -0.23131874203681946, 0.23119713366031647, -0.32205548882484436, -0.01783200539648533, -0.04514681175351143, -0.4319617748260498, -0.16770637035369873, -0.10991377383470535, -0.2902899384498596, -0.6119659543037415, -0.05723482742905617, 0.05136871710419655, 0.08731792867183685, 0.18926265835762024, 0.3226218521595001, 0.06517982482910156, 0.11167925596237183, 0.09688828140497208, 0.05226701498031616, -0.22013084590435028, -0.029467711225152016, 0.05251777172088623, 0.013736134395003319, 0.20372718572616577, 0.44383811950683594, -0.10368499159812927, -0.014590242877602577, -0.10509465634822845, -0.3087320625782013, 0.01734606735408306, -0.2842084467411041, 0.6033974885940552, 0.4132929742336273, -0.12381435930728912, -0.057887956500053406, -0.37814056873321533, 0.4658438563346863, -0.42504042387008667, 0.017162812873721123, 0.22456113994121552, -0.20285765826702118, -0.04571065679192543, -0.1568724662065506, 0.05340954661369324, -0.2870555818080902, -0.36026179790496826, 0.32441481947898865, 0.13621094822883606, 0.08709778636693954, 0.024713177233934402, -0.2230975180864334, 0.3781217038631439, -0.19029171764850616, -0.19854611158370972, -0.18983832001686096, -0.028720490634441376, 0.3248329758644104, -0.20611140131950378, -0.3413917124271393, -0.08863300085067749, -0.06677455455064774, 0.32060137391090393, -0.24102799594402313, -0.24471478164196014, -0.5733758807182312, -0.18514248728752136, 0.02861546166241169, -0.12968872487545013, 0.192884162068367, 0.04400194063782692, -0.16710779070854187, -0.0649086982011795, -0.09491904824972153, -0.2339581549167633, 0.16283394396305084, 0.21928240358829498, 0.09260707348585129, -0.1301688551902771, 0.34217554330825806, 0.08538444340229034, 0.3098371624946594, 0.10359982401132584, -0.09242148697376251, 0.2702837586402893, 0.04310233145952225, 0.23097771406173706, 0.006547846831381321, -0.49109214544296265, 0.1871618628501892, -0.12123341858386993, 0.3261260688304901, -0.11696851253509521, -0.02284618653357029, -0.05332912877202034, -0.21609775722026825, -0.14292962849140167, -0.12352071702480316, -0.22179004549980164, 0.07442499697208405, 0.015262202359735966, 0.1742432564496994, 0.05931501090526581, -0.2170495241880417, -0.2897803783416748, -0.2181471288204193, 0.19447562098503113, 0.21567165851593018, 0.01036110520362854, -0.07123590260744095, -0.038227394223213196, -0.2960555851459503, -0.38884034752845764, 0.47180795669555664, 0.1434946060180664, 0.33034828305244446, -0.1176617294549942, 0.2998412847518921, -0.15167216956615448, 0.11472935974597931, 0.21706220507621765, -0.35604366660118103, 0.07976409792900085, 0.28989148139953613, 0.19626259803771973, -0.5538409352302551, -0.13813146948814392, -0.4275742471218109, 0.3352844715118408, 0.5549218654632568, 0.4441612958908081, -0.25144192576408386, 0.0707288533449173, 0.4990737736225128, -0.05778123438358307, -0.04948587343096733, -0.4405653178691864, -0.42764031887054443, -0.19757287204265594, -0.1345931738615036, -0.07351944595575333, 0.1434214562177658, 0.20617149770259857, 0.38736629486083984, 0.07145075500011444, -0.09281270205974579, -0.20107094943523407, 0.07173772156238556, -0.20251940190792084, 0.03089965507388115, 0.031924258917570114, 0.08965646475553513, -0.2613338530063629, -0.03284713253378868, -0.5163643956184387, -0.11810463666915894, -0.04920823127031326, -0.058324988931417465, 0.11622411757707596, 0.006550832185894251, 0.392132967710495, -0.10316663235425949, -0.1336192488670349, 0.23248814046382904, -0.2945847511291504, 0.40988829731941223, 0.043374065309762955, 0.09180400520563126, 0.3446733057498932, 0.22494424879550934, -0.11882363259792328, 0.105901338160038, 0.46429046988487244, 0.2396438866853714, 0.040960706770420074, 0.38671356439590454, 0.23035001754760742, -0.2547428607940674, 0.21005307137966156, 0.12550975382328033, 0.7316866517066956, -0.03637481480836868, -0.2081698477268219, 0.2821580171585083, -0.19584257900714874, 0.6601781845092773, 0.20184271037578583, 0.2584863007068634, -0.2552502453327179, -0.24011728167533875, 0.036204058676958084, -0.1886274218559265, 0.12075554579496384, -0.25277531147003174, -0.43388184905052185, 0.49025973677635193, 0.021652961149811745, 0.12400354444980621, -0.12253139913082123, 0.19506330788135529, -0.1712215095758438, -0.16871623694896698, -0.037902358919382095, 0.19146104156970978, -0.33359694480895996, 0.10566965490579605, -0.01884567178785801, -0.06234106048941612, 0.1282528042793274, -0.07512842118740082, -0.25356876850128174, -0.16570119559764862, -0.3714180290699005, 0.19004739820957184, 0.23426873981952667, 0.0006984721403568983, 0.066743403673172, -0.2564373016357422, 0.21657897531986237, 0.16839395463466644, -0.0986781120300293, -0.09458459168672562, -0.010704203508794308, -0.24693086743354797, 0.14755678176879883, 0.12288940697908401, -0.10273144394159317, -0.1388566642999649, -0.11702331155538559, 0.028695497661828995, 0.09478233754634857, -0.26034626364707947, 0.23299500346183777, 0.11106789112091064, 0.008934518322348595, -0.2510281503200531, -0.2027093768119812, -0.16642160713672638, -0.022884013131260872, -0.07035114616155624, 0.1712866872549057, 0.004673322197049856, -0.13679102063179016, 0.2804689407348633, -0.06594188511371613, -0.16240793466567993, 0.08642350882291794, 0.2396938055753708, -0.07938548922538757, -0.0198107548058033, 0.11606019735336304, -0.19336481392383575, -0.25553232431411743, -0.07585737109184265, -0.15321993827819824, -0.2182992547750473, -0.28363704681396484, 0.12346208095550537, -0.11972811073064804, -0.028332103043794632, -0.1401847004890442, 0.11142490804195404, 0.41840657591819763, 0.2592692971229553, 0.09696962684392929, -0.47619107365608215, -0.13323621451854706, 0.27723556756973267, -0.017034484073519707, -0.12397778034210205, -0.14708726108074188, 0.32217642664909363, 0.15395823121070862, 0.33710911870002747, -0.3407651484012604, -0.08616375178098679, -0.336887001991272, 0.17275673151016235, 0.5577082633972168, -0.38825753331184387, 0.03208224102854729, 0.08962862193584442, 0.19255007803440094, 0.24074362218379974, -0.16846470534801483, -0.27814850211143494, -0.04539765790104866, 0.0884147584438324, -0.008046886883676052, -0.10946109890937805, 0.12468559294939041, 0.008991141803562641, -0.19724050164222717, -0.07058654725551605, -0.2875489592552185, -0.13592493534088135, -0.1910494565963745, 0.062334079295396805, -0.03994882106781006, 0.19795164465904236, 0.3852127492427826, 0.32195594906806946, -0.09564198553562164, 0.1455477923154831, -0.10709380358457565, 0.16375797986984253, 0.08065681159496307, 0.09236473590135574, -0.14393645524978638, -0.10458333790302277, -0.10806068032979965, -0.0023585218004882336, 0.2476172149181366, -0.21704787015914917, -0.2661939263343811, -0.14193566143512726, 0.37684035301208496, -0.022884437814354897, -0.035823624581098557, -0.03517817705869675, -0.18001145124435425, 0.1641356199979782, -0.16550077497959137, 0.12046510726213455, 0.2528321146965027, 0.20455600321292877, 0.17597848176956177, 0.18672969937324524, -0.014843188226222992, 0.06411086767911911, 0.005958171561360359, 0.09657842665910721, 0.3417927026748657, -0.148112952709198, -0.1568118929862976, -0.3146478533744812, 0.2342946082353592, -0.03725053369998932, 0.3855210840702057, -0.19364812970161438, 0.19155587255954742, -0.1926369071006775, 0.003695801831781864, 0.1574130356311798, -0.0652419775724411, 0.003041819902136922, 0.23912912607192993, 0.19758543372154236, -0.18151743710041046, 0.25953009724617004, 0.1466701626777649, 0.1041983962059021, -0.020080382004380226, 0.5160800218582153, -0.3852647542953491, -0.07828067988157272, 0.03594557195901871, 0.1538160890340805, 0.05292106047272682, 0.06234563887119293, 0.004507490899413824, -0.006684029940515757, -0.32907912135124207, -0.15530475974082947, 0.06521539390087128, 0.122039295732975, 0.3950309455394745, 0.16114020347595215, 0.019193891435861588, -0.04868891462683678, -0.21246734261512756, 0.35835856199264526, 0.1800566166639328, -0.3143034279346466, 0.12214048206806183, 0.12702175974845886, 0.23046451807022095, -0.23678848147392273, 0.6592806577682495, 0.528154194355011, 0.3133314549922943, -0.3758442997932434, 0.1271788775920868, -0.03409943729639053, -0.17601998150348663, 0.2069452553987503, 0.18475162982940674, 0.367134690284729, 0.0971980020403862, 0.267182320356369, 0.2085578292608261, -0.2633957266807556, -0.048593901097774506, -0.07236601412296295, -0.013067010790109634, -0.16857045888900757, 0.4525224566459656, -0.25080758333206177, -0.23310570418834686, -0.1536245048046112, 0.057342689484357834, -0.42409953474998474, 0.17014169692993164, 0.035439398139715195, -0.022380296140909195, 0.07569629698991776, -0.2836798429489136, 0.09819241613149643, -0.02390301413834095, 0.5166295766830444, 0.17210614681243896, 0.5441963076591492, -0.58940190076828, -0.22437480092048645, -0.4315945506095886, 0.04228336736559868, -0.09806206822395325, -0.053715430200099945, 0.01697291061282158, 0.05222108215093613, -0.24068351089954376, 0.33615678548812866, 0.17216475307941437, 0.4982776939868927, -0.11583715677261353, -0.2824459969997406, -0.3028733730316162, -0.05659324303269386, 0.05260542407631874, -0.4606131911277771, 0.23947471380233765, -0.22312414646148682, 0.09290380030870438, -0.10029220581054688, 0.1403830349445343, -0.008368810638785362, -0.23904794454574585, 0.27706006169319153, 0.587507426738739, 0.08792240917682648, 0.2794116139411926, 0.5532601475715637, -0.017240677028894424, -0.0034356662072241306, 0.05214827507734299, -0.3737611174583435, -0.13662339746952057, 0.04996078461408615, 0.016851387917995453, 0.2484906017780304, -0.08757215738296509, -0.08660575747489929, -0.3632865250110626, 0.505617618560791, -0.16242703795433044, 0.016891948878765106, -0.03264681249856949, 0.07525886595249176, 0.12679901719093323, 0.020819323137402534, -0.041823361068964005, 0.08289738744497299, -0.01863536424934864, 0.3271135985851288, -0.2005006968975067, -0.28271764516830444, 0.3735973536968231, -0.4797985255718231, -0.3367663025856018, 0.09544739872217178, 0.2530969977378845, 0.2006331980228424, -0.09318014234304428, -0.6303014755249023, -0.2510201930999756, 0.33874571323394775, 0.06366939097642899, -0.180123433470726, 0.323825478553772, -0.15784631669521332, 0.18054485321044922, 0.15823157131671906, 0.03884745016694069, 0.15755221247673035, -0.30897635221481323, 0.04981284216046333, -0.22991561889648438 ]