html_url stringlengths 48 51 | title stringlengths 5 280 | comments stringlengths 63 51.8k | body stringlengths 0 36.2k ⌀ | comment_length int64 16 1.52k | text stringlengths 159 54.1k | embeddings listlengths 768 768 |
|---|---|---|---|---|---|---|
https://github.com/huggingface/datasets/issues/297 | Error in Demo for Specific Datasets | We don't plan to host the source files of newsroom ourselves for now.
You can still get the dataset if you follow the download instructions given by `dataset = load_dataset('newsroom')` though.
The viewer also shows the instructions now.
Closing this one. If you have other questions, feel free to re-open :) | Selecting `natural_questions` or `newsroom` dataset in the online demo results in an error similar to the following.

| 51 | Error in Demo for Specific Datasets
Selecting `natural_questions` or `newsroom` dataset in the online demo results in an error similar to the following.

We don't plan to host the source files of newsroom ourselves for now.
You can still get the dataset if you follow the download instructions given by `dataset = load_dataset('newsroom')` though.
The viewer also shows the instructions now.
Closing this one. If you have other questions, feel free to re-open :) | [
-0.3872506022453308,
0.3188093304634094,
-0.16402342915534973,
-0.02116589993238449,
0.013870371505618095,
-0.0003128349781036377,
0.24411025643348694,
0.4248591661453247,
-0.10584630072116852,
0.2502385973930359,
0.07646096497774124,
0.06626684963703156,
-0.15477275848388672,
0.19899824261665344,
0.15765610337257385,
-0.3058364689350128,
0.03413928300142288,
0.10672937333583832,
0.008037902414798737,
0.07688024640083313,
0.02089865505695343,
0.13809984922409058,
-0.3802263140678406,
0.08078550547361374,
0.05556674674153328,
0.07056647539138794,
-0.06121855229139328,
0.10057893395423889,
-0.38537684082984924,
-0.2824482023715973,
0.19108080863952637,
0.18659675121307373,
0.10666616261005402,
0.2580333948135376,
-0.00009687821147963405,
0.1013723611831665,
0.37200927734375,
-0.07408927381038666,
-0.38535019755363464,
-0.24528951942920685,
-0.11443467438220978,
-0.11701203882694244,
-0.1747402548789978,
-0.07784914970397949,
-0.30938297510147095,
-0.3932517170906067,
0.14332202076911926,
-0.1347687542438507,
0.380889356136322,
0.5134060382843018,
0.3451370894908905,
0.31971344351768494,
0.06417706608772278,
-0.39823904633522034,
0.24451801180839539,
0.3347768783569336,
-0.28666284680366516,
0.25513941049575806,
0.13513584434986115,
-0.010375223122537136,
0.17734092473983765,
0.26955437660217285,
0.13106782734394073,
0.11857245862483978,
-0.1659907102584839,
-0.0658475011587143,
-0.12248524278402328,
-0.39449039101600647,
0.1921977698802948,
0.3081764578819275,
0.46081870794296265,
0.20949921011924744,
-0.04061450809240341,
0.018214143812656403,
0.07344141602516174,
0.009701846167445183,
0.029534179717302322,
0.3768167793750763,
-0.28347086906433105,
0.11237218976020813,
-0.2613152265548706,
-0.3204790949821472,
-0.3009406328201294,
0.36290448904037476,
0.021559447050094604,
0.26229286193847656,
-0.21829430758953094,
0.21148207783699036,
-0.12044359743595123,
-0.11183494329452515,
0.16943158209323883,
0.05978886038064957,
-0.02769370749592781,
-0.02317742258310318,
-0.08686254918575287,
-0.07125093787908554,
0.0011096596717834473,
-0.04491803050041199,
0.2504671514034271,
0.11486438661813736,
-0.03228418529033661,
-0.07908903807401657,
0.16515928506851196,
0.07674355804920197,
0.2547535300254822,
0.13501298427581787,
0.31063008308410645,
0.42361918091773987,
0.2886648178100586,
0.30244311690330505,
-0.06351933628320694,
0.09665875881910324,
-0.17472721636295319,
-0.3139652609825134,
-0.29294633865356445,
0.04582551121711731,
0.43666279315948486,
-0.3682165741920471,
-0.371797651052475,
0.15407492220401764,
-0.05053307116031647,
0.1273319125175476,
-0.11395718902349472,
0.29868030548095703,
0.12180067598819733,
0.06316310167312622,
0.0573718324303627,
0.4153440594673157,
-0.11907320469617844,
-0.4704570472240448,
-0.15394215285778046,
0.18741004168987274,
-0.19110450148582458,
0.0657426118850708,
0.32467037439346313,
0.15267793834209442,
0.2951783537864685,
0.05764179676771164,
0.2079438418149948,
-0.0880495011806488,
0.36447447538375854,
0.12676481902599335,
0.15167689323425293,
0.2503456175327301,
0.11389696598052979,
0.05188628286123276,
0.03528380021452904,
-0.07814201712608337,
0.03886447101831436,
0.24605309963226318,
-0.028061971068382263,
-0.47735872864723206,
-0.15691855549812317,
0.3296297788619995,
-0.07044290751218796,
0.0011814795434474945,
-0.03958246856927872,
0.260821133852005,
-0.05484791845083237,
-0.12828285992145538,
-0.14345237612724304,
-0.08726392686367035,
0.14088401198387146,
0.04214012622833252,
0.21345940232276917,
0.2267337292432785,
-0.40837562084198,
0.293652206659317,
-0.11565353721380234,
-0.025573432445526123,
0.17785704135894775,
0.008878370746970177,
-0.41509491205215454,
0.22611728310585022,
-0.30225902795791626,
-0.020909704267978668,
0.4404129087924957,
-0.3577587902545929,
-0.21002672612667084,
0.09458693116903305,
-0.013532895594835281,
-0.2623961269855499,
-0.23016420006752014,
-0.19788414239883423,
-0.016495486721396446,
0.048915307968854904,
-0.1584017276763916,
0.32088786363601685,
0.007394606247544289,
0.14091646671295166,
-0.2430870085954666,
-0.13508497178554535,
0.2573475241661072,
0.35293087363243103,
0.014426399022340775,
-0.01762726902961731,
-0.07140345126390457,
0.049539510160684586,
0.13442887365818024,
-0.10437589883804321,
-0.02115083858370781,
0.19384442269802094,
0.13354338705539703,
-0.23040203750133514,
-0.04594633728265762,
-0.043356671929359436,
-0.24373701214790344,
0.05540457367897034,
-0.13158202171325684,
0.39959847927093506,
0.12263502180576324,
0.04208918660879135,
-0.41794198751449585,
-0.03782840818166733,
-0.27382397651672363,
-0.519909143447876,
0.3302708566188812,
0.20207366347312927,
0.07333838939666748,
0.07722744345664978,
-0.10830240696668625,
-0.05499334633350372,
-0.05505824089050293,
-0.0631411075592041,
-0.2199082225561142,
0.17076475918293,
-0.2846331000328064,
-0.005670929327607155,
0.09670357406139374,
-0.30656707286834717,
0.2832338511943817,
-0.17267410457134247,
-0.20594239234924316,
0.41938701272010803,
-0.019836971536278725,
0.05754672363400459,
0.41825148463249207,
-0.19717241823673248,
0.052595701068639755,
-0.4988578259944916,
-0.008072962984442711,
0.16528689861297607,
-0.11556347459554672,
0.24966734647750854,
-0.1285468339920044,
0.21419939398765564,
0.14453615248203278,
-0.02368324249982834,
-0.009527605026960373,
0.216044083237648,
0.33463868498802185,
-0.09742248058319092,
0.017704149708151817,
-0.10070962458848953,
0.18117749691009521,
0.283953994512558,
0.09240145981311798,
-0.373960942029953,
-0.37494951486587524,
0.10013455152511597,
0.07938501238822937,
-0.031919173896312714,
0.08612462133169174,
0.08889676630496979,
-0.07450155168771744,
-0.2598748803138733,
0.23049838840961456,
0.32782191038131714,
0.4170772433280945,
0.07742737233638763,
0.24844573438167572,
0.13004149496555328,
-0.17208980023860931,
-0.2319052666425705,
0.28173860907554626,
-0.15926963090896606,
0.12910611927509308,
0.14294050633907318,
0.16442714631557465,
-0.09985344111919403,
-0.4131436347961426,
0.05571197345852852,
0.18645665049552917,
0.19601258635520935,
-0.1886388212442398,
-0.008993076160550117,
-0.20100952684879303,
-0.1755678653717041,
0.10714010149240494,
0.04762715473771095,
-0.06593881547451019,
-0.3055224120616913,
0.43214279413223267,
0.032332904636859894,
-0.3655504286289215,
0.10235971957445145,
-0.01792798936367035,
0.36197513341903687,
-0.0456877201795578,
0.4299204647541046,
-0.044413767755031586,
-0.046366382390260696,
-0.3281882107257843,
0.24817442893981934,
0.15987907350063324,
0.18438901007175446,
0.35904738306999207,
-0.27369123697280884,
-0.20646430552005768,
-0.4784511923789978,
-0.27117297053337097,
0.28710976243019104,
0.23679432272911072,
0.7645661234855652,
0.012166805565357208,
0.4614914655685425,
-0.11202752590179443,
-0.12310916930437088,
0.2972157299518585,
-0.16846755146980286,
-0.06434406340122223,
0.06804116815328598,
-0.06573615968227386,
-0.26281657814979553,
-0.27108559012413025,
-0.6054619550704956,
-0.2764244079589844,
-0.2533034086227417,
-0.07400892674922943,
-0.034392401576042175,
0.08085746318101883,
0.34026333689689636,
0.0184951089322567,
-0.08877459168434143,
-0.007562839891761541,
0.03599024564027786,
-0.46593260765075684,
-0.4391837418079376,
0.1614697277545929,
-0.7218426465988159,
-0.49663516879081726,
0.025844749063253403,
0.21401363611221313,
0.24630136787891388,
0.05347035825252533,
-0.3788909316062927,
-0.06303548812866211,
0.0697178915143013,
-0.05728398635983467,
0.09169013053178787,
-0.1630956083536148,
0.21496067941188812,
-0.29438459873199463,
-0.24223947525024414,
-0.2595786452293396,
0.07472306489944458,
0.1373457908630371,
0.09629789739847183,
0.1859034299850464,
-0.20094594359397888,
-0.07457085698843002,
0.06760092079639435,
0.6230893731117249,
0.08540999889373779,
0.09926766157150269,
0.3722313940525055,
-0.13273100554943085,
0.3359413146972656,
-0.13864529132843018,
-0.005020665004849434,
0.16694477200508118,
-0.06740592420101166,
-0.14981816709041595,
0.23953711986541748,
0.025945600122213364,
-0.313222199678421,
-0.38524240255355835,
0.24055254459381104,
-0.30150043964385986,
-0.19897042214870453,
-0.053890496492385864,
-0.020873039960861206,
0.2608453333377838,
0.24068036675453186,
-0.0016862638294696808,
0.10400408506393433,
-0.07460293918848038,
0.024388622492551804,
0.0570327453315258,
0.044570568948984146,
0.003194746095687151,
-0.6048052310943604,
0.02672082558274269,
-0.3515690565109253,
0.1591261476278305,
-0.25777333974838257,
0.41190195083618164,
-0.24070696532726288,
-0.008533285930752754,
0.013882756233215332,
-0.08647782355546951,
0.1769094467163086,
-0.5102119445800781,
-0.027670390903949738,
0.014935102313756943,
0.11099238693714142,
-0.19242042303085327,
-0.23557768762111664,
-0.27454686164855957,
0.26411914825439453,
0.07852306962013245,
0.18461942672729492,
-0.14298713207244873,
-0.1287340372800827,
0.24275891482830048,
-0.013486796990036964,
0.020748768001794815,
-0.08058147132396698,
0.06306025385856628,
-0.0967869982123375,
-0.39887821674346924,
-0.09116245061159134,
0.04460078477859497,
-0.04636954516172409,
-0.36870527267456055,
-0.1156628429889679,
0.07933788001537323,
0.3159850239753723,
-0.08588366210460663,
0.13367009162902832,
0.20203861594200134,
0.04796507954597473,
-0.011496871709823608,
0.2605047821998596,
0.06770728528499603,
0.1446576714515686,
0.3633371889591217,
0.2215910404920578,
-0.08192011713981628,
0.1926189661026001,
-0.120554618537426,
-0.04242771118879318,
0.5388209819793701,
-0.17511926591396332,
-0.28179508447647095,
-0.1047944575548172,
0.14179937541484833,
0.00872809998691082,
0.34724751114845276,
0.2992350459098816,
-0.31333231925964355,
0.020970216020941734,
-0.23781731724739075,
0.1973050832748413,
-0.1814100295305252,
-0.16685041785240173,
0.13334980607032776,
-0.16425178945064545,
-0.03738251328468323,
0.006274868734180927,
0.12893779575824738,
0.868038535118103,
0.1448335349559784,
0.04110332950949669,
0.1716700792312622,
-0.10489631444215775,
0.23320819437503815,
-0.1474512666463852,
-0.00453413650393486,
-0.2011490911245346,
-0.2723900079727173,
0.04247547686100006,
-0.08726755529642105,
0.1309123933315277,
0.17687974870204926,
-0.21600976586341858,
0.16029053926467896,
0.032471925020217896,
0.08713586628437042,
-0.1521574705839157,
0.09693893790245056,
-0.001268303021788597,
0.22950217127799988,
-0.16763506829738617,
0.3235171437263489,
-0.05647867172956467,
0.15176884829998016,
-0.2461146116256714,
-0.09187115728855133,
-0.14349567890167236,
-0.16288615763187408,
-0.3564285635948181,
0.28985413908958435,
-0.05166579410433769,
0.15430781245231628,
0.011239010840654373,
-0.18032008409500122,
-0.042925380170345306,
0.38145267963409424,
0.13133572041988373,
0.12403874099254608,
-0.36734870076179504,
0.2598143219947815,
-0.017244957387447357,
-0.23128871619701385,
0.08381616324186325,
0.10567408055067062,
0.16000357270240784,
-0.3114282488822937,
-0.2772390842437744,
0.09134358912706375,
-0.1630019247531891,
-0.010979805141687393,
-0.35282498598098755,
-0.17686714231967926,
0.28596603870391846,
-0.140166774392128,
-0.22971698641777039,
-0.13819825649261475,
-0.11623594164848328,
-0.2525809705257416,
0.2790488600730896,
-0.08385956287384033,
-0.22370722889900208,
-0.3463154435157776,
0.3273395001888275,
-0.16934911906719208,
-0.05769730731844902,
0.056303832679986954,
0.06395672261714935,
0.08822740614414215,
0.3701286315917969,
0.20619772374629974,
-0.06218048930168152,
-0.4052586555480957,
0.18423891067504883,
0.22913987934589386,
-0.39340898394584656,
0.059621550142765045,
-0.16184692084789276,
-0.021387018263339996,
0.2566966116428375,
0.24764955043792725,
-0.05336574465036392,
-0.21096426248550415,
0.05786862596869469,
-0.3806426227092743,
-0.018285633996129036,
-0.059531912207603455,
-0.16100850701332092,
0.2897928059101105,
-0.05000094324350357,
-0.21121902763843536,
0.18303687870502472,
0.02954947203397751,
-0.46413955092430115,
-0.058507099747657776,
-0.3393155038356781,
0.16481025516986847,
-0.3402886390686035,
0.07720908522605896,
-0.052078910171985626,
-0.05207590013742447,
0.1725098192691803,
-0.12196257710456848,
-0.278565376996994,
-0.3615245223045349,
-0.05466195568442345,
0.0916808694601059,
0.2551635205745697,
-0.2535850405693054,
0.021072931587696075,
-0.1381283700466156,
-0.13465332984924316,
0.14051008224487305,
0.14343467354774475,
-0.2303813397884369,
0.018286321312189102,
0.092613086104393,
0.020150523632764816,
0.02394029125571251,
0.08748069405555725,
0.10176616907119751,
0.09542957693338394,
0.3023672103881836,
0.04433983564376831,
0.1146039143204689,
0.06871875375509262,
-0.23199968039989471,
-0.31794309616088867,
0.005968108773231506,
0.08622902631759644,
0.4791337847709656,
0.11763419210910797,
-0.26252585649490356,
0.20804226398468018,
0.01230417937040329,
0.19378606975078583,
0.24825124442577362,
-0.46868041157722473,
0.28548043966293335,
0.14892613887786865,
0.3802303969860077,
-0.25359034538269043,
-0.102501779794693,
-0.07129666209220886,
-0.0021170908585190773,
-0.0405234731733799,
-0.1618703305721283,
0.2719227969646454,
0.03808550536632538,
0.17058926820755005,
0.15375405550003052,
0.02616613730788231,
-0.046150095760822296,
0.26211583614349365,
0.3201761245727539,
-0.3798968493938446,
0.12224175035953522,
-0.1708788126707077,
-0.00012180209159851074,
0.03926456719636917,
0.2162189930677414,
0.07259073108434677,
0.43729326128959656,
0.3349699079990387,
0.20505979657173157,
0.30657777190208435,
-0.13988760113716125,
0.1267789602279663,
0.25412535667419434,
0.18115127086639404,
0.21382096409797668,
-0.0361260324716568,
0.02635696530342102,
-0.26868027448654175,
-0.16444416344165802,
-0.28017720580101013,
0.119318887591362,
0.040275149047374725,
0.017068497836589813,
-0.2899394929409027,
-0.2994574010372162,
-0.2605130672454834,
0.03910939767956734,
-0.12773488461971283,
-0.11997978389263153,
0.007824011147022247,
-0.06881958246231079,
-0.18698985874652863,
-0.3241328001022339,
0.33644911646842957,
0.1578707993030548,
-0.032998792827129364,
-0.1121717244386673,
0.37726131081581116,
0.04386252537369728,
-0.13664135336875916,
0.23843559622764587,
0.5030644536018372,
0.3806134760379791,
0.36722612380981445,
-0.23982137441635132,
-0.013041564263403416,
0.07304739952087402,
-0.07885529100894928,
0.005191031843423843,
0.06793436408042908,
0.24013565480709076,
-0.07565119862556458,
0.4011613428592682,
0.2593037784099579,
-0.19294586777687073,
0.17420251667499542,
0.2846860885620117,
0.04875970631837845,
-0.09094266593456268,
-0.07255571335554123,
-0.19080643355846405,
0.10580279678106308,
-0.025252815335989,
-0.32716143131256104,
-0.28076207637786865,
0.038626641035079956,
0.13424983620643616,
-0.03002236969769001,
0.18848946690559387,
-0.2734944522380829,
0.1709488034248352,
-0.18400536477565765,
0.5951346755027771,
0.08790791034698486,
0.25178492069244385,
-0.09254594147205353,
-0.5342868566513062,
-0.547065258026123,
0.24868303537368774,
-0.09674224257469177,
-0.07468931376934052,
0.15314562618732452,
-0.030512172728776932,
0.2696278393268585,
0.28606778383255005,
0.051286257803440094,
0.07998928427696228,
-0.14881344139575958,
0.26491427421569824,
-0.5765101313591003,
-0.018991481512784958,
0.09922784566879272,
0.2678033411502838,
0.009133420884609222,
-0.2319776713848114,
0.13177648186683655,
-0.10628393292427063,
0.09715849906206131,
0.32703697681427,
-0.02005413919687271,
0.06819990277290344,
-0.07297679781913757,
0.43640851974487305,
0.06434877216815948,
0.36928871273994446,
-0.23292022943496704,
-0.2746248245239258,
-0.20337578654289246,
-0.13245287537574768,
-0.19830730557441711,
0.10449007898569107,
0.11429077386856079,
0.1928531974554062,
0.07953669875860214,
0.06595735996961594,
0.051696062088012695,
-0.09229797124862671,
0.09492790699005127,
0.040688976645469666,
-0.3376057744026184,
-0.07710707932710648,
0.07682628184556961,
0.021775584667921066,
0.15383167564868927,
-0.08042118698358536,
-0.17226289212703705,
-0.12884975969791412,
-0.22119072079658508,
-0.115802101790905,
0.5106816291809082,
-0.04353471100330353,
-0.21142172813415527,
-0.07105537503957748,
0.007560111582279205,
0.08788632601499557,
-0.09366238117218018,
-0.38440677523612976,
0.04813755303621292,
0.1446213722229004,
-0.05204355716705322,
0.09143023192882538,
0.1257634162902832,
0.18575775623321533,
0.016451876610517502,
-0.02499726042151451,
0.5657557249069214,
0.16931387782096863,
-0.22482673823833466,
0.0039624497294425964,
-0.12324599176645279
] |
https://github.com/huggingface/datasets/issues/296 | snli -1 labels | @jxmorris12 , we use `-1` to label examples for which `gold label` is missing (`gold label = -` in the original dataset). | I'm trying to train a model on the SNLI dataset. Why does it have so many -1 labels?
```
import nlp
from collections import Counter
data = nlp.load_dataset('snli')['train']
print(Counter(data['label']))
Counter({0: 183416, 2: 183187, 1: 182764, -1: 785})
```
| 22 | snli -1 labels
I'm trying to train a model on the SNLI dataset. Why does it have so many -1 labels?
```
import nlp
from collections import Counter
data = nlp.load_dataset('snli')['train']
print(Counter(data['label']))
Counter({0: 183416, 2: 183187, 1: 182764, -1: 785})
```
@jxmorris12 , we use `-1` to label examples for which `gold label` is missing (`gold label = -` in the original dataset). | [
0.42843693494796753,
-0.3220366835594177,
-0.07234986126422882,
0.23945315182209015,
0.21637816727161407,
0.1463887095451355,
0.5796835422515869,
0.16553591191768646,
0.170363187789917,
0.1855383813381195,
-0.19042885303497314,
0.35288485884666443,
-0.15023542940616608,
0.08440118283033371,
0.273731529712677,
0.007783368229866028,
0.42015334963798523,
0.2741084396839142,
0.3514614403247833,
-0.4586471915245056,
-0.1709999293088913,
0.13829123973846436,
-0.15224546194076538,
0.3128228783607483,
-0.44140610098838806,
0.3461141288280487,
0.0009129401296377182,
-0.3870428204536438,
-0.01806461252272129,
-0.7808857560157776,
0.17051033675670624,
-0.05212454870343208,
0.24947777390480042,
-0.2046048641204834,
-0.00011848997382912785,
-0.28295671939849854,
0.11125533282756805,
0.10014186799526215,
-0.6039979457855225,
-0.12913845479488373,
-0.14780378341674805,
-0.20917265117168427,
0.27007153630256653,
-0.022630400955677032,
-0.056175634264945984,
-0.22350016236305237,
0.25704389810562134,
0.12134316563606262,
-0.03771425783634186,
0.24866560101509094,
0.12010326981544495,
0.007454210892319679,
-0.3962406814098358,
0.2241048812866211,
0.2631271779537201,
-0.24901415407657623,
0.06933918595314026,
0.023318441584706306,
0.010258205235004425,
-0.16955776512622833,
0.4104805588722229,
0.48041069507598877,
-0.12124226242303848,
-0.16331833600997925,
0.15867924690246582,
0.07581847161054611,
0.2860768437385559,
-0.34159883856773376,
-0.006411019712686539,
0.22402527928352356,
0.09168225526809692,
-0.2839529812335968,
-0.2545430064201355,
-0.34410446882247925,
0.20203369855880737,
-0.25729069113731384,
-0.23164477944374084,
0.1768648326396942,
0.36292415857315063,
0.01253659650683403,
-0.18316492438316345,
0.013428572565317154,
-0.10460588335990906,
0.11068741232156754,
0.22065356373786926,
0.6899819374084473,
0.12223421037197113,
0.2554948627948761,
0.3940928280353546,
0.23378337919712067,
-0.23951540887355804,
-0.07512418925762177,
0.035258859395980835,
0.4097282886505127,
-0.5185240507125854,
-0.28923410177230835,
0.02635914459824562,
0.037335895001888275,
-0.0361393466591835,
0.19921806454658508,
-0.014205326326191425,
-0.13239896297454834,
-0.11354978382587433,
0.04981958866119385,
0.09856067597866058,
0.03400251269340515,
0.38281357288360596,
0.23380659520626068,
0.0019423440098762512,
-0.21103869378566742,
0.2714415490627289,
0.03787977993488312,
-0.2870955169200897,
-0.05079512670636177,
0.4360051453113556,
-0.08399637788534164,
-0.23531341552734375,
-0.11521656811237335,
-0.1464788019657135,
-0.028974369168281555,
-0.48384490609169006,
-0.016802353784441948,
0.16645291447639465,
-0.264724999666214,
0.1997206062078476,
0.2434004545211792,
-0.23164670169353485,
0.05991796404123306,
-0.11011774837970734,
-0.4850926697254181,
-0.1473662406206131,
0.029176602140069008,
-0.12752939760684967,
-0.09465242922306061,
0.08639419078826904,
-0.1976352334022522,
0.17817668616771698,
0.027248427271842957,
-0.3649910092353821,
-0.09378433227539062,
0.3724909722805023,
0.10107675194740295,
-0.05017862468957901,
0.34093835949897766,
-0.3068791329860687,
0.6312386393547058,
-0.06134747341275215,
-0.14267045259475708,
-0.08958079665899277,
-0.15820863842964172,
-0.2209961712360382,
-0.31804776191711426,
0.0200447216629982,
0.16402870416641235,
0.04415404796600342,
-0.2355019748210907,
0.06947655975818634,
0.12587925791740417,
-0.011678427457809448,
-0.14528968930244446,
0.12688320875167847,
-0.2602323293685913,
-0.08305911719799042,
-0.02596958726644516,
0.06306177377700806,
-0.0034205615520477295,
-0.13050222396850586,
-0.14613249897956848,
-0.0012309413868933916,
-0.281619668006897,
0.3323376178741455,
0.4053999185562134,
-0.07142612338066101,
-0.10505709797143936,
0.0750621110200882,
0.06983408331871033,
0.4805375933647156,
-0.3734816908836365,
-0.37283626198768616,
0.1543426811695099,
-0.25539058446884155,
-0.48199912905693054,
-0.030120842158794403,
0.6453998684883118,
-0.18430720269680023,
-0.02888547256588936,
0.002640761435031891,
-0.1771393120288849,
0.0531969889998436,
-0.13754945993423462,
-0.3707210123538971,
0.08681558817625046,
0.5049744844436646,
0.22649715840816498,
-0.05128126218914986,
-0.025872670114040375,
-0.3803987503051758,
0.11615044623613358,
0.36426031589508057,
-0.07194708287715912,
0.16277934610843658,
0.029946602880954742,
0.26927411556243896,
0.1729639172554016,
0.1708911508321762,
0.04422180354595184,
-0.19666129350662231,
0.17850401997566223,
-0.057838402688503265,
0.4421193599700928,
0.47273921966552734,
0.041229188442230225,
-0.08828184008598328,
-0.10187770426273346,
-0.121662437915802,
-0.1106763631105423,
0.05367404967546463,
0.1870279461145401,
0.20118458569049835,
-0.0638098418712616,
-0.1342470347881317,
0.06882046163082123,
-0.15888695418834686,
0.12394420802593231,
-0.3422495424747467,
-0.02061036042869091,
0.05809153616428375,
0.08119918406009674,
-0.1915922313928604,
0.24226638674736023,
0.32309871912002563,
0.16152381896972656,
0.12243267148733139,
0.0802263617515564,
-0.1514078825712204,
-0.2654772996902466,
0.2320176064968109,
0.3996817469596863,
0.17412617802619934,
-0.29772335290908813,
0.05309929698705673,
0.4022230803966522,
0.06530895084142685,
-0.2728525698184967,
-0.07116904109716415,
0.12251574546098709,
-0.012123476713895798,
0.2192319631576538,
-0.2900402545928955,
0.1457642763853073,
0.10625350475311279,
0.2003892958164215,
-0.32092219591140747,
-0.2441481500864029,
0.12839850783348083,
-0.3559904992580414,
0.08736325800418854,
0.3305927515029907,
-0.33141589164733887,
0.06432705372571945,
0.04239991307258606,
-0.17311352491378784,
-0.04588243365287781,
0.09961703419685364,
-0.12291834503412247,
-0.131016343832016,
0.340793639421463,
0.0693281888961792,
0.11921495944261551,
0.21575146913528442,
-0.06956718862056732,
-0.009683532640337944,
-0.5985786318778992,
-0.23975878953933716,
0.1104307621717453,
0.10058286786079407,
-0.21638540923595428,
-0.2415604591369629,
0.3826272189617157,
0.061046767979860306,
-0.2787591814994812,
-0.5435177087783813,
-0.29475146532058716,
0.21735501289367676,
-0.24281787872314453,
0.20165465772151947,
-0.13936597108840942,
-0.4047532081604004,
-0.40466544032096863,
-0.27777519822120667,
-0.10122857987880707,
-0.151932492852211,
0.27741310000419617,
-0.28947168588638306,
0.19860340654850006,
0.04490523040294647,
0.07574553787708282,
0.22326739132404327,
-0.19362328946590424,
0.43439173698425293,
-0.2699822187423706,
-0.20433373749256134,
-0.3394886553287506,
-0.05699245631694794,
-0.36402928829193115,
0.027795089408755302,
0.23828130960464478,
-0.0908762589097023,
-0.33786654472351074,
-0.009052125737071037,
-0.23545262217521667,
-0.09371699392795563,
-0.1507401317358017,
-0.09953004866838455,
0.17838765680789948,
-0.14490248262882233,
-0.21056269109249115,
0.38575419783592224,
0.0033592740073800087,
0.15524300932884216,
0.017958620563149452,
0.13330863416194916,
-0.29876503348350525,
0.11114995926618576,
-0.389303058385849,
-0.139766663312912,
-0.05356346070766449,
0.267180472612381,
0.15222619473934174,
0.08300770819187164,
0.14538729190826416,
0.41800418496131897,
-0.10876612365245819,
0.056509651243686676,
-0.12559838593006134,
0.3179321587085724,
-0.13659627735614777,
-0.31297433376312256,
0.06496346741914749,
0.24288612604141235,
-0.024536840617656708,
-0.03462492302060127,
0.12623494863510132,
-0.03092898800969124,
-0.32220685482025146,
-0.40388309955596924,
0.08780987560749054,
0.1511191874742508,
-0.17051593959331512,
-0.021857574582099915,
0.040397562086582184,
-0.09443846344947815,
0.2482839971780777,
0.10873991250991821,
-0.06426748633384705,
0.11752380430698395,
0.2205931395292282,
-0.1593240201473236,
0.491018682718277,
-0.312892347574234,
0.18557021021842957,
-0.12634685635566711,
-0.019329681992530823,
0.5070945620536804,
-0.0816483348608017,
0.06443338841199875,
0.019432108849287033,
-0.175475612282753,
-0.0944150909781456,
0.0038918107748031616,
0.3216070532798767,
0.2923544943332672,
-0.06558676064014435,
0.3540462851524353,
-0.06133747845888138,
-0.012218525633215904,
0.013100765645503998,
0.23145565390586853,
0.30846843123435974,
0.13598422706127167,
-0.09614044427871704,
-0.09068912267684937,
-0.0644003227353096,
-0.07721826434135437,
-0.23301780223846436,
-0.18295492231845856,
0.0067274728789925575,
-0.15956243872642517,
-0.11795192956924438,
-0.03077903389930725,
0.21151891350746155,
-0.35357004404067993,
-0.29333847761154175,
-0.19930195808410645,
-0.19758175313472748,
0.04198706895112991,
0.20098459720611572,
0.19042767584323883,
0.25322026014328003,
0.34690648317337036,
0.4513166844844818,
0.5280640721321106,
-0.4117272198200226,
0.13607019186019897,
0.17080220580101013,
0.4598350524902344,
-0.31793123483657837,
-0.17050518095493317,
-0.3953029215335846,
-0.24225902557373047,
0.5076134204864502,
0.342914879322052,
0.03515484184026718,
-0.2855624258518219,
0.4906057119369507,
0.11880313605070114,
-0.1419796496629715,
-0.1873476207256317,
-0.37005019187927246,
-0.15891870856285095,
0.14747430384159088,
-0.1222151592373848,
-0.06029295176267624,
-0.0016448935493826866,
-0.08892723172903061,
0.032781507819890976,
0.03899727016687393,
-0.0667443796992302,
0.17910020053386688,
0.12498658895492554,
-0.09247045964002609,
0.3167530298233032,
-0.02361951768398285,
0.26375001668930054,
0.1502431333065033,
-0.22141939401626587,
0.3227817714214325,
-0.08093322813510895,
-0.5003845691680908,
-0.11042945832014084,
-0.03611364588141441,
0.5688650608062744,
-0.05280715227127075,
0.1631464958190918,
-0.15160980820655823,
-0.16632062196731567,
0.1289234757423401,
-0.11464982479810715,
0.11874450743198395,
0.28646838665008545,
0.170845627784729,
-0.3608551025390625,
-0.5239190459251404,
0.7567541599273682,
0.128482386469841,
-0.23638857901096344,
0.03320722281932831,
-0.22662706673145294,
-0.24644805490970612,
0.28461968898773193,
0.3165575861930847,
0.8278552293777466,
-0.08672861754894257,
0.19370943307876587,
0.1711326539516449,
-0.5426453351974487,
0.7377095222473145,
-0.14588022232055664,
-0.09431946277618408,
-0.29760849475860596,
0.18724894523620605,
0.06833573430776596,
0.14266712963581085,
-0.34432587027549744,
0.6471412777900696,
0.2203022837638855,
0.3624386191368103,
-0.05332126468420029,
-0.15755446255207062,
0.23816992342472076,
0.030114762485027313,
0.5198004841804504,
-0.1437743604183197,
-0.25886446237564087,
0.07727981358766556,
-0.09723284840583801,
0.0621347576379776,
-0.2950020432472229,
0.042999591678380966,
0.1600845754146576,
-0.018893470987677574,
-0.00833902508020401,
-0.31288930773735046,
0.33363983035087585,
0.010645344853401184,
0.2420303374528885,
0.03068649023771286,
-0.239778071641922,
0.3733063340187073,
0.6426191329956055,
0.1260433793067932,
0.015252008102834225,
-0.09820231795310974,
0.1515774428844452,
0.23967958986759186,
-0.04404639080166817,
0.1718333214521408,
0.42698347568511963,
-0.003946281969547272,
-0.23665349185466766,
-0.09855646640062332,
0.08617877960205078,
0.32452279329299927,
-0.44287896156311035,
-0.024927668273448944,
-0.2609943151473999,
0.239754781126976,
0.1858024299144745,
0.0880267545580864,
0.12974730134010315,
-0.22001318633556366,
0.12394031882286072,
0.2014140486717224,
-0.2534949779510498,
-0.1374189853668213,
-0.06246328726410866,
-0.31232309341430664,
-0.19252726435661316,
0.2476588785648346,
0.16449636220932007,
0.16971637308597565,
0.1050712913274765,
-0.0963926613330841,
-0.06139853596687317,
-0.10755125433206558,
-0.044947247952222824,
0.1630549281835556,
-0.4371388256549835,
0.143375426530838,
0.18557170033454895,
-0.05269380658864975,
-0.17815810441970825,
0.29727184772491455,
0.049320437014102936,
0.028577301651239395,
0.1651860773563385,
-0.04418494552373886,
-0.40840762853622437,
-0.25846046209335327,
-0.23348726332187653,
0.23230373859405518,
0.024025119841098785,
0.1225387454032898,
0.07786363363265991,
-0.11577081680297852,
-0.23265254497528076,
-0.3047422170639038,
-0.32862967252731323,
0.4037944972515106,
-0.06447118520736694,
0.11571405827999115,
-0.37260228395462036,
0.23196792602539062,
0.16439858078956604,
-0.14961649477481842,
0.06678253412246704,
-0.10291486233472824,
-0.11870810389518738,
0.15555530786514282,
0.13076341152191162,
-0.06192924082279205,
-0.06856721639633179,
0.27007800340652466,
-0.11349675059318542,
0.06766869127750397,
-0.04476964473724365,
0.15812435746192932,
0.27396872639656067,
0.8259965777397156,
-0.198312446475029,
-0.0651814416050911,
0.09306421875953674,
-0.1075298935174942,
0.03446321561932564,
-0.04901432991027832,
0.18306277692317963,
-0.0047629401087760925,
0.2388305962085724,
-0.0363173745572567,
-0.33588480949401855,
0.034125231206417084,
-0.3662410378456116,
-0.09981339424848557,
-0.027898579835891724,
-0.35485029220581055,
0.5007502436637878,
0.39004215598106384,
0.17719273269176483,
0.13065847754478455,
-0.15921050310134888,
-0.10077352821826935,
0.32264795899391174,
0.16105219721794128,
-0.015470747835934162,
-0.14435572922229767,
0.3236384093761444,
0.26630887389183044,
-0.13288536667823792,
0.17088472843170166,
-0.009013034403324127,
-0.21632488071918488,
-0.07792085409164429,
-0.16708841919898987,
0.05384672060608864,
-0.41350793838500977,
-0.006783107295632362,
0.3144766390323639,
-0.05233006924390793,
-0.07292653620243073,
0.2095649689435959,
-0.11440163850784302,
-0.05296110361814499,
0.42927050590515137,
-0.08709213882684708,
0.3596901595592499,
0.14967167377471924,
0.0044431015849113464,
-0.2610095143318176,
0.32649898529052734,
-0.24332435429096222,
0.3039926290512085,
-0.5721048712730408,
0.14336350560188293,
-0.04326005280017853,
0.15831667184829712,
-0.1123584657907486,
-0.011762619018554688,
0.27002543210983276,
0.15382222831249237,
-0.19343867897987366,
-0.2539483904838562,
-0.660236120223999,
0.37648922204971313,
-0.15800383687019348,
0.3186730146408081,
-0.19897574186325073,
0.006608948111534119,
0.137548565864563,
0.07336381077766418,
0.016258031129837036,
-0.44488540291786194,
-0.34406545758247375,
0.3040149211883545,
0.4286312758922577,
-0.1847044676542282,
-0.0650632232427597,
-0.08347313106060028,
-0.06229597330093384,
0.03603843227028847,
-0.22500692307949066,
0.1916491985321045,
0.06944158673286438,
0.267017126083374,
-0.03612035885453224,
-0.39365488290786743,
-0.06367114931344986,
-0.14850486814975739,
0.05413652956485748,
0.29234373569488525,
0.08508811146020889,
0.09183944761753082,
-0.021030060946941376,
-0.04213348403573036,
0.5177640318870544,
-0.10643820464611053,
0.05947227403521538,
-0.42415034770965576,
0.3440137803554535,
-0.10120634734630585,
-0.4397435188293457,
-0.30800527334213257,
0.07085652649402618,
-0.1951528787612915,
0.16184884309768677,
0.061350394040346146,
0.21989066898822784,
0.17382580041885376,
-0.3444458842277527,
0.048126474022865295,
-0.10168448090553284,
0.36739081144332886,
0.018078647553920746,
-0.011941738426685333,
-0.06360023468732834,
-0.03802014887332916,
-0.3053798973560333,
-0.09800935536623001,
-0.10970833897590637,
0.018185632303357124,
0.12456969916820526,
-0.02732097916305065,
-0.4132409393787384,
-0.0354941189289093,
0.029525555670261383,
0.3789496421813965,
-0.012074219062924385,
0.057797595858573914,
0.026408273726701736,
0.05632535368204117,
-0.20313628017902374,
0.13884341716766357,
0.05117136240005493,
0.19747531414031982,
0.04913308098912239,
-0.21896004676818848,
0.012661177664995193,
-0.028321553021669388,
0.18656256794929504,
-0.13768430054187775,
0.3892340064048767,
0.17947380244731903,
0.004266263917088509,
0.39033693075180054,
0.22848036885261536,
0.18998460471630096,
-0.26036596298217773,
0.08868120610713959,
-0.2987479269504547,
0.03852539509534836,
-0.19589391350746155,
0.21794112026691437,
-0.11114205420017242,
0.21625162661075592,
0.039323288947343826,
-0.03948039188981056,
0.2872757315635681,
-0.04649963229894638,
-0.4199906289577484,
0.21909010410308838,
-0.07559684664011002,
0.132447749376297,
-0.007036996074020863,
0.015902508050203323,
0.45992404222488403,
-0.13286246359348297,
-0.1711113601922989,
-0.40887531638145447,
0.29254698753356934,
-0.2253909707069397,
-0.09675359725952148,
0.01068413071334362,
0.2912594676017761,
0.2761573791503906,
-0.06524105370044708,
-0.7549906969070435,
-0.15094073116779327,
0.4303010404109955,
0.04971812665462494,
-0.5622780919075012,
0.11530196666717529,
0.258177787065506,
0.10885904729366302,
0.005846716463565826,
-0.05532568693161011,
0.22740709781646729,
0.33286231756210327,
0.4013536274433136,
-0.43278902769088745
] |
https://github.com/huggingface/datasets/issues/296 | snli -1 labels | Thanks @mariamabarham! so the original dataset is missing some labels? That is weird. Is standard practice just to discard those examples training/eval? | I'm trying to train a model on the SNLI dataset. Why does it have so many -1 labels?
```
import nlp
from collections import Counter
data = nlp.load_dataset('snli')['train']
print(Counter(data['label']))
Counter({0: 183416, 2: 183187, 1: 182764, -1: 785})
```
| 22 | snli -1 labels
I'm trying to train a model on the SNLI dataset. Why does it have so many -1 labels?
```
import nlp
from collections import Counter
data = nlp.load_dataset('snli')['train']
print(Counter(data['label']))
Counter({0: 183416, 2: 183187, 1: 182764, -1: 785})
```
Thanks @mariamabarham! so the original dataset is missing some labels? That is weird. Is standard practice just to discard those examples training/eval? | [
0.37898021936416626,
-0.2363894283771515,
0.002203565090894699,
0.19780553877353668,
0.167617067694664,
0.22788217663764954,
0.6327134966850281,
0.17202219367027283,
0.04842041805386543,
0.11039808392524719,
-0.10792388767004013,
0.3746732473373413,
-0.22194652259349823,
0.14969512820243835,
0.1942364126443863,
0.12018661201000214,
0.3345721960067749,
0.32737037539482117,
0.32620614767074585,
-0.4975574016571045,
-0.16464005410671234,
0.13662037253379822,
-0.10910122096538544,
0.264875203371048,
-0.41859063506126404,
0.2373342216014862,
-0.15384827554225922,
-0.3429224491119385,
0.10450242459774017,
-0.6462283134460449,
0.21992671489715576,
-0.10231252014636993,
0.4217911660671234,
-0.2809382975101471,
-0.00012166707165306434,
-0.2675635814666748,
0.054384492337703705,
-0.017051875591278076,
-0.5345326066017151,
0.013920299708843231,
-0.07294802367687225,
-0.19387084245681763,
0.29071807861328125,
-0.10572792589664459,
-0.0797976702451706,
-0.19854047894477844,
0.2433384358882904,
0.008285872638225555,
0.07407906651496887,
0.2916976809501648,
0.12089821696281433,
-0.007320167496800423,
-0.4337945580482483,
0.3430733382701874,
0.34377285838127136,
-0.22768644988536835,
0.06303706765174866,
0.08631628751754761,
0.02014157921075821,
-0.0772906169295311,
0.4642215669155121,
0.4380054473876953,
-0.11586060374975204,
-0.28572168946266174,
0.1743275225162506,
0.13083508610725403,
0.4274486303329468,
-0.3870418667793274,
0.007404357194900513,
0.25461113452911377,
0.14398512244224548,
-0.12915295362472534,
-0.3260563611984253,
-0.43474772572517395,
0.24930378794670105,
-0.31122976541519165,
-0.23609218001365662,
0.2196953445672989,
0.3017022907733917,
0.15113885700702667,
-0.2829214930534363,
-0.0516650564968586,
-0.18891911208629608,
0.14142896234989166,
0.12954622507095337,
0.6374169588088989,
0.11013421416282654,
0.17828698456287384,
0.13658180832862854,
0.22699910402297974,
-0.13424831628799438,
-0.11056813597679138,
-0.012062828987836838,
0.3769013285636902,
-0.38866153359413147,
-0.20188161730766296,
0.0016417130827903748,
0.025168422609567642,
-0.08315087854862213,
0.23637546598911285,
0.05369049310684204,
-0.08640141040086746,
0.07082686573266983,
0.06043637543916702,
0.1855139136314392,
0.14932231605052948,
0.460448294878006,
0.3609256148338318,
-0.006778046488761902,
-0.20381030440330505,
0.23742738366127014,
-0.01783362776041031,
-0.4318777024745941,
0.07513321191072464,
0.28643327951431274,
-0.1190737709403038,
-0.15249691903591156,
-0.20759129524230957,
-0.16850696504116058,
-0.008001561276614666,
-0.5624996423721313,
0.05498076230287552,
0.08528280258178711,
-0.124327652156353,
0.07340704649686813,
0.29666316509246826,
-0.2300124615430832,
0.10543158650398254,
-0.1578512191772461,
-0.6040852665901184,
-0.1277039796113968,
0.1315525621175766,
-0.17731283605098724,
-0.20712409913539886,
0.19951064884662628,
-0.2129681259393692,
0.23791153728961945,
-0.011701356619596481,
-0.3459094762802124,
-0.06301167607307434,
0.4673311114311218,
0.05776204541325569,
0.17290116846561432,
0.3453715145587921,
-0.13117919862270355,
0.5312724709510803,
-0.06205987557768822,
-0.13814091682434082,
-0.07480613887310028,
0.029769401997327805,
-0.21549773216247559,
-0.33280059695243835,
0.18160557746887207,
0.1727152168750763,
-0.12539198994636536,
-0.15301473438739777,
0.045445673167705536,
0.14676959812641144,
0.08497969806194305,
-0.23307712376117706,
0.0582960769534111,
-0.34906578063964844,
0.04291776940226555,
-0.094308041036129,
0.15685024857521057,
0.009879589080810547,
-0.18079239130020142,
-0.123424232006073,
0.0030135763809084892,
-0.1748470664024353,
0.38817453384399414,
0.4391438961029053,
-0.08881421387195587,
0.0585126131772995,
-0.051350660622119904,
0.084671750664711,
0.5011436343193054,
-0.2736695110797882,
-0.2654498517513275,
0.11332427710294724,
-0.10756462812423706,
-0.2903260290622711,
-0.11853546649217606,
0.513369083404541,
0.010309824720025063,
-0.02208452858030796,
-0.02622029185295105,
-0.05764921009540558,
-0.04693929851055145,
-0.19082915782928467,
-0.4078170359134674,
0.04399115592241287,
0.5144606232643127,
0.15849669277668,
-0.10348720848560333,
0.13258691132068634,
-0.46264374256134033,
0.1176944300532341,
0.38300809264183044,
-0.17689210176467896,
0.1846168339252472,
0.11847309023141861,
0.20526646077632904,
0.15562804043293,
0.07375776022672653,
0.071109838783741,
-0.24502217769622803,
0.2019115388393402,
-0.09622233361005783,
0.2569848895072937,
0.5588254332542419,
-0.12852796912193298,
-0.036027371883392334,
-0.18266573548316956,
-0.1530185043811798,
-0.2860910892486572,
0.058660946786403656,
0.15145933628082275,
0.16417421400547028,
-0.038596928119659424,
-0.18274244666099548,
0.11583177745342255,
-0.29912611842155457,
0.08031123876571655,
-0.4682612717151642,
-0.025893516838550568,
0.11079645156860352,
0.08762604743242264,
-0.1554865688085556,
0.2683875560760498,
0.21601957082748413,
0.023261111229658127,
0.17583447694778442,
0.09779208153486252,
-0.09764312952756882,
-0.2183569222688675,
0.11025437712669373,
0.24687793850898743,
0.06853566318750381,
-0.27578532695770264,
0.0964060127735138,
0.42073801159858704,
0.01086087990552187,
-0.2066672444343567,
-0.20598989725112915,
0.2684471011161804,
0.007993064820766449,
0.22700870037078857,
-0.10758481919765472,
0.08825427293777466,
0.07339102774858475,
0.07654087245464325,
-0.34252750873565674,
-0.15689104795455933,
0.1437416821718216,
-0.30225780606269836,
0.1347489207983017,
0.28164565563201904,
-0.37677446007728577,
0.018183603882789612,
0.03382319211959839,
-0.14994017779827118,
-0.04658783972263336,
0.13388314843177795,
-0.14937078952789307,
-0.1522817313671112,
0.380971759557724,
0.011432360857725143,
0.16329488158226013,
0.29679811000823975,
0.11020562052726746,
0.007357239723205566,
-0.49067726731300354,
-0.1788838654756546,
0.23809298872947693,
0.1433744728565216,
-0.24976663291454315,
-0.18358322978019714,
0.3590717613697052,
0.1449328064918518,
-0.37708431482315063,
-0.4780544638633728,
-0.256927490234375,
0.2129877209663391,
-0.27781885862350464,
0.27872517704963684,
-0.1515141874551773,
-0.44872570037841797,
-0.28478503227233887,
-0.17486287653446198,
-0.1372944712638855,
-0.22568204998970032,
0.2676306664943695,
-0.2786779999732971,
0.07919487357139587,
0.060308925807476044,
0.11532816290855408,
0.2810531258583069,
-0.30828145146369934,
0.4000150263309479,
-0.14655748009681702,
-0.2746134102344513,
-0.5887206196784973,
-0.0012312103062868118,
-0.4473213255405426,
0.07784656435251236,
0.2033812403678894,
-0.1895955353975296,
-0.4071708917617798,
0.010083070024847984,
-0.2798158824443817,
-0.049866415560245514,
-0.01658529043197632,
-0.051956966519355774,
0.15740837156772614,
-0.02764991670846939,
-0.2775493264198303,
0.3261582553386688,
-0.08079253137111664,
0.1119641363620758,
-0.012450980953872204,
0.043721675872802734,
-0.17878539860248566,
0.1360493302345276,
-0.41493576765060425,
-0.27563488483428955,
-0.04657817631959915,
0.18764831125736237,
0.24553681910037994,
0.159116730093956,
0.11081811040639877,
0.49581652879714966,
-0.09896016120910645,
0.019426394253969193,
-0.13185983896255493,
0.2322998046875,
-0.14000149071216583,
-0.25378838181495667,
0.1410224884748459,
0.14778169989585876,
-0.10400733351707458,
-0.0014572367072105408,
0.0027143359184265137,
-0.006684307008981705,
-0.13981357216835022,
-0.3399149179458618,
0.06743592768907547,
0.2494531124830246,
-0.17038680613040924,
-0.09085935354232788,
0.05149959772825241,
0.021941237151622772,
0.13298283517360687,
0.2189229428768158,
-0.05860027298331261,
0.07187709212303162,
0.3512071967124939,
-0.18908238410949707,
0.3821304142475128,
-0.2982615828514099,
0.17685163021087646,
-0.10047969967126846,
0.037075918167829514,
0.45770779252052307,
-0.051853958517313004,
-0.005830630660057068,
-0.04743698239326477,
-0.029181916266679764,
0.023191917687654495,
0.19065651297569275,
0.3272818326950073,
0.11975584179162979,
-0.2978253960609436,
0.33432111144065857,
0.054596688598394394,
0.04057417809963226,
-0.06138572096824646,
0.28180673718452454,
0.17985934019088745,
-0.021822255104780197,
-0.08165805041790009,
-0.14258655905723572,
0.030879102647304535,
0.10000355541706085,
-0.18865355849266052,
-0.20833417773246765,
0.037570156157016754,
-0.11641928553581238,
-0.08895434439182281,
0.025618337094783783,
0.1456845998764038,
-0.5623359680175781,
-0.264572411775589,
-0.2910385727882385,
-0.09640441834926605,
0.026838378980755806,
0.23490579426288605,
0.27020058035850525,
0.09196885675191879,
0.2787652611732483,
0.30797243118286133,
0.5773759484291077,
-0.4541928768157959,
0.10105308145284653,
0.21699069440364838,
0.4372354745864868,
-0.3506588041782379,
-0.26707717776298523,
-0.4310550391674042,
-0.24279356002807617,
0.5924478769302368,
0.18378816545009613,
0.06316869705915451,
-0.17830656468868256,
0.4404776394367218,
0.21135704219341278,
-0.16711722314357758,
-0.009117815643548965,
-0.36763113737106323,
-0.28013312816619873,
0.15149211883544922,
-0.2255181074142456,
0.09987279027700424,
-0.23161724209785461,
-0.18478338420391083,
0.037795376032590866,
-0.029950061812996864,
-0.03869573771953583,
0.27093666791915894,
0.17193391919136047,
0.06625805795192719,
0.20849965512752533,
0.052479591220617294,
0.19531875848770142,
0.23767195641994476,
-0.1929771900177002,
0.47535115480422974,
-0.10046572983264923,
-0.5855262279510498,
-0.0582425519824028,
-0.1915857493877411,
0.6324011087417603,
0.050311699509620667,
0.1660875529050827,
-0.26001840829849243,
-0.25606265664100647,
0.02576659992337227,
-0.04163417965173721,
0.1995995044708252,
0.32176706194877625,
0.059987351298332214,
-0.24062995612621307,
-0.46866920590400696,
0.6235411763191223,
0.16899147629737854,
-0.23752614855766296,
0.07834472507238388,
-0.4431005120277405,
-0.3350728750228882,
0.22479236125946045,
0.2869834899902344,
0.8856855630874634,
0.12620249390602112,
0.3661869764328003,
0.33547139167785645,
-0.33730441331863403,
0.8705605268478394,
-0.18799832463264465,
0.012725075706839561,
-0.30580934882164,
0.11859963834285736,
0.07003745436668396,
0.08234798908233643,
-0.22791504859924316,
0.6563933491706848,
0.22386068105697632,
0.39905232191085815,
-0.09816764295101166,
-0.15518036484718323,
0.29141512513160706,
0.10504795610904694,
0.5124002695083618,
-0.0664760172367096,
-0.4091576635837555,
0.03502597659826279,
0.015216100960969925,
0.02872542478144169,
-0.33840882778167725,
0.09990677982568741,
0.0955638736486435,
-0.0726381242275238,
0.13506244122982025,
-0.08361116051673889,
0.31463873386383057,
0.08523017913103104,
0.20307885110378265,
0.04096430540084839,
-0.21028292179107666,
0.38416588306427,
0.644598126411438,
0.10137519240379333,
0.015899797901511192,
-0.07584214210510254,
0.10294131934642792,
0.19863294064998627,
-0.009977680630981922,
0.1561914086341858,
0.33243098855018616,
-0.03767948970198631,
-0.12385951727628708,
-0.06179230660200119,
-0.08712149411439896,
0.3406486511230469,
-0.45979535579681396,
-0.013242416083812714,
-0.25391823053359985,
0.0986299067735672,
0.19668343663215637,
0.12011991441249847,
0.11160178482532501,
-0.20673523843288422,
0.09159433841705322,
0.21020954847335815,
-0.2533968985080719,
-0.1335432231426239,
-0.08844783902168274,
-0.23591972887516022,
-0.202458456158638,
0.2868640422821045,
0.2457188367843628,
0.12320801615715027,
0.25027334690093994,
-0.11677959561347961,
0.0769655779004097,
-0.0672694742679596,
0.06561505049467087,
0.13563650846481323,
-0.4576827585697174,
0.10382136702537537,
0.09519742429256439,
-0.037990301847457886,
-0.08269139379262924,
0.3962376117706299,
0.1526855230331421,
0.046647295355796814,
0.12682826817035675,
-0.009704332798719406,
-0.34433645009994507,
-0.13379764556884766,
-0.14814604818820953,
0.21087832748889923,
0.08223157376050949,
0.20095595717430115,
0.05582953244447708,
-0.2324182093143463,
-0.23613925278186798,
-0.2393503487110138,
-0.30156850814819336,
0.45749711990356445,
0.0366840660572052,
0.08519518375396729,
-0.2945258915424347,
0.11025935411453247,
0.09990932792425156,
-0.1245962381362915,
0.12620402872562408,
-0.11135368794202805,
-0.09420329332351685,
0.16199035942554474,
0.10656832903623581,
-0.05922994017601013,
0.009596078656613827,
0.3082394003868103,
-0.221382737159729,
0.10640261322259903,
-0.1534726470708847,
0.08174274861812592,
0.2111968696117401,
0.7996432185173035,
-0.31702783703804016,
-0.009532243013381958,
0.0008500143885612488,
-0.08024954050779343,
-0.08868861198425293,
-0.025413475930690765,
0.15480603277683258,
0.01842918060719967,
0.29774466156959534,
-0.0485096350312233,
-0.31813982129096985,
-0.040938377380371094,
-0.44603049755096436,
-0.09159813076257706,
-0.032710425555706024,
-0.3658602237701416,
0.5111543536186218,
0.21651490032672882,
0.08758515864610672,
0.3626522719860077,
-0.2400745451450348,
-0.12910869717597961,
0.3561382591724396,
0.1767558455467224,
-0.14727020263671875,
-0.1037261113524437,
0.2747883200645447,
0.11898678541183472,
-0.22162143886089325,
0.271015465259552,
-0.011451929807662964,
-0.11412445455789566,
-0.014825567603111267,
-0.1753043532371521,
0.06868971884250641,
-0.39682096242904663,
0.00404247036203742,
0.30717143416404724,
-0.14141857624053955,
0.03070528246462345,
0.07072988152503967,
-0.06785410642623901,
-0.012755520641803741,
0.3585958480834961,
-0.0802130475640297,
0.3504016697406769,
0.10297641903162003,
0.06368283182382584,
-0.26067450642585754,
0.06313224136829376,
-0.2640177011489868,
0.3453329801559448,
-0.5192771553993225,
0.2897842526435852,
-0.020826399326324463,
0.1285165697336197,
-0.11851996928453445,
-0.16622620820999146,
0.22121325135231018,
0.11086517572402954,
-0.22672319412231445,
-0.24587993323802948,
-0.6276057958602905,
0.27414870262145996,
-0.14370253682136536,
0.21108074486255646,
-0.15007588267326355,
0.028395894914865494,
0.15617619454860687,
0.12123057246208191,
0.02913493663072586,
-0.45442259311676025,
-0.3073241114616394,
0.18856051564216614,
0.4231507182121277,
-0.1460370421409607,
-0.04799283295869827,
-0.07898011803627014,
-0.0787821114063263,
0.014900421723723412,
-0.16474799811840057,
0.24164241552352905,
0.03918546810746193,
0.3086332678794861,
-0.01574866473674774,
-0.3157173991203308,
-0.041315339505672455,
-0.19690483808517456,
0.000434044748544693,
0.37845081090927124,
0.06294839084148407,
0.17169000208377838,
-0.015363615937530994,
-0.04192464053630829,
0.6420861482620239,
-0.10407662391662598,
-0.013765964657068253,
-0.5475203394889832,
0.432220995426178,
-0.04435151815414429,
-0.474086731672287,
-0.26274552941322327,
0.00818885862827301,
-0.2035600244998932,
0.16647307574748993,
0.11107778549194336,
0.2830696702003479,
0.1222776398062706,
-0.18127380311489105,
0.03626665472984314,
-0.2098814696073532,
0.37904196977615356,
0.16068308055400848,
0.027196170762181282,
-0.15024907886981964,
-0.05264735966920853,
-0.37678396701812744,
-0.011114299297332764,
-0.27678385376930237,
-0.0702105462551117,
0.26218485832214355,
-0.04104050621390343,
-0.3554292619228363,
-0.03569173812866211,
-0.14049382507801056,
0.29571327567100525,
-0.0004416760057210922,
-0.016113735735416412,
-0.10044988244771957,
-0.01705966889858246,
-0.2887946367263794,
0.27466416358947754,
0.07900355011224747,
0.011628683656454086,
0.06865392625331879,
-0.24503746628761292,
-0.047418978065252304,
0.04848536103963852,
0.2022888958454132,
-0.041375547647476196,
0.3697509765625,
0.12136027216911316,
0.08222062885761261,
0.3480970859527588,
0.20352163910865784,
0.04093921184539795,
-0.13233442604541779,
0.08101420104503632,
-0.22308474779129028,
0.1789841651916504,
-0.19708284735679626,
0.20605523884296417,
-0.20888590812683105,
0.21609613299369812,
0.009711259044706821,
-0.107762411236763,
0.4602603316307068,
0.11122552305459976,
-0.5706872940063477,
0.3810386657714844,
-0.14816395938396454,
0.2599346339702606,
0.10891268402338028,
0.15226896107196808,
0.25661808252334595,
-0.3218110501766205,
-0.3548778295516968,
-0.28342074155807495,
0.34488970041275024,
-0.40804240107536316,
-0.12701188027858734,
-0.1688764989376068,
0.3636055290699005,
0.19030606746673584,
-0.07086148858070374,
-0.7023311853408813,
-0.1694466769695282,
0.5747875571250916,
-0.06463496387004852,
-0.5643623471260071,
0.0875900387763977,
0.24182426929473877,
-0.049872491508722305,
0.029372457414865494,
-0.087760791182518,
0.158482164144516,
0.12317381799221039,
0.3682660758495331,
-0.5045644640922546
] |
https://github.com/huggingface/datasets/issues/296 | snli -1 labels | Yes the original dataset is missing some labels maybe @sleepinyourhat , @gangeli can correct me if I'm wrong
For my personal opinion at least if you want your model to learn to predict no answer (-1) you can leave it their but otherwise you can discard them. | I'm trying to train a model on the SNLI dataset. Why does it have so many -1 labels?
```
import nlp
from collections import Counter
data = nlp.load_dataset('snli')['train']
print(Counter(data['label']))
Counter({0: 183416, 2: 183187, 1: 182764, -1: 785})
```
| 47 | snli -1 labels
I'm trying to train a model on the SNLI dataset. Why does it have so many -1 labels?
```
import nlp
from collections import Counter
data = nlp.load_dataset('snli')['train']
print(Counter(data['label']))
Counter({0: 183416, 2: 183187, 1: 182764, -1: 785})
```
Yes the original dataset is missing some labels maybe @sleepinyourhat , @gangeli can correct me if I'm wrong
For my personal opinion at least if you want your model to learn to predict no answer (-1) you can leave it their but otherwise you can discard them. | [
0.41206803917884827,
-0.2979552745819092,
-0.02257571741938591,
0.21812112629413605,
0.19071513414382935,
0.20889517664909363,
0.5165301561355591,
0.15536175668239594,
0.18814311921596527,
0.18189242482185364,
-0.1560332179069519,
0.3227590322494507,
-0.2433931976556778,
0.1784408688545227,
0.23894865810871124,
0.06068447604775429,
0.391695111989975,
0.32878273725509644,
0.3345842659473419,
-0.5028902292251587,
-0.29303550720214844,
0.06340008229017258,
-0.1734505295753479,
0.35592782497406006,
-0.4537765383720398,
0.2747114300727844,
-0.0779208317399025,
-0.3143008351325989,
-0.05796882510185242,
-0.6953609585762024,
0.23572216928005219,
-0.09171722829341888,
0.33436211943626404,
-0.18887391686439514,
-0.00011943822028115392,
-0.2986069917678833,
0.03208952397108078,
-0.0003682281821966171,
-0.4734802842140198,
-0.07678396999835968,
-0.1925249695777893,
-0.25016745924949646,
0.3062703013420105,
-0.15139368176460266,
-0.125865176320076,
-0.21643953025341034,
0.19403977692127228,
0.06852901726961136,
0.036586299538612366,
0.313518762588501,
0.11145368218421936,
-0.035970382392406464,
-0.4204099476337433,
0.31922122836112976,
0.35246872901916504,
-0.20564694702625275,
0.0593443363904953,
0.05031493678689003,
-0.02998795360326767,
-0.09586578607559204,
0.47622257471084595,
0.48959386348724365,
-0.14976392686367035,
-0.25771334767341614,
0.17881491780281067,
0.08833178877830505,
0.3778860867023468,
-0.4707129895687103,
0.0388764888048172,
0.18148326873779297,
0.22182834148406982,
-0.23974665999412537,
-0.26646196842193604,
-0.42410966753959656,
0.29334110021591187,
-0.33914005756378174,
-0.17739471793174744,
0.18820597231388092,
0.32201987504959106,
0.05771878734230995,
-0.1828203648328781,
-0.12959975004196167,
-0.08961865305900574,
0.13909581303596497,
0.1569351851940155,
0.7602537870407104,
0.14065563678741455,
0.23808416724205017,
0.2896896302700043,
0.24942940473556519,
-0.12650442123413086,
-0.13248297572135925,
0.007853761315345764,
0.42541801929473877,
-0.4600972533226013,
-0.23749995231628418,
-0.06902661174535751,
0.020621515810489655,
-0.060825165361166,
0.18920718133449554,
-0.07393263280391693,
-0.2107033133506775,
-0.06270215660333633,
-0.0006546974182128906,
0.17916707694530487,
0.0348447822034359,
0.4093092978000641,
0.3669911026954651,
-0.02775561809539795,
-0.23074665665626526,
0.2878877520561218,
-0.03337506949901581,
-0.31749188899993896,
0.05336529016494751,
0.3976799547672272,
-0.08202779293060303,
-0.18033476173877716,
-0.14355017244815826,
-0.057122401893138885,
0.011618279851973057,
-0.49934595823287964,
0.02747180499136448,
0.11463761329650879,
-0.17530232667922974,
0.1298205852508545,
0.30811530351638794,
-0.1446700245141983,
0.06426288187503815,
-0.16551509499549866,
-0.5688715577125549,
-0.14104649424552917,
0.06965219974517822,
-0.1543440967798233,
-0.08871633559465408,
0.1715063750743866,
-0.147416889667511,
0.22523479163646698,
0.03795810043811798,
-0.4195156693458557,
-0.10140511393547058,
0.3598073720932007,
-0.008805607445538044,
0.07239590585231781,
0.36550676822662354,
-0.2805551588535309,
0.5722595453262329,
-0.04701288416981697,
-0.18117327988147736,
-0.05675099045038223,
-0.013102315366268158,
-0.24386024475097656,
-0.23726524412631989,
0.03397432342171669,
0.17563936114311218,
-0.07299420237541199,
-0.1955127716064453,
0.02290230244398117,
0.08382254838943481,
0.001399107277393341,
-0.21583275496959686,
0.19083324074745178,
-0.3064802289009094,
-0.015968021005392075,
-0.05116329342126846,
0.12759926915168762,
0.048936083912849426,
-0.18825273215770721,
-0.15324831008911133,
-0.031197788193821907,
-0.2510908544063568,
0.3765101730823517,
0.3837752938270569,
-0.0085928775370121,
-0.009600713849067688,
0.029397791251540184,
0.05644875764846802,
0.48590660095214844,
-0.292583167552948,
-0.3611380159854889,
0.1270953267812729,
-0.132185161113739,
-0.3597743511199951,
-0.06241130083799362,
0.6516433954238892,
-0.10791163146495819,
0.038941171020269394,
-0.011343955993652344,
-0.23585911095142365,
0.0670657828450203,
-0.14160217344760895,
-0.38733112812042236,
0.014774700626730919,
0.46541810035705566,
0.272113561630249,
0.02656535431742668,
0.0315273180603981,
-0.5151117444038391,
0.09764563292264938,
0.33382657170295715,
-0.07229875028133392,
0.23750093579292297,
0.1364918053150177,
0.28282731771469116,
0.046555109322071075,
0.09209582954645157,
0.023843884468078613,
-0.33735740184783936,
0.14596131443977356,
-0.1382606029510498,
0.35342738032341003,
0.4647587537765503,
-0.008606897667050362,
-0.05769660696387291,
-0.15005695819854736,
-0.1464102417230606,
-0.17855572700500488,
0.05401558429002762,
0.1326829046010971,
0.09548485279083252,
-0.007224094122648239,
-0.19511307775974274,
0.08663766831159592,
-0.24948839843273163,
0.09132038056850433,
-0.3926181197166443,
0.01504734717309475,
0.11656337976455688,
0.10161016881465912,
-0.0797538161277771,
0.2640587389469147,
0.27952083945274353,
0.1297651082277298,
0.13587847352027893,
0.00036814436316490173,
-0.13167411088943481,
-0.2979816794395447,
0.12325272709131241,
0.37003111839294434,
0.14343316853046417,
-0.31188687682151794,
0.04999800771474838,
0.39835697412490845,
0.09203003346920013,
-0.23880469799041748,
-0.04840940237045288,
0.18895746767520905,
-0.13474804162979126,
0.24454689025878906,
-0.3007158041000366,
0.09920398890972137,
0.09710098803043365,
0.040335219353437424,
-0.3237753212451935,
-0.16824069619178772,
0.145758256316185,
-0.33252644538879395,
0.17933930456638336,
0.3762757182121277,
-0.3238815367221832,
0.019069522619247437,
0.1378280073404312,
-0.15288668870925903,
-0.04619896411895752,
0.12754905223846436,
-0.17763879895210266,
-0.10515062510967255,
0.284945547580719,
0.09558162093162537,
0.21187278628349304,
0.2463420033454895,
-0.09615810215473175,
0.023163683712482452,
-0.43630242347717285,
-0.19024558365345,
0.16169312596321106,
0.16754549741744995,
-0.17876383662223816,
-0.14619314670562744,
0.30875363945961,
0.1443948745727539,
-0.2746995985507965,
-0.4500886797904968,
-0.3060744106769562,
0.2510746717453003,
-0.2683722972869873,
0.16342642903327942,
-0.14129216969013214,
-0.5088819265365601,
-0.2976732552051544,
-0.24566243588924408,
-0.1944870799779892,
-0.22436167299747467,
0.26054084300994873,
-0.3658294975757599,
0.13404415547847748,
0.05149471014738083,
0.01582953706383705,
0.22252000868320465,
-0.23645830154418945,
0.35483720898628235,
-0.3228270709514618,
-0.26693981885910034,
-0.38622117042541504,
-0.04147670418024063,
-0.3748982846736908,
0.04533793032169342,
0.22277742624282837,
-0.19616980850696564,
-0.3911014199256897,
0.030558571219444275,
-0.15716645121574402,
-0.07258157432079315,
-0.12450473010540009,
-0.12544210255146027,
0.11592093110084534,
-0.013274915516376495,
-0.25718963146209717,
0.39051058888435364,
0.014367908239364624,
0.1317722648382187,
0.009425044059753418,
0.01726623624563217,
-0.23331771790981293,
0.1317773163318634,
-0.3792230486869812,
-0.25306180119514465,
-0.12661641836166382,
0.24661636352539062,
0.10637828707695007,
0.09226985275745392,
0.13429832458496094,
0.4017399847507477,
-0.14032140374183655,
0.04625291749835014,
-0.1153586283326149,
0.2229660004377365,
-0.1725611388683319,
-0.3250909149646759,
0.11195506900548935,
0.3089747428894043,
-0.108274444937706,
0.04924729838967323,
0.08642816543579102,
0.03893445432186127,
-0.31062978506088257,
-0.41285842657089233,
0.1307028830051422,
0.18526189029216766,
-0.15540331602096558,
-0.09664006531238556,
-0.021868949756026268,
-0.02844836562871933,
0.25818565487861633,
0.12514756619930267,
-0.06091052293777466,
0.015403833240270615,
0.2919614017009735,
-0.140369713306427,
0.5043458938598633,
-0.31882137060165405,
0.18676888942718506,
-0.22054006159305573,
-0.03582488000392914,
0.5008655190467834,
-0.07418246567249298,
0.05216210335493088,
-0.00287594273686409,
-0.07132253050804138,
-0.09262611716985703,
-0.005719543434679508,
0.31700071692466736,
0.2775491178035736,
-0.16017039120197296,
0.35164058208465576,
-0.046226080507040024,
0.04963868856430054,
-0.07318678498268127,
0.16020771861076355,
0.18347224593162537,
0.11610186100006104,
-0.03830333054065704,
-0.11002826690673828,
-0.05713833123445511,
-0.02476079948246479,
-0.22629651427268982,
-0.18000996112823486,
-0.08099177479743958,
-0.16558320820331573,
-0.05474703013896942,
0.07270915806293488,
0.1859615594148636,
-0.47481927275657654,
-0.3318730294704437,
-0.24252930283546448,
-0.1980278640985489,
0.04165223613381386,
0.18894478678703308,
0.16113150119781494,
0.23301467299461365,
0.3268890976905823,
0.44577956199645996,
0.46387892961502075,
-0.39880067110061646,
0.04172500595450401,
0.1874551773071289,
0.4624134302139282,
-0.34488445520401,
-0.13337388634681702,
-0.37702372670173645,
-0.24640733003616333,
0.5334617495536804,
0.2832221984863281,
0.0089382603764534,
-0.3169468641281128,
0.4711282551288605,
0.21872983872890472,
-0.2186739444732666,
-0.1684418022632599,
-0.4044203460216522,
-0.16216406226158142,
0.1867663860321045,
-0.15424641966819763,
-0.006006557494401932,
-0.11265256255865097,
-0.10678870230913162,
0.02666783705353737,
0.07246044278144836,
-0.017595436424016953,
0.18455323576927185,
0.10217578709125519,
-0.026325613260269165,
0.22139573097229004,
-0.06498146057128906,
0.20340043306350708,
0.24493423104286194,
-0.19374048709869385,
0.45181143283843994,
-0.04108482971787453,
-0.5115533471107483,
-0.0335896797478199,
-0.09071096777915955,
0.5892894864082336,
-0.03258472681045532,
0.16089391708374023,
-0.15522858500480652,
-0.18388092517852783,
0.05989902839064598,
-0.10856035351753235,
0.0505053885281086,
0.3003542125225067,
0.08905153721570969,
-0.3902949392795563,
-0.43636879324913025,
0.7228565812110901,
0.08156315982341766,
-0.17191003262996674,
0.005937125533819199,
-0.2486795037984848,
-0.28809496760368347,
0.2744545340538025,
0.3458244800567627,
0.9324254393577576,
-0.07126304507255554,
0.20726150274276733,
0.2928716540336609,
-0.36469846963882446,
0.8622066974639893,
-0.09751933813095093,
-0.08979514986276627,
-0.2266906052827835,
0.1135454997420311,
0.021936072036623955,
0.12763360142707825,
-0.32453370094299316,
0.6223574876785278,
0.2275000810623169,
0.4053782522678375,
-0.04184218496084213,
-0.20471546053886414,
0.2640421688556671,
0.0660804882645607,
0.6422037482261658,
-0.05330392345786095,
-0.4470773935317993,
0.03909504413604736,
-0.13350313901901245,
0.12823554873466492,
-0.27084431052207947,
0.07037961483001709,
0.10404673218727112,
0.009086858481168747,
0.047821834683418274,
-0.19624942541122437,
0.3035809397697449,
-0.0276351235806942,
0.21797378361225128,
0.07706433534622192,
-0.17336484789848328,
0.4282209873199463,
0.6543000340461731,
0.11192657053470612,
-0.02828202210366726,
-0.12024661898612976,
0.08823565393686295,
0.17866399884223938,
0.03306448459625244,
0.24907255172729492,
0.28873592615127563,
-0.023373635485768318,
-0.20415693521499634,
-0.06594031304121017,
-0.03007661923766136,
0.3103830814361572,
-0.4120938777923584,
-0.046102479100227356,
-0.17864371836185455,
0.16460935771465302,
0.1362210512161255,
0.0737089142203331,
0.15474537014961243,
-0.20458246767520905,
0.10592932999134064,
0.16576901078224182,
-0.13476580381393433,
-0.12267903238534927,
0.00020552799105644226,
-0.35133078694343567,
-0.23873235285282135,
0.2964491844177246,
0.24783170223236084,
0.1747174710035324,
0.3137505054473877,
-0.1312611848115921,
-0.0554099902510643,
-0.13257759809494019,
0.05156540125608444,
0.1521887481212616,
-0.4057532548904419,
0.033632293343544006,
0.27778559923171997,
0.041926950216293335,
-0.11350619792938232,
0.30116695165634155,
0.11364800482988358,
-0.019167400896549225,
0.1740303337574005,
-0.061190299689769745,
-0.387463241815567,
-0.11789242923259735,
-0.21032698452472687,
0.148132786154747,
0.09967302531003952,
0.12589366734027863,
0.10873071849346161,
-0.10698243975639343,
-0.22872069478034973,
-0.29032161831855774,
-0.38008081912994385,
0.3530937731266022,
0.04649634286761284,
0.12376512587070465,
-0.3487105667591095,
0.1256733536720276,
0.1340164989233017,
-0.25065046548843384,
0.12342771887779236,
-0.0979514941573143,
-0.08344785869121552,
0.16210950911045074,
0.14715330302715302,
-0.03781440109014511,
-0.09731916338205338,
0.25084686279296875,
-0.10848364233970642,
0.07880327105522156,
-0.127806156873703,
0.11973217874765396,
0.2841043770313263,
0.901369571685791,
-0.2116038054227829,
-0.12908387184143066,
-0.07343444973230362,
0.0020570605993270874,
-0.05500023066997528,
-0.11382637917995453,
0.1674351841211319,
0.030806422233581543,
0.3321896493434906,
-0.03691843897104263,
-0.40461719036102295,
-0.06743352860212326,
-0.41314196586608887,
-0.07541707903146744,
0.029155844822525978,
-0.3671228289604187,
0.5702590346336365,
0.3725833296775818,
0.07096967101097107,
0.21558010578155518,
-0.21567590534687042,
-0.13707788288593292,
0.33588704466819763,
0.15873216092586517,
-0.15461339056491852,
-0.07378880679607391,
0.3120909333229065,
0.23776377737522125,
-0.20222550630569458,
0.1658434122800827,
-0.11474189162254333,
-0.2452225238084793,
0.023795943707227707,
-0.13201752305030823,
0.09835686534643173,
-0.4627379775047302,
-0.0020067840814590454,
0.2875804603099823,
0.021135400980710983,
-0.03863627091050148,
0.16887186467647552,
-0.06032043322920799,
-0.0892140343785286,
0.3625583052635193,
-0.09795375913381577,
0.2860640287399292,
0.13898561894893646,
0.09119150042533875,
-0.26946914196014404,
0.21166576445102692,
-0.2799443006515503,
0.39018091559410095,
-0.6274670362472534,
0.09556697309017181,
-0.034285880625247955,
0.16060921549797058,
-0.06451858580112457,
-0.07606206089258194,
0.30540555715560913,
0.19589631259441376,
-0.20976918935775757,
-0.19104214012622833,
-0.7020378112792969,
0.314595490694046,
-0.10272837430238724,
0.1935330629348755,
-0.20565330982208252,
-0.04554510861635208,
0.19611620903015137,
0.15185722708702087,
0.009951934218406677,
-0.40938860177993774,
-0.33785077929496765,
0.30466967821121216,
0.4196784794330597,
-0.14120937883853912,
-0.03530994802713394,
-0.04909856617450714,
-0.042377471923828125,
0.03933478891849518,
-0.12895753979682922,
0.16130653023719788,
0.0981491431593895,
0.2882368266582489,
-0.014103402383625507,
-0.29826152324676514,
-0.07619079202413559,
-0.12932883203029633,
0.06363514065742493,
0.3996807038784027,
0.11835147440433502,
0.12230636179447174,
-0.012568127363920212,
-0.01911410503089428,
0.5593016147613525,
-0.1612657904624939,
0.04041494429111481,
-0.41874203085899353,
0.38361433148384094,
-0.055676162242889404,
-0.4298970401287079,
-0.3160557448863983,
-0.012160919606685638,
-0.16649551689624786,
0.18038035929203033,
0.04939815029501915,
0.2256152182817459,
0.19699984788894653,
-0.2624005675315857,
0.03643021360039711,
-0.212340846657753,
0.3262474238872528,
0.11400169134140015,
-0.02211906760931015,
-0.18661357462406158,
0.038924336433410645,
-0.26793625950813293,
-0.11434587091207504,
-0.1252758651971817,
-0.09900837391614914,
0.22586534917354584,
-0.0921938419342041,
-0.39237290620803833,
-0.053667038679122925,
-0.06158457696437836,
0.3732469975948334,
-0.03541997820138931,
0.06346346437931061,
-0.09168874472379684,
0.03901948779821396,
-0.27570515871047974,
0.2917638123035431,
0.02596660703420639,
0.14610221982002258,
0.07743410021066666,
-0.15517951548099518,
-0.04560096189379692,
0.08817600458860397,
0.2480967938899994,
-0.03570536896586418,
0.4333091378211975,
0.08866763114929199,
0.06692130118608475,
0.4264245629310608,
0.18095621466636658,
0.10415453463792801,
-0.10602658987045288,
0.07582511007785797,
-0.24263140559196472,
0.08497809618711472,
-0.09507107734680176,
0.23591238260269165,
-0.11516846716403961,
0.2538587749004364,
-0.004418696742504835,
-0.11711931228637695,
0.21433044970035553,
0.043527260422706604,
-0.5104151368141174,
0.28873300552368164,
0.06548809260129929,
0.16749995946884155,
0.015192837454378605,
-0.01620076596736908,
0.36706703901290894,
-0.18284326791763306,
-0.2723824083805084,
-0.27470800280570984,
0.3082423806190491,
-0.23241332173347473,
0.014117754995822906,
0.0368095226585865,
0.35902610421180725,
0.22868230938911438,
-0.08324842154979706,
-0.72268146276474,
-0.15639597177505493,
0.5330836176872253,
0.05190659314393997,
-0.5233258008956909,
0.07320155203342438,
0.20853540301322937,
0.11356443166732788,
0.022463414818048477,
-0.04363109916448593,
0.197523832321167,
0.2256671041250229,
0.38958922028541565,
-0.43115198612213135
] |
https://github.com/huggingface/datasets/issues/294 | Cannot load arxiv dataset on MacOS? | I couldn't replicate this issue on my macbook :/
Could you try to play with different encodings in `with open(path, encoding=...) as f` in scientific_papers.py:L108 ? | I am having trouble loading the `"arxiv"` config from the `"scientific_papers"` dataset on MacOS. When I try loading the dataset with:
```python
arxiv = nlp.load_dataset("scientific_papers", "arxiv")
```
I get the following stack trace:
```bash
JSONDecodeError Traceback (most recent call last)
<ipython-input-2-8e00c55d5a59> in <module>
----> 1 arxiv = nlp.load_dataset("scientific_papers", "arxiv")
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
662
663 generator = self._generate_examples(**split_generator.gen_kwargs)
--> 664 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
665 example = self.info.features.encode_example(record)
666 writer.write(example)
~/miniconda3/envs/t2t/lib/python3.7/site-packages/tqdm/std.py in __iter__(self)
1106 fp_write=getattr(self.fp, 'write', sys.stderr.write))
1107
-> 1108 for obj in iterable:
1109 yield obj
1110 # Update and possibly print the progressbar.
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/datasets/scientific_papers/107a416c0e1958cb846f5934b5aae292f7884a5b27e86af3f3ef1a093e058bbc/scientific_papers.py in _generate_examples(self, path)
114 # "section_names": list[str], list of section names.
115 # "sections": list[list[str]], list of sections (list of paragraphs)
--> 116 d = json.loads(line)
117 summary = "\n".join(d["abstract_text"])
118 # In original paper, <S> and </S> are not used in vocab during training
~/miniconda3/envs/t2t/lib/python3.7/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
346 parse_int is None and parse_float is None and
347 parse_constant is None and object_pairs_hook is None and not kw):
--> 348 return _default_decoder.decode(s)
349 if cls is None:
350 cls = JSONDecoder
~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in decode(self, s, _w)
335
336 """
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338 end = _w(s, end).end()
339 if end != len(s):
~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in raw_decode(self, s, idx)
351 """
352 try:
--> 353 obj, end = self.scan_once(s, idx)
354 except StopIteration as err:
355 raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Unterminated string starting at: line 1 column 46983 (char 46982)
163502 examples [02:10, 2710.68 examples/s]
```
I am not sure how to trace back to the specific JSON file that has the "Unterminated string". Also, I do not get this error on colab so I suspect it may be MacOS specific. Copy pasting the relevant lines from `transformers-cli env` below:
- Platform: Darwin-19.5.0-x86_64-i386-64bit
- Python version: 3.7.5
- PyTorch version (GPU?): 1.5.0 (False)
- Tensorflow version (GPU?): 2.2.0 (False)
Any ideas? | 26 | Cannot load arxiv dataset on MacOS?
I am having trouble loading the `"arxiv"` config from the `"scientific_papers"` dataset on MacOS. When I try loading the dataset with:
```python
arxiv = nlp.load_dataset("scientific_papers", "arxiv")
```
I get the following stack trace:
```bash
JSONDecodeError Traceback (most recent call last)
<ipython-input-2-8e00c55d5a59> in <module>
----> 1 arxiv = nlp.load_dataset("scientific_papers", "arxiv")
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
662
663 generator = self._generate_examples(**split_generator.gen_kwargs)
--> 664 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
665 example = self.info.features.encode_example(record)
666 writer.write(example)
~/miniconda3/envs/t2t/lib/python3.7/site-packages/tqdm/std.py in __iter__(self)
1106 fp_write=getattr(self.fp, 'write', sys.stderr.write))
1107
-> 1108 for obj in iterable:
1109 yield obj
1110 # Update and possibly print the progressbar.
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/datasets/scientific_papers/107a416c0e1958cb846f5934b5aae292f7884a5b27e86af3f3ef1a093e058bbc/scientific_papers.py in _generate_examples(self, path)
114 # "section_names": list[str], list of section names.
115 # "sections": list[list[str]], list of sections (list of paragraphs)
--> 116 d = json.loads(line)
117 summary = "\n".join(d["abstract_text"])
118 # In original paper, <S> and </S> are not used in vocab during training
~/miniconda3/envs/t2t/lib/python3.7/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
346 parse_int is None and parse_float is None and
347 parse_constant is None and object_pairs_hook is None and not kw):
--> 348 return _default_decoder.decode(s)
349 if cls is None:
350 cls = JSONDecoder
~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in decode(self, s, _w)
335
336 """
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338 end = _w(s, end).end()
339 if end != len(s):
~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in raw_decode(self, s, idx)
351 """
352 try:
--> 353 obj, end = self.scan_once(s, idx)
354 except StopIteration as err:
355 raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Unterminated string starting at: line 1 column 46983 (char 46982)
163502 examples [02:10, 2710.68 examples/s]
```
I am not sure how to trace back to the specific JSON file that has the "Unterminated string". Also, I do not get this error on colab so I suspect it may be MacOS specific. Copy pasting the relevant lines from `transformers-cli env` below:
- Platform: Darwin-19.5.0-x86_64-i386-64bit
- Python version: 3.7.5
- PyTorch version (GPU?): 1.5.0 (False)
- Tensorflow version (GPU?): 2.2.0 (False)
Any ideas?
I couldn't replicate this issue on my macbook :/
Could you try to play with different encodings in `with open(path, encoding=...) as f` in scientific_papers.py:L108 ? | [
-0.058140162378549576,
0.08776922523975372,
-0.04190976545214653,
0.1886684149503708,
0.21789740025997162,
0.04546990990638733,
-0.024187732487916946,
0.36161696910858154,
0.08156807720661163,
-0.18188254535198212,
-0.05052272230386734,
0.6910571455955505,
-0.19199123978614807,
-0.21391382813453674,
-0.10822953283786774,
0.009493570774793625,
-0.12760472297668457,
0.011453717947006226,
0.11468154937028885,
-0.1110842376947403,
-0.12306927889585495,
0.19933030009269714,
-0.1573241651058197,
-0.09930640459060669,
0.4090956449508667,
0.09583006799221039,
0.13648580014705658,
0.39574870467185974,
-0.002754379063844681,
-0.3556492030620575,
0.1349906474351883,
0.024096228182315826,
0.21715791523456573,
0.5375878810882568,
-0.00011070343316532671,
0.2718123197555542,
0.3134251832962036,
-0.09398873150348663,
-0.20430143177509308,
-0.5840529799461365,
-0.41151508688926697,
-0.3066376745700836,
0.13350582122802734,
-0.2136874943971634,
-0.036071598529815674,
-0.2607661485671997,
0.12421457469463348,
-0.15391744673252106,
0.3288324773311615,
0.3756519556045532,
0.20792174339294434,
0.0798492282629013,
0.38300925493240356,
0.11644192039966583,
-0.06707210093736649,
-0.02313508838415146,
0.002116965129971504,
0.464982807636261,
0.04228490591049194,
0.12632331252098083,
0.161223366856575,
0.14480997622013092,
-0.14896899461746216,
0.11279796063899994,
0.20924580097198486,
-0.029665634036064148,
-0.10750379413366318,
-0.14368760585784912,
0.037522364407777786,
0.13045741617679596,
0.272156685590744,
-0.09744871407747269,
-0.24030540883541107,
0.05640801787376404,
0.22180765867233276,
-0.10190550237894058,
0.2951816916465759,
0.43008244037628174,
-0.11249381303787231,
0.07615818083286285,
-0.3062995970249176,
-0.34975817799568176,
-0.403460830450058,
0.47365838289260864,
-0.021898802369832993,
-0.1115582287311554,
-0.20071883499622345,
0.20338764786720276,
0.15959446132183075,
-0.24159277975559235,
0.036895692348480225,
0.09394818544387817,
0.17075558006763458,
0.11694555729627609,
-0.4864808917045593,
0.24697643518447876,
0.07967343926429749,
-0.3753708600997925,
0.07538332045078278,
-0.15014663338661194,
-0.1037791296839714,
-0.08154430240392685,
-0.2829776704311371,
0.2728937566280365,
0.11201632022857666,
0.018603073433041573,
-0.15581825375556946,
-0.0018166243098676205,
0.05822935700416565,
-0.01258995570242405,
-0.16861078143119812,
0.0329580157995224,
-0.35958707332611084,
-0.1540408879518509,
-0.362738698720932,
-0.38012081384658813,
0.2619624137878418,
-0.3207474648952484,
0.06218370050191879,
-0.02503598853945732,
-0.02504132315516472,
0.016877353191375732,
0.023844163864850998,
0.22841310501098633,
-0.05426689237356186,
0.14219896495342255,
0.17162328958511353,
0.42962169647216797,
-0.3466947376728058,
0.17580199241638184,
-0.05097563937306404,
0.07547478377819061,
-0.10979970544576645,
-0.2968220114707947,
0.2044050544500351,
0.08469432592391968,
0.163596510887146,
-0.022583555430173874,
0.0854116752743721,
-0.20162875950336456,
0.1252436339855194,
0.13397623598575592,
-0.10179347544908524,
0.48088958859443665,
0.329988956451416,
0.05649875849485397,
0.2672579884529114,
0.03862270712852478,
-0.12501274049282074,
0.22153359651565552,
-0.46795397996902466,
-0.12276080250740051,
-0.2679320275783539,
0.16265469789505005,
-0.19974812865257263,
-0.13173453509807587,
-0.16054990887641907,
-0.14329290390014648,
0.13793276250362396,
0.23946914076805115,
-0.3634815514087677,
-0.2293667048215866,
0.00013485178351402283,
-0.33330079913139343,
0.24883615970611572,
0.03921028971672058,
-0.3133457601070404,
0.16130274534225464,
-0.10561685264110565,
0.14759673178195953,
0.28346362709999084,
0.3652400076389313,
-0.20566125214099884,
0.14260171353816986,
-0.025550076737999916,
-0.11357134580612183,
0.35899922251701355,
-0.32768186926841736,
-0.11957645416259766,
0.03648442029953003,
-0.13938570022583008,
0.07627056539058685,
-0.07434352487325668,
0.02311626635491848,
-0.18387870490550995,
0.25792086124420166,
0.20406238734722137,
0.27111923694610596,
0.08263696730136871,
0.030417541041970253,
-0.1805008202791214,
-0.20094433426856995,
0.4589868187904358,
0.3523835837841034,
-0.08574238419532776,
0.029467005282640457,
-0.07057163864374161,
-0.07236634939908981,
0.11355108767747879,
-0.0991176962852478,
-0.3065352141857147,
0.2054903358221054,
0.012770432978868484,
0.05979067459702492,
0.06962494552135468,
0.1258382797241211,
0.1664608120918274,
0.09673302620649338,
0.23967698216438293,
0.29656901955604553,
-0.21590737998485565,
0.3827722668647766,
-0.38724076747894287,
0.09267225861549377,
-0.03103930875658989,
0.07112985104322433,
0.06565486639738083,
0.043967802077531815,
-0.09347762167453766,
0.19505169987678528,
-0.1820218563079834,
0.21836704015731812,
-0.3807089924812317,
-0.03710094839334488,
-0.8843934535980225,
0.056073904037475586,
-0.11706375330686569,
0.11073469370603561,
0.21009936928749084,
0.14025594294071198,
-0.11917867511510849,
-0.24003368616104126,
-0.11652068048715591,
0.21397829055786133,
0.2940782308578491,
-0.06993123888969421,
0.2279687225818634,
0.042080506682395935,
0.05837436765432358,
-0.32013460993766785,
0.2476847618818283,
0.017177587375044823,
0.045467671006917953,
0.09804680198431015,
-0.24006256461143494,
0.39546650648117065,
0.08486483991146088,
0.1853235960006714,
0.1478039026260376,
0.13192667067050934,
0.47584280371665955,
-0.006015695631504059,
-0.02758432924747467,
-0.008976161479949951,
0.45162972807884216,
0.18057763576507568,
-0.3402884602546692,
-0.1420489102602005,
-0.18555884063243866,
-0.0007559359073638916,
0.07749947905540466,
0.15927250683307648,
-0.08404695242643356,
0.3020506203174591,
-0.10745387524366379,
0.06075643002986908,
-0.11801278591156006,
0.02912243828177452,
0.3401012122631073,
0.17099978029727936,
-0.31749454140663147,
0.037521399557590485,
-0.20741137862205505,
-0.064069963991642,
0.1576644629240036,
0.004249438643455505,
0.0024908899795264006,
-0.15622419118881226,
0.1302236020565033,
0.1190570667386055,
-0.2286059856414795,
-0.2915290892124176,
-0.014924711547791958,
0.4036519527435303,
-0.33745595812797546,
0.062464043498039246,
-0.35343754291534424,
-0.2601827383041382,
-0.05427157133817673,
-0.16310416162014008,
-0.16000381112098694,
-0.20465070009231567,
-0.1103503406047821,
0.1549523025751114,
0.19716686010360718,
0.15693843364715576,
-0.34042343497276306,
-0.06874425709247589,
0.2280442863702774,
-0.21275824308395386,
0.21781909465789795,
-0.3201698362827301,
-0.09057386964559555,
0.09150458872318268,
0.2567334473133087,
0.11535625159740448,
0.21687786281108856,
-0.07115216553211212,
-0.19916969537734985,
0.19511544704437256,
-0.31111523509025574,
-0.06906350702047348,
-0.25292837619781494,
0.1622445434331894,
-0.01277303695678711,
0.28293919563293457,
0.06636900454759598,
-0.2645324170589447,
0.21239332854747772,
0.03525155782699585,
-0.15870460867881775,
0.3022594451904297,
0.05697024241089821,
-0.4054758548736572,
-0.12616783380508423,
-0.6859311461448669,
-0.24029909074306488,
-0.29652348160743713,
0.020734965801239014,
0.26326310634613037,
0.17071035504341125,
0.4518844783306122,
0.3053716719150543,
0.021538104861974716,
0.08881966024637222,
0.06292887777090073,
-0.1581660807132721,
-0.0866922065615654,
0.22770357131958008,
-0.15107165277004242,
-0.40117549896240234,
0.17722272872924805,
0.20705322921276093,
0.563931941986084,
0.1303536295890808,
-0.43858790397644043,
0.15774297714233398,
-0.10611404478549957,
-0.07551945745944977,
-0.21828600764274597,
0.10153845697641373,
0.06630215793848038,
-0.21097804605960846,
-0.025753311812877655,
0.007954489439725876,
-0.1914931982755661,
-0.030136622488498688,
0.14666877686977386,
0.26305851340293884,
0.24075531959533691,
0.42789730429649353,
-0.26816847920417786,
0.5905353426933289,
0.014262065291404724,
-0.16091936826705933,
0.0694768950343132,
-0.1589575856924057,
0.4026775658130646,
-0.0031172409653663635,
-0.5069509148597717,
0.21585281193256378,
0.284262478351593,
0.017193235456943512,
0.1744772046804428,
0.03403192013502121,
-0.25515562295913696,
-0.16617003083229065,
0.23797139525413513,
-0.38001590967178345,
-0.29085496068000793,
0.1960817575454712,
-0.26110178232192993,
0.0789467841386795,
0.04485530033707619,
-0.05900614336133003,
-0.08908896148204803,
-0.13881024718284607,
-0.18871811032295227,
0.435840368270874,
0.06431818008422852,
0.031500011682510376,
-0.4632999897003174,
0.050569165498018265,
-0.34297287464141846,
0.20747345685958862,
-0.15875421464443207,
0.6160392761230469,
-0.12195812165737152,
-0.09990619122982025,
0.11056801676750183,
-0.01402687095105648,
0.3819845914840698,
0.08129236102104187,
0.16612452268600464,
0.3375772535800934,
-0.12394227832555771,
-0.4966862201690674,
-0.04140731319785118,
0.0024598613381385803,
0.4472515285015106,
0.4753023684024811,
0.15871205925941467,
0.07489878684282303,
-0.11193147301673889,
-0.18555210530757904,
0.10593236982822418,
-0.09404438734054565,
-0.28173163533210754,
-0.30555158853530884,
-0.31867924332618713,
-0.2693052887916565,
-0.4744182825088501,
-0.17208364605903625,
0.23046810925006866,
-0.09995134174823761,
0.16761095821857452,
-0.12123709917068481,
-0.21667343378067017,
0.14969661831855774,
0.38612139225006104,
0.03988486900925636,
-0.08788269013166428,
0.15042027831077576,
0.21564118564128876,
-0.11630478501319885,
0.13654914498329163,
0.36144888401031494,
0.10973691940307617,
-0.7085858583450317,
-0.046175286173820496,
-0.06683290749788284,
0.15759873390197754,
-0.26194149255752563,
-0.1674870401620865,
-0.17460358142852783,
0.07693833112716675,
-0.13607345521450043,
0.002871680073440075,
0.16608913242816925,
0.20372125506401062,
0.04542733356356621,
-0.20446690917015076,
-0.29293093085289,
0.26326242089271545,
-0.10856588184833527,
0.03423215448856354,
0.1920117884874344,
-0.21351422369480133,
-0.1601366549730301,
0.37819015979766846,
-0.021023958921432495,
0.559001088142395,
-0.3097178339958191,
0.14125706255435944,
0.27619457244873047,
0.013916708528995514,
0.669948160648346,
-0.11156327277421951,
0.21044348180294037,
-0.3174932599067688,
-0.014191017486155033,
-0.0565616711974144,
-0.2007322609424591,
0.026437826454639435,
0.11239317059516907,
-0.12164807319641113,
0.18026567995548248,
-0.024236399680376053,
-0.2814275026321411,
0.1291990578174591,
0.23119479417800903,
0.50229412317276,
-0.24463209509849548,
-0.719225287437439,
0.20236900448799133,
-0.2177516371011734,
0.05226746201515198,
0.051772721111774445,
-0.13526543974876404,
-0.22485552728176117,
0.04897438734769821,
-0.31240350008010864,
0.3894600570201874,
0.09013550728559494,
0.3495636582374573,
0.308227002620697,
-0.04682788997888565,
0.05550876632332802,
0.2309151291847229,
0.17503732442855835,
0.22789549827575684,
-0.1704109162092209,
0.2341105043888092,
-0.00879804790019989,
-0.259112149477005,
0.24826090037822723,
0.10018882155418396,
0.18867500126361847,
-0.16275110840797424,
-0.20014849305152893,
0.13314634561538696,
0.08533201366662979,
-0.5239752531051636,
0.1386447548866272,
0.17833241820335388,
-0.07202580571174622,
0.09921777248382568,
-0.28296148777008057,
0.10971985012292862,
0.10711844265460968,
0.20754751563072205,
0.11732307076454163,
0.36708587408065796,
0.07368161529302597,
0.3407837748527527,
0.007956031709909439,
-0.4690265357494354,
0.14298680424690247,
0.2529993951320648,
0.17923638224601746,
0.009054575115442276,
0.3015250861644745,
0.14253173768520355,
0.04716581851243973,
-0.10458744317293167,
-0.17465463280677795,
-0.4619153141975403,
0.010912559926509857,
-0.12246853858232498,
0.3127562999725342,
0.222942516207695,
0.15213680267333984,
-0.18185070157051086,
0.04104101285338402,
-0.22364076972007751,
0.09975971281528473,
-0.8598709106445312,
-0.13540996611118317,
-0.05482803285121918,
-0.4878779947757721,
-0.0006446279585361481,
0.2166992425918579,
-0.0469978041946888,
-0.08471456170082092,
-0.19135071337223053,
-0.24978755414485931,
0.01976649835705757,
-0.20321814715862274,
-0.10998722910881042,
0.2819562554359436,
0.06199829652905464,
0.12835046648979187,
-0.22953084111213684,
0.1299590766429901,
-0.40338611602783203,
-0.10847536474466324,
-0.19876617193222046,
-0.002802785485982895,
0.12854592502117157,
0.052988193929195404,
-0.2573782801628113,
-0.2084370106458664,
-0.24599552154541016,
-0.32995346188545227,
0.10250058025121689,
-0.04098738729953766,
-0.020156217738986015,
-0.15408803522586823,
0.058175232261419296,
-0.5069238543510437,
0.016590163111686707,
0.11863686144351959,
0.3586597740650177,
-0.1164737194776535,
0.24674713611602783,
0.2674190402030945,
0.2644313871860504,
-0.17530661821365356,
-0.09090708196163177,
-0.5406354665756226,
-0.06691064685583115,
-0.2757556438446045,
0.16379877924919128,
0.370296835899353,
-0.10896915197372437,
0.13248416781425476,
0.08164210617542267,
0.053501978516578674,
0.5262339115142822,
-0.17825771868228912,
-0.046150367707014084,
0.1299269050359726,
0.148840069770813,
-0.28394603729248047,
-0.13353028893470764,
0.32980120182037354,
0.30998194217681885,
-0.21431134641170502,
0.20181146264076233,
-0.022296268492937088,
0.02268773317337036,
0.12968388199806213,
0.03032229095697403,
0.5294119119644165,
-0.24932973086833954,
0.08841267228126526,
-0.15197938680648804,
-0.24768224358558655,
-0.09166663885116577,
-0.2119930535554886,
0.24993117153644562,
0.24116617441177368,
0.37285488843917847,
-0.00141182541847229,
0.10809320956468582,
0.19088104367256165,
-0.12381608784198761,
-0.013418853282928467,
-0.35449373722076416,
-0.46468961238861084,
0.16359740495681763,
0.023323945701122284,
0.39504140615463257,
0.007964618504047394,
0.09288659691810608,
0.05199505016207695,
-0.24559511244297028,
-0.0657278522849083,
0.23702582716941833,
0.11939354985952377,
-0.0006316294893622398,
-0.2060878425836563,
0.04167844355106354,
-0.03172694519162178,
-0.18166403472423553,
0.037583254277706146,
-0.11872902512550354,
0.08652359992265701,
0.34904372692108154,
-0.303585946559906,
-0.7911367416381836,
0.22859549522399902,
0.06625996530056,
-0.10320676118135452,
0.07204507291316986,
0.39186999201774597,
0.023687250912189484,
0.04352154582738876,
0.3245866000652313,
0.10883104801177979,
0.5102598667144775,
0.4114188551902771,
-0.04923359677195549,
-0.045773137360811234,
0.0242726132273674,
0.11899881064891815,
-0.08506082743406296,
0.32234475016593933,
0.033200085163116455,
0.3221100866794586,
0.27460652589797974,
0.1198490560054779,
0.05741517245769501,
0.28899240493774414,
0.16253742575645447,
0.0712471604347229,
0.022603673860430717,
0.06667251884937286,
0.10231539607048035,
0.23945078253746033,
-0.2568708658218384,
0.07248678803443909,
-0.33614400029182434,
-0.11034975945949554,
0.2590259611606598,
0.2074865996837616,
0.11409545689821243,
0.03364311531186104,
0.05824991315603256,
-0.13191495835781097,
0.7058609127998352,
0.5107817649841309,
0.37177348136901855,
-0.14329229295253754,
-0.06041378900408745,
-0.5617280006408691,
0.1689249724149704,
-0.22681096196174622,
-0.20932695269584656,
0.10783424228429794,
0.1282416731119156,
0.435730904340744,
0.19244585931301117,
-0.027367740869522095,
-0.17254705727100372,
-0.40054774284362793,
-0.02374415099620819,
-0.34282344579696655,
-0.21782703697681427,
0.007897306233644485,
-0.11197392642498016,
-0.1383005976676941,
-0.01803794503211975,
0.08996358513832092,
-0.18239137530326843,
-0.0019595958292484283,
0.02701948583126068,
0.15782657265663147,
-0.03326696157455444,
0.09149450063705444,
0.4042007625102997,
0.015184413641691208,
0.42904990911483765,
-0.027054347097873688,
-0.2645834982395172,
-0.4509987235069275,
-0.19910070300102234,
-0.33066344261169434,
0.3517010509967804,
0.23522013425827026,
0.17624352872371674,
-0.16947977244853973,
0.18722282350063324,
-0.1685282289981842,
0.483816534280777,
-0.05659083276987076,
-0.5422751903533936,
0.12551812827587128,
0.07394278794527054,
0.09575536102056503,
0.14441229403018951,
-0.010646512731909752,
0.0535351037979126,
0.004479587078094482,
0.5422229766845703,
-0.24582740664482117,
-0.13782145082950592,
0.2703121602535248,
-0.2595653533935547,
-0.35438835620880127,
0.26458653807640076,
-0.13422952592372894,
-0.36559292674064636,
0.30934056639671326,
-0.5371618866920471,
0.16548648476600647,
0.34196925163269043,
-0.10925120860338211,
-0.17104490101337433,
-0.050433408468961716,
0.10095047950744629,
-0.20603005588054657,
-0.08585011214017868,
0.569959282875061,
-0.11934270709753036,
-0.2334059178829193,
-0.046961572021245956,
0.009048141539096832
] |
https://github.com/huggingface/datasets/issues/294 | Cannot load arxiv dataset on MacOS? | I was able to track down the file causing the problem by adding the following to `scientific_papers.py` (starting at line 116):
```python
from json import JSONDecodeError
try:
d = json.loads(line)
summary = "\n".join(d["abstract_text"])
except JSONDecodeError:
print(path, line)
```
For me it was at: `/Users/johngiorgi/.cache/huggingface/datasets/f87fd498c5003cbe253a2af422caa1e58f87a4fd74cb3e67350c635c8903b259/arxiv-dataset/train.txt` with `"article_id": "1407.3051"`.
Not really 100% sure at the moment, but it looks like this specific substring from `"article_text"` may be causing the problem?
```
"after the missing - mass scale adjustment , the validity of the corrections was tested in the @xmath85 productions at 1.69 gev/@xmath1 . in fig . [", "fig : calibrations ] ( a ) , we show the missing - mass spectrum in the @xmath86 region in the @xmath87 reaction at 1.69 gev/@xmath1 . a fitting result with a lorentzian function for the @xmath86 ( dashed line ) and the three - body phas
```
perhaps because it appears to be truncated. I (think) I can recreate the problem by doing the following:
```python
import json
# A minimal example of the json file that causes the error
invalid_json = '{"article_id": "1407.3051", "article_text": ["the missing - mass resolution was obtained to be 2.8 @xmath3 0.1 mev/@xmath4 ( fwhm ) , which corresponds to the missing - mass resolution of 3.2 @xmath3 0.2 mev/@xmath4 ( fwhm ) at the @xmath6 cusp region in the @xmath0 reaction .", "this resolution is at least by a factor of 2 better than the previous measurement with the same reaction ( 3.2@xmath595.5 mev/@xmath4 in @xmath84 ) @xcite .", "after the missing - mass scale adjustment , the validity of the corrections was tested in the @xmath85 productions at 1.69 gev/@xmath1 . in fig . [", "fig : calibrations ] ( a ) , we show the missing - mass spectrum in the @xmath86 region in the @xmath87 reaction at 1.69 gev/@xmath1 . a fitting result with a lorentzian function for the @xmath86 ( dashed line ) and the three - body phas'
# The line of code from `scientific_papers.py` which appears to cause the error
json.loads(invalid_json)
```
This is as far as I get before I am stumped. | I am having trouble loading the `"arxiv"` config from the `"scientific_papers"` dataset on MacOS. When I try loading the dataset with:
```python
arxiv = nlp.load_dataset("scientific_papers", "arxiv")
```
I get the following stack trace:
```bash
JSONDecodeError Traceback (most recent call last)
<ipython-input-2-8e00c55d5a59> in <module>
----> 1 arxiv = nlp.load_dataset("scientific_papers", "arxiv")
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
662
663 generator = self._generate_examples(**split_generator.gen_kwargs)
--> 664 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
665 example = self.info.features.encode_example(record)
666 writer.write(example)
~/miniconda3/envs/t2t/lib/python3.7/site-packages/tqdm/std.py in __iter__(self)
1106 fp_write=getattr(self.fp, 'write', sys.stderr.write))
1107
-> 1108 for obj in iterable:
1109 yield obj
1110 # Update and possibly print the progressbar.
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/datasets/scientific_papers/107a416c0e1958cb846f5934b5aae292f7884a5b27e86af3f3ef1a093e058bbc/scientific_papers.py in _generate_examples(self, path)
114 # "section_names": list[str], list of section names.
115 # "sections": list[list[str]], list of sections (list of paragraphs)
--> 116 d = json.loads(line)
117 summary = "\n".join(d["abstract_text"])
118 # In original paper, <S> and </S> are not used in vocab during training
~/miniconda3/envs/t2t/lib/python3.7/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
346 parse_int is None and parse_float is None and
347 parse_constant is None and object_pairs_hook is None and not kw):
--> 348 return _default_decoder.decode(s)
349 if cls is None:
350 cls = JSONDecoder
~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in decode(self, s, _w)
335
336 """
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338 end = _w(s, end).end()
339 if end != len(s):
~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in raw_decode(self, s, idx)
351 """
352 try:
--> 353 obj, end = self.scan_once(s, idx)
354 except StopIteration as err:
355 raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Unterminated string starting at: line 1 column 46983 (char 46982)
163502 examples [02:10, 2710.68 examples/s]
```
I am not sure how to trace back to the specific JSON file that has the "Unterminated string". Also, I do not get this error on colab so I suspect it may be MacOS specific. Copy pasting the relevant lines from `transformers-cli env` below:
- Platform: Darwin-19.5.0-x86_64-i386-64bit
- Python version: 3.7.5
- PyTorch version (GPU?): 1.5.0 (False)
- Tensorflow version (GPU?): 2.2.0 (False)
Any ideas? | 352 | Cannot load arxiv dataset on MacOS?
I am having trouble loading the `"arxiv"` config from the `"scientific_papers"` dataset on MacOS. When I try loading the dataset with:
```python
arxiv = nlp.load_dataset("scientific_papers", "arxiv")
```
I get the following stack trace:
```bash
JSONDecodeError Traceback (most recent call last)
<ipython-input-2-8e00c55d5a59> in <module>
----> 1 arxiv = nlp.load_dataset("scientific_papers", "arxiv")
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
662
663 generator = self._generate_examples(**split_generator.gen_kwargs)
--> 664 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
665 example = self.info.features.encode_example(record)
666 writer.write(example)
~/miniconda3/envs/t2t/lib/python3.7/site-packages/tqdm/std.py in __iter__(self)
1106 fp_write=getattr(self.fp, 'write', sys.stderr.write))
1107
-> 1108 for obj in iterable:
1109 yield obj
1110 # Update and possibly print the progressbar.
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/datasets/scientific_papers/107a416c0e1958cb846f5934b5aae292f7884a5b27e86af3f3ef1a093e058bbc/scientific_papers.py in _generate_examples(self, path)
114 # "section_names": list[str], list of section names.
115 # "sections": list[list[str]], list of sections (list of paragraphs)
--> 116 d = json.loads(line)
117 summary = "\n".join(d["abstract_text"])
118 # In original paper, <S> and </S> are not used in vocab during training
~/miniconda3/envs/t2t/lib/python3.7/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
346 parse_int is None and parse_float is None and
347 parse_constant is None and object_pairs_hook is None and not kw):
--> 348 return _default_decoder.decode(s)
349 if cls is None:
350 cls = JSONDecoder
~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in decode(self, s, _w)
335
336 """
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338 end = _w(s, end).end()
339 if end != len(s):
~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in raw_decode(self, s, idx)
351 """
352 try:
--> 353 obj, end = self.scan_once(s, idx)
354 except StopIteration as err:
355 raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Unterminated string starting at: line 1 column 46983 (char 46982)
163502 examples [02:10, 2710.68 examples/s]
```
I am not sure how to trace back to the specific JSON file that has the "Unterminated string". Also, I do not get this error on colab so I suspect it may be MacOS specific. Copy pasting the relevant lines from `transformers-cli env` below:
- Platform: Darwin-19.5.0-x86_64-i386-64bit
- Python version: 3.7.5
- PyTorch version (GPU?): 1.5.0 (False)
- Tensorflow version (GPU?): 2.2.0 (False)
Any ideas?
I was able to track down the file causing the problem by adding the following to `scientific_papers.py` (starting at line 116):
```python
from json import JSONDecodeError
try:
d = json.loads(line)
summary = "\n".join(d["abstract_text"])
except JSONDecodeError:
print(path, line)
```
For me it was at: `/Users/johngiorgi/.cache/huggingface/datasets/f87fd498c5003cbe253a2af422caa1e58f87a4fd74cb3e67350c635c8903b259/arxiv-dataset/train.txt` with `"article_id": "1407.3051"`.
Not really 100% sure at the moment, but it looks like this specific substring from `"article_text"` may be causing the problem?
```
"after the missing - mass scale adjustment , the validity of the corrections was tested in the @xmath85 productions at 1.69 gev/@xmath1 . in fig . [", "fig : calibrations ] ( a ) , we show the missing - mass spectrum in the @xmath86 region in the @xmath87 reaction at 1.69 gev/@xmath1 . a fitting result with a lorentzian function for the @xmath86 ( dashed line ) and the three - body phas
```
perhaps because it appears to be truncated. I (think) I can recreate the problem by doing the following:
```python
import json
# A minimal example of the json file that causes the error
invalid_json = '{"article_id": "1407.3051", "article_text": ["the missing - mass resolution was obtained to be 2.8 @xmath3 0.1 mev/@xmath4 ( fwhm ) , which corresponds to the missing - mass resolution of 3.2 @xmath3 0.2 mev/@xmath4 ( fwhm ) at the @xmath6 cusp region in the @xmath0 reaction .", "this resolution is at least by a factor of 2 better than the previous measurement with the same reaction ( 3.2@xmath595.5 mev/@xmath4 in @xmath84 ) @xcite .", "after the missing - mass scale adjustment , the validity of the corrections was tested in the @xmath85 productions at 1.69 gev/@xmath1 . in fig . [", "fig : calibrations ] ( a ) , we show the missing - mass spectrum in the @xmath86 region in the @xmath87 reaction at 1.69 gev/@xmath1 . a fitting result with a lorentzian function for the @xmath86 ( dashed line ) and the three - body phas'
# The line of code from `scientific_papers.py` which appears to cause the error
json.loads(invalid_json)
```
This is as far as I get before I am stumped. | [
-0.058140162378549576,
0.08776922523975372,
-0.04190976545214653,
0.1886684149503708,
0.21789740025997162,
0.04546990990638733,
-0.024187732487916946,
0.36161696910858154,
0.08156807720661163,
-0.18188254535198212,
-0.05052272230386734,
0.6910571455955505,
-0.19199123978614807,
-0.21391382813453674,
-0.10822953283786774,
0.009493570774793625,
-0.12760472297668457,
0.011453717947006226,
0.11468154937028885,
-0.1110842376947403,
-0.12306927889585495,
0.19933030009269714,
-0.1573241651058197,
-0.09930640459060669,
0.4090956449508667,
0.09583006799221039,
0.13648580014705658,
0.39574870467185974,
-0.002754379063844681,
-0.3556492030620575,
0.1349906474351883,
0.024096228182315826,
0.21715791523456573,
0.5375878810882568,
-0.00011070343316532671,
0.2718123197555542,
0.3134251832962036,
-0.09398873150348663,
-0.20430143177509308,
-0.5840529799461365,
-0.41151508688926697,
-0.3066376745700836,
0.13350582122802734,
-0.2136874943971634,
-0.036071598529815674,
-0.2607661485671997,
0.12421457469463348,
-0.15391744673252106,
0.3288324773311615,
0.3756519556045532,
0.20792174339294434,
0.0798492282629013,
0.38300925493240356,
0.11644192039966583,
-0.06707210093736649,
-0.02313508838415146,
0.002116965129971504,
0.464982807636261,
0.04228490591049194,
0.12632331252098083,
0.161223366856575,
0.14480997622013092,
-0.14896899461746216,
0.11279796063899994,
0.20924580097198486,
-0.029665634036064148,
-0.10750379413366318,
-0.14368760585784912,
0.037522364407777786,
0.13045741617679596,
0.272156685590744,
-0.09744871407747269,
-0.24030540883541107,
0.05640801787376404,
0.22180765867233276,
-0.10190550237894058,
0.2951816916465759,
0.43008244037628174,
-0.11249381303787231,
0.07615818083286285,
-0.3062995970249176,
-0.34975817799568176,
-0.403460830450058,
0.47365838289260864,
-0.021898802369832993,
-0.1115582287311554,
-0.20071883499622345,
0.20338764786720276,
0.15959446132183075,
-0.24159277975559235,
0.036895692348480225,
0.09394818544387817,
0.17075558006763458,
0.11694555729627609,
-0.4864808917045593,
0.24697643518447876,
0.07967343926429749,
-0.3753708600997925,
0.07538332045078278,
-0.15014663338661194,
-0.1037791296839714,
-0.08154430240392685,
-0.2829776704311371,
0.2728937566280365,
0.11201632022857666,
0.018603073433041573,
-0.15581825375556946,
-0.0018166243098676205,
0.05822935700416565,
-0.01258995570242405,
-0.16861078143119812,
0.0329580157995224,
-0.35958707332611084,
-0.1540408879518509,
-0.362738698720932,
-0.38012081384658813,
0.2619624137878418,
-0.3207474648952484,
0.06218370050191879,
-0.02503598853945732,
-0.02504132315516472,
0.016877353191375732,
0.023844163864850998,
0.22841310501098633,
-0.05426689237356186,
0.14219896495342255,
0.17162328958511353,
0.42962169647216797,
-0.3466947376728058,
0.17580199241638184,
-0.05097563937306404,
0.07547478377819061,
-0.10979970544576645,
-0.2968220114707947,
0.2044050544500351,
0.08469432592391968,
0.163596510887146,
-0.022583555430173874,
0.0854116752743721,
-0.20162875950336456,
0.1252436339855194,
0.13397623598575592,
-0.10179347544908524,
0.48088958859443665,
0.329988956451416,
0.05649875849485397,
0.2672579884529114,
0.03862270712852478,
-0.12501274049282074,
0.22153359651565552,
-0.46795397996902466,
-0.12276080250740051,
-0.2679320275783539,
0.16265469789505005,
-0.19974812865257263,
-0.13173453509807587,
-0.16054990887641907,
-0.14329290390014648,
0.13793276250362396,
0.23946914076805115,
-0.3634815514087677,
-0.2293667048215866,
0.00013485178351402283,
-0.33330079913139343,
0.24883615970611572,
0.03921028971672058,
-0.3133457601070404,
0.16130274534225464,
-0.10561685264110565,
0.14759673178195953,
0.28346362709999084,
0.3652400076389313,
-0.20566125214099884,
0.14260171353816986,
-0.025550076737999916,
-0.11357134580612183,
0.35899922251701355,
-0.32768186926841736,
-0.11957645416259766,
0.03648442029953003,
-0.13938570022583008,
0.07627056539058685,
-0.07434352487325668,
0.02311626635491848,
-0.18387870490550995,
0.25792086124420166,
0.20406238734722137,
0.27111923694610596,
0.08263696730136871,
0.030417541041970253,
-0.1805008202791214,
-0.20094433426856995,
0.4589868187904358,
0.3523835837841034,
-0.08574238419532776,
0.029467005282640457,
-0.07057163864374161,
-0.07236634939908981,
0.11355108767747879,
-0.0991176962852478,
-0.3065352141857147,
0.2054903358221054,
0.012770432978868484,
0.05979067459702492,
0.06962494552135468,
0.1258382797241211,
0.1664608120918274,
0.09673302620649338,
0.23967698216438293,
0.29656901955604553,
-0.21590737998485565,
0.3827722668647766,
-0.38724076747894287,
0.09267225861549377,
-0.03103930875658989,
0.07112985104322433,
0.06565486639738083,
0.043967802077531815,
-0.09347762167453766,
0.19505169987678528,
-0.1820218563079834,
0.21836704015731812,
-0.3807089924812317,
-0.03710094839334488,
-0.8843934535980225,
0.056073904037475586,
-0.11706375330686569,
0.11073469370603561,
0.21009936928749084,
0.14025594294071198,
-0.11917867511510849,
-0.24003368616104126,
-0.11652068048715591,
0.21397829055786133,
0.2940782308578491,
-0.06993123888969421,
0.2279687225818634,
0.042080506682395935,
0.05837436765432358,
-0.32013460993766785,
0.2476847618818283,
0.017177587375044823,
0.045467671006917953,
0.09804680198431015,
-0.24006256461143494,
0.39546650648117065,
0.08486483991146088,
0.1853235960006714,
0.1478039026260376,
0.13192667067050934,
0.47584280371665955,
-0.006015695631504059,
-0.02758432924747467,
-0.008976161479949951,
0.45162972807884216,
0.18057763576507568,
-0.3402884602546692,
-0.1420489102602005,
-0.18555884063243866,
-0.0007559359073638916,
0.07749947905540466,
0.15927250683307648,
-0.08404695242643356,
0.3020506203174591,
-0.10745387524366379,
0.06075643002986908,
-0.11801278591156006,
0.02912243828177452,
0.3401012122631073,
0.17099978029727936,
-0.31749454140663147,
0.037521399557590485,
-0.20741137862205505,
-0.064069963991642,
0.1576644629240036,
0.004249438643455505,
0.0024908899795264006,
-0.15622419118881226,
0.1302236020565033,
0.1190570667386055,
-0.2286059856414795,
-0.2915290892124176,
-0.014924711547791958,
0.4036519527435303,
-0.33745595812797546,
0.062464043498039246,
-0.35343754291534424,
-0.2601827383041382,
-0.05427157133817673,
-0.16310416162014008,
-0.16000381112098694,
-0.20465070009231567,
-0.1103503406047821,
0.1549523025751114,
0.19716686010360718,
0.15693843364715576,
-0.34042343497276306,
-0.06874425709247589,
0.2280442863702774,
-0.21275824308395386,
0.21781909465789795,
-0.3201698362827301,
-0.09057386964559555,
0.09150458872318268,
0.2567334473133087,
0.11535625159740448,
0.21687786281108856,
-0.07115216553211212,
-0.19916969537734985,
0.19511544704437256,
-0.31111523509025574,
-0.06906350702047348,
-0.25292837619781494,
0.1622445434331894,
-0.01277303695678711,
0.28293919563293457,
0.06636900454759598,
-0.2645324170589447,
0.21239332854747772,
0.03525155782699585,
-0.15870460867881775,
0.3022594451904297,
0.05697024241089821,
-0.4054758548736572,
-0.12616783380508423,
-0.6859311461448669,
-0.24029909074306488,
-0.29652348160743713,
0.020734965801239014,
0.26326310634613037,
0.17071035504341125,
0.4518844783306122,
0.3053716719150543,
0.021538104861974716,
0.08881966024637222,
0.06292887777090073,
-0.1581660807132721,
-0.0866922065615654,
0.22770357131958008,
-0.15107165277004242,
-0.40117549896240234,
0.17722272872924805,
0.20705322921276093,
0.563931941986084,
0.1303536295890808,
-0.43858790397644043,
0.15774297714233398,
-0.10611404478549957,
-0.07551945745944977,
-0.21828600764274597,
0.10153845697641373,
0.06630215793848038,
-0.21097804605960846,
-0.025753311812877655,
0.007954489439725876,
-0.1914931982755661,
-0.030136622488498688,
0.14666877686977386,
0.26305851340293884,
0.24075531959533691,
0.42789730429649353,
-0.26816847920417786,
0.5905353426933289,
0.014262065291404724,
-0.16091936826705933,
0.0694768950343132,
-0.1589575856924057,
0.4026775658130646,
-0.0031172409653663635,
-0.5069509148597717,
0.21585281193256378,
0.284262478351593,
0.017193235456943512,
0.1744772046804428,
0.03403192013502121,
-0.25515562295913696,
-0.16617003083229065,
0.23797139525413513,
-0.38001590967178345,
-0.29085496068000793,
0.1960817575454712,
-0.26110178232192993,
0.0789467841386795,
0.04485530033707619,
-0.05900614336133003,
-0.08908896148204803,
-0.13881024718284607,
-0.18871811032295227,
0.435840368270874,
0.06431818008422852,
0.031500011682510376,
-0.4632999897003174,
0.050569165498018265,
-0.34297287464141846,
0.20747345685958862,
-0.15875421464443207,
0.6160392761230469,
-0.12195812165737152,
-0.09990619122982025,
0.11056801676750183,
-0.01402687095105648,
0.3819845914840698,
0.08129236102104187,
0.16612452268600464,
0.3375772535800934,
-0.12394227832555771,
-0.4966862201690674,
-0.04140731319785118,
0.0024598613381385803,
0.4472515285015106,
0.4753023684024811,
0.15871205925941467,
0.07489878684282303,
-0.11193147301673889,
-0.18555210530757904,
0.10593236982822418,
-0.09404438734054565,
-0.28173163533210754,
-0.30555158853530884,
-0.31867924332618713,
-0.2693052887916565,
-0.4744182825088501,
-0.17208364605903625,
0.23046810925006866,
-0.09995134174823761,
0.16761095821857452,
-0.12123709917068481,
-0.21667343378067017,
0.14969661831855774,
0.38612139225006104,
0.03988486900925636,
-0.08788269013166428,
0.15042027831077576,
0.21564118564128876,
-0.11630478501319885,
0.13654914498329163,
0.36144888401031494,
0.10973691940307617,
-0.7085858583450317,
-0.046175286173820496,
-0.06683290749788284,
0.15759873390197754,
-0.26194149255752563,
-0.1674870401620865,
-0.17460358142852783,
0.07693833112716675,
-0.13607345521450043,
0.002871680073440075,
0.16608913242816925,
0.20372125506401062,
0.04542733356356621,
-0.20446690917015076,
-0.29293093085289,
0.26326242089271545,
-0.10856588184833527,
0.03423215448856354,
0.1920117884874344,
-0.21351422369480133,
-0.1601366549730301,
0.37819015979766846,
-0.021023958921432495,
0.559001088142395,
-0.3097178339958191,
0.14125706255435944,
0.27619457244873047,
0.013916708528995514,
0.669948160648346,
-0.11156327277421951,
0.21044348180294037,
-0.3174932599067688,
-0.014191017486155033,
-0.0565616711974144,
-0.2007322609424591,
0.026437826454639435,
0.11239317059516907,
-0.12164807319641113,
0.18026567995548248,
-0.024236399680376053,
-0.2814275026321411,
0.1291990578174591,
0.23119479417800903,
0.50229412317276,
-0.24463209509849548,
-0.719225287437439,
0.20236900448799133,
-0.2177516371011734,
0.05226746201515198,
0.051772721111774445,
-0.13526543974876404,
-0.22485552728176117,
0.04897438734769821,
-0.31240350008010864,
0.3894600570201874,
0.09013550728559494,
0.3495636582374573,
0.308227002620697,
-0.04682788997888565,
0.05550876632332802,
0.2309151291847229,
0.17503732442855835,
0.22789549827575684,
-0.1704109162092209,
0.2341105043888092,
-0.00879804790019989,
-0.259112149477005,
0.24826090037822723,
0.10018882155418396,
0.18867500126361847,
-0.16275110840797424,
-0.20014849305152893,
0.13314634561538696,
0.08533201366662979,
-0.5239752531051636,
0.1386447548866272,
0.17833241820335388,
-0.07202580571174622,
0.09921777248382568,
-0.28296148777008057,
0.10971985012292862,
0.10711844265460968,
0.20754751563072205,
0.11732307076454163,
0.36708587408065796,
0.07368161529302597,
0.3407837748527527,
0.007956031709909439,
-0.4690265357494354,
0.14298680424690247,
0.2529993951320648,
0.17923638224601746,
0.009054575115442276,
0.3015250861644745,
0.14253173768520355,
0.04716581851243973,
-0.10458744317293167,
-0.17465463280677795,
-0.4619153141975403,
0.010912559926509857,
-0.12246853858232498,
0.3127562999725342,
0.222942516207695,
0.15213680267333984,
-0.18185070157051086,
0.04104101285338402,
-0.22364076972007751,
0.09975971281528473,
-0.8598709106445312,
-0.13540996611118317,
-0.05482803285121918,
-0.4878779947757721,
-0.0006446279585361481,
0.2166992425918579,
-0.0469978041946888,
-0.08471456170082092,
-0.19135071337223053,
-0.24978755414485931,
0.01976649835705757,
-0.20321814715862274,
-0.10998722910881042,
0.2819562554359436,
0.06199829652905464,
0.12835046648979187,
-0.22953084111213684,
0.1299590766429901,
-0.40338611602783203,
-0.10847536474466324,
-0.19876617193222046,
-0.002802785485982895,
0.12854592502117157,
0.052988193929195404,
-0.2573782801628113,
-0.2084370106458664,
-0.24599552154541016,
-0.32995346188545227,
0.10250058025121689,
-0.04098738729953766,
-0.020156217738986015,
-0.15408803522586823,
0.058175232261419296,
-0.5069238543510437,
0.016590163111686707,
0.11863686144351959,
0.3586597740650177,
-0.1164737194776535,
0.24674713611602783,
0.2674190402030945,
0.2644313871860504,
-0.17530661821365356,
-0.09090708196163177,
-0.5406354665756226,
-0.06691064685583115,
-0.2757556438446045,
0.16379877924919128,
0.370296835899353,
-0.10896915197372437,
0.13248416781425476,
0.08164210617542267,
0.053501978516578674,
0.5262339115142822,
-0.17825771868228912,
-0.046150367707014084,
0.1299269050359726,
0.148840069770813,
-0.28394603729248047,
-0.13353028893470764,
0.32980120182037354,
0.30998194217681885,
-0.21431134641170502,
0.20181146264076233,
-0.022296268492937088,
0.02268773317337036,
0.12968388199806213,
0.03032229095697403,
0.5294119119644165,
-0.24932973086833954,
0.08841267228126526,
-0.15197938680648804,
-0.24768224358558655,
-0.09166663885116577,
-0.2119930535554886,
0.24993117153644562,
0.24116617441177368,
0.37285488843917847,
-0.00141182541847229,
0.10809320956468582,
0.19088104367256165,
-0.12381608784198761,
-0.013418853282928467,
-0.35449373722076416,
-0.46468961238861084,
0.16359740495681763,
0.023323945701122284,
0.39504140615463257,
0.007964618504047394,
0.09288659691810608,
0.05199505016207695,
-0.24559511244297028,
-0.0657278522849083,
0.23702582716941833,
0.11939354985952377,
-0.0006316294893622398,
-0.2060878425836563,
0.04167844355106354,
-0.03172694519162178,
-0.18166403472423553,
0.037583254277706146,
-0.11872902512550354,
0.08652359992265701,
0.34904372692108154,
-0.303585946559906,
-0.7911367416381836,
0.22859549522399902,
0.06625996530056,
-0.10320676118135452,
0.07204507291316986,
0.39186999201774597,
0.023687250912189484,
0.04352154582738876,
0.3245866000652313,
0.10883104801177979,
0.5102598667144775,
0.4114188551902771,
-0.04923359677195549,
-0.045773137360811234,
0.0242726132273674,
0.11899881064891815,
-0.08506082743406296,
0.32234475016593933,
0.033200085163116455,
0.3221100866794586,
0.27460652589797974,
0.1198490560054779,
0.05741517245769501,
0.28899240493774414,
0.16253742575645447,
0.0712471604347229,
0.022603673860430717,
0.06667251884937286,
0.10231539607048035,
0.23945078253746033,
-0.2568708658218384,
0.07248678803443909,
-0.33614400029182434,
-0.11034975945949554,
0.2590259611606598,
0.2074865996837616,
0.11409545689821243,
0.03364311531186104,
0.05824991315603256,
-0.13191495835781097,
0.7058609127998352,
0.5107817649841309,
0.37177348136901855,
-0.14329229295253754,
-0.06041378900408745,
-0.5617280006408691,
0.1689249724149704,
-0.22681096196174622,
-0.20932695269584656,
0.10783424228429794,
0.1282416731119156,
0.435730904340744,
0.19244585931301117,
-0.027367740869522095,
-0.17254705727100372,
-0.40054774284362793,
-0.02374415099620819,
-0.34282344579696655,
-0.21782703697681427,
0.007897306233644485,
-0.11197392642498016,
-0.1383005976676941,
-0.01803794503211975,
0.08996358513832092,
-0.18239137530326843,
-0.0019595958292484283,
0.02701948583126068,
0.15782657265663147,
-0.03326696157455444,
0.09149450063705444,
0.4042007625102997,
0.015184413641691208,
0.42904990911483765,
-0.027054347097873688,
-0.2645834982395172,
-0.4509987235069275,
-0.19910070300102234,
-0.33066344261169434,
0.3517010509967804,
0.23522013425827026,
0.17624352872371674,
-0.16947977244853973,
0.18722282350063324,
-0.1685282289981842,
0.483816534280777,
-0.05659083276987076,
-0.5422751903533936,
0.12551812827587128,
0.07394278794527054,
0.09575536102056503,
0.14441229403018951,
-0.010646512731909752,
0.0535351037979126,
0.004479587078094482,
0.5422229766845703,
-0.24582740664482117,
-0.13782145082950592,
0.2703121602535248,
-0.2595653533935547,
-0.35438835620880127,
0.26458653807640076,
-0.13422952592372894,
-0.36559292674064636,
0.30934056639671326,
-0.5371618866920471,
0.16548648476600647,
0.34196925163269043,
-0.10925120860338211,
-0.17104490101337433,
-0.050433408468961716,
0.10095047950744629,
-0.20603005588054657,
-0.08585011214017868,
0.569959282875061,
-0.11934270709753036,
-0.2334059178829193,
-0.046961572021245956,
0.009048141539096832
] |
https://github.com/huggingface/datasets/issues/294 | Cannot load arxiv dataset on MacOS? | I just checked inside `train.txt` and this line isn't truncated for me (line 163577).
Could you try to clear your cache and re-download the dataset ? | I am having trouble loading the `"arxiv"` config from the `"scientific_papers"` dataset on MacOS. When I try loading the dataset with:
```python
arxiv = nlp.load_dataset("scientific_papers", "arxiv")
```
I get the following stack trace:
```bash
JSONDecodeError Traceback (most recent call last)
<ipython-input-2-8e00c55d5a59> in <module>
----> 1 arxiv = nlp.load_dataset("scientific_papers", "arxiv")
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
662
663 generator = self._generate_examples(**split_generator.gen_kwargs)
--> 664 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
665 example = self.info.features.encode_example(record)
666 writer.write(example)
~/miniconda3/envs/t2t/lib/python3.7/site-packages/tqdm/std.py in __iter__(self)
1106 fp_write=getattr(self.fp, 'write', sys.stderr.write))
1107
-> 1108 for obj in iterable:
1109 yield obj
1110 # Update and possibly print the progressbar.
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/datasets/scientific_papers/107a416c0e1958cb846f5934b5aae292f7884a5b27e86af3f3ef1a093e058bbc/scientific_papers.py in _generate_examples(self, path)
114 # "section_names": list[str], list of section names.
115 # "sections": list[list[str]], list of sections (list of paragraphs)
--> 116 d = json.loads(line)
117 summary = "\n".join(d["abstract_text"])
118 # In original paper, <S> and </S> are not used in vocab during training
~/miniconda3/envs/t2t/lib/python3.7/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
346 parse_int is None and parse_float is None and
347 parse_constant is None and object_pairs_hook is None and not kw):
--> 348 return _default_decoder.decode(s)
349 if cls is None:
350 cls = JSONDecoder
~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in decode(self, s, _w)
335
336 """
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338 end = _w(s, end).end()
339 if end != len(s):
~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in raw_decode(self, s, idx)
351 """
352 try:
--> 353 obj, end = self.scan_once(s, idx)
354 except StopIteration as err:
355 raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Unterminated string starting at: line 1 column 46983 (char 46982)
163502 examples [02:10, 2710.68 examples/s]
```
I am not sure how to trace back to the specific JSON file that has the "Unterminated string". Also, I do not get this error on colab so I suspect it may be MacOS specific. Copy pasting the relevant lines from `transformers-cli env` below:
- Platform: Darwin-19.5.0-x86_64-i386-64bit
- Python version: 3.7.5
- PyTorch version (GPU?): 1.5.0 (False)
- Tensorflow version (GPU?): 2.2.0 (False)
Any ideas? | 26 | Cannot load arxiv dataset on MacOS?
I am having trouble loading the `"arxiv"` config from the `"scientific_papers"` dataset on MacOS. When I try loading the dataset with:
```python
arxiv = nlp.load_dataset("scientific_papers", "arxiv")
```
I get the following stack trace:
```bash
JSONDecodeError Traceback (most recent call last)
<ipython-input-2-8e00c55d5a59> in <module>
----> 1 arxiv = nlp.load_dataset("scientific_papers", "arxiv")
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
522 download_mode=download_mode,
523 ignore_verifications=ignore_verifications,
--> 524 save_infos=save_infos,
525 )
526
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
430 verify_infos = not save_infos and not ignore_verifications
431 self._download_and_prepare(
--> 432 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
433 )
434 # Sync info
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
481 try:
482 # Prepare split will record examples associated to the split
--> 483 self._prepare_split(split_generator, **prepare_split_kwargs)
484 except OSError:
485 raise OSError("Cannot find data file. " + (self.manual_download_instructions or ""))
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/builder.py in _prepare_split(self, split_generator)
662
663 generator = self._generate_examples(**split_generator.gen_kwargs)
--> 664 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
665 example = self.info.features.encode_example(record)
666 writer.write(example)
~/miniconda3/envs/t2t/lib/python3.7/site-packages/tqdm/std.py in __iter__(self)
1106 fp_write=getattr(self.fp, 'write', sys.stderr.write))
1107
-> 1108 for obj in iterable:
1109 yield obj
1110 # Update and possibly print the progressbar.
~/miniconda3/envs/t2t/lib/python3.7/site-packages/nlp/datasets/scientific_papers/107a416c0e1958cb846f5934b5aae292f7884a5b27e86af3f3ef1a093e058bbc/scientific_papers.py in _generate_examples(self, path)
114 # "section_names": list[str], list of section names.
115 # "sections": list[list[str]], list of sections (list of paragraphs)
--> 116 d = json.loads(line)
117 summary = "\n".join(d["abstract_text"])
118 # In original paper, <S> and </S> are not used in vocab during training
~/miniconda3/envs/t2t/lib/python3.7/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
346 parse_int is None and parse_float is None and
347 parse_constant is None and object_pairs_hook is None and not kw):
--> 348 return _default_decoder.decode(s)
349 if cls is None:
350 cls = JSONDecoder
~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in decode(self, s, _w)
335
336 """
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338 end = _w(s, end).end()
339 if end != len(s):
~/miniconda3/envs/t2t/lib/python3.7/json/decoder.py in raw_decode(self, s, idx)
351 """
352 try:
--> 353 obj, end = self.scan_once(s, idx)
354 except StopIteration as err:
355 raise JSONDecodeError("Expecting value", s, err.value) from None
JSONDecodeError: Unterminated string starting at: line 1 column 46983 (char 46982)
163502 examples [02:10, 2710.68 examples/s]
```
I am not sure how to trace back to the specific JSON file that has the "Unterminated string". Also, I do not get this error on colab so I suspect it may be MacOS specific. Copy pasting the relevant lines from `transformers-cli env` below:
- Platform: Darwin-19.5.0-x86_64-i386-64bit
- Python version: 3.7.5
- PyTorch version (GPU?): 1.5.0 (False)
- Tensorflow version (GPU?): 2.2.0 (False)
Any ideas?
I just checked inside `train.txt` and this line isn't truncated for me (line 163577).
Could you try to clear your cache and re-download the dataset ? | [
-0.058140162378549576,
0.08776922523975372,
-0.04190976545214653,
0.1886684149503708,
0.21789740025997162,
0.04546990990638733,
-0.024187732487916946,
0.36161696910858154,
0.08156807720661163,
-0.18188254535198212,
-0.05052272230386734,
0.6910571455955505,
-0.19199123978614807,
-0.21391382813453674,
-0.10822953283786774,
0.009493570774793625,
-0.12760472297668457,
0.011453717947006226,
0.11468154937028885,
-0.1110842376947403,
-0.12306927889585495,
0.19933030009269714,
-0.1573241651058197,
-0.09930640459060669,
0.4090956449508667,
0.09583006799221039,
0.13648580014705658,
0.39574870467185974,
-0.002754379063844681,
-0.3556492030620575,
0.1349906474351883,
0.024096228182315826,
0.21715791523456573,
0.5375878810882568,
-0.00011070343316532671,
0.2718123197555542,
0.3134251832962036,
-0.09398873150348663,
-0.20430143177509308,
-0.5840529799461365,
-0.41151508688926697,
-0.3066376745700836,
0.13350582122802734,
-0.2136874943971634,
-0.036071598529815674,
-0.2607661485671997,
0.12421457469463348,
-0.15391744673252106,
0.3288324773311615,
0.3756519556045532,
0.20792174339294434,
0.0798492282629013,
0.38300925493240356,
0.11644192039966583,
-0.06707210093736649,
-0.02313508838415146,
0.002116965129971504,
0.464982807636261,
0.04228490591049194,
0.12632331252098083,
0.161223366856575,
0.14480997622013092,
-0.14896899461746216,
0.11279796063899994,
0.20924580097198486,
-0.029665634036064148,
-0.10750379413366318,
-0.14368760585784912,
0.037522364407777786,
0.13045741617679596,
0.272156685590744,
-0.09744871407747269,
-0.24030540883541107,
0.05640801787376404,
0.22180765867233276,
-0.10190550237894058,
0.2951816916465759,
0.43008244037628174,
-0.11249381303787231,
0.07615818083286285,
-0.3062995970249176,
-0.34975817799568176,
-0.403460830450058,
0.47365838289260864,
-0.021898802369832993,
-0.1115582287311554,
-0.20071883499622345,
0.20338764786720276,
0.15959446132183075,
-0.24159277975559235,
0.036895692348480225,
0.09394818544387817,
0.17075558006763458,
0.11694555729627609,
-0.4864808917045593,
0.24697643518447876,
0.07967343926429749,
-0.3753708600997925,
0.07538332045078278,
-0.15014663338661194,
-0.1037791296839714,
-0.08154430240392685,
-0.2829776704311371,
0.2728937566280365,
0.11201632022857666,
0.018603073433041573,
-0.15581825375556946,
-0.0018166243098676205,
0.05822935700416565,
-0.01258995570242405,
-0.16861078143119812,
0.0329580157995224,
-0.35958707332611084,
-0.1540408879518509,
-0.362738698720932,
-0.38012081384658813,
0.2619624137878418,
-0.3207474648952484,
0.06218370050191879,
-0.02503598853945732,
-0.02504132315516472,
0.016877353191375732,
0.023844163864850998,
0.22841310501098633,
-0.05426689237356186,
0.14219896495342255,
0.17162328958511353,
0.42962169647216797,
-0.3466947376728058,
0.17580199241638184,
-0.05097563937306404,
0.07547478377819061,
-0.10979970544576645,
-0.2968220114707947,
0.2044050544500351,
0.08469432592391968,
0.163596510887146,
-0.022583555430173874,
0.0854116752743721,
-0.20162875950336456,
0.1252436339855194,
0.13397623598575592,
-0.10179347544908524,
0.48088958859443665,
0.329988956451416,
0.05649875849485397,
0.2672579884529114,
0.03862270712852478,
-0.12501274049282074,
0.22153359651565552,
-0.46795397996902466,
-0.12276080250740051,
-0.2679320275783539,
0.16265469789505005,
-0.19974812865257263,
-0.13173453509807587,
-0.16054990887641907,
-0.14329290390014648,
0.13793276250362396,
0.23946914076805115,
-0.3634815514087677,
-0.2293667048215866,
0.00013485178351402283,
-0.33330079913139343,
0.24883615970611572,
0.03921028971672058,
-0.3133457601070404,
0.16130274534225464,
-0.10561685264110565,
0.14759673178195953,
0.28346362709999084,
0.3652400076389313,
-0.20566125214099884,
0.14260171353816986,
-0.025550076737999916,
-0.11357134580612183,
0.35899922251701355,
-0.32768186926841736,
-0.11957645416259766,
0.03648442029953003,
-0.13938570022583008,
0.07627056539058685,
-0.07434352487325668,
0.02311626635491848,
-0.18387870490550995,
0.25792086124420166,
0.20406238734722137,
0.27111923694610596,
0.08263696730136871,
0.030417541041970253,
-0.1805008202791214,
-0.20094433426856995,
0.4589868187904358,
0.3523835837841034,
-0.08574238419532776,
0.029467005282640457,
-0.07057163864374161,
-0.07236634939908981,
0.11355108767747879,
-0.0991176962852478,
-0.3065352141857147,
0.2054903358221054,
0.012770432978868484,
0.05979067459702492,
0.06962494552135468,
0.1258382797241211,
0.1664608120918274,
0.09673302620649338,
0.23967698216438293,
0.29656901955604553,
-0.21590737998485565,
0.3827722668647766,
-0.38724076747894287,
0.09267225861549377,
-0.03103930875658989,
0.07112985104322433,
0.06565486639738083,
0.043967802077531815,
-0.09347762167453766,
0.19505169987678528,
-0.1820218563079834,
0.21836704015731812,
-0.3807089924812317,
-0.03710094839334488,
-0.8843934535980225,
0.056073904037475586,
-0.11706375330686569,
0.11073469370603561,
0.21009936928749084,
0.14025594294071198,
-0.11917867511510849,
-0.24003368616104126,
-0.11652068048715591,
0.21397829055786133,
0.2940782308578491,
-0.06993123888969421,
0.2279687225818634,
0.042080506682395935,
0.05837436765432358,
-0.32013460993766785,
0.2476847618818283,
0.017177587375044823,
0.045467671006917953,
0.09804680198431015,
-0.24006256461143494,
0.39546650648117065,
0.08486483991146088,
0.1853235960006714,
0.1478039026260376,
0.13192667067050934,
0.47584280371665955,
-0.006015695631504059,
-0.02758432924747467,
-0.008976161479949951,
0.45162972807884216,
0.18057763576507568,
-0.3402884602546692,
-0.1420489102602005,
-0.18555884063243866,
-0.0007559359073638916,
0.07749947905540466,
0.15927250683307648,
-0.08404695242643356,
0.3020506203174591,
-0.10745387524366379,
0.06075643002986908,
-0.11801278591156006,
0.02912243828177452,
0.3401012122631073,
0.17099978029727936,
-0.31749454140663147,
0.037521399557590485,
-0.20741137862205505,
-0.064069963991642,
0.1576644629240036,
0.004249438643455505,
0.0024908899795264006,
-0.15622419118881226,
0.1302236020565033,
0.1190570667386055,
-0.2286059856414795,
-0.2915290892124176,
-0.014924711547791958,
0.4036519527435303,
-0.33745595812797546,
0.062464043498039246,
-0.35343754291534424,
-0.2601827383041382,
-0.05427157133817673,
-0.16310416162014008,
-0.16000381112098694,
-0.20465070009231567,
-0.1103503406047821,
0.1549523025751114,
0.19716686010360718,
0.15693843364715576,
-0.34042343497276306,
-0.06874425709247589,
0.2280442863702774,
-0.21275824308395386,
0.21781909465789795,
-0.3201698362827301,
-0.09057386964559555,
0.09150458872318268,
0.2567334473133087,
0.11535625159740448,
0.21687786281108856,
-0.07115216553211212,
-0.19916969537734985,
0.19511544704437256,
-0.31111523509025574,
-0.06906350702047348,
-0.25292837619781494,
0.1622445434331894,
-0.01277303695678711,
0.28293919563293457,
0.06636900454759598,
-0.2645324170589447,
0.21239332854747772,
0.03525155782699585,
-0.15870460867881775,
0.3022594451904297,
0.05697024241089821,
-0.4054758548736572,
-0.12616783380508423,
-0.6859311461448669,
-0.24029909074306488,
-0.29652348160743713,
0.020734965801239014,
0.26326310634613037,
0.17071035504341125,
0.4518844783306122,
0.3053716719150543,
0.021538104861974716,
0.08881966024637222,
0.06292887777090073,
-0.1581660807132721,
-0.0866922065615654,
0.22770357131958008,
-0.15107165277004242,
-0.40117549896240234,
0.17722272872924805,
0.20705322921276093,
0.563931941986084,
0.1303536295890808,
-0.43858790397644043,
0.15774297714233398,
-0.10611404478549957,
-0.07551945745944977,
-0.21828600764274597,
0.10153845697641373,
0.06630215793848038,
-0.21097804605960846,
-0.025753311812877655,
0.007954489439725876,
-0.1914931982755661,
-0.030136622488498688,
0.14666877686977386,
0.26305851340293884,
0.24075531959533691,
0.42789730429649353,
-0.26816847920417786,
0.5905353426933289,
0.014262065291404724,
-0.16091936826705933,
0.0694768950343132,
-0.1589575856924057,
0.4026775658130646,
-0.0031172409653663635,
-0.5069509148597717,
0.21585281193256378,
0.284262478351593,
0.017193235456943512,
0.1744772046804428,
0.03403192013502121,
-0.25515562295913696,
-0.16617003083229065,
0.23797139525413513,
-0.38001590967178345,
-0.29085496068000793,
0.1960817575454712,
-0.26110178232192993,
0.0789467841386795,
0.04485530033707619,
-0.05900614336133003,
-0.08908896148204803,
-0.13881024718284607,
-0.18871811032295227,
0.435840368270874,
0.06431818008422852,
0.031500011682510376,
-0.4632999897003174,
0.050569165498018265,
-0.34297287464141846,
0.20747345685958862,
-0.15875421464443207,
0.6160392761230469,
-0.12195812165737152,
-0.09990619122982025,
0.11056801676750183,
-0.01402687095105648,
0.3819845914840698,
0.08129236102104187,
0.16612452268600464,
0.3375772535800934,
-0.12394227832555771,
-0.4966862201690674,
-0.04140731319785118,
0.0024598613381385803,
0.4472515285015106,
0.4753023684024811,
0.15871205925941467,
0.07489878684282303,
-0.11193147301673889,
-0.18555210530757904,
0.10593236982822418,
-0.09404438734054565,
-0.28173163533210754,
-0.30555158853530884,
-0.31867924332618713,
-0.2693052887916565,
-0.4744182825088501,
-0.17208364605903625,
0.23046810925006866,
-0.09995134174823761,
0.16761095821857452,
-0.12123709917068481,
-0.21667343378067017,
0.14969661831855774,
0.38612139225006104,
0.03988486900925636,
-0.08788269013166428,
0.15042027831077576,
0.21564118564128876,
-0.11630478501319885,
0.13654914498329163,
0.36144888401031494,
0.10973691940307617,
-0.7085858583450317,
-0.046175286173820496,
-0.06683290749788284,
0.15759873390197754,
-0.26194149255752563,
-0.1674870401620865,
-0.17460358142852783,
0.07693833112716675,
-0.13607345521450043,
0.002871680073440075,
0.16608913242816925,
0.20372125506401062,
0.04542733356356621,
-0.20446690917015076,
-0.29293093085289,
0.26326242089271545,
-0.10856588184833527,
0.03423215448856354,
0.1920117884874344,
-0.21351422369480133,
-0.1601366549730301,
0.37819015979766846,
-0.021023958921432495,
0.559001088142395,
-0.3097178339958191,
0.14125706255435944,
0.27619457244873047,
0.013916708528995514,
0.669948160648346,
-0.11156327277421951,
0.21044348180294037,
-0.3174932599067688,
-0.014191017486155033,
-0.0565616711974144,
-0.2007322609424591,
0.026437826454639435,
0.11239317059516907,
-0.12164807319641113,
0.18026567995548248,
-0.024236399680376053,
-0.2814275026321411,
0.1291990578174591,
0.23119479417800903,
0.50229412317276,
-0.24463209509849548,
-0.719225287437439,
0.20236900448799133,
-0.2177516371011734,
0.05226746201515198,
0.051772721111774445,
-0.13526543974876404,
-0.22485552728176117,
0.04897438734769821,
-0.31240350008010864,
0.3894600570201874,
0.09013550728559494,
0.3495636582374573,
0.308227002620697,
-0.04682788997888565,
0.05550876632332802,
0.2309151291847229,
0.17503732442855835,
0.22789549827575684,
-0.1704109162092209,
0.2341105043888092,
-0.00879804790019989,
-0.259112149477005,
0.24826090037822723,
0.10018882155418396,
0.18867500126361847,
-0.16275110840797424,
-0.20014849305152893,
0.13314634561538696,
0.08533201366662979,
-0.5239752531051636,
0.1386447548866272,
0.17833241820335388,
-0.07202580571174622,
0.09921777248382568,
-0.28296148777008057,
0.10971985012292862,
0.10711844265460968,
0.20754751563072205,
0.11732307076454163,
0.36708587408065796,
0.07368161529302597,
0.3407837748527527,
0.007956031709909439,
-0.4690265357494354,
0.14298680424690247,
0.2529993951320648,
0.17923638224601746,
0.009054575115442276,
0.3015250861644745,
0.14253173768520355,
0.04716581851243973,
-0.10458744317293167,
-0.17465463280677795,
-0.4619153141975403,
0.010912559926509857,
-0.12246853858232498,
0.3127562999725342,
0.222942516207695,
0.15213680267333984,
-0.18185070157051086,
0.04104101285338402,
-0.22364076972007751,
0.09975971281528473,
-0.8598709106445312,
-0.13540996611118317,
-0.05482803285121918,
-0.4878779947757721,
-0.0006446279585361481,
0.2166992425918579,
-0.0469978041946888,
-0.08471456170082092,
-0.19135071337223053,
-0.24978755414485931,
0.01976649835705757,
-0.20321814715862274,
-0.10998722910881042,
0.2819562554359436,
0.06199829652905464,
0.12835046648979187,
-0.22953084111213684,
0.1299590766429901,
-0.40338611602783203,
-0.10847536474466324,
-0.19876617193222046,
-0.002802785485982895,
0.12854592502117157,
0.052988193929195404,
-0.2573782801628113,
-0.2084370106458664,
-0.24599552154541016,
-0.32995346188545227,
0.10250058025121689,
-0.04098738729953766,
-0.020156217738986015,
-0.15408803522586823,
0.058175232261419296,
-0.5069238543510437,
0.016590163111686707,
0.11863686144351959,
0.3586597740650177,
-0.1164737194776535,
0.24674713611602783,
0.2674190402030945,
0.2644313871860504,
-0.17530661821365356,
-0.09090708196163177,
-0.5406354665756226,
-0.06691064685583115,
-0.2757556438446045,
0.16379877924919128,
0.370296835899353,
-0.10896915197372437,
0.13248416781425476,
0.08164210617542267,
0.053501978516578674,
0.5262339115142822,
-0.17825771868228912,
-0.046150367707014084,
0.1299269050359726,
0.148840069770813,
-0.28394603729248047,
-0.13353028893470764,
0.32980120182037354,
0.30998194217681885,
-0.21431134641170502,
0.20181146264076233,
-0.022296268492937088,
0.02268773317337036,
0.12968388199806213,
0.03032229095697403,
0.5294119119644165,
-0.24932973086833954,
0.08841267228126526,
-0.15197938680648804,
-0.24768224358558655,
-0.09166663885116577,
-0.2119930535554886,
0.24993117153644562,
0.24116617441177368,
0.37285488843917847,
-0.00141182541847229,
0.10809320956468582,
0.19088104367256165,
-0.12381608784198761,
-0.013418853282928467,
-0.35449373722076416,
-0.46468961238861084,
0.16359740495681763,
0.023323945701122284,
0.39504140615463257,
0.007964618504047394,
0.09288659691810608,
0.05199505016207695,
-0.24559511244297028,
-0.0657278522849083,
0.23702582716941833,
0.11939354985952377,
-0.0006316294893622398,
-0.2060878425836563,
0.04167844355106354,
-0.03172694519162178,
-0.18166403472423553,
0.037583254277706146,
-0.11872902512550354,
0.08652359992265701,
0.34904372692108154,
-0.303585946559906,
-0.7911367416381836,
0.22859549522399902,
0.06625996530056,
-0.10320676118135452,
0.07204507291316986,
0.39186999201774597,
0.023687250912189484,
0.04352154582738876,
0.3245866000652313,
0.10883104801177979,
0.5102598667144775,
0.4114188551902771,
-0.04923359677195549,
-0.045773137360811234,
0.0242726132273674,
0.11899881064891815,
-0.08506082743406296,
0.32234475016593933,
0.033200085163116455,
0.3221100866794586,
0.27460652589797974,
0.1198490560054779,
0.05741517245769501,
0.28899240493774414,
0.16253742575645447,
0.0712471604347229,
0.022603673860430717,
0.06667251884937286,
0.10231539607048035,
0.23945078253746033,
-0.2568708658218384,
0.07248678803443909,
-0.33614400029182434,
-0.11034975945949554,
0.2590259611606598,
0.2074865996837616,
0.11409545689821243,
0.03364311531186104,
0.05824991315603256,
-0.13191495835781097,
0.7058609127998352,
0.5107817649841309,
0.37177348136901855,
-0.14329229295253754,
-0.06041378900408745,
-0.5617280006408691,
0.1689249724149704,
-0.22681096196174622,
-0.20932695269584656,
0.10783424228429794,
0.1282416731119156,
0.435730904340744,
0.19244585931301117,
-0.027367740869522095,
-0.17254705727100372,
-0.40054774284362793,
-0.02374415099620819,
-0.34282344579696655,
-0.21782703697681427,
0.007897306233644485,
-0.11197392642498016,
-0.1383005976676941,
-0.01803794503211975,
0.08996358513832092,
-0.18239137530326843,
-0.0019595958292484283,
0.02701948583126068,
0.15782657265663147,
-0.03326696157455444,
0.09149450063705444,
0.4042007625102997,
0.015184413641691208,
0.42904990911483765,
-0.027054347097873688,
-0.2645834982395172,
-0.4509987235069275,
-0.19910070300102234,
-0.33066344261169434,
0.3517010509967804,
0.23522013425827026,
0.17624352872371674,
-0.16947977244853973,
0.18722282350063324,
-0.1685282289981842,
0.483816534280777,
-0.05659083276987076,
-0.5422751903533936,
0.12551812827587128,
0.07394278794527054,
0.09575536102056503,
0.14441229403018951,
-0.010646512731909752,
0.0535351037979126,
0.004479587078094482,
0.5422229766845703,
-0.24582740664482117,
-0.13782145082950592,
0.2703121602535248,
-0.2595653533935547,
-0.35438835620880127,
0.26458653807640076,
-0.13422952592372894,
-0.36559292674064636,
0.30934056639671326,
-0.5371618866920471,
0.16548648476600647,
0.34196925163269043,
-0.10925120860338211,
-0.17104490101337433,
-0.050433408468961716,
0.10095047950744629,
-0.20603005588054657,
-0.08585011214017868,
0.569959282875061,
-0.11934270709753036,
-0.2334059178829193,
-0.046961572021245956,
0.009048141539096832
] |
https://github.com/huggingface/datasets/issues/290 | ConnectionError - Eli5 dataset download | It should ne fixed now, thanks for reporting this one :)
It was an issue on our google storage.
Let me now if you're still facing this issue. | Hi, I have a problem with downloading Eli5 dataset. When typing `nlp.load_dataset('eli5')`, I get ConnectionError: Couldn't reach https://storage.googleapis.com/huggingface-nlp/cache/datasets/eli5/LFQA_reddit/1.0.0/explain_like_im_five-train_eli5.arrow
I would appreciate if you could help me with this issue. | 28 | ConnectionError - Eli5 dataset download
Hi, I have a problem with downloading Eli5 dataset. When typing `nlp.load_dataset('eli5')`, I get ConnectionError: Couldn't reach https://storage.googleapis.com/huggingface-nlp/cache/datasets/eli5/LFQA_reddit/1.0.0/explain_like_im_five-train_eli5.arrow
I would appreciate if you could help me with this issue.
It should ne fixed now, thanks for reporting this one :)
It was an issue on our google storage.
Let me now if you're still facing this issue. | [
-0.24975892901420593,
0.08938398957252502,
-0.0778241753578186,
0.32709890604019165,
0.20817551016807556,
0.002122655510902405,
0.27453604340553284,
0.13816246390342712,
0.04914404824376106,
0.040592558681964874,
-0.03168866038322449,
0.049295298755168915,
0.12689177691936493,
0.33280935883522034,
0.09711775928735733,
-0.1882537305355072,
-0.012896738946437836,
0.08560644835233688,
-0.009513139724731445,
0.10711346566677094,
-0.04578513652086258,
0.17138776183128357,
-0.10189270973205566,
0.17260245978832245,
-0.19526275992393494,
0.1230362132191658,
-0.054277703166007996,
-0.07669468969106674,
-0.3689587116241455,
-0.283509761095047,
0.3438398241996765,
0.12487506866455078,
0.18020771443843842,
-0.02755681425333023,
-0.000116157898446545,
-0.07733800262212753,
0.2845264673233032,
-0.0068013668060302734,
-0.3015564978122711,
-0.48854923248291016,
-0.13852836191654205,
-0.19943667948246002,
0.3694054186344147,
-0.07227547466754913,
0.20156773924827576,
0.1652347445487976,
0.4329597055912018,
0.10277624428272247,
0.48388922214508057,
0.16649028658866882,
0.18476459383964539,
-0.03377613425254822,
0.3706134259700775,
0.09790968149900436,
0.06919742375612259,
-0.3523103594779968,
0.05009052902460098,
0.3374673128128052,
-0.1407165378332138,
-0.18571971356868744,
0.11422047019004822,
0.09216761589050293,
0.1664486974477768,
0.11011219024658203,
0.1821705400943756,
0.13093937933444977,
-0.07190335541963577,
-0.35206249356269836,
0.024204464629292488,
0.11670774221420288,
0.9977468848228455,
-0.03973968327045441,
-0.23932354152202606,
0.005708619952201843,
0.1492987722158432,
-0.41846764087677,
0.5427044034004211,
0.27126380801200867,
-0.14786534011363983,
0.05033377557992935,
-0.3415909707546234,
-0.3982752561569214,
-0.3517912030220032,
0.360395610332489,
-0.03552445024251938,
0.06353648751974106,
-0.08161214739084244,
0.14034724235534668,
0.09288263320922852,
-0.08111932128667831,
-0.10815751552581787,
0.14716574549674988,
-0.23662880063056946,
0.29402676224708557,
-0.39731839299201965,
-0.08461908996105194,
-0.28994834423065186,
0.19055137038230896,
0.22928771376609802,
0.3845524191856384,
0.0899113267660141,
0.0555601567029953,
-0.12632350623607635,
0.13765403628349304,
0.3958090841770172,
0.27087679505348206,
0.19036933779716492,
0.07801522314548492,
0.18739010393619537,
0.17488163709640503,
-0.0046942345798015594,
-0.09811509400606155,
-0.1432069092988968,
-0.05603431910276413,
-0.11155873537063599,
-0.22070631384849548,
0.08076003193855286,
-0.35653698444366455,
-0.3290453553199768,
0.09903629869222641,
-0.4623710513114929,
-0.18247541785240173,
-0.02684151753783226,
0.18230482935905457,
-0.272877037525177,
0.012621825560927391,
0.052868254482746124,
0.33194541931152344,
-0.10537788271903992,
-0.23101308941841125,
-0.16880610585212708,
0.013598651625216007,
-0.2198605239391327,
-0.02831530012190342,
0.1741318702697754,
-0.19117295742034912,
0.4688151478767395,
-0.21162360906600952,
-0.15071162581443787,
-0.12416703253984451,
0.10944882035255432,
-0.1262894868850708,
-0.5147404074668884,
0.07520093023777008,
0.2205120325088501,
0.0992489904165268,
-0.05207880958914757,
-0.27312901616096497,
0.010548733174800873,
-0.12749695777893066,
-0.22430533170700073,
-0.19692055881023407,
-0.4014471769332886,
0.15623560547828674,
-0.18029160797595978,
-0.20929089188575745,
-0.33402690291404724,
0.1914108395576477,
-0.06500373035669327,
-0.20150327682495117,
-0.1894826889038086,
0.05366358906030655,
-0.13267844915390015,
-0.14890217781066895,
0.28168120980262756,
0.2782117426395416,
0.04765063896775246,
-0.4040091037750244,
-0.17967495322227478,
-0.15283790230751038,
0.10772343724966049,
0.4209944009780884,
-0.05976041033864021,
-0.13246342539787292,
-0.17398743331432343,
0.3515348434448242,
0.629580557346344,
-0.1592782735824585,
-0.9718021154403687,
0.2665198743343353,
-0.2599484622478485,
-0.24569427967071533,
-0.05101761966943741,
0.16132104396820068,
0.13802708685398102,
0.1287878006696701,
0.17310640215873718,
0.4931626319885254,
-0.10168252885341644,
-0.08016036450862885,
-0.1647745966911316,
-0.30462637543678284,
0.12371479719877243,
0.09845295548439026,
0.007013838738203049,
0.082821324467659,
0.20470836758613586,
0.01177233923226595,
0.12115204334259033,
0.22191600501537323,
0.104916051030159,
0.18532751500606537,
0.27195441722869873,
-0.08458170294761658,
-0.18598076701164246,
0.0755382850766182,
-0.5517846345901489,
0.13203907012939453,
-0.24301379919052124,
0.23676076531410217,
-0.3266119360923767,
0.18150168657302856,
-0.13782089948654175,
-0.025057800114154816,
-0.08718101680278778,
-0.019626621156930923,
0.05883105844259262,
-0.2522038221359253,
0.08648738265037537,
0.3663792014122009,
-0.012097727507352829,
0.48740774393081665,
0.07452121376991272,
0.24703074991703033,
-0.35141721367836,
0.5134066343307495,
-0.20107868313789368,
-0.0856427475810051,
0.15342116355895996,
-0.14303278923034668,
0.002864878624677658,
0.01593725197017193,
-0.23615816235542297,
0.08543592691421509,
-0.5183476805686951,
0.18100605905056,
0.2617426812648773,
0.41707658767700195,
0.1843685358762741,
-0.4226611256599426,
0.20948737859725952,
-0.2681601643562317,
0.0940827950835228,
0.0769025906920433,
0.045785196125507355,
0.06140119582414627,
0.2973330020904541,
0.08593384176492691,
-0.03689102083444595,
0.3502426743507385,
0.3250181972980499,
-0.032226093113422394,
0.07452916353940964,
-0.10635045170783997,
0.42278769612312317,
0.29467612504959106,
0.2827170491218567,
-0.21027487516403198,
-0.24367427825927734,
0.20492024719715118,
0.36487531661987305,
0.10896468162536621,
0.034182578325271606,
0.3822144865989685,
-0.24217075109481812,
-0.4425082802772522,
-0.11415159702301025,
-0.08540287613868713,
0.38812559843063354,
0.0548146516084671,
-0.0007226467132568359,
0.15309882164001465,
0.052011869847774506,
-0.10040779411792755,
0.1607721745967865,
0.07382242381572723,
0.09988683462142944,
0.047951675951480865,
0.17331570386886597,
0.052265699952840805,
-0.14894774556159973,
-0.11172205209732056,
0.006889861077070236,
0.32331812381744385,
-0.11165045201778412,
0.12949852645397186,
-0.06829693168401718,
-0.22032400965690613,
0.16533851623535156,
-0.2381620705127716,
-0.43377968668937683,
-0.31473508477211,
0.008576691150665283,
0.2693353295326233,
0.10833479464054108,
0.07351551204919815,
-0.027687465772032738,
0.06595177948474884,
0.20063111186027527,
0.00953231193125248,
-0.04121430963277817,
-0.23373694717884064,
-0.3130795657634735,
0.07120639085769653,
0.33175739645957947,
0.10177290439605713,
0.16272573173046112,
-0.17513355612754822,
-0.06729086488485336,
-0.4746837913990021,
-0.20869413018226624,
0.07960201054811478,
-0.1244819164276123,
0.4008778929710388,
0.0662376880645752,
0.5214605927467346,
-0.1920004040002823,
-0.10501778870820999,
0.19280096888542175,
-0.17130856215953827,
-0.1980886310338974,
-0.028674079105257988,
-0.013122704811394215,
0.16402080655097961,
0.1673436462879181,
-0.252356618642807,
-0.4018144905567169,
-0.21807685494422913,
0.488585889339447,
0.14701256155967712,
0.05103817954659462,
-0.089829221367836,
0.10644940286874771,
0.07711821794509888,
0.15049409866333008,
-0.10094554722309113,
-0.2762488126754761,
-0.4101828932762146,
0.19206473231315613,
-0.08368906378746033,
-0.31822097301483154,
0.12956909835338593,
0.16089648008346558,
0.20640358328819275,
0.05755365639925003,
-0.5428878664970398,
-0.16491815447807312,
-0.03079758770763874,
0.20129384100437164,
0.020249931141734123,
-0.18859687447547913,
0.27063411474227905,
-0.10794875025749207,
0.008533785119652748,
0.2917352318763733,
-0.08219932019710541,
0.2879413664340973,
0.29892638325691223,
0.4235116243362427,
0.09925161302089691,
0.6737150549888611,
-0.006791200488805771,
0.4394053816795349,
0.14975164830684662,
-0.15615996718406677,
0.5129272937774658,
0.2177136391401291,
0.04709748551249504,
-0.061858780682086945,
-0.052607014775276184,
0.04819214716553688,
-0.07846173644065857,
0.03676304221153259,
0.07758834958076477,
-0.0073584094643592834,
-0.2609279751777649,
-0.3035990297794342,
-0.21352840960025787,
-0.2406088411808014,
-0.18183131515979767,
-0.009404400363564491,
-0.3316057026386261,
-0.03164594620466232,
0.2277188003063202,
-0.34775641560554504,
-0.08157648146152496,
-0.3281508684158325,
-0.15389038622379303,
0.11374248564243317,
0.12558984756469727,
0.09887835383415222,
-0.40164077281951904,
-0.164854496717453,
-0.7408912181854248,
0.47986459732055664,
-0.03667425364255905,
0.40762799978256226,
-0.357344388961792,
0.19848477840423584,
0.153274267911911,
-0.04750196635723114,
0.37834328413009644,
-0.18770761787891388,
-0.10757724940776825,
-0.1808522343635559,
0.4171358048915863,
-0.09906342625617981,
-0.1739497184753418,
0.032793182879686356,
0.3198184669017792,
0.21126486361026764,
0.004858069121837616,
-0.4678070843219757,
-0.04185548052191734,
0.23672525584697723,
-0.019119638949632645,
-0.17137834429740906,
-0.16970354318618774,
-0.19117698073387146,
-0.18129092454910278,
-0.22505715489387512,
-0.15085086226463318,
-0.07159782201051712,
0.2053384929895401,
0.06143065541982651,
0.07760973274707794,
0.0926983505487442,
-0.055290527641773224,
-0.10570548474788666,
-0.26377829909324646,
0.1229466050863266,
-0.0824098065495491,
0.23359301686286926,
0.33581194281578064,
0.08293448388576508,
-0.06622165441513062,
0.7518090605735779,
0.07220353186130524,
-0.37474194169044495,
0.21291786432266235,
0.07263437658548355,
0.05049623176455498,
0.04369262605905533,
0.10961185395717621,
0.21675503253936768,
0.2070121467113495,
0.31381955742836,
0.11380988359451294,
0.0818905383348465,
0.3213292956352234,
0.14955173432826996,
-0.22840264439582825,
-0.31966862082481384,
0.5979220271110535,
-0.07724574208259583,
0.02662912756204605,
0.36145806312561035,
0.025447934865951538,
-0.05270349234342575,
0.13225169479846954,
-0.16718941926956177,
0.975201427936554,
-0.06372703611850739,
0.08885125070810318,
0.29061275720596313,
-0.03639241307973862,
0.5495631694793701,
-0.321394681930542,
0.1422257125377655,
-0.4006827175617218,
-0.3116593658924103,
-0.10806147754192352,
-0.15065832436084747,
-0.15142568945884705,
0.038858890533447266,
-0.07068273425102234,
0.38904619216918945,
-0.1569599211215973,
-0.030769769102334976,
0.15147735178470612,
0.3611955940723419,
-0.3257432281970978,
0.0010744798928499222,
-0.40617144107818604,
0.12439833581447601,
-0.11155818402767181,
0.4765818417072296,
-0.1790933907032013,
-0.17709515988826752,
-0.1528225839138031,
-0.36298131942749023,
-0.45250576734542847,
0.2904272675514221,
-0.1186133399605751,
0.2812650799751282,
0.1837594211101532,
-0.21435284614562988,
0.08216647803783417,
0.3698531985282898,
0.2788475751876831,
-0.1134629100561142,
-0.3012600243091583,
0.2139047235250473,
-0.3641895353794098,
-0.279279887676239,
0.19098885357379913,
0.14208513498306274,
0.164480060338974,
-0.1711326241493225,
-0.3458022177219391,
0.33033519983291626,
0.030087795108556747,
-0.3150250315666199,
0.038395047187805176,
-0.06300750374794006,
-0.16501203179359436,
-0.011163724586367607,
-0.049142997711896896,
-0.1779932677745819,
-0.2788163423538208,
0.01896016299724579,
0.08542203903198242,
0.27858856320381165,
0.12998786568641663,
-0.07477835565805435,
0.31837207078933716,
-0.10614953935146332,
-0.10945926606655121,
0.6303482055664062,
-0.03671514242887497,
-0.25690963864326477,
0.6961230039596558,
0.07159984111785889,
-0.05231941118836403,
-0.10273544490337372,
-0.1806369423866272,
-0.0620618537068367,
-0.414287805557251,
-0.12035762518644333,
-0.18963971734046936,
0.2682059407234192,
-0.24037021398544312,
0.013866912573575974,
0.08328306674957275,
0.02453739568591118,
0.29882895946502686,
-0.5705099701881409,
-0.2339954972267151,
0.31079092621803284,
-0.6751421093940735,
0.09125114977359772,
-0.06195540353655815,
-0.04053511098027229,
0.20730747282505035,
0.04651748389005661,
-0.2335014045238495,
0.016836363822221756,
-0.5630573034286499,
-0.10964354872703552,
0.46913954615592957,
-0.3179607689380646,
0.33907005190849304,
0.03307672217488289,
0.12828120589256287,
0.07091514766216278,
-0.4158705770969391,
-0.12326918542385101,
0.14046239852905273,
0.13424785435199738,
0.07446585595607758,
-0.14717614650726318,
-0.08917511254549026,
-0.04941105097532272,
-0.12036316096782684,
0.20378266274929047,
-0.0831429660320282,
-0.0802062526345253,
0.008824188262224197,
-0.040995530784130096,
0.03888843208551407,
0.053242698311805725,
-0.17928294837474823,
0.18629825115203857,
0.05706724524497986,
0.4040946960449219,
-0.06632910668849945,
0.11072023957967758,
-0.01172757986932993,
0.007330507040023804,
-0.5277679562568665,
-0.023364804685115814,
-0.1421179473400116,
-0.10286823660135269,
0.2993016242980957,
-0.3585299849510193,
-0.03191540390253067,
-0.09337612241506577,
-0.03981669247150421,
0.3959408104419708,
-0.36069807410240173,
0.045068711042404175,
0.4536340534687042,
0.2047596424818039,
-0.1150444746017456,
-0.048941683024168015,
0.16180801391601562,
-0.06570986658334732,
-0.19152085483074188,
-0.1048971638083458,
0.35602858662605286,
-0.14253398776054382,
0.00749468058347702,
0.11648870259523392,
0.5072417855262756,
-0.22874687612056732,
0.053911853581666946,
-0.19039860367774963,
-0.10980583727359772,
0.004093661904335022,
0.1579044908285141,
0.2635743319988251,
0.18044455349445343,
0.02996218204498291,
-0.2974122166633606,
-0.30583280324935913,
-0.36944296956062317,
0.35818102955818176,
-0.03276810050010681,
-0.38691774010658264,
-0.42507854104042053,
0.37918978929519653,
-0.14244718849658966,
0.09451892226934433,
0.06513582170009613,
0.26786717772483826,
0.018398314714431763,
0.02782033383846283,
-0.40354204177856445,
0.28109484910964966,
0.03723439201712608,
-0.07728759944438934,
0.05903823673725128,
-0.20602509379386902,
-0.24823695421218872,
0.15612050890922546,
-0.05076470598578453,
-0.22875933349132538,
-0.008186668157577515,
0.25362396240234375,
-0.12232917547225952,
-0.3326306641101837,
0.05956503003835678,
0.4721236824989319,
0.05577017739415169,
-0.25938376784324646,
0.2974856495857239,
-0.054522112011909485,
-0.08407491445541382,
0.06436826288700104,
0.2882598638534546,
0.4291481375694275,
0.20778673887252808,
-0.11136093735694885,
0.1713639497756958,
0.1456241011619568,
-0.0680617019534111,
0.058985635638237,
0.04044210910797119,
0.41936323046684265,
-0.3132340610027313,
0.16628596186637878,
0.10873551666736603,
-0.13227398693561554,
0.31476396322250366,
-0.02746441587805748,
0.7163371443748474,
-0.05032331123948097,
-0.03705175966024399,
-0.1435166299343109,
-0.012116767466068268,
-0.23586291074752808,
-0.13944202661514282,
-0.6274202466011047,
0.1356126219034195,
-0.04470054432749748,
0.07734020054340363,
0.11177767068147659,
-0.21200105547904968,
0.03446471318602562,
-0.2287580668926239,
0.5761772394180298,
0.5365762114524841,
0.45339876413345337,
-0.20049536228179932,
-0.24970224499702454,
-0.4111526608467102,
0.15466538071632385,
-0.07052749395370483,
0.13288375735282898,
0.0882304459810257,
0.30867692828178406,
-0.13629946112632751,
0.1898850053548813,
0.10294874012470245,
0.43983083963394165,
-0.19151856005191803,
0.09769202768802643,
-0.42730453610420227,
-0.11926321685314178,
0.23794889450073242,
0.31402140855789185,
-0.12239798158407211,
-0.03317421302199364,
0.14723198115825653,
-0.2594809830188751,
0.026834584772586823,
-0.25572168827056885,
0.12617093324661255,
-0.177634134888649,
0.23998181521892548,
0.42029061913490295,
0.2550695240497589,
0.4653469920158386,
0.09304913133382797,
-0.22248443961143494,
-0.2390587329864502,
-0.37548789381980896,
-0.19188150763511658,
-0.04374508559703827,
0.11290901899337769,
0.30587145686149597,
-0.10668235272169113,
0.38476890325546265,
-0.29157936573028564,
0.1641986072063446,
-0.11915893107652664,
0.1546403169631958,
-0.16727526485919952,
-0.1117936223745346,
0.18179383873939514,
0.18248294293880463,
0.005861514247953892,
0.05861706659197807,
0.08683155477046967,
-0.06921686977148056,
-0.34200727939605713,
-0.0011575110256671906,
0.3177967667579651,
-0.0657636970281601,
0.03641168400645256,
0.10981430858373642,
0.2601313591003418,
0.2480129599571228,
-0.05848793685436249,
-0.5286951065063477,
0.29060935974121094,
0.404107004404068,
-0.16637426614761353,
-0.34939098358154297,
0.07962226867675781,
0.3144536316394806,
0.16725507378578186,
-0.08844617009162903,
0.137821763753891,
-0.09061769396066666,
-0.16784749925136566,
0.0019330158829689026,
-0.15528857707977295
] |
https://github.com/huggingface/datasets/issues/288 | Error at the first example in README: AttributeError: module 'dill' has no attribute '_dill' | It looks like the bug comes from `dill`. Which version of `dill` are you using ? | /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:469: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:470: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:471: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:472: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:473: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:476: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "/Users/parasol_tree/Resource/019 - Github/AcademicEnglishToolkit /test.py", line 7, in <module>
import nlp
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/__init__.py", line 27, in <module>
from .arrow_dataset import Dataset
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/arrow_dataset.py", line 31, in <module>
from nlp.utils.py_utils import dumps
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/__init__.py", line 20, in <module>
from .download_manager import DownloadManager, GenerateMode
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/download_manager.py", line 25, in <module>
from .py_utils import flatten_nested, map_nested, size_str
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 244, in <module>
class Pickler(dill.Pickler):
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 247, in Pickler
dispatch = dill._dill.MetaCatchingDict(dill.Pickler.dispatch.copy())
AttributeError: module 'dill' has no attribute '_dill' | 16 | Error at the first example in README: AttributeError: module 'dill' has no attribute '_dill'
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:469: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:470: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:471: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:472: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:473: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:476: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "/Users/parasol_tree/Resource/019 - Github/AcademicEnglishToolkit /test.py", line 7, in <module>
import nlp
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/__init__.py", line 27, in <module>
from .arrow_dataset import Dataset
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/arrow_dataset.py", line 31, in <module>
from nlp.utils.py_utils import dumps
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/__init__.py", line 20, in <module>
from .download_manager import DownloadManager, GenerateMode
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/download_manager.py", line 25, in <module>
from .py_utils import flatten_nested, map_nested, size_str
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 244, in <module>
class Pickler(dill.Pickler):
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 247, in Pickler
dispatch = dill._dill.MetaCatchingDict(dill.Pickler.dispatch.copy())
AttributeError: module 'dill' has no attribute '_dill'
It looks like the bug comes from `dill`. Which version of `dill` are you using ? | [
0.07698409259319305,
-0.40209460258483887,
-0.17992113530635834,
0.06598198413848877,
0.14926886558532715,
-0.003346092998981476,
0.5573262572288513,
0.3920769989490509,
-0.011486434377729893,
0.26729369163513184,
-0.05244369059801102,
0.3347724378108978,
-0.050594478845596313,
-0.31200313568115234,
0.011163544841110706,
-0.32917651534080505,
0.08354651182889938,
0.27364951372146606,
-0.37094056606292725,
-0.27238357067108154,
-0.2335168868303299,
0.28005626797676086,
-0.07766331732273102,
0.24849729239940643,
-0.14810414612293243,
-0.034943386912345886,
0.12143950164318085,
0.10596130788326263,
0.06757640093564987,
-0.28865769505500793,
0.1965772658586502,
-0.174556702375412,
0.2275901585817337,
0.4768032729625702,
-0.00010438694152981043,
0.1361590474843979,
0.3375529646873474,
-0.034608758985996246,
-0.1342189460992813,
-0.3505926728248596,
0.4713912904262543,
0.05932149291038513,
0.33637750148773193,
-0.3500792682170868,
-0.05079076439142227,
-0.29696470499038696,
-0.09695765376091003,
-0.3089343309402466,
0.4441096782684326,
0.4418492913246155,
0.3010699450969696,
0.10265237092971802,
0.24469421803951263,
-0.16991515457630157,
-0.02083517611026764,
-0.02978343516588211,
-0.06779395043849945,
0.3753480911254883,
0.13835199177265167,
0.14741665124893188,
0.3823752701282501,
0.34246692061424255,
0.1609317660331726,
0.07760773599147797,
0.33932289481163025,
0.0322580486536026,
0.6600612998008728,
-0.45419782400131226,
-0.07750087231397629,
0.2736726999282837,
0.18128719925880432,
-0.11844395846128464,
-0.320980042219162,
0.1269780397415161,
0.006010466255247593,
-0.2475017011165619,
0.061675433069467545,
-0.06774747371673584,
-0.24967771768569946,
-0.03257438912987709,
0.4458368718624115,
-0.04426610469818115,
-0.177198588848114,
0.19539514183998108,
-0.018511146306991577,
0.1636364459991455,
-0.044930748641490936,
-0.05065452307462692,
0.027161402627825737,
-0.33402472734451294,
0.38720768690109253,
0.09286509454250336,
0.44849979877471924,
0.09601034969091415,
-0.0759614109992981,
-0.12198543548583984,
0.06254735589027405,
-0.6255777478218079,
-0.20340976119041443,
-0.291434109210968,
0.07395229488611221,
-0.012258753180503845,
0.11802235245704651,
0.2710874080657959,
-0.16345711052417755,
0.06675611436367035,
0.1067272424697876,
0.1606890857219696,
0.3354809284210205,
0.07939451932907104,
0.328011691570282,
0.16987377405166626,
-0.3021525740623474,
-0.12513868510723114,
-0.15678580105304718,
0.06409609317779541,
0.3410717248916626,
0.09396444261074066,
-0.5376571416854858,
-0.04864899814128876,
-0.19243741035461426,
0.0474514365196228,
-0.005581420846283436,
0.2568106949329376,
-0.037951547652482986,
0.19168120622634888,
0.41505134105682373,
0.11126706004142761,
-0.24542292952537537,
0.0046109771355986595,
-0.22293582558631897,
0.3555663824081421,
-0.07030688971281052,
-0.20205822587013245,
0.0587322823703289,
0.1554545760154724,
0.30146047472953796,
-0.09930939972400665,
0.13105443120002747,
-0.0825212150812149,
0.16957269608974457,
0.014668315649032593,
-0.039608173072338104,
0.15427647531032562,
-0.29427650570869446,
-0.04514184594154358,
0.26223841309547424,
-0.18552416563034058,
-0.26115521788597107,
0.09121742844581604,
-0.23356422781944275,
-0.00956229493021965,
-0.4541480541229248,
0.34820181131362915,
0.2507956027984619,
0.11042456328868866,
0.23384013772010803,
0.03049033135175705,
0.1052182987332344,
0.047062087804079056,
-0.10150934010744095,
-0.24462230503559113,
-0.10236191749572754,
-0.3306638300418854,
0.28488782048225403,
0.1544385850429535,
-0.05885232239961624,
-0.15748411417007446,
-0.14238479733467102,
-0.039736125618219376,
0.12016042321920395,
0.22023387253284454,
-0.13517671823501587,
-0.013514429330825806,
0.11746735870838165,
-0.17192426323890686,
0.6146841049194336,
-0.574514627456665,
0.10565504431724548,
-0.06110130250453949,
0.13710883259773254,
-0.04822370409965515,
-0.0108274444937706,
-0.07862057536840439,
0.14182443916797638,
-0.061727672815322876,
0.3198716640472412,
0.3495160937309265,
0.2515052556991577,
-0.11045803129673004,
-0.3646189272403717,
0.012271897867321968,
0.1300428807735443,
0.09103722870349884,
0.09657124429941177,
0.06349992007017136,
-0.05237031728029251,
-0.04806011915206909,
0.0647452101111412,
-0.15980634093284607,
0.004075541626662016,
0.12344298511743546,
0.08758470416069031,
-0.08677947521209717,
0.10082846879959106,
-0.17192548513412476,
-0.32303619384765625,
-0.05698315054178238,
-0.31471070647239685,
0.034375373274087906,
-0.015241414308547974,
-0.19136066734790802,
-0.19831928610801697,
0.012763017788529396,
0.11913026124238968,
-0.23375076055526733,
0.32200050354003906,
0.03483760729432106,
-0.013012856245040894,
0.16307570040225983,
-0.23216262459754944,
-0.032938577234745026,
-0.15124958753585815,
0.18153269588947296,
-0.13530398905277252,
0.16415666043758392,
-0.4232264459133148,
-0.2587801516056061,
-0.1687231957912445,
0.3535500168800354,
0.08731570839881897,
-0.32290300726890564,
-0.03989099711179733,
0.32104820013046265,
-0.06600609421730042,
-0.09631302952766418,
-0.3560892939567566,
-0.0151594877243042,
0.35642001032829285,
-0.1473700851202011,
0.04400881379842758,
0.3544331192970276,
0.11944331228733063,
-0.10679514706134796,
0.06604353338479996,
0.24427810311317444,
0.29759952425956726,
-0.02105148881673813,
0.28134119510650635,
0.19251832365989685,
0.03818535804748535,
0.12454169988632202,
-0.05835898220539093,
-0.18043293058872223,
0.1559881865978241,
0.3096718490123749,
0.11827711760997772,
-0.17865842580795288,
-0.3969522714614868,
-0.027768753468990326,
0.21053682267665863,
0.002968244254589081,
0.21260762214660645,
-0.030750401318073273,
-0.07518789917230606,
0.1257900893688202,
0.15584784746170044,
-0.07667485624551773,
0.1838897317647934,
0.009159824810922146,
0.13227951526641846,
0.07277994602918625,
-0.20344486832618713,
-0.14120401442050934,
0.11523373425006866,
-0.02688085287809372,
0.34978410601615906,
-0.0709347352385521,
-0.08731672912836075,
0.07851322740316391,
-0.08443339914083481,
-0.3782757818698883,
0.05666451156139374,
0.16578082740306854,
-0.08290964365005493,
0.037823475897312164,
-0.2627531588077545,
-0.02279551886022091,
-0.09478145837783813,
-0.22960838675498962,
0.13249599933624268,
-0.14374107122421265,
-0.014999017119407654,
0.1761467009782791,
-0.1750652939081192,
0.20525938272476196,
0.18839722871780396,
-0.05676548182964325,
0.09606793522834778,
0.3126210570335388,
-0.2592219114303589,
-0.07792828232049942,
-0.16635224223136902,
0.15538576245307922,
0.03306945040822029,
-0.08564229309558868,
0.19942699372768402,
-0.27558454871177673,
-0.12011458724737167,
0.14990128576755524,
-0.45208388566970825,
0.05243564024567604,
0.014011317864060402,
0.11484561115503311,
0.2227616310119629,
0.22152821719646454,
0.024877920746803284,
-0.34475672245025635,
0.21519914269447327,
-0.33492621779441833,
-0.025894222781062126,
-0.09424526244401932,
0.05397682264447212,
-0.09565254300832748,
-0.4885934591293335,
-0.6345104575157166,
-0.3095667362213135,
-0.5386679768562317,
0.018934227526187897,
0.14001095294952393,
0.37388521432876587,
0.3208156228065491,
0.23707851767539978,
0.45750516653060913,
0.3019063472747803,
0.44526684284210205,
0.05901046469807625,
0.027097102254629135,
0.30702921748161316,
-0.46468618512153625,
-0.37876391410827637,
-0.11513306200504303,
-0.15162985026836395,
0.304416298866272,
-0.16145510971546173,
-0.05240575224161148,
-0.31774017214775085,
-0.27428892254829407,
0.2044689655303955,
-0.26544487476348877,
-0.08346452564001083,
0.07806757092475891,
0.1683277040719986,
-0.22344183921813965,
-0.14726980030536652,
0.03980569168925285,
0.19829857349395752,
-0.08997104316949844,
0.05038793385028839,
0.13226768374443054,
0.4105212688446045,
-0.13552464544773102,
0.6412839889526367,
0.15359072387218475,
-0.5416246652603149,
0.13155420124530792,
0.09418097138404846,
0.17842838168144226,
0.16107887029647827,
-0.07700145244598389,
0.0641210749745369,
0.1061396598815918,
0.3015512228012085,
-0.060632988810539246,
-0.15287518501281738,
-0.2624876797199249,
-0.24856549501419067,
0.05519205704331398,
-0.20936495065689087,
-0.0992521345615387,
-0.1903230994939804,
-0.22223326563835144,
0.026647254824638367,
-0.17042914032936096,
0.12949272990226746,
-0.03028050810098648,
0.2669643461704254,
0.14049381017684937,
0.37437015771865845,
-0.02991437166929245,
0.030931556597352028,
-0.14466550946235657,
-0.17214305698871613,
-0.16813883185386658,
0.26893869042396545,
0.03915827348828316,
0.350930780172348,
0.06937715411186218,
-0.0899105966091156,
0.09542481601238251,
0.10213867574930191,
0.3387724459171295,
-0.14164727926254272,
-0.25481659173965454,
0.3434723913669586,
-0.03693407401442528,
-0.42666396498680115,
-0.10194022953510284,
-0.2980020046234131,
-0.047972422093153,
0.4439179003238678,
0.009949781000614166,
-0.25685566663742065,
-0.271645724773407,
0.24550563097000122,
-0.13020412623882294,
-0.06763855367898941,
0.07218090444803238,
-0.13392701745033264,
-0.46094369888305664,
-0.3373050093650818,
-0.13929632306098938,
0.19582457840442657,
0.18347500264644623,
-0.14350657165050507,
-0.14980949461460114,
0.0016158558428287506,
0.01001545786857605,
0.05037146061658859,
0.19008855521678925,
0.20870965719223022,
-0.12782761454582214,
-0.14013926684856415,
0.038227543234825134,
0.28630977869033813,
0.3246234953403473,
0.08555679023265839,
-0.3335416615009308,
-0.2565039098262787,
0.17059063911437988,
-0.06748687475919724,
0.14526841044425964,
0.024116016924381256,
-0.15182606875896454,
-0.05746721476316452,
-0.40395477414131165,
0.03528011962771416,
0.3928395211696625,
0.23669463396072388,
0.4728351831436157,
0.23306621611118317,
0.041486889123916626,
-0.3156416118144989,
0.2783520519733429,
0.11273911595344543,
0.016891412436962128,
0.39148855209350586,
-0.11730325222015381,
-0.13399024307727814,
0.10714226961135864,
0.2551785111427307,
0.779651403427124,
0.1979435831308365,
0.079877570271492,
0.39825665950775146,
-0.14910826086997986,
0.27137646079063416,
0.021491065621376038,
0.12877850234508514,
-0.20854364335536957,
-0.1011962741613388,
0.03271324187517166,
-0.09504158794879913,
0.29608097672462463,
-0.16588623821735382,
-0.47620081901550293,
-0.008899637497961521,
-0.3046588897705078,
-0.0855446606874466,
-0.010394331067800522,
0.2513854205608368,
0.05120602995157242,
0.000752817839384079,
0.08318375051021576,
0.19367462396621704,
0.14291143417358398,
0.18628571927547455,
-0.21740016341209412,
-0.19222550094127655,
-0.16075116395950317,
-0.3412708640098572,
-0.051872678101062775,
0.15318304300308228,
-0.21826373040676117,
0.43618524074554443,
0.1955287605524063,
-0.3141539692878723,
0.09287622570991516,
0.31229928135871887,
0.4542844295501709,
-0.19127479195594788,
-0.13730262219905853,
-0.04741937294602394,
-0.13020750880241394,
-0.04390145093202591,
-0.15223145484924316,
0.18011555075645447,
0.5092206001281738,
-0.2898779511451721,
-0.13600903749465942,
0.2658407390117645,
0.004467361606657505,
0.22901763021945953,
-0.40293166041374207,
0.014423850923776627,
-0.20159964263439178,
-0.0062909373082220554,
0.20797567069530487,
-0.05272209644317627,
-0.5108948349952698,
-0.12159223854541779,
0.24275897443294525,
-0.016855910420417786,
-0.33286914229393005,
-0.029396191239356995,
0.1110495924949646,
-0.2632743716239929,
0.06321953982114792,
0.07045040279626846,
0.3525017201900482,
0.1392202079296112,
0.3493533730506897,
-0.036030713468790054,
-0.2955446243286133,
-0.2647210359573364,
-0.27265286445617676,
0.031137442216277122,
0.011248871684074402,
0.32448792457580566,
-0.2756335735321045,
-0.32464683055877686,
-0.05973079055547714,
0.21165327727794647,
-0.0009635984897613525,
0.29780107736587524,
-0.2246958613395691,
-0.16323351860046387,
-0.19729726016521454,
0.19181564450263977,
-0.17148089408874512,
0.30400019884109497,
-0.3490908145904541,
0.42256826162338257,
0.11372338235378265,
-0.04307236522436142,
-0.4419592320919037,
0.16683533787727356,
-0.036880794912576675,
0.02001899853348732,
-0.1581537127494812,
-0.21475115418434143,
0.16766108572483063,
0.2444768100976944,
0.2284802496433258,
0.06948722898960114,
-0.18884047865867615,
-0.2605835795402527,
-0.17047247290611267,
0.06985537707805634,
-0.21164101362228394,
-0.18176239728927612,
0.24041861295700073,
0.09998206794261932,
-0.18442080914974213,
0.08633250743150711,
-0.029288578778505325,
-0.13208948075771332,
-0.001998528838157654,
0.5582343339920044,
0.03873417526483536,
0.5644740462303162,
0.38691574335098267,
0.008912395685911179,
-0.10020700097084045,
0.13314427435398102,
-0.13454508781433105,
0.02135099470615387,
0.059749726206064224,
-0.2254040688276291,
-0.3498136103153229,
-0.1373032033443451,
-0.1616210788488388,
-0.14028975367546082,
0.22077825665473938,
-0.16355420649051666,
0.055381301790475845,
-0.26371413469314575,
0.12106943130493164,
0.30338332056999207,
-0.344073623418808,
0.15444837510585785,
0.08660866320133209,
0.301363468170166,
-0.26283425092697144,
0.2679736912250519,
-0.07427392899990082,
0.04465296491980553,
0.21716871857643127,
0.24855205416679382,
-0.11638772487640381,
-0.017700180411338806,
0.07168133556842804,
0.08110275119543076,
-0.09124960750341415,
-0.2889394760131836,
0.3252561688423157,
0.2326952964067459,
-0.1652373969554901,
0.08739958703517914,
0.20998187363147736,
-0.021731454879045486,
0.16572456061840057,
0.17539379000663757,
-0.11326678842306137,
0.34353238344192505,
-0.08948007971048355,
-0.19292429089546204,
0.3750656545162201,
0.11596284806728363,
0.2090839445590973,
0.20963123440742493,
0.15933239459991455,
0.2247309386730194,
0.08408068865537643,
0.165045827627182,
-0.1709306687116623,
-0.08286050707101822,
-0.051477301865816116,
0.13436608016490936,
-0.327095091342926,
-0.10759669542312622,
0.03502926975488663,
-0.16096991300582886,
-0.15086230635643005,
-0.43075087666511536,
0.092148557305336,
-0.07098092138767242,
0.19772151112556458,
0.0450751818716526,
-0.1878478080034256,
-0.3252623379230499,
0.12650015950202942,
-0.06907742470502853,
0.3112432658672333,
-0.08858609199523926,
0.19460664689540863,
0.31892532110214233,
-0.10012544691562653,
-0.3750418722629547,
0.3328014314174652,
0.3252198398113251,
0.5558352470397949,
-0.24630528688430786,
0.062356382608413696,
-0.02717887982726097,
-0.25852760672569275,
0.13587984442710876,
0.006971385329961777,
0.15259793400764465,
0.009646959602832794,
0.266426682472229,
0.18729524314403534,
-0.28422388434410095,
0.09371404349803925,
0.04912131279706955,
-0.02833222597837448,
-0.22251316905021667,
0.6058992743492126,
-0.30910226702690125,
0.024186156690120697,
-0.1419740468263626,
-0.025012843310832977,
-0.5140054225921631,
-0.18943823873996735,
0.13905048370361328,
0.007046339102089405,
0.02703152969479561,
-0.29334044456481934,
0.12280318140983582,
-0.11286948621273041,
0.358493447303772,
0.0038745850324630737,
0.3682336211204529,
0.029319990426301956,
-0.004502460360527039,
-0.314212828874588,
0.3037097752094269,
-0.11172753572463989,
-0.030564701184630394,
0.10008148103952408,
0.07312101125717163,
-0.20997145771980286,
0.03249845281243324,
0.2157517969608307,
-0.1540495604276657,
0.010349287651479244,
0.13311418890953064,
-0.4652896225452423,
-0.05194312706589699,
-0.3202303647994995,
-0.11838111281394958,
0.32707926630973816,
-0.29097795486450195,
0.0002813264727592468,
-0.26574069261550903,
0.18858325481414795,
-0.3409993648529053,
0.08758392930030823,
0.08087049424648285,
0.4352753162384033,
0.17728546261787415,
0.17987048625946045,
0.3052108585834503,
-0.043241895735263824,
-0.3241828382015228,
0.1009184718132019,
-0.18349631130695343,
-0.21108967065811157,
0.2475278675556183,
0.23514801263809204,
-0.06517183780670166,
-0.16149277985095978,
-0.48832014203071594,
-0.2035156786441803,
0.5369020700454712,
-0.0041248127818107605,
-0.2707725465297699,
-0.23055709898471832,
0.22513389587402344,
0.06293777376413345,
-0.000981261138804257,
0.0747712254524231,
0.23143598437309265,
-0.014073595404624939,
0.1076156497001648,
-0.44032740592956543,
-0.42131635546684265,
0.6965723633766174,
-0.053116634488105774,
-0.2233036309480667,
-0.32838746905326843,
0.14280380308628082,
0.047794945538043976,
0.21800537407398224,
-0.7143524885177612,
-0.11810485273599625,
0.34353503584861755,
-0.10297314077615738,
-0.36630532145500183,
0.2125731110572815,
0.1637895554304123,
-0.15592846274375916,
-0.12147244811058044,
0.31155332922935486,
0.07703495025634766,
-0.05439998209476471,
-0.028304066509008408,
-0.3904365301132202
] |
https://github.com/huggingface/datasets/issues/288 | Error at the first example in README: AttributeError: module 'dill' has no attribute '_dill' | 0.2.6 is three years old now, maybe try a more recent one, e.g. the current 0.3.2 if you can? | /Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:469: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:470: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:471: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:472: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:473: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:476: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "/Users/parasol_tree/Resource/019 - Github/AcademicEnglishToolkit /test.py", line 7, in <module>
import nlp
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/__init__.py", line 27, in <module>
from .arrow_dataset import Dataset
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/arrow_dataset.py", line 31, in <module>
from nlp.utils.py_utils import dumps
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/__init__.py", line 20, in <module>
from .download_manager import DownloadManager, GenerateMode
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/download_manager.py", line 25, in <module>
from .py_utils import flatten_nested, map_nested, size_str
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 244, in <module>
class Pickler(dill.Pickler):
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 247, in Pickler
dispatch = dill._dill.MetaCatchingDict(dill.Pickler.dispatch.copy())
AttributeError: module 'dill' has no attribute '_dill' | 19 | Error at the first example in README: AttributeError: module 'dill' has no attribute '_dill'
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:469: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:470: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:471: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:472: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:473: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:476: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
/Users/parasol_tree/anaconda3/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "/Users/parasol_tree/Resource/019 - Github/AcademicEnglishToolkit /test.py", line 7, in <module>
import nlp
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/__init__.py", line 27, in <module>
from .arrow_dataset import Dataset
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/arrow_dataset.py", line 31, in <module>
from nlp.utils.py_utils import dumps
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/__init__.py", line 20, in <module>
from .download_manager import DownloadManager, GenerateMode
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/download_manager.py", line 25, in <module>
from .py_utils import flatten_nested, map_nested, size_str
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 244, in <module>
class Pickler(dill.Pickler):
File "/Users/parasol_tree/anaconda3/lib/python3.6/site-packages/nlp/utils/py_utils.py", line 247, in Pickler
dispatch = dill._dill.MetaCatchingDict(dill.Pickler.dispatch.copy())
AttributeError: module 'dill' has no attribute '_dill'
0.2.6 is three years old now, maybe try a more recent one, e.g. the current 0.3.2 if you can? | [
0.07698409259319305,
-0.40209460258483887,
-0.17992113530635834,
0.06598198413848877,
0.14926886558532715,
-0.003346092998981476,
0.5573262572288513,
0.3920769989490509,
-0.011486434377729893,
0.26729369163513184,
-0.05244369059801102,
0.3347724378108978,
-0.050594478845596313,
-0.31200313568115234,
0.011163544841110706,
-0.32917651534080505,
0.08354651182889938,
0.27364951372146606,
-0.37094056606292725,
-0.27238357067108154,
-0.2335168868303299,
0.28005626797676086,
-0.07766331732273102,
0.24849729239940643,
-0.14810414612293243,
-0.034943386912345886,
0.12143950164318085,
0.10596130788326263,
0.06757640093564987,
-0.28865769505500793,
0.1965772658586502,
-0.174556702375412,
0.2275901585817337,
0.4768032729625702,
-0.00010438694152981043,
0.1361590474843979,
0.3375529646873474,
-0.034608758985996246,
-0.1342189460992813,
-0.3505926728248596,
0.4713912904262543,
0.05932149291038513,
0.33637750148773193,
-0.3500792682170868,
-0.05079076439142227,
-0.29696470499038696,
-0.09695765376091003,
-0.3089343309402466,
0.4441096782684326,
0.4418492913246155,
0.3010699450969696,
0.10265237092971802,
0.24469421803951263,
-0.16991515457630157,
-0.02083517611026764,
-0.02978343516588211,
-0.06779395043849945,
0.3753480911254883,
0.13835199177265167,
0.14741665124893188,
0.3823752701282501,
0.34246692061424255,
0.1609317660331726,
0.07760773599147797,
0.33932289481163025,
0.0322580486536026,
0.6600612998008728,
-0.45419782400131226,
-0.07750087231397629,
0.2736726999282837,
0.18128719925880432,
-0.11844395846128464,
-0.320980042219162,
0.1269780397415161,
0.006010466255247593,
-0.2475017011165619,
0.061675433069467545,
-0.06774747371673584,
-0.24967771768569946,
-0.03257438912987709,
0.4458368718624115,
-0.04426610469818115,
-0.177198588848114,
0.19539514183998108,
-0.018511146306991577,
0.1636364459991455,
-0.044930748641490936,
-0.05065452307462692,
0.027161402627825737,
-0.33402472734451294,
0.38720768690109253,
0.09286509454250336,
0.44849979877471924,
0.09601034969091415,
-0.0759614109992981,
-0.12198543548583984,
0.06254735589027405,
-0.6255777478218079,
-0.20340976119041443,
-0.291434109210968,
0.07395229488611221,
-0.012258753180503845,
0.11802235245704651,
0.2710874080657959,
-0.16345711052417755,
0.06675611436367035,
0.1067272424697876,
0.1606890857219696,
0.3354809284210205,
0.07939451932907104,
0.328011691570282,
0.16987377405166626,
-0.3021525740623474,
-0.12513868510723114,
-0.15678580105304718,
0.06409609317779541,
0.3410717248916626,
0.09396444261074066,
-0.5376571416854858,
-0.04864899814128876,
-0.19243741035461426,
0.0474514365196228,
-0.005581420846283436,
0.2568106949329376,
-0.037951547652482986,
0.19168120622634888,
0.41505134105682373,
0.11126706004142761,
-0.24542292952537537,
0.0046109771355986595,
-0.22293582558631897,
0.3555663824081421,
-0.07030688971281052,
-0.20205822587013245,
0.0587322823703289,
0.1554545760154724,
0.30146047472953796,
-0.09930939972400665,
0.13105443120002747,
-0.0825212150812149,
0.16957269608974457,
0.014668315649032593,
-0.039608173072338104,
0.15427647531032562,
-0.29427650570869446,
-0.04514184594154358,
0.26223841309547424,
-0.18552416563034058,
-0.26115521788597107,
0.09121742844581604,
-0.23356422781944275,
-0.00956229493021965,
-0.4541480541229248,
0.34820181131362915,
0.2507956027984619,
0.11042456328868866,
0.23384013772010803,
0.03049033135175705,
0.1052182987332344,
0.047062087804079056,
-0.10150934010744095,
-0.24462230503559113,
-0.10236191749572754,
-0.3306638300418854,
0.28488782048225403,
0.1544385850429535,
-0.05885232239961624,
-0.15748411417007446,
-0.14238479733467102,
-0.039736125618219376,
0.12016042321920395,
0.22023387253284454,
-0.13517671823501587,
-0.013514429330825806,
0.11746735870838165,
-0.17192426323890686,
0.6146841049194336,
-0.574514627456665,
0.10565504431724548,
-0.06110130250453949,
0.13710883259773254,
-0.04822370409965515,
-0.0108274444937706,
-0.07862057536840439,
0.14182443916797638,
-0.061727672815322876,
0.3198716640472412,
0.3495160937309265,
0.2515052556991577,
-0.11045803129673004,
-0.3646189272403717,
0.012271897867321968,
0.1300428807735443,
0.09103722870349884,
0.09657124429941177,
0.06349992007017136,
-0.05237031728029251,
-0.04806011915206909,
0.0647452101111412,
-0.15980634093284607,
0.004075541626662016,
0.12344298511743546,
0.08758470416069031,
-0.08677947521209717,
0.10082846879959106,
-0.17192548513412476,
-0.32303619384765625,
-0.05698315054178238,
-0.31471070647239685,
0.034375373274087906,
-0.015241414308547974,
-0.19136066734790802,
-0.19831928610801697,
0.012763017788529396,
0.11913026124238968,
-0.23375076055526733,
0.32200050354003906,
0.03483760729432106,
-0.013012856245040894,
0.16307570040225983,
-0.23216262459754944,
-0.032938577234745026,
-0.15124958753585815,
0.18153269588947296,
-0.13530398905277252,
0.16415666043758392,
-0.4232264459133148,
-0.2587801516056061,
-0.1687231957912445,
0.3535500168800354,
0.08731570839881897,
-0.32290300726890564,
-0.03989099711179733,
0.32104820013046265,
-0.06600609421730042,
-0.09631302952766418,
-0.3560892939567566,
-0.0151594877243042,
0.35642001032829285,
-0.1473700851202011,
0.04400881379842758,
0.3544331192970276,
0.11944331228733063,
-0.10679514706134796,
0.06604353338479996,
0.24427810311317444,
0.29759952425956726,
-0.02105148881673813,
0.28134119510650635,
0.19251832365989685,
0.03818535804748535,
0.12454169988632202,
-0.05835898220539093,
-0.18043293058872223,
0.1559881865978241,
0.3096718490123749,
0.11827711760997772,
-0.17865842580795288,
-0.3969522714614868,
-0.027768753468990326,
0.21053682267665863,
0.002968244254589081,
0.21260762214660645,
-0.030750401318073273,
-0.07518789917230606,
0.1257900893688202,
0.15584784746170044,
-0.07667485624551773,
0.1838897317647934,
0.009159824810922146,
0.13227951526641846,
0.07277994602918625,
-0.20344486832618713,
-0.14120401442050934,
0.11523373425006866,
-0.02688085287809372,
0.34978410601615906,
-0.0709347352385521,
-0.08731672912836075,
0.07851322740316391,
-0.08443339914083481,
-0.3782757818698883,
0.05666451156139374,
0.16578082740306854,
-0.08290964365005493,
0.037823475897312164,
-0.2627531588077545,
-0.02279551886022091,
-0.09478145837783813,
-0.22960838675498962,
0.13249599933624268,
-0.14374107122421265,
-0.014999017119407654,
0.1761467009782791,
-0.1750652939081192,
0.20525938272476196,
0.18839722871780396,
-0.05676548182964325,
0.09606793522834778,
0.3126210570335388,
-0.2592219114303589,
-0.07792828232049942,
-0.16635224223136902,
0.15538576245307922,
0.03306945040822029,
-0.08564229309558868,
0.19942699372768402,
-0.27558454871177673,
-0.12011458724737167,
0.14990128576755524,
-0.45208388566970825,
0.05243564024567604,
0.014011317864060402,
0.11484561115503311,
0.2227616310119629,
0.22152821719646454,
0.024877920746803284,
-0.34475672245025635,
0.21519914269447327,
-0.33492621779441833,
-0.025894222781062126,
-0.09424526244401932,
0.05397682264447212,
-0.09565254300832748,
-0.4885934591293335,
-0.6345104575157166,
-0.3095667362213135,
-0.5386679768562317,
0.018934227526187897,
0.14001095294952393,
0.37388521432876587,
0.3208156228065491,
0.23707851767539978,
0.45750516653060913,
0.3019063472747803,
0.44526684284210205,
0.05901046469807625,
0.027097102254629135,
0.30702921748161316,
-0.46468618512153625,
-0.37876391410827637,
-0.11513306200504303,
-0.15162985026836395,
0.304416298866272,
-0.16145510971546173,
-0.05240575224161148,
-0.31774017214775085,
-0.27428892254829407,
0.2044689655303955,
-0.26544487476348877,
-0.08346452564001083,
0.07806757092475891,
0.1683277040719986,
-0.22344183921813965,
-0.14726980030536652,
0.03980569168925285,
0.19829857349395752,
-0.08997104316949844,
0.05038793385028839,
0.13226768374443054,
0.4105212688446045,
-0.13552464544773102,
0.6412839889526367,
0.15359072387218475,
-0.5416246652603149,
0.13155420124530792,
0.09418097138404846,
0.17842838168144226,
0.16107887029647827,
-0.07700145244598389,
0.0641210749745369,
0.1061396598815918,
0.3015512228012085,
-0.060632988810539246,
-0.15287518501281738,
-0.2624876797199249,
-0.24856549501419067,
0.05519205704331398,
-0.20936495065689087,
-0.0992521345615387,
-0.1903230994939804,
-0.22223326563835144,
0.026647254824638367,
-0.17042914032936096,
0.12949272990226746,
-0.03028050810098648,
0.2669643461704254,
0.14049381017684937,
0.37437015771865845,
-0.02991437166929245,
0.030931556597352028,
-0.14466550946235657,
-0.17214305698871613,
-0.16813883185386658,
0.26893869042396545,
0.03915827348828316,
0.350930780172348,
0.06937715411186218,
-0.0899105966091156,
0.09542481601238251,
0.10213867574930191,
0.3387724459171295,
-0.14164727926254272,
-0.25481659173965454,
0.3434723913669586,
-0.03693407401442528,
-0.42666396498680115,
-0.10194022953510284,
-0.2980020046234131,
-0.047972422093153,
0.4439179003238678,
0.009949781000614166,
-0.25685566663742065,
-0.271645724773407,
0.24550563097000122,
-0.13020412623882294,
-0.06763855367898941,
0.07218090444803238,
-0.13392701745033264,
-0.46094369888305664,
-0.3373050093650818,
-0.13929632306098938,
0.19582457840442657,
0.18347500264644623,
-0.14350657165050507,
-0.14980949461460114,
0.0016158558428287506,
0.01001545786857605,
0.05037146061658859,
0.19008855521678925,
0.20870965719223022,
-0.12782761454582214,
-0.14013926684856415,
0.038227543234825134,
0.28630977869033813,
0.3246234953403473,
0.08555679023265839,
-0.3335416615009308,
-0.2565039098262787,
0.17059063911437988,
-0.06748687475919724,
0.14526841044425964,
0.024116016924381256,
-0.15182606875896454,
-0.05746721476316452,
-0.40395477414131165,
0.03528011962771416,
0.3928395211696625,
0.23669463396072388,
0.4728351831436157,
0.23306621611118317,
0.041486889123916626,
-0.3156416118144989,
0.2783520519733429,
0.11273911595344543,
0.016891412436962128,
0.39148855209350586,
-0.11730325222015381,
-0.13399024307727814,
0.10714226961135864,
0.2551785111427307,
0.779651403427124,
0.1979435831308365,
0.079877570271492,
0.39825665950775146,
-0.14910826086997986,
0.27137646079063416,
0.021491065621376038,
0.12877850234508514,
-0.20854364335536957,
-0.1011962741613388,
0.03271324187517166,
-0.09504158794879913,
0.29608097672462463,
-0.16588623821735382,
-0.47620081901550293,
-0.008899637497961521,
-0.3046588897705078,
-0.0855446606874466,
-0.010394331067800522,
0.2513854205608368,
0.05120602995157242,
0.000752817839384079,
0.08318375051021576,
0.19367462396621704,
0.14291143417358398,
0.18628571927547455,
-0.21740016341209412,
-0.19222550094127655,
-0.16075116395950317,
-0.3412708640098572,
-0.051872678101062775,
0.15318304300308228,
-0.21826373040676117,
0.43618524074554443,
0.1955287605524063,
-0.3141539692878723,
0.09287622570991516,
0.31229928135871887,
0.4542844295501709,
-0.19127479195594788,
-0.13730262219905853,
-0.04741937294602394,
-0.13020750880241394,
-0.04390145093202591,
-0.15223145484924316,
0.18011555075645447,
0.5092206001281738,
-0.2898779511451721,
-0.13600903749465942,
0.2658407390117645,
0.004467361606657505,
0.22901763021945953,
-0.40293166041374207,
0.014423850923776627,
-0.20159964263439178,
-0.0062909373082220554,
0.20797567069530487,
-0.05272209644317627,
-0.5108948349952698,
-0.12159223854541779,
0.24275897443294525,
-0.016855910420417786,
-0.33286914229393005,
-0.029396191239356995,
0.1110495924949646,
-0.2632743716239929,
0.06321953982114792,
0.07045040279626846,
0.3525017201900482,
0.1392202079296112,
0.3493533730506897,
-0.036030713468790054,
-0.2955446243286133,
-0.2647210359573364,
-0.27265286445617676,
0.031137442216277122,
0.011248871684074402,
0.32448792457580566,
-0.2756335735321045,
-0.32464683055877686,
-0.05973079055547714,
0.21165327727794647,
-0.0009635984897613525,
0.29780107736587524,
-0.2246958613395691,
-0.16323351860046387,
-0.19729726016521454,
0.19181564450263977,
-0.17148089408874512,
0.30400019884109497,
-0.3490908145904541,
0.42256826162338257,
0.11372338235378265,
-0.04307236522436142,
-0.4419592320919037,
0.16683533787727356,
-0.036880794912576675,
0.02001899853348732,
-0.1581537127494812,
-0.21475115418434143,
0.16766108572483063,
0.2444768100976944,
0.2284802496433258,
0.06948722898960114,
-0.18884047865867615,
-0.2605835795402527,
-0.17047247290611267,
0.06985537707805634,
-0.21164101362228394,
-0.18176239728927612,
0.24041861295700073,
0.09998206794261932,
-0.18442080914974213,
0.08633250743150711,
-0.029288578778505325,
-0.13208948075771332,
-0.001998528838157654,
0.5582343339920044,
0.03873417526483536,
0.5644740462303162,
0.38691574335098267,
0.008912395685911179,
-0.10020700097084045,
0.13314427435398102,
-0.13454508781433105,
0.02135099470615387,
0.059749726206064224,
-0.2254040688276291,
-0.3498136103153229,
-0.1373032033443451,
-0.1616210788488388,
-0.14028975367546082,
0.22077825665473938,
-0.16355420649051666,
0.055381301790475845,
-0.26371413469314575,
0.12106943130493164,
0.30338332056999207,
-0.344073623418808,
0.15444837510585785,
0.08660866320133209,
0.301363468170166,
-0.26283425092697144,
0.2679736912250519,
-0.07427392899990082,
0.04465296491980553,
0.21716871857643127,
0.24855205416679382,
-0.11638772487640381,
-0.017700180411338806,
0.07168133556842804,
0.08110275119543076,
-0.09124960750341415,
-0.2889394760131836,
0.3252561688423157,
0.2326952964067459,
-0.1652373969554901,
0.08739958703517914,
0.20998187363147736,
-0.021731454879045486,
0.16572456061840057,
0.17539379000663757,
-0.11326678842306137,
0.34353238344192505,
-0.08948007971048355,
-0.19292429089546204,
0.3750656545162201,
0.11596284806728363,
0.2090839445590973,
0.20963123440742493,
0.15933239459991455,
0.2247309386730194,
0.08408068865537643,
0.165045827627182,
-0.1709306687116623,
-0.08286050707101822,
-0.051477301865816116,
0.13436608016490936,
-0.327095091342926,
-0.10759669542312622,
0.03502926975488663,
-0.16096991300582886,
-0.15086230635643005,
-0.43075087666511536,
0.092148557305336,
-0.07098092138767242,
0.19772151112556458,
0.0450751818716526,
-0.1878478080034256,
-0.3252623379230499,
0.12650015950202942,
-0.06907742470502853,
0.3112432658672333,
-0.08858609199523926,
0.19460664689540863,
0.31892532110214233,
-0.10012544691562653,
-0.3750418722629547,
0.3328014314174652,
0.3252198398113251,
0.5558352470397949,
-0.24630528688430786,
0.062356382608413696,
-0.02717887982726097,
-0.25852760672569275,
0.13587984442710876,
0.006971385329961777,
0.15259793400764465,
0.009646959602832794,
0.266426682472229,
0.18729524314403534,
-0.28422388434410095,
0.09371404349803925,
0.04912131279706955,
-0.02833222597837448,
-0.22251316905021667,
0.6058992743492126,
-0.30910226702690125,
0.024186156690120697,
-0.1419740468263626,
-0.025012843310832977,
-0.5140054225921631,
-0.18943823873996735,
0.13905048370361328,
0.007046339102089405,
0.02703152969479561,
-0.29334044456481934,
0.12280318140983582,
-0.11286948621273041,
0.358493447303772,
0.0038745850324630737,
0.3682336211204529,
0.029319990426301956,
-0.004502460360527039,
-0.314212828874588,
0.3037097752094269,
-0.11172753572463989,
-0.030564701184630394,
0.10008148103952408,
0.07312101125717163,
-0.20997145771980286,
0.03249845281243324,
0.2157517969608307,
-0.1540495604276657,
0.010349287651479244,
0.13311418890953064,
-0.4652896225452423,
-0.05194312706589699,
-0.3202303647994995,
-0.11838111281394958,
0.32707926630973816,
-0.29097795486450195,
0.0002813264727592468,
-0.26574069261550903,
0.18858325481414795,
-0.3409993648529053,
0.08758392930030823,
0.08087049424648285,
0.4352753162384033,
0.17728546261787415,
0.17987048625946045,
0.3052108585834503,
-0.043241895735263824,
-0.3241828382015228,
0.1009184718132019,
-0.18349631130695343,
-0.21108967065811157,
0.2475278675556183,
0.23514801263809204,
-0.06517183780670166,
-0.16149277985095978,
-0.48832014203071594,
-0.2035156786441803,
0.5369020700454712,
-0.0041248127818107605,
-0.2707725465297699,
-0.23055709898471832,
0.22513389587402344,
0.06293777376413345,
-0.000981261138804257,
0.0747712254524231,
0.23143598437309265,
-0.014073595404624939,
0.1076156497001648,
-0.44032740592956543,
-0.42131635546684265,
0.6965723633766174,
-0.053116634488105774,
-0.2233036309480667,
-0.32838746905326843,
0.14280380308628082,
0.047794945538043976,
0.21800537407398224,
-0.7143524885177612,
-0.11810485273599625,
0.34353503584861755,
-0.10297314077615738,
-0.36630532145500183,
0.2125731110572815,
0.1637895554304123,
-0.15592846274375916,
-0.12147244811058044,
0.31155332922935486,
0.07703495025634766,
-0.05439998209476471,
-0.028304066509008408,
-0.3904365301132202
] |
https://github.com/huggingface/datasets/issues/281 | Private/sensitive data | Hi @MFreidank, you should already be able to load a dataset from local sources, indeed. (ping @lhoestq and @jplu)
We're also thinking about the ability to host private datasets on a hosted bucket with permission management, but that's further down the road. | Hi all,
Thanks for this fantastic library, it makes it very easy to do prototyping for NLP projects interchangeably between TF/Pytorch.
Unfortunately, there is data that cannot easily be shared publicly as it may contain sensitive information.
Is there support/a plan to support such data with NLP, e.g. by reading it from local sources?
Use case flow could look like this: use NLP to prototype an approach on similar, public data and apply the resulting prototype on sensitive/private data without the need to rethink data processing pipelines.
Many thanks for your responses ahead of time and kind regards,
MFreidank | 42 | Private/sensitive data
Hi all,
Thanks for this fantastic library, it makes it very easy to do prototyping for NLP projects interchangeably between TF/Pytorch.
Unfortunately, there is data that cannot easily be shared publicly as it may contain sensitive information.
Is there support/a plan to support such data with NLP, e.g. by reading it from local sources?
Use case flow could look like this: use NLP to prototype an approach on similar, public data and apply the resulting prototype on sensitive/private data without the need to rethink data processing pipelines.
Many thanks for your responses ahead of time and kind regards,
MFreidank
Hi @MFreidank, you should already be able to load a dataset from local sources, indeed. (ping @lhoestq and @jplu)
We're also thinking about the ability to host private datasets on a hosted bucket with permission management, but that's further down the road. | [
-0.07074551284313202,
0.4125887155532837,
-0.15505734086036682,
0.23369506001472473,
-0.3745613098144531,
-0.31046777963638306,
0.1758049726486206,
0.274107962846756,
-0.18740275502204895,
0.0843258798122406,
-0.09903468191623688,
0.23551195859909058,
-0.17405079305171967,
0.4147525131702423,
0.15612389147281647,
-0.1410624384880066,
-0.1745983064174652,
0.32797038555145264,
0.020436443388462067,
0.12347757816314697,
0.2168062925338745,
-0.0035432428121566772,
-0.13980667293071747,
0.18103983998298645,
0.09574934840202332,
-0.08277671039104462,
0.07685841619968414,
-0.07090293616056442,
-0.005191180855035782,
-0.23778393864631653,
0.1994738131761551,
0.267477422952652,
0.3569663465023041,
0.11032208800315857,
-0.00011817559425253421,
-0.06187986582517624,
-0.007754325866699219,
-0.09154501557350159,
0.10147081315517426,
-0.3869073987007141,
0.09095393866300583,
-0.37632104754447937,
0.11612669378519058,
-0.09428644925355911,
-0.6016395688056946,
-0.22376994788646698,
0.2233298420906067,
-0.20567618310451508,
0.28565850853919983,
-0.14142753183841705,
0.08981321007013321,
0.42852407693862915,
-0.04264194890856743,
0.4334453344345093,
0.26794809103012085,
0.04255295172333717,
-0.3776562809944153,
-0.23143406212329865,
0.4403621554374695,
0.06607861816883087,
-0.1837640404701233,
0.0795593410730362,
-0.10583404451608658,
0.037028562277555466,
0.20910876989364624,
-0.053561992943286896,
-0.26361775398254395,
-0.42295363545417786,
-0.04179698973894119,
0.44769567251205444,
0.6776381731033325,
-0.055322274565696716,
-0.30273550748825073,
-0.19766268134117126,
0.049747247248888016,
-0.12273100018501282,
0.04379437491297722,
0.3050142824649811,
-0.301239013671875,
0.231172576546669,
-0.23479092121124268,
-0.5339362621307373,
-0.5878560543060303,
0.4005849361419678,
0.3250869810581207,
0.17259399592876434,
-0.11474785208702087,
0.009718861430883408,
-0.18342295289039612,
-0.14676626026630402,
0.31189873814582825,
0.08408510684967041,
0.346073180437088,
0.3613789677619934,
0.23149357736110687,
-0.31574442982673645,
-0.1234998032450676,
-0.13074684143066406,
0.12639576196670532,
0.06001533567905426,
0.06277891248464584,
0.3807479739189148,
-0.43438658118247986,
0.18695494532585144,
0.5641599297523499,
-0.33148977160453796,
-0.2732807397842407,
0.21276892721652985,
0.6141749024391174,
-0.22645539045333862,
0.16248191893100739,
0.17312049865722656,
-0.0866314023733139,
0.1338379830121994,
-0.3697248697280884,
-0.13651493191719055,
0.04592683166265488,
-0.3774811625480652,
-0.0641481876373291,
0.10296187549829483,
-0.20011553168296814,
0.0772925466299057,
0.03451847657561302,
0.10051125288009644,
0.0606265552341938,
0.08260175585746765,
0.2194364219903946,
-0.25965577363967896,
0.10024471580982208,
-0.4008682668209076,
0.07367425411939621,
-0.3296131491661072,
-0.23051297664642334,
0.1907188892364502,
0.3585130572319031,
0.05251850560307503,
0.12273982912302017,
-0.1362956017255783,
0.16618964076042175,
0.09493349492549896,
0.18213067948818207,
-0.0007122047245502472,
0.2064191699028015,
0.2837127149105072,
-0.1496318131685257,
-0.21350722014904022,
-0.20833423733711243,
-0.06812374293804169,
-0.26541945338249207,
0.4042985439300537,
-0.21822863817214966,
-0.35892000794410706,
-0.07294022291898727,
-0.07334594428539276,
-0.3603956699371338,
0.04976806044578552,
0.1830289661884308,
0.1923414021730423,
-0.013296835124492645,
-0.3578302264213562,
0.12330347299575806,
0.05403052270412445,
-0.30919960141181946,
-0.31078919768333435,
0.20444615185260773,
0.007936179637908936,
-0.21543601155281067,
0.18703016638755798,
0.08019048720598221,
-0.08996805548667908,
0.09076767414808273,
0.33840787410736084,
-0.3551778793334961,
-0.11716530472040176,
0.123802050948143,
0.14386439323425293,
0.6366674900054932,
-0.148417666554451,
-0.4632454812526703,
0.7736433148384094,
0.005080550909042358,
-0.3499944508075714,
-0.0010333657264709473,
0.506737232208252,
0.0797291174530983,
-0.09770195186138153,
-0.11440381407737732,
0.7414230108261108,
0.049431368708610535,
0.09382288157939911,
-0.17055167257785797,
-0.45206567645072937,
0.4799662232398987,
0.3717119097709656,
-0.007751822471618652,
0.04473155736923218,
0.24418821930885315,
0.36081016063690186,
0.2845618724822998,
-0.06109348312020302,
0.06696174293756485,
-0.035116665065288544,
0.10619692504405975,
0.20224541425704956,
-0.002893684431910515,
-0.27330851554870605,
0.08349620550870895,
-0.15552294254302979,
-0.5438957214355469,
0.14995303750038147,
0.033630743622779846,
-0.1679929494857788,
0.22886347770690918,
-0.09965105354785919,
0.1972913146018982,
-0.04122735932469368,
0.013613823801279068,
-0.005066782236099243,
-0.058557309210300446,
-0.023794827982783318,
-0.3576776683330536,
-0.04813732951879501,
-0.14946907758712769,
-0.15342724323272705,
-0.03648047149181366,
0.23511116206645966,
0.06540149450302124,
-0.05473949760198593,
0.30411630868911743,
0.5591762065887451,
-0.013573065400123596,
-0.10763054341077805,
0.18229186534881592,
0.15248113870620728,
-0.18574172258377075,
0.24421729147434235,
0.0726284384727478,
0.5805906653404236,
0.3432217836380005,
-0.17575880885124207,
0.25984787940979004,
0.3666490316390991,
-0.03411586582660675,
0.17336446046829224,
0.09843312203884125,
0.7042986750602722,
-0.26380258798599243,
-0.16168451309204102,
-0.03219771385192871,
-0.14915534853935242,
-0.004894627258181572,
-0.17357876896858215,
-0.3520437777042389,
-0.030491191893815994,
0.01092621311545372,
-0.2666921615600586,
0.13070358335971832,
-0.03182367980480194,
-0.5742003917694092,
0.2258848249912262,
-0.10887068510055542,
-0.08774663507938385,
0.3051645755767822,
-0.02619359642267227,
-0.0274333655834198,
-0.06498060375452042,
0.14793969690799713,
0.29786211252212524,
0.36590737104415894,
0.11138495802879333,
-0.172838032245636,
-0.07312997430562973,
-0.11755380779504776,
-0.14168640971183777,
-0.0020142197608947754,
-0.05932633578777313,
0.15234866738319397,
0.049100253731012344,
0.19651736319065094,
0.35480448603630066,
-0.0670657530426979,
0.1788395345211029,
-0.07302803546190262,
0.09431560337543488,
-0.00957636907696724,
0.1214587613940239,
-0.24237149953842163,
-0.3815988600254059,
0.07225518673658371,
-0.01077433954924345,
-0.13104690611362457,
0.28226447105407715,
0.15543773770332336,
0.19992418587207794,
-0.08225129544734955,
-0.2093527615070343,
-0.26920658349990845,
0.48639392852783203,
-0.297466903924942,
-0.15752603113651276,
-0.08365204930305481,
-0.12402068078517914,
-0.09600336104631424,
0.04750600829720497,
0.32104846835136414,
-0.0360235720872879,
0.3541306257247925,
0.4143392741680145,
0.01074453629553318,
-0.1943289190530777,
-0.31717368960380554,
0.06479211896657944,
0.031657200306653976,
0.24277877807617188,
-0.08615006506443024,
-0.0453934371471405,
0.08745665848255157,
-0.22342506051063538,
-0.07342500239610672,
-0.4196181893348694,
-0.006141657009720802,
-0.28049299120903015,
-0.20802344381809235,
-0.021562647074460983,
-0.27288684248924255,
-0.11799917370080948,
-0.5042940378189087,
-0.17463743686676025,
0.3917943835258484,
0.017545167356729507,
0.447454035282135,
0.09745774418115616,
-0.2773035168647766,
0.09672705829143524,
0.01092642080038786,
-0.0492403581738472,
-0.07194912433624268,
-0.42334499955177307,
0.22781814634799957,
-0.5833616256713867,
-0.45793646574020386,
-0.11601284146308899,
-0.00334898941218853,
-0.04015897586941719,
0.20604267716407776,
-0.6257675290107727,
-0.03711206093430519,
0.1528882086277008,
0.2928294837474823,
-0.03371848911046982,
-0.2740914821624756,
0.2435402274131775,
0.024767611175775528,
0.07046377658843994,
-0.16556322574615479,
-0.13095064461231232,
-0.24976065754890442,
0.02402884140610695,
0.22355219721794128,
0.3631480932235718,
-0.30842000246047974,
0.4264257550239563,
0.3714081048965454,
-0.03159777447581291,
-0.1078973114490509,
0.34457170963287354,
0.23109400272369385,
0.15828895568847656,
0.27259930968284607,
0.04248344898223877,
0.1564812809228897,
-0.04834549129009247,
-0.16513703763484955,
0.32184141874313354,
0.1150265485048294,
-0.4717213809490204,
-0.34303706884384155,
-0.4360583424568176,
-0.3518175184726715,
-0.17525285482406616,
0.14193949103355408,
0.148461252450943,
0.6546312570571899,
0.03454122692346573,
-0.27659115195274353,
-0.2643120586872101,
-0.5170108079910278,
-0.07062123715877533,
-0.0597601979970932,
0.47088298201560974,
0.12225088477134705,
-0.033774733543395996,
-0.22771885991096497,
-0.4081263244152069,
-0.08944627642631531,
0.11263401806354523,
0.38847678899765015,
-0.1986566036939621,
0.3296016752719879,
0.2983242869377136,
-0.014293661341071129,
-0.028423801064491272,
-0.10287899523973465,
0.18477702140808105,
0.07035662233829498,
-0.12497638911008835,
-0.0949411690235138,
0.319877028465271,
-0.11207115650177002,
0.3463830053806305,
0.16395674645900726,
0.3733923137187958,
-0.13242188096046448,
-0.4414398968219757,
0.1851908266544342,
-0.08167684823274612,
-0.23085790872573853,
-0.19436654448509216,
0.15985007584095,
-0.05524224042892456,
-0.1051095649600029,
-0.08356525748968124,
-0.1508895456790924,
0.09031990170478821,
-0.1171172559261322,
0.1277923732995987,
0.08800602704286575,
0.3155844509601593,
0.2185911238193512,
0.04927108809351921,
-0.1255628764629364,
0.22096286714076996,
-0.07330377399921417,
0.23697037994861603,
0.3940103054046631,
-0.2094968557357788,
0.24121010303497314,
0.3167014718055725,
0.11623600870370865,
0.05328410118818283,
0.04917386919260025,
0.44012215733528137,
0.4852980375289917,
0.10083653032779694,
-0.021520085632801056,
-0.05057065933942795,
-0.15756352245807648,
-0.2853378355503082,
-0.04306573420763016,
0.04314533621072769,
-0.3380032181739807,
0.12887805700302124,
-0.15015020966529846,
0.47079208493232727,
-0.15668419003486633,
-0.16870395839214325,
0.06552717834711075,
0.007811300456523895,
-0.1811356395483017,
0.4684830904006958,
0.3160804212093353,
1.0504852533340454,
-0.30088692903518677,
0.4145292341709137,
-0.015562083572149277,
-0.05842044949531555,
0.517958402633667,
-0.43143224716186523,
0.021201172843575478,
-0.16928385198116302,
0.18253596127033234,
-0.16509376466274261,
-0.01754888892173767,
0.10861131548881531,
0.04740395024418831,
0.1744168996810913,
0.14855672419071198,
0.31243473291397095,
-0.1689549684524536,
0.05636877566576004,
0.3495231568813324,
0.3550994098186493,
-0.2769206464290619,
-0.4173378050327301,
-0.008703898638486862,
-0.22158949077129364,
0.23593871295452118,
-0.003517303615808487,
-0.5324005484580994,
-0.06022793799638748,
0.2643842101097107,
-0.20981955528259277,
-0.07542365789413452,
-0.13977719843387604,
0.001205751672387123,
0.11346308887004852,
-0.3987625241279602,
0.5135900378227234,
0.443851113319397,
0.24988964200019836,
0.16266760230064392,
-0.5347724556922913,
-0.2794632315635681,
-0.2712431252002716,
-0.3380141854286194,
0.14757756888866425,
0.2529197335243225,
0.2925344407558441,
-0.2589450776576996,
-0.1438818871974945,
0.09599359333515167,
0.03656061366200447,
-0.654998242855072,
-0.19461587071418762,
0.03890014439821243,
0.4339008331298828,
-0.1514929085969925,
-0.1014142781496048,
0.22598686814308167,
-0.3171105682849884,
0.10880298912525177,
0.055168427526950836,
0.40227198600769043,
-0.11327153444290161,
-0.030477680265903473,
0.298213928937912,
-0.09445329010486603,
0.07585302740335464,
0.28887733817100525,
0.21159961819648743,
-0.003028564155101776,
0.21330679953098297,
-0.08310568332672119,
0.04972159117460251,
-0.05991751700639725,
0.3089556396007538,
-0.12532295286655426,
-0.12440697848796844,
-0.22263410687446594,
0.2691507935523987,
-0.1552933007478714,
-0.1963367760181427,
0.3266521692276001,
-0.028323866426944733,
-0.267414391040802,
-0.20959582924842834,
-0.59775710105896,
-0.20257967710494995,
0.3384377956390381,
-0.12175711989402771,
-0.06113119050860405,
0.024283386766910553,
0.45090189576148987,
0.030647335574030876,
0.16034641861915588,
-0.19988876581192017,
0.23167236149311066,
-0.20239317417144775,
0.20827099680900574,
0.28603267669677734,
-0.012292273342609406,
-0.15751193463802338,
0.11341030895709991,
-0.11093998700380325,
0.09078003466129303,
-0.19757427275180817,
-0.07712063193321228,
-0.12022057175636292,
0.22043228149414062,
0.3247850835323334,
-0.4146481454372406,
-0.2224481999874115,
-0.7372855544090271,
-0.24967771768569946,
0.05212908610701561,
0.028632715344429016,
0.14340510964393616,
0.009585469961166382,
0.2350487858057022,
-0.09540426731109619,
0.27456751465797424,
-0.039939384907484055,
0.32951420545578003,
0.19335722923278809,
0.40575528144836426,
-0.13160553574562073,
0.3267180919647217,
-0.009461844339966774,
-0.13540180027484894,
0.013113952241837978,
-0.05089413374662399,
0.28995731472969055,
-0.057426609098911285,
0.6205946803092957,
-0.11051170527935028,
-0.044256050139665604,
0.027066634967923164,
0.14211918413639069,
0.018096331506967545,
-0.061810556799173355,
0.33549967408180237,
0.16487225890159607,
-0.024212462827563286,
-0.26410508155822754,
-0.21324561536312103,
-0.11394917964935303,
0.18062779307365417,
-0.2042877972126007,
-0.04696410149335861,
0.6455289721488953,
0.20423224568367004,
0.13323569297790527,
-0.25955116748809814,
-0.01754920184612274,
-0.253531277179718,
-0.3921941816806793,
0.06169368326663971,
-0.23495808243751526,
-0.04076993837952614,
-0.12461597472429276,
0.3356882631778717,
0.0016508996486663818,
0.0995054617524147,
0.21405944228172302,
0.351778119802475,
0.2666943073272705,
0.04369129240512848,
0.16047042608261108,
-0.1709224134683609,
-0.2023499757051468,
-0.06621719896793365,
0.3786066770553589,
0.2248145341873169,
-0.34831032156944275,
0.39781323075294495,
0.06788353621959686,
0.11448613554239273,
0.25013819336891174,
0.12667126953601837,
0.07715784013271332,
-0.2194930911064148,
-0.13998466730117798,
-0.057131312787532806,
0.1511867344379425,
-0.1383667141199112,
-0.27141737937927246,
-0.30897003412246704,
0.05635038763284683,
0.25874316692352295,
0.1964288055896759,
-0.12029603123664856,
-0.07495960593223572,
0.39192402362823486,
0.10097220540046692,
-0.22368420660495758,
0.46807241439819336,
-0.2789304256439209,
0.15133219957351685,
0.1175629049539566,
0.1943867802619934,
-0.002596430480480194,
0.09405744075775146,
-0.4987981915473938,
0.035772573202848434,
-0.5205511450767517,
-0.055812425911426544,
-0.017878808081150055,
0.3984951376914978,
0.3403482735157013,
-0.11760386824607849,
0.3315958082675934,
-0.11050115525722504,
0.0863526239991188,
0.1713414192199707,
0.057994987815618515,
0.1456904262304306,
-0.2098473161458969,
0.4859403073787689,
0.07962080836296082,
-0.4297904074192047,
0.0770101398229599,
-0.17396551370620728,
0.12410696595907211,
0.1104912981390953,
0.4481085240840912,
-0.13656014204025269,
0.09848534315824509,
-0.15721949934959412,
0.032108742743730545,
-0.14522893726825714,
0.3510948419570923,
0.218241348862648,
0.5691327452659607,
-0.08776091039180756,
-0.20638315379619598,
-0.30887383222579956,
0.4102726876735687,
0.19981597363948822,
-0.08338286727666855,
0.061262600123882294,
0.145494744181633,
0.35953253507614136,
0.6020907163619995,
-0.2580796480178833,
-0.23853915929794312,
0.08076745271682739,
-0.05949573963880539,
0.06567032635211945,
0.15432743728160858,
-0.24019022285938263,
0.3685513734817505,
-0.1283995509147644,
-0.1714862734079361,
0.2581997811794281,
-0.3168209195137024,
-0.10800972580909729,
-0.2567024230957031,
0.1452496200799942,
-0.09997677803039551,
0.26468968391418457,
0.42403265833854675,
-0.04641532152891159,
0.07380460202693939,
0.005906511098146439,
-0.10547968000173569,
-0.18524666130542755,
-0.05444582179188728,
-0.039087168872356415,
-0.11806970089673996,
0.18303827941417694,
-0.07899431884288788,
-0.3894794285297394,
0.07684427499771118,
-0.13212311267852783,
-0.08786103874444962,
-0.3873867988586426,
0.24845102429389954,
0.2884975075721741,
-0.1554185152053833,
-0.3809860348701477,
0.10061559826135635,
-0.01493586041033268,
0.3789592683315277,
-0.19338542222976685,
-0.2485031634569168,
-0.13454779982566833,
0.15187978744506836,
0.2221584916114807,
-0.7115599513053894,
0.05267756059765816,
0.11639907211065292,
0.1823837161064148,
0.1114155650138855,
-0.1442592740058899,
-0.41651034355163574,
0.0034094154834747314,
0.10304322838783264,
0.07603953778743744,
-0.0012032520025968552,
-0.09351620078086853,
-0.027177561074495316,
-0.14140282571315765,
-0.16165617108345032,
0.39108583331108093,
-0.11327218264341354,
0.010249117389321327,
-0.3302140235900879,
-0.37565165758132935
] |
https://github.com/huggingface/datasets/issues/281 | Private/sensitive data | Hi @MFreidank, it is possible to load a dataset from your local storage, but only CSV/TSV and JSON are supported. To load a dataset in JSON format:
```
nlp.load_dataset(path="json", data_files={nlp.Split.TRAIN: ["path/to/train.json"], nlp.Split.TEST: ["path/to/test.json"]})
```
For CSV/TSV datasets, you have to replace `json` by `csv`. | Hi all,
Thanks for this fantastic library, it makes it very easy to do prototyping for NLP projects interchangeably between TF/Pytorch.
Unfortunately, there is data that cannot easily be shared publicly as it may contain sensitive information.
Is there support/a plan to support such data with NLP, e.g. by reading it from local sources?
Use case flow could look like this: use NLP to prototype an approach on similar, public data and apply the resulting prototype on sensitive/private data without the need to rethink data processing pipelines.
Many thanks for your responses ahead of time and kind regards,
MFreidank | 44 | Private/sensitive data
Hi all,
Thanks for this fantastic library, it makes it very easy to do prototyping for NLP projects interchangeably between TF/Pytorch.
Unfortunately, there is data that cannot easily be shared publicly as it may contain sensitive information.
Is there support/a plan to support such data with NLP, e.g. by reading it from local sources?
Use case flow could look like this: use NLP to prototype an approach on similar, public data and apply the resulting prototype on sensitive/private data without the need to rethink data processing pipelines.
Many thanks for your responses ahead of time and kind regards,
MFreidank
Hi @MFreidank, it is possible to load a dataset from your local storage, but only CSV/TSV and JSON are supported. To load a dataset in JSON format:
```
nlp.load_dataset(path="json", data_files={nlp.Split.TRAIN: ["path/to/train.json"], nlp.Split.TEST: ["path/to/test.json"]})
```
For CSV/TSV datasets, you have to replace `json` by `csv`. | [
-0.01666058599948883,
0.39930909872055054,
-0.12448655068874359,
0.2548537254333496,
-0.27396202087402344,
-0.2752925157546997,
0.21818865835666656,
0.3080701231956482,
-0.06903868168592453,
0.007815614342689514,
-0.1233370378613472,
0.2415471374988556,
-0.10988660901784897,
0.43130141496658325,
0.2261040210723877,
-0.16052772104740143,
-0.23062527179718018,
0.3290660083293915,
0.07516492903232574,
0.12781323492527008,
0.17984145879745483,
0.01081761159002781,
-0.027711104601621628,
0.19783169031143188,
0.10537592321634293,
-0.02241246961057186,
0.03913898020982742,
-0.011053003370761871,
0.04930921643972397,
-0.28079891204833984,
0.21947108209133148,
0.14611369371414185,
0.37114864587783813,
0.10421338677406311,
-0.00011948651081183925,
0.05478173494338989,
0.004278421401977539,
-0.17003881931304932,
0.01400834321975708,
-0.5010941624641418,
0.11817906051874161,
-0.4590621292591095,
0.2127281278371811,
-0.13232482969760895,
-0.5507670640945435,
-0.38285088539123535,
0.1953413039445877,
-0.25503748655319214,
0.44595611095428467,
-0.01347377523779869,
0.09721717983484268,
0.3948138356208801,
-0.023835211992263794,
0.4301292300224304,
0.15169519186019897,
0.15581262111663818,
-0.2978111803531647,
-0.1546909213066101,
0.3256406784057617,
0.057655468583106995,
-0.14451110363006592,
-0.026069186627864838,
-0.06318289786577225,
0.10818769037723541,
0.16940361261367798,
0.0011479416862130165,
-0.2196287214756012,
-0.3277963101863861,
-0.06281684339046478,
0.39936625957489014,
0.594555675983429,
-0.027526892721652985,
-0.24955803155899048,
-0.2670382261276245,
0.03197742998600006,
-0.19983543455600739,
0.07112450152635574,
0.4118877053260803,
-0.2896345555782318,
0.22821415960788727,
-0.3382035195827484,
-0.4331623911857605,
-0.537065327167511,
0.40451258420944214,
0.34794139862060547,
0.07094428688287735,
-0.09333478659391403,
0.08606995642185211,
-0.16277077794075012,
-0.19940203428268433,
0.19738170504570007,
-0.0023523494601249695,
0.39074423909187317,
0.30411016941070557,
0.17766474187374115,
-0.3675432503223419,
-0.13475951552391052,
-0.3807194232940674,
0.09895723313093185,
-0.009018536657094955,
0.02065383456647396,
0.3384741246700287,
-0.3744044601917267,
0.21210086345672607,
0.5879614949226379,
-0.23452740907669067,
-0.22414550185203552,
0.2144237458705902,
0.45424914360046387,
-0.2493966519832611,
0.04325244203209877,
0.08235454559326172,
-0.05225749313831329,
0.11467514932155609,
-0.4078924357891083,
-0.10833010822534561,
0.05670647323131561,
-0.3220868706703186,
-0.07308777421712875,
0.03406214341521263,
-0.2571909725666046,
0.04769561439752579,
-0.04374994337558746,
0.17946048080921173,
0.06989088654518127,
0.10436598211526871,
0.28446584939956665,
-0.1818290650844574,
0.11766312271356583,
-0.39729198813438416,
0.061134811490774155,
-0.25400876998901367,
-0.14548403024673462,
0.2200014591217041,
0.4175851047039032,
0.09415110945701599,
0.18390758335590363,
-0.25770020484924316,
0.10280458629131317,
-0.02065657638013363,
0.14762918651103973,
-0.10186292231082916,
0.24993473291397095,
0.24646858870983124,
-0.03041982650756836,
-0.2639298737049103,
-0.09562700986862183,
-0.1191149353981018,
-0.3232683539390564,
0.35970476269721985,
-0.2853328287601471,
-0.36305713653564453,
-0.11320088803768158,
-0.060530368238687515,
-0.4056693911552429,
0.09963826835155487,
0.11045686155557632,
0.19050244987010956,
0.02511931210756302,
-0.31587958335876465,
0.02543923258781433,
0.020331112667918205,
-0.36004647612571716,
-0.2895980775356293,
0.21121539175510406,
-0.04225583374500275,
-0.252989262342453,
0.08363254368305206,
0.07342389225959778,
-0.10136455297470093,
0.06225905939936638,
0.3870764970779419,
-0.3909444510936737,
-0.0891319140791893,
0.06431125104427338,
0.24207420647144318,
0.6808606386184692,
-0.08777806162834167,
-0.37457045912742615,
0.8095402717590332,
-0.08523200452327728,
-0.3504333794116974,
-0.012151263654232025,
0.42519575357437134,
0.1100582703948021,
0.0039031882770359516,
-0.07410059869289398,
0.8450556993484497,
0.048078492283821106,
0.13011889159679413,
-0.2199297845363617,
-0.5326387286186218,
0.5446045398712158,
0.37697136402130127,
-0.05564941093325615,
0.006438985466957092,
0.2360026240348816,
0.2765703499317169,
0.30482834577560425,
-0.09532900154590607,
0.11235439777374268,
0.05929598957300186,
0.0538819395005703,
0.23070357739925385,
-0.03485316410660744,
-0.21281352639198303,
-0.029398567974567413,
-0.1252916157245636,
-0.44511768221855164,
0.017048515379428864,
0.023572027683258057,
-0.147800013422966,
0.1749247908592224,
-0.09533219784498215,
0.10142076015472412,
0.0133183803409338,
0.04360220581293106,
0.07381869852542877,
0.027904033660888672,
0.04921175166964531,
-0.26688122749328613,
-0.09324484318494797,
-0.12856309115886688,
-0.18142254650592804,
-0.09821969270706177,
0.3334491550922394,
0.06965816766023636,
-0.0688515454530716,
0.3223307430744171,
0.5017096996307373,
0.0012493543326854706,
-0.11836808174848557,
0.11831031739711761,
0.1488824486732483,
-0.12877696752548218,
0.3108649253845215,
-0.025181815028190613,
0.507287859916687,
0.24617400765419006,
-0.18756015598773956,
0.20041635632514954,
0.34776416420936584,
0.009959726594388485,
0.14492914080619812,
0.007763456553220749,
0.7716158628463745,
-0.28400516510009766,
-0.10250679403543472,
-0.04446329176425934,
-0.13143546879291534,
0.07630625367164612,
-0.1933099627494812,
-0.28546860814094543,
-0.07166196405887604,
0.013611048460006714,
-0.2660619914531708,
0.1443144679069519,
-0.03898458182811737,
-0.5130636096000671,
0.1489173173904419,
0.0806591659784317,
-0.031647950410842896,
0.2720542252063751,
0.047078438103199005,
-0.05269048362970352,
-0.16819563508033752,
0.16841156780719757,
0.24647732079029083,
0.43917447328567505,
0.08233727514743805,
-0.161299929022789,
-0.05114913731813431,
-0.10215387493371964,
-0.13141539692878723,
-0.025014929473400116,
-0.10199148952960968,
0.2686353921890259,
0.10202028602361679,
0.2694603204727173,
0.2681831121444702,
-0.03586383908987045,
0.25450119376182556,
-0.010304166004061699,
0.07453782856464386,
-0.0335337296128273,
0.16708694398403168,
-0.3016681671142578,
-0.3807738423347473,
-0.04987768083810806,
-0.013498655520379543,
-0.06966730952262878,
0.24533416330814362,
0.07427402585744858,
0.14911901950836182,
-0.10158342123031616,
-0.2358611524105072,
-0.20409707725048065,
0.3944404721260071,
-0.3479897975921631,
-0.2545352280139923,
-0.029971972107887268,
-0.14846795797348022,
-0.10177405923604965,
0.016280103474855423,
0.35726240277290344,
0.12277734279632568,
0.3335719108581543,
0.39123204350471497,
-0.07780145108699799,
-0.044686056673526764,
-0.2103274166584015,
0.05043686553835869,
0.08046815544366837,
0.28312739729881287,
-0.10115742683410645,
0.003876104950904846,
0.09026381373405457,
-0.25368356704711914,
0.03191031888127327,
-0.344662606716156,
-0.06555448472499847,
-0.19267089664936066,
-0.11883683502674103,
-0.017506878823041916,
-0.3231663107872009,
-0.1083945706486702,
-0.6310316920280457,
-0.20553530752658844,
0.5200818777084351,
0.06380623579025269,
0.42137855291366577,
0.03221948444843292,
-0.22505733370780945,
0.12849929928779602,
-0.02327515184879303,
-0.005615966394543648,
-0.0860951691865921,
-0.320688396692276,
0.16095665097236633,
-0.5506543517112732,
-0.4848894774913788,
-0.058053649961948395,
-0.016476135700941086,
-0.06892062723636627,
0.14133715629577637,
-0.6018843650817871,
-0.016309792175889015,
0.11172737181186676,
0.23893043398857117,
-0.029066428542137146,
-0.373802125453949,
0.32660436630249023,
-0.03158250451087952,
0.10523873567581177,
-0.13301554322242737,
-0.1841297149658203,
-0.19819220900535583,
0.09805717319250107,
0.16474029421806335,
0.3603861331939697,
-0.17186281085014343,
0.4904504716396332,
0.48670679330825806,
0.03182524815201759,
-0.2435634881258011,
0.3236861228942871,
0.14420156180858612,
0.14020763337612152,
0.26341959834098816,
-0.0255522970110178,
0.08859379589557648,
-0.11944174766540527,
-0.15273359417915344,
0.32841894030570984,
0.018949981778860092,
-0.39115193486213684,
-0.34893718361854553,
-0.36777767539024353,
-0.39423009753227234,
-0.23312930762767792,
0.16498695313930511,
0.14218629896640778,
0.6201733946800232,
0.04669549688696861,
-0.26084092259407043,
-0.2799127697944641,
-0.5743587613105774,
-0.18832407891750336,
0.03337332606315613,
0.45417845249176025,
0.17945481836795807,
-0.21989236772060394,
-0.32183587551116943,
-0.348302960395813,
-0.05763213336467743,
0.12599578499794006,
0.5013283491134644,
-0.17607006430625916,
0.23615747690200806,
0.26823604106903076,
-0.06497897207736969,
-0.08274908363819122,
-0.06251558661460876,
0.18408145010471344,
0.12043282389640808,
-0.21595683693885803,
-0.1733560413122177,
0.2778739929199219,
-0.11544835567474365,
0.2914932668209076,
0.15797244012355804,
0.4518984258174896,
-0.12684768438339233,
-0.4344649612903595,
0.0740375816822052,
-0.0018676433246582747,
-0.2597162127494812,
-0.16230390965938568,
0.08585752546787262,
-0.0005456022918224335,
-0.1680850386619568,
-0.1617954969406128,
-0.20336087048053741,
0.18950492143630981,
-0.1780153512954712,
0.21980230510234833,
0.036927640438079834,
0.3316868543624878,
0.1751580834388733,
0.02138812467455864,
-0.062215887010097504,
0.18429669737815857,
-0.06513452529907227,
0.1851910650730133,
0.46014532446861267,
-0.19891461730003357,
0.2502400279045105,
0.335035502910614,
0.03309853747487068,
0.00616287998855114,
0.03432182967662811,
0.442475289106369,
0.44675567746162415,
0.14275513589382172,
0.08311393111944199,
-0.0638013407588005,
-0.20520301163196564,
-0.33139514923095703,
0.03943851962685585,
0.026396894827485085,
-0.38887110352516174,
0.24937622249126434,
-0.11477331072092056,
0.42628613114356995,
-0.14394915103912354,
-0.11779873818159103,
0.019291944801807404,
-0.17398832738399506,
-0.20694313943386078,
0.4962053894996643,
0.31183069944381714,
0.9623212814331055,
-0.2769497036933899,
0.43697765469551086,
-0.0007590856403112411,
-0.07967589050531387,
0.5795753002166748,
-0.3859023451805115,
0.03537724167108536,
-0.217975452542305,
0.20228151977062225,
-0.11167613416910172,
-0.07959330081939697,
0.11026034504175186,
0.04711680859327316,
0.15165314078330994,
0.10285419225692749,
0.352925181388855,
-0.15647846460342407,
0.018794817849993706,
0.424189031124115,
0.38278016448020935,
-0.2476409673690796,
-0.4584241509437561,
-0.01838979497551918,
-0.28466445207595825,
0.18451008200645447,
0.05215602368116379,
-0.5859045386314392,
-0.09935279190540314,
0.19032707810401917,
-0.22181092202663422,
-0.026194995269179344,
-0.09320605546236038,
0.10910628736019135,
0.12077252566814423,
-0.3754260540008545,
0.4350093603134155,
0.45939889550209045,
0.14468449354171753,
0.15060220658779144,
-0.49958550930023193,
-0.3325149118900299,
-0.32766565680503845,
-0.30558010935783386,
0.14674702286720276,
0.20235252380371094,
0.2135426253080368,
-0.1806582510471344,
-0.11238010972738266,
0.08075152337551117,
0.03613210469484329,
-0.6247408986091614,
-0.14627954363822937,
0.04906105622649193,
0.3756270408630371,
-0.1372777819633484,
-0.21921087801456451,
0.16352134943008423,
-0.329555869102478,
0.12008289992809296,
0.05588690936565399,
0.3473140597343445,
-0.09220164269208908,
-0.07711914926767349,
0.30841532349586487,
-0.12926630675792694,
0.095012366771698,
0.3675631880760193,
0.17772576212882996,
0.045106686651706696,
0.30617958307266235,
-0.08062262088060379,
0.06714756786823273,
-0.07237352430820465,
0.4255791902542114,
-0.1506490856409073,
-0.10599437355995178,
-0.24453873932361603,
0.24785476922988892,
-0.13264182209968567,
-0.19672217965126038,
0.3327675759792328,
-0.017811715602874756,
-0.21372509002685547,
-0.13649021089076996,
-0.6354275345802307,
-0.203684464097023,
0.41106873750686646,
-0.12020990252494812,
-0.027987610548734665,
0.12538519501686096,
0.4923388659954071,
-0.03415471315383911,
0.19644047319889069,
-0.19202105700969696,
0.2586783766746521,
-0.25826677680015564,
0.25049954652786255,
0.26319611072540283,
-0.024443812668323517,
-0.13391168415546417,
0.05714308097958565,
-0.09819915145635605,
0.12212421000003815,
-0.22535298764705658,
-0.08482903987169266,
-0.08733442425727844,
0.22441509366035461,
0.318594366312027,
-0.35400182008743286,
-0.31491267681121826,
-0.7644431591033936,
-0.25448498129844666,
0.05287693068385124,
-0.0703585296869278,
0.08331459760665894,
-0.013587482273578644,
0.29566746950149536,
-0.18384456634521484,
0.29901593923568726,
-0.11414235085248947,
0.2512924075126648,
0.06109631061553955,
0.4579075574874878,
-0.2031513750553131,
0.3061964213848114,
0.03425139561295509,
-0.053424157202243805,
-0.16962897777557373,
-0.07552265375852585,
0.29670554399490356,
0.017716284841299057,
0.5531837344169617,
-0.10111911594867706,
-0.05428295582532883,
-0.07679068297147751,
0.1179896742105484,
0.11212439835071564,
-0.16261239349842072,
0.4437757134437561,
0.25621694326400757,
-0.028037486597895622,
-0.1709076166152954,
-0.13441041111946106,
0.05056105926632881,
0.188720703125,
-0.19456668198108673,
-0.03859078139066696,
0.6310533285140991,
0.20193129777908325,
0.15444990992546082,
-0.2350538969039917,
0.028263993561267853,
-0.21318835020065308,
-0.3182070851325989,
0.1499149203300476,
-0.23676112294197083,
-0.05616110935807228,
-0.13696995377540588,
0.35654416680336,
0.10275913029909134,
0.02305305004119873,
0.22358697652816772,
0.3232923448085785,
0.14927861094474792,
0.095634825527668,
0.13137389719486237,
-0.16078196465969086,
-0.14412885904312134,
0.0050664544105529785,
0.3178524971008301,
0.26332393288612366,
-0.3417280912399292,
0.4735429883003235,
0.016994399949908257,
0.093985415995121,
0.19794459640979767,
0.15973344445228577,
0.09638401865959167,
-0.17272375524044037,
-0.22110910713672638,
0.00903351604938507,
0.016727305948734283,
-0.07874459028244019,
-0.2220299243927002,
-0.3007417321205139,
0.00909203290939331,
0.27612096071243286,
0.17368318140506744,
-0.10547082126140594,
0.024229608476161957,
0.4150097072124481,
-0.008883900940418243,
-0.22980153560638428,
0.4949308931827545,
-0.27476996183395386,
0.19471672177314758,
0.1332121342420578,
0.10980138182640076,
-0.01706762984395027,
0.13715291023254395,
-0.470630019903183,
-0.03873046115040779,
-0.4303734302520752,
-0.07534732669591904,
-0.031921207904815674,
0.42467063665390015,
0.35049065947532654,
-0.14741092920303345,
0.4288032650947571,
-0.07363929599523544,
0.07250548899173737,
0.13425958156585693,
0.08079331368207932,
0.1512715369462967,
-0.21413388848304749,
0.5109364986419678,
0.05717611312866211,
-0.3916725516319275,
0.1018432006239891,
-0.23789754509925842,
0.06556735187768936,
0.06086910888552666,
0.396115779876709,
-0.011190949007868767,
0.18756312131881714,
-0.15598554909229279,
0.022043943405151367,
-0.195465549826622,
0.3519825041294098,
0.14415083825588226,
0.4340552091598511,
-0.021512839943170547,
-0.18801665306091309,
-0.33882710337638855,
0.3261442482471466,
0.1111396998167038,
-0.14464344084262848,
-0.029237806797027588,
0.23799215257167816,
0.36073189973831177,
0.5662311315536499,
-0.4303017854690552,
-0.08955071866512299,
0.07916371524333954,
-0.018634997308254242,
0.07888199388980865,
0.07071308046579361,
-0.18034060299396515,
0.3250214457511902,
-0.14650289714336395,
-0.21754390001296997,
0.23013761639595032,
-0.2784760892391205,
-0.0956144779920578,
-0.267098069190979,
0.12642867863178253,
-0.16328978538513184,
0.33556297421455383,
0.4106145203113556,
-0.04699229449033737,
0.148931086063385,
-0.012029971927404404,
-0.05277688801288605,
-0.15929576754570007,
-0.05944347009062767,
-0.019218679517507553,
-0.009469479322433472,
0.15415291488170624,
0.0798313245177269,
-0.44663286209106445,
0.2208995223045349,
-0.1681687980890274,
-0.16169393062591553,
-0.417138934135437,
0.15729650855064392,
0.3395830988883972,
-0.16996309161186218,
-0.40200668573379517,
0.1447926163673401,
0.0951191857457161,
0.3582448661327362,
-0.20508766174316406,
-0.2601109743118286,
-0.13586215674877167,
0.22580039501190186,
0.21834540367126465,
-0.6892327070236206,
0.024470631033182144,
0.17869789898395538,
0.12607122957706451,
0.10742099583148956,
-0.13446460664272308,
-0.31049251556396484,
-0.023373104631900787,
0.18232537806034088,
0.003911048173904419,
0.042209114879369736,
-0.04907684400677681,
0.01173487864434719,
-0.11201618611812592,
-0.19426217675209045,
0.32771262526512146,
-0.0371011346578598,
-0.027197079733014107,
-0.37191665172576904,
-0.3669275641441345
] |
https://github.com/huggingface/datasets/issues/281 | Private/sensitive data | Hi @julien-c @jplu,
Thanks for sharing this solution with me, it helps, this is what I was looking for.
If not already there and only missed by me, this could be a great addition in the docs.
Closing my issue as resolved, thanks again. | Hi all,
Thanks for this fantastic library, it makes it very easy to do prototyping for NLP projects interchangeably between TF/Pytorch.
Unfortunately, there is data that cannot easily be shared publicly as it may contain sensitive information.
Is there support/a plan to support such data with NLP, e.g. by reading it from local sources?
Use case flow could look like this: use NLP to prototype an approach on similar, public data and apply the resulting prototype on sensitive/private data without the need to rethink data processing pipelines.
Many thanks for your responses ahead of time and kind regards,
MFreidank | 44 | Private/sensitive data
Hi all,
Thanks for this fantastic library, it makes it very easy to do prototyping for NLP projects interchangeably between TF/Pytorch.
Unfortunately, there is data that cannot easily be shared publicly as it may contain sensitive information.
Is there support/a plan to support such data with NLP, e.g. by reading it from local sources?
Use case flow could look like this: use NLP to prototype an approach on similar, public data and apply the resulting prototype on sensitive/private data without the need to rethink data processing pipelines.
Many thanks for your responses ahead of time and kind regards,
MFreidank
Hi @julien-c @jplu,
Thanks for sharing this solution with me, it helps, this is what I was looking for.
If not already there and only missed by me, this could be a great addition in the docs.
Closing my issue as resolved, thanks again. | [
0.025848951190710068,
0.3822519779205322,
-0.14741910994052887,
0.18580907583236694,
-0.32080578804016113,
-0.29081374406814575,
0.17590276896953583,
0.3123900592327118,
-0.2786036729812622,
0.0793812945485115,
-0.06257881969213486,
0.29266855120658875,
-0.09529149532318115,
0.40648767352104187,
0.16315500438213348,
-0.21602535247802734,
-0.21217182278633118,
0.32835814356803894,
0.03996630758047104,
0.16072821617126465,
0.3044920861721039,
0.030508574098348618,
-0.0668027400970459,
0.24389132857322693,
0.13394835591316223,
-0.11411359161138535,
0.11441592872142792,
-0.1650366187095642,
0.047592923045158386,
-0.27385827898979187,
0.14514897763729095,
0.18252377212047577,
0.26050320267677307,
0.06819051504135132,
-0.00011851904855575413,
-0.0630132257938385,
0.008070144802331924,
-0.12199321389198303,
0.180524080991745,
-0.3296794295310974,
0.1698305606842041,
-0.40106046199798584,
0.10109708458185196,
-0.07598681002855301,
-0.6062315702438354,
-0.1920441836118698,
0.22625064849853516,
-0.1614924669265747,
0.23302023112773895,
-0.1536770910024643,
0.11259082704782486,
0.37793809175491333,
0.1014639288187027,
0.4482402503490448,
0.2235451638698578,
0.0362447053194046,
-0.34354498982429504,
-0.3351932764053345,
0.43539971113204956,
0.08314474672079086,
-0.10787791758775711,
0.12736359238624573,
-0.08489648997783661,
-0.016632385551929474,
0.06925073266029358,
-0.04957729950547218,
-0.11093748360872269,
-0.4897407591342926,
0.003260374069213867,
0.43643489480018616,
0.6228165626525879,
-0.0677117183804512,
-0.23187772929668427,
-0.18264378607273102,
0.11057677865028381,
-0.12962469458580017,
0.01497417688369751,
0.27530455589294434,
-0.31891223788261414,
0.18093229830265045,
-0.19300948083400726,
-0.4642399847507477,
-0.5439630746841431,
0.3049429655075073,
0.36717554926872253,
0.041056085377931595,
-0.13377217948436737,
0.00766899436712265,
-0.1846582293510437,
-0.21361754834651947,
0.1772073358297348,
0.0620260015130043,
0.3948307931423187,
0.27821823954582214,
0.306015282869339,
-0.411663681268692,
-0.10946293920278549,
-0.23723599314689636,
0.1159120574593544,
-0.043534912168979645,
0.013556824997067451,
0.3441682755947113,
-0.4206800162792206,
0.166200190782547,
0.4476667642593384,
-0.30556735396385193,
-0.25718748569488525,
0.2101721465587616,
0.601036548614502,
-0.2004011869430542,
0.1096268892288208,
0.15073636174201965,
0.016362998634576797,
0.10816086083650589,
-0.3722083270549774,
-0.11316017061471939,
0.04034434258937836,
-0.3706252872943878,
-0.14591854810714722,
0.14065417647361755,
-0.20362210273742676,
0.13351958990097046,
0.04045601561665535,
0.13390138745307922,
0.046240970492362976,
0.09962504357099533,
0.21972353756427765,
-0.29554080963134766,
0.13297326862812042,
-0.4402608573436737,
0.12080102413892746,
-0.3411678671836853,
-0.23466582596302032,
0.22660192847251892,
0.31045976281166077,
0.16577181220054626,
0.1307256668806076,
-0.08473607152700424,
0.1026390939950943,
0.051933154463768005,
0.16028714179992676,
-0.061195746064186096,
0.2653576135635376,
0.2281564176082611,
-0.14295437932014465,
-0.20570644736289978,
-0.22077883780002594,
-0.04443036764860153,
-0.25506481528282166,
0.43109384179115295,
-0.26498717069625854,
-0.32269933819770813,
-0.04425261169672012,
-0.062159013003110886,
-0.3281319737434387,
0.04347001388669014,
0.33148905634880066,
0.2257247269153595,
0.07235163450241089,
-0.3221593201160431,
0.15312029421329498,
0.05321088433265686,
-0.324294775724411,
-0.333793044090271,
0.14746861159801483,
-0.11213783919811249,
-0.12445129454135895,
0.16849690675735474,
0.14530009031295776,
-0.08140663802623749,
0.14597734808921814,
0.3059069514274597,
-0.37734052538871765,
-0.2175033688545227,
0.1077679693698883,
0.16231514513492584,
0.7060906291007996,
-0.09300778806209564,
-0.46360594034194946,
0.7872037291526794,
-0.03510010987520218,
-0.35845765471458435,
0.058800771832466125,
0.5080544352531433,
0.04483301192522049,
-0.11441370844841003,
-0.19895553588867188,
0.6941424608230591,
0.008912945166230202,
0.1344360113143921,
-0.2006939798593521,
-0.4680553376674652,
0.5286431312561035,
0.25067052245140076,
-0.1092492938041687,
0.07148151099681854,
0.1706617772579193,
0.2525334358215332,
0.34448006749153137,
-0.0604805164039135,
0.07768147438764572,
0.056526560336351395,
0.13006767630577087,
0.24427467584609985,
0.016542578116059303,
-0.26781365275382996,
0.19443997740745544,
-0.23787084221839905,
-0.5962437391281128,
0.1379382312297821,
0.00445256382226944,
-0.22707802057266235,
0.22112873196601868,
-0.11973479390144348,
0.19184455275535583,
-0.1130477637052536,
0.07041823863983154,
0.07282083481550217,
-0.06375133991241455,
0.0359923355281353,
-0.19661785662174225,
-0.13040921092033386,
-0.12175393104553223,
-0.1547304391860962,
0.0039050253108143806,
0.2122250199317932,
0.03129727393388748,
-0.08970661461353302,
0.3491775691509247,
0.5928799510002136,
0.030089180916547775,
-0.0807667151093483,
0.14765366911888123,
0.07509911805391312,
-0.1631668210029602,
0.2906978130340576,
0.019502408802509308,
0.6055521368980408,
0.3023277223110199,
-0.24512562155723572,
0.1431189328432083,
0.3871825933456421,
-0.03192872926592827,
0.22010838985443115,
0.20579084753990173,
0.6911457777023315,
-0.17326638102531433,
-0.20113089680671692,
-0.03599958121776581,
-0.0938761979341507,
-0.05588128790259361,
-0.24278032779693604,
-0.35306328535079956,
0.009232960641384125,
-0.0009055398404598236,
-0.2990611791610718,
0.10237622261047363,
-0.06318839639425278,
-0.543587863445282,
0.29885396361351013,
0.04944678395986557,
-0.02855817601084709,
0.30319568514823914,
0.00586535781621933,
0.006882213056087494,
-0.03201020136475563,
0.1325022131204605,
0.227866068482399,
0.2993924617767334,
0.10438600927591324,
-0.18835051357746124,
-0.07720176875591278,
-0.20152567327022552,
-0.11348390579223633,
0.05356214568018913,
-0.0895325243473053,
0.24117054045200348,
0.04129752516746521,
0.25652238726615906,
0.41449394822120667,
0.014173567295074463,
0.22227269411087036,
-0.042317528277635574,
0.07571452111005783,
0.001961272209882736,
0.15073072910308838,
-0.26595157384872437,
-0.4235904812812805,
-0.0400434210896492,
0.029292255640029907,
-0.11782188713550568,
0.26229193806648254,
0.14484158158302307,
0.17112015187740326,
-0.07698865234851837,
-0.1733710914850235,
-0.20953494310379028,
0.3818932771682739,
-0.32292160391807556,
-0.15607884526252747,
-0.060211971402168274,
-0.11950181424617767,
-0.08179840445518494,
0.05128316208720207,
0.27458059787750244,
-0.06397580355405807,
0.3549925684928894,
0.45075249671936035,
-0.007581605575978756,
-0.1911911815404892,
-0.43397003412246704,
0.018504589796066284,
0.05064564570784569,
0.2169715017080307,
-0.07524992525577545,
-0.0754861831665039,
0.1266772747039795,
-0.23562248051166534,
-0.09456346184015274,
-0.40455126762390137,
-0.0439576618373394,
-0.21158632636070251,
-0.17978423833847046,
-0.018036585301160812,
-0.30645614862442017,
-0.08573027700185776,
-0.4518192708492279,
-0.17826713621616364,
0.41111457347869873,
-0.11318081617355347,
0.4838877320289612,
0.12946277856826782,
-0.3423333764076233,
0.07171721011400223,
-0.021470624953508377,
0.1171504557132721,
-0.08485947549343109,
-0.29013916850090027,
0.14699116349220276,
-0.5867847800254822,
-0.4462217390537262,
-0.14776934683322906,
-0.02192070707678795,
0.05935300886631012,
0.16546887159347534,
-0.6037142872810364,
-0.04008359834551811,
0.1073317676782608,
0.25744158029556274,
-0.07116013020277023,
-0.3257616460323334,
0.3278181254863739,
0.08002212643623352,
0.0438431054353714,
-0.20348873734474182,
-0.15086320042610168,
-0.260457843542099,
-0.046025775372982025,
0.2202909141778946,
0.3321329951286316,
-0.29686683416366577,
0.5189400315284729,
0.30586951971054077,
0.06395530700683594,
-0.17344054579734802,
0.29944247007369995,
0.21573501825332642,
0.09459266066551208,
0.3629152774810791,
0.033069975674152374,
0.1078675240278244,
-0.05552935600280762,
-0.024301033467054367,
0.267508864402771,
0.017069721594452858,
-0.4916909635066986,
-0.28603479266166687,
-0.45134422183036804,
-0.30155307054519653,
-0.21948310732841492,
0.1638207584619522,
0.12655192613601685,
0.7068167328834534,
0.03674507513642311,
-0.2715644836425781,
-0.26087886095046997,
-0.5439241528511047,
-0.05290064960718155,
0.015836194157600403,
0.4337776005268097,
0.14209546148777008,
-0.02885179966688156,
-0.3666352927684784,
-0.36980047821998596,
-0.0949656218290329,
0.14921049773693085,
0.42363277077674866,
-0.28107085824012756,
0.3498114347457886,
0.21009182929992676,
0.0038342932239174843,
-0.1465034931898117,
-0.11729510873556137,
0.20599710941314697,
0.08635033667087555,
-0.15972185134887695,
-0.06303714960813522,
0.35929858684539795,
-0.14135834574699402,
0.39858198165893555,
0.17678038775920868,
0.3208019733428955,
-0.15469717979431152,
-0.4560801386833191,
0.17932674288749695,
-0.11339417845010757,
-0.15584421157836914,
-0.15796075761318207,
0.1927947998046875,
0.01487184688448906,
-0.09565254300832748,
-0.07504532486200333,
-0.16369886696338654,
0.058543797582387924,
-0.21204222738742828,
0.15963616967201233,
0.1009083017706871,
0.3026939034461975,
0.21892495453357697,
0.0021815206855535507,
-0.17074474692344666,
0.20892541110515594,
-0.06172359734773636,
0.13068556785583496,
0.4106845259666443,
-0.2167106419801712,
0.046680767089128494,
0.3789794445037842,
0.12623804807662964,
0.02978602610528469,
0.014283771626651287,
0.48601093888282776,
0.4820484519004822,
0.14250828325748444,
0.09664352238178253,
-0.12117360532283783,
-0.18334127962589264,
-0.28155285120010376,
-0.07235902547836304,
0.08428248018026352,
-0.33037424087524414,
0.21980176866054535,
-0.035743728280067444,
0.33972829580307007,
-0.17577338218688965,
-0.19829779863357544,
0.08994363248348236,
-0.07550027966499329,
-0.19886524975299835,
0.41284990310668945,
0.27254658937454224,
1.0386300086975098,
-0.13736648857593536,
0.383443683385849,
-0.01969137042760849,
-0.19770705699920654,
0.5154656171798706,
-0.27027833461761475,
0.043494075536727905,
-0.198078915476799,
0.23642149567604065,
-0.11288770288228989,
-0.044091321527957916,
0.1217050552368164,
-0.062314264476299286,
0.03576282039284706,
0.13584986329078674,
0.32398343086242676,
-0.29672348499298096,
0.06868480145931244,
0.3357773423194885,
0.3997141420841217,
-0.2651273012161255,
-0.3937946856021881,
-0.024837657809257507,
-0.2576265335083008,
0.2632715106010437,
0.035975340753793716,
-0.6510300636291504,
-0.0908365547657013,
0.2664675712585449,
-0.24222201108932495,
-0.07490690052509308,
-0.2591438293457031,
-0.002698207274079323,
0.08725219964981079,
-0.36319422721862793,
0.5744149684906006,
0.4063815176486969,
0.2704291343688965,
0.20252330601215363,
-0.49369943141937256,
-0.3203508257865906,
-0.243557870388031,
-0.3420480787754059,
0.19349336624145508,
0.1921101212501526,
0.31045112013816833,
-0.23762622475624084,
-0.14744116365909576,
0.0690198764204979,
0.07323194295167923,
-0.5395255088806152,
-0.2327623963356018,
-0.045640237629413605,
0.4490928649902344,
-0.1730312705039978,
-0.028515702113509178,
0.1894911527633667,
-0.38812485337257385,
0.07088452577590942,
0.07141949236392975,
0.3598955273628235,
-0.18135453760623932,
0.0008806511759757996,
0.25824299454689026,
-0.039100103080272675,
0.10798995196819305,
0.20641225576400757,
0.19713762402534485,
0.04759664833545685,
0.26635050773620605,
-0.19168640673160553,
0.03371107578277588,
-0.08517096191644669,
0.307285338640213,
-0.1627015322446823,
-0.14389921724796295,
-0.24231423437595367,
0.22422602772712708,
-0.22330650687217712,
-0.18701550364494324,
0.30217888951301575,
-0.13817182183265686,
-0.1680939495563507,
-0.1998983919620514,
-0.559211254119873,
-0.22772693634033203,
0.29291486740112305,
-0.16144520044326782,
-0.09622709453105927,
-0.01829381100833416,
0.6015929579734802,
0.010629767552018166,
0.2008107453584671,
-0.2129143327474594,
0.2726168632507324,
-0.23260368406772614,
0.25893455743789673,
0.2685909569263458,
-0.10048491507768631,
-0.2009238302707672,
0.1522371768951416,
-0.09641191363334656,
0.15592318773269653,
-0.20942141115665436,
-0.07532329857349396,
-0.1471344530582428,
0.19753924012184143,
0.27885901927948,
-0.4151139557361603,
-0.19198624789714813,
-0.6648946404457092,
-0.2572937309741974,
0.1207345575094223,
-0.026088446378707886,
0.07009924948215485,
0.07715941965579987,
0.22838126122951508,
-0.20032687485218048,
0.29886648058891296,
0.019268840551376343,
0.2921558618545532,
0.11981115490198135,
0.4512791633605957,
-0.12378102540969849,
0.29363563656806946,
-0.052420102059841156,
-0.13773491978645325,
-0.05345872789621353,
-0.06985069066286087,
0.2850036323070526,
-0.09466163069009781,
0.6047862768173218,
-0.04835805296897888,
-0.13244196772575378,
0.08570518344640732,
0.02989373728632927,
-0.06609192490577698,
-0.11312011629343033,
0.36234188079833984,
0.16693651676177979,
-0.01427498646080494,
-0.1824152022600174,
-0.17858292162418365,
-0.06315301358699799,
0.16172149777412415,
-0.1925419121980667,
-0.05010300129652023,
0.7015509605407715,
0.26075226068496704,
0.3034805655479431,
-0.2565443813800812,
-0.027614183723926544,
-0.34275001287460327,
-0.32377728819847107,
-0.010046672075986862,
-0.22351743280887604,
-0.036093976348638535,
-0.11985436826944351,
0.3481205999851227,
0.02445552498102188,
-0.046034470200538635,
0.24685996770858765,
0.3549419045448303,
0.23594120144844055,
0.006491348147392273,
0.2251615822315216,
0.02858840674161911,
-0.22061721980571747,
-0.053610384464263916,
0.3036887049674988,
0.2582816779613495,
-0.36936986446380615,
0.4333000183105469,
0.0842202752828598,
0.1218346506357193,
0.3150322437286377,
0.17671407759189606,
0.0025230608880519867,
-0.2023657262325287,
-0.1296452134847641,
0.02329925447702408,
0.06203942000865936,
-0.23287808895111084,
-0.24340900778770447,
-0.1838621348142624,
0.08273328095674515,
0.23357029259204865,
0.16296915709972382,
-0.10653407871723175,
-0.1186971440911293,
0.47155138850212097,
0.1982189416885376,
-0.1951874941587448,
0.46477341651916504,
-0.30475395917892456,
0.17824368178844452,
0.1193438470363617,
0.22133173048496246,
0.024607762694358826,
0.04591488093137741,
-0.5211941003799438,
-0.04554128646850586,
-0.47624096274375916,
-0.07266151905059814,
0.016305696219205856,
0.37164294719696045,
0.3945470452308655,
-0.18003861606121063,
0.3248775601387024,
-0.12164301425218582,
0.08312211185693741,
0.09599015861749649,
0.11076381802558899,
0.09474587440490723,
-0.19654546678066254,
0.48423847556114197,
0.05747446417808533,
-0.413012832403183,
0.06285683065652847,
-0.16276180744171143,
0.1354074478149414,
0.17418807744979858,
0.4179724454879761,
-0.10497962683439255,
0.08093409240245819,
-0.17229795455932617,
0.0453132688999176,
-0.14309963583946228,
0.2850533723831177,
0.08290478587150574,
0.5021234750747681,
-0.056717343628406525,
-0.221139058470726,
-0.23733653128147125,
0.41162097454071045,
0.31909772753715515,
-0.08139108866453171,
0.0870063379406929,
0.18057994544506073,
0.3197389543056488,
0.5312249660491943,
-0.2244129329919815,
-0.307553231716156,
0.15142503380775452,
-0.09811536967754364,
0.0387728326022625,
0.17473191022872925,
-0.24536840617656708,
0.2914702594280243,
-0.08228851109743118,
-0.11178265511989594,
0.2605932652950287,
-0.2142174392938614,
-0.06406688690185547,
-0.31921130418777466,
0.18886470794677734,
-0.1893608570098877,
0.3761965334415436,
0.39251306653022766,
0.011144464835524559,
0.08736108243465424,
-0.05466194450855255,
-0.15115132927894592,
-0.10100048780441284,
-0.007314762566238642,
-0.033722326159477234,
-0.07546579092741013,
0.19209931790828705,
-0.07294178009033203,
-0.37595701217651367,
0.026991695165634155,
-0.16722293198108673,
-0.1299837827682495,
-0.36319154500961304,
0.21771232783794403,
0.3509698510169983,
-0.1358589231967926,
-0.30879196524620056,
0.13547907769680023,
0.011853969655930996,
0.39432230591773987,
-0.2195734679698944,
-0.19366572797298431,
-0.13838781416416168,
0.08235440403223038,
0.1938239336013794,
-0.5943898558616638,
0.049454230815172195,
0.10759565979242325,
0.24108955264091492,
0.0790659487247467,
-0.0995781421661377,
-0.3960791230201721,
-0.018522024154663086,
0.11313855648040771,
0.11504731327295303,
-0.021886169910430908,
-0.08091983199119568,
-0.01654462143778801,
-0.09301162511110306,
-0.10346529632806778,
0.4703730046749115,
-0.0470544770359993,
0.0389227569103241,
-0.2427380084991455,
-0.3359512686729431
] |
https://github.com/huggingface/datasets/issues/279 | Dataset Preprocessing Cache with .map() function not working as expected | When you're processing a dataset with `.map`, it checks whether it has already done this computation using a hash based on the function and the input (using some fancy serialization with `dill`). If you found that it doesn't work as expected in some cases, let us know !
Given that, you can still force to re-process using `.map(my_func, load_from_cache_file=False)` if you want to.
I am curious about the problem you have with splits. It makes me think about #160 that was an issue of version 0.1.0. What version of `nlp` are you running ? Could you give me more details ? | I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system.
Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file.
Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess.
I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set.
Thanks! | 101 | Dataset Preprocessing Cache with .map() function not working as expected
I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system.
Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file.
Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess.
I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set.
Thanks!
When you're processing a dataset with `.map`, it checks whether it has already done this computation using a hash based on the function and the input (using some fancy serialization with `dill`). If you found that it doesn't work as expected in some cases, let us know !
Given that, you can still force to re-process using `.map(my_func, load_from_cache_file=False)` if you want to.
I am curious about the problem you have with splits. It makes me think about #160 that was an issue of version 0.1.0. What version of `nlp` are you running ? Could you give me more details ? | [
0.006409745663404465,
0.12744852900505066,
-0.017668195068836212,
0.07282628864049911,
-0.01489313319325447,
-0.01719401776790619,
-0.007192287594079971,
0.28662940859794617,
0.2888214886188507,
-0.09753930568695068,
0.27223753929138184,
0.44885560870170593,
-0.03161655738949776,
-0.09311733394861221,
0.050085365772247314,
0.12417306005954742,
0.12280966341495514,
0.30036604404449463,
-0.03343649208545685,
0.13032227754592896,
-0.3629051744937897,
0.1479870229959488,
-0.30158117413520813,
0.11297774314880371,
-0.33480939269065857,
-0.2727017402648926,
0.01725745014846325,
0.09578770399093628,
-0.018857212737202644,
-0.3256305456161499,
0.2679969370365143,
0.3375691771507263,
-0.10443853586912155,
0.3873218297958374,
-0.00012122102634748444,
-0.0419374480843544,
0.4864031672477722,
-0.022295279428362846,
-0.36118921637535095,
-0.19473819434642792,
-0.270281583070755,
-0.24207660555839539,
0.1916082501411438,
-0.10748375952243805,
-0.003914728760719299,
0.1268710047006607,
0.09830797463655472,
-0.8171733021736145,
0.3626423478126526,
-0.11879217624664307,
0.12255991995334625,
0.04275297746062279,
-0.37788087129592896,
0.34510791301727295,
0.140994593501091,
0.24489372968673706,
-0.15061497688293457,
0.015682261437177658,
0.2492569386959076,
-0.3786753714084625,
-0.1975916624069214,
0.25994327664375305,
-0.1872858852148056,
0.09816521406173706,
0.18936920166015625,
-0.09604393690824509,
-0.1506907045841217,
-0.5925687551498413,
0.24822667241096497,
0.09385663270950317,
0.38339704275131226,
-0.2222251296043396,
-0.24843698740005493,
-0.3732970952987671,
-0.20665696263313293,
-0.24355065822601318,
0.42303743958473206,
0.03968006744980812,
0.0000029047951102256775,
0.12134264409542084,
-0.8589968085289001,
-0.24179674685001373,
0.19907337427139282,
0.051570698618888855,
0.305081844329834,
0.14971968531608582,
-0.1075391098856926,
0.1488330066204071,
0.2520419657230377,
-0.0432584211230278,
0.19558952748775482,
-0.381019651889801,
-0.11687891185283661,
0.54404217004776,
-0.27103933691978455,
-0.01574041321873665,
-0.11967844516038895,
0.3277146816253662,
0.09307561814785004,
0.0809234082698822,
0.12171191722154617,
0.3118824362754822,
-0.12564697861671448,
0.1597679853439331,
0.40046456456184387,
0.4134689271450043,
0.26397213339805603,
0.13816694915294647,
0.13299602270126343,
-0.26752525568008423,
-0.14181271195411682,
0.08522194623947144,
0.25527065992355347,
-0.2441578209400177,
0.02489522472023964,
0.18360427021980286,
-0.08212612569332123,
-0.28865960240364075,
0.1652616560459137,
-0.2047528773546219,
-0.3881450295448303,
-0.30141279101371765,
0.04660328850150108,
-0.03465103358030319,
0.06427184492349625,
0.3691863417625427,
-0.0679803118109703,
0.023770973086357117,
-0.36674419045448303,
-0.23129598796367645,
-0.032353293150663376,
-0.18591873347759247,
-0.45030996203422546,
0.291748583316803,
0.4802573621273041,
-0.022991415113210678,
0.14795850217342377,
0.0876559242606163,
0.007695332169532776,
-0.25259989500045776,
0.3581242561340332,
-0.34464356303215027,
0.5570874214172363,
0.07972174882888794,
-0.1528121829032898,
0.21264930069446564,
0.004481792449951172,
0.22687683999538422,
-0.18949532508850098,
0.24100244045257568,
-0.3587460517883301,
-0.10224544256925583,
0.4592742323875427,
-0.0000667152926325798,
-0.2909379005432129,
0.25379812717437744,
-0.09929551929235458,
0.3521670997142792,
0.4363526403903961,
-0.47559744119644165,
-0.012422114610671997,
0.06944610178470612,
-0.415818989276886,
-0.2272678166627884,
0.2569476366043091,
0.4410961866378784,
-0.19381481409072876,
-0.11987726390361786,
-0.21411773562431335,
0.017956029623746872,
0.356332004070282,
0.12710662186145782,
-0.19388405978679657,
0.2086489498615265,
-0.16836246848106384,
0.29002201557159424,
0.3815333843231201,
0.13519133627414703,
-0.4795578420162201,
0.47137799859046936,
0.2284037321805954,
0.22769148647785187,
-0.3854047358036041,
0.03757094219326973,
0.07910114526748657,
-0.12692782282829285,
-0.17642360925674438,
0.3006061315536499,
0.06274043768644333,
0.041374996304512024,
-0.275734007358551,
-0.38749033212661743,
0.39892494678497314,
-0.1624767929315567,
-0.057577360421419144,
0.4469156265258789,
-0.1317184865474701,
-0.21320222318172455,
0.07780744880437851,
-0.08799637854099274,
0.2669745981693268,
0.07546745240688324,
-0.17612263560295105,
-0.12861116230487823,
0.08327330648899078,
-0.17623132467269897,
-0.496234655380249,
0.27244359254837036,
-0.32409754395484924,
-0.22737139463424683,
0.10259339958429337,
0.004281770437955856,
0.1540931761264801,
-0.18190596997737885,
-0.11510303616523743,
-0.13373997807502747,
0.019979871809482574,
-0.09290070831775665,
0.2611236274242401,
-0.12856824696063995,
-0.1667255312204361,
0.48820534348487854,
0.2561485469341278,
-0.10327132791280746,
-0.24714456498622894,
0.00039501674473285675,
0.0874282717704773,
-0.17196744680404663,
-0.29004132747650146,
0.19598188996315002,
0.20515400171279907,
-0.07530952244997025,
-0.19126537442207336,
0.4112711548805237,
0.26730284094810486,
0.20199713110923767,
0.003380563110113144,
0.01450173556804657,
0.12685315310955048,
-0.0009964406490325928,
0.05895465612411499,
-0.035940248519182205,
-0.037574395537376404,
-0.1615539789199829,
-0.059397049248218536,
0.3376886248588562,
-0.1741294413805008,
0.3409544825553894,
0.0023426301777362823,
-0.010829179547727108,
0.11171968281269073,
-0.13573449850082397,
-0.02847474068403244,
-0.30596280097961426,
0.06595168262720108,
-0.04742167517542839,
0.4817926287651062,
0.037396498024463654,
0.07832494378089905,
-0.03467533737421036,
0.29128509759902954,
0.13216140866279602,
0.012399043887853622,
-0.040326088666915894,
0.007651485502719879,
-0.27627331018447876,
0.10637922585010529,
0.23535345494747162,
0.38391178846359253,
0.021585676819086075,
0.34650999307632446,
-0.0069527532905340195,
-0.0878048911690712,
-0.04660100117325783,
-0.05628398805856705,
0.039311885833740234,
0.389308899641037,
-0.005982756614685059,
0.09336911141872406,
0.017892178148031235,
-0.15839821100234985,
0.14637397229671478,
0.1444566696882248,
-0.11717331409454346,
-0.07464581727981567,
0.2454180270433426,
-0.48934048414230347,
-0.29455286264419556,
0.031384438276290894,
-0.04022391140460968,
-0.43568602204322815,
-0.20970094203948975,
0.0017259884625673294,
0.14657489955425262,
0.06305299699306488,
0.2800104320049286,
-0.010184820741415024,
0.3138226568698883,
-0.31680312752723694,
-0.192949116230011,
-0.1992984116077423,
-0.3507534861564636,
-0.24579119682312012,
-0.011054139584302902,
0.13491444289684296,
-0.02639659121632576,
0.24722537398338318,
0.03273458033800125,
-0.1674441695213318,
-0.010445691645145416,
-0.008220717310905457,
0.26683783531188965,
0.10253806412220001,
-0.0167489405721426,
-0.2774062752723694,
-0.160661980509758,
-0.2169783115386963,
0.0876845046877861,
-0.05500364303588867,
-0.4442882835865021,
-0.18322141468524933,
-0.026912661269307137,
0.029725421220064163,
0.007562900427728891,
-0.3920730650424957,
-0.06729946285486221,
-0.09589283168315887,
-0.07541898638010025,
0.09485070407390594,
-0.21425940096378326,
0.20399880409240723,
0.08612983673810959,
-0.0828520879149437,
-0.07849371433258057,
-0.09812883287668228,
-0.21458850800991058,
-0.3659683167934418,
-0.2436293512582779,
0.16148610413074493,
-0.15922316908836365,
-0.1678784191608429,
0.0809418112039566,
0.05093764513731003,
0.16131508350372314,
0.7081988453865051,
-0.24564166367053986,
0.08163812756538391,
-0.051445282995700836,
-0.15348030626773834,
0.07925304770469666,
-0.0001601874828338623,
0.46739691495895386,
0.1011040136218071,
0.10885117948055267,
-0.22403714060783386,
-0.3684273660182953,
0.22696664929389954,
0.17116552591323853,
0.2487746775150299,
0.44046175479888916,
0.024673543870449066,
0.10915003716945648,
0.8266456723213196,
0.40550118684768677,
-0.12633121013641357,
0.2748202085494995,
0.2606123685836792,
0.26305875182151794,
-0.251149445772171,
-0.006956697441637516,
-0.10725042223930359,
-0.4178151786327362,
-0.021320339292287827,
0.2703506052494049,
0.014495911076664925,
-0.7684552073478699,
-0.21497522294521332,
0.3027918338775635,
-0.32290926575660706,
-0.23635536432266235,
0.05265594646334648,
-0.5057757496833801,
0.5118846893310547,
0.14725643396377563,
0.05122402310371399,
-0.29932355880737305,
-0.23637264966964722,
-0.12834197282791138,
-0.16721795499324799,
0.7289862036705017,
0.0014053421327844262,
-0.4842476546764374,
-0.022138074040412903,
-0.33372029662132263,
0.21051257848739624,
0.13405540585517883,
0.5019212961196899,
-0.313271701335907,
-0.09185829758644104,
0.07791547477245331,
0.15111596882343292,
0.48568499088287354,
-0.41337594389915466,
-0.013013780117034912,
0.08947280049324036,
-0.14347979426383972,
-0.036748889833688736,
0.14464721083641052,
0.25118333101272583,
0.6791272759437561,
0.37769559025764465,
0.14720188081264496,
-0.027060456573963165,
-0.2170240432024002,
-0.38504356145858765,
0.07469707727432251,
-0.09577253460884094,
-0.35529395937919617,
-0.07398118078708649,
0.2762761116027832,
-0.2644430696964264,
-0.20004138350486755,
-0.07766497135162354,
-0.2506612241268158,
-0.16046541929244995,
-0.03369145095348358,
-0.041776880621910095,
0.07360067963600159,
0.17746806144714355,
0.23504261672496796,
0.3998059928417206,
-0.022842859849333763,
-0.16727828979492188,
0.5847773551940918,
0.21058547496795654,
-0.31361398100852966,
0.4340095520019531,
-0.21983063220977783,
0.23109906911849976,
0.21869629621505737,
-0.029139764606952667,
0.20933634042739868,
0.4655958414077759,
-0.05889655277132988,
-0.12104777246713638,
0.021338388323783875,
-0.20668910443782806,
-0.4833385944366455,
-0.03169910982251167,
0.16944488883018494,
-0.1293511837720871,
-0.3581574261188507,
-0.3836257755756378,
0.3327215909957886,
0.3341456353664398,
-0.3819211721420288,
0.35498344898223877,
-0.2618374824523926,
-0.3019738793373108,
0.32533103227615356,
0.02395007759332657,
1.004835844039917,
-0.1948838084936142,
-0.12483178079128265,
-0.40323546528816223,
0.10959476232528687,
0.4291093945503235,
-0.3195332884788513,
0.3689873218536377,
-0.24419859051704407,
-0.0008731111884117126,
-0.05880776047706604,
-0.12479749321937561,
0.2702730596065521,
0.746140718460083,
-0.11364869773387909,
0.3719305098056793,
0.10796312987804413,
0.06013397499918938,
-0.00922156311571598,
0.10001018643379211,
0.2591947019100189,
-0.3843863308429718,
-0.023567210882902145,
0.07237226516008377,
-0.16980306804180145,
0.06634736061096191,
0.0669570043683052,
-0.042492035776376724,
0.007067527621984482,
0.13549858331680298,
-0.10999557375907898,
0.18842720985412598,
-0.14768528938293457,
0.07286038249731064,
-0.1071479320526123,
-0.03968318551778793,
0.33602070808410645,
0.1492699533700943,
0.18809464573860168,
-0.007801041007041931,
-0.22215043008327484,
-0.051712702959775925,
0.3180357813835144,
0.20391881465911865,
-0.10836837440729141,
0.18314778804779053,
-0.04067004472017288,
0.002089455723762512,
-0.12452621012926102,
-0.2530968189239502,
-0.22529082000255585,
-0.3147903084754944,
-0.05378274619579315,
0.0620620921254158,
0.16928918659687042,
-0.17643821239471436,
-0.18922202289104462,
0.26402807235717773,
0.1497405767440796,
0.1316511482000351,
0.06895789504051208,
0.12832492589950562,
0.11214902997016907,
0.38216909766197205,
-0.01735755428671837,
-0.1874624490737915,
0.006448384374380112,
0.2096817046403885,
-0.007049489766359329,
-0.19488754868507385,
0.1713547706604004,
-0.07167918980121613,
-0.23656725883483887,
-0.12360246479511261,
-0.2610141634941101,
-0.28974688053131104,
-0.24611392617225647,
-0.0908442884683609,
-0.08715913444757462,
-0.08644743263721466,
0.030213164165616035,
-0.23087123036384583,
-0.05317167937755585,
0.19101572036743164,
-0.19796188175678253,
-0.28898996114730835,
-0.11364227533340454,
-0.0676405280828476,
-0.2768878936767578,
0.217623770236969,
0.1326083242893219,
-0.17758026719093323,
0.17861264944076538,
0.512245774269104,
-0.16153250634670258,
-0.07358679175376892,
0.11604175716638565,
0.30809327960014343,
0.1839492917060852,
0.08730800449848175,
-0.1668291687965393,
-0.24345745146274567,
-0.22753745317459106,
0.07588754594326019,
-0.3767928183078766,
-0.10499531775712967,
0.08643420040607452,
0.2187224179506302,
0.025657428428530693,
-0.46682795882225037,
-0.07375284284353256,
-0.10028890520334244,
0.07878424972295761,
-0.42769360542297363,
-0.042802318930625916,
-0.08305516839027405,
-0.0892084538936615,
0.44223806262016296,
0.30843931436538696,
0.02077973634004593,
-0.2366681545972824,
0.13844946026802063,
-0.06560955941677094,
0.15515021979808807,
0.04685293138027191,
0.15830710530281067,
0.20344603061676025,
0.07087665796279907,
-0.25761643052101135,
-0.15238121151924133,
0.06384965032339096,
-0.005550455302000046,
0.2288091480731964,
-0.20151527225971222,
0.28544166684150696,
0.07845506817102432,
0.18843714892864227,
0.20132949948310852,
0.04898981750011444,
-0.1246560588479042,
0.2670290172100067,
0.023114895448088646,
-0.030658738687634468,
-0.2331518530845642,
0.8174625635147095,
0.23632481694221497,
-0.04707828164100647,
0.29473352432250977,
0.3611821234226227,
0.1418645679950714,
0.21634168922901154,
0.010650034993886948,
0.32912224531173706,
-0.49177443981170654,
0.21056240797042847,
0.21032585203647614,
0.1886695772409439,
0.1961781531572342,
0.2223794013261795,
0.13657498359680176,
0.021185167133808136,
0.1992657333612442,
0.4374975264072418,
0.2988743782043457,
0.3040633201599121,
0.46977031230926514,
-0.04941130429506302,
-0.5832747220993042,
0.0528545118868351,
0.4703790247440338,
-0.05832333862781525,
0.36754319071769714,
0.025562241673469543,
0.2290533483028412,
-0.13277693092823029,
-0.40961754322052,
0.008785640820860863,
0.18527495861053467,
-0.03254085034132004,
-0.1582811176776886,
0.0817122608423233,
-0.09036028385162354,
0.03980347514152527,
-0.011335926130414009,
-0.14559412002563477,
0.13090798258781433,
0.8235418796539307,
0.05222771689295769,
-0.029498867690563202,
-0.08354362100362778,
-0.058716483414173126,
-0.05525047332048416,
0.3492956757545471,
-0.05783621594309807,
0.16473478078842163,
-0.431399405002594,
0.08424755930900574,
0.06665631383657455,
0.32546550035476685,
0.00887373462319374,
0.36602067947387695,
-0.373334676027298,
-0.059859488159418106,
0.043003711849451065,
0.01461380161345005,
-0.248928040266037,
0.5730592012405396,
0.20414987206459045,
-0.2849007546901703,
0.1977989226579666,
-0.05765560269355774,
0.14152026176452637,
-0.08842143416404724,
0.11050323396921158,
0.44400250911712646,
-0.008537258952856064,
0.31206780672073364,
0.23482410609722137,
-0.15584027767181396,
0.22597692906856537,
0.05432138964533806,
-0.20923349261283875,
0.10872173309326172,
0.33016422390937805,
-0.20414067804813385,
0.17643922567367554,
-0.0717591792345047,
0.01582418754696846,
0.06505866348743439,
0.42507001757621765,
0.2880595624446869,
0.049976199865341187,
-0.20273305475711823,
-0.2592551112174988,
-0.49176084995269775,
-0.06182072311639786,
-0.11751557886600494,
0.16780664026737213,
0.0469292476773262,
-0.06593023240566254,
-0.07301617413759232,
0.30850672721862793,
-0.1196216493844986,
-0.35444408655166626,
0.08945077657699585,
0.007595635950565338,
-0.3419649004936218,
0.06482204794883728,
-0.2347061187028885,
0.11872748285531998,
-0.10042847692966461,
-0.30493536591529846,
0.12478047609329224,
0.18614117801189423,
-0.15504206717014313,
0.07889203727245331,
-0.21648678183555603,
-0.00801941566169262,
0.48573216795921326,
0.2058420330286026,
0.5476563572883606,
0.14505526423454285,
0.06310908496379852,
0.06931257247924805,
-0.34240248799324036,
0.03431389853358269,
-0.042680371552705765,
-0.0744057223200798,
0.052613481879234314,
0.20844925940036774,
-0.5877817273139954,
0.24763520061969757,
-0.23618482053279877,
-0.13152441382408142,
-0.10149157047271729,
0.19911989569664001,
-0.21817326545715332,
-0.2773998975753784,
-0.0475541353225708,
0.1429564654827118,
0.24319584667682648,
0.5879483819007874,
-0.07436572015285492,
0.1885572373867035,
-0.4346534013748169,
0.19659961760044098,
0.13311058282852173,
-0.48083093762397766,
-0.3672073185443878,
0.1718335598707199,
0.11149387806653976,
-0.06218225508928299,
-0.4134127199649811,
-0.3246701955795288,
-0.3102244734764099,
0.25679120421409607,
-0.30810225009918213,
0.03060688078403473,
0.07504618167877197,
-0.3588084578514099,
-0.09286424517631531,
-0.12932704389095306,
0.38223499059677124,
0.25471022725105286,
-0.20541812479496002,
-0.049109362065792084,
-0.20691287517547607
] |
https://github.com/huggingface/datasets/issues/279 | Dataset Preprocessing Cache with .map() function not working as expected | Thanks, that's helpful! I was running 0.1.0, but since upgraded to 0.2.1. I can't reproduce the issue anymore as I've cleared the cache & everything now seems to be running fine since the upgrade. I've added some checks to my code, so if I do encounter it again I will reopen this issue. | I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system.
Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file.
Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess.
I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set.
Thanks! | 53 | Dataset Preprocessing Cache with .map() function not working as expected
I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system.
Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file.
Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess.
I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set.
Thanks!
Thanks, that's helpful! I was running 0.1.0, but since upgraded to 0.2.1. I can't reproduce the issue anymore as I've cleared the cache & everything now seems to be running fine since the upgrade. I've added some checks to my code, so if I do encounter it again I will reopen this issue. | [
-0.05952724814414978,
0.09044821560382843,
-0.06866899132728577,
0.1003897488117218,
0.12072229385375977,
0.07992374151945114,
0.0432366207242012,
0.2624782919883728,
0.2854570150375366,
0.017796926200389862,
0.25152388215065,
0.31412386894226074,
0.13796557486057281,
-0.07564307749271393,
-0.12311971187591553,
0.17928077280521393,
0.1890161633491516,
0.19804459810256958,
-0.12831509113311768,
0.21751441061496735,
-0.33106860518455505,
0.05076161026954651,
-0.2609410881996155,
0.0022759363055229187,
-0.26566919684410095,
-0.18275919556617737,
0.15622323751449585,
0.025224529206752777,
-0.004187962040305138,
-0.26673537492752075,
0.27649548649787903,
0.3308141231536865,
-0.15849965810775757,
0.5676493644714355,
-0.00011873270705109462,
0.10421425104141235,
0.4598645567893982,
-0.07325880229473114,
-0.23600919544696808,
0.0055007487535476685,
-0.3911938965320587,
-0.04233637452125549,
0.15267212688922882,
-0.03994488716125488,
-0.034501299262046814,
0.1100190058350563,
-0.0018390361219644547,
-0.986110270023346,
0.3587905764579773,
-0.09717099368572235,
0.13504283130168915,
-0.009758489206433296,
-0.3999708294868469,
0.20264273881912231,
0.06718824803829193,
0.2150059938430786,
-0.17968438565731049,
0.003036455251276493,
0.4216761887073517,
-0.16837841272354126,
-0.140947163105011,
0.18395105004310608,
-0.20474325120449066,
0.22757163643836975,
0.22180458903312683,
-0.12146937102079391,
-0.06486118584871292,
-0.6551275253295898,
0.4548877775669098,
0.08990790694952011,
0.4829885959625244,
-0.24048808217048645,
-0.33723461627960205,
-0.18622435629367828,
-0.20376387238502502,
-0.10016454756259918,
0.4849650263786316,
-0.027662446722388268,
0.060120951384305954,
0.2609483599662781,
-0.8676718473434448,
-0.22697946429252625,
0.10660752654075623,
-0.10022346675395966,
0.1879889816045761,
-0.038095489144325256,
-0.19214335083961487,
0.12355286628007889,
0.13843311369419098,
-0.032631874084472656,
0.30905881524086,
-0.44430363178253174,
-0.12754425406455994,
0.4259268641471863,
-0.20783840119838715,
0.10904456675052643,
-0.14910158514976501,
0.2548019289970398,
0.1343226134777069,
0.054830633103847504,
0.11863025277853012,
0.4010968804359436,
-0.055815860629081726,
0.12574976682662964,
0.2708124816417694,
0.3804576098918915,
0.19995146989822388,
0.053985968232154846,
0.20719681680202484,
-0.2867136597633362,
-0.18004117906093597,
0.049800097942352295,
0.20674239099025726,
-0.28629690408706665,
0.14969514310359955,
0.0931982472538948,
0.0283399298787117,
-0.3782494366168976,
0.13232740759849548,
-0.168476402759552,
-0.3022691607475281,
-0.2636650800704956,
-0.030366238206624985,
0.07098860293626785,
0.04518251121044159,
0.3284303843975067,
-0.12477951496839523,
-0.0048172734677791595,
-0.27956774830818176,
-0.18622803688049316,
-0.03132594749331474,
-0.26994773745536804,
-0.303024560213089,
0.309579074382782,
0.38547566533088684,
-0.17761202156543732,
0.11340942978858948,
0.20704548060894012,
0.11043484508991241,
-0.30463528633117676,
0.4097123146057129,
-0.3524377942085266,
0.6011021733283997,
0.16498686373233795,
-0.17726901173591614,
0.25313884019851685,
0.08846962451934814,
0.33418339490890503,
-0.09591519832611084,
0.34659507870674133,
-0.41387027502059937,
-0.07955728471279144,
0.5190355777740479,
0.0128129618242383,
-0.25682222843170166,
0.29694458842277527,
-0.1490400731563568,
0.20666469633579254,
0.3854323923587799,
-0.3386058211326599,
-0.04067464917898178,
0.07820583134889603,
-0.3557202219963074,
-0.23433518409729004,
0.31828773021698,
0.43764543533325195,
-0.34514060616493225,
-0.02440844476222992,
-0.04541937634348869,
0.030383862555027008,
0.3146098554134369,
-0.050898853689432144,
-0.15410929918289185,
0.251276433467865,
-0.2133023738861084,
0.08423241972923279,
0.11313386261463165,
0.0664178878068924,
-0.45643332600593567,
0.45959964394569397,
0.2408318668603897,
0.3241768479347229,
-0.32762953639030457,
-0.031035302206873894,
0.0604768842458725,
-0.05843297019600868,
-0.2508625090122223,
0.09460296481847763,
0.09315919131040573,
0.04630172252655029,
-0.14572188258171082,
-0.35079705715179443,
0.2563437819480896,
-0.209525927901268,
0.00448598712682724,
0.5632541179656982,
-0.14819657802581787,
-0.464582622051239,
0.037364546209573746,
-0.15065687894821167,
0.27618294954299927,
0.1701613962650299,
-0.10558822751045227,
-0.08807651698589325,
0.08799460530281067,
-0.13983753323554993,
-0.3425431251525879,
0.379433274269104,
-0.14247551560401917,
-0.3455410301685333,
0.05062155798077583,
-0.009350977838039398,
0.10302544385194778,
-0.15865105390548706,
-0.207757368683815,
-0.05006318911910057,
0.02353348582983017,
-0.03392461687326431,
0.16576488316059113,
-0.20363540947437286,
-0.11530569195747375,
0.5470618009567261,
0.18918968737125397,
-0.0793972983956337,
-0.15102334320545197,
-0.03508266061544418,
0.20971833169460297,
-0.15024808049201965,
-0.3731405735015869,
-0.02457139641046524,
0.14707154035568237,
-0.13567139208316803,
-0.18946152925491333,
0.4257079064846039,
0.3730863630771637,
0.22146502137184143,
-0.004820201545953751,
0.13518817722797394,
0.05755678564310074,
0.06193556264042854,
0.036693137139081955,
-0.07255472242832184,
0.04982055723667145,
-0.15910983085632324,
-0.05141653120517731,
0.33448851108551025,
-0.09114120900630951,
0.3732479214668274,
-0.010009989142417908,
-0.05445268750190735,
0.1495044231414795,
-0.010228000581264496,
-0.033626310527324677,
-0.277566522359848,
-0.14472000300884247,
-0.0774001032114029,
0.5285409092903137,
0.006747810170054436,
0.09398201107978821,
-0.06365650147199631,
0.10634993016719818,
0.14433395862579346,
-0.009743168950080872,
-0.1614423394203186,
-0.0838734433054924,
-0.17453810572624207,
0.08373597264289856,
0.1592414677143097,
0.32902991771698,
-0.006220443639904261,
0.340984046459198,
-0.05735564976930618,
0.004836976993829012,
-0.02751373127102852,
-0.09392748028039932,
0.08577316254377365,
0.41931137442588806,
-0.004059948027133942,
0.029381385073065758,
-0.01159545499831438,
-0.0849875956773758,
0.17038559913635254,
0.12187289446592331,
-0.20711103081703186,
-0.18273437023162842,
0.20919254422187805,
-0.4168635308742523,
-0.05028894171118736,
0.13016539812088013,
-0.01891481876373291,
-0.298378050327301,
-0.1598963737487793,
-0.045607298612594604,
0.16537514328956604,
0.0913638323545456,
0.2640117406845093,
-0.05856865644454956,
0.26868727803230286,
-0.19540898501873016,
-0.3422110080718994,
-0.1986912190914154,
-0.20568671822547913,
-0.07325781136751175,
0.007954198867082596,
0.12568415701389313,
-0.1541634202003479,
0.2510620057582855,
-0.08870861679315567,
-0.12575921416282654,
-0.14575369656085968,
0.04051237553358078,
0.2885514497756958,
0.08543296903371811,
0.0356912687420845,
-0.3706349730491638,
-0.008976399898529053,
-0.20448309183120728,
0.2617309093475342,
-0.02085728570818901,
-0.4014311134815216,
-0.18303899466991425,
-0.012171303853392601,
0.004940204322338104,
-0.047340404242277145,
-0.30081698298454285,
-0.05673670023679733,
0.08248133957386017,
-0.03155682981014252,
0.00046450644731521606,
-0.2242863029241562,
0.09529630839824677,
-0.012026668526232243,
0.06994214653968811,
-0.07655773311853409,
-0.008229361847043037,
-0.15317173302173615,
-0.3678611218929291,
-0.49668821692466736,
0.22308869659900665,
-0.18630899488925934,
-0.1567217856645584,
0.26155903935432434,
0.21696457266807556,
0.1964534968137741,
0.7846167683601379,
-0.21753740310668945,
0.019604992121458054,
-0.13015958666801453,
-0.06387659907341003,
0.05542083457112312,
-0.02193462662398815,
0.42518046498298645,
0.18365661799907684,
0.08096855133771896,
-0.25684502720832825,
-0.3909492492675781,
0.16406840085983276,
0.09930571168661118,
0.09629587829113007,
0.47367802262306213,
0.047900669276714325,
-0.011419134214520454,
0.9212650656700134,
0.2891285717487335,
-0.06087343022227287,
0.23338519036769867,
0.17807535827159882,
0.35176363587379456,
-0.31867608428001404,
0.06092029809951782,
-0.17868559062480927,
-0.48752978444099426,
-0.14934712648391724,
0.11197493225336075,
0.03788068890571594,
-0.5454322099685669,
-0.204171821475029,
0.3990439176559448,
-0.28373798727989197,
-0.1479300856590271,
-0.062014997005462646,
-0.40058383345603943,
0.539152979850769,
0.05123095586895943,
0.18546253442764282,
-0.24672214686870575,
-0.10701988637447357,
0.05331256613135338,
-0.16044773161411285,
0.759311318397522,
-0.0761718600988388,
-0.4067286550998688,
0.027426576241850853,
-0.34066709876060486,
0.31550365686416626,
0.1099160835146904,
0.3678986430168152,
-0.27783170342445374,
-0.10297411680221558,
0.06400226056575775,
0.14806602895259857,
0.4910815358161926,
-0.4214990437030792,
0.046292614191770554,
0.05970326438546181,
-0.3347891569137573,
0.04659770429134369,
0.07164150476455688,
0.21566689014434814,
0.6267978549003601,
0.14882336556911469,
0.08738930523395538,
0.05312385410070419,
-0.1913241446018219,
-0.5050849914550781,
0.12657806277275085,
-0.11797313392162323,
-0.32586950063705444,
-0.11465711891651154,
0.22984465956687927,
-0.2708108127117157,
-0.1699540913105011,
-0.004658497869968414,
-0.26633089780807495,
-0.19300441443920135,
-0.15600062906742096,
-0.18284223973751068,
0.09821044653654099,
0.18062236905097961,
0.24435897171497345,
0.4060880243778229,
-0.061760734766721725,
-0.08406571298837662,
0.6687201261520386,
0.179963618516922,
0.02472219057381153,
0.47764745354652405,
-0.18667380511760712,
0.09950895607471466,
0.2201077938079834,
-0.12495499849319458,
0.1327970325946808,
0.41300320625305176,
-0.21081900596618652,
-0.20214629173278809,
0.019639858976006508,
-0.24659423530101776,
-0.5624933838844299,
0.0012008254416286945,
0.1807604879140854,
-0.03289831057190895,
-0.37435728311538696,
-0.4673774540424347,
0.2224668562412262,
0.3381892144680023,
-0.41767412424087524,
0.4210338592529297,
-0.17404727637767792,
-0.2860768139362335,
0.20217204093933105,
0.07861136645078659,
0.886955201625824,
-0.33601701259613037,
-0.21193340420722961,
-0.44402915239334106,
0.1028309017419815,
0.018747910857200623,
-0.297294020652771,
0.32256126403808594,
-0.16319529712200165,
-0.20738427340984344,
-0.12891125679016113,
-0.19979360699653625,
0.37842831015586853,
0.6281090378761292,
-0.11031182110309601,
0.3274943232536316,
-0.09224594384431839,
0.25768816471099854,
-0.06043802946805954,
-0.06989090889692307,
0.29256030917167664,
-0.3084753155708313,
0.09037917852401733,
0.12282063066959381,
-0.04324313998222351,
-0.06396476924419403,
0.08246142417192459,
0.07095950841903687,
-0.04374826326966286,
0.19998037815093994,
0.0007835254073143005,
0.11297524720430374,
-0.3217528164386749,
0.040950432419776917,
-0.20486821234226227,
0.0339200496673584,
0.3039816915988922,
0.2136080116033554,
0.22899585962295532,
0.01652708649635315,
-0.240359365940094,
0.045553985983133316,
0.3730083107948303,
0.2545779049396515,
-0.16776598989963531,
0.1442345529794693,
-0.1464836746454239,
0.06636978685855865,
-0.12750345468521118,
-0.12300019711256027,
-0.2934538722038269,
-0.2894785404205322,
-0.02149568498134613,
0.004472941160202026,
0.14856310188770294,
-0.2627682387828827,
-0.1725667417049408,
0.1919097602367401,
0.25429844856262207,
0.12641482055187225,
0.0789371132850647,
0.15256023406982422,
0.10949860513210297,
0.4262722432613373,
-0.07859762012958527,
-0.2673989534378052,
-0.024501189589500427,
0.2424904704093933,
-0.06461051851511002,
-0.2331259548664093,
0.1204269528388977,
-0.10185889899730682,
-0.21379703283309937,
-0.13236629962921143,
-0.18074630200862885,
-0.17522546648979187,
-0.11027792096138,
-0.049080993980169296,
-0.14082929491996765,
-0.08748164772987366,
0.011081991717219353,
-0.204919695854187,
-0.01579916849732399,
0.07566478848457336,
-0.1835901290178299,
-0.2050798237323761,
-0.18387560546398163,
-0.11539456248283386,
-0.1625484824180603,
0.3037605583667755,
-0.026322834193706512,
-0.31708091497421265,
0.15271686017513275,
0.35568082332611084,
-0.1814109981060028,
-0.10997453331947327,
0.23322337865829468,
0.1967245489358902,
0.040917910635471344,
0.28542226552963257,
-0.052515123039484024,
-0.22877947986125946,
-0.17435841262340546,
0.04591670259833336,
-0.36060410737991333,
-0.09963484108448029,
0.1999196708202362,
0.2232605367898941,
-0.128665030002594,
-0.4671006202697754,
0.011444994248449802,
-0.11605636030435562,
-0.002437181770801544,
-0.47804874181747437,
0.15064407885074615,
0.10624072700738907,
-0.060069262981414795,
0.28748029470443726,
0.32220152020454407,
0.00864914059638977,
-0.263155460357666,
0.05685771256685257,
-0.038097359240055084,
0.15410271286964417,
0.011371152475476265,
0.0845210999250412,
0.19622471928596497,
0.020219407975673676,
-0.005764445289969444,
-0.09552565962076187,
0.11706651747226715,
-0.02029462158679962,
0.29222726821899414,
-0.22070257365703583,
0.2975328862667084,
0.22768229246139526,
0.21567846834659576,
0.23885534703731537,
-0.07294425368309021,
-0.050869978964328766,
0.13771674036979675,
0.09358133375644684,
0.031032748520374298,
-0.2592697739601135,
0.743346631526947,
0.24274329841136932,
-0.04446693882346153,
0.332081139087677,
0.36853307485580444,
0.14579585194587708,
0.2659350037574768,
0.06396511942148209,
0.3084396719932556,
-0.45188993215560913,
0.22393761575222015,
0.21705496311187744,
0.1885969191789627,
0.23545779287815094,
0.30869975686073303,
0.2615509033203125,
-0.10817530006170273,
0.32234930992126465,
0.4323151111602783,
0.37067586183547974,
0.3667140603065491,
0.4741811454296112,
-0.1612987220287323,
-0.623404860496521,
0.16545502841472626,
0.37759947776794434,
-0.2864929735660553,
0.27051371335983276,
0.015828236937522888,
0.004620693624019623,
-0.07070757448673248,
-0.4744410812854767,
-0.12465831637382507,
0.020509617403149605,
-0.058468014001846313,
-0.15476392209529877,
0.24669703841209412,
-0.18909186124801636,
0.1996326446533203,
-0.053856123238801956,
-0.001348637044429779,
0.0971723198890686,
0.8700408935546875,
-0.06799688935279846,
0.003336705267429352,
-0.03456767648458481,
-0.08462820202112198,
-0.13735231757164001,
0.3553050458431244,
-0.018971078097820282,
0.09314383566379547,
-0.41315537691116333,
0.03286584094166756,
0.15062500536441803,
0.27579760551452637,
-0.029372941702604294,
0.332416832447052,
-0.3319462537765503,
-0.007848798297345638,
0.06106453016400337,
-0.009050248190760612,
-0.20359964668750763,
0.5143907070159912,
0.016502387821674347,
-0.276330828666687,
0.18106131255626678,
-0.004494662396609783,
0.14361652731895447,
-0.11808636784553528,
-0.09254559874534607,
0.5848076939582825,
-0.13718685507774353,
0.15696591138839722,
0.16740617156028748,
-0.11904722452163696,
0.2598942518234253,
-0.0118294358253479,
-0.08296723663806915,
0.04370743781328201,
0.416582316160202,
-0.28566843271255493,
0.10088438540697098,
0.043296970427036285,
0.03104100376367569,
0.06951399147510529,
0.34781938791275024,
0.3020913898944855,
-0.00020883604884147644,
-0.26230528950691223,
-0.20437853038311005,
-0.4773696959018707,
-0.011912897229194641,
-0.04181696102023125,
0.2782686948776245,
0.013727353885769844,
-0.10415957123041153,
0.024409636855125427,
0.22272218763828278,
0.12664258480072021,
-0.6021292209625244,
0.14702214300632477,
0.09904800355434418,
-0.30597883462905884,
0.032450854778289795,
-0.16317729651927948,
0.09560971707105637,
-0.07241299003362656,
-0.3027046322822571,
0.22401747107505798,
0.2514534294605255,
-0.08952383697032928,
0.08510662615299225,
-0.19307579100131989,
0.007913053035736084,
0.285419762134552,
0.42475998401641846,
0.4317095875740051,
0.09102838486433029,
0.0702405720949173,
0.1292341947555542,
-0.28914323449134827,
0.000637600664049387,
-0.0060301125049591064,
-0.03384345769882202,
0.00008843839168548584,
0.10676077008247375,
-0.5476571917533875,
0.06282802671194077,
-0.24755264818668365,
-0.183336079120636,
0.017473340034484863,
0.21717135608196259,
-0.3235861659049988,
-0.24888990819454193,
-0.012250009924173355,
0.12046710401773453,
0.211978018283844,
0.4282516539096832,
-0.027555376291275024,
0.2745814025402069,
-0.390427827835083,
0.22309044003486633,
0.13948605954647064,
-0.41483718156814575,
-0.47474944591522217,
0.07757140696048737,
0.06309367716312408,
-0.16988354921340942,
-0.4320860207080841,
-0.2826707363128662,
-0.1736198514699936,
0.2840862572193146,
-0.3131861388683319,
-0.03370336815714836,
0.08274722099304199,
-0.4859718382358551,
-0.004907984286546707,
-0.14032326638698578,
0.4262046217918396,
0.198260098695755,
-0.08944898843765259,
-0.17822636663913727,
-0.1588243544101715
] |
https://github.com/huggingface/datasets/issues/279 | Dataset Preprocessing Cache with .map() function not working as expected | Just checking in, the cache sometimes still does not work when I make changes in my processing function in version `1.2.1`. The changes made to my data processing function only propagate to the dataset when I use `load_from_cache_file=False` or clear the cache. Is this a system-specific issue? | I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system.
Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file.
Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess.
I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set.
Thanks! | 47 | Dataset Preprocessing Cache with .map() function not working as expected
I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system.
Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file.
Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess.
I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set.
Thanks!
Just checking in, the cache sometimes still does not work when I make changes in my processing function in version `1.2.1`. The changes made to my data processing function only propagate to the dataset when I use `load_from_cache_file=False` or clear the cache. Is this a system-specific issue? | [
-0.04223062843084335,
0.08915764093399048,
-0.0817679613828659,
0.09195450693368912,
0.04232127591967583,
0.06223554164171219,
0.025528639554977417,
0.20980490744113922,
0.32379627227783203,
0.028472281992435455,
0.30006352066993713,
0.26434576511383057,
0.17761947214603424,
-0.08004218339920044,
-0.11281682550907135,
0.18959322571754456,
0.1895669400691986,
0.2083786129951477,
-0.07325699925422668,
0.18376868963241577,
-0.30831462144851685,
0.05485913157463074,
-0.22945170104503632,
0.03916124254465103,
-0.25852543115615845,
-0.20653556287288666,
0.1432310938835144,
0.006046950817108154,
0.0013980735093355179,
-0.2522466778755188,
0.2973944842815399,
0.33280912041664124,
-0.12829679250717163,
0.5881770253181458,
-0.00011693027045112103,
0.08422775566577911,
0.45616376399993896,
-0.05053575336933136,
-0.2349918931722641,
-0.009997859597206116,
-0.3796211779117584,
-0.07021737098693848,
0.16023488342761993,
-0.024357639253139496,
-0.010138377547264099,
0.11621793359518051,
0.020147861912846565,
-0.9627588391304016,
0.3745887875556946,
-0.08566070348024368,
0.1480739861726761,
0.005917871370911598,
-0.3695867955684662,
0.15309332311153412,
0.04921182617545128,
0.20582808554172516,
-0.18001261353492737,
0.03651629760861397,
0.4169890582561493,
-0.18542054295539856,
-0.13932877779006958,
0.14357087016105652,
-0.176889568567276,
0.22466571629047394,
0.22470834851264954,
-0.09709587693214417,
-0.07453318685293198,
-0.6531959772109985,
0.46815192699432373,
0.09297515451908112,
0.5025750398635864,
-0.23823440074920654,
-0.35643574595451355,
-0.18861648440361023,
-0.19985371828079224,
-0.12840595841407776,
0.4736368656158447,
-0.052115581929683685,
0.04802403971552849,
0.24724513292312622,
-0.8149889707565308,
-0.24417397379875183,
0.1399620771408081,
-0.06581814587116241,
0.15891847014427185,
-0.06066957116127014,
-0.22021877765655518,
0.1006011813879013,
0.17532657086849213,
-0.033537060022354126,
0.28195953369140625,
-0.4145130217075348,
-0.09306362271308899,
0.4279218316078186,
-0.21988122165203094,
0.08374585211277008,
-0.12302737683057785,
0.25605472922325134,
0.08920475840568542,
-0.0062110088765621185,
0.1486397683620453,
0.4178130626678467,
-0.03851480036973953,
0.15052208304405212,
0.2692396938800812,
0.3919086456298828,
0.1836467683315277,
0.029540378600358963,
0.226231649518013,
-0.306893914937973,
-0.18179930746555328,
0.022411514073610306,
0.2195628136396408,
-0.30194684863090515,
0.16662368178367615,
0.051905035972595215,
-0.043488822877407074,
-0.3644348680973053,
0.1479138880968094,
-0.1613028347492218,
-0.27014029026031494,
-0.2687091827392578,
-0.024007942527532578,
0.04195380583405495,
0.06241260841488838,
0.3686459958553314,
-0.15675941109657288,
-0.058376215398311615,
-0.28920778632164,
-0.15359516441822052,
-0.05680650845170021,
-0.273210346698761,
-0.3307185173034668,
0.33376598358154297,
0.37264135479927063,
-0.19955381751060486,
0.09670792520046234,
0.21275751292705536,
0.11947914958000183,
-0.2556491792201996,
0.4023236036300659,
-0.3718317747116089,
0.6122221350669861,
0.16730402410030365,
-0.1996265947818756,
0.31337225437164307,
0.0886346772313118,
0.3282325863838196,
-0.12334136664867401,
0.3190571963787079,
-0.42714887857437134,
-0.07320379465818405,
0.5425617694854736,
0.042624615132808685,
-0.23659992218017578,
0.2724854648113251,
-0.15767204761505127,
0.18314269185066223,
0.381936252117157,
-0.34119749069213867,
-0.019304603338241577,
0.0559043325483799,
-0.36140409111976624,
-0.24924606084823608,
0.3011447489261627,
0.40445786714553833,
-0.3130490779876709,
-0.006267145276069641,
-0.09665298461914062,
0.008960912004113197,
0.2724156379699707,
0.002019425854086876,
-0.1514182686805725,
0.2569435238838196,
-0.18907848000526428,
0.07408785820007324,
0.1797255575656891,
0.04623795673251152,
-0.48243528604507446,
0.4619075059890747,
0.26662158966064453,
0.3159233629703522,
-0.32009124755859375,
-0.03448415920138359,
0.0754927322268486,
-0.029253128916025162,
-0.22743472456932068,
0.07332049310207367,
0.11262486129999161,
0.01841995306313038,
-0.13653865456581116,
-0.3354550004005432,
0.23870795965194702,
-0.17278090119361877,
0.00988272950053215,
0.55779629945755,
-0.11663756519556046,
-0.45337405800819397,
-0.005534350872039795,
-0.11717766523361206,
0.2688826322555542,
0.1867072433233261,
-0.12418131530284882,
-0.08352956175804138,
0.11222658306360245,
-0.11789393424987793,
-0.29577985405921936,
0.38688918948173523,
-0.16079925000667572,
-0.3888333737850189,
0.08709917962551117,
-0.0017757192254066467,
0.14892613887786865,
-0.150803804397583,
-0.1708797961473465,
-0.06036839261651039,
0.03417216241359711,
-0.039858974516391754,
0.20859873294830322,
-0.22141358256340027,
-0.1505841612815857,
0.5996127724647522,
0.22883673012256622,
-0.11190367490053177,
-0.14412356913089752,
-0.090663380920887,
0.18796893954277039,
-0.1929444521665573,
-0.3765651285648346,
-0.04206853359937668,
0.12401610612869263,
-0.07171181589365005,
-0.1828365921974182,
0.41122230887413025,
0.36446690559387207,
0.231755331158638,
-0.05719337612390518,
0.14843100309371948,
0.0776231586933136,
0.10538770258426666,
0.03951263800263405,
-0.043841440230607986,
0.04816524311900139,
-0.12594911456108093,
-0.045710623264312744,
0.284494549036026,
-0.07565180957317352,
0.3332163095474243,
0.02558525651693344,
-0.07849962264299393,
0.15123812854290009,
-0.006895825266838074,
-0.03271898627281189,
-0.2883860170841217,
-0.1371813863515854,
-0.08562777936458588,
0.5550135374069214,
0.019332129508256912,
0.09989228844642639,
-0.07987267524003983,
0.16449593007564545,
0.15882013738155365,
-0.005759768187999725,
-0.10983509570360184,
-0.0765029713511467,
-0.22256723046302795,
0.07858560979366302,
0.14217185974121094,
0.30948376655578613,
-0.0031410902738571167,
0.35055074095726013,
-0.09589612483978271,
-0.008195609785616398,
-0.05344690382480621,
-0.12732994556427002,
0.0642363429069519,
0.3782820701599121,
-0.01282595843076706,
0.04471273720264435,
0.05547083169221878,
-0.058836668729782104,
0.1394151896238327,
0.09541705250740051,
-0.236759752035141,
-0.13918128609657288,
0.2114250212907791,
-0.43828582763671875,
-0.10310962051153183,
0.1216113269329071,
-0.0038589341565966606,
-0.28285154700279236,
-0.15960311889648438,
-0.04918614774942398,
0.16242599487304688,
0.07718320190906525,
0.2626118063926697,
-0.04050702229142189,
0.30929651856422424,
-0.24148114025592804,
-0.3057517409324646,
-0.2155148833990097,
-0.1971512883901596,
-0.11730848997831345,
0.025500718504190445,
0.06586994230747223,
-0.17969907820224762,
0.21660010516643524,
-0.07365642488002777,
-0.1284492313861847,
-0.15530960261821747,
0.06316033750772476,
0.28946325182914734,
0.16553224623203278,
0.04974357783794403,
-0.38831230998039246,
-0.03443989157676697,
-0.24525506794452667,
0.2555258572101593,
0.003920393530279398,
-0.4348156750202179,
-0.15218134224414825,
-0.05713793262839317,
0.0033029094338417053,
-0.07136795669794083,
-0.304138720035553,
0.00559612363576889,
0.028459034860134125,
-0.06614372134208679,
0.007873013615608215,
-0.2159000188112259,
0.09649195522069931,
-0.05885385721921921,
0.0630992129445076,
-0.08047083020210266,
0.002618812955915928,
-0.11127267777919769,
-0.38950392603874207,
-0.5156041979789734,
0.2336995154619217,
-0.21740108728408813,
-0.16436870396137238,
0.21389544010162354,
0.21715430915355682,
0.21348172426223755,
0.8205274939537048,
-0.1731254756450653,
0.019401878118515015,
-0.13118679821491241,
-0.05239351838827133,
0.08172479271888733,
0.041198473423719406,
0.4442795217037201,
0.1278311163187027,
0.04686906933784485,
-0.26901012659072876,
-0.40395763516426086,
0.168721541762352,
0.09760335087776184,
0.12096799910068512,
0.4620668888092041,
0.026151467114686966,
-0.026269488036632538,
0.9281291961669922,
0.28074911236763,
-0.11062005162239075,
0.23996195197105408,
0.2195245921611786,
0.3571164011955261,
-0.2936383783817291,
0.07741297781467438,
-0.19299334287643433,
-0.4637968838214874,
-0.15291915833950043,
0.10664104670286179,
0.030770953744649887,
-0.5778460502624512,
-0.2362838089466095,
0.3495682179927826,
-0.2912432849407196,
-0.12496110796928406,
-0.05576115846633911,
-0.319929838180542,
0.5669842958450317,
0.04199150577187538,
0.1650812029838562,
-0.26239609718322754,
-0.09146063774824142,
0.06530912220478058,
-0.14801551401615143,
0.7365279197692871,
-0.07873175293207169,
-0.357130765914917,
-0.010197778232395649,
-0.315985769033432,
0.2897164225578308,
0.0940379872918129,
0.3959237337112427,
-0.26714929938316345,
-0.11867699027061462,
0.013047270476818085,
0.10422444343566895,
0.46740591526031494,
-0.40327855944633484,
-0.008958090096712112,
0.07719205319881439,
-0.35949552059173584,
0.08867757767438889,
0.07636062800884247,
0.24634519219398499,
0.6016660332679749,
0.13383693993091583,
0.08708313852548599,
0.08095917850732803,
-0.1844835728406906,
-0.547958493232727,
0.11276274174451828,
-0.11541786789894104,
-0.31768742203712463,
-0.09390106797218323,
0.2300586700439453,
-0.238824725151062,
-0.1784869134426117,
-0.025960402563214302,
-0.2603912949562073,
-0.14235787093639374,
-0.12171174585819244,
-0.2099798172712326,
0.09346286207437515,
0.17321929335594177,
0.26434820890426636,
0.3928098678588867,
-0.10454637557268143,
-0.10352639853954315,
0.6716065406799316,
0.1652068793773651,
0.01726149208843708,
0.4291105568408966,
-0.19819599390029907,
0.09517782926559448,
0.25375980138778687,
-0.0903434231877327,
0.10817085951566696,
0.4060553014278412,
-0.2222408503293991,
-0.17413949966430664,
0.07731691002845764,
-0.23061342537403107,
-0.5374786853790283,
-0.006894005928188562,
0.13471613824367523,
-0.047967053949832916,
-0.3338082730770111,
-0.49148139357566833,
0.2252882421016693,
0.38452786207199097,
-0.4131150245666504,
0.4236252009868622,
-0.21358461678028107,
-0.2590319812297821,
0.21624374389648438,
0.06640642136335373,
0.8740594387054443,
-0.3066955804824829,
-0.1755010187625885,
-0.4766537845134735,
0.11666446924209595,
0.030403712764382362,
-0.3100540041923523,
0.32365262508392334,
-0.15576376020908356,
-0.20190367102622986,
-0.13105107843875885,
-0.19799017906188965,
0.37751179933547974,
0.6080793142318726,
-0.07533608376979828,
0.3647037446498871,
-0.03785787150263786,
0.26509541273117065,
-0.03345194458961487,
-0.03609089553356171,
0.25369793176651,
-0.3418262004852295,
0.072051502764225,
0.13620710372924805,
0.01102953776717186,
-0.012182977050542831,
0.06115061789751053,
0.0795128345489502,
-0.031327176839113235,
0.1683035045862198,
-0.011120237410068512,
0.07248266041278839,
-0.3772876262664795,
0.05739187076687813,
-0.190611332654953,
0.05221618711948395,
0.2531185746192932,
0.2159041166305542,
0.26277589797973633,
0.032500218600034714,
-0.24491402506828308,
0.040422193706035614,
0.40437161922454834,
0.23837979137897491,
-0.19430387020111084,
0.130157470703125,
-0.09483499079942703,
0.04160679131746292,
-0.1057254821062088,
-0.10373236984014511,
-0.259400874376297,
-0.2851213216781616,
-0.031062781810760498,
0.016956545412540436,
0.12963739037513733,
-0.19284410774707794,
-0.1775471419095993,
0.16502441465854645,
0.2473141849040985,
0.12641477584838867,
0.09478260576725006,
0.19029298424720764,
0.14770060777664185,
0.43582451343536377,
-0.13449175655841827,
-0.24793294072151184,
-0.06837490200996399,
0.25779134035110474,
-0.07670461386442184,
-0.27127963304519653,
0.09202419966459274,
-0.13710680603981018,
-0.2443404495716095,
-0.1362231969833374,
-0.23754194378852844,
-0.21995937824249268,
-0.08745552599430084,
-0.05922384932637215,
-0.13086450099945068,
-0.13174676895141602,
0.01754946820437908,
-0.21095490455627441,
0.008001536130905151,
0.08336981385946274,
-0.1773945689201355,
-0.22195105254650116,
-0.13048022985458374,
-0.10153225064277649,
-0.16007232666015625,
0.28143012523651123,
0.013834524899721146,
-0.3935483396053314,
0.16013900935649872,
0.3114466071128845,
-0.19360865652561188,
-0.12699194252490997,
0.26417145133018494,
0.17553426325321198,
0.08223603665828705,
0.2998533248901367,
-0.06276392936706543,
-0.22934043407440186,
-0.16499526798725128,
0.046119749546051025,
-0.3588993549346924,
-0.12672418355941772,
0.1888725906610489,
0.21244169771671295,
-0.11740609258413315,
-0.47234565019607544,
0.028111431747674942,
-0.11684723943471909,
0.04735221713781357,
-0.4747322201728821,
0.15658532083034515,
0.10657941550016403,
-0.040627218782901764,
0.28955644369125366,
0.2889653444290161,
0.04023386538028717,
-0.2808893322944641,
0.0816793441772461,
-0.008399762213230133,
0.1487882137298584,
0.01882612332701683,
0.0819854736328125,
0.1746985912322998,
0.03040488064289093,
-0.0159746203571558,
-0.10045016556978226,
0.07115963101387024,
-0.05033832788467407,
0.2550850510597229,
-0.2207106500864029,
0.3024339973926544,
0.25574809312820435,
0.19178499281406403,
0.24085953831672668,
-0.06531421095132828,
-0.06528598815202713,
0.1911708116531372,
0.103721484541893,
0.0645919218659401,
-0.2489880621433258,
0.6774758696556091,
0.2197597175836563,
-0.05222097411751747,
0.3222689628601074,
0.3933649957180023,
0.1262730211019516,
0.2538277506828308,
0.04287649691104889,
0.3401601314544678,
-0.4856709837913513,
0.22198396921157837,
0.17815671861171722,
0.2305346578359604,
0.24446800351142883,
0.31480398774147034,
0.3094753623008728,
-0.12062414735555649,
0.3351333737373352,
0.40366384387016296,
0.3411257863044739,
0.4024524986743927,
0.48822686076164246,
-0.16435563564300537,
-0.6150524616241455,
0.2145673632621765,
0.39885085821151733,
-0.2762075662612915,
0.2673068940639496,
-0.03158215433359146,
-0.062484897673130035,
-0.06755208224058151,
-0.4185514450073242,
-0.09390027821063995,
-0.012202002108097076,
-0.05559290200471878,
-0.1606382131576538,
0.26298803091049194,
-0.17795518040657043,
0.19471168518066406,
-0.050901032984256744,
0.003110751509666443,
0.13506507873535156,
0.8500316143035889,
-0.07478964328765869,
-0.008171267807483673,
0.01729743182659149,
-0.07930003851652145,
-0.17562207579612732,
0.341659277677536,
0.00941968709230423,
0.0998891144990921,
-0.45308923721313477,
0.011473100632429123,
0.12112577259540558,
0.2790078818798065,
-0.03028489276766777,
0.3566257953643799,
-0.3317679166793823,
-0.016893543303012848,
0.06102892756462097,
-0.038029324263334274,
-0.22700083255767822,
0.49590715765953064,
0.02147296816110611,
-0.2843987047672272,
0.14957259595394135,
0.02575104869902134,
0.11735162138938904,
-0.10889823734760284,
-0.1391933560371399,
0.6097428798675537,
-0.16347002983093262,
0.16190028190612793,
0.16769933700561523,
-0.1008378267288208,
0.2936282753944397,
0.00416884571313858,
-0.07983874529600143,
0.07457426190376282,
0.4469642639160156,
-0.26303574442863464,
0.09461604803800583,
-0.0006472279783338308,
0.04387757182121277,
0.09216047823429108,
0.3493202030658722,
0.31447625160217285,
0.0399237796664238,
-0.22348593175411224,
-0.16327695548534393,
-0.4827314019203186,
-0.01783185452222824,
-0.05514096841216087,
0.2705825865268707,
-0.013803571462631226,
-0.08082231879234314,
0.015323974192142487,
0.2147805541753769,
0.12492279708385468,
-0.5909247398376465,
0.12185703963041306,
0.07489610463380814,
-0.2518150806427002,
0.0605008527636528,
-0.19806914031505585,
0.1091286763548851,
-0.04604411870241165,
-0.3268635869026184,
0.20527738332748413,
0.1664387434720993,
-0.061301544308662415,
0.0705629289150238,
-0.21737195551395416,
0.03650647774338722,
0.25304529070854187,
0.44966912269592285,
0.4407115578651428,
0.057831309735774994,
0.05647173523902893,
0.11262194067239761,
-0.293521523475647,
0.005968550685793161,
0.0041785212233662605,
-0.03687260299921036,
-0.03194084390997887,
0.07660891860723495,
-0.5562334060668945,
0.053016334772109985,
-0.25100740790367126,
-0.18558649718761444,
0.00442562997341156,
0.20432575047016144,
-0.24332532286643982,
-0.27195170521736145,
0.028971850872039795,
0.050586868077516556,
0.2746570408344269,
0.4501059055328369,
-0.03142397105693817,
0.23319260776042938,
-0.40691548585891724,
0.251046746969223,
0.08780736476182938,
-0.44968023896217346,
-0.3951035737991333,
0.013995780609548092,
0.06113327667117119,
-0.1779436469078064,
-0.4009953439235687,
-0.2629908621311188,
-0.154633566737175,
0.2852092981338501,
-0.3229401111602783,
-0.07843685150146484,
0.04271722957491875,
-0.46922534704208374,
-0.003150835633277893,
-0.1504492461681366,
0.4665029048919678,
0.20427200198173523,
-0.10980825871229172,
-0.1756790280342102,
-0.16274315118789673
] |
https://github.com/huggingface/datasets/issues/279 | Dataset Preprocessing Cache with .map() function not working as expected | Hi @sarahwie
The data are reloaded from the cache if the hash of the function you provide is the same as a computation you've done before. The hash is computed by recursively looking at the python objects of the function you provide.
If you think there's an issue, can you share the function you used or a google colab please ? | I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system.
Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file.
Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess.
I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set.
Thanks! | 61 | Dataset Preprocessing Cache with .map() function not working as expected
I've been having issues with reproducibility when loading and processing datasets with the `.map` function. I was only able to resolve them by clearing all of the cache files on my system.
Is there a way to disable using the cache when processing a dataset? As I make minor processing changes on the same dataset, I want to be able to be certain the data is being re-processed rather than loaded from a cached file.
Could you also help me understand a bit more about how the caching functionality is used for pre-processing? E.g. how is it determined when to load from a cache vs. reprocess.
I was particularly having an issue where the correct dataset splits were loaded, but as soon as I applied the `.map()` function to each split independently, they somehow all exited this process having been converted to the test set.
Thanks!
Hi @sarahwie
The data are reloaded from the cache if the hash of the function you provide is the same as a computation you've done before. The hash is computed by recursively looking at the python objects of the function you provide.
If you think there's an issue, can you share the function you used or a google colab please ? | [
0.012609660625457764,
0.022676020860671997,
-0.08359180390834808,
0.1109057366847992,
0.10393138974905014,
0.09357563406229019,
0.007125597447156906,
0.15889038145542145,
0.32624682784080505,
-0.006993234157562256,
0.2460051327943802,
0.25857013463974,
0.14196574687957764,
-0.0437471903860569,
-0.09526161849498749,
0.19916319847106934,
0.1659030318260193,
0.18993821740150452,
-0.01755930483341217,
0.1777571439743042,
-0.3379134237766266,
0.061702579259872437,
-0.2909175157546997,
-0.04241970181465149,
-0.2941627502441406,
-0.19838640093803406,
0.1261184960603714,
0.03431548923254013,
-0.042841553688049316,
-0.26304054260253906,
0.3011361360549927,
0.3228374421596527,
-0.14332199096679688,
0.614349365234375,
-0.00011929590255022049,
0.04331537336111069,
0.3999329209327698,
-0.09736980497837067,
-0.19503982365131378,
-0.04252798855304718,
-0.364200234413147,
-0.04094827175140381,
0.186687633395195,
-0.07628146559000015,
-0.07291955500841141,
0.14071832597255707,
-0.03487008064985275,
-1.0032609701156616,
0.4038296937942505,
-0.0395839549601078,
0.13290691375732422,
0.017149318009614944,
-0.40262502431869507,
0.27073973417282104,
0.021868284791707993,
0.15240967273712158,
-0.13578617572784424,
0.07115840166807175,
0.3388122022151947,
-0.23791548609733582,
-0.08769048005342484,
0.1695573627948761,
-0.23066502809524536,
0.2240426391363144,
0.23538246750831604,
-0.0649859607219696,
-0.13968482613563538,
-0.7217978239059448,
0.3800294101238251,
0.057378362864255905,
0.5168453454971313,
-0.2660503089427948,
-0.3717954158782959,
-0.182672917842865,
-0.22368934750556946,
-0.14788256585597992,
0.4478943943977356,
0.015668075531721115,
0.04886199161410332,
0.20761948823928833,
-0.8422003984451294,
-0.18166616559028625,
0.14448435604572296,
-0.051066234707832336,
0.17927956581115723,
0.0006043016910552979,
-0.18454189598560333,
0.10826170444488525,
0.144222691655159,
-0.0036396346986293793,
0.3374118208885193,
-0.42166396975517273,
-0.05856319144368172,
0.4882796108722687,
-0.24441857635974884,
0.06818234920501709,
-0.1582019031047821,
0.3357008695602417,
0.07626648247241974,
0.05825398117303848,
0.1465758979320526,
0.38051775097846985,
-0.0751846581697464,
0.1383456587791443,
0.256817489862442,
0.37480953335762024,
0.13409177958965302,
0.08452483266592026,
0.2072887271642685,
-0.3187168538570404,
-0.23405438661575317,
0.02061021886765957,
0.2593964636325836,
-0.28716638684272766,
0.28028634190559387,
0.05120919644832611,
0.016127072274684906,
-0.3326468765735626,
0.15326036512851715,
-0.15257039666175842,
-0.35757124423980713,
-0.31653520464897156,
-0.02895713970065117,
0.1038472056388855,
0.013702898286283016,
0.2877175807952881,
-0.14150084555149078,
-0.03987488895654678,
-0.2923082411289215,
-0.05939008668065071,
-0.03680166229605675,
-0.24175696074962616,
-0.305594801902771,
0.29983800649642944,
0.35594847798347473,
-0.21856644749641418,
0.1573401689529419,
0.2191762775182724,
0.1640819013118744,
-0.325311541557312,
0.42041996121406555,
-0.3591623306274414,
0.615280270576477,
0.1765163540840149,
-0.1864679455757141,
0.26186856627464294,
0.1314365118741989,
0.28536278009414673,
-0.1162242740392685,
0.30684787034988403,
-0.4481903910636902,
-0.09910249710083008,
0.5191601514816284,
0.026961345225572586,
-0.2732544541358948,
0.25501132011413574,
-0.13675802946090698,
0.14321298897266388,
0.40819546580314636,
-0.2797897458076477,
-0.0005551055073738098,
0.06152111291885376,
-0.34774741530418396,
-0.30596932768821716,
0.32218489050865173,
0.43915122747421265,
-0.27391141653060913,
-0.01652233675122261,
-0.054978057742118835,
0.0793556421995163,
0.24683859944343567,
0.014458715915679932,
-0.1570531725883484,
0.2650977671146393,
-0.21328195929527283,
0.0884687751531601,
0.16391044855117798,
0.0004321075975894928,
-0.4677480459213257,
0.3946535289287567,
0.3026469349861145,
0.3626723289489746,
-0.35201671719551086,
0.04348393529653549,
0.029597245156764984,
-0.06506521999835968,
-0.1620071679353714,
0.15326212346553802,
0.0934985876083374,
0.0354304313659668,
-0.12480758130550385,
-0.28230220079421997,
0.27535998821258545,
-0.19800910353660583,
0.0008317530155181885,
0.5466742515563965,
-0.13419336080551147,
-0.49874037504196167,
0.026212695986032486,
-0.1358768194913864,
0.17352545261383057,
0.17525339126586914,
-0.08784762024879456,
-0.07391899824142456,
0.13875338435173035,
-0.14024023711681366,
-0.38009122014045715,
0.37107259035110474,
-0.15067054331302643,
-0.3001328706741333,
-0.04926502704620361,
-0.010012516751885414,
0.08200784772634506,
-0.11362046003341675,
-0.20489515364170074,
-0.07437103986740112,
0.03899047523736954,
-0.10650511085987091,
0.2533735930919647,
-0.19039830565452576,
-0.11629757285118103,
0.6129922270774841,
0.23052366077899933,
-0.07501915842294693,
-0.15764053165912628,
-0.04536494240164757,
0.18192684650421143,
-0.13825587928295135,
-0.376012921333313,
-0.031754106283187866,
0.2187429666519165,
-0.1027437075972557,
-0.17630049586296082,
0.43314287066459656,
0.38407135009765625,
0.18367750942707062,
-0.05446625500917435,
0.1820138543844223,
0.07371536642313004,
0.05861137434840202,
0.10193678736686707,
-0.015754282474517822,
0.11104636639356613,
-0.1827041208744049,
0.004795234650373459,
0.3525702953338623,
-0.11566691100597382,
0.3307572901248932,
0.024287432432174683,
-0.08836942166090012,
0.10982507467269897,
-0.016141541302204132,
-0.059332847595214844,
-0.24159446358680725,
-0.13048909604549408,
-0.07399882376194,
0.5344313979148865,
0.01497616060078144,
0.07606659829616547,
-0.11010976880788803,
0.11478603631258011,
0.13519777357578278,
0.043605394661426544,
-0.15152350068092346,
-0.10552822798490524,
-0.18256407976150513,
0.049504153430461884,
0.1613125056028366,
0.33294013142585754,
-0.04455488175153732,
0.3212515115737915,
-0.03958307206630707,
0.007379688322544098,
-0.0218326598405838,
-0.06971359997987747,
0.09584477543830872,
0.3745648264884949,
-0.048412688076496124,
0.05389510840177536,
0.02239687368273735,
-0.07851813733577728,
0.18875080347061157,
0.08661970496177673,
-0.20956885814666748,
-0.18364496529102325,
0.2747165858745575,
-0.3728386461734772,
-0.07215755432844162,
0.12076058983802795,
-0.14892885088920593,
-0.31470203399658203,
-0.1985548585653305,
-0.08731160312891006,
0.15403629839420319,
0.1480254977941513,
0.23857799172401428,
-0.021144965663552284,
0.1770700067281723,
-0.19632144272327423,
-0.3962068557739258,
-0.2108812928199768,
-0.2509934902191162,
-0.02412901446223259,
0.013031702488660812,
0.058223627507686615,
-0.1628415435552597,
0.2691914737224579,
-0.07931939512491226,
-0.1402595043182373,
-0.1621200293302536,
0.031683504581451416,
0.2521142065525055,
0.06294029951095581,
0.09750772267580032,
-0.3867303133010864,
-0.03239762783050537,
-0.26332682371139526,
0.2480115443468094,
-0.01501369196921587,
-0.39946261048316956,
-0.10099201649427414,
-0.051359765231609344,
0.04633845388889313,
-0.028934530913829803,
-0.2453618198633194,
-0.03257681429386139,
-0.05339737981557846,
0.010763704776763916,
-0.0171336829662323,
-0.13490857183933258,
0.10153873264789581,
0.0019315117970108986,
0.05727916583418846,
-0.14150667190551758,
0.04448070004582405,
-0.15058504045009613,
-0.39410874247550964,
-0.5403394103050232,
0.2928725481033325,
-0.17420975863933563,
-0.11586375534534454,
0.32310786843299866,
0.14413003623485565,
0.18095934391021729,
0.8046818971633911,
-0.21077372133731842,
-0.08868083357810974,
-0.1395694464445114,
-0.04635759815573692,
0.07050967961549759,
0.08548817038536072,
0.39928770065307617,
0.14132751524448395,
0.09252853691577911,
-0.25139883160591125,
-0.38566213846206665,
0.07273199409246445,
0.09858576953411102,
0.11498300731182098,
0.4612809419631958,
0.03007322922348976,
-0.0849616602063179,
0.9317190647125244,
0.2833191454410553,
-0.09500209987163544,
0.26699692010879517,
0.17025749385356903,
0.3451195955276489,
-0.28819528222084045,
0.07081731408834457,
-0.23673616349697113,
-0.47596684098243713,
-0.18289178609848022,
0.10633756220340729,
0.08791802078485489,
-0.5318138003349304,
-0.22584478557109833,
0.3867988586425781,
-0.3913377821445465,
-0.15998466312885284,
-0.06570705026388168,
-0.397503137588501,
0.5221547484397888,
0.07053430378437042,
0.1518418788909912,
-0.2838067412376404,
-0.1268576979637146,
0.020297005772590637,
-0.1642277091741562,
0.7392302751541138,
-0.09501981735229492,
-0.3028751313686371,
-0.0011109416373074055,
-0.33804214000701904,
0.3037942349910736,
0.10555803030729294,
0.32779771089553833,
-0.1865994781255722,
-0.10203801840543747,
0.03401301056146622,
0.13050389289855957,
0.49886709451675415,
-0.4583166539669037,
-0.002215735614299774,
0.0495559461414814,
-0.33010318875312805,
0.08775457739830017,
0.07776181399822235,
0.21531501412391663,
0.6324647665023804,
0.08399753272533417,
0.06457584351301193,
0.06565236300230026,
-0.1327894926071167,
-0.493165522813797,
0.14119599759578705,
-0.12038014829158783,
-0.329385370016098,
-0.1417139172554016,
0.1360766589641571,
-0.2405109852552414,
-0.18406954407691956,
0.02281528152525425,
-0.3011865019798279,
-0.10762929171323776,
-0.08682592213153839,
-0.2012244313955307,
0.12941527366638184,
0.21728160977363586,
0.2465330809354782,
0.4548766314983368,
-0.0538458451628685,
-0.07477498799562454,
0.6173520088195801,
0.13360045850276947,
-0.0564042404294014,
0.5255814790725708,
-0.2111591398715973,
0.08767261356115341,
0.12183989584445953,
-0.021375061944127083,
0.13043095171451569,
0.3328440487384796,
-0.19822189211845398,
-0.17874360084533691,
0.058359429240226746,
-0.22085337340831757,
-0.5552139282226562,
-0.03144197538495064,
0.16638581454753876,
0.014575297944247723,
-0.4451221823692322,
-0.5543461441993713,
0.28070467710494995,
0.3444276750087738,
-0.38402605056762695,
0.4244667887687683,
-0.19378696382045746,
-0.25792771577835083,
0.2693220376968384,
0.07669680565595627,
0.9050420522689819,
-0.3999025821685791,
-0.15794041752815247,
-0.4110598564147949,
0.1713770627975464,
0.06248054653406143,
-0.3120309114456177,
0.3149039149284363,
-0.16493873298168182,
-0.20675016939640045,
-0.14016598463058472,
-0.21704167127609253,
0.29494836926460266,
0.5736170411109924,
-0.11269286274909973,
0.3896787464618683,
-0.07856660336256027,
0.23838886618614197,
-0.07192850857973099,
-0.03796326741576195,
0.2574771046638489,
-0.2842620611190796,
0.04689785838127136,
0.13347265124320984,
-0.02558506280183792,
-0.018204841762781143,
0.048594579100608826,
0.1120329275727272,
-0.0480610728263855,
0.12830500304698944,
-0.003654398024082184,
0.06864630430936813,
-0.35372796654701233,
0.06654465198516846,
-0.2221657633781433,
-0.04806607589125633,
0.25161102414131165,
0.20763100683689117,
0.24897581338882446,
0.05587577447295189,
-0.22699543833732605,
0.036483101546764374,
0.38702642917633057,
0.20332205295562744,
-0.1639777421951294,
0.1635318398475647,
-0.12154005467891693,
0.08564905822277069,
-0.1350526064634323,
-0.09167013317346573,
-0.24221603572368622,
-0.342515230178833,
-0.04377320408821106,
0.07180552184581757,
0.12471077591180801,
-0.2651445269584656,
-0.1970207542181015,
0.1820756047964096,
0.20074497163295746,
0.13494616746902466,
0.07918402552604675,
0.18696388602256775,
0.11483155936002731,
0.4786564111709595,
-0.11055183410644531,
-0.2748797535896301,
-0.053982775658369064,
0.21298062801361084,
0.04907602816820145,
-0.3119800388813019,
0.12496522814035416,
-0.0675831288099289,
-0.2460438758134842,
-0.12267479300498962,
-0.2822341322898865,
-0.29114729166030884,
-0.00762438029050827,
-0.010620822198688984,
-0.06717851758003235,
-0.007607683539390564,
-0.01736961491405964,
-0.21600592136383057,
-0.03511732071638107,
0.1080896183848381,
-0.17656756937503815,
-0.26735830307006836,
-0.15276266634464264,
-0.12977656722068787,
-0.10805317759513855,
0.3174189627170563,
0.008523963391780853,
-0.3597826659679413,
0.1688007265329361,
0.34864354133605957,
-0.1827607899904251,
-0.061878934502601624,
0.2007535845041275,
0.2232431322336197,
0.09663259983062744,
0.273476243019104,
0.008916876278817654,
-0.23467528820037842,
-0.13882651925086975,
0.047875940799713135,
-0.34105709195137024,
-0.12041100859642029,
0.23244169354438782,
0.21940650045871735,
-0.11287691444158554,
-0.5000815987586975,
0.017311636358499527,
-0.1419837474822998,
0.06403292715549469,
-0.4966713488101959,
0.1426209956407547,
0.16599202156066895,
-0.02781098335981369,
0.29984819889068604,
0.35715529322624207,
-0.031940758228302,
-0.2766462564468384,
0.07059216499328613,
-0.04897543787956238,
0.1647661030292511,
0.04911922663450241,
0.06317821145057678,
0.16806398332118988,
0.047550857067108154,
0.009487258270382881,
-0.1291356384754181,
0.09047932177782059,
-0.020794972777366638,
0.2781990170478821,
-0.22811080515384674,
0.2825014293193817,
0.1824580281972885,
0.2479127049446106,
0.26776501536369324,
-0.07815302163362503,
-0.033751923590898514,
0.16968613862991333,
0.09217815846204758,
0.007498566061258316,
-0.24003206193447113,
0.6981931924819946,
0.22289875149726868,
-0.010882198810577393,
0.3533833920955658,
0.32654473185539246,
0.18548622727394104,
0.20356833934783936,
0.03932466357946396,
0.3794470429420471,
-0.45537853240966797,
0.22985726594924927,
0.11598850786685944,
0.2000047117471695,
0.20709432661533356,
0.32836607098579407,
0.2765350043773651,
-0.13250598311424255,
0.25990745425224304,
0.40387386083602905,
0.3374174237251282,
0.32350003719329834,
0.39014530181884766,
-0.19102928042411804,
-0.5856965780258179,
0.22034509479999542,
0.3824099600315094,
-0.2621113359928131,
0.3146701455116272,
0.056103967130184174,
-0.024989522993564606,
-0.03809574991464615,
-0.38373857736587524,
-0.0846044272184372,
0.03548704460263252,
-0.028753362596035004,
-0.15297386050224304,
0.34288841485977173,
-0.1619921773672104,
0.24021384119987488,
-0.04787275567650795,
0.020812395960092545,
0.017421074211597443,
0.8757129907608032,
-0.03595519810914993,
-0.0011878684163093567,
0.05449654161930084,
-0.035938456654548645,
-0.15319296717643738,
0.38031017780303955,
-0.021007651463150978,
0.029798638075590134,
-0.39766985177993774,
0.047171175479888916,
0.06924192607402802,
0.22904057800769806,
0.028877971693873405,
0.3294483721256256,
-0.37631911039352417,
0.09592092782258987,
0.09287185966968536,
-0.034687627106904984,
-0.1654842644929886,
0.47806763648986816,
0.018127381801605225,
-0.26415303349494934,
0.10798762738704681,
0.024618515744805336,
0.10392889380455017,
-0.1104387640953064,
-0.0960276871919632,
0.6095191240310669,
-0.15412065386772156,
0.1431064009666443,
0.19089581072330475,
-0.12615151703357697,
0.22189658880233765,
0.016583360731601715,
-0.1446875035762787,
0.06330902129411697,
0.45114922523498535,
-0.2422025352716446,
0.09369958937168121,
0.013743371702730656,
0.027531307190656662,
0.07018232345581055,
0.3833511471748352,
0.38013267517089844,
0.14019614458084106,
-0.285289466381073,
-0.136988565325737,
-0.5016659498214722,
-0.0505312904715538,
-0.12710420787334442,
0.20023122429847717,
-0.0037906579673290253,
-0.08534689247608185,
0.02879514917731285,
0.2967405915260315,
0.1420728862285614,
-0.531486988067627,
0.08241935074329376,
0.09861746430397034,
-0.2431378960609436,
-0.027208495885133743,
-0.23609058558940887,
0.08325377851724625,
-0.052272722125053406,
-0.30470144748687744,
0.16198520362377167,
0.13909170031547546,
-0.062103912234306335,
0.041452281177043915,
-0.18699532747268677,
0.04340803250670433,
0.2520846724510193,
0.4884823262691498,
0.4370419681072235,
0.1001727283000946,
0.0623517706990242,
0.13658955693244934,
-0.2371639907360077,
0.006893509533256292,
0.01628350466489792,
-0.023128576576709747,
0.004144854843616486,
0.08107149600982666,
-0.5207993388175964,
0.03738749027252197,
-0.26719892024993896,
-0.16496948897838593,
-0.011317547410726547,
0.14357900619506836,
-0.21956828236579895,
-0.28769558668136597,
0.06595145910978317,
0.07064629346132278,
0.18522100150585175,
0.49342310428619385,
-0.0560477077960968,
0.3082308769226074,
-0.36121106147766113,
0.20461542904376984,
0.12746290862560272,
-0.44975244998931885,
-0.4256588816642761,
0.08429797738790512,
0.0465216338634491,
-0.25323742628097534,
-0.36697709560394287,
-0.34754785895347595,
-0.08038131147623062,
0.29923534393310547,
-0.31923985481262207,
-0.07762635499238968,
0.0949619859457016,
-0.43465250730514526,
-0.027277519926428795,
-0.1388857066631317,
0.4334102272987366,
0.1447266936302185,
-0.07487169653177261,
-0.21555107831954956,
-0.1994420737028122
] |
https://github.com/huggingface/datasets/issues/278 | MemoryError when loading German Wikipedia | Hi !
As you noticed, "big" datasets like Wikipedia require apache beam to be processed.
However users usually don't have an apache beam runtime available (spark, dataflow, etc.) so our goal for this library is to also make available processed versions of these datasets, so that users can just download and use them right away.
This is the case for english and french wikipedia right now: we've processed them ourselves and now they are available from our google storage. However we've not processed the german one (yet). | Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :)
I'm trying to download the German Wikipedia dataset as follows:
```
wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train")
```
However, when I do so, I get the following error:
```
Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')`
```
So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned.
This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset?
My nlp version is 0.2.1.
Thank you! | 87 | MemoryError when loading German Wikipedia
Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :)
I'm trying to download the German Wikipedia dataset as follows:
```
wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train")
```
However, when I do so, I get the following error:
```
Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')`
```
So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned.
This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset?
My nlp version is 0.2.1.
Thank you!
Hi !
As you noticed, "big" datasets like Wikipedia require apache beam to be processed.
However users usually don't have an apache beam runtime available (spark, dataflow, etc.) so our goal for this library is to also make available processed versions of these datasets, so that users can just download and use them right away.
This is the case for english and french wikipedia right now: we've processed them ourselves and now they are available from our google storage. However we've not processed the german one (yet). | [
-0.047934528440237045,
0.12618955969810486,
0.018239092081785202,
0.6689178347587585,
0.24453303217887878,
0.15575072169303894,
0.004935301840305328,
0.20835675299167633,
0.3758643865585327,
-0.05147702991962433,
0.2673629820346832,
-0.33128827810287476,
-0.1734626293182373,
-0.33418023586273193,
0.22966912388801575,
-0.48612746596336365,
0.09306766092777252,
0.05842774733901024,
-0.09685809910297394,
0.021348997950553894,
-0.22103914618492126,
0.28426164388656616,
-0.2860867977142334,
-0.12967438995838165,
-0.24149928987026215,
0.06827670335769653,
-0.06069409102201462,
0.054007478058338165,
-0.1613471955060959,
-0.4543802738189697,
0.109389528632164,
-0.257276713848114,
0.11816728115081787,
0.1811022311449051,
-0.00012172195420134813,
0.040036678314208984,
0.4013994336128235,
-0.17075581848621368,
-0.44416365027427673,
0.03925636410713196,
-0.04547351971268654,
-0.34079402685165405,
0.03673425316810608,
-0.26067155599594116,
0.06098276376724243,
-0.10650114715099335,
0.32536613941192627,
-0.08283939957618713,
0.3636317849159241,
0.17929716408252716,
0.18307889997959137,
0.05839864909648895,
0.259697824716568,
-0.0829993188381195,
0.5757555961608887,
0.06039423495531082,
0.051787495613098145,
0.12043458223342896,
-0.3371914029121399,
-0.3669275641441345,
-0.266693115234375,
0.2971107065677643,
0.016859764233231544,
0.1016102135181427,
0.34289076924324036,
-0.11834924668073654,
0.01459447667002678,
-0.2151486873626709,
0.2146664559841156,
-0.015584371984004974,
0.6984873414039612,
-0.2225390374660492,
0.05440351366996765,
-0.2987266778945923,
-0.08197586983442307,
0.13722655177116394,
0.3699687719345093,
0.3768192231655121,
-0.5374549031257629,
-0.17521069943904877,
-0.18167966604232788,
-0.3489992022514343,
-0.16345623135566711,
0.3382710814476013,
0.05806826055049896,
0.24271051585674286,
-0.04609600827097893,
0.16560098528862,
0.36606115102767944,
-0.047463953495025635,
-0.27681395411491394,
-0.11192168295383453,
-0.012180626392364502,
0.4462253451347351,
-0.07023440301418304,
0.06821946054697037,
-0.07997240871191025,
-0.061932243406772614,
0.23511630296707153,
-0.2792298197746277,
-0.09406502544879913,
-0.06149452179670334,
0.25387123227119446,
0.07732438296079636,
0.2765715420246124,
0.45703837275505066,
-0.13490810990333557,
-0.19879396259784698,
0.1601511836051941,
0.18069620430469513,
0.018549729138612747,
-0.16259834170341492,
-0.03485201299190521,
-0.1633647382259369,
-0.07738503813743591,
-0.025875739753246307,
-0.1039629578590393,
-0.04693898931145668,
0.0200341884046793,
0.13095682859420776,
-0.09636442363262177,
-0.13396574556827545,
-0.032170042395591736,
0.41890662908554077,
-0.13972340524196625,
0.33823078870773315,
0.29564762115478516,
0.06871721148490906,
-0.38477811217308044,
-0.29508519172668457,
-0.1493525505065918,
0.15822122991085052,
-0.5230260491371155,
0.12379574030637741,
0.26629436016082764,
0.27717408537864685,
0.361306369304657,
-0.12290928512811661,
-0.26837682723999023,
0.0498335137963295,
0.2657952904701233,
-0.18319730460643768,
-0.03237520903348923,
0.21564345061779022,
0.1484367996454239,
0.28868916630744934,
0.1391695737838745,
-0.22817538678646088,
0.00019481033086776733,
0.061920080333948135,
-0.1770702600479126,
-0.19407308101654053,
0.06925884634256363,
0.017681347206234932,
-0.15710219740867615,
0.15428666770458221,
-0.40317127108573914,
0.2367207109928131,
0.2888610064983368,
-0.21285748481750488,
-0.09760471433401108,
-0.042263127863407135,
-0.23210251331329346,
-0.26150768995285034,
0.2098640352487564,
0.5494707226753235,
-0.09142859280109406,
-0.268973171710968,
-0.07590153813362122,
-0.0987916886806488,
0.40902814269065857,
0.23754896223545074,
-0.10521627217531204,
0.29600393772125244,
-0.23157146573066711,
0.09871366620063782,
0.34163209795951843,
-0.17392194271087646,
-0.3319515287876129,
0.13097688555717468,
0.11024165153503418,
0.1638558954000473,
0.056258171796798706,
0.001674111932516098,
0.011861903592944145,
0.19847524166107178,
0.19970917701721191,
0.3413086533546448,
-0.035260967910289764,
0.29072633385658264,
-0.2670716941356659,
-0.27098798751831055,
0.2600764036178589,
0.008650362491607666,
0.35167551040649414,
0.05551544576883316,
0.09452014416456223,
0.8308190703392029,
0.27242445945739746,
-0.06893350183963776,
0.3318046033382416,
0.563816249370575,
-0.22771893441677094,
0.05730919539928436,
-0.011269096285104752,
-0.06337003409862518,
-0.2486259639263153,
0.19277212023735046,
-0.30672699213027954,
0.30945417284965515,
-0.02148234099149704,
0.13213327527046204,
-0.16402950882911682,
-0.09691453725099564,
-0.056674446910619736,
-0.36996176838874817,
0.08882901817560196,
0.16524654626846313,
0.11012591421604156,
0.21409691870212555,
0.13791541755199432,
0.2627287209033966,
-0.011160725727677345,
0.02267489768564701,
-0.6933621168136597,
0.20877401530742645,
-0.14176055788993835,
-0.15219686925411224,
-0.010932181030511856,
0.10963800549507141,
0.13339093327522278,
0.14382770657539368,
-0.13231301307678223,
0.12147536873817444,
0.09903726726770401,
-0.046994566917419434,
0.1362227201461792,
-0.025001585483551025,
0.26590022444725037,
-0.18806730210781097,
0.43380892276763916,
0.05866854637861252,
0.1608508676290512,
-0.1543041467666626,
0.04690363630652428,
-0.2138386219739914,
0.07204657793045044,
0.2993033230304718,
0.08469521999359131,
0.03472008556127548,
0.16727246344089508,
0.150338277220726,
0.15188252925872803,
-0.1656809151172638,
0.40921348333358765,
0.08061911165714264,
0.11142279207706451,
-0.0011593494564294815,
0.026663534343242645,
-0.40508878231048584,
0.41835060715675354,
0.1737961322069168,
0.14272698760032654,
0.2619018852710724,
-0.4456166625022888,
-0.2904943823814392,
0.22474904358386993,
-0.057462241500616074,
0.23431351780891418,
0.08118831366300583,
0.13385677337646484,
0.0289965458214283,
0.15939542651176453,
0.03791035711765289,
0.09362122416496277,
0.058901261538267136,
0.5227378606796265,
0.01151285320520401,
0.012551858089864254,
-0.1341617852449417,
-0.21342733502388,
0.08087120950222015,
0.03129880875349045,
0.41698145866394043,
-0.19021770358085632,
-0.03903060406446457,
-0.0026982463896274567,
-0.5402336716651917,
-0.30531904101371765,
0.2616877555847168,
-0.488203763961792,
-0.28833070397377014,
-0.2413622885942459,
0.28014349937438965,
-0.06628771871328354,
-0.013452582061290741,
0.06859619915485382,
0.19894102215766907,
0.10880272090435028,
-0.14944228529930115,
-0.12989068031311035,
-0.2826365530490875,
-0.352150559425354,
-0.01321652252227068,
0.17804600298404694,
0.045792143791913986,
0.25742247700691223,
0.047495037317276,
-0.12937630712985992,
-0.2252621352672577,
-0.1390884965658188,
0.1931750625371933,
0.019397158175706863,
0.13235290348529816,
0.08083844184875488,
0.6441946029663086,
-0.09161815792322159,
-0.15892672538757324,
0.31236982345581055,
-0.1345026195049286,
-0.11235037446022034,
0.20584478974342346,
0.0021172971464693546,
0.18940797448158264,
0.02384718880057335,
-0.03552140295505524,
-0.12397142499685287,
-0.4503409266471863,
0.1686743199825287,
0.16548138856887817,
-0.020252667367458344,
0.3478740155696869,
0.128271222114563,
0.07828840613365173,
0.17750482261180878,
0.13813571631908417,
-0.1909155547618866,
-0.05106654763221741,
0.2469128519296646,
-0.3309718072414398,
-0.305912584066391,
-0.07152138650417328,
-0.160158172249794,
0.22426040470600128,
0.40275126695632935,
-0.6984962821006775,
0.10614956170320511,
-0.12761758267879486,
-0.21900251507759094,
0.04909190163016319,
0.03725367784500122,
0.3683997392654419,
-0.1916540116071701,
-0.019381936639547348,
-0.002128634601831436,
-0.06953514367341995,
-0.033537857234478,
-0.21129044890403748,
0.6732004284858704,
0.18784326314926147,
0.3525751531124115,
0.2811793386936188,
0.9196680188179016,
0.21025870740413666,
0.4203179180622101,
0.45925670862197876,
0.18456444144248962,
0.21182706952095032,
-0.13920840620994568,
-0.21654020249843597,
0.054272133857011795,
-0.29584982991218567,
-0.14695680141448975,
0.19300782680511475,
0.0539986826479435,
-0.5334852933883667,
-0.33630701899528503,
-0.22295579314231873,
-0.1735776960849762,
-0.331717312335968,
0.32251402735710144,
-0.007296524941921234,
0.34786269068717957,
-0.05778591334819794,
-0.03293945640325546,
-0.27377474308013916,
-0.45345112681388855,
0.024415716528892517,
0.052549172192811966,
0.03614351153373718,
0.1982191950082779,
-0.07064012438058853,
0.09258279204368591,
-0.7637267112731934,
0.052149448543787,
0.0224502831697464,
0.25257083773612976,
-0.23398156464099884,
-0.03759799525141716,
-0.053366854786872864,
-0.001964423805475235,
0.63824462890625,
-0.1221548542380333,
-0.10831284523010254,
-0.0036733224987983704,
-0.07280052453279495,
-0.6327508091926575,
-0.003490529954433441,
-0.014183763414621353,
0.01974331960082054,
0.22992858290672302,
-0.009248875081539154,
-0.4394516348838806,
-0.017309723421931267,
0.14759887754917145,
0.27546703815460205,
-0.3025963604450226,
-0.0935148298740387,
-0.36616480350494385,
-0.11953166127204895,
-0.5057440400123596,
-0.12866374850273132,
0.06480970233678818,
0.22246067225933075,
0.3845999836921692,
0.3160494267940521,
0.09972113370895386,
0.08570238947868347,
-0.012086868286132812,
-0.06987595558166504,
0.2582470774650574,
0.1297813206911087,
-0.13680191338062286,
0.2899041771888733,
0.08412577956914902,
-0.24117854237556458,
0.35282233357429504,
0.05038364976644516,
-0.2506103813648224,
0.0791517123579979,
0.14902576804161072,
0.11584750562906265,
0.2734085023403168,
0.09892817586660385,
-0.12371591478586197,
0.16670085489749908,
-0.05851386487483978,
-0.42192041873931885,
0.23555248975753784,
0.2815839350223541,
-0.1854797899723053,
-0.3053143620491028,
-0.5116243362426758,
0.6158607602119446,
0.05597123131155968,
0.030451230704784393,
0.20863190293312073,
0.022400081157684326,
-0.4127809703350067,
0.4413423538208008,
0.26830145716667175,
0.9731239080429077,
-0.20404265820980072,
0.42499840259552,
0.23177841305732727,
0.13447527587413788,
0.5237070322036743,
-0.5167374610900879,
0.38315480947494507,
-0.30562257766723633,
0.1268450915813446,
-0.013337457552552223,
-0.10856378078460693,
0.03648291900753975,
0.11471918225288391,
0.06540742516517639,
0.32536619901657104,
0.20793665945529938,
0.09614451229572296,
-0.07739321142435074,
0.4588257074356079,
-0.08006725460290909,
-0.34207242727279663,
-0.1955791860818863,
0.12200649082660675,
-0.3448764681816101,
0.3898960053920746,
-0.36450663208961487,
0.021709274500608444,
0.0776723325252533,
-0.11058712750673294,
-0.49160176515579224,
0.0795154795050621,
-0.3250877261161804,
0.4055931568145752,
-0.3284805417060852,
-0.1371370255947113,
-0.1421705186367035,
0.31596195697784424,
0.05925741046667099,
0.19339734315872192,
-0.24984028935432434,
0.2242746502161026,
-0.39769473671913147,
-0.23567716777324677,
0.020829053595662117,
0.2337530106306076,
0.40875232219696045,
-0.2069118320941925,
-0.243836909532547,
0.09800373017787933,
-0.19044533371925354,
-0.3769422769546509,
-0.16764593124389648,
-0.10644671320915222,
0.08835520595312119,
-0.014652281999588013,
-0.31727856397628784,
-0.009052939713001251,
-0.1413647085428238,
0.056081611663103104,
0.08245298266410828,
0.013701174408197403,
-0.11961647868156433,
-0.09041214734315872,
0.030632909387350082,
-0.16258737444877625,
0.05373422056436539,
0.4452785551548004,
0.19932737946510315,
-0.17376498878002167,
0.6748772859573364,
0.3185998499393463,
-0.2701171040534973,
-0.05884362757205963,
-0.1454923152923584,
0.026524139568209648,
-0.39161595702171326,
0.08036016672849655,
-0.12232116609811783,
-0.032689161598682404,
-0.2329391986131668,
-0.01587970182299614,
0.2639753818511963,
-0.1289011538028717,
0.2503608763217926,
-0.39733076095581055,
-0.4390517771244049,
0.3276475965976715,
-0.1340385377407074,
0.18060101568698883,
0.2681419849395752,
-0.3036368787288666,
0.1483331173658371,
-0.0007179845124483109,
-0.17669671773910522,
-0.033686116337776184,
-0.283253937959671,
0.1993027776479721,
0.3011005222797394,
-0.15525776147842407,
0.07127580046653748,
0.13447356224060059,
0.028118854388594627,
0.14065083861351013,
-0.16713087260723114,
-0.1209416314959526,
-0.021526910364627838,
0.1702217310667038,
-0.021184466779232025,
-0.15751177072525024,
0.007988677360117435,
-0.4215223789215088,
0.13371941447257996,
-0.31005021929740906,
0.09497369825839996,
0.09408164769411087,
-0.02313108742237091,
0.30494579672813416,
0.1652727574110031,
0.058950185775756836,
-0.09553505480289459,
0.4590952694416046,
0.004906855523586273,
0.4881097078323364,
0.19494350254535675,
0.14602717757225037,
0.21745309233665466,
0.009514011442661285,
-0.5299926996231079,
0.05959673225879669,
-0.10480701923370361,
-0.035454168915748596,
0.1295291781425476,
-0.1712081879377365,
0.015818580985069275,
0.18677693605422974,
-0.040361352264881134,
0.10278274118900299,
-0.11737854033708572,
-0.04468442499637604,
0.20297321677207947,
0.1301266849040985,
-0.12902075052261353,
0.12196141481399536,
0.343000203371048,
-0.03814176097512245,
-0.2553498446941376,
0.15176741778850555,
0.11667348444461823,
-0.02186112478375435,
-0.04639677703380585,
0.13871249556541443,
0.34685662388801575,
-0.08004260063171387,
0.08237442374229431,
-0.1870739758014679,
0.024710487574338913,
-0.04291253164410591,
-0.13443057239055634,
0.2051127701997757,
0.18372513353824615,
0.40192633867263794,
0.0027957558631896973,
0.14150027930736542,
-0.1637841761112213,
0.07540342211723328,
-0.1910856068134308,
-0.32893991470336914,
0.02031589485704899,
0.5687054395675659,
-0.046990618109703064,
0.28436920046806335,
-0.144627183675766,
0.1780044436454773,
0.3612074553966522,
-0.13690350949764252,
-0.3671024739742279,
0.23132185637950897,
-0.1447918713092804,
0.06172618642449379,
-0.05804826319217682,
-0.23646730184555054,
-0.20972779393196106,
0.2906801998615265,
0.052851397544145584,
-0.4837183952331543,
0.08078332990407944,
0.19289630651474,
-0.17192019522190094,
-0.29633447527885437,
0.42014452815055847,
0.1663336455821991,
-0.0192703977227211,
-0.383196085691452,
0.09907375276088715,
0.14486479759216309,
-0.044731900095939636,
-0.08720068633556366,
0.3097786605358124,
0.4060986638069153,
0.3071938455104828,
-0.27043646574020386,
0.009355105459690094,
-0.005945323035120964,
-0.006355283781886101,
-0.24959935247898102,
0.25597918033599854,
0.40651142597198486,
0.3059679865837097,
0.18039725720882416,
0.05419093370437622,
-0.10253879427909851,
-0.3101824223995209,
0.35936880111694336,
-0.06288786232471466,
-0.12125623226165771,
-0.019211560487747192,
-0.27703437209129333,
0.03510185331106186,
-0.22773897647857666,
0.04942267760634422,
-0.5648447275161743,
0.1031806692481041,
0.20874781906604767,
-0.13252140581607819,
0.11679667979478836,
-0.036396369338035583,
0.0014874450862407684,
-0.16575410962104797,
0.5369604825973511,
0.25114864110946655,
0.11229163408279419,
-0.4637849032878876,
-0.33754783868789673,
-0.5109270215034485,
0.07808126509189606,
-0.36463645100593567,
0.06499870121479034,
-0.05532524734735489,
0.3731815218925476,
-0.17176786065101624,
0.15667982399463654,
-0.26685911417007446,
0.10987316817045212,
-0.11338100582361221,
0.2389039695262909,
-0.3001951277256012,
-0.2587814927101135,
0.04700515791773796,
0.07872367650270462,
-0.08048482239246368,
-0.26089024543762207,
0.08748596161603928,
-0.02748851850628853,
-0.05485664680600166,
-0.22844596207141876,
-0.20256660878658295,
0.08811402320861816,
0.2646363079547882,
0.26334965229034424,
0.1222851350903511,
0.5243085622787476,
0.07498633116483688,
-0.3782138228416443,
-0.297666996717453,
-0.16730602085590363,
0.04359009861946106,
0.006588831543922424,
-0.08003614842891693,
0.5198348760604858,
-0.266716331243515,
0.15822340548038483,
-0.43827447295188904,
0.4756547212600708,
-0.17140747606754303,
0.10684487968683243,
-0.3627740442752838,
-0.15646694600582123,
0.034559354186058044,
0.2266114354133606,
0.20801502466201782,
0.18166330456733704,
-0.09175530076026917,
0.0773358941078186,
-0.25390738248825073,
-0.13095776736736298,
0.33519819378852844,
-0.5924607515335083,
-0.32918980717658997,
0.05241319164633751,
-0.05836710333824158,
-0.015294373035430908,
-0.11526044458150864,
-0.527149498462677,
0.03435244411230087,
0.1688707321882248,
0.0881754457950592,
-0.17088468372821808,
-0.04184355214238167,
-0.06303313374519348,
-0.022889958694577217,
-0.08436105400323868,
0.07172201573848724,
-0.12094821780920029,
-0.37930595874786377,
0.1373227834701538,
-0.2624128758907318
] |
https://github.com/huggingface/datasets/issues/278 | MemoryError when loading German Wikipedia | Hi @lhoestq
Thank you for your quick reply. I thought this might be the case, that the processing was done for some languages and not for others. Is there any set timeline for when other languages (German, Italian) will be processed?
Given enough memory, is it possible to process the data ourselves by specifying the `beam_runner`? | Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :)
I'm trying to download the German Wikipedia dataset as follows:
```
wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train")
```
However, when I do so, I get the following error:
```
Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')`
```
So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned.
This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset?
My nlp version is 0.2.1.
Thank you! | 56 | MemoryError when loading German Wikipedia
Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :)
I'm trying to download the German Wikipedia dataset as follows:
```
wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train")
```
However, when I do so, I get the following error:
```
Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')`
```
So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned.
This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset?
My nlp version is 0.2.1.
Thank you!
Hi @lhoestq
Thank you for your quick reply. I thought this might be the case, that the processing was done for some languages and not for others. Is there any set timeline for when other languages (German, Italian) will be processed?
Given enough memory, is it possible to process the data ourselves by specifying the `beam_runner`? | [
-0.047934528440237045,
0.12618955969810486,
0.018239092081785202,
0.6689178347587585,
0.24453303217887878,
0.15575072169303894,
0.004935301840305328,
0.20835675299167633,
0.3758643865585327,
-0.05147702991962433,
0.2673629820346832,
-0.33128827810287476,
-0.1734626293182373,
-0.33418023586273193,
0.22966912388801575,
-0.48612746596336365,
0.09306766092777252,
0.05842774733901024,
-0.09685809910297394,
0.021348997950553894,
-0.22103914618492126,
0.28426164388656616,
-0.2860867977142334,
-0.12967438995838165,
-0.24149928987026215,
0.06827670335769653,
-0.06069409102201462,
0.054007478058338165,
-0.1613471955060959,
-0.4543802738189697,
0.109389528632164,
-0.257276713848114,
0.11816728115081787,
0.1811022311449051,
-0.00012172195420134813,
0.040036678314208984,
0.4013994336128235,
-0.17075581848621368,
-0.44416365027427673,
0.03925636410713196,
-0.04547351971268654,
-0.34079402685165405,
0.03673425316810608,
-0.26067155599594116,
0.06098276376724243,
-0.10650114715099335,
0.32536613941192627,
-0.08283939957618713,
0.3636317849159241,
0.17929716408252716,
0.18307889997959137,
0.05839864909648895,
0.259697824716568,
-0.0829993188381195,
0.5757555961608887,
0.06039423495531082,
0.051787495613098145,
0.12043458223342896,
-0.3371914029121399,
-0.3669275641441345,
-0.266693115234375,
0.2971107065677643,
0.016859764233231544,
0.1016102135181427,
0.34289076924324036,
-0.11834924668073654,
0.01459447667002678,
-0.2151486873626709,
0.2146664559841156,
-0.015584371984004974,
0.6984873414039612,
-0.2225390374660492,
0.05440351366996765,
-0.2987266778945923,
-0.08197586983442307,
0.13722655177116394,
0.3699687719345093,
0.3768192231655121,
-0.5374549031257629,
-0.17521069943904877,
-0.18167966604232788,
-0.3489992022514343,
-0.16345623135566711,
0.3382710814476013,
0.05806826055049896,
0.24271051585674286,
-0.04609600827097893,
0.16560098528862,
0.36606115102767944,
-0.047463953495025635,
-0.27681395411491394,
-0.11192168295383453,
-0.012180626392364502,
0.4462253451347351,
-0.07023440301418304,
0.06821946054697037,
-0.07997240871191025,
-0.061932243406772614,
0.23511630296707153,
-0.2792298197746277,
-0.09406502544879913,
-0.06149452179670334,
0.25387123227119446,
0.07732438296079636,
0.2765715420246124,
0.45703837275505066,
-0.13490810990333557,
-0.19879396259784698,
0.1601511836051941,
0.18069620430469513,
0.018549729138612747,
-0.16259834170341492,
-0.03485201299190521,
-0.1633647382259369,
-0.07738503813743591,
-0.025875739753246307,
-0.1039629578590393,
-0.04693898931145668,
0.0200341884046793,
0.13095682859420776,
-0.09636442363262177,
-0.13396574556827545,
-0.032170042395591736,
0.41890662908554077,
-0.13972340524196625,
0.33823078870773315,
0.29564762115478516,
0.06871721148490906,
-0.38477811217308044,
-0.29508519172668457,
-0.1493525505065918,
0.15822122991085052,
-0.5230260491371155,
0.12379574030637741,
0.26629436016082764,
0.27717408537864685,
0.361306369304657,
-0.12290928512811661,
-0.26837682723999023,
0.0498335137963295,
0.2657952904701233,
-0.18319730460643768,
-0.03237520903348923,
0.21564345061779022,
0.1484367996454239,
0.28868916630744934,
0.1391695737838745,
-0.22817538678646088,
0.00019481033086776733,
0.061920080333948135,
-0.1770702600479126,
-0.19407308101654053,
0.06925884634256363,
0.017681347206234932,
-0.15710219740867615,
0.15428666770458221,
-0.40317127108573914,
0.2367207109928131,
0.2888610064983368,
-0.21285748481750488,
-0.09760471433401108,
-0.042263127863407135,
-0.23210251331329346,
-0.26150768995285034,
0.2098640352487564,
0.5494707226753235,
-0.09142859280109406,
-0.268973171710968,
-0.07590153813362122,
-0.0987916886806488,
0.40902814269065857,
0.23754896223545074,
-0.10521627217531204,
0.29600393772125244,
-0.23157146573066711,
0.09871366620063782,
0.34163209795951843,
-0.17392194271087646,
-0.3319515287876129,
0.13097688555717468,
0.11024165153503418,
0.1638558954000473,
0.056258171796798706,
0.001674111932516098,
0.011861903592944145,
0.19847524166107178,
0.19970917701721191,
0.3413086533546448,
-0.035260967910289764,
0.29072633385658264,
-0.2670716941356659,
-0.27098798751831055,
0.2600764036178589,
0.008650362491607666,
0.35167551040649414,
0.05551544576883316,
0.09452014416456223,
0.8308190703392029,
0.27242445945739746,
-0.06893350183963776,
0.3318046033382416,
0.563816249370575,
-0.22771893441677094,
0.05730919539928436,
-0.011269096285104752,
-0.06337003409862518,
-0.2486259639263153,
0.19277212023735046,
-0.30672699213027954,
0.30945417284965515,
-0.02148234099149704,
0.13213327527046204,
-0.16402950882911682,
-0.09691453725099564,
-0.056674446910619736,
-0.36996176838874817,
0.08882901817560196,
0.16524654626846313,
0.11012591421604156,
0.21409691870212555,
0.13791541755199432,
0.2627287209033966,
-0.011160725727677345,
0.02267489768564701,
-0.6933621168136597,
0.20877401530742645,
-0.14176055788993835,
-0.15219686925411224,
-0.010932181030511856,
0.10963800549507141,
0.13339093327522278,
0.14382770657539368,
-0.13231301307678223,
0.12147536873817444,
0.09903726726770401,
-0.046994566917419434,
0.1362227201461792,
-0.025001585483551025,
0.26590022444725037,
-0.18806730210781097,
0.43380892276763916,
0.05866854637861252,
0.1608508676290512,
-0.1543041467666626,
0.04690363630652428,
-0.2138386219739914,
0.07204657793045044,
0.2993033230304718,
0.08469521999359131,
0.03472008556127548,
0.16727246344089508,
0.150338277220726,
0.15188252925872803,
-0.1656809151172638,
0.40921348333358765,
0.08061911165714264,
0.11142279207706451,
-0.0011593494564294815,
0.026663534343242645,
-0.40508878231048584,
0.41835060715675354,
0.1737961322069168,
0.14272698760032654,
0.2619018852710724,
-0.4456166625022888,
-0.2904943823814392,
0.22474904358386993,
-0.057462241500616074,
0.23431351780891418,
0.08118831366300583,
0.13385677337646484,
0.0289965458214283,
0.15939542651176453,
0.03791035711765289,
0.09362122416496277,
0.058901261538267136,
0.5227378606796265,
0.01151285320520401,
0.012551858089864254,
-0.1341617852449417,
-0.21342733502388,
0.08087120950222015,
0.03129880875349045,
0.41698145866394043,
-0.19021770358085632,
-0.03903060406446457,
-0.0026982463896274567,
-0.5402336716651917,
-0.30531904101371765,
0.2616877555847168,
-0.488203763961792,
-0.28833070397377014,
-0.2413622885942459,
0.28014349937438965,
-0.06628771871328354,
-0.013452582061290741,
0.06859619915485382,
0.19894102215766907,
0.10880272090435028,
-0.14944228529930115,
-0.12989068031311035,
-0.2826365530490875,
-0.352150559425354,
-0.01321652252227068,
0.17804600298404694,
0.045792143791913986,
0.25742247700691223,
0.047495037317276,
-0.12937630712985992,
-0.2252621352672577,
-0.1390884965658188,
0.1931750625371933,
0.019397158175706863,
0.13235290348529816,
0.08083844184875488,
0.6441946029663086,
-0.09161815792322159,
-0.15892672538757324,
0.31236982345581055,
-0.1345026195049286,
-0.11235037446022034,
0.20584478974342346,
0.0021172971464693546,
0.18940797448158264,
0.02384718880057335,
-0.03552140295505524,
-0.12397142499685287,
-0.4503409266471863,
0.1686743199825287,
0.16548138856887817,
-0.020252667367458344,
0.3478740155696869,
0.128271222114563,
0.07828840613365173,
0.17750482261180878,
0.13813571631908417,
-0.1909155547618866,
-0.05106654763221741,
0.2469128519296646,
-0.3309718072414398,
-0.305912584066391,
-0.07152138650417328,
-0.160158172249794,
0.22426040470600128,
0.40275126695632935,
-0.6984962821006775,
0.10614956170320511,
-0.12761758267879486,
-0.21900251507759094,
0.04909190163016319,
0.03725367784500122,
0.3683997392654419,
-0.1916540116071701,
-0.019381936639547348,
-0.002128634601831436,
-0.06953514367341995,
-0.033537857234478,
-0.21129044890403748,
0.6732004284858704,
0.18784326314926147,
0.3525751531124115,
0.2811793386936188,
0.9196680188179016,
0.21025870740413666,
0.4203179180622101,
0.45925670862197876,
0.18456444144248962,
0.21182706952095032,
-0.13920840620994568,
-0.21654020249843597,
0.054272133857011795,
-0.29584982991218567,
-0.14695680141448975,
0.19300782680511475,
0.0539986826479435,
-0.5334852933883667,
-0.33630701899528503,
-0.22295579314231873,
-0.1735776960849762,
-0.331717312335968,
0.32251402735710144,
-0.007296524941921234,
0.34786269068717957,
-0.05778591334819794,
-0.03293945640325546,
-0.27377474308013916,
-0.45345112681388855,
0.024415716528892517,
0.052549172192811966,
0.03614351153373718,
0.1982191950082779,
-0.07064012438058853,
0.09258279204368591,
-0.7637267112731934,
0.052149448543787,
0.0224502831697464,
0.25257083773612976,
-0.23398156464099884,
-0.03759799525141716,
-0.053366854786872864,
-0.001964423805475235,
0.63824462890625,
-0.1221548542380333,
-0.10831284523010254,
-0.0036733224987983704,
-0.07280052453279495,
-0.6327508091926575,
-0.003490529954433441,
-0.014183763414621353,
0.01974331960082054,
0.22992858290672302,
-0.009248875081539154,
-0.4394516348838806,
-0.017309723421931267,
0.14759887754917145,
0.27546703815460205,
-0.3025963604450226,
-0.0935148298740387,
-0.36616480350494385,
-0.11953166127204895,
-0.5057440400123596,
-0.12866374850273132,
0.06480970233678818,
0.22246067225933075,
0.3845999836921692,
0.3160494267940521,
0.09972113370895386,
0.08570238947868347,
-0.012086868286132812,
-0.06987595558166504,
0.2582470774650574,
0.1297813206911087,
-0.13680191338062286,
0.2899041771888733,
0.08412577956914902,
-0.24117854237556458,
0.35282233357429504,
0.05038364976644516,
-0.2506103813648224,
0.0791517123579979,
0.14902576804161072,
0.11584750562906265,
0.2734085023403168,
0.09892817586660385,
-0.12371591478586197,
0.16670085489749908,
-0.05851386487483978,
-0.42192041873931885,
0.23555248975753784,
0.2815839350223541,
-0.1854797899723053,
-0.3053143620491028,
-0.5116243362426758,
0.6158607602119446,
0.05597123131155968,
0.030451230704784393,
0.20863190293312073,
0.022400081157684326,
-0.4127809703350067,
0.4413423538208008,
0.26830145716667175,
0.9731239080429077,
-0.20404265820980072,
0.42499840259552,
0.23177841305732727,
0.13447527587413788,
0.5237070322036743,
-0.5167374610900879,
0.38315480947494507,
-0.30562257766723633,
0.1268450915813446,
-0.013337457552552223,
-0.10856378078460693,
0.03648291900753975,
0.11471918225288391,
0.06540742516517639,
0.32536619901657104,
0.20793665945529938,
0.09614451229572296,
-0.07739321142435074,
0.4588257074356079,
-0.08006725460290909,
-0.34207242727279663,
-0.1955791860818863,
0.12200649082660675,
-0.3448764681816101,
0.3898960053920746,
-0.36450663208961487,
0.021709274500608444,
0.0776723325252533,
-0.11058712750673294,
-0.49160176515579224,
0.0795154795050621,
-0.3250877261161804,
0.4055931568145752,
-0.3284805417060852,
-0.1371370255947113,
-0.1421705186367035,
0.31596195697784424,
0.05925741046667099,
0.19339734315872192,
-0.24984028935432434,
0.2242746502161026,
-0.39769473671913147,
-0.23567716777324677,
0.020829053595662117,
0.2337530106306076,
0.40875232219696045,
-0.2069118320941925,
-0.243836909532547,
0.09800373017787933,
-0.19044533371925354,
-0.3769422769546509,
-0.16764593124389648,
-0.10644671320915222,
0.08835520595312119,
-0.014652281999588013,
-0.31727856397628784,
-0.009052939713001251,
-0.1413647085428238,
0.056081611663103104,
0.08245298266410828,
0.013701174408197403,
-0.11961647868156433,
-0.09041214734315872,
0.030632909387350082,
-0.16258737444877625,
0.05373422056436539,
0.4452785551548004,
0.19932737946510315,
-0.17376498878002167,
0.6748772859573364,
0.3185998499393463,
-0.2701171040534973,
-0.05884362757205963,
-0.1454923152923584,
0.026524139568209648,
-0.39161595702171326,
0.08036016672849655,
-0.12232116609811783,
-0.032689161598682404,
-0.2329391986131668,
-0.01587970182299614,
0.2639753818511963,
-0.1289011538028717,
0.2503608763217926,
-0.39733076095581055,
-0.4390517771244049,
0.3276475965976715,
-0.1340385377407074,
0.18060101568698883,
0.2681419849395752,
-0.3036368787288666,
0.1483331173658371,
-0.0007179845124483109,
-0.17669671773910522,
-0.033686116337776184,
-0.283253937959671,
0.1993027776479721,
0.3011005222797394,
-0.15525776147842407,
0.07127580046653748,
0.13447356224060059,
0.028118854388594627,
0.14065083861351013,
-0.16713087260723114,
-0.1209416314959526,
-0.021526910364627838,
0.1702217310667038,
-0.021184466779232025,
-0.15751177072525024,
0.007988677360117435,
-0.4215223789215088,
0.13371941447257996,
-0.31005021929740906,
0.09497369825839996,
0.09408164769411087,
-0.02313108742237091,
0.30494579672813416,
0.1652727574110031,
0.058950185775756836,
-0.09553505480289459,
0.4590952694416046,
0.004906855523586273,
0.4881097078323364,
0.19494350254535675,
0.14602717757225037,
0.21745309233665466,
0.009514011442661285,
-0.5299926996231079,
0.05959673225879669,
-0.10480701923370361,
-0.035454168915748596,
0.1295291781425476,
-0.1712081879377365,
0.015818580985069275,
0.18677693605422974,
-0.040361352264881134,
0.10278274118900299,
-0.11737854033708572,
-0.04468442499637604,
0.20297321677207947,
0.1301266849040985,
-0.12902075052261353,
0.12196141481399536,
0.343000203371048,
-0.03814176097512245,
-0.2553498446941376,
0.15176741778850555,
0.11667348444461823,
-0.02186112478375435,
-0.04639677703380585,
0.13871249556541443,
0.34685662388801575,
-0.08004260063171387,
0.08237442374229431,
-0.1870739758014679,
0.024710487574338913,
-0.04291253164410591,
-0.13443057239055634,
0.2051127701997757,
0.18372513353824615,
0.40192633867263794,
0.0027957558631896973,
0.14150027930736542,
-0.1637841761112213,
0.07540342211723328,
-0.1910856068134308,
-0.32893991470336914,
0.02031589485704899,
0.5687054395675659,
-0.046990618109703064,
0.28436920046806335,
-0.144627183675766,
0.1780044436454773,
0.3612074553966522,
-0.13690350949764252,
-0.3671024739742279,
0.23132185637950897,
-0.1447918713092804,
0.06172618642449379,
-0.05804826319217682,
-0.23646730184555054,
-0.20972779393196106,
0.2906801998615265,
0.052851397544145584,
-0.4837183952331543,
0.08078332990407944,
0.19289630651474,
-0.17192019522190094,
-0.29633447527885437,
0.42014452815055847,
0.1663336455821991,
-0.0192703977227211,
-0.383196085691452,
0.09907375276088715,
0.14486479759216309,
-0.044731900095939636,
-0.08720068633556366,
0.3097786605358124,
0.4060986638069153,
0.3071938455104828,
-0.27043646574020386,
0.009355105459690094,
-0.005945323035120964,
-0.006355283781886101,
-0.24959935247898102,
0.25597918033599854,
0.40651142597198486,
0.3059679865837097,
0.18039725720882416,
0.05419093370437622,
-0.10253879427909851,
-0.3101824223995209,
0.35936880111694336,
-0.06288786232471466,
-0.12125623226165771,
-0.019211560487747192,
-0.27703437209129333,
0.03510185331106186,
-0.22773897647857666,
0.04942267760634422,
-0.5648447275161743,
0.1031806692481041,
0.20874781906604767,
-0.13252140581607819,
0.11679667979478836,
-0.036396369338035583,
0.0014874450862407684,
-0.16575410962104797,
0.5369604825973511,
0.25114864110946655,
0.11229163408279419,
-0.4637849032878876,
-0.33754783868789673,
-0.5109270215034485,
0.07808126509189606,
-0.36463645100593567,
0.06499870121479034,
-0.05532524734735489,
0.3731815218925476,
-0.17176786065101624,
0.15667982399463654,
-0.26685911417007446,
0.10987316817045212,
-0.11338100582361221,
0.2389039695262909,
-0.3001951277256012,
-0.2587814927101135,
0.04700515791773796,
0.07872367650270462,
-0.08048482239246368,
-0.26089024543762207,
0.08748596161603928,
-0.02748851850628853,
-0.05485664680600166,
-0.22844596207141876,
-0.20256660878658295,
0.08811402320861816,
0.2646363079547882,
0.26334965229034424,
0.1222851350903511,
0.5243085622787476,
0.07498633116483688,
-0.3782138228416443,
-0.297666996717453,
-0.16730602085590363,
0.04359009861946106,
0.006588831543922424,
-0.08003614842891693,
0.5198348760604858,
-0.266716331243515,
0.15822340548038483,
-0.43827447295188904,
0.4756547212600708,
-0.17140747606754303,
0.10684487968683243,
-0.3627740442752838,
-0.15646694600582123,
0.034559354186058044,
0.2266114354133606,
0.20801502466201782,
0.18166330456733704,
-0.09175530076026917,
0.0773358941078186,
-0.25390738248825073,
-0.13095776736736298,
0.33519819378852844,
-0.5924607515335083,
-0.32918980717658997,
0.05241319164633751,
-0.05836710333824158,
-0.015294373035430908,
-0.11526044458150864,
-0.527149498462677,
0.03435244411230087,
0.1688707321882248,
0.0881754457950592,
-0.17088468372821808,
-0.04184355214238167,
-0.06303313374519348,
-0.022889958694577217,
-0.08436105400323868,
0.07172201573848724,
-0.12094821780920029,
-0.37930595874786377,
0.1373227834701538,
-0.2624128758907318
] |
https://github.com/huggingface/datasets/issues/278 | MemoryError when loading German Wikipedia | Adding them is definitely in our short term objectives. I'll be working on this early next week :)
Although if you have an apache beam runtime feel free to specify the beam runner. You can find more info [here](https://github.com/huggingface/nlp/blob/master/docs/beam_dataset.md) on how to make it work on Dataflow but you can adapt it for Spark or any other beam runtime (by changing the `runner`).
However if you don't have a beam runtime and even if you have enough memory, I discourage you to use the `DirectRunner` on the german or italian wikipedia. According to Apache Beam documentation it was made for testing purposes and therefore it is memory-inefficient. | Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :)
I'm trying to download the German Wikipedia dataset as follows:
```
wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train")
```
However, when I do so, I get the following error:
```
Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')`
```
So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned.
This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset?
My nlp version is 0.2.1.
Thank you! | 107 | MemoryError when loading German Wikipedia
Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :)
I'm trying to download the German Wikipedia dataset as follows:
```
wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train")
```
However, when I do so, I get the following error:
```
Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')`
```
So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned.
This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset?
My nlp version is 0.2.1.
Thank you!
Adding them is definitely in our short term objectives. I'll be working on this early next week :)
Although if you have an apache beam runtime feel free to specify the beam runner. You can find more info [here](https://github.com/huggingface/nlp/blob/master/docs/beam_dataset.md) on how to make it work on Dataflow but you can adapt it for Spark or any other beam runtime (by changing the `runner`).
However if you don't have a beam runtime and even if you have enough memory, I discourage you to use the `DirectRunner` on the german or italian wikipedia. According to Apache Beam documentation it was made for testing purposes and therefore it is memory-inefficient. | [
-0.047934528440237045,
0.12618955969810486,
0.018239092081785202,
0.6689178347587585,
0.24453303217887878,
0.15575072169303894,
0.004935301840305328,
0.20835675299167633,
0.3758643865585327,
-0.05147702991962433,
0.2673629820346832,
-0.33128827810287476,
-0.1734626293182373,
-0.33418023586273193,
0.22966912388801575,
-0.48612746596336365,
0.09306766092777252,
0.05842774733901024,
-0.09685809910297394,
0.021348997950553894,
-0.22103914618492126,
0.28426164388656616,
-0.2860867977142334,
-0.12967438995838165,
-0.24149928987026215,
0.06827670335769653,
-0.06069409102201462,
0.054007478058338165,
-0.1613471955060959,
-0.4543802738189697,
0.109389528632164,
-0.257276713848114,
0.11816728115081787,
0.1811022311449051,
-0.00012172195420134813,
0.040036678314208984,
0.4013994336128235,
-0.17075581848621368,
-0.44416365027427673,
0.03925636410713196,
-0.04547351971268654,
-0.34079402685165405,
0.03673425316810608,
-0.26067155599594116,
0.06098276376724243,
-0.10650114715099335,
0.32536613941192627,
-0.08283939957618713,
0.3636317849159241,
0.17929716408252716,
0.18307889997959137,
0.05839864909648895,
0.259697824716568,
-0.0829993188381195,
0.5757555961608887,
0.06039423495531082,
0.051787495613098145,
0.12043458223342896,
-0.3371914029121399,
-0.3669275641441345,
-0.266693115234375,
0.2971107065677643,
0.016859764233231544,
0.1016102135181427,
0.34289076924324036,
-0.11834924668073654,
0.01459447667002678,
-0.2151486873626709,
0.2146664559841156,
-0.015584371984004974,
0.6984873414039612,
-0.2225390374660492,
0.05440351366996765,
-0.2987266778945923,
-0.08197586983442307,
0.13722655177116394,
0.3699687719345093,
0.3768192231655121,
-0.5374549031257629,
-0.17521069943904877,
-0.18167966604232788,
-0.3489992022514343,
-0.16345623135566711,
0.3382710814476013,
0.05806826055049896,
0.24271051585674286,
-0.04609600827097893,
0.16560098528862,
0.36606115102767944,
-0.047463953495025635,
-0.27681395411491394,
-0.11192168295383453,
-0.012180626392364502,
0.4462253451347351,
-0.07023440301418304,
0.06821946054697037,
-0.07997240871191025,
-0.061932243406772614,
0.23511630296707153,
-0.2792298197746277,
-0.09406502544879913,
-0.06149452179670334,
0.25387123227119446,
0.07732438296079636,
0.2765715420246124,
0.45703837275505066,
-0.13490810990333557,
-0.19879396259784698,
0.1601511836051941,
0.18069620430469513,
0.018549729138612747,
-0.16259834170341492,
-0.03485201299190521,
-0.1633647382259369,
-0.07738503813743591,
-0.025875739753246307,
-0.1039629578590393,
-0.04693898931145668,
0.0200341884046793,
0.13095682859420776,
-0.09636442363262177,
-0.13396574556827545,
-0.032170042395591736,
0.41890662908554077,
-0.13972340524196625,
0.33823078870773315,
0.29564762115478516,
0.06871721148490906,
-0.38477811217308044,
-0.29508519172668457,
-0.1493525505065918,
0.15822122991085052,
-0.5230260491371155,
0.12379574030637741,
0.26629436016082764,
0.27717408537864685,
0.361306369304657,
-0.12290928512811661,
-0.26837682723999023,
0.0498335137963295,
0.2657952904701233,
-0.18319730460643768,
-0.03237520903348923,
0.21564345061779022,
0.1484367996454239,
0.28868916630744934,
0.1391695737838745,
-0.22817538678646088,
0.00019481033086776733,
0.061920080333948135,
-0.1770702600479126,
-0.19407308101654053,
0.06925884634256363,
0.017681347206234932,
-0.15710219740867615,
0.15428666770458221,
-0.40317127108573914,
0.2367207109928131,
0.2888610064983368,
-0.21285748481750488,
-0.09760471433401108,
-0.042263127863407135,
-0.23210251331329346,
-0.26150768995285034,
0.2098640352487564,
0.5494707226753235,
-0.09142859280109406,
-0.268973171710968,
-0.07590153813362122,
-0.0987916886806488,
0.40902814269065857,
0.23754896223545074,
-0.10521627217531204,
0.29600393772125244,
-0.23157146573066711,
0.09871366620063782,
0.34163209795951843,
-0.17392194271087646,
-0.3319515287876129,
0.13097688555717468,
0.11024165153503418,
0.1638558954000473,
0.056258171796798706,
0.001674111932516098,
0.011861903592944145,
0.19847524166107178,
0.19970917701721191,
0.3413086533546448,
-0.035260967910289764,
0.29072633385658264,
-0.2670716941356659,
-0.27098798751831055,
0.2600764036178589,
0.008650362491607666,
0.35167551040649414,
0.05551544576883316,
0.09452014416456223,
0.8308190703392029,
0.27242445945739746,
-0.06893350183963776,
0.3318046033382416,
0.563816249370575,
-0.22771893441677094,
0.05730919539928436,
-0.011269096285104752,
-0.06337003409862518,
-0.2486259639263153,
0.19277212023735046,
-0.30672699213027954,
0.30945417284965515,
-0.02148234099149704,
0.13213327527046204,
-0.16402950882911682,
-0.09691453725099564,
-0.056674446910619736,
-0.36996176838874817,
0.08882901817560196,
0.16524654626846313,
0.11012591421604156,
0.21409691870212555,
0.13791541755199432,
0.2627287209033966,
-0.011160725727677345,
0.02267489768564701,
-0.6933621168136597,
0.20877401530742645,
-0.14176055788993835,
-0.15219686925411224,
-0.010932181030511856,
0.10963800549507141,
0.13339093327522278,
0.14382770657539368,
-0.13231301307678223,
0.12147536873817444,
0.09903726726770401,
-0.046994566917419434,
0.1362227201461792,
-0.025001585483551025,
0.26590022444725037,
-0.18806730210781097,
0.43380892276763916,
0.05866854637861252,
0.1608508676290512,
-0.1543041467666626,
0.04690363630652428,
-0.2138386219739914,
0.07204657793045044,
0.2993033230304718,
0.08469521999359131,
0.03472008556127548,
0.16727246344089508,
0.150338277220726,
0.15188252925872803,
-0.1656809151172638,
0.40921348333358765,
0.08061911165714264,
0.11142279207706451,
-0.0011593494564294815,
0.026663534343242645,
-0.40508878231048584,
0.41835060715675354,
0.1737961322069168,
0.14272698760032654,
0.2619018852710724,
-0.4456166625022888,
-0.2904943823814392,
0.22474904358386993,
-0.057462241500616074,
0.23431351780891418,
0.08118831366300583,
0.13385677337646484,
0.0289965458214283,
0.15939542651176453,
0.03791035711765289,
0.09362122416496277,
0.058901261538267136,
0.5227378606796265,
0.01151285320520401,
0.012551858089864254,
-0.1341617852449417,
-0.21342733502388,
0.08087120950222015,
0.03129880875349045,
0.41698145866394043,
-0.19021770358085632,
-0.03903060406446457,
-0.0026982463896274567,
-0.5402336716651917,
-0.30531904101371765,
0.2616877555847168,
-0.488203763961792,
-0.28833070397377014,
-0.2413622885942459,
0.28014349937438965,
-0.06628771871328354,
-0.013452582061290741,
0.06859619915485382,
0.19894102215766907,
0.10880272090435028,
-0.14944228529930115,
-0.12989068031311035,
-0.2826365530490875,
-0.352150559425354,
-0.01321652252227068,
0.17804600298404694,
0.045792143791913986,
0.25742247700691223,
0.047495037317276,
-0.12937630712985992,
-0.2252621352672577,
-0.1390884965658188,
0.1931750625371933,
0.019397158175706863,
0.13235290348529816,
0.08083844184875488,
0.6441946029663086,
-0.09161815792322159,
-0.15892672538757324,
0.31236982345581055,
-0.1345026195049286,
-0.11235037446022034,
0.20584478974342346,
0.0021172971464693546,
0.18940797448158264,
0.02384718880057335,
-0.03552140295505524,
-0.12397142499685287,
-0.4503409266471863,
0.1686743199825287,
0.16548138856887817,
-0.020252667367458344,
0.3478740155696869,
0.128271222114563,
0.07828840613365173,
0.17750482261180878,
0.13813571631908417,
-0.1909155547618866,
-0.05106654763221741,
0.2469128519296646,
-0.3309718072414398,
-0.305912584066391,
-0.07152138650417328,
-0.160158172249794,
0.22426040470600128,
0.40275126695632935,
-0.6984962821006775,
0.10614956170320511,
-0.12761758267879486,
-0.21900251507759094,
0.04909190163016319,
0.03725367784500122,
0.3683997392654419,
-0.1916540116071701,
-0.019381936639547348,
-0.002128634601831436,
-0.06953514367341995,
-0.033537857234478,
-0.21129044890403748,
0.6732004284858704,
0.18784326314926147,
0.3525751531124115,
0.2811793386936188,
0.9196680188179016,
0.21025870740413666,
0.4203179180622101,
0.45925670862197876,
0.18456444144248962,
0.21182706952095032,
-0.13920840620994568,
-0.21654020249843597,
0.054272133857011795,
-0.29584982991218567,
-0.14695680141448975,
0.19300782680511475,
0.0539986826479435,
-0.5334852933883667,
-0.33630701899528503,
-0.22295579314231873,
-0.1735776960849762,
-0.331717312335968,
0.32251402735710144,
-0.007296524941921234,
0.34786269068717957,
-0.05778591334819794,
-0.03293945640325546,
-0.27377474308013916,
-0.45345112681388855,
0.024415716528892517,
0.052549172192811966,
0.03614351153373718,
0.1982191950082779,
-0.07064012438058853,
0.09258279204368591,
-0.7637267112731934,
0.052149448543787,
0.0224502831697464,
0.25257083773612976,
-0.23398156464099884,
-0.03759799525141716,
-0.053366854786872864,
-0.001964423805475235,
0.63824462890625,
-0.1221548542380333,
-0.10831284523010254,
-0.0036733224987983704,
-0.07280052453279495,
-0.6327508091926575,
-0.003490529954433441,
-0.014183763414621353,
0.01974331960082054,
0.22992858290672302,
-0.009248875081539154,
-0.4394516348838806,
-0.017309723421931267,
0.14759887754917145,
0.27546703815460205,
-0.3025963604450226,
-0.0935148298740387,
-0.36616480350494385,
-0.11953166127204895,
-0.5057440400123596,
-0.12866374850273132,
0.06480970233678818,
0.22246067225933075,
0.3845999836921692,
0.3160494267940521,
0.09972113370895386,
0.08570238947868347,
-0.012086868286132812,
-0.06987595558166504,
0.2582470774650574,
0.1297813206911087,
-0.13680191338062286,
0.2899041771888733,
0.08412577956914902,
-0.24117854237556458,
0.35282233357429504,
0.05038364976644516,
-0.2506103813648224,
0.0791517123579979,
0.14902576804161072,
0.11584750562906265,
0.2734085023403168,
0.09892817586660385,
-0.12371591478586197,
0.16670085489749908,
-0.05851386487483978,
-0.42192041873931885,
0.23555248975753784,
0.2815839350223541,
-0.1854797899723053,
-0.3053143620491028,
-0.5116243362426758,
0.6158607602119446,
0.05597123131155968,
0.030451230704784393,
0.20863190293312073,
0.022400081157684326,
-0.4127809703350067,
0.4413423538208008,
0.26830145716667175,
0.9731239080429077,
-0.20404265820980072,
0.42499840259552,
0.23177841305732727,
0.13447527587413788,
0.5237070322036743,
-0.5167374610900879,
0.38315480947494507,
-0.30562257766723633,
0.1268450915813446,
-0.013337457552552223,
-0.10856378078460693,
0.03648291900753975,
0.11471918225288391,
0.06540742516517639,
0.32536619901657104,
0.20793665945529938,
0.09614451229572296,
-0.07739321142435074,
0.4588257074356079,
-0.08006725460290909,
-0.34207242727279663,
-0.1955791860818863,
0.12200649082660675,
-0.3448764681816101,
0.3898960053920746,
-0.36450663208961487,
0.021709274500608444,
0.0776723325252533,
-0.11058712750673294,
-0.49160176515579224,
0.0795154795050621,
-0.3250877261161804,
0.4055931568145752,
-0.3284805417060852,
-0.1371370255947113,
-0.1421705186367035,
0.31596195697784424,
0.05925741046667099,
0.19339734315872192,
-0.24984028935432434,
0.2242746502161026,
-0.39769473671913147,
-0.23567716777324677,
0.020829053595662117,
0.2337530106306076,
0.40875232219696045,
-0.2069118320941925,
-0.243836909532547,
0.09800373017787933,
-0.19044533371925354,
-0.3769422769546509,
-0.16764593124389648,
-0.10644671320915222,
0.08835520595312119,
-0.014652281999588013,
-0.31727856397628784,
-0.009052939713001251,
-0.1413647085428238,
0.056081611663103104,
0.08245298266410828,
0.013701174408197403,
-0.11961647868156433,
-0.09041214734315872,
0.030632909387350082,
-0.16258737444877625,
0.05373422056436539,
0.4452785551548004,
0.19932737946510315,
-0.17376498878002167,
0.6748772859573364,
0.3185998499393463,
-0.2701171040534973,
-0.05884362757205963,
-0.1454923152923584,
0.026524139568209648,
-0.39161595702171326,
0.08036016672849655,
-0.12232116609811783,
-0.032689161598682404,
-0.2329391986131668,
-0.01587970182299614,
0.2639753818511963,
-0.1289011538028717,
0.2503608763217926,
-0.39733076095581055,
-0.4390517771244049,
0.3276475965976715,
-0.1340385377407074,
0.18060101568698883,
0.2681419849395752,
-0.3036368787288666,
0.1483331173658371,
-0.0007179845124483109,
-0.17669671773910522,
-0.033686116337776184,
-0.283253937959671,
0.1993027776479721,
0.3011005222797394,
-0.15525776147842407,
0.07127580046653748,
0.13447356224060059,
0.028118854388594627,
0.14065083861351013,
-0.16713087260723114,
-0.1209416314959526,
-0.021526910364627838,
0.1702217310667038,
-0.021184466779232025,
-0.15751177072525024,
0.007988677360117435,
-0.4215223789215088,
0.13371941447257996,
-0.31005021929740906,
0.09497369825839996,
0.09408164769411087,
-0.02313108742237091,
0.30494579672813416,
0.1652727574110031,
0.058950185775756836,
-0.09553505480289459,
0.4590952694416046,
0.004906855523586273,
0.4881097078323364,
0.19494350254535675,
0.14602717757225037,
0.21745309233665466,
0.009514011442661285,
-0.5299926996231079,
0.05959673225879669,
-0.10480701923370361,
-0.035454168915748596,
0.1295291781425476,
-0.1712081879377365,
0.015818580985069275,
0.18677693605422974,
-0.040361352264881134,
0.10278274118900299,
-0.11737854033708572,
-0.04468442499637604,
0.20297321677207947,
0.1301266849040985,
-0.12902075052261353,
0.12196141481399536,
0.343000203371048,
-0.03814176097512245,
-0.2553498446941376,
0.15176741778850555,
0.11667348444461823,
-0.02186112478375435,
-0.04639677703380585,
0.13871249556541443,
0.34685662388801575,
-0.08004260063171387,
0.08237442374229431,
-0.1870739758014679,
0.024710487574338913,
-0.04291253164410591,
-0.13443057239055634,
0.2051127701997757,
0.18372513353824615,
0.40192633867263794,
0.0027957558631896973,
0.14150027930736542,
-0.1637841761112213,
0.07540342211723328,
-0.1910856068134308,
-0.32893991470336914,
0.02031589485704899,
0.5687054395675659,
-0.046990618109703064,
0.28436920046806335,
-0.144627183675766,
0.1780044436454773,
0.3612074553966522,
-0.13690350949764252,
-0.3671024739742279,
0.23132185637950897,
-0.1447918713092804,
0.06172618642449379,
-0.05804826319217682,
-0.23646730184555054,
-0.20972779393196106,
0.2906801998615265,
0.052851397544145584,
-0.4837183952331543,
0.08078332990407944,
0.19289630651474,
-0.17192019522190094,
-0.29633447527885437,
0.42014452815055847,
0.1663336455821991,
-0.0192703977227211,
-0.383196085691452,
0.09907375276088715,
0.14486479759216309,
-0.044731900095939636,
-0.08720068633556366,
0.3097786605358124,
0.4060986638069153,
0.3071938455104828,
-0.27043646574020386,
0.009355105459690094,
-0.005945323035120964,
-0.006355283781886101,
-0.24959935247898102,
0.25597918033599854,
0.40651142597198486,
0.3059679865837097,
0.18039725720882416,
0.05419093370437622,
-0.10253879427909851,
-0.3101824223995209,
0.35936880111694336,
-0.06288786232471466,
-0.12125623226165771,
-0.019211560487747192,
-0.27703437209129333,
0.03510185331106186,
-0.22773897647857666,
0.04942267760634422,
-0.5648447275161743,
0.1031806692481041,
0.20874781906604767,
-0.13252140581607819,
0.11679667979478836,
-0.036396369338035583,
0.0014874450862407684,
-0.16575410962104797,
0.5369604825973511,
0.25114864110946655,
0.11229163408279419,
-0.4637849032878876,
-0.33754783868789673,
-0.5109270215034485,
0.07808126509189606,
-0.36463645100593567,
0.06499870121479034,
-0.05532524734735489,
0.3731815218925476,
-0.17176786065101624,
0.15667982399463654,
-0.26685911417007446,
0.10987316817045212,
-0.11338100582361221,
0.2389039695262909,
-0.3001951277256012,
-0.2587814927101135,
0.04700515791773796,
0.07872367650270462,
-0.08048482239246368,
-0.26089024543762207,
0.08748596161603928,
-0.02748851850628853,
-0.05485664680600166,
-0.22844596207141876,
-0.20256660878658295,
0.08811402320861816,
0.2646363079547882,
0.26334965229034424,
0.1222851350903511,
0.5243085622787476,
0.07498633116483688,
-0.3782138228416443,
-0.297666996717453,
-0.16730602085590363,
0.04359009861946106,
0.006588831543922424,
-0.08003614842891693,
0.5198348760604858,
-0.266716331243515,
0.15822340548038483,
-0.43827447295188904,
0.4756547212600708,
-0.17140747606754303,
0.10684487968683243,
-0.3627740442752838,
-0.15646694600582123,
0.034559354186058044,
0.2266114354133606,
0.20801502466201782,
0.18166330456733704,
-0.09175530076026917,
0.0773358941078186,
-0.25390738248825073,
-0.13095776736736298,
0.33519819378852844,
-0.5924607515335083,
-0.32918980717658997,
0.05241319164633751,
-0.05836710333824158,
-0.015294373035430908,
-0.11526044458150864,
-0.527149498462677,
0.03435244411230087,
0.1688707321882248,
0.0881754457950592,
-0.17088468372821808,
-0.04184355214238167,
-0.06303313374519348,
-0.022889958694577217,
-0.08436105400323868,
0.07172201573848724,
-0.12094821780920029,
-0.37930595874786377,
0.1373227834701538,
-0.2624128758907318
] |
https://github.com/huggingface/datasets/issues/278 | MemoryError when loading German Wikipedia | I added the German and the Italian Wikipedia to our google cloud storage:
First update the `nlp` package to 0.3.0:
```bash
pip install nlp --upgrade
```
and then
```python
from nlp import load_dataset
wiki_de = load_dataset("wikipedia", "20200501.de")
wiki_it = load_dataset("wikipedia", "20200501.it")
```
The datasets are downloaded and directly ready to use (no processing). | Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :)
I'm trying to download the German Wikipedia dataset as follows:
```
wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train")
```
However, when I do so, I get the following error:
```
Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')`
```
So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned.
This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset?
My nlp version is 0.2.1.
Thank you! | 53 | MemoryError when loading German Wikipedia
Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :)
I'm trying to download the German Wikipedia dataset as follows:
```
wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train")
```
However, when I do so, I get the following error:
```
Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')`
```
So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned.
This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset?
My nlp version is 0.2.1.
Thank you!
I added the German and the Italian Wikipedia to our google cloud storage:
First update the `nlp` package to 0.3.0:
```bash
pip install nlp --upgrade
```
and then
```python
from nlp import load_dataset
wiki_de = load_dataset("wikipedia", "20200501.de")
wiki_it = load_dataset("wikipedia", "20200501.it")
```
The datasets are downloaded and directly ready to use (no processing). | [
-0.047934528440237045,
0.12618955969810486,
0.018239092081785202,
0.6689178347587585,
0.24453303217887878,
0.15575072169303894,
0.004935301840305328,
0.20835675299167633,
0.3758643865585327,
-0.05147702991962433,
0.2673629820346832,
-0.33128827810287476,
-0.1734626293182373,
-0.33418023586273193,
0.22966912388801575,
-0.48612746596336365,
0.09306766092777252,
0.05842774733901024,
-0.09685809910297394,
0.021348997950553894,
-0.22103914618492126,
0.28426164388656616,
-0.2860867977142334,
-0.12967438995838165,
-0.24149928987026215,
0.06827670335769653,
-0.06069409102201462,
0.054007478058338165,
-0.1613471955060959,
-0.4543802738189697,
0.109389528632164,
-0.257276713848114,
0.11816728115081787,
0.1811022311449051,
-0.00012172195420134813,
0.040036678314208984,
0.4013994336128235,
-0.17075581848621368,
-0.44416365027427673,
0.03925636410713196,
-0.04547351971268654,
-0.34079402685165405,
0.03673425316810608,
-0.26067155599594116,
0.06098276376724243,
-0.10650114715099335,
0.32536613941192627,
-0.08283939957618713,
0.3636317849159241,
0.17929716408252716,
0.18307889997959137,
0.05839864909648895,
0.259697824716568,
-0.0829993188381195,
0.5757555961608887,
0.06039423495531082,
0.051787495613098145,
0.12043458223342896,
-0.3371914029121399,
-0.3669275641441345,
-0.266693115234375,
0.2971107065677643,
0.016859764233231544,
0.1016102135181427,
0.34289076924324036,
-0.11834924668073654,
0.01459447667002678,
-0.2151486873626709,
0.2146664559841156,
-0.015584371984004974,
0.6984873414039612,
-0.2225390374660492,
0.05440351366996765,
-0.2987266778945923,
-0.08197586983442307,
0.13722655177116394,
0.3699687719345093,
0.3768192231655121,
-0.5374549031257629,
-0.17521069943904877,
-0.18167966604232788,
-0.3489992022514343,
-0.16345623135566711,
0.3382710814476013,
0.05806826055049896,
0.24271051585674286,
-0.04609600827097893,
0.16560098528862,
0.36606115102767944,
-0.047463953495025635,
-0.27681395411491394,
-0.11192168295383453,
-0.012180626392364502,
0.4462253451347351,
-0.07023440301418304,
0.06821946054697037,
-0.07997240871191025,
-0.061932243406772614,
0.23511630296707153,
-0.2792298197746277,
-0.09406502544879913,
-0.06149452179670334,
0.25387123227119446,
0.07732438296079636,
0.2765715420246124,
0.45703837275505066,
-0.13490810990333557,
-0.19879396259784698,
0.1601511836051941,
0.18069620430469513,
0.018549729138612747,
-0.16259834170341492,
-0.03485201299190521,
-0.1633647382259369,
-0.07738503813743591,
-0.025875739753246307,
-0.1039629578590393,
-0.04693898931145668,
0.0200341884046793,
0.13095682859420776,
-0.09636442363262177,
-0.13396574556827545,
-0.032170042395591736,
0.41890662908554077,
-0.13972340524196625,
0.33823078870773315,
0.29564762115478516,
0.06871721148490906,
-0.38477811217308044,
-0.29508519172668457,
-0.1493525505065918,
0.15822122991085052,
-0.5230260491371155,
0.12379574030637741,
0.26629436016082764,
0.27717408537864685,
0.361306369304657,
-0.12290928512811661,
-0.26837682723999023,
0.0498335137963295,
0.2657952904701233,
-0.18319730460643768,
-0.03237520903348923,
0.21564345061779022,
0.1484367996454239,
0.28868916630744934,
0.1391695737838745,
-0.22817538678646088,
0.00019481033086776733,
0.061920080333948135,
-0.1770702600479126,
-0.19407308101654053,
0.06925884634256363,
0.017681347206234932,
-0.15710219740867615,
0.15428666770458221,
-0.40317127108573914,
0.2367207109928131,
0.2888610064983368,
-0.21285748481750488,
-0.09760471433401108,
-0.042263127863407135,
-0.23210251331329346,
-0.26150768995285034,
0.2098640352487564,
0.5494707226753235,
-0.09142859280109406,
-0.268973171710968,
-0.07590153813362122,
-0.0987916886806488,
0.40902814269065857,
0.23754896223545074,
-0.10521627217531204,
0.29600393772125244,
-0.23157146573066711,
0.09871366620063782,
0.34163209795951843,
-0.17392194271087646,
-0.3319515287876129,
0.13097688555717468,
0.11024165153503418,
0.1638558954000473,
0.056258171796798706,
0.001674111932516098,
0.011861903592944145,
0.19847524166107178,
0.19970917701721191,
0.3413086533546448,
-0.035260967910289764,
0.29072633385658264,
-0.2670716941356659,
-0.27098798751831055,
0.2600764036178589,
0.008650362491607666,
0.35167551040649414,
0.05551544576883316,
0.09452014416456223,
0.8308190703392029,
0.27242445945739746,
-0.06893350183963776,
0.3318046033382416,
0.563816249370575,
-0.22771893441677094,
0.05730919539928436,
-0.011269096285104752,
-0.06337003409862518,
-0.2486259639263153,
0.19277212023735046,
-0.30672699213027954,
0.30945417284965515,
-0.02148234099149704,
0.13213327527046204,
-0.16402950882911682,
-0.09691453725099564,
-0.056674446910619736,
-0.36996176838874817,
0.08882901817560196,
0.16524654626846313,
0.11012591421604156,
0.21409691870212555,
0.13791541755199432,
0.2627287209033966,
-0.011160725727677345,
0.02267489768564701,
-0.6933621168136597,
0.20877401530742645,
-0.14176055788993835,
-0.15219686925411224,
-0.010932181030511856,
0.10963800549507141,
0.13339093327522278,
0.14382770657539368,
-0.13231301307678223,
0.12147536873817444,
0.09903726726770401,
-0.046994566917419434,
0.1362227201461792,
-0.025001585483551025,
0.26590022444725037,
-0.18806730210781097,
0.43380892276763916,
0.05866854637861252,
0.1608508676290512,
-0.1543041467666626,
0.04690363630652428,
-0.2138386219739914,
0.07204657793045044,
0.2993033230304718,
0.08469521999359131,
0.03472008556127548,
0.16727246344089508,
0.150338277220726,
0.15188252925872803,
-0.1656809151172638,
0.40921348333358765,
0.08061911165714264,
0.11142279207706451,
-0.0011593494564294815,
0.026663534343242645,
-0.40508878231048584,
0.41835060715675354,
0.1737961322069168,
0.14272698760032654,
0.2619018852710724,
-0.4456166625022888,
-0.2904943823814392,
0.22474904358386993,
-0.057462241500616074,
0.23431351780891418,
0.08118831366300583,
0.13385677337646484,
0.0289965458214283,
0.15939542651176453,
0.03791035711765289,
0.09362122416496277,
0.058901261538267136,
0.5227378606796265,
0.01151285320520401,
0.012551858089864254,
-0.1341617852449417,
-0.21342733502388,
0.08087120950222015,
0.03129880875349045,
0.41698145866394043,
-0.19021770358085632,
-0.03903060406446457,
-0.0026982463896274567,
-0.5402336716651917,
-0.30531904101371765,
0.2616877555847168,
-0.488203763961792,
-0.28833070397377014,
-0.2413622885942459,
0.28014349937438965,
-0.06628771871328354,
-0.013452582061290741,
0.06859619915485382,
0.19894102215766907,
0.10880272090435028,
-0.14944228529930115,
-0.12989068031311035,
-0.2826365530490875,
-0.352150559425354,
-0.01321652252227068,
0.17804600298404694,
0.045792143791913986,
0.25742247700691223,
0.047495037317276,
-0.12937630712985992,
-0.2252621352672577,
-0.1390884965658188,
0.1931750625371933,
0.019397158175706863,
0.13235290348529816,
0.08083844184875488,
0.6441946029663086,
-0.09161815792322159,
-0.15892672538757324,
0.31236982345581055,
-0.1345026195049286,
-0.11235037446022034,
0.20584478974342346,
0.0021172971464693546,
0.18940797448158264,
0.02384718880057335,
-0.03552140295505524,
-0.12397142499685287,
-0.4503409266471863,
0.1686743199825287,
0.16548138856887817,
-0.020252667367458344,
0.3478740155696869,
0.128271222114563,
0.07828840613365173,
0.17750482261180878,
0.13813571631908417,
-0.1909155547618866,
-0.05106654763221741,
0.2469128519296646,
-0.3309718072414398,
-0.305912584066391,
-0.07152138650417328,
-0.160158172249794,
0.22426040470600128,
0.40275126695632935,
-0.6984962821006775,
0.10614956170320511,
-0.12761758267879486,
-0.21900251507759094,
0.04909190163016319,
0.03725367784500122,
0.3683997392654419,
-0.1916540116071701,
-0.019381936639547348,
-0.002128634601831436,
-0.06953514367341995,
-0.033537857234478,
-0.21129044890403748,
0.6732004284858704,
0.18784326314926147,
0.3525751531124115,
0.2811793386936188,
0.9196680188179016,
0.21025870740413666,
0.4203179180622101,
0.45925670862197876,
0.18456444144248962,
0.21182706952095032,
-0.13920840620994568,
-0.21654020249843597,
0.054272133857011795,
-0.29584982991218567,
-0.14695680141448975,
0.19300782680511475,
0.0539986826479435,
-0.5334852933883667,
-0.33630701899528503,
-0.22295579314231873,
-0.1735776960849762,
-0.331717312335968,
0.32251402735710144,
-0.007296524941921234,
0.34786269068717957,
-0.05778591334819794,
-0.03293945640325546,
-0.27377474308013916,
-0.45345112681388855,
0.024415716528892517,
0.052549172192811966,
0.03614351153373718,
0.1982191950082779,
-0.07064012438058853,
0.09258279204368591,
-0.7637267112731934,
0.052149448543787,
0.0224502831697464,
0.25257083773612976,
-0.23398156464099884,
-0.03759799525141716,
-0.053366854786872864,
-0.001964423805475235,
0.63824462890625,
-0.1221548542380333,
-0.10831284523010254,
-0.0036733224987983704,
-0.07280052453279495,
-0.6327508091926575,
-0.003490529954433441,
-0.014183763414621353,
0.01974331960082054,
0.22992858290672302,
-0.009248875081539154,
-0.4394516348838806,
-0.017309723421931267,
0.14759887754917145,
0.27546703815460205,
-0.3025963604450226,
-0.0935148298740387,
-0.36616480350494385,
-0.11953166127204895,
-0.5057440400123596,
-0.12866374850273132,
0.06480970233678818,
0.22246067225933075,
0.3845999836921692,
0.3160494267940521,
0.09972113370895386,
0.08570238947868347,
-0.012086868286132812,
-0.06987595558166504,
0.2582470774650574,
0.1297813206911087,
-0.13680191338062286,
0.2899041771888733,
0.08412577956914902,
-0.24117854237556458,
0.35282233357429504,
0.05038364976644516,
-0.2506103813648224,
0.0791517123579979,
0.14902576804161072,
0.11584750562906265,
0.2734085023403168,
0.09892817586660385,
-0.12371591478586197,
0.16670085489749908,
-0.05851386487483978,
-0.42192041873931885,
0.23555248975753784,
0.2815839350223541,
-0.1854797899723053,
-0.3053143620491028,
-0.5116243362426758,
0.6158607602119446,
0.05597123131155968,
0.030451230704784393,
0.20863190293312073,
0.022400081157684326,
-0.4127809703350067,
0.4413423538208008,
0.26830145716667175,
0.9731239080429077,
-0.20404265820980072,
0.42499840259552,
0.23177841305732727,
0.13447527587413788,
0.5237070322036743,
-0.5167374610900879,
0.38315480947494507,
-0.30562257766723633,
0.1268450915813446,
-0.013337457552552223,
-0.10856378078460693,
0.03648291900753975,
0.11471918225288391,
0.06540742516517639,
0.32536619901657104,
0.20793665945529938,
0.09614451229572296,
-0.07739321142435074,
0.4588257074356079,
-0.08006725460290909,
-0.34207242727279663,
-0.1955791860818863,
0.12200649082660675,
-0.3448764681816101,
0.3898960053920746,
-0.36450663208961487,
0.021709274500608444,
0.0776723325252533,
-0.11058712750673294,
-0.49160176515579224,
0.0795154795050621,
-0.3250877261161804,
0.4055931568145752,
-0.3284805417060852,
-0.1371370255947113,
-0.1421705186367035,
0.31596195697784424,
0.05925741046667099,
0.19339734315872192,
-0.24984028935432434,
0.2242746502161026,
-0.39769473671913147,
-0.23567716777324677,
0.020829053595662117,
0.2337530106306076,
0.40875232219696045,
-0.2069118320941925,
-0.243836909532547,
0.09800373017787933,
-0.19044533371925354,
-0.3769422769546509,
-0.16764593124389648,
-0.10644671320915222,
0.08835520595312119,
-0.014652281999588013,
-0.31727856397628784,
-0.009052939713001251,
-0.1413647085428238,
0.056081611663103104,
0.08245298266410828,
0.013701174408197403,
-0.11961647868156433,
-0.09041214734315872,
0.030632909387350082,
-0.16258737444877625,
0.05373422056436539,
0.4452785551548004,
0.19932737946510315,
-0.17376498878002167,
0.6748772859573364,
0.3185998499393463,
-0.2701171040534973,
-0.05884362757205963,
-0.1454923152923584,
0.026524139568209648,
-0.39161595702171326,
0.08036016672849655,
-0.12232116609811783,
-0.032689161598682404,
-0.2329391986131668,
-0.01587970182299614,
0.2639753818511963,
-0.1289011538028717,
0.2503608763217926,
-0.39733076095581055,
-0.4390517771244049,
0.3276475965976715,
-0.1340385377407074,
0.18060101568698883,
0.2681419849395752,
-0.3036368787288666,
0.1483331173658371,
-0.0007179845124483109,
-0.17669671773910522,
-0.033686116337776184,
-0.283253937959671,
0.1993027776479721,
0.3011005222797394,
-0.15525776147842407,
0.07127580046653748,
0.13447356224060059,
0.028118854388594627,
0.14065083861351013,
-0.16713087260723114,
-0.1209416314959526,
-0.021526910364627838,
0.1702217310667038,
-0.021184466779232025,
-0.15751177072525024,
0.007988677360117435,
-0.4215223789215088,
0.13371941447257996,
-0.31005021929740906,
0.09497369825839996,
0.09408164769411087,
-0.02313108742237091,
0.30494579672813416,
0.1652727574110031,
0.058950185775756836,
-0.09553505480289459,
0.4590952694416046,
0.004906855523586273,
0.4881097078323364,
0.19494350254535675,
0.14602717757225037,
0.21745309233665466,
0.009514011442661285,
-0.5299926996231079,
0.05959673225879669,
-0.10480701923370361,
-0.035454168915748596,
0.1295291781425476,
-0.1712081879377365,
0.015818580985069275,
0.18677693605422974,
-0.040361352264881134,
0.10278274118900299,
-0.11737854033708572,
-0.04468442499637604,
0.20297321677207947,
0.1301266849040985,
-0.12902075052261353,
0.12196141481399536,
0.343000203371048,
-0.03814176097512245,
-0.2553498446941376,
0.15176741778850555,
0.11667348444461823,
-0.02186112478375435,
-0.04639677703380585,
0.13871249556541443,
0.34685662388801575,
-0.08004260063171387,
0.08237442374229431,
-0.1870739758014679,
0.024710487574338913,
-0.04291253164410591,
-0.13443057239055634,
0.2051127701997757,
0.18372513353824615,
0.40192633867263794,
0.0027957558631896973,
0.14150027930736542,
-0.1637841761112213,
0.07540342211723328,
-0.1910856068134308,
-0.32893991470336914,
0.02031589485704899,
0.5687054395675659,
-0.046990618109703064,
0.28436920046806335,
-0.144627183675766,
0.1780044436454773,
0.3612074553966522,
-0.13690350949764252,
-0.3671024739742279,
0.23132185637950897,
-0.1447918713092804,
0.06172618642449379,
-0.05804826319217682,
-0.23646730184555054,
-0.20972779393196106,
0.2906801998615265,
0.052851397544145584,
-0.4837183952331543,
0.08078332990407944,
0.19289630651474,
-0.17192019522190094,
-0.29633447527885437,
0.42014452815055847,
0.1663336455821991,
-0.0192703977227211,
-0.383196085691452,
0.09907375276088715,
0.14486479759216309,
-0.044731900095939636,
-0.08720068633556366,
0.3097786605358124,
0.4060986638069153,
0.3071938455104828,
-0.27043646574020386,
0.009355105459690094,
-0.005945323035120964,
-0.006355283781886101,
-0.24959935247898102,
0.25597918033599854,
0.40651142597198486,
0.3059679865837097,
0.18039725720882416,
0.05419093370437622,
-0.10253879427909851,
-0.3101824223995209,
0.35936880111694336,
-0.06288786232471466,
-0.12125623226165771,
-0.019211560487747192,
-0.27703437209129333,
0.03510185331106186,
-0.22773897647857666,
0.04942267760634422,
-0.5648447275161743,
0.1031806692481041,
0.20874781906604767,
-0.13252140581607819,
0.11679667979478836,
-0.036396369338035583,
0.0014874450862407684,
-0.16575410962104797,
0.5369604825973511,
0.25114864110946655,
0.11229163408279419,
-0.4637849032878876,
-0.33754783868789673,
-0.5109270215034485,
0.07808126509189606,
-0.36463645100593567,
0.06499870121479034,
-0.05532524734735489,
0.3731815218925476,
-0.17176786065101624,
0.15667982399463654,
-0.26685911417007446,
0.10987316817045212,
-0.11338100582361221,
0.2389039695262909,
-0.3001951277256012,
-0.2587814927101135,
0.04700515791773796,
0.07872367650270462,
-0.08048482239246368,
-0.26089024543762207,
0.08748596161603928,
-0.02748851850628853,
-0.05485664680600166,
-0.22844596207141876,
-0.20256660878658295,
0.08811402320861816,
0.2646363079547882,
0.26334965229034424,
0.1222851350903511,
0.5243085622787476,
0.07498633116483688,
-0.3782138228416443,
-0.297666996717453,
-0.16730602085590363,
0.04359009861946106,
0.006588831543922424,
-0.08003614842891693,
0.5198348760604858,
-0.266716331243515,
0.15822340548038483,
-0.43827447295188904,
0.4756547212600708,
-0.17140747606754303,
0.10684487968683243,
-0.3627740442752838,
-0.15646694600582123,
0.034559354186058044,
0.2266114354133606,
0.20801502466201782,
0.18166330456733704,
-0.09175530076026917,
0.0773358941078186,
-0.25390738248825073,
-0.13095776736736298,
0.33519819378852844,
-0.5924607515335083,
-0.32918980717658997,
0.05241319164633751,
-0.05836710333824158,
-0.015294373035430908,
-0.11526044458150864,
-0.527149498462677,
0.03435244411230087,
0.1688707321882248,
0.0881754457950592,
-0.17088468372821808,
-0.04184355214238167,
-0.06303313374519348,
-0.022889958694577217,
-0.08436105400323868,
0.07172201573848724,
-0.12094821780920029,
-0.37930595874786377,
0.1373227834701538,
-0.2624128758907318
] |
https://github.com/huggingface/datasets/issues/278 | MemoryError when loading German Wikipedia | Hi @lhoestq
Wow, thanks so much, that's **really** incredible! I was considering looking at creating my own Beam Dataset, as per the doc you linked, but instead opted to process the data myself using `wikiextractor`. However, now that this is available, I'll definitely switch across and use it.
Thanks so much for the incredible work, this really helps out our team considerably!
Have a great (and well-deserved ;) weekend ahead!
P.S. I'm not sure if I should close the issue here - if so I'm happy to do so. | Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :)
I'm trying to download the German Wikipedia dataset as follows:
```
wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train")
```
However, when I do so, I get the following error:
```
Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')`
```
So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned.
This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset?
My nlp version is 0.2.1.
Thank you! | 89 | MemoryError when loading German Wikipedia
Hi, first off let me say thank you for all the awesome work you're doing at Hugging Face across all your projects (NLP, Transformers, Tokenizers) - they're all amazing contributions to us working with NLP models :)
I'm trying to download the German Wikipedia dataset as follows:
```
wiki = nlp.load_dataset("wikipedia", "20200501.de", split="train")
```
However, when I do so, I get the following error:
```
Downloading and preparing dataset wikipedia/20200501.de (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/ubuntu/.cache/huggingface/datasets/wikipedia/20200501.de/1.0.0...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 433, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/ubuntu/anaconda3/envs/albert/lib/python3.7/site-packages/nlp/builder.py", line 824, in _download_and_prepare
"\n\t`{}`".format(usage_example)
nlp.builder.MissingBeamOptions: Trying to generate a dataset using Apache Beam, yet no Beam Runner or PipelineOptions() has been provided in `load_dataset` or in the builder arguments. For big datasets it has to run on large-scale data processing tools like Dataflow, Spark, etc. More information about Apache Beam runners at https://beam.apache.org/documentation/runners/capability-matrix/
If you really want to run it locally because you feel like the Dataset is small enough, you can use the local beam runner called `DirectRunner` (you may run out of memory).
Example of usage:
`load_dataset('wikipedia', '20200501.de', beam_runner='DirectRunner')`
```
So, following on from the example usage at the bottom, I tried specifying `beam_runner='DirectRunner`, however when I do this after about 20 min after the data has all downloaded, I get a `MemoryError` as warned.
This isn't an issue for the English or French Wikipedia datasets (I've tried both), as neither seem to require that `beam_runner` be specified. Can you please clarify why this is an issue for the German dataset?
My nlp version is 0.2.1.
Thank you!
Hi @lhoestq
Wow, thanks so much, that's **really** incredible! I was considering looking at creating my own Beam Dataset, as per the doc you linked, but instead opted to process the data myself using `wikiextractor`. However, now that this is available, I'll definitely switch across and use it.
Thanks so much for the incredible work, this really helps out our team considerably!
Have a great (and well-deserved ;) weekend ahead!
P.S. I'm not sure if I should close the issue here - if so I'm happy to do so. | [
-0.047934528440237045,
0.12618955969810486,
0.018239092081785202,
0.6689178347587585,
0.24453303217887878,
0.15575072169303894,
0.004935301840305328,
0.20835675299167633,
0.3758643865585327,
-0.05147702991962433,
0.2673629820346832,
-0.33128827810287476,
-0.1734626293182373,
-0.33418023586273193,
0.22966912388801575,
-0.48612746596336365,
0.09306766092777252,
0.05842774733901024,
-0.09685809910297394,
0.021348997950553894,
-0.22103914618492126,
0.28426164388656616,
-0.2860867977142334,
-0.12967438995838165,
-0.24149928987026215,
0.06827670335769653,
-0.06069409102201462,
0.054007478058338165,
-0.1613471955060959,
-0.4543802738189697,
0.109389528632164,
-0.257276713848114,
0.11816728115081787,
0.1811022311449051,
-0.00012172195420134813,
0.040036678314208984,
0.4013994336128235,
-0.17075581848621368,
-0.44416365027427673,
0.03925636410713196,
-0.04547351971268654,
-0.34079402685165405,
0.03673425316810608,
-0.26067155599594116,
0.06098276376724243,
-0.10650114715099335,
0.32536613941192627,
-0.08283939957618713,
0.3636317849159241,
0.17929716408252716,
0.18307889997959137,
0.05839864909648895,
0.259697824716568,
-0.0829993188381195,
0.5757555961608887,
0.06039423495531082,
0.051787495613098145,
0.12043458223342896,
-0.3371914029121399,
-0.3669275641441345,
-0.266693115234375,
0.2971107065677643,
0.016859764233231544,
0.1016102135181427,
0.34289076924324036,
-0.11834924668073654,
0.01459447667002678,
-0.2151486873626709,
0.2146664559841156,
-0.015584371984004974,
0.6984873414039612,
-0.2225390374660492,
0.05440351366996765,
-0.2987266778945923,
-0.08197586983442307,
0.13722655177116394,
0.3699687719345093,
0.3768192231655121,
-0.5374549031257629,
-0.17521069943904877,
-0.18167966604232788,
-0.3489992022514343,
-0.16345623135566711,
0.3382710814476013,
0.05806826055049896,
0.24271051585674286,
-0.04609600827097893,
0.16560098528862,
0.36606115102767944,
-0.047463953495025635,
-0.27681395411491394,
-0.11192168295383453,
-0.012180626392364502,
0.4462253451347351,
-0.07023440301418304,
0.06821946054697037,
-0.07997240871191025,
-0.061932243406772614,
0.23511630296707153,
-0.2792298197746277,
-0.09406502544879913,
-0.06149452179670334,
0.25387123227119446,
0.07732438296079636,
0.2765715420246124,
0.45703837275505066,
-0.13490810990333557,
-0.19879396259784698,
0.1601511836051941,
0.18069620430469513,
0.018549729138612747,
-0.16259834170341492,
-0.03485201299190521,
-0.1633647382259369,
-0.07738503813743591,
-0.025875739753246307,
-0.1039629578590393,
-0.04693898931145668,
0.0200341884046793,
0.13095682859420776,
-0.09636442363262177,
-0.13396574556827545,
-0.032170042395591736,
0.41890662908554077,
-0.13972340524196625,
0.33823078870773315,
0.29564762115478516,
0.06871721148490906,
-0.38477811217308044,
-0.29508519172668457,
-0.1493525505065918,
0.15822122991085052,
-0.5230260491371155,
0.12379574030637741,
0.26629436016082764,
0.27717408537864685,
0.361306369304657,
-0.12290928512811661,
-0.26837682723999023,
0.0498335137963295,
0.2657952904701233,
-0.18319730460643768,
-0.03237520903348923,
0.21564345061779022,
0.1484367996454239,
0.28868916630744934,
0.1391695737838745,
-0.22817538678646088,
0.00019481033086776733,
0.061920080333948135,
-0.1770702600479126,
-0.19407308101654053,
0.06925884634256363,
0.017681347206234932,
-0.15710219740867615,
0.15428666770458221,
-0.40317127108573914,
0.2367207109928131,
0.2888610064983368,
-0.21285748481750488,
-0.09760471433401108,
-0.042263127863407135,
-0.23210251331329346,
-0.26150768995285034,
0.2098640352487564,
0.5494707226753235,
-0.09142859280109406,
-0.268973171710968,
-0.07590153813362122,
-0.0987916886806488,
0.40902814269065857,
0.23754896223545074,
-0.10521627217531204,
0.29600393772125244,
-0.23157146573066711,
0.09871366620063782,
0.34163209795951843,
-0.17392194271087646,
-0.3319515287876129,
0.13097688555717468,
0.11024165153503418,
0.1638558954000473,
0.056258171796798706,
0.001674111932516098,
0.011861903592944145,
0.19847524166107178,
0.19970917701721191,
0.3413086533546448,
-0.035260967910289764,
0.29072633385658264,
-0.2670716941356659,
-0.27098798751831055,
0.2600764036178589,
0.008650362491607666,
0.35167551040649414,
0.05551544576883316,
0.09452014416456223,
0.8308190703392029,
0.27242445945739746,
-0.06893350183963776,
0.3318046033382416,
0.563816249370575,
-0.22771893441677094,
0.05730919539928436,
-0.011269096285104752,
-0.06337003409862518,
-0.2486259639263153,
0.19277212023735046,
-0.30672699213027954,
0.30945417284965515,
-0.02148234099149704,
0.13213327527046204,
-0.16402950882911682,
-0.09691453725099564,
-0.056674446910619736,
-0.36996176838874817,
0.08882901817560196,
0.16524654626846313,
0.11012591421604156,
0.21409691870212555,
0.13791541755199432,
0.2627287209033966,
-0.011160725727677345,
0.02267489768564701,
-0.6933621168136597,
0.20877401530742645,
-0.14176055788993835,
-0.15219686925411224,
-0.010932181030511856,
0.10963800549507141,
0.13339093327522278,
0.14382770657539368,
-0.13231301307678223,
0.12147536873817444,
0.09903726726770401,
-0.046994566917419434,
0.1362227201461792,
-0.025001585483551025,
0.26590022444725037,
-0.18806730210781097,
0.43380892276763916,
0.05866854637861252,
0.1608508676290512,
-0.1543041467666626,
0.04690363630652428,
-0.2138386219739914,
0.07204657793045044,
0.2993033230304718,
0.08469521999359131,
0.03472008556127548,
0.16727246344089508,
0.150338277220726,
0.15188252925872803,
-0.1656809151172638,
0.40921348333358765,
0.08061911165714264,
0.11142279207706451,
-0.0011593494564294815,
0.026663534343242645,
-0.40508878231048584,
0.41835060715675354,
0.1737961322069168,
0.14272698760032654,
0.2619018852710724,
-0.4456166625022888,
-0.2904943823814392,
0.22474904358386993,
-0.057462241500616074,
0.23431351780891418,
0.08118831366300583,
0.13385677337646484,
0.0289965458214283,
0.15939542651176453,
0.03791035711765289,
0.09362122416496277,
0.058901261538267136,
0.5227378606796265,
0.01151285320520401,
0.012551858089864254,
-0.1341617852449417,
-0.21342733502388,
0.08087120950222015,
0.03129880875349045,
0.41698145866394043,
-0.19021770358085632,
-0.03903060406446457,
-0.0026982463896274567,
-0.5402336716651917,
-0.30531904101371765,
0.2616877555847168,
-0.488203763961792,
-0.28833070397377014,
-0.2413622885942459,
0.28014349937438965,
-0.06628771871328354,
-0.013452582061290741,
0.06859619915485382,
0.19894102215766907,
0.10880272090435028,
-0.14944228529930115,
-0.12989068031311035,
-0.2826365530490875,
-0.352150559425354,
-0.01321652252227068,
0.17804600298404694,
0.045792143791913986,
0.25742247700691223,
0.047495037317276,
-0.12937630712985992,
-0.2252621352672577,
-0.1390884965658188,
0.1931750625371933,
0.019397158175706863,
0.13235290348529816,
0.08083844184875488,
0.6441946029663086,
-0.09161815792322159,
-0.15892672538757324,
0.31236982345581055,
-0.1345026195049286,
-0.11235037446022034,
0.20584478974342346,
0.0021172971464693546,
0.18940797448158264,
0.02384718880057335,
-0.03552140295505524,
-0.12397142499685287,
-0.4503409266471863,
0.1686743199825287,
0.16548138856887817,
-0.020252667367458344,
0.3478740155696869,
0.128271222114563,
0.07828840613365173,
0.17750482261180878,
0.13813571631908417,
-0.1909155547618866,
-0.05106654763221741,
0.2469128519296646,
-0.3309718072414398,
-0.305912584066391,
-0.07152138650417328,
-0.160158172249794,
0.22426040470600128,
0.40275126695632935,
-0.6984962821006775,
0.10614956170320511,
-0.12761758267879486,
-0.21900251507759094,
0.04909190163016319,
0.03725367784500122,
0.3683997392654419,
-0.1916540116071701,
-0.019381936639547348,
-0.002128634601831436,
-0.06953514367341995,
-0.033537857234478,
-0.21129044890403748,
0.6732004284858704,
0.18784326314926147,
0.3525751531124115,
0.2811793386936188,
0.9196680188179016,
0.21025870740413666,
0.4203179180622101,
0.45925670862197876,
0.18456444144248962,
0.21182706952095032,
-0.13920840620994568,
-0.21654020249843597,
0.054272133857011795,
-0.29584982991218567,
-0.14695680141448975,
0.19300782680511475,
0.0539986826479435,
-0.5334852933883667,
-0.33630701899528503,
-0.22295579314231873,
-0.1735776960849762,
-0.331717312335968,
0.32251402735710144,
-0.007296524941921234,
0.34786269068717957,
-0.05778591334819794,
-0.03293945640325546,
-0.27377474308013916,
-0.45345112681388855,
0.024415716528892517,
0.052549172192811966,
0.03614351153373718,
0.1982191950082779,
-0.07064012438058853,
0.09258279204368591,
-0.7637267112731934,
0.052149448543787,
0.0224502831697464,
0.25257083773612976,
-0.23398156464099884,
-0.03759799525141716,
-0.053366854786872864,
-0.001964423805475235,
0.63824462890625,
-0.1221548542380333,
-0.10831284523010254,
-0.0036733224987983704,
-0.07280052453279495,
-0.6327508091926575,
-0.003490529954433441,
-0.014183763414621353,
0.01974331960082054,
0.22992858290672302,
-0.009248875081539154,
-0.4394516348838806,
-0.017309723421931267,
0.14759887754917145,
0.27546703815460205,
-0.3025963604450226,
-0.0935148298740387,
-0.36616480350494385,
-0.11953166127204895,
-0.5057440400123596,
-0.12866374850273132,
0.06480970233678818,
0.22246067225933075,
0.3845999836921692,
0.3160494267940521,
0.09972113370895386,
0.08570238947868347,
-0.012086868286132812,
-0.06987595558166504,
0.2582470774650574,
0.1297813206911087,
-0.13680191338062286,
0.2899041771888733,
0.08412577956914902,
-0.24117854237556458,
0.35282233357429504,
0.05038364976644516,
-0.2506103813648224,
0.0791517123579979,
0.14902576804161072,
0.11584750562906265,
0.2734085023403168,
0.09892817586660385,
-0.12371591478586197,
0.16670085489749908,
-0.05851386487483978,
-0.42192041873931885,
0.23555248975753784,
0.2815839350223541,
-0.1854797899723053,
-0.3053143620491028,
-0.5116243362426758,
0.6158607602119446,
0.05597123131155968,
0.030451230704784393,
0.20863190293312073,
0.022400081157684326,
-0.4127809703350067,
0.4413423538208008,
0.26830145716667175,
0.9731239080429077,
-0.20404265820980072,
0.42499840259552,
0.23177841305732727,
0.13447527587413788,
0.5237070322036743,
-0.5167374610900879,
0.38315480947494507,
-0.30562257766723633,
0.1268450915813446,
-0.013337457552552223,
-0.10856378078460693,
0.03648291900753975,
0.11471918225288391,
0.06540742516517639,
0.32536619901657104,
0.20793665945529938,
0.09614451229572296,
-0.07739321142435074,
0.4588257074356079,
-0.08006725460290909,
-0.34207242727279663,
-0.1955791860818863,
0.12200649082660675,
-0.3448764681816101,
0.3898960053920746,
-0.36450663208961487,
0.021709274500608444,
0.0776723325252533,
-0.11058712750673294,
-0.49160176515579224,
0.0795154795050621,
-0.3250877261161804,
0.4055931568145752,
-0.3284805417060852,
-0.1371370255947113,
-0.1421705186367035,
0.31596195697784424,
0.05925741046667099,
0.19339734315872192,
-0.24984028935432434,
0.2242746502161026,
-0.39769473671913147,
-0.23567716777324677,
0.020829053595662117,
0.2337530106306076,
0.40875232219696045,
-0.2069118320941925,
-0.243836909532547,
0.09800373017787933,
-0.19044533371925354,
-0.3769422769546509,
-0.16764593124389648,
-0.10644671320915222,
0.08835520595312119,
-0.014652281999588013,
-0.31727856397628784,
-0.009052939713001251,
-0.1413647085428238,
0.056081611663103104,
0.08245298266410828,
0.013701174408197403,
-0.11961647868156433,
-0.09041214734315872,
0.030632909387350082,
-0.16258737444877625,
0.05373422056436539,
0.4452785551548004,
0.19932737946510315,
-0.17376498878002167,
0.6748772859573364,
0.3185998499393463,
-0.2701171040534973,
-0.05884362757205963,
-0.1454923152923584,
0.026524139568209648,
-0.39161595702171326,
0.08036016672849655,
-0.12232116609811783,
-0.032689161598682404,
-0.2329391986131668,
-0.01587970182299614,
0.2639753818511963,
-0.1289011538028717,
0.2503608763217926,
-0.39733076095581055,
-0.4390517771244049,
0.3276475965976715,
-0.1340385377407074,
0.18060101568698883,
0.2681419849395752,
-0.3036368787288666,
0.1483331173658371,
-0.0007179845124483109,
-0.17669671773910522,
-0.033686116337776184,
-0.283253937959671,
0.1993027776479721,
0.3011005222797394,
-0.15525776147842407,
0.07127580046653748,
0.13447356224060059,
0.028118854388594627,
0.14065083861351013,
-0.16713087260723114,
-0.1209416314959526,
-0.021526910364627838,
0.1702217310667038,
-0.021184466779232025,
-0.15751177072525024,
0.007988677360117435,
-0.4215223789215088,
0.13371941447257996,
-0.31005021929740906,
0.09497369825839996,
0.09408164769411087,
-0.02313108742237091,
0.30494579672813416,
0.1652727574110031,
0.058950185775756836,
-0.09553505480289459,
0.4590952694416046,
0.004906855523586273,
0.4881097078323364,
0.19494350254535675,
0.14602717757225037,
0.21745309233665466,
0.009514011442661285,
-0.5299926996231079,
0.05959673225879669,
-0.10480701923370361,
-0.035454168915748596,
0.1295291781425476,
-0.1712081879377365,
0.015818580985069275,
0.18677693605422974,
-0.040361352264881134,
0.10278274118900299,
-0.11737854033708572,
-0.04468442499637604,
0.20297321677207947,
0.1301266849040985,
-0.12902075052261353,
0.12196141481399536,
0.343000203371048,
-0.03814176097512245,
-0.2553498446941376,
0.15176741778850555,
0.11667348444461823,
-0.02186112478375435,
-0.04639677703380585,
0.13871249556541443,
0.34685662388801575,
-0.08004260063171387,
0.08237442374229431,
-0.1870739758014679,
0.024710487574338913,
-0.04291253164410591,
-0.13443057239055634,
0.2051127701997757,
0.18372513353824615,
0.40192633867263794,
0.0027957558631896973,
0.14150027930736542,
-0.1637841761112213,
0.07540342211723328,
-0.1910856068134308,
-0.32893991470336914,
0.02031589485704899,
0.5687054395675659,
-0.046990618109703064,
0.28436920046806335,
-0.144627183675766,
0.1780044436454773,
0.3612074553966522,
-0.13690350949764252,
-0.3671024739742279,
0.23132185637950897,
-0.1447918713092804,
0.06172618642449379,
-0.05804826319217682,
-0.23646730184555054,
-0.20972779393196106,
0.2906801998615265,
0.052851397544145584,
-0.4837183952331543,
0.08078332990407944,
0.19289630651474,
-0.17192019522190094,
-0.29633447527885437,
0.42014452815055847,
0.1663336455821991,
-0.0192703977227211,
-0.383196085691452,
0.09907375276088715,
0.14486479759216309,
-0.044731900095939636,
-0.08720068633556366,
0.3097786605358124,
0.4060986638069153,
0.3071938455104828,
-0.27043646574020386,
0.009355105459690094,
-0.005945323035120964,
-0.006355283781886101,
-0.24959935247898102,
0.25597918033599854,
0.40651142597198486,
0.3059679865837097,
0.18039725720882416,
0.05419093370437622,
-0.10253879427909851,
-0.3101824223995209,
0.35936880111694336,
-0.06288786232471466,
-0.12125623226165771,
-0.019211560487747192,
-0.27703437209129333,
0.03510185331106186,
-0.22773897647857666,
0.04942267760634422,
-0.5648447275161743,
0.1031806692481041,
0.20874781906604767,
-0.13252140581607819,
0.11679667979478836,
-0.036396369338035583,
0.0014874450862407684,
-0.16575410962104797,
0.5369604825973511,
0.25114864110946655,
0.11229163408279419,
-0.4637849032878876,
-0.33754783868789673,
-0.5109270215034485,
0.07808126509189606,
-0.36463645100593567,
0.06499870121479034,
-0.05532524734735489,
0.3731815218925476,
-0.17176786065101624,
0.15667982399463654,
-0.26685911417007446,
0.10987316817045212,
-0.11338100582361221,
0.2389039695262909,
-0.3001951277256012,
-0.2587814927101135,
0.04700515791773796,
0.07872367650270462,
-0.08048482239246368,
-0.26089024543762207,
0.08748596161603928,
-0.02748851850628853,
-0.05485664680600166,
-0.22844596207141876,
-0.20256660878658295,
0.08811402320861816,
0.2646363079547882,
0.26334965229034424,
0.1222851350903511,
0.5243085622787476,
0.07498633116483688,
-0.3782138228416443,
-0.297666996717453,
-0.16730602085590363,
0.04359009861946106,
0.006588831543922424,
-0.08003614842891693,
0.5198348760604858,
-0.266716331243515,
0.15822340548038483,
-0.43827447295188904,
0.4756547212600708,
-0.17140747606754303,
0.10684487968683243,
-0.3627740442752838,
-0.15646694600582123,
0.034559354186058044,
0.2266114354133606,
0.20801502466201782,
0.18166330456733704,
-0.09175530076026917,
0.0773358941078186,
-0.25390738248825073,
-0.13095776736736298,
0.33519819378852844,
-0.5924607515335083,
-0.32918980717658997,
0.05241319164633751,
-0.05836710333824158,
-0.015294373035430908,
-0.11526044458150864,
-0.527149498462677,
0.03435244411230087,
0.1688707321882248,
0.0881754457950592,
-0.17088468372821808,
-0.04184355214238167,
-0.06303313374519348,
-0.022889958694577217,
-0.08436105400323868,
0.07172201573848724,
-0.12094821780920029,
-0.37930595874786377,
0.1373227834701538,
-0.2624128758907318
] |
https://github.com/huggingface/datasets/issues/277 | Empty samples in glue/qqp | We are only wrapping the original dataset.
Maybe try to ask on the GLUE mailing list or reach out to the original authors? | ```
qqp = nlp.load_dataset('glue', 'qqp')
print(qqp['train'][310121])
print(qqp['train'][362225])
```
```
{'question1': 'How can I create an Android app?', 'question2': '', 'label': 0, 'idx': 310137}
{'question1': 'How can I develop android app?', 'question2': '', 'label': 0, 'idx': 362246}
```
Notice that question 2 is empty string.
BTW, I have checked and these two are the only naughty ones in all splits of qqp. | 23 | Empty samples in glue/qqp
```
qqp = nlp.load_dataset('glue', 'qqp')
print(qqp['train'][310121])
print(qqp['train'][362225])
```
```
{'question1': 'How can I create an Android app?', 'question2': '', 'label': 0, 'idx': 310137}
{'question1': 'How can I develop android app?', 'question2': '', 'label': 0, 'idx': 362246}
```
Notice that question 2 is empty string.
BTW, I have checked and these two are the only naughty ones in all splits of qqp.
We are only wrapping the original dataset.
Maybe try to ask on the GLUE mailing list or reach out to the original authors? | [
0.39442890882492065,
-0.22759513556957245,
-0.13336420059204102,
0.17218735814094543,
-0.009044170379638672,
-0.18093112111091614,
0.33997878432273865,
0.49809104204177856,
0.3016012907028198,
0.28761136531829834,
-0.162889301776886,
0.40133219957351685,
-0.05137418955564499,
0.04152408242225647,
0.12119469791650772,
-0.23212593793869019,
-0.14264360070228577,
0.4839450716972351,
-0.21105504035949707,
-0.04868168756365776,
-0.29003477096557617,
0.349772572517395,
-0.16072452068328857,
0.014570273458957672,
-0.2572483718395233,
-0.0267112385481596,
-0.4356915056705475,
0.12509512901306152,
-0.08387131989002228,
-0.11413653194904327,
-0.09536578506231308,
0.08822999894618988,
-0.33561971783638,
0.027513615787029266,
-0.00010767491767182946,
-0.19210712611675262,
0.2097814977169037,
-0.06671953201293945,
0.09793487191200256,
0.020877622067928314,
-0.18860650062561035,
-0.16017292439937592,
-0.019719602540135384,
-0.3324032127857208,
-0.10811129212379456,
0.06034480407834053,
0.031208643689751625,
0.009147338569164276,
0.3878844380378723,
0.2867925763130188,
0.23193912208080292,
0.18781360983848572,
-0.05334622412919998,
0.0011457473738119006,
0.5737708210945129,
-0.45231133699417114,
0.16638123989105225,
0.19409893453121185,
0.19045546650886536,
-0.07232900708913803,
0.20125582814216614,
0.28504616022109985,
-0.029191840440034866,
-0.1413356065750122,
-0.3117976486682892,
0.07360353320837021,
-0.05499621480703354,
-0.5886821746826172,
0.11005529761314392,
0.5429878830909729,
-0.13682302832603455,
0.005410950630903244,
-0.13683944940567017,
-0.288594126701355,
0.03081420063972473,
-0.12210476398468018,
-0.08536239713430405,
0.28918835520744324,
-0.10831774771213531,
0.1899966597557068,
-0.0918622761964798,
-0.18364828824996948,
0.09070399403572083,
0.11116746068000793,
-0.17851951718330383,
0.31623756885528564,
-0.02653561532497406,
0.09676557779312134,
-0.06904716789722443,
0.0069284215569496155,
-0.3025735318660736,
-0.043851666152477264,
-0.26336488127708435,
-0.05087684467434883,
-0.005477439612150192,
-0.12635847926139832,
0.02656765654683113,
-0.15448656678199768,
0.014672093093395233,
0.05552399531006813,
0.02359902486205101,
0.07898993790149689,
0.3578355312347412,
0.197365403175354,
0.060347333550453186,
0.1082855612039566,
0.4745411276817322,
0.20590002834796906,
-0.21360497176647186,
-0.10277114808559418,
-0.09282789379358292,
-0.11922631412744522,
-0.034480828791856766,
0.1058449074625969,
-0.1463368982076645,
-0.01814356818795204,
0.15276475250720978,
0.019874144345521927,
-0.15972764790058136,
-0.08522624522447586,
-0.2839927077293396,
0.09330122172832489,
-0.2367839515209198,
0.4214971661567688,
0.00202874094247818,
0.08887626230716705,
0.06640351563692093,
0.18706396222114563,
-0.1252356320619583,
-0.40684759616851807,
-0.30488842725753784,
0.1469249725341797,
-0.01834239810705185,
-0.21936435997486115,
0.05064614489674568,
0.09392374753952026,
0.3305934965610504,
0.004026339389383793,
-0.33676981925964355,
-0.06400617957115173,
0.1815015971660614,
-0.12820477783679962,
0.2904050052165985,
0.3732565939426422,
0.12242206931114197,
0.04528489708900452,
0.04634776711463928,
-0.17982801795005798,
-0.07649143785238266,
0.3051796853542328,
-0.22959131002426147,
-0.04941455274820328,
-0.24822618067264557,
0.2842930257320404,
-0.2753046154975891,
0.21394653618335724,
0.30104777216911316,
0.2676583230495453,
-0.002821505069732666,
0.03128163143992424,
0.24521887302398682,
-0.05840554088354111,
0.022456157952547073,
-0.37091732025146484,
0.17699232697486877,
0.14937934279441833,
-0.46843579411506653,
-0.28427714109420776,
-0.040239814668893814,
-0.0014728326350450516,
0.0031712576746940613,
0.21631550788879395,
-0.01849035918712616,
0.2671809494495392,
-0.3092721402645111,
0.562864363193512,
0.3224930465221405,
-0.3252393901348114,
-0.29901373386383057,
0.25519731640815735,
-0.2539641857147217,
-0.0020691081881523132,
0.07153726369142532,
-0.02734610252082348,
0.4085082709789276,
0.2399873435497284,
0.2770468592643738,
0.2180757224559784,
-0.007984055206179619,
-0.1678895503282547,
-0.38467979431152344,
-0.1650361567735672,
0.31450843811035156,
-0.052899882197380066,
-0.06598179042339325,
0.1639249324798584,
-0.1122356578707695,
-0.07194000482559204,
0.2754438519477844,
0.11924497038125992,
0.0017784438095986843,
0.11930818855762482,
0.3002593517303467,
-0.2346258908510208,
-0.016670161858201027,
-0.08932770788669586,
-0.2737099230289459,
0.08472933620214462,
-0.5236305594444275,
0.1633121520280838,
0.09106247127056122,
-0.1931528002023697,
-0.17542040348052979,
-0.09318072348833084,
0.07212736457586288,
-0.29613515734672546,
0.2624044418334961,
-0.09422169625759125,
0.13096755743026733,
-0.0039561837911605835,
-0.05918777361512184,
0.23724737763404846,
0.044119931757450104,
0.17584094405174255,
-0.27825063467025757,
0.19132433831691742,
0.11083215475082397,
0.001217762939631939,
0.13936667144298553,
0.6038909554481506,
0.17393861711025238,
0.02780301496386528,
0.33779051899909973,
0.38337841629981995,
-0.12474037706851959,
-0.0124138742685318,
-0.06200754642486572,
-0.46668702363967896,
-0.06704398989677429,
-0.20060810446739197,
-0.03976514935493469,
0.12234428524971008,
0.08252210170030594,
-0.06693851202726364,
-0.025950036942958832,
0.5820207595825195,
0.2762618958950043,
0.13075360655784607,
0.026603832840919495,
0.1524035930633545,
-0.39627766609191895,
-0.4450351893901825,
-0.16953110694885254,
-0.30776968598365784,
0.19282713532447815,
0.16173040866851807,
0.3633175492286682,
0.2564748525619507,
-0.170927494764328,
0.3790648579597473,
0.573965847492218,
-0.06926029920578003,
0.3076535165309906,
-0.22470226883888245,
-0.2381238043308258,
-0.17904260754585266,
0.07018949091434479,
0.370354026556015,
0.19973596930503845,
0.39890047907829285,
0.015567757189273834,
-0.08363962918519974,
0.08342583477497101,
-0.32140982151031494,
0.20730702579021454,
0.12395559251308441,
-0.22949106991291046,
0.14942045509815216,
0.36247172951698303,
-0.17017541825771332,
-0.20125910639762878,
0.5741876363754272,
0.024312449619174004,
-0.04941505938768387,
-0.19209007918834686,
-0.14922073483467102,
-0.32814112305641174,
-0.2790326774120331,
-0.011315240524709225,
-0.22926518321037292,
-0.2454901933670044,
-0.4493694603443146,
0.2525096833705902,
-0.3933393061161041,
-0.1659591943025589,
0.017213666811585426,
0.1310497522354126,
0.3514346480369568,
-0.13373778760433197,
0.0004681795835494995,
-0.012865275144577026,
-0.037069376558065414,
-0.32573992013931274,
0.22961249947547913,
-0.41755393147468567,
0.386543333530426,
0.3919178545475006,
-0.05755164474248886,
-0.07354480028152466,
0.17456671595573425,
-0.2808060646057129,
0.10780783742666245,
-0.3091467618942261,
0.43514543771743774,
0.1558915078639984,
0.08208702504634857,
-0.07273806631565094,
-0.07757292687892914,
0.10933215171098709,
-0.02596285566687584,
-0.1517687886953354,
-0.09083885699510574,
0.2362351417541504,
0.2325700968503952,
-0.3710659444332123,
-0.44330301880836487,
-0.2700105309486389,
-0.3494876027107239,
0.4619123935699463,
-0.25310760736465454,
0.34487205743789673,
0.002491316758096218,
-0.19018597900867462,
0.23879237473011017,
-0.321723997592926,
-0.28531700372695923,
-0.16619591414928436,
-0.14411857724189758,
0.22342227399349213,
-0.2578461170196533,
-0.2959875464439392,
0.05917055532336235,
-0.24949946999549866,
0.1469353586435318,
-0.18876925110816956,
-0.3285144567489624,
-0.3279092311859131,
0.07300647348165512,
0.058303553611040115,
0.3050024211406708,
-0.05552121251821518,
0.11581267416477203,
-0.23265111446380615,
-0.1398027241230011,
-0.18623533844947815,
0.004455931484699249,
0.43426012992858887,
0.001708613708615303,
0.004330500960350037,
-0.034656018018722534,
0.21830755472183228,
-0.04166867211461067,
0.2817903459072113,
0.12015926837921143,
0.4252012073993683,
0.1642446517944336,
-0.0652262419462204,
0.37860172986984253,
0.03592820093035698,
-0.04132833331823349,
0.17578522861003876,
0.21881228685379028,
0.060328833758831024,
0.3531431257724762,
0.09794909507036209,
-0.06091373413801193,
0.06411673873662949,
0.08180707693099976,
-0.4496341347694397,
-0.1471254527568817,
0.12396316230297089,
-0.07094043493270874,
-0.0928327813744545,
-0.004172762855887413,
-0.07170997560024261,
0.025313664227724075,
-0.09890090674161911,
-0.28425222635269165,
-0.1268380880355835,
0.20058706402778625,
-0.03877992555499077,
-0.48788079619407654,
-0.15089662373065948,
-0.4676207900047302,
0.308510959148407,
0.03557330742478371,
0.25753334164619446,
-0.08585099875926971,
-0.1335565745830536,
0.2047257125377655,
0.008696682751178741,
0.6842462420463562,
-0.21689720451831818,
-0.2390172928571701,
0.25405973196029663,
0.12067265808582306,
-0.29016217589378357,
-0.02383260428905487,
-0.561823308467865,
-0.10058367997407913,
0.32302772998809814,
0.07002507895231247,
-0.4161573350429535,
-0.06583742052316666,
0.06311829388141632,
-0.0540163591504097,
-0.2018037736415863,
0.07757183909416199,
-0.22868894040584564,
-0.1632470339536667,
0.021369693800807,
-0.1781851053237915,
0.1592739224433899,
0.3052085041999817,
-0.23032698035240173,
-0.09474998712539673,
-0.020747920498251915,
-0.10849820077419281,
0.275557279586792,
-0.06353603303432465,
0.42028239369392395,
-0.17278137803077698,
-0.1507958024740219,
-0.1001293957233429,
-0.02511492371559143,
-0.5728302001953125,
0.29406827688217163,
-0.29711291193962097,
0.35059672594070435,
0.1686255931854248,
-0.38593021035194397,
0.6130178570747375,
0.3698877990245819,
0.08288910984992981,
0.3258311152458191,
-0.29088470339775085,
0.23228387534618378,
0.030106011778116226,
-0.0556592121720314,
0.3734821081161499,
-0.2357523888349533,
-0.0026336924638599157,
-0.09466870129108429,
0.20131012797355652,
-0.11649659276008606,
-0.11162235587835312,
-0.09867137670516968,
0.15089952945709229,
-0.14040854573249817,
0.47620683908462524,
-0.06535720080137253,
0.8699266314506531,
-0.10220237076282501,
0.02880007214844227,
0.36395442485809326,
-0.2930319905281067,
0.72991943359375,
0.12546657025814056,
0.06369946897029877,
-0.3811820447444916,
-0.08555235713720322,
0.010671691969037056,
0.08654238283634186,
-0.1003335490822792,
0.2762788236141205,
-0.37867969274520874,
0.30306699872016907,
-0.21924084424972534,
-0.16928072273731232,
0.21312472224235535,
0.03345824033021927,
0.1023198664188385,
0.14878682792186737,
-0.28392016887664795,
0.19111338257789612,
-0.02903962880373001,
0.05499117076396942,
0.04691265523433685,
-0.2098492681980133,
-0.08387847989797592,
-0.13983096182346344,
-0.0975532978773117,
0.2478504180908203,
-0.26762962341308594,
-0.1409444361925125,
0.45645129680633545,
-0.05698728561401367,
-0.6023694276809692,
0.08122554421424866,
-0.014574125409126282,
0.30548593401908875,
-0.011374970898032188,
0.12965120375156403,
0.14209029078483582,
-0.07462013512849808,
0.35817381739616394,
0.23383192718029022,
0.2600752115249634,
-0.041993647813797,
-0.19174781441688538,
0.21489641070365906,
-0.14354798197746277,
-0.23158429563045502,
-0.33840757608413696,
0.23676173388957977,
0.01284770667552948,
-0.23143447935581207,
-0.4329338073730469,
-0.05067133903503418,
0.20145876705646515,
-0.23517107963562012,
0.1825747787952423,
-0.013425692915916443,
-0.2096029669046402,
-0.12156183272600174,
0.1633191704750061,
-0.34532156586647034,
0.0054450202733278275,
0.15301434695720673,
0.17500567436218262,
0.24158573150634766,
0.468216210603714,
0.09463007748126984,
0.0640944167971611,
-0.3818283677101135,
-0.11197303235530853,
0.36999210715293884,
-0.21957993507385254,
0.23936812579631805,
-0.04647032171487808,
-0.16051916778087616,
-0.016903474926948547,
0.13852807879447937,
-0.05911576747894287,
0.03422953188419342,
-0.16418017446994781,
-0.35156601667404175,
-0.04419272392988205,
0.4166790843009949,
0.00036267563700675964,
0.18780945241451263,
-0.002064235508441925,
-0.022774729877710342,
0.1879602074623108,
0.4029611349105835,
-0.42513367533683777,
0.14611706137657166,
-0.39650657773017883,
0.1516743302345276,
-0.04157499969005585,
-0.31347793340682983,
0.10911344736814499,
0.005909080617129803,
0.18960043787956238,
-0.0712064579129219,
-0.2308022677898407,
-0.34346938133239746,
-0.18954654037952423,
0.05228208005428314,
-0.067626953125,
0.21471399068832397,
-0.09183897078037262,
0.07503297924995422,
0.12013128399848938,
0.03603675961494446,
0.2240688055753708,
-0.1922163963317871,
0.18649807572364807,
0.21537786722183228,
0.3040248155593872,
0.23168474435806274,
-0.2960219979286194,
0.18384960293769836,
0.04547078534960747,
-0.03098370134830475,
0.021033748984336853,
-0.154168963432312,
-0.1896820217370987,
-0.08107227087020874,
0.18927671015262604,
-0.03564625233411789,
-0.004892215132713318,
-0.0027143731713294983,
0.05403479188680649,
-0.1590564250946045,
0.059805791825056076,
-0.28903108835220337,
0.1538437455892563,
0.09115144610404968,
-0.26109936833381653,
-0.0006666183471679688,
-0.03652145341038704,
0.3149944543838501,
-0.11589284241199493,
0.1256052851676941,
0.13852159678936005,
0.14089982211589813,
0.10901941359043121,
0.24866986274719238,
0.10672362148761749,
-0.21856409311294556,
0.110390305519104,
0.16778531670570374,
0.18495820462703705,
-0.151117205619812,
-0.10756072402000427,
0.3153116703033447,
0.09487883746623993,
-0.025750931352376938,
0.266891747713089,
0.009215384721755981,
-0.02058432251214981,
-0.11605265736579895,
0.13572213053703308,
0.45132899284362793,
0.2103835642337799,
0.09455665946006775,
0.38608795404434204,
0.018843993544578552,
-0.05400385335087776,
0.4714008569717407,
0.10026499629020691,
0.26754143834114075,
-0.07988674938678741,
0.6582877039909363,
-0.14324209094047546,
-0.21790148317813873,
0.08110834658145905,
0.34252384305000305,
-0.16083195805549622,
-0.2232285439968109,
-0.01571192964911461,
0.05826587229967117,
-0.5974664688110352,
-0.17746058106422424,
0.1642056554555893,
-0.29756319522857666,
0.20715796947479248,
0.08256347477436066,
-0.16526849567890167,
-0.03916808217763901,
-0.49061119556427,
0.0012092553079128265,
0.1394326537847519,
-0.2860248386859894,
0.27836695313453674,
-0.1906280666589737,
0.18660978972911835,
0.3655215799808502,
0.46162453293800354,
0.10542735457420349,
0.12446241080760956,
-0.3238738477230072,
-0.04249928519129753,
-0.029883377254009247,
-0.25190097093582153,
-0.17125341296195984,
0.24335028231143951,
0.2742094397544861,
0.24740982055664062,
0.11316634714603424,
0.2691098749637604,
-0.3204629123210907,
0.1359613686800003,
0.24780939519405365,
0.2534889280796051,
-0.1750779151916504,
0.27544695138931274,
-0.1274196058511734,
-0.1655600517988205,
-0.2203071117401123,
-0.33278584480285645,
-0.7666963934898376,
0.035920195281505585,
-0.001859208568930626,
-0.15660494565963745,
0.11844982951879501,
0.048226237297058105,
0.13765160739421844,
-0.25968360900878906,
0.1411229521036148,
0.1483086496591568,
0.09000590443611145,
-0.23476308584213257,
-0.2263377159833908,
-0.4332304298877716,
0.045763954520225525,
-0.1479465365409851,
-0.19336308538913727,
0.19029244780540466,
0.2700458765029907,
-0.10341113060712814,
-0.03571048378944397,
-0.5100884437561035,
0.43588176369667053,
-0.39940178394317627,
-0.25901901721954346,
-0.5443630814552307,
0.13561256229877472,
-0.10302075743675232,
0.07295680046081543,
0.12660513818264008,
-0.16279679536819458,
0.2099715918302536,
0.05961967632174492,
0.10077214986085892,
0.25355756282806396,
-0.10367707908153534,
0.30594730377197266,
0.06928399950265884,
0.009349137544631958,
0.2776675522327423,
0.10502180457115173,
-0.16153550148010254,
-0.01119717862457037,
-0.17020636796951294,
-0.15511885285377502,
-0.0892968624830246,
-0.00546497106552124,
0.0261085145175457,
0.4342819154262543,
0.247916579246521,
0.1311110556125641,
0.19500425457954407,
0.11774148792028427,
0.23759154975414276,
0.21820470690727234,
-0.030967436730861664,
0.1526060402393341,
-0.034296587109565735,
0.036025553941726685,
0.15608534216880798,
0.29935115575790405,
0.00296749547123909,
-0.0918378084897995,
-0.053803034126758575,
-0.1845363825559616,
0.39167946577072144,
-0.511017382144928,
-0.04795291647315025,
-0.07261120527982712,
0.43564409017562866,
0.24114841222763062,
-0.1386786848306656,
-0.6016250848770142,
-0.4045553505420685,
0.31876513361930847,
-0.16870516538619995,
-0.09158428758382797,
0.23731866478919983,
0.17652395367622375,
-0.015538264065980911,
-0.057665757834911346,
0.10027118027210236,
0.26806360483169556,
-0.15650111436843872,
-0.021075736731290817,
-0.2616681158542633
] |
https://github.com/huggingface/datasets/issues/277 | Empty samples in glue/qqp | Tanks for the suggestion, I'll try to ask GLUE benchmark.
I'll first close the issue, post the following up here afterwards, and reopen the issue if needed. | ```
qqp = nlp.load_dataset('glue', 'qqp')
print(qqp['train'][310121])
print(qqp['train'][362225])
```
```
{'question1': 'How can I create an Android app?', 'question2': '', 'label': 0, 'idx': 310137}
{'question1': 'How can I develop android app?', 'question2': '', 'label': 0, 'idx': 362246}
```
Notice that question 2 is empty string.
BTW, I have checked and these two are the only naughty ones in all splits of qqp. | 27 | Empty samples in glue/qqp
```
qqp = nlp.load_dataset('glue', 'qqp')
print(qqp['train'][310121])
print(qqp['train'][362225])
```
```
{'question1': 'How can I create an Android app?', 'question2': '', 'label': 0, 'idx': 310137}
{'question1': 'How can I develop android app?', 'question2': '', 'label': 0, 'idx': 362246}
```
Notice that question 2 is empty string.
BTW, I have checked and these two are the only naughty ones in all splits of qqp.
Tanks for the suggestion, I'll try to ask GLUE benchmark.
I'll first close the issue, post the following up here afterwards, and reopen the issue if needed. | [
0.2715722620487213,
-0.21357879042625427,
-0.09600062668323517,
0.20489279925823212,
0.0334746316075325,
-0.22537437081336975,
0.2624839246273041,
0.5297272801399231,
0.2512718737125397,
0.34647905826568604,
-0.14168448746204376,
0.36341798305511475,
0.018165409564971924,
0.01799248717725277,
0.09457479417324066,
-0.21441805362701416,
-0.12237127870321274,
0.47435784339904785,
-0.22665897011756897,
-0.016195040196180344,
-0.27885550260543823,
0.2712186872959137,
-0.2013014554977417,
-0.052502721548080444,
-0.21730613708496094,
-0.029286367818713188,
-0.2624511122703552,
0.08085757493972778,
-0.09695243090391159,
-0.21604256331920624,
-0.16039115190505981,
-0.007934868335723877,
-0.47182613611221313,
0.11353064328432083,
-0.00010816127905854955,
-0.23664461076259613,
0.30385464429855347,
0.03013128973543644,
-0.016531765460968018,
0.05877329409122467,
-0.17608767747879028,
-0.14386217296123505,
-0.03161652758717537,
-0.2702951431274414,
-0.13103264570236206,
0.17107287049293518,
0.05636659264564514,
-0.04147796332836151,
0.29091179370880127,
0.28944292664527893,
0.24988144636154175,
0.32298755645751953,
-0.16775211691856384,
0.058502428233623505,
0.6316812634468079,
-0.48349928855895996,
0.04953915625810623,
0.2030823528766632,
0.13301058113574982,
-0.15085263550281525,
-0.0022954121232032776,
0.3154923617839813,
-0.07694102823734283,
0.005060723051428795,
-0.2792362570762634,
0.050055552273988724,
0.03418875113129616,
-0.37193700671195984,
0.1219385489821434,
0.6385517716407776,
-0.2257314920425415,
-0.010933835059404373,
-0.13056743144989014,
-0.29271838068962097,
0.03471991419792175,
-0.18616724014282227,
-0.009598590433597565,
0.21884606778621674,
-0.11216995120048523,
0.0842827707529068,
-0.07665561884641647,
-0.018249642103910446,
0.10957832634449005,
0.021366331726312637,
-0.16052737832069397,
0.29467713832855225,
0.015083328820765018,
0.09940709173679352,
0.08317098766565323,
-0.08429451286792755,
-0.36710524559020996,
-0.04960956424474716,
-0.2779010534286499,
-0.08063651621341705,
-0.27373144030570984,
-0.029198525473475456,
0.10333280265331268,
-0.2223590612411499,
0.09155622124671936,
0.03838319703936577,
0.04510590061545372,
0.12167537212371826,
0.34541475772857666,
0.1836071014404297,
0.01291255746036768,
0.21313509345054626,
0.5253053903579712,
0.19973844289779663,
-0.22580324113368988,
0.019470728933811188,
-0.2615399658679962,
0.011985288932919502,
0.07028871774673462,
0.0163300558924675,
0.018254470080137253,
0.052581220865249634,
0.021435055881738663,
-0.00719490647315979,
-0.18146368861198425,
-0.05234091728925705,
-0.2602761685848236,
0.057802267372608185,
-0.21409869194030762,
0.3981824517250061,
-0.03541316092014313,
0.08195224404335022,
-0.021465135738253593,
0.1872769296169281,
-0.2436058223247528,
-0.48027485609054565,
-0.2614177465438843,
0.13717862963676453,
-0.04105797037482262,
-0.14563435316085815,
0.09469433128833771,
0.13082139194011688,
0.3209361135959625,
0.05069144815206528,
-0.2557224631309509,
-0.048857636749744415,
0.36026784777641296,
-0.26609504222869873,
0.2530593276023865,
0.2802162170410156,
0.20136596262454987,
0.10340707004070282,
-0.007391501218080521,
-0.12394007295370102,
-0.08780848234891891,
0.2330833375453949,
-0.03073270618915558,
0.01835993304848671,
-0.09715045988559723,
0.3066970705986023,
-0.11255577206611633,
0.18431435525417328,
0.18965354561805725,
0.29966098070144653,
0.025674790143966675,
-0.015272075310349464,
0.11792707443237305,
0.005109567195177078,
-0.07614956796169281,
-0.3365873396396637,
0.07260223478078842,
0.1973285973072052,
-0.36911287903785706,
-0.23446208238601685,
-0.0350852869451046,
0.12526486814022064,
0.13602478802204132,
0.24713405966758728,
-0.018329860642552376,
0.1719408631324768,
-0.2010868936777115,
0.48592865467071533,
0.17032445967197418,
-0.49588900804519653,
-0.31767523288726807,
0.34689053893089294,
-0.24254490435123444,
0.03859032690525055,
0.11143586784601212,
-0.009177540428936481,
0.4340401589870453,
0.2262684553861618,
0.327310711145401,
0.30906909704208374,
0.05492381006479263,
-0.07480448484420776,
-0.5140236616134644,
-0.13117706775665283,
0.36484360694885254,
-0.03781240060925484,
-0.11559529602527618,
-0.051360391080379486,
-0.2063601315021515,
-0.0577506422996521,
0.1394091695547104,
0.1814713478088379,
-0.02630469761788845,
0.13319972157478333,
0.27108311653137207,
-0.38733798265457153,
-0.0003697762731462717,
-0.14409689605236053,
-0.29688960313796997,
0.1813850700855255,
-0.5925247669219971,
0.19390875101089478,
0.21274006366729736,
-0.20416612923145294,
-0.11798693239688873,
-0.042729608714580536,
0.03782537952065468,
-0.22775518894195557,
0.2820470333099365,
-0.19046837091445923,
0.11553099751472473,
0.06696520745754242,
0.03255186602473259,
0.18903003633022308,
0.01942157931625843,
0.14922462403774261,
-0.15490436553955078,
0.12686726450920105,
0.0374019630253315,
0.011142849922180176,
0.17957690358161926,
0.44149163365364075,
0.23461639881134033,
0.11800649762153625,
0.19577455520629883,
0.3532404601573944,
-0.055618464946746826,
0.02505403757095337,
0.03269634023308754,
-0.4226808547973633,
-0.03682177513837814,
-0.046488355845212936,
-0.10705874115228653,
0.2304227650165558,
0.019570916891098022,
-0.1014254093170166,
-0.07609788328409195,
0.504956066608429,
0.3220841586589813,
0.24736839532852173,
0.04459644854068756,
0.059620700776576996,
-0.3528148829936981,
-0.4345819652080536,
-0.07007808983325958,
-0.3270905315876007,
0.3353848159313202,
0.040979087352752686,
0.42987582087516785,
0.29623347520828247,
-0.03949928656220436,
0.38538703322410583,
0.566627562046051,
-0.04768267273902893,
0.38342785835266113,
-0.2004968822002411,
-0.19233658909797668,
-0.2509758770465851,
0.033168401569128036,
0.38969072699546814,
0.201242595911026,
0.33642008900642395,
0.027239859104156494,
-0.14497585594654083,
-0.0013382676988840103,
-0.2931688129901886,
0.22571250796318054,
-0.0030837878584861755,
-0.15048114955425262,
0.2093813717365265,
0.43818432092666626,
-0.15805338323116302,
-0.21937748789787292,
0.5158029198646545,
0.04323762655258179,
-0.021262476220726967,
-0.12482678890228271,
-0.14865247905254364,
-0.3147306740283966,
-0.2375023066997528,
0.044657230377197266,
-0.15954186022281647,
-0.32074737548828125,
-0.4617292582988739,
0.29197490215301514,
-0.3784709572792053,
-0.11896800994873047,
0.0736280009150505,
0.13372887670993805,
0.30251985788345337,
-0.0549643412232399,
-0.04633127152919769,
0.05556624382734299,
0.01274331845343113,
-0.34488052129745483,
0.16890791058540344,
-0.34080421924591064,
0.3934918940067291,
0.3623141944408417,
-0.0753733441233635,
-0.1350659728050232,
0.16909687221050262,
-0.3209131062030792,
0.06238408386707306,
-0.13886170089244843,
0.5314761996269226,
0.12365914136171341,
0.0662677064538002,
-0.06345145404338837,
-0.01764661632478237,
0.16979120671749115,
-0.1296929568052292,
-0.1724252700805664,
-0.07883104681968689,
0.20044942200183868,
0.21600013971328735,
-0.24823783338069916,
-0.3728387951850891,
-0.11284222453832626,
-0.4325794279575348,
0.30550307035446167,
-0.28459838032722473,
0.38496458530426025,
0.0027652019634842873,
-0.25378820300102234,
0.2153552770614624,
-0.23401792347431183,
-0.16887007653713226,
-0.13563169538974762,
-0.09484346210956573,
0.17080920934677124,
-0.2498502880334854,
-0.2468601018190384,
-0.13708016276359558,
-0.25383415818214417,
0.10856340825557709,
-0.20120921730995178,
-0.32628148794174194,
-0.3508312404155731,
-0.08110174536705017,
0.1288251280784607,
0.21274042129516602,
-0.12513431906700134,
0.07603450864553452,
-0.14899447560310364,
-0.18216003477573395,
-0.1802305281162262,
-0.05391534045338631,
0.45007482171058655,
0.04668388515710831,
0.0400916263461113,
0.06502580642700195,
0.27933821082115173,
0.059858594089746475,
0.3947964906692505,
0.0812666267156601,
0.33688828349113464,
0.1455901563167572,
-0.08325842767953873,
0.23904317617416382,
-0.0501817986369133,
-0.10909145325422287,
0.13358454406261444,
0.25383755564689636,
0.07056865096092224,
0.31022322177886963,
0.07827015221118927,
-0.10350535809993744,
0.11883775889873505,
0.10346445441246033,
-0.3536417782306671,
-0.16363734006881714,
0.16186077892780304,
-0.14950282871723175,
-0.049376629292964935,
0.05815618112683296,
-0.01290111243724823,
0.011293316259980202,
-0.09502296894788742,
-0.21267828345298767,
-0.2355821281671524,
0.12876203656196594,
-0.12978912889957428,
-0.4396398663520813,
-0.09274868667125702,
-0.5289297699928284,
0.28708869218826294,
0.10762845724821091,
0.26349741220474243,
-0.13358581066131592,
-0.08152363449335098,
0.1261906623840332,
-0.01765064150094986,
0.670534610748291,
-0.28475552797317505,
-0.09520918130874634,
0.2089318186044693,
0.06586852669715881,
-0.2937115430831909,
0.006953500211238861,
-0.5354693531990051,
-0.09339315444231033,
0.4221336245536804,
0.0908452644944191,
-0.49927639961242676,
0.0195101797580719,
0.08677928149700165,
-0.017573362216353416,
-0.18370938301086426,
0.00181612279266119,
-0.3305697739124298,
-0.08267374336719513,
0.10900194942951202,
-0.1573689877986908,
0.1065739169716835,
0.3388253152370453,
-0.1372346132993698,
-0.11579881608486176,
-0.09575746953487396,
-0.10019785165786743,
0.27979570627212524,
-0.021625865250825882,
0.43616431951522827,
-0.2024804949760437,
0.08198045194149017,
-0.22509488463401794,
-0.1014464795589447,
-0.4868718981742859,
0.22788755595684052,
-0.268847793340683,
0.3672322928905487,
0.08763622492551804,
-0.32225891947746277,
0.47017350792884827,
0.36312127113342285,
0.10495871305465698,
0.3797159492969513,
-0.4211319088935852,
0.2606571912765503,
0.08949795365333557,
-0.07864838093519211,
0.37462037801742554,
-0.08581650257110596,
-0.0036105092149227858,
-0.010716469027101994,
0.22403687238693237,
-0.12877485156059265,
-0.14245666563510895,
-0.09258440136909485,
0.1049010157585144,
-0.14711396396160126,
0.4613463282585144,
-0.09700637310743332,
0.8855521082878113,
-0.21997694671154022,
0.015916898846626282,
0.30637603998184204,
-0.3462521433830261,
0.6145240664482117,
0.14819779992103577,
0.13100816309452057,
-0.46158477663993835,
-0.1653723269701004,
0.05202965438365936,
0.05371289327740669,
-0.10756594687700272,
0.23945844173431396,
-0.37540775537490845,
0.2790742516517639,
-0.25477057695388794,
-0.1699657440185547,
0.19225353002548218,
0.11669225990772247,
0.1106615886092186,
0.07040893286466599,
-0.3522312343120575,
0.2006763517856598,
-0.10979770123958588,
0.011176330968737602,
0.11911226063966751,
-0.14645954966545105,
-0.0004638656973838806,
-0.12488333135843277,
-0.10915987938642502,
0.156940758228302,
-0.2749898433685303,
-0.051670655608177185,
0.4869018495082855,
-0.01373351365327835,
-0.5811049342155457,
0.012960724532604218,
-0.17537154257297516,
0.34123292565345764,
0.05772608518600464,
0.18326091766357422,
0.1572471559047699,
0.015974977985024452,
0.44861510396003723,
0.1998177170753479,
0.18613827228546143,
-0.0832667350769043,
-0.263291597366333,
0.16956821084022522,
-0.1590092033147812,
-0.23126761615276337,
-0.30784177780151367,
0.24836057424545288,
0.0651451051235199,
-0.19738127291202545,
-0.47332853078842163,
-0.1210266500711441,
0.16770297288894653,
-0.2819990813732147,
0.19793099164962769,
-0.17484605312347412,
-0.2156781256198883,
-0.12598294019699097,
0.2328978031873703,
-0.34800150990486145,
0.01875809207558632,
0.2295621633529663,
0.13467936217784882,
0.3314608931541443,
0.4062972664833069,
0.0644754022359848,
0.03380206227302551,
-0.35554248094558716,
0.009297631680965424,
0.28611114621162415,
-0.16679123044013977,
0.2771485447883606,
-0.1347804218530655,
-0.20534998178482056,
0.020119475200772285,
0.07664406299591064,
0.026865674182772636,
0.048368677496910095,
-0.11192101240158081,
-0.1995905339717865,
0.04338832199573517,
0.30286914110183716,
0.03235442563891411,
0.10653994977474213,
-0.003367435187101364,
-0.1801125556230545,
0.136415496468544,
0.5124984383583069,
-0.41904041171073914,
0.06568175554275513,
-0.448135107755661,
0.17516420781612396,
-0.04050181806087494,
-0.3385767638683319,
0.06386986374855042,
0.05594606325030327,
0.2385382056236267,
-0.09521819651126862,
-0.22872480750083923,
-0.3541775643825531,
-0.22769670188426971,
0.04293757677078247,
-0.1539236307144165,
0.22427409887313843,
-0.11856861412525177,
0.08662235736846924,
0.02128385379910469,
-0.07598017156124115,
0.1834661066532135,
-0.16213563084602356,
0.11491619050502777,
0.13175514340400696,
0.19072650372982025,
0.1856643557548523,
-0.23943635821342468,
0.21900518238544464,
0.004908040165901184,
-0.054215654730796814,
-0.04666898027062416,
-0.17271125316619873,
-0.045499883592128754,
-0.09330005198717117,
0.11479635536670685,
-0.11611146479845047,
-0.06777355074882507,
-0.006092727184295654,
0.03569904714822769,
-0.20345400273799896,
-0.0031634122133255005,
-0.14654235541820526,
0.2589978277683258,
0.04245902597904205,
-0.24575723707675934,
-0.12359706312417984,
-0.14829295873641968,
0.32844558358192444,
-0.14363473653793335,
0.035173166543245316,
0.12394179403781891,
0.03195224329829216,
0.23160064220428467,
0.2193278670310974,
0.05966619774699211,
-0.1983867883682251,
0.19969886541366577,
0.15618839859962463,
0.2040756195783615,
-0.21505482494831085,
-0.16691599786281586,
0.14650675654411316,
0.158964604139328,
-0.05560695752501488,
0.30311036109924316,
-0.08194147050380707,
0.03397355228662491,
-0.044147975742816925,
0.22924551367759705,
0.48771119117736816,
0.23215070366859436,
0.07327629625797272,
0.3107292950153351,
0.14871196448802948,
-0.03856447711586952,
0.6244727373123169,
-0.05828014016151428,
0.24890050292015076,
0.0008578076958656311,
0.6918644309043884,
-0.23705261945724487,
-0.3201916813850403,
0.02446909062564373,
0.2090947926044464,
-0.15686261653900146,
-0.35463812947273254,
0.08195143193006516,
0.09825602918863297,
-0.5680098533630371,
-0.11504556238651276,
0.20390163362026215,
-0.12099307775497437,
0.2469462752342224,
0.13006043434143066,
-0.040533289313316345,
-0.17890621721744537,
-0.432131826877594,
0.04889379441738129,
0.24488839507102966,
-0.35716336965560913,
0.29815372824668884,
-0.12139642238616943,
0.2621770203113556,
0.2796633839607239,
0.3922008275985718,
0.17775972187519073,
0.21610872447490692,
-0.36813515424728394,
-0.07628455013036728,
-0.06782737374305725,
-0.14735321700572968,
-0.20592930912971497,
0.20126041769981384,
0.21459168195724487,
0.16836120188236237,
0.22821901738643646,
0.24580001831054688,
-0.3538048565387726,
0.07850409299135208,
0.2948915958404541,
0.1354813128709793,
-0.18994711339473724,
0.2803795337677002,
-0.1798204928636551,
-0.03041725978255272,
-0.2985873222351074,
-0.1843944489955902,
-0.7166968584060669,
0.02510274201631546,
-0.03644172474741936,
-0.21038082242012024,
0.13871252536773682,
-0.02343558520078659,
0.14436261355876923,
-0.24123850464820862,
0.23422454297542572,
0.08596334606409073,
-0.002415027469396591,
-0.32397329807281494,
-0.0998619869351387,
-0.46236810088157654,
0.11710229516029358,
-0.1823505014181137,
-0.25121191143989563,
0.15966902673244476,
0.3514060974121094,
-0.2212233543395996,
-0.009135853499174118,
-0.3307332992553711,
0.3748616874217987,
-0.3800552189350128,
-0.2198624610900879,
-0.6355605125427246,
0.16694188117980957,
-0.1612001359462738,
-0.11456051468849182,
0.11356997489929199,
-0.33209866285324097,
0.19836100935935974,
0.08989139646291733,
0.10901043564081192,
0.27253496646881104,
-0.1427309215068817,
0.3721240758895874,
0.17708557844161987,
-0.013067930936813354,
0.264946311712265,
0.24822895228862762,
-0.14379113912582397,
-0.1124342530965805,
-0.06772857904434204,
-0.16960665583610535,
-0.05746978148818016,
-0.07276556640863419,
0.07741007208824158,
0.4261716902256012,
0.25423386693000793,
0.07958455383777618,
0.17398375272750854,
0.30364060401916504,
0.30543649196624756,
0.11751855164766312,
0.0004170592874288559,
0.0838075652718544,
0.0642223209142685,
0.0732082948088646,
0.03699066862463951,
0.3366989493370056,
0.028032395988702774,
-0.02769400365650654,
-0.06123518943786621,
-0.3449516296386719,
0.36647117137908936,
-0.5037404298782349,
-0.07374843209981918,
-0.05160742253065109,
0.44916215538978577,
0.34058478474617004,
-0.09829996526241302,
-0.510827362537384,
-0.4513755142688751,
0.2980214059352875,
-0.12252720445394516,
-0.14657872915267944,
0.3283294439315796,
0.05302438884973526,
0.029550138860940933,
-0.021167002618312836,
-0.044343747198581696,
0.24745690822601318,
-0.22519220411777496,
0.018571309745311737,
-0.17946842312812805
] |
https://github.com/huggingface/datasets/issues/275 | NonMatchingChecksumError when loading pubmed dataset | For some reason the files are not available for unauthenticated users right now (like the download service of this package). Instead of downloading the right files, it downloads the html of the error.
According to the error it should be back again in 24h.

| I get this error when i run `nlp.load_dataset('scientific_papers', 'pubmed', split = 'train[:50%]')`.
The error is:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-2-7742dea167d0> in <module>()
----> 1 df = nlp.load_dataset('scientific_papers', 'pubmed', split = 'train[:50%]')
2 df = pd.DataFrame(df)
3 gc.collect()
3 frames
/usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
518 download_mode=download_mode,
519 ignore_verifications=ignore_verifications,
--> 520 save_infos=save_infos,
521 )
522
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
431 verify_infos = not save_infos and not ignore_verifications
432 self._download_and_prepare(
--> 433 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
434 )
435 # Sync info
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
468 # Checksums verification
469 if verify_infos:
--> 470 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums())
471 for split_generator in split_generators:
472 if str(split_generator.split_info.name).lower() == "all":
/usr/local/lib/python3.6/dist-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums)
34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]]
35 if len(bad_urls) > 0:
---> 36 raise NonMatchingChecksumError(str(bad_urls))
37 logger.info("All the checksums matched successfully.")
38
NonMatchingChecksumError: ['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I'm currently working on google colab.
That is quite strange because yesterday it was fine.
| 45 | NonMatchingChecksumError when loading pubmed dataset
I get this error when i run `nlp.load_dataset('scientific_papers', 'pubmed', split = 'train[:50%]')`.
The error is:
```
---------------------------------------------------------------------------
NonMatchingChecksumError Traceback (most recent call last)
<ipython-input-2-7742dea167d0> in <module>()
----> 1 df = nlp.load_dataset('scientific_papers', 'pubmed', split = 'train[:50%]')
2 df = pd.DataFrame(df)
3 gc.collect()
3 frames
/usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
518 download_mode=download_mode,
519 ignore_verifications=ignore_verifications,
--> 520 save_infos=save_infos,
521 )
522
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
431 verify_infos = not save_infos and not ignore_verifications
432 self._download_and_prepare(
--> 433 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
434 )
435 # Sync info
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
468 # Checksums verification
469 if verify_infos:
--> 470 verify_checksums(self.info.download_checksums, dl_manager.get_recorded_sizes_checksums())
471 for split_generator in split_generators:
472 if str(split_generator.split_info.name).lower() == "all":
/usr/local/lib/python3.6/dist-packages/nlp/utils/info_utils.py in verify_checksums(expected_checksums, recorded_checksums)
34 bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]]
35 if len(bad_urls) > 0:
---> 36 raise NonMatchingChecksumError(str(bad_urls))
37 logger.info("All the checksums matched successfully.")
38
NonMatchingChecksumError: ['https://drive.google.com/uc?id=1b3rmCSIoh6VhD4HKWjI4HOW-cSwcwbeC&export=download', 'https://drive.google.com/uc?id=1lvsqvsFi3W-pE1SqNZI0s8NR9rC1tsja&export=download']
```
I'm currently working on google colab.
That is quite strange because yesterday it was fine.
For some reason the files are not available for unauthenticated users right now (like the download service of this package). Instead of downloading the right files, it downloads the html of the error.
According to the error it should be back again in 24h.

| [
0.05875870957970619,
0.13019147515296936,
0.03693518415093422,
0.024855896830558777,
0.2648720145225525,
-0.013563167303800583,
0.2168019860982895,
0.5417687296867371,
0.23485222458839417,
0.10361512005329132,
-0.139253169298172,
0.3025202751159668,
-0.1345060020685196,
-0.46926137804985046,
-0.1694713830947876,
0.03361228480935097,
0.01822417974472046,
0.2782469391822815,
0.08311527222394943,
0.017654165625572205,
-0.2718375623226166,
0.3171769082546234,
-0.20225346088409424,
-0.06744831800460815,
0.18951991200447083,
-0.11085733026266098,
0.13679763674736023,
0.2171500325202942,
0.04846718907356262,
-0.3944903016090393,
0.22323325276374817,
0.17930646240711212,
0.10682366043329239,
0.2187492549419403,
-0.00011708815873134881,
0.17658013105392456,
0.30269676446914673,
0.014654947444796562,
-0.2404378056526184,
-0.3675607442855835,
-0.30674874782562256,
-0.5333061814308167,
0.20339816808700562,
-0.31497329473495483,
-0.09392927587032318,
0.0818529725074768,
0.09851805865764618,
-0.06670171022415161,
0.13526608049869537,
0.2718559205532074,
0.1855047047138214,
0.4645364284515381,
-0.012147322297096252,
-0.038980189710855484,
0.22106993198394775,
-0.07106916606426239,
-0.11672026664018631,
0.44438883662223816,
0.24701949954032898,
-0.20542149245738983,
-0.45857203006744385,
0.28268617391586304,
-0.2289147526025772,
0.4773515462875366,
-0.04872281849384308,
0.005470519419759512,
0.4340510368347168,
-0.25383421778678894,
0.1287403702735901,
0.31720948219299316,
0.12444974482059479,
-0.11026231199502945,
0.040843456983566284,
-0.24435141682624817,
-0.06126224994659424,
-0.10050599277019501,
0.33224207162857056,
0.16426031291484833,
-0.33934420347213745,
-0.16424831748008728,
-0.26725101470947266,
0.15482589602470398,
-0.018441688269376755,
0.2772810459136963,
0.45119979977607727,
0.0823991447687149,
0.025992553681135178,
0.07795444875955582,
0.38853317499160767,
-0.1400499790906906,
0.40813082456588745,
-0.1891860067844391,
0.05597928911447525,
0.27182644605636597,
-0.3856693506240845,
-0.10505229234695435,
-0.029901981353759766,
0.08300506323575974,
0.21926015615463257,
0.5085971355438232,
0.17396180331707,
-0.020674042403697968,
0.16010242700576782,
0.17406660318374634,
0.23457957804203033,
-0.03254994377493858,
-0.20497295260429382,
0.3127058446407318,
0.24282236397266388,
0.26542675495147705,
-0.08172789216041565,
0.13259810209274292,
-0.12437672168016434,
-0.2750793695449829,
0.4795854091644287,
-0.15438994765281677,
0.15673843026161194,
-0.32838112115859985,
-0.18533864617347717,
0.2568359971046448,
0.1256316900253296,
-0.037092845886945724,
0.1507803052663803,
0.3794887661933899,
-0.00670104194432497,
0.2513452172279358,
-0.04671799764037132,
-0.0900825560092926,
-0.2285943180322647,
-0.0017543062567710876,
-0.16195648908615112,
0.07882705330848694,
-0.2954723536968231,
0.03644068166613579,
0.29131099581718445,
-0.16165421903133392,
0.3400787115097046,
-0.026194177567958832,
0.14318475127220154,
-0.1925869584083557,
0.2771725058555603,
-0.2258295863866806,
-0.17030957341194153,
0.4002285897731781,
0.0789528638124466,
0.09375586360692978,
0.25992438197135925,
-0.03614424914121628,
-0.3035447597503662,
0.17107489705085754,
-0.1880393624305725,
-0.37612390518188477,
-0.35439375042915344,
0.16793493926525116,
-0.3283613324165344,
-0.1124938428401947,
0.19485066831111908,
-0.16554370522499084,
0.41855522990226746,
-0.5822322368621826,
0.019879356026649475,
-0.3036311864852905,
-0.21274398267269135,
-0.14035898447036743,
-0.004766155034303665,
0.1324804574251175,
0.3329320549964905,
-0.06297799199819565,
-0.0698213204741478,
0.054344501346349716,
0.5059975385665894,
0.3451898992061615,
-0.20035243034362793,
-0.07307765632867813,
-0.18369297683238983,
-0.004275500774383545,
0.6614865064620972,
-0.10246393829584122,
-0.501132607460022,
0.30504390597343445,
0.057782530784606934,
0.45030727982521057,
-0.03337133675813675,
0.16733630001544952,
-0.11887125670909882,
-0.10189618915319443,
0.3278857469558716,
0.08118043839931488,
0.0006619859486818314,
0.27912330627441406,
-0.38192686438560486,
-0.13033804297447205,
0.5268677473068237,
0.2277289181947708,
0.18663309514522552,
-0.0063325464725494385,
0.06295691430568695,
0.2206355333328247,
0.18397460877895355,
-0.0855361819267273,
-0.0306455846875906,
0.2708132863044739,
0.018540259450674057,
0.06929310411214828,
0.058109067380428314,
-0.2218930721282959,
-0.38581958413124084,
0.2098037302494049,
-0.38005322217941284,
0.2502176761627197,
0.08590009808540344,
0.022694632411003113,
-0.3482504189014435,
-0.33040106296539307,
-0.21040166914463043,
0.022805599495768547,
0.06466992944478989,
0.3360600173473358,
0.19128957390785217,
0.029780447483062744,
-0.13214702904224396,
0.20024435222148895,
-0.31215521693229675,
0.03845895826816559,
-0.5431322455406189,
0.2622189521789551,
-0.21269714832305908,
-0.18529419600963593,
0.16498598456382751,
0.1927395910024643,
0.08376052975654602,
0.02814638242125511,
-0.24969816207885742,
0.3297189772129059,
0.08496108651161194,
-0.0043528154492378235,
0.04160098731517792,
0.08348715305328369,
-0.06494336575269699,
-0.09139296412467957,
-0.003358626738190651,
0.4507691264152527,
0.04528423398733139,
-0.009753908962011337,
-0.22597748041152954,
0.3569219708442688,
-0.09161552786827087,
0.14008954167366028,
0.018097132444381714,
0.11193754523992538,
0.2927781641483307,
-0.12066033482551575,
-0.21994341909885406,
-0.12930920720100403,
0.5966856479644775,
0.041938722133636475,
-0.15332548320293427,
0.1737086921930313,
-0.4326077699661255,
-0.29559165239334106,
0.36963361501693726,
-0.025639254599809647,
0.027118206024169922,
0.1284155398607254,
0.06686443090438843,
-0.17375749349594116,
-0.013438960537314415,
0.3423476815223694,
0.502830982208252,
0.18390880525112152,
-0.1045733243227005,
0.03426257148385048,
-0.3598060607910156,
-0.07767821103334427,
-0.07587335258722305,
0.12115871906280518,
0.40277236700057983,
0.5767907500267029,
0.35055091977119446,
0.009755026549100876,
-0.5195763111114502,
-0.24999773502349854,
0.08926353603601456,
0.500563383102417,
-0.3145841658115387,
-0.05888659507036209,
-0.202056884765625,
-0.15006963908672333,
-0.2669268250465393,
-0.2294195294380188,
-0.2996846139431,
-0.2502133250236511,
-0.09031990170478821,
0.4568476974964142,
0.013585656881332397,
0.331367552280426,
-0.7557689547538757,
0.09483060240745544,
-0.05094412341713905,
-0.1814253330230713,
-0.10372066497802734,
-0.13163194060325623,
-0.034180790185928345,
-0.037244491279125214,
0.41216975450515747,
0.0776030644774437,
0.44354039430618286,
-0.09922176599502563,
-0.1393856704235077,
-0.21772582828998566,
-0.2293802797794342,
-0.033899351954460144,
-0.07651694864034653,
-0.023081695660948753,
0.2885402739048004,
0.039528753608465195,
-0.1497325897216797,
-0.34571123123168945,
0.3683995306491852,
-0.28741681575775146,
-0.18313176929950714,
0.2736923098564148,
-0.06887280941009521,
0.047756846994161606,
0.08770282566547394,
-0.2555530071258545,
-0.1006210446357727,
-0.41793105006217957,
-0.09216764569282532,
0.21309612691402435,
0.15833210945129395,
0.37703007459640503,
-0.18833298981189728,
0.12014389038085938,
0.07696764916181564,
0.35288307070732117,
-0.24673335254192352,
-0.3859330415725708,
0.39954349398612976,
-0.0446745939552784,
-0.28284451365470886,
-0.0373045951128006,
-0.24643874168395996,
0.07277245819568634,
0.0861017107963562,
-0.43586474657058716,
-0.3477202355861664,
-0.26991885900497437,
-0.23237287998199463,
-0.033160500228405,
-0.17303365468978882,
0.3908373713493347,
0.09429330378770828,
-0.13948318362236023,
-0.006137333810329437,
-0.18832628428936005,
0.19982865452766418,
0.07579341530799866,
0.3481663465499878,
-0.15975067019462585,
0.29549935460090637,
-0.13642390072345734,
0.5724862813949585,
0.41482314467430115,
0.05190857872366905,
0.09263542294502258,
0.03206226974725723,
0.38046592473983765,
-0.12182369083166122,
-0.32749202847480774,
-0.08516747504472733,
0.018538162112236023,
0.19220677018165588,
0.11993400007486343,
-0.09054425358772278,
-0.2683866322040558,
-0.07598140835762024,
-0.10402917861938477,
-0.16878268122673035,
-0.2750392258167267,
0.14030148088932037,
-0.3935481607913971,
0.31140825152397156,
0.22068767249584198,
-0.004917934536933899,
-0.1749950647354126,
-0.48172470927238464,
-0.15338610112667084,
0.30810222029685974,
-0.15424463152885437,
-0.0217624232172966,
-0.22811472415924072,
0.20594967901706696,
-0.4059183895587921,
0.24460627138614655,
0.3321514129638672,
0.3792579472064972,
-0.09653585404157639,
-0.1378997266292572,
0.17449066042900085,
-0.10740026831626892,
0.21121269464492798,
-0.1568179428577423,
0.022936062887310982,
0.18023718893527985,
-0.19326382875442505,
-0.3291550278663635,
-0.12853297591209412,
-0.07087961584329605,
0.2246689349412918,
0.16284580528736115,
0.38669106364250183,
-0.1893857717514038,
-0.22539237141609192,
0.5273256301879883,
-0.01717681996524334,
-0.13914725184440613,
-0.5009340047836304,
-0.4964926540851593,
-0.328842431306839,
-0.4223901331424713,
-0.024421289563179016,
-0.0691627785563469,
0.3058440685272217,
-0.060259319841861725,
-0.007051616907119751,
0.08798591792583466,
0.0077453963458538055,
0.24744591116905212,
0.047083232551813126,
0.1417863965034485,
0.2906084954738617,
0.2893086373806,
0.07486043870449066,
0.22097939252853394,
-0.04495838284492493,
0.4247760474681854,
-0.26672694087028503,
-0.23744478821754456,
0.058317702263593674,
0.023059401661157608,
-0.16519206762313843,
0.06987206637859344,
0.10891269892454147,
-0.054003842175006866,
0.3547831177711487,
0.06940308958292007,
0.16097579896450043,
0.014947425574064255,
0.3398001790046692,
-0.13206754624843597,
-0.48240798711776733,
-0.3375612199306488,
0.20688596367835999,
-0.0034060217440128326,
0.0006138905882835388,
0.14193958044052124,
-0.1403350532054901,
-0.014442909508943558,
0.1813037395477295,
0.0700121745467186,
0.9123493432998657,
-0.05020982772111893,
0.2700970768928528,
0.15562918782234192,
-0.12637394666671753,
0.484785795211792,
-0.1906326413154602,
0.3136151432991028,
-0.4442589282989502,
-0.3440861403942108,
0.03320653736591339,
-0.215055450797081,
0.0016658194363117218,
-0.08467428386211395,
-0.03130526840686798,
0.4170592725276947,
0.3165466785430908,
-0.08886930346488953,
-0.029774928465485573,
0.23895740509033203,
-0.04117060452699661,
-0.17547504603862762,
-0.31650882959365845,
0.1362701952457428,
-0.400562584400177,
0.31943732500076294,
-0.15105098485946655,
-0.0020371247082948685,
-0.002229727804660797,
-0.1660822182893753,
-0.21453550457954407,
0.24550965428352356,
0.18387798964977264,
0.4514033794403076,
0.5331103801727295,
-0.19798806309700012,
-0.14533275365829468,
0.04267967492341995,
0.07314485311508179,
-0.1107759177684784,
-0.22801989316940308,
0.08417922258377075,
0.47281208634376526,
-0.2130318135023117,
-0.027643417939543724,
0.1677723228931427,
0.5750771164894104,
-0.16118505597114563,
-0.04883671551942825,
-0.01754862070083618,
-0.1586233526468277,
-0.5636653900146484,
0.016521260142326355,
-0.01440855860710144,
0.22873681783676147,
-0.2249051034450531,
-0.24086152017116547,
-0.0060572549700737,
-0.11772972345352173,
-0.25810062885284424,
0.13442635536193848,
0.14283980429172516,
-0.2220241129398346,
0.19953754544258118,
0.09581363201141357,
-0.3081704378128052,
0.053559742867946625,
0.41313961148262024,
0.19125896692276,
-0.2264447808265686,
0.488849014043808,
-0.04028788581490517,
-0.3232172131538391,
-0.19993337988853455,
0.001378081738948822,
-0.07788420468568802,
-0.3243076801300049,
0.2354053407907486,
-0.00505352858453989,
0.24347291886806488,
0.1977970451116562,
0.45636940002441406,
0.15388521552085876,
0.1639070361852646,
0.06401075422763824,
-0.4290199875831604,
-0.34249070286750793,
-0.09831488132476807,
-0.058682095259428024,
0.3464601933956146,
0.19336116313934326,
0.025077082216739655,
0.028281258419156075,
-0.014141270890831947,
-0.27897071838378906,
-0.03620438277721405,
-0.6158043146133423,
0.08086453378200531,
0.16279900074005127,
-0.1786712110042572,
0.09856365621089935,
0.08484961092472076,
0.10807660222053528,
0.062278084456920624,
-0.11878956854343414,
-0.21387389302253723,
-0.2060466706752777,
0.16818007826805115,
0.1312130242586136,
-0.11987705528736115,
-0.09784720093011856,
-0.13247297704219818,
-0.15383031964302063,
-0.15584591031074524,
-0.24399790167808533,
0.1678183376789093,
-0.06506100296974182,
-0.010939264670014381,
-0.1312609314918518,
-0.0744357630610466,
0.22801025211811066,
0.14020410180091858,
-0.4103316366672516,
-0.11820818483829498,
0.08093973994255066,
0.009015318006277084,
0.028095154091715813,
0.08395302295684814,
-0.0772586241364479,
0.07665260881185532,
0.3141530156135559,
-0.2686918079853058,
0.29418298602104187,
-0.32556790113449097,
-0.13629066944122314,
0.06496884673833847,
0.3370262086391449,
0.21334876120090485,
-0.4081486761569977,
-0.07886359095573425,
0.23576784133911133,
0.16822287440299988,
-0.5343011617660522,
0.011874423362314701,
0.335496187210083,
0.10925950855016708,
0.018037807196378708,
0.1105094626545906,
-0.14606766402721405,
-0.32630541920661926,
0.37970179319381714,
0.154851496219635,
0.23264765739440918,
-0.6414144039154053,
-0.007242674008011818,
0.2353510707616806,
0.1024446040391922,
-0.14251434803009033,
0.2817763388156891,
0.05233247950673103,
0.11280876398086548,
-0.029144324362277985,
-0.06500636786222458,
0.14648683369159698,
-0.19579434394836426,
0.15314355492591858,
-0.2331833839416504,
-0.2960100769996643,
0.21897335350513458,
0.4795643091201782,
0.23770275712013245,
0.08647360652685165,
0.06585612893104553,
0.34207355976104736,
-0.07130613178014755,
0.20494301617145538,
-0.3094734251499176,
0.23022475838661194,
-0.10543634742498398,
-0.093659907579422,
0.02398693561553955,
-0.02962401509284973,
-0.17092475295066833,
0.2104806751012802,
-0.013372357934713364,
0.2012871354818344,
0.040911752730607986,
0.1333923190832138,
-0.044541358947753906,
-0.5335209965705872,
0.144658625125885,
0.23603227734565735,
-0.015614494681358337,
-0.2741885781288147,
0.23561012744903564,
0.11419741809368134,
-0.07366041839122772,
0.042397771030664444,
0.35673534870147705,
0.3995249569416046,
0.36309945583343506,
-0.007846862077713013,
-0.12930484116077423,
0.11558037996292114,
0.11685733497142792,
0.1376378983259201,
0.6320487260818481,
0.39147642254829407,
0.28913959860801697,
0.36634233593940735,
0.015223076567053795,
-0.19955456256866455,
0.25512436032295227,
-0.09978534281253815,
-0.33545657992362976,
0.026399098336696625,
0.7012008428573608,
0.15000861883163452,
-0.005062948912382126,
-0.20528391003608704,
0.19082139432430267,
-0.3925950527191162,
-0.24595384299755096,
-0.0374746210873127,
0.0676877424120903,
0.1558869481086731,
-0.11567793041467667,
0.05636721849441528,
-0.10696043074131012,
0.4185023903846741,
0.1445930302143097,
-0.055076293647289276,
-0.3177073895931244,
-0.35109418630599976,
-0.7823402285575867,
0.4147540032863617,
-0.22224348783493042,
-0.004539366811513901,
0.11117609590291977,
0.12392044067382812,
-0.12601208686828613,
0.12135821580886841,
0.052751325070858,
0.08295305073261261,
-0.4774821996688843,
-0.13195544481277466,
-0.026100970804691315,
-0.02017708122730255,
-0.11103706061840057,
-0.4083552956581116,
-0.04655340313911438,
-0.18373578786849976,
0.028331056237220764,
0.1031561940908432,
0.022497564554214478,
-0.02330700308084488,
-0.0576360821723938,
-0.18685249984264374,
0.4520631432533264,
-0.08636769652366638,
0.18592633306980133,
0.4873574376106262,
0.0534147173166275,
-0.016193853691220284,
-0.06143702194094658,
-0.3204174041748047,
-0.24960802495479584,
0.2517539858818054,
0.11229069530963898,
0.3334975242614746,
-0.051367707550525665,
0.07830743491649628,
-0.3139563500881195,
0.18824829161167145,
-0.021478036418557167,
-0.1734161227941513,
-0.07351969927549362,
-0.05970524251461029,
-0.04150652885437012,
0.2270752638578415,
-0.0535888597369194,
0.011546477675437927,
0.217929407954216,
0.31084898114204407,
-0.32527685165405273,
-0.2350168228149414,
0.5604363083839417,
-0.4640592634677887,
-0.3845111131668091,
0.011448859237134457,
0.19404615461826324,
-0.21399959921836853,
-0.20467261970043182,
-0.7420555353164673,
0.041729338467121124,
0.3519320785999298,
0.10893851518630981,
-0.09042540937662125,
0.1255105882883072,
-0.5100415945053101,
0.054862599819898605,
0.010107222944498062,
-0.0520605742931366,
0.1498999148607254,
-0.21299642324447632,
-0.1807076781988144,
-0.21114683151245117
] |
https://github.com/huggingface/datasets/issues/274 | PG-19 | Got around to this today, and so far so good, I'm able to download and load pg19 locally. However, I think there may be an issue with the dummy data, and testing in general.
The problem lies in the fact that each book from pg19 actually resides as its own text file in a google cloud folder that denotes the split, where the book id is the name of the text file. https://console.cloud.google.com/storage/browser/deepmind-gutenberg/train/ I don't believe there's anywhere else (even in the supplied metadata), where the mapping of id -> split can be found.
Therefore I end up making a network call `tf.io.gfile.listdir` to get all the files within each of the split directories. https://github.com/lucidrains/nlp/commit/adbacbd85decc80db2347d0882e7dab4faa6fd03#diff-cece8f166a85dd927caf574ba303d39bR78
Does this network call need to be eventually stubbed out for testing? | Hi, and thanks for all your open-sourced work, as always!
I was wondering if you would be open to adding PG-19 to your collection of datasets. https://github.com/deepmind/pg19 It is often used for benchmarking long-range language modeling. | 127 | PG-19
Hi, and thanks for all your open-sourced work, as always!
I was wondering if you would be open to adding PG-19 to your collection of datasets. https://github.com/deepmind/pg19 It is often used for benchmarking long-range language modeling.
Got around to this today, and so far so good, I'm able to download and load pg19 locally. However, I think there may be an issue with the dummy data, and testing in general.
The problem lies in the fact that each book from pg19 actually resides as its own text file in a google cloud folder that denotes the split, where the book id is the name of the text file. https://console.cloud.google.com/storage/browser/deepmind-gutenberg/train/ I don't believe there's anywhere else (even in the supplied metadata), where the mapping of id -> split can be found.
Therefore I end up making a network call `tf.io.gfile.listdir` to get all the files within each of the split directories. https://github.com/lucidrains/nlp/commit/adbacbd85decc80db2347d0882e7dab4faa6fd03#diff-cece8f166a85dd927caf574ba303d39bR78
Does this network call need to be eventually stubbed out for testing? | [
-0.27264323830604553,
0.10239805281162262,
-0.07613087445497513,
0.0389728769659996,
-0.3389701843261719,
-0.12711815536022186,
0.6120789647102356,
0.1419057548046112,
0.23385128378868103,
0.03640780597925186,
0.09452386200428009,
-0.02755182795226574,
-0.07654105871915817,
0.8013002276420593,
0.3966306149959564,
-0.04433763772249222,
0.21177804470062256,
0.058730144053697586,
0.08764111250638962,
-0.0332941971719265,
-0.3133229911327362,
0.3008310794830322,
-0.08162758499383926,
0.00840739905834198,
-0.5192520022392273,
-0.4210984408855438,
-0.21403485536575317,
0.13622191548347473,
-0.056497178971767426,
-0.09087301045656204,
0.02328496240079403,
0.3214840590953827,
-0.06836497038602829,
0.7272161245346069,
-0.00012029657227685675,
0.05504539608955383,
0.04572136700153351,
-0.12409215420484543,
-0.23834346234798431,
-0.245015487074852,
-0.029780782759189606,
0.2153978943824768,
-0.18174496293067932,
-0.17276519536972046,
-0.05625579506158829,
0.012505852617323399,
-0.015662571415305138,
-0.08837351202964783,
0.05340605229139328,
0.15368157625198364,
0.05777667835354805,
0.1069050133228302,
-0.12648026645183563,
0.024993963539600372,
0.38832345604896545,
0.21690700948238373,
-0.30775371193885803,
0.24215155839920044,
0.45303401350975037,
-0.10506338626146317,
0.09347061812877655,
0.37448182702064514,
0.10027101635932922,
-0.13245517015457153,
0.2871434986591339,
0.2010130137205124,
0.23145613074302673,
-0.2365606427192688,
-0.12518006563186646,
0.38538306951522827,
0.15421001613140106,
-0.18490466475486755,
-0.44270431995391846,
-0.4211260676383972,
-0.3595263659954071,
-0.3846864402294159,
0.1833169311285019,
0.056066617369651794,
-0.1714601069688797,
0.1323087513446808,
-0.05736713856458664,
-0.577727735042572,
-0.05759461224079132,
0.009336806833744049,
-0.24546357989311218,
0.6067336797714233,
0.19005510210990906,
-0.007056489586830139,
0.35563692450523376,
0.05118025839328766,
-0.3422848880290985,
-0.294612318277359,
-0.04255693778395653,
-0.31998226046562195,
0.21934905648231506,
-0.2322886884212494,
-0.05313229560852051,
-0.1331908106803894,
0.05611470341682434,
0.17480815947055817,
0.2768692672252655,
0.1526038646697998,
-0.16417010128498077,
0.1510067880153656,
0.391657292842865,
0.20297133922576904,
0.21930772066116333,
0.3185266852378845,
0.419636070728302,
0.17325295507907867,
0.0714329332113266,
0.1075260192155838,
-0.04246195778250694,
-0.02061919867992401,
-0.3254280686378479,
-0.12539926171302795,
0.0022391993552446365,
-0.244834765791893,
-0.05266621708869934,
0.00942910835146904,
-0.10569658875465393,
-0.033777378499507904,
0.19635392725467682,
0.15844953060150146,
0.28536880016326904,
-0.013263944536447525,
-0.04506092891097069,
0.21404387056827545,
-0.33296579122543335,
-0.41930055618286133,
-0.06976494938135147,
-0.0168793722987175,
-0.16002629697322845,
0.3653956651687622,
0.3247299790382385,
0.07303082942962646,
0.027448417618870735,
-0.2186320424079895,
0.004394032061100006,
0.04649271070957184,
0.18766459822654724,
-0.28175991773605347,
0.3472301959991455,
0.22629371285438538,
-0.016525931656360626,
-0.0629667192697525,
-0.1108630895614624,
-0.35621315240859985,
-0.3561599850654602,
0.3167046010494232,
0.0032071322202682495,
-0.19989635050296783,
0.3542388677597046,
0.06109405681490898,
-0.24827483296394348,
-0.08608849346637726,
-0.44903287291526794,
0.5363031029701233,
-0.05868431180715561,
-0.4931679964065552,
0.16996034979820251,
-0.17518197000026703,
-0.5470998883247375,
0.08174179494380951,
0.09914343059062958,
0.32350394129753113,
-0.5793901085853577,
-0.21484985947608948,
-0.10321936756372452,
0.10398860275745392,
0.08876118063926697,
0.3730231523513794,
-0.19056417047977448,
0.08986156433820724,
-0.1698359251022339,
0.9594684839248657,
-0.09935877472162247,
0.1975434273481369,
-0.16753479838371277,
0.28484219312667847,
-0.32566702365875244,
-0.009038364514708519,
0.021829620003700256,
0.042634375393390656,
0.11315687000751495,
-0.20485900342464447,
0.08689513802528381,
0.2947109341621399,
0.06203380972146988,
-0.06005813926458359,
-0.2760380208492279,
-0.1112530305981636,
0.3911855220794678,
0.028965506702661514,
-0.0009513944387435913,
-0.4765182137489319,
-0.1512329876422882,
-0.2698192000389099,
0.17407795786857605,
-0.23581117391586304,
-0.15515637397766113,
0.030881306156516075,
0.38740089535713196,
0.03751930966973305,
-0.009671026840806007,
0.3352307975292206,
-0.40206679701805115,
0.2687513530254364,
-0.012287413701415062,
0.17680132389068604,
-0.19553242623806,
-0.21270903944969177,
0.04979658126831055,
0.18786364793777466,
0.037636369466781616,
-0.13818320631980896,
-0.09236497431993484,
0.20169377326965332,
0.0606907494366169,
0.18772171437740326,
-0.04580528289079666,
-0.42936331033706665,
-0.3604777455329895,
-0.03481720760464668,
-0.3426392078399658,
0.17187325656414032,
-0.028563691303133965,
-0.03529449552297592,
0.04394039511680603,
0.07762018591165543,
-0.09348329156637192,
-0.2785622775554657,
0.028699547052383423,
0.2729763388633728,
-0.001540712546557188,
0.3509215712547302,
0.3272590637207031,
0.6057782769203186,
0.25874844193458557,
-0.33105507493019104,
0.07901915907859802,
0.05079346522688866,
-0.13626419007778168,
-0.24290791153907776,
-0.2827901542186737,
0.5357288718223572,
-0.2918590307235718,
0.25323230028152466,
0.0408429354429245,
-0.28615427017211914,
-0.10220392048358917,
-0.09175735712051392,
-0.24356363713741302,
0.09727969765663147,
0.33141157031059265,
-0.4470754861831665,
0.09340031445026398,
0.07283014059066772,
-0.21395127475261688,
0.28925275802612305,
0.3497873544692993,
-0.37561678886413574,
0.2537572979927063,
0.09150288254022598,
0.07303112745285034,
-0.3983811140060425,
0.15582561492919922,
-0.033674418926239014,
0.3324223458766937,
0.19430704414844513,
0.3082287311553955,
-0.1299707591533661,
-0.00003441888839006424,
-0.30807217955589294,
0.34710395336151123,
0.09730961918830872,
-0.2300126999616623,
0.2968510687351227,
-0.13939501345157623,
-0.21483969688415527,
-0.2560614049434662,
0.07618086040019989,
0.18251171708106995,
0.04465480148792267,
-0.2624448835849762,
0.25804978609085083,
0.052435100078582764,
-0.24767136573791504,
-0.11752356588840485,
-0.2869984805583954,
-0.31773677468299866,
-0.05459482967853546,
0.2922194004058838,
-0.17415980994701385,
-0.312116414308548,
0.1548205018043518,
0.11756794154644012,
0.5219107866287231,
-0.3469550609588623,
-0.4283791482448578,
-0.10553586483001709,
-0.24664346873760223,
-0.33287233114242554,
0.0004458315670490265,
0.6615569591522217,
0.1518438458442688,
0.27380961179733276,
-0.06654760241508484,
-0.2734888792037964,
0.018517721444368362,
-0.35130247473716736,
0.20384623110294342,
-0.2112295776605606,
0.37075427174568176,
-0.1882704794406891,
0.1462552845478058,
0.12491026520729065,
-0.19290992617607117,
-0.09400700777769089,
-0.7298651337623596,
-0.14020229876041412,
-0.16542309522628784,
0.08745484054088593,
-0.08372744917869568,
-0.311029851436615,
-0.5655400156974792,
-0.21927005052566528,
-0.07602944225072861,
0.44120341539382935,
0.0793057382106781,
0.07645954191684723,
0.3570248782634735,
0.19043193757534027,
0.022289719432592392,
0.3863992989063263,
-0.2552839517593384,
-0.15553498268127441,
-0.08336912095546722,
0.3025323748588562,
0.07705080509185791,
-0.09850959479808807,
0.011152077466249466,
-0.18823225796222687,
0.03944011777639389,
0.015149228274822235,
-0.7059183716773987,
0.30684682726860046,
0.2903667986392975,
0.25974205136299133,
0.09256722033023834,
-0.38365018367767334,
0.2497781664133072,
-0.1992361694574356,
-0.033102210611104965,
0.007222112268209457,
-0.13477715849876404,
0.35199588537216187,
0.11038552969694138,
0.025062188506126404,
0.08066906780004501,
-0.18398937582969666,
0.10302579402923584,
0.6840957999229431,
-0.24827636778354645,
0.003613114356994629,
0.02135467901825905,
0.18164685368537903,
-0.013137642294168472,
-0.16980943083763123,
-0.1296669840812683,
-0.24484755098819733,
-0.24657076597213745,
-0.45850270986557007,
0.5736462473869324,
-0.059314630925655365,
-0.593235433101654,
-0.12987518310546875,
-0.09800752997398376,
0.008136603981256485,
-0.33837124705314636,
0.44114503264427185,
0.20716431736946106,
0.347629189491272,
0.02309446781873703,
-0.12512105703353882,
-0.1863763928413391,
-0.19506776332855225,
0.050609998404979706,
-0.2279554158449173,
0.22617891430854797,
0.046655237674713135,
-0.17565472424030304,
-0.1343148946762085,
-0.35528168082237244,
0.3489300608634949,
0.2551192343235016,
0.17490269243717194,
-0.3630934953689575,
-0.07558834552764893,
0.022709019482135773,
-0.22196894884109497,
0.33170199394226074,
-0.1779334843158722,
-0.009399481117725372,
0.263096421957016,
0.039629049599170685,
0.297677606344223,
-0.03516098111867905,
-0.3403729498386383,
-0.05675932392477989,
0.5999391674995422,
0.5400305986404419,
-0.2375164031982422,
0.1011597216129303,
0.09148017317056656,
0.124235600233078,
-0.11085596680641174,
0.21907709538936615,
-0.1244841068983078,
-0.15752704441547394,
-0.05398039147257805,
0.1433667540550232,
0.16325373947620392,
-0.14060333371162415,
-0.26193252205848694,
0.16163192689418793,
0.37796956300735474,
0.2200571596622467,
0.26346641778945923,
0.04311930388212204,
0.18487140536308289,
-0.07373235374689102,
0.08359619975090027,
0.49485427141189575,
-0.05579393357038498,
0.3722936511039734,
0.566868245601654,
0.05743471533060074,
0.4507496654987335,
0.2335365116596222,
-0.16804347932338715,
0.39748403429985046,
0.8063243627548218,
0.14051905274391174,
0.06112070381641388,
0.07956407964229584,
0.07675741612911224,
-0.36867430806159973,
0.16794878244400024,
0.3405257761478424,
0.03158874064683914,
-0.27283087372779846,
-0.3024205267429352,
0.4311407804489136,
0.1669761836528778,
-0.1041935384273529,
0.3814060389995575,
-0.20486895740032196,
-0.26114121079444885,
0.524956464767456,
-0.1667482852935791,
1.1697304248809814,
0.1368248164653778,
0.299348920583725,
0.08099772781133652,
0.4191170334815979,
0.19005770981311798,
-0.4884207248687744,
0.14853952825069427,
0.018190767616033554,
0.039729323238134384,
-0.14417923986911774,
-0.13872219622135162,
0.047332763671875,
0.15482097864151,
-0.3110097050666809,
0.11738557368516922,
0.3908537030220032,
-0.02343321219086647,
-0.029419543221592903,
0.3881387710571289,
0.12132275849580765,
-0.0899503231048584,
0.22960497438907623,
0.034511975944042206,
0.1406187117099762,
-0.027119453996419907,
0.04358340799808502,
-0.2933674454689026,
-0.4227820634841919,
-0.10698433965444565,
-0.26749080419540405,
-0.075656458735466,
-0.30353057384490967,
0.06499268114566803,
-0.10642263293266296,
-0.33920997381210327,
0.141911119222641,
-0.020705852657556534,
-0.27131301164627075,
0.038825854659080505,
-0.14737679064273834,
0.15149572491645813,
-0.2022620439529419,
0.08593876659870148,
0.14814603328704834,
-0.08725222200155258,
0.2579505443572998,
0.1409015953540802,
-0.2104293555021286,
-0.1471414566040039,
-0.07716762274503708,
-0.20184122025966644,
-0.44170165061950684,
-0.3046224117279053,
0.06850941479206085,
-0.15610280632972717,
0.1771126389503479,
0.2317340075969696,
-0.26455652713775635,
-0.15440750122070312,
0.09706172347068787,
-0.019570045173168182,
-0.2739711403846741,
0.01865694671869278,
0.01062522828578949,
-0.23780757188796997,
-0.24210907518863678,
0.22058728337287903,
-0.19420719146728516,
0.38208216428756714,
0.4124896824359894,
0.3496234118938446,
0.08176257461309433,
-0.2193911075592041,
0.25419095158576965,
-0.17682984471321106,
-0.2578897476196289,
0.14944763481616974,
-0.055212944746017456,
-0.1352880895137787,
-0.3229970932006836,
0.4571157991886139,
0.444496214389801,
-0.02573385089635849,
-0.08926396071910858,
-0.08309189975261688,
0.20626047253608704,
0.28407230973243713,
0.24988920986652374,
0.44378671050071716,
-0.08976104110479355,
-0.007929632440209389,
-0.095046766102314,
0.21255648136138916,
-0.24109414219856262,
0.05427544564008713,
-0.26053759455680847,
0.01884004846215248,
-0.09556198120117188,
-0.1735626459121704,
0.16202624142169952,
-0.10368138551712036,
-0.030337702482938766,
0.2714049220085144,
0.04785992205142975,
-0.09932062774896622,
-0.0023329034447669983,
0.21611440181732178,
0.043417125940322876,
-0.04598142206668854,
-0.03247629106044769,
0.09885729849338531,
0.16137652099132538,
0.016263632103800774,
0.028270259499549866,
-0.09494766592979431,
0.10343939810991287,
-0.25278666615486145,
0.06377395242452621,
0.017148952931165695,
-0.2364719808101654,
0.18096798658370972,
0.02994808554649353,
0.42961782217025757,
-0.08236334472894669,
0.20041276514530182,
-0.07349073141813278,
-0.02539633959531784,
0.0024158989544957876,
0.2037971317768097,
0.04480903595685959,
-0.02303759753704071,
0.13326147198677063,
-0.15044765174388885,
0.10106666386127472,
-0.03395123779773712,
0.47991839051246643,
0.306932270526886,
-0.33843958377838135,
0.0659378245472908,
-0.024124130606651306,
0.10520051419734955,
-0.13859683275222778,
-0.27681127190589905,
0.17256049811840057,
-0.19984839856624603,
0.00959090143442154,
0.4495719075202942,
0.716988742351532,
0.07630673050880432,
-0.01250459998846054,
-0.028908036649227142,
-0.11710970103740692,
0.17829377949237823,
0.09389935433864594,
0.2932693660259247,
-0.3195466995239258,
0.1339811384677887,
0.0540504977107048,
0.2150760143995285,
0.2383483648300171,
-0.05193209648132324,
0.06294278055429459,
-0.0008561350405216217,
-0.08677057921886444,
0.2609274089336395,
-0.24248218536376953,
-0.44436460733413696,
-0.19591937959194183,
0.18454524874687195,
0.13590200245380402,
0.37290072441101074,
0.009673967957496643,
0.7265552878379822,
-0.5254346132278442,
-0.13998466730117798,
-0.1681557148694992,
0.11444908380508423,
-0.1295730471611023,
0.052874159067869186,
-0.4104478359222412,
-0.2534974217414856,
-0.7404464483261108,
0.24860534071922302,
-0.03491610661149025,
0.03422446548938751,
-0.2049778699874878,
0.2294398546218872,
-0.1614019125699997,
0.18505451083183289,
0.18645262718200684,
-0.4132699966430664,
0.24570998549461365,
-0.3718050718307495,
0.33575424551963806,
0.17537695169448853,
0.080013707280159,
0.17875388264656067,
0.20186202228069305,
0.2501920163631439,
-0.26732563972473145,
-0.28641360998153687,
0.06128699332475662,
-0.18970002233982086,
-0.05082383751869202,
-0.03771723806858063,
0.3149450421333313,
0.1342564821243286,
-0.019859153777360916,
0.41707083582878113,
0.020117470994591713,
-0.048851486295461655,
0.2668664753437042,
0.37334635853767395,
0.2590518295764923,
-0.13695074617862701,
0.40883076190948486,
-0.21470576524734497,
-0.2509361505508423,
-0.2189858853816986,
-0.2040761113166809,
-0.2603701055049896,
0.14234422147274017,
0.34177377820014954,
-0.23626981675624847,
0.0739106610417366,
-0.04585255682468414,
0.02265407145023346,
-0.19436995685100555,
0.6136359572410583,
0.1349562257528305,
0.30155667662620544,
-0.4537060260772705,
-0.1868506371974945,
-0.45649418234825134,
0.06264273077249527,
-0.2675778269767761,
0.13785310089588165,
0.15337364375591278,
0.09832730889320374,
0.3756082355976105,
0.3372201919555664,
-0.08962056040763855,
0.08608217537403107,
-0.36308184266090393,
0.18579667806625366,
-0.3647123873233795,
0.20505467057228088,
-0.2918779253959656,
0.04239070415496826,
0.04486282914876938,
-0.15484267473220825,
0.13354623317718506,
-0.13258463144302368,
-0.16128133237361908,
0.09111791849136353,
-0.2634662091732025,
0.11952467262744904,
0.7089616060256958,
0.2730461359024048,
-0.13855627179145813,
0.5048616528511047,
0.04496224224567413,
0.0710454061627388,
0.03080778568983078,
-0.2031417042016983,
-0.19387559592723846,
0.1018584743142128,
-0.30421727895736694,
0.2639803886413574,
-0.22789865732192993,
-0.13102787733078003,
-0.0010576292406767607,
-0.22715625166893005,
-0.05901132524013519,
-0.02048359252512455,
-0.18817143142223358,
-0.28768327832221985,
-0.3768269717693329,
-0.10037931799888611,
0.3555052578449249,
0.5817751884460449,
-0.0689636766910553,
-0.2167637050151825,
-0.19725702702999115,
0.021834971383213997,
0.5056437849998474,
0.078383669257164,
-0.0010331850498914719,
0.016226280480623245,
0.06201246380805969,
0.6226611733436584,
0.10652269423007965,
-0.4134063422679901,
-0.10987981408834457,
0.21437419950962067,
0.18306416273117065,
-0.1542506068944931,
0.0011519519612193108,
0.15770690143108368,
-0.009703315794467926,
-0.028474867343902588,
0.5589560270309448,
0.030184296891093254,
-0.191905215382576,
0.07093574106693268,
-0.2202945500612259
] |
https://github.com/huggingface/datasets/issues/274 | PG-19 | Ohh nevermind, I think I can use `download_custom` here with `listdir` as the custom function. Ok, I'll keep trying to make the dummy data work! | Hi, and thanks for all your open-sourced work, as always!
I was wondering if you would be open to adding PG-19 to your collection of datasets. https://github.com/deepmind/pg19 It is often used for benchmarking long-range language modeling. | 25 | PG-19
Hi, and thanks for all your open-sourced work, as always!
I was wondering if you would be open to adding PG-19 to your collection of datasets. https://github.com/deepmind/pg19 It is often used for benchmarking long-range language modeling.
Ohh nevermind, I think I can use `download_custom` here with `listdir` as the custom function. Ok, I'll keep trying to make the dummy data work! | [
-0.4496192932128906,
-0.03256071358919144,
-0.24153485894203186,
0.011326432228088379,
0.01966767944395542,
-0.23637080192565918,
0.3253325819969177,
0.2554728090763092,
0.37867191433906555,
0.13758958876132965,
-0.14073091745376587,
0.12346815317869186,
-0.2844293415546417,
0.6086745858192444,
0.24809204041957855,
-0.1724565178155899,
0.1320280134677887,
0.1412588506937027,
0.022987600415945053,
-0.035967662930488586,
-0.3278508186340332,
0.16211271286010742,
0.015688501298427582,
-0.10666441917419434,
0.09940133988857269,
-0.051836028695106506,
-0.1455862820148468,
0.11187271773815155,
-0.2036280483007431,
-0.23971641063690186,
0.019587693735957146,
0.24893827736377716,
0.08734683692455292,
0.373756468296051,
-0.00009904241596814245,
-0.14119678735733032,
0.14712338149547577,
-0.1750645488500595,
-0.16810089349746704,
-0.17707927525043488,
0.008781448006629944,
-0.1589251607656479,
-0.3505606949329376,
-0.07190495729446411,
-0.20974302291870117,
-0.1847786009311676,
-0.0747273862361908,
-0.21739573776721954,
-0.025998800992965698,
0.17593397200107574,
0.33317703008651733,
0.16255183517932892,
-0.07660014927387238,
-0.1970892697572708,
0.318657785654068,
0.20531955361366272,
-0.3026255667209625,
0.10414308309555054,
0.5350350141525269,
0.05754183232784271,
0.22669166326522827,
0.14728718996047974,
-0.13924509286880493,
-0.0871092677116394,
0.10388568788766861,
0.016398420557379723,
0.335800439119339,
-0.14567874372005463,
-0.03258814662694931,
0.4370434284210205,
0.27435535192489624,
-0.22263747453689575,
-0.14066995680332184,
-0.1740691065788269,
-0.28916510939598083,
-0.5619827508926392,
-0.1779935657978058,
0.02586495503783226,
-0.11503703892230988,
0.17474885284900665,
0.12535323202610016,
-0.236375629901886,
-0.1189030110836029,
0.10200262069702148,
-0.13718131184577942,
0.536819338798523,
0.12390454113483429,
-0.18563798069953918,
0.2636004388332367,
-0.2258598953485489,
-0.22719219326972961,
-0.3083094358444214,
-0.033456023782491684,
-0.22048421204090118,
0.024958904832601547,
-0.3071708083152771,
0.08112331479787827,
-0.026381716132164,
0.24977970123291016,
0.06119956076145172,
0.4035758972167969,
0.3741002380847931,
-0.04223484545946121,
-0.031919240951538086,
0.07855504751205444,
0.1675981730222702,
-0.02615998685359955,
0.11106168478727341,
0.11657244712114334,
0.12754037976264954,
0.09288732707500458,
0.2510777711868286,
-0.019871078431606293,
0.2266145646572113,
-0.31013959646224976,
0.10709811747074127,
-0.25004690885543823,
-0.19844408333301544,
-0.173829585313797,
0.10369114577770233,
0.08536119014024734,
-0.0045563830062747,
0.10780071467161179,
0.3054638206958771,
-0.0083420155569911,
0.09052050858736038,
-0.2202187180519104,
0.13062725961208344,
-0.1280260980129242,
-0.4333171546459198,
-0.14333383738994598,
0.13601161539554596,
-0.18820087611675262,
-0.06057814508676529,
0.24250493943691254,
0.20055601000785828,
0.05583060532808304,
0.06556309014558792,
0.2242942601442337,
0.22395020723342896,
0.4162141680717468,
-0.3934517502784729,
0.2677246630191803,
-0.023854490369558334,
-0.013510080054402351,
-0.23244377970695496,
-0.02712191268801689,
-0.2948921322822571,
-0.40059036016464233,
0.12512356042861938,
0.17659956216812134,
-0.0966549888253212,
-0.05185414105653763,
0.2899716794490814,
-0.2850759029388428,
-0.2268652617931366,
-0.13168403506278992,
0.6907501816749573,
-0.352102667093277,
-0.2408406138420105,
-0.000249423086643219,
-0.09816281497478485,
-0.3826602101325989,
-0.1678154617547989,
-0.06826412677764893,
0.22305011749267578,
-0.7102313041687012,
-0.0014368966221809387,
-0.08816476166248322,
0.08764125406742096,
0.12219083309173584,
0.14798922836780548,
-0.12217507511377335,
-0.056974925100803375,
-0.17860931158065796,
0.42854148149490356,
-0.0073873624205589294,
0.06345565617084503,
-0.13865816593170166,
0.04797191172838211,
-0.1762390434741974,
-0.023859238252043724,
0.08303690701723099,
0.24482086300849915,
0.2663955092430115,
-0.17047615349292755,
-0.2056724727153778,
0.355973482131958,
0.10173455625772476,
-0.04718188941478729,
-0.28085747361183167,
-0.2230839729309082,
0.3721271753311157,
0.273296594619751,
0.02457597479224205,
-0.37380173802375793,
-0.020068973302841187,
-0.1720554083585739,
0.21086722612380981,
-0.3505474328994751,
-0.19193865358829498,
0.13635125756263733,
0.36976417899131775,
-0.09018354117870331,
0.027172453701496124,
-0.11428460478782654,
-0.31813734769821167,
0.2242152988910675,
-0.16260942816734314,
0.25299322605133057,
0.13913753628730774,
-0.010243464261293411,
-0.18966391682624817,
0.20221972465515137,
0.1474492847919464,
-0.09282951056957245,
0.267563134431839,
0.3086657226085663,
0.045117635279893875,
0.14654117822647095,
0.004035647958517075,
-0.17007648944854736,
-0.08285856246948242,
-0.2145681530237198,
-0.04821598157286644,
0.16887858510017395,
0.04465453326702118,
-0.08213911950588226,
0.0733657032251358,
0.003632292151451111,
0.05826939642429352,
-0.04833860322833061,
0.0967128649353981,
-0.010171554982662201,
0.05688576400279999,
0.10587450861930847,
0.3047046363353729,
0.428417444229126,
0.11857831478118896,
-0.18440379202365875,
0.23368579149246216,
0.3589050769805908,
0.045629896223545074,
-0.16278252005577087,
-0.11024179309606552,
0.7311079502105713,
0.02162613533437252,
0.08308574557304382,
-0.017575830221176147,
-0.09846483916044235,
0.16341346502304077,
-0.012996204197406769,
-0.034278176724910736,
-0.06884080171585083,
0.6526181697845459,
-0.04273519292473793,
0.2194088250398636,
0.05514473095536232,
-0.23673249781131744,
0.3291032612323761,
0.27104437351226807,
-0.32130008935928345,
0.3904019296169281,
0.16438011825084686,
0.02171088382601738,
-0.32583603262901306,
0.23713111877441406,
0.08658641576766968,
0.31535977125167847,
0.3786854147911072,
0.20127996802330017,
-0.05511496216058731,
-0.03956566005945206,
-0.12765738368034363,
0.5137770771980286,
-0.12407246232032776,
-0.19210295379161835,
0.1431730091571808,
0.16662292182445526,
-0.2695825695991516,
-0.259199321269989,
-0.02744867280125618,
-0.08196257799863815,
0.05179431289434433,
0.02312896028161049,
0.08825156092643738,
-0.16530734300613403,
-0.16849234700202942,
0.14819210767745972,
-0.2837992310523987,
-0.36777493357658386,
-0.11337355524301529,
0.20648349821567535,
-0.10175006091594696,
-0.35631927847862244,
0.17457468807697296,
0.05030139163136482,
0.43899184465408325,
-0.30198097229003906,
-0.38391655683517456,
-0.08204169571399689,
-0.13430245220661163,
-0.16649654507637024,
0.24285611510276794,
0.274490624666214,
0.04891778156161308,
0.33001241087913513,
-0.009104340337216854,
0.07316235452890396,
-0.04302962124347687,
-0.3479763865470886,
0.17181137204170227,
-0.059370070695877075,
0.19500640034675598,
0.06254089623689651,
0.10530292242765427,
0.14941991865634918,
-0.07894520461559296,
0.0278245247900486,
-0.5253394842147827,
-0.09801898151636124,
-0.11366821080446243,
-0.13267353177070618,
0.0018225846579298377,
-0.24414488673210144,
-0.14847183227539062,
-0.4197816252708435,
-0.417162150144577,
0.15122060477733612,
0.27604398131370544,
0.10071499645709991,
0.11917717009782791,
0.23996779322624207,
0.08590173721313477,
0.2548598349094391,
-0.12752947211265564,
-0.378702849149704,
-0.22747206687927246,
0.35529613494873047,
-0.1580529510974884,
-0.1372421532869339,
-0.3094342052936554,
-0.30708855390548706,
0.11155854165554047,
0.01199906226247549,
-0.4052852988243103,
0.1284041851758957,
0.17927108705043793,
0.29725876450538635,
0.02156972885131836,
-0.23988036811351776,
0.33632540702819824,
0.09316948801279068,
-0.1702377200126648,
-0.16677692532539368,
-0.19328422844409943,
0.14372795820236206,
-0.12392645329236984,
0.054155003279447556,
0.025741958990693092,
-0.14173075556755066,
0.12665162980556488,
0.6686882376670837,
-0.3144361078739166,
-0.12966157495975494,
0.31661364436149597,
0.2104555070400238,
0.1162964403629303,
-0.13073164224624634,
-0.13261157274246216,
-0.28576937317848206,
-0.005099043250083923,
-0.2197553813457489,
0.4992228150367737,
-0.033051710575819016,
-0.6249343752861023,
-0.1822269707918167,
-0.011846749112010002,
0.12655627727508545,
0.036181915551424026,
0.34414029121398926,
0.2690191864967346,
0.1792859137058258,
0.052572209388017654,
-0.02579163759946823,
-0.4849684238433838,
-0.1925656795501709,
0.1623878926038742,
-0.36921417713165283,
-0.10430397838354111,
-0.14462698996067047,
-0.32347699999809265,
0.2503587007522583,
-0.377623051404953,
0.4971390962600708,
0.23450621962547302,
-0.1397443264722824,
-0.2826576232910156,
-0.11465819925069809,
-0.14583320915699005,
-0.15708088874816895,
0.10016311705112457,
-0.3264564871788025,
-0.05543401837348938,
0.219336599111557,
-0.08011274039745331,
0.009402817115187645,
0.1120513379573822,
-0.3385167419910431,
-0.23007971048355103,
0.44367849826812744,
0.2835439443588257,
-0.3600516617298126,
0.1166156679391861,
0.021959926933050156,
0.28475645184516907,
-0.01764455810189247,
0.054044973105192184,
-0.08348462730646133,
-0.2652907967567444,
-0.022180307656526566,
0.14553675055503845,
0.02094164304435253,
-0.04758280888199806,
0.009708569385111332,
0.03487958386540413,
0.11635798960924149,
0.171458899974823,
0.35157930850982666,
0.01412465050816536,
0.05548347905278206,
0.04878063127398491,
0.10674549639225006,
-0.023395515978336334,
-0.030520349740982056,
0.15367606282234192,
0.37484046816825867,
-0.15455369651317596,
-0.026554279029369354,
0.029690131545066833,
-0.25784018635749817,
0.16938503086566925,
0.44539374113082886,
0.16845163702964783,
0.18752172589302063,
-0.26787495613098145,
0.07853934168815613,
-0.36953026056289673,
-0.0039596655406057835,
0.07492105662822723,
0.11941739171743393,
-0.0936724990606308,
-0.38856616616249084,
0.2877749502658844,
0.0360758937895298,
-0.19673053920269012,
0.3596976399421692,
-0.38177746534347534,
-0.14037589728832245,
0.5071076154708862,
0.17154011130332947,
1.0697423219680786,
0.13824714720249176,
0.22775079309940338,
0.2690111994743347,
-0.1123170405626297,
0.17693106830120087,
-0.10136738419532776,
0.014101695269346237,
-0.09035835415124893,
-0.10908365249633789,
-0.0040302760899066925,
-0.11639945209026337,
0.01254522055387497,
0.23084986209869385,
-0.38142675161361694,
0.21438764035701752,
0.1874137967824936,
-0.043394844979047775,
0.14304032921791077,
0.2398746907711029,
0.15238863229751587,
-0.1314476728439331,
-0.0872984379529953,
0.3038373291492462,
0.08884307742118835,
-0.2356540560722351,
-0.08984652161598206,
-0.24454589188098907,
-0.16786731779575348,
0.014744285494089127,
-0.30425652861595154,
0.022270411252975464,
-0.26166877150535583,
-0.024637695401906967,
-0.21434417366981506,
-0.3872906565666199,
-0.01047533843666315,
0.04375778138637543,
-0.1370231658220291,
0.12695106863975525,
-0.11299017071723938,
0.08242641389369965,
-0.04166063666343689,
0.2649955451488495,
0.17309249937534332,
-0.2701753079891205,
0.06557853519916534,
-0.0969691127538681,
-0.1505323350429535,
0.05454505980014801,
0.09003180265426636,
-0.2973216772079468,
-0.41592252254486084,
-0.06746511161327362,
0.23152442276477814,
-0.03994488716125488,
0.09126685559749603,
0.05263623595237732,
-0.05331682413816452,
-0.2608891427516937,
0.2784075438976288,
0.1591486930847168,
-0.11420686542987823,
-0.0012004971504211426,
0.011547990143299103,
-0.11318907141685486,
-0.35274747014045715,
0.09433262795209885,
-0.03671799600124359,
0.11038464307785034,
0.21886935830116272,
0.27833524346351624,
-0.16156885027885437,
-0.3992878198623657,
0.23033517599105835,
-0.4040112793445587,
-0.25516435503959656,
0.23465017974376678,
-0.16828720271587372,
-0.44992876052856445,
-0.29944226145744324,
0.18277914822101593,
0.3982257843017578,
0.026737168431282043,
0.036249641329050064,
-0.1406247615814209,
-0.13249947130680084,
-0.026372238993644714,
0.19789059460163116,
0.20397254824638367,
-0.25252676010131836,
-0.24089030921459198,
-0.12476906925439835,
0.03010483831167221,
-0.5307037830352783,
0.04592568427324295,
-0.2104513794183731,
-0.10871998965740204,
-0.1318974643945694,
-0.1910291314125061,
-0.00013030075933784246,
0.052937544882297516,
0.17014306783676147,
0.1302686482667923,
-0.36700698733329773,
-0.3362666368484497,
-0.24665012955665588,
0.09479895979166031,
-0.1898581087589264,
0.020323945209383965,
0.17460665106773376,
0.07297485321760178,
0.025457249954342842,
0.02353714033961296,
-0.145050510764122,
0.0047437772154808044,
0.01427236944437027,
0.04407299682497978,
0.16072240471839905,
-0.017968907952308655,
-0.10782979428768158,
0.1182437464594841,
0.16257032752037048,
0.48229706287384033,
0.028404247015714645,
0.20594193041324615,
0.005525498650968075,
-0.1750849485397339,
0.13491719961166382,
0.19154229760169983,
0.09708958864212036,
-0.05270974338054657,
0.31096893548965454,
0.15186139941215515,
-0.0850280225276947,
0.2378431260585785,
0.4349473714828491,
0.06670065969228745,
-0.2614816129207611,
0.16746442019939423,
0.2404799461364746,
0.3586176633834839,
-0.35053446888923645,
-0.3663562834262848,
0.26995551586151123,
-0.05710496008396149,
0.20113953948020935,
0.26349937915802,
0.5090157389640808,
0.055993735790252686,
0.36938202381134033,
-0.04327859729528427,
-0.020840425044298172,
0.09141717106103897,
-0.003950286656618118,
0.1869083046913147,
-0.1654692143201828,
0.03501981496810913,
0.11754985898733139,
0.19319994747638702,
0.1532425582408905,
0.15453210473060608,
0.0882989913225174,
0.2996974289417267,
-0.0034259743988513947,
0.1333685964345932,
-0.03461836278438568,
-0.26290014386177063,
0.215095654129982,
0.31946641206741333,
0.0775776207447052,
0.4573177993297577,
0.21477797627449036,
0.4042337238788605,
-0.35673895478248596,
0.011296579614281654,
-0.2824990749359131,
0.11342567205429077,
-0.043354377150535583,
0.03050979971885681,
-0.09572474658489227,
-0.25501394271850586,
-0.6515775918960571,
0.10207752883434296,
0.05943872779607773,
-0.10263334214687347,
-0.02177896350622177,
0.10167771577835083,
0.1845875084400177,
0.06759946793317795,
0.018112728372216225,
-0.16487687826156616,
0.1479995995759964,
-0.3413236439228058,
0.1909482330083847,
0.36419785022735596,
0.07046082615852356,
0.16553251445293427,
0.2569616436958313,
0.19406180083751678,
-0.03387528657913208,
-0.4499937891960144,
0.007519860751926899,
-0.2952580153942108,
-0.027349121868610382,
-0.40369805693626404,
0.2954617440700531,
0.17951780557632446,
0.08728982508182526,
0.57143634557724,
0.21343103051185608,
-0.3286539912223816,
0.1666831523180008,
0.29623380303382874,
-0.023503083735704422,
-0.2522209584712982,
0.46533405780792236,
0.11421268433332443,
-0.1969919204711914,
-0.303317129611969,
-0.11753157526254654,
-0.27486398816108704,
0.09195119142532349,
0.33618414402008057,
-0.07737669348716736,
0.1398295760154724,
-0.12191751599311829,
0.17880944907665253,
-0.18846262991428375,
0.4774326980113983,
0.0518537275493145,
0.39418014883995056,
-0.32099488377571106,
-0.1259213238954544,
-0.46900951862335205,
0.2998860478401184,
-0.24836677312850952,
0.024124814197421074,
-0.07139328122138977,
0.09258075803518295,
0.5485861897468567,
0.4447728991508484,
-0.057631149888038635,
0.2318606823682785,
-0.21672534942626953,
0.25892966985702515,
-0.5738064646720886,
0.2676144242286682,
-0.01186554878950119,
0.08884279429912567,
0.1441946029663086,
-0.3371603786945343,
-0.033557403832674026,
0.0031607607379555702,
0.2609310448169708,
-0.1328393965959549,
-0.3144960105419159,
0.053510721772909164,
0.3894991874694824,
0.4873790442943573,
-0.0653240755200386,
0.3704742193222046,
-0.2717779278755188,
-0.2141725718975067,
0.14815892279148102,
0.004130540415644646,
-0.08751676231622696,
0.006609737873077393,
0.08123186975717545,
0.21709202229976654,
-0.2944074869155884,
-0.2309710532426834,
0.03867087513208389,
0.007021761499345303,
0.019876502454280853,
0.004748912528157234,
-0.2540012001991272,
-0.05740860849618912,
-0.14791077375411987,
-0.10702884942293167,
-0.039780352264642715,
0.4793081283569336,
-0.056837111711502075,
-0.009118628688156605,
-0.14388395845890045,
0.046042121946811676,
0.4239738881587982,
0.07319018244743347,
-0.2884410321712494,
-0.057094305753707886,
-0.027156442403793335,
0.24365568161010742,
0.03644401207566261,
-0.2875787019729614,
0.10554037243127823,
0.19280275702476501,
0.23696017265319824,
-0.06719765067100525,
0.16316476464271545,
-0.05425933375954628,
0.08807572722434998,
-0.07869669795036316,
0.44978153705596924,
0.11182773113250732,
-0.1634516566991806,
-0.04986341670155525,
-0.2840103507041931
] |
https://github.com/huggingface/datasets/issues/263 | [Feature request] Support for external modality for language datasets | Thanks a lot, @aleSuglia for the very detailed and introductive feature request.
It seems like we could build something pretty useful here indeed.
One of the questions here is that Arrow doesn't have built-in support for generic "tensors" in records but there might be ways to do that in a clean way. We'll probably try to tackle this during the summer. | # Background
In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data.
# Language + Vision
## Use case
Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset.
Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features.
For all these types of features, people use one of the following formats:
1. [HD5F](https://pypi.org/project/h5py/)
2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html)
3. [LMDB](https://lmdb.readthedocs.io/en/release/)
## Implementation considerations
I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following:
1. Download dataset
2. Download images associated with the dataset
3. Write a script that generates the visual features for every image and store them in a specific file
4. Create a DataLoader that maps the visual features to the corresponding language example
In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it.
For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array.
Looking forward to hearing your thoughts about it! | 61 | [Feature request] Support for external modality for language datasets
# Background
In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data.
# Language + Vision
## Use case
Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset.
Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features.
For all these types of features, people use one of the following formats:
1. [HD5F](https://pypi.org/project/h5py/)
2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html)
3. [LMDB](https://lmdb.readthedocs.io/en/release/)
## Implementation considerations
I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following:
1. Download dataset
2. Download images associated with the dataset
3. Write a script that generates the visual features for every image and store them in a specific file
4. Create a DataLoader that maps the visual features to the corresponding language example
In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it.
For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array.
Looking forward to hearing your thoughts about it!
Thanks a lot, @aleSuglia for the very detailed and introductive feature request.
It seems like we could build something pretty useful here indeed.
One of the questions here is that Arrow doesn't have built-in support for generic "tensors" in records but there might be ways to do that in a clean way. We'll probably try to tackle this during the summer. | [
0.000057909637689590454,
-0.14249980449676514,
-0.10484336316585541,
-0.11375996470451355,
-0.02086355909705162,
-0.2757301330566406,
0.35704663395881653,
0.16198910772800446,
-0.1701950877904892,
-0.11541032791137695,
-0.10623925179243088,
0.37419745326042175,
-0.23276959359645844,
0.024785680696368217,
0.22765803337097168,
-0.16313759982585907,
0.11561097949743271,
0.020651452243328094,
0.17515622079372406,
0.03774206340312958,
-0.08029565960168839,
-0.18629886209964752,
-0.0996890664100647,
0.0158085897564888,
-0.1543438583612442,
-0.0065529439598321915,
-0.2325277477502823,
-0.06639491766691208,
0.017445379868149757,
-0.1567315012216568,
-0.41686132550239563,
0.1775112897157669,
-0.006496141664683819,
-0.058712564408779144,
-0.000105389000964351,
0.04106525331735611,
0.05086583271622658,
-0.15447981655597687,
-0.06360666453838348,
-0.2922307252883911,
-0.1718059927225113,
-0.585684597492218,
-0.005184298846870661,
-0.2138667106628418,
0.16897651553153992,
-0.26110175251960754,
0.30336621403694153,
-0.01545475423336029,
0.2199571579694748,
0.04244818165898323,
0.23387333750724792,
0.161965474486351,
0.05709734931588173,
0.31448352336883545,
0.17907854914665222,
0.7218412756919861,
-0.17565013468265533,
-0.026227999478578568,
0.37595510482788086,
-0.19800670444965363,
-0.17143145203590393,
0.5319552421569824,
0.0707271620631218,
-0.1726883351802826,
0.10479634255170822,
-0.15542177855968475,
-0.07425440102815628,
-0.18622636795043945,
-0.1826823651790619,
0.2696191370487213,
0.5540597438812256,
-0.09467975050210953,
-0.39567428827285767,
-0.2771701514720917,
0.10153616964817047,
0.21204380691051483,
-0.1491229236125946,
0.46957603096961975,
-0.08470378816127777,
0.26188746094703674,
-0.1411735713481903,
-0.41724666953086853,
-0.22692696750164032,
0.40050244331359863,
-0.010741110891103745,
-0.11447323858737946,
0.11392751336097717,
0.10642584413290024,
0.12712369859218597,
-0.13947471976280212,
0.24053433537483215,
-0.0852414220571518,
0.1974172294139862,
0.1384705901145935,
0.11991819739341736,
-0.14774388074874878,
0.09294059127569199,
-0.0756620541214943,
0.10103730112314224,
-0.13798709213733673,
0.01419350877404213,
0.16521775722503662,
-0.6861984729766846,
0.37200021743774414,
0.13847512006759644,
-0.31710073351860046,
-0.3466375768184662,
0.1551731377840042,
0.2985229194164276,
-0.057959020137786865,
-0.02686542645096779,
-0.037866875529289246,
0.016913291066884995,
0.044088102877140045,
-0.3268454372882843,
0.00009454227983951569,
0.1069343090057373,
-0.015392139554023743,
-0.09738093614578247,
-0.29253876209259033,
-0.24316465854644775,
0.05811302363872528,
-0.02610037475824356,
-0.07544025033712387,
0.23163223266601562,
0.29516080021858215,
-0.010326506569981575,
0.23807579278945923,
0.0051018185913562775,
-0.688583254814148,
0.06887850165367126,
0.08224189281463623,
-0.45074352622032166,
0.11295709758996964,
0.019686434417963028,
0.576988935470581,
0.10568458586931229,
0.02247123047709465,
0.07950741797685623,
-0.05892676115036011,
0.11541953682899475,
-0.3274696469306946,
0.09448735415935516,
0.014609795063734055,
-0.3158082664012909,
-0.2822078764438629,
-0.001003514975309372,
0.22869281470775604,
-0.19302867352962494,
-0.09520218521356583,
0.013752717524766922,
-0.2000207155942917,
-0.19085589051246643,
0.12177535891532898,
-0.07179111242294312,
0.03978684917092323,
0.3123776316642761,
0.9068846106529236,
-0.3320864737033844,
-0.4840669333934784,
-0.03723093122243881,
-0.036526814103126526,
-0.324636846780777,
-0.15300917625427246,
-0.1083313599228859,
0.25359949469566345,
-0.420646607875824,
-0.1457894742488861,
0.02145562693476677,
-0.07829166948795319,
-0.07302723079919815,
0.253395140171051,
-0.30217626690864563,
-0.06193637102842331,
0.07331472635269165,
-0.14392971992492676,
0.42248621582984924,
-0.2967078387737274,
-0.21420535445213318,
0.19423235952854156,
0.04232398420572281,
0.2526317238807678,
-0.043890126049518585,
0.3999969959259033,
-0.018886562436819077,
-0.13814984261989594,
0.12124057114124298,
0.7113154530525208,
-0.15096837282180786,
0.05194574594497681,
-0.1938297599554062,
-0.36008575558662415,
0.2658924460411072,
0.4229552447795868,
0.013050153851509094,
-0.320580393075943,
0.6397940516471863,
-0.0006153415888547897,
0.1015566736459732,
-0.27745306491851807,
0.12146100401878357,
-0.1934112161397934,
0.29371774196624756,
-0.056287750601768494,
-0.14273060858249664,
-0.2755995988845825,
-0.2272174060344696,
0.001921381801366806,
-0.27046602964401245,
0.2816794216632843,
-0.16634626686573029,
-0.0009555891156196594,
0.20897886157035828,
-0.1393231600522995,
0.09564200043678284,
0.004168681800365448,
0.2037205994129181,
0.10114067792892456,
-0.4169173240661621,
0.25004875659942627,
-0.0902082771062851,
0.02519192546606064,
-0.09754292666912079,
0.03883795067667961,
0.18151582777500153,
0.25944289565086365,
0.01380238588899374,
0.11615631729364395,
0.09846030175685883,
0.5246060490608215,
-0.22382578253746033,
0.036736778914928436,
0.032196030020713806,
-0.0006298646330833435,
0.19920112192630768,
0.4802195429801941,
-0.013226665556430817,
0.39720192551612854,
0.4809134304523468,
-0.6762458086013794,
0.34888923168182373,
-0.16103698313236237,
0.24483957886695862,
-0.15033027529716492,
-0.04259432852268219,
0.2094171643257141,
0.24884049594402313,
0.0853462815284729,
-0.07931265234947205,
0.06880910694599152,
0.08538860827684402,
0.04717571660876274,
-0.33720558881759644,
-0.16118678450584412,
-0.055051032453775406,
0.1943490356206894,
0.004932332783937454,
0.03765670955181122,
-0.38167881965637207,
0.14591914415359497,
0.5345171093940735,
0.23161810636520386,
0.1799445003271103,
0.1668640673160553,
-0.20882341265678406,
-0.30590665340423584,
0.24508261680603027,
-0.21788163483142853,
0.0730600357055664,
0.2838120758533478,
-0.22414368391036987,
0.06247905641794205,
-0.21292643249034882,
0.016898859292268753,
0.15207497775554657,
0.06433805823326111,
0.4003807604312897,
0.05814443528652191,
0.3798503875732422,
0.05604398995637894,
-0.06564906239509583,
-0.42015230655670166,
-0.02211383357644081,
-0.2725445330142975,
0.17469939589500427,
-0.009488408453762531,
-0.18936565518379211,
-0.6152865290641785,
-0.1843087375164032,
-0.03982948884367943,
-0.4452592432498932,
-0.059504665434360504,
0.06663092970848083,
-0.2852562367916107,
-0.17061477899551392,
0.07512357085943222,
0.005399543792009354,
0.37855198979377747,
-0.3618397116661072,
-0.09956996887922287,
0.13897906243801117,
-0.2604553699493408,
-0.1546473205089569,
0.08434541523456573,
0.45434629917144775,
0.061095673590898514,
0.24025312066078186,
0.24544484913349152,
-0.04769609495997429,
-0.13308735191822052,
-0.4327585697174072,
0.27027255296707153,
0.05787661671638489,
0.18861281871795654,
-0.002010919153690338,
-0.5663677453994751,
0.09092481434345245,
-0.06574802100658417,
0.20208606123924255,
0.08892753720283508,
-0.004245337098836899,
-0.06646275520324707,
-0.041693657636642456,
0.12432914972305298,
-0.25342857837677,
0.0937705934047699,
-0.4923432469367981,
-0.5119805335998535,
0.38410139083862305,
-0.14364095032215118,
0.1656588464975357,
0.5681464672088623,
0.0995386391878128,
-0.09538725018501282,
-0.017269892618060112,
0.2712107002735138,
0.030044637620449066,
0.35573941469192505,
-0.05964664742350578,
-0.00017135567031800747,
-0.18747898936271667,
-0.28811389207839966,
-0.21742944419384003,
0.11924582719802856,
0.34939414262771606,
-0.3474395275115967,
-0.3242606520652771,
0.09537963569164276,
0.15616825222969055,
0.039121173322200775,
0.002788536250591278,
0.09059760719537735,
0.0016483336221426725,
-0.0056028813123703,
-0.03885010629892349,
0.0010586418211460114,
-0.06858590990304947,
0.36937886476516724,
0.1696060597896576,
0.3322417438030243,
0.010456539690494537,
0.4449983537197113,
0.3984430432319641,
-0.07358227670192719,
-0.11300954222679138,
0.4104924499988556,
0.34180140495300293,
0.20316557586193085,
-0.1458221673965454,
-0.23186495900154114,
0.4618135690689087,
-0.09981018304824829,
-0.030408352613449097,
0.28454214334487915,
-0.022318728268146515,
-0.5936282277107239,
-0.23098301887512207,
-0.08084748685359955,
-0.4445464015007019,
-0.19342976808547974,
0.3490704894065857,
-0.13693182170391083,
0.47245675325393677,
0.17477980256080627,
-0.5142965316772461,
-0.27790987491607666,
-0.08629505336284637,
0.06226615980267525,
0.04676465317606926,
0.2308104932308197,
0.07125157117843628,
-0.38006019592285156,
-0.08878571540117264,
0.09412881731987,
0.08369322121143341,
0.22389313578605652,
0.2547115087509155,
-0.17679090797901154,
-0.12743863463401794,
0.034318000078201294,
0.11261177062988281,
0.10101473331451416,
-0.3075807988643646,
-0.42941921949386597,
0.13116633892059326,
0.06978920102119446,
-0.23177127540111542,
-0.049864262342453,
-0.14885221421718597,
-0.005981703754514456,
0.1850324273109436,
0.24654413759708405,
-0.0023719221353530884,
-0.14173366129398346,
-0.0064570046961307526,
0.3172285854816437,
0.040690768510103226,
-0.24388627707958221,
0.12231461703777313,
0.16552895307540894,
-0.23723047971725464,
-0.22889426350593567,
-0.13118277490139008,
0.026687854900956154,
0.2431849241256714,
0.11057102680206299,
0.044021353125572205,
-0.007772505283355713,
0.11666637659072876,
0.17600637674331665,
-0.186014324426651,
0.016281813383102417,
-0.1535492092370987,
-0.009497690945863724,
0.20169788599014282,
-0.12320514023303986,
0.28990310430526733,
0.17242003977298737,
-0.24645668268203735,
-0.034241292625665665,
-0.20413659512996674,
0.5062917470932007,
0.3987754285335541,
0.5554392337799072,
0.1340874433517456,
-0.23536217212677002,
-0.1000528484582901,
-0.40590038895606995,
0.07845434546470642,
0.17039160430431366,
-0.08798202872276306,
0.09282431751489639,
-0.25570765137672424,
0.17792966961860657,
-0.14843574166297913,
-0.24349509179592133,
-0.001653272658586502,
0.11467015743255615,
-0.3192111849784851,
0.4626784324645996,
0.2678563892841339,
0.9083016514778137,
0.1739369034767151,
0.377385675907135,
0.06320257484912872,
-0.13929960131645203,
0.4011535048484802,
-0.5117282271385193,
0.19018079340457916,
-0.24072542786598206,
0.036179978400468826,
0.023782530799508095,
0.05003290995955467,
0.09289269894361496,
0.1420459747314453,
-0.09947918355464935,
-0.08329825103282928,
0.6208561062812805,
0.1133590042591095,
0.14243440330028534,
0.23518624901771545,
-0.04020427167415619,
-0.509238064289093,
-0.05928303301334381,
0.1355792135000229,
-0.17568251490592957,
-0.22230315208435059,
-0.14404481649398804,
-0.3420349359512329,
0.08194123208522797,
0.2642250061035156,
-0.21470779180526733,
-0.0011316686868667603,
-0.31605395674705505,
0.17083905637264252,
0.09727121144533157,
0.027449078857898712,
0.478288471698761,
0.065294548869133,
0.10304819792509079,
-0.16767618060112,
0.021499793976545334,
-0.11214615404605865,
0.10283711552619934,
0.1289999634027481,
-0.06453035026788712,
-0.29938387870788574,
0.5649160146713257,
-0.08502010256052017,
-0.23677319288253784,
0.08304701745510101,
0.0265791192650795,
-0.0678921565413475,
-0.3287886381149292,
-0.14087934792041779,
0.3525545001029968,
0.0692693218588829,
-0.20426194369792938,
0.33836910128593445,
0.03363945707678795,
0.005678366869688034,
0.15857583284378052,
0.1495664417743683,
-0.007270533591508865,
0.25499197840690613,
0.09071145206689835,
0.0957421213388443,
-0.041146982461214066,
-0.16024461388587952,
-0.17215493321418762,
-0.06823402643203735,
0.0020589791238307953,
-0.0395037904381752,
0.026654191315174103,
-0.20976653695106506,
0.4513888359069824,
-0.16559414565563202,
-0.06786107271909714,
-0.21938879787921906,
0.1647767722606659,
-0.19182351231575012,
-0.19113689661026,
0.04164791852235794,
0.11022848635911942,
0.012857135385274887,
-0.05677614361047745,
-0.3587936758995056,
-0.022774094715714455,
0.4008125066757202,
-0.4294160008430481,
-0.05830182507634163,
-0.056598298251628876,
0.15040083229541779,
-0.013583265244960785,
0.4569154977798462,
-0.3693554401397705,
-0.062100812792778015,
0.22851333022117615,
0.24095827341079712,
-0.07236424833536148,
-0.33102673292160034,
-0.14566756784915924,
0.08433079719543457,
0.14106443524360657,
0.16944052278995514,
-0.2751305103302002,
-0.16777944564819336,
-0.0756378024816513,
0.15694448351860046,
0.27805861830711365,
0.0947423055768013,
-0.08447694778442383,
-0.3365340828895569,
-0.14364168047904968,
-0.14293862879276276,
-0.32423198223114014,
-0.14539547264575958,
-0.2079688459634781,
0.4222853183746338,
-0.6543207764625549,
0.2695196866989136,
0.29332661628723145,
0.09659712761640549,
-0.12450672686100006,
0.35235708951950073,
0.2550249695777893,
0.09503138065338135,
0.08719712495803833,
0.10928253829479218,
-0.2875726819038391,
0.2659046947956085,
-0.15450090169906616,
0.0013409852981567383,
0.31092217564582825,
0.40306395292282104,
0.15975412726402283,
-0.06661225110292435,
0.14760106801986694,
-0.1723826676607132,
-0.24061782658100128,
0.015078021213412285,
0.36152756214141846,
0.2620096802711487,
-0.203440859913826,
0.08389431238174438,
0.5660724639892578,
-0.16361363232135773,
0.1882483810186386,
0.14680089056491852,
0.8290462493896484,
0.21138867735862732,
0.1585371345281601,
-0.3222101032733917,
0.031565356999635696,
-0.14683860540390015,
-0.08657585084438324,
-0.045918624848127365,
0.18194524943828583,
0.07934410870075226,
0.06892063468694687,
0.2830909788608551,
0.4801357686519623,
0.3831426501274109,
-0.3467298448085785,
0.14105620980262756,
-0.07985468953847885,
0.13514234125614166,
0.5679848194122314,
-0.0949719250202179,
0.29066693782806396,
0.128654345870018,
0.13389630615711212,
0.19713079929351807,
-0.3649284839630127,
0.15649037063121796,
-0.0954352617263794,
-0.09011881798505783,
-0.024757811799645424,
0.2911916673183441,
0.1542280912399292,
-0.0017626313492655754,
-0.37245047092437744,
-0.03930410370230675,
-0.46419787406921387,
0.007182970643043518,
-0.06937752664089203,
0.006460744887590408,
0.037394795566797256,
0.22874414920806885,
0.1294109970331192,
-0.15672966837882996,
0.1997879445552826,
0.25051993131637573,
0.42165490984916687,
-0.23811902105808258,
0.046904556453228,
0.034218333661556244,
0.08216249197721481,
0.11365298926830292,
0.13887600600719452,
-0.02558165416121483,
0.03803078085184097,
-0.3868374228477478,
-0.060294341295957565,
-0.37899571657180786,
-0.02234392985701561,
-0.14588582515716553,
0.04316883534193039,
0.14389751851558685,
0.3281213641166687,
0.35922059416770935,
0.07851466536521912,
-0.1413399875164032,
0.04558682069182396,
0.05479871854186058,
-0.24892735481262207,
-0.31266579031944275,
-0.09545261412858963,
0.17730282247066498,
0.030504576861858368,
-0.023133613169193268,
0.03708590939640999,
-0.25344857573509216,
-0.4080217480659485,
0.43244752287864685,
-0.10378625243902206,
-0.005122853443026543,
-0.07829626649618149,
0.07439973950386047,
-0.1761172115802765,
-0.036730583757162094,
0.40930038690567017,
0.1028507798910141,
0.1296515315771103,
-0.19556064903736115,
-0.2923826575279236,
-0.024753518402576447,
0.10403209924697876,
-0.446216344833374,
-0.06454424560070038,
0.28293246030807495,
0.35475635528564453,
0.34759145975112915,
-0.2640646696090698,
0.14053496718406677,
0.26784682273864746,
-0.2227521538734436,
-0.1304275393486023,
0.1778753101825714,
-0.10760694742202759,
0.2173900604248047,
-0.1289333701133728,
0.04391788691282272,
-0.08149737119674683,
-0.13112716376781464,
0.08348491042852402,
-0.43033623695373535,
-0.1338421106338501,
-0.05983773618936539,
0.28615671396255493,
0.3971823453903198,
0.17493930459022522,
0.004467397928237915,
0.03697832673788071,
-0.3076260983943939,
-0.11685161292552948,
-0.07472445070743561,
-0.07885785400867462,
-0.05538635700941086,
-0.0985003113746643,
0.7773541212081909,
-0.28626009821891785,
0.16906876862049103,
-0.024455809965729713,
0.2367895394563675,
-0.04506422206759453,
-0.2427913099527359,
-0.05080581456422806,
0.03194339573383331,
-0.13855063915252686,
-0.06908584386110306,
0.10783369839191437,
0.417498916387558,
0.0375690832734108,
-0.15753082931041718,
-0.05314356088638306,
-0.14852374792099,
-0.046227529644966125,
-0.24352355301380157,
-0.20733332633972168,
0.2868826687335968,
0.051573701202869415,
-0.15946313738822937,
0.3107649087905884,
-0.4379979968070984,
-0.23906934261322021,
0.33726954460144043,
0.06926348805427551,
0.09162521362304688,
0.3000224828720093,
0.2653142809867859,
-0.3702751100063324,
-0.17168015241622925,
-0.24945783615112305,
-0.24908128380775452,
-0.11871752142906189,
-0.1253124624490738,
-0.1293734908103943
] |
https://github.com/huggingface/datasets/issues/263 | [Feature request] Support for external modality for language datasets | I was looking into Facebook MMF and apparently they decided to use LMDB to store additional features associated with every example: https://github.com/facebookresearch/mmf/blob/master/mmf/datasets/databases/features_database.py
| # Background
In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data.
# Language + Vision
## Use case
Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset.
Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features.
For all these types of features, people use one of the following formats:
1. [HD5F](https://pypi.org/project/h5py/)
2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html)
3. [LMDB](https://lmdb.readthedocs.io/en/release/)
## Implementation considerations
I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following:
1. Download dataset
2. Download images associated with the dataset
3. Write a script that generates the visual features for every image and store them in a specific file
4. Create a DataLoader that maps the visual features to the corresponding language example
In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it.
For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array.
Looking forward to hearing your thoughts about it! | 22 | [Feature request] Support for external modality for language datasets
# Background
In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data.
# Language + Vision
## Use case
Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset.
Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features.
For all these types of features, people use one of the following formats:
1. [HD5F](https://pypi.org/project/h5py/)
2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html)
3. [LMDB](https://lmdb.readthedocs.io/en/release/)
## Implementation considerations
I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following:
1. Download dataset
2. Download images associated with the dataset
3. Write a script that generates the visual features for every image and store them in a specific file
4. Create a DataLoader that maps the visual features to the corresponding language example
In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it.
For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array.
Looking forward to hearing your thoughts about it!
I was looking into Facebook MMF and apparently they decided to use LMDB to store additional features associated with every example: https://github.com/facebookresearch/mmf/blob/master/mmf/datasets/databases/features_database.py
| [
0.000057909637689590454,
-0.14249980449676514,
-0.10484336316585541,
-0.11375996470451355,
-0.02086355909705162,
-0.2757301330566406,
0.35704663395881653,
0.16198910772800446,
-0.1701950877904892,
-0.11541032791137695,
-0.10623925179243088,
0.37419745326042175,
-0.23276959359645844,
0.024785680696368217,
0.22765803337097168,
-0.16313759982585907,
0.11561097949743271,
0.020651452243328094,
0.17515622079372406,
0.03774206340312958,
-0.08029565960168839,
-0.18629886209964752,
-0.0996890664100647,
0.0158085897564888,
-0.1543438583612442,
-0.0065529439598321915,
-0.2325277477502823,
-0.06639491766691208,
0.017445379868149757,
-0.1567315012216568,
-0.41686132550239563,
0.1775112897157669,
-0.006496141664683819,
-0.058712564408779144,
-0.000105389000964351,
0.04106525331735611,
0.05086583271622658,
-0.15447981655597687,
-0.06360666453838348,
-0.2922307252883911,
-0.1718059927225113,
-0.585684597492218,
-0.005184298846870661,
-0.2138667106628418,
0.16897651553153992,
-0.26110175251960754,
0.30336621403694153,
-0.01545475423336029,
0.2199571579694748,
0.04244818165898323,
0.23387333750724792,
0.161965474486351,
0.05709734931588173,
0.31448352336883545,
0.17907854914665222,
0.7218412756919861,
-0.17565013468265533,
-0.026227999478578568,
0.37595510482788086,
-0.19800670444965363,
-0.17143145203590393,
0.5319552421569824,
0.0707271620631218,
-0.1726883351802826,
0.10479634255170822,
-0.15542177855968475,
-0.07425440102815628,
-0.18622636795043945,
-0.1826823651790619,
0.2696191370487213,
0.5540597438812256,
-0.09467975050210953,
-0.39567428827285767,
-0.2771701514720917,
0.10153616964817047,
0.21204380691051483,
-0.1491229236125946,
0.46957603096961975,
-0.08470378816127777,
0.26188746094703674,
-0.1411735713481903,
-0.41724666953086853,
-0.22692696750164032,
0.40050244331359863,
-0.010741110891103745,
-0.11447323858737946,
0.11392751336097717,
0.10642584413290024,
0.12712369859218597,
-0.13947471976280212,
0.24053433537483215,
-0.0852414220571518,
0.1974172294139862,
0.1384705901145935,
0.11991819739341736,
-0.14774388074874878,
0.09294059127569199,
-0.0756620541214943,
0.10103730112314224,
-0.13798709213733673,
0.01419350877404213,
0.16521775722503662,
-0.6861984729766846,
0.37200021743774414,
0.13847512006759644,
-0.31710073351860046,
-0.3466375768184662,
0.1551731377840042,
0.2985229194164276,
-0.057959020137786865,
-0.02686542645096779,
-0.037866875529289246,
0.016913291066884995,
0.044088102877140045,
-0.3268454372882843,
0.00009454227983951569,
0.1069343090057373,
-0.015392139554023743,
-0.09738093614578247,
-0.29253876209259033,
-0.24316465854644775,
0.05811302363872528,
-0.02610037475824356,
-0.07544025033712387,
0.23163223266601562,
0.29516080021858215,
-0.010326506569981575,
0.23807579278945923,
0.0051018185913562775,
-0.688583254814148,
0.06887850165367126,
0.08224189281463623,
-0.45074352622032166,
0.11295709758996964,
0.019686434417963028,
0.576988935470581,
0.10568458586931229,
0.02247123047709465,
0.07950741797685623,
-0.05892676115036011,
0.11541953682899475,
-0.3274696469306946,
0.09448735415935516,
0.014609795063734055,
-0.3158082664012909,
-0.2822078764438629,
-0.001003514975309372,
0.22869281470775604,
-0.19302867352962494,
-0.09520218521356583,
0.013752717524766922,
-0.2000207155942917,
-0.19085589051246643,
0.12177535891532898,
-0.07179111242294312,
0.03978684917092323,
0.3123776316642761,
0.9068846106529236,
-0.3320864737033844,
-0.4840669333934784,
-0.03723093122243881,
-0.036526814103126526,
-0.324636846780777,
-0.15300917625427246,
-0.1083313599228859,
0.25359949469566345,
-0.420646607875824,
-0.1457894742488861,
0.02145562693476677,
-0.07829166948795319,
-0.07302723079919815,
0.253395140171051,
-0.30217626690864563,
-0.06193637102842331,
0.07331472635269165,
-0.14392971992492676,
0.42248621582984924,
-0.2967078387737274,
-0.21420535445213318,
0.19423235952854156,
0.04232398420572281,
0.2526317238807678,
-0.043890126049518585,
0.3999969959259033,
-0.018886562436819077,
-0.13814984261989594,
0.12124057114124298,
0.7113154530525208,
-0.15096837282180786,
0.05194574594497681,
-0.1938297599554062,
-0.36008575558662415,
0.2658924460411072,
0.4229552447795868,
0.013050153851509094,
-0.320580393075943,
0.6397940516471863,
-0.0006153415888547897,
0.1015566736459732,
-0.27745306491851807,
0.12146100401878357,
-0.1934112161397934,
0.29371774196624756,
-0.056287750601768494,
-0.14273060858249664,
-0.2755995988845825,
-0.2272174060344696,
0.001921381801366806,
-0.27046602964401245,
0.2816794216632843,
-0.16634626686573029,
-0.0009555891156196594,
0.20897886157035828,
-0.1393231600522995,
0.09564200043678284,
0.004168681800365448,
0.2037205994129181,
0.10114067792892456,
-0.4169173240661621,
0.25004875659942627,
-0.0902082771062851,
0.02519192546606064,
-0.09754292666912079,
0.03883795067667961,
0.18151582777500153,
0.25944289565086365,
0.01380238588899374,
0.11615631729364395,
0.09846030175685883,
0.5246060490608215,
-0.22382578253746033,
0.036736778914928436,
0.032196030020713806,
-0.0006298646330833435,
0.19920112192630768,
0.4802195429801941,
-0.013226665556430817,
0.39720192551612854,
0.4809134304523468,
-0.6762458086013794,
0.34888923168182373,
-0.16103698313236237,
0.24483957886695862,
-0.15033027529716492,
-0.04259432852268219,
0.2094171643257141,
0.24884049594402313,
0.0853462815284729,
-0.07931265234947205,
0.06880910694599152,
0.08538860827684402,
0.04717571660876274,
-0.33720558881759644,
-0.16118678450584412,
-0.055051032453775406,
0.1943490356206894,
0.004932332783937454,
0.03765670955181122,
-0.38167881965637207,
0.14591914415359497,
0.5345171093940735,
0.23161810636520386,
0.1799445003271103,
0.1668640673160553,
-0.20882341265678406,
-0.30590665340423584,
0.24508261680603027,
-0.21788163483142853,
0.0730600357055664,
0.2838120758533478,
-0.22414368391036987,
0.06247905641794205,
-0.21292643249034882,
0.016898859292268753,
0.15207497775554657,
0.06433805823326111,
0.4003807604312897,
0.05814443528652191,
0.3798503875732422,
0.05604398995637894,
-0.06564906239509583,
-0.42015230655670166,
-0.02211383357644081,
-0.2725445330142975,
0.17469939589500427,
-0.009488408453762531,
-0.18936565518379211,
-0.6152865290641785,
-0.1843087375164032,
-0.03982948884367943,
-0.4452592432498932,
-0.059504665434360504,
0.06663092970848083,
-0.2852562367916107,
-0.17061477899551392,
0.07512357085943222,
0.005399543792009354,
0.37855198979377747,
-0.3618397116661072,
-0.09956996887922287,
0.13897906243801117,
-0.2604553699493408,
-0.1546473205089569,
0.08434541523456573,
0.45434629917144775,
0.061095673590898514,
0.24025312066078186,
0.24544484913349152,
-0.04769609495997429,
-0.13308735191822052,
-0.4327585697174072,
0.27027255296707153,
0.05787661671638489,
0.18861281871795654,
-0.002010919153690338,
-0.5663677453994751,
0.09092481434345245,
-0.06574802100658417,
0.20208606123924255,
0.08892753720283508,
-0.004245337098836899,
-0.06646275520324707,
-0.041693657636642456,
0.12432914972305298,
-0.25342857837677,
0.0937705934047699,
-0.4923432469367981,
-0.5119805335998535,
0.38410139083862305,
-0.14364095032215118,
0.1656588464975357,
0.5681464672088623,
0.0995386391878128,
-0.09538725018501282,
-0.017269892618060112,
0.2712107002735138,
0.030044637620449066,
0.35573941469192505,
-0.05964664742350578,
-0.00017135567031800747,
-0.18747898936271667,
-0.28811389207839966,
-0.21742944419384003,
0.11924582719802856,
0.34939414262771606,
-0.3474395275115967,
-0.3242606520652771,
0.09537963569164276,
0.15616825222969055,
0.039121173322200775,
0.002788536250591278,
0.09059760719537735,
0.0016483336221426725,
-0.0056028813123703,
-0.03885010629892349,
0.0010586418211460114,
-0.06858590990304947,
0.36937886476516724,
0.1696060597896576,
0.3322417438030243,
0.010456539690494537,
0.4449983537197113,
0.3984430432319641,
-0.07358227670192719,
-0.11300954222679138,
0.4104924499988556,
0.34180140495300293,
0.20316557586193085,
-0.1458221673965454,
-0.23186495900154114,
0.4618135690689087,
-0.09981018304824829,
-0.030408352613449097,
0.28454214334487915,
-0.022318728268146515,
-0.5936282277107239,
-0.23098301887512207,
-0.08084748685359955,
-0.4445464015007019,
-0.19342976808547974,
0.3490704894065857,
-0.13693182170391083,
0.47245675325393677,
0.17477980256080627,
-0.5142965316772461,
-0.27790987491607666,
-0.08629505336284637,
0.06226615980267525,
0.04676465317606926,
0.2308104932308197,
0.07125157117843628,
-0.38006019592285156,
-0.08878571540117264,
0.09412881731987,
0.08369322121143341,
0.22389313578605652,
0.2547115087509155,
-0.17679090797901154,
-0.12743863463401794,
0.034318000078201294,
0.11261177062988281,
0.10101473331451416,
-0.3075807988643646,
-0.42941921949386597,
0.13116633892059326,
0.06978920102119446,
-0.23177127540111542,
-0.049864262342453,
-0.14885221421718597,
-0.005981703754514456,
0.1850324273109436,
0.24654413759708405,
-0.0023719221353530884,
-0.14173366129398346,
-0.0064570046961307526,
0.3172285854816437,
0.040690768510103226,
-0.24388627707958221,
0.12231461703777313,
0.16552895307540894,
-0.23723047971725464,
-0.22889426350593567,
-0.13118277490139008,
0.026687854900956154,
0.2431849241256714,
0.11057102680206299,
0.044021353125572205,
-0.007772505283355713,
0.11666637659072876,
0.17600637674331665,
-0.186014324426651,
0.016281813383102417,
-0.1535492092370987,
-0.009497690945863724,
0.20169788599014282,
-0.12320514023303986,
0.28990310430526733,
0.17242003977298737,
-0.24645668268203735,
-0.034241292625665665,
-0.20413659512996674,
0.5062917470932007,
0.3987754285335541,
0.5554392337799072,
0.1340874433517456,
-0.23536217212677002,
-0.1000528484582901,
-0.40590038895606995,
0.07845434546470642,
0.17039160430431366,
-0.08798202872276306,
0.09282431751489639,
-0.25570765137672424,
0.17792966961860657,
-0.14843574166297913,
-0.24349509179592133,
-0.001653272658586502,
0.11467015743255615,
-0.3192111849784851,
0.4626784324645996,
0.2678563892841339,
0.9083016514778137,
0.1739369034767151,
0.377385675907135,
0.06320257484912872,
-0.13929960131645203,
0.4011535048484802,
-0.5117282271385193,
0.19018079340457916,
-0.24072542786598206,
0.036179978400468826,
0.023782530799508095,
0.05003290995955467,
0.09289269894361496,
0.1420459747314453,
-0.09947918355464935,
-0.08329825103282928,
0.6208561062812805,
0.1133590042591095,
0.14243440330028534,
0.23518624901771545,
-0.04020427167415619,
-0.509238064289093,
-0.05928303301334381,
0.1355792135000229,
-0.17568251490592957,
-0.22230315208435059,
-0.14404481649398804,
-0.3420349359512329,
0.08194123208522797,
0.2642250061035156,
-0.21470779180526733,
-0.0011316686868667603,
-0.31605395674705505,
0.17083905637264252,
0.09727121144533157,
0.027449078857898712,
0.478288471698761,
0.065294548869133,
0.10304819792509079,
-0.16767618060112,
0.021499793976545334,
-0.11214615404605865,
0.10283711552619934,
0.1289999634027481,
-0.06453035026788712,
-0.29938387870788574,
0.5649160146713257,
-0.08502010256052017,
-0.23677319288253784,
0.08304701745510101,
0.0265791192650795,
-0.0678921565413475,
-0.3287886381149292,
-0.14087934792041779,
0.3525545001029968,
0.0692693218588829,
-0.20426194369792938,
0.33836910128593445,
0.03363945707678795,
0.005678366869688034,
0.15857583284378052,
0.1495664417743683,
-0.007270533591508865,
0.25499197840690613,
0.09071145206689835,
0.0957421213388443,
-0.041146982461214066,
-0.16024461388587952,
-0.17215493321418762,
-0.06823402643203735,
0.0020589791238307953,
-0.0395037904381752,
0.026654191315174103,
-0.20976653695106506,
0.4513888359069824,
-0.16559414565563202,
-0.06786107271909714,
-0.21938879787921906,
0.1647767722606659,
-0.19182351231575012,
-0.19113689661026,
0.04164791852235794,
0.11022848635911942,
0.012857135385274887,
-0.05677614361047745,
-0.3587936758995056,
-0.022774094715714455,
0.4008125066757202,
-0.4294160008430481,
-0.05830182507634163,
-0.056598298251628876,
0.15040083229541779,
-0.013583265244960785,
0.4569154977798462,
-0.3693554401397705,
-0.062100812792778015,
0.22851333022117615,
0.24095827341079712,
-0.07236424833536148,
-0.33102673292160034,
-0.14566756784915924,
0.08433079719543457,
0.14106443524360657,
0.16944052278995514,
-0.2751305103302002,
-0.16777944564819336,
-0.0756378024816513,
0.15694448351860046,
0.27805861830711365,
0.0947423055768013,
-0.08447694778442383,
-0.3365340828895569,
-0.14364168047904968,
-0.14293862879276276,
-0.32423198223114014,
-0.14539547264575958,
-0.2079688459634781,
0.4222853183746338,
-0.6543207764625549,
0.2695196866989136,
0.29332661628723145,
0.09659712761640549,
-0.12450672686100006,
0.35235708951950073,
0.2550249695777893,
0.09503138065338135,
0.08719712495803833,
0.10928253829479218,
-0.2875726819038391,
0.2659046947956085,
-0.15450090169906616,
0.0013409852981567383,
0.31092217564582825,
0.40306395292282104,
0.15975412726402283,
-0.06661225110292435,
0.14760106801986694,
-0.1723826676607132,
-0.24061782658100128,
0.015078021213412285,
0.36152756214141846,
0.2620096802711487,
-0.203440859913826,
0.08389431238174438,
0.5660724639892578,
-0.16361363232135773,
0.1882483810186386,
0.14680089056491852,
0.8290462493896484,
0.21138867735862732,
0.1585371345281601,
-0.3222101032733917,
0.031565356999635696,
-0.14683860540390015,
-0.08657585084438324,
-0.045918624848127365,
0.18194524943828583,
0.07934410870075226,
0.06892063468694687,
0.2830909788608551,
0.4801357686519623,
0.3831426501274109,
-0.3467298448085785,
0.14105620980262756,
-0.07985468953847885,
0.13514234125614166,
0.5679848194122314,
-0.0949719250202179,
0.29066693782806396,
0.128654345870018,
0.13389630615711212,
0.19713079929351807,
-0.3649284839630127,
0.15649037063121796,
-0.0954352617263794,
-0.09011881798505783,
-0.024757811799645424,
0.2911916673183441,
0.1542280912399292,
-0.0017626313492655754,
-0.37245047092437744,
-0.03930410370230675,
-0.46419787406921387,
0.007182970643043518,
-0.06937752664089203,
0.006460744887590408,
0.037394795566797256,
0.22874414920806885,
0.1294109970331192,
-0.15672966837882996,
0.1997879445552826,
0.25051993131637573,
0.42165490984916687,
-0.23811902105808258,
0.046904556453228,
0.034218333661556244,
0.08216249197721481,
0.11365298926830292,
0.13887600600719452,
-0.02558165416121483,
0.03803078085184097,
-0.3868374228477478,
-0.060294341295957565,
-0.37899571657180786,
-0.02234392985701561,
-0.14588582515716553,
0.04316883534193039,
0.14389751851558685,
0.3281213641166687,
0.35922059416770935,
0.07851466536521912,
-0.1413399875164032,
0.04558682069182396,
0.05479871854186058,
-0.24892735481262207,
-0.31266579031944275,
-0.09545261412858963,
0.17730282247066498,
0.030504576861858368,
-0.023133613169193268,
0.03708590939640999,
-0.25344857573509216,
-0.4080217480659485,
0.43244752287864685,
-0.10378625243902206,
-0.005122853443026543,
-0.07829626649618149,
0.07439973950386047,
-0.1761172115802765,
-0.036730583757162094,
0.40930038690567017,
0.1028507798910141,
0.1296515315771103,
-0.19556064903736115,
-0.2923826575279236,
-0.024753518402576447,
0.10403209924697876,
-0.446216344833374,
-0.06454424560070038,
0.28293246030807495,
0.35475635528564453,
0.34759145975112915,
-0.2640646696090698,
0.14053496718406677,
0.26784682273864746,
-0.2227521538734436,
-0.1304275393486023,
0.1778753101825714,
-0.10760694742202759,
0.2173900604248047,
-0.1289333701133728,
0.04391788691282272,
-0.08149737119674683,
-0.13112716376781464,
0.08348491042852402,
-0.43033623695373535,
-0.1338421106338501,
-0.05983773618936539,
0.28615671396255493,
0.3971823453903198,
0.17493930459022522,
0.004467397928237915,
0.03697832673788071,
-0.3076260983943939,
-0.11685161292552948,
-0.07472445070743561,
-0.07885785400867462,
-0.05538635700941086,
-0.0985003113746643,
0.7773541212081909,
-0.28626009821891785,
0.16906876862049103,
-0.024455809965729713,
0.2367895394563675,
-0.04506422206759453,
-0.2427913099527359,
-0.05080581456422806,
0.03194339573383331,
-0.13855063915252686,
-0.06908584386110306,
0.10783369839191437,
0.417498916387558,
0.0375690832734108,
-0.15753082931041718,
-0.05314356088638306,
-0.14852374792099,
-0.046227529644966125,
-0.24352355301380157,
-0.20733332633972168,
0.2868826687335968,
0.051573701202869415,
-0.15946313738822937,
0.3107649087905884,
-0.4379979968070984,
-0.23906934261322021,
0.33726954460144043,
0.06926348805427551,
0.09162521362304688,
0.3000224828720093,
0.2653142809867859,
-0.3702751100063324,
-0.17168015241622925,
-0.24945783615112305,
-0.24908128380775452,
-0.11871752142906189,
-0.1253124624490738,
-0.1293734908103943
] |
https://github.com/huggingface/datasets/issues/263 | [Feature request] Support for external modality for language datasets | I saw the Mozilla common_voice dataset in model hub, which has mp3 audio recordings as part it. It's use predominantly maybe in ASR and TTS, but dataset is a Language + Voice Dataset similar to @aleSuglia's point about Language + Vision.
https://huggingface.co/datasets/common_voice | # Background
In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data.
# Language + Vision
## Use case
Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset.
Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features.
For all these types of features, people use one of the following formats:
1. [HD5F](https://pypi.org/project/h5py/)
2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html)
3. [LMDB](https://lmdb.readthedocs.io/en/release/)
## Implementation considerations
I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following:
1. Download dataset
2. Download images associated with the dataset
3. Write a script that generates the visual features for every image and store them in a specific file
4. Create a DataLoader that maps the visual features to the corresponding language example
In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it.
For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array.
Looking forward to hearing your thoughts about it! | 42 | [Feature request] Support for external modality for language datasets
# Background
In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data.
# Language + Vision
## Use case
Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset.
Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features.
For all these types of features, people use one of the following formats:
1. [HD5F](https://pypi.org/project/h5py/)
2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html)
3. [LMDB](https://lmdb.readthedocs.io/en/release/)
## Implementation considerations
I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following:
1. Download dataset
2. Download images associated with the dataset
3. Write a script that generates the visual features for every image and store them in a specific file
4. Create a DataLoader that maps the visual features to the corresponding language example
In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it.
For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array.
Looking forward to hearing your thoughts about it!
I saw the Mozilla common_voice dataset in model hub, which has mp3 audio recordings as part it. It's use predominantly maybe in ASR and TTS, but dataset is a Language + Voice Dataset similar to @aleSuglia's point about Language + Vision.
https://huggingface.co/datasets/common_voice | [
0.000057909637689590454,
-0.14249980449676514,
-0.10484336316585541,
-0.11375996470451355,
-0.02086355909705162,
-0.2757301330566406,
0.35704663395881653,
0.16198910772800446,
-0.1701950877904892,
-0.11541032791137695,
-0.10623925179243088,
0.37419745326042175,
-0.23276959359645844,
0.024785680696368217,
0.22765803337097168,
-0.16313759982585907,
0.11561097949743271,
0.020651452243328094,
0.17515622079372406,
0.03774206340312958,
-0.08029565960168839,
-0.18629886209964752,
-0.0996890664100647,
0.0158085897564888,
-0.1543438583612442,
-0.0065529439598321915,
-0.2325277477502823,
-0.06639491766691208,
0.017445379868149757,
-0.1567315012216568,
-0.41686132550239563,
0.1775112897157669,
-0.006496141664683819,
-0.058712564408779144,
-0.000105389000964351,
0.04106525331735611,
0.05086583271622658,
-0.15447981655597687,
-0.06360666453838348,
-0.2922307252883911,
-0.1718059927225113,
-0.585684597492218,
-0.005184298846870661,
-0.2138667106628418,
0.16897651553153992,
-0.26110175251960754,
0.30336621403694153,
-0.01545475423336029,
0.2199571579694748,
0.04244818165898323,
0.23387333750724792,
0.161965474486351,
0.05709734931588173,
0.31448352336883545,
0.17907854914665222,
0.7218412756919861,
-0.17565013468265533,
-0.026227999478578568,
0.37595510482788086,
-0.19800670444965363,
-0.17143145203590393,
0.5319552421569824,
0.0707271620631218,
-0.1726883351802826,
0.10479634255170822,
-0.15542177855968475,
-0.07425440102815628,
-0.18622636795043945,
-0.1826823651790619,
0.2696191370487213,
0.5540597438812256,
-0.09467975050210953,
-0.39567428827285767,
-0.2771701514720917,
0.10153616964817047,
0.21204380691051483,
-0.1491229236125946,
0.46957603096961975,
-0.08470378816127777,
0.26188746094703674,
-0.1411735713481903,
-0.41724666953086853,
-0.22692696750164032,
0.40050244331359863,
-0.010741110891103745,
-0.11447323858737946,
0.11392751336097717,
0.10642584413290024,
0.12712369859218597,
-0.13947471976280212,
0.24053433537483215,
-0.0852414220571518,
0.1974172294139862,
0.1384705901145935,
0.11991819739341736,
-0.14774388074874878,
0.09294059127569199,
-0.0756620541214943,
0.10103730112314224,
-0.13798709213733673,
0.01419350877404213,
0.16521775722503662,
-0.6861984729766846,
0.37200021743774414,
0.13847512006759644,
-0.31710073351860046,
-0.3466375768184662,
0.1551731377840042,
0.2985229194164276,
-0.057959020137786865,
-0.02686542645096779,
-0.037866875529289246,
0.016913291066884995,
0.044088102877140045,
-0.3268454372882843,
0.00009454227983951569,
0.1069343090057373,
-0.015392139554023743,
-0.09738093614578247,
-0.29253876209259033,
-0.24316465854644775,
0.05811302363872528,
-0.02610037475824356,
-0.07544025033712387,
0.23163223266601562,
0.29516080021858215,
-0.010326506569981575,
0.23807579278945923,
0.0051018185913562775,
-0.688583254814148,
0.06887850165367126,
0.08224189281463623,
-0.45074352622032166,
0.11295709758996964,
0.019686434417963028,
0.576988935470581,
0.10568458586931229,
0.02247123047709465,
0.07950741797685623,
-0.05892676115036011,
0.11541953682899475,
-0.3274696469306946,
0.09448735415935516,
0.014609795063734055,
-0.3158082664012909,
-0.2822078764438629,
-0.001003514975309372,
0.22869281470775604,
-0.19302867352962494,
-0.09520218521356583,
0.013752717524766922,
-0.2000207155942917,
-0.19085589051246643,
0.12177535891532898,
-0.07179111242294312,
0.03978684917092323,
0.3123776316642761,
0.9068846106529236,
-0.3320864737033844,
-0.4840669333934784,
-0.03723093122243881,
-0.036526814103126526,
-0.324636846780777,
-0.15300917625427246,
-0.1083313599228859,
0.25359949469566345,
-0.420646607875824,
-0.1457894742488861,
0.02145562693476677,
-0.07829166948795319,
-0.07302723079919815,
0.253395140171051,
-0.30217626690864563,
-0.06193637102842331,
0.07331472635269165,
-0.14392971992492676,
0.42248621582984924,
-0.2967078387737274,
-0.21420535445213318,
0.19423235952854156,
0.04232398420572281,
0.2526317238807678,
-0.043890126049518585,
0.3999969959259033,
-0.018886562436819077,
-0.13814984261989594,
0.12124057114124298,
0.7113154530525208,
-0.15096837282180786,
0.05194574594497681,
-0.1938297599554062,
-0.36008575558662415,
0.2658924460411072,
0.4229552447795868,
0.013050153851509094,
-0.320580393075943,
0.6397940516471863,
-0.0006153415888547897,
0.1015566736459732,
-0.27745306491851807,
0.12146100401878357,
-0.1934112161397934,
0.29371774196624756,
-0.056287750601768494,
-0.14273060858249664,
-0.2755995988845825,
-0.2272174060344696,
0.001921381801366806,
-0.27046602964401245,
0.2816794216632843,
-0.16634626686573029,
-0.0009555891156196594,
0.20897886157035828,
-0.1393231600522995,
0.09564200043678284,
0.004168681800365448,
0.2037205994129181,
0.10114067792892456,
-0.4169173240661621,
0.25004875659942627,
-0.0902082771062851,
0.02519192546606064,
-0.09754292666912079,
0.03883795067667961,
0.18151582777500153,
0.25944289565086365,
0.01380238588899374,
0.11615631729364395,
0.09846030175685883,
0.5246060490608215,
-0.22382578253746033,
0.036736778914928436,
0.032196030020713806,
-0.0006298646330833435,
0.19920112192630768,
0.4802195429801941,
-0.013226665556430817,
0.39720192551612854,
0.4809134304523468,
-0.6762458086013794,
0.34888923168182373,
-0.16103698313236237,
0.24483957886695862,
-0.15033027529716492,
-0.04259432852268219,
0.2094171643257141,
0.24884049594402313,
0.0853462815284729,
-0.07931265234947205,
0.06880910694599152,
0.08538860827684402,
0.04717571660876274,
-0.33720558881759644,
-0.16118678450584412,
-0.055051032453775406,
0.1943490356206894,
0.004932332783937454,
0.03765670955181122,
-0.38167881965637207,
0.14591914415359497,
0.5345171093940735,
0.23161810636520386,
0.1799445003271103,
0.1668640673160553,
-0.20882341265678406,
-0.30590665340423584,
0.24508261680603027,
-0.21788163483142853,
0.0730600357055664,
0.2838120758533478,
-0.22414368391036987,
0.06247905641794205,
-0.21292643249034882,
0.016898859292268753,
0.15207497775554657,
0.06433805823326111,
0.4003807604312897,
0.05814443528652191,
0.3798503875732422,
0.05604398995637894,
-0.06564906239509583,
-0.42015230655670166,
-0.02211383357644081,
-0.2725445330142975,
0.17469939589500427,
-0.009488408453762531,
-0.18936565518379211,
-0.6152865290641785,
-0.1843087375164032,
-0.03982948884367943,
-0.4452592432498932,
-0.059504665434360504,
0.06663092970848083,
-0.2852562367916107,
-0.17061477899551392,
0.07512357085943222,
0.005399543792009354,
0.37855198979377747,
-0.3618397116661072,
-0.09956996887922287,
0.13897906243801117,
-0.2604553699493408,
-0.1546473205089569,
0.08434541523456573,
0.45434629917144775,
0.061095673590898514,
0.24025312066078186,
0.24544484913349152,
-0.04769609495997429,
-0.13308735191822052,
-0.4327585697174072,
0.27027255296707153,
0.05787661671638489,
0.18861281871795654,
-0.002010919153690338,
-0.5663677453994751,
0.09092481434345245,
-0.06574802100658417,
0.20208606123924255,
0.08892753720283508,
-0.004245337098836899,
-0.06646275520324707,
-0.041693657636642456,
0.12432914972305298,
-0.25342857837677,
0.0937705934047699,
-0.4923432469367981,
-0.5119805335998535,
0.38410139083862305,
-0.14364095032215118,
0.1656588464975357,
0.5681464672088623,
0.0995386391878128,
-0.09538725018501282,
-0.017269892618060112,
0.2712107002735138,
0.030044637620449066,
0.35573941469192505,
-0.05964664742350578,
-0.00017135567031800747,
-0.18747898936271667,
-0.28811389207839966,
-0.21742944419384003,
0.11924582719802856,
0.34939414262771606,
-0.3474395275115967,
-0.3242606520652771,
0.09537963569164276,
0.15616825222969055,
0.039121173322200775,
0.002788536250591278,
0.09059760719537735,
0.0016483336221426725,
-0.0056028813123703,
-0.03885010629892349,
0.0010586418211460114,
-0.06858590990304947,
0.36937886476516724,
0.1696060597896576,
0.3322417438030243,
0.010456539690494537,
0.4449983537197113,
0.3984430432319641,
-0.07358227670192719,
-0.11300954222679138,
0.4104924499988556,
0.34180140495300293,
0.20316557586193085,
-0.1458221673965454,
-0.23186495900154114,
0.4618135690689087,
-0.09981018304824829,
-0.030408352613449097,
0.28454214334487915,
-0.022318728268146515,
-0.5936282277107239,
-0.23098301887512207,
-0.08084748685359955,
-0.4445464015007019,
-0.19342976808547974,
0.3490704894065857,
-0.13693182170391083,
0.47245675325393677,
0.17477980256080627,
-0.5142965316772461,
-0.27790987491607666,
-0.08629505336284637,
0.06226615980267525,
0.04676465317606926,
0.2308104932308197,
0.07125157117843628,
-0.38006019592285156,
-0.08878571540117264,
0.09412881731987,
0.08369322121143341,
0.22389313578605652,
0.2547115087509155,
-0.17679090797901154,
-0.12743863463401794,
0.034318000078201294,
0.11261177062988281,
0.10101473331451416,
-0.3075807988643646,
-0.42941921949386597,
0.13116633892059326,
0.06978920102119446,
-0.23177127540111542,
-0.049864262342453,
-0.14885221421718597,
-0.005981703754514456,
0.1850324273109436,
0.24654413759708405,
-0.0023719221353530884,
-0.14173366129398346,
-0.0064570046961307526,
0.3172285854816437,
0.040690768510103226,
-0.24388627707958221,
0.12231461703777313,
0.16552895307540894,
-0.23723047971725464,
-0.22889426350593567,
-0.13118277490139008,
0.026687854900956154,
0.2431849241256714,
0.11057102680206299,
0.044021353125572205,
-0.007772505283355713,
0.11666637659072876,
0.17600637674331665,
-0.186014324426651,
0.016281813383102417,
-0.1535492092370987,
-0.009497690945863724,
0.20169788599014282,
-0.12320514023303986,
0.28990310430526733,
0.17242003977298737,
-0.24645668268203735,
-0.034241292625665665,
-0.20413659512996674,
0.5062917470932007,
0.3987754285335541,
0.5554392337799072,
0.1340874433517456,
-0.23536217212677002,
-0.1000528484582901,
-0.40590038895606995,
0.07845434546470642,
0.17039160430431366,
-0.08798202872276306,
0.09282431751489639,
-0.25570765137672424,
0.17792966961860657,
-0.14843574166297913,
-0.24349509179592133,
-0.001653272658586502,
0.11467015743255615,
-0.3192111849784851,
0.4626784324645996,
0.2678563892841339,
0.9083016514778137,
0.1739369034767151,
0.377385675907135,
0.06320257484912872,
-0.13929960131645203,
0.4011535048484802,
-0.5117282271385193,
0.19018079340457916,
-0.24072542786598206,
0.036179978400468826,
0.023782530799508095,
0.05003290995955467,
0.09289269894361496,
0.1420459747314453,
-0.09947918355464935,
-0.08329825103282928,
0.6208561062812805,
0.1133590042591095,
0.14243440330028534,
0.23518624901771545,
-0.04020427167415619,
-0.509238064289093,
-0.05928303301334381,
0.1355792135000229,
-0.17568251490592957,
-0.22230315208435059,
-0.14404481649398804,
-0.3420349359512329,
0.08194123208522797,
0.2642250061035156,
-0.21470779180526733,
-0.0011316686868667603,
-0.31605395674705505,
0.17083905637264252,
0.09727121144533157,
0.027449078857898712,
0.478288471698761,
0.065294548869133,
0.10304819792509079,
-0.16767618060112,
0.021499793976545334,
-0.11214615404605865,
0.10283711552619934,
0.1289999634027481,
-0.06453035026788712,
-0.29938387870788574,
0.5649160146713257,
-0.08502010256052017,
-0.23677319288253784,
0.08304701745510101,
0.0265791192650795,
-0.0678921565413475,
-0.3287886381149292,
-0.14087934792041779,
0.3525545001029968,
0.0692693218588829,
-0.20426194369792938,
0.33836910128593445,
0.03363945707678795,
0.005678366869688034,
0.15857583284378052,
0.1495664417743683,
-0.007270533591508865,
0.25499197840690613,
0.09071145206689835,
0.0957421213388443,
-0.041146982461214066,
-0.16024461388587952,
-0.17215493321418762,
-0.06823402643203735,
0.0020589791238307953,
-0.0395037904381752,
0.026654191315174103,
-0.20976653695106506,
0.4513888359069824,
-0.16559414565563202,
-0.06786107271909714,
-0.21938879787921906,
0.1647767722606659,
-0.19182351231575012,
-0.19113689661026,
0.04164791852235794,
0.11022848635911942,
0.012857135385274887,
-0.05677614361047745,
-0.3587936758995056,
-0.022774094715714455,
0.4008125066757202,
-0.4294160008430481,
-0.05830182507634163,
-0.056598298251628876,
0.15040083229541779,
-0.013583265244960785,
0.4569154977798462,
-0.3693554401397705,
-0.062100812792778015,
0.22851333022117615,
0.24095827341079712,
-0.07236424833536148,
-0.33102673292160034,
-0.14566756784915924,
0.08433079719543457,
0.14106443524360657,
0.16944052278995514,
-0.2751305103302002,
-0.16777944564819336,
-0.0756378024816513,
0.15694448351860046,
0.27805861830711365,
0.0947423055768013,
-0.08447694778442383,
-0.3365340828895569,
-0.14364168047904968,
-0.14293862879276276,
-0.32423198223114014,
-0.14539547264575958,
-0.2079688459634781,
0.4222853183746338,
-0.6543207764625549,
0.2695196866989136,
0.29332661628723145,
0.09659712761640549,
-0.12450672686100006,
0.35235708951950073,
0.2550249695777893,
0.09503138065338135,
0.08719712495803833,
0.10928253829479218,
-0.2875726819038391,
0.2659046947956085,
-0.15450090169906616,
0.0013409852981567383,
0.31092217564582825,
0.40306395292282104,
0.15975412726402283,
-0.06661225110292435,
0.14760106801986694,
-0.1723826676607132,
-0.24061782658100128,
0.015078021213412285,
0.36152756214141846,
0.2620096802711487,
-0.203440859913826,
0.08389431238174438,
0.5660724639892578,
-0.16361363232135773,
0.1882483810186386,
0.14680089056491852,
0.8290462493896484,
0.21138867735862732,
0.1585371345281601,
-0.3222101032733917,
0.031565356999635696,
-0.14683860540390015,
-0.08657585084438324,
-0.045918624848127365,
0.18194524943828583,
0.07934410870075226,
0.06892063468694687,
0.2830909788608551,
0.4801357686519623,
0.3831426501274109,
-0.3467298448085785,
0.14105620980262756,
-0.07985468953847885,
0.13514234125614166,
0.5679848194122314,
-0.0949719250202179,
0.29066693782806396,
0.128654345870018,
0.13389630615711212,
0.19713079929351807,
-0.3649284839630127,
0.15649037063121796,
-0.0954352617263794,
-0.09011881798505783,
-0.024757811799645424,
0.2911916673183441,
0.1542280912399292,
-0.0017626313492655754,
-0.37245047092437744,
-0.03930410370230675,
-0.46419787406921387,
0.007182970643043518,
-0.06937752664089203,
0.006460744887590408,
0.037394795566797256,
0.22874414920806885,
0.1294109970331192,
-0.15672966837882996,
0.1997879445552826,
0.25051993131637573,
0.42165490984916687,
-0.23811902105808258,
0.046904556453228,
0.034218333661556244,
0.08216249197721481,
0.11365298926830292,
0.13887600600719452,
-0.02558165416121483,
0.03803078085184097,
-0.3868374228477478,
-0.060294341295957565,
-0.37899571657180786,
-0.02234392985701561,
-0.14588582515716553,
0.04316883534193039,
0.14389751851558685,
0.3281213641166687,
0.35922059416770935,
0.07851466536521912,
-0.1413399875164032,
0.04558682069182396,
0.05479871854186058,
-0.24892735481262207,
-0.31266579031944275,
-0.09545261412858963,
0.17730282247066498,
0.030504576861858368,
-0.023133613169193268,
0.03708590939640999,
-0.25344857573509216,
-0.4080217480659485,
0.43244752287864685,
-0.10378625243902206,
-0.005122853443026543,
-0.07829626649618149,
0.07439973950386047,
-0.1761172115802765,
-0.036730583757162094,
0.40930038690567017,
0.1028507798910141,
0.1296515315771103,
-0.19556064903736115,
-0.2923826575279236,
-0.024753518402576447,
0.10403209924697876,
-0.446216344833374,
-0.06454424560070038,
0.28293246030807495,
0.35475635528564453,
0.34759145975112915,
-0.2640646696090698,
0.14053496718406677,
0.26784682273864746,
-0.2227521538734436,
-0.1304275393486023,
0.1778753101825714,
-0.10760694742202759,
0.2173900604248047,
-0.1289333701133728,
0.04391788691282272,
-0.08149737119674683,
-0.13112716376781464,
0.08348491042852402,
-0.43033623695373535,
-0.1338421106338501,
-0.05983773618936539,
0.28615671396255493,
0.3971823453903198,
0.17493930459022522,
0.004467397928237915,
0.03697832673788071,
-0.3076260983943939,
-0.11685161292552948,
-0.07472445070743561,
-0.07885785400867462,
-0.05538635700941086,
-0.0985003113746643,
0.7773541212081909,
-0.28626009821891785,
0.16906876862049103,
-0.024455809965729713,
0.2367895394563675,
-0.04506422206759453,
-0.2427913099527359,
-0.05080581456422806,
0.03194339573383331,
-0.13855063915252686,
-0.06908584386110306,
0.10783369839191437,
0.417498916387558,
0.0375690832734108,
-0.15753082931041718,
-0.05314356088638306,
-0.14852374792099,
-0.046227529644966125,
-0.24352355301380157,
-0.20733332633972168,
0.2868826687335968,
0.051573701202869415,
-0.15946313738822937,
0.3107649087905884,
-0.4379979968070984,
-0.23906934261322021,
0.33726954460144043,
0.06926348805427551,
0.09162521362304688,
0.3000224828720093,
0.2653142809867859,
-0.3702751100063324,
-0.17168015241622925,
-0.24945783615112305,
-0.24908128380775452,
-0.11871752142906189,
-0.1253124624490738,
-0.1293734908103943
] |
https://github.com/huggingface/datasets/issues/263 | [Feature request] Support for external modality for language datasets | Hey @thomwolf, are there any updates on this? I would love to contribute if possible!
Thanks,
Alessandro | # Background
In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data.
# Language + Vision
## Use case
Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset.
Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features.
For all these types of features, people use one of the following formats:
1. [HD5F](https://pypi.org/project/h5py/)
2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html)
3. [LMDB](https://lmdb.readthedocs.io/en/release/)
## Implementation considerations
I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following:
1. Download dataset
2. Download images associated with the dataset
3. Write a script that generates the visual features for every image and store them in a specific file
4. Create a DataLoader that maps the visual features to the corresponding language example
In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it.
For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array.
Looking forward to hearing your thoughts about it! | 17 | [Feature request] Support for external modality for language datasets
# Background
In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data.
# Language + Vision
## Use case
Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset.
Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features.
For all these types of features, people use one of the following formats:
1. [HD5F](https://pypi.org/project/h5py/)
2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html)
3. [LMDB](https://lmdb.readthedocs.io/en/release/)
## Implementation considerations
I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following:
1. Download dataset
2. Download images associated with the dataset
3. Write a script that generates the visual features for every image and store them in a specific file
4. Create a DataLoader that maps the visual features to the corresponding language example
In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it.
For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array.
Looking forward to hearing your thoughts about it!
Hey @thomwolf, are there any updates on this? I would love to contribute if possible!
Thanks,
Alessandro | [
0.000057909637689590454,
-0.14249980449676514,
-0.10484336316585541,
-0.11375996470451355,
-0.02086355909705162,
-0.2757301330566406,
0.35704663395881653,
0.16198910772800446,
-0.1701950877904892,
-0.11541032791137695,
-0.10623925179243088,
0.37419745326042175,
-0.23276959359645844,
0.024785680696368217,
0.22765803337097168,
-0.16313759982585907,
0.11561097949743271,
0.020651452243328094,
0.17515622079372406,
0.03774206340312958,
-0.08029565960168839,
-0.18629886209964752,
-0.0996890664100647,
0.0158085897564888,
-0.1543438583612442,
-0.0065529439598321915,
-0.2325277477502823,
-0.06639491766691208,
0.017445379868149757,
-0.1567315012216568,
-0.41686132550239563,
0.1775112897157669,
-0.006496141664683819,
-0.058712564408779144,
-0.000105389000964351,
0.04106525331735611,
0.05086583271622658,
-0.15447981655597687,
-0.06360666453838348,
-0.2922307252883911,
-0.1718059927225113,
-0.585684597492218,
-0.005184298846870661,
-0.2138667106628418,
0.16897651553153992,
-0.26110175251960754,
0.30336621403694153,
-0.01545475423336029,
0.2199571579694748,
0.04244818165898323,
0.23387333750724792,
0.161965474486351,
0.05709734931588173,
0.31448352336883545,
0.17907854914665222,
0.7218412756919861,
-0.17565013468265533,
-0.026227999478578568,
0.37595510482788086,
-0.19800670444965363,
-0.17143145203590393,
0.5319552421569824,
0.0707271620631218,
-0.1726883351802826,
0.10479634255170822,
-0.15542177855968475,
-0.07425440102815628,
-0.18622636795043945,
-0.1826823651790619,
0.2696191370487213,
0.5540597438812256,
-0.09467975050210953,
-0.39567428827285767,
-0.2771701514720917,
0.10153616964817047,
0.21204380691051483,
-0.1491229236125946,
0.46957603096961975,
-0.08470378816127777,
0.26188746094703674,
-0.1411735713481903,
-0.41724666953086853,
-0.22692696750164032,
0.40050244331359863,
-0.010741110891103745,
-0.11447323858737946,
0.11392751336097717,
0.10642584413290024,
0.12712369859218597,
-0.13947471976280212,
0.24053433537483215,
-0.0852414220571518,
0.1974172294139862,
0.1384705901145935,
0.11991819739341736,
-0.14774388074874878,
0.09294059127569199,
-0.0756620541214943,
0.10103730112314224,
-0.13798709213733673,
0.01419350877404213,
0.16521775722503662,
-0.6861984729766846,
0.37200021743774414,
0.13847512006759644,
-0.31710073351860046,
-0.3466375768184662,
0.1551731377840042,
0.2985229194164276,
-0.057959020137786865,
-0.02686542645096779,
-0.037866875529289246,
0.016913291066884995,
0.044088102877140045,
-0.3268454372882843,
0.00009454227983951569,
0.1069343090057373,
-0.015392139554023743,
-0.09738093614578247,
-0.29253876209259033,
-0.24316465854644775,
0.05811302363872528,
-0.02610037475824356,
-0.07544025033712387,
0.23163223266601562,
0.29516080021858215,
-0.010326506569981575,
0.23807579278945923,
0.0051018185913562775,
-0.688583254814148,
0.06887850165367126,
0.08224189281463623,
-0.45074352622032166,
0.11295709758996964,
0.019686434417963028,
0.576988935470581,
0.10568458586931229,
0.02247123047709465,
0.07950741797685623,
-0.05892676115036011,
0.11541953682899475,
-0.3274696469306946,
0.09448735415935516,
0.014609795063734055,
-0.3158082664012909,
-0.2822078764438629,
-0.001003514975309372,
0.22869281470775604,
-0.19302867352962494,
-0.09520218521356583,
0.013752717524766922,
-0.2000207155942917,
-0.19085589051246643,
0.12177535891532898,
-0.07179111242294312,
0.03978684917092323,
0.3123776316642761,
0.9068846106529236,
-0.3320864737033844,
-0.4840669333934784,
-0.03723093122243881,
-0.036526814103126526,
-0.324636846780777,
-0.15300917625427246,
-0.1083313599228859,
0.25359949469566345,
-0.420646607875824,
-0.1457894742488861,
0.02145562693476677,
-0.07829166948795319,
-0.07302723079919815,
0.253395140171051,
-0.30217626690864563,
-0.06193637102842331,
0.07331472635269165,
-0.14392971992492676,
0.42248621582984924,
-0.2967078387737274,
-0.21420535445213318,
0.19423235952854156,
0.04232398420572281,
0.2526317238807678,
-0.043890126049518585,
0.3999969959259033,
-0.018886562436819077,
-0.13814984261989594,
0.12124057114124298,
0.7113154530525208,
-0.15096837282180786,
0.05194574594497681,
-0.1938297599554062,
-0.36008575558662415,
0.2658924460411072,
0.4229552447795868,
0.013050153851509094,
-0.320580393075943,
0.6397940516471863,
-0.0006153415888547897,
0.1015566736459732,
-0.27745306491851807,
0.12146100401878357,
-0.1934112161397934,
0.29371774196624756,
-0.056287750601768494,
-0.14273060858249664,
-0.2755995988845825,
-0.2272174060344696,
0.001921381801366806,
-0.27046602964401245,
0.2816794216632843,
-0.16634626686573029,
-0.0009555891156196594,
0.20897886157035828,
-0.1393231600522995,
0.09564200043678284,
0.004168681800365448,
0.2037205994129181,
0.10114067792892456,
-0.4169173240661621,
0.25004875659942627,
-0.0902082771062851,
0.02519192546606064,
-0.09754292666912079,
0.03883795067667961,
0.18151582777500153,
0.25944289565086365,
0.01380238588899374,
0.11615631729364395,
0.09846030175685883,
0.5246060490608215,
-0.22382578253746033,
0.036736778914928436,
0.032196030020713806,
-0.0006298646330833435,
0.19920112192630768,
0.4802195429801941,
-0.013226665556430817,
0.39720192551612854,
0.4809134304523468,
-0.6762458086013794,
0.34888923168182373,
-0.16103698313236237,
0.24483957886695862,
-0.15033027529716492,
-0.04259432852268219,
0.2094171643257141,
0.24884049594402313,
0.0853462815284729,
-0.07931265234947205,
0.06880910694599152,
0.08538860827684402,
0.04717571660876274,
-0.33720558881759644,
-0.16118678450584412,
-0.055051032453775406,
0.1943490356206894,
0.004932332783937454,
0.03765670955181122,
-0.38167881965637207,
0.14591914415359497,
0.5345171093940735,
0.23161810636520386,
0.1799445003271103,
0.1668640673160553,
-0.20882341265678406,
-0.30590665340423584,
0.24508261680603027,
-0.21788163483142853,
0.0730600357055664,
0.2838120758533478,
-0.22414368391036987,
0.06247905641794205,
-0.21292643249034882,
0.016898859292268753,
0.15207497775554657,
0.06433805823326111,
0.4003807604312897,
0.05814443528652191,
0.3798503875732422,
0.05604398995637894,
-0.06564906239509583,
-0.42015230655670166,
-0.02211383357644081,
-0.2725445330142975,
0.17469939589500427,
-0.009488408453762531,
-0.18936565518379211,
-0.6152865290641785,
-0.1843087375164032,
-0.03982948884367943,
-0.4452592432498932,
-0.059504665434360504,
0.06663092970848083,
-0.2852562367916107,
-0.17061477899551392,
0.07512357085943222,
0.005399543792009354,
0.37855198979377747,
-0.3618397116661072,
-0.09956996887922287,
0.13897906243801117,
-0.2604553699493408,
-0.1546473205089569,
0.08434541523456573,
0.45434629917144775,
0.061095673590898514,
0.24025312066078186,
0.24544484913349152,
-0.04769609495997429,
-0.13308735191822052,
-0.4327585697174072,
0.27027255296707153,
0.05787661671638489,
0.18861281871795654,
-0.002010919153690338,
-0.5663677453994751,
0.09092481434345245,
-0.06574802100658417,
0.20208606123924255,
0.08892753720283508,
-0.004245337098836899,
-0.06646275520324707,
-0.041693657636642456,
0.12432914972305298,
-0.25342857837677,
0.0937705934047699,
-0.4923432469367981,
-0.5119805335998535,
0.38410139083862305,
-0.14364095032215118,
0.1656588464975357,
0.5681464672088623,
0.0995386391878128,
-0.09538725018501282,
-0.017269892618060112,
0.2712107002735138,
0.030044637620449066,
0.35573941469192505,
-0.05964664742350578,
-0.00017135567031800747,
-0.18747898936271667,
-0.28811389207839966,
-0.21742944419384003,
0.11924582719802856,
0.34939414262771606,
-0.3474395275115967,
-0.3242606520652771,
0.09537963569164276,
0.15616825222969055,
0.039121173322200775,
0.002788536250591278,
0.09059760719537735,
0.0016483336221426725,
-0.0056028813123703,
-0.03885010629892349,
0.0010586418211460114,
-0.06858590990304947,
0.36937886476516724,
0.1696060597896576,
0.3322417438030243,
0.010456539690494537,
0.4449983537197113,
0.3984430432319641,
-0.07358227670192719,
-0.11300954222679138,
0.4104924499988556,
0.34180140495300293,
0.20316557586193085,
-0.1458221673965454,
-0.23186495900154114,
0.4618135690689087,
-0.09981018304824829,
-0.030408352613449097,
0.28454214334487915,
-0.022318728268146515,
-0.5936282277107239,
-0.23098301887512207,
-0.08084748685359955,
-0.4445464015007019,
-0.19342976808547974,
0.3490704894065857,
-0.13693182170391083,
0.47245675325393677,
0.17477980256080627,
-0.5142965316772461,
-0.27790987491607666,
-0.08629505336284637,
0.06226615980267525,
0.04676465317606926,
0.2308104932308197,
0.07125157117843628,
-0.38006019592285156,
-0.08878571540117264,
0.09412881731987,
0.08369322121143341,
0.22389313578605652,
0.2547115087509155,
-0.17679090797901154,
-0.12743863463401794,
0.034318000078201294,
0.11261177062988281,
0.10101473331451416,
-0.3075807988643646,
-0.42941921949386597,
0.13116633892059326,
0.06978920102119446,
-0.23177127540111542,
-0.049864262342453,
-0.14885221421718597,
-0.005981703754514456,
0.1850324273109436,
0.24654413759708405,
-0.0023719221353530884,
-0.14173366129398346,
-0.0064570046961307526,
0.3172285854816437,
0.040690768510103226,
-0.24388627707958221,
0.12231461703777313,
0.16552895307540894,
-0.23723047971725464,
-0.22889426350593567,
-0.13118277490139008,
0.026687854900956154,
0.2431849241256714,
0.11057102680206299,
0.044021353125572205,
-0.007772505283355713,
0.11666637659072876,
0.17600637674331665,
-0.186014324426651,
0.016281813383102417,
-0.1535492092370987,
-0.009497690945863724,
0.20169788599014282,
-0.12320514023303986,
0.28990310430526733,
0.17242003977298737,
-0.24645668268203735,
-0.034241292625665665,
-0.20413659512996674,
0.5062917470932007,
0.3987754285335541,
0.5554392337799072,
0.1340874433517456,
-0.23536217212677002,
-0.1000528484582901,
-0.40590038895606995,
0.07845434546470642,
0.17039160430431366,
-0.08798202872276306,
0.09282431751489639,
-0.25570765137672424,
0.17792966961860657,
-0.14843574166297913,
-0.24349509179592133,
-0.001653272658586502,
0.11467015743255615,
-0.3192111849784851,
0.4626784324645996,
0.2678563892841339,
0.9083016514778137,
0.1739369034767151,
0.377385675907135,
0.06320257484912872,
-0.13929960131645203,
0.4011535048484802,
-0.5117282271385193,
0.19018079340457916,
-0.24072542786598206,
0.036179978400468826,
0.023782530799508095,
0.05003290995955467,
0.09289269894361496,
0.1420459747314453,
-0.09947918355464935,
-0.08329825103282928,
0.6208561062812805,
0.1133590042591095,
0.14243440330028534,
0.23518624901771545,
-0.04020427167415619,
-0.509238064289093,
-0.05928303301334381,
0.1355792135000229,
-0.17568251490592957,
-0.22230315208435059,
-0.14404481649398804,
-0.3420349359512329,
0.08194123208522797,
0.2642250061035156,
-0.21470779180526733,
-0.0011316686868667603,
-0.31605395674705505,
0.17083905637264252,
0.09727121144533157,
0.027449078857898712,
0.478288471698761,
0.065294548869133,
0.10304819792509079,
-0.16767618060112,
0.021499793976545334,
-0.11214615404605865,
0.10283711552619934,
0.1289999634027481,
-0.06453035026788712,
-0.29938387870788574,
0.5649160146713257,
-0.08502010256052017,
-0.23677319288253784,
0.08304701745510101,
0.0265791192650795,
-0.0678921565413475,
-0.3287886381149292,
-0.14087934792041779,
0.3525545001029968,
0.0692693218588829,
-0.20426194369792938,
0.33836910128593445,
0.03363945707678795,
0.005678366869688034,
0.15857583284378052,
0.1495664417743683,
-0.007270533591508865,
0.25499197840690613,
0.09071145206689835,
0.0957421213388443,
-0.041146982461214066,
-0.16024461388587952,
-0.17215493321418762,
-0.06823402643203735,
0.0020589791238307953,
-0.0395037904381752,
0.026654191315174103,
-0.20976653695106506,
0.4513888359069824,
-0.16559414565563202,
-0.06786107271909714,
-0.21938879787921906,
0.1647767722606659,
-0.19182351231575012,
-0.19113689661026,
0.04164791852235794,
0.11022848635911942,
0.012857135385274887,
-0.05677614361047745,
-0.3587936758995056,
-0.022774094715714455,
0.4008125066757202,
-0.4294160008430481,
-0.05830182507634163,
-0.056598298251628876,
0.15040083229541779,
-0.013583265244960785,
0.4569154977798462,
-0.3693554401397705,
-0.062100812792778015,
0.22851333022117615,
0.24095827341079712,
-0.07236424833536148,
-0.33102673292160034,
-0.14566756784915924,
0.08433079719543457,
0.14106443524360657,
0.16944052278995514,
-0.2751305103302002,
-0.16777944564819336,
-0.0756378024816513,
0.15694448351860046,
0.27805861830711365,
0.0947423055768013,
-0.08447694778442383,
-0.3365340828895569,
-0.14364168047904968,
-0.14293862879276276,
-0.32423198223114014,
-0.14539547264575958,
-0.2079688459634781,
0.4222853183746338,
-0.6543207764625549,
0.2695196866989136,
0.29332661628723145,
0.09659712761640549,
-0.12450672686100006,
0.35235708951950073,
0.2550249695777893,
0.09503138065338135,
0.08719712495803833,
0.10928253829479218,
-0.2875726819038391,
0.2659046947956085,
-0.15450090169906616,
0.0013409852981567383,
0.31092217564582825,
0.40306395292282104,
0.15975412726402283,
-0.06661225110292435,
0.14760106801986694,
-0.1723826676607132,
-0.24061782658100128,
0.015078021213412285,
0.36152756214141846,
0.2620096802711487,
-0.203440859913826,
0.08389431238174438,
0.5660724639892578,
-0.16361363232135773,
0.1882483810186386,
0.14680089056491852,
0.8290462493896484,
0.21138867735862732,
0.1585371345281601,
-0.3222101032733917,
0.031565356999635696,
-0.14683860540390015,
-0.08657585084438324,
-0.045918624848127365,
0.18194524943828583,
0.07934410870075226,
0.06892063468694687,
0.2830909788608551,
0.4801357686519623,
0.3831426501274109,
-0.3467298448085785,
0.14105620980262756,
-0.07985468953847885,
0.13514234125614166,
0.5679848194122314,
-0.0949719250202179,
0.29066693782806396,
0.128654345870018,
0.13389630615711212,
0.19713079929351807,
-0.3649284839630127,
0.15649037063121796,
-0.0954352617263794,
-0.09011881798505783,
-0.024757811799645424,
0.2911916673183441,
0.1542280912399292,
-0.0017626313492655754,
-0.37245047092437744,
-0.03930410370230675,
-0.46419787406921387,
0.007182970643043518,
-0.06937752664089203,
0.006460744887590408,
0.037394795566797256,
0.22874414920806885,
0.1294109970331192,
-0.15672966837882996,
0.1997879445552826,
0.25051993131637573,
0.42165490984916687,
-0.23811902105808258,
0.046904556453228,
0.034218333661556244,
0.08216249197721481,
0.11365298926830292,
0.13887600600719452,
-0.02558165416121483,
0.03803078085184097,
-0.3868374228477478,
-0.060294341295957565,
-0.37899571657180786,
-0.02234392985701561,
-0.14588582515716553,
0.04316883534193039,
0.14389751851558685,
0.3281213641166687,
0.35922059416770935,
0.07851466536521912,
-0.1413399875164032,
0.04558682069182396,
0.05479871854186058,
-0.24892735481262207,
-0.31266579031944275,
-0.09545261412858963,
0.17730282247066498,
0.030504576861858368,
-0.023133613169193268,
0.03708590939640999,
-0.25344857573509216,
-0.4080217480659485,
0.43244752287864685,
-0.10378625243902206,
-0.005122853443026543,
-0.07829626649618149,
0.07439973950386047,
-0.1761172115802765,
-0.036730583757162094,
0.40930038690567017,
0.1028507798910141,
0.1296515315771103,
-0.19556064903736115,
-0.2923826575279236,
-0.024753518402576447,
0.10403209924697876,
-0.446216344833374,
-0.06454424560070038,
0.28293246030807495,
0.35475635528564453,
0.34759145975112915,
-0.2640646696090698,
0.14053496718406677,
0.26784682273864746,
-0.2227521538734436,
-0.1304275393486023,
0.1778753101825714,
-0.10760694742202759,
0.2173900604248047,
-0.1289333701133728,
0.04391788691282272,
-0.08149737119674683,
-0.13112716376781464,
0.08348491042852402,
-0.43033623695373535,
-0.1338421106338501,
-0.05983773618936539,
0.28615671396255493,
0.3971823453903198,
0.17493930459022522,
0.004467397928237915,
0.03697832673788071,
-0.3076260983943939,
-0.11685161292552948,
-0.07472445070743561,
-0.07885785400867462,
-0.05538635700941086,
-0.0985003113746643,
0.7773541212081909,
-0.28626009821891785,
0.16906876862049103,
-0.024455809965729713,
0.2367895394563675,
-0.04506422206759453,
-0.2427913099527359,
-0.05080581456422806,
0.03194339573383331,
-0.13855063915252686,
-0.06908584386110306,
0.10783369839191437,
0.417498916387558,
0.0375690832734108,
-0.15753082931041718,
-0.05314356088638306,
-0.14852374792099,
-0.046227529644966125,
-0.24352355301380157,
-0.20733332633972168,
0.2868826687335968,
0.051573701202869415,
-0.15946313738822937,
0.3107649087905884,
-0.4379979968070984,
-0.23906934261322021,
0.33726954460144043,
0.06926348805427551,
0.09162521362304688,
0.3000224828720093,
0.2653142809867859,
-0.3702751100063324,
-0.17168015241622925,
-0.24945783615112305,
-0.24908128380775452,
-0.11871752142906189,
-0.1253124624490738,
-0.1293734908103943
] |
https://github.com/huggingface/datasets/issues/263 | [Feature request] Support for external modality for language datasets | Hi @aleSuglia :) In today's new release 1.17 of `datasets` we introduce a new feature type `Image` that allows to store images directly in a dataset, next to text features and labels for example. There is also an `Audio` feature type, for datasets containing audio data. For tensors there are `Array2D`, `Array3D`, etc. feature types
Note that both Image and Audio feature types take care of decoding the images/audio data if needed. The returned images are PIL images, and the audio signals are decoded as numpy arrays.
And `datasets` also leverage end-to-end zero copy from the arrow data for all of them, for maximum speed :) | # Background
In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data.
# Language + Vision
## Use case
Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset.
Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features.
For all these types of features, people use one of the following formats:
1. [HD5F](https://pypi.org/project/h5py/)
2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html)
3. [LMDB](https://lmdb.readthedocs.io/en/release/)
## Implementation considerations
I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following:
1. Download dataset
2. Download images associated with the dataset
3. Write a script that generates the visual features for every image and store them in a specific file
4. Create a DataLoader that maps the visual features to the corresponding language example
In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it.
For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array.
Looking forward to hearing your thoughts about it! | 106 | [Feature request] Support for external modality for language datasets
# Background
In recent years many researchers have advocated that learning meanings from text-based only datasets is just like asking a human to "learn to speak by listening to the radio" [[E. Bender and A. Koller,2020](https://openreview.net/forum?id=GKTvAcb12b), [Y. Bisk et. al, 2020](https://arxiv.org/abs/2004.10151)]. Therefore, the importance of multi-modal datasets for the NLP community is of paramount importance for next-generation models. For this reason, I raised a [concern](https://github.com/huggingface/nlp/pull/236#issuecomment-639832029) related to the best way to integrate external features in NLP datasets (e.g., visual features associated with an image, audio features associated with a recording, etc.). This would be of great importance for a more systematic way of representing data for ML models that are learning from multi-modal data.
# Language + Vision
## Use case
Typically, people working on Language+Vision tasks, have a reference dataset (either in JSON or JSONL format) and for each example, they have an identifier that specifies the reference image. For a practical example, you can refer to the [GQA](https://cs.stanford.edu/people/dorarad/gqa/download.html#seconddown) dataset.
Currently, images are represented by either pooling-based features (average pooling of ResNet or VGGNet features, see [DeVries et.al, 2017](https://arxiv.org/abs/1611.08481), [Shekhar et.al, 2019](https://www.aclweb.org/anthology/N19-1265.pdf)) where you have a single vector for every image. Another option is to use a set of feature maps for every image extracted from a specific layer of a CNN (see [Xu et.al, 2015](https://arxiv.org/abs/1502.03044)). A more recent option, especially with large-scale multi-modal transformers [Li et. al, 2019](https://arxiv.org/abs/1908.03557), is to use FastRCNN features.
For all these types of features, people use one of the following formats:
1. [HD5F](https://pypi.org/project/h5py/)
2. [NumPy](https://numpy.org/doc/stable/reference/generated/numpy.savez.html)
3. [LMDB](https://lmdb.readthedocs.io/en/release/)
## Implementation considerations
I was thinking about possible ways of implementing this feature. As mentioned above, depending on the model, different visual features can be used. This step usually relies on another model (say ResNet-101) that is used to generate the visual features for each image used in the dataset. Typically, this step is done in a separate script that completes the feature generation procedure. The usual processing steps for these datasets are the following:
1. Download dataset
2. Download images associated with the dataset
3. Write a script that generates the visual features for every image and store them in a specific file
4. Create a DataLoader that maps the visual features to the corresponding language example
In my personal projects, I've decided to ignore HD5F because it doesn't have out-of-the-box support for multi-processing (see this PyTorch [issue](https://github.com/pytorch/pytorch/issues/11929)). I've been successfully using a NumPy compressed file for each image so that I can store any sort of information in it.
For ease of use of all these Language+Vision datasets, it would be really handy to have a way to associate the visual features with the text and store them in an efficient way. That's why I immediately thought about the HuggingFace NLP backend based on Apache Arrow. The assumption here is that the external modality will be mapped to a N-dimensional tensor so easily represented by a NumPy array.
Looking forward to hearing your thoughts about it!
Hi @aleSuglia :) In today's new release 1.17 of `datasets` we introduce a new feature type `Image` that allows to store images directly in a dataset, next to text features and labels for example. There is also an `Audio` feature type, for datasets containing audio data. For tensors there are `Array2D`, `Array3D`, etc. feature types
Note that both Image and Audio feature types take care of decoding the images/audio data if needed. The returned images are PIL images, and the audio signals are decoded as numpy arrays.
And `datasets` also leverage end-to-end zero copy from the arrow data for all of them, for maximum speed :) | [
0.000057909637689590454,
-0.14249980449676514,
-0.10484336316585541,
-0.11375996470451355,
-0.02086355909705162,
-0.2757301330566406,
0.35704663395881653,
0.16198910772800446,
-0.1701950877904892,
-0.11541032791137695,
-0.10623925179243088,
0.37419745326042175,
-0.23276959359645844,
0.024785680696368217,
0.22765803337097168,
-0.16313759982585907,
0.11561097949743271,
0.020651452243328094,
0.17515622079372406,
0.03774206340312958,
-0.08029565960168839,
-0.18629886209964752,
-0.0996890664100647,
0.0158085897564888,
-0.1543438583612442,
-0.0065529439598321915,
-0.2325277477502823,
-0.06639491766691208,
0.017445379868149757,
-0.1567315012216568,
-0.41686132550239563,
0.1775112897157669,
-0.006496141664683819,
-0.058712564408779144,
-0.000105389000964351,
0.04106525331735611,
0.05086583271622658,
-0.15447981655597687,
-0.06360666453838348,
-0.2922307252883911,
-0.1718059927225113,
-0.585684597492218,
-0.005184298846870661,
-0.2138667106628418,
0.16897651553153992,
-0.26110175251960754,
0.30336621403694153,
-0.01545475423336029,
0.2199571579694748,
0.04244818165898323,
0.23387333750724792,
0.161965474486351,
0.05709734931588173,
0.31448352336883545,
0.17907854914665222,
0.7218412756919861,
-0.17565013468265533,
-0.026227999478578568,
0.37595510482788086,
-0.19800670444965363,
-0.17143145203590393,
0.5319552421569824,
0.0707271620631218,
-0.1726883351802826,
0.10479634255170822,
-0.15542177855968475,
-0.07425440102815628,
-0.18622636795043945,
-0.1826823651790619,
0.2696191370487213,
0.5540597438812256,
-0.09467975050210953,
-0.39567428827285767,
-0.2771701514720917,
0.10153616964817047,
0.21204380691051483,
-0.1491229236125946,
0.46957603096961975,
-0.08470378816127777,
0.26188746094703674,
-0.1411735713481903,
-0.41724666953086853,
-0.22692696750164032,
0.40050244331359863,
-0.010741110891103745,
-0.11447323858737946,
0.11392751336097717,
0.10642584413290024,
0.12712369859218597,
-0.13947471976280212,
0.24053433537483215,
-0.0852414220571518,
0.1974172294139862,
0.1384705901145935,
0.11991819739341736,
-0.14774388074874878,
0.09294059127569199,
-0.0756620541214943,
0.10103730112314224,
-0.13798709213733673,
0.01419350877404213,
0.16521775722503662,
-0.6861984729766846,
0.37200021743774414,
0.13847512006759644,
-0.31710073351860046,
-0.3466375768184662,
0.1551731377840042,
0.2985229194164276,
-0.057959020137786865,
-0.02686542645096779,
-0.037866875529289246,
0.016913291066884995,
0.044088102877140045,
-0.3268454372882843,
0.00009454227983951569,
0.1069343090057373,
-0.015392139554023743,
-0.09738093614578247,
-0.29253876209259033,
-0.24316465854644775,
0.05811302363872528,
-0.02610037475824356,
-0.07544025033712387,
0.23163223266601562,
0.29516080021858215,
-0.010326506569981575,
0.23807579278945923,
0.0051018185913562775,
-0.688583254814148,
0.06887850165367126,
0.08224189281463623,
-0.45074352622032166,
0.11295709758996964,
0.019686434417963028,
0.576988935470581,
0.10568458586931229,
0.02247123047709465,
0.07950741797685623,
-0.05892676115036011,
0.11541953682899475,
-0.3274696469306946,
0.09448735415935516,
0.014609795063734055,
-0.3158082664012909,
-0.2822078764438629,
-0.001003514975309372,
0.22869281470775604,
-0.19302867352962494,
-0.09520218521356583,
0.013752717524766922,
-0.2000207155942917,
-0.19085589051246643,
0.12177535891532898,
-0.07179111242294312,
0.03978684917092323,
0.3123776316642761,
0.9068846106529236,
-0.3320864737033844,
-0.4840669333934784,
-0.03723093122243881,
-0.036526814103126526,
-0.324636846780777,
-0.15300917625427246,
-0.1083313599228859,
0.25359949469566345,
-0.420646607875824,
-0.1457894742488861,
0.02145562693476677,
-0.07829166948795319,
-0.07302723079919815,
0.253395140171051,
-0.30217626690864563,
-0.06193637102842331,
0.07331472635269165,
-0.14392971992492676,
0.42248621582984924,
-0.2967078387737274,
-0.21420535445213318,
0.19423235952854156,
0.04232398420572281,
0.2526317238807678,
-0.043890126049518585,
0.3999969959259033,
-0.018886562436819077,
-0.13814984261989594,
0.12124057114124298,
0.7113154530525208,
-0.15096837282180786,
0.05194574594497681,
-0.1938297599554062,
-0.36008575558662415,
0.2658924460411072,
0.4229552447795868,
0.013050153851509094,
-0.320580393075943,
0.6397940516471863,
-0.0006153415888547897,
0.1015566736459732,
-0.27745306491851807,
0.12146100401878357,
-0.1934112161397934,
0.29371774196624756,
-0.056287750601768494,
-0.14273060858249664,
-0.2755995988845825,
-0.2272174060344696,
0.001921381801366806,
-0.27046602964401245,
0.2816794216632843,
-0.16634626686573029,
-0.0009555891156196594,
0.20897886157035828,
-0.1393231600522995,
0.09564200043678284,
0.004168681800365448,
0.2037205994129181,
0.10114067792892456,
-0.4169173240661621,
0.25004875659942627,
-0.0902082771062851,
0.02519192546606064,
-0.09754292666912079,
0.03883795067667961,
0.18151582777500153,
0.25944289565086365,
0.01380238588899374,
0.11615631729364395,
0.09846030175685883,
0.5246060490608215,
-0.22382578253746033,
0.036736778914928436,
0.032196030020713806,
-0.0006298646330833435,
0.19920112192630768,
0.4802195429801941,
-0.013226665556430817,
0.39720192551612854,
0.4809134304523468,
-0.6762458086013794,
0.34888923168182373,
-0.16103698313236237,
0.24483957886695862,
-0.15033027529716492,
-0.04259432852268219,
0.2094171643257141,
0.24884049594402313,
0.0853462815284729,
-0.07931265234947205,
0.06880910694599152,
0.08538860827684402,
0.04717571660876274,
-0.33720558881759644,
-0.16118678450584412,
-0.055051032453775406,
0.1943490356206894,
0.004932332783937454,
0.03765670955181122,
-0.38167881965637207,
0.14591914415359497,
0.5345171093940735,
0.23161810636520386,
0.1799445003271103,
0.1668640673160553,
-0.20882341265678406,
-0.30590665340423584,
0.24508261680603027,
-0.21788163483142853,
0.0730600357055664,
0.2838120758533478,
-0.22414368391036987,
0.06247905641794205,
-0.21292643249034882,
0.016898859292268753,
0.15207497775554657,
0.06433805823326111,
0.4003807604312897,
0.05814443528652191,
0.3798503875732422,
0.05604398995637894,
-0.06564906239509583,
-0.42015230655670166,
-0.02211383357644081,
-0.2725445330142975,
0.17469939589500427,
-0.009488408453762531,
-0.18936565518379211,
-0.6152865290641785,
-0.1843087375164032,
-0.03982948884367943,
-0.4452592432498932,
-0.059504665434360504,
0.06663092970848083,
-0.2852562367916107,
-0.17061477899551392,
0.07512357085943222,
0.005399543792009354,
0.37855198979377747,
-0.3618397116661072,
-0.09956996887922287,
0.13897906243801117,
-0.2604553699493408,
-0.1546473205089569,
0.08434541523456573,
0.45434629917144775,
0.061095673590898514,
0.24025312066078186,
0.24544484913349152,
-0.04769609495997429,
-0.13308735191822052,
-0.4327585697174072,
0.27027255296707153,
0.05787661671638489,
0.18861281871795654,
-0.002010919153690338,
-0.5663677453994751,
0.09092481434345245,
-0.06574802100658417,
0.20208606123924255,
0.08892753720283508,
-0.004245337098836899,
-0.06646275520324707,
-0.041693657636642456,
0.12432914972305298,
-0.25342857837677,
0.0937705934047699,
-0.4923432469367981,
-0.5119805335998535,
0.38410139083862305,
-0.14364095032215118,
0.1656588464975357,
0.5681464672088623,
0.0995386391878128,
-0.09538725018501282,
-0.017269892618060112,
0.2712107002735138,
0.030044637620449066,
0.35573941469192505,
-0.05964664742350578,
-0.00017135567031800747,
-0.18747898936271667,
-0.28811389207839966,
-0.21742944419384003,
0.11924582719802856,
0.34939414262771606,
-0.3474395275115967,
-0.3242606520652771,
0.09537963569164276,
0.15616825222969055,
0.039121173322200775,
0.002788536250591278,
0.09059760719537735,
0.0016483336221426725,
-0.0056028813123703,
-0.03885010629892349,
0.0010586418211460114,
-0.06858590990304947,
0.36937886476516724,
0.1696060597896576,
0.3322417438030243,
0.010456539690494537,
0.4449983537197113,
0.3984430432319641,
-0.07358227670192719,
-0.11300954222679138,
0.4104924499988556,
0.34180140495300293,
0.20316557586193085,
-0.1458221673965454,
-0.23186495900154114,
0.4618135690689087,
-0.09981018304824829,
-0.030408352613449097,
0.28454214334487915,
-0.022318728268146515,
-0.5936282277107239,
-0.23098301887512207,
-0.08084748685359955,
-0.4445464015007019,
-0.19342976808547974,
0.3490704894065857,
-0.13693182170391083,
0.47245675325393677,
0.17477980256080627,
-0.5142965316772461,
-0.27790987491607666,
-0.08629505336284637,
0.06226615980267525,
0.04676465317606926,
0.2308104932308197,
0.07125157117843628,
-0.38006019592285156,
-0.08878571540117264,
0.09412881731987,
0.08369322121143341,
0.22389313578605652,
0.2547115087509155,
-0.17679090797901154,
-0.12743863463401794,
0.034318000078201294,
0.11261177062988281,
0.10101473331451416,
-0.3075807988643646,
-0.42941921949386597,
0.13116633892059326,
0.06978920102119446,
-0.23177127540111542,
-0.049864262342453,
-0.14885221421718597,
-0.005981703754514456,
0.1850324273109436,
0.24654413759708405,
-0.0023719221353530884,
-0.14173366129398346,
-0.0064570046961307526,
0.3172285854816437,
0.040690768510103226,
-0.24388627707958221,
0.12231461703777313,
0.16552895307540894,
-0.23723047971725464,
-0.22889426350593567,
-0.13118277490139008,
0.026687854900956154,
0.2431849241256714,
0.11057102680206299,
0.044021353125572205,
-0.007772505283355713,
0.11666637659072876,
0.17600637674331665,
-0.186014324426651,
0.016281813383102417,
-0.1535492092370987,
-0.009497690945863724,
0.20169788599014282,
-0.12320514023303986,
0.28990310430526733,
0.17242003977298737,
-0.24645668268203735,
-0.034241292625665665,
-0.20413659512996674,
0.5062917470932007,
0.3987754285335541,
0.5554392337799072,
0.1340874433517456,
-0.23536217212677002,
-0.1000528484582901,
-0.40590038895606995,
0.07845434546470642,
0.17039160430431366,
-0.08798202872276306,
0.09282431751489639,
-0.25570765137672424,
0.17792966961860657,
-0.14843574166297913,
-0.24349509179592133,
-0.001653272658586502,
0.11467015743255615,
-0.3192111849784851,
0.4626784324645996,
0.2678563892841339,
0.9083016514778137,
0.1739369034767151,
0.377385675907135,
0.06320257484912872,
-0.13929960131645203,
0.4011535048484802,
-0.5117282271385193,
0.19018079340457916,
-0.24072542786598206,
0.036179978400468826,
0.023782530799508095,
0.05003290995955467,
0.09289269894361496,
0.1420459747314453,
-0.09947918355464935,
-0.08329825103282928,
0.6208561062812805,
0.1133590042591095,
0.14243440330028534,
0.23518624901771545,
-0.04020427167415619,
-0.509238064289093,
-0.05928303301334381,
0.1355792135000229,
-0.17568251490592957,
-0.22230315208435059,
-0.14404481649398804,
-0.3420349359512329,
0.08194123208522797,
0.2642250061035156,
-0.21470779180526733,
-0.0011316686868667603,
-0.31605395674705505,
0.17083905637264252,
0.09727121144533157,
0.027449078857898712,
0.478288471698761,
0.065294548869133,
0.10304819792509079,
-0.16767618060112,
0.021499793976545334,
-0.11214615404605865,
0.10283711552619934,
0.1289999634027481,
-0.06453035026788712,
-0.29938387870788574,
0.5649160146713257,
-0.08502010256052017,
-0.23677319288253784,
0.08304701745510101,
0.0265791192650795,
-0.0678921565413475,
-0.3287886381149292,
-0.14087934792041779,
0.3525545001029968,
0.0692693218588829,
-0.20426194369792938,
0.33836910128593445,
0.03363945707678795,
0.005678366869688034,
0.15857583284378052,
0.1495664417743683,
-0.007270533591508865,
0.25499197840690613,
0.09071145206689835,
0.0957421213388443,
-0.041146982461214066,
-0.16024461388587952,
-0.17215493321418762,
-0.06823402643203735,
0.0020589791238307953,
-0.0395037904381752,
0.026654191315174103,
-0.20976653695106506,
0.4513888359069824,
-0.16559414565563202,
-0.06786107271909714,
-0.21938879787921906,
0.1647767722606659,
-0.19182351231575012,
-0.19113689661026,
0.04164791852235794,
0.11022848635911942,
0.012857135385274887,
-0.05677614361047745,
-0.3587936758995056,
-0.022774094715714455,
0.4008125066757202,
-0.4294160008430481,
-0.05830182507634163,
-0.056598298251628876,
0.15040083229541779,
-0.013583265244960785,
0.4569154977798462,
-0.3693554401397705,
-0.062100812792778015,
0.22851333022117615,
0.24095827341079712,
-0.07236424833536148,
-0.33102673292160034,
-0.14566756784915924,
0.08433079719543457,
0.14106443524360657,
0.16944052278995514,
-0.2751305103302002,
-0.16777944564819336,
-0.0756378024816513,
0.15694448351860046,
0.27805861830711365,
0.0947423055768013,
-0.08447694778442383,
-0.3365340828895569,
-0.14364168047904968,
-0.14293862879276276,
-0.32423198223114014,
-0.14539547264575958,
-0.2079688459634781,
0.4222853183746338,
-0.6543207764625549,
0.2695196866989136,
0.29332661628723145,
0.09659712761640549,
-0.12450672686100006,
0.35235708951950073,
0.2550249695777893,
0.09503138065338135,
0.08719712495803833,
0.10928253829479218,
-0.2875726819038391,
0.2659046947956085,
-0.15450090169906616,
0.0013409852981567383,
0.31092217564582825,
0.40306395292282104,
0.15975412726402283,
-0.06661225110292435,
0.14760106801986694,
-0.1723826676607132,
-0.24061782658100128,
0.015078021213412285,
0.36152756214141846,
0.2620096802711487,
-0.203440859913826,
0.08389431238174438,
0.5660724639892578,
-0.16361363232135773,
0.1882483810186386,
0.14680089056491852,
0.8290462493896484,
0.21138867735862732,
0.1585371345281601,
-0.3222101032733917,
0.031565356999635696,
-0.14683860540390015,
-0.08657585084438324,
-0.045918624848127365,
0.18194524943828583,
0.07934410870075226,
0.06892063468694687,
0.2830909788608551,
0.4801357686519623,
0.3831426501274109,
-0.3467298448085785,
0.14105620980262756,
-0.07985468953847885,
0.13514234125614166,
0.5679848194122314,
-0.0949719250202179,
0.29066693782806396,
0.128654345870018,
0.13389630615711212,
0.19713079929351807,
-0.3649284839630127,
0.15649037063121796,
-0.0954352617263794,
-0.09011881798505783,
-0.024757811799645424,
0.2911916673183441,
0.1542280912399292,
-0.0017626313492655754,
-0.37245047092437744,
-0.03930410370230675,
-0.46419787406921387,
0.007182970643043518,
-0.06937752664089203,
0.006460744887590408,
0.037394795566797256,
0.22874414920806885,
0.1294109970331192,
-0.15672966837882996,
0.1997879445552826,
0.25051993131637573,
0.42165490984916687,
-0.23811902105808258,
0.046904556453228,
0.034218333661556244,
0.08216249197721481,
0.11365298926830292,
0.13887600600719452,
-0.02558165416121483,
0.03803078085184097,
-0.3868374228477478,
-0.060294341295957565,
-0.37899571657180786,
-0.02234392985701561,
-0.14588582515716553,
0.04316883534193039,
0.14389751851558685,
0.3281213641166687,
0.35922059416770935,
0.07851466536521912,
-0.1413399875164032,
0.04558682069182396,
0.05479871854186058,
-0.24892735481262207,
-0.31266579031944275,
-0.09545261412858963,
0.17730282247066498,
0.030504576861858368,
-0.023133613169193268,
0.03708590939640999,
-0.25344857573509216,
-0.4080217480659485,
0.43244752287864685,
-0.10378625243902206,
-0.005122853443026543,
-0.07829626649618149,
0.07439973950386047,
-0.1761172115802765,
-0.036730583757162094,
0.40930038690567017,
0.1028507798910141,
0.1296515315771103,
-0.19556064903736115,
-0.2923826575279236,
-0.024753518402576447,
0.10403209924697876,
-0.446216344833374,
-0.06454424560070038,
0.28293246030807495,
0.35475635528564453,
0.34759145975112915,
-0.2640646696090698,
0.14053496718406677,
0.26784682273864746,
-0.2227521538734436,
-0.1304275393486023,
0.1778753101825714,
-0.10760694742202759,
0.2173900604248047,
-0.1289333701133728,
0.04391788691282272,
-0.08149737119674683,
-0.13112716376781464,
0.08348491042852402,
-0.43033623695373535,
-0.1338421106338501,
-0.05983773618936539,
0.28615671396255493,
0.3971823453903198,
0.17493930459022522,
0.004467397928237915,
0.03697832673788071,
-0.3076260983943939,
-0.11685161292552948,
-0.07472445070743561,
-0.07885785400867462,
-0.05538635700941086,
-0.0985003113746643,
0.7773541212081909,
-0.28626009821891785,
0.16906876862049103,
-0.024455809965729713,
0.2367895394563675,
-0.04506422206759453,
-0.2427913099527359,
-0.05080581456422806,
0.03194339573383331,
-0.13855063915252686,
-0.06908584386110306,
0.10783369839191437,
0.417498916387558,
0.0375690832734108,
-0.15753082931041718,
-0.05314356088638306,
-0.14852374792099,
-0.046227529644966125,
-0.24352355301380157,
-0.20733332633972168,
0.2868826687335968,
0.051573701202869415,
-0.15946313738822937,
0.3107649087905884,
-0.4379979968070984,
-0.23906934261322021,
0.33726954460144043,
0.06926348805427551,
0.09162521362304688,
0.3000224828720093,
0.2653142809867859,
-0.3702751100063324,
-0.17168015241622925,
-0.24945783615112305,
-0.24908128380775452,
-0.11871752142906189,
-0.1253124624490738,
-0.1293734908103943
] |
https://github.com/huggingface/datasets/issues/261 | Downloading dataset error with pyarrow.lib.RecordBatch | When you install `nlp` for the first time on a Colab runtime, it updates the `pyarrow` library that was already on colab. This update shows this message on colab:
```
WARNING: The following packages were previously imported in this runtime:
[pyarrow]
You must restart the runtime in order to use newly installed versions.
```
You just have to restart the runtime and it should be fine.
If you don't restart, then it breaks like in your message. | I am trying to download `sentiment140` and I have the following error
```
/usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
518 download_mode=download_mode,
519 ignore_verifications=ignore_verifications,
--> 520 save_infos=save_infos,
521 )
522
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
418 verify_infos = not save_infos and not ignore_verifications
419 self._download_and_prepare(
--> 420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
421 )
422 # Sync info
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
472 try:
473 # Prepare split will record examples associated to the split
--> 474 self._prepare_split(split_generator, **prepare_split_kwargs)
475 except OSError:
476 raise OSError("Cannot find data file. " + (self.MANUAL_DOWNLOAD_INSTRUCTIONS or ""))
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _prepare_split(self, split_generator)
652 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
653 example = self.info.features.encode_example(record)
--> 654 writer.write(example)
655 num_examples, num_bytes = writer.finalize()
656
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write(self, example, writer_batch_size)
143 self._build_writer(pa_table=pa.Table.from_pydict(example))
144 if writer_batch_size is not None and len(self.current_rows) >= writer_batch_size:
--> 145 self.write_on_file()
146
147 def write_batch(
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_on_file(self)
127 else:
128 # All good
--> 129 self._write_array_on_file(pa_array)
130 self.current_rows = []
131
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in _write_array_on_file(self, pa_array)
96 def _write_array_on_file(self, pa_array):
97 """Write a PyArrow Array"""
---> 98 pa_batch = pa.RecordBatch.from_struct_array(pa_array)
99 self._num_bytes += pa_array.nbytes
100 self.pa_writer.write_batch(pa_batch)
AttributeError: type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array'
```
I installed the last version and ran the following command:
```python
import nlp
sentiment140 = nlp.load_dataset('sentiment140', cache_dir='/content')
``` | 77 | Downloading dataset error with pyarrow.lib.RecordBatch
I am trying to download `sentiment140` and I have the following error
```
/usr/local/lib/python3.6/dist-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
518 download_mode=download_mode,
519 ignore_verifications=ignore_verifications,
--> 520 save_infos=save_infos,
521 )
522
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
418 verify_infos = not save_infos and not ignore_verifications
419 self._download_and_prepare(
--> 420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
421 )
422 # Sync info
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
472 try:
473 # Prepare split will record examples associated to the split
--> 474 self._prepare_split(split_generator, **prepare_split_kwargs)
475 except OSError:
476 raise OSError("Cannot find data file. " + (self.MANUAL_DOWNLOAD_INSTRUCTIONS or ""))
/usr/local/lib/python3.6/dist-packages/nlp/builder.py in _prepare_split(self, split_generator)
652 for key, record in utils.tqdm(generator, unit=" examples", total=split_info.num_examples, leave=False):
653 example = self.info.features.encode_example(record)
--> 654 writer.write(example)
655 num_examples, num_bytes = writer.finalize()
656
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write(self, example, writer_batch_size)
143 self._build_writer(pa_table=pa.Table.from_pydict(example))
144 if writer_batch_size is not None and len(self.current_rows) >= writer_batch_size:
--> 145 self.write_on_file()
146
147 def write_batch(
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in write_on_file(self)
127 else:
128 # All good
--> 129 self._write_array_on_file(pa_array)
130 self.current_rows = []
131
/usr/local/lib/python3.6/dist-packages/nlp/arrow_writer.py in _write_array_on_file(self, pa_array)
96 def _write_array_on_file(self, pa_array):
97 """Write a PyArrow Array"""
---> 98 pa_batch = pa.RecordBatch.from_struct_array(pa_array)
99 self._num_bytes += pa_array.nbytes
100 self.pa_writer.write_batch(pa_batch)
AttributeError: type object 'pyarrow.lib.RecordBatch' has no attribute 'from_struct_array'
```
I installed the last version and ran the following command:
```python
import nlp
sentiment140 = nlp.load_dataset('sentiment140', cache_dir='/content')
```
When you install `nlp` for the first time on a Colab runtime, it updates the `pyarrow` library that was already on colab. This update shows this message on colab:
```
WARNING: The following packages were previously imported in this runtime:
[pyarrow]
You must restart the runtime in order to use newly installed versions.
```
You just have to restart the runtime and it should be fine.
If you don't restart, then it breaks like in your message. | [
-0.48920735716819763,
0.3927338123321533,
-0.027126599103212357,
0.1367761492729187,
0.1485619843006134,
0.11732222884893417,
0.2704389691352844,
0.5356111526489258,
0.06116567179560661,
-0.19250990450382233,
-0.12850867211818695,
-0.07269661128520966,
-0.06045974791049957,
0.04355587065219879,
0.19969554245471954,
-0.39665642380714417,
-0.03506877273321152,
0.3276588022708893,
0.1510493904352188,
0.16372472047805786,
-0.1724827140569687,
0.14923681318759918,
-0.35935908555984497,
0.1444752812385559,
-0.31866905093193054,
-0.31283944845199585,
-0.11833174526691437,
0.10847343504428864,
-0.3839226961135864,
-0.45009058713912964,
0.3358423113822937,
0.05783240497112274,
0.3932594656944275,
0.26505953073501587,
-0.00011744799849111587,
0.11161734163761139,
0.19057655334472656,
-0.19770720601081848,
-0.4337594509124756,
-0.40069013833999634,
-0.04417145252227783,
-0.23025904595851898,
0.0015389902982860804,
-0.22278115153312683,
0.1908574402332306,
-0.44405075907707214,
0.10074133425951004,
0.20614215731620789,
0.296195924282074,
0.39374426007270813,
0.1861061006784439,
0.3695080876350403,
0.3249908685684204,
-0.16963829100131989,
0.485535591840744,
0.19414998590946198,
-0.09957721084356308,
0.4899007976055145,
0.08046374469995499,
-0.16946810483932495,
-0.058760009706020355,
0.12253148853778839,
-0.2555660903453827,
0.35630059242248535,
-0.010296471416950226,
0.14731575548648834,
0.28812575340270996,
-0.1210026890039444,
0.15993601083755493,
0.19333699345588684,
0.6528948545455933,
-0.3635428249835968,
-0.30386587977409363,
0.005464427173137665,
0.21099522709846497,
-0.35211658477783203,
0.03749949112534523,
0.44391798973083496,
-0.5277157425880432,
0.10566675662994385,
-0.34871041774749756,
-0.09626273810863495,
-0.08070787787437439,
0.31845927238464355,
-0.023749031126499176,
-0.03409451246261597,
-0.005472137592732906,
0.12582212686538696,
0.07786604762077332,
0.07930517196655273,
0.43590211868286133,
0.02079925686120987,
-0.1023329496383667,
0.18005399405956268,
-0.28717556595802307,
0.1098187118768692,
-0.12219462543725967,
0.27008095383644104,
0.2193382978439331,
-0.05378112196922302,
0.13389967381954193,
-0.16523295640945435,
0.24588122963905334,
0.11962325870990753,
0.18689586222171783,
0.28880953788757324,
-0.14297130703926086,
-0.22606265544891357,
0.08291850984096527,
0.09142862260341644,
0.18490315973758698,
-0.08144018799066544,
-0.08128311485052109,
-0.32622963190078735,
0.29959341883659363,
-0.010332997888326645,
0.26764827966690063,
-0.11574098467826843,
-0.47147125005722046,
-0.08964268863201141,
-0.2914096415042877,
-0.1754256933927536,
0.09083104878664017,
0.3734004497528076,
-0.15830208361148834,
-0.037517912685871124,
0.047947466373443604,
0.22709573805332184,
-0.1774015724658966,
-0.18542104959487915,
-0.15698108077049255,
0.056749846786260605,
-0.2840728163719177,
-0.10207700729370117,
0.35714730620384216,
0.19621852040290833,
0.443174809217453,
0.05732748657464981,
-0.09201385080814362,
0.09069854021072388,
0.16813428699970245,
-0.20381951332092285,
0.009952828288078308,
0.40293964743614197,
0.16104218363761902,
-0.008135347627103329,
0.05793255940079689,
-0.0021746791899204254,
-0.08430687338113785,
0.22674736380577087,
0.030599772930145264,
-0.32208868861198425,
-0.19976241886615753,
0.12545914947986603,
-0.25751540064811707,
-0.09709480404853821,
-0.2935265004634857,
-0.12291418015956879,
0.06953154504299164,
-0.2298918068408966,
-0.16568320989608765,
-0.25500863790512085,
-0.013438854366540909,
-0.34290915727615356,
0.2889147400856018,
0.19613468647003174,
-0.5239395499229431,
-0.06063093617558479,
-0.250681072473526,
-0.18616843223571777,
0.37001916766166687,
0.1299464851617813,
-0.3432077169418335,
0.5634212493896484,
-0.23464970290660858,
0.307120144367218,
0.6222012639045715,
-0.28784888982772827,
-0.7235488891601562,
0.27456051111221313,
-0.18675702810287476,
-0.09054609388113022,
0.0017627105116844177,
0.2890402674674988,
0.286121666431427,
-0.04637583717703819,
0.007355883717536926,
0.24261675775051117,
-0.08954267203807831,
0.01451234333217144,
-0.2099614441394806,
-0.13548682630062103,
0.24339456856250763,
0.23874710500240326,
-0.09775497019290924,
0.11145440489053726,
0.045519109815359116,
0.230303555727005,
0.4403785169124603,
0.045352280139923096,
0.24133256077766418,
0.06033655256032944,
0.19274677336215973,
-0.05624942481517792,
-0.09807138890028,
-0.09563666582107544,
-0.46474844217300415,
0.05758420377969742,
-0.4637872278690338,
-0.019891254603862762,
-0.5254125595092773,
-0.23770298063755035,
-0.5607107281684875,
0.07050108909606934,
-0.327223539352417,
-0.03363790735602379,
0.09521107375621796,
0.06527183949947357,
0.19292180240154266,
-0.010928874835371971,
-0.041011057794094086,
0.2827194631099701,
0.16165411472320557,
0.14527879655361176,
0.16673727333545685,
0.33779260516166687,
-0.25187864899635315,
-0.4513130187988281,
0.22205668687820435,
0.2295021116733551,
0.2298683226108551,
0.01182520855218172,
-0.0031027700752019882,
0.36687973141670227,
-0.19245100021362305,
-0.14022217690944672,
-0.05550997704267502,
-0.40570127964019775,
0.17358392477035522,
-0.23174622654914856,
0.1499907225370407,
-0.05211174860596657,
0.14243380725383759,
0.05765456706285477,
0.19177281856536865,
0.05001255124807358,
-0.1557825356721878,
-0.04028741270303726,
0.016780801117420197,
0.25008639693260193,
0.20907093584537506,
-0.03790237009525299,
0.35186338424682617,
0.11673097312450409,
0.1862058788537979,
-0.033659737557172775,
0.3855120539665222,
-0.12433931231498718,
-0.06479679048061371,
-0.059909842908382416,
0.4924832880496979,
-0.12915804982185364,
0.26082924008369446,
0.029229406267404556,
-0.15641018748283386,
-0.10481666028499603,
0.06985887885093689,
-0.03983212634921074,
0.47772735357284546,
0.21221968531608582,
0.04846584424376488,
0.011450028978288174,
-0.11630070954561234,
-0.1007155254483223,
0.10457099974155426,
0.12278298288583755,
0.1494813710451126,
0.12621663510799408,
0.12273813784122467,
-0.13580222427845,
-0.22302064299583435,
-0.2798744738101959,
0.281837522983551,
0.5004069805145264,
-0.23726941645145416,
-0.17150326073169708,
-0.207582488656044,
-0.1684471070766449,
-0.2163599133491516,
-0.3563216030597687,
-0.07269445061683655,
-0.32097962498664856,
0.01796562597155571,
0.12789997458457947,
0.084592804312706,
0.19431127607822418,
-0.019022192806005478,
-0.1591053456068039,
0.05223431438207626,
-0.20810721814632416,
-0.03985729068517685,
-0.2335071563720703,
-0.34179070591926575,
0.014731872826814651,
0.13012634217739105,
0.1167401596903801,
0.36353081464767456,
-0.3642134964466095,
0.008045319467782974,
-0.33665207028388977,
-0.08634822070598602,
0.1599428653717041,
-0.1055036187171936,
0.17394545674324036,
0.34992292523384094,
0.5634798407554626,
-0.32197314500808716,
-0.17883872985839844,
0.13709361851215363,
-0.013437586836516857,
-0.23222507536411285,
0.18214254081249237,
-0.08344122767448425,
0.08989972621202469,
-0.019161714240908623,
-0.40915346145629883,
-0.5689949989318848,
-0.3764411211013794,
0.19926436245441437,
-0.10538923740386963,
0.13561642169952393,
0.1178278997540474,
0.145246684551239,
0.22875112295150757,
-0.06644097715616226,
0.19763775169849396,
-0.0514192096889019,
-0.24294905364513397,
0.31383076310157776,
-0.1990073025226593,
-0.34228217601776123,
0.158925861120224,
-0.08463867753744125,
0.1505790799856186,
0.30351507663726807,
-0.5758488774299622,
-0.057426612824201584,
-0.03225263953208923,
0.5895158648490906,
0.11977352946996689,
0.038748640567064285,
0.3558400869369507,
0.022757424041628838,
-0.06570154428482056,
0.009441576898097992,
-0.054516129195690155,
0.03671820089221001,
-0.2966589331626892,
0.4122067093849182,
-0.08284037560224533,
-0.05441851168870926,
0.00609312579035759,
0.8633524179458618,
-0.009552540257573128,
-0.06443731486797333,
0.3446914851665497,
-0.1457502245903015,
0.08650235831737518,
0.02073024958372116,
-0.28939464688301086,
-0.017617903649806976,
-0.13517507910728455,
0.24538348615169525,
0.1669139564037323,
-0.13401514291763306,
-0.19064190983772278,
-0.25103437900543213,
-0.16370300948619843,
-0.38172510266304016,
-0.3190031051635742,
-0.167271226644516,
0.3672536015510559,
0.46835532784461975,
0.13463784754276276,
0.11672895401716232,
0.004107333719730377,
-0.24496275186538696,
0.11113698780536652,
0.13380366563796997,
-0.06933140009641647,
0.21520577371120453,
-0.008710436522960663,
-0.20162196457386017,
-0.32521161437034607,
0.35025709867477417,
0.15557950735092163,
0.31062352657318115,
-0.10719244927167892,
0.0570252388715744,
0.03287988528609276,
-0.028216730803251266,
0.7746024131774902,
0.10836789757013321,
0.132426455616951,
-0.1934741884469986,
0.22642481327056885,
-0.228109210729599,
-0.06884300708770752,
-0.12397158145904541,
0.5027521848678589,
0.15995092689990997,
0.060591861605644226,
-0.4501764476299286,
-0.006993168964982033,
0.5193057060241699,
0.34878286719322205,
-0.049076810479164124,
-0.354265034198761,
-0.25068598985671997,
-0.47691869735717773,
-0.20184965431690216,
0.010334819555282593,
-0.010658028535544872,
0.2906789183616638,
0.05579317361116409,
0.11901794373989105,
0.12480766326189041,
0.13257655501365662,
-0.008341766893863678,
-0.025583583861589432,
0.2934410274028778,
-0.05177066847681999,
0.10461311042308807,
0.14401549100875854,
0.22566747665405273,
0.22765909135341644,
0.38231655955314636,
0.029033564031124115,
-0.31414178013801575,
-0.008919645100831985,
-0.16111791133880615,
0.0394926518201828,
0.16358910501003265,
-0.11092132329940796,
-0.10152591019868851,
0.2779719829559326,
-0.05075092613697052,
0.03973478078842163,
0.16680899262428284,
0.41432109475135803,
-0.3867514133453369,
-0.22496289014816284,
-0.1781376451253891,
0.47105172276496887,
0.11227327585220337,
0.1021009236574173,
-0.20867326855659485,
0.026715505868196487,
0.02157779037952423,
0.1718594878911972,
-0.10078115016222,
0.886864185333252,
0.010751597583293915,
0.260287344455719,
0.5808553695678711,
-0.3665030002593994,
0.22767722606658936,
-0.1868804693222046,
0.1204865500330925,
-0.29282665252685547,
-0.006437593139708042,
-0.11729131639003754,
-0.11761249601840973,
-0.026349149644374847,
0.19642871618270874,
-0.2615426778793335,
0.22001108527183533,
-0.15682119131088257,
-0.046858686953783035,
0.16098977625370026,
0.05897621810436249,
-0.16023693978786469,
-0.15132620930671692,
-0.3159481883049011,
0.045575790107250214,
-0.34858858585357666,
0.22276799380779266,
-0.18176749348640442,
-0.2723870873451233,
-0.09108084440231323,
-0.06869854032993317,
-0.2695513963699341,
0.025184672325849533,
-0.33812156319618225,
0.03645823150873184,
0.19158831238746643,
-0.27304375171661377,
-0.0793623998761177,
0.13096672296524048,
0.149794802069664,
0.06337472051382065,
-0.20679055154323578,
0.17408493161201477,
0.09714064002037048,
-0.18935026228427887,
0.19459688663482666,
0.09825676679611206,
0.29227039217948914,
-0.12352818995714188,
-0.3940218389034271,
0.2947419583797455,
-0.13240832090377808,
0.1024962067604065,
-0.06471773236989975,
-0.05420607328414917,
0.25223973393440247,
-0.3372141122817993,
-0.10611683130264282,
-0.21110951900482178,
-0.03212883695960045,
-0.27724316716194153,
0.08726002275943756,
0.05194038152694702,
-0.24268107116222382,
0.23577401041984558,
-0.19994767010211945,
-0.23728135228157043,
-0.18148183822631836,
0.36516502499580383,
-0.042155519127845764,
-0.004310868680477142,
0.5533019304275513,
0.31921684741973877,
-0.31439918279647827,
-0.24410948157310486,
-0.2828899025917053,
-0.06291791051626205,
-0.9106290340423584,
0.19672930240631104,
0.23734302818775177,
0.2654592990875244,
-0.0982801541686058,
0.5354987382888794,
0.12930971384048462,
-0.10341160744428635,
0.11702930927276611,
-0.4300207793712616,
-0.3058284521102905,
0.16510066390037537,
0.3079102337360382,
0.11836861073970795,
0.39513906836509705,
0.2511396110057831,
0.2111160308122635,
-0.07036147266626358,
-0.26070404052734375,
-0.07417512685060501,
-0.16782377660274506,
0.17733556032180786,
-0.21261151134967804,
-0.09438248723745346,
0.08208948373794556,
0.10415838658809662,
0.09972111880779266,
0.12108178436756134,
-0.07119759917259216,
-0.16383948922157288,
-0.07920560240745544,
0.15965071320533752,
-0.059379398822784424,
-0.24331510066986084,
0.17055900394916534,
-0.11616142094135284,
-0.11386187374591827,
0.12571761012077332,
0.1328084021806717,
0.2116767168045044,
0.016608934849500656,
0.1139964610338211,
0.056795213371515274,
-0.0683959349989891,
-0.25621747970581055,
0.13027769327163696,
-0.09853623807430267,
0.18059328198432922,
0.06659098714590073,
0.29274582862854004,
-0.08022504299879074,
-0.059700556099414825,
-0.06881210207939148,
-0.20733529329299927,
0.03620842099189758,
-0.2590169906616211,
0.2924414277076721,
-0.5262513160705566,
-0.005149535834789276,
-0.031584396958351135,
0.4530531167984009,
0.05917121842503548,
-0.1012713834643364,
-0.13705234229564667,
0.2682364881038666,
0.15234963595867157,
-0.476733535528183,
0.009680130518972874,
0.0931735634803772,
0.14186887443065643,
-0.010812081396579742,
0.21865522861480713,
-0.10740943253040314,
-0.11575203388929367,
-0.03133310377597809,
0.17954421043395996,
0.3452132046222687,
-0.005290359258651733,
-0.18989306688308716,
0.5471909642219543,
-0.01444431021809578,
0.1763182282447815,
0.23274314403533936,
0.3172615170478821,
0.017039582133293152,
0.3329916000366211,
-0.5497568845748901,
0.1368769258260727,
-0.17893251776695251,
0.04634547978639603,
-0.08187646418809891,
-0.32553693652153015,
0.19902251660823822,
0.3870963752269745,
0.09408316016197205,
-0.09937641769647598,
-0.15490709245204926,
0.6332026720046997,
0.0930417999625206,
0.20312286913394928,
-0.07617543637752533,
0.22352273762226105,
-0.17462027072906494,
0.14398495852947235,
-0.1785450428724289,
-0.15318554639816284,
-0.20553970336914062,
0.0028453990817070007,
-0.10265745222568512,
-0.21156500279903412,
0.18800336122512817,
0.2344941645860672,
-0.06531323492527008,
-0.5137713551521301,
0.29277303814888,
0.16844725608825684,
-0.21324634552001953,
-0.25075703859329224,
0.2595614790916443,
0.2752038240432739,
-0.16261334717273712,
0.22502563893795013,
0.45636075735092163,
0.432453989982605,
0.2736492156982422,
-0.3166602551937103,
-0.10963600873947144,
-0.03872052952647209,
-0.06933315843343735,
-0.06255513429641724,
0.10971400886774063,
0.3515847623348236,
0.41938191652297974,
0.3758336305618286,
0.11254335939884186,
-0.08241961151361465,
0.23613116145133972,
0.20100951194763184,
-0.10009916126728058,
0.07340288162231445,
0.488006055355072,
-0.24082273244857788,
-0.32821568846702576,
-0.12924976646900177,
-0.011095605790615082,
-0.364689439535141,
0.08409533649682999,
0.13754218816757202,
0.14159652590751648,
0.05545523017644882,
-0.19485752284526825,
0.04361830651760101,
-0.2801862955093384,
0.4929967522621155,
0.494610071182251,
0.4332984387874603,
-0.4648803174495697,
0.031110920011997223,
-0.6018990874290466,
0.22124698758125305,
-0.31575268507003784,
-0.34984955191612244,
0.0853397324681282,
0.10896791517734528,
-0.10488372296094894,
0.3607357144355774,
0.27577805519104004,
0.003930462524294853,
-0.017950233072042465,
0.17348939180374146,
-0.24041695892810822,
-0.18574605882167816,
0.03779314085841179,
0.17272472381591797,
-0.06356687843799591,
-0.39678213000297546,
0.2733367383480072,
-0.1753035932779312,
-0.010003603994846344,
-0.3056259751319885,
-0.39991462230682373,
0.2436995506286621,
0.18939684331417084,
0.11431092023849487,
-0.05279824882745743,
0.4787839949131012,
0.10114303976297379,
-0.034837935119867325,
-0.01242004707455635,
0.15262030065059662,
-0.04529591277241707,
0.0007046982645988464,
0.12066668272018433,
0.3290967345237732,
-0.1067851185798645,
0.30487966537475586,
-0.34484291076660156,
0.3387077748775482,
0.04872836917638779,
0.09681858867406845,
-0.1237950548529625,
-0.009945772588253021,
-0.11823669075965881,
-0.029562674462795258,
0.14713193476200104,
-0.13873639702796936,
-0.1716977208852768,
0.09176231920719147,
-0.5351994037628174,
-0.4105946123600006,
0.515789270401001,
-0.49646952748298645,
-0.19944880902767181,
0.06379703432321548,
0.2571902275085449,
-0.00011871010065078735,
-0.22477270662784576,
-0.5702167749404907,
0.26951003074645996,
0.30668094754219055,
0.08650515973567963,
-0.18993213772773743,
0.12506020069122314,
-0.134187251329422,
0.10827985405921936,
0.1559746265411377,
0.30936503410339355,
-0.08180779218673706,
-0.3986259698867798,
-0.1257157176733017,
-0.2106924206018448
] |
https://github.com/huggingface/datasets/issues/259 | documentation missing how to split a dataset | this seems to work for my specific problem:
`self.train_ds, self.test_ds, self.val_ds = map(_prepare_ds, ('train', 'test[:25%]+test[50%:75%]', 'test[75%:]'))` | I am trying to understand how to split a dataset ( as arrow_dataset).
I know I can do something like this to access a split which is already in the original dataset :
`ds_test = nlp.load_dataset('imdb, split='test') `
But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)?
I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description:
> See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information.
But the guide seems to be missing.
To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this:
`ds_test = nlp.load_dataset('imdb, split='test'[:5000]) `
`ds_val = nlp.load_dataset('imdb, split='test'[5000:])`
because the imdb test data is sorted by class (probably not a good idea anyway)
| 16 | documentation missing how to split a dataset
I am trying to understand how to split a dataset ( as arrow_dataset).
I know I can do something like this to access a split which is already in the original dataset :
`ds_test = nlp.load_dataset('imdb, split='test') `
But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)?
I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description:
> See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information.
But the guide seems to be missing.
To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this:
`ds_test = nlp.load_dataset('imdb, split='test'[:5000]) `
`ds_val = nlp.load_dataset('imdb, split='test'[5000:])`
because the imdb test data is sorted by class (probably not a good idea anyway)
this seems to work for my specific problem:
`self.train_ds, self.test_ds, self.val_ds = map(_prepare_ds, ('train', 'test[:25%]+test[50%:75%]', 'test[75%:]'))` | [
-0.018602732568979263,
0.06782014667987823,
-0.06753368675708771,
0.17673832178115845,
-0.003945041447877884,
0.18629539012908936,
0.45442643761634827,
0.38052910566329956,
-0.0849740281701088,
0.009618021547794342,
0.15798170864582062,
0.29816392064094543,
-0.19395996630191803,
0.11714688688516617,
0.19690348207950592,
-0.3786967396736145,
-0.11625229567289352,
0.21967902779579163,
0.22028519213199615,
-0.020772065967321396,
0.26831623911857605,
-0.08780897408723831,
-0.30139967799186707,
0.12893825769424438,
-0.3250901699066162,
-0.4462776780128479,
-0.16248799860477448,
-0.056075893342494965,
-0.2404284030199051,
-0.22450217604637146,
0.2357390969991684,
-0.24764886498451233,
0.022950690239667892,
0.2671959400177002,
-0.00011698010348482057,
0.08588263392448425,
0.2045547515153885,
-0.12312407046556473,
-0.06245676428079605,
-0.20402579009532928,
-0.3563699424266815,
-0.09652301669120789,
0.36874452233314514,
-0.15157535672187805,
-0.01689956709742546,
-0.2895180284976959,
0.11565028131008148,
-0.12467186152935028,
0.5587257146835327,
0.47057971358299255,
0.09777481108903885,
0.0605921670794487,
0.15095098316669464,
0.07479211688041687,
-0.011690445244312286,
0.3118746280670166,
-0.10744036734104156,
0.07410523295402527,
-0.1767973005771637,
-0.11088839918375015,
-0.13654842972755432,
0.07059811055660248,
0.17533820867538452,
0.20464587211608887,
0.043874919414520264,
0.010681848041713238,
-0.38630613684654236,
-0.44494739174842834,
-0.17256173491477966,
0.5125130414962769,
0.5099628567695618,
-0.31272631883621216,
-0.3157457709312439,
-0.3438553512096405,
0.03735643997788429,
-0.2178645133972168,
-0.10184066742658615,
0.578714907169342,
-0.12155236303806305,
0.10027411580085754,
-0.1438940018415451,
-0.19827933609485626,
-0.30058613419532776,
0.16990958154201508,
0.03576090186834335,
0.3928735554218292,
-0.09283670783042908,
0.0900411605834961,
0.254707932472229,
0.2649126648902893,
0.21477821469306946,
0.044595301151275635,
-0.007795855402946472,
0.30594485998153687,
-0.26383328437805176,
-0.2898096442222595,
-0.11924458295106888,
-0.42620134353637695,
0.12044834345579147,
0.2507861256599426,
0.1336134374141693,
-0.062240585684776306,
-0.19785144925117493,
0.17021110653877258,
0.4436993896961212,
0.23495914041996002,
0.17606541514396667,
0.4938238561153412,
0.003434959799051285,
-0.0555998869240284,
0.004060216248035431,
-0.15366515517234802,
-0.0026442178059369326,
-0.25522151589393616,
-0.004802552983164787,
0.11848054081201553,
0.144533172249794,
0.09705378115177155,
-0.2874825894832611,
-0.3272712230682373,
-0.31070926785469055,
-0.14245733618736267,
0.13995832204818726,
0.1261715590953827,
0.050623588263988495,
-0.07497497648000717,
-0.31345051527023315,
0.2443237155675888,
-0.3853573501110077,
-0.15056246519088745,
-0.10966182500123978,
0.1972878873348236,
-0.4032861292362213,
0.10874887555837631,
0.10177198052406311,
0.0077644288539886475,
0.39677125215530396,
-0.09830109775066376,
0.006802365183830261,
-0.3800591230392456,
0.32356882095336914,
-0.006087795831263065,
0.23129788041114807,
0.42294126749038696,
0.1666380912065506,
0.024442093446850777,
0.09215869009494781,
0.12392623722553253,
-0.33567014336586,
-0.03313855826854706,
-0.37593525648117065,
-0.4590529501438141,
-0.008535603061318398,
0.028857242316007614,
-0.011236727237701416,
0.21264132857322693,
-0.21172136068344116,
0.3877968490123749,
0.06553582847118378,
-0.03927474841475487,
0.20406514406204224,
0.030932322144508362,
-0.18640580773353577,
-0.31860947608947754,
0.262012779712677,
-0.035558074712753296,
-0.376545250415802,
-0.08409057557582855,
-0.35319820046424866,
-0.010514143854379654,
-0.037545345723629,
0.1668778657913208,
-0.3595997989177704,
0.5219771265983582,
-0.07655754685401917,
0.48397451639175415,
0.7543487548828125,
-0.24175316095352173,
-0.09823046624660492,
0.2866486608982086,
0.11206725239753723,
-0.28190144896507263,
-0.1141311302781105,
-0.04691748321056366,
0.2763131260871887,
0.1434243619441986,
-0.3279211223125458,
0.40148890018463135,
-0.3133449852466583,
-0.1627569943666458,
0.2922533452510834,
-0.2228444367647171,
0.23790515959262848,
-0.06285302340984344,
-0.07858684659004211,
-0.270649790763855,
0.20403560996055603,
0.2698468863964081,
0.46874725818634033,
0.015190362930297852,
0.17628683149814606,
0.18044869601726532,
0.04687831550836563,
0.12267421185970306,
-0.10348381847143173,
-0.35996538400650024,
-0.36741605401039124,
-0.03638164699077606,
0.12090283632278442,
-0.11677750945091248,
0.013648651540279388,
-0.26520848274230957,
-0.18703040480613708,
-0.1520998775959015,
0.02121082693338394,
-0.2905018627643585,
0.050076648592948914,
-0.37728992104530334,
0.18677636981010437,
-0.10278931260108948,
-0.4393511116504669,
0.07196108996868134,
-0.17442233860492706,
0.24003441631793976,
-0.44507521390914917,
0.10220444947481155,
0.09193692356348038,
-0.0668003261089325,
0.0983598530292511,
0.2759683430194855,
-0.031931109726428986,
-0.11381896585226059,
0.02150360681116581,
0.5539044141769409,
0.559756338596344,
-0.008686691522598267,
-0.22205021977424622,
0.021695569157600403,
0.4029690623283386,
-0.4507805407047272,
0.1424923688173294,
-0.05889435485005379,
-0.036388736218214035,
-0.002012312412261963,
-0.4457801282405853,
0.3606334924697876,
-0.3332401216030121,
0.3146028518676758,
0.17358027398586273,
0.145176500082016,
0.0354459285736084,
-0.191553995013237,
-0.277009516954422,
-0.029292814433574677,
-0.26913419365882874,
-0.3689309060573578,
0.21416813135147095,
-0.028261622413992882,
-0.15070746839046478,
0.054016027599573135,
0.44561508297920227,
-0.2017524242401123,
0.1850406974554062,
-0.13726848363876343,
0.06449763476848602,
-0.01475220825523138,
0.1648784577846527,
0.41857320070266724,
0.2900049388408661,
-0.006122589111328125,
0.40065741539001465,
-0.07905008643865585,
-0.2734706699848175,
-0.07566504180431366,
0.11545643210411072,
0.2213156521320343,
0.4420468211174011,
-0.032939016819000244,
-0.39733079075813293,
-0.08685401827096939,
-0.00566587969660759,
0.03538411483168602,
0.17229078710079193,
0.061574697494506836,
-0.2826007604598999,
0.11213203519582748,
-0.3698825538158417,
-0.11152917891740799,
-0.4540897309780121,
-0.2572496831417084,
-0.08542928099632263,
-0.23043757677078247,
-0.1461101770401001,
-0.15688183903694153,
-0.03090817853808403,
-0.024791108444333076,
-0.15844318270683289,
-0.0758848637342453,
-0.15447357296943665,
0.1494782716035843,
0.39114224910736084,
-0.2639918029308319,
-0.16559264063835144,
0.039947863668203354,
0.1162465363740921,
0.5957334041595459,
0.27618423104286194,
0.06916605681180954,
-0.16880327463150024,
0.11827022582292557,
-0.290118545293808,
0.2202608287334442,
-0.2356201559305191,
0.008544704876840115,
0.20443958044052124,
0.1658632457256317,
0.04784264415502548,
-0.29531624913215637,
-0.21436306834220886,
-0.1857382357120514,
-0.15272101759910583,
-0.0875527486205101,
0.233458012342453,
0.0979502871632576,
-0.17646975815296173,
-0.7052024602890015,
-0.2810891568660736,
-0.19379310309886932,
0.26983827352523804,
-0.25161507725715637,
0.2213243842124939,
0.21118630468845367,
0.1571694314479828,
0.37123116850852966,
0.10776068270206451,
-0.09275679290294647,
0.1806754618883133,
0.26213711500167847,
0.024327225983142853,
-0.47079160809516907,
-0.2082177996635437,
0.26003605127334595,
-0.028009261935949326,
0.21695595979690552,
0.029476046562194824,
-0.1711169183254242,
0.15496809780597687,
-0.1848183274269104,
-0.06378278136253357,
-0.07156620174646378,
-0.021511739119887352,
0.26966744661331177,
-0.18753373622894287,
0.23745690286159515,
-0.16067670285701752,
0.11277475953102112,
0.15087950229644775,
-0.07872872054576874,
0.1865571290254593,
0.029535401612520218,
0.30883729457855225,
0.2784067392349243,
0.7139958739280701,
0.2629847228527069,
-0.10933290421962738,
-0.2752418518066406,
-0.14568597078323364,
0.0979025810956955,
0.11125689744949341,
-0.07159808278083801,
0.0010460347402840853,
-0.08922150731086731,
-0.1402042806148529,
0.03153351694345474,
0.2297077775001526,
-0.2494010180234909,
0.051575496792793274,
0.04182759299874306,
-0.38899216055870056,
-0.4456571638584137,
0.33257150650024414,
-0.4490876793861389,
0.2467714250087738,
-0.06560537219047546,
0.04511883854866028,
0.08559627830982208,
-0.044284388422966,
-0.3033316433429718,
0.12364869564771652,
0.2424200475215912,
0.025077354162931442,
-0.3818572163581848,
-0.07733458280563354,
-0.20659247040748596,
-0.10824006795883179,
0.11951562762260437,
0.1951931118965149,
-0.12964962422847748,
-0.015336653217673302,
0.22844679653644562,
0.2635782063007355,
0.27360719442367554,
-0.16423840820789337,
-0.0948626697063446,
-0.11137305200099945,
0.114850252866745,
-0.35095053911209106,
0.13599784672260284,
-0.2249264270067215,
0.38315168023109436,
0.06229933351278305,
-0.05454571545124054,
-0.37644797563552856,
-0.46568763256073,
0.4516025185585022,
-0.05901344493031502,
-0.1405365914106369,
0.13367347419261932,
-0.1243651807308197,
-0.233519047498703,
0.03564830124378204,
0.09203185141086578,
0.385458767414093,
-0.15819697082042694,
-0.06390847265720367,
0.058764878660440445,
-0.12798850238323212,
-0.0762225016951561,
0.18287256360054016,
-0.021405909210443497,
0.2896789312362671,
0.0741284042596817,
-0.13207320868968964,
0.39655235409736633,
0.09846199303865433,
-0.03762733191251755,
0.30371248722076416,
-0.1442088484764099,
-0.14239494502544403,
0.16430482268333435,
-0.08013855665922165,
0.6287437677383423,
0.28626394271850586,
0.05457450449466705,
0.0391625240445137,
-0.08323461562395096,
-0.21811892092227936,
-0.2484402060508728,
0.3092343211174011,
0.23220841586589813,
-0.13572345674037933,
-0.22327257692813873,
-0.5992254018783569,
0.39321306347846985,
0.10758176445960999,
-0.04067128151655197,
0.5002293586730957,
0.22755764424800873,
-0.3482248783111572,
0.40416449308395386,
0.22374245524406433,
0.6722362041473389,
0.09737388044595718,
0.1001954972743988,
0.14064040780067444,
-0.24438956379890442,
0.5452370047569275,
-0.45559096336364746,
0.16622737050056458,
-0.18402588367462158,
-0.1389528065919876,
-0.1402611881494522,
-0.2584874927997589,
0.01190190389752388,
0.39694416522979736,
0.04395658150315285,
0.26098793745040894,
-0.10268037021160126,
0.003461848944425583,
-0.1664130836725235,
0.37935692071914673,
-0.10909754782915115,
-0.07126283645629883,
0.033445414155721664,
0.04779457300901413,
-0.1448667347431183,
-0.028489183634519577,
0.04708738625049591,
-0.11839985847473145,
-0.244673952460289,
0.06455086916685104,
-0.38496047258377075,
-0.024767249822616577,
-0.1915406733751297,
0.18074719607830048,
-0.028959009796380997,
-0.1621687412261963,
0.2941591739654541,
0.2815639078617096,
0.05049001798033714,
-0.06855186820030212,
-0.03694186359643936,
0.25601255893707275,
-0.21466311812400818,
-0.01734727993607521,
-0.12568089365959167,
-0.04431065544486046,
0.42629897594451904,
0.16207051277160645,
-0.2744208872318268,
0.03170847147703171,
-0.18382211029529572,
-0.11254695057868958,
0.08722494542598724,
0.3421586751937866,
0.17468050122261047,
-0.35438892245292664,
-0.10897356271743774,
0.14388743042945862,
0.014854151755571365,
0.039193045347929,
0.05967040732502937,
0.02583238109946251,
-0.25073426961898804,
0.18310385942459106,
-0.01851249858736992,
-0.18730948865413666,
0.08043734729290009,
-0.15625610947608948,
0.09684501588344574,
0.1265893429517746,
0.34596148133277893,
0.04430752620100975,
0.016620129346847534,
-0.23444324731826782,
0.34405699372291565,
0.5174094438552856,
-0.30703768134117126,
-0.046517569571733475,
-0.40889444947242737,
0.14942874014377594,
0.08954418450593948,
-0.17404350638389587,
0.03808978945016861,
0.33333536982536316,
-0.3144911825656891,
-0.4444495439529419,
0.027880070731043816,
0.34179770946502686,
-0.17802488803863525,
0.3478836417198181,
-0.24382343888282776,
0.11857189238071442,
0.07069823890924454,
0.4230940639972687,
-0.1612759232521057,
0.19149796664714813,
0.15697044134140015,
0.352700799703598,
0.04303043335676193,
0.10546044260263443,
0.2481156438589096,
-0.1356281340122223,
-0.0801786482334137,
0.07665708661079407,
0.09691066294908524,
-0.16246968507766724,
-0.14401496946811676,
0.15749149024486542,
-0.0706927627325058,
0.030764218419790268,
-0.21504880487918854,
-0.26502934098243713,
-0.2186555564403534,
-0.047331083565950394,
0.0042866915464401245,
-0.0976666808128357,
0.18377642333507538,
0.42652246356010437,
0.3082597851753235,
0.16020488739013672,
-0.22029279172420502,
0.07266522943973541,
-0.07701806724071503,
0.34985077381134033,
0.07863759994506836,
0.2602565884590149,
0.14350971579551697,
0.099827840924263,
-0.26082390546798706,
-0.027991756796836853,
0.2979617714881897,
-0.40333059430122375,
-0.039421454071998596,
0.20674622058868408,
0.22813484072685242,
-0.6105561256408691,
0.3794702887535095,
0.46856847405433655,
0.11273166537284851,
0.16522447764873505,
0.08984316140413284,
0.06358776241540909,
0.14680595695972443,
0.23767976462841034,
0.26066911220550537,
0.18592023849487305,
-0.009955640882253647,
0.29440736770629883,
0.1209147721529007,
0.6356111168861389,
-0.3971503973007202,
-0.07452759146690369,
0.12078619748353958,
0.01510497834533453,
0.3635284900665283,
0.4176059663295746,
-0.29860320687294006,
-0.11512090265750885,
0.2397632598876953,
-0.349839985370636,
0.30018290877342224,
0.16398921608924866,
0.08710504323244095,
0.5904926061630249,
0.0476488322019577,
0.047010939568281174,
0.3991539180278778,
-0.08683060109615326,
-0.5318816304206848,
0.053783826529979706,
0.10086575895547867,
-0.08931944519281387,
-0.0804370790719986,
0.5899494290351868,
-0.06141040846705437,
-0.27442845702171326,
-0.04727298021316528,
0.14674466848373413,
0.07452820241451263,
-0.020305247977375984,
-0.4402683675289154,
-0.0016300976276397705,
-0.26779767870903015,
-0.1046605110168457,
0.18563103675842285,
-0.309409499168396,
0.3539855182170868,
0.06242404505610466,
0.10024428367614746,
-0.029945211485028267,
0.2893146276473999,
0.26521652936935425,
0.07792068272829056,
-0.016749612987041473,
0.00980335846543312,
-0.16361553966999054,
-0.04561954736709595,
-0.09232747554779053,
0.17611321806907654,
0.14909586310386658,
-0.08622746169567108,
-0.3744150996208191,
0.1067139133810997,
0.2882683575153351,
-0.1811637282371521,
0.18445917963981628,
0.21095098555088043,
-0.09573781490325928,
0.05813010409474373,
0.1442095935344696,
0.0998028889298439,
-0.035947106778621674,
-0.001720186322927475,
0.13332320749759674,
0.06717507541179657,
-0.43718165159225464,
0.4507316052913666,
-0.10032542049884796,
-0.1818159520626068,
-0.11517323553562164,
-0.003097325563430786,
-0.25199833512306213,
-0.1963946521282196,
0.5572987198829651,
-0.3428582549095154,
0.09526984393596649,
-0.165973961353302,
0.0025319866836071014,
-0.11938340961933136,
0.6049438118934631,
0.048550792038440704,
0.287243515253067,
-0.23063907027244568,
-0.23531155288219452,
-0.34840741753578186,
-0.1724649965763092,
-0.26167380809783936,
-0.14311088621616364,
0.11644664406776428,
0.3252500891685486,
-0.20031961798667908,
0.1976139396429062,
-0.052398115396499634,
0.022370757535099983,
0.1338508576154709,
0.2788357138633728,
-0.05564473569393158,
-0.2280525416135788,
-0.32002151012420654,
0.19413059949874878,
-0.08338422328233719,
-0.24655351042747498,
-0.029668692499399185,
-0.09172530472278595,
-0.27447375655174255,
0.14141497015953064,
-0.10916027426719666,
0.5010812282562256,
0.47888192534446716,
-0.07082580029964447,
0.16269612312316895,
0.4706985354423523,
0.21417170763015747,
0.06188608705997467,
-0.36315497756004333,
0.06310094147920609,
-0.32237374782562256,
0.42414289712905884,
-0.07200644910335541,
0.23870491981506348,
-0.3206014037132263,
0.06453073024749756,
-0.18233922123908997,
0.11542823910713196,
0.04565132409334183,
-0.18409782648086548,
-0.23061779141426086,
-0.05142555385828018,
-0.34328120946884155,
0.1858374923467636,
0.8144020438194275,
0.4527970850467682,
-0.32235637307167053,
-0.006581738591194153,
0.15158498287200928,
-0.12273180484771729,
-0.07486364245414734,
-0.42572441697120667,
-0.1299208551645279,
0.1879648119211197,
0.17651954293251038,
0.43258658051490784,
-0.08113814890384674,
-0.7890358567237854,
-0.23772528767585754,
0.2145494669675827,
-0.24280023574829102,
0.057500336319208145,
0.07962453365325928,
0.36782869696617126,
-0.13397890329360962,
-0.03476458787918091,
0.4012279510498047,
0.1358882486820221,
-0.3040013015270233,
0.0704723596572876,
-0.32254284620285034
] |
https://github.com/huggingface/datasets/issues/259 | documentation missing how to split a dataset | Currently you can indeed split a dataset using `ds_test = nlp.load_dataset('imdb, split='test[:5000]')` (works also with percentages).
However right now we don't have a way to shuffle a dataset but we are thinking about it in the discussion in #166. Feel free to share your thoughts about it.
One trick that you can do until we have a better solution is to shuffle and split the indices of your dataset:
```python
import nlp
from sklearn.model_selection import train_test_split
imdb = nlp.load_dataset('imbd', split='test')
test_indices, val_indices = train_test_split(range(len(imdb)))
```
and then to iterate each split:
```python
for i in test_indices:
example = imdb[i]
...
```
| I am trying to understand how to split a dataset ( as arrow_dataset).
I know I can do something like this to access a split which is already in the original dataset :
`ds_test = nlp.load_dataset('imdb, split='test') `
But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)?
I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description:
> See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information.
But the guide seems to be missing.
To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this:
`ds_test = nlp.load_dataset('imdb, split='test'[:5000]) `
`ds_val = nlp.load_dataset('imdb, split='test'[5000:])`
because the imdb test data is sorted by class (probably not a good idea anyway)
| 101 | documentation missing how to split a dataset
I am trying to understand how to split a dataset ( as arrow_dataset).
I know I can do something like this to access a split which is already in the original dataset :
`ds_test = nlp.load_dataset('imdb, split='test') `
But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)?
I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description:
> See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information.
But the guide seems to be missing.
To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this:
`ds_test = nlp.load_dataset('imdb, split='test'[:5000]) `
`ds_val = nlp.load_dataset('imdb, split='test'[5000:])`
because the imdb test data is sorted by class (probably not a good idea anyway)
Currently you can indeed split a dataset using `ds_test = nlp.load_dataset('imdb, split='test[:5000]')` (works also with percentages).
However right now we don't have a way to shuffle a dataset but we are thinking about it in the discussion in #166. Feel free to share your thoughts about it.
One trick that you can do until we have a better solution is to shuffle and split the indices of your dataset:
```python
import nlp
from sklearn.model_selection import train_test_split
imdb = nlp.load_dataset('imbd', split='test')
test_indices, val_indices = train_test_split(range(len(imdb)))
```
and then to iterate each split:
```python
for i in test_indices:
example = imdb[i]
...
```
| [
0.06009940430521965,
0.05920243263244629,
-0.06156197190284729,
0.11396973580121994,
-0.013390716165304184,
0.22314879298210144,
0.4341292381286621,
0.34234619140625,
-0.08726128935813904,
0.09042391926050186,
0.11232995241880417,
0.3258260488510132,
-0.251776784658432,
0.11685817688703537,
0.1798710972070694,
-0.3691288232803345,
-0.06624004989862442,
0.1591637134552002,
0.24432693421840668,
0.03081803023815155,
0.22149264812469482,
-0.15231205523014069,
-0.3721359968185425,
0.07190261781215668,
-0.2917355000972748,
-0.4570455551147461,
-0.2463943362236023,
-0.05413717031478882,
-0.27537092566490173,
-0.2368955910205841,
0.17016847431659698,
-0.08537374436855316,
-0.006451454013586044,
0.2993580400943756,
-0.00011711735714925453,
-0.0006968751549720764,
0.22161392867565155,
-0.11507458239793777,
-0.15204481780529022,
-0.27495843172073364,
-0.2659643888473511,
0.0024024518206715584,
0.3048648238182068,
-0.2019951492547989,
0.01871032640337944,
-0.26793575286865234,
0.10415349155664444,
-0.11388489603996277,
0.5253757238388062,
0.4025019407272339,
0.09737688302993774,
-0.01874491199851036,
0.05933963134884834,
0.1293642818927765,
0.07494448125362396,
0.27727118134498596,
-0.06506230682134628,
0.1716543436050415,
-0.18230599164962769,
-0.09564296901226044,
-0.13511446118354797,
0.04886750131845474,
0.16107994318008423,
0.226203054189682,
0.10254480689764023,
0.023988895118236542,
-0.3529037833213806,
-0.4566059410572052,
-0.17250335216522217,
0.5094364285469055,
0.4698418080806732,
-0.33142632246017456,
-0.35922694206237793,
-0.3861285448074341,
0.12773095071315765,
-0.2642100751399994,
-0.13123667240142822,
0.5653485059738159,
-0.09737293422222137,
-0.055090222507715225,
-0.15455090999603271,
-0.12978114187717438,
-0.25608158111572266,
0.1392175853252411,
0.08537736535072327,
0.539790689945221,
-0.03236260637640953,
0.07690926641225815,
0.3139477074146271,
0.20437277853488922,
0.4018697142601013,
-0.024770278483629227,
-0.011732324957847595,
0.35846051573753357,
-0.25612473487854004,
-0.31210166215896606,
-0.13031816482543945,
-0.4234107434749603,
0.11904741078615189,
0.25784146785736084,
0.17167657613754272,
-0.08561569452285767,
-0.17894291877746582,
0.10597414523363113,
0.44757357239723206,
0.2421584576368332,
0.18644969165325165,
0.4735393822193146,
0.00368591770529747,
0.015850380063056946,
0.055002715438604355,
-0.1519697904586792,
-0.03042633831501007,
-0.2850624918937683,
-0.054090168327093124,
0.1259508728981018,
0.042341865599155426,
0.10311061143875122,
-0.3341118395328522,
-0.3942469358444214,
-0.31496238708496094,
-0.19226157665252686,
0.17695268988609314,
0.15305456519126892,
0.033044345676898956,
-0.05517183244228363,
-0.3120958209037781,
0.2518872618675232,
-0.3018949031829834,
-0.004585537128150463,
-0.12498065829277039,
0.1991761028766632,
-0.40281614661216736,
0.09094023704528809,
0.13776512444019318,
0.027254456654191017,
0.3933166265487671,
-0.0744718685746193,
0.08510571718215942,
-0.32336002588272095,
0.2844262719154358,
0.013547174632549286,
0.20843425393104553,
0.3916259706020355,
0.1960049867630005,
0.034171245992183685,
0.0379534475505352,
0.17217005789279938,
-0.3572605848312378,
0.010658718645572662,
-0.37622255086898804,
-0.38633665442466736,
0.059066660702228546,
0.03592453524470329,
-0.042966078966856,
0.13750529289245605,
-0.30597084760665894,
0.38507020473480225,
0.002813383936882019,
-0.0842985212802887,
0.18368318676948547,
-0.03547069430351257,
-0.18839560449123383,
-0.30664291977882385,
0.26356276869773865,
-0.04239705204963684,
-0.30141568183898926,
-0.08503308147192001,
-0.3118216097354889,
0.034872181713581085,
0.009223215281963348,
0.22538204491138458,
-0.3613468408584595,
0.4354795813560486,
-0.0787983164191246,
0.42663687467575073,
0.7096791863441467,
-0.16683822870254517,
-0.08304859697818756,
0.1356397122144699,
0.07302509248256683,
-0.24751634895801544,
-0.05864261835813522,
-0.025410473346710205,
0.27929529547691345,
0.08227858692407608,
-0.2581383287906647,
0.4794851541519165,
-0.33176806569099426,
-0.0684080645442009,
0.29645267128944397,
-0.25189998745918274,
0.3039955496788025,
0.002651166170835495,
-0.11293451488018036,
-0.25377532839775085,
0.18648360669612885,
0.3416494131088257,
0.5174593925476074,
0.00029229745268821716,
0.1240524873137474,
0.12213245034217834,
0.034770816564559937,
0.23333916068077087,
-0.06848403066396713,
-0.3601815402507782,
-0.29260319471359253,
-0.07240291684865952,
0.16962531208992004,
-0.0901159942150116,
0.02935735136270523,
-0.29040855169296265,
-0.24477776885032654,
-0.23009753227233887,
0.026719119399785995,
-0.26596981287002563,
0.05622361600399017,
-0.30881914496421814,
0.2587304711341858,
-0.1421920210123062,
-0.4538697600364685,
-0.022831326350569725,
-0.2623423635959625,
0.15787379443645477,
-0.45560356974601746,
0.2260335385799408,
0.09709791094064713,
-0.15135300159454346,
0.12351152300834656,
0.3515442907810211,
-0.06762338429689407,
-0.10018346458673477,
-0.01390199363231659,
0.6143959760665894,
0.5653506517410278,
-0.0955953598022461,
-0.170224130153656,
0.029423847794532776,
0.43212947249412537,
-0.37139010429382324,
0.1643286496400833,
-0.07341977953910828,
0.007383343763649464,
0.0067608654499053955,
-0.42065486311912537,
0.42400723695755005,
-0.5293163657188416,
0.38249993324279785,
0.21835194528102875,
0.055413611233234406,
0.016122521832585335,
-0.09533680230379105,
-0.31663331389427185,
0.022135205566883087,
-0.20150531828403473,
-0.3675965964794159,
0.11824510991573334,
-0.06441103667020798,
-0.20699141919612885,
0.02601352334022522,
0.4118818938732147,
-0.19969892501831055,
0.10810691118240356,
-0.13601979613304138,
0.013238944113254547,
-0.040351081639528275,
0.11190593987703323,
0.442880243062973,
0.2646600008010864,
0.06288237869739532,
0.3699392080307007,
-0.09811403602361679,
-0.28327447175979614,
-0.09415514767169952,
0.11233082413673401,
0.2549903690814972,
0.4364364743232727,
0.011018197983503342,
-0.28430911898612976,
-0.08640505373477936,
-0.024016093462705612,
-0.08050477504730225,
0.18778149783611298,
0.08373658359050751,
-0.25611981749534607,
0.0638335570693016,
-0.3536815941333771,
-0.15848281979560852,
-0.4681737422943115,
-0.3202153444290161,
-0.05686202272772789,
-0.2556048035621643,
-0.1227162629365921,
-0.033934760838747025,
-0.05420048534870148,
0.008822992444038391,
-0.1515875905752182,
-0.03954558074474335,
-0.12446784228086472,
0.18579913675785065,
0.3445301651954651,
-0.3150710463523865,
-0.13216441869735718,
0.0329207107424736,
0.1363002061843872,
0.6758498549461365,
0.3586134612560272,
0.03770466148853302,
-0.16969409584999084,
0.10667373985052109,
-0.22684678435325623,
0.19140011072158813,
-0.18845383822917938,
-0.0037775393575429916,
0.14333519339561462,
0.12773770093917847,
-0.042531758546829224,
-0.4658034145832062,
-0.19378064572811127,
-0.2129257172346115,
-0.15234436094760895,
0.03678154572844505,
0.22463741898536682,
0.11643963307142258,
-0.15512308478355408,
-0.6601369380950928,
-0.34316518902778625,
-0.18102438747882843,
0.19332335889339447,
-0.2073708027601242,
0.2268754094839096,
0.24387948215007782,
0.18594345450401306,
0.32747161388397217,
0.01462218165397644,
-0.11730316281318665,
0.19149558246135712,
0.2556440830230713,
0.0435614176094532,
-0.44918322563171387,
-0.16715013980865479,
0.1876729279756546,
-0.06652668118476868,
0.09794692695140839,
0.09237673133611679,
-0.10886933654546738,
0.1633361279964447,
-0.20559264719486237,
-0.054957251995801926,
-0.05828740447759628,
0.027939781546592712,
0.27600008249282837,
-0.1686507612466812,
0.23735164105892181,
-0.12998871505260468,
0.12912386655807495,
0.12755757570266724,
-0.00308777391910553,
0.27301838994026184,
0.00850091315805912,
0.3296946585178375,
0.24659565091133118,
0.753081202507019,
0.23618084192276,
-0.08670434355735779,
-0.2982823848724365,
-0.1320105493068695,
0.05755135789513588,
0.02260388806462288,
-0.08016256988048553,
0.12196574360132217,
-0.001323804259300232,
-0.1696760207414627,
0.08687262237071991,
0.16649115085601807,
-0.339260458946228,
0.06560981273651123,
0.07365714013576508,
-0.386691153049469,
-0.4350096583366394,
0.34190383553504944,
-0.43806982040405273,
0.1782551109790802,
-0.06137664243578911,
-0.017333783209323883,
0.0224900059401989,
-0.09498485922813416,
-0.34010860323905945,
0.09858076274394989,
0.22046983242034912,
0.030935274437069893,
-0.4048055410385132,
-0.20659543573856354,
-0.21264541149139404,
-0.15744371712207794,
0.19242098927497864,
0.26652657985687256,
-0.02646806091070175,
-0.0211816243827343,
0.26088422536849976,
0.28144580125808716,
0.29593437910079956,
-0.150477334856987,
-0.05250142514705658,
-0.03982890397310257,
0.12456218898296356,
-0.32955825328826904,
0.06933341920375824,
-0.3494674861431122,
0.3621779680252075,
0.10066723823547363,
0.025379516184329987,
-0.3897853195667267,
-0.4066637456417084,
0.43395838141441345,
-0.0061200703494250774,
-0.13574914634227753,
0.12987200915813446,
-0.1702321320772171,
-0.19859811663627625,
-0.01114641223102808,
0.11985965073108673,
0.3398827910423279,
-0.0983911007642746,
-0.14003470540046692,
0.1323731541633606,
-0.07185321301221848,
-0.0828450620174408,
0.13599303364753723,
0.048600707203149796,
0.3254578113555908,
0.21512538194656372,
-0.11585722863674164,
0.43478548526763916,
0.0229685939848423,
0.007250037044286728,
0.21266388893127441,
-0.12155875563621521,
-0.11246669292449951,
0.1488226354122162,
-0.08209666609764099,
0.5192817449569702,
0.3348647356033325,
0.11671219021081924,
0.001960448920726776,
-0.0888528898358345,
-0.1721152663230896,
-0.2203490138053894,
0.22006432712078094,
0.19693252444267273,
-0.16290001571178436,
-0.23226352035999298,
-0.784541666507721,
0.38250797986984253,
0.14931362867355347,
-0.07872939109802246,
0.4942559003829956,
0.22275495529174805,
-0.3529699742794037,
0.5404192209243774,
0.26006948947906494,
0.7107940912246704,
0.027093660086393356,
0.10878479480743408,
0.24516236782073975,
-0.21992918848991394,
0.5987609028816223,
-0.3728722929954529,
0.19554948806762695,
-0.2358037680387497,
-0.2317267805337906,
-0.050506025552749634,
-0.24861076474189758,
-0.04224501550197601,
0.385459303855896,
-0.019298583269119263,
0.3094726502895355,
-0.09202097356319427,
-0.12202882766723633,
-0.24741189181804657,
0.41142183542251587,
-0.23568645119667053,
-0.03785492852330208,
0.06772642582654953,
0.0294264554977417,
-0.16749967634677887,
-0.060390654951334,
0.10659504681825638,
-0.07353648543357849,
-0.27488309144973755,
0.11426195502281189,
-0.37943899631500244,
-0.034500058740377426,
-0.14393673837184906,
0.1884535849094391,
-0.14707647264003754,
-0.15393057465553284,
0.23088502883911133,
0.1599215567111969,
0.09166014194488525,
-0.06489971280097961,
-0.01974056102335453,
0.2676504850387573,
-0.09607840329408646,
-0.028999285772442818,
-0.09119117259979248,
0.014268520288169384,
0.4709143042564392,
0.20436272025108337,
-0.29585304856300354,
-0.035038791596889496,
-0.08294624090194702,
-0.18436062335968018,
0.0005769133567810059,
0.28103718161582947,
0.2053859382867813,
-0.28600555658340454,
-0.13917148113250732,
0.2051772177219391,
0.03273610398173332,
0.025558311492204666,
0.06589661538600922,
-0.019837863743305206,
-0.21882586181163788,
0.21004265546798706,
-0.05398566648364067,
-0.1761043220758438,
0.0770149976015091,
-0.14604413509368896,
0.08020791411399841,
0.10337907075881958,
0.36752498149871826,
0.05142619088292122,
0.002132631838321686,
-0.20663544535636902,
0.30375373363494873,
0.43836498260498047,
-0.2862953245639801,
0.04947321489453316,
-0.38515377044677734,
0.14462606608867645,
0.08245912194252014,
-0.1435532122850418,
0.09010885655879974,
0.40065789222717285,
-0.31120699644088745,
-0.4613431394100189,
0.09297245740890503,
0.4324800372123718,
-0.038332562893629074,
0.33950600028038025,
-0.2784988284111023,
0.15135206282138824,
0.019041473045945168,
0.31904536485671997,
-0.1888808310031891,
0.1861722320318222,
0.18026868999004364,
0.42717739939689636,
-0.048240989446640015,
0.094981849193573,
0.12351085990667343,
-0.12728260457515717,
-0.06728065758943558,
0.039610642939805984,
0.10758906602859497,
-0.17025837302207947,
-0.15146441757678986,
0.13831251859664917,
-0.055879831314086914,
0.035523463040590286,
-0.20464548468589783,
-0.3283616304397583,
-0.25010839104652405,
-0.1294763833284378,
-0.06132454797625542,
-0.0678427666425705,
0.2068958580493927,
0.4533396363258362,
0.4532243609428406,
0.1227361410856247,
-0.0972052589058876,
0.16519135236740112,
-0.1471460610628128,
0.22503718733787537,
0.03594386577606201,
0.32694968581199646,
0.1799120455980301,
0.09982939064502716,
-0.3032548129558563,
-0.08182690292596817,
0.2034570574760437,
-0.3801212012767792,
-0.06861098855733871,
0.17894507944583893,
0.26686209440231323,
-0.47111591696739197,
0.43184778094291687,
0.5926179885864258,
0.1806318461894989,
0.05772960186004639,
0.18179184198379517,
0.06982246041297913,
0.12195232510566711,
0.23703953623771667,
0.18802510201931,
0.2561098039150238,
0.0035012029111385345,
0.31671279668807983,
0.03518606349825859,
0.47662192583084106,
-0.43065065145492554,
-0.07014064490795135,
0.13116446137428284,
-0.06631217151880264,
0.36680740118026733,
0.4985341429710388,
-0.23655720055103302,
-0.21820972859859467,
0.22212515771389008,
-0.38017943501472473,
0.24524787068367004,
0.1780259609222412,
0.12863419950008392,
0.6150345206260681,
0.08192862570285797,
-0.012832295149564743,
0.3417758047580719,
-0.058804258704185486,
-0.4968166947364807,
0.17311568558216095,
0.09135238081216812,
-0.020113453269004822,
0.003830835223197937,
0.5978032946586609,
-0.0783998891711235,
-0.16260893642902374,
-0.014350894838571548,
0.17052558064460754,
0.11518873274326324,
-0.06373871117830276,
-0.4369429051876068,
-0.06144557148218155,
-0.34739986062049866,
-0.06094318628311157,
0.11262395977973938,
-0.26966625452041626,
0.32366058230400085,
0.08725899457931519,
0.04001041129231453,
-0.19547830522060394,
0.32907092571258545,
0.29060035943984985,
0.1356917768716812,
-0.08512400090694427,
-0.07892525941133499,
-0.13413460552692413,
-0.04418530315160751,
0.04194552078843117,
0.2085326910018921,
0.11137184500694275,
-0.0033137425780296326,
-0.41207119822502136,
0.10050137341022491,
0.23961153626441956,
-0.22060027718544006,
0.18486781418323517,
0.22301824390888214,
0.026946794241666794,
0.06348827481269836,
0.13784484565258026,
0.1230115294456482,
-0.05885295197367668,
-0.005931437015533447,
0.1754358410835266,
0.01228661835193634,
-0.41121721267700195,
0.4289708137512207,
-0.046076469123363495,
-0.13505521416664124,
-0.04459703713655472,
0.014431186020374298,
-0.33576956391334534,
-0.16443496942520142,
0.32477813959121704,
-0.3392888009548187,
0.05559307336807251,
-0.16368237137794495,
0.0027705729007720947,
-0.09656772017478943,
0.5712149143218994,
0.1023399829864502,
0.2575375437736511,
-0.16598016023635864,
-0.2422955334186554,
-0.35476547479629517,
-0.23544618487358093,
-0.18375641107559204,
-0.1635543555021286,
0.1517811417579651,
0.4201257526874542,
-0.24219825863838196,
0.21163198351860046,
-0.13461296260356903,
0.0761365070939064,
0.045459896326065063,
0.3558127284049988,
-0.10699833929538727,
-0.22011028230190277,
-0.3341931104660034,
0.22128432989120483,
-0.10734590142965317,
-0.2415926158428192,
-0.04876501485705376,
-0.06508509814739227,
-0.2900022566318512,
0.16406086087226868,
-0.09778009355068207,
0.4897420406341553,
0.4773825705051422,
-0.15499036014080048,
0.1331692487001419,
0.47959914803504944,
0.20267456769943237,
0.09957917779684067,
-0.4411303400993347,
-0.0005305702798068523,
-0.4071691036224365,
0.3740476965904236,
-0.03431297466158867,
0.2950651943683624,
-0.30668118596076965,
-0.008255481719970703,
-0.15738306939601898,
0.17803698778152466,
-0.022581836208701134,
-0.24556124210357666,
-0.36209964752197266,
-0.041208572685718536,
-0.32705873250961304,
0.2329273223876953,
0.6373424530029297,
0.45340150594711304,
-0.305833101272583,
0.0039182547479867935,
0.16172342002391815,
-0.09409797936677933,
-0.012662336230278015,
-0.4618833661079407,
-0.17610253393650055,
0.1094803512096405,
0.13716503977775574,
0.4254467189311981,
-0.11045598238706589,
-0.6365737318992615,
-0.16916662454605103,
0.17600324749946594,
-0.14364328980445862,
0.12490999698638916,
0.1179802268743515,
0.3617657721042633,
-0.08889086544513702,
-0.051153022795915604,
0.33498862385749817,
0.10079427808523178,
-0.2868117690086365,
-0.028493743389844894,
-0.3389167785644531
] |
https://github.com/huggingface/datasets/issues/259 | documentation missing how to split a dataset | I added a small guide [here](https://github.com/huggingface/nlp/tree/master/docs/splits.md) that explains how to split a dataset. It is very similar to the tensorflow datasets guide, as we kept the same logic. | I am trying to understand how to split a dataset ( as arrow_dataset).
I know I can do something like this to access a split which is already in the original dataset :
`ds_test = nlp.load_dataset('imdb, split='test') `
But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)?
I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description:
> See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information.
But the guide seems to be missing.
To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this:
`ds_test = nlp.load_dataset('imdb, split='test'[:5000]) `
`ds_val = nlp.load_dataset('imdb, split='test'[5000:])`
because the imdb test data is sorted by class (probably not a good idea anyway)
| 28 | documentation missing how to split a dataset
I am trying to understand how to split a dataset ( as arrow_dataset).
I know I can do something like this to access a split which is already in the original dataset :
`ds_test = nlp.load_dataset('imdb, split='test') `
But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)?
I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description:
> See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information.
But the guide seems to be missing.
To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this:
`ds_test = nlp.load_dataset('imdb, split='test'[:5000]) `
`ds_val = nlp.load_dataset('imdb, split='test'[5000:])`
because the imdb test data is sorted by class (probably not a good idea anyway)
I added a small guide [here](https://github.com/huggingface/nlp/tree/master/docs/splits.md) that explains how to split a dataset. It is very similar to the tensorflow datasets guide, as we kept the same logic. | [
-0.01085522398352623,
0.1039162427186966,
-0.07164085656404495,
0.17237074673175812,
-0.009352851659059525,
0.17514824867248535,
0.4139046370983124,
0.351057231426239,
-0.1455845832824707,
0.021543145179748535,
0.18125683069229126,
0.28466933965682983,
-0.14739875495433807,
0.11088251322507858,
0.18141382932662964,
-0.3872857093811035,
-0.11156051605939865,
0.22994598746299744,
0.26163774728775024,
-0.042115047574043274,
0.28746557235717773,
-0.055715903639793396,
-0.27072176337242126,
0.10467837750911713,
-0.34762901067733765,
-0.46123284101486206,
-0.19707724452018738,
-0.03716478496789932,
-0.2252805382013321,
-0.2295699268579483,
0.22839225828647614,
-0.2733035981655121,
0.038595523685216904,
0.25957223773002625,
-0.00011577825353015214,
0.06299906969070435,
0.24595244228839874,
-0.10788549482822418,
-0.10205556452274323,
-0.20078705251216888,
-0.3612457513809204,
-0.08098749816417694,
0.4162450134754181,
-0.13008062541484833,
0.00889015942811966,
-0.2497371882200241,
0.16230718791484833,
-0.17351937294006348,
0.5008512139320374,
0.45944565534591675,
0.09989415109157562,
0.03513234481215477,
0.18789932131767273,
0.08388238400220871,
-0.00865078717470169,
0.3338407874107361,
-0.11219765990972519,
0.07645531743764877,
-0.11137402057647705,
-0.07661833614110947,
-0.16728323698043823,
0.04348486289381981,
0.18383817374706268,
0.20613285899162292,
0.0807434543967247,
-0.02734965831041336,
-0.38516560196876526,
-0.4645872414112091,
-0.14274835586547852,
0.5450021624565125,
0.6056337356567383,
-0.33589568734169006,
-0.2980393171310425,
-0.30454394221305847,
0.045089397579431534,
-0.1760808527469635,
-0.12780705094337463,
0.6296439170837402,
-0.11713650822639465,
0.08766064792871475,
-0.12019509822130203,
-0.23911769688129425,
-0.304532527923584,
0.1572999507188797,
0.022686511278152466,
0.38953375816345215,
-0.10936722159385681,
0.05624091252684593,
0.1918925642967224,
0.24632014334201813,
0.2808939218521118,
0.04171031713485718,
-0.012120969593524933,
0.26088762283325195,
-0.17904049158096313,
-0.24314910173416138,
-0.09092313796281815,
-0.37700456380844116,
0.09933159500360489,
0.23428617417812347,
0.13217726349830627,
-0.06478441506624222,
-0.17419326305389404,
0.16822855174541473,
0.4464685320854187,
0.17327679693698883,
0.24416306614875793,
0.489655077457428,
0.03797393664717674,
-0.03986470773816109,
-0.002318006008863449,
-0.17060276865959167,
-0.012430813163518906,
-0.1979074478149414,
-0.024788595736026764,
0.0710359513759613,
0.15378716588020325,
0.09011006355285645,
-0.2858230173587799,
-0.336018830537796,
-0.29099220037460327,
-0.1620492935180664,
0.12427395582199097,
0.14034265279769897,
0.07502814382314682,
-0.07264719158411026,
-0.3455618619918823,
0.2231651246547699,
-0.38754838705062866,
-0.17677557468414307,
-0.12359245866537094,
0.23558692634105682,
-0.38997340202331543,
0.10468088090419769,
0.11199961602687836,
0.010703948326408863,
0.40046876668930054,
-0.10864893347024918,
0.019135236740112305,
-0.3715498447418213,
0.3069620132446289,
0.041093409061431885,
0.21160179376602173,
0.4237739145755768,
0.21384966373443604,
0.020229170098900795,
0.061788566410541534,
0.11715033650398254,
-0.3336218595504761,
-0.02210111916065216,
-0.3795633614063263,
-0.4628949761390686,
-0.0616195946931839,
0.039680201560258865,
-0.025028973817825317,
0.19056107103824615,
-0.1604062020778656,
0.37141573429107666,
0.05124562978744507,
-0.04800363630056381,
0.20136481523513794,
0.08199360966682434,
-0.174727663397789,
-0.35749807953834534,
0.24172893166542053,
0.0053391605615615845,
-0.4272279441356659,
-0.07310058921575546,
-0.3806423842906952,
-0.03147825598716736,
-0.05574408918619156,
0.14545686542987823,
-0.3786710798740387,
0.5079538822174072,
-0.09993252158164978,
0.4572862982749939,
0.718948245048523,
-0.27833715081214905,
-0.07060585170984268,
0.3035818636417389,
0.1537110060453415,
-0.2755770683288574,
-0.11141613870859146,
-0.05185730382800102,
0.2611778974533081,
0.15615679323673248,
-0.4373098909854889,
0.3556576371192932,
-0.3076072931289673,
-0.13068002462387085,
0.3071204125881195,
-0.2115509957075119,
0.2188747078180313,
-0.07688276469707489,
-0.08400353789329529,
-0.25236982107162476,
0.27869221568107605,
0.343199759721756,
0.47871991991996765,
0.02705269120633602,
0.18310122191905975,
0.23426853120326996,
0.06575818359851837,
0.14689476788043976,
-0.04900448024272919,
-0.34277087450027466,
-0.36625686287879944,
-0.05249303579330444,
0.14188013970851898,
-0.11802901327610016,
-0.025952085852622986,
-0.28833675384521484,
-0.14907926321029663,
-0.13507972657680511,
0.04922674968838692,
-0.2921786606311798,
0.06407873332500458,
-0.3532394468784332,
0.19587573409080505,
-0.11913914978504181,
-0.4262671172618866,
0.08736061304807663,
-0.22956915199756622,
0.2660536766052246,
-0.47642451524734497,
0.11535076797008514,
0.07138088345527649,
-0.08158016204833984,
0.10573983192443848,
0.25924715399742126,
-0.05106094479560852,
-0.1367088109254837,
0.02662467770278454,
0.5864787101745605,
0.5731498599052429,
0.04044735059142113,
-0.21188518404960632,
0.031982243061065674,
0.4351481795310974,
-0.49452322721481323,
0.16468237340450287,
-0.035702209919691086,
-0.040630653500556946,
0.01973724365234375,
-0.49181804060935974,
0.30891281366348267,
-0.342378705739975,
0.2918803095817566,
0.2441430538892746,
0.12468918412923813,
0.053476713597774506,
-0.1709047108888626,
-0.2978189289569855,
-0.03497498482465744,
-0.2654481828212738,
-0.3422127366065979,
0.2162172645330429,
-0.024849290028214455,
-0.15407788753509521,
0.11240353435277939,
0.43546780943870544,
-0.18892449140548706,
0.20564010739326477,
-0.11167526990175247,
0.07654651254415512,
-0.040640801191329956,
0.20764195919036865,
0.4278673827648163,
0.2496446967124939,
0.017467401921749115,
0.410824179649353,
-0.0889342874288559,
-0.2685612738132477,
-0.06610934436321259,
0.11270657181739807,
0.23609673976898193,
0.4292648136615753,
-0.06785199791193008,
-0.39763903617858887,
-0.07748635113239288,
-0.018764283508062363,
0.006975486874580383,
0.14406506717205048,
0.0676458403468132,
-0.29331737756729126,
0.1057007685303688,
-0.3916163742542267,
-0.1474704146385193,
-0.42706406116485596,
-0.2854628264904022,
-0.0807076096534729,
-0.2603793442249298,
-0.16953736543655396,
-0.14855477213859558,
0.012248467653989792,
-0.046144723892211914,
-0.16740074753761292,
-0.07696039974689484,
-0.17104387283325195,
0.17954300343990326,
0.3728763461112976,
-0.25718560814857483,
-0.1507110893726349,
0.060342226177453995,
0.15105055272579193,
0.6260808706283569,
0.2506404221057892,
0.020123234018683434,
-0.15158580243587494,
0.06280916184186935,
-0.3285259008407593,
0.2419971525669098,
-0.20559728145599365,
-0.015237649902701378,
0.21068035066127777,
0.1860443651676178,
0.014024753123521805,
-0.31261181831359863,
-0.26654332876205444,
-0.19002732634544373,
-0.1723768264055252,
-0.08175183832645416,
0.19550813734531403,
0.054710809141397476,
-0.1628086417913437,
-0.7155640125274658,
-0.2830578684806824,
-0.20169521868228912,
0.2924628257751465,
-0.2403344064950943,
0.23975184559822083,
0.1748122274875641,
0.13966010510921478,
0.3556787967681885,
0.11541403830051422,
-0.014624858275055885,
0.20106835663318634,
0.23053410649299622,
0.006179280579090118,
-0.4905732572078705,
-0.2406400889158249,
0.3171948194503784,
-0.009963774122297764,
0.22750262916088104,
0.006227173842489719,
-0.20012645423412323,
0.1807941496372223,
-0.20702029764652252,
-0.06614519655704498,
-0.055299967527389526,
-0.008278844878077507,
0.26149505376815796,
-0.15433859825134277,
0.2438742071390152,
-0.17873746156692505,
0.12143976986408234,
0.09436316043138504,
-0.13249674439430237,
0.19738905131816864,
0.005529260262846947,
0.27608874440193176,
0.26789164543151855,
0.6091406345367432,
0.25508081912994385,
-0.08768327534198761,
-0.2653273344039917,
-0.14003391563892365,
0.14003559947013855,
0.12631642818450928,
-0.041175760328769684,
0.03607013449072838,
-0.10347005724906921,
-0.12279030680656433,
0.04870572313666344,
0.2632277011871338,
-0.27937600016593933,
0.05875498056411743,
0.007395580410957336,
-0.3954566717147827,
-0.42707058787345886,
0.2944318652153015,
-0.445482462644577,
0.22394749522209167,
-0.05564798414707184,
0.03238864988088608,
0.10708419978618622,
-0.07389920949935913,
-0.3157727122306824,
0.17430342733860016,
0.23238354921340942,
0.04936426877975464,
-0.3276258409023285,
-0.07963673770427704,
-0.1881277859210968,
-0.14334528148174286,
0.13018463551998138,
0.18069329857826233,
-0.12620623409748077,
-0.009460963308811188,
0.21018841862678528,
0.2227451056241989,
0.23879334330558777,
-0.16173657774925232,
-0.07712478190660477,
-0.11367917060852051,
0.12909741699695587,
-0.34100961685180664,
0.17794515192508698,
-0.24921098351478577,
0.40850257873535156,
0.06213584169745445,
-0.10248620808124542,
-0.35213807225227356,
-0.45464888215065,
0.42072877287864685,
-0.05944816768169403,
-0.10695646703243256,
0.15845458209514618,
-0.14398068189620972,
-0.252547949552536,
0.017216933891177177,
0.02316809445619583,
0.3640356659889221,
-0.17855289578437805,
-0.05145883560180664,
0.03912169858813286,
-0.09440034627914429,
-0.08462695777416229,
0.170157328248024,
-0.025551557540893555,
0.2940468490123749,
0.012692514806985855,
-0.14915457367897034,
0.3754700720310211,
0.11250647902488708,
0.030352428555488586,
0.2963511049747467,
-0.14794588088989258,
-0.1908254623413086,
0.22484242916107178,
-0.08473332226276398,
0.5996392965316772,
0.2911294102668762,
0.08614619076251984,
0.012928664684295654,
-0.08896636217832565,
-0.23828811943531036,
-0.1926455944776535,
0.25590986013412476,
0.18343079090118408,
-0.10587743669748306,
-0.1930079162120819,
-0.6062174439430237,
0.35862889885902405,
0.10573668777942657,
-0.03288716450333595,
0.5307196378707886,
0.2949860095977783,
-0.30715444684028625,
0.36709773540496826,
0.1933378279209137,
0.6510207653045654,
0.13688823580741882,
0.07593507319688797,
0.13570882380008698,
-0.3133866786956787,
0.5474334359169006,
-0.44720906019210815,
0.1698407530784607,
-0.17818467319011688,
-0.13923892378807068,
-0.16145774722099304,
-0.24074715375900269,
0.008484486490488052,
0.39036571979522705,
0.0030032023787498474,
0.26524224877357483,
-0.12452977895736694,
-0.035301219671964645,
-0.14796987175941467,
0.4279191493988037,
-0.16975952684879303,
-0.0500480942428112,
0.05452004075050354,
0.04883222281932831,
-0.1591651737689972,
-0.03197425231337547,
0.03778044134378433,
-0.10542705655097961,
-0.2267535775899887,
0.10052642226219177,
-0.42336219549179077,
-0.011748353019356728,
-0.12563098967075348,
0.2007482498884201,
-0.0605025477707386,
-0.16972756385803223,
0.3008086383342743,
0.3042421042919159,
0.07807315140962601,
-0.08988480269908905,
-0.08147687464952469,
0.29293859004974365,
-0.21994096040725708,
-0.07078301906585693,
-0.11927206069231033,
-0.004161842633038759,
0.4283144772052765,
0.15771609544754028,
-0.28713372349739075,
0.018619254231452942,
-0.1946074515581131,
-0.11653465032577515,
0.09951120615005493,
0.3422718644142151,
0.18660031259059906,
-0.28134533762931824,
-0.05502137169241905,
0.1529144048690796,
-0.013290897011756897,
0.03004377707839012,
0.06662929058074951,
0.04474448412656784,
-0.20661886036396027,
0.15366053581237793,
0.026898706331849098,
-0.19330447912216187,
0.03796744346618652,
-0.14513516426086426,
0.0976543202996254,
0.12239585816860199,
0.30407145619392395,
0.10593928396701813,
-0.04301954060792923,
-0.2244167923927307,
0.36828917264938354,
0.49988314509391785,
-0.26772090792655945,
-0.06370463967323303,
-0.4257541596889496,
0.16015996038913727,
0.09210973232984543,
-0.19460898637771606,
0.02066882513463497,
0.3484402596950531,
-0.3426212668418884,
-0.4485452473163605,
0.057217761874198914,
0.36093491315841675,
-0.19811765849590302,
0.30239102244377136,
-0.24483609199523926,
0.057295359671115875,
0.10901622474193573,
0.37574440240859985,
-0.16458940505981445,
0.22102957963943481,
0.17910051345825195,
0.3216925263404846,
0.07076926529407501,
0.10658054053783417,
0.22272208333015442,
-0.1663648933172226,
-0.08577941358089447,
0.027471207082271576,
0.1451636552810669,
-0.15921422839164734,
-0.1338185966014862,
0.1577710062265396,
-0.11652005463838577,
0.03362096846103668,
-0.21085616946220398,
-0.257940411567688,
-0.21656017005443573,
-0.029082152992486954,
0.016750872135162354,
-0.08077067136764526,
0.15559765696525574,
0.40940171480178833,
0.2860696315765381,
0.12069464474916458,
-0.22083134949207306,
0.0381518118083477,
-0.069647416472435,
0.3842621445655823,
0.04175388067960739,
0.28557461500167847,
0.13015934824943542,
0.08430604636669159,
-0.2262098640203476,
0.016882222145795822,
0.27529826760292053,
-0.37707722187042236,
0.004854366183280945,
0.24194744229316711,
0.2393677830696106,
-0.6506144404411316,
0.38169026374816895,
0.4083290696144104,
0.12481082230806351,
0.18716762959957123,
0.07620713859796524,
0.05959901958703995,
0.16143476963043213,
0.16746272146701813,
0.21754547953605652,
0.21547558903694153,
0.0014716088771820068,
0.30661195516586304,
0.14694245159626007,
0.5802814364433289,
-0.3549506664276123,
-0.06541889905929565,
0.20212379097938538,
0.01634315773844719,
0.33507516980171204,
0.44099682569503784,
-0.29985982179641724,
-0.12877421081066132,
0.2470848560333252,
-0.31631672382354736,
0.28755927085876465,
0.20365823805332184,
0.07500451058149338,
0.6348122358322144,
0.06647207587957382,
0.037162430584430695,
0.44659164547920227,
-0.05898664891719818,
-0.5137961506843567,
0.018999963998794556,
0.09777817130088806,
-0.10535947233438492,
-0.08197212219238281,
0.5677703022956848,
-0.039214711636304855,
-0.24838663637638092,
-0.04749765619635582,
0.12345802783966064,
0.06996025890111923,
-0.006069519091397524,
-0.4208906292915344,
-0.00048370659351348877,
-0.2475748211145401,
-0.11701470613479614,
0.1821565479040146,
-0.29997169971466064,
0.340362548828125,
0.06998462229967117,
0.09292491525411606,
-0.039326585829257965,
0.36361774802207947,
0.21262037754058838,
0.07401314377784729,
-0.003426089882850647,
0.03286738693714142,
-0.1711408942937851,
-0.06524151563644409,
-0.11634902656078339,
0.18262764811515808,
0.17648035287857056,
-0.07687912881374359,
-0.33500221371650696,
0.11817149817943573,
0.30571213364601135,
-0.2009141743183136,
0.18479561805725098,
0.20097285509109497,
-0.11963337659835815,
0.07352014631032944,
0.11324280500411987,
0.1103820949792862,
-0.036360204219818115,
0.010140232741832733,
0.18469709157943726,
0.07539886236190796,
-0.41260072588920593,
0.3575339615345001,
-0.14876267313957214,
-0.19228443503379822,
-0.13615639507770538,
0.009497381746768951,
-0.2746710479259491,
-0.18557538092136383,
0.5705321431159973,
-0.3507171869277954,
0.06341695040464401,
-0.17474029958248138,
0.011593695729970932,
-0.09909936785697937,
0.5687583684921265,
0.07023750245571136,
0.3151826560497284,
-0.1661265790462494,
-0.2857992351055145,
-0.3418370485305786,
-0.154700368642807,
-0.27336999773979187,
-0.1908339560031891,
0.1186344102025032,
0.3484731614589691,
-0.2203209400177002,
0.17137692868709564,
-0.07506944239139557,
0.044924914836883545,
0.09843061119318008,
0.2884830832481384,
-0.05721699073910713,
-0.24399970471858978,
-0.2553465962409973,
0.19811707735061646,
-0.13027426600456238,
-0.2169380784034729,
0.0023590922355651855,
-0.11722289770841599,
-0.2558828294277191,
0.12788023054599762,
-0.1261022537946701,
0.5148494243621826,
0.4746757447719574,
-0.11358587443828583,
0.13917383551597595,
0.4700133800506592,
0.1789056956768036,
0.007865937426686287,
-0.3639891445636749,
0.06735087931156158,
-0.2879272401332855,
0.47134000062942505,
-0.08281141519546509,
0.19498613476753235,
-0.32800713181495667,
0.04485713690519333,
-0.15785303711891174,
0.1421331912279129,
0.034707315266132355,
-0.13264134526252747,
-0.2842835783958435,
-0.0388769656419754,
-0.3516288995742798,
0.21116693317890167,
0.794963002204895,
0.4312686026096344,
-0.3226009011268616,
-0.04992733150720596,
0.15033623576164246,
-0.12830400466918945,
-0.09803783893585205,
-0.3985479772090912,
-0.09303519129753113,
0.1671239137649536,
0.1579533964395523,
0.4069654941558838,
-0.09274399280548096,
-0.7600877285003662,
-0.22481828927993774,
0.197366863489151,
-0.2541640102863312,
-0.0030320491641759872,
0.0345056876540184,
0.3735862970352173,
-0.1024869978427887,
-0.0669092983007431,
0.40981876850128174,
0.15005362033843994,
-0.314596027135849,
0.08253227174282074,
-0.3006182312965393
] |
https://github.com/huggingface/datasets/issues/259 | documentation missing how to split a dataset | Thanks a lot, the new explanation is very helpful!
About using train_test_split from sklearn: I stumbled across the [same error message as this user ](https://github.com/huggingface/nlp/issues/147 )and thought it can't be used at the moment in this context. Will check it out again.
One of the problems is how to shuffle very large datasets, which don't fit into the memory. Well, one strategy could be shuffling data in sections. But in a case where the data is sorted by the labels you have to swap larger sections first.
| I am trying to understand how to split a dataset ( as arrow_dataset).
I know I can do something like this to access a split which is already in the original dataset :
`ds_test = nlp.load_dataset('imdb, split='test') `
But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)?
I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description:
> See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information.
But the guide seems to be missing.
To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this:
`ds_test = nlp.load_dataset('imdb, split='test'[:5000]) `
`ds_val = nlp.load_dataset('imdb, split='test'[5000:])`
because the imdb test data is sorted by class (probably not a good idea anyway)
| 87 | documentation missing how to split a dataset
I am trying to understand how to split a dataset ( as arrow_dataset).
I know I can do something like this to access a split which is already in the original dataset :
`ds_test = nlp.load_dataset('imdb, split='test') `
But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)?
I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description:
> See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information.
But the guide seems to be missing.
To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this:
`ds_test = nlp.load_dataset('imdb, split='test'[:5000]) `
`ds_val = nlp.load_dataset('imdb, split='test'[5000:])`
because the imdb test data is sorted by class (probably not a good idea anyway)
Thanks a lot, the new explanation is very helpful!
About using train_test_split from sklearn: I stumbled across the [same error message as this user ](https://github.com/huggingface/nlp/issues/147 )and thought it can't be used at the moment in this context. Will check it out again.
One of the problems is how to shuffle very large datasets, which don't fit into the memory. Well, one strategy could be shuffling data in sections. But in a case where the data is sorted by the labels you have to swap larger sections first.
| [
0.09331859648227692,
-0.018011577427387238,
-0.044078193604946136,
0.20460882782936096,
0.018560651689767838,
0.22938436269760132,
0.3818904757499695,
0.31006723642349243,
-0.05234801769256592,
0.05605915188789368,
0.17316760122776031,
0.28970867395401,
-0.2534625232219696,
0.14297069609165192,
0.18269628286361694,
-0.3846260905265808,
-0.04094929248094559,
0.12388451397418976,
0.2132633924484253,
0.03404376655817032,
0.2280828356742859,
-0.1566813588142395,
-0.32439765334129333,
0.08330617845058441,
-0.37877488136291504,
-0.46078529953956604,
-0.24209082126617432,
0.011333949863910675,
-0.24630619585514069,
-0.22690482437610626,
0.21153123676776886,
-0.22302129864692688,
0.032552897930145264,
0.31776902079582214,
-0.00011655384150799364,
-0.015661172568798065,
0.2516826391220093,
-0.1430504024028778,
-0.14284630119800568,
-0.16849757730960846,
-0.3076060116291046,
-0.06145015358924866,
0.29276564717292786,
-0.19626903533935547,
0.016493212431669235,
-0.16572622954845428,
0.12860558927059174,
-0.0931776762008667,
0.48611825704574585,
0.4358697533607483,
0.10815544426441193,
-0.07512576878070831,
0.16646449267864227,
0.07563578337430954,
0.11324217915534973,
0.2819303870201111,
-0.09770192205905914,
0.1179104596376419,
-0.1726415455341339,
-0.07621684670448303,
-0.21152672171592712,
0.05354796350002289,
0.18237623572349548,
0.15667366981506348,
0.1256847381591797,
-0.08416851609945297,
-0.45092904567718506,
-0.4550999104976654,
-0.12960171699523926,
0.49346309900283813,
0.5426624417304993,
-0.3339475989341736,
-0.30452972650527954,
-0.3151070177555084,
0.07164879888296127,
-0.22396747767925262,
-0.1004447266459465,
0.6579104661941528,
-0.09952661395072937,
0.03264483064413071,
-0.2173856794834137,
-0.24420633912086487,
-0.2979714870452881,
0.13798671960830688,
0.044027864933013916,
0.4149709939956665,
-0.07046534866094589,
0.06224805861711502,
0.3162666857242584,
0.21785931289196014,
0.28864243626594543,
0.05213501304388046,
-0.05445306375622749,
0.2982501983642578,
-0.2664627730846405,
-0.30063754320144653,
-0.1505005955696106,
-0.3768864870071411,
0.1879124641418457,
0.2897794842720032,
0.13688993453979492,
-0.0967511311173439,
-0.13700440526008606,
0.09684862941503525,
0.4555283784866333,
0.26910290122032166,
0.17873841524124146,
0.5023195147514343,
-0.032618068158626556,
0.023678379133343697,
-0.006618127226829529,
-0.19385337829589844,
-0.12317995727062225,
-0.264968603849411,
-0.08597584068775177,
0.05281464010477066,
-0.01083526574075222,
0.0401654876768589,
-0.27103191614151,
-0.33565181493759155,
-0.36712193489074707,
-0.1159258708357811,
0.11288046091794968,
0.21405145525932312,
0.05477914586663246,
-0.08694320917129517,
-0.33018893003463745,
0.22889910638332367,
-0.34446385502815247,
-0.07704058289527893,
-0.14733529090881348,
0.2890577018260956,
-0.44305095076560974,
0.12140733003616333,
0.1500445306301117,
0.021120421588420868,
0.38252660632133484,
-0.14786739647388458,
0.033254437148571014,
-0.336325079202652,
0.19044220447540283,
-0.026131490245461464,
0.16685333847999573,
0.3849906325340271,
0.13372735679149628,
0.04648672789335251,
0.03438707813620567,
0.24364082515239716,
-0.33239829540252686,
0.02219999209046364,
-0.44312775135040283,
-0.46730008721351624,
0.10608765482902527,
0.015361440367996693,
-0.07489371299743652,
0.18246565759181976,
-0.241287499666214,
0.2949688732624054,
0.004921972751617432,
-0.05773649364709854,
0.16393272578716278,
0.013580700382590294,
-0.16461725533008575,
-0.3053280711174011,
0.28063514828681946,
-0.027086973190307617,
-0.3363463282585144,
-0.025834232568740845,
-0.32410383224487305,
0.004953274503350258,
0.04513620212674141,
0.2634805142879486,
-0.3417496681213379,
0.461569607257843,
-0.11729315668344498,
0.3866521716117859,
0.6255980134010315,
-0.26659727096557617,
-0.09275957942008972,
0.2199224829673767,
0.0737655758857727,
-0.2708798348903656,
-0.06501743942499161,
-0.06748326122760773,
0.300457239151001,
0.09945735335350037,
-0.3013007342815399,
0.4073328375816345,
-0.27262574434280396,
-0.1013282909989357,
0.19033962488174438,
-0.2702423632144928,
0.26237598061561584,
-0.012559703551232815,
-0.10033166408538818,
-0.26141902804374695,
0.25027281045913696,
0.4529339671134949,
0.42919284105300903,
0.04575556516647339,
0.18529602885246277,
0.22998568415641785,
0.04364877939224243,
0.17431169748306274,
-0.10620821267366409,
-0.2931695580482483,
-0.3414645493030548,
-0.062488310039043427,
0.12571217119693756,
-0.07338210940361023,
0.049806755036115646,
-0.24404315650463104,
-0.2545616626739502,
-0.17272204160690308,
0.07643865793943405,
-0.30395495891571045,
0.05008382350206375,
-0.4049404263496399,
0.33675527572631836,
-0.09298782050609589,
-0.2854805588722229,
0.021040134131908417,
-0.30299267172813416,
0.1937657594680786,
-0.37412041425704956,
0.17804822325706482,
0.028789937496185303,
-0.06636118143796921,
0.1689426451921463,
0.34353500604629517,
-0.052650630474090576,
-0.05930096283555031,
0.020559513941407204,
0.571437418460846,
0.5855074524879456,
-0.11784808337688446,
-0.13751515746116638,
0.015659809112548828,
0.40431714057922363,
-0.49503183364868164,
0.1544603705406189,
-0.11348994076251984,
-0.015381019562482834,
0.0020597651600837708,
-0.5048502087593079,
0.2872418761253357,
-0.4481739401817322,
0.35010865330696106,
0.25932639837265015,
0.11637493222951889,
-0.004246823489665985,
-0.16617892682552338,
-0.2056376188993454,
0.018675200641155243,
-0.1871289610862732,
-0.35571518540382385,
0.18876712024211884,
-0.031269535422325134,
-0.16773253679275513,
0.021777868270874023,
0.5045213103294373,
-0.20933865010738373,
0.06272544711828232,
-0.11325005441904068,
-0.004434749484062195,
-0.06865084171295166,
0.1848546415567398,
0.3737942576408386,
0.1804281324148178,
0.07573103904724121,
0.36681416630744934,
-0.10506593436002731,
-0.2559293508529663,
-0.05923055484890938,
0.05127064511179924,
0.2312476485967636,
0.47070446610450745,
-0.012467727065086365,
-0.303699791431427,
-0.12056805938482285,
0.049135543406009674,
-0.03953845053911209,
0.20806729793548584,
0.13528914749622345,
-0.25228846073150635,
0.05776485800743103,
-0.3520681858062744,
-0.13495981693267822,
-0.5467678308486938,
-0.2239440232515335,
-0.13222402334213257,
-0.27805981040000916,
-0.11992913484573364,
-0.09838683903217316,
-0.021255813539028168,
-0.018531037494540215,
-0.18625733256340027,
0.0012158751487731934,
-0.14776261150836945,
0.18173855543136597,
0.3582046627998352,
-0.3515107333660126,
-0.1967378854751587,
0.047612156718969345,
0.16678641736507416,
0.6737961769104004,
0.28712382912635803,
0.09110554307699203,
-0.12306723743677139,
0.028722379356622696,
-0.24738648533821106,
0.18659146130084991,
-0.17357948422431946,
-0.013964017853140831,
0.13367652893066406,
0.16736754775047302,
-0.049034588038921356,
-0.37446779012680054,
-0.18654200434684753,
-0.2479313611984253,
-0.18759886920452118,
0.0365716814994812,
0.27159538865089417,
0.15226875245571136,
-0.16943885385990143,
-0.7023667097091675,
-0.2842535376548767,
-0.24416382610797882,
0.2758953273296356,
-0.1915770173072815,
0.18251416087150574,
0.15253597497940063,
0.1924126148223877,
0.33745837211608887,
-0.014865243807435036,
-0.10659720748662949,
0.20257575809955597,
0.27544838190078735,
0.004536230117082596,
-0.41939863562583923,
-0.25632891058921814,
0.27540886402130127,
-0.02003982663154602,
0.13501602411270142,
0.09305835515260696,
-0.192473903298378,
0.25360074639320374,
-0.2302524894475937,
-0.1527378261089325,
-0.03054971992969513,
0.0003087986260652542,
0.2978796064853668,
-0.19197238981723785,
0.26872488856315613,
-0.14987313747406006,
0.10615849494934082,
0.12940004467964172,
-0.13586261868476868,
0.27649009227752686,
-0.019510891288518906,
0.25276872515678406,
0.2697935998439789,
0.7958999872207642,
0.24563154578208923,
0.024959517642855644,
-0.3783947229385376,
-0.08167634159326553,
0.12543286383152008,
0.05814129114151001,
-0.01646319404244423,
0.16884492337703705,
-0.093010812997818,
-0.18855048716068268,
0.08940080553293228,
0.24493351578712463,
-0.29689010977745056,
0.055852606892585754,
0.039488282054662704,
-0.3108974099159241,
-0.42772147059440613,
0.3284147083759308,
-0.38791006803512573,
0.19000031054019928,
-0.11484195291996002,
0.003638617694377899,
0.07479871809482574,
-0.16140154004096985,
-0.3007828891277313,
0.12526129186153412,
0.23186123371124268,
0.09324290603399277,
-0.4762062728404999,
-0.17688018083572388,
-0.2314634919166565,
-0.1861524134874344,
0.16720041632652283,
0.24466659128665924,
-0.0827641412615776,
-0.07847489416599274,
0.21899041533470154,
0.2506452202796936,
0.2507934868335724,
-0.09502456337213516,
-0.03877365589141846,
-0.036683909595012665,
0.15504711866378784,
-0.28714460134506226,
0.1177816092967987,
-0.33607184886932373,
0.29842260479927063,
0.09746214747428894,
-0.09038235247135162,
-0.4383295178413391,
-0.4115644693374634,
0.428451269865036,
-0.012499641627073288,
-0.11285878717899323,
0.14446401596069336,
-0.14085163176059723,
-0.18218761682510376,
-0.04622296243906021,
0.09680097550153732,
0.3686913549900055,
-0.09267335385084152,
-0.19244641065597534,
0.16784605383872986,
-0.06477843225002289,
-0.03189701586961746,
0.1361120343208313,
-0.0034856973215937614,
0.3259032666683197,
0.0583309642970562,
-0.12473125755786896,
0.3844853937625885,
0.15586695075035095,
0.07516030967235565,
0.31253868341445923,
-0.138807013630867,
-0.15055140852928162,
0.18164226412773132,
-0.0805361270904541,
0.5899174809455872,
0.3286978602409363,
0.1370227336883545,
0.02635178714990616,
-0.09422428905963898,
-0.20904795825481415,
-0.27009451389312744,
0.30848443508148193,
0.10496270656585693,
-0.17369379103183746,
-0.312614768743515,
-0.6472598314285278,
0.3325081765651703,
0.18011850118637085,
-0.04246462136507034,
0.4313425123691559,
0.260911226272583,
-0.3862367868423462,
0.44321995973587036,
0.21180769801139832,
0.7920415997505188,
0.012737058103084564,
0.1475442498922348,
0.17563286423683167,
-0.27058079838752747,
0.6010868549346924,
-0.41574978828430176,
0.21808457374572754,
-0.23152750730514526,
-0.17385347187519073,
-0.0496462807059288,
-0.2688385844230652,
-0.033960357308387756,
0.4327794313430786,
-0.0066561512649059296,
0.29285451769828796,
-0.06400997191667557,
0.011600311845541,
-0.26147156953811646,
0.4319429397583008,
-0.09348597377538681,
-0.06703238189220428,
0.07831723988056183,
0.04381762444972992,
-0.13532820343971252,
-0.010202556848526001,
0.049706511199474335,
-0.07175617665052414,
-0.26487886905670166,
0.10495543479919434,
-0.3984523415565491,
0.04112818092107773,
-0.1009623110294342,
0.1764904260635376,
-0.12267136573791504,
-0.14095309376716614,
0.33356156945228577,
0.17613095045089722,
0.025562867522239685,
-0.007610294967889786,
-0.0946105495095253,
0.2742561995983124,
-0.18840894103050232,
-0.14894208312034607,
-0.04070443660020828,
0.05720089375972748,
0.4263291656970978,
0.1537603735923767,
-0.2795599400997162,
0.04112982749938965,
-0.1963399350643158,
-0.1461559534072876,
-0.040378883481025696,
0.3116210699081421,
0.1542690098285675,
-0.3274502456188202,
-0.1701219379901886,
0.18625202775001526,
0.04582304134964943,
-0.005372583866119385,
0.06349265575408936,
-0.02474931627511978,
-0.17715583741664886,
0.1570521742105484,
-0.02699906751513481,
-0.12441509962081909,
0.04412266984581947,
-0.13269653916358948,
0.047604456543922424,
0.07935582846403122,
0.3646089434623718,
0.07177409529685974,
-0.037121109664440155,
-0.22472107410430908,
0.2982899248600006,
0.45973217487335205,
-0.3562631905078888,
-0.007819012738764286,
-0.3759956955909729,
0.14225591719150543,
0.10809466987848282,
-0.12505683302879333,
0.11672937870025635,
0.3218547999858856,
-0.2142827957868576,
-0.45226383209228516,
0.004052329808473587,
0.47764426469802856,
-0.1817857027053833,
0.2796482741832733,
-0.2963932156562805,
0.1702428013086319,
-0.004109999164938927,
0.3981892168521881,
-0.18848374485969543,
0.20167812705039978,
0.09946935623884201,
0.3557763993740082,
0.04225039482116699,
0.09186683595180511,
0.13980969786643982,
-0.12596692144870758,
-0.1074642762541771,
0.03697957098484039,
0.14035409688949585,
-0.14370672404766083,
-0.08989477157592773,
0.1539747267961502,
-0.04611114412546158,
0.06167425960302353,
-0.22604353725910187,
-0.32563847303390503,
-0.17452332377433777,
-0.0723530575633049,
0.005329018458724022,
-0.044432975351810455,
0.1831970512866974,
0.43268102407455444,
0.3581688702106476,
0.1834307610988617,
-0.1896137297153473,
0.19882632791996002,
-0.09629032015800476,
0.29027512669563293,
0.03510972112417221,
0.24742229282855988,
0.20765803754329681,
0.1259332001209259,
-0.2655097544193268,
-0.008930034935474396,
0.23364795744419098,
-0.3311530649662018,
0.00006190687417984009,
0.18743294477462769,
0.2726078927516937,
-0.4687637984752655,
0.373259961605072,
0.4829465448856354,
0.17075063288211823,
0.05433645099401474,
0.2456142008304596,
0.06583191454410553,
0.13642866909503937,
0.19679118692874908,
0.2603052258491516,
0.15902851521968842,
-0.010203853249549866,
0.30611252784729004,
0.08873516321182251,
0.5125861167907715,
-0.4226793050765991,
-0.03173018991947174,
0.15964800119400024,
0.005354780703783035,
0.35063496232032776,
0.4653637409210205,
-0.23535558581352234,
-0.1776273101568222,
0.25437989830970764,
-0.3389158844947815,
0.32597818970680237,
0.21591274440288544,
0.16562345623970032,
0.6236847639083862,
0.04479482024908066,
0.06629790365695953,
0.3561086356639862,
-0.1359664797782898,
-0.5598912239074707,
0.1638796031475067,
0.08628685027360916,
-0.05072909593582153,
-0.2131098210811615,
0.6076284050941467,
-0.05917802080512047,
-0.2103678286075592,
-0.04596521332859993,
0.14844463765621185,
0.05353470891714096,
0.01840587891638279,
-0.3480503559112549,
-0.11280634999275208,
-0.22028544545173645,
-0.035500504076480865,
0.16825339198112488,
-0.3167340159416199,
0.39556658267974854,
0.023352734744548798,
0.05068666487932205,
-0.07781237363815308,
0.3185552954673767,
0.32239219546318054,
0.16124221682548523,
-0.05169326812028885,
-0.03849859535694122,
-0.18338067829608917,
-0.12029856443405151,
0.05491703748703003,
0.10423373430967331,
0.13933208584785461,
-0.00801309198141098,
-0.32889431715011597,
0.02580120787024498,
0.28027284145355225,
-0.17537571489810944,
0.2165524810552597,
0.3208756744861603,
0.02612995356321335,
-0.04677790030837059,
0.15684527158737183,
0.093731589615345,
-0.050609808415174484,
-0.047943975776433945,
0.19924499094486237,
0.010977603495121002,
-0.39039790630340576,
0.3062100410461426,
-0.05602462589740753,
-0.18199998140335083,
-0.08713406324386597,
0.02120727300643921,
-0.2622387409210205,
-0.12150627374649048,
0.34633976221084595,
-0.29912498593330383,
0.07905088365077972,
-0.16138751804828644,
0.00489417277276516,
-0.05721440538764,
0.6285122632980347,
0.13396498560905457,
0.2206522822380066,
-0.2274455428123474,
-0.2880057096481323,
-0.32333362102508545,
-0.16009491682052612,
-0.3285861313343048,
-0.19750216603279114,
0.13906224071979523,
0.33642858266830444,
-0.26514407992362976,
0.1710461527109146,
-0.18043194711208344,
0.08042874932289124,
0.13381363451480865,
0.2941446006298065,
-0.12289711833000183,
-0.22381378710269928,
-0.25817734003067017,
0.14294742047786713,
-0.11188624799251556,
-0.2786237597465515,
0.002092260867357254,
0.014958989806473255,
-0.29385003447532654,
0.19197116792201996,
-0.0257435105741024,
0.43318578600883484,
0.47871819138526917,
-0.21020758152008057,
0.13810008764266968,
0.5317721962928772,
0.24466130137443542,
0.03736484795808792,
-0.39661309123039246,
0.010310610756278038,
-0.30662569403648376,
0.35140788555145264,
-0.05836443975567818,
0.24318638443946838,
-0.3306995928287506,
0.030847715213894844,
-0.1717274934053421,
0.1854446530342102,
0.022396527230739594,
-0.12885233759880066,
-0.3340088427066803,
-0.05164903402328491,
-0.34993988275527954,
0.22408902645111084,
0.7802202105522156,
0.4724247455596924,
-0.3136296570301056,
-0.054636336863040924,
0.16969288885593414,
-0.09948250651359558,
-0.08105480670928955,
-0.41019219160079956,
-0.1743735671043396,
0.16504357755184174,
0.13397489488124847,
0.3939223289489746,
-0.14028041064739227,
-0.7209002375602722,
-0.163884699344635,
0.1605289727449417,
-0.1027979627251625,
0.09483128786087036,
0.09756490588188171,
0.2638239562511444,
-0.12343041598796844,
0.0006557628512382507,
0.419199138879776,
0.07783934473991394,
-0.3093946576118469,
0.05669940635561943,
-0.3002832531929016
] |
https://github.com/huggingface/datasets/issues/259 | documentation missing how to split a dataset | We added a way to shuffle datasets (shuffle the indices and then reorder to make a new dataset).
You can do `shuffled_dset = dataset.shuffle(seed=my_seed)`. It shuffles the whole dataset.
There is also `dataset.train_test_split()` which if very handy (with the same signature as sklearn).
Closing this issue as we added the docs for splits and tools to split datasets. Thanks again for your feedback ! | I am trying to understand how to split a dataset ( as arrow_dataset).
I know I can do something like this to access a split which is already in the original dataset :
`ds_test = nlp.load_dataset('imdb, split='test') `
But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)?
I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description:
> See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information.
But the guide seems to be missing.
To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this:
`ds_test = nlp.load_dataset('imdb, split='test'[:5000]) `
`ds_val = nlp.load_dataset('imdb, split='test'[5000:])`
because the imdb test data is sorted by class (probably not a good idea anyway)
| 64 | documentation missing how to split a dataset
I am trying to understand how to split a dataset ( as arrow_dataset).
I know I can do something like this to access a split which is already in the original dataset :
`ds_test = nlp.load_dataset('imdb, split='test') `
But how can I split ds_test into a test and a validation set (without reading the data into memory and keeping the arrow_dataset as container)?
I guess it has something to do with the module split :-) but there is no real documentation in the code but only a reference to a longer description:
> See the [guide on splits](https://github.com/huggingface/nlp/tree/master/docs/splits.md) for more information.
But the guide seems to be missing.
To clarify: I know that this has been modelled after the dataset of tensorflow and that some of the documentation there can be used [like this one](https://www.tensorflow.org/datasets/splits). But to come back to the example above: I cannot simply split the testset doing this:
`ds_test = nlp.load_dataset('imdb, split='test'[:5000]) `
`ds_val = nlp.load_dataset('imdb, split='test'[5000:])`
because the imdb test data is sorted by class (probably not a good idea anyway)
We added a way to shuffle datasets (shuffle the indices and then reorder to make a new dataset).
You can do `shuffled_dset = dataset.shuffle(seed=my_seed)`. It shuffles the whole dataset.
There is also `dataset.train_test_split()` which if very handy (with the same signature as sklearn).
Closing this issue as we added the docs for splits and tools to split datasets. Thanks again for your feedback ! | [
0.04032239690423012,
0.028683379292488098,
-0.05983371287584305,
0.1646728366613388,
-0.03913845866918564,
0.2028900384902954,
0.41115114092826843,
0.3333027958869934,
-0.08382701873779297,
0.04181888699531555,
0.15812678635120392,
0.30084553360939026,
-0.197824165225029,
0.15138034522533417,
0.19664648175239563,
-0.364620566368103,
-0.05800513178110123,
0.19849884510040283,
0.2289591133594513,
-0.0036905743181705475,
0.2562015950679779,
-0.10712927579879761,
-0.3044232428073883,
0.12092766910791397,
-0.32318082451820374,
-0.46185317635536194,
-0.2295878678560257,
-0.03113935887813568,
-0.27340415120124817,
-0.19202080368995667,
0.20997069776058197,
-0.18233513832092285,
0.03209193795919418,
0.30542421340942383,
-0.00011610495130298659,
-0.010881055146455765,
0.2465660125017166,
-0.10877054929733276,
-0.11473895609378815,
-0.22363676130771637,
-0.37851303815841675,
-0.03036482259631157,
0.36818480491638184,
-0.13753902912139893,
0.005616433918476105,
-0.25173237919807434,
0.1225900799036026,
-0.17821207642555237,
0.5087324976921082,
0.4407334327697754,
0.11155949532985687,
0.0035521872341632843,
0.17675256729125977,
0.10351596772670746,
0.0424027182161808,
0.35954105854034424,
-0.10657065361738205,
0.09570769965648651,
-0.15450839698314667,
-0.10495015978813171,
-0.12685510516166687,
0.040601931512355804,
0.16669189929962158,
0.1925521045923233,
0.10879844427108765,
-0.0359807014465332,
-0.36446619033813477,
-0.4900595247745514,
-0.12549901008605957,
0.5456266403198242,
0.6005101203918457,
-0.33566761016845703,
-0.3338814079761505,
-0.27988100051879883,
0.07615569978952408,
-0.2287902981042862,
-0.12582209706306458,
0.6406729817390442,
-0.11848115921020508,
0.02916625514626503,
-0.14757712185382843,
-0.25278857350349426,
-0.28962868452072144,
0.1397942304611206,
0.04766962677240372,
0.4324975609779358,
-0.08437342941761017,
0.05834618955850601,
0.2639944851398468,
0.22298502922058105,
0.315396249294281,
-0.003420500084757805,
-0.08135402202606201,
0.292568564414978,
-0.2424946278333664,
-0.29246315360069275,
-0.17155888676643372,
-0.39744070172309875,
0.13248395919799805,
0.2986210584640503,
0.13614220917224884,
-0.08381734043359756,
-0.19492138922214508,
0.1345125436782837,
0.46787306666374207,
0.20583468675613403,
0.23960727453231812,
0.4790492057800293,
-0.001680072396993637,
-0.026334410533308983,
0.018089670687913895,
-0.18623724579811096,
-0.020823955535888672,
-0.22939251363277435,
-0.029344893991947174,
0.07501719892024994,
0.12169785797595978,
0.06604517996311188,
-0.256426066160202,
-0.3403443992137909,
-0.31577590107917786,
-0.1848139464855194,
0.10665010660886765,
0.1325048804283142,
0.08282498270273209,
-0.0800066888332367,
-0.3198462724685669,
0.27926507592201233,
-0.35139620304107666,
-0.13818584382534027,
-0.1297212392091751,
0.21638713777065277,
-0.41619494557380676,
0.14544540643692017,
0.11283363401889801,
-0.0038959868252277374,
0.3922368884086609,
-0.08318334817886353,
0.020149048417806625,
-0.3755834996700287,
0.2846870422363281,
0.017130518332123756,
0.18918654322624207,
0.3779686689376831,
0.18095695972442627,
0.044062092900276184,
0.059846051037311554,
0.13182437419891357,
-0.3288020193576813,
-0.004824712872505188,
-0.39713141322135925,
-0.42488428950309753,
-0.03210459649562836,
0.028272222727537155,
-0.041500024497509,
0.1902053952217102,
-0.26723408699035645,
0.35102078318595886,
-0.0028944984078407288,
-0.05468696355819702,
0.20169207453727722,
0.02771579474210739,
-0.17592480778694153,
-0.32532209157943726,
0.25098827481269836,
0.014880537986755371,
-0.385768324136734,
-0.03916957229375839,
-0.37690505385398865,
-0.040192048996686935,
-0.01849105954170227,
0.16504314541816711,
-0.3774423897266388,
0.4833279848098755,
-0.1127270758152008,
0.4063956141471863,
0.6908683180809021,
-0.19897468388080597,
-0.03407972306013107,
0.23109132051467896,
0.12390683591365814,
-0.2687206566333771,
-0.11322297900915146,
-0.05450599268078804,
0.3031640648841858,
0.11683478206396103,
-0.4216465353965759,
0.3843093514442444,
-0.30770233273506165,
-0.12684781849384308,
0.2832004427909851,
-0.25482749938964844,
0.24401560425758362,
-0.06546470522880554,
-0.08254262804985046,
-0.2543240785598755,
0.2538761794567108,
0.3207104206085205,
0.4920060336589813,
0.028029408305883408,
0.18014468252658844,
0.19091281294822693,
0.06165812909603119,
0.21790935099124908,
-0.06643345206975937,
-0.3025017976760864,
-0.33095699548721313,
-0.07930412888526917,
0.1560172289609909,
-0.07121202349662781,
0.005826704204082489,
-0.26461565494537354,
-0.20661139488220215,
-0.17261336743831635,
0.03518526256084442,
-0.33874043822288513,
0.059470124542713165,
-0.35655897855758667,
0.22108951210975647,
-0.12599144876003265,
-0.40236198902130127,
0.021791117265820503,
-0.23595184087753296,
0.24210044741630554,
-0.4350491762161255,
0.1747661978006363,
0.06471620500087738,
-0.08167722821235657,
0.12863680720329285,
0.281412810087204,
-0.07140601426362991,
-0.1138371005654335,
-0.00434567965567112,
0.5958946943283081,
0.5878073573112488,
-0.0264427587389946,
-0.13469037413597107,
0.043259814381599426,
0.4055943489074707,
-0.5084711909294128,
0.2129131555557251,
-0.05998456850647926,
0.01600710302591324,
0.008107542991638184,
-0.4583744704723358,
0.3185170292854309,
-0.4548642337322235,
0.3451865017414093,
0.2045089453458786,
0.12809276580810547,
0.01545446552336216,
-0.1400158703327179,
-0.2886722683906555,
0.02641611546278,
-0.23690204322338104,
-0.3842772841453552,
0.18044041097164154,
-0.048252902925014496,
-0.1647612750530243,
0.06235729157924652,
0.42563897371292114,
-0.21522173285484314,
0.1237344741821289,
-0.11507434397935867,
0.00950823724269867,
-0.04332409054040909,
0.13877618312835693,
0.44036081433296204,
0.21068443357944489,
0.05267689377069473,
0.35904014110565186,
-0.09933040291070938,
-0.24843180179595947,
-0.059664830565452576,
0.1357477307319641,
0.22583450376987457,
0.43771815299987793,
-0.05570456385612488,
-0.401349276304245,
-0.09798168390989304,
0.0026903152465820312,
-0.02148500084877014,
0.16222891211509705,
0.08480416238307953,
-0.28202328085899353,
0.07944879680871964,
-0.38133516907691956,
-0.1499003767967224,
-0.5209006071090698,
-0.27751439809799194,
-0.10699787735939026,
-0.26469871401786804,
-0.16758258640766144,
-0.09834025800228119,
0.0030452944338321686,
-0.026530994102358818,
-0.17902261018753052,
-0.056811198592185974,
-0.1716519296169281,
0.2067323476076126,
0.35746219754219055,
-0.314445436000824,
-0.14907994866371155,
0.05074546858668327,
0.20324310660362244,
0.6589829921722412,
0.28273555636405945,
0.053942903876304626,
-0.1018272191286087,
0.005200950428843498,
-0.2792690694332123,
0.22230327129364014,
-0.18854700028896332,
-0.010369922965765,
0.15800832211971283,
0.186748206615448,
0.0028780102729797363,
-0.38139504194259644,
-0.2566472291946411,
-0.24401240050792694,
-0.1778087317943573,
-0.018233032897114754,
0.20755808055400848,
0.09968108683824539,
-0.15868599712848663,
-0.7297607064247131,
-0.29716047644615173,
-0.1867210417985916,
0.24421927332878113,
-0.2553654909133911,
0.2198871523141861,
0.20174208283424377,
0.15176929533481598,
0.3269977867603302,
0.021452905610203743,
-0.06577335298061371,
0.2023564875125885,
0.2355848252773285,
-0.0004925131797790527,
-0.4409201741218567,
-0.1999346911907196,
0.3105657696723938,
-0.030850820243358612,
0.1985803097486496,
0.03157477825880051,
-0.17949625849723816,
0.2157321572303772,
-0.18783260881900787,
-0.0676264613866806,
-0.057765498757362366,
-0.005910338833928108,
0.29335111379623413,
-0.14673644304275513,
0.25939780473709106,
-0.15763205289840698,
0.08947601914405823,
0.11739896982908249,
-0.12689071893692017,
0.24165725708007812,
0.025677254423499107,
0.30072492361068726,
0.20903702080249786,
0.716243326663971,
0.21691977977752686,
-0.04961196705698967,
-0.30788272619247437,
-0.11982177942991257,
0.12274572253227234,
0.08320064097642899,
-0.06935588270425797,
0.06017785146832466,
-0.05655093491077423,
-0.12304681539535522,
0.057131629437208176,
0.22249770164489746,
-0.3131631016731262,
0.04924427717924118,
0.01980169489979744,
-0.38517189025878906,
-0.43638747930526733,
0.29140713810920715,
-0.43924474716186523,
0.184654101729393,
-0.08337146043777466,
0.015539683401584625,
0.09900538623332977,
-0.08828715980052948,
-0.33879727125167847,
0.17838753759860992,
0.2523910701274872,
0.06754985451698303,
-0.39323580265045166,
-0.13682152330875397,
-0.1724320352077484,
-0.1602959781885147,
0.13636425137519836,
0.22373485565185547,
-0.08130331337451935,
-0.010579239577054977,
0.20969556272029877,
0.2643875181674957,
0.2860424816608429,
-0.14419524371623993,
-0.08684107661247253,
-0.06860722601413727,
0.15270882844924927,
-0.3193497955799103,
0.10822916030883789,
-0.27289479970932007,
0.3731340765953064,
0.047841064631938934,
-0.062419965863227844,
-0.3523034453392029,
-0.4623897969722748,
0.4459838271141052,
-0.022501295432448387,
-0.10897655785083771,
0.13175055384635925,
-0.1218775063753128,
-0.20836389064788818,
0.016592273488640785,
0.07180527597665787,
0.3153066337108612,
-0.15713436901569366,
-0.13445346057415009,
0.11000815033912659,
-0.08137082308530807,
-0.05635739490389824,
0.1561252921819687,
-0.022292090579867363,
0.3218558430671692,
0.09128402173519135,
-0.10566142201423645,
0.3978521525859833,
0.09259559959173203,
0.02041858434677124,
0.2542873024940491,
-0.1303013414144516,
-0.17568498849868774,
0.15564969182014465,
-0.12783890962600708,
0.5831713676452637,
0.2837543189525604,
0.127422034740448,
0.03904832899570465,
-0.10546258091926575,
-0.21308203041553497,
-0.25235405564308167,
0.2407674938440323,
0.20485049486160278,
-0.12524136900901794,
-0.2370995283126831,
-0.6877890229225159,
0.34603697061538696,
0.12995098531246185,
-0.04631911590695381,
0.5394692420959473,
0.28738933801651,
-0.33302006125450134,
0.4225694537162781,
0.20159807801246643,
0.7477271556854248,
0.07628539204597473,
0.0732947364449501,
0.17544957995414734,
-0.32953375577926636,
0.5686728954315186,
-0.39178466796875,
0.14846792817115784,
-0.20931999385356903,
-0.18464897572994232,
-0.1217484325170517,
-0.2601586580276489,
-0.0024029910564422607,
0.37963229417800903,
-0.02065369486808777,
0.3090941905975342,
-0.12201787531375885,
-0.03883090987801552,
-0.18526910245418549,
0.4369939863681793,
-0.15786822140216827,
-0.0386330708861351,
0.11717497557401657,
0.0497080534696579,
-0.17018543183803558,
-0.03154243901371956,
0.0686156153678894,
-0.09706021100282669,
-0.23836663365364075,
0.08978907763957977,
-0.4137590527534485,
-0.00398578867316246,
-0.093634694814682,
0.17431560158729553,
-0.11657615005970001,
-0.128584086894989,
0.3310356140136719,
0.20149286091327667,
0.07694937288761139,
-0.046999868005514145,
-0.08624761551618576,
0.2644329369068146,
-0.15505844354629517,
-0.08023475110530853,
-0.11832410842180252,
0.007898370735347271,
0.42446663975715637,
0.17772388458251953,
-0.3372204005718231,
-0.001675337553024292,
-0.1474839150905609,
-0.1404348611831665,
0.03170527517795563,
0.31006452441215515,
0.20730404555797577,
-0.30792972445487976,
-0.05977075174450874,
0.2092684805393219,
0.017688754945993423,
0.030095156282186508,
0.07010702043771744,
0.032398369163274765,
-0.18817487359046936,
0.20461905002593994,
-0.005717642605304718,
-0.1675049066543579,
0.038011811673641205,
-0.1753721833229065,
0.0619027204811573,
0.1214926689863205,
0.3558520972728729,
0.06765057146549225,
-0.03742167726159096,
-0.23571988940238953,
0.3150268495082855,
0.4389846622943878,
-0.3237172067165375,
-0.02740633860230446,
-0.4423149526119232,
0.18740011751651764,
0.12536470592021942,
-0.20002368092536926,
0.05561869591474533,
0.37735608220100403,
-0.2882794737815857,
-0.4561293423175812,
0.08607301861047745,
0.38666731119155884,
-0.17158861458301544,
0.3158801794052124,
-0.2676704525947571,
0.09841269254684448,
0.05521031469106674,
0.38801658153533936,
-0.18367677927017212,
0.24034811556339264,
0.2049388587474823,
0.36936476826667786,
0.06575076282024384,
0.09621219336986542,
0.19039441645145416,
-0.16573205590248108,
-0.0842859223484993,
0.0015351343899965286,
0.13751719892024994,
-0.15802597999572754,
-0.12334640324115753,
0.15133050084114075,
-0.09740792959928513,
0.017409656196832657,
-0.18994709849357605,
-0.2951279878616333,
-0.23185059428215027,
-0.054529398679733276,
-0.033203575760126114,
-0.06778130680322647,
0.1707531213760376,
0.4092101752758026,
0.3738698959350586,
0.13425412774085999,
-0.21210826933383942,
0.1207357794046402,
-0.08661243319511414,
0.3235028386116028,
0.030281592160463333,
0.2924146056175232,
0.15572093427181244,
0.07963132858276367,
-0.2641414701938629,
0.0043119341135025024,
0.25128012895584106,
-0.3833705484867096,
0.02015705034136772,
0.2284637838602066,
0.24739158153533936,
-0.5429640412330627,
0.4029044508934021,
0.46168190240859985,
0.151047021150589,
0.1251656860113144,
0.16137409210205078,
0.07373758405447006,
0.16382913291454315,
0.19374823570251465,
0.22261051833629608,
0.23137129843235016,
-0.02539207972586155,
0.2896290421485901,
0.08568932116031647,
0.5033310651779175,
-0.3993387222290039,
-0.0661391019821167,
0.18732310831546783,
-0.02523680031299591,
0.3962179720401764,
0.4388955533504486,
-0.2788349986076355,
-0.16009898483753204,
0.26306840777397156,
-0.3144688010215759,
0.25787481665611267,
0.15247145295143127,
0.09744111448526382,
0.5958567261695862,
0.07111293077468872,
0.014083348214626312,
0.4374823570251465,
-0.04861459508538246,
-0.5118054151535034,
0.12021847814321518,
0.08198627829551697,
-0.10598207265138626,
-0.07827545702457428,
0.6175237894058228,
-0.05257679894566536,
-0.20818060636520386,
-0.04921994358301163,
0.135900616645813,
0.09032075852155685,
0.017596956342458725,
-0.42944541573524475,
-0.05283983051776886,
-0.26673853397369385,
-0.08939005434513092,
0.15850724279880524,
-0.2950608730316162,
0.32041704654693604,
0.0735073834657669,
0.0717601478099823,
-0.07714482396841049,
0.35611993074417114,
0.2811407744884491,
0.10605819523334503,
-0.03464944660663605,
-0.04615592956542969,
-0.13544169068336487,
-0.09426987171173096,
-0.009773708879947662,
0.22053544223308563,
0.15718773007392883,
-0.043595097959041595,
-0.3575880825519562,
0.10804811865091324,
0.29325199127197266,
-0.19909104704856873,
0.2499285340309143,
0.23950056731700897,
-0.06114627420902252,
0.0016483943909406662,
0.1325109452009201,
0.11824338138103485,
-0.023855464532971382,
-0.015528500080108643,
0.1763843595981598,
0.0615801177918911,
-0.4181661009788513,
0.3436129093170166,
-0.09685763716697693,
-0.14697615802288055,
-0.11981239914894104,
0.0243317112326622,
-0.2717858552932739,
-0.14485038816928864,
0.48984116315841675,
-0.29373791813850403,
0.049890726804733276,
-0.1740180402994156,
0.011581219732761383,
-0.07375909388065338,
0.5757766366004944,
0.10351774096488953,
0.2875748872756958,
-0.18912141025066376,
-0.2778649926185608,
-0.3347231149673462,
-0.17710140347480774,
-0.24440714716911316,
-0.16438354551792145,
0.11530440300703049,
0.34534764289855957,
-0.19904902577400208,
0.17235350608825684,
-0.0962463766336441,
0.055364858359098434,
0.12450959533452988,
0.3176044225692749,
-0.07206082344055176,
-0.24812127649784088,
-0.26123470067977905,
0.19507938623428345,
-0.11447160691022873,
-0.23095563054084778,
-0.0003363862633705139,
-0.07478975504636765,
-0.27155616879463196,
0.16877074539661407,
-0.061991237103939056,
0.5020112991333008,
0.453644722700119,
-0.1745002716779709,
0.11708703637123108,
0.5048568248748779,
0.21035060286521912,
0.04130120575428009,
-0.37596261501312256,
0.05233432725071907,
-0.3360320031642914,
0.4153878092765808,
-0.054098378866910934,
0.2203136682510376,
-0.31312093138694763,
0.019466426223516464,
-0.18057391047477722,
0.15908998250961304,
-0.0025377310812473297,
-0.15743060410022736,
-0.3457914888858795,
-0.06791269779205322,
-0.33832067251205444,
0.1855582445859909,
0.7595582008361816,
0.42158374190330505,
-0.32762661576271057,
-0.032350555062294006,
0.16780610382556915,
-0.0936117023229599,
-0.07497578859329224,
-0.38463571667671204,
-0.1207670271396637,
0.11813472211360931,
0.1582866609096527,
0.38578110933303833,
-0.08686769753694534,
-0.7019299864768982,
-0.18412737548351288,
0.18196117877960205,
-0.18547940254211426,
0.08952377736568451,
0.09270550310611725,
0.35799118876457214,
-0.09053009748458862,
-0.04550402984023094,
0.39203307032585144,
0.142862007021904,
-0.27875715494155884,
0.04897238686680794,
-0.29140734672546387
] |
https://github.com/huggingface/datasets/issues/258 | Why is dataset after tokenization far more larger than the orginal one ? | Hi ! This is because `.map` added the new column `input_ids` to the dataset, and so all the other columns were kept. Therefore the dataset size increased a lot.
If you want to only keep the `input_ids` column, you can stash the other ones by specifying `remove_columns=["title", "text"]` in the arguments of `.map` | I tokenize wiki dataset by `map` and cache the results.
```
def tokenize_tfm(example):
example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text']))
return example
wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train']
wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow")
```
and when I see their size
```
ls -l --block-size=M
17460M wikipedia-train.arrow
47511M tokenized_wiki.arrow
```
The tokenized one is over 2x size of original one.
Is there something I did wrong ? | 53 | Why is dataset after tokenization far more larger than the orginal one ?
I tokenize wiki dataset by `map` and cache the results.
```
def tokenize_tfm(example):
example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text']))
return example
wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train']
wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow")
```
and when I see their size
```
ls -l --block-size=M
17460M wikipedia-train.arrow
47511M tokenized_wiki.arrow
```
The tokenized one is over 2x size of original one.
Is there something I did wrong ?
Hi ! This is because `.map` added the new column `input_ids` to the dataset, and so all the other columns were kept. Therefore the dataset size increased a lot.
If you want to only keep the `input_ids` column, you can stash the other ones by specifying `remove_columns=["title", "text"]` in the arguments of `.map` | [
-0.059119533747434616,
-0.08479122817516327,
0.051376987248659134,
0.08934728801250458,
0.050122760236263275,
0.061708785593509674,
0.3212454617023468,
0.4181886911392212,
-0.04780944809317589,
-0.09947513043880463,
-0.10500584542751312,
0.29056107997894287,
0.07891775667667389,
-0.142442524433136,
0.2202339917421341,
-0.08854815363883972,
0.3397548496723175,
0.02737315744161606,
0.17828205227851868,
-0.2089828997850418,
-0.007719788700342178,
0.004557210952043533,
-0.1589311957359314,
0.0408782921731472,
-0.4096500873565674,
-0.06494592875242233,
-0.19326137006282806,
-0.11585921794176102,
-0.3763851225376129,
-0.45427027344703674,
0.017773089930415154,
0.1124851256608963,
0.451571524143219,
0.2357400506734848,
-0.0001270274369744584,
-0.3008660078048706,
0.015437044203281403,
-0.001203637570142746,
0.011203065514564514,
0.35859882831573486,
0.19096219539642334,
-0.5831575393676758,
-0.12455443292856216,
-0.2549137473106384,
0.26530295610427856,
-0.5587733387947083,
-0.2960030734539032,
0.22782504558563232,
-0.010379843413829803,
-0.1184159591794014,
0.09640315920114517,
-0.1408599615097046,
-0.060328029096126556,
0.42771783471107483,
0.09496460855007172,
0.02583066001534462,
-0.08704643696546555,
-0.236141175031662,
-0.1481277495622635,
-0.24969767034053802,
-0.019383661448955536,
0.20226047933101654,
-0.04803495481610298,
-0.24934189021587372,
0.34619882702827454,
-0.03341227024793625,
-0.17995798587799072,
-0.022580116987228394,
0.33813589811325073,
0.22315064072608948,
0.3686366677284241,
-0.09173130244016647,
0.07641992717981339,
-0.2663862109184265,
-0.15127046406269073,
-0.13329115509986877,
-0.15262621641159058,
0.12956729531288147,
0.3435022830963135,
-0.06652630865573883,
-0.39928579330444336,
-0.08628231287002563,
0.20937088131904602,
0.23396363854408264,
-0.23377765715122223,
0.511780321598053,
0.0349201038479805,
0.2241726517677307,
-0.27022120356559753,
-0.1453222781419754,
-0.10400500893592834,
-0.18281523883342743,
-0.1459912210702896,
0.4562892019748688,
-0.3604280352592468,
-0.3879569470882416,
0.08032935857772827,
-0.07795768231153488,
0.43373245000839233,
-0.26861655712127686,
-0.38367679715156555,
0.0286891870200634,
-0.006413348484784365,
-0.20137763023376465,
0.1444687396287918,
0.5048397183418274,
-0.2656995952129364,
0.43785929679870605,
-0.09575355052947998,
-0.12296349555253983,
-0.4596564769744873,
-0.18970099091529846,
0.04711765795946121,
0.17094677686691284,
0.23458795249462128,
-0.2991549074649811,
-0.29952049255371094,
-0.03883134201169014,
0.27626124024391174,
0.2337452620267868,
-0.4753178358078003,
0.0576496347784996,
-0.14133645594120026,
0.32653194665908813,
-0.12757156789302826,
0.3444328308105469,
-0.3865058422088623,
0.18685802817344666,
-0.13302454352378845,
0.015349817462265491,
-0.1350688934326172,
-0.1800367683172226,
0.09897328913211823,
0.1725703775882721,
-0.24827438592910767,
0.2382374256849289,
0.3281410038471222,
0.12043159455060959,
-0.14697620272636414,
-0.0860263779759407,
0.42678961157798767,
-0.17270755767822266,
0.3936493992805481,
0.1442786604166031,
0.11970360577106476,
0.3475685715675354,
-0.04413076117634773,
-0.12564605474472046,
-0.19792476296424866,
0.15886330604553223,
-0.5327579379081726,
-0.19502602517604828,
-0.0560809001326561,
0.02175021544098854,
0.0058697182685136795,
-0.0263536274433136,
-0.36281248927116394,
0.37489983439445496,
0.41073325276374817,
-0.06625276803970337,
0.17581351101398468,
-0.3005613088607788,
-0.3777943551540375,
-0.21447782218456268,
-0.01332785002887249,
-0.07812502980232239,
-0.10852594673633575,
-0.0072020553052425385,
0.263325572013855,
0.322047621011734,
0.3666020333766937,
0.6014495491981506,
-0.22513654828071594,
0.5065829157829285,
-0.24515622854232788,
0.3823336958885193,
0.4053660035133362,
-0.30211400985717773,
-0.737957239151001,
0.32079455256462097,
0.15917329490184784,
0.2684880197048187,
-0.1612892746925354,
-0.0188449677079916,
0.501741886138916,
0.0920705646276474,
0.05278453975915909,
0.2601008415222168,
-0.05028475075960159,
0.12133870273828506,
-0.31012701988220215,
-0.1889873743057251,
0.355093777179718,
-0.5069998502731323,
0.19823436439037323,
0.05771149322390556,
0.036683667451143265,
0.42328718304634094,
0.4101296663284302,
0.06884685158729553,
0.29239174723625183,
0.23463527858257294,
-0.022851284593343735,
0.08898657560348511,
0.2690237760543823,
0.07330088317394257,
0.09403912723064423,
-0.08586573600769043,
-0.08047661930322647,
-0.11078383028507233,
0.19960367679595947,
-0.40108436346054077,
-0.19319036602973938,
-0.06629660725593567,
-0.0975160151720047,
-0.3066636323928833,
0.004855122417211533,
-0.10042650997638702,
0.1177813857793808,
-0.04412934184074402,
0.21179862320423126,
0.10142625868320465,
-0.08258406817913055,
0.09123265743255615,
0.096454918384552,
0.15638966858386993,
0.11612135171890259,
0.1823626458644867,
-0.2617764472961426,
0.2670946717262268,
0.18193727731704712,
-0.037679485976696014,
-0.21081292629241943,
0.09187155961990356,
0.10519339144229889,
0.03651181980967522,
0.15220960974693298,
0.39060792326927185,
0.17170293629169464,
0.09538176655769348,
0.4608207046985626,
-0.0380944088101387,
0.011727589182555676,
-0.14514006674289703,
0.154300257563591,
0.330697238445282,
0.37670913338661194,
0.1166268140077591,
0.013811931014060974,
-0.24629144370555878,
0.18226127326488495,
0.019084040075540543,
0.13453219830989838,
-0.25540390610694885,
-0.20804880559444427,
0.21563607454299927,
-0.019212640821933746,
0.024063948541879654,
0.11250036954879761,
0.34272176027297974,
0.47784408926963806,
-0.10713495314121246,
-0.13532480597496033,
0.12465707212686539,
-0.6855452656745911,
-0.5055302381515503,
0.15784546732902527,
0.05310029909014702,
0.24582502245903015,
0.09888884425163269,
0.2933289110660553,
0.027764536440372467,
0.1958903968334198,
0.11157649755477905,
0.18519091606140137,
-0.06813864409923553,
-0.009855750016868114,
0.17791984975337982,
0.45782044529914856,
0.1271982640028,
-0.250245064496994,
0.25102221965789795,
0.022298293188214302,
0.4215037524700165,
-0.09490896761417389,
0.13411687314510345,
-0.21858517825603485,
-0.05064254254102707,
0.01370038278400898,
-0.06598589569330215,
-0.19649043679237366,
-0.4311217665672302,
-0.09151867032051086,
-0.031483884900808334,
0.31014367938041687,
-0.1640016883611679,
-0.10094144940376282,
0.01414555311203003,
0.12986788153648376,
0.11785566061735153,
0.13072840869426727,
-0.048138577491045,
-0.36776748299598694,
-0.043739430606365204,
-0.08232421427965164,
-0.09464254975318909,
0.2672002613544464,
0.1329372525215149,
-0.06954391300678253,
-0.41357091069221497,
-0.7815633416175842,
0.06334707885980606,
-0.1783967912197113,
0.06646008044481277,
-0.0457359254360199,
0.007565788924694061,
-0.48515576124191284,
0.1696503758430481,
-0.027793651446700096,
0.02674335055053234,
-0.19898630678653717,
-0.052347276359796524,
-0.3482211232185364,
0.12791353464126587,
0.1593477874994278,
-0.025174349546432495,
-0.016343021765351295,
0.07509168982505798,
-0.03678465634584427,
0.046603959053754807,
0.06857670098543167,
0.03800991550087929,
-0.20963087677955627,
-0.10176248103380203,
-0.05538768693804741,
-0.1567961573600769,
-0.5051298141479492,
-0.28393808007240295,
0.2793945372104645,
-0.14031419157981873,
-0.23298285901546478,
-0.031714633107185364,
-0.17853406071662903,
0.14001744985580444,
0.08782685548067093,
-0.5514481067657471,
0.15839305520057678,
-0.21242780983448029,
0.1916600912809372,
-0.2602851986885071,
0.017265450209379196,
0.17556506395339966,
-0.13362795114517212,
0.07332523912191391,
0.004524149000644684,
0.009566187858581543,
-0.3130400478839874,
0.16302460432052612,
0.45659947395324707,
-0.07779281586408615,
0.4733353853225708,
0.25864219665527344,
0.8525635004043579,
0.015796788036823273,
0.032810237258672714,
0.21354445815086365,
-0.2784927785396576,
0.14360356330871582,
-0.29891180992126465,
-0.1292736679315567,
0.16177599132061005,
-0.1741361916065216,
0.18075226247310638,
0.43052154779434204,
0.17388993501663208,
-0.11813030391931534,
0.6388403177261353,
-0.28878849744796753,
0.10471243411302567,
-0.0959651917219162,
0.21213304996490479,
-0.22368726134300232,
0.26412835717201233,
0.23356491327285767,
-0.1642080843448639,
-0.6363498568534851,
-0.5240098237991333,
0.01573696918785572,
0.12684425711631775,
-0.061563022434711456,
0.13311217725276947,
-0.7828916907310486,
-0.06536221504211426,
-0.67743980884552,
0.2748371958732605,
0.09826596826314926,
0.27370575070381165,
0.3563113212585449,
0.0407930463552475,
0.11432404816150665,
0.04313252866268158,
0.541021466255188,
-0.14186561107635498,
-0.22339816391468048,
-0.08547833561897278,
-0.023105693981051445,
-0.2765072286128998,
-0.20002372562885284,
-0.002108205109834671,
0.22030062973499298,
0.44531795382499695,
0.6754162311553955,
0.02226770669221878,
-0.18873149156570435,
-0.03479306027293205,
0.5779749751091003,
-0.16473563015460968,
-0.058012332767248154,
-0.3751467764377594,
-0.04988459125161171,
-0.31904855370521545,
0.017375461757183075,
-0.23421762883663177,
0.20882706344127655,
0.01428019255399704,
-0.2663804292678833,
-0.20428739488124847,
-0.2549266517162323,
-0.09576381742954254,
0.11313290894031525,
0.3051750957965851,
0.3400226831436157,
0.06019577011466026,
-0.22647333145141602,
0.23531849682331085,
0.007680960930883884,
-0.04527115076780319,
0.10828544199466705,
0.06937955319881439,
-0.14581343531608582,
0.06272353231906891,
0.3206307888031006,
0.09083013236522675,
0.01880788430571556,
0.5403698086738586,
-0.3301045596599579,
0.14533162117004395,
-0.08386675268411636,
0.40728679299354553,
0.3613957166671753,
0.11808011680841446,
-0.45151135325431824,
-0.3181844651699066,
0.18577200174331665,
0.1650393158197403,
-0.06916315853595734,
0.3194536864757538,
0.08457008749246597,
-0.13708017766475677,
0.4602779150009155,
0.06607019901275635,
0.9790539145469666,
-0.10605527460575104,
0.28666865825653076,
0.00008963979780673981,
-0.003613874316215515,
0.32138341665267944,
-0.5782908797264099,
0.03960524499416351,
-0.24362605810165405,
0.1978459358215332,
0.03674470633268356,
0.07390265166759491,
-0.026068083941936493,
0.18417102098464966,
0.030752014368772507,
0.0558934323489666,
0.013466320931911469,
0.4594784379005432,
-0.37877345085144043,
0.4584660530090332,
0.12931853532791138,
-0.07897418737411499,
0.07714319229125977,
0.01613321155309677,
-0.10079948604106903,
-0.2620895206928253,
-0.1763329803943634,
0.20341435074806213,
-0.1437990516424179,
-0.2942546010017395,
-0.02457927167415619,
-0.2759602665901184,
-0.013632426038384438,
0.3781239986419678,
-0.03935835137963295,
-0.24653400480747223,
0.024282868951559067,
0.07880494743585587,
0.12353311479091644,
0.47104477882385254,
0.0196329765021801,
0.1571982055902481,
0.01737130433320999,
0.23138569295406342,
0.20039109885692596,
-0.19124126434326172,
-0.01786154694855213,
0.04114357382059097,
-0.2371107041835785,
-0.06144031137228012,
-0.03818142041563988,
-0.3024936318397522,
-0.3547365069389343,
0.15590746700763702,
0.5879483222961426,
-0.37624791264533997,
-0.10717305541038513,
0.07623874396085739,
-0.08698385208845139,
-0.1380646824836731,
0.036946751177310944,
-0.17183226346969604,
0.06115713343024254,
0.27326521277427673,
0.2821740210056305,
-0.42576175928115845,
-0.07563982903957367,
0.3695719242095947,
0.3958670198917389,
0.07058347761631012,
0.7585433721542358,
-0.2851179838180542,
-0.10893528163433075,
-0.03366783261299133,
0.26288723945617676,
0.15755817294120789,
0.1521795690059662,
-0.2588035762310028,
-0.09599170833826065,
0.130006805062294,
0.046134646981954575,
0.02343904599547386,
-0.19750145077705383,
-0.005434416234493256,
-0.2912546992301941,
-0.2011927366256714,
-0.5601049661636353,
0.03123611956834793,
-0.37218353152275085,
0.18799430131912231,
0.27163100242614746,
0.17450731992721558,
-0.32272496819496155,
0.5348666310310364,
-0.13824482262134552,
0.07519862055778503,
0.172684445977211,
0.179804265499115,
-0.19673779606819153,
0.028331821784377098,
-0.09268948435783386,
-0.03231598436832428,
-0.056952618062496185,
0.15574729442596436,
0.08882778882980347,
-0.13873577117919922,
-0.3546193540096283,
0.19144971668720245,
0.2820286154747009,
-0.14579108357429504,
-0.06356022506952286,
0.02002634108066559,
-0.15271154046058655,
-0.377066969871521,
0.281560480594635,
-0.041629355400800705,
0.11197139322757721,
0.1002027690410614,
0.2932279706001282,
-0.26684579253196716,
-0.06899438798427582,
-0.028105497360229492,
0.19564059376716614,
-0.006250455975532532,
0.0928514301776886,
0.1738094538450241,
0.282868355512619,
-0.07996746152639389,
-0.45425379276275635,
0.07022667676210403,
0.2185203582048416,
0.028732145205140114,
0.42319256067276,
0.14606702327728271,
0.10630649328231812,
0.07024000585079193,
-0.25059306621551514,
0.1618649959564209,
0.06352055817842484,
-0.412168949842453,
0.3658711612224579,
0.009376323781907558,
-0.060158297419548035,
-0.12420520186424255,
0.32086417078971863,
-0.12238024920225143,
-0.13527366518974304,
0.00482574850320816,
0.4468997120857239,
0.23529541492462158,
-0.41041773557662964,
-0.06779060512781143,
0.4093165695667267,
-0.19093193113803864,
-0.044676899909973145,
0.2629777193069458,
-0.07583049684762955,
0.07852320373058319,
0.2926715016365051,
0.06258843839168549,
0.04271703213453293,
0.39373767375946045,
0.3723277449607849,
0.27664729952812195,
0.3065330982208252,
0.0783284455537796,
0.025759071111679077,
-0.2941977083683014,
-0.13978789746761322,
0.32739177346229553,
-0.15839648246765137,
0.09058503806591034,
0.11753721535205841,
0.07445651292800903,
0.5569460391998291,
-0.3510773777961731,
0.038710713386535645,
0.4113399386405945,
-0.31157186627388,
-0.22218701243400574,
-0.0707549899816513,
-0.03381135314702988,
0.08181799948215485,
0.10929304361343384,
-0.1141347587108612,
-0.2129836231470108,
-0.0952969342470169,
-0.12766574323177338,
-0.20527108013629913,
-0.20592446625232697,
0.16255301237106323,
0.1398719847202301,
0.12890572845935822,
-0.23990775644779205,
0.01780952513217926,
-0.3468594551086426,
0.11774152517318726,
-0.15735164284706116,
0.11329443752765656,
0.2794463038444519,
0.21934868395328522,
-0.04729485884308815,
-0.021197054535150528,
0.1454106569290161,
0.04779355973005295,
-0.011661158874630928,
0.07663802802562714,
0.1730528622865677,
-0.41053855419158936,
-0.08476333320140839,
-0.09953610599040985,
-0.05779411271214485,
-0.35217994451522827,
0.3204970359802246,
-0.0887681394815445,
0.07768480479717255,
0.17812177538871765,
-0.06604751199483871,
-0.2564237415790558,
-0.10467806458473206,
0.1899690330028534,
-0.3707856237888336,
0.11652614176273346,
0.35875722765922546,
0.03465256839990616,
0.33139440417289734,
-0.3841508626937866,
0.0268460214138031,
-0.32305312156677246,
0.38207951188087463,
0.560506284236908,
-0.364507794380188,
-0.2622016370296478,
-0.28136175870895386,
-0.20820945501327515,
0.23005901277065277,
-0.41834086179733276,
-0.00995040126144886,
-0.1728505790233612,
0.2826249301433563,
-0.1216619536280632,
-0.3347281813621521,
-0.0016163885593414307,
-0.11503192782402039,
-0.07742315530776978,
0.1213357001543045,
-0.016738420352339745,
-0.01716632768511772,
-0.3584670424461365,
0.15422727167606354,
-0.20322389900684357,
-0.04235716536641121,
0.29695045948028564,
0.17754404246807098,
-0.11464163661003113,
-0.14535211026668549,
0.08861832320690155,
-0.01430030632764101,
-0.04893793910741806,
0.35471615195274353,
0.23884835839271545,
0.335685133934021,
-0.06481321156024933,
0.2596984803676605,
0.018421366810798645,
0.03760279342532158,
-0.1106705516576767,
0.2143895924091339,
-0.2533371150493622,
0.03718739002943039,
0.10522045195102692,
-0.02399180456995964,
0.20821866393089294,
0.015259038656949997,
0.0650140792131424,
-0.22314199805259705,
-0.18527518212795258,
0.1600991040468216,
-0.11264842748641968,
0.03296015411615372,
-0.1247100755572319,
0.5538576245307922,
0.05682782456278801,
0.22750361263751984,
0.0008597001433372498,
-0.2433760017156601,
0.2034359723329544,
-0.5507057905197144,
-0.21118679642677307,
-0.21413148939609528,
0.0035445764660835266,
0.25495901703834534,
-0.29777464270591736,
-0.31301015615463257,
-0.07921859622001648,
0.5161020755767822,
-0.01071958988904953,
-0.036898620426654816,
0.23896729946136475,
0.08628499507904053,
0.18690162897109985,
-0.14391827583312988,
0.3211909532546997,
-0.22820955514907837,
0.008853616192936897,
0.060896050184965134,
-0.04039089381694794
] |
https://github.com/huggingface/datasets/issues/258 | Why is dataset after tokenization far more larger than the orginal one ? | Hi ! Thanks for your reply.
But since size of `input_ids` < size of `text`, I am wondering why
size of `input_ids` + `text` > 2x the size of `text` 🤔 | I tokenize wiki dataset by `map` and cache the results.
```
def tokenize_tfm(example):
example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text']))
return example
wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train']
wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow")
```
and when I see their size
```
ls -l --block-size=M
17460M wikipedia-train.arrow
47511M tokenized_wiki.arrow
```
The tokenized one is over 2x size of original one.
Is there something I did wrong ? | 31 | Why is dataset after tokenization far more larger than the orginal one ?
I tokenize wiki dataset by `map` and cache the results.
```
def tokenize_tfm(example):
example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text']))
return example
wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train']
wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow")
```
and when I see their size
```
ls -l --block-size=M
17460M wikipedia-train.arrow
47511M tokenized_wiki.arrow
```
The tokenized one is over 2x size of original one.
Is there something I did wrong ?
Hi ! Thanks for your reply.
But since size of `input_ids` < size of `text`, I am wondering why
size of `input_ids` + `text` > 2x the size of `text` 🤔 | [
-0.05326911062002182,
-0.20863620936870575,
0.017832662910223007,
0.19117693603038788,
0.014383681118488312,
0.008745521306991577,
0.23980078101158142,
0.37405428290367126,
-0.11492244899272919,
-0.013811707496643066,
-0.08017395436763763,
0.180669367313385,
0.14083325862884521,
-0.11297158151865005,
0.19782470166683197,
-0.10907374322414398,
0.28937873244285583,
-0.01182267814874649,
0.17266127467155457,
-0.19848355650901794,
0.06419624388217926,
0.012349831871688366,
-0.2044711858034134,
0.026559527963399887,
-0.4099165201187134,
-0.011964356526732445,
-0.14313869178295135,
-0.12345203012228012,
-0.40403416752815247,
-0.5144374966621399,
-0.052695050835609436,
0.081151083111763,
0.38159605860710144,
0.2726805806159973,
-0.00012669501302298158,
-0.3327264189720154,
0.0753401666879654,
0.011636203154921532,
-0.01236558984965086,
0.26773685216903687,
0.16763320565223694,
-0.5629213452339172,
-0.16141904890537262,
-0.2532130479812622,
0.2919108271598816,
-0.5190225839614868,
-0.20933367311954498,
0.3381918966770172,
0.04195871949195862,
-0.15536098182201385,
0.08470180630683899,
-0.134199857711792,
0.033729102462530136,
0.4106486737728119,
0.14613720774650574,
0.09478885680437088,
-0.04455035179853439,
-0.19317695498466492,
-0.12520526349544525,
-0.18618835508823395,
-0.014873787760734558,
0.1704453080892563,
0.0846225917339325,
-0.21875205636024475,
0.35215815901756287,
-0.07896697521209717,
-0.18379029631614685,
-0.044031307101249695,
0.22508743405342102,
0.2020062506198883,
0.3780929446220398,
-0.12140017002820969,
0.017900437116622925,
-0.2720344662666321,
-0.16476932168006897,
-0.06602118164300919,
-0.17578813433647156,
0.18078529834747314,
0.29018735885620117,
-0.0319657139480114,
-0.39199626445770264,
-0.05054576322436333,
0.11636032164096832,
0.23943689465522766,
-0.19160683453083038,
0.530661940574646,
0.037335336208343506,
0.17462408542633057,
-0.2876828610897064,
-0.17114199697971344,
-0.07721054553985596,
-0.23159965872764587,
-0.16406331956386566,
0.462870717048645,
-0.33474400639533997,
-0.35712307691574097,
0.04544798284769058,
-0.055378712713718414,
0.5117006301879883,
-0.30041325092315674,
-0.3079540431499481,
-0.017954960465431213,
-0.030010316520929337,
-0.13497376441955566,
0.10175661742687225,
0.503615140914917,
-0.3205176293849945,
0.4058419167995453,
-0.14635677635669708,
-0.0689108744263649,
-0.5243210792541504,
-0.18012303113937378,
0.05817374587059021,
0.09739425033330917,
0.12472446262836456,
-0.26268795132637024,
-0.3689330220222473,
-0.06546859443187714,
0.2246285080909729,
0.2283162623643875,
-0.5162183046340942,
0.0501701757311821,
-0.04624205455183983,
0.35313326120376587,
-0.187792107462883,
0.39859873056411743,
-0.3270300030708313,
0.21141688525676727,
-0.13615292310714722,
0.042562369257211685,
-0.11616846174001694,
-0.13553832471370697,
0.09621718525886536,
0.15382474660873413,
-0.23410971462726593,
0.19819645583629608,
0.34657639265060425,
0.09364866465330124,
0.01468893513083458,
-0.09685340523719788,
0.4784100353717804,
-0.20838409662246704,
0.3629964590072632,
0.12199456989765167,
0.14084263145923615,
0.3056558668613434,
-0.09019677340984344,
-0.095777228474617,
-0.12010864913463593,
0.14095395803451538,
-0.5012380480766296,
-0.16902020573616028,
0.011677436530590057,
0.03995825722813606,
0.04636122286319733,
-0.02601063996553421,
-0.37902694940567017,
0.3396333158016205,
0.44503840804100037,
-0.048593126237392426,
0.24750730395317078,
-0.2733229398727417,
-0.36723944544792175,
-0.17750319838523865,
0.015388162806630135,
-0.08096888661384583,
-0.06500156223773956,
-0.012405801564455032,
0.34793737530708313,
0.24103018641471863,
0.34923192858695984,
0.6582411527633667,
-0.23030146956443787,
0.5145466327667236,
-0.26764553785324097,
0.5004504323005676,
0.46325913071632385,
-0.410601943731308,
-0.7795950770378113,
0.3592056930065155,
0.21772204339504242,
0.1909920573234558,
-0.09057673066854477,
-0.0622674822807312,
0.44033315777778625,
0.17096807062625885,
0.15036475658416748,
0.26097872853279114,
-0.006749114021658897,
0.08912251889705658,
-0.40962255001068115,
-0.1871408373117447,
0.37675511837005615,
-0.5307527184486389,
0.21353478729724884,
-0.00004953145980834961,
0.04880724474787712,
0.4616968035697937,
0.4493001699447632,
0.06905429810285568,
0.2840158939361572,
0.26045531034469604,
-0.056147392839193344,
0.03188284486532211,
0.28227388858795166,
0.022659029811620712,
0.24659490585327148,
-0.055662740021944046,
-0.2750282287597656,
-0.0677846372127533,
0.24607792496681213,
-0.39166152477264404,
-0.21387794613838196,
0.005228560417890549,
-0.13893111050128937,
-0.2794295847415924,
0.02341775968670845,
-0.09323568642139435,
0.1023210734128952,
-0.038319267332553864,
0.23169739544391632,
0.11003924161195755,
-0.14329634606838226,
0.093553826212883,
0.13344958424568176,
0.1645781397819519,
0.040202051401138306,
0.15889430046081543,
-0.29894596338272095,
0.2747717797756195,
0.1509385108947754,
0.03816849738359451,
-0.2896445691585541,
0.056172925978899,
0.11204022914171219,
0.007937721908092499,
0.15989267826080322,
0.3029528856277466,
0.20067265629768372,
0.020968060940504074,
0.3990192711353302,
0.05197153985500336,
0.05530034378170967,
-0.15162846446037292,
0.1953582465648651,
0.2741398215293884,
0.40938103199005127,
0.06393249332904816,
0.08304174244403839,
-0.2988685369491577,
0.18383336067199707,
0.016415569931268692,
0.14657296240329742,
-0.21071220934391022,
-0.1486242264509201,
0.2459668517112732,
0.09252983331680298,
0.04467770457267761,
0.08473168313503265,
0.3287925124168396,
0.4958302676677704,
-0.0970020443201065,
-0.0951334610581398,
0.09257965534925461,
-0.6602827310562134,
-0.5403527021408081,
0.14899645745754242,
-0.04970843344926834,
0.22394205629825592,
0.09999942779541016,
0.3472329378128052,
0.01993062160909176,
0.22986429929733276,
0.09709710627794266,
0.20534271001815796,
-0.08589571714401245,
0.018572373315691948,
0.2559402883052826,
0.501387894153595,
0.15280500054359436,
-0.26602283120155334,
0.20251339673995972,
-0.04294790327548981,
0.30884280800819397,
-0.11249274760484695,
0.08505523204803467,
-0.13355517387390137,
-0.14356857538223267,
-0.0023190854117274284,
-0.039491038769483566,
-0.19667084515094757,
-0.4011043310165405,
-0.09010423719882965,
-0.07314570248126984,
0.3624984323978424,
-0.20259667932987213,
-0.046921879053115845,
0.011672675609588623,
0.15434794127941132,
0.1703260838985443,
0.08429469168186188,
0.05608861893415451,
-0.3676503300666809,
-0.05931732803583145,
-0.09912469983100891,
-0.06199691444635391,
0.23751088976860046,
0.16652651131153107,
-0.06456755101680756,
-0.34583303332328796,
-0.8534327149391174,
0.08256758004426956,
-0.08412108570337296,
0.07087638229131699,
-0.03756257891654968,
-0.04241597652435303,
-0.45490801334381104,
0.1427479386329651,
-0.03376031294465065,
0.08442971855401993,
-0.28556138277053833,
-0.1527383178472519,
-0.30640724301338196,
0.1108349934220314,
0.08386653661727905,
0.03271348029375076,
-0.07812932878732681,
-0.0054613929241895676,
0.02883562445640564,
0.06393249332904816,
0.04123462736606598,
0.033153235912323,
-0.23439380526542664,
-0.00552122388035059,
-0.029566438868641853,
-0.0494089350104332,
-0.49379006028175354,
-0.2349340170621872,
0.261457622051239,
-0.1864851415157318,
-0.28714659810066223,
-0.1379062682390213,
-0.2127656191587448,
0.167451873421669,
0.12354183197021484,
-0.5751290321350098,
0.1784174144268036,
-0.20781584084033966,
0.19144964218139648,
-0.2898370623588562,
0.041971560567617416,
0.07119383662939072,
-0.13051608204841614,
0.04127625375986099,
-0.06556469202041626,
0.06275056302547455,
-0.34460335969924927,
0.13738355040550232,
0.5308549404144287,
-0.10191185027360916,
0.4415525794029236,
0.33889898657798767,
0.9411723613739014,
0.07107661664485931,
0.059741273522377014,
0.2623283863067627,
-0.21298493444919586,
0.10007908195257187,
-0.2972136437892914,
-0.11260820925235748,
0.18117444217205048,
-0.08571946620941162,
0.19752013683319092,
0.44805651903152466,
0.1431238055229187,
-0.14498110115528107,
0.623424768447876,
-0.40051040053367615,
0.034616902470588684,
-0.048764489591121674,
0.12758205831050873,
-0.21853646636009216,
0.29290375113487244,
0.20640385150909424,
-0.19971436262130737,
-0.5666323900222778,
-0.4909054934978485,
-0.025202246382832527,
0.15088677406311035,
-0.0897449180483818,
0.17949287593364716,
-0.6895122528076172,
-0.10211613029241562,
-0.6798049211502075,
0.22899624705314636,
0.19071799516677856,
0.22689229249954224,
0.28931745886802673,
0.12283728271722794,
0.09867163747549057,
-0.00004647718742489815,
0.5573986172676086,
-0.09543941169977188,
-0.16968557238578796,
-0.10019512474536896,
-0.08933208882808685,
-0.21871154010295868,
-0.157479390501976,
0.04600316658616066,
0.19132918119430542,
0.4865811765193939,
0.6134020090103149,
-0.036943793296813965,
-0.20329096913337708,
-0.07582060992717743,
0.563632071018219,
-0.13563311100006104,
-0.09072206169366837,
-0.3391309678554535,
-0.0056420378386974335,
-0.3226272165775299,
-0.010170139372348785,
-0.14415620267391205,
0.2290707379579544,
-0.010588034987449646,
-0.3273719251155853,
-0.28767505288124084,
-0.2229084074497223,
-0.14036205410957336,
0.08093775808811188,
0.3359942138195038,
0.28167295455932617,
0.04255058243870735,
-0.29740968346595764,
0.2304454892873764,
0.06290474534034729,
-0.06459355354309082,
0.19542627036571503,
0.015280157327651978,
-0.17702841758728027,
0.0828779861330986,
0.29112550616264343,
0.09389930963516235,
-0.014790491200983524,
0.5646324157714844,
-0.2761474847793579,
0.13827653229236603,
-0.05335598811507225,
0.4750402569770813,
0.3200356960296631,
0.13913172483444214,
-0.48492273688316345,
-0.28049054741859436,
0.23389193415641785,
0.10955604910850525,
-0.05102814733982086,
0.20236675441265106,
0.05031430348753929,
-0.1862102597951889,
0.38877570629119873,
0.028144896030426025,
1.0094178915023804,
-0.05592581629753113,
0.3413281738758087,
-0.015066944062709808,
0.03418184071779251,
0.2308698296546936,
-0.5023812651634216,
0.03936033695936203,
-0.2651953101158142,
0.24726426601409912,
0.03677663207054138,
-0.020033176988363266,
-0.13461682200431824,
0.21808676421642303,
0.011437725275754929,
0.04845667630434036,
0.022509142756462097,
0.32622116804122925,
-0.350305438041687,
0.5328889489173889,
0.07841494679450989,
-0.011508392170071602,
0.04405856877565384,
0.003480851650238037,
-0.09421084821224213,
-0.1945372372865677,
-0.22121304273605347,
0.13402651250362396,
-0.15913113951683044,
-0.28524863719940186,
-0.08463241159915924,
-0.1929345726966858,
-0.11190064251422882,
0.4539327621459961,
-0.03698484227061272,
-0.2596128582954407,
0.04455680027604103,
0.09518551826477051,
0.08014149218797684,
0.5051613450050354,
-0.003987681120634079,
0.1667693555355072,
-0.06453963369131088,
0.19650134444236755,
0.20818455517292023,
-0.1267438530921936,
0.0821608230471611,
-0.0444016270339489,
-0.24102964997291565,
-0.07912572473287582,
-0.017951298505067825,
-0.2659713625907898,
-0.31129392981529236,
0.22223901748657227,
0.4669785499572754,
-0.36202967166900635,
-0.1344531625509262,
0.1378595530986786,
-0.17791321873664856,
-0.10515405237674713,
0.043693095445632935,
-0.1480315625667572,
0.019449440762400627,
0.18704098463058472,
0.3336388170719147,
-0.47344252467155457,
-0.07331298291683197,
0.33935263752937317,
0.3918023109436035,
0.06282408535480499,
0.773810625076294,
-0.3206624984741211,
-0.13908222317695618,
-0.021764162927865982,
0.24826177954673767,
0.08135437220335007,
0.12821105122566223,
-0.19154377281665802,
-0.09267384558916092,
0.11579464375972748,
-0.009256284683942795,
0.0023910030722618103,
-0.16502143442630768,
-0.026117965579032898,
-0.29746779799461365,
-0.23090055584907532,
-0.5808984637260437,
0.03908679261803627,
-0.42151185870170593,
0.23899206519126892,
0.29483407735824585,
0.2263328731060028,
-0.2764214873313904,
0.4198245108127594,
-0.1429227888584137,
0.07621611654758453,
0.08431103825569153,
0.14677442610263824,
-0.33285343647003174,
-0.021071188151836395,
-0.13390564918518066,
0.11986091732978821,
-0.06710603088140488,
0.14277422428131104,
0.0320810005068779,
-0.14778712391853333,
-0.32291632890701294,
0.18288661539554596,
0.33240506052970886,
-0.16048449277877808,
-0.09705165773630142,
0.010317560285329819,
-0.13277345895767212,
-0.32210129499435425,
0.26110970973968506,
-0.059933628886938095,
0.11925293505191803,
0.14993126690387726,
0.3006533682346344,
-0.16753515601158142,
-0.06557706743478775,
0.053857188671827316,
0.2275744378566742,
0.09843277186155319,
0.10346168279647827,
0.17027989029884338,
0.28924813866615295,
-0.09209741652011871,
-0.5138875842094421,
0.0483802855014801,
0.30648332834243774,
0.044246431440114975,
0.36890050768852234,
0.1666702926158905,
0.07998369634151459,
0.011288434267044067,
-0.20199283957481384,
0.10306529700756073,
0.04121077060699463,
-0.33770552277565,
0.3317940831184387,
0.0025519952178001404,
-0.06455738842487335,
-0.05170520022511482,
0.25513407588005066,
-0.2453046590089798,
-0.13780240714550018,
-0.05388634651899338,
0.46833017468452454,
0.284157395362854,
-0.4058924913406372,
-0.08853156864643097,
0.31158187985420227,
-0.20140835642814636,
-0.07778355479240417,
0.1521666944026947,
-0.006109852343797684,
0.0656590536236763,
0.21320922672748566,
0.09858100116252899,
0.12295565754175186,
0.3483352065086365,
0.3747965395450592,
0.3071371614933014,
0.21259254217147827,
0.05738826468586922,
0.14751729369163513,
-0.19726057350635529,
-0.24209435284137726,
0.3180955648422241,
-0.11582639813423157,
0.11366522312164307,
0.07949589937925339,
0.04698076471686363,
0.5698668360710144,
-0.3263922929763794,
0.09167496114969254,
0.3821565806865692,
-0.27957844734191895,
-0.24620145559310913,
-0.039252836257219315,
-0.0029508844017982483,
0.029073074460029602,
0.06110593304038048,
-0.048690591007471085,
-0.14768733084201813,
-0.22082120180130005,
-0.03437202423810959,
-0.18838278949260712,
-0.19187724590301514,
0.29295840859413147,
0.28476017713546753,
0.14947529137134552,
-0.2994999885559082,
0.04082106053829193,
-0.28906339406967163,
0.1501985490322113,
-0.19445401430130005,
0.253501832485199,
0.32927045226097107,
0.26249825954437256,
-0.17548201978206635,
-0.06082351133227348,
0.12307415902614594,
0.07062466442584991,
-0.08771030604839325,
0.0532669872045517,
0.2275359034538269,
-0.40913617610931396,
-0.032219674438238144,
-0.1101514920592308,
-0.06639562547206879,
-0.3087644875049591,
0.3365980088710785,
-0.24563801288604736,
0.027153149247169495,
0.15500980615615845,
-0.11660006642341614,
-0.2735725939273834,
-0.1233111023902893,
0.211990088224411,
-0.533623218536377,
0.12187261879444122,
0.4087364077568054,
0.012874677777290344,
0.3519573211669922,
-0.3962768614292145,
0.03063531219959259,
-0.3564007878303528,
0.42195188999176025,
0.58473140001297,
-0.14075976610183716,
-0.22088287770748138,
-0.21872232854366302,
-0.11225789040327072,
0.26416152715682983,
-0.31317588686943054,
0.055245839059352875,
-0.2011154443025589,
0.3303230106830597,
-0.22820058465003967,
-0.3678622841835022,
0.06400065124034882,
-0.14042606949806213,
-0.07279960066080093,
0.1040833592414856,
-0.04346052557229996,
-0.041573893278837204,
-0.37132716178894043,
0.10058746486902237,
-0.16299401223659515,
-0.053874626755714417,
0.21027281880378723,
0.023921143263578415,
-0.12340428680181503,
-0.13363663852214813,
0.14041787385940552,
0.024197787046432495,
0.015528399497270584,
0.3350541889667511,
0.2555699646472931,
0.3614538311958313,
-0.1383255273103714,
0.26979291439056396,
0.13203252851963043,
-0.05608971044421196,
-0.06951499730348587,
0.25913289189338684,
-0.24245762825012207,
0.014212630689144135,
0.11624453216791153,
-0.07696759700775146,
0.2797970175743103,
-0.019859028980135918,
0.06250040978193283,
-0.2820073664188385,
-0.09782041609287262,
0.12973013520240784,
-0.17839573323726654,
-0.005088301375508308,
-0.12769179046154022,
0.5228880047798157,
0.04185953363776207,
0.19025039672851562,
0.020648926496505737,
-0.2521098554134369,
0.22566112875938416,
-0.4897979199886322,
-0.12731456756591797,
-0.24831198155879974,
-0.04415448009967804,
0.2793738842010498,
-0.25697433948516846,
-0.39150312542915344,
-0.07386528700590134,
0.5597876310348511,
0.1051386222243309,
-0.09787200391292572,
0.2520550489425659,
0.14548692107200623,
0.16534078121185303,
-0.17395341396331787,
0.3162575364112854,
-0.22407588362693787,
0.04365549981594086,
0.11748120188713074,
-0.03356976434588432
] |
https://github.com/huggingface/datasets/issues/258 | Why is dataset after tokenization far more larger than the orginal one ? | Hard to tell... This is probably related to the way apache arrow compresses lists of integers, that may be different from the compression of strings. | I tokenize wiki dataset by `map` and cache the results.
```
def tokenize_tfm(example):
example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text']))
return example
wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train']
wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow")
```
and when I see their size
```
ls -l --block-size=M
17460M wikipedia-train.arrow
47511M tokenized_wiki.arrow
```
The tokenized one is over 2x size of original one.
Is there something I did wrong ? | 25 | Why is dataset after tokenization far more larger than the orginal one ?
I tokenize wiki dataset by `map` and cache the results.
```
def tokenize_tfm(example):
example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text']))
return example
wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train']
wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow")
```
and when I see their size
```
ls -l --block-size=M
17460M wikipedia-train.arrow
47511M tokenized_wiki.arrow
```
The tokenized one is over 2x size of original one.
Is there something I did wrong ?
Hard to tell... This is probably related to the way apache arrow compresses lists of integers, that may be different from the compression of strings. | [
-0.11238875985145569,
-0.11934535950422287,
0.01129046082496643,
0.20274457335472107,
-0.004323583096265793,
-0.08417987823486328,
0.2501813769340515,
0.43843621015548706,
-0.16868257522583008,
-0.07945176959037781,
-0.018409516662359238,
0.1791735142469406,
0.12678782641887665,
-0.4135739505290985,
0.2721517086029053,
-0.08150149881839752,
0.29106584191322327,
-0.024630829691886902,
0.0719699040055275,
-0.19687537848949432,
0.034757331013679504,
0.04166219383478165,
-0.13580293953418732,
0.07297997176647186,
-0.4001581072807312,
-0.044991545379161835,
-0.12996266782283783,
-0.07194729894399643,
-0.2361069768667221,
-0.5674788355827332,
-0.07457377761602402,
0.012132573872804642,
0.42886438965797424,
0.21151411533355713,
-0.00012896198313683271,
-0.2799147963523865,
0.14519661664962769,
0.047584354877471924,
-0.12981431186199188,
0.29284995794296265,
0.2264074981212616,
-0.6245267987251282,
-0.09858813881874084,
-0.18128977715969086,
0.29503944516181946,
-0.6420502066612244,
-0.22691111266613007,
0.08217157423496246,
0.18488363921642303,
-0.13531464338302612,
0.08482638001441956,
-0.09381585568189621,
-0.10724309086799622,
0.3942358195781708,
0.17671114206314087,
0.1288813352584839,
-0.08183742314577103,
-0.22567705810070038,
-0.187434583902359,
-0.17470687627792358,
-0.0508904829621315,
0.16270777583122253,
0.0634382888674736,
-0.1471032053232193,
0.30647987127304077,
-0.07142310589551926,
-0.2241658866405487,
0.06346884369850159,
0.2754485607147217,
0.2621813714504242,
0.4169599115848541,
-0.015648461878299713,
-0.005996692925691605,
-0.23013722896575928,
-0.20180845260620117,
-0.03891334682703018,
-0.09311548620462418,
0.2346327155828476,
0.2906147241592407,
-0.01752537488937378,
-0.2741988003253937,
0.026341309770941734,
0.09475918114185333,
0.19758431613445282,
-0.2298889458179474,
0.4450587332248688,
0.04016311094164848,
0.21792876720428467,
-0.2753767967224121,
-0.15453839302062988,
-0.05867141857743263,
-0.2145058661699295,
-0.1798379123210907,
0.4322633147239685,
-0.19286517798900604,
-0.2621162235736847,
-0.05152970552444458,
-0.2579566538333893,
0.46010008454322815,
-0.07624048739671707,
-0.14753039181232452,
0.1732754409313202,
-0.041558559983968735,
-0.25591954588890076,
0.04241238534450531,
0.49797913432121277,
-0.1888275146484375,
0.4086039960384369,
-0.07886438071727753,
-0.01632779650390148,
-0.4559732675552368,
-0.14773446321487427,
-0.014137892983853817,
0.0840102955698967,
0.19180411100387573,
-0.18388283252716064,
-0.41253894567489624,
-0.07391171902418137,
0.24710381031036377,
0.2568506598472595,
-0.5777158737182617,
0.010563172399997711,
-0.15314440429210663,
0.27124693989753723,
-0.1933000683784485,
0.40418732166290283,
-0.26577693223953247,
0.22528228163719177,
-0.12825512886047363,
0.007667544297873974,
-0.06053169071674347,
-0.3740161955356598,
0.09740917384624481,
0.25645357370376587,
-0.23812797665596008,
0.18245252966880798,
0.3605073392391205,
0.06975261121988297,
-0.004230014979839325,
-0.09864704310894012,
0.5601615905761719,
-0.17234663665294647,
0.3714500963687897,
0.10057443380355835,
0.0955011397600174,
0.3552553653717041,
0.005198478698730469,
0.005940161645412445,
-0.1179967150092125,
0.16847409307956696,
-0.45938169956207275,
-0.1219618022441864,
0.024770459160208702,
-0.024990640580654144,
0.04219355434179306,
0.05981571972370148,
-0.26530611515045166,
0.2889685332775116,
0.35265466570854187,
0.0013087168335914612,
0.20101416110992432,
-0.25858819484710693,
-0.2672608196735382,
-0.2102823257446289,
-0.015737615525722504,
-0.15178628265857697,
-0.14707264304161072,
0.0005064457654953003,
0.2672629952430725,
0.41023609042167664,
0.32009780406951904,
0.6782879829406738,
-0.30266809463500977,
0.3560178279876709,
-0.24698492884635925,
0.4818020462989807,
0.4356306195259094,
-0.26680827140808105,
-0.7089951038360596,
0.36413535475730896,
0.30647438764572144,
0.13555552065372467,
-0.1135176494717598,
-0.11155862361192703,
0.4555981457233429,
0.15298499166965485,
0.06372372806072235,
0.3180863857269287,
0.08958269655704498,
0.05318785458803177,
-0.366668164730072,
-0.13033291697502136,
0.2926563024520874,
-0.5646041035652161,
0.10386882722377777,
-0.031335338950157166,
0.11210839450359344,
0.3461751341819763,
0.4183446168899536,
0.05857115983963013,
0.3294254541397095,
0.3610936403274536,
-0.12274451553821564,
-0.027573183178901672,
0.36816489696502686,
0.06964287161827087,
0.28049394488334656,
-0.1416315734386444,
-0.38201645016670227,
-0.05809088796377182,
0.001239970326423645,
-0.3346405625343323,
-0.2133372724056244,
0.0741388350725174,
-0.02629305049777031,
-0.23584309220314026,
-0.02144373022019863,
-0.04177180677652359,
0.062155526131391525,
0.022286735475063324,
0.24094276130199432,
0.07592083513736725,
-0.003160826861858368,
0.13227660953998566,
0.12772446870803833,
0.1355973780155182,
0.14461788535118103,
0.2024887353181839,
-0.24236156046390533,
0.1948191076517105,
0.12120459973812103,
-0.020607825368642807,
-0.250288724899292,
0.04438702017068863,
0.09822209924459457,
-0.06881608068943024,
0.2537713944911957,
0.20875531435012817,
0.2937290072441101,
-0.07045887410640717,
0.5168305039405823,
0.20283402502536774,
0.022697634994983673,
-0.12592388689517975,
0.12287884205579758,
0.437564492225647,
0.403496116399765,
0.18178710341453552,
0.04096706956624985,
-0.17428147792816162,
0.19050849974155426,
0.1196635514497757,
0.02806548960506916,
-0.20072829723358154,
-0.20023559033870697,
0.3322889506816864,
0.19521771371364594,
0.08209496736526489,
0.13258785009384155,
0.3307001292705536,
0.39309418201446533,
-0.2206750065088272,
-0.04462013393640518,
0.12691989541053772,
-0.7217387557029724,
-0.5281842350959778,
0.17523518204689026,
-0.12433888018131256,
0.12786100804805756,
0.07703625410795212,
0.34782618284225464,
-0.0948636382818222,
0.19670306146144867,
0.10626403242349625,
0.2983807325363159,
-0.08002506196498871,
0.13229970633983612,
0.16779549419879913,
0.4140318036079407,
0.09811513125896454,
-0.25184643268585205,
0.10625027120113373,
-0.017850778996944427,
0.20407608151435852,
-0.055260661989450455,
0.16634641587734222,
-0.23658202588558197,
-0.005216784775257111,
-0.09085139632225037,
-0.14071767032146454,
-0.4034101068973541,
-0.408481240272522,
-0.06564205884933472,
-0.17080318927764893,
0.26464200019836426,
-0.16357548534870148,
-0.09704318642616272,
0.0325588583946228,
0.2891848683357239,
0.13977773487567902,
0.07468762993812561,
0.07657859474420547,
-0.4737802743911743,
-0.0896962434053421,
-0.07976420968770981,
-0.13297700881958008,
0.22115664184093475,
0.21874229609966278,
-0.05999242886900902,
-0.4326706528663635,
-0.7699640989303589,
0.1413438618183136,
-0.04974733293056488,
0.009264282882213593,
-0.02130649983882904,
-0.05066807568073273,
-0.4660758376121521,
0.16761514544487,
0.018613392487168312,
0.056121498346328735,
-0.20464210212230682,
-0.0709274634718895,
-0.2541190981864929,
0.1641235500574112,
0.13209661841392517,
0.011977776885032654,
0.07093241065740585,
0.05853753909468651,
0.007406029850244522,
0.1563633382320404,
0.060902729630470276,
0.15623846650123596,
-0.12969599664211273,
-0.05506455898284912,
-0.006598519627004862,
-0.196181058883667,
-0.43931159377098083,
-0.18221724033355713,
0.36043354868888855,
-0.20645514130592346,
-0.3408964276313782,
-0.19871224462985992,
-0.21360155940055847,
0.18343766033649445,
0.22037459909915924,
-0.555018424987793,
0.3347567319869995,
-0.20444095134735107,
0.16529697179794312,
-0.31109485030174255,
-0.012440746650099754,
0.09151329845190048,
-0.05098479241132736,
-0.009837808087468147,
-0.03354223072528839,
0.11196269094944,
-0.30223968625068665,
0.01933187060058117,
0.6221039295196533,
-0.012839607894420624,
0.4115435779094696,
0.2607515752315521,
1.0486245155334473,
-0.02290095016360283,
0.13110831379890442,
0.24798724055290222,
-0.20067572593688965,
-0.003906678408384323,
-0.25872403383255005,
0.042311519384384155,
0.061159390956163406,
-0.1547430157661438,
0.17541244626045227,
0.4836205840110779,
0.2739485204219818,
-0.1684342473745346,
0.6691890954971313,
-0.2770102024078369,
0.0423474982380867,
-0.11789613962173462,
0.2433491051197052,
-0.35381653904914856,
0.2527450919151306,
0.2253296971321106,
-0.13769996166229248,
-0.6037968397140503,
-0.4350681006908417,
0.07916399836540222,
-0.007894434034824371,
-0.03528042882680893,
0.10694967210292816,
-0.613898754119873,
0.06492286175489426,
-0.7611915469169617,
0.33994579315185547,
0.058317024260759354,
0.24439731240272522,
0.3503575921058655,
-0.03739254176616669,
0.08865334093570709,
0.010469776578247547,
0.41962289810180664,
-0.03639303147792816,
-0.20475612580776215,
-0.12323658168315887,
-0.0005624815821647644,
-0.4640893042087555,
-0.1336943805217743,
-0.01288330927491188,
0.12188892811536789,
0.3096955120563507,
0.5771067142486572,
-0.08246449381113052,
-0.24651524424552917,
-0.1993008702993393,
0.5381543040275574,
-0.15323485434055328,
0.0488489605486393,
-0.3741458058357239,
-0.06718529760837555,
-0.3274954855442047,
-0.05264043062925339,
-0.1633448302745819,
0.2704223394393921,
-0.006817389279603958,
-0.32053038477897644,
-0.3182036876678467,
-0.3208782374858856,
-0.13784725964069366,
-0.005195435136556625,
0.4126262068748474,
0.171120285987854,
-0.061480432748794556,
-0.24336397647857666,
0.36586442589759827,
0.04136178642511368,
-0.07285770773887634,
0.32688483595848083,
-0.04058261215686798,
-0.094642773270607,
0.014398903585970402,
0.25701794028282166,
0.13784727454185486,
-0.030816931277513504,
0.46640273928642273,
-0.1954166740179062,
0.11280738562345505,
-0.014232750050723553,
0.39223513007164,
0.2835196554660797,
0.14535841345787048,
-0.4813139736652374,
-0.25784364342689514,
0.28843989968299866,
0.1952429860830307,
-0.03612837195396423,
0.3587245047092438,
-0.08957551419734955,
-0.12821123003959656,
0.4765395522117615,
0.2143424153327942,
1.0645095109939575,
-0.11152812838554382,
0.3996555507183075,
-0.017052244395017624,
-0.015462975949048996,
0.1706445962190628,
-0.5571756958961487,
0.053709469735622406,
-0.28333866596221924,
0.293824166059494,
0.012675212696194649,
0.031704049557447433,
-0.03743072599172592,
0.31893688440322876,
0.08329090476036072,
-0.008817802183330059,
0.014457181096076965,
0.29329362511634827,
-0.3422155976295471,
0.423513263463974,
-0.0014369841665029526,
-0.07549741864204407,
0.000607682392001152,
-0.00999872200191021,
-0.07050292193889618,
-0.16270525753498077,
-0.17906570434570312,
0.09286097437143326,
-0.22791703045368195,
-0.31243330240249634,
-0.03659452125430107,
-0.15969568490982056,
-0.09729447960853577,
0.39518940448760986,
-0.015033144503831863,
-0.3361249566078186,
0.007636114954948425,
0.01884925365447998,
0.012641414999961853,
0.3787164092063904,
0.0008671842515468597,
0.15693356096744537,
-0.13391852378845215,
0.26947885751724243,
0.16501733660697937,
-0.2293626219034195,
0.024529609829187393,
0.005040749907493591,
-0.15888318419456482,
-0.11810041218996048,
-0.05450485646724701,
-0.30098217725753784,
-0.1761484593153,
0.2057027965784073,
0.5047754049301147,
-0.34520214796066284,
0.032758209854364395,
0.08740374445915222,
-0.25088998675346375,
-0.11337858438491821,
0.019334888085722923,
-0.16555112600326538,
0.06344426423311234,
0.09029288589954376,
0.44226980209350586,
-0.3927364647388458,
-0.039550963789224625,
0.33264797925949097,
0.3317203223705292,
0.026877038180828094,
0.7461210489273071,
-0.2636685371398926,
-0.1310628354549408,
-0.05170401185750961,
0.2981928586959839,
0.16010233759880066,
-0.019589863717556,
-0.10138505697250366,
-0.18953484296798706,
0.03777135908603668,
-0.020609790459275246,
0.054859988391399384,
-0.16414357721805573,
0.026519082486629486,
-0.3682692348957062,
-0.17948420345783234,
-0.5608599781990051,
0.05336971580982208,
-0.4516383409500122,
0.22382329404354095,
0.14083918929100037,
0.019912084564566612,
-0.26912832260131836,
0.31490737199783325,
-0.0987984910607338,
0.07318106293678284,
0.2684805393218994,
0.1689358502626419,
-0.5337048768997192,
-0.04692818969488144,
-0.06778468191623688,
0.19738708436489105,
-0.07386060059070587,
0.21522054076194763,
0.09421605616807938,
-0.10974013060331345,
-0.2969452440738678,
0.19105501472949982,
0.21002605557441711,
-0.23781169950962067,
-0.09308099746704102,
0.046253837645053864,
-0.06685248017311096,
-0.4275304079055786,
0.1565888375043869,
-0.1813192069530487,
0.10882797092199326,
-0.02239535003900528,
0.440231591463089,
-0.16514864563941956,
-0.13763877749443054,
0.04454327002167702,
0.17238646745681763,
0.18137434124946594,
0.09751143306493759,
0.18964672088623047,
0.28598007559776306,
-0.08793645352125168,
-0.5068223476409912,
0.036446407437324524,
0.2951573133468628,
0.03420012444257736,
0.42528030276298523,
0.10275229811668396,
-0.007354579865932465,
0.06303609162569046,
-0.16090501844882965,
0.15719588100910187,
0.07944250851869583,
-0.4598773419857025,
0.2521473467350006,
-0.004413658753037453,
-0.07563570886850357,
-0.0885663703083992,
0.13119979202747345,
-0.2073742300271988,
-0.27147945761680603,
-0.06023234874010086,
0.42273563146591187,
0.21316683292388916,
-0.3525819778442383,
-0.14773344993591309,
0.3129837214946747,
-0.2261546403169632,
-0.026944637298583984,
0.21111924946308136,
0.10315355658531189,
0.0894441157579422,
0.3192686140537262,
-0.07474330067634583,
0.17829763889312744,
0.3176267147064209,
0.31044334173202515,
0.30525389313697815,
0.46383777260780334,
0.04810767620801926,
0.04052834212779999,
-0.17799235880374908,
-0.20767350494861603,
0.3831959366798401,
-0.0240640789270401,
0.13755545020103455,
0.19925183057785034,
0.17872759699821472,
0.5734667778015137,
-0.30034804344177246,
-0.01418213453143835,
0.3012087047100067,
-0.21913766860961914,
-0.2593931257724762,
-0.11383714526891708,
-0.014999829232692719,
0.05671118199825287,
0.0322716124355793,
-0.051792602986097336,
-0.172720268368721,
-0.11939078569412231,
0.00023949146270751953,
-0.07666607201099396,
-0.25630271434783936,
0.26342692971229553,
0.23162630200386047,
0.1273983120918274,
-0.2074844390153885,
0.010598855093121529,
-0.2688139081001282,
0.17091989517211914,
-0.12404009699821472,
0.2004355490207672,
0.35249075293540955,
0.13648998737335205,
-0.1879260092973709,
-0.025725632905960083,
0.08137567341327667,
0.11561810970306396,
-0.08428926765918732,
0.06697806715965271,
0.25079846382141113,
-0.43662071228027344,
-0.05287447199225426,
-0.12236936390399933,
-0.013523365370929241,
-0.39292198419570923,
0.2501864731311798,
-0.23408564925193787,
0.09145280718803406,
0.13315986096858978,
-0.1589408963918686,
-0.27845048904418945,
-0.164261594414711,
0.1304125338792801,
-0.3757234215736389,
0.130771204829216,
0.4261535704135895,
-0.0062744030728936195,
0.2964460551738739,
-0.37346139550209045,
-0.0024555474519729614,
-0.4488924443721771,
0.38811489939689636,
0.5730147957801819,
-0.22114619612693787,
-0.1471797525882721,
-0.2637925148010254,
-0.029432430863380432,
0.27141961455345154,
-0.36796408891677856,
0.027342824265360832,
-0.15362009406089783,
0.35865482687950134,
-0.1316225826740265,
-0.2930258512496948,
0.16904707252979279,
-0.09834451228380203,
-0.020916402339935303,
0.15743713080883026,
-0.10027684271335602,
0.004404492676258087,
-0.1687355488538742,
0.2540197968482971,
-0.2325388640165329,
-0.1018427312374115,
0.21213063597679138,
0.13383299112319946,
-0.14434188604354858,
-0.1248873919248581,
-0.03201448544859886,
0.12016357481479645,
0.06695636361837387,
0.44283315539360046,
0.3170435428619385,
0.2394462674856186,
-0.05815110728144646,
0.1545058786869049,
0.03549928963184357,
0.009113734588027,
0.06970979273319244,
0.353141188621521,
-0.22028538584709167,
-0.03451060503721237,
0.10500507056713104,
0.007260635495185852,
0.1861712634563446,
0.061190828680992126,
0.06734573841094971,
-0.2035118192434311,
-0.20584635436534882,
0.049439720809459686,
-0.2224157154560089,
-0.03055243194103241,
-0.21144230663776398,
0.516964316368103,
0.08884751796722412,
0.16199462115764618,
-0.008801408112049103,
-0.30117687582969666,
0.15389329195022583,
-0.5309008955955505,
-0.18463443219661713,
-0.11542592942714691,
-0.020089715719223022,
0.28488582372665405,
-0.19326962530612946,
-0.365553081035614,
-0.10285867750644684,
0.522610604763031,
0.07693761587142944,
-0.07047542929649353,
0.047126494348049164,
0.125996395945549,
0.17742742598056793,
-0.22412146627902985,
0.4204757511615753,
-0.26452866196632385,
0.04592154175043106,
0.027982469648122787,
-0.07341641187667847
] |
https://github.com/huggingface/datasets/issues/258 | Why is dataset after tokenization far more larger than the orginal one ? | Thanks for your point. 😀, It might be answer.
Since this is hard to know, I'll close this issue.
But if somebody knows more details, please comment below ~ 😁 | I tokenize wiki dataset by `map` and cache the results.
```
def tokenize_tfm(example):
example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text']))
return example
wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train']
wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow")
```
and when I see their size
```
ls -l --block-size=M
17460M wikipedia-train.arrow
47511M tokenized_wiki.arrow
```
The tokenized one is over 2x size of original one.
Is there something I did wrong ? | 30 | Why is dataset after tokenization far more larger than the orginal one ?
I tokenize wiki dataset by `map` and cache the results.
```
def tokenize_tfm(example):
example['input_ids'] = hf_fast_tokenizer.convert_tokens_to_ids(hf_fast_tokenizer.tokenize(example['text']))
return example
wiki = nlp.load_dataset('wikipedia', '20200501.en', cache_dir=cache_dir)['train']
wiki.map(tokenize_tfm, cache_file_name=cache_dir/"wikipedia/20200501.en/1.0.0/tokenized_wiki.arrow")
```
and when I see their size
```
ls -l --block-size=M
17460M wikipedia-train.arrow
47511M tokenized_wiki.arrow
```
The tokenized one is over 2x size of original one.
Is there something I did wrong ?
Thanks for your point. 😀, It might be answer.
Since this is hard to know, I'll close this issue.
But if somebody knows more details, please comment below ~ 😁 | [
-0.07269098609685898,
-0.1665191352367401,
0.03377343714237213,
0.16052937507629395,
-0.013516701757907867,
-0.037937410175800323,
0.28756970167160034,
0.3828714191913605,
-0.09261277318000793,
-0.053379207849502563,
-0.10732576996088028,
0.1967063844203949,
0.0828922688961029,
-0.16333703696727753,
0.2538657486438751,
-0.09170413017272949,
0.31835660338401794,
0.0056695640087127686,
0.16419588029384613,
-0.24626585841178894,
0.0687173455953598,
-0.003469003364443779,
-0.16300934553146362,
0.08090615272521973,
-0.443872332572937,
-0.04094488173723221,
-0.14054302871227264,
-0.0889517143368721,
-0.32304590940475464,
-0.48770490288734436,
0.0544542595744133,
0.09045450389385223,
0.4469442069530487,
0.2833975553512573,
-0.0001280672731809318,
-0.31168311834335327,
0.0528840646147728,
0.014643700793385506,
0.03976279869675636,
0.27555638551712036,
0.19655561447143555,
-0.5918028950691223,
-0.1092253252863884,
-0.23436668515205383,
0.22299492359161377,
-0.5260524153709412,
-0.22258798778057098,
0.2866100072860718,
0.06343399733304977,
-0.12166991829872131,
0.08499415963888168,
-0.15386918187141418,
-0.024435998871922493,
0.431852787733078,
0.10891573876142502,
0.056108519434928894,
-0.0649041086435318,
-0.15242335200309753,
-0.17109492421150208,
-0.21753771603107452,
0.018256299197673798,
0.18566851317882538,
0.03376320004463196,
-0.20183010399341583,
0.3348082900047302,
-0.09028461575508118,
-0.17664754390716553,
-0.022714927792549133,
0.21693432331085205,
0.23121070861816406,
0.3756919205188751,
-0.06552183628082275,
0.036623671650886536,
-0.2437414526939392,
-0.19511950016021729,
-0.06473774462938309,
-0.15029862523078918,
0.2063046395778656,
0.33838367462158203,
-0.050870295614004135,
-0.40596938133239746,
-0.010919337160885334,
0.11912383139133453,
0.21046185493469238,
-0.25166571140289307,
0.5392636656761169,
0.04598622769117355,
0.19125497341156006,
-0.31628429889678955,
-0.14315550029277802,
-0.092056505382061,
-0.2071799337863922,
-0.1333356648683548,
0.44137439131736755,
-0.32577773928642273,
-0.36503955721855164,
0.042679086327552795,
-0.0733756497502327,
0.462568998336792,
-0.20513322949409485,
-0.3422221839427948,
0.07487611472606659,
-0.0427965372800827,
-0.20196327567100525,
0.0850401520729065,
0.4957801401615143,
-0.2846670150756836,
0.42259401082992554,
-0.06328573077917099,
-0.04807383567094803,
-0.5810616612434387,
-0.14357107877731323,
0.010381253436207771,
0.10315857082605362,
0.15770657360553741,
-0.24451735615730286,
-0.4083061218261719,
-0.13126833736896515,
0.2424325942993164,
0.21824787557125092,
-0.5596013069152832,
0.06093757599592209,
-0.09112370014190674,
0.35515227913856506,
-0.23587247729301453,
0.3478897213935852,
-0.3164414167404175,
0.16953685879707336,
-0.15480761229991913,
0.05105438455939293,
-0.1069491058588028,
-0.191483736038208,
0.07590791583061218,
0.17840425670146942,
-0.2429094910621643,
0.19465352594852448,
0.33950603008270264,
0.0500410832464695,
-0.04521484673023224,
-0.11400334537029266,
0.49134528636932373,
-0.19749262928962708,
0.33776748180389404,
0.10623166710138321,
0.11371447145938873,
0.2876221239566803,
-0.056181129068136215,
-0.07677789777517319,
-0.15264801681041718,
0.10963857173919678,
-0.48032963275909424,
-0.16494064033031464,
0.021757643669843674,
0.01574057713150978,
-0.012823392637073994,
-0.016629625111818314,
-0.38451945781707764,
0.3187757134437561,
0.37291574478149414,
-0.013545522466301918,
0.1754492223262787,
-0.25761765241622925,
-0.3746815621852875,
-0.18835805356502533,
0.002901531755924225,
-0.13878889381885529,
-0.05373670533299446,
-0.017046339809894562,
0.3274078667163849,
0.2638150453567505,
0.3902111351490021,
0.6496686935424805,
-0.2520271837711334,
0.5214617848396301,
-0.2812904119491577,
0.4189819097518921,
0.4458948075771332,
-0.4095207452774048,
-0.7466169595718384,
0.3305455148220062,
0.23252712190151215,
0.21595507860183716,
-0.16961151361465454,
-0.10101523995399475,
0.45513731241226196,
0.12787771224975586,
0.07427193224430084,
0.3066434860229492,
0.0433649979531765,
0.12882530689239502,
-0.387793630361557,
-0.1889546662569046,
0.3930894732475281,
-0.48217645287513733,
0.2345900535583496,
0.041010353714227676,
0.0740305632352829,
0.45210155844688416,
0.4246044158935547,
0.11163462698459625,
0.251674085855484,
0.25370076298713684,
-0.0022564008831977844,
0.04241681098937988,
0.3129780888557434,
0.017745036631822586,
0.21829327940940857,
-0.06058546155691147,
-0.30317550897598267,
-0.045443736016750336,
0.2102123200893402,
-0.3845503330230713,
-0.16224858164787292,
-0.016268374398350716,
-0.13136783242225647,
-0.3390321731567383,
0.0077266693115234375,
-0.10167667269706726,
0.15280553698539734,
0.017797201871871948,
0.2814899981021881,
0.060465529561042786,
-0.08134792000055313,
0.08353964984416962,
0.17481335997581482,
0.21532224118709564,
0.0870513990521431,
0.2072843760251999,
-0.2524544596672058,
0.26692473888397217,
0.1636473834514618,
-0.0030985178891569376,
-0.2674340307712555,
0.03861884027719498,
0.08812014758586884,
0.03199300169944763,
0.20416247844696045,
0.2901289165019989,
0.2043853998184204,
-0.01918114349246025,
0.4399231970310211,
0.0906589925289154,
0.01960638538002968,
-0.12770642340183258,
0.1646958887577057,
0.3998302221298218,
0.4183766841888428,
0.05560813099145889,
0.06079275161027908,
-0.2680591642856598,
0.18886469304561615,
0.02256016805768013,
0.15577366948127747,
-0.21369554102420807,
-0.13847947120666504,
0.2503272593021393,
0.06918434798717499,
0.04044865444302559,
0.08319783210754395,
0.3396419286727905,
0.48410138487815857,
-0.13331110775470734,
-0.07970475405454636,
0.12168604135513306,
-0.6560307741165161,
-0.541195273399353,
0.19862321019172668,
-0.062344614416360855,
0.16351503133773804,
0.09019193053245544,
0.31185874342918396,
0.015001274645328522,
0.2528745234012604,
0.13632410764694214,
0.20165377855300903,
-0.10878342390060425,
0.0637226551771164,
0.20564183592796326,
0.48704245686531067,
0.11587269604206085,
-0.24426022171974182,
0.18122930824756622,
-0.04274917393922806,
0.33631816506385803,
-0.04247372969985008,
0.09072331339120865,
-0.19332469999790192,
-0.09873224794864655,
-0.05185728520154953,
-0.037074994295835495,
-0.2787725627422333,
-0.38233914971351624,
-0.11474865674972534,
-0.061149682849645615,
0.37036481499671936,
-0.14812108874320984,
-0.0532166063785553,
0.015111416578292847,
0.11421291530132294,
0.17712140083312988,
0.13223588466644287,
0.03677026554942131,
-0.4259362518787384,
-0.06623724102973938,
-0.0845860168337822,
-0.06180430203676224,
0.27191534638404846,
0.1413692682981491,
-0.05141502991318703,
-0.4133564829826355,
-0.8184751272201538,
0.08474403619766235,
-0.04843069612979889,
0.06959575414657593,
-0.028559967875480652,
-0.04963892698287964,
-0.46962088346481323,
0.17749513685703278,
-0.011236381717026234,
0.0417146235704422,
-0.216778963804245,
-0.13012202084064484,
-0.3662998676300049,
0.20114824175834656,
0.15515950322151184,
0.03654836490750313,
-0.10277410596609116,
0.05291558429598808,
0.001978866755962372,
0.086396723985672,
0.052391089498996735,
0.027868453413248062,
-0.24232718348503113,
-0.0767747238278389,
-0.04370070621371269,
-0.1285438984632492,
-0.46910929679870605,
-0.27265113592147827,
0.2572517395019531,
-0.1844525784254074,
-0.2743244171142578,
-0.11496211588382721,
-0.1867666244506836,
0.17542240023612976,
0.10729660838842392,
-0.5669481158256531,
0.23611192405223846,
-0.18208424746990204,
0.18826571106910706,
-0.25800955295562744,
-0.06546908617019653,
0.10834013670682907,
-0.13167476654052734,
0.06685295701026917,
-0.026135627180337906,
0.07762005925178528,
-0.3353710174560547,
0.07285858690738678,
0.5143263339996338,
-0.05410510301589966,
0.46423959732055664,
0.2792016267776489,
0.9787627458572388,
0.028344210237264633,
0.03379746526479721,
0.2215491384267807,
-0.24287444353103638,
0.025330569595098495,
-0.2796730697154999,
-0.08838137239217758,
0.2139551192522049,
-0.10284364223480225,
0.18997976183891296,
0.4913729429244995,
0.17697778344154358,
-0.1503150463104248,
0.5999459028244019,
-0.4078013598918915,
0.019405461847782135,
-0.09211471676826477,
0.1283288151025772,
-0.244644433259964,
0.27501142024993896,
0.21088223159313202,
-0.20892155170440674,
-0.5871834754943848,
-0.5047994256019592,
0.0068575553596019745,
0.1920870542526245,
-0.05355914682149887,
0.18379780650138855,
-0.7017826437950134,
-0.047263070940971375,
-0.6418157815933228,
0.24497896432876587,
0.12167873233556747,
0.2035817950963974,
0.3331298828125,
0.11061381548643112,
0.09692909568548203,
0.0028040120378136635,
0.5349248051643372,
-0.08996383100748062,
-0.12341876327991486,
-0.13035692274570465,
-0.08319944143295288,
-0.26672351360321045,
-0.2034883350133896,
0.05026667192578316,
0.20798885822296143,
0.42211538553237915,
0.6396841406822205,
-0.018174558877944946,
-0.2408900260925293,
-0.1324922740459442,
0.5823593735694885,
-0.15146075189113617,
-0.03663302958011627,
-0.3615646958351135,
0.009744379669427872,
-0.31417104601860046,
0.023152261972427368,
-0.2293950617313385,
0.20830132067203522,
-0.03950154036283493,
-0.31198981404304504,
-0.27888110280036926,
-0.22690322995185852,
-0.13326741755008698,
0.09342668950557709,
0.3569117784500122,
0.25071513652801514,
0.050375986844301224,
-0.25936803221702576,
0.2653884291648865,
0.12227877229452133,
-0.09390722215175629,
0.18295016884803772,
0.04472346976399422,
-0.1494617462158203,
0.11095170676708221,
0.2913943827152252,
0.11253102123737335,
-0.02185715362429619,
0.5225075483322144,
-0.270331472158432,
0.13540461659431458,
-0.0401771254837513,
0.4362836182117462,
0.29507943987846375,
0.18748919665813446,
-0.4897306561470032,
-0.2730543911457062,
0.2150358259677887,
0.15905991196632385,
-0.0525604672729969,
0.23522260785102844,
-0.001143030822277069,
-0.1771450936794281,
0.4197635054588318,
0.07528572529554367,
1.0324598550796509,
-0.08168165385723114,
0.3404114544391632,
-0.006301894783973694,
0.04150601476430893,
0.2976207435131073,
-0.5319031476974487,
0.049312375485897064,
-0.2820635735988617,
0.2580897808074951,
0.02620258368551731,
0.024056341499090195,
-0.13062021136283875,
0.2523038685321808,
0.05437232181429863,
0.07160896807909012,
0.041784726083278656,
0.3470291793346405,
-0.3743633031845093,
0.5021023750305176,
0.14549021422863007,
-0.0348217599093914,
-0.007634928449988365,
-0.00885702669620514,
-0.1493135541677475,
-0.17165173590183258,
-0.21959608793258667,
0.1203320324420929,
-0.15084779262542725,
-0.2544945478439331,
-0.011572755873203278,
-0.21797093749046326,
-0.06008310243487358,
0.4255654811859131,
-0.01638488471508026,
-0.2838243842124939,
0.026875320822000504,
0.0657375380396843,
0.07740384340286255,
0.48796936869621277,
-0.00898878462612629,
0.18614791333675385,
-0.049904562532901764,
0.2513028681278229,
0.20684096217155457,
-0.1604180783033371,
0.058146215975284576,
-0.06260676681995392,
-0.2437383532524109,
-0.13746044039726257,
-0.02594863995909691,
-0.2779220640659332,
-0.2813144624233246,
0.18173114955425262,
0.45923757553100586,
-0.30546873807907104,
-0.09200985729694366,
0.10782909393310547,
-0.17233258485794067,
-0.12593849003314972,
0.03883941471576691,
-0.14798837900161743,
0.042110174894332886,
0.20730561017990112,
0.33866968750953674,
-0.43181082606315613,
-0.06121528521180153,
0.3661256432533264,
0.3979153633117676,
0.06290894746780396,
0.7458974123001099,
-0.27872809767723083,
-0.12605586647987366,
-0.054561689496040344,
0.270877867937088,
0.0743899792432785,
0.1198965385556221,
-0.19028182327747345,
-0.09994177520275116,
0.16312117874622345,
0.02085251733660698,
0.06997179985046387,
-0.1912691444158554,
-0.03216975927352905,
-0.25848114490509033,
-0.21951919794082642,
-0.5605750679969788,
0.04624798893928528,
-0.4587101638317108,
0.2077331840991974,
0.2398873269557953,
0.24754095077514648,
-0.2975122332572937,
0.3902416527271271,
-0.12942281365394592,
0.12522919476032257,
0.09799114614725113,
0.14461147785186768,
-0.39161333441734314,
-0.00556572899222374,
-0.11231032013893127,
0.095380499958992,
-0.08358431607484818,
0.16556179523468018,
0.06778669357299805,
-0.12694251537322998,
-0.32808271050453186,
0.19748970866203308,
0.2874694764614105,
-0.178665891289711,
-0.043369945138692856,
0.047779232263565063,
-0.1499832719564438,
-0.30287840962409973,
0.24851742386817932,
-0.060795918107032776,
0.1575932651758194,
0.07634720206260681,
0.33791184425354004,
-0.21882063150405884,
-0.1000688374042511,
-0.0007012821733951569,
0.21621553599834442,
0.0646287128329277,
0.08485739678144455,
0.14305292069911957,
0.2670671045780182,
-0.08985956013202667,
-0.4806737005710602,
0.008267320692539215,
0.2503558397293091,
0.0806298479437828,
0.39123573899269104,
0.15916065871715546,
0.04107825085520744,
0.060367509722709656,
-0.20622335374355316,
0.11703313142061234,
0.05046647787094116,
-0.3848746418952942,
0.3746519386768341,
-0.006026670336723328,
-0.05515563488006592,
-0.04403665289282799,
0.2743839919567108,
-0.2653961777687073,
-0.18598142266273499,
-0.05955881625413895,
0.46612104773521423,
0.29510045051574707,
-0.40410351753234863,
-0.09198631346225739,
0.3661440908908844,
-0.22416456043720245,
-0.06418927013874054,
0.09712275117635727,
-0.009846318513154984,
0.09346692264080048,
0.26803478598594666,
0.05487407371401787,
0.1133166253566742,
0.3695067763328552,
0.39238879084587097,
0.2883472442626953,
0.2603394687175751,
0.077794149518013,
0.1032693013548851,
-0.2553918957710266,
-0.2653571367263794,
0.31033819913864136,
-0.1531149446964264,
0.08998019248247147,
0.052887387573719025,
0.10004229098558426,
0.5368419289588928,
-0.3541673421859741,
0.048019297420978546,
0.41342175006866455,
-0.26407191157341003,
-0.23323173820972443,
-0.06277644634246826,
-0.02340805158019066,
0.06824584305286407,
0.09587518870830536,
-0.07185488939285278,
-0.15400083363056183,
-0.2346419095993042,
-0.03701881319284439,
-0.18332310020923615,
-0.1952454000711441,
0.19805505871772766,
0.2319127321243286,
0.19820284843444824,
-0.23593808710575104,
0.016950698569417,
-0.3175610899925232,
0.1271297037601471,
-0.2200937569141388,
0.20206770300865173,
0.3063045144081116,
0.2241676151752472,
-0.14654147624969482,
-0.0788503959774971,
0.11303450167179108,
0.10727530717849731,
-0.05006256327033043,
0.07205422222614288,
0.23178333044052124,
-0.48807692527770996,
-0.04156458377838135,
-0.11642629653215408,
-0.05177714303135872,
-0.30744412541389465,
0.3058532178401947,
-0.19777853786945343,
0.04813486337661743,
0.12422163039445877,
-0.10568001866340637,
-0.23005899786949158,
-0.1648838371038437,
0.21803069114685059,
-0.43994250893592834,
0.133021742105484,
0.37669166922569275,
0.06171641871333122,
0.3358032703399658,
-0.40369561314582825,
0.01988181099295616,
-0.3701343238353729,
0.3990873396396637,
0.5262006521224976,
-0.12096699327230453,
-0.21545729041099548,
-0.2646385431289673,
-0.11088037490844727,
0.29027336835861206,
-0.35859745740890503,
0.050590433180332184,
-0.18125928938388824,
0.2633673846721649,
-0.19185015559196472,
-0.36117374897003174,
0.025247707962989807,
-0.07904340326786041,
-0.008026845753192902,
0.1392814666032791,
-0.04239771515130997,
-0.034201983362436295,
-0.4120837450027466,
0.10875274240970612,
-0.19114802777767181,
-0.07484651356935501,
0.208302304148674,
0.06542128324508667,
-0.13040494918823242,
-0.11320425570011139,
0.07138107717037201,
0.019046537578105927,
0.03720638528466225,
0.3966078460216522,
0.26084843277931213,
0.3634546101093292,
-0.08939230442047119,
0.24999436736106873,
0.11791633069515228,
-0.012681640684604645,
-0.06520472466945648,
0.25033533573150635,
-0.266396164894104,
0.0027402862906455994,
0.15082359313964844,
-0.027798574417829514,
0.21092821657657623,
0.014535564929246902,
0.1021496057510376,
-0.23042407631874084,
-0.12753072381019592,
0.06396273523569107,
-0.13749253749847412,
-0.03613648563623428,
-0.12387517839670181,
0.5886523127555847,
0.04872804880142212,
0.17675107717514038,
-0.025978341698646545,
-0.21673183143138885,
0.19249841570854187,
-0.5318943858146667,
-0.11945118010044098,
-0.26145869493484497,
-0.002251669764518738,
0.2452489137649536,
-0.2696593403816223,
-0.3578721284866333,
-0.07671187818050385,
0.5602196455001831,
0.07363248616456985,
-0.024722851812839508,
0.18556860089302063,
0.17730315029621124,
0.18055135011672974,
-0.14978088438510895,
0.312838613986969,
-0.27670207619667053,
0.033750616014003754,
0.0683867335319519,
-0.023037772625684738
] |
https://github.com/huggingface/datasets/issues/257 | Tokenizer pickling issue fix not landed in `nlp` yet? | Yes, the new release of tokenizers solves this and should be out soon.
In the meantime, you can install it with `pip install tokenizers==0.8.0-dev2` | Unless I recreate an arrow_dataset from my loaded nlp dataset myself (which I think does not use the cache by default), I get the following error when applying the map function:
```
dataset = nlp.load_dataset('cos_e')
tokenizer = GPT2TokenizerFast.from_pretrained('gpt2', cache_dir=cache_dir)
for split in dataset.keys():
dataset[split].map(lambda x: some_function(x, tokenizer))
```
```
06/09/2020 10:09:19 - INFO - nlp.builder - Constructing Dataset for split train[:10], from /home/sarahw/.cache/huggingface/datasets/cos_e/default/0.0.1
Traceback (most recent call last):
File "generation/input_to_label_and_rationale.py", line 390, in <module>
main()
File "generation/input_to_label_and_rationale.py", line 263, in main
dataset[split] = dataset[split].map(lambda x: input_to_explanation_plus_label(x, tokenizer, max_length, datasource=data_args.task_name, wt5=(model_class=='t5'), expl_only=model_args.rationale_only), batched=False)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 522, in map
cache_file_name = self._get_cache_file_path(function, cache_kwargs)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 381, in _get_cache_file_path
function_bytes = dumps(function)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 257, in dumps
dump(obj, file)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 250, in dump
Pickler(file).dump(obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 445, in dump
StockPickler.dump(self, obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 485, in dump
self.save(obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1410, in save_function
pickler.save_reduce(_create_function, (obj.__code__,
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1147, in save_cell
pickler.save_reduce(_create_cell, (f,), obj=obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 884, in save_tuple
save(element)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save
self.save_reduce(obj=obj, *rv)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce
save(state)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict
self._batch_setitems(obj.items())
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems
save(v)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save
self.save_reduce(obj=obj, *rv)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce
save(state)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict
self._batch_setitems(obj.items())
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems
save(v)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 576, in save
rv = reduce(self.proto)
TypeError: cannot pickle 'Tokenizer' object
```
Fix seems to be in the tokenizers [`0.8.0.dev1 pre-release`](https://github.com/huggingface/tokenizers/issues/87), which I can't install with any package managers. | 24 | Tokenizer pickling issue fix not landed in `nlp` yet?
Unless I recreate an arrow_dataset from my loaded nlp dataset myself (which I think does not use the cache by default), I get the following error when applying the map function:
```
dataset = nlp.load_dataset('cos_e')
tokenizer = GPT2TokenizerFast.from_pretrained('gpt2', cache_dir=cache_dir)
for split in dataset.keys():
dataset[split].map(lambda x: some_function(x, tokenizer))
```
```
06/09/2020 10:09:19 - INFO - nlp.builder - Constructing Dataset for split train[:10], from /home/sarahw/.cache/huggingface/datasets/cos_e/default/0.0.1
Traceback (most recent call last):
File "generation/input_to_label_and_rationale.py", line 390, in <module>
main()
File "generation/input_to_label_and_rationale.py", line 263, in main
dataset[split] = dataset[split].map(lambda x: input_to_explanation_plus_label(x, tokenizer, max_length, datasource=data_args.task_name, wt5=(model_class=='t5'), expl_only=model_args.rationale_only), batched=False)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 522, in map
cache_file_name = self._get_cache_file_path(function, cache_kwargs)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 381, in _get_cache_file_path
function_bytes = dumps(function)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 257, in dumps
dump(obj, file)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 250, in dump
Pickler(file).dump(obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 445, in dump
StockPickler.dump(self, obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 485, in dump
self.save(obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1410, in save_function
pickler.save_reduce(_create_function, (obj.__code__,
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1147, in save_cell
pickler.save_reduce(_create_cell, (f,), obj=obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 884, in save_tuple
save(element)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save
self.save_reduce(obj=obj, *rv)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce
save(state)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict
self._batch_setitems(obj.items())
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems
save(v)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save
self.save_reduce(obj=obj, *rv)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce
save(state)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict
self._batch_setitems(obj.items())
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems
save(v)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 576, in save
rv = reduce(self.proto)
TypeError: cannot pickle 'Tokenizer' object
```
Fix seems to be in the tokenizers [`0.8.0.dev1 pre-release`](https://github.com/huggingface/tokenizers/issues/87), which I can't install with any package managers.
Yes, the new release of tokenizers solves this and should be out soon.
In the meantime, you can install it with `pip install tokenizers==0.8.0-dev2` | [
0.009912796318531036,
0.17618775367736816,
0.07976363599300385,
0.03321864455938339,
-0.018763728439807892,
-0.09835174679756165,
-0.04397693648934364,
0.3858545422554016,
0.2328614592552185,
-0.178395614027977,
0.1533452570438385,
0.7815691828727722,
-0.18905861675739288,
-0.27199694514274597,
0.05663420632481575,
-0.15590572357177734,
0.006841614842414856,
0.1128310114145279,
0.3384639620780945,
0.01790773868560791,
-0.22156691551208496,
0.3663434684276581,
-0.20355461537837982,
0.2977553606033325,
-0.49662840366363525,
-0.21667541563510895,
0.20677602291107178,
-0.04722100496292114,
-0.12316945940256119,
-0.5728652477264404,
0.18703901767730713,
-0.07400466501712799,
-0.13193878531455994,
0.0616181381046772,
-0.0001174416538560763,
-0.14955827593803406,
0.3925044536590576,
0.02706446684896946,
-0.14823655784130096,
-0.23680870234966278,
0.17055699229240417,
-0.09398557245731354,
0.13261280953884125,
-0.023269884288311005,
-0.02954133227467537,
-0.07699079811573029,
0.10836690664291382,
-0.10980619490146637,
0.32495635747909546,
-0.034422703087329865,
0.19127671420574188,
0.3061875104904175,
0.13825663924217224,
0.01081885490566492,
0.09691627323627472,
-0.15521781146526337,
-0.16840970516204834,
-0.0005971752107143402,
0.09011930227279663,
-0.26532164216041565,
-0.29278311133384705,
0.47386813163757324,
0.00865759514272213,
-0.05826206132769585,
0.06942377984523773,
0.02132565528154373,
-0.17859315872192383,
-0.07572003453969955,
0.09370659291744232,
-0.027106963098049164,
0.09554583579301834,
-0.18595167994499207,
-0.04457567632198334,
-0.44171857833862305,
-0.1290055811405182,
-0.45500636100769043,
0.18273887038230896,
-0.14791934192180634,
-0.23841550946235657,
-0.04409470781683922,
-0.009040387347340584,
-0.38845759630203247,
0.13887111842632294,
0.30534693598747253,
0.1289280652999878,
0.6000412702560425,
-0.05727926641702652,
0.2780373990535736,
0.281980961561203,
-0.08804043382406235,
-0.23828262090682983,
0.15677061676979065,
-0.18787793815135956,
0.4356527626514435,
-0.34436434507369995,
-0.11781007051467896,
0.22057050466537476,
0.05353766679763794,
-0.06403100490570068,
0.39757925271987915,
-0.0016291392967104912,
0.24292346835136414,
-0.12060734629631042,
0.1644042730331421,
0.04771773889660835,
0.4591066837310791,
0.3047446310520172,
0.5499494075775146,
0.010525919497013092,
-0.3980911374092102,
-0.03758450970053673,
-0.05038408935070038,
-0.07536990940570831,
-0.26227712631225586,
0.031822968274354935,
0.05095262452960014,
-0.1171814352273941,
-0.10476821660995483,
-0.13309256732463837,
0.06088967248797417,
-0.2686988413333893,
0.06473727524280548,
0.22085963189601898,
0.19584855437278748,
0.1352950781583786,
0.15045201778411865,
-0.13207709789276123,
0.17244134843349457,
-0.18776370584964752,
-0.16612015664577484,
-0.2481425553560257,
0.07978526502847672,
-0.31500816345214844,
0.18196243047714233,
0.0973062515258789,
0.2771182656288147,
0.48032253980636597,
-0.16881386935710907,
-0.058752015233039856,
0.06284766644239426,
0.12489305436611176,
-0.009232206270098686,
0.2322518527507782,
0.07257441431283951,
-0.1473618745803833,
0.3290614187717438,
0.3126963973045349,
-0.14133320748806,
-0.2816561460494995,
-0.05163028836250305,
-0.2734318673610687,
-0.36264941096305847,
-0.11526121199131012,
0.1254754215478897,
-0.06226525828242302,
-0.13849495351314545,
-0.2719874978065491,
0.24202901124954224,
0.45948326587677,
-0.18899059295654297,
0.11018354445695877,
-0.1990116536617279,
-0.32648715376853943,
-0.2962646484375,
0.03071231208741665,
0.28808918595314026,
0.04842768982052803,
-0.37903082370758057,
-0.1973210573196411,
0.15270301699638367,
0.4366890490055084,
0.5128076076507568,
-0.3213972747325897,
0.15187275409698486,
-0.2618006765842438,
0.8142935633659363,
0.5736557245254517,
-0.250824898481369,
-0.45756950974464417,
0.03586442023515701,
-0.1898694932460785,
0.08280801773071289,
-0.24724328517913818,
-0.0829211100935936,
-0.011942902579903603,
-0.142946258187294,
0.17918731272220612,
0.24894005060195923,
-0.00813973881304264,
0.007634418085217476,
-0.38457486033439636,
-0.04298592358827591,
0.3610699772834778,
-0.040211062878370285,
0.1359010487794876,
-0.11010309308767319,
-0.22312062978744507,
0.013850986026227474,
0.0019648894667625427,
-0.015099268406629562,
0.34473517537117004,
-0.07404821366071701,
0.11379557847976685,
-0.1738641858100891,
0.07570698857307434,
0.04111660271883011,
-0.3737541437149048,
0.15236961841583252,
-0.29308804869651794,
0.15114036202430725,
-0.20104233920574188,
0.021357368677854538,
-0.1287764012813568,
0.04449731856584549,
-0.33988896012306213,
-0.23302754759788513,
0.12846770882606506,
0.004651322960853577,
0.19840766489505768,
0.03442871943116188,
-0.014597970992326736,
-0.06104521453380585,
0.06276178359985352,
0.15491056442260742,
-0.1303327977657318,
-0.05654388666152954,
-0.04677595943212509,
-0.27523544430732727,
-0.2991565763950348,
0.16003236174583435,
0.23997339606285095,
-0.025426119565963745,
-0.2603600323200226,
0.2941334843635559,
0.007031281478703022,
0.0486651286482811,
-0.120775006711483,
-0.060571566224098206,
0.09702900052070618,
-0.1387099027633667,
-0.11031536012887955,
0.12425363063812256,
-0.019869282841682434,
-0.2519940137863159,
0.3183262348175049,
0.3542822003364563,
0.18840894103050232,
0.06003783270716667,
-0.2868298292160034,
0.29860013723373413,
0.06109827756881714,
-0.017383448779582977,
0.13141313195228577,
-0.27149635553359985,
0.06667300313711166,
-0.12505903840065002,
0.2938557267189026,
-0.12012110650539398,
-0.021708082407712936,
0.35528627038002014,
0.32174697518348694,
0.31911540031433105,
0.06016059219837189,
0.11061722785234451,
-0.20485004782676697,
-0.2746076285839081,
0.09482390433549881,
0.12427496910095215,
0.1567906141281128,
0.18599869310855865,
0.04236859828233719,
-0.05870448797941208,
-0.10603681951761246,
-0.08836475759744644,
0.13407067954540253,
0.012188397347927094,
0.06867904961109161,
0.1596342921257019,
0.06015900894999504,
0.11714313924312592,
-0.36265939474105835,
0.009321298450231552,
0.109261654317379,
0.3128890097141266,
-0.11231604218482971,
-0.06857435405254364,
-0.3171989619731903,
-0.09657779335975647,
0.18618519604206085,
-0.3486104905605316,
-0.24346685409545898,
-0.4538674056529999,
0.13185998797416687,
0.13968250155448914,
-0.12046372890472412,
0.4497210681438446,
-0.1803724765777588,
0.24645981192588806,
0.0291102547198534,
-0.09016620367765427,
-0.31709620356559753,
-0.5001767873764038,
-0.3929170072078705,
-0.0020683128386735916,
0.1086926981806755,
-0.06565175950527191,
0.19884313642978668,
0.17002208530902863,
0.0388035923242569,
-0.07996829599142075,
-0.3938220143318176,
0.22453618049621582,
-0.12875838577747345,
0.04866987466812134,
0.2407987266778946,
-0.20670102536678314,
-0.44355344772338867,
-0.31159624457359314,
0.17952516674995422,
-0.347777396440506,
-0.36555710434913635,
-0.12697577476501465,
0.044310227036476135,
-0.11614877730607986,
-0.1567024439573288,
-0.04878775030374527,
-0.1834053248167038,
-0.28318989276885986,
0.27697283029556274,
0.02469167485833168,
0.18116438388824463,
0.42587554454803467,
-0.34760645031929016,
0.05340389907360077,
-0.3079635798931122,
-0.12469984591007233,
-0.5135577321052551,
0.09018106758594513,
0.3106078505516052,
-0.3200935125350952,
-0.1387338638305664,
-0.17292656004428864,
-0.15813881158828735,
0.34024620056152344,
0.041068390011787415,
-0.19394519925117493,
0.11227355152368546,
-0.0858660638332367,
0.16101649403572083,
-0.10779812932014465,
-0.06236940622329712,
0.4786887466907501,
0.09708600491285324,
-0.0032040756195783615,
-0.18296048045158386,
-0.16469167172908783,
0.41148000955581665,
-0.0680684968829155,
0.3304803669452667,
0.08736643195152283,
0.10527314245700836,
0.29310745000839233,
0.8183513283729553,
0.20562030375003815,
-0.10437159240245819,
0.488139271736145,
0.23366083204746246,
0.002452205866575241,
-0.20409053564071655,
-0.24899376928806305,
0.10887027531862259,
-0.021734967827796936,
0.3350532650947571,
0.0500924289226532,
0.008599960245192051,
-0.41724929213523865,
0.12043778598308563,
0.1518307775259018,
-0.1542116403579712,
-0.28654587268829346,
0.1852341592311859,
-0.38361188769340515,
0.13475586473941803,
0.177704855799675,
0.044259943068027496,
-0.53062504529953,
-0.13457834720611572,
0.11720024049282074,
-0.256866455078125,
0.39326199889183044,
0.08267392963171005,
-0.5393275618553162,
0.05163150280714035,
-0.7337314486503601,
0.28643447160720825,
0.24137409031391144,
0.39541125297546387,
-0.19885288178920746,
-0.17362138628959656,
0.04185360297560692,
0.0748715028166771,
0.3452196717262268,
-0.1550503969192505,
-0.05528061091899872,
0.1675938367843628,
0.06943445652723312,
-0.13529318571090698,
0.1023077666759491,
0.2772549092769623,
0.516883909702301,
0.45414766669273376,
0.39206740260124207,
-0.3881204128265381,
-0.25622040033340454,
-0.16759426891803741,
-0.1744464933872223,
-0.01865670084953308,
0.03659116476774216,
0.029323559254407883,
0.11371389776468277,
-0.1721293181180954,
0.15072382986545563,
0.2761492133140564,
0.33883044123649597,
0.39486637711524963,
0.17621634900569916,
-0.11653167009353638,
-0.1274835616350174,
-0.18791897594928741,
0.13666997849941254,
0.3615834712982178,
0.032666344195604324,
0.0474170558154583,
0.2189306765794754,
0.11869284510612488,
-0.2655065953731537,
0.1644706428050995,
0.25094202160835266,
-0.11180393397808075,
0.16112026572227478,
0.28357061743736267,
0.1217283234000206,
0.2762950658798218,
0.03527199849486351,
0.4669424891471863,
-0.43964719772338867,
0.20554734766483307,
0.11181243509054184,
0.4023245573043823,
0.06568913906812668,
-0.05350816622376442,
-0.20247434079647064,
-0.08513184636831284,
0.3267727792263031,
0.12510468065738678,
-0.21785549819469452,
0.5619810819625854,
-0.03053984045982361,
-0.34341827034950256,
0.4547916054725647,
0.10107206553220749,
0.8719291090965271,
0.27255702018737793,
0.20116087794303894,
0.23683395981788635,
0.056370124220848083,
0.6379815340042114,
0.03707391768693924,
0.14599935710430145,
-0.3191588222980499,
0.3665095567703247,
0.03573969751596451,
-0.037959806621074677,
-0.12783506512641907,
0.09608045220375061,
-0.049911241978406906,
0.20488806068897247,
0.23945553600788116,
0.20106467604637146,
0.24829459190368652,
0.11101613938808441,
-0.0012670718133449554,
-0.35419055819511414,
0.18311256170272827,
0.08416635543107986,
-0.3797287940979004,
0.36355555057525635,
0.0432656928896904,
-0.14761482179164886,
-0.028321001678705215,
-0.3495352268218994,
-0.2687564790248871,
0.11712542921304703,
-0.4619835913181305,
0.390971302986145,
0.4313517212867737,
-0.2079496681690216,
0.17296060919761658,
-0.14052075147628784,
0.1785716563463211,
-0.06800054013729095,
-0.12569989264011383,
0.3717615604400635,
0.28187403082847595,
-0.057829584926366806,
0.03172091767191887,
-0.13060539960861206,
0.2797631025314331,
0.03044193983078003,
0.0019764304161071777,
-0.10162170976400375,
-0.14831072092056274,
-0.47475260496139526,
-0.4060356914997101,
0.02603624388575554,
0.17964869737625122,
0.11155833303928375,
-0.2101287692785263,
0.13397106528282166,
-0.018868012353777885,
-0.24504879117012024,
0.0894215852022171,
0.1031867116689682,
-0.17431680858135223,
-0.03131371736526489,
0.1077834963798523,
-0.1305723786354065,
0.08922018110752106,
0.2922828197479248,
-0.20332026481628418,
-0.1827048361301422,
0.5570825338363647,
-0.19182367622852325,
-0.18153558671474457,
-0.15928983688354492,
-0.1746974140405655,
0.23148269951343536,
-0.4645780622959137,
0.10097428411245346,
-0.08941315859556198,
-0.12167605012655258,
0.04108308255672455,
0.33082348108291626,
0.18773001432418823,
0.17358824610710144,
0.07088273763656616,
-0.2569061517715454,
-0.2817653715610504,
0.1632196456193924,
-0.5082816481590271,
0.06361696124076843,
0.00040655210614204407,
0.35840627551078796,
-0.28872188925743103,
0.39049413800239563,
-0.2625269889831543,
0.09431279450654984,
-0.09145453572273254,
0.0905124768614769,
-0.056493520736694336,
-0.3398320972919464,
-0.060087114572525024,
0.008367540314793587,
-0.006850874051451683,
0.4153743386268616,
-0.2501583993434906,
-0.16479918360710144,
-0.2339625507593155,
0.12270459532737732,
0.33535224199295044,
-0.3256458044052124,
-0.04769665375351906,
0.2404375523328781,
0.07123236358165741,
-0.14163552224636078,
-0.05117851495742798,
-0.03441323712468147,
-0.09871204197406769,
0.1077832579612732,
0.09028027206659317,
0.04849925637245178,
0.2448071390390396,
0.17203596234321594,
0.000004343688488006592,
0.011608637869358063,
0.10337365418672562,
0.30035272240638733,
-0.056696150451898575,
0.049982741475105286,
0.009672518819570541,
0.05495559796690941,
-0.05470284819602966,
-0.10611497610807419,
0.10379911959171295,
-0.42907822132110596,
-0.2767672836780548,
-0.15232253074645996,
0.05145363509654999,
0.08422212302684784,
-0.009016720578074455,
-0.4086211025714874,
0.5563295483589172,
0.17775724828243256,
-0.16446241736412048,
-0.07306412607431412,
0.4187648296356201,
0.23043154180049896,
0.058247413486242294,
0.06152089312672615,
0.2833522856235504,
-0.09697206318378448,
0.0829339399933815,
0.021381419152021408,
0.49933284521102905,
-0.4074430465698242,
0.19615307450294495,
-0.007524307817220688,
-0.05386389419436455,
0.0389791801571846,
0.5023396611213684,
0.10222145915031433,
0.22017624974250793,
0.03153623640537262,
-0.06836206465959549,
0.3054456412792206,
0.09963280707597733,
0.23935800790786743,
-0.10120434314012527,
-0.39595529437065125,
-0.33709046244621277,
0.3917883634567261,
-0.04883527755737305,
0.2234889268875122,
0.022383779287338257,
0.5310402512550354,
-0.0221085287630558,
-0.42057472467422485,
0.1457374095916748,
0.5340748429298401,
-0.34414252638816833,
-0.34283414483070374,
-0.4735886752605438,
0.007298260927200317,
-0.35032519698143005,
0.02351890504360199,
-0.0265381820499897,
-0.04130346328020096,
0.007150247693061829,
-0.07907335460186005,
-0.15817832946777344,
-0.3293395936489105,
-0.23597168922424316,
0.057453703135252,
0.29125866293907166,
-0.24715043604373932,
0.4018813669681549,
-0.4688899517059326,
-0.2170814871788025,
-0.26544633507728577,
0.19908158481121063,
0.2948334515094757,
0.24473664164543152,
-0.4160873591899872,
-0.22379708290100098,
0.011963583528995514,
0.12716060876846313,
-0.12253861129283905,
0.3143150508403778,
0.24124839901924133,
-0.3868139386177063,
0.14211101830005646,
-0.04010917246341705,
-0.11037394404411316,
0.03106086514890194,
0.13896997272968292,
0.2229575365781784,
0.32794275879859924,
0.16592004895210266,
-0.1513466238975525,
-0.07004298269748688,
-0.05142946541309357,
0.07747476547956467,
-0.2236926257610321,
0.13349127769470215,
0.022825052961707115,
0.04229896515607834,
0.17939287424087524,
-0.3248319625854492,
0.08634983003139496,
0.10883857309818268,
0.41869109869003296,
0.3605182468891144,
-0.26783105731010437,
-0.4015858471393585,
-0.4270046353340149,
-0.39726558327674866,
0.19654032588005066,
-0.05414578691124916,
-0.04737234115600586,
-0.040591321885585785,
0.05861809849739075,
0.04444161802530289,
-0.01999950036406517,
-0.19495637714862823,
0.4008179008960724,
0.1366794854402542,
0.1745636761188507,
-0.3776070773601532,
0.4529934525489807,
0.09525050967931747,
-0.07812104374170303,
0.2346617579460144,
-0.30719369649887085,
0.014846034348011017,
0.10009343922138214,
0.05666590481996536,
-0.1513722687959671,
-0.1251378357410431,
-0.0407404750585556,
0.20701275765895844,
0.27747049927711487,
0.33225420117378235,
0.20221930742263794,
0.0640883669257164,
0.1838991492986679,
-0.3896710276603699,
-0.3934142291545868,
-0.2413274198770523,
-0.10816463083028793,
-0.1865239441394806,
0.43140292167663574,
-0.029626993462443352,
0.233259916305542,
-0.41990262269973755,
0.0125963119789958,
-0.029273949563503265,
0.07565592229366302,
-0.17471416294574738,
0.3251667022705078,
-0.2844867706298828,
0.263187438249588,
-0.051776785403490067,
0.36425650119781494,
-0.015289954841136932,
0.43931999802589417,
-0.41979390382766724,
-0.4348350465297699,
0.5731077790260315,
-0.7418988347053528,
-0.2233947217464447,
0.23296436667442322,
0.007688306272029877,
0.505479097366333,
-0.36830177903175354,
-0.19334444403648376,
-0.25314417481422424,
0.21366916596889496,
-0.04100769758224487,
-0.2464897334575653,
0.050612419843673706,
-0.045193977653980255,
-0.09691618382930756,
-0.04278644546866417,
0.6299057006835938,
0.12385895848274231,
-0.13195033371448517,
0.14684246480464935,
-0.17185820639133453
] |
https://github.com/huggingface/datasets/issues/257 | Tokenizer pickling issue fix not landed in `nlp` yet? | If others run into this issue, a quick fix is to use python 3.6 instead of 3.7+. Serialization differences between the 3rd party `dataclasses` package for 3.6 and the built in `dataclasses` in 3.7+ cause the issue.
Probably a dumb fix, but it works for me. | Unless I recreate an arrow_dataset from my loaded nlp dataset myself (which I think does not use the cache by default), I get the following error when applying the map function:
```
dataset = nlp.load_dataset('cos_e')
tokenizer = GPT2TokenizerFast.from_pretrained('gpt2', cache_dir=cache_dir)
for split in dataset.keys():
dataset[split].map(lambda x: some_function(x, tokenizer))
```
```
06/09/2020 10:09:19 - INFO - nlp.builder - Constructing Dataset for split train[:10], from /home/sarahw/.cache/huggingface/datasets/cos_e/default/0.0.1
Traceback (most recent call last):
File "generation/input_to_label_and_rationale.py", line 390, in <module>
main()
File "generation/input_to_label_and_rationale.py", line 263, in main
dataset[split] = dataset[split].map(lambda x: input_to_explanation_plus_label(x, tokenizer, max_length, datasource=data_args.task_name, wt5=(model_class=='t5'), expl_only=model_args.rationale_only), batched=False)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 522, in map
cache_file_name = self._get_cache_file_path(function, cache_kwargs)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 381, in _get_cache_file_path
function_bytes = dumps(function)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 257, in dumps
dump(obj, file)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 250, in dump
Pickler(file).dump(obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 445, in dump
StockPickler.dump(self, obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 485, in dump
self.save(obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1410, in save_function
pickler.save_reduce(_create_function, (obj.__code__,
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1147, in save_cell
pickler.save_reduce(_create_cell, (f,), obj=obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 884, in save_tuple
save(element)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save
self.save_reduce(obj=obj, *rv)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce
save(state)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict
self._batch_setitems(obj.items())
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems
save(v)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save
self.save_reduce(obj=obj, *rv)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce
save(state)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict
self._batch_setitems(obj.items())
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems
save(v)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 576, in save
rv = reduce(self.proto)
TypeError: cannot pickle 'Tokenizer' object
```
Fix seems to be in the tokenizers [`0.8.0.dev1 pre-release`](https://github.com/huggingface/tokenizers/issues/87), which I can't install with any package managers. | 46 | Tokenizer pickling issue fix not landed in `nlp` yet?
Unless I recreate an arrow_dataset from my loaded nlp dataset myself (which I think does not use the cache by default), I get the following error when applying the map function:
```
dataset = nlp.load_dataset('cos_e')
tokenizer = GPT2TokenizerFast.from_pretrained('gpt2', cache_dir=cache_dir)
for split in dataset.keys():
dataset[split].map(lambda x: some_function(x, tokenizer))
```
```
06/09/2020 10:09:19 - INFO - nlp.builder - Constructing Dataset for split train[:10], from /home/sarahw/.cache/huggingface/datasets/cos_e/default/0.0.1
Traceback (most recent call last):
File "generation/input_to_label_and_rationale.py", line 390, in <module>
main()
File "generation/input_to_label_and_rationale.py", line 263, in main
dataset[split] = dataset[split].map(lambda x: input_to_explanation_plus_label(x, tokenizer, max_length, datasource=data_args.task_name, wt5=(model_class=='t5'), expl_only=model_args.rationale_only), batched=False)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 522, in map
cache_file_name = self._get_cache_file_path(function, cache_kwargs)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/arrow_dataset.py", line 381, in _get_cache_file_path
function_bytes = dumps(function)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 257, in dumps
dump(obj, file)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/nlp/utils/py_utils.py", line 250, in dump
Pickler(file).dump(obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 445, in dump
StockPickler.dump(self, obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 485, in dump
self.save(obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1410, in save_function
pickler.save_reduce(_create_function, (obj.__code__,
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 899, in save_tuple
save(element)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 1147, in save_cell
pickler.save_reduce(_create_cell, (f,), obj=obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 690, in save_reduce
save(args)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 884, in save_tuple
save(element)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save
self.save_reduce(obj=obj, *rv)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce
save(state)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict
self._batch_setitems(obj.items())
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems
save(v)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 601, in save
self.save_reduce(obj=obj, *rv)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 715, in save_reduce
save(state)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 558, in save
f(self, obj) # Call unbound method with explicit self
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/site-packages/dill/_dill.py", line 912, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 969, in save_dict
self._batch_setitems(obj.items())
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 995, in _batch_setitems
save(v)
File "/home/sarahw/miniconda3/envs/project_huggingface/lib/python3.8/pickle.py", line 576, in save
rv = reduce(self.proto)
TypeError: cannot pickle 'Tokenizer' object
```
Fix seems to be in the tokenizers [`0.8.0.dev1 pre-release`](https://github.com/huggingface/tokenizers/issues/87), which I can't install with any package managers.
If others run into this issue, a quick fix is to use python 3.6 instead of 3.7+. Serialization differences between the 3rd party `dataclasses` package for 3.6 and the built in `dataclasses` in 3.7+ cause the issue.
Probably a dumb fix, but it works for me. | [
0.009912796318531036,
0.17618775367736816,
0.07976363599300385,
0.03321864455938339,
-0.018763728439807892,
-0.09835174679756165,
-0.04397693648934364,
0.3858545422554016,
0.2328614592552185,
-0.178395614027977,
0.1533452570438385,
0.7815691828727722,
-0.18905861675739288,
-0.27199694514274597,
0.05663420632481575,
-0.15590572357177734,
0.006841614842414856,
0.1128310114145279,
0.3384639620780945,
0.01790773868560791,
-0.22156691551208496,
0.3663434684276581,
-0.20355461537837982,
0.2977553606033325,
-0.49662840366363525,
-0.21667541563510895,
0.20677602291107178,
-0.04722100496292114,
-0.12316945940256119,
-0.5728652477264404,
0.18703901767730713,
-0.07400466501712799,
-0.13193878531455994,
0.0616181381046772,
-0.0001174416538560763,
-0.14955827593803406,
0.3925044536590576,
0.02706446684896946,
-0.14823655784130096,
-0.23680870234966278,
0.17055699229240417,
-0.09398557245731354,
0.13261280953884125,
-0.023269884288311005,
-0.02954133227467537,
-0.07699079811573029,
0.10836690664291382,
-0.10980619490146637,
0.32495635747909546,
-0.034422703087329865,
0.19127671420574188,
0.3061875104904175,
0.13825663924217224,
0.01081885490566492,
0.09691627323627472,
-0.15521781146526337,
-0.16840970516204834,
-0.0005971752107143402,
0.09011930227279663,
-0.26532164216041565,
-0.29278311133384705,
0.47386813163757324,
0.00865759514272213,
-0.05826206132769585,
0.06942377984523773,
0.02132565528154373,
-0.17859315872192383,
-0.07572003453969955,
0.09370659291744232,
-0.027106963098049164,
0.09554583579301834,
-0.18595167994499207,
-0.04457567632198334,
-0.44171857833862305,
-0.1290055811405182,
-0.45500636100769043,
0.18273887038230896,
-0.14791934192180634,
-0.23841550946235657,
-0.04409470781683922,
-0.009040387347340584,
-0.38845759630203247,
0.13887111842632294,
0.30534693598747253,
0.1289280652999878,
0.6000412702560425,
-0.05727926641702652,
0.2780373990535736,
0.281980961561203,
-0.08804043382406235,
-0.23828262090682983,
0.15677061676979065,
-0.18787793815135956,
0.4356527626514435,
-0.34436434507369995,
-0.11781007051467896,
0.22057050466537476,
0.05353766679763794,
-0.06403100490570068,
0.39757925271987915,
-0.0016291392967104912,
0.24292346835136414,
-0.12060734629631042,
0.1644042730331421,
0.04771773889660835,
0.4591066837310791,
0.3047446310520172,
0.5499494075775146,
0.010525919497013092,
-0.3980911374092102,
-0.03758450970053673,
-0.05038408935070038,
-0.07536990940570831,
-0.26227712631225586,
0.031822968274354935,
0.05095262452960014,
-0.1171814352273941,
-0.10476821660995483,
-0.13309256732463837,
0.06088967248797417,
-0.2686988413333893,
0.06473727524280548,
0.22085963189601898,
0.19584855437278748,
0.1352950781583786,
0.15045201778411865,
-0.13207709789276123,
0.17244134843349457,
-0.18776370584964752,
-0.16612015664577484,
-0.2481425553560257,
0.07978526502847672,
-0.31500816345214844,
0.18196243047714233,
0.0973062515258789,
0.2771182656288147,
0.48032253980636597,
-0.16881386935710907,
-0.058752015233039856,
0.06284766644239426,
0.12489305436611176,
-0.009232206270098686,
0.2322518527507782,
0.07257441431283951,
-0.1473618745803833,
0.3290614187717438,
0.3126963973045349,
-0.14133320748806,
-0.2816561460494995,
-0.05163028836250305,
-0.2734318673610687,
-0.36264941096305847,
-0.11526121199131012,
0.1254754215478897,
-0.06226525828242302,
-0.13849495351314545,
-0.2719874978065491,
0.24202901124954224,
0.45948326587677,
-0.18899059295654297,
0.11018354445695877,
-0.1990116536617279,
-0.32648715376853943,
-0.2962646484375,
0.03071231208741665,
0.28808918595314026,
0.04842768982052803,
-0.37903082370758057,
-0.1973210573196411,
0.15270301699638367,
0.4366890490055084,
0.5128076076507568,
-0.3213972747325897,
0.15187275409698486,
-0.2618006765842438,
0.8142935633659363,
0.5736557245254517,
-0.250824898481369,
-0.45756950974464417,
0.03586442023515701,
-0.1898694932460785,
0.08280801773071289,
-0.24724328517913818,
-0.0829211100935936,
-0.011942902579903603,
-0.142946258187294,
0.17918731272220612,
0.24894005060195923,
-0.00813973881304264,
0.007634418085217476,
-0.38457486033439636,
-0.04298592358827591,
0.3610699772834778,
-0.040211062878370285,
0.1359010487794876,
-0.11010309308767319,
-0.22312062978744507,
0.013850986026227474,
0.0019648894667625427,
-0.015099268406629562,
0.34473517537117004,
-0.07404821366071701,
0.11379557847976685,
-0.1738641858100891,
0.07570698857307434,
0.04111660271883011,
-0.3737541437149048,
0.15236961841583252,
-0.29308804869651794,
0.15114036202430725,
-0.20104233920574188,
0.021357368677854538,
-0.1287764012813568,
0.04449731856584549,
-0.33988896012306213,
-0.23302754759788513,
0.12846770882606506,
0.004651322960853577,
0.19840766489505768,
0.03442871943116188,
-0.014597970992326736,
-0.06104521453380585,
0.06276178359985352,
0.15491056442260742,
-0.1303327977657318,
-0.05654388666152954,
-0.04677595943212509,
-0.27523544430732727,
-0.2991565763950348,
0.16003236174583435,
0.23997339606285095,
-0.025426119565963745,
-0.2603600323200226,
0.2941334843635559,
0.007031281478703022,
0.0486651286482811,
-0.120775006711483,
-0.060571566224098206,
0.09702900052070618,
-0.1387099027633667,
-0.11031536012887955,
0.12425363063812256,
-0.019869282841682434,
-0.2519940137863159,
0.3183262348175049,
0.3542822003364563,
0.18840894103050232,
0.06003783270716667,
-0.2868298292160034,
0.29860013723373413,
0.06109827756881714,
-0.017383448779582977,
0.13141313195228577,
-0.27149635553359985,
0.06667300313711166,
-0.12505903840065002,
0.2938557267189026,
-0.12012110650539398,
-0.021708082407712936,
0.35528627038002014,
0.32174697518348694,
0.31911540031433105,
0.06016059219837189,
0.11061722785234451,
-0.20485004782676697,
-0.2746076285839081,
0.09482390433549881,
0.12427496910095215,
0.1567906141281128,
0.18599869310855865,
0.04236859828233719,
-0.05870448797941208,
-0.10603681951761246,
-0.08836475759744644,
0.13407067954540253,
0.012188397347927094,
0.06867904961109161,
0.1596342921257019,
0.06015900894999504,
0.11714313924312592,
-0.36265939474105835,
0.009321298450231552,
0.109261654317379,
0.3128890097141266,
-0.11231604218482971,
-0.06857435405254364,
-0.3171989619731903,
-0.09657779335975647,
0.18618519604206085,
-0.3486104905605316,
-0.24346685409545898,
-0.4538674056529999,
0.13185998797416687,
0.13968250155448914,
-0.12046372890472412,
0.4497210681438446,
-0.1803724765777588,
0.24645981192588806,
0.0291102547198534,
-0.09016620367765427,
-0.31709620356559753,
-0.5001767873764038,
-0.3929170072078705,
-0.0020683128386735916,
0.1086926981806755,
-0.06565175950527191,
0.19884313642978668,
0.17002208530902863,
0.0388035923242569,
-0.07996829599142075,
-0.3938220143318176,
0.22453618049621582,
-0.12875838577747345,
0.04866987466812134,
0.2407987266778946,
-0.20670102536678314,
-0.44355344772338867,
-0.31159624457359314,
0.17952516674995422,
-0.347777396440506,
-0.36555710434913635,
-0.12697577476501465,
0.044310227036476135,
-0.11614877730607986,
-0.1567024439573288,
-0.04878775030374527,
-0.1834053248167038,
-0.28318989276885986,
0.27697283029556274,
0.02469167485833168,
0.18116438388824463,
0.42587554454803467,
-0.34760645031929016,
0.05340389907360077,
-0.3079635798931122,
-0.12469984591007233,
-0.5135577321052551,
0.09018106758594513,
0.3106078505516052,
-0.3200935125350952,
-0.1387338638305664,
-0.17292656004428864,
-0.15813881158828735,
0.34024620056152344,
0.041068390011787415,
-0.19394519925117493,
0.11227355152368546,
-0.0858660638332367,
0.16101649403572083,
-0.10779812932014465,
-0.06236940622329712,
0.4786887466907501,
0.09708600491285324,
-0.0032040756195783615,
-0.18296048045158386,
-0.16469167172908783,
0.41148000955581665,
-0.0680684968829155,
0.3304803669452667,
0.08736643195152283,
0.10527314245700836,
0.29310745000839233,
0.8183513283729553,
0.20562030375003815,
-0.10437159240245819,
0.488139271736145,
0.23366083204746246,
0.002452205866575241,
-0.20409053564071655,
-0.24899376928806305,
0.10887027531862259,
-0.021734967827796936,
0.3350532650947571,
0.0500924289226532,
0.008599960245192051,
-0.41724929213523865,
0.12043778598308563,
0.1518307775259018,
-0.1542116403579712,
-0.28654587268829346,
0.1852341592311859,
-0.38361188769340515,
0.13475586473941803,
0.177704855799675,
0.044259943068027496,
-0.53062504529953,
-0.13457834720611572,
0.11720024049282074,
-0.256866455078125,
0.39326199889183044,
0.08267392963171005,
-0.5393275618553162,
0.05163150280714035,
-0.7337314486503601,
0.28643447160720825,
0.24137409031391144,
0.39541125297546387,
-0.19885288178920746,
-0.17362138628959656,
0.04185360297560692,
0.0748715028166771,
0.3452196717262268,
-0.1550503969192505,
-0.05528061091899872,
0.1675938367843628,
0.06943445652723312,
-0.13529318571090698,
0.1023077666759491,
0.2772549092769623,
0.516883909702301,
0.45414766669273376,
0.39206740260124207,
-0.3881204128265381,
-0.25622040033340454,
-0.16759426891803741,
-0.1744464933872223,
-0.01865670084953308,
0.03659116476774216,
0.029323559254407883,
0.11371389776468277,
-0.1721293181180954,
0.15072382986545563,
0.2761492133140564,
0.33883044123649597,
0.39486637711524963,
0.17621634900569916,
-0.11653167009353638,
-0.1274835616350174,
-0.18791897594928741,
0.13666997849941254,
0.3615834712982178,
0.032666344195604324,
0.0474170558154583,
0.2189306765794754,
0.11869284510612488,
-0.2655065953731537,
0.1644706428050995,
0.25094202160835266,
-0.11180393397808075,
0.16112026572227478,
0.28357061743736267,
0.1217283234000206,
0.2762950658798218,
0.03527199849486351,
0.4669424891471863,
-0.43964719772338867,
0.20554734766483307,
0.11181243509054184,
0.4023245573043823,
0.06568913906812668,
-0.05350816622376442,
-0.20247434079647064,
-0.08513184636831284,
0.3267727792263031,
0.12510468065738678,
-0.21785549819469452,
0.5619810819625854,
-0.03053984045982361,
-0.34341827034950256,
0.4547916054725647,
0.10107206553220749,
0.8719291090965271,
0.27255702018737793,
0.20116087794303894,
0.23683395981788635,
0.056370124220848083,
0.6379815340042114,
0.03707391768693924,
0.14599935710430145,
-0.3191588222980499,
0.3665095567703247,
0.03573969751596451,
-0.037959806621074677,
-0.12783506512641907,
0.09608045220375061,
-0.049911241978406906,
0.20488806068897247,
0.23945553600788116,
0.20106467604637146,
0.24829459190368652,
0.11101613938808441,
-0.0012670718133449554,
-0.35419055819511414,
0.18311256170272827,
0.08416635543107986,
-0.3797287940979004,
0.36355555057525635,
0.0432656928896904,
-0.14761482179164886,
-0.028321001678705215,
-0.3495352268218994,
-0.2687564790248871,
0.11712542921304703,
-0.4619835913181305,
0.390971302986145,
0.4313517212867737,
-0.2079496681690216,
0.17296060919761658,
-0.14052075147628784,
0.1785716563463211,
-0.06800054013729095,
-0.12569989264011383,
0.3717615604400635,
0.28187403082847595,
-0.057829584926366806,
0.03172091767191887,
-0.13060539960861206,
0.2797631025314331,
0.03044193983078003,
0.0019764304161071777,
-0.10162170976400375,
-0.14831072092056274,
-0.47475260496139526,
-0.4060356914997101,
0.02603624388575554,
0.17964869737625122,
0.11155833303928375,
-0.2101287692785263,
0.13397106528282166,
-0.018868012353777885,
-0.24504879117012024,
0.0894215852022171,
0.1031867116689682,
-0.17431680858135223,
-0.03131371736526489,
0.1077834963798523,
-0.1305723786354065,
0.08922018110752106,
0.2922828197479248,
-0.20332026481628418,
-0.1827048361301422,
0.5570825338363647,
-0.19182367622852325,
-0.18153558671474457,
-0.15928983688354492,
-0.1746974140405655,
0.23148269951343536,
-0.4645780622959137,
0.10097428411245346,
-0.08941315859556198,
-0.12167605012655258,
0.04108308255672455,
0.33082348108291626,
0.18773001432418823,
0.17358824610710144,
0.07088273763656616,
-0.2569061517715454,
-0.2817653715610504,
0.1632196456193924,
-0.5082816481590271,
0.06361696124076843,
0.00040655210614204407,
0.35840627551078796,
-0.28872188925743103,
0.39049413800239563,
-0.2625269889831543,
0.09431279450654984,
-0.09145453572273254,
0.0905124768614769,
-0.056493520736694336,
-0.3398320972919464,
-0.060087114572525024,
0.008367540314793587,
-0.006850874051451683,
0.4153743386268616,
-0.2501583993434906,
-0.16479918360710144,
-0.2339625507593155,
0.12270459532737732,
0.33535224199295044,
-0.3256458044052124,
-0.04769665375351906,
0.2404375523328781,
0.07123236358165741,
-0.14163552224636078,
-0.05117851495742798,
-0.03441323712468147,
-0.09871204197406769,
0.1077832579612732,
0.09028027206659317,
0.04849925637245178,
0.2448071390390396,
0.17203596234321594,
0.000004343688488006592,
0.011608637869358063,
0.10337365418672562,
0.30035272240638733,
-0.056696150451898575,
0.049982741475105286,
0.009672518819570541,
0.05495559796690941,
-0.05470284819602966,
-0.10611497610807419,
0.10379911959171295,
-0.42907822132110596,
-0.2767672836780548,
-0.15232253074645996,
0.05145363509654999,
0.08422212302684784,
-0.009016720578074455,
-0.4086211025714874,
0.5563295483589172,
0.17775724828243256,
-0.16446241736412048,
-0.07306412607431412,
0.4187648296356201,
0.23043154180049896,
0.058247413486242294,
0.06152089312672615,
0.2833522856235504,
-0.09697206318378448,
0.0829339399933815,
0.021381419152021408,
0.49933284521102905,
-0.4074430465698242,
0.19615307450294495,
-0.007524307817220688,
-0.05386389419436455,
0.0389791801571846,
0.5023396611213684,
0.10222145915031433,
0.22017624974250793,
0.03153623640537262,
-0.06836206465959549,
0.3054456412792206,
0.09963280707597733,
0.23935800790786743,
-0.10120434314012527,
-0.39595529437065125,
-0.33709046244621277,
0.3917883634567261,
-0.04883527755737305,
0.2234889268875122,
0.022383779287338257,
0.5310402512550354,
-0.0221085287630558,
-0.42057472467422485,
0.1457374095916748,
0.5340748429298401,
-0.34414252638816833,
-0.34283414483070374,
-0.4735886752605438,
0.007298260927200317,
-0.35032519698143005,
0.02351890504360199,
-0.0265381820499897,
-0.04130346328020096,
0.007150247693061829,
-0.07907335460186005,
-0.15817832946777344,
-0.3293395936489105,
-0.23597168922424316,
0.057453703135252,
0.29125866293907166,
-0.24715043604373932,
0.4018813669681549,
-0.4688899517059326,
-0.2170814871788025,
-0.26544633507728577,
0.19908158481121063,
0.2948334515094757,
0.24473664164543152,
-0.4160873591899872,
-0.22379708290100098,
0.011963583528995514,
0.12716060876846313,
-0.12253861129283905,
0.3143150508403778,
0.24124839901924133,
-0.3868139386177063,
0.14211101830005646,
-0.04010917246341705,
-0.11037394404411316,
0.03106086514890194,
0.13896997272968292,
0.2229575365781784,
0.32794275879859924,
0.16592004895210266,
-0.1513466238975525,
-0.07004298269748688,
-0.05142946541309357,
0.07747476547956467,
-0.2236926257610321,
0.13349127769470215,
0.022825052961707115,
0.04229896515607834,
0.17939287424087524,
-0.3248319625854492,
0.08634983003139496,
0.10883857309818268,
0.41869109869003296,
0.3605182468891144,
-0.26783105731010437,
-0.4015858471393585,
-0.4270046353340149,
-0.39726558327674866,
0.19654032588005066,
-0.05414578691124916,
-0.04737234115600586,
-0.040591321885585785,
0.05861809849739075,
0.04444161802530289,
-0.01999950036406517,
-0.19495637714862823,
0.4008179008960724,
0.1366794854402542,
0.1745636761188507,
-0.3776070773601532,
0.4529934525489807,
0.09525050967931747,
-0.07812104374170303,
0.2346617579460144,
-0.30719369649887085,
0.014846034348011017,
0.10009343922138214,
0.05666590481996536,
-0.1513722687959671,
-0.1251378357410431,
-0.0407404750585556,
0.20701275765895844,
0.27747049927711487,
0.33225420117378235,
0.20221930742263794,
0.0640883669257164,
0.1838991492986679,
-0.3896710276603699,
-0.3934142291545868,
-0.2413274198770523,
-0.10816463083028793,
-0.1865239441394806,
0.43140292167663574,
-0.029626993462443352,
0.233259916305542,
-0.41990262269973755,
0.0125963119789958,
-0.029273949563503265,
0.07565592229366302,
-0.17471416294574738,
0.3251667022705078,
-0.2844867706298828,
0.263187438249588,
-0.051776785403490067,
0.36425650119781494,
-0.015289954841136932,
0.43931999802589417,
-0.41979390382766724,
-0.4348350465297699,
0.5731077790260315,
-0.7418988347053528,
-0.2233947217464447,
0.23296436667442322,
0.007688306272029877,
0.505479097366333,
-0.36830177903175354,
-0.19334444403648376,
-0.25314417481422424,
0.21366916596889496,
-0.04100769758224487,
-0.2464897334575653,
0.050612419843673706,
-0.045193977653980255,
-0.09691618382930756,
-0.04278644546866417,
0.6299057006835938,
0.12385895848274231,
-0.13195033371448517,
0.14684246480464935,
-0.17185820639133453
] |
https://github.com/huggingface/datasets/issues/256 | [Feature request] Add a feature to dataset | Do you have an example of what you would like to do? (you can just add a field in the output of the unction you give to map and this will add this field in the output table) | Is there a straightforward way to add a field to the arrow_dataset, prior to performing map? | 38 | [Feature request] Add a feature to dataset
Is there a straightforward way to add a field to the arrow_dataset, prior to performing map?
Do you have an example of what you would like to do? (you can just add a field in the output of the unction you give to map and this will add this field in the output table) | [
-0.3230096101760864,
-0.1256696879863739,
-0.12979549169540405,
-0.3137865662574768,
0.052387870848178864,
0.19275778532028198,
0.031582310795784,
0.08298204839229584,
0.1852332055568695,
0.07698571681976318,
0.6435583233833313,
0.7557852864265442,
-0.08902201801538467,
0.4095427095890045,
0.24462372064590454,
0.03261427581310272,
0.02826535701751709,
0.22548119723796844,
0.014325693249702454,
0.029933437705039978,
-0.31132733821868896,
-0.33160558342933655,
0.04404209554195404,
-0.14167086780071259,
-0.2610885798931122,
-0.1055847778916359,
0.09172394871711731,
-0.2881224751472473,
-0.26725780963897705,
-0.4562530815601349,
-0.07570024579763412,
0.05257783830165863,
-0.007645362056791782,
-0.2505638301372528,
-0.00011566054308786988,
-0.24796722829341888,
0.17165495455265045,
0.042958326637744904,
-0.10686284303665161,
-0.0999152809381485,
-0.6523423790931702,
-0.4645586907863617,
0.2334652543067932,
-0.14119577407836914,
-0.030794436112046242,
-0.0986398309469223,
0.035192932933568954,
-0.3240499496459961,
-0.06232064962387085,
-0.09793863445520401,
0.2118946611881256,
-0.1266068071126938,
0.18476560711860657,
-0.05031963810324669,
0.2521043121814728,
0.4834827184677124,
-0.3692208230495453,
-0.24725285172462463,
0.032497987151145935,
0.06744107604026794,
0.17428934574127197,
0.33343905210494995,
0.290950745344162,
-0.2479884773492813,
0.41523343324661255,
0.10510318726301193,
0.037416428327560425,
-0.16112802922725677,
-0.09024537354707718,
0.11849317699670792,
0.7849736213684082,
-0.2754907011985779,
-0.2820771634578705,
0.004974335432052612,
0.1208619475364685,
-0.31429779529571533,
-0.0033538788557052612,
-0.08357924968004227,
0.14032818377017975,
0.02121158502995968,
0.20736199617385864,
-0.549000084400177,
-0.06742200255393982,
0.1288878470659256,
0.12519584596157074,
0.38173460960388184,
0.062045589089393616,
0.1159200444817543,
-0.11732059717178345,
-0.15886881947517395,
0.017290689051151276,
-0.027565717697143555,
-0.20139357447624207,
0.5192957520484924,
-0.2226470559835434,
-0.28034937381744385,
0.2294766902923584,
-0.33919981122016907,
0.03923895210027695,
0.1831899732351303,
0.18487656116485596,
0.01747443526983261,
-0.325374573469162,
0.17470696568489075,
0.1322716772556305,
-0.028103942051529884,
0.2036430537700653,
0.18258865177631378,
0.0067139193415641785,
-0.4320651590824127,
-0.0406627282500267,
-0.365152508020401,
0.28560781478881836,
-0.09943166375160217,
0.2918941080570221,
0.04746996611356735,
0.4299740791320801,
-0.14702892303466797,
0.20401880145072937,
-0.14689691364765167,
0.1710050404071808,
-0.037489574402570724,
0.005303703248500824,
0.08828681707382202,
0.29634734988212585,
-0.10052462667226791,
-0.0368405282497406,
0.27567368745803833,
0.33909738063812256,
0.04044266790151596,
-0.050253115594387054,
-0.323345422744751,
0.07568091154098511,
0.34531691670417786,
0.027162086218595505,
0.20460064709186554,
0.1169336661696434,
-0.023611880838871002,
-0.07656247913837433,
0.05355643481016159,
0.27328625321388245,
-0.0373288132250309,
0.267354816198349,
0.21967823803424835,
-0.154706671833992,
0.13502167165279388,
-0.0075081028044223785,
0.49949073791503906,
-0.2631915807723999,
0.39020785689353943,
-0.1304585039615631,
-0.29423755407333374,
-0.11275149881839752,
0.17672239243984222,
0.09515733271837234,
-0.32139164209365845,
-0.2972109913825989,
0.3748585879802704,
-0.08899515122175217,
-0.1698732227087021,
0.27992597222328186,
0.33271312713623047,
-0.24854302406311035,
-0.30374544858932495,
-0.06813501566648483,
0.14087438583374023,
-0.1992451548576355,
0.018790394067764282,
-0.4218515455722809,
-0.07454362511634827,
-0.22383573651313782,
-0.41674572229385376,
-0.15499965846538544,
0.31069400906562805,
0.00013213232159614563,
0.34534621238708496,
0.8380851149559021,
0.05230758711695671,
-0.11646036803722382,
0.1494683176279068,
-0.43841028213500977,
-0.10041660070419312,
-0.21824684739112854,
0.5195295214653015,
0.2225421816110611,
0.16406512260437012,
-0.09571708738803864,
0.3228781819343567,
-0.244055837392807,
-0.07221217453479767,
0.08374665677547455,
-0.03192568197846413,
0.1864674687385559,
0.07978197932243347,
-0.11553479731082916,
0.07232251763343811,
0.3547310531139374,
-0.3399243950843811,
-0.0757753774523735,
0.22871285676956177,
0.1548016369342804,
0.06242085248231888,
0.6634561419487,
-0.19033561646938324,
-0.1494436115026474,
-0.25416937470436096,
-0.3794190585613251,
0.04462648183107376,
0.018306545913219452,
-0.23272985219955444,
-0.07795529067516327,
-0.36385828256607056,
0.13582104444503784,
0.3931485414505005,
-0.0465489886701107,
0.19422629475593567,
0.03888610750436783,
-0.2910767197608948,
-0.24593161046504974,
-0.12712228298187256,
-0.2429455816745758,
-0.28640323877334595,
-0.05380036309361458,
0.021814478561282158,
0.060255151242017746,
-0.060789816081523895,
0.17657198011875153,
-0.09100347757339478,
-0.36591318249702454,
0.10238522291183472,
0.0408971831202507,
0.08841697126626968,
-0.21224555373191833,
0.2533625662326813,
0.16853728890419006,
0.23394659161567688,
0.5139036774635315,
0.22324694693088531,
0.051107682287693024,
-0.2504936754703522,
0.012636866420507431,
0.1277923583984375,
-0.09994503110647202,
-0.22338932752609253,
-0.18533682823181152,
0.22133922576904297,
0.0701039656996727,
0.1439284086227417,
-0.20152512192726135,
0.17729780077934265,
0.28231245279312134,
0.09235429763793945,
-0.09558198601007462,
-0.14675530791282654,
-0.33777427673339844,
-0.08456863462924957,
-0.09949582815170288,
-0.12597233057022095,
-0.028134573251008987,
0.2752673923969269,
0.3266279101371765,
-0.03652519732713699,
0.07844837754964828,
0.2283448874950409,
-0.16949936747550964,
0.11580166965723038,
0.3157922923564911,
-0.19050870835781097,
0.3854653835296631,
0.2556682825088501,
-0.02226140722632408,
-0.01768130622804165,
-0.02112910896539688,
0.08073447644710541,
0.2407304048538208,
-0.13787321746349335,
0.2707096338272095,
-0.016586609184741974,
0.33326035737991333,
-0.06788597255945206,
-0.0527779757976532,
-0.05666198208928108,
0.11897025257349014,
0.09977123886346817,
-0.044887982308864594,
-0.2961110770702362,
0.11918975412845612,
0.09213056415319443,
-0.004259216599166393,
-0.06341814249753952,
-0.1733609437942505,
-0.3518216013908386,
0.23315775394439697,
-0.05141885206103325,
-0.20887595415115356,
0.14756642282009125,
-0.33443352580070496,
0.2592226564884186,
0.029575617983937263,
-0.3412540853023529,
-0.05221045762300491,
-0.20544587075710297,
0.20899689197540283,
0.05291125550866127,
-0.091999851167202,
-0.1556435078382492,
0.5642310976982117,
0.562084436416626,
0.3921130895614624,
-0.5298599004745483,
-0.48430943489074707,
-0.014123976230621338,
0.0818411111831665,
-0.16597072780132294,
0.02432556450366974,
0.010606877505779266,
-0.2986757159233093,
-0.2159086912870407,
0.05155961960554123,
0.0790269747376442,
-0.21168655157089233,
-0.14313848316669464,
-0.12340495735406876,
-0.09024544060230255,
-0.09769488126039505,
-0.1658381223678589,
-0.010662771761417389,
-0.30485567450523376,
0.4907081127166748,
0.08693836629390717,
0.13834723830223083,
-0.018754255026578903,
0.13125522434711456,
-0.0678131952881813,
-0.168311208486557,
-0.3420356512069702,
-0.16108320653438568,
0.14265646040439606,
0.34325844049453735,
-0.4180549681186676,
0.055848389863967896,
0.2637419104576111,
-0.13182266056537628,
-0.020290959626436234,
0.43146347999572754,
-0.26495105028152466,
0.09274467825889587,
-0.0009444374591112137,
0.6025670170783997,
-0.18074171245098114,
-0.023150434717535973,
0.5678796768188477,
0.2796885073184967,
-0.045187272131443024,
-0.05303942412137985,
-0.10389360785484314,
0.14860358834266663,
0.4860754907131195,
0.2047562152147293,
-0.0486467108130455,
0.34898415207862854,
-0.27986854314804077,
0.6352143287658691,
-0.20097240805625916,
-0.014774501323699951,
0.2248992770910263,
-0.2106427550315857,
0.1744217425584793,
-0.17102894186973572,
0.06277177482843399,
-0.26863643527030945,
0.029555149376392365,
-0.2321026772260666,
-0.16377584636211395,
0.019074590876698494,
-0.22148333489894867,
0.024632886052131653,
0.007816217839717865,
0.010609585791826248,
-0.05507335811853409,
0.18679878115653992,
-0.6058997511863708,
0.5232602953910828,
-0.1445964127779007,
-0.17368042469024658,
-0.560735821723938,
-0.009855426847934723,
0.015952112153172493,
-0.14419175684452057,
0.46543145179748535,
-0.4178941249847412,
-0.46120360493659973,
-0.21740181744098663,
-0.387183278799057,
0.18705815076828003,
0.08089050650596619,
-0.0735940933227539,
-0.21958179771900177,
-0.1895533800125122,
-0.14421848952770233,
0.22871947288513184,
0.3513084650039673,
-0.6429318785667419,
-0.16470199823379517,
-0.1423744112253189,
0.21227356791496277,
-0.09740673005580902,
0.059299569576978683,
0.17403599619865417,
0.36194154620170593,
-0.21749407052993774,
0.5275079011917114,
-0.20492027699947357,
0.24443815648555756,
0.38063696026802063,
-0.09481362998485565,
-0.20389968156814575,
-0.09966502338647842,
0.024413567036390305,
-0.002705506980419159,
-0.044623978435993195,
0.08977937698364258,
-0.06822119653224945,
-0.21145634353160858,
0.3042946457862854,
-0.4484100341796875,
-0.2740823030471802,
0.07580514997243881,
-0.17226426303386688,
0.12260898947715759,
0.24902009963989258,
0.2360479235649109,
0.2840411067008972,
0.014226041734218597,
0.019637294113636017,
-0.025928562507033348,
0.3448987603187561,
0.02597743086516857,
-0.18317747116088867,
-0.13738015294075012,
-0.4283923804759979,
0.7307027578353882,
0.15984293818473816,
0.07839194685220718,
0.7191210985183716,
-0.06681297719478607,
-0.11801962554454803,
-0.37656494975090027,
-0.09427535533905029,
0.28843235969543457,
-0.18747514486312866,
-0.08569684624671936,
-0.29080501198768616,
0.5907080173492432,
-0.05304811894893646,
-0.07410942018032074,
0.6676122546195984,
0.08844547718763351,
-0.2206764966249466,
0.5987034440040588,
0.22094616293907166,
0.9525286555290222,
-0.19351212680339813,
-0.1417439579963684,
-0.058041736483573914,
-0.25040772557258606,
0.21438400447368622,
-0.17269526422023773,
-0.08334989100694656,
-0.1577390879392624,
-0.28972864151000977,
-0.08914300054311752,
-0.11881007254123688,
0.09139034897089005,
0.36188411712646484,
-0.2552136480808258,
-0.2974037826061249,
-0.11486706882715225,
0.4763527512550354,
-0.07309875637292862,
0.1706344485282898,
0.24004781246185303,
-0.2808716595172882,
0.11826861649751663,
0.08720683306455612,
-0.022559754550457,
-0.10195502638816833,
-0.24901002645492554,
-0.2241193950176239,
0.07248029112815857,
-0.2220398485660553,
-0.10717402398586273,
-0.14134138822555542,
-0.3563655912876129,
-0.02495073527097702,
-0.12817002832889557,
-0.011054426431655884,
0.1294175237417221,
-0.10549814999103546,
-0.046638451516628265,
0.04328661039471626,
-0.07831276208162308,
0.2617403566837311,
0.33787691593170166,
0.32202577590942383,
-0.03899209573864937,
-0.007521553430706263,
-0.008356673642992973,
-0.06790222227573395,
-0.18643665313720703,
0.3520042896270752,
-0.2488487809896469,
-0.48431551456451416,
-0.13396070897579193,
-0.0075570568442344666,
-0.022086888551712036,
-0.231064110994339,
-0.3893097937107086,
0.19509324431419373,
-0.18806405365467072,
-0.0804351195693016,
0.1191900223493576,
0.05649478733539581,
-0.05986124649643898,
0.21808373928070068,
0.337843120098114,
-0.05729275569319725,
0.08129347860813141,
-0.038755349814891815,
-0.1128733679652214,
0.0440000519156456,
0.20997877418994904,
-0.2339545041322708,
-0.07439827919006348,
-0.12852910161018372,
0.05641847103834152,
0.3340592384338379,
-0.4564078450202942,
-0.16278617084026337,
0.2021557092666626,
0.03252549469470978,
-0.14768509566783905,
0.20819871127605438,
-0.1721680909395218,
0.40443897247314453,
-0.2823358476161957,
-0.030926868319511414,
-0.34422022104263306,
0.19316640496253967,
-0.07702453434467316,
0.29688605666160583,
-0.24077880382537842,
-0.1100059449672699,
-0.14865344762802124,
0.41552719473838806,
-0.2784254550933838,
-0.22377465665340424,
0.32040494680404663,
0.3578749895095825,
0.00011110678315162659,
0.4909781813621521,
0.06589680165052414,
-0.2763759195804596,
0.13710623979568481,
-0.052300624549388885,
-0.036781344562768936,
-0.16707926988601685,
0.12411189079284668,
0.18681257963180542,
0.06574194133281708,
-0.20536400377750397,
-0.25644978880882263,
-0.27933764457702637,
-0.13189293444156647,
-0.14343811571598053,
-0.14246214926242828,
-0.22374624013900757,
-0.2377745360136032,
-0.15279291570186615,
0.03413017466664314,
0.18996912240982056,
-0.1506684273481369,
0.19632434844970703,
0.14094358682632446,
0.19331014156341553,
-0.0990123450756073,
0.10347957909107208,
-0.06585769355297089,
0.09529638290405273,
0.13806387782096863,
0.045918405055999756,
0.014824151992797852,
-0.061207860708236694,
0.2245161235332489,
0.0737919807434082,
0.00465022400021553,
-0.02721184305846691,
0.25371429324150085,
-0.1963343620300293,
-0.14776626229286194,
0.24092362821102142,
0.029695633798837662,
0.24074889719486237,
-0.21753112971782684,
0.12101181596517563,
0.45248308777809143,
-0.06254663318395615,
0.1484796553850174,
0.1480233371257782,
0.2969685196876526,
0.4323725700378418,
0.015021272003650665,
0.09625676274299622,
-0.3143249750137329,
-0.3172510266304016,
0.1561300903558731,
0.4448055922985077,
0.135833740234375,
0.09621381759643555,
0.2541843354701996,
0.36008715629577637,
0.18062523007392883,
0.2444465011358261,
0.14129963517189026,
0.22948239743709564,
0.46510037779808044,
-0.25775039196014404,
0.20783191919326782,
-0.33140066266059875,
0.27172547578811646,
-0.036785781383514404,
0.15308941900730133,
0.013454288244247437,
0.5024025440216064,
-0.09646355360746384,
0.13391299545764923,
-0.23140190541744232,
0.0420859158039093,
0.03955620899796486,
-0.1667444109916687,
0.14571452140808105,
0.14098048210144043,
-0.11016450822353363,
0.013368330895900726,
-0.15926975011825562,
0.10538826137781143,
-0.08722987771034241,
0.3674439787864685,
-0.0022114887833595276,
0.33815693855285645,
0.27333906292915344,
0.4702838361263275,
0.24637416005134583,
0.2139004021883011,
-0.11488939821720123,
-0.12128586322069168,
-0.4095311760902405,
-0.07484692335128784,
0.04796892777085304,
0.22441062331199646,
-0.19023293256759644,
0.2198685258626938,
-0.2684762179851532,
0.6971400380134583,
-0.022111184895038605,
-0.27508702874183655,
0.06471526622772217,
0.0996285155415535,
0.2045363485813141,
0.0011921189725399017,
-0.078309066593647,
0.15924333035945892,
-0.02565409056842327,
0.17311765253543854,
0.04044564068317413,
0.24467605352401733,
-0.15403558313846588,
0.1421145796775818,
0.2685220241546631,
-0.5370781421661377,
-0.03970737010240555,
0.08508836477994919,
0.21157491207122803,
-0.3055981993675232,
0.36633431911468506,
-0.044438984245061874,
-0.1261986494064331,
-0.12287742644548416,
0.05036064237356186,
-0.1525101661682129,
0.138480544090271,
0.22177323698997498,
0.04125026986002922,
-0.2644841969013214,
-0.15196257829666138,
-0.38769102096557617,
0.016558505594730377,
-0.07006946206092834,
-0.1563558578491211,
0.38346195220947266,
0.040353283286094666,
0.2811025083065033,
0.08014024794101715,
0.36049026250839233,
-0.47435688972473145,
0.09031729400157928,
0.18195851147174835,
0.0026809535920619965,
-0.21827815473079681,
0.03553894907236099,
0.1078449934720993,
-0.1795002818107605,
0.0957132950425148,
0.08289983123540878,
0.3081105649471283,
0.0043472833931446075,
-0.23742060363292694,
-0.2536136507987976,
-0.07985159754753113,
0.015735968947410583,
0.5547661185264587,
-0.24454224109649658,
0.256874144077301,
-0.2621217966079712,
0.21610991656780243,
0.018888376653194427,
-0.2626235783100128,
-0.205948144197464,
0.11629471182823181,
-0.06006912514567375,
0.2213890701532364,
0.11595966666936874,
-0.0937417596578598,
-0.3625072240829468,
-0.0897851437330246,
-0.34674179553985596,
-0.28691935539245605,
-0.23978906869888306,
0.2558830678462982,
-0.1416025161743164,
-0.06300579011440277,
0.013602436520159245,
-0.08358321338891983,
0.013816937804222107,
0.14786091446876526,
0.08458764851093292,
-0.08590386062860489,
0.14579425752162933,
0.1201748177409172,
-0.0749816745519638,
0.12345018237829208,
0.13086873292922974,
0.2448749542236328,
0.1080157533288002,
-0.6100404262542725,
-0.25640350580215454,
0.4132256805896759,
-0.10118872672319412,
0.35084137320518494,
0.3517686128616333,
-0.08469946682453156,
0.21254242956638336,
-0.19007806479930878,
0.5408405661582947,
-0.31254345178604126,
0.3141436278820038,
-0.39815202355384827,
-0.306005597114563
] |
https://github.com/huggingface/datasets/issues/256 | [Feature request] Add a feature to dataset | Given another source of data loaded in, I want to pre-add it to the dataset so that it aligns with the indices of the arrow dataset prior to performing map.
E.g.
```
new_info = list of length dataset['train']
dataset['train'] = dataset['train'].map(lambda x: some_function(x, new_info[index of x]))
def some_function(x, new_info_x):
# adds new_info[index of x] as a field to x
x['new_info'] = new_info_x
return x
```
I was thinking to instead create a new field in the arrow dataset so that instance x contains all the necessary information when map function is applied (since I don't have index information to pass to map function). | Is there a straightforward way to add a field to the arrow_dataset, prior to performing map? | 103 | [Feature request] Add a feature to dataset
Is there a straightforward way to add a field to the arrow_dataset, prior to performing map?
Given another source of data loaded in, I want to pre-add it to the dataset so that it aligns with the indices of the arrow dataset prior to performing map.
E.g.
```
new_info = list of length dataset['train']
dataset['train'] = dataset['train'].map(lambda x: some_function(x, new_info[index of x]))
def some_function(x, new_info_x):
# adds new_info[index of x] as a field to x
x['new_info'] = new_info_x
return x
```
I was thinking to instead create a new field in the arrow dataset so that instance x contains all the necessary information when map function is applied (since I don't have index information to pass to map function). | [
-0.2954539656639099,
0.04804942011833191,
-0.06860829144716263,
-0.18945641815662384,
0.056232426315546036,
0.2561272978782654,
0.08071038126945496,
0.11000296473503113,
0.19616131484508514,
-0.020773664116859436,
0.4314371347427368,
0.5331398844718933,
-0.10510360449552536,
0.21243375539779663,
0.13328184187412262,
0.06564521789550781,
-0.04003969579935074,
0.3422542214393616,
-0.024669185280799866,
0.05260414630174637,
-0.25688260793685913,
-0.36277514696121216,
0.012161098420619965,
-0.2262430042028427,
-0.20123261213302612,
-0.05310264974832535,
0.09253454953432083,
-0.20654061436653137,
-0.04998481273651123,
-0.43497946858406067,
0.06971035152673721,
0.05478712171316147,
-0.061163924634456635,
-0.07750674337148666,
-0.00012185194646008313,
-0.00827980786561966,
0.22867874801158905,
-0.01818101294338703,
-0.02202349528670311,
-0.08861507475376129,
-0.6228852868080139,
-0.4504074156284332,
0.1403827965259552,
-0.14621031284332275,
-0.11619600653648376,
-0.2814852297306061,
0.06432263553142548,
-0.48993024230003357,
-0.03040221333503723,
0.11766717582941055,
0.11759123206138611,
-0.03391091525554657,
0.308386892080307,
0.03276929259300232,
0.34438255429267883,
0.21786271035671234,
-0.20830167829990387,
-0.20579789578914642,
-0.05569565296173096,
-0.005127944052219391,
0.24421751499176025,
0.18939600884914398,
0.16786006093025208,
-0.33406105637550354,
0.4431713819503784,
0.15538686513900757,
-0.02495483309030533,
-0.2453877031803131,
-0.3294195532798767,
0.08959957957267761,
0.635752260684967,
-0.4809344708919525,
-0.44583192467689514,
-0.2342642843723297,
0.31208905577659607,
-0.29011476039886475,
0.0607440285384655,
-0.1333400160074234,
0.21045705676078796,
-0.016441699117422104,
0.28048816323280334,
-0.38965746760368347,
0.014442116022109985,
0.22691364586353302,
0.061937086284160614,
0.47667786478996277,
0.16617494821548462,
0.09683388471603394,
-0.14526577293872833,
-0.1335330754518509,
0.14431656897068024,
-0.3300926089286804,
-0.06665034592151642,
0.5027742981910706,
-0.24179227650165558,
-0.21392257511615753,
-0.02448396384716034,
-0.43813440203666687,
-0.0016758162528276443,
0.16434642672538757,
0.14356651902198792,
0.020686745643615723,
-0.23616164922714233,
0.10205180197954178,
0.25052177906036377,
0.15086597204208374,
-0.011964350938796997,
0.24776126444339752,
-0.12251020967960358,
-0.45337045192718506,
-0.07157427072525024,
-0.20390626788139343,
0.3690461218357086,
-0.13631968200206757,
0.3272726833820343,
-0.010967571288347244,
0.33304357528686523,
0.15705248713493347,
0.14187031984329224,
0.027892377227544785,
-0.0564526803791523,
-0.07010156661272049,
0.08543488383293152,
-0.044251956045627594,
0.19404417276382446,
-0.04919153451919556,
-0.11297386884689331,
0.4110082983970642,
0.28652065992355347,
0.2174227237701416,
-0.0495888777077198,
-0.212617427110672,
0.15126873552799225,
0.2483239322900772,
-0.07674644887447357,
0.06510728597640991,
0.2182893306016922,
0.056783996522426605,
0.10740023106336594,
0.2571180462837219,
0.3620675504207611,
-0.04835778474807739,
0.17963901162147522,
0.2562594711780548,
-0.13081222772598267,
0.1176813617348671,
-0.022374849766492844,
0.26819032430648804,
-0.2887223958969116,
0.4301690459251404,
-0.1666407585144043,
-0.318144291639328,
-0.018065838143229485,
0.07984226197004318,
0.02679244428873062,
-0.3733135163784027,
-0.3221884071826935,
0.5601475238800049,
0.05316093936562538,
-0.32589295506477356,
0.30068716406822205,
0.07653595507144928,
-0.4147164523601532,
-0.3155432939529419,
0.047886915504932404,
0.2020697295665741,
-0.044732607901096344,
-0.04814310744404793,
-0.3672385811805725,
-0.058197055011987686,
-0.28943195939064026,
-0.3591379225254059,
-0.13615718483924866,
0.1373806595802307,
-0.06811702251434326,
0.361808717250824,
0.7887738347053528,
-0.12643136084079742,
-0.3442747890949249,
0.04523240774869919,
-0.30302661657333374,
0.15711556375026703,
-0.37508225440979004,
0.5562778115272522,
-0.13874295353889465,
0.1508689522743225,
0.06260344386100769,
0.52080899477005,
-0.2876552641391754,
-0.054899610579013824,
0.1433010995388031,
0.0251337718218565,
0.09285535663366318,
0.185352623462677,
-0.10415306687355042,
0.08625321090221405,
0.2928878366947174,
-0.3613356351852417,
-0.12551000714302063,
0.22932584583759308,
0.07871758192777634,
0.2501792907714844,
0.2867562770843506,
-0.14078174531459808,
-0.22653910517692566,
-0.3820768892765045,
-0.4558902978897095,
0.13553881645202637,
0.16135278344154358,
-0.15188106894493103,
-0.0022721067070961,
-0.24030247330665588,
0.051977261900901794,
0.3842330276966095,
-0.029144179075956345,
0.10293717682361603,
-0.03540089726448059,
-0.1379574090242386,
-0.12752115726470947,
-0.1152087152004242,
-0.19177204370498657,
-0.08804569393396378,
0.02341344766318798,
0.1266871988773346,
-0.08154407143592834,
-0.015609728172421455,
0.2958855926990509,
-0.10389934480190277,
-0.4534270763397217,
0.1745183914899826,
-0.08100894838571548,
0.13168206810951233,
-0.23031410574913025,
0.28820979595184326,
0.28104454278945923,
0.3076576590538025,
0.3753383457660675,
0.35966670513153076,
0.12027280032634735,
-0.20222735404968262,
-0.049243077635765076,
0.2572800815105438,
-0.02932855859398842,
-0.15268990397453308,
-0.15355610847473145,
0.5156166553497314,
0.1086486279964447,
0.22386136651039124,
-0.233749657869339,
0.04114469885826111,
0.1870003193616867,
0.10002841055393219,
-0.25042206048965454,
-0.10376201570034027,
-0.38281357288360596,
0.028526581823825836,
0.09362880885601044,
0.002460455521941185,
-0.03577664494514465,
0.20420265197753906,
0.06993691623210907,
-0.02401854284107685,
0.1600017547607422,
0.2019364833831787,
-0.22764423489570618,
0.10791302472352982,
0.07749684900045395,
-0.06241372600197792,
0.32905977964401245,
0.22270625829696655,
0.012617796659469604,
0.04264846816658974,
0.10928855836391449,
0.16021007299423218,
0.19159680604934692,
-0.07387234270572662,
0.3904670774936676,
0.13538193702697754,
0.38215500116348267,
0.15531764924526215,
0.0920720025897026,
0.051826510578393936,
-0.028553158044815063,
0.085542231798172,
-0.1734754592180252,
-0.12338108569383621,
0.1931571662425995,
0.1512269377708435,
-0.19079361855983734,
-0.07273239642381668,
-0.13094283640384674,
-0.2570098638534546,
-0.04220842570066452,
0.02834937907755375,
-0.20326082408428192,
0.08375979959964752,
-0.36698752641677856,
0.19005146622657776,
0.16667932271957397,
-0.6432441473007202,
0.05073920637369156,
-0.08939025551080704,
0.23841598629951477,
-0.0036566387861967087,
-0.016402436420321465,
-0.1745576709508896,
0.31048762798309326,
0.7045741677284241,
0.3526601791381836,
-0.40023714303970337,
-0.5986947417259216,
-0.13945962488651276,
0.03262447193264961,
0.06101635843515396,
-0.05643916130065918,
-0.13568221032619476,
-0.2187395691871643,
-0.2760370671749115,
0.05296420678496361,
0.09786070138216019,
-0.12571841478347778,
-0.23763872683048248,
-0.07661697268486023,
0.0012319929664954543,
-0.005782393738627434,
-0.01182856410741806,
-0.22959770262241364,
-0.25441089272499084,
0.3818817138671875,
0.22829057276248932,
0.003763977438211441,
0.0251772440969944,
0.13356344401836395,
-0.1741534322500229,
0.09611091762781143,
-0.34592124819755554,
-0.06774229556322098,
0.008277174085378647,
0.46691545844078064,
-0.2917555272579193,
0.22230267524719238,
-0.056528475135564804,
-0.42820119857788086,
-0.16813795268535614,
0.5416527986526489,
-0.28587985038757324,
0.03355216234922409,
-0.06858105957508087,
0.4442358911037445,
-0.005477391183376312,
0.04155286028981209,
0.44930198788642883,
0.13076089322566986,
0.1019129753112793,
-0.039739832282066345,
-0.16873076558113098,
0.019571371376514435,
0.38575854897499084,
0.1371399611234665,
0.02654237300157547,
0.252622127532959,
-0.4078220725059509,
0.8244696855545044,
-0.09646257758140564,
-0.09822115302085876,
0.21357665956020355,
-0.3015337288379669,
0.21364977955818176,
-0.19886165857315063,
-0.03919287398457527,
-0.3540038466453552,
0.11872028559446335,
-0.23929181694984436,
-0.11377710103988647,
-0.13786903023719788,
-0.33846116065979004,
0.011531803756952286,
-0.10345230996608734,
-0.07150465250015259,
-0.11369195580482483,
0.27760621905326843,
-0.7096517086029053,
0.5136855244636536,
-0.11672183871269226,
-0.16270962357521057,
-0.5571872591972351,
-0.010528689250349998,
-0.1344742327928543,
-0.25777870416641235,
0.2695598304271698,
-0.3588864207267761,
-0.28978613018989563,
-0.1367037147283554,
-0.3390554189682007,
0.1599765419960022,
0.32898175716400146,
0.010923494584858418,
0.06942979991436005,
-0.2846192717552185,
-0.2018527239561081,
0.12558260560035706,
0.10079370439052582,
-0.7038964033126831,
-0.37767237424850464,
-0.06033758819103241,
0.13507598638534546,
-0.3127741515636444,
0.032195206731557846,
0.26921170949935913,
0.3959922790527344,
-0.29502370953559875,
0.33278560638427734,
-0.09700709581375122,
0.26714178919792175,
0.20797224342823029,
-0.05191478505730629,
-0.18702466785907745,
0.04549916833639145,
-0.04063995182514191,
0.10941845923662186,
-0.032595232129096985,
0.13954836130142212,
-0.07816145569086075,
-0.20294921100139618,
0.49353957176208496,
-0.20782603323459625,
-0.5050936937332153,
0.2532687783241272,
0.009910985827445984,
0.16360320150852203,
0.3125101625919342,
0.32417359948158264,
0.30943045020103455,
0.12048743665218353,
-0.1788272112607956,
0.06440410017967224,
0.418052613735199,
-0.11419022083282471,
-0.22285088896751404,
-0.3180222809314728,
-0.12682877480983734,
0.6585421562194824,
0.02179965376853943,
0.09644550830125809,
0.4333219528198242,
-0.10493707656860352,
-0.14043448865413666,
-0.44174590706825256,
0.0513247512280941,
0.4564834535121918,
-0.09330321848392487,
-0.15567320585250854,
-0.551012396812439,
0.6145579814910889,
-0.06463310867547989,
-0.0433356873691082,
0.5349655747413635,
0.20637348294258118,
-0.1598876565694809,
0.5062615275382996,
0.2650837302207947,
0.7346946001052856,
-0.0204223170876503,
0.030152030289173126,
0.1933489441871643,
-0.08943335711956024,
0.16311565041542053,
-0.08511075377464294,
-0.02005765587091446,
-0.15756483376026154,
-0.4308118522167206,
-0.0038918964564800262,
-0.15197451412677765,
-0.11660242825746536,
0.35489535331726074,
-0.045291587710380554,
-0.2973412871360779,
-0.16057583689689636,
0.3114292323589325,
-0.1506596803665161,
0.18678328394889832,
0.07807666063308716,
-0.2434273362159729,
0.05077994242310524,
0.05683284252882004,
0.1301894187927246,
-0.05252339318394661,
-0.16616147756576538,
-0.12707208096981049,
-0.21412256360054016,
-0.1048300489783287,
-0.19636210799217224,
0.0009954888373613358,
-0.3412138819694519,
0.10047386586666107,
-0.23867091536521912,
-0.08429739624261856,
0.1819692701101303,
0.1106550544500351,
0.058877281844615936,
-0.05770546570420265,
0.011399148032069206,
0.36905989050865173,
0.3624335527420044,
0.3142383396625519,
0.07896667718887329,
-0.08322960883378983,
0.021990042179822922,
0.12612521648406982,
-0.11394806206226349,
0.33944886922836304,
-0.13073840737342834,
-0.5961113572120667,
-0.19446468353271484,
0.06594236195087433,
-0.1254807710647583,
-0.19748555123806,
-0.38278648257255554,
0.2993825078010559,
-0.06938421726226807,
-0.026739807799458504,
0.04898228496313095,
-0.007393732666969299,
-0.03173811361193657,
0.1884375512599945,
0.0982944667339325,
-0.2052384614944458,
0.036177512258291245,
0.03876917436718941,
0.0022941455245018005,
0.20708484947681427,
0.46871218085289,
-0.3493292033672333,
0.05314115434885025,
0.02498152107000351,
0.09864587336778641,
0.4068251848220825,
-0.163434699177742,
-0.11598408967256546,
-0.007875913754105568,
-0.0629756823182106,
-0.10932423919439316,
0.13939610123634338,
-0.16832482814788818,
0.2923588156700134,
-0.16292497515678406,
-0.15952950716018677,
-0.3864023983478546,
0.2419726848602295,
0.028938718140125275,
0.42875415086746216,
-0.04438269883394241,
-0.12346616387367249,
-0.38967201113700867,
0.4389348030090332,
-0.19000881910324097,
-0.3230794072151184,
0.3609907031059265,
0.18557506799697876,
0.2330753207206726,
0.4451930820941925,
0.3107379078865051,
-0.34015610814094543,
0.05828113108873367,
-0.14980921149253845,
0.12304753065109253,
-0.11353294551372528,
0.016652505844831467,
0.15902751684188843,
0.04534004628658295,
-0.23916441202163696,
-0.24311916530132294,
-0.39710748195648193,
-0.03812136501073837,
-0.34074902534484863,
-0.16648069024085999,
-0.07473911345005035,
-0.11300007998943329,
-0.14360615611076355,
0.130445659160614,
0.14072199165821075,
-0.1949779987335205,
0.18967489898204803,
0.07701437175273895,
0.05303660035133362,
0.006245180498808622,
0.23682856559753418,
-0.1569785475730896,
0.12549380958080292,
0.11313657462596893,
0.06505289673805237,
0.26354914903640747,
-0.000880066305398941,
0.16801360249519348,
0.012825194746255875,
0.1215810477733612,
0.31474655866622925,
0.32990455627441406,
0.03647145628929138,
-0.1927657574415207,
0.2288253754377365,
-0.09192091971635818,
0.11209028214216232,
-0.2940256595611572,
0.06712289899587631,
0.3260782063007355,
-0.19719068706035614,
0.19431915879249573,
0.20659098029136658,
0.20972847938537598,
0.6998453140258789,
-0.2804930806159973,
0.00257226824760437,
-0.3698576092720032,
-0.19451691210269928,
0.21734736859798431,
0.4785534739494324,
0.22565405070781708,
-0.12845350801944733,
0.2805359661579132,
0.5443066358566284,
0.37764328718185425,
0.3105360269546509,
0.1697676181793213,
0.28466835618019104,
0.251350075006485,
-0.3804255723953247,
0.08951383829116821,
-0.38869380950927734,
0.2942367196083069,
-0.017557263374328613,
0.2701084613800049,
0.05469970777630806,
0.5864531993865967,
-0.018575862050056458,
0.10988765209913254,
-0.3700762689113617,
0.021476129069924355,
0.22357521951198578,
-0.10242503136396408,
-0.03757210075855255,
0.3706280589103699,
-0.07384965568780899,
-0.02633483335375786,
-0.25148582458496094,
0.1283644288778305,
-0.15460996329784393,
0.2608325481414795,
0.029944922775030136,
0.3402259945869446,
0.18716169893741608,
0.40173986554145813,
0.2882913649082184,
0.2756876051425934,
-0.1240537166595459,
-0.09713629633188248,
-0.45296066999435425,
-0.19254305958747864,
0.04922634735703468,
0.29180705547332764,
-0.11117206513881683,
0.06180587783455849,
-0.3906151354312897,
0.49111154675483704,
0.07299578934907913,
-0.22806745767593384,
-0.005803685635328293,
-0.10851392149925232,
0.10915110260248184,
-0.10929928719997406,
-0.01603114977478981,
0.10795412212610245,
-0.040557701140642166,
0.10229756683111191,
0.06667532026767731,
0.2367079257965088,
-0.17014895379543304,
0.1763891577720642,
0.2817985713481903,
-0.22249171137809753,
0.03824509680271149,
0.12614595890045166,
0.20499104261398315,
-0.3052234351634979,
0.3017694354057312,
-0.0709674060344696,
-0.011132730171084404,
-0.016095716506242752,
0.015035491436719894,
0.047668322920799255,
0.12267632782459259,
0.18947716057300568,
0.08890238404273987,
-0.19113846123218536,
-0.03554916009306908,
-0.5502502918243408,
0.011777125298976898,
-0.029769983142614365,
-0.13081593811511993,
0.2801949679851532,
0.0537482351064682,
0.29173851013183594,
-0.024515338242053986,
0.23991811275482178,
-0.4459003508090973,
0.02412847802042961,
0.08056318759918213,
0.03400443121790886,
-0.1697070300579071,
-0.38789528608322144,
-0.0658750906586647,
0.05255832523107529,
0.06643512099981308,
-0.11162588000297546,
0.29871824383735657,
-0.026848923414945602,
-0.13480813801288605,
-0.3300515115261078,
-0.10460063815116882,
-0.022962287068367004,
0.4856199026107788,
-0.29913416504859924,
0.2528912425041199,
-0.38349831104278564,
0.22975489497184753,
-0.04805039241909981,
-0.4150995910167694,
-0.46996554732322693,
0.3128094971179962,
-0.21318195760250092,
0.2614046633243561,
-0.1266082227230072,
-0.0608520470559597,
-0.18677157163619995,
-0.17112724483013153,
-0.24569174647331238,
-0.5277999043464661,
-0.28257593512535095,
0.16863399744033813,
-0.34799671173095703,
0.1548517644405365,
-0.0018804017454385757,
0.17253217101097107,
0.08497206121683121,
0.328228622674942,
0.26671600341796875,
-0.07908816635608673,
0.24113306403160095,
0.05847941339015961,
0.1523553878068924,
-0.004625059198588133,
-0.15859654545783997,
0.20980381965637207,
0.22155602276325226,
-0.4839753806591034,
-0.07093669474124908,
0.41478484869003296,
-0.09011083841323853,
0.26096388697624207,
0.1288645714521408,
0.013631109148263931,
0.14828749001026154,
-0.2505509853363037,
0.4501888155937195,
-0.3410739004611969,
0.2928004264831543,
-0.2522791028022766,
-0.09464342892169952
] |
https://github.com/huggingface/datasets/issues/256 | [Feature request] Add a feature to dataset | This is what I have so far:
```
import pyarrow as pa
from nlp.arrow_dataset import Dataset
aug_dataset = dataset['train'][:]
aug_dataset['new_info'] = new_info
#reformat as arrow-table
schema = dataset['train'].schema
# this line doesn't work:
schema.append(pa.field('new_info', pa.int32()))
table = pa.Table.from_pydict(
aug_dataset,
schema=schema
)
dataset['train'] = Dataset(table)
``` | Is there a straightforward way to add a field to the arrow_dataset, prior to performing map? | 45 | [Feature request] Add a feature to dataset
Is there a straightforward way to add a field to the arrow_dataset, prior to performing map?
This is what I have so far:
```
import pyarrow as pa
from nlp.arrow_dataset import Dataset
aug_dataset = dataset['train'][:]
aug_dataset['new_info'] = new_info
#reformat as arrow-table
schema = dataset['train'].schema
# this line doesn't work:
schema.append(pa.field('new_info', pa.int32()))
table = pa.Table.from_pydict(
aug_dataset,
schema=schema
)
dataset['train'] = Dataset(table)
``` | [
-0.15856297314167023,
0.12183156609535217,
-0.01991434209048748,
-0.23797737061977386,
0.11595196276903152,
0.2459181845188141,
0.05584001541137695,
0.2358238250017166,
-0.05676445737481117,
-0.0269443541765213,
0.5227229595184326,
0.7792682647705078,
-0.1148940697312355,
0.26215803623199463,
0.4461781978607178,
0.018078763037919998,
0.09262432157993317,
0.3316136300563812,
0.06321696937084198,
0.05303090810775757,
-0.20231656730175018,
-0.5101907849311829,
-0.015450015664100647,
-0.10478730499744415,
-0.255047470331192,
0.06405210494995117,
-0.07270651310682297,
-0.2698788642883301,
-0.19697034358978271,
-0.6185672879219055,
0.05524776130914688,
-0.0052969790995121,
0.048810794949531555,
-0.2825000584125519,
-0.00012575108848977834,
-0.09902606904506683,
0.12382486462593079,
0.09376218169927597,
-0.14928355813026428,
0.007087737321853638,
-0.18201294541358948,
-0.5508114695549011,
0.3477325737476349,
-0.2505289614200592,
-0.027783798053860664,
-0.36419951915740967,
0.07550256699323654,
0.00928489863872528,
-0.09520776569843292,
0.05794980004429817,
0.09978516399860382,
0.09396670758724213,
0.28767362236976624,
0.10711445659399033,
0.362369179725647,
0.27982592582702637,
-0.33399540185928345,
-0.04289538785815239,
-0.022062838077545166,
-0.21518434584140778,
0.16901901364326477,
0.11275701224803925,
0.12656252086162567,
-0.26491180062294006,
0.39527446031570435,
0.24035799503326416,
0.038407694548368454,
-0.07232863456010818,
-0.2271321713924408,
-0.1069110855460167,
0.6156908869743347,
-0.6202866435050964,
-0.3876195251941681,
-0.2214735448360443,
0.30828776955604553,
-0.490670770406723,
-0.061459027230739594,
0.044830963015556335,
0.10504598915576935,
0.04377525672316551,
0.3411898612976074,
-0.485838919878006,
-0.12451689690351486,
0.3369033932685852,
0.15795746445655823,
0.5274519920349121,
0.3024938106536865,
0.15503713488578796,
-0.13680127263069153,
0.027953701093792915,
0.13942979276180267,
0.0006351284682750702,
-0.09889602661132812,
0.5474140644073486,
-0.1916416734457016,
-0.32885414361953735,
0.16039910912513733,
-0.32755911350250244,
0.06376343965530396,
0.22596606612205505,
0.07232609391212463,
-0.025828737765550613,
-0.1592748761177063,
0.13155978918075562,
0.22631710767745972,
0.03331156447529793,
-0.024890966713428497,
0.23055164515972137,
-0.053137533366680145,
-0.4014606475830078,
0.06751589477062225,
-0.1941777467727661,
0.18351320922374725,
-0.02403479814529419,
0.5270874500274658,
-0.09943412989377975,
0.5241095423698425,
0.09161832928657532,
0.2641538381576538,
-0.12291970103979111,
-0.07961912453174591,
0.028933746740221977,
0.0015675341710448265,
0.1388511061668396,
0.19107520580291748,
-0.047642409801483154,
-0.18431732058525085,
0.44632256031036377,
0.2602834701538086,
0.022913310676813126,
-0.05856892094016075,
-0.11584261059761047,
0.12103928625583649,
0.21230627596378326,
0.053764987736940384,
0.1982228010892868,
0.1285327672958374,
-0.00993706937879324,
-0.021549440920352936,
0.13862624764442444,
0.17772583663463593,
-0.09430213272571564,
0.17931213974952698,
0.33389803767204285,
-0.044751912355422974,
0.07005083560943604,
-0.01512300968170166,
0.20968814194202423,
-0.26493847370147705,
0.4940427243709564,
-0.04270056635141373,
-0.3354872465133667,
-0.18271203339099884,
0.07921794801950455,
-0.07608796656131744,
-0.3811969757080078,
-0.3896958529949188,
0.28103622794151306,
0.15292873978614807,
-0.20521202683448792,
0.3210589289665222,
0.10227338969707489,
-0.2074386030435562,
-0.31839707493782043,
0.01410200260579586,
0.005058839917182922,
0.02059180662035942,
-0.0731969103217125,
-0.20814329385757446,
-0.10687315464019775,
-0.25478461384773254,
-0.314312607049942,
-0.24013032019138336,
0.34158653020858765,
0.02654808573424816,
0.3168654441833496,
0.982690155506134,
-0.0947197899222374,
-0.3102535307407379,
-0.0044008526019752026,
-0.288547545671463,
-0.1376717984676361,
-0.28108227252960205,
0.5194308757781982,
-0.0004586726427078247,
0.19117332994937897,
-0.1188182383775711,
0.4386410117149353,
-0.2460014522075653,
0.062433771789073944,
0.13398416340351105,
-0.0622345507144928,
0.3955078125,
0.2214665412902832,
-0.06691116094589233,
0.05658351629972458,
0.2403142750263214,
-0.18985463678836823,
0.07850772887468338,
0.17494916915893555,
0.1417318433523178,
-0.023439966142177582,
0.5813659429550171,
-0.1480277180671692,
-0.15876497328281403,
-0.35590434074401855,
-0.5103594660758972,
0.04819805920124054,
0.061479851603507996,
-0.04983829706907272,
-0.2668026089668274,
-0.3365260362625122,
0.13794824481010437,
0.4108256697654724,
-0.21857132017612457,
0.0828225314617157,
-0.03374483063817024,
-0.2657915949821472,
0.03135346248745918,
-0.03906320035457611,
-0.30620256066322327,
-0.2801222801208496,
0.08271989226341248,
0.23967523872852325,
0.07051254063844681,
0.11319237947463989,
0.15329410135746002,
-0.2490609884262085,
-0.39302048087120056,
0.2865011990070343,
0.024167858064174652,
0.13504627346992493,
-0.11266595870256424,
0.21596595644950867,
0.21238309144973755,
0.19002094864845276,
0.21709254384040833,
0.21957220137119293,
0.07736580818891525,
-0.2173910140991211,
-0.008111240342259407,
0.02413945272564888,
-0.006425525061786175,
-0.10758741199970245,
-0.07679746299982071,
0.2526225745677948,
0.11839362978935242,
0.15080425143241882,
-0.05511290580034256,
0.17012131214141846,
0.29723072052001953,
0.10124486684799194,
-0.16863416135311127,
-0.036153875291347504,
-0.39485856890678406,
0.08251194655895233,
0.013298165053129196,
-0.02050659991800785,
-0.1242799386382103,
0.17151769995689392,
0.3190530240535736,
-0.14972159266471863,
0.12844312191009521,
0.19389182329177856,
-0.20116448402404785,
0.016229193657636642,
0.25852516293525696,
-0.17997080087661743,
0.2840500771999359,
0.22471164166927338,
-0.007128376513719559,
0.17359410226345062,
-0.14914259314537048,
0.17779682576656342,
0.15074309706687927,
-0.008272215723991394,
0.3791610300540924,
0.08276611566543579,
0.49188393354415894,
0.06266007572412491,
0.04098697006702423,
-0.016479989513754845,
0.13259783387184143,
0.2742208242416382,
-0.12779466807842255,
-0.21259397268295288,
0.15665262937545776,
-0.06562161445617676,
-0.11279512941837311,
-0.2664133906364441,
-0.147663876414299,
-0.3067304790019989,
0.07486556470394135,
0.08029095083475113,
-0.07187984883785248,
0.06584647297859192,
-0.4538494348526001,
-0.03310878574848175,
0.04242456704378128,
-0.6114932894706726,
0.03387283533811569,
-0.2173403799533844,
0.19863742589950562,
-0.04201922193169594,
0.0002150489017367363,
-0.022387191653251648,
0.443603515625,
0.5154753923416138,
0.3509572744369507,
-0.44842812418937683,
-0.5637553334236145,
-0.0260128453373909,
-0.06252124160528183,
-0.05686519294977188,
0.007270790636539459,
-0.033459827303886414,
-0.12157196551561356,
-0.2443923056125641,
0.15785948932170868,
0.052099160850048065,
-0.17049454152584076,
-0.0017590411007404327,
-0.13900765776634216,
-0.07466207444667816,
-0.17795534431934357,
-0.11606016010046005,
-0.2536517381668091,
-0.20014117658138275,
0.4121742248535156,
0.3110242784023285,
0.16609813272953033,
0.1023300513625145,
0.06474289298057556,
-0.03939199820160866,
-0.104554682970047,
-0.2717069983482361,
0.04655100405216217,
0.2692863345146179,
0.3771944046020508,
-0.29055899381637573,
-0.07008744776248932,
0.12234994769096375,
-0.35894739627838135,
-0.013367626816034317,
0.3452509641647339,
-0.26812559366226196,
-0.10456325858831406,
-0.1315261423587799,
0.6544305086135864,
-0.18099479377269745,
0.06111091375350952,
0.4917135238647461,
0.18007639050483704,
0.1259661167860031,
0.06454858928918839,
-0.05752866715192795,
0.05817703902721405,
0.4751571714878082,
0.05369321256875992,
-0.1974354386329651,
0.3545248806476593,
-0.16389873623847961,
0.6824057698249817,
-0.26742327213287354,
-0.032454583793878555,
0.2890658378601074,
-0.45218756794929504,
0.12435184419155121,
-0.17546504735946655,
-0.05181536078453064,
-0.3754045367240906,
-0.04024586081504822,
-0.1911340206861496,
-0.19868303835391998,
-0.05920719355344772,
-0.25718462467193604,
-0.026964645832777023,
-0.07670094072818756,
-0.034670352935791016,
-0.14327749609947205,
0.2570277750492096,
-0.6129856109619141,
0.4767405688762665,
-0.023436279967427254,
-0.1636834740638733,
-0.5934671759605408,
-0.0892287865281105,
-0.16046211123466492,
-0.10271550714969635,
0.16458308696746826,
-0.29886484146118164,
-0.49197304248809814,
-0.43001654744148254,
-0.392071396112442,
0.01949208229780197,
0.19570165872573853,
0.1655500829219818,
0.03772995248436928,
-0.2686168849468231,
-0.03111061453819275,
0.0775839239358902,
0.2406379133462906,
-0.3599345088005066,
-0.16890501976013184,
0.02841084823012352,
0.28407400846481323,
-0.28315383195877075,
-0.05341409519314766,
0.14231261610984802,
0.2584647238254547,
-0.2029891461133957,
0.3765673041343689,
-0.24874639511108398,
0.1561359465122223,
0.48849815130233765,
0.046009961515665054,
-0.12589631974697113,
0.035954758524894714,
-0.2119244635105133,
-0.1457536518573761,
-0.12958474457263947,
-0.010205671191215515,
-0.10285457968711853,
-0.1048988550901413,
0.283260315656662,
-0.12690500915050507,
-0.34733518958091736,
0.052185311913490295,
-0.08328746259212494,
0.2079724371433258,
0.1858108639717102,
0.15459075570106506,
0.35816243290901184,
-0.1583479940891266,
-0.03778298944234848,
-0.018906405195593834,
0.4107251763343811,
0.03694700077176094,
-0.3677833676338196,
-0.27436915040016174,
-0.26123905181884766,
0.8111660480499268,
-0.05337263643741608,
0.04211655631661415,
0.6886078119277954,
-0.2510789632797241,
-0.08837740123271942,
-0.3154603838920593,
0.02379261888563633,
0.39555123448371887,
-0.2213720828294754,
-0.20909836888313293,
-0.44959139823913574,
0.6590725183486938,
-0.0608055517077446,
0.002297230064868927,
0.2921188473701477,
0.17649757862091064,
-0.20200875401496887,
0.6029343605041504,
0.02895154431462288,
0.7561177015304565,
-0.16065001487731934,
0.15962649881839752,
0.336675763130188,
-0.20070862770080566,
0.2806256115436554,
-0.11726637929677963,
-0.06488818675279617,
-0.3031123876571655,
-0.14779654145240784,
-0.03947323188185692,
-0.222287118434906,
0.0863226056098938,
0.1838236153125763,
-0.11417073011398315,
-0.1544332206249237,
-0.10096797347068787,
0.3915695250034332,
-0.02918730489909649,
0.33549824357032776,
0.055373258888721466,
-0.21203763782978058,
-0.15365196764469147,
-0.015315361320972443,
-0.10985662043094635,
-0.11938527226448059,
-0.16789284348487854,
-0.15533879399299622,
-0.28728142380714417,
-0.27756547927856445,
-0.11468171328306198,
-0.0427805632352829,
-0.260137677192688,
0.03985201194882393,
-0.02531575784087181,
-0.18990419805049896,
0.06469407677650452,
0.05958206206560135,
-0.06658917665481567,
-0.11982108652591705,
-0.0020899586379528046,
0.24607962369918823,
0.22790485620498657,
0.23593558371067047,
0.10825636982917786,
0.018383577466011047,
0.10201863944530487,
-0.03097791224718094,
-0.2448405921459198,
0.29573938250541687,
-0.16050605475902557,
-0.5123876929283142,
-0.03579534590244293,
0.015374686568975449,
0.10526280105113983,
-0.23303687572479248,
-0.3621772229671478,
0.14114171266555786,
-0.1420345902442932,
-0.11774404346942902,
0.043949514627456665,
0.03836232051253319,
-0.006554874591529369,
0.19055160880088806,
0.2257847785949707,
-0.11663173139095306,
0.045763205736875534,
0.0029493793845176697,
-0.03802018612623215,
0.18240860104560852,
0.45066189765930176,
-0.21037358045578003,
-0.00396338477730751,
0.004760410636663437,
0.041555486619472504,
0.2939324378967285,
-0.4868583083152771,
-0.2583298087120056,
0.27631816267967224,
0.15034236013889313,
-0.1729436069726944,
0.10778781771659851,
-0.2781783938407898,
0.26932278275489807,
-0.23988230526447296,
-0.08993615955114365,
-0.3913891911506653,
0.3100816011428833,
0.07208611071109772,
0.25648435950279236,
0.09135384112596512,
0.31308144330978394,
-0.24481166899204254,
0.28520601987838745,
-0.15283939242362976,
-0.21535290777683258,
0.3948775827884674,
0.311881959438324,
-0.018279526382684708,
0.35550132393836975,
0.06667011231184006,
-0.33695414662361145,
0.10577130317687988,
-0.07932968437671661,
0.1960592269897461,
-0.11483537405729294,
0.0333922915160656,
0.19066369533538818,
0.1341799795627594,
-0.2545536756515503,
-0.2706392705440521,
-0.3031238913536072,
-0.027734778821468353,
-0.18334068357944489,
-0.13022485375404358,
-0.27402159571647644,
-0.21453286707401276,
0.15254473686218262,
0.28623902797698975,
0.27206969261169434,
-0.14309555292129517,
0.12444555014371872,
0.02828843519091606,
0.11056891828775406,
-0.04097551479935646,
0.23311541974544525,
-0.21324217319488525,
0.20296227931976318,
-0.006632491480559111,
0.005566343665122986,
-0.05142325162887573,
-0.1476125717163086,
0.3038800358772278,
-0.13429893553256989,
0.08422176539897919,
-0.12516896426677704,
0.29009735584259033,
-0.022113390266895294,
-0.1756538301706314,
0.23964916169643402,
0.1706906259059906,
0.12197905778884888,
-0.3873327970504761,
0.17350853979587555,
0.3757995069026947,
-0.21743080019950867,
0.15063099563121796,
0.22362783551216125,
0.19726325571537018,
0.6157655715942383,
-0.27231889963150024,
0.022100791335105896,
-0.19723442196846008,
-0.13296480476856232,
0.07011853158473969,
0.6301003694534302,
0.08388154208660126,
-0.001154981553554535,
0.1873217672109604,
0.4594736099243164,
0.08961936831474304,
0.2704041004180908,
0.13087081909179688,
0.25272709131240845,
0.33279338479042053,
-0.4072868227958679,
0.19035375118255615,
-0.27552077174186707,
0.039606403559446335,
-0.04249897599220276,
0.3121158480644226,
-0.11318471282720566,
0.3751172721385956,
0.23978695273399353,
0.40419265627861023,
-0.17173387110233307,
0.1288268268108368,
0.1929614096879959,
-0.021271295845508575,
0.05748453363776207,
0.2609867751598358,
0.015400178730487823,
0.015205897390842438,
-0.19810903072357178,
-0.047091659158468246,
-0.3349759578704834,
0.023804105818271637,
0.03175139054656029,
0.1960812509059906,
0.12628936767578125,
0.6106852889060974,
0.308927059173584,
0.15002544224262238,
-0.11028753221035004,
-0.10664656013250351,
-0.39617204666137695,
-0.1840776801109314,
-0.19288598001003265,
0.08074115961790085,
0.028291044756770134,
0.15307411551475525,
-0.3865979313850403,
0.5614283680915833,
-0.06928297877311707,
-0.23056861758232117,
0.08210336416959763,
0.009992629289627075,
0.2477475106716156,
0.19524821639060974,
-0.11868275701999664,
0.08150669187307358,
-0.008298185653984547,
0.09474830329418182,
0.14387595653533936,
0.18825848400592804,
-0.20915652811527252,
0.46249061822891235,
0.2958877980709076,
-0.6133105754852295,
0.02036081627011299,
0.14280349016189575,
0.0756600871682167,
-0.19683237373828888,
0.32148921489715576,
0.1661863774061203,
-0.05560001730918884,
-0.2438008040189743,
-0.00706667173653841,
0.013825848698616028,
0.15968425571918488,
0.2941429615020752,
0.284810870885849,
-0.16666895151138306,
-0.08294587582349777,
-0.5021368265151978,
-0.013131126761436462,
-0.1394731104373932,
-0.23699863255023956,
0.4343597888946533,
0.05983361601829529,
0.16779784858226776,
0.05578494817018509,
0.27529364824295044,
-0.2091962844133377,
0.06860879808664322,
0.10435351729393005,
0.12135086953639984,
-0.2491118162870407,
-0.2200087159872055,
0.15547533333301544,
-0.14985251426696777,
-0.0473012700676918,
-0.0012170672416687012,
0.11408765614032745,
-0.07107657194137573,
-0.3338562846183777,
-0.15597105026245117,
0.04471038654446602,
0.1117585152387619,
0.48484206199645996,
-0.3177313804626465,
0.43254581093788147,
-0.07349123060703278,
0.20760655403137207,
-0.16443079710006714,
-0.3024151027202606,
-0.33498793840408325,
0.17365366220474243,
-0.19747158885002136,
0.14411339163780212,
0.10213176161050797,
-0.02773195132613182,
-0.26011019945144653,
-0.11214568465948105,
-0.39946448802948,
-0.4051247835159302,
-0.1675206571817398,
0.299875944852829,
-0.052384085953235626,
0.11328841000795364,
-0.09259595721960068,
-0.11970432847738266,
-0.06162787973880768,
0.26050713658332825,
0.010366581380367279,
-0.1340816766023636,
0.20295511186122894,
-0.063079833984375,
0.01871742308139801,
0.10502133518457413,
0.08107709139585495,
0.08594054728746414,
-0.02362568862736225,
-0.578328013420105,
-0.18106669187545776,
0.42278945446014404,
-0.06856173276901245,
0.21022085845470428,
0.3711637854576111,
0.0659884661436081,
0.21144653856754303,
-0.2180529534816742,
0.6425337791442871,
-0.49583813548088074,
0.28594717383384705,
-0.44400233030319214,
-0.29899680614471436
] |
https://github.com/huggingface/datasets/issues/256 | [Feature request] Add a feature to dataset | Maybe you can use `with_indices`?
```python
new_info = list of length dataset['train']
def some_function(indice, x):
# adds new_info[index of x] as a field to x
x['new_info'] = new_info_x[indice]
return x
dataset['train'] = dataset['train'].map(some_function, with_indices=True)
``` | Is there a straightforward way to add a field to the arrow_dataset, prior to performing map? | 35 | [Feature request] Add a feature to dataset
Is there a straightforward way to add a field to the arrow_dataset, prior to performing map?
Maybe you can use `with_indices`?
```python
new_info = list of length dataset['train']
def some_function(indice, x):
# adds new_info[index of x] as a field to x
x['new_info'] = new_info_x[indice]
return x
dataset['train'] = dataset['train'].map(some_function, with_indices=True)
``` | [
-0.10782389342784882,
-0.0950365737080574,
-0.1245012879371643,
-0.15144921839237213,
0.18715731799602509,
0.30071821808815,
0.18383561074733734,
0.2558494210243225,
0.32104358077049255,
0.1587403565645218,
0.5283858776092529,
0.6252444982528687,
-0.23471422493457794,
0.3278808891773224,
0.18763317167758942,
-0.05337563902139664,
0.014195434749126434,
0.22495710849761963,
0.08466669917106628,
0.06138865649700165,
-0.3617744743824005,
-0.45333215594291687,
-0.00695452094078064,
-0.19572795927524567,
-0.18811924755573273,
-0.09189746528863907,
0.09725143015384674,
-0.3355696201324463,
-0.13132159411907196,
-0.5429756045341492,
-0.03019658662378788,
-0.11675326526165009,
-0.0923570916056633,
0.052403297275304794,
-0.0001186417939607054,
-0.04220257326960564,
0.2212127149105072,
0.13399676978588104,
-0.05581381916999817,
-0.15940575301647186,
-0.5856687426567078,
-0.5728529095649719,
0.1825898289680481,
-0.3350242078304291,
-0.04295084998011589,
-0.22906704246997833,
0.05934884026646614,
-0.4260810613632202,
-0.18033047020435333,
0.057260576635599136,
0.16376425325870514,
-0.06798259168863297,
0.23376010358333588,
-0.03600158914923668,
0.45585110783576965,
0.15368646383285522,
-0.3162892460823059,
-0.2017422467470169,
0.006071515381336212,
0.004139945842325687,
0.25464436411857605,
0.28261515498161316,
0.12684130668640137,
-0.35485175251960754,
0.3918949067592621,
0.14017151296138763,
0.15555204451084137,
-0.23561528325080872,
-0.29178494215011597,
0.08046247065067291,
0.5871176719665527,
-0.2631477117538452,
-0.404574453830719,
-0.0798136293888092,
0.2646789848804474,
-0.4920727610588074,
-0.07414687424898148,
-0.14042691886425018,
0.19637323915958405,
-0.06944942474365234,
0.20919393002986908,
-0.43327948451042175,
0.014272242784500122,
0.2940421998500824,
0.2138613760471344,
0.5456324219703674,
0.11433393508195877,
0.09206509590148926,
-0.04232679679989815,
-0.16449622809886932,
0.07411091029644012,
-0.06184946000576019,
-0.00813477486371994,
0.4773370623588562,
-0.20431940257549286,
-0.27383485436439514,
0.12721669673919678,
-0.4587990939617157,
0.04426193982362747,
0.11551711708307266,
-0.04193153604865074,
-0.056599535048007965,
-0.1757654994726181,
0.1606501340866089,
0.1501176655292511,
0.10764773190021515,
0.005230367183685303,
0.26772135496139526,
-0.10153751075267792,
-0.3580121695995331,
-0.04434146732091904,
-0.2704426944255829,
0.22546692192554474,
-0.06495901197195053,
0.3445420563220978,
0.0479368194937706,
0.2750365734100342,
0.09163974225521088,
0.1036505326628685,
0.012058998458087444,
-0.16639819741249084,
-0.12385127693414688,
0.083985336124897,
0.1230354756116867,
0.2344733625650406,
0.0054375771433115005,
-0.12297938019037247,
0.337263286113739,
0.3458976447582245,
0.31120139360427856,
-0.10744255781173706,
-0.21263262629508972,
0.15473484992980957,
0.13930140435695648,
-0.07659418880939484,
0.08563782274723053,
0.18231895565986633,
-0.026980718597769737,
0.15824779868125916,
0.10241566598415375,
0.2272263467311859,
-0.18289759755134583,
0.2606951892375946,
0.21108978986740112,
-0.18375684320926666,
0.2089574784040451,
0.05182594060897827,
0.11678744852542877,
-0.3144630193710327,
0.3690933585166931,
-0.2824327349662781,
-0.3489384055137634,
-0.08264171332120895,
0.15238595008850098,
0.1272735297679901,
-0.344659686088562,
-0.1975739598274231,
0.4396522045135498,
0.03706519305706024,
-0.1894792914390564,
0.3492397367954254,
0.20721915364265442,
-0.43419259786605835,
-0.31297215819358826,
-0.027672959491610527,
0.1455976366996765,
0.012092836201190948,
-0.044805534183979034,
-0.2212405800819397,
0.0928502082824707,
-0.2608799934387207,
-0.21460378170013428,
-0.19814832508563995,
0.20574751496315002,
-0.06801718473434448,
0.3534965515136719,
0.859659731388092,
-0.10931660234928131,
-0.3311026096343994,
0.14190666377544403,
-0.3039418160915375,
-0.05116900056600571,
-0.13902896642684937,
0.5475515127182007,
0.10056762397289276,
0.01788187213242054,
0.0748453140258789,
0.2675640285015106,
-0.134120911359787,
-0.08106400817632675,
0.08019866049289703,
-0.07130193710327148,
0.3110400438308716,
0.07570700347423553,
-0.1374976485967636,
0.08273067325353622,
0.21402005851268768,
-0.4347314238548279,
0.01043165847659111,
0.18272171914577484,
0.03535173088312149,
0.14711767435073853,
0.4865826666355133,
-0.06227724254131317,
-0.13924609124660492,
-0.40232551097869873,
-0.3150688111782074,
0.08501113206148148,
0.25607526302337646,
-0.1315554678440094,
-0.056492313742637634,
-0.38380467891693115,
0.04119063913822174,
0.33761560916900635,
-0.09309510886669159,
0.19204777479171753,
0.01809844747185707,
-0.2580016255378723,
-0.27710217237472534,
-0.11425477266311646,
-0.38490021228790283,
-0.22026464343070984,
0.002569058910012245,
0.034021973609924316,
0.042967312037944794,
-0.038333289325237274,
0.2549906373023987,
-0.06940775364637375,
-0.4769136309623718,
0.17995493113994598,
0.013504073023796082,
0.06662066280841827,
-0.20327693223953247,
0.17553815245628357,
0.22847136855125427,
0.027920089662075043,
0.30766525864601135,
0.3209230303764343,
0.10659755021333694,
-0.21988080441951752,
-0.0806426852941513,
0.27857932448387146,
-0.010855177417397499,
-0.13450762629508972,
-0.11628425866365433,
0.2652429938316345,
-0.009050384163856506,
0.2704106271266937,
-0.17314547300338745,
0.05392530560493469,
0.1970144659280777,
0.0934339314699173,
-0.23762741684913635,
-0.1993032544851303,
-0.379241406917572,
0.004247507080435753,
-0.10104094445705414,
-0.1289854198694229,
-0.03706388175487518,
0.08359122276306152,
0.3455297648906708,
-0.10417526960372925,
0.14966228604316711,
0.1654144823551178,
-0.17373347282409668,
0.2314661741256714,
0.04431825131177902,
-0.22118507325649261,
0.27625900506973267,
0.25379812717437744,
-0.01672166958451271,
0.03874746337532997,
0.08605049550533295,
0.18444037437438965,
0.2718242406845093,
-0.007289960980415344,
0.21788106858730316,
0.04036536440253258,
0.31670135259628296,
0.07692957669496536,
0.04690036177635193,
-0.18509520590305328,
0.06648443639278412,
0.13589440286159515,
-0.1457650065422058,
-0.18152762949466705,
0.18904131650924683,
-0.013939015567302704,
-0.07008671760559082,
-0.19629815220832825,
-0.1267552226781845,
-0.2679472863674164,
0.02773936092853546,
-0.0038653649389743805,
-0.17718684673309326,
0.19430413842201233,
-0.396260142326355,
0.0961063802242279,
0.2864939868450165,
-0.6227660775184631,
0.09142795205116272,
-0.0902329534292221,
0.2919759750366211,
0.022517438977956772,
-0.02343538962304592,
-0.15010464191436768,
0.37811151146888733,
0.575196385383606,
0.31629371643066406,
-0.3572920858860016,
-0.42564815282821655,
-0.10765668749809265,
0.0035929009318351746,
0.0003380347043275833,
-0.06024502217769623,
0.04092523083090782,
-0.30328381061553955,
-0.2962276339530945,
0.060692109167575836,
0.1335875391960144,
-0.13462498784065247,
-0.2070714831352234,
0.002651953138411045,
0.06641136109828949,
-0.053892314434051514,
-0.12747833132743835,
-0.14594601094722748,
-0.35328245162963867,
0.42661523818969727,
0.19541305303573608,
0.14052192866802216,
0.06111867353320122,
0.195449560880661,
-0.04333341494202614,
0.07803764194250107,
-0.27255862951278687,
-0.11933783441781998,
0.052748288959264755,
0.41068577766418457,
-0.173050656914711,
0.1069866418838501,
0.03512253239750862,
-0.42682868242263794,
-0.22572597861289978,
0.380903959274292,
-0.2895035147666931,
-0.005832827650010586,
-0.12559916079044342,
0.5389931201934814,
-0.13417966663837433,
0.34054848551750183,
0.4850674569606781,
0.22279807925224304,
0.02946009300649166,
0.02103583514690399,
-0.19615688920021057,
0.02190808206796646,
0.4201478362083435,
0.11486752331256866,
0.023869194090366364,
0.3983839452266693,
-0.2614211440086365,
0.6585188508033752,
0.031671203672885895,
-0.032382216304540634,
0.206395223736763,
-0.35310178995132446,
0.1559423953294754,
-0.28165581822395325,
-0.22521495819091797,
-0.3181135952472687,
-0.0033167004585266113,
-0.2853699326515198,
-0.27817821502685547,
-0.11555922776460648,
-0.30262047052383423,
0.1344175785779953,
-0.07037678360939026,
0.045207053422927856,
-0.03131668269634247,
0.32762083411216736,
-0.6335790753364563,
0.42300477623939514,
-0.17747332155704498,
-0.08645272254943848,
-0.5579730272293091,
-0.02812766470015049,
-0.056711822748184204,
-0.17179013788700104,
0.3356388807296753,
-0.45896533131599426,
-0.30397433042526245,
-0.30268609523773193,
-0.3731931447982788,
0.09120112657546997,
0.34209543466567993,
0.03029756247997284,
0.0303824283182621,
-0.2465755045413971,
-0.19401182234287262,
0.21992531418800354,
0.3768104910850525,
-0.6040031909942627,
-0.3728712201118469,
0.07225172221660614,
0.1896485686302185,
-0.20595379173755646,
0.1057903915643692,
0.13498705625534058,
0.3845052123069763,
-0.21287493407726288,
0.6205477118492126,
-0.1530640423297882,
0.2649078071117401,
0.3790737986564636,
0.033612869679927826,
-0.1378069818019867,
-0.07590760290622711,
-0.09623649716377258,
0.08342326432466507,
-0.02789231203496456,
0.18274782598018646,
-0.03109428659081459,
-0.15286695957183838,
0.3558151423931122,
-0.3106110394001007,
-0.39903220534324646,
0.044554755091667175,
-0.027651533484458923,
0.029153622686862946,
0.240865558385849,
0.3204193413257599,
0.2974683344364166,
0.036419425159692764,
-0.060296617448329926,
-0.15779463946819305,
0.3897460103034973,
-0.12093207240104675,
-0.20562562346458435,
-0.28243982791900635,
-0.13460280001163483,
0.7198036909103394,
0.131731316447258,
0.12657664716243744,
0.6759861707687378,
-0.16259688138961792,
-0.009566254913806915,
-0.44399917125701904,
-0.10296368598937988,
0.518278956413269,
-0.12298537790775299,
-0.2245127409696579,
-0.543235182762146,
0.646330714225769,
-0.004804156720638275,
-0.028294764459133148,
0.5440330505371094,
0.2531406283378601,
-0.13545173406600952,
0.5383808612823486,
0.11782262474298477,
0.8973996043205261,
-0.13866929709911346,
0.042833562940359116,
0.12145077437162399,
-0.07174121588468552,
0.26726722717285156,
-0.10205717384815216,
0.02577640302479267,
-0.16645796597003937,
-0.47322022914886475,
-0.0056552402675151825,
-0.1722009927034378,
-0.049439847469329834,
0.21971912682056427,
-0.17598508298397064,
-0.07354523241519928,
-0.2605406641960144,
0.4527996778488159,
-0.11419171094894409,
0.11354297399520874,
0.044523388147354126,
-0.1808197796344757,
0.006223692558705807,
0.058720655739307404,
0.15786771476268768,
-0.14149656891822815,
-0.1113806664943695,
-0.21460090577602386,
-0.15426525473594666,
-0.16475029289722443,
-0.10840897262096405,
-0.07963019609451294,
-0.38265568017959595,
0.221546933054924,
-0.23016473650932312,
-0.18397824466228485,
0.17916931211948395,
-0.1137896329164505,
-0.014622136950492859,
0.044529397040605545,
0.019647466018795967,
0.1710757613182068,
0.46105894446372986,
0.3057670593261719,
0.08220715820789337,
-0.05105961859226227,
0.05502048879861832,
0.11929648369550705,
-0.24213415384292603,
0.3804897964000702,
-0.13335660099983215,
-0.6124709844589233,
-0.11940127611160278,
0.13560327887535095,
-0.031511083245277405,
-0.3286581039428711,
-0.41655460000038147,
0.31461891531944275,
-0.11657828092575073,
-0.09958337247371674,
0.097547248005867,
0.050689660012722015,
-0.168063685297966,
0.26017361879348755,
0.25283586978912354,
-0.10141472518444061,
0.07540293037891388,
0.0831807404756546,
-0.03911329060792923,
0.21924293041229248,
0.39504846930503845,
-0.3613194227218628,
-0.08344510942697525,
-0.059559933841228485,
0.13187825679779053,
0.4349038600921631,
-0.13643212616443634,
-0.11470775306224823,
0.012586121447384357,
0.027343615889549255,
-0.2294478714466095,
0.08169634640216827,
-0.20323221385478973,
0.4445790946483612,
-0.33318233489990234,
-0.12998411059379578,
-0.5196352601051331,
0.374531090259552,
0.039271362125873566,
0.2512500286102295,
-0.27027976512908936,
-0.06735716760158539,
-0.39127567410469055,
0.19432654976844788,
-0.24370354413986206,
-0.09802766144275665,
0.2978033721446991,
0.27289879322052,
0.11469130963087082,
0.39287862181663513,
0.2577613890171051,
-0.2183414250612259,
0.15424443781375885,
-0.08650466054677963,
0.06228388845920563,
-0.20511257648468018,
-0.02924959361553192,
0.13380123674869537,
0.029896121472120285,
-0.24345429241657257,
-0.24044393002986908,
-0.3856898546218872,
-0.05833489075303078,
-0.2634614109992981,
-0.21876971423625946,
-0.03885190561413765,
-0.14610333740711212,
0.01602420210838318,
0.07783321291208267,
0.10177209973335266,
-0.0719095915555954,
0.1752554178237915,
0.04170143976807594,
0.13981395959854126,
0.03119765594601631,
0.14634087681770325,
-0.11060784757137299,
0.18954017758369446,
0.019301490858197212,
0.024218447506427765,
0.05647744983434677,
-0.049092285335063934,
0.3163781464099884,
-0.09125860035419464,
0.11301693320274353,
0.25136932730674744,
0.3021385669708252,
0.048238180577754974,
-0.27884650230407715,
0.28147396445274353,
0.05082174763083458,
0.213178351521492,
-0.33024120330810547,
-0.002898280043154955,
0.38261842727661133,
-0.06308919936418533,
0.2883569002151489,
0.2152557522058487,
0.1268397718667984,
0.47748589515686035,
-0.19028444588184357,
-0.08661321550607681,
-0.37257853150367737,
-0.19182249903678894,
0.1518881618976593,
0.5361403822898865,
0.2544223666191101,
-0.19718651473522186,
0.17848935723304749,
0.48637837171554565,
0.3134150803089142,
0.4343244433403015,
0.2641361355781555,
0.2552034258842468,
0.4459420144557953,
-0.26358741521835327,
0.12865523993968964,
-0.22624914348125458,
0.29115399718284607,
-0.01785936951637268,
0.12147494405508041,
-0.016997121274471283,
0.5025033354759216,
-0.06561163812875748,
0.11539096385240555,
-0.15993332862854004,
0.1441005915403366,
0.08186884224414825,
-0.047889985144138336,
-0.03957819566130638,
0.41957515478134155,
0.011024706065654755,
-0.0604545883834362,
-0.26545998454093933,
0.026690931990742683,
-0.2186068445444107,
0.184766486287117,
0.0014628097414970398,
0.34794145822525024,
0.19774970412254333,
0.4370705187320709,
0.36954689025878906,
0.43131935596466064,
-0.1343776285648346,
-0.19090761244297028,
-0.2854829430580139,
-0.07315914332866669,
-0.14572672545909882,
0.24913328886032104,
-0.055134568363428116,
0.09631950408220291,
-0.379445344209671,
0.5683106184005737,
-0.045650165528059006,
-0.2661436200141907,
-0.005540048703551292,
-0.014286089688539505,
0.1434997171163559,
0.005098981782793999,
-0.13831253349781036,
0.11909237504005432,
-0.09623587876558304,
0.2658429443836212,
0.00995173305273056,
0.24203312397003174,
-0.27718961238861084,
0.1542341709136963,
0.23918485641479492,
-0.40783220529556274,
-0.12459304928779602,
0.026088379323482513,
0.15422824025154114,
-0.19145825505256653,
0.48529475927352905,
0.00762166827917099,
-0.013767732307314873,
-0.021427031606435776,
0.05038017779588699,
-0.07386335730552673,
0.028605466708540916,
0.22435711324214935,
0.09719698876142502,
-0.25348570942878723,
0.021725468337535858,
-0.3139696717262268,
0.018377624452114105,
-0.06399063766002655,
-0.05597788840532303,
0.3210715651512146,
0.10840678215026855,
0.2041667401790619,
-0.000658813863992691,
0.25461864471435547,
-0.45064330101013184,
0.10942313820123672,
0.23184357583522797,
0.08016970753669739,
-0.25064730644226074,
-0.2650769352912903,
0.08355120569467545,
0.027951397001743317,
0.02544879913330078,
-0.08696775138378143,
0.12552055716514587,
0.0404844656586647,
-0.20183373987674713,
-0.23397885262966156,
-0.16143622994422913,
0.02956780418753624,
0.5203288197517395,
-0.22103585302829742,
0.2648937404155731,
-0.2581798732280731,
0.12992648780345917,
-0.05478007718920708,
-0.28840744495391846,
-0.3066641688346863,
0.28253641724586487,
-0.03085298463702202,
0.15206338465213776,
-0.0400991328060627,
-0.06604284048080444,
-0.24539269506931305,
-0.09550551325082779,
-0.32519227266311646,
-0.5171807408332825,
-0.23708970844745636,
0.19826380908489227,
-0.21439620852470398,
0.007813902571797371,
-0.16096149384975433,
0.0979323461651802,
-0.0672009065747261,
0.24129609763622284,
0.2947177290916443,
-0.0845283791422844,
0.28291040658950806,
0.0013368073850870132,
-0.017346488311886787,
0.022088326513767242,
0.0324636772274971,
0.22646787762641907,
0.1670636385679245,
-0.472306489944458,
-0.2758607268333435,
0.42746737599372864,
-0.07081396132707596,
0.04584241285920143,
0.1943082958459854,
0.02714502066373825,
0.26291462779045105,
-0.1414743959903717,
0.4539397656917572,
-0.3408812880516052,
0.36873531341552734,
-0.30939382314682007,
-0.28069519996643066
] |
https://github.com/huggingface/datasets/issues/254 | [Feature request] Be able to remove a specific sample of the dataset | Oh yes you can now do that with the `dataset.filter()` method that was added in #214 | As mentioned in #117, it's currently not possible to remove a sample of the dataset.
But it is a important use case : After applying some preprocessing, some samples might be empty for example. We should be able to remove these samples from the dataset, or at least mark them as `removed` so when iterating the dataset, we don't iterate these samples.
I think it should be a feature. What do you think ?
---
Any work-around in the meantime ? | 16 | [Feature request] Be able to remove a specific sample of the dataset
As mentioned in #117, it's currently not possible to remove a sample of the dataset.
But it is a important use case : After applying some preprocessing, some samples might be empty for example. We should be able to remove these samples from the dataset, or at least mark them as `removed` so when iterating the dataset, we don't iterate these samples.
I think it should be a feature. What do you think ?
---
Any work-around in the meantime ?
Oh yes you can now do that with the `dataset.filter()` method that was added in #214 | [
0.15247106552124023,
-0.06869028508663177,
-0.1469651609659195,
-0.2211097925901413,
-0.3081417679786682,
0.04516687989234924,
0.22104156017303467,
0.30834564566612244,
-0.08783401548862457,
0.3214424252510071,
0.1547529697418213,
0.32217493653297424,
-0.1845390945672989,
0.2033202052116394,
-0.0725192278623581,
-0.07253451645374298,
-0.13443559408187866,
0.20645534992218018,
-0.041687190532684326,
0.10553726553916931,
-0.15164358913898468,
-0.09283135086297989,
-0.16311228275299072,
0.036466438323259354,
0.00013925251550972462,
-0.15900972485542297,
0.19281354546546936,
-0.3438686728477478,
-0.23199604451656342,
-0.2637734115123749,
0.2420484572649002,
0.5169216394424438,
0.07834164053201675,
-0.10507430881261826,
-0.00010500229109311476,
-0.19779755175113678,
0.2854298949241638,
0.02522868476808071,
-0.32004687190055847,
0.042735159397125244,
-0.2964934706687927,
-0.004287026822566986,
0.09996680170297623,
-0.025343261659145355,
0.05831914395093918,
-0.028504133224487305,
-0.12375377118587494,
-0.17155969142913818,
0.018393732607364655,
0.29118970036506653,
0.3215633034706116,
0.23546525835990906,
-0.373835951089859,
-0.03798956423997879,
0.1803826242685318,
0.6441885828971863,
-0.2491365522146225,
-0.1939593404531479,
0.4327886998653412,
-0.13875111937522888,
0.05430882051587105,
0.48140087723731995,
-0.13519519567489624,
0.06587192416191101,
0.21648257970809937,
-0.213124617934227,
-0.17434442043304443,
-0.5935268402099609,
0.11514990031719208,
0.35805806517601013,
0.7855472564697266,
-0.14815261960029602,
-0.15149027109146118,
-0.0695590153336525,
-0.07389459758996964,
-0.2212248146533966,
-0.20486852526664734,
0.07939542829990387,
-0.41284045577049255,
0.2999524474143982,
-0.30559954047203064,
-0.2568861246109009,
-0.13694261014461517,
-0.056219153106212616,
0.018854863941669464,
0.05795980989933014,
0.02530038356781006,
0.03019719198346138,
0.23653845489025116,
0.19844068586826324,
0.3114849328994751,
0.16108016669750214,
0.040073007345199585,
0.2651868462562561,
-0.1797465682029724,
-0.3887879550457001,
-0.011524572968482971,
-0.24429503083229065,
0.43769147992134094,
0.3863372206687927,
0.06655607372522354,
0.0049874670803546906,
0.03851504251360893,
0.0994899794459343,
0.5406312346458435,
-0.027565788477659225,
0.346423864364624,
-0.029067493975162506,
0.15846684575080872,
-0.03940122574567795,
0.14273369312286377,
-0.04182218760251999,
0.41673779487609863,
0.025368064641952515,
0.05896029248833656,
0.11281770467758179,
0.468858540058136,
-0.23802900314331055,
-0.436364084482193,
0.0637962818145752,
-0.22821584343910217,
-0.10351188480854034,
-0.17434175312519073,
0.0179101824760437,
0.49648651480674744,
-0.1212320551276207,
-0.2533373236656189,
-0.02542070299386978,
-0.22520646452903748,
-0.4202362895011902,
-0.09881225973367691,
0.11546957492828369,
-0.10273115336894989,
-0.28015410900115967,
0.15785957872867584,
-0.0488455556333065,
0.33152931928634644,
-0.10671833902597427,
0.14422720670700073,
0.020321108400821686,
0.3713671863079071,
-0.09950816631317139,
0.4219817817211151,
0.3568202555179596,
-0.2871769964694977,
-0.06215991824865341,
-0.10544221103191376,
0.16765326261520386,
-0.25525638461112976,
0.44636937975883484,
-0.0001655668020248413,
-0.2190544456243515,
-0.2839263677597046,
0.19908057153224945,
0.0979907438158989,
-0.1039067804813385,
-0.0032374337315559387,
0.3359583020210266,
-0.28228676319122314,
0.15485459566116333,
0.10225345939397812,
-0.06104139983654022,
-0.16287708282470703,
-0.010246926918625832,
-0.11155951768159866,
0.2041347175836563,
-0.40114012360572815,
0.06567831337451935,
-0.3449181318283081,
-0.32454782724380493,
0.1461312472820282,
-0.09181194007396698,
-0.35621634125709534,
0.17579787969589233,
-0.19459199905395508,
0.2514720559120178,
0.20058602094650269,
-0.04437696933746338,
-0.2376704216003418,
0.3638540804386139,
-0.08641805499792099,
0.09281764924526215,
-0.24696063995361328,
0.18490275740623474,
0.10595472902059555,
-0.1491413712501526,
-0.32979607582092285,
0.0477573536336422,
-0.15880024433135986,
-0.1968524158000946,
-0.03131483122706413,
-0.39382991194725037,
0.3564230799674988,
-0.07550045847892761,
0.31616485118865967,
0.2220144271850586,
0.2586923837661743,
-0.1761612743139267,
0.3409663140773773,
0.08201701939105988,
0.17537641525268555,
0.10095006972551346,
0.6998934149742126,
-0.18351419270038605,
0.004000993445515633,
-0.3151395320892334,
-0.281279593706131,
-0.051627058535814285,
-0.1388116180896759,
-0.1276288628578186,
0.19394317269325256,
-0.5064942240715027,
-0.014519982971251011,
-0.04483622685074806,
-0.06564325094223022,
-0.24651864171028137,
0.07821891456842422,
-0.23712584376335144,
0.03407401964068413,
-0.38306528329849243,
-0.5653284192085266,
0.014514690265059471,
-0.20146018266677856,
0.0020715417340397835,
-0.13193772733211517,
-0.14684519171714783,
0.23931294679641724,
0.11317761987447739,
0.1452043354511261,
0.19616733491420746,
0.06579934805631638,
-0.0660899430513382,
-0.08903156220912933,
0.2003377079963684,
0.2784399390220642,
-0.2950911521911621,
-0.0846455916762352,
0.03591164946556091,
0.09922652691602707,
-0.1669362187385559,
-0.011224711313843727,
0.13641932606697083,
-0.03300965577363968,
0.10667348653078079,
-0.24761536717414856,
0.37437278032302856,
-0.21147175133228302,
0.2994425296783447,
-0.1655462086200714,
0.07406239956617355,
0.252615362405777,
-0.23435696959495544,
-0.12350594997406006,
-0.17970487475395203,
-0.029926832765340805,
0.027166137471795082,
-0.02108972705900669,
-0.17401528358459473,
-0.2960757613182068,
0.11433495581150055,
-0.05259566381573677,
0.15039396286010742,
-0.06752843409776688,
0.2828570008277893,
0.1135300025343895,
-0.12670990824699402,
0.16031809151172638,
0.17151427268981934,
0.3910122513771057,
0.15523113310337067,
-0.0733543336391449,
-0.024597952142357826,
0.45575129985809326,
0.038287706673145294,
0.10788919776678085,
0.1832900047302246,
-0.1343277394771576,
-0.019992992281913757,
-0.04288636893033981,
-0.08447344601154327,
-0.3788736164569855,
-0.05677936226129532,
-0.028335794806480408,
0.08681929856538773,
-0.01683393120765686,
-0.05512281507253647,
-0.20230792462825775,
-0.5482843518257141,
0.07572977989912033,
0.1905258744955063,
-0.14024055004119873,
-0.13961996138095856,
0.27622851729393005,
0.16739864647388458,
-0.2793147563934326,
0.23970651626586914,
-0.07185293734073639,
0.6686887741088867,
-0.3121204376220703,
0.32650187611579895,
0.027734816074371338,
-0.010819301009178162,
0.05749594420194626,
0.24586397409439087,
-0.16570432484149933,
0.3721703588962555,
0.6059104800224304,
0.20864927768707275,
-0.16102325916290283,
-0.49740350246429443,
-0.2689964175224304,
0.18128107488155365,
0.01889813132584095,
0.2495715618133545,
0.2859070897102356,
0.10402266681194305,
0.012930143624544144,
0.043763499706983566,
-0.3359830975532532,
-0.2038431018590927,
-0.3055730164051056,
-0.30221009254455566,
0.05538564175367355,
0.33139270544052124,
-0.229862242937088,
-0.07973580807447433,
-0.28244099020957947,
-0.20691920816898346,
0.10348816215991974,
-0.06935971975326538,
0.22199437022209167,
0.04093857854604721,
-0.22763271629810333,
-0.11302927881479263,
-0.1559121459722519,
-0.29180189967155457,
-0.24315141141414642,
-0.44992074370384216,
-0.2808900773525238,
-0.21447062492370605,
-0.239610955119133,
0.04522586986422539,
0.2854365110397339,
0.030909964814782143,
0.1576341688632965,
-0.14079877734184265,
-0.35387009382247925,
-0.019396541640162468,
0.26197630167007446,
-0.07103670388460159,
-0.07387591153383255,
0.14761506021022797,
0.0599195696413517,
-0.06545083224773407,
-0.02564496360719204,
-0.14643611013889313,
0.07591276615858078,
0.15968719124794006,
0.006143487989902496,
0.16685238480567932,
0.19871068000793457,
0.05614550784230232,
0.6262661218643188,
0.14652487635612488,
0.07187759876251221,
0.2946552634239197,
0.09827771037817001,
0.2543914318084717,
-0.1454627513885498,
-0.2613230347633362,
0.1503058671951294,
0.027746349573135376,
-0.17628046870231628,
0.3424515128135681,
-0.17526990175247192,
-0.3346102833747864,
0.13410982489585876,
-0.09567758440971375,
0.027436576783657074,
-0.21737957000732422,
0.09905905276536942,
0.0027678608894348145,
0.2048642933368683,
0.10396076738834381,
-0.046942077577114105,
-0.13341528177261353,
-0.110060915350914,
-0.05124242231249809,
-0.02318432182073593,
0.5291540026664734,
-0.10405337065458298,
-0.7140026688575745,
-0.08836816251277924,
-0.39179110527038574,
0.1126016303896904,
0.10151912271976471,
0.1368480622768402,
-0.015584737062454224,
0.06944525241851807,
0.08839786797761917,
0.32377541065216064,
0.4941776394844055,
-0.12657174468040466,
-0.10960888862609863,
0.0995546281337738,
-0.1879328042268753,
0.2218266874551773,
0.06909176707267761,
0.12239895761013031,
0.5511654615402222,
-0.06330686807632446,
-0.05561800301074982,
-0.0565514862537384,
-0.3648303747177124,
0.5033465623855591,
0.4331120252609253,
-0.270109623670578,
-0.07433880120515823,
0.13397732377052307,
-0.4539625346660614,
-0.16237491369247437,
0.187419593334198,
0.3584504723548889,
-0.017789790406823158,
0.10468553751707077,
-0.21196724474430084,
0.014727579429745674,
-0.20319190621376038,
0.22605210542678833,
-0.1402353197336197,
0.09246835857629776,
0.16951650381088257,
0.09728653728961945,
-0.0337338000535965,
0.04439130797982216,
0.3359936475753784,
0.14401942491531372,
-0.23375824093818665,
-0.1483156979084015,
-0.05029810965061188,
-0.4831165671348572,
0.5759851932525635,
0.402535080909729,
0.06612871587276459,
0.48065662384033203,
-0.16112858057022095,
0.1067107692360878,
-0.1430116444826126,
0.03510056063532829,
-0.07897333800792694,
-0.3594428598880768,
-0.2998983860015869,
-0.37735775113105774,
0.14520755410194397,
-0.2390555739402771,
-0.13542956113815308,
0.5034414529800415,
0.06632839888334274,
-0.33768773078918457,
0.26006293296813965,
0.12797455489635468,
0.8335615992546082,
0.21015121042728424,
-0.16587479412555695,
-0.3197428286075592,
0.36679500341415405,
0.4445441663265228,
-0.06614361703395844,
0.1481739580631256,
-0.15171083807945251,
-0.46509453654289246,
-0.09869002550840378,
0.09116117656230927,
0.24580180644989014,
0.17089714109897614,
0.3036310076713562,
0.1425013691186905,
-0.3331364393234253,
0.238297700881958,
0.09685654938220978,
0.2040427178144455,
0.20447903871536255,
0.08663962781429291,
0.27964168787002563,
0.14445458352565765,
-0.15371862053871155,
0.13642393052577972,
-0.014668860472738743,
0.014741417020559311,
0.4568224847316742,
-0.1832941472530365,
-0.08785178512334824,
-0.2767694890499115,
-0.23192653059959412,
0.1737443506717682,
-0.1677434742450714,
-0.22517427802085876,
0.03703894466161728,
-0.04128923639655113,
0.2246525138616562,
-0.1624143272638321,
-0.007251029834151268,
0.2616112530231476,
0.43054601550102234,
0.26134657859802246,
-0.1821853369474411,
0.08929290622472763,
0.06743286550045013,
-0.21702852845191956,
-0.17402008175849915,
0.1998305320739746,
-0.08822730928659439,
-0.6302381157875061,
0.04511861503124237,
-0.037080541253089905,
0.13949847221374512,
-0.2621926963329315,
-0.17782755196094513,
0.0797661617398262,
0.19987766444683075,
-0.26623183488845825,
0.17913715541362762,
0.41972655057907104,
-0.1594318449497223,
0.3291672468185425,
0.14194244146347046,
-0.11083822697401047,
-0.13112390041351318,
-0.19657179713249207,
0.24859637022018433,
-0.22296969592571259,
0.2435825765132904,
-0.16651004552841187,
-0.21721787750720978,
-0.36151745915412903,
0.09784554690122604,
0.04207615181803703,
-0.29944825172424316,
0.33115118741989136,
-0.15712252259254456,
0.12121941149234772,
-0.07682383060455322,
0.3186172544956207,
-0.26237690448760986,
-0.07797541469335556,
-0.14588408172130585,
-0.11703003942966461,
-0.10968492180109024,
-0.12496691942214966,
-0.2324271947145462,
0.27653154730796814,
-0.31720447540283203,
0.0709192156791687,
-0.29928073287010193,
0.09492702782154083,
-0.35202211141586304,
0.013193723745644093,
0.20193028450012207,
0.330915629863739,
0.21085970103740692,
0.41986608505249023,
-0.1643502116203308,
-0.13817410171031952,
-0.025409279391169548,
0.09089401364326477,
0.10136208683252335,
-0.276356041431427,
-0.23958417773246765,
0.12835732102394104,
-0.1529340147972107,
-0.2567758560180664,
0.07819701731204987,
0.1844085454940796,
-0.23508375883102417,
0.01148858480155468,
0.24109125137329102,
0.0812472328543663,
0.2036149650812149,
0.369684636592865,
0.21261613070964813,
-0.31433752179145813,
-0.1465887725353241,
0.20539617538452148,
0.11152119934558868,
0.0902661457657814,
0.03731074929237366,
0.1750396490097046,
0.10161051154136658,
-0.0006021484732627869,
-0.013576400466263294,
0.085176020860672,
-0.05805380642414093,
-0.03680230677127838,
-0.17073684930801392,
0.15921863913536072,
0.13805851340293884,
0.1906604915857315,
0.11466827988624573,
0.06743711978197098,
-0.20139595866203308,
0.08745741844177246,
0.22944599390029907,
0.3001912534236908,
-0.3757336735725403,
0.04771576449275017,
0.21901613473892212,
-0.03728781268000603,
0.048004064708948135,
0.11765027791261673,
0.3379620909690857,
0.27581459283828735,
0.19446147978305817,
-0.14271384477615356,
0.14667853713035583,
-0.04335892200469971,
0.19661734998226166,
0.5363407135009766,
0.07790617644786835,
-0.09129326045513153,
0.20901094377040863,
0.22494402527809143,
0.08971352875232697,
0.242948979139328,
-0.2368641495704651,
0.7157300710678101,
0.4475235641002655,
0.11865025013685226,
0.04491613805294037,
-0.39070120453834534,
0.30616307258605957,
0.3439212441444397,
-0.08166517317295074,
0.032626572996377945,
0.39759984612464905,
0.0549345463514328,
-0.021674849092960358,
-0.3226868212223053,
-0.1790696382522583,
0.25381577014923096,
0.009350882843136787,
-0.037295520305633545,
-0.23587195575237274,
-0.15257801115512848,
0.052613988518714905,
0.20899583399295807,
-0.02670999988913536,
-0.11314192414283752,
0.2701873779296875,
-0.13516144454479218,
-0.09691719710826874,
-0.0530758798122406,
0.21122828125953674,
-0.32971036434173584,
0.2764940857887268,
-0.1226813793182373,
-0.5608581900596619,
-0.344620943069458,
-0.06734584271907806,
0.33212172985076904,
0.3554747402667999,
-0.29084545373916626,
-0.10428021848201752,
0.10988503694534302,
-0.10221534967422485,
-0.36072343587875366,
0.005353430286049843,
-0.2886287569999695,
0.17039810121059418,
-0.00047219544649124146,
0.1374029815196991,
0.11338827013969421,
0.09339764714241028,
-0.06881409883499146,
0.03512132540345192,
0.38269102573394775,
0.10452316701412201,
-0.7485454082489014,
0.07542647421360016,
0.31334424018859863,
-0.18351446092128754,
0.022480033338069916,
-0.057337529957294464,
0.3456197679042816,
-0.050906118005514145,
0.4373702108860016,
-0.021236255764961243,
0.16521841287612915,
0.019916880875825882,
0.14346636831760406,
-0.4360466003417969,
-0.03861236944794655,
0.07424774765968323,
-0.2386053204536438,
-0.3269580006599426,
-0.17424464225769043,
-0.544541597366333,
-0.05266248434782028,
-0.08856076002120972,
0.09180773794651031,
0.5256836414337158,
-0.0007513333112001419,
0.05519946664571762,
0.26350390911102295,
-0.04821629822254181,
-0.2776598632335663,
0.10351607203483582,
0.040007125586271286,
-0.3905743658542633,
0.041805386543273926,
-0.1188071221113205,
0.3993770480155945,
0.11242759227752686,
-0.3543589413166046,
0.016486383974552155,
-0.21468870341777802,
0.05139941722154617,
-0.2378452867269516,
-0.21603034436702728,
0.4501122236251831,
0.26998472213745117,
0.3934667408466339,
0.0797203779220581,
-0.09021614491939545,
-0.012565147131681442,
-0.14074602723121643,
-0.1495809704065323,
0.008124280720949173,
-0.2722081243991852,
0.007037028670310974,
0.11928236484527588,
0.23221248388290405,
0.0687059536576271,
0.3768313527107239,
-0.21696875989437103,
0.3306804895401001,
-0.20011179149150848,
0.1520102620124817,
-0.3559269607067108,
-0.02005324326455593,
-0.037780486047267914,
0.008259807713329792,
0.2659197449684143,
0.17127004265785217,
-0.1545173078775406,
0.09603950381278992,
-0.3604623079299927,
-0.033816054463386536,
0.28701817989349365,
-0.4551141560077667,
-0.2992478907108307,
-0.17189429700374603,
0.3613576889038086,
0.1554853320121765,
-0.5626271963119507,
-0.33707812428474426,
-0.0743289515376091,
0.2759283781051636,
-0.17158463597297668,
0.22447043657302856,
0.34132179617881775,
-0.13812170922756195,
0.015497300773859024,
0.13426810503005981,
0.22555027902126312,
0.32966428995132446,
0.010961061343550682,
-0.04395388811826706,
-0.20933787524700165
] |
https://github.com/huggingface/datasets/issues/252 | NonMatchingSplitsSizesError error when reading the IMDB dataset | I just tried on my side and I didn't encounter your problem.
Apparently the script doesn't generate all the examples on your side.
Can you provide the version of `nlp` you're using ?
Can you try to clear your cache and re-run the code ? | Hi!
I am trying to load the `imdb` dataset with this line:
`dataset = nlp.load_dataset('imdb', data_dir='/A/PATH', cache_dir='/A/PATH')`
but I am getting the following error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/load.py", line 517, in load_dataset
save_infos=save_infos,
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 363, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 421, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=5929447, num_examples=4537, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}]
```
Am I overlooking something? Thanks! | 45 | NonMatchingSplitsSizesError error when reading the IMDB dataset
Hi!
I am trying to load the `imdb` dataset with this line:
`dataset = nlp.load_dataset('imdb', data_dir='/A/PATH', cache_dir='/A/PATH')`
but I am getting the following error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/load.py", line 517, in load_dataset
save_infos=save_infos,
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 363, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 421, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=5929447, num_examples=4537, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}]
```
Am I overlooking something? Thanks!
I just tried on my side and I didn't encounter your problem.
Apparently the script doesn't generate all the examples on your side.
Can you provide the version of `nlp` you're using ?
Can you try to clear your cache and re-run the code ? | [
-0.5058607459068298,
-0.12881070375442505,
0.01822526752948761,
0.34976696968078613,
0.14970548450946808,
0.20425567030906677,
0.04649067670106888,
0.42144668102264404,
0.23764574527740479,
0.07440589368343353,
-0.11682204902172089,
0.18232454359531403,
-0.261382132768631,
-0.1019231304526329,
-0.15735289454460144,
0.09799907356500626,
-0.11061861366033554,
0.21007008850574493,
0.07444283366203308,
0.06530684232711792,
-0.4028107523918152,
0.2740861177444458,
-0.3829881548881531,
-0.07002177834510803,
-0.39139285683631897,
-0.13322879374027252,
0.14591608941555023,
0.1515468955039978,
0.19135771691799164,
-0.3842666745185852,
0.348166286945343,
0.010943885892629623,
0.15339836478233337,
0.16258259117603302,
-0.00011615586117841303,
0.010485447943210602,
0.6431317329406738,
-0.2872525453567505,
-0.2771608233451843,
-0.27866679430007935,
-0.2890477478504181,
-0.2957003712654114,
0.29983898997306824,
-0.3556795120239258,
-0.09214206039905548,
-0.006996151991188526,
0.33322861790657043,
-0.4666481614112854,
0.10930413007736206,
0.1632327288389206,
0.17784589529037476,
0.1451752930879593,
-0.11867296695709229,
0.19795139133930206,
0.022769153118133545,
-0.11543574929237366,
-0.10673925280570984,
0.07674990594387054,
-0.02457631379365921,
-0.07225700467824936,
-0.11633019894361496,
0.23091092705726624,
-0.44658878445625305,
0.16891388595104218,
0.39011844992637634,
0.17549824714660645,
0.3332040011882782,
-0.2765014171600342,
0.0751740112900734,
0.2043977677822113,
0.5286697745323181,
-0.17592263221740723,
-0.29505518078804016,
-0.394942969083786,
0.028566081076860428,
-0.2426871508359909,
0.16411475837230682,
0.34928199648857117,
-0.23489779233932495,
-0.0012559518218040466,
-0.34589576721191406,
0.02429935894906521,
-0.22278299927711487,
0.1689741015434265,
0.3957195281982422,
0.10430417954921722,
0.11116763204336166,
0.07972785830497742,
0.2857828438282013,
-0.05810132622718811,
0.4545831084251404,
-0.08506165444850922,
0.14595787227153778,
0.14440366625785828,
-0.27104416489601135,
-0.07598802447319031,
-0.21710547804832458,
0.2746358811855316,
0.008276846259832382,
0.3213583827018738,
0.19679802656173706,
0.051680780947208405,
0.1436004787683487,
0.3109808564186096,
0.24493281543254852,
0.017076395452022552,
0.1431281566619873,
0.3343565762042999,
0.04980475455522537,
0.15742112696170807,
-0.12611261010169983,
-0.03626991808414459,
0.08530615270137787,
-0.03145634010434151,
0.08145023882389069,
0.15716475248336792,
0.26868659257888794,
-0.20994800329208374,
-0.5460678339004517,
-0.0010155392810702324,
-0.23328951001167297,
-0.16518867015838623,
0.09598927199840546,
0.27547475695610046,
-0.15367814898490906,
0.33193981647491455,
0.0422520637512207,
0.14243724942207336,
-0.3492202162742615,
-0.1216832771897316,
-0.23689806461334229,
0.17275001108646393,
-0.2033311128616333,
0.07712910324335098,
0.31588053703308105,
0.10440023243427277,
0.4351961612701416,
-0.19862224161624908,
-0.11535370349884033,
-0.04208951070904732,
0.4212338626384735,
-0.19036297500133514,
-0.07459422200918198,
0.22260965406894684,
0.197076678276062,
0.16234683990478516,
0.08705967664718628,
-0.05072995275259018,
-0.31885814666748047,
0.1813303828239441,
0.0028088241815567017,
-0.37743183970451355,
0.015083692967891693,
0.17903640866279602,
-0.19090376794338226,
-0.08627583086490631,
-0.03475325554609299,
0.11344131827354431,
0.13027042150497437,
-0.4634096920490265,
-0.20545348525047302,
-0.10737647116184235,
-0.27021652460098267,
-0.12326697260141373,
-0.016522444784641266,
0.5770251750946045,
0.03382853791117668,
-0.0637340322136879,
-0.14413364231586456,
0.00808853842318058,
0.5104396343231201,
0.38604602217674255,
-0.050884030759334564,
-0.16705292463302612,
-0.3651425838470459,
0.3389679789543152,
0.2271960973739624,
-0.4194646179676056,
-0.426326185464859,
0.48374471068382263,
0.006435960531234741,
0.25789567828178406,
0.32558244466781616,
0.40542805194854736,
0.12047784775495529,
-0.03258940577507019,
0.05214248597621918,
0.4240188002586365,
-0.13177058100700378,
-0.01428445428609848,
-0.28745898604393005,
-0.2950437068939209,
0.6005907654762268,
0.14942386746406555,
0.06876486539840698,
-0.04363646358251572,
0.018751055002212524,
0.4665600061416626,
0.3268420100212097,
-0.0016478709876537323,
-0.010888410732150078,
0.1649560034275055,
-0.24784474074840546,
0.32264602184295654,
-0.17363092303276062,
-0.17615839838981628,
-0.509129524230957,
0.07417898625135422,
-0.11290890723466873,
0.09083008021116257,
-0.17630429565906525,
-0.17812663316726685,
-0.08824414759874344,
-0.343161016702652,
-0.2358766347169876,
0.0028416886925697327,
0.10642373561859131,
0.2504611015319824,
-0.06044048070907593,
0.13977396488189697,
-0.17474037408828735,
0.5486711859703064,
0.0023629795759916306,
0.08294253051280975,
-0.8483418822288513,
0.323914110660553,
-0.1733105480670929,
-0.2676151990890503,
0.3004836440086365,
0.29649439454078674,
0.2826038897037506,
-0.15306620299816132,
-0.11416444927453995,
0.38941872119903564,
0.09103430807590485,
0.3174048066139221,
-0.16694703698158264,
-0.031952232122421265,
0.29273325204849243,
-0.36313411593437195,
0.1423189789056778,
0.2724505662918091,
0.1341874599456787,
-0.1109849214553833,
-0.0392150804400444,
0.2899013161659241,
-0.33003556728363037,
0.2139119803905487,
0.07908986508846283,
0.06293480098247528,
0.16034364700317383,
-0.14501738548278809,
-0.07457005977630615,
-0.43258655071258545,
0.4534668028354645,
0.16904166340827942,
-0.07186184823513031,
0.062217503786087036,
-0.3637729585170746,
-0.12391745299100876,
0.45984548330307007,
0.11397244036197662,
0.01681506261229515,
0.046944428235292435,
-0.05134836584329605,
-0.16675931215286255,
0.1503908932209015,
0.19136767089366913,
0.2858826518058777,
0.3570721745491028,
-0.11386340856552124,
0.08582644164562225,
-0.09416176378726959,
-0.18244148790836334,
0.10858858376741409,
0.15418648719787598,
0.26791203022003174,
0.33022332191467285,
-0.11676185578107834,
-0.056368064135313034,
-0.4007020592689514,
-0.2456366866827011,
0.016141457483172417,
0.33771249651908875,
-0.2668769061565399,
-0.15788033604621887,
-0.4097842872142792,
-0.4801178574562073,
-0.05684106796979904,
-0.084388867020607,
-0.14012424647808075,
-0.40546557307243347,
-0.11674553155899048,
0.5066663026809692,
0.09027627110481262,
0.20096899569034576,
-0.3860340118408203,
-0.056571558117866516,
-0.03842785581946373,
-0.14503341913223267,
-0.15850836038589478,
-0.3335527777671814,
-0.07117195427417755,
-0.045795030891895294,
0.3911580741405487,
0.22970326244831085,
0.36297348141670227,
-0.41760969161987305,
-0.09487960487604141,
0.06533733010292053,
0.054071538150310516,
-0.15775428712368011,
-0.08009156584739685,
0.07565640658140182,
0.06884579360485077,
0.07904984056949615,
0.15666915476322174,
-0.3845462203025818,
0.2842548191547394,
-0.27417153120040894,
-0.0760486051440239,
0.1950516253709793,
0.19364318251609802,
0.04192866384983063,
0.03538961336016655,
-0.3608494699001312,
-0.38797035813331604,
-0.43971365690231323,
0.019114959985017776,
0.2849383056163788,
0.10200817883014679,
0.1651657670736313,
-0.008908725343644619,
0.022369738668203354,
0.05462333932518959,
0.17856931686401367,
-0.1242077425122261,
0.02524201199412346,
0.3226630985736847,
-0.029078973457217216,
-0.11723800003528595,
0.05634557828307152,
0.05499756336212158,
0.15209928154945374,
-0.02235466055572033,
-0.4382070302963257,
-0.13491834700107574,
-0.14882045984268188,
0.11167117953300476,
-0.0901520699262619,
-0.20118723809719086,
0.36620354652404785,
0.1344195455312729,
-0.022055374458432198,
-0.028165409341454506,
-0.2943359613418579,
0.016757391393184662,
0.06942056864500046,
0.2837190330028534,
-0.014132533222436905,
0.5791600346565247,
-0.0643862932920456,
0.3804616332054138,
0.4987337589263916,
0.04556480422616005,
0.26855385303497314,
-0.1942722052335739,
0.23928788304328918,
-0.07486846297979355,
-0.3963813781738281,
0.04300618916749954,
-0.0659119188785553,
-0.09031060338020325,
0.10269009321928024,
-0.20373576879501343,
-0.2834112346172333,
-0.2474651336669922,
-0.31239181756973267,
-0.49281421303749084,
-0.20529165863990784,
-0.04197755455970764,
-0.3690466284751892,
0.06717128306627274,
0.11420837044715881,
0.15709537267684937,
-0.13669990003108978,
-0.478613942861557,
-0.0029996009543538094,
0.17202159762382507,
0.20185552537441254,
0.0454261377453804,
0.0023720934987068176,
0.1124931126832962,
-0.4285702109336853,
0.4104146361351013,
0.08919248729944229,
0.480906218290329,
-0.12759579718112946,
0.0004130415618419647,
0.1062377393245697,
-0.039648305624723434,
0.521579384803772,
-0.34768208861351013,
0.11479303240776062,
0.07725666463375092,
-0.11838538199663162,
-0.6588267683982849,
0.08736683428287506,
-0.13857883214950562,
0.3216622769832611,
0.47805139422416687,
0.311485230922699,
-0.2311038076877594,
-0.18514572083950043,
0.19537916779518127,
0.14984966814517975,
-0.1207047551870346,
-0.23557397723197937,
-0.20585274696350098,
-0.17151731252670288,
-0.4106161296367645,
-0.17136749625205994,
-0.04747924208641052,
0.29163530468940735,
0.1333780288696289,
-0.06957925856113434,
0.050281062722206116,
-0.19401153922080994,
0.3146006166934967,
0.06056220456957817,
0.277948260307312,
0.10746254771947861,
0.2539287805557251,
0.3060097098350525,
0.31583917140960693,
0.11119186133146286,
0.45032668113708496,
-0.014344166964292526,
0.04616588354110718,
-0.07414411753416061,
-0.1089511290192604,
0.11592897027730942,
0.17147135734558105,
0.08840848505496979,
-0.13650068640708923,
-0.03083120286464691,
-0.062235310673713684,
-0.17010743916034698,
-0.10185198485851288,
0.3103107810020447,
-0.07304925471544266,
-0.18008333444595337,
-0.589211106300354,
0.47530046105384827,
0.22448799014091492,
0.06447415053844452,
-0.05210600793361664,
0.05236903950572014,
-0.24500210583209991,
0.443809449672699,
0.146196648478508,
0.7782349586486816,
0.2315709888935089,
0.10153339803218842,
0.023329544812440872,
0.017487168312072754,
0.5530233383178711,
-0.0926305428147316,
0.4083077311515808,
-0.48353755474090576,
-0.12686242163181305,
-0.06918506324291229,
-0.14241936802864075,
0.02825726941227913,
-0.0034955330193042755,
-0.2602638304233551,
0.4872850775718689,
-0.12779328227043152,
-0.39517754316329956,
-0.2352563738822937,
0.4670634865760803,
-0.37402763962745667,
-0.06869980692863464,
-0.052219271659851074,
0.11086677014827728,
-0.23586751520633698,
0.2975407838821411,
0.09008011221885681,
-0.17186219990253448,
-0.047993797808885574,
-0.06039018929004669,
-0.3981964588165283,
0.21061953902244568,
-0.21927306056022644,
0.2922726273536682,
-0.2318601906299591,
-0.1582145392894745,
-0.04134275019168854,
0.15401798486709595,
0.11756858974695206,
-0.25763440132141113,
-0.24675816297531128,
-0.17269684374332428,
-0.024319082498550415,
-0.24386583268642426,
0.03164675086736679,
0.12614555656909943,
0.3964952826499939,
-0.13963384926319122,
-0.1136615127325058,
0.019618097692728043,
0.07920040935277939,
-0.2306172251701355,
0.21631336212158203,
-0.19969196617603302,
0.024709243327379227,
-0.16470010578632355,
-0.5514369010925293,
-0.029141657054424286,
-0.1771259754896164,
-0.14537805318832397,
0.09008878469467163,
-0.09608016908168793,
-0.18411491811275482,
0.07291261851787567,
0.06232573464512825,
-0.2890543043613434,
-0.06277152895927429,
0.5095927715301514,
0.18227344751358032,
0.10066640377044678,
0.4814753532409668,
0.008604861795902252,
-0.28073710203170776,
-0.2713315486907959,
0.10447763651609421,
-0.13354602456092834,
-0.4408506751060486,
0.1395948976278305,
-0.013084459118545055,
0.29149705171585083,
0.23849022388458252,
0.076812244951725,
0.2962934374809265,
0.11486254632472992,
-0.0730927586555481,
-0.4691391885280609,
-0.280709832906723,
0.15273559093475342,
-0.20835329592227936,
0.3305925130844116,
-0.1106206402182579,
0.24013099074363708,
0.03889288008213043,
0.07921942323446274,
-0.2634624242782593,
-0.0190832931548357,
-0.3192700743675232,
0.10413403809070587,
0.2587982416152954,
-0.22273436188697815,
0.0652066245675087,
0.11405238509178162,
0.11876507103443146,
0.08913232386112213,
-0.10066390782594681,
-0.13672907650470734,
-0.04415427893400192,
0.14903761446475983,
0.06984254717826843,
-0.24569515883922577,
-0.30870315432548523,
-0.11426828801631927,
-0.18540385365486145,
-0.11465059220790863,
-0.30264443159103394,
0.2923470735549927,
-0.09454792737960815,
0.5159417986869812,
-0.02560235932469368,
-0.18945255875587463,
-0.014907477423548698,
0.20850028097629547,
-0.3110039234161377,
0.33278530836105347,
-0.1651078313589096,
0.19613170623779297,
0.0702776238322258,
0.09524799883365631,
-0.031940676271915436,
-0.07853103429079056,
-0.05739796161651611,
0.017868807539343834,
0.2745208144187927,
-0.28783291578292847,
0.03306133672595024,
0.23505231738090515,
0.17434239387512207,
0.4963514506816864,
-0.04236539825797081,
-0.21415257453918457,
0.006215132772922516,
0.1651076078414917,
-0.4446522295475006,
0.1129387840628624,
0.5683695077896118,
0.028219718486070633,
-0.017522621899843216,
0.28859612345695496,
0.20169129967689514,
-0.026986338198184967,
-0.07953721284866333,
0.04915422946214676,
0.5171211957931519,
-0.30170613527297974,
0.13687628507614136,
0.14697040617465973,
0.04299673065543175,
-0.12275159358978271,
0.1644223928451538,
0.2118978351354599,
0.34364527463912964,
0.5141320824623108,
-0.19191038608551025,
0.3020540475845337,
-0.2119137942790985,
0.19079867005348206,
-0.3046918511390686,
-0.31634193658828735,
-0.11835016310214996,
0.2924261689186096,
0.015544205904006958,
0.18331006169319153,
-0.0010098516941070557,
0.2147729992866516,
-0.20411401987075806,
0.12571468949317932,
-0.22978536784648895,
0.13506734371185303,
-0.16725564002990723,
-0.032533563673496246,
-0.13844525814056396,
-0.0918377935886383,
-0.31041210889816284,
-0.019423220306634903,
-0.00982997938990593,
0.1213114783167839,
0.16993626952171326,
0.26257821917533875,
0.03484583646059036,
-0.3329255282878876,
0.06705714762210846,
0.060706667602062225,
0.19770044088363647,
-0.3414990305900574,
0.15062150359153748,
0.04275308549404144,
0.1671670377254486,
0.12540103495121002,
0.5256475806236267,
0.5326808094978333,
0.3818291127681732,
-0.4976462125778198,
0.10000970959663391,
0.07873450964689255,
-0.07441485673189163,
0.0051492080092430115,
0.41516897082328796,
0.24170973896980286,
0.12784940004348755,
0.3802848756313324,
0.0687551274895668,
-0.07183144241571426,
0.3295058608055115,
0.0849410817027092,
-0.06180228665471077,
-0.0501098707318306,
0.4606257677078247,
-0.1114087849855423,
0.08408171683549881,
-0.261666476726532,
0.09434960782527924,
-0.38215959072113037,
-0.27049800753593445,
0.31314119696617126,
-0.27780359983444214,
0.20219936966896057,
0.06264989078044891,
0.04186541214585304,
-0.3012951612472534,
0.4437074065208435,
0.32396483421325684,
-0.014916017651557922,
-0.3931867182254791,
-0.04517477750778198,
-0.6925980448722839,
0.14870300889015198,
-0.1757470816373825,
-0.11781853437423706,
0.05300304293632507,
0.38866814970970154,
-0.2979029715061188,
0.0005522668361663818,
-0.062254369258880615,
0.5312162637710571,
-0.13506720960140228,
0.10482750833034515,
-0.11336483061313629,
-0.20269529521465302,
-0.15233255922794342,
-0.1748945266008377,
-0.11979559063911438,
-0.24344491958618164,
0.04054822772741318,
-0.3162579834461212,
0.04632899910211563,
-0.1581525355577469,
-0.07246129214763641,
0.00855179876089096,
0.6363359689712524,
0.030106887221336365,
0.32280290126800537,
0.6062825918197632,
-0.15318651497364044,
-0.04710807651281357,
-0.17056719958782196,
-0.3430227041244507,
-0.27379804849624634,
0.09750036150217056,
0.3371979296207428,
0.4055691957473755,
-0.3082160949707031,
0.3000149428844452,
-0.2714780867099762,
0.29240480065345764,
-0.10043947398662567,
-0.13483624160289764,
-0.23408173024654388,
0.038499362766742706,
-0.1771727055311203,
0.07956264913082123,
-0.1113491803407669,
0.19574105739593506,
0.10678435862064362,
0.2646089792251587,
-0.2957308292388916,
-0.19542011618614197,
0.6806671619415283,
-0.24252793192863464,
-0.1901581585407257,
0.002096966840326786,
0.1362287402153015,
0.15337330102920532,
-0.03697778284549713,
-0.39615100622177124,
0.02395881712436676,
0.3804263472557068,
-0.05427587032318115,
-0.03326630964875221,
0.10674916207790375,
-0.030081860721111298,
-0.2003994733095169,
-0.06963484734296799,
-0.2387508749961853,
0.3049546778202057,
-0.28760311007499695,
0.11369900405406952,
-0.10272008180618286
] |
https://github.com/huggingface/datasets/issues/252 | NonMatchingSplitsSizesError error when reading the IMDB dataset | Hi ! The cache is at ~/.cache/huggingface
You can just delete this folder if needed :) | Hi!
I am trying to load the `imdb` dataset with this line:
`dataset = nlp.load_dataset('imdb', data_dir='/A/PATH', cache_dir='/A/PATH')`
but I am getting the following error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/load.py", line 517, in load_dataset
save_infos=save_infos,
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 363, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 421, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=5929447, num_examples=4537, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}]
```
Am I overlooking something? Thanks! | 16 | NonMatchingSplitsSizesError error when reading the IMDB dataset
Hi!
I am trying to load the `imdb` dataset with this line:
`dataset = nlp.load_dataset('imdb', data_dir='/A/PATH', cache_dir='/A/PATH')`
but I am getting the following error:
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/load.py", line 517, in load_dataset
save_infos=save_infos,
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 363, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/builder.py", line 421, in _download_and_prepare
verify_splits(self.info.splits, split_dict)
File "/mounts/Users/cisintern/antmarakis/anaconda3/lib/python3.7/site-packages/nlp/utils/info_utils.py", line 70, in verify_splits
raise NonMatchingSplitsSizesError(str(bad_splits))
nlp.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=33442202, num_examples=25000, dataset_name='imdb'), 'recorded': SplitInfo(name='train', num_bytes=5929447, num_examples=4537, dataset_name='imdb')}, {'expected': SplitInfo(name='unsupervised', num_bytes=67125548, num_examples=50000, dataset_name='imdb'), 'recorded': SplitInfo(name='unsupervised', num_bytes=0, num_examples=0, dataset_name='imdb')}]
```
Am I overlooking something? Thanks!
Hi ! The cache is at ~/.cache/huggingface
You can just delete this folder if needed :) | [
-0.5058607459068298,
-0.12881070375442505,
0.01822526752948761,
0.34976696968078613,
0.14970548450946808,
0.20425567030906677,
0.04649067670106888,
0.42144668102264404,
0.23764574527740479,
0.07440589368343353,
-0.11682204902172089,
0.18232454359531403,
-0.261382132768631,
-0.1019231304526329,
-0.15735289454460144,
0.09799907356500626,
-0.11061861366033554,
0.21007008850574493,
0.07444283366203308,
0.06530684232711792,
-0.4028107523918152,
0.2740861177444458,
-0.3829881548881531,
-0.07002177834510803,
-0.39139285683631897,
-0.13322879374027252,
0.14591608941555023,
0.1515468955039978,
0.19135771691799164,
-0.3842666745185852,
0.348166286945343,
0.010943885892629623,
0.15339836478233337,
0.16258259117603302,
-0.00011615586117841303,
0.010485447943210602,
0.6431317329406738,
-0.2872525453567505,
-0.2771608233451843,
-0.27866679430007935,
-0.2890477478504181,
-0.2957003712654114,
0.29983898997306824,
-0.3556795120239258,
-0.09214206039905548,
-0.006996151991188526,
0.33322861790657043,
-0.4666481614112854,
0.10930413007736206,
0.1632327288389206,
0.17784589529037476,
0.1451752930879593,
-0.11867296695709229,
0.19795139133930206,
0.022769153118133545,
-0.11543574929237366,
-0.10673925280570984,
0.07674990594387054,
-0.02457631379365921,
-0.07225700467824936,
-0.11633019894361496,
0.23091092705726624,
-0.44658878445625305,
0.16891388595104218,
0.39011844992637634,
0.17549824714660645,
0.3332040011882782,
-0.2765014171600342,
0.0751740112900734,
0.2043977677822113,
0.5286697745323181,
-0.17592263221740723,
-0.29505518078804016,
-0.394942969083786,
0.028566081076860428,
-0.2426871508359909,
0.16411475837230682,
0.34928199648857117,
-0.23489779233932495,
-0.0012559518218040466,
-0.34589576721191406,
0.02429935894906521,
-0.22278299927711487,
0.1689741015434265,
0.3957195281982422,
0.10430417954921722,
0.11116763204336166,
0.07972785830497742,
0.2857828438282013,
-0.05810132622718811,
0.4545831084251404,
-0.08506165444850922,
0.14595787227153778,
0.14440366625785828,
-0.27104416489601135,
-0.07598802447319031,
-0.21710547804832458,
0.2746358811855316,
0.008276846259832382,
0.3213583827018738,
0.19679802656173706,
0.051680780947208405,
0.1436004787683487,
0.3109808564186096,
0.24493281543254852,
0.017076395452022552,
0.1431281566619873,
0.3343565762042999,
0.04980475455522537,
0.15742112696170807,
-0.12611261010169983,
-0.03626991808414459,
0.08530615270137787,
-0.03145634010434151,
0.08145023882389069,
0.15716475248336792,
0.26868659257888794,
-0.20994800329208374,
-0.5460678339004517,
-0.0010155392810702324,
-0.23328951001167297,
-0.16518867015838623,
0.09598927199840546,
0.27547475695610046,
-0.15367814898490906,
0.33193981647491455,
0.0422520637512207,
0.14243724942207336,
-0.3492202162742615,
-0.1216832771897316,
-0.23689806461334229,
0.17275001108646393,
-0.2033311128616333,
0.07712910324335098,
0.31588053703308105,
0.10440023243427277,
0.4351961612701416,
-0.19862224161624908,
-0.11535370349884033,
-0.04208951070904732,
0.4212338626384735,
-0.19036297500133514,
-0.07459422200918198,
0.22260965406894684,
0.197076678276062,
0.16234683990478516,
0.08705967664718628,
-0.05072995275259018,
-0.31885814666748047,
0.1813303828239441,
0.0028088241815567017,
-0.37743183970451355,
0.015083692967891693,
0.17903640866279602,
-0.19090376794338226,
-0.08627583086490631,
-0.03475325554609299,
0.11344131827354431,
0.13027042150497437,
-0.4634096920490265,
-0.20545348525047302,
-0.10737647116184235,
-0.27021652460098267,
-0.12326697260141373,
-0.016522444784641266,
0.5770251750946045,
0.03382853791117668,
-0.0637340322136879,
-0.14413364231586456,
0.00808853842318058,
0.5104396343231201,
0.38604602217674255,
-0.050884030759334564,
-0.16705292463302612,
-0.3651425838470459,
0.3389679789543152,
0.2271960973739624,
-0.4194646179676056,
-0.426326185464859,
0.48374471068382263,
0.006435960531234741,
0.25789567828178406,
0.32558244466781616,
0.40542805194854736,
0.12047784775495529,
-0.03258940577507019,
0.05214248597621918,
0.4240188002586365,
-0.13177058100700378,
-0.01428445428609848,
-0.28745898604393005,
-0.2950437068939209,
0.6005907654762268,
0.14942386746406555,
0.06876486539840698,
-0.04363646358251572,
0.018751055002212524,
0.4665600061416626,
0.3268420100212097,
-0.0016478709876537323,
-0.010888410732150078,
0.1649560034275055,
-0.24784474074840546,
0.32264602184295654,
-0.17363092303276062,
-0.17615839838981628,
-0.509129524230957,
0.07417898625135422,
-0.11290890723466873,
0.09083008021116257,
-0.17630429565906525,
-0.17812663316726685,
-0.08824414759874344,
-0.343161016702652,
-0.2358766347169876,
0.0028416886925697327,
0.10642373561859131,
0.2504611015319824,
-0.06044048070907593,
0.13977396488189697,
-0.17474037408828735,
0.5486711859703064,
0.0023629795759916306,
0.08294253051280975,
-0.8483418822288513,
0.323914110660553,
-0.1733105480670929,
-0.2676151990890503,
0.3004836440086365,
0.29649439454078674,
0.2826038897037506,
-0.15306620299816132,
-0.11416444927453995,
0.38941872119903564,
0.09103430807590485,
0.3174048066139221,
-0.16694703698158264,
-0.031952232122421265,
0.29273325204849243,
-0.36313411593437195,
0.1423189789056778,
0.2724505662918091,
0.1341874599456787,
-0.1109849214553833,
-0.0392150804400444,
0.2899013161659241,
-0.33003556728363037,
0.2139119803905487,
0.07908986508846283,
0.06293480098247528,
0.16034364700317383,
-0.14501738548278809,
-0.07457005977630615,
-0.43258655071258545,
0.4534668028354645,
0.16904166340827942,
-0.07186184823513031,
0.062217503786087036,
-0.3637729585170746,
-0.12391745299100876,
0.45984548330307007,
0.11397244036197662,
0.01681506261229515,
0.046944428235292435,
-0.05134836584329605,
-0.16675931215286255,
0.1503908932209015,
0.19136767089366913,
0.2858826518058777,
0.3570721745491028,
-0.11386340856552124,
0.08582644164562225,
-0.09416176378726959,
-0.18244148790836334,
0.10858858376741409,
0.15418648719787598,
0.26791203022003174,
0.33022332191467285,
-0.11676185578107834,
-0.056368064135313034,
-0.4007020592689514,
-0.2456366866827011,
0.016141457483172417,
0.33771249651908875,
-0.2668769061565399,
-0.15788033604621887,
-0.4097842872142792,
-0.4801178574562073,
-0.05684106796979904,
-0.084388867020607,
-0.14012424647808075,
-0.40546557307243347,
-0.11674553155899048,
0.5066663026809692,
0.09027627110481262,
0.20096899569034576,
-0.3860340118408203,
-0.056571558117866516,
-0.03842785581946373,
-0.14503341913223267,
-0.15850836038589478,
-0.3335527777671814,
-0.07117195427417755,
-0.045795030891895294,
0.3911580741405487,
0.22970326244831085,
0.36297348141670227,
-0.41760969161987305,
-0.09487960487604141,
0.06533733010292053,
0.054071538150310516,
-0.15775428712368011,
-0.08009156584739685,
0.07565640658140182,
0.06884579360485077,
0.07904984056949615,
0.15666915476322174,
-0.3845462203025818,
0.2842548191547394,
-0.27417153120040894,
-0.0760486051440239,
0.1950516253709793,
0.19364318251609802,
0.04192866384983063,
0.03538961336016655,
-0.3608494699001312,
-0.38797035813331604,
-0.43971365690231323,
0.019114959985017776,
0.2849383056163788,
0.10200817883014679,
0.1651657670736313,
-0.008908725343644619,
0.022369738668203354,
0.05462333932518959,
0.17856931686401367,
-0.1242077425122261,
0.02524201199412346,
0.3226630985736847,
-0.029078973457217216,
-0.11723800003528595,
0.05634557828307152,
0.05499756336212158,
0.15209928154945374,
-0.02235466055572033,
-0.4382070302963257,
-0.13491834700107574,
-0.14882045984268188,
0.11167117953300476,
-0.0901520699262619,
-0.20118723809719086,
0.36620354652404785,
0.1344195455312729,
-0.022055374458432198,
-0.028165409341454506,
-0.2943359613418579,
0.016757391393184662,
0.06942056864500046,
0.2837190330028534,
-0.014132533222436905,
0.5791600346565247,
-0.0643862932920456,
0.3804616332054138,
0.4987337589263916,
0.04556480422616005,
0.26855385303497314,
-0.1942722052335739,
0.23928788304328918,
-0.07486846297979355,
-0.3963813781738281,
0.04300618916749954,
-0.0659119188785553,
-0.09031060338020325,
0.10269009321928024,
-0.20373576879501343,
-0.2834112346172333,
-0.2474651336669922,
-0.31239181756973267,
-0.49281421303749084,
-0.20529165863990784,
-0.04197755455970764,
-0.3690466284751892,
0.06717128306627274,
0.11420837044715881,
0.15709537267684937,
-0.13669990003108978,
-0.478613942861557,
-0.0029996009543538094,
0.17202159762382507,
0.20185552537441254,
0.0454261377453804,
0.0023720934987068176,
0.1124931126832962,
-0.4285702109336853,
0.4104146361351013,
0.08919248729944229,
0.480906218290329,
-0.12759579718112946,
0.0004130415618419647,
0.1062377393245697,
-0.039648305624723434,
0.521579384803772,
-0.34768208861351013,
0.11479303240776062,
0.07725666463375092,
-0.11838538199663162,
-0.6588267683982849,
0.08736683428287506,
-0.13857883214950562,
0.3216622769832611,
0.47805139422416687,
0.311485230922699,
-0.2311038076877594,
-0.18514572083950043,
0.19537916779518127,
0.14984966814517975,
-0.1207047551870346,
-0.23557397723197937,
-0.20585274696350098,
-0.17151731252670288,
-0.4106161296367645,
-0.17136749625205994,
-0.04747924208641052,
0.29163530468940735,
0.1333780288696289,
-0.06957925856113434,
0.050281062722206116,
-0.19401153922080994,
0.3146006166934967,
0.06056220456957817,
0.277948260307312,
0.10746254771947861,
0.2539287805557251,
0.3060097098350525,
0.31583917140960693,
0.11119186133146286,
0.45032668113708496,
-0.014344166964292526,
0.04616588354110718,
-0.07414411753416061,
-0.1089511290192604,
0.11592897027730942,
0.17147135734558105,
0.08840848505496979,
-0.13650068640708923,
-0.03083120286464691,
-0.062235310673713684,
-0.17010743916034698,
-0.10185198485851288,
0.3103107810020447,
-0.07304925471544266,
-0.18008333444595337,
-0.589211106300354,
0.47530046105384827,
0.22448799014091492,
0.06447415053844452,
-0.05210600793361664,
0.05236903950572014,
-0.24500210583209991,
0.443809449672699,
0.146196648478508,
0.7782349586486816,
0.2315709888935089,
0.10153339803218842,
0.023329544812440872,
0.017487168312072754,
0.5530233383178711,
-0.0926305428147316,
0.4083077311515808,
-0.48353755474090576,
-0.12686242163181305,
-0.06918506324291229,
-0.14241936802864075,
0.02825726941227913,
-0.0034955330193042755,
-0.2602638304233551,
0.4872850775718689,
-0.12779328227043152,
-0.39517754316329956,
-0.2352563738822937,
0.4670634865760803,
-0.37402763962745667,
-0.06869980692863464,
-0.052219271659851074,
0.11086677014827728,
-0.23586751520633698,
0.2975407838821411,
0.09008011221885681,
-0.17186219990253448,
-0.047993797808885574,
-0.06039018929004669,
-0.3981964588165283,
0.21061953902244568,
-0.21927306056022644,
0.2922726273536682,
-0.2318601906299591,
-0.1582145392894745,
-0.04134275019168854,
0.15401798486709595,
0.11756858974695206,
-0.25763440132141113,
-0.24675816297531128,
-0.17269684374332428,
-0.024319082498550415,
-0.24386583268642426,
0.03164675086736679,
0.12614555656909943,
0.3964952826499939,
-0.13963384926319122,
-0.1136615127325058,
0.019618097692728043,
0.07920040935277939,
-0.2306172251701355,
0.21631336212158203,
-0.19969196617603302,
0.024709243327379227,
-0.16470010578632355,
-0.5514369010925293,
-0.029141657054424286,
-0.1771259754896164,
-0.14537805318832397,
0.09008878469467163,
-0.09608016908168793,
-0.18411491811275482,
0.07291261851787567,
0.06232573464512825,
-0.2890543043613434,
-0.06277152895927429,
0.5095927715301514,
0.18227344751358032,
0.10066640377044678,
0.4814753532409668,
0.008604861795902252,
-0.28073710203170776,
-0.2713315486907959,
0.10447763651609421,
-0.13354602456092834,
-0.4408506751060486,
0.1395948976278305,
-0.013084459118545055,
0.29149705171585083,
0.23849022388458252,
0.076812244951725,
0.2962934374809265,
0.11486254632472992,
-0.0730927586555481,
-0.4691391885280609,
-0.280709832906723,
0.15273559093475342,
-0.20835329592227936,
0.3305925130844116,
-0.1106206402182579,
0.24013099074363708,
0.03889288008213043,
0.07921942323446274,
-0.2634624242782593,
-0.0190832931548357,
-0.3192700743675232,
0.10413403809070587,
0.2587982416152954,
-0.22273436188697815,
0.0652066245675087,
0.11405238509178162,
0.11876507103443146,
0.08913232386112213,
-0.10066390782594681,
-0.13672907650470734,
-0.04415427893400192,
0.14903761446475983,
0.06984254717826843,
-0.24569515883922577,
-0.30870315432548523,
-0.11426828801631927,
-0.18540385365486145,
-0.11465059220790863,
-0.30264443159103394,
0.2923470735549927,
-0.09454792737960815,
0.5159417986869812,
-0.02560235932469368,
-0.18945255875587463,
-0.014907477423548698,
0.20850028097629547,
-0.3110039234161377,
0.33278530836105347,
-0.1651078313589096,
0.19613170623779297,
0.0702776238322258,
0.09524799883365631,
-0.031940676271915436,
-0.07853103429079056,
-0.05739796161651611,
0.017868807539343834,
0.2745208144187927,
-0.28783291578292847,
0.03306133672595024,
0.23505231738090515,
0.17434239387512207,
0.4963514506816864,
-0.04236539825797081,
-0.21415257453918457,
0.006215132772922516,
0.1651076078414917,
-0.4446522295475006,
0.1129387840628624,
0.5683695077896118,
0.028219718486070633,
-0.017522621899843216,
0.28859612345695496,
0.20169129967689514,
-0.026986338198184967,
-0.07953721284866333,
0.04915422946214676,
0.5171211957931519,
-0.30170613527297974,
0.13687628507614136,
0.14697040617465973,
0.04299673065543175,
-0.12275159358978271,
0.1644223928451538,
0.2118978351354599,
0.34364527463912964,
0.5141320824623108,
-0.19191038608551025,
0.3020540475845337,
-0.2119137942790985,
0.19079867005348206,
-0.3046918511390686,
-0.31634193658828735,
-0.11835016310214996,
0.2924261689186096,
0.015544205904006958,
0.18331006169319153,
-0.0010098516941070557,
0.2147729992866516,
-0.20411401987075806,
0.12571468949317932,
-0.22978536784648895,
0.13506734371185303,
-0.16725564002990723,
-0.032533563673496246,
-0.13844525814056396,
-0.0918377935886383,
-0.31041210889816284,
-0.019423220306634903,
-0.00982997938990593,
0.1213114783167839,
0.16993626952171326,
0.26257821917533875,
0.03484583646059036,
-0.3329255282878876,
0.06705714762210846,
0.060706667602062225,
0.19770044088363647,
-0.3414990305900574,
0.15062150359153748,
0.04275308549404144,
0.1671670377254486,
0.12540103495121002,
0.5256475806236267,
0.5326808094978333,
0.3818291127681732,
-0.4976462125778198,
0.10000970959663391,
0.07873450964689255,
-0.07441485673189163,
0.0051492080092430115,
0.41516897082328796,
0.24170973896980286,
0.12784940004348755,
0.3802848756313324,
0.0687551274895668,
-0.07183144241571426,
0.3295058608055115,
0.0849410817027092,
-0.06180228665471077,
-0.0501098707318306,
0.4606257677078247,
-0.1114087849855423,
0.08408171683549881,
-0.261666476726532,
0.09434960782527924,
-0.38215959072113037,
-0.27049800753593445,
0.31314119696617126,
-0.27780359983444214,
0.20219936966896057,
0.06264989078044891,
0.04186541214585304,
-0.3012951612472534,
0.4437074065208435,
0.32396483421325684,
-0.014916017651557922,
-0.3931867182254791,
-0.04517477750778198,
-0.6925980448722839,
0.14870300889015198,
-0.1757470816373825,
-0.11781853437423706,
0.05300304293632507,
0.38866814970970154,
-0.2979029715061188,
0.0005522668361663818,
-0.062254369258880615,
0.5312162637710571,
-0.13506720960140228,
0.10482750833034515,
-0.11336483061313629,
-0.20269529521465302,
-0.15233255922794342,
-0.1748945266008377,
-0.11979559063911438,
-0.24344491958618164,
0.04054822772741318,
-0.3162579834461212,
0.04632899910211563,
-0.1581525355577469,
-0.07246129214763641,
0.00855179876089096,
0.6363359689712524,
0.030106887221336365,
0.32280290126800537,
0.6062825918197632,
-0.15318651497364044,
-0.04710807651281357,
-0.17056719958782196,
-0.3430227041244507,
-0.27379804849624634,
0.09750036150217056,
0.3371979296207428,
0.4055691957473755,
-0.3082160949707031,
0.3000149428844452,
-0.2714780867099762,
0.29240480065345764,
-0.10043947398662567,
-0.13483624160289764,
-0.23408173024654388,
0.038499362766742706,
-0.1771727055311203,
0.07956264913082123,
-0.1113491803407669,
0.19574105739593506,
0.10678435862064362,
0.2646089792251587,
-0.2957308292388916,
-0.19542011618614197,
0.6806671619415283,
-0.24252793192863464,
-0.1901581585407257,
0.002096966840326786,
0.1362287402153015,
0.15337330102920532,
-0.03697778284549713,
-0.39615100622177124,
0.02395881712436676,
0.3804263472557068,
-0.05427587032318115,
-0.03326630964875221,
0.10674916207790375,
-0.030081860721111298,
-0.2003994733095169,
-0.06963484734296799,
-0.2387508749961853,
0.3049546778202057,
-0.28760311007499695,
0.11369900405406952,
-0.10272008180618286
] |
https://github.com/huggingface/datasets/issues/249 | [Dataset created] some critical small issues when I was creating a dataset | Alright I think I fixed all the problems you mentioned. Thanks again, that will be useful for many people.
There is still more work needed for point 7. but we plan to have some nice docs soon. | Hi, I successfully created a dataset and has made a pr #248.
But I have encountered several problems when I was creating it, and those should be easy to fix.
1. Not found dataset_info.json
should be fixed by #241 , eager to wait it be merged.
2. Forced to install `apach_beam`
If we should install it, then it might be better to include it in the pakcage dependency or specified in `CONTRIBUTING.md`
```
Traceback (most recent call last):
File "nlp-cli", line 10, in <module>
from nlp.commands.run_beam import RunBeamCommand
File "/home/yisiang/nlp/src/nlp/commands/run_beam.py", line 6, in <module>
import apache_beam as beam
ModuleNotFoundError: No module named 'apache_beam'
```
3. `cached_dir` is `None`
```
File "/home/yisiang/nlp/src/nlp/datasets/bookscorpus/aea0bd5142d26df645a8fce23d6110bb95ecb81772bb2a1f29012e329191962c/bookscorpus.py", line 88, in _split_generators
downloaded_path_or_paths = dl_manager.download_custom(_GDRIVE_FILE_ID, download_file_from_google_drive)
File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 128, in download_custom
downloaded_path_or_paths = map_nested(url_to_downloaded_path, url_or_urls)
File "/home/yisiang/nlp/src/nlp/utils/py_utils.py", line 172, in map_nested
return function(data_struct)
File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 126, in url_to_downloaded_path
return os.path.join(self._download_config.cache_dir, hash_url_to_filename(url))
File "/home/yisiang/miniconda3/envs/nlppr/lib/python3.7/posixpath.py", line 80, in join
a = os.fspath(a)
```
This is because this line
https://github.com/huggingface/nlp/blob/2e0a8639a79b1abc848cff5c669094d40bba0f63/src/nlp/commands/test.py#L30-L32
And I add `--cache_dir="...."` to `python nlp-cli test datasets/<your-dataset-folder> --save_infos --all_configs` in the doc, finally I could pass this error.
But it seems to ignore my arg and use `/home/yisiang/.cache/huggingface/datasets/bookscorpus/plain_text/1.0.0` as cahe_dir
4. There is no `pytest`
So maybe in the doc we should specify a step to install pytest
5. Not enough capacity in my `/tmp`
When run test for dummy data, I don't know why it ask me for 5.6g to download something,
```
def download_and_prepare
...
if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root):
raise IOError(
"Not enough disk space. Needed: {} (download: {}, generated: {})".format(
utils.size_str(self.info.size_in_bytes or 0),
utils.size_str(self.info.download_size or 0),
> utils.size_str(self.info.dataset_size or 0),
)
)
E OSError: Not enough disk space. Needed: 5.62 GiB (download: 1.10 GiB, generated: 4.52 GiB)
```
I add a `processed_temp_dir="some/dir"; raw_temp_dir="another/dir"` to 71, and the test passed
https://github.com/huggingface/nlp/blob/a67a6c422dece904b65d18af65f0e024e839dbe8/tests/test_dataset_common.py#L70-L72
I suggest we can create tmp dir under the `/home/user/tmp` but not `/tmp`, because take our lab server for example, everyone use `/tmp` thus it has not much capacity. Or at least we can improve error message, so the user know is what directory has no space and how many has it lefted. Or we could do both.
6. name of datasets
I was surprised by the dataset name `books_corpus`, and didn't know it is from `class BooksCorpus(nlp.GeneratorBasedBuilder)` . I change it to `Bookscorpus` afterwards. I think this point shold be also on the doc.
7. More thorough doc to how to create `dataset.py`
I believe there will be.
**Feel free to close this issue** if you think these are solved. | 37 | [Dataset created] some critical small issues when I was creating a dataset
Hi, I successfully created a dataset and has made a pr #248.
But I have encountered several problems when I was creating it, and those should be easy to fix.
1. Not found dataset_info.json
should be fixed by #241 , eager to wait it be merged.
2. Forced to install `apach_beam`
If we should install it, then it might be better to include it in the pakcage dependency or specified in `CONTRIBUTING.md`
```
Traceback (most recent call last):
File "nlp-cli", line 10, in <module>
from nlp.commands.run_beam import RunBeamCommand
File "/home/yisiang/nlp/src/nlp/commands/run_beam.py", line 6, in <module>
import apache_beam as beam
ModuleNotFoundError: No module named 'apache_beam'
```
3. `cached_dir` is `None`
```
File "/home/yisiang/nlp/src/nlp/datasets/bookscorpus/aea0bd5142d26df645a8fce23d6110bb95ecb81772bb2a1f29012e329191962c/bookscorpus.py", line 88, in _split_generators
downloaded_path_or_paths = dl_manager.download_custom(_GDRIVE_FILE_ID, download_file_from_google_drive)
File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 128, in download_custom
downloaded_path_or_paths = map_nested(url_to_downloaded_path, url_or_urls)
File "/home/yisiang/nlp/src/nlp/utils/py_utils.py", line 172, in map_nested
return function(data_struct)
File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 126, in url_to_downloaded_path
return os.path.join(self._download_config.cache_dir, hash_url_to_filename(url))
File "/home/yisiang/miniconda3/envs/nlppr/lib/python3.7/posixpath.py", line 80, in join
a = os.fspath(a)
```
This is because this line
https://github.com/huggingface/nlp/blob/2e0a8639a79b1abc848cff5c669094d40bba0f63/src/nlp/commands/test.py#L30-L32
And I add `--cache_dir="...."` to `python nlp-cli test datasets/<your-dataset-folder> --save_infos --all_configs` in the doc, finally I could pass this error.
But it seems to ignore my arg and use `/home/yisiang/.cache/huggingface/datasets/bookscorpus/plain_text/1.0.0` as cahe_dir
4. There is no `pytest`
So maybe in the doc we should specify a step to install pytest
5. Not enough capacity in my `/tmp`
When run test for dummy data, I don't know why it ask me for 5.6g to download something,
```
def download_and_prepare
...
if not utils.has_sufficient_disk_space(self.info.size_in_bytes or 0, directory=self._cache_dir_root):
raise IOError(
"Not enough disk space. Needed: {} (download: {}, generated: {})".format(
utils.size_str(self.info.size_in_bytes or 0),
utils.size_str(self.info.download_size or 0),
> utils.size_str(self.info.dataset_size or 0),
)
)
E OSError: Not enough disk space. Needed: 5.62 GiB (download: 1.10 GiB, generated: 4.52 GiB)
```
I add a `processed_temp_dir="some/dir"; raw_temp_dir="another/dir"` to 71, and the test passed
https://github.com/huggingface/nlp/blob/a67a6c422dece904b65d18af65f0e024e839dbe8/tests/test_dataset_common.py#L70-L72
I suggest we can create tmp dir under the `/home/user/tmp` but not `/tmp`, because take our lab server for example, everyone use `/tmp` thus it has not much capacity. Or at least we can improve error message, so the user know is what directory has no space and how many has it lefted. Or we could do both.
6. name of datasets
I was surprised by the dataset name `books_corpus`, and didn't know it is from `class BooksCorpus(nlp.GeneratorBasedBuilder)` . I change it to `Bookscorpus` afterwards. I think this point shold be also on the doc.
7. More thorough doc to how to create `dataset.py`
I believe there will be.
**Feel free to close this issue** if you think these are solved.
Alright I think I fixed all the problems you mentioned. Thanks again, that will be useful for many people.
There is still more work needed for point 7. but we plan to have some nice docs soon. | [
-0.21657991409301758,
-0.01648513227701187,
-0.12069712579250336,
0.3510119915008545,
0.29394686222076416,
-0.023854967206716537,
0.08669058978557587,
0.4066430330276489,
-0.19985443353652954,
0.021647706627845764,
0.22105200588703156,
0.20121271908283234,
-0.23070655763149261,
-0.00830138474702835,
0.11137615144252777,
-0.19988083839416504,
0.2577255368232727,
0.3090707063674927,
0.21963414549827576,
-0.1952066421508789,
-0.4448091983795166,
0.16689781844615936,
-0.020273543894290924,
0.0794765055179596,
-0.18549735844135284,
-0.3484351933002472,
0.0012604538351297379,
0.3041495978832245,
-0.27669262886047363,
-0.33473408222198486,
0.04290737211704254,
-0.021696962416172028,
0.06142587959766388,
0.17914897203445435,
-0.00011480374814709648,
-0.16648876667022705,
0.3816397190093994,
-0.12867417931556702,
-0.4447024464607239,
-0.05248180031776428,
-0.2777306139469147,
-0.5376026034355164,
0.11462373286485672,
-0.3695806562900543,
0.11700718849897385,
-0.47661080956459045,
-0.2099822610616684,
-0.22514154016971588,
0.5323167443275452,
0.35922956466674805,
0.23350407183170319,
0.26303577423095703,
0.23065491020679474,
-0.07524428516626358,
0.340965211391449,
0.09867831319570541,
-0.27400702238082886,
-0.09093226492404938,
0.08401668816804886,
0.19145682454109192,
0.0731683224439621,
0.13205981254577637,
0.14267317950725555,
-0.11036135256290436,
0.41378170251846313,
-0.1641571819782257,
-0.028323017060756683,
-0.5333042144775391,
-0.03290635347366333,
-0.045060887932777405,
0.4773087203502655,
-0.35319826006889343,
-0.30110207200050354,
-0.34241437911987305,
0.1612420529127121,
-0.1395578682422638,
0.23889264464378357,
0.4321995973587036,
-0.15446163713932037,
-0.11362603306770325,
-0.19337515532970428,
-0.14050544798374176,
-0.28781402111053467,
0.18132206797599792,
0.412435382604599,
0.08534679561853409,
0.15998569130897522,
0.05045793205499649,
-0.0027546249330043793,
-0.10998184978961945,
0.1672930121421814,
-0.3342161178588867,
-0.07499392330646515,
0.3552267551422119,
-0.19915102422237396,
-0.19652417302131653,
-0.04436826705932617,
0.031373754143714905,
0.0599549263715744,
0.2317240983247757,
-0.2460913211107254,
0.004456974565982819,
-0.011847136542201042,
0.0019146241247653961,
0.1471189707517624,
0.19135059416294098,
0.13342924416065216,
0.06528209149837494,
0.10374800115823746,
-0.03922344744205475,
0.2899765074253082,
0.050844624638557434,
-0.0023808355908840895,
0.040671415627002716,
-0.18650709092617035,
0.051957085728645325,
-0.0040365830063819885,
-0.06702017784118652,
-0.023956255987286568,
0.13877549767494202,
-0.3734665513038635,
-0.2500496506690979,
0.04233316704630852,
0.21878623962402344,
0.13104146718978882,
0.2003275454044342,
-0.06771650910377502,
0.2659168243408203,
-0.2425891011953354,
-0.22122040390968323,
-0.0890088677406311,
0.1785896122455597,
-0.34641528129577637,
-0.008724097162485123,
0.4041244387626648,
0.3678695559501648,
0.3285501003265381,
-0.055872295051813126,
-0.1568581461906433,
0.08043098449707031,
0.36980152130126953,
-0.1725635677576065,
-0.1649513840675354,
0.36645275354385376,
0.11630797386169434,
0.31781914830207825,
-0.22829394042491913,
-0.006545297801494598,
-0.18321609497070312,
0.07335591316223145,
0.0013047531247138977,
-0.24342788755893707,
-0.07428675889968872,
0.22571879625320435,
-0.3786153793334961,
0.355995237827301,
0.009503468871116638,
0.08509163558483124,
0.11430247873067856,
-0.2616051733493805,
-0.10594690591096878,
0.0004166997969150543,
-0.04018598794937134,
-0.3765687942504883,
0.22220872342586517,
0.3557889461517334,
-0.2729794979095459,
-0.11735662817955017,
-0.23923823237419128,
-0.4322437047958374,
-0.17214572429656982,
0.014352161437273026,
-0.10996989905834198,
0.4447316527366638,
-0.18863148987293243,
0.05904915928840637,
0.5762615203857422,
-0.17363230884075165,
-0.38624927401542664,
-0.0011028650915250182,
0.0378158763051033,
-0.16118818521499634,
0.1443198025226593,
0.09668279439210892,
0.039711907505989075,
-0.28142425417900085,
-0.3508944809436798,
0.39816468954086304,
-0.0608353391289711,
0.08639656752347946,
-0.3207005560398102,
-0.09578757733106613,
0.17196249961853027,
0.23559413850307465,
-0.009895145893096924,
0.09999661147594452,
0.2488785684108734,
0.23561300337314606,
-0.01836230605840683,
-0.14808137714862823,
0.24856874346733093,
0.32265138626098633,
0.3735438585281372,
-0.322475790977478,
0.08438024669885635,
0.060997359454631805,
-0.4909183382987976,
0.00590042769908905,
-0.4745084047317505,
0.09893032908439636,
-0.12335962057113647,
0.004432294517755508,
-0.26298683881759644,
-0.0900881439447403,
-0.06470994651317596,
-0.308658242225647,
0.15121059119701385,
-0.07899248600006104,
0.19190502166748047,
-0.1069253534078598,
-0.34201711416244507,
0.5311264991760254,
-0.18937648832798004,
0.06884869933128357,
-0.5045075416564941,
0.21865549683570862,
-0.16548459231853485,
-0.12189596891403198,
0.31628692150115967,
0.5913743376731873,
0.1859377920627594,
-0.12979631125926971,
-0.15710800886154175,
0.3761417865753174,
-0.007287959102541208,
0.10021361708641052,
0.13146734237670898,
0.10882345587015152,
0.334830641746521,
-0.14765916764736176,
0.3715454041957855,
-0.28931328654289246,
0.1089809462428093,
-0.214260071516037,
-0.36198362708091736,
0.2575720548629761,
-0.09456926584243774,
0.1903480887413025,
0.2109561711549759,
-0.0040957145392894745,
0.2478676736354828,
-0.09052662551403046,
0.0391283854842186,
-0.12223988771438599,
0.2752211391925812,
0.24159063398838043,
0.3407290577888489,
0.21059584617614746,
0.19737154245376587,
0.2309572994709015,
0.29594686627388,
-0.05846188962459564,
-0.15814772248268127,
0.20840725302696228,
-0.047781214118003845,
-0.16693294048309326,
0.21962560713291168,
0.4565878212451935,
0.561221182346344,
0.21580633521080017,
-0.3815113306045532,
0.1613030582666397,
0.09729031473398209,
-0.17909777164459229,
0.1301804780960083,
0.20571094751358032,
0.2672240138053894,
0.038893118500709534,
0.21779769659042358,
0.08329985290765762,
0.09176429361104965,
-0.012623660266399384,
0.08953221142292023,
0.33890578150749207,
-0.17259928584098816,
-0.15635797381401062,
-0.031914565712213516,
-0.3260664641857147,
-0.17015966773033142,
0.3311554193496704,
-0.2817270755767822,
-0.3784976899623871,
-0.0004052482545375824,
-0.16978944838047028,
-0.022907506674528122,
0.29188090562820435,
0.21621471643447876,
0.26180630922317505,
-0.18836475908756256,
0.09763750433921814,
-0.3757294714450836,
-0.38885003328323364,
-0.1720530390739441,
0.1114448755979538,
0.12186560034751892,
0.32951533794403076,
0.5941367149353027,
-0.015418311581015587,
0.12340034544467926,
-0.16696785390377045,
-0.10629840195178986,
0.07040029764175415,
-0.04349784553050995,
0.19078530371189117,
0.007904745638370514,
0.20608019828796387,
-0.05160792917013168,
-0.2771468162536621,
0.18036091327667236,
-0.08721006661653519,
-0.2609621286392212,
-0.013424061238765717,
-0.14766637980937958,
-0.07188981026411057,
-0.06798958778381348,
-0.5194195508956909,
-0.4250132143497467,
-0.214808389544487,
0.13278621435165405,
0.31000635027885437,
0.1828388124704361,
-0.08413440734148026,
0.14123056828975677,
-0.01815158501267433,
-0.0019713458605110645,
-0.06155155599117279,
0.006666261237114668,
0.01946762576699257,
0.20242662727832794,
-0.27553683519363403,
-0.4629988968372345,
0.017261195927858353,
-0.23236046731472015,
0.14789894223213196,
0.15142399072647095,
-0.3561943769454956,
-0.08580343425273895,
-0.10027908533811569,
0.20350393652915955,
0.04860696569085121,
0.2767564356327057,
0.32691138982772827,
0.1419498771429062,
0.035899579524993896,
-0.17444711923599243,
-0.33532774448394775,
0.10888221859931946,
-0.19084951281547546,
0.596819281578064,
-0.0053011588752269745,
0.19314399361610413,
-0.3918653428554535,
0.8372851610183716,
0.4679620563983917,
-0.1322748363018036,
0.20198999345302582,
0.06455011665821075,
0.25305038690567017,
-0.033325888216495514,
-0.21555760502815247,
0.5519692897796631,
0.18658693134784698,
0.1339823454618454,
-0.008696235716342926,
0.14651387929916382,
-0.2078361064195633,
-0.2886020541191101,
0.17195427417755127,
-0.7883490324020386,
-0.10101421177387238,
-0.1152331531047821,
-0.13208898901939392,
0.27299508452415466,
0.08846372365951538,
-0.07578089088201523,
-0.09280496835708618,
-0.15192142128944397,
0.021182380616664886,
0.01901279389858246,
0.12560415267944336,
-0.040847886353731155,
-0.2778848707675934,
-0.11659464985132217,
-0.16610589623451233,
0.16098886728286743,
-0.10690534114837646,
0.2166687399148941,
-0.08798548579216003,
0.005394801497459412,
0.07568101584911346,
-0.012185407802462578,
0.6508089303970337,
-0.44581687450408936,
-0.2502537965774536,
0.14289116859436035,
0.40555498003959656,
-0.38142064213752747,
0.10120978951454163,
-0.14556939899921417,
0.15856726467609406,
0.1066673994064331,
0.27513307332992554,
-0.42586836218833923,
-0.03857620060443878,
0.14013934135437012,
0.36978426575660706,
-0.16054414212703705,
-0.17718923091888428,
-0.09752771258354187,
-0.2522130310535431,
-0.22503718733787537,
-0.3424992859363556,
-0.6088346242904663,
0.1231243833899498,
0.04200149327516556,
0.28458818793296814,
0.02995656058192253,
-0.03809276968240738,
0.0616338737308979,
0.13067689538002014,
0.40305188298225403,
-0.14724722504615784,
0.25743335485458374,
0.029691679403185844,
0.1881631314754486,
0.21629616618156433,
0.3045300543308258,
-0.08672218024730682,
-0.07208538055419922,
0.046153560280799866,
-0.11099071055650711,
0.37678563594818115,
0.2177412211894989,
-0.07149366289377213,
-0.2043243646621704,
-0.08840549737215042,
0.08222097158432007,
0.04220736399292946,
0.013412684202194214,
0.16632568836212158,
-0.21519498527050018,
-0.2809140384197235,
-0.32561758160591125,
0.41027963161468506,
0.1630629450082779,
-0.07944698631763458,
0.19980736076831818,
-0.12936480343341827,
-0.014904063194990158,
0.5705707669258118,
0.18078361451625824,
1.1641911268234253,
0.01621459424495697,
-0.14892935752868652,
0.3272439241409302,
-0.3185846209526062,
0.73610520362854,
-0.9293340444564819,
0.03792902082204819,
-0.42587506771087646,
0.21471352875232697,
0.12358196079730988,
-0.22807583212852478,
0.21446147561073303,
0.08307597786188126,
-0.1261194497346878,
0.18802832067012787,
0.1353083997964859,
0.10121077299118042,
-0.11475571990013123,
0.6493266224861145,
-0.03982359170913696,
-0.4592416286468506,
-0.5051501393318176,
0.10287681221961975,
-0.2891240119934082,
0.07602326571941376,
-0.1944546103477478,
-0.19792860746383667,
-0.33222347497940063,
-0.20972789824008942,
-0.18911540508270264,
0.14024785161018372,
-0.12208177894353867,
0.10482847690582275,
0.08215434849262238,
-0.534011721611023,
0.1189398318529129,
0.18710096180438995,
0.44417524337768555,
0.0693390741944313,
-0.21727101504802704,
0.35042116045951843,
0.03560478985309601,
0.012237722985446453,
0.14341753721237183,
0.15614289045333862,
0.1942497342824936,
-0.22305536270141602,
0.01850017160177231,
0.10972464829683304,
-0.3166893720626831,
0.1906910538673401,
-0.25798287987709045,
-0.23145975172519684,
0.2656129002571106,
-0.1680598109960556,
-0.01419542171061039,
0.18646469712257385,
-0.17958571016788483,
-0.18645550310611725,
0.17892606556415558,
0.05223510414361954,
0.023073041811585426,
0.22072497010231018,
-0.00808955729007721,
-0.025474414229393005,
-0.2591034173965454,
0.18501988053321838,
0.2551265060901642,
-0.4933580756187439,
0.29200732707977295,
0.014367129653692245,
-0.14130443334579468,
-0.3368188142776489,
0.3393172323703766,
-0.0217131394892931,
-0.5498064160346985,
-0.04710996896028519,
0.15496249496936798,
-0.17324019968509674,
-0.12250445783138275,
-0.06462623178958893,
0.12887319922447205,
0.16557645797729492,
0.18283286690711975,
-0.31241196393966675,
-0.3814758360385895,
0.26857897639274597,
-0.147832453250885,
0.14925426244735718,
-0.3125889301300049,
-0.05335105583071709,
0.1307687610387802,
0.20593823492527008,
-0.3075966238975525,
-0.2742984890937805,
-0.08506510406732559,
0.11118797212839127,
0.06901741772890091,
-0.00015495344996452332,
-0.13109280169010162,
-0.3503135144710541,
0.10763870179653168,
-0.10609017312526703,
-0.3347287178039551,
-0.17597892880439758,
0.028969790786504745,
0.15211080014705658,
0.08702381700277328,
-0.14029906690120697,
-0.13828912377357483,
-0.0890989676117897,
-0.020553238689899445,
-0.1737535297870636,
-0.08081284165382385,
-0.27328771352767944,
-0.08856484293937683,
0.017412591725587845,
0.16789008677005768,
0.11533848941326141,
-0.237476646900177,
-0.026261594146490097,
-0.08536620438098907,
0.24760811030864716,
0.08343248814344406,
-0.1069345772266388,
0.12690944969654083,
-0.02970130741596222,
-0.2137414664030075,
-0.11610903590917587,
0.009990319609642029,
0.1641688048839569,
0.18888705968856812,
-0.178988516330719,
0.03285028412938118,
0.0628119558095932,
0.33575206995010376,
0.22117961943149567,
-0.28550535440444946,
-0.003907499834895134,
0.25878292322158813,
0.15996666252613068,
-0.305117130279541,
0.13551071286201477,
0.5688181519508362,
0.11621767282485962,
-0.19264231622219086,
0.15132100880146027,
0.1291159838438034,
-0.05867739021778107,
-0.05562005937099457,
0.13727545738220215,
0.5175207853317261,
-0.17220841348171234,
0.3115229308605194,
0.21806250512599945,
0.03187613561749458,
0.01128128170967102,
0.03523927554488182,
0.17268377542495728,
0.04700559750199318,
0.6041743755340576,
-0.09633185714483261,
0.5378551483154297,
0.2766202688217163,
0.1715887486934662,
-0.017959654331207275,
-0.2979881763458252,
0.05162421241402626,
0.08350896835327148,
0.05140339583158493,
-0.0647093877196312,
0.055691517889499664,
0.4750155806541443,
0.05232834070920944,
-0.28819701075553894,
-0.19496750831604004,
0.08890864253044128,
-0.0953514352440834,
0.4037153124809265,
-0.17887218296527863,
-0.2117675244808197,
-0.09866861253976822,
-0.17450754344463348,
0.01790875568985939,
-0.19831977784633636,
0.36480629444122314,
0.1855035126209259,
-0.1240948885679245,
-0.17786309123039246,
0.42439278960227966,
0.07729250192642212,
0.2227858603000641,
-0.028725193813443184,
0.24809882044792175,
0.014133729040622711,
-0.09708815813064575,
-0.14752666652202606,
0.2929858863353729,
0.3658083975315094,
0.47795310616493225,
-0.1898423135280609,
0.062162142246961594,
0.23089958727359772,
-0.08863279223442078,
0.07799746841192245,
0.41413187980651855,
0.3960823118686676,
0.17100584506988525,
0.11786852777004242,
0.13629978895187378,
-0.13131751120090485,
-0.04076853021979332,
0.2802562117576599,
0.09614655375480652,
-0.03166083246469498,
0.18777653574943542,
-0.23657777905464172,
-0.4242992699146271,
-0.08513554185628891,
-0.041472502052783966,
-0.3212204575538635,
-0.10037192702293396,
0.04865613579750061,
0.2468836009502411,
0.031216725707054138,
-0.2885238826274872,
0.062097273766994476,
-0.18069988489151,
0.5545125603675842,
0.16000045835971832,
0.09341870993375778,
-0.47305095195770264,
-0.3395536541938782,
-0.6459327340126038,
-0.11856474727392197,
-0.2552916705608368,
0.0187611635774374,
-0.05525702238082886,
0.017052287235856056,
0.00011624395847320557,
0.2967778444290161,
0.11373908817768097,
0.5873932242393494,
-0.04560542851686478,
-0.032373376190662384,
-0.5817580223083496,
-0.05945918336510658,
0.06665202230215073,
0.031033918261528015,
-0.162726491689682,
-0.05094195157289505,
0.1158229261636734,
-0.09944500774145126,
0.020473159849643707,
-0.038313161581754684,
-0.384872168302536,
0.35408106446266174,
0.210180401802063,
0.3670880198478699,
0.2355557680130005,
0.34615105390548706,
-0.07352370023727417,
-0.07129199802875519,
-0.09967958927154541,
-0.2440580278635025,
0.11772096157073975,
0.2783297896385193,
0.04277649149298668,
0.19066500663757324,
-0.040814269334077835,
0.14757181704044342,
-0.4616035521030426,
-0.0035803262144327164,
-0.15046674013137817,
0.29507872462272644,
-0.19723406434059143,
0.0702444389462471,
-0.05665711313486099,
0.21863363683223724,
0.15411977469921112,
-0.11128947883844376,
-0.11312884092330933,
0.2915038466453552,
-0.4034199118614197,
-0.10973925143480301,
0.46483534574508667,
-0.11772291362285614,
-0.04574165865778923,
0.2879973351955414,
0.2958424687385559,
-0.17531508207321167,
-0.05715823918581009,
-0.5936285853385925,
-0.01580911874771118,
0.3534446954727173,
-0.2711625397205353,
-0.014872966334223747,
0.07990364730358124,
-0.15441292524337769,
-0.17258234322071075,
0.03434683009982109,
0.12759822607040405,
-0.15528574585914612,
-0.1353524923324585,
0.18120746314525604,
0.06277820467948914
] |
https://github.com/huggingface/datasets/issues/246 | What is the best way to cache a dataset? | Everything is already cached by default in 🤗nlp (in particular dataset
loading and all the “map()” operations) so I don’t think you need to do any
specific caching in streamlit.
Tell us if you feel like it’s not the case.
On Sat, 6 Jun 2020 at 13:02, Fabrizio Milo <notifications@github.com> wrote:
> For example if I want to use streamlit with a nlp dataset:
>
> @st.cache
> def load_data():
> return nlp.load_dataset('squad')
>
> This code raises the error "uncachable object"
>
> Right now I just fixed with a constant for my specific case:
>
> @st.cache(hash_funcs={pyarrow.lib.Buffer: lambda b: 0})
>
> But I was curious to know what is the best way in general
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/nlp/issues/246>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABYDIHKAKO7CWGX2QY55UXLRVIO3ZANCNFSM4NV333RQ>
> .
>
| For example if I want to use streamlit with a nlp dataset:
```
@st.cache
def load_data():
return nlp.load_dataset('squad')
```
This code raises the error "uncachable object"
Right now I just fixed with a constant for my specific case:
```
@st.cache(hash_funcs={pyarrow.lib.Buffer: lambda b: 0})
```
But I was curious to know what is the best way in general
| 151 | What is the best way to cache a dataset?
For example if I want to use streamlit with a nlp dataset:
```
@st.cache
def load_data():
return nlp.load_dataset('squad')
```
This code raises the error "uncachable object"
Right now I just fixed with a constant for my specific case:
```
@st.cache(hash_funcs={pyarrow.lib.Buffer: lambda b: 0})
```
But I was curious to know what is the best way in general
Everything is already cached by default in 🤗nlp (in particular dataset
loading and all the “map()” operations) so I don’t think you need to do any
specific caching in streamlit.
Tell us if you feel like it’s not the case.
On Sat, 6 Jun 2020 at 13:02, Fabrizio Milo <notifications@github.com> wrote:
> For example if I want to use streamlit with a nlp dataset:
>
> @st.cache
> def load_data():
> return nlp.load_dataset('squad')
>
> This code raises the error "uncachable object"
>
> Right now I just fixed with a constant for my specific case:
>
> @st.cache(hash_funcs={pyarrow.lib.Buffer: lambda b: 0})
>
> But I was curious to know what is the best way in general
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/nlp/issues/246>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABYDIHKAKO7CWGX2QY55UXLRVIO3ZANCNFSM4NV333RQ>
> .
>
| [
-0.07914192229509354,
-0.005443155765533447,
0.043364476412534714,
0.030961204320192337,
0.3594627380371094,
-0.11144112050533295,
-0.006647150963544846,
0.11713960766792297,
0.068643718957901,
0.13081631064414978,
0.15775272250175476,
0.036761872470378876,
-0.18263696134090424,
0.12470660358667374,
0.4915671646595001,
-0.09635953605175018,
0.029152967035770416,
0.1217108964920044,
-0.08228893578052521,
0.09331554174423218,
-0.11592075228691101,
-0.2149103432893753,
-0.06493329256772995,
-0.16433317959308624,
-0.2909952402114868,
-0.12106438726186752,
-0.12079598009586334,
0.07994747906923294,
0.031148213893175125,
-0.20018206536769867,
0.39865925908088684,
0.19181695580482483,
0.13692817091941833,
-0.013521037995815277,
-0.00011791341967182234,
-0.017908792942762375,
0.34973984956741333,
-0.2958791255950928,
-0.34031766653060913,
-0.20648308098316193,
-0.3478736877441406,
-0.32507985830307007,
0.13562634587287903,
-0.028909288346767426,
-0.31640318036079407,
-0.11959760636091232,
0.26265373826026917,
-0.4409090280532837,
0.445041298866272,
0.18553298711776733,
0.11022968590259552,
-0.013128731399774551,
0.13428756594657898,
0.3962050974369049,
0.05256069451570511,
-0.10166166722774506,
-0.19995233416557312,
-0.11106328666210175,
0.08364374190568924,
0.00821547769010067,
0.04631650075316429,
0.2444915622472763,
-0.1063842847943306,
-0.031243108212947845,
0.6360679864883423,
-0.05064397305250168,
-0.46495378017425537,
-0.21413001418113708,
-0.08441738039255142,
0.19572681188583374,
0.6592321395874023,
-0.25751540064811707,
-0.5362508893013,
-0.3742976784706116,
0.021672766655683517,
-0.47709301114082336,
0.18693757057189941,
0.17482872307300568,
-0.0589696429669857,
0.27024778723716736,
-0.4797563850879669,
-0.3037988543510437,
0.04408314824104309,
0.19161167740821838,
0.26931989192962646,
0.025283321738243103,
-0.020784616470336914,
0.16677892208099365,
0.01617719978094101,
-0.18721120059490204,
0.17194674909114838,
-0.07143460959196091,
-0.12037134170532227,
0.2191658765077591,
-0.3066834509372711,
0.11906753480434418,
0.015553291887044907,
0.20722651481628418,
0.12553411722183228,
0.14930850267410278,
0.5070616006851196,
0.23521259427070618,
0.12814556062221527,
0.07647677510976791,
-0.01872709020972252,
0.4619314670562744,
0.007861897349357605,
-0.06266239285469055,
0.10224578529596329,
-0.1494985669851303,
-0.22853286564350128,
-0.17560529708862305,
0.17214453220367432,
0.23493632674217224,
0.2839805483818054,
0.1700599491596222,
0.08650308847427368,
-0.3802714943885803,
0.17995814979076385,
-0.10818632692098618,
-0.22967380285263062,
-0.22144491970539093,
0.12307458370923996,
0.3695170283317566,
-0.12524627149105072,
0.29581189155578613,
-0.2560271918773651,
0.03216169402003288,
-0.1035371869802475,
-0.36684510111808777,
-0.1925477683544159,
0.00824962928891182,
-0.05217767134308815,
0.39534786343574524,
0.1942143440246582,
-0.4876004457473755,
0.13449960947036743,
-0.04390032961964607,
-0.07593180239200592,
-0.012757021933794022,
0.28489989042282104,
-0.1794952154159546,
0.2617851495742798,
0.1858827769756317,
-0.005323056131601334,
0.012310368940234184,
-0.051455508917570114,
-0.05015566200017929,
-0.21501153707504272,
0.21341422200202942,
-0.14832666516304016,
-0.7214866876602173,
0.27373790740966797,
0.05655762925744057,
-0.484158456325531,
-0.15954476594924927,
-0.37120601534843445,
0.5935317277908325,
0.27331486344337463,
-0.01564570888876915,
0.1179431676864624,
0.0013977698981761932,
-0.18249234557151794,
-0.3100670874118805,
0.2377762794494629,
0.2972569465637207,
-0.0023038536310195923,
-0.13328678905963898,
0.16391949355602264,
0.08473604172468185,
0.2712287902832031,
0.22017502784729004,
-0.35045337677001953,
0.07537122070789337,
0.06945096701383591,
-0.17820531129837036,
0.6408793330192566,
-0.15359655022621155,
-0.5387367010116577,
-0.019220387563109398,
0.2734827399253845,
0.24407003819942474,
0.10728738456964493,
0.3159645199775696,
0.015174392610788345,
-0.06073630228638649,
-0.0661827027797699,
0.4188016653060913,
-0.16444113850593567,
-0.013538999482989311,
-0.3120633363723755,
-0.4285166561603546,
0.556118369102478,
0.05918431654572487,
0.01122930645942688,
0.06355300545692444,
0.054188020527362823,
0.5534831881523132,
-0.1423950493335724,
-0.15680396556854248,
0.05727587640285492,
0.4245157241821289,
-0.07280996441841125,
-0.13832154870033264,
-0.07481333613395691,
-0.19537627696990967,
-0.789891242980957,
0.14331936836242676,
-0.1094537079334259,
-0.09454204142093658,
-0.06700065732002258,
-0.2357567697763443,
0.4408473074436188,
-0.15684495866298676,
-0.026868779212236404,
-0.12559625506401062,
-0.012603899464011192,
0.02977561205625534,
0.5305253267288208,
-0.1319664716720581,
-0.46642303466796875,
0.5715915560722351,
0.11201612651348114,
0.14406391978263855,
-0.3560892641544342,
-0.12068682909011841,
0.0672791376709938,
-0.34979191422462463,
0.10397645831108093,
0.27000364661216736,
0.16013360023498535,
-0.17134858667850494,
-0.16263258457183838,
0.19479134678840637,
-0.24081097543239594,
0.3363533020019531,
-0.12400355190038681,
0.38261285424232483,
0.08670087903738022,
-0.1623900979757309,
0.04803904891014099,
0.1188594251871109,
-0.035573508590459824,
0.0517500564455986,
-0.0069939494132995605,
0.24906007945537567,
0.07209462672472,
0.0005592033267021179,
0.095062255859375,
-0.24667885899543762,
0.04464459419250488,
-0.04819958657026291,
-0.08359328657388687,
0.0030470043420791626,
0.48134875297546387,
-0.1932516247034073,
0.43352463841438293,
0.38453492522239685,
-0.2530941367149353,
0.3596159815788269,
0.6983598470687866,
0.04573295637965202,
0.21781912446022034,
0.1418946236371994,
0.08751506358385086,
-0.5609432458877563,
0.2564838230609894,
-0.1957596391439438,
0.11062626540660858,
0.1782255917787552,
0.30065998435020447,
-0.0745084136724472,
0.03629342094063759,
-0.10510208457708359,
0.17545941472053528,
-0.10841304063796997,
0.025778990238904953,
-0.29418572783470154,
0.334144651889801,
0.03560334071516991,
-0.0822640210390091,
0.15766264498233795,
0.0633067637681961,
0.2589777112007141,
-0.09236083924770355,
-0.056817904114723206,
-0.34369808435440063,
-0.39305344223976135,
0.012712000869214535,
-0.15657025575637817,
-0.4962463974952698,
-0.09806744754314423,
-0.04862639307975769,
0.18844301998615265,
0.05837150290608406,
0.04018174484372139,
-0.3619219660758972,
0.26493701338768005,
-0.2749909460544586,
-0.38411644101142883,
-0.3828628659248352,
-0.16505473852157593,
-0.3346538245677948,
-0.054599277675151825,
0.13343709707260132,
-0.3610690236091614,
0.2618533670902252,
0.16983562707901,
0.041134584695100784,
-0.10506623983383179,
-0.2228546440601349,
-0.031131558120250702,
0.1255647838115692,
0.22018267214298248,
-0.13704441487789154,
0.12044356018304825,
-0.06604087352752686,
-0.08604419231414795,
0.22798597812652588,
-0.3752196133136749,
-0.10635217279195786,
-0.04953382909297943,
-0.047789569944143295,
0.24643227458000183,
-0.07402746379375458,
-0.17658531665802002,
-0.444783478975296,
-0.29952603578567505,
0.21550913155078888,
0.024121318012475967,
0.01956424117088318,
0.007149203680455685,
-0.22228030860424042,
-0.016537901014089584,
0.030846446752548218,
0.057508207857608795,
-0.23352524638175964,
-0.5710586905479431,
0.3007078468799591,
0.1204296424984932,
-0.3306605815887451,
-0.1724933534860611,
-0.09107524901628494,
-0.04977622255682945,
0.35892432928085327,
-0.4684199094772339,
-0.1763007640838623,
-0.1630813628435135,
0.059816185384988785,
0.13351571559906006,
-0.39325520396232605,
0.3917959928512573,
-0.09550555795431137,
0.024695267900824547,
0.0015861578285694122,
-0.3434220850467682,
-0.03014705330133438,
0.06869515776634216,
0.467453271150589,
0.31091436743736267,
0.10023178905248642,
0.369001567363739,
0.6891120672225952,
0.13364511728286743,
0.02585597150027752,
0.4306858777999878,
0.26535820960998535,
0.30635589361190796,
-0.14255216717720032,
-0.22825483977794647,
0.34577760100364685,
-0.1200149655342102,
-0.028258750215172768,
-0.03420931100845337,
0.28292495012283325,
-0.19947385787963867,
-0.2714638113975525,
-0.0196002759039402,
-0.2883560359477997,
-0.1858428567647934,
0.2942030131816864,
-0.3300027847290039,
0.15741726756095886,
0.31393206119537354,
-0.017791040241718292,
-0.1596551537513733,
-0.5740082859992981,
-0.031271107494831085,
0.24707093834877014,
0.2790088653564453,
0.4540109932422638,
-0.5400019884109497,
-0.14974813163280487,
-0.6193512678146362,
0.5108375549316406,
0.10881710052490234,
0.2713662385940552,
-0.28662192821502686,
0.03023248165845871,
0.010310716927051544,
-0.3335002362728119,
0.16138656437397003,
-0.07279406487941742,
-0.2789883017539978,
-0.10651412606239319,
-0.13539162278175354,
-0.16624799370765686,
0.043187711387872696,
0.2015489786863327,
0.3970450460910797,
0.005509538576006889,
0.05905634164810181,
-0.2887249290943146,
-0.1980152279138565,
-0.16783638298511505,
0.09473254531621933,
-0.2160206288099289,
0.04998598247766495,
-0.15663877129554749,
-0.2946559488773346,
-0.1753399670124054,
0.02662447839975357,
-0.3478454351425171,
0.04475045204162598,
0.057437725365161896,
0.08069129288196564,
-0.1845289021730423,
0.2739920914173126,
0.08410976827144623,
-0.17476609349250793,
0.19753295183181763,
0.09909230470657349,
0.13539449870586395,
0.2745627164840698,
0.1315343677997589,
-0.19071757793426514,
0.4376659095287323,
0.00300576351583004,
-0.11529839038848877,
-0.2782946825027466,
0.2551511228084564,
0.24791055917739868,
0.11653952300548553,
-0.18419373035430908,
0.23854225873947144,
0.39229467511177063,
-0.1852274388074875,
-0.30709075927734375,
0.2162282019853592,
-0.17511485517024994,
0.1118570864200592,
-0.29029151797294617,
-0.7748072147369385,
0.37106794118881226,
0.17726470530033112,
-0.006860300898551941,
0.4467785060405731,
-0.3381102681159973,
-0.22206872701644897,
0.21099279820919037,
0.26043760776519775,
1.084956169128418,
-0.24216051399707794,
0.31124916672706604,
-0.004806049168109894,
0.019626803696155548,
0.6438977718353271,
-0.24340187013149261,
0.24111086130142212,
-0.175745889544487,
-0.24397043883800507,
-0.025498224422335625,
-0.14190590381622314,
0.001955028623342514,
-0.03492256999015808,
-0.08018181473016739,
0.5324953198432922,
0.30900973081588745,
0.09175074100494385,
0.04063238576054573,
0.2257106602191925,
-0.12184775620698929,
-0.265440434217453,
-0.6026580929756165,
0.13119633495807648,
-0.5431945323944092,
0.16626933217048645,
-0.08905214071273804,
-0.020830737426877022,
0.19790107011795044,
-0.20854751765727997,
-0.10693603754043579,
-0.009903144091367722,
-0.5662985444068909,
-0.02292957529425621,
-0.027668345719575882,
-0.3394787907600403,
-0.44113531708717346,
0.18825940787792206,
0.0372430682182312,
-0.1779055893421173,
-0.07329294830560684,
0.0035075433552265167,
-0.0558985099196434,
0.12711657583713531,
0.09731797128915787,
0.12756435573101044,
0.4872746169567108,
-0.037115342915058136,
0.035273291170597076,
0.02271415665745735,
-0.07152435928583145,
-0.5310295224189758,
-0.07684461772441864,
-0.14203321933746338,
0.08754987269639969,
0.05535214766860008,
-0.12871554493904114,
0.25094905495643616,
-0.02075127139687538,
-0.03142901137471199,
0.05658851936459541,
0.3216854929924011,
-0.000859410734847188,
0.07045586407184601,
0.05118483677506447,
-0.14601528644561768,
-0.01673024892807007,
0.34257808327674866,
0.030093656852841377,
-0.2030140906572342,
0.33377110958099365,
-0.10361889004707336,
-0.1535341441631317,
-0.01647821255028248,
0.05576908588409424,
-0.02783275581896305,
0.0011397749185562134,
-0.07712254673242569,
-0.2109164446592331,
-0.01367996633052826,
-0.1393115073442459,
0.16724342107772827,
0.11110326647758484,
-0.22541344165802002,
-0.10484650731086731,
-0.22110094130039215,
-0.6179186701774597,
0.33911508321762085,
0.16852685809135437,
0.10299573838710785,
0.3037678897380829,
-0.09360982477664948,
0.03792143613100052,
0.30110371112823486,
-0.24049651622772217,
-0.2288474291563034,
-0.14204895496368408,
0.201272651553154,
0.22919878363609314,
-0.16867583990097046,
0.38366326689720154,
-0.11696560680866241,
-0.0906306803226471,
-0.02903622016310692,
-0.3670320510864258,
-0.2013750970363617,
-0.06059125438332558,
0.15169531106948853,
0.17761266231536865,
-0.3068905174732208,
-0.42920103669166565,
-0.19459202885627747,
0.3183097839355469,
-0.26834607124328613,
0.03359338268637657,
0.2106246054172516,
0.03523961082100868,
0.14168529212474823,
-0.1328352838754654,
0.07792694866657257,
-0.14012131094932556,
0.0989074558019638,
0.11960642039775848,
0.1859520673751831,
-0.08012896776199341,
0.2155866175889969,
-0.008647137321531773,
0.11036933958530426,
0.006618898827582598,
-0.12068525701761246,
0.28809529542922974,
0.1817905604839325,
0.15284495055675507,
-0.34598052501678467,
0.09091047942638397,
-0.02587161213159561,
0.1417159140110016,
-0.04276561737060547,
-0.1329607516527176,
0.272470086812973,
0.2716389298439026,
0.04208461567759514,
-0.025203309953212738,
0.07081954926252365,
0.19470198452472687,
0.1654704511165619,
-0.10979162156581879,
0.21654635667800903,
0.15466904640197754,
0.1739008128643036,
0.08193188160657883,
-0.0681847631931305,
0.6233017444610596,
-0.4634339213371277,
-0.06102863326668739,
-0.34580209851264954,
-0.01117657870054245,
-0.1796020120382309,
0.32053834199905396,
0.397667795419693,
0.029405362904071808,
0.49393850564956665,
0.1547965705394745,
0.28781336545944214,
0.3103056848049164,
0.17739909887313843,
-0.11196950823068619,
-0.24882324039936066,
-0.08783529698848724,
0.5038472414016724,
0.13727201521396637,
0.38593748211860657,
0.09509159624576569,
0.35102543234825134,
0.11139742285013199,
-0.4690279960632324,
0.3331848084926605,
0.20703832805156708,
-0.047094784677028656,
-0.2459053248167038,
0.00731002539396286,
0.1810511350631714,
0.072158083319664,
0.11409436166286469,
0.11877651512622833,
-0.15829038619995117,
0.39631548523902893,
0.19786420464515686,
0.2835294008255005,
-0.2903723120689392,
0.1538342535495758,
0.41103261709213257,
0.23815488815307617,
-0.05646969750523567,
0.6531959772109985,
0.02235940843820572,
-0.10396420955657959,
0.10264499485492706,
0.2962406277656555,
0.22188366949558258,
0.027081085368990898,
-0.24861767888069153,
0.3493119180202484,
0.056806545704603195,
-0.01945756934583187,
-0.40215378999710083,
0.34653380513191223,
0.17067712545394897,
-0.011761557310819626,
0.1978529542684555,
0.05726372450590134,
-0.005411557853221893,
0.4223128855228424,
-0.04544996842741966,
0.10036076605319977,
-0.17071416974067688,
0.3791205883026123,
0.23295041918754578,
-0.14783041179180145,
0.006882844492793083,
0.21157564222812653,
-0.1929096281528473,
0.08956284821033478,
0.3285350203514099,
-0.015654541552066803,
0.2073531150817871,
-0.15555159747600555,
0.060451410710811615,
0.21840758621692657,
0.4291929602622986,
0.2490694671869278,
0.3821171224117279,
-0.1617901623249054,
0.15744753181934357,
-0.5565522909164429,
-0.021078653633594513,
0.008830510079860687,
0.18619754910469055,
0.001019395887851715,
0.268986314535141,
0.08288663625717163,
0.2567794919013977,
-0.060635313391685486,
0.16989560425281525,
0.26542457938194275,
-0.10538898408412933,
-0.2954506576061249,
-0.1335502415895462,
-0.0017769858241081238,
0.25442421436309814,
0.059433259069919586,
-0.24198943376541138,
0.24423542618751526,
0.014312627725303173,
-0.0804503783583641,
-0.2680753469467163,
-0.1614624410867691,
0.11662368476390839,
0.2480134814977646,
0.24337470531463623,
0.30240166187286377,
0.20822572708129883,
0.06503715366125107,
0.03960997611284256,
-0.21749719977378845,
-0.13979141414165497,
-0.2429806888103485,
0.05141974985599518,
-0.28826844692230225,
0.08406249433755875,
-0.40571752190589905,
0.08797082304954529,
-0.3254970908164978,
0.13946163654327393,
-0.0682576447725296,
-0.17873573303222656,
-0.0908430889248848,
-0.07741757482290268,
-0.062368907034397125,
-0.021402621641755104,
-0.06983818113803864,
0.59017014503479,
-0.06219267100095749,
-0.041088640689849854,
-0.3418329358100891,
0.07700905203819275,
0.43598830699920654,
-0.4491093158721924,
0.09844684600830078,
0.05085740238428116,
0.09313203394412994,
0.6444499492645264,
-0.22570328414440155,
-0.6652426719665527,
0.011179275810718536,
0.3136855959892273,
-0.2641385793685913,
-0.03762812167406082,
0.15061739087104797,
-0.042732175439596176,
0.15261493623256683,
-0.15119357407093048,
0.14686119556427002,
-0.08753101527690887,
-0.19629260897636414,
0.14621995389461517,
-0.05820735543966293
] |
https://github.com/huggingface/datasets/issues/245 | SST-2 test labels are all -1 | Yes, this is because the test sets for glue are hidden so the labels are
not publicly available. You can read the glue paper for more details.
On Sat, 6 Jun 2020 at 18:16, Jack Morris <notifications@github.com> wrote:
> this also happened to me with nlp.load_datasets('glue', 'mnli')
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/nlp/issues/245#issuecomment-640083980>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABYDIHMVQD2EDX2HTZUXG5DRVJTWRANCNFSM4NVG3AKQ>
> .
>
| I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
``` | 82 | SST-2 test labels are all -1
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
```
Yes, this is because the test sets for glue are hidden so the labels are
not publicly available. You can read the glue paper for more details.
On Sat, 6 Jun 2020 at 18:16, Jack Morris <notifications@github.com> wrote:
> this also happened to me with nlp.load_datasets('glue', 'mnli')
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/nlp/issues/245#issuecomment-640083980>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABYDIHMVQD2EDX2HTZUXG5DRVJTWRANCNFSM4NVG3AKQ>
> .
>
| [
0.32367756962776184,
-0.36125338077545166,
-0.09375044703483582,
0.17786180973052979,
-0.0011129453778266907,
0.10074911266565323,
0.3361845910549164,
0.44995513558387756,
0.5752965807914734,
0.014867335557937622,
-0.12565308809280396,
0.1346777081489563,
-0.14737434685230255,
0.2773217260837555,
0.3333798348903656,
-0.05304747819900513,
0.10838035494089127,
0.3197506070137024,
-0.16760067641735077,
-0.2568298280239105,
-0.03263825178146362,
0.3825783431529999,
-0.14461295306682587,
0.19946527481079102,
-0.2805326282978058,
0.2485165148973465,
0.0017224084585905075,
-0.09634039551019669,
-0.031619831919670105,
-0.5869411826133728,
0.20443373918533325,
0.2065005898475647,
0.21466241776943207,
0.041022807359695435,
-0.00011391189036658034,
0.04387733340263367,
0.1996443271636963,
-0.13507568836212158,
-0.25421246886253357,
-0.12165842950344086,
-0.10567602515220642,
-0.20287635922431946,
0.045861952006816864,
-0.10591371357440948,
-0.3367511034011841,
0.15860404074192047,
0.046821314841508865,
0.007083602249622345,
0.16406220197677612,
0.1519434005022049,
0.17462946474552155,
-0.041338153183460236,
0.003840070217847824,
0.00024256843607872725,
0.0986524447798729,
-0.35794246196746826,
0.007024278864264488,
0.04189793020486832,
-0.04498922824859619,
-0.19236905872821808,
0.285055011510849,
0.44253987073898315,
0.16352322697639465,
0.3538922369480133,
0.08915749192237854,
-0.10861791670322418,
0.29010435938835144,
-0.24144795536994934,
0.05704449862241745,
0.10712786763906479,
0.1578318476676941,
-0.15712088346481323,
-0.24079139530658722,
-0.11643972992897034,
-0.05656186863780022,
0.10065746307373047,
-0.005957208573818207,
0.02762281522154808,
0.21763668954372406,
0.29366618394851685,
-0.019367912784218788,
-0.09277636557817459,
-0.16660188138484955,
0.08752459287643433,
0.04443822801113129,
0.5951553583145142,
0.05255766212940216,
0.1323293000459671,
0.3667907416820526,
0.08864615857601166,
-0.42316168546676636,
0.2890286445617676,
-0.2783503830432892,
0.17419277131557465,
-0.5723788142204285,
-0.18345646560192108,
0.1960396021604538,
-0.0028693825006484985,
-0.2150663435459137,
0.10167351365089417,
0.025422491133213043,
0.027583997696638107,
0.3623877465724945,
-0.05170844495296478,
-0.01841646432876587,
0.32787540555000305,
0.5321335792541504,
0.35786086320877075,
0.027929387986660004,
-0.16158196330070496,
0.04337584599852562,
0.16716918349266052,
-0.3254518210887909,
-0.2536083161830902,
0.055789824575185776,
0.20358994603157043,
0.07160699367523193,
-0.3534905016422272,
-0.3213405907154083,
-0.06896533817052841,
-0.3975774943828583,
0.11827588081359863,
0.10451057553291321,
0.013810381293296814,
0.27481189370155334,
0.02854093909263611,
-0.12523633241653442,
-0.00599091500043869,
-0.11779463291168213,
-0.3868847191333771,
-0.25637468695640564,
0.1317729502916336,
-0.17771488428115845,
0.018412189558148384,
0.40443679690361023,
0.16017837822437286,
0.16646328568458557,
-0.29214444756507874,
-0.3622269034385681,
-0.042281296104192734,
0.13346989452838898,
-0.04349321871995926,
0.18527783453464508,
0.34856998920440674,
-0.2840804159641266,
0.3784767985343933,
0.242889404296875,
-0.5122994780540466,
-0.141086146235466,
-0.2726317048072815,
-0.02923911064863205,
-0.07268936932086945,
0.06737255305051804,
0.1427009552717209,
-0.30557727813720703,
-0.06546953320503235,
-0.000672169029712677,
0.34674158692359924,
-0.04100111871957779,
0.12588311731815338,
0.048716895282268524,
-0.23691947758197784,
0.001933261752128601,
0.25379279255867004,
0.22849923372268677,
0.2446567714214325,
-0.45920297503471375,
-0.09783874452114105,
0.3145676851272583,
-0.01792445406317711,
-0.16900351643562317,
0.17246192693710327,
0.2161763608455658,
0.1493660807609558,
-0.06026569753885269,
0.20516718924045563,
0.35422685742378235,
-0.30272573232650757,
-0.33421382308006287,
0.1045897826552391,
-0.28815001249313354,
-0.49943599104881287,
0.03234044462442398,
0.060902711004018784,
-0.0006796158850193024,
0.10404449701309204,
-0.042171284556388855,
-0.3407536745071411,
0.12075398117303848,
0.03561927378177643,
-0.5237574577331543,
0.25442197918891907,
0.5446702241897583,
-0.01637331396341324,
-0.025428492575883865,
-0.12888646125793457,
-0.34309449791908264,
0.19785544276237488,
0.14037677645683289,
0.05447125434875488,
0.03671228885650635,
0.15441596508026123,
0.17454198002815247,
-0.12684160470962524,
0.08580417186021805,
-0.09543485194444656,
-0.1772257685661316,
0.19450289011001587,
0.013031378388404846,
0.3939721882343292,
0.5494519472122192,
0.0648842379450798,
-0.39997604489326477,
-0.2042216807603836,
0.03571399301290512,
-0.22717013955116272,
0.17650289833545685,
0.4278755187988281,
0.3945477604866028,
-0.04702496528625488,
0.07510031759738922,
-0.011027157306671143,
0.28155091404914856,
0.009615602903068066,
-0.21090970933437347,
0.23462440073490143,
0.08188246190547943,
-0.2415732741355896,
0.07868681102991104,
0.29264798760414124,
0.28934863209724426,
-0.09177552163600922,
0.03226146101951599,
0.2211168110370636,
-0.2014569491147995,
-0.054602786898612976,
0.08865466713905334,
0.2956276535987854,
-0.08880256861448288,
-0.4509785771369934,
-0.2570938766002655,
0.5002955198287964,
-0.0395481139421463,
-0.02086939662694931,
-0.07503286749124527,
0.07552389800548553,
-0.05294352397322655,
0.15842358767986298,
-0.11409182846546173,
0.15477846562862396,
-0.0377262607216835,
-0.05912962928414345,
-0.46715861558914185,
-0.05292944610118866,
0.2241194248199463,
-0.43858084082603455,
-0.007664866745471954,
0.13175392150878906,
-0.046287599951028824,
0.3177303075790405,
0.22819434106349945,
0.16151566803455353,
0.09794717282056808,
-0.20214831829071045,
-0.20775973796844482,
-0.09145326167345047,
0.26680970191955566,
0.29076895117759705,
-0.01921635866165161,
0.1956547498703003,
0.056212931871414185,
-0.23100098967552185,
-0.5293570756912231,
-0.039803799241781235,
0.013005681335926056,
-0.09802059829235077,
-0.2299816757440567,
-0.13324186205863953,
0.33717185258865356,
-0.3350445628166199,
-0.19458547234535217,
0.20707100629806519,
-0.06920483708381653,
0.37862223386764526,
-0.626308262348175,
-0.06222297251224518,
-0.11877091974020004,
-0.12420877814292908,
-0.2760332524776459,
-0.05202329903841019,
0.010321119800209999,
-0.2586916387081146,
0.3558695316314697,
0.04935690760612488,
0.08481462299823761,
0.08254630118608475,
-0.0007404293864965439,
0.16189520061016083,
-0.14972861111164093,
0.2043098658323288,
-0.30015164613723755,
-0.12423382699489594,
-0.25058847665786743,
-0.00016626156866550446,
-0.22512659430503845,
0.3416077792644501,
0.031404849141836166,
-0.1615661084651947,
-0.4707101583480835,
0.2010546177625656,
-0.3075323700904846,
-0.050909414887428284,
-0.31167376041412354,
0.19300277531147003,
0.22377504408359528,
0.15178649127483368,
-0.20707333087921143,
0.13810394704341888,
0.10404570400714874,
-0.10741438716650009,
-0.10880360752344131,
0.1196155697107315,
0.03148268908262253,
0.06556545943021774,
-0.46396604180336,
-0.43908438086509705,
-0.013932021334767342,
0.04091760143637657,
0.4010550379753113,
0.06592203676700592,
-0.12235131859779358,
0.04969704896211624,
-0.247098907828331,
-0.12648886442184448,
-0.175556018948555,
0.1663682907819748,
-0.18759554624557495,
-0.2554450035095215,
0.2479192614555359,
0.11192575097084045,
-0.32669827342033386,
-0.21272224187850952,
0.08012709766626358,
0.07626742869615555,
-0.7130566239356995,
-0.20004907250404358,
-0.11349258571863174,
-0.14745138585567474,
-0.05904783308506012,
0.08652301132678986,
-0.11033126711845398,
0.1984107941389084,
0.1098320484161377,
-0.02925800159573555,
-0.1576775759458542,
-0.38244202733039856,
0.6548933982849121,
0.3079111874103546,
0.09668885171413422,
-0.40281209349632263,
0.07456974685192108,
0.05198410525918007,
0.17514580488204956,
0.16730427742004395,
-0.16686584055423737,
-0.0060527026653289795,
-0.10989884287118912,
-0.04088325425982475,
0.15313667058944702,
-0.32984980940818787,
0.4263611137866974,
0.239254429936409,
0.07831556349992752,
0.2785068154335022,
0.0004219338297843933,
0.048124901950359344,
-0.02927112579345703,
0.49049296975135803,
-0.14701437950134277,
0.045152466744184494,
-0.2398294061422348,
-0.11434325575828552,
-0.1532818078994751,
0.030300147831439972,
0.010628312826156616,
-0.2077561318874359,
-0.1280961036682129,
0.14922413229942322,
-0.16171930730342865,
-0.03725919872522354,
0.2752903401851654,
-0.7325527667999268,
-0.07514504343271255,
-0.09447210282087326,
-0.02846360206604004,
0.04528459906578064,
0.44044029712677,
-0.10819901525974274,
-0.11886119842529297,
0.1701604723930359,
-0.00820203684270382,
0.6488137245178223,
0.061725467443466187,
0.4940756559371948,
0.3102583885192871,
0.19854360818862915,
-0.34251639246940613,
-0.380138099193573,
-0.43936604261398315,
-0.17255264520645142,
0.5286614298820496,
0.15605442225933075,
-0.25423943996429443,
-0.28723612427711487,
0.2137312889099121,
-0.10232765227556229,
-0.1947612166404724,
0.09638582915067673,
-0.42038965225219727,
-0.23837247490882874,
0.332248717546463,
-0.037344299256801605,
0.16446207463741302,
0.0595598928630352,
-0.0016736260149627924,
0.07826991379261017,
0.23689055442810059,
-0.46082091331481934,
0.40271836519241333,
0.35780712962150574,
0.12857753038406372,
0.3503623902797699,
0.024372011423110962,
0.3749050796031952,
0.11767150461673737,
-0.4649388790130615,
0.23649893701076508,
-0.15619724988937378,
-0.04619339108467102,
0.17196285724639893,
-0.2602110505104065,
0.3416866660118103,
-0.06599041819572449,
-0.1073218286037445,
-0.04898732155561447,
-0.3839333653450012,
0.28621622920036316,
-0.3703197240829468,
0.30199822783470154,
0.3484678864479065,
0.24248507618904114,
0.02012871764600277,
-0.1555308699607849,
0.122219979763031,
-0.11809879541397095,
-0.26283901929855347,
-0.21134698390960693,
-0.016152992844581604,
-0.4556926190853119,
0.08492002636194229,
-0.21041011810302734,
0.6448186039924622,
0.04535163193941116,
0.0006922893226146698,
0.10229910910129547,
-0.34347403049468994,
0.5957658290863037,
-0.11621270328760147,
0.13951793313026428,
-0.2881869077682495,
-0.08220282942056656,
0.06939642131328583,
0.06554305553436279,
-0.1502910554409027,
0.4253509044647217,
-0.1543276160955429,
0.42215731739997864,
0.18519441783428192,
0.007249355316162109,
0.03674499690532684,
0.14724621176719666,
0.5044358372688293,
0.13582266867160797,
-0.2058895379304886,
0.18068663775920868,
-0.22780300676822662,
0.1381680965423584,
-0.10229217261075974,
-0.020024459809064865,
0.1115599125623703,
-0.2711080312728882,
-0.2080397605895996,
-0.1458148956298828,
-0.3024892807006836,
-0.08702052384614944,
0.42410022020339966,
0.10370294749736786,
-0.16669975221157074,
0.036883823573589325,
0.5649842023849487,
0.23046532273292542,
-0.219545379281044,
-0.06361688673496246,
0.16688579320907593,
0.3394564092159271,
0.09629546105861664,
0.2072867453098297,
0.319813996553421,
0.0012470297515392303,
-0.230873703956604,
-0.016641132533550262,
0.08016321063041687,
0.17380860447883606,
-0.3481503129005432,
-0.10174195468425751,
-0.046894147992134094,
-0.12306821346282959,
0.22461679577827454,
0.28752243518829346,
0.13450142741203308,
-0.2777548134326935,
0.14777596294879913,
0.04211065545678139,
-0.4823458194732666,
0.08805491775274277,
0.18621546030044556,
-0.44669607281684875,
0.12845063209533691,
0.4110446572303772,
-0.39318540692329407,
0.3199150562286377,
0.2890367805957794,
-0.07670183479785919,
-0.008668756112456322,
-0.2683328688144684,
0.08293009549379349,
0.020792800933122635,
-0.5002565979957581,
0.15103749930858612,
0.06824205070734024,
-0.3127124309539795,
-0.061799950897693634,
0.35857462882995605,
0.3742308020591736,
-0.0457242876291275,
-0.045920200645923615,
0.049565814435482025,
-0.12660588324069977,
-0.03153623640537262,
-0.052550945430994034,
0.294924259185791,
-0.09919634461402893,
0.20353907346725464,
-0.0005553066730499268,
0.2477174997329712,
-0.31384697556495667,
-0.18423546850681305,
-0.3627869188785553,
0.1797093003988266,
-0.007426725700497627,
-0.008049730211496353,
-0.22068636119365692,
-0.08024922013282776,
0.20637355744838715,
-0.2019587755203247,
-0.07713684439659119,
-0.23787757754325867,
0.04907630756497383,
0.10978687554597855,
-0.06195380538702011,
0.04754204303026199,
-0.24244053661823273,
0.07746124267578125,
0.040033385157585144,
0.0109386732801795,
-0.06157440319657326,
0.06705925613641739,
0.09701256453990936,
0.8924071192741394,
0.10893607139587402,
-0.034524232149124146,
0.12641467154026031,
-0.047205157577991486,
-0.09084080159664154,
-0.13989008963108063,
-0.0353141650557518,
0.22051642835140228,
0.2597258687019348,
0.07087543606758118,
-0.24794195592403412,
0.10922634601593018,
-0.4701395034790039,
0.06705967336893082,
-0.10033894330263138,
-0.3349016308784485,
0.17072761058807373,
-0.11029047518968582,
0.2450975775718689,
-0.0020970478653907776,
-0.05650316923856735,
-0.07533687353134155,
0.19672593474388123,
0.274404376745224,
-0.14405924081802368,
0.2991374135017395,
0.30246269702911377,
0.12853078544139862,
0.20637571811676025,
0.2766055464744568,
-0.08614090085029602,
-0.09184569865465164,
0.044616907835006714,
0.1708594262599945,
0.25332072377204895,
-0.15568141639232635,
0.014833825640380383,
0.23541900515556335,
-0.377832293510437,
-0.1394176483154297,
0.2338888794183731,
-0.5454511046409607,
-0.259985089302063,
-0.0635320320725441,
0.35906127095222473,
0.47308334708213806,
0.24429067969322205,
0.2248540073633194,
-0.11749643832445145,
0.5504232048988342,
-0.10056453943252563,
0.11489929258823395,
-0.19030073285102844,
0.15680840611457825,
-0.026904329657554626,
0.4228303134441376,
-0.22543497383594513,
-0.28968173265457153,
-0.1428186446428299,
0.0741942971944809,
0.01234198734164238,
-0.42273542284965515,
-0.3647424280643463,
0.07755815237760544,
-0.2778157591819763,
0.0937696248292923,
0.02724233642220497,
-0.06893548369407654,
0.42622092366218567,
-0.015630826354026794,
0.02931419014930725,
-0.3624056875705719,
-0.6591201424598694,
0.08273047208786011,
0.24549707770347595,
-0.030819522216916084,
0.3564569652080536,
0.013535447418689728,
-0.023416846990585327,
0.08269421756267548,
0.48508647084236145,
-0.02170846238732338,
-0.15393638610839844,
-0.13774967193603516,
-0.29478371143341064,
-0.19909749925136566,
-0.17983478307724,
-0.19977405667304993,
0.11430645734071732,
-0.06895354390144348,
-0.20472495257854462,
0.22563251852989197,
0.13329356908798218,
-0.033868368715047836,
0.4815896153450012,
-0.3065575659275055,
-0.135290265083313,
-0.19851680099964142,
0.4735824465751648,
0.05333273112773895,
-0.08433855324983597,
-0.04198838770389557,
0.004211992025375366,
-0.2606082260608673,
-0.1726108193397522,
0.01021256111562252,
-0.06900586187839508,
0.2692814767360687,
-0.31078851222991943,
0.08778030425310135,
0.08726079761981964,
0.4814492464065552,
-0.2841913104057312,
0.13342496752738953,
-0.15048424899578094,
0.15816782414913177,
-0.18487492203712463,
-0.14636114239692688,
-0.0363076813519001,
-0.16399900615215302,
-0.12060625851154327,
-0.05896010994911194,
0.16122832894325256,
-0.077625572681427,
0.05039303004741669,
0.3595695495605469,
-0.11823950707912445,
-0.06551504135131836,
-0.34884095191955566,
0.34651753306388855,
0.06192464381456375,
0.3626910150051117,
0.23910871148109436,
-0.1259865164756775,
0.13562248647212982,
0.11258259415626526,
0.0826554223895073,
0.10623306781053543,
0.16612523794174194,
-0.09636068344116211,
0.2769809365272522,
0.19938425719738007,
0.08972795307636261,
0.49743935465812683,
0.05676386505365372,
0.173707976937294,
-0.2943834066390991,
-0.33704033493995667,
-0.360850065946579,
-0.10455324500799179,
-0.2991926968097687,
0.40716370940208435,
-0.05689796060323715,
0.0057603903114795685,
0.1097954660654068,
-0.12080252915620804,
0.1738741546869278,
0.32849833369255066,
-0.2332249879837036,
0.14248213171958923,
-0.06964552402496338,
-0.021369505673646927,
-0.011361121200025082,
-0.15444034337997437,
0.1508358269929886,
-0.0689024031162262,
-0.15474021434783936,
-0.5150068402290344,
0.6079293489456177,
-0.1748904138803482,
-0.12970608472824097,
-0.07439268380403519,
0.3857116997241974,
0.32967713475227356,
-0.1316094696521759,
-0.5880597233772278,
-0.22726646065711975,
0.49602746963500977,
0.194172203540802,
-0.41083356738090515,
0.33431440591812134,
0.13902758061885834,
0.21445725858211517,
0.09442709386348724,
-0.08707517385482788,
0.3029444217681885,
0.04614277929067612,
-0.037220168858766556,
-0.28242307901382446
] |
https://github.com/huggingface/datasets/issues/245 | SST-2 test labels are all -1 | It should be in the datasets card (the README.md and on the hub) in my opinion. What do you think @yjernite? | I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
``` | 21 | SST-2 test labels are all -1
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
```
It should be in the datasets card (the README.md and on the hub) in my opinion. What do you think @yjernite? | [
0.32367756962776184,
-0.36125338077545166,
-0.09375044703483582,
0.17786180973052979,
-0.0011129453778266907,
0.10074911266565323,
0.3361845910549164,
0.44995513558387756,
0.5752965807914734,
0.014867335557937622,
-0.12565308809280396,
0.1346777081489563,
-0.14737434685230255,
0.2773217260837555,
0.3333798348903656,
-0.05304747819900513,
0.10838035494089127,
0.3197506070137024,
-0.16760067641735077,
-0.2568298280239105,
-0.03263825178146362,
0.3825783431529999,
-0.14461295306682587,
0.19946527481079102,
-0.2805326282978058,
0.2485165148973465,
0.0017224084585905075,
-0.09634039551019669,
-0.031619831919670105,
-0.5869411826133728,
0.20443373918533325,
0.2065005898475647,
0.21466241776943207,
0.041022807359695435,
-0.00011391189036658034,
0.04387733340263367,
0.1996443271636963,
-0.13507568836212158,
-0.25421246886253357,
-0.12165842950344086,
-0.10567602515220642,
-0.20287635922431946,
0.045861952006816864,
-0.10591371357440948,
-0.3367511034011841,
0.15860404074192047,
0.046821314841508865,
0.007083602249622345,
0.16406220197677612,
0.1519434005022049,
0.17462946474552155,
-0.041338153183460236,
0.003840070217847824,
0.00024256843607872725,
0.0986524447798729,
-0.35794246196746826,
0.007024278864264488,
0.04189793020486832,
-0.04498922824859619,
-0.19236905872821808,
0.285055011510849,
0.44253987073898315,
0.16352322697639465,
0.3538922369480133,
0.08915749192237854,
-0.10861791670322418,
0.29010435938835144,
-0.24144795536994934,
0.05704449862241745,
0.10712786763906479,
0.1578318476676941,
-0.15712088346481323,
-0.24079139530658722,
-0.11643972992897034,
-0.05656186863780022,
0.10065746307373047,
-0.005957208573818207,
0.02762281522154808,
0.21763668954372406,
0.29366618394851685,
-0.019367912784218788,
-0.09277636557817459,
-0.16660188138484955,
0.08752459287643433,
0.04443822801113129,
0.5951553583145142,
0.05255766212940216,
0.1323293000459671,
0.3667907416820526,
0.08864615857601166,
-0.42316168546676636,
0.2890286445617676,
-0.2783503830432892,
0.17419277131557465,
-0.5723788142204285,
-0.18345646560192108,
0.1960396021604538,
-0.0028693825006484985,
-0.2150663435459137,
0.10167351365089417,
0.025422491133213043,
0.027583997696638107,
0.3623877465724945,
-0.05170844495296478,
-0.01841646432876587,
0.32787540555000305,
0.5321335792541504,
0.35786086320877075,
0.027929387986660004,
-0.16158196330070496,
0.04337584599852562,
0.16716918349266052,
-0.3254518210887909,
-0.2536083161830902,
0.055789824575185776,
0.20358994603157043,
0.07160699367523193,
-0.3534905016422272,
-0.3213405907154083,
-0.06896533817052841,
-0.3975774943828583,
0.11827588081359863,
0.10451057553291321,
0.013810381293296814,
0.27481189370155334,
0.02854093909263611,
-0.12523633241653442,
-0.00599091500043869,
-0.11779463291168213,
-0.3868847191333771,
-0.25637468695640564,
0.1317729502916336,
-0.17771488428115845,
0.018412189558148384,
0.40443679690361023,
0.16017837822437286,
0.16646328568458557,
-0.29214444756507874,
-0.3622269034385681,
-0.042281296104192734,
0.13346989452838898,
-0.04349321871995926,
0.18527783453464508,
0.34856998920440674,
-0.2840804159641266,
0.3784767985343933,
0.242889404296875,
-0.5122994780540466,
-0.141086146235466,
-0.2726317048072815,
-0.02923911064863205,
-0.07268936932086945,
0.06737255305051804,
0.1427009552717209,
-0.30557727813720703,
-0.06546953320503235,
-0.000672169029712677,
0.34674158692359924,
-0.04100111871957779,
0.12588311731815338,
0.048716895282268524,
-0.23691947758197784,
0.001933261752128601,
0.25379279255867004,
0.22849923372268677,
0.2446567714214325,
-0.45920297503471375,
-0.09783874452114105,
0.3145676851272583,
-0.01792445406317711,
-0.16900351643562317,
0.17246192693710327,
0.2161763608455658,
0.1493660807609558,
-0.06026569753885269,
0.20516718924045563,
0.35422685742378235,
-0.30272573232650757,
-0.33421382308006287,
0.1045897826552391,
-0.28815001249313354,
-0.49943599104881287,
0.03234044462442398,
0.060902711004018784,
-0.0006796158850193024,
0.10404449701309204,
-0.042171284556388855,
-0.3407536745071411,
0.12075398117303848,
0.03561927378177643,
-0.5237574577331543,
0.25442197918891907,
0.5446702241897583,
-0.01637331396341324,
-0.025428492575883865,
-0.12888646125793457,
-0.34309449791908264,
0.19785544276237488,
0.14037677645683289,
0.05447125434875488,
0.03671228885650635,
0.15441596508026123,
0.17454198002815247,
-0.12684160470962524,
0.08580417186021805,
-0.09543485194444656,
-0.1772257685661316,
0.19450289011001587,
0.013031378388404846,
0.3939721882343292,
0.5494519472122192,
0.0648842379450798,
-0.39997604489326477,
-0.2042216807603836,
0.03571399301290512,
-0.22717013955116272,
0.17650289833545685,
0.4278755187988281,
0.3945477604866028,
-0.04702496528625488,
0.07510031759738922,
-0.011027157306671143,
0.28155091404914856,
0.009615602903068066,
-0.21090970933437347,
0.23462440073490143,
0.08188246190547943,
-0.2415732741355896,
0.07868681102991104,
0.29264798760414124,
0.28934863209724426,
-0.09177552163600922,
0.03226146101951599,
0.2211168110370636,
-0.2014569491147995,
-0.054602786898612976,
0.08865466713905334,
0.2956276535987854,
-0.08880256861448288,
-0.4509785771369934,
-0.2570938766002655,
0.5002955198287964,
-0.0395481139421463,
-0.02086939662694931,
-0.07503286749124527,
0.07552389800548553,
-0.05294352397322655,
0.15842358767986298,
-0.11409182846546173,
0.15477846562862396,
-0.0377262607216835,
-0.05912962928414345,
-0.46715861558914185,
-0.05292944610118866,
0.2241194248199463,
-0.43858084082603455,
-0.007664866745471954,
0.13175392150878906,
-0.046287599951028824,
0.3177303075790405,
0.22819434106349945,
0.16151566803455353,
0.09794717282056808,
-0.20214831829071045,
-0.20775973796844482,
-0.09145326167345047,
0.26680970191955566,
0.29076895117759705,
-0.01921635866165161,
0.1956547498703003,
0.056212931871414185,
-0.23100098967552185,
-0.5293570756912231,
-0.039803799241781235,
0.013005681335926056,
-0.09802059829235077,
-0.2299816757440567,
-0.13324186205863953,
0.33717185258865356,
-0.3350445628166199,
-0.19458547234535217,
0.20707100629806519,
-0.06920483708381653,
0.37862223386764526,
-0.626308262348175,
-0.06222297251224518,
-0.11877091974020004,
-0.12420877814292908,
-0.2760332524776459,
-0.05202329903841019,
0.010321119800209999,
-0.2586916387081146,
0.3558695316314697,
0.04935690760612488,
0.08481462299823761,
0.08254630118608475,
-0.0007404293864965439,
0.16189520061016083,
-0.14972861111164093,
0.2043098658323288,
-0.30015164613723755,
-0.12423382699489594,
-0.25058847665786743,
-0.00016626156866550446,
-0.22512659430503845,
0.3416077792644501,
0.031404849141836166,
-0.1615661084651947,
-0.4707101583480835,
0.2010546177625656,
-0.3075323700904846,
-0.050909414887428284,
-0.31167376041412354,
0.19300277531147003,
0.22377504408359528,
0.15178649127483368,
-0.20707333087921143,
0.13810394704341888,
0.10404570400714874,
-0.10741438716650009,
-0.10880360752344131,
0.1196155697107315,
0.03148268908262253,
0.06556545943021774,
-0.46396604180336,
-0.43908438086509705,
-0.013932021334767342,
0.04091760143637657,
0.4010550379753113,
0.06592203676700592,
-0.12235131859779358,
0.04969704896211624,
-0.247098907828331,
-0.12648886442184448,
-0.175556018948555,
0.1663682907819748,
-0.18759554624557495,
-0.2554450035095215,
0.2479192614555359,
0.11192575097084045,
-0.32669827342033386,
-0.21272224187850952,
0.08012709766626358,
0.07626742869615555,
-0.7130566239356995,
-0.20004907250404358,
-0.11349258571863174,
-0.14745138585567474,
-0.05904783308506012,
0.08652301132678986,
-0.11033126711845398,
0.1984107941389084,
0.1098320484161377,
-0.02925800159573555,
-0.1576775759458542,
-0.38244202733039856,
0.6548933982849121,
0.3079111874103546,
0.09668885171413422,
-0.40281209349632263,
0.07456974685192108,
0.05198410525918007,
0.17514580488204956,
0.16730427742004395,
-0.16686584055423737,
-0.0060527026653289795,
-0.10989884287118912,
-0.04088325425982475,
0.15313667058944702,
-0.32984980940818787,
0.4263611137866974,
0.239254429936409,
0.07831556349992752,
0.2785068154335022,
0.0004219338297843933,
0.048124901950359344,
-0.02927112579345703,
0.49049296975135803,
-0.14701437950134277,
0.045152466744184494,
-0.2398294061422348,
-0.11434325575828552,
-0.1532818078994751,
0.030300147831439972,
0.010628312826156616,
-0.2077561318874359,
-0.1280961036682129,
0.14922413229942322,
-0.16171930730342865,
-0.03725919872522354,
0.2752903401851654,
-0.7325527667999268,
-0.07514504343271255,
-0.09447210282087326,
-0.02846360206604004,
0.04528459906578064,
0.44044029712677,
-0.10819901525974274,
-0.11886119842529297,
0.1701604723930359,
-0.00820203684270382,
0.6488137245178223,
0.061725467443466187,
0.4940756559371948,
0.3102583885192871,
0.19854360818862915,
-0.34251639246940613,
-0.380138099193573,
-0.43936604261398315,
-0.17255264520645142,
0.5286614298820496,
0.15605442225933075,
-0.25423943996429443,
-0.28723612427711487,
0.2137312889099121,
-0.10232765227556229,
-0.1947612166404724,
0.09638582915067673,
-0.42038965225219727,
-0.23837247490882874,
0.332248717546463,
-0.037344299256801605,
0.16446207463741302,
0.0595598928630352,
-0.0016736260149627924,
0.07826991379261017,
0.23689055442810059,
-0.46082091331481934,
0.40271836519241333,
0.35780712962150574,
0.12857753038406372,
0.3503623902797699,
0.024372011423110962,
0.3749050796031952,
0.11767150461673737,
-0.4649388790130615,
0.23649893701076508,
-0.15619724988937378,
-0.04619339108467102,
0.17196285724639893,
-0.2602110505104065,
0.3416866660118103,
-0.06599041819572449,
-0.1073218286037445,
-0.04898732155561447,
-0.3839333653450012,
0.28621622920036316,
-0.3703197240829468,
0.30199822783470154,
0.3484678864479065,
0.24248507618904114,
0.02012871764600277,
-0.1555308699607849,
0.122219979763031,
-0.11809879541397095,
-0.26283901929855347,
-0.21134698390960693,
-0.016152992844581604,
-0.4556926190853119,
0.08492002636194229,
-0.21041011810302734,
0.6448186039924622,
0.04535163193941116,
0.0006922893226146698,
0.10229910910129547,
-0.34347403049468994,
0.5957658290863037,
-0.11621270328760147,
0.13951793313026428,
-0.2881869077682495,
-0.08220282942056656,
0.06939642131328583,
0.06554305553436279,
-0.1502910554409027,
0.4253509044647217,
-0.1543276160955429,
0.42215731739997864,
0.18519441783428192,
0.007249355316162109,
0.03674499690532684,
0.14724621176719666,
0.5044358372688293,
0.13582266867160797,
-0.2058895379304886,
0.18068663775920868,
-0.22780300676822662,
0.1381680965423584,
-0.10229217261075974,
-0.020024459809064865,
0.1115599125623703,
-0.2711080312728882,
-0.2080397605895996,
-0.1458148956298828,
-0.3024892807006836,
-0.08702052384614944,
0.42410022020339966,
0.10370294749736786,
-0.16669975221157074,
0.036883823573589325,
0.5649842023849487,
0.23046532273292542,
-0.219545379281044,
-0.06361688673496246,
0.16688579320907593,
0.3394564092159271,
0.09629546105861664,
0.2072867453098297,
0.319813996553421,
0.0012470297515392303,
-0.230873703956604,
-0.016641132533550262,
0.08016321063041687,
0.17380860447883606,
-0.3481503129005432,
-0.10174195468425751,
-0.046894147992134094,
-0.12306821346282959,
0.22461679577827454,
0.28752243518829346,
0.13450142741203308,
-0.2777548134326935,
0.14777596294879913,
0.04211065545678139,
-0.4823458194732666,
0.08805491775274277,
0.18621546030044556,
-0.44669607281684875,
0.12845063209533691,
0.4110446572303772,
-0.39318540692329407,
0.3199150562286377,
0.2890367805957794,
-0.07670183479785919,
-0.008668756112456322,
-0.2683328688144684,
0.08293009549379349,
0.020792800933122635,
-0.5002565979957581,
0.15103749930858612,
0.06824205070734024,
-0.3127124309539795,
-0.061799950897693634,
0.35857462882995605,
0.3742308020591736,
-0.0457242876291275,
-0.045920200645923615,
0.049565814435482025,
-0.12660588324069977,
-0.03153623640537262,
-0.052550945430994034,
0.294924259185791,
-0.09919634461402893,
0.20353907346725464,
-0.0005553066730499268,
0.2477174997329712,
-0.31384697556495667,
-0.18423546850681305,
-0.3627869188785553,
0.1797093003988266,
-0.007426725700497627,
-0.008049730211496353,
-0.22068636119365692,
-0.08024922013282776,
0.20637355744838715,
-0.2019587755203247,
-0.07713684439659119,
-0.23787757754325867,
0.04907630756497383,
0.10978687554597855,
-0.06195380538702011,
0.04754204303026199,
-0.24244053661823273,
0.07746124267578125,
0.040033385157585144,
0.0109386732801795,
-0.06157440319657326,
0.06705925613641739,
0.09701256453990936,
0.8924071192741394,
0.10893607139587402,
-0.034524232149124146,
0.12641467154026031,
-0.047205157577991486,
-0.09084080159664154,
-0.13989008963108063,
-0.0353141650557518,
0.22051642835140228,
0.2597258687019348,
0.07087543606758118,
-0.24794195592403412,
0.10922634601593018,
-0.4701395034790039,
0.06705967336893082,
-0.10033894330263138,
-0.3349016308784485,
0.17072761058807373,
-0.11029047518968582,
0.2450975775718689,
-0.0020970478653907776,
-0.05650316923856735,
-0.07533687353134155,
0.19672593474388123,
0.274404376745224,
-0.14405924081802368,
0.2991374135017395,
0.30246269702911377,
0.12853078544139862,
0.20637571811676025,
0.2766055464744568,
-0.08614090085029602,
-0.09184569865465164,
0.044616907835006714,
0.1708594262599945,
0.25332072377204895,
-0.15568141639232635,
0.014833825640380383,
0.23541900515556335,
-0.377832293510437,
-0.1394176483154297,
0.2338888794183731,
-0.5454511046409607,
-0.259985089302063,
-0.0635320320725441,
0.35906127095222473,
0.47308334708213806,
0.24429067969322205,
0.2248540073633194,
-0.11749643832445145,
0.5504232048988342,
-0.10056453943252563,
0.11489929258823395,
-0.19030073285102844,
0.15680840611457825,
-0.026904329657554626,
0.4228303134441376,
-0.22543497383594513,
-0.28968173265457153,
-0.1428186446428299,
0.0741942971944809,
0.01234198734164238,
-0.42273542284965515,
-0.3647424280643463,
0.07755815237760544,
-0.2778157591819763,
0.0937696248292923,
0.02724233642220497,
-0.06893548369407654,
0.42622092366218567,
-0.015630826354026794,
0.02931419014930725,
-0.3624056875705719,
-0.6591201424598694,
0.08273047208786011,
0.24549707770347595,
-0.030819522216916084,
0.3564569652080536,
0.013535447418689728,
-0.023416846990585327,
0.08269421756267548,
0.48508647084236145,
-0.02170846238732338,
-0.15393638610839844,
-0.13774967193603516,
-0.29478371143341064,
-0.19909749925136566,
-0.17983478307724,
-0.19977405667304993,
0.11430645734071732,
-0.06895354390144348,
-0.20472495257854462,
0.22563251852989197,
0.13329356908798218,
-0.033868368715047836,
0.4815896153450012,
-0.3065575659275055,
-0.135290265083313,
-0.19851680099964142,
0.4735824465751648,
0.05333273112773895,
-0.08433855324983597,
-0.04198838770389557,
0.004211992025375366,
-0.2606082260608673,
-0.1726108193397522,
0.01021256111562252,
-0.06900586187839508,
0.2692814767360687,
-0.31078851222991943,
0.08778030425310135,
0.08726079761981964,
0.4814492464065552,
-0.2841913104057312,
0.13342496752738953,
-0.15048424899578094,
0.15816782414913177,
-0.18487492203712463,
-0.14636114239692688,
-0.0363076813519001,
-0.16399900615215302,
-0.12060625851154327,
-0.05896010994911194,
0.16122832894325256,
-0.077625572681427,
0.05039303004741669,
0.3595695495605469,
-0.11823950707912445,
-0.06551504135131836,
-0.34884095191955566,
0.34651753306388855,
0.06192464381456375,
0.3626910150051117,
0.23910871148109436,
-0.1259865164756775,
0.13562248647212982,
0.11258259415626526,
0.0826554223895073,
0.10623306781053543,
0.16612523794174194,
-0.09636068344116211,
0.2769809365272522,
0.19938425719738007,
0.08972795307636261,
0.49743935465812683,
0.05676386505365372,
0.173707976937294,
-0.2943834066390991,
-0.33704033493995667,
-0.360850065946579,
-0.10455324500799179,
-0.2991926968097687,
0.40716370940208435,
-0.05689796060323715,
0.0057603903114795685,
0.1097954660654068,
-0.12080252915620804,
0.1738741546869278,
0.32849833369255066,
-0.2332249879837036,
0.14248213171958923,
-0.06964552402496338,
-0.021369505673646927,
-0.011361121200025082,
-0.15444034337997437,
0.1508358269929886,
-0.0689024031162262,
-0.15474021434783936,
-0.5150068402290344,
0.6079293489456177,
-0.1748904138803482,
-0.12970608472824097,
-0.07439268380403519,
0.3857116997241974,
0.32967713475227356,
-0.1316094696521759,
-0.5880597233772278,
-0.22726646065711975,
0.49602746963500977,
0.194172203540802,
-0.41083356738090515,
0.33431440591812134,
0.13902758061885834,
0.21445725858211517,
0.09442709386348724,
-0.08707517385482788,
0.3029444217681885,
0.04614277929067612,
-0.037220168858766556,
-0.28242307901382446
] |
https://github.com/huggingface/datasets/issues/245 | SST-2 test labels are all -1 | I checked both before I got to looking at issues, so that would be fine as well.
Some additional thoughts on this: Is there a specific reason why the "test" split even has a "label" column if it isn't tagged. Shouldn't there just not be any. Seems more transparent | I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
``` | 49 | SST-2 test labels are all -1
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
```
I checked both before I got to looking at issues, so that would be fine as well.
Some additional thoughts on this: Is there a specific reason why the "test" split even has a "label" column if it isn't tagged. Shouldn't there just not be any. Seems more transparent | [
0.32367756962776184,
-0.36125338077545166,
-0.09375044703483582,
0.17786180973052979,
-0.0011129453778266907,
0.10074911266565323,
0.3361845910549164,
0.44995513558387756,
0.5752965807914734,
0.014867335557937622,
-0.12565308809280396,
0.1346777081489563,
-0.14737434685230255,
0.2773217260837555,
0.3333798348903656,
-0.05304747819900513,
0.10838035494089127,
0.3197506070137024,
-0.16760067641735077,
-0.2568298280239105,
-0.03263825178146362,
0.3825783431529999,
-0.14461295306682587,
0.19946527481079102,
-0.2805326282978058,
0.2485165148973465,
0.0017224084585905075,
-0.09634039551019669,
-0.031619831919670105,
-0.5869411826133728,
0.20443373918533325,
0.2065005898475647,
0.21466241776943207,
0.041022807359695435,
-0.00011391189036658034,
0.04387733340263367,
0.1996443271636963,
-0.13507568836212158,
-0.25421246886253357,
-0.12165842950344086,
-0.10567602515220642,
-0.20287635922431946,
0.045861952006816864,
-0.10591371357440948,
-0.3367511034011841,
0.15860404074192047,
0.046821314841508865,
0.007083602249622345,
0.16406220197677612,
0.1519434005022049,
0.17462946474552155,
-0.041338153183460236,
0.003840070217847824,
0.00024256843607872725,
0.0986524447798729,
-0.35794246196746826,
0.007024278864264488,
0.04189793020486832,
-0.04498922824859619,
-0.19236905872821808,
0.285055011510849,
0.44253987073898315,
0.16352322697639465,
0.3538922369480133,
0.08915749192237854,
-0.10861791670322418,
0.29010435938835144,
-0.24144795536994934,
0.05704449862241745,
0.10712786763906479,
0.1578318476676941,
-0.15712088346481323,
-0.24079139530658722,
-0.11643972992897034,
-0.05656186863780022,
0.10065746307373047,
-0.005957208573818207,
0.02762281522154808,
0.21763668954372406,
0.29366618394851685,
-0.019367912784218788,
-0.09277636557817459,
-0.16660188138484955,
0.08752459287643433,
0.04443822801113129,
0.5951553583145142,
0.05255766212940216,
0.1323293000459671,
0.3667907416820526,
0.08864615857601166,
-0.42316168546676636,
0.2890286445617676,
-0.2783503830432892,
0.17419277131557465,
-0.5723788142204285,
-0.18345646560192108,
0.1960396021604538,
-0.0028693825006484985,
-0.2150663435459137,
0.10167351365089417,
0.025422491133213043,
0.027583997696638107,
0.3623877465724945,
-0.05170844495296478,
-0.01841646432876587,
0.32787540555000305,
0.5321335792541504,
0.35786086320877075,
0.027929387986660004,
-0.16158196330070496,
0.04337584599852562,
0.16716918349266052,
-0.3254518210887909,
-0.2536083161830902,
0.055789824575185776,
0.20358994603157043,
0.07160699367523193,
-0.3534905016422272,
-0.3213405907154083,
-0.06896533817052841,
-0.3975774943828583,
0.11827588081359863,
0.10451057553291321,
0.013810381293296814,
0.27481189370155334,
0.02854093909263611,
-0.12523633241653442,
-0.00599091500043869,
-0.11779463291168213,
-0.3868847191333771,
-0.25637468695640564,
0.1317729502916336,
-0.17771488428115845,
0.018412189558148384,
0.40443679690361023,
0.16017837822437286,
0.16646328568458557,
-0.29214444756507874,
-0.3622269034385681,
-0.042281296104192734,
0.13346989452838898,
-0.04349321871995926,
0.18527783453464508,
0.34856998920440674,
-0.2840804159641266,
0.3784767985343933,
0.242889404296875,
-0.5122994780540466,
-0.141086146235466,
-0.2726317048072815,
-0.02923911064863205,
-0.07268936932086945,
0.06737255305051804,
0.1427009552717209,
-0.30557727813720703,
-0.06546953320503235,
-0.000672169029712677,
0.34674158692359924,
-0.04100111871957779,
0.12588311731815338,
0.048716895282268524,
-0.23691947758197784,
0.001933261752128601,
0.25379279255867004,
0.22849923372268677,
0.2446567714214325,
-0.45920297503471375,
-0.09783874452114105,
0.3145676851272583,
-0.01792445406317711,
-0.16900351643562317,
0.17246192693710327,
0.2161763608455658,
0.1493660807609558,
-0.06026569753885269,
0.20516718924045563,
0.35422685742378235,
-0.30272573232650757,
-0.33421382308006287,
0.1045897826552391,
-0.28815001249313354,
-0.49943599104881287,
0.03234044462442398,
0.060902711004018784,
-0.0006796158850193024,
0.10404449701309204,
-0.042171284556388855,
-0.3407536745071411,
0.12075398117303848,
0.03561927378177643,
-0.5237574577331543,
0.25442197918891907,
0.5446702241897583,
-0.01637331396341324,
-0.025428492575883865,
-0.12888646125793457,
-0.34309449791908264,
0.19785544276237488,
0.14037677645683289,
0.05447125434875488,
0.03671228885650635,
0.15441596508026123,
0.17454198002815247,
-0.12684160470962524,
0.08580417186021805,
-0.09543485194444656,
-0.1772257685661316,
0.19450289011001587,
0.013031378388404846,
0.3939721882343292,
0.5494519472122192,
0.0648842379450798,
-0.39997604489326477,
-0.2042216807603836,
0.03571399301290512,
-0.22717013955116272,
0.17650289833545685,
0.4278755187988281,
0.3945477604866028,
-0.04702496528625488,
0.07510031759738922,
-0.011027157306671143,
0.28155091404914856,
0.009615602903068066,
-0.21090970933437347,
0.23462440073490143,
0.08188246190547943,
-0.2415732741355896,
0.07868681102991104,
0.29264798760414124,
0.28934863209724426,
-0.09177552163600922,
0.03226146101951599,
0.2211168110370636,
-0.2014569491147995,
-0.054602786898612976,
0.08865466713905334,
0.2956276535987854,
-0.08880256861448288,
-0.4509785771369934,
-0.2570938766002655,
0.5002955198287964,
-0.0395481139421463,
-0.02086939662694931,
-0.07503286749124527,
0.07552389800548553,
-0.05294352397322655,
0.15842358767986298,
-0.11409182846546173,
0.15477846562862396,
-0.0377262607216835,
-0.05912962928414345,
-0.46715861558914185,
-0.05292944610118866,
0.2241194248199463,
-0.43858084082603455,
-0.007664866745471954,
0.13175392150878906,
-0.046287599951028824,
0.3177303075790405,
0.22819434106349945,
0.16151566803455353,
0.09794717282056808,
-0.20214831829071045,
-0.20775973796844482,
-0.09145326167345047,
0.26680970191955566,
0.29076895117759705,
-0.01921635866165161,
0.1956547498703003,
0.056212931871414185,
-0.23100098967552185,
-0.5293570756912231,
-0.039803799241781235,
0.013005681335926056,
-0.09802059829235077,
-0.2299816757440567,
-0.13324186205863953,
0.33717185258865356,
-0.3350445628166199,
-0.19458547234535217,
0.20707100629806519,
-0.06920483708381653,
0.37862223386764526,
-0.626308262348175,
-0.06222297251224518,
-0.11877091974020004,
-0.12420877814292908,
-0.2760332524776459,
-0.05202329903841019,
0.010321119800209999,
-0.2586916387081146,
0.3558695316314697,
0.04935690760612488,
0.08481462299823761,
0.08254630118608475,
-0.0007404293864965439,
0.16189520061016083,
-0.14972861111164093,
0.2043098658323288,
-0.30015164613723755,
-0.12423382699489594,
-0.25058847665786743,
-0.00016626156866550446,
-0.22512659430503845,
0.3416077792644501,
0.031404849141836166,
-0.1615661084651947,
-0.4707101583480835,
0.2010546177625656,
-0.3075323700904846,
-0.050909414887428284,
-0.31167376041412354,
0.19300277531147003,
0.22377504408359528,
0.15178649127483368,
-0.20707333087921143,
0.13810394704341888,
0.10404570400714874,
-0.10741438716650009,
-0.10880360752344131,
0.1196155697107315,
0.03148268908262253,
0.06556545943021774,
-0.46396604180336,
-0.43908438086509705,
-0.013932021334767342,
0.04091760143637657,
0.4010550379753113,
0.06592203676700592,
-0.12235131859779358,
0.04969704896211624,
-0.247098907828331,
-0.12648886442184448,
-0.175556018948555,
0.1663682907819748,
-0.18759554624557495,
-0.2554450035095215,
0.2479192614555359,
0.11192575097084045,
-0.32669827342033386,
-0.21272224187850952,
0.08012709766626358,
0.07626742869615555,
-0.7130566239356995,
-0.20004907250404358,
-0.11349258571863174,
-0.14745138585567474,
-0.05904783308506012,
0.08652301132678986,
-0.11033126711845398,
0.1984107941389084,
0.1098320484161377,
-0.02925800159573555,
-0.1576775759458542,
-0.38244202733039856,
0.6548933982849121,
0.3079111874103546,
0.09668885171413422,
-0.40281209349632263,
0.07456974685192108,
0.05198410525918007,
0.17514580488204956,
0.16730427742004395,
-0.16686584055423737,
-0.0060527026653289795,
-0.10989884287118912,
-0.04088325425982475,
0.15313667058944702,
-0.32984980940818787,
0.4263611137866974,
0.239254429936409,
0.07831556349992752,
0.2785068154335022,
0.0004219338297843933,
0.048124901950359344,
-0.02927112579345703,
0.49049296975135803,
-0.14701437950134277,
0.045152466744184494,
-0.2398294061422348,
-0.11434325575828552,
-0.1532818078994751,
0.030300147831439972,
0.010628312826156616,
-0.2077561318874359,
-0.1280961036682129,
0.14922413229942322,
-0.16171930730342865,
-0.03725919872522354,
0.2752903401851654,
-0.7325527667999268,
-0.07514504343271255,
-0.09447210282087326,
-0.02846360206604004,
0.04528459906578064,
0.44044029712677,
-0.10819901525974274,
-0.11886119842529297,
0.1701604723930359,
-0.00820203684270382,
0.6488137245178223,
0.061725467443466187,
0.4940756559371948,
0.3102583885192871,
0.19854360818862915,
-0.34251639246940613,
-0.380138099193573,
-0.43936604261398315,
-0.17255264520645142,
0.5286614298820496,
0.15605442225933075,
-0.25423943996429443,
-0.28723612427711487,
0.2137312889099121,
-0.10232765227556229,
-0.1947612166404724,
0.09638582915067673,
-0.42038965225219727,
-0.23837247490882874,
0.332248717546463,
-0.037344299256801605,
0.16446207463741302,
0.0595598928630352,
-0.0016736260149627924,
0.07826991379261017,
0.23689055442810059,
-0.46082091331481934,
0.40271836519241333,
0.35780712962150574,
0.12857753038406372,
0.3503623902797699,
0.024372011423110962,
0.3749050796031952,
0.11767150461673737,
-0.4649388790130615,
0.23649893701076508,
-0.15619724988937378,
-0.04619339108467102,
0.17196285724639893,
-0.2602110505104065,
0.3416866660118103,
-0.06599041819572449,
-0.1073218286037445,
-0.04898732155561447,
-0.3839333653450012,
0.28621622920036316,
-0.3703197240829468,
0.30199822783470154,
0.3484678864479065,
0.24248507618904114,
0.02012871764600277,
-0.1555308699607849,
0.122219979763031,
-0.11809879541397095,
-0.26283901929855347,
-0.21134698390960693,
-0.016152992844581604,
-0.4556926190853119,
0.08492002636194229,
-0.21041011810302734,
0.6448186039924622,
0.04535163193941116,
0.0006922893226146698,
0.10229910910129547,
-0.34347403049468994,
0.5957658290863037,
-0.11621270328760147,
0.13951793313026428,
-0.2881869077682495,
-0.08220282942056656,
0.06939642131328583,
0.06554305553436279,
-0.1502910554409027,
0.4253509044647217,
-0.1543276160955429,
0.42215731739997864,
0.18519441783428192,
0.007249355316162109,
0.03674499690532684,
0.14724621176719666,
0.5044358372688293,
0.13582266867160797,
-0.2058895379304886,
0.18068663775920868,
-0.22780300676822662,
0.1381680965423584,
-0.10229217261075974,
-0.020024459809064865,
0.1115599125623703,
-0.2711080312728882,
-0.2080397605895996,
-0.1458148956298828,
-0.3024892807006836,
-0.08702052384614944,
0.42410022020339966,
0.10370294749736786,
-0.16669975221157074,
0.036883823573589325,
0.5649842023849487,
0.23046532273292542,
-0.219545379281044,
-0.06361688673496246,
0.16688579320907593,
0.3394564092159271,
0.09629546105861664,
0.2072867453098297,
0.319813996553421,
0.0012470297515392303,
-0.230873703956604,
-0.016641132533550262,
0.08016321063041687,
0.17380860447883606,
-0.3481503129005432,
-0.10174195468425751,
-0.046894147992134094,
-0.12306821346282959,
0.22461679577827454,
0.28752243518829346,
0.13450142741203308,
-0.2777548134326935,
0.14777596294879913,
0.04211065545678139,
-0.4823458194732666,
0.08805491775274277,
0.18621546030044556,
-0.44669607281684875,
0.12845063209533691,
0.4110446572303772,
-0.39318540692329407,
0.3199150562286377,
0.2890367805957794,
-0.07670183479785919,
-0.008668756112456322,
-0.2683328688144684,
0.08293009549379349,
0.020792800933122635,
-0.5002565979957581,
0.15103749930858612,
0.06824205070734024,
-0.3127124309539795,
-0.061799950897693634,
0.35857462882995605,
0.3742308020591736,
-0.0457242876291275,
-0.045920200645923615,
0.049565814435482025,
-0.12660588324069977,
-0.03153623640537262,
-0.052550945430994034,
0.294924259185791,
-0.09919634461402893,
0.20353907346725464,
-0.0005553066730499268,
0.2477174997329712,
-0.31384697556495667,
-0.18423546850681305,
-0.3627869188785553,
0.1797093003988266,
-0.007426725700497627,
-0.008049730211496353,
-0.22068636119365692,
-0.08024922013282776,
0.20637355744838715,
-0.2019587755203247,
-0.07713684439659119,
-0.23787757754325867,
0.04907630756497383,
0.10978687554597855,
-0.06195380538702011,
0.04754204303026199,
-0.24244053661823273,
0.07746124267578125,
0.040033385157585144,
0.0109386732801795,
-0.06157440319657326,
0.06705925613641739,
0.09701256453990936,
0.8924071192741394,
0.10893607139587402,
-0.034524232149124146,
0.12641467154026031,
-0.047205157577991486,
-0.09084080159664154,
-0.13989008963108063,
-0.0353141650557518,
0.22051642835140228,
0.2597258687019348,
0.07087543606758118,
-0.24794195592403412,
0.10922634601593018,
-0.4701395034790039,
0.06705967336893082,
-0.10033894330263138,
-0.3349016308784485,
0.17072761058807373,
-0.11029047518968582,
0.2450975775718689,
-0.0020970478653907776,
-0.05650316923856735,
-0.07533687353134155,
0.19672593474388123,
0.274404376745224,
-0.14405924081802368,
0.2991374135017395,
0.30246269702911377,
0.12853078544139862,
0.20637571811676025,
0.2766055464744568,
-0.08614090085029602,
-0.09184569865465164,
0.044616907835006714,
0.1708594262599945,
0.25332072377204895,
-0.15568141639232635,
0.014833825640380383,
0.23541900515556335,
-0.377832293510437,
-0.1394176483154297,
0.2338888794183731,
-0.5454511046409607,
-0.259985089302063,
-0.0635320320725441,
0.35906127095222473,
0.47308334708213806,
0.24429067969322205,
0.2248540073633194,
-0.11749643832445145,
0.5504232048988342,
-0.10056453943252563,
0.11489929258823395,
-0.19030073285102844,
0.15680840611457825,
-0.026904329657554626,
0.4228303134441376,
-0.22543497383594513,
-0.28968173265457153,
-0.1428186446428299,
0.0741942971944809,
0.01234198734164238,
-0.42273542284965515,
-0.3647424280643463,
0.07755815237760544,
-0.2778157591819763,
0.0937696248292923,
0.02724233642220497,
-0.06893548369407654,
0.42622092366218567,
-0.015630826354026794,
0.02931419014930725,
-0.3624056875705719,
-0.6591201424598694,
0.08273047208786011,
0.24549707770347595,
-0.030819522216916084,
0.3564569652080536,
0.013535447418689728,
-0.023416846990585327,
0.08269421756267548,
0.48508647084236145,
-0.02170846238732338,
-0.15393638610839844,
-0.13774967193603516,
-0.29478371143341064,
-0.19909749925136566,
-0.17983478307724,
-0.19977405667304993,
0.11430645734071732,
-0.06895354390144348,
-0.20472495257854462,
0.22563251852989197,
0.13329356908798218,
-0.033868368715047836,
0.4815896153450012,
-0.3065575659275055,
-0.135290265083313,
-0.19851680099964142,
0.4735824465751648,
0.05333273112773895,
-0.08433855324983597,
-0.04198838770389557,
0.004211992025375366,
-0.2606082260608673,
-0.1726108193397522,
0.01021256111562252,
-0.06900586187839508,
0.2692814767360687,
-0.31078851222991943,
0.08778030425310135,
0.08726079761981964,
0.4814492464065552,
-0.2841913104057312,
0.13342496752738953,
-0.15048424899578094,
0.15816782414913177,
-0.18487492203712463,
-0.14636114239692688,
-0.0363076813519001,
-0.16399900615215302,
-0.12060625851154327,
-0.05896010994911194,
0.16122832894325256,
-0.077625572681427,
0.05039303004741669,
0.3595695495605469,
-0.11823950707912445,
-0.06551504135131836,
-0.34884095191955566,
0.34651753306388855,
0.06192464381456375,
0.3626910150051117,
0.23910871148109436,
-0.1259865164756775,
0.13562248647212982,
0.11258259415626526,
0.0826554223895073,
0.10623306781053543,
0.16612523794174194,
-0.09636068344116211,
0.2769809365272522,
0.19938425719738007,
0.08972795307636261,
0.49743935465812683,
0.05676386505365372,
0.173707976937294,
-0.2943834066390991,
-0.33704033493995667,
-0.360850065946579,
-0.10455324500799179,
-0.2991926968097687,
0.40716370940208435,
-0.05689796060323715,
0.0057603903114795685,
0.1097954660654068,
-0.12080252915620804,
0.1738741546869278,
0.32849833369255066,
-0.2332249879837036,
0.14248213171958923,
-0.06964552402496338,
-0.021369505673646927,
-0.011361121200025082,
-0.15444034337997437,
0.1508358269929886,
-0.0689024031162262,
-0.15474021434783936,
-0.5150068402290344,
0.6079293489456177,
-0.1748904138803482,
-0.12970608472824097,
-0.07439268380403519,
0.3857116997241974,
0.32967713475227356,
-0.1316094696521759,
-0.5880597233772278,
-0.22726646065711975,
0.49602746963500977,
0.194172203540802,
-0.41083356738090515,
0.33431440591812134,
0.13902758061885834,
0.21445725858211517,
0.09442709386348724,
-0.08707517385482788,
0.3029444217681885,
0.04614277929067612,
-0.037220168858766556,
-0.28242307901382446
] |
https://github.com/huggingface/datasets/issues/245 | SST-2 test labels are all -1 | I'm a little confused with the data size.
`sst2` dataset is referenced to `Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank` and the link of the dataset in the paper is https://nlp.stanford.edu/sentiment/index.html which is often shown in GLUE/SST2 reference.
From the original data, the standard train/dev/test splits split is 6920/872/1821 for binary classification.
Why in GLUE/SST2 the train/dev/test split is 67,349/872/1,821 ?
| I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
``` | 64 | SST-2 test labels are all -1
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
```
I'm a little confused with the data size.
`sst2` dataset is referenced to `Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank` and the link of the dataset in the paper is https://nlp.stanford.edu/sentiment/index.html which is often shown in GLUE/SST2 reference.
From the original data, the standard train/dev/test splits split is 6920/872/1821 for binary classification.
Why in GLUE/SST2 the train/dev/test split is 67,349/872/1,821 ?
| [
0.32367756962776184,
-0.36125338077545166,
-0.09375044703483582,
0.17786180973052979,
-0.0011129453778266907,
0.10074911266565323,
0.3361845910549164,
0.44995513558387756,
0.5752965807914734,
0.014867335557937622,
-0.12565308809280396,
0.1346777081489563,
-0.14737434685230255,
0.2773217260837555,
0.3333798348903656,
-0.05304747819900513,
0.10838035494089127,
0.3197506070137024,
-0.16760067641735077,
-0.2568298280239105,
-0.03263825178146362,
0.3825783431529999,
-0.14461295306682587,
0.19946527481079102,
-0.2805326282978058,
0.2485165148973465,
0.0017224084585905075,
-0.09634039551019669,
-0.031619831919670105,
-0.5869411826133728,
0.20443373918533325,
0.2065005898475647,
0.21466241776943207,
0.041022807359695435,
-0.00011391189036658034,
0.04387733340263367,
0.1996443271636963,
-0.13507568836212158,
-0.25421246886253357,
-0.12165842950344086,
-0.10567602515220642,
-0.20287635922431946,
0.045861952006816864,
-0.10591371357440948,
-0.3367511034011841,
0.15860404074192047,
0.046821314841508865,
0.007083602249622345,
0.16406220197677612,
0.1519434005022049,
0.17462946474552155,
-0.041338153183460236,
0.003840070217847824,
0.00024256843607872725,
0.0986524447798729,
-0.35794246196746826,
0.007024278864264488,
0.04189793020486832,
-0.04498922824859619,
-0.19236905872821808,
0.285055011510849,
0.44253987073898315,
0.16352322697639465,
0.3538922369480133,
0.08915749192237854,
-0.10861791670322418,
0.29010435938835144,
-0.24144795536994934,
0.05704449862241745,
0.10712786763906479,
0.1578318476676941,
-0.15712088346481323,
-0.24079139530658722,
-0.11643972992897034,
-0.05656186863780022,
0.10065746307373047,
-0.005957208573818207,
0.02762281522154808,
0.21763668954372406,
0.29366618394851685,
-0.019367912784218788,
-0.09277636557817459,
-0.16660188138484955,
0.08752459287643433,
0.04443822801113129,
0.5951553583145142,
0.05255766212940216,
0.1323293000459671,
0.3667907416820526,
0.08864615857601166,
-0.42316168546676636,
0.2890286445617676,
-0.2783503830432892,
0.17419277131557465,
-0.5723788142204285,
-0.18345646560192108,
0.1960396021604538,
-0.0028693825006484985,
-0.2150663435459137,
0.10167351365089417,
0.025422491133213043,
0.027583997696638107,
0.3623877465724945,
-0.05170844495296478,
-0.01841646432876587,
0.32787540555000305,
0.5321335792541504,
0.35786086320877075,
0.027929387986660004,
-0.16158196330070496,
0.04337584599852562,
0.16716918349266052,
-0.3254518210887909,
-0.2536083161830902,
0.055789824575185776,
0.20358994603157043,
0.07160699367523193,
-0.3534905016422272,
-0.3213405907154083,
-0.06896533817052841,
-0.3975774943828583,
0.11827588081359863,
0.10451057553291321,
0.013810381293296814,
0.27481189370155334,
0.02854093909263611,
-0.12523633241653442,
-0.00599091500043869,
-0.11779463291168213,
-0.3868847191333771,
-0.25637468695640564,
0.1317729502916336,
-0.17771488428115845,
0.018412189558148384,
0.40443679690361023,
0.16017837822437286,
0.16646328568458557,
-0.29214444756507874,
-0.3622269034385681,
-0.042281296104192734,
0.13346989452838898,
-0.04349321871995926,
0.18527783453464508,
0.34856998920440674,
-0.2840804159641266,
0.3784767985343933,
0.242889404296875,
-0.5122994780540466,
-0.141086146235466,
-0.2726317048072815,
-0.02923911064863205,
-0.07268936932086945,
0.06737255305051804,
0.1427009552717209,
-0.30557727813720703,
-0.06546953320503235,
-0.000672169029712677,
0.34674158692359924,
-0.04100111871957779,
0.12588311731815338,
0.048716895282268524,
-0.23691947758197784,
0.001933261752128601,
0.25379279255867004,
0.22849923372268677,
0.2446567714214325,
-0.45920297503471375,
-0.09783874452114105,
0.3145676851272583,
-0.01792445406317711,
-0.16900351643562317,
0.17246192693710327,
0.2161763608455658,
0.1493660807609558,
-0.06026569753885269,
0.20516718924045563,
0.35422685742378235,
-0.30272573232650757,
-0.33421382308006287,
0.1045897826552391,
-0.28815001249313354,
-0.49943599104881287,
0.03234044462442398,
0.060902711004018784,
-0.0006796158850193024,
0.10404449701309204,
-0.042171284556388855,
-0.3407536745071411,
0.12075398117303848,
0.03561927378177643,
-0.5237574577331543,
0.25442197918891907,
0.5446702241897583,
-0.01637331396341324,
-0.025428492575883865,
-0.12888646125793457,
-0.34309449791908264,
0.19785544276237488,
0.14037677645683289,
0.05447125434875488,
0.03671228885650635,
0.15441596508026123,
0.17454198002815247,
-0.12684160470962524,
0.08580417186021805,
-0.09543485194444656,
-0.1772257685661316,
0.19450289011001587,
0.013031378388404846,
0.3939721882343292,
0.5494519472122192,
0.0648842379450798,
-0.39997604489326477,
-0.2042216807603836,
0.03571399301290512,
-0.22717013955116272,
0.17650289833545685,
0.4278755187988281,
0.3945477604866028,
-0.04702496528625488,
0.07510031759738922,
-0.011027157306671143,
0.28155091404914856,
0.009615602903068066,
-0.21090970933437347,
0.23462440073490143,
0.08188246190547943,
-0.2415732741355896,
0.07868681102991104,
0.29264798760414124,
0.28934863209724426,
-0.09177552163600922,
0.03226146101951599,
0.2211168110370636,
-0.2014569491147995,
-0.054602786898612976,
0.08865466713905334,
0.2956276535987854,
-0.08880256861448288,
-0.4509785771369934,
-0.2570938766002655,
0.5002955198287964,
-0.0395481139421463,
-0.02086939662694931,
-0.07503286749124527,
0.07552389800548553,
-0.05294352397322655,
0.15842358767986298,
-0.11409182846546173,
0.15477846562862396,
-0.0377262607216835,
-0.05912962928414345,
-0.46715861558914185,
-0.05292944610118866,
0.2241194248199463,
-0.43858084082603455,
-0.007664866745471954,
0.13175392150878906,
-0.046287599951028824,
0.3177303075790405,
0.22819434106349945,
0.16151566803455353,
0.09794717282056808,
-0.20214831829071045,
-0.20775973796844482,
-0.09145326167345047,
0.26680970191955566,
0.29076895117759705,
-0.01921635866165161,
0.1956547498703003,
0.056212931871414185,
-0.23100098967552185,
-0.5293570756912231,
-0.039803799241781235,
0.013005681335926056,
-0.09802059829235077,
-0.2299816757440567,
-0.13324186205863953,
0.33717185258865356,
-0.3350445628166199,
-0.19458547234535217,
0.20707100629806519,
-0.06920483708381653,
0.37862223386764526,
-0.626308262348175,
-0.06222297251224518,
-0.11877091974020004,
-0.12420877814292908,
-0.2760332524776459,
-0.05202329903841019,
0.010321119800209999,
-0.2586916387081146,
0.3558695316314697,
0.04935690760612488,
0.08481462299823761,
0.08254630118608475,
-0.0007404293864965439,
0.16189520061016083,
-0.14972861111164093,
0.2043098658323288,
-0.30015164613723755,
-0.12423382699489594,
-0.25058847665786743,
-0.00016626156866550446,
-0.22512659430503845,
0.3416077792644501,
0.031404849141836166,
-0.1615661084651947,
-0.4707101583480835,
0.2010546177625656,
-0.3075323700904846,
-0.050909414887428284,
-0.31167376041412354,
0.19300277531147003,
0.22377504408359528,
0.15178649127483368,
-0.20707333087921143,
0.13810394704341888,
0.10404570400714874,
-0.10741438716650009,
-0.10880360752344131,
0.1196155697107315,
0.03148268908262253,
0.06556545943021774,
-0.46396604180336,
-0.43908438086509705,
-0.013932021334767342,
0.04091760143637657,
0.4010550379753113,
0.06592203676700592,
-0.12235131859779358,
0.04969704896211624,
-0.247098907828331,
-0.12648886442184448,
-0.175556018948555,
0.1663682907819748,
-0.18759554624557495,
-0.2554450035095215,
0.2479192614555359,
0.11192575097084045,
-0.32669827342033386,
-0.21272224187850952,
0.08012709766626358,
0.07626742869615555,
-0.7130566239356995,
-0.20004907250404358,
-0.11349258571863174,
-0.14745138585567474,
-0.05904783308506012,
0.08652301132678986,
-0.11033126711845398,
0.1984107941389084,
0.1098320484161377,
-0.02925800159573555,
-0.1576775759458542,
-0.38244202733039856,
0.6548933982849121,
0.3079111874103546,
0.09668885171413422,
-0.40281209349632263,
0.07456974685192108,
0.05198410525918007,
0.17514580488204956,
0.16730427742004395,
-0.16686584055423737,
-0.0060527026653289795,
-0.10989884287118912,
-0.04088325425982475,
0.15313667058944702,
-0.32984980940818787,
0.4263611137866974,
0.239254429936409,
0.07831556349992752,
0.2785068154335022,
0.0004219338297843933,
0.048124901950359344,
-0.02927112579345703,
0.49049296975135803,
-0.14701437950134277,
0.045152466744184494,
-0.2398294061422348,
-0.11434325575828552,
-0.1532818078994751,
0.030300147831439972,
0.010628312826156616,
-0.2077561318874359,
-0.1280961036682129,
0.14922413229942322,
-0.16171930730342865,
-0.03725919872522354,
0.2752903401851654,
-0.7325527667999268,
-0.07514504343271255,
-0.09447210282087326,
-0.02846360206604004,
0.04528459906578064,
0.44044029712677,
-0.10819901525974274,
-0.11886119842529297,
0.1701604723930359,
-0.00820203684270382,
0.6488137245178223,
0.061725467443466187,
0.4940756559371948,
0.3102583885192871,
0.19854360818862915,
-0.34251639246940613,
-0.380138099193573,
-0.43936604261398315,
-0.17255264520645142,
0.5286614298820496,
0.15605442225933075,
-0.25423943996429443,
-0.28723612427711487,
0.2137312889099121,
-0.10232765227556229,
-0.1947612166404724,
0.09638582915067673,
-0.42038965225219727,
-0.23837247490882874,
0.332248717546463,
-0.037344299256801605,
0.16446207463741302,
0.0595598928630352,
-0.0016736260149627924,
0.07826991379261017,
0.23689055442810059,
-0.46082091331481934,
0.40271836519241333,
0.35780712962150574,
0.12857753038406372,
0.3503623902797699,
0.024372011423110962,
0.3749050796031952,
0.11767150461673737,
-0.4649388790130615,
0.23649893701076508,
-0.15619724988937378,
-0.04619339108467102,
0.17196285724639893,
-0.2602110505104065,
0.3416866660118103,
-0.06599041819572449,
-0.1073218286037445,
-0.04898732155561447,
-0.3839333653450012,
0.28621622920036316,
-0.3703197240829468,
0.30199822783470154,
0.3484678864479065,
0.24248507618904114,
0.02012871764600277,
-0.1555308699607849,
0.122219979763031,
-0.11809879541397095,
-0.26283901929855347,
-0.21134698390960693,
-0.016152992844581604,
-0.4556926190853119,
0.08492002636194229,
-0.21041011810302734,
0.6448186039924622,
0.04535163193941116,
0.0006922893226146698,
0.10229910910129547,
-0.34347403049468994,
0.5957658290863037,
-0.11621270328760147,
0.13951793313026428,
-0.2881869077682495,
-0.08220282942056656,
0.06939642131328583,
0.06554305553436279,
-0.1502910554409027,
0.4253509044647217,
-0.1543276160955429,
0.42215731739997864,
0.18519441783428192,
0.007249355316162109,
0.03674499690532684,
0.14724621176719666,
0.5044358372688293,
0.13582266867160797,
-0.2058895379304886,
0.18068663775920868,
-0.22780300676822662,
0.1381680965423584,
-0.10229217261075974,
-0.020024459809064865,
0.1115599125623703,
-0.2711080312728882,
-0.2080397605895996,
-0.1458148956298828,
-0.3024892807006836,
-0.08702052384614944,
0.42410022020339966,
0.10370294749736786,
-0.16669975221157074,
0.036883823573589325,
0.5649842023849487,
0.23046532273292542,
-0.219545379281044,
-0.06361688673496246,
0.16688579320907593,
0.3394564092159271,
0.09629546105861664,
0.2072867453098297,
0.319813996553421,
0.0012470297515392303,
-0.230873703956604,
-0.016641132533550262,
0.08016321063041687,
0.17380860447883606,
-0.3481503129005432,
-0.10174195468425751,
-0.046894147992134094,
-0.12306821346282959,
0.22461679577827454,
0.28752243518829346,
0.13450142741203308,
-0.2777548134326935,
0.14777596294879913,
0.04211065545678139,
-0.4823458194732666,
0.08805491775274277,
0.18621546030044556,
-0.44669607281684875,
0.12845063209533691,
0.4110446572303772,
-0.39318540692329407,
0.3199150562286377,
0.2890367805957794,
-0.07670183479785919,
-0.008668756112456322,
-0.2683328688144684,
0.08293009549379349,
0.020792800933122635,
-0.5002565979957581,
0.15103749930858612,
0.06824205070734024,
-0.3127124309539795,
-0.061799950897693634,
0.35857462882995605,
0.3742308020591736,
-0.0457242876291275,
-0.045920200645923615,
0.049565814435482025,
-0.12660588324069977,
-0.03153623640537262,
-0.052550945430994034,
0.294924259185791,
-0.09919634461402893,
0.20353907346725464,
-0.0005553066730499268,
0.2477174997329712,
-0.31384697556495667,
-0.18423546850681305,
-0.3627869188785553,
0.1797093003988266,
-0.007426725700497627,
-0.008049730211496353,
-0.22068636119365692,
-0.08024922013282776,
0.20637355744838715,
-0.2019587755203247,
-0.07713684439659119,
-0.23787757754325867,
0.04907630756497383,
0.10978687554597855,
-0.06195380538702011,
0.04754204303026199,
-0.24244053661823273,
0.07746124267578125,
0.040033385157585144,
0.0109386732801795,
-0.06157440319657326,
0.06705925613641739,
0.09701256453990936,
0.8924071192741394,
0.10893607139587402,
-0.034524232149124146,
0.12641467154026031,
-0.047205157577991486,
-0.09084080159664154,
-0.13989008963108063,
-0.0353141650557518,
0.22051642835140228,
0.2597258687019348,
0.07087543606758118,
-0.24794195592403412,
0.10922634601593018,
-0.4701395034790039,
0.06705967336893082,
-0.10033894330263138,
-0.3349016308784485,
0.17072761058807373,
-0.11029047518968582,
0.2450975775718689,
-0.0020970478653907776,
-0.05650316923856735,
-0.07533687353134155,
0.19672593474388123,
0.274404376745224,
-0.14405924081802368,
0.2991374135017395,
0.30246269702911377,
0.12853078544139862,
0.20637571811676025,
0.2766055464744568,
-0.08614090085029602,
-0.09184569865465164,
0.044616907835006714,
0.1708594262599945,
0.25332072377204895,
-0.15568141639232635,
0.014833825640380383,
0.23541900515556335,
-0.377832293510437,
-0.1394176483154297,
0.2338888794183731,
-0.5454511046409607,
-0.259985089302063,
-0.0635320320725441,
0.35906127095222473,
0.47308334708213806,
0.24429067969322205,
0.2248540073633194,
-0.11749643832445145,
0.5504232048988342,
-0.10056453943252563,
0.11489929258823395,
-0.19030073285102844,
0.15680840611457825,
-0.026904329657554626,
0.4228303134441376,
-0.22543497383594513,
-0.28968173265457153,
-0.1428186446428299,
0.0741942971944809,
0.01234198734164238,
-0.42273542284965515,
-0.3647424280643463,
0.07755815237760544,
-0.2778157591819763,
0.0937696248292923,
0.02724233642220497,
-0.06893548369407654,
0.42622092366218567,
-0.015630826354026794,
0.02931419014930725,
-0.3624056875705719,
-0.6591201424598694,
0.08273047208786011,
0.24549707770347595,
-0.030819522216916084,
0.3564569652080536,
0.013535447418689728,
-0.023416846990585327,
0.08269421756267548,
0.48508647084236145,
-0.02170846238732338,
-0.15393638610839844,
-0.13774967193603516,
-0.29478371143341064,
-0.19909749925136566,
-0.17983478307724,
-0.19977405667304993,
0.11430645734071732,
-0.06895354390144348,
-0.20472495257854462,
0.22563251852989197,
0.13329356908798218,
-0.033868368715047836,
0.4815896153450012,
-0.3065575659275055,
-0.135290265083313,
-0.19851680099964142,
0.4735824465751648,
0.05333273112773895,
-0.08433855324983597,
-0.04198838770389557,
0.004211992025375366,
-0.2606082260608673,
-0.1726108193397522,
0.01021256111562252,
-0.06900586187839508,
0.2692814767360687,
-0.31078851222991943,
0.08778030425310135,
0.08726079761981964,
0.4814492464065552,
-0.2841913104057312,
0.13342496752738953,
-0.15048424899578094,
0.15816782414913177,
-0.18487492203712463,
-0.14636114239692688,
-0.0363076813519001,
-0.16399900615215302,
-0.12060625851154327,
-0.05896010994911194,
0.16122832894325256,
-0.077625572681427,
0.05039303004741669,
0.3595695495605469,
-0.11823950707912445,
-0.06551504135131836,
-0.34884095191955566,
0.34651753306388855,
0.06192464381456375,
0.3626910150051117,
0.23910871148109436,
-0.1259865164756775,
0.13562248647212982,
0.11258259415626526,
0.0826554223895073,
0.10623306781053543,
0.16612523794174194,
-0.09636068344116211,
0.2769809365272522,
0.19938425719738007,
0.08972795307636261,
0.49743935465812683,
0.05676386505365372,
0.173707976937294,
-0.2943834066390991,
-0.33704033493995667,
-0.360850065946579,
-0.10455324500799179,
-0.2991926968097687,
0.40716370940208435,
-0.05689796060323715,
0.0057603903114795685,
0.1097954660654068,
-0.12080252915620804,
0.1738741546869278,
0.32849833369255066,
-0.2332249879837036,
0.14248213171958923,
-0.06964552402496338,
-0.021369505673646927,
-0.011361121200025082,
-0.15444034337997437,
0.1508358269929886,
-0.0689024031162262,
-0.15474021434783936,
-0.5150068402290344,
0.6079293489456177,
-0.1748904138803482,
-0.12970608472824097,
-0.07439268380403519,
0.3857116997241974,
0.32967713475227356,
-0.1316094696521759,
-0.5880597233772278,
-0.22726646065711975,
0.49602746963500977,
0.194172203540802,
-0.41083356738090515,
0.33431440591812134,
0.13902758061885834,
0.21445725858211517,
0.09442709386348724,
-0.08707517385482788,
0.3029444217681885,
0.04614277929067612,
-0.037220168858766556,
-0.28242307901382446
] |
https://github.com/huggingface/datasets/issues/245 | SST-2 test labels are all -1 | > I'm a little confused with the data size.
> `sst2` dataset is referenced to `Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank` and the link of the dataset in the paper is https://nlp.stanford.edu/sentiment/index.html which is often shown in GLUE/SST2 reference.
> From the original data, the standard train/dev/test splits split is 6920/872/1821 for binary classification.
> Why in GLUE/SST2 the train/dev/test split is 67,349/872/1,821 ?
Have you figured out this problem? AFAIK, the original sst-2 dataset is totally different from the GLUE/sst-2. Do you think so? | I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
``` | 89 | SST-2 test labels are all -1
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
```
> I'm a little confused with the data size.
> `sst2` dataset is referenced to `Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank` and the link of the dataset in the paper is https://nlp.stanford.edu/sentiment/index.html which is often shown in GLUE/SST2 reference.
> From the original data, the standard train/dev/test splits split is 6920/872/1821 for binary classification.
> Why in GLUE/SST2 the train/dev/test split is 67,349/872/1,821 ?
Have you figured out this problem? AFAIK, the original sst-2 dataset is totally different from the GLUE/sst-2. Do you think so? | [
0.32367756962776184,
-0.36125338077545166,
-0.09375044703483582,
0.17786180973052979,
-0.0011129453778266907,
0.10074911266565323,
0.3361845910549164,
0.44995513558387756,
0.5752965807914734,
0.014867335557937622,
-0.12565308809280396,
0.1346777081489563,
-0.14737434685230255,
0.2773217260837555,
0.3333798348903656,
-0.05304747819900513,
0.10838035494089127,
0.3197506070137024,
-0.16760067641735077,
-0.2568298280239105,
-0.03263825178146362,
0.3825783431529999,
-0.14461295306682587,
0.19946527481079102,
-0.2805326282978058,
0.2485165148973465,
0.0017224084585905075,
-0.09634039551019669,
-0.031619831919670105,
-0.5869411826133728,
0.20443373918533325,
0.2065005898475647,
0.21466241776943207,
0.041022807359695435,
-0.00011391189036658034,
0.04387733340263367,
0.1996443271636963,
-0.13507568836212158,
-0.25421246886253357,
-0.12165842950344086,
-0.10567602515220642,
-0.20287635922431946,
0.045861952006816864,
-0.10591371357440948,
-0.3367511034011841,
0.15860404074192047,
0.046821314841508865,
0.007083602249622345,
0.16406220197677612,
0.1519434005022049,
0.17462946474552155,
-0.041338153183460236,
0.003840070217847824,
0.00024256843607872725,
0.0986524447798729,
-0.35794246196746826,
0.007024278864264488,
0.04189793020486832,
-0.04498922824859619,
-0.19236905872821808,
0.285055011510849,
0.44253987073898315,
0.16352322697639465,
0.3538922369480133,
0.08915749192237854,
-0.10861791670322418,
0.29010435938835144,
-0.24144795536994934,
0.05704449862241745,
0.10712786763906479,
0.1578318476676941,
-0.15712088346481323,
-0.24079139530658722,
-0.11643972992897034,
-0.05656186863780022,
0.10065746307373047,
-0.005957208573818207,
0.02762281522154808,
0.21763668954372406,
0.29366618394851685,
-0.019367912784218788,
-0.09277636557817459,
-0.16660188138484955,
0.08752459287643433,
0.04443822801113129,
0.5951553583145142,
0.05255766212940216,
0.1323293000459671,
0.3667907416820526,
0.08864615857601166,
-0.42316168546676636,
0.2890286445617676,
-0.2783503830432892,
0.17419277131557465,
-0.5723788142204285,
-0.18345646560192108,
0.1960396021604538,
-0.0028693825006484985,
-0.2150663435459137,
0.10167351365089417,
0.025422491133213043,
0.027583997696638107,
0.3623877465724945,
-0.05170844495296478,
-0.01841646432876587,
0.32787540555000305,
0.5321335792541504,
0.35786086320877075,
0.027929387986660004,
-0.16158196330070496,
0.04337584599852562,
0.16716918349266052,
-0.3254518210887909,
-0.2536083161830902,
0.055789824575185776,
0.20358994603157043,
0.07160699367523193,
-0.3534905016422272,
-0.3213405907154083,
-0.06896533817052841,
-0.3975774943828583,
0.11827588081359863,
0.10451057553291321,
0.013810381293296814,
0.27481189370155334,
0.02854093909263611,
-0.12523633241653442,
-0.00599091500043869,
-0.11779463291168213,
-0.3868847191333771,
-0.25637468695640564,
0.1317729502916336,
-0.17771488428115845,
0.018412189558148384,
0.40443679690361023,
0.16017837822437286,
0.16646328568458557,
-0.29214444756507874,
-0.3622269034385681,
-0.042281296104192734,
0.13346989452838898,
-0.04349321871995926,
0.18527783453464508,
0.34856998920440674,
-0.2840804159641266,
0.3784767985343933,
0.242889404296875,
-0.5122994780540466,
-0.141086146235466,
-0.2726317048072815,
-0.02923911064863205,
-0.07268936932086945,
0.06737255305051804,
0.1427009552717209,
-0.30557727813720703,
-0.06546953320503235,
-0.000672169029712677,
0.34674158692359924,
-0.04100111871957779,
0.12588311731815338,
0.048716895282268524,
-0.23691947758197784,
0.001933261752128601,
0.25379279255867004,
0.22849923372268677,
0.2446567714214325,
-0.45920297503471375,
-0.09783874452114105,
0.3145676851272583,
-0.01792445406317711,
-0.16900351643562317,
0.17246192693710327,
0.2161763608455658,
0.1493660807609558,
-0.06026569753885269,
0.20516718924045563,
0.35422685742378235,
-0.30272573232650757,
-0.33421382308006287,
0.1045897826552391,
-0.28815001249313354,
-0.49943599104881287,
0.03234044462442398,
0.060902711004018784,
-0.0006796158850193024,
0.10404449701309204,
-0.042171284556388855,
-0.3407536745071411,
0.12075398117303848,
0.03561927378177643,
-0.5237574577331543,
0.25442197918891907,
0.5446702241897583,
-0.01637331396341324,
-0.025428492575883865,
-0.12888646125793457,
-0.34309449791908264,
0.19785544276237488,
0.14037677645683289,
0.05447125434875488,
0.03671228885650635,
0.15441596508026123,
0.17454198002815247,
-0.12684160470962524,
0.08580417186021805,
-0.09543485194444656,
-0.1772257685661316,
0.19450289011001587,
0.013031378388404846,
0.3939721882343292,
0.5494519472122192,
0.0648842379450798,
-0.39997604489326477,
-0.2042216807603836,
0.03571399301290512,
-0.22717013955116272,
0.17650289833545685,
0.4278755187988281,
0.3945477604866028,
-0.04702496528625488,
0.07510031759738922,
-0.011027157306671143,
0.28155091404914856,
0.009615602903068066,
-0.21090970933437347,
0.23462440073490143,
0.08188246190547943,
-0.2415732741355896,
0.07868681102991104,
0.29264798760414124,
0.28934863209724426,
-0.09177552163600922,
0.03226146101951599,
0.2211168110370636,
-0.2014569491147995,
-0.054602786898612976,
0.08865466713905334,
0.2956276535987854,
-0.08880256861448288,
-0.4509785771369934,
-0.2570938766002655,
0.5002955198287964,
-0.0395481139421463,
-0.02086939662694931,
-0.07503286749124527,
0.07552389800548553,
-0.05294352397322655,
0.15842358767986298,
-0.11409182846546173,
0.15477846562862396,
-0.0377262607216835,
-0.05912962928414345,
-0.46715861558914185,
-0.05292944610118866,
0.2241194248199463,
-0.43858084082603455,
-0.007664866745471954,
0.13175392150878906,
-0.046287599951028824,
0.3177303075790405,
0.22819434106349945,
0.16151566803455353,
0.09794717282056808,
-0.20214831829071045,
-0.20775973796844482,
-0.09145326167345047,
0.26680970191955566,
0.29076895117759705,
-0.01921635866165161,
0.1956547498703003,
0.056212931871414185,
-0.23100098967552185,
-0.5293570756912231,
-0.039803799241781235,
0.013005681335926056,
-0.09802059829235077,
-0.2299816757440567,
-0.13324186205863953,
0.33717185258865356,
-0.3350445628166199,
-0.19458547234535217,
0.20707100629806519,
-0.06920483708381653,
0.37862223386764526,
-0.626308262348175,
-0.06222297251224518,
-0.11877091974020004,
-0.12420877814292908,
-0.2760332524776459,
-0.05202329903841019,
0.010321119800209999,
-0.2586916387081146,
0.3558695316314697,
0.04935690760612488,
0.08481462299823761,
0.08254630118608475,
-0.0007404293864965439,
0.16189520061016083,
-0.14972861111164093,
0.2043098658323288,
-0.30015164613723755,
-0.12423382699489594,
-0.25058847665786743,
-0.00016626156866550446,
-0.22512659430503845,
0.3416077792644501,
0.031404849141836166,
-0.1615661084651947,
-0.4707101583480835,
0.2010546177625656,
-0.3075323700904846,
-0.050909414887428284,
-0.31167376041412354,
0.19300277531147003,
0.22377504408359528,
0.15178649127483368,
-0.20707333087921143,
0.13810394704341888,
0.10404570400714874,
-0.10741438716650009,
-0.10880360752344131,
0.1196155697107315,
0.03148268908262253,
0.06556545943021774,
-0.46396604180336,
-0.43908438086509705,
-0.013932021334767342,
0.04091760143637657,
0.4010550379753113,
0.06592203676700592,
-0.12235131859779358,
0.04969704896211624,
-0.247098907828331,
-0.12648886442184448,
-0.175556018948555,
0.1663682907819748,
-0.18759554624557495,
-0.2554450035095215,
0.2479192614555359,
0.11192575097084045,
-0.32669827342033386,
-0.21272224187850952,
0.08012709766626358,
0.07626742869615555,
-0.7130566239356995,
-0.20004907250404358,
-0.11349258571863174,
-0.14745138585567474,
-0.05904783308506012,
0.08652301132678986,
-0.11033126711845398,
0.1984107941389084,
0.1098320484161377,
-0.02925800159573555,
-0.1576775759458542,
-0.38244202733039856,
0.6548933982849121,
0.3079111874103546,
0.09668885171413422,
-0.40281209349632263,
0.07456974685192108,
0.05198410525918007,
0.17514580488204956,
0.16730427742004395,
-0.16686584055423737,
-0.0060527026653289795,
-0.10989884287118912,
-0.04088325425982475,
0.15313667058944702,
-0.32984980940818787,
0.4263611137866974,
0.239254429936409,
0.07831556349992752,
0.2785068154335022,
0.0004219338297843933,
0.048124901950359344,
-0.02927112579345703,
0.49049296975135803,
-0.14701437950134277,
0.045152466744184494,
-0.2398294061422348,
-0.11434325575828552,
-0.1532818078994751,
0.030300147831439972,
0.010628312826156616,
-0.2077561318874359,
-0.1280961036682129,
0.14922413229942322,
-0.16171930730342865,
-0.03725919872522354,
0.2752903401851654,
-0.7325527667999268,
-0.07514504343271255,
-0.09447210282087326,
-0.02846360206604004,
0.04528459906578064,
0.44044029712677,
-0.10819901525974274,
-0.11886119842529297,
0.1701604723930359,
-0.00820203684270382,
0.6488137245178223,
0.061725467443466187,
0.4940756559371948,
0.3102583885192871,
0.19854360818862915,
-0.34251639246940613,
-0.380138099193573,
-0.43936604261398315,
-0.17255264520645142,
0.5286614298820496,
0.15605442225933075,
-0.25423943996429443,
-0.28723612427711487,
0.2137312889099121,
-0.10232765227556229,
-0.1947612166404724,
0.09638582915067673,
-0.42038965225219727,
-0.23837247490882874,
0.332248717546463,
-0.037344299256801605,
0.16446207463741302,
0.0595598928630352,
-0.0016736260149627924,
0.07826991379261017,
0.23689055442810059,
-0.46082091331481934,
0.40271836519241333,
0.35780712962150574,
0.12857753038406372,
0.3503623902797699,
0.024372011423110962,
0.3749050796031952,
0.11767150461673737,
-0.4649388790130615,
0.23649893701076508,
-0.15619724988937378,
-0.04619339108467102,
0.17196285724639893,
-0.2602110505104065,
0.3416866660118103,
-0.06599041819572449,
-0.1073218286037445,
-0.04898732155561447,
-0.3839333653450012,
0.28621622920036316,
-0.3703197240829468,
0.30199822783470154,
0.3484678864479065,
0.24248507618904114,
0.02012871764600277,
-0.1555308699607849,
0.122219979763031,
-0.11809879541397095,
-0.26283901929855347,
-0.21134698390960693,
-0.016152992844581604,
-0.4556926190853119,
0.08492002636194229,
-0.21041011810302734,
0.6448186039924622,
0.04535163193941116,
0.0006922893226146698,
0.10229910910129547,
-0.34347403049468994,
0.5957658290863037,
-0.11621270328760147,
0.13951793313026428,
-0.2881869077682495,
-0.08220282942056656,
0.06939642131328583,
0.06554305553436279,
-0.1502910554409027,
0.4253509044647217,
-0.1543276160955429,
0.42215731739997864,
0.18519441783428192,
0.007249355316162109,
0.03674499690532684,
0.14724621176719666,
0.5044358372688293,
0.13582266867160797,
-0.2058895379304886,
0.18068663775920868,
-0.22780300676822662,
0.1381680965423584,
-0.10229217261075974,
-0.020024459809064865,
0.1115599125623703,
-0.2711080312728882,
-0.2080397605895996,
-0.1458148956298828,
-0.3024892807006836,
-0.08702052384614944,
0.42410022020339966,
0.10370294749736786,
-0.16669975221157074,
0.036883823573589325,
0.5649842023849487,
0.23046532273292542,
-0.219545379281044,
-0.06361688673496246,
0.16688579320907593,
0.3394564092159271,
0.09629546105861664,
0.2072867453098297,
0.319813996553421,
0.0012470297515392303,
-0.230873703956604,
-0.016641132533550262,
0.08016321063041687,
0.17380860447883606,
-0.3481503129005432,
-0.10174195468425751,
-0.046894147992134094,
-0.12306821346282959,
0.22461679577827454,
0.28752243518829346,
0.13450142741203308,
-0.2777548134326935,
0.14777596294879913,
0.04211065545678139,
-0.4823458194732666,
0.08805491775274277,
0.18621546030044556,
-0.44669607281684875,
0.12845063209533691,
0.4110446572303772,
-0.39318540692329407,
0.3199150562286377,
0.2890367805957794,
-0.07670183479785919,
-0.008668756112456322,
-0.2683328688144684,
0.08293009549379349,
0.020792800933122635,
-0.5002565979957581,
0.15103749930858612,
0.06824205070734024,
-0.3127124309539795,
-0.061799950897693634,
0.35857462882995605,
0.3742308020591736,
-0.0457242876291275,
-0.045920200645923615,
0.049565814435482025,
-0.12660588324069977,
-0.03153623640537262,
-0.052550945430994034,
0.294924259185791,
-0.09919634461402893,
0.20353907346725464,
-0.0005553066730499268,
0.2477174997329712,
-0.31384697556495667,
-0.18423546850681305,
-0.3627869188785553,
0.1797093003988266,
-0.007426725700497627,
-0.008049730211496353,
-0.22068636119365692,
-0.08024922013282776,
0.20637355744838715,
-0.2019587755203247,
-0.07713684439659119,
-0.23787757754325867,
0.04907630756497383,
0.10978687554597855,
-0.06195380538702011,
0.04754204303026199,
-0.24244053661823273,
0.07746124267578125,
0.040033385157585144,
0.0109386732801795,
-0.06157440319657326,
0.06705925613641739,
0.09701256453990936,
0.8924071192741394,
0.10893607139587402,
-0.034524232149124146,
0.12641467154026031,
-0.047205157577991486,
-0.09084080159664154,
-0.13989008963108063,
-0.0353141650557518,
0.22051642835140228,
0.2597258687019348,
0.07087543606758118,
-0.24794195592403412,
0.10922634601593018,
-0.4701395034790039,
0.06705967336893082,
-0.10033894330263138,
-0.3349016308784485,
0.17072761058807373,
-0.11029047518968582,
0.2450975775718689,
-0.0020970478653907776,
-0.05650316923856735,
-0.07533687353134155,
0.19672593474388123,
0.274404376745224,
-0.14405924081802368,
0.2991374135017395,
0.30246269702911377,
0.12853078544139862,
0.20637571811676025,
0.2766055464744568,
-0.08614090085029602,
-0.09184569865465164,
0.044616907835006714,
0.1708594262599945,
0.25332072377204895,
-0.15568141639232635,
0.014833825640380383,
0.23541900515556335,
-0.377832293510437,
-0.1394176483154297,
0.2338888794183731,
-0.5454511046409607,
-0.259985089302063,
-0.0635320320725441,
0.35906127095222473,
0.47308334708213806,
0.24429067969322205,
0.2248540073633194,
-0.11749643832445145,
0.5504232048988342,
-0.10056453943252563,
0.11489929258823395,
-0.19030073285102844,
0.15680840611457825,
-0.026904329657554626,
0.4228303134441376,
-0.22543497383594513,
-0.28968173265457153,
-0.1428186446428299,
0.0741942971944809,
0.01234198734164238,
-0.42273542284965515,
-0.3647424280643463,
0.07755815237760544,
-0.2778157591819763,
0.0937696248292923,
0.02724233642220497,
-0.06893548369407654,
0.42622092366218567,
-0.015630826354026794,
0.02931419014930725,
-0.3624056875705719,
-0.6591201424598694,
0.08273047208786011,
0.24549707770347595,
-0.030819522216916084,
0.3564569652080536,
0.013535447418689728,
-0.023416846990585327,
0.08269421756267548,
0.48508647084236145,
-0.02170846238732338,
-0.15393638610839844,
-0.13774967193603516,
-0.29478371143341064,
-0.19909749925136566,
-0.17983478307724,
-0.19977405667304993,
0.11430645734071732,
-0.06895354390144348,
-0.20472495257854462,
0.22563251852989197,
0.13329356908798218,
-0.033868368715047836,
0.4815896153450012,
-0.3065575659275055,
-0.135290265083313,
-0.19851680099964142,
0.4735824465751648,
0.05333273112773895,
-0.08433855324983597,
-0.04198838770389557,
0.004211992025375366,
-0.2606082260608673,
-0.1726108193397522,
0.01021256111562252,
-0.06900586187839508,
0.2692814767360687,
-0.31078851222991943,
0.08778030425310135,
0.08726079761981964,
0.4814492464065552,
-0.2841913104057312,
0.13342496752738953,
-0.15048424899578094,
0.15816782414913177,
-0.18487492203712463,
-0.14636114239692688,
-0.0363076813519001,
-0.16399900615215302,
-0.12060625851154327,
-0.05896010994911194,
0.16122832894325256,
-0.077625572681427,
0.05039303004741669,
0.3595695495605469,
-0.11823950707912445,
-0.06551504135131836,
-0.34884095191955566,
0.34651753306388855,
0.06192464381456375,
0.3626910150051117,
0.23910871148109436,
-0.1259865164756775,
0.13562248647212982,
0.11258259415626526,
0.0826554223895073,
0.10623306781053543,
0.16612523794174194,
-0.09636068344116211,
0.2769809365272522,
0.19938425719738007,
0.08972795307636261,
0.49743935465812683,
0.05676386505365372,
0.173707976937294,
-0.2943834066390991,
-0.33704033493995667,
-0.360850065946579,
-0.10455324500799179,
-0.2991926968097687,
0.40716370940208435,
-0.05689796060323715,
0.0057603903114795685,
0.1097954660654068,
-0.12080252915620804,
0.1738741546869278,
0.32849833369255066,
-0.2332249879837036,
0.14248213171958923,
-0.06964552402496338,
-0.021369505673646927,
-0.011361121200025082,
-0.15444034337997437,
0.1508358269929886,
-0.0689024031162262,
-0.15474021434783936,
-0.5150068402290344,
0.6079293489456177,
-0.1748904138803482,
-0.12970608472824097,
-0.07439268380403519,
0.3857116997241974,
0.32967713475227356,
-0.1316094696521759,
-0.5880597233772278,
-0.22726646065711975,
0.49602746963500977,
0.194172203540802,
-0.41083356738090515,
0.33431440591812134,
0.13902758061885834,
0.21445725858211517,
0.09442709386348724,
-0.08707517385482788,
0.3029444217681885,
0.04614277929067612,
-0.037220168858766556,
-0.28242307901382446
] |
https://github.com/huggingface/datasets/issues/245 | SST-2 test labels are all -1 | @yc1999 Sorry, I didn't solve this conflict. In the end, I just use a local data file provided by the previous work I followed(for consistent comparison), not use `datasets` package.
Related information: https://github.com/thunlp/OpenAttack/issues/146#issuecomment-766323571 | I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
``` | 33 | SST-2 test labels are all -1
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
```
@yc1999 Sorry, I didn't solve this conflict. In the end, I just use a local data file provided by the previous work I followed(for consistent comparison), not use `datasets` package.
Related information: https://github.com/thunlp/OpenAttack/issues/146#issuecomment-766323571 | [
0.32367756962776184,
-0.36125338077545166,
-0.09375044703483582,
0.17786180973052979,
-0.0011129453778266907,
0.10074911266565323,
0.3361845910549164,
0.44995513558387756,
0.5752965807914734,
0.014867335557937622,
-0.12565308809280396,
0.1346777081489563,
-0.14737434685230255,
0.2773217260837555,
0.3333798348903656,
-0.05304747819900513,
0.10838035494089127,
0.3197506070137024,
-0.16760067641735077,
-0.2568298280239105,
-0.03263825178146362,
0.3825783431529999,
-0.14461295306682587,
0.19946527481079102,
-0.2805326282978058,
0.2485165148973465,
0.0017224084585905075,
-0.09634039551019669,
-0.031619831919670105,
-0.5869411826133728,
0.20443373918533325,
0.2065005898475647,
0.21466241776943207,
0.041022807359695435,
-0.00011391189036658034,
0.04387733340263367,
0.1996443271636963,
-0.13507568836212158,
-0.25421246886253357,
-0.12165842950344086,
-0.10567602515220642,
-0.20287635922431946,
0.045861952006816864,
-0.10591371357440948,
-0.3367511034011841,
0.15860404074192047,
0.046821314841508865,
0.007083602249622345,
0.16406220197677612,
0.1519434005022049,
0.17462946474552155,
-0.041338153183460236,
0.003840070217847824,
0.00024256843607872725,
0.0986524447798729,
-0.35794246196746826,
0.007024278864264488,
0.04189793020486832,
-0.04498922824859619,
-0.19236905872821808,
0.285055011510849,
0.44253987073898315,
0.16352322697639465,
0.3538922369480133,
0.08915749192237854,
-0.10861791670322418,
0.29010435938835144,
-0.24144795536994934,
0.05704449862241745,
0.10712786763906479,
0.1578318476676941,
-0.15712088346481323,
-0.24079139530658722,
-0.11643972992897034,
-0.05656186863780022,
0.10065746307373047,
-0.005957208573818207,
0.02762281522154808,
0.21763668954372406,
0.29366618394851685,
-0.019367912784218788,
-0.09277636557817459,
-0.16660188138484955,
0.08752459287643433,
0.04443822801113129,
0.5951553583145142,
0.05255766212940216,
0.1323293000459671,
0.3667907416820526,
0.08864615857601166,
-0.42316168546676636,
0.2890286445617676,
-0.2783503830432892,
0.17419277131557465,
-0.5723788142204285,
-0.18345646560192108,
0.1960396021604538,
-0.0028693825006484985,
-0.2150663435459137,
0.10167351365089417,
0.025422491133213043,
0.027583997696638107,
0.3623877465724945,
-0.05170844495296478,
-0.01841646432876587,
0.32787540555000305,
0.5321335792541504,
0.35786086320877075,
0.027929387986660004,
-0.16158196330070496,
0.04337584599852562,
0.16716918349266052,
-0.3254518210887909,
-0.2536083161830902,
0.055789824575185776,
0.20358994603157043,
0.07160699367523193,
-0.3534905016422272,
-0.3213405907154083,
-0.06896533817052841,
-0.3975774943828583,
0.11827588081359863,
0.10451057553291321,
0.013810381293296814,
0.27481189370155334,
0.02854093909263611,
-0.12523633241653442,
-0.00599091500043869,
-0.11779463291168213,
-0.3868847191333771,
-0.25637468695640564,
0.1317729502916336,
-0.17771488428115845,
0.018412189558148384,
0.40443679690361023,
0.16017837822437286,
0.16646328568458557,
-0.29214444756507874,
-0.3622269034385681,
-0.042281296104192734,
0.13346989452838898,
-0.04349321871995926,
0.18527783453464508,
0.34856998920440674,
-0.2840804159641266,
0.3784767985343933,
0.242889404296875,
-0.5122994780540466,
-0.141086146235466,
-0.2726317048072815,
-0.02923911064863205,
-0.07268936932086945,
0.06737255305051804,
0.1427009552717209,
-0.30557727813720703,
-0.06546953320503235,
-0.000672169029712677,
0.34674158692359924,
-0.04100111871957779,
0.12588311731815338,
0.048716895282268524,
-0.23691947758197784,
0.001933261752128601,
0.25379279255867004,
0.22849923372268677,
0.2446567714214325,
-0.45920297503471375,
-0.09783874452114105,
0.3145676851272583,
-0.01792445406317711,
-0.16900351643562317,
0.17246192693710327,
0.2161763608455658,
0.1493660807609558,
-0.06026569753885269,
0.20516718924045563,
0.35422685742378235,
-0.30272573232650757,
-0.33421382308006287,
0.1045897826552391,
-0.28815001249313354,
-0.49943599104881287,
0.03234044462442398,
0.060902711004018784,
-0.0006796158850193024,
0.10404449701309204,
-0.042171284556388855,
-0.3407536745071411,
0.12075398117303848,
0.03561927378177643,
-0.5237574577331543,
0.25442197918891907,
0.5446702241897583,
-0.01637331396341324,
-0.025428492575883865,
-0.12888646125793457,
-0.34309449791908264,
0.19785544276237488,
0.14037677645683289,
0.05447125434875488,
0.03671228885650635,
0.15441596508026123,
0.17454198002815247,
-0.12684160470962524,
0.08580417186021805,
-0.09543485194444656,
-0.1772257685661316,
0.19450289011001587,
0.013031378388404846,
0.3939721882343292,
0.5494519472122192,
0.0648842379450798,
-0.39997604489326477,
-0.2042216807603836,
0.03571399301290512,
-0.22717013955116272,
0.17650289833545685,
0.4278755187988281,
0.3945477604866028,
-0.04702496528625488,
0.07510031759738922,
-0.011027157306671143,
0.28155091404914856,
0.009615602903068066,
-0.21090970933437347,
0.23462440073490143,
0.08188246190547943,
-0.2415732741355896,
0.07868681102991104,
0.29264798760414124,
0.28934863209724426,
-0.09177552163600922,
0.03226146101951599,
0.2211168110370636,
-0.2014569491147995,
-0.054602786898612976,
0.08865466713905334,
0.2956276535987854,
-0.08880256861448288,
-0.4509785771369934,
-0.2570938766002655,
0.5002955198287964,
-0.0395481139421463,
-0.02086939662694931,
-0.07503286749124527,
0.07552389800548553,
-0.05294352397322655,
0.15842358767986298,
-0.11409182846546173,
0.15477846562862396,
-0.0377262607216835,
-0.05912962928414345,
-0.46715861558914185,
-0.05292944610118866,
0.2241194248199463,
-0.43858084082603455,
-0.007664866745471954,
0.13175392150878906,
-0.046287599951028824,
0.3177303075790405,
0.22819434106349945,
0.16151566803455353,
0.09794717282056808,
-0.20214831829071045,
-0.20775973796844482,
-0.09145326167345047,
0.26680970191955566,
0.29076895117759705,
-0.01921635866165161,
0.1956547498703003,
0.056212931871414185,
-0.23100098967552185,
-0.5293570756912231,
-0.039803799241781235,
0.013005681335926056,
-0.09802059829235077,
-0.2299816757440567,
-0.13324186205863953,
0.33717185258865356,
-0.3350445628166199,
-0.19458547234535217,
0.20707100629806519,
-0.06920483708381653,
0.37862223386764526,
-0.626308262348175,
-0.06222297251224518,
-0.11877091974020004,
-0.12420877814292908,
-0.2760332524776459,
-0.05202329903841019,
0.010321119800209999,
-0.2586916387081146,
0.3558695316314697,
0.04935690760612488,
0.08481462299823761,
0.08254630118608475,
-0.0007404293864965439,
0.16189520061016083,
-0.14972861111164093,
0.2043098658323288,
-0.30015164613723755,
-0.12423382699489594,
-0.25058847665786743,
-0.00016626156866550446,
-0.22512659430503845,
0.3416077792644501,
0.031404849141836166,
-0.1615661084651947,
-0.4707101583480835,
0.2010546177625656,
-0.3075323700904846,
-0.050909414887428284,
-0.31167376041412354,
0.19300277531147003,
0.22377504408359528,
0.15178649127483368,
-0.20707333087921143,
0.13810394704341888,
0.10404570400714874,
-0.10741438716650009,
-0.10880360752344131,
0.1196155697107315,
0.03148268908262253,
0.06556545943021774,
-0.46396604180336,
-0.43908438086509705,
-0.013932021334767342,
0.04091760143637657,
0.4010550379753113,
0.06592203676700592,
-0.12235131859779358,
0.04969704896211624,
-0.247098907828331,
-0.12648886442184448,
-0.175556018948555,
0.1663682907819748,
-0.18759554624557495,
-0.2554450035095215,
0.2479192614555359,
0.11192575097084045,
-0.32669827342033386,
-0.21272224187850952,
0.08012709766626358,
0.07626742869615555,
-0.7130566239356995,
-0.20004907250404358,
-0.11349258571863174,
-0.14745138585567474,
-0.05904783308506012,
0.08652301132678986,
-0.11033126711845398,
0.1984107941389084,
0.1098320484161377,
-0.02925800159573555,
-0.1576775759458542,
-0.38244202733039856,
0.6548933982849121,
0.3079111874103546,
0.09668885171413422,
-0.40281209349632263,
0.07456974685192108,
0.05198410525918007,
0.17514580488204956,
0.16730427742004395,
-0.16686584055423737,
-0.0060527026653289795,
-0.10989884287118912,
-0.04088325425982475,
0.15313667058944702,
-0.32984980940818787,
0.4263611137866974,
0.239254429936409,
0.07831556349992752,
0.2785068154335022,
0.0004219338297843933,
0.048124901950359344,
-0.02927112579345703,
0.49049296975135803,
-0.14701437950134277,
0.045152466744184494,
-0.2398294061422348,
-0.11434325575828552,
-0.1532818078994751,
0.030300147831439972,
0.010628312826156616,
-0.2077561318874359,
-0.1280961036682129,
0.14922413229942322,
-0.16171930730342865,
-0.03725919872522354,
0.2752903401851654,
-0.7325527667999268,
-0.07514504343271255,
-0.09447210282087326,
-0.02846360206604004,
0.04528459906578064,
0.44044029712677,
-0.10819901525974274,
-0.11886119842529297,
0.1701604723930359,
-0.00820203684270382,
0.6488137245178223,
0.061725467443466187,
0.4940756559371948,
0.3102583885192871,
0.19854360818862915,
-0.34251639246940613,
-0.380138099193573,
-0.43936604261398315,
-0.17255264520645142,
0.5286614298820496,
0.15605442225933075,
-0.25423943996429443,
-0.28723612427711487,
0.2137312889099121,
-0.10232765227556229,
-0.1947612166404724,
0.09638582915067673,
-0.42038965225219727,
-0.23837247490882874,
0.332248717546463,
-0.037344299256801605,
0.16446207463741302,
0.0595598928630352,
-0.0016736260149627924,
0.07826991379261017,
0.23689055442810059,
-0.46082091331481934,
0.40271836519241333,
0.35780712962150574,
0.12857753038406372,
0.3503623902797699,
0.024372011423110962,
0.3749050796031952,
0.11767150461673737,
-0.4649388790130615,
0.23649893701076508,
-0.15619724988937378,
-0.04619339108467102,
0.17196285724639893,
-0.2602110505104065,
0.3416866660118103,
-0.06599041819572449,
-0.1073218286037445,
-0.04898732155561447,
-0.3839333653450012,
0.28621622920036316,
-0.3703197240829468,
0.30199822783470154,
0.3484678864479065,
0.24248507618904114,
0.02012871764600277,
-0.1555308699607849,
0.122219979763031,
-0.11809879541397095,
-0.26283901929855347,
-0.21134698390960693,
-0.016152992844581604,
-0.4556926190853119,
0.08492002636194229,
-0.21041011810302734,
0.6448186039924622,
0.04535163193941116,
0.0006922893226146698,
0.10229910910129547,
-0.34347403049468994,
0.5957658290863037,
-0.11621270328760147,
0.13951793313026428,
-0.2881869077682495,
-0.08220282942056656,
0.06939642131328583,
0.06554305553436279,
-0.1502910554409027,
0.4253509044647217,
-0.1543276160955429,
0.42215731739997864,
0.18519441783428192,
0.007249355316162109,
0.03674499690532684,
0.14724621176719666,
0.5044358372688293,
0.13582266867160797,
-0.2058895379304886,
0.18068663775920868,
-0.22780300676822662,
0.1381680965423584,
-0.10229217261075974,
-0.020024459809064865,
0.1115599125623703,
-0.2711080312728882,
-0.2080397605895996,
-0.1458148956298828,
-0.3024892807006836,
-0.08702052384614944,
0.42410022020339966,
0.10370294749736786,
-0.16669975221157074,
0.036883823573589325,
0.5649842023849487,
0.23046532273292542,
-0.219545379281044,
-0.06361688673496246,
0.16688579320907593,
0.3394564092159271,
0.09629546105861664,
0.2072867453098297,
0.319813996553421,
0.0012470297515392303,
-0.230873703956604,
-0.016641132533550262,
0.08016321063041687,
0.17380860447883606,
-0.3481503129005432,
-0.10174195468425751,
-0.046894147992134094,
-0.12306821346282959,
0.22461679577827454,
0.28752243518829346,
0.13450142741203308,
-0.2777548134326935,
0.14777596294879913,
0.04211065545678139,
-0.4823458194732666,
0.08805491775274277,
0.18621546030044556,
-0.44669607281684875,
0.12845063209533691,
0.4110446572303772,
-0.39318540692329407,
0.3199150562286377,
0.2890367805957794,
-0.07670183479785919,
-0.008668756112456322,
-0.2683328688144684,
0.08293009549379349,
0.020792800933122635,
-0.5002565979957581,
0.15103749930858612,
0.06824205070734024,
-0.3127124309539795,
-0.061799950897693634,
0.35857462882995605,
0.3742308020591736,
-0.0457242876291275,
-0.045920200645923615,
0.049565814435482025,
-0.12660588324069977,
-0.03153623640537262,
-0.052550945430994034,
0.294924259185791,
-0.09919634461402893,
0.20353907346725464,
-0.0005553066730499268,
0.2477174997329712,
-0.31384697556495667,
-0.18423546850681305,
-0.3627869188785553,
0.1797093003988266,
-0.007426725700497627,
-0.008049730211496353,
-0.22068636119365692,
-0.08024922013282776,
0.20637355744838715,
-0.2019587755203247,
-0.07713684439659119,
-0.23787757754325867,
0.04907630756497383,
0.10978687554597855,
-0.06195380538702011,
0.04754204303026199,
-0.24244053661823273,
0.07746124267578125,
0.040033385157585144,
0.0109386732801795,
-0.06157440319657326,
0.06705925613641739,
0.09701256453990936,
0.8924071192741394,
0.10893607139587402,
-0.034524232149124146,
0.12641467154026031,
-0.047205157577991486,
-0.09084080159664154,
-0.13989008963108063,
-0.0353141650557518,
0.22051642835140228,
0.2597258687019348,
0.07087543606758118,
-0.24794195592403412,
0.10922634601593018,
-0.4701395034790039,
0.06705967336893082,
-0.10033894330263138,
-0.3349016308784485,
0.17072761058807373,
-0.11029047518968582,
0.2450975775718689,
-0.0020970478653907776,
-0.05650316923856735,
-0.07533687353134155,
0.19672593474388123,
0.274404376745224,
-0.14405924081802368,
0.2991374135017395,
0.30246269702911377,
0.12853078544139862,
0.20637571811676025,
0.2766055464744568,
-0.08614090085029602,
-0.09184569865465164,
0.044616907835006714,
0.1708594262599945,
0.25332072377204895,
-0.15568141639232635,
0.014833825640380383,
0.23541900515556335,
-0.377832293510437,
-0.1394176483154297,
0.2338888794183731,
-0.5454511046409607,
-0.259985089302063,
-0.0635320320725441,
0.35906127095222473,
0.47308334708213806,
0.24429067969322205,
0.2248540073633194,
-0.11749643832445145,
0.5504232048988342,
-0.10056453943252563,
0.11489929258823395,
-0.19030073285102844,
0.15680840611457825,
-0.026904329657554626,
0.4228303134441376,
-0.22543497383594513,
-0.28968173265457153,
-0.1428186446428299,
0.0741942971944809,
0.01234198734164238,
-0.42273542284965515,
-0.3647424280643463,
0.07755815237760544,
-0.2778157591819763,
0.0937696248292923,
0.02724233642220497,
-0.06893548369407654,
0.42622092366218567,
-0.015630826354026794,
0.02931419014930725,
-0.3624056875705719,
-0.6591201424598694,
0.08273047208786011,
0.24549707770347595,
-0.030819522216916084,
0.3564569652080536,
0.013535447418689728,
-0.023416846990585327,
0.08269421756267548,
0.48508647084236145,
-0.02170846238732338,
-0.15393638610839844,
-0.13774967193603516,
-0.29478371143341064,
-0.19909749925136566,
-0.17983478307724,
-0.19977405667304993,
0.11430645734071732,
-0.06895354390144348,
-0.20472495257854462,
0.22563251852989197,
0.13329356908798218,
-0.033868368715047836,
0.4815896153450012,
-0.3065575659275055,
-0.135290265083313,
-0.19851680099964142,
0.4735824465751648,
0.05333273112773895,
-0.08433855324983597,
-0.04198838770389557,
0.004211992025375366,
-0.2606082260608673,
-0.1726108193397522,
0.01021256111562252,
-0.06900586187839508,
0.2692814767360687,
-0.31078851222991943,
0.08778030425310135,
0.08726079761981964,
0.4814492464065552,
-0.2841913104057312,
0.13342496752738953,
-0.15048424899578094,
0.15816782414913177,
-0.18487492203712463,
-0.14636114239692688,
-0.0363076813519001,
-0.16399900615215302,
-0.12060625851154327,
-0.05896010994911194,
0.16122832894325256,
-0.077625572681427,
0.05039303004741669,
0.3595695495605469,
-0.11823950707912445,
-0.06551504135131836,
-0.34884095191955566,
0.34651753306388855,
0.06192464381456375,
0.3626910150051117,
0.23910871148109436,
-0.1259865164756775,
0.13562248647212982,
0.11258259415626526,
0.0826554223895073,
0.10623306781053543,
0.16612523794174194,
-0.09636068344116211,
0.2769809365272522,
0.19938425719738007,
0.08972795307636261,
0.49743935465812683,
0.05676386505365372,
0.173707976937294,
-0.2943834066390991,
-0.33704033493995667,
-0.360850065946579,
-0.10455324500799179,
-0.2991926968097687,
0.40716370940208435,
-0.05689796060323715,
0.0057603903114795685,
0.1097954660654068,
-0.12080252915620804,
0.1738741546869278,
0.32849833369255066,
-0.2332249879837036,
0.14248213171958923,
-0.06964552402496338,
-0.021369505673646927,
-0.011361121200025082,
-0.15444034337997437,
0.1508358269929886,
-0.0689024031162262,
-0.15474021434783936,
-0.5150068402290344,
0.6079293489456177,
-0.1748904138803482,
-0.12970608472824097,
-0.07439268380403519,
0.3857116997241974,
0.32967713475227356,
-0.1316094696521759,
-0.5880597233772278,
-0.22726646065711975,
0.49602746963500977,
0.194172203540802,
-0.41083356738090515,
0.33431440591812134,
0.13902758061885834,
0.21445725858211517,
0.09442709386348724,
-0.08707517385482788,
0.3029444217681885,
0.04614277929067612,
-0.037220168858766556,
-0.28242307901382446
] |
https://github.com/huggingface/datasets/issues/245 | SST-2 test labels are all -1 | @yc1999 I find that the original SST-2 dataset (6,920/872/1,821) can be loaded from https://huggingface.co/datasets/gpt3mix/sst2 or built with SST data and the scripts in https://github.com/prrao87/fine-grained-sentiment/tree/master/data/sst.
The GLUE/SST-2 dataset (67,349/872/1,821) should be a completely different version.
| I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
``` | 34 | SST-2 test labels are all -1
I'm trying to test a model on the SST-2 task, but all the labels I see in the test set are -1.
```
>>> import nlp
>>> glue = nlp.load_dataset('glue', 'sst2')
>>> glue
{'train': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 67349), 'validation': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 872), 'test': Dataset(schema: {'sentence': 'string', 'label': 'int64', 'idx': 'int32'}, num_rows: 1821)}
>>> list(l['label'] for l in glue['test'])
[-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]
```
@yc1999 I find that the original SST-2 dataset (6,920/872/1,821) can be loaded from https://huggingface.co/datasets/gpt3mix/sst2 or built with SST data and the scripts in https://github.com/prrao87/fine-grained-sentiment/tree/master/data/sst.
The GLUE/SST-2 dataset (67,349/872/1,821) should be a completely different version.
| [
0.32367756962776184,
-0.36125338077545166,
-0.09375044703483582,
0.17786180973052979,
-0.0011129453778266907,
0.10074911266565323,
0.3361845910549164,
0.44995513558387756,
0.5752965807914734,
0.014867335557937622,
-0.12565308809280396,
0.1346777081489563,
-0.14737434685230255,
0.2773217260837555,
0.3333798348903656,
-0.05304747819900513,
0.10838035494089127,
0.3197506070137024,
-0.16760067641735077,
-0.2568298280239105,
-0.03263825178146362,
0.3825783431529999,
-0.14461295306682587,
0.19946527481079102,
-0.2805326282978058,
0.2485165148973465,
0.0017224084585905075,
-0.09634039551019669,
-0.031619831919670105,
-0.5869411826133728,
0.20443373918533325,
0.2065005898475647,
0.21466241776943207,
0.041022807359695435,
-0.00011391189036658034,
0.04387733340263367,
0.1996443271636963,
-0.13507568836212158,
-0.25421246886253357,
-0.12165842950344086,
-0.10567602515220642,
-0.20287635922431946,
0.045861952006816864,
-0.10591371357440948,
-0.3367511034011841,
0.15860404074192047,
0.046821314841508865,
0.007083602249622345,
0.16406220197677612,
0.1519434005022049,
0.17462946474552155,
-0.041338153183460236,
0.003840070217847824,
0.00024256843607872725,
0.0986524447798729,
-0.35794246196746826,
0.007024278864264488,
0.04189793020486832,
-0.04498922824859619,
-0.19236905872821808,
0.285055011510849,
0.44253987073898315,
0.16352322697639465,
0.3538922369480133,
0.08915749192237854,
-0.10861791670322418,
0.29010435938835144,
-0.24144795536994934,
0.05704449862241745,
0.10712786763906479,
0.1578318476676941,
-0.15712088346481323,
-0.24079139530658722,
-0.11643972992897034,
-0.05656186863780022,
0.10065746307373047,
-0.005957208573818207,
0.02762281522154808,
0.21763668954372406,
0.29366618394851685,
-0.019367912784218788,
-0.09277636557817459,
-0.16660188138484955,
0.08752459287643433,
0.04443822801113129,
0.5951553583145142,
0.05255766212940216,
0.1323293000459671,
0.3667907416820526,
0.08864615857601166,
-0.42316168546676636,
0.2890286445617676,
-0.2783503830432892,
0.17419277131557465,
-0.5723788142204285,
-0.18345646560192108,
0.1960396021604538,
-0.0028693825006484985,
-0.2150663435459137,
0.10167351365089417,
0.025422491133213043,
0.027583997696638107,
0.3623877465724945,
-0.05170844495296478,
-0.01841646432876587,
0.32787540555000305,
0.5321335792541504,
0.35786086320877075,
0.027929387986660004,
-0.16158196330070496,
0.04337584599852562,
0.16716918349266052,
-0.3254518210887909,
-0.2536083161830902,
0.055789824575185776,
0.20358994603157043,
0.07160699367523193,
-0.3534905016422272,
-0.3213405907154083,
-0.06896533817052841,
-0.3975774943828583,
0.11827588081359863,
0.10451057553291321,
0.013810381293296814,
0.27481189370155334,
0.02854093909263611,
-0.12523633241653442,
-0.00599091500043869,
-0.11779463291168213,
-0.3868847191333771,
-0.25637468695640564,
0.1317729502916336,
-0.17771488428115845,
0.018412189558148384,
0.40443679690361023,
0.16017837822437286,
0.16646328568458557,
-0.29214444756507874,
-0.3622269034385681,
-0.042281296104192734,
0.13346989452838898,
-0.04349321871995926,
0.18527783453464508,
0.34856998920440674,
-0.2840804159641266,
0.3784767985343933,
0.242889404296875,
-0.5122994780540466,
-0.141086146235466,
-0.2726317048072815,
-0.02923911064863205,
-0.07268936932086945,
0.06737255305051804,
0.1427009552717209,
-0.30557727813720703,
-0.06546953320503235,
-0.000672169029712677,
0.34674158692359924,
-0.04100111871957779,
0.12588311731815338,
0.048716895282268524,
-0.23691947758197784,
0.001933261752128601,
0.25379279255867004,
0.22849923372268677,
0.2446567714214325,
-0.45920297503471375,
-0.09783874452114105,
0.3145676851272583,
-0.01792445406317711,
-0.16900351643562317,
0.17246192693710327,
0.2161763608455658,
0.1493660807609558,
-0.06026569753885269,
0.20516718924045563,
0.35422685742378235,
-0.30272573232650757,
-0.33421382308006287,
0.1045897826552391,
-0.28815001249313354,
-0.49943599104881287,
0.03234044462442398,
0.060902711004018784,
-0.0006796158850193024,
0.10404449701309204,
-0.042171284556388855,
-0.3407536745071411,
0.12075398117303848,
0.03561927378177643,
-0.5237574577331543,
0.25442197918891907,
0.5446702241897583,
-0.01637331396341324,
-0.025428492575883865,
-0.12888646125793457,
-0.34309449791908264,
0.19785544276237488,
0.14037677645683289,
0.05447125434875488,
0.03671228885650635,
0.15441596508026123,
0.17454198002815247,
-0.12684160470962524,
0.08580417186021805,
-0.09543485194444656,
-0.1772257685661316,
0.19450289011001587,
0.013031378388404846,
0.3939721882343292,
0.5494519472122192,
0.0648842379450798,
-0.39997604489326477,
-0.2042216807603836,
0.03571399301290512,
-0.22717013955116272,
0.17650289833545685,
0.4278755187988281,
0.3945477604866028,
-0.04702496528625488,
0.07510031759738922,
-0.011027157306671143,
0.28155091404914856,
0.009615602903068066,
-0.21090970933437347,
0.23462440073490143,
0.08188246190547943,
-0.2415732741355896,
0.07868681102991104,
0.29264798760414124,
0.28934863209724426,
-0.09177552163600922,
0.03226146101951599,
0.2211168110370636,
-0.2014569491147995,
-0.054602786898612976,
0.08865466713905334,
0.2956276535987854,
-0.08880256861448288,
-0.4509785771369934,
-0.2570938766002655,
0.5002955198287964,
-0.0395481139421463,
-0.02086939662694931,
-0.07503286749124527,
0.07552389800548553,
-0.05294352397322655,
0.15842358767986298,
-0.11409182846546173,
0.15477846562862396,
-0.0377262607216835,
-0.05912962928414345,
-0.46715861558914185,
-0.05292944610118866,
0.2241194248199463,
-0.43858084082603455,
-0.007664866745471954,
0.13175392150878906,
-0.046287599951028824,
0.3177303075790405,
0.22819434106349945,
0.16151566803455353,
0.09794717282056808,
-0.20214831829071045,
-0.20775973796844482,
-0.09145326167345047,
0.26680970191955566,
0.29076895117759705,
-0.01921635866165161,
0.1956547498703003,
0.056212931871414185,
-0.23100098967552185,
-0.5293570756912231,
-0.039803799241781235,
0.013005681335926056,
-0.09802059829235077,
-0.2299816757440567,
-0.13324186205863953,
0.33717185258865356,
-0.3350445628166199,
-0.19458547234535217,
0.20707100629806519,
-0.06920483708381653,
0.37862223386764526,
-0.626308262348175,
-0.06222297251224518,
-0.11877091974020004,
-0.12420877814292908,
-0.2760332524776459,
-0.05202329903841019,
0.010321119800209999,
-0.2586916387081146,
0.3558695316314697,
0.04935690760612488,
0.08481462299823761,
0.08254630118608475,
-0.0007404293864965439,
0.16189520061016083,
-0.14972861111164093,
0.2043098658323288,
-0.30015164613723755,
-0.12423382699489594,
-0.25058847665786743,
-0.00016626156866550446,
-0.22512659430503845,
0.3416077792644501,
0.031404849141836166,
-0.1615661084651947,
-0.4707101583480835,
0.2010546177625656,
-0.3075323700904846,
-0.050909414887428284,
-0.31167376041412354,
0.19300277531147003,
0.22377504408359528,
0.15178649127483368,
-0.20707333087921143,
0.13810394704341888,
0.10404570400714874,
-0.10741438716650009,
-0.10880360752344131,
0.1196155697107315,
0.03148268908262253,
0.06556545943021774,
-0.46396604180336,
-0.43908438086509705,
-0.013932021334767342,
0.04091760143637657,
0.4010550379753113,
0.06592203676700592,
-0.12235131859779358,
0.04969704896211624,
-0.247098907828331,
-0.12648886442184448,
-0.175556018948555,
0.1663682907819748,
-0.18759554624557495,
-0.2554450035095215,
0.2479192614555359,
0.11192575097084045,
-0.32669827342033386,
-0.21272224187850952,
0.08012709766626358,
0.07626742869615555,
-0.7130566239356995,
-0.20004907250404358,
-0.11349258571863174,
-0.14745138585567474,
-0.05904783308506012,
0.08652301132678986,
-0.11033126711845398,
0.1984107941389084,
0.1098320484161377,
-0.02925800159573555,
-0.1576775759458542,
-0.38244202733039856,
0.6548933982849121,
0.3079111874103546,
0.09668885171413422,
-0.40281209349632263,
0.07456974685192108,
0.05198410525918007,
0.17514580488204956,
0.16730427742004395,
-0.16686584055423737,
-0.0060527026653289795,
-0.10989884287118912,
-0.04088325425982475,
0.15313667058944702,
-0.32984980940818787,
0.4263611137866974,
0.239254429936409,
0.07831556349992752,
0.2785068154335022,
0.0004219338297843933,
0.048124901950359344,
-0.02927112579345703,
0.49049296975135803,
-0.14701437950134277,
0.045152466744184494,
-0.2398294061422348,
-0.11434325575828552,
-0.1532818078994751,
0.030300147831439972,
0.010628312826156616,
-0.2077561318874359,
-0.1280961036682129,
0.14922413229942322,
-0.16171930730342865,
-0.03725919872522354,
0.2752903401851654,
-0.7325527667999268,
-0.07514504343271255,
-0.09447210282087326,
-0.02846360206604004,
0.04528459906578064,
0.44044029712677,
-0.10819901525974274,
-0.11886119842529297,
0.1701604723930359,
-0.00820203684270382,
0.6488137245178223,
0.061725467443466187,
0.4940756559371948,
0.3102583885192871,
0.19854360818862915,
-0.34251639246940613,
-0.380138099193573,
-0.43936604261398315,
-0.17255264520645142,
0.5286614298820496,
0.15605442225933075,
-0.25423943996429443,
-0.28723612427711487,
0.2137312889099121,
-0.10232765227556229,
-0.1947612166404724,
0.09638582915067673,
-0.42038965225219727,
-0.23837247490882874,
0.332248717546463,
-0.037344299256801605,
0.16446207463741302,
0.0595598928630352,
-0.0016736260149627924,
0.07826991379261017,
0.23689055442810059,
-0.46082091331481934,
0.40271836519241333,
0.35780712962150574,
0.12857753038406372,
0.3503623902797699,
0.024372011423110962,
0.3749050796031952,
0.11767150461673737,
-0.4649388790130615,
0.23649893701076508,
-0.15619724988937378,
-0.04619339108467102,
0.17196285724639893,
-0.2602110505104065,
0.3416866660118103,
-0.06599041819572449,
-0.1073218286037445,
-0.04898732155561447,
-0.3839333653450012,
0.28621622920036316,
-0.3703197240829468,
0.30199822783470154,
0.3484678864479065,
0.24248507618904114,
0.02012871764600277,
-0.1555308699607849,
0.122219979763031,
-0.11809879541397095,
-0.26283901929855347,
-0.21134698390960693,
-0.016152992844581604,
-0.4556926190853119,
0.08492002636194229,
-0.21041011810302734,
0.6448186039924622,
0.04535163193941116,
0.0006922893226146698,
0.10229910910129547,
-0.34347403049468994,
0.5957658290863037,
-0.11621270328760147,
0.13951793313026428,
-0.2881869077682495,
-0.08220282942056656,
0.06939642131328583,
0.06554305553436279,
-0.1502910554409027,
0.4253509044647217,
-0.1543276160955429,
0.42215731739997864,
0.18519441783428192,
0.007249355316162109,
0.03674499690532684,
0.14724621176719666,
0.5044358372688293,
0.13582266867160797,
-0.2058895379304886,
0.18068663775920868,
-0.22780300676822662,
0.1381680965423584,
-0.10229217261075974,
-0.020024459809064865,
0.1115599125623703,
-0.2711080312728882,
-0.2080397605895996,
-0.1458148956298828,
-0.3024892807006836,
-0.08702052384614944,
0.42410022020339966,
0.10370294749736786,
-0.16669975221157074,
0.036883823573589325,
0.5649842023849487,
0.23046532273292542,
-0.219545379281044,
-0.06361688673496246,
0.16688579320907593,
0.3394564092159271,
0.09629546105861664,
0.2072867453098297,
0.319813996553421,
0.0012470297515392303,
-0.230873703956604,
-0.016641132533550262,
0.08016321063041687,
0.17380860447883606,
-0.3481503129005432,
-0.10174195468425751,
-0.046894147992134094,
-0.12306821346282959,
0.22461679577827454,
0.28752243518829346,
0.13450142741203308,
-0.2777548134326935,
0.14777596294879913,
0.04211065545678139,
-0.4823458194732666,
0.08805491775274277,
0.18621546030044556,
-0.44669607281684875,
0.12845063209533691,
0.4110446572303772,
-0.39318540692329407,
0.3199150562286377,
0.2890367805957794,
-0.07670183479785919,
-0.008668756112456322,
-0.2683328688144684,
0.08293009549379349,
0.020792800933122635,
-0.5002565979957581,
0.15103749930858612,
0.06824205070734024,
-0.3127124309539795,
-0.061799950897693634,
0.35857462882995605,
0.3742308020591736,
-0.0457242876291275,
-0.045920200645923615,
0.049565814435482025,
-0.12660588324069977,
-0.03153623640537262,
-0.052550945430994034,
0.294924259185791,
-0.09919634461402893,
0.20353907346725464,
-0.0005553066730499268,
0.2477174997329712,
-0.31384697556495667,
-0.18423546850681305,
-0.3627869188785553,
0.1797093003988266,
-0.007426725700497627,
-0.008049730211496353,
-0.22068636119365692,
-0.08024922013282776,
0.20637355744838715,
-0.2019587755203247,
-0.07713684439659119,
-0.23787757754325867,
0.04907630756497383,
0.10978687554597855,
-0.06195380538702011,
0.04754204303026199,
-0.24244053661823273,
0.07746124267578125,
0.040033385157585144,
0.0109386732801795,
-0.06157440319657326,
0.06705925613641739,
0.09701256453990936,
0.8924071192741394,
0.10893607139587402,
-0.034524232149124146,
0.12641467154026031,
-0.047205157577991486,
-0.09084080159664154,
-0.13989008963108063,
-0.0353141650557518,
0.22051642835140228,
0.2597258687019348,
0.07087543606758118,
-0.24794195592403412,
0.10922634601593018,
-0.4701395034790039,
0.06705967336893082,
-0.10033894330263138,
-0.3349016308784485,
0.17072761058807373,
-0.11029047518968582,
0.2450975775718689,
-0.0020970478653907776,
-0.05650316923856735,
-0.07533687353134155,
0.19672593474388123,
0.274404376745224,
-0.14405924081802368,
0.2991374135017395,
0.30246269702911377,
0.12853078544139862,
0.20637571811676025,
0.2766055464744568,
-0.08614090085029602,
-0.09184569865465164,
0.044616907835006714,
0.1708594262599945,
0.25332072377204895,
-0.15568141639232635,
0.014833825640380383,
0.23541900515556335,
-0.377832293510437,
-0.1394176483154297,
0.2338888794183731,
-0.5454511046409607,
-0.259985089302063,
-0.0635320320725441,
0.35906127095222473,
0.47308334708213806,
0.24429067969322205,
0.2248540073633194,
-0.11749643832445145,
0.5504232048988342,
-0.10056453943252563,
0.11489929258823395,
-0.19030073285102844,
0.15680840611457825,
-0.026904329657554626,
0.4228303134441376,
-0.22543497383594513,
-0.28968173265457153,
-0.1428186446428299,
0.0741942971944809,
0.01234198734164238,
-0.42273542284965515,
-0.3647424280643463,
0.07755815237760544,
-0.2778157591819763,
0.0937696248292923,
0.02724233642220497,
-0.06893548369407654,
0.42622092366218567,
-0.015630826354026794,
0.02931419014930725,
-0.3624056875705719,
-0.6591201424598694,
0.08273047208786011,
0.24549707770347595,
-0.030819522216916084,
0.3564569652080536,
0.013535447418689728,
-0.023416846990585327,
0.08269421756267548,
0.48508647084236145,
-0.02170846238732338,
-0.15393638610839844,
-0.13774967193603516,
-0.29478371143341064,
-0.19909749925136566,
-0.17983478307724,
-0.19977405667304993,
0.11430645734071732,
-0.06895354390144348,
-0.20472495257854462,
0.22563251852989197,
0.13329356908798218,
-0.033868368715047836,
0.4815896153450012,
-0.3065575659275055,
-0.135290265083313,
-0.19851680099964142,
0.4735824465751648,
0.05333273112773895,
-0.08433855324983597,
-0.04198838770389557,
0.004211992025375366,
-0.2606082260608673,
-0.1726108193397522,
0.01021256111562252,
-0.06900586187839508,
0.2692814767360687,
-0.31078851222991943,
0.08778030425310135,
0.08726079761981964,
0.4814492464065552,
-0.2841913104057312,
0.13342496752738953,
-0.15048424899578094,
0.15816782414913177,
-0.18487492203712463,
-0.14636114239692688,
-0.0363076813519001,
-0.16399900615215302,
-0.12060625851154327,
-0.05896010994911194,
0.16122832894325256,
-0.077625572681427,
0.05039303004741669,
0.3595695495605469,
-0.11823950707912445,
-0.06551504135131836,
-0.34884095191955566,
0.34651753306388855,
0.06192464381456375,
0.3626910150051117,
0.23910871148109436,
-0.1259865164756775,
0.13562248647212982,
0.11258259415626526,
0.0826554223895073,
0.10623306781053543,
0.16612523794174194,
-0.09636068344116211,
0.2769809365272522,
0.19938425719738007,
0.08972795307636261,
0.49743935465812683,
0.05676386505365372,
0.173707976937294,
-0.2943834066390991,
-0.33704033493995667,
-0.360850065946579,
-0.10455324500799179,
-0.2991926968097687,
0.40716370940208435,
-0.05689796060323715,
0.0057603903114795685,
0.1097954660654068,
-0.12080252915620804,
0.1738741546869278,
0.32849833369255066,
-0.2332249879837036,
0.14248213171958923,
-0.06964552402496338,
-0.021369505673646927,
-0.011361121200025082,
-0.15444034337997437,
0.1508358269929886,
-0.0689024031162262,
-0.15474021434783936,
-0.5150068402290344,
0.6079293489456177,
-0.1748904138803482,
-0.12970608472824097,
-0.07439268380403519,
0.3857116997241974,
0.32967713475227356,
-0.1316094696521759,
-0.5880597233772278,
-0.22726646065711975,
0.49602746963500977,
0.194172203540802,
-0.41083356738090515,
0.33431440591812134,
0.13902758061885834,
0.21445725858211517,
0.09442709386348724,
-0.08707517385482788,
0.3029444217681885,
0.04614277929067612,
-0.037220168858766556,
-0.28242307901382446
] |
https://github.com/huggingface/datasets/issues/242 | UnicodeDecodeError when downloading GLUE-MNLI | It should be good now, thanks for noticing and fixing it ! I would say that it was because you are on windows but not 100% sure | When I run
```python
dataset = nlp.load_dataset('glue', 'mnli')
```
I get an encoding error (could it be because I'm using Windows?) :
```python
# Lots of error log lines later...
~\Miniconda3\envs\nlp\lib\site-packages\tqdm\std.py in __iter__(self)
1128 try:
-> 1129 for obj in iterable:
1130 yield obj
~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\glue\5256cc2368cf84497abef1f1a5f66648522d5854b225162148cb8fc78a5a91cc\glue.py in _generate_examples(self, data_file, split, mrpc_files)
529
--> 530 for n, row in enumerate(reader):
531 if is_cola_non_test:
~\Miniconda3\envs\nlp\lib\csv.py in __next__(self)
110 self.fieldnames
--> 111 row = next(self.reader)
112 self.line_num = self.reader.line_num
~\Miniconda3\envs\nlp\lib\encodings\cp1252.py in decode(self, input, final)
22 def decode(self, input, final=False):
---> 23 return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 6744: character maps to <undefined>
```
Anyway this can be solved by specifying to decode in UTF when reading the csv file. I am proposing a PR if that's okay. | 27 | UnicodeDecodeError when downloading GLUE-MNLI
When I run
```python
dataset = nlp.load_dataset('glue', 'mnli')
```
I get an encoding error (could it be because I'm using Windows?) :
```python
# Lots of error log lines later...
~\Miniconda3\envs\nlp\lib\site-packages\tqdm\std.py in __iter__(self)
1128 try:
-> 1129 for obj in iterable:
1130 yield obj
~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\glue\5256cc2368cf84497abef1f1a5f66648522d5854b225162148cb8fc78a5a91cc\glue.py in _generate_examples(self, data_file, split, mrpc_files)
529
--> 530 for n, row in enumerate(reader):
531 if is_cola_non_test:
~\Miniconda3\envs\nlp\lib\csv.py in __next__(self)
110 self.fieldnames
--> 111 row = next(self.reader)
112 self.line_num = self.reader.line_num
~\Miniconda3\envs\nlp\lib\encodings\cp1252.py in decode(self, input, final)
22 def decode(self, input, final=False):
---> 23 return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 6744: character maps to <undefined>
```
Anyway this can be solved by specifying to decode in UTF when reading the csv file. I am proposing a PR if that's okay.
It should be good now, thanks for noticing and fixing it ! I would say that it was because you are on windows but not 100% sure | [
0.0960790365934372,
-0.03137844055891037,
-0.07758302986621857,
0.2640603184700012,
0.42571431398391724,
-0.07900060713291168,
-0.08543726801872253,
0.15145035088062286,
0.08581607043743134,
0.17578792572021484,
0.15942557156085968,
0.11346732825040817,
-0.024908103048801422,
-0.19148369133472443,
0.158864825963974,
-0.20885249972343445,
0.19392603635787964,
0.17276085913181305,
-0.1549508422613144,
-0.015184890478849411,
-0.2860024869441986,
0.35002028942108154,
0.024488627910614014,
0.15659865736961365,
-0.11446190625429153,
-0.18528731167316437,
-0.23074674606323242,
0.2669433355331421,
-0.3331387937068939,
-0.5159600377082825,
-0.09309419244527817,
-0.14117613434791565,
0.4058379828929901,
-0.34247538447380066,
-0.00010933078738162294,
-0.07211504131555557,
0.39827388525009155,
-0.16644619405269623,
0.05478418990969658,
0.11661583185195923,
-0.01547304168343544,
-0.33436521887779236,
-0.17601634562015533,
-0.24869513511657715,
0.378110408782959,
0.34890952706336975,
0.07319088280200958,
-0.3212677836418152,
0.024205073714256287,
0.26598694920539856,
0.23782525956630707,
0.24775955080986023,
0.17812855541706085,
0.2954210042953491,
0.24418261647224426,
-0.39067620038986206,
-0.02849530428647995,
0.34950459003448486,
0.263851135969162,
-0.2385386973619461,
0.13456584513187408,
0.24733991920948029,
-0.26120656728744507,
0.1423327624797821,
-0.2731611132621765,
0.3587571680545807,
0.16235485672950745,
-0.574504017829895,
-0.07329107820987701,
0.13750427961349487,
-0.0825243666768074,
-0.2108454704284668,
-0.23247255384922028,
-0.021466918289661407,
0.3149499297142029,
-0.3452880382537842,
0.4538138210773468,
0.34306925535202026,
-0.13913357257843018,
0.20289559662342072,
0.23957234621047974,
-0.005509890615940094,
0.13211336731910706,
0.2591427266597748,
0.019058898091316223,
0.17141078412532806,
-0.19499708712100983,
-0.03386376053094864,
0.3158774673938751,
-0.29770082235336304,
-0.2757951021194458,
-0.14276659488677979,
-0.17715628445148468,
0.07203157991170883,
-0.035612303763628006,
-0.08120381087064743,
-0.28427448868751526,
0.14358121156692505,
0.08466807007789612,
-0.0134621262550354,
0.09465812146663666,
-0.05734369158744812,
0.08996173739433289,
0.11085358262062073,
0.020828623324632645,
0.24171026051044464,
-0.1470821499824524,
-0.00042213406413793564,
0.423267126083374,
0.1088607981801033,
0.33182603120803833,
0.018172984942793846,
-0.18345795571804047,
-0.2916091978549957,
-0.1649368852376938,
0.2708430886268616,
0.28716742992401123,
-0.06480452418327332,
-0.39272189140319824,
0.08096965402364731,
-0.10124248266220093,
0.06559233367443085,
-0.22239962220191956,
0.07617611438035965,
-0.18084394931793213,
0.20430916547775269,
-0.18883360922336578,
0.34699589014053345,
-0.257171094417572,
-0.35193678736686707,
0.014991438016295433,
0.33897536993026733,
-0.12324275076389313,
-0.028552455827593803,
0.19558194279670715,
-0.028384078294038773,
-0.040423497557640076,
-0.06022858992218971,
-0.1589142084121704,
0.025591835379600525,
-0.2434101402759552,
-0.08014494180679321,
0.05788561329245567,
0.2219349890947342,
0.1136656254529953,
0.188381627202034,
0.09872366487979889,
-0.6630222797393799,
-0.23514431715011597,
0.05864054337143898,
-0.14152055978775024,
0.04482276365160942,
-0.15688684582710266,
0.15356436371803284,
-0.26864179968833923,
-0.19826191663742065,
-0.004965737462043762,
-0.05214814469218254,
0.04201697185635567,
0.11564639210700989,
0.08026007562875748,
-0.031868837773799896,
0.03760286048054695,
-0.3339200019836426,
0.1539803445339203,
0.42375320196151733,
-0.307354599237442,
0.08815586566925049,
0.03435289114713669,
-0.2626701891422272,
0.27004820108413696,
0.3727377653121948,
0.2950723469257355,
-0.19702944159507751,
-0.2710651457309723,
0.5628247261047363,
0.2969704568386078,
-0.4510253965854645,
-0.5493013858795166,
0.5310087203979492,
-0.1751743108034134,
-0.01642454043030739,
0.08717130124568939,
0.1576889604330063,
0.2352524846792221,
0.1092161312699318,
0.18373706936836243,
0.5050610899925232,
-0.08011895418167114,
0.09823019057512283,
-0.3659400939941406,
-0.4618394672870636,
0.37618112564086914,
0.06762915849685669,
-0.2985515892505646,
-0.07299209386110306,
0.15564636886119843,
-0.44042113423347473,
0.2256356179714203,
0.028716182336211205,
0.23879693448543549,
0.14482246339321136,
0.22140757739543915,
-0.16681532561779022,
-0.004206295125186443,
-0.1305442601442337,
-0.16857534646987915,
0.007993459701538086,
-0.10551813244819641,
0.2592504620552063,
-0.6571521162986755,
-0.21875183284282684,
-0.046798303723335266,
-0.14351004362106323,
-0.2525239884853363,
-0.10950638353824615,
0.18559230864048004,
0.07440889626741409,
0.38622239232063293,
0.23732484877109528,
-0.1318562775850296,
0.5412453413009644,
0.03611518442630768,
0.10055597871541977,
-0.2505452036857605,
0.38680222630500793,
-0.13733208179473877,
-0.22595536708831787,
0.062419481575489044,
0.3521323800086975,
0.1498398780822754,
-0.11489196866750717,
-0.021960947662591934,
0.29454609751701355,
-0.14496414363384247,
0.04587795212864876,
0.1562284231185913,
-0.09293301403522491,
0.35104164481163025,
-0.3313703238964081,
0.18791496753692627,
0.2839381694793701,
0.20871903002262115,
0.01166803389787674,
0.40559977293014526,
0.2408410906791687,
0.07734189927577972,
0.23597216606140137,
0.18076543509960175,
0.22107470035552979,
0.22782763838768005,
0.024414997547864914,
-0.20619991421699524,
-0.4619483947753906,
0.2684989869594574,
0.033173613250255585,
0.12589536607265472,
-0.06796576827764511,
-0.23847420513629913,
-0.0589275136590004,
0.6475156545639038,
-0.13615524768829346,
0.136541485786438,
-0.01866631954908371,
-0.30907273292541504,
0.3296532928943634,
-0.11493372917175293,
0.28587961196899414,
0.41028422117233276,
-0.028452318161725998,
-0.10261215269565582,
0.2041163295507431,
0.07722101360559464,
-0.1080850213766098,
0.07495333254337311,
-0.08331872522830963,
-0.1447238028049469,
-0.03376905620098114,
-0.22384090721607208,
0.08573184907436371,
-0.23101270198822021,
0.012782979756593704,
-0.08084786683320999,
0.22514891624450684,
-0.1622382402420044,
-0.17880648374557495,
-0.5618284344673157,
-0.4707520604133606,
-0.20298081636428833,
-0.2117941826581955,
-0.5013470649719238,
-0.215840682387352,
-0.1323915272951126,
-0.24134299159049988,
-0.023420855402946472,
-0.033839233219623566,
-0.14165712893009186,
-0.13578392565250397,
-0.08208421617746353,
-0.1961439549922943,
0.1037638932466507,
-0.14614208042621613,
-0.4340043365955353,
0.11213132739067078,
0.3220770061016083,
0.12119990587234497,
0.1814730018377304,
-0.33217671513557434,
0.3115807771682739,
-0.19616574048995972,
-0.05531221628189087,
0.10366185009479523,
-0.13458576798439026,
0.24022215604782104,
0.09636691212654114,
-0.012691758573055267,
0.2656978964805603,
-0.25913670659065247,
0.25705084204673767,
-0.07767660170793533,
-0.13772225379943848,
0.12003193795681,
0.18955466151237488,
-0.4034387469291687,
-0.0965978354215622,
-0.13971495628356934,
-0.7030830979347229,
-0.22302807867527008,
0.06153395026922226,
-0.12932923436164856,
0.013374477624893188,
-0.19524821639060974,
-0.23667499423027039,
0.11219044774770737,
-0.14537572860717773,
-0.030458753928542137,
-0.14518718421459198,
-0.0018216706812381744,
0.5186722874641418,
-0.16278699040412903,
-0.45222434401512146,
0.15558475255966187,
-0.1912773847579956,
-0.033165764063596725,
-0.18880727887153625,
-0.3169982433319092,
0.03777057304978371,
-0.42470473051071167,
-0.020687779411673546,
0.11688881367444992,
0.1911669671535492,
0.1616135537624359,
-0.17680317163467407,
0.11681173741817474,
0.10306651145219803,
-0.11067607998847961,
-0.21660637855529785,
0.27385231852531433,
0.2781444787979126,
0.15004862844944,
0.18787512183189392,
0.13566531240940094,
0.00906585156917572,
0.19349655508995056,
0.0491354838013649,
0.5423475503921509,
-0.21356233954429626,
0.30146822333335876,
0.3107932209968567,
-0.0927606076002121,
0.006523285061120987,
-0.19775792956352234,
0.2089507281780243,
0.18555930256843567,
0.016629422083497047,
-0.2993294894695282,
-0.16785037517547607,
0.2693978548049927,
-0.3353390097618103,
-0.3381196856498718,
0.050914451479911804,
-0.03875652700662613,
-0.05625703185796738,
0.08221909403800964,
-0.055004652589559555,
0.13783308863639832,
-0.28536978363990784,
0.14536690711975098,
0.46594351530075073,
-0.21767428517341614,
0.16470788419246674,
-0.14233256876468658,
-0.6985325217247009,
-0.3042907416820526,
0.156553715467453,
0.3822278082370758,
0.6439910531044006,
-0.06999146193265915,
-0.015152979642152786,
0.18501178920269012,
-0.18843482434749603,
0.4023381471633911,
-0.48892492055892944,
-0.15867702662944794,
0.21945318579673767,
0.4156271517276764,
0.11417398601770401,
-0.1248084008693695,
-0.4630333185195923,
-0.09000051766633987,
0.31639137864112854,
0.10487199574708939,
-0.010784037411212921,
0.01177437137812376,
0.11320751160383224,
0.1722642183303833,
-0.09744567424058914,
-0.11951156705617905,
-0.4737177789211273,
-0.4600503742694855,
-0.29019108414649963,
0.02440430223941803,
0.0629187822341919,
0.35565710067749023,
0.20493760704994202,
0.25043508410453796,
-0.01931127719581127,
-0.1313570737838745,
0.027362056076526642,
0.16372232139110565,
0.146724134683609,
-0.03840187191963196,
0.011271215975284576,
-0.17450962960720062,
0.21395224332809448,
-0.1999616175889969,
0.49321794509887695,
0.12384741008281708,
-0.1025700569152832,
0.05273875594139099,
-0.4481796622276306,
0.42381665110588074,
0.16456951200962067,
-0.051215022802352905,
-0.0725795105099678,
0.06449639052152634,
0.1399889886379242,
-0.2324616014957428,
-0.0716230720281601,
0.4307660460472107,
0.08138827979564667,
-0.2889280915260315,
0.05547492206096649,
0.3026762306690216,
0.18563638627529144,
0.20760522782802582,
-0.05271729826927185,
0.16989655792713165,
-0.09226327389478683,
0.006046040914952755,
-0.03356283903121948,
0.8596197962760925,
0.13930633664131165,
0.048239998519420624,
0.08052967488765717,
-0.4887140393257141,
0.41155725717544556,
-0.07282142341136932,
0.07824009656906128,
-0.23328454792499542,
-0.26928165555000305,
-0.0748385563492775,
0.20213213562965393,
0.536865770816803,
0.017887696623802185,
-0.4103853404521942,
0.21232040226459503,
0.25946277379989624,
0.17330870032310486,
0.22731398046016693,
0.4100671708583832,
-0.41287049651145935,
-0.34614086151123047,
-0.26075562834739685,
0.14674893021583557,
-0.05092886835336685,
0.15753822028636932,
-0.0025418149307370186,
-0.18086551129817963,
0.15108805894851685,
-0.164308100938797,
-0.3796911835670471,
0.14817968010902405,
-0.5830653309822083,
-0.10590922832489014,
-0.11594989895820618,
-0.050555966794490814,
0.027599379420280457,
-0.03253478929400444,
0.4301750659942627,
0.07881494611501694,
0.14622199535369873,
0.02877701446413994,
0.5023578405380249,
-0.13479548692703247,
0.2634493410587311,
0.06491534411907196,
0.029369059950113297,
-0.16923972964286804,
-0.25366711616516113,
0.05032063275575638,
0.10352835059165955,
0.09317222237586975,
0.04574251174926758,
0.030971724539995193,
-0.16556483507156372,
-0.00999886728823185,
-0.1781851202249527,
-0.05977897346019745,
0.13391372561454773,
0.19692617654800415,
0.13731534779071808,
0.05390253663063049,
-0.16220605373382568,
0.2158534824848175,
-0.05047204717993736,
-0.20698481798171997,
-0.11498598754405975,
0.09628904610872269,
-0.08655811846256256,
-0.33876529335975647,
-0.000045571476221084595,
-0.08952022343873978,
-0.31441688537597656,
-0.1773141622543335,
-0.04986770078539848,
-0.29486632347106934,
-0.10955961048603058,
-0.24908103048801422,
0.09477505832910538,
-0.0037872791290283203,
-0.1460079550743103,
0.009965810924768448,
0.2050779163837433,
-0.01756826788187027,
0.056715015321969986,
-0.6207970380783081,
-0.2790295481681824,
0.27012231945991516,
0.11701910197734833,
-0.05110309645533562,
0.025098316371440887,
0.0435585156083107,
0.12526081502437592,
-0.21932369470596313,
-0.2847452163696289,
0.10456234216690063,
-0.048022836446762085,
0.009142016991972923,
0.5306370258331299,
-0.07971831411123276,
0.14519581198692322,
0.10643310844898224,
0.12818245589733124,
0.3685395121574402,
-0.010017266497015953,
-0.1860472559928894,
-0.07284009456634521,
0.0723789855837822,
0.07004877924919128,
-0.26264798641204834,
0.2065209448337555,
-0.14369451999664307,
0.009092917665839195,
-0.0019015828147530556,
0.10962027311325073,
-0.04206185042858124,
-0.07865181565284729,
0.20499959588050842,
-0.12442688643932343,
0.1131499856710434,
-0.019208291545510292,
0.21280686557292938,
-0.30432724952697754,
0.5440459847450256,
0.19881407916545868,
0.18852148950099945,
-0.11736829578876495,
0.17261621356010437,
0.12180183827877045,
-0.1342395544052124,
-0.3007761836051941,
0.02013990469276905,
0.19695904850959778,
-0.3434194326400757,
0.06762285530567169,
0.0042337519116699696,
0.14575429260730743,
0.41976645588874817,
-0.13850323855876923,
-0.12659454345703125,
0.579413890838623,
0.20615613460540771,
-0.13758987188339233,
0.136677086353302,
0.2641614079475403,
-0.08641720563173294,
0.002064701169729233,
0.24701887369155884,
0.2873879075050354,
0.14105533063411713,
0.2585170865058899,
-0.07540543377399445,
0.610485851764679,
-0.011017076671123505,
-0.012119181454181671,
0.19573603570461273,
0.03420218452811241,
0.13932982087135315,
-0.013901976868510246,
0.06413469463586807,
-0.03792177885770798,
0.29620325565338135,
-0.3129599690437317,
0.01425986923277378,
0.381351500749588,
0.2522053122520447,
-0.16196879744529724,
-0.14295043051242828,
0.00506814569234848,
0.06381615996360779,
-0.061372146010398865,
0.3057827651500702,
0.21153920888900757,
0.4559714198112488,
-0.14304311573505402,
-0.13311128318309784,
-0.00368347205221653,
0.22210077941417694,
-0.02447374537587166,
0.03299352154135704,
0.09958657622337341,
0.12237044423818588,
-0.5756688117980957,
0.2016315758228302,
0.029746633023023605,
-0.19719050824642181,
0.27010589838027954,
0.22819392383098602,
-0.07450582087039948,
-0.39438295364379883,
-0.19919905066490173,
0.019858015701174736,
0.18722108006477356,
-0.3332831859588623,
0.25013163685798645,
0.17008239030838013,
0.14096760749816895,
-0.020706262439489365,
-0.007199855521321297,
0.5386063456535339,
0.41171354055404663,
-0.41774266958236694,
0.06788302958011627,
-0.254116952419281,
0.0018234346061944962,
0.00177859328687191,
0.192839115858078,
0.367404967546463,
0.34360620379447937,
0.18353305757045746,
0.14757481217384338,
-0.09709044545888901,
-0.125217005610466,
0.08209584653377533,
0.06589941680431366,
0.1669122874736786,
0.2621803879737854,
-0.12371297180652618,
0.2254275381565094,
-0.4461061656475067,
-0.141382098197937,
-0.694462239742279,
-0.00780388992279768,
0.20119652152061462,
-0.18336763978004456,
0.20144513249397278,
-0.10614126920700073,
0.08253434300422668,
0.08946670591831207,
0.28431716561317444,
0.4724913537502289,
0.16242827475070953,
-0.14314180612564087,
-0.1814236342906952,
-0.7731503248214722,
0.10704673826694489,
-0.20135459303855896,
-0.30789873003959656,
-0.14619165658950806,
0.06860356777906418,
-0.17061156034469604,
0.35007309913635254,
0.06150538846850395,
0.7089387774467468,
-0.09088627994060516,
0.03477253019809723,
-0.14423586428165436,
-0.040092792361974716,
0.07910488545894623,
-0.0747573971748352,
-0.03707004711031914,
-0.33914363384246826,
0.13309310376644135,
-0.06519710272550583,
0.016150541603565216,
-0.10798291862010956,
-0.15411651134490967,
-0.35098546743392944,
0.05003637820482254,
0.24328002333641052,
0.39589330554008484,
0.6262511014938354,
-0.15792769193649292,
-0.08461731672286987,
-0.3797355592250824,
-0.08116639405488968,
-0.19521784782409668,
0.22091132402420044,
-0.05061580613255501,
-0.030929669737815857,
-0.0845705196261406,
0.16168521344661713,
-0.5174291133880615,
0.20824424922466278,
0.04109527915716171,
0.23995336890220642,
-0.045932069420814514,
0.09101947396993637,
0.26386141777038574,
0.03511001169681549,
0.05312703922390938,
0.17807209491729736,
-0.08145275712013245,
0.1501329094171524,
0.05379025638103485,
-0.3257540762424469,
0.13639873266220093,
-0.1620735377073288,
-0.24246791005134583,
0.19623883068561554,
0.28755664825439453,
0.23239770531654358,
0.0941336452960968,
-0.3354714810848236,
-0.08600772172212601,
0.07477738708257675,
-0.16682419180870056,
-0.2506379187107086,
0.30785995721817017,
-0.07068203389644623,
-0.21630354225635529,
-0.03885359689593315,
0.10735394060611725,
0.07008180022239685,
-0.24263177812099457,
0.14631454646587372,
-0.37468284368515015
] |
https://github.com/huggingface/datasets/issues/242 | UnicodeDecodeError when downloading GLUE-MNLI | On Windows Python supports Unicode almost everywhere, but one of the notable exceptions is open() where it uses the locale encoding schema. So platform independent python scripts would always set the encoding='utf-8' in calls to open explicitly.
In the meantime: since Python 3.7 Windows users can set the default encoding for everything including open() to Unicode by setting this environment variable: set PYTHONUTF8=1 (details can be found in [PEP 540](https://www.python.org/dev/peps/pep-0540/))
For me this fixed the problem described by the OP. | When I run
```python
dataset = nlp.load_dataset('glue', 'mnli')
```
I get an encoding error (could it be because I'm using Windows?) :
```python
# Lots of error log lines later...
~\Miniconda3\envs\nlp\lib\site-packages\tqdm\std.py in __iter__(self)
1128 try:
-> 1129 for obj in iterable:
1130 yield obj
~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\glue\5256cc2368cf84497abef1f1a5f66648522d5854b225162148cb8fc78a5a91cc\glue.py in _generate_examples(self, data_file, split, mrpc_files)
529
--> 530 for n, row in enumerate(reader):
531 if is_cola_non_test:
~\Miniconda3\envs\nlp\lib\csv.py in __next__(self)
110 self.fieldnames
--> 111 row = next(self.reader)
112 self.line_num = self.reader.line_num
~\Miniconda3\envs\nlp\lib\encodings\cp1252.py in decode(self, input, final)
22 def decode(self, input, final=False):
---> 23 return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 6744: character maps to <undefined>
```
Anyway this can be solved by specifying to decode in UTF when reading the csv file. I am proposing a PR if that's okay. | 80 | UnicodeDecodeError when downloading GLUE-MNLI
When I run
```python
dataset = nlp.load_dataset('glue', 'mnli')
```
I get an encoding error (could it be because I'm using Windows?) :
```python
# Lots of error log lines later...
~\Miniconda3\envs\nlp\lib\site-packages\tqdm\std.py in __iter__(self)
1128 try:
-> 1129 for obj in iterable:
1130 yield obj
~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\glue\5256cc2368cf84497abef1f1a5f66648522d5854b225162148cb8fc78a5a91cc\glue.py in _generate_examples(self, data_file, split, mrpc_files)
529
--> 530 for n, row in enumerate(reader):
531 if is_cola_non_test:
~\Miniconda3\envs\nlp\lib\csv.py in __next__(self)
110 self.fieldnames
--> 111 row = next(self.reader)
112 self.line_num = self.reader.line_num
~\Miniconda3\envs\nlp\lib\encodings\cp1252.py in decode(self, input, final)
22 def decode(self, input, final=False):
---> 23 return codecs.charmap_decode(input,self.errors,decoding_table)[0]
24
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 6744: character maps to <undefined>
```
Anyway this can be solved by specifying to decode in UTF when reading the csv file. I am proposing a PR if that's okay.
On Windows Python supports Unicode almost everywhere, but one of the notable exceptions is open() where it uses the locale encoding schema. So platform independent python scripts would always set the encoding='utf-8' in calls to open explicitly.
In the meantime: since Python 3.7 Windows users can set the default encoding for everything including open() to Unicode by setting this environment variable: set PYTHONUTF8=1 (details can be found in [PEP 540](https://www.python.org/dev/peps/pep-0540/))
For me this fixed the problem described by the OP. | [
0.06596678495407104,
0.06928083300590515,
-0.007502974942326546,
0.14659902453422546,
0.48904097080230713,
-0.13624100387096405,
-0.00577346608042717,
0.0795610174536705,
0.057453449815511703,
0.3163624405860901,
0.1549849808216095,
0.1263141632080078,
-0.06716343760490417,
-0.17417816817760468,
0.07771193236112595,
-0.2971665859222412,
0.19267717003822327,
0.2051752209663391,
-0.049280598759651184,
-0.03394550830125809,
-0.4367743730545044,
0.3971390724182129,
0.07370913028717041,
0.263049840927124,
-0.021934866905212402,
-0.08675527572631836,
-0.15293078124523163,
0.23977530002593994,
-0.3016112744808197,
-0.5756043791770935,
-0.12371095269918442,
-0.12663619220256805,
0.3628610074520111,
-0.2685571312904358,
-0.00011571257346076891,
-0.01220051571726799,
0.32005494832992554,
-0.26031869649887085,
0.1376090943813324,
0.17118234932422638,
0.0288870707154274,
-0.29480427503585815,
-0.1516178846359253,
-0.1774829626083374,
0.35088568925857544,
0.28269481658935547,
0.1608467400074005,
-0.4594714343547821,
-0.12640736997127533,
0.2855616509914398,
0.1487494707107544,
0.30860811471939087,
0.1480982005596161,
0.4098850190639496,
0.10597438365221024,
-0.3754199147224426,
-0.10380581021308899,
0.3554774820804596,
0.2898300886154175,
-0.2861050069332123,
-0.12150854617357254,
0.1885136514902115,
-0.27296990156173706,
0.08025281876325607,
-0.30738401412963867,
0.38672760128974915,
0.15437346696853638,
-0.5894978046417236,
-0.119127057492733,
0.07876430451869965,
-0.1083671972155571,
-0.2737492024898529,
-0.3448260724544525,
-0.11081439256668091,
0.16247737407684326,
-0.3434241712093353,
0.38287094235420227,
0.38131746649742126,
-0.19834117591381073,
0.37591850757598877,
0.3234003782272339,
0.027123907580971718,
0.1297440379858017,
0.178892582654953,
-0.11494217067956924,
0.30309316515922546,
-0.04841800779104233,
0.005220092833042145,
0.3293924927711487,
-0.1760677844285965,
-0.21788957715034485,
-0.09270661324262619,
-0.028194811195135117,
-0.07834864407777786,
-0.0077804215252399445,
-0.027579115703701973,
-0.17305761575698853,
0.08976700156927109,
0.06501060724258423,
0.024377265945076942,
0.13493752479553223,
0.016053862869739532,
-0.037760358303785324,
0.19033247232437134,
-0.007162321358919144,
0.15370826423168182,
-0.19606631994247437,
0.11052709817886353,
0.5007559657096863,
0.005431207828223705,
0.39201655983924866,
0.08568926155567169,
-0.09160798788070679,
-0.33368560671806335,
-0.14815324544906616,
0.3762514889240265,
0.37348777055740356,
0.04882950708270073,
-0.3270631730556488,
0.1245119720697403,
-0.09322033822536469,
0.08089467138051987,
-0.26832154393196106,
-0.018831193447113037,
-0.1305694580078125,
0.4093034565448761,
-0.18845713138580322,
0.34447622299194336,
-0.4128129780292511,
-0.30858680605888367,
0.06232010945677757,
0.265492707490921,
-0.057612720876932144,
-0.021678144112229347,
0.19536294043064117,
-0.006377119570970535,
-0.04892392456531525,
-0.06477761268615723,
-0.06683656573295593,
0.09141717851161957,
-0.16264979541301727,
-0.1058644950389862,
0.15049821138381958,
0.21321365237236023,
0.1111660748720169,
0.07662571221590042,
0.16058525443077087,
-0.7501694560050964,
-0.36767351627349854,
0.1320263296365738,
-0.11368291825056076,
-0.032739296555519104,
-0.16247957944869995,
0.041972607374191284,
-0.2905905842781067,
-0.2683295011520386,
0.04321005195379257,
0.0893632024526596,
-0.012850582599639893,
0.058380622416734695,
0.1423713117837906,
-0.06582386046648026,
-0.12564609944820404,
-0.28857070207595825,
0.19121268391609192,
0.5120861530303955,
-0.2714206576347351,
0.11977852880954742,
0.22728955745697021,
-0.28879210352897644,
0.18523214757442474,
0.35780778527259827,
0.24168843030929565,
-0.3323741853237152,
-0.1923464983701706,
0.4748016595840454,
0.24837535619735718,
-0.5571579337120056,
-0.5454274415969849,
0.42577341198921204,
-0.12350301444530487,
-0.038965869694948196,
0.1891016811132431,
-0.0144959082826972,
0.1878458857536316,
0.029192909598350525,
0.15255624055862427,
0.5387174487113953,
-0.19745498895645142,
0.1925504505634308,
-0.2940201461315155,
-0.4947427809238434,
0.31414270401000977,
0.14263160526752472,
-0.1736193150281906,
-0.08229269832372665,
0.12914669513702393,
-0.45851990580558777,
0.17232811450958252,
-0.11129456758499146,
0.27876347303390503,
0.02826743572950363,
0.33194026350975037,
-0.21119005978107452,
0.03807670995593071,
-0.09157003462314606,
-0.04154578596353531,
-0.011097762733697891,
-0.02371237613260746,
0.21214284002780914,
-0.6939571499824524,
-0.26282310485839844,
0.0737558901309967,
-0.12024093419313431,
-0.21305181086063385,
-0.05977751687169075,
0.07056226581335068,
0.13115720450878143,
0.3312765955924988,
0.3530180752277374,
-0.2560487389564514,
0.4444124102592468,
0.029110012575984,
0.0596347451210022,
-0.18609751760959625,
0.2995316684246063,
-0.0332164391875267,
-0.18522503972053528,
-0.03280166536569595,
0.46893414855003357,
0.027845073491334915,
-0.11686188727617264,
-0.013039130717515945,
0.2994942367076874,
0.0071415058337152,
0.08742831647396088,
0.09967954456806183,
0.03509253263473511,
0.44629570841789246,
-0.2842261493206024,
0.13989003002643585,
0.43770885467529297,
0.14055150747299194,
0.1681508719921112,
0.2921561002731323,
0.4354313015937805,
0.0450361892580986,
0.14077436923980713,
0.21761350333690643,
0.16773317754268646,
0.20796997845172882,
0.0885913223028183,
-0.41422581672668457,
-0.48249584436416626,
0.13219811022281647,
0.08460216224193573,
0.2097945213317871,
-0.0038141440600156784,
-0.3643806576728821,
-0.13608449697494507,
0.7756447196006775,
-0.1477792114019394,
0.16501867771148682,
0.07730230689048767,
-0.10303952544927597,
0.3432029187679291,
-0.11691257357597351,
0.21652616560459137,
0.4581325054168701,
-0.09909524023532867,
-0.06002457067370415,
0.2631979286670685,
0.08645032346248627,
-0.08633332699537277,
0.06015872582793236,
-0.0021352097392082214,
-0.20386667549610138,
0.03362641483545303,
-0.18103936314582825,
0.06029212847352028,
-0.2386871874332428,
-0.0007926039397716522,
-0.0726953074336052,
0.13444197177886963,
-0.1566106379032135,
0.018894949927926064,
-0.595806360244751,
-0.31802964210510254,
-0.2905760109424591,
-0.15697762370109558,
-0.3728330433368683,
-0.17783339321613312,
-0.08260445296764374,
-0.22051900625228882,
-0.15350818634033203,
-0.009859045967459679,
-0.38068532943725586,
-0.05833493173122406,
-0.16454634070396423,
-0.3551081717014313,
0.2879945635795593,
-0.15195035934448242,
-0.3765111565589905,
0.045863401144742966,
0.2971878945827484,
-0.07450408488512039,
0.052741166204214096,
-0.39124444127082825,
0.2198842614889145,
-0.11617214232683182,
-0.15981614589691162,
0.1045534759759903,
-0.012612570077180862,
0.13502077758312225,
0.07287473976612091,
-0.2613961100578308,
0.13423480093479156,
-0.32894861698150635,
0.26063165068626404,
-0.10184571146965027,
-0.05074547603726387,
0.05796325206756592,
0.18402250111103058,
-0.3369160592556,
-0.08881479501724243,
-0.04773356765508652,
-0.6349591612815857,
-0.2621895372867584,
0.1085827574133873,
-0.21646350622177124,
-0.02964169532060623,
-0.32150691747665405,
-0.2497011125087738,
-0.032186850905418396,
-0.08244051039218903,
-0.09888657927513123,
-0.04847795516252518,
-0.04088740423321724,
0.4804697632789612,
-0.21169279515743256,
-0.3819880485534668,
0.125390887260437,
-0.26140332221984863,
-0.09493860602378845,
-0.008432343602180481,
-0.25963467359542847,
-0.12060800939798355,
-0.41507649421691895,
0.06790013611316681,
0.08164405077695847,
0.2113170623779297,
0.18883655965328217,
-0.06624669581651688,
0.18891002237796783,
0.028525806963443756,
-0.21332912147045135,
-0.2013964056968689,
0.3152661919593811,
0.12870459258556366,
0.19945955276489258,
0.16979023814201355,
0.22298330068588257,
-0.13162118196487427,
0.17205365002155304,
0.15817977488040924,
0.5512160062789917,
-0.20447802543640137,
0.3849101960659027,
0.2994396686553955,
0.079423688352108,
0.03524438664317131,
-0.16225749254226685,
0.12206819653511047,
0.2517000436782837,
0.08815903216600418,
-0.30628731846809387,
-0.16598418354988098,
0.20798373222351074,
-0.3473236858844757,
-0.5740137696266174,
0.1600896418094635,
-0.11924892663955688,
0.03590214252471924,
-0.05198727548122406,
0.041448310017585754,
0.11850753426551819,
-0.16472825407981873,
0.15011237561702728,
0.46509236097335815,
-0.0852176770567894,
0.2689606249332428,
-0.02883008122444153,
-0.5663641095161438,
-0.32294246554374695,
0.011827521026134491,
0.36668986082077026,
0.7510473132133484,
-0.0367797315120697,
-0.05803626775741577,
0.13670125603675842,
-0.24187935888767242,
0.26905542612075806,
-0.4555701017379761,
-0.17157286405563354,
0.07084441184997559,
0.33211612701416016,
0.04978250712156296,
-0.08531777560710907,
-0.3413788676261902,
-0.09957505762577057,
0.09290187060832977,
0.017954781651496887,
0.0016854703426361084,
-0.0048172250390052795,
0.04947211593389511,
0.15624207258224487,
-0.04991426318883896,
0.0009701773524284363,
-0.4999691843986511,
-0.5834292769432068,
-0.27355489134788513,
0.035647839307785034,
0.17987005412578583,
0.2000613808631897,
0.2440769076347351,
0.31135767698287964,
-0.0907900482416153,
-0.131088986992836,
0.1207936629652977,
0.13930781185626984,
0.08242515474557877,
-0.11104188114404678,
-0.07695838063955307,
-0.2178649604320526,
0.09862135350704193,
-0.13958309590816498,
0.5598431825637817,
0.11881271004676819,
-0.3939177095890045,
0.08080410957336426,
-0.3913770616054535,
0.4750380218029022,
0.22057509422302246,
-0.048224590718746185,
-0.1526372730731964,
0.029597656801342964,
0.054686129093170166,
-0.32512784004211426,
-0.10332752764225006,
0.37579038739204407,
0.10711844265460968,
-0.31140726804733276,
-0.04233348369598389,
0.2519547939300537,
0.1587754786014557,
0.1981961876153946,
0.0016103871166706085,
0.26983293890953064,
-0.08528050780296326,
0.12100361287593842,
0.10674676299095154,
0.7687665224075317,
0.11353804916143417,
0.09853687137365341,
0.14861086010932922,
-0.4876006245613098,
0.3208131492137909,
-0.008652132004499435,
0.08975830674171448,
-0.17351369559764862,
-0.25280317664146423,
-0.11899687349796295,
0.2338200807571411,
0.5631158351898193,
-0.07957416772842407,
-0.34196290373802185,
0.19240790605545044,
0.3476170301437378,
0.10653164237737656,
0.32652971148490906,
0.394489049911499,
-0.5686749815940857,
-0.3911682665348053,
-0.3675345480442047,
0.037581659853458405,
0.02537965029478073,
0.12020593881607056,
0.04900072142481804,
-0.19875018298625946,
0.15205204486846924,
-0.21517719328403473,
-0.35688912868499756,
0.02659890428185463,
-0.5614286065101624,
-0.06911081075668335,
-0.10167743265628815,
-0.13719157874584198,
0.08282013237476349,
0.12399362027645111,
0.5200178027153015,
0.04276570305228233,
0.1907687783241272,
-0.03253265842795372,
0.4909977614879608,
-0.08638706058263779,
0.2842968702316284,
-0.005327676422894001,
-0.020836705341935158,
-0.09111489355564117,
-0.24476853013038635,
0.03048473596572876,
0.12656906247138977,
0.015104241669178009,
0.04853715002536774,
0.02133467048406601,
-0.13587155938148499,
0.07949910312891006,
-0.16741466522216797,
-0.21601837873458862,
0.07476331293582916,
0.3042265772819519,
0.05336643382906914,
-0.031025312840938568,
-0.0037365639582276344,
0.19651347398757935,
-0.17727765440940857,
-0.2435430884361267,
-0.05394219979643822,
-0.05637729912996292,
-0.2146795392036438,
-0.37885573506355286,
-0.06939656287431717,
-0.1819034367799759,
-0.266661673784256,
-0.056993160396814346,
0.04049275815486908,
-0.23939251899719238,
-0.008552562445402145,
-0.28232598304748535,
0.037004243582487106,
-0.08032378554344177,
-0.13168978691101074,
-0.04846375063061714,
0.1440737247467041,
-0.03176986426115036,
0.0722288191318512,
-0.6231848001480103,
-0.24283818900585175,
0.30597615242004395,
0.10474032908678055,
-0.144935742020607,
0.11050806194543839,
0.13055898249149323,
0.012692088261246681,
-0.3582855761051178,
-0.1965314745903015,
0.13186727464199066,
0.06097450852394104,
-0.0028751082718372345,
0.49723875522613525,
-0.0034724287688732147,
0.09573064744472504,
0.12361304461956024,
0.004277676343917847,
0.37769246101379395,
0.01189219206571579,
-0.05825209617614746,
-0.18051698803901672,
0.12877362966537476,
0.08751767873764038,
-0.2672633230686188,
0.3187817633152008,
-0.13040600717067719,
0.004707040265202522,
-0.10049501806497574,
0.16127797961235046,
0.17796117067337036,
-0.2146267145872116,
0.28108295798301697,
-0.12747210264205933,
0.2242746353149414,
-0.003868706524372101,
0.12453269213438034,
-0.1865689754486084,
0.6320716142654419,
0.22639404237270355,
0.2795947790145874,
-0.10153532028198242,
0.24691051244735718,
0.23190703988075256,
-0.024960972368717194,
-0.2458367496728897,
0.09196459501981735,
0.12800249457359314,
-0.2220270186662674,
0.10555952787399292,
-0.05792515352368355,
0.12618233263492584,
0.3847450017929077,
-0.11868765950202942,
-0.12199664115905762,
0.5793872475624084,
0.0930616483092308,
-0.05751021206378937,
0.12113896757364273,
0.2755745053291321,
-0.06880133599042892,
0.026489470154047012,
0.3882039487361908,
0.40897783637046814,
0.17655080556869507,
0.24062135815620422,
-0.12539073824882507,
0.5952467918395996,
0.0011199787259101868,
0.11837121844291687,
0.3623170554637909,
-0.04728654399514198,
0.18799902498722076,
-0.07083567976951599,
0.01425199955701828,
0.06846651434898376,
0.2516631782054901,
-0.3138510286808014,
-0.0044330209493637085,
0.38505056500434875,
0.25708261132240295,
-0.2002011239528656,
-0.2042308896780014,
0.011568877846002579,
-0.11482009291648865,
-0.020235933363437653,
0.31926393508911133,
0.2976198196411133,
0.3538492023944855,
-0.2145281881093979,
-0.025005582720041275,
-0.0047702062875032425,
0.24877749383449554,
0.045797403901815414,
-0.09789979457855225,
0.17635604739189148,
0.10711515694856644,
-0.5134840607643127,
0.28417935967445374,
-0.046039219945669174,
-0.17741335928440094,
0.35431069135665894,
0.25237852334976196,
0.08536259829998016,
-0.24630720913410187,
-0.14915913343429565,
-0.04642681032419205,
0.3513023853302002,
-0.2995990514755249,
0.19494061172008514,
0.2979384660720825,
0.11315647512674332,
0.027372941374778748,
-0.11218535155057907,
0.5564962029457092,
0.35548892617225647,
-0.4729909896850586,
0.11468788981437683,
-0.3460693657398224,
0.0918729230761528,
0.00002697668969631195,
0.11664117127656937,
0.32840344309806824,
0.4090205132961273,
0.18224182724952698,
0.07900328934192657,
0.047870486974716187,
-0.13975246250629425,
0.07072621583938599,
0.04420933872461319,
0.1039818823337555,
0.3787469267845154,
0.014495136216282845,
0.31789153814315796,
-0.2724897265434265,
-0.10723704844713211,
-0.49204736948013306,
-0.021880917251110077,
0.1937074214220047,
-0.0931999683380127,
0.1854049563407898,
0.01611650362610817,
0.018090583384037018,
0.2927778363227844,
0.12423965334892273,
0.3251207172870636,
0.19012364745140076,
0.0053433747962117195,
-0.11244712024927139,
-0.735548734664917,
0.1676693558692932,
-0.05779979005455971,
-0.4195205569267273,
-0.11059010028839111,
-0.09163953363895416,
-0.09296397119760513,
0.4235078692436218,
-0.18732236325740814,
0.7202272415161133,
0.014636221341788769,
0.06413890421390533,
-0.04721029847860336,
-0.14102277159690857,
0.14666667580604553,
-0.06345425546169281,
-0.07974095642566681,
-0.37954607605934143,
0.035613417625427246,
-0.05264073237776756,
-0.04315668344497681,
-0.14622098207473755,
-0.08945319056510925,
-0.4586208462715149,
-0.008465021848678589,
0.1716294288635254,
0.5348657965660095,
0.6343560218811035,
-0.26482659578323364,
-0.05159659683704376,
-0.34335047006607056,
-0.02175150252878666,
-0.3386199474334717,
0.2185119390487671,
-0.10613571107387543,
0.0010004714131355286,
-0.2635776996612549,
-0.01798740029335022,
-0.4536592960357666,
0.24372588098049164,
0.07081810384988785,
0.27212560176849365,
0.04455266892910004,
0.15151859819889069,
0.22063994407653809,
-0.053691621869802475,
0.026381995528936386,
0.32072722911834717,
-0.06571503728628159,
0.15666072070598602,
0.15683771669864655,
-0.3324783146381378,
0.13849565386772156,
-0.20538824796676636,
-0.20749692618846893,
0.14610661566257477,
0.21877282857894897,
0.16763922572135925,
0.12322486937046051,
-0.3770209550857544,
0.03379753977060318,
-0.018949974328279495,
-0.1387714147567749,
-0.31868380308151245,
0.27753594517707825,
-0.09343668818473816,
-0.30464446544647217,
-0.14729546010494232,
0.22299417853355408,
0.04770517349243164,
-0.2741551101207733,
0.11334139108657837,
-0.41068631410598755
] |
https://github.com/huggingface/datasets/issues/240 | Deterministic dataset loading | I think using `sorted(glob.glob())` would actually solve this problem. Can you think of other reasons why dataset loading might not be deterministic? @mariamabarham @yjernite @lhoestq @thomwolf .
I can do a sweep through the dataset scripts and fix the glob.glob() if you guys are ok with it | When calling:
```python
import nlp
dataset = nlp.load_dataset("trivia_qa", split="validation[:1%]")
```
the resulting dataset is not deterministic over different google colabs.
After talking to @thomwolf, I suspect the reason to be the use of `glob.glob` in line:
https://github.com/huggingface/nlp/blob/2e0a8639a79b1abc848cff5c669094d40bba0f63/datasets/trivia_qa/trivia_qa.py#L180
which seems to return an ordering of files that depends on the filesystem:
https://stackoverflow.com/questions/6773584/how-is-pythons-glob-glob-ordered
I think we should go through all the dataset scripts and make sure to have deterministic behavior.
A simple solution for `glob.glob()` would be to just replace it with `sorted(glob.glob())` to have everything sorted by name.
What do you think @lhoestq? | 47 | Deterministic dataset loading
When calling:
```python
import nlp
dataset = nlp.load_dataset("trivia_qa", split="validation[:1%]")
```
the resulting dataset is not deterministic over different google colabs.
After talking to @thomwolf, I suspect the reason to be the use of `glob.glob` in line:
https://github.com/huggingface/nlp/blob/2e0a8639a79b1abc848cff5c669094d40bba0f63/datasets/trivia_qa/trivia_qa.py#L180
which seems to return an ordering of files that depends on the filesystem:
https://stackoverflow.com/questions/6773584/how-is-pythons-glob-glob-ordered
I think we should go through all the dataset scripts and make sure to have deterministic behavior.
A simple solution for `glob.glob()` would be to just replace it with `sorted(glob.glob())` to have everything sorted by name.
What do you think @lhoestq?
I think using `sorted(glob.glob())` would actually solve this problem. Can you think of other reasons why dataset loading might not be deterministic? @mariamabarham @yjernite @lhoestq @thomwolf .
I can do a sweep through the dataset scripts and fix the glob.glob() if you guys are ok with it | [
0.1278991997241974,
0.06803499162197113,
0.018162839114665985,
0.16125544905662537,
0.1494213193655014,
-0.09384393692016602,
0.2877912223339081,
0.07379558682441711,
0.20830631256103516,
-0.05746331810951233,
0.10429307073354721,
0.37041717767715454,
-0.15249007940292358,
0.11149048060178757,
-0.012711740098893642,
-0.04838833957910538,
-0.026026852428913116,
0.1764346957206726,
-0.058485522866249084,
-0.18720068037509918,
-0.30695292353630066,
0.07847321033477783,
-0.4576539993286133,
-0.3690683841705322,
-0.2645186185836792,
0.08991890400648117,
-0.09915200620889664,
0.13413923978805542,
-0.08303803205490112,
-0.4587271511554718,
0.15707792341709137,
0.5054249167442322,
0.16285738348960876,
0.18232238292694092,
-0.00011504536814754829,
-0.26569610834121704,
0.40348660945892334,
-0.10312610864639282,
-0.443833589553833,
-0.3913377523422241,
-0.3945770859718323,
-0.030480075627565384,
0.13799546658992767,
-0.017715096473693848,
-0.27747565507888794,
0.026426244527101517,
0.3882419764995575,
-0.2673338055610657,
0.26693764328956604,
0.041842129081487656,
0.17288899421691895,
-0.12490261346101761,
0.003079228103160858,
0.13873763382434845,
0.010472193360328674,
0.06959212571382523,
-0.022829566150903702,
0.4524674415588379,
0.1382269412279129,
-0.273826539516449,
-0.06894583255052567,
0.10721540451049805,
0.0312565416097641,
0.10483033955097198,
0.48225051164627075,
0.12794922292232513,
-0.2176283597946167,
-0.40051329135894775,
-0.1074989065527916,
0.24439376592636108,
0.5826345086097717,
-0.17216536402702332,
-0.2514921724796295,
-0.3525477349758148,
0.264548122882843,
-0.10003060102462769,
0.12447132915258408,
0.38050803542137146,
-0.13450896739959717,
-0.09593203663825989,
-0.002238238463178277,
0.16711097955703735,
-0.13715223968029022,
0.07108698785305023,
0.08564569056034088,
0.5879834890365601,
-0.013878806494176388,
0.025663860142230988,
0.07930347323417664,
0.2684372663497925,
0.20621941983699799,
-0.2505572736263275,
-0.06963121891021729,
0.14748333394527435,
-0.31698423624038696,
-0.11941836774349213,
0.1632874310016632,
0.5273433923721313,
0.09311705827713013,
0.18719138205051422,
0.2267666608095169,
0.06747996062040329,
-0.15240803360939026,
0.00896192342042923,
0.3967239260673523,
0.5014604926109314,
0.01295306533575058,
0.08890367299318314,
0.3393019437789917,
0.010244695469737053,
-0.1401088535785675,
0.2734244465827942,
-0.06045643612742424,
-0.3183385133743286,
0.15365257859230042,
0.09681877493858337,
0.14907005429267883,
-0.2396647036075592,
-0.4463086426258087,
-0.2819095849990845,
-0.2935086488723755,
-0.04257538169622421,
0.025523651391267776,
0.2448834478855133,
-0.3041348159313202,
0.13732802867889404,
-0.20991045236587524,
0.1781616061925888,
-0.11226455122232437,
-0.06672568619251251,
-0.04424721747636795,
-0.11899064481258392,
-0.36724647879600525,
0.15537305176258087,
0.1779651790857315,
0.07100251317024231,
0.15430819988250732,
0.26296472549438477,
-0.2230551391839981,
-0.09332229942083359,
0.03187127411365509,
-0.3338702917098999,
0.0340089350938797,
-0.012516777962446213,
0.10989236831665039,
-0.08348629623651505,
-0.21222420036792755,
-0.09923741966485977,
-0.36352404952049255,
0.1093335971236229,
-0.2231626808643341,
-0.10212498903274536,
-0.11641742289066315,
0.1394500732421875,
-0.32032185792922974,
-0.14174781739711761,
-0.4392813742160797,
0.34631192684173584,
0.06612776219844818,
-0.08564223349094391,
-0.1390949785709381,
-0.2519543170928955,
-0.30007585883140564,
-0.3598109781742096,
-0.14375026524066925,
0.5643339157104492,
-0.33395642042160034,
0.08831636607646942,
-0.07750749588012695,
0.2793801426887512,
0.3261715769767761,
0.3118188977241516,
-0.04331188648939133,
0.2612886130809784,
-0.2711886167526245,
-0.03484979271888733,
0.09159316122531891,
-0.07655750215053558,
-0.14798705279827118,
0.15606918931007385,
-0.20977085828781128,
0.36434972286224365,
-0.005924969911575317,
0.2887926697731018,
0.026955867186188698,
-0.2857646942138672,
0.2122260332107544,
0.5817524194717407,
0.11252421885728836,
0.14554959535598755,
-0.2228957563638687,
-0.11607053130865097,
0.16065043210983276,
0.13416095077991486,
-0.15292561054229736,
0.2557581067085266,
-0.07974985986948013,
-0.10227400809526443,
0.2364652156829834,
0.05878102406859398,
-0.37616556882858276,
0.06547138094902039,
0.4298805296421051,
0.05662746727466583,
-0.005900806747376919,
0.09191431105136871,
-0.8025338649749756,
0.26533809304237366,
-0.1356772482395172,
0.21970506012439728,
-0.10070811212062836,
-0.17107795178890228,
-0.05981457978487015,
-0.19293107092380524,
-0.3671397268772125,
0.04322598874568939,
0.10956640541553497,
0.38914284110069275,
0.2721542418003082,
0.26493051648139954,
0.14290015399456024,
0.5052409768104553,
0.022642938420176506,
-0.13037875294685364,
-0.4089699983596802,
0.4076072573661804,
-0.058000631630420685,
-0.13949596881866455,
0.300955206155777,
0.2322884202003479,
0.01063011959195137,
-0.2568785846233368,
-0.10995330661535263,
0.34786975383758545,
0.19225512444972992,
0.1490984857082367,
0.14226876199245453,
-0.006386160850524902,
0.07905744761228561,
0.06358937919139862,
0.22845299541950226,
0.23038306832313538,
-0.030649427324533463,
-0.14227724075317383,
-0.023764289915561676,
0.4832131862640381,
-0.1408337503671646,
0.2432554066181183,
0.10688142478466034,
-0.09188219904899597,
0.05768489092588425,
0.056152377277612686,
-0.009858401492238045,
-0.1848980188369751,
0.2872171700000763,
0.2241627275943756,
0.39847007393836975,
0.4891127943992615,
-0.6162040829658508,
0.26853421330451965,
0.6741495132446289,
0.11728617548942566,
0.05457074195146561,
0.04224648326635361,
0.12816062569618225,
-0.2923392653465271,
0.24354302883148193,
0.31094151735305786,
0.5828958749771118,
0.17280800640583038,
-0.12159444391727448,
-0.048712946474552155,
-0.1323099583387375,
-0.25663256645202637,
0.008225522935390472,
-0.04970496892929077,
0.2310306280851364,
0.06837011873722076,
0.32049843668937683,
0.2718554139137268,
-0.2242337167263031,
-0.11448077857494354,
-0.1183805912733078,
0.035549066960811615,
-0.12837596237659454,
0.17326338589191437,
-0.2431490123271942,
-0.3185339868068695,
-0.3550514578819275,
-0.09981817752122879,
-0.3305409550666809,
-0.2406737357378006,
0.0725950077176094,
0.21840502321720123,
0.057143229991197586,
-0.12663927674293518,
0.18628767132759094,
0.29842323064804077,
-0.06907561421394348,
-0.4595802426338196,
-0.18096818029880524,
-0.04505274444818497,
-0.3760223686695099,
-0.03217364102602005,
0.4337273836135864,
0.25273773074150085,
0.4821341931819916,
-0.13459232449531555,
-0.20568084716796875,
0.1416742354631424,
-0.29743972420692444,
-0.13052579760551453,
-0.30355602502822876,
0.3335776925086975,
-0.08232113718986511,
-0.09865359961986542,
-0.024281704798340797,
-0.0864899531006813,
0.01195550337433815,
-0.009167433716356754,
-0.03246250003576279,
0.009523488581180573,
0.06952459365129471,
0.0021097897551953793,
-0.04886693134903908,
-0.3414857089519501,
-0.2831539809703827,
-0.14405950903892517,
0.0879116952419281,
0.27363353967666626,
0.13327789306640625,
0.30458441376686096,
-0.0792749747633934,
-0.2478587031364441,
0.13714909553527832,
0.04496104270219803,
-0.08069678395986557,
-0.08782364428043365,
0.3428192436695099,
-0.16083501279354095,
-0.23617731034755707,
-0.3503187596797943,
-0.11388873308897018,
-0.07062043249607086,
0.10050701349973679,
-0.33239930868148804,
-0.28483888506889343,
-0.3624151349067688,
0.010044865310192108,
-0.0757019892334938,
-0.286548912525177,
0.36449745297431946,
0.0775027945637703,
0.06958351284265518,
0.18889540433883667,
-0.0041415076702833176,
0.19653278589248657,
0.2920996844768524,
0.377250611782074,
0.18176400661468506,
0.018389582633972168,
-0.03392243757843971,
0.4845994710922241,
-0.01261977106332779,
-0.4145551025867462,
0.20607198774814606,
0.15878671407699585,
0.3422960042953491,
-0.4762466251850128,
-0.06830155104398727,
0.23204493522644043,
0.19107139110565186,
-0.1054776981472969,
0.5191328525543213,
-0.04053189605474472,
-0.044740140438079834,
-0.11589961498975754,
0.3423371911048889,
-0.20251694321632385,
-0.22993025183677673,
0.03644796833395958,
-0.2357178032398224,
-0.22543004155158997,
0.10374967753887177,
0.09211469441652298,
0.0534583143889904,
-0.36301514506340027,
-0.2038317769765854,
0.14841414988040924,
0.18672281503677368,
0.06844092905521393,
0.21179978549480438,
0.04994436725974083,
-0.5956824421882629,
0.10554412007331848,
0.013453634455800056,
0.053820282220840454,
0.025021139532327652,
-0.07656805962324142,
0.2728618085384369,
-0.02414516918361187,
0.24141839146614075,
-0.024873508140444756,
0.21684536337852478,
-0.005712020210921764,
0.08499646186828613,
0.08628149330615997,
-0.3125588893890381,
-0.2967255413532257,
0.08636808395385742,
0.1897641271352768,
0.20330005884170532,
-0.448333740234375,
-0.11497803032398224,
0.025938140228390694,
0.14939254522323608,
0.007736269384622574,
-0.5178685784339905,
-0.5376967191696167,
0.017501529306173325,
0.1657566875219345,
-0.18614500761032104,
-0.036014147102832794,
0.13549084961414337,
-0.5030941963195801,
-0.17360179126262665,
-0.017603283748030663,
-0.21947351098060608,
0.217848002910614,
0.23942448198795319,
0.21161016821861267,
0.06995431333780289,
0.06522911787033081,
0.08449898660182953,
0.16721561551094055,
0.2078922539949417,
0.34943485260009766,
-0.0006084665656089783,
-0.22741568088531494,
-0.19796183705329895,
-0.11079712212085724,
0.017691366374492645,
0.2727665305137634,
-0.09006158262491226,
-0.21789848804473877,
-0.6402571201324463,
0.05756426602602005,
-0.24213296175003052,
0.20267353951931,
0.21560658514499664,
-0.1161159947514534,
-0.511673092842102,
-0.43022090196609497,
0.5949905514717102,
0.12571081519126892,
-0.27791011333465576,
0.45548367500305176,
-0.040119677782058716,
-0.4783615469932556,
0.483043909072876,
0.2197096049785614,
0.7067086696624756,
-0.29305803775787354,
0.04725102335214615,
0.2937937378883362,
0.09226952493190765,
0.5350893139839172,
0.1695132851600647,
0.3881170153617859,
-0.5430061221122742,
-0.25236454606056213,
0.02065410651266575,
-0.0875585600733757,
-0.07993306964635849,
0.3004676401615143,
-0.4050024151802063,
0.5030625462532043,
-0.025599338114261627,
0.15385934710502625,
0.042167216539382935,
0.5493945479393005,
-0.09575586020946503,
-0.05772882327437401,
-0.3514424264431,
0.06979520618915558,
-0.1942264586687088,
0.4118380546569824,
-0.205339252948761,
-0.15898001194000244,
0.0530070923268795,
0.10066001117229462,
-0.11760983616113663,
0.3257848918437958,
-0.3543224632740021,
-0.07403644174337387,
-0.07025714218616486,
-0.21413542330265045,
0.10646271705627441,
0.4508431851863861,
0.07952563464641571,
0.23600198328495026,
-0.14523981511592865,
0.05265498533844948,
0.08450502902269363,
0.11271239072084427,
0.1070467084646225,
-0.2086249142885208,
0.37680307030677795,
0.203364759683609,
0.007198505103588104,
-0.3862643837928772,
0.12449008226394653,
-0.35958898067474365,
-0.45908454060554504,
0.12551704049110413,
-0.17708060145378113,
0.294201135635376,
-0.24121233820915222,
0.1894848495721817,
0.028681758791208267,
0.0004609823226928711,
0.12556737661361694,
0.020513866096735,
0.18144769966602325,
0.3807770013809204,
-0.020260300487279892,
-0.4196605384349823,
-0.03345177695155144,
0.16621990501880646,
0.00079326331615448,
0.25143688917160034,
0.36384889483451843,
-0.04069913178682327,
-0.03578142821788788,
-0.24256539344787598,
-0.21627941727638245,
-0.43631359934806824,
-0.1138792634010315,
0.294344425201416,
0.09209758788347244,
0.1739570051431656,
0.11550775915384293,
0.2473018765449524,
0.05702570825815201,
0.05258053541183472,
0.0801672637462616,
-0.4885745346546173,
0.1931038796901703,
-0.02877911925315857,
-0.13976694643497467,
0.13698746263980865,
-0.07470478117465973,
0.23657870292663574,
0.06570780277252197,
0.0516684353351593,
-0.2957158088684082,
-0.16755720973014832,
-0.11781155318021774,
-0.02581574022769928,
-0.16185705363750458,
-0.12591269612312317,
0.041353970766067505,
0.0827147364616394,
0.0751279965043068,
-0.0821874588727951,
-0.03532487899065018,
-0.1888909935951233,
0.10417084395885468,
0.12739910185337067,
0.07882911711931229,
0.18925951421260834,
-0.13165226578712463,
-0.45766693353652954,
-0.14486989378929138,
-0.3531973361968994,
0.11292357742786407,
0.04598081856966019,
0.07414084672927856,
0.09926048666238785,
0.2913084030151367,
0.3127305209636688,
0.18480294942855835,
0.2687440812587738,
-0.4418785274028778,
-0.009345285594463348,
0.1626240760087967,
0.12643630802631378,
0.06363613903522491,
0.1682937890291214,
-0.2337186634540558,
-0.04215370863676071,
0.05803780257701874,
0.2631935477256775,
-0.051210857927799225,
-0.19489489495754242,
0.002890445291996002,
-0.13890473544597626,
0.1837911456823349,
0.6173474788665771,
0.015209460631012917,
-0.5521918535232544,
0.15069296956062317,
0.1556539684534073,
-0.244145005941391,
0.2116539180278778,
-0.054729606956243515,
0.437653124332428,
-0.010483279824256897,
0.2724592387676239,
0.28757214546203613,
0.17696845531463623,
-0.14320218563079834,
-0.017197711393237114,
0.3120471239089966,
0.05534761771559715,
0.3701549172401428,
0.07855382561683655,
0.12383575737476349,
0.03755802661180496,
0.15840372443199158,
-0.10392643511295319,
-0.16509467363357544,
0.21372076869010925,
-0.0163128599524498,
0.31387513875961304,
-0.17961594462394714,
-0.09924575686454773,
0.13611051440238953,
-0.15025854110717773,
-0.03854949399828911,
0.8459669351577759,
-0.016134820878505707,
0.1608429104089737,
0.32277625799179077,
0.38654401898384094,
-0.38525015115737915,
-0.12796880304813385,
-0.44797971844673157,
-0.12925706803798676,
-0.04151716083288193,
-0.06600788235664368,
-0.04349245876073837,
0.0215134397149086,
-0.18416112661361694,
0.14295266568660736,
-0.1311578005552292,
-0.11422790586948395,
-0.02744629979133606,
0.1246718019247055,
-0.16555200517177582,
-0.5515331029891968,
0.4079732596874237,
-0.03897829353809357,
0.37587931752204895,
-0.09090869873762131,
0.2264774590730667,
-0.21930350363254547,
0.09741996973752975,
0.11956740915775299,
0.0858764499425888,
0.17305494844913483,
0.7899258136749268,
-0.36346083879470825,
-0.21632656455039978,
-0.16526375710964203,
0.08567418158054352,
-0.08641517162322998,
0.27286577224731445,
-0.015123873949050903,
-0.13412299752235413,
0.4716491401195526,
0.07519573718309402,
-0.07717916369438171,
0.27714502811431885,
0.38304245471954346,
0.08131334185600281,
-0.06716277450323105,
0.4809933006763458,
0.05377287417650223,
0.023943014442920685,
-0.04305838793516159,
0.2462712526321411,
-0.35545116662979126,
-0.15717777609825134,
-0.07620212435722351,
0.018897289410233498,
-0.15880584716796875,
-0.2214760035276413,
0.0629831999540329,
-0.09467104077339172,
0.457496702671051,
0.29138854146003723,
0.23966041207313538,
-0.3542177975177765,
-0.23833094537258148,
-0.6219890117645264,
0.17198576033115387,
0.06919543445110321,
-0.023501716554164886,
-0.23157329857349396,
0.3624776303768158,
-0.38143375515937805,
-0.00872790813446045,
-0.42019492387771606,
0.35392314195632935,
-0.0965956524014473,
0.03811335191130638,
-0.5740285515785217,
0.003892764449119568,
-0.512183427810669,
-0.2196490615606308,
-0.08177913725376129,
-0.41475239396095276,
-0.053451504558324814,
-0.3010077178478241,
-0.06599951535463333,
-0.04116453975439072,
0.30282026529312134,
0.08586901426315308,
0.427473783493042,
0.30337685346603394,
0.10916127264499664,
0.35284143686294556,
0.05523791164159775,
-0.07557862251996994,
-0.3462197780609131,
-0.09922727197408676,
-0.36386215686798096,
0.25363990664482117,
0.10998053848743439,
0.13322848081588745,
0.0013368921354413033,
0.33801916241645813,
-0.18647165596485138,
0.44350695610046387,
0.025188259780406952,
0.19686445593833923,
-0.3721698820590973,
-0.20783191919326782,
-0.1490298956632614,
0.06542244553565979,
-0.11958233267068863,
0.10910806804895401,
0.05821608752012253,
0.04859647899866104,
-0.2353588491678238,
-0.1628764420747757,
0.4360438585281372,
-0.14769819378852844,
-0.2143806517124176,
-0.06880637258291245,
0.27429819107055664,
0.12841972708702087,
-0.2526896595954895,
-0.4334494173526764,
0.060967110097408295,
0.2695489823818207,
-0.00599394366145134,
0.14710287749767303,
0.39410218596458435,
-0.006194405257701874,
0.14050647616386414,
-0.19483940303325653,
0.049696184694767,
-0.13015398383140564,
-0.23978587985038757,
-0.0945940911769867,
-0.22265630960464478
] |
https://github.com/huggingface/datasets/issues/240 | Deterministic dataset loading | I'm pretty sure it would solve the problem too.
The only other dataset that is not deterministic right now is `blog_authorship_corpus` (see #215) but this is a problem related to string encodings. | When calling:
```python
import nlp
dataset = nlp.load_dataset("trivia_qa", split="validation[:1%]")
```
the resulting dataset is not deterministic over different google colabs.
After talking to @thomwolf, I suspect the reason to be the use of `glob.glob` in line:
https://github.com/huggingface/nlp/blob/2e0a8639a79b1abc848cff5c669094d40bba0f63/datasets/trivia_qa/trivia_qa.py#L180
which seems to return an ordering of files that depends on the filesystem:
https://stackoverflow.com/questions/6773584/how-is-pythons-glob-glob-ordered
I think we should go through all the dataset scripts and make sure to have deterministic behavior.
A simple solution for `glob.glob()` would be to just replace it with `sorted(glob.glob())` to have everything sorted by name.
What do you think @lhoestq? | 32 | Deterministic dataset loading
When calling:
```python
import nlp
dataset = nlp.load_dataset("trivia_qa", split="validation[:1%]")
```
the resulting dataset is not deterministic over different google colabs.
After talking to @thomwolf, I suspect the reason to be the use of `glob.glob` in line:
https://github.com/huggingface/nlp/blob/2e0a8639a79b1abc848cff5c669094d40bba0f63/datasets/trivia_qa/trivia_qa.py#L180
which seems to return an ordering of files that depends on the filesystem:
https://stackoverflow.com/questions/6773584/how-is-pythons-glob-glob-ordered
I think we should go through all the dataset scripts and make sure to have deterministic behavior.
A simple solution for `glob.glob()` would be to just replace it with `sorted(glob.glob())` to have everything sorted by name.
What do you think @lhoestq?
I'm pretty sure it would solve the problem too.
The only other dataset that is not deterministic right now is `blog_authorship_corpus` (see #215) but this is a problem related to string encodings. | [
0.1137947291135788,
0.17885470390319824,
0.018952418118715286,
0.169595867395401,
0.14818476140499115,
-0.06933697313070297,
0.21049897372722626,
0.11594600975513458,
0.166396364569664,
0.0036025196313858032,
0.1294666975736618,
0.3810076117515564,
-0.16160733997821808,
0.10549790412187576,
-0.04211561009287834,
-0.0011641904711723328,
-0.01100555807352066,
0.18283584713935852,
0.023403670638799667,
-0.21691949665546417,
-0.30327436327934265,
0.0948169082403183,
-0.4922882318496704,
-0.4265713095664978,
-0.2638104259967804,
0.050531886518001556,
-0.049449216574430466,
0.0728171244263649,
-0.0821797251701355,
-0.42664381861686707,
0.08840402215719223,
0.5214293003082275,
0.12974411249160767,
0.2086423635482788,
-0.00011583462764974684,
-0.278081476688385,
0.34298092126846313,
-0.1384103000164032,
-0.4034920632839203,
-0.4584882855415344,
-0.42352643609046936,
0.0029786499217152596,
0.0892849937081337,
-0.017119675874710083,
-0.2904813587665558,
0.11056223511695862,
0.4717692732810974,
-0.265177458524704,
0.2556127905845642,
0.16044394671916962,
0.17069758474826813,
-0.13255856931209564,
-0.006910949945449829,
0.16139286756515503,
0.00845266878604889,
0.11360668390989304,
-0.07889172434806824,
0.3657374083995819,
0.05994890630245209,
-0.2372901886701584,
-0.10263185948133469,
0.12624622881412506,
-0.012331338599324226,
0.08537726104259491,
0.4108416438102722,
0.12941840291023254,
-0.2025602161884308,
-0.419025182723999,
-0.048245422542095184,
0.28519850969314575,
0.5857834219932556,
-0.1489487886428833,
-0.28842973709106445,
-0.31779155135154724,
0.2706149220466614,
-0.06862054765224457,
0.16447359323501587,
0.4762814939022064,
-0.18378186225891113,
-0.07727235555648804,
0.009502601809799671,
0.2165173590183258,
-0.1672360897064209,
0.12563270330429077,
0.05509448051452637,
0.5633864402770996,
0.02056783065199852,
-0.046430230140686035,
0.04032110050320625,
0.19767452776432037,
0.2665310502052307,
-0.2073192149400711,
-0.014917105436325073,
0.10456600785255432,
-0.29462218284606934,
-0.13310903310775757,
0.1327405720949173,
0.4168833792209625,
0.1423322558403015,
0.18876878917217255,
0.18841803073883057,
0.12478353828191757,
-0.14091569185256958,
0.027752647176384926,
0.36606377363204956,
0.4443117380142212,
0.04693150147795677,
0.08828407526016235,
0.4415370225906372,
0.0005818989593535662,
-0.14010265469551086,
0.2631988227367401,
-0.04518092796206474,
-0.24479375779628754,
0.13522090017795563,
0.09173859655857086,
0.18280205130577087,
-0.24483859539031982,
-0.4639568030834198,
-0.2088107466697693,
-0.2868312895298004,
-0.04727200046181679,
-0.07362569868564606,
0.2372119128704071,
-0.27722540497779846,
0.170880526304245,
-0.27236106991767883,
0.23964989185333252,
-0.09439710527658463,
-0.0668712630867958,
-0.05132945254445076,
-0.14786455035209656,
-0.3596422076225281,
0.17182686924934387,
0.17158350348472595,
0.043301038444042206,
0.15750423073768616,
0.2333867847919464,
-0.2306012660264969,
-0.1313464194536209,
0.06312207877635956,
-0.38461539149284363,
0.07070290297269821,
-0.05325433984398842,
0.12675556540489197,
-0.06794615834951401,
-0.20075535774230957,
-0.2258477807044983,
-0.3948822617530823,
0.07321764528751373,
-0.18758705258369446,
-0.04159891605377197,
-0.0811910480260849,
0.12692680954933167,
-0.30068063735961914,
-0.16015198826789856,
-0.3778265714645386,
0.4154414236545563,
0.10396925359964371,
-0.039989788085222244,
-0.12125832587480545,
-0.2215486615896225,
-0.32282572984695435,
-0.308176726102829,
-0.20479083061218262,
0.5929177403450012,
-0.2509547472000122,
0.13471592962741852,
-0.01442728005349636,
0.3353876769542694,
0.3447006046772003,
0.3423042893409729,
0.09490292519330978,
0.18372684717178345,
-0.2054884284734726,
0.03158511221408844,
0.09782002866268158,
-0.13028928637504578,
-0.1156395971775055,
0.12164833396673203,
-0.13050100207328796,
0.3174390494823456,
-0.0036312267184257507,
0.24522443115711212,
0.07085837423801422,
-0.29528844356536865,
0.13270530104637146,
0.5699856281280518,
0.09178849309682846,
0.16612382233142853,
-0.20988087356090546,
-0.12399820238351822,
0.15350276231765747,
0.08691857755184174,
-0.07332521677017212,
0.24377548694610596,
-0.026379451155662537,
-0.06938564032316208,
0.1995629370212555,
0.03817364200949669,
-0.3544093668460846,
0.11357239633798599,
0.4417838156223297,
0.025977279990911484,
0.01740184798836708,
0.03216267377138138,
-0.6761296391487122,
0.20365160703659058,
-0.08102947473526001,
0.2807788550853729,
-0.13864804804325104,
-0.18944500386714935,
-0.03126091510057449,
-0.2177087962627411,
-0.3511209785938263,
0.018044713884592056,
0.12515906989574432,
0.4610765278339386,
0.2965363562107086,
0.33133453130722046,
0.11297601461410522,
0.44522133469581604,
0.02777177281677723,
-0.15774588286876678,
-0.4701623022556305,
0.3422988951206207,
-0.06479553878307343,
-0.1605474352836609,
0.2936725914478302,
0.2650282084941864,
-0.011514060199260712,
-0.20746861398220062,
-0.08900672942399979,
0.3012985289096832,
0.20347486436367035,
0.14669552445411682,
0.1965002715587616,
-0.004754185676574707,
0.05718585103750229,
-0.0478246696293354,
0.1256568729877472,
0.3327846825122833,
-0.07415181398391724,
-0.09177562594413757,
-0.043715767562389374,
0.4265552759170532,
-0.10519371926784515,
0.24555367231369019,
0.06030803918838501,
-0.06336892396211624,
0.14090698957443237,
0.010124016553163528,
0.03380611538887024,
-0.2565668821334839,
0.3141154646873474,
0.18846078217029572,
0.41689786314964294,
0.4318348169326782,
-0.6473001837730408,
0.25320494174957275,
0.6687130331993103,
0.13112379610538483,
0.13378995656967163,
0.04708586260676384,
0.10586431622505188,
-0.2604920268058777,
0.19742828607559204,
0.32419145107269287,
0.4786657691001892,
0.17111116647720337,
-0.08000770211219788,
-0.07539061456918716,
-0.13652794063091278,
-0.31839796900749207,
0.010920748114585876,
-0.051233842968940735,
0.18632104992866516,
0.11051306128501892,
0.38850152492523193,
0.21454353630542755,
-0.305756151676178,
-0.0753767266869545,
-0.0978049710392952,
0.015089575201272964,
-0.10579115152359009,
0.17744755744934082,
-0.3200416564941406,
-0.29723671078681946,
-0.3805830776691437,
-0.0774800255894661,
-0.3543400466442108,
-0.23222868144512177,
0.12335898727178574,
0.26579153537750244,
0.03655839338898659,
-0.07076534628868103,
0.15330304205417633,
0.2784759998321533,
-0.04488355666399002,
-0.44757840037345886,
-0.20643965899944305,
-0.08436782658100128,
-0.3556395471096039,
-0.040075935423374176,
0.460666686296463,
0.24197059869766235,
0.47478994727134705,
-0.196222186088562,
-0.20926646888256073,
0.0662846490740776,
-0.3068487346172333,
-0.08876658976078033,
-0.3029898405075073,
0.3668177127838135,
-0.09317728877067566,
-0.12271182239055634,
-0.03003631718456745,
-0.06842584908008575,
-0.00412416085600853,
0.0355629026889801,
-0.08859491348266602,
0.11383883655071259,
0.028828607872128487,
-0.0352054089307785,
-0.011494062840938568,
-0.31583642959594727,
-0.23809833824634552,
-0.16397759318351746,
0.11473021656274796,
0.31208470463752747,
0.18281063437461853,
0.3057505190372467,
-0.09691233932971954,
-0.30698174238204956,
0.11507775634527206,
0.09789120405912399,
-0.09680410474538803,
-0.03913940489292145,
0.4157399833202362,
-0.18580709397792816,
-0.23013906180858612,
-0.3322434425354004,
-0.15928345918655396,
-0.10929502546787262,
0.11760053783655167,
-0.29035258293151855,
-0.2713473439216614,
-0.3909582197666168,
0.057260867208242416,
-0.02905496209859848,
-0.3220245838165283,
0.41013050079345703,
0.06309472769498825,
0.05247988551855087,
0.1303124725818634,
0.0009941477328538895,
0.20093312859535217,
0.29249295592308044,
0.37570133805274963,
0.1786859929561615,
-0.0003598444163799286,
0.01769275963306427,
0.4301036596298218,
0.09234774112701416,
-0.3738061189651489,
0.22872750461101532,
0.13664962351322174,
0.3163934648036957,
-0.4368555247783661,
-0.02898382768034935,
0.2667534351348877,
0.26250165700912476,
-0.08199788630008698,
0.5508418083190918,
-0.016408998519182205,
-0.07001299411058426,
-0.09534087777137756,
0.2730462849140167,
-0.23428913950920105,
-0.21628083288669586,
0.02555820904672146,
-0.27624666690826416,
-0.14694815874099731,
0.126319020986557,
0.14954984188079834,
0.08502079546451569,
-0.44250020384788513,
-0.23435662686824799,
0.12432482838630676,
0.13465332984924316,
0.06921611726284027,
0.2602708339691162,
0.07623418420553207,
-0.6774929165840149,
0.1283610612154007,
0.0047224583104252815,
0.1181291863322258,
0.014970559626817703,
-0.08967870473861694,
0.25489678978919983,
-0.038286469876766205,
0.19863322377204895,
-0.10412765294313431,
0.1607329249382019,
-0.06852632761001587,
0.11130285263061523,
0.06220322102308273,
-0.23321904242038727,
-0.3385126292705536,
0.01994079165160656,
0.1285451352596283,
0.22122009098529816,
-0.4335186183452606,
-0.09375403076410294,
0.0029251519590616226,
0.1344003826379776,
0.028258617967367172,
-0.47299399971961975,
-0.5182256102561951,
-0.04306064546108246,
0.20437055826187134,
-0.13219916820526123,
-0.04231850802898407,
0.10510052740573883,
-0.40836483240127563,
-0.17321813106536865,
-0.04168619215488434,
-0.23626959323883057,
0.31669676303863525,
0.3083198368549347,
0.2321358323097229,
0.024830441921949387,
0.02488132193684578,
0.06790008395910263,
0.09191112220287323,
0.2281070053577423,
0.31876999139785767,
0.0075668878853321075,
-0.2902905344963074,
-0.1919255554676056,
-0.19614353775978088,
0.022885099053382874,
0.27324220538139343,
-0.06384989619255066,
-0.15827390551567078,
-0.6268547773361206,
0.0451403446495533,
-0.2855333685874939,
0.20332786440849304,
0.21781648695468903,
-0.09050200879573822,
-0.4762636423110962,
-0.3762310743331909,
0.5591686367988586,
0.1271013766527176,
-0.2329278290271759,
0.3657146990299225,
-0.043196141719818115,
-0.4890762269496918,
0.5494596362113953,
0.31001511216163635,
0.7622919678688049,
-0.29275286197662354,
0.03007253259420395,
0.23636919260025024,
0.0642995536327362,
0.5886330604553223,
0.14540404081344604,
0.42017245292663574,
-0.5156996250152588,
-0.26897165179252625,
-0.028115712106227875,
-0.044426798820495605,
-0.11504659801721573,
0.28564131259918213,
-0.4419332444667816,
0.47608163952827454,
0.01406223326921463,
0.15718209743499756,
0.018744485452771187,
0.520262598991394,
-0.16113848984241486,
-0.057636890560388565,
-0.31301724910736084,
0.09544402360916138,
-0.20469792187213898,
0.358615517616272,
-0.14189505577087402,
-0.12247087061405182,
0.07692688703536987,
0.0946548730134964,
-0.16011366248130798,
0.31486615538597107,
-0.3392433822154999,
-0.04668080061674118,
0.041383203119039536,
-0.27785035967826843,
0.0719878226518631,
0.41865187883377075,
0.1913318783044815,
0.23185965418815613,
-0.16486604511737823,
0.05273357033729553,
0.18181784451007843,
0.09413077682256699,
0.1307237446308136,
-0.24075956642627716,
0.41102978587150574,
0.2103668749332428,
0.03688625246286392,
-0.3947604298591614,
0.1993493288755417,
-0.34169822931289673,
-0.4910685122013092,
0.09181053936481476,
-0.242633655667305,
0.32648470997810364,
-0.20107176899909973,
0.14210644364356995,
0.01149052381515503,
-0.026200005784630775,
0.1275753676891327,
-0.04683054983615875,
0.24898149073123932,
0.39282506704330444,
-0.012045532464981079,
-0.43475833535194397,
-0.027420684695243835,
0.1308651864528656,
0.026886582374572754,
0.2842245101928711,
0.36054131388664246,
-0.03317757695913315,
-0.06605613231658936,
-0.2653251886367798,
-0.17218953371047974,
-0.5158196091651917,
-0.09475681185722351,
0.29796895384788513,
0.03572016581892967,
0.110825315117836,
0.10813771188259125,
0.2812211513519287,
-0.03838306665420532,
0.010206907987594604,
0.06101685389876366,
-0.47039923071861267,
0.21520479023456573,
-0.006740741431713104,
-0.06765532493591309,
0.09686794877052307,
-0.09512120485305786,
0.27976033091545105,
-0.0007645543664693832,
0.0979793593287468,
-0.2943921387195587,
-0.21692430973052979,
-0.17940481007099152,
0.043816596269607544,
-0.14726455509662628,
-0.06505326181650162,
0.04978125914931297,
0.06324821710586548,
0.05257297307252884,
-0.028461791574954987,
-0.01635616086423397,
-0.191046804189682,
0.03601096570491791,
0.12801435589790344,
0.07515200972557068,
0.18783771991729736,
-0.1114995926618576,
-0.4070802927017212,
-0.1892489492893219,
-0.44327685236930847,
0.03956599161028862,
0.08884475380182266,
0.02929900586605072,
0.15439744293689728,
0.18245916068553925,
0.27113109827041626,
0.1931789368391037,
0.16989415884017944,
-0.452623575925827,
-0.03655518591403961,
0.1458548754453659,
0.16099107265472412,
0.07739247381687164,
0.18308988213539124,
-0.24892587959766388,
-0.012200146913528442,
0.07747156172990799,
0.20768585801124573,
-0.0641002431511879,
-0.21602065861225128,
-0.04018503427505493,
-0.06090949848294258,
0.14011111855506897,
0.6141608357429504,
0.04224264621734619,
-0.5872523188591003,
0.19727671146392822,
0.1555660367012024,
-0.2832270562648773,
0.19960853457450867,
-0.0918034166097641,
0.4179365932941437,
0.02508266642689705,
0.27983030676841736,
0.26908761262893677,
0.08119519054889679,
-0.11955933272838593,
-0.0003819093108177185,
0.30484238266944885,
-0.0419987291097641,
0.34197646379470825,
0.03645186126232147,
0.21215344965457916,
0.038687922060489655,
0.15499082207679749,
-0.17111274600028992,
-0.1503051519393921,
0.22968347370624542,
0.0648861676454544,
0.28507545590400696,
-0.1867246925830841,
-0.15707027912139893,
0.1521877944469452,
-0.09781832993030548,
0.04136725887656212,
0.7915152311325073,
-0.007006421685218811,
0.21068283915519714,
0.3884543478488922,
0.44529199600219727,
-0.38182035088539124,
-0.09551491588354111,
-0.506068766117096,
-0.131393700838089,
-0.03535749018192291,
-0.09416201710700989,
-0.10144064575433731,
0.006801612675189972,
-0.12481425702571869,
0.08568702638149261,
-0.08186110854148865,
-0.05897129327058792,
0.017477281391620636,
0.17327603697776794,
-0.17360945045948029,
-0.6126011610031128,
0.42083901166915894,
-0.08909902721643448,
0.39698338508605957,
-0.12267182767391205,
0.2771202027797699,
-0.20974700152873993,
0.04110019654035568,
0.11428520083427429,
0.1573391556739807,
0.16764412820339203,
0.7388732433319092,
-0.34038063883781433,
-0.19363324344158173,
-0.26827293634414673,
0.06406264007091522,
-0.05717744678258896,
0.29445645213127136,
-0.012330591678619385,
-0.08725669980049133,
0.4612795114517212,
0.06939209252595901,
-0.06574762612581253,
0.2757764458656311,
0.4123498797416687,
0.08466938138008118,
-0.038227424025535583,
0.4324907958507538,
0.10083920508623123,
0.02945265918970108,
-0.02784469723701477,
0.14072009921073914,
-0.33301299810409546,
-0.10363807529211044,
-0.023359164595603943,
0.002110155997797847,
-0.124641552567482,
-0.2778749167919159,
0.057674407958984375,
-0.049270693212747574,
0.4179215729236603,
0.28825628757476807,
0.19793462753295898,
-0.28824374079704285,
-0.209987074136734,
-0.5732439756393433,
0.24515828490257263,
-0.022960487753152847,
-0.0178854838013649,
-0.27198269963264465,
0.36996138095855713,
-0.31696996092796326,
-0.004687588661909103,
-0.47000443935394287,
0.3447815179824829,
-0.13758684694766998,
0.08389274775981903,
-0.5932186245918274,
-0.01896306872367859,
-0.5143908262252808,
-0.22276033461093903,
-0.08780743181705475,
-0.4162072241306305,
-0.03302670642733574,
-0.2758480906486511,
-0.0626300647854805,
0.00958406925201416,
0.30214911699295044,
0.05746442452073097,
0.44348374009132385,
0.2620718479156494,
0.17335090041160583,
0.3690352141857147,
-0.043108999729156494,
-0.024049455299973488,
-0.3146226704120636,
-0.03226418420672417,
-0.47415289282798767,
0.23222637176513672,
0.10998181998729706,
0.16361883282661438,
-0.04513486474752426,
0.3210481107234955,
-0.1569155901670456,
0.5310436487197876,
-0.004238370805978775,
0.1621023565530777,
-0.3588051199913025,
-0.14239796996116638,
-0.16092079877853394,
0.07543274015188217,
-0.13203702867031097,
0.11837826669216156,
0.04372663423418999,
0.0036476869136095047,
-0.25474369525909424,
-0.2821333110332489,
0.39778321981430054,
-0.23989640176296234,
-0.26342785358428955,
-0.11078115552663803,
0.25222837924957275,
0.16576001048088074,
-0.25897422432899475,
-0.48412829637527466,
0.06080041080713272,
0.2251032441854477,
0.03165204077959061,
0.12194077670574188,
0.3386111557483673,
0.02202274650335312,
0.130936861038208,
-0.20101036131381989,
0.12154493480920792,
-0.06637071073055267,
-0.32709676027297974,
-0.12180104851722717,
-0.2355501502752304
] |
https://github.com/huggingface/datasets/issues/239 | [Creating new dataset] Not found dataset_info.json | @lhoestq - this seems to happen quite often (already the 2nd issue). Can we maybe delete this automatically? | Hi, I am trying to create Toronto Book Corpus. #131
I ran
`~/nlp % python nlp-cli test datasets/bookcorpus --save_infos --all_configs`
but this doesn't create `dataset_info.json` and try to use it
```
INFO:nlp.load:Checking datasets/bookcorpus/bookcorpus.py for additional imports.
INFO:filelock:Lock 139795325778640 acquired on datasets/bookcorpus/bookcorpus.py.lock
INFO:nlp.load:Found main folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus
INFO:nlp.load:Found specific version folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9
INFO:nlp.load:Found script file from datasets/bookcorpus/bookcorpus.py to /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.py
INFO:nlp.load:Couldn't find dataset infos file at datasets/bookcorpus/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.json
INFO:filelock:Lock 139795325778640 released on datasets/bookcorpus/bookcorpus.py.lock
INFO:nlp.builder:Overwrite dataset info from restored data version.
INFO:nlp.info:Loading Dataset info from /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0
Traceback (most recent call last):
File "nlp-cli", line 37, in <module>
service.run()
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/commands/test.py", line 78, in run
builders.append(builder_cls(name=config.name, data_dir=self._data_dir))
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 610, in __init__
super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 152, in __init__
self.info = DatasetInfo.from_directory(self._cache_dir)
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/info.py", line 157, in from_directory
with open(os.path.join(dataset_info_dir, DATASET_INFO_FILENAME), "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/dataset_info.json'
```
btw, `ls /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/` show me nothing is in the directory.
I have also pushed the script to my fork [bookcorpus.py](https://github.com/richardyy1188/nlp/blob/bookcorpusdev/datasets/bookcorpus/bookcorpus.py).
| 18 | [Creating new dataset] Not found dataset_info.json
Hi, I am trying to create Toronto Book Corpus. #131
I ran
`~/nlp % python nlp-cli test datasets/bookcorpus --save_infos --all_configs`
but this doesn't create `dataset_info.json` and try to use it
```
INFO:nlp.load:Checking datasets/bookcorpus/bookcorpus.py for additional imports.
INFO:filelock:Lock 139795325778640 acquired on datasets/bookcorpus/bookcorpus.py.lock
INFO:nlp.load:Found main folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus
INFO:nlp.load:Found specific version folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9
INFO:nlp.load:Found script file from datasets/bookcorpus/bookcorpus.py to /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.py
INFO:nlp.load:Couldn't find dataset infos file at datasets/bookcorpus/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.json
INFO:filelock:Lock 139795325778640 released on datasets/bookcorpus/bookcorpus.py.lock
INFO:nlp.builder:Overwrite dataset info from restored data version.
INFO:nlp.info:Loading Dataset info from /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0
Traceback (most recent call last):
File "nlp-cli", line 37, in <module>
service.run()
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/commands/test.py", line 78, in run
builders.append(builder_cls(name=config.name, data_dir=self._data_dir))
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 610, in __init__
super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 152, in __init__
self.info = DatasetInfo.from_directory(self._cache_dir)
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/info.py", line 157, in from_directory
with open(os.path.join(dataset_info_dir, DATASET_INFO_FILENAME), "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/dataset_info.json'
```
btw, `ls /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/` show me nothing is in the directory.
I have also pushed the script to my fork [bookcorpus.py](https://github.com/richardyy1188/nlp/blob/bookcorpusdev/datasets/bookcorpus/bookcorpus.py).
@lhoestq - this seems to happen quite often (already the 2nd issue). Can we maybe delete this automatically? | [
-0.11650604009628296,
0.1242494136095047,
-0.08600330352783203,
0.057063568383455276,
0.01767542026937008,
0.14669117331504822,
0.16692225635051727,
0.3094637393951416,
-0.2007138878107071,
0.02181672304868698,
0.060289181768894196,
0.5790072083473206,
-0.09350878745317459,
0.08411595225334167,
0.2967384159564972,
-0.06326794624328613,
0.07989370822906494,
0.3547499179840088,
0.43980473279953003,
-0.17095541954040527,
-0.3041883111000061,
0.3338650166988373,
-0.08771346509456635,
0.013870462775230408,
-0.33899202942848206,
-0.13993926346302032,
-0.1987459510564804,
0.15173575282096863,
-0.368901789188385,
-0.24407561123371124,
0.486727237701416,
-0.07338802516460419,
0.1036611795425415,
0.5475576519966125,
-0.00011407753481762484,
0.010212428867816925,
0.37250185012817383,
-0.15201829373836517,
-0.4637064039707184,
-0.5580251812934875,
-0.009793616831302643,
-0.40277886390686035,
0.11497397720813751,
-0.3410837948322296,
-0.12306158244609833,
-0.32428473234176636,
0.20140376687049866,
-0.13952875137329102,
-0.11613085865974426,
0.45088276267051697,
0.17983706295490265,
0.06183247268199921,
0.18421098589897156,
-0.08671896159648895,
0.00012563914060592651,
0.2762158513069153,
-0.2401410937309265,
0.20989365875720978,
0.5791475772857666,
-0.031257472932338715,
0.2688179016113281,
-0.04652172699570656,
-0.06592714041471481,
-0.29323452711105347,
0.259123831987381,
0.15986433625221252,
0.015617646276950836,
-0.4965939223766327,
0.026163574308156967,
0.07965251803398132,
0.7736670970916748,
-0.5069003701210022,
-0.3475550413131714,
0.07921197265386581,
0.1948908567428589,
0.08152276277542114,
0.02613278105854988,
0.3870602250099182,
-0.003624662756919861,
-0.14681752026081085,
-0.4909811019897461,
-0.3836778700351715,
-0.13943105936050415,
0.354118287563324,
0.2187720537185669,
0.24535177648067474,
-0.033795323222875595,
0.04224725812673569,
-0.01601569727063179,
-0.05356830358505249,
-0.13028821349143982,
-0.18597029149532318,
-0.12865746021270752,
0.2532888352870941,
-0.053666356950998306,
-0.5121888518333435,
0.16871678829193115,
-0.00768686830997467,
-0.0895366221666336,
0.06112837791442871,
-0.03262186795473099,
-0.27464136481285095,
-0.2865633964538574,
0.1832764744758606,
0.2046540379524231,
-0.1106356680393219,
0.2796586751937866,
0.0797305479645729,
0.07748337090015411,
0.05583786964416504,
0.07856911420822144,
-0.06780105084180832,
-0.033566173166036606,
0.015616568736732006,
-0.12776359915733337,
-0.099432572722435,
0.32456570863723755,
-0.07417789101600647,
0.07186060398817062,
0.0012804437428712845,
-0.19816875457763672,
-0.13331182301044464,
0.1172710508108139,
0.2936829626560211,
-0.07195799052715302,
-0.2800121307373047,
-0.025149721652269363,
0.2071140557527542,
-0.4114203453063965,
-0.011661057360470295,
-0.16452325880527496,
0.4944564402103424,
-0.2056020200252533,
-0.02622893638908863,
0.3875798285007477,
0.10167045891284943,
0.3338846266269684,
-0.013087350875139236,
-0.3687376379966736,
-0.1556919813156128,
0.39184659719467163,
-0.21217407286167145,
-0.17901214957237244,
0.22895339131355286,
0.11604584753513336,
0.11397738009691238,
-0.03786296769976616,
-0.36688798666000366,
-0.3832911550998688,
0.19166448712348938,
-0.23506081104278564,
-0.348147451877594,
-0.28387200832366943,
0.19338971376419067,
0.06136824190616608,
-0.23428472876548767,
-0.3146072328090668,
0.2751883864402771,
0.30977514386177063,
-0.343521386384964,
0.0633966252207756,
0.07586309313774109,
-0.13430123031139374,
-0.23051322996616364,
-0.09996914863586426,
0.3998727798461914,
-0.4836800694465637,
-0.07219953835010529,
-0.32150280475616455,
-0.009418342262506485,
0.19101352989673615,
-0.03528234735131264,
-0.20967501401901245,
0.517199695110321,
-0.13384753465652466,
0.11128517985343933,
0.5153877139091492,
-0.18933285772800446,
-0.18746136128902435,
0.2695927917957306,
-0.19403092563152313,
-0.2928597331047058,
0.07255545258522034,
0.2507293224334717,
-0.04141528531908989,
-0.16878648102283478,
0.13270951807498932,
0.0917857438325882,
-0.12619255483150482,
0.04947365075349808,
0.08353875577449799,
-0.006045112386345863,
0.05104051157832146,
0.1193809062242508,
-0.23835279047489166,
0.10864432901144028,
0.1355070024728775,
0.2590746581554413,
0.09780141711235046,
-0.03122762218117714,
0.1779916137456894,
0.48472481966018677,
0.38853031396865845,
-0.005946815013885498,
-0.022813741117715836,
-0.07083286345005035,
-0.33621495962142944,
-0.08187152445316315,
-0.23699910938739777,
0.4043164849281311,
0.033765487372875214,
-0.002795826643705368,
-0.47163325548171997,
-0.19266775250434875,
0.03348172456026077,
-0.11761438846588135,
0.08502388000488281,
0.01621061936020851,
0.3978444039821625,
0.10037890076637268,
-0.25381410121917725,
0.07752399891614914,
-0.17115625739097595,
0.06652316451072693,
-0.8675047159194946,
0.3471955358982086,
-0.20132280886173248,
-0.20943786203861237,
0.24705377221107483,
0.23108237981796265,
-0.017621144652366638,
-0.1472959816455841,
0.15028589963912964,
0.22656866908073425,
-0.14524270594120026,
0.3361054062843323,
0.22270828485488892,
0.12884290516376495,
0.28853467106819153,
-0.20380888879299164,
0.14635726809501648,
0.049376022070646286,
0.19623428583145142,
-0.021721936762332916,
-0.08311382681131363,
0.053555890917778015,
0.1434139758348465,
-0.05503005534410477,
0.16171780228614807,
-0.04391339421272278,
0.14021269977092743,
-0.17860864102840424,
0.07698776572942734,
-0.24211715161800385,
0.17556267976760864,
0.07551045715808868,
0.13160847127437592,
0.048624731600284576,
-0.07722697407007217,
0.23074999451637268,
0.30670589208602905,
0.05310070887207985,
0.04318757355213165,
0.15799441933631897,
0.03988137096166611,
-0.09149569272994995,
-0.16357815265655518,
0.28643596172332764,
0.43378931283950806,
0.13054433465003967,
-0.17257362604141235,
-0.04459773749113083,
-0.10544028878211975,
-0.23387347161769867,
0.17621248960494995,
-0.14458665251731873,
0.18157008290290833,
0.05537589639425278,
0.20645758509635925,
-0.09188329428434372,
-0.19817262887954712,
-0.45030760765075684,
0.2582753300666809,
0.29156211018562317,
0.012532498687505722,
0.23301927745342255,
-0.04835966229438782,
-0.2889656722545624,
-0.10235709697008133,
-0.21999654173851013,
-0.027930598706007004,
-0.10974540561437607,
0.044951364398002625,
0.21489818394184113,
0.21191439032554626,
-0.12067180126905441,
-0.19590221345424652,
0.18914280831813812,
-0.08827930688858032,
-0.35751524567604065,
-0.08856144547462463,
-0.2564786374568939,
-0.18699002265930176,
0.10573489964008331,
0.03482484444975853,
0.14009982347488403,
0.24952451884746552,
-0.1843913197517395,
0.010568918660283089,
-0.1660454273223877,
-0.2570820152759552,
0.01808084547519684,
-0.15953248739242554,
0.19502750039100647,
0.17406287789344788,
0.0597916804254055,
-0.26083260774612427,
-0.42547115683555603,
0.0775657519698143,
-0.01162683218717575,
-0.4032611548900604,
0.0009182281792163849,
-0.17336922883987427,
-0.1220971941947937,
-0.04074857383966446,
-0.7119970917701721,
-0.3251381516456604,
-0.21316060423851013,
-0.015592731535434723,
0.16318124532699585,
0.19772620499134064,
0.41301849484443665,
-0.0757456049323082,
0.10820756107568741,
0.17231912910938263,
0.2316487580537796,
-0.06923350691795349,
-0.3634285628795624,
0.39431896805763245,
-0.5005174875259399,
-0.2842503786087036,
0.188923180103302,
-0.4618217349052429,
0.23753440380096436,
-0.17418192327022552,
-0.5138139724731445,
0.016808003187179565,
-0.29809877276420593,
0.005920488387346268,
0.13436755537986755,
0.2339944839477539,
0.4963957965373993,
-0.02793801762163639,
-0.05390619486570358,
-0.10333165526390076,
-0.4580046236515045,
0.022857435047626495,
0.4239569902420044,
0.6483791470527649,
-0.09557946026325226,
0.17668741941452026,
-0.4366551637649536,
0.13951081037521362,
0.3806608319282532,
-0.02299761399626732,
0.45965832471847534,
-0.06421405076980591,
0.28421756625175476,
-0.28907185792922974,
-0.3776218593120575,
0.20217223465442657,
0.2846027612686157,
-0.09684188663959503,
0.19153878092765808,
0.08896593749523163,
-0.19004975259304047,
-0.18134494125843048,
-0.12971466779708862,
-0.4387229382991791,
-0.06704137474298477,
-0.1606694906949997,
-0.015445750206708908,
0.2671149969100952,
0.08936916291713715,
-0.06376702338457108,
-0.14562660455703735,
-0.27571457624435425,
-0.2235913723707199,
0.47275394201278687,
0.19740989804267883,
0.12087168544530869,
-0.27663061022758484,
-0.06120681390166283,
-0.3073074519634247,
-0.03779502213001251,
0.023885419592261314,
0.2937769293785095,
-0.20295439660549164,
0.25542232394218445,
0.06291958689689636,
-0.012339869514107704,
0.5490015745162964,
-0.2908593714237213,
-0.2055511325597763,
0.2633002996444702,
-0.0580422580242157,
-0.22411471605300903,
0.1805138736963272,
-0.10403399169445038,
0.6076476573944092,
0.24335238337516785,
0.5753419399261475,
-0.31156519055366516,
0.29907312989234924,
0.12145089358091354,
0.37018489837646484,
-0.23179858922958374,
-0.28618961572647095,
-0.19550049304962158,
-0.4630236327648163,
-0.13890404999256134,
-0.3091448247432709,
-0.3363454043865204,
0.47525447607040405,
0.23033149540424347,
0.1704016625881195,
0.3116019666194916,
-0.1196058839559555,
0.2841067612171173,
0.11535453796386719,
0.2576378583908081,
0.23350411653518677,
0.4246393144130707,
-0.10522788763046265,
-0.06710581481456757,
0.36698272824287415,
0.6004719138145447,
0.2031097114086151,
-0.09567336738109589,
0.12842047214508057,
-0.03640365228056908,
0.39536717534065247,
-0.013245105743408203,
0.2669265568256378,
-0.10981980711221695,
0.021094217896461487,
-0.21841256320476532,
-0.11553164571523666,
-0.02340986207127571,
-0.0193971935659647,
-0.2241462767124176,
-0.6888648271560669,
-0.39393138885498047,
0.24237999320030212,
-0.010685604065656662,
0.3002980351448059,
0.2865830063819885,
0.14248131215572357,
-0.22004304826259613,
0.4714861512184143,
-0.21347573399543762,
0.8308845162391663,
-0.052655644714832306,
-0.02797051891684532,
0.04540892317891121,
0.15106680989265442,
0.7034146785736084,
-0.5142813920974731,
0.41265106201171875,
-0.389102578163147,
-0.026909012347459793,
0.05157847702503204,
-0.17580024898052216,
0.17506343126296997,
0.41788285970687866,
-0.4325258135795593,
0.19300426542758942,
-0.0822676569223404,
-0.11858274042606354,
-0.1702665239572525,
0.46463096141815186,
-0.1232813373208046,
-0.3681623935699463,
-0.3878662586212158,
0.12439005076885223,
-0.15596148371696472,
0.38852307200431824,
-0.09368207305669785,
-0.017325509339571,
-0.5373474359512329,
-0.02376764826476574,
-0.21049764752388,
-0.02206006832420826,
0.3186567723751068,
0.24980519711971283,
0.542542576789856,
-0.39588630199432373,
0.16806171834468842,
0.1537735015153885,
0.5115236639976501,
0.32337135076522827,
-0.21308326721191406,
-0.04314203932881355,
-0.00856471061706543,
-0.4150433838367462,
0.0861748605966568,
0.02331674098968506,
0.3259398341178894,
0.002712935209274292,
-0.24869322776794434,
0.1554381251335144,
-0.09102259576320648,
-0.053070589900016785,
-0.09715502709150314,
-0.14653371274471283,
-0.24173001945018768,
-0.27599090337753296,
-0.36252593994140625,
0.25870048999786377,
-0.16885295510292053,
-0.1415451318025589,
0.0788360983133316,
0.2971159815788269,
-0.13539135456085205,
0.11851507425308228,
0.02025732398033142,
-0.1812777817249298,
-0.2206898182630539,
0.23206505179405212,
0.3509170114994049,
-0.17117859423160553,
0.45930755138397217,
0.21996094286441803,
-0.08074347674846649,
-0.23452621698379517,
0.10708869248628616,
0.12530653178691864,
-0.12980180978775024,
0.211233451962471,
0.36168479919433594,
0.15047208964824677,
0.28391551971435547,
0.3608112335205078,
-0.16636331379413605,
0.16324834525585175,
0.07301375269889832,
-0.3862997889518738,
-0.4366525411605835,
0.24695740640163422,
0.024427806958556175,
0.09015452861785889,
0.1384781301021576,
0.38774973154067993,
0.2723521292209625,
0.03506159037351608,
-0.26488178968429565,
-0.04556705057621002,
-0.3696904480457306,
0.2637805640697479,
0.2491614818572998,
0.06050164997577667,
-0.21608473360538483,
-0.057571571320295334,
0.0510149747133255,
-0.20329947769641876,
-0.029042888432741165,
-0.1544078290462494,
-0.22161297500133514,
0.1520266979932785,
0.12606370449066162,
0.015447755344212055,
-0.12458059191703796,
-0.2296668142080307,
-0.23324671387672424,
-0.01994033344089985,
-0.2605072855949402,
0.17805388569831848,
0.1019098311662674,
0.1546177864074707,
0.09359808266162872,
-0.3269779086112976,
-0.10735556483268738,
-0.014843817800283432,
-0.0619531124830246,
0.3862460255622864,
0.0843537300825119,
0.04523332789540291,
0.1161661297082901,
0.04253898561000824,
-0.4028133749961853,
0.07011277973651886,
-0.15169364213943481,
0.08376258611679077,
0.14908653497695923,
-0.1571454405784607,
0.26674318313598633,
0.02179848589003086,
0.10998359322547913,
0.3466065526008606,
-0.13597331941127777,
0.14051741361618042,
0.26055315136909485,
0.11154508590698242,
-0.16209043562412262,
-0.044080477207899094,
0.327946275472641,
0.0434805266559124,
-0.012227021157741547,
0.31466037034988403,
-0.1331053078174591,
0.13106928765773773,
-0.14787784218788147,
0.18498826026916504,
0.32467788457870483,
-0.06314773857593536,
0.257734477519989,
0.13640952110290527,
0.0012925006449222565,
-0.0977020263671875,
0.25944408774375916,
0.18815235793590546,
-0.08532101660966873,
0.18237777054309845,
0.04508889839053154,
0.39739370346069336,
0.3023516535758972,
0.28611889481544495,
0.21092650294303894,
-0.22499991953372955,
0.050446875393390656,
-0.20212405920028687,
0.25073349475860596,
-0.04192554950714111,
0.08260251581668854,
0.21872478723526,
-0.19586797058582306,
0.3018074631690979,
-0.17804096639156342,
0.1030375137925148,
-0.3208482265472412,
-0.06559986621141434,
-0.11257021874189377,
-0.26747167110443115,
0.25465887784957886,
-0.08748014271259308,
0.029255658388137817,
-0.10721838474273682,
-0.1549132764339447,
-0.05317839980125427,
-0.055611997842788696,
-0.32744279503822327,
0.41589075326919556,
-0.014811839908361435,
0.020927101373672485,
-0.1005132794380188,
0.31730377674102783,
-0.16874612867832184,
-0.12283183634281158,
-0.12241125106811523,
0.34476178884506226,
0.307612806558609,
0.34696561098098755,
0.1381118893623352,
0.26454317569732666,
-0.07761768996715546,
-0.19061796367168427,
0.11390818655490875,
0.49975842237472534,
0.45840632915496826,
-0.10555887222290039,
0.02512771263718605,
0.05902813374996185,
-0.024464791640639305,
0.13379593193531036,
0.5156468749046326,
0.03814973682165146,
0.16639664769172668,
0.4495270252227783,
-0.11990964412689209,
-0.12360410392284393,
-0.25661754608154297,
0.29969796538352966,
-0.4078594446182251,
-0.1276361048221588,
0.5206470489501953,
0.04034674912691116,
-0.009024376049637794,
-0.32896244525909424,
0.07926280796527863,
-0.046772416681051254,
0.2938721179962158,
0.3701542317867279,
0.12014270573854446,
-0.2625783085823059,
-0.24848170578479767,
-0.3296501040458679,
-0.06240653246641159,
-0.11113947629928589,
-0.16207771003246307,
-0.225221186876297,
0.36316582560539246,
0.026146098971366882,
0.18046073615550995,
-0.3628830909729004,
0.2894382178783417,
-0.14855656027793884,
0.0748760923743248,
-0.14089810848236084,
-0.33819055557250977,
-0.15416380763053894,
0.19007034599781036,
-0.08194994926452637,
-0.08714379370212555,
-0.018498677760362625,
-0.27565231919288635,
-0.011309776455163956,
-0.43276023864746094,
-0.21586306393146515,
0.21756558120250702,
0.34732621908187866,
0.10093306005001068,
0.07363957166671753,
0.37652137875556946,
-0.2977442145347595,
-0.18720893561840057,
-0.19395098090171814,
-0.2278357595205307,
-0.095120869576931,
0.27850285172462463,
0.28277188539505005,
0.37742602825164795,
-0.3015461266040802,
0.36142975091934204,
-0.14139340817928314,
0.09885432571172714,
-0.03094763681292534,
0.11747507005929947,
-0.09106121212244034,
0.012101512402296066,
-0.29160940647125244,
-0.0935949757695198,
0.07177763432264328,
0.2724190056324005,
0.0033913925290107727,
0.3202648460865021,
-0.09971395134925842,
-0.4491749405860901,
0.46735310554504395,
-0.20926940441131592,
-0.1886318475008011,
-0.027947869151830673,
0.027369774878025055,
-0.29855096340179443,
-0.2551030218601227,
-0.24643108248710632,
0.0702248141169548,
0.35536715388298035,
-0.28132665157318115,
0.01821616291999817,
0.0918259471654892,
-0.19161643087863922,
0.04781404510140419,
-0.02698994055390358,
0.17802590131759644,
0.10363827645778656,
0.008864039555191994,
-0.11351382732391357,
0.041938379406929016
] |
https://github.com/huggingface/datasets/issues/239 | [Creating new dataset] Not found dataset_info.json | Hi, I rebase my local copy to `fix-empty-cache-dir`, and try to run again `python nlp-cli test datasets/bookcorpus --save_infos --all_configs`.
I got this,
```
Traceback (most recent call last):
File "nlp-cli", line 10, in <module>
from nlp.commands.run_beam import RunBeamCommand
File "/home/yisiang/nlp/src/nlp/commands/run_beam.py", line 6, in <module>
import apache_beam as beam
ModuleNotFoundError: No module named 'apache_beam'
```
And after I installed it. I got this
```
File "/home/yisiang/nlp/src/nlp/datasets/bookcorpus/aea0bd5142d26df645a8fce23d6110bb95ecb81772bb2a1f29012e329191962c/bookcorpus.py", line 88, in _split_generators
downloaded_path_or_paths = dl_manager.download_custom(_GDRIVE_FILE_ID, download_file_from_google_drive)
File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 128, in download_custom
downloaded_path_or_paths = map_nested(url_to_downloaded_path, url_or_urls)
File "/home/yisiang/nlp/src/nlp/utils/py_utils.py", line 172, in map_nested
return function(data_struct)
File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 126, in url_to_downloaded_path
return os.path.join(self._download_config.cache_dir, hash_url_to_filename(url))
File "/home/yisiang/miniconda3/envs/nlppr/lib/python3.7/posixpath.py", line 80, in join
a = os.fspath(a)
```
The problem is when I print `self._download_config.cache_dir` using pdb, it is `None`.
Did I miss something ? Or can you provide a workaround first so I can keep testing my script ? | Hi, I am trying to create Toronto Book Corpus. #131
I ran
`~/nlp % python nlp-cli test datasets/bookcorpus --save_infos --all_configs`
but this doesn't create `dataset_info.json` and try to use it
```
INFO:nlp.load:Checking datasets/bookcorpus/bookcorpus.py for additional imports.
INFO:filelock:Lock 139795325778640 acquired on datasets/bookcorpus/bookcorpus.py.lock
INFO:nlp.load:Found main folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus
INFO:nlp.load:Found specific version folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9
INFO:nlp.load:Found script file from datasets/bookcorpus/bookcorpus.py to /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.py
INFO:nlp.load:Couldn't find dataset infos file at datasets/bookcorpus/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.json
INFO:filelock:Lock 139795325778640 released on datasets/bookcorpus/bookcorpus.py.lock
INFO:nlp.builder:Overwrite dataset info from restored data version.
INFO:nlp.info:Loading Dataset info from /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0
Traceback (most recent call last):
File "nlp-cli", line 37, in <module>
service.run()
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/commands/test.py", line 78, in run
builders.append(builder_cls(name=config.name, data_dir=self._data_dir))
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 610, in __init__
super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 152, in __init__
self.info = DatasetInfo.from_directory(self._cache_dir)
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/info.py", line 157, in from_directory
with open(os.path.join(dataset_info_dir, DATASET_INFO_FILENAME), "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/dataset_info.json'
```
btw, `ls /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/` show me nothing is in the directory.
I have also pushed the script to my fork [bookcorpus.py](https://github.com/richardyy1188/nlp/blob/bookcorpusdev/datasets/bookcorpus/bookcorpus.py).
| 142 | [Creating new dataset] Not found dataset_info.json
Hi, I am trying to create Toronto Book Corpus. #131
I ran
`~/nlp % python nlp-cli test datasets/bookcorpus --save_infos --all_configs`
but this doesn't create `dataset_info.json` and try to use it
```
INFO:nlp.load:Checking datasets/bookcorpus/bookcorpus.py for additional imports.
INFO:filelock:Lock 139795325778640 acquired on datasets/bookcorpus/bookcorpus.py.lock
INFO:nlp.load:Found main folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus
INFO:nlp.load:Found specific version folder for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9
INFO:nlp.load:Found script file from datasets/bookcorpus/bookcorpus.py to /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.py
INFO:nlp.load:Couldn't find dataset infos file at datasets/bookcorpus/dataset_infos.json
INFO:nlp.load:Found metadata file for dataset datasets/bookcorpus/bookcorpus.py at /home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/datasets/bookcorpus/8e84759446cf68d0b0deb3417e60cc331f30a3bbe58843de18a0f48e87d1efd9/bookcorpus.json
INFO:filelock:Lock 139795325778640 released on datasets/bookcorpus/bookcorpus.py.lock
INFO:nlp.builder:Overwrite dataset info from restored data version.
INFO:nlp.info:Loading Dataset info from /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0
Traceback (most recent call last):
File "nlp-cli", line 37, in <module>
service.run()
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/commands/test.py", line 78, in run
builders.append(builder_cls(name=config.name, data_dir=self._data_dir))
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 610, in __init__
super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/builder.py", line 152, in __init__
self.info = DatasetInfo.from_directory(self._cache_dir)
File "/home/yisiang/miniconda3/envs/ml/lib/python3.7/site-packages/nlp/info.py", line 157, in from_directory
with open(os.path.join(dataset_info_dir, DATASET_INFO_FILENAME), "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/dataset_info.json'
```
btw, `ls /home/yisiang/.cache/huggingface/datasets/book_corpus/plain_text/1.0.0/` show me nothing is in the directory.
I have also pushed the script to my fork [bookcorpus.py](https://github.com/richardyy1188/nlp/blob/bookcorpusdev/datasets/bookcorpus/bookcorpus.py).
Hi, I rebase my local copy to `fix-empty-cache-dir`, and try to run again `python nlp-cli test datasets/bookcorpus --save_infos --all_configs`.
I got this,
```
Traceback (most recent call last):
File "nlp-cli", line 10, in <module>
from nlp.commands.run_beam import RunBeamCommand
File "/home/yisiang/nlp/src/nlp/commands/run_beam.py", line 6, in <module>
import apache_beam as beam
ModuleNotFoundError: No module named 'apache_beam'
```
And after I installed it. I got this
```
File "/home/yisiang/nlp/src/nlp/datasets/bookcorpus/aea0bd5142d26df645a8fce23d6110bb95ecb81772bb2a1f29012e329191962c/bookcorpus.py", line 88, in _split_generators
downloaded_path_or_paths = dl_manager.download_custom(_GDRIVE_FILE_ID, download_file_from_google_drive)
File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 128, in download_custom
downloaded_path_or_paths = map_nested(url_to_downloaded_path, url_or_urls)
File "/home/yisiang/nlp/src/nlp/utils/py_utils.py", line 172, in map_nested
return function(data_struct)
File "/home/yisiang/nlp/src/nlp/utils/download_manager.py", line 126, in url_to_downloaded_path
return os.path.join(self._download_config.cache_dir, hash_url_to_filename(url))
File "/home/yisiang/miniconda3/envs/nlppr/lib/python3.7/posixpath.py", line 80, in join
a = os.fspath(a)
```
The problem is when I print `self._download_config.cache_dir` using pdb, it is `None`.
Did I miss something ? Or can you provide a workaround first so I can keep testing my script ? | [
-0.11650604009628296,
0.1242494136095047,
-0.08600330352783203,
0.057063568383455276,
0.01767542026937008,
0.14669117331504822,
0.16692225635051727,
0.3094637393951416,
-0.2007138878107071,
0.02181672304868698,
0.060289181768894196,
0.5790072083473206,
-0.09350878745317459,
0.08411595225334167,
0.2967384159564972,
-0.06326794624328613,
0.07989370822906494,
0.3547499179840088,
0.43980473279953003,
-0.17095541954040527,
-0.3041883111000061,
0.3338650166988373,
-0.08771346509456635,
0.013870462775230408,
-0.33899202942848206,
-0.13993926346302032,
-0.1987459510564804,
0.15173575282096863,
-0.368901789188385,
-0.24407561123371124,
0.486727237701416,
-0.07338802516460419,
0.1036611795425415,
0.5475576519966125,
-0.00011407753481762484,
0.010212428867816925,
0.37250185012817383,
-0.15201829373836517,
-0.4637064039707184,
-0.5580251812934875,
-0.009793616831302643,
-0.40277886390686035,
0.11497397720813751,
-0.3410837948322296,
-0.12306158244609833,
-0.32428473234176636,
0.20140376687049866,
-0.13952875137329102,
-0.11613085865974426,
0.45088276267051697,
0.17983706295490265,
0.06183247268199921,
0.18421098589897156,
-0.08671896159648895,
0.00012563914060592651,
0.2762158513069153,
-0.2401410937309265,
0.20989365875720978,
0.5791475772857666,
-0.031257472932338715,
0.2688179016113281,
-0.04652172699570656,
-0.06592714041471481,
-0.29323452711105347,
0.259123831987381,
0.15986433625221252,
0.015617646276950836,
-0.4965939223766327,
0.026163574308156967,
0.07965251803398132,
0.7736670970916748,
-0.5069003701210022,
-0.3475550413131714,
0.07921197265386581,
0.1948908567428589,
0.08152276277542114,
0.02613278105854988,
0.3870602250099182,
-0.003624662756919861,
-0.14681752026081085,
-0.4909811019897461,
-0.3836778700351715,
-0.13943105936050415,
0.354118287563324,
0.2187720537185669,
0.24535177648067474,
-0.033795323222875595,
0.04224725812673569,
-0.01601569727063179,
-0.05356830358505249,
-0.13028821349143982,
-0.18597029149532318,
-0.12865746021270752,
0.2532888352870941,
-0.053666356950998306,
-0.5121888518333435,
0.16871678829193115,
-0.00768686830997467,
-0.0895366221666336,
0.06112837791442871,
-0.03262186795473099,
-0.27464136481285095,
-0.2865633964538574,
0.1832764744758606,
0.2046540379524231,
-0.1106356680393219,
0.2796586751937866,
0.0797305479645729,
0.07748337090015411,
0.05583786964416504,
0.07856911420822144,
-0.06780105084180832,
-0.033566173166036606,
0.015616568736732006,
-0.12776359915733337,
-0.099432572722435,
0.32456570863723755,
-0.07417789101600647,
0.07186060398817062,
0.0012804437428712845,
-0.19816875457763672,
-0.13331182301044464,
0.1172710508108139,
0.2936829626560211,
-0.07195799052715302,
-0.2800121307373047,
-0.025149721652269363,
0.2071140557527542,
-0.4114203453063965,
-0.011661057360470295,
-0.16452325880527496,
0.4944564402103424,
-0.2056020200252533,
-0.02622893638908863,
0.3875798285007477,
0.10167045891284943,
0.3338846266269684,
-0.013087350875139236,
-0.3687376379966736,
-0.1556919813156128,
0.39184659719467163,
-0.21217407286167145,
-0.17901214957237244,
0.22895339131355286,
0.11604584753513336,
0.11397738009691238,
-0.03786296769976616,
-0.36688798666000366,
-0.3832911550998688,
0.19166448712348938,
-0.23506081104278564,
-0.348147451877594,
-0.28387200832366943,
0.19338971376419067,
0.06136824190616608,
-0.23428472876548767,
-0.3146072328090668,
0.2751883864402771,
0.30977514386177063,
-0.343521386384964,
0.0633966252207756,
0.07586309313774109,
-0.13430123031139374,
-0.23051322996616364,
-0.09996914863586426,
0.3998727798461914,
-0.4836800694465637,
-0.07219953835010529,
-0.32150280475616455,
-0.009418342262506485,
0.19101352989673615,
-0.03528234735131264,
-0.20967501401901245,
0.517199695110321,
-0.13384753465652466,
0.11128517985343933,
0.5153877139091492,
-0.18933285772800446,
-0.18746136128902435,
0.2695927917957306,
-0.19403092563152313,
-0.2928597331047058,
0.07255545258522034,
0.2507293224334717,
-0.04141528531908989,
-0.16878648102283478,
0.13270951807498932,
0.0917857438325882,
-0.12619255483150482,
0.04947365075349808,
0.08353875577449799,
-0.006045112386345863,
0.05104051157832146,
0.1193809062242508,
-0.23835279047489166,
0.10864432901144028,
0.1355070024728775,
0.2590746581554413,
0.09780141711235046,
-0.03122762218117714,
0.1779916137456894,
0.48472481966018677,
0.38853031396865845,
-0.005946815013885498,
-0.022813741117715836,
-0.07083286345005035,
-0.33621495962142944,
-0.08187152445316315,
-0.23699910938739777,
0.4043164849281311,
0.033765487372875214,
-0.002795826643705368,
-0.47163325548171997,
-0.19266775250434875,
0.03348172456026077,
-0.11761438846588135,
0.08502388000488281,
0.01621061936020851,
0.3978444039821625,
0.10037890076637268,
-0.25381410121917725,
0.07752399891614914,
-0.17115625739097595,
0.06652316451072693,
-0.8675047159194946,
0.3471955358982086,
-0.20132280886173248,
-0.20943786203861237,
0.24705377221107483,
0.23108237981796265,
-0.017621144652366638,
-0.1472959816455841,
0.15028589963912964,
0.22656866908073425,
-0.14524270594120026,
0.3361054062843323,
0.22270828485488892,
0.12884290516376495,
0.28853467106819153,
-0.20380888879299164,
0.14635726809501648,
0.049376022070646286,
0.19623428583145142,
-0.021721936762332916,
-0.08311382681131363,
0.053555890917778015,
0.1434139758348465,
-0.05503005534410477,
0.16171780228614807,
-0.04391339421272278,
0.14021269977092743,
-0.17860864102840424,
0.07698776572942734,
-0.24211715161800385,
0.17556267976760864,
0.07551045715808868,
0.13160847127437592,
0.048624731600284576,
-0.07722697407007217,
0.23074999451637268,
0.30670589208602905,
0.05310070887207985,
0.04318757355213165,
0.15799441933631897,
0.03988137096166611,
-0.09149569272994995,
-0.16357815265655518,
0.28643596172332764,
0.43378931283950806,
0.13054433465003967,
-0.17257362604141235,
-0.04459773749113083,
-0.10544028878211975,
-0.23387347161769867,
0.17621248960494995,
-0.14458665251731873,
0.18157008290290833,
0.05537589639425278,
0.20645758509635925,
-0.09188329428434372,
-0.19817262887954712,
-0.45030760765075684,
0.2582753300666809,
0.29156211018562317,
0.012532498687505722,
0.23301927745342255,
-0.04835966229438782,
-0.2889656722545624,
-0.10235709697008133,
-0.21999654173851013,
-0.027930598706007004,
-0.10974540561437607,
0.044951364398002625,
0.21489818394184113,
0.21191439032554626,
-0.12067180126905441,
-0.19590221345424652,
0.18914280831813812,
-0.08827930688858032,
-0.35751524567604065,
-0.08856144547462463,
-0.2564786374568939,
-0.18699002265930176,
0.10573489964008331,
0.03482484444975853,
0.14009982347488403,
0.24952451884746552,
-0.1843913197517395,
0.010568918660283089,
-0.1660454273223877,
-0.2570820152759552,
0.01808084547519684,
-0.15953248739242554,
0.19502750039100647,
0.17406287789344788,
0.0597916804254055,
-0.26083260774612427,
-0.42547115683555603,
0.0775657519698143,
-0.01162683218717575,
-0.4032611548900604,
0.0009182281792163849,
-0.17336922883987427,
-0.1220971941947937,
-0.04074857383966446,
-0.7119970917701721,
-0.3251381516456604,
-0.21316060423851013,
-0.015592731535434723,
0.16318124532699585,
0.19772620499134064,
0.41301849484443665,
-0.0757456049323082,
0.10820756107568741,
0.17231912910938263,
0.2316487580537796,
-0.06923350691795349,
-0.3634285628795624,
0.39431896805763245,
-0.5005174875259399,
-0.2842503786087036,
0.188923180103302,
-0.4618217349052429,
0.23753440380096436,
-0.17418192327022552,
-0.5138139724731445,
0.016808003187179565,
-0.29809877276420593,
0.005920488387346268,
0.13436755537986755,
0.2339944839477539,
0.4963957965373993,
-0.02793801762163639,
-0.05390619486570358,
-0.10333165526390076,
-0.4580046236515045,
0.022857435047626495,
0.4239569902420044,
0.6483791470527649,
-0.09557946026325226,
0.17668741941452026,
-0.4366551637649536,
0.13951081037521362,
0.3806608319282532,
-0.02299761399626732,
0.45965832471847534,
-0.06421405076980591,
0.28421756625175476,
-0.28907185792922974,
-0.3776218593120575,
0.20217223465442657,
0.2846027612686157,
-0.09684188663959503,
0.19153878092765808,
0.08896593749523163,
-0.19004975259304047,
-0.18134494125843048,
-0.12971466779708862,
-0.4387229382991791,
-0.06704137474298477,
-0.1606694906949997,
-0.015445750206708908,
0.2671149969100952,
0.08936916291713715,
-0.06376702338457108,
-0.14562660455703735,
-0.27571457624435425,
-0.2235913723707199,
0.47275394201278687,
0.19740989804267883,
0.12087168544530869,
-0.27663061022758484,
-0.06120681390166283,
-0.3073074519634247,
-0.03779502213001251,
0.023885419592261314,
0.2937769293785095,
-0.20295439660549164,
0.25542232394218445,
0.06291958689689636,
-0.012339869514107704,
0.5490015745162964,
-0.2908593714237213,
-0.2055511325597763,
0.2633002996444702,
-0.0580422580242157,
-0.22411471605300903,
0.1805138736963272,
-0.10403399169445038,
0.6076476573944092,
0.24335238337516785,
0.5753419399261475,
-0.31156519055366516,
0.29907312989234924,
0.12145089358091354,
0.37018489837646484,
-0.23179858922958374,
-0.28618961572647095,
-0.19550049304962158,
-0.4630236327648163,
-0.13890404999256134,
-0.3091448247432709,
-0.3363454043865204,
0.47525447607040405,
0.23033149540424347,
0.1704016625881195,
0.3116019666194916,
-0.1196058839559555,
0.2841067612171173,
0.11535453796386719,
0.2576378583908081,
0.23350411653518677,
0.4246393144130707,
-0.10522788763046265,
-0.06710581481456757,
0.36698272824287415,
0.6004719138145447,
0.2031097114086151,
-0.09567336738109589,
0.12842047214508057,
-0.03640365228056908,
0.39536717534065247,
-0.013245105743408203,
0.2669265568256378,
-0.10981980711221695,
0.021094217896461487,
-0.21841256320476532,
-0.11553164571523666,
-0.02340986207127571,
-0.0193971935659647,
-0.2241462767124176,
-0.6888648271560669,
-0.39393138885498047,
0.24237999320030212,
-0.010685604065656662,
0.3002980351448059,
0.2865830063819885,
0.14248131215572357,
-0.22004304826259613,
0.4714861512184143,
-0.21347573399543762,
0.8308845162391663,
-0.052655644714832306,
-0.02797051891684532,
0.04540892317891121,
0.15106680989265442,
0.7034146785736084,
-0.5142813920974731,
0.41265106201171875,
-0.389102578163147,
-0.026909012347459793,
0.05157847702503204,
-0.17580024898052216,
0.17506343126296997,
0.41788285970687866,
-0.4325258135795593,
0.19300426542758942,
-0.0822676569223404,
-0.11858274042606354,
-0.1702665239572525,
0.46463096141815186,
-0.1232813373208046,
-0.3681623935699463,
-0.3878662586212158,
0.12439005076885223,
-0.15596148371696472,
0.38852307200431824,
-0.09368207305669785,
-0.017325509339571,
-0.5373474359512329,
-0.02376764826476574,
-0.21049764752388,
-0.02206006832420826,
0.3186567723751068,
0.24980519711971283,
0.542542576789856,
-0.39588630199432373,
0.16806171834468842,
0.1537735015153885,
0.5115236639976501,
0.32337135076522827,
-0.21308326721191406,
-0.04314203932881355,
-0.00856471061706543,
-0.4150433838367462,
0.0861748605966568,
0.02331674098968506,
0.3259398341178894,
0.002712935209274292,
-0.24869322776794434,
0.1554381251335144,
-0.09102259576320648,
-0.053070589900016785,
-0.09715502709150314,
-0.14653371274471283,
-0.24173001945018768,
-0.27599090337753296,
-0.36252593994140625,
0.25870048999786377,
-0.16885295510292053,
-0.1415451318025589,
0.0788360983133316,
0.2971159815788269,
-0.13539135456085205,
0.11851507425308228,
0.02025732398033142,
-0.1812777817249298,
-0.2206898182630539,
0.23206505179405212,
0.3509170114994049,
-0.17117859423160553,
0.45930755138397217,
0.21996094286441803,
-0.08074347674846649,
-0.23452621698379517,
0.10708869248628616,
0.12530653178691864,
-0.12980180978775024,
0.211233451962471,
0.36168479919433594,
0.15047208964824677,
0.28391551971435547,
0.3608112335205078,
-0.16636331379413605,
0.16324834525585175,
0.07301375269889832,
-0.3862997889518738,
-0.4366525411605835,
0.24695740640163422,
0.024427806958556175,
0.09015452861785889,
0.1384781301021576,
0.38774973154067993,
0.2723521292209625,
0.03506159037351608,
-0.26488178968429565,
-0.04556705057621002,
-0.3696904480457306,
0.2637805640697479,
0.2491614818572998,
0.06050164997577667,
-0.21608473360538483,
-0.057571571320295334,
0.0510149747133255,
-0.20329947769641876,
-0.029042888432741165,
-0.1544078290462494,
-0.22161297500133514,
0.1520266979932785,
0.12606370449066162,
0.015447755344212055,
-0.12458059191703796,
-0.2296668142080307,
-0.23324671387672424,
-0.01994033344089985,
-0.2605072855949402,
0.17805388569831848,
0.1019098311662674,
0.1546177864074707,
0.09359808266162872,
-0.3269779086112976,
-0.10735556483268738,
-0.014843817800283432,
-0.0619531124830246,
0.3862460255622864,
0.0843537300825119,
0.04523332789540291,
0.1161661297082901,
0.04253898561000824,
-0.4028133749961853,
0.07011277973651886,
-0.15169364213943481,
0.08376258611679077,
0.14908653497695923,
-0.1571454405784607,
0.26674318313598633,
0.02179848589003086,
0.10998359322547913,
0.3466065526008606,
-0.13597331941127777,
0.14051741361618042,
0.26055315136909485,
0.11154508590698242,
-0.16209043562412262,
-0.044080477207899094,
0.327946275472641,
0.0434805266559124,
-0.012227021157741547,
0.31466037034988403,
-0.1331053078174591,
0.13106928765773773,
-0.14787784218788147,
0.18498826026916504,
0.32467788457870483,
-0.06314773857593536,
0.257734477519989,
0.13640952110290527,
0.0012925006449222565,
-0.0977020263671875,
0.25944408774375916,
0.18815235793590546,
-0.08532101660966873,
0.18237777054309845,
0.04508889839053154,
0.39739370346069336,
0.3023516535758972,
0.28611889481544495,
0.21092650294303894,
-0.22499991953372955,
0.050446875393390656,
-0.20212405920028687,
0.25073349475860596,
-0.04192554950714111,
0.08260251581668854,
0.21872478723526,
-0.19586797058582306,
0.3018074631690979,
-0.17804096639156342,
0.1030375137925148,
-0.3208482265472412,
-0.06559986621141434,
-0.11257021874189377,
-0.26747167110443115,
0.25465887784957886,
-0.08748014271259308,
0.029255658388137817,
-0.10721838474273682,
-0.1549132764339447,
-0.05317839980125427,
-0.055611997842788696,
-0.32744279503822327,
0.41589075326919556,
-0.014811839908361435,
0.020927101373672485,
-0.1005132794380188,
0.31730377674102783,
-0.16874612867832184,
-0.12283183634281158,
-0.12241125106811523,
0.34476178884506226,
0.307612806558609,
0.34696561098098755,
0.1381118893623352,
0.26454317569732666,
-0.07761768996715546,
-0.19061796367168427,
0.11390818655490875,
0.49975842237472534,
0.45840632915496826,
-0.10555887222290039,
0.02512771263718605,
0.05902813374996185,
-0.024464791640639305,
0.13379593193531036,
0.5156468749046326,
0.03814973682165146,
0.16639664769172668,
0.4495270252227783,
-0.11990964412689209,
-0.12360410392284393,
-0.25661754608154297,
0.29969796538352966,
-0.4078594446182251,
-0.1276361048221588,
0.5206470489501953,
0.04034674912691116,
-0.009024376049637794,
-0.32896244525909424,
0.07926280796527863,
-0.046772416681051254,
0.2938721179962158,
0.3701542317867279,
0.12014270573854446,
-0.2625783085823059,
-0.24848170578479767,
-0.3296501040458679,
-0.06240653246641159,
-0.11113947629928589,
-0.16207771003246307,
-0.225221186876297,
0.36316582560539246,
0.026146098971366882,
0.18046073615550995,
-0.3628830909729004,
0.2894382178783417,
-0.14855656027793884,
0.0748760923743248,
-0.14089810848236084,
-0.33819055557250977,
-0.15416380763053894,
0.19007034599781036,
-0.08194994926452637,
-0.08714379370212555,
-0.018498677760362625,
-0.27565231919288635,
-0.011309776455163956,
-0.43276023864746094,
-0.21586306393146515,
0.21756558120250702,
0.34732621908187866,
0.10093306005001068,
0.07363957166671753,
0.37652137875556946,
-0.2977442145347595,
-0.18720893561840057,
-0.19395098090171814,
-0.2278357595205307,
-0.095120869576931,
0.27850285172462463,
0.28277188539505005,
0.37742602825164795,
-0.3015461266040802,
0.36142975091934204,
-0.14139340817928314,
0.09885432571172714,
-0.03094763681292534,
0.11747507005929947,
-0.09106121212244034,
0.012101512402296066,
-0.29160940647125244,
-0.0935949757695198,
0.07177763432264328,
0.2724190056324005,
0.0033913925290107727,
0.3202648460865021,
-0.09971395134925842,
-0.4491749405860901,
0.46735310554504395,
-0.20926940441131592,
-0.1886318475008011,
-0.027947869151830673,
0.027369774878025055,
-0.29855096340179443,
-0.2551030218601227,
-0.24643108248710632,
0.0702248141169548,
0.35536715388298035,
-0.28132665157318115,
0.01821616291999817,
0.0918259471654892,
-0.19161643087863922,
0.04781404510140419,
-0.02698994055390358,
0.17802590131759644,
0.10363827645778656,
0.008864039555191994,
-0.11351382732391357,
0.041938379406929016
] |
https://github.com/huggingface/datasets/issues/238 | [Metric] Bertscore : Warning : Empty candidate sentence; Setting recall to be 0. | This print statement comes from the official implementation of bert_score (see [here](https://github.com/Tiiiger/bert_score/blob/master/bert_score/utils.py#L343)). The warning shows up only if the attention mask outputs no candidate.
Right now we want to only use official code for metrics to have fair evaluations, so I'm not sure we can do anything about it. Maybe you can try to create an issue on their [repo](https://github.com/Tiiiger/bert_score) ? | When running BERT-Score, I'm meeting this warning :
> Warning: Empty candidate sentence; Setting recall to be 0.
Code :
```
import nlp
metric = nlp.load_metric("bertscore")
scores = metric.compute(["swag", "swags"], ["swags", "totally something different"], lang="en", device=0)
```
---
**What am I doing wrong / How can I hide this warning ?** | 61 | [Metric] Bertscore : Warning : Empty candidate sentence; Setting recall to be 0.
When running BERT-Score, I'm meeting this warning :
> Warning: Empty candidate sentence; Setting recall to be 0.
Code :
```
import nlp
metric = nlp.load_metric("bertscore")
scores = metric.compute(["swag", "swags"], ["swags", "totally something different"], lang="en", device=0)
```
---
**What am I doing wrong / How can I hide this warning ?**
This print statement comes from the official implementation of bert_score (see [here](https://github.com/Tiiiger/bert_score/blob/master/bert_score/utils.py#L343)). The warning shows up only if the attention mask outputs no candidate.
Right now we want to only use official code for metrics to have fair evaluations, so I'm not sure we can do anything about it. Maybe you can try to create an issue on their [repo](https://github.com/Tiiiger/bert_score) ? | [
0.21720875799655914,
-0.13527552783489227,
0.14042700827121735,
0.16189876198768616,
0.1744062751531601,
0.06719107180833817,
-0.030321959406137466,
0.26454958319664,
0.43676066398620605,
0.3824988603591919,
0.40033596754074097,
0.12437181174755096,
-0.25700145959854126,
-0.4931720793247223,
-0.19989746809005737,
-0.13574238121509552,
0.06772002577781677,
0.4522249102592468,
0.5661278963088989,
-0.251926988363266,
-0.2824741005897522,
-0.09532817453145981,
-0.3659347891807556,
0.22466717660427094,
-0.26901975274086,
0.055260784924030304,
0.022138992324471474,
-0.2626543641090393,
-0.18086326122283936,
-0.588503360748291,
0.17385061085224152,
-0.18839336931705475,
-0.2331286519765854,
0.23774179816246033,
-0.00012839818373322487,
-0.25155073404312134,
0.4155659079551697,
-0.08370168507099152,
0.2523781955242157,
-0.43103867769241333,
-0.4188615381717682,
-0.13713306188583374,
0.2361353039741516,
-0.23898038268089294,
0.018732775002717972,
0.2030012607574463,
0.15170818567276,
-0.16453222930431366,
0.06861719489097595,
0.18617136776447296,
0.012134812772274017,
0.2936764359474182,
-0.10588806867599487,
-0.061106402426958084,
0.022768307477235794,
-0.13133840262889862,
-0.02757551334798336,
0.04138694703578949,
-0.19263404607772827,
-0.21396832168102264,
-0.049575887620449066,
0.523077130317688,
-0.3952680230140686,
0.12015603482723236,
0.6345877647399902,
0.09058601409196854,
0.2315475046634674,
-0.2104472815990448,
0.014783302322030067,
0.27372127771377563,
-0.12098599225282669,
-0.1175496056675911,
-0.027837080880999565,
-0.0735122486948967,
0.3021909296512604,
-0.34314975142478943,
0.1852404773235321,
0.07069319486618042,
-0.014291291125118732,
-0.21163299679756165,
-0.30992013216018677,
-0.23575341701507568,
-0.27473852038383484,
-0.04520732909440994,
-0.047243520617485046,
0.32644209265708923,
0.07715924084186554,
-0.06478995829820633,
0.2856432795524597,
-0.14467811584472656,
-0.09321374446153641,
-0.18928541243076324,
-0.12890487909317017,
0.1941079944372177,
-0.08560982346534729,
-0.2921287417411804,
0.18141376972198486,
-0.39836087822914124,
0.24138590693473816,
-0.48228663206100464,
0.13002102077007294,
-0.16159313917160034,
0.012531873770058155,
0.020525846630334854,
0.2635144591331482,
0.4210563600063324,
0.2929510176181793,
0.21045763790607452,
-0.263224720954895,
0.18330834805965424,
0.18790963292121887,
-0.03038666397333145,
0.13825377821922302,
0.1980028599500656,
0.42770323157310486,
0.218293696641922,
-0.0025749187916517258,
-0.306058794260025,
-0.37877821922302246,
0.36670807003974915,
-0.6508224010467529,
-0.1554355025291443,
0.1779661923646927,
0.09617893397808075,
-0.19080643355846405,
0.19779857993125916,
-0.12019485235214233,
0.15263481438159943,
-0.2993698716163635,
-0.22512169182300568,
-0.2421460747718811,
0.10630501806735992,
-0.2950395345687866,
-0.01094646006822586,
0.12676073610782623,
0.16873548924922943,
0.2033834606409073,
-0.003216286189854145,
0.4691493511199951,
0.1447553187608719,
-0.003000682219862938,
-0.41757732629776,
0.3653108477592468,
0.2870751619338989,
0.001698039472103119,
-0.07931118458509445,
0.3670930564403534,
-0.14234799146652222,
-0.11156188696622849,
0.40287846326828003,
-0.13672927021980286,
-0.14106568694114685,
0.1487497240304947,
0.04095790162682533,
-0.5017951130867004,
-0.01003781333565712,
-0.12011083215475082,
0.4336760640144348,
-0.18260234594345093,
0.04532700404524803,
0.11144664138555527,
-0.08207444101572037,
-0.16787181794643402,
-0.07206448167562485,
0.39504286646842957,
0.6641336679458618,
-0.031153131276369095,
-0.15087690949440002,
0.03430013358592987,
0.15367428958415985,
0.2091035693883896,
-0.022478502243757248,
0.12606313824653625,
0.29541540145874023,
0.021026769652962685,
0.21905912458896637,
0.16167901456356049,
-0.54075688123703,
-0.0825529620051384,
-0.11912879347801208,
-0.08885608613491058,
-0.045251280069351196,
-0.039928607642650604,
-0.012578480876982212,
-0.1445958912372589,
-0.07708478718996048,
0.15685060620307922,
-0.431829571723938,
-0.08282285928726196,
0.002968171611428261,
-0.3594416379928589,
-0.20307160913944244,
0.2426878809928894,
-0.2542191743850708,
0.19529858231544495,
0.12293500453233719,
-0.3715902864933014,
0.6814707517623901,
-0.06561031192541122,
-0.03771747276186943,
0.028673510998487473,
-0.21802814304828644,
0.2738715410232544,
-0.021869860589504242,
-0.17361557483673096,
0.07164561003446579,
0.13279283046722412,
-0.018219120800495148,
-0.43214261531829834,
0.12999047338962555,
0.29067981243133545,
-0.2665610909461975,
-0.20600131154060364,
-0.14741048216819763,
-0.2199857085943222,
-0.19806592166423798,
0.012501675635576248,
-0.2633134126663208,
0.009122539311647415,
0.18021218478679657,
-0.21413441002368927,
-0.2851106822490692,
-0.17544950544834137,
0.08871287852525711,
0.14574973285198212,
-0.14548051357269287,
0.11120376735925674,
-0.10304150730371475,
0.07960989326238632,
0.44814208149909973,
0.4937628209590912,
0.33030247688293457,
0.016116777434945107,
0.2067018449306488,
0.010452039539813995,
-0.13259729743003845,
0.035025790333747864,
0.05395965278148651,
0.1724950224161148,
-0.43147289752960205,
0.13359571993350983,
0.1834000051021576,
-0.025970764458179474,
0.09592825919389725,
-0.1345396637916565,
0.039060696959495544,
0.08922101557254791,
0.29430943727493286,
-0.23724722862243652,
-0.12048937380313873,
-0.35906121134757996,
-0.07625304162502289,
0.1567564308643341,
-0.2641414403915405,
-0.02158757671713829,
0.05547134578227997,
-0.0585479736328125,
-0.03924310952425003,
-0.1343018263578415,
-0.2703169882297516,
0.22942832112312317,
0.22749516367912292,
0.1667669117450714,
0.08865341544151306,
0.06643369793891907,
-0.20243200659751892,
-0.04732877016067505,
-0.4831431806087494,
0.2371382862329483,
0.17029651999473572,
-0.04705942049622536,
0.08297127485275269,
-0.272865891456604,
-0.14483819901943207,
0.05310994014143944,
0.41245973110198975,
-0.20576722919940948,
-0.04805246740579605,
-0.00683042174205184,
0.0476071797311306,
0.09825398772954941,
0.056281041353940964,
-0.09622636437416077,
0.2895219624042511,
-0.33352258801460266,
0.08283641189336777,
0.047094300389289856,
-0.19011038541793823,
-0.1628676950931549,
0.03261955827474594,
-0.3311609625816345,
-0.07701141387224197,
0.20445820689201355,
-0.1896674782037735,
-0.06714744865894318,
0.15454621613025665,
-0.03887028619647026,
0.2940201163291931,
-0.04482710734009743,
-0.029598819091916084,
-0.13414998352527618,
-0.08877929300069809,
-0.2249080240726471,
-0.024991294369101524,
-0.3071591556072235,
0.281791627407074,
0.10915768891572952,
-0.18894657492637634,
-0.1318504512310028,
0.16483353078365326,
-0.17325875163078308,
0.17265304923057556,
-0.2086051106452942,
-0.002817731350660324,
0.024670548737049103,
-0.023198090493679047,
-0.5214917063713074,
0.09408839046955109,
0.1555965542793274,
-0.11032537370920181,
0.039859406650066376,
0.0614582821726799,
0.10273189842700958,
0.33873671293258667,
-0.2706693410873413,
-0.36210566759109497,
0.26697129011154175,
0.03264210745692253,
0.012154482305049896,
-0.09663669019937515,
0.13886067271232605,
-0.026236388832330704,
0.08837416023015976,
0.31461554765701294,
-0.2663768529891968,
-0.25837406516075134,
-0.1762838065624237,
-0.28777340054512024,
0.27032262086868286,
0.010318459942936897,
-0.10036507248878479,
0.31936678290367126,
-0.15774811804294586,
0.12302170693874359,
-0.4959371089935303,
-0.37082481384277344,
-0.614567220211029,
0.18393740057945251,
-0.4545835256576538,
-0.1591227650642395,
-0.0006669033318758011,
0.11899751424789429,
-0.07649242877960205,
0.003376619890332222,
-0.08857045322656631,
0.0732884556055069,
0.24264860153198242,
-0.40847668051719666,
0.42192286252975464,
-0.2583237290382385,
-0.21406900882720947,
-0.10206571221351624,
0.4282715916633606,
0.3861437141895294,
0.22283707559108734,
-0.02949974685907364,
0.15570487082004547,
0.3310790956020355,
-0.030148930847644806,
-0.024395762011408806,
0.17027364671230316,
0.5506832599639893,
-0.014459098689258099,
0.1274457573890686,
-0.2651350796222687,
0.14736230671405792,
-0.027988938614726067,
-0.16485705971717834,
0.014629926532506943,
-0.2897580862045288,
0.07213903963565826,
0.097027987241745,
0.26344990730285645,
-0.020043576136231422,
0.12035002559423447,
0.01145055890083313,
-0.31015968322753906,
-0.11343102157115936,
0.06941424310207367,
0.549843430519104,
0.010072815231978893,
0.11184893548488617,
-0.30501222610473633,
-0.3805800974369049,
0.1755414456129074,
0.14606565237045288,
0.21115830540657043,
-0.17782005667686462,
0.05927158147096634,
0.19559329748153687,
0.2941499948501587,
0.47302675247192383,
-0.12436669319868088,
0.16178935766220093,
0.3088490068912506,
0.20173291862010956,
0.24597834050655365,
0.1690642386674881,
-0.36907923221588135,
-0.4282015264034271,
0.1055850088596344,
-0.10164722800254822,
-0.43018537759780884,
-0.1570991575717926,
0.3982706367969513,
-0.08553747832775116,
-0.18569262325763702,
-0.1426779329776764,
-0.6614425182342529,
0.19826170802116394,
0.19894231855869293,
0.4220897853374481,
0.09530051797628403,
0.42856550216674805,
0.2011745572090149,
0.26416924595832825,
0.09672306478023529,
-0.011139582842588425,
0.35450607538223267,
0.059380050748586655,
0.21952566504478455,
0.09096501022577286,
-0.048131994903087616,
0.40851810574531555,
-0.1914627104997635,
0.222233846783638,
0.05902813374996185,
-0.10556836426258087,
-0.5071744322776794,
0.09683502465486526,
0.09931589663028717,
0.5091098546981812,
0.12251116335391998,
0.2801991105079651,
0.07547478377819061,
-0.22580480575561523,
0.28716611862182617,
-0.21178685128688812,
0.36908766627311707,
0.22396326065063477,
-0.11886359751224518,
0.11578703671693802,
-0.1464339643716812,
0.28513309359550476,
0.1957729458808899,
0.04805468022823334,
-0.31509140133857727,
0.43768882751464844,
0.014454911462962627,
0.14092908799648285,
0.42755126953125,
0.9575662016868591,
0.07306087762117386,
0.04362541809678078,
0.25490760803222656,
-0.0326424315571785,
0.7441514730453491,
-0.2148561179637909,
0.08979283273220062,
-0.06835101544857025,
0.21483772993087769,
0.022926313802599907,
-0.002236373722553253,
0.06073565408587456,
-0.04395747929811478,
-0.21711529791355133,
0.6109156608581543,
-0.1733098179101944,
-0.1176033765077591,
0.024689532816410065,
-0.027093373239040375,
0.10401493310928345,
-0.1634569764137268,
-0.0812351405620575,
-0.07236374914646149,
-0.05229572206735611,
0.22826439142227173,
-0.010793589055538177,
-0.05511758476495743,
0.237798810005188,
-0.20941263437271118,
-0.2974385917186737,
-0.0019059441983699799,
0.026966609060764313,
-0.5267812609672546,
0.1464628130197525,
-0.2675233483314514,
0.36079880595207214,
0.03210167586803436,
0.46352142095565796,
0.41840940713882446,
-0.18074674904346466,
0.10511678457260132,
-0.15274402499198914,
-0.0067378683015704155,
-0.14569002389907837,
0.2480381429195404,
0.09907577186822891,
-0.020511671900749207,
-0.5675639510154724,
0.3666432201862335,
-0.24065519869327545,
0.19315814971923828,
-0.1059945821762085,
-0.14595571160316467,
0.5476579070091248,
-0.03665538132190704,
0.104598268866539,
0.0569632425904274,
0.3916787803173065,
0.07116445899009705,
0.053895141929388046,
0.07446333020925522,
-0.01936277002096176,
-0.151497483253479,
0.09091491997241974,
-0.5053489208221436,
0.1630580574274063,
0.09837018698453903,
0.20543178915977478,
-0.4433361291885376,
0.3906976580619812,
-0.41399604082107544,
0.07976856827735901,
-0.09928438067436218,
-0.06095847859978676,
0.2084020972251892,
-0.13743558526039124,
0.0007638521492481232,
0.3673328459262848,
-0.08686800301074982,
0.07700558751821518,
0.44774889945983887,
0.13020513951778412,
0.23077267408370972,
-0.03810840845108032,
0.06822638213634491,
-0.1208127811551094,
0.2397722601890564,
-0.29808729887008667,
-0.1675778180360794,
0.037303753197193146,
0.30757084488868713,
0.3301418423652649,
-0.014358187094330788,
-0.13382786512374878,
-0.1941986083984375,
-0.5053741931915283,
0.15809090435504913,
-0.43431779742240906,
0.1574811041355133,
0.20920079946517944,
-0.133743554353714,
-0.1719529926776886,
0.10557907819747925,
-0.23207908868789673,
-0.013411130756139755,
-0.14554302394390106,
0.2351507842540741,
0.038477443158626556,
0.18238431215286255,
-0.23042698204517365,
-0.05990229547023773,
0.16588056087493896,
-0.05324177071452141,
-0.16792304813861847,
0.15519440174102783,
0.09452735632658005,
0.5458922982215881,
-0.06375780701637268,
0.4176989197731018,
-0.28636634349823,
-0.28152552247047424,
0.23753276467323303,
0.22738097608089447,
-0.11168619990348816,
-0.09166444838047028,
0.0589643158018589,
-0.08631172776222229,
0.15686094760894775,
0.07994449138641357,
0.12329473346471786,
0.12096568942070007,
-0.017210565507411957,
0.18093165755271912,
0.19521722197532654,
-0.06115284562110901,
-0.3473820984363556,
-0.21226391196250916,
0.022534407675266266,
-0.39778587222099304,
0.26052138209342957,
0.05957433581352234,
-0.2505080997943878,
0.05349123477935791,
-0.17548339068889618,
0.6088404655456543,
0.029005389660596848,
0.23864570260047913,
-0.14072325825691223,
-0.019470296800136566,
0.28785526752471924,
0.18510881066322327,
0.15939058363437653,
-0.20718777179718018,
0.01049645897001028,
0.15259262919425964,
-0.2747837007045746,
0.0343085452914238,
0.350021630525589,
-0.003298550844192505,
0.20547544956207275,
0.31608980894088745,
0.1943970024585724,
0.5569946765899658,
-0.3445819616317749,
0.1917453110218048,
-0.3911084532737732,
0.036738503724336624,
-0.45992904901504517,
0.34068331122398376,
0.17214637994766235,
0.08621570467948914,
-0.017071455717086792,
0.338798463344574,
-0.17746391892433167,
-0.16927334666252136,
0.13066470623016357,
-0.20185579359531403,
0.016558712348341942,
0.15368853509426117,
-0.3063330352306366,
0.05596112459897995,
-0.01624634489417076,
-0.0321231484413147,
0.32993921637535095,
0.031006518751382828,
-0.022487349808216095,
-0.08655315637588501,
-0.17185260355472565,
0.2852023243904114,
-0.27073943614959717,
0.5228371024131775,
0.32057154178619385,
-0.03407419100403786,
-0.005612881854176521,
0.09219356626272202,
-0.007831983268260956,
0.311041921377182,
0.7324507236480713,
0.036104973405599594,
0.18166425824165344,
0.1303400695323944,
-0.30694887042045593,
-0.11715386807918549,
-0.00293031707406044,
0.031572915613651276,
0.14525942504405975,
0.42662712931632996,
-0.20964106917381287,
-0.09887994825839996,
-0.11294902861118317,
-0.022370390594005585,
0.3930732011795044,
-0.07005877792835236,
0.17036072909832,
-0.1708824336528778,
0.5136818885803223,
0.34836024045944214,
0.12149407714605331,
-0.16428513824939728,
-0.057025618851184845,
-0.4837380349636078,
0.48917099833488464,
-0.1586374044418335,
0.18536385893821716,
-0.10415496677160263,
-0.21719464659690857,
-0.00225091353058815,
0.06892570853233337,
0.14749588072299957,
0.22316232323646545,
-0.31484153866767883,
-0.6887143850326538,
0.07003356516361237,
-0.8960810303688049,
0.2602881193161011,
-0.05604114010930061,
0.1209869235754013,
0.2514042258262634,
0.03395514190196991,
-0.4636756479740143,
0.25576895475387573,
-0.22053657472133636,
0.1959710419178009,
-0.25559699535369873,
-0.2598945200443268,
-0.21256636083126068,
0.0627959817647934,
-0.05939994752407074,
-0.19813968241214752,
0.05035220831632614,
0.20902639627456665,
0.10862699151039124,
-0.23276767134666443,
-0.09535671770572662,
0.26431137323379517,
-0.13592985272407532,
-0.013215000741183758,
0.9460550546646118,
0.033583298325538635,
0.2863449156284332,
0.33996978402137756,
0.05541703850030899,
-0.028228750452399254,
0.1582953780889511,
0.3654693067073822,
-0.13598546385765076,
-0.16169202327728271,
0.05979343131184578,
0.12844984233379364,
-0.39443111419677734,
0.16751240193843842,
-0.08594902604818344,
0.4445444643497467,
0.08250953257083893,
-0.24523085355758667,
-0.4501219391822815,
0.2783806025981903,
-0.03883430361747742,
0.14938265085220337,
-0.2521257996559143,
-0.12940049171447754,
0.09984631836414337,
0.12449762225151062,
-0.3044614791870117,
-0.014317709021270275,
0.3623259663581848,
-0.5114167928695679,
-0.12458829581737518,
-0.3022935688495636,
0.3139728903770447,
0.09410052001476288,
-0.33808666467666626,
-1.1964470148086548,
-0.05825161933898926,
0.2086954116821289,
0.31924742460250854,
-0.2933104336261749,
-0.17053665220737457,
-0.4087940752506256,
0.029031287878751755,
-0.09392395615577698,
0.21714042127132416,
0.09208990633487701,
0.04591527581214905,
0.3510321378707886,
-0.4274110794067383
] |
https://github.com/huggingface/datasets/issues/237 | Can't download MultiNLI | Thanks! I thought I had to use the same code displayed in the live viewer:
```python
!pip install nlp
from nlp import load_dataset
dataset = load_dataset('multi_nli', 'plain_text')
```
Your suggestion works, even if then I got a different issue (#242). | When I try to download MultiNLI with
```python
dataset = load_dataset('multi_nli')
```
I get this long error:
```python
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-13-3b11f6be4cb9> in <module>
1 # Load a dataset and print the first examples in the training set
2 # nli_dataset = nlp.load_dataset('multi_nli')
----> 3 dataset = load_dataset('multi_nli')
4 # nli_dataset = nlp.load_dataset('multi_nli', split='validation_matched[:10%]')
5 # print(nli_dataset['train'][0])
~\Miniconda3\envs\nlp\lib\site-packages\nlp\load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
514
515 # Download and prepare data
--> 516 builder_instance.download_and_prepare(
517 download_config=download_config,
518 download_mode=download_mode,
~\Miniconda3\envs\nlp\lib\site-packages\nlp\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
417 with utils.temporary_assignment(self, "_cache_dir", tmp_data_dir):
418 verify_infos = not save_infos and not ignore_verifications
--> 419 self._download_and_prepare(
420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
421 )
~\Miniconda3\envs\nlp\lib\site-packages\nlp\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
455 split_dict = SplitDict(dataset_name=self.name)
456 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 457 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
458 # Checksums verification
459 if verify_infos:
~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\multi_nli\60774175381b9f3f1e6ae1028229e3cdb270d50379f45b9f2c01008f50f09e6b\multi_nli.py in _split_generators(self, dl_manager)
99 def _split_generators(self, dl_manager):
100
--> 101 downloaded_dir = dl_manager.download_and_extract(
102 "http://storage.googleapis.com/tfds-data/downloads/multi_nli/multinli_1.0.zip"
103 )
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in download_and_extract(self, url_or_urls)
214 extracted_path(s): `str`, extracted paths of given URL(s).
215 """
--> 216 return self.extract(self.download(url_or_urls))
217
218 def get_recorded_sizes_checksums(self):
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in extract(self, path_or_paths)
194 path_or_paths.
195 """
--> 196 return map_nested(
197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
198 )
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\py_utils.py in map_nested(function, data_struct, dict_only, map_tuple)
168 return tuple(mapped)
169 # Singleton
--> 170 return function(data_struct)
171
172
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in <lambda>(path)
195 """
196 return map_nested(
--> 197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
198 )
199
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
231 if is_zipfile(output_path):
232 with ZipFile(output_path, "r") as zip_file:
--> 233 zip_file.extractall(output_path_extracted)
234 zip_file.close()
235 elif tarfile.is_tarfile(output_path):
~\Miniconda3\envs\nlp\lib\zipfile.py in extractall(self, path, members, pwd)
1644
1645 for zipinfo in members:
-> 1646 self._extract_member(zipinfo, path, pwd)
1647
1648 @classmethod
~\Miniconda3\envs\nlp\lib\zipfile.py in _extract_member(self, member, targetpath, pwd)
1698
1699 with self.open(member, pwd=pwd) as source, \
-> 1700 open(targetpath, "wb") as target:
1701 shutil.copyfileobj(source, target)
1702
OSError: [Errno 22] Invalid argument: 'C:\\Users\\Python\\.cache\\huggingface\\datasets\\3e12413b8ec69f22dfcfd54a79d1ba9e7aac2e18e334bbb6b81cca64fd16bffc\\multinli_1.0\\Icon\r'
```
| 40 | Can't download MultiNLI
When I try to download MultiNLI with
```python
dataset = load_dataset('multi_nli')
```
I get this long error:
```python
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-13-3b11f6be4cb9> in <module>
1 # Load a dataset and print the first examples in the training set
2 # nli_dataset = nlp.load_dataset('multi_nli')
----> 3 dataset = load_dataset('multi_nli')
4 # nli_dataset = nlp.load_dataset('multi_nli', split='validation_matched[:10%]')
5 # print(nli_dataset['train'][0])
~\Miniconda3\envs\nlp\lib\site-packages\nlp\load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
514
515 # Download and prepare data
--> 516 builder_instance.download_and_prepare(
517 download_config=download_config,
518 download_mode=download_mode,
~\Miniconda3\envs\nlp\lib\site-packages\nlp\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
417 with utils.temporary_assignment(self, "_cache_dir", tmp_data_dir):
418 verify_infos = not save_infos and not ignore_verifications
--> 419 self._download_and_prepare(
420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
421 )
~\Miniconda3\envs\nlp\lib\site-packages\nlp\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
455 split_dict = SplitDict(dataset_name=self.name)
456 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 457 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
458 # Checksums verification
459 if verify_infos:
~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\multi_nli\60774175381b9f3f1e6ae1028229e3cdb270d50379f45b9f2c01008f50f09e6b\multi_nli.py in _split_generators(self, dl_manager)
99 def _split_generators(self, dl_manager):
100
--> 101 downloaded_dir = dl_manager.download_and_extract(
102 "http://storage.googleapis.com/tfds-data/downloads/multi_nli/multinli_1.0.zip"
103 )
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in download_and_extract(self, url_or_urls)
214 extracted_path(s): `str`, extracted paths of given URL(s).
215 """
--> 216 return self.extract(self.download(url_or_urls))
217
218 def get_recorded_sizes_checksums(self):
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in extract(self, path_or_paths)
194 path_or_paths.
195 """
--> 196 return map_nested(
197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
198 )
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\py_utils.py in map_nested(function, data_struct, dict_only, map_tuple)
168 return tuple(mapped)
169 # Singleton
--> 170 return function(data_struct)
171
172
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in <lambda>(path)
195 """
196 return map_nested(
--> 197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
198 )
199
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
231 if is_zipfile(output_path):
232 with ZipFile(output_path, "r") as zip_file:
--> 233 zip_file.extractall(output_path_extracted)
234 zip_file.close()
235 elif tarfile.is_tarfile(output_path):
~\Miniconda3\envs\nlp\lib\zipfile.py in extractall(self, path, members, pwd)
1644
1645 for zipinfo in members:
-> 1646 self._extract_member(zipinfo, path, pwd)
1647
1648 @classmethod
~\Miniconda3\envs\nlp\lib\zipfile.py in _extract_member(self, member, targetpath, pwd)
1698
1699 with self.open(member, pwd=pwd) as source, \
-> 1700 open(targetpath, "wb") as target:
1701 shutil.copyfileobj(source, target)
1702
OSError: [Errno 22] Invalid argument: 'C:\\Users\\Python\\.cache\\huggingface\\datasets\\3e12413b8ec69f22dfcfd54a79d1ba9e7aac2e18e334bbb6b81cca64fd16bffc\\multinli_1.0\\Icon\r'
```
Thanks! I thought I had to use the same code displayed in the live viewer:
```python
!pip install nlp
from nlp import load_dataset
dataset = load_dataset('multi_nli', 'plain_text')
```
Your suggestion works, even if then I got a different issue (#242). | [
-0.08402543514966965,
-0.022191740572452545,
-0.07268701493740082,
0.04233879595994949,
0.19818392395973206,
0.06649280339479446,
0.4571823477745056,
0.08013743162155151,
0.10337884724140167,
0.08837522566318512,
-0.16412462294101715,
0.2453240007162094,
-0.1955307573080063,
-0.08169741183519363,
-0.061513058841228485,
-0.2790236473083496,
-0.03297073394060135,
-0.06759865581989288,
0.02870572730898857,
0.13708224892616272,
-0.21844305098056793,
0.1371098756790161,
-0.21224279701709747,
0.21034857630729675,
-0.18341995775699615,
-0.15587309002876282,
-0.20344042778015137,
0.23280072212219238,
-0.3381272852420807,
-0.3609943091869354,
0.18646539747714996,
-0.10970574617385864,
0.24803286790847778,
0.015680231153964996,
-0.00010717275290517136,
0.10856442153453827,
0.17798903584480286,
-0.06570856273174286,
-0.40635788440704346,
-0.15576232969760895,
-0.11275864392518997,
-0.3171505033969879,
0.16040387749671936,
-0.39091894030570984,
0.30361971259117126,
0.3498140573501587,
0.04432988166809082,
0.04560551792383194,
0.11746978759765625,
0.4848155677318573,
0.26771602034568787,
0.44895461201667786,
0.3633490800857544,
-0.07207295298576355,
-0.047062672674655914,
-0.20575381815433502,
0.012757958844304085,
0.3778344988822937,
-0.1025848537683487,
-0.1761140376329422,
0.09094096720218658,
0.07363638281822205,
-0.1486244797706604,
0.3225732743740082,
-0.19375205039978027,
-0.005293569527566433,
0.3084740936756134,
-0.2554346024990082,
-0.07744570076465607,
0.2574423551559448,
0.0329427532851696,
0.08301913738250732,
-0.3229764401912689,
0.024157851934432983,
0.26956209540367126,
-0.3627430200576782,
0.09996555745601654,
0.4350743293762207,
-0.3351386785507202,
-0.09220914542675018,
-0.24660025537014008,
-0.1657494604587555,
-0.15898528695106506,
0.39050889015197754,
-0.31127241253852844,
0.5100570917129517,
0.10473576188087463,
0.10575256496667862,
0.4342145621776581,
-0.20320026576519012,
-0.2787944972515106,
-0.053084902465343475,
0.045968759804964066,
0.19603915512561798,
-0.32867810130119324,
0.01897280663251877,
-0.03016374260187149,
-0.2324988842010498,
0.15844061970710754,
0.13010267913341522,
-0.023443501442670822,
-0.23427385091781616,
-0.1908608078956604,
0.20343706011772156,
0.048343725502491,
0.06421051919460297,
-0.28859829902648926,
0.1249963566660881,
0.1028151735663414,
0.22912225127220154,
0.22897109389305115,
0.03921728581190109,
-0.11887634545564651,
-0.09183048456907272,
-0.11672349274158478,
0.08612294495105743,
0.25413423776626587,
0.09224814176559448,
-0.45950865745544434,
-0.19941730797290802,
-0.5215702652931213,
-0.019995644688606262,
0.29257503151893616,
0.14654701948165894,
-0.11265482008457184,
0.3401513695716858,
0.17328384518623352,
0.39759141206741333,
-0.2035050392150879,
-0.3343689441680908,
-0.13727189600467682,
0.16713804006576538,
-0.12311361730098724,
-0.04190971702337265,
0.4352341294288635,
-0.059521470218896866,
0.3110080659389496,
-0.015945101156830788,
-0.08545535802841187,
-0.09518583118915558,
0.11144264042377472,
-0.09508547186851501,
-0.31102797389030457,
0.2561813294887543,
0.17043794691562653,
0.07221030443906784,
0.16979314386844635,
-0.13139969110488892,
-0.05205093324184418,
0.0058725327253341675,
-0.33911624550819397,
-0.43124714493751526,
-0.30352655053138733,
0.27930980920791626,
0.0968349277973175,
-0.1050034612417221,
0.14019975066184998,
-0.4007655680179596,
0.21240141987800598,
-0.033031534403562546,
-0.06387776881456375,
-0.2944985628128052,
-0.09886213392019272,
-0.22956252098083496,
0.25936028361320496,
0.2700573205947876,
0.1803033947944641,
-0.0016139522194862366,
-0.3492775857448578,
-0.16569530963897705,
0.25332462787628174,
0.5466470122337341,
-0.20353016257286072,
0.15084746479988098,
-0.1804697960615158,
0.03481566905975342,
0.5982264876365662,
-0.41645681858062744,
-0.09771209210157394,
0.22240854799747467,
-0.3346428871154785,
0.04438749700784683,
0.007629863917827606,
0.17984949052333832,
0.06427095830440521,
0.10571201145648956,
0.3237142562866211,
0.5148921608924866,
-0.179789736866951,
0.07943832129240036,
-0.18947067856788635,
-0.25255995988845825,
0.18896183371543884,
0.3776637315750122,
0.05214102566242218,
0.07108226418495178,
-0.129364013671875,
0.47295457124710083,
0.4586099088191986,
0.0054119788110256195,
0.0687950924038887,
0.08226992189884186,
0.14546945691108704,
-0.09017138183116913,
-0.3268410563468933,
-0.033249273896217346,
-0.38703083992004395,
0.12790685892105103,
0.03956831991672516,
0.1032731756567955,
-0.026721641421318054,
0.08823838829994202,
-0.1036592647433281,
0.04945103079080582,
-0.1920175999403,
-0.12529322504997253,
0.14957982301712036,
0.20344752073287964,
0.09192651510238647,
0.024225659668445587,
0.02343737706542015,
0.5169649124145508,
-0.03080662526190281,
0.13072317838668823,
-0.48537707328796387,
0.24790309369564056,
-0.3664745092391968,
-0.04308823123574257,
0.026626281440258026,
0.021788783371448517,
-0.06374769657850266,
0.047631002962589264,
-0.0967497006058693,
0.3046736717224121,
-0.03968488797545433,
-0.4234549403190613,
-0.10475122183561325,
-0.10427667200565338,
0.11548332870006561,
-0.11447546631097794,
0.13060905039310455,
0.33647456765174866,
0.06668709963560104,
-0.04999587684869766,
-0.3063921630382538,
0.3337833881378174,
0.030765444040298462,
0.0900295302271843,
-0.0031018629670143127,
0.3673851490020752,
0.3018738925457001,
-0.020217664539813995,
-0.037256013602018356,
-0.16803401708602905,
0.33377930521965027,
0.03727419674396515,
0.04853317514061928,
-0.22524656355381012,
-0.31696540117263794,
-0.16647884249687195,
0.3011680543422699,
0.04148997738957405,
0.030544862151145935,
0.04215154051780701,
0.18877926468849182,
0.04921557754278183,
-0.11622278392314911,
0.004848908632993698,
0.4669983386993408,
0.08540760725736618,
0.10949751734733582,
-0.022692063823342323,
-0.189305379986763,
-0.2992963492870331,
0.06442610919475555,
-0.01908649504184723,
0.20575039088726044,
-0.059156306087970734,
0.1309666782617569,
-0.10995659977197647,
-0.04013007879257202,
-0.4957757890224457,
0.2854011356830597,
0.4715656638145447,
-0.20183420181274414,
0.06350629776716232,
-0.34738487005233765,
-0.5306870341300964,
-0.2337205410003662,
-0.20725546777248383,
-0.3806089758872986,
-0.3395349085330963,
-0.16524429619312286,
0.4490945339202881,
0.08724766969680786,
0.020227905362844467,
-0.016367251053452492,
-0.2310701459646225,
0.27137452363967896,
-0.039548784494400024,
0.20371294021606445,
-0.0712692067027092,
-0.2772781252861023,
0.1511175036430359,
0.3364774286746979,
-0.021462252363562584,
0.2527519166469574,
-0.10023534297943115,
-0.17335328459739685,
-0.26810377836227417,
0.015854910016059875,
-0.22356128692626953,
0.09388343244791031,
-0.2643563747406006,
0.25119122862815857,
0.3671226501464844,
0.04603997617959976,
-0.23253680765628815,
0.2155633419752121,
-0.01895119994878769,
-0.14204326272010803,
0.3279955983161926,
0.006151366047561169,
0.09732862561941147,
-0.14993546903133392,
-0.30683615803718567,
-0.36771970987319946,
-0.4596533477306366,
0.21241728961467743,
-0.05588739365339279,
0.21250905096530914,
0.3740655481815338,
0.04551131650805473,
0.19765211641788483,
0.033902350813150406,
-0.1330120861530304,
0.03633967041969299,
0.047851819545030594,
0.15722087025642395,
-0.18953602015972137,
-0.30111372470855713,
-0.07816248387098312,
0.2041410356760025,
0.21321508288383484,
0.003715930040925741,
-0.3780254125595093,
-0.025708433240652084,
0.030842147767543793,
0.27462559938430786,
-0.19093377888202667,
-0.04381544888019562,
0.21224452555179596,
-0.3453696370124817,
-0.04116116091609001,
0.2166716456413269,
0.04302571341395378,
0.08033525198698044,
0.21866106986999512,
0.45158669352531433,
-0.14153310656547546,
0.5075713396072388,
0.048484209924936295,
0.3951178193092346,
0.25679153203964233,
-0.019462797790765762,
0.3725370168685913,
-0.021025771275162697,
-0.0696515142917633,
0.021604500710964203,
-0.4024844765663147,
-0.006774633191525936,
-0.12186583876609802,
0.15624697506427765,
-0.028096765279769897,
-0.10814829915761948,
-0.3482304513454437,
-0.1743042916059494,
0.09584659337997437,
0.10263090580701828,
-0.2052614837884903,
0.0999542772769928,
-0.24396076798439026,
0.026900403201580048,
0.010568663477897644,
-0.09340925514698029,
-0.03576352447271347,
-0.1712866723537445,
-0.3353481888771057,
0.32954686880111694,
-0.20561781525611877,
-0.007514747325330973,
-0.06466346979141235,
-0.1637694537639618,
-0.25381365418434143,
0.0381050705909729,
0.17867237329483032,
0.5281779766082764,
0.031317319720983505,
0.11330581456422806,
0.15176931023597717,
-0.05792172998189926,
0.3662657141685486,
0.043178051710128784,
0.11232875287532806,
0.3103981614112854,
0.16554445028305054,
-0.5614238381385803,
-0.31843331456184387,
-0.3913879096508026,
0.27103546261787415,
0.7224541902542114,
0.22563418745994568,
-0.13292774558067322,
-0.0833350196480751,
0.3776692748069763,
0.13778826594352722,
-0.0911203920841217,
-0.17005214095115662,
-0.37104398012161255,
-0.3217698931694031,
-0.4575541317462921,
0.054056230932474136,
-0.06567152589559555,
0.33949458599090576,
0.10823558270931244,
0.2655143141746521,
0.12299156188964844,
0.0019902195781469345,
-0.13144391775131226,
-0.09602934122085571,
-0.16691997647285461,
0.2519843578338623,
0.12031900882720947,
-0.20486225187778473,
0.11008838564157486,
-0.01215188018977642,
0.5492681264877319,
-0.05373537912964821,
-0.21998554468154907,
0.23303604125976562,
-0.0417352132499218,
0.017732426524162292,
0.04704008996486664,
0.16859838366508484,
0.11726021021604538,
0.09612581133842468,
0.19551989436149597,
0.3162567913532257,
0.17790673673152924,
0.2874183654785156,
-0.2669256925582886,
-0.2842009365558624,
-0.22032609581947327,
0.4090631306171417,
0.06504447758197784,
0.19391103088855743,
0.2437659353017807,
-0.5065387487411499,
0.06952055543661118,
-0.03853035718202591,
0.1428883671760559,
0.5448484420776367,
-0.16019006073474884,
0.20569124817848206,
0.3697620928287506,
-0.14225563406944275,
0.49981799721717834,
-0.3342646360397339,
0.17927062511444092,
-0.19360259175300598,
0.2306208312511444,
0.08422598987817764,
0.02709772065281868,
-0.03355935215950012,
0.16266077756881714,
-0.22061988711357117,
0.1645316481590271,
0.1299339085817337,
-0.055314626544713974,
0.18154102563858032,
0.5320361852645874,
0.009406166151165962,
-0.3416406214237213,
-0.22745783627033234,
0.20656323432922363,
-0.16394329071044922,
0.3153638541698456,
-0.09486137330532074,
-0.07713235914707184,
0.10907624661922455,
-0.16552557051181793,
-0.3335946202278137,
0.281498521566391,
-0.08341894298791885,
0.5441377758979797,
-0.07002769410610199,
-0.05367526412010193,
-0.0654045045375824,
0.22002768516540527,
0.07941289991140366,
-0.13874949514865875,
-0.05445189028978348,
-0.09175492823123932,
-0.08849034458398819,
-0.2747747004032135,
-0.13513770699501038,
0.022773675620555878,
0.2547704875469208,
-0.31023821234703064,
-0.3599824607372284,
0.2084234356880188,
0.04348762705922127,
-0.27683085203170776,
0.13000929355621338,
0.2966117858886719,
-0.1079711765050888,
0.117194265127182,
0.07998070120811462,
-0.060416027903556824,
0.10194870829582214,
-0.09148137271404266,
0.1378287374973297,
0.18445375561714172,
-0.2723405957221985,
0.03840724006295204,
-0.07254958152770996,
-0.12654483318328857,
0.03027581237256527,
0.544825553894043,
0.07951167225837708,
0.014667525887489319,
0.4382505714893341,
0.26376795768737793,
0.04875621944665909,
-0.3331155478954315,
0.12422516196966171,
-0.20902098715305328,
-0.21657583117485046,
-0.032997749745845795,
0.03891212120652199,
0.22347016632556915,
0.05925687775015831,
0.10320006310939789,
0.14492449164390564,
0.17718879878520966,
0.15251900255680084,
-0.6146886944770813,
-0.41207635402679443,
-0.05076704919338226,
-0.1135174036026001,
-0.10179777443408966,
-0.0972709208726883,
0.20154359936714172,
0.28375810384750366,
0.036449529230594635,
-0.2931175231933594,
0.029571037739515305,
-0.39406344294548035,
0.07470494508743286,
0.44344615936279297,
-0.2955843508243561,
-0.009803065098822117,
0.20643436908721924,
0.22121357917785645,
-0.1965440958738327,
-0.14492741227149963,
-0.24741697311401367,
-0.026847373694181442,
0.06838018447160721,
0.01696452870965004,
-0.19805340468883514,
0.15768730640411377,
-0.35120689868927,
-0.24849650263786316,
0.1924414187669754,
-0.07229126989841461,
0.038387708365917206,
0.07087678462266922,
0.12218137085437775,
-0.16020822525024414,
0.1678970456123352,
-0.08345013856887817,
0.014651782810688019,
-0.27050769329071045,
0.0771096795797348,
0.11173076927661896,
0.31723007559776306,
0.21723927557468414,
-0.00456121563911438,
-0.634770929813385,
-0.1739438772201538,
-0.24527607858181,
-0.08426152914762497,
0.09532305598258972,
-0.3559568524360657,
-0.014027629047632217,
-0.2292228490114212,
0.06166534870862961,
0.22970014810562134,
-0.11127647012472153,
0.04356539249420166,
0.36442604660987854,
0.250619500875473,
-0.15715685486793518,
-0.013790607452392578,
0.2758882939815521,
0.02771836519241333,
0.009880799800157547,
0.23982161283493042,
-0.10482741892337799,
-0.07613793760538101,
0.1575668752193451,
0.07760471850633621,
0.10168025642633438,
0.09764805436134338,
-0.009248411282896996,
0.3073759377002716,
-0.19900822639465332,
-0.05383271351456642,
0.03650448098778725,
-0.004383508116006851,
0.2784198522567749,
0.3134978413581848,
-0.27198946475982666,
0.2696475088596344,
-0.0701693743467331,
0.05118270218372345,
0.14697334170341492,
-0.20849919319152832,
-0.31382420659065247,
-0.01410338282585144,
-0.24583598971366882,
-0.02951400727033615,
-0.1594555526971817,
0.3483739495277405,
-0.3062150180339813,
-0.2602592408657074,
-0.3952549397945404,
0.5272887945175171,
-0.17804807424545288,
0.05312866345047951,
-0.34371334314346313,
-0.09361079335212708,
-0.2732798457145691,
0.18696752190589905,
0.05059359222650528,
0.07760894298553467,
0.4932880103588104,
0.3244488835334778,
-0.1509423851966858,
-0.5531565546989441,
-0.18600228428840637,
0.26786303520202637,
0.015663601458072662,
-0.35005155205726624,
0.2893441915512085,
0.4177256226539612,
-0.2784986197948456,
-0.00916416198015213,
0.09575920552015305,
0.5214701890945435,
0.29829588532447815,
0.17874141037464142,
0.10023234039545059,
-0.047296952456235886,
-0.03253617882728577,
-0.02540598064661026,
-0.057355403900146484,
0.4776993691921234,
0.21050870418548584,
0.3830700218677521,
0.09772941470146179,
-0.2219572812318802,
0.1700773537158966,
0.09212412685155869,
-0.10505938529968262,
-0.10364902019500732,
0.4112378656864166,
-0.021900199353694916,
0.009776324033737183,
-0.23978394269943237,
0.06705643981695175,
-0.532153844833374,
0.0814332440495491,
0.02670718915760517,
0.13209569454193115,
0.1471249759197235,
0.04539703205227852,
0.0507085919380188,
0.009732412174344063,
0.5457181930541992,
0.30347809195518494,
0.21150445938110352,
-0.29450416564941406,
-0.2823816239833832,
-0.6838547587394714,
0.09728620201349258,
-0.5811141729354858,
-0.10109932720661163,
-0.04636841639876366,
0.23086251318454742,
-0.20032960176467896,
0.21887366473674774,
0.03419375419616699,
0.03454150632023811,
0.18187753856182098,
0.2735223174095154,
-0.3600361943244934,
-0.08478191494941711,
0.21785175800323486,
-0.01897869072854519,
0.033843137323856354,
-0.3433586061000824,
0.06985114514827728,
-0.29056861996650696,
0.08904742449522018,
-0.20073148608207703,
-0.07836273312568665,
0.10260297358036041,
0.28207263350486755,
0.0038188546895980835,
0.12707777321338654,
0.4972708523273468,
0.1928170621395111,
-0.3524489402770996,
-0.22494956851005554,
0.20275938510894775,
-0.16100600361824036,
0.013193242251873016,
0.20362651348114014,
0.40222135186195374,
-0.10290967673063278,
0.14341405034065247,
-0.34613659977912903,
0.5090786218643188,
-0.1239435002207756,
-0.17005468904972076,
-0.07957204431295395,
0.05447427183389664,
0.05632800608873367,
0.11478573828935623,
0.2220102697610855,
0.03505957871675491,
-0.0253666490316391,
0.03940047323703766,
-0.3940590023994446,
-0.2115022838115692,
0.36090049147605896,
-0.09750722348690033,
-0.26557958126068115,
-0.18048956990242004,
0.22695334255695343,
-0.32093262672424316,
0.288031667470932,
-0.5555566549301147,
0.12516218423843384,
0.2969513535499573,
-0.08232887089252472,
-0.5224148035049438,
0.12004685401916504,
0.1242871880531311,
-0.16984114050865173,
-0.007210936397314072,
0.00020599365234375,
0.080766461789608,
-0.4523905813694,
0.23109787702560425,
-0.11049645394086838
] |
https://github.com/huggingface/datasets/issues/237 | Can't download MultiNLI | Glad it helps !
Though I am not one of hf team, but maybe you should close this issue first. | When I try to download MultiNLI with
```python
dataset = load_dataset('multi_nli')
```
I get this long error:
```python
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-13-3b11f6be4cb9> in <module>
1 # Load a dataset and print the first examples in the training set
2 # nli_dataset = nlp.load_dataset('multi_nli')
----> 3 dataset = load_dataset('multi_nli')
4 # nli_dataset = nlp.load_dataset('multi_nli', split='validation_matched[:10%]')
5 # print(nli_dataset['train'][0])
~\Miniconda3\envs\nlp\lib\site-packages\nlp\load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
514
515 # Download and prepare data
--> 516 builder_instance.download_and_prepare(
517 download_config=download_config,
518 download_mode=download_mode,
~\Miniconda3\envs\nlp\lib\site-packages\nlp\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
417 with utils.temporary_assignment(self, "_cache_dir", tmp_data_dir):
418 verify_infos = not save_infos and not ignore_verifications
--> 419 self._download_and_prepare(
420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
421 )
~\Miniconda3\envs\nlp\lib\site-packages\nlp\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
455 split_dict = SplitDict(dataset_name=self.name)
456 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 457 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
458 # Checksums verification
459 if verify_infos:
~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\multi_nli\60774175381b9f3f1e6ae1028229e3cdb270d50379f45b9f2c01008f50f09e6b\multi_nli.py in _split_generators(self, dl_manager)
99 def _split_generators(self, dl_manager):
100
--> 101 downloaded_dir = dl_manager.download_and_extract(
102 "http://storage.googleapis.com/tfds-data/downloads/multi_nli/multinli_1.0.zip"
103 )
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in download_and_extract(self, url_or_urls)
214 extracted_path(s): `str`, extracted paths of given URL(s).
215 """
--> 216 return self.extract(self.download(url_or_urls))
217
218 def get_recorded_sizes_checksums(self):
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in extract(self, path_or_paths)
194 path_or_paths.
195 """
--> 196 return map_nested(
197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
198 )
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\py_utils.py in map_nested(function, data_struct, dict_only, map_tuple)
168 return tuple(mapped)
169 # Singleton
--> 170 return function(data_struct)
171
172
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in <lambda>(path)
195 """
196 return map_nested(
--> 197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
198 )
199
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
231 if is_zipfile(output_path):
232 with ZipFile(output_path, "r") as zip_file:
--> 233 zip_file.extractall(output_path_extracted)
234 zip_file.close()
235 elif tarfile.is_tarfile(output_path):
~\Miniconda3\envs\nlp\lib\zipfile.py in extractall(self, path, members, pwd)
1644
1645 for zipinfo in members:
-> 1646 self._extract_member(zipinfo, path, pwd)
1647
1648 @classmethod
~\Miniconda3\envs\nlp\lib\zipfile.py in _extract_member(self, member, targetpath, pwd)
1698
1699 with self.open(member, pwd=pwd) as source, \
-> 1700 open(targetpath, "wb") as target:
1701 shutil.copyfileobj(source, target)
1702
OSError: [Errno 22] Invalid argument: 'C:\\Users\\Python\\.cache\\huggingface\\datasets\\3e12413b8ec69f22dfcfd54a79d1ba9e7aac2e18e334bbb6b81cca64fd16bffc\\multinli_1.0\\Icon\r'
```
| 20 | Can't download MultiNLI
When I try to download MultiNLI with
```python
dataset = load_dataset('multi_nli')
```
I get this long error:
```python
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
<ipython-input-13-3b11f6be4cb9> in <module>
1 # Load a dataset and print the first examples in the training set
2 # nli_dataset = nlp.load_dataset('multi_nli')
----> 3 dataset = load_dataset('multi_nli')
4 # nli_dataset = nlp.load_dataset('multi_nli', split='validation_matched[:10%]')
5 # print(nli_dataset['train'][0])
~\Miniconda3\envs\nlp\lib\site-packages\nlp\load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
514
515 # Download and prepare data
--> 516 builder_instance.download_and_prepare(
517 download_config=download_config,
518 download_mode=download_mode,
~\Miniconda3\envs\nlp\lib\site-packages\nlp\builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, save_infos, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
417 with utils.temporary_assignment(self, "_cache_dir", tmp_data_dir):
418 verify_infos = not save_infos and not ignore_verifications
--> 419 self._download_and_prepare(
420 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
421 )
~\Miniconda3\envs\nlp\lib\site-packages\nlp\builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
455 split_dict = SplitDict(dataset_name=self.name)
456 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 457 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
458 # Checksums verification
459 if verify_infos:
~\Miniconda3\envs\nlp\lib\site-packages\nlp\datasets\multi_nli\60774175381b9f3f1e6ae1028229e3cdb270d50379f45b9f2c01008f50f09e6b\multi_nli.py in _split_generators(self, dl_manager)
99 def _split_generators(self, dl_manager):
100
--> 101 downloaded_dir = dl_manager.download_and_extract(
102 "http://storage.googleapis.com/tfds-data/downloads/multi_nli/multinli_1.0.zip"
103 )
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in download_and_extract(self, url_or_urls)
214 extracted_path(s): `str`, extracted paths of given URL(s).
215 """
--> 216 return self.extract(self.download(url_or_urls))
217
218 def get_recorded_sizes_checksums(self):
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in extract(self, path_or_paths)
194 path_or_paths.
195 """
--> 196 return map_nested(
197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
198 )
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\py_utils.py in map_nested(function, data_struct, dict_only, map_tuple)
168 return tuple(mapped)
169 # Singleton
--> 170 return function(data_struct)
171
172
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\download_manager.py in <lambda>(path)
195 """
196 return map_nested(
--> 197 lambda path: cached_path(path, extract_compressed_file=True, force_extract=False), path_or_paths,
198 )
199
~\Miniconda3\envs\nlp\lib\site-packages\nlp\utils\file_utils.py in cached_path(url_or_filename, download_config, **download_kwargs)
231 if is_zipfile(output_path):
232 with ZipFile(output_path, "r") as zip_file:
--> 233 zip_file.extractall(output_path_extracted)
234 zip_file.close()
235 elif tarfile.is_tarfile(output_path):
~\Miniconda3\envs\nlp\lib\zipfile.py in extractall(self, path, members, pwd)
1644
1645 for zipinfo in members:
-> 1646 self._extract_member(zipinfo, path, pwd)
1647
1648 @classmethod
~\Miniconda3\envs\nlp\lib\zipfile.py in _extract_member(self, member, targetpath, pwd)
1698
1699 with self.open(member, pwd=pwd) as source, \
-> 1700 open(targetpath, "wb") as target:
1701 shutil.copyfileobj(source, target)
1702
OSError: [Errno 22] Invalid argument: 'C:\\Users\\Python\\.cache\\huggingface\\datasets\\3e12413b8ec69f22dfcfd54a79d1ba9e7aac2e18e334bbb6b81cca64fd16bffc\\multinli_1.0\\Icon\r'
```
Glad it helps !
Though I am not one of hf team, but maybe you should close this issue first. | [
-0.08402543514966965,
-0.022191740572452545,
-0.07268701493740082,
0.04233879595994949,
0.19818392395973206,
0.06649280339479446,
0.4571823477745056,
0.08013743162155151,
0.10337884724140167,
0.08837522566318512,
-0.16412462294101715,
0.2453240007162094,
-0.1955307573080063,
-0.08169741183519363,
-0.061513058841228485,
-0.2790236473083496,
-0.03297073394060135,
-0.06759865581989288,
0.02870572730898857,
0.13708224892616272,
-0.21844305098056793,
0.1371098756790161,
-0.21224279701709747,
0.21034857630729675,
-0.18341995775699615,
-0.15587309002876282,
-0.20344042778015137,
0.23280072212219238,
-0.3381272852420807,
-0.3609943091869354,
0.18646539747714996,
-0.10970574617385864,
0.24803286790847778,
0.015680231153964996,
-0.00010717275290517136,
0.10856442153453827,
0.17798903584480286,
-0.06570856273174286,
-0.40635788440704346,
-0.15576232969760895,
-0.11275864392518997,
-0.3171505033969879,
0.16040387749671936,
-0.39091894030570984,
0.30361971259117126,
0.3498140573501587,
0.04432988166809082,
0.04560551792383194,
0.11746978759765625,
0.4848155677318573,
0.26771602034568787,
0.44895461201667786,
0.3633490800857544,
-0.07207295298576355,
-0.047062672674655914,
-0.20575381815433502,
0.012757958844304085,
0.3778344988822937,
-0.1025848537683487,
-0.1761140376329422,
0.09094096720218658,
0.07363638281822205,
-0.1486244797706604,
0.3225732743740082,
-0.19375205039978027,
-0.005293569527566433,
0.3084740936756134,
-0.2554346024990082,
-0.07744570076465607,
0.2574423551559448,
0.0329427532851696,
0.08301913738250732,
-0.3229764401912689,
0.024157851934432983,
0.26956209540367126,
-0.3627430200576782,
0.09996555745601654,
0.4350743293762207,
-0.3351386785507202,
-0.09220914542675018,
-0.24660025537014008,
-0.1657494604587555,
-0.15898528695106506,
0.39050889015197754,
-0.31127241253852844,
0.5100570917129517,
0.10473576188087463,
0.10575256496667862,
0.4342145621776581,
-0.20320026576519012,
-0.2787944972515106,
-0.053084902465343475,
0.045968759804964066,
0.19603915512561798,
-0.32867810130119324,
0.01897280663251877,
-0.03016374260187149,
-0.2324988842010498,
0.15844061970710754,
0.13010267913341522,
-0.023443501442670822,
-0.23427385091781616,
-0.1908608078956604,
0.20343706011772156,
0.048343725502491,
0.06421051919460297,
-0.28859829902648926,
0.1249963566660881,
0.1028151735663414,
0.22912225127220154,
0.22897109389305115,
0.03921728581190109,
-0.11887634545564651,
-0.09183048456907272,
-0.11672349274158478,
0.08612294495105743,
0.25413423776626587,
0.09224814176559448,
-0.45950865745544434,
-0.19941730797290802,
-0.5215702652931213,
-0.019995644688606262,
0.29257503151893616,
0.14654701948165894,
-0.11265482008457184,
0.3401513695716858,
0.17328384518623352,
0.39759141206741333,
-0.2035050392150879,
-0.3343689441680908,
-0.13727189600467682,
0.16713804006576538,
-0.12311361730098724,
-0.04190971702337265,
0.4352341294288635,
-0.059521470218896866,
0.3110080659389496,
-0.015945101156830788,
-0.08545535802841187,
-0.09518583118915558,
0.11144264042377472,
-0.09508547186851501,
-0.31102797389030457,
0.2561813294887543,
0.17043794691562653,
0.07221030443906784,
0.16979314386844635,
-0.13139969110488892,
-0.05205093324184418,
0.0058725327253341675,
-0.33911624550819397,
-0.43124714493751526,
-0.30352655053138733,
0.27930980920791626,
0.0968349277973175,
-0.1050034612417221,
0.14019975066184998,
-0.4007655680179596,
0.21240141987800598,
-0.033031534403562546,
-0.06387776881456375,
-0.2944985628128052,
-0.09886213392019272,
-0.22956252098083496,
0.25936028361320496,
0.2700573205947876,
0.1803033947944641,
-0.0016139522194862366,
-0.3492775857448578,
-0.16569530963897705,
0.25332462787628174,
0.5466470122337341,
-0.20353016257286072,
0.15084746479988098,
-0.1804697960615158,
0.03481566905975342,
0.5982264876365662,
-0.41645681858062744,
-0.09771209210157394,
0.22240854799747467,
-0.3346428871154785,
0.04438749700784683,
0.007629863917827606,
0.17984949052333832,
0.06427095830440521,
0.10571201145648956,
0.3237142562866211,
0.5148921608924866,
-0.179789736866951,
0.07943832129240036,
-0.18947067856788635,
-0.25255995988845825,
0.18896183371543884,
0.3776637315750122,
0.05214102566242218,
0.07108226418495178,
-0.129364013671875,
0.47295457124710083,
0.4586099088191986,
0.0054119788110256195,
0.0687950924038887,
0.08226992189884186,
0.14546945691108704,
-0.09017138183116913,
-0.3268410563468933,
-0.033249273896217346,
-0.38703083992004395,
0.12790685892105103,
0.03956831991672516,
0.1032731756567955,
-0.026721641421318054,
0.08823838829994202,
-0.1036592647433281,
0.04945103079080582,
-0.1920175999403,
-0.12529322504997253,
0.14957982301712036,
0.20344752073287964,
0.09192651510238647,
0.024225659668445587,
0.02343737706542015,
0.5169649124145508,
-0.03080662526190281,
0.13072317838668823,
-0.48537707328796387,
0.24790309369564056,
-0.3664745092391968,
-0.04308823123574257,
0.026626281440258026,
0.021788783371448517,
-0.06374769657850266,
0.047631002962589264,
-0.0967497006058693,
0.3046736717224121,
-0.03968488797545433,
-0.4234549403190613,
-0.10475122183561325,
-0.10427667200565338,
0.11548332870006561,
-0.11447546631097794,
0.13060905039310455,
0.33647456765174866,
0.06668709963560104,
-0.04999587684869766,
-0.3063921630382538,
0.3337833881378174,
0.030765444040298462,
0.0900295302271843,
-0.0031018629670143127,
0.3673851490020752,
0.3018738925457001,
-0.020217664539813995,
-0.037256013602018356,
-0.16803401708602905,
0.33377930521965027,
0.03727419674396515,
0.04853317514061928,
-0.22524656355381012,
-0.31696540117263794,
-0.16647884249687195,
0.3011680543422699,
0.04148997738957405,
0.030544862151145935,
0.04215154051780701,
0.18877926468849182,
0.04921557754278183,
-0.11622278392314911,
0.004848908632993698,
0.4669983386993408,
0.08540760725736618,
0.10949751734733582,
-0.022692063823342323,
-0.189305379986763,
-0.2992963492870331,
0.06442610919475555,
-0.01908649504184723,
0.20575039088726044,
-0.059156306087970734,
0.1309666782617569,
-0.10995659977197647,
-0.04013007879257202,
-0.4957757890224457,
0.2854011356830597,
0.4715656638145447,
-0.20183420181274414,
0.06350629776716232,
-0.34738487005233765,
-0.5306870341300964,
-0.2337205410003662,
-0.20725546777248383,
-0.3806089758872986,
-0.3395349085330963,
-0.16524429619312286,
0.4490945339202881,
0.08724766969680786,
0.020227905362844467,
-0.016367251053452492,
-0.2310701459646225,
0.27137452363967896,
-0.039548784494400024,
0.20371294021606445,
-0.0712692067027092,
-0.2772781252861023,
0.1511175036430359,
0.3364774286746979,
-0.021462252363562584,
0.2527519166469574,
-0.10023534297943115,
-0.17335328459739685,
-0.26810377836227417,
0.015854910016059875,
-0.22356128692626953,
0.09388343244791031,
-0.2643563747406006,
0.25119122862815857,
0.3671226501464844,
0.04603997617959976,
-0.23253680765628815,
0.2155633419752121,
-0.01895119994878769,
-0.14204326272010803,
0.3279955983161926,
0.006151366047561169,
0.09732862561941147,
-0.14993546903133392,
-0.30683615803718567,
-0.36771970987319946,
-0.4596533477306366,
0.21241728961467743,
-0.05588739365339279,
0.21250905096530914,
0.3740655481815338,
0.04551131650805473,
0.19765211641788483,
0.033902350813150406,
-0.1330120861530304,
0.03633967041969299,
0.047851819545030594,
0.15722087025642395,
-0.18953602015972137,
-0.30111372470855713,
-0.07816248387098312,
0.2041410356760025,
0.21321508288383484,
0.003715930040925741,
-0.3780254125595093,
-0.025708433240652084,
0.030842147767543793,
0.27462559938430786,
-0.19093377888202667,
-0.04381544888019562,
0.21224452555179596,
-0.3453696370124817,
-0.04116116091609001,
0.2166716456413269,
0.04302571341395378,
0.08033525198698044,
0.21866106986999512,
0.45158669352531433,
-0.14153310656547546,
0.5075713396072388,
0.048484209924936295,
0.3951178193092346,
0.25679153203964233,
-0.019462797790765762,
0.3725370168685913,
-0.021025771275162697,
-0.0696515142917633,
0.021604500710964203,
-0.4024844765663147,
-0.006774633191525936,
-0.12186583876609802,
0.15624697506427765,
-0.028096765279769897,
-0.10814829915761948,
-0.3482304513454437,
-0.1743042916059494,
0.09584659337997437,
0.10263090580701828,
-0.2052614837884903,
0.0999542772769928,
-0.24396076798439026,
0.026900403201580048,
0.010568663477897644,
-0.09340925514698029,
-0.03576352447271347,
-0.1712866723537445,
-0.3353481888771057,
0.32954686880111694,
-0.20561781525611877,
-0.007514747325330973,
-0.06466346979141235,
-0.1637694537639618,
-0.25381365418434143,
0.0381050705909729,
0.17867237329483032,
0.5281779766082764,
0.031317319720983505,
0.11330581456422806,
0.15176931023597717,
-0.05792172998189926,
0.3662657141685486,
0.043178051710128784,
0.11232875287532806,
0.3103981614112854,
0.16554445028305054,
-0.5614238381385803,
-0.31843331456184387,
-0.3913879096508026,
0.27103546261787415,
0.7224541902542114,
0.22563418745994568,
-0.13292774558067322,
-0.0833350196480751,
0.3776692748069763,
0.13778826594352722,
-0.0911203920841217,
-0.17005214095115662,
-0.37104398012161255,
-0.3217698931694031,
-0.4575541317462921,
0.054056230932474136,
-0.06567152589559555,
0.33949458599090576,
0.10823558270931244,
0.2655143141746521,
0.12299156188964844,
0.0019902195781469345,
-0.13144391775131226,
-0.09602934122085571,
-0.16691997647285461,
0.2519843578338623,
0.12031900882720947,
-0.20486225187778473,
0.11008838564157486,
-0.01215188018977642,
0.5492681264877319,
-0.05373537912964821,
-0.21998554468154907,
0.23303604125976562,
-0.0417352132499218,
0.017732426524162292,
0.04704008996486664,
0.16859838366508484,
0.11726021021604538,
0.09612581133842468,
0.19551989436149597,
0.3162567913532257,
0.17790673673152924,
0.2874183654785156,
-0.2669256925582886,
-0.2842009365558624,
-0.22032609581947327,
0.4090631306171417,
0.06504447758197784,
0.19391103088855743,
0.2437659353017807,
-0.5065387487411499,
0.06952055543661118,
-0.03853035718202591,
0.1428883671760559,
0.5448484420776367,
-0.16019006073474884,
0.20569124817848206,
0.3697620928287506,
-0.14225563406944275,
0.49981799721717834,
-0.3342646360397339,
0.17927062511444092,
-0.19360259175300598,
0.2306208312511444,
0.08422598987817764,
0.02709772065281868,
-0.03355935215950012,
0.16266077756881714,
-0.22061988711357117,
0.1645316481590271,
0.1299339085817337,
-0.055314626544713974,
0.18154102563858032,
0.5320361852645874,
0.009406166151165962,
-0.3416406214237213,
-0.22745783627033234,
0.20656323432922363,
-0.16394329071044922,
0.3153638541698456,
-0.09486137330532074,
-0.07713235914707184,
0.10907624661922455,
-0.16552557051181793,
-0.3335946202278137,
0.281498521566391,
-0.08341894298791885,
0.5441377758979797,
-0.07002769410610199,
-0.05367526412010193,
-0.0654045045375824,
0.22002768516540527,
0.07941289991140366,
-0.13874949514865875,
-0.05445189028978348,
-0.09175492823123932,
-0.08849034458398819,
-0.2747747004032135,
-0.13513770699501038,
0.022773675620555878,
0.2547704875469208,
-0.31023821234703064,
-0.3599824607372284,
0.2084234356880188,
0.04348762705922127,
-0.27683085203170776,
0.13000929355621338,
0.2966117858886719,
-0.1079711765050888,
0.117194265127182,
0.07998070120811462,
-0.060416027903556824,
0.10194870829582214,
-0.09148137271404266,
0.1378287374973297,
0.18445375561714172,
-0.2723405957221985,
0.03840724006295204,
-0.07254958152770996,
-0.12654483318328857,
0.03027581237256527,
0.544825553894043,
0.07951167225837708,
0.014667525887489319,
0.4382505714893341,
0.26376795768737793,
0.04875621944665909,
-0.3331155478954315,
0.12422516196966171,
-0.20902098715305328,
-0.21657583117485046,
-0.032997749745845795,
0.03891212120652199,
0.22347016632556915,
0.05925687775015831,
0.10320006310939789,
0.14492449164390564,
0.17718879878520966,
0.15251900255680084,
-0.6146886944770813,
-0.41207635402679443,
-0.05076704919338226,
-0.1135174036026001,
-0.10179777443408966,
-0.0972709208726883,
0.20154359936714172,
0.28375810384750366,
0.036449529230594635,
-0.2931175231933594,
0.029571037739515305,
-0.39406344294548035,
0.07470494508743286,
0.44344615936279297,
-0.2955843508243561,
-0.009803065098822117,
0.20643436908721924,
0.22121357917785645,
-0.1965440958738327,
-0.14492741227149963,
-0.24741697311401367,
-0.026847373694181442,
0.06838018447160721,
0.01696452870965004,
-0.19805340468883514,
0.15768730640411377,
-0.35120689868927,
-0.24849650263786316,
0.1924414187669754,
-0.07229126989841461,
0.038387708365917206,
0.07087678462266922,
0.12218137085437775,
-0.16020822525024414,
0.1678970456123352,
-0.08345013856887817,
0.014651782810688019,
-0.27050769329071045,
0.0771096795797348,
0.11173076927661896,
0.31723007559776306,
0.21723927557468414,
-0.00456121563911438,
-0.634770929813385,
-0.1739438772201538,
-0.24527607858181,
-0.08426152914762497,
0.09532305598258972,
-0.3559568524360657,
-0.014027629047632217,
-0.2292228490114212,
0.06166534870862961,
0.22970014810562134,
-0.11127647012472153,
0.04356539249420166,
0.36442604660987854,
0.250619500875473,
-0.15715685486793518,
-0.013790607452392578,
0.2758882939815521,
0.02771836519241333,
0.009880799800157547,
0.23982161283493042,
-0.10482741892337799,
-0.07613793760538101,
0.1575668752193451,
0.07760471850633621,
0.10168025642633438,
0.09764805436134338,
-0.009248411282896996,
0.3073759377002716,
-0.19900822639465332,
-0.05383271351456642,
0.03650448098778725,
-0.004383508116006851,
0.2784198522567749,
0.3134978413581848,
-0.27198946475982666,
0.2696475088596344,
-0.0701693743467331,
0.05118270218372345,
0.14697334170341492,
-0.20849919319152832,
-0.31382420659065247,
-0.01410338282585144,
-0.24583598971366882,
-0.02951400727033615,
-0.1594555526971817,
0.3483739495277405,
-0.3062150180339813,
-0.2602592408657074,
-0.3952549397945404,
0.5272887945175171,
-0.17804807424545288,
0.05312866345047951,
-0.34371334314346313,
-0.09361079335212708,
-0.2732798457145691,
0.18696752190589905,
0.05059359222650528,
0.07760894298553467,
0.4932880103588104,
0.3244488835334778,
-0.1509423851966858,
-0.5531565546989441,
-0.18600228428840637,
0.26786303520202637,
0.015663601458072662,
-0.35005155205726624,
0.2893441915512085,
0.4177256226539612,
-0.2784986197948456,
-0.00916416198015213,
0.09575920552015305,
0.5214701890945435,
0.29829588532447815,
0.17874141037464142,
0.10023234039545059,
-0.047296952456235886,
-0.03253617882728577,
-0.02540598064661026,
-0.057355403900146484,
0.4776993691921234,
0.21050870418548584,
0.3830700218677521,
0.09772941470146179,
-0.2219572812318802,
0.1700773537158966,
0.09212412685155869,
-0.10505938529968262,
-0.10364902019500732,
0.4112378656864166,
-0.021900199353694916,
0.009776324033737183,
-0.23978394269943237,
0.06705643981695175,
-0.532153844833374,
0.0814332440495491,
0.02670718915760517,
0.13209569454193115,
0.1471249759197235,
0.04539703205227852,
0.0507085919380188,
0.009732412174344063,
0.5457181930541992,
0.30347809195518494,
0.21150445938110352,
-0.29450416564941406,
-0.2823816239833832,
-0.6838547587394714,
0.09728620201349258,
-0.5811141729354858,
-0.10109932720661163,
-0.04636841639876366,
0.23086251318454742,
-0.20032960176467896,
0.21887366473674774,
0.03419375419616699,
0.03454150632023811,
0.18187753856182098,
0.2735223174095154,
-0.3600361943244934,
-0.08478191494941711,
0.21785175800323486,
-0.01897869072854519,
0.033843137323856354,
-0.3433586061000824,
0.06985114514827728,
-0.29056861996650696,
0.08904742449522018,
-0.20073148608207703,
-0.07836273312568665,
0.10260297358036041,
0.28207263350486755,
0.0038188546895980835,
0.12707777321338654,
0.4972708523273468,
0.1928170621395111,
-0.3524489402770996,
-0.22494956851005554,
0.20275938510894775,
-0.16100600361824036,
0.013193242251873016,
0.20362651348114014,
0.40222135186195374,
-0.10290967673063278,
0.14341405034065247,
-0.34613659977912903,
0.5090786218643188,
-0.1239435002207756,
-0.17005468904972076,
-0.07957204431295395,
0.05447427183389664,
0.05632800608873367,
0.11478573828935623,
0.2220102697610855,
0.03505957871675491,
-0.0253666490316391,
0.03940047323703766,
-0.3940590023994446,
-0.2115022838115692,
0.36090049147605896,
-0.09750722348690033,
-0.26557958126068115,
-0.18048956990242004,
0.22695334255695343,
-0.32093262672424316,
0.288031667470932,
-0.5555566549301147,
0.12516218423843384,
0.2969513535499573,
-0.08232887089252472,
-0.5224148035049438,
0.12004685401916504,
0.1242871880531311,
-0.16984114050865173,
-0.007210936397314072,
0.00020599365234375,
0.080766461789608,
-0.4523905813694,
0.23109787702560425,
-0.11049645394086838
] |
https://github.com/huggingface/datasets/issues/234 | Huggingface NLP, Uploading custom dataset | What do you mean 'custom' ? You may want to elaborate on it when ask a question.
Anyway, there are two things you may interested
`nlp.Dataset.from_file` and `load_dataset(..., cache_dir=)` | Hello,
Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp.
Thank you! | 29 | Huggingface NLP, Uploading custom dataset
Hello,
Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp.
Thank you!
What do you mean 'custom' ? You may want to elaborate on it when ask a question.
Anyway, there are two things you may interested
`nlp.Dataset.from_file` and `load_dataset(..., cache_dir=)` | [
0.2511942684650421,
-0.1868031919002533,
0.05262875184416771,
0.08167693018913269,
-0.01063055545091629,
0.09125568717718124,
0.30547773838043213,
-0.0391974039375782,
0.12936468422412872,
-0.14881078898906708,
-0.26894867420196533,
0.19393880665302277,
-0.06050281226634979,
0.2208998203277588,
0.549804151058197,
-0.006288290023803711,
-0.06923060864210129,
0.2022131085395813,
-0.05701436102390289,
-0.10582810640335083,
-0.1856544017791748,
0.22076117992401123,
-0.13702711462974548,
0.17038613557815552,
-0.12144742906093597,
-0.022545767948031425,
-0.06619594991207123,
0.5867705345153809,
-0.14263491332530975,
-0.46990007162094116,
0.33832985162734985,
0.1335822343826294,
0.23018652200698853,
0.3451363146305084,
-0.00011740773334167898,
-0.242519810795784,
0.0866902768611908,
-0.2588348090648651,
-0.2761337459087372,
-0.2854751944541931,
0.185997873544693,
-0.5186666250228882,
0.29832860827445984,
-0.3381848633289337,
-0.0134233757853508,
0.08143012225627899,
0.2943902611732483,
-0.12601616978645325,
0.5597588419914246,
0.0612911619246006,
0.10115265846252441,
0.20226779580116272,
-0.24724538624286652,
0.07984722405672073,
-0.13325360417366028,
0.19417521357536316,
0.027756890282034874,
0.10694006085395813,
0.35069578886032104,
-0.2971976697444916,
-0.0304005965590477,
-0.0905301570892334,
0.11015552282333374,
-0.08725801110267639,
0.5247399210929871,
0.1906173974275589,
-0.2882422208786011,
-0.12822231650352478,
-0.16928136348724365,
0.21190917491912842,
0.4062778949737549,
-0.3414672613143921,
-0.17412984371185303,
-0.3976283669471741,
0.11346819996833801,
-0.17957694828510284,
0.25338834524154663,
0.18681120872497559,
-0.29271063208580017,
0.01894982159137726,
-0.29609084129333496,
-0.12775729596614838,
-0.26048359274864197,
0.19483491778373718,
0.37700939178466797,
0.031241733580827713,
-0.15058350563049316,
0.11210492253303528,
0.20198948681354523,
-0.20200642943382263,
-0.23761631548404694,
0.08168276399374008,
0.14842797815799713,
0.6347584128379822,
-0.3498251736164093,
-0.22184441983699799,
-0.18093988299369812,
0.17088401317596436,
0.2634722590446472,
0.03138331323862076,
0.30429938435554504,
-0.019050203263759613,
-0.1780896633863449,
0.07344581931829453,
0.331624299287796,
0.06215245649218559,
0.47917822003364563,
-0.19504651427268982,
-0.08322781324386597,
-0.06026410311460495,
-0.09062591940164566,
-0.027898989617824554,
-0.3807084262371063,
0.061016276478767395,
-0.1343233287334442,
-0.2206493318080902,
0.027176503092050552,
-0.183277428150177,
0.10381975024938583,
-0.33414965867996216,
0.32564160227775574,
-0.17063507437705994,
0.1045822724699974,
0.2052086889743805,
-0.04137873649597168,
-0.2097400426864624,
-0.08401767909526825,
0.03381374850869179,
-0.07525068521499634,
-0.2528446316719055,
-0.03280844911932945,
-0.03978236764669418,
-0.17268909513950348,
0.09845505654811859,
0.3442991375923157,
-0.23360052704811096,
0.42957252264022827,
-0.08074012398719788,
0.06001345440745354,
0.02335786074399948,
-0.06948990374803543,
0.12546944618225098,
-0.21327751874923706,
-0.2606169283390045,
0.22509804368019104,
-0.08941618353128433,
0.1706475019454956,
-0.3729168772697449,
-0.1835770606994629,
-0.00883917510509491,
-0.22097447514533997,
-0.04548351466655731,
-0.31627005338668823,
0.05115016922354698,
-0.21372465789318085,
-0.4107029438018799,
-0.21107739210128784,
0.4020387828350067,
-0.10216117650270462,
-0.2433483749628067,
-0.04819973558187485,
0.2307528704404831,
-0.19705210626125336,
-0.09704446792602539,
0.07521027326583862,
0.24379679560661316,
-0.4955693781375885,
-0.31211358308792114,
0.16052857041358948,
-0.17991816997528076,
-0.11822345107793808,
0.20048493146896362,
-0.2654593884944916,
0.03575151786208153,
-0.17901599407196045,
0.24510131776332855,
0.6685559153556824,
-0.3615260720252991,
-0.25454604625701904,
0.12915199995040894,
-0.33755093812942505,
0.05039206147193909,
-0.05110769718885422,
0.23125521838665009,
0.2727699279785156,
-0.026181388646364212,
0.11953656375408173,
0.7563428282737732,
0.030437912791967392,
-0.04576696455478668,
-0.014619573950767517,
0.012817153707146645,
0.19135424494743347,
0.08804605901241302,
-0.3754501938819885,
0.19402170181274414,
0.1528022736310959,
0.16382545232772827,
0.1648673117160797,
-0.0200040303170681,
-0.14105156064033508,
-0.011568017303943634,
-0.08746461570262909,
0.37336552143096924,
-0.011961806565523148,
0.09379837661981583,
-0.7424106001853943,
0.25079572200775146,
-0.3227906823158264,
0.026596156880259514,
0.3197612166404724,
-0.05729213356971741,
-0.503421425819397,
-0.15676487982273102,
-0.12506943941116333,
0.13943837583065033,
0.003526996821165085,
0.1284809112548828,
0.11616277694702148,
-0.15004253387451172,
-0.3917633593082428,
0.4788069427013397,
-0.29691338539123535,
0.25986650586128235,
-0.41441410779953003,
0.02796207182109356,
0.2513427436351776,
-0.08677640557289124,
0.05784344673156738,
0.3452284038066864,
0.16673368215560913,
-0.09235631674528122,
0.08540468662977219,
0.3543488383293152,
-0.19660083949565887,
0.31609609723091125,
0.38581860065460205,
-0.07989253103733063,
-0.0119257103651762,
0.059040237218141556,
0.24745486676692963,
-0.18684136867523193,
0.10454875230789185,
-0.2373165488243103,
-0.3755520284175873,
0.20339125394821167,
-0.12668977677822113,
0.11381839215755463,
0.05868799239397049,
-0.22126814723014832,
0.09943351149559021,
-0.050987403839826584,
-0.2495693564414978,
0.02286391705274582,
0.13932529091835022,
0.1846894919872284,
0.577502965927124,
0.029377803206443787,
-0.12295366823673248,
-0.09379727393388748,
0.5493196249008179,
-0.06944523751735687,
0.09780628234148026,
0.2314470112323761,
-0.09451816231012344,
-0.2399565577507019,
0.12456248700618744,
-0.17738598585128784,
0.27808260917663574,
0.23193180561065674,
-0.07778704166412354,
0.04740848019719124,
-0.15717266499996185,
0.04601626843214035,
-0.06323231011629105,
-0.05983194708824158,
-0.07554035633802414,
-0.24135267734527588,
0.24600963294506073,
-0.152058944106102,
-0.4141062796115875,
0.12024475634098053,
-0.08437040448188782,
-0.08879020810127258,
-0.17913852632045746,
0.03278333693742752,
0.025851065292954445,
-0.3187444508075714,
-0.2578935921192169,
-0.260623037815094,
-0.5657719373703003,
0.10988860577344894,
-0.31939613819122314,
-0.16999973356723785,
0.5434656739234924,
-0.04263273626565933,
0.08944612741470337,
0.6790100932121277,
-0.15814781188964844,
-0.16858473420143127,
0.11333726346492767,
-0.05979318544268608,
-0.29738348722457886,
-0.038058530539274216,
0.13494987785816193,
0.2562675178050995,
0.45795392990112305,
-0.00919738132506609,
0.16602222621440887,
0.1255875825881958,
-0.22809669375419617,
0.08643533289432526,
-0.148244246840477,
0.23355810344219208,
0.1508989781141281,
0.19805437326431274,
-0.12742114067077637,
-0.057206135243177414,
0.05234941840171814,
-0.13856683671474457,
-0.17902369797229767,
-0.24043552577495575,
0.00192456622608006,
0.2437562346458435,
-0.03726422041654587,
-0.13209211826324463,
-0.4951517581939697,
-0.20633338391780853,
0.5470717549324036,
0.36379918456077576,
0.10085691511631012,
0.24500535428524017,
-0.33798035979270935,
0.4363187551498413,
-0.20134025812149048,
-0.029894066974520683,
-0.2431282252073288,
-0.5314003229141235,
0.11105328798294067,
-0.2212735265493393,
-0.187045156955719,
0.1094563901424408,
0.04110930114984512,
0.11783243715763092,
-0.2680100202560425,
-0.20268738269805908,
-0.2860259413719177,
0.2530060410499573,
-0.021473107859492302,
-0.05311647057533264,
0.06862451881170273,
0.19881215691566467,
-0.3225419223308563,
0.1168539822101593,
-0.098680779337883,
-0.3786763846874237,
0.19312037527561188,
0.38677778840065,
0.24450555443763733,
0.2283458411693573,
0.13129420578479767,
-0.01584479957818985,
0.6685090661048889,
0.02752760797739029,
-0.10567624866962433,
0.38606563210487366,
-0.005733875557780266,
0.2216113656759262,
0.01894538849592209,
-0.4455036520957947,
0.09687234461307526,
0.2294548749923706,
0.23099707067012787,
0.4019134044647217,
0.2349952757358551,
0.060120828449726105,
-0.29356682300567627,
0.004525359719991684,
-0.1796640157699585,
0.134378120303154,
-0.10143166780471802,
0.2586895823478699,
-0.055722080171108246,
0.14421111345291138,
-0.13770785927772522,
-0.5438349843025208,
-0.29912179708480835,
-0.25036323070526123,
0.19443973898887634,
0.15761223435401917,
0.2664283812046051,
-0.7415145635604858,
0.08207779377698898,
-0.475527286529541,
0.2280857414007187,
0.0425124317407608,
0.14764904975891113,
-0.0042538754642009735,
-0.008556786924600601,
0.20614922046661377,
0.16839838027954102,
0.575007975101471,
0.2543749511241913,
-0.1479313224554062,
-0.058411408215761185,
0.09461513161659241,
-0.46495258808135986,
0.3017905354499817,
0.1423834264278412,
0.3281339406967163,
0.32238006591796875,
0.5257140398025513,
-0.23889252543449402,
-0.24506813287734985,
0.161365807056427,
0.010956436395645142,
-0.3579762876033783,
-0.34288159012794495,
-0.35597676038742065,
-0.1083637997508049,
-0.014247939921915531,
-0.10779055207967758,
-0.1859326809644699,
0.15852780640125275,
0.17609484493732452,
0.06440189480781555,
0.12746594846248627,
0.02651696652173996,
0.07253270596265793,
0.20336930453777313,
-0.03365381807088852,
0.463539719581604,
-0.18958257138729095,
0.39464569091796875,
0.2590389847755432,
-0.5374863743782043,
0.6323099732398987,
-0.4285532832145691,
-0.3377106785774231,
-0.16614854335784912,
-0.0027461666613817215,
0.5326390266418457,
0.2596355676651001,
0.41004207730293274,
0.11357744038105011,
-0.15311101078987122,
-0.1127476841211319,
-0.27995485067367554,
0.2060450166463852,
0.21882285177707672,
-0.08878493309020996,
-0.17243613302707672,
-0.4115309417247772,
0.6642172336578369,
-0.12536916136741638,
-0.014212056994438171,
0.17173102498054504,
0.19198518991470337,
-0.2211804836988449,
0.09170616418123245,
-0.1531621217727661,
0.9541108012199402,
-0.3873250484466553,
0.3526080250740051,
0.11970628798007965,
-0.009998958557844162,
0.7712196707725525,
-0.18179276585578918,
-0.16259148716926575,
-0.36577165126800537,
0.02916928008198738,
-0.0812452957034111,
-0.09404253959655762,
0.21807777881622314,
0.616602897644043,
-0.14231771230697632,
0.32556959986686707,
0.17679770290851593,
-0.09277130663394928,
0.1079549640417099,
0.48752737045288086,
0.18434648215770721,
-0.553848385810852,
-0.710207998752594,
0.06035153567790985,
-0.3340832591056824,
0.20497117936611176,
-0.1655218005180359,
-0.09053316712379456,
0.03481132164597511,
-0.20155775547027588,
0.06625983119010925,
0.014890003949403763,
-0.20541717112064362,
-0.2979591488838196,
0.33459973335266113,
-0.32408660650253296,
0.04149381443858147,
0.513934314250946,
0.15722423791885376,
-0.031050752848386765,
-0.00886627472937107,
-0.006347239017486572,
-0.09182863682508469,
-0.030101794749498367,
-0.20458202064037323,
0.3019345998764038,
0.25180384516716003,
-0.11729513108730316,
-0.03177031874656677,
0.0222393199801445,
0.11663670837879181,
-0.21175517141819,
-0.28350716829299927,
0.23799042403697968,
0.19962309300899506,
-0.3022359311580658,
-0.519416868686676,
-0.0023243576288223267,
0.2110832929611206,
0.08645156025886536,
0.023930996656417847,
0.2017681896686554,
-0.07063327729701996,
-0.11390126496553421,
0.43790051341056824,
-0.04184798523783684,
0.12888167798519135,
0.4388931691646576,
-0.3553406596183777,
-0.47148847579956055,
0.41886547207832336,
0.22820733487606049,
0.11880840361118317,
0.001989014446735382,
0.16962018609046936,
0.0791049376130104,
-0.13070563971996307,
-0.1676652878522873,
0.4686751365661621,
-0.013889625668525696,
-0.0796688124537468,
0.17239679396152496,
0.16188108921051025,
-0.14815187454223633,
0.12804625928401947,
-0.19390206038951874,
-0.35505861043930054,
0.10703186690807343,
-0.026473242789506912,
-0.03478479012846947,
0.46840861439704895,
-0.036919064819812775,
0.23164081573486328,
0.2830166816711426,
-0.18940633535385132,
0.1614171713590622,
-0.25171080231666565,
0.13760146498680115,
0.565326452255249,
-0.17130741477012634,
0.012841295450925827,
0.13651041686534882,
0.0181450042873621,
0.057829663157463074,
-0.12796977162361145,
-0.12722736597061157,
-0.25238993763923645,
0.19877192378044128,
0.1550898551940918,
-0.10448694974184036,
-0.12226823717355728,
-0.1835293471813202,
-0.07821133732795715,
-0.11624680459499359,
0.018614642322063446,
0.14674445986747742,
0.12449859082698822,
0.37031641602516174,
0.07197735458612442,
0.2226104438304901,
-0.0038888975977897644,
0.029006270691752434,
0.148819237947464,
0.20564976334571838,
0.13843104243278503,
-0.0402178093791008,
-0.17970609664916992,
0.03342362493276596,
-0.24606451392173767,
0.22190779447555542,
0.559779942035675,
0.08942733705043793,
0.08146330714225769,
-0.08000142872333527,
0.0924023985862732,
-0.07620596885681152,
0.03494948893785477,
0.13038161396980286,
-0.17928817868232727,
0.14316996932029724,
0.23286020755767822,
0.057484738528728485,
-0.14012855291366577,
-0.1264335662126541,
0.6219961047172546,
-0.10618390142917633,
-0.06477349996566772,
0.250439316034317,
-0.13102781772613525,
0.29225781559944153,
-0.11907202005386353,
-0.21399378776550293,
0.4340817332267761,
0.15132269263267517,
-0.12026511132717133,
-0.13434651494026184,
-0.2251221090555191,
-0.24153642356395721,
0.27511078119277954,
0.3698023557662964,
0.12391821295022964,
0.06801799684762955,
-0.17435240745544434,
0.1309022456407547,
-0.28668147325515747,
0.13940522074699402,
0.32284244894981384,
-0.4448068141937256,
-0.12809604406356812,
0.34350770711898804,
0.28702878952026367,
0.5161551833152771,
-0.25241002440452576,
0.9262969493865967,
-0.2093731015920639,
-0.14747223258018494,
-0.08282362669706345,
0.11014342308044434,
0.12064427882432938,
-0.14019154012203217,
-0.18657830357551575,
-0.020241111516952515,
-0.12502172589302063,
-0.07591131329536438,
-0.20391081273555756,
-0.4526931047439575,
-0.21748769283294678,
-0.12416411936283112,
0.1628553867340088,
-0.06012912094593048,
-0.25608158111572266,
0.22506752610206604,
-0.0895434096455574,
-0.08974618464708328,
0.23541566729545593,
-0.084030881524086,
0.23721830546855927,
0.49167054891586304,
0.1220012977719307,
-0.1269644945859909,
0.20954740047454834,
0.0639064759016037,
0.13985395431518555,
-0.01756923645734787,
0.04401817172765732,
0.007453862577676773,
0.07874113321304321,
0.013279721140861511,
0.06040748581290245,
0.11713574826717377,
0.046508461236953735,
-0.049643661826848984,
-0.01852450892329216,
0.1779908686876297,
-0.018204033374786377,
-0.42967045307159424,
0.17415368556976318,
-0.19356606900691986,
-0.13364940881729126,
-0.4657389521598816,
0.2527311444282532,
-0.5220650434494019,
-0.12877579033374786,
0.0620662160217762,
0.25692084431648254,
0.09894251823425293,
-0.26575806736946106,
0.02985134720802307,
-0.21851271390914917,
0.5074782967567444,
0.21223436295986176,
0.03208085522055626,
0.09515200555324554,
-0.23404854536056519,
-0.5880166292190552,
0.19936996698379517,
0.16457843780517578,
-0.2712225019931793,
0.01898832991719246,
0.06461283564567566,
-0.04010283201932907,
0.19942878186702728,
-0.09023700654506683,
-0.05190455541014671,
-0.15301434695720673,
-0.08055225014686584,
-0.2661844491958618,
-0.2601546049118042,
-0.1091298758983612,
0.26024457812309265,
0.05568404495716095,
0.02859855443239212,
-0.0816722959280014,
0.2017635852098465,
-0.18710148334503174,
-0.13376744091510773,
0.05898080766201019,
-0.011732358485460281,
-0.012499630451202393,
0.11309510469436646,
-0.24795815348625183,
0.3801165521144867,
0.13108161091804504,
0.016236988827586174,
0.12624827027320862,
0.0024311509914696217,
-0.26384472846984863,
0.054738517850637436,
-0.07138244807720184,
0.30614081025123596,
-0.20069773495197296,
0.05200721696019173,
-0.15536558628082275,
0.128650963306427,
-0.08898891508579254,
-0.1510300189256668,
-0.1771155595779419,
-0.11246064305305481,
-0.10704655945301056,
-0.037211500108242035,
0.19365213811397552,
0.5496388673782349,
-0.0695769190788269,
0.19621442258358002,
-0.08951157331466675,
0.1812865287065506,
0.4863640069961548,
-0.4867602586746216,
-0.09125037491321564,
0.1694689393043518,
0.2191719114780426,
0.1114574670791626,
-0.330290824174881,
-0.42944079637527466,
0.15020257234573364,
0.3653632700443268,
0.001104101538658142,
0.06914520263671875,
0.4149715006351471,
-0.48034974932670593,
-0.029514256864786148,
-0.09052260220050812,
-0.016654901206493378,
0.2801741659641266,
0.16563653945922852,
0.08428165316581726,
-0.07443392276763916
] |
https://github.com/huggingface/datasets/issues/234 | Huggingface NLP, Uploading custom dataset | To load a dataset you need to have a script that defines the format of the examples, the splits and the way to generate examples. As your dataset has the same format of squad, you can just copy the squad script (see the [datasets](https://github.com/huggingface/nlp/tree/master/datasets) forlder) and just replace the url to load the data to your local or remote path.
Then what you can do is `load_dataset(<path/to/your/script>)` | Hello,
Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp.
Thank you! | 67 | Huggingface NLP, Uploading custom dataset
Hello,
Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp.
Thank you!
To load a dataset you need to have a script that defines the format of the examples, the splits and the way to generate examples. As your dataset has the same format of squad, you can just copy the squad script (see the [datasets](https://github.com/huggingface/nlp/tree/master/datasets) forlder) and just replace the url to load the data to your local or remote path.
Then what you can do is `load_dataset(<path/to/your/script>)` | [
0.1632617563009262,
-0.21372874081134796,
0.06531183421611786,
0.16295278072357178,
-0.062489673495292664,
0.09282497316598892,
0.25121599435806274,
-0.04306688532233238,
0.14747254550457,
-0.14725171029567719,
-0.20299477875232697,
0.18710431456565857,
-0.1082475483417511,
0.374534547328949,
0.606244683265686,
-0.07163521647453308,
-0.11528966575860977,
0.17533329129219055,
-0.05153509974479675,
-0.03770679607987404,
-0.19810600578784943,
0.25601622462272644,
-0.12575621902942657,
0.2088317573070526,
-0.1571895182132721,
0.06457921117544174,
-0.12926435470581055,
0.6166015863418579,
-0.04322788864374161,
-0.46532484889030457,
0.45857128500938416,
0.1644793450832367,
0.30752789974212646,
0.39236578345298767,
-0.0001183142012450844,
-0.23410755395889282,
0.1320633888244629,
-0.26587268710136414,
-0.2585260272026062,
-0.43514955043792725,
0.11573008447885513,
-0.41351252794265747,
0.35766837000846863,
-0.2580878436565399,
-0.07578357309103012,
0.1012231782078743,
0.25670087337493896,
-0.07171321660280228,
0.523012101650238,
0.0841129869222641,
0.07940050214529037,
0.17528799176216125,
-0.19734393060207367,
0.006930224131792784,
-0.07992597669363022,
0.2747293710708618,
0.11854226142168045,
0.25473225116729736,
0.4028354585170746,
-0.31940048933029175,
-0.010998323559761047,
-0.1588699072599411,
0.07885690778493881,
-0.07656559348106384,
0.5086483955383301,
0.13938769698143005,
-0.38387981057167053,
-0.10769753158092499,
-0.1860264539718628,
0.26056164503097534,
0.4418688714504242,
-0.4110240638256073,
-0.16385315358638763,
-0.3494082987308502,
0.1157299280166626,
-0.08194088935852051,
0.20043206214904785,
0.24703407287597656,
-0.2333192676305771,
-0.0007751546800136566,
-0.32480987906455994,
-0.08140797168016434,
-0.2789473533630371,
0.26529622077941895,
0.4247462749481201,
-0.02823590487241745,
-0.1757749766111374,
0.1322721689939499,
0.14658838510513306,
-0.1842675656080246,
-0.2298351675271988,
0.04103103280067444,
0.1278063803911209,
0.5799484848976135,
-0.2658238410949707,
-0.22679658234119415,
-0.16166818141937256,
0.19542784988880157,
0.3089892864227295,
0.07298813760280609,
0.2669964134693146,
0.008543869480490685,
-0.23983556032180786,
0.08319223672151566,
0.37220945954322815,
0.056662123650312424,
0.49182137846946716,
-0.1684589833021164,
-0.1371181607246399,
0.01939472183585167,
-0.11305384337902069,
-0.027966849505901337,
-0.44326454401016235,
0.04358842968940735,
-0.24435065686702728,
-0.20977070927619934,
0.053598083555698395,
-0.2177802473306656,
0.04560644179582596,
-0.3099789619445801,
0.2870750427246094,
-0.1471867561340332,
0.10018802434206009,
0.22488561272621155,
-0.006534827873110771,
-0.17654076218605042,
-0.04195285588502884,
0.13135036826133728,
-0.08768259733915329,
-0.24248634278774261,
0.015461347997188568,
-0.02599668875336647,
-0.15021491050720215,
0.18161000311374664,
0.3011455833911896,
-0.16263535618782043,
0.4779958128929138,
-0.111651211977005,
0.0032148361206054688,
-0.0790122002363205,
-0.07859303802251816,
0.20462161302566528,
-0.2747233808040619,
-0.22805409133434296,
0.29845675826072693,
-0.11991124600172043,
0.2767028510570526,
-0.2447417676448822,
-0.19505903124809265,
-0.016200006008148193,
-0.19808128476142883,
-0.09980777651071548,
-0.26044246554374695,
0.02985098958015442,
-0.24147620797157288,
-0.429025799036026,
-0.3082435131072998,
0.41734445095062256,
-0.18800470232963562,
-0.24434839189052582,
-0.06525767594575882,
0.22109393775463104,
-0.262789249420166,
-0.10887625068426132,
0.14350563287734985,
0.32038214802742004,
-0.5170243978500366,
-0.34340614080429077,
0.15137922763824463,
-0.08548763394355774,
-0.16925808787345886,
0.1477360874414444,
-0.3176533281803131,
0.15248921513557434,
-0.20475730299949646,
0.22173772752285004,
0.5584893822669983,
-0.2829347252845764,
-0.12329374253749847,
0.20481249690055847,
-0.34739041328430176,
-0.05996238440275192,
-0.062330566346645355,
0.21365870535373688,
0.24724452197551727,
-0.018248088657855988,
0.030618466436862946,
0.6990076899528503,
0.04606357961893082,
-0.04945925623178482,
0.04433007910847664,
-0.05560510605573654,
0.11617197096347809,
0.12398475408554077,
-0.4393499791622162,
0.20055128633975983,
0.1385037899017334,
0.15597255527973175,
0.12808692455291748,
-0.006327744573354721,
-0.16632528603076935,
0.014678571373224258,
-0.0424191914498806,
0.3889630436897278,
-0.018627246841788292,
0.005716927349567413,
-0.6861997842788696,
0.24283039569854736,
-0.3102067708969116,
-0.11798644065856934,
0.3537498116493225,
-0.07474812865257263,
-0.5600333213806152,
-0.11995299905538559,
-0.0521744079887867,
0.14236363768577576,
-0.031013166531920433,
0.07152401655912399,
0.23519134521484375,
-0.15593817830085754,
-0.419976145029068,
0.36589348316192627,
-0.2654144763946533,
0.2219630628824234,
-0.44220638275146484,
0.07150688022375107,
0.2992537021636963,
-0.11903166770935059,
0.17114679515361786,
0.34485939145088196,
0.18592974543571472,
-0.18323394656181335,
0.13240210711956024,
0.40430155396461487,
-0.08981375396251678,
0.303801953792572,
0.3436340093612671,
-0.11675567924976349,
-0.0457206666469574,
0.018000755459070206,
0.2573494017124176,
-0.07227694988250732,
0.16223347187042236,
-0.23562276363372803,
-0.3941665589809418,
0.2469722032546997,
-0.16628193855285645,
0.1955576241016388,
0.08559736609458923,
-0.14042134582996368,
0.07530355453491211,
-0.10765621066093445,
-0.2879717946052551,
0.030881322920322418,
0.12613293528556824,
0.16420350968837738,
0.5432069897651672,
0.015149638056755066,
-0.07429313659667969,
-0.13753607869148254,
0.4589146375656128,
-0.16215936839580536,
0.048336803913116455,
0.27577924728393555,
-0.2151983380317688,
-0.16496622562408447,
0.09675158560276031,
-0.11399863660335541,
0.31007832288742065,
0.2174779623746872,
-0.1915290355682373,
0.12095171213150024,
-0.15468643605709076,
0.016793888062238693,
-0.07760586589574814,
0.00966547429561615,
-0.07242254167795181,
-0.2934228181838989,
0.028983792290091515,
-0.16824449598789215,
-0.3165302276611328,
0.007310453802347183,
-0.08371999859809875,
-0.052739448845386505,
-0.27976399660110474,
0.08461759984493256,
-0.023807590827345848,
-0.33302393555641174,
-0.3326042592525482,
-0.3089471161365509,
-0.4092176854610443,
0.11759312450885773,
-0.3757782578468323,
-0.08988112211227417,
0.5219324827194214,
-0.0674932450056076,
0.07894639670848846,
0.572955846786499,
-0.19674375653266907,
-0.14011885225772858,
0.14926433563232422,
-0.1234438419342041,
-0.33715686202049255,
-0.05818328261375427,
0.21754349768161774,
0.38722142577171326,
0.4830290675163269,
-0.09626982361078262,
0.16980955004692078,
0.14312823116779327,
-0.15509894490242004,
0.07612371444702148,
-0.1170583963394165,
0.17877334356307983,
0.22817495465278625,
0.20395341515541077,
-0.11202236264944077,
-0.09224940091371536,
0.06992515921592712,
-0.14413100481033325,
-0.09470446407794952,
-0.21469587087631226,
0.006522829644382,
0.14879685640335083,
-0.06929890811443329,
-0.2026626169681549,
-0.39260414242744446,
-0.20460227131843567,
0.5442577600479126,
0.3179154694080353,
0.09456638991832733,
0.1486196368932724,
-0.20049390196800232,
0.5334939956665039,
-0.2726587653160095,
-0.09559836983680725,
-0.15342243015766144,
-0.5053129196166992,
0.0433264896273613,
-0.18283526599407196,
-0.23921389877796173,
0.17315703630447388,
-0.002384975552558899,
0.08039385080337524,
-0.27211546897888184,
-0.21416525542736053,
-0.30958062410354614,
0.16588793694972992,
-0.12431555986404419,
0.01111646369099617,
0.06369448453187943,
0.1931690275669098,
-0.3519288897514343,
0.14232012629508972,
-0.0800970196723938,
-0.3716738522052765,
0.17278394103050232,
0.3058595359325409,
0.12594881653785706,
0.3053834140300751,
0.2932277023792267,
-0.08386922627687454,
0.5675310492515564,
0.12912634015083313,
-0.17147980630397797,
0.3443664014339447,
-0.040266796946525574,
0.17897723615169525,
0.06799247860908508,
-0.3560132086277008,
0.03802192211151123,
0.17957943677902222,
0.22006839513778687,
0.4753512144088745,
0.26605460047721863,
0.18119096755981445,
-0.29314422607421875,
-0.07267522811889648,
-0.1638060361146927,
0.09776967763900757,
-0.04927409440279007,
0.11757312715053558,
-0.03603505343198776,
0.06425699591636658,
-0.1507171392440796,
-0.45463600754737854,
-0.29778656363487244,
-0.251093327999115,
0.2559710144996643,
0.17129787802696228,
0.29182422161102295,
-0.6364760398864746,
0.07136545330286026,
-0.3645474314689636,
0.2603875398635864,
0.020470447838306427,
0.14054937660694122,
0.006777506321668625,
0.035419195890426636,
0.21483749151229858,
0.17906513810157776,
0.4744752049446106,
0.28189244866371155,
-0.12754133343696594,
-0.0829932689666748,
0.014544349163770676,
-0.5307665467262268,
0.28004440665245056,
0.09369023144245148,
0.33893531560897827,
0.30420631170272827,
0.5084879398345947,
-0.2509050965309143,
-0.22832167148590088,
0.19436244666576385,
0.04912446439266205,
-0.30412593483924866,
-0.39142554998397827,
-0.2928212285041809,
-0.1052878201007843,
-0.15624359250068665,
-0.14473706483840942,
-0.15886996686458588,
0.09107806533575058,
0.12527476251125336,
0.0737438052892685,
0.10210864990949631,
-0.06542260944843292,
0.10059339553117752,
0.12420329451560974,
0.025987545028328896,
0.43033385276794434,
-0.20999731123447418,
0.35200750827789307,
0.24236097931861877,
-0.50841224193573,
0.6294354796409607,
-0.2764793336391449,
-0.33679330348968506,
-0.202091246843338,
-0.0018837787210941315,
0.5229844450950623,
0.09896309673786163,
0.37659382820129395,
0.07718056440353394,
-0.07112371921539307,
-0.12964247167110443,
-0.30971559882164,
0.23323597013950348,
0.13512511551380157,
-0.09116216003894806,
-0.12057425081729889,
-0.4487234055995941,
0.6946142911911011,
-0.10617697238922119,
0.01594652235507965,
0.07893112301826477,
0.16301533579826355,
-0.1994716227054596,
0.1325688660144806,
-0.18685460090637207,
0.7473623752593994,
-0.3751448392868042,
0.39025846123695374,
0.13024570047855377,
0.003509391099214554,
0.717038631439209,
-0.09506726264953613,
-0.24417056143283844,
-0.3508577048778534,
0.10995464771986008,
-0.145749032497406,
-0.11183816939592361,
0.1543857604265213,
0.6320906281471252,
-0.20974881947040558,
0.38868001103401184,
0.10370758175849915,
-0.002998415380716324,
0.14807628095149994,
0.5094792246818542,
0.15458393096923828,
-0.5113891363143921,
-0.6902393698692322,
0.056721821427345276,
-0.2997640371322632,
0.2571175992488861,
-0.11797434836626053,
-0.09644138813018799,
-0.01744203269481659,
-0.20259930193424225,
-0.015773557126522064,
0.0593106746673584,
-0.22451229393482208,
-0.32307857275009155,
0.22935447096824646,
-0.2782454490661621,
0.16244640946388245,
0.5821104049682617,
0.12423932552337646,
-0.025937344878911972,
-0.09180345386266708,
-0.053145598620176315,
-0.1775505542755127,
-0.09155341237783432,
-0.19871129095554352,
0.23407623171806335,
0.2042720764875412,
-0.04266835376620293,
-0.01672200858592987,
-0.01919201761484146,
0.1943223923444748,
-0.10673291981220245,
-0.279477059841156,
0.21976153552532196,
0.12900583446025848,
-0.35576799511909485,
-0.6285935044288635,
-0.021685682237148285,
0.194107785820961,
0.09406538307666779,
-0.011000940576195717,
0.23769979178905487,
-0.06375978142023087,
-0.11854518204927444,
0.4086727499961853,
-0.043562740087509155,
0.10402734577655792,
0.3902845084667206,
-0.3402026295661926,
-0.39568427205085754,
0.4708957374095917,
0.2909398078918457,
0.2221643477678299,
0.002817288041114807,
0.21712180972099304,
0.21110284328460693,
-0.21193799376487732,
-0.14505350589752197,
0.5018588304519653,
0.07193440198898315,
0.017212193459272385,
0.16966000199317932,
0.14556050300598145,
-0.14448300004005432,
0.16084562242031097,
-0.2607409656047821,
-0.36152586340904236,
0.12321990728378296,
0.02343478985130787,
0.022999396547675133,
0.41832947731018066,
0.03865502029657364,
0.24114397168159485,
0.22139611840248108,
-0.14266610145568848,
0.19204139709472656,
-0.18994849920272827,
0.0788211077451706,
0.555752158164978,
-0.053768232464790344,
0.010327397845685482,
0.1289435178041458,
-0.023226464167237282,
0.05559399351477623,
-0.028982486575841904,
-0.08954301476478577,
-0.26426583528518677,
0.21327172219753265,
0.18990850448608398,
-0.10705958306789398,
-0.1478242427110672,
-0.18727391958236694,
-0.03413231298327446,
-0.11362341791391373,
-0.012284177355468273,
0.1121051087975502,
0.1320393830537796,
0.31770625710487366,
0.06299686431884766,
0.2132779359817505,
-0.052368879318237305,
0.06454261392354965,
0.04923376068472862,
0.229567751288414,
0.13814476132392883,
-0.04919809848070145,
-0.06079143285751343,
0.018743328750133514,
-0.30086278915405273,
0.22918033599853516,
0.6159528493881226,
0.042167555540800095,
0.054298486560583115,
-0.048663005232810974,
0.10308831930160522,
-0.13135288655757904,
0.09905321151018143,
0.1644873321056366,
-0.11996395885944366,
0.14642228186130524,
0.30288127064704895,
0.018176652491092682,
-0.10554266721010208,
0.029367094859480858,
0.5654892325401306,
-0.08959868550300598,
-0.08291415870189667,
0.22933965921401978,
-0.16961027681827545,
0.3017823100090027,
-0.17733974754810333,
-0.20497724413871765,
0.3812519907951355,
0.28030139207839966,
-0.05521343648433685,
-0.11865772306919098,
-0.15816126763820648,
-0.24888311326503754,
0.145304337143898,
0.3515394926071167,
0.14398516714572906,
-0.08572162687778473,
-0.20175319910049438,
0.21222005784511566,
-0.33048775792121887,
0.14399169385433197,
0.3951106369495392,
-0.44312265515327454,
-0.19522367417812347,
0.3206203281879425,
0.3337934911251068,
0.45311838388442993,
-0.30407631397247314,
0.9252222180366516,
-0.22914472222328186,
-0.09722111374139786,
-0.14219795167446136,
0.11823344230651855,
0.15550243854522705,
-0.17791612446308136,
-0.21839302778244019,
0.0511370524764061,
-0.06418918818235397,
-0.08021616190671921,
-0.16750366985797882,
-0.4903082847595215,
-0.2019679844379425,
-0.13635148108005524,
0.12418904155492783,
-0.11704893410205841,
-0.2363889217376709,
0.2489044964313507,
-0.18509945273399353,
-0.07985907793045044,
0.21283961832523346,
-0.03386373817920685,
0.257538378238678,
0.5040984749794006,
0.08443612605333328,
-0.04762919619679451,
0.19654466211795807,
0.011971637606620789,
0.17206472158432007,
-0.0335550419986248,
0.07781584560871124,
0.05947227030992508,
0.06235404312610626,
-0.06200145184993744,
0.1188880056142807,
0.13646464049816132,
0.043342411518096924,
-0.004625141620635986,
-0.06814059615135193,
0.15303575992584229,
-0.002530166879296303,
-0.4499550461769104,
0.21424546837806702,
-0.20778124034404755,
-0.08220231533050537,
-0.48685356974601746,
0.2683149576187134,
-0.5577459931373596,
-0.13331173360347748,
0.04422328621149063,
0.2668989300727844,
0.09385684132575989,
-0.2231745570898056,
0.01270005851984024,
-0.22354398667812347,
0.5138818025588989,
0.1905684769153595,
0.1077861487865448,
0.03241340070962906,
-0.27082881331443787,
-0.5493534207344055,
0.1231706440448761,
0.09535913914442062,
-0.32978859543800354,
0.023941662162542343,
-0.00938436109572649,
-0.09095672518014908,
0.17946720123291016,
-0.21855737268924713,
-0.06680448353290558,
-0.20225775241851807,
-0.02624966949224472,
-0.19424578547477722,
-0.3171685039997101,
-0.19571171700954437,
0.3553725779056549,
0.05703556537628174,
0.08779270201921463,
-0.15571320056915283,
0.15836068987846375,
-0.22109583020210266,
-0.1377209722995758,
0.13679139316082,
-0.004367996007204056,
-0.08020539581775665,
-0.02157662808895111,
-0.21142461895942688,
0.43623894453048706,
0.14454931020736694,
0.11899102479219437,
0.008803248405456543,
-0.0007137153297662735,
-0.23263466358184814,
0.09279445558786392,
-0.09735427796840668,
0.2749657928943634,
-0.26326411962509155,
0.0623067207634449,
-0.17645759880542755,
0.06021951511502266,
-0.0963154211640358,
-0.1251278817653656,
-0.08287547528743744,
-0.06680392473936081,
-0.17805205285549164,
-0.0061445217579603195,
0.23773811757564545,
0.5563531517982483,
-0.10588717460632324,
0.23053614795207977,
0.03344243764877319,
0.1536969393491745,
0.4228231608867645,
-0.46477803587913513,
-0.06686382740736008,
0.2159595936536789,
0.22182270884513855,
-0.009812168776988983,
-0.32322582602500916,
-0.41804057359695435,
0.2003142535686493,
0.3468030095100403,
0.04228633642196655,
0.13560855388641357,
0.41169264912605286,
-0.36179977655410767,
-0.0551312118768692,
-0.0770757645368576,
0.08785266429185867,
0.2676624655723572,
0.13410168886184692,
0.08728918433189392,
-0.10151990503072739
] |
https://github.com/huggingface/datasets/issues/234 | Huggingface NLP, Uploading custom dataset | Also if you want to upload your script, you should be able to use the `nlp-cli`.
Unfortunately the upload feature was not shipped in the latest version 0.2.0. so right now you can either clone the repo to use it or wait for the next release. We will add some docs to explain how to upload datasets.
| Hello,
Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp.
Thank you! | 57 | Huggingface NLP, Uploading custom dataset
Hello,
Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp.
Thank you!
Also if you want to upload your script, you should be able to use the `nlp-cli`.
Unfortunately the upload feature was not shipped in the latest version 0.2.0. so right now you can either clone the repo to use it or wait for the next release. We will add some docs to explain how to upload datasets.
| [
0.17646771669387817,
-0.14044621586799622,
0.08491942286491394,
-0.01828109472990036,
-0.07171348482370377,
0.07580340653657913,
0.3437076210975647,
-0.03492964431643486,
0.19549055397510529,
-0.08000144362449646,
-0.20744414627552032,
0.28856760263442993,
-0.055338867008686066,
0.31747907400131226,
0.6837018728256226,
-0.00823141634464264,
-0.11098352819681168,
0.2270631194114685,
-0.11070027947425842,
-0.07272522896528244,
-0.18845252692699432,
0.24829858541488647,
-0.15156733989715576,
0.1427883356809616,
-0.09049752354621887,
0.03273557126522064,
-0.13684284687042236,
0.5879558324813843,
-0.034758053719997406,
-0.46278414130210876,
0.3801741600036621,
0.18507620692253113,
0.27056774497032166,
0.29155832529067993,
-0.00011991957580903545,
-0.3151124119758606,
0.2196170538663864,
-0.2283892035484314,
-0.19920818507671356,
-0.388629674911499,
0.22902518510818481,
-0.4995836615562439,
0.32960498332977295,
-0.25454479455947876,
0.022910501807928085,
0.04803122207522392,
0.3462796211242676,
-0.0469348318874836,
0.4474567174911499,
0.11200455576181412,
0.06824842095375061,
0.23576819896697998,
-0.20869120955467224,
0.016588235273957253,
-0.12611210346221924,
0.20234833657741547,
0.0364912748336792,
0.0982225239276886,
0.47450780868530273,
-0.37675929069519043,
-0.020459935069084167,
-0.22928832471370697,
0.1150452196598053,
-0.2255515605211258,
0.5860812664031982,
0.16504761576652527,
-0.29937320947647095,
-0.1718945950269699,
-0.14956432580947876,
0.2630613446235657,
0.4205905497074127,
-0.38515931367874146,
-0.15772122144699097,
-0.35617703199386597,
0.16024573147296906,
-0.09329120814800262,
0.24202638864517212,
0.21689057350158691,
-0.19882014393806458,
-0.040875840932130814,
-0.30090150237083435,
-0.08359057456254959,
-0.304892897605896,
0.2369064837694168,
0.4349043369293213,
0.07357729971408844,
-0.07486911118030548,
0.12352773547172546,
0.2585088610649109,
-0.25150007009506226,
-0.16753993928432465,
0.12066536396741867,
0.09021825343370438,
0.6502202749252319,
-0.2848987579345703,
-0.3007371425628662,
-0.18031510710716248,
0.15863454341888428,
0.34655827283859253,
0.08710576593875885,
0.23400942981243134,
-0.037951819598674774,
-0.23158873617649078,
0.06325212121009827,
0.41352376341819763,
0.07228803634643555,
0.5410381555557251,
-0.2067290097475052,
-0.10945974290370941,
-0.07465670257806778,
-0.007132202386856079,
-0.038775622844696045,
-0.34368348121643066,
0.0666881650686264,
-0.2101968675851822,
-0.2071942687034607,
-0.00399763323366642,
-0.21058401465415955,
0.08842314779758453,
-0.30162936449050903,
0.3965160846710205,
-0.20215661823749542,
0.033717744052410126,
0.23376822471618652,
-0.026279136538505554,
-0.1990772783756256,
-0.006629191339015961,
0.1639600694179535,
-0.024070434272289276,
-0.2833610773086548,
0.02774043008685112,
0.029035326093435287,
-0.14417167007923126,
0.12921898066997528,
0.3083159923553467,
-0.11916357278823853,
0.42920076847076416,
-0.14623114466667175,
0.1151796281337738,
0.034417472779750824,
-0.18534152209758759,
0.20043639838695526,
-0.27921366691589355,
-0.21166066825389862,
0.2990439832210541,
-0.15028922259807587,
0.12452423572540283,
-0.31653159856796265,
-0.17800509929656982,
0.05668412148952484,
-0.11736180633306503,
-0.022280696779489517,
-0.3355047106742859,
-0.0008656065911054611,
-0.157663956284523,
-0.5109565258026123,
-0.2110404074192047,
0.40583282709121704,
-0.20449325442314148,
-0.25495871901512146,
-0.09434855729341507,
0.14545395970344543,
-0.23388171195983887,
-0.09564373642206192,
0.08039114624261856,
0.23958882689476013,
-0.5089071393013,
-0.3144393861293793,
0.13476282358169556,
-0.05572928115725517,
-0.09099122136831284,
0.12362641096115112,
-0.22575338184833527,
0.011353567242622375,
-0.13733698427677155,
0.2648733854293823,
0.6306737661361694,
-0.3635215759277344,
-0.1708132028579712,
0.16602562367916107,
-0.2847299873828888,
-0.012698606587946415,
-0.07833152264356613,
0.24037298560142517,
0.25748682022094727,
-0.04333367943763733,
-0.007261402904987335,
0.7859991788864136,
0.02039952389895916,
-0.030374882742762566,
0.01995738223195076,
-0.04552400857210159,
0.18738313019275665,
0.1366538405418396,
-0.34325316548347473,
0.20711565017700195,
0.16151849925518036,
0.11164876818656921,
0.19579952955245972,
0.016168929636478424,
-0.16043353080749512,
-0.038694918155670166,
-0.07260636985301971,
0.3785211443901062,
0.016535360366106033,
0.03755944222211838,
-0.692495584487915,
0.20666706562042236,
-0.4188101589679718,
-0.014900848269462585,
0.3599671721458435,
-0.05279853940010071,
-0.5092000365257263,
-0.11824848502874374,
-0.00012578442692756653,
0.17533639073371887,
-0.03502452373504639,
0.08832774311304092,
0.14143259823322296,
-0.1319972276687622,
-0.46861547231674194,
0.4200883209705353,
-0.26564645767211914,
0.21593916416168213,
-0.383991003036499,
0.0986371859908104,
0.2503148913383484,
-0.1872020959854126,
0.1851065754890442,
0.3410763144493103,
0.17773064970970154,
-0.1337013840675354,
0.10101108998060226,
0.3626878261566162,
-0.19582368433475494,
0.29497087001800537,
0.41557279229164124,
-0.08861057460308075,
-0.052945710718631744,
0.08553777635097504,
0.25795072317123413,
-0.11008451879024506,
0.04297032207250595,
-0.27111226320266724,
-0.39200565218925476,
0.20966994762420654,
-0.1177297830581665,
0.1833425760269165,
0.038243040442466736,
-0.13591636717319489,
0.06670320779085159,
-0.12947992980480194,
-0.3018999695777893,
0.05939847230911255,
0.09138311445713043,
0.13989606499671936,
0.5469380021095276,
-0.08448412269353867,
-0.11833283305168152,
-0.04949641972780228,
0.5501152276992798,
-0.11400167644023895,
0.07795965671539307,
0.251215398311615,
-0.10554560273885727,
-0.1468648910522461,
0.12600506842136383,
-0.1908881515264511,
0.2596573531627655,
0.22837583720684052,
-0.22714683413505554,
0.07373634725809097,
-0.20616723597049713,
0.04595242440700531,
-0.08462277799844742,
-0.11731946468353271,
-0.052710603922605515,
-0.2695630192756653,
0.17402446269989014,
-0.18824048340320587,
-0.40446937084198,
0.08697021007537842,
-0.14704330265522003,
-0.0693100243806839,
-0.20848217606544495,
0.015328837558627129,
0.0022145193070173264,
-0.3238925039768219,
-0.22590315341949463,
-0.26588544249534607,
-0.49109601974487305,
0.05261951684951782,
-0.3498063087463379,
-0.10627737641334534,
0.5295965075492859,
-0.05207272619009018,
0.15739062428474426,
0.6836397647857666,
-0.1498996466398239,
-0.06607074290513992,
0.07184198498725891,
-0.02698231115937233,
-0.29550614953041077,
-0.059820011258125305,
0.14935274422168732,
0.28598806262016296,
0.4051011800765991,
-0.0493488535284996,
0.19536606967449188,
0.12785176932811737,
-0.23629292845726013,
0.07498244941234589,
-0.16106225550174713,
0.15668757259845734,
0.19230160117149353,
0.18003162741661072,
-0.09953866899013519,
-0.07370764762163162,
0.04708073288202286,
-0.1955215334892273,
-0.14397253096103668,
-0.19436493515968323,
0.013751454651355743,
0.051860008388757706,
-0.11143627762794495,
-0.1601400077342987,
-0.46443745493888855,
-0.20909921824932098,
0.5759683847427368,
0.4488871395587921,
0.13236388564109802,
0.18349577486515045,
-0.23225152492523193,
0.4705429971218109,
-0.2687545120716095,
-0.09736183285713196,
-0.13508917391300201,
-0.4322136342525482,
0.13802355527877808,
-0.23099975287914276,
-0.26513949036598206,
0.20417329668998718,
0.08503163605928421,
0.07297812402248383,
-0.3694358468055725,
-0.18066546320915222,
-0.29827970266342163,
0.23050297796726227,
-0.06450726091861725,
0.014479335397481918,
0.08362548798322678,
0.22016282379627228,
-0.30170175433158875,
0.16907817125320435,
-0.11467280983924866,
-0.4005320370197296,
0.1927458941936493,
0.41777104139328003,
0.21123453974723816,
0.3016076385974884,
0.1985858976840973,
-0.12167955935001373,
0.4930609464645386,
0.09624773263931274,
-0.1669529229402542,
0.3587186336517334,
-0.051083847880363464,
0.21816840767860413,
0.038996372371912,
-0.42253994941711426,
0.06702091544866562,
0.2781134843826294,
0.26943087577819824,
0.40799665451049805,
0.1909221112728119,
0.0648137703537941,
-0.30977174639701843,
-0.03768349438905716,
-0.03745059669017792,
0.14917996525764465,
-0.0980653464794159,
0.2544049620628357,
-0.12425167113542557,
0.07800430059432983,
-0.11707518994808197,
-0.5316743850708008,
-0.3109455704689026,
-0.19868464767932892,
0.20320725440979004,
0.2260255515575409,
0.264403760433197,
-0.7062584161758423,
0.08572172373533249,
-0.513996422290802,
0.21984237432479858,
-0.014595625922083855,
0.11830475926399231,
-0.03375748172402382,
0.004515256732702255,
0.16518418490886688,
0.15201373398303986,
0.5225445032119751,
0.19511573016643524,
-0.1938697099685669,
-0.03984462097287178,
0.10119357705116272,
-0.5167872309684753,
0.29032909870147705,
0.057481396943330765,
0.2678438723087311,
0.34125828742980957,
0.4525686502456665,
-0.17916110157966614,
-0.19648997485637665,
0.2660776376724243,
-0.012856944464147091,
-0.357755571603775,
-0.43036261200904846,
-0.31040123105049133,
-0.10453426837921143,
-0.11241942644119263,
-0.1667010486125946,
-0.19237203896045685,
0.13978791236877441,
0.15492695569992065,
-0.016902651637792587,
0.15461097657680511,
-0.06443734467029572,
0.0979747474193573,
0.17278197407722473,
-0.029972370713949203,
0.5414883494377136,
-0.2067313939332962,
0.31151092052459717,
0.2032041996717453,
-0.49543511867523193,
0.535637378692627,
-0.3347659707069397,
-0.34038352966308594,
-0.18914735317230225,
-0.06642709672451019,
0.63800048828125,
0.186788871884346,
0.41271424293518066,
0.07166039943695068,
-0.17011034488677979,
-0.1324494630098343,
-0.20605185627937317,
0.1522977352142334,
0.18082642555236816,
-0.08185608685016632,
-0.06207066401839256,
-0.3783705532550812,
0.6578401327133179,
-0.14843818545341492,
0.015240371227264404,
0.14286014437675476,
0.13147909939289093,
-0.2073982059955597,
0.16788733005523682,
-0.17566412687301636,
0.9181859493255615,
-0.4013735055923462,
0.3045080304145813,
0.06582675874233246,
-0.0023992322385311127,
0.6905830502510071,
-0.12637647986412048,
-0.1575801521539688,
-0.44691887497901917,
0.03181615099310875,
-0.12453556060791016,
-0.11170776188373566,
0.1562141478061676,
0.606044590473175,
-0.29041600227355957,
0.3330256938934326,
0.10226313769817352,
-0.15665128827095032,
0.08574602752923965,
0.5474109649658203,
0.19547900557518005,
-0.5521773099899292,
-0.6150878071784973,
0.05078207701444626,
-0.2713095545768738,
0.21744203567504883,
-0.12250259518623352,
-0.14447100460529327,
0.017699670046567917,
-0.15260061621665955,
0.020932897925376892,
0.15391305088996887,
-0.14134083688259125,
-0.37871211767196655,
0.3384368121623993,
-0.17111366987228394,
0.12888462841510773,
0.5490389466285706,
0.17901577055454254,
0.02110975980758667,
-0.014078693464398384,
-0.027872037142515182,
-0.1363568902015686,
-0.09822268784046173,
-0.20088404417037964,
0.3473667800426483,
0.2184486985206604,
-0.10026296973228455,
-0.08787529915571213,
0.0284435972571373,
0.16983288526535034,
-0.2046903818845749,
-0.2876240611076355,
0.2139715552330017,
0.17740878462791443,
-0.3118363916873932,
-0.5614938139915466,
0.061075158417224884,
0.1731778234243393,
0.11749608814716339,
-0.002452082931995392,
0.2749664783477783,
-0.02686520479619503,
-0.06745190173387527,
0.448981374502182,
0.03273548185825348,
0.1277521401643753,
0.3642870783805847,
-0.3437954783439636,
-0.47465839982032776,
0.37708204984664917,
0.3455300033092499,
0.18677154183387756,
0.0283462256193161,
0.10174215584993362,
0.12650959193706512,
-0.12534186244010925,
-0.15239791572093964,
0.463653028011322,
-0.003568112850189209,
-0.08247963339090347,
0.23973268270492554,
0.09790164232254028,
-0.11809235066175461,
0.09511174261569977,
-0.1770329475402832,
-0.40446457266807556,
0.0799606516957283,
0.03426129370927811,
-0.0030445680022239685,
0.44009751081466675,
0.02926304191350937,
0.2341209053993225,
0.2732686698436737,
-0.1530267596244812,
0.08129564672708511,
-0.20514465868473053,
0.10957781225442886,
0.6422364711761475,
-0.11817518621683121,
0.01584119349718094,
0.1295919120311737,
-0.039050959050655365,
0.002629237249493599,
-0.07991839200258255,
-0.05906425788998604,
-0.22870610654354095,
0.20006674528121948,
0.2207166850566864,
-0.06376855075359344,
-0.19220517575740814,
-0.22227011620998383,
-0.1011900007724762,
-0.17059646546840668,
-0.020116113126277924,
0.12909981608390808,
0.039328958839178085,
0.3361455500125885,
0.14205767214298248,
0.1637386679649353,
0.05622659623622894,
0.006903268396854401,
0.1409446895122528,
0.2213822603225708,
0.08761660009622574,
-0.014738529920578003,
-0.1236984059214592,
0.038800500333309174,
-0.2033964842557907,
0.23366951942443848,
0.5907528400421143,
0.12117542326450348,
0.10969161242246628,
-0.06944303214550018,
0.056830134242773056,
-0.12753595411777496,
0.011659003794193268,
0.09617438167333603,
-0.18265709280967712,
0.1929764747619629,
0.225742369890213,
0.009845481254160404,
-0.13600584864616394,
-0.031072674319148064,
0.6075596213340759,
-0.0004741912707686424,
-0.10093443840742111,
0.27806439995765686,
-0.16592690348625183,
0.20912349224090576,
-0.04506854712963104,
-0.17108997702598572,
0.42754703760147095,
0.14246873557567596,
-0.15237155556678772,
-0.1849132925271988,
-0.2427365779876709,
-0.26528868079185486,
0.2519276738166809,
0.3314613699913025,
0.13315749168395996,
-0.028207413852214813,
-0.21606045961380005,
0.15812864899635315,
-0.28440892696380615,
0.07290598005056381,
0.35563045740127563,
-0.3562246859073639,
-0.14224368333816528,
0.3530155420303345,
0.38484200835227966,
0.4920442998409271,
-0.18131282925605774,
0.9246276021003723,
-0.16086232662200928,
-0.17582832276821136,
-0.13731355965137482,
0.14745397865772247,
0.10820674896240234,
-0.11519655585289001,
-0.2877686023712158,
0.030165091156959534,
-0.07291411608457565,
-0.12022259831428528,
-0.15345428884029388,
-0.45753270387649536,
-0.1800726056098938,
-0.12112709879875183,
0.15828657150268555,
-0.019068071618676186,
-0.2579399347305298,
0.2206987738609314,
-0.08390984684228897,
-0.051503486931324005,
0.2033429741859436,
-0.1597413867712021,
0.30063530802726746,
0.4441351890563965,
0.1342652440071106,
-0.06689335405826569,
0.3013823330402374,
0.13330334424972534,
0.22550076246261597,
-0.0017808955162763596,
0.036703914403915405,
0.14650344848632812,
0.08348061144351959,
-0.03562778979539871,
0.13136956095695496,
0.08633896708488464,
0.013292953372001648,
-0.013952511362731457,
-0.08098116517066956,
0.1686648279428482,
0.02393307164311409,
-0.3790728449821472,
0.20585447549819946,
-0.1466253697872162,
-0.15224549174308777,
-0.5125371217727661,
0.25951290130615234,
-0.5331438779830933,
-0.19097305834293365,
0.054069943726062775,
0.2861725389957428,
0.058458343148231506,
-0.3261229693889618,
0.014925152063369751,
-0.23371779918670654,
0.4653113782405853,
0.22234973311424255,
0.01718796417117119,
0.09722595661878586,
-0.27382272481918335,
-0.4709039628505707,
0.1958315372467041,
0.14038023352622986,
-0.2856004536151886,
0.006216300651431084,
0.0637059360742569,
-0.08303502947092056,
0.12769702076911926,
-0.01893538236618042,
-0.11041513085365295,
-0.15458466112613678,
-0.12862975895404816,
-0.26020151376724243,
-0.22901351749897003,
-0.11742490530014038,
0.25239837169647217,
0.08273287862539291,
0.14469903707504272,
-0.11544355750083923,
0.1431577354669571,
-0.20019268989562988,
-0.1366022825241089,
0.1237989068031311,
-0.01767861098051071,
-0.024525098502635956,
0.1067202016711235,
-0.2734106183052063,
0.4452262222766876,
0.1341601312160492,
0.04384356737136841,
0.09751781821250916,
-0.031451266258955,
-0.2656063437461853,
0.05960438400506973,
-0.12176474928855896,
0.2434990406036377,
-0.19830800592899323,
0.08611010015010834,
-0.1347760707139969,
0.0999794453382492,
-0.14677120745182037,
-0.15715551376342773,
-0.10599786043167114,
-0.08119548112154007,
-0.16914670169353485,
0.0005241192993707955,
0.17260831594467163,
0.4137924611568451,
-0.07056857645511627,
0.17745082080364227,
-0.04481911286711693,
0.18754421174526215,
0.4689190089702606,
-0.41955623030662537,
-0.12464170157909393,
0.1551668792963028,
0.15192463994026184,
-0.06559271365404129,
-0.31301671266555786,
-0.44971954822540283,
0.13875475525856018,
0.22846578061580658,
0.05157448351383209,
0.09158353507518768,
0.4112344980239868,
-0.5065765976905823,
-0.040448516607284546,
-0.10211455076932907,
-0.03951478749513626,
0.3436337113380432,
0.09743085503578186,
-0.00609184056520462,
-0.07712404429912567
] |
https://github.com/huggingface/datasets/issues/234 | Huggingface NLP, Uploading custom dataset | Since the latest release 0.2.1 you can use
```bash
nlp-cli upload_dataset <path/to/dataset>
```
where `<path/to/dataset>` is a path to a folder containing your script (ex: `squad.py`).
This will upload the script under your namespace on our S3.
Optionally the folder can also contain `dataset_infos.json` generated using
```bash
nlp-cli test <path/to/dataset> --all_configs --save_infos
```
Then you should be able to do
```python
nlp.load_dataset("my_namespace/dataset_name")
``` | Hello,
Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp.
Thank you! | 63 | Huggingface NLP, Uploading custom dataset
Hello,
Does anyone know how we can call our custom dataset using the nlp.load command? Let's say that I have a dataset based on the same format as that of squad-v1.1, how am I supposed to load it using huggingface nlp.
Thank you!
Since the latest release 0.2.1 you can use
```bash
nlp-cli upload_dataset <path/to/dataset>
```
where `<path/to/dataset>` is a path to a folder containing your script (ex: `squad.py`).
This will upload the script under your namespace on our S3.
Optionally the folder can also contain `dataset_infos.json` generated using
```bash
nlp-cli test <path/to/dataset> --all_configs --save_infos
```
Then you should be able to do
```python
nlp.load_dataset("my_namespace/dataset_name")
``` | [
0.2800411581993103,
-0.22688910365104675,
0.12016215920448303,
0.11589662730693817,
-0.062475547194480896,
-0.011173628270626068,
0.299309641122818,
-0.036204565316438675,
0.08475801348686218,
-0.09561610221862793,
-0.2538745701313019,
0.31674444675445557,
-0.07992347329854965,
0.330613911151886,
0.5891804695129395,
0.1280137300491333,
0.0025301724672317505,
0.2043105661869049,
-0.0012191981077194214,
-0.05879794806241989,
-0.2672673463821411,
0.3734844923019409,
-0.17168141901493073,
0.11104501038789749,
-0.04108665883541107,
0.19172529876232147,
-0.10793130099773407,
0.5931819081306458,
-0.06794694066047668,
-0.6077474355697632,
0.4877358078956604,
0.19383303821086884,
0.37086760997772217,
0.4090644121170044,
-0.00012339437671471387,
-0.313319593667984,
0.2694949209690094,
-0.23169758915901184,
-0.3273891508579254,
-0.33748477697372437,
0.12491481751203537,
-0.4609071612358093,
0.3682492971420288,
-0.232649028301239,
-0.06764653325080872,
0.12876677513122559,
0.23500314354896545,
-0.08527863770723343,
0.47627317905426025,
0.08236940950155258,
0.015970762819051743,
0.276574969291687,
-0.3785419762134552,
0.05095307528972626,
0.025098122656345367,
0.25649991631507874,
0.009582580998539925,
0.08974398672580719,
0.4341791868209839,
-0.369843989610672,
0.09351898729801178,
-0.03850597143173218,
0.042934849858284,
-0.1325577348470688,
0.6434712409973145,
0.1918417066335678,
-0.3280697464942932,
-0.13214650750160217,
-0.23903793096542358,
0.23976173996925354,
0.34194961190223694,
-0.42342445254325867,
-0.32564011216163635,
-0.4911622107028961,
0.1315750628709793,
-0.1563497930765152,
0.24537399411201477,
0.0697208121418953,
-0.17126645147800446,
-0.0648646205663681,
-0.33849701285362244,
-0.13900862634181976,
-0.31181055307388306,
0.24292759597301483,
0.29557833075523376,
0.22809408605098724,
-0.22060516476631165,
0.1583244800567627,
0.23519133031368256,
-0.20583473145961761,
-0.08868803828954697,
0.10071521997451782,
0.10647867619991302,
0.5646868348121643,
-0.3737168610095978,
-0.2899184226989746,
-0.11654593795537949,
0.1007399633526802,
0.25787419080734253,
0.13445252180099487,
0.17701907455921173,
-0.035965994000434875,
-0.12339597940444946,
0.09136704355478287,
0.39031484723091125,
-0.0014647692441940308,
0.5357533097267151,
-0.15987628698349,
-0.08518369495868683,
0.025178486481308937,
0.05509530380368233,
-0.08502773195505142,
-0.46569812297821045,
-0.0134294293820858,
-0.27899283170700073,
-0.2053915560245514,
0.16227613389492035,
-0.2037166804075241,
0.08752623945474625,
-0.23110723495483398,
0.34274253249168396,
-0.10163478553295135,
0.1443827897310257,
0.2277090847492218,
-0.03532774746417999,
-0.12915876507759094,
-0.02052336558699608,
0.16015464067459106,
-0.0732642412185669,
-0.1987455189228058,
0.05908344313502312,
-0.049143899232149124,
-0.18319648504257202,
0.09380526840686798,
0.3327327370643616,
-0.09044875204563141,
0.4279944896697998,
-0.14873261749744415,
0.1311013102531433,
-0.010217860341072083,
-0.12468630820512772,
0.24250124394893646,
-0.18018686771392822,
-0.12581488490104675,
0.2880760431289673,
-0.018998047336935997,
0.11539950966835022,
-0.31178855895996094,
-0.22955799102783203,
-0.05229368805885315,
-0.1529918909072876,
-0.061669982969760895,
-0.37804776430130005,
-0.026893053203821182,
-0.32803380489349365,
-0.4907151162624359,
-0.2676510810852051,
0.27436819672584534,
-0.15329128503799438,
-0.23388683795928955,
-0.030335702002048492,
0.15200701355934143,
-0.26744526624679565,
-0.10861189663410187,
0.18392276763916016,
0.2969832420349121,
-0.42669910192489624,
-0.3021620512008667,
0.04203488305211067,
-0.012393917888402939,
-0.10560966283082962,
0.1387208104133606,
-0.24720969796180725,
-0.05426395684480667,
-0.15707889199256897,
0.25558388233184814,
0.5747653841972351,
-0.48370930552482605,
-0.13884025812149048,
0.22923298180103302,
-0.2719879150390625,
0.01319977082312107,
0.06393906474113464,
0.24635107815265656,
0.17478802800178528,
0.010457541793584824,
-0.06256705522537231,
0.7491369247436523,
0.03477144613862038,
-0.0652875080704689,
0.07933756709098816,
-0.020167557522654533,
0.15665146708488464,
0.1346316784620285,
-0.33837956190109253,
0.1531336009502411,
0.09221844375133514,
0.19802622497081757,
0.17431701719760895,
-0.09805251657962799,
-0.07396691292524338,
0.03419274091720581,
0.11237658560276031,
0.4171505570411682,
0.0026158038526773453,
0.03738810122013092,
-0.6957995891571045,
0.2870248556137085,
-0.2856883406639099,
-0.0026060640811920166,
0.2908093333244324,
-0.08496487140655518,
-0.4383993446826935,
-0.11230473965406418,
-0.10521075129508972,
0.17928873002529144,
-0.08189116418361664,
0.16968420147895813,
0.23800185322761536,
-0.1964535117149353,
-0.42153435945510864,
0.35960549116134644,
-0.12289312481880188,
0.26095250248908997,
-0.48648589849472046,
0.04442735016345978,
0.24456356465816498,
-0.17973925173282623,
0.11385820806026459,
0.345859169960022,
0.21493086218833923,
-0.15126408636569977,
0.19701212644577026,
0.3514067530632019,
-0.10655352473258972,
0.3253592550754547,
0.36522457003593445,
0.014992505311965942,
-0.051101312041282654,
0.12663894891738892,
0.24545881152153015,
-0.12205323576927185,
0.07218298316001892,
-0.1380443423986435,
-0.3422394096851349,
0.3357028365135193,
-0.1649211049079895,
0.24531593918800354,
-0.002517513930797577,
-0.14623203873634338,
0.053250573575496674,
-0.08916891366243362,
-0.4279448986053467,
-0.0027031078934669495,
0.03522218391299248,
0.11982753872871399,
0.3981926739215851,
-0.013512300327420235,
-0.07691304385662079,
-0.0973856970667839,
0.6103426218032837,
-0.10325470566749573,
0.03767693042755127,
0.23136529326438904,
-0.10375168174505234,
-0.19619587063789368,
0.14414195716381073,
-0.0011318698525428772,
0.30794304609298706,
0.17000555992126465,
-0.1886395663022995,
0.04649210721254349,
-0.08740435540676117,
0.07124317437410355,
-0.03343070298433304,
0.00017235428094863892,
0.016619903966784477,
-0.28346720337867737,
0.20291021466255188,
-0.14894241094589233,
-0.3170856535434723,
0.05813760682940483,
-0.07949113100767136,
-0.10553552955389023,
-0.2577170133590698,
0.13300852477550507,
0.0025695469230413437,
-0.3521044850349426,
-0.22811360657215118,
-0.30586859583854675,
-0.49798649549484253,
0.08253082633018494,
-0.3920717239379883,
-0.08140110969543457,
0.5837752819061279,
-0.06717526167631149,
0.1321166604757309,
0.585280179977417,
-0.15607191622257233,
-0.19869208335876465,
0.07284687459468842,
-0.018418030813336372,
-0.2793126404285431,
-0.12371222674846649,
0.05958329141139984,
0.18152734637260437,
0.33962592482566833,
-0.07619474083185196,
0.19564507901668549,
0.08061150461435318,
-0.2836533486843109,
0.07866880297660828,
-0.19906561076641083,
0.1872481256723404,
0.3521502912044525,
0.11347289383411407,
-0.13292929530143738,
0.008325460366904736,
0.10632985085248947,
-0.1537935584783554,
-0.11829491704702377,
-0.07441549003124237,
0.0029165560845285654,
0.0750332772731781,
-0.12075915932655334,
-0.08567409962415695,
-0.33399802446365356,
-0.14054973423480988,
0.5175918340682983,
0.32409805059432983,
0.11710146069526672,
0.19432379305362701,
-0.21627315878868103,
0.4645293653011322,
-0.308376282453537,
-0.008930351585149765,
-0.1356203556060791,
-0.5117284655570984,
0.032069116830825806,
-0.14159323275089264,
-0.1379126012325287,
0.1767379641532898,
0.11912904679775238,
0.12141594290733337,
-0.3517998456954956,
-0.19299094378948212,
-0.4288124442100525,
0.21981950104236603,
0.02151922509074211,
0.03498381748795509,
0.1249316930770874,
0.22291865944862366,
-0.22140128910541534,
0.19177216291427612,
-0.1415402591228485,
-0.4419383704662323,
0.07362183928489685,
0.4186241626739502,
0.2334134578704834,
0.2650003433227539,
0.24571368098258972,
-0.02086048759520054,
0.5214276909828186,
0.1515866219997406,
-0.18956010043621063,
0.39771345257759094,
-0.04355660080909729,
0.20108440518379211,
0.13131114840507507,
-0.3892536759376526,
0.06049223616719246,
0.2669023275375366,
0.2402646392583847,
0.36724311113357544,
0.17530477046966553,
0.1485012173652649,
-0.26906704902648926,
0.07156899571418762,
-0.13034284114837646,
0.17850473523139954,
-0.12906906008720398,
0.232273131608963,
-0.04313667118549347,
0.04533569887280464,
-0.1490933895111084,
-0.44441458582878113,
-0.24478504061698914,
-0.18724341690540314,
0.24591225385665894,
0.24745571613311768,
0.3023862838745117,
-0.6653093099594116,
-0.08875997364521027,
-0.48300719261169434,
0.1967625617980957,
-0.09480921924114227,
0.14883269369602203,
0.07120022177696228,
0.04556461423635483,
0.16871324181556702,
0.0544942207634449,
0.6477323174476624,
0.07249744981527328,
-0.18941007554531097,
-0.05386665463447571,
0.013294938951730728,
-0.6558193564414978,
0.24969638884067535,
0.06324467062950134,
0.26188766956329346,
0.3039622902870178,
0.5747791528701782,
-0.18605756759643555,
-0.2908876836299896,
0.15416504442691803,
-0.030248919501900673,
-0.3178240954875946,
-0.3237391710281372,
-0.3765394389629364,
-0.1485573798418045,
-0.1410321444272995,
-0.2114439606666565,
-0.17808586359024048,
0.14674241840839386,
0.22639448940753937,
0.04759510979056358,
0.12169750034809113,
0.024902816861867905,
0.05782563239336014,
0.29436883330345154,
-0.05841102451086044,
0.5272748470306396,
-0.13760916888713837,
0.25545889139175415,
0.16545268893241882,
-0.3756718635559082,
0.600005030632019,
-0.25587859749794006,
-0.4437696933746338,
-0.15654370188713074,
0.11671848595142365,
0.6394878029823303,
0.19682656228542328,
0.32343581318855286,
0.14901119470596313,
-0.09358851611614227,
-0.10954062640666962,
-0.338419109582901,
0.13362270593643188,
0.2434951215982437,
-0.04315202683210373,
0.06639547646045685,
-0.387031614780426,
0.5882591605186462,
-0.10434819757938385,
-0.034468188881874084,
-0.10319873690605164,
0.20371392369270325,
-0.22247076034545898,
0.17426349222660065,
-0.11802633851766586,
0.8925433158874512,
-0.4042235016822815,
0.3991563022136688,
0.19491031765937805,
-0.0083392895758152,
0.7712114453315735,
-0.07109100371599197,
-0.19524921476840973,
-0.4421924352645874,
0.2296808809041977,
-0.10137058049440384,
-0.10517485439777374,
0.13289637863636017,
0.4739508628845215,
-0.23397944867610931,
0.36129656434059143,
0.13415959477424622,
-0.19846801459789276,
0.06031323969364166,
0.5681412220001221,
0.20757047832012177,
-0.5780226588249207,
-0.6750756502151489,
0.019689667969942093,
-0.32625651359558105,
0.2848820984363556,
-0.10954861342906952,
-0.08889592438936234,
-0.04817809537053108,
-0.1542111337184906,
0.044648587703704834,
0.11387010663747787,
-0.0431925468146801,
-0.4616308808326721,
0.3202902376651764,
-0.3091629147529602,
0.157186359167099,
0.5623389482498169,
0.20444191992282867,
0.04613150283694267,
-0.0031006205826997757,
-0.028661232441663742,
-0.09351243823766708,
-0.10510564595460892,
-0.19757771492004395,
0.1908002346754074,
0.08552564680576324,
-0.09972909837961197,
-0.07414951920509338,
-0.06598068028688431,
0.2464981973171234,
-0.17732296884059906,
-0.13601484894752502,
0.21078994870185852,
0.12824910879135132,
-0.30422309041023254,
-0.5435208678245544,
-0.02278326451778412,
0.1489764302968979,
0.09474420547485352,
-0.022178925573825836,
0.2583087682723999,
-0.10682427138090134,
-0.12021762877702713,
0.3054858446121216,
-0.03127322345972061,
0.1551930010318756,
0.4183865189552307,
-0.3858993649482727,
-0.3637026250362396,
0.3382476270198822,
0.3833317756652832,
0.2017427384853363,
0.015798550099134445,
0.09013617783784866,
0.09293648600578308,
-0.09880927950143814,
-0.1292104423046112,
0.4974902272224426,
-0.10880517959594727,
0.006756376940757036,
0.10917140543460846,
0.1795969158411026,
-0.18277403712272644,
0.11140751838684082,
-0.19404490292072296,
-0.23641102015972137,
0.08535131812095642,
0.03327255696058273,
0.02335941605269909,
0.4362819492816925,
-0.13797976076602936,
0.15521982312202454,
0.0948849692940712,
-0.12141158431768417,
0.10921673476696014,
-0.20492489635944366,
0.18282711505889893,
0.48410841822624207,
-0.19276836514472961,
0.06055969372391701,
0.07248088717460632,
-0.06120838224887848,
-0.05920744687318802,
-0.06547843664884567,
-0.05389559268951416,
-0.25604456663131714,
0.22777637839317322,
0.2528778612613678,
-0.09924019873142242,
-0.11356667429208755,
-0.20438572764396667,
-0.14388523995876312,
-0.200382798910141,
0.02888476476073265,
0.15655618906021118,
0.14493505656719208,
0.37540557980537415,
-0.005571383982896805,
0.07534231245517731,
0.07913859188556671,
0.03011048212647438,
0.10337907075881958,
0.1322432905435562,
0.07794659584760666,
0.09889471530914307,
-0.0701761469244957,
0.021039456129074097,
-0.20545628666877747,
0.22629347443580627,
0.5412854552268982,
0.11874223500490189,
0.08732505887746811,
-0.16803283989429474,
0.01770208775997162,
-0.10149217396974564,
0.1515488475561142,
0.19945360720157623,
-0.17980226874351501,
0.0797242820262909,
0.18123051524162292,
-0.008394790813326836,
-0.051257189363241196,
-0.13403858244419098,
0.4174160063266754,
-0.02174968644976616,
-0.059721171855926514,
0.35592523217201233,
-0.1728091686964035,
0.29911279678344727,
-0.1405499279499054,
-0.16694563627243042,
0.4358364939689636,
0.2823689579963684,
-0.1205790638923645,
-0.15963567793369293,
-0.19515322148799896,
-0.23293544352054596,
0.2651917636394501,
0.3151317238807678,
0.04826659336686134,
0.024041391909122467,
-0.2267839014530182,
0.1274549663066864,
-0.20086908340454102,
0.19386155903339386,
0.3003179430961609,
-0.3114260733127594,
-0.13483408093452454,
0.24873033165931702,
0.3220226764678955,
0.4606933295726776,
-0.251205176115036,
0.8900502324104309,
-0.20825092494487762,
-0.13270039856433868,
-0.1670144647359848,
0.17012029886245728,
0.13144439458847046,
-0.2743001878261566,
-0.29924318194389343,
0.08761485666036606,
-0.026515476405620575,
-0.07217660546302795,
-0.1698848158121109,
-0.5302138328552246,
-0.20902490615844727,
-0.08663347363471985,
0.2120305895805359,
-0.09657752513885498,
-0.2525298297405243,
0.23648369312286377,
-0.11750205606222153,
-0.10240674763917923,
0.22977730631828308,
-0.13540835678577423,
0.2758536636829376,
0.38820698857307434,
0.09754236042499542,
0.050895579159259796,
0.25643104314804077,
0.03382667899131775,
0.2085307240486145,
0.0011938121169805527,
0.02483394183218479,
0.042441848665475845,
-0.001472698524594307,
-0.09368661046028137,
0.22201420366764069,
0.04120917618274689,
-0.006753572262823582,
0.013494030572474003,
-0.12611806392669678,
0.08290047943592072,
-0.03293897211551666,
-0.31179022789001465,
0.22231453657150269,
-0.2063257098197937,
-0.08749797195196152,
-0.4465424120426178,
0.41526898741722107,
-0.6194025278091431,
-0.13291887938976288,
0.2620142698287964,
0.3689612150192261,
0.10955341905355453,
-0.2574584186077118,
-0.004685334861278534,
-0.22741509974002838,
0.4847802221775055,
0.11430168151855469,
0.08273109048604965,
0.055874258279800415,
-0.18724974989891052,
-0.4674096703529358,
0.13308489322662354,
0.06944652646780014,
-0.3638961613178253,
0.04653122276067734,
0.15304864943027496,
-0.15592795610427856,
0.08245827257633209,
-0.1072244644165039,
-0.05013686791062355,
-0.16732756793498993,
0.0208953358232975,
-0.2143276482820511,
-0.19702354073524475,
-0.11900585889816284,
0.24081848561763763,
0.12044268846511841,
0.07520530372858047,
-0.1501971036195755,
0.09257254749536514,
-0.2727145552635193,
-0.13404123485088348,
0.14921922981739044,
0.06373679637908936,
0.0014251582324504852,
0.2092084288597107,
-0.25944826006889343,
0.4553099274635315,
0.09309355169534683,
-0.05232178419828415,
-0.037529993802309036,
-0.07080644369125366,
-0.3093712031841278,
0.1026359349489212,
-0.2382374405860901,
0.25468578934669495,
-0.21112041175365448,
0.18254150450229645,
-0.2470240443944931,
0.04960932582616806,
-0.05565962567925453,
-0.2157360464334488,
-0.009199048392474651,
-0.005039617419242859,
-0.21007516980171204,
0.09723859280347824,
0.1297476440668106,
0.40952426195144653,
-0.027216196060180664,
0.20138655602931976,
-0.14163319766521454,
0.07134251296520233,
0.4824342131614685,
-0.5757670998573303,
-0.0996544361114502,
0.18039952218532562,
0.23155450820922852,
-0.10074535757303238,
-0.4190642535686493,
-0.5331851243972778,
0.2177240252494812,
0.25800734758377075,
0.07074816524982452,
-0.004404699429869652,
0.35934850573539734,
-0.43322327733039856,
-0.06310857832431793,
-0.11096975207328796,
-0.02926637977361679,
0.29621121287345886,
0.0780341699719429,
0.043572861701250076,
-0.08950211107730865
] |
https://github.com/huggingface/datasets/issues/233 | Fail to download c4 english corpus | Hello ! Thanks for noticing this bug, let me fix that.
Also for information, as specified in the changelog of the latest release, C4 currently needs to have a runtime for apache beam to work on. Apache beam is used to process this very big dataset and it can work on dataflow, spark, flink, apex, etc. You can find more info on beam datasets [here](https://github.com/huggingface/nlp/blob/master/docs/beam_dataset.md).
Our goal in the future is to make available an already-processed version of C4 (as we do for wikipedia for example) so that users without apache beam runtimes can load it. | i run following code to download c4 English corpus.
```
dataset = nlp.load_dataset('c4', 'en', beam_runner='DirectRunner'
, data_dir='/mypath')
```
and i met failure as follows
```
Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/adam/.cache/huggingface/datasets/c4/en/2.3.0...
Traceback (most recent call last):
File "download_corpus.py", line 38, in <module>
, data_dir='/home/adam/data/corpus/en/c4')
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 420, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 816, in _download_and_prepare
dl_manager, verify_infos=False, pipeline=pipeline,
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 457, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/datasets/c4/f545de9f63300d8d02a6795e2eb34e140c47e62a803f572ac5599e170ee66ecc/c4.py", line 175, in _split_generators
dl_manager.download_checksums(_CHECKSUMS_URL)
AttributeError: 'DownloadManager' object has no attribute 'download_checksums
```
can i get any advice? | 96 | Fail to download c4 english corpus
i run following code to download c4 English corpus.
```
dataset = nlp.load_dataset('c4', 'en', beam_runner='DirectRunner'
, data_dir='/mypath')
```
and i met failure as follows
```
Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/adam/.cache/huggingface/datasets/c4/en/2.3.0...
Traceback (most recent call last):
File "download_corpus.py", line 38, in <module>
, data_dir='/home/adam/data/corpus/en/c4')
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 420, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 816, in _download_and_prepare
dl_manager, verify_infos=False, pipeline=pipeline,
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 457, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/datasets/c4/f545de9f63300d8d02a6795e2eb34e140c47e62a803f572ac5599e170ee66ecc/c4.py", line 175, in _split_generators
dl_manager.download_checksums(_CHECKSUMS_URL)
AttributeError: 'DownloadManager' object has no attribute 'download_checksums
```
can i get any advice?
Hello ! Thanks for noticing this bug, let me fix that.
Also for information, as specified in the changelog of the latest release, C4 currently needs to have a runtime for apache beam to work on. Apache beam is used to process this very big dataset and it can work on dataflow, spark, flink, apex, etc. You can find more info on beam datasets [here](https://github.com/huggingface/nlp/blob/master/docs/beam_dataset.md).
Our goal in the future is to make available an already-processed version of C4 (as we do for wikipedia for example) so that users without apache beam runtimes can load it. | [
0.01155460998415947,
0.0910860151052475,
-0.05564383417367935,
0.29022306203842163,
0.14863073825836182,
0.16529706120491028,
-0.0632365345954895,
0.3174011707305908,
-0.11661435663700104,
0.039429157972335815,
-0.1543147712945938,
0.00875124055892229,
0.02675797790288925,
0.08450019359588623,
0.1310366839170456,
-0.5472637414932251,
-0.2235967516899109,
0.15271419286727905,
-0.1312202364206314,
-0.14125409722328186,
-0.04234259948134422,
0.42581939697265625,
-0.11378830671310425,
-0.1747366040945053,
-0.06000389903783798,
-0.13748641312122345,
-0.19747290015220642,
-0.05506981909275055,
-0.20634284615516663,
-0.5448325276374817,
0.4454178512096405,
0.004982247948646545,
0.18939149379730225,
0.3470121920108795,
-0.00010940982610918581,
-0.017852868884801865,
0.4102250337600708,
-0.12080961465835571,
-0.24889139831066132,
-0.3994749188423157,
0.17930322885513306,
-0.32142817974090576,
-0.09998078644275665,
-0.3226757049560547,
-0.22828558087348938,
-0.13052614033222198,
0.1668989062309265,
-0.22700685262680054,
0.043161869049072266,
0.31656402349472046,
0.2735978960990906,
-0.025514788925647736,
0.28026536107063293,
-0.13305139541625977,
-0.1831475794315338,
-0.24020226299762726,
-0.09089799970388412,
0.23933757841587067,
0.16672831773757935,
0.2533927261829376,
-0.09512820094823837,
0.15294647216796875,
0.05027589946985245,
0.013414486311376095,
-0.10940244048833847,
-0.2209976315498352,
0.048970550298690796,
-0.2720613181591034,
0.335646390914917,
0.05530327931046486,
0.7832090854644775,
-0.28178730607032776,
-0.16184264421463013,
0.16128340363502502,
0.2839299738407135,
-0.21231403946876526,
0.2203889787197113,
0.4282408058643341,
-0.1392531841993332,
0.0007202401757240295,
-0.3249094486236572,
-0.09991461038589478,
-0.18178987503051758,
0.20378345251083374,
0.020981542766094208,
0.008731409907341003,
-0.08046569675207138,
-0.010057680308818817,
0.21736907958984375,
0.10147808492183685,
0.07938119769096375,
-0.07899816334247589,
-0.27776941657066345,
0.2961805760860443,
-0.2832438349723816,
0.02059677243232727,
-0.14629709720611572,
0.5204557776451111,
0.025380119681358337,
-0.3621298670768738,
-0.1353999823331833,
-0.10544892400503159,
0.07566597312688828,
0.02768007107079029,
-0.053335998207330704,
0.339450478553772,
0.1087685227394104,
0.028520148247480392,
0.07979902625083923,
0.13018500804901123,
0.074342742562294,
-0.049966633319854736,
-0.13964717090129852,
-0.22278474271297455,
-0.29879480600357056,
0.2747340798377991,
-0.12344924360513687,
-0.3272615075111389,
-0.152159184217453,
0.001216319389641285,
-0.20872992277145386,
-0.0346011184155941,
-0.09959426522254944,
0.4414263963699341,
-0.15790201723575592,
0.15262055397033691,
0.08801528811454773,
0.18170540034770966,
-0.19471204280853271,
-0.3660130500793457,
-0.14900976419448853,
0.20088200271129608,
-0.4686213433742523,
-0.32053235173225403,
0.24913667142391205,
-0.31658488512039185,
0.43263134360313416,
-0.08860320597887039,
0.10732519626617432,
-0.10228721052408218,
-0.14219892024993896,
-0.22252337634563446,
-0.25826123356819153,
0.18804456293582916,
0.06787677109241486,
0.26513946056365967,
0.012080749496817589,
-0.032828789204359055,
-0.007649727165699005,
-0.24501866102218628,
-0.12950867414474487,
-0.19092777371406555,
-0.072525754570961,
0.17847740650177002,
-0.01035361085087061,
-0.1338941603899002,
-0.5229310989379883,
0.04997575655579567,
0.19104821979999542,
0.03806290403008461,
-0.0024332255125045776,
-0.20787203311920166,
-0.23149967193603516,
-0.20859836041927338,
0.11716832965612411,
0.5448204874992371,
-0.018813839182257652,
0.02837935835123062,
-0.04356754198670387,
-0.011955983936786652,
0.49969491362571716,
0.3720759451389313,
-0.09973880648612976,
0.17216745018959045,
-0.20958589017391205,
0.1426469087600708,
0.16642647981643677,
-0.5432872772216797,
-0.22140547633171082,
0.24188494682312012,
-0.04924943298101425,
0.09035541117191315,
0.03292199224233627,
-0.4252798557281494,
0.20099757611751556,
-0.13091613352298737,
0.11172982305288315,
0.27592790126800537,
0.09924521297216415,
0.12656015157699585,
-0.2411849945783615,
-0.12675875425338745,
0.24730102717876434,
0.10466139018535614,
0.16901734471321106,
-0.10204524546861649,
0.2604553699493408,
0.187079057097435,
0.2613472044467926,
-0.12082540988922119,
0.3596663773059845,
0.24704062938690186,
-0.26252245903015137,
-0.3072056770324707,
0.10502172261476517,
0.19859421253204346,
-0.33054330945014954,
0.206601083278656,
-0.2245475947856903,
0.29119741916656494,
0.05326260253787041,
-0.021892815828323364,
-0.3256198465824127,
-0.20640751719474792,
-0.24103610217571259,
-0.20117603242397308,
0.17742010951042175,
-0.04290894418954849,
0.32806918025016785,
0.1672782599925995,
0.11972062289714813,
0.35329556465148926,
-0.306331068277359,
-0.10966158658266068,
-0.10673968493938446,
0.10266994684934616,
-0.24342714250087738,
-0.07219039648771286,
0.3241753876209259,
0.24245434999465942,
0.2653386890888214,
-0.15683647990226746,
-0.13989263772964478,
0.07293465733528137,
-0.14703015983104706,
0.4155645966529846,
-0.11656027287244797,
-0.12037433683872223,
0.3694635331630707,
-0.3810000419616699,
0.40821337699890137,
0.31771668791770935,
0.06451451778411865,
-0.07451394200325012,
0.30472713708877563,
-0.24469612538814545,
0.05164709314703941,
0.007779702544212341,
0.08690759539604187,
-0.1271284967660904,
0.33176979422569275,
-0.09151497483253479,
0.17783716320991516,
-0.03593510389328003,
0.532971203327179,
-0.09439811110496521,
0.25456225872039795,
-0.1527450680732727,
-0.19701945781707764,
0.02761293202638626,
0.42649224400520325,
0.08075891435146332,
-0.11451487988233566,
0.17100748419761658,
-0.12888380885124207,
-0.17582890391349792,
0.2758095860481262,
0.1189039945602417,
0.11022751778364182,
0.16510049998760223,
0.17313414812088013,
0.13116542994976044,
0.13358014822006226,
-0.2187914252281189,
0.25292468070983887,
-0.21582962572574615,
0.17182813584804535,
0.3353050947189331,
0.1661091148853302,
-0.002951384522020817,
-0.4320872724056244,
-0.028696997091174126,
0.21439898014068604,
0.1778079718351364,
-0.06852731853723526,
-0.09973757714033127,
-0.24677634239196777,
-0.40813523530960083,
-0.313478022813797,
-0.11854354292154312,
0.03713180869817734,
0.017246102914214134,
-0.19682584702968597,
0.11412045359611511,
-0.04070529714226723,
-0.007627509534358978,
-0.27487340569496155,
-0.3112739324569702,
-0.19947737455368042,
-0.2850942015647888,
-0.1725654900074005,
0.005930017679929733,
-0.40908539295196533,
0.12316186726093292,
0.14126427471637726,
0.05943426862359047,
0.35669979453086853,
-0.33560606837272644,
-0.0827375277876854,
-0.22347396612167358,
-0.07055483013391495,
0.25133568048477173,
-0.06519896537065506,
-0.1545359492301941,
0.022169016301631927,
0.20069803297519684,
-0.2227172702550888,
-0.1932847499847412,
0.0155677180737257,
-0.1274445652961731,
-0.1874832957983017,
0.014691241085529327,
-0.23348307609558105,
-0.15572047233581543,
-0.15952730178833008,
-0.6133764982223511,
-0.4746181070804596,
-0.48644164204597473,
0.05999530851840973,
-0.14135237038135529,
0.19657360017299652,
0.39358222484588623,
-0.20145294070243835,
0.16573813557624817,
0.1373187154531479,
0.1436539739370346,
-0.2028481662273407,
-0.026271462440490723,
0.11786195635795593,
-0.3232523202896118,
-0.4543694257736206,
0.1173180490732193,
0.02386140450835228,
0.4150659143924713,
0.16472375392913818,
-0.30464044213294983,
0.33163633942604065,
-0.03227066248655319,
0.12915317714214325,
0.09138079732656479,
0.14185947179794312,
0.49418386816978455,
-0.09971117228269577,
-0.0022173281759023666,
0.029206663370132446,
0.11091752350330353,
-0.006734982132911682,
0.229223370552063,
0.4109466075897217,
-0.27253735065460205,
0.15089203417301178,
0.1694057732820511,
0.30103081464767456,
0.3988196551799774,
-0.23261405527591705,
0.6556059122085571,
0.32999420166015625,
0.16604898869991302,
-0.07856004685163498,
-0.22315998375415802,
0.4240540862083435,
-0.024203017354011536,
0.05045171082019806,
0.39433926343917847,
-0.16810759902000427,
-0.5607062578201294,
-0.11067620664834976,
-0.4160577356815338,
-0.4069870114326477,
-0.06559896469116211,
-0.005862079560756683,
0.11797849088907242,
0.40663567185401917,
0.04121742770075798,
0.1797294318675995,
0.2586691379547119,
-0.289193332195282,
0.15880157053470612,
0.22211089730262756,
0.030703715980052948,
0.2962249517440796,
-0.08447860181331635,
-0.13709841668605804,
-0.7133889198303223,
0.3157610297203064,
0.2892405390739441,
0.16818132996559143,
-0.1471838653087616,
0.38114625215530396,
0.013208851218223572,
-0.19391846656799316,
0.5401837825775146,
-0.21462781727313995,
0.11722297221422195,
0.03856673836708069,
0.03946758806705475,
-0.08228962868452072,
0.010346870869398117,
0.0670098066329956,
0.11764795333147049,
0.4223915934562683,
0.05895133316516876,
-0.4840072691440582,
-0.08813294023275375,
-0.021805457770824432,
0.47672441601753235,
0.17085550725460052,
-0.21849989891052246,
-0.049993846565485,
-0.5328352451324463,
-0.23357918858528137,
0.007856182754039764,
0.01805024780333042,
0.36885127425193787,
-0.023413265123963356,
-0.0077776312828063965,
0.17834866046905518,
0.07187856733798981,
0.186716228723526,
0.1425793170928955,
0.28001925349235535,
0.29227784276008606,
0.20065079629421234,
0.32970938086509705,
0.004377793520689011,
0.1921950727701187,
0.3183094263076782,
-0.14868029952049255,
0.14024534821510315,
-0.05302499234676361,
0.11649246513843536,
0.13674990832805634,
0.20459428429603577,
0.030132759362459183,
-0.06275264173746109,
-0.1415635347366333,
-0.197998508810997,
0.14650775492191315,
0.0835249274969101,
0.09638828784227371,
0.12574313580989838,
-0.5703760385513306,
-0.38825851678848267,
0.2796280086040497,
-0.32025206089019775,
0.15958119928836823,
0.15448185801506042,
0.3057817220687866,
-0.3391069769859314,
0.25593262910842896,
0.07954630255699158,
0.736846387386322,
-0.04026911407709122,
0.07664357870817184,
0.02860744297504425,
0.07719990611076355,
0.29579681158065796,
-0.33938491344451904,
0.179179385304451,
-0.24313971400260925,
0.119699627161026,
-0.0036817099899053574,
0.0777338296175003,
-0.020392656326293945,
0.13655902445316315,
-0.39119553565979004,
0.5633781552314758,
0.07773356139659882,
-0.04482673481106758,
0.0642819032073021,
0.3738417625427246,
-0.14197130501270294,
-0.3766852021217346,
-0.4003922641277313,
0.1819063127040863,
-0.3179160952568054,
0.33057790994644165,
-0.2088789939880371,
-0.0886836126446724,
0.10623420774936676,
-0.10210871696472168,
-0.3304610848426819,
0.4157050848007202,
-0.2829902470111847,
0.025362208485603333,
-0.09548547863960266,
-0.18039622902870178,
0.4980296194553375,
0.2474794238805771,
0.3305479884147644,
0.37445616722106934,
-0.23709532618522644,
0.12063179910182953,
0.10322127491235733,
-0.5300790667533875,
0.24470670521259308,
0.0216265469789505,
0.05473581701517105,
-0.3400759994983673,
-0.217546284198761,
0.0930887907743454,
-0.0411832295358181,
-0.05254070833325386,
0.26233014464378357,
-0.14253513514995575,
-0.33368486166000366,
0.01051044650375843,
-0.35495465993881226,
0.2626432180404663,
-0.004656020551919937,
0.039250005036592484,
0.1276261955499649,
-0.0834261029958725,
-0.17889519035816193,
0.11126816272735596,
0.1640380620956421,
-0.21929246187210083,
-0.09325563907623291,
0.31139466166496277,
0.12255971133708954,
-0.3694104850292206,
0.4701079726219177,
0.2693347930908203,
-0.2435082197189331,
-0.19013315439224243,
-0.6724640130996704,
-0.2965882420539856,
-0.3600970506668091,
-0.008136521093547344,
-0.0068642813712358475,
0.036295756697654724,
-0.1432046890258789,
0.3669489026069641,
-0.02891664206981659,
-0.007345929741859436,
0.22492749989032745,
-0.388395220041275,
-0.28593987226486206,
0.06967366486787796,
-0.15974482893943787,
0.028575211763381958,
0.23872902989387512,
0.28289103507995605,
0.19142669439315796,
0.11299848556518555,
-0.2709112763404846,
-0.04517953842878342,
-0.37413039803504944,
0.07345575094223022,
0.29133644700050354,
-0.10154309123754501,
0.33288219571113586,
0.1120009571313858,
0.1091698408126831,
0.25574254989624023,
-0.2520970106124878,
-0.20904463529586792,
-0.11032919585704803,
0.08477610349655151,
0.15797710418701172,
0.08173809945583344,
0.3228663206100464,
-0.38326019048690796,
-0.14949536323547363,
-0.02848226949572563,
0.12609520554542542,
0.30184048414230347,
-0.03393688052892685,
0.1260329633951187,
0.24066896736621857,
0.06285563111305237,
-0.08676321804523468,
0.14244979619979858,
0.1167202964425087,
0.09450021386146545,
-0.02113603986799717,
0.14237268269062042,
0.06791984289884567,
-0.08107181638479233,
-0.1436300277709961,
-0.014484748244285583,
0.11094885319471359,
0.04996718093752861,
0.15437215566635132,
-0.03687725216150284,
0.10275143384933472,
-0.005485058296471834,
-0.04549343138933182,
0.007430370897054672,
-0.023452164605259895,
-0.03580118343234062,
0.30458229780197144,
0.20666129887104034,
-0.2701679468154907,
0.17608119547367096,
-0.0184236541390419,
0.17215920984745026,
0.004591993987560272,
0.01394682377576828,
0.3261062204837799,
-0.2998712658882141,
0.19545269012451172,
0.09732883423566818,
0.3590957224369049,
-0.13008545339107513,
-0.15505169332027435,
-0.028224293142557144,
0.06127503141760826,
0.04152706265449524,
0.2245529592037201,
-0.14635668694972992,
0.008698567748069763,
0.13488884270191193,
-0.08931178599596024,
-0.011678909882903099,
0.2734455168247223,
0.29537829756736755,
-0.06546158343553543,
-0.21158821880817413,
0.007216542959213257,
0.30115559697151184,
0.29554635286331177,
0.22885346412658691,
0.11974677443504333,
0.19592079520225525,
0.17329634726047516,
-0.2000487893819809,
-0.32755163311958313,
0.37516653537750244,
-0.07891669869422913,
0.03933132439851761,
-0.1925186812877655,
-0.21869325637817383,
-0.08184478431940079,
0.13605996966362,
-0.18722748756408691,
-0.06594333052635193,
0.19626131653785706,
0.21847884356975555,
-0.21869392693042755,
-0.4077455997467041,
-0.04353278875350952,
0.016043951734900475,
0.1576145887374878,
-0.21698689460754395,
0.49915435910224915,
0.2705325484275818,
-0.05466020107269287,
-0.16325075924396515,
0.31408601999282837,
0.44854554533958435,
0.20072534680366516,
-0.12845002114772797,
0.09777572751045227,
0.12251953780651093,
-0.010440781712532043,
-0.03643844276666641,
0.42975807189941406,
0.345232754945755,
0.11359177529811859,
0.28291863203048706,
0.10922500491142273,
-0.22057044506072998,
-0.09852951765060425,
0.09332352876663208,
-0.056723061949014664,
0.12508998811244965,
0.4512255787849426,
0.0044771358370780945,
0.07499124854803085,
-0.3351685702800751,
0.04853847250342369,
-0.4805065095424652,
0.43050438165664673,
0.4933687746524811,
-0.19419170916080475,
-0.012612354010343552,
-0.10424729436635971,
0.08645521849393845,
0.09255866706371307,
0.32883915305137634,
0.2744687497615814,
0.49594008922576904,
-0.4177181124687195,
-0.3438929319381714,
-0.3343043029308319,
0.18633469939231873,
-0.2957496643066406,
0.17978350818157196,
-0.25193896889686584,
0.05943439155817032,
0.1434587836265564,
0.10078166425228119,
-0.12725001573562622,
0.36669230461120605,
0.18580743670463562,
0.22374491393566132,
-0.1296074539422989,
0.11506502330303192,
-0.16300912201404572,
0.007101600989699364,
-0.006841652095317841,
-0.48519787192344666,
-0.1454281508922577,
-0.07270371168851852,
0.06646912544965744,
-0.2589694857597351,
0.08463343977928162,
0.04418190196156502,
-0.15182968974113464,
0.13502249121665955,
0.027906034141778946,
0.6574342250823975,
-0.23933935165405273,
-0.1950959712266922,
-0.29613345861434937,
-0.20162220299243927,
-0.1850346326828003,
-0.0286589115858078,
0.09899298846721649,
0.3526167571544647,
0.06631619483232498,
0.150864839553833,
-0.1567121297121048,
0.43800973892211914,
0.1698628067970276,
0.34537267684936523,
-0.1365327388048172,
0.10781016945838928,
-0.3517186939716339,
-0.12050803750753403,
0.04667622596025467,
0.5064771175384521,
0.02186562865972519,
-0.1784386783838272,
-0.2926490902900696,
-0.5317479372024536,
0.5479224324226379,
-0.8124228715896606,
-0.25763800740242004,
0.07841908186674118,
0.09572191536426544,
-0.011472746729850769,
-0.26593562960624695,
-0.5267436504364014,
0.25527888536453247,
0.09849084913730621,
-0.07824182510375977,
-0.3275497555732727,
0.11571629345417023,
-0.09428273141384125,
-0.06467665731906891,
-0.05263541266322136,
0.34435710310935974,
0.189385324716568,
-0.2799617648124695,
-0.19547422230243683,
-0.31563860177993774
] |
https://github.com/huggingface/datasets/issues/233 | Fail to download c4 english corpus | @lhoestq I am facing `IsADirectoryError` while downloading with this command.
Can you pls look into it & help me.
I'm using version 0.4.0 of `nlp`.
```
dataset = load_dataset("c4", 'en', data_dir='.', beam_runner='DirectRunner')
```
Here's the complete stack trace.
```
Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, post-processed: Unknown sizetotal: Unknown size) to /home/devops/.cache/huggingface/datasets/c4/en/2.3.0/096df5a27756d51957c959a2499453e60a08154971fceb017bbb29f54b11bef7...
---------------------------------------------------------------------------
IsADirectoryError Traceback (most recent call last)
<ipython-input-11-f622e6705e03> in <module>
----> 1 dataset = load_dataset("c4", 'en', data_dir='.', beam_runner='DirectRunner')
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
547 # Download and prepare data
548 builder_instance.download_and_prepare(
--> 549 download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
550 )
551
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
461 if not downloaded_from_gcs:
462 self._download_and_prepare(
--> 463 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
464 )
465 # Sync info
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos)
964 pipeline = beam_utils.BeamPipeline(runner=beam_runner, options=beam_options,)
965 super(BeamBasedBuilder, self)._download_and_prepare(
--> 966 dl_manager, verify_infos=False, pipeline=pipeline,
967 ) # TODO handle verify_infos in beam datasets
968 # Run pipeline
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
516 split_dict = SplitDict(dataset_name=self.name)
517 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 518 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
519 # Checksums verification
520 if verify_infos:
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/datasets/c4/096df5a27756d51957c959a2499453e60a08154971fceb017bbb29f54b11bef7/c4.py in _split_generators(self, dl_manager, pipeline)
187 if self.config.realnewslike:
188 files_to_download["realnews_domains"] = _REALNEWS_DOMAINS_URL
--> 189 file_paths = dl_manager.download_and_extract(files_to_download)
190
191 if self.config.webtextlike:
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in download_and_extract(self, url_or_urls)
218 extracted_path(s): `str`, extracted paths of given URL(s).
219 """
--> 220 return self.extract(self.download(url_or_urls))
221
222 def get_recorded_sizes_checksums(self):
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in download(self, url_or_urls)
156 lambda url: cached_path(url, download_config=self._download_config,), url_or_urls,
157 )
--> 158 self._record_sizes_checksums(url_or_urls, downloaded_path_or_paths)
159 return downloaded_path_or_paths
160
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in _record_sizes_checksums(self, url_or_urls, downloaded_path_or_paths)
106 flattened_downloaded_path_or_paths = flatten_nested(downloaded_path_or_paths)
107 for url, path in zip(flattened_urls_or_urls, flattened_downloaded_path_or_paths):
--> 108 self._recorded_sizes_checksums[url] = get_size_checksum_dict(path)
109
110 def download_custom(self, url_or_urls, custom_download):
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/info_utils.py in get_size_checksum_dict(path)
77 """Compute the file size and the sha256 checksum of a file"""
78 m = sha256()
---> 79 with open(path, "rb") as f:
80 for chunk in iter(lambda: f.read(1 << 20), b""):
81 m.update(chunk)
IsADirectoryError: [Errno 21] Is a directory: '/'
```
Can anyone please try to see what I am doing wrong or is this a bug? | i run following code to download c4 English corpus.
```
dataset = nlp.load_dataset('c4', 'en', beam_runner='DirectRunner'
, data_dir='/mypath')
```
and i met failure as follows
```
Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/adam/.cache/huggingface/datasets/c4/en/2.3.0...
Traceback (most recent call last):
File "download_corpus.py", line 38, in <module>
, data_dir='/home/adam/data/corpus/en/c4')
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 420, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 816, in _download_and_prepare
dl_manager, verify_infos=False, pipeline=pipeline,
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 457, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/datasets/c4/f545de9f63300d8d02a6795e2eb34e140c47e62a803f572ac5599e170ee66ecc/c4.py", line 175, in _split_generators
dl_manager.download_checksums(_CHECKSUMS_URL)
AttributeError: 'DownloadManager' object has no attribute 'download_checksums
```
can i get any advice? | 341 | Fail to download c4 english corpus
i run following code to download c4 English corpus.
```
dataset = nlp.load_dataset('c4', 'en', beam_runner='DirectRunner'
, data_dir='/mypath')
```
and i met failure as follows
```
Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, total: Unknown size) to /home/adam/.cache/huggingface/datasets/c4/en/2.3.0...
Traceback (most recent call last):
File "download_corpus.py", line 38, in <module>
, data_dir='/home/adam/data/corpus/en/c4')
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/load.py", line 520, in load_dataset
save_infos=save_infos,
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 420, in download_and_prepare
dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 816, in _download_and_prepare
dl_manager, verify_infos=False, pipeline=pipeline,
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/builder.py", line 457, in _download_and_prepare
split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
File "/home/adam/anaconda3/envs/adam/lib/python3.7/site-packages/nlp/datasets/c4/f545de9f63300d8d02a6795e2eb34e140c47e62a803f572ac5599e170ee66ecc/c4.py", line 175, in _split_generators
dl_manager.download_checksums(_CHECKSUMS_URL)
AttributeError: 'DownloadManager' object has no attribute 'download_checksums
```
can i get any advice?
@lhoestq I am facing `IsADirectoryError` while downloading with this command.
Can you pls look into it & help me.
I'm using version 0.4.0 of `nlp`.
```
dataset = load_dataset("c4", 'en', data_dir='.', beam_runner='DirectRunner')
```
Here's the complete stack trace.
```
Downloading and preparing dataset c4/en (download: Unknown size, generated: Unknown size, post-processed: Unknown sizetotal: Unknown size) to /home/devops/.cache/huggingface/datasets/c4/en/2.3.0/096df5a27756d51957c959a2499453e60a08154971fceb017bbb29f54b11bef7...
---------------------------------------------------------------------------
IsADirectoryError Traceback (most recent call last)
<ipython-input-11-f622e6705e03> in <module>
----> 1 dataset = load_dataset("c4", 'en', data_dir='.', beam_runner='DirectRunner')
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/load.py in load_dataset(path, name, version, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, save_infos, **config_kwargs)
547 # Download and prepare data
548 builder_instance.download_and_prepare(
--> 549 download_config=download_config, download_mode=download_mode, ignore_verifications=ignore_verifications,
550 )
551
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, **download_and_prepare_kwargs)
461 if not downloaded_from_gcs:
462 self._download_and_prepare(
--> 463 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs
464 )
465 # Sync info
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos)
964 pipeline = beam_utils.BeamPipeline(runner=beam_runner, options=beam_options,)
965 super(BeamBasedBuilder, self)._download_and_prepare(
--> 966 dl_manager, verify_infos=False, pipeline=pipeline,
967 ) # TODO handle verify_infos in beam datasets
968 # Run pipeline
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/builder.py in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs)
516 split_dict = SplitDict(dataset_name=self.name)
517 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs)
--> 518 split_generators = self._split_generators(dl_manager, **split_generators_kwargs)
519 # Checksums verification
520 if verify_infos:
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/datasets/c4/096df5a27756d51957c959a2499453e60a08154971fceb017bbb29f54b11bef7/c4.py in _split_generators(self, dl_manager, pipeline)
187 if self.config.realnewslike:
188 files_to_download["realnews_domains"] = _REALNEWS_DOMAINS_URL
--> 189 file_paths = dl_manager.download_and_extract(files_to_download)
190
191 if self.config.webtextlike:
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in download_and_extract(self, url_or_urls)
218 extracted_path(s): `str`, extracted paths of given URL(s).
219 """
--> 220 return self.extract(self.download(url_or_urls))
221
222 def get_recorded_sizes_checksums(self):
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in download(self, url_or_urls)
156 lambda url: cached_path(url, download_config=self._download_config,), url_or_urls,
157 )
--> 158 self._record_sizes_checksums(url_or_urls, downloaded_path_or_paths)
159 return downloaded_path_or_paths
160
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/download_manager.py in _record_sizes_checksums(self, url_or_urls, downloaded_path_or_paths)
106 flattened_downloaded_path_or_paths = flatten_nested(downloaded_path_or_paths)
107 for url, path in zip(flattened_urls_or_urls, flattened_downloaded_path_or_paths):
--> 108 self._recorded_sizes_checksums[url] = get_size_checksum_dict(path)
109
110 def download_custom(self, url_or_urls, custom_download):
/data/anaconda/envs/hf/lib/python3.6/site-packages/nlp/utils/info_utils.py in get_size_checksum_dict(path)
77 """Compute the file size and the sha256 checksum of a file"""
78 m = sha256()
---> 79 with open(path, "rb") as f:
80 for chunk in iter(lambda: f.read(1 << 20), b""):
81 m.update(chunk)
IsADirectoryError: [Errno 21] Is a directory: '/'
```
Can anyone please try to see what I am doing wrong or is this a bug? | [
0.01155460998415947,
0.0910860151052475,
-0.05564383417367935,
0.29022306203842163,
0.14863073825836182,
0.16529706120491028,
-0.0632365345954895,
0.3174011707305908,
-0.11661435663700104,
0.039429157972335815,
-0.1543147712945938,
0.00875124055892229,
0.02675797790288925,
0.08450019359588623,
0.1310366839170456,
-0.5472637414932251,
-0.2235967516899109,
0.15271419286727905,
-0.1312202364206314,
-0.14125409722328186,
-0.04234259948134422,
0.42581939697265625,
-0.11378830671310425,
-0.1747366040945053,
-0.06000389903783798,
-0.13748641312122345,
-0.19747290015220642,
-0.05506981909275055,
-0.20634284615516663,
-0.5448325276374817,
0.4454178512096405,
0.004982247948646545,
0.18939149379730225,
0.3470121920108795,
-0.00010940982610918581,
-0.017852868884801865,
0.4102250337600708,
-0.12080961465835571,
-0.24889139831066132,
-0.3994749188423157,
0.17930322885513306,
-0.32142817974090576,
-0.09998078644275665,
-0.3226757049560547,
-0.22828558087348938,
-0.13052614033222198,
0.1668989062309265,
-0.22700685262680054,
0.043161869049072266,
0.31656402349472046,
0.2735978960990906,
-0.025514788925647736,
0.28026536107063293,
-0.13305139541625977,
-0.1831475794315338,
-0.24020226299762726,
-0.09089799970388412,
0.23933757841587067,
0.16672831773757935,
0.2533927261829376,
-0.09512820094823837,
0.15294647216796875,
0.05027589946985245,
0.013414486311376095,
-0.10940244048833847,
-0.2209976315498352,
0.048970550298690796,
-0.2720613181591034,
0.335646390914917,
0.05530327931046486,
0.7832090854644775,
-0.28178730607032776,
-0.16184264421463013,
0.16128340363502502,
0.2839299738407135,
-0.21231403946876526,
0.2203889787197113,
0.4282408058643341,
-0.1392531841993332,
0.0007202401757240295,
-0.3249094486236572,
-0.09991461038589478,
-0.18178987503051758,
0.20378345251083374,
0.020981542766094208,
0.008731409907341003,
-0.08046569675207138,
-0.010057680308818817,
0.21736907958984375,
0.10147808492183685,
0.07938119769096375,
-0.07899816334247589,
-0.27776941657066345,
0.2961805760860443,
-0.2832438349723816,
0.02059677243232727,
-0.14629709720611572,
0.5204557776451111,
0.025380119681358337,
-0.3621298670768738,
-0.1353999823331833,
-0.10544892400503159,
0.07566597312688828,
0.02768007107079029,
-0.053335998207330704,
0.339450478553772,
0.1087685227394104,
0.028520148247480392,
0.07979902625083923,
0.13018500804901123,
0.074342742562294,
-0.049966633319854736,
-0.13964717090129852,
-0.22278474271297455,
-0.29879480600357056,
0.2747340798377991,
-0.12344924360513687,
-0.3272615075111389,
-0.152159184217453,
0.001216319389641285,
-0.20872992277145386,
-0.0346011184155941,
-0.09959426522254944,
0.4414263963699341,
-0.15790201723575592,
0.15262055397033691,
0.08801528811454773,
0.18170540034770966,
-0.19471204280853271,
-0.3660130500793457,
-0.14900976419448853,
0.20088200271129608,
-0.4686213433742523,
-0.32053235173225403,
0.24913667142391205,
-0.31658488512039185,
0.43263134360313416,
-0.08860320597887039,
0.10732519626617432,
-0.10228721052408218,
-0.14219892024993896,
-0.22252337634563446,
-0.25826123356819153,
0.18804456293582916,
0.06787677109241486,
0.26513946056365967,
0.012080749496817589,
-0.032828789204359055,
-0.007649727165699005,
-0.24501866102218628,
-0.12950867414474487,
-0.19092777371406555,
-0.072525754570961,
0.17847740650177002,
-0.01035361085087061,
-0.1338941603899002,
-0.5229310989379883,
0.04997575655579567,
0.19104821979999542,
0.03806290403008461,
-0.0024332255125045776,
-0.20787203311920166,
-0.23149967193603516,
-0.20859836041927338,
0.11716832965612411,
0.5448204874992371,
-0.018813839182257652,
0.02837935835123062,
-0.04356754198670387,
-0.011955983936786652,
0.49969491362571716,
0.3720759451389313,
-0.09973880648612976,
0.17216745018959045,
-0.20958589017391205,
0.1426469087600708,
0.16642647981643677,
-0.5432872772216797,
-0.22140547633171082,
0.24188494682312012,
-0.04924943298101425,
0.09035541117191315,
0.03292199224233627,
-0.4252798557281494,
0.20099757611751556,
-0.13091613352298737,
0.11172982305288315,
0.27592790126800537,
0.09924521297216415,
0.12656015157699585,
-0.2411849945783615,
-0.12675875425338745,
0.24730102717876434,
0.10466139018535614,
0.16901734471321106,
-0.10204524546861649,
0.2604553699493408,
0.187079057097435,
0.2613472044467926,
-0.12082540988922119,
0.3596663773059845,
0.24704062938690186,
-0.26252245903015137,
-0.3072056770324707,
0.10502172261476517,
0.19859421253204346,
-0.33054330945014954,
0.206601083278656,
-0.2245475947856903,
0.29119741916656494,
0.05326260253787041,
-0.021892815828323364,
-0.3256198465824127,
-0.20640751719474792,
-0.24103610217571259,
-0.20117603242397308,
0.17742010951042175,
-0.04290894418954849,
0.32806918025016785,
0.1672782599925995,
0.11972062289714813,
0.35329556465148926,
-0.306331068277359,
-0.10966158658266068,
-0.10673968493938446,
0.10266994684934616,
-0.24342714250087738,
-0.07219039648771286,
0.3241753876209259,
0.24245434999465942,
0.2653386890888214,
-0.15683647990226746,
-0.13989263772964478,
0.07293465733528137,
-0.14703015983104706,
0.4155645966529846,
-0.11656027287244797,
-0.12037433683872223,
0.3694635331630707,
-0.3810000419616699,
0.40821337699890137,
0.31771668791770935,
0.06451451778411865,
-0.07451394200325012,
0.30472713708877563,
-0.24469612538814545,
0.05164709314703941,
0.007779702544212341,
0.08690759539604187,
-0.1271284967660904,
0.33176979422569275,
-0.09151497483253479,
0.17783716320991516,
-0.03593510389328003,
0.532971203327179,
-0.09439811110496521,
0.25456225872039795,
-0.1527450680732727,
-0.19701945781707764,
0.02761293202638626,
0.42649224400520325,
0.08075891435146332,
-0.11451487988233566,
0.17100748419761658,
-0.12888380885124207,
-0.17582890391349792,
0.2758095860481262,
0.1189039945602417,
0.11022751778364182,
0.16510049998760223,
0.17313414812088013,
0.13116542994976044,
0.13358014822006226,
-0.2187914252281189,
0.25292468070983887,
-0.21582962572574615,
0.17182813584804535,
0.3353050947189331,
0.1661091148853302,
-0.002951384522020817,
-0.4320872724056244,
-0.028696997091174126,
0.21439898014068604,
0.1778079718351364,
-0.06852731853723526,
-0.09973757714033127,
-0.24677634239196777,
-0.40813523530960083,
-0.313478022813797,
-0.11854354292154312,
0.03713180869817734,
0.017246102914214134,
-0.19682584702968597,
0.11412045359611511,
-0.04070529714226723,
-0.007627509534358978,
-0.27487340569496155,
-0.3112739324569702,
-0.19947737455368042,
-0.2850942015647888,
-0.1725654900074005,
0.005930017679929733,
-0.40908539295196533,
0.12316186726093292,
0.14126427471637726,
0.05943426862359047,
0.35669979453086853,
-0.33560606837272644,
-0.0827375277876854,
-0.22347396612167358,
-0.07055483013391495,
0.25133568048477173,
-0.06519896537065506,
-0.1545359492301941,
0.022169016301631927,
0.20069803297519684,
-0.2227172702550888,
-0.1932847499847412,
0.0155677180737257,
-0.1274445652961731,
-0.1874832957983017,
0.014691241085529327,
-0.23348307609558105,
-0.15572047233581543,
-0.15952730178833008,
-0.6133764982223511,
-0.4746181070804596,
-0.48644164204597473,
0.05999530851840973,
-0.14135237038135529,
0.19657360017299652,
0.39358222484588623,
-0.20145294070243835,
0.16573813557624817,
0.1373187154531479,
0.1436539739370346,
-0.2028481662273407,
-0.026271462440490723,
0.11786195635795593,
-0.3232523202896118,
-0.4543694257736206,
0.1173180490732193,
0.02386140450835228,
0.4150659143924713,
0.16472375392913818,
-0.30464044213294983,
0.33163633942604065,
-0.03227066248655319,
0.12915317714214325,
0.09138079732656479,
0.14185947179794312,
0.49418386816978455,
-0.09971117228269577,
-0.0022173281759023666,
0.029206663370132446,
0.11091752350330353,
-0.006734982132911682,
0.229223370552063,
0.4109466075897217,
-0.27253735065460205,
0.15089203417301178,
0.1694057732820511,
0.30103081464767456,
0.3988196551799774,
-0.23261405527591705,
0.6556059122085571,
0.32999420166015625,
0.16604898869991302,
-0.07856004685163498,
-0.22315998375415802,
0.4240540862083435,
-0.024203017354011536,
0.05045171082019806,
0.39433926343917847,
-0.16810759902000427,
-0.5607062578201294,
-0.11067620664834976,
-0.4160577356815338,
-0.4069870114326477,
-0.06559896469116211,
-0.005862079560756683,
0.11797849088907242,
0.40663567185401917,
0.04121742770075798,
0.1797294318675995,
0.2586691379547119,
-0.289193332195282,
0.15880157053470612,
0.22211089730262756,
0.030703715980052948,
0.2962249517440796,
-0.08447860181331635,
-0.13709841668605804,
-0.7133889198303223,
0.3157610297203064,
0.2892405390739441,
0.16818132996559143,
-0.1471838653087616,
0.38114625215530396,
0.013208851218223572,
-0.19391846656799316,
0.5401837825775146,
-0.21462781727313995,
0.11722297221422195,
0.03856673836708069,
0.03946758806705475,
-0.08228962868452072,
0.010346870869398117,
0.0670098066329956,
0.11764795333147049,
0.4223915934562683,
0.05895133316516876,
-0.4840072691440582,
-0.08813294023275375,
-0.021805457770824432,
0.47672441601753235,
0.17085550725460052,
-0.21849989891052246,
-0.049993846565485,
-0.5328352451324463,
-0.23357918858528137,
0.007856182754039764,
0.01805024780333042,
0.36885127425193787,
-0.023413265123963356,
-0.0077776312828063965,
0.17834866046905518,
0.07187856733798981,
0.186716228723526,
0.1425793170928955,
0.28001925349235535,
0.29227784276008606,
0.20065079629421234,
0.32970938086509705,
0.004377793520689011,
0.1921950727701187,
0.3183094263076782,
-0.14868029952049255,
0.14024534821510315,
-0.05302499234676361,
0.11649246513843536,
0.13674990832805634,
0.20459428429603577,
0.030132759362459183,
-0.06275264173746109,
-0.1415635347366333,
-0.197998508810997,
0.14650775492191315,
0.0835249274969101,
0.09638828784227371,
0.12574313580989838,
-0.5703760385513306,
-0.38825851678848267,
0.2796280086040497,
-0.32025206089019775,
0.15958119928836823,
0.15448185801506042,
0.3057817220687866,
-0.3391069769859314,
0.25593262910842896,
0.07954630255699158,
0.736846387386322,
-0.04026911407709122,
0.07664357870817184,
0.02860744297504425,
0.07719990611076355,
0.29579681158065796,
-0.33938491344451904,
0.179179385304451,
-0.24313971400260925,
0.119699627161026,
-0.0036817099899053574,
0.0777338296175003,
-0.020392656326293945,
0.13655902445316315,
-0.39119553565979004,
0.5633781552314758,
0.07773356139659882,
-0.04482673481106758,
0.0642819032073021,
0.3738417625427246,
-0.14197130501270294,
-0.3766852021217346,
-0.4003922641277313,
0.1819063127040863,
-0.3179160952568054,
0.33057790994644165,
-0.2088789939880371,
-0.0886836126446724,
0.10623420774936676,
-0.10210871696472168,
-0.3304610848426819,
0.4157050848007202,
-0.2829902470111847,
0.025362208485603333,
-0.09548547863960266,
-0.18039622902870178,
0.4980296194553375,
0.2474794238805771,
0.3305479884147644,
0.37445616722106934,
-0.23709532618522644,
0.12063179910182953,
0.10322127491235733,
-0.5300790667533875,
0.24470670521259308,
0.0216265469789505,
0.05473581701517105,
-0.3400759994983673,
-0.217546284198761,
0.0930887907743454,
-0.0411832295358181,
-0.05254070833325386,
0.26233014464378357,
-0.14253513514995575,
-0.33368486166000366,
0.01051044650375843,
-0.35495465993881226,
0.2626432180404663,
-0.004656020551919937,
0.039250005036592484,
0.1276261955499649,
-0.0834261029958725,
-0.17889519035816193,
0.11126816272735596,
0.1640380620956421,
-0.21929246187210083,
-0.09325563907623291,
0.31139466166496277,
0.12255971133708954,
-0.3694104850292206,
0.4701079726219177,
0.2693347930908203,
-0.2435082197189331,
-0.19013315439224243,
-0.6724640130996704,
-0.2965882420539856,
-0.3600970506668091,
-0.008136521093547344,
-0.0068642813712358475,
0.036295756697654724,
-0.1432046890258789,
0.3669489026069641,
-0.02891664206981659,
-0.007345929741859436,
0.22492749989032745,
-0.388395220041275,
-0.28593987226486206,
0.06967366486787796,
-0.15974482893943787,
0.028575211763381958,
0.23872902989387512,
0.28289103507995605,
0.19142669439315796,
0.11299848556518555,
-0.2709112763404846,
-0.04517953842878342,
-0.37413039803504944,
0.07345575094223022,
0.29133644700050354,
-0.10154309123754501,
0.33288219571113586,
0.1120009571313858,
0.1091698408126831,
0.25574254989624023,
-0.2520970106124878,
-0.20904463529586792,
-0.11032919585704803,
0.08477610349655151,
0.15797710418701172,
0.08173809945583344,
0.3228663206100464,
-0.38326019048690796,
-0.14949536323547363,
-0.02848226949572563,
0.12609520554542542,
0.30184048414230347,
-0.03393688052892685,
0.1260329633951187,
0.24066896736621857,
0.06285563111305237,
-0.08676321804523468,
0.14244979619979858,
0.1167202964425087,
0.09450021386146545,
-0.02113603986799717,
0.14237268269062042,
0.06791984289884567,
-0.08107181638479233,
-0.1436300277709961,
-0.014484748244285583,
0.11094885319471359,
0.04996718093752861,
0.15437215566635132,
-0.03687725216150284,
0.10275143384933472,
-0.005485058296471834,
-0.04549343138933182,
0.007430370897054672,
-0.023452164605259895,
-0.03580118343234062,
0.30458229780197144,
0.20666129887104034,
-0.2701679468154907,
0.17608119547367096,
-0.0184236541390419,
0.17215920984745026,
0.004591993987560272,
0.01394682377576828,
0.3261062204837799,
-0.2998712658882141,
0.19545269012451172,
0.09732883423566818,
0.3590957224369049,
-0.13008545339107513,
-0.15505169332027435,
-0.028224293142557144,
0.06127503141760826,
0.04152706265449524,
0.2245529592037201,
-0.14635668694972992,
0.008698567748069763,
0.13488884270191193,
-0.08931178599596024,
-0.011678909882903099,
0.2734455168247223,
0.29537829756736755,
-0.06546158343553543,
-0.21158821880817413,
0.007216542959213257,
0.30115559697151184,
0.29554635286331177,
0.22885346412658691,
0.11974677443504333,
0.19592079520225525,
0.17329634726047516,
-0.2000487893819809,
-0.32755163311958313,
0.37516653537750244,
-0.07891669869422913,
0.03933132439851761,
-0.1925186812877655,
-0.21869325637817383,
-0.08184478431940079,
0.13605996966362,
-0.18722748756408691,
-0.06594333052635193,
0.19626131653785706,
0.21847884356975555,
-0.21869392693042755,
-0.4077455997467041,
-0.04353278875350952,
0.016043951734900475,
0.1576145887374878,
-0.21698689460754395,
0.49915435910224915,
0.2705325484275818,
-0.05466020107269287,
-0.16325075924396515,
0.31408601999282837,
0.44854554533958435,
0.20072534680366516,
-0.12845002114772797,
0.09777572751045227,
0.12251953780651093,
-0.010440781712532043,
-0.03643844276666641,
0.42975807189941406,
0.345232754945755,
0.11359177529811859,
0.28291863203048706,
0.10922500491142273,
-0.22057044506072998,
-0.09852951765060425,
0.09332352876663208,
-0.056723061949014664,
0.12508998811244965,
0.4512255787849426,
0.0044771358370780945,
0.07499124854803085,
-0.3351685702800751,
0.04853847250342369,
-0.4805065095424652,
0.43050438165664673,
0.4933687746524811,
-0.19419170916080475,
-0.012612354010343552,
-0.10424729436635971,
0.08645521849393845,
0.09255866706371307,
0.32883915305137634,
0.2744687497615814,
0.49594008922576904,
-0.4177181124687195,
-0.3438929319381714,
-0.3343043029308319,
0.18633469939231873,
-0.2957496643066406,
0.17978350818157196,
-0.25193896889686584,
0.05943439155817032,
0.1434587836265564,
0.10078166425228119,
-0.12725001573562622,
0.36669230461120605,
0.18580743670463562,
0.22374491393566132,
-0.1296074539422989,
0.11506502330303192,
-0.16300912201404572,
0.007101600989699364,
-0.006841652095317841,
-0.48519787192344666,
-0.1454281508922577,
-0.07270371168851852,
0.06646912544965744,
-0.2589694857597351,
0.08463343977928162,
0.04418190196156502,
-0.15182968974113464,
0.13502249121665955,
0.027906034141778946,
0.6574342250823975,
-0.23933935165405273,
-0.1950959712266922,
-0.29613345861434937,
-0.20162220299243927,
-0.1850346326828003,
-0.0286589115858078,
0.09899298846721649,
0.3526167571544647,
0.06631619483232498,
0.150864839553833,
-0.1567121297121048,
0.43800973892211914,
0.1698628067970276,
0.34537267684936523,
-0.1365327388048172,
0.10781016945838928,
-0.3517186939716339,
-0.12050803750753403,
0.04667622596025467,
0.5064771175384521,
0.02186562865972519,
-0.1784386783838272,
-0.2926490902900696,
-0.5317479372024536,
0.5479224324226379,
-0.8124228715896606,
-0.25763800740242004,
0.07841908186674118,
0.09572191536426544,
-0.011472746729850769,
-0.26593562960624695,
-0.5267436504364014,
0.25527888536453247,
0.09849084913730621,
-0.07824182510375977,
-0.3275497555732727,
0.11571629345417023,
-0.09428273141384125,
-0.06467665731906891,
-0.05263541266322136,
0.34435710310935974,
0.189385324716568,
-0.2799617648124695,
-0.19547422230243683,
-0.31563860177993774
] |
https://github.com/huggingface/datasets/issues/228 | Not able to access the XNLI dataset | Thanks for reporting this bug !
As it seems to be just a cache problem, I closed your PR.
I think we might just need to clear and reload the `xnli` cache @srush ? | When I try to access the XNLI dataset, I get the following error. The option of plain_text get selected automatically and then I get the following error.
```
FileNotFoundError: [Errno 2] No such file or directory: '/home/sasha/.cache/huggingface/datasets/xnli/plain_text/1.0.0/dataset_info.json'
Traceback:
File "/home/sasha/.local/lib/python3.7/site-packages/streamlit/ScriptRunner.py", line 322, in _run_script
exec(code, module.__dict__)
File "/home/sasha/nlp_viewer/run.py", line 86, in <module>
dts, fail = get(str(option.id), str(conf_option.name) if conf_option else None)
File "/home/sasha/.local/lib/python3.7/site-packages/streamlit/caching.py", line 591, in wrapped_func
return get_or_create_cached_value()
File "/home/sasha/.local/lib/python3.7/site-packages/streamlit/caching.py", line 575, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "/home/sasha/nlp_viewer/run.py", line 72, in get
builder_instance = builder_cls(name=conf)
File "/home/sasha/.local/lib/python3.7/site-packages/nlp/builder.py", line 610, in __init__
super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
File "/home/sasha/.local/lib/python3.7/site-packages/nlp/builder.py", line 152, in __init__
self.info = DatasetInfo.from_directory(self._cache_dir)
File "/home/sasha/.local/lib/python3.7/site-packages/nlp/info.py", line 157, in from_directory
with open(os.path.join(dataset_info_dir, DATASET_INFO_FILENAME), "r") as f:
```
Is it possible to see if the dataset_info.json is correctly placed? | 34 | Not able to access the XNLI dataset
When I try to access the XNLI dataset, I get the following error. The option of plain_text get selected automatically and then I get the following error.
```
FileNotFoundError: [Errno 2] No such file or directory: '/home/sasha/.cache/huggingface/datasets/xnli/plain_text/1.0.0/dataset_info.json'
Traceback:
File "/home/sasha/.local/lib/python3.7/site-packages/streamlit/ScriptRunner.py", line 322, in _run_script
exec(code, module.__dict__)
File "/home/sasha/nlp_viewer/run.py", line 86, in <module>
dts, fail = get(str(option.id), str(conf_option.name) if conf_option else None)
File "/home/sasha/.local/lib/python3.7/site-packages/streamlit/caching.py", line 591, in wrapped_func
return get_or_create_cached_value()
File "/home/sasha/.local/lib/python3.7/site-packages/streamlit/caching.py", line 575, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "/home/sasha/nlp_viewer/run.py", line 72, in get
builder_instance = builder_cls(name=conf)
File "/home/sasha/.local/lib/python3.7/site-packages/nlp/builder.py", line 610, in __init__
super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
File "/home/sasha/.local/lib/python3.7/site-packages/nlp/builder.py", line 152, in __init__
self.info = DatasetInfo.from_directory(self._cache_dir)
File "/home/sasha/.local/lib/python3.7/site-packages/nlp/info.py", line 157, in from_directory
with open(os.path.join(dataset_info_dir, DATASET_INFO_FILENAME), "r") as f:
```
Is it possible to see if the dataset_info.json is correctly placed?
Thanks for reporting this bug !
As it seems to be just a cache problem, I closed your PR.
I think we might just need to clear and reload the `xnli` cache @srush ? | [
-0.14086775481700897,
-0.18925927579402924,
-0.03353635221719742,
0.4693676233291626,
0.40544629096984863,
0.11200069636106491,
0.0560358390212059,
0.3544982373714447,
-0.10948947072029114,
0.29277628660202026,
-0.14041021466255188,
0.16212047636508942,
0.050227683037519455,
-0.02804570272564888,
0.0505417175590992,
-0.035324372351169586,
-0.16912740468978882,
0.15102046728134155,
0.13207335770130157,
0.005323193967342377,
-0.1707712858915329,
0.04558210074901581,
-0.26906371116638184,
0.2587417960166931,
-0.2867065668106079,
-0.08528339862823486,
0.09144599735736847,
0.385978102684021,
-0.3081699013710022,
-0.5349296927452087,
0.04508200287818909,
-0.14433543384075165,
0.24077367782592773,
0.19576644897460938,
-0.00011105804878752679,
0.04933280497789383,
0.2629132866859436,
-0.057348959147930145,
-0.5286899209022522,
-0.14541809260845184,
-0.35688546299934387,
-0.12314413487911224,
-0.014699289575219154,
-0.3132302463054657,
-0.12878161668777466,
-0.2209603637456894,
0.4022444486618042,
-0.3689228892326355,
0.2718049883842468,
0.3152756690979004,
0.2039078176021576,
0.200043186545372,
0.12182684242725372,
-0.054713837802410126,
0.04933726415038109,
0.13519378006458282,
-0.13144822418689728,
-0.013970265164971352,
0.23928554356098175,
0.1932620108127594,
0.163666769862175,
0.4578835368156433,
-0.17119547724723816,
-0.11164632439613342,
0.25520798563957214,
0.24384243786334991,
-0.030298985540866852,
-0.16049809753894806,
0.3209936320781708,
0.23313415050506592,
0.44375720620155334,
-0.4332897663116455,
-0.43349945545196533,
-0.11148610711097717,
-0.003818779718130827,
-0.2649720013141632,
0.24886474013328552,
0.10019466280937195,
-0.31770774722099304,
0.155459925532341,
-0.11993852257728577,
-0.3665495812892914,
-0.36813756823539734,
0.14540168642997742,
0.26279744505882263,
0.3802299201488495,
-0.059688739478588104,
0.06708592921495438,
-0.06119930371642113,
-0.19583773612976074,
0.05281279608607292,
-0.08949405699968338,
-0.16413229703903198,
0.3026697039604187,
-0.22698445618152618,
0.12764616310596466,
0.13528874516487122,
0.0571526363492012,
0.11984657496213913,
0.36280328035354614,
0.20324352383613586,
-0.18401435017585754,
-0.3755410611629486,
0.06257779151201248,
-0.26458409428596497,
0.42281052470207214,
0.2957008183002472,
0.14088574051856995,
0.38271552324295044,
-0.008944474160671234,
0.2218959629535675,
-0.36490076780319214,
-0.2945743203163147,
-0.16017693281173706,
-0.1143839955329895,
0.2509683668613434,
0.361581027507782,
-0.15953828394412994,
-0.2476477026939392,
-0.059575922787189484,
-0.12639595568180084,
0.01934887282550335,
0.20292797684669495,
0.5645593404769897,
0.05364592373371124,
0.18948376178741455,
0.035133086144924164,
0.32177770137786865,
0.05370347201824188,
-0.5332473516464233,
-0.17430856823921204,
0.21654152870178223,
-0.3087964951992035,
0.14569489657878876,
0.31052640080451965,
-0.33132442831993103,
0.30016258358955383,
-0.11575481295585632,
-0.3032849431037903,
0.003235872834920883,
0.12947216629981995,
-0.17491771280765533,
0.10203325003385544,
0.07796099036931992,
0.09318593144416809,
0.10305085778236389,
0.19042612612247467,
-0.07996873557567596,
0.06550314277410507,
-0.033277250826358795,
-0.04719238728284836,
-0.4852251708507538,
0.025507066398859024,
0.13068519532680511,
0.07165225595235825,
-0.00950583815574646,
-0.08786658197641373,
-0.05430305376648903,
0.19623029232025146,
-0.2217220813035965,
-0.11173585802316666,
0.11289885640144348,
-0.02556460350751877,
-0.27134567499160767,
0.21264217793941498,
0.5540783405303955,
-0.31361183524131775,
0.2092665135860443,
-0.19852608442306519,
-0.1348920613527298,
0.16316255927085876,
0.36284321546554565,
-0.11672917008399963,
0.07758839428424835,
-0.3848820626735687,
0.32663238048553467,
0.6447755694389343,
-0.5202512145042419,
-0.5076892971992493,
0.2816506624221802,
-0.22235892713069916,
-0.07156787812709808,
0.5067170262336731,
0.24071164429187775,
-0.06453116983175278,
-0.11318336427211761,
0.04700079187750816,
0.11700910329818726,
0.046721238642930984,
-0.0885004848241806,
-0.11148883402347565,
-0.2450890988111496,
0.3402371406555176,
0.11302033066749573,
-0.03068055585026741,
0.13209068775177002,
-0.029109418392181396,
0.1613195687532425,
0.3716825842857361,
-0.2910833954811096,
0.15118615329265594,
0.2840607166290283,
0.30056729912757874,
0.037209462374448776,
-0.14257806539535522,
-0.11960351467132568,
-0.29466134309768677,
0.239985853433609,
-0.09203024208545685,
-0.02011643350124359,
-0.3088809847831726,
0.00025306642055511475,
-0.11308939754962921,
-0.04091893509030342,
-0.38762614130973816,
-0.2783125638961792,
0.19049637019634247,
0.4527052342891693,
0.2273436188697815,
-0.019652485847473145,
-0.28994280099868774,
0.31739217042922974,
-0.48267489671707153,
0.002716904040426016,
-0.6354673504829407,
0.1280631422996521,
-0.09318798780441284,
-0.1490345150232315,
-0.16396376490592957,
0.16392642259597778,
0.02354978770017624,
-0.0028483045753091574,
-0.0927475169301033,
0.21247029304504395,
-0.23807653784751892,
0.08131223917007446,
0.26387083530426025,
0.10236234962940216,
0.03820406645536423,
-0.5709118843078613,
0.337582528591156,
0.47175970673561096,
0.22842131555080414,
0.0894114151597023,
-0.2693724036216736,
0.11830694228410721,
-0.08254821598529816,
0.09030060470104218,
0.043728336691856384,
0.017203303053975105,
0.4666252136230469,
0.01481044664978981,
0.06998178362846375,
-0.2127937376499176,
0.3003253936767578,
0.21648959815502167,
0.46217793226242065,
-0.08612507581710815,
-0.5364869832992554,
0.08613158762454987,
0.27960073947906494,
0.06051914766430855,
-0.0986442044377327,
-0.010936170816421509,
-0.35100409388542175,
-0.041634686291217804,
0.055063068866729736,
0.22897882759571075,
0.28139013051986694,
0.22780925035476685,
-0.06535443663597107,
0.08311180025339127,
0.09837311506271362,
-0.2621799409389496,
0.18072867393493652,
-0.2579272985458374,
0.1012299507856369,
0.2698713541030884,
0.19980129599571228,
0.03205327317118645,
-0.03564446419477463,
-0.503363311290741,
0.07217012345790863,
0.4454902112483978,
-0.27034491300582886,
-0.17282357811927795,
-0.13690446317195892,
-0.6854813694953918,
0.06065066531300545,
0.07638601958751678,
-0.11054135859012604,
-0.3432246744632721,
-0.022228389978408813,
0.18775984644889832,
0.21456152200698853,
-0.07199541479349136,
-0.09505295753479004,
0.07554149627685547,
0.06864705681800842,
-0.10940911620855331,
-0.4193321466445923,
-0.31495991349220276,
-0.20777544379234314,
0.04685632511973381,
0.2707950174808502,
-0.02280694618821144,
0.24694286286830902,
-0.2802792489528656,
0.0639284998178482,
-0.4144373834133148,
-0.025489531457424164,
0.023477166891098022,
0.029296692460775375,
-0.00047429464757442474,
-0.03406842052936554,
0.4818875789642334,
0.47751766443252563,
-0.06232339143753052,
0.34758925437927246,
0.04154754430055618,
-0.17423036694526672,
0.25780290365219116,
-0.21523930132389069,
-0.2344866394996643,
-0.04180878773331642,
-0.5249136090278625,
-0.35636964440345764,
-0.32827436923980713,
0.08275359869003296,
-0.13988131284713745,
0.08039908111095428,
0.31809094548225403,
-0.1464771181344986,
0.2062615305185318,
-0.03888361528515816,
0.19586728513240814,
-0.07545919716358185,
-0.2256135493516922,
0.338249146938324,
-0.16139663755893707,
-0.21599535644054413,
0.2360936403274536,
0.06490584462881088,
0.21008813381195068,
-0.041241735219955444,
-0.230601504445076,
0.1721256971359253,
-0.2255694419145584,
0.284463495016098,
-0.13050343096256256,
-0.15192070603370667,
0.3499826490879059,
-0.010504445061087608,
-0.0014594830572605133,
0.0043800510466098785,
0.011880099773406982,
0.11780878901481628,
0.010027075186371803,
0.5716212391853333,
0.20394250750541687,
0.4134450852870941,
0.14452002942562103,
0.3723565340042114,
0.4486643075942993,
0.02675965055823326,
0.3283902406692505,
-0.26213929057121277,
0.06690797954797745,
-0.06588190048933029,
-0.3156570494174957,
0.11945437639951706,
0.17475619912147522,
-0.17332451045513153,
-0.10797208547592163,
0.13868340849876404,
0.38894420862197876,
-0.33151975274086,
-0.1330215185880661,
-0.2874073088169098,
-0.08548343181610107,
-0.14637796580791473,
0.02025006152689457,
0.011119365692138672,
0.12911178171634674,
0.20937517285346985,
-0.34255450963974,
-0.34246626496315,
-0.11213284730911255,
0.4633778929710388,
0.0023367106914520264,
0.15231424570083618,
-0.27443578839302063,
-0.2841799557209015,
-0.5618223547935486,
0.48062586784362793,
0.11800559610128403,
0.21206623315811157,
-0.27588653564453125,
0.1250005066394806,
0.2663465142250061,
0.022575456649065018,
0.3283258080482483,
-0.30048346519470215,
0.2563645839691162,
0.080786794424057,
-0.09893057495355606,
-0.23588038980960846,
0.16963933408260345,
-0.15016157925128937,
0.1984996646642685,
0.3358711302280426,
0.1939544975757599,
-0.16084139049053192,
-0.11107289046049118,
-0.016944047063589096,
0.10838177800178528,
-0.17496930062770844,
-0.21759359538555145,
-0.017783578485250473,
-0.0037045739591121674,
-0.1634148359298706,
-0.3284824788570404,
-0.17156833410263062,
0.2472740262746811,
0.13296176493167877,
0.3358917534351349,
0.0468721017241478,
-0.07427318394184113,
0.17847326397895813,
0.22041524946689606,
0.33928728103637695,
-0.09613548964262009,
-0.1533091515302658,
0.1652645319700241,
0.24983644485473633,
0.07175852358341217,
0.49867525696754456,
0.28984448313713074,
-0.362265408039093,
-0.014100927859544754,
-0.2284083515405655,
0.12723596394062042,
0.29033613204956055,
-0.2587496042251587,
0.10405351221561432,
0.034366853535175323,
-0.00782705843448639,
0.061695270240306854,
-0.09590542316436768,
0.25131756067276,
0.03154429420828819,
-0.12594270706176758,
-0.3986915349960327,
0.3272976577281952,
0.10116890072822571,
0.003972761332988739,
0.4540022313594818,
-0.146318718791008,
-0.22761720418930054,
0.023734332993626595,
0.057231105864048004,
0.9369794726371765,
0.1299275904893875,
0.2292374074459076,
0.39308419823646545,
0.16831214725971222,
0.5260000228881836,
-0.30351394414901733,
0.3688017725944519,
-0.3871549367904663,
-0.08039481937885284,
-0.002948034554719925,
-0.11370427906513214,
-0.011665187776088715,
-0.17749011516571045,
-0.08031383901834488,
0.23407697677612305,
-0.1563337743282318,
0.0061115361750125885,
-0.09859126061201096,
0.2628975212574005,
-0.33494675159454346,
-0.0904695987701416,
-0.4606153964996338,
0.08475235849618912,
-0.20800410211086273,
0.33498015999794006,
-0.1050386130809784,
-0.1498463749885559,
-0.38530462980270386,
0.11261628568172455,
-0.4202086925506592,
0.3758965730667114,
-0.08597436547279358,
0.12252349406480789,
-0.07361668348312378,
-0.3276994228363037,
-0.05533306673169136,
0.6137095093727112,
0.5807358026504517,
0.050127021968364716,
-0.339173287153244,
0.007756324484944344,
-0.21130168437957764,
-0.023090612143278122,
-0.09389219433069229,
0.1553286910057068,
0.3382050096988678,
-0.04085518792271614,
-0.3091776371002197,
0.5142863988876343,
-0.11258576810359955,
0.016241900622844696,
-0.23662322759628296,
-0.25668126344680786,
-0.24029691517353058,
-0.04322398826479912,
-0.12301464378833771,
0.019926555454730988,
-0.12974555790424347,
0.025179672986268997,
0.0997498631477356,
0.012665901333093643,
-0.23290391266345978,
-0.24648520350456238,
-0.13393019139766693,
-0.1444869041442871,
0.1830044686794281,
0.325381338596344,
0.04744517803192139,
0.17619523406028748,
0.6140016317367554,
0.22167636454105377,
-0.050169438123703,
-0.24814742803573608,
0.06540393084287643,
0.15567710995674133,
-0.2556736171245575,
-0.21238070726394653,
0.1041426733136177,
0.17469249665737152,
0.09654393047094345,
0.27749454975128174,
0.1864701807498932,
-0.006257243454456329,
-0.1428341120481491,
-0.44870248436927795,
-0.5422468185424805,
0.1517500877380371,
-0.19254696369171143,
0.139015331864357,
-0.15169456601142883,
0.25962862372398376,
0.11874713003635406,
-0.26525020599365234,
-0.33702778816223145,
-0.09570170938968658,
-0.3234105408191681,
-0.005745332688093185,
0.3934488594532013,
0.05905260518193245,
0.19687798619270325,
0.04367218539118767,
0.1371064931154251,
-0.03670033812522888,
-0.28490155935287476,
-0.15982702374458313,
0.048878010362386703,
0.10002436488866806,
0.13717156648635864,
-0.4027866721153259,
-0.11658178269863129,
-0.28826189041137695,
-0.08812698721885681,
-0.16044296324253082,
0.050287675112485886,
0.2985342741012573,
0.031624287366867065,
0.2532195448875427,
-0.31334561109542847,
0.058008357882499695,
-0.21368655562400818,
0.1573793739080429,
-0.15283749997615814,
0.18410637974739075,
0.05986155942082405,
0.12613043189048767,
0.017675651237368584,
0.009883597493171692,
-0.5507248640060425,
-0.06257461756467819,
-0.09079894423484802,
0.18297600746154785,
0.11525705456733704,
-0.4182235598564148,
0.22805675864219666,
-0.14199532568454742,
0.17142021656036377,
0.1962636262178421,
-0.03331752121448517,
0.28323736786842346,
0.1811416745185852,
0.18628491461277008,
-0.23866647481918335,
0.20860879123210907,
0.21578039228916168,
0.09463874995708466,
-0.09388987720012665,
0.043079353868961334,
-0.04945475608110428,
-0.025663144886493683,
0.2692070007324219,
-0.10244966298341751,
0.3867942690849304,
-0.407221257686615,
-0.05248963087797165,
0.11946660280227661,
0.0713919848203659,
-0.05252351984381676,
0.1153041422367096,
0.3662639260292053,
0.1645929217338562,
0.7827572822570801,
-0.24703282117843628,
0.14657124876976013,
-0.18498528003692627,
0.32811039686203003,
-0.24878263473510742,
-0.33459898829460144,
-0.33597877621650696,
0.11348139494657516,
-0.294269323348999,
-0.12617382407188416,
-0.18528464436531067,
0.2995413839817047,
-0.10181409865617752,
0.1427348554134369,
-0.2357795238494873,
0.39215439558029175,
-0.14883625507354736,
-0.045394472777843475,
-0.5625837445259094,
-0.2266334891319275,
0.10585613548755646,
-0.1797054260969162,
0.025090577080845833,
0.015993177890777588,
-0.009149245917797089,
0.1309441775083542,
-0.2652379870414734,
-0.4018537402153015,
0.30937254428863525,
0.4047757387161255,
-0.01635640859603882,
-0.2793295383453369,
0.4106734097003937,
0.2905888259410858,
0.06595073640346527,
0.20533131062984467,
0.31929293274879456,
0.42760252952575684,
0.4022078812122345,
0.06650729477405548,
0.20000746846199036,
-0.1069406270980835,
-0.252861887216568,
-0.013881689868867397,
0.05252370610833168,
0.3014644384384155,
0.05845779553055763,
0.31253111362457275,
0.14970707893371582,
-0.006234298460185528,
0.14302094280719757,
0.045691512525081635,
0.3462027907371521,
0.09222297370433807,
-0.015020623803138733,
-0.14654754102230072,
-0.24552839994430542,
-0.18946388363838196,
-0.12856745719909668,
-0.5581468343734741,
0.137803316116333,
0.21281975507736206,
0.2150433212518692,
0.2549571990966797,
-0.0042081293649971485,
0.0490092858672142,
-0.0665699690580368,
0.1328430473804474,
0.5250790119171143,
-0.034011244773864746,
-0.27033528685569763,
-0.32096925377845764,
-0.5026280879974365,
0.16537754237651825,
-0.025284823030233383,
-0.4208661615848541,
-0.24853640794754028,
0.12115395069122314,
-0.1755242943763733,
-0.23555634915828705,
0.24101942777633667,
0.10140451043844223,
0.06959397345781326,
0.33923840522766113,
-0.2268993854522705,
-0.33274638652801514,
0.2696409821510315,
0.05312702804803848,
-0.17090126872062683,
-0.17286759614944458,
-0.0946459025144577,
-0.1486760824918747,
0.049000084400177,
-0.046038128435611725,
0.39041849970817566,
0.0071134306490421295,
0.2057304084300995,
0.19779545068740845,
0.19981226325035095,
0.48119646310806274,
0.06806675344705582,
-0.04043932259082794,
-0.3731051981449127,
-0.1117372065782547,
-0.201259583234787,
-0.04157081991434097,
0.31112024188041687,
0.5081032514572144,
-0.35838237404823303,
-0.00834612175822258,
-0.3815681040287018,
0.1278301328420639,
-0.16659367084503174,
-0.017483558505773544,
-0.2955942749977112,
0.3703538477420807,
-0.2835773229598999,
0.2372785210609436,
0.1641729474067688,
-0.04555077850818634,
-0.029032975435256958,
0.10304364562034607,
-0.3331668972969055,
0.0036256536841392517,
0.5232229232788086,
-0.2101980447769165,
-0.23654061555862427,
0.09007970243692398,
0.19331848621368408,
0.11350436508655548,
0.010346340015530586,
-0.33786895871162415,
0.17566752433776855,
0.1824222058057785,
-0.005351867526769638,
-0.2406204789876938,
-0.08169151842594147,
0.06521487236022949,
0.11355198919773102,
-0.06532733142375946,
-0.1427072435617447,
0.15939861536026,
-0.07285237312316895,
-0.013610092923045158,
-0.08653874695301056
] |
https://github.com/huggingface/datasets/issues/228 | Not able to access the XNLI dataset | Update: The dataset_info.json error is gone, but we have a new one instead:
```
ConnectionError: Couldn't reach https://www.nyu.edu/projects/bowman/xnli/XNLI-1.0.zip
```
I am not able to reproduce on my side unfortunately. Any idea @srush ? | When I try to access the XNLI dataset, I get the following error. The option of plain_text get selected automatically and then I get the following error.
```
FileNotFoundError: [Errno 2] No such file or directory: '/home/sasha/.cache/huggingface/datasets/xnli/plain_text/1.0.0/dataset_info.json'
Traceback:
File "/home/sasha/.local/lib/python3.7/site-packages/streamlit/ScriptRunner.py", line 322, in _run_script
exec(code, module.__dict__)
File "/home/sasha/nlp_viewer/run.py", line 86, in <module>
dts, fail = get(str(option.id), str(conf_option.name) if conf_option else None)
File "/home/sasha/.local/lib/python3.7/site-packages/streamlit/caching.py", line 591, in wrapped_func
return get_or_create_cached_value()
File "/home/sasha/.local/lib/python3.7/site-packages/streamlit/caching.py", line 575, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "/home/sasha/nlp_viewer/run.py", line 72, in get
builder_instance = builder_cls(name=conf)
File "/home/sasha/.local/lib/python3.7/site-packages/nlp/builder.py", line 610, in __init__
super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
File "/home/sasha/.local/lib/python3.7/site-packages/nlp/builder.py", line 152, in __init__
self.info = DatasetInfo.from_directory(self._cache_dir)
File "/home/sasha/.local/lib/python3.7/site-packages/nlp/info.py", line 157, in from_directory
with open(os.path.join(dataset_info_dir, DATASET_INFO_FILENAME), "r") as f:
```
Is it possible to see if the dataset_info.json is correctly placed? | 33 | Not able to access the XNLI dataset
When I try to access the XNLI dataset, I get the following error. The option of plain_text get selected automatically and then I get the following error.
```
FileNotFoundError: [Errno 2] No such file or directory: '/home/sasha/.cache/huggingface/datasets/xnli/plain_text/1.0.0/dataset_info.json'
Traceback:
File "/home/sasha/.local/lib/python3.7/site-packages/streamlit/ScriptRunner.py", line 322, in _run_script
exec(code, module.__dict__)
File "/home/sasha/nlp_viewer/run.py", line 86, in <module>
dts, fail = get(str(option.id), str(conf_option.name) if conf_option else None)
File "/home/sasha/.local/lib/python3.7/site-packages/streamlit/caching.py", line 591, in wrapped_func
return get_or_create_cached_value()
File "/home/sasha/.local/lib/python3.7/site-packages/streamlit/caching.py", line 575, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "/home/sasha/nlp_viewer/run.py", line 72, in get
builder_instance = builder_cls(name=conf)
File "/home/sasha/.local/lib/python3.7/site-packages/nlp/builder.py", line 610, in __init__
super(GeneratorBasedBuilder, self).__init__(*args, **kwargs)
File "/home/sasha/.local/lib/python3.7/site-packages/nlp/builder.py", line 152, in __init__
self.info = DatasetInfo.from_directory(self._cache_dir)
File "/home/sasha/.local/lib/python3.7/site-packages/nlp/info.py", line 157, in from_directory
with open(os.path.join(dataset_info_dir, DATASET_INFO_FILENAME), "r") as f:
```
Is it possible to see if the dataset_info.json is correctly placed?
Update: The dataset_info.json error is gone, but we have a new one instead:
```
ConnectionError: Couldn't reach https://www.nyu.edu/projects/bowman/xnli/XNLI-1.0.zip
```
I am not able to reproduce on my side unfortunately. Any idea @srush ? | [
-0.14086775481700897,
-0.18925927579402924,
-0.03353635221719742,
0.4693676233291626,
0.40544629096984863,
0.11200069636106491,
0.0560358390212059,
0.3544982373714447,
-0.10948947072029114,
0.29277628660202026,
-0.14041021466255188,
0.16212047636508942,
0.050227683037519455,
-0.02804570272564888,
0.0505417175590992,
-0.035324372351169586,
-0.16912740468978882,
0.15102046728134155,
0.13207335770130157,
0.005323193967342377,
-0.1707712858915329,
0.04558210074901581,
-0.26906371116638184,
0.2587417960166931,
-0.2867065668106079,
-0.08528339862823486,
0.09144599735736847,
0.385978102684021,
-0.3081699013710022,
-0.5349296927452087,
0.04508200287818909,
-0.14433543384075165,
0.24077367782592773,
0.19576644897460938,
-0.00011105804878752679,
0.04933280497789383,
0.2629132866859436,
-0.057348959147930145,
-0.5286899209022522,
-0.14541809260845184,
-0.35688546299934387,
-0.12314413487911224,
-0.014699289575219154,
-0.3132302463054657,
-0.12878161668777466,
-0.2209603637456894,
0.4022444486618042,
-0.3689228892326355,
0.2718049883842468,
0.3152756690979004,
0.2039078176021576,
0.200043186545372,
0.12182684242725372,
-0.054713837802410126,
0.04933726415038109,
0.13519378006458282,
-0.13144822418689728,
-0.013970265164971352,
0.23928554356098175,
0.1932620108127594,
0.163666769862175,
0.4578835368156433,
-0.17119547724723816,
-0.11164632439613342,
0.25520798563957214,
0.24384243786334991,
-0.030298985540866852,
-0.16049809753894806,
0.3209936320781708,
0.23313415050506592,
0.44375720620155334,
-0.4332897663116455,
-0.43349945545196533,
-0.11148610711097717,
-0.003818779718130827,
-0.2649720013141632,
0.24886474013328552,
0.10019466280937195,
-0.31770774722099304,
0.155459925532341,
-0.11993852257728577,
-0.3665495812892914,
-0.36813756823539734,
0.14540168642997742,
0.26279744505882263,
0.3802299201488495,
-0.059688739478588104,
0.06708592921495438,
-0.06119930371642113,
-0.19583773612976074,
0.05281279608607292,
-0.08949405699968338,
-0.16413229703903198,
0.3026697039604187,
-0.22698445618152618,
0.12764616310596466,
0.13528874516487122,
0.0571526363492012,
0.11984657496213913,
0.36280328035354614,
0.20324352383613586,
-0.18401435017585754,
-0.3755410611629486,
0.06257779151201248,
-0.26458409428596497,
0.42281052470207214,
0.2957008183002472,
0.14088574051856995,
0.38271552324295044,
-0.008944474160671234,
0.2218959629535675,
-0.36490076780319214,
-0.2945743203163147,
-0.16017693281173706,
-0.1143839955329895,
0.2509683668613434,
0.361581027507782,
-0.15953828394412994,
-0.2476477026939392,
-0.059575922787189484,
-0.12639595568180084,
0.01934887282550335,
0.20292797684669495,
0.5645593404769897,
0.05364592373371124,
0.18948376178741455,
0.035133086144924164,
0.32177770137786865,
0.05370347201824188,
-0.5332473516464233,
-0.17430856823921204,
0.21654152870178223,
-0.3087964951992035,
0.14569489657878876,
0.31052640080451965,
-0.33132442831993103,
0.30016258358955383,
-0.11575481295585632,
-0.3032849431037903,
0.003235872834920883,
0.12947216629981995,
-0.17491771280765533,
0.10203325003385544,
0.07796099036931992,
0.09318593144416809,
0.10305085778236389,
0.19042612612247467,
-0.07996873557567596,
0.06550314277410507,
-0.033277250826358795,
-0.04719238728284836,
-0.4852251708507538,
0.025507066398859024,
0.13068519532680511,
0.07165225595235825,
-0.00950583815574646,
-0.08786658197641373,
-0.05430305376648903,
0.19623029232025146,
-0.2217220813035965,
-0.11173585802316666,
0.11289885640144348,
-0.02556460350751877,
-0.27134567499160767,
0.21264217793941498,
0.5540783405303955,
-0.31361183524131775,
0.2092665135860443,
-0.19852608442306519,
-0.1348920613527298,
0.16316255927085876,
0.36284321546554565,
-0.11672917008399963,
0.07758839428424835,
-0.3848820626735687,
0.32663238048553467,
0.6447755694389343,
-0.5202512145042419,
-0.5076892971992493,
0.2816506624221802,
-0.22235892713069916,
-0.07156787812709808,
0.5067170262336731,
0.24071164429187775,
-0.06453116983175278,
-0.11318336427211761,
0.04700079187750816,
0.11700910329818726,
0.046721238642930984,
-0.0885004848241806,
-0.11148883402347565,
-0.2450890988111496,
0.3402371406555176,
0.11302033066749573,
-0.03068055585026741,
0.13209068775177002,
-0.029109418392181396,
0.1613195687532425,
0.3716825842857361,
-0.2910833954811096,
0.15118615329265594,
0.2840607166290283,
0.30056729912757874,
0.037209462374448776,
-0.14257806539535522,
-0.11960351467132568,
-0.29466134309768677,
0.239985853433609,
-0.09203024208545685,
-0.02011643350124359,
-0.3088809847831726,
0.00025306642055511475,
-0.11308939754962921,
-0.04091893509030342,
-0.38762614130973816,
-0.2783125638961792,
0.19049637019634247,
0.4527052342891693,
0.2273436188697815,
-0.019652485847473145,
-0.28994280099868774,
0.31739217042922974,
-0.48267489671707153,
0.002716904040426016,
-0.6354673504829407,
0.1280631422996521,
-0.09318798780441284,
-0.1490345150232315,
-0.16396376490592957,
0.16392642259597778,
0.02354978770017624,
-0.0028483045753091574,
-0.0927475169301033,
0.21247029304504395,
-0.23807653784751892,
0.08131223917007446,
0.26387083530426025,
0.10236234962940216,
0.03820406645536423,
-0.5709118843078613,
0.337582528591156,
0.47175970673561096,
0.22842131555080414,
0.0894114151597023,
-0.2693724036216736,
0.11830694228410721,
-0.08254821598529816,
0.09030060470104218,
0.043728336691856384,
0.017203303053975105,
0.4666252136230469,
0.01481044664978981,
0.06998178362846375,
-0.2127937376499176,
0.3003253936767578,
0.21648959815502167,
0.46217793226242065,
-0.08612507581710815,
-0.5364869832992554,
0.08613158762454987,
0.27960073947906494,
0.06051914766430855,
-0.0986442044377327,
-0.010936170816421509,
-0.35100409388542175,
-0.041634686291217804,
0.055063068866729736,
0.22897882759571075,
0.28139013051986694,
0.22780925035476685,
-0.06535443663597107,
0.08311180025339127,
0.09837311506271362,
-0.2621799409389496,
0.18072867393493652,
-0.2579272985458374,
0.1012299507856369,
0.2698713541030884,
0.19980129599571228,
0.03205327317118645,
-0.03564446419477463,
-0.503363311290741,
0.07217012345790863,
0.4454902112483978,
-0.27034491300582886,
-0.17282357811927795,
-0.13690446317195892,
-0.6854813694953918,
0.06065066531300545,
0.07638601958751678,
-0.11054135859012604,
-0.3432246744632721,
-0.022228389978408813,
0.18775984644889832,
0.21456152200698853,
-0.07199541479349136,
-0.09505295753479004,
0.07554149627685547,
0.06864705681800842,
-0.10940911620855331,
-0.4193321466445923,
-0.31495991349220276,
-0.20777544379234314,
0.04685632511973381,
0.2707950174808502,
-0.02280694618821144,
0.24694286286830902,
-0.2802792489528656,
0.0639284998178482,
-0.4144373834133148,
-0.025489531457424164,
0.023477166891098022,
0.029296692460775375,
-0.00047429464757442474,
-0.03406842052936554,
0.4818875789642334,
0.47751766443252563,
-0.06232339143753052,
0.34758925437927246,
0.04154754430055618,
-0.17423036694526672,
0.25780290365219116,
-0.21523930132389069,
-0.2344866394996643,
-0.04180878773331642,
-0.5249136090278625,
-0.35636964440345764,
-0.32827436923980713,
0.08275359869003296,
-0.13988131284713745,
0.08039908111095428,
0.31809094548225403,
-0.1464771181344986,
0.2062615305185318,
-0.03888361528515816,
0.19586728513240814,
-0.07545919716358185,
-0.2256135493516922,
0.338249146938324,
-0.16139663755893707,
-0.21599535644054413,
0.2360936403274536,
0.06490584462881088,
0.21008813381195068,
-0.041241735219955444,
-0.230601504445076,
0.1721256971359253,
-0.2255694419145584,
0.284463495016098,
-0.13050343096256256,
-0.15192070603370667,
0.3499826490879059,
-0.010504445061087608,
-0.0014594830572605133,
0.0043800510466098785,
0.011880099773406982,
0.11780878901481628,
0.010027075186371803,
0.5716212391853333,
0.20394250750541687,
0.4134450852870941,
0.14452002942562103,
0.3723565340042114,
0.4486643075942993,
0.02675965055823326,
0.3283902406692505,
-0.26213929057121277,
0.06690797954797745,
-0.06588190048933029,
-0.3156570494174957,
0.11945437639951706,
0.17475619912147522,
-0.17332451045513153,
-0.10797208547592163,
0.13868340849876404,
0.38894420862197876,
-0.33151975274086,
-0.1330215185880661,
-0.2874073088169098,
-0.08548343181610107,
-0.14637796580791473,
0.02025006152689457,
0.011119365692138672,
0.12911178171634674,
0.20937517285346985,
-0.34255450963974,
-0.34246626496315,
-0.11213284730911255,
0.4633778929710388,
0.0023367106914520264,
0.15231424570083618,
-0.27443578839302063,
-0.2841799557209015,
-0.5618223547935486,
0.48062586784362793,
0.11800559610128403,
0.21206623315811157,
-0.27588653564453125,
0.1250005066394806,
0.2663465142250061,
0.022575456649065018,
0.3283258080482483,
-0.30048346519470215,
0.2563645839691162,
0.080786794424057,
-0.09893057495355606,
-0.23588038980960846,
0.16963933408260345,
-0.15016157925128937,
0.1984996646642685,
0.3358711302280426,
0.1939544975757599,
-0.16084139049053192,
-0.11107289046049118,
-0.016944047063589096,
0.10838177800178528,
-0.17496930062770844,
-0.21759359538555145,
-0.017783578485250473,
-0.0037045739591121674,
-0.1634148359298706,
-0.3284824788570404,
-0.17156833410263062,
0.2472740262746811,
0.13296176493167877,
0.3358917534351349,
0.0468721017241478,
-0.07427318394184113,
0.17847326397895813,
0.22041524946689606,
0.33928728103637695,
-0.09613548964262009,
-0.1533091515302658,
0.1652645319700241,
0.24983644485473633,
0.07175852358341217,
0.49867525696754456,
0.28984448313713074,
-0.362265408039093,
-0.014100927859544754,
-0.2284083515405655,
0.12723596394062042,
0.29033613204956055,
-0.2587496042251587,
0.10405351221561432,
0.034366853535175323,
-0.00782705843448639,
0.061695270240306854,
-0.09590542316436768,
0.25131756067276,
0.03154429420828819,
-0.12594270706176758,
-0.3986915349960327,
0.3272976577281952,
0.10116890072822571,
0.003972761332988739,
0.4540022313594818,
-0.146318718791008,
-0.22761720418930054,
0.023734332993626595,
0.057231105864048004,
0.9369794726371765,
0.1299275904893875,
0.2292374074459076,
0.39308419823646545,
0.16831214725971222,
0.5260000228881836,
-0.30351394414901733,
0.3688017725944519,
-0.3871549367904663,
-0.08039481937885284,
-0.002948034554719925,
-0.11370427906513214,
-0.011665187776088715,
-0.17749011516571045,
-0.08031383901834488,
0.23407697677612305,
-0.1563337743282318,
0.0061115361750125885,
-0.09859126061201096,
0.2628975212574005,
-0.33494675159454346,
-0.0904695987701416,
-0.4606153964996338,
0.08475235849618912,
-0.20800410211086273,
0.33498015999794006,
-0.1050386130809784,
-0.1498463749885559,
-0.38530462980270386,
0.11261628568172455,
-0.4202086925506592,
0.3758965730667114,
-0.08597436547279358,
0.12252349406480789,
-0.07361668348312378,
-0.3276994228363037,
-0.05533306673169136,
0.6137095093727112,
0.5807358026504517,
0.050127021968364716,
-0.339173287153244,
0.007756324484944344,
-0.21130168437957764,
-0.023090612143278122,
-0.09389219433069229,
0.1553286910057068,
0.3382050096988678,
-0.04085518792271614,
-0.3091776371002197,
0.5142863988876343,
-0.11258576810359955,
0.016241900622844696,
-0.23662322759628296,
-0.25668126344680786,
-0.24029691517353058,
-0.04322398826479912,
-0.12301464378833771,
0.019926555454730988,
-0.12974555790424347,
0.025179672986268997,
0.0997498631477356,
0.012665901333093643,
-0.23290391266345978,
-0.24648520350456238,
-0.13393019139766693,
-0.1444869041442871,
0.1830044686794281,
0.325381338596344,
0.04744517803192139,
0.17619523406028748,
0.6140016317367554,
0.22167636454105377,
-0.050169438123703,
-0.24814742803573608,
0.06540393084287643,
0.15567710995674133,
-0.2556736171245575,
-0.21238070726394653,
0.1041426733136177,
0.17469249665737152,
0.09654393047094345,
0.27749454975128174,
0.1864701807498932,
-0.006257243454456329,
-0.1428341120481491,
-0.44870248436927795,
-0.5422468185424805,
0.1517500877380371,
-0.19254696369171143,
0.139015331864357,
-0.15169456601142883,
0.25962862372398376,
0.11874713003635406,
-0.26525020599365234,
-0.33702778816223145,
-0.09570170938968658,
-0.3234105408191681,
-0.005745332688093185,
0.3934488594532013,
0.05905260518193245,
0.19687798619270325,
0.04367218539118767,
0.1371064931154251,
-0.03670033812522888,
-0.28490155935287476,
-0.15982702374458313,
0.048878010362386703,
0.10002436488866806,
0.13717156648635864,
-0.4027866721153259,
-0.11658178269863129,
-0.28826189041137695,
-0.08812698721885681,
-0.16044296324253082,
0.050287675112485886,
0.2985342741012573,
0.031624287366867065,
0.2532195448875427,
-0.31334561109542847,
0.058008357882499695,
-0.21368655562400818,
0.1573793739080429,
-0.15283749997615814,
0.18410637974739075,
0.05986155942082405,
0.12613043189048767,
0.017675651237368584,
0.009883597493171692,
-0.5507248640060425,
-0.06257461756467819,
-0.09079894423484802,
0.18297600746154785,
0.11525705456733704,
-0.4182235598564148,
0.22805675864219666,
-0.14199532568454742,
0.17142021656036377,
0.1962636262178421,
-0.03331752121448517,
0.28323736786842346,
0.1811416745185852,
0.18628491461277008,
-0.23866647481918335,
0.20860879123210907,
0.21578039228916168,
0.09463874995708466,
-0.09388987720012665,
0.043079353868961334,
-0.04945475608110428,
-0.025663144886493683,
0.2692070007324219,
-0.10244966298341751,
0.3867942690849304,
-0.407221257686615,
-0.05248963087797165,
0.11946660280227661,
0.0713919848203659,
-0.05252351984381676,
0.1153041422367096,
0.3662639260292053,
0.1645929217338562,
0.7827572822570801,
-0.24703282117843628,
0.14657124876976013,
-0.18498528003692627,
0.32811039686203003,
-0.24878263473510742,
-0.33459898829460144,
-0.33597877621650696,
0.11348139494657516,
-0.294269323348999,
-0.12617382407188416,
-0.18528464436531067,
0.2995413839817047,
-0.10181409865617752,
0.1427348554134369,
-0.2357795238494873,
0.39215439558029175,
-0.14883625507354736,
-0.045394472777843475,
-0.5625837445259094,
-0.2266334891319275,
0.10585613548755646,
-0.1797054260969162,
0.025090577080845833,
0.015993177890777588,
-0.009149245917797089,
0.1309441775083542,
-0.2652379870414734,
-0.4018537402153015,
0.30937254428863525,
0.4047757387161255,
-0.01635640859603882,
-0.2793295383453369,
0.4106734097003937,
0.2905888259410858,
0.06595073640346527,
0.20533131062984467,
0.31929293274879456,
0.42760252952575684,
0.4022078812122345,
0.06650729477405548,
0.20000746846199036,
-0.1069406270980835,
-0.252861887216568,
-0.013881689868867397,
0.05252370610833168,
0.3014644384384155,
0.05845779553055763,
0.31253111362457275,
0.14970707893371582,
-0.006234298460185528,
0.14302094280719757,
0.045691512525081635,
0.3462027907371521,
0.09222297370433807,
-0.015020623803138733,
-0.14654754102230072,
-0.24552839994430542,
-0.18946388363838196,
-0.12856745719909668,
-0.5581468343734741,
0.137803316116333,
0.21281975507736206,
0.2150433212518692,
0.2549571990966797,
-0.0042081293649971485,
0.0490092858672142,
-0.0665699690580368,
0.1328430473804474,
0.5250790119171143,
-0.034011244773864746,
-0.27033528685569763,
-0.32096925377845764,
-0.5026280879974365,
0.16537754237651825,
-0.025284823030233383,
-0.4208661615848541,
-0.24853640794754028,
0.12115395069122314,
-0.1755242943763733,
-0.23555634915828705,
0.24101942777633667,
0.10140451043844223,
0.06959397345781326,
0.33923840522766113,
-0.2268993854522705,
-0.33274638652801514,
0.2696409821510315,
0.05312702804803848,
-0.17090126872062683,
-0.17286759614944458,
-0.0946459025144577,
-0.1486760824918747,
0.049000084400177,
-0.046038128435611725,
0.39041849970817566,
0.0071134306490421295,
0.2057304084300995,
0.19779545068740845,
0.19981226325035095,
0.48119646310806274,
0.06806675344705582,
-0.04043932259082794,
-0.3731051981449127,
-0.1117372065782547,
-0.201259583234787,
-0.04157081991434097,
0.31112024188041687,
0.5081032514572144,
-0.35838237404823303,
-0.00834612175822258,
-0.3815681040287018,
0.1278301328420639,
-0.16659367084503174,
-0.017483558505773544,
-0.2955942749977112,
0.3703538477420807,
-0.2835773229598999,
0.2372785210609436,
0.1641729474067688,
-0.04555077850818634,
-0.029032975435256958,
0.10304364562034607,
-0.3331668972969055,
0.0036256536841392517,
0.5232229232788086,
-0.2101980447769165,
-0.23654061555862427,
0.09007970243692398,
0.19331848621368408,
0.11350436508655548,
0.010346340015530586,
-0.33786895871162415,
0.17566752433776855,
0.1824222058057785,
-0.005351867526769638,
-0.2406204789876938,
-0.08169151842594147,
0.06521487236022949,
0.11355198919773102,
-0.06532733142375946,
-0.1427072435617447,
0.15939861536026,
-0.07285237312316895,
-0.013610092923045158,
-0.08653874695301056
] |
https://github.com/huggingface/datasets/issues/225 | [ROUGE] Different scores with `files2rouge` | @Colanim unfortunately there are different implementations of the ROUGE metric floating around online which yield different results, and we had to chose one for the package :) We ended up including the one from the google-research repository, which does minimal post-processing before computing the P/R/F scores. If I recall correctly, files2rouge relies on the Perl, script, which among other things normalizes all numbers to a special token: in the case you presented, this should account for a good chunk of the difference.
We may end up adding in more versions of the metric, but probably not for a while (@lhoestq correct me if I'm wrong). However, feel free to take a stab at adding it in yourself and submitting a PR if you're interested! | It seems that the ROUGE score of `nlp` is lower than the one of `files2rouge`.
Here is a self-contained notebook to reproduce both scores : https://colab.research.google.com/drive/14EyAXValB6UzKY9x4rs_T3pyL7alpw_F?usp=sharing
---
`nlp` : (Only mid F-scores)
>rouge1 0.33508031962733364
rouge2 0.14574333776191592
rougeL 0.2321187823256159
`files2rouge` :
>Running ROUGE...
===========================
1 ROUGE-1 Average_R: 0.48873 (95%-conf.int. 0.41192 - 0.56339)
1 ROUGE-1 Average_P: 0.29010 (95%-conf.int. 0.23605 - 0.34445)
1 ROUGE-1 Average_F: 0.34761 (95%-conf.int. 0.29479 - 0.39871)
===========================
1 ROUGE-2 Average_R: 0.20280 (95%-conf.int. 0.14969 - 0.26244)
1 ROUGE-2 Average_P: 0.12772 (95%-conf.int. 0.08603 - 0.17752)
1 ROUGE-2 Average_F: 0.14798 (95%-conf.int. 0.10517 - 0.19240)
===========================
1 ROUGE-L Average_R: 0.32960 (95%-conf.int. 0.26501 - 0.39676)
1 ROUGE-L Average_P: 0.19880 (95%-conf.int. 0.15257 - 0.25136)
1 ROUGE-L Average_F: 0.23619 (95%-conf.int. 0.19073 - 0.28663)
---
When using longer predictions/gold, the difference is bigger.
**How can I reproduce same score as `files2rouge` ?**
@lhoestq
| 124 | [ROUGE] Different scores with `files2rouge`
It seems that the ROUGE score of `nlp` is lower than the one of `files2rouge`.
Here is a self-contained notebook to reproduce both scores : https://colab.research.google.com/drive/14EyAXValB6UzKY9x4rs_T3pyL7alpw_F?usp=sharing
---
`nlp` : (Only mid F-scores)
>rouge1 0.33508031962733364
rouge2 0.14574333776191592
rougeL 0.2321187823256159
`files2rouge` :
>Running ROUGE...
===========================
1 ROUGE-1 Average_R: 0.48873 (95%-conf.int. 0.41192 - 0.56339)
1 ROUGE-1 Average_P: 0.29010 (95%-conf.int. 0.23605 - 0.34445)
1 ROUGE-1 Average_F: 0.34761 (95%-conf.int. 0.29479 - 0.39871)
===========================
1 ROUGE-2 Average_R: 0.20280 (95%-conf.int. 0.14969 - 0.26244)
1 ROUGE-2 Average_P: 0.12772 (95%-conf.int. 0.08603 - 0.17752)
1 ROUGE-2 Average_F: 0.14798 (95%-conf.int. 0.10517 - 0.19240)
===========================
1 ROUGE-L Average_R: 0.32960 (95%-conf.int. 0.26501 - 0.39676)
1 ROUGE-L Average_P: 0.19880 (95%-conf.int. 0.15257 - 0.25136)
1 ROUGE-L Average_F: 0.23619 (95%-conf.int. 0.19073 - 0.28663)
---
When using longer predictions/gold, the difference is bigger.
**How can I reproduce same score as `files2rouge` ?**
@lhoestq
@Colanim unfortunately there are different implementations of the ROUGE metric floating around online which yield different results, and we had to chose one for the package :) We ended up including the one from the google-research repository, which does minimal post-processing before computing the P/R/F scores. If I recall correctly, files2rouge relies on the Perl, script, which among other things normalizes all numbers to a special token: in the case you presented, this should account for a good chunk of the difference.
We may end up adding in more versions of the metric, but probably not for a while (@lhoestq correct me if I'm wrong). However, feel free to take a stab at adding it in yourself and submitting a PR if you're interested! | [
-0.14572583138942719,
-0.16974309086799622,
-0.19722984731197357,
0.33974581956863403,
-0.11949780583381653,
-0.4242599308490753,
-0.42039957642555237,
0.14767369627952576,
-0.27004387974739075,
0.1725059598684311,
-0.08286689221858978,
0.18038733303546906,
0.12033025175333023,
0.008093440905213356,
-0.1003900095820427,
-0.09797464311122894,
0.16565504670143127,
0.03882874548435211,
0.09248104691505432,
-0.3720676898956299,
0.06655941158533096,
0.5696010589599609,
-0.03133176267147064,
0.21043379604816437,
0.05402202531695366,
0.27023857831954956,
0.28511372208595276,
0.303530216217041,
-0.14858005940914154,
0.0284368135035038,
0.1280016005039215,
0.030641496181488037,
-0.023697983473539352,
0.22214823961257935,
-0.00010886792006203905,
-0.23471881449222565,
0.10260951519012451,
-0.0031665880233049393,
-0.27572330832481384,
-0.3026089668273926,
-0.03455706313252449,
0.06436362862586975,
-0.12292811274528503,
-0.07039346545934677,
0.08584658056497574,
-0.04489199444651604,
0.04877268895506859,
0.20954275131225586,
0.4293980598449707,
0.1475730538368225,
0.22625429928302765,
-0.3024376928806305,
-0.18534928560256958,
0.02408231608569622,
0.5763338804244995,
0.162676140666008,
-0.11448317766189575,
0.4472637176513672,
0.005699746310710907,
-0.3526385426521301,
-0.2401905059814453,
-0.008563347160816193,
0.34304046630859375,
-0.1725597232580185,
0.13255946338176727,
0.1931544691324234,
0.1485854983329773,
-0.04594039171934128,
-0.07953567802906036,
0.24472862482070923,
-0.2702822685241699,
0.03221149742603302,
-0.2271713763475418,
-0.2778383195400238,
-0.07631592452526093,
-0.19976051151752472,
0.11689166724681854,
-0.08144580572843552,
0.16428597271442413,
0.012247798964381218,
0.044132329523563385,
0.29542672634124756,
0.04963913559913635,
0.007163926959037781,
-0.054056379944086075,
-0.10784599184989929,
0.05084610730409622,
0.09846548736095428,
0.2952800393104553,
-0.050543591380119324,
-0.5163150429725647,
0.010772500187158585,
-0.25936752557754517,
0.07496092468500137,
-0.3022812008857727,
-0.0378556028008461,
0.3144969046115875,
0.46597281098365784,
-0.2008710503578186,
0.4996280074119568,
0.2691970467567444,
-0.09341771900653839,
-0.13220730423927307,
-0.039446838200092316,
-0.13782362639904022,
0.1081322580575943,
-0.028945989906787872,
0.0206930972635746,
0.08811835199594498,
0.22468088567256927,
-0.13358217477798462,
-0.012007620185613632,
0.398222953081131,
-0.5637688636779785,
-0.47780001163482666,
0.10259157419204712,
-0.26103460788726807,
-0.43239784240722656,
-0.6891934871673584,
-0.06736098229885101,
-0.25543126463890076,
-0.11924239993095398,
0.09890887141227722,
0.22720080614089966,
-0.17488381266593933,
0.2922985851764679,
0.046788059175014496,
0.18339137732982635,
-0.2895030975341797,
0.019662119448184967,
-0.18399915099143982,
0.06357961893081665,
-0.31439295411109924,
0.13452430069446564,
0.17056696116924286,
0.11274664103984833,
0.3180573284626007,
0.2560534179210663,
0.2735128402709961,
0.038644611835479736,
0.32986605167388916,
-0.2839505672454834,
-0.02263478934764862,
-0.21111683547496796,
-0.21139174699783325,
0.19745352864265442,
0.02712881565093994,
0.09184882044792175,
-0.008701875805854797,
-0.07489419728517532,
-0.1808411180973053,
0.14423710107803345,
0.46661829948425293,
0.20657992362976074,
0.14965061843395233,
-0.11055408418178558,
0.0406925305724144,
0.11693815886974335,
-0.24016299843788147,
-0.5936909317970276,
0.20406103134155273,
-0.13655225932598114,
-0.12701165676116943,
-0.058177340775728226,
0.1098194494843483,
-0.034582242369651794,
0.09312139451503754,
-0.1174314022064209,
0.37319886684417725,
0.06358213722705841,
0.260312557220459,
0.4534836411476135,
-0.04083121940493584,
0.01186341792345047,
-0.1628565490245819,
-0.0708857849240303,
0.4665316641330719,
-0.4385315179824829,
-0.22229626774787903,
0.335500031709671,
-0.16507038474082947,
-0.06518592685461044,
0.23904675245285034,
0.03927594795823097,
-0.3886534869670868,
-0.16600817441940308,
0.17745047807693481,
0.19752506911754608,
0.07779840379953384,
-0.04839663580060005,
-0.2970067858695984,
0.13495871424674988,
0.3166259527206421,
0.06547732651233673,
-0.23182909190654755,
-0.2993502914905548,
-0.11140517145395279,
-0.06439067423343658,
0.5141966938972473,
0.13280677795410156,
-0.275137722492218,
0.10499193519353867,
-0.2721596658229828,
0.2936928868293762,
-0.05169496312737465,
0.11857389658689499,
0.4230363368988037,
-0.023375453427433968,
-0.7951254844665527,
-0.16027599573135376,
0.43703287839889526,
-0.05248703435063362,
-0.21229076385498047,
-0.47140875458717346,
0.2405332624912262,
-0.23946526646614075,
0.22328299283981323,
0.05504894256591797,
0.18732163310050964,
0.030354168266057968,
0.024071160703897476,
0.09660737216472626,
-0.23642627894878387,
-0.15861870348453522,
-0.171535462141037,
0.20367738604545593,
-0.22109805047512054,
-0.007432923652231693,
-0.010540369898080826,
0.35960885882377625,
0.3116414546966553,
0.0875801295042038,
0.03730465844273567,
0.2634179890155792,
0.050155721604824066,
0.09805036336183548,
0.36725062131881714,
0.1448056846857071,
-0.0007639974355697632,
0.1889616847038269,
-0.12266027182340622,
0.6879810690879822,
0.016462821513414383,
0.03225090354681015,
-0.34003961086273193,
0.4259152412414551,
-0.21703888475894928,
0.20069143176078796,
0.4093106985092163,
-0.07173750549554825,
-0.05009784549474716,
0.057779956609010696,
-0.006800313945859671,
-0.017153114080429077,
0.7467253804206848,
0.19526948034763336,
0.25025543570518494,
0.0029565561562776566,
-0.3220251798629761,
0.2596178650856018,
0.39914068579673767,
-0.01534279715269804,
-0.020853690803050995,
-0.11995413154363632,
0.19371441006660461,
-0.09338893741369247,
-0.036720119416713715,
0.25073885917663574,
0.3810693025588989,
0.1951337456703186,
0.1557074934244156,
-0.1311994045972824,
-0.3382362127304077,
-0.34380224347114563,
0.03513304144144058,
-0.18210403621196747,
0.08744684606790543,
0.49638593196868896,
0.10160768032073975,
0.21628642082214355,
-0.30207768082618713,
-0.5422853827476501,
-0.25364869832992554,
-0.22231443226337433,
0.06132640317082405,
0.16164511442184448,
-0.14391352236270905,
-0.3678348660469055,
-0.15366065502166748,
-0.0919036790728569,
-0.2918894290924072,
-0.27327612042427063,
0.2300974279642105,
0.02087545208632946,
-0.07249964773654938,
-0.2189381718635559,
0.023232351988554,
0.14874771237373352,
-0.37039464712142944,
0.1783803105354309,
-0.017374809831380844,
-0.028043050318956375,
-0.27953746914863586,
0.22281771898269653,
-0.05679839476943016,
-0.019304953515529633,
-0.03147608041763306,
-0.27918708324432373,
-0.4508357048034668,
0.16968810558319092,
-0.37626737356185913,
-0.01095978170633316,
0.06464432179927826,
-0.003237323835492134,
0.05967245623469353,
-0.25061744451522827,
-0.07057446241378784,
0.14640189707279205,
0.09220773726701736,
-0.17413043975830078,
-0.35074305534362793,
-0.0896506980061531,
0.036784909665584564,
0.01421420183032751,
-0.1914067417383194,
-0.27752071619033813,
0.07937438786029816,
-0.1433200091123581,
0.6197948455810547,
0.32701388001441956,
0.005700647830963135,
0.38587823510169983,
-0.23695623874664307,
0.000010869931429624557,
0.17174218595027924,
0.5837680697441101,
-0.260583758354187,
-0.04442833364009857,
0.19860900938510895,
-0.2997123599052429,
-0.4421890377998352,
-0.27306118607521057,
0.18830060958862305,
0.032321833074092865,
-0.008429158478975296,
-0.17861664295196533,
0.031004413962364197,
-0.13094371557235718,
-0.04899752140045166,
-0.2130448818206787,
-0.05581830441951752,
0.33782726526260376,
-0.183659628033638,
-0.24219226837158203,
-0.0644741952419281,
0.21673376858234406,
0.029940471053123474,
0.2865469455718994,
0.4599357843399048,
-0.4840269982814789,
0.16461151838302612,
-0.1400936245918274,
0.12755995988845825,
0.04408315196633339,
0.5117965340614319,
0.15338179469108582,
0.13323162496089935,
0.0008747875690460205,
-0.140676349401474,
0.09818058460950851,
0.4896935224533081,
0.0561884343624115,
-0.1449028104543686,
0.3308485150337219,
0.2087346315383911,
0.24980410933494568,
-0.11164974421262741,
-0.04191494360566139,
-0.07632121443748474,
-0.007912162691354752,
0.10350785404443741,
0.07728642970323563,
-0.056000880897045135,
0.017136510461568832,
0.07414562255144119,
-0.0036135949194431305,
-0.15379220247268677,
0.21246254444122314,
0.07286837697029114,
0.3913026452064514,
-0.11124502867460251,
-0.25944724678993225,
-0.005773602519184351,
-0.46897685527801514,
-0.005584090948104858,
0.03185397386550903,
-0.021543029695749283,
-0.1584111452102661,
-0.1728702187538147,
0.05907111242413521,
-0.3485899269580841,
0.2623424530029297,
0.1606942117214203,
0.237129345536232,
0.16907595098018646,
-0.13415347039699554,
-0.527251660823822,
-0.29414844512939453,
-0.33222055435180664,
0.18113459646701813,
0.5960761308670044,
0.11514407396316528,
-0.1382215917110443,
-0.17282359302043915,
0.10999147593975067,
-0.05184993892908096,
-0.1482471525669098,
0.10066854953765869,
-0.33127114176750183,
0.20241940021514893,
0.15132905542850494,
-0.28061482310295105,
0.04583710432052612,
0.3753640353679657,
-0.24380964040756226,
0.12480257451534271,
0.06615810841321945,
-0.14999346435070038,
0.2123296856880188,
0.13495226204395294,
0.33930855989456177,
-0.10402217507362366,
-0.24397096037864685,
-0.2931971848011017,
0.30135485529899597,
-0.3514435291290283,
0.3701419234275818,
0.12124496698379517,
0.00033593177795410156,
0.30029112100601196,
-0.09358710795640945,
0.1068413183093071,
0.310128390789032,
-0.18164101243019104,
0.16640663146972656,
-0.62215256690979,
0.11270256340503693,
-0.44617897272109985,
-0.21021011471748352,
0.3684732913970947,
-0.07535825669765472,
0.28507208824157715,
-0.14102831482887268,
0.20845285058021545,
0.23064102232456207,
-0.47709721326828003,
-0.07949866354465485,
-0.1620941460132599,
-0.19412629306316376,
0.2774370312690735,
-0.02041802555322647,
0.7596274018287659,
0.43547338247299194,
0.5634003281593323,
0.23021665215492249,
-0.14735136926174164,
0.38939765095710754,
-0.5955857038497925,
0.19128000736236572,
-0.34151554107666016,
-0.3702341318130493,
0.09574268013238907,
0.10443364083766937,
-0.06511310487985611,
0.21454939246177673,
0.2076512575149536,
0.2953760325908661,
0.39312267303466797,
-0.09911110997200012,
-0.10828112810850143,
0.1765526831150055,
0.12343019992113113,
0.1875409334897995,
-0.2870905101299286,
0.19913649559020996,
0.3464438319206238,
0.004576265811920166,
-0.0596935898065567,
0.09596756845712662,
-0.7420680522918701,
0.022515621036291122,
0.042491763830184937,
0.10044703632593155,
-0.09559957683086395,
0.354741632938385,
0.11958011984825134,
-0.22432823479175568,
-0.04871872812509537,
0.36723804473876953,
0.15987469255924225,
-0.015913594514131546,
0.0071961600333452225,
0.2100241780281067,
-0.319408655166626,
0.32633155584335327,
0.2423098087310791,
-0.038803353905677795,
0.03140794485807419,
-0.22021448612213135,
-0.07871328294277191,
-0.07076092809438705,
0.1557239443063736,
-0.16848164796829224,
-0.5484755039215088,
0.18215563893318176,
-0.3347039818763733,
0.0072077191434800625,
-0.02991640754044056,
0.10069026052951813,
-0.09960544109344482,
-0.053430601954460144,
0.16725941002368927,
-0.05686233937740326,
-0.0626533105969429,
-0.034885309636592865,
0.09307202696800232,
-0.3328574299812317,
-0.050463657826185226,
0.47442513704299927,
-0.13673871755599976,
-0.04600987210869789,
0.06487397104501724,
-0.3305658996105194,
0.03526654839515686,
-0.24317634105682373,
0.03892463445663452,
-0.08075781911611557,
-0.1971539556980133,
-0.1043003723025322,
-0.007579997181892395,
-0.2291496992111206,
0.2527271509170532,
0.25843626260757446,
0.24956655502319336,
0.21303710341453552,
0.03285263106226921,
-0.3630848526954651,
-0.0983249843120575,
0.08107912540435791,
0.1679997444152832,
-0.03473358973860741,
-0.01961846649646759,
-0.15958933532238007,
0.258840411901474,
0.23063121736049652,
-0.3546353578567505,
-0.15017224848270416,
-0.0899754986166954,
0.1268172264099121,
-0.2210240364074707,
-0.318739652633667,
0.022487057372927666,
0.14685370028018951,
0.14308542013168335,
-0.008150100708007812,
-0.0578296035528183,
-0.2477172315120697,
-0.20516575872898102,
0.08322592824697495,
-0.04834647476673126,
-0.09744042903184891,
-0.13200180232524872,
0.21839945018291473,
0.1043623834848404,
-0.14063549041748047,
-0.2313220202922821,
-0.1339263916015625,
0.35739845037460327,
0.12174545228481293,
-0.08553960919380188,
0.18251588940620422,
-0.14262956380844116,
0.10866612195968628,
0.018823951482772827,
-0.025385133922100067,
0.07357671111822128,
-0.026512324810028076,
0.10945744812488556,
-0.20184177160263062,
-0.256411075592041,
-0.07424051314592361,
-0.2803899049758911,
0.14717307686805725,
0.10414621233940125,
-0.05297241359949112,
0.008782658725976944,
-0.18328996002674103,
0.28442201018333435,
0.3649749159812927,
0.11780483275651932,
-0.09963637590408325,
-0.013917604461312294,
0.22528256475925446,
-0.22220158576965332,
0.0942537784576416,
0.44961869716644287,
0.04398707300424576,
0.06563568115234375,
-0.0282834991812706,
0.15857870876789093,
-0.2076987326145172,
-0.018284782767295837,
-0.05924885720014572,
-0.27442294359207153,
-0.018169913440942764,
0.17280712723731995,
-0.19119548797607422,
0.25152334570884705,
0.07363158464431763,
0.15538103878498077,
-0.379148006439209,
0.18718214333057404,
0.35077017545700073,
-0.002579048275947571,
0.19415223598480225,
-0.2856437563896179,
0.1495128720998764,
-0.023675307631492615,
0.09032075107097626,
-0.27035996317863464,
0.34511223435401917,
0.08539954572916031,
-0.021806128323078156,
0.08363569527864456,
0.16912168264389038,
-0.10833388566970825,
-0.3376137912273407,
-0.004882989451289177,
-0.08809246122837067,
-0.07047490030527115,
-0.5443993210792542,
-0.46642395853996277,
-0.22646990418434143,
-0.39458316564559937,
0.07104998826980591,
-0.16874101758003235,
0.3817863464355469,
0.029519028961658478,
0.24772126972675323,
-0.09672440588474274,
-0.1826775223016739,
-0.4617653489112854,
0.010246146470308304,
0.42088082432746887,
-0.046757329255342484,
0.17743176221847534,
0.2167157530784607,
0.4143129587173462,
0.357180118560791,
0.1616106480360031,
0.2387455254793167,
0.1888275295495987,
-0.23361486196517944,
-0.2279312014579773,
0.03246592730283737,
0.08932031691074371,
-0.196157768368721,
0.174216628074646,
0.2599771022796631,
0.04339060187339783,
0.300217866897583,
0.1322065144777298,
-0.2410816103219986,
0.07742060720920563,
0.2649873197078705,
-0.003574879840016365,
-0.2141295224428177,
0.2947368621826172,
-0.039161406457424164,
0.018682368099689484,
-0.3314744830131531,
0.3797481954097748,
-0.5077438354492188,
-0.0865897685289383,
-0.5439394116401672,
0.1514042168855667,
0.1786459982395172,
-0.12435406446456909,
0.10393211990594864,
0.2688947916030884,
0.41731390357017517,
-0.12723574042320251,
0.33877435326576233,
-0.2841368615627289,
-0.46132051944732666,
-0.2653639018535614,
-0.04585053771734238,
0.03950834274291992,
0.2705295979976654,
-0.4309382140636444,
0.28873521089553833,
-0.2974151372909546,
0.051450081169605255,
0.27455997467041016,
0.42833051085472107,
0.24691951274871826,
0.06649713963270187,
-0.3382290005683899,
0.15592142939567566,
0.1984032839536667,
-0.08824511617422104,
-0.11956936866044998,
0.13063228130340576,
-0.173906609416008,
0.01981661096215248,
0.10971545428037643,
0.08555638045072556,
-0.34653666615486145,
-0.28865429759025574,
0.42075595259666443,
0.33852246403694153,
0.27506646513938904,
0.26808544993400574,
-0.37258148193359375,
-0.3853949308395386,
0.031003732234239578,
-0.12375204265117645,
-0.0627097487449646,
0.06228227913379669,
-0.06584210693836212,
0.3876439929008484,
0.02506394125521183,
0.07477408647537231,
0.0738610103726387,
0.5041285157203674,
0.055955030024051666,
0.0017199371941387653,
-0.22703059017658234,
-0.026206472888588905,
0.09364604204893112,
0.06342314183712006,
-0.6129959225654602,
0.40744316577911377,
0.000516790896654129,
0.1871436983346939,
-0.23370791971683502,
-0.2538992166519165,
0.37504637241363525,
-0.35842281579971313,
0.2720423638820648,
-0.09970115125179291,
0.3427540063858032,
0.2217618227005005,
0.2968045473098755,
0.046791307628154755,
-0.10589566081762314,
0.07175398617982864,
0.29574841260910034,
0.16224446892738342,
0.23034556210041046,
-0.23341989517211914,
-0.08380372077226639,
-0.0016770139336585999,
0.29279476404190063,
0.06492666900157928,
-0.2919710874557495,
0.4134341776371002,
-0.18410724401474
] |
https://github.com/huggingface/datasets/issues/225 | [ROUGE] Different scores with `files2rouge` | Thank you for your kind answer.
As a side question : Isn't it better to have a package that normalize more ?
I understand to idea of having a package that does minimal post-processing for transparency.
But it means that people using different architecture (with different tokenizers for example) will have difference in ROUGE scores even if their predictions are actually similar.
The goal of `nlp` is to have _one package to rule them all_, right ?
I will look into it but I'm not sure I have the required skill for this ^^ | It seems that the ROUGE score of `nlp` is lower than the one of `files2rouge`.
Here is a self-contained notebook to reproduce both scores : https://colab.research.google.com/drive/14EyAXValB6UzKY9x4rs_T3pyL7alpw_F?usp=sharing
---
`nlp` : (Only mid F-scores)
>rouge1 0.33508031962733364
rouge2 0.14574333776191592
rougeL 0.2321187823256159
`files2rouge` :
>Running ROUGE...
===========================
1 ROUGE-1 Average_R: 0.48873 (95%-conf.int. 0.41192 - 0.56339)
1 ROUGE-1 Average_P: 0.29010 (95%-conf.int. 0.23605 - 0.34445)
1 ROUGE-1 Average_F: 0.34761 (95%-conf.int. 0.29479 - 0.39871)
===========================
1 ROUGE-2 Average_R: 0.20280 (95%-conf.int. 0.14969 - 0.26244)
1 ROUGE-2 Average_P: 0.12772 (95%-conf.int. 0.08603 - 0.17752)
1 ROUGE-2 Average_F: 0.14798 (95%-conf.int. 0.10517 - 0.19240)
===========================
1 ROUGE-L Average_R: 0.32960 (95%-conf.int. 0.26501 - 0.39676)
1 ROUGE-L Average_P: 0.19880 (95%-conf.int. 0.15257 - 0.25136)
1 ROUGE-L Average_F: 0.23619 (95%-conf.int. 0.19073 - 0.28663)
---
When using longer predictions/gold, the difference is bigger.
**How can I reproduce same score as `files2rouge` ?**
@lhoestq
| 94 | [ROUGE] Different scores with `files2rouge`
It seems that the ROUGE score of `nlp` is lower than the one of `files2rouge`.
Here is a self-contained notebook to reproduce both scores : https://colab.research.google.com/drive/14EyAXValB6UzKY9x4rs_T3pyL7alpw_F?usp=sharing
---
`nlp` : (Only mid F-scores)
>rouge1 0.33508031962733364
rouge2 0.14574333776191592
rougeL 0.2321187823256159
`files2rouge` :
>Running ROUGE...
===========================
1 ROUGE-1 Average_R: 0.48873 (95%-conf.int. 0.41192 - 0.56339)
1 ROUGE-1 Average_P: 0.29010 (95%-conf.int. 0.23605 - 0.34445)
1 ROUGE-1 Average_F: 0.34761 (95%-conf.int. 0.29479 - 0.39871)
===========================
1 ROUGE-2 Average_R: 0.20280 (95%-conf.int. 0.14969 - 0.26244)
1 ROUGE-2 Average_P: 0.12772 (95%-conf.int. 0.08603 - 0.17752)
1 ROUGE-2 Average_F: 0.14798 (95%-conf.int. 0.10517 - 0.19240)
===========================
1 ROUGE-L Average_R: 0.32960 (95%-conf.int. 0.26501 - 0.39676)
1 ROUGE-L Average_P: 0.19880 (95%-conf.int. 0.15257 - 0.25136)
1 ROUGE-L Average_F: 0.23619 (95%-conf.int. 0.19073 - 0.28663)
---
When using longer predictions/gold, the difference is bigger.
**How can I reproduce same score as `files2rouge` ?**
@lhoestq
Thank you for your kind answer.
As a side question : Isn't it better to have a package that normalize more ?
I understand to idea of having a package that does minimal post-processing for transparency.
But it means that people using different architecture (with different tokenizers for example) will have difference in ROUGE scores even if their predictions are actually similar.
The goal of `nlp` is to have _one package to rule them all_, right ?
I will look into it but I'm not sure I have the required skill for this ^^ | [
-0.14572583138942719,
-0.16974309086799622,
-0.19722984731197357,
0.33974581956863403,
-0.11949780583381653,
-0.4242599308490753,
-0.42039957642555237,
0.14767369627952576,
-0.27004387974739075,
0.1725059598684311,
-0.08286689221858978,
0.18038733303546906,
0.12033025175333023,
0.008093440905213356,
-0.1003900095820427,
-0.09797464311122894,
0.16565504670143127,
0.03882874548435211,
0.09248104691505432,
-0.3720676898956299,
0.06655941158533096,
0.5696010589599609,
-0.03133176267147064,
0.21043379604816437,
0.05402202531695366,
0.27023857831954956,
0.28511372208595276,
0.303530216217041,
-0.14858005940914154,
0.0284368135035038,
0.1280016005039215,
0.030641496181488037,
-0.023697983473539352,
0.22214823961257935,
-0.00010886792006203905,
-0.23471881449222565,
0.10260951519012451,
-0.0031665880233049393,
-0.27572330832481384,
-0.3026089668273926,
-0.03455706313252449,
0.06436362862586975,
-0.12292811274528503,
-0.07039346545934677,
0.08584658056497574,
-0.04489199444651604,
0.04877268895506859,
0.20954275131225586,
0.4293980598449707,
0.1475730538368225,
0.22625429928302765,
-0.3024376928806305,
-0.18534928560256958,
0.02408231608569622,
0.5763338804244995,
0.162676140666008,
-0.11448317766189575,
0.4472637176513672,
0.005699746310710907,
-0.3526385426521301,
-0.2401905059814453,
-0.008563347160816193,
0.34304046630859375,
-0.1725597232580185,
0.13255946338176727,
0.1931544691324234,
0.1485854983329773,
-0.04594039171934128,
-0.07953567802906036,
0.24472862482070923,
-0.2702822685241699,
0.03221149742603302,
-0.2271713763475418,
-0.2778383195400238,
-0.07631592452526093,
-0.19976051151752472,
0.11689166724681854,
-0.08144580572843552,
0.16428597271442413,
0.012247798964381218,
0.044132329523563385,
0.29542672634124756,
0.04963913559913635,
0.007163926959037781,
-0.054056379944086075,
-0.10784599184989929,
0.05084610730409622,
0.09846548736095428,
0.2952800393104553,
-0.050543591380119324,
-0.5163150429725647,
0.010772500187158585,
-0.25936752557754517,
0.07496092468500137,
-0.3022812008857727,
-0.0378556028008461,
0.3144969046115875,
0.46597281098365784,
-0.2008710503578186,
0.4996280074119568,
0.2691970467567444,
-0.09341771900653839,
-0.13220730423927307,
-0.039446838200092316,
-0.13782362639904022,
0.1081322580575943,
-0.028945989906787872,
0.0206930972635746,
0.08811835199594498,
0.22468088567256927,
-0.13358217477798462,
-0.012007620185613632,
0.398222953081131,
-0.5637688636779785,
-0.47780001163482666,
0.10259157419204712,
-0.26103460788726807,
-0.43239784240722656,
-0.6891934871673584,
-0.06736098229885101,
-0.25543126463890076,
-0.11924239993095398,
0.09890887141227722,
0.22720080614089966,
-0.17488381266593933,
0.2922985851764679,
0.046788059175014496,
0.18339137732982635,
-0.2895030975341797,
0.019662119448184967,
-0.18399915099143982,
0.06357961893081665,
-0.31439295411109924,
0.13452430069446564,
0.17056696116924286,
0.11274664103984833,
0.3180573284626007,
0.2560534179210663,
0.2735128402709961,
0.038644611835479736,
0.32986605167388916,
-0.2839505672454834,
-0.02263478934764862,
-0.21111683547496796,
-0.21139174699783325,
0.19745352864265442,
0.02712881565093994,
0.09184882044792175,
-0.008701875805854797,
-0.07489419728517532,
-0.1808411180973053,
0.14423710107803345,
0.46661829948425293,
0.20657992362976074,
0.14965061843395233,
-0.11055408418178558,
0.0406925305724144,
0.11693815886974335,
-0.24016299843788147,
-0.5936909317970276,
0.20406103134155273,
-0.13655225932598114,
-0.12701165676116943,
-0.058177340775728226,
0.1098194494843483,
-0.034582242369651794,
0.09312139451503754,
-0.1174314022064209,
0.37319886684417725,
0.06358213722705841,
0.260312557220459,
0.4534836411476135,
-0.04083121940493584,
0.01186341792345047,
-0.1628565490245819,
-0.0708857849240303,
0.4665316641330719,
-0.4385315179824829,
-0.22229626774787903,
0.335500031709671,
-0.16507038474082947,
-0.06518592685461044,
0.23904675245285034,
0.03927594795823097,
-0.3886534869670868,
-0.16600817441940308,
0.17745047807693481,
0.19752506911754608,
0.07779840379953384,
-0.04839663580060005,
-0.2970067858695984,
0.13495871424674988,
0.3166259527206421,
0.06547732651233673,
-0.23182909190654755,
-0.2993502914905548,
-0.11140517145395279,
-0.06439067423343658,
0.5141966938972473,
0.13280677795410156,
-0.275137722492218,
0.10499193519353867,
-0.2721596658229828,
0.2936928868293762,
-0.05169496312737465,
0.11857389658689499,
0.4230363368988037,
-0.023375453427433968,
-0.7951254844665527,
-0.16027599573135376,
0.43703287839889526,
-0.05248703435063362,
-0.21229076385498047,
-0.47140875458717346,
0.2405332624912262,
-0.23946526646614075,
0.22328299283981323,
0.05504894256591797,
0.18732163310050964,
0.030354168266057968,
0.024071160703897476,
0.09660737216472626,
-0.23642627894878387,
-0.15861870348453522,
-0.171535462141037,
0.20367738604545593,
-0.22109805047512054,
-0.007432923652231693,
-0.010540369898080826,
0.35960885882377625,
0.3116414546966553,
0.0875801295042038,
0.03730465844273567,
0.2634179890155792,
0.050155721604824066,
0.09805036336183548,
0.36725062131881714,
0.1448056846857071,
-0.0007639974355697632,
0.1889616847038269,
-0.12266027182340622,
0.6879810690879822,
0.016462821513414383,
0.03225090354681015,
-0.34003961086273193,
0.4259152412414551,
-0.21703888475894928,
0.20069143176078796,
0.4093106985092163,
-0.07173750549554825,
-0.05009784549474716,
0.057779956609010696,
-0.006800313945859671,
-0.017153114080429077,
0.7467253804206848,
0.19526948034763336,
0.25025543570518494,
0.0029565561562776566,
-0.3220251798629761,
0.2596178650856018,
0.39914068579673767,
-0.01534279715269804,
-0.020853690803050995,
-0.11995413154363632,
0.19371441006660461,
-0.09338893741369247,
-0.036720119416713715,
0.25073885917663574,
0.3810693025588989,
0.1951337456703186,
0.1557074934244156,
-0.1311994045972824,
-0.3382362127304077,
-0.34380224347114563,
0.03513304144144058,
-0.18210403621196747,
0.08744684606790543,
0.49638593196868896,
0.10160768032073975,
0.21628642082214355,
-0.30207768082618713,
-0.5422853827476501,
-0.25364869832992554,
-0.22231443226337433,
0.06132640317082405,
0.16164511442184448,
-0.14391352236270905,
-0.3678348660469055,
-0.15366065502166748,
-0.0919036790728569,
-0.2918894290924072,
-0.27327612042427063,
0.2300974279642105,
0.02087545208632946,
-0.07249964773654938,
-0.2189381718635559,
0.023232351988554,
0.14874771237373352,
-0.37039464712142944,
0.1783803105354309,
-0.017374809831380844,
-0.028043050318956375,
-0.27953746914863586,
0.22281771898269653,
-0.05679839476943016,
-0.019304953515529633,
-0.03147608041763306,
-0.27918708324432373,
-0.4508357048034668,
0.16968810558319092,
-0.37626737356185913,
-0.01095978170633316,
0.06464432179927826,
-0.003237323835492134,
0.05967245623469353,
-0.25061744451522827,
-0.07057446241378784,
0.14640189707279205,
0.09220773726701736,
-0.17413043975830078,
-0.35074305534362793,
-0.0896506980061531,
0.036784909665584564,
0.01421420183032751,
-0.1914067417383194,
-0.27752071619033813,
0.07937438786029816,
-0.1433200091123581,
0.6197948455810547,
0.32701388001441956,
0.005700647830963135,
0.38587823510169983,
-0.23695623874664307,
0.000010869931429624557,
0.17174218595027924,
0.5837680697441101,
-0.260583758354187,
-0.04442833364009857,
0.19860900938510895,
-0.2997123599052429,
-0.4421890377998352,
-0.27306118607521057,
0.18830060958862305,
0.032321833074092865,
-0.008429158478975296,
-0.17861664295196533,
0.031004413962364197,
-0.13094371557235718,
-0.04899752140045166,
-0.2130448818206787,
-0.05581830441951752,
0.33782726526260376,
-0.183659628033638,
-0.24219226837158203,
-0.0644741952419281,
0.21673376858234406,
0.029940471053123474,
0.2865469455718994,
0.4599357843399048,
-0.4840269982814789,
0.16461151838302612,
-0.1400936245918274,
0.12755995988845825,
0.04408315196633339,
0.5117965340614319,
0.15338179469108582,
0.13323162496089935,
0.0008747875690460205,
-0.140676349401474,
0.09818058460950851,
0.4896935224533081,
0.0561884343624115,
-0.1449028104543686,
0.3308485150337219,
0.2087346315383911,
0.24980410933494568,
-0.11164974421262741,
-0.04191494360566139,
-0.07632121443748474,
-0.007912162691354752,
0.10350785404443741,
0.07728642970323563,
-0.056000880897045135,
0.017136510461568832,
0.07414562255144119,
-0.0036135949194431305,
-0.15379220247268677,
0.21246254444122314,
0.07286837697029114,
0.3913026452064514,
-0.11124502867460251,
-0.25944724678993225,
-0.005773602519184351,
-0.46897685527801514,
-0.005584090948104858,
0.03185397386550903,
-0.021543029695749283,
-0.1584111452102661,
-0.1728702187538147,
0.05907111242413521,
-0.3485899269580841,
0.2623424530029297,
0.1606942117214203,
0.237129345536232,
0.16907595098018646,
-0.13415347039699554,
-0.527251660823822,
-0.29414844512939453,
-0.33222055435180664,
0.18113459646701813,
0.5960761308670044,
0.11514407396316528,
-0.1382215917110443,
-0.17282359302043915,
0.10999147593975067,
-0.05184993892908096,
-0.1482471525669098,
0.10066854953765869,
-0.33127114176750183,
0.20241940021514893,
0.15132905542850494,
-0.28061482310295105,
0.04583710432052612,
0.3753640353679657,
-0.24380964040756226,
0.12480257451534271,
0.06615810841321945,
-0.14999346435070038,
0.2123296856880188,
0.13495226204395294,
0.33930855989456177,
-0.10402217507362366,
-0.24397096037864685,
-0.2931971848011017,
0.30135485529899597,
-0.3514435291290283,
0.3701419234275818,
0.12124496698379517,
0.00033593177795410156,
0.30029112100601196,
-0.09358710795640945,
0.1068413183093071,
0.310128390789032,
-0.18164101243019104,
0.16640663146972656,
-0.62215256690979,
0.11270256340503693,
-0.44617897272109985,
-0.21021011471748352,
0.3684732913970947,
-0.07535825669765472,
0.28507208824157715,
-0.14102831482887268,
0.20845285058021545,
0.23064102232456207,
-0.47709721326828003,
-0.07949866354465485,
-0.1620941460132599,
-0.19412629306316376,
0.2774370312690735,
-0.02041802555322647,
0.7596274018287659,
0.43547338247299194,
0.5634003281593323,
0.23021665215492249,
-0.14735136926174164,
0.38939765095710754,
-0.5955857038497925,
0.19128000736236572,
-0.34151554107666016,
-0.3702341318130493,
0.09574268013238907,
0.10443364083766937,
-0.06511310487985611,
0.21454939246177673,
0.2076512575149536,
0.2953760325908661,
0.39312267303466797,
-0.09911110997200012,
-0.10828112810850143,
0.1765526831150055,
0.12343019992113113,
0.1875409334897995,
-0.2870905101299286,
0.19913649559020996,
0.3464438319206238,
0.004576265811920166,
-0.0596935898065567,
0.09596756845712662,
-0.7420680522918701,
0.022515621036291122,
0.042491763830184937,
0.10044703632593155,
-0.09559957683086395,
0.354741632938385,
0.11958011984825134,
-0.22432823479175568,
-0.04871872812509537,
0.36723804473876953,
0.15987469255924225,
-0.015913594514131546,
0.0071961600333452225,
0.2100241780281067,
-0.319408655166626,
0.32633155584335327,
0.2423098087310791,
-0.038803353905677795,
0.03140794485807419,
-0.22021448612213135,
-0.07871328294277191,
-0.07076092809438705,
0.1557239443063736,
-0.16848164796829224,
-0.5484755039215088,
0.18215563893318176,
-0.3347039818763733,
0.0072077191434800625,
-0.02991640754044056,
0.10069026052951813,
-0.09960544109344482,
-0.053430601954460144,
0.16725941002368927,
-0.05686233937740326,
-0.0626533105969429,
-0.034885309636592865,
0.09307202696800232,
-0.3328574299812317,
-0.050463657826185226,
0.47442513704299927,
-0.13673871755599976,
-0.04600987210869789,
0.06487397104501724,
-0.3305658996105194,
0.03526654839515686,
-0.24317634105682373,
0.03892463445663452,
-0.08075781911611557,
-0.1971539556980133,
-0.1043003723025322,
-0.007579997181892395,
-0.2291496992111206,
0.2527271509170532,
0.25843626260757446,
0.24956655502319336,
0.21303710341453552,
0.03285263106226921,
-0.3630848526954651,
-0.0983249843120575,
0.08107912540435791,
0.1679997444152832,
-0.03473358973860741,
-0.01961846649646759,
-0.15958933532238007,
0.258840411901474,
0.23063121736049652,
-0.3546353578567505,
-0.15017224848270416,
-0.0899754986166954,
0.1268172264099121,
-0.2210240364074707,
-0.318739652633667,
0.022487057372927666,
0.14685370028018951,
0.14308542013168335,
-0.008150100708007812,
-0.0578296035528183,
-0.2477172315120697,
-0.20516575872898102,
0.08322592824697495,
-0.04834647476673126,
-0.09744042903184891,
-0.13200180232524872,
0.21839945018291473,
0.1043623834848404,
-0.14063549041748047,
-0.2313220202922821,
-0.1339263916015625,
0.35739845037460327,
0.12174545228481293,
-0.08553960919380188,
0.18251588940620422,
-0.14262956380844116,
0.10866612195968628,
0.018823951482772827,
-0.025385133922100067,
0.07357671111822128,
-0.026512324810028076,
0.10945744812488556,
-0.20184177160263062,
-0.256411075592041,
-0.07424051314592361,
-0.2803899049758911,
0.14717307686805725,
0.10414621233940125,
-0.05297241359949112,
0.008782658725976944,
-0.18328996002674103,
0.28442201018333435,
0.3649749159812927,
0.11780483275651932,
-0.09963637590408325,
-0.013917604461312294,
0.22528256475925446,
-0.22220158576965332,
0.0942537784576416,
0.44961869716644287,
0.04398707300424576,
0.06563568115234375,
-0.0282834991812706,
0.15857870876789093,
-0.2076987326145172,
-0.018284782767295837,
-0.05924885720014572,
-0.27442294359207153,
-0.018169913440942764,
0.17280712723731995,
-0.19119548797607422,
0.25152334570884705,
0.07363158464431763,
0.15538103878498077,
-0.379148006439209,
0.18718214333057404,
0.35077017545700073,
-0.002579048275947571,
0.19415223598480225,
-0.2856437563896179,
0.1495128720998764,
-0.023675307631492615,
0.09032075107097626,
-0.27035996317863464,
0.34511223435401917,
0.08539954572916031,
-0.021806128323078156,
0.08363569527864456,
0.16912168264389038,
-0.10833388566970825,
-0.3376137912273407,
-0.004882989451289177,
-0.08809246122837067,
-0.07047490030527115,
-0.5443993210792542,
-0.46642395853996277,
-0.22646990418434143,
-0.39458316564559937,
0.07104998826980591,
-0.16874101758003235,
0.3817863464355469,
0.029519028961658478,
0.24772126972675323,
-0.09672440588474274,
-0.1826775223016739,
-0.4617653489112854,
0.010246146470308304,
0.42088082432746887,
-0.046757329255342484,
0.17743176221847534,
0.2167157530784607,
0.4143129587173462,
0.357180118560791,
0.1616106480360031,
0.2387455254793167,
0.1888275295495987,
-0.23361486196517944,
-0.2279312014579773,
0.03246592730283737,
0.08932031691074371,
-0.196157768368721,
0.174216628074646,
0.2599771022796631,
0.04339060187339783,
0.300217866897583,
0.1322065144777298,
-0.2410816103219986,
0.07742060720920563,
0.2649873197078705,
-0.003574879840016365,
-0.2141295224428177,
0.2947368621826172,
-0.039161406457424164,
0.018682368099689484,
-0.3314744830131531,
0.3797481954097748,
-0.5077438354492188,
-0.0865897685289383,
-0.5439394116401672,
0.1514042168855667,
0.1786459982395172,
-0.12435406446456909,
0.10393211990594864,
0.2688947916030884,
0.41731390357017517,
-0.12723574042320251,
0.33877435326576233,
-0.2841368615627289,
-0.46132051944732666,
-0.2653639018535614,
-0.04585053771734238,
0.03950834274291992,
0.2705295979976654,
-0.4309382140636444,
0.28873521089553833,
-0.2974151372909546,
0.051450081169605255,
0.27455997467041016,
0.42833051085472107,
0.24691951274871826,
0.06649713963270187,
-0.3382290005683899,
0.15592142939567566,
0.1984032839536667,
-0.08824511617422104,
-0.11956936866044998,
0.13063228130340576,
-0.173906609416008,
0.01981661096215248,
0.10971545428037643,
0.08555638045072556,
-0.34653666615486145,
-0.28865429759025574,
0.42075595259666443,
0.33852246403694153,
0.27506646513938904,
0.26808544993400574,
-0.37258148193359375,
-0.3853949308395386,
0.031003732234239578,
-0.12375204265117645,
-0.0627097487449646,
0.06228227913379669,
-0.06584210693836212,
0.3876439929008484,
0.02506394125521183,
0.07477408647537231,
0.0738610103726387,
0.5041285157203674,
0.055955030024051666,
0.0017199371941387653,
-0.22703059017658234,
-0.026206472888588905,
0.09364604204893112,
0.06342314183712006,
-0.6129959225654602,
0.40744316577911377,
0.000516790896654129,
0.1871436983346939,
-0.23370791971683502,
-0.2538992166519165,
0.37504637241363525,
-0.35842281579971313,
0.2720423638820648,
-0.09970115125179291,
0.3427540063858032,
0.2217618227005005,
0.2968045473098755,
0.046791307628154755,
-0.10589566081762314,
0.07175398617982864,
0.29574841260910034,
0.16224446892738342,
0.23034556210041046,
-0.23341989517211914,
-0.08380372077226639,
-0.0016770139336585999,
0.29279476404190063,
0.06492666900157928,
-0.2919710874557495,
0.4134341776371002,
-0.18410724401474
] |
https://github.com/huggingface/datasets/issues/225 | [ROUGE] Different scores with `files2rouge` | You're right, there's a pretty interesting trade-off here between robustness and sensitivity :) The flip side of your argument is that we also still want the metric to be sensitive to model mistakes. How we think about number normalization for example has evolved a fair bit since the Perl script was written: at the time, ROUGE was used mostly to evaluate short-medium text summarization systems, where there were only a few numbers in the input and it was assumed that the most popular methods in use at the time would get those right. However, as your example showcases, that assumption does not hold any more, and we do want to be able to penalize a model that generates a wrong numerical value.
Also, we think that abstracting away tokenization differences is the role of the model/tokenizer: if you use the 🤗Tokenizers library for example, it will handle that for you ;)
Finally, there is a lot of active research on developing model-powered metrics that are both more sensitive and more robust than ROUGE. Check out for example BERTscore, which is implemented in this library! | It seems that the ROUGE score of `nlp` is lower than the one of `files2rouge`.
Here is a self-contained notebook to reproduce both scores : https://colab.research.google.com/drive/14EyAXValB6UzKY9x4rs_T3pyL7alpw_F?usp=sharing
---
`nlp` : (Only mid F-scores)
>rouge1 0.33508031962733364
rouge2 0.14574333776191592
rougeL 0.2321187823256159
`files2rouge` :
>Running ROUGE...
===========================
1 ROUGE-1 Average_R: 0.48873 (95%-conf.int. 0.41192 - 0.56339)
1 ROUGE-1 Average_P: 0.29010 (95%-conf.int. 0.23605 - 0.34445)
1 ROUGE-1 Average_F: 0.34761 (95%-conf.int. 0.29479 - 0.39871)
===========================
1 ROUGE-2 Average_R: 0.20280 (95%-conf.int. 0.14969 - 0.26244)
1 ROUGE-2 Average_P: 0.12772 (95%-conf.int. 0.08603 - 0.17752)
1 ROUGE-2 Average_F: 0.14798 (95%-conf.int. 0.10517 - 0.19240)
===========================
1 ROUGE-L Average_R: 0.32960 (95%-conf.int. 0.26501 - 0.39676)
1 ROUGE-L Average_P: 0.19880 (95%-conf.int. 0.15257 - 0.25136)
1 ROUGE-L Average_F: 0.23619 (95%-conf.int. 0.19073 - 0.28663)
---
When using longer predictions/gold, the difference is bigger.
**How can I reproduce same score as `files2rouge` ?**
@lhoestq
| 184 | [ROUGE] Different scores with `files2rouge`
It seems that the ROUGE score of `nlp` is lower than the one of `files2rouge`.
Here is a self-contained notebook to reproduce both scores : https://colab.research.google.com/drive/14EyAXValB6UzKY9x4rs_T3pyL7alpw_F?usp=sharing
---
`nlp` : (Only mid F-scores)
>rouge1 0.33508031962733364
rouge2 0.14574333776191592
rougeL 0.2321187823256159
`files2rouge` :
>Running ROUGE...
===========================
1 ROUGE-1 Average_R: 0.48873 (95%-conf.int. 0.41192 - 0.56339)
1 ROUGE-1 Average_P: 0.29010 (95%-conf.int. 0.23605 - 0.34445)
1 ROUGE-1 Average_F: 0.34761 (95%-conf.int. 0.29479 - 0.39871)
===========================
1 ROUGE-2 Average_R: 0.20280 (95%-conf.int. 0.14969 - 0.26244)
1 ROUGE-2 Average_P: 0.12772 (95%-conf.int. 0.08603 - 0.17752)
1 ROUGE-2 Average_F: 0.14798 (95%-conf.int. 0.10517 - 0.19240)
===========================
1 ROUGE-L Average_R: 0.32960 (95%-conf.int. 0.26501 - 0.39676)
1 ROUGE-L Average_P: 0.19880 (95%-conf.int. 0.15257 - 0.25136)
1 ROUGE-L Average_F: 0.23619 (95%-conf.int. 0.19073 - 0.28663)
---
When using longer predictions/gold, the difference is bigger.
**How can I reproduce same score as `files2rouge` ?**
@lhoestq
You're right, there's a pretty interesting trade-off here between robustness and sensitivity :) The flip side of your argument is that we also still want the metric to be sensitive to model mistakes. How we think about number normalization for example has evolved a fair bit since the Perl script was written: at the time, ROUGE was used mostly to evaluate short-medium text summarization systems, where there were only a few numbers in the input and it was assumed that the most popular methods in use at the time would get those right. However, as your example showcases, that assumption does not hold any more, and we do want to be able to penalize a model that generates a wrong numerical value.
Also, we think that abstracting away tokenization differences is the role of the model/tokenizer: if you use the 🤗Tokenizers library for example, it will handle that for you ;)
Finally, there is a lot of active research on developing model-powered metrics that are both more sensitive and more robust than ROUGE. Check out for example BERTscore, which is implemented in this library! | [
-0.14572583138942719,
-0.16974309086799622,
-0.19722984731197357,
0.33974581956863403,
-0.11949780583381653,
-0.4242599308490753,
-0.42039957642555237,
0.14767369627952576,
-0.27004387974739075,
0.1725059598684311,
-0.08286689221858978,
0.18038733303546906,
0.12033025175333023,
0.008093440905213356,
-0.1003900095820427,
-0.09797464311122894,
0.16565504670143127,
0.03882874548435211,
0.09248104691505432,
-0.3720676898956299,
0.06655941158533096,
0.5696010589599609,
-0.03133176267147064,
0.21043379604816437,
0.05402202531695366,
0.27023857831954956,
0.28511372208595276,
0.303530216217041,
-0.14858005940914154,
0.0284368135035038,
0.1280016005039215,
0.030641496181488037,
-0.023697983473539352,
0.22214823961257935,
-0.00010886792006203905,
-0.23471881449222565,
0.10260951519012451,
-0.0031665880233049393,
-0.27572330832481384,
-0.3026089668273926,
-0.03455706313252449,
0.06436362862586975,
-0.12292811274528503,
-0.07039346545934677,
0.08584658056497574,
-0.04489199444651604,
0.04877268895506859,
0.20954275131225586,
0.4293980598449707,
0.1475730538368225,
0.22625429928302765,
-0.3024376928806305,
-0.18534928560256958,
0.02408231608569622,
0.5763338804244995,
0.162676140666008,
-0.11448317766189575,
0.4472637176513672,
0.005699746310710907,
-0.3526385426521301,
-0.2401905059814453,
-0.008563347160816193,
0.34304046630859375,
-0.1725597232580185,
0.13255946338176727,
0.1931544691324234,
0.1485854983329773,
-0.04594039171934128,
-0.07953567802906036,
0.24472862482070923,
-0.2702822685241699,
0.03221149742603302,
-0.2271713763475418,
-0.2778383195400238,
-0.07631592452526093,
-0.19976051151752472,
0.11689166724681854,
-0.08144580572843552,
0.16428597271442413,
0.012247798964381218,
0.044132329523563385,
0.29542672634124756,
0.04963913559913635,
0.007163926959037781,
-0.054056379944086075,
-0.10784599184989929,
0.05084610730409622,
0.09846548736095428,
0.2952800393104553,
-0.050543591380119324,
-0.5163150429725647,
0.010772500187158585,
-0.25936752557754517,
0.07496092468500137,
-0.3022812008857727,
-0.0378556028008461,
0.3144969046115875,
0.46597281098365784,
-0.2008710503578186,
0.4996280074119568,
0.2691970467567444,
-0.09341771900653839,
-0.13220730423927307,
-0.039446838200092316,
-0.13782362639904022,
0.1081322580575943,
-0.028945989906787872,
0.0206930972635746,
0.08811835199594498,
0.22468088567256927,
-0.13358217477798462,
-0.012007620185613632,
0.398222953081131,
-0.5637688636779785,
-0.47780001163482666,
0.10259157419204712,
-0.26103460788726807,
-0.43239784240722656,
-0.6891934871673584,
-0.06736098229885101,
-0.25543126463890076,
-0.11924239993095398,
0.09890887141227722,
0.22720080614089966,
-0.17488381266593933,
0.2922985851764679,
0.046788059175014496,
0.18339137732982635,
-0.2895030975341797,
0.019662119448184967,
-0.18399915099143982,
0.06357961893081665,
-0.31439295411109924,
0.13452430069446564,
0.17056696116924286,
0.11274664103984833,
0.3180573284626007,
0.2560534179210663,
0.2735128402709961,
0.038644611835479736,
0.32986605167388916,
-0.2839505672454834,
-0.02263478934764862,
-0.21111683547496796,
-0.21139174699783325,
0.19745352864265442,
0.02712881565093994,
0.09184882044792175,
-0.008701875805854797,
-0.07489419728517532,
-0.1808411180973053,
0.14423710107803345,
0.46661829948425293,
0.20657992362976074,
0.14965061843395233,
-0.11055408418178558,
0.0406925305724144,
0.11693815886974335,
-0.24016299843788147,
-0.5936909317970276,
0.20406103134155273,
-0.13655225932598114,
-0.12701165676116943,
-0.058177340775728226,
0.1098194494843483,
-0.034582242369651794,
0.09312139451503754,
-0.1174314022064209,
0.37319886684417725,
0.06358213722705841,
0.260312557220459,
0.4534836411476135,
-0.04083121940493584,
0.01186341792345047,
-0.1628565490245819,
-0.0708857849240303,
0.4665316641330719,
-0.4385315179824829,
-0.22229626774787903,
0.335500031709671,
-0.16507038474082947,
-0.06518592685461044,
0.23904675245285034,
0.03927594795823097,
-0.3886534869670868,
-0.16600817441940308,
0.17745047807693481,
0.19752506911754608,
0.07779840379953384,
-0.04839663580060005,
-0.2970067858695984,
0.13495871424674988,
0.3166259527206421,
0.06547732651233673,
-0.23182909190654755,
-0.2993502914905548,
-0.11140517145395279,
-0.06439067423343658,
0.5141966938972473,
0.13280677795410156,
-0.275137722492218,
0.10499193519353867,
-0.2721596658229828,
0.2936928868293762,
-0.05169496312737465,
0.11857389658689499,
0.4230363368988037,
-0.023375453427433968,
-0.7951254844665527,
-0.16027599573135376,
0.43703287839889526,
-0.05248703435063362,
-0.21229076385498047,
-0.47140875458717346,
0.2405332624912262,
-0.23946526646614075,
0.22328299283981323,
0.05504894256591797,
0.18732163310050964,
0.030354168266057968,
0.024071160703897476,
0.09660737216472626,
-0.23642627894878387,
-0.15861870348453522,
-0.171535462141037,
0.20367738604545593,
-0.22109805047512054,
-0.007432923652231693,
-0.010540369898080826,
0.35960885882377625,
0.3116414546966553,
0.0875801295042038,
0.03730465844273567,
0.2634179890155792,
0.050155721604824066,
0.09805036336183548,
0.36725062131881714,
0.1448056846857071,
-0.0007639974355697632,
0.1889616847038269,
-0.12266027182340622,
0.6879810690879822,
0.016462821513414383,
0.03225090354681015,
-0.34003961086273193,
0.4259152412414551,
-0.21703888475894928,
0.20069143176078796,
0.4093106985092163,
-0.07173750549554825,
-0.05009784549474716,
0.057779956609010696,
-0.006800313945859671,
-0.017153114080429077,
0.7467253804206848,
0.19526948034763336,
0.25025543570518494,
0.0029565561562776566,
-0.3220251798629761,
0.2596178650856018,
0.39914068579673767,
-0.01534279715269804,
-0.020853690803050995,
-0.11995413154363632,
0.19371441006660461,
-0.09338893741369247,
-0.036720119416713715,
0.25073885917663574,
0.3810693025588989,
0.1951337456703186,
0.1557074934244156,
-0.1311994045972824,
-0.3382362127304077,
-0.34380224347114563,
0.03513304144144058,
-0.18210403621196747,
0.08744684606790543,
0.49638593196868896,
0.10160768032073975,
0.21628642082214355,
-0.30207768082618713,
-0.5422853827476501,
-0.25364869832992554,
-0.22231443226337433,
0.06132640317082405,
0.16164511442184448,
-0.14391352236270905,
-0.3678348660469055,
-0.15366065502166748,
-0.0919036790728569,
-0.2918894290924072,
-0.27327612042427063,
0.2300974279642105,
0.02087545208632946,
-0.07249964773654938,
-0.2189381718635559,
0.023232351988554,
0.14874771237373352,
-0.37039464712142944,
0.1783803105354309,
-0.017374809831380844,
-0.028043050318956375,
-0.27953746914863586,
0.22281771898269653,
-0.05679839476943016,
-0.019304953515529633,
-0.03147608041763306,
-0.27918708324432373,
-0.4508357048034668,
0.16968810558319092,
-0.37626737356185913,
-0.01095978170633316,
0.06464432179927826,
-0.003237323835492134,
0.05967245623469353,
-0.25061744451522827,
-0.07057446241378784,
0.14640189707279205,
0.09220773726701736,
-0.17413043975830078,
-0.35074305534362793,
-0.0896506980061531,
0.036784909665584564,
0.01421420183032751,
-0.1914067417383194,
-0.27752071619033813,
0.07937438786029816,
-0.1433200091123581,
0.6197948455810547,
0.32701388001441956,
0.005700647830963135,
0.38587823510169983,
-0.23695623874664307,
0.000010869931429624557,
0.17174218595027924,
0.5837680697441101,
-0.260583758354187,
-0.04442833364009857,
0.19860900938510895,
-0.2997123599052429,
-0.4421890377998352,
-0.27306118607521057,
0.18830060958862305,
0.032321833074092865,
-0.008429158478975296,
-0.17861664295196533,
0.031004413962364197,
-0.13094371557235718,
-0.04899752140045166,
-0.2130448818206787,
-0.05581830441951752,
0.33782726526260376,
-0.183659628033638,
-0.24219226837158203,
-0.0644741952419281,
0.21673376858234406,
0.029940471053123474,
0.2865469455718994,
0.4599357843399048,
-0.4840269982814789,
0.16461151838302612,
-0.1400936245918274,
0.12755995988845825,
0.04408315196633339,
0.5117965340614319,
0.15338179469108582,
0.13323162496089935,
0.0008747875690460205,
-0.140676349401474,
0.09818058460950851,
0.4896935224533081,
0.0561884343624115,
-0.1449028104543686,
0.3308485150337219,
0.2087346315383911,
0.24980410933494568,
-0.11164974421262741,
-0.04191494360566139,
-0.07632121443748474,
-0.007912162691354752,
0.10350785404443741,
0.07728642970323563,
-0.056000880897045135,
0.017136510461568832,
0.07414562255144119,
-0.0036135949194431305,
-0.15379220247268677,
0.21246254444122314,
0.07286837697029114,
0.3913026452064514,
-0.11124502867460251,
-0.25944724678993225,
-0.005773602519184351,
-0.46897685527801514,
-0.005584090948104858,
0.03185397386550903,
-0.021543029695749283,
-0.1584111452102661,
-0.1728702187538147,
0.05907111242413521,
-0.3485899269580841,
0.2623424530029297,
0.1606942117214203,
0.237129345536232,
0.16907595098018646,
-0.13415347039699554,
-0.527251660823822,
-0.29414844512939453,
-0.33222055435180664,
0.18113459646701813,
0.5960761308670044,
0.11514407396316528,
-0.1382215917110443,
-0.17282359302043915,
0.10999147593975067,
-0.05184993892908096,
-0.1482471525669098,
0.10066854953765869,
-0.33127114176750183,
0.20241940021514893,
0.15132905542850494,
-0.28061482310295105,
0.04583710432052612,
0.3753640353679657,
-0.24380964040756226,
0.12480257451534271,
0.06615810841321945,
-0.14999346435070038,
0.2123296856880188,
0.13495226204395294,
0.33930855989456177,
-0.10402217507362366,
-0.24397096037864685,
-0.2931971848011017,
0.30135485529899597,
-0.3514435291290283,
0.3701419234275818,
0.12124496698379517,
0.00033593177795410156,
0.30029112100601196,
-0.09358710795640945,
0.1068413183093071,
0.310128390789032,
-0.18164101243019104,
0.16640663146972656,
-0.62215256690979,
0.11270256340503693,
-0.44617897272109985,
-0.21021011471748352,
0.3684732913970947,
-0.07535825669765472,
0.28507208824157715,
-0.14102831482887268,
0.20845285058021545,
0.23064102232456207,
-0.47709721326828003,
-0.07949866354465485,
-0.1620941460132599,
-0.19412629306316376,
0.2774370312690735,
-0.02041802555322647,
0.7596274018287659,
0.43547338247299194,
0.5634003281593323,
0.23021665215492249,
-0.14735136926174164,
0.38939765095710754,
-0.5955857038497925,
0.19128000736236572,
-0.34151554107666016,
-0.3702341318130493,
0.09574268013238907,
0.10443364083766937,
-0.06511310487985611,
0.21454939246177673,
0.2076512575149536,
0.2953760325908661,
0.39312267303466797,
-0.09911110997200012,
-0.10828112810850143,
0.1765526831150055,
0.12343019992113113,
0.1875409334897995,
-0.2870905101299286,
0.19913649559020996,
0.3464438319206238,
0.004576265811920166,
-0.0596935898065567,
0.09596756845712662,
-0.7420680522918701,
0.022515621036291122,
0.042491763830184937,
0.10044703632593155,
-0.09559957683086395,
0.354741632938385,
0.11958011984825134,
-0.22432823479175568,
-0.04871872812509537,
0.36723804473876953,
0.15987469255924225,
-0.015913594514131546,
0.0071961600333452225,
0.2100241780281067,
-0.319408655166626,
0.32633155584335327,
0.2423098087310791,
-0.038803353905677795,
0.03140794485807419,
-0.22021448612213135,
-0.07871328294277191,
-0.07076092809438705,
0.1557239443063736,
-0.16848164796829224,
-0.5484755039215088,
0.18215563893318176,
-0.3347039818763733,
0.0072077191434800625,
-0.02991640754044056,
0.10069026052951813,
-0.09960544109344482,
-0.053430601954460144,
0.16725941002368927,
-0.05686233937740326,
-0.0626533105969429,
-0.034885309636592865,
0.09307202696800232,
-0.3328574299812317,
-0.050463657826185226,
0.47442513704299927,
-0.13673871755599976,
-0.04600987210869789,
0.06487397104501724,
-0.3305658996105194,
0.03526654839515686,
-0.24317634105682373,
0.03892463445663452,
-0.08075781911611557,
-0.1971539556980133,
-0.1043003723025322,
-0.007579997181892395,
-0.2291496992111206,
0.2527271509170532,
0.25843626260757446,
0.24956655502319336,
0.21303710341453552,
0.03285263106226921,
-0.3630848526954651,
-0.0983249843120575,
0.08107912540435791,
0.1679997444152832,
-0.03473358973860741,
-0.01961846649646759,
-0.15958933532238007,
0.258840411901474,
0.23063121736049652,
-0.3546353578567505,
-0.15017224848270416,
-0.0899754986166954,
0.1268172264099121,
-0.2210240364074707,
-0.318739652633667,
0.022487057372927666,
0.14685370028018951,
0.14308542013168335,
-0.008150100708007812,
-0.0578296035528183,
-0.2477172315120697,
-0.20516575872898102,
0.08322592824697495,
-0.04834647476673126,
-0.09744042903184891,
-0.13200180232524872,
0.21839945018291473,
0.1043623834848404,
-0.14063549041748047,
-0.2313220202922821,
-0.1339263916015625,
0.35739845037460327,
0.12174545228481293,
-0.08553960919380188,
0.18251588940620422,
-0.14262956380844116,
0.10866612195968628,
0.018823951482772827,
-0.025385133922100067,
0.07357671111822128,
-0.026512324810028076,
0.10945744812488556,
-0.20184177160263062,
-0.256411075592041,
-0.07424051314592361,
-0.2803899049758911,
0.14717307686805725,
0.10414621233940125,
-0.05297241359949112,
0.008782658725976944,
-0.18328996002674103,
0.28442201018333435,
0.3649749159812927,
0.11780483275651932,
-0.09963637590408325,
-0.013917604461312294,
0.22528256475925446,
-0.22220158576965332,
0.0942537784576416,
0.44961869716644287,
0.04398707300424576,
0.06563568115234375,
-0.0282834991812706,
0.15857870876789093,
-0.2076987326145172,
-0.018284782767295837,
-0.05924885720014572,
-0.27442294359207153,
-0.018169913440942764,
0.17280712723731995,
-0.19119548797607422,
0.25152334570884705,
0.07363158464431763,
0.15538103878498077,
-0.379148006439209,
0.18718214333057404,
0.35077017545700073,
-0.002579048275947571,
0.19415223598480225,
-0.2856437563896179,
0.1495128720998764,
-0.023675307631492615,
0.09032075107097626,
-0.27035996317863464,
0.34511223435401917,
0.08539954572916031,
-0.021806128323078156,
0.08363569527864456,
0.16912168264389038,
-0.10833388566970825,
-0.3376137912273407,
-0.004882989451289177,
-0.08809246122837067,
-0.07047490030527115,
-0.5443993210792542,
-0.46642395853996277,
-0.22646990418434143,
-0.39458316564559937,
0.07104998826980591,
-0.16874101758003235,
0.3817863464355469,
0.029519028961658478,
0.24772126972675323,
-0.09672440588474274,
-0.1826775223016739,
-0.4617653489112854,
0.010246146470308304,
0.42088082432746887,
-0.046757329255342484,
0.17743176221847534,
0.2167157530784607,
0.4143129587173462,
0.357180118560791,
0.1616106480360031,
0.2387455254793167,
0.1888275295495987,
-0.23361486196517944,
-0.2279312014579773,
0.03246592730283737,
0.08932031691074371,
-0.196157768368721,
0.174216628074646,
0.2599771022796631,
0.04339060187339783,
0.300217866897583,
0.1322065144777298,
-0.2410816103219986,
0.07742060720920563,
0.2649873197078705,
-0.003574879840016365,
-0.2141295224428177,
0.2947368621826172,
-0.039161406457424164,
0.018682368099689484,
-0.3314744830131531,
0.3797481954097748,
-0.5077438354492188,
-0.0865897685289383,
-0.5439394116401672,
0.1514042168855667,
0.1786459982395172,
-0.12435406446456909,
0.10393211990594864,
0.2688947916030884,
0.41731390357017517,
-0.12723574042320251,
0.33877435326576233,
-0.2841368615627289,
-0.46132051944732666,
-0.2653639018535614,
-0.04585053771734238,
0.03950834274291992,
0.2705295979976654,
-0.4309382140636444,
0.28873521089553833,
-0.2974151372909546,
0.051450081169605255,
0.27455997467041016,
0.42833051085472107,
0.24691951274871826,
0.06649713963270187,
-0.3382290005683899,
0.15592142939567566,
0.1984032839536667,
-0.08824511617422104,
-0.11956936866044998,
0.13063228130340576,
-0.173906609416008,
0.01981661096215248,
0.10971545428037643,
0.08555638045072556,
-0.34653666615486145,
-0.28865429759025574,
0.42075595259666443,
0.33852246403694153,
0.27506646513938904,
0.26808544993400574,
-0.37258148193359375,
-0.3853949308395386,
0.031003732234239578,
-0.12375204265117645,
-0.0627097487449646,
0.06228227913379669,
-0.06584210693836212,
0.3876439929008484,
0.02506394125521183,
0.07477408647537231,
0.0738610103726387,
0.5041285157203674,
0.055955030024051666,
0.0017199371941387653,
-0.22703059017658234,
-0.026206472888588905,
0.09364604204893112,
0.06342314183712006,
-0.6129959225654602,
0.40744316577911377,
0.000516790896654129,
0.1871436983346939,
-0.23370791971683502,
-0.2538992166519165,
0.37504637241363525,
-0.35842281579971313,
0.2720423638820648,
-0.09970115125179291,
0.3427540063858032,
0.2217618227005005,
0.2968045473098755,
0.046791307628154755,
-0.10589566081762314,
0.07175398617982864,
0.29574841260910034,
0.16224446892738342,
0.23034556210041046,
-0.23341989517211914,
-0.08380372077226639,
-0.0016770139336585999,
0.29279476404190063,
0.06492666900157928,
-0.2919710874557495,
0.4134341776371002,
-0.18410724401474
] |
https://github.com/huggingface/datasets/issues/224 | [Feature Request/Help] BLEURT model -> PyTorch | Hitting this error when using bleurt with PyTorch ...
```
UnrecognizedFlagError: Unknown command line flag 'f'
```
... and I'm assuming because it was built for TF specifically. Is there a way to use this metric in PyTorch? | Hi, I am interested in porting google research's new BLEURT learned metric to PyTorch (because I wish to do something experimental with language generation and backpropping through BLEURT). I noticed that you guys don't have it yet so I am partly just asking if you plan to add it (@thomwolf said you want to do so on Twitter).
I had a go of just like manually using the checkpoint that they publish which includes the weights. It seems like the architecture is exactly aligned with the out-of-the-box BertModel in transformers just with a single linear layer on top of the CLS embedding. I loaded all the weights to the PyTorch model but I am not able to get the same numbers as the BLEURT package's python api. Here is my colab notebook where I tried https://colab.research.google.com/drive/1Bfced531EvQP_CpFvxwxNl25Pj6ptylY?usp=sharing . If you have any pointers on what might be going wrong that would be much appreciated!
Thank you muchly! | 38 | [Feature Request/Help] BLEURT model -> PyTorch
Hi, I am interested in porting google research's new BLEURT learned metric to PyTorch (because I wish to do something experimental with language generation and backpropping through BLEURT). I noticed that you guys don't have it yet so I am partly just asking if you plan to add it (@thomwolf said you want to do so on Twitter).
I had a go of just like manually using the checkpoint that they publish which includes the weights. It seems like the architecture is exactly aligned with the out-of-the-box BertModel in transformers just with a single linear layer on top of the CLS embedding. I loaded all the weights to the PyTorch model but I am not able to get the same numbers as the BLEURT package's python api. Here is my colab notebook where I tried https://colab.research.google.com/drive/1Bfced531EvQP_CpFvxwxNl25Pj6ptylY?usp=sharing . If you have any pointers on what might be going wrong that would be much appreciated!
Thank you muchly!
Hitting this error when using bleurt with PyTorch ...
```
UnrecognizedFlagError: Unknown command line flag 'f'
```
... and I'm assuming because it was built for TF specifically. Is there a way to use this metric in PyTorch? | [
0.0004880465567111969,
-0.19439978897571564,
0.097779780626297,
0.14103522896766663,
0.28600722551345825,
-0.21947544813156128,
0.2981604039669037,
0.17576172947883606,
0.16847141087055206,
0.15842992067337036,
-0.22391469776630402,
0.20470818877220154,
-0.47158417105674744,
0.2436533421278,
-0.039452627301216125,
-0.09374266862869263,
-0.18991339206695557,
-0.03363168239593506,
0.10520413517951965,
-0.015585128217935562,
-0.09069804102182388,
0.23658886551856995,
0.045650914311409,
-0.028711453080177307,
-0.3174611032009125,
0.35048002004623413,
0.05522036552429199,
0.05592680349946022,
-0.14533710479736328,
-0.03276475891470909,
0.34637701511383057,
-0.19246922433376312,
0.25576668977737427,
0.7926084995269775,
-0.00012355622311588377,
-0.21305100619792938,
0.06719009578227997,
-0.011289745569229126,
-0.2755613327026367,
-0.3058050870895386,
0.46540650725364685,
-0.2523365616798401,
0.0014710917603224516,
-0.2047467827796936,
-0.027092009782791138,
-0.062226343899965286,
-0.2024286389350891,
-0.0805593878030777,
0.00865209847688675,
0.31620797514915466,
0.04068635776638985,
0.20291872322559357,
0.0005699284374713898,
0.07062731683254242,
0.09595862030982971,
-0.10698038339614868,
-0.11937212944030762,
0.5899261832237244,
0.19050472974777222,
-0.03901933133602142,
-0.19934511184692383,
0.16511225700378418,
0.15574386715888977,
0.22187559306621552,
0.781131386756897,
0.039632197469472885,
-0.10514814406633377,
0.007861059159040451,
0.05174281448125839,
0.35052230954170227,
-0.05701661854982376,
-0.23309996724128723,
-0.24215470254421234,
0.18319803476333618,
0.06828780472278595,
-0.2815706431865692,
-0.25224003195762634,
0.0521993562579155,
0.046989016234874725,
-0.27747493982315063,
-0.3826295733451843,
-0.3548012375831604,
-0.2562074065208435,
0.13442924618721008,
-0.26187777519226074,
0.3999880254268646,
-0.06487268954515457,
-0.05895054340362549,
0.1828382909297943,
0.054806187748909,
0.2097085863351822,
-0.012297306209802628,
0.3575533330440521,
0.31855857372283936,
0.04500021040439606,
-0.22733253240585327,
0.15663984417915344,
-0.14627167582511902,
0.0655386745929718,
-0.24303461611270905,
-0.23485688865184784,
0.12916624546051025,
-0.3112177848815918,
0.009082160890102386,
-0.005181245505809784,
0.4701383113861084,
0.03891535475850105,
0.374993234872818,
0.3503909111022949,
0.2842980623245239,
-0.02975465916097164,
-0.07869106531143188,
-0.06778499484062195,
-0.2594396770000458,
0.2883804738521576,
0.16139444708824158,
-0.2171093225479126,
-0.31107017397880554,
-0.147940993309021,
-0.05814828723669052,
-0.1836249828338623,
-0.21360008418560028,
0.385440856218338,
0.24474012851715088,
-0.3576725423336029,
-0.11658426374197006,
0.5851028561592102,
0.05813038349151611,
-0.21005216240882874,
0.0859043076634407,
-0.09296077489852905,
-0.09709103405475616,
-0.29787319898605347,
0.08617313951253891,
0.20618510246276855,
-0.1500411480665207,
0.20931991934776306,
-0.10786934942007065,
0.6836867928504944,
0.13581837713718414,
0.1862279176712036,
0.3334338366985321,
0.08329485356807709,
-0.16647282242774963,
-0.24997073411941528,
-0.40275368094444275,
0.25848880410194397,
0.0936400443315506,
-0.1719939410686493,
0.06458292156457901,
-0.1143135204911232,
-0.33401966094970703,
-0.25375011563301086,
0.0032775308936834335,
-0.293720543384552,
-0.1393721103668213,
0.04673704132437706,
0.3141675293445587,
0.08527440577745438,
-0.2999880313873291,
0.02187599241733551,
-0.2990497350692749,
-0.2519974708557129,
0.09707081317901611,
0.299688458442688,
-0.3436618447303772,
-0.3732590973377228,
-0.4258345663547516,
0.1134297102689743,
0.38207095861434937,
0.22695228457450867,
0.14589859545230865,
-0.15026387572288513,
-0.11249776929616928,
0.18048451840877533,
-0.3285117745399475,
0.3918114900588989,
0.0386059544980526,
-0.18129636347293854,
-0.23008082807064056,
0.10167475044727325,
-0.28623872995376587,
-0.21849647164344788,
0.06395982205867767,
-0.18907757103443146,
-0.1219702735543251,
0.3215975761413574,
0.2692628502845764,
-0.1522391140460968,
-0.11927418410778046,
-0.23923203349113464,
-0.2757667601108551,
0.23823878169059753,
0.10660867393016815,
0.3859718441963196,
-0.018501639366149902,
0.15808328986167908,
0.5193024277687073,
0.01872318983078003,
-0.40938910841941833,
-0.045770950615406036,
-0.13258512318134308,
0.3818317949771881,
-0.292669415473938,
0.3908916115760803,
-0.32067692279815674,
-0.12131404131650925,
0.2370043694972992,
-0.22047260403633118,
0.3617449998855591,
0.19992241263389587,
0.11520019173622131,
-0.10204379260540009,
-0.04495677351951599,
0.3409552276134491,
0.039177507162094116,
-0.11112769693136215,
-0.1455000340938568,
-0.23571933805942535,
-0.19972239434719086,
-0.20018041133880615,
-0.3327546715736389,
-0.29193252325057983,
-0.05433252826333046,
0.4235496520996094,
0.2041720300912857,
-0.03849967569112778,
-0.0883931964635849,
-0.08542551100254059,
0.4208584427833557,
0.13108479976654053,
0.21697238087654114,
-0.12121222168207169,
-0.20755884051322937,
0.13657157123088837,
-0.28143882751464844,
0.24335336685180664,
0.287802517414093,
0.345333456993103,
-0.08362127095460892,
0.17048530280590057,
0.26303529739379883,
-0.12292040139436722,
-0.05530755966901779,
-0.059550099074840546,
0.231190025806427,
0.29891514778137207,
0.2667692303657532,
0.2532309293746948,
0.07388021051883698,
-0.28169959783554077,
0.05441142991185188,
0.012850895524024963,
0.0123663991689682,
0.4185684025287628,
-0.26916831731796265,
-0.1440795511007309,
-0.1935267150402069,
0.20795536041259766,
0.0653933510184288,
0.37455570697784424,
-0.0260331928730011,
0.042965345084667206,
0.3506178855895996,
-0.29047825932502747,
-0.21643564105033875,
-0.12244270741939545,
-0.02304791286587715,
0.1722002625465393,
0.10130848735570908,
0.4216384291648865,
0.12463163584470749,
-0.10538558661937714,
0.07629312574863434,
-0.05406559258699417,
0.11428835242986679,
-0.19989199936389923,
-0.10426623374223709,
0.04114793613553047,
0.08948453515768051,
0.16858142614364624,
-0.019061297178268433,
0.0630178153514862,
0.1298632025718689,
-0.2475425750017166,
0.36891645193099976,
0.033474355936050415,
0.36739519238471985,
-0.10886973887681961,
-0.30087077617645264,
-0.25574791431427,
-0.188449427485466,
0.008498266339302063,
0.2539112865924835,
0.09166201949119568,
-0.14201894402503967,
0.05402069911360741,
0.46499139070510864,
-0.0766248106956482,
-0.141901895403862,
-0.029270267114043236,
-0.36523041129112244,
-0.3453889787197113,
0.009307488799095154,
0.041948508471250534,
0.04209612309932709,
0.09645814448595047,
0.08965037018060684,
-0.031335823237895966,
-0.23312731087207794,
-0.7229446768760681,
0.004387252032756805,
-0.006776358932256699,
0.2805343270301819,
0.21111777424812317,
-0.08313432335853577,
-0.33911198377609253,
0.004089646972715855,
0.05235663428902626,
-0.5004479885101318,
-0.005801033228635788,
0.3323719799518585,
-0.35640329122543335,
0.08894708752632141,
-0.0786404013633728,
-0.10566959530115128,
-0.09344379603862762,
-0.07754169404506683,
-0.07092292606830597,
0.198440819978714,
0.053706515580415726,
-0.058387480676174164,
-0.02046559937298298,
0.4024660587310791,
0.5086854696273804,
-0.04803280532360077,
-0.16854022443294525,
0.24041220545768738,
0.3423589766025543,
-0.3283776640892029,
-0.3037557005882263,
-0.028277702629566193,
0.06587972491979599,
0.029017526656389236,
0.0055696917697787285,
-0.30144423246383667,
-0.41652536392211914,
-0.1035076230764389,
-0.07527989149093628,
0.05142559856176376,
0.20570281147956848,
0.02488251030445099,
0.024753490462899208,
0.07888972014188766,
-0.298249214887619,
-0.20026542246341705,
-0.019337043166160583,
0.1483559012413025,
0.7090573310852051,
-0.1582225263118744,
-0.1775604486465454,
0.14850418269634247,
0.8652092218399048,
0.012939956039190292,
-0.4598024785518646,
0.10806477069854736,
0.1744069904088974,
0.09269364178180695,
0.015705876052379608,
-0.21939252316951752,
0.2692294418811798,
-0.3033929467201233,
-0.17277437448501587,
0.3044235110282898,
0.1061275452375412,
-0.12558580935001373,
-0.2744295001029968,
-0.12407517433166504,
0.5246572494506836,
-0.13078708946704865,
0.04327717423439026,
0.08086664974689484,
0.027793727815151215,
-0.059137728065252304,
-0.13328894972801208,
-0.3359977900981903,
-0.11665209382772446,
0.2886209785938263,
0.08492086082696915,
-0.016899287700653076,
0.046800997108221054,
0.4622924327850342,
-0.11969222128391266,
-0.5215776562690735,
0.47792303562164307,
0.14861814677715302,
-0.626940131187439,
0.03034261241555214,
-0.09077282249927521,
-0.014978170394897461,
-0.00433950824663043,
-0.3057301640510559,
0.08298984915018082,
0.02205638960003853,
-0.023003805428743362,
0.04754393547773361,
-0.2639548182487488,
0.11107400059700012,
-0.13539744913578033,
-0.3203113079071045,
0.47493553161621094,
0.283591091632843,
-0.3579865097999573,
0.060251958668231964,
0.2661553919315338,
0.39182761311531067,
-0.1682068556547165,
-0.0442587174475193,
-0.387144535779953,
-0.24752119183540344,
0.05117519944906235,
-0.16052812337875366,
0.05983014404773712,
0.2689392864704132,
0.06399000436067581,
0.15757091343402863,
0.14858366549015045,
-0.05238492041826248,
0.1533215045928955,
0.06338651478290558,
0.067654550075531,
-0.035430386662483215,
0.03659816458821297,
0.1509351283311844,
-0.05382128804922104,
0.16688120365142822,
0.31179100275039673,
-0.4149143099784851,
-0.49683719873428345,
0.13977259397506714,
0.26618653535842896,
0.2174072563648224,
0.034910134971141815,
0.0777493417263031,
-0.10712730139493942,
0.32527977228164673,
0.31367409229278564,
0.1727413535118103,
0.32259804010391235,
0.15361592173576355,
0.3155539929866791,
0.11419882625341415,
-0.18386110663414001,
0.33917275071144104,
-0.11920876801013947,
0.12232597172260284,
0.34898820519447327,
0.029947824776172638,
-0.02753523550927639,
0.06459645181894302,
0.5371320247650146,
0.9507376551628113,
0.07198932021856308,
0.1056298166513443,
0.3453925549983978,
-0.2159123420715332,
0.331878662109375,
-0.13465937972068787,
-0.05477093905210495,
-0.2090287059545517,
-0.27686476707458496,
-0.028736844658851624,
-0.009400777518749237,
-0.4168417751789093,
-0.3024941086769104,
-0.2451315075159073,
0.17041313648223877,
-0.3722742199897766,
-0.2893781065940857,
0.27391794323921204,
0.2895244359970093,
-0.012750711292028427,
0.02680192142724991,
0.2843710780143738,
0.07212069630622864,
-0.24628634750843048,
0.3137521743774414,
-0.06892000138759613,
-0.13711784780025482,
-0.12174957990646362,
0.11128249764442444,
-0.3442813754081726,
0.18231022357940674,
-0.14361591637134552,
-0.04318663477897644,
-0.13794125616550446,
-0.27278491854667664,
0.04846427962183952,
0.04304064065217972,
0.7600717544555664,
0.019664905965328217,
-0.3796814978122711,
0.22250445187091827,
-0.0693351998925209,
0.18749597668647766,
0.12328065186738968,
-0.11628611385822296,
0.3619273900985718,
-0.21870294213294983,
-0.08358759433031082,
-0.12129148095846176,
0.23607279360294342,
-0.4464298486709595,
0.16874200105667114,
-0.15053200721740723,
-0.16223539412021637,
0.011513959616422653,
0.24560843408107758,
0.23653137683868408,
0.11821126937866211,
-0.10112227499485016,
0.058677930384874344,
0.14740267395973206,
-0.23920854926109314,
0.03270932286977768,
0.04361807554960251,
-0.31197085976600647,
0.029099058359861374,
-0.04143785685300827,
-0.07832919806241989,
-0.009219732135534286,
0.22514599561691284,
0.18119853734970093,
-0.08502648770809174,
0.2331378161907196,
-0.545688807964325,
0.4800325036048889,
-0.3977864384651184,
0.1631656140089035,
0.08292653411626816,
-0.03360699862241745,
0.08675333857536316,
0.7250290513038635,
0.441958487033844,
0.13836130499839783,
-0.45515570044517517,
0.10337208211421967,
-0.3853454887866974,
0.05548126995563507,
-0.18755099177360535,
0.30167198181152344,
-0.21308329701423645,
0.16312777996063232,
-0.051664311438798904,
0.195576012134552,
-0.1942233145236969,
-0.01920800283551216,
0.12870553135871887,
-0.1361646056175232,
0.05789336934685707,
-0.3698282241821289,
0.18015798926353455,
0.07099322974681854,
-0.2820510268211365,
-0.1298041045665741,
0.07917556166648865,
-0.0011409129947423935,
-0.49501484632492065,
0.1621682345867157,
0.23006045818328857,
-0.01534973829984665,
-0.32313984632492065,
-0.4455379247665405,
-0.057452041655778885,
-0.10607470571994781,
0.02105369046330452,
0.14171069860458374,
0.04479040205478668,
0.3292350769042969,
-0.05912478640675545,
-0.047191038727760315,
-0.10355989634990692,
-0.054550617933273315,
0.4670525789260864,
0.22028207778930664,
0.11532918363809586,
0.01202145591378212,
0.3437569737434387,
0.001459963619709015,
0.1320916712284088,
0.029761601239442825,
0.0062269121408462524,
0.060461729764938354,
0.2978816330432892,
0.14499524235725403,
0.19285300374031067,
-0.3699386715888977,
0.22901444137096405,
0.14820784330368042,
0.12221898138523102,
-0.16198112070560455,
0.17190194129943848,
0.03464853763580322,
-0.23638705909252167,
-0.20888032019138336,
-0.3177435100078583,
0.08207555115222931,
-0.1735858917236328,
0.1348426640033722,
-0.2804165780544281,
0.41919249296188354,
0.3138984143733978,
-0.09825599193572998,
-0.242277592420578,
-0.22451095283031464,
0.06813591718673706,
0.16164034605026245,
-0.1870093196630478,
0.3133465349674225,
0.40764522552490234,
0.11467631161212921,
0.2044929713010788,
-0.40119612216949463,
-0.1424899697303772,
0.0656723752617836,
-0.4225865304470062,
-0.08957496285438538,
0.3227168619632721,
0.11632968485355377,
-0.05320851132273674,
-0.1357431709766388,
0.1743602156639099,
-0.07144583016633987,
-0.191913902759552,
0.39544880390167236,
-0.3155265748500824,
-0.2116168886423111,
-0.08746597170829773,
0.35621803998947144,
0.1253107488155365,
0.0961897224187851,
0.10229583084583282,
-0.08662397414445877,
0.20117226243019104,
-0.05531710013747215,
0.033216848969459534,
0.15262657403945923,
-0.15838652849197388,
0.12446356564760208,
-0.04102484881877899,
0.26512762904167175,
-0.7464028596878052,
0.2926134765148163,
0.28785279393196106,
0.14978227019309998,
-0.21726670861244202,
0.11766491085290909,
-0.013434730470180511,
-0.05370168015360832,
0.31687089800834656,
0.03299371525645256,
0.19358187913894653,
-0.3775278925895691,
-0.03685846924781799,
0.21869440376758575,
0.0019622910767793655,
0.16003325581550598,
0.1604834645986557,
0.4990953207015991,
-0.1896756887435913,
0.05753709748387337,
-0.10264869779348373,
-0.14954756200313568,
0.41688206791877747,
-0.3948407471179962,
0.16702011227607727,
-0.06114441156387329,
0.8726230263710022,
0.2835286855697632,
-0.15029343962669373,
-0.2694922685623169,
-0.08044784516096115,
-0.21827766299247742,
0.08427545428276062,
0.08718156814575195,
-0.12014033645391464,
0.0740615651011467,
-0.05157238245010376,
0.0068647172302007675,
0.18708519637584686,
0.1844528168439865,
0.24675098061561584,
0.3651897609233856,
-0.27606523036956787,
0.31659823656082153,
-0.39548003673553467,
0.15575838088989258,
0.17428414523601532,
0.06074582040309906,
-0.048489317297935486,
-0.14108122885227203,
0.0234869122505188,
-0.11504411697387695,
0.26463091373443604,
-0.22524067759513855,
0.051121197640895844,
-0.18277819454669952,
-0.23931096494197845,
-0.3419874310493469,
-0.050036683678627014,
0.038903698325157166,
-0.03173656389117241,
-0.12461519986391068,
-0.06375440955162048,
-0.09631931036710739,
-0.12807004153728485,
-0.050185613334178925,
-0.29143279790878296,
0.39763692021369934,
0.3708548843860626,
0.15045714378356934,
-0.07252821326255798,
0.7684541940689087,
0.20320633053779602,
0.006716473028063774,
0.30119723081588745,
0.20140646398067474,
-0.11478106677532196,
-0.20222115516662598,
-0.037507977336645126,
0.19382239878177643,
-0.25180086493492126,
-0.2619616985321045,
-0.4261302053928375,
0.6186973452568054,
0.10939070582389832,
-0.4776006042957306,
-0.08888886123895645,
-0.22655123472213745,
-0.22605779767036438,
-0.13082461059093475,
0.26198360323905945,
0.422067791223526,
0.07908205687999725,
0.032228849828243256,
-0.39357370138168335,
0.07538729161024094,
0.5604329705238342,
-0.42825865745544434,
-0.19135111570358276,
-0.012695912271738052,
0.18095558881759644,
0.23919174075126648,
-0.3084864914417267,
-0.7673499584197998,
-0.12440501153469086,
0.11889934539794922,
0.16897782683372498,
-0.16665245592594147,
0.2352270931005478,
0.13244977593421936,
0.26794886589050293,
-0.22290939092636108,
0.5535253286361694,
-0.07835780084133148,
-0.13849297165870667,
-0.4126299023628235,
-0.09996577352285385
] |
https://github.com/huggingface/datasets/issues/224 | [Feature Request/Help] BLEURT model -> PyTorch | We currently provide a wrapper on the TensorFlow implementation: https://huggingface.co/metrics/bleurt
We have long term plans to better handle model-based metrics, but they probably won't be implemented right away
@adamwlev it would still be cool to add the BLEURT checkpoints to the transformers repo if you're interested, but that would best be discussed there :)
closing for now | Hi, I am interested in porting google research's new BLEURT learned metric to PyTorch (because I wish to do something experimental with language generation and backpropping through BLEURT). I noticed that you guys don't have it yet so I am partly just asking if you plan to add it (@thomwolf said you want to do so on Twitter).
I had a go of just like manually using the checkpoint that they publish which includes the weights. It seems like the architecture is exactly aligned with the out-of-the-box BertModel in transformers just with a single linear layer on top of the CLS embedding. I loaded all the weights to the PyTorch model but I am not able to get the same numbers as the BLEURT package's python api. Here is my colab notebook where I tried https://colab.research.google.com/drive/1Bfced531EvQP_CpFvxwxNl25Pj6ptylY?usp=sharing . If you have any pointers on what might be going wrong that would be much appreciated!
Thank you muchly! | 57 | [Feature Request/Help] BLEURT model -> PyTorch
Hi, I am interested in porting google research's new BLEURT learned metric to PyTorch (because I wish to do something experimental with language generation and backpropping through BLEURT). I noticed that you guys don't have it yet so I am partly just asking if you plan to add it (@thomwolf said you want to do so on Twitter).
I had a go of just like manually using the checkpoint that they publish which includes the weights. It seems like the architecture is exactly aligned with the out-of-the-box BertModel in transformers just with a single linear layer on top of the CLS embedding. I loaded all the weights to the PyTorch model but I am not able to get the same numbers as the BLEURT package's python api. Here is my colab notebook where I tried https://colab.research.google.com/drive/1Bfced531EvQP_CpFvxwxNl25Pj6ptylY?usp=sharing . If you have any pointers on what might be going wrong that would be much appreciated!
Thank you muchly!
We currently provide a wrapper on the TensorFlow implementation: https://huggingface.co/metrics/bleurt
We have long term plans to better handle model-based metrics, but they probably won't be implemented right away
@adamwlev it would still be cool to add the BLEURT checkpoints to the transformers repo if you're interested, but that would best be discussed there :)
closing for now | [
0.039603929966688156,
-0.2945488691329956,
0.06959490478038788,
0.16438618302345276,
0.2727993130683899,
-0.2811162769794464,
0.38066720962524414,
0.14022620022296906,
0.14548754692077637,
0.16574136912822723,
-0.2105589061975479,
0.2934759259223938,
-0.4552502930164337,
0.2241605669260025,
0.06959405541419983,
-0.10988430678844452,
-0.050977982580661774,
0.03715723007917404,
0.10635949671268463,
-0.135774165391922,
-0.10876137018203735,
0.16499024629592896,
0.05935044586658478,
-0.15254735946655273,
-0.29161548614501953,
0.31761419773101807,
0.01924970932304859,
0.02570686861872673,
-0.2094441056251526,
-0.05774260312318802,
0.29480913281440735,
-0.06041448935866356,
0.20583485066890717,
0.7945740222930908,
-0.00012249436986166984,
-0.2677382230758667,
0.13256385922431946,
-0.025316186249256134,
-0.34068161249160767,
-0.2211294025182724,
0.3839516043663025,
-0.3060539662837982,
0.08232920616865158,
-0.17544618248939514,
0.04278848320245743,
-0.03406524658203125,
-0.24324072897434235,
-0.04265592619776726,
0.18749284744262695,
0.2166576385498047,
0.042248379439115524,
0.23043550550937653,
0.0012262798845767975,
0.11258159577846527,
0.13914109766483307,
-0.10558697581291199,
-0.10437075048685074,
0.5303354859352112,
0.2758404314517975,
-0.062410302460193634,
-0.19226369261741638,
0.23816846311092377,
0.0778374895453453,
0.10142314434051514,
0.6716713309288025,
0.03906065970659256,
-0.05559506267309189,
-0.0681454986333847,
0.005765356123447418,
0.3251340985298157,
-0.11480847746133804,
-0.21514955163002014,
-0.30670079588890076,
0.08728169649839401,
0.07104193419218063,
-0.2673070430755615,
-0.21797055006027222,
0.10698844492435455,
0.10014496743679047,
-0.26901209354400635,
-0.4190247058868408,
-0.3648306727409363,
-0.1958521455526352,
0.0797385424375534,
-0.27265167236328125,
0.38131090998649597,
0.009816569276154041,
-0.1550256311893463,
0.13104572892189026,
0.1450662612915039,
0.3880728781223297,
-0.07437710464000702,
0.3471347391605377,
0.2746397852897644,
-0.01650666818022728,
-0.3021688163280487,
0.2685929536819458,
-0.13609015941619873,
-0.00503876619040966,
-0.22477112710475922,
-0.16654126346111298,
0.20244821906089783,
-0.2630818784236908,
0.07759512215852737,
-0.04299217090010643,
0.40149983763694763,
-0.0002401396632194519,
0.37281322479248047,
0.32136279344558716,
0.4031054377555847,
0.10458351671695709,
-0.019625943154096603,
-0.07396163046360016,
-0.08638142049312592,
0.2585073709487915,
0.19309845566749573,
-0.22396455705165863,
-0.2521969676017761,
-0.06776173412799835,
-0.020372625440359116,
-0.22098630666732788,
-0.24022749066352844,
0.33338040113449097,
0.1934581696987152,
-0.4989125728607178,
-0.02318096160888672,
0.5008059144020081,
0.006021536886692047,
-0.16556942462921143,
0.10502804070711136,
-0.1418713480234146,
-0.1260455697774887,
-0.3094722628593445,
0.07590875029563904,
0.2528243362903595,
-0.1601811647415161,
0.2812947928905487,
-0.07687164843082428,
0.4981270432472229,
0.04750412702560425,
0.3035528063774109,
0.3707241714000702,
0.09624896198511124,
-0.14412444829940796,
-0.20200641453266144,
-0.34857073426246643,
0.18558359146118164,
0.050726182758808136,
-0.1315111517906189,
-0.030972756445407867,
-0.11490380018949509,
-0.2794411778450012,
-0.07502058893442154,
0.05097367614507675,
-0.2576737701892853,
-0.05764290690422058,
0.025399327278137207,
0.3534556031227112,
0.09787633270025253,
-0.24719743430614471,
0.0006362795829772949,
-0.24852778017520905,
-0.16766804456710815,
0.06729405373334885,
0.39564573764801025,
-0.18060337007045746,
-0.3170183300971985,
-0.5069209933280945,
0.16817250847816467,
0.439536988735199,
0.18799042701721191,
0.1661759316921234,
-0.24754594266414642,
-0.03294248878955841,
0.255615234375,
-0.34265589714050293,
0.27378374338150024,
0.11720748245716095,
-0.30567261576652527,
-0.23019109666347504,
0.08945818245410919,
-0.3044479787349701,
-0.21890729665756226,
0.08569753915071487,
-0.1461464762687683,
-0.06445005536079407,
0.275614470243454,
0.26867640018463135,
-0.1765100657939911,
-0.012937981635332108,
-0.288385808467865,
-0.256245493888855,
0.2462271749973297,
0.1788949966430664,
0.37698832154273987,
-0.037900932133197784,
0.15235042572021484,
0.5387817025184631,
0.06697963923215866,
-0.38386020064353943,
-0.030025390908122063,
-0.1570003479719162,
0.5144115686416626,
-0.46003055572509766,
0.38164031505584717,
-0.21484911441802979,
-0.11701200157403946,
0.174920916557312,
-0.38291651010513306,
0.34666764736175537,
0.15802432596683502,
0.05973018705844879,
-0.08232422173023224,
0.004817945882678032,
0.3204125463962555,
-0.04485750570893288,
-0.07983563840389252,
-0.1922537088394165,
-0.25190070271492004,
-0.15173913538455963,
-0.23149153590202332,
-0.29598698019981384,
-0.18502230942249298,
-0.04065989330410957,
0.2206054925918579,
0.36955708265304565,
-0.021371761336922646,
-0.14678019285202026,
-0.08496751636266708,
0.36801302433013916,
0.1280674934387207,
0.16879607737064362,
-0.03653458133339882,
-0.20773845911026,
0.16967539489269257,
-0.1845838576555252,
0.2581164240837097,
0.2752384841442108,
0.4071277976036072,
0.02619919553399086,
0.2872470021247864,
0.25466883182525635,
-0.10023157298564911,
-0.10496433079242706,
-0.20701247453689575,
0.2988642752170563,
0.3075420558452606,
0.23850315809249878,
0.29118186235427856,
0.09369336068630219,
-0.27139919996261597,
0.09760552644729614,
-0.06041180342435837,
0.17113183438777924,
0.3944917321205139,
-0.13852499425411224,
-0.08198606967926025,
-0.16408944129943848,
0.14725767076015472,
0.141548290848732,
0.36072513461112976,
-0.052628375589847565,
0.017791420221328735,
0.23726025223731995,
-0.41456738114356995,
-0.2849434018135071,
-0.08580286800861359,
0.055422473698854446,
0.14266861975193024,
0.06415911018848419,
0.4149322509765625,
0.0514039471745491,
-0.018801357597112656,
0.04474784806370735,
-0.12116091698408127,
0.15478163957595825,
-0.23463475704193115,
-0.04626786708831787,
0.08961491286754608,
0.0987381860613823,
0.09015575796365738,
0.02513984590768814,
0.07456027716398239,
0.11431267857551575,
-0.14357608556747437,
0.3518405556678772,
0.132659450173378,
0.425706684589386,
-0.23266637325286865,
-0.3643440902233124,
-0.25728610157966614,
-0.21227873861789703,
0.038647960871458054,
0.30082881450653076,
0.07326607406139374,
-0.08552392572164536,
0.2842046618461609,
0.5591585040092468,
-0.04921752214431763,
-0.10149665921926498,
-0.06357842683792114,
-0.2979995906352997,
-0.2619438171386719,
0.01304924488067627,
-0.04707188904285431,
0.021043160930275917,
-0.012131841853260994,
0.1273239701986313,
-0.07290909439325333,
-0.16482122242450714,
-0.7918716669082642,
-0.0071389339864254,
0.06195385009050369,
0.2949557602405548,
0.1277306228876114,
-0.13784702122211456,
-0.3270542621612549,
-0.0012698760256171227,
0.01725974678993225,
-0.40893110632896423,
-0.02308218739926815,
0.33340105414390564,
-0.24032627046108246,
0.020098784938454628,
-0.0331978015601635,
-0.19501200318336487,
-0.12176137417554855,
-0.03714706376194954,
0.035057757049798965,
0.17747239768505096,
0.03728386014699936,
-0.12759725749492645,
0.11328975856304169,
0.3214528560638428,
0.4272085130214691,
-0.15338575839996338,
-0.0384359136223793,
0.17423056066036224,
0.4179562032222748,
-0.2875502407550812,
-0.3364490866661072,
-0.11314132809638977,
-0.042940668761730194,
0.09721899032592773,
0.020037006586790085,
-0.3338601589202881,
-0.3707355856895447,
-0.13501019775867462,
-0.15471288561820984,
0.16762395203113556,
0.21132630109786987,
0.0806475579738617,
0.13571614027023315,
0.08123888075351715,
-0.1643417477607727,
-0.11949464678764343,
-0.05120985954999924,
0.1652880311012268,
0.6772112250328064,
-0.22687983512878418,
-0.1361592710018158,
0.09985020756721497,
0.8651853203773499,
0.14755192399024963,
-0.4560467302799225,
0.03625079244375229,
0.31710219383239746,
0.025823302567005157,
-0.030955828726291656,
-0.29106903076171875,
0.1881336122751236,
-0.2465844452381134,
-0.2843213677406311,
0.28277823328971863,
0.10243122279644012,
-0.29742810130119324,
-0.3031902015209198,
-0.2026451975107193,
0.5068922638893127,
-0.12234537303447723,
0.07363082468509674,
0.11307653039693832,
0.06933439522981644,
-0.004519706591963768,
-0.06540894508361816,
-0.2938374876976013,
-0.1253664195537567,
0.24079343676567078,
-0.0076103657484054565,
0.09480416029691696,
-0.03745768964290619,
0.447637140750885,
0.0032590182963758707,
-0.5484261512756348,
0.3487662672996521,
0.05293469503521919,
-0.5662451386451721,
0.14763259887695312,
-0.07294207066297531,
-0.039310961961746216,
-0.04653781279921532,
-0.3226354122161865,
0.07470057904720306,
0.03616868704557419,
-0.14837051928043365,
-0.06120475009083748,
-0.25290021300315857,
0.09232495725154877,
-0.22582842409610748,
-0.4737832248210907,
0.531467616558075,
0.337350457906723,
-0.3827207386493683,
0.09321518987417221,
0.22271086275577545,
0.31544387340545654,
-0.202878937125206,
-0.014692617580294609,
-0.29760870337486267,
-0.22090911865234375,
0.07640644162893295,
-0.07465644925832748,
-0.026433506980538368,
0.22570650279521942,
-0.05120079964399338,
-0.027302425354719162,
0.12710928916931152,
-0.10163163393735886,
0.18122631311416626,
0.07489588856697083,
0.008387474343180656,
-0.026714356616139412,
0.15502193570137024,
0.11128576099872589,
-0.07816660404205322,
0.19248151779174805,
0.3351230025291443,
-0.41935327649116516,
-0.5140187740325928,
0.11239615827798843,
0.1502208411693573,
0.17336110770702362,
0.09620596468448639,
0.09976087510585785,
-0.010332681238651276,
0.4023585319519043,
0.2830179035663605,
0.16237837076187134,
0.26863396167755127,
0.1312970072031021,
0.4590054154396057,
0.06577179580926895,
-0.1467004269361496,
0.33696261048316956,
-0.18430638313293457,
0.02922511100769043,
0.3064763844013214,
-0.09339794516563416,
-0.026042664423584938,
0.17510457336902618,
0.45825257897377014,
0.9547621011734009,
0.1138848066329956,
0.07662251591682434,
0.29241129755973816,
-0.12001800537109375,
0.3372706472873688,
-0.24702505767345428,
0.05289638042449951,
-0.3119489550590515,
-0.3774300515651703,
-0.03756635636091232,
-0.08929353207349777,
-0.4033798575401306,
-0.27996641397476196,
-0.2035803645849228,
0.11634540557861328,
-0.34473156929016113,
-0.22655954957008362,
0.30436307191848755,
0.32432428002357483,
0.07537951320409775,
0.021569663658738136,
0.2870035767555237,
0.06190471351146698,
-0.2093513160943985,
0.31468090415000916,
-0.07800005376338959,
-0.23030894994735718,
-0.23614390194416046,
0.10131251811981201,
-0.1874045729637146,
0.26554420590400696,
-0.05719016492366791,
-0.006722504273056984,
0.01005510427057743,
-0.3199203312397003,
0.07066018879413605,
0.06933673471212387,
0.7521306276321411,
0.11961187422275543,
-0.3720661699771881,
0.14824466407299042,
-0.1703070104122162,
0.1371915340423584,
0.1343550682067871,
-0.16840827465057373,
0.3660241961479187,
-0.1432252824306488,
-0.16689848899841309,
-0.08256890624761581,
0.21665242314338684,
-0.2843278646469116,
0.16792243719100952,
-0.17392034828662872,
-0.1123276948928833,
-0.07144282758235931,
0.40804940462112427,
0.32134324312210083,
0.07981844246387482,
-0.2015872746706009,
0.09625992178916931,
0.22282883524894714,
-0.2782489061355591,
0.0879296362400055,
0.13651327788829803,
-0.23687393963336945,
-0.0030592232942581177,
0.02106039971113205,
-0.04544349014759064,
-0.07609256356954575,
0.20994699001312256,
0.18963411450386047,
-0.12245624512434006,
0.2027595341205597,
-0.5506260395050049,
0.5572553873062134,
-0.42925459146499634,
0.11070150136947632,
-0.13716764748096466,
-0.022318094968795776,
0.0341503731906414,
0.6142622828483582,
0.46294885873794556,
0.1775752454996109,
-0.423326313495636,
0.12258617579936981,
-0.4270438253879547,
0.10487615317106247,
-0.18003781139850616,
0.351075142621994,
-0.27395346760749817,
-0.006761524826288223,
0.006709573790431023,
0.38980644941329956,
-0.2270163893699646,
-0.026361310854554176,
0.12607736885547638,
-0.07171648740768433,
-0.021651964634656906,
-0.48300740122795105,
0.1117934063076973,
0.04559284821152687,
-0.23183295130729675,
-0.10764311254024506,
0.08287961781024933,
-0.04295352101325989,
-0.4671596884727478,
0.1519806832075119,
0.1879015862941742,
0.05123540759086609,
-0.29135289788246155,
-0.34454596042633057,
-0.09238697588443756,
-0.1816122978925705,
-0.0012818500399589539,
-0.03598807752132416,
0.07129811495542526,
0.37686675786972046,
0.16384649276733398,
0.032255373895168304,
-0.20140261948108673,
-0.058262065052986145,
0.3841690719127655,
0.11524143815040588,
0.06221090629696846,
-0.08224396407604218,
0.39128291606903076,
-0.023472413420677185,
0.026853064075112343,
0.05031934380531311,
0.027712076902389526,
0.08725438266992569,
0.425647497177124,
0.0977621078491211,
0.15738646686077118,
-0.41123923659324646,
0.2807867228984833,
0.17748776078224182,
0.11828793585300446,
-0.13777080178260803,
0.18009912967681885,
0.10431328415870667,
-0.22499211132526398,
-0.2332543432712555,
-0.19721604883670807,
0.12463870644569397,
-0.11268597841262817,
0.16435366868972778,
-0.11488236486911774,
0.3551514148712158,
0.36327362060546875,
-0.00976600218564272,
-0.24801550805568695,
-0.3071399927139282,
0.04222544655203819,
0.054887477308511734,
-0.18486237525939941,
0.276947945356369,
0.45471397042274475,
0.068892702460289,
0.10064497590065002,
-0.4465755820274353,
-0.09266684204339981,
0.08696944266557693,
-0.3843236267566681,
-0.08820225298404694,
0.3419307768344879,
0.19567811489105225,
-0.15060904622077942,
-0.2059204876422882,
0.15797889232635498,
-0.11409663408994675,
-0.13242588937282562,
0.36024847626686096,
-0.2412535697221756,
-0.14182527363300323,
-0.05407184362411499,
0.32524800300598145,
0.026275712996721268,
0.07756441831588745,
0.05787612497806549,
-0.1066068559885025,
0.06521862745285034,
-0.006445534527301788,
0.10747741907835007,
0.06735920161008835,
-0.01296503096818924,
0.12857043743133545,
-0.11017951369285583,
0.20703813433647156,
-0.6235055923461914,
0.3515486717224121,
0.34066617488861084,
0.040486890822649,
-0.23865292966365814,
0.13110820949077606,
-0.06537620723247528,
-0.26793184876441956,
0.3332058787345886,
-0.07992047071456909,
0.20084740221500397,
-0.3434506058692932,
0.08213376253843307,
0.282662957906723,
-0.05414752662181854,
0.0699155405163765,
0.20671452581882477,
0.40170326828956604,
-0.08867095410823822,
-0.051761873066425323,
-0.05980318784713745,
-0.1769835650920868,
0.38699570298194885,
-0.4427589774131775,
0.16623985767364502,
-0.09579472243785858,
0.957119882106781,
0.3474614918231964,
-0.2492387890815735,
-0.24940204620361328,
-0.14705073833465576,
-0.3462856411933899,
0.1076827421784401,
0.17763471603393555,
-0.0383404940366745,
-0.0039489297196269035,
-0.0639103353023529,
0.0028834268450737,
0.052377715706825256,
0.15503795444965363,
0.2236466109752655,
0.5317478179931641,
-0.3545687198638916,
0.2993888258934021,
-0.2283248007297516,
0.10329017788171768,
0.27510643005371094,
0.13227228820323944,
-0.127250075340271,
-0.01768282614648342,
-0.009351693093776703,
-0.04927103966474533,
0.026652656495571136,
-0.32910624146461487,
0.06417867541313171,
-0.14669665694236755,
-0.2652188837528229,
-0.2175389975309372,
-0.049031101167201996,
0.036591872572898865,
0.040845103561878204,
-0.06513197720050812,
0.03262036293745041,
-0.12107477337121964,
-0.10738187283277512,
-0.052252620458602905,
-0.3160061538219452,
0.3485419452190399,
0.36672666668891907,
0.08986872434616089,
-0.027841264382004738,
0.642788290977478,
0.15500754117965698,
-0.11144927144050598,
0.20141610503196716,
0.14983749389648438,
-0.1177358403801918,
-0.23597460985183716,
0.022950392216444016,
0.30525505542755127,
-0.11438232660293579,
-0.34389621019363403,
-0.4947918951511383,
0.635600209236145,
0.17985539138317108,
-0.5693952441215515,
-0.17015711963176727,
-0.24646632373332977,
-0.17225563526153564,
-0.11563268303871155,
0.3047386705875397,
0.33677464723587036,
0.1070006936788559,
-0.017187103629112244,
-0.3678511381149292,
0.067268967628479,
0.48483192920684814,
-0.45635733008384705,
-0.07332652807235718,
-0.11960621178150177,
0.16673558950424194,
0.26474401354789734,
-0.19481304287910461,
-0.9240173101425171,
-0.13740649819374084,
0.14410772919654846,
-0.014072492718696594,
-0.17872871458530426,
0.29899728298187256,
0.24600057303905487,
0.2937107980251312,
-0.25545915961265564,
0.5315846800804138,
-0.04953794181346893,
-0.09967707842588425,
-0.459068238735199,
-0.21204863488674164
] |
https://github.com/huggingface/datasets/issues/224 | [Feature Request/Help] BLEURT model -> PyTorch | Hi there. We ran into the same problem this year (converting BLEURT to PyTorch) and thanks to @adamwlev found his colab notebook which didn't work but served as a good starting point. Finally, we **made it work** by doing just two simple conceptual fixes:
1. Transposing 'kernel' layers instead of 'dense' ones when copying params from the original model;
2. Taking pooler_output as a cls_state in forward function of the BleurtModel class.
Plus few minor syntactical fixes for the outdated parts. The result is still not exactly the same, but is very close to the expected one (1.0483 vs 1.0474).
Find the fixed version here (fixes are commented): https://colab.research.google.com/drive/1KsCUkFW45d5_ROSv2aHtXgeBa2Z98r03?usp=sharing
| Hi, I am interested in porting google research's new BLEURT learned metric to PyTorch (because I wish to do something experimental with language generation and backpropping through BLEURT). I noticed that you guys don't have it yet so I am partly just asking if you plan to add it (@thomwolf said you want to do so on Twitter).
I had a go of just like manually using the checkpoint that they publish which includes the weights. It seems like the architecture is exactly aligned with the out-of-the-box BertModel in transformers just with a single linear layer on top of the CLS embedding. I loaded all the weights to the PyTorch model but I am not able to get the same numbers as the BLEURT package's python api. Here is my colab notebook where I tried https://colab.research.google.com/drive/1Bfced531EvQP_CpFvxwxNl25Pj6ptylY?usp=sharing . If you have any pointers on what might be going wrong that would be much appreciated!
Thank you muchly! | 109 | [Feature Request/Help] BLEURT model -> PyTorch
Hi, I am interested in porting google research's new BLEURT learned metric to PyTorch (because I wish to do something experimental with language generation and backpropping through BLEURT). I noticed that you guys don't have it yet so I am partly just asking if you plan to add it (@thomwolf said you want to do so on Twitter).
I had a go of just like manually using the checkpoint that they publish which includes the weights. It seems like the architecture is exactly aligned with the out-of-the-box BertModel in transformers just with a single linear layer on top of the CLS embedding. I loaded all the weights to the PyTorch model but I am not able to get the same numbers as the BLEURT package's python api. Here is my colab notebook where I tried https://colab.research.google.com/drive/1Bfced531EvQP_CpFvxwxNl25Pj6ptylY?usp=sharing . If you have any pointers on what might be going wrong that would be much appreciated!
Thank you muchly!
Hi there. We ran into the same problem this year (converting BLEURT to PyTorch) and thanks to @adamwlev found his colab notebook which didn't work but served as a good starting point. Finally, we **made it work** by doing just two simple conceptual fixes:
1. Transposing 'kernel' layers instead of 'dense' ones when copying params from the original model;
2. Taking pooler_output as a cls_state in forward function of the BleurtModel class.
Plus few minor syntactical fixes for the outdated parts. The result is still not exactly the same, but is very close to the expected one (1.0483 vs 1.0474).
Find the fixed version here (fixes are commented): https://colab.research.google.com/drive/1KsCUkFW45d5_ROSv2aHtXgeBa2Z98r03?usp=sharing
| [
0.031052667647600174,
-0.21039631962776184,
0.11031050980091095,
0.24948248267173767,
0.28502988815307617,
-0.3368866443634033,
0.2980251908302307,
0.14864538609981537,
0.09188978374004364,
0.16699367761611938,
-0.3092390298843384,
0.3939809203147888,
-0.4846564829349518,
0.25464585423469543,
0.046879857778549194,
-0.08954033255577087,
-0.06800010055303574,
0.05894574522972107,
0.10282047092914581,
-0.179257333278656,
-0.11254594475030899,
0.15591639280319214,
0.11106371879577637,
-0.10564213991165161,
-0.19486503303050995,
0.37220653891563416,
-0.06696415692567825,
0.11051276326179504,
-0.2348373681306839,
-0.05581790581345558,
0.23994268476963043,
-0.09313544631004333,
0.19716289639472961,
0.7407877445220947,
-0.000123012374388054,
-0.29678839445114136,
0.10562001913785934,
-0.01381794735789299,
-0.3956656754016876,
-0.2290661782026291,
0.39341673254966736,
-0.30640512704849243,
0.1475394070148468,
-0.188218355178833,
-0.023235946893692017,
-0.046829983592033386,
-0.2829236388206482,
-0.11125586926937103,
0.13091976940631866,
0.24891820549964905,
0.03568299859762192,
0.12069790065288544,
-0.04003683850169182,
0.10717959702014923,
0.1736425757408142,
-0.19217030704021454,
-0.02524007111787796,
0.5683527588844299,
0.33517542481422424,
-0.019422465935349464,
-0.22494268417358398,
0.17774049937725067,
0.011494288221001625,
0.10073018074035645,
0.6617957353591919,
0.0406070277094841,
-0.050766341388225555,
-0.04632355272769928,
0.04265260323882103,
0.33016085624694824,
-0.11374513059854507,
-0.19089508056640625,
-0.25507694482803345,
0.12239699810743332,
0.07248939573764801,
-0.2415705919265747,
-0.23092705011367798,
0.1607210636138916,
0.10856540501117706,
-0.2415810525417328,
-0.39104241132736206,
-0.3491119146347046,
-0.1409148871898651,
0.13794571161270142,
-0.29824960231781006,
0.30928879976272583,
-0.06806909292936325,
-0.12711894512176514,
0.15347835421562195,
0.08535559475421906,
0.34188586473464966,
-0.0955539420247078,
0.3543407917022705,
0.19703882932662964,
0.0863439291715622,
-0.18238528072834015,
0.22257372736930847,
0.042103782296180725,
-0.06244322285056114,
-0.309314489364624,
-0.12535327672958374,
0.20691770315170288,
-0.2814030051231384,
0.011796664446592331,
-0.027306489646434784,
0.32033538818359375,
0.04041875898838043,
0.3597738742828369,
0.2862762212753296,
0.37072035670280457,
0.07752560079097748,
-0.045363977551460266,
-0.08907032012939453,
-0.1548781394958496,
0.24097369611263275,
0.1922280490398407,
-0.28005897998809814,
-0.32870224118232727,
-0.03376954793930054,
-0.054197102785110474,
-0.21769636869430542,
-0.10590704530477524,
0.3486950397491455,
0.1363614797592163,
-0.4923025071620941,
-0.0643923282623291,
0.6397173404693604,
0.04687035083770752,
-0.18193745613098145,
0.07984887808561325,
-0.1414923369884491,
-0.09508456289768219,
-0.30738624930381775,
0.06758338212966919,
0.21250449120998383,
-0.19385311007499695,
0.2788226008415222,
0.032000694423913956,
0.5187751650810242,
0.1252879947423935,
0.16171298921108246,
0.433599591255188,
0.16154751181602478,
-0.19241021573543549,
-0.24166609346866608,
-0.29619312286376953,
0.22628934681415558,
0.026455923914909363,
-0.1124015599489212,
0.08938439190387726,
-0.12872314453125,
-0.3263469636440277,
-0.15209631621837616,
0.02396002970635891,
-0.28712737560272217,
-0.019190892577171326,
-0.01095370203256607,
0.2780379056930542,
0.10987880080938339,
-0.2487727254629135,
-0.03219694644212723,
-0.39510196447372437,
-0.12442505359649658,
0.09461575746536255,
0.4095953702926636,
-0.2038903683423996,
-0.40325507521629333,
-0.42737704515457153,
0.10449149459600449,
0.45281079411506653,
0.3346206843852997,
0.0944751650094986,
-0.22268061339855194,
-0.20602354407310486,
0.18222898244857788,
-0.35699284076690674,
0.24966245889663696,
0.1920623928308487,
-0.27465495467185974,
-0.22991620004177094,
0.13340461254119873,
-0.2530926465988159,
-0.21538233757019043,
0.0259452722966671,
-0.15084056556224823,
-0.06364262104034424,
0.3645896911621094,
0.11044340580701828,
-0.18229329586029053,
-0.023145955055952072,
-0.37692397832870483,
-0.17071190476417542,
0.2408786416053772,
0.14524491131305695,
0.3112166225910187,
0.044218096882104874,
0.1397857964038849,
0.5452294945716858,
0.10949324816465378,
-0.37678176164627075,
0.038649655878543854,
-0.20870764553546906,
0.43945276737213135,
-0.3888006806373596,
0.36291414499282837,
-0.1322946548461914,
-0.04362142086029053,
0.2286236584186554,
-0.325268030166626,
0.4498293101787567,
0.15171989798545837,
0.13739274442195892,
-0.11641077697277069,
-0.11465438455343246,
0.28573688864707947,
-0.04155813530087471,
-0.09858432412147522,
-0.1753857433795929,
-0.28409692645072937,
-0.220453679561615,
-0.14794133603572845,
-0.2546972930431366,
-0.23914523422718048,
-0.05173943564295769,
0.19210892915725708,
0.3260834217071533,
-0.06349663436412811,
-0.16392362117767334,
-0.038680508732795715,
0.38624024391174316,
0.18508101999759674,
0.21768565475940704,
-0.07578463107347488,
-0.22854921221733093,
0.1139380931854248,
-0.20823465287685394,
0.14065778255462646,
0.19605641067028046,
0.3851836025714874,
0.031624581664800644,
0.40312546491622925,
0.21448113024234772,
-0.11146370321512222,
-0.09128463268280029,
-0.1220177635550499,
0.28122830390930176,
0.3246676027774811,
0.2669115960597992,
0.2754969596862793,
0.1210632398724556,
-0.24934867024421692,
0.10694156587123871,
-0.04537396878004074,
0.10155342519283295,
0.3515597879886627,
-0.16831788420677185,
0.06462055444717407,
-0.16824589669704437,
0.16156992316246033,
0.29566410183906555,
0.25689932703971863,
-0.059767503291368484,
-0.04502670466899872,
0.21922031044960022,
-0.46931326389312744,
-0.2722735106945038,
0.011139498092234135,
0.07040049135684967,
0.08245234191417694,
0.07317259907722473,
0.46005886793136597,
0.14472323656082153,
-0.016832321882247925,
0.027731169015169144,
-0.08601728826761246,
0.14787480235099792,
-0.11266125738620758,
-0.06314852833747864,
0.12503017485141754,
0.06865417957305908,
0.07814235240221024,
0.10393865406513214,
0.0552339032292366,
0.14249427616596222,
-0.18085725605487823,
0.3385636806488037,
-0.006266402080655098,
0.43459901213645935,
-0.249353289604187,
-0.3888387382030487,
-0.22619542479515076,
-0.24832558631896973,
-0.034890949726104736,
0.32378748059272766,
-0.013398811221122742,
-0.1362866312265396,
0.19924944639205933,
0.4045148491859436,
-0.0856475755572319,
-0.05584118515253067,
-0.11347290873527527,
-0.26379624009132385,
-0.36608466506004333,
-0.0012671761214733124,
-0.06414471566677094,
0.06512675434350967,
-0.08705325424671173,
0.035879045724868774,
-0.15460708737373352,
-0.19300659000873566,
-0.7795088291168213,
0.060213156044483185,
0.039272014051675797,
0.30001842975616455,
0.20597073435783386,
-0.1349010318517685,
-0.31092047691345215,
0.044447291642427444,
0.10181453824043274,
-0.37420231103897095,
-0.026989610865712166,
0.4176819622516632,
-0.234972283244133,
0.07670935988426208,
-0.03322930634021759,
-0.22106051445007324,
-0.12886740267276764,
-0.02256770431995392,
-0.05517873167991638,
0.12109822034835815,
0.06527818739414215,
-0.2043251395225525,
0.13932359218597412,
0.3219201862812042,
0.4152189791202545,
-0.09877236187458038,
-0.06713969260454178,
0.22492286562919617,
0.42780083417892456,
-0.2569456398487091,
-0.30135196447372437,
-0.1849203258752823,
-0.0005781408399343491,
0.017254281789064407,
0.00037704315036535263,
-0.32378286123275757,
-0.3601536452770233,
-0.11460632085800171,
-0.1512562334537506,
0.2022000104188919,
0.1691579967737198,
0.061578910797834396,
0.22429531812667847,
0.06467710435390472,
-0.21677902340888977,
-0.16279299557209015,
-0.0702313557267189,
0.24304136633872986,
0.6987829804420471,
-0.23153957724571228,
-0.09995346516370773,
0.08970443904399872,
0.7524693608283997,
0.13057486712932587,
-0.4231865108013153,
0.06254080682992935,
0.2607339024543762,
0.06086177006363869,
-0.11394020169973373,
-0.26714518666267395,
0.1556502878665924,
-0.3145403563976288,
-0.2764021158218384,
0.3156625032424927,
0.11460156738758087,
-0.2804211676120758,
-0.26113003492355347,
-0.20049631595611572,
0.497962087392807,
-0.1756322979927063,
0.0696365237236023,
0.034685440361499786,
-0.04997820407152176,
0.02282247319817543,
-0.11707998067140579,
-0.2740621268749237,
-0.11454524844884872,
0.2060013711452484,
0.02208618074655533,
0.09041710942983627,
0.03668076545000076,
0.4527597427368164,
0.015574602410197258,
-0.7020940780639648,
0.4291403293609619,
0.0912269577383995,
-0.6415278911590576,
0.20079101622104645,
-0.1509195864200592,
-0.08306755125522614,
-0.053233787417411804,
-0.3633204698562622,
0.11488161981105804,
0.03658594191074371,
-0.06340612471103668,
-0.0249025896191597,
-0.28089097142219543,
0.01993602141737938,
-0.26069721579551697,
-0.3109961450099945,
0.610830545425415,
0.3093993365764618,
-0.3783530294895172,
0.05132349580526352,
0.23827728629112244,
0.44776150584220886,
-0.16089613735675812,
0.03582283854484558,
-0.3568870425224304,
-0.21575236320495605,
0.09272853285074234,
-0.11704540997743607,
-0.03972293436527252,
0.28847378492355347,
-0.12854841351509094,
-0.07872030138969421,
0.2440047562122345,
-0.08774781227111816,
0.19971966743469238,
0.04970021918416023,
0.10960333049297333,
-0.09482944011688232,
0.17061839997768402,
0.05049681290984154,
0.06471379846334457,
0.2465956211090088,
0.41445013880729675,
-0.5077797174453735,
-0.47134971618652344,
0.21681606769561768,
0.16121631860733032,
0.171376571059227,
0.10935560613870621,
0.10491976141929626,
-0.1360112726688385,
0.43549826741218567,
0.27228718996047974,
0.18568482995033264,
0.23380295932292938,
0.03917413949966431,
0.3682483434677124,
0.11878301948308945,
-0.1948881894350052,
0.3924103379249573,
-0.17067451775074005,
0.014421425759792328,
0.22706547379493713,
0.06649260222911835,
-0.012271860614418983,
0.12193910777568817,
0.43379995226860046,
0.9371419548988342,
0.14221948385238647,
0.09444376826286316,
0.29919978976249695,
-0.1356029510498047,
0.3273809254169464,
-0.04595355689525604,
0.02885362133383751,
-0.3419892191886902,
-0.26656413078308105,
0.0436377078294754,
-0.04958977922797203,
-0.44529634714126587,
-0.1622661054134369,
-0.1985958367586136,
0.14732946455478668,
-0.35939091444015503,
-0.2568361163139343,
0.2827572524547577,
0.2808370888233185,
0.10884827375411987,
0.03093201294541359,
0.2770256996154785,
0.0805538222193718,
-0.1751105636358261,
0.26924389600753784,
-0.08487462252378464,
-0.18439944088459015,
-0.2621050775051117,
0.1320784091949463,
-0.18024861812591553,
0.3719128668308258,
-0.1005958765745163,
-0.04485560208559036,
-0.060901541262865067,
-0.3492494821548462,
0.07375696301460266,
0.0327625647187233,
0.7054665088653564,
0.09231670200824738,
-0.30709195137023926,
0.0802794098854065,
-0.06213837116956711,
0.17744199931621552,
0.19616703689098358,
-0.1495552659034729,
0.3595603108406067,
-0.1338006556034088,
-0.16223953664302826,
-0.16799679398536682,
0.1469702273607254,
-0.374942421913147,
0.22124618291854858,
-0.16459916532039642,
-0.04554910957813263,
-0.1182495653629303,
0.4033851623535156,
0.334536075592041,
0.15933963656425476,
-0.25532063841819763,
0.07714977860450745,
0.2032802850008011,
-0.26020169258117676,
0.045819494873285294,
0.11606191098690033,
-0.23642213642597198,
0.04023606330156326,
-0.009904541075229645,
0.021524619311094284,
-0.0013387873768806458,
0.2349432408809662,
0.1742059290409088,
-0.11456699669361115,
0.2359018325805664,
-0.6396335959434509,
0.5488198399543762,
-0.36841335892677307,
0.17571499943733215,
-0.1360730528831482,
-0.055177830159664154,
0.1222449541091919,
0.5733031630516052,
0.4357830286026001,
0.214593768119812,
-0.3986990749835968,
0.1854686141014099,
-0.3889481723308563,
0.08772982656955719,
-0.1864098459482193,
0.3603319227695465,
-0.17637765407562256,
0.002971295267343521,
-0.1169334277510643,
0.23120065033435822,
-0.20673412084579468,
0.03993750363588333,
0.1982921063899994,
-0.030683420598506927,
0.009558504447340965,
-0.44185391068458557,
0.02748674340546131,
0.03583286330103874,
-0.23903511464595795,
-0.06395749747753143,
0.11508984118700027,
-0.022896097972989082,
-0.4367920160293579,
0.15885211527347565,
0.23203107714653015,
0.009140953421592712,
-0.32059210538864136,
-0.38937896490097046,
-0.13044020533561707,
-0.18962830305099487,
0.06611335277557373,
0.02737080305814743,
0.06494443118572235,
0.2162599116563797,
0.20794402062892914,
0.020305458456277847,
-0.1601991355419159,
-0.04887624830007553,
0.4102194905281067,
0.16648083925247192,
0.009113995358347893,
-0.034340888261795044,
0.42611536383628845,
-0.02806190401315689,
0.191610187292099,
0.024117950350046158,
-0.02575010061264038,
0.16407084465026855,
0.4158231019973755,
0.13150331377983093,
0.1530119627714157,
-0.3915199935436249,
0.3136760890483856,
0.2520204186439514,
0.2004138082265854,
-0.20123519003391266,
0.21131309866905212,
0.08532007038593292,
-0.24712777137756348,
-0.17805741727352142,
-0.20906931161880493,
0.050173379480838776,
-0.13712051510810852,
0.17602626979351044,
-0.11124195158481598,
0.36048221588134766,
0.38274669647216797,
-0.061240606009960175,
-0.23618638515472412,
-0.2675483226776123,
0.05084873363375664,
0.04483170807361603,
-0.21709813177585602,
0.3127977252006531,
0.5844194889068604,
0.04400515556335449,
0.05221626162528992,
-0.38256537914276123,
-0.11984274536371231,
0.008464330807328224,
-0.2900800406932831,
-0.10884574055671692,
0.3588644862174988,
0.2046004831790924,
-0.10920153558254242,
-0.0990249365568161,
0.15128222107887268,
-0.07170293480157852,
-0.12134423851966858,
0.39471104741096497,
-0.4014691710472107,
-0.16225983202457428,
-0.036914385855197906,
0.3568064570426941,
-0.026629410684108734,
0.06826403737068176,
0.10880771279335022,
-0.21613889932632446,
0.07733318209648132,
-0.015025364235043526,
-0.01827511563897133,
0.0922214463353157,
0.07474455237388611,
0.10134037584066391,
-0.09447568655014038,
0.15066175162792206,
-0.7600207328796387,
0.35006847977638245,
0.2666800320148468,
0.07755811512470245,
-0.19197671115398407,
0.1510922610759735,
-0.11532826721668243,
-0.23615166544914246,
0.3830999732017517,
-0.01669653132557869,
0.2577487528324127,
-0.3252430856227875,
-0.0414283350110054,
0.4066013991832733,
-0.023564809933304787,
0.043433040380477905,
0.11910414695739746,
0.45571082830429077,
-0.13713517785072327,
-0.0801682323217392,
-0.08494983613491058,
-0.17106102406978607,
0.3347723186016083,
-0.39211350679397583,
0.22192387282848358,
0.05730457976460457,
0.8864086866378784,
0.3305411636829376,
-0.20438849925994873,
-0.27269241213798523,
-0.0908331498503685,
-0.29800695180892944,
0.046752918511629105,
0.10341790318489075,
-0.08217296004295349,
0.027586013078689575,
-0.027783527970314026,
0.00605832040309906,
0.12411992251873016,
0.1421763002872467,
0.26756569743156433,
0.2982499897480011,
-0.3599912226200104,
0.2530737519264221,
-0.2842269837856293,
0.1555221974849701,
0.18207043409347534,
0.0662226676940918,
-0.23234178125858307,
-0.007762633264064789,
0.07117771357297897,
-0.1051209419965744,
0.05717360973358154,
-0.2300206422805786,
0.07925627380609512,
-0.21019139885902405,
-0.2341049611568451,
-0.2609885632991791,
0.0678258091211319,
-0.014427637681365013,
0.0045177750289440155,
-0.0863478034734726,
0.023151803761720657,
-0.11450571566820145,
-0.09457800537347794,
0.021241452544927597,
-0.2878333628177643,
0.3728127181529999,
0.3003581166267395,
0.12165756523609161,
0.057157084345817566,
0.5850400924682617,
0.12948977947235107,
-0.17101728916168213,
0.2642609179019928,
0.13617128133773804,
-0.1034359261393547,
-0.18146193027496338,
-0.04337998107075691,
0.2637507915496826,
-0.05089733004570007,
-0.2635940909385681,
-0.5351040959358215,
0.5506894588470459,
0.11400337517261505,
-0.5117968916893005,
-0.2289522886276245,
-0.1617843359708786,
-0.18558961153030396,
-0.10991472005844116,
0.24824397265911102,
0.3811725676059723,
0.13884297013282776,
-0.028627116233110428,
-0.4515780806541443,
0.004064636304974556,
0.4650704264640808,
-0.4754205346107483,
-0.12336941063404083,
-0.12123020738363266,
0.18406891822814941,
0.2990713119506836,
-0.12919822335243225,
-0.8295276165008545,
-0.15432986617088318,
0.095830999314785,
-0.038087427616119385,
-0.13884201645851135,
0.23325423896312714,
0.11724190413951874,
0.25402459502220154,
-0.2943964898586273,
0.5520856380462646,
0.046399179846048355,
-0.1617400050163269,
-0.47914400696754456,
-0.19192837178707123
] |
https://github.com/huggingface/datasets/issues/224 | [Feature Request/Help] BLEURT model -> PyTorch | I created a new model based on `transformers` that can load every BLEURT checkpoints released so far. https://github.com/lucadiliello/bleurt-pytorch | Hi, I am interested in porting google research's new BLEURT learned metric to PyTorch (because I wish to do something experimental with language generation and backpropping through BLEURT). I noticed that you guys don't have it yet so I am partly just asking if you plan to add it (@thomwolf said you want to do so on Twitter).
I had a go of just like manually using the checkpoint that they publish which includes the weights. It seems like the architecture is exactly aligned with the out-of-the-box BertModel in transformers just with a single linear layer on top of the CLS embedding. I loaded all the weights to the PyTorch model but I am not able to get the same numbers as the BLEURT package's python api. Here is my colab notebook where I tried https://colab.research.google.com/drive/1Bfced531EvQP_CpFvxwxNl25Pj6ptylY?usp=sharing . If you have any pointers on what might be going wrong that would be much appreciated!
Thank you muchly! | 18 | [Feature Request/Help] BLEURT model -> PyTorch
Hi, I am interested in porting google research's new BLEURT learned metric to PyTorch (because I wish to do something experimental with language generation and backpropping through BLEURT). I noticed that you guys don't have it yet so I am partly just asking if you plan to add it (@thomwolf said you want to do so on Twitter).
I had a go of just like manually using the checkpoint that they publish which includes the weights. It seems like the architecture is exactly aligned with the out-of-the-box BertModel in transformers just with a single linear layer on top of the CLS embedding. I loaded all the weights to the PyTorch model but I am not able to get the same numbers as the BLEURT package's python api. Here is my colab notebook where I tried https://colab.research.google.com/drive/1Bfced531EvQP_CpFvxwxNl25Pj6ptylY?usp=sharing . If you have any pointers on what might be going wrong that would be much appreciated!
Thank you muchly!
I created a new model based on `transformers` that can load every BLEURT checkpoints released so far. https://github.com/lucadiliello/bleurt-pytorch | [
0.08191867172718048,
-0.23985624313354492,
0.09223052859306335,
0.24715556204319,
0.23364631831645966,
-0.29939377307891846,
0.3237459361553192,
0.15656214952468872,
0.1320991814136505,
0.1091635674238205,
-0.26104670763015747,
0.33532002568244934,
-0.4730604887008667,
0.22970972955226898,
0.025238044559955597,
-0.06324873864650726,
-0.05776584893465042,
0.04284099116921425,
0.12532827258110046,
-0.12722787261009216,
-0.17841513454914093,
0.22720952332019806,
0.05919483304023743,
-0.1064368188381195,
-0.24267376959323883,
0.38832706212997437,
-0.047889307141304016,
0.12318366765975952,
-0.19077351689338684,
-0.10959003120660782,
0.30891671776771545,
-0.03348829969763756,
0.22757266461849213,
0.7907711863517761,
-0.0001245541643584147,
-0.2935870885848999,
0.11428342759609222,
-0.05497169494628906,
-0.35347938537597656,
-0.19005538523197174,
0.4417073428630829,
-0.29107025265693665,
0.12463349103927612,
-0.1731581687927246,
0.00001985207200050354,
-0.06691735237836838,
-0.21956317126750946,
-0.11516959220170975,
0.11222177743911743,
0.24482756853103638,
0.0203079991042614,
0.14037956297397614,
-0.04491329565644264,
0.06678090244531631,
0.1279689371585846,
-0.16201183199882507,
-0.05929260700941086,
0.6025484204292297,
0.30322644114494324,
-0.00780167430639267,
-0.19873759150505066,
0.17736567556858063,
0.0023660026490688324,
0.1421012282371521,
0.6870880126953125,
-0.004715948365628719,
-0.10623345524072647,
-0.03587997704744339,
0.05558619648218155,
0.30766555666923523,
-0.12815937399864197,
-0.16454827785491943,
-0.26264822483062744,
0.11675819009542465,
0.061575811356306076,
-0.2532722055912018,
-0.2509608864784241,
0.11249393969774246,
0.07017309963703156,
-0.23014655709266663,
-0.37243640422821045,
-0.3936135172843933,
-0.15221962332725525,
0.05389872193336487,
-0.24280208349227905,
0.3178342282772064,
-0.017105191946029663,
-0.10351315885782242,
0.1295718103647232,
0.10703088343143463,
0.4431513547897339,
-0.07593633234500885,
0.2589469850063324,
0.23320597410202026,
0.021176282316446304,
-0.2492971420288086,
0.2823042571544647,
0.04825110733509064,
0.014900658279657364,
-0.23357893526554108,
-0.1628565788269043,
0.2058565318584442,
-0.243324875831604,
0.008044224232435226,
-0.05201028659939766,
0.3115135729312897,
0.054917458444833755,
0.3866777718067169,
0.27666258811950684,
0.37457695603370667,
0.04145621880888939,
-0.039374805986881256,
-0.1201295405626297,
-0.13783061504364014,
0.21207669377326965,
0.18403682112693787,
-0.2590511739253998,
-0.2926484942436218,
-0.07381244748830795,
-0.03571407124400139,
-0.2894897758960724,
-0.18249931931495667,
0.32380738854408264,
0.18520376086235046,
-0.515264630317688,
-0.02878502383828163,
0.5197301506996155,
0.04509022459387779,
-0.20664383471012115,
0.047358207404613495,
-0.11155486851930618,
-0.12785254418849945,
-0.3121214807033539,
0.09535488486289978,
0.2057601362466812,
-0.2041095495223999,
0.30520984530448914,
-0.06394615024328232,
0.45101815462112427,
0.10408085584640503,
0.2249925434589386,
0.3825312852859497,
0.0942184254527092,
-0.21534313261508942,
-0.17750471830368042,
-0.32073625922203064,
0.1788730025291443,
0.02401372790336609,
-0.13147306442260742,
0.020414095371961594,
-0.08133042603731155,
-0.2767854332923889,
-0.06615405529737473,
0.01625087670981884,
-0.32663702964782715,
-0.0698753297328949,
0.00784572958946228,
0.3421958386898041,
0.07821717858314514,
-0.2775900363922119,
-0.0463033989071846,
-0.26666080951690674,
-0.13215520977973938,
0.0501973032951355,
0.36914730072021484,
-0.1622709482908249,
-0.3617665469646454,
-0.4466346800327301,
0.1562805324792862,
0.46442896127700806,
0.2096334993839264,
0.14241798222064972,
-0.20029933750629425,
-0.09133487194776535,
0.19705231487751007,
-0.36419129371643066,
0.2951664626598358,
0.1650369018316269,
-0.30064836144447327,
-0.23526272177696228,
0.12727724015712738,
-0.3097418248653412,
-0.19204610586166382,
0.08312736451625824,
-0.1761803776025772,
-0.06431382894515991,
0.3358322083950043,
0.1700965166091919,
-0.1692528873682022,
-0.0581410750746727,
-0.31993386149406433,
-0.24881920218467712,
0.25976288318634033,
0.16493764519691467,
0.3670499920845032,
-0.03409361094236374,
0.14825297892093658,
0.480168879032135,
0.08327330648899078,
-0.339382529258728,
-0.045891158282756805,
-0.1804414689540863,
0.44588086009025574,
-0.4302905201911926,
0.39808160066604614,
-0.1770169734954834,
-0.06872191280126572,
0.2124643623828888,
-0.3518590033054352,
0.31677985191345215,
0.18156525492668152,
0.09803497791290283,
-0.1384413242340088,
-0.055777572095394135,
0.2796141505241394,
-0.08806844055652618,
-0.11541634052991867,
-0.12652574479579926,
-0.23689821362495422,
-0.19200722873210907,
-0.20276552438735962,
-0.23854473233222961,
-0.14279328286647797,
-0.01908542960882187,
0.2070145606994629,
0.308479368686676,
-0.0370832160115242,
-0.158798947930336,
-0.0686718225479126,
0.38388025760650635,
0.1894618272781372,
0.21841146051883698,
0.0010045738890767097,
-0.2577179968357086,
0.21049022674560547,
-0.21150536835193634,
0.26811495423316956,
0.16868314146995544,
0.3699072003364563,
0.00953831896185875,
0.3236755430698395,
0.28627175092697144,
-0.09329286217689514,
-0.07509497553110123,
-0.15742561221122742,
0.28990092873573303,
0.304578572511673,
0.26123619079589844,
0.28971076011657715,
0.07375817000865936,
-0.2131059467792511,
0.10405254364013672,
-0.019635356962680817,
0.16952013969421387,
0.3602485656738281,
-0.0667843222618103,
-0.016252001747488976,
-0.18869411945343018,
0.1596238613128662,
0.21867427229881287,
0.28130894899368286,
-0.013491176068782806,
-0.008501783013343811,
0.167546808719635,
-0.5116503834724426,
-0.29317811131477356,
-0.04320060461759567,
0.031481269747018814,
0.14307264983654022,
0.07873047143220901,
0.4618060290813446,
0.08827922493219376,
-0.006879736669361591,
0.03130344673991203,
-0.12850213050842285,
0.13478881120681763,
-0.2162313610315323,
-0.036115147173404694,
0.0733749121427536,
0.06347095966339111,
0.09934314340353012,
0.03293784335255623,
0.06542783230543137,
0.1425919234752655,
-0.1652432680130005,
0.3640111982822418,
0.07864601910114288,
0.3426496982574463,
-0.20881271362304688,
-0.4712302088737488,
-0.1794205904006958,
-0.22433319687843323,
0.02460143156349659,
0.3334648609161377,
0.07771527767181396,
-0.1923937052488327,
0.20654751360416412,
0.5104628205299377,
-0.06511469930410385,
-0.03591638803482056,
-0.02896127477288246,
-0.2999427318572998,
-0.3182193636894226,
0.0012873206287622452,
-0.021612338721752167,
0.05523248016834259,
-0.04594703018665314,
0.03195136785507202,
-0.11708692461252213,
-0.18050330877304077,
-0.7479506134986877,
0.03879215568304062,
0.04457590728998184,
0.34232327342033386,
0.16782885789871216,
-0.11209042370319366,
-0.3390311598777771,
0.0703020691871643,
0.022624116390943527,
-0.4008253514766693,
-0.05497909337282181,
0.31495872139930725,
-0.2279011309146881,
0.06977131217718124,
-0.004379671066999435,
-0.19597336649894714,
-0.07572924345731735,
-0.034692730754613876,
0.03751641511917114,
0.21366369724273682,
0.05475052446126938,
-0.19949449598789215,
0.1107635498046875,
0.33644944429397583,
0.4389064908027649,
-0.16189591586589813,
-0.0809008926153183,
0.18821172416210175,
0.46513134241104126,
-0.3119291663169861,
-0.31603217124938965,
-0.1297910511493683,
-0.06199818477034569,
0.0753253847360611,
-0.05154434219002724,
-0.3100798726081848,
-0.34414926171302795,
-0.09828665852546692,
-0.11391235888004303,
0.18587982654571533,
0.18426264822483063,
0.05968828871846199,
0.1538114845752716,
0.11600084602832794,
-0.2077326476573944,
-0.17987503111362457,
-0.0615205392241478,
0.19506439566612244,
0.7362264394760132,
-0.2273692488670349,
-0.1756967008113861,
0.04648816958069801,
0.8802390098571777,
0.21137258410453796,
-0.400068998336792,
0.07526558637619019,
0.29310330748558044,
0.0803423821926117,
-0.05739317089319229,
-0.2563038170337677,
0.1176857203245163,
-0.2951687276363373,
-0.24099504947662354,
0.35378074645996094,
0.12198523432016373,
-0.24380303919315338,
-0.29705947637557983,
-0.24849915504455566,
0.49449482560157776,
-0.13081061840057373,
0.04037490487098694,
0.05026187375187874,
-0.03271479159593582,
-0.03426637873053551,
-0.0707588642835617,
-0.29317745566368103,
-0.10657482594251633,
0.21117542684078217,
0.006401509046554565,
0.08732917904853821,
-0.02126086875796318,
0.44744569063186646,
0.02456790953874588,
-0.6201539635658264,
0.43852686882019043,
0.07379066944122314,
-0.6292089223861694,
0.21252067387104034,
-0.13969571888446808,
-0.025644689798355103,
-0.07741975039243698,
-0.35474294424057007,
0.11474451422691345,
-0.01039465144276619,
-0.14343920350074768,
-0.0013550706207752228,
-0.29405948519706726,
0.08845512568950653,
-0.1875629872083664,
-0.36381465196609497,
0.5734493732452393,
0.28729507327079773,
-0.3894573152065277,
0.11944951862096786,
0.18017543852329254,
0.4234400689601898,
-0.20546668767929077,
-0.024870669469237328,
-0.3402152955532074,
-0.2610248029232025,
0.08405698090791702,
-0.12134385854005814,
-0.03777521103620529,
0.26303011178970337,
-0.04292118549346924,
-0.05367845296859741,
0.15498293936252594,
-0.15792778134346008,
0.20657625794410706,
0.08356846868991852,
0.08938443660736084,
-0.08361877501010895,
0.17790469527244568,
0.12246387451887131,
-0.05933878570795059,
0.25414279103279114,
0.48981648683547974,
-0.3892752230167389,
-0.46233391761779785,
0.18295815587043762,
0.17073829472064972,
0.17563702166080475,
0.10218116641044617,
0.11471014469861984,
-0.047684840857982635,
0.4055463373661041,
0.21572934091091156,
0.20835120975971222,
0.28175580501556396,
0.08409146964550018,
0.41627806425094604,
0.07159998267889023,
-0.1641836017370224,
0.3276977837085724,
-0.14525040984153748,
0.006200365722179413,
0.29129505157470703,
-0.10747027397155762,
0.0069600241258740425,
0.09648522734642029,
0.4665907323360443,
0.9462308883666992,
0.17169244587421417,
0.13069464266300201,
0.32400718331336975,
-0.19836728274822235,
0.2810836434364319,
-0.11173594743013382,
0.024137569591403008,
-0.3822711408138275,
-0.3716437816619873,
-0.009610738605260849,
-0.0496397465467453,
-0.40975049138069153,
-0.2832019329071045,
-0.19893424212932587,
0.17012445628643036,
-0.3423958420753479,
-0.26137179136276245,
0.2870935797691345,
0.26726436614990234,
0.03923969715833664,
0.09201422333717346,
0.2709979712963104,
0.04237464815378189,
-0.1741243600845337,
0.2888481318950653,
-0.08371169120073318,
-0.2007114142179489,
-0.25869515538215637,
0.09669847786426544,
-0.2174694836139679,
0.3080074191093445,
-0.06505663692951202,
-0.02069716900587082,
-0.028839003294706345,
-0.3135327696800232,
-0.01399301365017891,
0.042160093784332275,
0.725473940372467,
0.09226527810096741,
-0.3535691499710083,
0.10490007698535919,
-0.04612908512353897,
0.10324899852275848,
0.11280759423971176,
-0.14022007584571838,
0.36442792415618896,
-0.17134016752243042,
-0.16223254799842834,
-0.09246180206537247,
0.19327490031719208,
-0.3606204390525818,
0.16022339463233948,
-0.14478090405464172,
-0.07897841930389404,
-0.061164963990449905,
0.3507038950920105,
0.32875269651412964,
0.10733489692211151,
-0.2261127382516861,
0.06453873217105865,
0.24476966261863708,
-0.2610693871974945,
0.058091096580028534,
0.12415191531181335,
-0.21216046810150146,
-0.004573523998260498,
0.011859841644763947,
-0.006003480404615402,
-0.07944664359092712,
0.22006948292255402,
0.17077860236167908,
-0.12226550281047821,
0.2309724986553192,
-0.5195057392120361,
0.5668999552726746,
-0.3906276524066925,
0.14826330542564392,
-0.12255700677633286,
-0.0025098025798797607,
0.143253356218338,
0.6606575846672058,
0.48167210817337036,
0.15797138214111328,
-0.43811750411987305,
0.09878845512866974,
-0.4145410656929016,
0.11058054864406586,
-0.2887739837169647,
0.31697574257850647,
-0.1836181879043579,
-0.04508621245622635,
-0.049858998507261276,
0.32053765654563904,
-0.19027729332447052,
0.02469925582408905,
0.17821501195430756,
-0.0918990820646286,
-0.04447731375694275,
-0.4603576958179474,
0.08048003911972046,
0.07147996127605438,
-0.26876622438430786,
-0.08857348561286926,
0.08215542137622833,
-0.006699997931718826,
-0.4463173449039459,
0.17365500330924988,
0.22911185026168823,
0.03786122798919678,
-0.31048205494880676,
-0.3952036499977112,
-0.07030759751796722,
-0.14139477908611298,
-0.01685062050819397,
0.010247055441141129,
0.07024845480918884,
0.27979815006256104,
0.21293537318706512,
0.021936774253845215,
-0.24947980046272278,
-0.019351929426193237,
0.4032984673976898,
0.09556127339601517,
0.07237374782562256,
-0.08212296664714813,
0.38191458582878113,
-0.007723063230514526,
0.13608716428279877,
0.0741812214255333,
0.013666599988937378,
0.09331962466239929,
0.44037771224975586,
0.0977562740445137,
0.20879921317100525,
-0.3680649399757385,
0.21748511493206024,
0.26076287031173706,
0.17839102447032928,
-0.14567673206329346,
0.23673734068870544,
0.06117462366819382,
-0.2534448504447937,
-0.21213829517364502,
-0.21816565096378326,
0.07027389854192734,
-0.15284878015518188,
0.2276061773300171,
-0.11678625643253326,
0.3293752670288086,
0.4092753529548645,
-0.03433484584093094,
-0.324983686208725,
-0.20851947367191315,
0.06948168575763702,
0.11809369176626205,
-0.20500871539115906,
0.2858216464519501,
0.5714265704154968,
0.08449208736419678,
0.06559572368860245,
-0.44380074739456177,
-0.1103246882557869,
0.02143353596329689,
-0.3484426736831665,
-0.15270818769931793,
0.37918344140052795,
0.17405158281326294,
-0.09925752878189087,
-0.23522919416427612,
0.2072868049144745,
-0.1174691841006279,
-0.07912041246891022,
0.4470658004283905,
-0.32434165477752686,
-0.11291033029556274,
-0.038196250796318054,
0.3188929557800293,
0.006848394870758057,
0.05757942423224449,
0.10323847830295563,
-0.1736905723810196,
0.03377453237771988,
-0.0037612318992614746,
0.01593417301774025,
0.06484021246433258,
0.07400546967983246,
0.08315762877464294,
-0.0896616280078888,
0.19305162131786346,
-0.6791419982910156,
0.36636731028556824,
0.2550883889198303,
0.06722617149353027,
-0.18912936747074127,
0.13111495971679688,
-0.06464843451976776,
-0.19759714603424072,
0.3117649257183075,
-0.05966724827885628,
0.23829402029514313,
-0.39472976326942444,
-0.030873913317918777,
0.34052085876464844,
-0.016318950802087784,
0.06280001252889633,
0.15184426307678223,
0.44526389241218567,
-0.1400640904903412,
-0.03480454906821251,
-0.09771113097667694,
-0.14829441905021667,
0.4640447497367859,
-0.41653773188591003,
0.1834319531917572,
0.003626229241490364,
0.9617998600006104,
0.3471239507198334,
-0.21630507707595825,
-0.23908954858779907,
-0.1140814945101738,
-0.3573741912841797,
0.08305002003908157,
0.0701250433921814,
-0.06788467615842819,
-0.019947979599237442,
-0.06792697310447693,
-0.01213027723133564,
0.10775409638881683,
0.18167471885681152,
0.3185821771621704,
0.45306596159935,
-0.3241787254810333,
0.2779649496078491,
-0.25040963292121887,
0.17473870515823364,
0.20348699390888214,
0.08098626881837845,
-0.14794375002384186,
-0.057189568877220154,
0.022398412227630615,
-0.053317293524742126,
0.07805543392896652,
-0.25151827931404114,
0.11049707978963852,
-0.16021694242954254,
-0.2730919420719147,
-0.2655668258666992,
0.0727415457367897,
-0.012858318164944649,
-0.01308553945273161,
-0.09884865581989288,
0.00029602646827697754,
-0.1296793520450592,
-0.12926700711250305,
0.03694160282611847,
-0.40644919872283936,
0.36353662610054016,
0.3193744421005249,
0.08014196157455444,
-0.03501676023006439,
0.6740095615386963,
0.1697043478488922,
-0.14871567487716675,
0.24475611746311188,
0.18311387300491333,
-0.1073191910982132,
-0.2380765974521637,
0.051582854241132736,
0.26675671339035034,
-0.12082763761281967,
-0.3051673173904419,
-0.47014594078063965,
0.6093776226043701,
0.13328084349632263,
-0.4884888827800751,
-0.14370927214622498,
-0.1817319542169571,
-0.21656522154808044,
-0.11885619163513184,
0.26382339000701904,
0.37249720096588135,
0.09830647706985474,
-0.012889058329164982,
-0.3830839991569519,
0.08028348535299301,
0.4935007095336914,
-0.4538560211658478,
-0.10938957333564758,
-0.08608780801296234,
0.1390162855386734,
0.31693005561828613,
-0.19720330834388733,
-0.9128797650337219,
-0.14301222562789917,
0.14519359171390533,
-0.007392365485429764,
-0.1197337806224823,
0.273556649684906,
0.13842321932315826,
0.26661574840545654,
-0.26095089316368103,
0.5379102230072021,
-0.01337495818734169,
-0.09343677014112473,
-0.5162856578826904,
-0.26199960708618164
] |
https://github.com/huggingface/datasets/issues/224 | [Feature Request/Help] BLEURT model -> PyTorch | @LoraIpsum Thanks for sharing your work here. However, I'm unable to reproduce the results. That's strange because you are. FYI, I am trying to convert a finetuned BLEURT to PyTorch. Any suggestions on how I can reproduce results? | Hi, I am interested in porting google research's new BLEURT learned metric to PyTorch (because I wish to do something experimental with language generation and backpropping through BLEURT). I noticed that you guys don't have it yet so I am partly just asking if you plan to add it (@thomwolf said you want to do so on Twitter).
I had a go of just like manually using the checkpoint that they publish which includes the weights. It seems like the architecture is exactly aligned with the out-of-the-box BertModel in transformers just with a single linear layer on top of the CLS embedding. I loaded all the weights to the PyTorch model but I am not able to get the same numbers as the BLEURT package's python api. Here is my colab notebook where I tried https://colab.research.google.com/drive/1Bfced531EvQP_CpFvxwxNl25Pj6ptylY?usp=sharing . If you have any pointers on what might be going wrong that would be much appreciated!
Thank you muchly! | 38 | [Feature Request/Help] BLEURT model -> PyTorch
Hi, I am interested in porting google research's new BLEURT learned metric to PyTorch (because I wish to do something experimental with language generation and backpropping through BLEURT). I noticed that you guys don't have it yet so I am partly just asking if you plan to add it (@thomwolf said you want to do so on Twitter).
I had a go of just like manually using the checkpoint that they publish which includes the weights. It seems like the architecture is exactly aligned with the out-of-the-box BertModel in transformers just with a single linear layer on top of the CLS embedding. I loaded all the weights to the PyTorch model but I am not able to get the same numbers as the BLEURT package's python api. Here is my colab notebook where I tried https://colab.research.google.com/drive/1Bfced531EvQP_CpFvxwxNl25Pj6ptylY?usp=sharing . If you have any pointers on what might be going wrong that would be much appreciated!
Thank you muchly!
@LoraIpsum Thanks for sharing your work here. However, I'm unable to reproduce the results. That's strange because you are. FYI, I am trying to convert a finetuned BLEURT to PyTorch. Any suggestions on how I can reproduce results? | [
0.10374175012111664,
-0.29401519894599915,
0.09365656971931458,
0.2587738037109375,
0.2691501975059509,
-0.2752821147441864,
0.3269786834716797,
0.11130602657794952,
0.12048503756523132,
0.18418921530246735,
-0.2886863052845001,
0.37208011746406555,
-0.4867558181285858,
0.22970779240131378,
0.04382195696234703,
-0.12434634566307068,
-0.05205429345369339,
0.0911540538072586,
0.05827305465936661,
-0.18900009989738464,
-0.05102749168872833,
0.21509425342082977,
0.06362167000770569,
-0.08870948851108551,
-0.23130565881729126,
0.34626853466033936,
-0.07294417917728424,
0.11487661302089691,
-0.2281254529953003,
-0.03355272859334946,
0.2761075496673584,
-0.08322235941886902,
0.16675445437431335,
0.7771579027175903,
-0.0001231872447533533,
-0.31069785356521606,
0.11748039722442627,
-0.00944601185619831,
-0.3171517252922058,
-0.17196659743785858,
0.4157542288303375,
-0.2649781405925751,
0.12554223835468292,
-0.23562553524971008,
0.0016363300383090973,
-0.1105719730257988,
-0.2699899971485138,
-0.11158059537410736,
0.12147798389196396,
0.20760175585746765,
0.03784041106700897,
0.11102569103240967,
-0.06881803274154663,
0.09353457391262054,
0.17428845167160034,
-0.13738395273685455,
-0.06138195842504501,
0.5420635342597961,
0.3560525178909302,
0.0029400037601590157,
-0.17854094505310059,
0.16070054471492767,
0.02034417726099491,
0.10313402116298676,
0.6768608093261719,
0.06223616749048233,
-0.14388298988342285,
-0.11377690732479095,
0.030551830306649208,
0.34574049711227417,
-0.10519055277109146,
-0.17467042803764343,
-0.23649674654006958,
0.16437751054763794,
0.07961004227399826,
-0.18006789684295654,
-0.2745822072029114,
0.1716022789478302,
0.08686059713363647,
-0.2085152268409729,
-0.39247360825538635,
-0.34638962149620056,
-0.2201911360025406,
0.06283684074878693,
-0.297657310962677,
0.32790595293045044,
-0.07354424893856049,
-0.1567334532737732,
0.13202925026416779,
0.05999927967786789,
0.3219204545021057,
-0.16357286274433136,
0.3746151328086853,
0.22360700368881226,
0.03875231742858887,
-0.24463196098804474,
0.19905537366867065,
0.018714945763349533,
0.03063751384615898,
-0.2926286458969116,
-0.13597488403320312,
0.19176790118217468,
-0.2855530381202698,
0.029383467510342598,
-0.10514494776725769,
0.4093450605869293,
-0.021663062274456024,
0.3576820492744446,
0.26296600699424744,
0.42733660340309143,
0.024492453783750534,
-0.02582709491252899,
-0.11870721727609634,
-0.11470023542642593,
0.19590315222740173,
0.15723910927772522,
-0.25054511427879333,
-0.3485347330570221,
-0.09800022095441818,
-0.03259654715657234,
-0.2728344798088074,
-0.14898790419101715,
0.3309282958507538,
0.16078370809555054,
-0.5353281497955322,
-0.06210087239742279,
0.564697265625,
0.040566056966781616,
-0.1558026224374771,
0.06893733888864517,
-0.11264966428279877,
-0.05338865891098976,
-0.36216771602630615,
0.06117745488882065,
0.21852247416973114,
-0.15208573639392853,
0.2674226760864258,
0.008628726936876774,
0.5173791646957397,
0.10271529853343964,
0.21487417817115784,
0.42875805497169495,
0.1664329469203949,
-0.22854845225811005,
-0.2161267250776291,
-0.31506094336509705,
0.18639221787452698,
0.08176180720329285,
-0.1151699423789978,
0.083816297352314,
-0.09736207872629166,
-0.24188312888145447,
-0.12434951961040497,
0.034756727516651154,
-0.3715038299560547,
-0.04176871478557587,
0.0499861054122448,
0.3122323751449585,
0.09385319799184799,
-0.2140301764011383,
0.005678780376911163,
-0.28957581520080566,
-0.13783980906009674,
0.07626443356275558,
0.4400293529033661,
-0.20136474072933197,
-0.37410345673561096,
-0.42213258147239685,
0.10787932574748993,
0.47356343269348145,
0.32146525382995605,
0.17244820296764374,
-0.1827056109905243,
-0.11371811479330063,
0.19950951635837555,
-0.3113729953765869,
0.3066779673099518,
0.17615018784999847,
-0.2815445065498352,
-0.22275112569332123,
0.12678757309913635,
-0.2553325295448303,
-0.20253056287765503,
0.030227676033973694,
-0.1437482237815857,
-0.009338043630123138,
0.31316208839416504,
0.1974923461675644,
-0.11568480730056763,
-0.061387546360492706,
-0.3795084059238434,
-0.26576656103134155,
0.253989040851593,
0.10081861913204193,
0.2906651496887207,
0.037549860775470734,
0.13725151121616364,
0.47334665060043335,
0.12110427767038345,
-0.3692445755004883,
-0.010709504596889019,
-0.2418883889913559,
0.4702451229095459,
-0.4424699544906616,
0.39014124870300293,
-0.22830885648727417,
-0.03903213143348694,
0.24559542536735535,
-0.3768545389175415,
0.3877527713775635,
0.14599142968654633,
0.10838885605335236,
-0.15356135368347168,
-0.04736766219139099,
0.28940674662590027,
-0.04958242550492287,
-0.08007822930812836,
-0.18407338857650757,
-0.22366759181022644,
-0.21298742294311523,
-0.16698479652404785,
-0.26400846242904663,
-0.21571466326713562,
-0.08979978412389755,
0.2181713879108429,
0.33784499764442444,
-0.058194324374198914,
-0.14649741351604462,
-0.09584172070026398,
0.3892105221748352,
0.1548357605934143,
0.22361311316490173,
-0.015406237915158272,
-0.2965904772281647,
0.1234254390001297,
-0.18078921735286713,
0.23313751816749573,
0.18201154470443726,
0.4030052125453949,
-0.08639055490493774,
0.3628787696361542,
0.255948543548584,
-0.06745389848947525,
-0.06293486803770065,
-0.22127780318260193,
0.2958856225013733,
0.32977646589279175,
0.30560779571533203,
0.27207958698272705,
0.10291686654090881,
-0.2780395448207855,
0.06834307312965393,
-0.06593503057956696,
0.1562529057264328,
0.3635229468345642,
-0.13540564477443695,
-0.006071845069527626,
-0.201424241065979,
0.15490619838237762,
0.23922568559646606,
0.2566140294075012,
-0.06670251488685608,
-0.026651643216609955,
0.1574554294347763,
-0.4678437113761902,
-0.27729925513267517,
-0.01764943264424801,
-0.007327526807785034,
0.08263508230447769,
0.10238879173994064,
0.4716148376464844,
0.10276902467012405,
-0.011216697283089161,
0.051309362053871155,
-0.11234813183546066,
0.15726979076862335,
-0.1511366218328476,
-0.051262520253658295,
0.09371914714574814,
0.132407084107399,
0.10660680383443832,
0.02717316523194313,
0.04185323417186737,
0.10333342105150223,
-0.18966355919837952,
0.3725374639034271,
0.0648665800690651,
0.39807581901550293,
-0.2257634997367859,
-0.3718995749950409,
-0.15323157608509064,
-0.24886925518512726,
-0.042260296642780304,
0.2528177499771118,
0.04909689351916313,
-0.1964135318994522,
0.19954608380794525,
0.48432207107543945,
-0.06181544065475464,
-0.040371909737586975,
-0.15663820505142212,
-0.18418769538402557,
-0.3504886329174042,
0.007205922156572342,
-0.036422520875930786,
0.13836342096328735,
-0.04232824593782425,
0.027713971212506294,
-0.10837986320257187,
-0.1762097030878067,
-0.7722940444946289,
0.07544858753681183,
0.03616603463888168,
0.33236485719680786,
0.1443696916103363,
-0.11890064179897308,
-0.29858267307281494,
0.05906505137681961,
0.03359360247850418,
-0.3945019543170929,
-0.07561253011226654,
0.33798331022262573,
-0.21794341504573822,
0.06719452887773514,
-0.026401225477457047,
-0.20472931861877441,
-0.10336639732122421,
-0.025270814076066017,
-0.0150480717420578,
0.14203257858753204,
0.08201321214437485,
-0.15906739234924316,
0.11959461867809296,
0.3850191533565521,
0.4280567765235901,
-0.09256033599376678,
-0.05828511342406273,
0.22658675909042358,
0.4520065486431122,
-0.296463280916214,
-0.32369083166122437,
-0.13290154933929443,
-0.028372565284371376,
0.03567124530673027,
-0.025482211261987686,
-0.32044386863708496,
-0.2892827093601227,
-0.19228477776050568,
-0.09838961064815521,
0.1521623432636261,
0.18548178672790527,
0.040591392666101456,
0.183907151222229,
0.06242555379867554,
-0.23535165190696716,
-0.15198315680027008,
-0.0901922807097435,
0.23866146802902222,
0.6974188089370728,
-0.2178322970867157,
-0.20411914587020874,
0.05270997807383537,
0.8087514638900757,
0.1591213345527649,
-0.429712176322937,
0.05008543282747269,
0.25076577067375183,
0.06540092080831528,
-0.06577252596616745,
-0.2543547451496124,
0.1340993195772171,
-0.30569493770599365,
-0.2830231785774231,
0.33755427598953247,
0.12222325801849365,
-0.2769187390804291,
-0.28515681624412537,
-0.207576185464859,
0.5066161155700684,
-0.13696058094501495,
0.022610848769545555,
0.02009546384215355,
-0.051272325217723846,
-0.05382716283202171,
-0.1221669465303421,
-0.19205892086029053,
-0.09799723327159882,
0.22439953684806824,
-0.011950470507144928,
0.08812028169631958,
-0.020835895091295242,
0.46061480045318604,
-0.04285546392202377,
-0.6434552073478699,
0.40592265129089355,
0.04234333708882332,
-0.6476101279258728,
0.182852640748024,
-0.1187179908156395,
0.011128611862659454,
-0.09630312025547028,
-0.3119329810142517,
0.1459762454032898,
0.05753608047962189,
-0.08953770995140076,
0.06660302728414536,
-0.24527420103549957,
0.05621318146586418,
-0.3031381070613861,
-0.3246818780899048,
0.5381336212158203,
0.35130420327186584,
-0.3284882605075836,
0.0675271600484848,
0.20324468612670898,
0.47540712356567383,
-0.1631084829568863,
-0.030472159385681152,
-0.3617829978466034,
-0.2710050642490387,
0.11448425054550171,
-0.08954080194234848,
-0.012888321653008461,
0.3004353642463684,
-0.10984636098146439,
-0.09288102388381958,
0.2234901636838913,
-0.055310286581516266,
0.20209553837776184,
0.08183765411376953,
0.06869612634181976,
-0.05601205676794052,
0.1570972502231598,
0.08172671496868134,
0.006485912948846817,
0.18516577780246735,
0.4360569715499878,
-0.4328036308288574,
-0.41103923320770264,
0.21273386478424072,
0.1981666088104248,
0.15896934270858765,
0.11919446289539337,
0.11067061126232147,
-0.0945960059762001,
0.42812901735305786,
0.24125555157661438,
0.23510800302028656,
0.26901009678840637,
0.10812720656394958,
0.4089719355106354,
0.06698886305093765,
-0.1542544960975647,
0.3889807164669037,
-0.14085103571414948,
0.0004642605781555176,
0.2171008437871933,
0.027006909251213074,
0.0004937099292874336,
0.07376955449581146,
0.49975839257240295,
1.0331114530563354,
0.12656953930854797,
0.13222134113311768,
0.30305519700050354,
-0.23292677104473114,
0.38208234310150146,
-0.06571454554796219,
0.03349035978317261,
-0.35282477736473083,
-0.3107866644859314,
0.04503326117992401,
-0.08942893892526627,
-0.3748960494995117,
-0.22894667088985443,
-0.284456342458725,
0.10100887715816498,
-0.400193452835083,
-0.26928892731666565,
0.31047216057777405,
0.290617972612381,
0.07850468903779984,
0.04919445142149925,
0.24565158784389496,
0.06985548138618469,
-0.1527688205242157,
0.30712077021598816,
-0.08448875695466995,
-0.19565646350383759,
-0.3085552752017975,
0.1900755614042282,
-0.22129079699516296,
0.3916268050670624,
-0.04634011164307594,
-0.07495947182178497,
-0.07535526156425476,
-0.40143662691116333,
0.12165072560310364,
0.04143957421183586,
0.688069224357605,
0.13252221047878265,
-0.3886704444885254,
0.07808832824230194,
-0.08391400426626205,
0.1357785314321518,
0.18382775783538818,
-0.19378533959388733,
0.36431118845939636,
-0.1751137375831604,
-0.19834405183792114,
-0.12978798151016235,
0.16336257755756378,
-0.2751237750053406,
0.19916030764579773,
-0.12885655462741852,
-0.07995718717575073,
-0.12033367156982422,
0.33259138464927673,
0.3573174476623535,
0.12311330437660217,
-0.23110412061214447,
0.08711490035057068,
0.22111135721206665,
-0.31707027554512024,
0.12465611100196838,
0.15228503942489624,
-0.21375170350074768,
0.06556214392185211,
-0.013623528182506561,
0.05395333468914032,
-0.03169551119208336,
0.2111453413963318,
0.18594013154506683,
-0.10272057354450226,
0.21221894025802612,
-0.5508654713630676,
0.5515321493148804,
-0.40002062916755676,
0.12296508252620697,
-0.14590638875961304,
-0.007199615240097046,
0.08253009617328644,
0.6496471762657166,
0.4643287658691406,
0.21869391202926636,
-0.43864187598228455,
0.13139884173870087,
-0.3928971588611603,
0.08586642146110535,
-0.2170586735010147,
0.3794986307621002,
-0.2122776210308075,
-0.030274339020252228,
-0.046381957828998566,
0.21712340414524078,
-0.2144850343465805,
0.021482376381754875,
0.16001544892787933,
-0.09990102052688599,
-0.00093788281083107,
-0.4501134753227234,
0.04498032107949257,
0.043962422758340836,
-0.25326743721961975,
-0.10880962014198303,
0.1418342888355255,
-0.03275013342499733,
-0.3994252681732178,
0.15469133853912354,
0.23442813754081726,
0.04585924744606018,
-0.27528059482574463,
-0.36870479583740234,
-0.11086033284664154,
-0.1695237010717392,
0.05484182760119438,
0.0022359266877174377,
0.0767088532447815,
0.2445119470357895,
0.14632439613342285,
0.019601594656705856,
-0.2751970887184143,
-0.030519001185894012,
0.44249609112739563,
0.09495481848716736,
0.07682427763938904,
-0.04283925145864487,
0.44326871633529663,
-0.04463089630007744,
0.17494086921215057,
0.0793934017419815,
-0.009293198585510254,
0.12596368789672852,
0.44737863540649414,
0.09057433903217316,
0.22047168016433716,
-0.40570902824401855,
0.31209561228752136,
0.2611472010612488,
0.1640414148569107,
-0.1843181848526001,
0.20598480105400085,
0.08808758109807968,
-0.27491673827171326,
-0.2076021134853363,
-0.2546764314174652,
0.0019137272611260414,
-0.1359654664993286,
0.19373488426208496,
-0.15020668506622314,
0.34830933809280396,
0.38489794731140137,
-0.0755782425403595,
-0.2289794534444809,
-0.17247653007507324,
0.024932051077485085,
0.05180789530277252,
-0.21845272183418274,
0.30455443263053894,
0.5273664593696594,
0.04125117510557175,
0.03741377592086792,
-0.4029720425605774,
-0.09712701290845871,
0.03411326929926872,
-0.2802370488643646,
-0.11731196939945221,
0.3813090920448303,
0.197230264544487,
-0.08874189853668213,
-0.15758401155471802,
0.1919916272163391,
-0.08589600771665573,
-0.13002827763557434,
0.41609805822372437,
-0.356475293636322,
-0.1554582267999649,
0.008423810824751854,
0.3490438461303711,
0.010401373729109764,
0.08724214136600494,
0.08729346096515656,
-0.20992717146873474,
0.055969953536987305,
-0.05893047899007797,
-0.00710437074303627,
0.11322331428527832,
0.07277064025402069,
0.06286250054836273,
-0.12147289514541626,
0.18742556869983673,
-0.6745946407318115,
0.4206066429615021,
0.31480851769447327,
0.06621503829956055,
-0.16542519629001617,
0.12603239715099335,
-0.074859619140625,
-0.2434474527835846,
0.37302547693252563,
-0.01999502256512642,
0.23678438365459442,
-0.32668250799179077,
-0.046365316957235336,
0.35400840640068054,
-0.03997732326388359,
0.08493698388338089,
0.13879446685314178,
0.48040518164634705,
-0.1939379870891571,
-0.04714091494679451,
-0.09919115155935287,
-0.16429586708545685,
0.3894643783569336,
-0.34553271532058716,
0.19987167418003082,
-0.039326008409261703,
0.8625714182853699,
0.32924917340278625,
-0.23454171419143677,
-0.25503435730934143,
-0.09914552420377731,
-0.35479268431663513,
0.07337421178817749,
0.06496046483516693,
-0.0983872264623642,
-0.01639220118522644,
-0.012669069692492485,
0.0063276831060647964,
0.08136238157749176,
0.22295664250850677,
0.3083108067512512,
0.43952155113220215,
-0.295764297246933,
0.27745741605758667,
-0.27711567282676697,
0.14374946057796478,
0.20394466817378998,
0.054509177803993225,
-0.19370995461940765,
-0.05030672997236252,
0.03249908611178398,
-0.08712748438119888,
0.05687429755926132,
-0.23780564963817596,
0.05258487910032272,
-0.18422995507717133,
-0.26352658867836,
-0.270124226808548,
0.050746895372867584,
0.03045378252863884,
-0.03504200279712677,
-0.09618878364562988,
0.021673571318387985,
-0.11144872009754181,
-0.11474516242742538,
0.0567249171435833,
-0.33805158734321594,
0.3512526750564575,
0.25889354944229126,
0.0884900614619255,
0.029217522591352463,
0.621403694152832,
0.12535229325294495,
-0.17138436436653137,
0.2546130120754242,
0.18214121460914612,
-0.07293640822172165,
-0.19756975769996643,
0.0482589527964592,
0.19988089799880981,
-0.033272117376327515,
-0.26882511377334595,
-0.47970402240753174,
0.5700868368148804,
0.2025388926267624,
-0.49019432067871094,
-0.16902093589305878,
-0.20779328048229218,
-0.22493478655815125,
-0.142187237739563,
0.2603917717933655,
0.3682481348514557,
0.11442424356937408,
-0.07335468381643295,
-0.4571521282196045,
0.0373382642865181,
0.46684813499450684,
-0.41288048028945923,
-0.15851283073425293,
-0.10004507005214691,
0.18878421187400818,
0.259373277425766,
-0.16944174468517303,
-0.8528496026992798,
-0.1799500584602356,
0.13105392456054688,
-0.05226100981235504,
-0.09420228004455566,
0.2652246654033661,
0.13510504364967346,
0.22966568171977997,
-0.2738463580608368,
0.5633044242858887,
0.009440788999199867,
-0.09440531581640244,
-0.5179426074028015,
-0.2844942808151245
] |
https://github.com/huggingface/datasets/issues/223 | [Feature request] Add FLUE dataset | @mariamabarham
I put all the datasets on this drive: https://1drv.ms/u/s!Ao2Rcpiny7RFinDypq7w-LbXcsx9?e=iVsEDh
Some information :
• For FLUE, the quote used is
> @misc{le2019flaubert,
> title={FlauBERT: Unsupervised Language Model Pre-training for French},
> author={Hang Le and Loïc Vial and Jibril Frej and Vincent Segonne and Maximin Coavoux and Benjamin Lecouteux and Alexandre Allauzen and Benoît Crabbé and Laurent Besacier and Didier Schwab},
> year={2019},
> eprint={1912.05372},
> archivePrefix={arXiv},
> primaryClass={cs.CL}
> }
• The Github repo of FLUE is avaible here : https://github.com/getalp/Flaubert/tree/master/flue
Information related to the different tasks of FLUE :
**1. Classification**
Three dataframes are available:
- Book
- DVD
- Music
For each of these dataframes is available a set of training and test data, and a third one containing unlabelled data.
Citation :
>@dataset{prettenhofer_peter_2010_3251672,
author = {Prettenhofer, Peter and
Stein, Benno},
title = {{Webis Cross-Lingual Sentiment Dataset 2010 (Webis-
CLS-10)}},
month = jul,
year = 2010,
publisher = {Zenodo},
doi = {10.5281/zenodo.3251672},
url = {https://doi.org/10.5281/zenodo.3251672}
}
**2. Paraphrasing**
French part of the PAWS-X dataset (https://github.com/google-research-datasets/paws).
Three dataframes are available:
- train
- dev
- test
Citation :
> @InProceedings{pawsx2019emnlp,
> title = {{PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identification}},
> author = {Yang, Yinfei and Zhang, Yuan and Tar, Chris and Baldridge, Jason},
> booktitle = {Proc. of EMNLP},
> year = {2019}
> }
**3. Natural Language Inference**
French part of the XNLI dataset (https://github.com/facebookresearch/XNLI).
Three dataframes are available:
- train
- dev
- test
For the dev and test datasets, extra columns compared to the train dataset were available so I left them in the dataframe (I didn't know if these columns could be useful for other tasks or not).
In the context of the FLUE benchmark, only the columns gold_label, sentence1 and sentence2 are useful.
Citation :
> @InProceedings{conneau2018xnli,
> author = "Conneau, Alexis
> and Rinott, Ruty
> and Lample, Guillaume
> and Williams, Adina
> and Bowman, Samuel R.
> and Schwenk, Holger
> and Stoyanov, Veselin",
> title = "XNLI: Evaluating Cross-lingual Sentence Representations",
> booktitle = "Proceedings of the 2018 Conference on Empirical Methods
> in Natural Language Processing",
> year = "2018",
> publisher = "Association for Computational Linguistics",
> location = "Brussels, Belgium",
**4. Parsing**
The dataset used by the FLUE authors for this task is not freely available.
Users of your library will therefore not be able to access it.
Nevertheless, I think maybe it is useful to add a link to the site where to request this dataframe: http://ftb.linguist.univ-paris-diderot.fr/telecharger.php?langue=en
(personally it was sent to me less than 48 hours after I requested it).
**5. Word Sense Disambiguation Tasks**
5.1 Verb Sense Disambiguation
Two dataframes are available: train and test
For both dataframes, 4 columns are available: document, sentence, lemma and word.
I created the document column thinking that there were several documents in the dataset but afterwards it turns out that there were not: several sentences but only one document. It's up to you to keep it or not when importing these two dataframes.
The sentence column is used to determine to which sentence the word in the word column belongs. It is in the form of a dictionary {'id': 'd000.s001', 'idx': '1'}. I thought for a while to keep only the idx because the id doesn't matter any more information. Nevertheless for the test dataset, the dictionary has an extra value indicating the source of the sentence. I don't know if it's useful or not, that's why I left the dictionary just in case. The user is free to do what he wants with it.
Citation :
> Segonne, V., Candito, M., and Crabb ́e, B. (2019). Usingwiktionary as a resource for wsd: the case of frenchverbs. InProceedings of the 13th International Confer-ence on Computational Semantics-Long Papers, pages259–270
5.2 Noun Sense Disambiguation
Two dataframes are available: 2 train and 1 test
I confess I didn't fully understand the procedure for this task.
Citation :
> @dataset{loic_vial_2019_3549806,
> author = {Loïc Vial},
> title = {{French Word Sense Disambiguation with Princeton
> WordNet Identifiers}},
> month = nov,
> year = 2019,
> publisher = {Zenodo},
> version = {1.0},
> doi = {10.5281/zenodo.3549806},
> url = {https://doi.org/10.5281/zenodo.3549806}
> }
Finally, additional information about FLUE is available in the FlauBERT publication :
https://arxiv.org/abs/1912.05372 (p. 4).
Hoping to have provided you with everything you need to add this benchmark :)
| Hi,
I think it would be interesting to add the FLUE dataset for francophones or anyone wishing to work on French.
In other requests, I read that you are already working on some datasets, and I was wondering if FLUE was planned.
If it is not the case, I can provide each of the cleaned FLUE datasets (in the form of a directly exploitable dataset rather than in the original xml formats which require additional processing, with the French part for cases where the dataset is based on a multilingual dataframe, etc.). | 723 | [Feature request] Add FLUE dataset
Hi,
I think it would be interesting to add the FLUE dataset for francophones or anyone wishing to work on French.
In other requests, I read that you are already working on some datasets, and I was wondering if FLUE was planned.
If it is not the case, I can provide each of the cleaned FLUE datasets (in the form of a directly exploitable dataset rather than in the original xml formats which require additional processing, with the French part for cases where the dataset is based on a multilingual dataframe, etc.).
@mariamabarham
I put all the datasets on this drive: https://1drv.ms/u/s!Ao2Rcpiny7RFinDypq7w-LbXcsx9?e=iVsEDh
Some information :
• For FLUE, the quote used is
> @misc{le2019flaubert,
> title={FlauBERT: Unsupervised Language Model Pre-training for French},
> author={Hang Le and Loïc Vial and Jibril Frej and Vincent Segonne and Maximin Coavoux and Benjamin Lecouteux and Alexandre Allauzen and Benoît Crabbé and Laurent Besacier and Didier Schwab},
> year={2019},
> eprint={1912.05372},
> archivePrefix={arXiv},
> primaryClass={cs.CL}
> }
• The Github repo of FLUE is avaible here : https://github.com/getalp/Flaubert/tree/master/flue
Information related to the different tasks of FLUE :
**1. Classification**
Three dataframes are available:
- Book
- DVD
- Music
For each of these dataframes is available a set of training and test data, and a third one containing unlabelled data.
Citation :
>@dataset{prettenhofer_peter_2010_3251672,
author = {Prettenhofer, Peter and
Stein, Benno},
title = {{Webis Cross-Lingual Sentiment Dataset 2010 (Webis-
CLS-10)}},
month = jul,
year = 2010,
publisher = {Zenodo},
doi = {10.5281/zenodo.3251672},
url = {https://doi.org/10.5281/zenodo.3251672}
}
**2. Paraphrasing**
French part of the PAWS-X dataset (https://github.com/google-research-datasets/paws).
Three dataframes are available:
- train
- dev
- test
Citation :
> @InProceedings{pawsx2019emnlp,
> title = {{PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identification}},
> author = {Yang, Yinfei and Zhang, Yuan and Tar, Chris and Baldridge, Jason},
> booktitle = {Proc. of EMNLP},
> year = {2019}
> }
**3. Natural Language Inference**
French part of the XNLI dataset (https://github.com/facebookresearch/XNLI).
Three dataframes are available:
- train
- dev
- test
For the dev and test datasets, extra columns compared to the train dataset were available so I left them in the dataframe (I didn't know if these columns could be useful for other tasks or not).
In the context of the FLUE benchmark, only the columns gold_label, sentence1 and sentence2 are useful.
Citation :
> @InProceedings{conneau2018xnli,
> author = "Conneau, Alexis
> and Rinott, Ruty
> and Lample, Guillaume
> and Williams, Adina
> and Bowman, Samuel R.
> and Schwenk, Holger
> and Stoyanov, Veselin",
> title = "XNLI: Evaluating Cross-lingual Sentence Representations",
> booktitle = "Proceedings of the 2018 Conference on Empirical Methods
> in Natural Language Processing",
> year = "2018",
> publisher = "Association for Computational Linguistics",
> location = "Brussels, Belgium",
**4. Parsing**
The dataset used by the FLUE authors for this task is not freely available.
Users of your library will therefore not be able to access it.
Nevertheless, I think maybe it is useful to add a link to the site where to request this dataframe: http://ftb.linguist.univ-paris-diderot.fr/telecharger.php?langue=en
(personally it was sent to me less than 48 hours after I requested it).
**5. Word Sense Disambiguation Tasks**
5.1 Verb Sense Disambiguation
Two dataframes are available: train and test
For both dataframes, 4 columns are available: document, sentence, lemma and word.
I created the document column thinking that there were several documents in the dataset but afterwards it turns out that there were not: several sentences but only one document. It's up to you to keep it or not when importing these two dataframes.
The sentence column is used to determine to which sentence the word in the word column belongs. It is in the form of a dictionary {'id': 'd000.s001', 'idx': '1'}. I thought for a while to keep only the idx because the id doesn't matter any more information. Nevertheless for the test dataset, the dictionary has an extra value indicating the source of the sentence. I don't know if it's useful or not, that's why I left the dictionary just in case. The user is free to do what he wants with it.
Citation :
> Segonne, V., Candito, M., and Crabb ́e, B. (2019). Usingwiktionary as a resource for wsd: the case of frenchverbs. InProceedings of the 13th International Confer-ence on Computational Semantics-Long Papers, pages259–270
5.2 Noun Sense Disambiguation
Two dataframes are available: 2 train and 1 test
I confess I didn't fully understand the procedure for this task.
Citation :
> @dataset{loic_vial_2019_3549806,
> author = {Loïc Vial},
> title = {{French Word Sense Disambiguation with Princeton
> WordNet Identifiers}},
> month = nov,
> year = 2019,
> publisher = {Zenodo},
> version = {1.0},
> doi = {10.5281/zenodo.3549806},
> url = {https://doi.org/10.5281/zenodo.3549806}
> }
Finally, additional information about FLUE is available in the FlauBERT publication :
https://arxiv.org/abs/1912.05372 (p. 4).
Hoping to have provided you with everything you need to add this benchmark :)
| [
-0.09875034540891647,
0.2994917035102844,
-0.19066572189331055,
0.08413013815879822,
-0.09124930948019028,
0.10564113408327103,
0.45074743032455444,
-0.14683838188648224,
-0.21770668029785156,
0.004500299692153931,
-0.2079358547925949,
-0.17496581375598907,
-0.15123462677001953,
0.2744068503379822,
0.07923664897680283,
-0.3693343698978424,
-0.0019663795828819275,
0.03353644907474518,
0.08688853681087494,
-0.3447933793067932,
-0.10768913477659225,
0.17830145359039307,
-0.049756839871406555,
0.19358938932418823,
-0.0001795729622244835,
0.09124074876308441,
-0.22928346693515778,
-0.15842875838279724,
-0.15099994838237762,
-0.022321199998259544,
0.13173699378967285,
0.2434060275554657,
0.07313655316829681,
0.384890615940094,
-0.00010290562931913882,
-0.21261022984981537,
0.1268320083618164,
-0.1261635422706604,
0.029007185250520706,
0.0322241336107254,
0.022003397345542908,
-0.2267688363790512,
-0.3399682641029358,
0.037783183157444,
-0.12805673480033875,
-0.2536051571369171,
-0.1875288039445877,
-0.5613646507263184,
-0.1343911588191986,
0.5067580938339233,
0.2427784502506256,
-0.17855916917324066,
0.13484179973602295,
0.014460040256381035,
0.160355806350708,
0.2705264091491699,
-0.32320061326026917,
-0.16572879254817963,
0.6291848421096802,
0.14990288019180298,
0.03446413576602936,
0.29989564418792725,
0.22463446855545044,
-0.3710682690143585,
-0.20697104930877686,
-0.13152308762073517,
-0.05224626511335373,
-0.3681865930557251,
0.027923032641410828,
0.356587678194046,
0.6327366828918457,
-0.0815199688076973,
-0.5868774652481079,
-0.09462104737758636,
0.24371424317359924,
-0.07554987818002701,
-0.10097511857748032,
-0.1344940960407257,
0.22803457081317902,
0.19478900730609894,
0.3044320046901703,
-0.40359652042388916,
-0.06974314153194427,
0.09901463985443115,
0.0814351737499237,
0.009417816996574402,
-0.05463434383273125,
-0.01763089746236801,
0.11922615766525269,
-0.16042034327983856,
0.010838133282959461,
0.1647719144821167,
-0.06016888841986656,
0.36070987582206726,
-0.21490605175495148,
-0.3206717371940613,
0.06903494149446487,
-0.059327833354473114,
0.3171032965183258,
0.07181373238563538,
-0.6085295081138611,
0.033939942717552185,
-0.4754469394683838,
-0.13653364777565002,
0.23075498640537262,
0.1410774439573288,
0.11318856477737427,
-0.26931899785995483,
0.16951411962509155,
-0.34914809465408325,
0.12838369607925415,
-0.008936461061239243,
-0.006787676364183426,
-0.025769025087356567,
-0.2819312512874603,
0.062059395015239716,
-0.09378921240568161,
-0.34505781531333923,
0.009534178301692009,
0.0284709632396698,
0.19382193684577942,
-0.2102636992931366,
-0.10387510806322098,
0.1957835853099823,
0.0845956951379776,
0.3147147297859192,
-0.18962478637695312,
0.19519788026809692,
-0.1819043606519699,
-0.613976776599884,
-0.15016713738441467,
0.04668853431940079,
-0.2589326500892639,
0.03365406021475792,
0.11798010766506195,
-0.30588996410369873,
0.04503689706325531,
0.10600324720144272,
-0.03552170842885971,
0.2437455654144287,
0.18960890173912048,
-0.33063438534736633,
-0.1412639617919922,
-0.23433806002140045,
-0.23844823241233826,
0.0829157754778862,
0.0062548331916332245,
0.29035288095474243,
-0.27429574728012085,
-0.13271558284759521,
0.004104346036911011,
-0.07771958410739899,
-0.5493541359901428,
0.25537729263305664,
0.1287323236465454,
-0.28491315245628357,
-0.05030591040849686,
0.7471107244491577,
-0.18387654423713684,
-0.28073909878730774,
0.0672428160905838,
-0.05907464772462845,
-0.09857037663459778,
-0.06438559293746948,
0.03518472611904144,
0.33346912264823914,
-0.5780581831932068,
-0.1407894492149353,
-0.21537373960018158,
-0.3041473925113678,
0.263382226228714,
0.24018269777297974,
-0.013686474412679672,
0.1278274804353714,
-0.27479538321495056,
-0.029189959168434143,
0.05475589632987976,
-0.05104178562760353,
-0.007747253403067589,
0.19158363342285156,
-0.1714615523815155,
0.25183340907096863,
0.005482681095600128,
0.07924215495586395,
-0.015349067747592926,
-0.07730881124734879,
0.29996800422668457,
0.3543702960014343,
-0.2617485523223877,
-0.07039617747068405,
-0.03619970381259918,
-0.4247269630432129,
0.1664167195558548,
0.18734170496463776,
0.07433415204286575,
-0.0027770325541496277,
0.14446154236793518,
-0.23539027571678162,
0.13005021214485168,
-0.06374731659889221,
0.2238672524690628,
0.26703187823295593,
0.13562442362308502,
0.5249227285385132,
0.060762494802474976,
0.048926085233688354,
-0.15978404879570007,
-0.01566384732723236,
0.1047908365726471,
0.4020429253578186,
0.3152892589569092,
-0.15735787153244019,
-0.02523009106516838,
-0.123105488717556,
-0.2486608773469925,
-0.3672911524772644,
0.2465510368347168,
0.26383575797080994,
0.019912630319595337,
0.3339196443557739,
-0.35774606466293335,
0.2866944968700409,
-0.22801630198955536,
-0.2566809058189392,
-0.18812060356140137,
0.26827409863471985,
-0.0802949070930481,
0.023751026019454002,
-0.19585613906383514,
0.3590029180049896,
-0.10002178698778152,
-0.0650888979434967,
-0.1096428632736206,
-0.1666441559791565,
0.2140118032693863,
0.14497783780097961,
0.5165337324142456,
0.2998851239681244,
0.2574203908443451,
-0.24572379887104034,
-0.13876940310001373,
0.1868893951177597,
0.06296195089817047,
-0.2090669870376587,
0.14302536845207214,
0.23790746927261353,
0.18252010643482208,
0.051117219030857086,
0.06885772198438644,
-0.024305161088705063,
0.39605146646499634,
0.21396619081497192,
-0.07813770323991776,
-0.1446687877178192,
0.30037230253219604,
-0.0670022964477539,
0.28173163533210754,
-0.07894688844680786,
-0.39791566133499146,
-0.02149810642004013,
0.36849838495254517,
0.022609621286392212,
0.11486002802848816,
0.1395167112350464,
-0.1527697741985321,
-0.10070934146642685,
0.21678471565246582,
-0.48139792680740356,
0.1276502162218094,
0.2626875042915344,
0.22171537578105927,
-0.1654064655303955,
0.25981876254081726,
0.0346074253320694,
0.04588059335947037,
-0.25480175018310547,
-0.10957558453083038,
-0.039889462292194366,
0.1586690992116928,
0.07674096524715424,
-0.3456179201602936,
-0.4028259217739105,
-0.002589697949588299,
0.08198980242013931,
0.049554672092199326,
-0.19892168045043945,
0.07890448719263077,
-0.0540543794631958,
0.2363440990447998,
-0.34613126516342163,
-0.2608323097229004,
-0.09982665628194809,
0.24856840074062347,
-0.3377683758735657,
-0.006427783519029617,
0.042943865060806274,
-0.19007058441638947,
0.3239147365093231,
-0.035649701952934265,
-0.003152810037136078,
-0.24567265808582306,
0.0058890231885015965,
-0.4746783971786499,
0.2933714985847473,
-0.05381486192345619,
-0.3159293234348297,
0.3817484378814697,
-0.07545986771583557,
0.147675022482872,
-0.3301292061805725,
-0.5107154846191406,
0.16972997784614563,
-0.1299939900636673,
0.5753855109214783,
0.1254238784313202,
0.025764770805835724,
0.013468131422996521,
-0.12582629919052124,
0.023961273953318596,
-0.054652851074934006,
-0.16415299475193024,
-0.11448435485363007,
-0.08873190730810165,
0.4223630130290985,
0.03869735077023506,
-0.45314154028892517,
-0.4203661382198334,
-0.172311469912529,
0.252933144569397,
-0.1639651358127594,
-0.0030101165175437927,
0.22998575866222382,
-0.13780345022678375,
0.13826414942741394,
0.00990704819560051,
0.1318792849779129,
-0.2647274434566498,
0.02784600481390953,
0.20042908191680908,
-0.3106869161128998,
-0.27746349573135376,
0.06118694320321083,
-0.09069860726594925,
0.0852126032114029,
-0.24416597187519073,
-0.3625801205635071,
0.2580145597457886,
-0.09587189555168152,
0.27385011315345764,
-0.19152118265628815,
0.07490377873182297,
0.19146373867988586,
0.16966581344604492,
-0.0674576535820961,
0.1104297861456871,
0.00787140429019928,
-0.1321849822998047,
0.010557575151324272,
0.08699120581150055,
-0.10921675711870193,
-0.08538538217544556,
-0.011631155386567116,
0.2945592999458313,
-0.01159052737057209,
0.06750234961509705,
0.28061437606811523,
0.026751121506094933,
0.23155371844768524,
-0.3706289231777191,
-0.44299888610839844,
0.35534629225730896,
0.040035881102085114,
0.04863438010215759,
0.4195973873138428,
0.21355557441711426,
-0.2142557054758072,
-0.2098941057920456,
0.05257824435830116,
0.18030864000320435,
-0.0713450014591217,
0.040762804448604584,
-0.10820133984088898,
0.16658449172973633,
-0.24493423104286194,
-0.21670761704444885,
-0.17305926978588104,
-0.10115204006433487,
0.25474458932876587,
0.3276855945587158,
0.09362101554870605,
-0.07407169044017792,
-0.22788852453231812,
0.2381792664527893,
-0.3003157079219818,
-0.044358029961586,
0.0840817466378212,
0.2546115815639496,
-0.27160805463790894,
0.3353051245212555,
0.030029162764549255,
0.1542757749557495,
0.21860185265541077,
-0.6904950737953186,
-0.49393874406814575,
0.13585610687732697,
0.3060667812824249,
0.1556718647480011,
0.17673614621162415,
-0.18371935188770294,
-0.2265480011701584,
0.3084176182746887,
0.24551066756248474,
-0.16246271133422852,
0.029782205820083618,
0.19417043030261993,
0.4270159900188446,
-0.01719946414232254,
-0.04692147672176361,
0.0955202728509903,
-0.16586439311504364,
-0.09738091379404068,
0.3946692943572998,
-0.029312297701835632,
0.017172545194625854,
0.08575303107500076,
0.13707458972930908,
-0.0335642546415329,
0.2016940712928772,
0.2797219753265381,
-0.05939580872654915,
-0.16069534420967102,
0.15213733911514282,
0.08683423697948456,
-0.04038170725107193,
-0.4850475490093231,
0.07861073315143585,
0.1992167979478836,
-0.020880717784166336,
-0.525149941444397,
0.08761674910783768,
-0.2386714071035385,
0.46955010294914246,
0.16024018824100494,
0.26180124282836914,
0.32919102907180786,
-0.2775519788265228,
-0.21814961731433868,
0.03038804978132248,
0.2831468880176544,
0.4071323275566101,
-0.03894490376114845,
-0.43501946330070496,
-0.7765520811080933,
-0.0014826133847236633,
-0.09129571914672852,
0.01664339005947113,
0.4128481149673462,
0.439383327960968,
-0.1327069252729416,
0.24752627313137054,
0.07675963640213013,
0.9190419316291809,
0.231294646859169,
0.04155030474066734,
0.07719260454177856,
-0.08021647483110428,
0.19294793903827667,
-0.3251572847366333,
-0.13492394983768463,
0.04967186972498894,
-0.2305438369512558,
0.00598408468067646,
0.26198530197143555,
0.3471657633781433,
0.24996452033519745,
-0.23360635340213776,
0.10049965977668762,
0.09623202681541443,
-0.19594280421733856,
0.2961101830005646,
0.3082037568092346,
0.10677435994148254,
-0.4312555193901062,
0.03384685516357422,
0.23043587803840637,
0.043793100863695145,
0.20384638011455536,
-0.07254564762115479,
-0.056684717535972595,
0.10696366429328918,
0.13140112161636353,
-0.4548584222793579,
-0.0760943740606308,
-0.5070955157279968,
0.12641742825508118,
-0.4729512631893158,
0.08941638469696045,
0.20291373133659363,
-0.08584199845790863,
0.4214227795600891,
0.47171831130981445,
0.0409156009554863,
0.02292473614215851,
0.4762383699417114,
0.06284105777740479,
-0.08770643174648285,
-0.2355535328388214,
0.2755265235900879,
-0.050539206713438034,
-0.26363545656204224,
0.3230832517147064,
-0.20167498290538788,
-0.1362142264842987,
-0.38254696130752563,
-0.11632008850574493,
-0.10659152269363403,
-0.04572837054729462,
-0.17525944113731384,
0.41036567091941833,
0.1723271608352661,
-0.19534587860107422,
0.14802278578281403,
0.349750816822052,
-0.23559972643852234,
-0.19416165351867676,
0.1073288768529892,
-0.09747250378131866,
-0.3136831223964691,
-0.22665992379188538,
0.24906226992607117,
-0.646517276763916,
0.2945062518119812,
0.4389958679676056,
-0.1503632664680481,
-0.23534372448921204,
0.08640540391206741,
0.4400276839733124,
-0.4701537787914276,
-0.3849064111709595,
0.005976795684546232,
-0.14805948734283447,
-0.0426979623734951,
0.2869281768798828,
0.06661025434732437,
-0.20611125230789185,
0.1507675051689148,
-0.09458667039871216,
-0.3692905306816101,
-0.028940774500370026,
0.14872445166110992,
0.12537963688373566,
0.2711097002029419,
-0.2238435596227646,
0.03578522056341171,
0.07909537106752396,
-0.3972320258617401,
-0.10924967378377914,
-0.10658681392669678,
0.0030478239059448242,
0.24276472628116608,
0.055686965584754944,
0.014138543978333473,
0.034010905772447586,
0.19847695529460907,
-0.34704339504241943,
-0.07309716939926147,
-0.18337377905845642,
-0.11463265120983124,
0.07452721148729324,
0.1349310278892517,
0.12282265722751617,
-0.07794705778360367,
-0.03505589812994003,
-0.10303743183612823,
-0.14566460251808167,
0.11736585199832916,
0.07653208076953888,
-0.07971955835819244,
0.2564331293106079,
-0.09329746663570404,
0.011541571468114853,
-0.1612449288368225,
0.09220333397388458,
0.28333526849746704,
0.042055729776620865,
0.28873103857040405,
0.16807052493095398,
0.18502813577651978,
-0.13068321347236633,
0.08269285410642624,
0.29423820972442627,
-0.004716455936431885,
0.34984147548675537,
-0.1388339102268219,
0.03794892504811287,
0.2871195375919342,
0.30442380905151367,
-0.0796230211853981,
0.023954447358846664,
-0.1038726344704628,
-0.03874044865369797,
0.34125974774360657,
0.2805144786834717,
-0.32523128390312195,
0.16337831318378448,
0.10603287816047668,
-0.14815396070480347,
0.19855108857154846,
0.2169763743877411,
0.3297959566116333,
0.2921764850616455,
0.42173629999160767,
-0.15993648767471313,
-0.13561367988586426,
0.010873861610889435,
0.403197705745697,
0.324083149433136,
-0.037428148090839386,
-0.13393686711788177,
0.09704103320837021,
0.26424264907836914,
0.010727882385253906,
0.27406245470046997,
-0.13993892073631287,
0.32852137088775635,
0.1947271227836609,
0.2168828547000885,
-0.012068629264831543,
-0.23323234915733337,
0.4450657069683075,
0.3071076273918152,
0.281772255897522,
0.22357073426246643,
0.10950934886932373,
-0.1401679813861847,
-0.17300255596637726,
-0.22349774837493896,
-0.04635658860206604,
0.08016705513000488,
-0.20201170444488525,
-0.0010114703327417374,
0.4020216763019562,
-0.34331056475639343,
-0.18070611357688904,
-0.2253137230873108,
-0.05336712673306465,
-0.0010702088475227356,
-0.2768159508705139,
0.1128140538930893,
0.13130491971969604,
-0.3100360929965973,
0.06996628642082214,
0.029710914939641953,
0.026648372411727905,
-0.061105746775865555,
0.27800223231315613,
0.01039934903383255,
0.1770153045654297,
0.047720663249492645,
0.41977351903915405,
-0.13973774015903473,
0.08330439031124115,
0.016874492168426514,
0.3180229067802429,
-0.20493699610233307,
-0.018012944608926773,
0.0879959687590599,
0.3278903365135193,
0.06277629733085632,
0.2459600567817688,
0.3205838203430176,
0.12034441530704498,
-0.1926160305738449,
-0.015043217688798904,
0.17180253565311432,
-0.19165176153182983,
-0.41362887620925903,
0.012699693441390991,
-0.03840823471546173,
0.08607984334230423,
-0.3797050416469574,
-0.03105100989341736,
-0.12854638695716858,
-0.13488543033599854,
0.3256210684776306,
-0.2585843801498413,
-0.10838164389133453,
-0.07899180054664612,
0.13846124708652496,
0.1661757528781891,
-0.2029036581516266,
0.4855579435825348,
0.23405656218528748,
-0.16686537861824036,
-0.2174421101808548,
-0.43813860416412354,
0.051265034824609756,
0.08014986664056778,
0.17446152865886688,
-0.12456268072128296,
0.06258387863636017,
0.38319694995880127,
0.11679434031248093,
-0.042771726846694946,
-0.0642126277089119,
0.1631995588541031,
0.32329219579696655,
-0.34794628620147705,
0.06293930858373642,
0.28593385219573975,
0.4084407687187195,
-0.030207864940166473,
-0.01850314810872078,
-0.07329148054122925,
0.412590354681015,
0.15054407715797424,
-0.13348454236984253,
-0.24621210992336273,
0.13039064407348633,
0.12726622819900513,
0.35571908950805664,
0.22650934755802155,
0.5275245904922485,
-0.22152605652809143,
-0.03797224164009094,
-0.2685338854789734,
-0.22323274612426758,
-0.06925421953201294,
0.1755630373954773,
0.028544697910547256,
0.06362166255712509,
-0.11477073282003403,
-0.31324535608291626,
-0.24616025388240814,
0.20301175117492676,
0.175914004445076,
0.2730841338634491,
-0.5236434936523438,
0.21069742739200592,
0.09566975384950638,
-0.37458208203315735,
-0.18295744061470032,
0.14599297940731049,
0.041923876851797104,
-0.036862388253211975,
-0.09746657311916351,
-0.053451165556907654,
0.04369738698005676,
-0.17672158777713776,
-0.23924459517002106,
-0.11105188727378845,
0.13255847990512848,
0.31383416056632996,
0.11591649055480957,
-0.3667922019958496,
0.17310664057731628,
0.28740859031677246,
0.2281906008720398,
0.28344476222991943,
-0.026607900857925415,
-0.020220018923282623,
0.037945713847875595,
-0.2808723747730255,
0.30048561096191406,
0.11556471884250641,
0.09651964902877808,
0.19395160675048828,
-0.22160036861896515
] |
https://github.com/huggingface/datasets/issues/222 | Colab Notebook breaks when downloading the squad dataset | The notebook forces version 0.1.0. If I use the latest, things work, I'll run the whole notebook and create a PR.
But in the meantime, this issue gets fixed by changing:
`!pip install nlp==0.1.0`
to
`!pip install nlp` | When I run the notebook in Colab
https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb
breaks when running this cell:

| 38 | Colab Notebook breaks when downloading the squad dataset
When I run the notebook in Colab
https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb
breaks when running this cell:

The notebook forces version 0.1.0. If I use the latest, things work, I'll run the whole notebook and create a PR.
But in the meantime, this issue gets fixed by changing:
`!pip install nlp==0.1.0`
to
`!pip install nlp` | [
-0.20377281308174133,
0.10567425191402435,
-0.03363529220223427,
0.06406711041927338,
-0.10075336694717407,
-0.16913941502571106,
0.13653074204921722,
0.10918165743350983,
-0.34509170055389404,
0.1280626803636551,
-0.1643522083759308,
0.5187448263168335,
0.18093852698802948,
0.08213864266872406,
0.16695697605609894,
0.07651329040527344,
0.06449399143457413,
0.46057015657424927,
0.04686901345849037,
0.1566825658082962,
-0.21310842037200928,
0.4624916911125183,
-0.4079592823982239,
0.15370331704616547,
-0.23863576352596283,
-0.16774140298366547,
-0.20612698793411255,
0.27909165620803833,
-0.5138827562332153,
-0.2758501470088959,
0.2979661226272583,
0.14172348380088806,
-0.00843896996229887,
0.18113601207733154,
-0.00011696520959958434,
-0.23673921823501587,
0.12079651653766632,
-0.05185147374868393,
-0.3485310971736908,
-0.35422879457473755,
-0.008578591048717499,
-0.44365599751472473,
0.15956997871398926,
-0.34196028113365173,
0.14092913269996643,
0.39214834570884705,
0.35118672251701355,
0.37066876888275146,
0.34925973415374756,
0.38748058676719666,
0.15486425161361694,
0.3137633502483368,
0.2158091515302658,
-0.05447569116950035,
0.16369691491127014,
-0.28066205978393555,
-0.29767900705337524,
0.324399471282959,
0.5822196006774902,
-0.16857166588306427,
0.0035511180758476257,
0.10590299963951111,
-0.09550708532333374,
0.055905070155858994,
0.12202013283967972,
0.1638883799314499,
-0.25351959466934204,
-0.4291176199913025,
0.29944488406181335,
0.12129341065883636,
0.06077489256858826,
-0.20016935467720032,
-0.018152279779314995,
0.0014581531286239624,
0.25850433111190796,
-0.3444952070713043,
0.21898573637008667,
0.3701310157775879,
-0.3430846631526947,
0.07960149645805359,
0.034707095474004745,
-0.03276241943240166,
-0.21706020832061768,
0.23085452616214752,
0.056650884449481964,
0.36470383405685425,
-0.06477528065443039,
0.010259374976158142,
0.2563163936138153,
0.07807129621505737,
0.22043876349925995,
0.23245827853679657,
-0.19939647614955902,
-0.012577087618410587,
-0.020614605396986008,
-0.19665229320526123,
-0.15251684188842773,
0.37592440843582153,
0.23538941144943237,
-0.3535802364349365,
0.19688555598258972,
-0.06267128139734268,
0.19996008276939392,
0.19693249464035034,
0.023211361840367317,
-0.01203226763755083,
0.3583294153213501,
-0.04169871658086777,
0.39903295040130615,
0.40184178948402405,
-0.02484721690416336,
0.001665256917476654,
0.04790118336677551,
-0.1774970442056656,
-0.27909067273139954,
-0.1293841004371643,
0.06468910723924637,
-0.18971902132034302,
-0.21751730144023895,
-0.016830306500196457,
-0.15009841322898865,
0.278216689825058,
0.0331730954349041,
0.1946287304162979,
-0.06817475706338882,
-0.23874148726463318,
0.1087198555469513,
-0.02255195751786232,
-0.36746910214424133,
-0.17430226504802704,
0.009949754923582077,
-0.0019471235573291779,
-0.18764042854309082,
0.1096842810511589,
0.2619292736053467,
0.18368832767009735,
0.4778350293636322,
-0.15345899760723114,
0.0996059775352478,
-0.11781250685453415,
0.05239617079496384,
-0.26532289385795593,
-0.10134205967187881,
0.3144095540046692,
0.3155173361301422,
-0.22006885707378387,
-0.2717239260673523,
-0.5757362842559814,
0.045119933784008026,
0.19759994745254517,
-0.032033562660217285,
-0.012889865785837173,
-0.12502741813659668,
0.10841783881187439,
-0.28446757793426514,
-0.0702655091881752,
-0.3243391215801239,
0.05498519167304039,
-0.21550476551055908,
-0.25893157720565796,
0.04896071180701256,
-0.15393134951591492,
-0.24565006792545319,
-0.0019287869799882174,
-0.05847908556461334,
0.1869669109582901,
-0.03239244967699051,
-0.09881728887557983,
0.1605467051267624,
0.00841391459107399,
-0.0025034621357917786,
0.25573182106018066,
-0.14600415527820587,
-0.08713623136281967,
0.060688652098178864,
0.19247491657733917,
0.3825959861278534,
-0.31424087285995483,
-0.715781033039093,
0.12331630289554596,
-0.07620807737112045,
-0.28646737337112427,
-0.09852329641580582,
0.18136312067508698,
0.4203040301799774,
-0.18550913035869598,
0.07004696875810623,
0.49798524379730225,
-0.1739976406097412,
0.10833054035902023,
-0.2697705328464508,
-0.17382116615772247,
-0.12889869511127472,
0.05015243962407112,
0.11421188712120056,
-0.017191395163536072,
-0.039106957614421844,
0.7044432759284973,
0.16681398451328278,
-0.0989094227552414,
-0.20148716866970062,
0.05992176756262779,
0.32618850469589233,
-0.3010638356208801,
-0.0882212370634079,
-0.1463487446308136,
-0.5062064528465271,
0.010047070682048798,
-0.34609049558639526,
0.2132532298564911,
0.09683539718389511,
-0.2111300677061081,
-0.05918277055025101,
-0.06821388006210327,
-0.01218351349234581,
-0.1781015396118164,
0.10006767511367798,
0.02048693224787712,
0.048870038241147995,
-0.04860604926943779,
0.09019893407821655,
0.3979106545448303,
-0.19552527368068695,
0.42488712072372437,
-0.20517796277999878,
0.18991981446743011,
-0.348310261964798,
-0.36242300271987915,
0.06926078349351883,
0.31324684619903564,
0.0034314319491386414,
-0.170596644282341,
-0.10006555169820786,
0.25726068019866943,
0.08105286210775375,
-0.07469119131565094,
0.10122883319854736,
-0.3666819930076599,
0.39606261253356934,
0.06066882237792015,
-0.040356554090976715,
-0.06082797423005104,
0.012146738357841969,
-0.0353696271777153,
-0.028800740838050842,
0.22457703948020935,
-0.18602262437343597,
-0.041423194110393524,
0.17305614054203033,
0.20941922068595886,
0.03926556557416916,
-0.11988624930381775,
-0.2044532746076584,
0.13204514980316162,
0.3231664001941681,
0.23681297898292542,
0.04118068143725395,
0.010915257036685944,
-0.3629993796348572,
0.2105797380208969,
0.4938593804836273,
0.02746599167585373,
0.24809977412223816,
0.019872844219207764,
0.04852654039859772,
0.002645391970872879,
0.3425410985946655,
0.08806014060974121,
0.375169962644577,
0.11413437873125076,
-0.11013130843639374,
-0.0038269460201263428,
-0.18535754084587097,
-0.30785679817199707,
0.13142043352127075,
0.08304551243782043,
0.12990665435791016,
-0.16973963379859924,
0.3030273914337158,
0.014846050180494785,
-0.3646787106990814,
-0.11107057332992554,
-0.07071521878242493,
0.23503383994102478,
0.10903139412403107,
0.3059637248516083,
-0.14340388774871826,
-0.6106247305870056,
-0.2032148838043213,
-0.11518244445323944,
-0.186147078871727,
-0.18630249798297882,
-0.054775044322013855,
0.3990700840950012,
0.39377889037132263,
0.13219574093818665,
0.3591194152832031,
0.2093053162097931,
-0.11759838461875916,
0.18299810588359833,
0.17196889221668243,
-0.04389438405632973,
-0.42944610118865967,
0.031369648873806,
0.38624489307403564,
0.2979986071586609,
0.10854074358940125,
-0.23654866218566895,
-0.24920237064361572,
0.015472875908017159,
-0.4298047721385956,
0.26033639907836914,
-0.3362565040588379,
0.2794790267944336,
0.09976297616958618,
0.24782191216945648,
-0.5951433777809143,
-0.10310743004083633,
0.16498923301696777,
-0.11449135839939117,
-0.12290850281715393,
-0.09292839467525482,
-0.03688256815075874,
-0.4055463969707489,
-0.26714786887168884,
-0.20519226789474487,
-0.4359727203845978,
-0.26939472556114197,
0.3358282446861267,
0.01575159654021263,
0.21157869696617126,
0.3739769756793976,
0.09294803440570831,
0.3100528120994568,
0.04953606054186821,
-0.20536355674266815,
0.1208363026380539,
0.0357939787209034,
0.0885273814201355,
-0.2505454123020172,
-0.4985416829586029,
0.09977501630783081,
0.05173458158969879,
0.037644751369953156,
-0.24499182403087616,
-0.416109561920166,
-0.5225141644477844,
0.12612803280353546,
0.1882440596818924,
-0.0012079067528247833,
-0.07886367291212082,
0.20694351196289062,
-0.19733043015003204,
0.1095578670501709,
-0.013077151030302048,
-0.24611224234104156,
-0.12782588601112366,
0.08309270441532135,
0.3247515559196472,
-0.15073683857917786,
0.10587930679321289,
0.1483968198299408,
0.19341623783111572,
0.31456342339515686,
-0.07250483334064484,
0.11436919122934341,
0.12013547122478485,
0.273935467004776,
-0.21050900220870972,
-0.3405756652355194,
0.342479407787323,
0.010134562849998474,
-0.009618770331144333,
0.3454568088054657,
-0.05972854793071747,
-0.5129148960113525,
-0.18136194348335266,
0.10224573314189911,
-0.25864067673683167,
-0.35660675168037415,
0.10800483077764511,
0.43654730916023254,
-0.04296380281448364,
0.21929015219211578,
0.1769402027130127,
-0.006431720219552517,
-0.2671230435371399,
-0.393891304731369,
0.2829705476760864,
-0.2330521047115326,
0.10045425593852997,
0.18663069605827332,
-0.454028844833374,
-0.6995071768760681,
0.12911389768123627,
0.0201121773570776,
0.29739701747894287,
-0.008755113929510117,
0.23194819688796997,
0.1322498619556427,
-0.028030700981616974,
0.2421714961528778,
0.08653057366609573,
-0.1293126791715622,
0.05553629621863365,
0.02404157817363739,
-0.25207847356796265,
0.14389964938163757,
-0.3590136170387268,
0.5358412861824036,
0.8802657723426819,
0.3770964443683624,
-0.16434818506240845,
0.057781677693128586,
0.529201865196228,
-0.032791055738925934,
0.1895887702703476,
0.10803978145122528,
-0.304433673620224,
-0.32131028175354004,
-0.14403390884399414,
0.05696295574307442,
-0.04829384386539459,
-0.007251656148582697,
0.09713508933782578,
-0.10260327160358429,
0.2945195436477661,
-0.1304945945739746,
-0.18037934601306915,
0.49008458852767944,
-0.043148405849933624,
0.06898391991853714,
0.03463170304894447,
-0.20050586760044098,
-0.1485118418931961,
0.23588068783283234,
0.2782014012336731,
-0.2147083580493927,
-0.2510850429534912,
0.19106879830360413,
-0.2993553876876831,
0.12639908492565155,
0.5574219226837158,
-0.012704803608357906,
-0.08767678588628769,
-0.1413709819316864,
-0.01035783439874649,
0.3766838014125824,
0.008204855024814606,
0.34758442640304565,
0.1379765421152115,
-0.08299779146909714,
0.1521376222372055,
0.2743898034095764,
-0.010235359892249107,
0.060649096965789795,
-0.12669622898101807,
-0.1330263912677765,
-0.266535222530365,
0.43179619312286377,
0.031323667615652084,
0.8313066959381104,
-0.19805516302585602,
0.18259045481681824,
0.21659576892852783,
0.034582048654556274,
0.7005775570869446,
0.09818409383296967,
0.29737532138824463,
-0.1605035811662674,
-0.2612915635108948,
-0.026917144656181335,
0.03417268767952919,
0.27713727951049805,
0.0035695508122444153,
-0.6976837515830994,
0.35433831810951233,
0.5069901347160339,
-0.06665952503681183,
0.14088770747184753,
0.20467078685760498,
-0.2041284441947937,
-0.3309404253959656,
-0.6929692625999451,
0.14991529285907745,
-0.2472088485956192,
0.21208222210407257,
-0.2318277359008789,
-0.016606921330094337,
-0.22074288129806519,
-0.055851586163043976,
-0.3980885148048401,
0.09784313291311264,
-0.49289432168006897,
-0.14910390973091125,
0.30979615449905396,
-0.2716410756111145,
-0.015284430235624313,
0.31808632612228394,
0.29805153608322144,
0.21503812074661255,
-0.04117632657289505,
0.05580116808414459,
-0.009489394724369049,
-0.4288061559200287,
0.06961601972579956,
0.12072652578353882,
0.07078695297241211,
-0.23157885670661926,
-0.011698849499225616,
-0.15616846084594727,
0.19199389219284058,
-0.14730091392993927,
0.3778713345527649,
0.265346497297287,
0.11379903554916382,
0.1531698852777481,
-0.11881080269813538,
-0.04288285970687866,
-0.18436644971370697,
-0.26054731011390686,
0.10958383977413177,
-0.10283780097961426,
-0.10809308290481567,
0.17686638236045837,
0.17040099203586578,
-0.1674775332212448,
-0.018127847462892532,
0.2444477677345276,
-0.10914620012044907,
0.053156815469264984,
0.21790288388729095,
0.2029290348291397,
-0.04807616025209427,
-0.2186717689037323,
0.1641601324081421,
-0.4710915684700012,
-0.20756694674491882,
0.019297990947961807,
0.004305499140173197,
-0.173389732837677,
-0.0564209446310997,
0.6419910788536072,
0.2973116636276245,
0.032893676310777664,
-0.12059950828552246,
-0.3671327233314514,
-0.22014707326889038,
0.20411624014377594,
0.22043561935424805,
-0.12179045379161835,
0.3346560597419739,
0.33405184745788574,
0.28580641746520996,
0.09651665389537811,
-0.2278680056333542,
0.28883519768714905,
-0.37428462505340576,
0.17683319747447968,
0.03506331518292427,
-0.2467702329158783,
0.16113634407520294,
-0.1358117312192917,
-0.056514397263526917,
0.547860860824585,
0.06339485943317413,
-0.21986690163612366,
-0.13317537307739258,
0.06871280819177628,
0.1189701035618782,
-0.10746350884437561,
-0.3171968460083008,
-0.06813265383243561,
-0.0985211730003357,
-0.04035255312919617,
0.07765206694602966,
-0.0682111382484436,
0.10933564603328705,
-0.06905306875705719,
0.26678013801574707,
0.29469460248947144,
0.2482575923204422,
0.07181079685688019,
-0.05436776578426361,
0.21100743114948273,
0.12927627563476562,
0.25017690658569336,
0.21401195228099823,
0.03418033570051193,
0.14100231230258942,
-0.0003102496266365051,
-0.07852940261363983,
0.15759526193141937,
0.26674458384513855,
-0.40233516693115234,
0.10853885114192963,
-0.06369952857494354,
-0.04671788215637207,
0.3891509771347046,
0.059578992426395416,
-0.1627654880285263,
0.25530388951301575,
0.07318659126758575,
-0.14528265595436096,
0.06295529752969742,
0.5381841063499451,
0.16475951671600342,
0.07420143485069275,
0.48672571778297424,
0.1154770702123642,
-0.0481448732316494,
0.14421558380126953,
0.10595803707838058,
0.23524466156959534,
0.253334641456604,
0.011607838794589043,
-0.08355769515037537,
0.013890903443098068,
0.11324293911457062,
0.08847464621067047,
0.057753659784793854,
0.19474133849143982,
0.008706435561180115,
-0.002556845545768738,
0.18441595137119293,
-0.1320849359035492,
0.09944793581962585,
0.2976965606212616,
-0.036574505269527435,
-0.21635501086711884,
0.04410625249147415,
0.27920931577682495,
0.06218261271715164,
0.13555827736854553,
0.8394281268119812,
-0.535256564617157,
-0.2563135325908661,
-0.11296966671943665,
0.13961976766586304,
-0.36160218715667725,
-0.006911647506058216,
-0.309796541929245,
0.15970876812934875,
-0.13192524015903473,
-0.018767792731523514,
-0.15464216470718384,
-0.046836525201797485,
0.3026387691497803,
0.29672521352767944,
-0.17645396292209625,
-0.11941273510456085,
-0.2104070484638214,
0.09632794559001923,
-0.15803056955337524,
-0.04321926832199097,
0.5650871396064758,
-0.46155351400375366,
0.15587091445922852,
-0.11572028696537018,
0.5128486156463623,
0.19595305621623993,
0.23445667326450348,
-0.17214418947696686,
-0.16993528604507446,
-0.04004358872771263,
0.02163671888411045,
-0.09688602387905121,
-0.019116729497909546,
0.49784043431282043,
0.24874208867549896,
0.18865671753883362,
0.030080417171120644,
-0.1156955286860466,
0.1956356018781662,
0.15852317214012146,
-0.2628217339515686,
0.05865867808461189,
-0.10240895301103592,
-0.10741686820983887,
-0.14664068818092346,
-0.2744990587234497,
-0.04305598884820938,
-0.34732428193092346,
0.5429148077964783,
-0.2994094491004944,
-0.10698162764310837,
0.044976815581321716,
-0.09464587271213531,
0.048445314168930054,
-0.004604063928127289,
0.5350648164749146,
0.40321534872055054,
0.025475863367319107,
-0.21520130336284637,
-0.4277659058570862,
-0.3889572322368622,
0.2161228060722351,
-0.2563636302947998,
0.01109631173312664,
0.059635378420352936,
0.1823773980140686,
-0.10123967379331589,
0.4139779806137085,
-0.07893091440200806,
0.0418471097946167,
-0.12649919092655182,
-0.06532146036624908,
-0.47243618965148926,
-0.1160057783126831,
0.2852906286716461,
-0.27606794238090515,
-0.06966441869735718,
-0.2236635386943817,
0.15214890241622925,
-0.20585910975933075,
-0.07175655663013458,
-0.007133018225431442,
-0.31041398644447327,
-0.2900144159793854,
-0.10448154807090759,
0.07206258177757263,
0.17017759382724762,
0.10107674449682236,
0.01960856094956398,
-0.32109466195106506,
-0.04657568410038948,
-0.22404082119464874,
-0.2719593346118927,
0.07557488977909088,
0.22568324208259583,
0.2975490093231201,
-0.05231288820505142,
0.3451111316680908,
-0.1659621298313141,
0.5020353198051453,
0.10082226991653442,
0.03670218586921692,
-0.012219283729791641,
0.0015544909983873367,
-0.12299059331417084,
0.0852452963590622,
-0.14765994250774384,
0.45889919996261597,
-0.27856799960136414,
0.17531079053878784,
-0.48995018005371094,
-0.3166498839855194,
0.38322746753692627,
-0.4803466796875,
-0.0998106598854065,
0.0017300411127507687,
0.20958462357521057,
0.13941437005996704,
-0.30026546120643616,
-0.39764681458473206,
-0.02579483389854431,
-0.1576421856880188,
-0.1750728189945221,
-0.4597723186016083,
0.13977789878845215,
-0.20215100049972534,
0.0512658916413784,
-0.08261702954769135,
0.41824236512184143,
0.07982718199491501,
-0.25584176182746887,
0.015247780829668045,
-0.15567578375339508
] |
https://github.com/huggingface/datasets/issues/222 | Colab Notebook breaks when downloading the squad dataset | When you install `nlp` for the first time on a Colab runtime, it updates the `pyarrow` library that was already on colab. This update shows this message on colab:
```
WARNING: The following packages were previously imported in this runtime:
[pyarrow]
You must restart the runtime in order to use newly installed versions.
```
You just have to restart the runtime and it should be fine.
If you don't restart, then it breaks like in your first message | When I run the notebook in Colab
https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb
breaks when running this cell:

| 78 | Colab Notebook breaks when downloading the squad dataset
When I run the notebook in Colab
https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb
breaks when running this cell:

When you install `nlp` for the first time on a Colab runtime, it updates the `pyarrow` library that was already on colab. This update shows this message on colab:
```
WARNING: The following packages were previously imported in this runtime:
[pyarrow]
You must restart the runtime in order to use newly installed versions.
```
You just have to restart the runtime and it should be fine.
If you don't restart, then it breaks like in your first message | [
-0.16229365766048431,
0.2886500358581543,
-0.016385488212108612,
0.08907500654459,
-0.09513933956623077,
-0.13527461886405945,
0.24155978858470917,
0.04239339381456375,
-0.44447311758995056,
0.05577077716588974,
-0.3425387740135193,
0.5006806254386902,
0.19029873609542847,
0.05172169208526611,
0.23175157606601715,
0.12949398159980774,
0.052720971405506134,
0.45624223351478577,
-0.00516963005065918,
0.15157254040241241,
-0.13718953728675842,
0.43224218487739563,
-0.3422396779060364,
0.19298377633094788,
-0.2837288975715637,
-0.20665062963962555,
-0.33875563740730286,
0.3366296887397766,
-0.3838271498680115,
-0.36793938279151917,
0.3007684648036957,
0.11652259528636932,
-0.010650734417140484,
0.2421109974384308,
-0.00011587276821956038,
-0.2633945941925049,
0.07170169800519943,
0.050973765552043915,
-0.3235517144203186,
-0.1854393631219864,
0.15792915225028992,
-0.27676478028297424,
0.35877060890197754,
-0.3696826696395874,
0.2319737672805786,
0.263035386800766,
0.19682079553604126,
0.41317954659461975,
0.3784217834472656,
0.25508973002433777,
0.15432631969451904,
0.36232510209083557,
0.151498943567276,
-0.04990283399820328,
0.32800528407096863,
-0.2401537150144577,
-0.24223341047763824,
0.5541874766349792,
0.5191043615341187,
-0.17601577937602997,
-0.06431927531957626,
-0.023655051365494728,
-0.150082066655159,
0.10818593204021454,
0.09065550565719604,
0.2510838508605957,
-0.3042806088924408,
-0.3595673143863678,
0.14779235422611237,
0.07521273195743561,
0.010056309401988983,
-0.2550984025001526,
0.08777555078268051,
-0.08877349644899368,
0.2548275887966156,
-0.46778178215026855,
0.22016549110412598,
0.2952524721622467,
-0.333326131105423,
0.04739871993660927,
0.06930702179670334,
-0.09359388053417206,
-0.1557636857032776,
0.18317195773124695,
0.11445927619934082,
0.3580802083015442,
-0.05663672089576721,
0.011706117540597916,
0.2579825520515442,
0.11046683043241501,
0.25548675656318665,
0.2613554894924164,
-0.127359077334404,
-0.12093085050582886,
-0.0481669045984745,
-0.10802511870861053,
-0.11227373033761978,
0.3535778820514679,
0.17000287771224976,
-0.28480130434036255,
0.18919962644577026,
-0.08284581452608109,
0.18041059374809265,
0.18949338793754578,
-0.025866486132144928,
0.011832470074295998,
0.17808884382247925,
-0.22734525799751282,
0.40258967876434326,
0.26510074734687805,
-0.13250096142292023,
-0.019606422632932663,
0.06968618929386139,
-0.08283210545778275,
-0.18123948574066162,
-0.2002740204334259,
0.11146107316017151,
-0.1733039915561676,
-0.211989626288414,
-0.060525521636009216,
-0.21012002229690552,
0.1031341403722763,
0.03067190945148468,
0.2263706922531128,
-0.04862545058131218,
-0.3248869478702545,
-0.008809436112642288,
0.009723853319883347,
-0.30676761269569397,
-0.16587625443935394,
-0.020702609792351723,
-0.015813209116458893,
-0.3158731460571289,
0.2927927076816559,
0.2561112344264984,
0.01417076587677002,
0.4369165897369385,
-0.06674591451883316,
0.11256559193134308,
-0.061569277197122574,
-0.03654225915670395,
-0.25050777196884155,
-0.1376706063747406,
0.19454486668109894,
0.28504177927970886,
-0.137041375041008,
-0.2746260464191437,
-0.5182226896286011,
-0.029475629329681396,
0.13417813181877136,
-0.09137136489152908,
-0.10038197040557861,
-0.1418798863887787,
0.11342824995517731,
-0.28249549865722656,
-0.08450055122375488,
-0.24448469281196594,
-0.011239156126976013,
-0.27759888768196106,
-0.32704615592956543,
0.06488175690174103,
-0.11334113776683807,
-0.11958034336566925,
-0.17336587607860565,
-0.051391057670116425,
0.2277740240097046,
-0.15503691136837006,
-0.06079217419028282,
0.12664684653282166,
0.08688952028751373,
0.05646226182579994,
0.36917585134506226,
-0.22387853264808655,
0.05881822109222412,
-0.030296679586172104,
0.27381181716918945,
0.47548267245292664,
-0.1313360631465912,
-0.5511139035224915,
0.022247910499572754,
-0.09273923188447952,
-0.22001197934150696,
-0.1776847541332245,
0.18534056842327118,
0.43592774868011475,
-0.17135411500930786,
0.12053309381008148,
0.47766363620758057,
-0.12799102067947388,
0.08927537500858307,
-0.25258952379226685,
-0.20198741555213928,
0.021061871200799942,
0.0683598518371582,
0.10308250784873962,
-0.047924332320690155,
0.010847069323062897,
0.6572157144546509,
0.15238016843795776,
-0.12794385850429535,
-0.2924894094467163,
0.012023437768220901,
0.26373106241226196,
-0.15930840373039246,
-0.08615010976791382,
-0.10207687318325043,
-0.4976177215576172,
-0.018915068358182907,
-0.38266438245773315,
0.22172418236732483,
0.11234792321920395,
-0.12611812353134155,
-0.019689908251166344,
-0.029196109622716904,
0.013085532933473587,
-0.10262651741504669,
0.11551780998706818,
0.09121527522802353,
0.031276553869247437,
0.035522449761629105,
0.01103777065873146,
0.3079177439212799,
-0.21081478893756866,
0.40704113245010376,
-0.1642882227897644,
0.33948537707328796,
-0.37261900305747986,
-0.45434311032295227,
0.03883129358291626,
0.31756648421287537,
-0.005407512187957764,
-0.18586793541908264,
-0.08476978540420532,
0.3038392663002014,
-0.03310577943921089,
-0.001520313322544098,
-0.04197312891483307,
-0.2167976349592209,
0.4175574481487274,
-0.03387974575161934,
0.040237270295619965,
-0.15333665907382965,
0.011028903536498547,
-0.1177540272474289,
0.1212889552116394,
0.15278609097003937,
-0.2726380228996277,
-0.046741925179958344,
0.11932717263698578,
0.08081502467393875,
0.0008183177560567856,
-0.12340393662452698,
-0.1216047927737236,
0.2013993263244629,
0.2504892945289612,
0.23211485147476196,
0.055614810436964035,
0.003987105563282967,
-0.3448373079299927,
0.16886144876480103,
0.6388940811157227,
0.009610451757907867,
0.19339969754219055,
0.0026635192334651947,
-0.0553559884428978,
-0.09187640994787216,
0.36545637249946594,
-0.1382666528224945,
0.44734686613082886,
0.0853600800037384,
-0.11062632501125336,
0.046116553246974945,
-0.2001613825559616,
-0.3595990538597107,
0.08434486389160156,
0.15042132139205933,
0.3393525183200836,
-0.1611248254776001,
0.32813286781311035,
0.18927964568138123,
-0.416504442691803,
-0.19667787849903107,
-0.11324018985033035,
0.1603192687034607,
0.04637603834271431,
0.3105356991291046,
-0.22582723200321198,
-0.6363142728805542,
-0.21384736895561218,
-0.22468741238117218,
-0.17365503311157227,
-0.2121390849351883,
-0.06543552130460739,
0.41710519790649414,
0.3795732259750366,
0.10482987761497498,
0.3908359408378601,
0.29194238781929016,
-0.1407940834760666,
0.15146800875663757,
0.07684732973575592,
-0.11653309315443039,
-0.4451974928379059,
0.0355963371694088,
0.4403398931026459,
0.30272212624549866,
0.18668518960475922,
-0.18262243270874023,
-0.14730454981327057,
0.04165123775601387,
-0.4739939570426941,
0.25526344776153564,
-0.28294259309768677,
0.25056612491607666,
0.0056366100907325745,
0.21463902294635773,
-0.5915746092796326,
-0.2966303825378418,
0.17837493121623993,
-0.19174432754516602,
-0.06382685154676437,
-0.07141537964344025,
-0.09075403213500977,
-0.36870017647743225,
-0.23214146494865417,
-0.19074246287345886,
-0.38922369480133057,
-0.2519965171813965,
0.30632466077804565,
0.04709028825163841,
0.12468491494655609,
0.34518373012542725,
-0.05784716457128525,
0.42036712169647217,
-0.0066612293012440205,
-0.04496531933546066,
0.06837799400091171,
0.03224183991551399,
0.0629432201385498,
-0.2506498098373413,
-0.3901831805706024,
0.08632948994636536,
0.08140052109956741,
0.07147709280252457,
-0.32992297410964966,
-0.4478312134742737,
-0.45164918899536133,
0.1052512377500534,
0.2513580322265625,
0.009099561721086502,
-0.09579475224018097,
0.2081674337387085,
-0.1809079945087433,
0.052146703004837036,
0.12245676666498184,
-0.3523932993412018,
-0.20721879601478577,
0.1554121971130371,
0.30154260993003845,
-0.1551513373851776,
0.14002060890197754,
-0.03658131882548332,
0.24720676243305206,
0.12030570209026337,
-0.1626969426870346,
0.24349379539489746,
0.04703834280371666,
0.2754903733730316,
-0.2692053020000458,
-0.32646554708480835,
0.3509712219238281,
-0.13879075646400452,
-0.0719209611415863,
0.3527231812477112,
-0.1739962100982666,
-0.5435376763343811,
-0.176213800907135,
0.08835041522979736,
-0.352029412984848,
-0.35120052099227905,
0.14087772369384766,
0.48909252882003784,
-0.1283901333808899,
0.16154637932777405,
0.10040345042943954,
0.13663004338741302,
-0.3128582537174225,
-0.28019803762435913,
0.14688004553318024,
-0.3128330707550049,
0.015015996061265469,
0.08403745293617249,
-0.54227614402771,
-0.6152954697608948,
0.09041303396224976,
0.02460458315908909,
0.16473162174224854,
0.010637011379003525,
0.16953369975090027,
0.1697922646999359,
-0.07759574800729752,
0.18881674110889435,
0.23937386274337769,
-0.21169383823871613,
0.10137896239757538,
0.1028609424829483,
-0.24931280314922333,
0.0044775791466236115,
-0.44667482376098633,
0.4395613968372345,
0.8527015447616577,
0.21628917753696442,
-0.16088280081748962,
0.14705929160118103,
0.4967114329338074,
0.08200814574956894,
0.1896103024482727,
0.1308540254831314,
-0.27469146251678467,
-0.3481544852256775,
-0.2027968466281891,
0.027922317385673523,
-0.20913121104240417,
0.0356772355735302,
-0.0479242205619812,
-0.05737581476569176,
0.33631274104118347,
-0.05814076215028763,
-0.11765936017036438,
0.5659458041191101,
-0.050717562437057495,
0.13834647834300995,
-0.03656603395938873,
-0.1675105094909668,
-0.055386222898960114,
0.20562389492988586,
0.3144642114639282,
-0.14917097985744476,
-0.11714626848697662,
0.2581259310245514,
-0.1791640669107437,
0.15468616783618927,
0.5725126266479492,
0.033705636858940125,
-0.015727080404758453,
-0.25497856736183167,
-0.027279570698738098,
0.35344335436820984,
0.03846079111099243,
0.3919440805912018,
0.024101823568344116,
-0.09691505879163742,
0.22327563166618347,
0.3603269159793854,
0.00634763203561306,
0.0057396069169044495,
-0.055919282138347626,
-0.13157883286476135,
-0.16340424120426178,
0.5269417762756348,
0.09646058082580566,
0.9199808835983276,
-0.1351889669895172,
0.23280121386051178,
0.39558640122413635,
0.005457688122987747,
0.8213496804237366,
0.03644244372844696,
0.2902149558067322,
-0.2200109213590622,
-0.10888011008501053,
0.03861961513757706,
-0.02745893970131874,
0.14550717175006866,
-0.15644903481006622,
-0.6769123077392578,
0.24205683171749115,
0.45106375217437744,
0.08140254765748978,
0.059283867478370667,
0.22673937678337097,
-0.04052574187517166,
-0.27934929728507996,
-0.6700122356414795,
0.16516226530075073,
-0.23910729587078094,
0.2571810781955719,
-0.31535500288009644,
0.006178868934512138,
-0.1214996725320816,
-0.01944352686405182,
-0.4194890260696411,
0.15960469841957092,
-0.3940158784389496,
-0.10973133146762848,
0.2596361041069031,
-0.24909475445747375,
-0.0036671608686447144,
0.19052754342556,
0.3236682415008545,
0.18673282861709595,
-0.03592151403427124,
-0.027198057621717453,
-0.0723297968506813,
-0.34440305829048157,
0.1389002650976181,
0.0780334547162056,
0.13850173354148865,
-0.23670178651809692,
-0.08687038719654083,
0.02865428477525711,
0.24055737257003784,
-0.1788836419582367,
0.2510048449039459,
0.2675098776817322,
0.09652267396450043,
0.0387754887342453,
0.021772444248199463,
0.049311716109514236,
-0.1244024783372879,
-0.25639083981513977,
0.08975747227668762,
-0.10482996702194214,
-0.0463668629527092,
0.25974130630493164,
0.1653759628534317,
-0.1529797911643982,
-0.09329506754875183,
0.16011473536491394,
-0.1281467080116272,
0.09165763854980469,
0.18983647227287292,
0.26130130887031555,
-0.07720890641212463,
-0.1752096712589264,
0.045474059879779816,
-0.5221547484397888,
-0.3000231087207794,
-0.0752294585108757,
0.026011236011981964,
-0.05449213832616806,
0.07419300079345703,
0.6213569641113281,
0.34520578384399414,
0.13891083002090454,
-0.09827152639627457,
-0.30082547664642334,
-0.13825011253356934,
0.22200579941272736,
0.3104013502597809,
-0.10538159310817719,
0.4330827295780182,
0.4210215210914612,
0.23336470127105713,
0.17018386721611023,
-0.23408542573451996,
0.30826207995414734,
-0.34559962153434753,
0.1343727558851242,
-0.04723086208105087,
-0.2782137095928192,
0.18949009478092194,
-0.06866820901632309,
-0.0509333610534668,
0.5490372776985168,
0.1302429437637329,
-0.1948455572128296,
-0.05549918860197067,
0.06485965847969055,
0.08955355733633041,
-0.10635167360305786,
-0.3555718958377838,
-0.08047744631767273,
0.0717422366142273,
0.007463119924068451,
0.11996160447597504,
-0.13209086656570435,
0.15138036012649536,
-0.06826169788837433,
0.3728257715702057,
0.24534744024276733,
0.13897697627544403,
0.11990667879581451,
0.018168412148952484,
0.23148906230926514,
0.164936825633049,
0.2641076147556305,
0.11129980534315109,
-0.008376173675060272,
0.10891043394804001,
0.012167029082775116,
-0.044086113572120667,
0.06559484452009201,
0.19642215967178345,
-0.3878042697906494,
0.07796400785446167,
-0.23517370223999023,
-0.03739161789417267,
0.4894135296344757,
0.13260695338249207,
-0.18248412013053894,
0.24811676144599915,
0.06972318142652512,
-0.11593439429998398,
0.022276049479842186,
0.44858843088150024,
0.18295247852802277,
-0.019730910658836365,
0.4950132369995117,
0.15736497938632965,
-0.0033353567123413086,
0.12629859149456024,
0.04812263697385788,
0.26875582337379456,
0.3688952326774597,
0.0004857718013226986,
-0.06775538623332977,
-0.06217363104224205,
0.0352383591234684,
0.176157146692276,
0.06021832674741745,
0.152150958776474,
-0.06740166246891022,
-0.1278885006904602,
0.15209026634693146,
-0.28901153802871704,
0.06382238119840622,
0.306622713804245,
-0.05420058220624924,
-0.25578412413597107,
0.11049529910087585,
0.37385687232017517,
-0.02909041941165924,
0.08440843224525452,
0.8333594799041748,
-0.35441017150878906,
-0.32093268632888794,
-0.10204033553600311,
0.2567327320575714,
-0.345008909702301,
0.09901520609855652,
-0.27242374420166016,
0.10394658893346786,
-0.08362795412540436,
0.08783501386642456,
-0.17857907712459564,
-0.1320105493068695,
0.32584357261657715,
0.2735809087753296,
-0.2538754940032959,
-0.15999835729599,
-0.16739636659622192,
0.0544954277575016,
-0.18169039487838745,
0.07494254410266876,
0.55727219581604,
-0.33135437965393066,
0.09935490041971207,
-0.23304101824760437,
0.5280356407165527,
0.2896028459072113,
0.20487362146377563,
-0.19099843502044678,
-0.15233875811100006,
-0.04074306786060333,
0.04505112022161484,
-0.014735603705048561,
-0.06881923973560333,
0.49519574642181396,
0.10088562965393066,
0.18965820968151093,
0.0497773215174675,
-0.13975875079631805,
0.28492456674575806,
0.13173887133598328,
-0.21514596045017242,
0.037305258214473724,
-0.10045871883630753,
0.0037544555962085724,
-0.1756562739610672,
-0.3053840100765228,
-0.050677768886089325,
-0.314649760723114,
0.5148188471794128,
-0.14559172093868256,
-0.11733554303646088,
-0.042403917759656906,
-0.1393558531999588,
0.05286142975091934,
0.09525227546691895,
0.6466190218925476,
0.5057278871536255,
0.15907493233680725,
-0.1942804604768753,
-0.45061254501342773,
-0.41047388315200806,
0.26898184418678284,
-0.30991485714912415,
0.1136658787727356,
0.05045676976442337,
0.19246648252010345,
-0.16570311784744263,
0.4790003299713135,
-0.02666361629962921,
0.11698826402425766,
-0.24811017513275146,
-0.15506277978420258,
-0.5336961150169373,
-0.015051096677780151,
0.11213728040456772,
-0.3295297920703888,
-0.16424068808555603,
-0.043305620551109314,
0.21823446452617645,
-0.3421745002269745,
-0.07783395797014236,
-0.06188090145587921,
-0.3067425489425659,
-0.26684844493865967,
-0.07545305788516998,
0.2547649145126343,
0.10352244973182678,
0.13317294418811798,
0.0766616091132164,
-0.31117352843284607,
0.029302477836608887,
-0.38363757729530334,
-0.14511194825172424,
0.047343164682388306,
0.17323516309261322,
0.19779238104820251,
0.00038899481296539307,
0.3683891296386719,
-0.19359780848026276,
0.5045950412750244,
0.09660853445529938,
0.06460706889629364,
-0.0029808497056365013,
-0.09048977494239807,
-0.0720774456858635,
0.08612080663442612,
-0.08780982345342636,
0.42042776942253113,
-0.2391374111175537,
0.2577539086341858,
-0.5476995706558228,
-0.2630954682826996,
0.4129124879837036,
-0.4527491331100464,
-0.04186283424496651,
-0.0043555619195103645,
0.1946282684803009,
0.11911754310131073,
-0.19335949420928955,
-0.40655818581581116,
-0.09077249467372894,
-0.10226723551750183,
-0.12823063135147095,
-0.4465610086917877,
0.18074046075344086,
-0.12650614976882935,
-0.00961918756365776,
-0.11334371566772461,
0.20604698359966278,
0.044329628348350525,
-0.275481253862381,
-0.07351305335760117,
-0.1813737154006958
] |
https://github.com/huggingface/datasets/issues/222 | Colab Notebook breaks when downloading the squad dataset | Thanks for reporting the second one ! We'll update the notebook to fix this one :) | When I run the notebook in Colab
https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb
breaks when running this cell:

| 16 | Colab Notebook breaks when downloading the squad dataset
When I run the notebook in Colab
https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb
breaks when running this cell:

Thanks for reporting the second one ! We'll update the notebook to fix this one :) | [
-0.20812594890594482,
0.08529756963253021,
-0.08818341791629791,
0.16447609663009644,
-0.023115552961826324,
-0.10333478450775146,
0.3287060558795929,
0.0826023742556572,
-0.31269580125808716,
0.2114282250404358,
-0.39940720796585083,
0.33623379468917847,
0.29005637764930725,
0.16409389674663544,
0.15483736991882324,
0.1645149290561676,
0.0983089730143547,
0.3727595806121826,
-0.06697472929954529,
0.14713554084300995,
-0.22851555049419403,
0.45175954699516296,
-0.36850661039352417,
0.06003345549106598,
-0.27340203523635864,
-0.20931941270828247,
-0.23765361309051514,
0.2732953429222107,
-0.42369046807289124,
-0.21809418499469757,
0.2879365384578705,
0.18390364944934845,
-0.11174590140581131,
0.2599041163921356,
-0.0001143353438237682,
-0.24122996628284454,
-0.020322903990745544,
-0.0653361827135086,
-0.30734023451805115,
-0.1606718748807907,
-0.08062072843313217,
-0.23325736820697784,
0.22001789510250092,
-0.4098561704158783,
0.1319085657596588,
0.4122157692909241,
0.22275277972221375,
0.28621137142181396,
0.2939850389957428,
0.2952933609485626,
0.18044821918010712,
0.40403416752815247,
0.12714414298534393,
-0.17765118181705475,
0.325496643781662,
-0.27226316928863525,
-0.24315378069877625,
0.4100196063518524,
0.6274057626724243,
-0.08831354975700378,
-0.06562726944684982,
0.13427601754665375,
-0.12808923423290253,
0.12494812905788422,
0.08908471465110779,
0.2477118819952011,
-0.2894341051578522,
-0.483873575925827,
0.34367403388023376,
0.11621180921792984,
0.15104861557483673,
-0.12315148860216141,
0.05892615765333176,
0.05899559706449509,
0.17138351500034332,
-0.2932755649089813,
0.26158618927001953,
0.3350568115711212,
-0.2227054387331009,
0.13434624671936035,
0.006289392709732056,
0.08987376093864441,
-0.18182112276554108,
0.13155505061149597,
-0.02787969261407852,
0.1601843237876892,
-0.14802952110767365,
-0.09576263278722763,
0.22563043236732483,
0.011603135615587234,
0.24657827615737915,
0.09906601905822754,
-0.1621571183204651,
-0.0948360487818718,
-0.10899651050567627,
-0.24236787855625153,
-0.2443486452102661,
0.2499939501285553,
0.2372862696647644,
-0.2415647953748703,
0.31874653697013855,
-0.02916128560900688,
0.2450104057788849,
0.18477699160575867,
-0.03199945390224457,
-0.14745540916919708,
0.25958144664764404,
-0.10221567004919052,
0.42402124404907227,
0.41627976298332214,
-0.18827469646930695,
-0.09184848517179489,
-0.024419154971837997,
-0.17938990890979767,
-0.22493094205856323,
-0.09151223301887512,
0.04073437303304672,
-0.24053503572940826,
-0.2889057695865631,
0.07782172411680222,
-0.13684992492198944,
0.2789800465106964,
0.0691424086689949,
0.24263983964920044,
-0.0014096983941271901,
-0.41014063358306885,
0.03285673260688782,
-0.01016729325056076,
-0.2695297300815582,
-0.2202637940645218,
-0.03017314337193966,
-0.09110952913761139,
-0.1644541323184967,
0.26104313135147095,
0.2496696561574936,
0.13625465333461761,
0.5002057552337646,
-0.09450600296258926,
0.23768040537834167,
-0.2036774903535843,
0.03617642819881439,
-0.425238698720932,
-0.09555769711732864,
0.35759788751602173,
0.34982189536094666,
-0.20395447313785553,
-0.22149468958377838,
-0.5597004890441895,
0.1084226742386818,
0.07068256288766861,
-0.03556060045957565,
-0.02277091145515442,
-0.0372445285320282,
0.15114104747772217,
-0.20522895455360413,
0.024309085682034492,
-0.31279468536376953,
0.047900743782520294,
-0.28003236651420593,
-0.14217379689216614,
0.013602010905742645,
-0.034006401896476746,
-0.21538734436035156,
-0.03197026625275612,
-0.01668488048017025,
0.2605353891849518,
-0.1001942977309227,
0.00802699476480484,
0.20574183762073517,
-0.046099159866571426,
-0.04037720710039139,
0.31282326579093933,
-0.15650878846645355,
-0.009523563086986542,
-0.01001887209713459,
0.20533360540866852,
0.3080559968948364,
-0.25814858078956604,
-0.7119438648223877,
0.058244962245225906,
0.005247071385383606,
-0.26256263256073,
-0.1313275694847107,
0.2376963496208191,
0.5601804256439209,
-0.19879046082496643,
0.11458546668291092,
0.46353405714035034,
-0.18903326988220215,
0.09863834828138351,
-0.15008249878883362,
-0.1512317657470703,
-0.12750132381916046,
0.12364046275615692,
0.20790494978427887,
-0.006193801760673523,
0.07666555047035217,
0.5572878122329712,
0.1662474274635315,
-0.12650974094867706,
-0.3530403673648834,
0.07210371643304825,
0.27843520045280457,
-0.3214619755744934,
-0.09803193807601929,
-0.10858318954706192,
-0.5646512508392334,
0.06257206946611404,
-0.28644704818725586,
0.08351261913776398,
0.136491596698761,
-0.23094552755355835,
-0.05809542164206505,
-0.06265725195407867,
-0.07724493741989136,
-0.03654112294316292,
0.13375909626483917,
-0.09502650797367096,
-0.033459413796663284,
0.020008563995361328,
0.11398845911026001,
0.3453354835510254,
-0.29027947783470154,
0.5099155306816101,
0.008631328120827675,
0.32485446333885193,
-0.275591105222702,
-0.3000105917453766,
0.1337190866470337,
0.09635911881923676,
0.08106771111488342,
-0.16778692603111267,
-0.14541807770729065,
0.29110437631607056,
0.1966380774974823,
0.031058214604854584,
0.14562618732452393,
-0.27314668893814087,
0.4598882794380188,
0.05897426977753639,
-0.035778142511844635,
-0.1337577849626541,
0.08443685621023178,
-0.1913498044013977,
-0.04629857838153839,
0.232057586312294,
-0.2428794652223587,
-0.04818744212388992,
0.11958293616771698,
0.1858394294977188,
0.04129067063331604,
-0.1335269957780838,
-0.15656758844852448,
0.09857842326164246,
0.23881012201309204,
0.20704057812690735,
-0.0013624168932437897,
-0.04337608069181442,
-0.3433440625667572,
0.19563619792461395,
0.4620434641838074,
-0.005482228472828865,
0.204879492521286,
-0.06295565515756607,
-0.0692540779709816,
0.0003482922911643982,
0.42172273993492126,
0.041216280311346054,
0.4216999411582947,
0.08651915192604065,
-0.09068931639194489,
0.0007990319281816483,
-0.03490298241376877,
-0.357086718082428,
0.16904430091381073,
0.1428685337305069,
0.21061275899410248,
-0.16355451941490173,
0.229824498295784,
-0.036556147038936615,
-0.39952895045280457,
-0.10759510099887848,
-0.08823597431182861,
0.1315506100654602,
0.13491040468215942,
0.3200075626373291,
-0.11699096858501434,
-0.5118405818939209,
-0.07171569764614105,
-0.1881691962480545,
-0.09109173715114594,
-0.2565028667449951,
-0.0470915362238884,
0.5061331987380981,
0.32533034682273865,
0.013788744807243347,
0.3485424816608429,
0.34163373708724976,
-0.002123173326253891,
0.3129974901676178,
0.11849895119667053,
-0.04346555471420288,
-0.28942418098449707,
0.07920357584953308,
0.42273014783859253,
0.24148418009281158,
0.2128826379776001,
-0.3029240667819977,
-0.15140950679779053,
-0.14659278094768524,
-0.28685036301612854,
0.29411786794662476,
-0.1998257040977478,
0.23458096385002136,
-0.023698024451732635,
0.19926922023296356,
-0.5368195176124573,
-0.1262856274843216,
0.1590670645236969,
-0.010400463826954365,
-0.08413917571306229,
-0.05235559865832329,
-0.016661688685417175,
-0.445881724357605,
-0.20343202352523804,
-0.1740429699420929,
-0.39175090193748474,
-0.2414955347776413,
0.18786963820457458,
-0.1172192394733429,
0.18275398015975952,
0.23959845304489136,
0.06552766263484955,
0.4017174541950226,
-0.035908084362745285,
-0.2485913634300232,
0.018446721136569977,
-0.12903618812561035,
0.2076360285282135,
-0.3239770829677582,
-0.5115097165107727,
0.1064164936542511,
0.18794170022010803,
0.0032004155218601227,
-0.2690907120704651,
-0.43559926748275757,
-0.3778631389141083,
0.04990607500076294,
0.11913387477397919,
0.023841267451643944,
-0.2214813232421875,
0.0059347003698349,
-0.2621508836746216,
0.04465451091527939,
-0.010199781507253647,
-0.27398940920829773,
-0.11105132848024368,
0.07669343054294586,
0.30780377984046936,
-0.19712665677070618,
0.11028694361448288,
0.03152783587574959,
0.25294458866119385,
0.3045099377632141,
-0.11898069083690643,
0.18053889274597168,
0.10017865151166916,
0.21791470050811768,
-0.2815532386302948,
-0.4495450556278229,
0.3379513919353485,
-0.16195061802864075,
-0.0686093419790268,
0.35916274785995483,
-0.09100787341594696,
-0.504424512386322,
-0.17166011035442352,
0.072667196393013,
-0.267821341753006,
-0.42276036739349365,
0.07086507976055145,
0.44430211186408997,
-0.14769449830055237,
0.11258649826049805,
0.2193164825439453,
0.019851651042699814,
-0.22919762134552002,
-0.3125334680080414,
0.33609849214553833,
-0.2867802679538727,
0.0014976015081629157,
0.15573811531066895,
-0.41713157296180725,
-0.6907590627670288,
0.16188746690750122,
-0.05036463215947151,
0.11516384035348892,
-0.11067423224449158,
0.2906993627548218,
0.10505296289920807,
0.0392545722424984,
0.31416380405426025,
0.11675314605236053,
-0.15859462320804596,
0.043578144162893295,
-0.07495135068893433,
-0.19444671273231506,
0.034450236707925797,
-0.46410584449768066,
0.5842934250831604,
0.7916564345359802,
0.3910045325756073,
-0.04272012785077095,
0.14425767958164215,
0.5085096955299377,
-0.0329582542181015,
0.15193414688110352,
0.08288537710905075,
-0.14068706333637238,
-0.3031002879142761,
-0.12402411550283432,
0.05947844684123993,
-0.027399906888604164,
-0.06065066158771515,
0.03376604616641998,
-0.20056208968162537,
0.3088862895965576,
-0.07161442935466766,
-0.026786968111991882,
0.5213575959205627,
-0.0195242278277874,
0.0862448439002037,
0.10341541469097137,
-0.10577712953090668,
-0.11154291033744812,
0.4208715558052063,
0.3046402633190155,
-0.2092675268650055,
-0.26748085021972656,
0.28454819321632385,
-0.49008163809776306,
0.09635575115680695,
0.5848209857940674,
-0.010691060684621334,
-0.03101343661546707,
-0.17397890985012054,
0.005066417157649994,
0.37786865234375,
0.053109411150217056,
0.4014868140220642,
0.17706410586833954,
-0.029539790004491806,
0.17760507762432098,
0.2574174106121063,
-0.09426887333393097,
0.018869705498218536,
0.014036569744348526,
-0.14121778309345245,
-0.2320794314146042,
0.4488863945007324,
0.0771215409040451,
0.8232887983322144,
-0.15118716657161713,
0.06643444299697876,
0.17773106694221497,
0.005394056439399719,
0.5558367967605591,
-0.015880627557635307,
0.227245032787323,
-0.13967925310134888,
-0.4450145661830902,
-0.022555511444807053,
-0.10461321473121643,
0.2890549302101135,
-0.026632823050022125,
-0.7058287858963013,
0.21495914459228516,
0.2657943367958069,
0.15262766182422638,
0.020415812730789185,
0.05576944351196289,
-0.14507730305194855,
-0.24286016821861267,
-0.5719938278198242,
0.22100263833999634,
-0.17519988119602203,
0.23505210876464844,
-0.28548669815063477,
0.030615197494626045,
-0.25519677996635437,
0.04343556612730026,
-0.45206570625305176,
0.06690538674592972,
-0.48229384422302246,
0.013023803010582924,
0.1449773758649826,
-0.2509016990661621,
0.043817173689603806,
0.34479478001594543,
0.38752979040145874,
0.17426317930221558,
-0.04343327134847641,
-0.018649067729711533,
-0.03557194769382477,
-0.3034094572067261,
-0.06309980899095535,
-0.01694183051586151,
0.005116486921906471,
-0.26457923650741577,
-0.06806795299053192,
-0.07060030847787857,
0.30341148376464844,
-0.14938241243362427,
0.3579692840576172,
0.17621555924415588,
0.12822206318378448,
-0.06678631156682968,
-0.05379948392510414,
-0.1160087138414383,
-0.17481040954589844,
-0.29133152961730957,
0.13214074075222015,
-0.12050148844718933,
-0.00506958132609725,
0.2978074550628662,
0.18357312679290771,
-0.12276754528284073,
-0.035556260496377945,
0.2913224697113037,
-0.20463919639587402,
0.1092684417963028,
0.2187432050704956,
0.25724419951438904,
-0.1284503936767578,
-0.2801273763179779,
0.3003305494785309,
-0.49323779344558716,
-0.17429238557815552,
0.11607982218265533,
-0.17402029037475586,
-0.12756571173667908,
-0.1307651847600937,
0.6403629183769226,
0.4149585962295532,
-0.010212145745754242,
-0.06361155956983566,
-0.3631930649280548,
-0.20702491700649261,
0.20271036028862,
0.25006309151649475,
0.025946371257305145,
0.22087982296943665,
0.19487692415714264,
0.21906675398349762,
0.0669320672750473,
-0.27033326029777527,
0.37321338057518005,
-0.44609344005584717,
0.05523965507745743,
-0.030021484941244125,
-0.24697363376617432,
0.23904472589492798,
-0.15189605951309204,
-0.03373722732067108,
0.5021679997444153,
0.06566652655601501,
-0.2611507773399353,
-0.06452975422143936,
0.06806601583957672,
0.008530918508768082,
-0.12818150222301483,
-0.26094210147857666,
0.004728376865386963,
-0.030353322625160217,
-0.06656672060489655,
0.17197565734386444,
-0.05886895954608917,
0.2700216770172119,
-0.1260630488395691,
0.33104440569877625,
0.20877614617347717,
0.15549913048744202,
0.08469561487436295,
0.013367407023906708,
0.2023230493068695,
0.1288285106420517,
0.12136580795049667,
0.1580018252134323,
-0.07078959047794342,
0.2570580244064331,
0.024878013879060745,
-0.0761774480342865,
-0.007841065526008606,
0.33350932598114014,
-0.33863401412963867,
0.1594218611717224,
0.0026595904491841793,
-0.16646453738212585,
0.3518225848674774,
-0.012282459065318108,
-0.12231266498565674,
0.10254041850566864,
0.1391981840133667,
-0.10381655395030975,
-0.05152556672692299,
0.5680362582206726,
0.20062707364559174,
0.03012150153517723,
0.5001779198646545,
0.08568552136421204,
-0.04003092274069786,
0.21090227365493774,
0.04401460289955139,
0.3199211657047272,
0.4771456718444824,
0.07485076785087585,
-0.11321038007736206,
0.025739174336194992,
0.23483619093894958,
0.11907683312892914,
0.05644067004323006,
0.1624099314212799,
-0.04504392296075821,
-0.05025974661111832,
0.11100374162197113,
-0.17791974544525146,
0.08935987949371338,
0.4992906153202057,
-0.10340720415115356,
-0.22849775850772858,
0.04294402152299881,
0.10159767419099808,
0.027173738926649094,
0.12443232536315918,
0.7389979958534241,
-0.48798274993896484,
-0.26755398511886597,
-0.19579774141311646,
0.14382734894752502,
-0.4215511083602905,
0.08674080669879913,
-0.31011202931404114,
0.06441115587949753,
-0.0946820080280304,
-0.0019606351852416992,
-0.1672726720571518,
-0.05734214186668396,
0.3959062099456787,
0.26212114095687866,
-0.19068606197834015,
0.036120787262916565,
-0.12258673459291458,
0.10783544927835464,
-0.13998600840568542,
-0.012021411210298538,
0.44242754578590393,
-0.30636048316955566,
0.2628050446510315,
0.014340396970510483,
0.6072162389755249,
0.1863359659910202,
0.20774607360363007,
-0.10181653499603271,
-0.22457771003246307,
0.0604252815246582,
-0.08757277578115463,
0.012050468474626541,
-0.05506795644760132,
0.44311806559562683,
0.08779621124267578,
0.2683303952217102,
0.08102014660835266,
-0.1402062475681305,
0.22144824266433716,
0.12705060839653015,
-0.18602292239665985,
0.03443299978971481,
-0.2981722950935364,
-0.0920548141002655,
-0.1460089236497879,
-0.2923964560031891,
-0.1762821078300476,
-0.304012656211853,
0.4630804657936096,
-0.23748070001602173,
-0.15882515907287598,
0.09287670999765396,
0.026172231882810593,
0.07179011404514313,
0.0003697481006383896,
0.5908591747283936,
0.320585161447525,
-0.0013029612600803375,
-0.29880163073539734,
-0.5059589147567749,
-0.3325137794017792,
0.1911906599998474,
-0.16133597493171692,
0.13938632607460022,
0.08500944823026657,
0.18678289651870728,
-0.023113854229450226,
0.4586080312728882,
0.16402573883533478,
-0.08083479106426239,
-0.210060253739357,
-0.06280981004238129,
-0.5517156720161438,
-0.13538306951522827,
0.2651444971561432,
-0.26066309213638306,
-0.16066493093967438,
-0.1617874801158905,
0.289763867855072,
-0.15786413848400116,
0.008336558938026428,
-0.04479408264160156,
-0.27315473556518555,
-0.33197593688964844,
-0.24862301349639893,
0.15242056548595428,
0.1295928955078125,
0.12297095358371735,
0.007585059851408005,
-0.3331417739391327,
0.12094761431217194,
-0.2889215350151062,
-0.10682785511016846,
0.011426370590925217,
0.2162545919418335,
0.25030073523521423,
0.028535200282931328,
0.2635628581047058,
-0.09871067851781845,
0.49516594409942627,
0.15883544087409973,
0.028559934347867966,
-0.16628386080265045,
-0.08736919611692429,
-0.07266184687614441,
0.05997585132718086,
-0.04567227512598038,
0.4081939160823822,
-0.32333114743232727,
0.26766711473464966,
-0.4084075689315796,
-0.27963051199913025,
0.39246422052383423,
-0.37216275930404663,
-0.07345755398273468,
-0.017434045672416687,
0.2117202877998352,
0.13282841444015503,
-0.13608160614967346,
-0.32911044359207153,
-0.07494860887527466,
-0.11623653024435043,
-0.2900272309780121,
-0.4548606276512146,
0.2603670060634613,
-0.07690329849720001,
0.06409211456775665,
-0.10680913925170898,
0.34088826179504395,
0.12940168380737305,
-0.28296035528182983,
-0.16729778051376343,
-0.21795810759067535
] |
https://github.com/huggingface/datasets/issues/222 | Colab Notebook breaks when downloading the squad dataset | This trick from @thomwolf seems to be the most reliable solution to fix this colab notebook issue:
```python
# install nlp
!pip install -qq nlp==0.2.0
# Make sure that we have a recent version of pyarrow in the session before we continue - otherwise reboot Colab to activate it
import pyarrow
if int(pyarrow.__version__.split('.')[1]) < 16:
import os
os.kill(os.getpid(), 9)
``` | When I run the notebook in Colab
https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb
breaks when running this cell:

| 60 | Colab Notebook breaks when downloading the squad dataset
When I run the notebook in Colab
https://colab.research.google.com/github/huggingface/nlp/blob/master/notebooks/Overview.ipynb
breaks when running this cell:

This trick from @thomwolf seems to be the most reliable solution to fix this colab notebook issue:
```python
# install nlp
!pip install -qq nlp==0.2.0
# Make sure that we have a recent version of pyarrow in the session before we continue - otherwise reboot Colab to activate it
import pyarrow
if int(pyarrow.__version__.split('.')[1]) < 16:
import os
os.kill(os.getpid(), 9)
``` | [
-0.21085894107818604,
0.3130601644515991,
-0.049380846321582794,
0.03972131758928299,
-0.08726860582828522,
-0.18556535243988037,
0.2631243169307709,
0.15955446660518646,
-0.44758927822113037,
0.10873642563819885,
-0.36074164509773254,
0.5732998251914978,
0.19588474929332733,
0.08197655528783798,
0.17324376106262207,
0.1950283795595169,
-0.008884549140930176,
0.3963032066822052,
-0.0574670284986496,
0.16443265974521637,
-0.22316765785217285,
0.3445676863193512,
-0.3933262228965759,
0.10321369767189026,
-0.22195498645305634,
-0.197024866938591,
-0.15914294123649597,
0.29760849475860596,
-0.3919451832771301,
-0.2167629450559616,
0.2760634422302246,
0.17159293591976166,
-0.059993159025907516,
0.17929407954216003,
-0.0001147338844020851,
-0.20161812007427216,
-0.030263200402259827,
-0.07803536206483841,
-0.3729631304740906,
-0.23220057785511017,
0.03527362644672394,
-0.33603158593177795,
0.30406808853149414,
-0.4480283558368683,
0.1321958303451538,
0.4575716555118561,
0.288624107837677,
0.35761624574661255,
0.2969405949115753,
0.2759976387023926,
0.16421839594841003,
0.3264267146587372,
0.1345081627368927,
0.005115285515785217,
0.2324991524219513,
-0.2531132102012634,
-0.2693357467651367,
0.4263531267642975,
0.5949575901031494,
-0.26348617672920227,
-0.13266971707344055,
0.10558608174324036,
-0.16910938918590546,
0.1500720977783203,
0.1109078973531723,
0.22836914658546448,
-0.34415721893310547,
-0.4259013235569,
0.22296008467674255,
0.06068379804491997,
0.026529066264629364,
-0.26247644424438477,
0.054827556014060974,
0.005877785384654999,
0.2763139605522156,
-0.3067050278186798,
0.15786626935005188,
0.35337382555007935,
-0.3750436007976532,
0.11998158693313599,
0.024275928735733032,
0.03381475433707237,
-0.19935019314289093,
0.18583470582962036,
0.05883893370628357,
0.3432298004627228,
-0.024360589683055878,
-0.013875111937522888,
0.2171686738729477,
0.0821244865655899,
0.34461092948913574,
0.21561770141124725,
-0.03924628719687462,
-0.003000774420797825,
-0.1363031417131424,
-0.20195768773555756,
-0.1412384808063507,
0.2344246506690979,
0.23353037238121033,
-0.32346606254577637,
0.28888341784477234,
0.0063871946185827255,
0.29112672805786133,
0.19484815001487732,
-0.05898560211062431,
-0.11289192736148834,
0.21247798204421997,
-0.13682183623313904,
0.396963894367218,
0.37781330943107605,
-0.1054440289735794,
0.0028238072991371155,
-0.044340480118989944,
-0.16905775666236877,
-0.15089087188243866,
-0.10000818222761154,
0.12246540188789368,
-0.17493796348571777,
-0.28056737780570984,
0.023782256990671158,
-0.22518008947372437,
0.29884564876556396,
0.04263225570321083,
0.24172675609588623,
-0.06156938523054123,
-0.37630102038383484,
0.0669526681303978,
-0.025022342801094055,
-0.34266936779022217,
-0.20411615073680878,
-0.002302663866430521,
-0.01903754472732544,
-0.16797670722007751,
0.09720996767282486,
0.30007585883140564,
0.1617046296596527,
0.4099460244178772,
-0.11885682493448257,
0.17195606231689453,
-0.10903258621692657,
0.03236827999353409,
-0.2970976233482361,
-0.09300372749567032,
0.27639275789260864,
0.3880448043346405,
-0.24145792424678802,
-0.22902093827724457,
-0.5571028590202332,
0.0456700399518013,
0.16808393597602844,
-0.01252467930316925,
-0.00839759036898613,
-0.15670838952064514,
0.14246952533721924,
-0.2702634334564209,
-0.04810640215873718,
-0.3073248863220215,
0.010950224474072456,
-0.25604769587516785,
-0.18128395080566406,
0.03165731579065323,
-0.07667235285043716,
-0.17649981379508972,
-0.07915297895669937,
0.0010231751948595047,
0.1980476975440979,
-0.1631060242652893,
-0.03464532271027565,
0.12622413039207458,
0.0313839353621006,
0.04735063388943672,
0.23515059053897858,
-0.18265117704868317,
0.054192252457141876,
0.02883981354534626,
0.22627554833889008,
0.41118210554122925,
-0.20428436994552612,
-0.6995328664779663,
-0.0071708993054926395,
-0.08847255259752274,
-0.24175713956356049,
-0.13286608457565308,
0.24760842323303223,
0.44656050205230713,
-0.14351357519626617,
0.21046632528305054,
0.573988139629364,
-0.167545348405838,
0.1404290795326233,
-0.22272244095802307,
-0.1723981350660324,
-0.06703189015388489,
0.1846538484096527,
0.1432439088821411,
-0.10967377573251724,
0.011932022869586945,
0.6371200084686279,
0.23053887486457825,
-0.1181589663028717,
-0.23211520910263062,
-0.004396133124828339,
0.26636701822280884,
-0.30782294273376465,
-0.10001266002655029,
-0.05420050770044327,
-0.5955294966697693,
0.030195586383342743,
-0.2725134491920471,
0.1995994597673416,
-0.012548074126243591,
-0.19998210668563843,
-0.032262496650218964,
0.002767615020275116,
-0.021474581211805344,
-0.04150332883000374,
0.1490338295698166,
-0.10393494367599487,
0.03776179626584053,
0.016410231590270996,
0.13712568581104279,
0.33913055062294006,
-0.23257878422737122,
0.44682392477989197,
-0.0039642807096242905,
0.25741419196128845,
-0.2883976399898529,
-0.32532382011413574,
0.15580156445503235,
0.24388843774795532,
0.03058539889752865,
-0.12488055974245071,
-0.06957945227622986,
0.21655458211898804,
0.10290670394897461,
-0.08505739271640778,
0.06705169379711151,
-0.3381912112236023,
0.37754982709884644,
0.08621013164520264,
-0.05293269455432892,
-0.07910676300525665,
0.07668950408697128,
-0.07673247158527374,
0.01853324845433235,
0.2233506143093109,
-0.3123072683811188,
-0.07031068950891495,
0.10400645434856415,
0.2196221500635147,
0.06820765882730484,
-0.1373140662908554,
-0.12774166464805603,
0.21088248491287231,
0.229277104139328,
0.24448975920677185,
0.015721458941698074,
0.03844134509563446,
-0.36530616879463196,
0.2714906632900238,
0.4710390865802765,
0.009044282138347626,
0.28053149580955505,
-0.027614079415798187,
-0.06783603876829147,
-0.017648564651608467,
0.37193500995635986,
0.023189615458250046,
0.3294186592102051,
0.11665702611207962,
-0.11657081544399261,
0.011138890869915485,
-0.1021079272031784,
-0.2971961200237274,
0.11165886372327805,
0.1278637945652008,
0.3178737759590149,
-0.10101120918989182,
0.3305138349533081,
-0.03437270596623421,
-0.34309178590774536,
-0.2000889927148819,
-0.09329702705144882,
0.24215546250343323,
0.12846001982688904,
0.2591361403465271,
-0.13541021943092346,
-0.6098310351371765,
-0.0550801157951355,
-0.16726866364479065,
-0.09036043286323547,
-0.22800929844379425,
-0.0238991379737854,
0.45616310834884644,
0.276153028011322,
0.07358072698116302,
0.2938823699951172,
0.21408048272132874,
0.036748647689819336,
0.08620031923055649,
0.1559814214706421,
-0.11963614076375961,
-0.3185093104839325,
0.07188080251216888,
0.39522692561149597,
0.2435244768857956,
0.0868615135550499,
-0.24151475727558136,
-0.18731793761253357,
-0.09848998486995697,
-0.3265628516674042,
0.20327287912368774,
-0.23567257821559906,
0.3059903681278229,
-0.01774756610393524,
0.23887281119823456,
-0.6264249086380005,
-0.21012383699417114,
0.1028079017996788,
-0.1280055195093155,
-0.11295287311077118,
-0.03887312859296799,
-0.005858015269041061,
-0.3610168397426605,
-0.24185717105865479,
-0.1475108563899994,
-0.501879870891571,
-0.24258752167224884,
0.2574924826622009,
-0.003788463771343231,
0.19984537363052368,
0.27991846203804016,
0.07124063372612,
0.31753042340278625,
0.09950891137123108,
-0.23881195485591888,
0.06216610595583916,
0.02206718549132347,
0.2359626740217209,
-0.24667227268218994,
-0.5061873197555542,
0.06595084071159363,
0.056828148663043976,
0.03246104717254639,
-0.2706143856048584,
-0.4002761244773865,
-0.4651808440685272,
0.14091899991035461,
0.23564386367797852,
-0.04908129572868347,
-0.13650161027908325,
0.13784350454807281,
-0.18993306159973145,
0.07168585807085037,
0.015007786452770233,
-0.23039968311786652,
-0.17598655819892883,
0.13017943501472473,
0.28328439593315125,
-0.2543380856513977,
0.04595962539315224,
0.15705256164073944,
0.22293923795223236,
0.11176839470863342,
-0.083133265376091,
0.15638992190361023,
0.09553389996290207,
0.19741562008857727,
-0.18021899461746216,
-0.4202902019023895,
0.3344493806362152,
-0.11916923522949219,
-0.09323804825544357,
0.3436366617679596,
-0.15984076261520386,
-0.604214608669281,
-0.12987622618675232,
0.06717243790626526,
-0.38668739795684814,
-0.46388766169548035,
0.1615074723958969,
0.500752329826355,
-0.13982805609703064,
0.250346302986145,
0.1870744824409485,
0.008182620629668236,
-0.34842953085899353,
-0.3713099956512451,
0.22920934855937958,
-0.26665550470352173,
0.042560774832963943,
0.2036816030740738,
-0.424584299325943,
-0.6710545420646667,
0.185624897480011,
0.07730075716972351,
0.1294669210910797,
0.033733729273080826,
0.16176411509513855,
0.14359354972839355,
0.010684741660952568,
0.20230959355831146,
0.23272545635700226,
-0.04382500797510147,
0.08600248396396637,
0.057811275124549866,
-0.2841723561286926,
0.027079124003648758,
-0.3934457004070282,
0.5534505248069763,
0.8214975595474243,
0.2172861248254776,
-0.1223297268152237,
0.16169388592243195,
0.5125232338905334,
-0.02566489577293396,
0.16802288591861725,
0.13292111456394196,
-0.22827881574630737,
-0.3713427186012268,
-0.14193807542324066,
0.10894797742366791,
-0.058419764041900635,
0.07994826883077621,
0.0968722403049469,
-0.06940113753080368,
0.24518544971942902,
-0.07987065613269806,
-0.058157727122306824,
0.573370099067688,
-0.04309721291065216,
0.17280982434749603,
0.07421645522117615,
-0.18566377460956573,
-0.13516636192798615,
0.30577486753463745,
0.2549993395805359,
-0.04839872941374779,
-0.23486238718032837,
0.22553202509880066,
-0.3175957500934601,
0.16910593211650848,
0.5100562572479248,
-0.028745848685503006,
-0.008707448840141296,
-0.2693238854408264,
0.00969202071428299,
0.3701847493648529,
0.08201971650123596,
0.256670206785202,
0.07617228478193283,
-0.0887145921587944,
0.2006741315126419,
0.23740199208259583,
-0.1238609254360199,
0.02468174695968628,
-0.1515246331691742,
-0.1954527646303177,
-0.20539452135562897,
0.4353124499320984,
0.09283651411533356,
0.7878342866897583,
-0.23235641419887543,
0.161380797624588,
0.27821922302246094,
0.029196232557296753,
0.6408735513687134,
-0.031516190618276596,
0.3367307782173157,
-0.18474160134792328,
-0.29630741477012634,
0.05368534475564957,
-0.021155092865228653,
0.15321213006973267,
0.014197118580341339,
-0.6053222417831421,
0.23526084423065186,
0.38342177867889404,
0.029827658087015152,
0.08889055997133255,
0.13620364665985107,
-0.1128021702170372,
-0.3289945125579834,
-0.6385901570320129,
0.1790301501750946,
-0.313879132270813,
0.1982150375843048,
-0.30542826652526855,
0.00338922580704093,
-0.25723713636398315,
0.05614418536424637,
-0.36994582414627075,
0.15100419521331787,
-0.5142825841903687,
-0.048113808035850525,
0.20631717145442963,
-0.3006664514541626,
-0.10240209102630615,
0.30063945055007935,
0.17832356691360474,
0.2046714723110199,
0.06039510667324066,
0.06155629828572273,
-0.05859043449163437,
-0.3044576942920685,
0.08371369540691376,
0.03717800974845886,
0.07622469216585159,
-0.20884168148040771,
-0.08287806808948517,
-0.07315390557050705,
0.27861639857292175,
-0.23776984214782715,
0.3863202929496765,
0.2796517014503479,
0.18206240236759186,
0.020237091928720474,
-0.0653483122587204,
-0.03768105059862137,
-0.17243266105651855,
-0.2808220684528351,
0.10838411748409271,
-0.10882605612277985,
-0.06522034108638763,
0.28962740302085876,
0.14065684378147125,
-0.1736128330230713,
-0.003592710942029953,
0.27035507559776306,
-0.17901074886322021,
0.10638570785522461,
0.2071496546268463,
0.27321621775627136,
-0.11991089582443237,
-0.2189284861087799,
0.1924760341644287,
-0.5636961460113525,
-0.17945417761802673,
0.02946147322654724,
-0.07871986925601959,
-0.026361778378486633,
-0.0818362757563591,
0.6315822601318359,
0.30250126123428345,
0.025656767189502716,
-0.07841398566961288,
-0.4058822989463806,
-0.18444310128688812,
0.2054406851530075,
0.17861144244670868,
-0.15196451544761658,
0.37673136591911316,
0.3331972658634186,
0.1933424472808838,
0.048747800290584564,
-0.23890841007232666,
0.2942788600921631,
-0.40905481576919556,
0.16265298426151276,
-0.057454660534858704,
-0.3167053163051605,
0.1807572990655899,
-0.16345803439617157,
-0.00683077797293663,
0.5193843841552734,
0.12761425971984863,
-0.23762616515159607,
-0.08323653042316437,
0.06300930678844452,
0.020876556634902954,
-0.10651824623346329,
-0.31564009189605713,
-0.07924571633338928,
-0.03797803074121475,
-0.03086896613240242,
0.09227964282035828,
-0.11091025173664093,
0.212151899933815,
-0.04508569836616516,
0.2560538351535797,
0.22376394271850586,
0.18538732826709747,
0.03360743820667267,
-0.026624657213687897,
0.257199764251709,
0.10353553295135498,
0.20876526832580566,
0.17264537513256073,
0.03858967125415802,
0.2261846363544464,
-0.04137671738862991,
-0.1663670688867569,
0.07988914847373962,
0.31233200430870056,
-0.36842745542526245,
0.06631956994533539,
-0.12071546167135239,
-0.08334987610578537,
0.3914608061313629,
0.09454604238271713,
-0.22146642208099365,
0.24221813678741455,
0.1205795556306839,
-0.20341137051582336,
0.059440966695547104,
0.5620880722999573,
0.19853359460830688,
0.11759142577648163,
0.5118358731269836,
0.0033109188079833984,
-0.00012683123350143433,
0.14947199821472168,
0.11183459311723709,
0.2903252840042114,
0.4005500078201294,
-0.05944615975022316,
-0.10892580449581146,
-0.04077741503715515,
0.104637511074543,
0.12247178703546524,
0.10486482083797455,
0.18972009420394897,
-0.00313543900847435,
-0.08938489109277725,
0.09117856621742249,
-0.21281391382217407,
0.07399377226829529,
0.3456500470638275,
-0.0707036554813385,
-0.27605268359184265,
0.06119848042726517,
0.2291266918182373,
0.06246265023946762,
0.07917830348014832,
0.7251798510551453,
-0.34648066759109497,
-0.22814305126667023,
-0.024097880348563194,
0.16770587861537933,
-0.39005377888679504,
0.11122982203960419,
-0.25787609815597534,
0.10365500301122665,
-0.07326463609933853,
0.06669127941131592,
-0.15407687425613403,
-0.1333082914352417,
0.3501732647418976,
0.2939985394477844,
-0.17318867146968842,
-0.0247326847165823,
-0.10646124929189682,
0.16021224856376648,
-0.10827081650495529,
-0.023033227771520615,
0.38537654280662537,
-0.34098517894744873,
0.1951877921819687,
-0.18485820293426514,
0.5654683709144592,
0.17510437965393066,
0.18691003322601318,
-0.2589704394340515,
-0.19222982227802277,
-0.04654556140303612,
-0.009189765900373459,
-0.12912294268608093,
-0.10915708541870117,
0.48110431432724,
0.17956234514713287,
0.25972676277160645,
0.07102756947278976,
-0.1390821933746338,
0.2577848732471466,
0.19828593730926514,
-0.28091350197792053,
0.14965349435806274,
-0.2773092985153198,
0.048088349401950836,
-0.17036549746990204,
-0.2510799765586853,
-0.10992112010717392,
-0.2670922875404358,
0.4196457862854004,
-0.2630302906036377,
-0.0888083279132843,
0.08305710554122925,
-0.06837159395217896,
0.06529141217470169,
0.03694292902946472,
0.5547956228256226,
0.3388822674751282,
0.017960920929908752,
-0.25608688592910767,
-0.4043075442314148,
-0.39630091190338135,
0.229655459523201,
-0.22898262739181519,
-0.0777447372674942,
0.08669216930866241,
0.29644307494163513,
-0.05007917433977127,
0.4934333562850952,
0.014593251049518585,
0.044201746582984924,
-0.1833365559577942,
-0.009463787078857422,
-0.5380401611328125,
-0.06271477043628693,
0.21355824172496796,
-0.33248063921928406,
-0.07470697164535522,
-0.25559213757514954,
0.22630320489406586,
-0.3445773720741272,
0.011230047792196274,
-0.02247137948870659,
-0.370182067155838,
-0.24126365780830383,
-0.08207912743091583,
0.172968327999115,
0.07968740910291672,
0.0680849701166153,
0.012300226837396622,
-0.23334714770317078,
0.034245558083057404,
-0.25865283608436584,
-0.20849594473838806,
0.04084768891334534,
0.20121560990810394,
0.22902452945709229,
0.08602141588926315,
0.36334529519081116,
-0.0953332856297493,
0.5152754187583923,
0.09685777127742767,
0.04516291618347168,
-0.04169939458370209,
-0.024246936663985252,
-0.12853002548217773,
0.13830962777137756,
-0.2299618273973465,
0.440796822309494,
-0.3113745152950287,
0.2767089307308197,
-0.48550182580947876,
-0.3400692939758301,
0.3633515238761902,
-0.5322362780570984,
-0.1876489520072937,
0.04002244770526886,
0.22818872332572937,
0.08981312066316605,
-0.1765880286693573,
-0.29772689938545227,
-0.024630941450595856,
-0.11291205883026123,
-0.2359899878501892,
-0.41634878516197205,
0.23685190081596375,
-0.1849522739648819,
0.04134855791926384,
-0.09677991271018982,
0.28482717275619507,
0.03882329910993576,
-0.24422158300876617,
-0.21315860748291016,
-0.21907705068588257
] |
https://github.com/huggingface/datasets/issues/217 | Multi-task dataset mixing | I like this feature! I think the first question we should decide on is how to convert all datasets into the same format. In T5, the authors decided to format every dataset into a text-to-text format. If the dataset had "multiple" inputs like MNLI, the inputs were concatenated. So in MNLI the input:
> - **Hypothesis**: The St. Louis Cardinals have always won.
>
> - **Premise**: yeah well losing is i mean i’m i’m originally from Saint Louis and Saint Louis Cardinals when they were there were uh a mostly a losing team but
was flattened to a single input:
> mnli hypothesis: The St. Louis Cardinals have always won. premise:
> yeah well losing is i mean i’m i’m originally from Saint Louis and Saint Louis Cardinals
> when they were there were uh a mostly a losing team but.
This flattening is actually a very simple operation in `nlp` already. You would just need to do the following:
```python
def flatten_inputs(example):
return {"input": "mnli hypothesis: " + example['hypothesis'] + " premise: " + example['premise']}
t5_ready_mnli_ds = mnli_ds.map(flatten_inputs, remove_columns=[<all columns except output>])
```
So I guess converting the datasets into the same format can be left to the user for now.
Then the question is how we can merge the datasets. I would probably be in favor of a simple
```python
dataset.add()
```
function that checks if the dataset is of the same format and if yes merges the two datasets. Finally, how should the sampling be implemented? **Examples-proportional mixing** corresponds to just merging the datasets and shuffling. For the other two sampling approaches we would need some higher-level features, maybe even a `dataset.sample()` function for merged datasets.
What are your thoughts on this @thomwolf @lhoestq @ghomasHudson @enzoampil ? | It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
| 291 | Multi-task dataset mixing
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
I like this feature! I think the first question we should decide on is how to convert all datasets into the same format. In T5, the authors decided to format every dataset into a text-to-text format. If the dataset had "multiple" inputs like MNLI, the inputs were concatenated. So in MNLI the input:
> - **Hypothesis**: The St. Louis Cardinals have always won.
>
> - **Premise**: yeah well losing is i mean i’m i’m originally from Saint Louis and Saint Louis Cardinals when they were there were uh a mostly a losing team but
was flattened to a single input:
> mnli hypothesis: The St. Louis Cardinals have always won. premise:
> yeah well losing is i mean i’m i’m originally from Saint Louis and Saint Louis Cardinals
> when they were there were uh a mostly a losing team but.
This flattening is actually a very simple operation in `nlp` already. You would just need to do the following:
```python
def flatten_inputs(example):
return {"input": "mnli hypothesis: " + example['hypothesis'] + " premise: " + example['premise']}
t5_ready_mnli_ds = mnli_ds.map(flatten_inputs, remove_columns=[<all columns except output>])
```
So I guess converting the datasets into the same format can be left to the user for now.
Then the question is how we can merge the datasets. I would probably be in favor of a simple
```python
dataset.add()
```
function that checks if the dataset is of the same format and if yes merges the two datasets. Finally, how should the sampling be implemented? **Examples-proportional mixing** corresponds to just merging the datasets and shuffling. For the other two sampling approaches we would need some higher-level features, maybe even a `dataset.sample()` function for merged datasets.
What are your thoughts on this @thomwolf @lhoestq @ghomasHudson @enzoampil ? | [
-0.06062908470630646,
-0.43357053399086,
-0.05662919580936432,
-0.015485987067222595,
-0.16559061408042908,
0.045248016715049744,
0.1855861395597458,
0.18405018746852875,
0.20416030287742615,
-0.14907918870449066,
-0.24861735105514526,
0.2844127118587494,
-0.1800081580877304,
0.47155264019966125,
0.38028350472450256,
-0.43187153339385986,
0.07262536138296127,
-0.14835739135742188,
-0.3279533088207245,
0.3465222120285034,
0.04343163222074509,
0.12348023056983948,
-0.18072383105754852,
0.02990194782614708,
-0.3513098359107971,
-0.16163310408592224,
-0.38507169485092163,
0.07486500591039658,
0.014117011800408363,
0.03146885335445404,
0.06988045573234558,
0.39470648765563965,
-0.041643377393484116,
0.18248316645622253,
-0.00011498483218019828,
-0.10627010464668274,
0.11025519669055939,
-0.10874644666910172,
0.09373293817043304,
-0.034078359603881836,
0.13381743431091309,
-0.3790648281574249,
0.0580894872546196,
-0.1654159277677536,
0.20267707109451294,
0.14574670791625977,
0.19343507289886475,
0.05130413919687271,
0.36705589294433594,
-0.21853362023830414,
0.0840291902422905,
0.26443052291870117,
-0.1348501741886139,
0.32183077931404114,
-0.0651739314198494,
0.020471002906560898,
0.04488571733236313,
0.23994067311286926,
0.6195870637893677,
-0.47857674956321716,
-0.027776584029197693,
0.22522112727165222,
-0.01184164173901081,
-0.012316521257162094,
0.12501272559165955,
-0.06387188285589218,
-0.29112520813941956,
-0.23895949125289917,
-0.3664338290691376,
0.24455296993255615,
-0.0434681698679924,
-0.21901530027389526,
-0.22686196863651276,
-0.5487819910049438,
-0.02522239089012146,
-0.016629982739686966,
-0.3268793225288391,
0.06366664916276932,
-0.16956357657909393,
-0.0531395860016346,
-0.16527962684631348,
-0.07770995050668716,
-0.06440544128417969,
0.1307322084903717,
0.29616186022758484,
0.5442543029785156,
0.038709938526153564,
0.05356581509113312,
0.2903420627117157,
0.03676612675189972,
-0.11274207383394241,
-0.27517828345298767,
0.3076983392238617,
0.07872655242681503,
-0.3209529221057892,
-0.3482196033000946,
0.06954523921012878,
-0.31259217858314514,
0.321803480386734,
0.0821104496717453,
0.1377028524875641,
0.06355172395706177,
-0.13061809539794922,
0.21757495403289795,
0.3832531273365021,
0.008566899225115776,
-0.07508298009634018,
-0.16860555112361908,
0.007640227675437927,
-0.14267049729824066,
0.166143998503685,
0.15132863819599152,
0.11848519742488861,
-0.003999106120318174,
-0.44975215196609497,
-0.062116436660289764,
-0.07101365923881531,
0.05218544229865074,
-0.12578368186950684,
-0.508018434047699,
-0.11419270187616348,
-0.0967443585395813,
-0.11398353427648544,
-0.17604166269302368,
-0.2671768069267273,
0.1769249439239502,
0.0036281608045101166,
0.2718093693256378,
-0.16389119625091553,
0.03908424824476242,
-0.03798024356365204,
0.016829553991556168,
-0.4351595342159271,
-0.08235853165388107,
0.2814764380455017,
0.08760993182659149,
0.05325388163328171,
0.16166575253009796,
-0.04158565402030945,
0.06550053507089615,
0.3322536051273346,
0.028684966266155243,
0.1381821483373642,
-0.04580074921250343,
0.1786012202501297,
-0.26701048016548157,
-0.010550174862146378,
0.15709340572357178,
-0.31846198439598083,
-0.12241006642580032,
-0.15247106552124023,
-0.20893235504627228,
0.053033918142318726,
0.010931503027677536,
-0.17490284144878387,
-0.2891996204853058,
-0.4556141793727875,
0.7248812317848206,
0.015413455665111542,
-0.08319646120071411,
-0.19418594241142273,
0.13860651850700378,
-0.15149898827075958,
-0.0932869166135788,
0.22360260784626007,
0.11550796777009964,
-0.07817327976226807,
-0.27755188941955566,
0.01910070702433586,
-0.08028458058834076,
0.012737877666950226,
0.30455172061920166,
-0.06466164439916611,
0.2548954486846924,
0.06149987876415253,
0.20962883532047272,
0.30092236399650574,
-0.3996342718601227,
-0.0024377815425395966,
0.3445947468280792,
-0.055489636957645416,
0.3846754729747772,
0.1026827022433281,
0.12903264164924622,
0.0022140713408589363,
-0.19203852117061615,
0.26542097330093384,
0.9147470593452454,
-0.38112130761146545,
0.06711117923259735,
-0.19821710884571075,
-0.35375532507896423,
0.5127950310707092,
0.28418391942977905,
0.011131305247545242,
-0.34456196427345276,
-0.13308754563331604,
-0.00499488553032279,
0.07843364775180817,
0.003006972372531891,
0.03737086057662964,
-0.026519451290369034,
-0.3109758794307709,
0.07546771317720413,
-0.1949543058872223,
-0.11524049192667007,
-0.42474687099456787,
-0.10035927593708038,
0.04577969014644623,
0.3210237920284271,
0.26057296991348267,
-0.15339252352714539,
0.22681370377540588,
-0.3086336553096771,
-0.15567182004451752,
-0.25654056668281555,
0.13309967517852783,
-0.026752054691314697,
-0.014473878778517246,
-0.2060856819152832,
-0.09645242989063263,
0.32367777824401855,
0.05779218673706055,
-0.07589861750602722,
-0.49590301513671875,
0.24824412167072296,
-0.07776163518428802,
0.020057499408721924,
0.07954882830381393,
0.6802398562431335,
-0.18799659609794617,
-0.07588918507099152,
0.18547290563583374,
0.2653411030769348,
-0.31621891260147095,
0.25385788083076477,
0.22005945444107056,
0.3308730721473694,
0.2140362560749054,
-0.06979601830244064,
0.10537402331829071,
-0.06378671526908875,
-0.041656192392110825,
-0.22341910004615784,
-0.19158998131752014,
0.43757498264312744,
-0.17595215141773224,
0.46365275979042053,
-0.03217563033103943,
0.02915268950164318,
-0.22143882513046265,
-0.016902565956115723,
-0.23426415026187897,
0.3847416043281555,
0.3131431043148041,
-0.20771251618862152,
0.330809623003006,
-0.046972714364528656,
-0.4412025809288025,
0.25776755809783936,
0.2447434812784195,
0.06818337738513947,
0.09573755413293839,
-0.00955202430486679,
-0.04553452879190445,
-0.33494246006011963,
-0.060299210250377655,
0.342047780752182,
0.5666440725326538,
0.26995763182640076,
0.19837436079978943,
0.06839567422866821,
-0.26644694805145264,
-0.11241117119789124,
0.06929796934127808,
0.16281498968601227,
0.012806553393602371,
0.2764882445335388,
0.03590725362300873,
0.0701988935470581,
-0.016358159482479095,
-0.09048370271921158,
0.13983863592147827,
-0.18486730754375458,
-0.15955141186714172,
0.013510005548596382,
-0.2328624129295349,
-0.6612984538078308,
-0.26553818583488464,
0.05956569314002991,
-0.30620574951171875,
-0.31952112913131714,
0.12936271727085114,
0.017232242971658707,
-0.1474231332540512,
0.17125429213047028,
0.2321961224079132,
0.6074467897415161,
-0.39070573449134827,
-0.15059243142604828,
-0.06880830228328705,
-0.33188188076019287,
-0.14265218377113342,
0.07787397503852844,
0.5498901605606079,
0.3654058575630188,
0.4354555010795593,
0.1750752478837967,
0.001645626500248909,
0.04031544551253319,
-0.4197552800178528,
0.09459815174341202,
-0.33445626497268677,
0.16005343198776245,
0.06284292787313461,
-0.1625744253396988,
0.145670548081398,
-0.4231188893318176,
-0.0899716168642044,
0.02438994310796261,
-0.09786469489336014,
0.01752125471830368,
-0.03967547044157982,
0.027872160077095032,
-0.22343987226486206,
-0.3024544417858124,
-0.5716312527656555,
-0.45202362537384033,
0.3431042432785034,
-0.27985382080078125,
0.14475828409194946,
0.06941786408424377,
-0.2256753295660019,
0.14136266708374023,
-0.17480245232582092,
0.0703381672501564,
-0.1135634109377861,
-0.10608179867267609,
0.0421907901763916,
-0.3436841368675232,
-0.24148772656917572,
-0.38526859879493713,
-0.026993177831172943,
0.1701688915491104,
-0.0015297112986445427,
-0.06010911986231804,
-0.23663651943206787,
0.07347790151834488,
-0.2192818820476532,
0.11132610589265823,
0.2957321107387543,
0.13769002258777618,
-0.16666561365127563,
0.1337774246931076,
-0.04997440055012703,
-0.18687619268894196,
0.20781010389328003,
0.3281921148300171,
0.3863656520843506,
0.15270408987998962,
0.0017184503376483917,
0.27756547927856445,
0.6705090403556824,
0.34821492433547974,
0.043891653418540955,
0.09031006693840027,
0.2588981091976166,
0.060461338609457016,
0.1286642849445343,
-0.18067052960395813,
0.26686400175094604,
-0.20002755522727966,
0.5133734345436096,
0.15121990442276,
0.1806647777557373,
-0.10541173815727234,
-0.21315036714076996,
0.121270090341568,
-0.35108909010887146,
-0.19965612888336182,
0.30202972888946533,
-0.3192824721336365,
0.021582230925559998,
-0.054489657282829285,
-0.39920058846473694,
-0.25336867570877075,
-0.049554493278265,
0.0174271110445261,
0.3520646095275879,
-0.05508073419332504,
0.19885975122451782,
-0.4190729558467865,
-0.09170448035001755,
-0.46005314588546753,
0.19697138667106628,
0.08974152058362961,
0.3336329460144043,
-0.0685611441731453,
-0.11177276819944382,
-0.08517760038375854,
0.13111241161823273,
0.5710861086845398,
-0.5576232075691223,
-0.2217063456773758,
0.1770240068435669,
0.15061695873737335,
-0.08356267958879471,
-0.12241481244564056,
-0.38056638836860657,
-0.026714442297816277,
0.4663621783256531,
0.4254286587238312,
-0.4082848131656647,
-0.35964277386665344,
0.26695507764816284,
-0.16865195333957672,
-0.020688306540250778,
-0.13011735677719116,
-0.20354829728603363,
-0.21533042192459106,
-0.1732441931962967,
0.026581652462482452,
0.22452139854431152,
0.16896402835845947,
-0.15442819893360138,
0.1507239192724228,
-0.046022020280361176,
0.2372138798236847,
0.21118518710136414,
-0.012833873741328716,
-0.05038944631814957,
0.2638847231864929,
0.06503282487392426,
0.07246538996696472,
-0.030610866844654083,
-0.2702558934688568,
0.10697278380393982,
-0.13292735815048218,
0.06653202325105667,
0.2735389471054077,
-0.0788707360625267,
0.7340447902679443,
0.15070098638534546,
0.38636547327041626,
0.1744667887687683,
-0.1042376160621643,
0.020267918705940247,
-0.24745479226112366,
0.21436724066734314,
0.2087722271680832,
0.24122408032417297,
-0.18776966631412506,
-0.19011367857456207,
0.5577897429466248,
0.33030638098716736,
-0.015692852437496185,
0.4144620895385742,
-0.47154325246810913,
-0.2955443859100342,
0.3173154592514038,
0.03746078535914421,
0.7747865915298462,
-0.055943362414836884,
0.3117326498031616,
0.08896911144256592,
-0.4208639860153198,
0.5706250667572021,
-0.4346333146095276,
0.15796683728694916,
-0.09969180822372437,
-0.18400336802005768,
0.03026040457189083,
-0.10041126608848572,
-0.02649986743927002,
0.253398597240448,
-0.3821476995944977,
0.31427010893821716,
0.4203943610191345,
-0.2569928467273712,
-0.03189149498939514,
0.5367089509963989,
-0.05316830426454544,
-0.39282941818237305,
-0.056314192712306976,
0.041811443865299225,
-0.32738614082336426,
0.0886324942111969,
-0.1278613805770874,
-0.3133987784385681,
0.23929044604301453,
0.15864013135433197,
-0.3130236864089966,
0.10464955121278763,
-0.06307312846183777,
0.14268846809864044,
0.2242191731929779,
-0.035015687346458435,
0.24764710664749146,
-0.13931399583816528,
0.042992427945137024,
-0.13076217472553253,
-0.0667179673910141,
0.033008772879838943,
-0.10206148773431778,
0.07684876024723053,
0.09859750419855118,
-0.16361364722251892,
0.5141546726226807,
-0.003341134637594223,
0.00882694125175476,
-0.2976296842098236,
0.26126453280448914,
-0.3895632028579712,
-0.2769506573677063,
-0.0246763676404953,
0.1837063580751419,
0.09997125715017319,
-0.2911480963230133,
0.6143854260444641,
0.08731140196323395,
0.03576863184571266,
0.0402519553899765,
0.13858193159103394,
-0.234004944562912,
0.5710290670394897,
-0.24325911700725555,
-0.014289908111095428,
0.08371637016534805,
-0.01370169222354889,
-0.11303985863924026,
-0.4529515504837036,
-0.020737681537866592,
0.3857308328151703,
0.07245349138975143,
-0.02220539189875126,
0.06766719371080399,
0.13055871427059174,
-0.06083369255065918,
-0.017282705754041672,
-0.25171148777008057,
-0.29927951097488403,
0.10248850286006927,
0.24880772829055786,
0.2466527223587036,
0.1551617830991745,
-0.04194324463605881,
-0.24314837157726288,
-0.1397523283958435,
0.5461685657501221,
-0.030903611332178116,
0.26203447580337524,
-0.051448799669742584,
0.3808262348175049,
0.3815825283527374,
0.5050749182701111,
-0.2507596015930176,
0.07350753247737885,
0.06648890674114227,
0.19243595004081726,
0.4419762194156647,
-0.2678065896034241,
-0.032334111630916595,
0.24625657498836517,
-0.13508746027946472,
0.10860075801610947,
-0.324500173330307,
-0.15105034410953522,
-0.20546060800552368,
0.10554105043411255,
0.1972670555114746,
0.02915128879249096,
0.047509413212537766,
-0.03354012966156006,
-0.131168395280838,
-0.10678396373987198,
0.021673917770385742,
-0.37187129259109497,
-0.12796558439731598,
0.23094801604747772,
-0.11810041964054108,
0.03677097707986832,
0.07956747710704803,
0.1350078582763672,
0.0044634416699409485,
-0.09252649545669556,
0.3175365924835205,
0.09242822229862213,
0.06634557992219925,
-0.18915177881717682,
-0.1855025738477707,
0.04238731041550636,
0.23217353224754333,
0.18918287754058838,
0.002319786697626114,
0.0865117684006691,
-0.1705944687128067,
-0.16673603653907776,
0.212678462266922,
0.2336452305316925,
0.010325263254344463,
-0.0913672000169754,
0.1436547338962555,
0.09549888223409653,
-0.054431065917015076,
-0.005215857177972794,
0.22590725123882294,
0.05995384231209755,
-0.007214412093162537,
0.06645410507917404,
0.19826126098632812,
0.3934857249259949,
-0.18172965943813324,
0.0454789400100708,
0.03525957837700844,
-0.39731961488723755,
0.1519802361726761,
-0.04009990021586418,
0.00020200014114379883,
0.005286522209644318,
0.06006705015897751,
0.0377882681787014,
0.12491314858198166,
-0.32155513763427734,
0.3289366364479065,
0.26297345757484436,
0.025910846889019012,
0.035575538873672485,
0.17994672060012817,
-0.02849782072007656,
-0.1554698348045349,
0.27964484691619873,
0.07556229829788208,
0.4324944317340851,
0.058609023690223694,
0.8388552665710449,
-0.29281529784202576,
-0.5137996673583984,
0.11349073797464371,
0.4244178235530853,
-0.002087332308292389,
-0.19419604539871216,
0.05413750559091568,
0.11889057606458664,
-0.3490164875984192,
0.0717267096042633,
-0.06716370582580566,
-0.12387591600418091,
0.5954532623291016,
-0.003620930016040802,
0.166223406791687,
-0.22186920046806335,
-0.17409643530845642,
0.2818506360054016,
0.23936408758163452,
-0.11452321708202362,
0.11490653455257416,
0.08922411501407623,
-0.12978605926036835,
-0.1515507847070694,
0.5569123029708862,
0.2587624490261078,
0.05257079005241394,
-0.42290496826171875,
0.014232296496629715,
0.09556494653224945,
0.1088169664144516,
0.07581444084644318,
0.08942338079214096,
0.4531349837779999,
-0.13934725522994995,
0.2778194844722748,
-0.011475385166704655,
-0.011696536093950272,
-0.15413132309913635,
0.03352481126785278,
-0.4807213246822357,
-0.3438218832015991,
0.3919150233268738,
0.146526500582695,
-0.1690303236246109,
0.10381019115447998,
0.26207050681114197,
-0.7270409464836121,
-0.29052501916885376,
0.41981571912765503,
-0.028902454301714897,
-0.03651440888643265,
-0.20693452656269073,
0.06619676202535629,
0.18844327330589294,
0.5728135108947754,
0.2763861119747162,
0.32753753662109375,
-0.3885541558265686,
-0.11769848316907883,
-0.5355223417282104,
-0.17271295189857483,
0.19988913834095,
-0.049116432666778564,
-0.1868187040090561,
0.1479755938053131,
-0.021432973444461823,
0.32468080520629883,
-0.26161473989486694,
0.10892502963542938,
0.16829878091812134,
0.07349082827568054,
-0.5057319402694702,
0.11960294842720032,
0.20687872171401978,
0.04922572523355484,
0.19890865683555603,
-0.05705805867910385,
-0.08499008417129517,
0.13170500099658966,
-0.07632093131542206,
-0.08576163649559021,
0.005866222083568573,
0.24516677856445312,
0.1640404313802719,
-0.02646297961473465,
0.0823262482881546,
0.46308019757270813,
-0.01387263648211956,
-0.19936473667621613,
-0.01980407163500786,
0.04457441717386246,
-0.4071345627307892,
-0.07028961926698685,
-0.09318333864212036,
0.1952255815267563,
-0.39534685015678406,
0.29372459650039673,
0.008450201712548733,
-0.11666008830070496,
0.07646216452121735,
0.028759613633155823,
-0.15167857706546783,
-0.04983099550008774,
0.08785427361726761,
0.19569411873817444,
0.2983799874782562,
0.740127682685852,
-0.0052438899874687195,
0.12361165881156921,
-0.17261388897895813,
-0.06902088224887848,
0.027409374713897705,
-0.05322418361902237,
-0.2343156337738037,
-0.10208070278167725,
0.06130280718207359,
0.1682104766368866,
0.21723368763923645,
-0.6970363259315491,
-0.37758567929267883,
0.03720243275165558,
-0.0556473508477211,
0.013424761593341827,
0.7778043150901794,
0.13142220675945282,
-0.1681365817785263,
-0.16086922585964203,
-0.3078273832798004,
0.011136883869767189,
-0.2971329987049103,
0.04810890182852745,
-0.4513055682182312
] |
https://github.com/huggingface/datasets/issues/217 | Multi-task dataset mixing | I agree that we should leave the flattening of the dataset to the user for now. Especially because although the T5 framing seems obvious, there are slight variations on how the T5 authors do it in comparison to other approaches such as gpt-3 and decaNLP.
In terms of sampling, Examples-proportional mixing does seem the simplest to implement so would probably be a good starting point.
Temperature-scaled mixing would probably most useful, offering flexibility as it can simulate the other 2 methods by setting the temperature parameter. There is a [relevant part of the T5 repo](https://github.com/google-research/text-to-text-transfer-transformer/blob/03c94165a7d52e4f7230e5944a0541d8c5710788/t5/data/utils.py#L889-L1118) which should help with implementation.
According to the T5 authors, equal-mixing performs worst. Among the other two methods, tuning the K value (the artificial dataset size limit) has a large impact.
| It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
| 126 | Multi-task dataset mixing
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
I agree that we should leave the flattening of the dataset to the user for now. Especially because although the T5 framing seems obvious, there are slight variations on how the T5 authors do it in comparison to other approaches such as gpt-3 and decaNLP.
In terms of sampling, Examples-proportional mixing does seem the simplest to implement so would probably be a good starting point.
Temperature-scaled mixing would probably most useful, offering flexibility as it can simulate the other 2 methods by setting the temperature parameter. There is a [relevant part of the T5 repo](https://github.com/google-research/text-to-text-transfer-transformer/blob/03c94165a7d52e4f7230e5944a0541d8c5710788/t5/data/utils.py#L889-L1118) which should help with implementation.
According to the T5 authors, equal-mixing performs worst. Among the other two methods, tuning the K value (the artificial dataset size limit) has a large impact.
| [
-0.07244458794593811,
-0.46721792221069336,
-0.04016020894050598,
-0.05503201484680176,
-0.304560124874115,
0.07474436610937119,
0.17443394660949707,
0.0672956258058548,
0.2653244733810425,
-0.11934725940227509,
-0.25975528359413147,
0.30548810958862305,
-0.16949884593486786,
0.37805303931236267,
0.3509475588798523,
-0.4499824345111847,
-0.021549955010414124,
-0.1463443636894226,
-0.2921186089515686,
0.324207067489624,
0.05431581288576126,
0.11644226312637329,
-0.15435394644737244,
0.06619985401630402,
-0.27521660923957825,
-0.17669588327407837,
-0.3439987301826477,
0.12341010570526123,
0.08483202755451202,
0.0797639712691307,
0.13584420084953308,
0.3954451382160187,
-0.0185933206230402,
0.1279851794242859,
-0.00011141276627313346,
-0.09476099908351898,
0.09925343096256256,
-0.09712189435958862,
0.15263678133487701,
0.039992429316043854,
0.17799240350723267,
-0.3429226279258728,
0.06340295821428299,
-0.14008654654026031,
0.13159722089767456,
0.24719186127185822,
0.19724296033382416,
0.08876529335975647,
0.45008885860443115,
-0.3533526360988617,
0.10489168763160706,
0.31313857436180115,
-0.24382935464382172,
0.30103346705436707,
-0.0856853798031807,
-0.15280306339263916,
0.011506063863635063,
0.28885024785995483,
0.6218153238296509,
-0.5280057787895203,
-0.015143491327762604,
0.1048831194639206,
-0.04628794640302658,
0.049992285668849945,
0.13104337453842163,
-0.06663868576288223,
-0.2823980748653412,
-0.2535237669944763,
-0.3627520799636841,
0.27751314640045166,
-0.1223967894911766,
-0.06288985162973404,
-0.19258686900138855,
-0.5656951665878296,
-0.0037436108104884624,
0.05627445876598358,
-0.32901301980018616,
0.0878172293305397,
-0.2160567194223404,
0.015035618096590042,
-0.12497919052839279,
-0.1268683820962906,
-0.007691286504268646,
0.11148163676261902,
0.3081291615962982,
0.5256876945495605,
0.07436873018741608,
0.13465401530265808,
0.3524876534938812,
0.10151579231023788,
-0.14089278876781464,
-0.2651450037956238,
0.29077863693237305,
0.13547049462795258,
-0.3288770616054535,
-0.3770970404148102,
0.15168610215187073,
-0.26955822110176086,
0.2802700996398926,
0.09671387076377869,
0.14681476354599,
0.05229106545448303,
-0.08265133202075958,
0.26438310742378235,
0.3891303837299347,
0.012632425874471664,
-0.09676509350538254,
-0.11974313855171204,
0.023959074169397354,
-0.10591058433055878,
0.1915583312511444,
0.1394885629415512,
0.14466096460819244,
0.009005102328956127,
-0.434919148683548,
-0.11233692616224289,
-0.19096240401268005,
0.09654751420021057,
-0.1805191934108734,
-0.5517169833183289,
-0.08570042252540588,
-0.10183703899383545,
-0.020415514707565308,
-0.1243635043501854,
-0.288606733083725,
0.15308424830436707,
-0.07474681735038757,
0.15041980147361755,
-0.18043982982635498,
0.020788684487342834,
-0.07014712691307068,
0.06636746227741241,
-0.462980717420578,
-0.034968338906764984,
0.25921329855918884,
0.10559351742267609,
0.07144850492477417,
0.11740284413099289,
-0.020504042506217957,
0.1679401993751526,
0.42610976099967957,
0.030805807560682297,
0.028727881610393524,
-0.031047027558088303,
0.14761893451213837,
-0.3091065287590027,
-0.0313938669860363,
0.23604963719844818,
-0.3518317937850952,
-0.09727918356657028,
-0.14454913139343262,
-0.1775626838207245,
0.13741561770439148,
0.04549892246723175,
-0.21582353115081787,
-0.26927053928375244,
-0.4415571987628937,
0.7260336875915527,
-0.013284154236316681,
-0.023931728675961494,
-0.17176976799964905,
0.2594798803329468,
-0.20922546088695526,
-0.11802937090396881,
0.1894041895866394,
0.09559893608093262,
-0.02137024700641632,
-0.3190780282020569,
-0.10603879392147064,
-0.06091972067952156,
-0.015615887939929962,
0.3213065564632416,
-0.1517839878797531,
0.19926637411117554,
0.10687845945358276,
0.17462314665317535,
0.2618964612483978,
-0.42945703864097595,
-0.05689634382724762,
0.3527350127696991,
-0.061471547931432724,
0.38411837816238403,
0.05087518319487572,
0.17250452935695648,
-0.009614022448658943,
-0.21683624386787415,
0.24459514021873474,
0.9837130904197693,
-0.4041246473789215,
0.002475602552294731,
-0.18593965470790863,
-0.42441004514694214,
0.5637452602386475,
0.34826216101646423,
0.06482525169849396,
-0.29352277517318726,
-0.18867290019989014,
0.03436800092458725,
0.046717945486307144,
0.0923098772764206,
0.07490935176610947,
-0.08023218810558319,
-0.2644891142845154,
0.010359562933444977,
-0.22413432598114014,
-0.16983994841575623,
-0.42165297269821167,
-0.008736364543437958,
-0.03696257621049881,
0.378711462020874,
0.37277835607528687,
-0.14035239815711975,
0.2375965118408203,
-0.30643653869628906,
-0.11149366199970245,
-0.3117160499095917,
0.14455866813659668,
-0.06806747615337372,
0.012565948069095612,
-0.23941956460475922,
-0.06527670472860336,
0.20537610352039337,
0.0974024087190628,
-0.10502253472805023,
-0.4230082333087921,
0.2914789915084839,
-0.04073363542556763,
0.021508023142814636,
-0.01307590864598751,
0.6146175861358643,
-0.21612346172332764,
-0.11658564954996109,
0.2079828381538391,
0.2915942072868347,
-0.31383341550827026,
0.21099932491779327,
0.30932119488716125,
0.3545558452606201,
0.19584301114082336,
-0.06140470132231712,
0.09927031397819519,
-0.012210842221975327,
-0.08991348743438721,
-0.1710815280675888,
-0.08095396310091019,
0.4797084331512451,
-0.20128370821475983,
0.35754549503326416,
-0.021909797564148903,
0.03489649295806885,
-0.20772439241409302,
-0.05692245438694954,
-0.19069336354732513,
0.38809967041015625,
0.31067466735839844,
-0.22799530625343323,
0.3347803056240082,
-0.07678524404764175,
-0.4003092348575592,
0.24344223737716675,
0.213972270488739,
0.013479508459568024,
0.09026546776294708,
-0.02306830883026123,
0.031240932643413544,
-0.31019848585128784,
-0.06050276756286621,
0.33754444122314453,
0.5514166355133057,
0.28949618339538574,
0.1773703396320343,
0.016729766502976418,
-0.21758262813091278,
-0.07269212603569031,
0.04261353611946106,
0.16537734866142273,
-0.06318730115890503,
0.14198382198810577,
-0.04109939560294151,
0.09890071302652359,
0.026657961308956146,
-0.1013486385345459,
0.12281962484121323,
-0.14453864097595215,
-0.04268094152212143,
-0.03750560060143471,
-0.15475675463676453,
-0.5833343267440796,
-0.1911752074956894,
0.052576202899217606,
-0.351531058549881,
-0.2960590720176697,
0.2087559700012207,
0.056854262948036194,
-0.17757241427898407,
0.16798065602779388,
0.19975095987319946,
0.639857292175293,
-0.3923531174659729,
-0.1751706302165985,
-0.05248209089040756,
-0.29990002512931824,
-0.11523305624723434,
0.13736416399478912,
0.43582600355148315,
0.30238279700279236,
0.4983602464199066,
0.23070316016674042,
-0.032879967242479324,
0.1201637014746666,
-0.3862844407558441,
0.11135128140449524,
-0.3567820191383362,
0.292169988155365,
0.09976131469011307,
-0.10114601254463196,
0.09706772863864899,
-0.36611253023147583,
-0.07395502924919128,
-0.09430362284183502,
-0.06166931986808777,
-0.04039435088634491,
0.008098902180790901,
0.026680590584874153,
-0.22710464894771576,
-0.2285710871219635,
-0.5969747304916382,
-0.49180614948272705,
0.28764608502388,
-0.25232428312301636,
0.09606636315584183,
0.043230995535850525,
-0.28764528036117554,
0.20857597887516022,
-0.14133496582508087,
0.03815534710884094,
-0.18621978163719177,
-0.07839255034923553,
-0.020862240344285965,
-0.3604215979576111,
-0.17928333580493927,
-0.42282941937446594,
-0.012584798969328403,
0.1930733025074005,
-0.07771395891904831,
-0.06733430922031403,
-0.2891924977302551,
0.03297625482082367,
-0.10656127333641052,
0.08936809003353119,
0.2331582009792328,
0.14413058757781982,
-0.20325012505054474,
0.07359959185123444,
-0.027181323617696762,
-0.14187851548194885,
0.27341723442077637,
0.3981158435344696,
0.3655797839164734,
0.14558753371238708,
-0.02538742497563362,
0.219741553068161,
0.7495045065879822,
0.2815072536468506,
0.08701775968074799,
0.10910961776971817,
0.2936365604400635,
-0.03916430100798607,
0.09498488903045654,
-0.17913995683193207,
0.25715652108192444,
-0.11236900091171265,
0.4973565936088562,
0.1744980812072754,
0.15857049822807312,
-0.20294636487960815,
-0.27151668071746826,
0.019823580980300903,
-0.2972189486026764,
-0.21401064097881317,
0.26668116450309753,
-0.27441728115081787,
-0.0028799548745155334,
-0.10535591840744019,
-0.41696441173553467,
-0.234373077750206,
-0.08540190756320953,
-0.02018502727150917,
0.2863882780075073,
0.042339544743299484,
0.1747758686542511,
-0.37227684259414673,
-0.024910684674978256,
-0.4501194357872009,
0.13502992689609528,
0.05351866036653519,
0.3062899708747864,
-0.12003685534000397,
-0.1052277684211731,
-0.09981358051300049,
0.15174591541290283,
0.5571807026863098,
-0.5467596650123596,
-0.15157866477966309,
0.08499203622341156,
0.08082804828882217,
-0.13787299394607544,
-0.07683338224887848,
-0.3483757972717285,
-0.013060996308922768,
0.4500729739665985,
0.3170134425163269,
-0.43303200602531433,
-0.3620239496231079,
0.22607125341892242,
-0.19920861721038818,
-0.07860676944255829,
-0.1529194414615631,
-0.20009300112724304,
-0.18559402227401733,
-0.12708842754364014,
0.014104656875133514,
0.26386481523513794,
0.20318379998207092,
-0.09490785002708435,
0.18410930037498474,
-0.02212688885629177,
0.26804250478744507,
0.2252076417207718,
0.03378423675894737,
-0.0832911804318428,
0.23447182774543762,
0.1479487121105194,
0.07315296679735184,
-0.027882300317287445,
-0.3805595934391022,
0.07879556715488434,
-0.08251625299453735,
0.11951848864555359,
0.3015068471431732,
0.0060753608122467995,
0.6325328946113586,
0.08441153168678284,
0.3359805941581726,
0.28056082129478455,
-0.10613888502120972,
0.08464592695236206,
-0.21934063732624054,
0.13918545842170715,
0.1587158888578415,
0.2518535852432251,
-0.09183423221111298,
-0.23387989401817322,
0.5279417037963867,
0.283838152885437,
-0.05037093162536621,
0.42784926295280457,
-0.48821699619293213,
-0.28396767377853394,
0.2870752811431885,
0.09380308538675308,
0.7551215291023254,
-0.02168121188879013,
0.305311918258667,
0.11571819335222244,
-0.35406529903411865,
0.6180204749107361,
-0.35709482431411743,
0.1053026020526886,
-0.07974337041378021,
-0.1983339488506317,
0.03314197063446045,
-0.053989361971616745,
-0.12255138903856277,
0.26842010021209717,
-0.34920868277549744,
0.3354416787624359,
0.4309322237968445,
-0.2644544839859009,
-0.04509780555963516,
0.533549964427948,
-0.02422485314309597,
-0.32665392756462097,
-0.02011404186487198,
0.07147374004125595,
-0.3004835844039917,
0.06917204707860947,
-0.14425387978553772,
-0.24988920986652374,
0.2116394340991974,
0.17763018608093262,
-0.2500087022781372,
0.0597391352057457,
-0.03575257584452629,
0.1542445570230484,
0.2190825194120407,
0.020608678460121155,
0.2647167444229126,
-0.23861092329025269,
-0.07471300661563873,
-0.16828158497810364,
-0.13552425801753998,
0.07205887883901596,
-0.19097506999969482,
0.044767238199710846,
0.11568423360586166,
-0.09888537973165512,
0.5525386333465576,
-0.0750093013048172,
-0.10550390928983688,
-0.260242223739624,
0.2500440180301666,
-0.40987861156463623,
-0.21422792971134186,
0.02000090479850769,
0.17416435480117798,
0.15157081186771393,
-0.3563395142555237,
0.5705783367156982,
0.060153018683195114,
0.05220336094498634,
0.05296209827065468,
0.16527259349822998,
-0.25514307618141174,
0.4723818898200989,
-0.24417655169963837,
0.00694882869720459,
0.05782712996006012,
0.009747035801410675,
-0.10201374441385269,
-0.3523835241794586,
-0.06964652240276337,
0.3133564591407776,
0.0930529236793518,
-0.042641352862119675,
0.031941644847393036,
0.13272346556186676,
-0.1125103086233139,
0.019939471036195755,
-0.17063003778457642,
-0.36914947628974915,
0.14089320600032806,
0.2494581937789917,
0.2711484134197235,
0.1825060099363327,
-0.1180848479270935,
-0.20866428315639496,
-0.10900386422872543,
0.5103974938392639,
0.0016728192567825317,
0.261293888092041,
-0.1301577091217041,
0.365526020526886,
0.4257889688014984,
0.4940808117389679,
-0.2902446687221527,
0.0371733084321022,
0.03744032233953476,
0.0964159220457077,
0.48279693722724915,
-0.2636582851409912,
0.02178012579679489,
0.2817055284976959,
-0.1314580887556076,
0.05857256054878235,
-0.34479525685310364,
-0.16829538345336914,
-0.22006307542324066,
0.11335428804159164,
0.10334279388189316,
-0.02065420150756836,
0.07225704938173294,
-0.04305379092693329,
-0.1420411467552185,
-0.06888540089130402,
0.04574937745928764,
-0.4992571175098419,
-0.0805312842130661,
0.22027719020843506,
-0.1371804177761078,
-0.011610068380832672,
0.020349960774183273,
0.2394147664308548,
-0.008112922310829163,
-0.12585985660552979,
0.2913140654563904,
0.1330931931734085,
0.12393432855606079,
-0.19249869883060455,
-0.16767209768295288,
0.019878849387168884,
0.21255208551883698,
0.17324060201644897,
-0.056936055421829224,
0.19535784423351288,
-0.1702480912208557,
-0.1422344297170639,
0.2402343451976776,
0.12741251289844513,
0.04383198544383049,
-0.1791522204875946,
0.17719939351081848,
0.14164865016937256,
-0.0975617915391922,
0.06519675999879837,
0.22627544403076172,
0.08455830067396164,
0.12077264487743378,
0.09019811451435089,
0.12194305658340454,
0.435793936252594,
-0.25440508127212524,
-0.017903003841638565,
0.14192308485507965,
-0.3514220118522644,
0.13409563899040222,
-0.045421671122312546,
-0.07775188982486725,
0.0030957721173763275,
0.1171456128358841,
-0.0741875171661377,
0.12427619099617004,
-0.3563072681427002,
0.35232314467430115,
0.2731308937072754,
-0.017980825155973434,
0.060442980378866196,
0.17766687273979187,
0.005221012979745865,
-0.1391509473323822,
0.3545144200325012,
0.10290157794952393,
0.40711650252342224,
0.03838289901614189,
0.9214754700660706,
-0.2826140820980072,
-0.4910769462585449,
0.07427024096250534,
0.440765917301178,
0.013904910534620285,
-0.20885933935642242,
0.06338121742010117,
0.07670664042234421,
-0.34909185767173767,
0.09109179675579071,
0.02814226783812046,
-0.16176632046699524,
0.6003193855285645,
-0.09266416728496552,
0.19700348377227783,
-0.12051044404506683,
-0.18638759851455688,
0.3041651248931885,
0.21934500336647034,
-0.08482009172439575,
0.03866227716207504,
0.08103226870298386,
-0.09659165143966675,
-0.20828376710414886,
0.5394884943962097,
0.13788560032844543,
-0.030669748783111572,
-0.481367290019989,
0.02654171735048294,
0.1303127557039261,
0.1619441658258438,
-0.042262256145477295,
0.16966313123703003,
0.4215090572834015,
-0.1417664736509323,
0.2907409965991974,
0.0038774460554122925,
-0.09474692493677139,
-0.18484845757484436,
0.07130412757396698,
-0.44073039293289185,
-0.35878971219062805,
0.38067787885665894,
0.14892952144145966,
-0.18169668316841125,
0.12254218757152557,
0.2738819420337677,
-0.6083035469055176,
-0.2265184223651886,
0.28876569867134094,
-0.1661261022090912,
-0.08401212841272354,
-0.22621043026447296,
0.08732547610998154,
0.05002957955002785,
0.6215301752090454,
0.2386120706796646,
0.34244564175605774,
-0.31244221329689026,
-0.11013573408126831,
-0.545261025428772,
-0.12234335392713547,
0.15473325550556183,
-0.12682484090328217,
-0.16537845134735107,
0.17525872588157654,
-0.02540057897567749,
0.3293078541755676,
-0.26487958431243896,
0.18954181671142578,
0.13836804032325745,
0.08010124415159225,
-0.45095717906951904,
0.14279408752918243,
0.080154649913311,
0.06859372556209564,
0.27189138531684875,
-0.10980723798274994,
-0.17113801836967468,
0.08312587440013885,
-0.06507858633995056,
-0.066062331199646,
-0.06892773509025574,
0.268602579832077,
0.1619204878807068,
0.03138817474246025,
0.07718020677566528,
0.43555596470832825,
0.004979562014341354,
-0.20629264414310455,
0.00151723250746727,
0.0014965664595365524,
-0.3515445590019226,
-0.19137001037597656,
-0.07274582982063293,
0.16833779215812683,
-0.335674524307251,
0.297101765871048,
-0.029855426400899887,
-0.11843476444482803,
0.12275145947933197,
0.061915308237075806,
-0.19488708674907684,
-0.09245579689741135,
0.10430418699979782,
0.151450976729393,
0.2151799350976944,
0.7912331819534302,
-0.033916398882865906,
0.051243141293525696,
-0.10069740563631058,
-0.010347888804972172,
0.0403270423412323,
-0.09624477475881577,
-0.2264845222234726,
-0.07545924186706543,
0.034431904554367065,
0.0869661346077919,
0.1020469218492508,
-0.6406653523445129,
-0.37819764018058777,
0.03704766929149628,
-0.040623389184474945,
-0.00032547488808631897,
0.7422392964363098,
0.09145565330982208,
-0.1913265436887741,
-0.07553999125957489,
-0.3233642876148224,
0.008202500641345978,
-0.29208600521087646,
0.16921210289001465,
-0.3407366871833801
] |
https://github.com/huggingface/datasets/issues/217 | Multi-task dataset mixing | I agree with going with temperature-scaled mixing for its flexibility!
For the function that combines the datasets, I also find `dataset.add()` okay while also considering that users may want it to be easy to combine a list of say 10 data sources in one go.
`dataset.sample()` should also be good. By the looks of it, we're planning to have as main parameters: `temperature`, and `K`.
On converting the datasets to the same format, I agree that we can leave these to the users for now. But, I do imagine it'd be an awesome feature for the future to have this automatically handled, based on a chosen *approach* to formatting :smile:
E.g. T5, GPT-3, decaNLP, original raw formatting, or a contributed way of formatting in text-to-text. | It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
| 125 | Multi-task dataset mixing
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
I agree with going with temperature-scaled mixing for its flexibility!
For the function that combines the datasets, I also find `dataset.add()` okay while also considering that users may want it to be easy to combine a list of say 10 data sources in one go.
`dataset.sample()` should also be good. By the looks of it, we're planning to have as main parameters: `temperature`, and `K`.
On converting the datasets to the same format, I agree that we can leave these to the users for now. But, I do imagine it'd be an awesome feature for the future to have this automatically handled, based on a chosen *approach* to formatting :smile:
E.g. T5, GPT-3, decaNLP, original raw formatting, or a contributed way of formatting in text-to-text. | [
-0.09163138270378113,
-0.42115896940231323,
-0.04513252526521683,
-0.0800991952419281,
-0.24046720564365387,
0.05904518812894821,
0.15878957509994507,
0.05346105247735977,
0.3097866177558899,
-0.15817706286907196,
-0.2333139330148697,
0.3175206482410431,
-0.19275899231433868,
0.3524588942527771,
0.42011597752571106,
-0.4721604287624359,
0.02778927981853485,
-0.20416438579559326,
-0.30798935890197754,
0.35350704193115234,
0.007799789309501648,
0.1143813282251358,
-0.17745059728622437,
0.08323550224304199,
-0.29802942276000977,
-0.16597582399845123,
-0.3557688593864441,
0.13368511199951172,
0.09494993835687637,
0.019252724945545197,
0.17773206532001495,
0.3762138783931732,
-0.03578927740454674,
0.06485836207866669,
-0.00011105542216682807,
-0.1133713349699974,
0.21172380447387695,
-0.08244482427835464,
0.09594771265983582,
-0.04149763286113739,
0.14164215326309204,
-0.3843329846858978,
0.00042412313632667065,
-0.09866783022880554,
0.18147027492523193,
0.16644372045993805,
0.1900741457939148,
0.04961878061294556,
0.3385021686553955,
-0.294039785861969,
0.1220092922449112,
0.30031073093414307,
-0.16042514145374298,
0.25943684577941895,
-0.07904628664255142,
-0.07974870502948761,
0.049122005701065063,
0.22365263104438782,
0.615023136138916,
-0.5491257309913635,
-0.0011969655752182007,
0.12823180854320526,
-0.0015518832951784134,
-0.02403174713253975,
0.1823764145374298,
-0.04576171562075615,
-0.3587009608745575,
-0.24357545375823975,
-0.3750152885913849,
0.23614180088043213,
-0.11858675628900528,
-0.1537860929965973,
-0.21855014562606812,
-0.5235369205474854,
0.027719449251890182,
0.01679702289402485,
-0.2812062203884125,
0.02997312881052494,
-0.16756241023540497,
-0.04844893887639046,
-0.16560254991054535,
-0.12260464578866959,
0.013107575476169586,
0.15340295433998108,
0.34610870480537415,
0.5681385397911072,
0.061527177691459656,
0.16792133450508118,
0.4003542363643646,
0.0016658753156661987,
-0.15272526443004608,
-0.31980204582214355,
0.2920108139514923,
0.09851104021072388,
-0.3879042863845825,
-0.3371361196041107,
0.14898017048835754,
-0.1886468231678009,
0.24584251642227173,
0.1551026701927185,
0.10689593851566315,
0.08710183948278427,
-0.1153276190161705,
0.2748212218284607,
0.32070669531822205,
0.06586852669715881,
-0.06847193092107773,
-0.11937606334686279,
0.027746913954615593,
-0.0849117636680603,
0.21637973189353943,
0.12413549423217773,
0.2167026549577713,
-0.02785905823111534,
-0.4467783570289612,
-0.14667266607284546,
-0.17592568695545197,
0.12826524674892426,
-0.17640115320682526,
-0.5241800546646118,
-0.052271828055381775,
-0.10353677719831467,
0.08943944424390793,
-0.04895589500665665,
-0.2832755148410797,
0.10215092450380325,
-0.07685326039791107,
0.20829127728939056,
-0.06274814158678055,
0.074934221804142,
-0.0794379785656929,
0.12596294283866882,
-0.43758130073547363,
-0.014975041151046753,
0.3017204701900482,
0.11206980049610138,
0.11711098998785019,
0.1599152684211731,
-0.028331086039543152,
0.10989746451377869,
0.3795180022716522,
-0.016750503331422806,
0.050977032631635666,
-0.007164474576711655,
0.13988077640533447,
-0.3260157108306885,
-0.048830438405275345,
0.17612828314304352,
-0.34295207262039185,
-0.14655020833015442,
-0.1350824236869812,
-0.20721760392189026,
0.14267094433307648,
0.05246535688638687,
-0.19705788791179657,
-0.2726626694202423,
-0.4697827398777008,
0.7273024916648865,
-0.06460895389318466,
-0.043152518570423126,
-0.13948529958724976,
0.2776138484477997,
-0.24226997792720795,
-0.09580093622207642,
0.1965184360742569,
0.0900474339723587,
-0.00832737609744072,
-0.32873424887657166,
-0.09379565715789795,
-0.11021557450294495,
-0.03254280239343643,
0.26917803287506104,
-0.17343465983867645,
0.20143675804138184,
0.04872129112482071,
0.2012598067522049,
0.27259188890457153,
-0.4674467444419861,
-0.0660240575671196,
0.31485715508461,
-0.021598827093839645,
0.3724563419818878,
0.04715681076049805,
0.22150442004203796,
-0.009119182825088501,
-0.19109755754470825,
0.2708728313446045,
0.9994987845420837,
-0.39096635580062866,
-0.005298696458339691,
-0.14486421644687653,
-0.3675382435321808,
0.5181843638420105,
0.3499695658683777,
0.06550005078315735,
-0.3326675593852997,
-0.1424451470375061,
-0.02377837523818016,
0.08096644282341003,
0.0770777091383934,
0.08081135153770447,
-0.023395735770463943,
-0.34960073232650757,
0.025720994919538498,
-0.21601708233356476,
-0.13175342977046967,
-0.3982789218425751,
-0.013192960992455482,
-0.011376731097698212,
0.3362925350666046,
0.2629060745239258,
-0.11397745460271835,
0.23644956946372986,
-0.2684759199619293,
-0.13135114312171936,
-0.3461120128631592,
0.15027059614658356,
-0.0612662136554718,
0.05107968673110008,
-0.26668667793273926,
-0.03675726428627968,
0.3218362331390381,
0.11384892463684082,
-0.11466039717197418,
-0.5048952102661133,
0.27984195947647095,
-0.08512596786022186,
0.03201023116707802,
-0.015920674428343773,
0.6123460531234741,
-0.13566911220550537,
-0.09030511975288391,
0.18309935927391052,
0.30674806237220764,
-0.328616738319397,
0.27149826288223267,
0.32483503222465515,
0.2580251693725586,
0.18337441980838776,
-0.0236835777759552,
0.11495964974164963,
-0.034800589084625244,
-0.0313691720366478,
-0.20113030076026917,
-0.1055302694439888,
0.4779737591743469,
-0.17939770221710205,
0.40344545245170593,
-0.027947615832090378,
0.027526484802365303,
-0.19954317808151245,
-0.03600265830755234,
-0.22701159119606018,
0.36756661534309387,
0.3015570044517517,
-0.19315457344055176,
0.385914146900177,
-0.09095468372106552,
-0.34883996844291687,
0.17814482748508453,
0.20084001123905182,
0.013798832893371582,
0.09302998334169388,
-0.016065463423728943,
-0.06031537801027298,
-0.310575395822525,
-0.06443559378385544,
0.41596806049346924,
0.6467360854148865,
0.27884340286254883,
0.14651674032211304,
0.053919173777103424,
-0.2370411902666092,
-0.07217700779438019,
0.027097463607788086,
0.179716557264328,
-0.022057846188545227,
0.13218189775943756,
0.02897246927022934,
0.05366839841008186,
-0.019798045977950096,
-0.14596925675868988,
0.13913601636886597,
-0.18290077149868011,
-0.02678796835243702,
0.03504468500614166,
-0.19006162881851196,
-0.5519418716430664,
-0.2311931699514389,
0.04605161026120186,
-0.3759755790233612,
-0.3040541112422943,
0.12783873081207275,
0.02509503997862339,
-0.19186317920684814,
0.1835838109254837,
0.21778565645217896,
0.5667127966880798,
-0.4283858835697174,
-0.25661715865135193,
-0.10000115633010864,
-0.2585212290287018,
-0.1005806252360344,
0.12403930723667145,
0.4180927872657776,
0.30088579654693604,
0.4967923164367676,
0.2893138825893402,
-0.0144692063331604,
0.020839327946305275,
-0.3807586133480072,
0.047637294977903366,
-0.2881385087966919,
0.26607847213745117,
0.10908102989196777,
-0.2344629019498825,
0.1544487625360489,
-0.4112606942653656,
-0.027231872081756592,
-0.06777631491422653,
-0.051392629742622375,
-0.04911774769425392,
-0.015199204906821251,
0.020708531141281128,
-0.17686617374420166,
-0.22578760981559753,
-0.6239801049232483,
-0.4909669756889343,
0.2893369197845459,
-0.28130948543548584,
0.06138419732451439,
0.016535373404622078,
-0.2601402997970581,
0.19389969110488892,
-0.15522322058677673,
0.03759909048676491,
-0.17455732822418213,
-0.1040850356221199,
0.046573396772146225,
-0.3616591691970825,
-0.16067270934581757,
-0.41546830534935,
-0.11438281089067459,
0.23246850073337555,
-0.08507481962442398,
-0.04257474094629288,
-0.23878861963748932,
0.0480952113866806,
-0.12757514417171478,
0.0941578596830368,
0.2228914052248001,
0.17515939474105835,
-0.22287103533744812,
0.09907542169094086,
-0.036776915192604065,
-0.26462921500205994,
0.19489195942878723,
0.33807292580604553,
0.4272565543651581,
0.17781013250350952,
0.01658044196665287,
0.17279329895973206,
0.7245486378669739,
0.2591908574104309,
0.055764250457286835,
0.15051734447479248,
0.3070638179779053,
0.03356949985027313,
0.14654819667339325,
-0.23375503718852997,
0.24164283275604248,
-0.16472846269607544,
0.5056421160697937,
0.09843356907367706,
0.1719013750553131,
-0.20434921979904175,
-0.28388088941574097,
-0.01278260163962841,
-0.257922500371933,
-0.1879766583442688,
0.26838409900665283,
-0.22223544120788574,
0.02027847245335579,
-0.05537908524274826,
-0.3724336624145508,
-0.25288233160972595,
-0.042795371264219284,
0.01794811710715294,
0.31589049100875854,
-0.030992090702056885,
0.15221863985061646,
-0.3451535403728485,
-0.04120025411248207,
-0.48308056592941284,
0.15105366706848145,
0.08815166354179382,
0.2757006287574768,
-0.08164836466312408,
-0.07314767688512802,
-0.14069849252700806,
0.10453693568706512,
0.5943598747253418,
-0.5221483707427979,
-0.16565866768360138,
0.09090553224086761,
0.08042658120393753,
-0.09018877148628235,
-0.0877537876367569,
-0.2720245122909546,
-0.04363011196255684,
0.4483155608177185,
0.36958056688308716,
-0.36920517683029175,
-0.31362131237983704,
0.25652015209198,
-0.18059858679771423,
-0.03166709840297699,
-0.19901400804519653,
-0.1823858767747879,
-0.18923208117485046,
-0.1420617252588272,
0.03215448930859566,
0.1843501627445221,
0.2113645076751709,
-0.10405126214027405,
0.17735299468040466,
-0.051965758204460144,
0.25296133756637573,
0.20239903032779694,
0.01307709701359272,
-0.04030046612024307,
0.22695478796958923,
0.15439720451831818,
0.031859759241342545,
-0.12105271220207214,
-0.29360508918762207,
0.09633085131645203,
-0.06996093690395355,
0.11005005985498428,
0.2714965343475342,
-0.0030548772774636745,
0.647285521030426,
0.057176969945430756,
0.3105742633342743,
0.28897732496261597,
-0.12562045454978943,
0.05900755152106285,
-0.2301299124956131,
0.14177154004573822,
0.22950930893421173,
0.25832220911979675,
-0.13931022584438324,
-0.1966269314289093,
0.5935569405555725,
0.3162989914417267,
-0.07326275110244751,
0.3897019922733307,
-0.462002694606781,
-0.27129310369491577,
0.2523408532142639,
0.02791830524802208,
0.6917433738708496,
-0.025947250425815582,
0.267162561416626,
0.06503350287675858,
-0.3845386505126953,
0.6288008093833923,
-0.3909122347831726,
0.15757401287555695,
-0.07772576063871384,
-0.23540286719799042,
0.03260169178247452,
-0.0945739597082138,
-0.06971938163042068,
0.26830846071243286,
-0.3717156648635864,
0.3496934473514557,
0.4773363471031189,
-0.2044101506471634,
-0.05117984116077423,
0.5518016219139099,
-0.029192721471190453,
-0.40027904510498047,
-0.10723719000816345,
0.08906126767396927,
-0.28121405839920044,
0.10603323578834534,
-0.16336697340011597,
-0.2763770818710327,
0.24864256381988525,
0.11350075900554657,
-0.27409279346466064,
0.1133618876338005,
-0.03516500070691109,
0.185569167137146,
0.26483941078186035,
0.016313396394252777,
0.25120624899864197,
-0.17889268696308136,
-0.06662268936634064,
-0.1549469381570816,
-0.08863678574562073,
0.1312907338142395,
-0.14661231637001038,
0.050258275121450424,
0.03055521845817566,
-0.20452772080898285,
0.5105492472648621,
-0.07615147531032562,
-0.10789057612419128,
-0.24377912282943726,
0.24476486444473267,
-0.43671661615371704,
-0.1542508602142334,
0.11010671406984329,
0.1682257503271103,
0.21321582794189453,
-0.3162404000759125,
0.6001375317573547,
0.08641354739665985,
-0.009584121406078339,
0.05580231174826622,
0.17730148136615753,
-0.23682627081871033,
0.48517778515815735,
-0.25789546966552734,
-0.004609912633895874,
0.05244012922048569,
0.01087816059589386,
-0.16225409507751465,
-0.37275442481040955,
-0.03353338688611984,
0.29813769459724426,
0.08636632561683655,
-0.016165155917406082,
-0.0029819421470165253,
0.10210399329662323,
-0.07975634932518005,
-0.0030075768008828163,
-0.1554478406906128,
-0.3322063088417053,
0.11653778702020645,
0.14724445343017578,
0.194705992937088,
0.16701383888721466,
-0.05395303666591644,
-0.2400147020816803,
-0.1859925538301468,
0.46923375129699707,
0.04061887040734291,
0.2234194129705429,
-0.1361561119556427,
0.34052035212516785,
0.4290603697299957,
0.5344372987747192,
-0.2816097140312195,
0.07217370718717575,
0.03279062360525131,
0.08643479645252228,
0.48312118649482727,
-0.23492589592933655,
0.07466640323400497,
0.27867868542671204,
-0.11924928426742554,
0.04919937252998352,
-0.34023579955101013,
-0.1727285087108612,
-0.2547365128993988,
0.0983533263206482,
0.11223417520523071,
-0.001839042641222477,
0.0054132211953401566,
-0.061273377388715744,
-0.07910142838954926,
-0.08158957958221436,
0.016571592539548874,
-0.38943102955818176,
-0.0693218857049942,
0.15564674139022827,
-0.1154109388589859,
0.015997830778360367,
0.05923853814601898,
0.20302245020866394,
0.009794093668460846,
-0.05242851376533508,
0.29116401076316833,
0.12709863483905792,
0.11118435859680176,
-0.1909792274236679,
-0.1763177365064621,
0.004691898822784424,
0.21382668614387512,
0.14815273880958557,
-0.029078662395477295,
0.16041764616966248,
-0.23436862230300903,
-0.14009565114974976,
0.2342924177646637,
0.1486859917640686,
0.02062026411294937,
-0.12043053656816483,
0.10565532743930817,
0.14062254130840302,
-0.12489870190620422,
-0.028531389310956,
0.1781449168920517,
0.1108478307723999,
0.13663135468959808,
0.11059955507516861,
0.1587068736553192,
0.4499141573905945,
-0.2100161463022232,
0.025973308831453323,
0.11526589840650558,
-0.3685954809188843,
0.12917619943618774,
-0.1154739111661911,
-0.040456317365169525,
0.005308225750923157,
0.14748267829418182,
-0.011129390448331833,
0.1395927518606186,
-0.32164740562438965,
0.3060736358165741,
0.3096955716609955,
-0.023712020367383957,
0.05864619091153145,
0.2391144335269928,
0.014807607978582382,
-0.13310982286930084,
0.3046790361404419,
0.018576331436634064,
0.3192404806613922,
0.04277346283197403,
0.8754273056983948,
-0.27222687005996704,
-0.4550587832927704,
0.10648269206285477,
0.43658512830734253,
0.03211098164319992,
-0.21552824974060059,
0.1552162915468216,
0.09118641167879105,
-0.4059765040874481,
0.12097842991352081,
0.05810791254043579,
-0.16374631226062775,
0.657473087310791,
-0.11649453639984131,
0.16466760635375977,
-0.15811491012573242,
-0.14994001388549805,
0.3523969352245331,
0.19673533737659454,
-0.09543827176094055,
0.010715100914239883,
0.11992545425891876,
-0.11069285869598389,
-0.1698523312807083,
0.5139837265014648,
0.22857210040092468,
0.03479323163628578,
-0.4124755263328552,
0.03735184669494629,
0.10713617503643036,
0.14290323853492737,
-0.07321150600910187,
0.13803698122501373,
0.4449818432331085,
-0.18126675486564636,
0.2542766034603119,
0.036787182092666626,
-0.07882073521614075,
-0.13540159165859222,
0.043384283781051636,
-0.3884744942188263,
-0.3973381221294403,
0.4565666615962982,
0.1096770167350769,
-0.1101016253232956,
0.04526505246758461,
0.3207002580165863,
-0.62641841173172,
-0.23748233914375305,
0.3614814877510071,
-0.13628989458084106,
-0.05009327456355095,
-0.2448354810476303,
0.08715897053480148,
0.08407556265592575,
0.6122646331787109,
0.2146090418100357,
0.353493869304657,
-0.4017142057418823,
-0.14038538932800293,
-0.5742545127868652,
-0.21603330969810486,
0.17194169759750366,
-0.07661673426628113,
-0.2584016025066376,
0.14676709473133087,
-0.06859175115823746,
0.28950589895248413,
-0.21401222050189972,
0.11786524951457977,
0.17773236334323883,
0.027057548984885216,
-0.4305388927459717,
0.11578352749347687,
0.05879107862710953,
0.0044216131791472435,
0.31976091861724854,
-0.11052536964416504,
-0.17421774566173553,
0.08242548257112503,
-0.05696425959467888,
-0.09089002013206482,
-0.06792841106653214,
0.23781463503837585,
0.1677982360124588,
0.0964898020029068,
0.08136250823736191,
0.46605223417282104,
-0.04932481423020363,
-0.20165422558784485,
-0.008785728365182877,
0.012513082474470139,
-0.3770979940891266,
-0.16616755723953247,
-0.07718420028686523,
0.1801459640264511,
-0.3348349928855896,
0.25497087836265564,
-0.016633950173854828,
-0.08482343703508377,
0.1192188560962677,
0.018418386578559875,
-0.18934877216815948,
-0.04945748299360275,
0.07420452684164047,
0.19506913423538208,
0.22280624508857727,
0.7319663763046265,
-0.010562308132648468,
0.08575460314750671,
-0.09298615157604218,
-0.034213848412036896,
0.07086566835641861,
-0.05211225152015686,
-0.20773284137248993,
-0.1361369639635086,
0.02423767000436783,
0.09727296233177185,
0.1356811672449112,
-0.6967554092407227,
-0.3358292579650879,
0.014331827871501446,
-0.022863440215587616,
0.03177754953503609,
0.7183234691619873,
0.06665360182523727,
-0.14486543834209442,
-0.11753158271312714,
-0.29869943857192993,
0.05342450737953186,
-0.28208163380622864,
0.18920589983463287,
-0.347708523273468
] |
https://github.com/huggingface/datasets/issues/217 | Multi-task dataset mixing | This is an interesting discussion indeed and it would be nice to make multi-task easier.
Probably the best would be to have a new type of dataset especially designed for that in order to easily combine and sample from the multiple datasets.
This way we could probably handle the combination of datasets with differing schemas as well (unlike T5). | It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
| 59 | Multi-task dataset mixing
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
This is an interesting discussion indeed and it would be nice to make multi-task easier.
Probably the best would be to have a new type of dataset especially designed for that in order to easily combine and sample from the multiple datasets.
This way we could probably handle the combination of datasets with differing schemas as well (unlike T5). | [
-0.07760493457317352,
-0.43013593554496765,
-0.05128121376037598,
-0.0076486170291900635,
-0.2415289431810379,
0.11484179645776749,
0.1743369847536087,
0.09231030941009521,
0.285218209028244,
-0.11796216666698456,
-0.24373625218868256,
0.27350902557373047,
-0.19464465975761414,
0.41696250438690186,
0.39820048213005066,
-0.4560348689556122,
0.00799696147441864,
-0.21966683864593506,
-0.2606218159198761,
0.3799697160720825,
0.0418277308344841,
0.09555913507938385,
-0.14734560251235962,
0.06278318166732788,
-0.29021960496902466,
-0.13717298209667206,
-0.34358662366867065,
0.0805075615644455,
0.10446854680776596,
0.034015003591775894,
0.19900545477867126,
0.3737783133983612,
0.008996957913041115,
0.10891854763031006,
-0.0001125285416492261,
-0.09094011038541794,
0.16050896048545837,
-0.07122158259153366,
0.13028448820114136,
-0.023052051663398743,
0.12360086292028427,
-0.3596465587615967,
0.06394380331039429,
-0.10716298967599869,
0.1815180480480194,
0.18675629794597626,
0.20179104804992676,
0.08393216133117676,
0.3181016147136688,
-0.31550005078315735,
0.09998162090778351,
0.2903839945793152,
-0.188325434923172,
0.28077977895736694,
-0.0540623739361763,
-0.06420394778251648,
0.030681220814585686,
0.22856402397155762,
0.6673139333724976,
-0.5304597616195679,
0.044611528515815735,
0.06839241087436676,
-0.027134789153933525,
0.04156406223773956,
0.1178881824016571,
-0.08518852293491364,
-0.30709484219551086,
-0.23946750164031982,
-0.373504638671875,
0.28026247024536133,
-0.07192543894052505,
-0.10643961280584335,
-0.23320813477039337,
-0.5333693027496338,
0.015734149143099785,
0.07696211338043213,
-0.29524514079093933,
0.05960892140865326,
-0.16279739141464233,
-0.019170626997947693,
-0.12912994623184204,
-0.12187948077917099,
-0.0014557838439941406,
0.1736191064119339,
0.30864158272743225,
0.55559241771698,
0.067918561398983,
0.1660679280757904,
0.3354540467262268,
0.06970097869634628,
-0.09848630428314209,
-0.2893272042274475,
0.2836751937866211,
0.06580842286348343,
-0.4028244614601135,
-0.3567551076412201,
0.130107119679451,
-0.2654317617416382,
0.28047752380371094,
0.1396421492099762,
0.16255949437618256,
0.09564372152090073,
-0.16685369610786438,
0.2518711984157562,
0.3397618532180786,
-0.022479118779301643,
-0.12287236005067825,
-0.13603000342845917,
0.017504237592220306,
-0.10887739807367325,
0.16654400527477264,
0.13610044121742249,
0.17564214766025543,
-0.018662452697753906,
-0.4268655776977539,
-0.11984265595674515,
-0.14647668600082397,
0.09820462763309479,
-0.18795855343341827,
-0.6031389236450195,
-0.09075357019901276,
-0.10779036581516266,
0.031006239354610443,
-0.15766063332557678,
-0.2877173125743866,
0.09265420585870743,
-0.10346325486898422,
0.24397870898246765,
-0.1317926049232483,
0.008540757931768894,
-0.048576634377241135,
0.06551429629325867,
-0.42392924427986145,
-0.04849176108837128,
0.2941405177116394,
0.09935462474822998,
0.04831133782863617,
0.16498549282550812,
-0.03427819162607193,
0.12868443131446838,
0.4205945134162903,
0.029048696160316467,
0.014122426509857178,
-0.03673830255866051,
0.17303965985774994,
-0.31929758191108704,
-0.011867497116327286,
0.2226765900850296,
-0.3717392086982727,
-0.1183750107884407,
-0.16984784603118896,
-0.2173643261194229,
0.09760742634534836,
0.033434152603149414,
-0.21831883490085602,
-0.31849896907806396,
-0.4913890063762665,
0.7129418253898621,
-0.044741712510585785,
-0.04646233469247818,
-0.16467726230621338,
0.26663896441459656,
-0.2322615087032318,
-0.09799230843782425,
0.1632625013589859,
0.08497121185064316,
0.013149559497833252,
-0.2949581444263458,
-0.09313122928142548,
-0.10383531451225281,
-0.0648113563656807,
0.301726371049881,
-0.16893528401851654,
0.2122739553451538,
0.06585818529129028,
0.13697393238544464,
0.24945619702339172,
-0.4536501467227936,
-0.048898667097091675,
0.3324489891529083,
-0.024969182908535004,
0.3570548892021179,
0.0768328607082367,
0.21231013536453247,
-0.003068731166422367,
-0.20406709611415863,
0.19492700695991516,
1.0177953243255615,
-0.3952716290950775,
-0.021734576672315598,
-0.11022859811782837,
-0.3906150162220001,
0.5425788164138794,
0.36107000708580017,
0.06734997034072876,
-0.33101266622543335,
-0.13180601596832275,
-0.008706184104084969,
0.09087187051773071,
0.07975563406944275,
0.04832100123167038,
-0.06289386749267578,
-0.3434605896472931,
0.04504074156284332,
-0.24580276012420654,
-0.19732004404067993,
-0.4192034602165222,
-0.020279165357351303,
0.0169575996696949,
0.2923036813735962,
0.33402079343795776,
-0.10002603381872177,
0.2713527977466583,
-0.3039945662021637,
-0.15376152098178864,
-0.3133299648761749,
0.1197587102651596,
-0.005619630217552185,
0.037996407598257065,
-0.2483403980731964,
-0.030674923211336136,
0.3191804587841034,
0.0992678552865982,
-0.1351189911365509,
-0.4337620735168457,
0.33981820940971375,
-0.047642968595027924,
0.04676089435815811,
-0.046398285776376724,
0.6206660866737366,
-0.19886359572410583,
-0.0915856882929802,
0.17018118500709534,
0.2487032115459442,
-0.32349538803100586,
0.2560335695743561,
0.32414013147354126,
0.35003387928009033,
0.19196608662605286,
-0.0883699283003807,
0.08618836849927902,
-0.012060664594173431,
-0.057738129049539566,
-0.19454288482666016,
-0.0840635672211647,
0.4658956527709961,
-0.1854705512523651,
0.41023892164230347,
-0.053562555462121964,
0.01475527323782444,
-0.1941017061471939,
-0.055069126188755035,
-0.18381217122077942,
0.41070130467414856,
0.30797436833381653,
-0.19726139307022095,
0.33659225702285767,
-0.11086152493953705,
-0.36304834485054016,
0.1967441737651825,
0.18514284491539001,
0.056777168065309525,
0.07615246623754501,
-0.03248857706785202,
-0.01916585862636566,
-0.29046353697776794,
-0.11108547449111938,
0.4045725464820862,
0.632398784160614,
0.2805098295211792,
0.11706016957759857,
-0.021244769915938377,
-0.2500745952129364,
-0.10282374173402786,
0.011356696486473083,
0.2060651332139969,
-0.016843603923916817,
0.1502840220928192,
0.04689295217394829,
0.0736096203327179,
0.04397183656692505,
-0.14593523740768433,
0.19349002838134766,
-0.17940032482147217,
-0.04956859350204468,
0.024610469117760658,
-0.19285307824611664,
-0.5652401447296143,
-0.21911370754241943,
0.043788447976112366,
-0.32790297269821167,
-0.3013746440410614,
0.1503419578075409,
0.05334009975194931,
-0.17695492506027222,
0.1552891731262207,
0.174662783741951,
0.5224668979644775,
-0.44439491629600525,
-0.2338438183069229,
-0.0641312450170517,
-0.28284719586372375,
-0.08073613047599792,
0.11607679724693298,
0.49301421642303467,
0.2858503758907318,
0.458903044462204,
0.2643528878688812,
-0.04553213343024254,
0.0037956349551677704,
-0.393947571516037,
0.02901083044707775,
-0.30691826343536377,
0.27917346358299255,
0.08302666991949081,
-0.217140331864357,
0.15055564045906067,
-0.3949962258338928,
-0.06443893909454346,
-0.04882243275642395,
-0.07792991399765015,
-0.02869235724210739,
-0.02504758909344673,
0.08972256630659103,
-0.17804275453090668,
-0.2269403636455536,
-0.6084066033363342,
-0.4707541763782501,
0.2826777696609497,
-0.2821086347103119,
0.07274036854505539,
0.03876447677612305,
-0.27793416380882263,
0.1508193463087082,
-0.1559339314699173,
0.028028225526213646,
-0.15452125668525696,
-0.11299005150794983,
-0.018640276044607162,
-0.36685511469841003,
-0.15962408483028412,
-0.4123149812221527,
-0.07378366589546204,
0.22635836899280548,
-0.07291726768016815,
-0.04983578622341156,
-0.2201995998620987,
0.06068342924118042,
-0.10324540734291077,
0.05648266524076462,
0.17424573004245758,
0.171852707862854,
-0.22455726563930511,
0.1106518805027008,
-0.04123209789395332,
-0.20303437113761902,
0.20850928127765656,
0.3692530691623688,
0.39855584502220154,
0.17247503995895386,
-0.045342817902565,
0.15867726504802704,
0.6988722681999207,
0.22570131719112396,
0.07469544559717178,
0.19577333331108093,
0.3003583550453186,
-0.008464690297842026,
0.14121998846530914,
-0.23328648507595062,
0.21620100736618042,
-0.13694718480110168,
0.49532991647720337,
0.11535320430994034,
0.1564604938030243,
-0.17848938703536987,
-0.26673001050949097,
0.053566593676805496,
-0.2868153750896454,
-0.18034426867961884,
0.23250870406627655,
-0.2959996461868286,
0.0018160343170166016,
-0.0648912638425827,
-0.46273961663246155,
-0.2831380069255829,
-0.04907664656639099,
-0.028592534363269806,
0.30236127972602844,
-0.018327929079532623,
0.16230668127536774,
-0.35870134830474854,
-0.023968402296304703,
-0.3594931662082672,
0.16688686609268188,
0.09561227262020111,
0.25671517848968506,
-0.08165295422077179,
-0.04528499394655228,
-0.07541695237159729,
0.13249662518501282,
0.5941110253334045,
-0.5726913809776306,
-0.11468005180358887,
0.11226172745227814,
0.06944013386964798,
-0.10702923685312271,
-0.11246563494205475,
-0.2531120181083679,
-0.022778498008847237,
0.4108979403972626,
0.3724685311317444,
-0.3512169420719147,
-0.3359474241733551,
0.2770610451698303,
-0.17802564799785614,
-0.06660332530736923,
-0.17734819650650024,
-0.18054449558258057,
-0.19922932982444763,
-0.1117430031299591,
-0.015012785792350769,
0.22503143548965454,
0.2360183596611023,
-0.09397926181554794,
0.16912846267223358,
-0.11902846395969391,
0.23430868983268738,
0.17777681350708008,
-0.02001757174730301,
-0.08604387193918228,
0.2196728140115738,
0.19012953341007233,
0.043739963322877884,
-0.12046530842781067,
-0.2854854166507721,
0.09027758985757828,
-0.08531801402568817,
0.04106868803501129,
0.32314589619636536,
-0.01695922762155533,
0.6543556451797485,
0.0035468488931655884,
0.3540610373020172,
0.297019362449646,
-0.15183080732822418,
0.03511972352862358,
-0.22525568306446075,
0.15921862423419952,
0.19328390061855316,
0.26458120346069336,
-0.1670914739370346,
-0.22239522635936737,
0.5615088939666748,
0.3239038586616516,
-0.04171861708164215,
0.3951152265071869,
-0.5345010161399841,
-0.2746388018131256,
0.27251482009887695,
0.02930125594139099,
0.6709375977516174,
-0.08567723631858826,
0.2816004455089569,
0.012769736349582672,
-0.4185323715209961,
0.6093611717224121,
-0.3563195466995239,
0.1455238312482834,
-0.07994003593921661,
-0.23156127333641052,
0.02108982764184475,
-0.07193595170974731,
-0.0998954251408577,
0.274353563785553,
-0.3496186137199402,
0.3014124035835266,
0.44390231370925903,
-0.18051084876060486,
-0.03987256437540054,
0.5531436800956726,
-0.015312841162085533,
-0.35707569122314453,
-0.03860917314887047,
0.06670399010181427,
-0.29009097814559937,
0.07109285891056061,
-0.15476682782173157,
-0.2515333294868469,
0.24413493275642395,
0.19273686408996582,
-0.3443206548690796,
0.0698324665427208,
0.018976306542754173,
0.1855352520942688,
0.2244635671377182,
-0.0021212249994277954,
0.29660817980766296,
-0.16361650824546814,
-0.031092718243598938,
-0.15915125608444214,
-0.1119893491268158,
0.12094727158546448,
-0.18845424056053162,
0.004920502658933401,
0.042633041739463806,
-0.19619153439998627,
0.5082728266716003,
-0.050266996026039124,
-0.17390087246894836,
-0.2432447075843811,
0.27716636657714844,
-0.46236932277679443,
-0.234364852309227,
0.12246428430080414,
0.1940978467464447,
0.21815618872642517,
-0.3146967887878418,
0.5614804029464722,
0.1279965192079544,
-0.011074673384428024,
0.04455450922250748,
0.13490194082260132,
-0.20838089287281036,
0.4753069281578064,
-0.28534358739852905,
-0.02586246281862259,
0.06688426434993744,
-0.00444813072681427,
-0.09673946350812912,
-0.371764600276947,
-0.04464796185493469,
0.3177083730697632,
0.16569332778453827,
-0.028410734608769417,
0.0740085169672966,
0.13821381330490112,
-0.09192880988121033,
-0.007477381266653538,
-0.16431015729904175,
-0.2981976568698883,
0.17177724838256836,
0.18261955678462982,
0.22253333032131195,
0.18226517736911774,
-0.07159317284822464,
-0.2359987050294876,
-0.12220047414302826,
0.4769057631492615,
-0.008986569941043854,
0.24603356420993805,
-0.139874666929245,
0.38459867238998413,
0.4304974675178528,
0.5406703352928162,
-0.2570675313472748,
0.12530718743801117,
0.043342553079128265,
0.08136990666389465,
0.5019497871398926,
-0.22554421424865723,
0.03800392523407936,
0.2741833031177521,
-0.14212465286254883,
0.041717804968357086,
-0.28885820508003235,
-0.16853713989257812,
-0.21639405190944672,
0.11692982167005539,
0.12696102261543274,
0.024143343791365623,
0.03174283728003502,
-0.054891668260097504,
-0.1292058378458023,
-0.05813799053430557,
-0.010788464918732643,
-0.37812110781669617,
-0.04661077260971069,
0.13477012515068054,
-0.06214970722794533,
0.048138923943042755,
0.04555411636829376,
0.24881504476070404,
-0.00548398494720459,
-0.04891197383403778,
0.302691251039505,
0.11371731013059616,
0.13134914636611938,
-0.19243091344833374,
-0.22585077583789825,
-0.0227675661444664,
0.2781149744987488,
0.16005362570285797,
-0.08049098402261734,
0.150943323969841,
-0.21033057570457458,
-0.14571724832057953,
0.1973722130060196,
0.10546503216028214,
0.06881039589643478,
-0.08835745602846146,
0.14663824439048767,
0.10758334398269653,
-0.07554781436920166,
0.013402207754552364,
0.19421404600143433,
0.07465557008981705,
0.07250690460205078,
0.10837621241807938,
0.13656003773212433,
0.47358930110931396,
-0.22609247267246246,
0.00319884717464447,
0.12324979901313782,
-0.3594173789024353,
0.15418587625026703,
-0.08749912679195404,
-0.06692633032798767,
-0.031022842973470688,
0.13147689402103424,
-0.05900460109114647,
0.13142868876457214,
-0.3177986145019531,
0.31435197591781616,
0.2902781665325165,
-0.01661481335759163,
-0.02386901155114174,
0.24449291825294495,
0.03816697373986244,
-0.14794540405273438,
0.29756519198417664,
0.0424143448472023,
0.3625641465187073,
0.03182316944003105,
0.898205041885376,
-0.2870643138885498,
-0.4490218162536621,
0.08506876230239868,
0.4442301392555237,
0.09313902258872986,
-0.21840837597846985,
0.12272992730140686,
0.10584602504968643,
-0.3336719870567322,
0.12666061520576477,
0.027429290115833282,
-0.1679345816373825,
0.6969404220581055,
-0.08871027827262878,
0.13946965336799622,
-0.15565210580825806,
-0.1600605845451355,
0.37913015484809875,
0.15306195616722107,
-0.08720023930072784,
0.005124254152178764,
0.11803162842988968,
-0.11495557427406311,
-0.17130552232265472,
0.5400869250297546,
0.1966329663991928,
-0.01698720082640648,
-0.441108763217926,
-0.0029196273535490036,
0.09282262623310089,
0.1858452409505844,
-0.003108641132712364,
0.1166483536362648,
0.4275517761707306,
-0.1776587814092636,
0.27570417523384094,
0.016501424834132195,
-0.04245160147547722,
-0.12721554934978485,
0.04194428026676178,
-0.3996359705924988,
-0.44053253531455994,
0.43349674344062805,
0.12663379311561584,
-0.10133077204227448,
0.12239081412553787,
0.34221887588500977,
-0.6254708170890808,
-0.21663497388362885,
0.3283938467502594,
-0.13515396416187286,
-0.099785216152668,
-0.21278685331344604,
0.08299487084150314,
0.05206245183944702,
0.6267999410629272,
0.2669467628002167,
0.35594043135643005,
-0.36786213517189026,
-0.1007736325263977,
-0.5913130640983582,
-0.15383943915367126,
0.1531476378440857,
-0.07130134105682373,
-0.2285647988319397,
0.1566445529460907,
-0.04573497921228409,
0.2795037031173706,
-0.1662362664937973,
0.1557861864566803,
0.22006581723690033,
0.06328541040420532,
-0.46292901039123535,
0.058169491589069366,
0.1567254364490509,
0.000871267169713974,
0.2697935104370117,
-0.09562165290117264,
-0.18361029028892517,
0.10721535980701447,
-0.08659351617097855,
-0.13303729891777039,
-0.0830833837389946,
0.2785077393054962,
0.14434298872947693,
0.1257951259613037,
0.06052196025848389,
0.4831174910068512,
-0.013349397107958794,
-0.1953573077917099,
0.0003229007124900818,
-0.01721910573542118,
-0.36595991253852844,
-0.13347649574279785,
-0.112190842628479,
0.161624476313591,
-0.4069580137729645,
0.3112418055534363,
0.020268268883228302,
-0.1174989566206932,
0.07889258861541748,
0.08206029236316681,
-0.1986318677663803,
-0.10772009938955307,
0.09251267462968826,
0.17402347922325134,
0.22926798462867737,
0.7064042091369629,
-0.00965544581413269,
0.08157211542129517,
-0.08162643760442734,
-0.024642208591103554,
0.013805195689201355,
0.001977461390197277,
-0.2365908920764923,
-0.09721919894218445,
0.03598775714635849,
0.04707084223628044,
0.14540281891822815,
-0.6879178285598755,
-0.33900171518325806,
0.07124534249305725,
0.008100433275103569,
0.06026842072606087,
0.7683097124099731,
0.13406985998153687,
-0.14332091808319092,
-0.10919444262981415,
-0.30650806427001953,
0.028837526217103004,
-0.27584391832351685,
0.18561287224292755,
-0.33611035346984863
] |
https://github.com/huggingface/datasets/issues/217 | Multi-task dataset mixing | @thomwolf Are you suggesting making a wrapper class which can take existing datasets as arguments and do all the required sampling/combining, to present the same interface as a normal dataset?
That doesn't seem too complicated to implement.
| It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
| 37 | Multi-task dataset mixing
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
@thomwolf Are you suggesting making a wrapper class which can take existing datasets as arguments and do all the required sampling/combining, to present the same interface as a normal dataset?
That doesn't seem too complicated to implement.
| [
-0.0898507684469223,
-0.3969319462776184,
-0.03166522830724716,
-0.03735208511352539,
-0.22644846141338348,
0.08738195151090622,
0.1969548612833023,
0.06602346152067184,
0.33273008465766907,
-0.13962112367153168,
-0.22614815831184387,
0.33182406425476074,
-0.202505424618721,
0.364516943693161,
0.4015561044216156,
-0.5019197463989258,
-0.009031452238559723,
-0.173209547996521,
-0.3404358923435211,
0.3434832692146301,
0.015904370695352554,
0.08975978940725327,
-0.1299690306186676,
0.05399265140295029,
-0.26590409874916077,
-0.14809484779834747,
-0.3480376899242401,
0.10398465394973755,
0.09025093168020248,
0.00020958390086889267,
0.2654457688331604,
0.3834891617298126,
-0.004184507764875889,
0.11468615382909775,
-0.00011099901894340292,
-0.10409437119960785,
0.17799270153045654,
-0.0618874728679657,
0.13401590287685394,
-0.022733360528945923,
0.20591747760772705,
-0.37410908937454224,
0.04129569232463837,
-0.14299581944942474,
0.09510386735200882,
0.18651129305362701,
0.14864736795425415,
0.061315976083278656,
0.43896639347076416,
-0.3271813690662384,
0.11371619999408722,
0.2715316712856293,
-0.21278420090675354,
0.2160601168870926,
-0.10353557020425797,
-0.08171667158603668,
0.03618571162223816,
0.294839084148407,
0.6407872438430786,
-0.5255510807037354,
-0.026188530027866364,
0.09548552334308624,
-0.02736244723200798,
-0.02691734954714775,
0.16530930995941162,
-0.055794015526771545,
-0.35310980677604675,
-0.23468083143234253,
-0.39337652921676636,
0.26181328296661377,
-0.19633114337921143,
-0.1110708937048912,
-0.22825071215629578,
-0.5546970963478088,
0.04327069967985153,
0.05650615692138672,
-0.32799771428108215,
0.04984404146671295,
-0.1630624532699585,
0.015065742656588554,
-0.16031582653522491,
-0.11377040296792984,
-0.03513505309820175,
0.15094515681266785,
0.3342222273349762,
0.5391832590103149,
0.07172667235136032,
0.18103088438510895,
0.37623298168182373,
0.06643146276473999,
-0.1559695154428482,
-0.2558469772338867,
0.2604013979434967,
0.1465931534767151,
-0.30014413595199585,
-0.38151079416275024,
0.102903351187706,
-0.20207494497299194,
0.26482445001602173,
0.16467398405075073,
0.09348052740097046,
0.12698063254356384,
-0.11747197061777115,
0.2820114493370056,
0.325901597738266,
-0.0005842959508299828,
-0.0584377720952034,
-0.08932564407587051,
0.03309013321995735,
-0.08139105886220932,
0.16326554119586945,
0.12141099572181702,
0.17396418750286102,
0.061765216290950775,
-0.4309348464012146,
-0.1242404654622078,
-0.20832112431526184,
0.14269210398197174,
-0.12683901190757751,
-0.5166337490081787,
-0.06742709875106812,
-0.08390908688306808,
0.06902995705604553,
-0.08924692124128342,
-0.3010069727897644,
0.11446873843669891,
-0.0229355301707983,
0.21466895937919617,
-0.06969907134771347,
0.014183207415044308,
-0.05495690554380417,
0.11815586686134338,
-0.4216567277908325,
-0.0169760100543499,
0.31222376227378845,
0.09955693781375885,
0.09712211787700653,
0.1739332526922226,
-0.0777563750743866,
0.12298429012298584,
0.4227031171321869,
0.02999722585082054,
0.02881704270839691,
-0.03779805079102516,
0.14484570920467377,
-0.32560497522354126,
-0.006402958184480667,
0.18319663405418396,
-0.3624856770038605,
-0.15413954854011536,
-0.09662527590990067,
-0.1651020348072052,
0.12379055470228195,
0.05943785235285759,
-0.22519664466381073,
-0.278982937335968,
-0.3781818449497223,
0.7292925119400024,
-0.06950313597917557,
-0.06143231317400932,
-0.17215260863304138,
0.2976943850517273,
-0.25143328309059143,
-0.07137679308652878,
0.1812424510717392,
0.0710499957203865,
-0.03282109647989273,
-0.38990500569343567,
-0.10039640963077545,
-0.10813318192958832,
-0.0720616802573204,
0.26875039935112,
-0.20015251636505127,
0.2165663242340088,
0.040044479072093964,
0.16750994324684143,
0.25886842608451843,
-0.40507930517196655,
-0.10159733146429062,
0.2870192229747772,
-0.037553563714027405,
0.3858811557292938,
0.07683293521404266,
0.24547532200813293,
0.08919399976730347,
-0.17639212310314178,
0.2526644468307495,
1.007195234298706,
-0.3976956903934479,
-0.06931675970554352,
-0.10972319543361664,
-0.38633760809898376,
0.504008948802948,
0.36682918667793274,
0.10829950869083405,
-0.23684099316596985,
-0.14913055300712585,
-0.05921303853392601,
0.06534449756145477,
0.04500474035739899,
0.10629820078611374,
-0.08196840435266495,
-0.34277451038360596,
0.030671492218971252,
-0.21699638664722443,
-0.20223867893218994,
-0.36724230647087097,
-0.002258189022541046,
-0.06508967280387878,
0.3331254720687866,
0.3727762699127197,
-0.1935800164937973,
0.18135923147201538,
-0.2651146650314331,
-0.07853192090988159,
-0.28933602571487427,
0.13996629416942596,
-0.0720679759979248,
0.0579693578183651,
-0.293438196182251,
-0.047703370451927185,
0.32401832938194275,
0.06630048155784607,
-0.09036172181367874,
-0.4725528061389923,
0.31648725271224976,
-0.06607319414615631,
0.04103972390294075,
-0.06410245597362518,
0.6213021278381348,
-0.168277770280838,
-0.13204818964004517,
0.21507906913757324,
0.22514599561691284,
-0.3285650908946991,
0.21186086535453796,
0.33674436807632446,
0.24053174257278442,
0.17107155919075012,
-0.05437057092785835,
0.10397084057331085,
0.019160259515047073,
-0.012393627315759659,
-0.22969642281532288,
-0.10859362035989761,
0.5694274306297302,
-0.06802870333194733,
0.43263161182403564,
-0.026005852967500687,
0.04270196706056595,
-0.183144673705101,
-0.1110735684633255,
-0.24281014502048492,
0.38110753893852234,
0.2990502119064331,
-0.21203315258026123,
0.35236048698425293,
-0.05134262889623642,
-0.3553396761417389,
0.13639681041240692,
0.13285289704799652,
0.0007284637540578842,
0.08132277429103851,
0.018113620579242706,
-0.06393151730298996,
-0.24718457460403442,
-0.09759588539600372,
0.41166698932647705,
0.5995678901672363,
0.29787203669548035,
0.14136414229869843,
0.07985913753509521,
-0.2595909535884857,
-0.07501399517059326,
0.038911476731300354,
0.19106249511241913,
-0.07945386320352554,
0.15421050786972046,
0.010218803770840168,
0.05711275339126587,
-0.015599600970745087,
-0.09665318578481674,
0.1261163055896759,
-0.22449786961078644,
-0.025746574625372887,
0.04047013074159622,
-0.15040069818496704,
-0.5861167907714844,
-0.23188793659210205,
0.005160968750715256,
-0.31230756640434265,
-0.26452451944351196,
0.140357106924057,
0.03932860121130943,
-0.17840604484081268,
0.15653885900974274,
0.1852189302444458,
0.6711629033088684,
-0.4588550925254822,
-0.22821228206157684,
-0.057080745697021484,
-0.2689538300037384,
-0.1103215143084526,
0.1257171332836151,
0.42610663175582886,
0.2776334583759308,
0.5188306570053101,
0.3089577853679657,
-0.03489603102207184,
0.06895526498556137,
-0.3962312936782837,
0.05782607942819595,
-0.2660856246948242,
0.3105843663215637,
0.1134503185749054,
-0.22008110582828522,
0.17031846940517426,
-0.3742893636226654,
0.002268899232149124,
-0.10265439003705978,
-0.0340796522796154,
-0.07405810058116913,
-0.04390890896320343,
0.08226995170116425,
-0.20276093482971191,
-0.1946837604045868,
-0.6382986903190613,
-0.473905473947525,
0.3052138090133667,
-0.21334049105644226,
0.0697750449180603,
0.019458817318081856,
-0.25893762707710266,
0.17852003872394562,
-0.13915330171585083,
-0.01368781179189682,
-0.1945848912000656,
-0.12896190583705902,
0.0167611725628376,
-0.33759650588035583,
-0.1641009896993637,
-0.40518641471862793,
-0.200860857963562,
0.22619280219078064,
-0.09001275151968002,
-0.06370006501674652,
-0.25243058800697327,
0.07718178629875183,
-0.12796801328659058,
0.1112927496433258,
0.21998314559459686,
0.1511766016483307,
-0.26820704340934753,
0.09364582598209381,
-0.02915412001311779,
-0.20805448293685913,
0.25715264678001404,
0.2949790954589844,
0.37840765714645386,
0.15610352158546448,
0.03820432722568512,
0.13332591950893402,
0.7063829898834229,
0.24469420313835144,
0.03195115178823471,
0.14577049016952515,
0.3078972399234772,
0.01725355163216591,
0.1577184945344925,
-0.2260901927947998,
0.19193752110004425,
-0.17036178708076477,
0.4489401578903198,
0.10616786777973175,
0.19418969750404358,
-0.20405198633670807,
-0.26494038105010986,
0.05006061866879463,
-0.22742387652397156,
-0.23034341633319855,
0.2668193280696869,
-0.18870285153388977,
0.011720940470695496,
-0.0904015302658081,
-0.36917319893836975,
-0.24698834121227264,
-0.022600557655096054,
0.01634899154305458,
0.2658742666244507,
-0.02319534868001938,
0.12559127807617188,
-0.4113302528858185,
-0.03634226322174072,
-0.43079185485839844,
0.18225982785224915,
0.07883042097091675,
0.26000627875328064,
-0.0604933425784111,
-0.07115358114242554,
-0.08951017260551453,
0.10068046301603317,
0.585612416267395,
-0.5367429256439209,
-0.17423425614833832,
0.11988340318202972,
0.07640210539102554,
-0.1405956745147705,
-0.06939771771430969,
-0.2734319865703583,
-0.04439005255699158,
0.4505380094051361,
0.3297436535358429,
-0.35634899139404297,
-0.2867949903011322,
0.29957613348960876,
-0.17227542400360107,
-0.0965835303068161,
-0.20668727159500122,
-0.15361545979976654,
-0.19949355721473694,
-0.1387164145708084,
0.05471786856651306,
0.1832152158021927,
0.1596934199333191,
-0.10423223674297333,
0.12230978906154633,
-0.111025869846344,
0.21563154458999634,
0.1978043168783188,
0.009142234921455383,
-0.04508156329393387,
0.2142859548330307,
0.1789844036102295,
0.03236905112862587,
-0.14142359793186188,
-0.3413662612438202,
0.12961843609809875,
-0.06286972761154175,
0.12924720346927643,
0.23772504925727844,
-0.015322888270020485,
0.6900309324264526,
0.04273311793804169,
0.3528766632080078,
0.3185286521911621,
-0.10639531910419464,
0.009463250637054443,
-0.3053719103336334,
0.13097529113292694,
0.16529592871665955,
0.2444353997707367,
-0.11793617159128189,
-0.22836343944072723,
0.5872110724449158,
0.3297058641910553,
-0.08609931170940399,
0.3757956624031067,
-0.4737699627876282,
-0.31049013137817383,
0.3206135034561157,
0.04829169809818268,
0.7352606058120728,
-0.020149968564510345,
0.29032981395721436,
0.06005895510315895,
-0.3805786967277527,
0.6396004557609558,
-0.3495910167694092,
0.126599982380867,
-0.1399347335100174,
-0.20601770281791687,
0.0089664775878191,
-0.08151321113109589,
-0.0617380365729332,
0.2745797038078308,
-0.36089685559272766,
0.3065805733203888,
0.3756440281867981,
-0.224798321723938,
-0.02693767286837101,
0.557915210723877,
-0.028485773131251335,
-0.40201884508132935,
-0.07268964499235153,
0.10170172154903412,
-0.27500271797180176,
0.06954887509346008,
-0.166645348072052,
-0.23242032527923584,
0.20850542187690735,
0.13539272546768188,
-0.2649180591106415,
0.10901293903589249,
-0.021996518597006798,
0.15653324127197266,
0.278109073638916,
0.021802984178066254,
0.27406981587409973,
-0.24619421362876892,
-0.08067682385444641,
-0.10604257881641388,
-0.08823481947183609,
0.13408663868904114,
-0.22274065017700195,
0.05913299694657326,
0.07656457275152206,
-0.16619177162647247,
0.529438853263855,
-0.029330473393201828,
-0.10595608502626419,
-0.2020447552204132,
0.23767538368701935,
-0.4289618730545044,
-0.16126315295696259,
0.10507787764072418,
0.19494925439357758,
0.12262491136789322,
-0.3510896861553192,
0.549436092376709,
0.09299586713314056,
-0.030742723494768143,
0.05949222296476364,
0.1608474850654602,
-0.28504258394241333,
0.4669378995895386,
-0.2044120877981186,
0.014505758881568909,
0.06675805151462555,
-0.034968920052051544,
-0.09817091375589371,
-0.3632010221481323,
-0.03582307696342468,
0.28807681798934937,
0.14274689555168152,
-0.045033298432826996,
0.008256211876869202,
0.17375104129314423,
-0.06492255628108978,
-0.0009056618437170982,
-0.10859962552785873,
-0.36780881881713867,
0.13817258179187775,
0.15505167841911316,
0.28181591629981995,
0.20770123600959778,
-0.10849173367023468,
-0.248535618185997,
-0.22846591472625732,
0.4540196657180786,
0.08564257621765137,
0.2493198812007904,
-0.13096779584884644,
0.3653293550014496,
0.4037597179412842,
0.5555804371833801,
-0.28828102350234985,
0.04747395217418671,
0.03007395751774311,
0.09261991083621979,
0.48831939697265625,
-0.24070292711257935,
0.0004643744323402643,
0.2718992829322815,
-0.1266113519668579,
0.06990161538124084,
-0.33545824885368347,
-0.18014973402023315,
-0.27896982431411743,
0.10328437387943268,
0.12159086018800735,
0.004378771875053644,
0.019434139132499695,
-0.025179363787174225,
-0.09327106177806854,
-0.07621189951896667,
-0.03240283578634262,
-0.42004573345184326,
-0.05961985886096954,
0.1347339004278183,
-0.07899220287799835,
0.04574647545814514,
-0.004299726337194443,
0.21682479977607727,
-0.005198732018470764,
-0.045062944293022156,
0.2772458493709564,
0.08747990429401398,
0.14421899616718292,
-0.17655101418495178,
-0.142299622297287,
0.00613325834274292,
0.3090961277484894,
0.10410786420106888,
-0.028175897896289825,
0.17523431777954102,
-0.204156756401062,
-0.07347247004508972,
0.26419737935066223,
0.19137395918369293,
0.028277799487113953,
-0.06573723256587982,
0.12197938561439514,
0.15415142476558685,
-0.133831188082695,
0.03742128610610962,
0.24652674794197083,
0.052805375307798386,
0.12569360435009003,
0.13203741610050201,
0.1526353508234024,
0.4616318345069885,
-0.2277931421995163,
-0.00958210974931717,
0.1340145617723465,
-0.3001978397369385,
0.16639307141304016,
-0.14242272078990936,
-0.0036701858043670654,
-0.018843214958906174,
0.1448398381471634,
-0.03046007826924324,
0.17718958854675293,
-0.3630973696708679,
0.2931554317474365,
0.3141859769821167,
-0.012024372816085815,
0.04972630366683006,
0.21571552753448486,
0.011386245489120483,
-0.13010422885417938,
0.309308260679245,
0.0953727662563324,
0.3369996249675751,
0.0031132549047470093,
0.8959378600120544,
-0.30851370096206665,
-0.4987751841545105,
0.08208102732896805,
0.42279934883117676,
0.03482489287853241,
-0.19934332370758057,
0.08230825513601303,
0.12727224826812744,
-0.3698180317878723,
0.07597468793392181,
0.07843434810638428,
-0.1865929514169693,
0.6474287509918213,
-0.11679522693157196,
0.16359612345695496,
-0.17023147642612457,
-0.20496198534965515,
0.34298190474510193,
0.15966202318668365,
-0.13731466233730316,
0.027702659368515015,
0.11107459664344788,
-0.06848172843456268,
-0.16262033581733704,
0.5162654519081116,
0.17436501383781433,
0.016103621572256088,
-0.44874680042266846,
0.04122626781463623,
0.050035879015922546,
0.15217240154743195,
-0.08710552006959915,
0.11920839548110962,
0.44169020652770996,
-0.16611997783184052,
0.24096055328845978,
0.03840508311986923,
-0.10613910108804703,
-0.15496841073036194,
0.014972086995840073,
-0.39575260877609253,
-0.4279158115386963,
0.440723717212677,
0.12134968489408493,
-0.15100494027137756,
0.01822032406926155,
0.25174233317375183,
-0.612327516078949,
-0.2271745502948761,
0.35456350445747375,
-0.17337319254875183,
-0.07675157487392426,
-0.22562618553638458,
0.08382944017648697,
0.03794889897108078,
0.6115508675575256,
0.21737948060035706,
0.3595840036869049,
-0.3842933177947998,
-0.17158132791519165,
-0.5617926716804504,
-0.18688657879829407,
0.14031954109668732,
-0.104629285633564,
-0.24724549055099487,
0.16251936554908752,
-0.07911824434995651,
0.2967413067817688,
-0.22634343802928925,
0.12328366935253143,
0.2228531837463379,
-0.024598509073257446,
-0.4108705222606659,
0.12129558622837067,
0.12449521571397781,
0.021147899329662323,
0.31346920132637024,
-0.08089769631624222,
-0.2103288620710373,
0.07324443757534027,
-0.07079598307609558,
-0.035641059279441833,
-0.08734423667192459,
0.26318711042404175,
0.14747220277786255,
0.11267443001270294,
0.06292161345481873,
0.5086531639099121,
-0.02627243846654892,
-0.16295656561851501,
0.02011702209711075,
-0.04937870427966118,
-0.38858604431152344,
-0.12324858456850052,
-0.08058895170688629,
0.21543627977371216,
-0.35622158646583557,
0.2585205137729645,
0.004247119650244713,
-0.15498526394367218,
0.14422039687633514,
0.032606810331344604,
-0.2562316954135895,
-0.05825861543416977,
-0.012390166521072388,
0.21576139330863953,
0.21925505995750427,
0.7426387667655945,
0.02795448526740074,
0.0870671197772026,
-0.0391523614525795,
-0.009825182147324085,
0.08792918920516968,
-0.04098976030945778,
-0.2214287370443344,
-0.1632402092218399,
0.010918483138084412,
0.015442132949829102,
0.09817108511924744,
-0.6646652817726135,
-0.3680720329284668,
0.042370378971099854,
-0.007605805993080139,
0.09818397462368011,
0.7144813537597656,
0.08214662969112396,
-0.14683641493320465,
-0.14546526968479156,
-0.27579182386398315,
0.03483787924051285,
-0.24518203735351562,
0.19327987730503082,
-0.3910035490989685
] |
https://github.com/huggingface/datasets/issues/217 | Multi-task dataset mixing | I guess we're looking at the end user writing something like:
``` python
ds = nlp.load_dataset('multitask-t5',datasets=["squad","cnn_dm",...], k=1000, t=2.0)
```
Using the t5 method of combining here (or this could be a function passed in as an arg)
Passing kwargs to each 'sub-dataset' might become tricky. | It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
| 45 | Multi-task dataset mixing
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
I guess we're looking at the end user writing something like:
``` python
ds = nlp.load_dataset('multitask-t5',datasets=["squad","cnn_dm",...], k=1000, t=2.0)
```
Using the t5 method of combining here (or this could be a function passed in as an arg)
Passing kwargs to each 'sub-dataset' might become tricky. | [
-0.029287461191415787,
-0.39404380321502686,
-0.061029642820358276,
-0.025662802159786224,
-0.2608686685562134,
0.08258049935102463,
0.1810528188943863,
0.04695601016283035,
0.28684309124946594,
-0.159453883767128,
-0.23304423689842224,
0.3090501129627228,
-0.2074713408946991,
0.385342001914978,
0.3700453042984009,
-0.4468320310115814,
-0.00714496523141861,
-0.20719128847122192,
-0.2622183561325073,
0.39257025718688965,
0.03699707239866257,
0.11199003458023071,
-0.14147129654884338,
0.1098049208521843,
-0.3010459840297699,
-0.13675633072853088,
-0.33219119906425476,
0.1030588150024414,
0.11648861318826675,
0.01812819391489029,
0.21229012310504913,
0.3617035150527954,
-0.047550614923238754,
0.14389479160308838,
-0.000114972070150543,
-0.044562697410583496,
0.1405428647994995,
-0.074546679854393,
0.12798742949962616,
-0.03853258490562439,
0.17277315258979797,
-0.3879162669181824,
0.0674859881401062,
-0.13466733694076538,
0.21632009744644165,
0.15920688211917877,
0.1809331178665161,
0.06926119327545166,
0.4056931138038635,
-0.32851266860961914,
0.08759264647960663,
0.2849262058734894,
-0.19006958603858948,
0.34371379017829895,
-0.10634855180978775,
-0.1040683388710022,
0.03765211999416351,
0.25891441106796265,
0.5864788293838501,
-0.5919812917709351,
0.053164705634117126,
0.08587069809436798,
0.012977907434105873,
-0.0354296937584877,
0.15835416316986084,
-0.0285797119140625,
-0.311081200838089,
-0.2244446575641632,
-0.41868385672569275,
0.18872538208961487,
-0.10443734377622604,
-0.15519008040428162,
-0.2215287685394287,
-0.5562815070152283,
-0.01707325503230095,
-0.0037983227521181107,
-0.3029249608516693,
-0.002131931483745575,
-0.17310278117656708,
-0.039497967809438705,
-0.1476767212152481,
-0.10621415078639984,
-0.05107482522726059,
0.15497177839279175,
0.3348466753959656,
0.5709899663925171,
0.12959960103034973,
0.17109696567058563,
0.3198665380477905,
0.05387623608112335,
-0.13317309319972992,
-0.2922164797782898,
0.3081018030643463,
0.16428856551647186,
-0.3647077977657318,
-0.3597908914089203,
0.19177629053592682,
-0.2589806616306305,
0.2324257493019104,
0.09343282878398895,
0.12703299522399902,
0.08136406540870667,
-0.14478754997253418,
0.2692348062992096,
0.33163249492645264,
0.03686690703034401,
-0.10527092963457108,
-0.12733256816864014,
0.028762569651007652,
-0.15994511544704437,
0.2352162003517151,
0.09670314192771912,
0.18593576550483704,
-0.02217850089073181,
-0.39544329047203064,
-0.1633712649345398,
-0.1346350610256195,
0.14888370037078857,
-0.19198037683963776,
-0.5355585217475891,
-0.16265323758125305,
-0.13995593786239624,
0.047498371452093124,
-0.13046783208847046,
-0.31422942876815796,
0.07659970223903656,
-0.030082575976848602,
0.18955914676189423,
-0.14268618822097778,
0.12083252519369125,
-0.052640389651060104,
0.0712481290102005,
-0.4480929374694824,
-0.04607638716697693,
0.27764496207237244,
0.1095261424779892,
0.08483081310987473,
0.13384383916854858,
0.014840647578239441,
0.1254810094833374,
0.401938259601593,
0.039292048662900925,
-0.019936464726924896,
-0.03314143046736717,
0.16819161176681519,
-0.3317156732082367,
-0.00626344233751297,
0.17574185132980347,
-0.3530603349208832,
-0.14903056621551514,
-0.15961074829101562,
-0.18683259189128876,
0.12111639976501465,
0.02449801005423069,
-0.2208404392004013,
-0.32014599442481995,
-0.4782346785068512,
0.676811933517456,
-0.027634553611278534,
-0.0647314041852951,
-0.16472333669662476,
0.27578574419021606,
-0.26916956901550293,
-0.12027717381715775,
0.17447729408740997,
0.04582817852497101,
0.0011190809309482574,
-0.35605624318122864,
-0.06673233211040497,
-0.07920409739017487,
-0.0776049867272377,
0.25847128033638,
-0.17129412293434143,
0.26238805055618286,
0.09088383615016937,
0.18576447665691376,
0.3408808410167694,
-0.47314971685409546,
-0.02268313430249691,
0.2970293462276459,
-0.0556330680847168,
0.41089123487472534,
0.07046765834093094,
0.22796079516410828,
-0.08120576292276382,
-0.20891080796718597,
0.2719017565250397,
1.0307592153549194,
-0.3764418661594391,
-0.022222008556127548,
-0.09570249915122986,
-0.39040136337280273,
0.5535189509391785,
0.34943288564682007,
0.07713975757360458,
-0.3079707622528076,
-0.10218002647161484,
-0.009633544832468033,
0.06673630326986313,
0.0841100737452507,
0.07473300397396088,
-0.08781152963638306,
-0.3393518924713135,
0.11391210556030273,
-0.21026678383350372,
-0.151898592710495,
-0.3530144691467285,
0.033923350274562836,
0.024167347699403763,
0.3140195310115814,
0.25735390186309814,
-0.13017866015434265,
0.20869868993759155,
-0.2874012589454651,
-0.148652583360672,
-0.2948301136493683,
0.10739156603813171,
-0.07125674188137054,
0.00028762221336364746,
-0.2379789650440216,
-0.03177585452795029,
0.3077724575996399,
0.13992442190647125,
-0.13622355461120605,
-0.4772069454193115,
0.29331859946250916,
-0.06322193145751953,
0.05785404145717621,
-0.05632796511054039,
0.6482889652252197,
-0.16215360164642334,
-0.06727872788906097,
0.19220906496047974,
0.3254881501197815,
-0.33068832755088806,
0.23631688952445984,
0.31374451518058777,
0.3130960464477539,
0.1656138300895691,
0.006151285022497177,
0.11799050867557526,
0.01164022833108902,
-0.001240065786987543,
-0.21448668837547302,
-0.09475589543581009,
0.5063756108283997,
-0.19477279484272003,
0.42483028769493103,
-0.023951010778546333,
-0.0024468377232551575,
-0.2053101360797882,
-0.01521768793463707,
-0.1752178966999054,
0.41539132595062256,
0.2906005084514618,
-0.23537127673625946,
0.29709187150001526,
-0.1605682522058487,
-0.37394195795059204,
0.1721217781305313,
0.17921580374240875,
0.01886729523539543,
0.03440381586551666,
-0.04453442990779877,
0.007732845842838287,
-0.2754392921924591,
-0.10600471496582031,
0.31868231296539307,
0.6577329039573669,
0.2544582188129425,
0.13760951161384583,
0.06570441275835037,
-0.20216380059719086,
-0.05955939739942551,
0.04852272570133209,
0.21359127759933472,
-0.04889385774731636,
0.1590908020734787,
0.03624744340777397,
0.08083832263946533,
0.06211619824171066,
-0.16772861778736115,
0.13920849561691284,
-0.20449772477149963,
-0.1162170022726059,
0.05416961759328842,
-0.1840168535709381,
-0.6338436007499695,
-0.18930251896381378,
-0.009177220053970814,
-0.3316514492034912,
-0.29575666785240173,
0.13720203936100006,
0.05582420155405998,
-0.11464399099349976,
0.13877345621585846,
0.19704493880271912,
0.5815649032592773,
-0.43081429600715637,
-0.27685582637786865,
-0.03663837909698486,
-0.31371816992759705,
-0.10173457115888596,
0.10424844920635223,
0.4355735778808594,
0.29597756266593933,
0.5036946535110474,
0.2990524172782898,
-0.06889313459396362,
0.09869711846113205,
-0.4021720290184021,
0.06541717052459717,
-0.35339897871017456,
0.2585300803184509,
0.1358295977115631,
-0.22173361480236053,
0.14582988619804382,
-0.3897809088230133,
-0.05303366854786873,
-0.025669898837804794,
-0.07492629438638687,
-0.05133793130517006,
0.054068341851234436,
0.06931380927562714,
-0.19855524599552155,
-0.19036778807640076,
-0.6149935722351074,
-0.44191786646842957,
0.3062756657600403,
-0.22799713909626007,
0.0827253982424736,
0.062167249619960785,
-0.2821544110774994,
0.23458409309387207,
-0.08945902436971664,
0.025363508611917496,
-0.17027734220027924,
-0.05233891308307648,
0.010178811848163605,
-0.38480761647224426,
-0.14478428661823273,
-0.3393518924713135,
-0.0398954413831234,
0.22139859199523926,
-0.06605762243270874,
-0.029407721012830734,
-0.2750928997993469,
0.0828026831150055,
-0.08778968453407288,
0.07219156622886658,
0.26224276423454285,
0.16565296053886414,
-0.20603397488594055,
0.13177086412906647,
-0.08111445605754852,
-0.2719358503818512,
0.21034729480743408,
0.3302363157272339,
0.3737378418445587,
0.18449345231056213,
0.036317963153123856,
0.187074214220047,
0.7639581561088562,
0.24814262986183167,
0.06307950615882874,
0.14840319752693176,
0.26118794083595276,
-0.012644965201616287,
0.16147351264953613,
-0.1882689893245697,
0.18401679396629333,
-0.17331558465957642,
0.5277932286262512,
0.08122680336236954,
0.16957998275756836,
-0.14921799302101135,
-0.33210861682891846,
0.01802724599838257,
-0.3142365515232086,
-0.18452754616737366,
0.19016170501708984,
-0.27717286348342896,
0.017155800014734268,
-0.09102073311805725,
-0.4362219572067261,
-0.2857392430305481,
-0.03737988322973251,
-0.017000555992126465,
0.3356773555278778,
-0.006728507578372955,
0.1707702875137329,
-0.3354102671146393,
-0.04341847449541092,
-0.42174890637397766,
0.1442062109708786,
0.05830468609929085,
0.23728325963020325,
-0.08073732256889343,
-0.07213941961526871,
-0.10103428363800049,
0.11182684451341629,
0.5621082186698914,
-0.5473767518997192,
-0.10901251435279846,
0.0950561910867691,
0.07976485043764114,
-0.12696310877799988,
-0.1165483146905899,
-0.2918790876865387,
0.02043473720550537,
0.4276297688484192,
0.37688037753105164,
-0.37812334299087524,
-0.29430413246154785,
0.2408280223608017,
-0.2539574205875397,
-0.07215479016304016,
-0.19330331683158875,
-0.2405899614095688,
-0.21128317713737488,
-0.12437936663627625,
-0.005925387144088745,
0.2536095380783081,
0.23441067337989807,
-0.12050187587738037,
0.18363410234451294,
-0.08123072236776352,
0.26042330265045166,
0.24369817972183228,
0.010381326079368591,
-0.11040766537189484,
0.24419265985488892,
0.17174585163593292,
0.038995932787656784,
-0.12102407217025757,
-0.3591473698616028,
0.09985475242137909,
-0.021673809736967087,
0.06650201976299286,
0.25530385971069336,
-0.0018158573657274246,
0.6958087086677551,
0.046072863042354584,
0.3278185725212097,
0.2777075171470642,
-0.14805790781974792,
-0.002945810556411743,
-0.22390897572040558,
0.1858537644147873,
0.23404693603515625,
0.24906089901924133,
-0.14151322841644287,
-0.23254293203353882,
0.5836408734321594,
0.3070313036441803,
-0.08686483651399612,
0.4385276138782501,
-0.4941878318786621,
-0.33374643325805664,
0.21709100902080536,
0.025766007602214813,
0.7134882807731628,
-0.022532232105731964,
0.3297559320926666,
0.11808233708143234,
-0.41327303647994995,
0.589074969291687,
-0.3362230062484741,
0.1240842267870903,
-0.05483768880367279,
-0.17275048792362213,
-0.011037709191441536,
-0.07591143250465393,
-0.10295844823122025,
0.20575638115406036,
-0.34887444972991943,
0.33698537945747375,
0.40351009368896484,
-0.2302369773387909,
-0.04739270359277725,
0.5434777736663818,
-0.014471529051661491,
-0.3405779302120209,
-0.07095929980278015,
0.05130508542060852,
-0.28211814165115356,
0.06947845965623856,
-0.21265479922294617,
-0.255202054977417,
0.21050330996513367,
0.15928398072719574,
-0.2744201421737671,
0.06679671257734299,
0.00819690153002739,
0.20083457231521606,
0.22477632761001587,
0.035592541098594666,
0.26400139927864075,
-0.17305055260658264,
-0.10373169183731079,
-0.17674140632152557,
-0.06488747149705887,
0.10578793287277222,
-0.2313130795955658,
0.03633490949869156,
0.09533380717039108,
-0.1507098525762558,
0.4938499629497528,
-0.07441754639148712,
-0.10552619397640228,
-0.22589948773384094,
0.2618068754673004,
-0.4456818699836731,
-0.25486767292022705,
0.13174182176589966,
0.1610529124736786,
0.18171511590480804,
-0.32188647985458374,
0.5945082902908325,
0.08666710555553436,
0.05346431955695152,
0.018005773425102234,
0.1704845428466797,
-0.23972655832767487,
0.4645390212535858,
-0.32235169410705566,
0.00029947608709335327,
0.09918443858623505,
0.00014862418174743652,
-0.15183043479919434,
-0.4189451038837433,
-0.053586043417453766,
0.274826318025589,
0.12449413537979126,
0.055341027677059174,
-0.016994912177324295,
0.11429939419031143,
-0.03799298778176308,
-0.05551132932305336,
-0.11189177632331848,
-0.28932124376296997,
0.13429006934165955,
0.24401627480983734,
0.17651276290416718,
0.19784754514694214,
-0.060454361140728,
-0.2944519519805908,
-0.13006675243377686,
0.49925005435943604,
-0.01689988002181053,
0.23208293318748474,
-0.15137651562690735,
0.3708629310131073,
0.41062813997268677,
0.4903716444969177,
-0.24310024082660675,
0.057045310735702515,
0.09853332489728928,
0.10004367679357529,
0.46761274337768555,
-0.22680526971817017,
0.04738749563694,
0.2821197211742401,
-0.14611564576625824,
0.031245769932866096,
-0.35195910930633545,
-0.13588069379329681,
-0.2496931403875351,
0.12456833571195602,
0.12881577014923096,
-0.02847575582563877,
0.028417326509952545,
-0.11128640174865723,
-0.1046103686094284,
-0.05775505304336548,
0.044439759105443954,
-0.3633008599281311,
-0.09757283329963684,
0.16149668395519257,
-0.09412874281406403,
0.0867118090391159,
0.05705231428146362,
0.2070290595293045,
0.06947283446788788,
-0.07310838997364044,
0.33872050046920776,
0.12007123231887817,
0.08686431497335434,
-0.16815853118896484,
-0.14083053171634674,
0.016440294682979584,
0.2955583930015564,
0.1803169548511505,
-0.0689329132437706,
0.14224326610565186,
-0.2093845009803772,
-0.19972950220108032,
0.20770074427127838,
0.20243214070796967,
0.03528778627514839,
-0.1302378624677658,
0.10691750049591064,
0.09648489207029343,
-0.060015562921762466,
-0.012907442636787891,
0.23015142977237701,
0.08779169619083405,
0.07244808971881866,
0.11680974066257477,
0.11368776857852936,
0.48007136583328247,
-0.2822709083557129,
0.032748591154813766,
0.0944717600941658,
-0.3594549298286438,
0.11638280749320984,
-0.0824384093284607,
-0.08555769920349121,
-0.01449165865778923,
0.12477090209722519,
0.00008977949619293213,
0.11933572590351105,
-0.33420228958129883,
0.32404929399490356,
0.26727160811424255,
0.015399005264043808,
0.01500055193901062,
0.13875214755535126,
0.042290788143873215,
-0.17318090796470642,
0.26796072721481323,
0.03502025455236435,
0.37517249584198,
0.060413509607315063,
0.8366439938545227,
-0.21346968412399292,
-0.3915115296840668,
0.15799574553966522,
0.42226916551589966,
0.08762949705123901,
-0.2188609093427658,
0.13186512887477875,
0.09811239689588547,
-0.3754851520061493,
0.06979599595069885,
0.0569918230175972,
-0.18208172917366028,
0.6210583448410034,
-0.0859888345003128,
0.16826105117797852,
-0.11792021989822388,
-0.18515914678573608,
0.3580676317214966,
0.21875622868537903,
-0.0734487920999527,
-0.03960032016038895,
0.12822677195072174,
-0.06194186210632324,
-0.19880637526512146,
0.47433021664619446,
0.2133026421070099,
-0.002409428358078003,
-0.4816863536834717,
0.0333789587020874,
0.10145369172096252,
0.17900283634662628,
0.002596374601125717,
0.13696527481079102,
0.4460620880126953,
-0.15025976300239563,
0.20349366962909698,
-0.007044418714940548,
-0.03401825204491615,
-0.13445663452148438,
0.06418456882238388,
-0.402955561876297,
-0.4237150549888611,
0.4620601534843445,
0.11025898158550262,
-0.1495259702205658,
0.11755111068487167,
0.37620997428894043,
-0.6295856237411499,
-0.2694912254810333,
0.3343760371208191,
-0.058231908828020096,
-0.08502044528722763,
-0.19609716534614563,
0.06549727916717529,
0.0751245990395546,
0.6126098036766052,
0.20807746052742004,
0.40820151567459106,
-0.3459770381450653,
-0.09671228379011154,
-0.568212628364563,
-0.20369434356689453,
0.1717403382062912,
-0.1529814451932907,
-0.22418376803398132,
0.11838771402835846,
-0.06933338195085526,
0.2762840688228607,
-0.18905623257160187,
0.10309848934412003,
0.24528896808624268,
0.04981934279203415,
-0.4366212487220764,
0.08494322001934052,
0.19068202376365662,
0.04040259122848511,
0.2738911807537079,
-0.0639430582523346,
-0.22662214934825897,
0.04732522740960121,
-0.06836337596178055,
-0.09690707176923752,
-0.11419880390167236,
0.2681546211242676,
0.1839284747838974,
0.09595797955989838,
0.05707358568906784,
0.5114493370056152,
0.010969661176204681,
-0.1574941873550415,
0.0035755299031734467,
0.043719418346881866,
-0.3633820712566376,
-0.1356959044933319,
-0.09348234534263611,
0.13298863172531128,
-0.3916030526161194,
0.3226500451564789,
0.0057080877013504505,
-0.07805047184228897,
0.09187604486942291,
0.0003350373590365052,
-0.12278403341770172,
-0.11219818890094757,
0.0437779426574707,
0.22140473127365112,
0.1861126571893692,
0.7520400881767273,
-0.012684769928455353,
0.13772766292095184,
-0.09494855254888535,
-0.008783219382166862,
0.027268365025520325,
-0.06434814631938934,
-0.25429296493530273,
-0.09406016767024994,
0.06744636595249176,
0.06809112429618835,
0.14320726692676544,
-0.6984323263168335,
-0.3541295826435089,
0.050463512539863586,
0.016152281314134598,
0.01599976420402527,
0.7800256609916687,
0.09473663568496704,
-0.1327630579471588,
-0.08945046365261078,
-0.36224639415740967,
0.0005290769040584564,
-0.22627021372318268,
0.16598621010780334,
-0.374137282371521
] |
https://github.com/huggingface/datasets/issues/217 | Multi-task dataset mixing | From thinking upon @thomwolf 's suggestion, I've started experimenting:
```python
class MultitaskDataset(DatasetBuilder):
def __init__(self, *args, **kwargs):
super(MultitaskDataset, self).__init__(*args, **kwargs)
self._datasets = kwargs.get("datasets")
def _info(self):
return nlp.DatasetInfo(
description=_DESCRIPTION,
features=nlp.Features({
"source": nlp.Value("string"),
"target": nlp.Sequence(nlp.Value("string"))
})
)
def _get_common_splits(self):
'''Finds the common splits present in all self._datasets'''
min_set = None
for dataset in self._datasets:
if min_set != None:
min_set.intersection(set(dataset.keys()))
else:
min_set = set(dataset.keys())
return min_set
....
# Maybe this?:
squad = nlp.load_dataset("squad")
cnn_dm = nlp.load_dataset("cnn_dailymail","3.0.0")
multitask_dataset = nlp.load_dataset(
'multitask_dataset',
datasets=[squad,cnn_dailymail],
k=1000,
t=2.0
)
```
Does anyone know what methods of `MultitaskDataset` I would need to implement? Maybe `as_dataset` and `download_and_prepare`? Most of these should be just calling the methods of the sub-datasets.
I'm assuming DatasetBuilder is better than the more specific `GeneratorBasedBuilder`, `BeamBasedBuilder`, etc....
One of the other problems is that the dataset size is unknown till you construct it (as you can pick the sub-datasets). Am hoping not to need to make changes to `nlp.load_dataset` just for this class.
I'd appreciate it if anyone more familiar with nlp's internal workings could tell me if I'm on the right track! | It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
| 177 | Multi-task dataset mixing
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
From thinking upon @thomwolf 's suggestion, I've started experimenting:
```python
class MultitaskDataset(DatasetBuilder):
def __init__(self, *args, **kwargs):
super(MultitaskDataset, self).__init__(*args, **kwargs)
self._datasets = kwargs.get("datasets")
def _info(self):
return nlp.DatasetInfo(
description=_DESCRIPTION,
features=nlp.Features({
"source": nlp.Value("string"),
"target": nlp.Sequence(nlp.Value("string"))
})
)
def _get_common_splits(self):
'''Finds the common splits present in all self._datasets'''
min_set = None
for dataset in self._datasets:
if min_set != None:
min_set.intersection(set(dataset.keys()))
else:
min_set = set(dataset.keys())
return min_set
....
# Maybe this?:
squad = nlp.load_dataset("squad")
cnn_dm = nlp.load_dataset("cnn_dailymail","3.0.0")
multitask_dataset = nlp.load_dataset(
'multitask_dataset',
datasets=[squad,cnn_dailymail],
k=1000,
t=2.0
)
```
Does anyone know what methods of `MultitaskDataset` I would need to implement? Maybe `as_dataset` and `download_and_prepare`? Most of these should be just calling the methods of the sub-datasets.
I'm assuming DatasetBuilder is better than the more specific `GeneratorBasedBuilder`, `BeamBasedBuilder`, etc....
One of the other problems is that the dataset size is unknown till you construct it (as you can pick the sub-datasets). Am hoping not to need to make changes to `nlp.load_dataset` just for this class.
I'd appreciate it if anyone more familiar with nlp's internal workings could tell me if I'm on the right track! | [
-0.04102882742881775,
-0.38001328706741333,
-0.05613597482442856,
-0.05533403158187866,
-0.22696144878864288,
0.03814494609832764,
0.19116328656673431,
0.028541838750243187,
0.3140307664871216,
-0.16932417452335358,
-0.21132934093475342,
0.32268133759498596,
-0.21177837252616882,
0.3609282076358795,
0.41081130504608154,
-0.4081556499004364,
0.04961123317480087,
-0.23854929208755493,
-0.3018547594547272,
0.38168150186538696,
0.029433071613311768,
0.11054196953773499,
-0.1815609335899353,
0.11165980994701385,
-0.2753485441207886,
-0.14701905846595764,
-0.33760204911231995,
0.1057683527469635,
0.12588581442832947,
0.00012281443923711777,
0.25411471724510193,
0.40501534938812256,
-0.06453432142734528,
0.16401489078998566,
-0.00011387034464860335,
-0.028973862528800964,
0.2369825690984726,
-0.06454723328351974,
0.11490701138973236,
-0.07505513727664948,
0.20829924941062927,
-0.42716383934020996,
0.059151940047740936,
-0.1675681620836258,
0.17296162247657776,
0.1567191481590271,
0.1583683341741562,
0.040026821196079254,
0.39363425970077515,
-0.29166385531425476,
0.10325051844120026,
0.2875024676322937,
-0.15446864068508148,
0.2761387526988983,
-0.12511292099952698,
-0.04768795520067215,
0.036738358438014984,
0.25828316807746887,
0.560209333896637,
-0.613865852355957,
0.0037751197814941406,
0.1158643513917923,
0.0011100061237812042,
0.004889277741312981,
0.15319660305976868,
-0.020795617252588272,
-0.3521736264228821,
-0.21768799424171448,
-0.4039086103439331,
0.18628618121147156,
-0.14515486359596252,
-0.20172226428985596,
-0.23753711581230164,
-0.544827401638031,
0.004671119153499603,
0.006172852590680122,
-0.2698781192302704,
-0.01835888996720314,
-0.20179836452007294,
-0.06324577331542969,
-0.1232682317495346,
-0.08969490975141525,
-0.03366639465093613,
0.1552537977695465,
0.31824925541877747,
0.5842535495758057,
0.09058964252471924,
0.16732588410377502,
0.3679713308811188,
0.04139351472258568,
-0.15085770189762115,
-0.2804936170578003,
0.3275367021560669,
0.14582191407680511,
-0.36984947323799133,
-0.30306074023246765,
0.2041642665863037,
-0.23676460981369019,
0.22982439398765564,
0.10457246750593185,
0.09047573059797287,
0.11722064018249512,
-0.14798405766487122,
0.2619042694568634,
0.30457574129104614,
0.04612186178565025,
-0.09614919871091843,
-0.09544768929481506,
0.03467614948749542,
-0.08594349026679993,
0.1927359402179718,
0.1121787279844284,
0.1854984313249588,
-0.012384218163788319,
-0.3950420022010803,
-0.13390576839447021,
-0.1293431520462036,
0.16474466025829315,
-0.2152850329875946,
-0.48490282893180847,
-0.10857434570789337,
-0.11952315270900726,
0.11771387606859207,
-0.1045868918299675,
-0.30913498997688293,
0.09875552356243134,
-0.038953106850385666,
0.26127889752388,
-0.13749749958515167,
0.13061589002609253,
-0.07104413211345673,
0.08409824967384338,
-0.44123709201812744,
-0.07710433006286621,
0.30592870712280273,
0.15183517336845398,
0.08070210367441177,
0.16790148615837097,
-0.001432470977306366,
0.12360353767871857,
0.38938108086586,
0.01557835377752781,
0.0013979673385620117,
-0.0009420402348041534,
0.1396421641111374,
-0.3161430358886719,
0.020422913134098053,
0.1589081585407257,
-0.34745144844055176,
-0.1903003454208374,
-0.11934777349233627,
-0.16854064166545868,
0.1405741572380066,
0.032154761254787445,
-0.20059546828269958,
-0.23850023746490479,
-0.4981876313686371,
0.7015711665153503,
-0.05721532553434372,
-0.09345940500497818,
-0.1759134829044342,
0.3037515878677368,
-0.246463343501091,
-0.08007031679153442,
0.21196548640727997,
0.05763990432024002,
0.011350404471158981,
-0.34421321749687195,
-0.1054181233048439,
-0.0986812561750412,
-0.021547831594944,
0.2500796616077423,
-0.16200296580791473,
0.27927112579345703,
0.05273349583148956,
0.20901499688625336,
0.27983829379081726,
-0.48212310671806335,
-0.06264173239469528,
0.2596443295478821,
-0.0441146120429039,
0.42299962043762207,
0.05807717144489288,
0.19613564014434814,
-0.026013720780611038,
-0.1701485812664032,
0.29014700651168823,
0.9980718493461609,
-0.34383925795555115,
-0.019432032480835915,
-0.10914523899555206,
-0.3598760962486267,
0.5201603770256042,
0.3251272737979889,
0.10994315147399902,
-0.2907423675060272,
-0.13588425517082214,
-0.015213125385344028,
0.12174718081951141,
0.0748824030160904,
0.08309345692396164,
-0.07177465409040451,
-0.348093181848526,
0.0625113919377327,
-0.2146703600883484,
-0.1692679524421692,
-0.34028926491737366,
0.0233769491314888,
0.053741589188575745,
0.3371375501155853,
0.21158981323242188,
-0.1451849639415741,
0.19584780931472778,
-0.2553427815437317,
-0.14328378438949585,
-0.3022667169570923,
0.1462629735469818,
-0.06994962692260742,
0.013662818819284439,
-0.2408798485994339,
-0.031898293644189835,
0.3690549433231354,
0.11622287333011627,
-0.12677821516990662,
-0.4974002242088318,
0.300513356924057,
-0.0742243155837059,
0.06661418080329895,
-0.03259018808603287,
0.6585513949394226,
-0.1506323218345642,
-0.08514723181724548,
0.18119430541992188,
0.28125542402267456,
-0.2942328155040741,
0.20129713416099548,
0.303630530834198,
0.19760683178901672,
0.1517356038093567,
0.004687298089265823,
0.07329810410737991,
0.05224260687828064,
0.024796802550554276,
-0.23360487818717957,
-0.09858008474111557,
0.5100668668746948,
-0.16134674847126007,
0.4522988498210907,
-0.028001980856060982,
0.025157885625958443,
-0.14601345360279083,
-0.029682962223887444,
-0.20386572182178497,
0.3801977038383484,
0.28941062092781067,
-0.1866006702184677,
0.32788318395614624,
-0.16236725449562073,
-0.3643951416015625,
0.15505045652389526,
0.1312015950679779,
0.01262589544057846,
0.05463087931275368,
-0.04349251091480255,
-0.013247869908809662,
-0.2791150212287903,
-0.10775302350521088,
0.3511256277561188,
0.6806014180183411,
0.23463597893714905,
0.19186396896839142,
0.06999513506889343,
-0.2855549156665802,
-0.07115631550550461,
0.0013607144355773926,
0.22168420255184174,
-0.04060840979218483,
0.16736480593681335,
0.06225491687655449,
0.04244346171617508,
0.021964475512504578,
-0.15282684564590454,
0.15568023920059204,
-0.18520891666412354,
-0.09366266429424286,
0.10740388184785843,
-0.22168317437171936,
-0.5938893556594849,
-0.17749512195587158,
0.0022364063188433647,
-0.28781670331954956,
-0.30850112438201904,
0.10392798483371735,
0.053319837898015976,
-0.1458796262741089,
0.16206027567386627,
0.2049495130777359,
0.5456450581550598,
-0.42458295822143555,
-0.2756488621234894,
-0.0417238213121891,
-0.3142535388469696,
-0.11090979725122452,
0.10897134244441986,
0.4567677080631256,
0.33519721031188965,
0.4890900254249573,
0.31006884574890137,
-0.08167842030525208,
0.04969393461942673,
-0.40164658427238464,
0.04757386073470116,
-0.32549071311950684,
0.2670510411262512,
0.11735442280769348,
-0.26227277517318726,
0.16214053332805634,
-0.37220412492752075,
-0.011827381327748299,
-0.08734902739524841,
-0.08597229421138763,
-0.02190239727497101,
-0.019531410187482834,
0.059149499982595444,
-0.21000763773918152,
-0.15615060925483704,
-0.6618940234184265,
-0.4537317752838135,
0.31900352239608765,
-0.23834186792373657,
0.0822201520204544,
0.059316378086805344,
-0.295493483543396,
0.22237050533294678,
-0.06498774886131287,
0.016360899433493614,
-0.1773644983768463,
-0.04884526506066322,
0.029316667467355728,
-0.3534868061542511,
-0.17807620763778687,
-0.37236520648002625,
-0.13820283114910126,
0.28022682666778564,
-0.06061917543411255,
-0.007123935967683792,
-0.25036388635635376,
0.09986139833927155,
-0.07900925725698471,
0.10570457577705383,
0.2465629130601883,
0.17851506173610687,
-0.2391587793827057,
0.13448761403560638,
-0.06015952676534653,
-0.26472949981689453,
0.24683865904808044,
0.28179168701171875,
0.3843086361885071,
0.18339186906814575,
0.05993562936782837,
0.17080537974834442,
0.6879076361656189,
0.22979986667633057,
0.06567402929067612,
0.14727604389190674,
0.2549453377723694,
0.019311144948005676,
0.16987501084804535,
-0.262075275182724,
0.2082165628671646,
-0.2138112485408783,
0.4608762264251709,
0.04508161172270775,
0.16560128331184387,
-0.23663713037967682,
-0.2956603765487671,
0.024182606488466263,
-0.3138538897037506,
-0.2150159627199173,
0.19742119312286377,
-0.22645539045333862,
0.0024593397974967957,
-0.07362598180770874,
-0.37921562790870667,
-0.28471270203590393,
-0.03315785527229309,
0.004512161016464233,
0.33302944898605347,
-0.0960410013794899,
0.11804532259702682,
-0.3570634424686432,
-0.031005553901195526,
-0.46974074840545654,
0.14145836234092712,
0.008327225223183632,
0.2584220767021179,
-0.05097530782222748,
-0.0787401795387268,
-0.08971904218196869,
0.07503296434879303,
0.6008836030960083,
-0.4771217107772827,
-0.12468107044696808,
0.1526510864496231,
0.11117617785930634,
-0.13729391992092133,
-0.1263006180524826,
-0.291255921125412,
0.04689707234501839,
0.4684953987598419,
0.3723253905773163,
-0.38754698634147644,
-0.26343485713005066,
0.22910946607589722,
-0.21606257557868958,
-0.04498854652047157,
-0.1908901184797287,
-0.23585548996925354,
-0.25600337982177734,
-0.09917131811380386,
0.04424193128943443,
0.2177782952785492,
0.2320205718278885,
-0.12347647547721863,
0.21100015938282013,
-0.10897171497344971,
0.2612602412700653,
0.22022023797035217,
0.004205072298645973,
-0.027149762958288193,
0.20108692348003387,
0.17098356783390045,
0.03842507675290108,
-0.13986220955848694,
-0.37141934037208557,
0.13281768560409546,
0.004647448658943176,
0.07882507890462875,
0.24406203627586365,
-0.007656527683138847,
0.6334802508354187,
0.07391314208507538,
0.29640576243400574,
0.28962650895118713,
-0.14868733286857605,
0.01774536818265915,
-0.2544417083263397,
0.1916361302137375,
0.2428327053785324,
0.2626423239707947,
-0.14039990305900574,
-0.2564391791820526,
0.5900324583053589,
0.3069307804107666,
-0.09948919713497162,
0.4368519186973572,
-0.49968433380126953,
-0.3505486845970154,
0.2613223195075989,
0.022100642323493958,
0.6753667593002319,
0.00598863884806633,
0.31732335686683655,
0.16142123937606812,
-0.3751911520957947,
0.5796292424201965,
-0.37775272130966187,
0.1610090285539627,
-0.07037825882434845,
-0.14920978248119354,
0.004808222874999046,
-0.08049339056015015,
-0.03711897134780884,
0.2290438413619995,
-0.3471156656742096,
0.33152300119400024,
0.4464799761772156,
-0.2043321579694748,
-0.06859012693166733,
0.5156769752502441,
-0.023617854341864586,
-0.37427812814712524,
-0.1238873302936554,
0.0779336541891098,
-0.2607245445251465,
0.09877093136310577,
-0.1555747389793396,
-0.2480810433626175,
0.19329632818698883,
0.14641040563583374,
-0.2879009246826172,
0.10499107092618942,
0.030853156000375748,
0.23829998075962067,
0.25692230463027954,
0.00989629328250885,
0.2169823944568634,
-0.1943754255771637,
-0.05444207787513733,
-0.15986986458301544,
-0.06008011847734451,
0.12273019552230835,
-0.20815399289131165,
0.08337384462356567,
0.08152714371681213,
-0.2225060611963272,
0.5000630021095276,
-0.05308277904987335,
-0.10866133123636246,
-0.2400416135787964,
0.26080286502838135,
-0.43278199434280396,
-0.18399743735790253,
0.16753731667995453,
0.1632853001356125,
0.23204070329666138,
-0.3219028413295746,
0.6011397242546082,
0.1171332597732544,
-0.009043678641319275,
0.035241350531578064,
0.1837955117225647,
-0.2748786211013794,
0.5102379322052002,
-0.35661545395851135,
0.011908791959285736,
0.08584149181842804,
0.0122208371758461,
-0.14734959602355957,
-0.3761586844921112,
-0.03224947303533554,
0.29934772849082947,
0.08523853868246078,
0.031986720860004425,
-0.010904073715209961,
0.10516151040792465,
-0.03416305407881737,
-0.044841218739748,
-0.09733838587999344,
-0.3260810673236847,
0.12282916158437729,
0.18378643691539764,
0.1799662709236145,
0.17217257618904114,
-0.08546750247478485,
-0.2773149907588959,
-0.18056951463222504,
0.480391263961792,
0.02301894500851631,
0.20212765038013458,
-0.15253087878227234,
0.35346734523773193,
0.4196878969669342,
0.5000763535499573,
-0.2531454563140869,
0.05551230162382126,
0.07240895926952362,
0.07157932221889496,
0.424296110868454,
-0.2460533082485199,
0.06022525951266289,
0.24505974352359772,
-0.12159841507673264,
0.0435207337141037,
-0.35182735323905945,
-0.14629215002059937,
-0.2637702226638794,
0.10850546509027481,
0.1093846783041954,
0.0003896644338965416,
0.05136324465274811,
-0.0967007428407669,
-0.09724661707878113,
-0.06615379452705383,
-0.012981805950403214,
-0.34191760420799255,
-0.07169003784656525,
0.12081180512905121,
-0.06952306628227234,
0.04318945109844208,
0.07352280616760254,
0.18630069494247437,
0.03954470157623291,
-0.07555186748504639,
0.311919242143631,
0.09127116948366165,
0.12354908883571625,
-0.16061824560165405,
-0.1367616206407547,
0.020297974348068237,
0.22276386618614197,
0.15596768260002136,
-0.042876504361629486,
0.11895933747291565,
-0.20203474164009094,
-0.15555670857429504,
0.2734253704547882,
0.22079327702522278,
0.027456017211079597,
-0.1333657205104828,
0.1312033087015152,
0.11210890114307404,
-0.11988246440887451,
-0.025684570893645287,
0.23964081704616547,
0.08068221062421799,
0.10649415850639343,
0.1220119372010231,
0.11496557295322418,
0.4606333374977112,
-0.28958845138549805,
0.04949896037578583,
0.11247262358665466,
-0.3702648878097534,
0.11843621730804443,
-0.1373876929283142,
-0.010500874370336533,
0.026158008724451065,
0.14512303471565247,
-0.004539646208286285,
0.11539991199970245,
-0.24399937689304352,
0.32384470105171204,
0.3000833988189697,
-0.010189253836870193,
0.03903516009449959,
0.13944266736507416,
0.021483000367879868,
-0.17022670805454254,
0.2212381362915039,
-0.012152023613452911,
0.35210350155830383,
0.03193249553442001,
0.8429729342460632,
-0.30105820298194885,
-0.39671987295150757,
0.1265188455581665,
0.4000534117221832,
0.06075841560959816,
-0.23886413872241974,
0.13217195868492126,
0.1059507504105568,
-0.3579234778881073,
0.06069967523217201,
0.06416885554790497,
-0.1542833298444748,
0.6550421714782715,
-0.14000147581100464,
0.16470640897750854,
-0.1756538599729538,
-0.2119797170162201,
0.3319479823112488,
0.20278306305408478,
-0.07796848565340042,
-0.011605633422732353,
0.1274462789297104,
-0.060982346534729004,
-0.19573858380317688,
0.4920668303966522,
0.25489887595176697,
0.051567573100328445,
-0.4656878411769867,
0.007283141370862722,
0.09706322848796844,
0.13736307621002197,
-0.09356147050857544,
0.15308316051959991,
0.45377761125564575,
-0.15144945681095123,
0.20709137618541718,
0.004273399710655212,
-0.05843551829457283,
-0.09915924072265625,
0.08272405713796616,
-0.39912116527557373,
-0.4085477292537689,
0.5045669078826904,
0.06087775528430939,
-0.11606690287590027,
0.08093516528606415,
0.33707666397094727,
-0.6575291752815247,
-0.26047608256340027,
0.3494887351989746,
-0.08489353209733963,
-0.037311721593141556,
-0.22380782663822174,
0.07407917082309723,
0.07273721694946289,
0.6086322665214539,
0.16365952789783478,
0.3771528899669647,
-0.39702361822128296,
-0.10719899088144302,
-0.6464771628379822,
-0.21320584416389465,
0.09976011514663696,
-0.16706255078315735,
-0.2602820098400116,
0.13774240016937256,
-0.038987286388874054,
0.27516061067581177,
-0.20754264295101166,
0.05163268372416496,
0.2532150149345398,
0.02692103572189808,
-0.4563051164150238,
0.07905159890651703,
0.13707700371742249,
0.020109454169869423,
0.28374943137168884,
-0.07789743691682816,
-0.22131948173046112,
0.0658566951751709,
-0.05670410394668579,
-0.050493329763412476,
-0.08613963425159454,
0.277946799993515,
0.17560996115207672,
0.03599337488412857,
0.04806559905409813,
0.5123873949050903,
-0.02241569012403488,
-0.17422276735305786,
-0.026029329746961594,
0.02857300080358982,
-0.372586727142334,
-0.11181553453207016,
-0.12267357110977173,
0.21131837368011475,
-0.37687617540359497,
0.27004778385162354,
0.01695770025253296,
-0.10174839943647385,
0.12268954515457153,
-0.009532485157251358,
-0.17501002550125122,
-0.021082742139697075,
0.04411690682172775,
0.2265998125076294,
0.21104519069194794,
0.7624978423118591,
-0.0001500360667705536,
0.17093849182128906,
-0.0762040913105011,
-0.06651201099157333,
0.07553752511739731,
-0.11749580502510071,
-0.2645829916000366,
-0.15456438064575195,
0.064857617020607,
0.04752332717180252,
0.11066387593746185,
-0.7056499719619751,
-0.3468599021434784,
0.016168979927897453,
-0.019177082926034927,
0.05395949259400368,
0.7361035943031311,
0.07266074419021606,
-0.14398150146007538,
-0.1310945451259613,
-0.32318544387817383,
0.02054046466946602,
-0.2399551421403885,
0.18913644552230835,
-0.36765527725219727
] |
https://github.com/huggingface/datasets/issues/217 | Multi-task dataset mixing | I think I would probably go for a `MultiDataset` wrapper around a list of `Dataset`.
I'm not sure we need to give it `k` and `t` parameters at creation, it can maybe be something along the lines of:
```python
squad = nlp.load_dataset("squad")
cnn_dm = nlp.load_dataset("cnn_dailymail","3.0.0")
multitask_dataset = nlp.MultiDataset(squad, cnn_dm)
batch = multitask_dataset.sample(10, temperature=2.0, k=1000)
```
The first proof-of-concept for multi-task datasets could definitely require that the provided datasets have the same name/type for columns (if needed you easily rename/cast a column prior to instantiating the `MultiDataset`).
It's good to think about it for some time though and don't overfit too much on the T5 examples (in particular for the ways/kwargs for sampling among datasets). | It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
| 114 | Multi-task dataset mixing
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
I think I would probably go for a `MultiDataset` wrapper around a list of `Dataset`.
I'm not sure we need to give it `k` and `t` parameters at creation, it can maybe be something along the lines of:
```python
squad = nlp.load_dataset("squad")
cnn_dm = nlp.load_dataset("cnn_dailymail","3.0.0")
multitask_dataset = nlp.MultiDataset(squad, cnn_dm)
batch = multitask_dataset.sample(10, temperature=2.0, k=1000)
```
The first proof-of-concept for multi-task datasets could definitely require that the provided datasets have the same name/type for columns (if needed you easily rename/cast a column prior to instantiating the `MultiDataset`).
It's good to think about it for some time though and don't overfit too much on the T5 examples (in particular for the ways/kwargs for sampling among datasets). | [
-0.030959608033299446,
-0.418673574924469,
-0.0396578274667263,
-0.04687073826789856,
-0.22470234334468842,
0.09376376122236252,
0.16783735156059265,
0.037586648017168045,
0.2795366644859314,
-0.16709892451763153,
-0.2208789736032486,
0.33422258496284485,
-0.2148638367652893,
0.32915565371513367,
0.4196426570415497,
-0.44059765338897705,
0.024054720997810364,
-0.2191532850265503,
-0.2579803466796875,
0.3798782229423523,
0.06556876748800278,
0.10199698805809021,
-0.16362524032592773,
0.05979253351688385,
-0.2679925560951233,
-0.16470849514007568,
-0.3614470958709717,
0.12241585552692413,
0.1369815170764923,
-0.010515186935663223,
0.21925145387649536,
0.3853781521320343,
-0.023970449343323708,
0.11684679985046387,
-0.00011339466436766088,
-0.07660765200853348,
0.1594890058040619,
-0.12002457678318024,
0.09108924865722656,
0.006583467125892639,
0.15462037920951843,
-0.4277088940143585,
0.07293503731489182,
-0.15843719244003296,
0.14493349194526672,
0.15658515691757202,
0.1450677067041397,
-0.006900899112224579,
0.41774094104766846,
-0.2556489408016205,
0.09768395870923996,
0.3037799596786499,
-0.16508740186691284,
0.2707972228527069,
-0.14200887084007263,
-0.06699211895465851,
0.027929825708270073,
0.220857173204422,
0.6148954629898071,
-0.589910089969635,
0.0041682422161102295,
0.07856744527816772,
-0.014349843375384808,
0.007405074313282967,
0.1554831862449646,
-0.029883962124586105,
-0.33571872115135193,
-0.2630693018436432,
-0.3932987153530121,
0.21611765027046204,
-0.13005787134170532,
-0.1769694685935974,
-0.25059157609939575,
-0.5384425520896912,
0.017067624256014824,
0.035416536033153534,
-0.29035356640815735,
0.03157258778810501,
-0.20464929938316345,
-0.054590802639722824,
-0.12335368245840073,
-0.1029214933514595,
-0.006523340940475464,
0.15645071864128113,
0.30663132667541504,
0.5719140768051147,
0.1277763694524765,
0.1712881475687027,
0.35259151458740234,
0.02389620803296566,
-0.1490519791841507,
-0.2875998616218567,
0.2940412163734436,
0.1621156632900238,
-0.4089528024196625,
-0.35077905654907227,
0.13092690706253052,
-0.24935400485992432,
0.28444749116897583,
0.08810126781463623,
0.11836937814950943,
0.055912550538778305,
-0.13708649575710297,
0.28888896107673645,
0.30111292004585266,
0.035575564950704575,
-0.0766882374882698,
-0.12673524022102356,
0.021893922239542007,
-0.13308797776699066,
0.1889597624540329,
0.12626659870147705,
0.1817830204963684,
-0.008660823106765747,
-0.37493860721588135,
-0.13579314947128296,
-0.16045880317687988,
0.1738719940185547,
-0.16110014915466309,
-0.5166137218475342,
-0.1100783720612526,
-0.0932471752166748,
0.0721658319234848,
-0.09246804565191269,
-0.29434022307395935,
0.07610108703374863,
-0.04885450750589371,
0.22475819289684296,
-0.08821731805801392,
0.05215911194682121,
-0.06363721191883087,
0.08743670582771301,
-0.4271276891231537,
-0.031100472435355186,
0.31112322211265564,
0.09531380236148834,
0.07913824915885925,
0.1683206856250763,
-0.009065680205821991,
0.10786458849906921,
0.4213513433933258,
0.02073703147470951,
-0.0052914097905159,
-0.025721032172441483,
0.20524555444717407,
-0.2978518307209015,
0.0131259486079216,
0.13944850862026215,
-0.3443312644958496,
-0.12336988002061844,
-0.140802800655365,
-0.1617729663848877,
0.10516709834337234,
0.026168115437030792,
-0.227069690823555,
-0.2634854018688202,
-0.4787128269672394,
0.7096789479255676,
-0.01631787419319153,
-0.04073583707213402,
-0.18003588914871216,
0.28762394189834595,
-0.2646001875400543,
-0.11316083371639252,
0.22921210527420044,
0.10030709207057953,
-0.04390326142311096,
-0.29981598258018494,
-0.0713220164179802,
-0.08353067934513092,
-0.0897589847445488,
0.27883923053741455,
-0.19985730946063995,
0.2227458357810974,
0.06801239401102066,
0.15488412976264954,
0.30273982882499695,
-0.4629930555820465,
-0.0365786999464035,
0.2691690921783447,
-0.03577772527933121,
0.38466665148735046,
0.06560122221708298,
0.22492548823356628,
0.0193825364112854,
-0.20013082027435303,
0.26398807764053345,
1.0421266555786133,
-0.40863674879074097,
0.0009422432631254196,
-0.09630392491817474,
-0.35686028003692627,
0.5225275158882141,
0.34482264518737793,
0.05289286747574806,
-0.2893565893173218,
-0.14739510416984558,
-0.005420048255473375,
0.07239247113466263,
0.05815151333808899,
0.09516701847314835,
-0.036988161504268646,
-0.341634601354599,
0.06954735517501831,
-0.22003605961799622,
-0.150029718875885,
-0.44301170110702515,
0.01945202797651291,
0.04457928240299225,
0.3434177041053772,
0.2352163940668106,
-0.13884525001049042,
0.22767817974090576,
-0.2906138300895691,
-0.13999591767787933,
-0.3124925196170807,
0.13172058761119843,
-0.05093547701835632,
0.03107047826051712,
-0.22075986862182617,
-0.0353604257106781,
0.3621314764022827,
0.14933747053146362,
-0.12701518833637238,
-0.480266273021698,
0.3278312087059021,
-0.07594655454158783,
0.03664081171154976,
-0.02728595770895481,
0.6227858066558838,
-0.15069276094436646,
-0.07301908731460571,
0.19060465693473816,
0.2668915390968323,
-0.28597113490104675,
0.2114320993423462,
0.3612276315689087,
0.2709769606590271,
0.1712346076965332,
-0.03409262001514435,
0.0952986404299736,
0.023809293285012245,
-0.005173766519874334,
-0.22024020552635193,
-0.08570540696382523,
0.523391604423523,
-0.17810873687267303,
0.41875624656677246,
-0.045078493654727936,
0.03660034388303757,
-0.1355302780866623,
-0.01814780756831169,
-0.1988152414560318,
0.41928890347480774,
0.27263563871383667,
-0.17454448342323303,
0.3594205975532532,
-0.1392044574022293,
-0.3428294360637665,
0.1600850522518158,
0.15589243173599243,
0.03850632533431053,
0.09078392386436462,
-0.003108154982328415,
-0.048500388860702515,
-0.261493980884552,
-0.10891537368297577,
0.34991490840911865,
0.6467792987823486,
0.25869470834732056,
0.13757562637329102,
0.013220645487308502,
-0.25058868527412415,
-0.06948133558034897,
0.03184821456670761,
0.16933631896972656,
-0.028486454859375954,
0.14386475086212158,
0.06159055233001709,
0.0490802600979805,
0.029332220554351807,
-0.17154966294765472,
0.18374209105968475,
-0.1622174233198166,
-0.07556915283203125,
0.07238368690013885,
-0.1664852797985077,
-0.5669137239456177,
-0.22831425070762634,
0.02773330733180046,
-0.38150665163993835,
-0.2889536917209625,
0.10477927327156067,
0.05141338333487511,
-0.12024015188217163,
0.1866273432970047,
0.2017735242843628,
0.5722047090530396,
-0.3877089023590088,
-0.29302433133125305,
-0.02914603054523468,
-0.3389906585216522,
-0.11456441134214401,
0.11243933439254761,
0.4557243287563324,
0.2603594958782196,
0.4842224419116974,
0.3259263038635254,
-0.033972062170505524,
0.04637608677148819,
-0.3984244465827942,
0.01764402538537979,
-0.30129092931747437,
0.2676164209842682,
0.07377513498067856,
-0.18586896359920502,
0.15339398384094238,
-0.4068920314311981,
-0.005613289773464203,
-0.021066289395093918,
-0.07087597995996475,
-0.05289343744516373,
0.004416299052536488,
0.09542009234428406,
-0.18347874283790588,
-0.19025921821594238,
-0.6412388682365417,
-0.43016254901885986,
0.26739302277565,
-0.26016363501548767,
0.08659779280424118,
0.01404122170060873,
-0.2555760145187378,
0.17967835068702698,
-0.1078668013215065,
-0.002608099952340126,
-0.16347713768482208,
-0.038952626287937164,
0.04661213979125023,
-0.35634171962738037,
-0.17569823563098907,
-0.36977869272232056,
-0.11427252739667892,
0.2460547238588333,
-0.06947716325521469,
-0.024848967790603638,
-0.2876042127609253,
0.09452815353870392,
-0.11205725371837616,
0.05305624008178711,
0.20907062292099,
0.193948894739151,
-0.2207098752260208,
0.13459733128547668,
-0.07369861006736755,
-0.29403650760650635,
0.2302756905555725,
0.2727071940898895,
0.38758018612861633,
0.1529558300971985,
0.07122086733579636,
0.17559194564819336,
0.735621988773346,
0.25420814752578735,
0.018226558342576027,
0.1526496708393097,
0.2519254982471466,
-0.008517149835824966,
0.17827638983726501,
-0.2468549758195877,
0.17666269838809967,
-0.15473130345344543,
0.487579345703125,
0.09875715523958206,
0.150802344083786,
-0.24501730501651764,
-0.3062397837638855,
0.05892607942223549,
-0.26855388283729553,
-0.21715952455997467,
0.2424307018518448,
-0.22875842452049255,
0.014070674777030945,
-0.08965978026390076,
-0.41623780131340027,
-0.29063862562179565,
-0.053883884102106094,
-0.022310201078653336,
0.34691524505615234,
-0.07768436521291733,
0.15731792151927948,
-0.3413402736186981,
-0.04604533314704895,
-0.4354322552680969,
0.14782868325710297,
0.07338932901620865,
0.28789249062538147,
-0.069713294506073,
-0.02444019913673401,
-0.11077515780925751,
0.10292835533618927,
0.6152385473251343,
-0.5185815691947937,
-0.12251316010951996,
0.10406078398227692,
0.08391150832176208,
-0.13758142292499542,
-0.1016150563955307,
-0.260181725025177,
0.014867939054965973,
0.42973312735557556,
0.3357186019420624,
-0.37738287448883057,
-0.2934280037879944,
0.17445819079875946,
-0.2098122239112854,
-0.08447551727294922,
-0.16246311366558075,
-0.2532831132411957,
-0.22844845056533813,
-0.12505626678466797,
0.041776180267333984,
0.2297198623418808,
0.2201000452041626,
-0.06440180540084839,
0.16535016894340515,
-0.10738153755664825,
0.2017076313495636,
0.2185194492340088,
0.023032501339912415,
-0.040012601763010025,
0.25569406151771545,
0.19773365557193756,
0.039545610547065735,
-0.1268981248140335,
-0.3682379126548767,
0.06594055145978928,
-0.05863914266228676,
0.06726878881454468,
0.25432854890823364,
-0.031583547592163086,
0.6494699120521545,
0.042328618466854095,
0.3392966687679291,
0.2956761419773102,
-0.17104022204875946,
0.003836683928966522,
-0.22791872918605804,
0.1694694459438324,
0.22283919155597687,
0.2263699173927307,
-0.1590791940689087,
-0.26188015937805176,
0.5629374384880066,
0.2996864914894104,
-0.07139336317777634,
0.451678603887558,
-0.4898034334182739,
-0.33045151829719543,
0.26246368885040283,
0.07081212103366852,
0.6956495642662048,
-0.06268008053302765,
0.29476574063301086,
0.07930532097816467,
-0.3640846014022827,
0.6168705224990845,
-0.3644064664840698,
0.1506236046552658,
-0.1062212586402893,
-0.19690865278244019,
0.012675361707806587,
-0.09358678758144379,
-0.0731005147099495,
0.268515408039093,
-0.3825458288192749,
0.30779680609703064,
0.42872530221939087,
-0.20226295292377472,
-0.02535988949239254,
0.5634381771087646,
0.05623287707567215,
-0.39850568771362305,
-0.15839366614818573,
0.06879647821187973,
-0.3081550598144531,
0.05436477065086365,
-0.1665421724319458,
-0.2580898404121399,
0.2257055640220642,
0.15583252906799316,
-0.30135005712509155,
0.06678997725248337,
-0.035230956971645355,
0.2177823930978775,
0.21286362409591675,
0.015264809131622314,
0.26790207624435425,
-0.11605964601039886,
-0.037850625813007355,
-0.15350612998008728,
-0.08397165685892105,
0.13552682101726532,
-0.19333332777023315,
0.03781449422240257,
0.018268344923853874,
-0.1867401897907257,
0.49888941645622253,
-0.06247992068529129,
-0.11852143704891205,
-0.21425136923789978,
0.28020671010017395,
-0.4461522102355957,
-0.1915702372789383,
0.14757513999938965,
0.17568396031856537,
0.19827409088611603,
-0.30494987964630127,
0.5695934295654297,
0.10945096611976624,
0.011156510561704636,
0.034104205667972565,
0.21011985838413239,
-0.2711586356163025,
0.500273585319519,
-0.2811300456523895,
0.009963490068912506,
0.10483956336975098,
0.025051996111869812,
-0.1126541718840599,
-0.38574954867362976,
-0.030786611139774323,
0.3170594573020935,
0.13859905302524567,
0.00872698426246643,
0.028529562056064606,
0.11237557977437973,
-0.06501558423042297,
-0.02706948295235634,
-0.14490503072738647,
-0.35135418176651,
0.13187623023986816,
0.18006367981433868,
0.1875753253698349,
0.23299017548561096,
-0.028973232954740524,
-0.27153825759887695,
-0.16603948175907135,
0.4481061100959778,
0.03526024892926216,
0.2099882811307907,
-0.12945103645324707,
0.3465993106365204,
0.4091411530971527,
0.5483707189559937,
-0.25959455966949463,
0.07455863058567047,
0.05536697804927826,
0.1109805479645729,
0.45924606919288635,
-0.2511613667011261,
0.07607980072498322,
0.27714860439300537,
-0.12474207580089569,
0.03135417029261589,
-0.32041874527931213,
-0.15355804562568665,
-0.24974070489406586,
0.11093197017908096,
0.10442167520523071,
0.004201232455670834,
0.004018054343760014,
-0.10565147548913956,
-0.11311276257038116,
-0.0842527225613594,
-0.00029911473393440247,
-0.38162821531295776,
-0.059591084718704224,
0.12420305609703064,
-0.03806657716631889,
0.06506076455116272,
0.0368795245885849,
0.18779097497463226,
0.023435842245817184,
-0.1025380790233612,
0.34939682483673096,
0.11723916232585907,
0.1081334725022316,
-0.17780634760856628,
-0.16322247684001923,
0.023343976587057114,
0.24289581179618835,
0.15198290348052979,
-0.06412448734045029,
0.12868037819862366,
-0.24157723784446716,
-0.120669424533844,
0.23631331324577332,
0.16919052600860596,
0.01744803600013256,
-0.10271256417036057,
0.13327597081661224,
0.11498108506202698,
-0.09520749747753143,
-0.03510027751326561,
0.27450206875801086,
0.07827581465244293,
0.13403791189193726,
0.1436426043510437,
0.09875959157943726,
0.4728013873100281,
-0.23880402743816376,
0.009598582983016968,
0.1430586576461792,
-0.3520100712776184,
0.1235266923904419,
-0.1303718090057373,
-0.03644547611474991,
-0.011556442826986313,
0.10323668271303177,
-0.02438145875930786,
0.1411908119916916,
-0.27003079652786255,
0.28077495098114014,
0.30520424246788025,
0.0004441961646080017,
-0.03391394391655922,
0.22373417019844055,
0.056069131940603256,
-0.1437353789806366,
0.24643775820732117,
0.0478811077773571,
0.3264906108379364,
0.02148422598838806,
0.8898249268531799,
-0.2593216001987457,
-0.44537028670310974,
0.10915037244558334,
0.42768239974975586,
0.04372871667146683,
-0.20927825570106506,
0.14286845922470093,
0.1025015339255333,
-0.3528323769569397,
0.07324293255805969,
0.06681434065103531,
-0.21987591683864594,
0.6501643657684326,
-0.10448971390724182,
0.21174637973308563,
-0.13323858380317688,
-0.1671055257320404,
0.3940384089946747,
0.17511926591396332,
-0.0650772899389267,
0.01570810377597809,
0.14367695152759552,
-0.12336210906505585,
-0.1789790689945221,
0.43864357471466064,
0.212861567735672,
0.02780875936150551,
-0.4619532823562622,
0.06281649321317673,
0.09056831896305084,
0.14693041145801544,
-0.03955409675836563,
0.10659737884998322,
0.4349876046180725,
-0.1517574042081833,
0.23860152065753937,
0.01374007761478424,
-0.053497958928346634,
-0.1947309672832489,
0.07981178164482117,
-0.4298866391181946,
-0.3788127601146698,
0.47887876629829407,
0.06758574396371841,
-0.11323995888233185,
0.0594351589679718,
0.3338850736618042,
-0.6175370812416077,
-0.2591402232646942,
0.32679036259651184,
-0.09543337672948837,
-0.06627276539802551,
-0.19924703240394592,
0.07281951606273651,
0.06321035325527191,
0.6397783756256104,
0.1772635579109192,
0.3605997860431671,
-0.37508314847946167,
-0.1291014403104782,
-0.634636640548706,
-0.15605109930038452,
0.11392498016357422,
-0.17616406083106995,
-0.25313711166381836,
0.17074871063232422,
-0.047004468739032745,
0.32274818420410156,
-0.2095470279455185,
0.09758260846138,
0.27154678106307983,
0.027107704430818558,
-0.4724884629249573,
0.04005122184753418,
0.09500525891780853,
0.047960065305233,
0.281794935464859,
-0.07571272552013397,
-0.19103272259235382,
0.06382094323635101,
-0.06736111640930176,
-0.0838572308421135,
-0.11887826770544052,
0.24940502643585205,
0.1771705448627472,
0.0620608814060688,
0.034452661871910095,
0.5532028079032898,
0.0108182393014431,
-0.16162750124931335,
0.031094897538423538,
0.028595853596925735,
-0.3770723044872284,
-0.1337217390537262,
-0.08216743171215057,
0.20839722454547882,
-0.3929457366466522,
0.2529568672180176,
-0.007654879707843065,
-0.025235451757907867,
0.11938340961933136,
0.011496695689857006,
-0.20174472033977509,
-0.024046238511800766,
0.08407940715551376,
0.24018006026744843,
0.2028208076953888,
0.7438051104545593,
-0.014433816075325012,
0.17315657436847687,
-0.08187654614448547,
-0.037452466785907745,
0.06602831184864044,
-0.13764002919197083,
-0.247847780585289,
-0.13568241894245148,
0.0355517640709877,
0.062083616852760315,
0.12089238315820694,
-0.6768580079078674,
-0.32936879992485046,
0.04510848596692085,
-0.0008662454783916473,
0.0040008313953876495,
0.7409058809280396,
0.06504037976264954,
-0.11601394414901733,
-0.11704619228839874,
-0.356864333152771,
0.033418819308280945,
-0.25153297185897827,
0.18174058198928833,
-0.37132376432418823
] |
https://github.com/huggingface/datasets/issues/217 | Multi-task dataset mixing | The problem with changing `k` and `t` per sampling is that you'd have to somehow remember which examples you'd already returned while re-weighting the remaining examples based on the new `k` and `t`values. It seems possible but complicated (I can't really see a reason why you'd want to change the weighting of datasets after you constructed the multidataset).
Wouldn't it be convenient if it implemented the dataset interface? Then if someone has code using a single nlp dataset, they can replace it with a multitask combination of more datasets without having to change other code. We would at least need to be able to pass it into a `DataLoader`.
| It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
| 109 | Multi-task dataset mixing
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
The problem with changing `k` and `t` per sampling is that you'd have to somehow remember which examples you'd already returned while re-weighting the remaining examples based on the new `k` and `t`values. It seems possible but complicated (I can't really see a reason why you'd want to change the weighting of datasets after you constructed the multidataset).
Wouldn't it be convenient if it implemented the dataset interface? Then if someone has code using a single nlp dataset, they can replace it with a multitask combination of more datasets without having to change other code. We would at least need to be able to pass it into a `DataLoader`.
| [
-0.08343611657619476,
-0.3772904574871063,
-0.054012518376111984,
-0.08327780663967133,
-0.21224680542945862,
0.016944460570812225,
0.13349898159503937,
0.06816428899765015,
0.3124590516090393,
-0.02525964379310608,
-0.2377854883670807,
0.3599816858768463,
-0.15870462357997894,
0.3497791588306427,
0.3823588192462921,
-0.4798983037471771,
-0.030744336545467377,
-0.13304555416107178,
-0.3688006103038788,
0.3823728561401367,
0.04090108722448349,
0.09933433681726456,
-0.1226545050740242,
0.0074620321393013,
-0.23627135157585144,
-0.1522189825773239,
-0.34329622983932495,
0.0929013267159462,
0.184561625123024,
-0.055031780153512955,
0.19634556770324707,
0.4499553442001343,
-0.01728062517940998,
0.05232042446732521,
-0.00011072369670728222,
-0.08731920272111893,
0.13176000118255615,
-0.12002000212669373,
0.049834270030260086,
0.037830740213394165,
0.21656659245491028,
-0.4117271304130554,
-0.06971433013677597,
-0.18803812563419342,
0.10876753181219101,
0.21512453258037567,
0.1830592155456543,
0.024412281811237335,
0.41552120447158813,
-0.32108673453330994,
0.12937000393867493,
0.32684749364852905,
-0.22198837995529175,
0.23453135788440704,
-0.0946437194943428,
-0.15330494940280914,
0.09412891417741776,
0.3127885162830353,
0.4916837811470032,
-0.5477144122123718,
-0.061179019510746,
0.14151272177696228,
0.007721619680523872,
0.059617821127176285,
0.10257229954004288,
-0.05151655524969101,
-0.32518434524536133,
-0.20651030540466309,
-0.3548210859298706,
0.2940819561481476,
-0.18114635348320007,
-0.14917278289794922,
-0.19877693057060242,
-0.585671603679657,
0.06005941703915596,
-0.010827301070094109,
-0.2997100353240967,
0.020460685715079308,
-0.14967556297779083,
-0.012792795896530151,
-0.1295456439256668,
-0.09831389039754868,
0.07478541135787964,
0.0990779846906662,
0.32749247550964355,
0.5603517293930054,
0.09386083483695984,
0.18363532423973083,
0.3918944001197815,
0.07738888263702393,
-0.21224838495254517,
-0.2460261583328247,
0.28512799739837646,
0.09630496799945831,
-0.2826714515686035,
-0.3462052345275879,
0.16300129890441895,
-0.26397964358329773,
0.23295840620994568,
0.05784062296152115,
0.1677592247724533,
0.11276687681674957,
-0.13788211345672607,
0.24946370720863342,
0.2821425795555115,
0.059851255267858505,
0.010651245713233948,
-0.11803381890058517,
0.014983557164669037,
-0.05733723193407059,
0.15855048596858978,
0.09276778995990753,
0.21617835760116577,
-0.0449695885181427,
-0.40501460433006287,
-0.08261950314044952,
-0.2754174470901489,
0.19549560546875,
-0.20602035522460938,
-0.5297424793243408,
-0.018626432865858078,
-0.11480338871479034,
0.0239045862108469,
-0.10028765350580215,
-0.31874385476112366,
0.16014480590820312,
-0.0565386526286602,
0.17470015585422516,
-0.11744693666696548,
0.0728759691119194,
-0.08563557267189026,
0.0885189026594162,
-0.4986363649368286,
0.02519451081752777,
0.2598646581172943,
0.0800493061542511,
0.16220282018184662,
0.16258655488491058,
-0.026163123548030853,
0.15069888532161713,
0.39101898670196533,
0.05960158631205559,
0.0018361285328865051,
-0.058130938559770584,
0.1590108573436737,
-0.294969767332077,
-0.04215316101908684,
0.18233822286128998,
-0.42464181780815125,
-0.1548047661781311,
-0.14691752195358276,
-0.07604144513607025,
0.1608906239271164,
0.045543182641267776,
-0.24469679594039917,
-0.29811909794807434,
-0.44656530022621155,
0.7699322700500488,
-0.009563155472278595,
-0.11291129887104034,
-0.10955793410539627,
0.20794637501239777,
-0.3065614700317383,
-0.08008919656276703,
0.21946682035923004,
0.03209245204925537,
-0.01905939355492592,
-0.4033973217010498,
-0.042270760983228683,
-0.03717929497361183,
-0.10395552963018417,
0.26446595788002014,
-0.21608902513980865,
0.18137115240097046,
0.07405570149421692,
0.17394743859767914,
0.2999923527240753,
-0.4679257869720459,
-0.08489716053009033,
0.2344106286764145,
-0.03608788177371025,
0.3289676904678345,
0.08498483896255493,
0.12413071095943451,
0.05196617543697357,
-0.17159131169319153,
0.1760985255241394,
0.9709122776985168,
-0.3548184335231781,
0.024371961131691933,
-0.10637877881526947,
-0.3863513171672821,
0.5253027677536011,
0.2912901043891907,
0.07079344242811203,
-0.26955360174179077,
-0.1268908679485321,
0.004664803855121136,
0.09227918833494186,
0.01856274902820587,
0.08767006546258926,
-0.04912402480840683,
-0.33081987500190735,
0.009197324514389038,
-0.21637952327728271,
-0.15521493554115295,
-0.37339815497398376,
0.05382675677537918,
-0.061897072941064835,
0.3879179358482361,
0.3986715078353882,
-0.11829866468906403,
0.2000267207622528,
-0.3578912913799286,
-0.03352363035082817,
-0.28234609961509705,
0.14898429811000824,
-0.013988561928272247,
0.04843540117144585,
-0.22091172635555267,
-0.04951295256614685,
0.2356533259153366,
0.1350266933441162,
-0.15551690757274628,
-0.40747782588005066,
0.30450960993766785,
0.02017468586564064,
-0.0015046298503875732,
-0.05420124530792236,
0.5833072662353516,
-0.16488325595855713,
-0.10873343795537949,
0.20871996879577637,
0.3047444820404053,
-0.3626171052455902,
0.29410773515701294,
0.310453861951828,
0.1920405626296997,
0.15806634724140167,
0.019926462322473526,
0.15771134197711945,
-0.01453646644949913,
-0.06476781517267227,
-0.16084492206573486,
-0.04156229645013809,
0.6416842937469482,
-0.04829997941851616,
0.34820756316185,
-0.029241275042295456,
-0.031100671738386154,
-0.1747986227273941,
-0.16735853254795074,
-0.2596578299999237,
0.33093708753585815,
0.2930159568786621,
-0.27841439843177795,
0.36245155334472656,
-0.12749828398227692,
-0.4090747833251953,
0.15859827399253845,
0.1983097791671753,
0.05338194593787193,
0.12208278477191925,
0.011676397174596786,
-0.05402808636426926,
-0.30141085386276245,
-0.1033010333776474,
0.34477975964546204,
0.6520259976387024,
0.28751158714294434,
0.16832204163074493,
0.0216043870896101,
-0.2816530168056488,
-0.09253255277872086,
0.002398163080215454,
0.1340303272008896,
-0.029896920546889305,
0.18200235068798065,
0.10243846476078033,
0.03147474303841591,
-0.0856320708990097,
-0.06431388109922409,
0.16443860530853271,
-0.21713672578334808,
-0.032316986471414566,
0.03986538201570511,
-0.1786455661058426,
-0.5128597617149353,
-0.2909933626651764,
0.03559578210115433,
-0.3008246421813965,
-0.3023712933063507,
0.18047256767749786,
0.09110574424266815,
-0.22132918238639832,
0.2116442173719406,
0.2378731667995453,
0.620420515537262,
-0.39749446511268616,
-0.1298801153898239,
-0.10952091962099075,
-0.34641528129577637,
-0.10274525731801987,
0.12991173565387726,
0.35552820563316345,
0.2745724022388458,
0.4790077209472656,
0.25627076625823975,
-0.05841092765331268,
0.10199452936649323,
-0.4040743410587311,
0.02628624252974987,
-0.3197816014289856,
0.2502518892288208,
0.11853625625371933,
-0.18916498124599457,
0.1525096297264099,
-0.3981902003288269,
0.011865021660923958,
-0.14020167291164398,
-0.02988450601696968,
-0.05930735170841217,
0.011886658146977425,
0.14863181114196777,
-0.20273523032665253,
-0.20275527238845825,
-0.6083058714866638,
-0.42396342754364014,
0.24561426043510437,
-0.21167995035648346,
0.04542829468846321,
0.05185730382800102,
-0.21421371400356293,
0.14821337163448334,
-0.16540010273456573,
0.015459107235074043,
-0.18778516352176666,
-0.10263298451900482,
-0.006060931831598282,
-0.39064279198646545,
-0.10505223274230957,
-0.504276692867279,
-0.12487254291772842,
0.26935049891471863,
-0.10490944981575012,
-0.10202081501483917,
-0.32058006525039673,
0.05709993839263916,
-0.09570659697055817,
0.016935035586357117,
0.277761846780777,
0.10743647068738937,
-0.22773544490337372,
0.03465205430984497,
-0.06954701989889145,
-0.21417218446731567,
0.21847251057624817,
0.410944402217865,
0.38753998279571533,
0.11119894683361053,
0.003796815872192383,
0.14250227808952332,
0.7288065552711487,
0.20422478020191193,
-0.006215788424015045,
0.24172472953796387,
0.22308918833732605,
0.059006091207265854,
0.11693553626537323,
-0.14880676567554474,
0.216495081782341,
-0.13906577229499817,
0.5181331634521484,
0.1340828537940979,
0.1449037790298462,
-0.23636086285114288,
-0.26169633865356445,
0.0015475675463676453,
-0.20625987648963928,
-0.24861322343349457,
0.26729339361190796,
-0.23298224806785583,
-0.038977593183517456,
-0.043079860508441925,
-0.3545131981372833,
-0.327129989862442,
-0.04302407056093216,
0.02140701189637184,
0.16934016346931458,
-0.00969022512435913,
0.13491550087928772,
-0.4466547966003418,
0.007310098968446255,
-0.4875248670578003,
0.17487052083015442,
0.03552950546145439,
0.20631293952465057,
-0.014624562114477158,
-0.09552490711212158,
-0.1373225748538971,
0.10531508922576904,
0.49268460273742676,
-0.5116748213768005,
-0.07899947464466095,
0.08137258887290955,
0.06042414903640747,
-0.13401301205158234,
-0.13115082681179047,
-0.32275480031967163,
-0.07703293114900589,
0.44155117869377136,
0.37745508551597595,
-0.4230468273162842,
-0.30254554748535156,
0.22415269911289215,
-0.16462089121341705,
-0.09547977149486542,
-0.1715964376926422,
-0.2111206203699112,
-0.19634497165679932,
-0.1546303927898407,
0.07413216680288315,
0.14330625534057617,
0.2671215832233429,
-0.12531578540802002,
0.19032733142375946,
-0.10813845694065094,
0.18458786606788635,
0.17987275123596191,
0.01582762971520424,
-0.04419189319014549,
0.3539234697818756,
0.11021879315376282,
0.07063783705234528,
-0.13125576078891754,
-0.33195850253105164,
0.10548895597457886,
-0.13519994914531708,
0.20508289337158203,
0.22697049379348755,
0.09067472815513611,
0.5530038475990295,
0.11436289548873901,
0.3576846122741699,
0.30341148376464844,
-0.06347478926181793,
0.12543798983097076,
-0.31384551525115967,
0.20288680493831635,
0.17584113776683807,
0.2550438940525055,
-0.1068413034081459,
-0.21424847841262817,
0.5952862501144409,
0.28747791051864624,
-0.08879188448190689,
0.38233286142349243,
-0.5090106129646301,
-0.36415863037109375,
0.28972429037094116,
0.08487600833177567,
0.6568554639816284,
-0.012666642665863037,
0.3372671902179718,
0.059179626405239105,
-0.3040441870689392,
0.6199082136154175,
-0.27595317363739014,
0.1473550647497177,
-0.13500386476516724,
-0.24565254151821136,
0.036676302552223206,
-0.048641424626111984,
-0.0824146494269371,
0.26778164505958557,
-0.35127487778663635,
0.36767199635505676,
0.4438670873641968,
-0.19981518387794495,
-0.12936091423034668,
0.520460307598114,
-0.0869242250919342,
-0.32492896914482117,
-0.1141846776008606,
0.09938514232635498,
-0.23347364366054535,
0.11657434701919556,
-0.12016144394874573,
-0.2505454421043396,
0.2240792214870453,
0.13571134209632874,
-0.22700849175453186,
0.04554508626461029,
-0.0658816248178482,
0.13693192601203918,
0.2686856687068939,
0.03022880107164383,
0.19252635538578033,
-0.220012366771698,
-0.025526754558086395,
-0.10796108841896057,
-0.10625435411930084,
0.12955372035503387,
-0.16364234685897827,
0.07055371254682541,
0.13920482993125916,
-0.1475970447063446,
0.5190820693969727,
0.012029524892568588,
-0.11477193981409073,
-0.19632390141487122,
0.2693730294704437,
-0.38254624605178833,
-0.17794635891914368,
0.02409806102514267,
0.09247919172048569,
0.10347069799900055,
-0.3090550899505615,
0.562714695930481,
0.12509985268115997,
-0.028349600732326508,
0.06166961416602135,
0.10210774838924408,
-0.22989454865455627,
0.5123813152313232,
-0.1856578290462494,
-0.039551276713609695,
0.05415180325508118,
0.09490790218114853,
-0.16265341639518738,
-0.3041131794452667,
-0.040406256914138794,
0.24128510057926178,
0.13462090492248535,
-0.014453278854489326,
0.014386340975761414,
0.16485318541526794,
-0.17030948400497437,
0.04330574348568916,
-0.07534704357385635,
-0.3425023555755615,
0.1565358191728592,
0.22472839057445526,
0.21894188225269318,
0.29624995589256287,
-0.11109837144613266,
-0.1854037642478943,
-0.12255578488111496,
0.4910304546356201,
0.0918164998292923,
0.2689320743083954,
-0.1198958232998848,
0.3225717544555664,
0.35474759340286255,
0.5900264382362366,
-0.3123570680618286,
0.07766611874103546,
0.063877172768116,
0.13484351336956024,
0.5099005699157715,
-0.2374131977558136,
0.008969617076218128,
0.33056166768074036,
-0.1103551834821701,
0.0758998841047287,
-0.3295682668685913,
-0.17685604095458984,
-0.29442375898361206,
0.08765872567892075,
0.07303474098443985,
0.012625357136130333,
0.023894935846328735,
-0.03426380082964897,
-0.04506833478808403,
-0.16708727180957794,
0.005586311221122742,
-0.4168510437011719,
-0.10029657185077667,
0.2000107318162918,
-0.061024513095617294,
0.06438490748405457,
0.14227378368377686,
0.2284630537033081,
0.00968114286661148,
-0.1569223254919052,
0.2438974231481552,
0.16898393630981445,
0.10425068438053131,
-0.12324456870555878,
-0.16884925961494446,
-0.0029000043869018555,
0.2162175476551056,
0.0883055254817009,
-0.1214592233300209,
0.19059310853481293,
-0.20523495972156525,
-0.09061102569103241,
0.3178475797176361,
0.18736639618873596,
0.04893580079078674,
-0.1805133819580078,
0.15276843309402466,
0.16645276546478271,
-0.11254409700632095,
0.0003928824153263122,
0.15967343747615814,
0.11689913272857666,
0.1586345136165619,
0.14670802652835846,
0.14573194086551666,
0.3819444179534912,
-0.19101952016353607,
-0.04100775346159935,
0.08764354884624481,
-0.32143479585647583,
0.11080789566040039,
-0.0604327954351902,
-0.020613301545381546,
-0.032124195247888565,
0.180583193898201,
-0.0632682591676712,
0.2051951289176941,
-0.4029555320739746,
0.2911435663700104,
0.338180273771286,
-0.008856061846017838,
0.0301895122975111,
0.12258738279342651,
0.011403083801269531,
-0.13385024666786194,
0.37775179743766785,
0.05748855322599411,
0.33230865001678467,
0.051880646497011185,
0.9268819093704224,
-0.2629576325416565,
-0.44818490743637085,
0.06358594447374344,
0.5313948392868042,
0.029138565063476562,
-0.32141920924186707,
0.061389558017253876,
0.06478036195039749,
-0.37453216314315796,
0.16029566526412964,
0.01161155104637146,
-0.15400631725788116,
0.6641731262207031,
-0.15340912342071533,
0.1933291256427765,
-0.16817304491996765,
-0.22600194811820984,
0.2835279405117035,
0.1881144940853119,
-0.14975032210350037,
0.044860996305942535,
0.0780438706278801,
-0.06418521702289581,
-0.12437847256660461,
0.5293442606925964,
0.1735810786485672,
-0.013323094695806503,
-0.4142279028892517,
-0.003277059644460678,
0.1442958414554596,
0.16323953866958618,
-0.1211545318365097,
0.1270751953125,
0.47768479585647583,
-0.1713271290063858,
0.2919729948043823,
0.05136548727750778,
-0.1416742354631424,
-0.16505208611488342,
0.0537252351641655,
-0.40651342272758484,
-0.41112154722213745,
0.41772305965423584,
0.1373804211616516,
-0.04147881269454956,
0.06708227097988129,
0.28556156158447266,
-0.5498073697090149,
-0.22149884700775146,
0.25499215722084045,
-0.17315077781677246,
-0.07097971439361572,
-0.22309309244155884,
0.09759366512298584,
0.04475879669189453,
0.6479759812355042,
0.21212565898895264,
0.25204387307167053,
-0.3549043834209442,
-0.09994026273488998,
-0.551097571849823,
-0.13988277316093445,
0.17897376418113708,
-0.10730218142271042,
-0.2773841917514801,
0.16404414176940918,
-0.03695543855428696,
0.2786959409713745,
-0.18398289382457733,
0.18126998841762543,
0.21143648028373718,
0.00915520265698433,
-0.4085695743560791,
0.15160121023654938,
0.01877395063638687,
0.04160546511411667,
0.3125753104686737,
-0.1152501329779625,
-0.15051139891147614,
0.02137501910328865,
-0.026635555550456047,
-0.045243822038173676,
-0.08165723085403442,
0.24790635704994202,
0.18513113260269165,
0.16567866504192352,
0.013480564579367638,
0.48409348726272583,
-0.07819245755672455,
-0.12652762234210968,
-0.02078830823302269,
-0.07461071014404297,
-0.419307678937912,
-0.20675113797187805,
-0.0996449738740921,
0.21812176704406738,
-0.27957671880722046,
0.3174085021018982,
-0.009172682650387287,
-0.11152926832437515,
0.1520834118127823,
0.06763454526662827,
-0.10436646640300751,
-0.05300740897655487,
0.11525537818670273,
0.09159129112958908,
0.1921045035123825,
0.7487505078315735,
0.06614532321691513,
0.09840840846300125,
-0.08251704275608063,
-0.11334827542304993,
0.08893365412950516,
-0.06935134530067444,
-0.18787765502929688,
-0.16191381216049194,
0.01233121007680893,
0.10883544385433197,
0.0035941489040851593,
-0.6421051621437073,
-0.30900177359580994,
0.028569605201482773,
0.04078586399555206,
0.036156561225652695,
0.7093762159347534,
0.052084214985370636,
-0.16649800539016724,
-0.1239117830991745,
-0.3487195670604706,
0.08365844190120697,
-0.3357554078102112,
0.0660819411277771,
-0.37589824199676514
] |
https://github.com/huggingface/datasets/issues/217 | Multi-task dataset mixing | A very janky (but working) implementation of `multitask_dataset.sample()` could be something like this:
```python
import nlp
import torch
class MultiDataset():
def __init__(self, *args, temperature=2.0, k=1000, maximum=None, scale=1):
self.datasets = args
self._dataloaders = {}
for split in self._get_common_splits():
split_datasets = [ds[split] for ds in self.datasets]
mixing_rates = self._calc_mixing_rates(split_datasets,temperature, k, maximum, scale)
weights = []
for i in range(len(self.datasets)):
weights += [mixing_rates[i]]*len(self.datasets[i][split])
self._dataloaders[split] = torch.utils.data.DataLoader(torch.utils.data.ConcatDataset(split_datasets),
sampler=torch.utils.data.sampler.WeightedRandomSampler(
num_samples=len(weights),
weights = weights,
replacement=True),
shuffle=False)
def _get_common_splits(self):
'''Finds the common splits present in all self.datasets'''
min_set = None
for dataset in self.datasets:
if min_set != None:
min_set.intersection(set(dataset.keys()))
else:
min_set = set(dataset.keys())
return min_set
def _calc_mixing_rates(self,datasets, temperature=2.0, k=1000, maximum=None, scale=1):
'''Work out the weighting of each dataset based on t and k'''
mixing_rates = []
for dataset in datasets:
rate = len(dataset)
rate *= scale
if maximum:
rate = min(rate, maximum)
if temperature != 1.0:
rate = rate ** (1.0/temperature)
mixing_rates.append(rate)
return mixing_rates
def sample(self,n,split):
batch = []
for example in self._dataloaders[split]:
batch.append(example)
n -= 1
if n == 0:
return batch
def flatten(dataset,flatten_fn):
for k in dataset.keys():
if isinstance(dataset[k],nlp.Dataset):
dataset[k] = dataset[k].map(flatten_fn,remove_columns=dataset[k].column_names)
# Squad
def flatten_squad(example):
return {"source": "squad context: " + example['context'] + " question: " + example['question'],"target":example["answers"]["text"]}
squad = nlp.load_dataset("squad")
flatten(squad,flatten_squad)
# CNN_DM
def flatten_cnn_dm(example):
return {"source": "cnn_dm: " + example['article'],"target":[example["highlights"]]}
cnn_dm = nlp.load_dataset("cnn_dailymail", "3.0.0")
flatten(cnn_dm,flatten_cnn_dm)
multitask_dataset = MultiDataset(squad, cnn_dm)
batch = multitask_dataset.sample(100,"train")
```
There's definitely a more sensible way than embedding `DataLoader`s inside. | It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
| 231 | Multi-task dataset mixing
It seems like many of the best performing models on the GLUE benchmark make some use of multitask learning (simultaneous training on multiple tasks).
The [T5 paper](https://arxiv.org/pdf/1910.10683.pdf) highlights multiple ways of mixing the tasks together during finetuning:
- **Examples-proportional mixing** - sample from tasks proportionally to their dataset size
- **Equal mixing** - sample uniformly from each task
- **Temperature-scaled mixing** - The generalized approach used by multilingual BERT which uses a temperature T, where the mixing rate of each task is raised to the power 1/T and renormalized. When T=1 this is equivalent to equal mixing, and becomes closer to equal mixing with increasing T.
Following this discussion https://github.com/huggingface/transformers/issues/4340 in [transformers](https://github.com/huggingface/transformers), @enzoampil suggested that the `nlp` library might be a better place for this functionality.
Some method for combining datasets could be implemented ,e.g.
```
dataset = nlp.load_multitask(['squad','imdb','cnn_dm'], temperature=2.0, ...)
```
We would need a few additions:
- Method of identifying the tasks - how can we support adding a string to each task as an identifier: e.g. 'summarisation: '?
- Method of combining the metrics - a standard approach is to use the specific metric for each task and add them together for a combined score.
It would be great to support common use cases such as pretraining on the GLUE benchmark before fine-tuning on each GLUE task in turn.
I'm willing to write bits/most of this I just need some guidance on the interface and other library details so I can integrate it properly.
A very janky (but working) implementation of `multitask_dataset.sample()` could be something like this:
```python
import nlp
import torch
class MultiDataset():
def __init__(self, *args, temperature=2.0, k=1000, maximum=None, scale=1):
self.datasets = args
self._dataloaders = {}
for split in self._get_common_splits():
split_datasets = [ds[split] for ds in self.datasets]
mixing_rates = self._calc_mixing_rates(split_datasets,temperature, k, maximum, scale)
weights = []
for i in range(len(self.datasets)):
weights += [mixing_rates[i]]*len(self.datasets[i][split])
self._dataloaders[split] = torch.utils.data.DataLoader(torch.utils.data.ConcatDataset(split_datasets),
sampler=torch.utils.data.sampler.WeightedRandomSampler(
num_samples=len(weights),
weights = weights,
replacement=True),
shuffle=False)
def _get_common_splits(self):
'''Finds the common splits present in all self.datasets'''
min_set = None
for dataset in self.datasets:
if min_set != None:
min_set.intersection(set(dataset.keys()))
else:
min_set = set(dataset.keys())
return min_set
def _calc_mixing_rates(self,datasets, temperature=2.0, k=1000, maximum=None, scale=1):
'''Work out the weighting of each dataset based on t and k'''
mixing_rates = []
for dataset in datasets:
rate = len(dataset)
rate *= scale
if maximum:
rate = min(rate, maximum)
if temperature != 1.0:
rate = rate ** (1.0/temperature)
mixing_rates.append(rate)
return mixing_rates
def sample(self,n,split):
batch = []
for example in self._dataloaders[split]:
batch.append(example)
n -= 1
if n == 0:
return batch
def flatten(dataset,flatten_fn):
for k in dataset.keys():
if isinstance(dataset[k],nlp.Dataset):
dataset[k] = dataset[k].map(flatten_fn,remove_columns=dataset[k].column_names)
# Squad
def flatten_squad(example):
return {"source": "squad context: " + example['context'] + " question: " + example['question'],"target":example["answers"]["text"]}
squad = nlp.load_dataset("squad")
flatten(squad,flatten_squad)
# CNN_DM
def flatten_cnn_dm(example):
return {"source": "cnn_dm: " + example['article'],"target":[example["highlights"]]}
cnn_dm = nlp.load_dataset("cnn_dailymail", "3.0.0")
flatten(cnn_dm,flatten_cnn_dm)
multitask_dataset = MultiDataset(squad, cnn_dm)
batch = multitask_dataset.sample(100,"train")
```
There's definitely a more sensible way than embedding `DataLoader`s inside. | [
-0.08341988921165466,
-0.38811957836151123,
-0.05889251455664635,
-0.05794883519411087,
-0.2545415759086609,
0.0694044902920723,
0.19493070244789124,
0.051410458981990814,
0.34055984020233154,
-0.14826448261737823,
-0.2024349719285965,
0.3717309534549713,
-0.23944802582263947,
0.3475407361984253,
0.38729825615882874,
-0.45999637246131897,
0.024137407541275024,
-0.26757052540779114,
-0.2698782682418823,
0.37287211418151855,
0.06227070838212967,
0.08813007175922394,
-0.18115809559822083,
0.08036627620458603,
-0.25397706031799316,
-0.16344812512397766,
-0.34938815236091614,
0.10462184250354767,
0.1572878211736679,
-0.013107224367558956,
0.21203704178333282,
0.38126254081726074,
-0.04049588739871979,
0.13177837431430817,
-0.00011317196913296357,
-0.07457675039768219,
0.21052587032318115,
-0.07623817026615143,
0.08656412363052368,
-0.06524491310119629,
0.2296271026134491,
-0.43176528811454773,
0.03671302646398544,
-0.1433311104774475,
0.14059722423553467,
0.15172192454338074,
0.16424967348575592,
-0.007431387901306152,
0.38448089361190796,
-0.2736283838748932,
0.11178195476531982,
0.2874099910259247,
-0.15956005454063416,
0.2645363211631775,
-0.10869470983743668,
-0.04744022339582443,
0.04901239275932312,
0.26195427775382996,
0.6061146259307861,
-0.6340855360031128,
-0.014125064015388489,
0.10082423686981201,
-0.049805596470832825,
0.03194376453757286,
0.12348440289497375,
-0.08227373659610748,
-0.38277193903923035,
-0.23529955744743347,
-0.3922519087791443,
0.24548736214637756,
-0.17746660113334656,
-0.19453668594360352,
-0.22744770348072052,
-0.5580018758773804,
0.00625306461006403,
0.041994623839855194,
-0.3048383891582489,
0.05022186040878296,
-0.19981658458709717,
-0.06731554865837097,
-0.13756754994392395,
-0.08848841488361359,
0.011830329895019531,
0.1732165664434433,
0.315649151802063,
0.5342763662338257,
0.10947099328041077,
0.17463377118110657,
0.34226909279823303,
0.042831696569919586,
-0.1386728733778,
-0.2869669795036316,
0.3420221209526062,
0.12645845115184784,
-0.37124958634376526,
-0.30758601427078247,
0.1824498325586319,
-0.26114869117736816,
0.2541569769382477,
0.11465208977460861,
0.11636406928300858,
0.09271906316280365,
-0.12476241588592529,
0.2851978540420532,
0.3020448088645935,
0.015004204586148262,
-0.08135781437158585,
-0.0808272585272789,
0.02355433627963066,
-0.1328221708536148,
0.22979438304901123,
0.12041151523590088,
0.16450057923793793,
-0.03059191256761551,
-0.4087814688682556,
-0.06945670396089554,
-0.16123677790164948,
0.19764041900634766,
-0.23831024765968323,
-0.4846024811267853,
-0.14205926656723022,
-0.08315465599298477,
0.07923726737499237,
-0.09192749112844467,
-0.297957181930542,
0.10018084943294525,
-0.07304757833480835,
0.24686913192272186,
-0.10002525895833969,
0.07183804363012314,
-0.056344788521528244,
0.09835061430931091,
-0.43944063782691956,
-0.06991709023714066,
0.32330983877182007,
0.14224666357040405,
0.11645486950874329,
0.17511321604251862,
-0.01691785454750061,
0.13014094531536102,
0.44203194975852966,
-0.0019403072074055672,
0.020958393812179565,
-0.014059323817491531,
0.1952325403690338,
-0.3251470625400543,
0.004883702844381332,
0.22755233943462372,
-0.3726581931114197,
-0.14289042353630066,
-0.12809079885482788,
-0.15609118342399597,
0.11269786208868027,
0.03565201908349991,
-0.23599134385585785,
-0.2588001787662506,
-0.49866148829460144,
0.6829746961593628,
-0.02900376170873642,
-0.041876669973134995,
-0.15797075629234314,
0.25221335887908936,
-0.24844439327716827,
-0.12515009939670563,
0.2169198989868164,
0.06579381227493286,
-0.0024437792599201202,
-0.3119378685951233,
-0.1297096610069275,
-0.08177587389945984,
-0.03710111230611801,
0.2253071814775467,
-0.16007867455482483,
0.27307677268981934,
0.04683217406272888,
0.20835717022418976,
0.26415327191352844,
-0.5000433325767517,
-0.04386579990386963,
0.266920268535614,
-0.04217712581157684,
0.4183546304702759,
0.04843809828162193,
0.2128078043460846,
0.03480488806962967,
-0.16171255707740784,
0.2985629737377167,
1.0328634977340698,
-0.3860526382923126,
0.00455690361559391,
-0.09491418302059174,
-0.365169882774353,
0.5233180522918701,
0.33920565247535706,
0.09073843061923981,
-0.3195146918296814,
-0.11596622318029404,
-0.05300159379839897,
0.10058660805225372,
0.08589224517345428,
0.07345245778560638,
-0.07229705154895782,
-0.36503902077674866,
0.05978430062532425,
-0.24873535335063934,
-0.19382601976394653,
-0.34214362502098083,
0.03035876154899597,
0.11190715432167053,
0.279766321182251,
0.2486676126718521,
-0.13200053572654724,
0.22297176718711853,
-0.25494569540023804,
-0.129815012216568,
-0.3390693962574005,
0.1418401598930359,
-0.059790998697280884,
0.03747932240366936,
-0.25106990337371826,
0.0014999248087406158,
0.3411409556865692,
0.1274174302816391,
-0.15057125687599182,
-0.4737480580806732,
0.2840261459350586,
-0.0559382364153862,
0.039368994534015656,
-0.022018391638994217,
0.6338952779769897,
-0.16466933488845825,
-0.08810720592737198,
0.19178614020347595,
0.28774383664131165,
-0.26854684948921204,
0.21729816496372223,
0.31826141476631165,
0.1692695915699005,
0.14661960303783417,
-0.02283225581049919,
0.09416717290878296,
0.06210290640592575,
-0.024091366678476334,
-0.2137680947780609,
-0.0874793604016304,
0.536893367767334,
-0.15059396624565125,
0.439378947019577,
-0.065699502825737,
0.061212390661239624,
-0.16889791190624237,
-0.017658915370702744,
-0.18787479400634766,
0.4131903350353241,
0.305252343416214,
-0.19494177401065826,
0.34917712211608887,
-0.18313799798488617,
-0.3764333128929138,
0.15710029006004333,
0.08929850161075592,
0.02983025461435318,
0.09826989471912384,
-0.04359510540962219,
-0.05164342373609543,
-0.250139445066452,
-0.06704812496900558,
0.3425811231136322,
0.6638850569725037,
0.2629100978374481,
0.18624171614646912,
0.04439214617013931,
-0.2409895956516266,
-0.06112949922680855,
0.008607648313045502,
0.17471647262573242,
-0.08582821488380432,
0.1637561321258545,
0.05545486882328987,
0.033264122903347015,
0.04951457679271698,
-0.13218633830547333,
0.15407153964042664,
-0.18271608650684357,
-0.07683436572551727,
0.09348586201667786,
-0.2060641348361969,
-0.5439797639846802,
-0.196689635515213,
0.022411039099097252,
-0.28677842020988464,
-0.2818979322910309,
0.09111511707305908,
0.09463934600353241,
-0.13861539959907532,
0.15519222617149353,
0.21347826719284058,
0.5341400504112244,
-0.39720281958580017,
-0.29688218235969543,
-0.02157476171851158,
-0.34398654103279114,
-0.13003450632095337,
0.12559707462787628,
0.43872183561325073,
0.3332568109035492,
0.519888699054718,
0.3033442497253418,
-0.08945266902446747,
0.047933727502822876,
-0.3372717797756195,
0.01094459742307663,
-0.2858092188835144,
0.28525039553642273,
0.13329282402992249,
-0.24219326674938202,
0.16811196506023407,
-0.34855732321739197,
-0.02523414045572281,
-0.07369457930326462,
-0.08946552127599716,
-0.03885044902563095,
-0.0026783763896673918,
0.07000261545181274,
-0.17970336973667145,
-0.17550233006477356,
-0.636987566947937,
-0.43897464871406555,
0.29911190271377563,
-0.2640549838542938,
0.09133299440145493,
-0.01680118963122368,
-0.2485506385564804,
0.18541908264160156,
-0.11016451567411423,
0.005768542643636465,
-0.17779754102230072,
-0.0930137038230896,
0.026733171194791794,
-0.383955717086792,
-0.18263891339302063,
-0.38308295607566833,
-0.11381015926599503,
0.21733097732067108,
-0.019878888502717018,
-0.023588746786117554,
-0.25342923402786255,
0.10554056614637375,
-0.06678207218647003,
0.06013941019773483,
0.21710538864135742,
0.1514699012041092,
-0.23825198411941528,
0.13472479581832886,
-0.05888672173023224,
-0.23463931679725647,
0.23617655038833618,
0.27068671584129333,
0.4174254238605499,
0.16836771368980408,
0.040189582854509354,
0.20723889768123627,
0.6981114745140076,
0.24865451455116272,
0.028430884703993797,
0.14254802465438843,
0.23719851672649384,
-0.005118716508150101,
0.18883752822875977,
-0.2463107705116272,
0.21866965293884277,
-0.2162000834941864,
0.4830576181411743,
0.028078079223632812,
0.14759233593940735,
-0.2197674661874771,
-0.27514803409576416,
0.005366090685129166,
-0.29938778281211853,
-0.1995486170053482,
0.22123703360557556,
-0.2730291485786438,
0.011601433157920837,
-0.11817079782485962,
-0.34711286425590515,
-0.27148836851119995,
-0.036768149584531784,
0.013552859425544739,
0.30513375997543335,
-0.08174064010381699,
0.15701265633106232,
-0.35136333107948303,
-0.049009181559085846,
-0.44961076974868774,
0.15219707787036896,
0.041846077889204025,
0.2807389199733734,
-0.061747677624225616,
-0.06096737086772919,
-0.10397987067699432,
0.09561681747436523,
0.5847174525260925,
-0.5166601538658142,
-0.09553296864032745,
0.1287490427494049,
0.12548905611038208,
-0.1312011033296585,
-0.11914417147636414,
-0.2858884930610657,
0.07362581789493561,
0.4597914218902588,
0.34093788266181946,
-0.3444131016731262,
-0.25275418162345886,
0.2195504903793335,
-0.1727748066186905,
-0.057592909783124924,
-0.18763315677642822,
-0.23618744313716888,
-0.23544275760650635,
-0.08206865936517715,
0.0553615540266037,
0.22892595827579498,
0.22814014554023743,
-0.11155793815851212,
0.1948903650045395,
-0.12732568383216858,
0.24054843187332153,
0.2175450176000595,
-0.002513921819627285,
-0.024933218955993652,
0.18107424676418304,
0.178714781999588,
0.044977642595767975,
-0.14879122376441956,
-0.30222880840301514,
0.0906486064195633,
-0.057276446372270584,
0.11080999672412872,
0.2247028648853302,
-0.020742863416671753,
0.6292217969894409,
0.04770096391439438,
0.3185666501522064,
0.27786532044410706,
-0.19443455338478088,
-0.002981841564178467,
-0.257937490940094,
0.2018367350101471,
0.2203504890203476,
0.26212096214294434,
-0.11640996485948563,
-0.2639245390892029,
0.5500629544258118,
0.32111164927482605,
-0.06593145430088043,
0.44205039739608765,
-0.5858778357505798,
-0.31232112646102905,
0.24329979717731476,
0.06730412691831589,
0.6210487484931946,
-0.01113659143447876,
0.2869626581668854,
0.08895597606897354,
-0.3830379843711853,
0.5410958528518677,
-0.3828495144844055,
0.16390229761600494,
-0.08226841688156128,
-0.1536528617143631,
0.015216389670968056,
-0.09603580832481384,
-0.04071807116270065,
0.2526593804359436,
-0.32957956194877625,
0.3504185676574707,
0.41207021474838257,
-0.20682239532470703,
-0.06753361225128174,
0.5238791704177856,
-0.013963954523205757,
-0.35267603397369385,
-0.04201963543891907,
0.08234093338251114,
-0.2836208939552307,
0.10621723532676697,
-0.14440587162971497,
-0.24390144646167755,
0.21700990200042725,
0.15858182311058044,
-0.3457738757133484,
0.0826079249382019,
-0.03591351583600044,
0.22727510333061218,
0.21372586488723755,
-0.03624695912003517,
0.20517495274543762,
-0.17723801732063293,
-0.0749320238828659,
-0.1512719988822937,
-0.03667168319225311,
0.12637047469615936,
-0.1463218629360199,
0.04019346460700035,
0.08087022602558136,
-0.21810753643512726,
0.45674675703048706,
-0.04643147066235542,
-0.12222171574831009,
-0.19975164532661438,
0.28687191009521484,
-0.42228931188583374,
-0.1803596317768097,
0.15954025089740753,
0.17278651893138885,
0.25260257720947266,
-0.3116001784801483,
0.556343138217926,
0.148386150598526,
-0.010223720222711563,
0.03905458748340607,
0.18057683110237122,
-0.26041892170906067,
0.507904589176178,
-0.3668677508831024,
0.014651015400886536,
0.08976028859615326,
0.02091214805841446,
-0.13653290271759033,
-0.3640402853488922,
-0.04824390262365341,
0.31496861577033997,
0.11398106813430786,
0.004376787692308426,
0.06601306051015854,
0.1207532063126564,
0.013669110834598541,
-0.040376827120780945,
-0.16214556992053986,
-0.3431292772293091,
0.11653636395931244,
0.16043169796466827,
0.1777595728635788,
0.18723198771476746,
-0.04996213689446449,
-0.2939022481441498,
-0.16337929666042328,
0.4305420517921448,
0.0440775603055954,
0.20243073999881744,
-0.13496139645576477,
0.35182124376296997,
0.38145244121551514,
0.4948146641254425,
-0.2580099105834961,
0.07705674320459366,
0.09505537897348404,
0.09604071825742722,
0.4429803490638733,
-0.21446162462234497,
0.052082210779190063,
0.2533465027809143,
-0.11877533048391342,
0.029875021427869797,
-0.3219681978225708,
-0.15790024399757385,
-0.23781810700893402,
0.09774892777204514,
0.07003524899482727,
0.017565034329891205,
0.04143791273236275,
-0.10240169614553452,
-0.08863118290901184,
-0.07675278186798096,
-0.011173264123499393,
-0.3248332142829895,
-0.06518630683422089,
0.14712893962860107,
-0.10908287763595581,
0.047810886055231094,
0.07037953287363052,
0.1974060833454132,
-0.0022590458393096924,
-0.08732962608337402,
0.2813522517681122,
0.12359549850225449,
0.18367783725261688,
-0.16559183597564697,
-0.14358825981616974,
-0.025252513587474823,
0.21271440386772156,
0.14612050354480743,
-0.0713946595788002,
0.16139695048332214,
-0.2196010798215866,
-0.1550363153219223,
0.25354960560798645,
0.22577416896820068,
0.02459384873509407,
-0.10969018936157227,
0.147075355052948,
0.11975505948066711,
-0.12432185560464859,
-0.0021178354509174824,
0.20850595831871033,
0.09803570806980133,
0.11718323826789856,
0.10346095263957977,
0.10285250842571259,
0.46599650382995605,
-0.3051426410675049,
0.03137504309415817,
0.1053304448723793,
-0.34837841987609863,
0.11580243706703186,
-0.08272461593151093,
-0.0022728443145751953,
0.0024444647133350372,
0.10375580191612244,
-0.002349305897951126,
0.1406649351119995,
-0.23288743197917938,
0.3303033411502838,
0.37372636795043945,
0.06398984044790268,
0.00703921914100647,
0.1710141897201538,
0.002103608101606369,
-0.11631657183170319,
0.23376452922821045,
0.020216040313243866,
0.352851927280426,
0.03638823702931404,
0.8677215576171875,
-0.3164047300815582,
-0.44532153010368347,
0.10563356429338455,
0.39686599373817444,
0.05611921101808548,
-0.2312900424003601,
0.14472155272960663,
0.10362956672906876,
-0.3610672056674957,
0.08872601389884949,
0.06925946474075317,
-0.17861008644104004,
0.6680487394332886,
-0.12029649317264557,
0.16749347746372223,
-0.18092738091945648,
-0.2223655879497528,
0.3528714179992676,
0.16287587583065033,
-0.10737663507461548,
-0.03565721958875656,
0.10721293836832047,
-0.10292463004589081,
-0.19983069598674774,
0.4940885603427887,
0.24655258655548096,
0.04875301197171211,
-0.5133505463600159,
0.011972016654908657,
0.06946776807308197,
0.15743622183799744,
-0.07946434617042542,
0.10217898339033127,
0.4472758173942566,
-0.177200049161911,
0.2422114759683609,
0.0154473427683115,
-0.05776214972138405,
-0.1007937639951706,
0.09602237492799759,
-0.445097953081131,
-0.38612282276153564,
0.4605051875114441,
0.07121455669403076,
-0.10437650233507156,
0.06537498533725739,
0.3186517357826233,
-0.632595419883728,
-0.2643204629421234,
0.3530025780200958,
-0.08635807037353516,
-0.05638355016708374,
-0.20915216207504272,
0.08163757622241974,
0.04211181402206421,
0.6012594103813171,
0.18318139016628265,
0.3498593270778656,
-0.3703467547893524,
-0.11620798707008362,
-0.6050463318824768,
-0.1977108120918274,
0.05192442983388901,
-0.15896189212799072,
-0.2622530460357666,
0.1496833711862564,
-0.06800540536642075,
0.32621127367019653,
-0.2323731631040573,
0.09375463426113129,
0.2632228136062622,
0.10629799962043762,
-0.4595511555671692,
0.05649902671575546,
0.10483251512050629,
0.030725639313459396,
0.30466946959495544,
-0.10057736933231354,
-0.22762782871723175,
0.046522606164216995,
-0.05575628578662872,
-0.06158844381570816,
-0.14107638597488403,
0.2911343574523926,
0.18577349185943604,
0.08580711483955383,
0.025450991466641426,
0.5246699452400208,
-0.003438495099544525,
-0.14572098851203918,
-0.025782782584428787,
0.05499572306871414,
-0.37645670771598816,
-0.12250640243291855,
-0.0945233404636383,
0.1602572649717331,
-0.38174158334732056,
0.27230140566825867,
0.011710514314472675,
-0.045299213379621506,
0.11852036416530609,
0.0029898735228925943,
-0.19630937278270721,
-0.03083883225917816,
0.063542440533638,
0.2315341979265213,
0.17898136377334595,
0.7314289808273315,
-0.025483064353466034,
0.15572930872440338,
-0.07545009255409241,
-0.03531131148338318,
0.053449928760528564,
-0.13339760899543762,
-0.23664717376232147,
-0.20428290963172913,
0.06664802879095078,
0.059699319303035736,
0.1490630954504013,
-0.6794458031654358,
-0.33675894141197205,
0.033881183713674545,
-0.0028481408953666687,
0.060769591480493546,
0.7086073160171509,
0.07913234829902649,
-0.1290808469057083,
-0.11463353037834167,
-0.3271324336528778,
-0.0003093741834163666,
-0.2583000063896179,
0.20294038951396942,
-0.37882453203201294
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.